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