@arenarium/maps 1.3.4 → 1.3.6

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.
Files changed (3) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/main.js +150 -151
  3. package/package.json +1 -1
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- .pin.svelte-10kxbrm{position:absolute;border-style:solid;box-sizing:border-box;transform-origin:0% 0%;transform:translate(-50%,-50%);backface-visibility:hidden;will-change:scale}.pin.svelte-10kxbrm{display:none;content-visibility:hidden}.pin.displayed.svelte-10kxbrm{display:initial;content-visibility:initial}.pin.svelte-10kxbrm{opacity:1}.pin.suppressed.svelte-10kxbrm{opacity:.5;box-shadow:none!important}.element.svelte-1no6o2a{position:absolute;width:0px;height:0px;box-sizing:border-box;transform-style:flat;transform-origin:0% 0%}.body.svelte-1no6o2a{cursor:pointer}.anchor.svelte-1no6o2a{opacity:0;will-change:opacity}.pointer.svelte-1no6o2a,.bubble.svelte-1no6o2a{scale:0;will-change:transform,scale}.body.svelte-1no6o2a{scale:0}.anchor.svelte-1no6o2a{display:none;content-visibility:hidden}.anchor.displayed.svelte-1no6o2a{display:initial;content-visibility:initial}.body.svelte-1no6o2a{display:initial}.body.svelte-1no6o2a:hover{display:table}
1
+ .pin.svelte-10kxbrm{position:absolute;border-style:solid;box-sizing:border-box;transform-origin:0% 0%;transform:translate(-50%,-50%);backface-visibility:hidden;will-change:scale}.pin.svelte-10kxbrm{display:none;content-visibility:hidden}.pin.displayed.svelte-10kxbrm{display:initial;content-visibility:initial}.pin.svelte-10kxbrm{opacity:1}.pin.suppressed.svelte-10kxbrm{opacity:.5;box-shadow:none!important}.element.svelte-1no6o2a{position:absolute;width:0px;height:0px;box-sizing:border-box;transform-style:flat;transform-origin:0% 0%}.body.svelte-1no6o2a{cursor:pointer}.anchor.svelte-1no6o2a{opacity:0;scale:0;will-change:opacity,scale}.pointer.svelte-1no6o2a,.bubble.svelte-1no6o2a{will-change:transform}.body.svelte-1no6o2a{opacity:0;scale:0;will-change:transform,scale,opacity}.anchor.svelte-1no6o2a{display:none;content-visibility:hidden}.anchor.displayed.svelte-1no6o2a{display:initial;content-visibility:initial}.body.svelte-1no6o2a{display:initial}.body.svelte-1no6o2a:hover{display:table}
package/dist/main.js CHANGED
@@ -1,5 +1,6 @@
1
1
  class qt {
2
2
  invoked = !1;
3
+ running = !1;
3
4
  interval;
4
5
  timeout;
5
6
  callback;
@@ -11,10 +12,10 @@ class qt {
11
12
  this.invoked = !1, await this.callback() || !this.invoked ? this.stop() : this.timeout = window.setTimeout(this.process.bind(this), this.interval);
12
13
  }
13
14
  run() {
14
- this.invoked = !0, this.timeout || this.process();
15
+ this.invoked = !0, this.running || (this.running = !0, this.timeout = window.setTimeout(this.process.bind(this), 0));
15
16
  }
16
17
  stop() {
17
- this.invoked = !1, this.timeout && window.clearTimeout(this.timeout), this.timeout = void 0;
18
+ this.invoked = !1, this.running = !1, this.timeout && window.clearTimeout(this.timeout), this.timeout = void 0;
18
19
  }
19
20
  }
