@carto/ps-react-maps 3.0.0-canary.3 → 3.0.0-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1582 -1914
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/editable/lasso-tools/const.d.ts +10 -12
- package/dist/types/editable/lasso-tools/provider/types.d.ts +1 -1
- package/dist/types/editable/lasso-tools/types.d.ts +12 -8
- package/package.json +24 -25
package/dist/index.js
CHANGED
|
@@ -1,208 +1,209 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { c as
|
|
6
|
-
import { useState as
|
|
7
|
-
import { DeckGL as
|
|
8
|
-
import { Map as
|
|
9
|
-
import { Map as
|
|
10
|
-
import { CompositeMode as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { useShallow as
|
|
16
|
-
import {
|
|
17
|
-
import { formatNumber as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import { useQuery as
|
|
22
|
-
import
|
|
23
|
-
|
|
1
|
+
var gt = Object.defineProperty;
|
|
2
|
+
var yt = (o, e, t) => e in o ? gt(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var ne = (o, e, t) => yt(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as H, jsxs as ht } from "react/jsx-runtime";
|
|
5
|
+
import { c as C } from "react/compiler-runtime";
|
|
6
|
+
import { useState as fe, useEffect as Y, useImperativeHandle as St, createContext as qe, useContext as Ue, useMemo as de, useCallback as $, useRef as Ee } from "react";
|
|
7
|
+
import { DeckGL as vt } from "@deck.gl/react";
|
|
8
|
+
import { Map as bt, MapProvider as Tt, useMap as Mt } from "react-map-gl/maplibre";
|
|
9
|
+
import { Map as Lt, APIProvider as _t, limitTiltRange as Pt, useMap as Et } from "@vis.gl/react-google-maps";
|
|
10
|
+
import { CompositeMode as kt, TranslateMode as Ct, ModifyMode as Ft, DrawPolygonByDraggingMode as wt, DrawCircleFromCenterMode as Xe, DrawRectangleMode as Ot, DrawPolygonMode as At, EditableGeoJsonLayer as Je, MeasureAreaMode as Rt, getPickedEditHandle as Dt, MeasureDistanceMode as xt, ViewMode as qt } from "@deck.gl-community/editable-layers";
|
|
11
|
+
import { DataFilterExtension as Ut, MaskExtension as $t } from "@deck.gl/extensions";
|
|
12
|
+
import { create as et, createStore as $e, useStore as Ve } from "zustand";
|
|
13
|
+
import { FlyToInterpolator as Vt, WebMercatorViewport as jt } from "@deck.gl/core";
|
|
14
|
+
import { GeoJsonLayer as Nt } from "@deck.gl/layers";
|
|
15
|
+
import { useShallow as tt } from "zustand/shallow";
|
|
16
|
+
import { area as Ne, centroid as It, lineIntersect as Bt } from "@turf/turf";
|
|
17
|
+
import { formatNumber as st, formatCurrency as Ht } from "@carto/ps-utils";
|
|
18
|
+
import Qt from "convert-units";
|
|
19
|
+
import Kt from "convert-units/definitions/length";
|
|
20
|
+
import { WidgetRasterSource as Gt, WidgetTilesetSource as Zt, TileFormat as zt, WidgetTableSource as Wt, WidgetQuerySource as Yt, createViewportSpatialFilter as Xt } from "@carto/api-client";
|
|
21
|
+
import { useQuery as me } from "@tanstack/react-query";
|
|
22
|
+
import Jt from "html2canvas";
|
|
23
|
+
import { multiPolygon as es } from "@turf/helpers";
|
|
24
|
+
const we = {
|
|
24
25
|
roadmap: "roadmap",
|
|
25
26
|
satellite: "satellite",
|
|
26
27
|
hybrid: "hybrid"
|
|
27
|
-
},
|
|
28
|
+
}, ee = {
|
|
28
29
|
darkMatter: "darkMatter",
|
|
29
30
|
positron: "positron",
|
|
30
31
|
voyager: "voyager"
|
|
31
|
-
},
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
},
|
|
32
|
+
}, Oe = {
|
|
33
|
+
[ee.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
34
|
+
[ee.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
35
|
+
[ee.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
36
|
+
}, ue = {
|
|
36
37
|
maplibre: "maplibre",
|
|
37
38
|
googleMaps: "google-maps"
|
|
38
|
-
},
|
|
39
|
-
[
|
|
40
|
-
url:
|
|
41
|
-
type:
|
|
39
|
+
}, nt = {
|
|
40
|
+
[ee.positron]: {
|
|
41
|
+
url: Oe[ee.positron],
|
|
42
|
+
type: ue.maplibre
|
|
42
43
|
},
|
|
43
|
-
[
|
|
44
|
-
url:
|
|
45
|
-
type:
|
|
44
|
+
[ee.voyager]: {
|
|
45
|
+
url: Oe[ee.voyager],
|
|
46
|
+
type: ue.maplibre
|
|
46
47
|
},
|
|
47
|
-
[
|
|
48
|
-
url:
|
|
49
|
-
type:
|
|
48
|
+
[ee.darkMatter]: {
|
|
49
|
+
url: Oe[ee.darkMatter],
|
|
50
|
+
type: ue.maplibre,
|
|
50
51
|
dark: !0
|
|
51
52
|
},
|
|
52
|
-
[
|
|
53
|
-
type:
|
|
53
|
+
[we.roadmap]: {
|
|
54
|
+
type: ue.googleMaps
|
|
54
55
|
},
|
|
55
|
-
[
|
|
56
|
-
type:
|
|
56
|
+
[we.satellite]: {
|
|
57
|
+
type: ue.googleMaps
|
|
57
58
|
},
|
|
58
|
-
[
|
|
59
|
-
type:
|
|
59
|
+
[we.hybrid]: {
|
|
60
|
+
type: ue.googleMaps
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
|
-
function
|
|
63
|
-
isDragging:
|
|
63
|
+
function ts({
|
|
64
|
+
isDragging: o,
|
|
64
65
|
isHovering: e
|
|
65
66
|
}) {
|
|
66
|
-
return
|
|
67
|
+
return o ? "grabbing" : e ? "pointer" : "grab";
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
70
|
-
html: `<div class='map-tooltip__content'>${
|
|
69
|
+
function ss(o) {
|
|
70
|
+
return o.html ? {
|
|
71
|
+
html: `<div class='map-tooltip__content'>${o.html}</div>`,
|
|
71
72
|
style: {
|
|
72
73
|
padding: "0",
|
|
73
74
|
background: "none"
|
|
74
75
|
}
|
|
75
76
|
} : null;
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
const e =
|
|
80
|
-
let t, n, r, i,
|
|
81
|
-
e[0] !==
|
|
78
|
+
function ns(o) {
|
|
79
|
+
var ye, L, je;
|
|
80
|
+
const e = C(66);
|
|
81
|
+
let t, n, s, r, i, a, l, m, c, p, d, u, g, f;
|
|
82
|
+
e[0] !== o ? ({
|
|
82
83
|
instanceRef: t,
|
|
83
|
-
overlayRef:
|
|
84
|
+
overlayRef: r,
|
|
84
85
|
basemap: l,
|
|
85
|
-
controller:
|
|
86
|
+
controller: m,
|
|
86
87
|
id: c,
|
|
87
|
-
layers:
|
|
88
|
-
parameters:
|
|
88
|
+
layers: p,
|
|
89
|
+
parameters: i,
|
|
89
90
|
gmapsProps: d,
|
|
90
91
|
getCursor: u,
|
|
91
|
-
getTooltip:
|
|
92
|
+
getTooltip: g,
|
|
92
93
|
onLoad: n,
|
|
93
|
-
onResize:
|
|
94
|
-
onViewStateChange:
|
|
94
|
+
onResize: s,
|
|
95
|
+
onViewStateChange: f,
|
|
95
96
|
...a
|
|
96
|
-
} =
|
|
97
|
-
const
|
|
98
|
-
let
|
|
99
|
-
e[15] !==
|
|
100
|
-
const
|
|
101
|
-
let
|
|
102
|
-
e[17] !== d ? (
|
|
97
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = s, e[4] = r, e[5] = i, e[6] = a, e[7] = l, e[8] = m, e[9] = c, e[10] = p, e[11] = d, e[12] = u, e[13] = g, e[14] = f) : (t = e[1], n = e[2], s = e[3], r = e[4], i = e[5], a = e[6], l = e[7], m = e[8], c = e[9], p = e[10], d = e[11], u = e[12], g = e[13], f = e[14]);
|
|
98
|
+
const M = l === void 0 ? ee.positron : l, h = m === void 0 ? !0 : m, y = c === void 0 ? "deck-gl-map" : c;
|
|
99
|
+
let T;
|
|
100
|
+
e[15] !== p ? (T = p === void 0 ? [] : p, e[15] = p, e[16] = T) : T = e[16];
|
|
101
|
+
const S = T;
|
|
102
|
+
let v;
|
|
103
|
+
e[17] !== d ? (v = d === void 0 ? {
|
|
103
104
|
apiKey: ""
|
|
104
|
-
} : d, e[17] = d, e[18] =
|
|
105
|
-
let
|
|
106
|
-
e[19] !==
|
|
107
|
-
apiKey:
|
|
108
|
-
APIProviderProps:
|
|
109
|
-
...
|
|
110
|
-
} =
|
|
111
|
-
const
|
|
112
|
-
let
|
|
113
|
-
e[23] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
114
|
-
const [
|
|
115
|
-
let
|
|
116
|
-
e[24] !==
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
e[26] !==
|
|
120
|
-
|
|
121
|
-
}, e[26] =
|
|
122
|
-
const
|
|
123
|
-
url:
|
|
124
|
-
type:
|
|
125
|
-
} =
|
|
126
|
-
let
|
|
127
|
-
e[28] !==
|
|
128
|
-
const
|
|
105
|
+
} : d, e[17] = d, e[18] = v) : v = e[18];
|
|
106
|
+
let _, E, F;
|
|
107
|
+
e[19] !== v ? ({
|
|
108
|
+
apiKey: F,
|
|
109
|
+
APIProviderProps: _,
|
|
110
|
+
...E
|
|
111
|
+
} = v, e[19] = v, e[20] = _, e[21] = E, e[22] = F) : (_ = e[20], E = e[21], F = e[22]);
|
|
112
|
+
const O = u === void 0 ? ts : u, D = g === void 0 ? ss : g, U = f === void 0 ? ls : f;
|
|
113
|
+
let V;
|
|
114
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (V = [!1, !1], e[23] = V) : V = e[23];
|
|
115
|
+
const [b, P] = fe(V);
|
|
116
|
+
let k;
|
|
117
|
+
e[24] !== b ? (k = b.every(as), e[24] = b, e[25] = k) : k = e[25];
|
|
118
|
+
const A = k;
|
|
119
|
+
let x;
|
|
120
|
+
e[26] !== s ? (x = (he) => {
|
|
121
|
+
s == null || s(he);
|
|
122
|
+
}, e[26] = s, e[27] = x) : x = e[27];
|
|
123
|
+
const B = x, {
|
|
124
|
+
url: N,
|
|
125
|
+
type: G
|
|
126
|
+
} = nt[M], I = G === ue.googleMaps;
|
|
127
|
+
let be, te;
|
|
128
|
+
e[28] !== S ? (te = S.filter(is).map(rs), e[28] = S, e[29] = te) : te = e[29], be = te;
|
|
129
|
+
const ge = be;
|
|
130
|
+
let oe;
|
|
131
|
+
e[30] !== I || e[31] !== U ? (oe = (he) => {
|
|
132
|
+
const Fe = I ? {
|
|
133
|
+
...he,
|
|
134
|
+
viewState: Pt(he)
|
|
135
|
+
} : he;
|
|
136
|
+
U(Fe);
|
|
137
|
+
}, e[30] = I, e[31] = U, e[32] = oe) : oe = e[32];
|
|
138
|
+
const re = oe;
|
|
139
|
+
let Z;
|
|
140
|
+
e[33] === Symbol.for("react.memo_cache_sentinel") ? (Z = (he) => {
|
|
141
|
+
const Fe = he.type === "deckgl" ? 0 : 1;
|
|
142
|
+
P((ft) => ft.map((mt, pt) => pt === Fe ? !0 : mt));
|
|
143
|
+
}, e[33] = Z) : Z = e[33];
|
|
144
|
+
const ie = Z;
|
|
145
|
+
let ae, le;
|
|
146
|
+
e[34] !== A || e[35] !== n ? (ae = () => {
|
|
147
|
+
n == null || n(A);
|
|
148
|
+
}, le = [A, n], e[34] = A, e[35] = n, e[36] = ae, e[37] = le) : (ae = e[36], le = e[37]), Y(ae, le);
|
|
129
149
|
let se;
|
|
130
|
-
e[
|
|
131
|
-
const De = H ? {
|
|
132
|
-
...ye,
|
|
133
|
-
viewState: Gt(ye)
|
|
134
|
-
} : ye;
|
|
135
|
-
F(De);
|
|
136
|
-
}, e[30] = H, e[31] = F, e[32] = se) : se = e[32];
|
|
137
|
-
const re = se;
|
|
138
|
-
let W;
|
|
139
|
-
e[33] === Symbol.for("react.memo_cache_sentinel") ? (W = (ye) => {
|
|
140
|
-
const De = ye.type === "deckgl" ? 0 : 1;
|
|
141
|
-
X((Ft) => Ft.map((Ot, At) => At === De ? !0 : Ot));
|
|
142
|
-
}, e[33] = W) : W = e[33];
|
|
143
|
-
const ie = W;
|
|
144
|
-
let oe, ae;
|
|
145
|
-
e[34] !== U || e[35] !== n ? (oe = () => {
|
|
146
|
-
n == null || n(U);
|
|
147
|
-
}, ae = [U, n], e[34] = U, e[35] = n, e[36] = oe, e[37] = ae) : (oe = e[36], ae = e[37]), Y(oe, ae);
|
|
148
|
-
let ee;
|
|
149
|
-
e[38] === Symbol.for("react.memo_cache_sentinel") ? (ee = () => ie({
|
|
150
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (se = () => ie({
|
|
150
151
|
type: "deckgl"
|
|
151
|
-
}), e[38] =
|
|
152
|
-
let
|
|
153
|
-
e[39] !==
|
|
152
|
+
}), e[38] = se) : se = e[38];
|
|
153
|
+
let X;
|
|
154
|
+
e[39] !== i ? (X = {
|
|
154
155
|
depthTest: !1,
|
|
155
|
-
...
|
|
156
|
-
}, e[39] =
|
|
157
|
-
let
|
|
158
|
-
e[41] !==
|
|
159
|
-
let
|
|
160
|
-
e[43] !==
|
|
161
|
-
lat: ((
|
|
162
|
-
lng: ((
|
|
163
|
-
}, defaultZoom: ((
|
|
156
|
+
...i
|
|
157
|
+
}, e[39] = i, e[40] = X) : X = e[40];
|
|
158
|
+
let z;
|
|
159
|
+
e[41] !== r ? (z = /* @__PURE__ */ H(cs, { overlayRef: r }), e[41] = r, e[42] = z) : z = e[42];
|
|
160
|
+
let J;
|
|
161
|
+
e[43] !== E || e[44] !== M || e[45] !== I || e[46] !== N || e[47] !== a ? (J = I ? /* @__PURE__ */ H(Lt, { mapTypeId: M, reuseMaps: !0, renderingType: "RASTER", ...E, defaultCenter: {
|
|
162
|
+
lat: ((ye = a.initialViewState) == null ? void 0 : ye.latitude) ?? 0,
|
|
163
|
+
lng: ((L = a.initialViewState) == null ? void 0 : L.longitude) ?? 0
|
|
164
|
+
}, defaultZoom: ((je = a.initialViewState) == null ? void 0 : je.zoom) ?? 0, onTilesLoaded: () => ie({
|
|
164
165
|
type: "load"
|
|
165
|
-
}) }) : /* @__PURE__ */
|
|
166
|
+
}) }) : /* @__PURE__ */ H(bt, { reuseMaps: !0, mapStyle: N, onLoad: () => ie({
|
|
166
167
|
type: "load"
|
|
167
|
-
}), onRender:
|
|
168
|
-
let
|
|
169
|
-
e[49] !==
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
] }) }) }), e[49] =
|
|
173
|
-
let
|
|
174
|
-
return e[62] !==
|
|
175
|
-
}
|
|
176
|
-
function
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
function
|
|
168
|
+
}), onRender: os }), e[43] = E, e[44] = M, e[45] = I, e[46] = N, e[47] = a, e[48] = J) : J = e[48];
|
|
169
|
+
let W;
|
|
170
|
+
e[49] !== ge || e[50] !== h || e[51] !== O || e[52] !== D || e[53] !== B || e[54] !== re || e[55] !== y || e[56] !== t || e[57] !== a || e[58] !== X || e[59] !== z || e[60] !== J ? (W = /* @__PURE__ */ H(Tt, { children: /* @__PURE__ */ H("div", { className: "deckgl-map", children: /* @__PURE__ */ ht(vt, { controller: h, id: y, ref: t, layers: ge, getCursor: O, getTooltip: D, onLoad: se, onResize: B, onViewStateChange: re, parameters: X, ...a, children: [
|
|
171
|
+
z,
|
|
172
|
+
J
|
|
173
|
+
] }) }) }), e[49] = ge, e[50] = h, e[51] = O, e[52] = D, e[53] = B, e[54] = re, e[55] = y, e[56] = t, e[57] = a, e[58] = X, e[59] = z, e[60] = J, e[61] = W) : W = e[61];
|
|
174
|
+
let ce;
|
|
175
|
+
return e[62] !== _ || e[63] !== F || e[64] !== W ? (ce = /* @__PURE__ */ H(_t, { apiKey: F, ..._, children: W }), e[62] = _, e[63] = F, e[64] = W, e[65] = ce) : ce = e[65], ce;
|
|
176
|
+
}
|
|
177
|
+
function os() {
|
|
178
|
+
const o = document.querySelector(".maplibregl-compact-show");
|
|
179
|
+
o == null || o.classList.remove("maplibregl-compact-show");
|
|
180
|
+
}
|
|
181
|
+
function rs(o) {
|
|
181
182
|
const {
|
|
182
183
|
type: e,
|
|
183
184
|
props: t
|
|
184
|
-
} =
|
|
185
|
+
} = o;
|
|
185
186
|
return new e(t);
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
-
return !!(
|
|
188
|
+
function is(o) {
|
|
189
|
+
return !!(o != null && o.type);
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
191
|
+
function as(o) {
|
|
192
|
+
return o;
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function ls() {
|
|
194
195
|
return null;
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
-
const e =
|
|
197
|
+
function cs(o) {
|
|
198
|
+
const e = C(4), {
|
|
198
199
|
overlayRef: t
|
|
199
|
-
} =
|
|
200
|
+
} = o, {
|
|
200
201
|
default: n
|
|
201
|
-
} =
|
|
202
|
-
let
|
|
203
|
-
return e[0] !==
|
|
202
|
+
} = Mt(), s = Et();
|
|
203
|
+
let r, i;
|
|
204
|
+
return e[0] !== s || e[1] !== n ? (r = () => n ?? s, i = [n, s], e[0] = s, e[1] = n, e[2] = r, e[3] = i) : (r = e[2], i = e[3]), St(t, r, i), null;
|
|
204
205
|
}
|
|
205
|
-
const
|
|
206
|
+
const K = {
|
|
206
207
|
addFeature: "addFeature",
|
|
207
208
|
addTentativePosition: "addTentativePosition",
|
|
208
209
|
updateTentativeFeature: "updateTentativeFeature",
|
|
@@ -210,34 +211,32 @@ const G = {
|
|
|
210
211
|
finish: "finish",
|
|
211
212
|
addPosition: "addPosition"
|
|
212
213
|
};
|
|
213
|
-
class
|
|
214
|
+
class us extends kt {
|
|
214
215
|
constructor() {
|
|
215
|
-
super([new
|
|
216
|
+
super([new Ct(), new Ft()]);
|
|
216
217
|
}
|
|
217
218
|
handleKeyUp(e, t) {
|
|
218
219
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
219
220
|
updatedData: t.data,
|
|
220
|
-
editType:
|
|
221
|
+
editType: K.addFeature,
|
|
221
222
|
editContext: {}
|
|
222
223
|
}));
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
|
-
const
|
|
226
|
-
id:
|
|
227
|
-
pickable: !1,
|
|
226
|
+
const Te = "lassoLayer", ke = "maskLayer", ds = {
|
|
227
|
+
id: Te,
|
|
228
228
|
billboard: !1,
|
|
229
229
|
editHandlePointRadiusUnits: "pixels",
|
|
230
230
|
editHandlePointRadiusMinPixels: 1,
|
|
231
231
|
editHandlePointRadiusMaxPixels: 12,
|
|
232
|
-
lineWidthMinPixels: 2,
|
|
233
232
|
editHandlePointStrokeWidth: 3,
|
|
234
233
|
getEditHandlePointRadius: 3,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
},
|
|
234
|
+
stroked: !0,
|
|
235
|
+
filled: !0,
|
|
236
|
+
lineWidthUnits: "pixels",
|
|
237
|
+
getLineWidth: 2,
|
|
238
|
+
lineWidthMinPixels: 2
|
|
239
|
+
}, Ie = {
|
|
241
240
|
editing: {
|
|
242
241
|
border: [3, 111, 226, 255],
|
|
243
242
|
fill: [3, 111, 226, 20.4],
|
|
@@ -247,92 +246,93 @@ const be = "lassoLayer", Ae = "maskLayer", Tn = {
|
|
|
247
246
|
border: [71, 219, 153, 255],
|
|
248
247
|
fill: [71, 219, 153, 0]
|
|
249
248
|
}
|
|
250
|
-
},
|
|
249
|
+
}, Ae = {
|
|
251
250
|
styles: {
|
|
252
251
|
colors: {
|
|
253
|
-
editing:
|
|
254
|
-
finished:
|
|
252
|
+
editing: Ie.editing,
|
|
253
|
+
finished: Ie.finished
|
|
255
254
|
}
|
|
256
255
|
},
|
|
257
256
|
labels: {
|
|
258
|
-
mask: "
|
|
257
|
+
mask: "Mask"
|
|
259
258
|
}
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
259
|
+
}, fs = [new Ut({
|
|
260
|
+
filterSize: 1
|
|
261
|
+
})], Pe = {
|
|
262
|
+
id: ke,
|
|
263
|
+
operation: "mask",
|
|
264
|
+
pickable: !1,
|
|
265
|
+
visible: !0,
|
|
266
|
+
extensions: fs,
|
|
267
|
+
filterRange: [1, 1]
|
|
268
|
+
}, Be = {
|
|
269
269
|
polygon: {
|
|
270
270
|
value: "polygon",
|
|
271
|
-
mode:
|
|
271
|
+
mode: At
|
|
272
272
|
},
|
|
273
273
|
rectangle: {
|
|
274
274
|
value: "rectangle",
|
|
275
|
-
mode:
|
|
275
|
+
mode: Ot
|
|
276
276
|
},
|
|
277
277
|
circle: {
|
|
278
278
|
value: "circle",
|
|
279
|
-
mode:
|
|
279
|
+
mode: Xe
|
|
280
280
|
},
|
|
281
281
|
lasso: {
|
|
282
282
|
value: "lasso",
|
|
283
|
-
mode:
|
|
283
|
+
mode: wt
|
|
284
284
|
},
|
|
285
285
|
edit: {
|
|
286
286
|
value: "edit",
|
|
287
|
-
mode:
|
|
287
|
+
mode: us
|
|
288
288
|
}
|
|
289
|
-
},
|
|
289
|
+
}, _e = et((o) => ({
|
|
290
290
|
layers: {},
|
|
291
|
-
setLayer: (e, t) =>
|
|
292
|
-
var
|
|
293
|
-
const
|
|
291
|
+
setLayer: (e, t) => o((n) => {
|
|
292
|
+
var a;
|
|
293
|
+
const s = {
|
|
294
294
|
...n.layers
|
|
295
295
|
};
|
|
296
296
|
if (!t)
|
|
297
|
-
return delete
|
|
298
|
-
layers:
|
|
297
|
+
return delete s[e], {
|
|
298
|
+
layers: s
|
|
299
299
|
};
|
|
300
|
-
const
|
|
300
|
+
const r = s[e] ?? {
|
|
301
301
|
type: null,
|
|
302
302
|
props: {}
|
|
303
|
-
};
|
|
304
|
-
return
|
|
305
|
-
...
|
|
303
|
+
}, i = [...r.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((l, m) => (l.some((c) => c.equals(m)) || l.push(m), l), []);
|
|
304
|
+
return s[e] = {
|
|
305
|
+
...r,
|
|
306
306
|
...t,
|
|
307
307
|
props: {
|
|
308
308
|
id: e,
|
|
309
|
-
...
|
|
309
|
+
...r.props,
|
|
310
310
|
...t.props,
|
|
311
|
-
extensions:
|
|
311
|
+
extensions: i
|
|
312
312
|
},
|
|
313
313
|
legend: {
|
|
314
|
-
...
|
|
314
|
+
...r.legend,
|
|
315
315
|
...t.legend
|
|
316
316
|
}
|
|
317
317
|
}, {
|
|
318
|
-
layers:
|
|
318
|
+
layers: s
|
|
319
319
|
};
|
|
320
320
|
})
|
|
321
|
-
})),
|
|
321
|
+
})), ms = {
|
|
322
322
|
transitionDuration: "auto",
|
|
323
|
-
transitionInterpolator: new
|
|
323
|
+
transitionInterpolator: new Vt({
|
|
324
324
|
curve: 2
|
|
325
325
|
})
|
|
326
|
-
},
|
|
327
|
-
const e =
|
|
326
|
+
}, ps = (o) => {
|
|
327
|
+
const e = o.reduce((t, n) => {
|
|
328
328
|
const {
|
|
329
|
-
id:
|
|
330
|
-
basemap:
|
|
329
|
+
id: s,
|
|
330
|
+
basemap: r
|
|
331
331
|
} = n;
|
|
332
|
-
return t[
|
|
332
|
+
return t[s] = {
|
|
333
333
|
isLoaded: !1,
|
|
334
334
|
areLayersLoaded: !1,
|
|
335
|
-
basemap:
|
|
335
|
+
basemap: r,
|
|
336
336
|
instanceRef: {
|
|
337
337
|
current: {}
|
|
338
338
|
},
|
|
@@ -344,275 +344,282 @@ const be = "lassoLayer", Ae = "maskLayer", Tn = {
|
|
|
344
344
|
}, {});
|
|
345
345
|
return (t, n) => ({
|
|
346
346
|
maps: e,
|
|
347
|
-
setBasemap: (
|
|
347
|
+
setBasemap: (s, r) => t((i) => ({
|
|
348
348
|
maps: {
|
|
349
|
-
...
|
|
350
|
-
[
|
|
351
|
-
...
|
|
352
|
-
basemap:
|
|
349
|
+
...i.maps,
|
|
350
|
+
[s]: {
|
|
351
|
+
...i.maps[s],
|
|
352
|
+
basemap: r
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
})),
|
|
356
|
-
setLoad: (
|
|
356
|
+
setLoad: (s, r) => t((i) => ({
|
|
357
357
|
maps: {
|
|
358
|
-
...
|
|
359
|
-
[
|
|
360
|
-
...
|
|
361
|
-
isLoaded:
|
|
358
|
+
...i.maps,
|
|
359
|
+
[s]: {
|
|
360
|
+
...i.maps[s],
|
|
361
|
+
isLoaded: r
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
})),
|
|
365
|
-
setLayersLoad: (
|
|
365
|
+
setLayersLoad: (s, r) => t((i) => ({
|
|
366
366
|
maps: {
|
|
367
|
-
...
|
|
368
|
-
[
|
|
369
|
-
...
|
|
370
|
-
areLayersLoaded:
|
|
367
|
+
...i.maps,
|
|
368
|
+
[s]: {
|
|
369
|
+
...i.maps[s],
|
|
370
|
+
areLayersLoaded: r
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
})),
|
|
374
|
-
getOverlayInstance: (
|
|
375
|
-
var
|
|
376
|
-
return (a = (
|
|
374
|
+
getOverlayInstance: (s) => {
|
|
375
|
+
var i, a;
|
|
376
|
+
return (a = (i = n().maps[s]) == null ? void 0 : i.overlayRef) == null ? void 0 : a.current;
|
|
377
377
|
},
|
|
378
|
-
getDeckInstance: (
|
|
379
|
-
var
|
|
380
|
-
return (l = (a = (
|
|
378
|
+
getDeckInstance: (s) => {
|
|
379
|
+
var i, a, l;
|
|
380
|
+
return (l = (a = (i = n().maps[s]) == null ? void 0 : i.instanceRef) == null ? void 0 : a.current) == null ? void 0 : l.deck;
|
|
381
381
|
},
|
|
382
|
-
getViewState: (
|
|
383
|
-
const
|
|
384
|
-
return
|
|
382
|
+
getViewState: (s) => {
|
|
383
|
+
const i = n().getDeckInstance(s);
|
|
384
|
+
return i == null ? void 0 : i.viewState;
|
|
385
385
|
},
|
|
386
|
-
getViewports: (
|
|
387
|
-
const a = n().getDeckInstance(
|
|
388
|
-
return a == null ? void 0 : a.getViewports(
|
|
386
|
+
getViewports: (s, r) => {
|
|
387
|
+
const a = n().getDeckInstance(s);
|
|
388
|
+
return a == null ? void 0 : a.getViewports(r);
|
|
389
389
|
},
|
|
390
|
-
getViewport: (
|
|
391
|
-
var
|
|
392
|
-
const l = n().getDeckInstance(
|
|
393
|
-
return (
|
|
390
|
+
getViewport: (s, r = 0, i) => {
|
|
391
|
+
var m;
|
|
392
|
+
const l = n().getDeckInstance(s);
|
|
393
|
+
return (m = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : m[r];
|
|
394
394
|
},
|
|
395
|
-
addLayers: (
|
|
395
|
+
addLayers: (s, r) => t((i) => {
|
|
396
396
|
var c;
|
|
397
397
|
const a = {
|
|
398
|
-
...
|
|
399
|
-
}, l = ((c = a[
|
|
400
|
-
return a[
|
|
401
|
-
...a[
|
|
402
|
-
layers: [...
|
|
398
|
+
...i.maps
|
|
399
|
+
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], m = /* @__PURE__ */ new Set([...l, ...r]);
|
|
400
|
+
return a[s] = {
|
|
401
|
+
...a[s],
|
|
402
|
+
layers: [...m]
|
|
403
403
|
}, {
|
|
404
404
|
maps: a
|
|
405
405
|
};
|
|
406
406
|
}),
|
|
407
|
-
removeLayers: (
|
|
408
|
-
var
|
|
407
|
+
removeLayers: (s, r) => t((i) => {
|
|
408
|
+
var m;
|
|
409
409
|
const a = {
|
|
410
|
-
...
|
|
411
|
-
}, l = ((
|
|
412
|
-
return a[
|
|
413
|
-
...a[
|
|
414
|
-
layers: l.filter((c) => !
|
|
410
|
+
...i.maps
|
|
411
|
+
}, l = ((m = a[s]) == null ? void 0 : m.layers) ?? [];
|
|
412
|
+
return a[s] = {
|
|
413
|
+
...a[s],
|
|
414
|
+
layers: l.filter((c) => !r.includes(c))
|
|
415
415
|
}, {
|
|
416
416
|
maps: a
|
|
417
417
|
};
|
|
418
418
|
})
|
|
419
419
|
});
|
|
420
|
-
},
|
|
421
|
-
const e =
|
|
420
|
+
}, gs = (o) => {
|
|
421
|
+
const e = o.reduce((t, n) => (n.viewState && (t.viewStates[n.id] = n.viewState, t.viewports[n.id] = null), t), {
|
|
422
422
|
viewStates: {},
|
|
423
423
|
viewports: {}
|
|
424
424
|
});
|
|
425
425
|
return (t, n) => ({
|
|
426
426
|
viewports: e.viewports,
|
|
427
|
-
updateViewPort: (
|
|
427
|
+
updateViewPort: (s) => {
|
|
428
428
|
var a;
|
|
429
|
-
const
|
|
430
|
-
if (!((a =
|
|
431
|
-
const
|
|
429
|
+
const r = n();
|
|
430
|
+
if (!((a = r.maps[s]) != null && a.isLoaded)) return;
|
|
431
|
+
const i = new jt(r.viewStates[s]);
|
|
432
432
|
t((l) => ({
|
|
433
433
|
viewports: {
|
|
434
434
|
...l.viewports,
|
|
435
|
-
[
|
|
435
|
+
[s]: i
|
|
436
436
|
}
|
|
437
437
|
}));
|
|
438
438
|
},
|
|
439
439
|
viewStates: e.viewStates,
|
|
440
|
-
setViewState: (
|
|
440
|
+
setViewState: (s, r) => t((i) => ({
|
|
441
441
|
viewStates: {
|
|
442
|
-
...
|
|
443
|
-
[
|
|
444
|
-
...
|
|
445
|
-
...
|
|
442
|
+
...i.viewStates,
|
|
443
|
+
[s]: {
|
|
444
|
+
...i.viewStates[s],
|
|
445
|
+
...r
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
})),
|
|
449
|
-
setZoom: (
|
|
449
|
+
setZoom: (s, r) => t((i) => ({
|
|
450
450
|
viewStates: {
|
|
451
|
-
...
|
|
452
|
-
[
|
|
453
|
-
...
|
|
454
|
-
zoom:
|
|
451
|
+
...i.viewStates,
|
|
452
|
+
[s]: {
|
|
453
|
+
...i.viewStates[s],
|
|
454
|
+
zoom: r
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
})),
|
|
458
|
-
setMinZoom: (
|
|
458
|
+
setMinZoom: (s, r) => t((i) => ({
|
|
459
459
|
viewStates: {
|
|
460
|
-
...
|
|
461
|
-
[
|
|
462
|
-
...
|
|
463
|
-
minZoom:
|
|
460
|
+
...i.viewStates,
|
|
461
|
+
[s]: {
|
|
462
|
+
...i.viewStates[s],
|
|
463
|
+
minZoom: r
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
})),
|
|
467
|
-
setMaxZoom: (
|
|
467
|
+
setMaxZoom: (s, r) => t((i) => ({
|
|
468
468
|
viewStates: {
|
|
469
|
-
...
|
|
470
|
-
[
|
|
471
|
-
...
|
|
472
|
-
maxZoom:
|
|
469
|
+
...i.viewStates,
|
|
470
|
+
[s]: {
|
|
471
|
+
...i.viewStates[s],
|
|
472
|
+
maxZoom: r
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
}))
|
|
476
476
|
});
|
|
477
|
-
},
|
|
478
|
-
fitBounds: (t, n,
|
|
479
|
-
const
|
|
480
|
-
if (!
|
|
477
|
+
}, ys = (o, e) => ({
|
|
478
|
+
fitBounds: (t, n, s) => {
|
|
479
|
+
const r = e(), i = r.getViewport(t);
|
|
480
|
+
if (!i) return;
|
|
481
481
|
const l = {
|
|
482
|
-
...
|
|
483
|
-
...
|
|
482
|
+
...i == null ? void 0 : i.fitBounds(n, s == null ? void 0 : s.boundsOptions),
|
|
483
|
+
...s == null ? void 0 : s.viewStateOptions
|
|
484
484
|
};
|
|
485
|
-
|
|
485
|
+
r.setViewState(t, l);
|
|
486
486
|
},
|
|
487
|
-
flyTo: (t, n,
|
|
488
|
-
const
|
|
489
|
-
if (!
|
|
487
|
+
flyTo: (t, n, s = {}) => {
|
|
488
|
+
const r = e();
|
|
489
|
+
if (!r.getViewport(t)) return;
|
|
490
490
|
const a = {
|
|
491
|
-
...
|
|
492
|
-
...
|
|
491
|
+
...ms,
|
|
492
|
+
...s == null ? void 0 : s.viewStateOptions
|
|
493
493
|
}, l = {
|
|
494
494
|
...n,
|
|
495
495
|
...a
|
|
496
496
|
};
|
|
497
|
-
|
|
498
|
-
}
|
|
499
|
-
}),
|
|
500
|
-
...
|
|
501
|
-
...
|
|
502
|
-
...
|
|
503
|
-
})),
|
|
504
|
-
function
|
|
505
|
-
const e =
|
|
497
|
+
r.setViewState(t, l);
|
|
498
|
+
}
|
|
499
|
+
}), hs = (o) => $e()((...e) => ({
|
|
500
|
+
...ps(o)(...e),
|
|
501
|
+
...gs(o)(...e),
|
|
502
|
+
...ys(...e)
|
|
503
|
+
})), ot = qe({});
|
|
504
|
+
function Ss(o) {
|
|
505
|
+
const e = C(5), {
|
|
506
506
|
children: t,
|
|
507
507
|
values: n
|
|
508
|
-
} =
|
|
509
|
-
let
|
|
510
|
-
e[0] !== n ? (
|
|
511
|
-
const [
|
|
512
|
-
let
|
|
513
|
-
return e[2] !== t || e[3] !==
|
|
508
|
+
} = o;
|
|
509
|
+
let s;
|
|
510
|
+
e[0] !== n ? (s = hs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
511
|
+
const [r] = fe(s);
|
|
512
|
+
let i;
|
|
513
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ H(ot.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
const e =
|
|
515
|
+
function w(o) {
|
|
516
|
+
const e = Ue(ot);
|
|
517
517
|
if (!Object.keys(e).length)
|
|
518
518
|
throw new Error("Missing MapProvider in the tree");
|
|
519
|
-
return
|
|
520
|
-
}
|
|
521
|
-
function Dn(s) {
|
|
522
|
-
return s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
523
|
-
}
|
|
524
|
-
var xn = function(e) {
|
|
525
|
-
return Un(e) && !qn(e);
|
|
526
|
-
};
|
|
527
|
-
function Un(s) {
|
|
528
|
-
return !!s && typeof s == "object";
|
|
529
|
-
}
|
|
530
|
-
function qn(s) {
|
|
531
|
-
var e = Object.prototype.toString.call(s);
|
|
532
|
-
return e === "[object RegExp]" || e === "[object Date]" || Nn(s);
|
|
533
|
-
}
|
|
534
|
-
var $n = typeof Symbol == "function" && Symbol.for, Vn = $n ? Symbol.for("react.element") : 60103;
|
|
535
|
-
function Nn(s) {
|
|
536
|
-
return s.$$typeof === Vn;
|
|
537
|
-
}
|
|
538
|
-
function In(s) {
|
|
539
|
-
return Array.isArray(s) ? [] : {};
|
|
519
|
+
return Ve(e, o);
|
|
540
520
|
}
|
|
541
|
-
function
|
|
542
|
-
return
|
|
521
|
+
function vs(o) {
|
|
522
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
543
523
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
524
|
+
var Re, He;
|
|
525
|
+
function bs() {
|
|
526
|
+
if (He) return Re;
|
|
527
|
+
He = 1;
|
|
528
|
+
var o = function(y) {
|
|
529
|
+
return e(y) && !t(y);
|
|
530
|
+
};
|
|
531
|
+
function e(h) {
|
|
532
|
+
return !!h && typeof h == "object";
|
|
533
|
+
}
|
|
534
|
+
function t(h) {
|
|
535
|
+
var y = Object.prototype.toString.call(h);
|
|
536
|
+
return y === "[object RegExp]" || y === "[object Date]" || r(h);
|
|
537
|
+
}
|
|
538
|
+
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
539
|
+
function r(h) {
|
|
540
|
+
return h.$$typeof === s;
|
|
541
|
+
}
|
|
542
|
+
function i(h) {
|
|
543
|
+
return Array.isArray(h) ? [] : {};
|
|
544
|
+
}
|
|
545
|
+
function a(h, y) {
|
|
546
|
+
return y.clone !== !1 && y.isMergeableObject(h) ? f(i(h), h, y) : h;
|
|
547
|
+
}
|
|
548
|
+
function l(h, y, T) {
|
|
549
|
+
return h.concat(y).map(function(S) {
|
|
550
|
+
return a(S, T);
|
|
551
|
+
});
|
|
568
552
|
}
|
|
553
|
+
function m(h, y) {
|
|
554
|
+
if (!y.customMerge)
|
|
555
|
+
return f;
|
|
556
|
+
var T = y.customMerge(h);
|
|
557
|
+
return typeof T == "function" ? T : f;
|
|
558
|
+
}
|
|
559
|
+
function c(h) {
|
|
560
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(h).filter(function(y) {
|
|
561
|
+
return Object.propertyIsEnumerable.call(h, y);
|
|
562
|
+
}) : [];
|
|
563
|
+
}
|
|
564
|
+
function p(h) {
|
|
565
|
+
return Object.keys(h).concat(c(h));
|
|
566
|
+
}
|
|
567
|
+
function d(h, y) {
|
|
568
|
+
try {
|
|
569
|
+
return y in h;
|
|
570
|
+
} catch {
|
|
571
|
+
return !1;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
function u(h, y) {
|
|
575
|
+
return d(h, y) && !(Object.hasOwnProperty.call(h, y) && Object.propertyIsEnumerable.call(h, y));
|
|
576
|
+
}
|
|
577
|
+
function g(h, y, T) {
|
|
578
|
+
var S = {};
|
|
579
|
+
return T.isMergeableObject(h) && p(h).forEach(function(v) {
|
|
580
|
+
S[v] = a(h[v], T);
|
|
581
|
+
}), p(y).forEach(function(v) {
|
|
582
|
+
u(h, v) || (d(h, v) && T.isMergeableObject(y[v]) ? S[v] = m(v, T)(h[v], y[v], T) : S[v] = a(y[v], T));
|
|
583
|
+
}), S;
|
|
584
|
+
}
|
|
585
|
+
function f(h, y, T) {
|
|
586
|
+
T = T || {}, T.arrayMerge = T.arrayMerge || l, T.isMergeableObject = T.isMergeableObject || o, T.cloneUnlessOtherwiseSpecified = a;
|
|
587
|
+
var S = Array.isArray(y), v = Array.isArray(h), _ = S === v;
|
|
588
|
+
return _ ? S ? T.arrayMerge(h, y, T) : g(h, y, T) : a(y, T);
|
|
589
|
+
}
|
|
590
|
+
f.all = function(y, T) {
|
|
591
|
+
if (!Array.isArray(y))
|
|
592
|
+
throw new Error("first argument should be an array");
|
|
593
|
+
return y.reduce(function(S, v) {
|
|
594
|
+
return f(S, v, T);
|
|
595
|
+
}, {});
|
|
596
|
+
};
|
|
597
|
+
var M = f;
|
|
598
|
+
return Re = M, Re;
|
|
569
599
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
var n = {};
|
|
575
|
-
return t.isMergeableObject(s) && Ye(s).forEach(function(r) {
|
|
576
|
-
n[r] = _e(s[r], t);
|
|
577
|
-
}), Ye(e).forEach(function(r) {
|
|
578
|
-
Wn(s, r) || (vt(s, r) && t.isMergeableObject(e[r]) ? n[r] = Gn(r, t)(s[r], e[r], t) : n[r] = _e(e[r], t));
|
|
579
|
-
}), n;
|
|
580
|
-
}
|
|
581
|
-
function Le(s, e, t) {
|
|
582
|
-
t = t || {}, t.arrayMerge = t.arrayMerge || Bn, t.isMergeableObject = t.isMergeableObject || xn, t.cloneUnlessOtherwiseSpecified = _e;
|
|
583
|
-
var n = Array.isArray(e), r = Array.isArray(s), i = n === r;
|
|
584
|
-
return i ? n ? t.arrayMerge(s, e, t) : jn(s, e, t) : _e(e, t);
|
|
585
|
-
}
|
|
586
|
-
Le.all = function(e, t) {
|
|
587
|
-
if (!Array.isArray(e))
|
|
588
|
-
throw new Error("first argument should be an array");
|
|
589
|
-
return e.reduce(function(n, r) {
|
|
590
|
-
return Le(n, r, t);
|
|
591
|
-
}, {});
|
|
592
|
-
};
|
|
593
|
-
var Qn = Le, Kn = Qn;
|
|
594
|
-
const Ee = /* @__PURE__ */ Dn(Kn);
|
|
595
|
-
function Zn({
|
|
596
|
-
mode: s,
|
|
600
|
+
var Ts = bs();
|
|
601
|
+
const Me = /* @__PURE__ */ vs(Ts);
|
|
602
|
+
function Ms({
|
|
603
|
+
mode: o,
|
|
597
604
|
...e
|
|
598
605
|
}) {
|
|
599
|
-
const t =
|
|
606
|
+
const t = Ls(e);
|
|
600
607
|
return {
|
|
601
|
-
type:
|
|
608
|
+
type: Je,
|
|
602
609
|
props: {
|
|
603
610
|
...t,
|
|
604
|
-
mode:
|
|
611
|
+
mode: o
|
|
605
612
|
}
|
|
606
613
|
};
|
|
607
614
|
}
|
|
608
|
-
function
|
|
609
|
-
layerProps:
|
|
615
|
+
function Ls({
|
|
616
|
+
layerProps: o,
|
|
610
617
|
onEdit: e,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
pointColor:
|
|
618
|
+
getLineColor: t,
|
|
619
|
+
getFillColor: n,
|
|
620
|
+
pointColor: s
|
|
614
621
|
}) {
|
|
615
|
-
const
|
|
622
|
+
const r = Me(o, {
|
|
616
623
|
modeConfig: {
|
|
617
624
|
// // We force distance due to conversion is addressed at feature getText level
|
|
618
625
|
// formatTooltip: (_distance: number) => {
|
|
@@ -621,614 +628,263 @@ function zn({
|
|
|
621
628
|
preventOverlappingLines: !0
|
|
622
629
|
},
|
|
623
630
|
onEdit: e
|
|
624
|
-
}),
|
|
631
|
+
}), i = Me(ds, {
|
|
625
632
|
getTentativeLineColor: t,
|
|
626
633
|
getTentativeFillColor: n,
|
|
627
634
|
getLineColor: t,
|
|
628
635
|
getFillColor: n,
|
|
629
|
-
getEditHandlePointColor:
|
|
630
|
-
getEditHandlePointOutlineColor:
|
|
631
|
-
dataComparator: (l,
|
|
636
|
+
getEditHandlePointColor: s.fill,
|
|
637
|
+
getEditHandlePointOutlineColor: s.outline,
|
|
638
|
+
dataComparator: (l, m) => l.features[0] === m.features[0]
|
|
632
639
|
});
|
|
633
|
-
return
|
|
640
|
+
return Me(i, r);
|
|
634
641
|
}
|
|
635
|
-
const
|
|
636
|
-
data:
|
|
642
|
+
const _s = (o) => $e()((e) => ({
|
|
643
|
+
data: o.reduce((n, s) => {
|
|
637
644
|
const {
|
|
638
|
-
enabled:
|
|
639
|
-
mapId:
|
|
645
|
+
enabled: r = !1,
|
|
646
|
+
mapId: i,
|
|
640
647
|
modeInstance: a,
|
|
641
|
-
modes: l =
|
|
642
|
-
modeSelected:
|
|
648
|
+
modes: l = Be,
|
|
649
|
+
modeSelected: m = Be.polygon.value,
|
|
643
650
|
values: c = {}
|
|
644
|
-
} =
|
|
645
|
-
return n[
|
|
646
|
-
enabled:
|
|
651
|
+
} = s;
|
|
652
|
+
return n[i] = {
|
|
653
|
+
enabled: r,
|
|
647
654
|
modeInstance: a,
|
|
648
655
|
modes: l,
|
|
649
|
-
modeSelected:
|
|
656
|
+
modeSelected: m,
|
|
650
657
|
values: c
|
|
651
658
|
}, n;
|
|
652
659
|
}, {}),
|
|
653
|
-
setEnabled: (n,
|
|
654
|
-
e((
|
|
660
|
+
setEnabled: (n, s) => {
|
|
661
|
+
e((r) => ({
|
|
655
662
|
data: {
|
|
656
|
-
...
|
|
663
|
+
...r.data,
|
|
657
664
|
[n]: {
|
|
658
|
-
...
|
|
659
|
-
enabled:
|
|
660
|
-
visible:
|
|
665
|
+
...r.data[n],
|
|
666
|
+
enabled: s,
|
|
667
|
+
visible: s
|
|
661
668
|
}
|
|
662
669
|
}
|
|
663
670
|
}));
|
|
664
671
|
},
|
|
665
|
-
setValue: (n,
|
|
666
|
-
e((
|
|
672
|
+
setValue: (n, s, r) => {
|
|
673
|
+
e((i) => {
|
|
667
674
|
const a = {
|
|
668
|
-
...
|
|
669
|
-
}, l = a[
|
|
675
|
+
...i.data[n].values
|
|
676
|
+
}, l = a[s] ?? {
|
|
670
677
|
type: "mask"
|
|
671
678
|
};
|
|
672
|
-
return a[
|
|
679
|
+
return a[s] = {
|
|
673
680
|
...l,
|
|
674
|
-
...
|
|
675
|
-
id:
|
|
676
|
-
},
|
|
681
|
+
...r,
|
|
682
|
+
id: s
|
|
683
|
+
}, r || delete a[s], {
|
|
677
684
|
data: {
|
|
678
|
-
...
|
|
685
|
+
...i.data,
|
|
679
686
|
[n]: {
|
|
680
|
-
...
|
|
687
|
+
...i.data[n],
|
|
681
688
|
values: a
|
|
682
689
|
}
|
|
683
690
|
}
|
|
684
691
|
};
|
|
685
692
|
});
|
|
686
693
|
},
|
|
687
|
-
setVisibility: (n,
|
|
688
|
-
e((
|
|
694
|
+
setVisibility: (n, s, r) => {
|
|
695
|
+
e((i) => {
|
|
689
696
|
const a = {
|
|
690
|
-
...
|
|
691
|
-
}, l = a[
|
|
692
|
-
return l.visible =
|
|
697
|
+
...i.data[n].values
|
|
698
|
+
}, l = a[s] ?? {};
|
|
699
|
+
return l.properties.visible = r, {
|
|
693
700
|
data: {
|
|
694
|
-
...
|
|
701
|
+
...i.data,
|
|
695
702
|
[n]: {
|
|
696
|
-
...
|
|
703
|
+
...i.data[n],
|
|
697
704
|
values: {
|
|
698
705
|
...a,
|
|
699
|
-
[
|
|
706
|
+
[s]: l
|
|
700
707
|
}
|
|
701
708
|
}
|
|
702
709
|
}
|
|
703
710
|
};
|
|
704
711
|
});
|
|
705
712
|
},
|
|
706
|
-
setModeSelected: (n,
|
|
707
|
-
e((
|
|
713
|
+
setModeSelected: (n, s) => {
|
|
714
|
+
e((r) => ({
|
|
708
715
|
data: {
|
|
709
|
-
...
|
|
716
|
+
...r.data,
|
|
710
717
|
[n]: {
|
|
711
|
-
...
|
|
712
|
-
modeSelected:
|
|
718
|
+
...r.data[n],
|
|
719
|
+
modeSelected: s
|
|
713
720
|
}
|
|
714
721
|
}
|
|
715
722
|
}));
|
|
716
723
|
},
|
|
717
|
-
setModeInstance: (n,
|
|
718
|
-
e((
|
|
724
|
+
setModeInstance: (n, s) => {
|
|
725
|
+
e((r) => ({
|
|
719
726
|
data: {
|
|
720
|
-
...
|
|
727
|
+
...r.data,
|
|
721
728
|
[n]: {
|
|
722
|
-
...
|
|
723
|
-
modeInstance:
|
|
729
|
+
...r.data[n],
|
|
730
|
+
modeInstance: s
|
|
724
731
|
}
|
|
725
732
|
}
|
|
726
733
|
}));
|
|
727
734
|
}
|
|
728
|
-
})),
|
|
729
|
-
function
|
|
730
|
-
const e =
|
|
735
|
+
})), rt = qe({});
|
|
736
|
+
function Ps(o) {
|
|
737
|
+
const e = C(5), {
|
|
731
738
|
children: t,
|
|
732
739
|
values: n
|
|
733
|
-
} =
|
|
734
|
-
let
|
|
735
|
-
e[0] !== n ? (
|
|
736
|
-
const [
|
|
737
|
-
let
|
|
738
|
-
return e[2] !== t || e[3] !==
|
|
740
|
+
} = o;
|
|
741
|
+
let s;
|
|
742
|
+
e[0] !== n ? (s = () => _s(n), e[0] = n, e[1] = s) : s = e[1];
|
|
743
|
+
const [r] = fe(s);
|
|
744
|
+
let i;
|
|
745
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ H(rt.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
739
746
|
}
|
|
740
|
-
function
|
|
741
|
-
const e =
|
|
747
|
+
function j(o) {
|
|
748
|
+
const e = Ue(rt);
|
|
742
749
|
if (!Object.keys(e).length)
|
|
743
750
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
744
|
-
return
|
|
751
|
+
return Ve(e, o);
|
|
745
752
|
}
|
|
746
|
-
function
|
|
747
|
-
mapId:
|
|
753
|
+
function Es({
|
|
754
|
+
mapId: o,
|
|
748
755
|
children: e
|
|
749
756
|
}) {
|
|
750
|
-
const t =
|
|
751
|
-
var
|
|
752
|
-
return (
|
|
753
|
-
}), n =
|
|
754
|
-
var
|
|
755
|
-
return (
|
|
756
|
-
}),
|
|
757
|
-
var
|
|
758
|
-
return (
|
|
759
|
-
}), l =
|
|
760
|
-
var
|
|
761
|
-
return (
|
|
762
|
-
}), c =
|
|
757
|
+
const t = j((u) => {
|
|
758
|
+
var g;
|
|
759
|
+
return (g = u.data[o]) == null ? void 0 : g.enabled;
|
|
760
|
+
}), n = j((u) => u.setEnabled), s = j((u) => {
|
|
761
|
+
var g;
|
|
762
|
+
return (g = u.data[o]) == null ? void 0 : g.values;
|
|
763
|
+
}), r = j((u) => u.setValue), i = j((u) => u.setVisibility), a = j((u) => {
|
|
764
|
+
var g;
|
|
765
|
+
return (g = u.data[o]) == null ? void 0 : g.modeSelected;
|
|
766
|
+
}), l = j((u) => u.setModeSelected), m = j((u) => {
|
|
767
|
+
var g;
|
|
768
|
+
return (g = u.data[o]) == null ? void 0 : g.modes;
|
|
769
|
+
}), c = j((u) => u.setModeInstance);
|
|
763
770
|
Y(() => {
|
|
764
|
-
const u =
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
c(s, p);
|
|
768
|
-
}
|
|
769
|
-
}, [t, s, a, f, c]);
|
|
771
|
+
const u = m[a];
|
|
772
|
+
u && t && c(o, u.mode);
|
|
773
|
+
}, [t, o, a, m, c]);
|
|
770
774
|
const [
|
|
771
|
-
|
|
775
|
+
p
|
|
772
776
|
// , draw
|
|
773
|
-
] =
|
|
774
|
-
const u = (
|
|
775
|
-
var
|
|
777
|
+
] = de(() => {
|
|
778
|
+
const u = (M) => {
|
|
779
|
+
var h;
|
|
776
780
|
return {
|
|
777
|
-
id:
|
|
778
|
-
visible:
|
|
779
|
-
label: (
|
|
781
|
+
id: M.id,
|
|
782
|
+
visible: M.properties.visible,
|
|
783
|
+
label: (h = M.properties) == null ? void 0 : h.label
|
|
780
784
|
};
|
|
781
785
|
};
|
|
782
786
|
return [
|
|
783
|
-
Object.values(
|
|
787
|
+
Object.values(s).filter((M) => M.type === "mask").map(u)
|
|
784
788
|
// , draw
|
|
785
789
|
];
|
|
786
|
-
}, [
|
|
787
|
-
n(
|
|
788
|
-
}, [
|
|
790
|
+
}, [s]), d = $((u) => {
|
|
791
|
+
n(o, !!u), l(o, u);
|
|
792
|
+
}, [o, n, l]);
|
|
789
793
|
return e({
|
|
790
|
-
mapId:
|
|
794
|
+
mapId: o,
|
|
791
795
|
enabled: t,
|
|
792
|
-
modes:
|
|
796
|
+
modes: m,
|
|
793
797
|
modeSelected: a,
|
|
794
798
|
values: {
|
|
795
|
-
mask:
|
|
799
|
+
mask: p
|
|
796
800
|
// draw,
|
|
797
801
|
},
|
|
798
|
-
setValue:
|
|
799
|
-
setEnabled:
|
|
800
|
-
setVisibility:
|
|
802
|
+
setValue: $((u) => r(o, u), [o, r]),
|
|
803
|
+
setEnabled: $((u) => n(o, u), [o, n]),
|
|
804
|
+
setVisibility: $((u, g) => i(o, u, g), [o, i]),
|
|
801
805
|
setModeSelected: d
|
|
802
806
|
});
|
|
803
807
|
}
|
|
804
|
-
function
|
|
805
|
-
values:
|
|
808
|
+
function it({
|
|
809
|
+
values: o
|
|
806
810
|
}) {
|
|
807
|
-
return Object.values(
|
|
808
|
-
}
|
|
809
|
-
function Lt(s, e, t) {
|
|
810
|
-
if (s !== null)
|
|
811
|
-
for (var n, r, i, o, a, l, f, c = 0, m = 0, d, u = s.type, y = u === "FeatureCollection", p = u === "Feature", v = y ? s.features.length : 1, b = 0; b < v; b++) {
|
|
812
|
-
f = y ? s.features[b].geometry : p ? s.geometry : s, d = f ? f.type === "GeometryCollection" : !1, a = d ? f.geometries.length : 1;
|
|
813
|
-
for (var S = 0; S < a; S++) {
|
|
814
|
-
var E = 0, h = 0;
|
|
815
|
-
if (o = d ? f.geometries[S] : f, o !== null) {
|
|
816
|
-
l = o.coordinates;
|
|
817
|
-
var L = o.type;
|
|
818
|
-
switch (c = L === "Polygon" || L === "MultiPolygon" ? 1 : 0, L) {
|
|
819
|
-
case null:
|
|
820
|
-
break;
|
|
821
|
-
case "Point":
|
|
822
|
-
if (e(
|
|
823
|
-
l,
|
|
824
|
-
m,
|
|
825
|
-
b,
|
|
826
|
-
E,
|
|
827
|
-
h
|
|
828
|
-
) === !1)
|
|
829
|
-
return !1;
|
|
830
|
-
m++, E++;
|
|
831
|
-
break;
|
|
832
|
-
case "LineString":
|
|
833
|
-
case "MultiPoint":
|
|
834
|
-
for (n = 0; n < l.length; n++) {
|
|
835
|
-
if (e(
|
|
836
|
-
l[n],
|
|
837
|
-
m,
|
|
838
|
-
b,
|
|
839
|
-
E,
|
|
840
|
-
h
|
|
841
|
-
) === !1)
|
|
842
|
-
return !1;
|
|
843
|
-
m++, L === "MultiPoint" && E++;
|
|
844
|
-
}
|
|
845
|
-
L === "LineString" && E++;
|
|
846
|
-
break;
|
|
847
|
-
case "Polygon":
|
|
848
|
-
case "MultiLineString":
|
|
849
|
-
for (n = 0; n < l.length; n++) {
|
|
850
|
-
for (r = 0; r < l[n].length - c; r++) {
|
|
851
|
-
if (e(
|
|
852
|
-
l[n][r],
|
|
853
|
-
m,
|
|
854
|
-
b,
|
|
855
|
-
E,
|
|
856
|
-
h
|
|
857
|
-
) === !1)
|
|
858
|
-
return !1;
|
|
859
|
-
m++;
|
|
860
|
-
}
|
|
861
|
-
L === "MultiLineString" && E++, L === "Polygon" && h++;
|
|
862
|
-
}
|
|
863
|
-
L === "Polygon" && E++;
|
|
864
|
-
break;
|
|
865
|
-
case "MultiPolygon":
|
|
866
|
-
for (n = 0; n < l.length; n++) {
|
|
867
|
-
for (h = 0, r = 0; r < l[n].length; r++) {
|
|
868
|
-
for (i = 0; i < l[n][r].length - c; i++) {
|
|
869
|
-
if (e(
|
|
870
|
-
l[n][r][i],
|
|
871
|
-
m,
|
|
872
|
-
b,
|
|
873
|
-
E,
|
|
874
|
-
h
|
|
875
|
-
) === !1)
|
|
876
|
-
return !1;
|
|
877
|
-
m++;
|
|
878
|
-
}
|
|
879
|
-
h++;
|
|
880
|
-
}
|
|
881
|
-
E++;
|
|
882
|
-
}
|
|
883
|
-
break;
|
|
884
|
-
case "GeometryCollection":
|
|
885
|
-
for (n = 0; n < o.geometries.length; n++)
|
|
886
|
-
if (Lt(o.geometries[n], e) === !1)
|
|
887
|
-
return !1;
|
|
888
|
-
break;
|
|
889
|
-
default:
|
|
890
|
-
throw new Error("Unknown Geometry Type");
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
function es(s, e) {
|
|
897
|
-
var t, n, r, i, o, a, l, f, c, m, d = 0, u = s.type === "FeatureCollection", y = s.type === "Feature", p = u ? s.features.length : 1;
|
|
898
|
-
for (t = 0; t < p; t++) {
|
|
899
|
-
for (a = u ? s.features[t].geometry : y ? s.geometry : s, f = u ? s.features[t].properties : y ? s.properties : {}, c = u ? s.features[t].bbox : y ? s.bbox : void 0, m = u ? s.features[t].id : y ? s.id : void 0, l = a ? a.type === "GeometryCollection" : !1, o = l ? a.geometries.length : 1, r = 0; r < o; r++) {
|
|
900
|
-
if (i = l ? a.geometries[r] : a, i === null) {
|
|
901
|
-
if (e(
|
|
902
|
-
null,
|
|
903
|
-
d,
|
|
904
|
-
f,
|
|
905
|
-
c,
|
|
906
|
-
m
|
|
907
|
-
) === !1)
|
|
908
|
-
return !1;
|
|
909
|
-
continue;
|
|
910
|
-
}
|
|
911
|
-
switch (i.type) {
|
|
912
|
-
case "Point":
|
|
913
|
-
case "LineString":
|
|
914
|
-
case "MultiPoint":
|
|
915
|
-
case "Polygon":
|
|
916
|
-
case "MultiLineString":
|
|
917
|
-
case "MultiPolygon": {
|
|
918
|
-
if (e(
|
|
919
|
-
i,
|
|
920
|
-
d,
|
|
921
|
-
f,
|
|
922
|
-
c,
|
|
923
|
-
m
|
|
924
|
-
) === !1)
|
|
925
|
-
return !1;
|
|
926
|
-
break;
|
|
927
|
-
}
|
|
928
|
-
case "GeometryCollection": {
|
|
929
|
-
for (n = 0; n < i.geometries.length; n++)
|
|
930
|
-
if (e(
|
|
931
|
-
i.geometries[n],
|
|
932
|
-
d,
|
|
933
|
-
f,
|
|
934
|
-
c,
|
|
935
|
-
m
|
|
936
|
-
) === !1)
|
|
937
|
-
return !1;
|
|
938
|
-
break;
|
|
939
|
-
}
|
|
940
|
-
default:
|
|
941
|
-
throw new Error("Unknown Geometry Type");
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
d++;
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
function ts(s, e, t) {
|
|
948
|
-
var n = t;
|
|
949
|
-
return es(
|
|
950
|
-
s,
|
|
951
|
-
function(r, i, o, a, l) {
|
|
952
|
-
n = e(
|
|
953
|
-
n,
|
|
954
|
-
r,
|
|
955
|
-
i,
|
|
956
|
-
o,
|
|
957
|
-
a,
|
|
958
|
-
l
|
|
959
|
-
);
|
|
960
|
-
}
|
|
961
|
-
), n;
|
|
962
|
-
}
|
|
963
|
-
function Xe(s) {
|
|
964
|
-
return ts(
|
|
965
|
-
s,
|
|
966
|
-
(e, t) => e + ns(t),
|
|
967
|
-
0
|
|
968
|
-
);
|
|
969
|
-
}
|
|
970
|
-
function ns(s) {
|
|
971
|
-
let e = 0, t;
|
|
972
|
-
switch (s.type) {
|
|
973
|
-
case "Polygon":
|
|
974
|
-
return Je(s.coordinates);
|
|
975
|
-
case "MultiPolygon":
|
|
976
|
-
for (t = 0; t < s.coordinates.length; t++)
|
|
977
|
-
e += Je(s.coordinates[t]);
|
|
978
|
-
return e;
|
|
979
|
-
case "Point":
|
|
980
|
-
case "MultiPoint":
|
|
981
|
-
case "LineString":
|
|
982
|
-
case "MultiLineString":
|
|
983
|
-
return 0;
|
|
984
|
-
}
|
|
985
|
-
return 0;
|
|
986
|
-
}
|
|
987
|
-
function Je(s) {
|
|
988
|
-
let e = 0;
|
|
989
|
-
if (s && s.length > 0) {
|
|
990
|
-
e += Math.abs(et(s[0]));
|
|
991
|
-
for (let t = 1; t < s.length; t++)
|
|
992
|
-
e -= Math.abs(et(s[t]));
|
|
993
|
-
}
|
|
994
|
-
return e;
|
|
995
|
-
}
|
|
996
|
-
var ss = je * je / 2, $e = Math.PI / 180;
|
|
997
|
-
function et(s) {
|
|
998
|
-
const e = s.length - 1;
|
|
999
|
-
if (e <= 2) return 0;
|
|
1000
|
-
let t = 0, n = 0;
|
|
1001
|
-
for (; n < e; ) {
|
|
1002
|
-
const r = s[n], i = s[n + 1 === e ? 0 : n + 1], o = s[n + 2 >= e ? (n + 2) % e : n + 2], a = r[0] * $e, l = i[1] * $e, f = o[0] * $e;
|
|
1003
|
-
t += (f - a) * Math.sin(l), n++;
|
|
1004
|
-
}
|
|
1005
|
-
return t * ss;
|
|
1006
|
-
}
|
|
1007
|
-
class Mt {
|
|
1008
|
-
constructor(e = [], t = rs) {
|
|
1009
|
-
if (this.data = e, this.length = this.data.length, this.compare = t, this.length > 0)
|
|
1010
|
-
for (let n = (this.length >> 1) - 1; n >= 0; n--) this._down(n);
|
|
1011
|
-
}
|
|
1012
|
-
push(e) {
|
|
1013
|
-
this.data.push(e), this.length++, this._up(this.length - 1);
|
|
1014
|
-
}
|
|
1015
|
-
pop() {
|
|
1016
|
-
if (this.length === 0) return;
|
|
1017
|
-
const e = this.data[0], t = this.data.pop();
|
|
1018
|
-
return this.length--, this.length > 0 && (this.data[0] = t, this._down(0)), e;
|
|
1019
|
-
}
|
|
1020
|
-
peek() {
|
|
1021
|
-
return this.data[0];
|
|
1022
|
-
}
|
|
1023
|
-
_up(e) {
|
|
1024
|
-
const { data: t, compare: n } = this, r = t[e];
|
|
1025
|
-
for (; e > 0; ) {
|
|
1026
|
-
const i = e - 1 >> 1, o = t[i];
|
|
1027
|
-
if (n(r, o) >= 0) break;
|
|
1028
|
-
t[e] = o, e = i;
|
|
1029
|
-
}
|
|
1030
|
-
t[e] = r;
|
|
1031
|
-
}
|
|
1032
|
-
_down(e) {
|
|
1033
|
-
const { data: t, compare: n } = this, r = this.length >> 1, i = t[e];
|
|
1034
|
-
for (; e < r; ) {
|
|
1035
|
-
let o = (e << 1) + 1, a = t[o];
|
|
1036
|
-
const l = o + 1;
|
|
1037
|
-
if (l < this.length && n(t[l], a) < 0 && (o = l, a = t[l]), n(a, i) >= 0) break;
|
|
1038
|
-
t[e] = a, e = o;
|
|
1039
|
-
}
|
|
1040
|
-
t[e] = i;
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
function rs(s, e) {
|
|
1044
|
-
return s < e ? -1 : s > e ? 1 : 0;
|
|
1045
|
-
}
|
|
1046
|
-
function Pt(s, e) {
|
|
1047
|
-
return s.p.x > e.p.x ? 1 : s.p.x < e.p.x ? -1 : s.p.y !== e.p.y ? s.p.y > e.p.y ? 1 : -1 : 1;
|
|
1048
|
-
}
|
|
1049
|
-
function is(s, e) {
|
|
1050
|
-
return s.rightSweepEvent.p.x > e.rightSweepEvent.p.x ? 1 : s.rightSweepEvent.p.x < e.rightSweepEvent.p.x ? -1 : s.rightSweepEvent.p.y !== e.rightSweepEvent.p.y ? s.rightSweepEvent.p.y < e.rightSweepEvent.p.y ? 1 : -1 : 1;
|
|
1051
|
-
}
|
|
1052
|
-
class tt {
|
|
1053
|
-
constructor(e, t, n, r) {
|
|
1054
|
-
this.p = {
|
|
1055
|
-
x: e[0],
|
|
1056
|
-
y: e[1]
|
|
1057
|
-
}, this.featureId = t, this.ringId = n, this.eventId = r, this.otherEvent = null, this.isLeftEndpoint = null;
|
|
1058
|
-
}
|
|
1059
|
-
isSamePoint(e) {
|
|
1060
|
-
return this.p.x === e.p.x && this.p.y === e.p.y;
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
function os(s, e) {
|
|
1064
|
-
if (s.type === "FeatureCollection") {
|
|
1065
|
-
const t = s.features;
|
|
1066
|
-
for (let n = 0; n < t.length; n++)
|
|
1067
|
-
nt(t[n], e);
|
|
1068
|
-
} else
|
|
1069
|
-
nt(s, e);
|
|
1070
|
-
}
|
|
1071
|
-
let Ce = 0, ke = 0, Fe = 0;
|
|
1072
|
-
function nt(s, e) {
|
|
1073
|
-
const t = s.type === "Feature" ? s.geometry : s;
|
|
1074
|
-
let n = t.coordinates;
|
|
1075
|
-
(t.type === "Polygon" || t.type === "MultiLineString") && (n = [n]), t.type === "LineString" && (n = [[n]]);
|
|
1076
|
-
for (let r = 0; r < n.length; r++)
|
|
1077
|
-
for (let i = 0; i < n[r].length; i++) {
|
|
1078
|
-
let o = n[r][i][0], a = null;
|
|
1079
|
-
ke = ke + 1;
|
|
1080
|
-
for (let l = 0; l < n[r][i].length - 1; l++) {
|
|
1081
|
-
a = n[r][i][l + 1];
|
|
1082
|
-
const f = new tt(o, Ce, ke, Fe), c = new tt(a, Ce, ke, Fe + 1);
|
|
1083
|
-
f.otherEvent = c, c.otherEvent = f, Pt(f, c) > 0 ? (c.isLeftEndpoint = !0, f.isLeftEndpoint = !1) : (f.isLeftEndpoint = !0, c.isLeftEndpoint = !1), e.push(f), e.push(c), o = a, Fe = Fe + 1;
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
Ce = Ce + 1;
|
|
811
|
+
return Object.values(o ?? {}).filter((e) => e.type === "mask");
|
|
1087
812
|
}
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
this.leftSweepEvent = e, this.rightSweepEvent = e.otherEvent;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
function ls(s, e) {
|
|
1094
|
-
if (s === null || e === null || s.leftSweepEvent.ringId === e.leftSweepEvent.ringId && (s.rightSweepEvent.isSamePoint(e.leftSweepEvent) || s.rightSweepEvent.isSamePoint(e.leftSweepEvent) || s.rightSweepEvent.isSamePoint(e.rightSweepEvent) || s.leftSweepEvent.isSamePoint(e.leftSweepEvent) || s.leftSweepEvent.isSamePoint(e.rightSweepEvent))) return !1;
|
|
1095
|
-
const t = s.leftSweepEvent.p.x, n = s.leftSweepEvent.p.y, r = s.rightSweepEvent.p.x, i = s.rightSweepEvent.p.y, o = e.leftSweepEvent.p.x, a = e.leftSweepEvent.p.y, l = e.rightSweepEvent.p.x, f = e.rightSweepEvent.p.y, c = (f - a) * (r - t) - (l - o) * (i - n), m = (l - o) * (n - a) - (f - a) * (t - o), d = (r - t) * (n - a) - (i - n) * (t - o);
|
|
1096
|
-
if (c === 0)
|
|
1097
|
-
return !1;
|
|
1098
|
-
const u = m / c, y = d / c;
|
|
1099
|
-
if (u >= 0 && u <= 1 && y >= 0 && y <= 1) {
|
|
1100
|
-
const p = t + u * (r - t), v = n + u * (i - n);
|
|
1101
|
-
return [p, v];
|
|
1102
|
-
}
|
|
1103
|
-
return !1;
|
|
1104
|
-
}
|
|
1105
|
-
function cs(s, e) {
|
|
1106
|
-
e = e || !1;
|
|
1107
|
-
const t = [], n = new Mt([], is);
|
|
1108
|
-
for (; s.length; ) {
|
|
1109
|
-
const r = s.pop();
|
|
1110
|
-
if (r.isLeftEndpoint) {
|
|
1111
|
-
const i = new as(r);
|
|
1112
|
-
for (let o = 0; o < n.data.length; o++) {
|
|
1113
|
-
const a = n.data[o];
|
|
1114
|
-
if (e && a.leftSweepEvent.featureId === r.featureId)
|
|
1115
|
-
continue;
|
|
1116
|
-
const l = ls(i, a);
|
|
1117
|
-
l !== !1 && t.push(l);
|
|
1118
|
-
}
|
|
1119
|
-
n.push(i);
|
|
1120
|
-
} else r.isLeftEndpoint === !1 && n.pop();
|
|
1121
|
-
}
|
|
1122
|
-
return t;
|
|
1123
|
-
}
|
|
1124
|
-
function us(s, e) {
|
|
1125
|
-
const t = new Mt([], Pt);
|
|
1126
|
-
return os(s, t), cs(t, e);
|
|
1127
|
-
}
|
|
1128
|
-
var ds = us;
|
|
1129
|
-
function fs(s, e, t = {}) {
|
|
1130
|
-
const { removeDuplicates: n = !0, ignoreSelfIntersections: r = !0 } = t;
|
|
1131
|
-
let i = [];
|
|
1132
|
-
s.type === "FeatureCollection" ? i = i.concat(s.features) : s.type === "Feature" ? i.push(s) : (s.type === "LineString" || s.type === "Polygon" || s.type === "MultiLineString" || s.type === "MultiPolygon") && i.push(Qe(s)), e.type === "FeatureCollection" ? i = i.concat(e.features) : e.type === "Feature" ? i.push(e) : (e.type === "LineString" || e.type === "Polygon" || e.type === "MultiLineString" || e.type === "MultiPolygon") && i.push(Qe(e));
|
|
1133
|
-
const o = ds(
|
|
1134
|
-
Ke(i),
|
|
1135
|
-
r
|
|
1136
|
-
);
|
|
1137
|
-
let a = [];
|
|
1138
|
-
if (n) {
|
|
1139
|
-
const l = {};
|
|
1140
|
-
o.forEach((f) => {
|
|
1141
|
-
const c = f.join(",");
|
|
1142
|
-
l[c] || (l[c] = !0, a.push(f));
|
|
1143
|
-
});
|
|
1144
|
-
} else
|
|
1145
|
-
a = o;
|
|
1146
|
-
return Ke(a.map((l) => yt(l)));
|
|
1147
|
-
}
|
|
1148
|
-
function ps(s, e = {}) {
|
|
1149
|
-
let t = 0, n = 0, r = 0;
|
|
1150
|
-
return Lt(
|
|
1151
|
-
s,
|
|
1152
|
-
function(i) {
|
|
1153
|
-
t += i[0], n += i[1], r++;
|
|
1154
|
-
}
|
|
1155
|
-
), yt([t / r, n / r], e.properties);
|
|
1156
|
-
}
|
|
1157
|
-
const ms = ln({
|
|
1158
|
-
length: cn
|
|
813
|
+
const ks = Qt({
|
|
814
|
+
length: Kt
|
|
1159
815
|
});
|
|
1160
|
-
function
|
|
1161
|
-
return
|
|
816
|
+
function Qe(o, e) {
|
|
817
|
+
return ks(o).from(Ze[R.meter]).to(Ze[e]);
|
|
1162
818
|
}
|
|
1163
|
-
const
|
|
1164
|
-
function
|
|
1165
|
-
meters:
|
|
819
|
+
const Ke = 1e4;
|
|
820
|
+
function Ce({
|
|
821
|
+
meters: o,
|
|
1166
822
|
unit: e,
|
|
1167
823
|
locale: t,
|
|
1168
824
|
options: {
|
|
1169
825
|
autoSplitNumber: n,
|
|
1170
|
-
...
|
|
826
|
+
...s
|
|
1171
827
|
} = {
|
|
1172
|
-
autoSplitNumber:
|
|
828
|
+
autoSplitNumber: Ke
|
|
1173
829
|
}
|
|
1174
830
|
}) {
|
|
1175
|
-
const
|
|
1176
|
-
let l,
|
|
831
|
+
const r = e === xe["m-km"], i = e === xe["ft-mi"], a = r || i;
|
|
832
|
+
let l, m;
|
|
1177
833
|
if (a) {
|
|
1178
|
-
const c =
|
|
1179
|
-
let
|
|
1180
|
-
l = c ?
|
|
834
|
+
const c = o < (n ?? Ke);
|
|
835
|
+
let p = c ? R.meter : R.kilometer;
|
|
836
|
+
l = c ? Le.meter : Le.kilometer, i && (l = c ? Le.feet : Le.mile, p = c ? R.feet : R.mile), m = Qe(o, p);
|
|
1181
837
|
} else
|
|
1182
|
-
l =
|
|
1183
|
-
return `${
|
|
838
|
+
l = Le[e], m = Qe(o, e);
|
|
839
|
+
return `${st(m, t, {
|
|
1184
840
|
style: "unit",
|
|
1185
841
|
unit: l,
|
|
1186
842
|
unitDisplay: "short",
|
|
1187
843
|
notation: "standard",
|
|
1188
844
|
minimumFractionDigits: 2,
|
|
1189
845
|
maximumFractionDigits: 2,
|
|
1190
|
-
...
|
|
846
|
+
...s
|
|
1191
847
|
})}`;
|
|
1192
848
|
}
|
|
1193
|
-
function
|
|
849
|
+
function Zn(o, {
|
|
1194
850
|
hasDoubleClickZoom: e
|
|
1195
851
|
}) {
|
|
1196
|
-
return typeof
|
|
852
|
+
return typeof o == "boolean" ? {
|
|
1197
853
|
doubleClickZoom: e
|
|
1198
854
|
} : {
|
|
1199
|
-
...
|
|
855
|
+
...o,
|
|
1200
856
|
doubleClickZoom: e
|
|
1201
857
|
};
|
|
1202
858
|
}
|
|
1203
|
-
function
|
|
1204
|
-
if (
|
|
859
|
+
function at(o, e, t) {
|
|
860
|
+
if (o > 0) {
|
|
1205
861
|
const {
|
|
1206
862
|
formatTooltip: n,
|
|
1207
|
-
turfOptions:
|
|
863
|
+
turfOptions: s
|
|
1208
864
|
} = t ?? {
|
|
1209
865
|
turfOptions: {
|
|
1210
866
|
units: "kilometers"
|
|
1211
867
|
}
|
|
1212
|
-
},
|
|
1213
|
-
let
|
|
1214
|
-
n ?
|
|
868
|
+
}, r = s == null ? void 0 : s.units;
|
|
869
|
+
let i;
|
|
870
|
+
n ? i = n(o) : i = `${parseFloat(o.toString()).toFixed(2)} ${r}`;
|
|
1215
871
|
const {
|
|
1216
872
|
measurementCallback: a
|
|
1217
873
|
} = t;
|
|
1218
|
-
return a && a(
|
|
874
|
+
return a && a(o), [{
|
|
1219
875
|
position: e,
|
|
1220
|
-
text:
|
|
876
|
+
text: i
|
|
1221
877
|
}];
|
|
1222
878
|
}
|
|
1223
879
|
return [];
|
|
1224
880
|
}
|
|
1225
|
-
class
|
|
881
|
+
class Cs extends Rt {
|
|
1226
882
|
constructor() {
|
|
1227
883
|
super(...arguments);
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
884
|
+
ne(this, "_isMeasuringSessionFinished", !1);
|
|
885
|
+
ne(this, "area", 0);
|
|
886
|
+
ne(this, "tooltips", []);
|
|
887
|
+
ne(this, "resultPolygon", {
|
|
1232
888
|
type: "FeatureCollection",
|
|
1233
889
|
features: []
|
|
1234
890
|
});
|
|
@@ -1236,13 +892,13 @@ class ys extends Yt {
|
|
|
1236
892
|
handleClick(t, n) {
|
|
1237
893
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1238
894
|
const {
|
|
1239
|
-
picks:
|
|
1240
|
-
} = t,
|
|
895
|
+
picks: s
|
|
896
|
+
} = t, r = Dt(s), i = this.getClickSequence();
|
|
1241
897
|
let a = !1;
|
|
1242
|
-
!
|
|
898
|
+
!r && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area = Ne({
|
|
1243
899
|
type: "Polygon",
|
|
1244
900
|
coordinates: [this.getClickSequence()]
|
|
1245
|
-
}), this.isFinalizedEdition(
|
|
901
|
+
}), this.isFinalizedEdition(i, r) ? this.finalizeEdition(n) : a && n.onEdit({
|
|
1246
902
|
// data is the same
|
|
1247
903
|
updatedData: n.data,
|
|
1248
904
|
editType: "addTentativePosition",
|
|
@@ -1258,10 +914,10 @@ class ys extends Yt {
|
|
|
1258
914
|
if (this._isMeasuringSessionFinished)
|
|
1259
915
|
return;
|
|
1260
916
|
super.handlePointerMove(t, n);
|
|
1261
|
-
const
|
|
1262
|
-
if (
|
|
1263
|
-
const
|
|
1264
|
-
this.area =
|
|
917
|
+
const s = this.getTentativeGuide(n);
|
|
918
|
+
if (s && s.geometry.type === "Polygon") {
|
|
919
|
+
const r = It(s);
|
|
920
|
+
this.area = Ne(s), this.tooltips = at(this.area, r.geometry.coordinates, n.modeConfig);
|
|
1265
921
|
}
|
|
1266
922
|
}
|
|
1267
923
|
resetClickSequence() {
|
|
@@ -1275,31 +931,31 @@ class ys extends Yt {
|
|
|
1275
931
|
}
|
|
1276
932
|
isFinalizedEdition(t, n) {
|
|
1277
933
|
const {
|
|
1278
|
-
positionIndexes:
|
|
934
|
+
positionIndexes: s
|
|
1279
935
|
} = (n == null ? void 0 : n.properties) ?? {
|
|
1280
936
|
positionIndexes: []
|
|
1281
937
|
};
|
|
1282
|
-
return t.length > 2 && n !== void 0 && (
|
|
938
|
+
return t.length > 2 && n !== void 0 && (s[0] === 0 || s[0] === t.length - 1);
|
|
1283
939
|
}
|
|
1284
940
|
allowOverlapping(t) {
|
|
1285
|
-
var
|
|
941
|
+
var r;
|
|
1286
942
|
let n = !1;
|
|
1287
|
-
const
|
|
1288
|
-
if (
|
|
1289
|
-
((
|
|
1290
|
-
const
|
|
943
|
+
const s = this.getClickSequence();
|
|
944
|
+
if (s.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
945
|
+
((r = t.modeConfig) != null && r.preventOverlappingLines)) {
|
|
946
|
+
const i = {
|
|
1291
947
|
type: "LineString",
|
|
1292
|
-
coordinates: [...
|
|
948
|
+
coordinates: [...s, s[0]]
|
|
1293
949
|
}, a = {
|
|
1294
950
|
type: "LineString",
|
|
1295
|
-
coordinates: [...
|
|
951
|
+
coordinates: [...s.slice(0, s.length - 1)]
|
|
1296
952
|
};
|
|
1297
|
-
|
|
953
|
+
Bt(i, a).features.length > 0 && (n = !0);
|
|
1298
954
|
}
|
|
1299
955
|
return n;
|
|
1300
956
|
}
|
|
1301
957
|
finalizeEdition(t) {
|
|
1302
|
-
const n = this.getClickSequence(),
|
|
958
|
+
const n = this.getClickSequence(), s = {
|
|
1303
959
|
type: "Polygon",
|
|
1304
960
|
coordinates: [[...n, n[0]]]
|
|
1305
961
|
};
|
|
@@ -1307,12 +963,12 @@ class ys extends Yt {
|
|
|
1307
963
|
type: "FeatureCollection",
|
|
1308
964
|
features: []
|
|
1309
965
|
};
|
|
1310
|
-
const
|
|
1311
|
-
this._isMeasuringSessionFinished = !0,
|
|
1312
|
-
...
|
|
1313
|
-
editType:
|
|
966
|
+
const r = this.getAddFeatureOrBooleanPolygonAction(s, t);
|
|
967
|
+
this._isMeasuringSessionFinished = !0, r && (this.resultPolygon = r.updatedData, t.onEdit({
|
|
968
|
+
...r,
|
|
969
|
+
editType: K.addPosition,
|
|
1314
970
|
editContext: {
|
|
1315
|
-
...
|
|
971
|
+
...r.editContext,
|
|
1316
972
|
distance: this.area,
|
|
1317
973
|
positions: this.getClickSequence(),
|
|
1318
974
|
finished: this._isMeasuringSessionFinished
|
|
@@ -1330,37 +986,37 @@ class ys extends Yt {
|
|
|
1330
986
|
getTooltipText({
|
|
1331
987
|
meters: t,
|
|
1332
988
|
locale: n,
|
|
1333
|
-
unit:
|
|
1334
|
-
options:
|
|
989
|
+
unit: s,
|
|
990
|
+
options: r
|
|
1335
991
|
}) {
|
|
1336
|
-
return
|
|
992
|
+
return Ce({
|
|
1337
993
|
meters: t,
|
|
1338
994
|
locale: n,
|
|
1339
|
-
unit:
|
|
1340
|
-
options:
|
|
995
|
+
unit: s,
|
|
996
|
+
options: r
|
|
1341
997
|
}) + "2";
|
|
1342
998
|
}
|
|
1343
999
|
}
|
|
1344
|
-
class
|
|
1000
|
+
class Fs extends Xe {
|
|
1345
1001
|
constructor() {
|
|
1346
1002
|
super(...arguments);
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1003
|
+
ne(this, "_isMeasuringSessionFinished", !1);
|
|
1004
|
+
ne(this, "_currentArea", 0);
|
|
1005
|
+
ne(this, "resultPolygon", {
|
|
1350
1006
|
type: "FeatureCollection",
|
|
1351
1007
|
features: []
|
|
1352
1008
|
});
|
|
1353
|
-
|
|
1009
|
+
ne(this, "tooltips", []);
|
|
1354
1010
|
}
|
|
1355
1011
|
handleClick(t, n) {
|
|
1356
1012
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, n);
|
|
1357
1013
|
}
|
|
1358
1014
|
handlePointerMove(t, n) {
|
|
1359
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips =
|
|
1015
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips = at(this.areaCircle, this.position, n.modeConfig));
|
|
1360
1016
|
}
|
|
1361
1017
|
checkAndFinishPolygon(t) {
|
|
1362
|
-
const n = this.getClickSequence(),
|
|
1363
|
-
this.isFinalizedEdition(n,
|
|
1018
|
+
const n = this.getClickSequence(), s = this.getTentativeGuide(t);
|
|
1019
|
+
this.isFinalizedEdition(n, s) && this.finalizeEdition(t);
|
|
1364
1020
|
}
|
|
1365
1021
|
handleKeyUp(t, n) {
|
|
1366
1022
|
t.key === "Enter" ? this.finalizeEdition(n) : t.key === "Escape" && this.resetEdition(n);
|
|
@@ -1377,12 +1033,12 @@ class hs extends dt {
|
|
|
1377
1033
|
type: "FeatureCollection",
|
|
1378
1034
|
features: []
|
|
1379
1035
|
};
|
|
1380
|
-
const
|
|
1381
|
-
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"),
|
|
1382
|
-
...
|
|
1383
|
-
editType:
|
|
1036
|
+
const s = this.getAddFeatureOrBooleanPolygonAction(n, t);
|
|
1037
|
+
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"), s && (this.resultPolygon = s.updatedData, t.onEdit({
|
|
1038
|
+
...s,
|
|
1039
|
+
editType: K.addPosition,
|
|
1384
1040
|
editContext: {
|
|
1385
|
-
...
|
|
1041
|
+
...s.editContext,
|
|
1386
1042
|
distance: this._currentArea,
|
|
1387
1043
|
positions: this.getClickSequence(),
|
|
1388
1044
|
finished: this._isMeasuringSessionFinished
|
|
@@ -1406,23 +1062,23 @@ class hs extends dt {
|
|
|
1406
1062
|
getTooltipText({
|
|
1407
1063
|
meters: t,
|
|
1408
1064
|
locale: n,
|
|
1409
|
-
unit:
|
|
1410
|
-
options:
|
|
1065
|
+
unit: s,
|
|
1066
|
+
options: r
|
|
1411
1067
|
}) {
|
|
1412
|
-
return
|
|
1068
|
+
return Ce({
|
|
1413
1069
|
meters: t,
|
|
1414
1070
|
locale: n,
|
|
1415
|
-
unit:
|
|
1416
|
-
options:
|
|
1071
|
+
unit: s,
|
|
1072
|
+
options: r
|
|
1417
1073
|
}) + "2";
|
|
1418
1074
|
}
|
|
1419
1075
|
}
|
|
1420
|
-
class
|
|
1076
|
+
class lt extends xt {
|
|
1421
1077
|
handleClick(e, t) {
|
|
1422
1078
|
super.handleClick(e, t), t.onEdit({
|
|
1423
1079
|
// data is the same
|
|
1424
1080
|
updatedData: t.data,
|
|
1425
|
-
editType:
|
|
1081
|
+
editType: K.addPosition,
|
|
1426
1082
|
editContext: {
|
|
1427
1083
|
distance: this._currentDistance,
|
|
1428
1084
|
finished: this._isMeasuringSessionFinished,
|
|
@@ -1435,8 +1091,8 @@ class _t extends Jt {
|
|
|
1435
1091
|
e.stopPropagation();
|
|
1436
1092
|
const {
|
|
1437
1093
|
key: n
|
|
1438
|
-
} = e,
|
|
1439
|
-
let
|
|
1094
|
+
} = e, s = this.getClickSequence().length;
|
|
1095
|
+
let r = K.finish;
|
|
1440
1096
|
switch (n) {
|
|
1441
1097
|
case "Escape":
|
|
1442
1098
|
t.onEdit({
|
|
@@ -1444,14 +1100,14 @@ class _t extends Jt {
|
|
|
1444
1100
|
type: "FeatureCollection",
|
|
1445
1101
|
features: []
|
|
1446
1102
|
},
|
|
1447
|
-
editType:
|
|
1103
|
+
editType: K.cancel,
|
|
1448
1104
|
editContext: {}
|
|
1449
1105
|
});
|
|
1450
1106
|
break;
|
|
1451
1107
|
case "Enter":
|
|
1452
|
-
this._isMeasuringSessionFinished = !0,
|
|
1108
|
+
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), r = K.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1453
1109
|
updatedData: t.data,
|
|
1454
|
-
editType:
|
|
1110
|
+
editType: r,
|
|
1455
1111
|
editContext: {
|
|
1456
1112
|
finished: this._isMeasuringSessionFinished
|
|
1457
1113
|
}
|
|
@@ -1466,18 +1122,18 @@ class _t extends Jt {
|
|
|
1466
1122
|
meters: e,
|
|
1467
1123
|
locale: t,
|
|
1468
1124
|
unit: n,
|
|
1469
|
-
options:
|
|
1125
|
+
options: s
|
|
1470
1126
|
}) {
|
|
1471
|
-
return
|
|
1127
|
+
return Ce({
|
|
1472
1128
|
meters: e,
|
|
1473
1129
|
locale: t,
|
|
1474
1130
|
unit: n,
|
|
1475
|
-
options:
|
|
1131
|
+
options: s
|
|
1476
1132
|
});
|
|
1477
1133
|
}
|
|
1478
1134
|
}
|
|
1479
|
-
const
|
|
1480
|
-
id:
|
|
1135
|
+
const ve = "mapMeasureLayer", ws = {
|
|
1136
|
+
id: ve,
|
|
1481
1137
|
pickable: !1,
|
|
1482
1138
|
billboard: !1,
|
|
1483
1139
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -1501,19 +1157,19 @@ const ge = "mapMeasureLayer", gs = {
|
|
|
1501
1157
|
getLineWidth: 2
|
|
1502
1158
|
}
|
|
1503
1159
|
}
|
|
1504
|
-
},
|
|
1160
|
+
}, De = {
|
|
1505
1161
|
editing: [23, 102, 214, 255],
|
|
1506
1162
|
finished: [71, 219, 153, 255],
|
|
1507
1163
|
point: [255, 255, 255, 255]
|
|
1508
|
-
},
|
|
1164
|
+
}, Ge = {
|
|
1509
1165
|
styles: {
|
|
1510
1166
|
colors: {
|
|
1511
|
-
editing:
|
|
1512
|
-
finished:
|
|
1513
|
-
point:
|
|
1167
|
+
editing: De.editing,
|
|
1168
|
+
finished: De.finished,
|
|
1169
|
+
point: De.point
|
|
1514
1170
|
}
|
|
1515
1171
|
}
|
|
1516
|
-
},
|
|
1172
|
+
}, R = {
|
|
1517
1173
|
kilometer: "kilometer",
|
|
1518
1174
|
meter: "meter",
|
|
1519
1175
|
centimeter: "centimeter",
|
|
@@ -1521,31 +1177,31 @@ const ge = "mapMeasureLayer", gs = {
|
|
|
1521
1177
|
mile: "mile",
|
|
1522
1178
|
yard: "yard",
|
|
1523
1179
|
feet: "feet"
|
|
1524
|
-
},
|
|
1180
|
+
}, xe = {
|
|
1525
1181
|
"m-km": "m-km",
|
|
1526
1182
|
"ft-mi": "ft-mi",
|
|
1527
|
-
...
|
|
1528
|
-
},
|
|
1183
|
+
...R
|
|
1184
|
+
}, Os = {
|
|
1529
1185
|
meters: "meters",
|
|
1530
1186
|
kilometer: "kilometers",
|
|
1531
1187
|
mile: "miles"
|
|
1532
|
-
},
|
|
1533
|
-
[
|
|
1534
|
-
[
|
|
1535
|
-
[
|
|
1536
|
-
[
|
|
1537
|
-
[
|
|
1538
|
-
[
|
|
1539
|
-
[
|
|
1540
|
-
},
|
|
1541
|
-
[
|
|
1542
|
-
[
|
|
1543
|
-
[
|
|
1544
|
-
[
|
|
1545
|
-
[
|
|
1546
|
-
[
|
|
1547
|
-
[
|
|
1548
|
-
},
|
|
1188
|
+
}, Ze = {
|
|
1189
|
+
[R.kilometer]: "km",
|
|
1190
|
+
[R.meter]: "m",
|
|
1191
|
+
[R.centimeter]: "cm",
|
|
1192
|
+
[R.milimeter]: "mm",
|
|
1193
|
+
[R.mile]: "mi",
|
|
1194
|
+
[R.yard]: "yd",
|
|
1195
|
+
[R.feet]: "ft"
|
|
1196
|
+
}, Le = {
|
|
1197
|
+
[R.kilometer]: "kilometer",
|
|
1198
|
+
[R.meter]: "meter",
|
|
1199
|
+
[R.centimeter]: "centimeter",
|
|
1200
|
+
[R.milimeter]: "millimeter",
|
|
1201
|
+
[R.mile]: "mile",
|
|
1202
|
+
[R.yard]: "yard",
|
|
1203
|
+
[R.feet]: "foot"
|
|
1204
|
+
}, Q = {
|
|
1549
1205
|
"m-km": {
|
|
1550
1206
|
value: "m-km",
|
|
1551
1207
|
system: "metric"
|
|
@@ -1582,201 +1238,207 @@ const ge = "mapMeasureLayer", gs = {
|
|
|
1582
1238
|
value: "feet",
|
|
1583
1239
|
system: "imperial"
|
|
1584
1240
|
}
|
|
1585
|
-
},
|
|
1241
|
+
}, ze = [Q["m-km"], Q.kilometer, Q.meter, Q["ft-mi"], Q.mile, Q.feet], As = [Q["m-km"], Q.kilometer, Q.meter, Q["ft-mi"], Q.mile, Q.feet], Rs = {
|
|
1586
1242
|
distance: {
|
|
1587
1243
|
value: "distance",
|
|
1588
|
-
mode:
|
|
1244
|
+
mode: lt
|
|
1589
1245
|
},
|
|
1590
1246
|
buffer: {
|
|
1591
1247
|
value: "buffer",
|
|
1592
|
-
mode:
|
|
1248
|
+
mode: Fs
|
|
1593
1249
|
},
|
|
1594
1250
|
area: {
|
|
1595
1251
|
value: "area",
|
|
1596
|
-
mode:
|
|
1597
|
-
}
|
|
1598
|
-
},
|
|
1599
|
-
distance:
|
|
1600
|
-
buffer:
|
|
1601
|
-
area:
|
|
1602
|
-
},
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
function Ps({
|
|
1606
|
-
children: s,
|
|
1252
|
+
mode: Cs
|
|
1253
|
+
}
|
|
1254
|
+
}, Ds = {
|
|
1255
|
+
distance: ze,
|
|
1256
|
+
buffer: ze,
|
|
1257
|
+
area: As
|
|
1258
|
+
}, xs = [Te, ke, ve];
|
|
1259
|
+
function qs({
|
|
1260
|
+
children: o,
|
|
1607
1261
|
mapId: e,
|
|
1608
1262
|
defaultProps: {
|
|
1609
|
-
styles: t =
|
|
1263
|
+
styles: t = Ae.styles,
|
|
1610
1264
|
labels: n
|
|
1611
1265
|
} = {
|
|
1612
|
-
styles:
|
|
1613
|
-
labels:
|
|
1266
|
+
styles: Ae.styles,
|
|
1267
|
+
labels: Ae.labels
|
|
1614
1268
|
},
|
|
1615
|
-
layerProps:
|
|
1616
|
-
defaultType:
|
|
1269
|
+
layerProps: s = {},
|
|
1270
|
+
defaultType: r = "mask"
|
|
1617
1271
|
}) {
|
|
1618
|
-
const
|
|
1619
|
-
var
|
|
1620
|
-
return (
|
|
1621
|
-
}), a =
|
|
1622
|
-
var
|
|
1623
|
-
return (
|
|
1624
|
-
}),
|
|
1625
|
-
var
|
|
1626
|
-
return (
|
|
1627
|
-
}),
|
|
1628
|
-
var
|
|
1629
|
-
return (
|
|
1630
|
-
}), d =
|
|
1631
|
-
var
|
|
1632
|
-
return (
|
|
1633
|
-
})),
|
|
1272
|
+
const i = j((b) => {
|
|
1273
|
+
var P;
|
|
1274
|
+
return (P = b.data[e]) == null ? void 0 : P.enabled;
|
|
1275
|
+
}), a = j((b) => b.setEnabled), l = j((b) => {
|
|
1276
|
+
var P;
|
|
1277
|
+
return (P = b.data[e]) == null ? void 0 : P.values;
|
|
1278
|
+
}), m = j((b) => b.setValue), c = j((b) => {
|
|
1279
|
+
var P;
|
|
1280
|
+
return (P = b.data[e]) == null ? void 0 : P.modeInstance;
|
|
1281
|
+
}), p = j((b) => {
|
|
1282
|
+
var P;
|
|
1283
|
+
return (P = b.data[e]) == null ? void 0 : P.modeSelected;
|
|
1284
|
+
}), d = _e((b) => b.setLayer), u = w((b) => b.addLayers), g = w((b) => b.removeLayers), f = w(tt((b) => {
|
|
1285
|
+
var P;
|
|
1286
|
+
return (P = b.maps[e]) == null ? void 0 : P.layers.filter((k) => !xs.includes(k));
|
|
1287
|
+
})), M = w((b) => b.getDeckInstance), h = Ee({}), y = de(() => it({
|
|
1634
1288
|
values: l
|
|
1635
|
-
}), [l]),
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1289
|
+
}), [l]), T = de(() => ({
|
|
1290
|
+
type: "FeatureCollection",
|
|
1291
|
+
features: y.map((b) => ({
|
|
1292
|
+
type: "Feature",
|
|
1293
|
+
geometry: b.geometry,
|
|
1294
|
+
properties: b.properties,
|
|
1295
|
+
id: b.id
|
|
1296
|
+
}))
|
|
1297
|
+
}), [y]), S = de(() => y.filter((b) => b.properties.visible).map((b) => b.id), [y]), [v, _] = fe(T), [E, F] = fe([]), O = $(() => {
|
|
1298
|
+
const b = {
|
|
1299
|
+
...T,
|
|
1300
|
+
features: T.features.filter((P) => {
|
|
1301
|
+
var k;
|
|
1302
|
+
return (k = P.properties) == null ? void 0 : k.visible;
|
|
1303
|
+
})
|
|
1304
|
+
};
|
|
1305
|
+
_(b);
|
|
1306
|
+
}, [T]);
|
|
1307
|
+
Y(() => {
|
|
1308
|
+
O();
|
|
1309
|
+
}, [O]);
|
|
1310
|
+
const D = Ee(y.length);
|
|
1311
|
+
Y(() => (u(e, [Te]), () => {
|
|
1312
|
+
g(e, [Te]);
|
|
1313
|
+
}), [u, e, g]);
|
|
1314
|
+
const U = $(() => {
|
|
1315
|
+
O(), F([]), a(e, !1);
|
|
1316
|
+
}, [e, O, a]), V = $(({
|
|
1317
|
+
editType: b,
|
|
1318
|
+
updatedData: P
|
|
1644
1319
|
}) => {
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
h();
|
|
1320
|
+
if (b === K.cancel) {
|
|
1321
|
+
U();
|
|
1648
1322
|
return;
|
|
1649
1323
|
}
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
(
|
|
1653
|
-
const
|
|
1654
|
-
|
|
1655
|
-
geometry:
|
|
1656
|
-
properties:
|
|
1657
|
-
visible:
|
|
1658
|
-
type:
|
|
1659
|
-
})
|
|
1660
|
-
}
|
|
1661
|
-
}, [
|
|
1662
|
-
Y(() => {
|
|
1663
|
-
const
|
|
1664
|
-
border:
|
|
1665
|
-
point:
|
|
1666
|
-
fill:
|
|
1667
|
-
} = t.colors.editing,
|
|
1324
|
+
_(P), b !== K.updateTentativeFeature && b === K.addFeature && (p !== "edit" && (D.current = D.current + 1), P.features.forEach((k, A) => {
|
|
1325
|
+
var B;
|
|
1326
|
+
(B = k.properties).label ?? (B.label = `${n == null ? void 0 : n.mask} ${D.current}`), k.properties.index = A, k.properties.visible = k.properties.visible ?? !0;
|
|
1327
|
+
const x = k.id ?? crypto.randomUUID();
|
|
1328
|
+
m(e, x, {
|
|
1329
|
+
geometry: k.geometry,
|
|
1330
|
+
properties: k.properties,
|
|
1331
|
+
// visible: true,
|
|
1332
|
+
type: r
|
|
1333
|
+
});
|
|
1334
|
+
}), U());
|
|
1335
|
+
}, [r, U, n == null ? void 0 : n.mask, e, p, m]);
|
|
1336
|
+
return Y(() => {
|
|
1337
|
+
const b = i, {
|
|
1338
|
+
border: P,
|
|
1339
|
+
point: k,
|
|
1340
|
+
fill: A
|
|
1341
|
+
} = t.colors.editing, {
|
|
1342
|
+
border: x,
|
|
1343
|
+
fill: B
|
|
1344
|
+
} = t.colors.finished, N = Ms({
|
|
1668
1345
|
layerProps: {
|
|
1669
|
-
...
|
|
1670
|
-
pickable:
|
|
1346
|
+
...s.mask,
|
|
1347
|
+
pickable: b,
|
|
1671
1348
|
data: v,
|
|
1672
|
-
selectedFeatureIndexes:
|
|
1349
|
+
selectedFeatureIndexes: E,
|
|
1350
|
+
updateTriggers: {
|
|
1351
|
+
getFilterValue: S
|
|
1352
|
+
},
|
|
1353
|
+
onClick: (G) => {
|
|
1354
|
+
const I = G;
|
|
1355
|
+
I.isGuide || F([I.index]);
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
getLineColor: (G) => E[0] === G.properties.index ? P : x,
|
|
1359
|
+
getFillColor: (G) => E[0] === G.properties.index ? A : B,
|
|
1360
|
+
pointColor: {
|
|
1361
|
+
fill: k,
|
|
1362
|
+
outline: P
|
|
1673
1363
|
},
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
pointColor: w,
|
|
1677
|
-
onEdit: L,
|
|
1678
|
-
mode: c
|
|
1364
|
+
onEdit: V,
|
|
1365
|
+
mode: b ? c : qt
|
|
1679
1366
|
});
|
|
1680
|
-
d(
|
|
1681
|
-
}, [v,
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
features: S.map((g) => ({
|
|
1685
|
-
type: "Feature",
|
|
1686
|
-
geometry: g.geometry,
|
|
1687
|
-
properties: g.properties,
|
|
1688
|
-
id: g.id
|
|
1689
|
-
}))
|
|
1690
|
-
}), [S]), C = ue(() => {
|
|
1691
|
-
const g = S.filter((w) => w.visible).map((w) => w.id), M = v.features.map((w) => w.id);
|
|
1692
|
-
return M.length ? g.filter((w) => !M.includes(w)) : g;
|
|
1693
|
-
}, [v.features, S]);
|
|
1694
|
-
return Y(() => {
|
|
1695
|
-
const g = {
|
|
1696
|
-
...Te,
|
|
1697
|
-
pickable: o && m === "edit",
|
|
1698
|
-
visible: !0,
|
|
1367
|
+
d(Te, N);
|
|
1368
|
+
}, [v, i, s.mask, S, c, V, E, d, t.colors.editing, t.colors.finished]), Y(() => {
|
|
1369
|
+
const b = {
|
|
1370
|
+
...Pe,
|
|
1699
1371
|
data: T,
|
|
1700
|
-
|
|
1701
|
-
getFillColor: t.colors.finished.fill,
|
|
1702
|
-
extensions: Ls,
|
|
1703
|
-
getFilterValue: (M) => Number(C.includes(M.id)),
|
|
1704
|
-
filterRange: [1, 1],
|
|
1372
|
+
getFilterValue: (P) => Number(S.includes(P.id)),
|
|
1705
1373
|
updateTriggers: {
|
|
1706
|
-
getFilterValue:
|
|
1707
|
-
},
|
|
1708
|
-
onClick: ({
|
|
1709
|
-
object: M
|
|
1710
|
-
}) => {
|
|
1711
|
-
const w = Oe();
|
|
1712
|
-
w.features.push(M), b(w), a(e, !0);
|
|
1374
|
+
getFilterValue: S
|
|
1713
1375
|
}
|
|
1714
1376
|
};
|
|
1715
|
-
return d(
|
|
1716
|
-
type:
|
|
1717
|
-
props:
|
|
1718
|
-
}), u(e, [
|
|
1719
|
-
|
|
1377
|
+
return d(Pe.id, {
|
|
1378
|
+
type: Nt,
|
|
1379
|
+
props: b
|
|
1380
|
+
}), u(e, [Pe.id]), () => {
|
|
1381
|
+
g(e, [Pe.id]);
|
|
1720
1382
|
};
|
|
1721
|
-
}, [u,
|
|
1722
|
-
|
|
1723
|
-
|
|
1383
|
+
}, [u, e, T, S, g, d]), Y(() => {
|
|
1384
|
+
f == null || f.forEach((b) => {
|
|
1385
|
+
var k;
|
|
1386
|
+
if (i) {
|
|
1387
|
+
const A = (k = M(e)) == null ? void 0 : k.props.layers.find((x) => x.props.id === b);
|
|
1388
|
+
h.current[b] = A == null ? void 0 : A.props.pickable;
|
|
1389
|
+
}
|
|
1390
|
+
const P = !i && h.current[b];
|
|
1391
|
+
d(b, {
|
|
1724
1392
|
props: {
|
|
1725
|
-
pickable:
|
|
1726
|
-
extensions: [new
|
|
1727
|
-
maskId: !
|
|
1393
|
+
pickable: P,
|
|
1394
|
+
extensions: [new $t()],
|
|
1395
|
+
maskId: !i && S.length ? ke : void 0
|
|
1728
1396
|
}
|
|
1729
1397
|
});
|
|
1730
1398
|
});
|
|
1731
|
-
}, [
|
|
1732
|
-
}
|
|
1733
|
-
function Oe() {
|
|
1734
|
-
return {
|
|
1735
|
-
type: "FeatureCollection",
|
|
1736
|
-
features: []
|
|
1737
|
-
};
|
|
1399
|
+
}, [i, M, e, f, S.length, d]), o;
|
|
1738
1400
|
}
|
|
1739
|
-
|
|
1740
|
-
function
|
|
1741
|
-
mode:
|
|
1401
|
+
qs.Controls = Es;
|
|
1402
|
+
function Us({
|
|
1403
|
+
mode: o,
|
|
1742
1404
|
...e
|
|
1743
1405
|
}) {
|
|
1744
|
-
const t =
|
|
1745
|
-
mode:
|
|
1406
|
+
const t = $s({
|
|
1407
|
+
mode: o,
|
|
1746
1408
|
...e
|
|
1747
1409
|
});
|
|
1748
1410
|
return {
|
|
1749
|
-
type:
|
|
1411
|
+
type: Je,
|
|
1750
1412
|
props: {
|
|
1751
1413
|
...t,
|
|
1752
|
-
mode:
|
|
1414
|
+
mode: o,
|
|
1753
1415
|
data: []
|
|
1754
1416
|
}
|
|
1755
1417
|
};
|
|
1756
1418
|
}
|
|
1757
|
-
function
|
|
1758
|
-
mode:
|
|
1419
|
+
function $s({
|
|
1420
|
+
mode: o,
|
|
1759
1421
|
layerProps: e,
|
|
1760
1422
|
locale: t,
|
|
1761
1423
|
enabled: n,
|
|
1762
|
-
unit:
|
|
1763
|
-
onEdit:
|
|
1764
|
-
guideColor:
|
|
1424
|
+
unit: s,
|
|
1425
|
+
onEdit: r,
|
|
1426
|
+
guideColor: i,
|
|
1765
1427
|
pointColor: a,
|
|
1766
1428
|
textOptions: l
|
|
1767
1429
|
}) {
|
|
1768
|
-
const
|
|
1430
|
+
const m = Me(e, {
|
|
1769
1431
|
visible: n,
|
|
1770
1432
|
pickable: n,
|
|
1771
1433
|
modeConfig: {
|
|
1772
1434
|
// We force distance due to conversion is addressed at feature getText level
|
|
1773
1435
|
formatTooltip: (d) => d,
|
|
1774
1436
|
turfOptions: {
|
|
1775
|
-
units:
|
|
1437
|
+
units: Os.meters
|
|
1776
1438
|
}
|
|
1777
1439
|
},
|
|
1778
1440
|
...n && {
|
|
1779
|
-
onEdit:
|
|
1441
|
+
onEdit: r
|
|
1780
1442
|
},
|
|
1781
1443
|
_subLayerProps: {
|
|
1782
1444
|
tooltips: {
|
|
@@ -1789,1263 +1451,1269 @@ function _s({
|
|
|
1789
1451
|
},
|
|
1790
1452
|
getText: (d) => {
|
|
1791
1453
|
var u;
|
|
1792
|
-
return (u =
|
|
1454
|
+
return (u = o == null ? void 0 : o.getTooltipText) == null ? void 0 : u.call(o, {
|
|
1793
1455
|
meters: d.text,
|
|
1794
1456
|
locale: t,
|
|
1795
|
-
unit:
|
|
1457
|
+
unit: s,
|
|
1796
1458
|
options: l
|
|
1797
1459
|
});
|
|
1798
1460
|
},
|
|
1799
1461
|
updateTriggers: {
|
|
1800
|
-
getText: [
|
|
1462
|
+
getText: [s, t, l]
|
|
1801
1463
|
}
|
|
1802
1464
|
}
|
|
1803
1465
|
}
|
|
1804
|
-
}), c =
|
|
1466
|
+
}), c = Me(ws, {
|
|
1805
1467
|
_subLayerProps: {
|
|
1806
1468
|
guides: {
|
|
1807
|
-
getLineColor:
|
|
1808
|
-
getFillColor:
|
|
1469
|
+
getLineColor: i,
|
|
1470
|
+
getFillColor: i.with(3, 20)
|
|
1809
1471
|
}
|
|
1810
1472
|
},
|
|
1811
1473
|
getEditHandlePointColor: a,
|
|
1812
|
-
getEditHandlePointOutlineColor:
|
|
1474
|
+
getEditHandlePointOutlineColor: i
|
|
1813
1475
|
});
|
|
1814
|
-
return
|
|
1476
|
+
return Me(c, m);
|
|
1815
1477
|
}
|
|
1816
|
-
const
|
|
1817
|
-
measurements:
|
|
1478
|
+
const Vs = (o) => $e()((e) => ({
|
|
1479
|
+
measurements: o.reduce((n, s) => {
|
|
1818
1480
|
const {
|
|
1819
|
-
mapId:
|
|
1820
|
-
modeSelected:
|
|
1821
|
-
modes: a =
|
|
1822
|
-
units: l =
|
|
1823
|
-
distance:
|
|
1481
|
+
mapId: r,
|
|
1482
|
+
modeSelected: i,
|
|
1483
|
+
modes: a = Rs,
|
|
1484
|
+
units: l = Ds,
|
|
1485
|
+
distance: m = 0,
|
|
1824
1486
|
finished: c = !1,
|
|
1825
|
-
locale:
|
|
1487
|
+
locale: p = "en",
|
|
1826
1488
|
positions: d = [],
|
|
1827
1489
|
clearLayerOnStart: u = !1,
|
|
1828
|
-
unit:
|
|
1829
|
-
enabled:
|
|
1830
|
-
} =
|
|
1831
|
-
return n[
|
|
1490
|
+
unit: g = xe["m-km"],
|
|
1491
|
+
enabled: f = !1
|
|
1492
|
+
} = s;
|
|
1493
|
+
return n[r] = {
|
|
1832
1494
|
modes: a,
|
|
1833
1495
|
units: l,
|
|
1834
|
-
modeSelected:
|
|
1835
|
-
distance:
|
|
1496
|
+
modeSelected: i,
|
|
1497
|
+
distance: m,
|
|
1836
1498
|
finished: c,
|
|
1837
|
-
locale:
|
|
1499
|
+
locale: p,
|
|
1838
1500
|
positions: d,
|
|
1839
|
-
unit:
|
|
1501
|
+
unit: g,
|
|
1840
1502
|
clearLayerOnStart: u,
|
|
1841
|
-
enabled:
|
|
1503
|
+
enabled: f
|
|
1842
1504
|
}, n;
|
|
1843
1505
|
}, {}),
|
|
1844
|
-
mode:
|
|
1845
|
-
setModeInstance: (n,
|
|
1846
|
-
e((
|
|
1506
|
+
mode: lt,
|
|
1507
|
+
setModeInstance: (n, s) => {
|
|
1508
|
+
e((r) => ({
|
|
1847
1509
|
measurements: {
|
|
1848
|
-
...
|
|
1510
|
+
...r.measurements,
|
|
1849
1511
|
[n]: {
|
|
1850
|
-
...
|
|
1851
|
-
modeInstance:
|
|
1512
|
+
...r.measurements[n],
|
|
1513
|
+
modeInstance: s
|
|
1852
1514
|
}
|
|
1853
1515
|
}
|
|
1854
1516
|
}));
|
|
1855
1517
|
},
|
|
1856
|
-
setModeSelected: (n,
|
|
1857
|
-
e((
|
|
1518
|
+
setModeSelected: (n, s) => {
|
|
1519
|
+
e((r) => ({
|
|
1858
1520
|
measurements: {
|
|
1859
|
-
...
|
|
1521
|
+
...r.measurements,
|
|
1860
1522
|
[n]: {
|
|
1861
|
-
...
|
|
1862
|
-
modeSelected:
|
|
1523
|
+
...r.measurements[n],
|
|
1524
|
+
modeSelected: s
|
|
1863
1525
|
}
|
|
1864
1526
|
}
|
|
1865
1527
|
}));
|
|
1866
1528
|
},
|
|
1867
|
-
setFinished: (n,
|
|
1868
|
-
e((
|
|
1529
|
+
setFinished: (n, s) => {
|
|
1530
|
+
e((r) => ({
|
|
1869
1531
|
measurements: {
|
|
1870
|
-
...
|
|
1532
|
+
...r.measurements,
|
|
1871
1533
|
[n]: {
|
|
1872
|
-
...
|
|
1873
|
-
finished:
|
|
1534
|
+
...r.measurements[n],
|
|
1535
|
+
finished: s
|
|
1874
1536
|
}
|
|
1875
1537
|
}
|
|
1876
1538
|
}));
|
|
1877
1539
|
},
|
|
1878
|
-
setDistance: (n,
|
|
1879
|
-
e((
|
|
1540
|
+
setDistance: (n, s) => {
|
|
1541
|
+
e((r) => ({
|
|
1880
1542
|
measurements: {
|
|
1881
|
-
...
|
|
1543
|
+
...r.measurements,
|
|
1882
1544
|
[n]: {
|
|
1883
|
-
...
|
|
1884
|
-
distance:
|
|
1545
|
+
...r.measurements[n],
|
|
1546
|
+
distance: s
|
|
1885
1547
|
}
|
|
1886
1548
|
}
|
|
1887
1549
|
}));
|
|
1888
1550
|
},
|
|
1889
|
-
setUnit: (n,
|
|
1890
|
-
e((
|
|
1551
|
+
setUnit: (n, s) => {
|
|
1552
|
+
e((r) => ({
|
|
1891
1553
|
measurements: {
|
|
1892
|
-
...
|
|
1554
|
+
...r.measurements,
|
|
1893
1555
|
[n]: {
|
|
1894
|
-
...
|
|
1895
|
-
unit:
|
|
1556
|
+
...r.measurements[n],
|
|
1557
|
+
unit: s
|
|
1896
1558
|
}
|
|
1897
1559
|
}
|
|
1898
1560
|
}));
|
|
1899
1561
|
},
|
|
1900
|
-
setLocale: (n,
|
|
1901
|
-
e((
|
|
1562
|
+
setLocale: (n, s) => {
|
|
1563
|
+
e((r) => ({
|
|
1902
1564
|
measurements: {
|
|
1903
|
-
...
|
|
1565
|
+
...r.measurements,
|
|
1904
1566
|
[n]: {
|
|
1905
|
-
...
|
|
1906
|
-
locale:
|
|
1567
|
+
...r.measurements[n],
|
|
1568
|
+
locale: s
|
|
1907
1569
|
}
|
|
1908
1570
|
}
|
|
1909
1571
|
}));
|
|
1910
1572
|
},
|
|
1911
|
-
setPositions: (n,
|
|
1912
|
-
e((
|
|
1573
|
+
setPositions: (n, s) => {
|
|
1574
|
+
e((r) => ({
|
|
1913
1575
|
measurements: {
|
|
1914
|
-
...
|
|
1576
|
+
...r.measurements,
|
|
1915
1577
|
[n]: {
|
|
1916
|
-
...
|
|
1917
|
-
positions: [...
|
|
1578
|
+
...r.measurements[n],
|
|
1579
|
+
positions: [...s]
|
|
1918
1580
|
}
|
|
1919
1581
|
}
|
|
1920
1582
|
}));
|
|
1921
1583
|
},
|
|
1922
|
-
setEnabled: (n,
|
|
1923
|
-
e((
|
|
1584
|
+
setEnabled: (n, s) => {
|
|
1585
|
+
e((r) => ({
|
|
1924
1586
|
measurements: {
|
|
1925
|
-
...
|
|
1587
|
+
...r.measurements,
|
|
1926
1588
|
[n]: {
|
|
1927
|
-
...
|
|
1928
|
-
enabled:
|
|
1589
|
+
...r.measurements[n],
|
|
1590
|
+
enabled: s
|
|
1929
1591
|
}
|
|
1930
1592
|
}
|
|
1931
1593
|
}));
|
|
1932
1594
|
}
|
|
1933
|
-
})),
|
|
1934
|
-
function
|
|
1935
|
-
const e =
|
|
1595
|
+
})), ct = qe({});
|
|
1596
|
+
function js(o) {
|
|
1597
|
+
const e = C(5), {
|
|
1936
1598
|
children: t,
|
|
1937
1599
|
values: n
|
|
1938
|
-
} =
|
|
1939
|
-
let
|
|
1940
|
-
e[0] !== n ? (
|
|
1941
|
-
const [
|
|
1942
|
-
let
|
|
1943
|
-
return e[2] !== t || e[3] !==
|
|
1600
|
+
} = o;
|
|
1601
|
+
let s;
|
|
1602
|
+
e[0] !== n ? (s = Vs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1603
|
+
const [r] = fe(s);
|
|
1604
|
+
let i;
|
|
1605
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ H(ct.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
1944
1606
|
}
|
|
1945
|
-
function
|
|
1946
|
-
const e =
|
|
1607
|
+
function q(o) {
|
|
1608
|
+
const e = Ue(ct);
|
|
1947
1609
|
if (!Object.keys(e).length)
|
|
1948
1610
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1949
|
-
return
|
|
1611
|
+
return Ve(e, o);
|
|
1950
1612
|
}
|
|
1951
|
-
function
|
|
1952
|
-
const e =
|
|
1613
|
+
function ut(o) {
|
|
1614
|
+
const e = C(74), {
|
|
1953
1615
|
mapId: t
|
|
1954
|
-
} =
|
|
1616
|
+
} = o;
|
|
1955
1617
|
let n;
|
|
1956
|
-
e[0] !== t ? (n = (
|
|
1957
|
-
const
|
|
1958
|
-
let
|
|
1959
|
-
e[2] !== t ? (
|
|
1960
|
-
const
|
|
1618
|
+
e[0] !== t ? (n = (L) => L.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
|
|
1619
|
+
const s = q(n);
|
|
1620
|
+
let r;
|
|
1621
|
+
e[2] !== t ? (r = (L) => L.measurements[t].units, e[2] = t, e[3] = r) : r = e[3];
|
|
1622
|
+
const i = q(r);
|
|
1961
1623
|
let a;
|
|
1962
|
-
e[4] !== t ? (a = (
|
|
1963
|
-
const l =
|
|
1624
|
+
e[4] !== t ? (a = (L) => L.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1625
|
+
const l = q(a), m = q(Zs);
|
|
1964
1626
|
let c;
|
|
1965
|
-
e[6] !==
|
|
1966
|
-
const
|
|
1627
|
+
e[6] !== m || e[7] !== t ? (c = (L) => m(t, L), e[6] = m, e[7] = t, e[8] = c) : c = e[8];
|
|
1628
|
+
const p = c;
|
|
1967
1629
|
let d;
|
|
1968
|
-
e[9] !== t ? (d = (
|
|
1969
|
-
const u =
|
|
1970
|
-
let y;
|
|
1971
|
-
e[11] !== t ? (y = (P) => P.measurements[t].enabled, e[11] = t, e[12] = y) : y = e[12];
|
|
1972
|
-
const p = A(y), v = A(xs);
|
|
1973
|
-
let b;
|
|
1974
|
-
e[13] !== v || e[14] !== t ? (b = (P) => v(t, P), e[13] = v, e[14] = t, e[15] = b) : b = e[15];
|
|
1975
|
-
const S = b;
|
|
1976
|
-
let E;
|
|
1977
|
-
e[16] !== t ? (E = (P) => P.measurements[t].modeSelected, e[16] = t, e[17] = E) : E = e[17];
|
|
1978
|
-
const h = A(E), L = A(Ds);
|
|
1979
|
-
let T;
|
|
1980
|
-
e[18] !== L || e[19] !== t || e[20] !== S ? (T = (P) => {
|
|
1981
|
-
S(!!P), L(t, P);
|
|
1982
|
-
}, e[18] = L, e[19] = t, e[20] = S, e[21] = T) : T = e[21];
|
|
1983
|
-
const C = T;
|
|
1630
|
+
e[9] !== t ? (d = (L) => L.measurements[t].clearLayerOnStart, e[9] = t, e[10] = d) : d = e[10];
|
|
1631
|
+
const u = q(d);
|
|
1984
1632
|
let g;
|
|
1985
|
-
e[
|
|
1986
|
-
const
|
|
1633
|
+
e[11] !== t ? (g = (L) => L.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1634
|
+
const f = q(g), M = q(Gs);
|
|
1635
|
+
let h;
|
|
1636
|
+
e[13] !== M || e[14] !== t ? (h = (L) => M(t, L), e[13] = M, e[14] = t, e[15] = h) : h = e[15];
|
|
1637
|
+
const y = h;
|
|
1638
|
+
let T;
|
|
1639
|
+
e[16] !== t ? (T = (L) => L.measurements[t].modeSelected, e[16] = t, e[17] = T) : T = e[17];
|
|
1640
|
+
const S = q(T), v = q(Ks);
|
|
1641
|
+
let _;
|
|
1642
|
+
e[18] !== v || e[19] !== t || e[20] !== y ? (_ = (L) => {
|
|
1643
|
+
y(!!L), v(t, L);
|
|
1644
|
+
}, e[18] = v, e[19] = t, e[20] = y, e[21] = _) : _ = e[21];
|
|
1645
|
+
const E = _;
|
|
1987
1646
|
let F;
|
|
1988
|
-
e[
|
|
1989
|
-
const
|
|
1990
|
-
let q;
|
|
1991
|
-
e[27] !== t ? (q = (P) => P.measurements[t].locale, e[27] = t, e[28] = q) : q = e[28];
|
|
1992
|
-
const X = A(q), N = A(As);
|
|
1647
|
+
e[22] !== t ? (F = (L) => L.measurements[t].finished, e[22] = t, e[23] = F) : F = e[23];
|
|
1648
|
+
const O = q(F), D = q(Qs);
|
|
1993
1649
|
let U;
|
|
1994
|
-
e[
|
|
1995
|
-
const
|
|
1996
|
-
let
|
|
1997
|
-
e[
|
|
1998
|
-
const
|
|
1999
|
-
let
|
|
2000
|
-
e[
|
|
2001
|
-
const
|
|
2002
|
-
let
|
|
2003
|
-
e[
|
|
2004
|
-
const
|
|
1650
|
+
e[24] !== D || e[25] !== t ? (U = (L) => D(t, L), e[24] = D, e[25] = t, e[26] = U) : U = e[26];
|
|
1651
|
+
const V = U;
|
|
1652
|
+
let b;
|
|
1653
|
+
e[27] !== t ? (b = (L) => L.measurements[t].locale, e[27] = t, e[28] = b) : b = e[28];
|
|
1654
|
+
const P = q(b), k = q(Hs);
|
|
1655
|
+
let A;
|
|
1656
|
+
e[29] !== k || e[30] !== t ? (A = (L) => k(t, L), e[29] = k, e[30] = t, e[31] = A) : A = e[31];
|
|
1657
|
+
const x = A;
|
|
1658
|
+
let B;
|
|
1659
|
+
e[32] !== t ? (B = (L) => L.measurements[t].modeInstance, e[32] = t, e[33] = B) : B = e[33];
|
|
1660
|
+
const N = q(B), G = q(Bs);
|
|
1661
|
+
let I;
|
|
1662
|
+
e[34] !== G || e[35] !== t ? (I = (L) => G(t, L), e[34] = G, e[35] = t, e[36] = I) : I = e[36];
|
|
1663
|
+
const be = I;
|
|
1664
|
+
let te;
|
|
1665
|
+
e[37] !== t ? (te = (L) => L.measurements[t].positions, e[37] = t, e[38] = te) : te = e[38];
|
|
1666
|
+
const ge = q(te), oe = q(Is);
|
|
2005
1667
|
let re;
|
|
2006
|
-
e[39] !==
|
|
2007
|
-
const
|
|
1668
|
+
e[39] !== oe || e[40] !== t ? (re = (L) => oe(t, L), e[39] = oe, e[40] = t, e[41] = re) : re = e[41];
|
|
1669
|
+
const Z = re;
|
|
2008
1670
|
let ie;
|
|
2009
|
-
e[42] !== t ? (ie = (
|
|
2010
|
-
const
|
|
2011
|
-
let
|
|
2012
|
-
e[44] !==
|
|
2013
|
-
const
|
|
2014
|
-
let
|
|
2015
|
-
e[47] !==
|
|
2016
|
-
|
|
2017
|
-
}, e[47] =
|
|
2018
|
-
const
|
|
2019
|
-
let
|
|
2020
|
-
e[50] !==
|
|
2021
|
-
|
|
2022
|
-
}, e[50] =
|
|
2023
|
-
const
|
|
2024
|
-
let
|
|
2025
|
-
return e[52] !==
|
|
2026
|
-
modes:
|
|
2027
|
-
units:
|
|
1671
|
+
e[42] !== t ? (ie = (L) => L.measurements[t].unit, e[42] = t, e[43] = ie) : ie = e[43];
|
|
1672
|
+
const ae = q(ie), le = q(Ns);
|
|
1673
|
+
let se;
|
|
1674
|
+
e[44] !== le || e[45] !== t ? (se = (L) => le(t, L), e[44] = le, e[45] = t, e[46] = se) : se = e[46];
|
|
1675
|
+
const X = se;
|
|
1676
|
+
let z;
|
|
1677
|
+
e[47] !== N || e[48] !== Z ? (z = () => {
|
|
1678
|
+
N == null || N.resetClickSequence(), Z([]);
|
|
1679
|
+
}, e[47] = N, e[48] = Z, e[49] = z) : z = e[49];
|
|
1680
|
+
const J = z;
|
|
1681
|
+
let W;
|
|
1682
|
+
e[50] !== y ? (W = (L) => {
|
|
1683
|
+
y(L);
|
|
1684
|
+
}, e[50] = y, e[51] = W) : W = e[51];
|
|
1685
|
+
const ce = W;
|
|
1686
|
+
let ye;
|
|
1687
|
+
return e[52] !== J || e[53] !== u || e[54] !== l || e[55] !== f || e[56] !== O || e[57] !== P || e[58] !== N || e[59] !== S || e[60] !== s || e[61] !== ge || e[62] !== p || e[63] !== y || e[64] !== V || e[65] !== x || e[66] !== be || e[67] !== E || e[68] !== Z || e[69] !== X || e[70] !== ce || e[71] !== ae || e[72] !== i ? (ye = {
|
|
1688
|
+
modes: s,
|
|
1689
|
+
units: i,
|
|
2028
1690
|
distance: l,
|
|
2029
1691
|
clearLayerOnStart: u,
|
|
2030
|
-
modeSelected:
|
|
2031
|
-
enabled:
|
|
2032
|
-
finished:
|
|
2033
|
-
locale:
|
|
2034
|
-
modeInstance:
|
|
2035
|
-
positions:
|
|
2036
|
-
unit:
|
|
2037
|
-
setDistance:
|
|
2038
|
-
setModeSelected:
|
|
2039
|
-
setFinished:
|
|
2040
|
-
setLocale:
|
|
2041
|
-
setPositions:
|
|
2042
|
-
setUnit:
|
|
2043
|
-
setEnabled:
|
|
2044
|
-
toggleLayer:
|
|
2045
|
-
clearLayer:
|
|
2046
|
-
setModeInstance:
|
|
2047
|
-
}, e[52] =
|
|
1692
|
+
modeSelected: S,
|
|
1693
|
+
enabled: f,
|
|
1694
|
+
finished: O,
|
|
1695
|
+
locale: P,
|
|
1696
|
+
modeInstance: N,
|
|
1697
|
+
positions: ge,
|
|
1698
|
+
unit: ae,
|
|
1699
|
+
setDistance: p,
|
|
1700
|
+
setModeSelected: E,
|
|
1701
|
+
setFinished: V,
|
|
1702
|
+
setLocale: x,
|
|
1703
|
+
setPositions: Z,
|
|
1704
|
+
setUnit: X,
|
|
1705
|
+
setEnabled: y,
|
|
1706
|
+
toggleLayer: ce,
|
|
1707
|
+
clearLayer: J,
|
|
1708
|
+
setModeInstance: be
|
|
1709
|
+
}, e[52] = J, e[53] = u, e[54] = l, e[55] = f, e[56] = O, e[57] = P, e[58] = N, e[59] = S, e[60] = s, e[61] = ge, e[62] = p, e[63] = y, e[64] = V, e[65] = x, e[66] = be, e[67] = E, e[68] = Z, e[69] = X, e[70] = ce, e[71] = ae, e[72] = i, e[73] = ye) : ye = e[73], ye;
|
|
2048
1710
|
}
|
|
2049
|
-
function
|
|
2050
|
-
return
|
|
1711
|
+
function Ns(o) {
|
|
1712
|
+
return o.setUnit;
|
|
2051
1713
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return
|
|
1714
|
+
function Is(o) {
|
|
1715
|
+
return o.setPositions;
|
|
2054
1716
|
}
|
|
2055
|
-
function
|
|
2056
|
-
return
|
|
1717
|
+
function Bs(o) {
|
|
1718
|
+
return o.setModeInstance;
|
|
2057
1719
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
1720
|
+
function Hs(o) {
|
|
1721
|
+
return o.setLocale;
|
|
2060
1722
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
1723
|
+
function Qs(o) {
|
|
1724
|
+
return o.setFinished;
|
|
2063
1725
|
}
|
|
2064
|
-
function
|
|
2065
|
-
return
|
|
1726
|
+
function Ks(o) {
|
|
1727
|
+
return o.setModeSelected;
|
|
2066
1728
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
1729
|
+
function Gs(o) {
|
|
1730
|
+
return o.setEnabled;
|
|
2069
1731
|
}
|
|
2070
|
-
function
|
|
2071
|
-
return
|
|
1732
|
+
function Zs(o) {
|
|
1733
|
+
return o.setDistance;
|
|
2072
1734
|
}
|
|
2073
|
-
function
|
|
2074
|
-
const e =
|
|
1735
|
+
function zs(o) {
|
|
1736
|
+
const e = C(42), {
|
|
2075
1737
|
mapId: t,
|
|
2076
1738
|
textOptions: n,
|
|
2077
|
-
children:
|
|
2078
|
-
} =
|
|
2079
|
-
let
|
|
2080
|
-
e[0] !== t ? (
|
|
1739
|
+
children: s
|
|
1740
|
+
} = o;
|
|
1741
|
+
let r;
|
|
1742
|
+
e[0] !== t ? (r = {
|
|
2081
1743
|
mapId: t
|
|
2082
|
-
}, e[0] = t, e[1] =
|
|
1744
|
+
}, e[0] = t, e[1] = r) : r = e[1];
|
|
2083
1745
|
const {
|
|
2084
|
-
modes:
|
|
1746
|
+
modes: i,
|
|
2085
1747
|
units: a,
|
|
2086
1748
|
distance: l,
|
|
2087
|
-
setDistance:
|
|
1749
|
+
setDistance: m,
|
|
2088
1750
|
clearLayerOnStart: c,
|
|
2089
|
-
modeSelected:
|
|
1751
|
+
modeSelected: p,
|
|
2090
1752
|
setModeSelected: d,
|
|
2091
1753
|
enabled: u,
|
|
2092
|
-
setEnabled:
|
|
2093
|
-
finished:
|
|
2094
|
-
setFinished:
|
|
2095
|
-
locale:
|
|
2096
|
-
setLocale:
|
|
2097
|
-
modeInstance:
|
|
2098
|
-
setModeInstance:
|
|
2099
|
-
positions:
|
|
2100
|
-
setPositions:
|
|
2101
|
-
unit:
|
|
2102
|
-
setUnit:
|
|
2103
|
-
clearLayer:
|
|
2104
|
-
toggleLayer:
|
|
2105
|
-
} =
|
|
2106
|
-
let
|
|
2107
|
-
e[2] !==
|
|
2108
|
-
if (
|
|
2109
|
-
const
|
|
2110
|
-
|
|
1754
|
+
setEnabled: g,
|
|
1755
|
+
finished: f,
|
|
1756
|
+
setFinished: M,
|
|
1757
|
+
locale: h,
|
|
1758
|
+
setLocale: y,
|
|
1759
|
+
modeInstance: T,
|
|
1760
|
+
setModeInstance: S,
|
|
1761
|
+
positions: v,
|
|
1762
|
+
setPositions: _,
|
|
1763
|
+
unit: E,
|
|
1764
|
+
setUnit: F,
|
|
1765
|
+
clearLayer: O,
|
|
1766
|
+
toggleLayer: D
|
|
1767
|
+
} = ut(r);
|
|
1768
|
+
let U;
|
|
1769
|
+
e[2] !== p || e[3] !== i || e[4] !== S || e[5] !== _ ? (U = () => {
|
|
1770
|
+
if (p && i[p]) {
|
|
1771
|
+
const x = i[p].mode;
|
|
1772
|
+
S(new x());
|
|
2111
1773
|
}
|
|
2112
1774
|
return () => {
|
|
2113
|
-
|
|
1775
|
+
_([]);
|
|
2114
1776
|
};
|
|
2115
|
-
}, e[2] =
|
|
2116
|
-
let
|
|
2117
|
-
e[7] !==
|
|
2118
|
-
let
|
|
2119
|
-
e[13] !==
|
|
2120
|
-
|
|
2121
|
-
}, e[13] =
|
|
2122
|
-
const
|
|
2123
|
-
let
|
|
2124
|
-
return e[18] !==
|
|
1777
|
+
}, e[2] = p, e[3] = i, e[4] = S, e[5] = _, e[6] = U) : U = e[6];
|
|
1778
|
+
let V;
|
|
1779
|
+
e[7] !== p || e[8] !== i || e[9] !== g || e[10] !== S || e[11] !== _ ? (V = [i, p, _, S, g], e[7] = p, e[8] = i, e[9] = g, e[10] = S, e[11] = _, e[12] = V) : V = e[12], Y(U, V);
|
|
1780
|
+
let b;
|
|
1781
|
+
e[13] !== D || e[14] !== O || e[15] !== c || e[16] !== f ? (b = (x) => {
|
|
1782
|
+
x && (c || !f) && O(), D(x);
|
|
1783
|
+
}, e[13] = D, e[14] = O, e[15] = c, e[16] = f, e[17] = b) : b = e[17];
|
|
1784
|
+
const P = b, k = !!c;
|
|
1785
|
+
let A;
|
|
1786
|
+
return e[18] !== s || e[19] !== O || e[20] !== l || e[21] !== u || e[22] !== f || e[23] !== h || e[24] !== t || e[25] !== T || e[26] !== p || e[27] !== i || e[28] !== v || e[29] !== m || e[30] !== g || e[31] !== M || e[32] !== y || e[33] !== d || e[34] !== _ || e[35] !== F || e[36] !== k || e[37] !== n || e[38] !== P || e[39] !== E || e[40] !== a ? (A = s({
|
|
2125
1787
|
mapId: t,
|
|
2126
1788
|
distance: l,
|
|
2127
1789
|
enabled: u,
|
|
2128
|
-
finished:
|
|
2129
|
-
locale:
|
|
2130
|
-
positions:
|
|
2131
|
-
unit:
|
|
2132
|
-
clearLayerOnStart:
|
|
2133
|
-
modeSelected:
|
|
2134
|
-
modes:
|
|
1790
|
+
finished: f,
|
|
1791
|
+
locale: h,
|
|
1792
|
+
positions: v,
|
|
1793
|
+
unit: E,
|
|
1794
|
+
clearLayerOnStart: k,
|
|
1795
|
+
modeSelected: p,
|
|
1796
|
+
modes: i,
|
|
2135
1797
|
units: a,
|
|
2136
|
-
value:
|
|
1798
|
+
value: Ce({
|
|
2137
1799
|
meters: l,
|
|
2138
|
-
unit:
|
|
2139
|
-
locale:
|
|
1800
|
+
unit: E,
|
|
1801
|
+
locale: h,
|
|
2140
1802
|
options: n
|
|
2141
1803
|
}),
|
|
2142
|
-
modeInstance:
|
|
1804
|
+
modeInstance: T,
|
|
2143
1805
|
setModeSelected: d,
|
|
2144
|
-
setDistance:
|
|
2145
|
-
setFinished:
|
|
2146
|
-
setLocale:
|
|
2147
|
-
setPositions:
|
|
2148
|
-
setUnit:
|
|
2149
|
-
setEnabled:
|
|
2150
|
-
toggleLayer:
|
|
2151
|
-
clearLayer:
|
|
2152
|
-
}), e[18] =
|
|
2153
|
-
}
|
|
2154
|
-
const
|
|
2155
|
-
function
|
|
2156
|
-
children:
|
|
1806
|
+
setDistance: m,
|
|
1807
|
+
setFinished: M,
|
|
1808
|
+
setLocale: y,
|
|
1809
|
+
setPositions: _,
|
|
1810
|
+
setUnit: F,
|
|
1811
|
+
setEnabled: g,
|
|
1812
|
+
toggleLayer: P,
|
|
1813
|
+
clearLayer: O
|
|
1814
|
+
}), e[18] = s, e[19] = O, e[20] = l, e[21] = u, e[22] = f, e[23] = h, e[24] = t, e[25] = T, e[26] = p, e[27] = i, e[28] = v, e[29] = m, e[30] = g, e[31] = M, e[32] = y, e[33] = d, e[34] = _, e[35] = F, e[36] = k, e[37] = n, e[38] = P, e[39] = E, e[40] = a, e[41] = A) : A = e[41], A;
|
|
1815
|
+
}
|
|
1816
|
+
const Ws = [ve];
|
|
1817
|
+
function Ys({
|
|
1818
|
+
children: o,
|
|
2157
1819
|
mapId: e,
|
|
2158
1820
|
defaultProps: {
|
|
2159
|
-
styles: t =
|
|
1821
|
+
styles: t = Ge.styles
|
|
2160
1822
|
} = {
|
|
2161
|
-
styles:
|
|
1823
|
+
styles: Ge.styles
|
|
2162
1824
|
},
|
|
2163
1825
|
layerProps: n = {},
|
|
2164
|
-
textOptions:
|
|
1826
|
+
textOptions: s
|
|
2165
1827
|
}) {
|
|
2166
1828
|
const {
|
|
2167
|
-
setDistance:
|
|
2168
|
-
clearLayerOnStart:
|
|
1829
|
+
setDistance: r,
|
|
1830
|
+
clearLayerOnStart: i,
|
|
2169
1831
|
enabled: a,
|
|
2170
1832
|
finished: l,
|
|
2171
|
-
setFinished:
|
|
1833
|
+
setFinished: m,
|
|
2172
1834
|
locale: c,
|
|
2173
|
-
setPositions:
|
|
1835
|
+
setPositions: p,
|
|
2174
1836
|
unit: d,
|
|
2175
1837
|
modeInstance: u
|
|
2176
|
-
} =
|
|
1838
|
+
} = ut({
|
|
2177
1839
|
mapId: e
|
|
2178
|
-
}),
|
|
2179
|
-
var
|
|
2180
|
-
return (
|
|
2181
|
-
}));
|
|
2182
|
-
Y(() => (a &&
|
|
2183
|
-
|
|
2184
|
-
}), [
|
|
2185
|
-
|
|
2186
|
-
|
|
1840
|
+
}), g = _e((v) => v.setLayer), f = w((v) => v.addLayers), M = w((v) => v.removeLayers), h = w(tt((v) => {
|
|
1841
|
+
var _;
|
|
1842
|
+
return (_ = v.maps[e]) == null ? void 0 : _.layers.filter((E) => !Ws.includes(E));
|
|
1843
|
+
})), y = w((v) => v.getDeckInstance), T = Ee({});
|
|
1844
|
+
Y(() => (a && f(e, [ve]), () => {
|
|
1845
|
+
M(e, [ve]);
|
|
1846
|
+
}), [f, i, e, M, a]), Y(() => {
|
|
1847
|
+
h == null || h.forEach((v) => {
|
|
1848
|
+
var E;
|
|
1849
|
+
if (a) {
|
|
1850
|
+
const F = (E = y(e)) == null ? void 0 : E.props.layers.find((O) => O.props.id === v);
|
|
1851
|
+
T.current[v] = F == null ? void 0 : F.props.pickable;
|
|
1852
|
+
}
|
|
1853
|
+
const _ = !a && T.current[v];
|
|
1854
|
+
g(v, {
|
|
2187
1855
|
props: {
|
|
2188
|
-
pickable:
|
|
1856
|
+
pickable: _
|
|
2189
1857
|
}
|
|
2190
1858
|
});
|
|
2191
1859
|
});
|
|
2192
|
-
}, [a,
|
|
2193
|
-
const S =
|
|
2194
|
-
editType:
|
|
2195
|
-
editContext:
|
|
1860
|
+
}, [a, y, e, h, g]);
|
|
1861
|
+
const S = $(({
|
|
1862
|
+
editType: v,
|
|
1863
|
+
editContext: _
|
|
2196
1864
|
}) => {
|
|
2197
|
-
if (
|
|
1865
|
+
if (v === K.cancel) {
|
|
2198
1866
|
u.resetClickSequence();
|
|
2199
1867
|
return;
|
|
2200
1868
|
}
|
|
2201
|
-
|
|
2202
|
-
const
|
|
2203
|
-
|
|
2204
|
-
}, [u,
|
|
1869
|
+
v === K.addPosition && r(_.distance), m(!!_.finished);
|
|
1870
|
+
const E = _.positions;
|
|
1871
|
+
E != null && E.length && p(E);
|
|
1872
|
+
}, [u, r, m, p]);
|
|
2205
1873
|
return Y(() => {
|
|
2206
|
-
const
|
|
1874
|
+
const v = l ? t.colors.finished : t.colors.editing, _ = l ? t.colors.finished : t.colors.point, E = Us({
|
|
2207
1875
|
layerProps: {
|
|
2208
1876
|
...n,
|
|
2209
1877
|
pickable: n.pickable ?? !l
|
|
2210
1878
|
},
|
|
2211
1879
|
enabled: a,
|
|
2212
|
-
guideColor:
|
|
2213
|
-
pointColor:
|
|
1880
|
+
guideColor: v,
|
|
1881
|
+
pointColor: _,
|
|
2214
1882
|
locale: c,
|
|
2215
1883
|
onEdit: S,
|
|
2216
1884
|
unit: d,
|
|
2217
1885
|
mode: u,
|
|
2218
|
-
textOptions:
|
|
1886
|
+
textOptions: s
|
|
2219
1887
|
});
|
|
2220
|
-
|
|
2221
|
-
}, [l, u, n, c, S,
|
|
1888
|
+
g(ve, E);
|
|
1889
|
+
}, [l, u, n, c, S, g, t.colors.editing, t.colors.finished, t.colors.point, s, d, a]), o;
|
|
2222
1890
|
}
|
|
2223
|
-
|
|
2224
|
-
function
|
|
2225
|
-
const e =
|
|
1891
|
+
Ys.Controls = zs;
|
|
1892
|
+
function Xs(o) {
|
|
1893
|
+
const e = C(7), {
|
|
2226
1894
|
mapId: t
|
|
2227
|
-
} =
|
|
1895
|
+
} = o;
|
|
2228
1896
|
let n;
|
|
2229
|
-
e[0] !== t ? (n = (
|
|
1897
|
+
e[0] !== t ? (n = (m) => m.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2230
1898
|
const {
|
|
2231
|
-
layers:
|
|
2232
|
-
} =
|
|
2233
|
-
let
|
|
2234
|
-
if (e[2] !==
|
|
2235
|
-
let
|
|
2236
|
-
e[5] !==
|
|
1899
|
+
layers: s
|
|
1900
|
+
} = w(n), r = _e(en);
|
|
1901
|
+
let i, a;
|
|
1902
|
+
if (e[2] !== r || e[3] !== s) {
|
|
1903
|
+
let m;
|
|
1904
|
+
e[5] !== r ? (m = (c) => r[c], e[5] = r, e[6] = m) : m = e[6], a = s.map(m).filter(Js), e[2] = r, e[3] = s, e[4] = a;
|
|
2237
1905
|
} else
|
|
2238
1906
|
a = e[4];
|
|
2239
|
-
return
|
|
1907
|
+
return i = a, i;
|
|
2240
1908
|
}
|
|
2241
|
-
function
|
|
2242
|
-
return !!
|
|
1909
|
+
function Js(o) {
|
|
1910
|
+
return !!o;
|
|
2243
1911
|
}
|
|
2244
|
-
function
|
|
2245
|
-
return
|
|
1912
|
+
function en(o) {
|
|
1913
|
+
return o.layers;
|
|
2246
1914
|
}
|
|
2247
|
-
const
|
|
2248
|
-
function
|
|
2249
|
-
const e =
|
|
1915
|
+
const We = [ke, Te, ve];
|
|
1916
|
+
function dt(o) {
|
|
1917
|
+
const e = o.filter((n) => !We.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = We.map((n) => o.find((s) => s.props.id === n)).filter((n) => !!n);
|
|
2250
1918
|
return [...e, ...t];
|
|
2251
1919
|
}
|
|
2252
|
-
const
|
|
2253
|
-
function
|
|
2254
|
-
id:
|
|
1920
|
+
const tn = 200;
|
|
1921
|
+
function zn({
|
|
1922
|
+
id: o,
|
|
2255
1923
|
onLoad: e,
|
|
2256
1924
|
onViewStateChange: t,
|
|
2257
1925
|
...n
|
|
2258
1926
|
}) {
|
|
2259
1927
|
const {
|
|
2260
|
-
basemap:
|
|
2261
|
-
instanceRef:
|
|
2262
|
-
overlayRef:
|
|
2263
|
-
} =
|
|
2264
|
-
mapId:
|
|
2265
|
-
}),
|
|
2266
|
-
const
|
|
2267
|
-
if (
|
|
2268
|
-
d(
|
|
2269
|
-
},
|
|
2270
|
-
t(
|
|
1928
|
+
basemap: s,
|
|
1929
|
+
instanceRef: r,
|
|
1930
|
+
overlayRef: i
|
|
1931
|
+
} = w((S) => S.maps[o]), a = Ee(null), l = w((S) => S.viewStates[o]), m = w((S) => S.setViewState), c = w((S) => S.setLoad), p = w((S) => S.setLayersLoad), d = w((S) => S.updateViewPort), u = Xs({
|
|
1932
|
+
mapId: o
|
|
1933
|
+
}), g = de(() => dt(u), [u]), f = $((S) => {
|
|
1934
|
+
const v = m;
|
|
1935
|
+
if (S.interactionState.isZooming && (a.current && clearInterval(a.current), a.current = setTimeout(() => {
|
|
1936
|
+
d(o);
|
|
1937
|
+
}, tn)), t) {
|
|
1938
|
+
t(S, v);
|
|
2271
1939
|
return;
|
|
2272
1940
|
}
|
|
2273
|
-
|
|
2274
|
-
}, [
|
|
2275
|
-
c(
|
|
2276
|
-
}, [
|
|
2277
|
-
var
|
|
2278
|
-
const
|
|
2279
|
-
|
|
2280
|
-
}, [
|
|
2281
|
-
d(
|
|
2282
|
-
}, [
|
|
2283
|
-
return /* @__PURE__ */
|
|
2284
|
-
}
|
|
2285
|
-
const
|
|
1941
|
+
v(o, S.viewState);
|
|
1942
|
+
}, [o, t, m, d]), M = $((S) => {
|
|
1943
|
+
c(o, S), e == null || e(S), d(o);
|
|
1944
|
+
}, [o, e, c, d]), h = $((S) => {
|
|
1945
|
+
var E, F, O;
|
|
1946
|
+
const v = (F = (E = r == null ? void 0 : r.current) == null ? void 0 : E.deck) == null ? void 0 : F.props.layers, _ = !!(v != null && v.every((D) => D == null ? void 0 : D.isLoaded));
|
|
1947
|
+
p(o, _), (O = n.onAfterRender) == null || O.call(n, S);
|
|
1948
|
+
}, [o, r, n, p]), y = n.onDragEnd, T = $((...S) => {
|
|
1949
|
+
d(o), y && y(...S);
|
|
1950
|
+
}, [o, d, y]);
|
|
1951
|
+
return /* @__PURE__ */ H(ns, { ...n, layers: g, instanceRef: r, overlayRef: i, basemap: s, initialViewState: l, onLoad: M, onViewStateChange: f, onAfterRender: h, onDragEnd: T });
|
|
1952
|
+
}
|
|
1953
|
+
const sn = "https://gcp-us-east1.api.carto.com", nn = "ps", on = et((o) => ({
|
|
2286
1954
|
sources: {},
|
|
2287
|
-
setSource: (e, t) =>
|
|
2288
|
-
const
|
|
1955
|
+
setSource: (e, t) => o((n) => {
|
|
1956
|
+
const s = {
|
|
2289
1957
|
...n.sources
|
|
2290
1958
|
};
|
|
2291
1959
|
if (!t)
|
|
2292
|
-
return delete
|
|
2293
|
-
sources:
|
|
1960
|
+
return delete s[e], {
|
|
1961
|
+
sources: s
|
|
2294
1962
|
};
|
|
2295
|
-
const
|
|
2296
|
-
...
|
|
2297
|
-
apiBaseUrl:
|
|
2298
|
-
clientId:
|
|
1963
|
+
const r = {
|
|
1964
|
+
...s[e] ?? {
|
|
1965
|
+
apiBaseUrl: sn,
|
|
1966
|
+
clientId: nn
|
|
2299
1967
|
},
|
|
2300
1968
|
...t
|
|
2301
|
-
},
|
|
2302
|
-
source:
|
|
1969
|
+
}, i = an({
|
|
1970
|
+
source: r
|
|
2303
1971
|
});
|
|
2304
|
-
return
|
|
2305
|
-
sources:
|
|
1972
|
+
return r.widgets = i, s[e] = r, {
|
|
1973
|
+
sources: s
|
|
2306
1974
|
};
|
|
2307
1975
|
})
|
|
2308
1976
|
}));
|
|
2309
|
-
function
|
|
2310
|
-
const e =
|
|
1977
|
+
function rn(o) {
|
|
1978
|
+
const e = C(2);
|
|
2311
1979
|
let t;
|
|
2312
|
-
return e[0] !==
|
|
1980
|
+
return e[0] !== o ? (t = (n) => n.sources[o], e[0] = o, e[1] = t) : t = e[1], on(t);
|
|
2313
1981
|
}
|
|
2314
|
-
function
|
|
2315
|
-
source:
|
|
1982
|
+
function an({
|
|
1983
|
+
source: o
|
|
2316
1984
|
}) {
|
|
2317
1985
|
const e = {
|
|
2318
1986
|
query: () => {
|
|
2319
|
-
const
|
|
2320
|
-
return new
|
|
2321
|
-
...
|
|
1987
|
+
const s = o;
|
|
1988
|
+
return new Yt({
|
|
1989
|
+
...s,
|
|
2322
1990
|
accessToken: "",
|
|
2323
|
-
sqlQuery:
|
|
2324
|
-
spatialDataType:
|
|
1991
|
+
sqlQuery: s.data,
|
|
1992
|
+
spatialDataType: s.spatialDataType ?? "geo"
|
|
2325
1993
|
});
|
|
2326
1994
|
},
|
|
2327
1995
|
table: () => {
|
|
2328
|
-
const
|
|
2329
|
-
return new
|
|
2330
|
-
...
|
|
1996
|
+
const s = o;
|
|
1997
|
+
return new Wt({
|
|
1998
|
+
...s,
|
|
2331
1999
|
accessToken: "",
|
|
2332
|
-
tableName:
|
|
2333
|
-
spatialDataType:
|
|
2000
|
+
tableName: s.data,
|
|
2001
|
+
spatialDataType: s.spatialDataType ?? "geo"
|
|
2334
2002
|
});
|
|
2335
2003
|
},
|
|
2336
2004
|
tileset: () => {
|
|
2337
|
-
const
|
|
2338
|
-
return new
|
|
2339
|
-
...
|
|
2005
|
+
const s = o;
|
|
2006
|
+
return new Zt({
|
|
2007
|
+
...s,
|
|
2340
2008
|
accessToken: "",
|
|
2341
|
-
tableName:
|
|
2342
|
-
tileFormat:
|
|
2343
|
-
spatialDataType:
|
|
2009
|
+
tableName: s.data,
|
|
2010
|
+
tileFormat: s.tileFormat ?? zt.BINARY,
|
|
2011
|
+
spatialDataType: s.spatialDataType ?? "geo"
|
|
2344
2012
|
});
|
|
2345
2013
|
},
|
|
2346
2014
|
raster: () => {
|
|
2347
|
-
const
|
|
2348
|
-
return
|
|
2349
|
-
...
|
|
2015
|
+
const s = o;
|
|
2016
|
+
return s.rasterMetadata ? new Gt({
|
|
2017
|
+
...s,
|
|
2350
2018
|
accessToken: "",
|
|
2351
|
-
tableName:
|
|
2019
|
+
tableName: s.data,
|
|
2352
2020
|
spatialDataType: "quadbin",
|
|
2353
|
-
rasterMetadata:
|
|
2021
|
+
rasterMetadata: s.rasterMetadata
|
|
2354
2022
|
}) : null;
|
|
2355
2023
|
}
|
|
2356
|
-
}, t =
|
|
2024
|
+
}, t = o.type.split("+")[0], n = e[t];
|
|
2357
2025
|
return n == null ? void 0 : n();
|
|
2358
2026
|
}
|
|
2359
|
-
function
|
|
2360
|
-
const t =
|
|
2361
|
-
return
|
|
2027
|
+
function pe(o, e) {
|
|
2028
|
+
const t = rn(e);
|
|
2029
|
+
return de(() => {
|
|
2362
2030
|
const n = t == null ? void 0 : t.widgets;
|
|
2363
|
-
return !n || !
|
|
2364
|
-
}, [
|
|
2031
|
+
return !n || !o ? null : (n.props.accessToken = o, n);
|
|
2032
|
+
}, [o, t]);
|
|
2365
2033
|
}
|
|
2366
|
-
function
|
|
2367
|
-
const e =
|
|
2034
|
+
function ln(o) {
|
|
2035
|
+
const e = C(18), {
|
|
2368
2036
|
accessToken: t,
|
|
2369
2037
|
sourceId: n,
|
|
2370
|
-
widgetProps:
|
|
2371
|
-
useQueryProps:
|
|
2372
|
-
} =
|
|
2373
|
-
let
|
|
2374
|
-
e[0] !==
|
|
2038
|
+
widgetProps: s,
|
|
2039
|
+
useQueryProps: r
|
|
2040
|
+
} = o;
|
|
2041
|
+
let i;
|
|
2042
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2375
2043
|
let a, l;
|
|
2376
|
-
e[2] !==
|
|
2044
|
+
e[2] !== i ? ({
|
|
2377
2045
|
enabled: a,
|
|
2378
2046
|
...l
|
|
2379
|
-
} =
|
|
2380
|
-
const
|
|
2047
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2048
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2381
2049
|
let d;
|
|
2382
|
-
e[5] !== t || e[6] !== n || e[7] !==
|
|
2050
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["categories", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2383
2051
|
let u;
|
|
2384
|
-
e[10] !== c || e[11] !==
|
|
2385
|
-
const
|
|
2386
|
-
let
|
|
2387
|
-
return e[13] !== d || e[14] !== u || e[15] !==
|
|
2052
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getCategories(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2053
|
+
const g = !!c && m;
|
|
2054
|
+
let f;
|
|
2055
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2388
2056
|
queryKey: d,
|
|
2389
2057
|
queryFn: u,
|
|
2390
|
-
enabled:
|
|
2058
|
+
enabled: g,
|
|
2391
2059
|
...l
|
|
2392
|
-
}, e[13] = d, e[14] = u, e[15] =
|
|
2060
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2393
2061
|
}
|
|
2394
|
-
function
|
|
2395
|
-
const e =
|
|
2062
|
+
function Wn(o) {
|
|
2063
|
+
const e = C(6);
|
|
2396
2064
|
let t, n;
|
|
2397
|
-
e[0] !==
|
|
2065
|
+
e[0] !== o ? ({
|
|
2398
2066
|
children: t,
|
|
2399
2067
|
...n
|
|
2400
|
-
} =
|
|
2401
|
-
const
|
|
2402
|
-
let
|
|
2403
|
-
return e[3] !== t || e[4] !==
|
|
2068
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2069
|
+
const s = ln(n);
|
|
2070
|
+
let r;
|
|
2071
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2404
2072
|
}
|
|
2405
|
-
function
|
|
2406
|
-
const e =
|
|
2073
|
+
function cn(o) {
|
|
2074
|
+
const e = C(18), {
|
|
2407
2075
|
accessToken: t,
|
|
2408
2076
|
sourceId: n,
|
|
2409
|
-
widgetProps:
|
|
2410
|
-
useQueryProps:
|
|
2411
|
-
} =
|
|
2412
|
-
let
|
|
2413
|
-
e[0] !==
|
|
2077
|
+
widgetProps: s,
|
|
2078
|
+
useQueryProps: r
|
|
2079
|
+
} = o;
|
|
2080
|
+
let i;
|
|
2081
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2414
2082
|
let a, l;
|
|
2415
|
-
e[2] !==
|
|
2083
|
+
e[2] !== i ? ({
|
|
2416
2084
|
enabled: a,
|
|
2417
2085
|
...l
|
|
2418
|
-
} =
|
|
2419
|
-
const
|
|
2086
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2087
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2420
2088
|
let d;
|
|
2421
|
-
e[5] !== t || e[6] !== n || e[7] !==
|
|
2089
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["features", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2422
2090
|
let u;
|
|
2423
|
-
e[10] !== c || e[11] !==
|
|
2424
|
-
const
|
|
2425
|
-
let
|
|
2426
|
-
return e[13] !== d || e[14] !== u || e[15] !==
|
|
2091
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getFeatures(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2092
|
+
const g = !!c && m;
|
|
2093
|
+
let f;
|
|
2094
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2427
2095
|
queryKey: d,
|
|
2428
2096
|
queryFn: u,
|
|
2429
|
-
enabled:
|
|
2097
|
+
enabled: g,
|
|
2430
2098
|
...l
|
|
2431
|
-
}, e[13] = d, e[14] = u, e[15] =
|
|
2099
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2432
2100
|
}
|
|
2433
|
-
function
|
|
2434
|
-
const e =
|
|
2101
|
+
function Yn(o) {
|
|
2102
|
+
const e = C(6);
|
|
2435
2103
|
let t, n;
|
|
2436
|
-
e[0] !==
|
|
2104
|
+
e[0] !== o ? ({
|
|
2437
2105
|
children: t,
|
|
2438
2106
|
...n
|
|
2439
|
-
} =
|
|
2440
|
-
const
|
|
2441
|
-
let
|
|
2442
|
-
return e[3] !== t || e[4] !==
|
|
2107
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2108
|
+
const s = cn(n);
|
|
2109
|
+
let r;
|
|
2110
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2443
2111
|
}
|
|
2444
|
-
function
|
|
2445
|
-
const e =
|
|
2112
|
+
function un(o) {
|
|
2113
|
+
const e = C(18), {
|
|
2446
2114
|
accessToken: t,
|
|
2447
2115
|
sourceId: n,
|
|
2448
|
-
widgetProps:
|
|
2449
|
-
useQueryProps:
|
|
2450
|
-
} =
|
|
2451
|
-
let
|
|
2452
|
-
e[0] !==
|
|
2116
|
+
widgetProps: s,
|
|
2117
|
+
useQueryProps: r
|
|
2118
|
+
} = o;
|
|
2119
|
+
let i;
|
|
2120
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2453
2121
|
let a, l;
|
|
2454
|
-
e[2] !==
|
|
2122
|
+
e[2] !== i ? ({
|
|
2455
2123
|
enabled: a,
|
|
2456
2124
|
...l
|
|
2457
|
-
} =
|
|
2458
|
-
const
|
|
2125
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2126
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2459
2127
|
let d;
|
|
2460
|
-
e[5] !== t || e[6] !== n || e[7] !==
|
|
2128
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["formula", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2461
2129
|
let u;
|
|
2462
|
-
e[10] !== c || e[11] !==
|
|
2463
|
-
const
|
|
2464
|
-
let
|
|
2465
|
-
return e[13] !== d || e[14] !== u || e[15] !==
|
|
2130
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getFormula(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2131
|
+
const g = !!c && m;
|
|
2132
|
+
let f;
|
|
2133
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2466
2134
|
queryKey: d,
|
|
2467
2135
|
queryFn: u,
|
|
2468
|
-
enabled:
|
|
2136
|
+
enabled: g,
|
|
2469
2137
|
...l
|
|
2470
|
-
}, e[13] = d, e[14] = u, e[15] =
|
|
2138
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2471
2139
|
}
|
|
2472
|
-
function
|
|
2473
|
-
const e =
|
|
2140
|
+
function Xn(o) {
|
|
2141
|
+
const e = C(6);
|
|
2474
2142
|
let t, n;
|
|
2475
|
-
e[0] !==
|
|
2143
|
+
e[0] !== o ? ({
|
|
2476
2144
|
children: t,
|
|
2477
2145
|
...n
|
|
2478
|
-
} =
|
|
2479
|
-
const
|
|
2480
|
-
let
|
|
2481
|
-
return e[3] !== t || e[4] !==
|
|
2146
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2147
|
+
const s = un(n);
|
|
2148
|
+
let r;
|
|
2149
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2482
2150
|
}
|
|
2483
|
-
function
|
|
2484
|
-
const e =
|
|
2151
|
+
function dn(o) {
|
|
2152
|
+
const e = C(18), {
|
|
2485
2153
|
accessToken: t,
|
|
2486
2154
|
sourceId: n,
|
|
2487
|
-
widgetProps:
|
|
2488
|
-
useQueryProps:
|
|
2489
|
-
} =
|
|
2490
|
-
let
|
|
2491
|
-
e[0] !==
|
|
2155
|
+
widgetProps: s,
|
|
2156
|
+
useQueryProps: r
|
|
2157
|
+
} = o;
|
|
2158
|
+
let i;
|
|
2159
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2492
2160
|
let a, l;
|
|
2493
|
-
e[2] !==
|
|
2161
|
+
e[2] !== i ? ({
|
|
2494
2162
|
enabled: a,
|
|
2495
2163
|
...l
|
|
2496
|
-
} =
|
|
2497
|
-
const
|
|
2164
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2165
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2498
2166
|
let d;
|
|
2499
|
-
e[5] !== t || e[6] !== n || e[7] !==
|
|
2167
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["histogram", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2500
2168
|
let u;
|
|
2501
|
-
e[10] !== c || e[11] !==
|
|
2502
|
-
const
|
|
2503
|
-
let
|
|
2504
|
-
return e[13] !== d || e[14] !== u || e[15] !==
|
|
2169
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getHistogram(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2170
|
+
const g = !!c && m;
|
|
2171
|
+
let f;
|
|
2172
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2505
2173
|
queryKey: d,
|
|
2506
2174
|
queryFn: u,
|
|
2507
|
-
enabled:
|
|
2175
|
+
enabled: g,
|
|
2508
2176
|
...l
|
|
2509
|
-
}, e[13] = d, e[14] = u, e[15] =
|
|
2177
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2510
2178
|
}
|
|
2511
|
-
function
|
|
2512
|
-
const e =
|
|
2179
|
+
function Jn(o) {
|
|
2180
|
+
const e = C(6);
|
|
2513
2181
|
let t, n;
|
|
2514
|
-
e[0] !==
|
|
2182
|
+
e[0] !== o ? ({
|
|
2515
2183
|
children: t,
|
|
2516
2184
|
...n
|
|
2517
|
-
} =
|
|
2518
|
-
const
|
|
2519
|
-
let
|
|
2520
|
-
return e[3] !== t || e[4] !==
|
|
2185
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2186
|
+
const s = dn(n);
|
|
2187
|
+
let r;
|
|
2188
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2521
2189
|
}
|
|
2522
|
-
function
|
|
2523
|
-
const e =
|
|
2190
|
+
function fn(o) {
|
|
2191
|
+
const e = C(18), {
|
|
2524
2192
|
accessToken: t,
|
|
2525
2193
|
sourceId: n,
|
|
2526
|
-
widgetProps:
|
|
2527
|
-
useQueryProps:
|
|
2528
|
-
} =
|
|
2529
|
-
let
|
|
2530
|
-
e[0] !==
|
|
2194
|
+
widgetProps: s,
|
|
2195
|
+
useQueryProps: r
|
|
2196
|
+
} = o;
|
|
2197
|
+
let i;
|
|
2198
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2531
2199
|
let a, l;
|
|
2532
|
-
e[2] !==
|
|
2200
|
+
e[2] !== i ? ({
|
|
2533
2201
|
enabled: a,
|
|
2534
2202
|
...l
|
|
2535
|
-
} =
|
|
2536
|
-
const
|
|
2203
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2204
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2537
2205
|
let d;
|
|
2538
|
-
e[5] !== t || e[6] !== n || e[7] !==
|
|
2206
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["range", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2539
2207
|
let u;
|
|
2540
|
-
e[10] !== c || e[11] !==
|
|
2541
|
-
const
|
|
2542
|
-
let
|
|
2543
|
-
return e[13] !== d || e[14] !== u || e[15] !==
|
|
2208
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getRange(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2209
|
+
const g = !!c && m;
|
|
2210
|
+
let f;
|
|
2211
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2544
2212
|
queryKey: d,
|
|
2545
2213
|
queryFn: u,
|
|
2546
|
-
enabled:
|
|
2214
|
+
enabled: g,
|
|
2547
2215
|
...l
|
|
2548
|
-
}, e[13] = d, e[14] = u, e[15] =
|
|
2216
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2549
2217
|
}
|
|
2550
|
-
function
|
|
2551
|
-
const e =
|
|
2218
|
+
function eo(o) {
|
|
2219
|
+
const e = C(6);
|
|
2552
2220
|
let t, n;
|
|
2553
|
-
e[0] !==
|
|
2221
|
+
e[0] !== o ? ({
|
|
2554
2222
|
children: t,
|
|
2555
2223
|
...n
|
|
2556
|
-
} =
|
|
2557
|
-
const
|
|
2558
|
-
let
|
|
2559
|
-
return e[3] !== t || e[4] !==
|
|
2224
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2225
|
+
const s = fn(n);
|
|
2226
|
+
let r;
|
|
2227
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2560
2228
|
}
|
|
2561
|
-
function
|
|
2562
|
-
const e =
|
|
2229
|
+
function mn(o) {
|
|
2230
|
+
const e = C(18), {
|
|
2563
2231
|
accessToken: t,
|
|
2564
2232
|
sourceId: n,
|
|
2565
|
-
widgetProps:
|
|
2566
|
-
useQueryProps:
|
|
2567
|
-
} =
|
|
2568
|
-
let
|
|
2569
|
-
e[0] !==
|
|
2233
|
+
widgetProps: s,
|
|
2234
|
+
useQueryProps: r
|
|
2235
|
+
} = o;
|
|
2236
|
+
let i;
|
|
2237
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2570
2238
|
let a, l;
|
|
2571
|
-
e[2] !==
|
|
2239
|
+
e[2] !== i ? ({
|
|
2572
2240
|
enabled: a,
|
|
2573
2241
|
...l
|
|
2574
|
-
} =
|
|
2575
|
-
const
|
|
2242
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2243
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2576
2244
|
let d;
|
|
2577
|
-
e[5] !== t || e[6] !== n || e[7] !==
|
|
2245
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["scatter", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2578
2246
|
let u;
|
|
2579
|
-
e[10] !== c || e[11] !==
|
|
2580
|
-
const
|
|
2581
|
-
let
|
|
2582
|
-
return e[13] !== d || e[14] !== u || e[15] !==
|
|
2247
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getScatter(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2248
|
+
const g = !!c && m;
|
|
2249
|
+
let f;
|
|
2250
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2583
2251
|
queryKey: d,
|
|
2584
2252
|
queryFn: u,
|
|
2585
|
-
enabled:
|
|
2253
|
+
enabled: g,
|
|
2586
2254
|
...l
|
|
2587
|
-
}, e[13] = d, e[14] = u, e[15] =
|
|
2255
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2588
2256
|
}
|
|
2589
|
-
function
|
|
2590
|
-
const e =
|
|
2257
|
+
function to(o) {
|
|
2258
|
+
const e = C(6);
|
|
2591
2259
|
let t, n;
|
|
2592
|
-
e[0] !==
|
|
2260
|
+
e[0] !== o ? ({
|
|
2593
2261
|
children: t,
|
|
2594
2262
|
...n
|
|
2595
|
-
} =
|
|
2596
|
-
const
|
|
2597
|
-
let
|
|
2598
|
-
return e[3] !== t || e[4] !==
|
|
2263
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2264
|
+
const s = mn(n);
|
|
2265
|
+
let r;
|
|
2266
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2599
2267
|
}
|
|
2600
|
-
function
|
|
2601
|
-
const e =
|
|
2268
|
+
function pn(o) {
|
|
2269
|
+
const e = C(18), {
|
|
2602
2270
|
accessToken: t,
|
|
2603
2271
|
sourceId: n,
|
|
2604
|
-
widgetProps:
|
|
2605
|
-
useQueryProps:
|
|
2606
|
-
} =
|
|
2607
|
-
let
|
|
2608
|
-
e[0] !==
|
|
2272
|
+
widgetProps: s,
|
|
2273
|
+
useQueryProps: r
|
|
2274
|
+
} = o;
|
|
2275
|
+
let i;
|
|
2276
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2609
2277
|
let a, l;
|
|
2610
|
-
e[2] !==
|
|
2278
|
+
e[2] !== i ? ({
|
|
2611
2279
|
enabled: a,
|
|
2612
2280
|
...l
|
|
2613
|
-
} =
|
|
2614
|
-
const
|
|
2281
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2282
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2615
2283
|
let d;
|
|
2616
|
-
e[5] !== t || e[6] !== n || e[7] !==
|
|
2284
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["table", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2617
2285
|
let u;
|
|
2618
|
-
e[10] !== c || e[11] !==
|
|
2619
|
-
const
|
|
2620
|
-
let
|
|
2621
|
-
return e[13] !== d || e[14] !== u || e[15] !==
|
|
2286
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getTable(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2287
|
+
const g = !!c && m;
|
|
2288
|
+
let f;
|
|
2289
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2622
2290
|
queryKey: d,
|
|
2623
2291
|
queryFn: u,
|
|
2624
|
-
enabled:
|
|
2292
|
+
enabled: g,
|
|
2625
2293
|
...l
|
|
2626
|
-
}, e[13] = d, e[14] = u, e[15] =
|
|
2294
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2627
2295
|
}
|
|
2628
|
-
function
|
|
2629
|
-
const e =
|
|
2296
|
+
function so(o) {
|
|
2297
|
+
const e = C(6);
|
|
2630
2298
|
let t, n;
|
|
2631
|
-
e[0] !==
|
|
2299
|
+
e[0] !== o ? ({
|
|
2632
2300
|
children: t,
|
|
2633
2301
|
...n
|
|
2634
|
-
} =
|
|
2635
|
-
const
|
|
2636
|
-
let
|
|
2637
|
-
return e[3] !== t || e[4] !==
|
|
2302
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2303
|
+
const s = pn(n);
|
|
2304
|
+
let r;
|
|
2305
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2638
2306
|
}
|
|
2639
|
-
function
|
|
2640
|
-
const e =
|
|
2307
|
+
function gn(o) {
|
|
2308
|
+
const e = C(18), {
|
|
2641
2309
|
accessToken: t,
|
|
2642
2310
|
sourceId: n,
|
|
2643
|
-
widgetProps:
|
|
2644
|
-
useQueryProps:
|
|
2645
|
-
} =
|
|
2646
|
-
let
|
|
2647
|
-
e[0] !==
|
|
2311
|
+
widgetProps: s,
|
|
2312
|
+
useQueryProps: r
|
|
2313
|
+
} = o;
|
|
2314
|
+
let i;
|
|
2315
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2648
2316
|
let a, l;
|
|
2649
|
-
e[2] !==
|
|
2317
|
+
e[2] !== i ? ({
|
|
2650
2318
|
enabled: a,
|
|
2651
2319
|
...l
|
|
2652
|
-
} =
|
|
2653
|
-
const
|
|
2320
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2321
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2654
2322
|
let d;
|
|
2655
|
-
e[5] !== t || e[6] !== n || e[7] !==
|
|
2323
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["time-series", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2656
2324
|
let u;
|
|
2657
|
-
e[10] !== c || e[11] !==
|
|
2658
|
-
const
|
|
2659
|
-
let
|
|
2660
|
-
return e[13] !== d || e[14] !== u || e[15] !==
|
|
2325
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getTimeSeries(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2326
|
+
const g = !!c && m;
|
|
2327
|
+
let f;
|
|
2328
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2661
2329
|
queryKey: d,
|
|
2662
2330
|
queryFn: u,
|
|
2663
|
-
enabled:
|
|
2331
|
+
enabled: g,
|
|
2664
2332
|
...l
|
|
2665
|
-
}, e[13] = d, e[14] = u, e[15] =
|
|
2333
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2666
2334
|
}
|
|
2667
|
-
function
|
|
2668
|
-
const e =
|
|
2335
|
+
function no(o) {
|
|
2336
|
+
const e = C(6);
|
|
2669
2337
|
let t, n;
|
|
2670
|
-
e[0] !==
|
|
2338
|
+
e[0] !== o ? ({
|
|
2671
2339
|
children: t,
|
|
2672
2340
|
...n
|
|
2673
|
-
} =
|
|
2674
|
-
const
|
|
2675
|
-
let
|
|
2676
|
-
return e[3] !== t || e[4] !==
|
|
2341
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2342
|
+
const s = gn(n);
|
|
2343
|
+
let r;
|
|
2344
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2677
2345
|
}
|
|
2678
|
-
function
|
|
2679
|
-
const e =
|
|
2346
|
+
function oo(o) {
|
|
2347
|
+
const e = C(13), {
|
|
2680
2348
|
children: t,
|
|
2681
2349
|
maps: n,
|
|
2682
|
-
lassoTools:
|
|
2683
|
-
measureTools:
|
|
2684
|
-
} =
|
|
2685
|
-
let
|
|
2686
|
-
e[0] !==
|
|
2687
|
-
const a =
|
|
2350
|
+
lassoTools: s,
|
|
2351
|
+
measureTools: r
|
|
2352
|
+
} = o;
|
|
2353
|
+
let i;
|
|
2354
|
+
e[0] !== s ? (i = s === void 0 ? [] : s, e[0] = s, e[1] = i) : i = e[1];
|
|
2355
|
+
const a = i;
|
|
2688
2356
|
let l;
|
|
2689
|
-
e[2] !==
|
|
2690
|
-
const
|
|
2357
|
+
e[2] !== r ? (l = r === void 0 ? [] : r, e[2] = r, e[3] = l) : l = e[3];
|
|
2358
|
+
const m = l;
|
|
2691
2359
|
let c;
|
|
2692
|
-
e[4] !== t || e[5] !==
|
|
2693
|
-
let
|
|
2694
|
-
e[7] !== a || e[8] !== c ? (
|
|
2360
|
+
e[4] !== t || e[5] !== m ? (c = /* @__PURE__ */ H(js, { values: m, children: t }), e[4] = t, e[5] = m, e[6] = c) : c = e[6];
|
|
2361
|
+
let p;
|
|
2362
|
+
e[7] !== a || e[8] !== c ? (p = /* @__PURE__ */ H(Ps, { values: a, children: c }), e[7] = a, e[8] = c, e[9] = p) : p = e[9];
|
|
2695
2363
|
let d;
|
|
2696
|
-
return e[10] !== n || e[11] !==
|
|
2364
|
+
return e[10] !== n || e[11] !== p ? (d = /* @__PURE__ */ H(Ss, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = d) : d = e[12], d;
|
|
2697
2365
|
}
|
|
2698
|
-
function
|
|
2699
|
-
const t =
|
|
2700
|
-
id:
|
|
2366
|
+
function ro(o, e) {
|
|
2367
|
+
const t = _e((m) => m.layers), n = _e((m) => m.setLayer), s = de(() => dt(o.map((m) => t[m]).filter((m) => !!m)), [t, o]), r = de(() => s.map(e), [e, s]), i = $(({
|
|
2368
|
+
id: m,
|
|
2701
2369
|
visible: c,
|
|
2702
|
-
...
|
|
2370
|
+
...p
|
|
2703
2371
|
}) => {
|
|
2704
|
-
n(
|
|
2372
|
+
n(m, {
|
|
2705
2373
|
props: {
|
|
2706
2374
|
visible: c
|
|
2707
2375
|
},
|
|
2708
|
-
legend:
|
|
2376
|
+
legend: p
|
|
2709
2377
|
});
|
|
2710
|
-
}, [n]), a =
|
|
2711
|
-
id:
|
|
2378
|
+
}, [n]), a = $(({
|
|
2379
|
+
id: m,
|
|
2712
2380
|
collapsed: c
|
|
2713
2381
|
}) => {
|
|
2714
|
-
n(
|
|
2382
|
+
n(m, {
|
|
2715
2383
|
legend: {
|
|
2716
2384
|
collapsed: c
|
|
2717
2385
|
}
|
|
2718
2386
|
});
|
|
2719
|
-
}, [n]), l =
|
|
2720
|
-
id:
|
|
2387
|
+
}, [n]), l = $(({
|
|
2388
|
+
id: m,
|
|
2721
2389
|
opacity: c
|
|
2722
2390
|
}) => {
|
|
2723
|
-
n(
|
|
2391
|
+
n(m, {
|
|
2724
2392
|
props: {
|
|
2725
2393
|
opacity: c
|
|
2726
2394
|
}
|
|
2727
2395
|
});
|
|
2728
2396
|
}, [n]);
|
|
2729
2397
|
return {
|
|
2730
|
-
legend:
|
|
2731
|
-
onChangeVisibility:
|
|
2398
|
+
legend: r,
|
|
2399
|
+
onChangeVisibility: i,
|
|
2732
2400
|
onChangeOpacity: l,
|
|
2733
2401
|
onChangRowCollapsed: a
|
|
2734
2402
|
};
|
|
2735
2403
|
}
|
|
2736
|
-
function
|
|
2737
|
-
mapId:
|
|
2404
|
+
function io({
|
|
2405
|
+
mapId: o
|
|
2738
2406
|
}) {
|
|
2739
|
-
const [e, t] =
|
|
2740
|
-
var
|
|
2741
|
-
return (
|
|
2742
|
-
}),
|
|
2743
|
-
var
|
|
2744
|
-
return (
|
|
2745
|
-
}), c =
|
|
2746
|
-
var
|
|
2747
|
-
return (
|
|
2407
|
+
const [e, t] = fe(void 0), [n, s] = fe(!1), r = w((f) => {
|
|
2408
|
+
var M;
|
|
2409
|
+
return (M = f.maps[o]) == null ? void 0 : M.basemap;
|
|
2410
|
+
}), i = w((f) => f.getDeckInstance), a = w((f) => f.getOverlayInstance), l = w((f) => {
|
|
2411
|
+
var M;
|
|
2412
|
+
return (M = f.maps[o]) == null ? void 0 : M.areLayersLoaded;
|
|
2413
|
+
}), c = w((f) => {
|
|
2414
|
+
var M;
|
|
2415
|
+
return (M = f.maps[o]) == null ? void 0 : M.isLoaded;
|
|
2748
2416
|
}) && l, {
|
|
2749
|
-
type:
|
|
2750
|
-
} =
|
|
2751
|
-
const
|
|
2417
|
+
type: p
|
|
2418
|
+
} = nt[r], d = p === ue.googleMaps, u = $(async () => {
|
|
2419
|
+
const f = i(o), M = a(o);
|
|
2752
2420
|
try {
|
|
2753
|
-
const
|
|
2754
|
-
|
|
2755
|
-
const
|
|
2421
|
+
const h = document.createElement("canvas");
|
|
2422
|
+
h.width = f.width ?? 0, h.height = f.height ?? 0;
|
|
2423
|
+
const y = h.getContext("2d");
|
|
2756
2424
|
if (d) {
|
|
2757
|
-
const
|
|
2758
|
-
if (
|
|
2425
|
+
const S = M;
|
|
2426
|
+
if (S.getRenderingType() !== "RASTER")
|
|
2759
2427
|
throw new Error("Only raster type is supported for Google Maps");
|
|
2760
|
-
const
|
|
2428
|
+
const v = await Jt(S.getDiv(), {
|
|
2761
2429
|
useCORS: !0
|
|
2762
2430
|
});
|
|
2763
|
-
|
|
2431
|
+
y == null || y.drawImage(v, 0, 0, f.width, f.height);
|
|
2764
2432
|
} else {
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2433
|
+
const S = M;
|
|
2434
|
+
S.redraw(), y == null || y.drawImage(S.getMap().getCanvas(), 0, 0, f.width, f.height);
|
|
2767
2435
|
}
|
|
2768
|
-
|
|
2769
|
-
const
|
|
2770
|
-
t(
|
|
2771
|
-
} catch (
|
|
2772
|
-
console.error(
|
|
2436
|
+
f == null || f.redraw("screenshot"), y == null || y.drawImage(f.getCanvas(), 0, 0, f.width, f.height);
|
|
2437
|
+
const T = h.toDataURL();
|
|
2438
|
+
t(T);
|
|
2439
|
+
} catch (h) {
|
|
2440
|
+
console.error(h);
|
|
2773
2441
|
} finally {
|
|
2774
|
-
|
|
2442
|
+
s(!1);
|
|
2775
2443
|
}
|
|
2776
|
-
}, [
|
|
2444
|
+
}, [i, d, o, a]);
|
|
2777
2445
|
return {
|
|
2778
|
-
takeScreenshot:
|
|
2779
|
-
|
|
2446
|
+
takeScreenshot: $(() => {
|
|
2447
|
+
s(!0), c && u();
|
|
2780
2448
|
}, [u, c]),
|
|
2781
2449
|
isLoading: n,
|
|
2782
2450
|
screenshot: e
|
|
2783
2451
|
};
|
|
2784
2452
|
}
|
|
2785
|
-
function
|
|
2786
|
-
const e =
|
|
2453
|
+
function ao(o) {
|
|
2454
|
+
const e = C(8), {
|
|
2787
2455
|
mapId: t
|
|
2788
|
-
} =
|
|
2456
|
+
} = o;
|
|
2789
2457
|
let n;
|
|
2790
2458
|
e[0] !== t ? (n = {
|
|
2791
2459
|
mapId: t
|
|
2792
2460
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2793
|
-
const
|
|
2794
|
-
let
|
|
2795
|
-
e[2] !== t ? (
|
|
2461
|
+
const s = yn(n);
|
|
2462
|
+
let r;
|
|
2463
|
+
e[2] !== t ? (r = {
|
|
2796
2464
|
mapId: t
|
|
2797
|
-
}, e[2] = t, e[3] =
|
|
2798
|
-
const
|
|
2465
|
+
}, e[2] = t, e[3] = r) : r = e[3];
|
|
2466
|
+
const i = hn(r), a = i ?? s;
|
|
2799
2467
|
let l;
|
|
2800
|
-
return e[4] !==
|
|
2468
|
+
return e[4] !== i || e[5] !== a || e[6] !== s ? (l = {
|
|
2801
2469
|
spatialFilter: a,
|
|
2802
|
-
lassoToolsSpatialFilter:
|
|
2803
|
-
viewportSpatialFilter:
|
|
2804
|
-
}, e[4] =
|
|
2470
|
+
lassoToolsSpatialFilter: i,
|
|
2471
|
+
viewportSpatialFilter: s
|
|
2472
|
+
}, e[4] = i, e[5] = a, e[6] = s, e[7] = l) : l = e[7], l;
|
|
2805
2473
|
}
|
|
2806
|
-
function
|
|
2807
|
-
const e =
|
|
2474
|
+
function yn(o) {
|
|
2475
|
+
const e = C(4), {
|
|
2808
2476
|
mapId: t
|
|
2809
|
-
} =
|
|
2477
|
+
} = o;
|
|
2810
2478
|
let n;
|
|
2811
|
-
e[0] !== t ? (n = (
|
|
2812
|
-
const
|
|
2813
|
-
let
|
|
2479
|
+
e[0] !== t ? (n = (i) => i.viewports[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2480
|
+
const s = w(n);
|
|
2481
|
+
let r;
|
|
2814
2482
|
e: {
|
|
2815
|
-
if (!
|
|
2816
|
-
|
|
2483
|
+
if (!s) {
|
|
2484
|
+
r = void 0;
|
|
2817
2485
|
break e;
|
|
2818
2486
|
}
|
|
2819
|
-
let
|
|
2820
|
-
e[2] !==
|
|
2487
|
+
let i;
|
|
2488
|
+
e[2] !== s ? (i = Xt(s.getBounds()), e[2] = s, e[3] = i) : i = e[3], r = i;
|
|
2821
2489
|
}
|
|
2822
|
-
return
|
|
2490
|
+
return r;
|
|
2823
2491
|
}
|
|
2824
|
-
function
|
|
2825
|
-
const e =
|
|
2492
|
+
function hn(o) {
|
|
2493
|
+
const e = C(5), {
|
|
2826
2494
|
mapId: t
|
|
2827
|
-
} =
|
|
2495
|
+
} = o;
|
|
2828
2496
|
let n;
|
|
2829
|
-
e[0] !== t ? (n = (
|
|
2497
|
+
e[0] !== t ? (n = (i) => {
|
|
2830
2498
|
var a;
|
|
2831
|
-
return (a =
|
|
2499
|
+
return (a = i.data[t]) == null ? void 0 : a.values;
|
|
2832
2500
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2833
|
-
const
|
|
2834
|
-
let
|
|
2501
|
+
const s = j(n);
|
|
2502
|
+
let r;
|
|
2835
2503
|
e: {
|
|
2836
|
-
let
|
|
2837
|
-
if (e[2] !==
|
|
2838
|
-
const a =
|
|
2839
|
-
values:
|
|
2840
|
-
}).filter(
|
|
2504
|
+
let i;
|
|
2505
|
+
if (e[2] !== s) {
|
|
2506
|
+
const a = it({
|
|
2507
|
+
values: s
|
|
2508
|
+
}).filter(vn);
|
|
2841
2509
|
if (!(a != null && a.length)) {
|
|
2842
|
-
|
|
2510
|
+
r = void 0;
|
|
2843
2511
|
break e;
|
|
2844
2512
|
}
|
|
2845
|
-
|
|
2513
|
+
i = es(a.map(Sn)), e[2] = s, e[3] = i, e[4] = r;
|
|
2846
2514
|
} else
|
|
2847
|
-
|
|
2848
|
-
|
|
2515
|
+
i = e[3], r = e[4];
|
|
2516
|
+
r = i.geometry;
|
|
2849
2517
|
}
|
|
2850
|
-
return
|
|
2518
|
+
return r;
|
|
2851
2519
|
}
|
|
2852
|
-
function
|
|
2853
|
-
return
|
|
2520
|
+
function Sn(o) {
|
|
2521
|
+
return o.geometry.coordinates;
|
|
2854
2522
|
}
|
|
2855
|
-
function
|
|
2856
|
-
return
|
|
2523
|
+
function vn(o) {
|
|
2524
|
+
return o.properties.visible;
|
|
2857
2525
|
}
|
|
2858
|
-
const
|
|
2526
|
+
const Se = {
|
|
2859
2527
|
currency: "CURRENCY",
|
|
2860
2528
|
default: "DEFAULT",
|
|
2861
2529
|
number: "NUMBER"
|
|
2862
|
-
},
|
|
2863
|
-
[
|
|
2864
|
-
type:
|
|
2865
|
-
format: (
|
|
2530
|
+
}, Ye = {
|
|
2531
|
+
[Se.currency]: {
|
|
2532
|
+
type: Se.currency,
|
|
2533
|
+
format: (o, e) => Ht(o, e)
|
|
2866
2534
|
},
|
|
2867
|
-
[
|
|
2868
|
-
type:
|
|
2869
|
-
format: (
|
|
2535
|
+
[Se.number]: {
|
|
2536
|
+
type: Se.number,
|
|
2537
|
+
format: (o, e) => st(o, e)
|
|
2870
2538
|
},
|
|
2871
|
-
[
|
|
2872
|
-
type:
|
|
2873
|
-
format: (
|
|
2539
|
+
[Se.default]: {
|
|
2540
|
+
type: Se.default,
|
|
2541
|
+
format: (o) => o.toLocaleString()
|
|
2874
2542
|
}
|
|
2875
2543
|
};
|
|
2876
|
-
function
|
|
2877
|
-
properties:
|
|
2544
|
+
function lo({
|
|
2545
|
+
properties: o,
|
|
2878
2546
|
formatters: e = {},
|
|
2879
|
-
includeColumns: t = Object.keys(
|
|
2547
|
+
includeColumns: t = Object.keys(o),
|
|
2880
2548
|
locale: n = "en-US",
|
|
2881
|
-
showColumnName:
|
|
2882
|
-
title:
|
|
2883
|
-
getColumnName:
|
|
2884
|
-
getFieldHtml: a =
|
|
2885
|
-
getTitle: l =
|
|
2886
|
-
getValue:
|
|
2549
|
+
showColumnName: s = !0,
|
|
2550
|
+
title: r,
|
|
2551
|
+
getColumnName: i = _n,
|
|
2552
|
+
getFieldHtml: a = Tn,
|
|
2553
|
+
getTitle: l = bn,
|
|
2554
|
+
getValue: m = Mn
|
|
2887
2555
|
}) {
|
|
2888
|
-
const c =
|
|
2889
|
-
const
|
|
2890
|
-
return u + a(
|
|
2556
|
+
const c = r ? l(r) : "", d = t.reduce((u, g) => {
|
|
2557
|
+
const f = e[g], M = o[g], h = m(M, n, f), y = s ? i(g) : "";
|
|
2558
|
+
return u + a(y, h);
|
|
2891
2559
|
}, "");
|
|
2892
2560
|
return c + d;
|
|
2893
2561
|
}
|
|
2894
|
-
function
|
|
2895
|
-
return `<h3 style="margin: 0"><strong>${
|
|
2562
|
+
function bn(o) {
|
|
2563
|
+
return `<h3 style="margin: 0"><strong>${o}</strong></h3></br>`;
|
|
2896
2564
|
}
|
|
2897
|
-
function
|
|
2898
|
-
return `${
|
|
2565
|
+
function Tn(o, e) {
|
|
2566
|
+
return `${o}${e}</br>`;
|
|
2899
2567
|
}
|
|
2900
|
-
function
|
|
2568
|
+
function Mn(o, e, t) {
|
|
2901
2569
|
try {
|
|
2902
|
-
return
|
|
2570
|
+
return Ln(t)(o, e);
|
|
2903
2571
|
} catch {
|
|
2904
|
-
return
|
|
2572
|
+
return o;
|
|
2905
2573
|
}
|
|
2906
2574
|
}
|
|
2907
|
-
function
|
|
2908
|
-
return typeof
|
|
2575
|
+
function Ln(o) {
|
|
2576
|
+
return typeof o == "function" ? o : ((o && Ye[o]) ?? Ye[Se.default]).format;
|
|
2909
2577
|
}
|
|
2910
|
-
function
|
|
2911
|
-
return `<strong>${
|
|
2578
|
+
function _n(o) {
|
|
2579
|
+
return `<strong>${o}</strong>: `;
|
|
2912
2580
|
}
|
|
2913
|
-
function
|
|
2914
|
-
var e, t, n, r, i,
|
|
2581
|
+
function co(o) {
|
|
2582
|
+
var e, t, n, s, r, i, a, l;
|
|
2915
2583
|
return {
|
|
2916
|
-
collapsed: (e =
|
|
2917
|
-
collapsible: (t =
|
|
2918
|
-
helperText: (n =
|
|
2919
|
-
id:
|
|
2920
|
-
legend: (
|
|
2921
|
-
maxZoom: (
|
|
2922
|
-
minZoom: (
|
|
2923
|
-
opacity:
|
|
2924
|
-
opacityControl: (a =
|
|
2925
|
-
switchable: (l =
|
|
2926
|
-
title:
|
|
2927
|
-
visible:
|
|
2584
|
+
collapsed: (e = o.legend) == null ? void 0 : e.collapsed,
|
|
2585
|
+
collapsible: (t = o.legend) == null ? void 0 : t.collapsible,
|
|
2586
|
+
helperText: (n = o.legend) == null ? void 0 : n.helperText,
|
|
2587
|
+
id: o.props.id,
|
|
2588
|
+
legend: (s = o.legend) == null ? void 0 : s.variables,
|
|
2589
|
+
maxZoom: (r = o.legend) == null ? void 0 : r.maxZoom,
|
|
2590
|
+
minZoom: (i = o.legend) == null ? void 0 : i.minZoom,
|
|
2591
|
+
opacity: o.props.opacity ?? 1,
|
|
2592
|
+
opacityControl: (a = o.legend) == null ? void 0 : a.opacityControl,
|
|
2593
|
+
switchable: (l = o.legend) == null ? void 0 : l.switchable,
|
|
2594
|
+
title: o.name,
|
|
2595
|
+
visible: o.props.visible ?? !0
|
|
2928
2596
|
};
|
|
2929
2597
|
}
|
|
2930
|
-
function
|
|
2931
|
-
const e =
|
|
2598
|
+
function uo(o) {
|
|
2599
|
+
const e = C(18), {
|
|
2932
2600
|
children: t,
|
|
2933
2601
|
mapId: n
|
|
2934
|
-
} =
|
|
2935
|
-
let
|
|
2936
|
-
e[0] !== n ? (
|
|
2602
|
+
} = o;
|
|
2603
|
+
let s;
|
|
2604
|
+
e[0] !== n ? (s = (y) => y.viewStates[n], e[0] = n, e[1] = s) : s = e[1];
|
|
2937
2605
|
const {
|
|
2938
|
-
zoom:
|
|
2939
|
-
maxZoom:
|
|
2606
|
+
zoom: r,
|
|
2607
|
+
maxZoom: i,
|
|
2940
2608
|
minZoom: a
|
|
2941
|
-
} =
|
|
2609
|
+
} = w(s);
|
|
2942
2610
|
let l;
|
|
2943
|
-
e[2] !== n ? (l = (
|
|
2944
|
-
const
|
|
2611
|
+
e[2] !== n ? (l = (y) => y.maps[n].areLayersLoaded, e[2] = n, e[3] = l) : l = e[3];
|
|
2612
|
+
const m = w(l), c = w(En), p = w(Pn), d = !m;
|
|
2945
2613
|
let u;
|
|
2946
|
-
e[4] !== n || e[5] !== c ? (u = (
|
|
2947
|
-
const
|
|
2948
|
-
let
|
|
2949
|
-
e[7] !==
|
|
2950
|
-
const
|
|
2951
|
-
let
|
|
2952
|
-
return e[10] !== t || e[11] !==
|
|
2953
|
-
zoom:
|
|
2954
|
-
maxZoom:
|
|
2614
|
+
e[4] !== n || e[5] !== c ? (u = (y) => c(n, y), e[4] = n, e[5] = c, e[6] = u) : u = e[6];
|
|
2615
|
+
const g = u;
|
|
2616
|
+
let f;
|
|
2617
|
+
e[7] !== p || e[8] !== n ? (f = (y) => p(n, y), e[7] = p, e[8] = n, e[9] = f) : f = e[9];
|
|
2618
|
+
const M = f;
|
|
2619
|
+
let h;
|
|
2620
|
+
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== d || e[14] !== g || e[15] !== M || e[16] !== r ? (h = t({
|
|
2621
|
+
zoom: r,
|
|
2622
|
+
maxZoom: i,
|
|
2955
2623
|
minZoom: a,
|
|
2956
2624
|
isLoading: d,
|
|
2957
|
-
setZoom:
|
|
2958
|
-
flyTo:
|
|
2959
|
-
}), e[10] = t, e[11] =
|
|
2625
|
+
setZoom: g,
|
|
2626
|
+
flyTo: M
|
|
2627
|
+
}), e[10] = t, e[11] = i, e[12] = a, e[13] = d, e[14] = g, e[15] = M, e[16] = r, e[17] = h) : h = e[17], h;
|
|
2960
2628
|
}
|
|
2961
|
-
function
|
|
2962
|
-
return
|
|
2629
|
+
function Pn(o) {
|
|
2630
|
+
return o.flyTo;
|
|
2963
2631
|
}
|
|
2964
|
-
function
|
|
2965
|
-
return
|
|
2632
|
+
function En(o) {
|
|
2633
|
+
return o.setZoom;
|
|
2966
2634
|
}
|
|
2967
2635
|
export {
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
2636
|
+
sn as ApiBaseUrl,
|
|
2637
|
+
Ze as CONVERSIONS_UNITS,
|
|
2638
|
+
Oe as CartoBasemapURL,
|
|
2639
|
+
ee as CartoBasemaps,
|
|
2640
|
+
Wn as CategoriesModel,
|
|
2641
|
+
us as CustomCompositeEditMode,
|
|
2642
|
+
Cs as CustomMeasureAreaMode,
|
|
2643
|
+
Fs as CustomMeasureBufferMode,
|
|
2644
|
+
lt as CustomMeasureDistanceMode,
|
|
2645
|
+
Ie as DEFAULT_LASSO_TOOLS_COLORS,
|
|
2646
|
+
ds as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
2647
|
+
Be as DEFAULT_LASSO_TOOLS_MODES,
|
|
2648
|
+
Ae as DEFAULT_LASSO_TOOLS_PROPS,
|
|
2649
|
+
Pe as DEFAULT_MASK_LAYER_PROPS,
|
|
2650
|
+
Rs as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
2651
|
+
Ds as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
2652
|
+
De as DEFAULT_MEASURE_COLORS,
|
|
2653
|
+
ns as DeckGLComponent,
|
|
2654
|
+
K as EditableEditType,
|
|
2655
|
+
Yn as FeaturesModel,
|
|
2656
|
+
Xn as FormulaModel,
|
|
2657
|
+
we as GmapsBasemap,
|
|
2658
|
+
Jn as HistogramModel,
|
|
2659
|
+
Le as INTL_UNITS,
|
|
2660
|
+
qs as LassoTools,
|
|
2661
|
+
Ps as LassoToolsProvider,
|
|
2662
|
+
nt as MAPS_BASEMAP,
|
|
2663
|
+
Te as MAP_LASSO_TOOLS_LAYER_ID,
|
|
2664
|
+
ke as MAP_MASK_LAYER_ID,
|
|
2665
|
+
ve as MAP_MEASURE_LAYER_ID,
|
|
2666
|
+
As as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
2667
|
+
ze as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
2668
|
+
Q as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
2669
|
+
zn as MapComponent,
|
|
2670
|
+
xe as MapMeasurementUnitAuto,
|
|
2671
|
+
Os as MapMeasurementUnitTurf,
|
|
2672
|
+
Ss as MapProvider,
|
|
2673
|
+
oo as MapsProvider,
|
|
2674
|
+
ue as MapsTypes,
|
|
2675
|
+
Ys as MeasurementTools,
|
|
2676
|
+
js as MeasurementToolsProvider,
|
|
2677
|
+
eo as RangeModel,
|
|
2678
|
+
to as ScatterModel,
|
|
2679
|
+
so as TableModel,
|
|
2680
|
+
no as TimeSeriesModel,
|
|
2681
|
+
uo as ZoomControls,
|
|
2682
|
+
nn as clientID,
|
|
2683
|
+
Qe as convertMetersTo,
|
|
2684
|
+
_s as createLassoToolsStore,
|
|
2685
|
+
hs as createMapStore,
|
|
2686
|
+
Vs as createMeasurementToolsStore,
|
|
2687
|
+
Se as formatterTypes,
|
|
2688
|
+
ts as getCursorDefault,
|
|
2689
|
+
Zn as getDeckController,
|
|
2690
|
+
Ms as getLassoToolsLayer,
|
|
2691
|
+
Us as getMeasurementToolsLayer,
|
|
2692
|
+
Ce as getTextLayerFormattedDistance,
|
|
2693
|
+
ss as getTooltipDefault,
|
|
2694
|
+
co as mappingLegendMeridian,
|
|
2695
|
+
lo as objectToHtml,
|
|
2696
|
+
dt as sortLayers,
|
|
2697
|
+
ms as transitionFlyConfig,
|
|
2698
|
+
ln as useCategories,
|
|
2699
|
+
cn as useFeatures,
|
|
2700
|
+
un as useFormula,
|
|
2701
|
+
dn as useHistogram,
|
|
2702
|
+
hn as useLassoToolsSpatialFilter,
|
|
2703
|
+
j as useLassoToolsState,
|
|
2704
|
+
_e as useLayerStore,
|
|
2705
|
+
Xs as useLayers,
|
|
2706
|
+
ro as useLegend,
|
|
2707
|
+
io as useMapScreenshot,
|
|
2708
|
+
w as useMapStore,
|
|
2709
|
+
q as useMeasurementToolsState,
|
|
2710
|
+
fn as useRange,
|
|
2711
|
+
mn as useScatter,
|
|
2712
|
+
on as useSourceStore,
|
|
2713
|
+
ao as useSpatialFilter,
|
|
2714
|
+
pn as useTable,
|
|
2715
|
+
gn as useTimeSeries,
|
|
2716
|
+
yn as useViewportSpatialFilter,
|
|
2717
|
+
pe as useWidgetModel
|
|
3050
2718
|
};
|
|
3051
2719
|
//# sourceMappingURL=index.js.map
|