@smart-factor/gem-ui-map-component 0.0.2 → 0.0.3

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/main.js CHANGED
@@ -14,7 +14,7 @@ var Yn = (t, e, r, n) => ({
14
14
  import { jsx as m, jsxs as ae, Fragment as ft } from "react/jsx-runtime";
15
15
  import * as G from "react";
16
16
  import Ce, { useState as re, forwardRef as Al, useEffect as qe, createContext as Rl, useContext as Pl, useRef as fa, useMemo as ha, useCallback as Il } from "react";
17
- import { a as Bn, b as Nl, r as Va, i as lo, c as co, t as Ll, d as uo, e as Ml, _ as rt, s as Vl, f as T, g as tt, h as Dl, j as Fl, k as $l, l as jl, u as zl, m as ii, n as Br, P as l, o as fo, p as Ge, q as oi, v as ta, w as Ul, x as Zl, y as Bl, z as Ft, A as $t, B as li, C as jt, D as zt, E as je, F as kr, G as hs, H as qn, I as ql, T as Wl, J as ps, K as Gl, L as ci, N as Hl, O as Ql, Q as ms, R as jr, S as Da, U as Wn, V as Kl, W as ye, X as Jn, Y as Yl, Z as Xn, $ as Ze, a0 as Ht, a1 as Jl, a2 as Xl, a3 as ho, a4 as ec, a5 as po, a6 as Hr, a7 as tc, a8 as rc, a9 as nc, aa as sc, ab as ra, ac as os, ad as na, ae as ac, af as tr, ag as ui, ah as di, ai as mo, aj as He, ak as ys, al as Mt, am as zr, an as Xt, ao as yo, ap as Gn, aq as ic, ar as oc, as as Gt, at as go, au as gs, av as lc, aw as cc, ax as uc, ay as dc, az as bn, aA as fc, aB as ls, aC as hc, aD as pc, aE as mc, aF as yc, aG as gc, aH as vc, aI as bc, aJ as _c, aK as xc, aL as wc, aM as kc, aN as Cc, M as Sc, aO as Tc, aP as Ec, aQ as Oc, aR as Ac } from "./MapButtons-CN9Sn2t7.js";
17
+ import { a as Bn, b as Nl, r as Va, i as lo, c as co, t as Ll, d as uo, e as Ml, _ as rt, s as Vl, f as T, g as tt, h as Dl, j as Fl, k as $l, l as jl, u as zl, m as ii, n as Br, P as l, o as fo, p as Ge, q as oi, v as ta, w as Ul, x as Zl, y as Bl, z as Ft, A as $t, B as li, C as jt, D as zt, E as je, F as kr, G as hs, H as qn, I as ql, T as Wl, J as ps, K as Gl, L as ci, N as Hl, O as Ql, Q as ms, R as jr, S as Da, U as Wn, V as Kl, W as ye, X as Jn, Y as Yl, Z as Xn, $ as Ze, a0 as Ht, a1 as Jl, a2 as Xl, a3 as ho, a4 as ec, a5 as po, a6 as Hr, a7 as tc, a8 as rc, a9 as nc, aa as sc, ab as ra, ac as os, ad as na, ae as ac, af as tr, ag as ui, ah as di, ai as mo, aj as He, ak as ys, al as Mt, am as zr, an as Xt, ao as yo, ap as Gn, aq as ic, ar as oc, as as Gt, at as go, au as gs, av as lc, aw as cc, ax as uc, ay as dc, az as bn, aA as fc, aB as ls, aC as hc, aD as pc, aE as mc, aF as yc, aG as gc, aH as vc, aI as bc, aJ as _c, aK as xc, aL as wc, aM as kc, aN as Cc, M as Sc, aO as Tc, aP as Oc, aQ as Ec, aR as Ac } from "./MapButtons-ftbYM-_R.js";
18
18
  var mn = class {
19
19
  constructor() {
20
20
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -419,18 +419,18 @@ var Be = Dc(), Tr, eo, ko = (eo = class {
419
419
  clearGcTimeout() {
420
420
  f(this, Tr) && (clearTimeout(f(this, Tr)), D(this, Tr, void 0));
421
421
  }
422
- }, Tr = new WeakMap(), eo), tn, rn, yt, Er, Qe, jn, Or, xt, qt, to, Fc = (to = class extends ko {
422
+ }, Tr = new WeakMap(), eo), tn, rn, yt, Or, Qe, jn, Er, xt, qt, to, Fc = (to = class extends ko {
423
423
  constructor(e) {
424
424
  super();
425
425
  Y(this, xt);
426
426
  Y(this, tn);
427
427
  Y(this, rn);
428
428
  Y(this, yt);
429
- Y(this, Er);
429
+ Y(this, Or);
430
430
  Y(this, Qe);
431
431
  Y(this, jn);
432
- Y(this, Or);
433
- D(this, Or, !1), D(this, jn, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Er, e.client), D(this, yt, f(this, Er).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, tn, $c(this.options)), this.state = e.state ?? f(this, tn), this.scheduleGc();
432
+ Y(this, Er);
433
+ D(this, Er, !1), D(this, jn, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Or, e.client), D(this, yt, f(this, Or).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, tn, $c(this.options)), this.state = e.state ?? f(this, tn), this.scheduleGc();
434
434
  }
435
435
  get meta() {
436
436
  return this.options.meta;
@@ -498,7 +498,7 @@ var Be = Dc(), Tr, eo, ko = (eo = class {
498
498
  this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), f(this, yt).notify({ type: "observerAdded", query: this, observer: e }));
499
499
  }
500
500
  removeObserver(e) {
501
- this.observers.includes(e) && (this.observers = this.observers.filter((r) => r !== e), this.observers.length || (f(this, Qe) && (f(this, Or) ? f(this, Qe).cancel({ revert: !0 }) : f(this, Qe).cancelRetry()), this.scheduleGc()), f(this, yt).notify({ type: "observerRemoved", query: this, observer: e }));
501
+ this.observers.includes(e) && (this.observers = this.observers.filter((r) => r !== e), this.observers.length || (f(this, Qe) && (f(this, Er) ? f(this, Qe).cancel({ revert: !0 }) : f(this, Qe).cancelRetry()), this.scheduleGc()), f(this, yt).notify({ type: "observerRemoved", query: this, observer: e }));
502
502
  }
503
503
  getObserversCount() {
504
504
  return this.observers.length;
@@ -524,15 +524,15 @@ var Be = Dc(), Tr, eo, ko = (eo = class {
524
524
  const n = new AbortController(), s = (h) => {
525
525
  Object.defineProperty(h, "signal", {
526
526
  enumerable: !0,
527
- get: () => (D(this, Or, !0), n.signal)
527
+ get: () => (D(this, Er, !0), n.signal)
528
528
  });
529
529
  }, a = () => {
530
530
  const h = bo(this.options, r), v = {
531
- client: f(this, Er),
531
+ client: f(this, Or),
532
532
  queryKey: this.queryKey,
533
533
  meta: this.meta
534
534
  };
535
- return s(v), D(this, Or, !1), this.options.persister ? this.options.persister(
535
+ return s(v), D(this, Er, !1), this.options.persister ? this.options.persister(
536
536
  h,
537
537
  v,
538
538
  this
@@ -541,7 +541,7 @@ var Be = Dc(), Tr, eo, ko = (eo = class {
541
541
  fetchOptions: r,
542
542
  options: this.options,
543
543
  queryKey: this.queryKey,
544
- client: f(this, Er),
544
+ client: f(this, Or),
545
545
  state: this.state,
546
546
  fetchFn: a
547
547
  };
@@ -606,7 +606,7 @@ var Be = Dc(), Tr, eo, ko = (eo = class {
606
606
  canRun: () => !0
607
607
  })), f(this, Qe).start();
608
608
  }
609
- }, tn = new WeakMap(), rn = new WeakMap(), yt = new WeakMap(), Er = new WeakMap(), Qe = new WeakMap(), jn = new WeakMap(), Or = new WeakMap(), xt = new WeakSet(), qt = function(e) {
609
+ }, tn = new WeakMap(), rn = new WeakMap(), yt = new WeakMap(), Or = new WeakMap(), Qe = new WeakMap(), jn = new WeakMap(), Er = new WeakMap(), xt = new WeakSet(), qt = function(e) {
610
610
  const r = (n) => {
611
611
  switch (e.type) {
612
612
  case "failed":
@@ -704,11 +704,11 @@ function $c(t) {
704
704
  fetchStatus: "idle"
705
705
  };
706
706
  }
707
- var Ot, ro, So = (ro = class extends mn {
707
+ var Et, ro, So = (ro = class extends mn {
708
708
  constructor(e = {}) {
709
709
  super();
710
- Y(this, Ot);
711
- this.config = e, D(this, Ot, /* @__PURE__ */ new Map());
710
+ Y(this, Et);
711
+ this.config = e, D(this, Et, /* @__PURE__ */ new Map());
712
712
  }
713
713
  build(e, r, n) {
714
714
  const s = r.queryKey, a = r.queryHash ?? Fa(s, r);
@@ -723,14 +723,14 @@ var Ot, ro, So = (ro = class extends mn {
723
723
  }), this.add(i)), i;
724
724
  }
725
725
  add(e) {
726
- f(this, Ot).has(e.queryHash) || (f(this, Ot).set(e.queryHash, e), this.notify({
726
+ f(this, Et).has(e.queryHash) || (f(this, Et).set(e.queryHash, e), this.notify({
727
727
  type: "added",
728
728
  query: e
729
729
  }));
730
730
  }
731
731
  remove(e) {
732
- const r = f(this, Ot).get(e.queryHash);
733
- r && (e.destroy(), r === e && f(this, Ot).delete(e.queryHash), this.notify({ type: "removed", query: e }));
732
+ const r = f(this, Et).get(e.queryHash);
733
+ r && (e.destroy(), r === e && f(this, Et).delete(e.queryHash), this.notify({ type: "removed", query: e }));
734
734
  }
735
735
  clear() {
736
736
  Be.batch(() => {
@@ -740,10 +740,10 @@ var Ot, ro, So = (ro = class extends mn {
740
740
  });
741
741
  }
742
742
  get(e) {
743
- return f(this, Ot).get(e);
743
+ return f(this, Et).get(e);
744
744
  }
745
745
  getAll() {
746
- return [...f(this, Ot).values()];
746
+ return [...f(this, Et).values()];
747
747
  }
748
748
  find(e) {
749
749
  const r = { exact: !0, ...e };
@@ -776,7 +776,7 @@ var Ot, ro, So = (ro = class extends mn {
776
776
  });
777
777
  });
778
778
  }
779
- }, Ot = new WeakMap(), ro), At, Je, Ar, Rt, nr, no, jc = (no = class extends ko {
779
+ }, Et = new WeakMap(), ro), At, Je, Ar, Rt, nr, no, jc = (no = class extends ko {
780
780
  constructor(e) {
781
781
  super();
782
782
  Y(this, Rt);
@@ -1353,7 +1353,7 @@ var Ve, or, lr, nn, sn, cr, an, on, ao, Zc = (ao = class {
1353
1353
  clear() {
1354
1354
  f(this, Ve).clear(), f(this, or).clear();
1355
1355
  }
1356
- }, Ve = new WeakMap(), or = new WeakMap(), lr = new WeakMap(), nn = new WeakMap(), sn = new WeakMap(), cr = new WeakMap(), an = new WeakMap(), on = new WeakMap(), ao), at, he, Un, Xe, Rr, ln, ur, Pt, Zn, cn, un, Pr, Ir, dr, dn, we, _n, ba, _a, xa, wa, ka, Ca, Sa, Eo, io, Bc = (io = class extends mn {
1356
+ }, Ve = new WeakMap(), or = new WeakMap(), lr = new WeakMap(), nn = new WeakMap(), sn = new WeakMap(), cr = new WeakMap(), an = new WeakMap(), on = new WeakMap(), ao), at, he, Un, Xe, Rr, ln, ur, Pt, Zn, cn, un, Pr, Ir, dr, dn, we, _n, ba, _a, xa, wa, ka, Ca, Sa, Oo, io, Bc = (io = class extends mn {
1357
1357
  constructor(e, r) {
1358
1358
  super();
1359
1359
  Y(this, we);
@@ -1573,7 +1573,7 @@ var Ve, or, lr, nn, sn, cr, an, on, ao, Zc = (ao = class {
1573
1573
  return f(this, Xe)[p] !== r[p] && c.has(p);
1574
1574
  });
1575
1575
  };
1576
- (e == null ? void 0 : e.listeners) !== !1 && a() && (s.listeners = !0), le(this, we, Eo).call(this, { ...s, ...e });
1576
+ (e == null ? void 0 : e.listeners) !== !1 && a() && (s.listeners = !0), le(this, we, Oo).call(this, { ...s, ...e });
1577
1577
  }
1578
1578
  onQueryUpdate() {
1579
1579
  this.updateResult(), this.hasListeners() && le(this, we, wa).call(this);
@@ -1615,7 +1615,7 @@ var Ve, or, lr, nn, sn, cr, an, on, ao, Zc = (ao = class {
1615
1615
  return;
1616
1616
  const r = f(this, he);
1617
1617
  D(this, he, e), D(this, Un, e.state), this.hasListeners() && (r == null || r.removeObserver(this), e.addObserver(this));
1618
- }, Eo = function(e) {
1618
+ }, Oo = function(e) {
1619
1619
  Be.batch(() => {
1620
1620
  e.listeners && this.listeners.forEach((r) => {
1621
1621
  r(f(this, Xe));
@@ -1647,7 +1647,7 @@ function ja(t, e) {
1647
1647
  function Wc(t, e) {
1648
1648
  return !vs(t.getCurrentResult(), e);
1649
1649
  }
1650
- var fr, hr, it, Yt, Jt, cs, Ea, oo, Gc = (oo = class extends mn {
1650
+ var fr, hr, it, Yt, Jt, cs, Oa, oo, Gc = (oo = class extends mn {
1651
1651
  constructor(e, r) {
1652
1652
  super();
1653
1653
  Y(this, Jt);
@@ -1674,14 +1674,14 @@ var fr, hr, it, Yt, Jt, cs, Ea, oo, Gc = (oo = class extends mn {
1674
1674
  this.hasListeners() || (e = f(this, it)) == null || e.removeObserver(this);
1675
1675
  }
1676
1676
  onMutationUpdate(e) {
1677
- le(this, Jt, cs).call(this), le(this, Jt, Ea).call(this, e);
1677
+ le(this, Jt, cs).call(this), le(this, Jt, Oa).call(this, e);
1678
1678
  }
1679
1679
  getCurrentResult() {
1680
1680
  return f(this, hr);
1681
1681
  }
1682
1682
  reset() {
1683
1683
  var e;
1684
- (e = f(this, it)) == null || e.removeObserver(this), D(this, it, void 0), le(this, Jt, cs).call(this), le(this, Jt, Ea).call(this);
1684
+ (e = f(this, it)) == null || e.removeObserver(this), D(this, it, void 0), le(this, Jt, cs).call(this), le(this, Jt, Oa).call(this);
1685
1685
  }
1686
1686
  mutate(e, r) {
1687
1687
  var n;
@@ -1699,7 +1699,7 @@ var fr, hr, it, Yt, Jt, cs, Ea, oo, Gc = (oo = class extends mn {
1699
1699
  mutate: this.mutate,
1700
1700
  reset: this.reset
1701
1701
  });
1702
- }, Ea = function(e) {
1702
+ }, Oa = function(e) {
1703
1703
  Be.batch(() => {
1704
1704
  var r, n, s, a, i, o, c, u;
1705
1705
  if (f(this, Yt) && this.hasListeners()) {
@@ -1716,10 +1716,10 @@ var fr, hr, it, Yt, Jt, cs, Ea, oo, Gc = (oo = class extends mn {
1716
1716
  p(f(this, hr));
1717
1717
  });
1718
1718
  });
1719
- }, oo), Oo = G.createContext(
1719
+ }, oo), Eo = G.createContext(
1720
1720
  void 0
1721
1721
  ), Ao = (t) => {
1722
- const e = G.useContext(Oo);
1722
+ const e = G.useContext(Eo);
1723
1723
  if (!e)
1724
1724
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1725
1725
  return e;
@@ -1728,7 +1728,7 @@ var fr, hr, it, Yt, Jt, cs, Ea, oo, Gc = (oo = class extends mn {
1728
1728
  children: e
1729
1729
  }) => (G.useEffect(() => (t.mount(), () => {
1730
1730
  t.unmount();
1731
- }), [t]), /* @__PURE__ */ m(Oo.Provider, { value: t, children: e })), Ro = G.createContext(!1), Qc = () => G.useContext(Ro);
1731
+ }), [t]), /* @__PURE__ */ m(Eo.Provider, { value: t, children: e })), Ro = G.createContext(!1), Qc = () => G.useContext(Ro);
1732
1732
  Ro.Provider;
1733
1733
  function Kc() {
1734
1734
  let t = !1;
@@ -1746,7 +1746,7 @@ var Yc = G.createContext(Kc()), Jc = () => G.useContext(Yc);
1746
1746
  function Po(t, e) {
1747
1747
  return typeof t == "function" ? t(...e) : !!t;
1748
1748
  }
1749
- function Oa() {
1749
+ function Ea() {
1750
1750
  }
1751
1751
  var Xc = (t, e) => {
1752
1752
  (t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
@@ -1786,7 +1786,7 @@ function au(t, e, r) {
1786
1786
  if (G.useSyncExternalStore(
1787
1787
  G.useCallback(
1788
1788
  (x) => {
1789
- const L = p ? c.subscribe(Be.batchCalls(x)) : Oa;
1789
+ const L = p ? c.subscribe(Be.batchCalls(x)) : Ea;
1790
1790
  return c.updateResult(), L;
1791
1791
  },
1792
1792
  [c, p]
@@ -1817,7 +1817,7 @@ function au(t, e, r) {
1817
1817
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1818
1818
  (_ = n.getQueryCache().get(i.queryHash)) == null ? void 0 : _.promise
1819
1819
  );
1820
- x == null || x.catch(Oa).finally(() => {
1820
+ x == null || x.catch(Ea).finally(() => {
1821
1821
  c.updateResult();
1822
1822
  });
1823
1823
  }
@@ -1845,7 +1845,7 @@ function iu(t, e) {
1845
1845
  () => n.getCurrentResult()
1846
1846
  ), a = G.useCallback(
1847
1847
  (i, o) => {
1848
- n.mutate(i, o).catch(Oa);
1848
+ n.mutate(i, o).catch(Ea);
1849
1849
  },
1850
1850
  [n]
1851
1851
  );
@@ -1911,9 +1911,9 @@ function za(t, e) {
1911
1911
  var r = Tu(t, e);
1912
1912
  return Su(r) ? r : void 0;
1913
1913
  }
1914
- function Eu() {
1914
+ function Ou() {
1915
1915
  }
1916
- function Ou(t, e, r, n) {
1916
+ function Eu(t, e, r, n) {
1917
1917
  for (var s = t.length, a = r + -1; ++a < s; )
1918
1918
  if (e(t[a], a, t))
1919
1919
  return a;
@@ -1929,7 +1929,7 @@ function Ru(t, e, r) {
1929
1929
  return -1;
1930
1930
  }
1931
1931
  function Pu(t, e, r) {
1932
- return e === e ? Ru(t, e, r) : Ou(t, Au, r);
1932
+ return e === e ? Ru(t, e, r) : Eu(t, Au, r);
1933
1933
  }
1934
1934
  function Iu(t, e) {
1935
1935
  var r = t == null ? 0 : t.length;
@@ -2149,7 +2149,7 @@ function wd(t) {
2149
2149
  }
2150
2150
  var kd = 1 / 0, Cd = ia && 1 / Mo(new ia([, -0]))[1] == kd ? function(t) {
2151
2151
  return new ia(t);
2152
- } : Eu, Sd = 200;
2152
+ } : Ou, Sd = 200;
2153
2153
  function Td(t, e, r) {
2154
2154
  var n = -1, s = Iu, a = t.length, i = !0, o = [], c = o;
2155
2155
  if (a >= Sd) {
@@ -2171,7 +2171,7 @@ function Td(t, e, r) {
2171
2171
  }
2172
2172
  return o;
2173
2173
  }
2174
- function Ed(t, e) {
2174
+ function Od(t, e) {
2175
2175
  return t && t.length ? Td(t, wd(e)) : [];
2176
2176
  }
2177
2177
  function Vo(t, e) {
@@ -2183,7 +2183,7 @@ function Vo(t, e) {
2183
2183
  (r = t.type.muiName) != null ? r : (n = t.type) == null || (n = n._payload) == null || (n = n.value) == null ? void 0 : n.muiName
2184
2184
  ) !== -1;
2185
2185
  }
2186
- const Od = {
2186
+ const Ed = {
2187
2187
  border: 0,
2188
2188
  clip: "rect(0 0 0 0)",
2189
2189
  height: "1px",
@@ -3023,7 +3023,7 @@ function yf(t) {
3023
3023
  }
3024
3024
  jt("MuiSkeleton", ["root", "text", "rectangular", "rounded", "circular", "pulse", "wave", "withChildren", "fitContent", "heightAuto"]);
3025
3025
  const gf = ["animation", "className", "component", "height", "style", "variant", "width"];
3026
- let ws = (t) => t, Ci, Si, Ti, Ei;
3026
+ let ws = (t) => t, Ci, Si, Ti, Oi;
3027
3027
  const vf = (t) => {
3028
3028
  const {
3029
3029
  classes: e,
@@ -3110,7 +3110,7 @@ const vf = (t) => {
3110
3110
  `), bf), ({
3111
3111
  ownerState: t,
3112
3112
  theme: e
3113
- }) => t.animation === "wave" && hs(Ei || (Ei = ws`
3113
+ }) => t.animation === "wave" && hs(Oi || (Oi = ws`
3114
3114
  position: relative;
3115
3115
  overflow: hidden;
3116
3116
 
@@ -3433,7 +3433,7 @@ const Sf = ["children", "className", "component", "components", "componentsProps
3433
3433
  return Ft({
3434
3434
  root: ["root", r && "invisible"]
3435
3435
  }, Cf, e);
3436
- }, Ef = je("div", {
3436
+ }, Of = je("div", {
3437
3437
  name: "MuiBackdrop",
3438
3438
  slot: "Root",
3439
3439
  overridesResolver: (t, e) => {
@@ -3482,7 +3482,7 @@ const Sf = ["children", "className", "component", "components", "componentsProps
3482
3482
  in: b,
3483
3483
  timeout: L
3484
3484
  }, C, {
3485
- children: /* @__PURE__ */ m(Ef, T({
3485
+ children: /* @__PURE__ */ m(Of, T({
3486
3486
  "aria-hidden": !0
3487
3487
  }, N, {
3488
3488
  as: (s = (a = _.root) != null ? a : p.Root) != null ? s : u,
@@ -3590,13 +3590,13 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
3590
3590
  exit: l.number
3591
3591
  })])
3592
3592
  });
3593
- function Of(t) {
3593
+ function Ef(t) {
3594
3594
  return $t("MuiCircularProgress", t);
3595
3595
  }
3596
3596
  jt("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
3597
3597
  const Af = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
3598
- let Fs = (t) => t, Oi, Ai, Ri, Pi;
3599
- const rr = 44, Rf = qn(Oi || (Oi = Fs`
3598
+ let Fs = (t) => t, Ei, Ai, Ri, Pi;
3599
+ const rr = 44, Rf = qn(Ei || (Ei = Fs`
3600
3600
  0% {
3601
3601
  transform: rotate(0deg);
3602
3602
  }
@@ -3630,7 +3630,7 @@ const rr = 44, Rf = qn(Oi || (Oi = Fs`
3630
3630
  svg: ["svg"],
3631
3631
  circle: ["circle", `circle${tt(r)}`, s && "circleDisableShrink"]
3632
3632
  };
3633
- return Ft(a, Of, e);
3633
+ return Ft(a, Ef, e);
3634
3634
  }, Nf = je("span", {
3635
3635
  name: "MuiCircularProgress",
3636
3636
  slot: "Root",
@@ -3886,8 +3886,8 @@ const Vf = ({
3886
3886
  _e,
3887
3887
  p.current
3888
3888
  );
3889
- R && R.forEach((O) => {
3890
- O.getSource().getFeatureById(_e).getGeometry().setCoordinates(
3889
+ R && R.forEach((E) => {
3890
+ E.getSource().getFeatureById(_e).getGeometry().setCoordinates(
3891
3891
  y.coordinates
3892
3892
  );
3893
3893
  }), h.current = void 0, Jn(u == null ? void 0 : u.current), Te(), u.current.select.getFeatures().clear(), u.current.select.setActive(!0), u.current.hover.setActive(!0), H(!1), Q(!1), A(!1), Ze.layersEventEmitters.emit("onRestartLayers"), ye.mapEventEmitter.emit("reloadFeatures"), Xn("Zmiany zostały zapisane");
@@ -3946,15 +3946,15 @@ const Vf = ({
3946
3946
  p.current
3947
3947
  );
3948
3948
  if (g) {
3949
- const R = g.getSource().getFeatureById(y), O = g.getSource();
3950
- Yl(O, R);
3949
+ const R = g.getSource().getFeatureById(y), E = g.getSource();
3950
+ Yl(E, R);
3951
3951
  }
3952
3952
  Xn("Obiekt został usunięty"), Ze.layersEventEmitters.emit("onRestartLayers"), ye.mapEventEmitter.emit("reloadFeatures");
3953
3953
  } catch {
3954
3954
  Ht("Nie udało się usunąć obiektu");
3955
3955
  }
3956
3956
  }
3957
- }, Oe = {
3957
+ }, Ee = {
3958
3958
  isSelected: C,
3959
3959
  setIsSelected: A,
3960
3960
  allowModify: F,
@@ -4000,7 +4000,7 @@ const Vf = ({
4000
4000
  ), z(!M);
4001
4001
  }
4002
4002
  };
4003
- return /* @__PURE__ */ m(Kl.Provider, { value: Oe, children: t });
4003
+ return /* @__PURE__ */ m(Kl.Provider, { value: Ee, children: t });
4004
4004
  };
4005
4005
  function Df(t) {
4006
4006
  return $t("MuiListItem", t);
@@ -4545,8 +4545,8 @@ function rh(t) {
4545
4545
  controlled: C,
4546
4546
  default: r ?? c,
4547
4547
  name: "Slider"
4548
- }), z = p && ((E, $, B) => {
4549
- const fe = E.nativeEvent || E, me = new fe.constructor(fe.type, fe);
4548
+ }), z = p && ((O, $, B) => {
4549
+ const fe = O.nativeEvent || O, me = new fe.constructor(fe.type, fe);
4550
4550
  Object.defineProperty(me, "target", {
4551
4551
  writable: !0,
4552
4552
  value: {
@@ -4556,23 +4556,23 @@ function rh(t) {
4556
4556
  }), p(me, $, B);
4557
4557
  }), Z = Array.isArray(X);
4558
4558
  let q = Z ? X.slice().sort(Uo) : [X];
4559
- q = q.map((E) => E == null ? c : Br(E, c, o));
4560
- const ge = i === !0 && _ !== null ? [...Array(Math.floor((o - c) / _) + 1)].map((E, $) => ({
4559
+ q = q.map((O) => O == null ? c : Br(O, c, o));
4560
+ const ge = i === !0 && _ !== null ? [...Array(Math.floor((o - c) / _) + 1)].map((O, $) => ({
4561
4561
  value: c + _ * $
4562
- })) : i || [], ue = ge.map((E) => E.value), {
4562
+ })) : i || [], ue = ge.map((O) => O.value), {
4563
4563
  isFocusVisibleRef: Se,
4564
4564
  onBlur: Le,
4565
4565
  onFocus: Ie,
4566
4566
  ref: ze
4567
- } = sc(), [_t, lt] = G.useState(-1), Te = G.useRef(null), P = ps(ze, Te), ee = ps(b, P), ve = (E) => ($) => {
4567
+ } = sc(), [_t, lt] = G.useState(-1), Te = G.useRef(null), P = ps(ze, Te), ee = ps(b, P), ve = (O) => ($) => {
4568
4568
  var B;
4569
4569
  const fe = Number($.currentTarget.getAttribute("data-index"));
4570
- Ie($), Se.current === !0 && lt(fe), H(fe), E == null || (B = E.onFocus) == null || B.call(E, $);
4571
- }, Ye = (E) => ($) => {
4570
+ Ie($), Se.current === !0 && lt(fe), H(fe), O == null || (B = O.onFocus) == null || B.call(O, $);
4571
+ }, Ye = (O) => ($) => {
4572
4572
  var B;
4573
- Le($), Se.current === !1 && lt(-1), H(-1), E == null || (B = E.onBlur) == null || B.call(E, $);
4574
- }, pt = (E, $) => {
4575
- const B = Number(E.currentTarget.getAttribute("data-index")), fe = q[B], me = ue.indexOf(fe);
4573
+ Le($), Se.current === !1 && lt(-1), H(-1), O == null || (B = O.onBlur) == null || B.call(O, $);
4574
+ }, pt = (O, $) => {
4575
+ const B = Number(O.currentTarget.getAttribute("data-index")), fe = q[B], me = ue.indexOf(fe);
4576
4576
  let de = $;
4577
4577
  if (ge && _ == null) {
4578
4578
  const ut = ue[ue.length - 1];
@@ -4592,30 +4592,30 @@ function rh(t) {
4592
4592
  activeIndex: dt
4593
4593
  });
4594
4594
  }
4595
- M(de), lt(B), z && !ss(de, X) && z(E, de, B), h && h(E, de);
4596
- }, br = (E) => ($) => {
4595
+ M(de), lt(B), z && !ss(de, X) && z(O, de, B), h && h(O, de);
4596
+ }, br = (O) => ($) => {
4597
4597
  var B;
4598
4598
  if (_ !== null) {
4599
4599
  const fe = Number($.currentTarget.getAttribute("data-index")), me = q[fe];
4600
4600
  let de = null;
4601
4601
  ($.key === "ArrowLeft" || $.key === "ArrowDown") && $.shiftKey || $.key === "PageDown" ? de = Math.max(me - x, c) : (($.key === "ArrowRight" || $.key === "ArrowUp") && $.shiftKey || $.key === "PageUp") && (de = Math.min(me + x, o)), de !== null && (pt($, de), $.preventDefault());
4602
4602
  }
4603
- E == null || (B = E.onKeyDown) == null || B.call(E, $);
4603
+ O == null || (B = O.onKeyDown) == null || B.call(O, $);
4604
4604
  };
4605
4605
  po(() => {
4606
4606
  if (n && Te.current.contains(document.activeElement)) {
4607
- var E;
4608
- (E = document.activeElement) == null || E.blur();
4607
+ var O;
4608
+ (O = document.activeElement) == null || O.blur();
4609
4609
  }
4610
4610
  }, [n]), n && F !== -1 && N(-1), n && _t !== -1 && lt(-1);
4611
- const Ut = (E) => ($) => {
4611
+ const Ut = (O) => ($) => {
4612
4612
  var B;
4613
- (B = E.onChange) == null || B.call(E, $), pt($, $.target.valueAsNumber);
4613
+ (B = O.onChange) == null || B.call(O, $), pt($, $.target.valueAsNumber);
4614
4614
  }, _r = G.useRef(void 0);
4615
4615
  let ct = v;
4616
4616
  a && v === "horizontal" && (ct += "-reverse");
4617
- const Ee = ({
4618
- finger: E,
4617
+ const Oe = ({
4618
+ finger: O,
4619
4619
  move: $ = !1
4620
4620
  }) => {
4621
4621
  const {
@@ -4627,7 +4627,7 @@ function rh(t) {
4627
4627
  left: ut
4628
4628
  } = B.getBoundingClientRect();
4629
4629
  let dt;
4630
- ct.indexOf("vertical") === 0 ? dt = (de - E.y) / me : dt = (E.x - ut) / fe, ct.indexOf("-reverse") !== -1 && (dt = 1 - dt);
4630
+ ct.indexOf("vertical") === 0 ? dt = (de - O.y) / me : dt = (O.x - ut) / fe, ct.indexOf("-reverse") !== -1 && (dt = 1 - dt);
4631
4631
  let ke;
4632
4632
  if (ke = Yf(dt, c, o), _)
4633
4633
  ke = Xf(ke, _, c);
@@ -4650,18 +4650,18 @@ function rh(t) {
4650
4650
  newValue: ke,
4651
4651
  activeIndex: mt
4652
4652
  };
4653
- }, Oe = ra((E) => {
4654
- const $ = rs(E, A);
4653
+ }, Ee = ra((O) => {
4654
+ const $ = rs(O, A);
4655
4655
  if (!$)
4656
4656
  return;
4657
- if (se.current += 1, E.type === "mousemove" && E.buttons === 0) {
4658
- be(E);
4657
+ if (se.current += 1, O.type === "mousemove" && O.buttons === 0) {
4658
+ be(O);
4659
4659
  return;
4660
4660
  }
4661
4661
  const {
4662
4662
  newValue: B,
4663
4663
  activeIndex: fe
4664
- } = Ee({
4664
+ } = Oe({
4665
4665
  finger: $,
4666
4666
  move: !0
4667
4667
  });
@@ -4669,64 +4669,64 @@ function rh(t) {
4669
4669
  sliderRef: Te,
4670
4670
  activeIndex: fe,
4671
4671
  setActive: N
4672
- }), M(B), !J && se.current > Kf && Q(!0), z && !ss(B, X) && z(E, B, fe);
4673
- }), be = ra((E) => {
4674
- const $ = rs(E, A);
4672
+ }), M(B), !J && se.current > Kf && Q(!0), z && !ss(B, X) && z(O, B, fe);
4673
+ }), be = ra((O) => {
4674
+ const $ = rs(O, A);
4675
4675
  if (Q(!1), !$)
4676
4676
  return;
4677
4677
  const {
4678
4678
  newValue: B
4679
- } = Ee({
4679
+ } = Oe({
4680
4680
  finger: $,
4681
4681
  move: !0
4682
4682
  });
4683
- N(-1), E.type === "touchend" && H(-1), h && h(E, B), A.current = void 0, d();
4684
- }), _e = ra((E) => {
4683
+ N(-1), O.type === "touchend" && H(-1), h && h(O, B), A.current = void 0, d();
4684
+ }), _e = ra((O) => {
4685
4685
  if (n)
4686
4686
  return;
4687
- Li() || E.preventDefault();
4688
- const $ = E.changedTouches[0];
4687
+ Li() || O.preventDefault();
4688
+ const $ = O.changedTouches[0];
4689
4689
  $ != null && (A.current = $.identifier);
4690
- const B = rs(E, A);
4690
+ const B = rs(O, A);
4691
4691
  if (B !== !1) {
4692
4692
  const {
4693
4693
  newValue: me,
4694
4694
  activeIndex: de
4695
- } = Ee({
4695
+ } = Oe({
4696
4696
  finger: B
4697
4697
  });
4698
4698
  ns({
4699
4699
  sliderRef: Te,
4700
4700
  activeIndex: de,
4701
4701
  setActive: N
4702
- }), M(me), z && !ss(me, X) && z(E, me, de);
4702
+ }), M(me), z && !ss(me, X) && z(O, me, de);
4703
4703
  }
4704
4704
  se.current = 0;
4705
4705
  const fe = os(Te.current);
4706
- fe.addEventListener("touchmove", Oe, {
4706
+ fe.addEventListener("touchmove", Ee, {
4707
4707
  passive: !0
4708
4708
  }), fe.addEventListener("touchend", be, {
4709
4709
  passive: !0
4710
4710
  });
4711
4711
  }), d = G.useCallback(() => {
4712
- const E = os(Te.current);
4713
- E.removeEventListener("mousemove", Oe), E.removeEventListener("mouseup", be), E.removeEventListener("touchmove", Oe), E.removeEventListener("touchend", be);
4714
- }, [be, Oe]);
4712
+ const O = os(Te.current);
4713
+ O.removeEventListener("mousemove", Ee), O.removeEventListener("mouseup", be), O.removeEventListener("touchmove", Ee), O.removeEventListener("touchend", be);
4714
+ }, [be, Ee]);
4715
4715
  G.useEffect(() => {
4716
4716
  const {
4717
- current: E
4717
+ current: O
4718
4718
  } = Te;
4719
- return E.addEventListener("touchstart", _e, {
4719
+ return O.addEventListener("touchstart", _e, {
4720
4720
  passive: Li()
4721
4721
  }), () => {
4722
- E.removeEventListener("touchstart", _e), d();
4722
+ O.removeEventListener("touchstart", _e), d();
4723
4723
  };
4724
4724
  }, [d, _e]), G.useEffect(() => {
4725
4725
  n && d();
4726
4726
  }, [n, d]);
4727
- const y = (E) => ($) => {
4727
+ const y = (O) => ($) => {
4728
4728
  var B;
4729
- if ((B = E.onMouseDown) == null || B.call(E, $), n || $.defaultPrevented || $.button !== 0)
4729
+ if ((B = O.onMouseDown) == null || B.call(O, $), n || $.defaultPrevented || $.button !== 0)
4730
4730
  return;
4731
4731
  $.preventDefault();
4732
4732
  const fe = rs($, A);
@@ -4734,7 +4734,7 @@ function rh(t) {
4734
4734
  const {
4735
4735
  newValue: de,
4736
4736
  activeIndex: ut
4737
- } = Ee({
4737
+ } = Oe({
4738
4738
  finger: fe
4739
4739
  });
4740
4740
  ns({
@@ -4745,24 +4745,24 @@ function rh(t) {
4745
4745
  }
4746
4746
  se.current = 0;
4747
4747
  const me = os(Te.current);
4748
- me.addEventListener("mousemove", Oe, {
4748
+ me.addEventListener("mousemove", Ee, {
4749
4749
  passive: !0
4750
4750
  }), me.addEventListener("mouseup", be);
4751
- }, g = ks(Z ? q[0] : c, c, o), R = ks(q[q.length - 1], c, o) - g, O = (E = {}) => {
4752
- const $ = na(E), B = {
4751
+ }, g = ks(Z ? q[0] : c, c, o), R = ks(q[q.length - 1], c, o) - g, E = (O = {}) => {
4752
+ const $ = na(O), B = {
4753
4753
  onMouseDown: y($ || {})
4754
4754
  }, fe = T({}, $, B);
4755
- return T({}, E, {
4755
+ return T({}, O, {
4756
4756
  ref: ee
4757
4757
  }, fe);
4758
- }, S = (E) => ($) => {
4758
+ }, S = (O) => ($) => {
4759
4759
  var B;
4760
- (B = E.onMouseOver) == null || B.call(E, $);
4760
+ (B = O.onMouseOver) == null || B.call(O, $);
4761
4761
  const fe = Number($.currentTarget.getAttribute("data-index"));
4762
4762
  H(fe);
4763
- }, W = (E) => ($) => {
4763
+ }, W = (O) => ($) => {
4764
4764
  var B;
4765
- (B = E.onMouseLeave) == null || B.call(E, $), H(-1);
4765
+ (B = O.onMouseLeave) == null || B.call(O, $), H(-1);
4766
4766
  };
4767
4767
  return {
4768
4768
  active: F,
@@ -4770,9 +4770,9 @@ function rh(t) {
4770
4770
  axisProps: eh,
4771
4771
  dragging: J,
4772
4772
  focusedThumbIndex: _t,
4773
- getHiddenInputProps: (E = {}) => {
4773
+ getHiddenInputProps: (O = {}) => {
4774
4774
  var $;
4775
- const B = na(E), fe = {
4775
+ const B = na(O), fe = {
4776
4776
  onChange: Ut(B || {}),
4777
4777
  onFocus: ve(B || {}),
4778
4778
  onBlur: Ye(B || {}),
@@ -4790,8 +4790,8 @@ function rh(t) {
4790
4790
  max: t.max,
4791
4791
  step: t.step === null && t.marks ? "any" : ($ = t.step) != null ? $ : void 0,
4792
4792
  disabled: n
4793
- }, E, me, {
4794
- style: T({}, Od, {
4793
+ }, O, me, {
4794
+ style: T({}, Ed, {
4795
4795
  direction: a ? "rtl" : "ltr",
4796
4796
  // So that VoiceOver's focus indicator matches the thumb's dimensions
4797
4797
  width: "100%",
@@ -4799,13 +4799,13 @@ function rh(t) {
4799
4799
  })
4800
4800
  });
4801
4801
  },
4802
- getRootProps: O,
4803
- getThumbProps: (E = {}) => {
4804
- const $ = na(E), B = {
4802
+ getRootProps: E,
4803
+ getThumbProps: (O = {}) => {
4804
+ const $ = na(O), B = {
4805
4805
  onMouseOver: S($ || {}),
4806
4806
  onMouseLeave: W($ || {})
4807
4807
  };
4808
- return T({}, E, $, B);
4808
+ return T({}, O, $, B);
4809
4809
  },
4810
4810
  marks: ge,
4811
4811
  open: K,
@@ -4814,9 +4814,9 @@ function rh(t) {
4814
4814
  trackLeap: R,
4815
4815
  trackOffset: g,
4816
4816
  values: q,
4817
- getThumbStyle: (E) => ({
4817
+ getThumbStyle: (O) => ({
4818
4818
  // So the non active thumb doesn't show its label on hover.
4819
- pointerEvents: F !== -1 && F !== E ? "none" : void 0
4819
+ pointerEvents: F !== -1 && F !== O ? "none" : void 0
4820
4820
  })
4821
4821
  };
4822
4822
  }
@@ -5405,8 +5405,8 @@ const oh = je("span", {
5405
5405
  size: Ut = "medium",
5406
5406
  step: _r = 1,
5407
5407
  scale: ct = Mi,
5408
- slotProps: Ee,
5409
- slots: Oe,
5408
+ slotProps: Oe,
5409
+ slots: Ee,
5410
5410
  track: be = "normal",
5411
5411
  valueLabelDisplay: _e = "off",
5412
5412
  valueLabelFormat: d = Mi
@@ -5429,13 +5429,13 @@ const oh = je("span", {
5429
5429
  valueLabelFormat: d
5430
5430
  }), {
5431
5431
  axisProps: R,
5432
- getRootProps: O,
5432
+ getRootProps: E,
5433
5433
  getHiddenInputProps: S,
5434
5434
  getThumbProps: W,
5435
5435
  open: oe,
5436
5436
  active: Me,
5437
5437
  axis: Pe,
5438
- focusedThumbIndex: E,
5438
+ focusedThumbIndex: O,
5439
5439
  range: $,
5440
5440
  dragging: B,
5441
5441
  marks: fe,
@@ -5446,10 +5446,10 @@ const oh = je("span", {
5446
5446
  } = rh(T({}, g, {
5447
5447
  rootRef: r
5448
5448
  }));
5449
- g.marked = fe.length > 0 && fe.some(($e) => $e.label), g.dragging = B, g.focusedThumbIndex = E;
5450
- const ke = ph(g), mt = (n = (s = Oe == null ? void 0 : Oe.root) != null ? s : ue.Root) != null ? n : oh, Ur = (a = (i = Oe == null ? void 0 : Oe.rail) != null ? i : ue.Rail) != null ? a : lh, ti = (o = (c = Oe == null ? void 0 : Oe.track) != null ? c : ue.Track) != null ? o : ch, ri = (u = (p = Oe == null ? void 0 : Oe.thumb) != null ? p : ue.Thumb) != null ? u : uh, ni = (h = (v = Oe == null ? void 0 : Oe.valueLabel) != null ? v : ue.ValueLabel) != null ? h : dh, Bs = (b = (w = Oe == null ? void 0 : Oe.mark) != null ? w : ue.Mark) != null ? b : fh, qs = (_ = (x = Oe == null ? void 0 : Oe.markLabel) != null ? x : ue.MarkLabel) != null ? _ : hh, si = (L = (C = Oe == null ? void 0 : Oe.input) != null ? C : ue.Input) != null ? L : "input", Ws = (A = Ee == null ? void 0 : Ee.root) != null ? A : Se.root, _l = (F = Ee == null ? void 0 : Ee.rail) != null ? F : Se.rail, Gs = (N = Ee == null ? void 0 : Ee.track) != null ? N : Se.track, Hs = (K = Ee == null ? void 0 : Ee.thumb) != null ? K : Se.thumb, Qs = (H = Ee == null ? void 0 : Ee.valueLabel) != null ? H : Se.valueLabel, xl = (J = Ee == null ? void 0 : Ee.mark) != null ? J : Se.mark, wl = (Q = Ee == null ? void 0 : Ee.markLabel) != null ? Q : Se.markLabel, kl = (se = Ee == null ? void 0 : Ee.input) != null ? se : Se.input, Cl = tr({
5449
+ g.marked = fe.length > 0 && fe.some(($e) => $e.label), g.dragging = B, g.focusedThumbIndex = O;
5450
+ const ke = ph(g), mt = (n = (s = Ee == null ? void 0 : Ee.root) != null ? s : ue.Root) != null ? n : oh, Ur = (a = (i = Ee == null ? void 0 : Ee.rail) != null ? i : ue.Rail) != null ? a : lh, ti = (o = (c = Ee == null ? void 0 : Ee.track) != null ? c : ue.Track) != null ? o : ch, ri = (u = (p = Ee == null ? void 0 : Ee.thumb) != null ? p : ue.Thumb) != null ? u : uh, ni = (h = (v = Ee == null ? void 0 : Ee.valueLabel) != null ? v : ue.ValueLabel) != null ? h : dh, Bs = (b = (w = Ee == null ? void 0 : Ee.mark) != null ? w : ue.Mark) != null ? b : fh, qs = (_ = (x = Ee == null ? void 0 : Ee.markLabel) != null ? x : ue.MarkLabel) != null ? _ : hh, si = (L = (C = Ee == null ? void 0 : Ee.input) != null ? C : ue.Input) != null ? L : "input", Ws = (A = Oe == null ? void 0 : Oe.root) != null ? A : Se.root, _l = (F = Oe == null ? void 0 : Oe.rail) != null ? F : Se.rail, Gs = (N = Oe == null ? void 0 : Oe.track) != null ? N : Se.track, Hs = (K = Oe == null ? void 0 : Oe.thumb) != null ? K : Se.thumb, Qs = (H = Oe == null ? void 0 : Oe.valueLabel) != null ? H : Se.valueLabel, xl = (J = Oe == null ? void 0 : Oe.mark) != null ? J : Se.mark, wl = (Q = Oe == null ? void 0 : Oe.markLabel) != null ? Q : Se.markLabel, kl = (se = Oe == null ? void 0 : Oe.input) != null ? se : Se.input, Cl = tr({
5451
5451
  elementType: mt,
5452
- getSlotProps: O,
5452
+ getSlotProps: E,
5453
5453
  externalSlotProps: Ws,
5454
5454
  externalForwardedProps: y,
5455
5455
  additionalProps: T({}, nh(mt) && {
@@ -5476,7 +5476,7 @@ const oh = je("span", {
5476
5476
  externalSlotProps: Hs,
5477
5477
  ownerState: T({}, g, Hs == null ? void 0 : Hs.ownerState),
5478
5478
  className: ke.thumb
5479
- }), El = tr({
5479
+ }), Ol = tr({
5480
5480
  elementType: ni,
5481
5481
  externalSlotProps: Qs,
5482
5482
  ownerState: T({}, g, Qs == null ? void 0 : Qs.ownerState),
@@ -5491,7 +5491,7 @@ const oh = je("span", {
5491
5491
  externalSlotProps: wl,
5492
5492
  ownerState: g,
5493
5493
  className: ke.markLabel
5494
- }), Ol = tr({
5494
+ }), El = tr({
5495
5495
  elementType: si,
5496
5496
  getSlotProps: S,
5497
5497
  externalSlotProps: kl,
@@ -5531,11 +5531,11 @@ const oh = je("span", {
5531
5531
  index: We,
5532
5532
  open: oe === We || Me === We || _e === "on",
5533
5533
  disabled: lt
5534
- }, El, {
5534
+ }, Ol, {
5535
5535
  children: /* @__PURE__ */ m(ri, T({
5536
5536
  "data-index": We
5537
5537
  }, Ks, {
5538
- className: Ge(ke.thumb, Ks.className, Me === We && ke.active, E === We && ke.focusVisible),
5538
+ className: Ge(ke.thumb, Ks.className, Me === We && ke.active, O === We && ke.focusVisible),
5539
5539
  style: T({}, Kn, dt(We), Ks.style),
5540
5540
  children: /* @__PURE__ */ m(si, T({
5541
5541
  "data-index": We,
@@ -5544,7 +5544,7 @@ const oh = je("span", {
5544
5544
  "aria-labelledby": q,
5545
5545
  "aria-valuetext": P ? P(ct($e), We) : Z,
5546
5546
  value: me[We]
5547
- }, Ol))
5547
+ }, El))
5548
5548
  }))
5549
5549
  }), We)
5550
5550
  );
@@ -6061,7 +6061,7 @@ const gh = He(Re)`
6061
6061
  )
6062
6062
  ] })
6063
6063
  ] });
6064
- }, Eh = () => {
6064
+ }, Oh = () => {
6065
6065
  const {
6066
6066
  popupData: { onCollapse: t }
6067
6067
  } = jr();
@@ -6084,7 +6084,7 @@ const gh = He(Re)`
6084
6084
  )
6085
6085
  ] })
6086
6086
  ] });
6087
- }, Oh = () => {
6087
+ }, Eh = () => {
6088
6088
  const { onDrawClicked: t } = Gn(), {
6089
6089
  popupData: { onCollapse: e }
6090
6090
  } = jr();
@@ -6168,8 +6168,8 @@ const gh = He(Re)`
6168
6168
  ] }) });
6169
6169
  }, Di = {
6170
6170
  ChooseLayer: /* @__PURE__ */ m(Sh, {}),
6171
- ConfirmDelete: /* @__PURE__ */ m(Eh, {}),
6172
- ConfirmDrawing: /* @__PURE__ */ m(Oh, {}),
6171
+ ConfirmDelete: /* @__PURE__ */ m(Oh, {}),
6172
+ ConfirmDrawing: /* @__PURE__ */ m(Eh, {}),
6173
6173
  LayersInfo: /* @__PURE__ */ m(Ah, {}),
6174
6174
  ChooseOverlappingGeometry: /* @__PURE__ */ m(Th, {})
6175
6175
  }, Rh = () => {
@@ -6806,21 +6806,21 @@ var al = (t) => t.type === "select-multiple", Hh = (t) => Xa(t) || Hn(t), ca = (
6806
6806
  return !0;
6807
6807
  return !1;
6808
6808
  };
6809
- function Es(t, e = {}) {
6809
+ function Os(t, e = {}) {
6810
6810
  const r = Array.isArray(t);
6811
6811
  if (Fe(t) || r)
6812
6812
  for (const n in t)
6813
- Array.isArray(t[n]) || Fe(t[n]) && !il(t[n]) ? (e[n] = Array.isArray(t[n]) ? [] : {}, Es(t[n], e[n])) : et(t[n]) || (e[n] = !0);
6813
+ Array.isArray(t[n]) || Fe(t[n]) && !il(t[n]) ? (e[n] = Array.isArray(t[n]) ? [] : {}, Os(t[n], e[n])) : et(t[n]) || (e[n] = !0);
6814
6814
  return e;
6815
6815
  }
6816
6816
  function ol(t, e, r) {
6817
6817
  const n = Array.isArray(t);
6818
6818
  if (Fe(t) || n)
6819
6819
  for (const s in t)
6820
- Array.isArray(t[s]) || Fe(t[s]) && !il(t[s]) ? De(e) || Pa(r[s]) ? r[s] = Array.isArray(t[s]) ? Es(t[s], []) : { ...Es(t[s]) } : ol(t[s], et(e) ? {} : e[s], r[s]) : r[s] = !sr(t[s], e[s]);
6820
+ Array.isArray(t[s]) || Fe(t[s]) && !il(t[s]) ? De(e) || Pa(r[s]) ? r[s] = Array.isArray(t[s]) ? Os(t[s], []) : { ...Os(t[s]) } : ol(t[s], et(e) ? {} : e[s], r[s]) : r[s] = !sr(t[s], e[s]);
6821
6821
  return r;
6822
6822
  }
6823
- var gn = (t, e) => ol(t, e, Es(e)), ll = (t, { valueAsNumber: e, valueAsDate: r, setValueAs: n }) => De(t) ? t : e ? t === "" ? NaN : t && +t : r && Nt(t) ? new Date(t) : n ? n(t) : t;
6823
+ var gn = (t, e) => ol(t, e, Os(e)), ll = (t, { valueAsNumber: e, valueAsDate: r, setValueAs: n }) => De(t) ? t : e ? t === "" ? NaN : t && +t : r && Nt(t) ? new Date(t) : n ? n(t) : t;
6824
6824
  function ua(t) {
6825
6825
  const e = t.ref;
6826
6826
  return Ja(e) ? e.files : Xa(e) ? sl(t.refs).value : al(e) ? [...e.selectedOptions].map(({ value: r }) => r) : Hn(e) ? nl(t.refs).value : ll(De(e.value) ? t.ref.value : e.value, t);
@@ -6926,19 +6926,19 @@ function tp(t = {}) {
6926
6926
  validatingFields: r.validatingFields,
6927
6927
  isValidating: !ot(r.validatingFields)
6928
6928
  }));
6929
- }, C = (d, y = [], g, R, O = !0, S = !0) => {
6929
+ }, C = (d, y = [], g, R, E = !0, S = !0) => {
6930
6930
  if (R && g && !e.disabled) {
6931
6931
  if (i.action = !0, S && Array.isArray(I(n, d))) {
6932
6932
  const W = g(I(n, d), R.argA, R.argB);
6933
- O && xe(n, d, W);
6933
+ E && xe(n, d, W);
6934
6934
  }
6935
6935
  if (S && Array.isArray(I(r.errors, d))) {
6936
6936
  const W = g(I(r.errors, d), R.argA, R.argB);
6937
- O && xe(r.errors, d, W), Xh(r.errors, d);
6937
+ E && xe(r.errors, d, W), Xh(r.errors, d);
6938
6938
  }
6939
6939
  if (p.touchedFields && S && Array.isArray(I(r.touchedFields, d))) {
6940
6940
  const W = g(I(r.touchedFields, d), R.argA, R.argB);
6941
- O && xe(r.touchedFields, d, W);
6941
+ E && xe(r.touchedFields, d, W);
6942
6942
  }
6943
6943
  p.dirtyFields && (r.dirtyFields = gn(s, a)), h.state.next({
6944
6944
  name: d,
@@ -6959,12 +6959,12 @@ function tp(t = {}) {
6959
6959
  isValid: !1
6960
6960
  });
6961
6961
  }, N = (d, y, g, R) => {
6962
- const O = I(n, d);
6963
- if (O) {
6962
+ const E = I(n, d);
6963
+ if (E) {
6964
6964
  const S = I(a, d, De(g) ? I(s, d) : g);
6965
- De(S) || R && R.defaultChecked || y ? xe(a, d, y ? S : ua(O._f)) : q(d, S), i.mount && x();
6965
+ De(S) || R && R.defaultChecked || y ? xe(a, d, y ? S : ua(E._f)) : q(d, S), i.mount && x();
6966
6966
  }
6967
- }, K = (d, y, g, R, O) => {
6967
+ }, K = (d, y, g, R, E) => {
6968
6968
  let S = !1, W = !1;
6969
6969
  const oe = {
6970
6970
  name: d
@@ -6980,12 +6980,12 @@ function tp(t = {}) {
6980
6980
  const Pe = I(r.touchedFields, d);
6981
6981
  Pe || (xe(r.touchedFields, d, g), oe.touchedFields = r.touchedFields, S = S || p.touchedFields && Pe !== g);
6982
6982
  }
6983
- S && O && h.state.next(oe);
6983
+ S && E && h.state.next(oe);
6984
6984
  }
6985
6985
  return S ? oe : {};
6986
6986
  }, H = (d, y, g, R) => {
6987
- const O = I(r.errors, d), S = p.isValid && vt(y) && r.isValid !== y;
6988
- if (e.delayError && g ? (c = _(() => A(d, g)), c(e.delayError)) : (clearTimeout(u), c = null, g ? xe(r.errors, d, g) : Ue(r.errors, d)), (g ? !sr(O, g) : O) || !ot(R) || S) {
6987
+ const E = I(r.errors, d), S = p.isValid && vt(y) && r.isValid !== y;
6988
+ if (e.delayError && g ? (c = _(() => A(d, g)), c(e.delayError)) : (clearTimeout(u), c = null, g ? xe(r.errors, d, g) : Ue(r.errors, d)), (g ? !sr(E, g) : E) || !ot(R) || S) {
6989
6989
  const W = {
6990
6990
  ...R,
6991
6991
  ...S && vt(y) ? { isValid: y } : {},
@@ -7015,13 +7015,13 @@ function tp(t = {}) {
7015
7015
  valid: !0
7016
7016
  }) => {
7017
7017
  for (const R in d) {
7018
- const O = d[R];
7019
- if (O) {
7020
- const { _f: S, ...W } = O;
7018
+ const E = d[R];
7019
+ if (E) {
7020
+ const { _f: S, ...W } = E;
7021
7021
  if (S) {
7022
- const oe = o.array.has(S.name), Me = O._f && Kh(O._f);
7022
+ const oe = o.array.has(S.name), Me = E._f && Kh(E._f);
7023
7023
  Me && p.validatingFields && L([R], !0);
7024
- const Pe = await Bi(O, o.disabled, a, w, e.shouldUseNativeValidation && !y, oe);
7024
+ const Pe = await Bi(E, o.disabled, a, w, e.shouldUseNativeValidation && !y, oe);
7025
7025
  if (Me && p.validatingFields && L([R]), Pe[S.name] && (g.valid = !1, y))
7026
7026
  break;
7027
7027
  !y && (I(Pe, S.name) ? oe ? qh(r.errors, Pe, S.name) : xe(r.errors, S.name, Pe[S.name]) : Ue(r.errors, S.name));
@@ -7040,23 +7040,23 @@ function tp(t = {}) {
7040
7040
  ...i.mount ? a : De(y) ? s : Nt(d) ? { [d]: y } : y
7041
7041
  }, g, y), Z = (d) => Us(I(i.mount ? a : s, d, e.shouldUnregister ? I(s, d, []) : [])), q = (d, y, g = {}) => {
7042
7042
  const R = I(n, d);
7043
- let O = y;
7043
+ let E = y;
7044
7044
  if (R) {
7045
7045
  const S = R._f;
7046
- S && (!S.disabled && xe(a, d, ll(y, S)), O = Ss(S.ref) && et(y) ? "" : y, al(S.ref) ? [...S.ref.options].forEach((W) => W.selected = O.includes(W.value)) : S.refs ? Hn(S.ref) ? S.refs.length > 1 ? S.refs.forEach((W) => (!W.defaultChecked || !W.disabled) && (W.checked = Array.isArray(O) ? !!O.find((oe) => oe === W.value) : O === W.value)) : S.refs[0] && (S.refs[0].checked = !!O) : S.refs.forEach((W) => W.checked = W.value === O) : Ja(S.ref) ? S.ref.value = "" : (S.ref.value = O, S.ref.type || h.values.next({
7046
+ S && (!S.disabled && xe(a, d, ll(y, S)), E = Ss(S.ref) && et(y) ? "" : y, al(S.ref) ? [...S.ref.options].forEach((W) => W.selected = E.includes(W.value)) : S.refs ? Hn(S.ref) ? S.refs.length > 1 ? S.refs.forEach((W) => (!W.defaultChecked || !W.disabled) && (W.checked = Array.isArray(E) ? !!E.find((oe) => oe === W.value) : E === W.value)) : S.refs[0] && (S.refs[0].checked = !!E) : S.refs.forEach((W) => W.checked = W.value === E) : Ja(S.ref) ? S.ref.value = "" : (S.ref.value = E, S.ref.type || h.values.next({
7047
7047
  name: d,
7048
7048
  values: { ...a }
7049
7049
  })));
7050
7050
  }
7051
- (g.shouldDirty || g.shouldTouch) && K(d, O, g.shouldTouch, g.shouldDirty, !0), g.shouldValidate && Ie(d);
7051
+ (g.shouldDirty || g.shouldTouch) && K(d, E, g.shouldTouch, g.shouldDirty, !0), g.shouldValidate && Ie(d);
7052
7052
  }, ge = (d, y, g) => {
7053
7053
  for (const R in y) {
7054
- const O = y[R], S = `${d}.${R}`, W = I(n, S);
7055
- (o.array.has(d) || Fe(O) || W && !W._f) && !Cr(O) ? ge(S, O, g) : q(S, O, g);
7054
+ const E = y[R], S = `${d}.${R}`, W = I(n, S);
7055
+ (o.array.has(d) || Fe(E) || W && !W._f) && !Cr(E) ? ge(S, E, g) : q(S, E, g);
7056
7056
  }
7057
7057
  }, ue = (d, y, g = {}) => {
7058
- const R = I(n, d), O = o.array.has(d), S = st(y);
7059
- xe(a, d, S), O ? (h.array.next({
7058
+ const R = I(n, d), E = o.array.has(d), S = st(y);
7059
+ xe(a, d, S), E ? (h.array.next({
7060
7060
  name: d,
7061
7061
  values: { ...a }
7062
7062
  }), (p.isDirty || p.dirtyFields) && g.shouldDirty && h.state.next({
@@ -7071,40 +7071,40 @@ function tp(t = {}) {
7071
7071
  i.mount = !0;
7072
7072
  const y = d.target;
7073
7073
  let g = y.name, R = !0;
7074
- const O = I(n, g), S = () => y.type ? ua(O._f) : Ho(d), W = (oe) => {
7074
+ const E = I(n, g), S = () => y.type ? ua(E._f) : Ho(d), W = (oe) => {
7075
7075
  R = Number.isNaN(oe) || Cr(oe) && isNaN(oe.getTime()) || sr(oe, I(a, g, oe));
7076
7076
  };
7077
- if (O) {
7077
+ if (E) {
7078
7078
  let oe, Me;
7079
- const Pe = S(), E = d.type === Cs.BLUR || d.type === Cs.FOCUS_OUT, $ = !Yh(O._f) && !e.resolver && !I(r.errors, g) && !O._f.deps || Jh(E, I(r.touchedFields, g), r.isSubmitted, b, v), B = $i(g, o, E);
7080
- xe(a, g, Pe), E ? (O._f.onBlur && O._f.onBlur(d), c && c(0)) : O._f.onChange && O._f.onChange(d);
7081
- const fe = K(g, Pe, E, !1), me = !ot(fe) || B;
7082
- if (!E && h.values.next({
7079
+ const Pe = S(), O = d.type === Cs.BLUR || d.type === Cs.FOCUS_OUT, $ = !Yh(E._f) && !e.resolver && !I(r.errors, g) && !E._f.deps || Jh(O, I(r.touchedFields, g), r.isSubmitted, b, v), B = $i(g, o, O);
7080
+ xe(a, g, Pe), O ? (E._f.onBlur && E._f.onBlur(d), c && c(0)) : E._f.onChange && E._f.onChange(d);
7081
+ const fe = K(g, Pe, O, !1), me = !ot(fe) || B;
7082
+ if (!O && h.values.next({
7083
7083
  name: g,
7084
7084
  type: d.type,
7085
7085
  values: { ...a }
7086
7086
  }), $)
7087
- return p.isValid && (e.mode === "onBlur" && E ? x() : E || x()), me && h.state.next({ name: g, ...B ? {} : fe });
7088
- if (!E && B && h.state.next({ ...r }), e.resolver) {
7087
+ return p.isValid && (e.mode === "onBlur" && O ? x() : O || x()), me && h.state.next({ name: g, ...B ? {} : fe });
7088
+ if (!O && B && h.state.next({ ...r }), e.resolver) {
7089
7089
  const { errors: de } = await J([g]);
7090
7090
  if (W(Pe), R) {
7091
7091
  const ut = Wi(r.errors, n, g), dt = Wi(de, n, ut.name || g);
7092
7092
  oe = dt.error, g = dt.name, Me = ot(de);
7093
7093
  }
7094
7094
  } else
7095
- L([g], !0), oe = (await Bi(O, o.disabled, a, w, e.shouldUseNativeValidation))[g], L([g]), W(Pe), R && (oe ? Me = !1 : p.isValid && (Me = await se(n, !0)));
7096
- R && (O._f.deps && Ie(O._f.deps), H(g, Me, oe, fe));
7095
+ L([g], !0), oe = (await Bi(E, o.disabled, a, w, e.shouldUseNativeValidation))[g], L([g]), W(Pe), R && (oe ? Me = !1 : p.isValid && (Me = await se(n, !0)));
7096
+ R && (E._f.deps && Ie(E._f.deps), H(g, Me, oe, fe));
7097
7097
  }
7098
7098
  }, Le = (d, y) => {
7099
7099
  if (I(r.errors, y) && d.focus)
7100
7100
  return d.focus(), 1;
7101
7101
  }, Ie = async (d, y = {}) => {
7102
7102
  let g, R;
7103
- const O = kn(d);
7103
+ const E = kn(d);
7104
7104
  if (e.resolver) {
7105
- const S = await Q(De(d) ? d : O);
7106
- g = ot(S), R = d ? !O.some((W) => I(S, W)) : g;
7107
- } else d ? (R = (await Promise.all(O.map(async (S) => {
7105
+ const S = await Q(De(d) ? d : E);
7106
+ g = ot(S), R = d ? !E.some((W) => I(S, W)) : g;
7107
+ } else d ? (R = (await Promise.all(E.map(async (S) => {
7108
7108
  const W = I(n, S);
7109
7109
  return await se(W && W._f ? { [S]: W } : W);
7110
7110
  }))).every(Boolean), !(!R && !r.isValid) && x()) : R = g = await se(n);
@@ -7112,7 +7112,7 @@ function tp(t = {}) {
7112
7112
  ...!Nt(d) || p.isValid && g !== r.isValid ? {} : { name: d },
7113
7113
  ...e.resolver || !d ? { isValid: g } : {},
7114
7114
  errors: r.errors
7115
- }), y.shouldFocus && !R && Cn(n, Le, d ? O : o.mount), R;
7115
+ }), y.shouldFocus && !R && Cn(n, Le, d ? E : o.mount), R;
7116
7116
  }, ze = (d) => {
7117
7117
  const y = {
7118
7118
  ...i.mount ? a : s
@@ -7129,7 +7129,7 @@ function tp(t = {}) {
7129
7129
  errors: d ? r.errors : {}
7130
7130
  });
7131
7131
  }, Te = (d, y, g) => {
7132
- const R = (I(n, d, { _f: {} })._f || {}).ref, O = I(r.errors, d) || {}, { ref: S, message: W, type: oe, ...Me } = O;
7132
+ const R = (I(n, d, { _f: {} })._f || {}).ref, E = I(r.errors, d) || {}, { ref: S, message: W, type: oe, ...Me } = E;
7133
7133
  xe(r.errors, d, {
7134
7134
  ...Me,
7135
7135
  ...y,
@@ -7180,10 +7180,10 @@ function tp(t = {}) {
7180
7180
  name: d,
7181
7181
  onChange: Se,
7182
7182
  onBlur: Se,
7183
- ref: (O) => {
7184
- if (O) {
7183
+ ref: (E) => {
7184
+ if (E) {
7185
7185
  Ye(d, y), g = I(n, d);
7186
- const S = De(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, W = Hh(S), oe = g._f.refs || [];
7186
+ const S = De(E.value) && E.querySelectorAll && E.querySelectorAll("input,select,textarea")[0] || E, W = Hh(S), oe = g._f.refs || [];
7187
7187
  if (W ? oe.find((Me) => Me === S) : S === g._f.ref)
7188
7188
  return;
7189
7189
  xe(n, d, {
@@ -7206,22 +7206,22 @@ function tp(t = {}) {
7206
7206
  }, pt = () => e.shouldFocusError && Cn(n, Le, o.mount), br = (d) => {
7207
7207
  vt(d) && (h.state.next({ disabled: d }), Cn(n, (y, g) => {
7208
7208
  const R = I(n, g);
7209
- R && (y.disabled = R._f.disabled || d, Array.isArray(R._f.refs) && R._f.refs.forEach((O) => {
7210
- O.disabled = R._f.disabled || d;
7209
+ R && (y.disabled = R._f.disabled || d, Array.isArray(R._f.refs) && R._f.refs.forEach((E) => {
7210
+ E.disabled = R._f.disabled || d;
7211
7211
  }));
7212
7212
  }, 0, !1));
7213
7213
  }, Ut = (d, y) => async (g) => {
7214
7214
  let R;
7215
7215
  g && (g.preventDefault && g.preventDefault(), g.persist && g.persist());
7216
- let O = st(a);
7216
+ let E = st(a);
7217
7217
  if (o.disabled.size)
7218
7218
  for (const S of o.disabled)
7219
- xe(O, S, void 0);
7219
+ xe(E, S, void 0);
7220
7220
  if (h.state.next({
7221
7221
  isSubmitting: !0
7222
7222
  }), e.resolver) {
7223
7223
  const { errors: S, values: W } = await J();
7224
- r.errors = S, O = W;
7224
+ r.errors = S, E = W;
7225
7225
  } else
7226
7226
  await se(n);
7227
7227
  if (Ue(r.errors, "root"), ot(r.errors)) {
@@ -7229,7 +7229,7 @@ function tp(t = {}) {
7229
7229
  errors: {}
7230
7230
  });
7231
7231
  try {
7232
- await d(O, g);
7232
+ await d(E, g);
7233
7233
  } catch (S) {
7234
7234
  R = S;
7235
7235
  }
@@ -7246,7 +7246,7 @@ function tp(t = {}) {
7246
7246
  }, _r = (d, y = {}) => {
7247
7247
  I(n, d) && (De(y.defaultValue) ? ue(d, st(I(s, d))) : (ue(d, y.defaultValue), xe(s, d, st(y.defaultValue))), y.keepTouched || Ue(r.touchedFields, d), y.keepDirty || (Ue(r.dirtyFields, d), r.isDirty = y.defaultValue ? M(d, st(I(s, d))) : M()), y.keepError || (Ue(r.errors, d), p.isValid && x()), h.state.next({ ...r }));
7248
7248
  }, ct = (d, y = {}) => {
7249
- const g = d ? st(d) : s, R = st(g), O = ot(d), S = O ? s : R;
7249
+ const g = d ? st(d) : s, R = st(g), E = ot(d), S = E ? s : R;
7250
7250
  if (y.keepDefaultValues || (s = g), !y.keepValues) {
7251
7251
  if (y.keepDirtyValues) {
7252
7252
  const W = /* @__PURE__ */ new Set([
@@ -7288,15 +7288,15 @@ function tp(t = {}) {
7288
7288
  focus: ""
7289
7289
  }, i.mount = !p.isValid || !!y.keepIsValid || !!y.keepDirtyValues, i.watch = !!e.shouldUnregister, h.state.next({
7290
7290
  submitCount: y.keepSubmitCount ? r.submitCount : 0,
7291
- isDirty: O ? !1 : y.keepDirty ? r.isDirty : !!(y.keepDefaultValues && !sr(d, s)),
7291
+ isDirty: E ? !1 : y.keepDirty ? r.isDirty : !!(y.keepDefaultValues && !sr(d, s)),
7292
7292
  isSubmitted: y.keepIsSubmitted ? r.isSubmitted : !1,
7293
- dirtyFields: O ? {} : y.keepDirtyValues ? y.keepDefaultValues && a ? gn(s, a) : r.dirtyFields : y.keepDefaultValues && d ? gn(s, d) : y.keepDirty ? r.dirtyFields : {},
7293
+ dirtyFields: E ? {} : y.keepDirtyValues ? y.keepDefaultValues && a ? gn(s, a) : r.dirtyFields : y.keepDefaultValues && d ? gn(s, d) : y.keepDirty ? r.dirtyFields : {},
7294
7294
  touchedFields: y.keepTouched ? r.touchedFields : {},
7295
7295
  errors: y.keepErrors ? r.errors : {},
7296
7296
  isSubmitSuccessful: y.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
7297
7297
  isSubmitting: !1
7298
7298
  });
7299
- }, Ee = (d, y) => ct(It(d) ? d(a) : d, y);
7299
+ }, Oe = (d, y) => ct(It(d) ? d(a) : d, y);
7300
7300
  return {
7301
7301
  control: {
7302
7302
  register: Ye,
@@ -7314,7 +7314,7 @@ function tp(t = {}) {
7314
7314
  _getFieldArray: Z,
7315
7315
  _reset: ct,
7316
7316
  _resetDefaultValues: () => It(e.defaultValues) && e.defaultValues().then((d) => {
7317
- Ee(d, e.resetOptions), h.state.next({
7317
+ Oe(d, e.resetOptions), h.state.next({
7318
7318
  isLoading: !1
7319
7319
  });
7320
7320
  }),
@@ -7371,7 +7371,7 @@ function tp(t = {}) {
7371
7371
  watch: P,
7372
7372
  setValue: ue,
7373
7373
  getValues: ze,
7374
- reset: Ee,
7374
+ reset: Oe,
7375
7375
  resetField: _r,
7376
7376
  clearErrors: lt,
7377
7377
  unregister: ee,
@@ -7379,8 +7379,8 @@ function tp(t = {}) {
7379
7379
  setFocus: (d, y = {}) => {
7380
7380
  const g = I(n, d), R = g && g._f;
7381
7381
  if (R) {
7382
- const O = R.refs ? R.refs[0] : R.ref;
7383
- O.focus && (O.focus(), y.shouldSelect && It(O.select) && O.select());
7382
+ const E = R.refs ? R.refs[0] : R.ref;
7383
+ E.focus && (E.focus(), y.shouldSelect && It(E.select) && E.select());
7384
7384
  }
7385
7385
  },
7386
7386
  getFieldState: _t
@@ -7656,7 +7656,7 @@ let cl = fn;
7656
7656
  function sp(t) {
7657
7657
  cl = t;
7658
7658
  }
7659
- function Os() {
7659
+ function Es() {
7660
7660
  return cl;
7661
7661
  }
7662
7662
  const As = (t) => {
@@ -7681,7 +7681,7 @@ const As = (t) => {
7681
7681
  };
7682
7682
  }, ap = [];
7683
7683
  function V(t, e) {
7684
- const r = Os(), n = As({
7684
+ const r = Es(), n = As({
7685
7685
  issueData: e,
7686
7686
  data: t.data,
7687
7687
  path: t.path,
@@ -7741,7 +7741,7 @@ class Ke {
7741
7741
  }
7742
7742
  const ne = Object.freeze({
7743
7743
  status: "aborted"
7744
- }), Gr = (t) => ({ status: "dirty", value: t }), nt = (t) => ({ status: "valid", value: t }), Na = (t) => t.status === "aborted", La = (t) => t.status === "dirty", Dr = (t) => t.status === "valid", En = (t) => typeof Promise < "u" && t instanceof Promise;
7744
+ }), Gr = (t) => ({ status: "dirty", value: t }), nt = (t) => ({ status: "valid", value: t }), Na = (t) => t.status === "aborted", La = (t) => t.status === "dirty", Dr = (t) => t.status === "valid", On = (t) => typeof Promise < "u" && t instanceof Promise;
7745
7745
  function Rs(t, e, r, n) {
7746
7746
  if (typeof e == "function" ? t !== e || !0 : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7747
7747
  return e.get(t);
@@ -7822,7 +7822,7 @@ class ce {
7822
7822
  }
7823
7823
  _parseSync(e) {
7824
7824
  const r = this._parse(e);
7825
- if (En(r))
7825
+ if (On(r))
7826
7826
  throw new Error("Synchronous parse encountered promise.");
7827
7827
  return r;
7828
7828
  }
@@ -7903,7 +7903,7 @@ class ce {
7903
7903
  parent: null,
7904
7904
  data: e,
7905
7905
  parsedType: Qt(e)
7906
- }, s = this._parse({ data: e, path: n.path, parent: n }), a = await (En(s) ? s : Promise.resolve(s));
7906
+ }, s = this._parse({ data: e, path: n.path, parent: n }), a = await (On(s) ? s : Promise.resolve(s));
7907
7907
  return Gi(n, a);
7908
7908
  }
7909
7909
  refine(e, r) {
@@ -7920,7 +7920,7 @@ class ce {
7920
7920
  return this._refinement((n, s) => e(n) ? !0 : (s.addIssue(typeof r == "function" ? r(n, s) : r), !1));
7921
7921
  }
7922
7922
  _refinement(e) {
7923
- return new Et({
7923
+ return new Ot({
7924
7924
  schema: this,
7925
7925
  typeName: te.ZodEffects,
7926
7926
  effect: { type: "refinement", refinement: e }
@@ -7958,7 +7958,7 @@ class ce {
7958
7958
  return In.create(this, e, this._def);
7959
7959
  }
7960
7960
  transform(e) {
7961
- return new Et({
7961
+ return new Ot({
7962
7962
  ...ie(this._def),
7963
7963
  schema: this,
7964
7964
  typeName: te.ZodEffects,
@@ -8740,7 +8740,7 @@ mr.create = (t) => {
8740
8740
  ...ie(t)
8741
8741
  });
8742
8742
  };
8743
- class On extends ce {
8743
+ class En extends ce {
8744
8744
  _parse(e) {
8745
8745
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== j.boolean) {
8746
8746
  const n = this._getOrReturnCtx(e);
@@ -8753,7 +8753,7 @@ class On extends ce {
8753
8753
  return nt(e.data);
8754
8754
  }
8755
8755
  }
8756
- On.create = (t) => new On({
8756
+ En.create = (t) => new En({
8757
8757
  typeName: te.ZodBoolean,
8758
8758
  coerce: (t == null ? void 0 : t.coerce) || !1,
8759
8759
  ...ie(t)
@@ -9391,7 +9391,7 @@ Pn.create = (t, e) => new Pn({
9391
9391
  typeName: te.ZodUnion,
9392
9392
  ...ie(e)
9393
9393
  });
9394
- const Wt = (t) => t instanceof Ln ? Wt(t.schema) : t instanceof Et ? Wt(t.innerType()) : t instanceof Mn ? [t.value] : t instanceof yr ? t.options : t instanceof Vn ? pe.objectValues(t.enum) : t instanceof Dn ? Wt(t._def.innerType) : t instanceof An ? [void 0] : t instanceof Rn ? [null] : t instanceof Lt ? [void 0, ...Wt(t.unwrap())] : t instanceof gr ? [null, ...Wt(t.unwrap())] : t instanceof ei || t instanceof $n ? Wt(t.unwrap()) : t instanceof Fn ? Wt(t._def.innerType) : [];
9394
+ const Wt = (t) => t instanceof Ln ? Wt(t.schema) : t instanceof Ot ? Wt(t.innerType()) : t instanceof Mn ? [t.value] : t instanceof yr ? t.options : t instanceof Vn ? pe.objectValues(t.enum) : t instanceof Dn ? Wt(t._def.innerType) : t instanceof An ? [void 0] : t instanceof Rn ? [null] : t instanceof Lt ? [void 0, ...Wt(t.unwrap())] : t instanceof gr ? [null, ...Wt(t.unwrap())] : t instanceof ei || t instanceof $n ? Wt(t.unwrap()) : t instanceof Fn ? Wt(t._def.innerType) : [];
9395
9395
  class Zs extends ce {
9396
9396
  _parse(e) {
9397
9397
  const { ctx: r } = this._processInputParams(e);
@@ -9740,7 +9740,7 @@ class Yr extends ce {
9740
9740
  errorMaps: [
9741
9741
  r.common.contextualErrorMap,
9742
9742
  r.schemaErrorMap,
9743
- Os(),
9743
+ Es(),
9744
9744
  fn
9745
9745
  ].filter((u) => !!u),
9746
9746
  issueData: {
@@ -9756,7 +9756,7 @@ class Yr extends ce {
9756
9756
  errorMaps: [
9757
9757
  r.common.contextualErrorMap,
9758
9758
  r.schemaErrorMap,
9759
- Os(),
9759
+ Es(),
9760
9760
  fn
9761
9761
  ].filter((u) => !!u),
9762
9762
  issueData: {
@@ -9981,7 +9981,7 @@ pn.create = (t, e) => new pn({
9981
9981
  typeName: te.ZodPromise,
9982
9982
  ...ie(e)
9983
9983
  });
9984
- class Et extends ce {
9984
+ class Ot extends ce {
9985
9985
  innerType() {
9986
9986
  return this._def.schema;
9987
9987
  }
@@ -10058,13 +10058,13 @@ class Et extends ce {
10058
10058
  pe.assertNever(s);
10059
10059
  }
10060
10060
  }
10061
- Et.create = (t, e, r) => new Et({
10061
+ Ot.create = (t, e, r) => new Ot({
10062
10062
  schema: t,
10063
10063
  typeName: te.ZodEffects,
10064
10064
  effect: e,
10065
10065
  ...ie(r)
10066
10066
  });
10067
- Et.createWithPreprocess = (t, e, r) => new Et({
10067
+ Ot.createWithPreprocess = (t, e, r) => new Ot({
10068
10068
  schema: e,
10069
10069
  effect: { type: "preprocess", transform: t },
10070
10070
  typeName: te.ZodEffects,
@@ -10131,7 +10131,7 @@ class Fn extends ce {
10131
10131
  ...n
10132
10132
  }
10133
10133
  });
10134
- return En(s) ? s.then((a) => ({
10134
+ return On(s) ? s.then((a) => ({
10135
10135
  status: "valid",
10136
10136
  value: a.status === "valid" ? a.value : this._def.catchValue({
10137
10137
  get error() {
@@ -10176,7 +10176,7 @@ Ls.create = (t) => new Ls({
10176
10176
  typeName: te.ZodNaN,
10177
10177
  ...ie(t)
10178
10178
  });
10179
- const Ep = Symbol("zod_brand");
10179
+ const Op = Symbol("zod_brand");
10180
10180
  class ei extends ce {
10181
10181
  _parse(e) {
10182
10182
  const { ctx: r } = this._processInputParams(e), n = r.data;
@@ -10233,7 +10233,7 @@ class Qn extends ce {
10233
10233
  class $n extends ce {
10234
10234
  _parse(e) {
10235
10235
  const r = this._def.innerType._parse(e), n = (s) => (Dr(s) && (s.value = Object.freeze(s.value)), s);
10236
- return En(r) ? r.then((s) => n(s)) : n(r);
10236
+ return On(r) ? r.then((s) => n(s)) : n(r);
10237
10237
  }
10238
10238
  unwrap() {
10239
10239
  return this._def.innerType;
@@ -10253,7 +10253,7 @@ function ml(t, e = {}, r) {
10253
10253
  }
10254
10254
  }) : hn.create();
10255
10255
  }
10256
- const Op = {
10256
+ const Ep = {
10257
10257
  object: Ne.lazycreate
10258
10258
  };
10259
10259
  var te;
@@ -10262,10 +10262,10 @@ var te;
10262
10262
  })(te || (te = {}));
10263
10263
  const Ap = (t, e = {
10264
10264
  message: `Input not instance of ${t.name}`
10265
- }) => ml((r) => r instanceof t, e), yl = St.create, gl = pr.create, Rp = Ls.create, Pp = mr.create, vl = On.create, Ip = Fr.create, Np = Ps.create, Lp = An.create, Mp = Rn.create, Vp = hn.create, Dp = Nr.create, Fp = er.create, $p = Is.create, jp = Tt.create, zp = Ne.create, Up = Ne.strictCreate, Zp = Pn.create, Bp = Zs.create, qp = In.create, Wp = Dt.create, Gp = Nn.create, Hp = Ns.create, Qp = $r.create, Kp = Yr.create, Yp = Ln.create, Jp = Mn.create, Xp = yr.create, em = Vn.create, tm = pn.create, Hi = Et.create, rm = Lt.create, nm = gr.create, sm = Et.createWithPreprocess, am = Qn.create, im = () => yl().optional(), om = () => gl().optional(), lm = () => vl().optional(), cm = {
10265
+ }) => ml((r) => r instanceof t, e), yl = St.create, gl = pr.create, Rp = Ls.create, Pp = mr.create, vl = En.create, Ip = Fr.create, Np = Ps.create, Lp = An.create, Mp = Rn.create, Vp = hn.create, Dp = Nr.create, Fp = er.create, $p = Is.create, jp = Tt.create, zp = Ne.create, Up = Ne.strictCreate, Zp = Pn.create, Bp = Zs.create, qp = In.create, Wp = Dt.create, Gp = Nn.create, Hp = Ns.create, Qp = $r.create, Kp = Yr.create, Yp = Ln.create, Jp = Mn.create, Xp = yr.create, em = Vn.create, tm = pn.create, Hi = Ot.create, rm = Lt.create, nm = gr.create, sm = Ot.createWithPreprocess, am = Qn.create, im = () => yl().optional(), om = () => gl().optional(), lm = () => vl().optional(), cm = {
10266
10266
  string: (t) => St.create({ ...t, coerce: !0 }),
10267
10267
  number: (t) => pr.create({ ...t, coerce: !0 }),
10268
- boolean: (t) => On.create({
10268
+ boolean: (t) => En.create({
10269
10269
  ...t,
10270
10270
  coerce: !0
10271
10271
  }),
@@ -10276,7 +10276,7 @@ var is = /* @__PURE__ */ Object.freeze({
10276
10276
  __proto__: null,
10277
10277
  defaultErrorMap: fn,
10278
10278
  setErrorMap: sp,
10279
- getErrorMap: Os,
10279
+ getErrorMap: Es,
10280
10280
  makeIssue: As,
10281
10281
  EMPTY_PATH: ap,
10282
10282
  addIssueToContext: V,
@@ -10287,7 +10287,7 @@ var is = /* @__PURE__ */ Object.freeze({
10287
10287
  isAborted: Na,
10288
10288
  isDirty: La,
10289
10289
  isValid: Dr,
10290
- isAsync: En,
10290
+ isAsync: On,
10291
10291
  get util() {
10292
10292
  return pe;
10293
10293
  },
@@ -10301,7 +10301,7 @@ var is = /* @__PURE__ */ Object.freeze({
10301
10301
  ZodString: St,
10302
10302
  ZodNumber: pr,
10303
10303
  ZodBigInt: mr,
10304
- ZodBoolean: On,
10304
+ ZodBoolean: En,
10305
10305
  ZodDate: Fr,
10306
10306
  ZodSymbol: Ps,
10307
10307
  ZodUndefined: An,
@@ -10325,21 +10325,21 @@ var is = /* @__PURE__ */ Object.freeze({
10325
10325
  ZodEnum: yr,
10326
10326
  ZodNativeEnum: Vn,
10327
10327
  ZodPromise: pn,
10328
- ZodEffects: Et,
10329
- ZodTransformer: Et,
10328
+ ZodEffects: Ot,
10329
+ ZodTransformer: Ot,
10330
10330
  ZodOptional: Lt,
10331
10331
  ZodNullable: gr,
10332
10332
  ZodDefault: Dn,
10333
10333
  ZodCatch: Fn,
10334
10334
  ZodNaN: Ls,
10335
- BRAND: Ep,
10335
+ BRAND: Op,
10336
10336
  ZodBranded: ei,
10337
10337
  ZodPipeline: Qn,
10338
10338
  ZodReadonly: $n,
10339
10339
  custom: ml,
10340
10340
  Schema: ce,
10341
10341
  ZodSchema: ce,
10342
- late: Op,
10342
+ late: Ep,
10343
10343
  get ZodFirstPartyTypeKind() {
10344
10344
  return te;
10345
10345
  },
@@ -10505,7 +10505,7 @@ function _m(t, e) {
10505
10505
  const [r, n] = re([]);
10506
10506
  return qe(() => {
10507
10507
  n(
10508
- (a) => Ed([...a, ...t || []], "id")
10508
+ (a) => Od([...a, ...t || []], "id")
10509
10509
  );
10510
10510
  }, [t]), ha(
10511
10511
  () => r.filter(
@@ -10785,7 +10785,7 @@ const Cm = He(Re)`
10785
10785
  ] });
10786
10786
  }, Tm = {
10787
10787
  PUBLIC_SYMBOLS: ["K", "W", "P", "G"]
10788
- }, Em = () => {
10788
+ }, Om = () => {
10789
10789
  const t = fa([]), {
10790
10790
  setMileageStart: e,
10791
10791
  setMileageEnd: r,
@@ -10874,10 +10874,10 @@ const Cm = He(Re)`
10874
10874
  o,
10875
10875
  p
10876
10876
  ]), /* @__PURE__ */ m(Cm, { gap: "15px", children: /* @__PURE__ */ m(Sm, {}) });
10877
- }, Om = async (t, e) => Bn.instance.get(`/gugik/geometry?parcelNumber=${t}`, e), Am = (t, e, r) => Ms({
10877
+ }, Em = async (t, e) => Bn.instance.get(`/gugik/geometry?parcelNumber=${t}`, e), Am = (t, e, r) => Ms({
10878
10878
  ...e,
10879
10879
  queryKey: [zs.plots, t],
10880
- queryFn: () => Om(t, r)
10880
+ queryFn: () => Em(t, r)
10881
10881
  });
10882
10882
  function Rm() {
10883
10883
  const [t, e] = re(""), r = Wa(t || "", 300), [n, s] = re(""), { refetch: a } = Am(
@@ -10998,7 +10998,7 @@ const Pm = qn`
10998
10998
  ] })
10999
10999
  ] }),
11000
11000
  t.items.roadNavigation && /* @__PURE__ */ ae(ft, { children: [
11001
- /* @__PURE__ */ m(Em, {}),
11001
+ /* @__PURE__ */ m(Om, {}),
11002
11002
  /* @__PURE__ */ m(Ki, {})
11003
11003
  ] }),
11004
11004
  t.items.mapObjectSearch && /* @__PURE__ */ ae(ft, { children: [
@@ -11031,7 +11031,7 @@ const Pm = qn`
11031
11031
  /* @__PURE__ */ m(Fh, {})
11032
11032
  ] })
11033
11033
  ] }),
11034
- /* @__PURE__ */ m(Vm, { onClick: s, children: /* @__PURE__ */ m(Im, {}) })
11034
+ !t.items.isStatic && /* @__PURE__ */ m(Vm, { onClick: s, children: /* @__PURE__ */ m(Im, {}) })
11035
11035
  ] })
11036
11036
  }
11037
11037
  );
@@ -11260,7 +11260,7 @@ const Pm = qn`
11260
11260
  vh,
11261
11261
  {
11262
11262
  addDrawCreatorPoint: (_) => {
11263
- Ec({
11263
+ Oc({
11264
11264
  ..._,
11265
11265
  drawInteraction: b.current.draw
11266
11266
  });
@@ -11287,14 +11287,14 @@ const Pm = qn`
11287
11287
  Vf,
11288
11288
  {
11289
11289
  mapLayers: _c(t),
11290
- caseObjectId: e,
11290
+ caseObjectId: e || -1,
11291
11291
  children: /* @__PURE__ */ m(Lh, { children: /* @__PURE__ */ m(
11292
11292
  zm,
11293
11293
  {
11294
11294
  sidebarConfig: r,
11295
11295
  mapButtonsConfig: n,
11296
11296
  mapElementsConfig: s,
11297
- caseObjectId: e
11297
+ caseObjectId: e || -1
11298
11298
  }
11299
11299
  ) })
11300
11300
  }
@@ -11330,7 +11330,7 @@ const Pm = qn`
11330
11330
  return /* @__PURE__ */ m(Hc, { client: r, children: t });
11331
11331
  }, Hm = ({
11332
11332
  children: t
11333
- }) => /* @__PURE__ */ m(Oc, { theme: ls, children: /* @__PURE__ */ m(Ac, { children: /* @__PURE__ */ m(Um, { children: t }) }) });
11333
+ }) => /* @__PURE__ */ m(Ec, { theme: ls, children: /* @__PURE__ */ m(Ac, { children: /* @__PURE__ */ m(Um, { children: t }) }) });
11334
11334
  export {
11335
11335
  Hm as GemUIMapComponentProvider,
11336
11336
  Gm as Map