20
21
  class xi {
@@ -204,8 +205,8 @@ class ut {
204
205
  static offset(e, n, r) {
205
206
  const i = this.bounds(e), s = e.zoom, a = n * Math.pow(2, s), u = at(i.sw.lat, i.sw.lng, a), o = at(i.ne.lat, i.ne.lng, a);
206
207
  let l = Math.max(u.x - r.left, 0), c = Math.min(u.y + r.bottom, a), f = Math.min(o.x + r.right, a), h = Math.max(o.y - r.top, 0);
207
- const m = On(l, c, a), p = On(f, h, a);
208
- return new ut(m.lat, m.lng, p.lat, p.lng);
208
+ const m = On(l, c, a), d = On(f, h, a);
209
+ return new ut(m.lat, m.lng, d.lat, d.lng);
209
210
  }
210
211
  contains(e, n) {
211
212
  return this.blockL.contains(e, n) || this.blockR.contains(e, n);
@@ -214,7 +215,7 @@ class ut {
214
215
  return this.blockL.intersects(e) || this.blockR.intersects(e);
215
216
  }
216
217
  }
217
- const Di = 75, zi = 150, Ln = 25e-5, Oi = 1e6, Li = 2e6, Fn = 3e6, pr = 10, $n = 16, Fi = 8, Vn = 2, je = 0.5, $i = "0px 2px 2px rgba(0, 0, 0, 0.5)", jn = 8, Vi = 8, ji = "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5))", Un = "white", Ui = "darkgreen", Wn = 1024;
218
+ const Di = 75, zi = 150, Ln = 25e-5, Oi = 1e6, Li = 2e6, Fn = 3e6, pr = 10, $n = 16, Fi = 8, Vn = 2, Ue = 0.5, $i = "0px 2px 2px rgba(0, 0, 0, 0.5)", Un = 8, Vi = 8, Ui = "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5))", jn = "white", ji = "darkgreen", Wn = 1024;
218
219
  class Wi {
219
220
  // State
220
221
  markers;
@@ -324,19 +325,19 @@ function ln(t) {
324
325
  function wr() {
325
326
  return !0;
326
327
  }
327
- let Ue = [];
328
+ let je = [];
328
329
  function fs() {
329
- var t = Ue;
330
- Ue = [], Ki(t);
330
+ var t = je;
331
+ je = [], Ki(t);
331
332
  }
332
333
  function Re(t) {
333
- if (Ue.length === 0) {
334
- var e = Ue;
334
+ if (je.length === 0) {
335
+ var e = je;
335
336
  queueMicrotask(() => {
336
- e === Ue && fs();
337
+ e === je && fs();
337
338
  });
338
339
  }
339
- Ue.push(t);
340
+ je.push(t);
340
341
  }
341
342
  function kr(t) {
342
343
  var e = y;
@@ -861,7 +862,7 @@ class ws {
861
862
  this.#o(this.#r);
862
863
  }), this.#l > 0) {
863
864
  var e = this.#a = document.createDocumentFragment();
864
- js(this.#s, e);
865
+ Us(this.#s, e);
865
866
  const n = (
866
867
  /** @type {(anchor: Node) => void} */
867
868
  this.#i.pending
@@ -1116,8 +1117,8 @@ function Ms(t, e, n) {
1116
1117
  m !== Ne && (s.f |= xe, At(s, m));
1117
1118
  else {
1118
1119
  (s.f & xe) !== 0 && (s.f ^= xe), At(s, h);
1119
- for (const [p, v] of u) {
1120
- if (u.delete(p), p === l) break;
1120
+ for (const [d, v] of u) {
1121
+ if (u.delete(d), d === l) break;
1121
1122
  v.reject(Ne);
1122
1123
  }
1123
1124
  }
@@ -1163,7 +1164,7 @@ function fn(t) {
1163
1164
  var e, n = y;
1164
1165
  he(xs(t));
1165
1166
  try {
1166
- t.f &= ~Le, Es(t), e = Ur(t);
1167
+ t.f &= ~Le, Es(t), e = jr(t);
1167
1168
  } finally {
1168
1169
  he(n);
1169
1170
  }
@@ -1203,9 +1204,9 @@ function Dt(t, e) {
1203
1204
  return n;
1204
1205
  }
1205
1206
  // @__NO_SIDE_EFFECTS__
1206
- function j(t, e) {
1207
+ function U(t, e) {
1207
1208
  const n = Dt(t);
1208
- return Us(n), n;
1209
+ return js(n), n;
1209
1210
  }
1210
1211
  function W(t, e, n = !1) {
1211
1212
  k !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
@@ -1265,7 +1266,7 @@ function rt(t) {
1265
1266
  const e = Ji(t);
1266
1267
  if (e !== Zi && e !== Xi)
1267
1268
  return t;
1268
- var n = /* @__PURE__ */ new Map(), r = Bi(t), i = /* @__PURE__ */ j(0), s = De, a = (u) => {
1269
+ var n = /* @__PURE__ */ new Map(), r = Bi(t), i = /* @__PURE__ */ U(0), s = De, a = (u) => {
1269
1270
  if (De === s)
1270
1271
  return u();
1271
1272
  var o = k, l = De;
@@ -1273,7 +1274,7 @@ function rt(t) {
1273
1274
  var c = u();
1274
1275
  return ne(o), Jn(l), c;
1275
1276
  };
1276
- return r && n.set("length", /* @__PURE__ */ j(
1277
+ return r && n.set("length", /* @__PURE__ */ U(
1277
1278
  /** @type {any[]} */
1278
1279
  t.length
1279
1280
  )), new Proxy(
@@ -1284,7 +1285,7 @@ function rt(t) {
1284
1285
  (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && ns();
1285
1286
  var c = n.get(o);
1286
1287
  return c === void 0 ? a(() => {
1287
- var f = /* @__PURE__ */ j(l.value);
1288
+ var f = /* @__PURE__ */ U(l.value);
1288
1289
  return n.set(o, f), f;
1289
1290
  }) : W(c, l.value, !0), !0;
1290
1291
  },
@@ -1292,7 +1293,7 @@ function rt(t) {
1292
1293
  var l = n.get(o);
1293
1294
  if (l === void 0) {
1294
1295
  if (o in u) {
1295
- const c = a(() => /* @__PURE__ */ j(R));
1296
+ const c = a(() => /* @__PURE__ */ U(R));
1296
1297
  n.set(o, c), lt(i);
1297
1298
  }
1298
1299
  } else
@@ -1304,8 +1305,8 @@ function rt(t) {
1304
1305
  return t;
1305
1306
  var c = n.get(o), f = o in u;
1306
1307
  if (c === void 0 && (!f || ot(u, o)?.writable) && (c = a(() => {
1307
- var m = rt(f ? u[o] : R), p = /* @__PURE__ */ j(m);
1308
- return p;
1308
+ var m = rt(f ? u[o] : R), d = /* @__PURE__ */ U(m);
1309
+ return d;
1309
1310
  }), n.set(o, c)), c !== void 0) {
1310
1311
  var h = E(c);
1311
1312
  return h === R ? void 0 : h;
@@ -1335,7 +1336,7 @@ function rt(t) {
1335
1336
  var l = n.get(o), c = l !== void 0 && l.v !== R || Reflect.has(u, o);
1336
1337
  if (l !== void 0 || y !== null && (!c || ot(u, o)?.writable)) {
1337
1338
  l === void 0 && (l = a(() => {
1338
- var h = c ? rt(u[o]) : R, m = /* @__PURE__ */ j(h);
1339
+ var h = c ? rt(u[o]) : R, m = /* @__PURE__ */ U(h);
1339
1340
  return m;
1340
1341
  }), n.set(o, l));
1341
1342
  var f = E(l);
@@ -1349,11 +1350,11 @@ function rt(t) {
1349
1350
  if (r && o === "length")
1350
1351
  for (var m = l; m < /** @type {Source<number>} */
1351
1352
  f.v; m += 1) {
1352
- var p = n.get(m + "");
1353
- p !== void 0 ? W(p, R) : m in u && (p = a(() => /* @__PURE__ */ j(R)), n.set(m + "", p));
1353
+ var d = n.get(m + "");
1354
+ d !== void 0 ? W(d, R) : m in u && (d = a(() => /* @__PURE__ */ U(R)), n.set(m + "", d));
1354
1355
  }
1355
1356
  if (f === void 0)
1356
- (!h || ot(u, o)?.writable) && (f = a(() => /* @__PURE__ */ j(void 0)), W(f, rt(l)), n.set(o, f));
1357
+ (!h || ot(u, o)?.writable) && (f = a(() => /* @__PURE__ */ U(void 0)), W(f, rt(l)), n.set(o, f));
1357
1358
  else {
1358
1359
  h = f.v !== R;
1359
1360
  var v = a(() => rt(l));
@@ -1365,8 +1366,8 @@ function rt(t) {
1365
1366
  var C = (
1366
1367
  /** @type {Source<number>} */
1367
1368
  n.get("length")
1368
- ), $ = Number(o);
1369
- Number.isInteger($) && $ >= C.v && W(C, $ + 1);
1369
+ ), V = Number(o);
1370
+ Number.isInteger(V) && V >= C.v && W(C, V + 1);
1370
1371
  }
1371
1372
  lt(i);
1372
1373
  }
@@ -1608,7 +1609,7 @@ function Fr(t, e, n) {
1608
1609
  }
1609
1610
  }
1610
1611
  }
1611
- function js(t, e) {
1612
+ function Us(t, e) {
1612
1613
  if (t.nodes)
1613
1614
  for (var n = t.nodes.start, r = t.nodes.end; n !== null; ) {
1614
1615
  var i = n === r ? null : /* @__PURE__ */ zt(n);
@@ -1628,10 +1629,10 @@ function he(t) {
1628
1629
  y = t;
1629
1630
  }
1630
1631
  let te = null;
1631
- function Us(t) {
1632
+ function js(t) {
1632
1633
  k !== null && (te === null ? te = [t] : te.push(t));
1633
1634
  }
1634
- let U = null, Z = 0, G = null;
1635
+ let j = null, X = 0, G = null;
1635
1636
  function Ws(t) {
1636
1637
  G = t;
1637
1638
  }
@@ -1667,12 +1668,12 @@ function dt(t) {
1667
1668
  }
1668
1669
  return !1;
1669
1670
  }
1670
- function jr(t, e, n = !0) {
1671
+ function Ur(t, e, n = !0) {
1671
1672
  var r = t.reactions;
1672
1673
  if (r !== null && !(te !== null && Ze.call(te, t)))
1673
1674
  for (var i = 0; i < r.length; i++) {
1674
1675
  var s = r[i];
1675
- (s.f & z) !== 0 ? jr(
1676
+ (s.f & z) !== 0 ? Ur(
1676
1677
  /** @type {Derived} */
1677
1678
  s,
1678
1679
  e,
@@ -1683,10 +1684,10 @@ function jr(t, e, n = !0) {
1683
1684
  ));
1684
1685
  }
1685
1686
  }
1686
- function Ur(t) {
1687
- var e = U, n = Z, r = G, i = k, s = te, a = le, u = ae, o = De, l = t.f;
1688
- U = /** @type {null | Value[]} */
1689
- null, Z = 0, G = null, k = (l & (Te | Fe)) === 0 ? t : null, te = null, Je(t.ctx), ae = !1, De = ++Ce, t.ac !== null && (Rr(() => {
1687
+ function jr(t) {
1688
+ var e = j, n = X, r = G, i = k, s = te, a = le, u = ae, o = De, l = t.f;
1689
+ j = /** @type {null | Value[]} */
1690
+ null, X = 0, G = null, k = (l & (Te | Fe)) === 0 ? t : null, te = null, Je(t.ctx), ae = !1, De = ++Ce, t.ac !== null && (Rr(() => {
1690
1691
  t.ac.abort(Ne);
1691
1692
  }), t.ac = null);
1692
1693
  try {
@@ -1697,22 +1698,22 @@ function Ur(t) {
1697
1698
  ), f = c();
1698
1699
  t.f |= Xe;
1699
1700
  var h = t.deps, m = x?.is_fork;
1700
- if (U !== null) {
1701
- var p;
1702
- if (m || ct(t, Z), h !== null && Z > 0)
1703
- for (h.length = Z + U.length, p = 0; p < U.length; p++)
1704
- h[Z + p] = U[p];
1701
+ if (j !== null) {
1702
+ var d;
1703
+ if (m || ct(t, X), h !== null && X > 0)
1704
+ for (h.length = X + j.length, d = 0; d < j.length; d++)
1705
+ h[X + d] = j[d];
1705
1706
  else
1706
- t.deps = h = U;
1707
+ t.deps = h = j;
1707
1708
  if (hn() && (t.f & ee) !== 0)
1708
- for (p = Z; p < h.length; p++)
1709
- (h[p].reactions ??= []).push(t);
1710
- } else !m && h !== null && Z < h.length && (ct(t, Z), h.length = Z);
1709
+ for (d = X; d < h.length; d++)
1710
+ (h[d].reactions ??= []).push(t);
1711
+ } else !m && h !== null && X < h.length && (ct(t, X), h.length = X);
1711
1712
  if (wr() && G !== null && !ae && h !== null && (t.f & (z | oe | F)) === 0)
1712
- for (p = 0; p < /** @type {Source[]} */
1713
- G.length; p++)
1714
- jr(
1715
- G[p],
1713
+ for (d = 0; d < /** @type {Source[]} */
1714
+ G.length; d++)
1715
+ Ur(
1716
+ G[d],
1716
1717
  /** @type {Effect} */
1717
1718
  t
1718
1719
  );
@@ -1730,7 +1731,7 @@ function Ur(t) {
1730
1731
  } catch (v) {
1731
1732
  return kr(v);
1732
1733
  } finally {
1733
- t.f ^= en, U = e, Z = n, G = r, k = i, te = s, Je(a), ae = u, De = o;
1734
+ t.f ^= en, j = e, X = n, G = r, k = i, te = s, Je(a), ae = u, De = o;
1734
1735
  }
1735
1736
  }
1736
1737
  function Bs(t, e) {
@@ -1745,7 +1746,7 @@ function Bs(t, e) {
1745
1746
  if (n === null && (e.f & z) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1746
1747
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1747
1748
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1748
- (U === null || !Ze.call(U, e))) {
1749
+ (j === null || !Ze.call(j, e))) {
1749
1750
  var s = (
1750
1751
  /** @type {Derived} */
1751
1752
  e
@@ -1767,7 +1768,7 @@ function Ke(t) {
1767
1768
  y = t, Tt = !0;
1768
1769
  try {
1769
1770
  (e & (we | mr)) !== 0 ? $s(t) : pn(t), Or(t);
1770
- var i = Ur(t);
1771
+ var i = jr(t);
1771
1772
  t.teardown = typeof i == "function" ? i : null, t.wv = $r;
1772
1773
  var s;
1773
1774
  Kt && cs && (t.f & F) !== 0 && t.deps;
@@ -1783,7 +1784,7 @@ function E(t) {
1783
1784
  if (!r && (te === null || !Ze.call(te, t))) {
1784
1785
  var i = k.deps;
1785
1786
  if ((k.f & en) !== 0)
1786
- t.rv < Ce && (t.rv = Ce, U === null && i !== null && i[Z] === t ? Z++ : U === null ? U = [t] : U.push(t));
1787
+ t.rv < Ce && (t.rv = Ce, j === null && i !== null && i[X] === t ? X++ : j === null ? j = [t] : j.push(t));
1787
1788
  else {
1788
1789
  (k.deps ??= []).push(t);
1789
1790
  var s = t.reactions;
@@ -1881,7 +1882,7 @@ function Qn(t) {
1881
1882
  ne(null), he(null);
1882
1883
  try {
1883
1884
  for (var h, m = []; s !== null; ) {
1884
- var p = s.assignedSlot || s.parentNode || /** @type {any} */
1885
+ var d = s.assignedSlot || s.parentNode || /** @type {any} */
1885
1886
  s.host || null;
1886
1887
  try {
1887
1888
  var v = s[_t]?.[r];
@@ -1892,9 +1893,9 @@ function Qn(t) {
1892
1893
  } catch (b) {
1893
1894
  h ? m.push(b) : h = b;
1894
1895
  }
1895
- if (t.cancelBubble || p === e || p === null)
1896
+ if (t.cancelBubble || d === e || d === null)
1896
1897
  break;
1897
- s = p;
1898
+ s = d;
1898
1899
  }
1899
1900
  if (h) {
1900
1901
  for (let b of m)
@@ -1979,25 +1980,25 @@ function Gs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1979
1980
  },
1980
1981
  (m) => {
1981
1982
  on({});
1982
- var p = (
1983
+ var d = (
1983
1984
  /** @type {ComponentContext} */
1984
1985
  le
1985
1986
  );
1986
- s && (p.c = s), i && (r.$$events = i), o = t(m, r) || {}, ln();
1987
+ s && (d.c = s), i && (r.$$events = i), o = t(m, r) || {}, ln();
1987
1988
  },
1988
1989
  u
1989
1990
  );
1990
1991
  var f = /* @__PURE__ */ new Set(), h = (m) => {
1991
- for (var p = 0; p < m.length; p++) {
1992
- var v = m[p];
1992
+ for (var d = 0; d < m.length; d++) {
1993
+ var v = m[d];
1993
1994
  if (!f.has(v)) {
1994
1995
  f.add(v);
1995
1996
  var b = qs(v);
1996
1997
  for (const re of [e, document]) {
1997
1998
  var C = Mt.get(re);
1998
1999
  C === void 0 && (C = /* @__PURE__ */ new Map(), Mt.set(re, C));
1999
- var $ = C.get(v);
2000
- $ === void 0 ? (re.addEventListener(v, Qn, { passive: b }), C.set(v, 1)) : C.set(v, $ + 1);
2000
+ var V = C.get(v);
2001
+ V === void 0 ? (re.addEventListener(v, Qn, { passive: b }), C.set(v, 1)) : C.set(v, V + 1);
2001
2002
  }
2002
2003
  }
2003
2004
  }
@@ -2005,14 +2006,14 @@ function Gs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
2005
2006
  return h(qi(Ys)), Gn.add(h), () => {
2006
2007
  for (var m of f)
2007
2008
  for (const b of [e, document]) {
2008
- var p = (
2009
+ var d = (
2009
2010
  /** @type {Map<string, number>} */
2010
2011
  Mt.get(b)
2011
2012
  ), v = (
2012
2013
  /** @type {number} */
2013
- p.get(m)
2014
+ d.get(m)
2014
2015
  );
2015
- --v == 0 ? (b.removeEventListener(m, Qn), p.delete(m), p.size === 0 && Mt.delete(b)) : p.set(m, v);
2016
+ --v == 0 ? (b.removeEventListener(m, Qn), d.delete(m), d.size === 0 && Mt.delete(b)) : d.set(m, v);
2016
2017
  }
2017
2018
  Gn.delete(h), c !== n && c.parentNode?.removeChild(c);
2018
2019
  };
@@ -2175,36 +2176,36 @@ var ra = /* @__PURE__ */ Hr("<div></div>");
2175
2176
  function ia(t, e) {
2176
2177
  on(e, !0);
2177
2178
  let n = Q(() => e.id), r = Q(() => e.element), i = Q(() => e.style), s = Q(() => e.dimensions), a = Q(() => e.initialize), u = {
2178
- setDisplayed: $,
2179
+ setDisplayed: V,
2179
2180
  getDisplayed: re,
2180
2181
  setSuppressed: be,
2181
2182
  setCollapsed: Ie,
2182
- getCollapsed: J,
2183
+ getCollapsed: Y,
2183
2184
  setScale: Ot
2184
2185
  };
2185
2186
  function o() {
2186
2187
  return u;
2187
2188
  }
2188
- let l, c = s.width, f = s.height, h = s.padding, m = i?.background ?? Ui, p = i?.radius ?? Fi, v = i?.shadow ?? $i, b = /* @__PURE__ */ j(!1), C = !1;
2189
- function $(_) {
2190
- _ == !0 && (l && r && r.parentElement != l && l.appendChild(r), C == !1 && a && r && (C = !0, setTimeout(async () => await a(n, r), 0))), _ != E(b) && (W(b, _, !0), _ == !1 && Y.end());
2189
+ let l, c = s.width, f = s.height, h = s.padding, m = i?.background ?? ji, d = i?.radius ?? Fi, v = i?.shadow ?? $i, b = /* @__PURE__ */ U(!1), C = !1;
2190
+ function V(_) {
2191
+ _ == !0 && (l && r && r.parentElement != l && l.appendChild(r), C == !1 && a && r && (C = !0, setTimeout(async () => await a(n, r), 0))), _ != E(b) && (W(b, _, !0), _ == !1 && Z.end());
2191
2192
  }
2192
2193
  function re() {
2193
2194
  return E(b);
2194
2195
  }
2195
- let ye = /* @__PURE__ */ j(!0);
2196
+ let ye = /* @__PURE__ */ U(!0);
2196
2197
  function be(_) {
2197
- _ != E(ye) && (W(ye, _, !0), _ && (ie = je, Y.set(je)));
2198
+ _ != E(ye) && (W(ye, _, !0), _ && (ie = Ue, Z.set(Ue)));
2198
2199
  }
2199
- let pe = /* @__PURE__ */ j(!0);
2200
+ let pe = /* @__PURE__ */ U(!0);
2200
2201
  function Ie(_) {
2201
- _ != E(pe) && (W(pe, _, !0), Y.target(E(pe) ? 0 : ie));
2202
+ _ != E(pe) && (W(pe, _, !0), Z.target(E(pe) ? 0 : ie));
2202
2203
  }
2203
- function J() {
2204
- return E(b) ? Y.expired() : !0;
2204
+ function Y() {
2205
+ return E(b) ? Z.expired() : !0;
2205
2206
  }
2206
- let ie = je, Y = new Gr({
2207
- value: je,
2207
+ let ie = Ue, Z = new Gr({
2208
+ value: Ue,
2208
2209
  min: 0,
2209
2210
  max: 1,
2210
2211
  timespan: Di,
@@ -2212,7 +2213,7 @@ function ia(t, e) {
2212
2213
  callback: vt
2213
2214
  });
2214
2215
  function Ot(_) {
2215
- ie = _, Y.target(_);
2216
+ ie = _, Z.target(_);
2216
2217
  }
2217
2218
  function vt(_) {
2218
2219
  l.style.scale = _.toString(), l.style.filter = `brightness(${de(_)})`;
@@ -2240,11 +2241,11 @@ function ia(t, e) {
2240
2241
  width: `${c}px`,
2241
2242
  height: `${f}px`,
2242
2243
  padding: `${h}px`,
2243
- "border-radius": `${p}px`,
2244
+ "border-radius": `${d}px`,
2244
2245
  "background-color": `rgb(from ${m} r g b / 1)`,
2245
2246
  "box-shadow": v,
2246
- scale: je,
2247
- filter: `brightness(${de(je)})`
2247
+ scale: Ue,
2248
+ filter: `brightness(${de(Ue)})`
2248
2249
  })
2249
2250
  ]
2250
2251
  ), qr(t, $e), ln(Lt);
@@ -2337,14 +2338,14 @@ function Kr(t, e) {
2337
2338
  function o() {
2338
2339
  return u;
2339
2340
  }
2340
- let l = s.width + 2 * s.padding, c = s.height + 2 * s.padding, f = s.padding, h, m = i?.filter ?? ji, p, v = s.padding * 2, b = Math.max(2, (i?.radius ?? jn) / v), C = i?.background ?? Un, $, re = s.width, ye = s.height, be = i?.radius ?? jn, pe = Math.min(1, 2 * be / Math.min(ye, re)), Ie = i?.background ?? Un, J, ie = s.width, Y = s.height, Ot = i?.radius, vt = !1, de = /* @__PURE__ */ j(!1);
2341
+ let l = s.width + 2 * s.padding, c = s.height + 2 * s.padding, f = s.padding, h, m = i?.filter ?? Ui, d, v = s.padding * 2, b = Math.max(2, (i?.radius ?? Un) / v), C = i?.background ?? jn, V, re = s.width, ye = s.height, be = i?.radius ?? Un, pe = Math.min(1, 2 * be / Math.min(ye, re)), Ie = i?.background ?? jn, Y, ie = s.width, Z = s.height, Ot = i?.radius, vt = !1, de = /* @__PURE__ */ U(!1);
2341
2342
  function Lt(g) {
2342
- g != E(de) && (W(de, g, !0), g == !0 && (r && r.parentElement != J && J.appendChild(r), vt == !1 && a && r && (vt = !0, setTimeout(async () => await a(n, r), 0))), g == !1 && (gt.end(), $t.end(), Vt.end()));
2343
+ g != E(de) && (W(de, g, !0), g == !0 && (r && r.parentElement != Y && Y.appendChild(r), vt == !1 && a && r && (vt = !0, setTimeout(async () => await a(n, r), 0))), g == !1 && (gt.end(), $t.end(), Vt.end()));
2343
2344
  }
2344
2345
  function $e() {
2345
2346
  return E(de);
2346
2347
  }
2347
- let Ve = /* @__PURE__ */ j(!0);
2348
+ let Ve = /* @__PURE__ */ U(!0);
2348
2349
  function _(g) {
2349
2350
  g != E(Ve) && (W(Ve, g, !0), gt.target(E(Ve) ? 0 : 1));
2350
2351
  }
@@ -2363,9 +2364,9 @@ function Kr(t, e) {
2363
2364
  callback: mi
2364
2365
  });
2365
2366
  function mi(g) {
2366
- h.style.opacity = `${g}`, p.style.scale = `${g}`, $.style.scale = `${g}`, J.style.scale = `${g}`;
2367
+ h.style.opacity = `${g}`, h.style.scale = `${g}`, Y.style.scale = `${g}`, Y.style.opacity = `${g}`;
2367
2368
  }
2368
- let wt = NaN, Ft = /* @__PURE__ */ j(!1), kn = -l / 2, $t = new rr({
2369
+ let wt = NaN, Ft = /* @__PURE__ */ U(!1), kn = -l / 2, $t = new rr({
2369
2370
  value: -l / 2,
2370
2371
  min: -l,
2371
2372
  max: 0,
@@ -2405,21 +2406,21 @@ function Kr(t, e) {
2405
2406
  yn = g, bn();
2406
2407
  }
2407
2408
  function bn() {
2408
- const g = kn, kt = yn, me = g + l / 2, Ut = kt + c / 2, Wt = c < l ? me * c / l : me, Bt = c > l ? Ut * l / c : Ut, yi = Math.atan2(Bt, Wt) / Math.PI * 180 - 45, Ht = Math.sqrt(Wt * Wt + Bt * Bt), nt = Math.min(l, c) / 2, bi = nt * Math.SQRT2, In = (Ht - nt) / (bi - nt), An = 15, Nn = An + In * (22.5 - An), _i = Ht < nt ? Ht / nt : 1, Mi = g + f, Ei = kt + f, Cn = f * 2 * pe * In, Rn = Mi - Cn * (me / l), Dn = Ei - Cn * (Ut / c);
2409
- p.style.transform = `scale(${_i}) rotate(${yi}deg) skew(${Nn}deg, ${Nn}deg)`, $.style.transform = `translate(${Math.round(Rn)}px, ${Math.round(Dn)}px)`, J.style.transform = `translate(${Math.round(Rn)}px, ${Math.round(Dn)}px)`;
2409
+ const g = kn, kt = yn, me = g + l / 2, jt = kt + c / 2, Wt = c < l ? me * c / l : me, Bt = c > l ? jt * l / c : jt, yi = Math.atan2(Bt, Wt) / Math.PI * 180 - 45, Ht = Math.sqrt(Wt * Wt + Bt * Bt), nt = Math.min(l, c) / 2, bi = nt * Math.SQRT2, In = (Ht - nt) / (bi - nt), An = 15, Nn = An + In * (22.5 - An), _i = Ht < nt ? Ht / nt : 1, Mi = g + f, Ei = kt + f, Cn = f * 2 * pe * In, Rn = Mi - Cn * (me / l), Dn = Ei - Cn * (jt / c);
2410
+ d.style.transform = `scale(${_i}) rotate(${yi}deg) skew(${Nn}deg, ${Nn}deg)`, V.style.transform = `translate(${Math.round(Rn)}px, ${Math.round(Dn)}px)`, Y.style.transform = `translate(${Math.round(Rn)}px, ${Math.round(Dn)}px)`;
2410
2411
  }
2411
2412
  var ki = { invoke: o }, _n = aa(), tt = As(_n);
2412
2413
  let Mn;
2413
- var jt = Is(tt);
2414
+ var Ut = Is(tt);
2414
2415
  let En;
2415
- st(jt, (g) => p = g, () => p);
2416
- var xn = Zn(jt, 2);
2416
+ st(Ut, (g) => d = g, () => d);
2417
+ var xn = Zn(Ut, 2);
2417
2418
  let Sn;
2418
- st(xn, (g) => $ = g, () => $), st(tt, (g) => h = g, () => h);
2419
+ st(xn, (g) => V = g, () => V), st(tt, (g) => h = g, () => h);
2419
2420
  var Pn = Zn(tt, 2);
2420
2421
  let Tn;
2421
- return st(Pn, (g) => J = g, () => J), zr(() => {
2422
- Xr(tt, 1, Zr(["element anchor", E(de) && "displayed"]), "svelte-1no6o2a"), Mn = it(tt, "", Mn, { filter: m }), En = it(jt, "", En, {
2422
+ return st(Pn, (g) => Y = g, () => Y), zr(() => {
2423
+ Xr(tt, 1, Zr(["element anchor", E(de) && "displayed"]), "svelte-1no6o2a"), Mn = it(tt, "", Mn, { filter: m }), En = it(Ut, "", En, {
2423
2424
  width: `${v}px`,
2424
2425
  height: `${v}px`,
2425
2426
  "border-radius": `${b}px`,
@@ -2431,7 +2432,7 @@ function Kr(t, e) {
2431
2432
  "background-color": `rgb(from ${Ie} r g b / 1)`
2432
2433
  }), Tn = it(Pn, "", Tn, {
2433
2434
  width: `${ie}px`,
2434
- height: `${Y}px`,
2435
+ height: `${Z}px`,
2435
2436
  "border-radius": `${Ot}px`
2436
2437
  });
2437
2438
  }), qr(t, _n), ln(ki);
@@ -2581,11 +2582,11 @@ class pa {
2581
2582
  }
2582
2583
  show(e, n) {
2583
2584
  if (!e.popup || !e.tooltip || !e.pin || (e.pin.shown = !1, e.tooltip.shown = !1, e.popup.angle = e.tooltip.angle, e.popup.shown = !0, this.pan == !1)) return;
2584
- const r = e.popup, i = n.getViewport(), s = i.bounds, a = i.zoom, o = n.getParameters().mapSize * Math.pow(2, a), l = at(s.ne.lat, s.sw.lng, o), c = at(s.sw.lat, s.ne.lng, o), f = c.x - l.x, h = c.y - l.y, m = r.width + r.padding * 8, p = r.height + r.padding * 8, v = at(r.lat, r.lng, o), b = sn(m, p, e.tooltip.angle), C = v.x + b.x, $ = C + m, re = v.y + b.y, ye = re + p, be = C - l.x, pe = c.x - $, Ie = re - l.y, J = c.y - ye;
2585
+ const r = e.popup, i = n.getViewport(), s = i.bounds, a = i.zoom, o = n.getParameters().mapSize * Math.pow(2, a), l = at(s.ne.lat, s.sw.lng, o), c = at(s.sw.lat, s.ne.lng, o), f = c.x - l.x, h = c.y - l.y, m = r.width + r.padding * 8, d = r.height + r.padding * 8, v = at(r.lat, r.lng, o), b = sn(m, d, e.tooltip.angle), C = v.x + b.x, V = C + m, re = v.y + b.y, ye = re + d, be = C - l.x, pe = c.x - V, Ie = re - l.y, Y = c.y - ye;
2585
2586
  let ie = 0;
2586
2587
  f < m ? ie = (be - pe) / 2 : (be < 0 && (ie = be), pe < 0 && (ie = -pe));
2587
- let Y = 0;
2588
- h < p ? Y = (Ie - J) / 2 : (Ie < 0 && (Y = Ie), J < 0 && (Y = -J)), (ie != 0 || Y != 0) && n.panBy(ie, Y);
2588
+ let Z = 0;
2589
+ h < d ? Z = (Ie - Y) / 2 : (Ie < 0 && (Z = Ie), Y < 0 && (Z = -Y)), (ie != 0 || Z != 0) && n.panBy(ie, Z);
2589
2590
  }
2590
2591
  hide(e) {
2591
2592
  !e.popup || !e.tooltip || !e.pin || (e.pin.shown = !0, e.tooltip.shown = !0, e.popup.shown = !1);
@@ -2652,7 +2653,7 @@ class da {
2652
2653
  }
2653
2654
  //#endregion
2654
2655
  }
2655
- const Qr = '(function(){"use strict";var h=[0,30,60,90,120,150,180,210,240,270,300,330],l=",";function i(e,t){return parseFloat(e[t]+e[t+1]+"."+e[t+2])}function f(e,t){return h[parseInt(e[t],16)]}function m(e){if(!e||e.length===0)return[];let t=[],o=e.split(l);for(let n=0;n<o.length;n++){let s=o[n],r=i(s,0),a=[];for(let c=3;c<s.length;c+=4){let v=i(s,c),T=f(s,c+3);a.push({zoom:v,angle:T})}t.push({zoom:r,directions:a})}return t}var d=e=>new Promise(t=>setTimeout(t,e));async function u(e,t){let o=0,n=Math.max(1,t?.retry?.times??1);for(;o<n;)try{return{data:await e(),error:null}}catch(s){if(o++,o==n){if(s instanceof Error)return(!t?.exceptions||t.exceptions.some(r=>s instanceof r)==!1)&&t?.catch?.(s),{data:null,error:s};throw t?.catch?.(s),s}else t?.retry?.delay&&await d(t.retry.delay)}throw Error("Unreachable code")}async function w(e,t,o,n,s){let r=await u(async()=>await fetch(e,{...o,method:"POST",body:t?JSON.stringify(t):void 0,headers:{...o?.headers,"Content-Type":"application/json"}}),{retry:{times:n,delay:s}});if(r.error)throw r.error;let a=r.data;if(!a.ok)throw Error(await a.text());return await a.json()}const p="https://maps.api.arenarium.dev/states",y=3,E=500,S={async fetch(e){const o={headers:{"Cache-Control":self?.location.host.startsWith("localhost")||self?.location.host.startsWith("127.0.0.1")?"no-cache":""}},n=await w(p,e,o,y,E),s=m(n.states),r=n.jwt;return{states:s,jwt:r}}};class k{methods;constructor(t){this.methods=t}listen(){self.onmessage=this.onmessage.bind(this)}async onmessage(t){const{id:o,method:n,args:s}=t.data;try{const r=this.methods[n];if(typeof r!="function")throw new Error(`Unknown method: ${n}`);const a=await r(...s),c={id:o,result:a};self.postMessage(c)}catch(r){const a=r instanceof Error?r.message:String(r),c={id:o,error:a};self.postMessage(c)}}}new k(S).listen()})();\n', ir = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Qr], { type: "text/javascript;charset=utf-8" });
2656
+ const Qr = '(function(){"use strict";var h=[0,30,60,90,120,150,180,210,240,270,300,330],l=",";function i(e,t){return parseFloat(e[t]+e[t+1]+"."+e[t+2])}function f(e,t){return h[parseInt(e[t],16)]}function m(e){if(!e||e.length===0)return[];let t=[],n=e.split(l);for(let o=0;o<n.length;o++){let s=n[o],r=i(s,0),a=[];for(let c=3;c<s.length;c+=4){let v=i(s,c),T=f(s,c+3);a.push({zoom:v,angle:T})}t.push({zoom:r,directions:a})}return t}var d=e=>new Promise(t=>setTimeout(t,e));async function u(e,t){let n=0,o=Math.max(1,t?.retry?.times??1);for(;n<o;)try{return{data:await e(),error:null}}catch(s){if(n++,n==o){if(s instanceof Error)return(!t?.exceptions||t.exceptions.some(r=>s instanceof r)==!1)&&t?.catch?.(s),{data:null,error:s};throw t?.catch?.(s),s}else t?.retry?.delay&&await d(t.retry.delay)}throw Error("Unreachable code")}async function w(e,t,n,o,s){let r=await u(async()=>await fetch(e,{...n,method:"POST",body:t?JSON.stringify(t):void 0}),{retry:{times:o,delay:s}});if(r.error)throw r.error;let a=r.data;if(!a.ok)throw Error(await a.text());return await a.json()}const y="https://maps.api.arenarium.dev/states",p=3,E=500,S={async fetch(e){const n={headers:{"Cache-Control":self?.location.host.startsWith("localhost")||self?.location.host.startsWith("127.0.0.1")?"no-cache":""}},o=await w(y,e,n,p,E),s=m(o.states),r=o.jwt;return{states:s,jwt:r}}};class k{methods;constructor(t){this.methods=t}listen(){self.onmessage=this.onmessage.bind(this)}async onmessage(t){const{id:n,method:o,args:s}=t.data;try{const r=this.methods[o];if(typeof r!="function")throw new Error(`Unknown method: ${o}`);const a=await r(...s),c={id:n,result:a};self.postMessage(c)}catch(r){const a=r instanceof Error?r.message:String(r),c={id:n,error:a};self.postMessage(c)}}}new k(S).listen()})();\n', ir = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Qr], { type: "text/javascript;charset=utf-8" });
2656
2657
  function ma(t) {
2657
2658
  let e;
2658
2659
  try {
@@ -2687,20 +2688,20 @@ async function ei(t, e) {
2687
2688
  throw Error("Unreachable code");
2688
2689
  }
2689
2690
  async function ga(t, e, n, r, i) {
2690
- let s = await ei(async () => await fetch(t, { ...n, method: "POST", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } }), { retry: { times: r, delay: i } });
2691
+ let s = await ei(async () => await fetch(t, { ...n, method: "POST", body: e ? JSON.stringify(e) : void 0 }), { retry: { times: r, delay: i } });
2691
2692
  if (s.error) throw s.error;
2692
2693
  let a = s.data;
2693
2694
  if (!a.ok) throw Error(await a.text());
2694
2695
  return await a.json();
2695
2696
  }
2696
2697
  async function wa(t, e, n, r, i) {
2697
- let s = await ei(async () => await fetch(t, { ...n, method: "PUT", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } }), { retry: { times: r, delay: i } });
2698
+ let s = await ei(async () => await fetch(t, { ...n, method: "PUT", body: e ? JSON.stringify(e) : void 0 }), { retry: { times: r, delay: i } });
2698
2699
  if (s.error) throw s.error;
2699
2700
  let a = s.data;
2700
2701
  if (!a.ok) throw Error(await a.text());
2701
2702
  }
2702
2703
  const Be = 0xc3a5c85c97cb3127n, ue = 0xb492b66fbe98f273n, He = 0x9ae16a3b2f90404fn, ti = 0xc949d7c7509e6557n, B = 0xffffffffffffffffn;
2703
- function d(t) {
2704
+ function p(t) {
2704
2705
  return t & B;
2705
2706
  }
2706
2707
  function A(t, e) {
@@ -2710,7 +2711,7 @@ function ka(t, e) {
2710
2711
  return t = t & B, (t >> BigInt(e) | t << BigInt(64 - e)) & B;
2711
2712
  }
2712
2713
  function ft(t) {
2713
- return d(t ^ t >> 47n);
2714
+ return p(t ^ t >> 47n);
2714
2715
  }
2715
2716
  function M(t, e = 0) {
2716
2717
  let n = 0n;
@@ -2745,33 +2746,33 @@ function ba(t) {
2745
2746
  return qe(BigInt(e) + (n << 3n) & B, sr(t, e - 4));
2746
2747
  }
2747
2748
  if (e > 0) {
2748
- const n = BigInt(t[0]), r = BigInt(t[e >> 1]), i = BigInt(t[e - 1]), s = d(n + (r << 8n)), a = d(BigInt(e) + (i << 2n));
2749
- return d(ft(d(s * He) ^ d(a * ti)) * He);
2749
+ const n = BigInt(t[0]), r = BigInt(t[e >> 1]), i = BigInt(t[e - 1]), s = p(n + (r << 8n)), a = p(BigInt(e) + (i << 2n));
2750
+ return p(ft(p(s * He) ^ p(a * ti)) * He);
2750
2751
  }
2751
2752
  return He;
2752
2753
  }
2753
2754
  function _a(t) {
2754
- const e = t.length, n = d(M(t) * ue), r = M(t, 8), i = d(M(t, e - 8) * He), s = d(M(t, e - 16) * Be);
2755
- return qe(d(A(d(n - r), 43) + A(i, 30) + s), d(n + A(r ^ ti, 20) - i + BigInt(e)));
2755
+ const e = t.length, n = p(M(t) * ue), r = M(t, 8), i = p(M(t, e - 8) * He), s = p(M(t, e - 16) * Be);
2756
+ return qe(p(A(p(n - r), 43) + A(i, 30) + s), p(n + A(r ^ ti, 20) - i + BigInt(e)));
2756
2757
  }
2757
2758
  function Ma(t, e, n, r, i, s) {
2758
- i = d(i + t), s = A(d(s + i + r), 21);
2759
+ i = p(i + t), s = A(p(s + i + r), 21);
2759
2760
  const a = i;
2760
- return i = d(i + e), i = d(i + n), s = d(s + A(i, 44)), { first: d(i + r), second: d(s + a) };
2761
+ return i = p(i + e), i = p(i + n), s = p(s + A(i, 44)), { first: p(i + r), second: p(s + a) };
2761
2762
  }
2762
2763
  function Et(t, e, n, r) {
2763
2764
  return Ma(M(t, e), M(t, e + 8), M(t, e + 16), M(t, e + 24), n, r);
2764
2765
  }
2765
2766
  function Ea(t) {
2766
2767
  const e = t.length, n = M(t, 24);
2767
- let r = d(M(t) + d((BigInt(e) + M(t, e - 16)) * Be)), i = A(d(r + n), 52), s = A(r, 37);
2768
- r = d(r + M(t, 8)), s = d(s + A(r, 7)), r = d(r + M(t, 16));
2769
- const a = d(r + n), u = d(i + A(r, 31) + s);
2770
- r = d(M(t, 16) + M(t, e - 32));
2768
+ let r = p(M(t) + p((BigInt(e) + M(t, e - 16)) * Be)), i = A(p(r + n), 52), s = A(r, 37);
2769
+ r = p(r + M(t, 8)), s = p(s + A(r, 7)), r = p(r + M(t, 16));
2770
+ const a = p(r + n), u = p(i + A(r, 31) + s);
2771
+ r = p(M(t, 16) + M(t, e - 32));
2771
2772
  const o = M(t, e - 8);
2772
- i = A(d(r + o), 52), s = A(r, 37), r = d(r + M(t, e - 24)), s = d(s + A(r, 7)), r = d(r + M(t, e - 16));
2773
- const l = d(r + o), c = d(i + A(r, 31) + s), f = ft(d(d(a + c) * He + d(l + u) * Be));
2774
- return d(ft(d(f * Be + u)) * He);
2773
+ i = A(p(r + o), 52), s = A(r, 37), r = p(r + M(t, e - 24)), s = p(s + A(r, 7)), r = p(r + M(t, e - 16));
2774
+ const l = p(r + o), c = p(i + A(r, 31) + s), f = ft(p(p(a + c) * He + p(l + u) * Be));
2775
+ return p(ft(p(f * Be + u)) * He);
2775
2776
  }
2776
2777
  function xa(t) {
2777
2778
  let e;
@@ -2781,12 +2782,12 @@ function xa(t) {
2781
2782
  return n <= 16 ? ba(e) : _a(e);
2782
2783
  if (n <= 64)
2783
2784
  return Ea(e);
2784
- let r = M(e), i = d(M(e, n - 16) ^ ue), s = d(M(e, n - 56) ^ Be), a = Et(e, n - 64, BigInt(n), i), u = Et(e, n - 32, d(BigInt(n) * ue), Be);
2785
- s = d(s + ft(a.second) * ue), r = d(A(d(s + r), 39) * ue), i = d(A(i, 33) * ue);
2785
+ let r = M(e), i = p(M(e, n - 16) ^ ue), s = p(M(e, n - 56) ^ Be), a = Et(e, n - 64, BigInt(n), i), u = Et(e, n - 32, p(BigInt(n) * ue), Be);
2786
+ s = p(s + ft(a.second) * ue), r = p(A(p(s + r), 39) * ue), i = p(A(i, 33) * ue);
2786
2787
  let o = n - 1 & -64, l = 0;
2787
2788
  for (; o > 0; )
2788
- r = d(A(d(r + i + a.first + M(e, l + 16)), 37) * ue), i = d(A(d(i + a.second + M(e, l + 48)), 42) * ue), r ^= u.second, i ^= a.first, s = A(s ^ u.first, 33), a = Et(e, l, d(a.second * ue), d(r + u.first)), u = Et(e, l + 32, d(s + u.second), i), [s, r] = [r, s], l += 64, o -= 64;
2789
- return qe(qe(a.first, u.first) + d(ft(i) * ue) + s, qe(a.second, u.second) + r);
2789
+ r = p(A(p(r + i + a.first + M(e, l + 16)), 37) * ue), i = p(A(p(i + a.second + M(e, l + 48)), 42) * ue), r ^= u.second, i ^= a.first, s = A(s ^ u.first, 33), a = Et(e, l, p(a.second * ue), p(r + u.first)), u = Et(e, l + 32, p(s + u.second), i), [s, r] = [r, s], l += 64, o -= 64;
2790
+ return qe(qe(a.first, u.first) + p(ft(i) * ue) + s, qe(a.second, u.second) + r);
2790
2791
  }
2791
2792
  function Sa(t) {
2792
2793
  return xa(JSON.stringify(t)).toString();
@@ -2839,7 +2840,7 @@ function N(t, e, n, r, i) {
2839
2840
  c !== void 0 && (o.message = typeof c == "function" ? c(o) : c), l && (n.typed = !1), n.issues ? n.issues.push(o) : n.issues = [o];
2840
2841
  }
2841
2842
  // @__NO_SIDE_EFFECTS__
2842
- function X(t) {
2843
+ function J(t) {
2843
2844
  return {
2844
2845
  version: 1,
2845
2846
  vendor: "valibot",
@@ -2957,11 +2958,11 @@ function q(t, e) {
2957
2958
  };
2958
2959
  }
2959
2960
  // @__NO_SIDE_EFFECTS__
2960
- function V(t) {
2961
+ function $(t) {
2961
2962
  return {
2962
2963
  kind: "transformation",
2963
2964
  type: "returns",
2964
- reference: V,
2965
+ reference: $,
2965
2966
  async: !1,
2966
2967
  schema: t,
2967
2968
  "~run"(e, n) {
@@ -2993,7 +2994,7 @@ function ai(t, e) {
2993
2994
  item: t,
2994
2995
  message: e,
2995
2996
  get "~standard"() {
2996
- return /* @__PURE__ */ X(this);
2997
+ return /* @__PURE__ */ J(this);
2997
2998
  },
2998
2999
  "~run"(n, r) {
2999
3000
  const i = n.value;
@@ -3033,7 +3034,7 @@ function oi(t) {
3033
3034
  async: !1,
3034
3035
  message: t,
3035
3036
  get "~standard"() {
3036
- return /* @__PURE__ */ X(this);
3037
+ return /* @__PURE__ */ J(this);
3037
3038
  },
3038
3039
  "~run"(e, n) {
3039
3040
  return typeof e.value == "boolean" ? e.typed = !0 : N(this, "type", e, n), e;
@@ -3051,7 +3052,7 @@ function li(t, e) {
3051
3052
  check: t,
3052
3053
  message: e,
3053
3054
  get "~standard"() {
3054
- return /* @__PURE__ */ X(this);
3055
+ return /* @__PURE__ */ J(this);
3055
3056
  },
3056
3057
  "~run"(n, r) {
3057
3058
  return this.check(n.value) ? n.typed = !0 : N(this, "type", n, r), n;
@@ -3068,7 +3069,7 @@ function I(t) {
3068
3069
  async: !1,
3069
3070
  message: t,
3070
3071
  get "~standard"() {
3071
- return /* @__PURE__ */ X(this);
3072
+ return /* @__PURE__ */ J(this);
3072
3073
  },
3073
3074
  "~run"(e, n) {
3074
3075
  return typeof e.value == "function" ? e.typed = !0 : N(this, "type", e, n), e;
@@ -3086,7 +3087,7 @@ function ze(t, e) {
3086
3087
  literal: t,
3087
3088
  message: e,
3088
3089
  get "~standard"() {
3089
- return /* @__PURE__ */ X(this);
3090
+ return /* @__PURE__ */ J(this);
3090
3091
  },
3091
3092
  "~run"(n, r) {
3092
3093
  return n.value === this.literal ? n.typed = !0 : N(this, "type", n, r), n;
@@ -3103,7 +3104,7 @@ function P(t) {
3103
3104
  async: !1,
3104
3105
  message: t,
3105
3106
  get "~standard"() {
3106
- return /* @__PURE__ */ X(this);
3107
+ return /* @__PURE__ */ J(this);
3107
3108
  },
3108
3109
  "~run"(e, n) {
3109
3110
  return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : N(this, "type", e, n), e;
@@ -3121,7 +3122,7 @@ function H(t, e) {
3121
3122
  entries: t,
3122
3123
  message: e,
3123
3124
  get "~standard"() {
3124
- return /* @__PURE__ */ X(this);
3125
+ return /* @__PURE__ */ J(this);
3125
3126
  },
3126
3127
  "~run"(n, r) {
3127
3128
  const i = n.value;
@@ -3177,7 +3178,7 @@ function T(t, e) {
3177
3178
  wrapped: t,
3178
3179
  default: e,
3179
3180
  get "~standard"() {
3180
- return /* @__PURE__ */ X(this);
3181
+ return /* @__PURE__ */ J(this);
3181
3182
  },
3182
3183
  "~run"(n, r) {
3183
3184
  return n.value === void 0 && (this.default !== void 0 && (n.value = /* @__PURE__ */ si(this, n, r)), n.value === void 0) ? (n.typed = !0, n) : this.wrapped["~run"](n, r);
@@ -3194,7 +3195,7 @@ function ge(t) {
3194
3195
  async: !1,
3195
3196
  message: t,
3196
3197
  get "~standard"() {
3197
- return /* @__PURE__ */ X(this);
3198
+ return /* @__PURE__ */ J(this);
3198
3199
  },
3199
3200
  "~run"(e, n) {
3200
3201
  return typeof e.value == "string" ? e.typed = !0 : N(this, "type", e, n), e;
@@ -3212,7 +3213,7 @@ function L(t, e) {
3212
3213
  items: t,
3213
3214
  message: e,
3214
3215
  get "~standard"() {
3215
- return /* @__PURE__ */ X(this);
3216
+ return /* @__PURE__ */ J(this);
3216
3217
  },
3217
3218
  "~run"(n, r) {
3218
3219
  const i = n.value;
@@ -3259,7 +3260,7 @@ function wn(t, e) {
3259
3260
  options: t,
3260
3261
  message: e,
3261
3262
  get "~standard"() {
3262
- return /* @__PURE__ */ X(this);
3263
+ return /* @__PURE__ */ J(this);
3263
3264
  },
3264
3265
  "~run"(n, r) {
3265
3266
  let i, s, a;
@@ -3294,7 +3295,7 @@ function Oe(t) {
3294
3295
  async: !1,
3295
3296
  message: t,
3296
3297
  get "~standard"() {
3297
- return /* @__PURE__ */ X(this);
3298
+ return /* @__PURE__ */ J(this);
3298
3299
  },
3299
3300
  "~run"(e, n) {
3300
3301
  return e.value === void 0 ? e.typed = !0 : N(this, "type", e, n), e;
@@ -3312,7 +3313,7 @@ function w(...t) {
3312
3313
  ...t[0],
3313
3314
  pipe: t,
3314
3315
  get "~standard"() {
3315
- return /* @__PURE__ */ X(this);
3316
+ return /* @__PURE__ */ J(this);
3316
3317
  },
3317
3318
  "~run"(e, n) {
3318
3319
  for (const r of t) if (r.kind !== "metadata") {
@@ -3326,8 +3327,8 @@ function w(...t) {
3326
3327
  }
3327
3328
  };
3328
3329
  }
3329
- var ui = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-90), /* @__PURE__ */ ht(90)), ci = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-180), /* @__PURE__ */ ht(180)), Ct = /* @__PURE__ */ H({ lat: ui, lng: ci }), fi = /* @__PURE__ */ H({ sw: Ct, ne: Ct }), za = /* @__PURE__ */ H({ bounds: fi, center: Ct, zoom: /* @__PURE__ */ P() }), Ye = /* @__PURE__ */ li((t) => t instanceof HTMLElement, "Must be an HTMLElement"), Oa = /* @__PURE__ */ H({ mapSize: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(1)), zoomMin: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), zoomMax: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), zoomScale: /* @__PURE__ */ wn([/* @__PURE__ */ ze(1), /* @__PURE__ */ ze(2), /* @__PURE__ */ ze(10)]) }), La = /* @__PURE__ */ H({ inserted: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ oi())), insert: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), remove: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), update: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ P()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), or = /* @__PURE__ */ wn([/* @__PURE__ */ ze("idle"), /* @__PURE__ */ ze("move"), /* @__PURE__ */ ze("click")]), Fa = /* @__PURE__ */ H({ getParameters: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Oa)), getContainer: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Ye)), getZoom: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ P())), getBounds: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(fi)), getCenter: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Ct)), getViewport: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(za)), panBy: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ P(), /* @__PURE__ */ P()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), createMarker: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([Ye, ui, ci, /* @__PURE__ */ P()])), /* @__PURE__ */ V(La)), subscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([or, /* @__PURE__ */ I()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), unsubscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([or, /* @__PURE__ */ I()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), Jt = /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ ge(), Ye]))), Gt = /* @__PURE__ */ w(/* @__PURE__ */ H({ width: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), height: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), padding: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)) }), /* @__PURE__ */ ri((t) => Math.min(t.width, t.height) / t.padding >= 4, "Minimum of width or height must be greater than or equal to 4 * padding")), $a = /* @__PURE__ */ H({ background: /* @__PURE__ */ T(/* @__PURE__ */ ge()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0))), shadow: /* @__PURE__ */ T(/* @__PURE__ */ ge()) }), lr = /* @__PURE__ */ H({ background: /* @__PURE__ */ T(/* @__PURE__ */ ge()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0))), filter: /* @__PURE__ */ T(/* @__PURE__ */ ge()) }), Va = /* @__PURE__ */ H({ id: /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ gn(1)), rank: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), lat: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-90), /* @__PURE__ */ ht(90)), lng: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-180), /* @__PURE__ */ ht(180)), tooltip: /* @__PURE__ */ H({ element: Ye, style: /* @__PURE__ */ T(lr), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) }), pin: /* @__PURE__ */ T(/* @__PURE__ */ H({ element: /* @__PURE__ */ T(Ye), style: /* @__PURE__ */ T($a), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) })), popup: /* @__PURE__ */ T(/* @__PURE__ */ H({ element: Ye, style: /* @__PURE__ */ T(lr), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) })) }), ja = /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ ii(32)), Ua = /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ gn(1));
3330
- const Wa = "1.3.3";
3330
+ var ui = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-90), /* @__PURE__ */ ht(90)), ci = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-180), /* @__PURE__ */ ht(180)), Ct = /* @__PURE__ */ H({ lat: ui, lng: ci }), fi = /* @__PURE__ */ H({ sw: Ct, ne: Ct }), za = /* @__PURE__ */ H({ bounds: fi, center: Ct, zoom: /* @__PURE__ */ P() }), Ye = /* @__PURE__ */ li((t) => t instanceof HTMLElement, "Must be an HTMLElement"), Oa = /* @__PURE__ */ H({ mapSize: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(1)), zoomMin: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), zoomMax: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), zoomScale: /* @__PURE__ */ wn([/* @__PURE__ */ ze(1), /* @__PURE__ */ ze(2), /* @__PURE__ */ ze(10)]) }), La = /* @__PURE__ */ H({ inserted: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(/* @__PURE__ */ oi())), insert: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(/* @__PURE__ */ Oe())), remove: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(/* @__PURE__ */ Oe())), update: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ P()])), /* @__PURE__ */ $(/* @__PURE__ */ Oe())) }), or = /* @__PURE__ */ wn([/* @__PURE__ */ ze("idle"), /* @__PURE__ */ ze("move"), /* @__PURE__ */ ze("click")]), Fa = /* @__PURE__ */ H({ getParameters: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(Oa)), getContainer: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(Ye)), getZoom: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(/* @__PURE__ */ P())), getBounds: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(fi)), getCenter: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(Ct)), getViewport: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ $(za)), panBy: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ P(), /* @__PURE__ */ P()])), /* @__PURE__ */ $(/* @__PURE__ */ Oe())), createMarker: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([Ye, ui, ci, /* @__PURE__ */ P()])), /* @__PURE__ */ $(La)), subscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([or, /* @__PURE__ */ I()])), /* @__PURE__ */ $(/* @__PURE__ */ Oe())), unsubscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([or, /* @__PURE__ */ I()])), /* @__PURE__ */ $(/* @__PURE__ */ Oe())) }), Jt = /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ ge(), Ye]))), Gt = /* @__PURE__ */ w(/* @__PURE__ */ H({ width: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), height: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), padding: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)) }), /* @__PURE__ */ ri((t) => Math.min(t.width, t.height) / t.padding >= 4, "Minimum of width or height must be greater than or equal to 4 * padding")), $a = /* @__PURE__ */ H({ background: /* @__PURE__ */ T(/* @__PURE__ */ ge()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0))), shadow: /* @__PURE__ */ T(/* @__PURE__ */ ge()) }), lr = /* @__PURE__ */ H({ background: /* @__PURE__ */ T(/* @__PURE__ */ ge()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0))), filter: /* @__PURE__ */ T(/* @__PURE__ */ ge()) }), Va = /* @__PURE__ */ H({ id: /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ gn(1)), rank: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), lat: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-90), /* @__PURE__ */ ht(90)), lng: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-180), /* @__PURE__ */ ht(180)), tooltip: /* @__PURE__ */ H({ element: Ye, style: /* @__PURE__ */ T(lr), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) }), pin: /* @__PURE__ */ T(/* @__PURE__ */ H({ element: /* @__PURE__ */ T(Ye), style: /* @__PURE__ */ T($a), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) })), popup: /* @__PURE__ */ T(/* @__PURE__ */ H({ element: Ye, style: /* @__PURE__ */ T(lr), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) })) }), Ua = /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ ii(32)), ja = /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ gn(1));
3331
+ const Wa = "1.3.5";
3331
3332
  class Ba {
3332
3333
  apiKey;
3333
3334
  apiJwt;
@@ -3370,7 +3371,7 @@ class Ba {
3370
3371
  return i.jwt && (this.apiJwt = i.jwt), i.states;
3371
3372
  }
3372
3373
  }
