@carto/ps-react-maps 3.5.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -80,7 +80,7 @@ function vs(r) {
80
80
  }
81
81
  function Ss(r) {
82
82
  const e = R(42);
83
- let t, n, s, o, i, a, l, y, c, p, h, d;
83
+ let t, n, s, o, i, a, l, m, c, p, h, d;
84
84
  e[0] !== r ? ({
85
85
  instanceRef: i,
86
86
  overlayRef: p,
@@ -91,28 +91,28 @@ function Ss(r) {
91
91
  parameters: h,
92
92
  getCursor: n,
93
93
  getTooltip: s,
94
- onLoad: y,
94
+ onLoad: m,
95
95
  onViewStateChange: c,
96
96
  ...d
97
- } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = y, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], y = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
98
- let b, m;
99
- e[13] !== y ? (b = () => {
100
- y({
97
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = m, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], m = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
98
+ let b, y;
99
+ e[13] !== m ? (b = () => {
100
+ m({
101
101
  type: "load",
102
102
  value: !1
103
- }), y({
103
+ }), m({
104
104
  type: "deckgl",
105
105
  value: !1
106
106
  });
107
- }, m = [y], e[13] = y, e[14] = b, e[15] = m) : (b = e[14], m = e[15]), z(b, m);
107
+ }, y = [m], e[13] = m, e[14] = b, e[15] = y) : (b = e[14], y = e[15]), z(b, y);
108
108
  let T, f;
109
109
  e[16] !== a ? (f = a.filter(Ts).map(_s), e[16] = a, e[17] = f) : f = e[17], T = f;
110
110
  const g = T, S = i;
111
111
  let _;
112
- e[18] !== y ? (_ = () => y({
112
+ e[18] !== m ? (_ = () => m({
113
113
  type: "deckgl",
114
114
  value: !0
115
- }), e[18] = y, e[19] = _) : _ = e[19];
115
+ }), e[18] = m, e[19] = _) : _ = e[19];
116
116
  let w;
117
117
  e[20] !== h ? (w = {
118
118
  depthTest: !1,
@@ -121,10 +121,10 @@ function Ss(r) {
121
121
  let E;
122
122
  e[22] !== p ? (E = /* @__PURE__ */ N(Es, { overlayRef: p }), e[22] = p, e[23] = E) : E = e[23];
123
123
  let A;
124
- e[24] !== y ? (A = () => y({
124
+ e[24] !== m ? (A = () => m({
125
125
  type: "load",
126
126
  value: !0
127
- }), e[24] = y, e[25] = A) : A = e[25];
127
+ }), e[24] = m, e[25] = A) : A = e[25];
128
128
  let U;
129
129
  e[26] !== l || e[27] !== A ? (U = /* @__PURE__ */ N(Dt, { reuseMaps: !0, mapStyle: l, onLoad: A, onRender: ws }), e[26] = l, e[27] = A, e[28] = U) : U = e[28];
130
130
  let F;
@@ -165,10 +165,10 @@ const Ms = (r) => {
165
165
  const s = t, o = pt();
166
166
  let i, a;
167
167
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => s, a = [s], e[1] = i, e[2] = a) : (i = e[1], a = e[2]), Ne(r.instanceRef, i, a);
168
- let l, y;
168
+ let l, m;
169
169
  e[3] !== o ? (l = () => (s.setMap(o), () => {
170
170
  s.finalize();
171
- }), y = [s, o], e[3] = o, e[4] = l, e[5] = y) : (l = e[4], y = e[5]), z(l, y);
171
+ }), m = [s, o], e[3] = o, e[4] = l, e[5] = m) : (l = e[4], m = e[5]), z(l, m);
172
172
  let c, p;
173
173
  return e[6] !== r ? (c = () => {
174
174
  s.setProps(r);
@@ -188,20 +188,20 @@ function Ps({
188
188
  },
189
189
  overlayRef: a,
190
190
  parameters: l,
191
- onLoad: y,
191
+ onLoad: m,
192
192
  onViewStateChange: c,
193
193
  ...p
194
194
  }) {
195
- var m, T, f, g, S;
195
+ var y, T, f, g, S;
196
196
  z(() => {
197
- y({
197
+ m({
198
198
  type: "load",
199
199
  value: !1
200
- }), y({
200
+ }), m({
201
201
  type: "deckgl",
202
202
  value: !1
203
203
  });
204
- }, [y]);
204
+ }, [m]);
205
205
  const h = re(() => n.filter((_) => !!(_ != null && _.type)).map(({
206
206
  type: _,
207
207
  props: w
@@ -241,17 +241,17 @@ function Ps({
241
241
  });
242
242
  }, [e, c]);
243
243
  return /* @__PURE__ */ N(xt, { apiKey: s, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft($t, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
244
- lat: ((m = p.initialViewState) == null ? void 0 : m.latitude) ?? 0,
244
+ lat: ((y = p.initialViewState) == null ? void 0 : y.latitude) ?? 0,
245
245
  lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
246
246
  }, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (g = p.initialViewState) == null ? void 0 : g.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
247
- y({
247
+ m({
248
248
  type: "load",
249
249
  value: !0
250
250
  }), b(p.initialViewState);
251
251
  }, onBoundsChanged: (_) => b(d(_)), onZoomChanged: (_) => b(d(_)), children: [
252
252
  /* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
253
253
  /* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: h, onLoad: () => {
254
- y({
254
+ m({
255
255
  type: "deckgl",
256
256
  value: !0
257
257
  });
@@ -272,13 +272,13 @@ function Ls(r) {
272
272
  }
273
273
  function Os(r) {
274
274
  const e = R(46);
275
- let t, n, s, o, i, a, l, y, c, p, h, d;
275
+ let t, n, s, o, i, a, l, m, c, p, h, d;
276
276
  e[0] !== r ? ({
277
277
  instanceRef: n,
278
278
  overlayRef: o,
279
279
  basemap: a,
280
280
  controller: l,
281
- id: y,
281
+ id: m,
282
282
  layers: c,
283
283
  gmapsProps: t,
284
284
  getCursor: p,
@@ -286,8 +286,8 @@ function Os(r) {
286
286
  onLoad: s,
287
287
  onViewStateChange: d,
288
288
  ...i
289
- } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = y, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], y = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
290
- const b = a === void 0 ? J.positron : a, m = l === void 0 ? !0 : l, T = y === void 0 ? "deck-gl-map" : y;
289
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = m, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], m = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
290
+ const b = a === void 0 ? J.positron : a, y = l === void 0 ? !0 : l, T = m === void 0 ? "deck-gl-map" : m;
291
291
  let f;
292
292
  e[13] !== c ? (f = c === void 0 ? [] : c, e[13] = c, e[14] = f) : f = e[14];
293
293
  const g = f, S = p === void 0 ? bs : p, _ = h === void 0 ? vs : h, w = d === void 0 ? As : d;
@@ -311,10 +311,10 @@ function Os(r) {
311
311
  s == null || s(j);
312
312
  }, P = [j, s], e[19] = j, e[20] = s, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), M) {
313
313
  let L;
314
- return e[23] !== b || e[24] !== m || e[25] !== S || e[26] !== _ || e[27] !== t || e[28] !== T || e[29] !== n || e[30] !== g || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: n, overlayRef: o, controller: m, id: T, basemap: b, layers: g, gmapsProps: t, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[23] = b, e[24] = m, e[25] = S, e[26] = _, e[27] = t, e[28] = T, e[29] = n, e[30] = g, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
314
+ return e[23] !== b || e[24] !== y || e[25] !== S || e[26] !== _ || e[27] !== t || e[28] !== T || e[29] !== n || e[30] !== g || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: n, overlayRef: o, controller: y, id: T, basemap: b, layers: g, gmapsProps: t, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[23] = b, e[24] = y, e[25] = S, e[26] = _, e[27] = t, e[28] = T, e[29] = n, e[30] = g, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
315
315
  }
316
316
  let C;
317
- return e[35] !== m || e[36] !== S || e[37] !== _ || e[38] !== T || e[39] !== n || e[40] !== g || e[41] !== q || e[42] !== w || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(Ss, { instanceRef: n, overlayRef: o, controller: m, id: T, layers: g, mapStyle: q, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[35] = m, e[36] = S, e[37] = _, e[38] = T, e[39] = n, e[40] = g, e[41] = q, e[42] = w, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
317
+ return e[35] !== y || e[36] !== S || e[37] !== _ || e[38] !== T || e[39] !== n || e[40] !== g || e[41] !== q || e[42] !== w || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(Ss, { instanceRef: n, overlayRef: o, controller: y, id: T, layers: g, mapStyle: q, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[35] = y, e[36] = S, e[37] = _, e[38] = T, e[39] = n, e[40] = g, e[41] = q, e[42] = w, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
318
318
  }
319
319
  function ks(r) {
320
320
  return r;
@@ -408,7 +408,7 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
408
408
  }, pe = yt((r) => ({
409
409
  layers: {},
410
410
  setLayer: (e, t) => r((n) => {
411
- var a, l;
411
+ var l, m;
412
412
  const s = {
413
413
  ...n.layers
414
414
  };
@@ -419,7 +419,10 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
419
419
  const o = s[e] ?? {
420
420
  type: null,
421
421
  props: {}
422
- }, i = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((y, c) => (y.some((p) => p.equals(c)) || y.push(c), y), []);
422
+ }, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((c, p) => (c.some((h) => h.equals(p)) || c.push(p), c), []), a = o.legend || t.legend ? {
423
+ ...o.legend,
424
+ ...t.legend
425
+ } : void 0;
423
426
  return s[e] = {
424
427
  ...o,
425
428
  ...t,
@@ -429,14 +432,11 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
429
432
  ...t.props,
430
433
  updateTriggers: {
431
434
  ...o.props.updateTriggers ?? {},
432
- ...((l = t.props) == null ? void 0 : l.updateTriggers) ?? {}
435
+ ...((m = t.props) == null ? void 0 : m.updateTriggers) ?? {}
433
436
  },
434
437
  extensions: i
435
438
  },
436
- legend: {
437
- ...o.legend,
438
- ...t.legend
439
- }
439
+ legend: a
440
440
  }, {
441
441
  layers: s
442
442
  };
@@ -480,13 +480,13 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
480
480
  type: a
481
481
  } = ye[i.maps[s].basemap], {
482
482
  type: l
483
- } = ye[o], y = a === l && !!((c = i.maps[s]) != null && c.isLoaded);
483
+ } = ye[o], m = a === l && !!((c = i.maps[s]) != null && c.isLoaded);
484
484
  return {
485
485
  maps: {
486
486
  ...i.maps,
487
487
  [s]: {
488
488
  ...i.maps[s],
489
- isLoaded: y,
489
+ isLoaded: m,
490
490
  basemap: o
491
491
  }
492
492
  }
@@ -522,27 +522,27 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
522
522
  return a == null ? void 0 : a.getViewports(o);
523
523
  },
524
524
  getViewport: (s, o = 0, i) => {
525
- var y;
525
+ var m;
526
526
  const l = n().getDeckInstance(s);
527
- return (y = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : y[o];
527
+ return (m = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : m[o];
528
528
  },
529
529
  addLayers: (s, o) => t((i) => {
530
530
  var c;
531
531
  const a = {
532
532
  ...i.maps
533
- }, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], y = /* @__PURE__ */ new Set([...l, ...o]);
533
+ }, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], m = /* @__PURE__ */ new Set([...l, ...o]);
534
534
  return a[s] = {
535
535
  ...a[s],
536
- layers: [...y]
536
+ layers: [...m]
537
537
  }, {
538
538
  maps: a
539
539
  };
540
540
  }),
541
541
  removeLayers: (s, o) => t((i) => {
542
- var y;
542
+ var m;
543
543
  const a = {
544
544
  ...i.maps
545
- }, l = ((y = a[s]) == null ? void 0 : y.layers) ?? [];
545
+ }, l = ((m = a[s]) == null ? void 0 : m.layers) ?? [];
546
546
  return a[s] = {
547
547
  ...a[s],
548
548
  layers: l.filter((c) => !o.includes(c))
@@ -695,18 +695,18 @@ function Vs() {
695
695
  return Array.isArray(f) ? [] : {};
696
696
  }
697
697
  function a(f, g) {
698
- return g.clone !== !1 && g.isMergeableObject(f) ? m(i(f), f, g) : f;
698
+ return g.clone !== !1 && g.isMergeableObject(f) ? y(i(f), f, g) : f;
699
699
  }
700
700
  function l(f, g, S) {
701
701
  return f.concat(g).map(function(_) {
702
702
  return a(_, S);
703
703
  });
704
704
  }
705
- function y(f, g) {
705
+ function m(f, g) {
706
706
  if (!g.customMerge)
707
- return m;
707
+ return y;
708
708
  var S = g.customMerge(f);
709
- return typeof S == "function" ? S : m;
709
+ return typeof S == "function" ? S : y;
710
710
  }
711
711
  function c(f) {
712
712
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(g) {
@@ -731,22 +731,22 @@ function Vs() {
731
731
  return S.isMergeableObject(f) && p(f).forEach(function(w) {
732
732
  _[w] = a(f[w], S);
733
733
  }), p(g).forEach(function(w) {
734
- d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = y(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
734
+ d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = m(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
735
735
  }), _;
736
736
  }
737
- function m(f, g, S) {
737
+ function y(f, g, S) {
738
738
  S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
739
739
  var _ = Array.isArray(g), w = Array.isArray(f), E = _ === w;
740
740
  return E ? _ ? S.arrayMerge(f, g, S) : b(f, g, S) : a(g, S);
741
741
  }
742
- m.all = function(g, S) {
742
+ y.all = function(g, S) {
743
743
  if (!Array.isArray(g))
744
744
  throw new Error("first argument should be an array");
745
745
  return g.reduce(function(_, w) {
746
- return m(_, w, S);
746
+ return y(_, w, S);
747
747
  }, {});
748
748
  };
749
- var T = m;
749
+ var T = y;
750
750
  return qe = T, qe;
751
751
  }
752
752
  var Is = Vs();
@@ -823,7 +823,7 @@ function Hs({
823
823
  getFillColor: n,
824
824
  getEditHandlePointColor: s.fill,
825
825
  getEditHandlePointOutlineColor: s.outline,
826
- dataComparator: (l, y) => l.features[0] === y.features[0]
826
+ dataComparator: (l, m) => l.features[0] === m.features[0]
827
827
  });
828
828
  return fe(i, o);
829
829
  }
@@ -834,14 +834,14 @@ const Gs = (r) => ze()((e) => ({
834
834
  mapId: i,
835
835
  modeInstance: a = new $e.polygon.mode(),
836
836
  modes: l = $e,
837
- modeSelected: y = $e.polygon.value,
837
+ modeSelected: m = $e.polygon.value,
838
838
  values: c = {}
839
839
  } = s;
840
840
  return n[i] = {
841
841
  enabled: o,
842
842
  modeInstance: a,
843
843
  modes: l,
844
- modeSelected: y,
844
+ modeSelected: m,
845
845
  values: c
846
846
  }, n;
847
847
  }, {}),
@@ -951,17 +951,17 @@ function Qs({
951
951
  }), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
952
952
  var b;
953
953
  return (b = d.data[r]) == null ? void 0 : b.modeSelected;
954
- }), l = G((d) => d.setModeSelected), y = G((d) => {
954
+ }), l = G((d) => d.setModeSelected), m = G((d) => {
955
955
  var b;
956
956
  return (b = d.data[r]) == null ? void 0 : b.modes;
957
957
  }), c = G((d) => d.setModeInstance);
958
958
  z(() => {
959
- const d = y[a];
959
+ const d = m[a];
960
960
  if (d && t) {
961
961
  const b = d.mode;
962
962
  c(r, new b());
963
963
  }
964
- }, [t, r, a, y, c]);
964
+ }, [t, r, a, m, c]);
965
965
  const [
966
966
  p
967
967
  // , draw
@@ -984,7 +984,7 @@ function Qs({
984
984
  return e({
985
985
  mapId: r,
986
986
  enabled: t,
987
- modes: y,
987
+ modes: m,
988
988
  modeSelected: a,
989
989
  values: {
990
990
  mask: p
@@ -1020,14 +1020,14 @@ function Oe({
1020
1020
  }
1021
1021
  }) {
1022
1022
  const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
1023
- let l, y;
1023
+ let l, m;
1024
1024
  if (a) {
1025
1025
  const c = r < (n ?? nt);
1026
1026
  let p = c ? V.meter : V.kilometer;
1027
- l = c ? me.meter : me.kilometer, i && (l = c ? me.feet : me.mile, p = c ? V.feet : V.mile), y = st(r, p);
1027
+ l = c ? me.meter : me.kilometer, i && (l = c ? me.feet : me.mile, p = c ? V.feet : V.mile), m = st(r, p);
1028
1028
  } else
1029
- l = me[e], y = st(r, e);
1030
- return `${gt(y, t, {
1029
+ l = me[e], m = st(r, e);
1030
+ return `${gt(m, t, {
1031
1031
  style: "unit",
1032
1032
  unit: l,
1033
1033
  unitDisplay: "short",
@@ -1454,31 +1454,31 @@ function Mt(r) {
1454
1454
  } = r;
1455
1455
  let s;
1456
1456
  e[0] !== t ? (s = (b) => {
1457
- var m;
1458
- return (m = b.maps[t]) == null ? void 0 : m.basemap;
1457
+ var y;
1458
+ return (y = b.maps[t]) == null ? void 0 : y.basemap;
1459
1459
  }, e[0] = t, e[1] = s) : s = e[1];
1460
1460
  const o = x(s);
1461
1461
  let i;
1462
1462
  e[2] !== t ? (i = (b) => {
1463
- var m;
1464
- return (m = b.maps[t]) == null ? void 0 : m.isLoaded;
1463
+ var y;
1464
+ return (y = b.maps[t]) == null ? void 0 : y.isLoaded;
1465
1465
  }, e[2] = t, e[3] = i) : i = e[3];
1466
- const a = x(i), l = x(nn), y = pe(sn), {
1466
+ const a = x(i), l = x(nn), m = pe(sn), {
1467
1467
  type: c
1468
1468
  } = ye[o], p = c === te.googleMaps;
1469
1469
  let h, d;
1470
- e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== y ? (h = () => {
1470
+ e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== m ? (h = () => {
1471
1471
  let b = null;
1472
1472
  if (p && a) {
1473
- const m = l(t);
1474
- b = new es(m.getDiv(), {});
1473
+ const y = l(t);
1474
+ b = new es(y.getDiv(), {});
1475
1475
  }
1476
- y(n, {
1476
+ m(n, {
1477
1477
  props: {
1478
1478
  eventManager: b
1479
1479
  }
1480
1480
  });
1481
- }, d = [l, p, a, n, t, y], e[4] = l, e[5] = p, e[6] = a, e[7] = n, e[8] = t, e[9] = y, e[10] = h, e[11] = d) : (h = e[10], d = e[11]), z(h, d);
1481
+ }, d = [l, p, a, n, t, m], e[4] = l, e[5] = p, e[6] = a, e[7] = n, e[8] = t, e[9] = m, e[10] = h, e[11] = d) : (h = e[10], d = e[11]), z(h, d);
1482
1482
  }
1483
1483
  function sn(r) {
1484
1484
  return r.setLayer;
@@ -1506,13 +1506,13 @@ function on({
1506
1506
  }), a = G((M) => M.setEnabled), l = G((M) => {
1507
1507
  var k;
1508
1508
  return (k = M.data[e]) == null ? void 0 : k.values;
1509
- }), y = G((M) => M.setValue), c = G((M) => {
1509
+ }), m = G((M) => M.setValue), c = G((M) => {
1510
1510
  var k;
1511
1511
  return (k = M.data[e]) == null ? void 0 : k.modeInstance;
1512
1512
  }), p = G((M) => {
1513
1513
  var k;
1514
1514
  return (k = M.data[e]) == null ? void 0 : k.modeSelected;
1515
- }), h = pe((M) => M.setLayer), d = x((M) => M.addLayers), b = x((M) => M.removeLayers), m = x(ht((M) => {
1515
+ }), h = pe((M) => M.setLayer), d = x((M) => M.addLayers), b = x((M) => M.removeLayers), y = x(ht((M) => {
1516
1516
  var k;
1517
1517
  return (k = M.maps[e]) == null ? void 0 : k.layers.filter((u) => !rn.includes(u));
1518
1518
  })), T = x((M) => M.getDeckInstance), f = Me({});
@@ -1561,14 +1561,14 @@ function on({
1561
1561
  var C;
1562
1562
  (C = u.properties).label ?? (C.label = `${n == null ? void 0 : n.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
1563
1563
  const P = u.id ?? crypto.randomUUID();
1564
- y(e, P, {
1564
+ m(e, P, {
1565
1565
  geometry: u.geometry,
1566
1566
  properties: u.properties,
1567
1567
  // visible: true,
1568
1568
  type: o
1569
1569
  });
1570
1570
  }), q());
1571
- }, [o, q, n == null ? void 0 : n.mask, e, p, y]);
1571
+ }, [o, q, n == null ? void 0 : n.mask, e, p, m]);
1572
1572
  return z(() => {
1573
1573
  const M = i, {
1574
1574
  border: k,
@@ -1617,7 +1617,7 @@ function on({
1617
1617
  b(e, [_e.id]);
1618
1618
  };
1619
1619
  }, [d, e, S, _, b, h]), z(() => {
1620
- m == null || m.forEach((M) => {
1620
+ y == null || y.forEach((M) => {
1621
1621
  var v;
1622
1622
  const k = (v = T(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === M);
1623
1623
  i && (f.current[M] = k == null ? void 0 : k.props.pickable);
@@ -1630,7 +1630,7 @@ function on({
1630
1630
  }
1631
1631
  });
1632
1632
  });
1633
- }, [i, T, e, m, _.length, h]), r;
1633
+ }, [i, T, e, y, _.length, h]), r;
1634
1634
  }
1635
1635
  on.Controls = Qs;
1636
1636
  function an({
@@ -1661,7 +1661,7 @@ function ln({
1661
1661
  pointColor: a,
1662
1662
  textOptions: l
1663
1663
  }) {
1664
- const y = fe(e, {
1664
+ const m = fe(e, {
1665
1665
  visible: n,
1666
1666
  pickable: n,
1667
1667
  modeConfig: {
@@ -1707,7 +1707,7 @@ function ln({
1707
1707
  getEditHandlePointColor: a,
1708
1708
  getEditHandlePointOutlineColor: i
1709
1709
  });
1710
- return fe(c, y);
1710
+ return fe(c, m);
1711
1711
  }
1712
1712
  const cn = (r) => ze()((e) => ({
1713
1713
  measurements: r.reduce((n, s) => {
@@ -1716,25 +1716,25 @@ const cn = (r) => ze()((e) => ({
1716
1716
  modeSelected: i,
1717
1717
  modes: a = en,
1718
1718
  units: l = tn,
1719
- distance: y = 0,
1719
+ distance: m = 0,
1720
1720
  finished: c = !1,
1721
1721
  locale: p = "en",
1722
1722
  positions: h = [],
1723
1723
  clearLayerOnStart: d = !1,
1724
1724
  unit: b = Ie["m-km"],
1725
- enabled: m = !1
1725
+ enabled: y = !1
1726
1726
  } = s;
1727
1727
  return n[o] = {
1728
1728
  modes: a,
1729
1729
  units: l,
1730
1730
  modeSelected: i,
1731
- distance: y,
1731
+ distance: m,
1732
1732
  finished: c,
1733
1733
  locale: p,
1734
1734
  positions: h,
1735
1735
  unit: b,
1736
1736
  clearLayerOnStart: d,
1737
- enabled: m
1737
+ enabled: y
1738
1738
  }, n;
1739
1739
  }, {}),
1740
1740
  mode: Et,
@@ -1856,16 +1856,16 @@ function Lt(r) {
1856
1856
  const i = I(o);
1857
1857
  let a;
1858
1858
  e[4] !== t ? (a = (D) => D.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
1859
- const l = I(a), y = I(bn);
1859
+ const l = I(a), m = I(bn);
1860
1860
  let c;
1861
- e[6] !== y || e[7] !== t ? (c = (D) => y(t, D), e[6] = y, e[7] = t, e[8] = c) : c = e[8];
1861
+ e[6] !== m || e[7] !== t ? (c = (D) => m(t, D), e[6] = m, e[7] = t, e[8] = c) : c = e[8];
1862
1862
  const p = c;
1863
1863
  let h;
1864
1864
  e[9] !== t ? (h = (D) => D.measurements[t].clearLayerOnStart, e[9] = t, e[10] = h) : h = e[10];
1865
1865
  const d = I(h);
1866
1866
  let b;
1867
1867
  e[11] !== t ? (b = (D) => D.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
1868
- const m = I(b), T = I(gn);
1868
+ const y = I(b), T = I(gn);
1869
1869
  let f;
1870
1870
  e[13] !== T || e[14] !== t ? (f = (D) => T(t, D), e[13] = T, e[14] = t, e[15] = f) : f = e[15];
1871
1871
  const g = f;
@@ -1918,13 +1918,13 @@ function Lt(r) {
1918
1918
  }, e[50] = g, e[51] = Se) : Se = e[51];
1919
1919
  const De = Se;
1920
1920
  let we;
1921
- return e[52] !== Fe || e[53] !== d || e[54] !== l || e[55] !== m || e[56] !== F || e[57] !== k || e[58] !== L || e[59] !== _ || e[60] !== s || e[61] !== B || e[62] !== p || e[63] !== g || e[64] !== $ || e[65] !== P || e[66] !== W || e[67] !== A || e[68] !== de || e[69] !== Ce || e[70] !== De || e[71] !== ke || e[72] !== i ? (we = {
1921
+ return e[52] !== Fe || e[53] !== d || e[54] !== l || e[55] !== y || e[56] !== F || e[57] !== k || e[58] !== L || e[59] !== _ || e[60] !== s || e[61] !== B || e[62] !== p || e[63] !== g || e[64] !== $ || e[65] !== P || e[66] !== W || e[67] !== A || e[68] !== de || e[69] !== Ce || e[70] !== De || e[71] !== ke || e[72] !== i ? (we = {
1922
1922
  modes: s,
1923
1923
  units: i,
1924
1924
  distance: l,
1925
1925
  clearLayerOnStart: d,
1926
1926
  modeSelected: _,
1927
- enabled: m,
1927
+ enabled: y,
1928
1928
  finished: F,
1929
1929
  locale: k,
1930
1930
  modeInstance: L,
@@ -1940,7 +1940,7 @@ function Lt(r) {
1940
1940
  toggleLayer: De,
1941
1941
  clearLayer: Fe,
1942
1942
  setModeInstance: W
1943
- }, e[52] = Fe, e[53] = d, e[54] = l, e[55] = m, e[56] = F, e[57] = k, e[58] = L, e[59] = _, e[60] = s, e[61] = B, e[62] = p, e[63] = g, e[64] = $, e[65] = P, e[66] = W, e[67] = A, e[68] = de, e[69] = Ce, e[70] = De, e[71] = ke, e[72] = i, e[73] = we) : we = e[73], we;
1943
+ }, e[52] = Fe, e[53] = d, e[54] = l, e[55] = y, e[56] = F, e[57] = k, e[58] = L, e[59] = _, e[60] = s, e[61] = B, e[62] = p, e[63] = g, e[64] = $, e[65] = P, e[66] = W, e[67] = A, e[68] = de, e[69] = Ce, e[70] = De, e[71] = ke, e[72] = i, e[73] = we) : we = e[73], we;
1944
1944
  }
1945
1945
  function dn(r) {
1946
1946
  return r.setUnit;
@@ -1980,13 +1980,13 @@ function vn(r) {
1980
1980
  modes: i,
1981
1981
  units: a,
1982
1982
  distance: l,
1983
- setDistance: y,
1983
+ setDistance: m,
1984
1984
  clearLayerOnStart: c,
1985
1985
  modeSelected: p,
1986
1986
  setModeSelected: h,
1987
1987
  enabled: d,
1988
1988
  setEnabled: b,
1989
- finished: m,
1989
+ finished: y,
1990
1990
  setFinished: T,
1991
1991
  locale: f,
1992
1992
  setLocale: g,
@@ -2012,16 +2012,16 @@ function vn(r) {
2012
2012
  let $;
2013
2013
  e[7] !== p || e[8] !== i || e[9] !== b || e[10] !== _ || e[11] !== E ? ($ = [i, p, E, _, b], e[7] = p, e[8] = i, e[9] = b, e[10] = _, e[11] = E, e[12] = $) : $ = e[12], z(q, $);
2014
2014
  let M;
2015
- e[13] !== j || e[14] !== F || e[15] !== c || e[16] !== m ? (M = (P) => {
2016
- P && (c || !m) && F(), j(P);
2017
- }, e[13] = j, e[14] = F, e[15] = c, e[16] = m, e[17] = M) : M = e[17];
2015
+ e[13] !== j || e[14] !== F || e[15] !== c || e[16] !== y ? (M = (P) => {
2016
+ P && (c || !y) && F(), j(P);
2017
+ }, e[13] = j, e[14] = F, e[15] = c, e[16] = y, e[17] = M) : M = e[17];
2018
2018
  const k = M, u = !!c;
2019
2019
  let v;
2020
- return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== d || e[22] !== m || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== y || e[30] !== b || e[31] !== T || e[32] !== g || e[33] !== h || e[34] !== E || e[35] !== U || e[36] !== u || e[37] !== n || e[38] !== k || e[39] !== A || e[40] !== a ? (v = s({
2020
+ return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== d || e[22] !== y || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== m || e[30] !== b || e[31] !== T || e[32] !== g || e[33] !== h || e[34] !== E || e[35] !== U || e[36] !== u || e[37] !== n || e[38] !== k || e[39] !== A || e[40] !== a ? (v = s({
2021
2021
  mapId: t,
2022
2022
  distance: l,
2023
2023
  enabled: d,
2024
- finished: m,
2024
+ finished: y,
2025
2025
  locale: f,
2026
2026
  positions: w,
2027
2027
  unit: A,
@@ -2037,7 +2037,7 @@ function vn(r) {
2037
2037
  }),
2038
2038
  modeInstance: S,
2039
2039
  setModeSelected: h,
2040
- setDistance: y,
2040
+ setDistance: m,
2041
2041
  setFinished: T,
2042
2042
  setLocale: g,
2043
2043
  setPositions: E,
@@ -2045,7 +2045,7 @@ function vn(r) {
2045
2045
  setEnabled: b,
2046
2046
  toggleLayer: k,
2047
2047
  clearLayer: F
2048
- }), e[18] = s, e[19] = F, e[20] = l, e[21] = d, e[22] = m, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = y, e[30] = b, e[31] = T, e[32] = g, e[33] = h, e[34] = E, e[35] = U, e[36] = u, e[37] = n, e[38] = k, e[39] = A, e[40] = a, e[41] = v) : v = e[41], v;
2048
+ }), e[18] = s, e[19] = F, e[20] = l, e[21] = d, e[22] = y, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = m, e[30] = b, e[31] = T, e[32] = g, e[33] = h, e[34] = E, e[35] = U, e[36] = u, e[37] = n, e[38] = k, e[39] = A, e[40] = a, e[41] = v) : v = e[41], v;
2049
2049
  }
2050
2050
  const Sn = [ne];
2051
2051
  function wn({
@@ -2064,23 +2064,23 @@ function wn({
2064
2064
  clearLayerOnStart: i,
2065
2065
  enabled: a,
2066
2066
  finished: l,
2067
- setFinished: y,
2067
+ setFinished: m,
2068
2068
  locale: c,
2069
2069
  setPositions: p,
2070
2070
  unit: h,
2071
2071
  modeInstance: d
2072
2072
  } = Lt({
2073
2073
  mapId: e
2074
- }), b = pe((w) => w.setLayer), m = x((w) => w.addLayers), T = x((w) => w.removeLayers), f = x(ht((w) => {
2074
+ }), b = pe((w) => w.setLayer), y = x((w) => w.addLayers), T = x((w) => w.removeLayers), f = x(ht((w) => {
2075
2075
  var E;
2076
2076
  return (E = w.maps[e]) == null ? void 0 : E.layers.filter((A) => !Sn.includes(A));
2077
2077
  })), g = x((w) => w.getDeckInstance), S = Me({});
2078
2078
  Mt({
2079
2079
  mapId: e,
2080
2080
  layerId: ne
2081
- }), z(() => (a && m(e, [ne]), () => {
2081
+ }), z(() => (a && y(e, [ne]), () => {
2082
2082
  T(e, [ne]);
2083
- }), [m, i, e, T, a]), z(() => {
2083
+ }), [y, i, e, T, a]), z(() => {
2084
2084
  f == null || f.forEach((w) => {
2085
2085
  var U;
2086
2086
  const E = (U = g(e)) == null ? void 0 : U.props.layers.find((F) => F.props.id === w);
@@ -2101,10 +2101,10 @@ function wn({
2101
2101
  d.resetClickSequence();
2102
2102
  return;
2103
2103
  }
2104
- w === Y.addPosition && o(E.distance), y(!!E.finished);
2104
+ w === Y.addPosition && o(E.distance), m(!!E.finished);
2105
2105
  const A = E.positions;
2106
2106
  A != null && A.length && p(A);
2107
- }, [d, o, y, p]);
2107
+ }, [d, o, m, p]);
2108
2108
  return z(() => {
2109
2109
  const w = l ? t.colors.finished : t.colors.editing, E = l ? t.colors.finished : t.colors.point, A = an({
2110
2110
  layerProps: {
@@ -2129,14 +2129,14 @@ function _n(r) {
2129
2129
  mapId: t
2130
2130
  } = r;
2131
2131
  let n;
2132
- e[0] !== t ? (n = (y) => y.maps[t], e[0] = t, e[1] = n) : n = e[1];
2132
+ e[0] !== t ? (n = (m) => m.maps[t], e[0] = t, e[1] = n) : n = e[1];
2133
2133
  const {
2134
2134
  layers: s
2135
2135
  } = x(n), o = pe(En);
2136
2136
  let i, a;
2137
2137
  if (e[2] !== o || e[3] !== s) {
2138
- let y;
2139
- e[5] !== o ? (y = (c) => o[c], e[5] = o, e[6] = y) : y = e[6], a = s.map(y).filter(Tn), e[2] = o, e[3] = s, e[4] = a;
2138
+ let m;
2139
+ e[5] !== o ? (m = (c) => o[c], e[5] = o, e[6] = m) : m = e[6], a = s.map(m).filter(Tn), e[2] = o, e[3] = s, e[4] = a;
2140
2140
  } else
2141
2141
  a = e[4];
2142
2142
  return i = a, i;
@@ -2167,13 +2167,13 @@ function Br(r) {
2167
2167
  const a = x(i);
2168
2168
  let l;
2169
2169
  e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
2170
- const y = x(l);
2170
+ const m = x(l);
2171
2171
  let c;
2172
2172
  e[9] !== t ? (c = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = c) : c = e[10];
2173
2173
  const p = x(c), h = Me(null);
2174
2174
  let d;
2175
2175
  e[11] !== t ? (d = (L) => L.viewStates[t], e[11] = t, e[12] = d) : d = e[12];
2176
- const b = x(d), m = x(Cn), T = x(An), f = x(kn), g = x(On), S = x(Ln);
2176
+ const b = x(d), y = x(Cn), T = x(An), f = x(kn), g = x(On), S = x(Ln);
2177
2177
  let _;
2178
2178
  e[13] !== t ? (_ = {
2179
2179
  mapId: t
@@ -2200,11 +2200,11 @@ function Br(r) {
2200
2200
  }, e[22] = t, e[23] = n, e[24] = f, e[25] = S, e[26] = q) : q = e[26];
2201
2201
  const $ = q;
2202
2202
  let M;
2203
- e[27] !== m || e[28] !== t || e[29] !== o || e[30] !== g ? (M = (L) => {
2203
+ e[27] !== y || e[28] !== t || e[29] !== o || e[30] !== g ? (M = (L) => {
2204
2204
  var W, Z;
2205
- const O = (W = m(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(Pn));
2205
+ const O = (W = y(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(Pn));
2206
2206
  g(t, H), (Z = o.onAfterRender) == null || Z.call(o, L);
2207
- }, e[27] = m, e[28] = t, e[29] = o, e[30] = g, e[31] = M) : M = e[31];
2207
+ }, e[27] = y, e[28] = t, e[29] = o, e[30] = g, e[31] = M) : M = e[31];
2208
2208
  const k = M, u = o.onDragEnd;
2209
2209
  let v;
2210
2210
  e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...L) => {
@@ -2213,7 +2213,7 @@ function Br(r) {
2213
2213
  }, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
2214
2214
  const P = v;
2215
2215
  let C;
2216
- return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !== P || e[40] !== $ || e[41] !== j || e[42] !== t || e[43] !== y || e[44] !== p || e[45] !== o || e[46] !== b ? (C = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: y, overlayRef: p, basemap: a, initialViewState: b, onLoad: $, onViewStateChange: j, onAfterRender: k, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = k, e[39] = P, e[40] = $, e[41] = j, e[42] = t, e[43] = y, e[44] = p, e[45] = o, e[46] = b, e[47] = C) : C = e[47], C;
2216
+ return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !== P || e[40] !== $ || e[41] !== j || e[42] !== t || e[43] !== m || e[44] !== p || e[45] !== o || e[46] !== b ? (C = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: m, overlayRef: p, basemap: a, initialViewState: b, onLoad: $, onViewStateChange: j, onAfterRender: k, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = k, e[39] = P, e[40] = $, e[41] = j, e[42] = t, e[43] = m, e[44] = p, e[45] = o, e[46] = b, e[47] = C) : C = e[47], C;
2217
2217
  }
2218
2218
  function Pn(r) {
2219
2219
  return r == null ? void 0 : r.isLoaded;
@@ -2258,7 +2258,7 @@ function Fn() {
2258
2258
  formData: "FormData" in a,
2259
2259
  arrayBuffer: "ArrayBuffer" in a
2260
2260
  };
2261
- function y(u) {
2261
+ function m(u) {
2262
2262
  return u && DataView.prototype.isPrototypeOf(u);
2263
2263
  }
2264
2264
  if (l.arrayBuffer)
@@ -2294,8 +2294,8 @@ function Fn() {
2294
2294
  return v;
2295
2295
  }), v;
2296
2296
  }
2297
- function m(u) {
2298
- this.map = {}, u instanceof m ? u.forEach(function(v, P) {
2297
+ function y(u) {
2298
+ this.map = {}, u instanceof y ? u.forEach(function(v, P) {
2299
2299
  this.append(P, v);
2300
2300
  }, this) : Array.isArray(u) ? u.forEach(function(v) {
2301
2301
  if (v.length != 2)
@@ -2305,37 +2305,37 @@ function Fn() {
2305
2305
  this.append(v, u[v]);
2306
2306
  }, this);
2307
2307
  }
2308
- m.prototype.append = function(u, v) {
2308
+ y.prototype.append = function(u, v) {
2309
2309
  u = h(u), v = d(v);
2310
2310
  var P = this.map[u];
2311
2311
  this.map[u] = P ? P + ", " + v : v;
2312
- }, m.prototype.delete = function(u) {
2312
+ }, y.prototype.delete = function(u) {
2313
2313
  delete this.map[h(u)];
2314
- }, m.prototype.get = function(u) {
2314
+ }, y.prototype.get = function(u) {
2315
2315
  return u = h(u), this.has(u) ? this.map[u] : null;
2316
- }, m.prototype.has = function(u) {
2316
+ }, y.prototype.has = function(u) {
2317
2317
  return this.map.hasOwnProperty(h(u));
2318
- }, m.prototype.set = function(u, v) {
2318
+ }, y.prototype.set = function(u, v) {
2319
2319
  this.map[h(u)] = d(v);
2320
- }, m.prototype.forEach = function(u, v) {
2320
+ }, y.prototype.forEach = function(u, v) {
2321
2321
  for (var P in this.map)
2322
2322
  this.map.hasOwnProperty(P) && u.call(v, this.map[P], P, this);
2323
- }, m.prototype.keys = function() {
2323
+ }, y.prototype.keys = function() {
2324
2324
  var u = [];
2325
2325
  return this.forEach(function(v, P) {
2326
2326
  u.push(P);
2327
2327
  }), b(u);
2328
- }, m.prototype.values = function() {
2328
+ }, y.prototype.values = function() {
2329
2329
  var u = [];
2330
2330
  return this.forEach(function(v) {
2331
2331
  u.push(v);
2332
2332
  }), b(u);
2333
- }, m.prototype.entries = function() {
2333
+ }, y.prototype.entries = function() {
2334
2334
  var u = [];
2335
2335
  return this.forEach(function(v, P) {
2336
2336
  u.push([P, v]);
2337
2337
  }), b(u);
2338
- }, l.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
2338
+ }, l.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
2339
2339
  function T(u) {
2340
2340
  if (!u._noBody) {
2341
2341
  if (u.bodyUsed)
@@ -2373,7 +2373,7 @@ function Fn() {
2373
2373
  }
2374
2374
  function E() {
2375
2375
  return this.bodyUsed = !1, this._initBody = function(u) {
2376
- this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && y(u) ? (this._bodyArrayBuffer = w(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || p(u)) ? this._bodyArrayBuffer = w(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2376
+ this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && m(u) ? (this._bodyArrayBuffer = w(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || p(u)) ? this._bodyArrayBuffer = w(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2377
2377
  }, l.blob && (this.blob = function() {
2378
2378
  var u = T(this);
2379
2379
  if (u)
@@ -2429,10 +2429,10 @@ function Fn() {
2429
2429
  if (u instanceof F) {
2430
2430
  if (u.bodyUsed)
2431
2431
  throw new TypeError("Already read");
2432
- this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new m(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
2432
+ this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new y(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
2433
2433
  } else
2434
2434
  this.url = String(u);
2435
- if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new m(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
2435
+ if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new y(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
2436
2436
  if ("AbortController" in a) {
2437
2437
  var O = new AbortController();
2438
2438
  return O.signal;
@@ -2462,7 +2462,7 @@ function Fn() {
2462
2462
  }), v;
2463
2463
  }
2464
2464
  function q(u) {
2465
- var v = new m(), P = u.replace(/\r?\n[\t ]+/g, " ");
2465
+ var v = new y(), P = u.replace(/\r?\n[\t ]+/g, " ");
2466
2466
  return P.split("\r").map(function(C) {
2467
2467
  return C.indexOf(`
2468
2468
  `) === 0 ? C.substr(1, C.length) : C;
@@ -2484,13 +2484,13 @@ function Fn() {
2484
2484
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2485
2485
  if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
2486
2486
  throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
2487
- this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new m(v.headers), this.url = v.url || "", this._initBody(u);
2487
+ this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new y(v.headers), this.url = v.url || "", this._initBody(u);
2488
2488
  }
2489
2489
  E.call($.prototype), $.prototype.clone = function() {
2490
2490
  return new $(this._bodyInit, {
2491
2491
  status: this.status,
2492
2492
  statusText: this.statusText,
2493
- headers: new m(this.headers),
2493
+ headers: new y(this.headers),
2494
2494
  url: this.url
2495
2495
  });
2496
2496
  }, $.error = function() {
@@ -2551,7 +2551,7 @@ function Fn() {
2551
2551
  return B;
2552
2552
  }
2553
2553
  }
2554
- if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof m || a.Headers && v.headers instanceof a.Headers)) {
2554
+ if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof y || a.Headers && v.headers instanceof a.Headers)) {
2555
2555
  var Z = [];
2556
2556
  Object.getOwnPropertyNames(v.headers).forEach(function(B) {
2557
2557
  Z.push(h(B)), O.setRequestHeader(B, d(v.headers[B]));
@@ -2567,7 +2567,7 @@ function Fn() {
2567
2567
  }), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
2568
2568
  });
2569
2569
  }
2570
- return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers = m, a.Request = F, a.Response = $), i.Headers = m, i.Request = F, i.Response = $, i.fetch = k, i;
2570
+ return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers = y, a.Request = F, a.Response = $), i.Headers = y, i.Request = F, i.Response = $, i.fetch = k, i;
2571
2571
  })({});
2572
2572
  })(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
2573
2573
  var s = t.fetch ? t : n;
@@ -2617,17 +2617,17 @@ function jn() {
2617
2617
  return Array.isArray(f) ? [] : {};
2618
2618
  }
2619
2619
  function a(f, g) {
2620
- return g.clone !== !1 && g.isMergeableObject(f) ? m(i(f), f, g) : f;
2620
+ return g.clone !== !1 && g.isMergeableObject(f) ? y(i(f), f, g) : f;
2621
2621
  }
2622
2622
  function l(f, g, S) {
2623
2623
  return f.concat(g).map(function(_) {
2624
2624
  return a(_, S);
2625
2625
  });
2626
2626
  }
2627
- function y(f, g) {
2628
- if (!g.customMerge) return m;
2627
+ function m(f, g) {
2628
+ if (!g.customMerge) return y;
2629
2629
  var S = g.customMerge(f);
2630
- return typeof S == "function" ? S : m;
2630
+ return typeof S == "function" ? S : y;
2631
2631
  }
2632
2632
  function c(f) {
2633
2633
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(g) {
@@ -2652,21 +2652,21 @@ function jn() {
2652
2652
  return S.isMergeableObject(f) && p(f).forEach(function(w) {
2653
2653
  _[w] = a(f[w], S);
2654
2654
  }), p(g).forEach(function(w) {
2655
- d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = y(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
2655
+ d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = m(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
2656
2656
  }), _;
2657
2657
  }
2658
- function m(f, g, S) {
2658
+ function y(f, g, S) {
2659
2659
  S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
2660
2660
  var _ = Array.isArray(g), w = Array.isArray(f), E = _ === w;
2661
2661
  return E ? _ ? S.arrayMerge(f, g, S) : b(f, g, S) : a(g, S);
2662
2662
  }
2663
- m.all = function(f, g) {
2663
+ y.all = function(f, g) {
2664
2664
  if (!Array.isArray(f)) throw new Error("first argument should be an array");
2665
2665
  return f.reduce(function(S, _) {
2666
- return m(S, _, g);
2666
+ return y(S, _, g);
2667
2667
  }, {});
2668
2668
  };
2669
- var T = m;
2669
+ var T = y;
2670
2670
  return Be = T, Be;
2671
2671
  }
2672
2672
  var Bn = jn();
@@ -2728,11 +2728,11 @@ async function kt({
2728
2728
  },
2729
2729
  ...l
2730
2730
  }) {
2731
- let y = $n({
2731
+ let m = $n({
2732
2732
  url: i,
2733
2733
  params: o
2734
2734
  }), c = e, p = s;
2735
- s === ue.get && y.length > a && (c = o, p = ue.post, y = i);
2735
+ s === ue.get && m.length > a && (c = o, p = ue.post, m = i);
2736
2736
  const h = In({
2737
2737
  body: c,
2738
2738
  accessToken: t ?? (n == null ? void 0 : n.accessToken),
@@ -2740,7 +2740,7 @@ async function kt({
2740
2740
  ...l
2741
2741
  });
2742
2742
  r && (h.signal = r);
2743
- const d = await Rn(y, h);
2743
+ const d = await Rn(m, h);
2744
2744
  if (!d.ok) {
2745
2745
  const b = await d.text();
2746
2746
  return Promise.reject(new Error(b));
@@ -2762,13 +2762,13 @@ const Pe = yt()(ys((r) => ({
2762
2762
  const i = s[e], {
2763
2763
  apiBaseUrl: a = We,
2764
2764
  clientId: l = Un,
2765
- apiVersion: y = Ze,
2765
+ apiVersion: m = Ze,
2766
2766
  ...c
2767
2767
  } = t, p = {
2768
2768
  ...i,
2769
2769
  ...c,
2770
2770
  apiBaseUrl: a,
2771
- apiVersion: y,
2771
+ apiVersion: m,
2772
2772
  clientId: l
2773
2773
  }, h = Gn({
2774
2774
  source: p
@@ -2928,7 +2928,7 @@ function zn(r) {
2928
2928
  enabled: a,
2929
2929
  ...l
2930
2930
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
2931
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
2931
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
2932
2932
  let h;
2933
2933
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["categories", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
2934
2934
  let d;
@@ -2942,14 +2942,14 @@ function zn(r) {
2942
2942
  signal: f
2943
2943
  });
2944
2944
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
2945
- const b = !!p && y;
2946
- let m;
2947
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
2945
+ const b = !!p && m;
2946
+ let y;
2947
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
2948
2948
  queryKey: h,
2949
2949
  queryFn: d,
2950
2950
  enabled: b,
2951
2951
  ...l
2952
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
2952
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
2953
2953
  }
2954
2954
  function Nr(r) {
2955
2955
  const e = R(6);
@@ -2976,7 +2976,7 @@ function Qn(r) {
2976
2976
  enabled: a,
2977
2977
  ...l
2978
2978
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
2979
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
2979
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
2980
2980
  let h;
2981
2981
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["features", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
2982
2982
  let d;
@@ -2990,14 +2990,14 @@ function Qn(r) {
2990
2990
  signal: f
2991
2991
  });
2992
2992
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
2993
- const b = !!p && y;
2994
- let m;
2995
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
2993
+ const b = !!p && m;
2994
+ let y;
2995
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
2996
2996
  queryKey: h,
2997
2997
  queryFn: d,
2998
2998
  enabled: b,
2999
2999
  ...l
3000
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3000
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3001
3001
  }
3002
3002
  function Hr(r) {
3003
3003
  const e = R(6);
@@ -3024,7 +3024,7 @@ function Wn(r) {
3024
3024
  enabled: a,
3025
3025
  ...l
3026
3026
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3027
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3027
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3028
3028
  let h;
3029
3029
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["formula", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3030
3030
  let d;
@@ -3038,14 +3038,14 @@ function Wn(r) {
3038
3038
  signal: f
3039
3039
  });
3040
3040
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3041
- const b = !!p && y;
3042
- let m;
3043
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3041
+ const b = !!p && m;
3042
+ let y;
3043
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3044
3044
  queryKey: h,
3045
3045
  queryFn: d,
3046
3046
  enabled: b,
3047
3047
  ...l
3048
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3048
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3049
3049
  }
3050
3050
  function Gr(r) {
3051
3051
  const e = R(6);
@@ -3072,7 +3072,7 @@ function Zn(r) {
3072
3072
  enabled: a,
3073
3073
  ...l
3074
3074
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3075
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3075
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3076
3076
  let h;
3077
3077
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["histogram", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3078
3078
  let d;
@@ -3086,14 +3086,14 @@ function Zn(r) {
3086
3086
  signal: f
3087
3087
  });
3088
3088
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3089
- const b = !!p && y;
3090
- let m;
3091
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3089
+ const b = !!p && m;
3090
+ let y;
3091
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3092
3092
  queryKey: h,
3093
3093
  queryFn: d,
3094
3094
  enabled: b,
3095
3095
  ...l
3096
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3096
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3097
3097
  }
3098
3098
  function zr(r) {
3099
3099
  const e = R(6);
@@ -3120,7 +3120,7 @@ function Kn(r) {
3120
3120
  enabled: a,
3121
3121
  ...l
3122
3122
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3123
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3123
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3124
3124
  let h;
3125
3125
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["range", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3126
3126
  let d;
@@ -3134,14 +3134,14 @@ function Kn(r) {
3134
3134
  signal: f
3135
3135
  });
3136
3136
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3137
- const b = !!p && y;
3138
- let m;
3139
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3137
+ const b = !!p && m;
3138
+ let y;
3139
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3140
3140
  queryKey: h,
3141
3141
  queryFn: d,
3142
3142
  enabled: b,
3143
3143
  ...l
3144
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3144
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3145
3145
  }
3146
3146
  function Qr(r) {
3147
3147
  const e = R(6);
@@ -3168,7 +3168,7 @@ function Yn(r) {
3168
3168
  enabled: a,
3169
3169
  ...l
3170
3170
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3171
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3171
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3172
3172
  let h;
3173
3173
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["scatter", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3174
3174
  let d;
@@ -3182,14 +3182,14 @@ function Yn(r) {
3182
3182
  signal: f
3183
3183
  });
3184
3184
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3185
- const b = !!p && y;
3186
- let m;
3187
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3185
+ const b = !!p && m;
3186
+ let y;
3187
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3188
3188
  queryKey: h,
3189
3189
  queryFn: d,
3190
3190
  enabled: b,
3191
3191
  ...l
3192
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3192
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3193
3193
  }
3194
3194
  function Wr(r) {
3195
3195
  const e = R(6);
@@ -3216,7 +3216,7 @@ function Xn(r) {
3216
3216
  enabled: a,
3217
3217
  ...l
3218
3218
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3219
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3219
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3220
3220
  let h;
3221
3221
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["table", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3222
3222
  let d;
@@ -3230,14 +3230,14 @@ function Xn(r) {
3230
3230
  signal: f
3231
3231
  });
3232
3232
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3233
- const b = !!p && y;
3234
- let m;
3235
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3233
+ const b = !!p && m;
3234
+ let y;
3235
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3236
3236
  queryKey: h,
3237
3237
  queryFn: d,
3238
3238
  enabled: b,
3239
3239
  ...l
3240
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3240
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3241
3241
  }
3242
3242
  function Zr(r) {
3243
3243
  const e = R(6);
@@ -3264,7 +3264,7 @@ function Jn(r) {
3264
3264
  enabled: a,
3265
3265
  ...l
3266
3266
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3267
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3267
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3268
3268
  let h;
3269
3269
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["time-series", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3270
3270
  let d;
@@ -3278,14 +3278,14 @@ function Jn(r) {
3278
3278
  signal: f
3279
3279
  });
3280
3280
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3281
- const b = !!p && y;
3282
- let m;
3283
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3281
+ const b = !!p && m;
3282
+ let y;
3283
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3284
3284
  queryKey: h,
3285
3285
  queryFn: d,
3286
3286
  enabled: b,
3287
3287
  ...l
3288
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3288
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3289
3289
  }
3290
3290
  function Kr(r) {
3291
3291
  const e = R(6);
@@ -3311,40 +3311,40 @@ function Xr(r) {
3311
3311
  const a = i;
3312
3312
  let l;
3313
3313
  e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
3314
- const y = l;
3314
+ const m = l;
3315
3315
  let c;
3316
- e[4] !== t || e[5] !== y ? (c = /* @__PURE__ */ N(un, { values: y, children: t }), e[4] = t, e[5] = y, e[6] = c) : c = e[6];
3316
+ e[4] !== t || e[5] !== m ? (c = /* @__PURE__ */ N(un, { values: m, children: t }), e[4] = t, e[5] = m, e[6] = c) : c = e[6];
3317
3317
  let p;
3318
3318
  e[7] !== a || e[8] !== c ? (p = /* @__PURE__ */ N(zs, { values: a, children: c }), e[7] = a, e[8] = c, e[9] = p) : p = e[9];
3319
3319
  let h;
3320
3320
  return e[10] !== n || e[11] !== p ? (h = /* @__PURE__ */ N(Bs, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = h) : h = e[12], h;
3321
3321
  }
3322
3322
  function Jr(r, e) {
3323
- const t = pe((y) => y.layers), n = pe((y) => y.setLayer), s = re(() => Ot(r.map((y) => t[y]).filter((y) => !!y)), [t, r]), o = re(() => s.map(e), [e, s]), i = Q(({
3324
- id: y,
3323
+ const t = pe((m) => m.layers), n = pe((m) => m.setLayer), s = re(() => Ot(r.map((m) => t[m]).filter((m) => !!(m != null && m.legend))), [t, r]), o = re(() => s.map(e), [e, s]), i = Q(({
3324
+ id: m,
3325
3325
  visible: c,
3326
3326
  ...p
3327
3327
  }) => {
3328
- n(y, {
3328
+ n(m, {
3329
3329
  props: {
3330
3330
  visible: c
3331
3331
  },
3332
3332
  legend: p
3333
3333
  });
3334
3334
  }, [n]), a = Q(({
3335
- id: y,
3335
+ id: m,
3336
3336
  collapsed: c
3337
3337
  }) => {
3338
- n(y, {
3338
+ n(m, {
3339
3339
  legend: {
3340
3340
  collapsed: c
3341
3341
  }
3342
3342
  });
3343
3343
  }, [n]), l = Q(({
3344
- id: y,
3344
+ id: m,
3345
3345
  opacity: c
3346
3346
  }) => {
3347
- n(y, {
3347
+ n(m, {
3348
3348
  props: {
3349
3349
  opacity: c
3350
3350
  }
@@ -3360,19 +3360,19 @@ function Jr(r, e) {
3360
3360
  function eo({
3361
3361
  mapId: r
3362
3362
  }) {
3363
- const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((m) => {
3363
+ const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((y) => {
3364
3364
  var T;
3365
- return (T = m.maps[r]) == null ? void 0 : T.basemap;
3366
- }), i = x((m) => m.getDeckInstance), a = x((m) => m.getOverlayInstance), l = x((m) => m.areLayersLoaded[r]), c = x((m) => {
3365
+ return (T = y.maps[r]) == null ? void 0 : T.basemap;
3366
+ }), i = x((y) => y.getDeckInstance), a = x((y) => y.getOverlayInstance), l = x((y) => y.areLayersLoaded[r]), c = x((y) => {
3367
3367
  var T;
3368
- return (T = m.maps[r]) == null ? void 0 : T.isLoaded;
3368
+ return (T = y.maps[r]) == null ? void 0 : T.isLoaded;
3369
3369
  }) && l, {
3370
3370
  type: p
3371
3371
  } = ye[o], h = p === te.googleMaps, d = Q(async () => {
3372
- const m = i(r), T = a(r);
3372
+ const y = i(r), T = a(r);
3373
3373
  try {
3374
3374
  const f = document.createElement("canvas");
3375
- f.width = m.width ?? 0, f.height = m.height ?? 0;
3375
+ f.width = y.width ?? 0, f.height = y.height ?? 0;
3376
3376
  const g = f.getContext("2d");
3377
3377
  if (h) {
3378
3378
  const _ = T;
@@ -3381,12 +3381,12 @@ function eo({
3381
3381
  const w = await hs(_.getDiv(), {
3382
3382
  useCORS: !0
3383
3383
  });
3384
- g == null || g.drawImage(w, 0, 0, m.width, m.height);
3384
+ g == null || g.drawImage(w, 0, 0, y.width, y.height);
3385
3385
  } else {
3386
3386
  const _ = T;
3387
- _.redraw(), g == null || g.drawImage(_.getMap().getCanvas(), 0, 0, m.width, m.height);
3387
+ _.redraw(), g == null || g.drawImage(_.getMap().getCanvas(), 0, 0, y.width, y.height);
3388
3388
  }
3389
- m == null || m.redraw("screenshot"), g == null || g.drawImage(m.getCanvas(), 0, 0, m.width, m.height);
3389
+ y == null || y.redraw("screenshot"), g == null || g.drawImage(y.getCanvas(), 0, 0, y.width, y.height);
3390
3390
  const S = f.toDataURL();
3391
3391
  t(S);
3392
3392
  } catch (f) {
@@ -3504,10 +3504,10 @@ function so({
3504
3504
  getColumnName: i = lr,
3505
3505
  getFieldHtml: a = or,
3506
3506
  getTitle: l = rr,
3507
- getValue: y = ir
3507
+ getValue: m = ir
3508
3508
  }) {
3509
3509
  const c = o ? l(o) : "", h = t.reduce((d, b) => {
3510
- const m = e[b], T = r[b], f = y(T, n, m), g = s ? i(b) : "";
3510
+ const y = e[b], T = r[b], f = m(T, n, y), g = s ? i(b) : "";
3511
3511
  return d + a(g, f);
3512
3512
  }, "");
3513
3513
  return c + h;
@@ -3562,13 +3562,13 @@ function ro(r) {
3562
3562
  } = x(s);
3563
3563
  let l;
3564
3564
  e[2] !== n ? (l = (g) => g.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
3565
- const y = x(l), c = x(ur), p = x(cr), h = !y;
3565
+ const m = x(l), c = x(ur), p = x(cr), h = !m;
3566
3566
  let d;
3567
3567
  e[4] !== n || e[5] !== c ? (d = (g) => c(n, g), e[4] = n, e[5] = c, e[6] = d) : d = e[6];
3568
3568
  const b = d;
3569
- let m;
3570
- e[7] !== p || e[8] !== n ? (m = (g) => p(n, g), e[7] = p, e[8] = n, e[9] = m) : m = e[9];
3571
- const T = m;
3569
+ let y;
3570
+ e[7] !== p || e[8] !== n ? (y = (g) => p(n, g), e[7] = p, e[8] = n, e[9] = y) : y = e[9];
3571
+ const T = y;
3572
3572
  let f;
3573
3573
  return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== h || e[14] !== b || e[15] !== T || e[16] !== o ? (f = t({
3574
3574
  zoom: o,
@@ -3597,9 +3597,9 @@ async function dr({
3597
3597
  } = {},
3598
3598
  queryParameters: a,
3599
3599
  params: l,
3600
- apiVersion: y = Ze
3600
+ apiVersion: m = Ze
3601
3601
  }) {
3602
- const c = `${r}/${y}/stats/${e}/${s}`;
3602
+ const c = `${r}/${m}/stats/${e}/${s}`;
3603
3603
  return kt({
3604
3604
  accessToken: t,
3605
3605
  signal: o,
@@ -3626,11 +3626,11 @@ async function fr({
3626
3626
  } = {},
3627
3627
  apiVersion: l = Ze
3628
3628
  }) {
3629
- const y = `${r}/${l}/stats/${e}/${n}/${s}`;
3629
+ const m = `${r}/${l}/stats/${e}/${n}/${s}`;
3630
3630
  return kt({
3631
3631
  accessToken: t,
3632
3632
  signal: i,
3633
- url: y,
3633
+ url: m,
3634
3634
  method: ue.get,
3635
3635
  params: {
3636
3636
  ...o
@@ -3649,12 +3649,12 @@ function oo(r) {
3649
3649
  } = r;
3650
3650
  let l;
3651
3651
  e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
3652
- let y, c;
3652
+ let m, c;
3653
3653
  e[2] !== l ? ({
3654
- enabled: y,
3654
+ enabled: m,
3655
3655
  ...c
3656
- } = l, e[2] = l, e[3] = y, e[4] = c) : (y = e[3], c = e[4]);
3657
- const p = y === void 0 ? !0 : y;
3656
+ } = l, e[2] = l, e[3] = m, e[4] = c) : (m = e[3], c = e[4]);
3657
+ const p = m === void 0 ? !0 : m;
3658
3658
  let h;
3659
3659
  e[5] !== n || e[6] !== t ? (h = [t, n], e[5] = n, e[6] = t, e[7] = h) : h = e[7];
3660
3660
  let d;
@@ -3669,10 +3669,10 @@ function oo(r) {
3669
3669
  return e[14] !== p || e[15] !== t || e[16] !== h || e[17] !== d || e[18] !== c ? (b = {
3670
3670
  queryKey: h,
3671
3671
  queryFn: d,
3672
- select(m) {
3672
+ select(y) {
3673
3673
  return {
3674
- ...m,
3675
- type: m.type.toLowerCase()
3674
+ ...y,
3675
+ type: y.type.toLowerCase()
3676
3676
  };
3677
3677
  },
3678
3678
  enabled: !!t && p,
@@ -3724,7 +3724,7 @@ async function mr({
3724
3724
  target: t,
3725
3725
  attribute: n
3726
3726
  }) {
3727
- var a, l, y;
3727
+ var a, l, m;
3728
3728
  const s = await ms({
3729
3729
  connectionName: r.connectionName,
3730
3730
  apiBaseUrl: r.apiBaseUrl,
@@ -3732,7 +3732,7 @@ async function mr({
3732
3732
  clientId: r.clientId,
3733
3733
  tableName: t
3734
3734
  });
3735
- if (!((y = (l = (a = s == null ? void 0 : s.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && y.attributes))
3735
+ if (!((m = (l = (a = s == null ? void 0 : s.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && m.attributes))
3736
3736
  throw new Error(`${n} not found in tileset attributes`);
3737
3737
  const i = s.tilestats.layers[0].attributes.find((c) => c.attribute === n);
3738
3738
  if (!i)