@carto/ps-react-maps 4.7.4 → 4.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +472 -472
- package/dist/index.js.map +1 -1
- package/dist/types/providers/map/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -77,47 +77,47 @@ function t0(t) {
|
|
|
77
77
|
}
|
|
78
78
|
function r0(t) {
|
|
79
79
|
const A = F(45);
|
|
80
|
-
let e, r, n, i, o, s,
|
|
80
|
+
let e, r, n, i, o, s, l, a, f, p, c, h, g, w;
|
|
81
81
|
A[0] !== t ? ({
|
|
82
82
|
instanceRef: s,
|
|
83
83
|
overlayRef: h,
|
|
84
84
|
controller: r,
|
|
85
85
|
id: o,
|
|
86
|
-
layers:
|
|
87
|
-
mapStyle:
|
|
88
|
-
parameters:
|
|
86
|
+
layers: l,
|
|
87
|
+
mapStyle: a,
|
|
88
|
+
parameters: g,
|
|
89
89
|
getCursor: n,
|
|
90
90
|
getTooltip: i,
|
|
91
|
-
onLoad:
|
|
91
|
+
onLoad: p,
|
|
92
92
|
onIdle: f,
|
|
93
93
|
onViewStateChange: c,
|
|
94
94
|
attributionProps: e,
|
|
95
95
|
...w
|
|
96
|
-
} = t, A[0] = t, A[1] = e, A[2] = r, A[3] = n, A[4] = i, A[5] = o, A[6] = s, A[7] =
|
|
96
|
+
} = t, A[0] = t, A[1] = e, A[2] = r, A[3] = n, A[4] = i, A[5] = o, A[6] = s, A[7] = l, A[8] = a, A[9] = f, A[10] = p, A[11] = c, A[12] = h, A[13] = g, A[14] = w) : (e = A[1], r = A[2], n = A[3], i = A[4], o = A[5], s = A[6], l = A[7], a = A[8], f = A[9], p = A[10], c = A[11], h = A[12], g = A[13], w = A[14]);
|
|
97
97
|
let b;
|
|
98
|
-
A[15] !==
|
|
98
|
+
A[15] !== l ? (b = l.filter(i0).map(n0), A[15] = l, A[16] = b) : b = A[16];
|
|
99
99
|
const u = b, d = s;
|
|
100
100
|
let m;
|
|
101
|
-
A[17] !==
|
|
101
|
+
A[17] !== p ? (m = () => p({
|
|
102
102
|
type: "deckgl",
|
|
103
103
|
value: !0
|
|
104
|
-
}), A[17] =
|
|
104
|
+
}), A[17] = p, A[18] = m) : m = A[18];
|
|
105
105
|
let v;
|
|
106
|
-
A[19] !==
|
|
106
|
+
A[19] !== g ? (v = {
|
|
107
107
|
depthTest: !1,
|
|
108
|
-
...
|
|
109
|
-
}, A[19] =
|
|
108
|
+
...g
|
|
109
|
+
}, A[19] = g, A[20] = v) : v = A[20];
|
|
110
110
|
let y;
|
|
111
111
|
A[21] !== h ? (y = /* @__PURE__ */ Y(o0, { overlayRef: h }), A[21] = h, A[22] = y) : y = A[22];
|
|
112
112
|
let k;
|
|
113
|
-
A[23] !==
|
|
113
|
+
A[23] !== p ? (k = () => p({
|
|
114
114
|
type: "load",
|
|
115
115
|
value: !0
|
|
116
|
-
}), A[23] =
|
|
116
|
+
}), A[23] = p, A[24] = k) : k = A[24];
|
|
117
117
|
let B;
|
|
118
118
|
A[25] !== e ? (B = /* @__PURE__ */ Y(Je, { compact: !1, ...e }), A[25] = e, A[26] = B) : B = A[26];
|
|
119
119
|
let M;
|
|
120
|
-
A[27] !==
|
|
120
|
+
A[27] !== a || A[28] !== f || A[29] !== k || A[30] !== B ? (M = /* @__PURE__ */ Y(At, { reuseMaps: !1, mapStyle: a, attributionControl: !1, onLoad: k, onIdle: f, children: B }), A[27] = a, A[28] = f, A[29] = k, A[30] = B, A[31] = M) : M = A[31];
|
|
121
121
|
let C;
|
|
122
122
|
return A[32] !== u || A[33] !== r || A[34] !== n || A[35] !== i || A[36] !== o || A[37] !== c || A[38] !== w || A[39] !== d || A[40] !== m || A[41] !== v || A[42] !== y || A[43] !== M ? (C = /* @__PURE__ */ Y(Xe, { children: /* @__PURE__ */ Y("div", { className: "deckgl-map", children: /* @__PURE__ */ _e(tt, { controller: r, id: o, ref: d, layers: u, getCursor: n, getTooltip: i, onLoad: m, onViewStateChange: c, parameters: v, ...w, children: [
|
|
123
123
|
y,
|
|
@@ -152,18 +152,18 @@ const s0 = (t) => {
|
|
|
152
152
|
const r = e, n = Me();
|
|
153
153
|
let i, o;
|
|
154
154
|
A[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => r, o = [r], A[1] = i, A[2] = o) : (i = A[1], o = A[2]), WA(t.instanceRef, i, o);
|
|
155
|
-
let s,
|
|
155
|
+
let s, l;
|
|
156
156
|
A[3] !== n ? (s = () => (r.setMap(n), () => {
|
|
157
157
|
r.finalize();
|
|
158
|
-
}),
|
|
159
|
-
let
|
|
160
|
-
return A[6] !== t ? (
|
|
158
|
+
}), l = [r, n], A[3] = n, A[4] = s, A[5] = l) : (s = A[4], l = A[5]), $(s, l);
|
|
159
|
+
let a, f;
|
|
160
|
+
return A[6] !== t ? (a = () => {
|
|
161
161
|
r.setProps(t);
|
|
162
|
-
}, f = [r, t], A[6] = t, A[7] =
|
|
162
|
+
}, f = [r, t], A[6] = t, A[7] = a, A[8] = f) : (a = A[7], f = A[8]), $(a, f), null;
|
|
163
163
|
};
|
|
164
164
|
function l0(t) {
|
|
165
165
|
const A = F(79);
|
|
166
|
-
let e, r, n, i, o, s,
|
|
166
|
+
let e, r, n, i, o, s, l, a, f, p, c, h;
|
|
167
167
|
A[0] !== t ? ({
|
|
168
168
|
id: n,
|
|
169
169
|
instanceRef: i,
|
|
@@ -171,23 +171,23 @@ function l0(t) {
|
|
|
171
171
|
layers: o,
|
|
172
172
|
gmapsProps: h,
|
|
173
173
|
overlayRef: f,
|
|
174
|
-
parameters:
|
|
174
|
+
parameters: p,
|
|
175
175
|
controller: r,
|
|
176
|
-
onLoad:
|
|
176
|
+
onLoad: l,
|
|
177
177
|
onIdle: s,
|
|
178
|
-
onViewStateChange:
|
|
178
|
+
onViewStateChange: a,
|
|
179
179
|
...c
|
|
180
|
-
} = t, A[0] = t, A[1] = e, A[2] = r, A[3] = n, A[4] = i, A[5] = o, A[6] = s, A[7] =
|
|
181
|
-
let
|
|
182
|
-
A[13] !== h ? (
|
|
180
|
+
} = t, A[0] = t, A[1] = e, A[2] = r, A[3] = n, A[4] = i, A[5] = o, A[6] = s, A[7] = l, A[8] = a, A[9] = f, A[10] = p, A[11] = c, A[12] = h) : (e = A[1], r = A[2], n = A[3], i = A[4], o = A[5], s = A[6], l = A[7], a = A[8], f = A[9], p = A[10], c = A[11], h = A[12]);
|
|
181
|
+
let g;
|
|
182
|
+
A[13] !== h ? (g = h === void 0 ? {
|
|
183
183
|
apiKey: ""
|
|
184
|
-
} : h, A[13] = h, A[14] =
|
|
184
|
+
} : h, A[13] = h, A[14] = g) : g = A[14];
|
|
185
185
|
let w, b, u;
|
|
186
|
-
A[15] !==
|
|
186
|
+
A[15] !== g ? ({
|
|
187
187
|
apiKey: u,
|
|
188
188
|
APIProviderProps: w,
|
|
189
189
|
...b
|
|
190
|
-
} =
|
|
190
|
+
} = g, A[15] = g, A[16] = w, A[17] = b, A[18] = u) : (w = A[16], b = A[17], u = A[18]);
|
|
191
191
|
let d;
|
|
192
192
|
A: {
|
|
193
193
|
if (typeof r == "boolean") {
|
|
@@ -233,7 +233,7 @@ function l0(t) {
|
|
|
233
233
|
}, A[27] = c.initialViewState?.maxZoom, A[28] = c.initialViewState?.minZoom, A[29] = k) : k = A[29], c.initialViewState?.maxZoom, c.initialViewState?.minZoom;
|
|
234
234
|
const B = k;
|
|
235
235
|
let M;
|
|
236
|
-
A[30] !== i || A[31] !==
|
|
236
|
+
A[30] !== i || A[31] !== a ? (M = (X) => {
|
|
237
237
|
const Z = i?.current?._deck, W = {
|
|
238
238
|
...Z?.viewState,
|
|
239
239
|
...X
|
|
@@ -247,13 +247,13 @@ function l0(t) {
|
|
|
247
247
|
width: Z?.width,
|
|
248
248
|
height: Z?.height
|
|
249
249
|
};
|
|
250
|
-
|
|
250
|
+
a?.({
|
|
251
251
|
viewState: eA,
|
|
252
252
|
interactionState: {
|
|
253
253
|
isZooming: !0
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
|
-
}, A[30] = i, A[31] =
|
|
256
|
+
}, A[30] = i, A[31] = a, A[32] = M) : M = A[32];
|
|
257
257
|
const C = M;
|
|
258
258
|
let S;
|
|
259
259
|
A[33] !== C || A[34] !== B ? (S = (X) => {
|
|
@@ -268,27 +268,27 @@ function l0(t) {
|
|
|
268
268
|
}, A[36] = D, A[37] = P, A[38] = R) : R = A[38];
|
|
269
269
|
const N = (c.initialViewState?.zoom ?? 0) + 1, E = (c.initialViewState?.maxZoom ?? 23) + 1, _ = (c.initialViewState?.minZoom ?? 0) + 1, T = c.initialViewState?.pitch, O = c.initialViewState?.bearing;
|
|
270
270
|
let L;
|
|
271
|
-
A[39] !== C || A[40] !==
|
|
272
|
-
|
|
271
|
+
A[39] !== C || A[40] !== l || A[41] !== c.initialViewState ? (L = () => {
|
|
272
|
+
l({
|
|
273
273
|
type: "load",
|
|
274
274
|
value: !0
|
|
275
275
|
}), C(c.initialViewState);
|
|
276
|
-
}, A[39] = C, A[40] =
|
|
276
|
+
}, A[39] = C, A[40] = l, A[41] = c.initialViewState, A[42] = L) : L = A[42];
|
|
277
277
|
const z = typeof m.scrollZoom == "boolean" ? m.scrollZoom : !!m.scrollZoom, U = m.dragPan ? "greedy" : "none", G = !m.doubleClickZoom;
|
|
278
278
|
let V;
|
|
279
279
|
A[43] !== n || A[44] !== f ? (V = /* @__PURE__ */ Y(c0, { id: n, overlayRef: f }), A[43] = n, A[44] = f, A[45] = V) : V = A[45];
|
|
280
280
|
let q;
|
|
281
|
-
A[46] !==
|
|
282
|
-
|
|
281
|
+
A[46] !== l ? (q = () => {
|
|
282
|
+
l({
|
|
283
283
|
type: "deckgl",
|
|
284
284
|
value: !0
|
|
285
285
|
});
|
|
286
|
-
}, A[46] =
|
|
286
|
+
}, A[46] = l, A[47] = q) : q = A[47];
|
|
287
287
|
let nA;
|
|
288
|
-
A[48] !==
|
|
288
|
+
A[48] !== p ? (nA = {
|
|
289
289
|
depthTest: !1,
|
|
290
|
-
...
|
|
291
|
-
}, A[48] =
|
|
290
|
+
...p
|
|
291
|
+
}, A[48] = p, A[49] = nA) : nA = A[49];
|
|
292
292
|
let J;
|
|
293
293
|
A[50] !== y || A[51] !== n || A[52] !== i || A[53] !== c || A[54] !== q || A[55] !== nA ? (J = /* @__PURE__ */ Y(s0, { id: n, instanceRef: i, layers: y, onLoad: q, parameters: nA, ...c }), A[50] = y, A[51] = n, A[52] = i, A[53] = c, A[54] = q, A[55] = nA, A[56] = J) : J = A[56];
|
|
294
294
|
let iA;
|
|
@@ -319,31 +319,31 @@ function c0(t) {
|
|
|
319
319
|
}
|
|
320
320
|
function f0(t) {
|
|
321
321
|
const A = F(46);
|
|
322
|
-
let e, r, n, i, o, s,
|
|
322
|
+
let e, r, n, i, o, s, l, a, f, p, c, h;
|
|
323
323
|
A[0] !== t ? ({
|
|
324
324
|
instanceRef: r,
|
|
325
325
|
overlayRef: i,
|
|
326
326
|
basemap: s,
|
|
327
|
-
controller:
|
|
328
|
-
id:
|
|
327
|
+
controller: l,
|
|
328
|
+
id: a,
|
|
329
329
|
layers: f,
|
|
330
330
|
gmapsProps: e,
|
|
331
|
-
getCursor:
|
|
331
|
+
getCursor: p,
|
|
332
332
|
getTooltip: c,
|
|
333
333
|
onLoad: n,
|
|
334
334
|
onViewStateChange: h,
|
|
335
335
|
...o
|
|
336
|
-
} = t, A[0] = t, A[1] = e, A[2] = r, A[3] = n, A[4] = i, A[5] = o, A[6] = s, A[7] =
|
|
337
|
-
const
|
|
336
|
+
} = t, A[0] = t, A[1] = e, A[2] = r, A[3] = n, A[4] = i, A[5] = o, A[6] = s, A[7] = l, A[8] = a, A[9] = f, A[10] = p, A[11] = c, A[12] = h) : (e = A[1], r = A[2], n = A[3], i = A[4], o = A[5], s = A[6], l = A[7], a = A[8], f = A[9], p = A[10], c = A[11], h = A[12]);
|
|
337
|
+
const g = s === void 0 ? lA.positron : s, w = l === void 0 ? !0 : l, b = a === void 0 ? "deck-gl-map" : a;
|
|
338
338
|
let u;
|
|
339
339
|
A[13] !== f ? (u = f === void 0 ? [] : f, A[13] = f, A[14] = u) : u = A[14];
|
|
340
|
-
const d = u, m =
|
|
340
|
+
const d = u, m = p === void 0 ? e0 : p, v = c === void 0 ? t0 : c, y = h === void 0 ? g0 : h;
|
|
341
341
|
let k;
|
|
342
342
|
A[15] === Symbol.for("react.memo_cache_sentinel") ? (k = [!1, !1], A[15] = k) : k = A[15];
|
|
343
343
|
const [B, M] = cA(k), {
|
|
344
344
|
url: C,
|
|
345
345
|
type: S
|
|
346
|
-
} = MA[
|
|
346
|
+
} = MA[g], x = S === uA.googleMaps;
|
|
347
347
|
let D;
|
|
348
348
|
A[16] === Symbol.for("react.memo_cache_sentinel") ? (D = (O) => {
|
|
349
349
|
const L = O.type === "deckgl" ? 0 : 1;
|
|
@@ -366,7 +366,7 @@ function f0(t) {
|
|
|
366
366
|
n?.(O);
|
|
367
367
|
}, _ = [B, n], A[19] = B, A[20] = n, A[21] = E, A[22] = _) : (E = A[21], _ = A[22]), $(E, _), x) {
|
|
368
368
|
let O;
|
|
369
|
-
return A[23] !==
|
|
369
|
+
return A[23] !== g || A[24] !== w || A[25] !== m || A[26] !== v || A[27] !== e || A[28] !== b || A[29] !== r || A[30] !== d || A[31] !== y || A[32] !== i || A[33] !== o ? (O = /* @__PURE__ */ Y(l0, { instanceRef: r, overlayRef: i, controller: w, id: b, basemap: g, layers: d, gmapsProps: e, getCursor: m, getTooltip: v, onLoad: P, onViewStateChange: y, ...o }), A[23] = g, A[24] = w, A[25] = m, A[26] = v, A[27] = e, A[28] = b, A[29] = r, A[30] = d, A[31] = y, A[32] = i, A[33] = o, A[34] = O) : O = A[34], O;
|
|
370
370
|
}
|
|
371
371
|
let T;
|
|
372
372
|
return A[35] !== w || A[36] !== m || A[37] !== v || A[38] !== b || A[39] !== r || A[40] !== d || A[41] !== C || A[42] !== y || A[43] !== i || A[44] !== o ? (T = /* @__PURE__ */ Y(r0, { instanceRef: r, overlayRef: i, controller: w, id: b, layers: d, mapStyle: C, getCursor: m, getTooltip: v, onLoad: P, onViewStateChange: y, ...o }), A[35] = w, A[36] = m, A[37] = v, A[38] = b, A[39] = r, A[40] = d, A[41] = C, A[42] = y, A[43] = i, A[44] = o, A[45] = T) : T = A[45], T;
|
|
@@ -410,12 +410,12 @@ function m0() {
|
|
|
410
410
|
function s(u, d) {
|
|
411
411
|
return d.clone !== !1 && d.isMergeableObject(u) ? w(o(u), u, d) : u;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function l(u, d, m) {
|
|
414
414
|
return u.concat(d).map(function(v) {
|
|
415
415
|
return s(v, m);
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function a(u, d) {
|
|
419
419
|
if (!d.customMerge)
|
|
420
420
|
return w;
|
|
421
421
|
var m = d.customMerge(u);
|
|
@@ -426,7 +426,7 @@ function m0() {
|
|
|
426
426
|
return Object.propertyIsEnumerable.call(u, d);
|
|
427
427
|
}) : [];
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function p(u) {
|
|
430
430
|
return Object.keys(u).concat(f(u));
|
|
431
431
|
}
|
|
432
432
|
function c(u, d) {
|
|
@@ -439,18 +439,18 @@ function m0() {
|
|
|
439
439
|
function h(u, d) {
|
|
440
440
|
return c(u, d) && !(Object.hasOwnProperty.call(u, d) && Object.propertyIsEnumerable.call(u, d));
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function g(u, d, m) {
|
|
443
443
|
var v = {};
|
|
444
|
-
return m.isMergeableObject(u) &&
|
|
444
|
+
return m.isMergeableObject(u) && p(u).forEach(function(y) {
|
|
445
445
|
v[y] = s(u[y], m);
|
|
446
|
-
}),
|
|
447
|
-
h(u, y) || (c(u, y) && m.isMergeableObject(d[y]) ? v[y] =
|
|
446
|
+
}), p(d).forEach(function(y) {
|
|
447
|
+
h(u, y) || (c(u, y) && m.isMergeableObject(d[y]) ? v[y] = a(y, m)(u[y], d[y], m) : v[y] = s(d[y], m));
|
|
448
448
|
}), v;
|
|
449
449
|
}
|
|
450
450
|
function w(u, d, m) {
|
|
451
|
-
m = m || {}, m.arrayMerge = m.arrayMerge ||
|
|
451
|
+
m = m || {}, m.arrayMerge = m.arrayMerge || l, m.isMergeableObject = m.isMergeableObject || t, m.cloneUnlessOtherwiseSpecified = s;
|
|
452
452
|
var v = Array.isArray(d), y = Array.isArray(u), k = v === y;
|
|
453
|
-
return k ? v ? m.arrayMerge(u, d, m) :
|
|
453
|
+
return k ? v ? m.arrayMerge(u, d, m) : g(u, d, m) : s(d, m);
|
|
454
454
|
}
|
|
455
455
|
w.all = function(d, m) {
|
|
456
456
|
if (!Array.isArray(d))
|
|
@@ -488,14 +488,14 @@ const pA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
488
488
|
const {
|
|
489
489
|
type: s
|
|
490
490
|
} = MA[o.maps[n].basemap], {
|
|
491
|
-
type:
|
|
492
|
-
} = MA[i],
|
|
491
|
+
type: l
|
|
492
|
+
} = MA[i], a = s === l && !!o.maps[n]?.isLoaded;
|
|
493
493
|
return {
|
|
494
494
|
maps: {
|
|
495
495
|
...o.maps,
|
|
496
496
|
[n]: {
|
|
497
497
|
...o.maps[n],
|
|
498
|
-
isLoaded:
|
|
498
|
+
isLoaded: a,
|
|
499
499
|
basemap: i
|
|
500
500
|
}
|
|
501
501
|
}
|
|
@@ -523,7 +523,7 @@ const pA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
523
523
|
if (!o?.viewState) return;
|
|
524
524
|
const {
|
|
525
525
|
width: s = 0,
|
|
526
|
-
height:
|
|
526
|
+
height: l = 0
|
|
527
527
|
} = o;
|
|
528
528
|
return {
|
|
529
529
|
// @ts-expect-error - viewState is not in the types
|
|
@@ -531,7 +531,7 @@ const pA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
531
531
|
// @ts-expect-error - viewState is not in the types
|
|
532
532
|
width: o.viewState.width ?? s,
|
|
533
533
|
// @ts-expect-error - viewState is not in the types
|
|
534
|
-
height: o.viewState.height ??
|
|
534
|
+
height: o.viewState.height ?? l
|
|
535
535
|
};
|
|
536
536
|
},
|
|
537
537
|
getViewports: (n, i) => r().getDeckInstance(n)?.getViewports(i),
|
|
@@ -539,9 +539,9 @@ const pA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
539
539
|
getBounds: (n, i, o) => {
|
|
540
540
|
const s = r();
|
|
541
541
|
if (!s.maps?.[n]?.isLoaded) return;
|
|
542
|
-
const
|
|
543
|
-
if (!
|
|
544
|
-
const f = new xe(
|
|
542
|
+
const l = s.getViewState(n);
|
|
543
|
+
if (!l) return;
|
|
544
|
+
const f = new xe(l).fitBounds(i, o?.boundsOptions);
|
|
545
545
|
return {
|
|
546
546
|
latitude: f.latitude,
|
|
547
547
|
longitude: f.longitude,
|
|
@@ -552,10 +552,10 @@ const pA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
552
552
|
addLayers: (n, i) => e((o) => {
|
|
553
553
|
const s = {
|
|
554
554
|
...o.maps
|
|
555
|
-
},
|
|
555
|
+
}, l = s[n]?.layers ?? [], a = /* @__PURE__ */ new Set([...l, ...i]);
|
|
556
556
|
return s[n] = {
|
|
557
557
|
...s[n],
|
|
558
|
-
layers: [...
|
|
558
|
+
layers: [...a]
|
|
559
559
|
}, {
|
|
560
560
|
maps: s
|
|
561
561
|
};
|
|
@@ -563,23 +563,23 @@ const pA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
563
563
|
removeLayers: (n, i) => e((o) => {
|
|
564
564
|
const s = {
|
|
565
565
|
...o.maps
|
|
566
|
-
},
|
|
566
|
+
}, l = s[n]?.layers ?? [];
|
|
567
567
|
return s[n] = {
|
|
568
568
|
...s[n],
|
|
569
|
-
layers:
|
|
569
|
+
layers: l.filter((a) => !i.includes(a))
|
|
570
570
|
}, {
|
|
571
571
|
maps: s
|
|
572
572
|
};
|
|
573
573
|
}),
|
|
574
574
|
getController: (n) => r().maps[n]?.controller ?? {},
|
|
575
575
|
setController: (n, i) => e((o) => {
|
|
576
|
-
const s = o.maps[n]?.controller ?? {},
|
|
576
|
+
const s = o.maps[n]?.controller ?? {}, a = !i || typeof i == "boolean" ? i : pA(typeof s == "boolean" ? {} : s, i);
|
|
577
577
|
return {
|
|
578
578
|
maps: {
|
|
579
579
|
...o.maps,
|
|
580
580
|
[n]: {
|
|
581
581
|
...o.maps[n],
|
|
582
|
-
controller:
|
|
582
|
+
controller: a
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
};
|
|
@@ -621,11 +621,11 @@ const pA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
621
621
|
...i
|
|
622
622
|
};
|
|
623
623
|
if (!s) return;
|
|
624
|
-
const
|
|
625
|
-
e((
|
|
624
|
+
const l = new xe(s);
|
|
625
|
+
e((a) => ({
|
|
626
626
|
viewports: {
|
|
627
|
-
...
|
|
628
|
-
[n]:
|
|
627
|
+
...a.viewports,
|
|
628
|
+
[n]: l
|
|
629
629
|
}
|
|
630
630
|
}));
|
|
631
631
|
},
|
|
@@ -725,24 +725,24 @@ const pA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
725
725
|
}
|
|
726
726
|
}));
|
|
727
727
|
}, C0 = ((t, A) => ({
|
|
728
|
-
setLayerHover: (e, r, n) => {
|
|
729
|
-
const
|
|
730
|
-
if (!a || !
|
|
731
|
-
const [
|
|
732
|
-
if (
|
|
733
|
-
const
|
|
734
|
-
x:
|
|
735
|
-
y:
|
|
728
|
+
setLayerHover: (e, r, n, i = (o) => o[0]) => {
|
|
729
|
+
const o = A(), s = o.getDeckInstance(e), l = o.getViewport(e), a = s?.widgetManager;
|
|
730
|
+
if (!a || !l) return;
|
|
731
|
+
const [f, p] = l.project(n);
|
|
732
|
+
if (f == null || p == null || isNaN(f) || isNaN(p)) return;
|
|
733
|
+
const c = s.pickMultipleObjects({
|
|
734
|
+
x: f,
|
|
735
|
+
y: p,
|
|
736
736
|
radius: 5,
|
|
737
737
|
layerIds: [r]
|
|
738
|
-
});
|
|
739
|
-
if (!
|
|
740
|
-
const
|
|
741
|
-
...
|
|
742
|
-
x:
|
|
743
|
-
y:
|
|
744
|
-
},
|
|
745
|
-
|
|
738
|
+
}), h = i(c);
|
|
739
|
+
if (!h) return;
|
|
740
|
+
const g = {
|
|
741
|
+
...h,
|
|
742
|
+
x: f,
|
|
743
|
+
y: p
|
|
744
|
+
}, w = new MouseEvent("mouseenter");
|
|
745
|
+
h.layer?.onHover?.(g, w), a.onHover?.(g, w);
|
|
746
746
|
},
|
|
747
747
|
clearLayersHover: (e) => {
|
|
748
748
|
const i = A().getDeckInstance(e)?.widgetManager;
|
|
@@ -787,12 +787,12 @@ function wi(t) {
|
|
|
787
787
|
} = I(n), o = I(M0);
|
|
788
788
|
let s;
|
|
789
789
|
A[2] !== r || A[3] !== o ? (s = (f) => o(r, f), A[2] = r, A[3] = o, A[4] = s) : s = A[4];
|
|
790
|
-
const
|
|
791
|
-
let
|
|
792
|
-
return A[5] !== i || A[6] !== e || A[7] !==
|
|
790
|
+
const l = s;
|
|
791
|
+
let a;
|
|
792
|
+
return A[5] !== i || A[6] !== e || A[7] !== l ? (a = e({
|
|
793
793
|
basemap: i,
|
|
794
|
-
setBasemap:
|
|
795
|
-
}), A[5] = i, A[6] = e, A[7] =
|
|
794
|
+
setBasemap: l
|
|
795
|
+
}), A[5] = i, A[6] = e, A[7] = l, A[8] = a) : a = A[8], a;
|
|
796
796
|
}
|
|
797
797
|
function M0(t) {
|
|
798
798
|
return t.setBasemap;
|
|
@@ -888,7 +888,7 @@ const wA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
888
888
|
}, o = i[e] ?? {
|
|
889
889
|
type: null,
|
|
890
890
|
props: {}
|
|
891
|
-
}, s = [...o.props.extensions ?? [], ...r.props?.extensions ?? []].reduce((
|
|
891
|
+
}, s = [...o.props.extensions ?? [], ...r.props?.extensions ?? []].reduce((a, f) => (a.some((p) => p.equals(f)) || a.push(f), a), []), l = o.legend || r.legend ? {
|
|
892
892
|
...o.legend,
|
|
893
893
|
...r.legend
|
|
894
894
|
} : void 0;
|
|
@@ -905,7 +905,7 @@ const wA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
905
905
|
},
|
|
906
906
|
extensions: s
|
|
907
907
|
},
|
|
908
|
-
legend:
|
|
908
|
+
legend: l
|
|
909
909
|
}, {
|
|
910
910
|
layers: i
|
|
911
911
|
};
|
|
@@ -944,30 +944,30 @@ function Re(t) {
|
|
|
944
944
|
layerId: r
|
|
945
945
|
} = t;
|
|
946
946
|
let n;
|
|
947
|
-
A[0] !== e ? (n = (
|
|
947
|
+
A[0] !== e ? (n = (g) => g.maps[e]?.basemap, A[0] = e, A[1] = n) : n = A[1];
|
|
948
948
|
const i = I(n);
|
|
949
949
|
let o;
|
|
950
|
-
A[2] !== e ? (o = (
|
|
951
|
-
const s = I(o),
|
|
950
|
+
A[2] !== e ? (o = (g) => g.maps[e]?.isLoaded, A[2] = e, A[3] = o) : o = A[3];
|
|
951
|
+
const s = I(o), l = I(L0), a = CA(T0), {
|
|
952
952
|
type: f
|
|
953
|
-
} = MA[i],
|
|
953
|
+
} = MA[i], p = f === uA.googleMaps;
|
|
954
954
|
let c, h;
|
|
955
|
-
A[4] !==
|
|
956
|
-
let
|
|
957
|
-
if (
|
|
958
|
-
const w =
|
|
959
|
-
|
|
955
|
+
A[4] !== l || A[5] !== p || A[6] !== s || A[7] !== r || A[8] !== e || A[9] !== a ? (c = () => {
|
|
956
|
+
let g = null;
|
|
957
|
+
if (p && s) {
|
|
958
|
+
const w = l(e);
|
|
959
|
+
g = new vt(w.getDiv(), {
|
|
960
960
|
recognizers: Object.keys(Fe).map(P0)
|
|
961
961
|
});
|
|
962
962
|
}
|
|
963
|
-
return
|
|
963
|
+
return a(r, {
|
|
964
964
|
props: {
|
|
965
|
-
eventManager:
|
|
965
|
+
eventManager: g
|
|
966
966
|
}
|
|
967
967
|
}), () => {
|
|
968
|
-
|
|
968
|
+
g?.destroy(), g = null;
|
|
969
969
|
};
|
|
970
|
-
}, h = [
|
|
970
|
+
}, h = [l, p, s, r, e, a], A[4] = l, A[5] = p, A[6] = s, A[7] = r, A[8] = e, A[9] = a, A[10] = c, A[11] = h) : (c = A[10], h = A[11]), $(c, h);
|
|
971
971
|
}
|
|
972
972
|
function P0(t) {
|
|
973
973
|
const [A, e, r, n] = Fe[t], i = {
|
|
@@ -1058,7 +1058,7 @@ function Q0({
|
|
|
1058
1058
|
getFillColor: r,
|
|
1059
1059
|
getEditHandlePointColor: n.fill,
|
|
1060
1060
|
getEditHandlePointOutlineColor: n.outline,
|
|
1061
|
-
dataComparator: (
|
|
1061
|
+
dataComparator: (l, a) => l.features[0] === a.features[0]
|
|
1062
1062
|
});
|
|
1063
1063
|
return pA(o, i);
|
|
1064
1064
|
}
|
|
@@ -1068,15 +1068,15 @@ const O0 = (t) => ZA()((A) => ({
|
|
|
1068
1068
|
enabled: i = !1,
|
|
1069
1069
|
mapId: o,
|
|
1070
1070
|
modeInstance: s = new jA.polygon.mode(),
|
|
1071
|
-
modes:
|
|
1072
|
-
modeSelected:
|
|
1071
|
+
modes: l = jA,
|
|
1072
|
+
modeSelected: a = jA.polygon.value,
|
|
1073
1073
|
values: f = {}
|
|
1074
1074
|
} = n;
|
|
1075
1075
|
return r[o] = {
|
|
1076
1076
|
enabled: i,
|
|
1077
1077
|
modeInstance: s,
|
|
1078
|
-
modes:
|
|
1079
|
-
modeSelected:
|
|
1078
|
+
modes: l,
|
|
1079
|
+
modeSelected: a,
|
|
1080
1080
|
values: f
|
|
1081
1081
|
}, r;
|
|
1082
1082
|
}, {}),
|
|
@@ -1096,11 +1096,11 @@ const O0 = (t) => ZA()((A) => ({
|
|
|
1096
1096
|
A((o) => {
|
|
1097
1097
|
const s = {
|
|
1098
1098
|
...o.data[r].values
|
|
1099
|
-
},
|
|
1099
|
+
}, l = s[n] ?? {
|
|
1100
1100
|
type: "mask"
|
|
1101
1101
|
};
|
|
1102
1102
|
return s[n] = {
|
|
1103
|
-
...
|
|
1103
|
+
...l,
|
|
1104
1104
|
...i,
|
|
1105
1105
|
id: n
|
|
1106
1106
|
}, i || delete s[n], {
|
|
@@ -1118,15 +1118,15 @@ const O0 = (t) => ZA()((A) => ({
|
|
|
1118
1118
|
A((o) => {
|
|
1119
1119
|
const s = {
|
|
1120
1120
|
...o.data[r].values
|
|
1121
|
-
},
|
|
1122
|
-
return
|
|
1121
|
+
}, l = s[n] ?? {};
|
|
1122
|
+
return l.properties.visible = i, {
|
|
1123
1123
|
data: {
|
|
1124
1124
|
...o.data,
|
|
1125
1125
|
[r]: {
|
|
1126
1126
|
...o.data[r],
|
|
1127
1127
|
values: {
|
|
1128
1128
|
...s,
|
|
1129
|
-
[n]:
|
|
1129
|
+
[n]: l
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
@@ -1183,13 +1183,13 @@ function R0(t) {
|
|
|
1183
1183
|
const i = K(n), o = K(H0);
|
|
1184
1184
|
let s;
|
|
1185
1185
|
A[2] !== e ? (s = (C) => C.data[e]?.values, A[2] = e, A[3] = s) : s = A[3];
|
|
1186
|
-
const
|
|
1187
|
-
let g;
|
|
1188
|
-
A[4] !== e ? (g = (C) => C.data[e]?.modeSelected, A[4] = e, A[5] = g) : g = A[5];
|
|
1189
|
-
const c = K(g), h = K(z0);
|
|
1186
|
+
const l = K(s), a = K(V0), f = K(j0);
|
|
1190
1187
|
let p;
|
|
1191
|
-
A[
|
|
1192
|
-
const
|
|
1188
|
+
A[4] !== e ? (p = (C) => C.data[e]?.modeSelected, A[4] = e, A[5] = p) : p = A[5];
|
|
1189
|
+
const c = K(p), h = K(z0);
|
|
1190
|
+
let g;
|
|
1191
|
+
A[6] !== e ? (g = (C) => C.data[e]?.modes, A[6] = e, A[7] = g) : g = A[7];
|
|
1192
|
+
const w = K(g), b = K(G0);
|
|
1193
1193
|
let u, d;
|
|
1194
1194
|
A[8] !== i || A[9] !== e || A[10] !== c || A[11] !== w || A[12] !== b ? (u = () => {
|
|
1195
1195
|
const C = w[c];
|
|
@@ -1200,7 +1200,7 @@ function R0(t) {
|
|
|
1200
1200
|
}, d = [i, e, c, w, b], A[8] = i, A[9] = e, A[10] = c, A[11] = w, A[12] = b, A[13] = u, A[14] = d) : (u = A[13], d = A[14]), $(u, d);
|
|
1201
1201
|
const m = U0;
|
|
1202
1202
|
let v;
|
|
1203
|
-
A[15] !==
|
|
1203
|
+
A[15] !== l ? (v = [Object.values(l).filter(N0).map(m)], A[15] = l, A[16] = v) : v = A[16];
|
|
1204
1204
|
const [y] = v;
|
|
1205
1205
|
let k;
|
|
1206
1206
|
A[17] !== e || A[18] !== o || A[19] !== h ? (k = (C) => {
|
|
@@ -1208,9 +1208,9 @@ function R0(t) {
|
|
|
1208
1208
|
}, A[17] = e, A[18] = o, A[19] = h, A[20] = k) : k = A[20];
|
|
1209
1209
|
const B = k;
|
|
1210
1210
|
let M;
|
|
1211
|
-
if (A[21] !== r || A[22] !== i || A[23] !== B || A[24] !== e || A[25] !== y || A[26] !== c || A[27] !== w || A[28] !== o || A[29] !==
|
|
1211
|
+
if (A[21] !== r || A[22] !== i || A[23] !== B || A[24] !== e || A[25] !== y || A[26] !== c || A[27] !== w || A[28] !== o || A[29] !== a || A[30] !== f) {
|
|
1212
1212
|
let C;
|
|
1213
|
-
A[32] !== e || A[33] !==
|
|
1213
|
+
A[32] !== e || A[33] !== a ? (C = (D, P) => a(e, D, P), A[32] = e, A[33] = a, A[34] = C) : C = A[34];
|
|
1214
1214
|
let S;
|
|
1215
1215
|
A[35] !== e || A[36] !== o ? (S = (D) => o(e, D), A[35] = e, A[36] = o, A[37] = S) : S = A[37];
|
|
1216
1216
|
let x;
|
|
@@ -1226,7 +1226,7 @@ function R0(t) {
|
|
|
1226
1226
|
setEnabled: S,
|
|
1227
1227
|
setVisibility: x,
|
|
1228
1228
|
setModeSelected: B
|
|
1229
|
-
}), A[21] = r, A[22] = i, A[23] = B, A[24] = e, A[25] = y, A[26] = c, A[27] = w, A[28] = o, A[29] =
|
|
1229
|
+
}), A[21] = r, A[22] = i, A[23] = B, A[24] = e, A[25] = y, A[26] = c, A[27] = w, A[28] = o, A[29] = a, A[30] = f, A[31] = M;
|
|
1230
1230
|
} else
|
|
1231
1231
|
M = A[31];
|
|
1232
1232
|
return M;
|
|
@@ -1302,15 +1302,15 @@ function OA({
|
|
|
1302
1302
|
},
|
|
1303
1303
|
dimension: o = "length"
|
|
1304
1304
|
}) {
|
|
1305
|
-
const s = A === qA["m-km"],
|
|
1306
|
-
let f,
|
|
1307
|
-
if (
|
|
1305
|
+
const s = A === qA["m-km"], l = A === qA["ft-mi"], a = s || l;
|
|
1306
|
+
let f, p;
|
|
1307
|
+
if (a) {
|
|
1308
1308
|
const h = t < (r ?? he);
|
|
1309
|
-
let
|
|
1310
|
-
f = h ? BA.meter : BA.kilometer,
|
|
1309
|
+
let g = h ? j.meter : j.kilometer;
|
|
1310
|
+
f = h ? BA.meter : BA.kilometer, l && (f = h ? BA.feet : BA.mile, g = h ? j.feet : j.mile), p = fe(t, g, o);
|
|
1311
1311
|
} else
|
|
1312
|
-
f = BA[A],
|
|
1313
|
-
let c = `${Te(
|
|
1312
|
+
f = BA[A], p = fe(t, A, o);
|
|
1313
|
+
let c = `${Te(p, e, {
|
|
1314
1314
|
style: "unit",
|
|
1315
1315
|
unit: f,
|
|
1316
1316
|
unitDisplay: "short",
|
|
@@ -1368,10 +1368,10 @@ class K0 extends gt {
|
|
|
1368
1368
|
} = A, n = pt(r), i = this.getClickSequence();
|
|
1369
1369
|
let o = !1;
|
|
1370
1370
|
!n && !this.allowOverlapping(e) && (this.addClickSequence(A), o = !0);
|
|
1371
|
-
const s = this.getClickSequence(),
|
|
1371
|
+
const s = this.getClickSequence(), l = [...s, s[0]];
|
|
1372
1372
|
this.area = le({
|
|
1373
1373
|
type: "Polygon",
|
|
1374
|
-
coordinates: [
|
|
1374
|
+
coordinates: [l]
|
|
1375
1375
|
}), this.isFinalizedEdition(i, n) ? this.finalizeEdition(e) : o && e.onEdit({
|
|
1376
1376
|
// data is the same
|
|
1377
1377
|
updatedData: e.data,
|
|
@@ -1757,19 +1757,19 @@ function rr({
|
|
|
1757
1757
|
layerProps: n = {},
|
|
1758
1758
|
defaultType: i = "mask"
|
|
1759
1759
|
}) {
|
|
1760
|
-
const o = I((E) => E.getController), s = I((E) => E.setController),
|
|
1760
|
+
const o = I((E) => E.getController), s = I((E) => E.setController), l = K((E) => E.data[A]?.enabled), a = K((E) => E.setEnabled), f = K((E) => E.data[A]?.values), p = K((E) => E.setValue), c = K((E) => E.data[A]?.modeInstance), h = K((E) => E.data[A]?.modeSelected), g = CA((E) => E.setLayer), w = I((E) => E.addLayers), b = I((E) => E.removeLayers), u = I(IA((E) => E.maps[A]?.layers.filter((_) => !tr.includes(_)))), d = I((E) => E.getDeckInstance), m = TA({});
|
|
1761
1761
|
Re({
|
|
1762
1762
|
mapId: A,
|
|
1763
1763
|
layerId: wA
|
|
1764
1764
|
}), $(() => {
|
|
1765
1765
|
const E = o(A);
|
|
1766
|
-
return
|
|
1766
|
+
return l && s(A, {
|
|
1767
1767
|
doubleClickZoom: !1,
|
|
1768
1768
|
dragPan: h !== "lasso"
|
|
1769
1769
|
}), () => {
|
|
1770
1770
|
s(A, E);
|
|
1771
1771
|
};
|
|
1772
|
-
}, [
|
|
1772
|
+
}, [l, o, A, h, s]);
|
|
1773
1773
|
const v = RA(() => ee({
|
|
1774
1774
|
values: f
|
|
1775
1775
|
}), [f]), y = RA(() => ({
|
|
@@ -1795,18 +1795,18 @@ function rr({
|
|
|
1795
1795
|
b(A, [wA]);
|
|
1796
1796
|
}), [w, A, b]);
|
|
1797
1797
|
const P = EA(() => {
|
|
1798
|
-
x(), S([]),
|
|
1799
|
-
}, [A, x,
|
|
1798
|
+
x(), S([]), a(A, !1);
|
|
1799
|
+
}, [A, x, a]), R = EA((E) => {
|
|
1800
1800
|
E.forEach((_, T) => {
|
|
1801
1801
|
_.properties.label ??= `${r?.mask} ${D.current}`, _.properties.index = T, _.properties.visible = _.properties.visible ?? !0;
|
|
1802
1802
|
const O = _.id ?? crypto.randomUUID();
|
|
1803
|
-
|
|
1803
|
+
p(A, O, {
|
|
1804
1804
|
geometry: _.geometry,
|
|
1805
1805
|
properties: _.properties,
|
|
1806
1806
|
type: i
|
|
1807
1807
|
});
|
|
1808
1808
|
});
|
|
1809
|
-
}, [i, r?.mask, A,
|
|
1809
|
+
}, [i, r?.mask, A, p]), N = EA(({
|
|
1810
1810
|
editType: E,
|
|
1811
1811
|
updatedData: _
|
|
1812
1812
|
}) => {
|
|
@@ -1817,7 +1817,7 @@ function rr({
|
|
|
1817
1817
|
M(_), E !== rA.updateTentativeFeature && E === rA.addFeature && (h !== "edit" && (D.current = D.current + 1), R(_.features), P());
|
|
1818
1818
|
}, [R, P, h]);
|
|
1819
1819
|
return $(() => {
|
|
1820
|
-
const E =
|
|
1820
|
+
const E = l, {
|
|
1821
1821
|
border: _,
|
|
1822
1822
|
point: T,
|
|
1823
1823
|
fill: O
|
|
@@ -1847,8 +1847,8 @@ function rr({
|
|
|
1847
1847
|
onEdit: N,
|
|
1848
1848
|
mode: E ? c : new mt()
|
|
1849
1849
|
});
|
|
1850
|
-
|
|
1851
|
-
}, [B,
|
|
1850
|
+
g(wA, U);
|
|
1851
|
+
}, [B, l, n.mask, k, c, N, C, g, e.colors.editing, e.colors.finished]), $(() => {
|
|
1852
1852
|
const E = {
|
|
1853
1853
|
...PA,
|
|
1854
1854
|
data: y,
|
|
@@ -1857,29 +1857,29 @@ function rr({
|
|
|
1857
1857
|
getFilterValue: k
|
|
1858
1858
|
}
|
|
1859
1859
|
};
|
|
1860
|
-
return
|
|
1860
|
+
return g(PA.id, {
|
|
1861
1861
|
type: kt,
|
|
1862
1862
|
props: E
|
|
1863
1863
|
}), w(A, [PA.id]), () => {
|
|
1864
1864
|
b(A, [PA.id]);
|
|
1865
1865
|
};
|
|
1866
|
-
}, [w, A, y, k, b,
|
|
1867
|
-
!
|
|
1868
|
-
}, [B.features,
|
|
1866
|
+
}, [w, A, y, k, b, g]), $(() => {
|
|
1867
|
+
!l && C.length && B.features.length && (R(B.features), P());
|
|
1868
|
+
}, [B.features, l, R, P, C.length]), $(() => {
|
|
1869
1869
|
u?.forEach((E) => {
|
|
1870
1870
|
const _ = d(A)?.props.layers.find((O) => O.props.id === E);
|
|
1871
1871
|
if (!_) return;
|
|
1872
|
-
|
|
1873
|
-
const T = !
|
|
1874
|
-
|
|
1872
|
+
l && (m.current[E] = _?.props.pickable);
|
|
1873
|
+
const T = !l && (m.current[E] ?? _?.props.pickable);
|
|
1874
|
+
g(E, {
|
|
1875
1875
|
props: {
|
|
1876
1876
|
pickable: T,
|
|
1877
1877
|
extensions: [new yt()],
|
|
1878
|
-
maskId: !
|
|
1878
|
+
maskId: !l && k.length ? QA : void 0
|
|
1879
1879
|
}
|
|
1880
1880
|
});
|
|
1881
1881
|
});
|
|
1882
|
-
}, [
|
|
1882
|
+
}, [l, d, A, u, k.length, g]), t;
|
|
1883
1883
|
}
|
|
1884
1884
|
rr.Controls = R0;
|
|
1885
1885
|
function nr({
|
|
@@ -1908,9 +1908,9 @@ function ir({
|
|
|
1908
1908
|
onEdit: i,
|
|
1909
1909
|
guideColor: o,
|
|
1910
1910
|
pointColor: s,
|
|
1911
|
-
textOptions:
|
|
1911
|
+
textOptions: l
|
|
1912
1912
|
}) {
|
|
1913
|
-
const
|
|
1913
|
+
const a = pA(A, {
|
|
1914
1914
|
visible: r,
|
|
1915
1915
|
pickable: r,
|
|
1916
1916
|
modeConfig: {
|
|
@@ -1936,10 +1936,10 @@ function ir({
|
|
|
1936
1936
|
meters: c.text,
|
|
1937
1937
|
locale: e,
|
|
1938
1938
|
unit: n,
|
|
1939
|
-
options:
|
|
1939
|
+
options: l
|
|
1940
1940
|
}),
|
|
1941
1941
|
updateTriggers: {
|
|
1942
|
-
getText: [n, e,
|
|
1942
|
+
getText: [n, e, l]
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
@@ -1953,7 +1953,7 @@ function ir({
|
|
|
1953
1953
|
getEditHandlePointColor: s,
|
|
1954
1954
|
getEditHandlePointOutlineColor: o
|
|
1955
1955
|
});
|
|
1956
|
-
return pA(f,
|
|
1956
|
+
return pA(f, a);
|
|
1957
1957
|
}
|
|
1958
1958
|
const or = (t) => ZA()((A) => ({
|
|
1959
1959
|
measurements: t.reduce((r, n) => {
|
|
@@ -1961,24 +1961,24 @@ const or = (t) => ZA()((A) => ({
|
|
|
1961
1961
|
mapId: i,
|
|
1962
1962
|
modeSelected: o,
|
|
1963
1963
|
modes: s = Ar,
|
|
1964
|
-
units:
|
|
1965
|
-
distance:
|
|
1964
|
+
units: l = er,
|
|
1965
|
+
distance: a = 0,
|
|
1966
1966
|
finished: f = !1,
|
|
1967
|
-
locale:
|
|
1967
|
+
locale: p = "en",
|
|
1968
1968
|
positions: c = [],
|
|
1969
1969
|
clearLayerOnStart: h = !1,
|
|
1970
|
-
unit:
|
|
1970
|
+
unit: g = qA["m-km"],
|
|
1971
1971
|
enabled: w = !1
|
|
1972
1972
|
} = n;
|
|
1973
1973
|
return r[i] = {
|
|
1974
1974
|
modes: s,
|
|
1975
|
-
units:
|
|
1975
|
+
units: l,
|
|
1976
1976
|
modeSelected: o,
|
|
1977
|
-
distance:
|
|
1977
|
+
distance: a,
|
|
1978
1978
|
finished: f,
|
|
1979
|
-
locale:
|
|
1979
|
+
locale: p,
|
|
1980
1980
|
positions: c,
|
|
1981
|
-
unit:
|
|
1981
|
+
unit: g,
|
|
1982
1982
|
clearLayerOnStart: h,
|
|
1983
1983
|
enabled: w
|
|
1984
1984
|
}, r;
|
|
@@ -2102,16 +2102,16 @@ function je(t) {
|
|
|
2102
2102
|
const o = H(i);
|
|
2103
2103
|
let s;
|
|
2104
2104
|
A[4] !== e ? (s = (Q) => Q.measurements[e].distance, A[4] = e, A[5] = s) : s = A[5];
|
|
2105
|
-
const
|
|
2105
|
+
const l = H(s), a = H(pr);
|
|
2106
2106
|
let f;
|
|
2107
|
-
A[6] !==
|
|
2108
|
-
const
|
|
2107
|
+
A[6] !== a || A[7] !== e ? (f = (Q) => a(e, Q), A[6] = a, A[7] = e, A[8] = f) : f = A[8];
|
|
2108
|
+
const p = f;
|
|
2109
2109
|
let c;
|
|
2110
2110
|
A[9] !== e ? (c = (Q) => Q.measurements[e].clearLayerOnStart, A[9] = e, A[10] = c) : c = A[10];
|
|
2111
2111
|
const h = H(c);
|
|
2112
|
-
let
|
|
2113
|
-
A[11] !== e ? (
|
|
2114
|
-
const w = H(
|
|
2112
|
+
let g;
|
|
2113
|
+
A[11] !== e ? (g = (Q) => Q.measurements[e].enabled, A[11] = e, A[12] = g) : g = A[12];
|
|
2114
|
+
const w = H(g), b = H(gr);
|
|
2115
2115
|
let u;
|
|
2116
2116
|
A[13] !== b || A[14] !== e ? (u = (Q) => b(e, Q), A[13] = b, A[14] = e, A[15] = u) : u = A[15];
|
|
2117
2117
|
const d = u;
|
|
@@ -2164,10 +2164,10 @@ function je(t) {
|
|
|
2164
2164
|
}, A[50] = d, A[51] = oA) : oA = A[51];
|
|
2165
2165
|
const FA = oA;
|
|
2166
2166
|
let xA;
|
|
2167
|
-
return A[52] !== eA || A[53] !== h || A[54] !==
|
|
2167
|
+
return A[52] !== eA || A[53] !== h || A[54] !== l || A[55] !== w || A[56] !== C || A[57] !== R || A[58] !== O || A[59] !== v || A[60] !== n || A[61] !== V || A[62] !== p || A[63] !== d || A[64] !== D || A[65] !== _ || A[66] !== U || A[67] !== B || A[68] !== J || A[69] !== Z || A[70] !== FA || A[71] !== fA || A[72] !== o ? (xA = {
|
|
2168
2168
|
modes: n,
|
|
2169
2169
|
units: o,
|
|
2170
|
-
distance:
|
|
2170
|
+
distance: l,
|
|
2171
2171
|
clearLayerOnStart: h,
|
|
2172
2172
|
modeSelected: v,
|
|
2173
2173
|
enabled: w,
|
|
@@ -2176,7 +2176,7 @@ function je(t) {
|
|
|
2176
2176
|
modeInstance: O,
|
|
2177
2177
|
positions: V,
|
|
2178
2178
|
unit: fA,
|
|
2179
|
-
setDistance:
|
|
2179
|
+
setDistance: p,
|
|
2180
2180
|
setModeSelected: B,
|
|
2181
2181
|
setFinished: D,
|
|
2182
2182
|
setLocale: _,
|
|
@@ -2186,7 +2186,7 @@ function je(t) {
|
|
|
2186
2186
|
toggleLayer: FA,
|
|
2187
2187
|
clearLayer: eA,
|
|
2188
2188
|
setModeInstance: U
|
|
2189
|
-
}, A[52] = eA, A[53] = h, A[54] =
|
|
2189
|
+
}, A[52] = eA, A[53] = h, A[54] = l, A[55] = w, A[56] = C, A[57] = R, A[58] = O, A[59] = v, A[60] = n, A[61] = V, A[62] = p, A[63] = d, A[64] = D, A[65] = _, A[66] = U, A[67] = B, A[68] = J, A[69] = Z, A[70] = FA, A[71] = fA, A[72] = o, A[73] = xA) : xA = A[73], xA;
|
|
2190
2190
|
}
|
|
2191
2191
|
function lr(t) {
|
|
2192
2192
|
return t.setUnit;
|
|
@@ -2225,13 +2225,13 @@ function dr(t) {
|
|
|
2225
2225
|
const {
|
|
2226
2226
|
modes: o,
|
|
2227
2227
|
units: s,
|
|
2228
|
-
distance:
|
|
2229
|
-
setDistance:
|
|
2228
|
+
distance: l,
|
|
2229
|
+
setDistance: a,
|
|
2230
2230
|
clearLayerOnStart: f,
|
|
2231
|
-
modeSelected:
|
|
2231
|
+
modeSelected: p,
|
|
2232
2232
|
setModeSelected: c,
|
|
2233
2233
|
enabled: h,
|
|
2234
|
-
setEnabled:
|
|
2234
|
+
setEnabled: g,
|
|
2235
2235
|
finished: w,
|
|
2236
2236
|
setFinished: b,
|
|
2237
2237
|
locale: u,
|
|
@@ -2246,52 +2246,52 @@ function dr(t) {
|
|
|
2246
2246
|
toggleLayer: S
|
|
2247
2247
|
} = je(i);
|
|
2248
2248
|
let x;
|
|
2249
|
-
A[2] !==
|
|
2250
|
-
if (
|
|
2251
|
-
const _ = o[
|
|
2249
|
+
A[2] !== p || A[3] !== o || A[4] !== v || A[5] !== k ? (x = () => {
|
|
2250
|
+
if (p && o[p]) {
|
|
2251
|
+
const _ = o[p].mode;
|
|
2252
2252
|
v(new _());
|
|
2253
2253
|
}
|
|
2254
2254
|
return () => {
|
|
2255
2255
|
k([]);
|
|
2256
2256
|
};
|
|
2257
|
-
}, A[2] =
|
|
2257
|
+
}, A[2] = p, A[3] = o, A[4] = v, A[5] = k, A[6] = x) : x = A[6];
|
|
2258
2258
|
let D;
|
|
2259
|
-
A[7] !==
|
|
2259
|
+
A[7] !== p || A[8] !== o || A[9] !== g || A[10] !== v || A[11] !== k ? (D = [o, p, k, v, g], A[7] = p, A[8] = o, A[9] = g, A[10] = v, A[11] = k, A[12] = D) : D = A[12], $(x, D);
|
|
2260
2260
|
let P;
|
|
2261
2261
|
A[13] !== S || A[14] !== C || A[15] !== f || A[16] !== w ? (P = (_) => {
|
|
2262
2262
|
_ && (f || !w) && C(), S(_);
|
|
2263
2263
|
}, A[13] = S, A[14] = C, A[15] = f, A[16] = w, A[17] = P) : P = A[17];
|
|
2264
2264
|
const R = P, N = !!f;
|
|
2265
2265
|
let E;
|
|
2266
|
-
return A[18] !== n || A[19] !== C || A[20] !==
|
|
2266
|
+
return A[18] !== n || A[19] !== C || A[20] !== l || A[21] !== h || A[22] !== w || A[23] !== u || A[24] !== e || A[25] !== m || A[26] !== p || A[27] !== o || A[28] !== y || A[29] !== a || A[30] !== g || A[31] !== b || A[32] !== d || A[33] !== c || A[34] !== k || A[35] !== M || A[36] !== N || A[37] !== r || A[38] !== R || A[39] !== B || A[40] !== s ? (E = n({
|
|
2267
2267
|
mapId: e,
|
|
2268
|
-
distance:
|
|
2268
|
+
distance: l,
|
|
2269
2269
|
enabled: h,
|
|
2270
2270
|
finished: w,
|
|
2271
2271
|
locale: u,
|
|
2272
2272
|
positions: y,
|
|
2273
2273
|
unit: B,
|
|
2274
2274
|
clearLayerOnStart: N,
|
|
2275
|
-
modeSelected:
|
|
2275
|
+
modeSelected: p,
|
|
2276
2276
|
modes: o,
|
|
2277
2277
|
units: s,
|
|
2278
2278
|
value: OA({
|
|
2279
|
-
meters:
|
|
2279
|
+
meters: l,
|
|
2280
2280
|
unit: B,
|
|
2281
2281
|
locale: u,
|
|
2282
2282
|
options: r
|
|
2283
2283
|
}),
|
|
2284
2284
|
modeInstance: m,
|
|
2285
2285
|
setModeSelected: c,
|
|
2286
|
-
setDistance:
|
|
2286
|
+
setDistance: a,
|
|
2287
2287
|
setFinished: b,
|
|
2288
2288
|
setLocale: d,
|
|
2289
2289
|
setPositions: k,
|
|
2290
2290
|
setUnit: M,
|
|
2291
|
-
setEnabled:
|
|
2291
|
+
setEnabled: g,
|
|
2292
2292
|
toggleLayer: R,
|
|
2293
2293
|
clearLayer: C
|
|
2294
|
-
}), A[18] = n, A[19] = C, A[20] =
|
|
2294
|
+
}), A[18] = n, A[19] = C, A[20] = l, A[21] = h, A[22] = w, A[23] = u, A[24] = e, A[25] = m, A[26] = p, A[27] = o, A[28] = y, A[29] = a, A[30] = g, A[31] = b, A[32] = d, A[33] = c, A[34] = k, A[35] = M, A[36] = N, A[37] = r, A[38] = R, A[39] = B, A[40] = s, A[41] = E) : E = A[41], E;
|
|
2295
2295
|
}
|
|
2296
2296
|
const mr = [hA];
|
|
2297
2297
|
function wr(t) {
|
|
@@ -2307,17 +2307,17 @@ function wr(t) {
|
|
|
2307
2307
|
styles: ge.styles
|
|
2308
2308
|
} : n, A[0] = n, A[1] = s) : s = A[1];
|
|
2309
2309
|
const {
|
|
2310
|
-
styles:
|
|
2311
|
-
} = s,
|
|
2310
|
+
styles: l
|
|
2311
|
+
} = s, a = l === void 0 ? ge.styles : l;
|
|
2312
2312
|
let f;
|
|
2313
2313
|
A[2] !== r ? (f = {
|
|
2314
2314
|
mapId: r
|
|
2315
2315
|
}, A[2] = r, A[3] = f) : f = A[3];
|
|
2316
2316
|
const {
|
|
2317
|
-
setDistance:
|
|
2317
|
+
setDistance: p,
|
|
2318
2318
|
enabled: c,
|
|
2319
2319
|
finished: h,
|
|
2320
|
-
setFinished:
|
|
2320
|
+
setFinished: g,
|
|
2321
2321
|
locale: w,
|
|
2322
2322
|
setPositions: b,
|
|
2323
2323
|
unit: u,
|
|
@@ -2359,7 +2359,7 @@ function wr(t) {
|
|
|
2359
2359
|
});
|
|
2360
2360
|
}, _ = [c, S, r, C, m], A[17] = c, A[18] = S, A[19] = r, A[20] = C, A[21] = m, A[22] = E, A[23] = _) : (E = A[22], _ = A[23]), $(E, _);
|
|
2361
2361
|
let T;
|
|
2362
|
-
A[24] !== d || A[25] !==
|
|
2362
|
+
A[24] !== d || A[25] !== p || A[26] !== g || A[27] !== b ? (T = (U) => {
|
|
2363
2363
|
const {
|
|
2364
2364
|
editType: G,
|
|
2365
2365
|
editContext: V
|
|
@@ -2368,14 +2368,14 @@ function wr(t) {
|
|
|
2368
2368
|
d.resetClickSequence();
|
|
2369
2369
|
return;
|
|
2370
2370
|
}
|
|
2371
|
-
G === rA.addPosition &&
|
|
2371
|
+
G === rA.addPosition && p(V.distance), g(!!V.finished);
|
|
2372
2372
|
const q = V.positions;
|
|
2373
2373
|
q?.length && b(q);
|
|
2374
|
-
}, A[24] = d, A[25] =
|
|
2374
|
+
}, A[24] = d, A[25] = p, A[26] = g, A[27] = b, A[28] = T) : T = A[28];
|
|
2375
2375
|
const O = T;
|
|
2376
2376
|
let L, z;
|
|
2377
|
-
return A[29] !== c || A[30] !== h || A[31] !== i || A[32] !== w || A[33] !== d || A[34] !== O || A[35] !== m || A[36] !==
|
|
2378
|
-
const U = h ?
|
|
2377
|
+
return A[29] !== c || A[30] !== h || A[31] !== i || A[32] !== w || A[33] !== d || A[34] !== O || A[35] !== m || A[36] !== a.colors.editing || A[37] !== a.colors.finished || A[38] !== a.colors.point || A[39] !== o || A[40] !== u ? (L = () => {
|
|
2378
|
+
const U = h ? a.colors.finished : a.colors.editing, G = h ? a.colors.finished : a.colors.point, V = nr({
|
|
2379
2379
|
layerProps: {
|
|
2380
2380
|
...i,
|
|
2381
2381
|
pickable: i?.pickable ?? !h
|
|
@@ -2390,7 +2390,7 @@ function wr(t) {
|
|
|
2390
2390
|
textOptions: o
|
|
2391
2391
|
});
|
|
2392
2392
|
m(hA, V);
|
|
2393
|
-
}, z = [h, d, i, w, O, m,
|
|
2393
|
+
}, z = [h, d, i, w, O, m, a.colors.editing, a.colors.finished, a.colors.point, o, u, c], A[29] = c, A[30] = h, A[31] = i, A[32] = w, A[33] = d, A[34] = O, A[35] = m, A[36] = a.colors.editing, A[37] = a.colors.finished, A[38] = a.colors.point, A[39] = o, A[40] = u, A[41] = L, A[42] = z) : (L = A[41], z = A[42]), $(L, z), e;
|
|
2394
2394
|
}
|
|
2395
2395
|
function yr(t) {
|
|
2396
2396
|
return t.getDeckInstance;
|
|
@@ -2419,14 +2419,14 @@ function _r(t) {
|
|
|
2419
2419
|
mapId: e
|
|
2420
2420
|
} = t;
|
|
2421
2421
|
let r;
|
|
2422
|
-
A[0] !== e ? (r = (
|
|
2422
|
+
A[0] !== e ? (r = (l) => l.maps[e], A[0] = e, A[1] = r) : r = A[1];
|
|
2423
2423
|
const {
|
|
2424
2424
|
layers: n
|
|
2425
2425
|
} = I(r), i = CA(Sr);
|
|
2426
2426
|
let o;
|
|
2427
2427
|
if (A[2] !== i || A[3] !== n) {
|
|
2428
|
-
let
|
|
2429
|
-
A[5] !== i ? (
|
|
2428
|
+
let l;
|
|
2429
|
+
A[5] !== i ? (l = (a) => i[a], A[5] = i, A[6] = l) : l = A[6], o = n.map(l).filter(Mr), A[2] = i, A[3] = n, A[4] = o;
|
|
2430
2430
|
} else
|
|
2431
2431
|
o = A[4];
|
|
2432
2432
|
return o;
|
|
@@ -2455,15 +2455,15 @@ function bi(t) {
|
|
|
2455
2455
|
let o;
|
|
2456
2456
|
A[5] !== e ? (o = (L) => L.maps[e].basemap, A[5] = e, A[6] = o) : o = A[6];
|
|
2457
2457
|
const s = I(o);
|
|
2458
|
-
let
|
|
2459
|
-
A[7] !== e ? (
|
|
2460
|
-
const
|
|
2458
|
+
let l;
|
|
2459
|
+
A[7] !== e ? (l = (L) => L.maps[e].instanceRef, A[7] = e, A[8] = l) : l = A[8];
|
|
2460
|
+
const a = I(l);
|
|
2461
2461
|
let f;
|
|
2462
2462
|
A[9] !== e ? (f = (L) => L.maps[e].overlayRef, A[9] = e, A[10] = f) : f = A[10];
|
|
2463
|
-
const
|
|
2463
|
+
const p = I(f), c = TA(null);
|
|
2464
2464
|
let h;
|
|
2465
2465
|
A[11] !== e ? (h = (L) => L.viewStates[e], A[11] = e, A[12] = h) : h = A[12];
|
|
2466
|
-
const
|
|
2466
|
+
const g = I(h);
|
|
2467
2467
|
let w;
|
|
2468
2468
|
A[13] !== e ? (w = (L) => L.maps[e].controller, A[13] = e, A[14] = w) : w = A[14];
|
|
2469
2469
|
const b = I(w), u = I(Qr), d = I(Ir), m = I(Lr), v = I(Tr), y = I(Pr);
|
|
@@ -2505,7 +2505,7 @@ function bi(t) {
|
|
|
2505
2505
|
}, A[34] = E, A[35] = e, A[36] = y, A[37] = _) : _ = A[37];
|
|
2506
2506
|
const T = _;
|
|
2507
2507
|
let O;
|
|
2508
|
-
return A[38] !== s || A[39] !== C || A[40] !== b || A[41] !== N || A[42] !== T || A[43] !== P || A[44] !== x || A[45] !== e || A[46] !==
|
|
2508
|
+
return A[38] !== s || A[39] !== C || A[40] !== b || A[41] !== N || A[42] !== T || A[43] !== P || A[44] !== x || A[45] !== e || A[46] !== a || A[47] !== p || A[48] !== i || A[49] !== g ? (O = /* @__PURE__ */ Y(f0, { ...i, controller: b, id: e, layers: C, instanceRef: a, overlayRef: p, basemap: s, initialViewState: g, onLoad: P, onViewStateChange: x, onAfterRender: N, onDragEnd: T }), A[38] = s, A[39] = C, A[40] = b, A[41] = N, A[42] = T, A[43] = P, A[44] = x, A[45] = e, A[46] = a, A[47] = p, A[48] = i, A[49] = g, A[50] = O) : O = A[50], O;
|
|
2509
2509
|
}
|
|
2510
2510
|
function Dr(t) {
|
|
2511
2511
|
return t?.isLoaded;
|
|
@@ -2567,12 +2567,12 @@ function Ur() {
|
|
|
2567
2567
|
function s(u, d) {
|
|
2568
2568
|
return d.clone !== !1 && d.isMergeableObject(u) ? w(o(u), u, d) : u;
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function l(u, d, m) {
|
|
2571
2571
|
return u.concat(d).map(function(v) {
|
|
2572
2572
|
return s(v, m);
|
|
2573
2573
|
});
|
|
2574
2574
|
}
|
|
2575
|
-
function
|
|
2575
|
+
function a(u, d) {
|
|
2576
2576
|
if (!d.customMerge) return w;
|
|
2577
2577
|
var m = d.customMerge(u);
|
|
2578
2578
|
return typeof m == "function" ? m : w;
|
|
@@ -2582,7 +2582,7 @@ function Ur() {
|
|
|
2582
2582
|
return Object.propertyIsEnumerable.call(u, d);
|
|
2583
2583
|
}) : [];
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function p(u) {
|
|
2586
2586
|
return Object.keys(u).concat(f(u));
|
|
2587
2587
|
}
|
|
2588
2588
|
function c(u, d) {
|
|
@@ -2595,18 +2595,18 @@ function Ur() {
|
|
|
2595
2595
|
function h(u, d) {
|
|
2596
2596
|
return c(u, d) && !(Object.hasOwnProperty.call(u, d) && Object.propertyIsEnumerable.call(u, d));
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function g(u, d, m) {
|
|
2599
2599
|
var v = {};
|
|
2600
|
-
return m.isMergeableObject(u) &&
|
|
2600
|
+
return m.isMergeableObject(u) && p(u).forEach(function(y) {
|
|
2601
2601
|
v[y] = s(u[y], m);
|
|
2602
|
-
}),
|
|
2603
|
-
h(u, y) || (c(u, y) && m.isMergeableObject(d[y]) ? v[y] =
|
|
2602
|
+
}), p(d).forEach(function(y) {
|
|
2603
|
+
h(u, y) || (c(u, y) && m.isMergeableObject(d[y]) ? v[y] = a(y, m)(u[y], d[y], m) : v[y] = s(d[y], m));
|
|
2604
2604
|
}), v;
|
|
2605
2605
|
}
|
|
2606
2606
|
function w(u, d, m) {
|
|
2607
|
-
m = m || {}, m.arrayMerge = m.arrayMerge ||
|
|
2607
|
+
m = m || {}, m.arrayMerge = m.arrayMerge || l, m.isMergeableObject = m.isMergeableObject || t, m.cloneUnlessOtherwiseSpecified = s;
|
|
2608
2608
|
var v = Array.isArray(d), y = Array.isArray(u), k = v === y;
|
|
2609
|
-
return k ? v ? m.arrayMerge(u, d, m) :
|
|
2609
|
+
return k ? v ? m.arrayMerge(u, d, m) : g(u, d, m) : s(d, m);
|
|
2610
2610
|
}
|
|
2611
2611
|
w.all = function(u, d) {
|
|
2612
2612
|
if (!Array.isArray(u)) throw new Error("first argument should be an array");
|
|
@@ -2674,24 +2674,24 @@ async function He({
|
|
|
2674
2674
|
} = {
|
|
2675
2675
|
getMaxUrlLength: Vr
|
|
2676
2676
|
},
|
|
2677
|
-
...
|
|
2677
|
+
...l
|
|
2678
2678
|
}) {
|
|
2679
|
-
let
|
|
2679
|
+
let a = Rr({
|
|
2680
2680
|
url: o,
|
|
2681
2681
|
params: i
|
|
2682
|
-
}), f = A,
|
|
2683
|
-
n === yA.get &&
|
|
2682
|
+
}), f = A, p = n;
|
|
2683
|
+
n === yA.get && a.length > s && (f = i, p = yA.post, a = o);
|
|
2684
2684
|
const c = jr({
|
|
2685
2685
|
body: f,
|
|
2686
2686
|
accessToken: e ?? r?.accessToken,
|
|
2687
|
-
method:
|
|
2688
|
-
...
|
|
2687
|
+
method: p,
|
|
2688
|
+
...l
|
|
2689
2689
|
});
|
|
2690
2690
|
t && (c.signal = t);
|
|
2691
|
-
const h = await fetch(
|
|
2691
|
+
const h = await fetch(a, c);
|
|
2692
2692
|
if (!h.ok) {
|
|
2693
|
-
const
|
|
2694
|
-
throw new Error(
|
|
2693
|
+
const g = await h.text();
|
|
2694
|
+
throw new Error(g);
|
|
2695
2695
|
}
|
|
2696
2696
|
return h.status === 204 ? Promise.resolve() : await h.json();
|
|
2697
2697
|
}
|
|
@@ -2757,9 +2757,9 @@ class Yr extends Qe {
|
|
|
2757
2757
|
if (e === bA.Custom)
|
|
2758
2758
|
throw new Error("Custom aggregation not supported for geojson");
|
|
2759
2759
|
(A && A !== "*" || e !== bA.Count) && dA(s, A);
|
|
2760
|
-
const
|
|
2761
|
-
return _A(
|
|
2762
|
-
value:
|
|
2760
|
+
const l = DA[e];
|
|
2761
|
+
return _A(l, `Unsupported aggregation operation: ${e}`), Promise.resolve({
|
|
2762
|
+
value: l(s.map((a) => a?.properties), A, r)
|
|
2763
2763
|
});
|
|
2764
2764
|
}
|
|
2765
2765
|
getHistogram({
|
|
@@ -2771,9 +2771,9 @@ class Yr extends Qe {
|
|
|
2771
2771
|
filterOwner: o,
|
|
2772
2772
|
spatialFilter: s
|
|
2773
2773
|
}) {
|
|
2774
|
-
const
|
|
2775
|
-
return
|
|
2776
|
-
data:
|
|
2774
|
+
const l = this._getFilteredFeatures(s, i, o);
|
|
2775
|
+
return l.length ? (dA(l, r), Promise.resolve(Ft({
|
|
2776
|
+
data: l,
|
|
2777
2777
|
valuesColumns: vA(r),
|
|
2778
2778
|
joinOperation: n,
|
|
2779
2779
|
ticks: e,
|
|
@@ -2788,24 +2788,24 @@ class Yr extends Qe {
|
|
|
2788
2788
|
filters: i,
|
|
2789
2789
|
filterOwner: o,
|
|
2790
2790
|
spatialFilter: s,
|
|
2791
|
-
othersThreshold:
|
|
2792
|
-
orderBy:
|
|
2791
|
+
othersThreshold: l,
|
|
2792
|
+
orderBy: a = "frequency_desc",
|
|
2793
2793
|
rawResult: f
|
|
2794
2794
|
}) {
|
|
2795
|
-
const
|
|
2796
|
-
if (!
|
|
2795
|
+
const p = this._getFilteredFeatures(s, i, o);
|
|
2796
|
+
if (!p.length)
|
|
2797
2797
|
return Promise.resolve([]);
|
|
2798
|
-
dA(
|
|
2798
|
+
dA(p, A, r);
|
|
2799
2799
|
const c = Rt({
|
|
2800
|
-
data:
|
|
2800
|
+
data: p,
|
|
2801
2801
|
valuesColumns: vA(r ?? A),
|
|
2802
2802
|
joinOperation: n,
|
|
2803
2803
|
keysColumn: A,
|
|
2804
2804
|
operation: e,
|
|
2805
|
-
othersThreshold:
|
|
2806
|
-
orderBy:
|
|
2805
|
+
othersThreshold: l,
|
|
2806
|
+
orderBy: a
|
|
2807
2807
|
});
|
|
2808
|
-
return f ? Promise.resolve(c) :
|
|
2808
|
+
return f ? Promise.resolve(c) : l ? Promise.resolve([...c?.rows ?? [], {
|
|
2809
2809
|
name: Nt,
|
|
2810
2810
|
value: c?.metadata?.others ?? 0
|
|
2811
2811
|
}]) : Promise.resolve(c?.rows ?? []);
|
|
@@ -2819,9 +2819,9 @@ class Yr extends Qe {
|
|
|
2819
2819
|
filterOwner: o,
|
|
2820
2820
|
spatialFilter: s
|
|
2821
2821
|
}) {
|
|
2822
|
-
const
|
|
2823
|
-
return
|
|
2824
|
-
data:
|
|
2822
|
+
const l = this._getFilteredFeatures(s, i, o);
|
|
2823
|
+
return l.length ? (dA(l, A, e), Promise.resolve(Ut({
|
|
2824
|
+
data: l,
|
|
2825
2825
|
xAxisColumns: vA(A),
|
|
2826
2826
|
xAxisJoinOperation: r,
|
|
2827
2827
|
yAxisColumns: vA(e),
|
|
@@ -2836,12 +2836,12 @@ class Yr extends Qe {
|
|
|
2836
2836
|
sortDirection: i,
|
|
2837
2837
|
sortByColumnType: o,
|
|
2838
2838
|
offset: s = 0,
|
|
2839
|
-
limit:
|
|
2840
|
-
filters:
|
|
2839
|
+
limit: l = 10,
|
|
2840
|
+
filters: a,
|
|
2841
2841
|
filterOwner: f,
|
|
2842
|
-
spatialFilter:
|
|
2842
|
+
spatialFilter: p
|
|
2843
2843
|
}) {
|
|
2844
|
-
let c = this._getFilteredFeatures(
|
|
2844
|
+
let c = this._getFilteredFeatures(p, a, f);
|
|
2845
2845
|
if (!c.length)
|
|
2846
2846
|
return Promise.resolve({
|
|
2847
2847
|
rows: [],
|
|
@@ -2853,8 +2853,8 @@ class Yr extends Qe {
|
|
|
2853
2853
|
sortByDirection: i,
|
|
2854
2854
|
sortByColumnType: o
|
|
2855
2855
|
});
|
|
2856
|
-
const
|
|
2857
|
-
return h = h.slice(Math.min(s,
|
|
2856
|
+
const g = h.length;
|
|
2857
|
+
return h = h.slice(Math.min(s, g), Math.min(s + l, g)), h = h.map((w) => {
|
|
2858
2858
|
const b = {};
|
|
2859
2859
|
if (w)
|
|
2860
2860
|
for (const u of A)
|
|
@@ -2862,7 +2862,7 @@ class Yr extends Qe {
|
|
|
2862
2862
|
return b;
|
|
2863
2863
|
}), Promise.resolve({
|
|
2864
2864
|
rows: h,
|
|
2865
|
-
totalCount:
|
|
2865
|
+
totalCount: g
|
|
2866
2866
|
});
|
|
2867
2867
|
}
|
|
2868
2868
|
getTimeSeries({
|
|
@@ -2873,16 +2873,16 @@ class Yr extends Qe {
|
|
|
2873
2873
|
joinOperation: i,
|
|
2874
2874
|
filters: o,
|
|
2875
2875
|
filterOwner: s,
|
|
2876
|
-
spatialFilter:
|
|
2876
|
+
spatialFilter: l
|
|
2877
2877
|
}) {
|
|
2878
|
-
const
|
|
2879
|
-
if (!
|
|
2878
|
+
const a = this._getFilteredFeatures(l, o, s);
|
|
2879
|
+
if (!a.length)
|
|
2880
2880
|
return Promise.resolve({
|
|
2881
2881
|
rows: []
|
|
2882
2882
|
});
|
|
2883
|
-
dA(
|
|
2883
|
+
dA(a, A, n), _A(r !== "custom", "Custom operation not supported for geojson");
|
|
2884
2884
|
const f = zt({
|
|
2885
|
-
data:
|
|
2885
|
+
data: a,
|
|
2886
2886
|
valuesColumns: vA(n ?? A),
|
|
2887
2887
|
keysColumn: A,
|
|
2888
2888
|
groupType: e,
|
|
@@ -2919,15 +2919,15 @@ class Yr extends Qe {
|
|
|
2919
2919
|
_A(typeof A != "string", "Unsupported geojson SQL aggregation");
|
|
2920
2920
|
const o = {}, s = /* @__PURE__ */ new Set();
|
|
2921
2921
|
for (const {
|
|
2922
|
-
column:
|
|
2923
|
-
operation:
|
|
2922
|
+
column: l,
|
|
2923
|
+
operation: a,
|
|
2924
2924
|
alias: f
|
|
2925
2925
|
} of A) {
|
|
2926
|
-
(
|
|
2927
|
-
const
|
|
2928
|
-
_A(!s.has(
|
|
2929
|
-
const c = DA[
|
|
2930
|
-
_A(c, `Unsupported operation: ${
|
|
2926
|
+
(l && l !== "*" || a !== bA.Count) && dA(i, l);
|
|
2927
|
+
const p = f.toLowerCase();
|
|
2928
|
+
_A(!s.has(p), `Duplicate alias: ${p}`), s.add(p);
|
|
2929
|
+
const c = DA[a];
|
|
2930
|
+
_A(c, `Unsupported operation: ${a}`), o[f] = c(i, l);
|
|
2931
2931
|
}
|
|
2932
2932
|
return Promise.resolve({
|
|
2933
2933
|
rows: [o]
|
|
@@ -3012,23 +3012,23 @@ class qr extends Qe {
|
|
|
3012
3012
|
return this._localImpl ? this._localImpl[A](...e) : Promise.reject(new Error("Local implementation not initialized"));
|
|
3013
3013
|
const n = this._getWorker(), i = this._workerNextRequestId++;
|
|
3014
3014
|
let o = null, s = null;
|
|
3015
|
-
function
|
|
3016
|
-
const c =
|
|
3015
|
+
function l(p) {
|
|
3016
|
+
const c = p.data;
|
|
3017
3017
|
c.requestId === i && (r?.aborted || (c.ok ? o(c.result) : s(new Error(c.error))));
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3019
|
+
function a() {
|
|
3020
3020
|
s(new Error(String(r.reason)));
|
|
3021
3021
|
}
|
|
3022
|
-
n.addEventListener("message",
|
|
3023
|
-
const f = new Promise((
|
|
3024
|
-
o =
|
|
3022
|
+
n.addEventListener("message", l), r?.addEventListener("abort", a);
|
|
3023
|
+
const f = new Promise((p, c) => {
|
|
3024
|
+
o = p, s = c, n.postMessage({
|
|
3025
3025
|
requestId: i,
|
|
3026
3026
|
method: A,
|
|
3027
3027
|
params: e
|
|
3028
3028
|
});
|
|
3029
3029
|
});
|
|
3030
3030
|
return f.finally(() => {
|
|
3031
|
-
n.removeEventListener("message",
|
|
3031
|
+
n.removeEventListener("message", l), r?.removeEventListener("abort", a);
|
|
3032
3032
|
}), f;
|
|
3033
3033
|
}
|
|
3034
3034
|
/////////////////////////////////////////////////////////////////////////////
|
|
@@ -3120,7 +3120,7 @@ const ie = Se()(Xt((t, A) => ({
|
|
|
3120
3120
|
...n.sources
|
|
3121
3121
|
}, o = i[e]?.widgets;
|
|
3122
3122
|
o && (o.destroy(), delete i[e].widgets);
|
|
3123
|
-
const s = i[e],
|
|
3123
|
+
const s = i[e], l = {
|
|
3124
3124
|
apiBaseUrl: te,
|
|
3125
3125
|
clientId: Or,
|
|
3126
3126
|
apiVersion: re,
|
|
@@ -3128,9 +3128,9 @@ const ie = Se()(Xt((t, A) => ({
|
|
|
3128
3128
|
...r,
|
|
3129
3129
|
id: e
|
|
3130
3130
|
};
|
|
3131
|
-
return
|
|
3132
|
-
source:
|
|
3133
|
-
}), i[e] =
|
|
3131
|
+
return l.widgets = Zr({
|
|
3132
|
+
source: l
|
|
3133
|
+
}), i[e] = l, {
|
|
3134
3134
|
sources: i
|
|
3135
3135
|
};
|
|
3136
3136
|
}, void 0, "setSource"),
|
|
@@ -3143,7 +3143,7 @@ const ie = Se()(Xt((t, A) => ({
|
|
|
3143
3143
|
};
|
|
3144
3144
|
}, void 0, "removeSource"),
|
|
3145
3145
|
setFilters: (e, r) => t((n) => {
|
|
3146
|
-
const i = n.filters[e] ?? {}, o = r.reduce((s,
|
|
3146
|
+
const i = n.filters[e] ?? {}, o = r.reduce((s, l) => XA(s, l), i);
|
|
3147
3147
|
return {
|
|
3148
3148
|
filters: {
|
|
3149
3149
|
...n.filters,
|
|
@@ -3330,16 +3330,16 @@ function Jr(t, A) {
|
|
|
3330
3330
|
sourcesId: i,
|
|
3331
3331
|
additionalFilter: o
|
|
3332
3332
|
} = r, s = !!n;
|
|
3333
|
-
let
|
|
3334
|
-
e[6] !== s || e[7] !== n || e[8] !== i ? (
|
|
3335
|
-
const f =
|
|
3333
|
+
let l, a;
|
|
3334
|
+
e[6] !== s || e[7] !== n || e[8] !== i ? (a = s ? [n] : i, e[6] = s, e[7] = n, e[8] = i, e[9] = a) : a = e[9];
|
|
3335
|
+
const f = a;
|
|
3336
3336
|
if (!f)
|
|
3337
3337
|
throw new Error("Either sourceId or sourcesId must be provided");
|
|
3338
|
-
|
|
3339
|
-
const
|
|
3338
|
+
l = f;
|
|
3339
|
+
const p = l, c = We(p);
|
|
3340
3340
|
let h;
|
|
3341
3341
|
e[10] !== c ? (h = Array.isArray(c) ? c : [c], e[10] = c, e[11] = h) : h = e[11];
|
|
3342
|
-
const
|
|
3342
|
+
const g = h;
|
|
3343
3343
|
let w;
|
|
3344
3344
|
A: {
|
|
3345
3345
|
if (!o?.length) {
|
|
@@ -3357,17 +3357,17 @@ function Jr(t, A) {
|
|
|
3357
3357
|
}
|
|
3358
3358
|
const b = w;
|
|
3359
3359
|
let u;
|
|
3360
|
-
if (e[17] !== b || e[18] !==
|
|
3360
|
+
if (e[17] !== b || e[18] !== g || e[19] !== p) {
|
|
3361
3361
|
let m;
|
|
3362
|
-
e[21] !== b || e[22] !==
|
|
3362
|
+
e[21] !== b || e[22] !== g ? (m = (v, y) => {
|
|
3363
3363
|
const k = b[y];
|
|
3364
3364
|
if (!k?.length)
|
|
3365
|
-
return
|
|
3366
|
-
if (!
|
|
3365
|
+
return g[y];
|
|
3366
|
+
if (!g[y])
|
|
3367
3367
|
return k.reduce(An, {});
|
|
3368
3368
|
const B = k.reduce(Xr, {});
|
|
3369
|
-
return pA(
|
|
3370
|
-
}, e[21] = b, e[22] =
|
|
3369
|
+
return pA(g[y], B);
|
|
3370
|
+
}, e[21] = b, e[22] = g, e[23] = m) : m = e[23], u = p.map(m), e[17] = b, e[18] = g, e[19] = p, e[20] = u;
|
|
3371
3371
|
} else
|
|
3372
3372
|
u = e[20];
|
|
3373
3373
|
const d = u;
|
|
@@ -3397,13 +3397,13 @@ function en(t, A) {
|
|
|
3397
3397
|
sourceId: i,
|
|
3398
3398
|
sourcesId: o
|
|
3399
3399
|
} = r, s = !!i;
|
|
3400
|
-
let
|
|
3401
|
-
e[4] !== s || e[5] !== i || e[6] !== o ? (
|
|
3402
|
-
const f =
|
|
3400
|
+
let l, a;
|
|
3401
|
+
e[4] !== s || e[5] !== i || e[6] !== o ? (a = s ? [i] : o, e[4] = s, e[5] = i, e[6] = o, e[7] = a) : a = e[7];
|
|
3402
|
+
const f = a;
|
|
3403
3403
|
if (!f)
|
|
3404
3404
|
throw new Error("Either sourceId or sourcesId must be provided");
|
|
3405
|
-
|
|
3406
|
-
const c = qe(
|
|
3405
|
+
l = f;
|
|
3406
|
+
const c = qe(l);
|
|
3407
3407
|
let h;
|
|
3408
3408
|
if (e[8] !== n || e[9] !== c) {
|
|
3409
3409
|
let w;
|
|
@@ -3413,8 +3413,8 @@ function en(t, A) {
|
|
|
3413
3413
|
}, e[11] = n, e[12] = w) : w = e[12], h = c.map(w), e[8] = n, e[9] = c, e[10] = h;
|
|
3414
3414
|
} else
|
|
3415
3415
|
h = e[10];
|
|
3416
|
-
const
|
|
3417
|
-
return s ?
|
|
3416
|
+
const g = h;
|
|
3417
|
+
return s ? g[0] : g;
|
|
3418
3418
|
}
|
|
3419
3419
|
const tn = ["authorization", "cache-control"];
|
|
3420
3420
|
function rn(t) {
|
|
@@ -3438,22 +3438,22 @@ function Ke(t) {
|
|
|
3438
3438
|
const o = i;
|
|
3439
3439
|
let s;
|
|
3440
3440
|
A[2] !== r || A[3] !== o ? (s = r !== void 0 ? [r] : o, A[2] = r, A[3] = o, A[4] = s) : s = A[4];
|
|
3441
|
-
const
|
|
3442
|
-
let
|
|
3443
|
-
A[5] !== f ? (
|
|
3444
|
-
const c =
|
|
3441
|
+
const a = s, f = qe(a);
|
|
3442
|
+
let p;
|
|
3443
|
+
A[5] !== f ? (p = f.map(on), A[5] = f, A[6] = p) : p = A[6];
|
|
3444
|
+
const c = p;
|
|
3445
3445
|
let h;
|
|
3446
3446
|
A[7] !== f ? (h = f.map(nn), A[7] = f, A[8] = h) : h = A[8];
|
|
3447
|
-
const
|
|
3447
|
+
const g = h;
|
|
3448
3448
|
let w;
|
|
3449
|
-
if (A[9] !== e || A[10] !== c || A[11] !==
|
|
3449
|
+
if (A[9] !== e || A[10] !== c || A[11] !== g || A[12] !== a) {
|
|
3450
3450
|
let u;
|
|
3451
|
-
A[14] !== e || A[15] !== c || A[16] !==
|
|
3452
|
-
const v = [d, ...e], y =
|
|
3451
|
+
A[14] !== e || A[15] !== c || A[16] !== g ? (u = (d, m) => {
|
|
3452
|
+
const v = [d, ...e], y = g[m];
|
|
3453
3453
|
y && v.push(y);
|
|
3454
3454
|
const k = c[m];
|
|
3455
3455
|
return k && v.push(k), v;
|
|
3456
|
-
}, A[14] = e, A[15] = c, A[16] =
|
|
3456
|
+
}, A[14] = e, A[15] = c, A[16] = g, A[17] = u) : u = A[17], w = a.map(u), A[9] = e, A[10] = c, A[11] = g, A[12] = a, A[13] = w;
|
|
3457
3457
|
} else
|
|
3458
3458
|
w = A[13];
|
|
3459
3459
|
const b = w;
|
|
@@ -3488,27 +3488,27 @@ function sn(t) {
|
|
|
3488
3488
|
sourcesId: i,
|
|
3489
3489
|
widgetProps: o,
|
|
3490
3490
|
additionalFilter: s
|
|
3491
|
-
} = t,
|
|
3492
|
-
let
|
|
3493
|
-
A[0] !==
|
|
3494
|
-
const f =
|
|
3491
|
+
} = t, l = !!n;
|
|
3492
|
+
let a;
|
|
3493
|
+
A[0] !== l || A[1] !== n || A[2] !== i ? (a = l ? [n] : i, A[0] = l, A[1] = n, A[2] = i, A[3] = a) : a = A[3];
|
|
3494
|
+
const f = a;
|
|
3495
3495
|
if (!f)
|
|
3496
3496
|
throw new Error("Either sourceId or sourcesId must be provided");
|
|
3497
|
-
const
|
|
3497
|
+
const p = Jr(f, s), c = en(r, f);
|
|
3498
3498
|
let h;
|
|
3499
3499
|
A[4] !== e || A[5] !== f ? (h = {
|
|
3500
3500
|
queryKeyPrefix: e,
|
|
3501
3501
|
sourcesId: f
|
|
3502
3502
|
}, A[4] = e, A[5] = f, A[6] = h) : h = A[6];
|
|
3503
|
-
const
|
|
3503
|
+
const g = Ke(h);
|
|
3504
3504
|
let w;
|
|
3505
|
-
A[7] !==
|
|
3505
|
+
A[7] !== p ? (w = p?.map(ln), A[7] = p, A[8] = w) : w = A[8];
|
|
3506
3506
|
const b = w;
|
|
3507
3507
|
let u;
|
|
3508
|
-
if (A[9] !==
|
|
3508
|
+
if (A[9] !== g || A[10] !== o) {
|
|
3509
3509
|
let B;
|
|
3510
|
-
A[12] !==
|
|
3511
|
-
const S = "column" in o ? $e(o.column, C,
|
|
3510
|
+
A[12] !== g.length || A[13] !== o ? (B = (M, C) => {
|
|
3511
|
+
const S = "column" in o ? $e(o.column, C, g.length) : void 0, x = "operationExp" in o ? kA(o.operationExp, C, g.length, "operationExp") : void 0, D = "operationColumn" in o ? kA(o.operationColumn, C, g.length, "operationColumn") : void 0, P = {
|
|
3512
3512
|
...o,
|
|
3513
3513
|
..."column" in o && {
|
|
3514
3514
|
column: S
|
|
@@ -3521,22 +3521,22 @@ function sn(t) {
|
|
|
3521
3521
|
}
|
|
3522
3522
|
};
|
|
3523
3523
|
return JSON.stringify(P);
|
|
3524
|
-
}, A[12] =
|
|
3524
|
+
}, A[12] = g.length, A[13] = o, A[14] = B) : B = A[14], u = g.map(B), A[9] = g, A[10] = o, A[11] = u;
|
|
3525
3525
|
} else
|
|
3526
3526
|
u = A[11];
|
|
3527
3527
|
const d = u;
|
|
3528
3528
|
let m;
|
|
3529
|
-
if (A[15] !==
|
|
3529
|
+
if (A[15] !== g || A[16] !== b || A[17] !== d) {
|
|
3530
3530
|
let B;
|
|
3531
3531
|
A[19] !== b || A[20] !== d ? (B = (M, C) => {
|
|
3532
3532
|
const S = d[C], x = [...M, S], D = b?.[C];
|
|
3533
3533
|
return D && x.push(D), x;
|
|
3534
|
-
}, A[19] = b, A[20] = d, A[21] = B) : B = A[21], m =
|
|
3534
|
+
}, A[19] = b, A[20] = d, A[21] = B) : B = A[21], m = g.map(B), A[15] = g, A[16] = b, A[17] = d, A[18] = m;
|
|
3535
3535
|
} else
|
|
3536
3536
|
m = A[18];
|
|
3537
3537
|
const v = m;
|
|
3538
|
-
if (
|
|
3539
|
-
const B =
|
|
3538
|
+
if (l) {
|
|
3539
|
+
const B = p?.[0], M = c[0] ?? null, C = v[0];
|
|
3540
3540
|
let S;
|
|
3541
3541
|
return A[22] !== B || A[23] !== M || A[24] !== C ? (S = {
|
|
3542
3542
|
mergedFilters: B,
|
|
@@ -3545,7 +3545,7 @@ function sn(t) {
|
|
|
3545
3545
|
}, A[22] = B, A[23] = M, A[24] = C, A[25] = S) : S = A[25], S;
|
|
3546
3546
|
}
|
|
3547
3547
|
let y;
|
|
3548
|
-
A[26] !==
|
|
3548
|
+
A[26] !== p ? (y = p ?? [], A[26] = p, A[27] = y) : y = A[27];
|
|
3549
3549
|
let k;
|
|
3550
3550
|
return A[28] !== v || A[29] !== y || A[30] !== c ? (k = {
|
|
3551
3551
|
mergedFilters: y,
|
|
@@ -3564,30 +3564,30 @@ function aA({
|
|
|
3564
3564
|
const i = F(26), {
|
|
3565
3565
|
accessToken: o,
|
|
3566
3566
|
sourceId: s,
|
|
3567
|
-
sourcesId:
|
|
3568
|
-
widgetProps:
|
|
3567
|
+
sourcesId: l,
|
|
3568
|
+
widgetProps: a,
|
|
3569
3569
|
additionalFilter: f,
|
|
3570
|
-
useQueryProps:
|
|
3570
|
+
useQueryProps: p
|
|
3571
3571
|
} = n;
|
|
3572
3572
|
let c;
|
|
3573
|
-
i[0] !==
|
|
3574
|
-
let h,
|
|
3573
|
+
i[0] !== p ? (c = p === void 0 ? {} : p, i[0] = p, i[1] = c) : c = i[1];
|
|
3574
|
+
let h, g;
|
|
3575
3575
|
i[2] !== c ? ({
|
|
3576
3576
|
enabled: h,
|
|
3577
|
-
...
|
|
3578
|
-
} = c, i[2] = c, i[3] = h, i[4] =
|
|
3577
|
+
...g
|
|
3578
|
+
} = c, i[2] = c, i[3] = h, i[4] = g) : (h = i[3], g = i[4]);
|
|
3579
3579
|
const w = h === void 0 ? !0 : h;
|
|
3580
3580
|
let b;
|
|
3581
|
-
i[5] !== s || i[6] !==
|
|
3581
|
+
i[5] !== s || i[6] !== l ? (b = s ? [s] : l, i[5] = s, i[6] = l, i[7] = b) : b = i[7];
|
|
3582
3582
|
const u = b;
|
|
3583
3583
|
let d;
|
|
3584
|
-
i[8] !== u || i[9] !== o || i[10] !== f || i[11] !==
|
|
3584
|
+
i[8] !== u || i[9] !== o || i[10] !== f || i[11] !== a ? (d = {
|
|
3585
3585
|
queryKeyPrefix: t,
|
|
3586
3586
|
accessToken: o,
|
|
3587
3587
|
additionalFilter: f,
|
|
3588
3588
|
sourcesId: u,
|
|
3589
|
-
widgetProps:
|
|
3590
|
-
}, i[8] = u, i[9] = o, i[10] = f, i[11] =
|
|
3589
|
+
widgetProps: a
|
|
3590
|
+
}, i[8] = u, i[9] = o, i[10] = f, i[11] = a, i[12] = d) : d = i[12];
|
|
3591
3591
|
const {
|
|
3592
3592
|
mergedFilters: m,
|
|
3593
3593
|
queryKey: v,
|
|
@@ -3596,16 +3596,16 @@ function aA({
|
|
|
3596
3596
|
let k;
|
|
3597
3597
|
i[13] !== v ? (k = v.flat(), i[13] = v, i[14] = k) : k = i[14];
|
|
3598
3598
|
let B;
|
|
3599
|
-
i[15] !== u || i[16] !== m || i[17] !== s || i[18] !== y || i[19] !==
|
|
3599
|
+
i[15] !== u || i[16] !== m || i[17] !== s || i[18] !== y || i[19] !== a ? (B = async (x) => {
|
|
3600
3600
|
const {
|
|
3601
3601
|
signal: D
|
|
3602
3602
|
} = x, P = u.map((_, T) => {
|
|
3603
3603
|
const O = y?.[T];
|
|
3604
3604
|
if (!O)
|
|
3605
3605
|
return Promise.reject(new Error("widgetModel is not available"));
|
|
3606
|
-
const L = A(O), z = "column" in
|
|
3607
|
-
...
|
|
3608
|
-
..."column" in
|
|
3606
|
+
const L = A(O), z = "column" in a ? $e(a.column, T, u.length) : void 0, U = "operationExp" in a ? kA(a.operationExp, T, u.length, "operationExp") : void 0, G = "operationColumn" in a ? kA(a.operationColumn, T, u.length, "operationColumn") : void 0, V = "spatialFilter" in a ? kA(a.spatialFilter, T, u.length, "spatialFilter") : void 0, q = {
|
|
3607
|
+
...a,
|
|
3608
|
+
..."column" in a && {
|
|
3609
3609
|
column: z
|
|
3610
3610
|
},
|
|
3611
3611
|
...U !== void 0 && {
|
|
@@ -3638,15 +3638,15 @@ function aA({
|
|
|
3638
3638
|
if (E)
|
|
3639
3639
|
throw E;
|
|
3640
3640
|
return s ? N.at(0) : N;
|
|
3641
|
-
}, i[15] = u, i[16] = m, i[17] = s, i[18] = y, i[19] =
|
|
3641
|
+
}, i[15] = u, i[16] = m, i[17] = s, i[18] = y, i[19] = a, i[20] = B) : B = i[20];
|
|
3642
3642
|
const M = !!y.length && w;
|
|
3643
3643
|
let C;
|
|
3644
|
-
return i[21] !== k || i[22] !== B || i[23] !== M || i[24] !==
|
|
3644
|
+
return i[21] !== k || i[22] !== B || i[23] !== M || i[24] !== g ? (C = {
|
|
3645
3645
|
queryKey: k,
|
|
3646
3646
|
queryFn: B,
|
|
3647
3647
|
enabled: M,
|
|
3648
|
-
...
|
|
3649
|
-
}, i[21] = k, i[22] = B, i[23] = M, i[24] =
|
|
3648
|
+
...g
|
|
3649
|
+
}, i[21] = k, i[22] = B, i[23] = M, i[24] = g, i[25] = C) : C = i[25], Ie(C);
|
|
3650
3650
|
}
|
|
3651
3651
|
function r(n) {
|
|
3652
3652
|
const i = F(3), o = e(n);
|
|
@@ -3764,15 +3764,15 @@ function Vi(t) {
|
|
|
3764
3764
|
let o;
|
|
3765
3765
|
A[0] !== n ? (o = n === void 0 ? [] : n, A[0] = n, A[1] = o) : o = A[1];
|
|
3766
3766
|
const s = o;
|
|
3767
|
-
let
|
|
3768
|
-
A[2] !== i ? (
|
|
3769
|
-
const
|
|
3767
|
+
let l;
|
|
3768
|
+
A[2] !== i ? (l = i === void 0 ? [] : i, A[2] = i, A[3] = l) : l = A[3];
|
|
3769
|
+
const a = l;
|
|
3770
3770
|
let f;
|
|
3771
|
-
A[4] !== e || A[5] !==
|
|
3772
|
-
let
|
|
3773
|
-
A[7] !== s || A[8] !== f ? (
|
|
3771
|
+
A[4] !== e || A[5] !== a ? (f = /* @__PURE__ */ Y(sr, { values: a, children: e }), A[4] = e, A[5] = a, A[6] = f) : f = A[6];
|
|
3772
|
+
let p;
|
|
3773
|
+
A[7] !== s || A[8] !== f ? (p = /* @__PURE__ */ Y(F0, { values: s, children: f }), A[7] = s, A[8] = f, A[9] = p) : p = A[9];
|
|
3774
3774
|
let c;
|
|
3775
|
-
return A[10] !== r || A[11] !==
|
|
3775
|
+
return A[10] !== r || A[11] !== p ? (c = /* @__PURE__ */ Y(_0, { values: r, children: p }), A[10] = r, A[11] = p, A[12] = c) : c = A[12], c;
|
|
3776
3776
|
}
|
|
3777
3777
|
function Hi(t, A) {
|
|
3778
3778
|
const e = F(19), r = CA(fn), n = CA(cn);
|
|
@@ -3785,9 +3785,9 @@ function Hi(t, A) {
|
|
|
3785
3785
|
const o = i;
|
|
3786
3786
|
let s;
|
|
3787
3787
|
e[5] !== A || e[6] !== o ? (s = o.map(A), e[5] = A, e[6] = o, e[7] = s) : s = e[7];
|
|
3788
|
-
const
|
|
3789
|
-
let
|
|
3790
|
-
e[8] !== n ? (
|
|
3788
|
+
const l = s;
|
|
3789
|
+
let a;
|
|
3790
|
+
e[8] !== n ? (a = (b) => {
|
|
3791
3791
|
const {
|
|
3792
3792
|
id: u,
|
|
3793
3793
|
visible: d,
|
|
@@ -3799,10 +3799,10 @@ function Hi(t, A) {
|
|
|
3799
3799
|
},
|
|
3800
3800
|
legend: m
|
|
3801
3801
|
});
|
|
3802
|
-
}, e[8] = n, e[9] =
|
|
3803
|
-
const f =
|
|
3804
|
-
let
|
|
3805
|
-
e[10] !== n ? (
|
|
3802
|
+
}, e[8] = n, e[9] = a) : a = e[9];
|
|
3803
|
+
const f = a;
|
|
3804
|
+
let p;
|
|
3805
|
+
e[10] !== n ? (p = (b) => {
|
|
3806
3806
|
const {
|
|
3807
3807
|
id: u,
|
|
3808
3808
|
collapsed: d
|
|
@@ -3812,8 +3812,8 @@ function Hi(t, A) {
|
|
|
3812
3812
|
collapsed: d
|
|
3813
3813
|
}
|
|
3814
3814
|
});
|
|
3815
|
-
}, e[10] = n, e[11] =
|
|
3816
|
-
const c =
|
|
3815
|
+
}, e[10] = n, e[11] = p) : p = e[11];
|
|
3816
|
+
const c = p;
|
|
3817
3817
|
let h;
|
|
3818
3818
|
e[12] !== n ? (h = (b) => {
|
|
3819
3819
|
const {
|
|
@@ -3826,14 +3826,14 @@ function Hi(t, A) {
|
|
|
3826
3826
|
}
|
|
3827
3827
|
});
|
|
3828
3828
|
}, e[12] = n, e[13] = h) : h = e[13];
|
|
3829
|
-
const
|
|
3829
|
+
const g = h;
|
|
3830
3830
|
let w;
|
|
3831
|
-
return e[14] !==
|
|
3832
|
-
legend:
|
|
3831
|
+
return e[14] !== l || e[15] !== g || e[16] !== c || e[17] !== f ? (w = {
|
|
3832
|
+
legend: l,
|
|
3833
3833
|
onChangeVisibility: f,
|
|
3834
|
-
onChangeOpacity:
|
|
3834
|
+
onChangeOpacity: g,
|
|
3835
3835
|
onChangeRowCollapse: c
|
|
3836
|
-
}, e[14] =
|
|
3836
|
+
}, e[14] = l, e[15] = g, e[16] = c, e[17] = f, e[18] = w) : w = e[18], w;
|
|
3837
3837
|
}
|
|
3838
3838
|
function un(t) {
|
|
3839
3839
|
return !!t?.legend;
|
|
@@ -3847,15 +3847,15 @@ function fn(t) {
|
|
|
3847
3847
|
function Yi({
|
|
3848
3848
|
mapId: t
|
|
3849
3849
|
}) {
|
|
3850
|
-
const [A, e] = cA(void 0), [r, n] = cA(!1), [i, o] = cA(void 0), s = I((u) => u.maps[t]?.basemap),
|
|
3850
|
+
const [A, e] = cA(void 0), [r, n] = cA(!1), [i, o] = cA(void 0), s = I((u) => u.maps[t]?.basemap), l = I((u) => u.getDeckInstance), a = I((u) => u.getOverlayInstance), f = I((u) => u.areLayersLoaded[t]), c = I((u) => u.maps[t]?.isLoaded) && f, {
|
|
3851
3851
|
type: h
|
|
3852
|
-
} = MA[s],
|
|
3853
|
-
const u =
|
|
3852
|
+
} = MA[s], g = h === uA.googleMaps, w = EA(async () => {
|
|
3853
|
+
const u = l(t), d = a(t);
|
|
3854
3854
|
try {
|
|
3855
3855
|
const m = document.createElement("canvas");
|
|
3856
3856
|
m.width = u.width ?? 0, m.height = u.height ?? 0;
|
|
3857
3857
|
const v = m.getContext("2d");
|
|
3858
|
-
if (
|
|
3858
|
+
if (g) {
|
|
3859
3859
|
const k = d;
|
|
3860
3860
|
if (k.getRenderingType() !== "RASTER")
|
|
3861
3861
|
throw new Error("Only raster type is supported for Google Maps");
|
|
@@ -3875,7 +3875,7 @@ function Yi({
|
|
|
3875
3875
|
} finally {
|
|
3876
3876
|
n(!1);
|
|
3877
3877
|
}
|
|
3878
|
-
}, [
|
|
3878
|
+
}, [l, g, t, a]);
|
|
3879
3879
|
return {
|
|
3880
3880
|
takeScreenshot: EA(() => {
|
|
3881
3881
|
o(void 0), n(!0), c && w();
|
|
@@ -3903,14 +3903,14 @@ function qi(t) {
|
|
|
3903
3903
|
A[4] !== e ? (s = {
|
|
3904
3904
|
mapId: e
|
|
3905
3905
|
}, A[4] = e, A[5] = s) : s = A[5];
|
|
3906
|
-
const
|
|
3906
|
+
const l = dn(s), a = o ?? l ?? n;
|
|
3907
3907
|
let f;
|
|
3908
|
-
return A[6] !== o || A[7] !==
|
|
3909
|
-
spatialFilter:
|
|
3910
|
-
staticSpatialFilter:
|
|
3908
|
+
return A[6] !== o || A[7] !== l || A[8] !== a || A[9] !== n ? (f = {
|
|
3909
|
+
spatialFilter: a,
|
|
3910
|
+
staticSpatialFilter: l,
|
|
3911
3911
|
lassoToolsSpatialFilter: o,
|
|
3912
3912
|
viewportSpatialFilter: n
|
|
3913
|
-
}, A[6] = o, A[7] =
|
|
3913
|
+
}, A[6] = o, A[7] = l, A[8] = a, A[9] = n, A[10] = f) : f = A[10], f;
|
|
3914
3914
|
}
|
|
3915
3915
|
function Ze(t) {
|
|
3916
3916
|
const A = F(4), {
|
|
@@ -4005,19 +4005,19 @@ function Wi(t) {
|
|
|
4005
4005
|
A[4] !== e ? (s = {
|
|
4006
4006
|
mapId: e
|
|
4007
4007
|
}, A[4] = e, A[5] = s) : s = A[5];
|
|
4008
|
-
const
|
|
4009
|
-
let
|
|
4010
|
-
A[6] !== e ? (
|
|
4008
|
+
const l = yn(s);
|
|
4009
|
+
let a;
|
|
4010
|
+
A[6] !== e ? (a = {
|
|
4011
4011
|
mapId: e
|
|
4012
|
-
}, A[6] = e, A[7] =
|
|
4013
|
-
const f = _n(
|
|
4012
|
+
}, A[6] = e, A[7] = a) : a = A[7];
|
|
4013
|
+
const f = _n(a), p = l.length ? l : f.length ? f : o;
|
|
4014
4014
|
let c;
|
|
4015
|
-
return A[8] !==
|
|
4016
|
-
spatialFilter:
|
|
4015
|
+
return A[8] !== l || A[9] !== f || A[10] !== p || A[11] !== o ? (c = {
|
|
4016
|
+
spatialFilter: p,
|
|
4017
4017
|
staticSpatialFilter: f,
|
|
4018
|
-
lassoToolsSpatialFilter:
|
|
4018
|
+
lassoToolsSpatialFilter: l,
|
|
4019
4019
|
viewportSpatialFilter: o
|
|
4020
|
-
}, A[8] =
|
|
4020
|
+
}, A[8] = l, A[9] = f, A[10] = p, A[11] = o, A[12] = c) : c = A[12], c;
|
|
4021
4021
|
}
|
|
4022
4022
|
const ke = /* @__PURE__ */ new Map();
|
|
4023
4023
|
function yn(t) {
|
|
@@ -4026,56 +4026,56 @@ function yn(t) {
|
|
|
4026
4026
|
groupIds: r
|
|
4027
4027
|
} = t;
|
|
4028
4028
|
let n;
|
|
4029
|
-
A[0] !== e ? (n = (
|
|
4029
|
+
A[0] !== e ? (n = (a) => a.data[e]?.values, A[0] = e, A[1] = n) : n = A[1];
|
|
4030
4030
|
const i = K(n);
|
|
4031
4031
|
let o;
|
|
4032
4032
|
if (A[2] !== i) {
|
|
4033
4033
|
A: {
|
|
4034
|
-
const
|
|
4034
|
+
const a = ee({
|
|
4035
4035
|
values: i
|
|
4036
4036
|
}).filter(Bn);
|
|
4037
|
-
if (!
|
|
4037
|
+
if (!a?.length) {
|
|
4038
4038
|
let f;
|
|
4039
4039
|
A[4] === Symbol.for("react.memo_cache_sentinel") ? (f = {}, A[4] = f) : f = A[4], o = f;
|
|
4040
4040
|
break A;
|
|
4041
4041
|
}
|
|
4042
|
-
o =
|
|
4042
|
+
o = a.reduce(Cn, {});
|
|
4043
4043
|
}
|
|
4044
4044
|
A[2] = i, A[3] = o;
|
|
4045
4045
|
} else
|
|
4046
4046
|
o = A[3];
|
|
4047
4047
|
const s = o;
|
|
4048
|
-
let
|
|
4048
|
+
let l;
|
|
4049
4049
|
if (A[5] !== r || A[6] !== s || A[7] !== e) {
|
|
4050
|
-
|
|
4051
|
-
let
|
|
4052
|
-
|
|
4050
|
+
l = [];
|
|
4051
|
+
let a = ke.get(e);
|
|
4052
|
+
a || (a = /* @__PURE__ */ new Map(), ke.set(e, a));
|
|
4053
4053
|
const f = Object.keys(s).map(Number);
|
|
4054
|
-
let
|
|
4054
|
+
let p = [...f].sort(kn);
|
|
4055
4055
|
if (r && r.length > 0) {
|
|
4056
4056
|
let h;
|
|
4057
|
-
A[9] !== r ? (h = (
|
|
4057
|
+
A[9] !== r ? (h = (g) => r.includes(g), A[9] = r, A[10] = h) : h = A[10], p = p.filter(h);
|
|
4058
4058
|
}
|
|
4059
|
-
for (const h of
|
|
4060
|
-
const
|
|
4061
|
-
if (
|
|
4062
|
-
const w =
|
|
4063
|
-
|
|
4059
|
+
for (const h of p) {
|
|
4060
|
+
const g = s[h];
|
|
4061
|
+
if (g && g.length > 0) {
|
|
4062
|
+
const w = g.map(En).join("|"), b = `${h}:${w}`;
|
|
4063
|
+
a.has(b) || a.set(b, SA(g.map(vn)).geometry), l.push(a.get(b));
|
|
4064
4064
|
}
|
|
4065
4065
|
}
|
|
4066
4066
|
const c = new Set(f.filter((h) => {
|
|
4067
|
-
const
|
|
4068
|
-
return
|
|
4067
|
+
const g = s[h];
|
|
4068
|
+
return g && g.length > 0;
|
|
4069
4069
|
}).map((h) => {
|
|
4070
4070
|
const w = s[h].map(bn).join("|");
|
|
4071
4071
|
return `${h}:${w}`;
|
|
4072
4072
|
}));
|
|
4073
|
-
for (const h of
|
|
4074
|
-
c.has(h) ||
|
|
4075
|
-
A[5] = r, A[6] = s, A[7] = e, A[8] =
|
|
4073
|
+
for (const h of a.keys())
|
|
4074
|
+
c.has(h) || a.delete(h);
|
|
4075
|
+
A[5] = r, A[6] = s, A[7] = e, A[8] = l;
|
|
4076
4076
|
} else
|
|
4077
|
-
|
|
4078
|
-
return
|
|
4077
|
+
l = A[8];
|
|
4078
|
+
return l;
|
|
4079
4079
|
}
|
|
4080
4080
|
function bn(t) {
|
|
4081
4081
|
return `${t.id}:${t.properties.visible ? "1" : "0"}`;
|
|
@@ -4103,7 +4103,7 @@ function _n(t) {
|
|
|
4103
4103
|
groupIds: r
|
|
4104
4104
|
} = t;
|
|
4105
4105
|
let n;
|
|
4106
|
-
A[0] !== e ? (n = (
|
|
4106
|
+
A[0] !== e ? (n = (a) => a.spatialFilter[e], A[0] = e, A[1] = n) : n = A[1];
|
|
4107
4107
|
const i = I(n);
|
|
4108
4108
|
let o;
|
|
4109
4109
|
A: {
|
|
@@ -4112,45 +4112,45 @@ function _n(t) {
|
|
|
4112
4112
|
A[2] === Symbol.for("react.memo_cache_sentinel") ? (f = {}, A[2] = f) : f = A[2], o = f;
|
|
4113
4113
|
break A;
|
|
4114
4114
|
}
|
|
4115
|
-
let
|
|
4116
|
-
A[3] !== i ? (
|
|
4115
|
+
let a;
|
|
4116
|
+
A[3] !== i ? (a = Object.values(i).filter(Tn).reduce(Pn, {}), A[3] = i, A[4] = a) : a = A[4], o = a;
|
|
4117
4117
|
}
|
|
4118
4118
|
const s = o;
|
|
4119
|
-
let
|
|
4119
|
+
let l;
|
|
4120
4120
|
if (A[5] !== r || A[6] !== s || A[7] !== e) {
|
|
4121
|
-
|
|
4122
|
-
let
|
|
4123
|
-
|
|
4121
|
+
l = [];
|
|
4122
|
+
let a = Ce.get(e);
|
|
4123
|
+
a || (a = /* @__PURE__ */ new Map(), Ce.set(e, a));
|
|
4124
4124
|
const f = Object.keys(s).map(Number);
|
|
4125
|
-
let
|
|
4125
|
+
let p = [...f].sort(Dn);
|
|
4126
4126
|
if (r && r.length > 0) {
|
|
4127
4127
|
let h;
|
|
4128
|
-
A[9] !== r ? (h = (
|
|
4128
|
+
A[9] !== r ? (h = (g) => r.includes(g), A[9] = r, A[10] = h) : h = A[10], p = p.filter(h);
|
|
4129
4129
|
}
|
|
4130
|
-
for (const h of
|
|
4131
|
-
const
|
|
4132
|
-
if (
|
|
4133
|
-
const w =
|
|
4134
|
-
if (!
|
|
4135
|
-
const u =
|
|
4136
|
-
|
|
4130
|
+
for (const h of p) {
|
|
4131
|
+
const g = s[h];
|
|
4132
|
+
if (g && g.length > 0) {
|
|
4133
|
+
const w = g.map(xn).join("|"), b = `static:${h}:${w}`;
|
|
4134
|
+
if (!a.has(b)) {
|
|
4135
|
+
const u = g.flatMap(Sn);
|
|
4136
|
+
a.set(b, SA(u).geometry);
|
|
4137
4137
|
}
|
|
4138
|
-
|
|
4138
|
+
l.push(a.get(b));
|
|
4139
4139
|
}
|
|
4140
4140
|
}
|
|
4141
4141
|
const c = new Set(f.filter((h) => {
|
|
4142
|
-
const
|
|
4143
|
-
return
|
|
4142
|
+
const g = s[h];
|
|
4143
|
+
return g && g.length > 0;
|
|
4144
4144
|
}).map((h) => {
|
|
4145
4145
|
const w = s[h].map(Mn).join("|");
|
|
4146
4146
|
return `static:${h}:${w}`;
|
|
4147
4147
|
}));
|
|
4148
|
-
for (const h of
|
|
4149
|
-
c.has(h) ||
|
|
4150
|
-
A[5] = r, A[6] = s, A[7] = e, A[8] =
|
|
4148
|
+
for (const h of a.keys())
|
|
4149
|
+
c.has(h) || a.delete(h);
|
|
4150
|
+
A[5] = r, A[6] = s, A[7] = e, A[8] = l;
|
|
4151
4151
|
} else
|
|
4152
|
-
|
|
4153
|
-
return
|
|
4152
|
+
l = A[8];
|
|
4153
|
+
return l;
|
|
4154
4154
|
}
|
|
4155
4155
|
function Mn(t) {
|
|
4156
4156
|
return `${t.type}:${JSON.stringify(t.coordinates).length}`;
|
|
@@ -4198,11 +4198,11 @@ function Ki({
|
|
|
4198
4198
|
title: i,
|
|
4199
4199
|
getColumnName: o = Fn,
|
|
4200
4200
|
getFieldHtml: s = In,
|
|
4201
|
-
getTitle:
|
|
4202
|
-
getValue:
|
|
4201
|
+
getTitle: l = Ln,
|
|
4202
|
+
getValue: a = Qn
|
|
4203
4203
|
}) {
|
|
4204
|
-
const f = i ?
|
|
4205
|
-
const w = A[
|
|
4204
|
+
const f = i ? l(i) : "", c = e.reduce((h, g) => {
|
|
4205
|
+
const w = A[g], b = t[g], u = a(b, r, w), d = n ? o(g) : "";
|
|
4206
4206
|
return h + s(d, u);
|
|
4207
4207
|
}, "");
|
|
4208
4208
|
return f + c;
|
|
@@ -4267,14 +4267,14 @@ function Ji(t) {
|
|
|
4267
4267
|
maxZoom: o,
|
|
4268
4268
|
minZoom: s
|
|
4269
4269
|
} = I(n);
|
|
4270
|
-
let
|
|
4271
|
-
A[2] !== r ? (
|
|
4272
|
-
const
|
|
4273
|
-
let
|
|
4274
|
-
A[4] !== r || A[5] !== f ? (
|
|
4275
|
-
const w =
|
|
4270
|
+
let l;
|
|
4271
|
+
A[2] !== r ? (l = (y) => y.areLayersLoaded[r], A[2] = r, A[3] = l) : l = A[3];
|
|
4272
|
+
const a = I(l), f = I(Gn), p = I(Un), c = I(Nn), h = !a;
|
|
4273
|
+
let g;
|
|
4274
|
+
A[4] !== r || A[5] !== f ? (g = (y) => f(r, y), A[4] = r, A[5] = f, A[6] = g) : g = A[6];
|
|
4275
|
+
const w = g;
|
|
4276
4276
|
let b;
|
|
4277
|
-
A[7] !==
|
|
4277
|
+
A[7] !== p || A[8] !== r ? (b = (y) => p(r, y), A[7] = p, A[8] = r, A[9] = b) : b = A[9];
|
|
4278
4278
|
const u = b;
|
|
4279
4279
|
let d;
|
|
4280
4280
|
A[10] !== r || A[11] !== c ? (d = () => c(r), A[10] = r, A[11] = c, A[12] = d) : d = A[12];
|
|
@@ -4310,10 +4310,10 @@ async function zn({
|
|
|
4310
4310
|
...o
|
|
4311
4311
|
} = {},
|
|
4312
4312
|
queryParameters: s,
|
|
4313
|
-
params:
|
|
4314
|
-
apiVersion:
|
|
4313
|
+
params: l,
|
|
4314
|
+
apiVersion: a = re
|
|
4315
4315
|
}) {
|
|
4316
|
-
const f = `${t}/${
|
|
4316
|
+
const f = `${t}/${a}/stats/${A}/${n}`;
|
|
4317
4317
|
return He({
|
|
4318
4318
|
accessToken: e,
|
|
4319
4319
|
signal: i,
|
|
@@ -4322,7 +4322,7 @@ async function zn({
|
|
|
4322
4322
|
params: {
|
|
4323
4323
|
q: r,
|
|
4324
4324
|
...s,
|
|
4325
|
-
...
|
|
4325
|
+
...l
|
|
4326
4326
|
},
|
|
4327
4327
|
...o
|
|
4328
4328
|
});
|
|
@@ -4338,13 +4338,13 @@ async function jn({
|
|
|
4338
4338
|
signal: o,
|
|
4339
4339
|
...s
|
|
4340
4340
|
} = {},
|
|
4341
|
-
apiVersion:
|
|
4341
|
+
apiVersion: l = re
|
|
4342
4342
|
}) {
|
|
4343
|
-
const
|
|
4343
|
+
const a = `${t}/${l}/stats/${A}/${r}/${n}`;
|
|
4344
4344
|
return He({
|
|
4345
4345
|
accessToken: e,
|
|
4346
4346
|
signal: o,
|
|
4347
|
-
url:
|
|
4347
|
+
url: a,
|
|
4348
4348
|
method: yA.get,
|
|
4349
4349
|
params: {
|
|
4350
4350
|
...i
|
|
@@ -4361,23 +4361,23 @@ function Xi(t) {
|
|
|
4361
4361
|
fetcherOptions: o,
|
|
4362
4362
|
useQueryProps: s
|
|
4363
4363
|
} = t;
|
|
4364
|
-
let
|
|
4365
|
-
A[0] !== s ? (
|
|
4366
|
-
let
|
|
4367
|
-
A[2] !==
|
|
4368
|
-
enabled:
|
|
4364
|
+
let l;
|
|
4365
|
+
A[0] !== s ? (l = s === void 0 ? {} : s, A[0] = s, A[1] = l) : l = A[1];
|
|
4366
|
+
let a, f;
|
|
4367
|
+
A[2] !== l ? ({
|
|
4368
|
+
enabled: a,
|
|
4369
4369
|
...f
|
|
4370
|
-
} =
|
|
4371
|
-
const
|
|
4370
|
+
} = l, A[2] = l, A[3] = a, A[4] = f) : (a = A[3], f = A[4]);
|
|
4371
|
+
const p = a === void 0 ? !0 : a;
|
|
4372
4372
|
let c;
|
|
4373
4373
|
A[5] !== r ? (c = ["stats", r], A[5] = r, A[6] = c) : c = A[6];
|
|
4374
4374
|
const h = e?.id;
|
|
4375
|
-
let
|
|
4376
|
-
A[7] !== c || A[8] !== h ? (
|
|
4375
|
+
let g;
|
|
4376
|
+
A[7] !== c || A[8] !== h ? (g = {
|
|
4377
4377
|
queryKeyPrefix: c,
|
|
4378
4378
|
sourceId: h
|
|
4379
|
-
}, A[7] = c, A[8] = h, A[9] =
|
|
4380
|
-
const w = Ke(
|
|
4379
|
+
}, A[7] = c, A[8] = h, A[9] = g) : g = A[9];
|
|
4380
|
+
const w = Ke(g);
|
|
4381
4381
|
let b;
|
|
4382
4382
|
A[10] !== n || A[11] !== r || A[12] !== o || A[13] !== i || A[14] !== e ? (b = () => Vn({
|
|
4383
4383
|
source: e,
|
|
@@ -4387,7 +4387,7 @@ function Xi(t) {
|
|
|
4387
4387
|
fetcherOptions: o
|
|
4388
4388
|
}), A[10] = n, A[11] = r, A[12] = o, A[13] = i, A[14] = e, A[15] = b) : b = A[15];
|
|
4389
4389
|
let u;
|
|
4390
|
-
return A[16] !==
|
|
4390
|
+
return A[16] !== p || A[17] !== w || A[18] !== e || A[19] !== b || A[20] !== f ? (u = {
|
|
4391
4391
|
queryKey: w,
|
|
4392
4392
|
queryFn: b,
|
|
4393
4393
|
select(d) {
|
|
@@ -4396,9 +4396,9 @@ function Xi(t) {
|
|
|
4396
4396
|
type: d.type.toLowerCase()
|
|
4397
4397
|
};
|
|
4398
4398
|
},
|
|
4399
|
-
enabled: !!e &&
|
|
4399
|
+
enabled: !!e && p,
|
|
4400
4400
|
...f
|
|
4401
|
-
}, A[16] =
|
|
4401
|
+
}, A[16] = p, A[17] = w, A[18] = e, A[19] = b, A[20] = f, A[21] = u) : u = A[21], Ie(u);
|
|
4402
4402
|
}
|
|
4403
4403
|
function Vn({
|
|
4404
4404
|
source: t,
|
|
@@ -4491,8 +4491,8 @@ function qn({
|
|
|
4491
4491
|
attribute: A
|
|
4492
4492
|
}) {
|
|
4493
4493
|
const e = t.reduce((o, s) => {
|
|
4494
|
-
const
|
|
4495
|
-
return o.sum +=
|
|
4494
|
+
const l = s.properties?.[A];
|
|
4495
|
+
return o.sum += l, o.max = Math.max(o.max, l), o.min = Math.min(o.min, l), o.values.push(l), o;
|
|
4496
4496
|
}, {
|
|
4497
4497
|
max: -1 / 0,
|
|
4498
4498
|
min: 1 / 0,
|
|
@@ -4502,8 +4502,8 @@ function qn({
|
|
|
4502
4502
|
for (let o = 3; o <= 20; o++) {
|
|
4503
4503
|
n[o] = [];
|
|
4504
4504
|
for (let s = 0; s <= o; s++) {
|
|
4505
|
-
const
|
|
4506
|
-
|
|
4505
|
+
const l = Math.floor(s * (r.length - 1) / o), a = r[l];
|
|
4506
|
+
a !== void 0 && n[o]?.push(a);
|
|
4507
4507
|
}
|
|
4508
4508
|
}
|
|
4509
4509
|
return {
|