@synnaxlabs/x 0.15.3 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +5 -6
- package/README.md +1 -1
- package/dist/binary/encoder.d.ts +1 -0
- package/dist/binary/encoder.d.ts.map +1 -0
- package/dist/binary/encoder.spec.d.ts +1 -0
- package/dist/binary/encoder.spec.d.ts.map +1 -0
- package/dist/binary/index.d.ts +1 -0
- package/dist/binary/index.d.ts.map +1 -0
- package/dist/case.d.ts +1 -0
- package/dist/case.d.ts.map +1 -0
- package/dist/change/change.d.ts +1 -0
- package/dist/change/change.d.ts.map +1 -0
- package/dist/change/index.d.ts +1 -0
- package/dist/change/index.d.ts.map +1 -0
- package/dist/clamp.d.ts +1 -0
- package/dist/clamp.d.ts.map +1 -0
- package/dist/compare/compare.d.ts +4 -0
- package/dist/compare/compare.d.ts.map +1 -0
- package/dist/compare/index.d.ts +1 -0
- package/dist/compare/index.d.ts.map +1 -0
- package/dist/debounce.d.ts +1 -0
- package/dist/debounce.d.ts.map +1 -0
- package/dist/deep/copy.d.ts +1 -0
- package/dist/deep/copy.d.ts.map +1 -0
- package/dist/deep/delete.d.ts +2 -1
- package/dist/deep/delete.d.ts.map +1 -0
- package/dist/deep/delete.spec.d.ts +1 -0
- package/dist/deep/delete.spec.d.ts.map +1 -0
- package/dist/deep/difference.d.ts +1 -0
- package/dist/deep/difference.d.ts.map +1 -0
- package/dist/deep/difference.spec.d.ts +1 -0
- package/dist/deep/difference.spec.d.ts.map +1 -0
- package/dist/deep/equal.d.ts +1 -0
- package/dist/deep/equal.d.ts.map +1 -0
- package/dist/deep/equal.spec.d.ts +1 -0
- package/dist/deep/equal.spec.d.ts.map +1 -0
- package/dist/deep/external.d.ts +1 -0
- package/dist/deep/external.d.ts.map +1 -0
- package/dist/deep/index.d.ts +1 -0
- package/dist/deep/index.d.ts.map +1 -0
- package/dist/deep/memo.d.ts +1 -0
- package/dist/deep/memo.d.ts.map +1 -0
- package/dist/deep/merge.d.ts +2 -1
- package/dist/deep/merge.d.ts.map +1 -0
- package/dist/deep/merge.spec.d.ts +1 -0
- package/dist/deep/merge.spec.d.ts.map +1 -0
- package/dist/deep/partial.d.ts +1 -0
- package/dist/deep/partial.d.ts.map +1 -0
- package/dist/deep/path.d.ts +1 -0
- package/dist/deep/path.d.ts.map +1 -0
- package/dist/deep/path.spec.d.ts +1 -0
- package/dist/deep/path.spec.d.ts.map +1 -0
- package/dist/destructor.d.ts +1 -0
- package/dist/destructor.d.ts.map +1 -0
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/invert.d.ts +1 -0
- package/dist/invert.d.ts.map +1 -0
- package/dist/join.d.ts +1 -0
- package/dist/join.d.ts.map +1 -0
- package/dist/kv/index.d.ts +1 -0
- package/dist/kv/index.d.ts.map +1 -0
- package/dist/kv/types.d.ts +1 -0
- package/dist/kv/types.d.ts.map +1 -0
- package/dist/migrate/index.d.ts +2 -0
- package/dist/migrate/index.d.ts.map +1 -0
- package/dist/migrate/migrate.d.ts +16 -0
- package/dist/migrate/migrate.d.ts.map +1 -0
- package/dist/migrate/migrate.spec.d.ts +2 -0
- package/dist/migrate/migrate.spec.d.ts.map +1 -0
- package/dist/mock/MockGLBufferController.d.ts +1 -0
- package/dist/mock/MockGLBufferController.d.ts.map +1 -0
- package/dist/mock/index.d.ts +1 -0
- package/dist/mock/index.d.ts.map +1 -0
- package/dist/observe/index.d.ts +1 -0
- package/dist/observe/index.d.ts.map +1 -0
- package/dist/observe/observe.d.ts +1 -0
- package/dist/observe/observe.d.ts.map +1 -0
- package/dist/optional.d.ts +1 -0
- package/dist/optional.d.ts.map +1 -0
- package/dist/primitive.d.ts +1 -0
- package/dist/primitive.d.ts.map +1 -0
- package/dist/record.d.ts +1 -0
- package/dist/record.d.ts.map +1 -0
- package/dist/renderable.d.ts +1 -0
- package/dist/renderable.d.ts.map +1 -0
- package/dist/runtime/detect.d.ts +1 -0
- package/dist/runtime/detect.d.ts.map +1 -0
- package/dist/runtime/external.d.ts +1 -0
- package/dist/runtime/external.d.ts.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/os.d.ts +1 -0
- package/dist/runtime/os.d.ts.map +1 -0
- package/dist/search.d.ts +1 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/shallowCopy.d.ts +1 -0
- package/dist/shallowCopy.d.ts.map +1 -0
- package/dist/spatial/base.d.ts +1 -0
- package/dist/spatial/base.d.ts.map +1 -0
- package/dist/spatial/bounds/bounds.d.ts +1 -0
- package/dist/spatial/bounds/bounds.d.ts.map +1 -0
- package/dist/spatial/bounds/bounds.spec.d.ts +1 -0
- package/dist/spatial/bounds/bounds.spec.d.ts.map +1 -0
- package/dist/spatial/bounds/index.d.ts +1 -0
- package/dist/spatial/bounds/index.d.ts.map +1 -0
- package/dist/spatial/box/box.d.ts +1 -0
- package/dist/spatial/box/box.d.ts.map +1 -0
- package/dist/spatial/box/box.spec.d.ts +1 -0
- package/dist/spatial/box/box.spec.d.ts.map +1 -0
- package/dist/spatial/box/index.d.ts +1 -0
- package/dist/spatial/box/index.d.ts.map +1 -0
- package/dist/spatial/dimensions/dimensions.d.ts +1 -0
- package/dist/spatial/dimensions/dimensions.d.ts.map +1 -0
- package/dist/spatial/dimensions/dimensions.spec.d.ts +1 -0
- package/dist/spatial/dimensions/dimensions.spec.d.ts.map +1 -0
- package/dist/spatial/dimensions/index.d.ts +1 -0
- package/dist/spatial/dimensions/index.d.ts.map +1 -0
- package/dist/spatial/direction/direction.d.ts +1 -0
- package/dist/spatial/direction/direction.d.ts.map +1 -0
- package/dist/spatial/direction/direction.spec.d.ts +1 -0
- package/dist/spatial/direction/direction.spec.d.ts.map +1 -0
- package/dist/spatial/direction/index.d.ts +1 -0
- package/dist/spatial/direction/index.d.ts.map +1 -0
- package/dist/spatial/external.d.ts +1 -0
- package/dist/spatial/external.d.ts.map +1 -0
- package/dist/spatial/index.d.ts +1 -0
- package/dist/spatial/index.d.ts.map +1 -0
- package/dist/spatial/location/index.d.ts +1 -0
- package/dist/spatial/location/index.d.ts.map +1 -0
- package/dist/spatial/location/location.d.ts +1 -0
- package/dist/spatial/location/location.d.ts.map +1 -0
- package/dist/spatial/location/location.spec.d.ts +1 -0
- package/dist/spatial/location/location.spec.d.ts.map +1 -0
- package/dist/spatial/position/index.d.ts +1 -0
- package/dist/spatial/position/index.d.ts.map +1 -0
- package/dist/spatial/position/position.d.ts +1 -0
- package/dist/spatial/position/position.d.ts.map +1 -0
- package/dist/spatial/position/position.spec.d.ts +1 -0
- package/dist/spatial/position/position.spec.d.ts.map +1 -0
- package/dist/spatial/scale/index.d.ts +1 -0
- package/dist/spatial/scale/index.d.ts.map +1 -0
- package/dist/spatial/scale/scale.d.ts +1 -0
- package/dist/spatial/scale/scale.d.ts.map +1 -0
- package/dist/spatial/scale/scale.spec.d.ts +1 -0
- package/dist/spatial/scale/scale.spec.d.ts.map +1 -0
- package/dist/spatial/spatial.d.ts +1 -0
- package/dist/spatial/spatial.d.ts.map +1 -0
- package/dist/spatial/xy/index.d.ts +1 -0
- package/dist/spatial/xy/index.d.ts.map +1 -0
- package/dist/spatial/xy/xy.d.ts +1 -0
- package/dist/spatial/xy/xy.d.ts.map +1 -0
- package/dist/spatial/xy/xy.spec.d.ts +1 -0
- package/dist/spatial/xy/xy.spec.d.ts.map +1 -0
- package/dist/telem/generate.d.ts +1 -0
- package/dist/telem/generate.d.ts.map +1 -0
- package/dist/telem/gl.d.ts +1 -0
- package/dist/telem/gl.d.ts.map +1 -0
- package/dist/telem/index.d.ts +1 -0
- package/dist/telem/index.d.ts.map +1 -0
- package/dist/telem/series.d.ts +3 -0
- package/dist/telem/series.d.ts.map +1 -0
- package/dist/telem/series.spec.d.ts +1 -0
- package/dist/telem/series.spec.d.ts.map +1 -0
- package/dist/telem/telem.d.ts +1 -0
- package/dist/telem/telem.d.ts.map +1 -0
- package/dist/telem/telem.spec.d.ts +1 -0
- package/dist/telem/telem.spec.d.ts.map +1 -0
- package/dist/toArray.d.ts +1 -0
- package/dist/toArray.d.ts.map +1 -0
- package/dist/transform.d.ts +1 -0
- package/dist/transform.d.ts.map +1 -0
- package/dist/unique.d.ts +1 -0
- package/dist/unique.d.ts.map +1 -0
- package/dist/url/index.d.ts +1 -0
- package/dist/url/index.d.ts.map +1 -0
- package/dist/url/url.d.ts +1 -0
- package/dist/url/url.d.ts.map +1 -0
- package/dist/url/url.spec.d.ts +1 -0
- package/dist/url/url.spec.d.ts.map +1 -0
- package/dist/worker/worker.d.ts +1 -0
- package/dist/worker/worker.d.ts.map +1 -0
- package/dist/worker/worker.spec.d.ts +1 -0
- package/dist/worker/worker.spec.d.ts.map +1 -0
- package/dist/x.cjs +2 -2
- package/dist/x.cjs.map +1 -1
- package/dist/x.js +770 -738
- package/dist/x.js.map +1 -1
- package/package.json +10 -10
- package/src/compare/compare.ts +6 -0
- package/src/index.ts +1 -0
- package/src/migrate/index.ts +1 -0
- package/src/migrate/migrate.spec.ts +79 -0
- package/src/migrate/migrate.ts +47 -0
- package/src/telem/series.spec.ts +10 -0
- package/src/telem/series.ts +14 -0
package/dist/x.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var u = (t, e, r) => (
|
|
4
|
-
let
|
|
1
|
+
var es = Object.defineProperty;
|
|
2
|
+
var ts = (t, e, r) => e in t ? es(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var u = (t, e, r) => (ts(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
let rs = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ns = (t = 21) => {
|
|
5
5
|
let e = "", r = t;
|
|
6
6
|
for (; r--; )
|
|
7
|
-
e +=
|
|
7
|
+
e += rs[Math.random() * 64 | 0];
|
|
8
8
|
return e;
|
|
9
9
|
};
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
10
|
+
const Dr = (t) => t != null && typeof t == "object" && "toString" in t, Fo = (t) => {
|
|
11
|
+
if (Dr(t))
|
|
12
12
|
return (t == null ? void 0 : t.toString().length) === 0;
|
|
13
13
|
switch (typeof t) {
|
|
14
14
|
case "string":
|
|
@@ -24,8 +24,8 @@ const Ur = (t) => t != null && typeof t == "object" && "toString" in t, Do = (t)
|
|
|
24
24
|
case "object":
|
|
25
25
|
return t === null;
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
const r =
|
|
27
|
+
}, Bt = (t, e = !1) => {
|
|
28
|
+
const r = Dr(t) ? "stringer" : typeof t;
|
|
29
29
|
let n;
|
|
30
30
|
switch (r) {
|
|
31
31
|
case "string":
|
|
@@ -46,29 +46,32 @@ const Ur = (t) => t != null && typeof t == "object" && "toString" in t, Do = (t)
|
|
|
46
46
|
default:
|
|
47
47
|
return console.warn("sortFunc: unknown type"), () => -1;
|
|
48
48
|
}
|
|
49
|
-
return e ?
|
|
50
|
-
},
|
|
51
|
-
const n =
|
|
49
|
+
return e ? Vr(n) : n;
|
|
50
|
+
}, ss = (t, e, r) => {
|
|
51
|
+
const n = Bt(e[t], r);
|
|
52
52
|
return (s, i) => n(s[t], i[t]);
|
|
53
|
-
},
|
|
53
|
+
}, is = (t, e) => t.length !== e.length ? t.length - e.length : t.every((r, n) => r === e[n]) ? 0 : -1, as = (t, e) => {
|
|
54
54
|
if (t.length !== e.length)
|
|
55
55
|
return t.length - e.length;
|
|
56
56
|
if (t.length === 0)
|
|
57
57
|
return 0;
|
|
58
|
-
const r =
|
|
58
|
+
const r = Bt(t[0]), n = [...t].sort(r), s = [...e].sort(r);
|
|
59
59
|
return n.every((i, a) => i === s[a]) ? 0 : -1;
|
|
60
|
-
},
|
|
61
|
-
const
|
|
60
|
+
}, os = (t, e) => t === e ? 0 : t === "first" && e === "last" ? 1 : -1, Vr = (t) => (e, r) => t(r, e);
|
|
61
|
+
const cs = (t) => t < 0, zr = (t) => t > 0, us = (t) => t >= 0, Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62
62
|
__proto__: null,
|
|
63
63
|
EQUAL: 0,
|
|
64
64
|
GREATER_THAN: 1,
|
|
65
65
|
LESS_THAN: -1,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
isGreaterThan: zr,
|
|
67
|
+
isGreaterThanEqual: us,
|
|
68
|
+
isLessThan: cs,
|
|
69
|
+
newF: Bt,
|
|
70
|
+
newFieldF: ss,
|
|
71
|
+
order: os,
|
|
72
|
+
primitiveArrays: is,
|
|
73
|
+
reverseF: Vr,
|
|
74
|
+
unorderedPrimitiveArrays: as
|
|
72
75
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73
76
|
var I;
|
|
74
77
|
(function(t) {
|
|
@@ -106,14 +109,14 @@ var I;
|
|
|
106
109
|
}
|
|
107
110
|
t.joinValues = n, t.jsonStringifyReplacer = (s, i) => typeof i == "bigint" ? i.toString() : i;
|
|
108
111
|
})(I || (I = {}));
|
|
109
|
-
var
|
|
112
|
+
var rr;
|
|
110
113
|
(function(t) {
|
|
111
114
|
t.mergeShapes = (e, r) => ({
|
|
112
115
|
...e,
|
|
113
116
|
...r
|
|
114
117
|
// second overwrites first
|
|
115
118
|
});
|
|
116
|
-
})(
|
|
119
|
+
})(rr || (rr = {}));
|
|
117
120
|
const y = I.arrayToEnum([
|
|
118
121
|
"string",
|
|
119
122
|
"nan",
|
|
@@ -173,7 +176,7 @@ const y = I.arrayToEnum([
|
|
|
173
176
|
"invalid_intersection_types",
|
|
174
177
|
"not_multiple_of",
|
|
175
178
|
"not_finite"
|
|
176
|
-
]),
|
|
179
|
+
]), ls = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
177
180
|
class Y extends Error {
|
|
178
181
|
constructor(e) {
|
|
179
182
|
super(), this.issues = [], this.addIssue = (n) => {
|
|
@@ -286,14 +289,14 @@ const Ve = (t, e) => {
|
|
|
286
289
|
}
|
|
287
290
|
return { message: r };
|
|
288
291
|
};
|
|
289
|
-
let
|
|
290
|
-
function
|
|
291
|
-
|
|
292
|
+
let qr = Ve;
|
|
293
|
+
function ds(t) {
|
|
294
|
+
qr = t;
|
|
292
295
|
}
|
|
293
|
-
function
|
|
294
|
-
return
|
|
296
|
+
function St() {
|
|
297
|
+
return qr;
|
|
295
298
|
}
|
|
296
|
-
const
|
|
299
|
+
const At = (t) => {
|
|
297
300
|
const { data: e, path: r, errorMaps: n, issueData: s } = t, i = [...r, ...s.path || []], a = {
|
|
298
301
|
...s,
|
|
299
302
|
path: i
|
|
@@ -307,16 +310,16 @@ const St = (t) => {
|
|
|
307
310
|
path: i,
|
|
308
311
|
message: s.message || o
|
|
309
312
|
};
|
|
310
|
-
},
|
|
313
|
+
}, fs = [];
|
|
311
314
|
function m(t, e) {
|
|
312
|
-
const r =
|
|
315
|
+
const r = At({
|
|
313
316
|
issueData: e,
|
|
314
317
|
data: t.data,
|
|
315
318
|
path: t.path,
|
|
316
319
|
errorMaps: [
|
|
317
320
|
t.common.contextualErrorMap,
|
|
318
321
|
t.schemaErrorMap,
|
|
319
|
-
|
|
322
|
+
St(),
|
|
320
323
|
Ve
|
|
321
324
|
// then global default map
|
|
322
325
|
].filter((n) => !!n)
|
|
@@ -364,7 +367,7 @@ class B {
|
|
|
364
367
|
}
|
|
365
368
|
const O = Object.freeze({
|
|
366
369
|
status: "aborted"
|
|
367
|
-
}),
|
|
370
|
+
}), Yr = (t) => ({ status: "dirty", value: t }), P = (t) => ({ status: "valid", value: t }), nr = (t) => t.status === "aborted", sr = (t) => t.status === "dirty", ze = (t) => t.status === "valid", It = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
368
371
|
var v;
|
|
369
372
|
(function(t) {
|
|
370
373
|
t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
@@ -377,7 +380,7 @@ class X {
|
|
|
377
380
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
378
381
|
}
|
|
379
382
|
}
|
|
380
|
-
const
|
|
383
|
+
const Zr = (t, e) => {
|
|
381
384
|
if (ze(e))
|
|
382
385
|
return { success: !0, data: e.value };
|
|
383
386
|
if (!t.common.issues.length)
|
|
@@ -435,7 +438,7 @@ class T {
|
|
|
435
438
|
}
|
|
436
439
|
_parseSync(e) {
|
|
437
440
|
const r = this._parse(e);
|
|
438
|
-
if (
|
|
441
|
+
if (It(r))
|
|
439
442
|
throw new Error("Synchronous parse encountered promise.");
|
|
440
443
|
return r;
|
|
441
444
|
}
|
|
@@ -463,7 +466,7 @@ class T {
|
|
|
463
466
|
data: e,
|
|
464
467
|
parsedType: pe(e)
|
|
465
468
|
}, i = this._parseSync({ data: e, path: s.path, parent: s });
|
|
466
|
-
return
|
|
469
|
+
return Zr(s, i);
|
|
467
470
|
}
|
|
468
471
|
async parseAsync(e, r) {
|
|
469
472
|
const n = await this.safeParseAsync(e, r);
|
|
@@ -483,8 +486,8 @@ class T {
|
|
|
483
486
|
parent: null,
|
|
484
487
|
data: e,
|
|
485
488
|
parsedType: pe(e)
|
|
486
|
-
}, s = this._parse({ data: e, path: n.path, parent: n }), i = await (
|
|
487
|
-
return
|
|
489
|
+
}, s = this._parse({ data: e, path: n.path, parent: n }), i = await (It(s) ? s : Promise.resolve(s));
|
|
490
|
+
return Zr(n, i);
|
|
488
491
|
}
|
|
489
492
|
refine(e, r) {
|
|
490
493
|
const n = (s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r;
|
|
@@ -548,7 +551,7 @@ class T {
|
|
|
548
551
|
});
|
|
549
552
|
}
|
|
550
553
|
brand() {
|
|
551
|
-
return new
|
|
554
|
+
return new Kr({
|
|
552
555
|
typeName: w.ZodBranded,
|
|
553
556
|
type: this,
|
|
554
557
|
..._(this._def)
|
|
@@ -556,7 +559,7 @@ class T {
|
|
|
556
559
|
}
|
|
557
560
|
catch(e) {
|
|
558
561
|
const r = typeof e == "function" ? e : () => e;
|
|
559
|
-
return new
|
|
562
|
+
return new Ct({
|
|
560
563
|
..._(this._def),
|
|
561
564
|
innerType: this,
|
|
562
565
|
catchValue: r,
|
|
@@ -571,10 +574,10 @@ class T {
|
|
|
571
574
|
});
|
|
572
575
|
}
|
|
573
576
|
pipe(e) {
|
|
574
|
-
return
|
|
577
|
+
return ut.create(this, e);
|
|
575
578
|
}
|
|
576
579
|
readonly() {
|
|
577
|
-
return
|
|
580
|
+
return jt.create(this);
|
|
578
581
|
}
|
|
579
582
|
isOptional() {
|
|
580
583
|
return this.safeParse(void 0).success;
|
|
@@ -583,11 +586,11 @@ class T {
|
|
|
583
586
|
return this.safeParse(null).success;
|
|
584
587
|
}
|
|
585
588
|
}
|
|
586
|
-
const
|
|
587
|
-
let
|
|
588
|
-
const
|
|
589
|
-
function
|
|
590
|
-
return !!((e === "v4" || !e) &&
|
|
589
|
+
const hs = /^c[^\s-]{8,}$/i, ps = /^[a-z][a-z0-9]*$/, ys = /^[0-9A-HJKMNP-TV-Z]{26}$/, ms = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, gs = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, vs = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
590
|
+
let er;
|
|
591
|
+
const bs = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, ws = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, xs = (t) => t.precision ? t.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`) : t.precision === 0 ? t.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : t.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
|
|
592
|
+
function Os(t, e) {
|
|
593
|
+
return !!((e === "v4" || !e) && bs.test(t) || (e === "v6" || !e) && ws.test(t));
|
|
591
594
|
}
|
|
592
595
|
class q extends T {
|
|
593
596
|
_parse(e) {
|
|
@@ -642,37 +645,37 @@ class q extends T {
|
|
|
642
645
|
message: i.message
|
|
643
646
|
}), n.dirty());
|
|
644
647
|
} else if (i.kind === "email")
|
|
645
|
-
|
|
648
|
+
gs.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
|
|
646
649
|
validation: "email",
|
|
647
650
|
code: h.invalid_string,
|
|
648
651
|
message: i.message
|
|
649
652
|
}), n.dirty());
|
|
650
653
|
else if (i.kind === "emoji")
|
|
651
|
-
|
|
654
|
+
er || (er = new RegExp(vs, "u")), er.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
|
|
652
655
|
validation: "emoji",
|
|
653
656
|
code: h.invalid_string,
|
|
654
657
|
message: i.message
|
|
655
658
|
}), n.dirty());
|
|
656
659
|
else if (i.kind === "uuid")
|
|
657
|
-
|
|
660
|
+
ms.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
|
|
658
661
|
validation: "uuid",
|
|
659
662
|
code: h.invalid_string,
|
|
660
663
|
message: i.message
|
|
661
664
|
}), n.dirty());
|
|
662
665
|
else if (i.kind === "cuid")
|
|
663
|
-
|
|
666
|
+
hs.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
|
|
664
667
|
validation: "cuid",
|
|
665
668
|
code: h.invalid_string,
|
|
666
669
|
message: i.message
|
|
667
670
|
}), n.dirty());
|
|
668
671
|
else if (i.kind === "cuid2")
|
|
669
|
-
|
|
672
|
+
ps.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
|
|
670
673
|
validation: "cuid2",
|
|
671
674
|
code: h.invalid_string,
|
|
672
675
|
message: i.message
|
|
673
676
|
}), n.dirty());
|
|
674
677
|
else if (i.kind === "ulid")
|
|
675
|
-
|
|
678
|
+
ys.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
|
|
676
679
|
validation: "ulid",
|
|
677
680
|
code: h.invalid_string,
|
|
678
681
|
message: i.message
|
|
@@ -704,11 +707,11 @@ class q extends T {
|
|
|
704
707
|
code: h.invalid_string,
|
|
705
708
|
validation: { endsWith: i.value },
|
|
706
709
|
message: i.message
|
|
707
|
-
}), n.dirty()) : i.kind === "datetime" ?
|
|
710
|
+
}), n.dirty()) : i.kind === "datetime" ? xs(i).test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
|
|
708
711
|
code: h.invalid_string,
|
|
709
712
|
validation: "datetime",
|
|
710
713
|
message: i.message
|
|
711
|
-
}), n.dirty()) : i.kind === "ip" ?
|
|
714
|
+
}), n.dirty()) : i.kind === "ip" ? Os(e.data, i.version) || (s = this._getOrReturnCtx(e, s), m(s, {
|
|
712
715
|
validation: "ip",
|
|
713
716
|
code: h.invalid_string,
|
|
714
717
|
message: i.message
|
|
@@ -890,7 +893,7 @@ q.create = (t) => {
|
|
|
890
893
|
..._(t)
|
|
891
894
|
});
|
|
892
895
|
};
|
|
893
|
-
function
|
|
896
|
+
function _s(t, e) {
|
|
894
897
|
const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, i = parseInt(t.toFixed(s).replace(".", "")), a = parseInt(e.toFixed(s).replace(".", ""));
|
|
895
898
|
return i % a / Math.pow(10, s);
|
|
896
899
|
}
|
|
@@ -929,7 +932,7 @@ class be extends T {
|
|
|
929
932
|
inclusive: i.inclusive,
|
|
930
933
|
exact: !1,
|
|
931
934
|
message: i.message
|
|
932
|
-
}), s.dirty()) : i.kind === "multipleOf" ?
|
|
935
|
+
}), s.dirty()) : i.kind === "multipleOf" ? _s(e.data, i.value) !== 0 && (n = this._getOrReturnCtx(e, n), m(n, {
|
|
933
936
|
code: h.not_multiple_of,
|
|
934
937
|
multipleOf: i.value,
|
|
935
938
|
message: i.message
|
|
@@ -1290,7 +1293,7 @@ Ne.create = (t) => new Ne({
|
|
|
1290
1293
|
typeName: w.ZodDate,
|
|
1291
1294
|
..._(t)
|
|
1292
1295
|
});
|
|
1293
|
-
class
|
|
1296
|
+
class Nt extends T {
|
|
1294
1297
|
_parse(e) {
|
|
1295
1298
|
if (this._getType(e) !== y.symbol) {
|
|
1296
1299
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1303,7 +1306,7 @@ class It extends T {
|
|
|
1303
1306
|
return P(e.data);
|
|
1304
1307
|
}
|
|
1305
1308
|
}
|
|
1306
|
-
|
|
1309
|
+
Nt.create = (t) => new Nt({
|
|
1307
1310
|
typeName: w.ZodSymbol,
|
|
1308
1311
|
..._(t)
|
|
1309
1312
|
});
|
|
@@ -1379,7 +1382,7 @@ le.create = (t) => new le({
|
|
|
1379
1382
|
typeName: w.ZodNever,
|
|
1380
1383
|
..._(t)
|
|
1381
1384
|
});
|
|
1382
|
-
class
|
|
1385
|
+
class kt extends T {
|
|
1383
1386
|
_parse(e) {
|
|
1384
1387
|
if (this._getType(e) !== y.undefined) {
|
|
1385
1388
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1392,7 +1395,7 @@ class Nt extends T {
|
|
|
1392
1395
|
return P(e.data);
|
|
1393
1396
|
}
|
|
1394
1397
|
}
|
|
1395
|
-
|
|
1398
|
+
kt.create = (t) => new kt({
|
|
1396
1399
|
typeName: w.ZodVoid,
|
|
1397
1400
|
..._(t)
|
|
1398
1401
|
});
|
|
@@ -1750,7 +1753,7 @@ class M extends T {
|
|
|
1750
1753
|
});
|
|
1751
1754
|
}
|
|
1752
1755
|
keyof() {
|
|
1753
|
-
return
|
|
1756
|
+
return Wr(I.objectKeys(this.shape));
|
|
1754
1757
|
}
|
|
1755
1758
|
}
|
|
1756
1759
|
M.create = (t, e) => new M({
|
|
@@ -1847,8 +1850,8 @@ Ke.create = (t, e) => new Ke({
|
|
|
1847
1850
|
typeName: w.ZodUnion,
|
|
1848
1851
|
..._(e)
|
|
1849
1852
|
});
|
|
1850
|
-
const
|
|
1851
|
-
class
|
|
1853
|
+
const ft = (t) => t instanceof He ? ft(t.schema) : t instanceof K ? ft(t.innerType()) : t instanceof Je ? [t.value] : t instanceof xe ? t.options : t instanceof Xe ? Object.keys(t.enum) : t instanceof Qe ? ft(t._def.innerType) : t instanceof Ye ? [void 0] : t instanceof We ? [null] : null;
|
|
1854
|
+
class Pt extends T {
|
|
1852
1855
|
_parse(e) {
|
|
1853
1856
|
const { ctx: r } = this._processInputParams(e);
|
|
1854
1857
|
if (r.parsedType !== y.object)
|
|
@@ -1892,7 +1895,7 @@ class Bt extends T {
|
|
|
1892
1895
|
static create(e, r, n) {
|
|
1893
1896
|
const s = /* @__PURE__ */ new Map();
|
|
1894
1897
|
for (const i of r) {
|
|
1895
|
-
const a =
|
|
1898
|
+
const a = ft(i.shape[e]);
|
|
1896
1899
|
if (!a)
|
|
1897
1900
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
1898
1901
|
for (const o of a) {
|
|
@@ -1901,7 +1904,7 @@ class Bt extends T {
|
|
|
1901
1904
|
s.set(o, i);
|
|
1902
1905
|
}
|
|
1903
1906
|
}
|
|
1904
|
-
return new
|
|
1907
|
+
return new Pt({
|
|
1905
1908
|
typeName: w.ZodDiscriminatedUnion,
|
|
1906
1909
|
discriminator: e,
|
|
1907
1910
|
options: r,
|
|
@@ -1910,14 +1913,14 @@ class Bt extends T {
|
|
|
1910
1913
|
});
|
|
1911
1914
|
}
|
|
1912
1915
|
}
|
|
1913
|
-
function
|
|
1916
|
+
function ir(t, e) {
|
|
1914
1917
|
const r = pe(t), n = pe(e);
|
|
1915
1918
|
if (t === e)
|
|
1916
1919
|
return { valid: !0, data: t };
|
|
1917
1920
|
if (r === y.object && n === y.object) {
|
|
1918
1921
|
const s = I.objectKeys(e), i = I.objectKeys(t).filter((o) => s.indexOf(o) !== -1), a = { ...t, ...e };
|
|
1919
1922
|
for (const o of i) {
|
|
1920
|
-
const c =
|
|
1923
|
+
const c = ir(t[o], e[o]);
|
|
1921
1924
|
if (!c.valid)
|
|
1922
1925
|
return { valid: !1 };
|
|
1923
1926
|
a[o] = c.data;
|
|
@@ -1928,7 +1931,7 @@ function sr(t, e) {
|
|
|
1928
1931
|
return { valid: !1 };
|
|
1929
1932
|
const s = [];
|
|
1930
1933
|
for (let i = 0; i < t.length; i++) {
|
|
1931
|
-
const a = t[i], o = e[i], c =
|
|
1934
|
+
const a = t[i], o = e[i], c = ir(a, o);
|
|
1932
1935
|
if (!c.valid)
|
|
1933
1936
|
return { valid: !1 };
|
|
1934
1937
|
s.push(c.data);
|
|
@@ -1940,10 +1943,10 @@ function sr(t, e) {
|
|
|
1940
1943
|
class Ge extends T {
|
|
1941
1944
|
_parse(e) {
|
|
1942
1945
|
const { status: r, ctx: n } = this._processInputParams(e), s = (i, a) => {
|
|
1943
|
-
if (
|
|
1946
|
+
if (nr(i) || nr(a))
|
|
1944
1947
|
return O;
|
|
1945
|
-
const o =
|
|
1946
|
-
return o.valid ? ((
|
|
1948
|
+
const o = ir(i.value, a.value);
|
|
1949
|
+
return o.valid ? ((sr(i) || sr(a)) && r.dirty(), { status: r.value, value: o.data }) : (m(n, {
|
|
1947
1950
|
code: h.invalid_intersection_types
|
|
1948
1951
|
}), O);
|
|
1949
1952
|
};
|
|
@@ -2065,7 +2068,7 @@ class Fe extends T {
|
|
|
2065
2068
|
});
|
|
2066
2069
|
}
|
|
2067
2070
|
}
|
|
2068
|
-
class
|
|
2071
|
+
class Et extends T {
|
|
2069
2072
|
get keySchema() {
|
|
2070
2073
|
return this._def.keyType;
|
|
2071
2074
|
}
|
|
@@ -2107,7 +2110,7 @@ class kt extends T {
|
|
|
2107
2110
|
}
|
|
2108
2111
|
}
|
|
2109
2112
|
}
|
|
2110
|
-
|
|
2113
|
+
Et.create = (t, e, r) => new Et({
|
|
2111
2114
|
valueType: e,
|
|
2112
2115
|
keyType: t,
|
|
2113
2116
|
typeName: w.ZodMap,
|
|
@@ -2190,13 +2193,13 @@ class Ze extends T {
|
|
|
2190
2193
|
received: r.parsedType
|
|
2191
2194
|
}), O;
|
|
2192
2195
|
function n(o, c) {
|
|
2193
|
-
return
|
|
2196
|
+
return At({
|
|
2194
2197
|
data: o,
|
|
2195
2198
|
path: r.path,
|
|
2196
2199
|
errorMaps: [
|
|
2197
2200
|
r.common.contextualErrorMap,
|
|
2198
2201
|
r.schemaErrorMap,
|
|
2199
|
-
|
|
2202
|
+
St(),
|
|
2200
2203
|
Ve
|
|
2201
2204
|
].filter((f) => !!f),
|
|
2202
2205
|
issueData: {
|
|
@@ -2206,13 +2209,13 @@ class Ze extends T {
|
|
|
2206
2209
|
});
|
|
2207
2210
|
}
|
|
2208
2211
|
function s(o, c) {
|
|
2209
|
-
return
|
|
2212
|
+
return At({
|
|
2210
2213
|
data: o,
|
|
2211
2214
|
path: r.path,
|
|
2212
2215
|
errorMaps: [
|
|
2213
2216
|
r.common.contextualErrorMap,
|
|
2214
2217
|
r.schemaErrorMap,
|
|
2215
|
-
|
|
2218
|
+
St(),
|
|
2216
2219
|
Ve
|
|
2217
2220
|
].filter((f) => !!f),
|
|
2218
2221
|
issueData: {
|
|
@@ -2313,7 +2316,7 @@ Je.create = (t, e) => new Je({
|
|
|
2313
2316
|
typeName: w.ZodLiteral,
|
|
2314
2317
|
..._(e)
|
|
2315
2318
|
});
|
|
2316
|
-
function
|
|
2319
|
+
function Wr(t, e) {
|
|
2317
2320
|
return new xe({
|
|
2318
2321
|
values: t,
|
|
2319
2322
|
typeName: w.ZodEnum,
|
|
@@ -2368,7 +2371,7 @@ class xe extends T {
|
|
|
2368
2371
|
return xe.create(this.options.filter((r) => !e.includes(r)));
|
|
2369
2372
|
}
|
|
2370
2373
|
}
|
|
2371
|
-
xe.create =
|
|
2374
|
+
xe.create = Wr;
|
|
2372
2375
|
class Xe extends T {
|
|
2373
2376
|
_parse(e) {
|
|
2374
2377
|
const r = I.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
@@ -2549,7 +2552,7 @@ Qe.create = (t, e) => new Qe({
|
|
|
2549
2552
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
2550
2553
|
..._(e)
|
|
2551
2554
|
});
|
|
2552
|
-
class
|
|
2555
|
+
class Ct extends T {
|
|
2553
2556
|
_parse(e) {
|
|
2554
2557
|
const { ctx: r } = this._processInputParams(e), n = {
|
|
2555
2558
|
...r,
|
|
@@ -2564,7 +2567,7 @@ class Et extends T {
|
|
|
2564
2567
|
...n
|
|
2565
2568
|
}
|
|
2566
2569
|
});
|
|
2567
|
-
return
|
|
2570
|
+
return It(s) ? s.then((i) => ({
|
|
2568
2571
|
status: "valid",
|
|
2569
2572
|
value: i.status === "valid" ? i.value : this._def.catchValue({
|
|
2570
2573
|
get error() {
|
|
@@ -2586,13 +2589,13 @@ class Et extends T {
|
|
|
2586
2589
|
return this._def.innerType;
|
|
2587
2590
|
}
|
|
2588
2591
|
}
|
|
2589
|
-
|
|
2592
|
+
Ct.create = (t, e) => new Ct({
|
|
2590
2593
|
innerType: t,
|
|
2591
2594
|
typeName: w.ZodCatch,
|
|
2592
2595
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
2593
2596
|
..._(e)
|
|
2594
2597
|
});
|
|
2595
|
-
class
|
|
2598
|
+
class Mt extends T {
|
|
2596
2599
|
_parse(e) {
|
|
2597
2600
|
if (this._getType(e) !== y.nan) {
|
|
2598
2601
|
const n = this._getOrReturnCtx(e);
|
|
@@ -2605,12 +2608,12 @@ class Ct extends T {
|
|
|
2605
2608
|
return { status: "valid", value: e.data };
|
|
2606
2609
|
}
|
|
2607
2610
|
}
|
|
2608
|
-
|
|
2611
|
+
Mt.create = (t) => new Mt({
|
|
2609
2612
|
typeName: w.ZodNaN,
|
|
2610
2613
|
..._(t)
|
|
2611
2614
|
});
|
|
2612
|
-
const
|
|
2613
|
-
class
|
|
2615
|
+
const Ts = Symbol("zod_brand");
|
|
2616
|
+
class Kr extends T {
|
|
2614
2617
|
_parse(e) {
|
|
2615
2618
|
const { ctx: r } = this._processInputParams(e), n = r.data;
|
|
2616
2619
|
return this._def.type._parse({
|
|
@@ -2623,7 +2626,7 @@ class Yr extends T {
|
|
|
2623
2626
|
return this._def.type;
|
|
2624
2627
|
}
|
|
2625
2628
|
}
|
|
2626
|
-
class
|
|
2629
|
+
class ut extends T {
|
|
2627
2630
|
_parse(e) {
|
|
2628
2631
|
const { status: r, ctx: n } = this._processInputParams(e);
|
|
2629
2632
|
if (n.common.async)
|
|
@@ -2633,7 +2636,7 @@ class ct extends T {
|
|
|
2633
2636
|
path: n.path,
|
|
2634
2637
|
parent: n
|
|
2635
2638
|
});
|
|
2636
|
-
return i.status === "aborted" ? O : i.status === "dirty" ? (r.dirty(),
|
|
2639
|
+
return i.status === "aborted" ? O : i.status === "dirty" ? (r.dirty(), Yr(i.value)) : this._def.out._parseAsync({
|
|
2637
2640
|
data: i.value,
|
|
2638
2641
|
path: n.path,
|
|
2639
2642
|
parent: n
|
|
@@ -2656,40 +2659,40 @@ class ct extends T {
|
|
|
2656
2659
|
}
|
|
2657
2660
|
}
|
|
2658
2661
|
static create(e, r) {
|
|
2659
|
-
return new
|
|
2662
|
+
return new ut({
|
|
2660
2663
|
in: e,
|
|
2661
2664
|
out: r,
|
|
2662
2665
|
typeName: w.ZodPipeline
|
|
2663
2666
|
});
|
|
2664
2667
|
}
|
|
2665
2668
|
}
|
|
2666
|
-
class
|
|
2669
|
+
class jt extends T {
|
|
2667
2670
|
_parse(e) {
|
|
2668
2671
|
const r = this._def.innerType._parse(e);
|
|
2669
2672
|
return ze(r) && (r.value = Object.freeze(r.value)), r;
|
|
2670
2673
|
}
|
|
2671
2674
|
}
|
|
2672
|
-
|
|
2675
|
+
jt.create = (t, e) => new jt({
|
|
2673
2676
|
innerType: t,
|
|
2674
2677
|
typeName: w.ZodReadonly,
|
|
2675
2678
|
..._(e)
|
|
2676
2679
|
});
|
|
2677
|
-
const
|
|
2680
|
+
const Gr = (t, e = {}, r) => t ? $e.create().superRefine((n, s) => {
|
|
2678
2681
|
var i, a;
|
|
2679
2682
|
if (!t(n)) {
|
|
2680
2683
|
const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, c = (a = (i = o.fatal) !== null && i !== void 0 ? i : r) !== null && a !== void 0 ? a : !0, f = typeof o == "string" ? { message: o } : o;
|
|
2681
2684
|
s.addIssue({ code: "custom", ...f, fatal: c });
|
|
2682
2685
|
}
|
|
2683
|
-
}) : $e.create(),
|
|
2686
|
+
}) : $e.create(), Ss = {
|
|
2684
2687
|
object: M.lazycreate
|
|
2685
2688
|
};
|
|
2686
2689
|
var w;
|
|
2687
2690
|
(function(t) {
|
|
2688
2691
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
|
|
2689
2692
|
})(w || (w = {}));
|
|
2690
|
-
const
|
|
2693
|
+
const As = (t, e = {
|
|
2691
2694
|
message: `Input not instance of ${t.name}`
|
|
2692
|
-
}) =>
|
|
2695
|
+
}) => Gr((r) => r instanceof t, e), Fr = q.create, Hr = be.create, Is = Mt.create, Ns = we.create, Jr = qe.create, ks = Ne.create, Es = Nt.create, Cs = Ye.create, Ms = We.create, js = $e.create, Rs = Ae.create, Zs = le.create, $s = kt.create, Ls = W.create, Bs = M.create, Ps = M.strictCreate, Us = Ke.create, Ds = Pt.create, Vs = Ge.create, zs = Q.create, qs = Fe.create, Ys = Et.create, Ws = ke.create, Ks = Ze.create, Gs = He.create, Fs = Je.create, Hs = xe.create, Js = Xe.create, Xs = Le.create, $r = K.create, Qs = ue.create, ei = Ee.create, ti = K.createWithPreprocess, ri = ut.create, ni = () => Fr().optional(), si = () => Hr().optional(), ii = () => Jr().optional(), ai = {
|
|
2693
2696
|
string: (t) => q.create({ ...t, coerce: !0 }),
|
|
2694
2697
|
number: (t) => be.create({ ...t, coerce: !0 }),
|
|
2695
2698
|
boolean: (t) => qe.create({
|
|
@@ -2698,28 +2701,28 @@ const xs = (t, e = {
|
|
|
2698
2701
|
}),
|
|
2699
2702
|
bigint: (t) => we.create({ ...t, coerce: !0 }),
|
|
2700
2703
|
date: (t) => Ne.create({ ...t, coerce: !0 })
|
|
2701
|
-
},
|
|
2704
|
+
}, oi = O;
|
|
2702
2705
|
var d = /* @__PURE__ */ Object.freeze({
|
|
2703
2706
|
__proto__: null,
|
|
2704
2707
|
defaultErrorMap: Ve,
|
|
2705
|
-
setErrorMap:
|
|
2706
|
-
getErrorMap:
|
|
2707
|
-
makeIssue:
|
|
2708
|
-
EMPTY_PATH:
|
|
2708
|
+
setErrorMap: ds,
|
|
2709
|
+
getErrorMap: St,
|
|
2710
|
+
makeIssue: At,
|
|
2711
|
+
EMPTY_PATH: fs,
|
|
2709
2712
|
addIssueToContext: m,
|
|
2710
2713
|
ParseStatus: B,
|
|
2711
2714
|
INVALID: O,
|
|
2712
|
-
DIRTY:
|
|
2715
|
+
DIRTY: Yr,
|
|
2713
2716
|
OK: P,
|
|
2714
|
-
isAborted:
|
|
2715
|
-
isDirty:
|
|
2717
|
+
isAborted: nr,
|
|
2718
|
+
isDirty: sr,
|
|
2716
2719
|
isValid: ze,
|
|
2717
|
-
isAsync:
|
|
2720
|
+
isAsync: It,
|
|
2718
2721
|
get util() {
|
|
2719
2722
|
return I;
|
|
2720
2723
|
},
|
|
2721
2724
|
get objectUtil() {
|
|
2722
|
-
return
|
|
2725
|
+
return rr;
|
|
2723
2726
|
},
|
|
2724
2727
|
ZodParsedType: y,
|
|
2725
2728
|
getParsedType: pe,
|
|
@@ -2729,21 +2732,21 @@ var d = /* @__PURE__ */ Object.freeze({
|
|
|
2729
2732
|
ZodBigInt: we,
|
|
2730
2733
|
ZodBoolean: qe,
|
|
2731
2734
|
ZodDate: Ne,
|
|
2732
|
-
ZodSymbol:
|
|
2735
|
+
ZodSymbol: Nt,
|
|
2733
2736
|
ZodUndefined: Ye,
|
|
2734
2737
|
ZodNull: We,
|
|
2735
2738
|
ZodAny: $e,
|
|
2736
2739
|
ZodUnknown: Ae,
|
|
2737
2740
|
ZodNever: le,
|
|
2738
|
-
ZodVoid:
|
|
2741
|
+
ZodVoid: kt,
|
|
2739
2742
|
ZodArray: W,
|
|
2740
2743
|
ZodObject: M,
|
|
2741
2744
|
ZodUnion: Ke,
|
|
2742
|
-
ZodDiscriminatedUnion:
|
|
2745
|
+
ZodDiscriminatedUnion: Pt,
|
|
2743
2746
|
ZodIntersection: Ge,
|
|
2744
2747
|
ZodTuple: Q,
|
|
2745
2748
|
ZodRecord: Fe,
|
|
2746
|
-
ZodMap:
|
|
2749
|
+
ZodMap: Et,
|
|
2747
2750
|
ZodSet: ke,
|
|
2748
2751
|
ZodFunction: Ze,
|
|
2749
2752
|
ZodLazy: He,
|
|
@@ -2756,84 +2759,84 @@ var d = /* @__PURE__ */ Object.freeze({
|
|
|
2756
2759
|
ZodOptional: ue,
|
|
2757
2760
|
ZodNullable: Ee,
|
|
2758
2761
|
ZodDefault: Qe,
|
|
2759
|
-
ZodCatch:
|
|
2760
|
-
ZodNaN:
|
|
2761
|
-
BRAND:
|
|
2762
|
-
ZodBranded:
|
|
2763
|
-
ZodPipeline:
|
|
2764
|
-
ZodReadonly:
|
|
2765
|
-
custom:
|
|
2762
|
+
ZodCatch: Ct,
|
|
2763
|
+
ZodNaN: Mt,
|
|
2764
|
+
BRAND: Ts,
|
|
2765
|
+
ZodBranded: Kr,
|
|
2766
|
+
ZodPipeline: ut,
|
|
2767
|
+
ZodReadonly: jt,
|
|
2768
|
+
custom: Gr,
|
|
2766
2769
|
Schema: T,
|
|
2767
2770
|
ZodSchema: T,
|
|
2768
|
-
late:
|
|
2771
|
+
late: Ss,
|
|
2769
2772
|
get ZodFirstPartyTypeKind() {
|
|
2770
2773
|
return w;
|
|
2771
2774
|
},
|
|
2772
|
-
coerce:
|
|
2773
|
-
any:
|
|
2774
|
-
array:
|
|
2775
|
-
bigint:
|
|
2776
|
-
boolean:
|
|
2777
|
-
date:
|
|
2778
|
-
discriminatedUnion:
|
|
2779
|
-
effect:
|
|
2780
|
-
enum:
|
|
2781
|
-
function:
|
|
2782
|
-
instanceof:
|
|
2783
|
-
intersection:
|
|
2784
|
-
lazy:
|
|
2785
|
-
literal:
|
|
2786
|
-
map:
|
|
2787
|
-
nan:
|
|
2788
|
-
nativeEnum:
|
|
2789
|
-
never:
|
|
2790
|
-
null:
|
|
2791
|
-
nullable:
|
|
2792
|
-
number:
|
|
2793
|
-
object:
|
|
2794
|
-
oboolean:
|
|
2795
|
-
onumber:
|
|
2796
|
-
optional:
|
|
2797
|
-
ostring:
|
|
2798
|
-
pipeline:
|
|
2799
|
-
preprocess:
|
|
2800
|
-
promise:
|
|
2801
|
-
record:
|
|
2802
|
-
set:
|
|
2803
|
-
strictObject:
|
|
2804
|
-
string:
|
|
2805
|
-
symbol:
|
|
2806
|
-
transformer:
|
|
2807
|
-
tuple:
|
|
2808
|
-
undefined:
|
|
2809
|
-
union:
|
|
2810
|
-
unknown:
|
|
2811
|
-
void:
|
|
2812
|
-
NEVER:
|
|
2775
|
+
coerce: ai,
|
|
2776
|
+
any: js,
|
|
2777
|
+
array: Ls,
|
|
2778
|
+
bigint: Ns,
|
|
2779
|
+
boolean: Jr,
|
|
2780
|
+
date: ks,
|
|
2781
|
+
discriminatedUnion: Ds,
|
|
2782
|
+
effect: $r,
|
|
2783
|
+
enum: Hs,
|
|
2784
|
+
function: Ks,
|
|
2785
|
+
instanceof: As,
|
|
2786
|
+
intersection: Vs,
|
|
2787
|
+
lazy: Gs,
|
|
2788
|
+
literal: Fs,
|
|
2789
|
+
map: Ys,
|
|
2790
|
+
nan: Is,
|
|
2791
|
+
nativeEnum: Js,
|
|
2792
|
+
never: Zs,
|
|
2793
|
+
null: Ms,
|
|
2794
|
+
nullable: ei,
|
|
2795
|
+
number: Hr,
|
|
2796
|
+
object: Bs,
|
|
2797
|
+
oboolean: ii,
|
|
2798
|
+
onumber: si,
|
|
2799
|
+
optional: Qs,
|
|
2800
|
+
ostring: ni,
|
|
2801
|
+
pipeline: ri,
|
|
2802
|
+
preprocess: ti,
|
|
2803
|
+
promise: Xs,
|
|
2804
|
+
record: qs,
|
|
2805
|
+
set: Ws,
|
|
2806
|
+
strictObject: Ps,
|
|
2807
|
+
string: Fr,
|
|
2808
|
+
symbol: Es,
|
|
2809
|
+
transformer: $r,
|
|
2810
|
+
tuple: zs,
|
|
2811
|
+
undefined: Cs,
|
|
2812
|
+
union: Us,
|
|
2813
|
+
unknown: Rs,
|
|
2814
|
+
void: $s,
|
|
2815
|
+
NEVER: oi,
|
|
2813
2816
|
ZodIssueCode: h,
|
|
2814
|
-
quotelessJson:
|
|
2817
|
+
quotelessJson: ls,
|
|
2815
2818
|
ZodError: Y
|
|
2816
2819
|
});
|
|
2817
|
-
const
|
|
2820
|
+
const dr = d.tuple([d.number(), d.number()]), fr = d.object({ width: d.number(), height: d.number() }), ci = d.object({
|
|
2818
2821
|
signedWidth: d.number(),
|
|
2819
2822
|
signedHeight: d.number()
|
|
2820
|
-
}),
|
|
2821
|
-
d.enum(
|
|
2822
|
-
const
|
|
2823
|
-
d.enum(
|
|
2824
|
-
const et = d.object({ x: d.number(), y: d.number() }),
|
|
2825
|
-
d.union([
|
|
2826
|
-
const
|
|
2823
|
+
}), ui = ["width", "height"];
|
|
2824
|
+
d.enum(ui);
|
|
2825
|
+
const Xr = ["start", "center", "end"], li = ["signedWidth", "signedHeight"];
|
|
2826
|
+
d.enum(li);
|
|
2827
|
+
const et = d.object({ x: d.number(), y: d.number() }), Qr = d.object({ clientX: d.number(), clientY: d.number() }), hr = ["x", "y"], en = d.enum(hr), tn = ["top", "right", "bottom", "left"], di = d.enum(tn), Ut = ["left", "right"], pr = d.enum(Ut), yr = ["top", "bottom"], mr = d.enum(yr), gr = ["center"], Lr = d.enum(gr), fi = [...tn, ...gr], Dt = d.enum(fi), hi = d.enum(Xr), rn = ["first", "last"], pi = d.enum(rn), nn = d.object({ lower: d.number(), upper: d.number() });
|
|
2828
|
+
d.union([nn, dr]);
|
|
2829
|
+
const yi = d.union([en, Dt]), mi = d.union([en, Dt, d.instanceof(String)]), E = (t, e) => {
|
|
2827
2830
|
const r = { lower: 0, upper: 0 };
|
|
2828
|
-
return typeof t == "number" ? e != null ? (r.lower = t, r.upper = e) : (r.lower = 0, r.upper = t) : Array.isArray(t) ? [r.lower, r.upper] = t : (r.lower = t.lower, r.upper = t.upper),
|
|
2829
|
-
},
|
|
2831
|
+
return typeof t == "number" ? e != null ? (r.lower = t, r.upper = e) : (r.lower = 0, r.upper = t) : Array.isArray(t) ? [r.lower, r.upper] = t : (r.lower = t.lower, r.upper = t.upper), sn(r);
|
|
2832
|
+
}, gi = { lower: 0, upper: 0 }, vi = { lower: -1 / 0, upper: 1 / 0 }, bi = { lower: 0, upper: 1 }, wi = { lower: -1, upper: 1 }, xi = (t, e) => {
|
|
2830
2833
|
if (t == null && e == null)
|
|
2831
2834
|
return !0;
|
|
2832
2835
|
if (t == null || e == null)
|
|
2833
2836
|
return !1;
|
|
2834
2837
|
const r = E(t), n = E(e);
|
|
2835
2838
|
return (r == null ? void 0 : r.lower) === (n == null ? void 0 : n.lower) && (r == null ? void 0 : r.upper) === (n == null ? void 0 : n.upper);
|
|
2836
|
-
},
|
|
2839
|
+
}, sn = (t) => t.lower > t.upper ? { lower: t.upper, upper: t.lower } : t, Oi = (t, e) => {
|
|
2837
2840
|
const r = E(t);
|
|
2838
2841
|
return e < r.lower ? r.lower : e >= r.upper ? r.upper - 1 : e;
|
|
2839
2842
|
}, Se = (t, e) => {
|
|
@@ -2842,48 +2845,48 @@ const li = d.union([Xr, Ut]), di = d.union([Xr, Ut, d.instanceof(String)]), E =
|
|
|
2842
2845
|
return e >= r.lower && e < r.upper;
|
|
2843
2846
|
const n = E(e);
|
|
2844
2847
|
return n.lower >= r.lower && n.upper <= r.upper;
|
|
2845
|
-
},
|
|
2848
|
+
}, _i = (t, e) => {
|
|
2846
2849
|
const r = E(t), n = E(e);
|
|
2847
2850
|
return r.lower == n.lower ? !0 : n.upper == r.lower || n.lower == r.upper ? !1 : Se(r, n.upper) || Se(r, n.lower) || Se(n, r.upper) || Se(n, r.lower);
|
|
2848
|
-
},
|
|
2851
|
+
}, Vt = (t) => {
|
|
2849
2852
|
const e = E(t);
|
|
2850
2853
|
return e.upper - e.lower;
|
|
2851
|
-
},
|
|
2854
|
+
}, Ti = (t) => {
|
|
2852
2855
|
const e = E(t);
|
|
2853
2856
|
return e.lower === 0 && e.upper === 0;
|
|
2854
|
-
},
|
|
2857
|
+
}, Si = (t) => Vt(t) === 0, Ai = (t) => {
|
|
2855
2858
|
const e = E(t);
|
|
2856
2859
|
return Number.isFinite(e.lower) && Number.isFinite(e.upper);
|
|
2857
|
-
},
|
|
2860
|
+
}, Ii = (t) => ({
|
|
2858
2861
|
lower: Math.min(...t.map((e) => E(e).lower)),
|
|
2859
2862
|
upper: Math.max(...t.map((e) => E(e).upper))
|
|
2860
|
-
}),
|
|
2863
|
+
}), Ni = (t) => ({
|
|
2861
2864
|
lower: Math.max(...t.map((e) => E(e).lower)),
|
|
2862
2865
|
upper: Math.min(...t.map((e) => E(e).upper))
|
|
2863
|
-
}),
|
|
2866
|
+
}), ki = (t) => {
|
|
2864
2867
|
const e = E(t);
|
|
2865
|
-
return Array.from({ length:
|
|
2866
|
-
},
|
|
2868
|
+
return Array.from({ length: Vt(t) }, (r, n) => n + e.lower);
|
|
2869
|
+
}, ar = (t, e) => {
|
|
2867
2870
|
const r = t.map(E), n = r.findIndex((i, a) => Se(i, e) || e < r[a].lower);
|
|
2868
2871
|
if (n === -1)
|
|
2869
2872
|
return { index: t.length, position: 0 };
|
|
2870
2873
|
const s = r[n];
|
|
2871
2874
|
return Se(s, e) ? { index: n, position: e - s.lower } : { index: n, position: 0 };
|
|
2872
|
-
},
|
|
2875
|
+
}, tr = {
|
|
2873
2876
|
removeBefore: 0,
|
|
2874
2877
|
removeAfter: 0,
|
|
2875
2878
|
insertInto: 0,
|
|
2876
2879
|
deleteInBetween: 0
|
|
2877
|
-
},
|
|
2880
|
+
}, an = (t, e) => {
|
|
2878
2881
|
const r = t.map(E), n = E(e);
|
|
2879
2882
|
if (r.length === 0)
|
|
2880
|
-
return
|
|
2881
|
-
const s =
|
|
2883
|
+
return tr;
|
|
2884
|
+
const s = ar(t, n.lower), i = ar(t, n.upper);
|
|
2882
2885
|
if (s.index == t.length)
|
|
2883
|
-
return { ...
|
|
2886
|
+
return { ...tr, insertInto: t.length };
|
|
2884
2887
|
if (i.index == 0)
|
|
2885
2888
|
return {
|
|
2886
|
-
...
|
|
2889
|
+
...tr,
|
|
2887
2890
|
removeAfter: i.position
|
|
2888
2891
|
};
|
|
2889
2892
|
if (s.index === i.index)
|
|
@@ -2893,107 +2896,107 @@ const li = d.union([Xr, Ut]), di = d.union([Xr, Ut, d.instanceof(String)]), E =
|
|
|
2893
2896
|
insertInto: s.index,
|
|
2894
2897
|
deleteInBetween: 0
|
|
2895
2898
|
};
|
|
2896
|
-
let a = i.index - s.index, o = s.index, c =
|
|
2899
|
+
let a = i.index - s.index, o = s.index, c = Vt(r[s.index]) - s.position;
|
|
2897
2900
|
return s.position != 0 ? (a -= 1, o += 1) : c = 0, {
|
|
2898
2901
|
removeBefore: c,
|
|
2899
2902
|
removeAfter: i.position,
|
|
2900
2903
|
insertInto: o,
|
|
2901
2904
|
deleteInBetween: a
|
|
2902
2905
|
};
|
|
2903
|
-
},
|
|
2904
|
-
const r =
|
|
2906
|
+
}, Ei = (t, e) => {
|
|
2907
|
+
const r = an(t, e);
|
|
2905
2908
|
if (r == null)
|
|
2906
2909
|
return t;
|
|
2907
2910
|
const n = E(e);
|
|
2908
2911
|
return n.lower += r.removeBefore, n.upper -= r.removeAfter, t.splice(r.insertInto, r.deleteInBetween, n), t.map(E);
|
|
2909
|
-
},
|
|
2912
|
+
}, Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2910
2913
|
__proto__: null,
|
|
2911
|
-
CLIP:
|
|
2912
|
-
DECIMAL:
|
|
2913
|
-
INFINITE:
|
|
2914
|
-
ZERO:
|
|
2915
|
-
bounds:
|
|
2916
|
-
buildInsertionPlan:
|
|
2917
|
-
clamp:
|
|
2914
|
+
CLIP: wi,
|
|
2915
|
+
DECIMAL: bi,
|
|
2916
|
+
INFINITE: vi,
|
|
2917
|
+
ZERO: gi,
|
|
2918
|
+
bounds: nn,
|
|
2919
|
+
buildInsertionPlan: an,
|
|
2920
|
+
clamp: Oi,
|
|
2918
2921
|
construct: E,
|
|
2919
|
-
constructArray:
|
|
2922
|
+
constructArray: ki,
|
|
2920
2923
|
contains: Se,
|
|
2921
|
-
equals:
|
|
2922
|
-
findInsertPosition:
|
|
2923
|
-
insert:
|
|
2924
|
-
isFinite:
|
|
2925
|
-
isZero:
|
|
2926
|
-
makeValid:
|
|
2927
|
-
max:
|
|
2928
|
-
min:
|
|
2929
|
-
overlapsWith:
|
|
2930
|
-
span:
|
|
2931
|
-
spanIsZero:
|
|
2932
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2924
|
+
equals: xi,
|
|
2925
|
+
findInsertPosition: ar,
|
|
2926
|
+
insert: Ei,
|
|
2927
|
+
isFinite: Ai,
|
|
2928
|
+
isZero: Ti,
|
|
2929
|
+
makeValid: sn,
|
|
2930
|
+
max: Ii,
|
|
2931
|
+
min: Ni,
|
|
2932
|
+
overlapsWith: _i,
|
|
2933
|
+
span: Vt,
|
|
2934
|
+
spanIsZero: Si
|
|
2935
|
+
}, Symbol.toStringTag, { value: "Module" })), on = yi, fe = (t) => hr.includes(t) ? t : yr.includes(t) ? "y" : "x", Ci = (t) => fe(t) === "x" ? "y" : "x", Mi = (t) => fe(t) === "x" ? "width" : "height", ji = (t) => fe(t) === "x" ? "left" : "top", Ri = (t) => on.safeParse(t).success, Zi = (t) => fe(t) === "x" ? "signedWidth" : "signedHeight", Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2933
2936
|
__proto__: null,
|
|
2934
2937
|
construct: fe,
|
|
2935
|
-
crude:
|
|
2936
|
-
dimension:
|
|
2937
|
-
isDirection:
|
|
2938
|
-
location:
|
|
2939
|
-
signedDimension:
|
|
2940
|
-
swap:
|
|
2938
|
+
crude: on,
|
|
2939
|
+
dimension: Mi,
|
|
2940
|
+
isDirection: Ri,
|
|
2941
|
+
location: ji,
|
|
2942
|
+
signedDimension: Zi,
|
|
2943
|
+
swap: Ci
|
|
2941
2944
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2942
|
-
var z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, S = {},
|
|
2943
|
-
Object.defineProperty(
|
|
2944
|
-
function
|
|
2945
|
+
var z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, S = {}, zt = {};
|
|
2946
|
+
Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
2947
|
+
function $i(t) {
|
|
2945
2948
|
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/[^A-Za-z0-9]+/g, "$").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
2946
2949
|
return r + "$" + n;
|
|
2947
2950
|
}).toLowerCase().replace(/(\$)(\w)/g, function(e, r, n) {
|
|
2948
2951
|
return n.toUpperCase();
|
|
2949
2952
|
}) : "";
|
|
2950
2953
|
}
|
|
2951
|
-
|
|
2952
|
-
var
|
|
2953
|
-
Object.defineProperty(
|
|
2954
|
-
function
|
|
2954
|
+
zt.default = $i;
|
|
2955
|
+
var qt = {};
|
|
2956
|
+
Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
2957
|
+
function Li(t) {
|
|
2955
2958
|
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
2956
2959
|
return r + "_" + n.toLowerCase();
|
|
2957
2960
|
}).replace(/[^A-Za-z0-9]+|_+/g, "_").toLowerCase() : "";
|
|
2958
2961
|
}
|
|
2959
|
-
|
|
2960
|
-
var
|
|
2961
|
-
Object.defineProperty(
|
|
2962
|
-
function
|
|
2962
|
+
qt.default = Li;
|
|
2963
|
+
var Yt = {};
|
|
2964
|
+
Object.defineProperty(Yt, "__esModule", { value: !0 });
|
|
2965
|
+
function Bi(t) {
|
|
2963
2966
|
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "$").replace(/[^A-Za-z0-9]+/g, "$").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
2964
2967
|
return r + "$" + n;
|
|
2965
2968
|
}).toLowerCase().replace(/(\$)(\w?)/g, function(e, r, n) {
|
|
2966
2969
|
return n.toUpperCase();
|
|
2967
2970
|
}) : "";
|
|
2968
2971
|
}
|
|
2969
|
-
|
|
2970
|
-
var gr = {};
|
|
2971
|
-
Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
2972
|
-
function Ri(t) {
|
|
2973
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
2974
|
-
return r + "_" + n.toLowerCase();
|
|
2975
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, ".").toLowerCase() : "";
|
|
2976
|
-
}
|
|
2977
|
-
gr.default = Ri;
|
|
2972
|
+
Yt.default = Bi;
|
|
2978
2973
|
var vr = {};
|
|
2979
2974
|
Object.defineProperty(vr, "__esModule", { value: !0 });
|
|
2980
|
-
function
|
|
2975
|
+
function Pi(t) {
|
|
2981
2976
|
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
2982
2977
|
return r + "_" + n.toLowerCase();
|
|
2983
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, "
|
|
2978
|
+
}).replace(/[^A-Za-z0-9]+|_+/g, ".").toLowerCase() : "";
|
|
2984
2979
|
}
|
|
2985
|
-
vr.default =
|
|
2980
|
+
vr.default = Pi;
|
|
2986
2981
|
var br = {};
|
|
2987
2982
|
Object.defineProperty(br, "__esModule", { value: !0 });
|
|
2988
|
-
function
|
|
2983
|
+
function Ui(t) {
|
|
2989
2984
|
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
2990
2985
|
return r + "_" + n.toLowerCase();
|
|
2991
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, "
|
|
2986
|
+
}).replace(/[^A-Za-z0-9]+|_+/g, "/").toLowerCase() : "";
|
|
2992
2987
|
}
|
|
2993
|
-
br.default =
|
|
2988
|
+
br.default = Ui;
|
|
2994
2989
|
var wr = {};
|
|
2995
2990
|
Object.defineProperty(wr, "__esModule", { value: !0 });
|
|
2996
|
-
function
|
|
2991
|
+
function Di(t) {
|
|
2992
|
+
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
2993
|
+
return r + "_" + n.toLowerCase();
|
|
2994
|
+
}).replace(/[^A-Za-z0-9]+|_+/g, " ").toLowerCase() : "";
|
|
2995
|
+
}
|
|
2996
|
+
wr.default = Di;
|
|
2997
|
+
var xr = {};
|
|
2998
|
+
Object.defineProperty(xr, "__esModule", { value: !0 });
|
|
2999
|
+
function Vi(t) {
|
|
2997
3000
|
if (t === void 0 && (t = ""), !t)
|
|
2998
3001
|
return "";
|
|
2999
3002
|
var e = String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(r, n, s) {
|
|
@@ -3001,26 +3004,26 @@ function Li(t) {
|
|
|
3001
3004
|
}).replace(/[^A-Za-z0-9]+|_+/g, " ").toLowerCase();
|
|
3002
3005
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3003
3006
|
}
|
|
3004
|
-
|
|
3005
|
-
var
|
|
3006
|
-
Object.defineProperty(
|
|
3007
|
-
function
|
|
3007
|
+
xr.default = Vi;
|
|
3008
|
+
var Or = {};
|
|
3009
|
+
Object.defineProperty(Or, "__esModule", { value: !0 });
|
|
3010
|
+
function zi(t) {
|
|
3008
3011
|
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
3009
3012
|
return r + "_" + n.toLowerCase();
|
|
3010
3013
|
}).replace(/[^A-Za-z0-9]+|_+/g, " ").toLowerCase().replace(/( ?)(\w+)( ?)/g, function(e, r, n, s) {
|
|
3011
3014
|
return r + n.charAt(0).toUpperCase() + n.slice(1) + s;
|
|
3012
3015
|
}) : "";
|
|
3013
3016
|
}
|
|
3014
|
-
|
|
3015
|
-
var
|
|
3016
|
-
Object.defineProperty(
|
|
3017
|
-
function
|
|
3017
|
+
Or.default = zi;
|
|
3018
|
+
var Wt = {};
|
|
3019
|
+
Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
3020
|
+
function qi(t) {
|
|
3018
3021
|
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
3019
3022
|
return r + "_" + n.toLowerCase();
|
|
3020
3023
|
}).replace(/[^A-Za-z0-9]+|_+/g, "-").toLowerCase() : "";
|
|
3021
3024
|
}
|
|
3022
|
-
|
|
3023
|
-
var
|
|
3025
|
+
Wt.default = qi;
|
|
3026
|
+
var _r = {}, Ce = {};
|
|
3024
3027
|
(function(t) {
|
|
3025
3028
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.belongToTypes = t.isValidObject = t.isArrayObject = t.validateOptions = t.DefaultOption = void 0, t.DefaultOption = {
|
|
3026
3029
|
recursive: !1,
|
|
@@ -3038,7 +3041,7 @@ var Or = {}, Ce = {};
|
|
|
3038
3041
|
});
|
|
3039
3042
|
};
|
|
3040
3043
|
})(Ce);
|
|
3041
|
-
var
|
|
3044
|
+
var Yi = z && z.__spreadArrays || function() {
|
|
3042
3045
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3043
3046
|
t += arguments[e].length;
|
|
3044
3047
|
for (var n = Array(t), s = 0, e = 0; e < r; e++)
|
|
@@ -3046,29 +3049,29 @@ var Ui = z && z.__spreadArrays || function() {
|
|
|
3046
3049
|
n[s] = i[a];
|
|
3047
3050
|
return n;
|
|
3048
3051
|
};
|
|
3049
|
-
Object.defineProperty(
|
|
3052
|
+
Object.defineProperty(_r, "__esModule", { value: !0 });
|
|
3050
3053
|
var re = Ce;
|
|
3051
|
-
function
|
|
3054
|
+
function ht(t, e) {
|
|
3052
3055
|
if (e === void 0 && (e = re.DefaultOption), !re.isValidObject(t))
|
|
3053
3056
|
return null;
|
|
3054
3057
|
e = re.validateOptions(e);
|
|
3055
3058
|
var r = {};
|
|
3056
3059
|
return Object.keys(t).forEach(function(n) {
|
|
3057
3060
|
var s = t[n], i = n.toLowerCase();
|
|
3058
|
-
e.recursive && (re.isValidObject(s) ? re.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3061
|
+
e.recursive && (re.isValidObject(s) ? re.belongToTypes(s, e.keepTypesOnRecursion) || (s = ht(s, e)) : e.recursiveInArray && re.isArrayObject(s) && (s = Yi(s).map(function(a) {
|
|
3059
3062
|
var o = a;
|
|
3060
3063
|
if (re.isValidObject(a))
|
|
3061
|
-
re.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3064
|
+
re.belongToTypes(o, e.keepTypesOnRecursion) || (o = ht(a, e));
|
|
3062
3065
|
else if (re.isArrayObject(a)) {
|
|
3063
|
-
var c =
|
|
3066
|
+
var c = ht({ key: a }, e);
|
|
3064
3067
|
o = c.key;
|
|
3065
3068
|
}
|
|
3066
3069
|
return o;
|
|
3067
3070
|
}))), r[i] = s;
|
|
3068
3071
|
}), r;
|
|
3069
3072
|
}
|
|
3070
|
-
|
|
3071
|
-
var
|
|
3073
|
+
_r.default = ht;
|
|
3074
|
+
var Tr = {}, Wi = z && z.__spreadArrays || function() {
|
|
3072
3075
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3073
3076
|
t += arguments[e].length;
|
|
3074
3077
|
for (var n = Array(t), s = 0, e = 0; e < r; e++)
|
|
@@ -3076,29 +3079,29 @@ var _r = {}, Di = z && z.__spreadArrays || function() {
|
|
|
3076
3079
|
n[s] = i[a];
|
|
3077
3080
|
return n;
|
|
3078
3081
|
};
|
|
3079
|
-
Object.defineProperty(
|
|
3082
|
+
Object.defineProperty(Tr, "__esModule", { value: !0 });
|
|
3080
3083
|
var ne = Ce;
|
|
3081
|
-
function
|
|
3084
|
+
function pt(t, e) {
|
|
3082
3085
|
if (e === void 0 && (e = ne.DefaultOption), !ne.isValidObject(t))
|
|
3083
3086
|
return null;
|
|
3084
3087
|
e = ne.validateOptions(e);
|
|
3085
3088
|
var r = {};
|
|
3086
3089
|
return Object.keys(t).forEach(function(n) {
|
|
3087
3090
|
var s = t[n], i = n.toUpperCase();
|
|
3088
|
-
e.recursive && (ne.isValidObject(s) ? ne.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3091
|
+
e.recursive && (ne.isValidObject(s) ? ne.belongToTypes(s, e.keepTypesOnRecursion) || (s = pt(s, e)) : e.recursiveInArray && ne.isArrayObject(s) && (s = Wi(s).map(function(a) {
|
|
3089
3092
|
var o = a;
|
|
3090
3093
|
if (ne.isValidObject(a))
|
|
3091
|
-
ne.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3094
|
+
ne.belongToTypes(o, e.keepTypesOnRecursion) || (o = pt(a, e));
|
|
3092
3095
|
else if (ne.isArrayObject(a)) {
|
|
3093
|
-
var c =
|
|
3096
|
+
var c = pt({ key: a }, e);
|
|
3094
3097
|
o = c.key;
|
|
3095
3098
|
}
|
|
3096
3099
|
return o;
|
|
3097
3100
|
}))), r[i] = s;
|
|
3098
3101
|
}), r;
|
|
3099
3102
|
}
|
|
3100
|
-
|
|
3101
|
-
var
|
|
3103
|
+
Tr.default = pt;
|
|
3104
|
+
var Sr = {}, Ki = z && z.__spreadArrays || function() {
|
|
3102
3105
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3103
3106
|
t += arguments[e].length;
|
|
3104
3107
|
for (var n = Array(t), s = 0, e = 0; e < r; e++)
|
|
@@ -3106,29 +3109,29 @@ var Tr = {}, Vi = z && z.__spreadArrays || function() {
|
|
|
3106
3109
|
n[s] = i[a];
|
|
3107
3110
|
return n;
|
|
3108
3111
|
};
|
|
3109
|
-
Object.defineProperty(
|
|
3110
|
-
var se = Ce,
|
|
3111
|
-
function
|
|
3112
|
+
Object.defineProperty(Sr, "__esModule", { value: !0 });
|
|
3113
|
+
var se = Ce, Gi = zt;
|
|
3114
|
+
function yt(t, e) {
|
|
3112
3115
|
if (e === void 0 && (e = se.DefaultOption), !se.isValidObject(t))
|
|
3113
3116
|
return null;
|
|
3114
3117
|
e = se.validateOptions(e);
|
|
3115
3118
|
var r = {};
|
|
3116
3119
|
return Object.keys(t).forEach(function(n) {
|
|
3117
|
-
var s = t[n], i =
|
|
3118
|
-
e.recursive && (se.isValidObject(s) ? se.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3120
|
+
var s = t[n], i = Gi.default(n);
|
|
3121
|
+
e.recursive && (se.isValidObject(s) ? se.belongToTypes(s, e.keepTypesOnRecursion) || (s = yt(s, e)) : e.recursiveInArray && se.isArrayObject(s) && (s = Ki(s).map(function(a) {
|
|
3119
3122
|
var o = a;
|
|
3120
3123
|
if (se.isValidObject(a))
|
|
3121
|
-
se.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3124
|
+
se.belongToTypes(o, e.keepTypesOnRecursion) || (o = yt(a, e));
|
|
3122
3125
|
else if (se.isArrayObject(a)) {
|
|
3123
|
-
var c =
|
|
3126
|
+
var c = yt({ key: a }, e);
|
|
3124
3127
|
o = c.key;
|
|
3125
3128
|
}
|
|
3126
3129
|
return o;
|
|
3127
3130
|
}))), r[i] = s;
|
|
3128
3131
|
}), r;
|
|
3129
3132
|
}
|
|
3130
|
-
|
|
3131
|
-
var
|
|
3133
|
+
Sr.default = yt;
|
|
3134
|
+
var Ar = {}, Fi = z && z.__spreadArrays || function() {
|
|
3132
3135
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3133
3136
|
t += arguments[e].length;
|
|
3134
3137
|
for (var n = Array(t), s = 0, e = 0; e < r; e++)
|
|
@@ -3136,29 +3139,29 @@ var Sr = {}, qi = z && z.__spreadArrays || function() {
|
|
|
3136
3139
|
n[s] = i[a];
|
|
3137
3140
|
return n;
|
|
3138
3141
|
};
|
|
3139
|
-
Object.defineProperty(
|
|
3140
|
-
var ie = Ce,
|
|
3141
|
-
function
|
|
3142
|
+
Object.defineProperty(Ar, "__esModule", { value: !0 });
|
|
3143
|
+
var ie = Ce, Hi = qt;
|
|
3144
|
+
function mt(t, e) {
|
|
3142
3145
|
if (e === void 0 && (e = ie.DefaultOption), !ie.isValidObject(t))
|
|
3143
3146
|
return null;
|
|
3144
3147
|
e = ie.validateOptions(e);
|
|
3145
3148
|
var r = {};
|
|
3146
3149
|
return Object.keys(t).forEach(function(n) {
|
|
3147
|
-
var s = t[n], i =
|
|
3148
|
-
e.recursive && (ie.isValidObject(s) ? ie.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3150
|
+
var s = t[n], i = Hi.default(n);
|
|
3151
|
+
e.recursive && (ie.isValidObject(s) ? ie.belongToTypes(s, e.keepTypesOnRecursion) || (s = mt(s, e)) : e.recursiveInArray && ie.isArrayObject(s) && (s = Fi(s).map(function(a) {
|
|
3149
3152
|
var o = a;
|
|
3150
3153
|
if (ie.isValidObject(a))
|
|
3151
|
-
ie.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3154
|
+
ie.belongToTypes(o, e.keepTypesOnRecursion) || (o = mt(a, e));
|
|
3152
3155
|
else if (ie.isArrayObject(a)) {
|
|
3153
|
-
var c =
|
|
3156
|
+
var c = mt({ key: a }, e);
|
|
3154
3157
|
o = c.key;
|
|
3155
3158
|
}
|
|
3156
3159
|
return o;
|
|
3157
3160
|
}))), r[i] = s;
|
|
3158
3161
|
}), r;
|
|
3159
3162
|
}
|
|
3160
|
-
|
|
3161
|
-
var
|
|
3163
|
+
Ar.default = mt;
|
|
3164
|
+
var Ir = {}, Ji = z && z.__spreadArrays || function() {
|
|
3162
3165
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3163
3166
|
t += arguments[e].length;
|
|
3164
3167
|
for (var n = Array(t), s = 0, e = 0; e < r; e++)
|
|
@@ -3166,29 +3169,29 @@ var Ar = {}, Wi = z && z.__spreadArrays || function() {
|
|
|
3166
3169
|
n[s] = i[a];
|
|
3167
3170
|
return n;
|
|
3168
3171
|
};
|
|
3169
|
-
Object.defineProperty(
|
|
3170
|
-
var ae = Ce,
|
|
3171
|
-
function
|
|
3172
|
+
Object.defineProperty(Ir, "__esModule", { value: !0 });
|
|
3173
|
+
var ae = Ce, Xi = Yt;
|
|
3174
|
+
function gt(t, e) {
|
|
3172
3175
|
if (e === void 0 && (e = ae.DefaultOption), !ae.isValidObject(t))
|
|
3173
3176
|
return null;
|
|
3174
3177
|
e = ae.validateOptions(e);
|
|
3175
3178
|
var r = {};
|
|
3176
3179
|
return Object.keys(t).forEach(function(n) {
|
|
3177
|
-
var s = t[n], i =
|
|
3178
|
-
e.recursive && (ae.isValidObject(s) ? ae.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3180
|
+
var s = t[n], i = Xi.default(n);
|
|
3181
|
+
e.recursive && (ae.isValidObject(s) ? ae.belongToTypes(s, e.keepTypesOnRecursion) || (s = gt(s, e)) : e.recursiveInArray && ae.isArrayObject(s) && (s = Ji(s).map(function(a) {
|
|
3179
3182
|
var o = a;
|
|
3180
3183
|
if (ae.isValidObject(a))
|
|
3181
|
-
ae.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3184
|
+
ae.belongToTypes(o, e.keepTypesOnRecursion) || (o = gt(a, e));
|
|
3182
3185
|
else if (ae.isArrayObject(a)) {
|
|
3183
|
-
var c =
|
|
3186
|
+
var c = gt({ key: a }, e);
|
|
3184
3187
|
o = c.key;
|
|
3185
3188
|
}
|
|
3186
3189
|
return o;
|
|
3187
3190
|
}))), r[i] = s;
|
|
3188
3191
|
}), r;
|
|
3189
3192
|
}
|
|
3190
|
-
|
|
3191
|
-
var
|
|
3193
|
+
Ir.default = gt;
|
|
3194
|
+
var Nr = {}, Qi = z && z.__spreadArrays || function() {
|
|
3192
3195
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3193
3196
|
t += arguments[e].length;
|
|
3194
3197
|
for (var n = Array(t), s = 0, e = 0; e < r; e++)
|
|
@@ -3196,180 +3199,180 @@ var Ir = {}, Gi = z && z.__spreadArrays || function() {
|
|
|
3196
3199
|
n[s] = i[a];
|
|
3197
3200
|
return n;
|
|
3198
3201
|
};
|
|
3199
|
-
Object.defineProperty(
|
|
3200
|
-
var oe = Ce,
|
|
3201
|
-
function
|
|
3202
|
+
Object.defineProperty(Nr, "__esModule", { value: !0 });
|
|
3203
|
+
var oe = Ce, ea = Wt;
|
|
3204
|
+
function vt(t, e) {
|
|
3202
3205
|
if (e === void 0 && (e = oe.DefaultOption), !oe.isValidObject(t))
|
|
3203
3206
|
return null;
|
|
3204
3207
|
e = oe.validateOptions(e);
|
|
3205
3208
|
var r = {};
|
|
3206
3209
|
return Object.keys(t).forEach(function(n) {
|
|
3207
|
-
var s = t[n], i =
|
|
3208
|
-
e.recursive && (oe.isValidObject(s) ? oe.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3210
|
+
var s = t[n], i = ea.default(n);
|
|
3211
|
+
e.recursive && (oe.isValidObject(s) ? oe.belongToTypes(s, e.keepTypesOnRecursion) || (s = vt(s, e)) : e.recursiveInArray && oe.isArrayObject(s) && (s = Qi(s).map(function(a) {
|
|
3209
3212
|
var o = a;
|
|
3210
3213
|
if (oe.isValidObject(a))
|
|
3211
|
-
oe.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3214
|
+
oe.belongToTypes(o, e.keepTypesOnRecursion) || (o = vt(a, e));
|
|
3212
3215
|
else if (oe.isArrayObject(a)) {
|
|
3213
|
-
var c =
|
|
3216
|
+
var c = vt({ key: a }, e);
|
|
3214
3217
|
o = c.key;
|
|
3215
3218
|
}
|
|
3216
3219
|
return o;
|
|
3217
3220
|
}))), r[i] = s;
|
|
3218
3221
|
}), r;
|
|
3219
3222
|
}
|
|
3220
|
-
|
|
3223
|
+
Nr.default = vt;
|
|
3221
3224
|
Object.defineProperty(S, "__esModule", { value: !0 });
|
|
3222
3225
|
S.kebabKeys = S.pascalKeys = S.snakeKeys = S.camelKeys = S.upperKeys = S.lowerKeys = S.toLowerCase = S.toUpperCase = S.toKebabCase = S.toHeaderCase = S.toSentenceCase = S.toTextCase = S.toPathCase = S.toDotCase = S.toPascalCase = S.toSnakeCase = S.toCamelCase = void 0;
|
|
3223
|
-
var
|
|
3224
|
-
S.toCamelCase =
|
|
3225
|
-
var
|
|
3226
|
-
S.toSnakeCase =
|
|
3227
|
-
var
|
|
3228
|
-
S.toPascalCase =
|
|
3229
|
-
var
|
|
3230
|
-
S.toDotCase =
|
|
3231
|
-
var
|
|
3232
|
-
S.toPathCase =
|
|
3233
|
-
var
|
|
3234
|
-
S.toTextCase =
|
|
3235
|
-
var
|
|
3236
|
-
S.toSentenceCase =
|
|
3237
|
-
var hn = xr;
|
|
3238
|
-
S.toHeaderCase = hn.default;
|
|
3239
|
-
var pn = Yt;
|
|
3240
|
-
S.toKebabCase = pn.default;
|
|
3226
|
+
var cn = zt;
|
|
3227
|
+
S.toCamelCase = cn.default;
|
|
3228
|
+
var un = qt;
|
|
3229
|
+
S.toSnakeCase = un.default;
|
|
3230
|
+
var ln = Yt;
|
|
3231
|
+
S.toPascalCase = ln.default;
|
|
3232
|
+
var dn = vr;
|
|
3233
|
+
S.toDotCase = dn.default;
|
|
3234
|
+
var fn = br;
|
|
3235
|
+
S.toPathCase = fn.default;
|
|
3236
|
+
var hn = wr;
|
|
3237
|
+
S.toTextCase = hn.default;
|
|
3238
|
+
var pn = xr;
|
|
3239
|
+
S.toSentenceCase = pn.default;
|
|
3241
3240
|
var yn = Or;
|
|
3242
|
-
S.
|
|
3243
|
-
var mn =
|
|
3244
|
-
S.
|
|
3245
|
-
var gn =
|
|
3246
|
-
S.
|
|
3247
|
-
var vn =
|
|
3248
|
-
S.
|
|
3249
|
-
var bn =
|
|
3250
|
-
S.
|
|
3251
|
-
var wn =
|
|
3252
|
-
S.
|
|
3253
|
-
var xn =
|
|
3241
|
+
S.toHeaderCase = yn.default;
|
|
3242
|
+
var mn = Wt;
|
|
3243
|
+
S.toKebabCase = mn.default;
|
|
3244
|
+
var gn = _r;
|
|
3245
|
+
S.lowerKeys = gn.default;
|
|
3246
|
+
var vn = Tr;
|
|
3247
|
+
S.upperKeys = vn.default;
|
|
3248
|
+
var bn = Sr;
|
|
3249
|
+
S.camelKeys = bn.default;
|
|
3250
|
+
var wn = Ar;
|
|
3251
|
+
S.snakeKeys = wn.default;
|
|
3252
|
+
var xn = Ir;
|
|
3253
|
+
S.pascalKeys = xn.default;
|
|
3254
|
+
var On = Nr;
|
|
3255
|
+
S.kebabKeys = On.default;
|
|
3256
|
+
var _n = function(t) {
|
|
3254
3257
|
return String(t || "").toLowerCase();
|
|
3255
3258
|
};
|
|
3256
|
-
S.toLowerCase =
|
|
3257
|
-
var
|
|
3259
|
+
S.toLowerCase = _n;
|
|
3260
|
+
var Tn = function(t) {
|
|
3258
3261
|
return String(t || "").toUpperCase();
|
|
3259
3262
|
};
|
|
3260
|
-
S.toUpperCase =
|
|
3261
|
-
var
|
|
3262
|
-
toCamelCase:
|
|
3263
|
-
toSnakeCase:
|
|
3264
|
-
toPascalCase:
|
|
3265
|
-
toDotCase:
|
|
3266
|
-
toPathCase:
|
|
3267
|
-
toTextCase:
|
|
3268
|
-
toSentenceCase:
|
|
3269
|
-
toHeaderCase:
|
|
3270
|
-
toKebabCase:
|
|
3271
|
-
toUpperCase:
|
|
3272
|
-
toLowerCase:
|
|
3273
|
-
lowerKeys:
|
|
3274
|
-
upperKeys:
|
|
3275
|
-
camelKeys:
|
|
3276
|
-
snakeKeys:
|
|
3277
|
-
pascalKeys:
|
|
3278
|
-
kebabKeys:
|
|
3263
|
+
S.toUpperCase = Tn;
|
|
3264
|
+
var ta = {
|
|
3265
|
+
toCamelCase: cn.default,
|
|
3266
|
+
toSnakeCase: un.default,
|
|
3267
|
+
toPascalCase: ln.default,
|
|
3268
|
+
toDotCase: dn.default,
|
|
3269
|
+
toPathCase: fn.default,
|
|
3270
|
+
toTextCase: hn.default,
|
|
3271
|
+
toSentenceCase: pn.default,
|
|
3272
|
+
toHeaderCase: yn.default,
|
|
3273
|
+
toKebabCase: mn.default,
|
|
3274
|
+
toUpperCase: Tn,
|
|
3275
|
+
toLowerCase: _n,
|
|
3276
|
+
lowerKeys: gn.default,
|
|
3277
|
+
upperKeys: vn.default,
|
|
3278
|
+
camelKeys: bn.default,
|
|
3279
|
+
snakeKeys: wn.default,
|
|
3280
|
+
pascalKeys: xn.default,
|
|
3281
|
+
kebabKeys: On.default
|
|
3279
3282
|
};
|
|
3280
|
-
S.default =
|
|
3281
|
-
var
|
|
3282
|
-
const
|
|
3283
|
+
S.default = ta;
|
|
3284
|
+
var Sn = S;
|
|
3285
|
+
const An = {
|
|
3283
3286
|
recursive: !0,
|
|
3284
3287
|
recursiveInArray: !0,
|
|
3285
3288
|
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
3286
|
-
},
|
|
3289
|
+
}, ra = (t) => Sn.snakeKeys(t, An), na = (t) => Sn.camelKeys(t, An);
|
|
3287
3290
|
var tt;
|
|
3288
3291
|
((t) => {
|
|
3289
|
-
t.toSnake =
|
|
3292
|
+
t.toSnake = ra, t.toCamel = na, t.capitalize = (e) => e[0].toUpperCase() + e.slice(1);
|
|
3290
3293
|
})(tt || (tt = {}));
|
|
3291
|
-
const
|
|
3294
|
+
const sa = pr, ia = mr, aa = {
|
|
3292
3295
|
top: "bottom",
|
|
3293
3296
|
right: "left",
|
|
3294
3297
|
bottom: "top",
|
|
3295
3298
|
left: "right",
|
|
3296
3299
|
center: "center"
|
|
3297
|
-
},
|
|
3300
|
+
}, oa = {
|
|
3298
3301
|
top: "left",
|
|
3299
3302
|
right: "top",
|
|
3300
3303
|
bottom: "right",
|
|
3301
3304
|
left: "bottom",
|
|
3302
3305
|
center: "center"
|
|
3303
|
-
},
|
|
3306
|
+
}, ca = mi, Oe = (t) => t instanceof String ? t : hr.includes(t) ? t === "x" ? "left" : "top" : t, bt = (t) => aa[Oe(t)], ua = (t) => oa[Oe(t)], rt = (t) => {
|
|
3304
3307
|
const e = Oe(t);
|
|
3305
3308
|
return e === "top" || e === "bottom" ? "y" : "x";
|
|
3306
|
-
},
|
|
3307
|
-
x:
|
|
3308
|
-
y:
|
|
3309
|
-
}),
|
|
3310
|
-
|
|
3309
|
+
}, In = d.object({
|
|
3310
|
+
x: pr.or(Lr),
|
|
3311
|
+
y: mr.or(Lr)
|
|
3312
|
+
}), Nn = d.object({ x: pr, y: mr }), Pe = Object.freeze({ x: "left", y: "top" }), kr = Object.freeze({ x: "right", y: "top" }), Kt = Object.freeze({ x: "left", y: "bottom" }), Er = Object.freeze({ x: "right", y: "bottom" }), nt = Object.freeze({ x: "center", y: "center" }), kn = Object.freeze({ x: "center", y: "top" }), En = Object.freeze({ x: "center", y: "bottom" }), Cn = Object.freeze({ x: "right", y: "center" }), Mn = Object.freeze({ x: "left", y: "center" }), jn = Object.freeze([
|
|
3313
|
+
Mn,
|
|
3314
|
+
Cn,
|
|
3311
3315
|
kn,
|
|
3312
|
-
|
|
3313
|
-
Nn,
|
|
3316
|
+
En,
|
|
3314
3317
|
Pe,
|
|
3315
|
-
Nr,
|
|
3316
|
-
Wt,
|
|
3317
3318
|
kr,
|
|
3319
|
+
Kt,
|
|
3320
|
+
Er,
|
|
3318
3321
|
nt
|
|
3319
|
-
]),
|
|
3322
|
+
]), Gt = (t, e) => t.x === e.x && t.y === e.y, wt = (t, e) => {
|
|
3320
3323
|
if (typeof e == "object") {
|
|
3321
3324
|
let r = !0;
|
|
3322
3325
|
return "x" in e && (t.x === e.x || (r = !1)), "y" in e && (t.y === e.y || (r = !1)), r;
|
|
3323
3326
|
}
|
|
3324
3327
|
return t.x === e || t.y === e;
|
|
3325
|
-
},
|
|
3328
|
+
}, Rn = (t) => [t.x, t.y], xt = (t) => rt(Oe(t)) === "x", la = (t) => rt(Oe(t)) === "y", da = (t) => `${t.x}${tt.capitalize(t.y)}`, fa = (t, e) => {
|
|
3326
3329
|
let r, n;
|
|
3327
3330
|
if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = Oe(t), n = Oe(e ?? t)), rt(r) === rt(n) && r !== "center" && n !== "center")
|
|
3328
3331
|
throw new Error(
|
|
3329
3332
|
`[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`
|
|
3330
3333
|
);
|
|
3331
3334
|
const s = { ...nt };
|
|
3332
|
-
return r === "center" ?
|
|
3333
|
-
},
|
|
3335
|
+
return r === "center" ? xt(n) ? [s.x, s.y] = [n, r] : [s.x, s.y] = [r, n] : n === "center" ? xt(r) ? [s.x, s.y] = [r, n] : [s.x, s.y] = [n, r] : xt(r) ? [s.x, s.y] = [r, n] : [s.x, s.y] = [n, r], s;
|
|
3336
|
+
}, Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3334
3337
|
__proto__: null,
|
|
3335
|
-
BOTTOM_CENTER:
|
|
3336
|
-
BOTTOM_LEFT:
|
|
3337
|
-
BOTTOM_RIGHT:
|
|
3338
|
+
BOTTOM_CENTER: En,
|
|
3339
|
+
BOTTOM_LEFT: Kt,
|
|
3340
|
+
BOTTOM_RIGHT: Er,
|
|
3338
3341
|
CENTER: nt,
|
|
3339
|
-
CENTER_LOCATIONS:
|
|
3340
|
-
LEFT_CENTER:
|
|
3341
|
-
RIGHT_CENTER:
|
|
3342
|
-
TOP_CENTER:
|
|
3342
|
+
CENTER_LOCATIONS: gr,
|
|
3343
|
+
LEFT_CENTER: Mn,
|
|
3344
|
+
RIGHT_CENTER: Cn,
|
|
3345
|
+
TOP_CENTER: kn,
|
|
3343
3346
|
TOP_LEFT: Pe,
|
|
3344
|
-
TOP_RIGHT:
|
|
3345
|
-
XY_LOCATIONS:
|
|
3346
|
-
X_LOCATIONS:
|
|
3347
|
-
Y_LOCATIONS:
|
|
3347
|
+
TOP_RIGHT: kr,
|
|
3348
|
+
XY_LOCATIONS: jn,
|
|
3349
|
+
X_LOCATIONS: Ut,
|
|
3350
|
+
Y_LOCATIONS: yr,
|
|
3348
3351
|
construct: Oe,
|
|
3349
|
-
constructXY:
|
|
3350
|
-
corner:
|
|
3351
|
-
crude:
|
|
3352
|
+
constructXY: fa,
|
|
3353
|
+
corner: Nn,
|
|
3354
|
+
crude: ca,
|
|
3352
3355
|
direction: rt,
|
|
3353
|
-
isX:
|
|
3354
|
-
isY:
|
|
3355
|
-
location:
|
|
3356
|
-
outer:
|
|
3357
|
-
rotate90:
|
|
3358
|
-
swap:
|
|
3359
|
-
x:
|
|
3360
|
-
xy:
|
|
3361
|
-
xyCouple:
|
|
3362
|
-
xyEquals:
|
|
3363
|
-
xyMatches:
|
|
3364
|
-
xyToString:
|
|
3365
|
-
y:
|
|
3366
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3356
|
+
isX: xt,
|
|
3357
|
+
isY: la,
|
|
3358
|
+
location: Dt,
|
|
3359
|
+
outer: di,
|
|
3360
|
+
rotate90: ua,
|
|
3361
|
+
swap: bt,
|
|
3362
|
+
x: sa,
|
|
3363
|
+
xy: In,
|
|
3364
|
+
xyCouple: Rn,
|
|
3365
|
+
xyEquals: Gt,
|
|
3366
|
+
xyMatches: wt,
|
|
3367
|
+
xyToString: da,
|
|
3368
|
+
y: ia
|
|
3369
|
+
}, Symbol.toStringTag, { value: "Module" })), or = d.union([
|
|
3367
3370
|
d.number(),
|
|
3368
3371
|
et,
|
|
3369
|
-
lr,
|
|
3370
3372
|
dr,
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
+
fr,
|
|
3374
|
+
ci,
|
|
3375
|
+
Qr
|
|
3373
3376
|
]), C = (t, e) => {
|
|
3374
3377
|
if (typeof t == "string") {
|
|
3375
3378
|
if (e === void 0)
|
|
@@ -3377,83 +3380,83 @@ const Qi = hr, ea = yr, ta = {
|
|
|
3377
3380
|
return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
|
|
3378
3381
|
}
|
|
3379
3382
|
return typeof t == "number" ? { x: t, y: e ?? t } : Array.isArray(t) ? { x: t[0], y: t[1] } : "signedWidth" in t ? { x: t.signedWidth, y: t.signedHeight } : "clientX" in t ? { x: t.clientX, y: t.clientY } : "width" in t ? { x: t.width, y: t.height } : { x: t.x, y: t.y };
|
|
3380
|
-
}, de = { x: 0, y: 0 },
|
|
3383
|
+
}, de = { x: 0, y: 0 }, Zn = { x: 1, y: 1 }, ha = { x: 1 / 0, y: 1 / 0 }, pa = { x: NaN, y: NaN }, Rt = (t, e, r = 0) => {
|
|
3381
3384
|
const n = C(t), s = C(e);
|
|
3382
3385
|
return r === 0 ? n.x === s.x && n.y === s.y : Math.abs(n.x - s.x) <= r && Math.abs(n.y - s.y) <= r;
|
|
3383
|
-
},
|
|
3386
|
+
}, ya = (t) => Rt(t, de), ma = (t, e, r = e) => {
|
|
3384
3387
|
const n = C(t);
|
|
3385
3388
|
return { x: n.x * e, y: n.y * r };
|
|
3386
|
-
},
|
|
3389
|
+
}, Cr = (t, e) => {
|
|
3387
3390
|
const r = C(t);
|
|
3388
3391
|
return { x: r.x + e, y: r.y };
|
|
3389
|
-
},
|
|
3392
|
+
}, Mr = (t, e) => {
|
|
3390
3393
|
const r = C(t);
|
|
3391
3394
|
return { x: r.x, y: r.y + e };
|
|
3392
|
-
},
|
|
3395
|
+
}, Zt = (t, e, r, ...n) => typeof e == "string" && typeof r == "number" ? e === "x" ? Cr(t, r) : Mr(t, r) : [t, e, r ?? de, ...n].reduce((s, i) => {
|
|
3393
3396
|
const a = C(i);
|
|
3394
3397
|
return { x: s.x + a.x, y: s.y + a.y };
|
|
3395
|
-
}, de),
|
|
3398
|
+
}, de), ga = (t, e, r) => {
|
|
3396
3399
|
const n = C(t);
|
|
3397
3400
|
return e === "x" ? { x: r, y: n.y } : { x: n.x, y: r };
|
|
3398
|
-
},
|
|
3401
|
+
}, va = (t, e) => {
|
|
3399
3402
|
const r = C(t), n = C(e);
|
|
3400
3403
|
return Math.sqrt((r.x - n.x) ** 2 + (r.y - n.y) ** 2);
|
|
3401
|
-
},
|
|
3404
|
+
}, ba = (t, e) => {
|
|
3402
3405
|
const r = C(t), n = C(e);
|
|
3403
3406
|
return Math.abs(r.x - n.x);
|
|
3404
|
-
},
|
|
3407
|
+
}, wa = (t, e) => {
|
|
3405
3408
|
const r = C(t), n = C(e);
|
|
3406
3409
|
return Math.abs(r.y - n.y);
|
|
3407
|
-
},
|
|
3410
|
+
}, xa = (t, e) => {
|
|
3408
3411
|
const r = C(t), n = C(e);
|
|
3409
3412
|
return { x: n.x - r.x, y: n.y - r.y };
|
|
3410
|
-
},
|
|
3413
|
+
}, Oa = (t) => {
|
|
3411
3414
|
const e = C(t);
|
|
3412
3415
|
return Number.isNaN(e.x) || Number.isNaN(e.y);
|
|
3413
|
-
},
|
|
3416
|
+
}, _a = (t) => {
|
|
3414
3417
|
const e = C(t);
|
|
3415
3418
|
return Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
3416
|
-
},
|
|
3419
|
+
}, Ta = (t) => {
|
|
3417
3420
|
const e = C(t);
|
|
3418
3421
|
return [e.x, e.y];
|
|
3419
|
-
},
|
|
3422
|
+
}, Sa = (t) => {
|
|
3420
3423
|
const e = C(t);
|
|
3421
3424
|
return { left: e.x, top: e.y };
|
|
3422
|
-
},
|
|
3425
|
+
}, cr = (t, e = 0) => {
|
|
3423
3426
|
const r = C(t);
|
|
3424
3427
|
return { x: Number(r.x.toFixed(e)), y: Number(r.y.toFixed(e)) };
|
|
3425
|
-
},
|
|
3428
|
+
}, ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3426
3429
|
__proto__: null,
|
|
3427
|
-
INFINITY:
|
|
3428
|
-
NAN:
|
|
3429
|
-
ONE:
|
|
3430
|
+
INFINITY: ha,
|
|
3431
|
+
NAN: pa,
|
|
3432
|
+
ONE: Zn,
|
|
3430
3433
|
ZERO: de,
|
|
3431
|
-
clientXY:
|
|
3434
|
+
clientXY: Qr,
|
|
3432
3435
|
construct: C,
|
|
3433
|
-
couple:
|
|
3434
|
-
crudeZ:
|
|
3435
|
-
css:
|
|
3436
|
-
distance:
|
|
3437
|
-
equals:
|
|
3438
|
-
isFinite:
|
|
3439
|
-
isNan:
|
|
3440
|
-
isZero:
|
|
3441
|
-
scale:
|
|
3442
|
-
set:
|
|
3443
|
-
translate:
|
|
3444
|
-
translateX:
|
|
3445
|
-
translateY:
|
|
3446
|
-
translation:
|
|
3447
|
-
truncate:
|
|
3448
|
-
xDistance:
|
|
3436
|
+
couple: Ta,
|
|
3437
|
+
crudeZ: or,
|
|
3438
|
+
css: Sa,
|
|
3439
|
+
distance: va,
|
|
3440
|
+
equals: Rt,
|
|
3441
|
+
isFinite: _a,
|
|
3442
|
+
isNan: Oa,
|
|
3443
|
+
isZero: ya,
|
|
3444
|
+
scale: ma,
|
|
3445
|
+
set: ga,
|
|
3446
|
+
translate: Zt,
|
|
3447
|
+
translateX: Cr,
|
|
3448
|
+
translateY: Mr,
|
|
3449
|
+
translation: xa,
|
|
3450
|
+
truncate: cr,
|
|
3451
|
+
xDistance: ba,
|
|
3449
3452
|
xy: et,
|
|
3450
|
-
yDistance:
|
|
3451
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3453
|
+
yDistance: wa
|
|
3454
|
+
}, Symbol.toStringTag, { value: "Module" })), lt = d.union([d.number(), d.string()]);
|
|
3452
3455
|
d.object({
|
|
3453
|
-
top:
|
|
3454
|
-
left:
|
|
3455
|
-
width:
|
|
3456
|
-
height:
|
|
3456
|
+
top: lt,
|
|
3457
|
+
left: lt,
|
|
3458
|
+
width: lt,
|
|
3459
|
+
height: lt
|
|
3457
3460
|
});
|
|
3458
3461
|
d.object({
|
|
3459
3462
|
left: d.number(),
|
|
@@ -3461,11 +3464,11 @@ d.object({
|
|
|
3461
3464
|
right: d.number(),
|
|
3462
3465
|
bottom: d.number()
|
|
3463
3466
|
});
|
|
3464
|
-
const
|
|
3467
|
+
const Aa = d.object({
|
|
3465
3468
|
one: et,
|
|
3466
3469
|
two: et,
|
|
3467
|
-
root:
|
|
3468
|
-
}),
|
|
3470
|
+
root: Nn
|
|
3471
|
+
}), Ia = { one: de, two: de, root: Pe }, Na = { one: de, two: Zn, root: Kt }, $n = (t, e) => ({
|
|
3469
3472
|
one: t.one,
|
|
3470
3473
|
two: t.two,
|
|
3471
3474
|
root: e ?? t.root
|
|
@@ -3487,7 +3490,7 @@ const xa = d.object({
|
|
|
3487
3490
|
x: i.one.x + e.signedWidth,
|
|
3488
3491
|
y: i.one.y + e.signedHeight
|
|
3489
3492
|
} : i.two = e, i));
|
|
3490
|
-
},
|
|
3493
|
+
}, ka = (t, e, r) => {
|
|
3491
3494
|
const n = k(t);
|
|
3492
3495
|
if (typeof e == "string") {
|
|
3493
3496
|
if (r == null)
|
|
@@ -3502,22 +3505,22 @@ const xa = d.object({
|
|
|
3502
3505
|
);
|
|
3503
3506
|
}
|
|
3504
3507
|
return k(n.one, e, void 0, void 0, n.root);
|
|
3505
|
-
},
|
|
3508
|
+
}, Ln = (t, e) => {
|
|
3506
3509
|
const r = k(t);
|
|
3507
3510
|
return "one" in e ? me(e) >= me(r) && ye(e) <= ye(r) && ge(e) >= ge(r) && Ie(e) <= Ie(r) : e.x >= me(r) && e.x <= ye(r) && e.y >= ge(r) && e.y <= Ie(r);
|
|
3508
|
-
},
|
|
3511
|
+
}, Ea = (t, e) => Rt(t.one, e.one) && Rt(t.two, e.two) && Gt(t.root, e.root), jr = (t) => ({
|
|
3509
3512
|
width: G(t),
|
|
3510
3513
|
height: ee(t)
|
|
3511
|
-
}),
|
|
3512
|
-
signedWidth:
|
|
3513
|
-
signedHeight:
|
|
3514
|
-
}),
|
|
3514
|
+
}), Ca = (t) => ({
|
|
3515
|
+
signedWidth: Ft(t),
|
|
3516
|
+
signedHeight: Ht(t)
|
|
3517
|
+
}), Ma = (t) => ({
|
|
3515
3518
|
top: ge(t),
|
|
3516
3519
|
left: me(t),
|
|
3517
3520
|
width: G(t),
|
|
3518
3521
|
height: ee(t)
|
|
3519
|
-
}),
|
|
3520
|
-
const n = fe(e) === "y" ?
|
|
3522
|
+
}), Rr = (t, e, r = !1) => {
|
|
3523
|
+
const n = fe(e) === "y" ? Ht(t) : Ft(t);
|
|
3521
3524
|
return r ? n : Math.abs(n);
|
|
3522
3525
|
}, Ue = (t, e) => {
|
|
3523
3526
|
const r = k(t);
|
|
@@ -3526,42 +3529,42 @@ const xa = d.object({
|
|
|
3526
3529
|
y: e.y === "center" ? st(r).y : _e(r, e.y)
|
|
3527
3530
|
};
|
|
3528
3531
|
}, _e = (t, e) => {
|
|
3529
|
-
const r = k(t), n =
|
|
3530
|
-
return
|
|
3531
|
-
},
|
|
3532
|
+
const r = k(t), n = Rn(r.root).includes(e) ? Math.min : Math.max;
|
|
3533
|
+
return Ut.includes(e) ? n(r.one.x, r.two.x) : n(r.one.y, r.two.y);
|
|
3534
|
+
}, ja = (t, e) => {
|
|
3532
3535
|
const r = _e(t, e);
|
|
3533
|
-
return
|
|
3534
|
-
},
|
|
3536
|
+
return Ut.includes(e) ? { x: r, y: st(t).y } : { x: st(t).x, y: r };
|
|
3537
|
+
}, Ra = (t) => t.one.x === t.two.x && t.one.y === t.two.y, G = (t) => Rr(t, "x"), ee = (t) => Rr(t, "y"), Ft = (t) => {
|
|
3535
3538
|
const e = k(t);
|
|
3536
3539
|
return e.two.x - e.one.x;
|
|
3537
|
-
},
|
|
3540
|
+
}, Ht = (t) => {
|
|
3538
3541
|
const e = k(t);
|
|
3539
3542
|
return e.two.y - e.one.y;
|
|
3540
|
-
},
|
|
3541
|
-
x:
|
|
3542
|
-
y:
|
|
3543
|
+
}, Bn = (t) => Ue(t, Pe), Za = (t) => Ue(t, kr), $a = (t) => Ue(t, Kt), La = (t) => Ue(t, Er), ye = (t) => _e(t, "right"), Ie = (t) => _e(t, "bottom"), me = (t) => _e(t, "left"), ge = (t) => _e(t, "top"), st = (t) => Zt(Bn(t), {
|
|
3544
|
+
x: Ft(t) / 2,
|
|
3545
|
+
y: Ht(t) / 2
|
|
3543
3546
|
}), it = (t) => {
|
|
3544
3547
|
const e = k(t);
|
|
3545
3548
|
return e.root.x === "left" ? me(e) : ye(e);
|
|
3546
3549
|
}, at = (t) => {
|
|
3547
3550
|
const e = k(t);
|
|
3548
3551
|
return e.root.y === "top" ? ge(e) : Ie(e);
|
|
3549
|
-
},
|
|
3552
|
+
}, Ba = (t) => ({ x: it(t), y: at(t) }), Ot = (t) => {
|
|
3550
3553
|
const e = k(t);
|
|
3551
3554
|
return { lower: e.one.x, upper: e.two.x };
|
|
3552
|
-
},
|
|
3555
|
+
}, _t = (t) => {
|
|
3553
3556
|
const e = k(t);
|
|
3554
3557
|
return { lower: e.one.y, upper: e.two.y };
|
|
3555
|
-
},
|
|
3558
|
+
}, Pa = (t, e) => $n(t, e), Ua = (t, e) => {
|
|
3556
3559
|
const r = k(t), n = k(e);
|
|
3557
|
-
if (
|
|
3560
|
+
if (Ln(n, r))
|
|
3558
3561
|
return [r, !1];
|
|
3559
3562
|
let s;
|
|
3560
|
-
return ye(r) > G(r) ? s = C({ x: it(r) - G(r), y: at(r) }) : s = C({ x: it(r), y: at(r) - ee(r) }), [k(s,
|
|
3561
|
-
},
|
|
3563
|
+
return ye(r) > G(r) ? s = C({ x: it(r) - G(r), y: at(r) }) : s = C({ x: it(r), y: at(r) - ee(r) }), [k(s, jr(r)), !0];
|
|
3564
|
+
}, Da = (t, e) => {
|
|
3562
3565
|
const r = k(t), n = k(e), s = it(n) + (G(n) - G(r)) / 2, i = at(n) + (ee(n) - ee(r)) / 2;
|
|
3563
|
-
return k({ x: s, y: i },
|
|
3564
|
-
},
|
|
3566
|
+
return k({ x: s, y: i }, jr(r));
|
|
3567
|
+
}, Pn = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, Va = (t) => G(t) / ee(t), za = (t, e, r) => {
|
|
3565
3568
|
if (typeof e == "string") {
|
|
3566
3569
|
if (r == null)
|
|
3567
3570
|
throw new Error("Undefined amount passed into box.translate");
|
|
@@ -3570,112 +3573,112 @@ const xa = d.object({
|
|
|
3570
3573
|
}
|
|
3571
3574
|
const n = k(t);
|
|
3572
3575
|
return k(
|
|
3573
|
-
|
|
3574
|
-
|
|
3576
|
+
Zt(n.one, e),
|
|
3577
|
+
Zt(n.two, e),
|
|
3575
3578
|
void 0,
|
|
3576
3579
|
void 0,
|
|
3577
3580
|
n.root
|
|
3578
3581
|
);
|
|
3579
|
-
},
|
|
3582
|
+
}, Un = (t, e) => {
|
|
3580
3583
|
const r = Math.max(me(t), me(e)), n = Math.max(ge(t), ge(e)), s = Math.min(ye(t), ye(e)), i = Math.min(Ie(t), Ie(e));
|
|
3581
3584
|
return k({ x: r, y: n }, { x: s, y: i }, void 0, void 0, t.root);
|
|
3582
|
-
},
|
|
3585
|
+
}, Dn = (t) => G(t) * ee(t), qa = (t, e = 0) => {
|
|
3583
3586
|
const r = k(t);
|
|
3584
3587
|
return k(
|
|
3585
|
-
|
|
3586
|
-
|
|
3588
|
+
cr(r.one, e),
|
|
3589
|
+
cr(r.two, e),
|
|
3587
3590
|
void 0,
|
|
3588
3591
|
void 0,
|
|
3589
3592
|
r.root
|
|
3590
3593
|
);
|
|
3591
|
-
},
|
|
3594
|
+
}, Vn = (t, e, r, n, s, i) => {
|
|
3592
3595
|
const a = { x: t, y: e }, o = { x: t + r, y: e + n };
|
|
3593
3596
|
return s.x !== i.x && (s.x === "center" ? (a.x -= r / 2, o.x -= r / 2) : (a.x -= r, o.x -= r)), s.y !== i.y && (s.y === "center" ? (a.y -= n / 2, o.y -= n / 2) : (a.y -= n, o.y -= n)), k(a, o, void 0, void 0, i);
|
|
3594
|
-
},
|
|
3597
|
+
}, tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3595
3598
|
__proto__: null,
|
|
3596
|
-
DECIMAL:
|
|
3597
|
-
ZERO:
|
|
3598
|
-
area:
|
|
3599
|
-
aspect:
|
|
3599
|
+
DECIMAL: Na,
|
|
3600
|
+
ZERO: Ia,
|
|
3601
|
+
area: Dn,
|
|
3602
|
+
aspect: Va,
|
|
3600
3603
|
bottom: Ie,
|
|
3601
|
-
bottomLeft:
|
|
3602
|
-
bottomRight:
|
|
3603
|
-
box:
|
|
3604
|
+
bottomLeft: $a,
|
|
3605
|
+
bottomRight: La,
|
|
3606
|
+
box: Aa,
|
|
3604
3607
|
center: st,
|
|
3605
3608
|
construct: k,
|
|
3606
|
-
constructWithAlternateRoot:
|
|
3607
|
-
contains:
|
|
3608
|
-
copy:
|
|
3609
|
-
css:
|
|
3610
|
-
dim:
|
|
3611
|
-
dims:
|
|
3612
|
-
equals:
|
|
3609
|
+
constructWithAlternateRoot: Vn,
|
|
3610
|
+
contains: Ln,
|
|
3611
|
+
copy: $n,
|
|
3612
|
+
css: Ma,
|
|
3613
|
+
dim: Rr,
|
|
3614
|
+
dims: jr,
|
|
3615
|
+
equals: Ea,
|
|
3613
3616
|
height: ee,
|
|
3614
|
-
intersect:
|
|
3615
|
-
isBox:
|
|
3616
|
-
isZero:
|
|
3617
|
+
intersect: Un,
|
|
3618
|
+
isBox: Pn,
|
|
3619
|
+
isZero: Ra,
|
|
3617
3620
|
left: me,
|
|
3618
3621
|
loc: _e,
|
|
3619
|
-
locPoint:
|
|
3620
|
-
positionInCenter:
|
|
3621
|
-
positionSoVisible:
|
|
3622
|
-
reRoot:
|
|
3623
|
-
resize:
|
|
3622
|
+
locPoint: ja,
|
|
3623
|
+
positionInCenter: Da,
|
|
3624
|
+
positionSoVisible: Ua,
|
|
3625
|
+
reRoot: Pa,
|
|
3626
|
+
resize: ka,
|
|
3624
3627
|
right: ye,
|
|
3625
|
-
root:
|
|
3626
|
-
signedDims:
|
|
3627
|
-
signedHeight:
|
|
3628
|
-
signedWidth:
|
|
3628
|
+
root: Ba,
|
|
3629
|
+
signedDims: Ca,
|
|
3630
|
+
signedHeight: Ht,
|
|
3631
|
+
signedWidth: Ft,
|
|
3629
3632
|
top: ge,
|
|
3630
|
-
topLeft:
|
|
3631
|
-
topRight:
|
|
3632
|
-
translate:
|
|
3633
|
-
truncate:
|
|
3633
|
+
topLeft: Bn,
|
|
3634
|
+
topRight: Za,
|
|
3635
|
+
translate: za,
|
|
3636
|
+
truncate: qa,
|
|
3634
3637
|
width: G,
|
|
3635
3638
|
x: it,
|
|
3636
|
-
xBounds:
|
|
3639
|
+
xBounds: Ot,
|
|
3637
3640
|
xyLoc: Ue,
|
|
3638
3641
|
y: at,
|
|
3639
|
-
yBounds:
|
|
3640
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3642
|
+
yBounds: _t
|
|
3643
|
+
}, Symbol.toStringTag, { value: "Module" })), zn = d.object({ signedWidth: d.number(), signedHeight: d.number() }), Ya = d.union([fr, zn, et, dr]), Wa = { width: 0, height: 0 }, Ka = { width: 1, height: 1 }, F = (t, e) => typeof t == "number" ? { width: t, height: e ?? t } : Array.isArray(t) ? { width: t[0], height: t[1] } : "x" in t ? { width: t.x, height: t.y } : "signedWidth" in t ? { width: t.signedWidth, height: t.signedHeight } : { ...t }, Ga = (t, e) => {
|
|
3641
3644
|
if (e == null)
|
|
3642
3645
|
return !1;
|
|
3643
3646
|
const r = F(t), n = F(e);
|
|
3644
3647
|
return r.width === n.width && r.height === n.height;
|
|
3645
|
-
},
|
|
3648
|
+
}, Fa = (t) => {
|
|
3646
3649
|
const e = F(t);
|
|
3647
3650
|
return { width: e.height, height: e.width };
|
|
3648
|
-
},
|
|
3651
|
+
}, Ha = (t) => {
|
|
3649
3652
|
const e = F(t);
|
|
3650
3653
|
return `0 0 ${e.width} ${e.height}`;
|
|
3651
|
-
},
|
|
3654
|
+
}, Ja = (t) => {
|
|
3652
3655
|
const e = F(t);
|
|
3653
3656
|
return [e.width, e.height];
|
|
3654
|
-
},
|
|
3657
|
+
}, Xa = (t) => ({
|
|
3655
3658
|
width: Math.max(...t.map((e) => F(e).width)),
|
|
3656
3659
|
height: Math.max(...t.map((e) => F(e).height))
|
|
3657
|
-
}),
|
|
3660
|
+
}), Qa = (t) => ({
|
|
3658
3661
|
width: Math.min(...t.map((e) => F(e).width)),
|
|
3659
3662
|
height: Math.min(...t.map((e) => F(e).height))
|
|
3660
|
-
}),
|
|
3663
|
+
}), eo = (t, e) => {
|
|
3661
3664
|
const r = F(t);
|
|
3662
3665
|
return { width: r.width * e, height: r.height * e };
|
|
3663
|
-
},
|
|
3666
|
+
}, rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3664
3667
|
__proto__: null,
|
|
3665
|
-
DECIMAL:
|
|
3666
|
-
ZERO:
|
|
3668
|
+
DECIMAL: Ka,
|
|
3669
|
+
ZERO: Wa,
|
|
3667
3670
|
construct: F,
|
|
3668
|
-
couple:
|
|
3669
|
-
crude:
|
|
3670
|
-
dimensions:
|
|
3671
|
-
equals:
|
|
3672
|
-
max:
|
|
3673
|
-
min:
|
|
3674
|
-
scale:
|
|
3675
|
-
signed:
|
|
3676
|
-
svgViewBox:
|
|
3677
|
-
swap:
|
|
3678
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3671
|
+
couple: Ja,
|
|
3672
|
+
crude: Ya,
|
|
3673
|
+
dimensions: fr,
|
|
3674
|
+
equals: Ga,
|
|
3675
|
+
max: Xa,
|
|
3676
|
+
min: Qa,
|
|
3677
|
+
scale: eo,
|
|
3678
|
+
signed: zn,
|
|
3679
|
+
svgViewBox: Ha,
|
|
3680
|
+
swap: Fa
|
|
3681
|
+
}, Symbol.toStringTag, { value: "Module" })), to = (t, e, r) => (e != null && (t = Math.max(t, e)), r != null && (t = Math.min(t, r)), t), ro = d.object({ offset: or, scale: or }), no = (t) => (e, r, n, s) => r === "dimension" ? [e, n] : [e, s ? n - t : n + t], so = (t) => (e, r, n, s) => [e, s ? n / t : n * t], io = (t) => (e, r, n) => {
|
|
3679
3682
|
if (e === null)
|
|
3680
3683
|
return [t, n];
|
|
3681
3684
|
const { lower: s, upper: i } = e, { lower: a, upper: o } = t, c = i - s, f = o - a;
|
|
@@ -3683,16 +3686,16 @@ const xa = d.object({
|
|
|
3683
3686
|
return [t, n * (f / c)];
|
|
3684
3687
|
const b = (n - s) * (f / c) + a;
|
|
3685
3688
|
return [t, b];
|
|
3686
|
-
},
|
|
3689
|
+
}, ao = (t) => (e, r, n) => [t, n], oo = () => (t, e, r) => {
|
|
3687
3690
|
if (t === null)
|
|
3688
3691
|
throw new Error("cannot invert without bounds");
|
|
3689
3692
|
if (e === "dimension")
|
|
3690
3693
|
return [t, r];
|
|
3691
3694
|
const { lower: n, upper: s } = t;
|
|
3692
3695
|
return [t, s - (r - n)];
|
|
3693
|
-
},
|
|
3696
|
+
}, co = (t) => (e, r, n) => {
|
|
3694
3697
|
const { lower: s, upper: i } = t;
|
|
3695
|
-
return n =
|
|
3698
|
+
return n = to(n, s, i), [e, n];
|
|
3696
3699
|
}, he = class he {
|
|
3697
3700
|
constructor() {
|
|
3698
3701
|
u(this, "ops", []);
|
|
@@ -3711,27 +3714,27 @@ const xa = d.object({
|
|
|
3711
3714
|
return new he().scale(e, r);
|
|
3712
3715
|
}
|
|
3713
3716
|
translate(e) {
|
|
3714
|
-
const r = this.new(), n =
|
|
3717
|
+
const r = this.new(), n = no(e);
|
|
3715
3718
|
return n.type = "translate", r.ops.push(n), r;
|
|
3716
3719
|
}
|
|
3717
3720
|
magnify(e) {
|
|
3718
|
-
const r = this.new(), n =
|
|
3721
|
+
const r = this.new(), n = so(e);
|
|
3719
3722
|
return n.type = "magnify", r.ops.push(n), r;
|
|
3720
3723
|
}
|
|
3721
3724
|
scale(e, r) {
|
|
3722
|
-
const n = E(e, r), s = this.new(), i =
|
|
3725
|
+
const n = E(e, r), s = this.new(), i = io(n);
|
|
3723
3726
|
return i.type = "scale", s.ops.push(i), s;
|
|
3724
3727
|
}
|
|
3725
3728
|
clamp(e, r) {
|
|
3726
|
-
const n = E(e, r), s = this.new(), i =
|
|
3729
|
+
const n = E(e, r), s = this.new(), i = co(n);
|
|
3727
3730
|
return i.type = "clamp", s.ops.push(i), s;
|
|
3728
3731
|
}
|
|
3729
3732
|
reBound(e, r) {
|
|
3730
|
-
const n = E(e, r), s = this.new(), i =
|
|
3733
|
+
const n = E(e, r), s = this.new(), i = ao(n);
|
|
3731
3734
|
return i.type = "re-bound", s.ops.push(i), s;
|
|
3732
3735
|
}
|
|
3733
3736
|
invert() {
|
|
3734
|
-
const e =
|
|
3737
|
+
const e = oo();
|
|
3735
3738
|
e.type = "invert";
|
|
3736
3739
|
const r = this.new();
|
|
3737
3740
|
return r.ops.push(e), r;
|
|
@@ -3769,7 +3772,7 @@ const xa = d.object({
|
|
|
3769
3772
|
};
|
|
3770
3773
|
u(he, "IDENTITY", new he());
|
|
3771
3774
|
let ot = he;
|
|
3772
|
-
const
|
|
3775
|
+
const uo = (t) => ({
|
|
3773
3776
|
scale: {
|
|
3774
3777
|
x: t.x.dim(1),
|
|
3775
3778
|
y: t.y.dim(1)
|
|
@@ -3824,19 +3827,19 @@ const so = (t) => ({
|
|
|
3824
3827
|
}
|
|
3825
3828
|
scale(e) {
|
|
3826
3829
|
const r = this.copy();
|
|
3827
|
-
if (
|
|
3830
|
+
if (Pn(e)) {
|
|
3828
3831
|
const n = this.currRoot;
|
|
3829
|
-
return r.currRoot = e.root, n != null && !
|
|
3832
|
+
return r.currRoot = e.root, n != null && !Gt(n, e.root) && (n.x !== e.root.x && (r.x = r.x.invert()), n.y !== e.root.y && (r.y = r.y.invert())), r.x = r.x.scale(Ot(e)), r.y = r.y.scale(_t(e)), r;
|
|
3830
3833
|
}
|
|
3831
3834
|
return r.x = r.x.scale(e.width), r.y = r.y.scale(e.height), r;
|
|
3832
3835
|
}
|
|
3833
3836
|
reBound(e) {
|
|
3834
3837
|
const r = this.copy();
|
|
3835
|
-
return r.x = this.x.reBound(
|
|
3838
|
+
return r.x = this.x.reBound(Ot(e)), r.y = this.y.reBound(_t(e)), r;
|
|
3836
3839
|
}
|
|
3837
3840
|
clamp(e) {
|
|
3838
3841
|
const r = this.copy();
|
|
3839
|
-
return r.x = this.x.clamp(
|
|
3842
|
+
return r.x = this.x.clamp(Ot(e)), r.y = this.y.clamp(_t(e)), r;
|
|
3840
3843
|
}
|
|
3841
3844
|
copy() {
|
|
3842
3845
|
const e = new V();
|
|
@@ -3860,26 +3863,26 @@ const so = (t) => ({
|
|
|
3860
3863
|
}
|
|
3861
3864
|
};
|
|
3862
3865
|
u(V, "IDENTITY", new V());
|
|
3863
|
-
let
|
|
3864
|
-
const
|
|
3866
|
+
let ur = V;
|
|
3867
|
+
const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3865
3868
|
__proto__: null,
|
|
3866
3869
|
Scale: ot,
|
|
3867
|
-
XY:
|
|
3868
|
-
crudeXYTransform:
|
|
3869
|
-
xyScaleToTransform:
|
|
3870
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3870
|
+
XY: ur,
|
|
3871
|
+
crudeXYTransform: ro,
|
|
3872
|
+
xyScaleToTransform: uo
|
|
3873
|
+
}, Symbol.toStringTag, { value: "Module" })), lo = (t, e) => {
|
|
3871
3874
|
const { width: r, height: n } = t.getBoundingClientRect(), { innerWidth: s, innerHeight: i } = window;
|
|
3872
3875
|
let a = !1, o = C(e);
|
|
3873
|
-
return e.x + r > s && (o =
|
|
3874
|
-
},
|
|
3876
|
+
return e.x + r > s && (o = Cr(o, -r), a = !0), e.y + n > i && (o = Mr(o, -n), a = !0), [o, a];
|
|
3877
|
+
}, Br = (t) => {
|
|
3875
3878
|
if (t == null)
|
|
3876
3879
|
return { x: void 0, y: void 0 };
|
|
3877
|
-
const e =
|
|
3880
|
+
const e = In.safeParse(t);
|
|
3878
3881
|
if (e.success)
|
|
3879
3882
|
return e.data;
|
|
3880
|
-
const r =
|
|
3883
|
+
const r = Dt.safeParse(t);
|
|
3881
3884
|
return r.success ? fe(r.data) === "x" ? { x: r.data, y: void 0 } : { x: void 0, y: r.data } : t;
|
|
3882
|
-
},
|
|
3885
|
+
}, fo = ({
|
|
3883
3886
|
container: t,
|
|
3884
3887
|
target: e,
|
|
3885
3888
|
dialog: r,
|
|
@@ -3888,75 +3891,75 @@ const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3888
3891
|
alignments: i = ["start"],
|
|
3889
3892
|
disable: a = []
|
|
3890
3893
|
}) => {
|
|
3891
|
-
const o =
|
|
3892
|
-
let c =
|
|
3894
|
+
const o = Br(n);
|
|
3895
|
+
let c = jn;
|
|
3893
3896
|
if (s != null) {
|
|
3894
|
-
const R = s.map((te) =>
|
|
3895
|
-
c = c.slice().sort((te,
|
|
3896
|
-
const je = R.findIndex((
|
|
3897
|
-
return je > -1 &&
|
|
3897
|
+
const R = s.map((te) => Br(te));
|
|
3898
|
+
c = c.slice().sort((te, Jt) => {
|
|
3899
|
+
const je = R.findIndex((Qt) => wt(te, Qt)), Xt = R.findIndex((Qt) => wt(Jt, Qt));
|
|
3900
|
+
return je > -1 && Xt > -1 ? je - Xt : je > -1 ? -1 : Xt > -1 ? 1 : 0;
|
|
3898
3901
|
});
|
|
3899
3902
|
}
|
|
3900
3903
|
const f = c.filter(
|
|
3901
|
-
(R) => !
|
|
3904
|
+
(R) => !Gt(R, nt) && (o.x == null || R.x === o.x) && (o.y == null || R.y === o.y) && !a.some((te) => wt(R, te))
|
|
3902
3905
|
).map((R) => i == null ? void 0 : i.map((te) => [R, te])).flat(), b = k(t), x = k(e), H = k(r);
|
|
3903
3906
|
let D = -1 / 0;
|
|
3904
3907
|
const Me = { location: nt, adjustedDialog: H };
|
|
3905
3908
|
return f.forEach(([R, te]) => {
|
|
3906
|
-
const [
|
|
3909
|
+
const [Jt, je] = ho({
|
|
3907
3910
|
option: R,
|
|
3908
3911
|
alignment: te,
|
|
3909
3912
|
container: b,
|
|
3910
3913
|
target: x,
|
|
3911
3914
|
dialog: H
|
|
3912
3915
|
});
|
|
3913
|
-
je > D && (D = je, Me.location = R, Me.adjustedDialog =
|
|
3916
|
+
je > D && (D = je, Me.location = R, Me.adjustedDialog = Jt);
|
|
3914
3917
|
}), Me;
|
|
3915
|
-
},
|
|
3918
|
+
}, ho = ({
|
|
3916
3919
|
option: t,
|
|
3917
3920
|
alignment: e,
|
|
3918
3921
|
container: r,
|
|
3919
3922
|
target: n,
|
|
3920
3923
|
dialog: s
|
|
3921
3924
|
}) => {
|
|
3922
|
-
const i =
|
|
3925
|
+
const i = qn(t, e), a = Ue(n, t), o = Vn(
|
|
3923
3926
|
a.x,
|
|
3924
3927
|
a.y,
|
|
3925
3928
|
G(s),
|
|
3926
3929
|
ee(s),
|
|
3927
3930
|
i,
|
|
3928
3931
|
Pe
|
|
3929
|
-
), c =
|
|
3932
|
+
), c = Dn(Un(o, r));
|
|
3930
3933
|
return [o, c];
|
|
3931
|
-
},
|
|
3934
|
+
}, po = {
|
|
3932
3935
|
start: "left",
|
|
3933
3936
|
center: "center",
|
|
3934
3937
|
end: "right"
|
|
3935
|
-
},
|
|
3938
|
+
}, yo = {
|
|
3936
3939
|
start: "bottom",
|
|
3937
3940
|
center: "center",
|
|
3938
3941
|
end: "top"
|
|
3939
|
-
},
|
|
3942
|
+
}, qn = (t, e) => {
|
|
3940
3943
|
const r = { x: "center", y: "center" };
|
|
3941
3944
|
if (t.y !== "center") {
|
|
3942
|
-
r.y =
|
|
3943
|
-
const n = t.x === "left" ?
|
|
3944
|
-
r.x = n(
|
|
3945
|
+
r.y = bt(t.y);
|
|
3946
|
+
const n = t.x === "left" ? bt : (s) => s;
|
|
3947
|
+
r.x = n(po[e]);
|
|
3945
3948
|
} else
|
|
3946
|
-
r.x =
|
|
3949
|
+
r.x = bt(t.x), r.y = yo[e];
|
|
3947
3950
|
return r;
|
|
3948
|
-
},
|
|
3951
|
+
}, sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3949
3952
|
__proto__: null,
|
|
3950
|
-
dialog:
|
|
3951
|
-
getRoot:
|
|
3952
|
-
posititonSoVisible:
|
|
3953
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3953
|
+
dialog: fo,
|
|
3954
|
+
getRoot: qn,
|
|
3955
|
+
posititonSoVisible: lo
|
|
3956
|
+
}, Symbol.toStringTag, { value: "Module" })), ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3954
3957
|
__proto__: null,
|
|
3955
|
-
ALIGNMENTS:
|
|
3956
|
-
ORDERS:
|
|
3957
|
-
alignment:
|
|
3958
|
-
order:
|
|
3959
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3958
|
+
ALIGNMENTS: Xr,
|
|
3959
|
+
ORDERS: rn,
|
|
3960
|
+
alignment: hi,
|
|
3961
|
+
order: pi
|
|
3962
|
+
}, Symbol.toStringTag, { value: "Module" })), Yn = (t, e) => {
|
|
3960
3963
|
const r = new j(e);
|
|
3961
3964
|
if (![
|
|
3962
3965
|
Z.DAY,
|
|
@@ -4192,7 +4195,7 @@ const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4192
4195
|
* @example TimeStamp.now().remainder(TimeStamp.DAY) // => TimeStamp representing the current day
|
|
4193
4196
|
*/
|
|
4194
4197
|
remainder(e) {
|
|
4195
|
-
return
|
|
4198
|
+
return Yn(this, e);
|
|
4196
4199
|
}
|
|
4197
4200
|
/** @returns true if the day portion TimeStamp is today, false otherwise. */
|
|
4198
4201
|
get isToday() {
|
|
@@ -4298,7 +4301,7 @@ const g = class g {
|
|
|
4298
4301
|
return this.valueOf() >= new g(e).valueOf();
|
|
4299
4302
|
}
|
|
4300
4303
|
remainder(e) {
|
|
4301
|
-
return
|
|
4304
|
+
return Yn(this, e);
|
|
4302
4305
|
}
|
|
4303
4306
|
truncate(e) {
|
|
4304
4307
|
return new g(
|
|
@@ -4534,7 +4537,7 @@ u(ce, "z", d.union([
|
|
|
4534
4537
|
d.instanceof(Number).transform((e) => new ce(e)),
|
|
4535
4538
|
d.instanceof(ce)
|
|
4536
4539
|
]));
|
|
4537
|
-
let
|
|
4540
|
+
let Pr = ce;
|
|
4538
4541
|
const $ = class $ extends Number {
|
|
4539
4542
|
/**
|
|
4540
4543
|
* Creates a Density representing the given number of bytes per value.
|
|
@@ -4550,7 +4553,7 @@ const $ = class $ extends Number {
|
|
|
4550
4553
|
return e.valueOf() / this.valueOf();
|
|
4551
4554
|
}
|
|
4552
4555
|
size(e) {
|
|
4553
|
-
return new
|
|
4556
|
+
return new ct(e * this.valueOf());
|
|
4554
4557
|
}
|
|
4555
4558
|
};
|
|
4556
4559
|
/** Unknown/Invalid Density. */
|
|
@@ -4922,8 +4925,8 @@ u(A, "z", d.union([
|
|
|
4922
4925
|
d.number().transform((e) => new A(e)),
|
|
4923
4926
|
d.instanceof(A)
|
|
4924
4927
|
]));
|
|
4925
|
-
let
|
|
4926
|
-
const
|
|
4928
|
+
let ct = A;
|
|
4929
|
+
const ac = d.union([
|
|
4927
4930
|
d.instanceof(Uint8Array),
|
|
4928
4931
|
d.instanceof(Uint16Array),
|
|
4929
4932
|
d.instanceof(Uint32Array),
|
|
@@ -4934,10 +4937,10 @@ const Xo = d.union([
|
|
|
4934
4937
|
d.instanceof(Int16Array),
|
|
4935
4938
|
d.instanceof(Int32Array),
|
|
4936
4939
|
d.instanceof(BigInt64Array)
|
|
4937
|
-
]),
|
|
4940
|
+
]), Wn = (t) => {
|
|
4938
4941
|
const e = typeof t;
|
|
4939
4942
|
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || t instanceof j || t instanceof Z || t instanceof Date;
|
|
4940
|
-
},
|
|
4943
|
+
}, mo = (t, e, r, n = 0) => t.usesBigInt && !e.usesBigInt ? Number(r) - Number(n) : !t.usesBigInt && e.usesBigInt ? BigInt(r) - BigInt(n) : De(r, -n), go = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof J ? !0 : Wn(t), Te = -1;
|
|
4941
4944
|
class J {
|
|
4942
4945
|
constructor(e) {
|
|
4943
4946
|
u(this, "key", "");
|
|
@@ -4966,20 +4969,20 @@ class J {
|
|
|
4966
4969
|
/** Tracks the number of entities currently using this array. */
|
|
4967
4970
|
u(this, "_refCount", 0);
|
|
4968
4971
|
u(this, "_cachedLength");
|
|
4969
|
-
|
|
4972
|
+
go(e) && (e = { data: e });
|
|
4970
4973
|
const {
|
|
4971
4974
|
dataType: r,
|
|
4972
4975
|
timeRange: n,
|
|
4973
4976
|
sampleOffset: s = 0,
|
|
4974
4977
|
glBufferUsage: i = "static",
|
|
4975
4978
|
alignment: a = 0,
|
|
4976
|
-
key: o =
|
|
4979
|
+
key: o = ns()
|
|
4977
4980
|
} = e, { data: c } = e;
|
|
4978
4981
|
if (c instanceof J) {
|
|
4979
4982
|
this.key = c.key, this.dataType = c.dataType, this.sampleOffset = c.sampleOffset, this.gl = c.gl, this._data = c._data, this._timeRange = c._timeRange, this.alignment = c.alignment, this._cachedMin = c._cachedMin, this._cachedMax = c._cachedMax, this.writePos = c.writePos, this._refCount = c._refCount, this._cachedLength = c._cachedLength;
|
|
4980
4983
|
return;
|
|
4981
4984
|
}
|
|
4982
|
-
const f =
|
|
4985
|
+
const f = Wn(c), b = Array.isArray(c);
|
|
4983
4986
|
if (r != null)
|
|
4984
4987
|
this.dataType = new N(r);
|
|
4985
4988
|
else {
|
|
@@ -5134,7 +5137,7 @@ class J {
|
|
|
5134
5137
|
}
|
|
5135
5138
|
/** @returns the capacity of the series in bytes. */
|
|
5136
5139
|
get byteCapacity() {
|
|
5137
|
-
return new
|
|
5140
|
+
return new ct(this.buffer.byteLength);
|
|
5138
5141
|
}
|
|
5139
5142
|
/** @returns the capacity of the series in samples. */
|
|
5140
5143
|
get capacity() {
|
|
@@ -5170,7 +5173,7 @@ class J {
|
|
|
5170
5173
|
return this;
|
|
5171
5174
|
const n = new e.Array(this.length);
|
|
5172
5175
|
for (let s = 0; s < this.length; s++)
|
|
5173
|
-
n[s] =
|
|
5176
|
+
n[s] = mo(this.dataType, e, this.data[s], r);
|
|
5174
5177
|
return new J({
|
|
5175
5178
|
data: n.buffer,
|
|
5176
5179
|
dataType: e,
|
|
@@ -5278,7 +5281,7 @@ class J {
|
|
|
5278
5281
|
*/
|
|
5279
5282
|
binarySearch(e) {
|
|
5280
5283
|
let r = 0, n = this.length - 1;
|
|
5281
|
-
const s =
|
|
5284
|
+
const s = Bt(e);
|
|
5282
5285
|
for (; r <= n; ) {
|
|
5283
5286
|
const i = Math.floor((r + n) / 2), a = s(this.at(i, !0), e);
|
|
5284
5287
|
if (a === 0)
|
|
@@ -5360,10 +5363,10 @@ class J {
|
|
|
5360
5363
|
}
|
|
5361
5364
|
[Symbol.iterator]() {
|
|
5362
5365
|
if (this.dataType.isVariable) {
|
|
5363
|
-
const e = new
|
|
5364
|
-
return this.dataType.equals(N.JSON) ? new
|
|
5366
|
+
const e = new vo(this);
|
|
5367
|
+
return this.dataType.equals(N.JSON) ? new bo(e) : e;
|
|
5365
5368
|
}
|
|
5366
|
-
return new
|
|
5369
|
+
return new wo(this);
|
|
5367
5370
|
}
|
|
5368
5371
|
slice(e, r) {
|
|
5369
5372
|
if (e <= 0 && (r == null || r >= this.length))
|
|
@@ -5389,7 +5392,7 @@ class J {
|
|
|
5389
5392
|
});
|
|
5390
5393
|
}
|
|
5391
5394
|
}
|
|
5392
|
-
class
|
|
5395
|
+
class vo {
|
|
5393
5396
|
constructor(e) {
|
|
5394
5397
|
u(this, "series");
|
|
5395
5398
|
u(this, "index");
|
|
@@ -5411,11 +5414,11 @@ class ho {
|
|
|
5411
5414
|
return this;
|
|
5412
5415
|
}
|
|
5413
5416
|
}
|
|
5414
|
-
var
|
|
5415
|
-
class
|
|
5417
|
+
var Yo;
|
|
5418
|
+
class bo {
|
|
5416
5419
|
constructor(e) {
|
|
5417
5420
|
u(this, "wrapped");
|
|
5418
|
-
u(this,
|
|
5421
|
+
u(this, Yo, "JSONSeriesIterator");
|
|
5419
5422
|
this.wrapped = e;
|
|
5420
5423
|
}
|
|
5421
5424
|
next() {
|
|
@@ -5426,13 +5429,13 @@ class po {
|
|
|
5426
5429
|
return this;
|
|
5427
5430
|
}
|
|
5428
5431
|
}
|
|
5429
|
-
|
|
5430
|
-
var
|
|
5431
|
-
class
|
|
5432
|
+
Yo = Symbol.toStringTag;
|
|
5433
|
+
var Wo;
|
|
5434
|
+
class wo {
|
|
5432
5435
|
constructor(e) {
|
|
5433
5436
|
u(this, "series");
|
|
5434
5437
|
u(this, "index");
|
|
5435
|
-
u(this,
|
|
5438
|
+
u(this, Wo, "SeriesIterator");
|
|
5436
5439
|
this.series = e, this.index = 0;
|
|
5437
5440
|
}
|
|
5438
5441
|
next() {
|
|
@@ -5445,9 +5448,9 @@ class yo {
|
|
|
5445
5448
|
return this;
|
|
5446
5449
|
}
|
|
5447
5450
|
}
|
|
5448
|
-
|
|
5451
|
+
Wo = Symbol.toStringTag;
|
|
5449
5452
|
const De = (t, e) => typeof t == "bigint" && typeof e == "bigint" || typeof t == "number" && typeof e == "number" ? t + e : e === 0 ? t : t === 0 ? e : Number(t) + Number(e);
|
|
5450
|
-
class
|
|
5453
|
+
class oc {
|
|
5451
5454
|
constructor(e) {
|
|
5452
5455
|
u(this, "series");
|
|
5453
5456
|
if (e.length !== 0) {
|
|
@@ -5490,21 +5493,31 @@ class Qo {
|
|
|
5490
5493
|
if (r)
|
|
5491
5494
|
throw new Error(`[series] - no value at index ${e}`);
|
|
5492
5495
|
}
|
|
5496
|
+
get byteLength() {
|
|
5497
|
+
return new ct(this.series.reduce((e, r) => e + r.byteLength.valueOf(), 0));
|
|
5498
|
+
}
|
|
5499
|
+
get data() {
|
|
5500
|
+
const e = new this.dataType.Array(this.length);
|
|
5501
|
+
let r = 0;
|
|
5502
|
+
for (const n of this.series)
|
|
5503
|
+
e.set(n.data, r), r += n.length;
|
|
5504
|
+
return new this.dataType.Array(e);
|
|
5505
|
+
}
|
|
5493
5506
|
[Symbol.iterator]() {
|
|
5494
5507
|
return this.series.length === 0 ? {
|
|
5495
5508
|
next() {
|
|
5496
5509
|
return { done: !0, value: void 0 };
|
|
5497
5510
|
}
|
|
5498
|
-
} : new
|
|
5511
|
+
} : new xo(this.series);
|
|
5499
5512
|
}
|
|
5500
5513
|
}
|
|
5501
|
-
var
|
|
5502
|
-
class
|
|
5514
|
+
var Ko;
|
|
5515
|
+
class xo {
|
|
5503
5516
|
constructor(e) {
|
|
5504
5517
|
u(this, "series");
|
|
5505
5518
|
u(this, "seriesIndex");
|
|
5506
5519
|
u(this, "internal");
|
|
5507
|
-
u(this,
|
|
5520
|
+
u(this, Ko, "MultiSeriesIterator");
|
|
5508
5521
|
this.series = e, this.seriesIndex = 0, this.internal = e[0][Symbol.iterator]();
|
|
5509
5522
|
}
|
|
5510
5523
|
next() {
|
|
@@ -5515,22 +5528,22 @@ class mo {
|
|
|
5515
5528
|
return this;
|
|
5516
5529
|
}
|
|
5517
5530
|
}
|
|
5518
|
-
|
|
5519
|
-
const
|
|
5531
|
+
Ko = Symbol.toStringTag;
|
|
5532
|
+
const cc = d.record(
|
|
5520
5533
|
d.union([d.number(), d.string(), d.symbol()]),
|
|
5521
5534
|
d.unknown()
|
|
5522
|
-
),
|
|
5535
|
+
), uc = (t) => Object.entries(t), lc = (t) => {
|
|
5523
5536
|
if (t === void 0 || typeof t == "string" || typeof t == "number")
|
|
5524
5537
|
return t;
|
|
5525
5538
|
if (t.toString === void 0)
|
|
5526
5539
|
throw new Error("invalid renderer");
|
|
5527
5540
|
return t.toString();
|
|
5528
|
-
},
|
|
5541
|
+
}, Tt = (t) => t != null && typeof t == "object" && !Array.isArray(t), Kn = () => (
|
|
5529
5542
|
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
5530
5543
|
typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser"
|
|
5531
|
-
),
|
|
5532
|
-
let
|
|
5533
|
-
const
|
|
5544
|
+
), Oo = Kn(), Gn = ["MacOS", "Windows", "Linux", "Docker"], _o = d.enum(Gn);
|
|
5545
|
+
let dt;
|
|
5546
|
+
const To = () => {
|
|
5534
5547
|
if (typeof window > "u")
|
|
5535
5548
|
return;
|
|
5536
5549
|
const t = window.navigator.userAgent.toLowerCase();
|
|
@@ -5540,23 +5553,23 @@ const bo = () => {
|
|
|
5540
5553
|
return "Windows";
|
|
5541
5554
|
if (t.includes("linux"))
|
|
5542
5555
|
return "Linux";
|
|
5543
|
-
},
|
|
5556
|
+
}, So = (t = {}) => {
|
|
5544
5557
|
const { force: e, default: r } = t;
|
|
5545
|
-
return e ??
|
|
5546
|
-
},
|
|
5558
|
+
return e ?? dt ?? (dt = To(), dt ?? r);
|
|
5559
|
+
}, dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5547
5560
|
__proto__: null,
|
|
5548
|
-
OPERATING_SYSTEMS:
|
|
5549
|
-
RUNTIME:
|
|
5550
|
-
detect:
|
|
5551
|
-
getOS:
|
|
5552
|
-
osZ:
|
|
5553
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5561
|
+
OPERATING_SYSTEMS: Gn,
|
|
5562
|
+
RUNTIME: Oo,
|
|
5563
|
+
detect: Kn,
|
|
5564
|
+
getOS: So,
|
|
5565
|
+
osZ: _o
|
|
5566
|
+
}, Symbol.toStringTag, { value: "Module" })), Ao = (t) => JSON.parse(JSON.stringify(t)), Io = (t, ...e) => (e.forEach((r) => {
|
|
5554
5567
|
let n = t;
|
|
5555
5568
|
const s = r.split(".");
|
|
5556
5569
|
s.forEach((i, a) => {
|
|
5557
5570
|
a === s.length - 1 ? delete n[i] : n = n[i];
|
|
5558
5571
|
});
|
|
5559
|
-
}), t),
|
|
5572
|
+
}), t), Fn = (t, e, r = !1) => {
|
|
5560
5573
|
const n = e.split(".");
|
|
5561
5574
|
if (n.length === 1 && n[0] === "")
|
|
5562
5575
|
return t;
|
|
@@ -5571,7 +5584,7 @@ const bo = () => {
|
|
|
5571
5584
|
s = a;
|
|
5572
5585
|
}
|
|
5573
5586
|
return s;
|
|
5574
|
-
},
|
|
5587
|
+
}, No = (t, e, r) => {
|
|
5575
5588
|
const n = e.split(".");
|
|
5576
5589
|
let s = t;
|
|
5577
5590
|
for (let i = 0; i < n.length - 1; i++) {
|
|
@@ -5581,27 +5594,27 @@ const bo = () => {
|
|
|
5581
5594
|
s = s[a];
|
|
5582
5595
|
}
|
|
5583
5596
|
s[n[n.length - 1]] = r;
|
|
5584
|
-
},
|
|
5597
|
+
}, ko = (t, e) => {
|
|
5585
5598
|
const r = t.split(".");
|
|
5586
5599
|
return e < 0 ? r[r.length + e] : r[e];
|
|
5587
|
-
},
|
|
5600
|
+
}, Eo = (t) => t.join("."), Co = (t, e) => {
|
|
5588
5601
|
try {
|
|
5589
|
-
return
|
|
5602
|
+
return Fn(t, e), !0;
|
|
5590
5603
|
} catch {
|
|
5591
5604
|
return !1;
|
|
5592
5605
|
}
|
|
5593
|
-
},
|
|
5606
|
+
}, lr = (t, ...e) => {
|
|
5594
5607
|
if (e.length === 0)
|
|
5595
5608
|
return t;
|
|
5596
5609
|
const r = e.shift();
|
|
5597
|
-
if (
|
|
5610
|
+
if (Tt(t) && Tt(r))
|
|
5598
5611
|
for (const n in r)
|
|
5599
5612
|
try {
|
|
5600
|
-
|
|
5613
|
+
Tt(r[n]) ? (n in t || Object.assign(t, { [n]: {} }), lr(t[n], r[n])) : Object.assign(t, { [n]: r[n] });
|
|
5601
5614
|
} catch (s) {
|
|
5602
5615
|
throw s instanceof TypeError ? new TypeError(`.${n}: ${s.message}`) : s;
|
|
5603
5616
|
}
|
|
5604
|
-
return
|
|
5617
|
+
return lr(t, ...e);
|
|
5605
5618
|
}, $t = (t, e) => {
|
|
5606
5619
|
const r = Array.isArray(t), n = Array.isArray(e);
|
|
5607
5620
|
if (r !== n)
|
|
@@ -5631,7 +5644,7 @@ const bo = () => {
|
|
|
5631
5644
|
return !1;
|
|
5632
5645
|
}
|
|
5633
5646
|
return !0;
|
|
5634
|
-
},
|
|
5647
|
+
}, Hn = (t, e) => {
|
|
5635
5648
|
if (typeof t != "object" || t == null)
|
|
5636
5649
|
return t === e;
|
|
5637
5650
|
const r = Object.keys(t), n = Object.keys(e);
|
|
@@ -5640,13 +5653,13 @@ const bo = () => {
|
|
|
5640
5653
|
for (const s of n) {
|
|
5641
5654
|
const i = t[s], a = e[s];
|
|
5642
5655
|
if (typeof i == "object" && typeof a == "object") {
|
|
5643
|
-
if (!
|
|
5656
|
+
if (!Hn(i, a))
|
|
5644
5657
|
return !1;
|
|
5645
5658
|
} else if (i !== a)
|
|
5646
5659
|
return !1;
|
|
5647
5660
|
}
|
|
5648
5661
|
return !0;
|
|
5649
|
-
},
|
|
5662
|
+
}, Mo = (t) => {
|
|
5650
5663
|
let e, r;
|
|
5651
5664
|
return (...s) => {
|
|
5652
5665
|
if ($t(e, s))
|
|
@@ -5654,7 +5667,7 @@ const bo = () => {
|
|
|
5654
5667
|
const i = t(...s);
|
|
5655
5668
|
return e = s, r = i, i;
|
|
5656
5669
|
};
|
|
5657
|
-
},
|
|
5670
|
+
}, jo = (t, e, r = "") => {
|
|
5658
5671
|
const n = {}, s = (i, a, o) => {
|
|
5659
5672
|
if (typeof i != typeof a || i === null || a === null) {
|
|
5660
5673
|
n[o] = [i, a];
|
|
@@ -5676,37 +5689,37 @@ const bo = () => {
|
|
|
5676
5689
|
i !== a && (n[o] = [i, a]);
|
|
5677
5690
|
};
|
|
5678
5691
|
return s(t, e, r), n;
|
|
5679
|
-
},
|
|
5692
|
+
}, fc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5680
5693
|
__proto__: null,
|
|
5681
|
-
copy:
|
|
5682
|
-
deleteD:
|
|
5683
|
-
difference:
|
|
5684
|
-
element:
|
|
5694
|
+
copy: Ao,
|
|
5695
|
+
deleteD: Io,
|
|
5696
|
+
difference: jo,
|
|
5697
|
+
element: ko,
|
|
5685
5698
|
equal: $t,
|
|
5686
|
-
get:
|
|
5687
|
-
has:
|
|
5688
|
-
join:
|
|
5689
|
-
memo:
|
|
5690
|
-
merge:
|
|
5691
|
-
partialEqual:
|
|
5692
|
-
set:
|
|
5693
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5699
|
+
get: Fn,
|
|
5700
|
+
has: Co,
|
|
5701
|
+
join: Eo,
|
|
5702
|
+
memo: Mo,
|
|
5703
|
+
merge: lr,
|
|
5704
|
+
partialEqual: Hn,
|
|
5705
|
+
set: No
|
|
5706
|
+
}, Symbol.toStringTag, { value: "Module" })), hc = (t, e) => {
|
|
5694
5707
|
let r = null;
|
|
5695
5708
|
return e === 0 ? t : (...s) => {
|
|
5696
5709
|
r !== null && (clearTimeout(r), r = null), r = setTimeout(() => t(...s), e);
|
|
5697
5710
|
};
|
|
5698
|
-
},
|
|
5711
|
+
}, pc = (t, e) => {
|
|
5699
5712
|
let r = null;
|
|
5700
5713
|
return e === 0 ? t : (...s) => {
|
|
5701
5714
|
r === null && (r = setTimeout(() => {
|
|
5702
5715
|
t(...s), r = null;
|
|
5703
5716
|
}, e));
|
|
5704
5717
|
};
|
|
5705
|
-
},
|
|
5718
|
+
}, yc = (t) => [...new Set(t)], mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5706
5719
|
__proto__: null
|
|
5707
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5720
|
+
}, Symbol.toStringTag, { value: "Module" })), Ro = (...t) => t.map(Jn).join(""), Jn = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Zo = (t) => t.endsWith("/") ? t.slice(0, -1) : t, gc = (t, e = "") => t === null ? "" : "?" + Object.entries(t).filter(([, r]) => r == null ? !1 : Array.isArray(r) ? r.length > 0 : !0).map(([r, n]) => `${e}${r}=${n}`).join("&");
|
|
5708
5721
|
var ve;
|
|
5709
|
-
let
|
|
5722
|
+
let vc = (ve = class {
|
|
5710
5723
|
/**
|
|
5711
5724
|
* @param host - The hostname or IP address of the server.
|
|
5712
5725
|
* @param port - The port number of the server.
|
|
@@ -5718,7 +5731,7 @@ let lc = (ve = class {
|
|
|
5718
5731
|
u(this, "host");
|
|
5719
5732
|
u(this, "port");
|
|
5720
5733
|
u(this, "path");
|
|
5721
|
-
this.protocol = n, this.host = e, this.port = r, this.path =
|
|
5734
|
+
this.protocol = n, this.host = e, this.port = r, this.path = Jn(s);
|
|
5722
5735
|
}
|
|
5723
5736
|
/**
|
|
5724
5737
|
* Replaces creates a new URL with the specified properties replaced.
|
|
@@ -5741,17 +5754,17 @@ let lc = (ve = class {
|
|
|
5741
5754
|
child(e) {
|
|
5742
5755
|
return new ve({
|
|
5743
5756
|
...this,
|
|
5744
|
-
pathPrefix:
|
|
5757
|
+
pathPrefix: Ro(this.path, e)
|
|
5745
5758
|
});
|
|
5746
5759
|
}
|
|
5747
5760
|
/** @returns a string representation of the url */
|
|
5748
5761
|
toString() {
|
|
5749
|
-
return
|
|
5762
|
+
return Zo(
|
|
5750
5763
|
`${this.protocol}://${this.host}:${this.port}/${this.path}`
|
|
5751
5764
|
);
|
|
5752
5765
|
}
|
|
5753
5766
|
}, u(ve, "UNKNOWN", new ve({ host: "unknown", port: 0 })), ve);
|
|
5754
|
-
const
|
|
5767
|
+
const bc = (t) => Array.isArray(t) ? t : [t], wc = (t) => Array.isArray(t) ? t : t === null ? [] : [t], $o = (t, e, r) => {
|
|
5755
5768
|
let n = 0, s = t.length - 1;
|
|
5756
5769
|
for (; n <= s; ) {
|
|
5757
5770
|
const i = Math.floor((n + s) / 2), a = r(t[i], e);
|
|
@@ -5760,10 +5773,10 @@ const dc = (t) => Array.isArray(t) ? t : [t], fc = (t) => Array.isArray(t) ? t :
|
|
|
5760
5773
|
a < 0 ? n = i + 1 : s = i - 1;
|
|
5761
5774
|
}
|
|
5762
5775
|
return -1;
|
|
5763
|
-
},
|
|
5764
|
-
binary:
|
|
5776
|
+
}, xc = {
|
|
5777
|
+
binary: $o
|
|
5765
5778
|
};
|
|
5766
|
-
class
|
|
5779
|
+
class Ur {
|
|
5767
5780
|
constructor(e) {
|
|
5768
5781
|
u(this, "sender");
|
|
5769
5782
|
u(this, "handlers");
|
|
@@ -5775,12 +5788,12 @@ class Pr {
|
|
|
5775
5788
|
r == null ? console.warn(`No handler for ${e.type}`) : r(e.payload);
|
|
5776
5789
|
}
|
|
5777
5790
|
route(e) {
|
|
5778
|
-
const r =
|
|
5791
|
+
const r = Lo(e, this.sender), n = new Bo(r);
|
|
5779
5792
|
return this.handlers.set(e, n), n;
|
|
5780
5793
|
}
|
|
5781
5794
|
}
|
|
5782
|
-
const
|
|
5783
|
-
class
|
|
5795
|
+
const Lo = (t, e) => (r, n) => e({ type: t, payload: r }, n);
|
|
5796
|
+
class Bo {
|
|
5784
5797
|
constructor(e) {
|
|
5785
5798
|
u(this, "_send");
|
|
5786
5799
|
u(this, "handler");
|
|
@@ -5793,23 +5806,23 @@ class jo {
|
|
|
5793
5806
|
this.handler = e;
|
|
5794
5807
|
}
|
|
5795
5808
|
}
|
|
5796
|
-
const
|
|
5809
|
+
const Oc = () => {
|
|
5797
5810
|
let t, e;
|
|
5798
5811
|
const r = (s, i) => {
|
|
5799
5812
|
e.handle({ data: s });
|
|
5800
5813
|
}, n = (s, i) => {
|
|
5801
5814
|
t.handle({ data: s });
|
|
5802
5815
|
};
|
|
5803
|
-
return t = new
|
|
5816
|
+
return t = new Ur(r), e = new Ur(n), [t, e];
|
|
5804
5817
|
};
|
|
5805
|
-
class
|
|
5818
|
+
class Xn {
|
|
5806
5819
|
constructor() {
|
|
5807
5820
|
u(this, "contentType", "application/json");
|
|
5808
5821
|
u(this, "decoder");
|
|
5809
5822
|
this.decoder = new TextDecoder();
|
|
5810
5823
|
}
|
|
5811
5824
|
encode(e) {
|
|
5812
|
-
const r = JSON.stringify(tt.toSnake(e), (n, s) => ArrayBuffer.isView(s) ? Array.from(s) :
|
|
5825
|
+
const r = JSON.stringify(tt.toSnake(e), (n, s) => ArrayBuffer.isView(s) ? Array.from(s) : Tt(s) && "encode_value" in s ? typeof s.value == "bigint" ? s.value.toString() : s.value : typeof s == "bigint" ? s.toString() : s);
|
|
5813
5826
|
return new TextEncoder().encode(r);
|
|
5814
5827
|
}
|
|
5815
5828
|
decode(e, r) {
|
|
@@ -5819,12 +5832,12 @@ class Hn {
|
|
|
5819
5832
|
static registerCustomType() {
|
|
5820
5833
|
}
|
|
5821
5834
|
}
|
|
5822
|
-
const
|
|
5835
|
+
const Po = [new Xn()], _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5823
5836
|
__proto__: null,
|
|
5824
|
-
ENCODERS:
|
|
5825
|
-
JSONEncoderDecoder:
|
|
5837
|
+
ENCODERS: Po,
|
|
5838
|
+
JSONEncoderDecoder: Xn
|
|
5826
5839
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5827
|
-
class
|
|
5840
|
+
class Uo {
|
|
5828
5841
|
constructor(e) {
|
|
5829
5842
|
u(this, "handlers");
|
|
5830
5843
|
this.handlers = e ?? /* @__PURE__ */ new Map();
|
|
@@ -5836,68 +5849,87 @@ class Zo {
|
|
|
5836
5849
|
this.handlers.forEach((r, n) => n(e));
|
|
5837
5850
|
}
|
|
5838
5851
|
}
|
|
5839
|
-
const
|
|
5852
|
+
const Tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5840
5853
|
__proto__: null,
|
|
5841
|
-
Observer:
|
|
5842
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5854
|
+
Observer: Uo
|
|
5855
|
+
}, Symbol.toStringTag, { value: "Module" })), Do = (t) => d.object({
|
|
5843
5856
|
variant: d.enum(["set", "delete"]),
|
|
5844
5857
|
key: d.string(),
|
|
5845
5858
|
value: t
|
|
5846
|
-
}),
|
|
5859
|
+
}), Sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5860
|
+
__proto__: null,
|
|
5861
|
+
Z: Do
|
|
5862
|
+
}, Symbol.toStringTag, { value: "Module" })), Ac = (t) => Array.isArray(t) ? [...t] : typeof t == "object" && t !== null ? { ...t } : t, Ic = (t) => t ? -1 : 1, Lt = d.string().regex(/^\d+\.\d+\.\d+$/), Qn = (t, e) => {
|
|
5863
|
+
const r = Lt.parse(t), n = Lt.parse(e), [s, i, a] = r.split(".").map(Number), [o, c, f] = n.split(".").map(Number);
|
|
5864
|
+
return s !== o ? s - o : i !== c ? i - c : a - f;
|
|
5865
|
+
}, Vo = (t, e) => zr(Qn(t, e)), zo = d.object({
|
|
5866
|
+
version: Lt
|
|
5867
|
+
}), qo = (t) => {
|
|
5868
|
+
const e = Object.keys(t).sort(Qn).pop() ?? "", r = Object.keys(t).length, n = (s) => {
|
|
5869
|
+
if (r === 0 || Vo(s.version, e))
|
|
5870
|
+
return s;
|
|
5871
|
+
const i = s.version, a = t[i], o = a(s);
|
|
5872
|
+
return n(o);
|
|
5873
|
+
};
|
|
5874
|
+
return n;
|
|
5875
|
+
}, Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5847
5876
|
__proto__: null,
|
|
5848
|
-
|
|
5849
|
-
|
|
5877
|
+
migratable: zo,
|
|
5878
|
+
migrator: qo,
|
|
5879
|
+
semVerZ: Lt
|
|
5880
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
5850
5881
|
export {
|
|
5851
5882
|
tt as Case,
|
|
5852
5883
|
N as DataType,
|
|
5853
5884
|
L as Density,
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5885
|
+
oc as MultiSeries,
|
|
5886
|
+
Pr as Rate,
|
|
5887
|
+
Ur as RoutedWorker,
|
|
5888
|
+
xc as Search,
|
|
5858
5889
|
J as Series,
|
|
5859
|
-
|
|
5890
|
+
ct as Size,
|
|
5860
5891
|
Be as TimeRange,
|
|
5861
5892
|
Z as TimeSpan,
|
|
5862
5893
|
j as TimeStamp,
|
|
5863
|
-
|
|
5864
|
-
|
|
5894
|
+
Bo as TypedWorker,
|
|
5895
|
+
vc as URL,
|
|
5865
5896
|
De as addSamples,
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5897
|
+
_c as binary,
|
|
5898
|
+
Jo as bounds,
|
|
5899
|
+
tc as box,
|
|
5900
|
+
gc as buildQueryString,
|
|
5901
|
+
Sc as change,
|
|
5902
|
+
to as clamp,
|
|
5903
|
+
Ho as compare,
|
|
5904
|
+
mo as convertDataType,
|
|
5905
|
+
lc as convertRenderV,
|
|
5906
|
+
Oc as createMockWorkers,
|
|
5907
|
+
hc as debounce,
|
|
5908
|
+
fc as deep,
|
|
5909
|
+
rc as dimensions,
|
|
5910
|
+
Xo as direction,
|
|
5911
|
+
uc as getEntries,
|
|
5912
|
+
Ic as invert,
|
|
5913
|
+
go as isCrudeSeries,
|
|
5914
|
+
Tt as isObject,
|
|
5915
|
+
Dr as isStringer,
|
|
5916
|
+
Wn as isTelemValue,
|
|
5917
|
+
mc as kv,
|
|
5918
|
+
Qo as location,
|
|
5919
|
+
Nc as migrate,
|
|
5920
|
+
wc as nullToArr,
|
|
5921
|
+
Tc as observe,
|
|
5922
|
+
sc as position,
|
|
5923
|
+
Fo as primitiveIsZero,
|
|
5924
|
+
dc as runtime,
|
|
5925
|
+
nc as scale,
|
|
5926
|
+
Ac as shallowCopy,
|
|
5927
|
+
ic as spatial,
|
|
5928
|
+
pc as throttle,
|
|
5929
|
+
bc as toArray,
|
|
5930
|
+
ac as typedArrayZ,
|
|
5931
|
+
yc as unique,
|
|
5932
|
+
cc as unknownRecordZ,
|
|
5933
|
+
ec as xy
|
|
5902
5934
|
};
|
|
5903
5935
|
//# sourceMappingURL=x.js.map
|