@arenarium/maps 1.0.209 → 1.0.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +117 -114
- package/package.json +4 -4
package/dist/main.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ss = Object.defineProperty;
|
|
2
2
|
var Qr = (r) => {
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
|
-
var Ts = (r, e, t) => e in r ?
|
|
5
|
+
var Ts = (r, e, t) => e in r ? Ss(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
6
|
var f = (r, e, t) => Ts(r, typeof e != "symbol" ? e + "" : e, t), nr = (r, e, t) => e.has(r) || Qr("Cannot " + t);
|
|
7
7
|
var k = (r, e, t) => (nr(r, e, "read from private field"), t ? t.call(r) : e.get(r)), D = (r, e, t) => e.has(r) ? Qr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Z = (r, e, t, n) => (nr(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), Ae = (r, e, t) => (nr(r, e, "access private method"), t);
|
|
8
8
|
var Mn = Array.isArray, Ms = Array.prototype.indexOf, As = Array.from, lr = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, Os = Object.prototype, Ns = Array.prototype, Rs = Object.getPrototypeOf, en = Object.isExtensible;
|
|
@@ -88,7 +88,7 @@ const Ys = /* @__PURE__ */ new WeakMap();
|
|
|
88
88
|
function Xs(r) {
|
|
89
89
|
var e = M;
|
|
90
90
|
if (e === null)
|
|
91
|
-
return
|
|
91
|
+
return C.f |= Ie, r;
|
|
92
92
|
if ((e.f & Pr) === 0) {
|
|
93
93
|
if ((e.f & On) === 0)
|
|
94
94
|
throw !e.parent && r instanceof Error && In(r), r;
|
|
@@ -135,9 +135,9 @@ function Ks() {
|
|
|
135
135
|
}
|
|
136
136
|
// @__NO_SIDE_EFFECTS__
|
|
137
137
|
function Qs(r) {
|
|
138
|
-
var e = X | ue, t =
|
|
138
|
+
var e = X | ue, t = C !== null && (C.f & X) !== 0 ? (
|
|
139
139
|
/** @type {Derived} */
|
|
140
|
-
|
|
140
|
+
C
|
|
141
141
|
) : null;
|
|
142
142
|
return M === null || t !== null && (t.f & K) !== 0 ? e |= K : M.f |= Ot, {
|
|
143
143
|
ctx: se,
|
|
@@ -174,7 +174,7 @@ function ea(r, e) {
|
|
|
174
174
|
), a = Fn(
|
|
175
175
|
/** @type {V} */
|
|
176
176
|
j
|
|
177
|
-
), i = null, o = !
|
|
177
|
+
), i = null, o = !C;
|
|
178
178
|
return ha(() => {
|
|
179
179
|
try {
|
|
180
180
|
var l = r();
|
|
@@ -269,7 +269,7 @@ function ra(r, e, t) {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
function na() {
|
|
272
|
-
var r = M, e =
|
|
272
|
+
var r = M, e = C, t = se, n = V;
|
|
273
273
|
return function() {
|
|
274
274
|
Ee(r), de(e), Vt(t), n == null || n.activate();
|
|
275
275
|
};
|
|
@@ -287,7 +287,7 @@ function Zn() {
|
|
|
287
287
|
Bt.length > 0 && queueMicrotask(Zn), r();
|
|
288
288
|
}
|
|
289
289
|
let mt = [], Vr = null, dr = !1;
|
|
290
|
-
var bt, Ge, ge, Et,
|
|
290
|
+
var bt, Ge, ge, Et, Ct, Oe, Je, Ne, ye, Ke, St, Tt, ne, jn, Zt, cr;
|
|
291
291
|
const Gt = class Gt {
|
|
292
292
|
constructor() {
|
|
293
293
|
D(this, ne);
|
|
@@ -323,7 +323,7 @@ const Gt = class Gt {
|
|
|
323
323
|
* True if an async effect inside this batch resolved and
|
|
324
324
|
* its parent branch was already deleted
|
|
325
325
|
*/
|
|
326
|
-
D(this,
|
|
326
|
+
D(this, Ct, !1);
|
|
327
327
|
/**
|
|
328
328
|
* Async effects (created inside `async_derived`) encountered during processing.
|
|
329
329
|
* These run after the rest of the batch has updated, since they should
|
|
@@ -358,7 +358,7 @@ const Gt = class Gt {
|
|
|
358
358
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
359
359
|
* @type {Effect[]}
|
|
360
360
|
*/
|
|
361
|
-
D(this,
|
|
361
|
+
D(this, St, []);
|
|
362
362
|
/**
|
|
363
363
|
* Deferred effects that are MAYBE_DIRTY
|
|
364
364
|
* @type {Effect[]}
|
|
@@ -411,7 +411,7 @@ const Gt = class Gt {
|
|
|
411
411
|
break;
|
|
412
412
|
}
|
|
413
413
|
neuter() {
|
|
414
|
-
Z(this,
|
|
414
|
+
Z(this, Ct, !0);
|
|
415
415
|
}
|
|
416
416
|
flush() {
|
|
417
417
|
mt.length > 0 ? sa() : Ae(this, ne, cr).call(this), V === this && (k(this, ge) === 0 && sr.delete(this), this.deactivate());
|
|
@@ -421,7 +421,7 @@ const Gt = class Gt {
|
|
|
421
421
|
}
|
|
422
422
|
decrement() {
|
|
423
423
|
if (Z(this, ge, k(this, ge) - 1), k(this, ge) === 0) {
|
|
424
|
-
for (const e of k(this,
|
|
424
|
+
for (const e of k(this, St))
|
|
425
425
|
Q(e, ue), _t(e);
|
|
426
426
|
for (const e of k(this, Tt))
|
|
427
427
|
Q(e, Me), _t(e);
|
|
@@ -450,7 +450,7 @@ const Gt = class Gt {
|
|
|
450
450
|
Bt.length === 0 && queueMicrotask(Zn), Bt.unshift(e);
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
|
-
bt = new WeakMap(), Ge = new WeakMap(), ge = new WeakMap(), Et = new WeakMap(),
|
|
453
|
+
bt = new WeakMap(), Ge = new WeakMap(), ge = new WeakMap(), Et = new WeakMap(), Ct = new WeakMap(), Oe = new WeakMap(), Je = new WeakMap(), Ne = new WeakMap(), ye = new WeakMap(), Ke = new WeakMap(), St = new WeakMap(), Tt = new WeakMap(), ne = new WeakSet(), /**
|
|
454
454
|
* Traverse the effect tree, executing effects or stashing
|
|
455
455
|
* them for later execution as appropriate
|
|
456
456
|
* @param {Effect} root
|
|
@@ -485,13 +485,13 @@ jn = function(e) {
|
|
|
485
485
|
*/
|
|
486
486
|
Zt = function(e) {
|
|
487
487
|
for (const t of e)
|
|
488
|
-
((t.f & ue) !== 0 ? k(this,
|
|
488
|
+
((t.f & ue) !== 0 ? k(this, St) : k(this, Tt)).push(t), Q(t, W);
|
|
489
489
|
e.length = 0;
|
|
490
490
|
}, /**
|
|
491
491
|
* Append and remove branches to/from the DOM
|
|
492
492
|
*/
|
|
493
493
|
cr = function() {
|
|
494
|
-
if (!k(this,
|
|
494
|
+
if (!k(this, Ct))
|
|
495
495
|
for (const e of k(this, Ge))
|
|
496
496
|
e();
|
|
497
497
|
k(this, Ge).clear();
|
|
@@ -569,9 +569,9 @@ function U(r, e) {
|
|
|
569
569
|
return ya(t), t;
|
|
570
570
|
}
|
|
571
571
|
function F(r, e, t = !1) {
|
|
572
|
-
|
|
572
|
+
C !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
573
573
|
// to ensure we error if state is set inside an inspect effect
|
|
574
|
-
(!ie || (
|
|
574
|
+
(!ie || (C.f & tn) !== 0) && Rn() && (C.f & (X | At | Lr | tn)) !== 0 && !($ != null && $.includes(r)) && Ws();
|
|
575
575
|
let n = t ? dt(e) : e;
|
|
576
576
|
return fr(r, n);
|
|
577
577
|
}
|
|
@@ -617,7 +617,7 @@ function dt(r) {
|
|
|
617
617
|
var t = /* @__PURE__ */ new Map(), n = Mn(r), s = /* @__PURE__ */ U(0), a = Pe, i = (o) => {
|
|
618
618
|
if (Pe === a)
|
|
619
619
|
return o();
|
|
620
|
-
var l =
|
|
620
|
+
var l = C, u = Pe;
|
|
621
621
|
de(null), ln(a);
|
|
622
622
|
var d = o();
|
|
623
623
|
return de(l), ln(u), d;
|
|
@@ -770,7 +770,7 @@ function la(r, e = 1, t = !1) {
|
|
|
770
770
|
return n;
|
|
771
771
|
}
|
|
772
772
|
function Wn(r) {
|
|
773
|
-
var e =
|
|
773
|
+
var e = C, t = M;
|
|
774
774
|
de(null), Ee(null);
|
|
775
775
|
try {
|
|
776
776
|
return r();
|
|
@@ -779,7 +779,7 @@ function Wn(r) {
|
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
function ua(r) {
|
|
782
|
-
M === null &&
|
|
782
|
+
M === null && C === null && Us(), C !== null && (C.f & K) !== 0 && M === null && Vs(), ot && zs();
|
|
783
783
|
}
|
|
784
784
|
function da(r, e) {
|
|
785
785
|
var t = e.last;
|
|
@@ -816,10 +816,10 @@ function je(r, e, t, n = !0) {
|
|
|
816
816
|
if (n) {
|
|
817
817
|
var i = a;
|
|
818
818
|
if (t && i.deps === null && i.teardown === null && i.nodes_start === null && i.first === i.last && // either `null`, or a singular child
|
|
819
|
-
(i.f & Ot) === 0 && (i = i.first), i !== null && (i.parent = s, s !== null && da(i, s),
|
|
819
|
+
(i.f & Ot) === 0 && (i = i.first), i !== null && (i.parent = s, s !== null && da(i, s), C !== null && (C.f & X) !== 0 && (r & Ze) === 0)) {
|
|
820
820
|
var o = (
|
|
821
821
|
/** @type {Derived} */
|
|
822
|
-
|
|
822
|
+
C
|
|
823
823
|
);
|
|
824
824
|
(o.effects ?? (o.effects = [])).push(i);
|
|
825
825
|
}
|
|
@@ -831,7 +831,7 @@ function ae(r) {
|
|
|
831
831
|
var e = (
|
|
832
832
|
/** @type {Effect} */
|
|
833
833
|
M.f
|
|
834
|
-
), t = !
|
|
834
|
+
), t = !C && (e & Te) !== 0 && (e & Pr) === 0;
|
|
835
835
|
if (t) {
|
|
836
836
|
var n = (
|
|
837
837
|
/** @type {ComponentContext} */
|
|
@@ -873,7 +873,7 @@ function pa(r, e = !0) {
|
|
|
873
873
|
function Gn(r) {
|
|
874
874
|
var e = r.teardown;
|
|
875
875
|
if (e !== null) {
|
|
876
|
-
const t = ot, n =
|
|
876
|
+
const t = ot, n = C;
|
|
877
877
|
on(!0), de(null);
|
|
878
878
|
try {
|
|
879
879
|
e.call(null);
|
|
@@ -961,9 +961,9 @@ let ot = !1;
|
|
|
961
961
|
function on(r) {
|
|
962
962
|
ot = r;
|
|
963
963
|
}
|
|
964
|
-
let
|
|
964
|
+
let C = null, ie = !1;
|
|
965
965
|
function de(r) {
|
|
966
|
-
|
|
966
|
+
C = r;
|
|
967
967
|
}
|
|
968
968
|
let M = null;
|
|
969
969
|
function Ee(r) {
|
|
@@ -971,7 +971,7 @@ function Ee(r) {
|
|
|
971
971
|
}
|
|
972
972
|
let $ = null;
|
|
973
973
|
function ya(r) {
|
|
974
|
-
|
|
974
|
+
C !== null && ($ === null ? $ = [r] : $.push(r));
|
|
975
975
|
}
|
|
976
976
|
let B = null, Y = 0, J = null;
|
|
977
977
|
function wa(r) {
|
|
@@ -1035,9 +1035,9 @@ function rs(r, e, t = !0) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
function ns(r) {
|
|
1037
1037
|
var P;
|
|
1038
|
-
var e = B, t = Y, n = J, s =
|
|
1038
|
+
var e = B, t = Y, n = J, s = C, a = we, i = $, o = se, l = ie, u = Pe, d = r.f;
|
|
1039
1039
|
B = /** @type {null | Value[]} */
|
|
1040
|
-
null, Y = 0, J = null, we = (d & K) !== 0 && (ie || !He ||
|
|
1040
|
+
null, Y = 0, J = null, we = (d & K) !== 0 && (ie || !He || C === null), C = (d & (Te | Ze)) === 0 ? r : null, $ = null, Vt(r.ctx), ie = !1, Pe = ++gt, r.ac !== null && (Wn(() => {
|
|
1041
1041
|
r.ac.abort(Dr);
|
|
1042
1042
|
}), r.ac = null);
|
|
1043
1043
|
try {
|
|
@@ -1072,7 +1072,7 @@ function ns(r) {
|
|
|
1072
1072
|
} catch (z) {
|
|
1073
1073
|
return Xs(z);
|
|
1074
1074
|
} finally {
|
|
1075
|
-
r.f ^= ur, B = e, Y = t, J = n,
|
|
1075
|
+
r.f ^= ur, B = e, Y = t, J = n, C = s, we = a, $ = i, Vt(o), ie = l, Pe = u;
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
1078
|
function xa(r, e) {
|
|
@@ -1120,16 +1120,16 @@ function Ye(r) {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
function R(r) {
|
|
1122
1122
|
var e = r.f, t = (e & X) !== 0;
|
|
1123
|
-
if (
|
|
1123
|
+
if (C !== null && !ie) {
|
|
1124
1124
|
var n = M !== null && (M.f & it) !== 0;
|
|
1125
1125
|
if (!n && !($ != null && $.includes(r))) {
|
|
1126
|
-
var s =
|
|
1127
|
-
if ((
|
|
1126
|
+
var s = C.deps;
|
|
1127
|
+
if ((C.f & ur) !== 0)
|
|
1128
1128
|
r.rv < gt && (r.rv = gt, B === null && s !== null && s[Y] === r ? Y++ : B === null ? B = [r] : (!we || !B.includes(r)) && B.push(r));
|
|
1129
1129
|
else {
|
|
1130
|
-
(
|
|
1130
|
+
(C.deps ?? (C.deps = [])).push(r);
|
|
1131
1131
|
var a = r.reactions;
|
|
1132
|
-
a === null ? r.reactions = [
|
|
1132
|
+
a === null ? r.reactions = [C] : a.includes(C) || a.push(C);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
} else if (t && /** @type {Derived} */
|
|
@@ -1180,10 +1180,10 @@ function Q(r, e) {
|
|
|
1180
1180
|
r.f = r.f & ba | e;
|
|
1181
1181
|
}
|
|
1182
1182
|
const Ea = ["touchstart", "touchmove"];
|
|
1183
|
-
function
|
|
1183
|
+
function Ca(r) {
|
|
1184
1184
|
return Ea.includes(r);
|
|
1185
1185
|
}
|
|
1186
|
-
const
|
|
1186
|
+
const Sa = /* @__PURE__ */ new Set(), un = /* @__PURE__ */ new Set();
|
|
1187
1187
|
let dn = null;
|
|
1188
1188
|
function Lt(r) {
|
|
1189
1189
|
var A;
|
|
@@ -1216,7 +1216,7 @@ function Lt(r) {
|
|
|
1216
1216
|
return a || t;
|
|
1217
1217
|
}
|
|
1218
1218
|
});
|
|
1219
|
-
var d =
|
|
1219
|
+
var d = C, p = M;
|
|
1220
1220
|
de(null), Ee(null);
|
|
1221
1221
|
try {
|
|
1222
1222
|
for (var g, m = []; a !== null; ) {
|
|
@@ -1293,14 +1293,14 @@ function Aa(r, { target: e, anchor: t, props: n = {}, events: s, context: a, int
|
|
|
1293
1293
|
var m = p[g];
|
|
1294
1294
|
if (!o.has(m)) {
|
|
1295
1295
|
o.add(m);
|
|
1296
|
-
var y =
|
|
1296
|
+
var y = Ca(m);
|
|
1297
1297
|
e.addEventListener(m, Lt, { passive: y });
|
|
1298
1298
|
var P = Ve.get(m);
|
|
1299
1299
|
P === void 0 ? (document.addEventListener(m, Lt, { passive: y }), Ve.set(m, 1)) : Ve.set(m, P + 1);
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
};
|
|
1303
|
-
l(As(
|
|
1303
|
+
l(As(Sa)), un.add(l);
|
|
1304
1304
|
var u = void 0, d = ca(() => {
|
|
1305
1305
|
var p = t ?? e.appendChild(oa());
|
|
1306
1306
|
return pa(() => {
|
|
@@ -1657,8 +1657,8 @@ function Wa(r, e) {
|
|
|
1657
1657
|
function p(N) {
|
|
1658
1658
|
N != R(l) && (F(l, N, !0), u = performance.now());
|
|
1659
1659
|
}
|
|
1660
|
-
function g(
|
|
1661
|
-
return
|
|
1660
|
+
function g() {
|
|
1661
|
+
return performance.now() - u < d ? y.motion.current == 0 : y.value == 0;
|
|
1662
1662
|
}
|
|
1663
1663
|
let m = 0, y = new jt(0, { easing: pr });
|
|
1664
1664
|
ae(() => {
|
|
@@ -1779,9 +1779,9 @@ function cs(r, e) {
|
|
|
1779
1779
|
});
|
|
1780
1780
|
function Yr(O, It) {
|
|
1781
1781
|
if (!t || !n || !s) return;
|
|
1782
|
-
const ce = O + i / 2, Pt = It + o / 2, Fe = o < i ? ce * o / i : ce, ze = o > i ? Pt * i / o : Pt, xs = Math.atan2(ze, Fe) / Math.PI * 180 - 45, Jr = 0, ks = 30, rr = Math.sqrt(Fe * Fe + ze * ze), ut = Math.min(i, o) / 2, bs = ut * Math.SQRT2, Es = (rr - ut) / (bs - ut), Kr = Jr + Es * (ks - Jr),
|
|
1782
|
+
const ce = O + i / 2, Pt = It + o / 2, Fe = o < i ? ce * o / i : ce, ze = o > i ? Pt * i / o : Pt, xs = Math.atan2(ze, Fe) / Math.PI * 180 - 45, Jr = 0, ks = 30, rr = Math.sqrt(Fe * Fe + ze * ze), ut = Math.min(i, o) / 2, bs = ut * Math.SQRT2, Es = (rr - ut) / (bs - ut), Kr = Jr + Es * (ks - Jr), Cs = rr < ut ? rr / ut : 1;
|
|
1783
1783
|
_e.equeue(e.layer, e.priority, e.id + "_angle", () => {
|
|
1784
|
-
n.style.transform = `translate(${Math.round(O)}px, ${Math.round(It)}px)`, s.style.transform = `scale(${
|
|
1784
|
+
n.style.transform = `translate(${Math.round(O)}px, ${Math.round(It)}px)`, s.style.transform = `scale(${Cs}) rotate(${xs}deg) skew(${Kr}deg, ${Kr}deg)`;
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
1787
|
function ys(O, It) {
|
|
@@ -2184,7 +2184,7 @@ var _;
|
|
|
2184
2184
|
(function(r) {
|
|
2185
2185
|
r.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, r.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
2186
2186
|
})(_ || (_ = {}));
|
|
2187
|
-
class
|
|
2187
|
+
class Ce {
|
|
2188
2188
|
constructor(e, t, n, s) {
|
|
2189
2189
|
this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = s;
|
|
2190
2190
|
}
|
|
@@ -2218,7 +2218,7 @@ function E(r) {
|
|
|
2218
2218
|
return i.code === "invalid_enum_value" ? { message: l ?? o.defaultError } : typeof o.data > "u" ? { message: l ?? n ?? o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: l ?? t ?? o.defaultError };
|
|
2219
2219
|
}, description: s };
|
|
2220
2220
|
}
|
|
2221
|
-
class
|
|
2221
|
+
class S {
|
|
2222
2222
|
get description() {
|
|
2223
2223
|
return this._def.description;
|
|
2224
2224
|
}
|
|
@@ -2428,7 +2428,7 @@ class C {
|
|
|
2428
2428
|
return Br.create(this, e);
|
|
2429
2429
|
}
|
|
2430
2430
|
readonly() {
|
|
2431
|
-
return
|
|
2431
|
+
return Cr.create(this);
|
|
2432
2432
|
}
|
|
2433
2433
|
isOptional() {
|
|
2434
2434
|
return this.safeParse(void 0).success;
|
|
@@ -2473,7 +2473,7 @@ function pi(r, e) {
|
|
|
2473
2473
|
function mi(r, e) {
|
|
2474
2474
|
return !!((e === "v4" || !e) && ai.test(r) || (e === "v6" || !e) && oi.test(r));
|
|
2475
2475
|
}
|
|
2476
|
-
class xe extends
|
|
2476
|
+
class xe extends S {
|
|
2477
2477
|
_parse(e) {
|
|
2478
2478
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== v.string) {
|
|
2479
2479
|
const a = this._getOrReturnCtx(e);
|
|
@@ -2860,7 +2860,7 @@ function vi(r, e) {
|
|
|
2860
2860
|
const t = (r.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = t > n ? t : n, a = Number.parseInt(r.toFixed(s).replace(".", "")), i = Number.parseInt(e.toFixed(s).replace(".", ""));
|
|
2861
2861
|
return a % i / 10 ** s;
|
|
2862
2862
|
}
|
|
2863
|
-
class rt extends
|
|
2863
|
+
class rt extends S {
|
|
2864
2864
|
constructor() {
|
|
2865
2865
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
2866
2866
|
}
|
|
@@ -3032,7 +3032,7 @@ rt.create = (r) => new rt({
|
|
|
3032
3032
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
3033
3033
|
...E(r)
|
|
3034
3034
|
});
|
|
3035
|
-
class wt extends
|
|
3035
|
+
class wt extends S {
|
|
3036
3036
|
constructor() {
|
|
3037
3037
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
3038
3038
|
}
|
|
@@ -3165,7 +3165,7 @@ wt.create = (r) => new wt({
|
|
|
3165
3165
|
coerce: (r == null ? void 0 : r.coerce) ?? !1,
|
|
3166
3166
|
...E(r)
|
|
3167
3167
|
});
|
|
3168
|
-
class yr extends
|
|
3168
|
+
class yr extends S {
|
|
3169
3169
|
_parse(e) {
|
|
3170
3170
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== v.boolean) {
|
|
3171
3171
|
const n = this._getOrReturnCtx(e);
|
|
@@ -3183,7 +3183,7 @@ yr.create = (r) => new yr({
|
|
|
3183
3183
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
3184
3184
|
...E(r)
|
|
3185
3185
|
});
|
|
3186
|
-
class Ht extends
|
|
3186
|
+
class Ht extends S {
|
|
3187
3187
|
_parse(e) {
|
|
3188
3188
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== v.date) {
|
|
3189
3189
|
const a = this._getOrReturnCtx(e);
|
|
@@ -3261,7 +3261,7 @@ Ht.create = (r) => new Ht({
|
|
|
3261
3261
|
typeName: x.ZodDate,
|
|
3262
3262
|
...E(r)
|
|
3263
3263
|
});
|
|
3264
|
-
class _n extends
|
|
3264
|
+
class _n extends S {
|
|
3265
3265
|
_parse(e) {
|
|
3266
3266
|
if (this._getType(e) !== v.symbol) {
|
|
3267
3267
|
const n = this._getOrReturnCtx(e);
|
|
@@ -3278,7 +3278,7 @@ _n.create = (r) => new _n({
|
|
|
3278
3278
|
typeName: x.ZodSymbol,
|
|
3279
3279
|
...E(r)
|
|
3280
3280
|
});
|
|
3281
|
-
class gn extends
|
|
3281
|
+
class gn extends S {
|
|
3282
3282
|
_parse(e) {
|
|
3283
3283
|
if (this._getType(e) !== v.undefined) {
|
|
3284
3284
|
const n = this._getOrReturnCtx(e);
|
|
@@ -3295,7 +3295,7 @@ gn.create = (r) => new gn({
|
|
|
3295
3295
|
typeName: x.ZodUndefined,
|
|
3296
3296
|
...E(r)
|
|
3297
3297
|
});
|
|
3298
|
-
class yn extends
|
|
3298
|
+
class yn extends S {
|
|
3299
3299
|
_parse(e) {
|
|
3300
3300
|
if (this._getType(e) !== v.null) {
|
|
3301
3301
|
const n = this._getOrReturnCtx(e);
|
|
@@ -3312,7 +3312,7 @@ yn.create = (r) => new yn({
|
|
|
3312
3312
|
typeName: x.ZodNull,
|
|
3313
3313
|
...E(r)
|
|
3314
3314
|
});
|
|
3315
|
-
class wr extends
|
|
3315
|
+
class wr extends S {
|
|
3316
3316
|
constructor() {
|
|
3317
3317
|
super(...arguments), this._any = !0;
|
|
3318
3318
|
}
|
|
@@ -3324,7 +3324,7 @@ wr.create = (r) => new wr({
|
|
|
3324
3324
|
typeName: x.ZodAny,
|
|
3325
3325
|
...E(r)
|
|
3326
3326
|
});
|
|
3327
|
-
class Xe extends
|
|
3327
|
+
class Xe extends S {
|
|
3328
3328
|
constructor() {
|
|
3329
3329
|
super(...arguments), this._unknown = !0;
|
|
3330
3330
|
}
|
|
@@ -3336,7 +3336,7 @@ Xe.create = (r) => new Xe({
|
|
|
3336
3336
|
typeName: x.ZodUnknown,
|
|
3337
3337
|
...E(r)
|
|
3338
3338
|
});
|
|
3339
|
-
class
|
|
3339
|
+
class Se extends S {
|
|
3340
3340
|
_parse(e) {
|
|
3341
3341
|
const t = this._getOrReturnCtx(e);
|
|
3342
3342
|
return h(t, {
|
|
@@ -3346,11 +3346,11 @@ class Ce extends C {
|
|
|
3346
3346
|
}), w;
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
|
-
|
|
3349
|
+
Se.create = (r) => new Se({
|
|
3350
3350
|
typeName: x.ZodNever,
|
|
3351
3351
|
...E(r)
|
|
3352
3352
|
});
|
|
3353
|
-
class xr extends
|
|
3353
|
+
class xr extends S {
|
|
3354
3354
|
_parse(e) {
|
|
3355
3355
|
if (this._getType(e) !== v.undefined) {
|
|
3356
3356
|
const n = this._getOrReturnCtx(e);
|
|
@@ -3367,7 +3367,7 @@ xr.create = (r) => new xr({
|
|
|
3367
3367
|
typeName: x.ZodVoid,
|
|
3368
3368
|
...E(r)
|
|
3369
3369
|
});
|
|
3370
|
-
class le extends
|
|
3370
|
+
class le extends S {
|
|
3371
3371
|
_parse(e) {
|
|
3372
3372
|
const { ctx: t, status: n } = this._processInputParams(e), s = this._def;
|
|
3373
3373
|
if (t.parsedType !== v.array)
|
|
@@ -3403,8 +3403,8 @@ class le extends C {
|
|
|
3403
3403
|
exact: !1,
|
|
3404
3404
|
message: s.maxLength.message
|
|
3405
3405
|
}), n.dirty()), t.common.async)
|
|
3406
|
-
return Promise.all([...t.data].map((i, o) => s.type._parseAsync(new
|
|
3407
|
-
const a = [...t.data].map((i, o) => s.type._parseSync(new
|
|
3406
|
+
return Promise.all([...t.data].map((i, o) => s.type._parseAsync(new Ce(t, i, t.path, o)))).then((i) => G.mergeArray(n, i));
|
|
3407
|
+
const a = [...t.data].map((i, o) => s.type._parseSync(new Ce(t, i, t.path, o)));
|
|
3408
3408
|
return G.mergeArray(n, a);
|
|
3409
3409
|
}
|
|
3410
3410
|
get element() {
|
|
@@ -3456,7 +3456,7 @@ function Ue(r) {
|
|
|
3456
3456
|
type: Ue(r.element)
|
|
3457
3457
|
}) : r instanceof be ? be.create(Ue(r.unwrap())) : r instanceof at ? at.create(Ue(r.unwrap())) : r instanceof pe ? pe.create(r.items.map((e) => Ue(e))) : r;
|
|
3458
3458
|
}
|
|
3459
|
-
class L extends
|
|
3459
|
+
class L extends S {
|
|
3460
3460
|
constructor() {
|
|
3461
3461
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
3462
3462
|
}
|
|
@@ -3476,7 +3476,7 @@ class L extends C {
|
|
|
3476
3476
|
}), w;
|
|
3477
3477
|
}
|
|
3478
3478
|
const { status: n, ctx: s } = this._processInputParams(e), { shape: a, keys: i } = this._getCached(), o = [];
|
|
3479
|
-
if (!(this._def.catchall instanceof
|
|
3479
|
+
if (!(this._def.catchall instanceof Se && this._def.unknownKeys === "strip"))
|
|
3480
3480
|
for (const u in s.data)
|
|
3481
3481
|
i.includes(u) || o.push(u);
|
|
3482
3482
|
const l = [];
|
|
@@ -3484,11 +3484,11 @@ class L extends C {
|
|
|
3484
3484
|
const d = a[u], p = s.data[u];
|
|
3485
3485
|
l.push({
|
|
3486
3486
|
key: { status: "valid", value: u },
|
|
3487
|
-
value: d._parse(new
|
|
3487
|
+
value: d._parse(new Ce(s, p, s.path, u)),
|
|
3488
3488
|
alwaysSet: u in s.data
|
|
3489
3489
|
});
|
|
3490
3490
|
}
|
|
3491
|
-
if (this._def.catchall instanceof
|
|
3491
|
+
if (this._def.catchall instanceof Se) {
|
|
3492
3492
|
const u = this._def.unknownKeys;
|
|
3493
3493
|
if (u === "passthrough")
|
|
3494
3494
|
for (const d of o)
|
|
@@ -3509,7 +3509,7 @@ class L extends C {
|
|
|
3509
3509
|
l.push({
|
|
3510
3510
|
key: { status: "valid", value: d },
|
|
3511
3511
|
value: u._parse(
|
|
3512
|
-
new
|
|
3512
|
+
new Ce(s, p, s.path, d)
|
|
3513
3513
|
//, ctx.child(key), value, getParsedType(value)
|
|
3514
3514
|
),
|
|
3515
3515
|
alwaysSet: d in s.data
|
|
@@ -3726,25 +3726,25 @@ class L extends C {
|
|
|
3726
3726
|
L.create = (r, e) => new L({
|
|
3727
3727
|
shape: () => r,
|
|
3728
3728
|
unknownKeys: "strip",
|
|
3729
|
-
catchall:
|
|
3729
|
+
catchall: Se.create(),
|
|
3730
3730
|
typeName: x.ZodObject,
|
|
3731
3731
|
...E(e)
|
|
3732
3732
|
});
|
|
3733
3733
|
L.strictCreate = (r, e) => new L({
|
|
3734
3734
|
shape: () => r,
|
|
3735
3735
|
unknownKeys: "strict",
|
|
3736
|
-
catchall:
|
|
3736
|
+
catchall: Se.create(),
|
|
3737
3737
|
typeName: x.ZodObject,
|
|
3738
3738
|
...E(e)
|
|
3739
3739
|
});
|
|
3740
3740
|
L.lazycreate = (r, e) => new L({
|
|
3741
3741
|
shape: r,
|
|
3742
3742
|
unknownKeys: "strip",
|
|
3743
|
-
catchall:
|
|
3743
|
+
catchall: Se.create(),
|
|
3744
3744
|
typeName: x.ZodObject,
|
|
3745
3745
|
...E(e)
|
|
3746
3746
|
});
|
|
3747
|
-
class Yt extends
|
|
3747
|
+
class Yt extends S {
|
|
3748
3748
|
_parse(e) {
|
|
3749
3749
|
const { ctx: t } = this._processInputParams(e), n = this._def.options;
|
|
3750
3750
|
function s(a) {
|
|
@@ -3843,7 +3843,7 @@ function kr(r, e) {
|
|
|
3843
3843
|
return { valid: !0, data: s };
|
|
3844
3844
|
} else return t === v.date && n === v.date && +r == +e ? { valid: !0, data: r } : { valid: !1 };
|
|
3845
3845
|
}
|
|
3846
|
-
class Xt extends
|
|
3846
|
+
class Xt extends S {
|
|
3847
3847
|
_parse(e) {
|
|
3848
3848
|
const { status: t, ctx: n } = this._processInputParams(e), s = (a, i) => {
|
|
3849
3849
|
if (pn(a) || pn(i))
|
|
@@ -3881,7 +3881,7 @@ Xt.create = (r, e, t) => new Xt({
|
|
|
3881
3881
|
typeName: x.ZodIntersection,
|
|
3882
3882
|
...E(t)
|
|
3883
3883
|
});
|
|
3884
|
-
class pe extends
|
|
3884
|
+
class pe extends S {
|
|
3885
3885
|
_parse(e) {
|
|
3886
3886
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
3887
3887
|
if (n.parsedType !== v.array)
|
|
@@ -3907,7 +3907,7 @@ class pe extends C {
|
|
|
3907
3907
|
}), t.dirty());
|
|
3908
3908
|
const a = [...n.data].map((i, o) => {
|
|
3909
3909
|
const l = this._def.items[o] || this._def.rest;
|
|
3910
|
-
return l ? l._parse(new
|
|
3910
|
+
return l ? l._parse(new Ce(n, i, n.path, o)) : null;
|
|
3911
3911
|
}).filter((i) => !!i);
|
|
3912
3912
|
return n.common.async ? Promise.all(a).then((i) => G.mergeArray(t, i)) : G.mergeArray(t, a);
|
|
3913
3913
|
}
|
|
@@ -3931,7 +3931,7 @@ pe.create = (r, e) => {
|
|
|
3931
3931
|
...E(e)
|
|
3932
3932
|
});
|
|
3933
3933
|
};
|
|
3934
|
-
class wn extends
|
|
3934
|
+
class wn extends S {
|
|
3935
3935
|
get keySchema() {
|
|
3936
3936
|
return this._def.keyType;
|
|
3937
3937
|
}
|
|
@@ -3947,8 +3947,8 @@ class wn extends C {
|
|
|
3947
3947
|
received: n.parsedType
|
|
3948
3948
|
}), w;
|
|
3949
3949
|
const s = this._def.keyType, a = this._def.valueType, i = [...n.data.entries()].map(([o, l], u) => ({
|
|
3950
|
-
key: s._parse(new
|
|
3951
|
-
value: a._parse(new
|
|
3950
|
+
key: s._parse(new Ce(n, o, n.path, [u, "key"])),
|
|
3951
|
+
value: a._parse(new Ce(n, l, n.path, [u, "value"]))
|
|
3952
3952
|
}));
|
|
3953
3953
|
if (n.common.async) {
|
|
3954
3954
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -3979,7 +3979,7 @@ wn.create = (r, e, t) => new wn({
|
|
|
3979
3979
|
typeName: x.ZodMap,
|
|
3980
3980
|
...E(t)
|
|
3981
3981
|
});
|
|
3982
|
-
class xt extends
|
|
3982
|
+
class xt extends S {
|
|
3983
3983
|
_parse(e) {
|
|
3984
3984
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
3985
3985
|
if (n.parsedType !== v.set)
|
|
@@ -4014,7 +4014,7 @@ class xt extends C {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
return { status: t.value, value: u };
|
|
4016
4016
|
}
|
|
4017
|
-
const o = [...n.data.values()].map((l, u) => a._parse(new
|
|
4017
|
+
const o = [...n.data.values()].map((l, u) => a._parse(new Ce(n, l, n.path, u)));
|
|
4018
4018
|
return n.common.async ? Promise.all(o).then((l) => i(l)) : i(o);
|
|
4019
4019
|
}
|
|
4020
4020
|
min(e, t) {
|
|
@@ -4043,7 +4043,7 @@ xt.create = (r, e) => new xt({
|
|
|
4043
4043
|
typeName: x.ZodSet,
|
|
4044
4044
|
...E(e)
|
|
4045
4045
|
});
|
|
4046
|
-
class pt extends
|
|
4046
|
+
class pt extends S {
|
|
4047
4047
|
constructor() {
|
|
4048
4048
|
super(...arguments), this.validate = this.implement;
|
|
4049
4049
|
}
|
|
@@ -4134,7 +4134,7 @@ class pt extends C {
|
|
|
4134
4134
|
});
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
|
-
class xn extends
|
|
4137
|
+
class xn extends S {
|
|
4138
4138
|
get schema() {
|
|
4139
4139
|
return this._def.getter();
|
|
4140
4140
|
}
|
|
@@ -4148,7 +4148,7 @@ xn.create = (r, e) => new xn({
|
|
|
4148
4148
|
typeName: x.ZodLazy,
|
|
4149
4149
|
...E(e)
|
|
4150
4150
|
});
|
|
4151
|
-
class kn extends
|
|
4151
|
+
class kn extends S {
|
|
4152
4152
|
_parse(e) {
|
|
4153
4153
|
if (e.data !== this._def.value) {
|
|
4154
4154
|
const t = this._getOrReturnCtx(e);
|
|
@@ -4176,7 +4176,7 @@ function ms(r, e) {
|
|
|
4176
4176
|
...E(e)
|
|
4177
4177
|
});
|
|
4178
4178
|
}
|
|
4179
|
-
class nt extends
|
|
4179
|
+
class nt extends S {
|
|
4180
4180
|
_parse(e) {
|
|
4181
4181
|
if (typeof e.data != "string") {
|
|
4182
4182
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
@@ -4231,7 +4231,7 @@ class nt extends C {
|
|
|
4231
4231
|
}
|
|
4232
4232
|
}
|
|
4233
4233
|
nt.create = ms;
|
|
4234
|
-
class bn extends
|
|
4234
|
+
class bn extends S {
|
|
4235
4235
|
_parse(e) {
|
|
4236
4236
|
const t = T.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
4237
4237
|
if (n.parsedType !== v.string && n.parsedType !== v.number) {
|
|
@@ -4261,7 +4261,7 @@ bn.create = (r, e) => new bn({
|
|
|
4261
4261
|
typeName: x.ZodNativeEnum,
|
|
4262
4262
|
...E(e)
|
|
4263
4263
|
});
|
|
4264
|
-
class kt extends
|
|
4264
|
+
class kt extends S {
|
|
4265
4265
|
unwrap() {
|
|
4266
4266
|
return this._def.type;
|
|
4267
4267
|
}
|
|
@@ -4285,7 +4285,7 @@ kt.create = (r, e) => new kt({
|
|
|
4285
4285
|
typeName: x.ZodPromise,
|
|
4286
4286
|
...E(e)
|
|
4287
4287
|
});
|
|
4288
|
-
class st extends
|
|
4288
|
+
class st extends S {
|
|
4289
4289
|
innerType() {
|
|
4290
4290
|
return this._def.schema;
|
|
4291
4291
|
}
|
|
@@ -4377,7 +4377,7 @@ st.createWithPreprocess = (r, e, t) => new st({
|
|
|
4377
4377
|
typeName: x.ZodEffects,
|
|
4378
4378
|
...E(t)
|
|
4379
4379
|
});
|
|
4380
|
-
class be extends
|
|
4380
|
+
class be extends S {
|
|
4381
4381
|
_parse(e) {
|
|
4382
4382
|
return this._getType(e) === v.undefined ? H(void 0) : this._def.innerType._parse(e);
|
|
4383
4383
|
}
|
|
@@ -4390,7 +4390,7 @@ be.create = (r, e) => new be({
|
|
|
4390
4390
|
typeName: x.ZodOptional,
|
|
4391
4391
|
...E(e)
|
|
4392
4392
|
});
|
|
4393
|
-
class at extends
|
|
4393
|
+
class at extends S {
|
|
4394
4394
|
_parse(e) {
|
|
4395
4395
|
return this._getType(e) === v.null ? H(null) : this._def.innerType._parse(e);
|
|
4396
4396
|
}
|
|
@@ -4403,7 +4403,7 @@ at.create = (r, e) => new at({
|
|
|
4403
4403
|
typeName: x.ZodNullable,
|
|
4404
4404
|
...E(e)
|
|
4405
4405
|
});
|
|
4406
|
-
class br extends
|
|
4406
|
+
class br extends S {
|
|
4407
4407
|
_parse(e) {
|
|
4408
4408
|
const { ctx: t } = this._processInputParams(e);
|
|
4409
4409
|
let n = t.data;
|
|
@@ -4423,7 +4423,7 @@ br.create = (r, e) => new br({
|
|
|
4423
4423
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
4424
4424
|
...E(e)
|
|
4425
4425
|
});
|
|
4426
|
-
class Er extends
|
|
4426
|
+
class Er extends S {
|
|
4427
4427
|
_parse(e) {
|
|
4428
4428
|
const { ctx: t } = this._processInputParams(e), n = {
|
|
4429
4429
|
...t,
|
|
@@ -4466,7 +4466,7 @@ Er.create = (r, e) => new Er({
|
|
|
4466
4466
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
4467
4467
|
...E(e)
|
|
4468
4468
|
});
|
|
4469
|
-
class En extends
|
|
4469
|
+
class En extends S {
|
|
4470
4470
|
_parse(e) {
|
|
4471
4471
|
if (this._getType(e) !== v.nan) {
|
|
4472
4472
|
const n = this._getOrReturnCtx(e);
|
|
@@ -4483,7 +4483,7 @@ En.create = (r) => new En({
|
|
|
4483
4483
|
typeName: x.ZodNaN,
|
|
4484
4484
|
...E(r)
|
|
4485
4485
|
});
|
|
4486
|
-
class _i extends
|
|
4486
|
+
class _i extends S {
|
|
4487
4487
|
_parse(e) {
|
|
4488
4488
|
const { ctx: t } = this._processInputParams(e), n = t.data;
|
|
4489
4489
|
return this._def.type._parse({
|
|
@@ -4496,7 +4496,7 @@ class _i extends C {
|
|
|
4496
4496
|
return this._def.type;
|
|
4497
4497
|
}
|
|
4498
4498
|
}
|
|
4499
|
-
class Br extends
|
|
4499
|
+
class Br extends S {
|
|
4500
4500
|
_parse(e) {
|
|
4501
4501
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
4502
4502
|
if (n.common.async)
|
|
@@ -4536,7 +4536,7 @@ class Br extends C {
|
|
|
4536
4536
|
});
|
|
4537
4537
|
}
|
|
4538
4538
|
}
|
|
4539
|
-
class
|
|
4539
|
+
class Cr extends S {
|
|
4540
4540
|
_parse(e) {
|
|
4541
4541
|
const t = this._def.innerType._parse(e), n = (s) => (tt(s) && (s.value = Object.freeze(s.value)), s);
|
|
4542
4542
|
return Wt(t) ? t.then((s) => n(s)) : n(t);
|
|
@@ -4545,7 +4545,7 @@ class Sr extends C {
|
|
|
4545
4545
|
return this._def.innerType;
|
|
4546
4546
|
}
|
|
4547
4547
|
}
|
|
4548
|
-
|
|
4548
|
+
Cr.create = (r, e) => new Cr({
|
|
4549
4549
|
innerType: r,
|
|
4550
4550
|
typeName: x.ZodReadonly,
|
|
4551
4551
|
...E(e)
|
|
@@ -4556,11 +4556,11 @@ var x;
|
|
|
4556
4556
|
})(x || (x = {}));
|
|
4557
4557
|
const lt = xe.create, b = rt.create, vs = yr.create, $r = wr.create;
|
|
4558
4558
|
Xe.create;
|
|
4559
|
-
|
|
4559
|
+
Se.create;
|
|
4560
4560
|
const Ft = xr.create, qr = le.create, I = L.create;
|
|
4561
4561
|
Yt.create;
|
|
4562
4562
|
Xt.create;
|
|
4563
|
-
const
|
|
4563
|
+
const Cn = pe.create, re = pt.create, gi = nt.create, yi = kt.create;
|
|
4564
4564
|
be.create;
|
|
4565
4565
|
at.create;
|
|
4566
4566
|
I({
|
|
@@ -4580,9 +4580,9 @@ I({
|
|
|
4580
4580
|
}).optional()
|
|
4581
4581
|
}).optional()
|
|
4582
4582
|
});
|
|
4583
|
-
const
|
|
4584
|
-
sw: I({ lat:
|
|
4585
|
-
ne: I({ lat:
|
|
4583
|
+
const Sr = b().min(-90).max(90), Tr = b().min(-180).max(180), wi = I({
|
|
4584
|
+
sw: I({ lat: Sr, lng: Tr }),
|
|
4585
|
+
ne: I({ lat: Sr, lng: Tr })
|
|
4586
4586
|
}), Mr = $r().refine((r) => r instanceof HTMLElement, "Must be an HTMLElement"), xi = I({
|
|
4587
4587
|
mapSize: b().min(1),
|
|
4588
4588
|
zoomMin: b().min(0),
|
|
@@ -4600,7 +4600,7 @@ const Cr = b().min(-90).max(90), Tr = b().min(-180).max(180), wi = I({
|
|
|
4600
4600
|
getZoom: re().args().returns(b()),
|
|
4601
4601
|
getBounds: re().args().returns(wi),
|
|
4602
4602
|
panBy: re().args(b(), b()).returns(Ft()),
|
|
4603
|
-
createMarker: re().args(Mr,
|
|
4603
|
+
createMarker: re().args(Mr, Sr, Tr, b()).returns(ki)
|
|
4604
4604
|
}), or = re().args(lt()).returns(yi(Mr)), Ei = I({
|
|
4605
4605
|
id: lt().min(1),
|
|
4606
4606
|
rank: b(),
|
|
@@ -4612,7 +4612,10 @@ const Cr = b().min(-90).max(90), Tr = b().min(-180).max(180), wi = I({
|
|
|
4612
4612
|
height: b(),
|
|
4613
4613
|
margin: b(),
|
|
4614
4614
|
radius: b()
|
|
4615
|
-
}).refine(
|
|
4615
|
+
}).refine(
|
|
4616
|
+
(r) => Math.min(r.width, r.height) / r.margin >= 6,
|
|
4617
|
+
"Tooltip: minimum of width or height must be greater than or equal to 6 * margin"
|
|
4618
|
+
),
|
|
4616
4619
|
body: or
|
|
4617
4620
|
}),
|
|
4618
4621
|
pin: I({
|
|
@@ -4632,18 +4635,18 @@ const Cr = b().min(-90).max(90), Tr = b().min(-180).max(180), wi = I({
|
|
|
4632
4635
|
}),
|
|
4633
4636
|
body: or
|
|
4634
4637
|
}).optional()
|
|
4635
|
-
}),
|
|
4638
|
+
}), Ci = qr(Ei);
|
|
4636
4639
|
var Le;
|
|
4637
4640
|
((r) => {
|
|
4638
4641
|
r.COUNT = 12, r.DEGREES = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330], r.DEGREES_DEFAULT = 270;
|
|
4639
4642
|
})(Le || (Le = {}));
|
|
4640
|
-
|
|
4643
|
+
Cn([b(), qr(Cn([b(), b()]))]);
|
|
4641
4644
|
const _s = I({
|
|
4642
4645
|
mapSize: b().min(1),
|
|
4643
4646
|
zoomMin: b().min(0).max(24),
|
|
4644
4647
|
zoomMax: b().min(0).max(24),
|
|
4645
4648
|
zoomScale: b().min(1).max(10)
|
|
4646
|
-
}),
|
|
4649
|
+
}), Si = I({
|
|
4647
4650
|
id: lt(),
|
|
4648
4651
|
rank: b(),
|
|
4649
4652
|
lat: b(),
|
|
@@ -4655,7 +4658,7 @@ const _s = I({
|
|
|
4655
4658
|
I({
|
|
4656
4659
|
key: lt(),
|
|
4657
4660
|
parameters: _s,
|
|
4658
|
-
input: qr(
|
|
4661
|
+
input: qr(Si)
|
|
4659
4662
|
});
|
|
4660
4663
|
const Ti = gi(["info", "warn", "error"]);
|
|
4661
4664
|
I({
|
|
@@ -4663,7 +4666,7 @@ I({
|
|
|
4663
4666
|
level: Ti,
|
|
4664
4667
|
content: $r()
|
|
4665
4668
|
});
|
|
4666
|
-
const
|
|
4669
|
+
const Sn = "1.0.210", gs = "https://maps.api.arenarium.dev", Mi = `${gs}/log`, Ai = `${gs}/tooltip/states`;
|
|
4667
4670
|
class Di {
|
|
4668
4671
|
constructor(e, t, n) {
|
|
4669
4672
|
f(this, "apiKey");
|
|
@@ -4676,14 +4679,14 @@ class Di {
|
|
|
4676
4679
|
f(this, "markerPinProcessor");
|
|
4677
4680
|
f(this, "markerTooltipProcessor");
|
|
4678
4681
|
f(this, "markerPopupProcessor");
|
|
4679
|
-
bi.parse(t), this.apiKey = e, this.apiDevEnvironment = (window == null ? void 0 : window.location.host.startsWith("localhost")) || (window == null ? void 0 : window.location.host.startsWith("127.0.0.1")), this.mapProvider = t, this.markerPinProcessor = new Or(t), this.markerTooltipProcessor = new Ni(t), this.markerPopupProcessor = new Ri(t), this.
|
|
4682
|
+
bi.parse(t), this.apiKey = e, this.apiDevEnvironment = (window == null ? void 0 : window.location.host.startsWith("localhost")) || (window == null ? void 0 : window.location.host.startsWith("127.0.0.1")), this.mapProvider = t, this.markerPinProcessor = new Or(t), this.markerTooltipProcessor = new Ni(t), this.markerPopupProcessor = new Ri(t), this.setConfiguration(n), this.log("info", "Loaded");
|
|
4680
4683
|
}
|
|
4681
|
-
|
|
4684
|
+
setConfiguration(e) {
|
|
4682
4685
|
var t, n, s, a;
|
|
4683
|
-
|
|
4686
|
+
_e.setLimit(((n = (t = e == null ? void 0 : e.animation) == null ? void 0 : t.queue) == null ? void 0 : n.limit) ?? 8 * navigator.hardwareConcurrency), this.apiStatesUrl = ((a = (s = e == null ? void 0 : e.api) == null ? void 0 : s.states) == null ? void 0 : a.url) ?? void 0, this.markerPinProcessor.setConfiguration(e);
|
|
4684
4687
|
}
|
|
4685
4688
|
async updateMarkers(e) {
|
|
4686
|
-
|
|
4689
|
+
Ci.parse(e);
|
|
4687
4690
|
try {
|
|
4688
4691
|
await this.updateMarkerData(e), this.processMarkerDataCallback();
|
|
4689
4692
|
} catch (t) {
|
|
@@ -4807,10 +4810,10 @@ class Di {
|
|
|
4807
4810
|
if (!this.apiDevEnvironment)
|
|
4808
4811
|
try {
|
|
4809
4812
|
const s = {
|
|
4810
|
-
title: `[CLIENT:${
|
|
4813
|
+
title: `[CLIENT:${Sn}] ${t}`,
|
|
4811
4814
|
level: e,
|
|
4812
4815
|
content: {
|
|
4813
|
-
version:
|
|
4816
|
+
version: Sn,
|
|
4814
4817
|
...n
|
|
4815
4818
|
}
|
|
4816
4819
|
};
|