3373
- const ur = "1.3.3", Ha = "https://maps.api.arenarium.dev/auth", qa = "https://maps.api.arenarium.dev/log", cr = 500;
3374
+ const ur = "1.3.5", Ha = "https://maps.api.arenarium.dev/auth", qa = "https://maps.api.arenarium.dev/log", cr = 500;
3374
3375
  class hi {
3375
3376
  apiKey;
3376
3377
  mapProvider;
@@ -3385,7 +3386,7 @@ class hi {
3385
3386
  markerStatesProcessDelay = cr;
3386
3387
  markerStatesProcessTimeout = void 0;
3387
3388
  constructor(e, n, r, i) {
3388
- xt(ja, e), xt(Ua, n), xt(Fa, r), this.apiKey = e, this.mapProvider = r, this.mapStateProvider = new Ti(
3389
+ xt(Ua, e), xt(ja, n), xt(Fa, r), this.apiKey = e, this.mapProvider = r, this.mapStateProvider = new Ti(
3389
3390
  this.mapProvider,
3390
3391
  this.detached.bind(this),
3391
3392
  this.error.bind(this),
@@ -3463,7 +3464,7 @@ class hi {
3463
3464
  try {
3464
3465
  if (this.detached()) return !0;
3465
3466
  const e = this.mapProvider.getParameters(), n = this.mapProvider.getViewport(), r = await this.markerVisibilityManager.getMarkersDelta(e, n);
3466
- return this.markerStatesManager.resetStates(r.remove), this.markerElementsManager.removeElements(r.remove), this.markerElementsManager.insertElements(r.insert, this.onMapMarkerClick.bind(this)), this.markerElementsProcessor.run(), this.mapStateProvider.idle() && this.onMapIdle(), !1;
3467
+ return this.markerStatesManager.resetStates(r.remove), this.markerElementsManager.removeElements(r.remove), this.markerElementsManager.insertElements(r.insert, this.onMapMarkerClick.bind(this)), this.markerElementsProcessor.run(), this.mapStateProvider.idle() && this.markerStateProcessor.run(), !1;
3467
3468
  } catch (e) {
3468
3469
  return this.clear(), this.error("Process markers visibility error", e), !0;
3469
3470
  }
@@ -3511,9 +3512,7 @@ class hi {
3511
3512
  return { width: $n, height: $n, padding: Vn };
3512
3513
  }, u = (o, l) => {
3513
3514
  if (l) return l;
3514
- const c = s(o), f = c.width, h = c.height;
3515
- console.log(f, h);
3516
- const m = Math.min(Math.round(Math.min(f, h) / 4), Vi);
3515
+ const c = s(o), f = c.width, h = c.height, m = Math.min(Math.round(Math.min(f, h) / 4), Vi);
3517
3516
  return { width: f, height: h, padding: m };
3518
3517
  };
3519
3518
  for (const o of r) {
@@ -3524,7 +3523,7 @@ class hi {
3524
3523
  element: o.pin?.element,
3525
3524
  style: o.pin?.style,
3526
3525
  dimensions: a(o.pin?.element, o.pin?.dimensions)
3527
- }, p = {
3526
+ }, d = {
3528
3527
  id: l,
3529
3528
  initialize: o.tooltip.initialize,
3530
3529
  element: o.tooltip.element,
@@ -3538,7 +3537,7 @@ class hi {
3538
3537
  style: o.popup.style,
3539
3538
  dimensions: u(o.popup.element, o.popup.dimensions)
3540
3539
  });
3541
- const b = new xi(l, c, f, h, m, p, v);
3540
+ const b = new xi(l, c, f, h, m, d, v);
3542
3541
  n.push(b);
3543
3542
  }
3544
3543
  return n.forEach((o) => this.markers.set(o.properites.id, o)), n.sort((o, l) => l.properites.rank - o.properites.rank), n;
@@ -3547,7 +3546,7 @@ class hi {
3547
3546
  xt(/* @__PURE__ */ ai(Va), e);
3548
3547
  try {
3549
3548
  const n = this.mapProvider.getParameters(), r = this.getMarkers(e);
3550
- await this.markerVisibilityManager.updateMarkers(n, r), this.mapStateProvider.start(), this.markerVisibilityProcessor.run(), this.markerStateProcessor.run(), this.markerElementsProcessor.run();
3549
+ await this.markerVisibilityManager.updateMarkers(n, r), this.mapStateProvider.start(), this.markerVisibilityProcessor.run();
3551
3550
  } catch (n) {
3552
3551
  throw this.clear(), this.error("Failed to update markers", n), n;
3553
3552
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arenarium/maps",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "license": "MIT",
5
5
  "author": "arenarium",
6
6
  "description": "Visualize complex map markers clearly. A JavaScript library for effective display of map markers, compatible with MapLibre, Mapbox, and Google Maps.",