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