@carto/ps-react-maps 3.4.0 → 3.5.0-canary.0
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 +2134 -1484
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/providers/sources/const.d.ts +0 -1
- package/dist/types/providers/sources/types.d.ts +2 -1
- package/dist/types/stats/get-query-stats.d.ts +2 -0
- package/dist/types/stats/get-table-stats.d.ts +2 -0
- package/dist/types/stats/types.d.ts +27 -0
- package/dist/types/stats/use-stats.d.ts +10 -0
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as N, jsxs as
|
|
5
|
-
import { c as
|
|
6
|
-
import { useEffect as
|
|
7
|
-
import { MapProvider as
|
|
8
|
-
import
|
|
9
|
-
import { useMap as
|
|
10
|
-
import { GoogleMapsOverlay as
|
|
11
|
-
import { CompositeMode as
|
|
12
|
-
import { DataFilterExtension as
|
|
13
|
-
import { create as
|
|
14
|
-
import { FlyToInterpolator as
|
|
15
|
-
import { EventManager as
|
|
16
|
-
import { GeoJsonLayer as
|
|
17
|
-
import { useShallow as
|
|
18
|
-
import { area as
|
|
19
|
-
import { formatNumber as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { removeFilter as
|
|
23
|
-
import { useQuery as
|
|
24
|
-
import
|
|
25
|
-
import { multiPolygon as
|
|
26
|
-
const
|
|
1
|
+
var Ot = Object.defineProperty;
|
|
2
|
+
var kt = (r, e, t) => e in r ? Ot(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var ee = (r, e, t) => kt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as N, jsxs as ut } from "react/jsx-runtime";
|
|
5
|
+
import { c as R } from "react/compiler-runtime";
|
|
6
|
+
import { useEffect as z, useImperativeHandle as Ve, useMemo as re, useCallback as Q, useState as oe, createContext as Ie, useContext as Ne, useRef as we } from "react";
|
|
7
|
+
import { MapProvider as At, Map as Ct, useMap as Ft } from "react-map-gl/maplibre";
|
|
8
|
+
import Dt from "@deck.gl/react";
|
|
9
|
+
import { useMap as ft, APIProvider as Rt, Map as Ut } from "@vis.gl/react-google-maps";
|
|
10
|
+
import { GoogleMapsOverlay as xt } from "@deck.gl/google-maps";
|
|
11
|
+
import { CompositeMode as $t, TranslateMode as qt, ModifyMode as jt, DrawPolygonByDraggingMode as Bt, DrawCircleFromCenterMode as dt, DrawRectangleMode as Vt, DrawPolygonMode as It, EditableGeoJsonLayer as Nt, MeasureAreaMode as Ht, getPickedEditHandle as Gt, MeasureDistanceMode as zt, ViewMode as Qt } from "@deck.gl-community/editable-layers";
|
|
12
|
+
import { DataFilterExtension as Wt, MaskExtension as Zt } from "@deck.gl/extensions";
|
|
13
|
+
import { create as pt, createStore as He, useStore as Ge } from "zustand";
|
|
14
|
+
import { FlyToInterpolator as Kt, WebMercatorViewport as Yt } from "@deck.gl/core";
|
|
15
|
+
import { EventManager as Xt } from "mjolnir.js";
|
|
16
|
+
import { GeoJsonLayer as Jt } from "@deck.gl/layers";
|
|
17
|
+
import { useShallow as mt } from "zustand/shallow";
|
|
18
|
+
import { area as Ze, centroid as es, lineIntersect as ts } from "@turf/turf";
|
|
19
|
+
import { formatNumber as yt, formatCurrency as ss } from "@carto/ps-utils";
|
|
20
|
+
import ns from "convert-units";
|
|
21
|
+
import rs from "convert-units/definitions/length";
|
|
22
|
+
import { removeFilter as Ke, addFilter as os, WidgetRasterSource as is, WidgetTilesetSource as as, TileFormat as ls, WidgetTableSource as cs, WidgetQuerySource as us, createViewportSpatialFilter as fs, vectorTilesetSource as ds } from "@carto/api-client";
|
|
23
|
+
import { useQuery as se } from "@tanstack/react-query";
|
|
24
|
+
import ps from "html2canvas";
|
|
25
|
+
import { multiPolygon as ms } from "@turf/helpers";
|
|
26
|
+
const Fe = {
|
|
27
27
|
roadmap: "roadmap",
|
|
28
28
|
satellite: "satellite",
|
|
29
29
|
hybrid: "hybrid"
|
|
30
|
-
},
|
|
30
|
+
}, J = {
|
|
31
31
|
darkMatter: "darkMatter",
|
|
32
32
|
positron: "positron",
|
|
33
33
|
voyager: "voyager"
|
|
34
|
-
},
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
},
|
|
34
|
+
}, De = {
|
|
35
|
+
[J.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
36
|
+
[J.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
37
|
+
[J.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
38
|
+
}, te = {
|
|
39
39
|
maplibre: "maplibre",
|
|
40
40
|
googleMaps: "google-maps"
|
|
41
|
-
},
|
|
42
|
-
[
|
|
43
|
-
url:
|
|
44
|
-
type:
|
|
41
|
+
}, me = {
|
|
42
|
+
[J.positron]: {
|
|
43
|
+
url: De[J.positron],
|
|
44
|
+
type: te.maplibre
|
|
45
45
|
},
|
|
46
|
-
[
|
|
47
|
-
url:
|
|
48
|
-
type:
|
|
46
|
+
[J.voyager]: {
|
|
47
|
+
url: De[J.voyager],
|
|
48
|
+
type: te.maplibre
|
|
49
49
|
},
|
|
50
|
-
[
|
|
51
|
-
url:
|
|
52
|
-
type:
|
|
50
|
+
[J.darkMatter]: {
|
|
51
|
+
url: De[J.darkMatter],
|
|
52
|
+
type: te.maplibre,
|
|
53
53
|
dark: !0
|
|
54
54
|
},
|
|
55
|
-
[
|
|
56
|
-
type:
|
|
55
|
+
[Fe.roadmap]: {
|
|
56
|
+
type: te.googleMaps
|
|
57
57
|
},
|
|
58
|
-
[
|
|
59
|
-
type:
|
|
58
|
+
[Fe.satellite]: {
|
|
59
|
+
type: te.googleMaps
|
|
60
60
|
},
|
|
61
|
-
[
|
|
62
|
-
type:
|
|
61
|
+
[Fe.hybrid]: {
|
|
62
|
+
type: te.googleMaps
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
function
|
|
66
|
-
isDragging:
|
|
65
|
+
function ys({
|
|
66
|
+
isDragging: r,
|
|
67
67
|
isHovering: e
|
|
68
68
|
}) {
|
|
69
|
-
return
|
|
69
|
+
return r ? "grabbing" : e ? "pointer" : "grab";
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
73
|
-
html: `<div class='map-tooltip__content'>${
|
|
71
|
+
function hs(r) {
|
|
72
|
+
return r.html ? {
|
|
73
|
+
html: `<div class='map-tooltip__content'>${r.html}</div>`,
|
|
74
74
|
style: {
|
|
75
75
|
padding: "0",
|
|
76
76
|
background: "none"
|
|
77
77
|
}
|
|
78
78
|
} : null;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
const e =
|
|
82
|
-
let t, n, s,
|
|
83
|
-
e[0] !==
|
|
80
|
+
function gs(r) {
|
|
81
|
+
const e = R(42);
|
|
82
|
+
let t, n, s, o, i, a, l, d, c, h, m, f;
|
|
83
|
+
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
85
|
-
overlayRef:
|
|
85
|
+
overlayRef: h,
|
|
86
86
|
controller: t,
|
|
87
|
-
id:
|
|
87
|
+
id: o,
|
|
88
88
|
layers: a,
|
|
89
89
|
mapStyle: l,
|
|
90
|
-
parameters:
|
|
90
|
+
parameters: m,
|
|
91
91
|
getCursor: n,
|
|
92
92
|
getTooltip: s,
|
|
93
93
|
onLoad: d,
|
|
94
94
|
onViewStateChange: c,
|
|
95
|
-
...
|
|
96
|
-
} =
|
|
97
|
-
let
|
|
98
|
-
e[13] !== d ? (
|
|
95
|
+
...f
|
|
96
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = c, e[10] = h, e[11] = m, e[12] = f) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], c = e[9], h = e[10], m = e[11], f = e[12]);
|
|
97
|
+
let b, p;
|
|
98
|
+
e[13] !== d ? (b = () => {
|
|
99
99
|
d({
|
|
100
100
|
type: "load",
|
|
101
101
|
value: !1
|
|
@@ -103,84 +103,84 @@ function ns(o) {
|
|
|
103
103
|
type: "deckgl",
|
|
104
104
|
value: !1
|
|
105
105
|
});
|
|
106
|
-
},
|
|
107
|
-
let
|
|
108
|
-
e[16] !== a ? (
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
e[18] !== d ? (
|
|
106
|
+
}, p = [d], e[13] = d, e[14] = b, e[15] = p) : (b = e[14], p = e[15]), z(b, p);
|
|
107
|
+
let L, y;
|
|
108
|
+
e[16] !== a ? (y = a.filter(Ss).map(vs), e[16] = a, e[17] = y) : y = e[17], L = y;
|
|
109
|
+
const g = L, S = i;
|
|
110
|
+
let E;
|
|
111
|
+
e[18] !== d ? (E = () => d({
|
|
112
112
|
type: "deckgl",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[18] = d, e[19] =
|
|
115
|
-
let
|
|
116
|
-
e[20] !==
|
|
114
|
+
}), e[18] = d, e[19] = E) : E = e[19];
|
|
115
|
+
let _;
|
|
116
|
+
e[20] !== m ? (_ = {
|
|
117
117
|
depthTest: !1,
|
|
118
|
-
...
|
|
119
|
-
}, e[20] =
|
|
120
|
-
let M;
|
|
121
|
-
e[22] !== p ? (M = /* @__PURE__ */ N(as, { overlayRef: p }), e[22] = p, e[23] = M) : M = e[23];
|
|
118
|
+
...m
|
|
119
|
+
}, e[20] = m, e[21] = _) : _ = e[21];
|
|
122
120
|
let T;
|
|
123
|
-
e[
|
|
121
|
+
e[22] !== h ? (T = /* @__PURE__ */ N(_s, { overlayRef: h }), e[22] = h, e[23] = T) : T = e[23];
|
|
122
|
+
let A;
|
|
123
|
+
e[24] !== d ? (A = () => d({
|
|
124
124
|
type: "load",
|
|
125
125
|
value: !0
|
|
126
|
-
}), e[24] = d, e[25] =
|
|
127
|
-
let
|
|
128
|
-
e[26] !== l || e[27] !==
|
|
129
|
-
let
|
|
130
|
-
return e[29] !==
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
] }) }) }), e[29] =
|
|
134
|
-
}
|
|
135
|
-
function
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
function
|
|
126
|
+
}), e[24] = d, e[25] = A) : A = e[25];
|
|
127
|
+
let U;
|
|
128
|
+
e[26] !== l || e[27] !== A ? (U = /* @__PURE__ */ N(Ct, { reuseMaps: !0, mapStyle: l, onLoad: A, onRender: bs }), e[26] = l, e[27] = A, e[28] = U) : U = e[28];
|
|
129
|
+
let F;
|
|
130
|
+
return e[29] !== g || e[30] !== t || e[31] !== n || e[32] !== s || e[33] !== o || e[34] !== c || e[35] !== f || e[36] !== U || e[37] !== S || e[38] !== E || e[39] !== _ || e[40] !== T ? (F = /* @__PURE__ */ N(At, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ut(Dt, { controller: t, id: o, ref: S, layers: g, getCursor: n, getTooltip: s, onLoad: E, onViewStateChange: c, parameters: _, ...f, children: [
|
|
131
|
+
T,
|
|
132
|
+
U
|
|
133
|
+
] }) }) }), e[29] = g, e[30] = t, e[31] = n, e[32] = s, e[33] = o, e[34] = c, e[35] = f, e[36] = U, e[37] = S, e[38] = E, e[39] = _, e[40] = T, e[41] = F) : F = e[41], F;
|
|
134
|
+
}
|
|
135
|
+
function bs() {
|
|
136
|
+
const r = document.querySelector(".maplibregl-compact-show");
|
|
137
|
+
r == null || r.classList.remove("maplibregl-compact-show");
|
|
138
|
+
}
|
|
139
|
+
function vs(r) {
|
|
140
140
|
const {
|
|
141
141
|
type: e,
|
|
142
142
|
props: t
|
|
143
|
-
} =
|
|
143
|
+
} = r;
|
|
144
144
|
return new e(t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
return !!(
|
|
146
|
+
function Ss(r) {
|
|
147
|
+
return !!(r != null && r.type);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
const e =
|
|
149
|
+
function _s(r) {
|
|
150
|
+
const e = R(3), {
|
|
151
151
|
overlayRef: t
|
|
152
|
-
} =
|
|
152
|
+
} = r, {
|
|
153
153
|
default: n
|
|
154
|
-
} =
|
|
155
|
-
let s,
|
|
156
|
-
return e[0] !== n ? (s = () => n,
|
|
154
|
+
} = Ft();
|
|
155
|
+
let s, o;
|
|
156
|
+
return e[0] !== n ? (s = () => n, o = [n], e[0] = n, e[1] = s, e[2] = o) : (s = e[1], o = e[2]), Ve(t, s, o), null;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
const e =
|
|
158
|
+
const Es = (r) => {
|
|
159
|
+
const e = R(9);
|
|
160
160
|
let t, n;
|
|
161
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = new
|
|
161
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = new xt({
|
|
162
162
|
interleaved: !0
|
|
163
163
|
}), e[0] = n) : n = e[0], t = n;
|
|
164
|
-
const s = t,
|
|
164
|
+
const s = t, o = ft();
|
|
165
165
|
let i, a;
|
|
166
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => s, a = [s], e[1] = i, e[2] = a) : (i = e[1], a = e[2]),
|
|
166
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => s, a = [s], e[1] = i, e[2] = a) : (i = e[1], a = e[2]), Ve(r.instanceRef, i, a);
|
|
167
167
|
let l, d;
|
|
168
|
-
e[3] !==
|
|
168
|
+
e[3] !== o ? (l = () => (s.setMap(o), () => {
|
|
169
169
|
s.finalize();
|
|
170
|
-
}), d = [s,
|
|
171
|
-
let c,
|
|
172
|
-
return e[6] !==
|
|
173
|
-
s.setProps(
|
|
174
|
-
},
|
|
170
|
+
}), d = [s, o], e[3] = o, e[4] = l, e[5] = d) : (l = e[4], d = e[5]), z(l, d);
|
|
171
|
+
let c, h;
|
|
172
|
+
return e[6] !== r ? (c = () => {
|
|
173
|
+
s.setProps(r);
|
|
174
|
+
}, h = [s, r], e[6] = r, e[7] = c, e[8] = h) : (c = e[7], h = e[8]), z(c, h), null;
|
|
175
175
|
};
|
|
176
|
-
function
|
|
177
|
-
id:
|
|
176
|
+
function Ts({
|
|
177
|
+
id: r,
|
|
178
178
|
instanceRef: e,
|
|
179
179
|
basemap: t,
|
|
180
180
|
layers: n,
|
|
181
181
|
gmapsProps: {
|
|
182
182
|
apiKey: s,
|
|
183
|
-
APIProviderProps:
|
|
183
|
+
APIProviderProps: o,
|
|
184
184
|
...i
|
|
185
185
|
} = {
|
|
186
186
|
apiKey: ""
|
|
@@ -189,10 +189,10 @@ function cs({
|
|
|
189
189
|
parameters: l,
|
|
190
190
|
onLoad: d,
|
|
191
191
|
onViewStateChange: c,
|
|
192
|
-
...
|
|
192
|
+
...h
|
|
193
193
|
}) {
|
|
194
|
-
var
|
|
195
|
-
|
|
194
|
+
var p, L, y, g, S;
|
|
195
|
+
z(() => {
|
|
196
196
|
d({
|
|
197
197
|
type: "load",
|
|
198
198
|
value: !1
|
|
@@ -201,55 +201,55 @@ function cs({
|
|
|
201
201
|
value: !1
|
|
202
202
|
});
|
|
203
203
|
}, [d]);
|
|
204
|
-
const
|
|
205
|
-
type:
|
|
206
|
-
props:
|
|
207
|
-
}) => new
|
|
204
|
+
const m = re(() => n.filter((E) => !!(E != null && E.type)).map(({
|
|
205
|
+
type: E,
|
|
206
|
+
props: _
|
|
207
|
+
}) => new E(_)), [n]), f = Q(({
|
|
208
208
|
detail: {
|
|
209
|
-
center:
|
|
210
|
-
zoom:
|
|
211
|
-
heading:
|
|
212
|
-
tilt:
|
|
209
|
+
center: E,
|
|
210
|
+
zoom: _,
|
|
211
|
+
heading: T,
|
|
212
|
+
tilt: A
|
|
213
213
|
}
|
|
214
214
|
}) => ({
|
|
215
|
-
latitude:
|
|
216
|
-
longitude:
|
|
217
|
-
zoom:
|
|
218
|
-
bearing:
|
|
219
|
-
pitch:
|
|
220
|
-
}), []),
|
|
221
|
-
const
|
|
215
|
+
latitude: E.lat,
|
|
216
|
+
longitude: E.lng,
|
|
217
|
+
zoom: _ - 1,
|
|
218
|
+
bearing: T,
|
|
219
|
+
pitch: A
|
|
220
|
+
}), []), b = Q((E) => {
|
|
221
|
+
const _ = e == null ? void 0 : e.current, T = _ == null ? void 0 : _._deck, A = {
|
|
222
222
|
// @ts-expect-error accessing protected props
|
|
223
|
-
...
|
|
224
|
-
...
|
|
225
|
-
},
|
|
226
|
-
latitude:
|
|
227
|
-
longitude:
|
|
228
|
-
zoom:
|
|
229
|
-
pitch:
|
|
230
|
-
bearing:
|
|
223
|
+
...T == null ? void 0 : T.viewState,
|
|
224
|
+
...E
|
|
225
|
+
}, U = {
|
|
226
|
+
latitude: A.latitude,
|
|
227
|
+
longitude: A.longitude,
|
|
228
|
+
zoom: A.zoom,
|
|
229
|
+
pitch: A.pitch,
|
|
230
|
+
bearing: A.bearing,
|
|
231
231
|
// @ts-expect-error - `width` and `height` is not in the types
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
232
|
+
width: T == null ? void 0 : T.width,
|
|
233
|
+
height: T == null ? void 0 : T.height
|
|
234
234
|
};
|
|
235
235
|
c == null || c({
|
|
236
|
-
viewState:
|
|
236
|
+
viewState: U,
|
|
237
237
|
interactionState: {
|
|
238
238
|
isZooming: !0
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
}, [e, c]);
|
|
242
|
-
return /* @__PURE__ */ N(
|
|
243
|
-
lat: ((
|
|
244
|
-
lng: ((
|
|
245
|
-
}, zoom: (((
|
|
242
|
+
return /* @__PURE__ */ N(Rt, { apiKey: s, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ut(Ut, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
|
|
243
|
+
lat: ((p = h.initialViewState) == null ? void 0 : p.latitude) ?? 0,
|
|
244
|
+
lng: ((L = h.initialViewState) == null ? void 0 : L.longitude) ?? 0
|
|
245
|
+
}, zoom: (((y = h.initialViewState) == null ? void 0 : y.zoom) ?? 0) + 1, tilt: (g = h.initialViewState) == null ? void 0 : g.pitch, heading: (S = h.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
|
|
246
246
|
d({
|
|
247
247
|
type: "load",
|
|
248
248
|
value: !0
|
|
249
|
-
}),
|
|
250
|
-
}, onBoundsChanged: (
|
|
251
|
-
/* @__PURE__ */ N(
|
|
252
|
-
/* @__PURE__ */ N(
|
|
249
|
+
}), b(h.initialViewState);
|
|
250
|
+
}, onBoundsChanged: (E) => b(f(E)), onZoomChanged: (E) => b(f(E)), children: [
|
|
251
|
+
/* @__PURE__ */ N(ws, { id: r, overlayRef: a }),
|
|
252
|
+
/* @__PURE__ */ N(Es, { id: r, instanceRef: e, layers: m, onLoad: () => {
|
|
253
253
|
d({
|
|
254
254
|
type: "deckgl",
|
|
255
255
|
value: !0
|
|
@@ -258,70 +258,70 @@ function cs({
|
|
|
258
258
|
// @ts-expect-error - `depthTest` is not in the types
|
|
259
259
|
depthTest: !1,
|
|
260
260
|
...l
|
|
261
|
-
}, ...
|
|
261
|
+
}, ...h })
|
|
262
262
|
] }) }) });
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const e =
|
|
264
|
+
function ws(r) {
|
|
265
|
+
const e = R(3), {
|
|
266
266
|
id: t,
|
|
267
267
|
overlayRef: n
|
|
268
|
-
} =
|
|
269
|
-
let
|
|
270
|
-
return e[0] !== s ? (
|
|
271
|
-
}
|
|
272
|
-
function
|
|
273
|
-
const e =
|
|
274
|
-
let t, n, s,
|
|
275
|
-
e[0] !==
|
|
268
|
+
} = r, s = ft(t);
|
|
269
|
+
let o, i;
|
|
270
|
+
return e[0] !== s ? (o = () => s, i = [s], e[0] = s, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ve(n, o, i), null;
|
|
271
|
+
}
|
|
272
|
+
function Ms(r) {
|
|
273
|
+
const e = R(46);
|
|
274
|
+
let t, n, s, o, i, a, l, d, c, h, m, f;
|
|
275
|
+
e[0] !== r ? ({
|
|
276
276
|
instanceRef: n,
|
|
277
|
-
overlayRef:
|
|
277
|
+
overlayRef: o,
|
|
278
278
|
basemap: a,
|
|
279
279
|
controller: l,
|
|
280
280
|
id: d,
|
|
281
281
|
layers: c,
|
|
282
282
|
gmapsProps: t,
|
|
283
|
-
getCursor:
|
|
284
|
-
getTooltip:
|
|
283
|
+
getCursor: h,
|
|
284
|
+
getTooltip: m,
|
|
285
285
|
onLoad: s,
|
|
286
|
-
onViewStateChange:
|
|
286
|
+
onViewStateChange: f,
|
|
287
287
|
...i
|
|
288
|
-
} =
|
|
289
|
-
const
|
|
290
|
-
let
|
|
291
|
-
e[13] !== c ? (
|
|
292
|
-
const
|
|
293
|
-
let
|
|
294
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
295
|
-
const [
|
|
296
|
-
let
|
|
297
|
-
e[16] !==
|
|
298
|
-
const
|
|
299
|
-
url:
|
|
300
|
-
type:
|
|
301
|
-
} =
|
|
302
|
-
let
|
|
303
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
}, e[18] =
|
|
307
|
-
const
|
|
308
|
-
let
|
|
309
|
-
if (e[19] !==
|
|
310
|
-
s == null || s(
|
|
311
|
-
},
|
|
312
|
-
let
|
|
313
|
-
return e[23] !==
|
|
314
|
-
}
|
|
315
|
-
let
|
|
316
|
-
return e[35] !==
|
|
317
|
-
}
|
|
318
|
-
function
|
|
319
|
-
return
|
|
288
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = c, e[10] = h, e[11] = m, e[12] = f) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], c = e[9], h = e[10], m = e[11], f = e[12]);
|
|
289
|
+
const b = a === void 0 ? J.positron : a, p = l === void 0 ? !0 : l, L = d === void 0 ? "deck-gl-map" : d;
|
|
290
|
+
let y;
|
|
291
|
+
e[13] !== c ? (y = c === void 0 ? [] : c, e[13] = c, e[14] = y) : y = e[14];
|
|
292
|
+
const g = y, S = h === void 0 ? ys : h, E = m === void 0 ? hs : m, _ = f === void 0 ? Ls : f;
|
|
293
|
+
let T;
|
|
294
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (T = [!1, !1], e[15] = T) : T = e[15];
|
|
295
|
+
const [A, U] = oe(T);
|
|
296
|
+
let F;
|
|
297
|
+
e[16] !== A ? (F = A.every(Ps), e[16] = A, e[17] = F) : F = e[17];
|
|
298
|
+
const j = F, {
|
|
299
|
+
url: q,
|
|
300
|
+
type: $
|
|
301
|
+
} = me[b], w = $ === te.googleMaps;
|
|
302
|
+
let k;
|
|
303
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (k = (P) => {
|
|
304
|
+
const O = P.type === "deckgl" ? 0 : 1;
|
|
305
|
+
U((H) => H.map((W, Z) => Z === O ? P.value : W));
|
|
306
|
+
}, e[18] = k) : k = e[18];
|
|
307
|
+
const u = k;
|
|
308
|
+
let v, M;
|
|
309
|
+
if (e[19] !== j || e[20] !== s ? (v = () => {
|
|
310
|
+
s == null || s(j);
|
|
311
|
+
}, M = [j, s], e[19] = j, e[20] = s, e[21] = v, e[22] = M) : (v = e[21], M = e[22]), z(v, M), w) {
|
|
312
|
+
let P;
|
|
313
|
+
return e[23] !== b || e[24] !== p || e[25] !== S || e[26] !== E || e[27] !== t || e[28] !== L || e[29] !== n || e[30] !== g || e[31] !== _ || e[32] !== o || e[33] !== i ? (P = /* @__PURE__ */ N(Ts, { instanceRef: n, overlayRef: o, controller: p, id: L, basemap: b, layers: g, gmapsProps: t, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: _, ...i }), e[23] = b, e[24] = p, e[25] = S, e[26] = E, e[27] = t, e[28] = L, e[29] = n, e[30] = g, e[31] = _, e[32] = o, e[33] = i, e[34] = P) : P = e[34], P;
|
|
314
|
+
}
|
|
315
|
+
let C;
|
|
316
|
+
return e[35] !== p || e[36] !== S || e[37] !== E || e[38] !== L || e[39] !== n || e[40] !== g || e[41] !== q || e[42] !== _ || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(gs, { instanceRef: n, overlayRef: o, controller: p, id: L, layers: g, mapStyle: q, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: _, ...i }), e[35] = p, e[36] = S, e[37] = E, e[38] = L, e[39] = n, e[40] = g, e[41] = q, e[42] = _, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
317
|
+
}
|
|
318
|
+
function Ps(r) {
|
|
319
|
+
return r;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Ls() {
|
|
322
322
|
return null;
|
|
323
323
|
}
|
|
324
|
-
const
|
|
324
|
+
const Y = {
|
|
325
325
|
addFeature: "addFeature",
|
|
326
326
|
addTentativePosition: "addTentativePosition",
|
|
327
327
|
updateTentativeFeature: "updateTentativeFeature",
|
|
@@ -329,20 +329,20 @@ const Q = {
|
|
|
329
329
|
finish: "finish",
|
|
330
330
|
addPosition: "addPosition"
|
|
331
331
|
};
|
|
332
|
-
class
|
|
332
|
+
class Os extends $t {
|
|
333
333
|
constructor() {
|
|
334
|
-
super([new
|
|
334
|
+
super([new qt(), new jt()]);
|
|
335
335
|
}
|
|
336
336
|
handleKeyUp(e, t) {
|
|
337
337
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
338
338
|
updatedData: t.data,
|
|
339
|
-
editType:
|
|
339
|
+
editType: Y.addFeature,
|
|
340
340
|
editContext: {}
|
|
341
341
|
}));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
const
|
|
345
|
-
id:
|
|
344
|
+
const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
345
|
+
id: le,
|
|
346
346
|
billboard: !1,
|
|
347
347
|
editHandlePointRadiusUnits: "pixels",
|
|
348
348
|
editHandlePointRadiusMinPixels: 1,
|
|
@@ -354,7 +354,7 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
354
354
|
lineWidthUnits: "pixels",
|
|
355
355
|
getLineWidth: 2,
|
|
356
356
|
lineWidthMinPixels: 2
|
|
357
|
-
},
|
|
357
|
+
}, Ye = {
|
|
358
358
|
editing: {
|
|
359
359
|
border: [3, 111, 226, 255],
|
|
360
360
|
fill: [3, 111, 226, 20.4],
|
|
@@ -364,49 +364,49 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
364
364
|
border: [71, 219, 153, 255],
|
|
365
365
|
fill: [71, 219, 153, 0]
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, Re = {
|
|
368
368
|
styles: {
|
|
369
369
|
colors: {
|
|
370
|
-
editing:
|
|
371
|
-
finished:
|
|
370
|
+
editing: Ye.editing,
|
|
371
|
+
finished: Ye.finished
|
|
372
372
|
}
|
|
373
373
|
},
|
|
374
374
|
labels: {
|
|
375
375
|
mask: "Mask"
|
|
376
376
|
}
|
|
377
|
-
},
|
|
377
|
+
}, As = [new Wt({
|
|
378
378
|
filterSize: 1
|
|
379
|
-
})],
|
|
380
|
-
id:
|
|
379
|
+
})], _e = {
|
|
380
|
+
id: Me,
|
|
381
381
|
operation: "mask",
|
|
382
382
|
pickable: !1,
|
|
383
383
|
visible: !0,
|
|
384
|
-
extensions:
|
|
384
|
+
extensions: As,
|
|
385
385
|
filterRange: [1, 1]
|
|
386
|
-
},
|
|
386
|
+
}, Ue = {
|
|
387
387
|
polygon: {
|
|
388
388
|
value: "polygon",
|
|
389
|
-
mode:
|
|
389
|
+
mode: It
|
|
390
390
|
},
|
|
391
391
|
rectangle: {
|
|
392
392
|
value: "rectangle",
|
|
393
|
-
mode:
|
|
393
|
+
mode: Vt
|
|
394
394
|
},
|
|
395
395
|
circle: {
|
|
396
396
|
value: "circle",
|
|
397
|
-
mode:
|
|
397
|
+
mode: dt
|
|
398
398
|
},
|
|
399
399
|
lasso: {
|
|
400
400
|
value: "lasso",
|
|
401
|
-
mode:
|
|
401
|
+
mode: Bt
|
|
402
402
|
},
|
|
403
403
|
edit: {
|
|
404
404
|
value: "edit",
|
|
405
|
-
mode:
|
|
405
|
+
mode: Os
|
|
406
406
|
}
|
|
407
|
-
},
|
|
407
|
+
}, de = pt((r) => ({
|
|
408
408
|
layers: {},
|
|
409
|
-
setLayer: (e, t) =>
|
|
409
|
+
setLayer: (e, t) => r((n) => {
|
|
410
410
|
var a;
|
|
411
411
|
const s = {
|
|
412
412
|
...n.layers
|
|
@@ -415,47 +415,47 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
415
415
|
return delete s[e], {
|
|
416
416
|
layers: s
|
|
417
417
|
};
|
|
418
|
-
const
|
|
418
|
+
const o = s[e] ?? {
|
|
419
419
|
type: null,
|
|
420
420
|
props: {}
|
|
421
|
-
}, i = [...
|
|
421
|
+
}, i = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((l, d) => (l.some((c) => c.equals(d)) || l.push(d), l), []);
|
|
422
422
|
return s[e] = {
|
|
423
|
-
...
|
|
423
|
+
...o,
|
|
424
424
|
...t,
|
|
425
425
|
props: {
|
|
426
426
|
id: e,
|
|
427
|
-
...
|
|
427
|
+
...o.props,
|
|
428
428
|
...t.props,
|
|
429
429
|
extensions: i
|
|
430
430
|
},
|
|
431
431
|
legend: {
|
|
432
|
-
...
|
|
432
|
+
...o.legend,
|
|
433
433
|
...t.legend
|
|
434
434
|
}
|
|
435
435
|
}, {
|
|
436
436
|
layers: s
|
|
437
437
|
};
|
|
438
438
|
}),
|
|
439
|
-
removeLayer: (e) =>
|
|
439
|
+
removeLayer: (e) => r((t) => {
|
|
440
440
|
const n = {
|
|
441
441
|
...t.layers
|
|
442
442
|
};
|
|
443
443
|
return delete n[e], n;
|
|
444
444
|
})
|
|
445
|
-
})),
|
|
445
|
+
})), Cs = {
|
|
446
446
|
transitionDuration: "auto",
|
|
447
|
-
transitionInterpolator: new
|
|
447
|
+
transitionInterpolator: new Kt({
|
|
448
448
|
curve: 2
|
|
449
449
|
})
|
|
450
|
-
},
|
|
451
|
-
const e =
|
|
450
|
+
}, Fs = (r) => {
|
|
451
|
+
const e = r.reduce((t, n) => {
|
|
452
452
|
const {
|
|
453
453
|
id: s,
|
|
454
|
-
basemap:
|
|
454
|
+
basemap: o
|
|
455
455
|
} = n;
|
|
456
456
|
return t[s] = {
|
|
457
457
|
isLoaded: !1,
|
|
458
|
-
basemap:
|
|
458
|
+
basemap: o,
|
|
459
459
|
instanceRef: {
|
|
460
460
|
current: {}
|
|
461
461
|
},
|
|
@@ -467,30 +467,30 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
467
467
|
}, {});
|
|
468
468
|
return (t, n) => ({
|
|
469
469
|
maps: e,
|
|
470
|
-
setBasemap: (s,
|
|
470
|
+
setBasemap: (s, o) => t((i) => {
|
|
471
471
|
var c;
|
|
472
472
|
const {
|
|
473
473
|
type: a
|
|
474
|
-
} =
|
|
474
|
+
} = me[i.maps[s].basemap], {
|
|
475
475
|
type: l
|
|
476
|
-
} =
|
|
476
|
+
} = me[o], d = a === l && !!((c = i.maps[s]) != null && c.isLoaded);
|
|
477
477
|
return {
|
|
478
478
|
maps: {
|
|
479
479
|
...i.maps,
|
|
480
480
|
[s]: {
|
|
481
481
|
...i.maps[s],
|
|
482
482
|
isLoaded: d,
|
|
483
|
-
basemap:
|
|
483
|
+
basemap: o
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
487
|
}),
|
|
488
|
-
setLoad: (s,
|
|
488
|
+
setLoad: (s, o) => t((i) => ({
|
|
489
489
|
maps: {
|
|
490
490
|
...i.maps,
|
|
491
491
|
[s]: {
|
|
492
492
|
...i.maps[s],
|
|
493
|
-
isLoaded:
|
|
493
|
+
isLoaded: o
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
})),
|
|
@@ -510,20 +510,20 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
510
510
|
const i = n().getDeckInstance(s);
|
|
511
511
|
return i == null ? void 0 : i.viewState;
|
|
512
512
|
},
|
|
513
|
-
getViewports: (s,
|
|
513
|
+
getViewports: (s, o) => {
|
|
514
514
|
const a = n().getDeckInstance(s);
|
|
515
|
-
return a == null ? void 0 : a.getViewports(
|
|
515
|
+
return a == null ? void 0 : a.getViewports(o);
|
|
516
516
|
},
|
|
517
|
-
getViewport: (s,
|
|
517
|
+
getViewport: (s, o = 0, i) => {
|
|
518
518
|
var d;
|
|
519
519
|
const l = n().getDeckInstance(s);
|
|
520
|
-
return (d = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : d[
|
|
520
|
+
return (d = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : d[o];
|
|
521
521
|
},
|
|
522
|
-
addLayers: (s,
|
|
522
|
+
addLayers: (s, o) => t((i) => {
|
|
523
523
|
var c;
|
|
524
524
|
const a = {
|
|
525
525
|
...i.maps
|
|
526
|
-
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], d = /* @__PURE__ */ new Set([...l, ...
|
|
526
|
+
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], d = /* @__PURE__ */ new Set([...l, ...o]);
|
|
527
527
|
return a[s] = {
|
|
528
528
|
...a[s],
|
|
529
529
|
layers: [...d]
|
|
@@ -531,21 +531,21 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
531
531
|
maps: a
|
|
532
532
|
};
|
|
533
533
|
}),
|
|
534
|
-
removeLayers: (s,
|
|
534
|
+
removeLayers: (s, o) => t((i) => {
|
|
535
535
|
var d;
|
|
536
536
|
const a = {
|
|
537
537
|
...i.maps
|
|
538
538
|
}, l = ((d = a[s]) == null ? void 0 : d.layers) ?? [];
|
|
539
539
|
return a[s] = {
|
|
540
540
|
...a[s],
|
|
541
|
-
layers: l.filter((c) => !
|
|
541
|
+
layers: l.filter((c) => !o.includes(c))
|
|
542
542
|
}, {
|
|
543
543
|
maps: a
|
|
544
544
|
};
|
|
545
545
|
})
|
|
546
546
|
});
|
|
547
|
-
},
|
|
548
|
-
const e =
|
|
547
|
+
}, Ds = (r) => {
|
|
548
|
+
const e = r.reduce((t, n) => {
|
|
549
549
|
const {
|
|
550
550
|
id: s
|
|
551
551
|
} = n;
|
|
@@ -553,15 +553,15 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
553
553
|
}, {});
|
|
554
554
|
return (t) => ({
|
|
555
555
|
areLayersLoaded: e,
|
|
556
|
-
setLayersLoad: (n, s) => t((
|
|
556
|
+
setLayersLoad: (n, s) => t((o) => ({
|
|
557
557
|
areLayersLoaded: {
|
|
558
|
-
...
|
|
558
|
+
...o.areLayersLoaded,
|
|
559
559
|
[n]: s
|
|
560
560
|
}
|
|
561
561
|
}))
|
|
562
562
|
});
|
|
563
|
-
},
|
|
564
|
-
const e =
|
|
563
|
+
}, Rs = (r) => {
|
|
564
|
+
const e = r.reduce((t, n) => (n.viewState && (t.viewStates[n.id] = n.viewState, t.viewports[n.id] = null), t), {
|
|
565
565
|
viewStates: {},
|
|
566
566
|
viewports: {}
|
|
567
567
|
});
|
|
@@ -569,9 +569,9 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
569
569
|
viewports: e.viewports,
|
|
570
570
|
updateViewPort: (s) => {
|
|
571
571
|
var a;
|
|
572
|
-
const
|
|
573
|
-
if (!((a =
|
|
574
|
-
const i = new
|
|
572
|
+
const o = n();
|
|
573
|
+
if (!((a = o.maps[s]) != null && a.isLoaded)) return;
|
|
574
|
+
const i = new Yt(o.viewStates[s]);
|
|
575
575
|
t((l) => ({
|
|
576
576
|
viewports: {
|
|
577
577
|
...l.viewports,
|
|
@@ -580,170 +580,171 @@ const ie = "lassoLayer", be = "maskLayer", gs = {
|
|
|
580
580
|
}));
|
|
581
581
|
},
|
|
582
582
|
viewStates: e.viewStates,
|
|
583
|
-
setViewState: (s,
|
|
583
|
+
setViewState: (s, o) => t((i) => ({
|
|
584
584
|
viewStates: {
|
|
585
585
|
...i.viewStates,
|
|
586
586
|
[s]: {
|
|
587
587
|
...i.viewStates[s],
|
|
588
|
-
...
|
|
588
|
+
...o
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
})),
|
|
592
|
-
setZoom: (s,
|
|
592
|
+
setZoom: (s, o) => t((i) => ({
|
|
593
593
|
viewStates: {
|
|
594
594
|
...i.viewStates,
|
|
595
595
|
[s]: {
|
|
596
596
|
...i.viewStates[s],
|
|
597
|
-
zoom:
|
|
597
|
+
zoom: o
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
})),
|
|
601
|
-
setMinZoom: (s,
|
|
601
|
+
setMinZoom: (s, o) => t((i) => ({
|
|
602
602
|
viewStates: {
|
|
603
603
|
...i.viewStates,
|
|
604
604
|
[s]: {
|
|
605
605
|
...i.viewStates[s],
|
|
606
|
-
minZoom:
|
|
606
|
+
minZoom: o
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
})),
|
|
610
|
-
setMaxZoom: (s,
|
|
610
|
+
setMaxZoom: (s, o) => t((i) => ({
|
|
611
611
|
viewStates: {
|
|
612
612
|
...i.viewStates,
|
|
613
613
|
[s]: {
|
|
614
614
|
...i.viewStates[s],
|
|
615
|
-
maxZoom:
|
|
615
|
+
maxZoom: o
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
}))
|
|
619
619
|
});
|
|
620
|
-
},
|
|
620
|
+
}, Us = (r, e) => ({
|
|
621
621
|
fitBounds: (t, n, s) => {
|
|
622
|
-
const
|
|
622
|
+
const o = e(), i = o.getViewport(t);
|
|
623
623
|
if (!i) return;
|
|
624
624
|
const l = {
|
|
625
625
|
...i == null ? void 0 : i.fitBounds(n, s == null ? void 0 : s.boundsOptions),
|
|
626
626
|
...s == null ? void 0 : s.viewStateOptions
|
|
627
627
|
};
|
|
628
|
-
|
|
628
|
+
o.setViewState(t, l);
|
|
629
629
|
},
|
|
630
630
|
flyTo: (t, n, s = {}) => {
|
|
631
|
-
const
|
|
632
|
-
if (!
|
|
631
|
+
const o = e();
|
|
632
|
+
if (!o.getViewport(t)) return;
|
|
633
633
|
const a = {
|
|
634
|
-
...
|
|
634
|
+
...Cs,
|
|
635
635
|
...s == null ? void 0 : s.viewStateOptions
|
|
636
636
|
}, l = {
|
|
637
637
|
...n,
|
|
638
638
|
...a
|
|
639
639
|
};
|
|
640
|
-
|
|
641
|
-
}
|
|
642
|
-
}),
|
|
643
|
-
...
|
|
644
|
-
...
|
|
645
|
-
...
|
|
646
|
-
...
|
|
647
|
-
})),
|
|
648
|
-
function
|
|
649
|
-
const e =
|
|
640
|
+
o.setViewState(t, l);
|
|
641
|
+
}
|
|
642
|
+
}), xs = (r) => He()((...e) => ({
|
|
643
|
+
...Fs(r)(...e),
|
|
644
|
+
...Ds(r)(...e),
|
|
645
|
+
...Rs(r)(...e),
|
|
646
|
+
...Us(...e)
|
|
647
|
+
})), ht = Ie({});
|
|
648
|
+
function $s(r) {
|
|
649
|
+
const e = R(5), {
|
|
650
650
|
children: t,
|
|
651
651
|
values: n
|
|
652
|
-
} =
|
|
652
|
+
} = r;
|
|
653
653
|
let s;
|
|
654
|
-
e[0] !== n ? (s =
|
|
655
|
-
const [
|
|
654
|
+
e[0] !== n ? (s = xs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
655
|
+
const [o] = oe(s);
|
|
656
656
|
let i;
|
|
657
|
-
return e[2] !== t || e[3] !==
|
|
657
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(ht.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
const e =
|
|
659
|
+
function x(r) {
|
|
660
|
+
const e = Ne(ht);
|
|
661
661
|
if (!Object.keys(e).length)
|
|
662
662
|
throw new Error("Missing MapProvider in the tree");
|
|
663
|
-
return
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
663
|
+
return Ge(e, r);
|
|
664
|
+
}
|
|
665
|
+
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
666
|
+
function gt(r) {
|
|
667
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
668
|
+
}
|
|
669
|
+
var xe, Xe;
|
|
670
|
+
function qs() {
|
|
671
|
+
if (Xe) return xe;
|
|
672
|
+
Xe = 1;
|
|
673
|
+
var r = function(g) {
|
|
674
|
+
return e(g) && !t(g);
|
|
674
675
|
};
|
|
675
|
-
function e(
|
|
676
|
-
return !!
|
|
676
|
+
function e(y) {
|
|
677
|
+
return !!y && typeof y == "object";
|
|
677
678
|
}
|
|
678
|
-
function t(
|
|
679
|
-
var
|
|
680
|
-
return
|
|
679
|
+
function t(y) {
|
|
680
|
+
var g = Object.prototype.toString.call(y);
|
|
681
|
+
return g === "[object RegExp]" || g === "[object Date]" || o(y);
|
|
681
682
|
}
|
|
682
683
|
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
683
|
-
function
|
|
684
|
-
return
|
|
684
|
+
function o(y) {
|
|
685
|
+
return y.$$typeof === s;
|
|
685
686
|
}
|
|
686
|
-
function i(
|
|
687
|
-
return Array.isArray(
|
|
687
|
+
function i(y) {
|
|
688
|
+
return Array.isArray(y) ? [] : {};
|
|
688
689
|
}
|
|
689
|
-
function a(
|
|
690
|
-
return
|
|
690
|
+
function a(y, g) {
|
|
691
|
+
return g.clone !== !1 && g.isMergeableObject(y) ? p(i(y), y, g) : y;
|
|
691
692
|
}
|
|
692
|
-
function l(
|
|
693
|
-
return
|
|
694
|
-
return a(
|
|
693
|
+
function l(y, g, S) {
|
|
694
|
+
return y.concat(g).map(function(E) {
|
|
695
|
+
return a(E, S);
|
|
695
696
|
});
|
|
696
697
|
}
|
|
697
|
-
function d(
|
|
698
|
-
if (!
|
|
699
|
-
return
|
|
700
|
-
var
|
|
701
|
-
return typeof
|
|
698
|
+
function d(y, g) {
|
|
699
|
+
if (!g.customMerge)
|
|
700
|
+
return p;
|
|
701
|
+
var S = g.customMerge(y);
|
|
702
|
+
return typeof S == "function" ? S : p;
|
|
702
703
|
}
|
|
703
|
-
function c(
|
|
704
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(
|
|
705
|
-
return Object.propertyIsEnumerable.call(
|
|
704
|
+
function c(y) {
|
|
705
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(y).filter(function(g) {
|
|
706
|
+
return Object.propertyIsEnumerable.call(y, g);
|
|
706
707
|
}) : [];
|
|
707
708
|
}
|
|
708
|
-
function
|
|
709
|
-
return Object.keys(
|
|
709
|
+
function h(y) {
|
|
710
|
+
return Object.keys(y).concat(c(y));
|
|
710
711
|
}
|
|
711
|
-
function
|
|
712
|
+
function m(y, g) {
|
|
712
713
|
try {
|
|
713
|
-
return
|
|
714
|
+
return g in y;
|
|
714
715
|
} catch {
|
|
715
716
|
return !1;
|
|
716
717
|
}
|
|
717
718
|
}
|
|
718
|
-
function
|
|
719
|
-
return
|
|
719
|
+
function f(y, g) {
|
|
720
|
+
return m(y, g) && !(Object.hasOwnProperty.call(y, g) && Object.propertyIsEnumerable.call(y, g));
|
|
720
721
|
}
|
|
721
|
-
function
|
|
722
|
-
var
|
|
723
|
-
return
|
|
724
|
-
|
|
725
|
-
}),
|
|
726
|
-
|
|
727
|
-
}),
|
|
722
|
+
function b(y, g, S) {
|
|
723
|
+
var E = {};
|
|
724
|
+
return S.isMergeableObject(y) && h(y).forEach(function(_) {
|
|
725
|
+
E[_] = a(y[_], S);
|
|
726
|
+
}), h(g).forEach(function(_) {
|
|
727
|
+
f(y, _) || (m(y, _) && S.isMergeableObject(g[_]) ? E[_] = d(_, S)(y[_], g[_], S) : E[_] = a(g[_], S));
|
|
728
|
+
}), E;
|
|
728
729
|
}
|
|
729
|
-
function
|
|
730
|
-
|
|
731
|
-
var
|
|
732
|
-
return
|
|
730
|
+
function p(y, g, S) {
|
|
731
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
732
|
+
var E = Array.isArray(g), _ = Array.isArray(y), T = E === _;
|
|
733
|
+
return T ? E ? S.arrayMerge(y, g, S) : b(y, g, S) : a(g, S);
|
|
733
734
|
}
|
|
734
|
-
|
|
735
|
-
if (!Array.isArray(
|
|
735
|
+
p.all = function(g, S) {
|
|
736
|
+
if (!Array.isArray(g))
|
|
736
737
|
throw new Error("first argument should be an array");
|
|
737
|
-
return
|
|
738
|
-
return
|
|
738
|
+
return g.reduce(function(E, _) {
|
|
739
|
+
return p(E, _, S);
|
|
739
740
|
}, {});
|
|
740
741
|
};
|
|
741
|
-
var
|
|
742
|
-
return
|
|
742
|
+
var L = p;
|
|
743
|
+
return xe = L, xe;
|
|
743
744
|
}
|
|
744
|
-
var
|
|
745
|
-
const
|
|
746
|
-
class
|
|
745
|
+
var js = qs();
|
|
746
|
+
const fe = /* @__PURE__ */ gt(js), Je = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
747
|
+
class bt extends Nt {
|
|
747
748
|
updateState({
|
|
748
749
|
props: e,
|
|
749
750
|
oldProps: t,
|
|
@@ -761,7 +762,7 @@ class it extends Ft {
|
|
|
761
762
|
const e = this._getEventManager(), {
|
|
762
763
|
eventHandler: t
|
|
763
764
|
} = this.state._editableLayerState;
|
|
764
|
-
for (const n of
|
|
765
|
+
for (const n of Je)
|
|
765
766
|
e.on(n, t, {
|
|
766
767
|
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
767
768
|
priority: 100
|
|
@@ -771,7 +772,7 @@ class it extends Ft {
|
|
|
771
772
|
const t = e ?? this._getEventManager(), {
|
|
772
773
|
eventHandler: n
|
|
773
774
|
} = this.state._editableLayerState;
|
|
774
|
-
for (const s of
|
|
775
|
+
for (const s of Je)
|
|
775
776
|
t.off(s, n);
|
|
776
777
|
}
|
|
777
778
|
_getEventManager() {
|
|
@@ -779,27 +780,27 @@ class it extends Ft {
|
|
|
779
780
|
this.context.deck.eventManager;
|
|
780
781
|
}
|
|
781
782
|
}
|
|
782
|
-
function
|
|
783
|
-
mode:
|
|
783
|
+
function Bs({
|
|
784
|
+
mode: r,
|
|
784
785
|
...e
|
|
785
786
|
}) {
|
|
786
|
-
const t =
|
|
787
|
+
const t = Vs(e);
|
|
787
788
|
return {
|
|
788
|
-
type:
|
|
789
|
+
type: bt,
|
|
789
790
|
props: {
|
|
790
791
|
...t,
|
|
791
|
-
mode:
|
|
792
|
+
mode: r
|
|
792
793
|
}
|
|
793
794
|
};
|
|
794
795
|
}
|
|
795
|
-
function
|
|
796
|
-
layerProps:
|
|
796
|
+
function Vs({
|
|
797
|
+
layerProps: r,
|
|
797
798
|
onEdit: e,
|
|
798
799
|
getLineColor: t,
|
|
799
800
|
getFillColor: n,
|
|
800
801
|
pointColor: s
|
|
801
802
|
}) {
|
|
802
|
-
const
|
|
803
|
+
const o = fe(r, {
|
|
803
804
|
modeConfig: {
|
|
804
805
|
// // We force distance due to conversion is addressed at feature getText level
|
|
805
806
|
// formatTooltip: (_distance: number) => {
|
|
@@ -808,7 +809,7 @@ function Cs({
|
|
|
808
809
|
preventOverlappingLines: !0
|
|
809
810
|
},
|
|
810
811
|
onEdit: e
|
|
811
|
-
}), i =
|
|
812
|
+
}), i = fe(ks, {
|
|
812
813
|
getTentativeLineColor: t,
|
|
813
814
|
getTentativeFillColor: n,
|
|
814
815
|
getLineColor: t,
|
|
@@ -817,20 +818,20 @@ function Cs({
|
|
|
817
818
|
getEditHandlePointOutlineColor: s.outline,
|
|
818
819
|
dataComparator: (l, d) => l.features[0] === d.features[0]
|
|
819
820
|
});
|
|
820
|
-
return
|
|
821
|
+
return fe(i, o);
|
|
821
822
|
}
|
|
822
|
-
const
|
|
823
|
-
data:
|
|
823
|
+
const Is = (r) => He()((e) => ({
|
|
824
|
+
data: r.reduce((n, s) => {
|
|
824
825
|
const {
|
|
825
|
-
enabled:
|
|
826
|
+
enabled: o = !1,
|
|
826
827
|
mapId: i,
|
|
827
|
-
modeInstance: a = new
|
|
828
|
-
modes: l =
|
|
829
|
-
modeSelected: d =
|
|
828
|
+
modeInstance: a = new Ue.polygon.mode(),
|
|
829
|
+
modes: l = Ue,
|
|
830
|
+
modeSelected: d = Ue.polygon.value,
|
|
830
831
|
values: c = {}
|
|
831
832
|
} = s;
|
|
832
833
|
return n[i] = {
|
|
833
|
-
enabled:
|
|
834
|
+
enabled: o,
|
|
834
835
|
modeInstance: a,
|
|
835
836
|
modes: l,
|
|
836
837
|
modeSelected: d,
|
|
@@ -838,18 +839,18 @@ const ws = (o) => Ve()((e) => ({
|
|
|
838
839
|
}, n;
|
|
839
840
|
}, {}),
|
|
840
841
|
setEnabled: (n, s) => {
|
|
841
|
-
e((
|
|
842
|
+
e((o) => ({
|
|
842
843
|
data: {
|
|
843
|
-
...
|
|
844
|
+
...o.data,
|
|
844
845
|
[n]: {
|
|
845
|
-
...
|
|
846
|
+
...o.data[n],
|
|
846
847
|
enabled: s,
|
|
847
848
|
visible: s
|
|
848
849
|
}
|
|
849
850
|
}
|
|
850
851
|
}));
|
|
851
852
|
},
|
|
852
|
-
setValue: (n, s,
|
|
853
|
+
setValue: (n, s, o) => {
|
|
853
854
|
e((i) => {
|
|
854
855
|
const a = {
|
|
855
856
|
...i.data[n].values
|
|
@@ -858,9 +859,9 @@ const ws = (o) => Ve()((e) => ({
|
|
|
858
859
|
};
|
|
859
860
|
return a[s] = {
|
|
860
861
|
...l,
|
|
861
|
-
...
|
|
862
|
+
...o,
|
|
862
863
|
id: s
|
|
863
|
-
},
|
|
864
|
+
}, o || delete a[s], {
|
|
864
865
|
data: {
|
|
865
866
|
...i.data,
|
|
866
867
|
[n]: {
|
|
@@ -871,12 +872,12 @@ const ws = (o) => Ve()((e) => ({
|
|
|
871
872
|
};
|
|
872
873
|
});
|
|
873
874
|
},
|
|
874
|
-
setVisibility: (n, s,
|
|
875
|
+
setVisibility: (n, s, o) => {
|
|
875
876
|
e((i) => {
|
|
876
877
|
const a = {
|
|
877
878
|
...i.data[n].values
|
|
878
879
|
}, l = a[s] ?? {};
|
|
879
|
-
return l.properties.visible =
|
|
880
|
+
return l.properties.visible = o, {
|
|
880
881
|
data: {
|
|
881
882
|
...i.data,
|
|
882
883
|
[n]: {
|
|
@@ -891,135 +892,135 @@ const ws = (o) => Ve()((e) => ({
|
|
|
891
892
|
});
|
|
892
893
|
},
|
|
893
894
|
setModeSelected: (n, s) => {
|
|
894
|
-
e((
|
|
895
|
+
e((o) => ({
|
|
895
896
|
data: {
|
|
896
|
-
...
|
|
897
|
+
...o.data,
|
|
897
898
|
[n]: {
|
|
898
|
-
...
|
|
899
|
+
...o.data[n],
|
|
899
900
|
modeSelected: s
|
|
900
901
|
}
|
|
901
902
|
}
|
|
902
903
|
}));
|
|
903
904
|
},
|
|
904
905
|
setModeInstance: (n, s) => {
|
|
905
|
-
e((
|
|
906
|
+
e((o) => ({
|
|
906
907
|
data: {
|
|
907
|
-
...
|
|
908
|
+
...o.data,
|
|
908
909
|
[n]: {
|
|
909
|
-
...
|
|
910
|
+
...o.data[n],
|
|
910
911
|
modeInstance: s
|
|
911
912
|
}
|
|
912
913
|
}
|
|
913
914
|
}));
|
|
914
915
|
}
|
|
915
|
-
})),
|
|
916
|
-
function
|
|
917
|
-
const e =
|
|
916
|
+
})), vt = Ie({});
|
|
917
|
+
function Ns(r) {
|
|
918
|
+
const e = R(5), {
|
|
918
919
|
children: t,
|
|
919
920
|
values: n
|
|
920
|
-
} =
|
|
921
|
+
} = r;
|
|
921
922
|
let s;
|
|
922
|
-
e[0] !== n ? (s = () =>
|
|
923
|
-
const [
|
|
923
|
+
e[0] !== n ? (s = () => Is(n), e[0] = n, e[1] = s) : s = e[1];
|
|
924
|
+
const [o] = oe(s);
|
|
924
925
|
let i;
|
|
925
|
-
return e[2] !== t || e[3] !==
|
|
926
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(vt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
926
927
|
}
|
|
927
|
-
function
|
|
928
|
-
const e =
|
|
928
|
+
function G(r) {
|
|
929
|
+
const e = Ne(vt);
|
|
929
930
|
if (!Object.keys(e).length)
|
|
930
931
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
931
|
-
return
|
|
932
|
+
return Ge(e, r);
|
|
932
933
|
}
|
|
933
|
-
function
|
|
934
|
-
mapId:
|
|
934
|
+
function Hs({
|
|
935
|
+
mapId: r,
|
|
935
936
|
children: e
|
|
936
937
|
}) {
|
|
937
|
-
const t =
|
|
938
|
-
var
|
|
939
|
-
return (
|
|
940
|
-
}), n =
|
|
941
|
-
var
|
|
942
|
-
return (
|
|
943
|
-
}),
|
|
944
|
-
var
|
|
945
|
-
return (
|
|
946
|
-
}), l =
|
|
947
|
-
var
|
|
948
|
-
return (
|
|
949
|
-
}), c =
|
|
950
|
-
|
|
951
|
-
const
|
|
952
|
-
if (
|
|
953
|
-
const
|
|
954
|
-
c(
|
|
938
|
+
const t = G((f) => {
|
|
939
|
+
var b;
|
|
940
|
+
return (b = f.data[r]) == null ? void 0 : b.enabled;
|
|
941
|
+
}), n = G((f) => f.setEnabled), s = G((f) => {
|
|
942
|
+
var b;
|
|
943
|
+
return (b = f.data[r]) == null ? void 0 : b.values;
|
|
944
|
+
}), o = G((f) => f.setValue), i = G((f) => f.setVisibility), a = G((f) => {
|
|
945
|
+
var b;
|
|
946
|
+
return (b = f.data[r]) == null ? void 0 : b.modeSelected;
|
|
947
|
+
}), l = G((f) => f.setModeSelected), d = G((f) => {
|
|
948
|
+
var b;
|
|
949
|
+
return (b = f.data[r]) == null ? void 0 : b.modes;
|
|
950
|
+
}), c = G((f) => f.setModeInstance);
|
|
951
|
+
z(() => {
|
|
952
|
+
const f = d[a];
|
|
953
|
+
if (f && t) {
|
|
954
|
+
const b = f.mode;
|
|
955
|
+
c(r, new b());
|
|
955
956
|
}
|
|
956
|
-
}, [t,
|
|
957
|
+
}, [t, r, a, d, c]);
|
|
957
958
|
const [
|
|
958
|
-
|
|
959
|
+
h
|
|
959
960
|
// , draw
|
|
960
|
-
] =
|
|
961
|
-
const
|
|
962
|
-
var
|
|
961
|
+
] = re(() => {
|
|
962
|
+
const f = (L) => {
|
|
963
|
+
var y;
|
|
963
964
|
return {
|
|
964
|
-
id:
|
|
965
|
-
visible:
|
|
966
|
-
label: (
|
|
965
|
+
id: L.id,
|
|
966
|
+
visible: L.properties.visible,
|
|
967
|
+
label: (y = L.properties) == null ? void 0 : y.label
|
|
967
968
|
};
|
|
968
969
|
};
|
|
969
970
|
return [
|
|
970
|
-
Object.values(s).filter((
|
|
971
|
+
Object.values(s).filter((L) => L.type === "mask").map(f)
|
|
971
972
|
// , draw
|
|
972
973
|
];
|
|
973
|
-
}, [s]),
|
|
974
|
-
n(
|
|
975
|
-
}, [
|
|
974
|
+
}, [s]), m = Q((f) => {
|
|
975
|
+
n(r, !!f), l(r, f);
|
|
976
|
+
}, [r, n, l]);
|
|
976
977
|
return e({
|
|
977
|
-
mapId:
|
|
978
|
+
mapId: r,
|
|
978
979
|
enabled: t,
|
|
979
980
|
modes: d,
|
|
980
981
|
modeSelected: a,
|
|
981
982
|
values: {
|
|
982
|
-
mask:
|
|
983
|
+
mask: h
|
|
983
984
|
// draw,
|
|
984
985
|
},
|
|
985
|
-
setValue:
|
|
986
|
-
setEnabled:
|
|
987
|
-
setVisibility:
|
|
988
|
-
setModeSelected:
|
|
986
|
+
setValue: Q((f) => o(r, f), [r, o]),
|
|
987
|
+
setEnabled: Q((f) => n(r, f), [r, n]),
|
|
988
|
+
setVisibility: Q((f, b) => i(r, f, b), [r, i]),
|
|
989
|
+
setModeSelected: m
|
|
989
990
|
});
|
|
990
991
|
}
|
|
991
|
-
function
|
|
992
|
-
values:
|
|
992
|
+
function St({
|
|
993
|
+
values: r
|
|
993
994
|
}) {
|
|
994
|
-
return Object.values(
|
|
995
|
+
return Object.values(r ?? {}).filter((e) => e.type === "mask");
|
|
995
996
|
}
|
|
996
|
-
const
|
|
997
|
-
length:
|
|
997
|
+
const Gs = ns({
|
|
998
|
+
length: rs
|
|
998
999
|
});
|
|
999
|
-
function
|
|
1000
|
-
return
|
|
1000
|
+
function et(r, e) {
|
|
1001
|
+
return Gs(r).from(nt[V.meter]).to(nt[e]);
|
|
1001
1002
|
}
|
|
1002
|
-
const
|
|
1003
|
-
function
|
|
1004
|
-
meters:
|
|
1003
|
+
const tt = 1e4;
|
|
1004
|
+
function Pe({
|
|
1005
|
+
meters: r,
|
|
1005
1006
|
unit: e,
|
|
1006
1007
|
locale: t,
|
|
1007
1008
|
options: {
|
|
1008
1009
|
autoSplitNumber: n,
|
|
1009
1010
|
...s
|
|
1010
1011
|
} = {
|
|
1011
|
-
autoSplitNumber:
|
|
1012
|
+
autoSplitNumber: tt
|
|
1012
1013
|
}
|
|
1013
1014
|
}) {
|
|
1014
|
-
const
|
|
1015
|
+
const o = e === Be["m-km"], i = e === Be["ft-mi"], a = o || i;
|
|
1015
1016
|
let l, d;
|
|
1016
1017
|
if (a) {
|
|
1017
|
-
const c =
|
|
1018
|
-
let
|
|
1019
|
-
l = c ?
|
|
1018
|
+
const c = r < (n ?? tt);
|
|
1019
|
+
let h = c ? V.meter : V.kilometer;
|
|
1020
|
+
l = c ? pe.meter : pe.kilometer, i && (l = c ? pe.feet : pe.mile, h = c ? V.feet : V.mile), d = et(r, h);
|
|
1020
1021
|
} else
|
|
1021
|
-
l =
|
|
1022
|
-
return `${
|
|
1022
|
+
l = pe[e], d = et(r, e);
|
|
1023
|
+
return `${yt(d, t, {
|
|
1023
1024
|
style: "unit",
|
|
1024
1025
|
unit: l,
|
|
1025
1026
|
unitDisplay: "short",
|
|
@@ -1029,18 +1030,18 @@ function Me({
|
|
|
1029
1030
|
...s
|
|
1030
1031
|
})}`;
|
|
1031
1032
|
}
|
|
1032
|
-
function
|
|
1033
|
+
function xr(r, {
|
|
1033
1034
|
hasDoubleClickZoom: e
|
|
1034
1035
|
}) {
|
|
1035
|
-
return typeof
|
|
1036
|
+
return typeof r == "boolean" ? {
|
|
1036
1037
|
doubleClickZoom: e
|
|
1037
1038
|
} : {
|
|
1038
|
-
...
|
|
1039
|
+
...r,
|
|
1039
1040
|
doubleClickZoom: e
|
|
1040
1041
|
};
|
|
1041
1042
|
}
|
|
1042
|
-
function
|
|
1043
|
-
if (
|
|
1043
|
+
function _t(r, e, t) {
|
|
1044
|
+
if (r > 0) {
|
|
1044
1045
|
const {
|
|
1045
1046
|
formatTooltip: n,
|
|
1046
1047
|
turfOptions: s
|
|
@@ -1048,26 +1049,26 @@ function ct(o, e, t) {
|
|
|
1048
1049
|
turfOptions: {
|
|
1049
1050
|
units: "kilometers"
|
|
1050
1051
|
}
|
|
1051
|
-
},
|
|
1052
|
+
}, o = s == null ? void 0 : s.units;
|
|
1052
1053
|
let i;
|
|
1053
|
-
n ? i = n(
|
|
1054
|
+
n ? i = n(r) : i = `${parseFloat(r.toString()).toFixed(2)} ${o}`;
|
|
1054
1055
|
const {
|
|
1055
1056
|
measurementCallback: a
|
|
1056
1057
|
} = t;
|
|
1057
|
-
return a && a(
|
|
1058
|
+
return a && a(r), [{
|
|
1058
1059
|
position: e,
|
|
1059
1060
|
text: i
|
|
1060
1061
|
}];
|
|
1061
1062
|
}
|
|
1062
1063
|
return [];
|
|
1063
1064
|
}
|
|
1064
|
-
class
|
|
1065
|
+
class zs extends Ht {
|
|
1065
1066
|
constructor() {
|
|
1066
1067
|
super(...arguments);
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1068
|
+
ee(this, "_isMeasuringSessionFinished", !1);
|
|
1069
|
+
ee(this, "area", 0);
|
|
1070
|
+
ee(this, "tooltips", []);
|
|
1071
|
+
ee(this, "resultPolygon", {
|
|
1071
1072
|
type: "FeatureCollection",
|
|
1072
1073
|
features: []
|
|
1073
1074
|
});
|
|
@@ -1076,12 +1077,12 @@ class As extends Ot {
|
|
|
1076
1077
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1077
1078
|
const {
|
|
1078
1079
|
picks: s
|
|
1079
|
-
} = t,
|
|
1080
|
+
} = t, o = Gt(s), i = this.getClickSequence();
|
|
1080
1081
|
let a = !1;
|
|
1081
|
-
!
|
|
1082
|
+
!o && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area = Ze({
|
|
1082
1083
|
type: "Polygon",
|
|
1083
1084
|
coordinates: [this.getClickSequence()]
|
|
1084
|
-
}), this.isFinalizedEdition(i,
|
|
1085
|
+
}), this.isFinalizedEdition(i, o) ? this.finalizeEdition(n) : a && n.onEdit({
|
|
1085
1086
|
// data is the same
|
|
1086
1087
|
updatedData: n.data,
|
|
1087
1088
|
editType: "addTentativePosition",
|
|
@@ -1099,8 +1100,8 @@ class As extends Ot {
|
|
|
1099
1100
|
super.handlePointerMove(t, n);
|
|
1100
1101
|
const s = this.getTentativeGuide(n);
|
|
1101
1102
|
if (s && s.geometry.type === "Polygon") {
|
|
1102
|
-
const
|
|
1103
|
-
this.area =
|
|
1103
|
+
const o = es(s);
|
|
1104
|
+
this.area = Ze(s), this.tooltips = _t(this.area, o.geometry.coordinates, n.modeConfig);
|
|
1104
1105
|
}
|
|
1105
1106
|
}
|
|
1106
1107
|
resetClickSequence() {
|
|
@@ -1121,11 +1122,11 @@ class As extends Ot {
|
|
|
1121
1122
|
return t.length > 2 && n !== void 0 && (s[0] === 0 || s[0] === t.length - 1);
|
|
1122
1123
|
}
|
|
1123
1124
|
allowOverlapping(t) {
|
|
1124
|
-
var
|
|
1125
|
+
var o;
|
|
1125
1126
|
let n = !1;
|
|
1126
1127
|
const s = this.getClickSequence();
|
|
1127
1128
|
if (s.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1128
|
-
((
|
|
1129
|
+
((o = t.modeConfig) != null && o.preventOverlappingLines)) {
|
|
1129
1130
|
const i = {
|
|
1130
1131
|
type: "LineString",
|
|
1131
1132
|
coordinates: [...s, s[0]]
|
|
@@ -1133,7 +1134,7 @@ class As extends Ot {
|
|
|
1133
1134
|
type: "LineString",
|
|
1134
1135
|
coordinates: [...s.slice(0, s.length - 1)]
|
|
1135
1136
|
};
|
|
1136
|
-
|
|
1137
|
+
ts(i, a).features.length > 0 && (n = !0);
|
|
1137
1138
|
}
|
|
1138
1139
|
return n;
|
|
1139
1140
|
}
|
|
@@ -1146,12 +1147,12 @@ class As extends Ot {
|
|
|
1146
1147
|
type: "FeatureCollection",
|
|
1147
1148
|
features: []
|
|
1148
1149
|
};
|
|
1149
|
-
const
|
|
1150
|
-
this._isMeasuringSessionFinished = !0,
|
|
1151
|
-
...
|
|
1152
|
-
editType:
|
|
1150
|
+
const o = this.getAddFeatureOrBooleanPolygonAction(s, t);
|
|
1151
|
+
this._isMeasuringSessionFinished = !0, o && (this.resultPolygon = o.updatedData, t.onEdit({
|
|
1152
|
+
...o,
|
|
1153
|
+
editType: Y.addPosition,
|
|
1153
1154
|
editContext: {
|
|
1154
|
-
...
|
|
1155
|
+
...o.editContext,
|
|
1155
1156
|
distance: this.area,
|
|
1156
1157
|
positions: this.getClickSequence(),
|
|
1157
1158
|
finished: this._isMeasuringSessionFinished
|
|
@@ -1170,32 +1171,32 @@ class As extends Ot {
|
|
|
1170
1171
|
meters: t,
|
|
1171
1172
|
locale: n,
|
|
1172
1173
|
unit: s,
|
|
1173
|
-
options:
|
|
1174
|
+
options: o
|
|
1174
1175
|
}) {
|
|
1175
|
-
return
|
|
1176
|
+
return Pe({
|
|
1176
1177
|
meters: t,
|
|
1177
1178
|
locale: n,
|
|
1178
1179
|
unit: s,
|
|
1179
|
-
options:
|
|
1180
|
+
options: o
|
|
1180
1181
|
}) + "2";
|
|
1181
1182
|
}
|
|
1182
1183
|
}
|
|
1183
|
-
class
|
|
1184
|
+
class Qs extends dt {
|
|
1184
1185
|
constructor() {
|
|
1185
1186
|
super(...arguments);
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1187
|
+
ee(this, "_isMeasuringSessionFinished", !1);
|
|
1188
|
+
ee(this, "_currentArea", 0);
|
|
1189
|
+
ee(this, "resultPolygon", {
|
|
1189
1190
|
type: "FeatureCollection",
|
|
1190
1191
|
features: []
|
|
1191
1192
|
});
|
|
1192
|
-
|
|
1193
|
+
ee(this, "tooltips", []);
|
|
1193
1194
|
}
|
|
1194
1195
|
handleClick(t, n) {
|
|
1195
1196
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, n);
|
|
1196
1197
|
}
|
|
1197
1198
|
handlePointerMove(t, n) {
|
|
1198
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips =
|
|
1199
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips = _t(this.areaCircle, this.position, n.modeConfig));
|
|
1199
1200
|
}
|
|
1200
1201
|
checkAndFinishPolygon(t) {
|
|
1201
1202
|
const n = this.getClickSequence(), s = this.getTentativeGuide(t);
|
|
@@ -1219,7 +1220,7 @@ class Rs extends tt {
|
|
|
1219
1220
|
const s = this.getAddFeatureOrBooleanPolygonAction(n, t);
|
|
1220
1221
|
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"), s && (this.resultPolygon = s.updatedData, t.onEdit({
|
|
1221
1222
|
...s,
|
|
1222
|
-
editType:
|
|
1223
|
+
editType: Y.addPosition,
|
|
1223
1224
|
editContext: {
|
|
1224
1225
|
...s.editContext,
|
|
1225
1226
|
distance: this._currentArea,
|
|
@@ -1246,22 +1247,22 @@ class Rs extends tt {
|
|
|
1246
1247
|
meters: t,
|
|
1247
1248
|
locale: n,
|
|
1248
1249
|
unit: s,
|
|
1249
|
-
options:
|
|
1250
|
+
options: o
|
|
1250
1251
|
}) {
|
|
1251
|
-
return
|
|
1252
|
+
return Pe({
|
|
1252
1253
|
meters: t,
|
|
1253
1254
|
locale: n,
|
|
1254
1255
|
unit: s,
|
|
1255
|
-
options:
|
|
1256
|
+
options: o
|
|
1256
1257
|
}) + "2";
|
|
1257
1258
|
}
|
|
1258
1259
|
}
|
|
1259
|
-
class
|
|
1260
|
+
class Et extends zt {
|
|
1260
1261
|
handleClick(e, t) {
|
|
1261
1262
|
super.handleClick(e, t), t.onEdit({
|
|
1262
1263
|
// data is the same
|
|
1263
1264
|
updatedData: t.data,
|
|
1264
|
-
editType:
|
|
1265
|
+
editType: Y.addPosition,
|
|
1265
1266
|
editContext: {
|
|
1266
1267
|
distance: this._currentDistance,
|
|
1267
1268
|
finished: this._isMeasuringSessionFinished,
|
|
@@ -1275,7 +1276,7 @@ class ut extends At {
|
|
|
1275
1276
|
const {
|
|
1276
1277
|
key: n
|
|
1277
1278
|
} = e, s = this.getClickSequence().length;
|
|
1278
|
-
let
|
|
1279
|
+
let o = Y.finish;
|
|
1279
1280
|
switch (n) {
|
|
1280
1281
|
case "Escape":
|
|
1281
1282
|
t.onEdit({
|
|
@@ -1283,14 +1284,14 @@ class ut extends At {
|
|
|
1283
1284
|
type: "FeatureCollection",
|
|
1284
1285
|
features: []
|
|
1285
1286
|
},
|
|
1286
|
-
editType:
|
|
1287
|
+
editType: Y.cancel,
|
|
1287
1288
|
editContext: {}
|
|
1288
1289
|
});
|
|
1289
1290
|
break;
|
|
1290
1291
|
case "Enter":
|
|
1291
|
-
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(),
|
|
1292
|
+
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), o = Y.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1292
1293
|
updatedData: t.data,
|
|
1293
|
-
editType:
|
|
1294
|
+
editType: o,
|
|
1294
1295
|
editContext: {
|
|
1295
1296
|
finished: this._isMeasuringSessionFinished
|
|
1296
1297
|
}
|
|
@@ -1307,7 +1308,7 @@ class ut extends At {
|
|
|
1307
1308
|
unit: n,
|
|
1308
1309
|
options: s
|
|
1309
1310
|
}) {
|
|
1310
|
-
return
|
|
1311
|
+
return Pe({
|
|
1311
1312
|
meters: e,
|
|
1312
1313
|
locale: t,
|
|
1313
1314
|
unit: n,
|
|
@@ -1315,8 +1316,8 @@ class ut extends At {
|
|
|
1315
1316
|
});
|
|
1316
1317
|
}
|
|
1317
1318
|
}
|
|
1318
|
-
const
|
|
1319
|
-
id:
|
|
1319
|
+
const ne = "mapMeasureLayer", Ws = {
|
|
1320
|
+
id: ne,
|
|
1320
1321
|
pickable: !1,
|
|
1321
1322
|
billboard: !1,
|
|
1322
1323
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -1340,19 +1341,19 @@ const ee = "mapMeasureLayer", $s = {
|
|
|
1340
1341
|
getLineWidth: 2
|
|
1341
1342
|
}
|
|
1342
1343
|
}
|
|
1343
|
-
},
|
|
1344
|
+
}, $e = {
|
|
1344
1345
|
editing: [23, 102, 214, 255],
|
|
1345
1346
|
finished: [71, 219, 153, 255],
|
|
1346
1347
|
point: [255, 255, 255, 255]
|
|
1347
|
-
},
|
|
1348
|
+
}, st = {
|
|
1348
1349
|
styles: {
|
|
1349
1350
|
colors: {
|
|
1350
|
-
editing:
|
|
1351
|
-
finished:
|
|
1352
|
-
point:
|
|
1351
|
+
editing: $e.editing,
|
|
1352
|
+
finished: $e.finished,
|
|
1353
|
+
point: $e.point
|
|
1353
1354
|
}
|
|
1354
1355
|
}
|
|
1355
|
-
},
|
|
1356
|
+
}, V = {
|
|
1356
1357
|
kilometer: "kilometer",
|
|
1357
1358
|
meter: "meter",
|
|
1358
1359
|
centimeter: "centimeter",
|
|
@@ -1360,31 +1361,31 @@ const ee = "mapMeasureLayer", $s = {
|
|
|
1360
1361
|
mile: "mile",
|
|
1361
1362
|
yard: "yard",
|
|
1362
1363
|
feet: "feet"
|
|
1363
|
-
},
|
|
1364
|
+
}, Be = {
|
|
1364
1365
|
"m-km": "m-km",
|
|
1365
1366
|
"ft-mi": "ft-mi",
|
|
1366
|
-
...
|
|
1367
|
-
},
|
|
1367
|
+
...V
|
|
1368
|
+
}, Zs = {
|
|
1368
1369
|
meters: "meters",
|
|
1369
1370
|
kilometer: "kilometers",
|
|
1370
1371
|
mile: "miles"
|
|
1371
|
-
},
|
|
1372
|
-
[
|
|
1373
|
-
[
|
|
1374
|
-
[
|
|
1375
|
-
[
|
|
1376
|
-
[
|
|
1377
|
-
[
|
|
1378
|
-
[
|
|
1379
|
-
},
|
|
1380
|
-
[
|
|
1381
|
-
[
|
|
1382
|
-
[
|
|
1383
|
-
[
|
|
1384
|
-
[
|
|
1385
|
-
[
|
|
1386
|
-
[
|
|
1387
|
-
},
|
|
1372
|
+
}, nt = {
|
|
1373
|
+
[V.kilometer]: "km",
|
|
1374
|
+
[V.meter]: "m",
|
|
1375
|
+
[V.centimeter]: "cm",
|
|
1376
|
+
[V.milimeter]: "mm",
|
|
1377
|
+
[V.mile]: "mi",
|
|
1378
|
+
[V.yard]: "yd",
|
|
1379
|
+
[V.feet]: "ft"
|
|
1380
|
+
}, pe = {
|
|
1381
|
+
[V.kilometer]: "kilometer",
|
|
1382
|
+
[V.meter]: "meter",
|
|
1383
|
+
[V.centimeter]: "centimeter",
|
|
1384
|
+
[V.milimeter]: "millimeter",
|
|
1385
|
+
[V.mile]: "mile",
|
|
1386
|
+
[V.yard]: "yard",
|
|
1387
|
+
[V.feet]: "foot"
|
|
1388
|
+
}, K = {
|
|
1388
1389
|
"m-km": {
|
|
1389
1390
|
value: "m-km",
|
|
1390
1391
|
system: "metric"
|
|
@@ -1421,250 +1422,250 @@ const ee = "mapMeasureLayer", $s = {
|
|
|
1421
1422
|
value: "feet",
|
|
1422
1423
|
system: "imperial"
|
|
1423
1424
|
}
|
|
1424
|
-
},
|
|
1425
|
+
}, rt = [K["m-km"], K.kilometer, K.meter, K["ft-mi"], K.mile, K.feet], Ks = [K["m-km"], K.kilometer, K.meter, K["ft-mi"], K.mile, K.feet], Ys = {
|
|
1425
1426
|
distance: {
|
|
1426
1427
|
value: "distance",
|
|
1427
|
-
mode:
|
|
1428
|
+
mode: Et
|
|
1428
1429
|
},
|
|
1429
1430
|
buffer: {
|
|
1430
1431
|
value: "buffer",
|
|
1431
|
-
mode:
|
|
1432
|
+
mode: Qs
|
|
1432
1433
|
},
|
|
1433
1434
|
area: {
|
|
1434
1435
|
value: "area",
|
|
1435
|
-
mode:
|
|
1436
|
+
mode: zs
|
|
1436
1437
|
}
|
|
1437
|
-
},
|
|
1438
|
-
distance:
|
|
1439
|
-
buffer:
|
|
1440
|
-
area:
|
|
1438
|
+
}, Xs = {
|
|
1439
|
+
distance: rt,
|
|
1440
|
+
buffer: rt,
|
|
1441
|
+
area: Ks
|
|
1441
1442
|
};
|
|
1442
|
-
function
|
|
1443
|
-
const e =
|
|
1443
|
+
function Tt(r) {
|
|
1444
|
+
const e = R(12), {
|
|
1444
1445
|
mapId: t,
|
|
1445
1446
|
layerId: n
|
|
1446
|
-
} =
|
|
1447
|
+
} = r;
|
|
1447
1448
|
let s;
|
|
1448
|
-
e[0] !== t ? (s = (
|
|
1449
|
-
var
|
|
1450
|
-
return (
|
|
1449
|
+
e[0] !== t ? (s = (b) => {
|
|
1450
|
+
var p;
|
|
1451
|
+
return (p = b.maps[t]) == null ? void 0 : p.basemap;
|
|
1451
1452
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
1452
|
-
const
|
|
1453
|
+
const o = x(s);
|
|
1453
1454
|
let i;
|
|
1454
|
-
e[2] !== t ? (i = (
|
|
1455
|
-
var
|
|
1456
|
-
return (
|
|
1455
|
+
e[2] !== t ? (i = (b) => {
|
|
1456
|
+
var p;
|
|
1457
|
+
return (p = b.maps[t]) == null ? void 0 : p.isLoaded;
|
|
1457
1458
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1458
|
-
const a =
|
|
1459
|
+
const a = x(i), l = x(en), d = de(Js), {
|
|
1459
1460
|
type: c
|
|
1460
|
-
} =
|
|
1461
|
-
let
|
|
1462
|
-
e[4] !== l || e[5] !==
|
|
1463
|
-
let
|
|
1464
|
-
if (
|
|
1465
|
-
const
|
|
1466
|
-
|
|
1461
|
+
} = me[o], h = c === te.googleMaps;
|
|
1462
|
+
let m, f;
|
|
1463
|
+
e[4] !== l || e[5] !== h || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== d ? (m = () => {
|
|
1464
|
+
let b = null;
|
|
1465
|
+
if (h && a) {
|
|
1466
|
+
const p = l(t);
|
|
1467
|
+
b = new Xt(p.getDiv(), {});
|
|
1467
1468
|
}
|
|
1468
1469
|
d(n, {
|
|
1469
1470
|
props: {
|
|
1470
|
-
eventManager:
|
|
1471
|
+
eventManager: b
|
|
1471
1472
|
}
|
|
1472
1473
|
});
|
|
1473
|
-
},
|
|
1474
|
+
}, f = [l, h, a, n, t, d], e[4] = l, e[5] = h, e[6] = a, e[7] = n, e[8] = t, e[9] = d, e[10] = m, e[11] = f) : (m = e[10], f = e[11]), z(m, f);
|
|
1474
1475
|
}
|
|
1475
|
-
function
|
|
1476
|
-
return
|
|
1476
|
+
function Js(r) {
|
|
1477
|
+
return r.setLayer;
|
|
1477
1478
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1479
|
+
function en(r) {
|
|
1480
|
+
return r.getOverlayInstance;
|
|
1480
1481
|
}
|
|
1481
|
-
const
|
|
1482
|
-
function
|
|
1483
|
-
children:
|
|
1482
|
+
const tn = [le, Me, ne];
|
|
1483
|
+
function sn({
|
|
1484
|
+
children: r,
|
|
1484
1485
|
mapId: e,
|
|
1485
1486
|
defaultProps: {
|
|
1486
|
-
styles: t =
|
|
1487
|
+
styles: t = Re.styles,
|
|
1487
1488
|
labels: n
|
|
1488
1489
|
} = {
|
|
1489
|
-
styles:
|
|
1490
|
-
labels:
|
|
1490
|
+
styles: Re.styles,
|
|
1491
|
+
labels: Re.labels
|
|
1491
1492
|
},
|
|
1492
1493
|
layerProps: s = {},
|
|
1493
|
-
defaultType:
|
|
1494
|
+
defaultType: o = "mask"
|
|
1494
1495
|
}) {
|
|
1495
|
-
const i =
|
|
1496
|
-
var
|
|
1497
|
-
return (
|
|
1498
|
-
}), a =
|
|
1499
|
-
var
|
|
1500
|
-
return (
|
|
1501
|
-
}), d =
|
|
1502
|
-
var
|
|
1503
|
-
return (
|
|
1504
|
-
}),
|
|
1505
|
-
var
|
|
1506
|
-
return (
|
|
1507
|
-
}),
|
|
1508
|
-
var
|
|
1509
|
-
return (
|
|
1510
|
-
})),
|
|
1511
|
-
|
|
1496
|
+
const i = G((w) => {
|
|
1497
|
+
var k;
|
|
1498
|
+
return (k = w.data[e]) == null ? void 0 : k.enabled;
|
|
1499
|
+
}), a = G((w) => w.setEnabled), l = G((w) => {
|
|
1500
|
+
var k;
|
|
1501
|
+
return (k = w.data[e]) == null ? void 0 : k.values;
|
|
1502
|
+
}), d = G((w) => w.setValue), c = G((w) => {
|
|
1503
|
+
var k;
|
|
1504
|
+
return (k = w.data[e]) == null ? void 0 : k.modeInstance;
|
|
1505
|
+
}), h = G((w) => {
|
|
1506
|
+
var k;
|
|
1507
|
+
return (k = w.data[e]) == null ? void 0 : k.modeSelected;
|
|
1508
|
+
}), m = de((w) => w.setLayer), f = x((w) => w.addLayers), b = x((w) => w.removeLayers), p = x(mt((w) => {
|
|
1509
|
+
var k;
|
|
1510
|
+
return (k = w.maps[e]) == null ? void 0 : k.layers.filter((u) => !tn.includes(u));
|
|
1511
|
+
})), L = x((w) => w.getDeckInstance), y = we({});
|
|
1512
|
+
Tt({
|
|
1512
1513
|
mapId: e,
|
|
1513
|
-
layerId:
|
|
1514
|
+
layerId: le
|
|
1514
1515
|
});
|
|
1515
|
-
const
|
|
1516
|
+
const g = re(() => St({
|
|
1516
1517
|
values: l
|
|
1517
|
-
}), [l]),
|
|
1518
|
+
}), [l]), S = re(() => ({
|
|
1518
1519
|
type: "FeatureCollection",
|
|
1519
|
-
features:
|
|
1520
|
+
features: g.map((w) => ({
|
|
1520
1521
|
type: "Feature",
|
|
1521
|
-
geometry:
|
|
1522
|
-
properties:
|
|
1523
|
-
id:
|
|
1522
|
+
geometry: w.geometry,
|
|
1523
|
+
properties: w.properties,
|
|
1524
|
+
id: w.id
|
|
1524
1525
|
}))
|
|
1525
|
-
}), [
|
|
1526
|
-
const
|
|
1527
|
-
...
|
|
1528
|
-
features:
|
|
1529
|
-
var
|
|
1530
|
-
return (
|
|
1526
|
+
}), [g]), E = re(() => g.filter((w) => w.properties.visible).map((w) => w.id), [g]), [_, T] = oe(S), [A, U] = oe([]), F = Q(() => {
|
|
1527
|
+
const w = {
|
|
1528
|
+
...S,
|
|
1529
|
+
features: S.features.filter((k) => {
|
|
1530
|
+
var u;
|
|
1531
|
+
return (u = k.properties) == null ? void 0 : u.visible;
|
|
1531
1532
|
})
|
|
1532
1533
|
};
|
|
1533
|
-
|
|
1534
|
-
}, [
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
}, [
|
|
1538
|
-
const
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
}), [
|
|
1542
|
-
const
|
|
1543
|
-
|
|
1544
|
-
}, [e,
|
|
1545
|
-
editType:
|
|
1546
|
-
updatedData:
|
|
1534
|
+
T(w);
|
|
1535
|
+
}, [S]);
|
|
1536
|
+
z(() => {
|
|
1537
|
+
F();
|
|
1538
|
+
}, [F]);
|
|
1539
|
+
const j = we(g.length);
|
|
1540
|
+
z(() => (f(e, [le]), () => {
|
|
1541
|
+
b(e, [le]);
|
|
1542
|
+
}), [f, e, b]);
|
|
1543
|
+
const q = Q(() => {
|
|
1544
|
+
F(), U([]), a(e, !1);
|
|
1545
|
+
}, [e, F, a]), $ = Q(({
|
|
1546
|
+
editType: w,
|
|
1547
|
+
updatedData: k
|
|
1547
1548
|
}) => {
|
|
1548
|
-
if (
|
|
1549
|
-
|
|
1549
|
+
if (w === Y.cancel) {
|
|
1550
|
+
q();
|
|
1550
1551
|
return;
|
|
1551
1552
|
}
|
|
1552
|
-
|
|
1553
|
-
var
|
|
1554
|
-
(
|
|
1555
|
-
const
|
|
1556
|
-
d(e,
|
|
1557
|
-
geometry:
|
|
1558
|
-
properties:
|
|
1553
|
+
T(k), w !== Y.updateTentativeFeature && w === Y.addFeature && (h !== "edit" && (j.current = j.current + 1), k.features.forEach((u, v) => {
|
|
1554
|
+
var C;
|
|
1555
|
+
(C = u.properties).label ?? (C.label = `${n == null ? void 0 : n.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
|
|
1556
|
+
const M = u.id ?? crypto.randomUUID();
|
|
1557
|
+
d(e, M, {
|
|
1558
|
+
geometry: u.geometry,
|
|
1559
|
+
properties: u.properties,
|
|
1559
1560
|
// visible: true,
|
|
1560
|
-
type:
|
|
1561
|
+
type: o
|
|
1561
1562
|
});
|
|
1562
|
-
}),
|
|
1563
|
-
}, [
|
|
1564
|
-
return
|
|
1565
|
-
const
|
|
1566
|
-
border:
|
|
1567
|
-
point:
|
|
1568
|
-
fill:
|
|
1563
|
+
}), q());
|
|
1564
|
+
}, [o, q, n == null ? void 0 : n.mask, e, h, d]);
|
|
1565
|
+
return z(() => {
|
|
1566
|
+
const w = i, {
|
|
1567
|
+
border: k,
|
|
1568
|
+
point: u,
|
|
1569
|
+
fill: v
|
|
1569
1570
|
} = t.colors.editing, {
|
|
1570
|
-
border:
|
|
1571
|
-
fill:
|
|
1572
|
-
} = t.colors.finished,
|
|
1571
|
+
border: M,
|
|
1572
|
+
fill: C
|
|
1573
|
+
} = t.colors.finished, P = Bs({
|
|
1573
1574
|
layerProps: {
|
|
1574
1575
|
...s.mask,
|
|
1575
|
-
pickable:
|
|
1576
|
-
data:
|
|
1577
|
-
selectedFeatureIndexes:
|
|
1576
|
+
pickable: w,
|
|
1577
|
+
data: _,
|
|
1578
|
+
selectedFeatureIndexes: A,
|
|
1578
1579
|
updateTriggers: {
|
|
1579
|
-
getFilterValue:
|
|
1580
|
+
getFilterValue: E
|
|
1580
1581
|
},
|
|
1581
|
-
onClick: (
|
|
1582
|
-
const
|
|
1583
|
-
|
|
1582
|
+
onClick: (O) => {
|
|
1583
|
+
const H = O;
|
|
1584
|
+
H.isGuide || U([H.index]);
|
|
1584
1585
|
}
|
|
1585
1586
|
},
|
|
1586
|
-
getLineColor: (
|
|
1587
|
-
getFillColor: (
|
|
1587
|
+
getLineColor: (O) => A[0] === O.properties.index ? k : M,
|
|
1588
|
+
getFillColor: (O) => A[0] === O.properties.index ? v : C,
|
|
1588
1589
|
pointColor: {
|
|
1589
|
-
fill:
|
|
1590
|
-
outline:
|
|
1590
|
+
fill: u,
|
|
1591
|
+
outline: k
|
|
1591
1592
|
},
|
|
1592
|
-
onEdit:
|
|
1593
|
-
mode:
|
|
1593
|
+
onEdit: $,
|
|
1594
|
+
mode: w ? c : new Qt()
|
|
1594
1595
|
});
|
|
1595
|
-
|
|
1596
|
-
}, [
|
|
1597
|
-
const
|
|
1598
|
-
...
|
|
1599
|
-
data:
|
|
1600
|
-
getFilterValue: (
|
|
1596
|
+
m(le, P);
|
|
1597
|
+
}, [_, i, s.mask, E, c, $, A, m, t.colors.editing, t.colors.finished]), z(() => {
|
|
1598
|
+
const w = {
|
|
1599
|
+
..._e,
|
|
1600
|
+
data: S,
|
|
1601
|
+
getFilterValue: (k) => Number(E.includes(k.id)),
|
|
1601
1602
|
updateTriggers: {
|
|
1602
|
-
getFilterValue:
|
|
1603
|
+
getFilterValue: E
|
|
1603
1604
|
}
|
|
1604
1605
|
};
|
|
1605
|
-
return
|
|
1606
|
-
type:
|
|
1607
|
-
props:
|
|
1608
|
-
}),
|
|
1609
|
-
|
|
1606
|
+
return m(_e.id, {
|
|
1607
|
+
type: Jt,
|
|
1608
|
+
props: w
|
|
1609
|
+
}), f(e, [_e.id]), () => {
|
|
1610
|
+
b(e, [_e.id]);
|
|
1610
1611
|
};
|
|
1611
|
-
}, [
|
|
1612
|
-
|
|
1613
|
-
var
|
|
1614
|
-
const
|
|
1615
|
-
i && (
|
|
1616
|
-
const
|
|
1617
|
-
|
|
1612
|
+
}, [f, e, S, E, b, m]), z(() => {
|
|
1613
|
+
p == null || p.forEach((w) => {
|
|
1614
|
+
var v;
|
|
1615
|
+
const k = (v = L(e)) == null ? void 0 : v.props.layers.find((M) => M.props.id === w);
|
|
1616
|
+
i && (y.current[w] = k == null ? void 0 : k.props.pickable);
|
|
1617
|
+
const u = !i && (y.current[w] ?? (k == null ? void 0 : k.props.pickable));
|
|
1618
|
+
m(w, {
|
|
1618
1619
|
props: {
|
|
1619
|
-
pickable:
|
|
1620
|
-
extensions: [new
|
|
1621
|
-
maskId: !i &&
|
|
1620
|
+
pickable: u,
|
|
1621
|
+
extensions: [new Zt()],
|
|
1622
|
+
maskId: !i && E.length ? Me : void 0
|
|
1622
1623
|
}
|
|
1623
1624
|
});
|
|
1624
1625
|
});
|
|
1625
|
-
}, [i,
|
|
1626
|
+
}, [i, L, e, p, E.length, m]), r;
|
|
1626
1627
|
}
|
|
1627
|
-
|
|
1628
|
-
function
|
|
1629
|
-
mode:
|
|
1628
|
+
sn.Controls = Hs;
|
|
1629
|
+
function nn({
|
|
1630
|
+
mode: r,
|
|
1630
1631
|
...e
|
|
1631
1632
|
}) {
|
|
1632
|
-
const t =
|
|
1633
|
-
mode:
|
|
1633
|
+
const t = rn({
|
|
1634
|
+
mode: r,
|
|
1634
1635
|
...e
|
|
1635
1636
|
});
|
|
1636
1637
|
return {
|
|
1637
|
-
type:
|
|
1638
|
+
type: bt,
|
|
1638
1639
|
props: {
|
|
1639
1640
|
...t,
|
|
1640
|
-
mode:
|
|
1641
|
+
mode: r,
|
|
1641
1642
|
data: []
|
|
1642
1643
|
}
|
|
1643
1644
|
};
|
|
1644
1645
|
}
|
|
1645
|
-
function
|
|
1646
|
-
mode:
|
|
1646
|
+
function rn({
|
|
1647
|
+
mode: r,
|
|
1647
1648
|
layerProps: e,
|
|
1648
1649
|
locale: t,
|
|
1649
1650
|
enabled: n,
|
|
1650
1651
|
unit: s,
|
|
1651
|
-
onEdit:
|
|
1652
|
+
onEdit: o,
|
|
1652
1653
|
guideColor: i,
|
|
1653
1654
|
pointColor: a,
|
|
1654
1655
|
textOptions: l
|
|
1655
1656
|
}) {
|
|
1656
|
-
const d =
|
|
1657
|
+
const d = fe(e, {
|
|
1657
1658
|
visible: n,
|
|
1658
1659
|
pickable: n,
|
|
1659
1660
|
modeConfig: {
|
|
1660
1661
|
// We force distance due to conversion is addressed at feature getText level
|
|
1661
|
-
formatTooltip: (
|
|
1662
|
+
formatTooltip: (m) => m,
|
|
1662
1663
|
turfOptions: {
|
|
1663
|
-
units:
|
|
1664
|
+
units: Zs.meters
|
|
1664
1665
|
}
|
|
1665
1666
|
},
|
|
1666
1667
|
...n && {
|
|
1667
|
-
onEdit:
|
|
1668
|
+
onEdit: o
|
|
1668
1669
|
},
|
|
1669
1670
|
_subLayerProps: {
|
|
1670
1671
|
tooltips: {
|
|
@@ -1675,10 +1676,10 @@ function Gs({
|
|
|
1675
1676
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1676
1677
|
smoothing: 0.2
|
|
1677
1678
|
},
|
|
1678
|
-
getText: (
|
|
1679
|
-
var
|
|
1680
|
-
return (
|
|
1681
|
-
meters:
|
|
1679
|
+
getText: (m) => {
|
|
1680
|
+
var f;
|
|
1681
|
+
return (f = r == null ? void 0 : r.getTooltipText) == null ? void 0 : f.call(r, {
|
|
1682
|
+
meters: m.text,
|
|
1682
1683
|
locale: t,
|
|
1683
1684
|
unit: s,
|
|
1684
1685
|
options: l
|
|
@@ -1689,7 +1690,7 @@ function Gs({
|
|
|
1689
1690
|
}
|
|
1690
1691
|
}
|
|
1691
1692
|
}
|
|
1692
|
-
}), c =
|
|
1693
|
+
}), c = fe(Ws, {
|
|
1693
1694
|
_subLayerProps: {
|
|
1694
1695
|
guides: {
|
|
1695
1696
|
getLineColor: i,
|
|
@@ -1699,536 +1700,1050 @@ function Gs({
|
|
|
1699
1700
|
getEditHandlePointColor: a,
|
|
1700
1701
|
getEditHandlePointOutlineColor: i
|
|
1701
1702
|
});
|
|
1702
|
-
return
|
|
1703
|
+
return fe(c, d);
|
|
1703
1704
|
}
|
|
1704
|
-
const
|
|
1705
|
-
measurements:
|
|
1705
|
+
const on = (r) => He()((e) => ({
|
|
1706
|
+
measurements: r.reduce((n, s) => {
|
|
1706
1707
|
const {
|
|
1707
|
-
mapId:
|
|
1708
|
+
mapId: o,
|
|
1708
1709
|
modeSelected: i,
|
|
1709
|
-
modes: a =
|
|
1710
|
-
units: l =
|
|
1710
|
+
modes: a = Ys,
|
|
1711
|
+
units: l = Xs,
|
|
1711
1712
|
distance: d = 0,
|
|
1712
1713
|
finished: c = !1,
|
|
1713
|
-
locale:
|
|
1714
|
-
positions:
|
|
1715
|
-
clearLayerOnStart:
|
|
1716
|
-
unit:
|
|
1717
|
-
enabled:
|
|
1714
|
+
locale: h = "en",
|
|
1715
|
+
positions: m = [],
|
|
1716
|
+
clearLayerOnStart: f = !1,
|
|
1717
|
+
unit: b = Be["m-km"],
|
|
1718
|
+
enabled: p = !1
|
|
1718
1719
|
} = s;
|
|
1719
|
-
return n[
|
|
1720
|
+
return n[o] = {
|
|
1720
1721
|
modes: a,
|
|
1721
1722
|
units: l,
|
|
1722
1723
|
modeSelected: i,
|
|
1723
1724
|
distance: d,
|
|
1724
1725
|
finished: c,
|
|
1725
|
-
locale:
|
|
1726
|
-
positions:
|
|
1727
|
-
unit:
|
|
1728
|
-
clearLayerOnStart:
|
|
1729
|
-
enabled:
|
|
1726
|
+
locale: h,
|
|
1727
|
+
positions: m,
|
|
1728
|
+
unit: b,
|
|
1729
|
+
clearLayerOnStart: f,
|
|
1730
|
+
enabled: p
|
|
1730
1731
|
}, n;
|
|
1731
1732
|
}, {}),
|
|
1732
|
-
mode:
|
|
1733
|
+
mode: Et,
|
|
1733
1734
|
setModeInstance: (n, s) => {
|
|
1734
|
-
e((
|
|
1735
|
+
e((o) => ({
|
|
1735
1736
|
measurements: {
|
|
1736
|
-
...
|
|
1737
|
+
...o.measurements,
|
|
1737
1738
|
[n]: {
|
|
1738
|
-
...
|
|
1739
|
+
...o.measurements[n],
|
|
1739
1740
|
modeInstance: s
|
|
1740
1741
|
}
|
|
1741
1742
|
}
|
|
1742
1743
|
}));
|
|
1743
1744
|
},
|
|
1744
1745
|
setModeSelected: (n, s) => {
|
|
1745
|
-
e((
|
|
1746
|
+
e((o) => ({
|
|
1746
1747
|
measurements: {
|
|
1747
|
-
...
|
|
1748
|
+
...o.measurements,
|
|
1748
1749
|
[n]: {
|
|
1749
|
-
...
|
|
1750
|
+
...o.measurements[n],
|
|
1750
1751
|
modeSelected: s
|
|
1751
1752
|
}
|
|
1752
1753
|
}
|
|
1753
1754
|
}));
|
|
1754
1755
|
},
|
|
1755
1756
|
setFinished: (n, s) => {
|
|
1756
|
-
e((
|
|
1757
|
+
e((o) => ({
|
|
1757
1758
|
measurements: {
|
|
1758
|
-
...
|
|
1759
|
+
...o.measurements,
|
|
1759
1760
|
[n]: {
|
|
1760
|
-
...
|
|
1761
|
+
...o.measurements[n],
|
|
1761
1762
|
finished: s
|
|
1762
1763
|
}
|
|
1763
1764
|
}
|
|
1764
1765
|
}));
|
|
1765
1766
|
},
|
|
1766
1767
|
setDistance: (n, s) => {
|
|
1767
|
-
e((
|
|
1768
|
+
e((o) => ({
|
|
1768
1769
|
measurements: {
|
|
1769
|
-
...
|
|
1770
|
+
...o.measurements,
|
|
1770
1771
|
[n]: {
|
|
1771
|
-
...
|
|
1772
|
+
...o.measurements[n],
|
|
1772
1773
|
distance: s
|
|
1773
1774
|
}
|
|
1774
1775
|
}
|
|
1775
1776
|
}));
|
|
1776
1777
|
},
|
|
1777
1778
|
setUnit: (n, s) => {
|
|
1778
|
-
e((
|
|
1779
|
+
e((o) => ({
|
|
1779
1780
|
measurements: {
|
|
1780
|
-
...
|
|
1781
|
+
...o.measurements,
|
|
1781
1782
|
[n]: {
|
|
1782
|
-
...
|
|
1783
|
+
...o.measurements[n],
|
|
1783
1784
|
unit: s
|
|
1784
1785
|
}
|
|
1785
1786
|
}
|
|
1786
1787
|
}));
|
|
1787
1788
|
},
|
|
1788
1789
|
setLocale: (n, s) => {
|
|
1789
|
-
e((
|
|
1790
|
+
e((o) => ({
|
|
1790
1791
|
measurements: {
|
|
1791
|
-
...
|
|
1792
|
+
...o.measurements,
|
|
1792
1793
|
[n]: {
|
|
1793
|
-
...
|
|
1794
|
+
...o.measurements[n],
|
|
1794
1795
|
locale: s
|
|
1795
1796
|
}
|
|
1796
1797
|
}
|
|
1797
1798
|
}));
|
|
1798
1799
|
},
|
|
1799
1800
|
setPositions: (n, s) => {
|
|
1800
|
-
e((
|
|
1801
|
+
e((o) => ({
|
|
1801
1802
|
measurements: {
|
|
1802
|
-
...
|
|
1803
|
+
...o.measurements,
|
|
1803
1804
|
[n]: {
|
|
1804
|
-
...
|
|
1805
|
+
...o.measurements[n],
|
|
1805
1806
|
positions: [...s]
|
|
1806
1807
|
}
|
|
1807
1808
|
}
|
|
1808
1809
|
}));
|
|
1809
1810
|
},
|
|
1810
1811
|
setEnabled: (n, s) => {
|
|
1811
|
-
e((
|
|
1812
|
+
e((o) => ({
|
|
1812
1813
|
measurements: {
|
|
1813
|
-
...
|
|
1814
|
+
...o.measurements,
|
|
1814
1815
|
[n]: {
|
|
1815
|
-
...
|
|
1816
|
+
...o.measurements[n],
|
|
1816
1817
|
enabled: s
|
|
1817
1818
|
}
|
|
1818
1819
|
}
|
|
1819
1820
|
}));
|
|
1820
1821
|
}
|
|
1821
|
-
})),
|
|
1822
|
-
function
|
|
1823
|
-
const e =
|
|
1822
|
+
})), wt = Ie({});
|
|
1823
|
+
function an(r) {
|
|
1824
|
+
const e = R(5), {
|
|
1824
1825
|
children: t,
|
|
1825
1826
|
values: n
|
|
1826
|
-
} =
|
|
1827
|
+
} = r;
|
|
1827
1828
|
let s;
|
|
1828
|
-
e[0] !== n ? (s =
|
|
1829
|
-
const [
|
|
1829
|
+
e[0] !== n ? (s = on(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1830
|
+
const [o] = oe(s);
|
|
1830
1831
|
let i;
|
|
1831
|
-
return e[2] !== t || e[3] !==
|
|
1832
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(wt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1832
1833
|
}
|
|
1833
|
-
function I(
|
|
1834
|
-
const e =
|
|
1834
|
+
function I(r) {
|
|
1835
|
+
const e = Ne(wt);
|
|
1835
1836
|
if (!Object.keys(e).length)
|
|
1836
1837
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1837
|
-
return
|
|
1838
|
+
return Ge(e, r);
|
|
1838
1839
|
}
|
|
1839
|
-
function
|
|
1840
|
-
const e =
|
|
1840
|
+
function Mt(r) {
|
|
1841
|
+
const e = R(74), {
|
|
1841
1842
|
mapId: t
|
|
1842
|
-
} =
|
|
1843
|
+
} = r;
|
|
1843
1844
|
let n;
|
|
1844
|
-
e[0] !== t ? (n = (
|
|
1845
|
+
e[0] !== t ? (n = (D) => D.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
|
|
1845
1846
|
const s = I(n);
|
|
1846
|
-
let
|
|
1847
|
-
e[2] !== t ? (
|
|
1848
|
-
const i = I(
|
|
1847
|
+
let o;
|
|
1848
|
+
e[2] !== t ? (o = (D) => D.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1849
|
+
const i = I(o);
|
|
1849
1850
|
let a;
|
|
1850
|
-
e[4] !== t ? (a = (
|
|
1851
|
-
const l = I(a), d = I(
|
|
1851
|
+
e[4] !== t ? (a = (D) => D.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1852
|
+
const l = I(a), d = I(yn);
|
|
1852
1853
|
let c;
|
|
1853
|
-
e[6] !== d || e[7] !== t ? (c = (
|
|
1854
|
-
const
|
|
1855
|
-
let
|
|
1856
|
-
e[9] !== t ? (
|
|
1857
|
-
const
|
|
1858
|
-
let g;
|
|
1859
|
-
e[11] !== t ? (g = (P) => P.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1860
|
-
const m = I(g), _ = I(en);
|
|
1861
|
-
let h;
|
|
1862
|
-
e[13] !== _ || e[14] !== t ? (h = (P) => _(t, P), e[13] = _, e[14] = t, e[15] = h) : h = e[15];
|
|
1863
|
-
const y = h;
|
|
1854
|
+
e[6] !== d || e[7] !== t ? (c = (D) => d(t, D), e[6] = d, e[7] = t, e[8] = c) : c = e[8];
|
|
1855
|
+
const h = c;
|
|
1856
|
+
let m;
|
|
1857
|
+
e[9] !== t ? (m = (D) => D.measurements[t].clearLayerOnStart, e[9] = t, e[10] = m) : m = e[10];
|
|
1858
|
+
const f = I(m);
|
|
1864
1859
|
let b;
|
|
1865
|
-
e[
|
|
1866
|
-
const
|
|
1867
|
-
let
|
|
1868
|
-
e[
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
const
|
|
1878
|
-
let
|
|
1879
|
-
e[
|
|
1880
|
-
const
|
|
1881
|
-
let
|
|
1882
|
-
e[
|
|
1883
|
-
const
|
|
1884
|
-
let
|
|
1885
|
-
e[
|
|
1886
|
-
const k = I(
|
|
1860
|
+
e[11] !== t ? (b = (D) => D.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
|
|
1861
|
+
const p = I(b), L = I(mn);
|
|
1862
|
+
let y;
|
|
1863
|
+
e[13] !== L || e[14] !== t ? (y = (D) => L(t, D), e[13] = L, e[14] = t, e[15] = y) : y = e[15];
|
|
1864
|
+
const g = y;
|
|
1865
|
+
let S;
|
|
1866
|
+
e[16] !== t ? (S = (D) => D.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
|
|
1867
|
+
const E = I(S), _ = I(pn);
|
|
1868
|
+
let T;
|
|
1869
|
+
e[18] !== _ || e[19] !== t || e[20] !== g ? (T = (D) => {
|
|
1870
|
+
g(!!D), _(t, D);
|
|
1871
|
+
}, e[18] = _, e[19] = t, e[20] = g, e[21] = T) : T = e[21];
|
|
1872
|
+
const A = T;
|
|
1873
|
+
let U;
|
|
1874
|
+
e[22] !== t ? (U = (D) => D.measurements[t].finished, e[22] = t, e[23] = U) : U = e[23];
|
|
1875
|
+
const F = I(U), j = I(dn);
|
|
1876
|
+
let q;
|
|
1877
|
+
e[24] !== j || e[25] !== t ? (q = (D) => j(t, D), e[24] = j, e[25] = t, e[26] = q) : q = e[26];
|
|
1878
|
+
const $ = q;
|
|
1879
|
+
let w;
|
|
1880
|
+
e[27] !== t ? (w = (D) => D.measurements[t].locale, e[27] = t, e[28] = w) : w = e[28];
|
|
1881
|
+
const k = I(w), u = I(fn);
|
|
1882
|
+
let v;
|
|
1883
|
+
e[29] !== u || e[30] !== t ? (v = (D) => u(t, D), e[29] = u, e[30] = t, e[31] = v) : v = e[31];
|
|
1884
|
+
const M = v;
|
|
1885
|
+
let C;
|
|
1886
|
+
e[32] !== t ? (C = (D) => D.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
1887
|
+
const P = I(C), O = I(un);
|
|
1888
|
+
let H;
|
|
1889
|
+
e[34] !== O || e[35] !== t ? (H = (D) => O(t, D), e[34] = O, e[35] = t, e[36] = H) : H = e[36];
|
|
1890
|
+
const W = H;
|
|
1887
1891
|
let Z;
|
|
1888
|
-
e[
|
|
1889
|
-
const
|
|
1890
|
-
let W;
|
|
1891
|
-
e[37] !== t ? (W = (P) => P.measurements[t].positions, e[37] = t, e[38] = W) : W = e[38];
|
|
1892
|
-
const Le = I(W), _e = I(Ks);
|
|
1893
|
-
let fe;
|
|
1894
|
-
e[39] !== _e || e[40] !== t ? (fe = (P) => _e(t, P), e[39] = _e, e[40] = t, e[41] = fe) : fe = e[41];
|
|
1895
|
-
const ae = fe;
|
|
1896
|
-
let me;
|
|
1897
|
-
e[42] !== t ? (me = (P) => P.measurements[t].unit, e[42] = t, e[43] = me) : me = e[43];
|
|
1898
|
-
const Te = I(me), Ee = I(Zs);
|
|
1899
|
-
let pe;
|
|
1900
|
-
e[44] !== Ee || e[45] !== t ? (pe = (P) => Ee(t, P), e[44] = Ee, e[45] = t, e[46] = pe) : pe = e[46];
|
|
1901
|
-
const Pe = pe;
|
|
1902
|
-
let ge;
|
|
1903
|
-
e[47] !== k || e[48] !== ae ? (ge = () => {
|
|
1904
|
-
k == null || k.resetClickSequence(), ae([]);
|
|
1905
|
-
}, e[47] = k, e[48] = ae, e[49] = ge) : ge = e[49];
|
|
1906
|
-
const ke = ge;
|
|
1892
|
+
e[37] !== t ? (Z = (D) => D.measurements[t].positions, e[37] = t, e[38] = Z) : Z = e[38];
|
|
1893
|
+
const B = I(Z), X = I(cn);
|
|
1907
1894
|
let ye;
|
|
1908
|
-
e[
|
|
1909
|
-
|
|
1910
|
-
}, e[50] = y, e[51] = ye) : ye = e[51];
|
|
1911
|
-
const Ce = ye;
|
|
1895
|
+
e[39] !== X || e[40] !== t ? (ye = (D) => X(t, D), e[39] = X, e[40] = t, e[41] = ye) : ye = e[41];
|
|
1896
|
+
const ue = ye;
|
|
1912
1897
|
let he;
|
|
1913
|
-
|
|
1898
|
+
e[42] !== t ? (he = (D) => D.measurements[t].unit, e[42] = t, e[43] = he) : he = e[43];
|
|
1899
|
+
const Le = I(he), Oe = I(ln);
|
|
1900
|
+
let ge;
|
|
1901
|
+
e[44] !== Oe || e[45] !== t ? (ge = (D) => Oe(t, D), e[44] = Oe, e[45] = t, e[46] = ge) : ge = e[46];
|
|
1902
|
+
const ke = ge;
|
|
1903
|
+
let be;
|
|
1904
|
+
e[47] !== P || e[48] !== ue ? (be = () => {
|
|
1905
|
+
P == null || P.resetClickSequence(), ue([]);
|
|
1906
|
+
}, e[47] = P, e[48] = ue, e[49] = be) : be = e[49];
|
|
1907
|
+
const Ae = be;
|
|
1908
|
+
let ve;
|
|
1909
|
+
e[50] !== g ? (ve = (D) => {
|
|
1910
|
+
g(D);
|
|
1911
|
+
}, e[50] = g, e[51] = ve) : ve = e[51];
|
|
1912
|
+
const Ce = ve;
|
|
1913
|
+
let Se;
|
|
1914
|
+
return e[52] !== Ae || e[53] !== f || e[54] !== l || e[55] !== p || e[56] !== F || e[57] !== k || e[58] !== P || e[59] !== E || e[60] !== s || e[61] !== B || e[62] !== h || e[63] !== g || e[64] !== $ || e[65] !== M || e[66] !== W || e[67] !== A || e[68] !== ue || e[69] !== ke || e[70] !== Ce || e[71] !== Le || e[72] !== i ? (Se = {
|
|
1914
1915
|
modes: s,
|
|
1915
1916
|
units: i,
|
|
1916
1917
|
distance: l,
|
|
1917
|
-
clearLayerOnStart:
|
|
1918
|
-
modeSelected:
|
|
1919
|
-
enabled:
|
|
1920
|
-
finished:
|
|
1921
|
-
locale:
|
|
1922
|
-
modeInstance:
|
|
1923
|
-
positions:
|
|
1924
|
-
unit:
|
|
1925
|
-
setDistance:
|
|
1926
|
-
setModeSelected:
|
|
1927
|
-
setFinished:
|
|
1928
|
-
setLocale:
|
|
1929
|
-
setPositions:
|
|
1930
|
-
setUnit:
|
|
1931
|
-
setEnabled:
|
|
1918
|
+
clearLayerOnStart: f,
|
|
1919
|
+
modeSelected: E,
|
|
1920
|
+
enabled: p,
|
|
1921
|
+
finished: F,
|
|
1922
|
+
locale: k,
|
|
1923
|
+
modeInstance: P,
|
|
1924
|
+
positions: B,
|
|
1925
|
+
unit: Le,
|
|
1926
|
+
setDistance: h,
|
|
1927
|
+
setModeSelected: A,
|
|
1928
|
+
setFinished: $,
|
|
1929
|
+
setLocale: M,
|
|
1930
|
+
setPositions: ue,
|
|
1931
|
+
setUnit: ke,
|
|
1932
|
+
setEnabled: g,
|
|
1932
1933
|
toggleLayer: Ce,
|
|
1933
|
-
clearLayer:
|
|
1934
|
-
setModeInstance:
|
|
1935
|
-
}, e[52] =
|
|
1934
|
+
clearLayer: Ae,
|
|
1935
|
+
setModeInstance: W
|
|
1936
|
+
}, e[52] = Ae, e[53] = f, e[54] = l, e[55] = p, e[56] = F, e[57] = k, e[58] = P, e[59] = E, e[60] = s, e[61] = B, e[62] = h, e[63] = g, e[64] = $, e[65] = M, e[66] = W, e[67] = A, e[68] = ue, e[69] = ke, e[70] = Ce, e[71] = Le, e[72] = i, e[73] = Se) : Se = e[73], Se;
|
|
1936
1937
|
}
|
|
1937
|
-
function
|
|
1938
|
-
return
|
|
1938
|
+
function ln(r) {
|
|
1939
|
+
return r.setUnit;
|
|
1939
1940
|
}
|
|
1940
|
-
function
|
|
1941
|
-
return
|
|
1941
|
+
function cn(r) {
|
|
1942
|
+
return r.setPositions;
|
|
1942
1943
|
}
|
|
1943
|
-
function
|
|
1944
|
-
return
|
|
1944
|
+
function un(r) {
|
|
1945
|
+
return r.setModeInstance;
|
|
1945
1946
|
}
|
|
1946
|
-
function
|
|
1947
|
-
return
|
|
1947
|
+
function fn(r) {
|
|
1948
|
+
return r.setLocale;
|
|
1948
1949
|
}
|
|
1949
|
-
function
|
|
1950
|
-
return
|
|
1950
|
+
function dn(r) {
|
|
1951
|
+
return r.setFinished;
|
|
1951
1952
|
}
|
|
1952
|
-
function
|
|
1953
|
-
return
|
|
1953
|
+
function pn(r) {
|
|
1954
|
+
return r.setModeSelected;
|
|
1954
1955
|
}
|
|
1955
|
-
function
|
|
1956
|
-
return
|
|
1956
|
+
function mn(r) {
|
|
1957
|
+
return r.setEnabled;
|
|
1957
1958
|
}
|
|
1958
|
-
function
|
|
1959
|
-
return
|
|
1959
|
+
function yn(r) {
|
|
1960
|
+
return r.setDistance;
|
|
1960
1961
|
}
|
|
1961
|
-
function
|
|
1962
|
-
const e =
|
|
1962
|
+
function hn(r) {
|
|
1963
|
+
const e = R(42), {
|
|
1963
1964
|
mapId: t,
|
|
1964
1965
|
textOptions: n,
|
|
1965
1966
|
children: s
|
|
1966
|
-
} =
|
|
1967
|
-
let
|
|
1968
|
-
e[0] !== t ? (
|
|
1967
|
+
} = r;
|
|
1968
|
+
let o;
|
|
1969
|
+
e[0] !== t ? (o = {
|
|
1969
1970
|
mapId: t
|
|
1970
|
-
}, e[0] = t, e[1] =
|
|
1971
|
+
}, e[0] = t, e[1] = o) : o = e[1];
|
|
1971
1972
|
const {
|
|
1972
1973
|
modes: i,
|
|
1973
1974
|
units: a,
|
|
1974
1975
|
distance: l,
|
|
1975
1976
|
setDistance: d,
|
|
1976
1977
|
clearLayerOnStart: c,
|
|
1977
|
-
modeSelected:
|
|
1978
|
-
setModeSelected:
|
|
1979
|
-
enabled:
|
|
1980
|
-
setEnabled:
|
|
1981
|
-
finished:
|
|
1982
|
-
setFinished:
|
|
1983
|
-
locale:
|
|
1984
|
-
setLocale:
|
|
1985
|
-
modeInstance:
|
|
1986
|
-
setModeInstance:
|
|
1987
|
-
positions:
|
|
1988
|
-
setPositions:
|
|
1989
|
-
unit:
|
|
1990
|
-
setUnit:
|
|
1991
|
-
clearLayer:
|
|
1992
|
-
toggleLayer:
|
|
1993
|
-
} =
|
|
1994
|
-
let
|
|
1995
|
-
e[2] !==
|
|
1996
|
-
if (
|
|
1997
|
-
const
|
|
1998
|
-
|
|
1978
|
+
modeSelected: h,
|
|
1979
|
+
setModeSelected: m,
|
|
1980
|
+
enabled: f,
|
|
1981
|
+
setEnabled: b,
|
|
1982
|
+
finished: p,
|
|
1983
|
+
setFinished: L,
|
|
1984
|
+
locale: y,
|
|
1985
|
+
setLocale: g,
|
|
1986
|
+
modeInstance: S,
|
|
1987
|
+
setModeInstance: E,
|
|
1988
|
+
positions: _,
|
|
1989
|
+
setPositions: T,
|
|
1990
|
+
unit: A,
|
|
1991
|
+
setUnit: U,
|
|
1992
|
+
clearLayer: F,
|
|
1993
|
+
toggleLayer: j
|
|
1994
|
+
} = Mt(o);
|
|
1995
|
+
let q;
|
|
1996
|
+
e[2] !== h || e[3] !== i || e[4] !== E || e[5] !== T ? (q = () => {
|
|
1997
|
+
if (h && i[h]) {
|
|
1998
|
+
const M = i[h].mode;
|
|
1999
|
+
E(new M());
|
|
1999
2000
|
}
|
|
2000
2001
|
return () => {
|
|
2001
|
-
|
|
2002
|
+
T([]);
|
|
2002
2003
|
};
|
|
2003
|
-
}, e[2] =
|
|
2004
|
-
let
|
|
2005
|
-
e[7] !==
|
|
2006
|
-
let
|
|
2007
|
-
e[13] !==
|
|
2008
|
-
|
|
2009
|
-
}, e[13] =
|
|
2010
|
-
const
|
|
2011
|
-
let
|
|
2012
|
-
return e[18] !== s || e[19] !==
|
|
2004
|
+
}, e[2] = h, e[3] = i, e[4] = E, e[5] = T, e[6] = q) : q = e[6];
|
|
2005
|
+
let $;
|
|
2006
|
+
e[7] !== h || e[8] !== i || e[9] !== b || e[10] !== E || e[11] !== T ? ($ = [i, h, T, E, b], e[7] = h, e[8] = i, e[9] = b, e[10] = E, e[11] = T, e[12] = $) : $ = e[12], z(q, $);
|
|
2007
|
+
let w;
|
|
2008
|
+
e[13] !== j || e[14] !== F || e[15] !== c || e[16] !== p ? (w = (M) => {
|
|
2009
|
+
M && (c || !p) && F(), j(M);
|
|
2010
|
+
}, e[13] = j, e[14] = F, e[15] = c, e[16] = p, e[17] = w) : w = e[17];
|
|
2011
|
+
const k = w, u = !!c;
|
|
2012
|
+
let v;
|
|
2013
|
+
return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== f || e[22] !== p || e[23] !== y || e[24] !== t || e[25] !== S || e[26] !== h || e[27] !== i || e[28] !== _ || e[29] !== d || e[30] !== b || e[31] !== L || e[32] !== g || e[33] !== m || e[34] !== T || e[35] !== U || e[36] !== u || e[37] !== n || e[38] !== k || e[39] !== A || e[40] !== a ? (v = s({
|
|
2013
2014
|
mapId: t,
|
|
2014
2015
|
distance: l,
|
|
2015
|
-
enabled:
|
|
2016
|
-
finished:
|
|
2017
|
-
locale:
|
|
2018
|
-
positions:
|
|
2019
|
-
unit:
|
|
2020
|
-
clearLayerOnStart:
|
|
2021
|
-
modeSelected:
|
|
2016
|
+
enabled: f,
|
|
2017
|
+
finished: p,
|
|
2018
|
+
locale: y,
|
|
2019
|
+
positions: _,
|
|
2020
|
+
unit: A,
|
|
2021
|
+
clearLayerOnStart: u,
|
|
2022
|
+
modeSelected: h,
|
|
2022
2023
|
modes: i,
|
|
2023
2024
|
units: a,
|
|
2024
|
-
value:
|
|
2025
|
+
value: Pe({
|
|
2025
2026
|
meters: l,
|
|
2026
|
-
unit:
|
|
2027
|
-
locale:
|
|
2027
|
+
unit: A,
|
|
2028
|
+
locale: y,
|
|
2028
2029
|
options: n
|
|
2029
2030
|
}),
|
|
2030
|
-
modeInstance:
|
|
2031
|
-
setModeSelected:
|
|
2031
|
+
modeInstance: S,
|
|
2032
|
+
setModeSelected: m,
|
|
2032
2033
|
setDistance: d,
|
|
2033
|
-
setFinished:
|
|
2034
|
-
setLocale:
|
|
2035
|
-
setPositions:
|
|
2036
|
-
setUnit:
|
|
2037
|
-
setEnabled:
|
|
2038
|
-
toggleLayer:
|
|
2039
|
-
clearLayer:
|
|
2040
|
-
}), e[18] = s, e[19] =
|
|
2041
|
-
}
|
|
2042
|
-
const
|
|
2043
|
-
function
|
|
2044
|
-
children:
|
|
2034
|
+
setFinished: L,
|
|
2035
|
+
setLocale: g,
|
|
2036
|
+
setPositions: T,
|
|
2037
|
+
setUnit: U,
|
|
2038
|
+
setEnabled: b,
|
|
2039
|
+
toggleLayer: k,
|
|
2040
|
+
clearLayer: F
|
|
2041
|
+
}), e[18] = s, e[19] = F, e[20] = l, e[21] = f, e[22] = p, e[23] = y, e[24] = t, e[25] = S, e[26] = h, e[27] = i, e[28] = _, e[29] = d, e[30] = b, e[31] = L, e[32] = g, e[33] = m, e[34] = T, e[35] = U, e[36] = u, e[37] = n, e[38] = k, e[39] = A, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2042
|
+
}
|
|
2043
|
+
const gn = [ne];
|
|
2044
|
+
function bn({
|
|
2045
|
+
children: r,
|
|
2045
2046
|
mapId: e,
|
|
2046
2047
|
defaultProps: {
|
|
2047
|
-
styles: t =
|
|
2048
|
+
styles: t = st.styles
|
|
2048
2049
|
} = {
|
|
2049
|
-
styles:
|
|
2050
|
+
styles: st.styles
|
|
2050
2051
|
},
|
|
2051
2052
|
layerProps: n = {},
|
|
2052
2053
|
textOptions: s
|
|
2053
2054
|
}) {
|
|
2054
2055
|
const {
|
|
2055
|
-
setDistance:
|
|
2056
|
+
setDistance: o,
|
|
2056
2057
|
clearLayerOnStart: i,
|
|
2057
2058
|
enabled: a,
|
|
2058
2059
|
finished: l,
|
|
2059
2060
|
setFinished: d,
|
|
2060
2061
|
locale: c,
|
|
2061
|
-
setPositions:
|
|
2062
|
-
unit:
|
|
2063
|
-
modeInstance:
|
|
2064
|
-
} =
|
|
2062
|
+
setPositions: h,
|
|
2063
|
+
unit: m,
|
|
2064
|
+
modeInstance: f
|
|
2065
|
+
} = Mt({
|
|
2065
2066
|
mapId: e
|
|
2066
|
-
}),
|
|
2067
|
-
var
|
|
2068
|
-
return (
|
|
2069
|
-
})),
|
|
2070
|
-
|
|
2067
|
+
}), b = de((_) => _.setLayer), p = x((_) => _.addLayers), L = x((_) => _.removeLayers), y = x(mt((_) => {
|
|
2068
|
+
var T;
|
|
2069
|
+
return (T = _.maps[e]) == null ? void 0 : T.layers.filter((A) => !gn.includes(A));
|
|
2070
|
+
})), g = x((_) => _.getDeckInstance), S = we({});
|
|
2071
|
+
Tt({
|
|
2071
2072
|
mapId: e,
|
|
2072
|
-
layerId:
|
|
2073
|
-
}),
|
|
2074
|
-
|
|
2075
|
-
}), [
|
|
2076
|
-
|
|
2077
|
-
var
|
|
2078
|
-
const
|
|
2079
|
-
a && (
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2073
|
+
layerId: ne
|
|
2074
|
+
}), z(() => (a && p(e, [ne]), () => {
|
|
2075
|
+
L(e, [ne]);
|
|
2076
|
+
}), [p, i, e, L, a]), z(() => {
|
|
2077
|
+
y == null || y.forEach((_) => {
|
|
2078
|
+
var U;
|
|
2079
|
+
const T = (U = g(e)) == null ? void 0 : U.props.layers.find((F) => F.props.id === _);
|
|
2080
|
+
a && (S.current[_] = T == null ? void 0 : T.props.pickable);
|
|
2081
|
+
const A = !a && (S.current[_] ?? (T == null ? void 0 : T.props.pickable));
|
|
2082
|
+
b(_, {
|
|
2082
2083
|
props: {
|
|
2083
|
-
pickable:
|
|
2084
|
+
pickable: A
|
|
2084
2085
|
}
|
|
2085
2086
|
});
|
|
2086
2087
|
});
|
|
2087
|
-
}, [a,
|
|
2088
|
-
const
|
|
2089
|
-
editType:
|
|
2090
|
-
editContext:
|
|
2088
|
+
}, [a, g, e, y, b]);
|
|
2089
|
+
const E = Q(({
|
|
2090
|
+
editType: _,
|
|
2091
|
+
editContext: T
|
|
2091
2092
|
}) => {
|
|
2092
|
-
if (
|
|
2093
|
-
|
|
2093
|
+
if (_ === Y.cancel) {
|
|
2094
|
+
f.resetClickSequence();
|
|
2094
2095
|
return;
|
|
2095
2096
|
}
|
|
2096
|
-
|
|
2097
|
-
const
|
|
2098
|
-
|
|
2099
|
-
}, [
|
|
2100
|
-
return
|
|
2101
|
-
const
|
|
2097
|
+
_ === Y.addPosition && o(T.distance), d(!!T.finished);
|
|
2098
|
+
const A = T.positions;
|
|
2099
|
+
A != null && A.length && h(A);
|
|
2100
|
+
}, [f, o, d, h]);
|
|
2101
|
+
return z(() => {
|
|
2102
|
+
const _ = l ? t.colors.finished : t.colors.editing, T = l ? t.colors.finished : t.colors.point, A = nn({
|
|
2102
2103
|
layerProps: {
|
|
2103
2104
|
...n,
|
|
2104
2105
|
pickable: n.pickable ?? !l
|
|
2105
2106
|
},
|
|
2106
2107
|
enabled: a,
|
|
2107
|
-
guideColor:
|
|
2108
|
-
pointColor:
|
|
2108
|
+
guideColor: _,
|
|
2109
|
+
pointColor: T,
|
|
2109
2110
|
locale: c,
|
|
2110
|
-
onEdit:
|
|
2111
|
-
unit:
|
|
2112
|
-
mode:
|
|
2111
|
+
onEdit: E,
|
|
2112
|
+
unit: m,
|
|
2113
|
+
mode: f,
|
|
2113
2114
|
textOptions: s
|
|
2114
2115
|
});
|
|
2115
|
-
|
|
2116
|
-
}, [l,
|
|
2116
|
+
b(ne, A);
|
|
2117
|
+
}, [l, f, n, c, E, b, t.colors.editing, t.colors.finished, t.colors.point, s, m, a]), r;
|
|
2117
2118
|
}
|
|
2118
|
-
|
|
2119
|
-
function
|
|
2120
|
-
const e =
|
|
2119
|
+
bn.Controls = hn;
|
|
2120
|
+
function vn(r) {
|
|
2121
|
+
const e = R(7), {
|
|
2121
2122
|
mapId: t
|
|
2122
|
-
} =
|
|
2123
|
+
} = r;
|
|
2123
2124
|
let n;
|
|
2124
2125
|
e[0] !== t ? (n = (d) => d.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2125
2126
|
const {
|
|
2126
2127
|
layers: s
|
|
2127
|
-
} =
|
|
2128
|
+
} = x(n), o = de(_n);
|
|
2128
2129
|
let i, a;
|
|
2129
|
-
if (e[2] !==
|
|
2130
|
+
if (e[2] !== o || e[3] !== s) {
|
|
2130
2131
|
let d;
|
|
2131
|
-
e[5] !==
|
|
2132
|
+
e[5] !== o ? (d = (c) => o[c], e[5] = o, e[6] = d) : d = e[6], a = s.map(d).filter(Sn), e[2] = o, e[3] = s, e[4] = a;
|
|
2132
2133
|
} else
|
|
2133
2134
|
a = e[4];
|
|
2134
2135
|
return i = a, i;
|
|
2135
2136
|
}
|
|
2136
|
-
function
|
|
2137
|
-
return !!
|
|
2137
|
+
function Sn(r) {
|
|
2138
|
+
return !!r;
|
|
2138
2139
|
}
|
|
2139
|
-
function
|
|
2140
|
-
return
|
|
2140
|
+
function _n(r) {
|
|
2141
|
+
return r.layers;
|
|
2141
2142
|
}
|
|
2142
|
-
const
|
|
2143
|
-
function
|
|
2144
|
-
const e =
|
|
2143
|
+
const ot = [Me, le, ne];
|
|
2144
|
+
function Pt(r) {
|
|
2145
|
+
const e = r.filter((n) => !ot.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = ot.map((n) => r.find((s) => s.props.id === n)).filter((n) => !!n);
|
|
2145
2146
|
return [...e, ...t];
|
|
2146
2147
|
}
|
|
2147
|
-
const
|
|
2148
|
-
function
|
|
2149
|
-
const e =
|
|
2150
|
-
let t, n, s,
|
|
2151
|
-
e[0] !==
|
|
2148
|
+
const En = 200;
|
|
2149
|
+
function $r(r) {
|
|
2150
|
+
const e = R(48);
|
|
2151
|
+
let t, n, s, o;
|
|
2152
|
+
e[0] !== r ? ({
|
|
2152
2153
|
id: t,
|
|
2153
2154
|
onLoad: n,
|
|
2154
2155
|
onViewStateChange: s,
|
|
2155
|
-
...
|
|
2156
|
-
} =
|
|
2156
|
+
...o
|
|
2157
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o) : (t = e[1], n = e[2], s = e[3], o = e[4]);
|
|
2157
2158
|
let i;
|
|
2158
|
-
e[5] !== t ? (i = (
|
|
2159
|
-
const a =
|
|
2159
|
+
e[5] !== t ? (i = (P) => P.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2160
|
+
const a = x(i);
|
|
2160
2161
|
let l;
|
|
2161
|
-
e[7] !== t ? (l = (
|
|
2162
|
-
const d =
|
|
2162
|
+
e[7] !== t ? (l = (P) => P.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2163
|
+
const d = x(l);
|
|
2163
2164
|
let c;
|
|
2164
|
-
e[9] !== t ? (c = (
|
|
2165
|
-
const
|
|
2166
|
-
let
|
|
2167
|
-
e[11] !== t ? (
|
|
2168
|
-
const
|
|
2169
|
-
let
|
|
2170
|
-
e[13] !== t ? (
|
|
2165
|
+
e[9] !== t ? (c = (P) => P.maps[t].overlayRef, e[9] = t, e[10] = c) : c = e[10];
|
|
2166
|
+
const h = x(c), m = we(null);
|
|
2167
|
+
let f;
|
|
2168
|
+
e[11] !== t ? (f = (P) => P.viewStates[t], e[11] = t, e[12] = f) : f = e[12];
|
|
2169
|
+
const b = x(f), p = x(On), L = x(Ln), y = x(Pn), g = x(Mn), S = x(wn);
|
|
2170
|
+
let E;
|
|
2171
|
+
e[13] !== t ? (E = {
|
|
2171
2172
|
mapId: t
|
|
2172
|
-
}, e[13] = t, e[14] =
|
|
2173
|
-
const
|
|
2174
|
-
let
|
|
2175
|
-
e[15] !==
|
|
2176
|
-
const
|
|
2177
|
-
let
|
|
2178
|
-
e[17] !== t || e[18] !== s || e[19] !==
|
|
2179
|
-
const
|
|
2180
|
-
if (
|
|
2181
|
-
|
|
2182
|
-
},
|
|
2183
|
-
s(
|
|
2173
|
+
}, e[13] = t, e[14] = E) : E = e[14];
|
|
2174
|
+
const _ = vn(E);
|
|
2175
|
+
let T, A;
|
|
2176
|
+
e[15] !== _ ? (A = Pt(_), e[15] = _, e[16] = A) : A = e[16], T = A;
|
|
2177
|
+
const U = T;
|
|
2178
|
+
let F;
|
|
2179
|
+
e[17] !== t || e[18] !== s || e[19] !== L || e[20] !== S ? (F = (P) => {
|
|
2180
|
+
const O = L;
|
|
2181
|
+
if (P.interactionState.isZooming && (m.current && clearInterval(m.current), m.current = setTimeout(() => {
|
|
2182
|
+
S(t);
|
|
2183
|
+
}, En)), s) {
|
|
2184
|
+
s(P, O);
|
|
2184
2185
|
return;
|
|
2185
2186
|
}
|
|
2186
|
-
|
|
2187
|
-
}, e[17] = t, e[18] = s, e[19] =
|
|
2188
|
-
const
|
|
2189
|
-
let
|
|
2190
|
-
e[22] !== t || e[23] !== n || e[24] !==
|
|
2191
|
-
|
|
2192
|
-
}, e[22] = t, e[23] = n, e[24] =
|
|
2193
|
-
const
|
|
2194
|
-
let
|
|
2195
|
-
e[27] !==
|
|
2196
|
-
var
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2199
|
-
}, e[27] =
|
|
2200
|
-
const
|
|
2201
|
-
let
|
|
2202
|
-
e[32] !==
|
|
2203
|
-
const
|
|
2204
|
-
|
|
2205
|
-
}, e[32] =
|
|
2206
|
-
const
|
|
2207
|
-
let
|
|
2208
|
-
return e[36] !== a || e[37] !==
|
|
2209
|
-
}
|
|
2210
|
-
function
|
|
2211
|
-
return
|
|
2212
|
-
}
|
|
2213
|
-
function
|
|
2214
|
-
return
|
|
2215
|
-
}
|
|
2216
|
-
function
|
|
2217
|
-
return
|
|
2218
|
-
}
|
|
2219
|
-
function
|
|
2220
|
-
return
|
|
2221
|
-
}
|
|
2222
|
-
function
|
|
2223
|
-
return
|
|
2187
|
+
O(t, P.viewState);
|
|
2188
|
+
}, e[17] = t, e[18] = s, e[19] = L, e[20] = S, e[21] = F) : F = e[21];
|
|
2189
|
+
const j = F;
|
|
2190
|
+
let q;
|
|
2191
|
+
e[22] !== t || e[23] !== n || e[24] !== y || e[25] !== S ? (q = (P) => {
|
|
2192
|
+
y(t, P), n == null || n(P), S(t);
|
|
2193
|
+
}, e[22] = t, e[23] = n, e[24] = y, e[25] = S, e[26] = q) : q = e[26];
|
|
2194
|
+
const $ = q;
|
|
2195
|
+
let w;
|
|
2196
|
+
e[27] !== p || e[28] !== t || e[29] !== o || e[30] !== g ? (w = (P) => {
|
|
2197
|
+
var W, Z;
|
|
2198
|
+
const O = (W = p(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(Tn));
|
|
2199
|
+
g(t, H), (Z = o.onAfterRender) == null || Z.call(o, P);
|
|
2200
|
+
}, e[27] = p, e[28] = t, e[29] = o, e[30] = g, e[31] = w) : w = e[31];
|
|
2201
|
+
const k = w, u = o.onDragEnd;
|
|
2202
|
+
let v;
|
|
2203
|
+
e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...P) => {
|
|
2204
|
+
const O = P;
|
|
2205
|
+
S(t), u && u(...O);
|
|
2206
|
+
}, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
|
|
2207
|
+
const M = v;
|
|
2208
|
+
let C;
|
|
2209
|
+
return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !== M || e[40] !== $ || e[41] !== j || e[42] !== t || e[43] !== d || e[44] !== h || e[45] !== o || e[46] !== b ? (C = /* @__PURE__ */ N(Ms, { ...o, id: t, layers: U, instanceRef: d, overlayRef: h, basemap: a, initialViewState: b, onLoad: $, onViewStateChange: j, onAfterRender: k, onDragEnd: M }), e[36] = a, e[37] = U, e[38] = k, e[39] = M, e[40] = $, e[41] = j, e[42] = t, e[43] = d, e[44] = h, e[45] = o, e[46] = b, e[47] = C) : C = e[47], C;
|
|
2210
|
+
}
|
|
2211
|
+
function Tn(r) {
|
|
2212
|
+
return r == null ? void 0 : r.isLoaded;
|
|
2213
|
+
}
|
|
2214
|
+
function wn(r) {
|
|
2215
|
+
return r.updateViewPort;
|
|
2216
|
+
}
|
|
2217
|
+
function Mn(r) {
|
|
2218
|
+
return r.setLayersLoad;
|
|
2219
|
+
}
|
|
2220
|
+
function Pn(r) {
|
|
2221
|
+
return r.setLoad;
|
|
2222
|
+
}
|
|
2223
|
+
function Ln(r) {
|
|
2224
|
+
return r.setViewState;
|
|
2225
|
+
}
|
|
2226
|
+
function On(r) {
|
|
2227
|
+
return r.getDeckInstance;
|
|
2228
|
+
}
|
|
2229
|
+
var Te = { exports: {} }, it;
|
|
2230
|
+
function kn() {
|
|
2231
|
+
return it || (it = 1, function(r, e) {
|
|
2232
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, n = function() {
|
|
2233
|
+
function o() {
|
|
2234
|
+
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2235
|
+
}
|
|
2236
|
+
return o.prototype = t, new o();
|
|
2237
|
+
}();
|
|
2238
|
+
(function(o) {
|
|
2239
|
+
(function(i) {
|
|
2240
|
+
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2241
|
+
typeof Ee < "u" && Ee || {}, l = {
|
|
2242
|
+
searchParams: "URLSearchParams" in a,
|
|
2243
|
+
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2244
|
+
blob: "FileReader" in a && "Blob" in a && function() {
|
|
2245
|
+
try {
|
|
2246
|
+
return new Blob(), !0;
|
|
2247
|
+
} catch {
|
|
2248
|
+
return !1;
|
|
2249
|
+
}
|
|
2250
|
+
}(),
|
|
2251
|
+
formData: "FormData" in a,
|
|
2252
|
+
arrayBuffer: "ArrayBuffer" in a
|
|
2253
|
+
};
|
|
2254
|
+
function d(u) {
|
|
2255
|
+
return u && DataView.prototype.isPrototypeOf(u);
|
|
2256
|
+
}
|
|
2257
|
+
if (l.arrayBuffer)
|
|
2258
|
+
var c = [
|
|
2259
|
+
"[object Int8Array]",
|
|
2260
|
+
"[object Uint8Array]",
|
|
2261
|
+
"[object Uint8ClampedArray]",
|
|
2262
|
+
"[object Int16Array]",
|
|
2263
|
+
"[object Uint16Array]",
|
|
2264
|
+
"[object Int32Array]",
|
|
2265
|
+
"[object Uint32Array]",
|
|
2266
|
+
"[object Float32Array]",
|
|
2267
|
+
"[object Float64Array]"
|
|
2268
|
+
], h = ArrayBuffer.isView || function(u) {
|
|
2269
|
+
return u && c.indexOf(Object.prototype.toString.call(u)) > -1;
|
|
2270
|
+
};
|
|
2271
|
+
function m(u) {
|
|
2272
|
+
if (typeof u != "string" && (u = String(u)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u) || u === "")
|
|
2273
|
+
throw new TypeError('Invalid character in header field name: "' + u + '"');
|
|
2274
|
+
return u.toLowerCase();
|
|
2275
|
+
}
|
|
2276
|
+
function f(u) {
|
|
2277
|
+
return typeof u != "string" && (u = String(u)), u;
|
|
2278
|
+
}
|
|
2279
|
+
function b(u) {
|
|
2280
|
+
var v = {
|
|
2281
|
+
next: function() {
|
|
2282
|
+
var M = u.shift();
|
|
2283
|
+
return { done: M === void 0, value: M };
|
|
2284
|
+
}
|
|
2285
|
+
};
|
|
2286
|
+
return l.iterable && (v[Symbol.iterator] = function() {
|
|
2287
|
+
return v;
|
|
2288
|
+
}), v;
|
|
2289
|
+
}
|
|
2290
|
+
function p(u) {
|
|
2291
|
+
this.map = {}, u instanceof p ? u.forEach(function(v, M) {
|
|
2292
|
+
this.append(M, v);
|
|
2293
|
+
}, this) : Array.isArray(u) ? u.forEach(function(v) {
|
|
2294
|
+
if (v.length != 2)
|
|
2295
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + v.length);
|
|
2296
|
+
this.append(v[0], v[1]);
|
|
2297
|
+
}, this) : u && Object.getOwnPropertyNames(u).forEach(function(v) {
|
|
2298
|
+
this.append(v, u[v]);
|
|
2299
|
+
}, this);
|
|
2300
|
+
}
|
|
2301
|
+
p.prototype.append = function(u, v) {
|
|
2302
|
+
u = m(u), v = f(v);
|
|
2303
|
+
var M = this.map[u];
|
|
2304
|
+
this.map[u] = M ? M + ", " + v : v;
|
|
2305
|
+
}, p.prototype.delete = function(u) {
|
|
2306
|
+
delete this.map[m(u)];
|
|
2307
|
+
}, p.prototype.get = function(u) {
|
|
2308
|
+
return u = m(u), this.has(u) ? this.map[u] : null;
|
|
2309
|
+
}, p.prototype.has = function(u) {
|
|
2310
|
+
return this.map.hasOwnProperty(m(u));
|
|
2311
|
+
}, p.prototype.set = function(u, v) {
|
|
2312
|
+
this.map[m(u)] = f(v);
|
|
2313
|
+
}, p.prototype.forEach = function(u, v) {
|
|
2314
|
+
for (var M in this.map)
|
|
2315
|
+
this.map.hasOwnProperty(M) && u.call(v, this.map[M], M, this);
|
|
2316
|
+
}, p.prototype.keys = function() {
|
|
2317
|
+
var u = [];
|
|
2318
|
+
return this.forEach(function(v, M) {
|
|
2319
|
+
u.push(M);
|
|
2320
|
+
}), b(u);
|
|
2321
|
+
}, p.prototype.values = function() {
|
|
2322
|
+
var u = [];
|
|
2323
|
+
return this.forEach(function(v) {
|
|
2324
|
+
u.push(v);
|
|
2325
|
+
}), b(u);
|
|
2326
|
+
}, p.prototype.entries = function() {
|
|
2327
|
+
var u = [];
|
|
2328
|
+
return this.forEach(function(v, M) {
|
|
2329
|
+
u.push([M, v]);
|
|
2330
|
+
}), b(u);
|
|
2331
|
+
}, l.iterable && (p.prototype[Symbol.iterator] = p.prototype.entries);
|
|
2332
|
+
function L(u) {
|
|
2333
|
+
if (!u._noBody) {
|
|
2334
|
+
if (u.bodyUsed)
|
|
2335
|
+
return Promise.reject(new TypeError("Already read"));
|
|
2336
|
+
u.bodyUsed = !0;
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
function y(u) {
|
|
2340
|
+
return new Promise(function(v, M) {
|
|
2341
|
+
u.onload = function() {
|
|
2342
|
+
v(u.result);
|
|
2343
|
+
}, u.onerror = function() {
|
|
2344
|
+
M(u.error);
|
|
2345
|
+
};
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
function g(u) {
|
|
2349
|
+
var v = new FileReader(), M = y(v);
|
|
2350
|
+
return v.readAsArrayBuffer(u), M;
|
|
2351
|
+
}
|
|
2352
|
+
function S(u) {
|
|
2353
|
+
var v = new FileReader(), M = y(v), C = /charset=([A-Za-z0-9_-]+)/.exec(u.type), P = C ? C[1] : "utf-8";
|
|
2354
|
+
return v.readAsText(u, P), M;
|
|
2355
|
+
}
|
|
2356
|
+
function E(u) {
|
|
2357
|
+
for (var v = new Uint8Array(u), M = new Array(v.length), C = 0; C < v.length; C++)
|
|
2358
|
+
M[C] = String.fromCharCode(v[C]);
|
|
2359
|
+
return M.join("");
|
|
2360
|
+
}
|
|
2361
|
+
function _(u) {
|
|
2362
|
+
if (u.slice)
|
|
2363
|
+
return u.slice(0);
|
|
2364
|
+
var v = new Uint8Array(u.byteLength);
|
|
2365
|
+
return v.set(new Uint8Array(u)), v.buffer;
|
|
2366
|
+
}
|
|
2367
|
+
function T() {
|
|
2368
|
+
return this.bodyUsed = !1, this._initBody = function(u) {
|
|
2369
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && d(u) ? (this._bodyArrayBuffer = _(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || h(u)) ? this._bodyArrayBuffer = _(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2370
|
+
}, l.blob && (this.blob = function() {
|
|
2371
|
+
var u = L(this);
|
|
2372
|
+
if (u)
|
|
2373
|
+
return u;
|
|
2374
|
+
if (this._bodyBlob)
|
|
2375
|
+
return Promise.resolve(this._bodyBlob);
|
|
2376
|
+
if (this._bodyArrayBuffer)
|
|
2377
|
+
return Promise.resolve(new Blob([this._bodyArrayBuffer]));
|
|
2378
|
+
if (this._bodyFormData)
|
|
2379
|
+
throw new Error("could not read FormData body as blob");
|
|
2380
|
+
return Promise.resolve(new Blob([this._bodyText]));
|
|
2381
|
+
}), this.arrayBuffer = function() {
|
|
2382
|
+
if (this._bodyArrayBuffer) {
|
|
2383
|
+
var u = L(this);
|
|
2384
|
+
return u || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
|
|
2385
|
+
this._bodyArrayBuffer.buffer.slice(
|
|
2386
|
+
this._bodyArrayBuffer.byteOffset,
|
|
2387
|
+
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
|
2388
|
+
)
|
|
2389
|
+
) : Promise.resolve(this._bodyArrayBuffer));
|
|
2390
|
+
} else {
|
|
2391
|
+
if (l.blob)
|
|
2392
|
+
return this.blob().then(g);
|
|
2393
|
+
throw new Error("could not read as ArrayBuffer");
|
|
2394
|
+
}
|
|
2395
|
+
}, this.text = function() {
|
|
2396
|
+
var u = L(this);
|
|
2397
|
+
if (u)
|
|
2398
|
+
return u;
|
|
2399
|
+
if (this._bodyBlob)
|
|
2400
|
+
return S(this._bodyBlob);
|
|
2401
|
+
if (this._bodyArrayBuffer)
|
|
2402
|
+
return Promise.resolve(E(this._bodyArrayBuffer));
|
|
2403
|
+
if (this._bodyFormData)
|
|
2404
|
+
throw new Error("could not read FormData body as text");
|
|
2405
|
+
return Promise.resolve(this._bodyText);
|
|
2406
|
+
}, l.formData && (this.formData = function() {
|
|
2407
|
+
return this.text().then(j);
|
|
2408
|
+
}), this.json = function() {
|
|
2409
|
+
return this.text().then(JSON.parse);
|
|
2410
|
+
}, this;
|
|
2411
|
+
}
|
|
2412
|
+
var A = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2413
|
+
function U(u) {
|
|
2414
|
+
var v = u.toUpperCase();
|
|
2415
|
+
return A.indexOf(v) > -1 ? v : u;
|
|
2416
|
+
}
|
|
2417
|
+
function F(u, v) {
|
|
2418
|
+
if (!(this instanceof F))
|
|
2419
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2420
|
+
v = v || {};
|
|
2421
|
+
var M = v.body;
|
|
2422
|
+
if (u instanceof F) {
|
|
2423
|
+
if (u.bodyUsed)
|
|
2424
|
+
throw new TypeError("Already read");
|
|
2425
|
+
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new p(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !M && u._bodyInit != null && (M = u._bodyInit, u.bodyUsed = !0);
|
|
2426
|
+
} else
|
|
2427
|
+
this.url = String(u);
|
|
2428
|
+
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new p(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
|
|
2429
|
+
if ("AbortController" in a) {
|
|
2430
|
+
var O = new AbortController();
|
|
2431
|
+
return O.signal;
|
|
2432
|
+
}
|
|
2433
|
+
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && M)
|
|
2434
|
+
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2435
|
+
if (this._initBody(M), (this.method === "GET" || this.method === "HEAD") && (v.cache === "no-store" || v.cache === "no-cache")) {
|
|
2436
|
+
var C = /([?&])_=[^&]*/;
|
|
2437
|
+
if (C.test(this.url))
|
|
2438
|
+
this.url = this.url.replace(C, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
2439
|
+
else {
|
|
2440
|
+
var P = /\?/;
|
|
2441
|
+
this.url += (P.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
F.prototype.clone = function() {
|
|
2446
|
+
return new F(this, { body: this._bodyInit });
|
|
2447
|
+
};
|
|
2448
|
+
function j(u) {
|
|
2449
|
+
var v = new FormData();
|
|
2450
|
+
return u.trim().split("&").forEach(function(M) {
|
|
2451
|
+
if (M) {
|
|
2452
|
+
var C = M.split("="), P = C.shift().replace(/\+/g, " "), O = C.join("=").replace(/\+/g, " ");
|
|
2453
|
+
v.append(decodeURIComponent(P), decodeURIComponent(O));
|
|
2454
|
+
}
|
|
2455
|
+
}), v;
|
|
2456
|
+
}
|
|
2457
|
+
function q(u) {
|
|
2458
|
+
var v = new p(), M = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2459
|
+
return M.split("\r").map(function(C) {
|
|
2460
|
+
return C.indexOf(`
|
|
2461
|
+
`) === 0 ? C.substr(1, C.length) : C;
|
|
2462
|
+
}).forEach(function(C) {
|
|
2463
|
+
var P = C.split(":"), O = P.shift().trim();
|
|
2464
|
+
if (O) {
|
|
2465
|
+
var H = P.join(":").trim();
|
|
2466
|
+
try {
|
|
2467
|
+
v.append(O, H);
|
|
2468
|
+
} catch (W) {
|
|
2469
|
+
console.warn("Response " + W.message);
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
}), v;
|
|
2473
|
+
}
|
|
2474
|
+
T.call(F.prototype);
|
|
2475
|
+
function $(u, v) {
|
|
2476
|
+
if (!(this instanceof $))
|
|
2477
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2478
|
+
if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
|
|
2479
|
+
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2480
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new p(v.headers), this.url = v.url || "", this._initBody(u);
|
|
2481
|
+
}
|
|
2482
|
+
T.call($.prototype), $.prototype.clone = function() {
|
|
2483
|
+
return new $(this._bodyInit, {
|
|
2484
|
+
status: this.status,
|
|
2485
|
+
statusText: this.statusText,
|
|
2486
|
+
headers: new p(this.headers),
|
|
2487
|
+
url: this.url
|
|
2488
|
+
});
|
|
2489
|
+
}, $.error = function() {
|
|
2490
|
+
var u = new $(null, { status: 200, statusText: "" });
|
|
2491
|
+
return u.ok = !1, u.status = 0, u.type = "error", u;
|
|
2492
|
+
};
|
|
2493
|
+
var w = [301, 302, 303, 307, 308];
|
|
2494
|
+
$.redirect = function(u, v) {
|
|
2495
|
+
if (w.indexOf(v) === -1)
|
|
2496
|
+
throw new RangeError("Invalid status code");
|
|
2497
|
+
return new $(null, { status: v, headers: { location: u } });
|
|
2498
|
+
}, i.DOMException = a.DOMException;
|
|
2499
|
+
try {
|
|
2500
|
+
new i.DOMException();
|
|
2501
|
+
} catch {
|
|
2502
|
+
i.DOMException = function(v, M) {
|
|
2503
|
+
this.message = v, this.name = M;
|
|
2504
|
+
var C = Error(v);
|
|
2505
|
+
this.stack = C.stack;
|
|
2506
|
+
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2507
|
+
}
|
|
2508
|
+
function k(u, v) {
|
|
2509
|
+
return new Promise(function(M, C) {
|
|
2510
|
+
var P = new F(u, v);
|
|
2511
|
+
if (P.signal && P.signal.aborted)
|
|
2512
|
+
return C(new i.DOMException("Aborted", "AbortError"));
|
|
2513
|
+
var O = new XMLHttpRequest();
|
|
2514
|
+
function H() {
|
|
2515
|
+
O.abort();
|
|
2516
|
+
}
|
|
2517
|
+
O.onload = function() {
|
|
2518
|
+
var B = {
|
|
2519
|
+
statusText: O.statusText,
|
|
2520
|
+
headers: q(O.getAllResponseHeaders() || "")
|
|
2521
|
+
};
|
|
2522
|
+
P.url.indexOf("file://") === 0 && (O.status < 200 || O.status > 599) ? B.status = 200 : B.status = O.status, B.url = "responseURL" in O ? O.responseURL : B.headers.get("X-Request-URL");
|
|
2523
|
+
var X = "response" in O ? O.response : O.responseText;
|
|
2524
|
+
setTimeout(function() {
|
|
2525
|
+
M(new $(X, B));
|
|
2526
|
+
}, 0);
|
|
2527
|
+
}, O.onerror = function() {
|
|
2528
|
+
setTimeout(function() {
|
|
2529
|
+
C(new TypeError("Network request failed"));
|
|
2530
|
+
}, 0);
|
|
2531
|
+
}, O.ontimeout = function() {
|
|
2532
|
+
setTimeout(function() {
|
|
2533
|
+
C(new TypeError("Network request timed out"));
|
|
2534
|
+
}, 0);
|
|
2535
|
+
}, O.onabort = function() {
|
|
2536
|
+
setTimeout(function() {
|
|
2537
|
+
C(new i.DOMException("Aborted", "AbortError"));
|
|
2538
|
+
}, 0);
|
|
2539
|
+
};
|
|
2540
|
+
function W(B) {
|
|
2541
|
+
try {
|
|
2542
|
+
return B === "" && a.location.href ? a.location.href : B;
|
|
2543
|
+
} catch {
|
|
2544
|
+
return B;
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
if (O.open(P.method, W(P.url), !0), P.credentials === "include" ? O.withCredentials = !0 : P.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 p || a.Headers && v.headers instanceof a.Headers)) {
|
|
2548
|
+
var Z = [];
|
|
2549
|
+
Object.getOwnPropertyNames(v.headers).forEach(function(B) {
|
|
2550
|
+
Z.push(m(B)), O.setRequestHeader(B, f(v.headers[B]));
|
|
2551
|
+
}), P.headers.forEach(function(B, X) {
|
|
2552
|
+
Z.indexOf(X) === -1 && O.setRequestHeader(X, B);
|
|
2553
|
+
});
|
|
2554
|
+
} else
|
|
2555
|
+
P.headers.forEach(function(B, X) {
|
|
2556
|
+
O.setRequestHeader(X, B);
|
|
2557
|
+
});
|
|
2558
|
+
P.signal && (P.signal.addEventListener("abort", H), O.onreadystatechange = function() {
|
|
2559
|
+
O.readyState === 4 && P.signal.removeEventListener("abort", H);
|
|
2560
|
+
}), O.send(typeof P._bodyInit > "u" ? null : P._bodyInit);
|
|
2561
|
+
});
|
|
2562
|
+
}
|
|
2563
|
+
return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers = p, a.Request = F, a.Response = $), i.Headers = p, i.Request = F, i.Response = $, i.fetch = k, i;
|
|
2564
|
+
})({});
|
|
2565
|
+
})(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
|
|
2566
|
+
var s = t.fetch ? t : n;
|
|
2567
|
+
e = s.fetch, e.default = s.fetch, e.fetch = s.fetch, e.Headers = s.Headers, e.Request = s.Request, e.Response = s.Response, r.exports = e;
|
|
2568
|
+
}(Te, Te.exports)), Te.exports;
|
|
2569
|
+
}
|
|
2570
|
+
var An = kn();
|
|
2571
|
+
const Cn = /* @__PURE__ */ gt(An);
|
|
2572
|
+
let ze = "https://gcp-us-east1.api.carto.com", Qe = "v3", Fn = "ps";
|
|
2573
|
+
const ce = {
|
|
2574
|
+
get: "GET",
|
|
2575
|
+
post: "POST"
|
|
2576
|
+
};
|
|
2577
|
+
function Dn(r, e) {
|
|
2578
|
+
return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
|
|
2224
2579
|
}
|
|
2225
|
-
function
|
|
2226
|
-
|
|
2580
|
+
function Rn({
|
|
2581
|
+
params: r,
|
|
2582
|
+
url: e
|
|
2583
|
+
}) {
|
|
2584
|
+
if (!r) return e;
|
|
2585
|
+
const t = Object.entries(r).map(([n, s]) => Dn(n, s));
|
|
2586
|
+
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2587
|
+
}
|
|
2588
|
+
function Un(r) {
|
|
2589
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2590
|
+
}
|
|
2591
|
+
var qe, at;
|
|
2592
|
+
function xn() {
|
|
2593
|
+
if (at) return qe;
|
|
2594
|
+
at = 1;
|
|
2595
|
+
var r = function(y) {
|
|
2596
|
+
return e(y) && !t(y);
|
|
2597
|
+
};
|
|
2598
|
+
function e(y) {
|
|
2599
|
+
return !!y && typeof y == "object";
|
|
2600
|
+
}
|
|
2601
|
+
function t(y) {
|
|
2602
|
+
var g = Object.prototype.toString.call(y);
|
|
2603
|
+
return g === "[object RegExp]" || g === "[object Date]" || o(y);
|
|
2604
|
+
}
|
|
2605
|
+
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
2606
|
+
function o(y) {
|
|
2607
|
+
return y.$$typeof === s;
|
|
2608
|
+
}
|
|
2609
|
+
function i(y) {
|
|
2610
|
+
return Array.isArray(y) ? [] : {};
|
|
2611
|
+
}
|
|
2612
|
+
function a(y, g) {
|
|
2613
|
+
return g.clone !== !1 && g.isMergeableObject(y) ? p(i(y), y, g) : y;
|
|
2614
|
+
}
|
|
2615
|
+
function l(y, g, S) {
|
|
2616
|
+
return y.concat(g).map(function(E) {
|
|
2617
|
+
return a(E, S);
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
function d(y, g) {
|
|
2621
|
+
if (!g.customMerge) return p;
|
|
2622
|
+
var S = g.customMerge(y);
|
|
2623
|
+
return typeof S == "function" ? S : p;
|
|
2624
|
+
}
|
|
2625
|
+
function c(y) {
|
|
2626
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(y).filter(function(g) {
|
|
2627
|
+
return Object.propertyIsEnumerable.call(y, g);
|
|
2628
|
+
}) : [];
|
|
2629
|
+
}
|
|
2630
|
+
function h(y) {
|
|
2631
|
+
return Object.keys(y).concat(c(y));
|
|
2632
|
+
}
|
|
2633
|
+
function m(y, g) {
|
|
2634
|
+
try {
|
|
2635
|
+
return g in y;
|
|
2636
|
+
} catch {
|
|
2637
|
+
return !1;
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
function f(y, g) {
|
|
2641
|
+
return m(y, g) && !(Object.hasOwnProperty.call(y, g) && Object.propertyIsEnumerable.call(y, g));
|
|
2642
|
+
}
|
|
2643
|
+
function b(y, g, S) {
|
|
2644
|
+
var E = {};
|
|
2645
|
+
return S.isMergeableObject(y) && h(y).forEach(function(_) {
|
|
2646
|
+
E[_] = a(y[_], S);
|
|
2647
|
+
}), h(g).forEach(function(_) {
|
|
2648
|
+
f(y, _) || (m(y, _) && S.isMergeableObject(g[_]) ? E[_] = d(_, S)(y[_], g[_], S) : E[_] = a(g[_], S));
|
|
2649
|
+
}), E;
|
|
2650
|
+
}
|
|
2651
|
+
function p(y, g, S) {
|
|
2652
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2653
|
+
var E = Array.isArray(g), _ = Array.isArray(y), T = E === _;
|
|
2654
|
+
return T ? E ? S.arrayMerge(y, g, S) : b(y, g, S) : a(g, S);
|
|
2655
|
+
}
|
|
2656
|
+
p.all = function(y, g) {
|
|
2657
|
+
if (!Array.isArray(y)) throw new Error("first argument should be an array");
|
|
2658
|
+
return y.reduce(function(S, E) {
|
|
2659
|
+
return p(S, E, g);
|
|
2660
|
+
}, {});
|
|
2661
|
+
};
|
|
2662
|
+
var L = p;
|
|
2663
|
+
return qe = L, qe;
|
|
2664
|
+
}
|
|
2665
|
+
var $n = xn();
|
|
2666
|
+
const We = /* @__PURE__ */ Un($n);
|
|
2667
|
+
function lt(r) {
|
|
2668
|
+
return We({
|
|
2669
|
+
method: ce.get,
|
|
2670
|
+
headers: {
|
|
2671
|
+
Accept: "application/json"
|
|
2672
|
+
}
|
|
2673
|
+
}, r);
|
|
2674
|
+
}
|
|
2675
|
+
function je(r, e) {
|
|
2676
|
+
return We({
|
|
2677
|
+
method: ce.post,
|
|
2678
|
+
headers: {
|
|
2679
|
+
Accept: "application/json",
|
|
2680
|
+
"Content-Type": "application/json"
|
|
2681
|
+
},
|
|
2682
|
+
body: JSON.stringify(e)
|
|
2683
|
+
}, r);
|
|
2684
|
+
}
|
|
2685
|
+
const qn = {
|
|
2686
|
+
GET: lt,
|
|
2687
|
+
POST: je,
|
|
2688
|
+
PUT: je,
|
|
2689
|
+
PATCH: je,
|
|
2690
|
+
DELETE: lt
|
|
2691
|
+
};
|
|
2692
|
+
function jn({
|
|
2693
|
+
body: r,
|
|
2694
|
+
accessToken: e,
|
|
2695
|
+
method: t,
|
|
2696
|
+
...n
|
|
2697
|
+
}) {
|
|
2698
|
+
let s = e;
|
|
2699
|
+
return s && !s.includes("Bearer") && (s = "Bearer " + s), qn[t](We({
|
|
2700
|
+
method: t,
|
|
2701
|
+
headers: {
|
|
2702
|
+
...!!s && {
|
|
2703
|
+
authorization: s
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
}, n), r);
|
|
2707
|
+
}
|
|
2708
|
+
const Bn = 6144;
|
|
2709
|
+
async function Lt({
|
|
2710
|
+
signal: r,
|
|
2711
|
+
body: e,
|
|
2712
|
+
accessToken: t,
|
|
2713
|
+
credentials: n,
|
|
2714
|
+
method: s = ce.get,
|
|
2715
|
+
params: o,
|
|
2716
|
+
url: i,
|
|
2717
|
+
requestOptions: {
|
|
2718
|
+
getMaxUrlLength: a
|
|
2719
|
+
} = {
|
|
2720
|
+
getMaxUrlLength: Bn
|
|
2721
|
+
},
|
|
2722
|
+
...l
|
|
2723
|
+
}) {
|
|
2724
|
+
let d = Rn({
|
|
2725
|
+
url: i,
|
|
2726
|
+
params: o
|
|
2727
|
+
}), c = e, h = s;
|
|
2728
|
+
s === ce.get && d.length > a && (c = o, h = ce.post, d = i);
|
|
2729
|
+
const m = jn({
|
|
2730
|
+
body: c,
|
|
2731
|
+
accessToken: t ?? (n == null ? void 0 : n.accessToken),
|
|
2732
|
+
method: h,
|
|
2733
|
+
...l
|
|
2734
|
+
});
|
|
2735
|
+
r && (m.signal = r);
|
|
2736
|
+
const f = await Cn(d, m);
|
|
2737
|
+
if (!f.ok) {
|
|
2738
|
+
const b = await f.text();
|
|
2739
|
+
return Promise.reject(new Error(b));
|
|
2740
|
+
}
|
|
2741
|
+
return f.status === 204 ? Promise.resolve() : await f.json();
|
|
2227
2742
|
}
|
|
2228
|
-
const
|
|
2743
|
+
const Vn = pt((r) => ({
|
|
2229
2744
|
sources: {},
|
|
2230
2745
|
filters: {},
|
|
2231
|
-
setSource: (e, t) =>
|
|
2746
|
+
setSource: (e, t) => r((n) => {
|
|
2232
2747
|
const s = {
|
|
2233
2748
|
...n.sources
|
|
2234
2749
|
};
|
|
@@ -2236,24 +2751,26 @@ const yn = "https://gcp-us-east1.api.carto.com", hn = "ps", Sn = st((o) => ({
|
|
|
2236
2751
|
return delete s[e], {
|
|
2237
2752
|
sources: s
|
|
2238
2753
|
};
|
|
2239
|
-
const
|
|
2240
|
-
apiBaseUrl: i =
|
|
2241
|
-
clientId: a =
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
...
|
|
2246
|
-
|
|
2754
|
+
const o = s[e], {
|
|
2755
|
+
apiBaseUrl: i = ze,
|
|
2756
|
+
clientId: a = Fn,
|
|
2757
|
+
apiVersion: l = Qe,
|
|
2758
|
+
...d
|
|
2759
|
+
} = t, c = n.filters[e] ?? {}, h = {
|
|
2760
|
+
...o,
|
|
2761
|
+
...d,
|
|
2762
|
+
filters: c,
|
|
2247
2763
|
apiBaseUrl: i,
|
|
2764
|
+
apiVersion: l,
|
|
2248
2765
|
clientId: a
|
|
2249
|
-
},
|
|
2250
|
-
source:
|
|
2766
|
+
}, m = Nn({
|
|
2767
|
+
source: h
|
|
2251
2768
|
});
|
|
2252
|
-
return
|
|
2769
|
+
return h.widgets = m, s[e] = h, {
|
|
2253
2770
|
sources: s
|
|
2254
2771
|
};
|
|
2255
2772
|
}),
|
|
2256
|
-
removeSource: (e) =>
|
|
2773
|
+
removeSource: (e) => r((t) => {
|
|
2257
2774
|
const n = {
|
|
2258
2775
|
...t.sources
|
|
2259
2776
|
};
|
|
@@ -2261,22 +2778,22 @@ const yn = "https://gcp-us-east1.api.carto.com", hn = "ps", Sn = st((o) => ({
|
|
|
2261
2778
|
sources: n
|
|
2262
2779
|
};
|
|
2263
2780
|
}),
|
|
2264
|
-
setFilters: (e, t) =>
|
|
2781
|
+
setFilters: (e, t) => r((n) => {
|
|
2265
2782
|
let s = {};
|
|
2266
|
-
const
|
|
2783
|
+
const o = n.filters[e] ?? {};
|
|
2267
2784
|
t.length !== 0 && (s = t.reduce((l, d) => {
|
|
2268
|
-
var
|
|
2785
|
+
var m;
|
|
2269
2786
|
const {
|
|
2270
2787
|
column: c,
|
|
2271
|
-
...
|
|
2788
|
+
...h
|
|
2272
2789
|
} = d;
|
|
2273
|
-
return !("values" in
|
|
2790
|
+
return !("values" in h) || !((m = h.values) != null && m.length) ? (l = Ke(l, {
|
|
2274
2791
|
column: c
|
|
2275
|
-
}), l) : (l =
|
|
2792
|
+
}), l) : (l = os(l, {
|
|
2276
2793
|
column: c,
|
|
2277
|
-
...
|
|
2794
|
+
...h
|
|
2278
2795
|
}), l);
|
|
2279
|
-
},
|
|
2796
|
+
}, o));
|
|
2280
2797
|
const i = n.sources[e], a = i ? {
|
|
2281
2798
|
...i,
|
|
2282
2799
|
filters: s
|
|
@@ -2294,12 +2811,12 @@ const yn = "https://gcp-us-east1.api.carto.com", hn = "ps", Sn = st((o) => ({
|
|
|
2294
2811
|
}
|
|
2295
2812
|
};
|
|
2296
2813
|
}),
|
|
2297
|
-
removeFilters: (e, t, n) =>
|
|
2298
|
-
const
|
|
2299
|
-
if (!
|
|
2814
|
+
removeFilters: (e, t, n) => r((s) => {
|
|
2815
|
+
const o = s.filters[e] ?? {};
|
|
2816
|
+
if (!o)
|
|
2300
2817
|
return s;
|
|
2301
2818
|
let i = {};
|
|
2302
|
-
t && (i =
|
|
2819
|
+
t && (i = Ke(o, {
|
|
2303
2820
|
column: t,
|
|
2304
2821
|
owner: n
|
|
2305
2822
|
}));
|
|
@@ -2321,18 +2838,18 @@ const yn = "https://gcp-us-east1.api.carto.com", hn = "ps", Sn = st((o) => ({
|
|
|
2321
2838
|
};
|
|
2322
2839
|
})
|
|
2323
2840
|
}));
|
|
2324
|
-
function
|
|
2325
|
-
const e =
|
|
2841
|
+
function In(r) {
|
|
2842
|
+
const e = R(2);
|
|
2326
2843
|
let t;
|
|
2327
|
-
return e[0] !==
|
|
2844
|
+
return e[0] !== r ? (t = (n) => n.sources[r], e[0] = r, e[1] = t) : t = e[1], Vn(t);
|
|
2328
2845
|
}
|
|
2329
|
-
function
|
|
2330
|
-
source:
|
|
2846
|
+
function Nn({
|
|
2847
|
+
source: r
|
|
2331
2848
|
}) {
|
|
2332
2849
|
const e = {
|
|
2333
2850
|
query: () => {
|
|
2334
|
-
const s =
|
|
2335
|
-
return new
|
|
2851
|
+
const s = r;
|
|
2852
|
+
return new us({
|
|
2336
2853
|
...s,
|
|
2337
2854
|
accessToken: "",
|
|
2338
2855
|
sqlQuery: s.data,
|
|
@@ -2340,8 +2857,8 @@ function bn({
|
|
|
2340
2857
|
});
|
|
2341
2858
|
},
|
|
2342
2859
|
table: () => {
|
|
2343
|
-
const s =
|
|
2344
|
-
return new
|
|
2860
|
+
const s = r;
|
|
2861
|
+
return new cs({
|
|
2345
2862
|
...s,
|
|
2346
2863
|
accessToken: "",
|
|
2347
2864
|
tableName: s.data,
|
|
@@ -2349,18 +2866,18 @@ function bn({
|
|
|
2349
2866
|
});
|
|
2350
2867
|
},
|
|
2351
2868
|
tileset: () => {
|
|
2352
|
-
const s =
|
|
2353
|
-
return new
|
|
2869
|
+
const s = r;
|
|
2870
|
+
return new as({
|
|
2354
2871
|
...s,
|
|
2355
2872
|
accessToken: "",
|
|
2356
2873
|
tableName: s.data,
|
|
2357
|
-
tileFormat: s.tileFormat ??
|
|
2874
|
+
tileFormat: s.tileFormat ?? ls.BINARY,
|
|
2358
2875
|
spatialDataType: s.spatialDataType ?? "geo"
|
|
2359
2876
|
});
|
|
2360
2877
|
},
|
|
2361
2878
|
raster: () => {
|
|
2362
|
-
const s =
|
|
2363
|
-
return s.rasterMetadata ? new
|
|
2879
|
+
const s = r;
|
|
2880
|
+
return s.rasterMetadata ? new is({
|
|
2364
2881
|
...s,
|
|
2365
2882
|
accessToken: "",
|
|
2366
2883
|
tableName: s.data,
|
|
@@ -2368,361 +2885,362 @@ function bn({
|
|
|
2368
2885
|
rasterMetadata: s.rasterMetadata
|
|
2369
2886
|
}) : null;
|
|
2370
2887
|
}
|
|
2371
|
-
}, t =
|
|
2888
|
+
}, t = r.type.split("+")[0], n = e[t];
|
|
2372
2889
|
return n == null ? void 0 : n();
|
|
2373
2890
|
}
|
|
2374
|
-
function
|
|
2375
|
-
const t =
|
|
2376
|
-
return
|
|
2891
|
+
function ie(r, e) {
|
|
2892
|
+
const t = In(e);
|
|
2893
|
+
return re(() => {
|
|
2377
2894
|
const n = t == null ? void 0 : t.widgets;
|
|
2378
|
-
return !n || !
|
|
2379
|
-
}, [
|
|
2895
|
+
return !n || !r ? null : (n.props.accessToken = r, n);
|
|
2896
|
+
}, [r, t]);
|
|
2380
2897
|
}
|
|
2381
|
-
function
|
|
2382
|
-
const e =
|
|
2898
|
+
function Hn(r) {
|
|
2899
|
+
const e = R(18), {
|
|
2383
2900
|
accessToken: t,
|
|
2384
2901
|
sourceId: n,
|
|
2385
2902
|
widgetProps: s,
|
|
2386
|
-
useQueryProps:
|
|
2387
|
-
} =
|
|
2903
|
+
useQueryProps: o
|
|
2904
|
+
} = r;
|
|
2388
2905
|
let i;
|
|
2389
|
-
e[0] !==
|
|
2906
|
+
e[0] !== o ? (i = o === void 0 ? {} : o, e[0] = o, e[1] = i) : i = e[1];
|
|
2390
2907
|
let a, l;
|
|
2391
2908
|
e[2] !== i ? ({
|
|
2392
2909
|
enabled: a,
|
|
2393
2910
|
...l
|
|
2394
2911
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2395
|
-
const d = a === void 0 ? !0 : a, c =
|
|
2396
|
-
let f;
|
|
2397
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["categories", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2398
|
-
let u;
|
|
2399
|
-
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getCategories(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2400
|
-
const g = !!c && d;
|
|
2912
|
+
const d = a === void 0 ? !0 : a, c = ie(t, n), h = c == null ? void 0 : c.props.filters;
|
|
2401
2913
|
let m;
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2914
|
+
e[5] !== t || e[6] !== n || e[7] !== h || e[8] !== s ? (m = ["categories", n, t, s, h], e[5] = t, e[6] = n, e[7] = h, e[8] = s, e[9] = m) : m = e[9];
|
|
2915
|
+
let f;
|
|
2916
|
+
e[10] !== c || e[11] !== s ? (f = () => c == null ? void 0 : c.getCategories(s), e[10] = c, e[11] = s, e[12] = f) : f = e[12];
|
|
2917
|
+
const b = !!c && d;
|
|
2918
|
+
let p;
|
|
2919
|
+
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
2920
|
+
queryKey: m,
|
|
2921
|
+
queryFn: f,
|
|
2922
|
+
enabled: b,
|
|
2406
2923
|
...l
|
|
2407
|
-
}, e[13] =
|
|
2924
|
+
}, e[13] = m, e[14] = f, e[15] = b, e[16] = l, e[17] = p) : p = e[17], se(p);
|
|
2408
2925
|
}
|
|
2409
|
-
function
|
|
2410
|
-
const e =
|
|
2926
|
+
function qr(r) {
|
|
2927
|
+
const e = R(6);
|
|
2411
2928
|
let t, n;
|
|
2412
|
-
e[0] !==
|
|
2929
|
+
e[0] !== r ? ({
|
|
2413
2930
|
children: t,
|
|
2414
2931
|
...n
|
|
2415
|
-
} =
|
|
2416
|
-
const s =
|
|
2417
|
-
let
|
|
2418
|
-
return e[3] !== t || e[4] !== s ? (
|
|
2932
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2933
|
+
const s = Hn(n);
|
|
2934
|
+
let o;
|
|
2935
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2419
2936
|
}
|
|
2420
|
-
function
|
|
2421
|
-
const e =
|
|
2937
|
+
function Gn(r) {
|
|
2938
|
+
const e = R(18), {
|
|
2422
2939
|
accessToken: t,
|
|
2423
2940
|
sourceId: n,
|
|
2424
2941
|
widgetProps: s,
|
|
2425
|
-
useQueryProps:
|
|
2426
|
-
} =
|
|
2942
|
+
useQueryProps: o
|
|
2943
|
+
} = r;
|
|
2427
2944
|
let i;
|
|
2428
|
-
e[0] !==
|
|
2945
|
+
e[0] !== o ? (i = o === void 0 ? {} : o, e[0] = o, e[1] = i) : i = e[1];
|
|
2429
2946
|
let a, l;
|
|
2430
2947
|
e[2] !== i ? ({
|
|
2431
2948
|
enabled: a,
|
|
2432
2949
|
...l
|
|
2433
2950
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2434
|
-
const d = a === void 0 ? !0 : a, c =
|
|
2435
|
-
let f;
|
|
2436
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["features", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2437
|
-
let u;
|
|
2438
|
-
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getFeatures(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2439
|
-
const g = !!c && d;
|
|
2951
|
+
const d = a === void 0 ? !0 : a, c = ie(t, n), h = c == null ? void 0 : c.props.filters;
|
|
2440
2952
|
let m;
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2953
|
+
e[5] !== t || e[6] !== n || e[7] !== h || e[8] !== s ? (m = ["features", n, t, s, h], e[5] = t, e[6] = n, e[7] = h, e[8] = s, e[9] = m) : m = e[9];
|
|
2954
|
+
let f;
|
|
2955
|
+
e[10] !== c || e[11] !== s ? (f = () => c == null ? void 0 : c.getFeatures(s), e[10] = c, e[11] = s, e[12] = f) : f = e[12];
|
|
2956
|
+
const b = !!c && d;
|
|
2957
|
+
let p;
|
|
2958
|
+
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
2959
|
+
queryKey: m,
|
|
2960
|
+
queryFn: f,
|
|
2961
|
+
enabled: b,
|
|
2445
2962
|
...l
|
|
2446
|
-
}, e[13] =
|
|
2963
|
+
}, e[13] = m, e[14] = f, e[15] = b, e[16] = l, e[17] = p) : p = e[17], se(p);
|
|
2447
2964
|
}
|
|
2448
|
-
function
|
|
2449
|
-
const e =
|
|
2965
|
+
function jr(r) {
|
|
2966
|
+
const e = R(6);
|
|
2450
2967
|
let t, n;
|
|
2451
|
-
e[0] !==
|
|
2968
|
+
e[0] !== r ? ({
|
|
2452
2969
|
children: t,
|
|
2453
2970
|
...n
|
|
2454
|
-
} =
|
|
2455
|
-
const s =
|
|
2456
|
-
let
|
|
2457
|
-
return e[3] !== t || e[4] !== s ? (
|
|
2971
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2972
|
+
const s = Gn(n);
|
|
2973
|
+
let o;
|
|
2974
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2458
2975
|
}
|
|
2459
|
-
function
|
|
2460
|
-
const e =
|
|
2976
|
+
function zn(r) {
|
|
2977
|
+
const e = R(18), {
|
|
2461
2978
|
accessToken: t,
|
|
2462
2979
|
sourceId: n,
|
|
2463
2980
|
widgetProps: s,
|
|
2464
|
-
useQueryProps:
|
|
2465
|
-
} =
|
|
2981
|
+
useQueryProps: o
|
|
2982
|
+
} = r;
|
|
2466
2983
|
let i;
|
|
2467
|
-
e[0] !==
|
|
2984
|
+
e[0] !== o ? (i = o === void 0 ? {} : o, e[0] = o, e[1] = i) : i = e[1];
|
|
2468
2985
|
let a, l;
|
|
2469
2986
|
e[2] !== i ? ({
|
|
2470
2987
|
enabled: a,
|
|
2471
2988
|
...l
|
|
2472
2989
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2473
|
-
const d = a === void 0 ? !0 : a, c =
|
|
2474
|
-
let f;
|
|
2475
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["formula", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2476
|
-
let u;
|
|
2477
|
-
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getFormula(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2478
|
-
const g = !!c && d;
|
|
2990
|
+
const d = a === void 0 ? !0 : a, c = ie(t, n), h = c == null ? void 0 : c.props.filters;
|
|
2479
2991
|
let m;
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2992
|
+
e[5] !== t || e[6] !== n || e[7] !== h || e[8] !== s ? (m = ["formula", n, t, s, h], e[5] = t, e[6] = n, e[7] = h, e[8] = s, e[9] = m) : m = e[9];
|
|
2993
|
+
let f;
|
|
2994
|
+
e[10] !== c || e[11] !== s ? (f = () => c == null ? void 0 : c.getFormula(s), e[10] = c, e[11] = s, e[12] = f) : f = e[12];
|
|
2995
|
+
const b = !!c && d;
|
|
2996
|
+
let p;
|
|
2997
|
+
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
2998
|
+
queryKey: m,
|
|
2999
|
+
queryFn: f,
|
|
3000
|
+
enabled: b,
|
|
2484
3001
|
...l
|
|
2485
|
-
}, e[13] =
|
|
3002
|
+
}, e[13] = m, e[14] = f, e[15] = b, e[16] = l, e[17] = p) : p = e[17], se(p);
|
|
2486
3003
|
}
|
|
2487
|
-
function
|
|
2488
|
-
const e =
|
|
3004
|
+
function Br(r) {
|
|
3005
|
+
const e = R(6);
|
|
2489
3006
|
let t, n;
|
|
2490
|
-
e[0] !==
|
|
3007
|
+
e[0] !== r ? ({
|
|
2491
3008
|
children: t,
|
|
2492
3009
|
...n
|
|
2493
|
-
} =
|
|
2494
|
-
const s =
|
|
2495
|
-
let
|
|
2496
|
-
return e[3] !== t || e[4] !== s ? (
|
|
3010
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3011
|
+
const s = zn(n);
|
|
3012
|
+
let o;
|
|
3013
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2497
3014
|
}
|
|
2498
|
-
function
|
|
2499
|
-
const e =
|
|
3015
|
+
function Qn(r) {
|
|
3016
|
+
const e = R(18), {
|
|
2500
3017
|
accessToken: t,
|
|
2501
3018
|
sourceId: n,
|
|
2502
3019
|
widgetProps: s,
|
|
2503
|
-
useQueryProps:
|
|
2504
|
-
} =
|
|
3020
|
+
useQueryProps: o
|
|
3021
|
+
} = r;
|
|
2505
3022
|
let i;
|
|
2506
|
-
e[0] !==
|
|
3023
|
+
e[0] !== o ? (i = o === void 0 ? {} : o, e[0] = o, e[1] = i) : i = e[1];
|
|
2507
3024
|
let a, l;
|
|
2508
3025
|
e[2] !== i ? ({
|
|
2509
3026
|
enabled: a,
|
|
2510
3027
|
...l
|
|
2511
3028
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2512
|
-
const d = a === void 0 ? !0 : a, c =
|
|
2513
|
-
let f;
|
|
2514
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["histogram", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2515
|
-
let u;
|
|
2516
|
-
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getHistogram(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2517
|
-
const g = !!c && d;
|
|
3029
|
+
const d = a === void 0 ? !0 : a, c = ie(t, n), h = c == null ? void 0 : c.props.filters;
|
|
2518
3030
|
let m;
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
3031
|
+
e[5] !== t || e[6] !== n || e[7] !== h || e[8] !== s ? (m = ["histogram", n, t, s, h], e[5] = t, e[6] = n, e[7] = h, e[8] = s, e[9] = m) : m = e[9];
|
|
3032
|
+
let f;
|
|
3033
|
+
e[10] !== c || e[11] !== s ? (f = () => c == null ? void 0 : c.getHistogram(s), e[10] = c, e[11] = s, e[12] = f) : f = e[12];
|
|
3034
|
+
const b = !!c && d;
|
|
3035
|
+
let p;
|
|
3036
|
+
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3037
|
+
queryKey: m,
|
|
3038
|
+
queryFn: f,
|
|
3039
|
+
enabled: b,
|
|
2523
3040
|
...l
|
|
2524
|
-
}, e[13] =
|
|
3041
|
+
}, e[13] = m, e[14] = f, e[15] = b, e[16] = l, e[17] = p) : p = e[17], se(p);
|
|
2525
3042
|
}
|
|
2526
|
-
function
|
|
2527
|
-
const e =
|
|
3043
|
+
function Vr(r) {
|
|
3044
|
+
const e = R(6);
|
|
2528
3045
|
let t, n;
|
|
2529
|
-
e[0] !==
|
|
3046
|
+
e[0] !== r ? ({
|
|
2530
3047
|
children: t,
|
|
2531
3048
|
...n
|
|
2532
|
-
} =
|
|
2533
|
-
const s =
|
|
2534
|
-
let
|
|
2535
|
-
return e[3] !== t || e[4] !== s ? (
|
|
3049
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3050
|
+
const s = Qn(n);
|
|
3051
|
+
let o;
|
|
3052
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2536
3053
|
}
|
|
2537
|
-
function
|
|
2538
|
-
const e =
|
|
3054
|
+
function Wn(r) {
|
|
3055
|
+
const e = R(18), {
|
|
2539
3056
|
accessToken: t,
|
|
2540
3057
|
sourceId: n,
|
|
2541
3058
|
widgetProps: s,
|
|
2542
|
-
useQueryProps:
|
|
2543
|
-
} =
|
|
3059
|
+
useQueryProps: o
|
|
3060
|
+
} = r;
|
|
2544
3061
|
let i;
|
|
2545
|
-
e[0] !==
|
|
3062
|
+
e[0] !== o ? (i = o === void 0 ? {} : o, e[0] = o, e[1] = i) : i = e[1];
|
|
2546
3063
|
let a, l;
|
|
2547
3064
|
e[2] !== i ? ({
|
|
2548
3065
|
enabled: a,
|
|
2549
3066
|
...l
|
|
2550
3067
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2551
|
-
const d = a === void 0 ? !0 : a, c =
|
|
2552
|
-
let f;
|
|
2553
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["range", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2554
|
-
let u;
|
|
2555
|
-
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getRange(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2556
|
-
const g = !!c && d;
|
|
3068
|
+
const d = a === void 0 ? !0 : a, c = ie(t, n), h = c == null ? void 0 : c.props.filters;
|
|
2557
3069
|
let m;
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
3070
|
+
e[5] !== t || e[6] !== n || e[7] !== h || e[8] !== s ? (m = ["range", n, t, s, h], e[5] = t, e[6] = n, e[7] = h, e[8] = s, e[9] = m) : m = e[9];
|
|
3071
|
+
let f;
|
|
3072
|
+
e[10] !== c || e[11] !== s ? (f = () => c == null ? void 0 : c.getRange(s), e[10] = c, e[11] = s, e[12] = f) : f = e[12];
|
|
3073
|
+
const b = !!c && d;
|
|
3074
|
+
let p;
|
|
3075
|
+
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3076
|
+
queryKey: m,
|
|
3077
|
+
queryFn: f,
|
|
3078
|
+
enabled: b,
|
|
2562
3079
|
...l
|
|
2563
|
-
}, e[13] =
|
|
3080
|
+
}, e[13] = m, e[14] = f, e[15] = b, e[16] = l, e[17] = p) : p = e[17], se(p);
|
|
2564
3081
|
}
|
|
2565
|
-
function
|
|
2566
|
-
const e =
|
|
3082
|
+
function Ir(r) {
|
|
3083
|
+
const e = R(6);
|
|
2567
3084
|
let t, n;
|
|
2568
|
-
e[0] !==
|
|
3085
|
+
e[0] !== r ? ({
|
|
2569
3086
|
children: t,
|
|
2570
3087
|
...n
|
|
2571
|
-
} =
|
|
2572
|
-
const s =
|
|
2573
|
-
let
|
|
2574
|
-
return e[3] !== t || e[4] !== s ? (
|
|
3088
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3089
|
+
const s = Wn(n);
|
|
3090
|
+
let o;
|
|
3091
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2575
3092
|
}
|
|
2576
|
-
function
|
|
2577
|
-
const e =
|
|
3093
|
+
function Zn(r) {
|
|
3094
|
+
const e = R(18), {
|
|
2578
3095
|
accessToken: t,
|
|
2579
3096
|
sourceId: n,
|
|
2580
3097
|
widgetProps: s,
|
|
2581
|
-
useQueryProps:
|
|
2582
|
-
} =
|
|
3098
|
+
useQueryProps: o
|
|
3099
|
+
} = r;
|
|
2583
3100
|
let i;
|
|
2584
|
-
e[0] !==
|
|
3101
|
+
e[0] !== o ? (i = o === void 0 ? {} : o, e[0] = o, e[1] = i) : i = e[1];
|
|
2585
3102
|
let a, l;
|
|
2586
3103
|
e[2] !== i ? ({
|
|
2587
3104
|
enabled: a,
|
|
2588
3105
|
...l
|
|
2589
3106
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2590
|
-
const d = a === void 0 ? !0 : a, c =
|
|
2591
|
-
let f;
|
|
2592
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["scatter", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2593
|
-
let u;
|
|
2594
|
-
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getScatter(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2595
|
-
const g = !!c && d;
|
|
3107
|
+
const d = a === void 0 ? !0 : a, c = ie(t, n), h = c == null ? void 0 : c.props.filters;
|
|
2596
3108
|
let m;
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
3109
|
+
e[5] !== t || e[6] !== n || e[7] !== h || e[8] !== s ? (m = ["scatter", n, t, s, h], e[5] = t, e[6] = n, e[7] = h, e[8] = s, e[9] = m) : m = e[9];
|
|
3110
|
+
let f;
|
|
3111
|
+
e[10] !== c || e[11] !== s ? (f = () => c == null ? void 0 : c.getScatter(s), e[10] = c, e[11] = s, e[12] = f) : f = e[12];
|
|
3112
|
+
const b = !!c && d;
|
|
3113
|
+
let p;
|
|
3114
|
+
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3115
|
+
queryKey: m,
|
|
3116
|
+
queryFn: f,
|
|
3117
|
+
enabled: b,
|
|
2601
3118
|
...l
|
|
2602
|
-
}, e[13] =
|
|
3119
|
+
}, e[13] = m, e[14] = f, e[15] = b, e[16] = l, e[17] = p) : p = e[17], se(p);
|
|
2603
3120
|
}
|
|
2604
|
-
function
|
|
2605
|
-
const e =
|
|
3121
|
+
function Nr(r) {
|
|
3122
|
+
const e = R(6);
|
|
2606
3123
|
let t, n;
|
|
2607
|
-
e[0] !==
|
|
3124
|
+
e[0] !== r ? ({
|
|
2608
3125
|
children: t,
|
|
2609
3126
|
...n
|
|
2610
|
-
} =
|
|
2611
|
-
const s =
|
|
2612
|
-
let
|
|
2613
|
-
return e[3] !== t || e[4] !== s ? (
|
|
3127
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3128
|
+
const s = Zn(n);
|
|
3129
|
+
let o;
|
|
3130
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2614
3131
|
}
|
|
2615
|
-
function
|
|
2616
|
-
const e =
|
|
3132
|
+
function Kn(r) {
|
|
3133
|
+
const e = R(18), {
|
|
2617
3134
|
accessToken: t,
|
|
2618
3135
|
sourceId: n,
|
|
2619
3136
|
widgetProps: s,
|
|
2620
|
-
useQueryProps:
|
|
2621
|
-
} =
|
|
3137
|
+
useQueryProps: o
|
|
3138
|
+
} = r;
|
|
2622
3139
|
let i;
|
|
2623
|
-
e[0] !==
|
|
3140
|
+
e[0] !== o ? (i = o === void 0 ? {} : o, e[0] = o, e[1] = i) : i = e[1];
|
|
2624
3141
|
let a, l;
|
|
2625
3142
|
e[2] !== i ? ({
|
|
2626
3143
|
enabled: a,
|
|
2627
3144
|
...l
|
|
2628
3145
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2629
|
-
const d = a === void 0 ? !0 : a, c =
|
|
2630
|
-
let f;
|
|
2631
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["table", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2632
|
-
let u;
|
|
2633
|
-
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getTable(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2634
|
-
const g = !!c && d;
|
|
3146
|
+
const d = a === void 0 ? !0 : a, c = ie(t, n), h = c == null ? void 0 : c.props.filters;
|
|
2635
3147
|
let m;
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
3148
|
+
e[5] !== t || e[6] !== n || e[7] !== h || e[8] !== s ? (m = ["table", n, t, s, h], e[5] = t, e[6] = n, e[7] = h, e[8] = s, e[9] = m) : m = e[9];
|
|
3149
|
+
let f;
|
|
3150
|
+
e[10] !== c || e[11] !== s ? (f = () => c == null ? void 0 : c.getTable(s), e[10] = c, e[11] = s, e[12] = f) : f = e[12];
|
|
3151
|
+
const b = !!c && d;
|
|
3152
|
+
let p;
|
|
3153
|
+
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3154
|
+
queryKey: m,
|
|
3155
|
+
queryFn: f,
|
|
3156
|
+
enabled: b,
|
|
2640
3157
|
...l
|
|
2641
|
-
}, e[13] =
|
|
3158
|
+
}, e[13] = m, e[14] = f, e[15] = b, e[16] = l, e[17] = p) : p = e[17], se(p);
|
|
2642
3159
|
}
|
|
2643
|
-
function
|
|
2644
|
-
const e =
|
|
3160
|
+
function Hr(r) {
|
|
3161
|
+
const e = R(6);
|
|
2645
3162
|
let t, n;
|
|
2646
|
-
e[0] !==
|
|
3163
|
+
e[0] !== r ? ({
|
|
2647
3164
|
children: t,
|
|
2648
3165
|
...n
|
|
2649
|
-
} =
|
|
2650
|
-
const s =
|
|
2651
|
-
let
|
|
2652
|
-
return e[3] !== t || e[4] !== s ? (
|
|
3166
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3167
|
+
const s = Kn(n);
|
|
3168
|
+
let o;
|
|
3169
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2653
3170
|
}
|
|
2654
|
-
function
|
|
2655
|
-
const e =
|
|
3171
|
+
function Yn(r) {
|
|
3172
|
+
const e = R(18), {
|
|
2656
3173
|
accessToken: t,
|
|
2657
3174
|
sourceId: n,
|
|
2658
3175
|
widgetProps: s,
|
|
2659
|
-
useQueryProps:
|
|
2660
|
-
} =
|
|
3176
|
+
useQueryProps: o
|
|
3177
|
+
} = r;
|
|
2661
3178
|
let i;
|
|
2662
|
-
e[0] !==
|
|
3179
|
+
e[0] !== o ? (i = o === void 0 ? {} : o, e[0] = o, e[1] = i) : i = e[1];
|
|
2663
3180
|
let a, l;
|
|
2664
3181
|
e[2] !== i ? ({
|
|
2665
3182
|
enabled: a,
|
|
2666
3183
|
...l
|
|
2667
3184
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2668
|
-
const d = a === void 0 ? !0 : a, c =
|
|
2669
|
-
let f;
|
|
2670
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["time-series", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2671
|
-
let u;
|
|
2672
|
-
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getTimeSeries(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2673
|
-
const g = !!c && d;
|
|
3185
|
+
const d = a === void 0 ? !0 : a, c = ie(t, n), h = c == null ? void 0 : c.props.filters;
|
|
2674
3186
|
let m;
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
3187
|
+
e[5] !== t || e[6] !== n || e[7] !== h || e[8] !== s ? (m = ["time-series", n, t, s, h], e[5] = t, e[6] = n, e[7] = h, e[8] = s, e[9] = m) : m = e[9];
|
|
3188
|
+
let f;
|
|
3189
|
+
e[10] !== c || e[11] !== s ? (f = () => c == null ? void 0 : c.getTimeSeries(s), e[10] = c, e[11] = s, e[12] = f) : f = e[12];
|
|
3190
|
+
const b = !!c && d;
|
|
3191
|
+
let p;
|
|
3192
|
+
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3193
|
+
queryKey: m,
|
|
3194
|
+
queryFn: f,
|
|
3195
|
+
enabled: b,
|
|
2679
3196
|
...l
|
|
2680
|
-
}, e[13] =
|
|
3197
|
+
}, e[13] = m, e[14] = f, e[15] = b, e[16] = l, e[17] = p) : p = e[17], se(p);
|
|
2681
3198
|
}
|
|
2682
|
-
function
|
|
2683
|
-
const e =
|
|
3199
|
+
function Gr(r) {
|
|
3200
|
+
const e = R(6);
|
|
2684
3201
|
let t, n;
|
|
2685
|
-
e[0] !==
|
|
3202
|
+
e[0] !== r ? ({
|
|
2686
3203
|
children: t,
|
|
2687
3204
|
...n
|
|
2688
|
-
} =
|
|
2689
|
-
const s =
|
|
2690
|
-
let
|
|
2691
|
-
return e[3] !== t || e[4] !== s ? (
|
|
2692
|
-
}
|
|
2693
|
-
|
|
2694
|
-
|
|
3205
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3206
|
+
const s = Yn(n);
|
|
3207
|
+
let o;
|
|
3208
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3209
|
+
}
|
|
3210
|
+
const zr = "ps";
|
|
3211
|
+
function Qr(r) {
|
|
3212
|
+
const e = R(13), {
|
|
2695
3213
|
children: t,
|
|
2696
3214
|
maps: n,
|
|
2697
3215
|
lassoTools: s,
|
|
2698
|
-
measureTools:
|
|
2699
|
-
} =
|
|
3216
|
+
measureTools: o
|
|
3217
|
+
} = r;
|
|
2700
3218
|
let i;
|
|
2701
3219
|
e[0] !== s ? (i = s === void 0 ? [] : s, e[0] = s, e[1] = i) : i = e[1];
|
|
2702
3220
|
const a = i;
|
|
2703
3221
|
let l;
|
|
2704
|
-
e[2] !==
|
|
3222
|
+
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
2705
3223
|
const d = l;
|
|
2706
3224
|
let c;
|
|
2707
|
-
e[4] !== t || e[5] !== d ? (c = /* @__PURE__ */ N(
|
|
2708
|
-
let
|
|
2709
|
-
e[7] !== a || e[8] !== c ? (
|
|
2710
|
-
let
|
|
2711
|
-
return e[10] !== n || e[11] !==
|
|
3225
|
+
e[4] !== t || e[5] !== d ? (c = /* @__PURE__ */ N(an, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = c) : c = e[6];
|
|
3226
|
+
let h;
|
|
3227
|
+
e[7] !== a || e[8] !== c ? (h = /* @__PURE__ */ N(Ns, { values: a, children: c }), e[7] = a, e[8] = c, e[9] = h) : h = e[9];
|
|
3228
|
+
let m;
|
|
3229
|
+
return e[10] !== n || e[11] !== h ? (m = /* @__PURE__ */ N($s, { values: n, children: h }), e[10] = n, e[11] = h, e[12] = m) : m = e[12], m;
|
|
2712
3230
|
}
|
|
2713
|
-
function
|
|
2714
|
-
const t =
|
|
3231
|
+
function Wr(r, e) {
|
|
3232
|
+
const t = de((d) => d.layers), n = de((d) => d.setLayer), s = re(() => Pt(r.map((d) => t[d]).filter((d) => !!d)), [t, r]), o = re(() => s.map(e), [e, s]), i = Q(({
|
|
2715
3233
|
id: d,
|
|
2716
3234
|
visible: c,
|
|
2717
|
-
...
|
|
3235
|
+
...h
|
|
2718
3236
|
}) => {
|
|
2719
3237
|
n(d, {
|
|
2720
3238
|
props: {
|
|
2721
3239
|
visible: c
|
|
2722
3240
|
},
|
|
2723
|
-
legend:
|
|
3241
|
+
legend: h
|
|
2724
3242
|
});
|
|
2725
|
-
}, [n]), a =
|
|
3243
|
+
}, [n]), a = Q(({
|
|
2726
3244
|
id: d,
|
|
2727
3245
|
collapsed: c
|
|
2728
3246
|
}) => {
|
|
@@ -2731,7 +3249,7 @@ function Mo(o, e) {
|
|
|
2731
3249
|
collapsed: c
|
|
2732
3250
|
}
|
|
2733
3251
|
});
|
|
2734
|
-
}, [n]), l =
|
|
3252
|
+
}, [n]), l = Q(({
|
|
2735
3253
|
id: d,
|
|
2736
3254
|
opacity: c
|
|
2737
3255
|
}) => {
|
|
@@ -2742,72 +3260,72 @@ function Mo(o, e) {
|
|
|
2742
3260
|
});
|
|
2743
3261
|
}, [n]);
|
|
2744
3262
|
return {
|
|
2745
|
-
legend:
|
|
3263
|
+
legend: o,
|
|
2746
3264
|
onChangeVisibility: i,
|
|
2747
3265
|
onChangeOpacity: l,
|
|
2748
3266
|
onChangeRowCollapse: a
|
|
2749
3267
|
};
|
|
2750
3268
|
}
|
|
2751
|
-
function
|
|
2752
|
-
mapId:
|
|
3269
|
+
function Zr({
|
|
3270
|
+
mapId: r
|
|
2753
3271
|
}) {
|
|
2754
|
-
const [e, t] =
|
|
2755
|
-
var
|
|
2756
|
-
return (
|
|
2757
|
-
}), i =
|
|
2758
|
-
var
|
|
2759
|
-
return (
|
|
3272
|
+
const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((p) => {
|
|
3273
|
+
var L;
|
|
3274
|
+
return (L = p.maps[r]) == null ? void 0 : L.basemap;
|
|
3275
|
+
}), i = x((p) => p.getDeckInstance), a = x((p) => p.getOverlayInstance), l = x((p) => p.areLayersLoaded[r]), c = x((p) => {
|
|
3276
|
+
var L;
|
|
3277
|
+
return (L = p.maps[r]) == null ? void 0 : L.isLoaded;
|
|
2760
3278
|
}) && l, {
|
|
2761
|
-
type:
|
|
2762
|
-
} =
|
|
2763
|
-
const
|
|
3279
|
+
type: h
|
|
3280
|
+
} = me[o], m = h === te.googleMaps, f = Q(async () => {
|
|
3281
|
+
const p = i(r), L = a(r);
|
|
2764
3282
|
try {
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2767
|
-
const
|
|
2768
|
-
if (
|
|
2769
|
-
const
|
|
2770
|
-
if (
|
|
3283
|
+
const y = document.createElement("canvas");
|
|
3284
|
+
y.width = p.width ?? 0, y.height = p.height ?? 0;
|
|
3285
|
+
const g = y.getContext("2d");
|
|
3286
|
+
if (m) {
|
|
3287
|
+
const E = L;
|
|
3288
|
+
if (E.getRenderingType() !== "RASTER")
|
|
2771
3289
|
throw new Error("Only raster type is supported for Google Maps");
|
|
2772
|
-
const
|
|
3290
|
+
const _ = await ps(E.getDiv(), {
|
|
2773
3291
|
useCORS: !0
|
|
2774
3292
|
});
|
|
2775
|
-
|
|
3293
|
+
g == null || g.drawImage(_, 0, 0, p.width, p.height);
|
|
2776
3294
|
} else {
|
|
2777
|
-
const
|
|
2778
|
-
|
|
3295
|
+
const E = L;
|
|
3296
|
+
E.redraw(), g == null || g.drawImage(E.getMap().getCanvas(), 0, 0, p.width, p.height);
|
|
2779
3297
|
}
|
|
2780
|
-
|
|
2781
|
-
const
|
|
2782
|
-
t(
|
|
2783
|
-
} catch (
|
|
2784
|
-
console.error(
|
|
3298
|
+
p == null || p.redraw("screenshot"), g == null || g.drawImage(p.getCanvas(), 0, 0, p.width, p.height);
|
|
3299
|
+
const S = y.toDataURL();
|
|
3300
|
+
t(S);
|
|
3301
|
+
} catch (y) {
|
|
3302
|
+
console.error(y);
|
|
2785
3303
|
} finally {
|
|
2786
3304
|
s(!1);
|
|
2787
3305
|
}
|
|
2788
|
-
}, [i,
|
|
3306
|
+
}, [i, m, r, a]);
|
|
2789
3307
|
return {
|
|
2790
|
-
takeScreenshot:
|
|
2791
|
-
s(!0), c &&
|
|
2792
|
-
}, [
|
|
3308
|
+
takeScreenshot: Q(() => {
|
|
3309
|
+
s(!0), c && f();
|
|
3310
|
+
}, [f, c]),
|
|
2793
3311
|
isLoading: n,
|
|
2794
3312
|
screenshot: e
|
|
2795
3313
|
};
|
|
2796
3314
|
}
|
|
2797
|
-
function
|
|
2798
|
-
const e =
|
|
3315
|
+
function Kr(r) {
|
|
3316
|
+
const e = R(8), {
|
|
2799
3317
|
mapId: t
|
|
2800
|
-
} =
|
|
3318
|
+
} = r;
|
|
2801
3319
|
let n;
|
|
2802
3320
|
e[0] !== t ? (n = {
|
|
2803
3321
|
mapId: t
|
|
2804
3322
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2805
|
-
const s =
|
|
2806
|
-
let
|
|
2807
|
-
e[2] !== t ? (
|
|
3323
|
+
const s = Xn(n);
|
|
3324
|
+
let o;
|
|
3325
|
+
e[2] !== t ? (o = {
|
|
2808
3326
|
mapId: t
|
|
2809
|
-
}, e[2] = t, e[3] =
|
|
2810
|
-
const i =
|
|
3327
|
+
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3328
|
+
const i = Jn(o), a = i ?? s;
|
|
2811
3329
|
let l;
|
|
2812
3330
|
return e[4] !== i || e[5] !== a || e[6] !== s ? (l = {
|
|
2813
3331
|
spatialFilter: a,
|
|
@@ -2815,251 +3333,383 @@ function _o(o) {
|
|
|
2815
3333
|
viewportSpatialFilter: s
|
|
2816
3334
|
}, e[4] = i, e[5] = a, e[6] = s, e[7] = l) : l = e[7], l;
|
|
2817
3335
|
}
|
|
2818
|
-
function
|
|
2819
|
-
const e =
|
|
3336
|
+
function Xn(r) {
|
|
3337
|
+
const e = R(4), {
|
|
2820
3338
|
mapId: t
|
|
2821
|
-
} =
|
|
3339
|
+
} = r;
|
|
2822
3340
|
let n;
|
|
2823
3341
|
e[0] !== t ? (n = (i) => i.viewports[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2824
|
-
const s =
|
|
2825
|
-
let
|
|
3342
|
+
const s = x(n);
|
|
3343
|
+
let o;
|
|
2826
3344
|
e: {
|
|
2827
3345
|
if (!s) {
|
|
2828
|
-
|
|
3346
|
+
o = void 0;
|
|
2829
3347
|
break e;
|
|
2830
3348
|
}
|
|
2831
3349
|
let i;
|
|
2832
|
-
e[2] !== s ? (i =
|
|
3350
|
+
e[2] !== s ? (i = fs(s.getBounds()), e[2] = s, e[3] = i) : i = e[3], o = i;
|
|
2833
3351
|
}
|
|
2834
|
-
return
|
|
3352
|
+
return o;
|
|
2835
3353
|
}
|
|
2836
|
-
function
|
|
2837
|
-
const e =
|
|
3354
|
+
function Jn(r) {
|
|
3355
|
+
const e = R(5), {
|
|
2838
3356
|
mapId: t
|
|
2839
|
-
} =
|
|
3357
|
+
} = r;
|
|
2840
3358
|
let n;
|
|
2841
3359
|
e[0] !== t ? (n = (i) => {
|
|
2842
3360
|
var a;
|
|
2843
3361
|
return (a = i.data[t]) == null ? void 0 : a.values;
|
|
2844
3362
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2845
|
-
const s =
|
|
2846
|
-
let
|
|
3363
|
+
const s = G(n);
|
|
3364
|
+
let o;
|
|
2847
3365
|
e: {
|
|
2848
3366
|
let i;
|
|
2849
3367
|
if (e[2] !== s) {
|
|
2850
|
-
const a =
|
|
3368
|
+
const a = St({
|
|
2851
3369
|
values: s
|
|
2852
|
-
}).filter(
|
|
3370
|
+
}).filter(tr);
|
|
2853
3371
|
if (!(a != null && a.length)) {
|
|
2854
|
-
|
|
3372
|
+
o = void 0;
|
|
2855
3373
|
break e;
|
|
2856
3374
|
}
|
|
2857
|
-
i =
|
|
3375
|
+
i = ms(a.map(er)), e[2] = s, e[3] = i, e[4] = o;
|
|
2858
3376
|
} else
|
|
2859
|
-
i = e[3],
|
|
2860
|
-
|
|
3377
|
+
i = e[3], o = e[4];
|
|
3378
|
+
o = i.geometry;
|
|
2861
3379
|
}
|
|
2862
|
-
return
|
|
3380
|
+
return o;
|
|
2863
3381
|
}
|
|
2864
|
-
function
|
|
2865
|
-
return
|
|
3382
|
+
function er(r) {
|
|
3383
|
+
return r.geometry.coordinates;
|
|
2866
3384
|
}
|
|
2867
|
-
function
|
|
2868
|
-
return
|
|
3385
|
+
function tr(r) {
|
|
3386
|
+
return r.properties.visible;
|
|
2869
3387
|
}
|
|
2870
|
-
const
|
|
3388
|
+
const ae = {
|
|
2871
3389
|
currency: "CURRENCY",
|
|
2872
3390
|
default: "DEFAULT",
|
|
2873
3391
|
number: "NUMBER"
|
|
2874
|
-
},
|
|
2875
|
-
[
|
|
2876
|
-
type:
|
|
2877
|
-
format: (
|
|
3392
|
+
}, ct = {
|
|
3393
|
+
[ae.currency]: {
|
|
3394
|
+
type: ae.currency,
|
|
3395
|
+
format: (r, e) => ss(r, e)
|
|
2878
3396
|
},
|
|
2879
|
-
[
|
|
2880
|
-
type:
|
|
2881
|
-
format: (
|
|
3397
|
+
[ae.number]: {
|
|
3398
|
+
type: ae.number,
|
|
3399
|
+
format: (r, e) => yt(r, e)
|
|
2882
3400
|
},
|
|
2883
|
-
[
|
|
2884
|
-
type:
|
|
2885
|
-
format: (
|
|
3401
|
+
[ae.default]: {
|
|
3402
|
+
type: ae.default,
|
|
3403
|
+
format: (r) => r.toLocaleString()
|
|
2886
3404
|
}
|
|
2887
3405
|
};
|
|
2888
|
-
function
|
|
2889
|
-
properties:
|
|
3406
|
+
function Yr({
|
|
3407
|
+
properties: r,
|
|
2890
3408
|
formatters: e = {},
|
|
2891
|
-
includeColumns: t = Object.keys(
|
|
3409
|
+
includeColumns: t = Object.keys(r),
|
|
2892
3410
|
locale: n = "en-US",
|
|
2893
3411
|
showColumnName: s = !0,
|
|
2894
|
-
title:
|
|
2895
|
-
getColumnName: i =
|
|
2896
|
-
getFieldHtml: a =
|
|
2897
|
-
getTitle: l =
|
|
2898
|
-
getValue: d =
|
|
3412
|
+
title: o,
|
|
3413
|
+
getColumnName: i = ir,
|
|
3414
|
+
getFieldHtml: a = nr,
|
|
3415
|
+
getTitle: l = sr,
|
|
3416
|
+
getValue: d = rr
|
|
2899
3417
|
}) {
|
|
2900
|
-
const c =
|
|
2901
|
-
const
|
|
2902
|
-
return
|
|
3418
|
+
const c = o ? l(o) : "", m = t.reduce((f, b) => {
|
|
3419
|
+
const p = e[b], L = r[b], y = d(L, n, p), g = s ? i(b) : "";
|
|
3420
|
+
return f + a(g, y);
|
|
2903
3421
|
}, "");
|
|
2904
|
-
return c +
|
|
3422
|
+
return c + m;
|
|
2905
3423
|
}
|
|
2906
|
-
function
|
|
2907
|
-
return `<h3 style="margin: 0"><strong>${
|
|
3424
|
+
function sr(r) {
|
|
3425
|
+
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
2908
3426
|
}
|
|
2909
|
-
function
|
|
2910
|
-
return `${
|
|
3427
|
+
function nr(r, e) {
|
|
3428
|
+
return `${r}${e}</br>`;
|
|
2911
3429
|
}
|
|
2912
|
-
function
|
|
3430
|
+
function rr(r, e, t) {
|
|
2913
3431
|
try {
|
|
2914
|
-
return
|
|
3432
|
+
return or(t)(r, e);
|
|
2915
3433
|
} catch {
|
|
2916
|
-
return
|
|
3434
|
+
return r;
|
|
2917
3435
|
}
|
|
2918
3436
|
}
|
|
2919
|
-
function
|
|
2920
|
-
return typeof
|
|
3437
|
+
function or(r) {
|
|
3438
|
+
return typeof r == "function" ? r : ((r && ct[r]) ?? ct[ae.default]).format;
|
|
2921
3439
|
}
|
|
2922
|
-
function
|
|
2923
|
-
return `<strong>${
|
|
3440
|
+
function ir(r) {
|
|
3441
|
+
return `<strong>${r}</strong>: `;
|
|
2924
3442
|
}
|
|
2925
|
-
function
|
|
2926
|
-
var e, t, n, s,
|
|
3443
|
+
function Xr(r) {
|
|
3444
|
+
var e, t, n, s, o, i, a, l;
|
|
2927
3445
|
return {
|
|
2928
|
-
collapsed: (e =
|
|
2929
|
-
collapsible: (t =
|
|
2930
|
-
helperText: (n =
|
|
2931
|
-
id:
|
|
2932
|
-
legend: (s =
|
|
2933
|
-
maxZoom: (
|
|
2934
|
-
minZoom: (i =
|
|
2935
|
-
opacity:
|
|
2936
|
-
showOpacityControl: (a =
|
|
2937
|
-
switchable: (l =
|
|
2938
|
-
title:
|
|
2939
|
-
visible:
|
|
3446
|
+
collapsed: (e = r.legend) == null ? void 0 : e.collapsed,
|
|
3447
|
+
collapsible: (t = r.legend) == null ? void 0 : t.collapsible,
|
|
3448
|
+
helperText: (n = r.legend) == null ? void 0 : n.helperText,
|
|
3449
|
+
id: r.props.id,
|
|
3450
|
+
legend: (s = r.legend) == null ? void 0 : s.variables,
|
|
3451
|
+
maxZoom: (o = r.legend) == null ? void 0 : o.maxZoom,
|
|
3452
|
+
minZoom: (i = r.legend) == null ? void 0 : i.minZoom,
|
|
3453
|
+
opacity: r.props.opacity ?? 1,
|
|
3454
|
+
showOpacityControl: (a = r.legend) == null ? void 0 : a.opacityControl,
|
|
3455
|
+
switchable: (l = r.legend) == null ? void 0 : l.switchable,
|
|
3456
|
+
title: r.name,
|
|
3457
|
+
visible: r.props.visible ?? !0
|
|
2940
3458
|
};
|
|
2941
3459
|
}
|
|
2942
|
-
function
|
|
2943
|
-
const e =
|
|
3460
|
+
function Jr(r) {
|
|
3461
|
+
const e = R(18), {
|
|
2944
3462
|
children: t,
|
|
2945
3463
|
mapId: n
|
|
2946
|
-
} =
|
|
3464
|
+
} = r;
|
|
2947
3465
|
let s;
|
|
2948
|
-
e[0] !== n ? (s = (
|
|
3466
|
+
e[0] !== n ? (s = (g) => g.viewStates[n], e[0] = n, e[1] = s) : s = e[1];
|
|
2949
3467
|
const {
|
|
2950
|
-
zoom:
|
|
3468
|
+
zoom: o,
|
|
2951
3469
|
maxZoom: i,
|
|
2952
3470
|
minZoom: a
|
|
2953
|
-
} =
|
|
3471
|
+
} = x(s);
|
|
2954
3472
|
let l;
|
|
2955
|
-
e[2] !== n ? (l = (
|
|
2956
|
-
const d =
|
|
2957
|
-
let
|
|
2958
|
-
e[4] !== n || e[5] !== c ? (
|
|
2959
|
-
const
|
|
2960
|
-
let
|
|
2961
|
-
e[7] !==
|
|
2962
|
-
const
|
|
2963
|
-
let
|
|
2964
|
-
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !==
|
|
2965
|
-
zoom:
|
|
3473
|
+
e[2] !== n ? (l = (g) => g.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
|
|
3474
|
+
const d = x(l), c = x(lr), h = x(ar), m = !d;
|
|
3475
|
+
let f;
|
|
3476
|
+
e[4] !== n || e[5] !== c ? (f = (g) => c(n, g), e[4] = n, e[5] = c, e[6] = f) : f = e[6];
|
|
3477
|
+
const b = f;
|
|
3478
|
+
let p;
|
|
3479
|
+
e[7] !== h || e[8] !== n ? (p = (g) => h(n, g), e[7] = h, e[8] = n, e[9] = p) : p = e[9];
|
|
3480
|
+
const L = p;
|
|
3481
|
+
let y;
|
|
3482
|
+
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== m || e[14] !== b || e[15] !== L || e[16] !== o ? (y = t({
|
|
3483
|
+
zoom: o,
|
|
2966
3484
|
maxZoom: i,
|
|
2967
3485
|
minZoom: a,
|
|
2968
|
-
isLoading:
|
|
2969
|
-
setZoom:
|
|
2970
|
-
flyTo:
|
|
2971
|
-
}), e[10] = t, e[11] = i, e[12] = a, e[13] =
|
|
3486
|
+
isLoading: m,
|
|
3487
|
+
setZoom: b,
|
|
3488
|
+
flyTo: L
|
|
3489
|
+
}), e[10] = t, e[11] = i, e[12] = a, e[13] = m, e[14] = b, e[15] = L, e[16] = o, e[17] = y) : y = e[17], y;
|
|
3490
|
+
}
|
|
3491
|
+
function ar(r) {
|
|
3492
|
+
return r.flyTo;
|
|
3493
|
+
}
|
|
3494
|
+
function lr(r) {
|
|
3495
|
+
return r.setZoom;
|
|
3496
|
+
}
|
|
3497
|
+
async function cr({
|
|
3498
|
+
baseUrl: r = ze,
|
|
3499
|
+
connection: e,
|
|
3500
|
+
accessToken: t,
|
|
3501
|
+
query: n,
|
|
3502
|
+
attribute: s,
|
|
3503
|
+
fetcherOptions: {
|
|
3504
|
+
signal: o,
|
|
3505
|
+
...i
|
|
3506
|
+
} = {},
|
|
3507
|
+
queryParameters: a,
|
|
3508
|
+
apiVersion: l = Qe
|
|
3509
|
+
}) {
|
|
3510
|
+
const d = `${r}/${l}/stats/${e}/${s}?q=${n}`;
|
|
3511
|
+
return Lt({
|
|
3512
|
+
accessToken: t,
|
|
3513
|
+
signal: o,
|
|
3514
|
+
url: d,
|
|
3515
|
+
method: ce.get,
|
|
3516
|
+
params: {
|
|
3517
|
+
...a
|
|
3518
|
+
},
|
|
3519
|
+
...i
|
|
3520
|
+
});
|
|
2972
3521
|
}
|
|
2973
|
-
function
|
|
2974
|
-
|
|
3522
|
+
async function ur({
|
|
3523
|
+
baseUrl: r = ze,
|
|
3524
|
+
connection: e,
|
|
3525
|
+
accessToken: t,
|
|
3526
|
+
table: n,
|
|
3527
|
+
attribute: s,
|
|
3528
|
+
fetcherOptions: {
|
|
3529
|
+
signal: o,
|
|
3530
|
+
...i
|
|
3531
|
+
} = {},
|
|
3532
|
+
apiVersion: a = Qe
|
|
3533
|
+
}) {
|
|
3534
|
+
const l = `${r}/${a}/stats/${e}/${n}/${s}`;
|
|
3535
|
+
return Lt({
|
|
3536
|
+
accessToken: t,
|
|
3537
|
+
signal: o,
|
|
3538
|
+
url: l,
|
|
3539
|
+
method: ce.get,
|
|
3540
|
+
...i
|
|
3541
|
+
});
|
|
2975
3542
|
}
|
|
2976
|
-
function
|
|
2977
|
-
|
|
3543
|
+
function eo(r) {
|
|
3544
|
+
const e = R(19), {
|
|
3545
|
+
source: t,
|
|
3546
|
+
attribute: n,
|
|
3547
|
+
accessToken: s,
|
|
3548
|
+
fetcherOptions: o,
|
|
3549
|
+
useQueryProps: i
|
|
3550
|
+
} = r;
|
|
3551
|
+
let a;
|
|
3552
|
+
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3553
|
+
let l, d;
|
|
3554
|
+
e[2] !== a ? ({
|
|
3555
|
+
enabled: l,
|
|
3556
|
+
...d
|
|
3557
|
+
} = a, e[2] = a, e[3] = l, e[4] = d) : (l = e[3], d = e[4]);
|
|
3558
|
+
const c = l === void 0 ? !0 : l;
|
|
3559
|
+
let h;
|
|
3560
|
+
e[5] !== n || e[6] !== t ? (h = [t, n], e[5] = n, e[6] = t, e[7] = h) : h = e[7];
|
|
3561
|
+
let m;
|
|
3562
|
+
e[8] !== s || e[9] !== n || e[10] !== o || e[11] !== t ? (m = () => fr(t, n, s, o), e[8] = s, e[9] = n, e[10] = o, e[11] = t, e[12] = m) : m = e[12];
|
|
3563
|
+
let f;
|
|
3564
|
+
return e[13] !== c || e[14] !== t || e[15] !== h || e[16] !== m || e[17] !== d ? (f = {
|
|
3565
|
+
queryKey: h,
|
|
3566
|
+
queryFn: m,
|
|
3567
|
+
select(b) {
|
|
3568
|
+
return {
|
|
3569
|
+
...b,
|
|
3570
|
+
type: b.type.toLowerCase()
|
|
3571
|
+
};
|
|
3572
|
+
},
|
|
3573
|
+
enabled: !!t && c,
|
|
3574
|
+
...d
|
|
3575
|
+
}, e[13] = c, e[14] = t, e[15] = h, e[16] = m, e[17] = d, e[18] = f) : f = e[18], se(f);
|
|
3576
|
+
}
|
|
3577
|
+
function fr(r, e, t, n) {
|
|
3578
|
+
if (r.type.startsWith("query"))
|
|
3579
|
+
return cr({
|
|
3580
|
+
connection: r.connectionName,
|
|
3581
|
+
baseUrl: r.apiBaseUrl,
|
|
3582
|
+
apiVersion: r.apiVersion,
|
|
3583
|
+
accessToken: t,
|
|
3584
|
+
query: r.data,
|
|
3585
|
+
queryParameters: r.queryParameters,
|
|
3586
|
+
attribute: e,
|
|
3587
|
+
fetcherOptions: n
|
|
3588
|
+
});
|
|
3589
|
+
if (r.type.startsWith("table"))
|
|
3590
|
+
return ur({
|
|
3591
|
+
connection: r.connectionName,
|
|
3592
|
+
baseUrl: r.apiBaseUrl,
|
|
3593
|
+
apiVersion: r.apiVersion,
|
|
3594
|
+
accessToken: t,
|
|
3595
|
+
table: r.data,
|
|
3596
|
+
attribute: e,
|
|
3597
|
+
fetcherOptions: n
|
|
3598
|
+
});
|
|
3599
|
+
if (r.type.startsWith("tileset"))
|
|
3600
|
+
return dr({
|
|
3601
|
+
source: r,
|
|
3602
|
+
accessToken: t,
|
|
3603
|
+
target: r.data,
|
|
3604
|
+
attribute: e
|
|
3605
|
+
});
|
|
3606
|
+
throw new Error(`Unsupported source type: ${r.type}`);
|
|
3607
|
+
}
|
|
3608
|
+
async function dr({
|
|
3609
|
+
source: r,
|
|
3610
|
+
accessToken: e,
|
|
3611
|
+
target: t,
|
|
3612
|
+
attribute: n
|
|
3613
|
+
}) {
|
|
3614
|
+
var a, l, d;
|
|
3615
|
+
const s = await ds({
|
|
3616
|
+
connectionName: r.connectionName,
|
|
3617
|
+
apiBaseUrl: r.apiBaseUrl,
|
|
3618
|
+
accessToken: e,
|
|
3619
|
+
clientId: r.clientId,
|
|
3620
|
+
tableName: t
|
|
3621
|
+
});
|
|
3622
|
+
if (!((d = (l = (a = s == null ? void 0 : s.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && d.attributes))
|
|
3623
|
+
throw new Error(`${n} not found in tileset attributes`);
|
|
3624
|
+
const i = s.tilestats.layers[0].attributes.find((c) => c.attribute === n);
|
|
3625
|
+
if (!i)
|
|
3626
|
+
throw new Error(`${n} not found in tileset attributes`);
|
|
3627
|
+
return i;
|
|
2978
3628
|
}
|
|
2979
3629
|
export {
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
O as useMapStore,
|
|
3630
|
+
nt as CONVERSIONS_UNITS,
|
|
3631
|
+
De as CartoBasemapURL,
|
|
3632
|
+
J as CartoBasemaps,
|
|
3633
|
+
qr as CategoriesModel,
|
|
3634
|
+
Os as CustomCompositeEditMode,
|
|
3635
|
+
bt as CustomEditableGeojsonLayer,
|
|
3636
|
+
zs as CustomMeasureAreaMode,
|
|
3637
|
+
Qs as CustomMeasureBufferMode,
|
|
3638
|
+
Et as CustomMeasureDistanceMode,
|
|
3639
|
+
Ye as DEFAULT_LASSO_TOOLS_COLORS,
|
|
3640
|
+
ks as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
3641
|
+
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
3642
|
+
Re as DEFAULT_LASSO_TOOLS_PROPS,
|
|
3643
|
+
_e as DEFAULT_MASK_LAYER_PROPS,
|
|
3644
|
+
Ys as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
3645
|
+
Xs as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
3646
|
+
$e as DEFAULT_MEASURE_COLORS,
|
|
3647
|
+
Ms as DeckGLComponent,
|
|
3648
|
+
Y as EditableEditType,
|
|
3649
|
+
jr as FeaturesModel,
|
|
3650
|
+
Br as FormulaModel,
|
|
3651
|
+
Fe as GmapsBasemap,
|
|
3652
|
+
Vr as HistogramModel,
|
|
3653
|
+
pe as INTL_UNITS,
|
|
3654
|
+
sn as LassoTools,
|
|
3655
|
+
Ns as LassoToolsProvider,
|
|
3656
|
+
me as MAPS_BASEMAP,
|
|
3657
|
+
le as MAP_LASSO_TOOLS_LAYER_ID,
|
|
3658
|
+
Me as MAP_MASK_LAYER_ID,
|
|
3659
|
+
ne as MAP_MEASURE_LAYER_ID,
|
|
3660
|
+
Ks as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
3661
|
+
rt as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
3662
|
+
K as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
3663
|
+
$r as MapComponent,
|
|
3664
|
+
Be as MapMeasurementUnitAuto,
|
|
3665
|
+
Zs as MapMeasurementUnitTurf,
|
|
3666
|
+
$s as MapProvider,
|
|
3667
|
+
Qr as MapsProvider,
|
|
3668
|
+
te as MapsTypes,
|
|
3669
|
+
bn as MeasurementTools,
|
|
3670
|
+
an as MeasurementToolsProvider,
|
|
3671
|
+
Ir as RangeModel,
|
|
3672
|
+
Nr as ScatterModel,
|
|
3673
|
+
Hr as TableModel,
|
|
3674
|
+
Gr as TimeSeriesModel,
|
|
3675
|
+
Jr as ZoomControls,
|
|
3676
|
+
zr as clientID,
|
|
3677
|
+
et as convertMetersTo,
|
|
3678
|
+
Is as createLassoToolsStore,
|
|
3679
|
+
xs as createMapStore,
|
|
3680
|
+
on as createMeasurementToolsStore,
|
|
3681
|
+
ae as formatterTypes,
|
|
3682
|
+
ys as getCursorDefault,
|
|
3683
|
+
xr as getDeckController,
|
|
3684
|
+
Bs as getLassoToolsLayer,
|
|
3685
|
+
nn as getMeasurementToolsLayer,
|
|
3686
|
+
Pe as getTextLayerFormattedDistance,
|
|
3687
|
+
hs as getTooltipDefault,
|
|
3688
|
+
Xr as mappingLegendMeridian,
|
|
3689
|
+
Yr as objectToHtml,
|
|
3690
|
+
Pt as sortLayers,
|
|
3691
|
+
Cs as transitionFlyConfig,
|
|
3692
|
+
Hn as useCategories,
|
|
3693
|
+
Tt as useEventManager,
|
|
3694
|
+
Gn as useFeatures,
|
|
3695
|
+
zn as useFormula,
|
|
3696
|
+
Qn as useHistogram,
|
|
3697
|
+
Jn as useLassoToolsSpatialFilter,
|
|
3698
|
+
G as useLassoToolsState,
|
|
3699
|
+
de as useLayerStore,
|
|
3700
|
+
vn as useLayers,
|
|
3701
|
+
Wr as useLegend,
|
|
3702
|
+
Zr as useMapScreenshot,
|
|
3703
|
+
x as useMapStore,
|
|
3055
3704
|
I as useMeasurementToolsState,
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3705
|
+
Wn as useRange,
|
|
3706
|
+
Zn as useScatter,
|
|
3707
|
+
Vn as useSourceStore,
|
|
3708
|
+
Kr as useSpatialFilter,
|
|
3709
|
+
eo as useStats,
|
|
3710
|
+
Kn as useTable,
|
|
3711
|
+
Yn as useTimeSeries,
|
|
3712
|
+
Xn as useViewportSpatialFilter,
|
|
3713
|
+
ie as useWidgetModel
|
|
3064
3714
|
};
|
|
3065
3715
|
//# sourceMappingURL=index.js.map
|