@synnaxlabs/x 0.46.2 → 0.48.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 +18 -18
- package/dist/{bounds-DeUXrllt.js → bounds-4BWKPqaP.js} +1 -4
- package/dist/bounds.js +1 -1
- package/dist/{index-C452Pas0.js → compare-Bnx9CdjS.js} +37 -47
- package/dist/compare-GPoFaKRW.cjs +1 -0
- package/dist/compare.cjs +1 -1
- package/dist/compare.js +34 -2
- package/dist/eslint.config.d.ts +3 -0
- package/dist/eslint.config.d.ts.map +1 -0
- package/dist/{index-D4NCYiQB.js → index-Bv029kh3.js} +2 -2
- package/dist/{index-udOjA9d-.cjs → index-CqisIWWC.cjs} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +489 -465
- package/dist/{scale-BBWhTUqJ.js → scale-DJCMZbfU.js} +1 -1
- package/dist/scale.js +1 -1
- package/dist/series-B7l2au4y.cjs +6 -0
- package/dist/{series-Clbw-fZI.js → series-TpAaBlEg.js} +172 -145
- package/dist/spatial.js +2 -2
- package/dist/src/array/nullable.d.ts.map +1 -1
- package/dist/src/compare/binary.d.ts +25 -0
- package/dist/src/compare/binary.d.ts.map +1 -0
- package/dist/src/compare/binary.spec.d.ts +2 -0
- package/dist/src/compare/binary.spec.d.ts.map +1 -0
- package/dist/src/compare/external.d.ts +3 -0
- package/dist/src/compare/external.d.ts.map +1 -0
- package/dist/src/compare/index.d.ts +1 -1
- package/dist/src/compare/index.d.ts.map +1 -1
- package/dist/src/csv/csv.d.ts +11 -0
- package/dist/src/csv/csv.d.ts.map +1 -0
- package/dist/src/csv/csv.spec.d.ts +2 -0
- package/dist/src/csv/csv.spec.d.ts.map +1 -0
- package/dist/src/csv/index.d.ts +2 -0
- package/dist/src/csv/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/migrate/migrate.d.ts +1 -1
- package/dist/src/migrate/migrate.d.ts.map +1 -1
- package/dist/src/spatial/bounds/bounds.d.ts.map +1 -1
- package/dist/src/spatial/box/box.d.ts +5 -5
- package/dist/src/spatial/box/box.d.ts.map +1 -1
- package/dist/src/spatial/scale/scale.d.ts +6 -6
- package/dist/src/spatial/scale/scale.d.ts.map +1 -1
- package/dist/src/telem/telem.d.ts +14 -0
- package/dist/src/telem/telem.d.ts.map +1 -1
- package/dist/telem.cjs +1 -1
- package/dist/telem.js +1 -1
- package/dist/unique.cjs +1 -1
- package/dist/unique.js +1 -1
- package/package.json +9 -9
- package/src/array/nullable.ts +9 -0
- package/src/compare/binary.spec.ts +308 -0
- package/src/compare/binary.ts +50 -0
- package/src/compare/external.ts +11 -0
- package/src/compare/index.ts +1 -1
- package/src/csv/csv.spec.ts +28 -0
- package/src/csv/csv.ts +26 -0
- package/src/csv/index.ts +10 -0
- package/src/index.ts +1 -0
- package/src/jsonrpc/jsonrpc.spec.ts +9 -0
- package/src/math/round.spec.ts +2 -1
- package/src/migrate/migrate.spec.ts +238 -0
- package/src/migrate/migrate.ts +62 -4
- package/src/spatial/bounds/bounds.spec.ts +1 -1
- package/src/spatial/bounds/bounds.ts +9 -12
- package/src/spatial/box/box.spec.ts +3 -3
- package/src/spatial/box/box.ts +5 -5
- package/src/spatial/dimensions/dimensions.spec.ts +1 -1
- package/src/spatial/direction/direction.spec.ts +1 -1
- package/src/spatial/location/location.spec.ts +1 -1
- package/src/spatial/scale/scale.spec.ts +1 -1
- package/src/spatial/scale/scale.ts +7 -7
- package/src/telem/telem.spec.ts +87 -0
- package/src/telem/telem.ts +48 -0
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/index-xaxa1hoa.cjs +0 -1
- package/dist/series-B2zqvP8A.cjs +0 -6
- /package/{eslint.config.js → eslint.config.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { e as
|
|
3
|
-
import { J as
|
|
4
|
-
import { c as
|
|
5
|
-
import
|
|
6
|
-
import { h as
|
|
7
|
-
import { c as
|
|
8
|
-
import { a as
|
|
9
|
-
import { c as
|
|
10
|
-
import { c as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { b as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { d as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
|
|
1
|
+
import { n as je } from "./external-Du5qzfYv.js";
|
|
2
|
+
import { e as cn } from "./external-Du5qzfYv.js";
|
|
3
|
+
import { J as Ne } from "./index-yz34Wc2p.js";
|
|
4
|
+
import { c as un } from "./index-yz34Wc2p.js";
|
|
5
|
+
import m, { z as c } from "zod";
|
|
6
|
+
import { h as Ie, j as Ee, k as Oe, l as Ae, m as ke, o as Pe, p as Re, q as Ze, r as Ce, s as Le, u as Ue, v as qe, w as ze, x as We, y as De, a as M, T as J, z as Be } from "./series-TpAaBlEg.js";
|
|
7
|
+
import { c as dn, D as mn, M as hn, R as pn, S as gn, d as bn, b as _n, g as yn, f as wn, A as Mn, B as vn, i as Sn, e as xn, n as Tn, t as $n, C as jn } from "./series-TpAaBlEg.js";
|
|
8
|
+
import { a as In } from "./index-qmkoZBNO.js";
|
|
9
|
+
import { c as On } from "./change-DLl6DccR.js";
|
|
10
|
+
import { c as kn, s as Pn } from "./scale-DJCMZbfU.js";
|
|
11
|
+
import { compare as Zn } from "./compare.js";
|
|
12
|
+
import { debounce as Ln, throttle as Un } from "./debounce.js";
|
|
13
|
+
import { deep as zn } from "./deep.js";
|
|
14
|
+
import { isObject as Dn } from "./identity.js";
|
|
15
|
+
import { e as Fn } from "./external-BYuXBYJh.js";
|
|
16
|
+
import { link as Hn } from "./link.js";
|
|
17
|
+
import { i as Q, j as Fe, a as Ve, k as He, d as Xe, l as Ge, n as Je, o as Qe, p as Ye, m as Ke, r as et, s as tt } from "./bounds-4BWKPqaP.js";
|
|
18
|
+
import { b as Gn } from "./bounds-4BWKPqaP.js";
|
|
19
|
+
import { a as rt, b as nt, c as st, L as p, G as g, E as Y } from "./compare-Bnx9CdjS.js";
|
|
20
|
+
import { p as Qn } from "./compare-Bnx9CdjS.js";
|
|
21
|
+
import { observe as Kn } from "./observe.js";
|
|
22
|
+
import { r as ts } from "./record-tSFQKmdG.js";
|
|
23
|
+
import { e as ns } from "./external-B80i4ymZ.js";
|
|
24
|
+
import { b as os } from "./box-BXWXSkKu.js";
|
|
25
|
+
import { d as as } from "./dimensions-DC0uLPwn.js";
|
|
26
|
+
import { d as ls } from "./direction-C_b4tfRN.js";
|
|
27
|
+
import { l as fs } from "./location-BIzpxczO.js";
|
|
28
|
+
import { s as ms } from "./spatial-DnsaOypA.js";
|
|
29
|
+
import { x as ps } from "./xy-DnrCAZaw.js";
|
|
30
|
+
import { a as bs } from "./index-Bv029kh3.js";
|
|
31
|
+
import { URL as ys, buildQueryString as ws } from "./url.js";
|
|
32
|
+
import { RoutedWorker as vs, TypedWorker as Ss, createMockWorkers as xs } from "./worker.js";
|
|
33
|
+
import { e as $s } from "./external-2YWy569j.js";
|
|
34
|
+
const L = 2, U = 3, K = 2, ot = (e, t) => {
|
|
34
35
|
if (Number.isNaN(e) || !Number.isFinite(e)) return e;
|
|
35
|
-
const r =
|
|
36
|
+
const r = Q(t);
|
|
36
37
|
if (r == 0) return e;
|
|
37
38
|
let n;
|
|
38
|
-
r >= 1e3 ? n = L : r >= 1 ? n = U : n = Math.ceil(-Math.log10(r)) +
|
|
39
|
+
r >= 1e3 ? n = L : r >= 1 ? n = U : n = Math.ceil(-Math.log10(r)) + K;
|
|
39
40
|
const s = 10 ** n;
|
|
40
41
|
return Math.round(e * s) / s;
|
|
41
|
-
},
|
|
42
|
+
}, it = 5, at = 1e-10, ct = (e, t) => {
|
|
42
43
|
if (Number.isNaN(e) || !Number.isFinite(e)) return e;
|
|
43
44
|
const r = Math.abs(e);
|
|
44
45
|
if (r === 0) return 0;
|
|
45
46
|
let n = !1, s = 0;
|
|
46
47
|
if (t != null) {
|
|
47
|
-
s =
|
|
48
|
+
s = Q(t);
|
|
48
49
|
const i = s / r;
|
|
49
|
-
n = s > 0 && i >
|
|
50
|
+
n = s > 0 && i > at;
|
|
50
51
|
}
|
|
51
52
|
if (n) {
|
|
52
53
|
let i;
|
|
53
|
-
s >= 1e3 ? i = L : s >= 1 ? i = U : i = Math.ceil(-Math.log10(s)) +
|
|
54
|
+
s >= 1e3 ? i = L : s >= 1 ? i = U : i = Math.ceil(-Math.log10(s)) + K;
|
|
54
55
|
const l = 10 ** i;
|
|
55
56
|
return Math.round(e * l) / l;
|
|
56
57
|
}
|
|
@@ -62,55 +63,55 @@ const L = 2, U = 3, J = 2, nt = (e, t) => {
|
|
|
62
63
|
const i = 10 ** U;
|
|
63
64
|
return Math.round(e * i) / i;
|
|
64
65
|
}
|
|
65
|
-
const o = Math.floor(Math.log10(r)), f = 10 ** (
|
|
66
|
+
const o = Math.floor(Math.log10(r)), f = 10 ** (it - o - 1);
|
|
66
67
|
return Math.round(e * f) / f;
|
|
67
|
-
},
|
|
68
|
+
}, Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
68
69
|
__proto__: null,
|
|
69
|
-
MAX_INT16:
|
|
70
|
-
MAX_INT32:
|
|
71
|
-
MAX_INT64:
|
|
72
|
-
MAX_INT64_NUMBER:
|
|
73
|
-
MAX_INT8:
|
|
74
|
-
MAX_UINT16:
|
|
75
|
-
MAX_UINT32:
|
|
76
|
-
MAX_UINT64:
|
|
77
|
-
MAX_UINT64_NUMBER:
|
|
78
|
-
MAX_UINT8:
|
|
79
|
-
MIN_INT16:
|
|
80
|
-
MIN_INT32:
|
|
81
|
-
MIN_INT64:
|
|
82
|
-
MIN_INT64_NUMBER:
|
|
83
|
-
MIN_INT8:
|
|
84
|
-
abs:
|
|
85
|
-
add:
|
|
86
|
-
closeTo:
|
|
87
|
-
div:
|
|
88
|
-
equal:
|
|
89
|
-
isInteger:
|
|
90
|
-
max:
|
|
91
|
-
min:
|
|
92
|
-
mult:
|
|
93
|
-
roundBySpan:
|
|
94
|
-
roundToNearestMagnitude:
|
|
95
|
-
smartRound:
|
|
96
|
-
sub:
|
|
97
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
98
|
-
(t) => setTimeout(t,
|
|
99
|
-
),
|
|
70
|
+
MAX_INT16: Ie,
|
|
71
|
+
MAX_INT32: Ee,
|
|
72
|
+
MAX_INT64: Oe,
|
|
73
|
+
MAX_INT64_NUMBER: Ae,
|
|
74
|
+
MAX_INT8: ke,
|
|
75
|
+
MAX_UINT16: Pe,
|
|
76
|
+
MAX_UINT32: Re,
|
|
77
|
+
MAX_UINT64: Ze,
|
|
78
|
+
MAX_UINT64_NUMBER: Ce,
|
|
79
|
+
MAX_UINT8: Le,
|
|
80
|
+
MIN_INT16: Ue,
|
|
81
|
+
MIN_INT32: qe,
|
|
82
|
+
MIN_INT64: ze,
|
|
83
|
+
MIN_INT64_NUMBER: We,
|
|
84
|
+
MIN_INT8: De,
|
|
85
|
+
abs: Fe,
|
|
86
|
+
add: Ve,
|
|
87
|
+
closeTo: He,
|
|
88
|
+
div: Xe,
|
|
89
|
+
equal: Ge,
|
|
90
|
+
isInteger: Je,
|
|
91
|
+
max: Qe,
|
|
92
|
+
min: Ye,
|
|
93
|
+
mult: Ke,
|
|
94
|
+
roundBySpan: ot,
|
|
95
|
+
roundToNearestMagnitude: et,
|
|
96
|
+
smartRound: ct,
|
|
97
|
+
sub: tt
|
|
98
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = async (e) => await new Promise(
|
|
99
|
+
(t) => setTimeout(t, M.fromMilliseconds(e).milliseconds)
|
|
100
|
+
), Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
100
101
|
__proto__: null,
|
|
101
|
-
sleep:
|
|
102
|
+
sleep: ee
|
|
102
103
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
103
|
-
class
|
|
104
|
+
class lt {
|
|
104
105
|
config;
|
|
105
106
|
retries;
|
|
106
107
|
interval;
|
|
107
108
|
constructor(t) {
|
|
108
109
|
this.config = {
|
|
109
|
-
baseInterval: new
|
|
110
|
+
baseInterval: new M(t?.baseInterval ?? M.seconds(1)),
|
|
110
111
|
maxRetries: t?.maxRetries ?? 5,
|
|
111
112
|
scale: t?.scale ?? 1,
|
|
112
|
-
sleepFn: t?.sleepFn ??
|
|
113
|
-
}, this.retries = 0, this.interval = new
|
|
113
|
+
sleepFn: t?.sleepFn ?? ee
|
|
114
|
+
}, this.retries = 0, this.interval = new M(this.config.baseInterval);
|
|
114
115
|
}
|
|
115
116
|
async wait() {
|
|
116
117
|
const { maxRetries: t, scale: r, sleepFn: n } = this.config;
|
|
@@ -123,73 +124,73 @@ class at {
|
|
|
123
124
|
this.retries = 0, this.interval = this.config.baseInterval;
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
|
-
const
|
|
127
|
-
baseInterval:
|
|
128
|
-
maxRetries:
|
|
129
|
-
scale:
|
|
130
|
-
}),
|
|
127
|
+
const ut = c.object({
|
|
128
|
+
baseInterval: M.z.optional(),
|
|
129
|
+
maxRetries: c.number().optional(),
|
|
130
|
+
scale: c.number().optional()
|
|
131
|
+
}), qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
131
132
|
__proto__: null,
|
|
132
|
-
Breaker:
|
|
133
|
-
breakerConfigZ:
|
|
134
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
133
|
+
Breaker: lt,
|
|
134
|
+
breakerConfigZ: ut
|
|
135
|
+
}, Symbol.toStringTag, { value: "Module" })), ft = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, k = c.string().regex(ft), y = c.number().min(0).max(255), te = c.number().min(0).max(1), P = c.tuple([y, y, y, te]), dt = c.tuple([y, y, y]), mt = c.object({ rgba255: P }), ht = c.number().min(0).max(360), pt = c.number().min(0).max(100), gt = c.number().min(0).max(100), re = c.tuple([ht, pt, gt, te]), R = c.union([k, dt, P, re, mt]), Z = R.transform((e) => d(e)), bt = (e) => Z.safeParse(e).success, _t = (e) => P.safeParse(e).success, yt = ((e) => {
|
|
135
136
|
if (e == null) return;
|
|
136
|
-
const t =
|
|
137
|
-
if (t.success) return
|
|
137
|
+
const t = Z.safeParse(e);
|
|
138
|
+
if (t.success) return se(t.data);
|
|
138
139
|
if (typeof e == "string") return e;
|
|
139
140
|
throw t.error;
|
|
140
141
|
}), d = (e, t = 1) => {
|
|
141
|
-
if (e =
|
|
142
|
+
if (e = R.parse(e), typeof e == "string") return A(e, t);
|
|
142
143
|
if (Array.isArray(e)) {
|
|
143
144
|
if (e.length < 3 || e.length > 4)
|
|
144
145
|
throw new Error(`Invalid color: [${e.join(", ")}]`);
|
|
145
146
|
return e.length === 3 ? [...e, t] : e;
|
|
146
147
|
}
|
|
147
148
|
return e.rgba255;
|
|
148
|
-
},
|
|
149
|
+
}, ne = (e, t) => {
|
|
149
150
|
if (e == null || t == null) return e == t;
|
|
150
151
|
const r = d(e), n = d(t);
|
|
151
152
|
return r.every((s, o) => s === n[o]);
|
|
152
|
-
},
|
|
153
|
+
}, wt = ((e) => {
|
|
153
154
|
if (e == null) return;
|
|
154
155
|
const [t, r, n, s] = d(e);
|
|
155
|
-
return `#${
|
|
156
|
-
}),
|
|
156
|
+
return `#${E(t)}${E(r)}${E(n)}${s === 1 ? "" : E(s * 255)}`;
|
|
157
|
+
}), se = (e) => {
|
|
157
158
|
const [t, r, n, s] = d(e);
|
|
158
159
|
return `rgba(${t}, ${r}, ${n}, ${s})`;
|
|
159
|
-
},
|
|
160
|
+
}, Mt = (e) => `rgb(${oe(e)})`, oe = (e) => {
|
|
160
161
|
const [t, r, n] = d(e);
|
|
161
162
|
return `${t}, ${r}, ${n}`;
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
],
|
|
163
|
+
}, vt = (e) => [...B(e), T(e)], B = (e) => [
|
|
164
|
+
v(e) / 255,
|
|
165
|
+
S(e) / 255,
|
|
166
|
+
x(e) / 255
|
|
167
|
+
], v = (e) => d(e)[0], S = (e) => d(e)[1], x = (e) => d(e)[2], T = (e) => d(e)[3], St = (e) => ne(F, e), xt = (e) => kt(d(e)), Tt = (e, t) => {
|
|
167
168
|
const [r, n, s] = d(e);
|
|
168
169
|
if (t > 100)
|
|
169
170
|
throw new Error(`Color opacity must be between 0 and 100, got ${t}`);
|
|
170
171
|
return t > 1 && (t /= 100), [r, n, s, t];
|
|
171
|
-
},
|
|
172
|
+
}, $ = (e) => {
|
|
172
173
|
const [t, r, n] = B(e).map(
|
|
173
174
|
(s) => s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4
|
|
174
175
|
);
|
|
175
176
|
return Number((0.2126 * t + 0.7152 * r + 0.0722 * n).toFixed(3));
|
|
176
|
-
},
|
|
177
|
+
}, $t = (e) => {
|
|
177
178
|
const [t, r, n] = B(e);
|
|
178
179
|
return 1 - (Math.max(t, r, n) - Math.min(t, r, n));
|
|
179
180
|
}, q = (e, t) => {
|
|
180
|
-
const r = d(e), n = d(t), s =
|
|
181
|
+
const r = d(e), n = d(t), s = $(r), o = $(n);
|
|
181
182
|
return (Math.max(s, o) + 0.5) / (Math.min(s, o) + 0.5);
|
|
182
|
-
},
|
|
183
|
+
}, jt = (e, ...t) => {
|
|
183
184
|
if (t.length === 0)
|
|
184
185
|
throw new Error("[Color.pickByContrast] - must provide at least one color");
|
|
185
186
|
const r = d(e), [n] = t.sort((s, o) => q(r, o) - q(r, s));
|
|
186
187
|
return d(n);
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
e.length === 8 ?
|
|
192
|
-
]), F = [0, 0, 0, 0],
|
|
188
|
+
}, Nt = (e) => $(e) < 0.5, It = (e) => $(e) > 0.5, A = (e, t = 1) => (e = k.parse(e), e = Et(e), [
|
|
189
|
+
O(e, 0),
|
|
190
|
+
O(e, 2),
|
|
191
|
+
O(e, 4),
|
|
192
|
+
e.length === 8 ? O(e, 6) / 255 : t
|
|
193
|
+
]), F = [0, 0, 0, 0], E = (e) => Math.floor(e).toString(16).padStart(2, "0"), O = (e, t) => parseInt(e.slice(t, t + 2), 16), Et = (e) => e.startsWith("#") ? e.slice(1) : e, G = {
|
|
193
194
|
black: "#000000",
|
|
194
195
|
white: "#ffffff",
|
|
195
196
|
red: "#ff0000",
|
|
@@ -221,61 +222,61 @@ const ct = a.object({
|
|
|
221
222
|
khaki: "#f0e68c",
|
|
222
223
|
crimson: "#dc143c",
|
|
223
224
|
transparent: "transparent"
|
|
224
|
-
},
|
|
225
|
+
}, Ot = (e) => {
|
|
225
226
|
if (!e) return;
|
|
226
227
|
const t = e.trim().toLowerCase();
|
|
227
228
|
if (!(t === "transparent" || t === "none")) {
|
|
228
229
|
if (t.startsWith("#")) {
|
|
229
230
|
if (t.length === 4) {
|
|
230
231
|
const r = t[1], n = t[2], s = t[3], o = `#${r}${r}${n}${n}${s}${s}`;
|
|
231
|
-
if (
|
|
232
|
+
if (k.safeParse(o).success) return A(o);
|
|
232
233
|
}
|
|
233
|
-
return (t.length === 7 || t.length === 9) &&
|
|
234
|
+
return (t.length === 7 || t.length === 9) && k.safeParse(t).success ? A(t) : void 0;
|
|
234
235
|
}
|
|
235
236
|
if (t.startsWith("rgb")) {
|
|
236
237
|
const r = t.match(
|
|
237
238
|
/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/
|
|
238
239
|
);
|
|
239
240
|
if (r) {
|
|
240
|
-
const [, n, s, o,
|
|
241
|
-
return [parseInt(n), parseInt(s), parseInt(o),
|
|
241
|
+
const [, n, s, o, a] = r;
|
|
242
|
+
return [parseInt(n), parseInt(s), parseInt(o), a ? parseFloat(a) : 1];
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
|
-
if (
|
|
245
|
+
if (G[t]) return A(G[t]);
|
|
245
246
|
}
|
|
246
|
-
},
|
|
247
|
-
e =
|
|
247
|
+
}, At = (e) => {
|
|
248
|
+
e = re.parse(e);
|
|
248
249
|
let [t, r, n] = e;
|
|
249
250
|
const s = e[3];
|
|
250
251
|
t /= 360, r /= 100, n /= 100;
|
|
251
|
-
let o,
|
|
252
|
+
let o, a, f;
|
|
252
253
|
if (r === 0)
|
|
253
|
-
o =
|
|
254
|
+
o = a = f = n;
|
|
254
255
|
else {
|
|
255
256
|
const i = n < 0.5 ? n * (1 + r) : n + r - n * r, l = 2 * n - i;
|
|
256
|
-
o = C(l, i, t + 1 / 3),
|
|
257
|
+
o = C(l, i, t + 1 / 3), a = C(l, i, t), f = C(l, i, t - 1 / 3);
|
|
257
258
|
}
|
|
258
|
-
return [Math.round(o * 255), Math.round(
|
|
259
|
-
}, C = (e, t, r) => (r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e),
|
|
260
|
-
e =
|
|
259
|
+
return [Math.round(o * 255), Math.round(a * 255), Math.round(f * 255), s];
|
|
260
|
+
}, C = (e, t, r) => (r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e), kt = (e) => {
|
|
261
|
+
e = P.parse(e);
|
|
261
262
|
let [t, r, n] = e;
|
|
262
263
|
const s = e[3];
|
|
263
264
|
t /= 255, r /= 255, n /= 255;
|
|
264
|
-
const o = Math.max(t, r, n),
|
|
265
|
-
let f, i, l = (o +
|
|
266
|
-
if (o ===
|
|
265
|
+
const o = Math.max(t, r, n), a = Math.min(t, r, n);
|
|
266
|
+
let f, i, l = (o + a) / 2;
|
|
267
|
+
if (o === a)
|
|
267
268
|
f = i = 0;
|
|
268
269
|
else {
|
|
269
|
-
const u = o -
|
|
270
|
-
i = l > 0.5 ? u / (2 - o -
|
|
270
|
+
const u = o - a;
|
|
271
|
+
i = l > 0.5 ? u / (2 - o - a) : u / (o + a), o === t ? f = (r - n) / u + (r < n ? 6 : 0) : o === r ? f = (n - t) / u + 2 : f = (t - r) / u + 4, f /= 6;
|
|
271
272
|
}
|
|
272
273
|
return f *= 360, i *= 100, l *= 100, [Math.round(f), Math.round(i), Math.round(l), s];
|
|
273
|
-
},
|
|
274
|
-
key:
|
|
275
|
-
color:
|
|
276
|
-
position:
|
|
277
|
-
switched:
|
|
278
|
-
}),
|
|
274
|
+
}, Pt = d("#000000"), Rt = d("#ffffff"), ie = c.object({
|
|
275
|
+
key: c.string(),
|
|
276
|
+
color: R,
|
|
277
|
+
position: c.number(),
|
|
278
|
+
switched: c.boolean().optional()
|
|
279
|
+
}), Zt = c.array(ie), Ct = (e, t) => {
|
|
279
280
|
if (e.length === 0) return F;
|
|
280
281
|
if (e = e.slice().sort((r, n) => r.position - n.position), t <= e[0].position) return d(e[0].color);
|
|
281
282
|
if (t >= e[e.length - 1].position)
|
|
@@ -285,208 +286,211 @@ const ct = a.object({
|
|
|
285
286
|
if (t < n.position || t > s.position) continue;
|
|
286
287
|
if (t === n.position) return d(n.color);
|
|
287
288
|
if (t === s.position) return d(s.color);
|
|
288
|
-
const o = (t - n.position) / (s.position - n.position),
|
|
289
|
-
|
|
289
|
+
const o = (t - n.position) / (s.position - n.position), a = d(n.color), f = d(s.color), i = Math.round(
|
|
290
|
+
v(a) + o * (v(f) - v(a))
|
|
290
291
|
), l = Math.round(
|
|
291
|
-
|
|
292
|
+
S(a) + o * (S(f) - S(a))
|
|
292
293
|
), u = Math.round(
|
|
293
|
-
|
|
294
|
-
),
|
|
295
|
-
return d([i, l, u,
|
|
294
|
+
x(a) + o * (x(f) - x(a))
|
|
295
|
+
), h = T(a) + o * (T(f) - T(a));
|
|
296
|
+
return d([i, l, u, h]);
|
|
296
297
|
}
|
|
297
298
|
return d(e[e.length - 1].color);
|
|
298
|
-
},
|
|
299
|
-
key:
|
|
300
|
-
name:
|
|
301
|
-
color:
|
|
302
|
-
}),
|
|
303
|
-
key:
|
|
304
|
-
name:
|
|
305
|
-
swatches:
|
|
306
|
-
}),
|
|
299
|
+
}, Lt = c.object({
|
|
300
|
+
key: c.string(),
|
|
301
|
+
name: c.string(),
|
|
302
|
+
color: Z
|
|
303
|
+
}), Ut = c.object({
|
|
304
|
+
key: c.string(),
|
|
305
|
+
name: c.string(),
|
|
306
|
+
swatches: c.array(Lt)
|
|
307
|
+
}), zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
307
308
|
__proto__: null,
|
|
308
|
-
BLACK:
|
|
309
|
-
WHITE:
|
|
309
|
+
BLACK: Pt,
|
|
310
|
+
WHITE: Rt,
|
|
310
311
|
ZERO: F,
|
|
311
|
-
aValue:
|
|
312
|
-
bValue:
|
|
313
|
-
colorZ:
|
|
312
|
+
aValue: T,
|
|
313
|
+
bValue: x,
|
|
314
|
+
colorZ: Z,
|
|
314
315
|
construct: d,
|
|
315
316
|
contrast: q,
|
|
316
|
-
crudeZ:
|
|
317
|
-
cssString:
|
|
318
|
-
equals:
|
|
319
|
-
fromCSS:
|
|
320
|
-
fromGradient:
|
|
321
|
-
fromHSLA:
|
|
322
|
-
gValue:
|
|
323
|
-
gradientZ:
|
|
324
|
-
grayness:
|
|
325
|
-
hex:
|
|
326
|
-
hsla:
|
|
327
|
-
isColor:
|
|
328
|
-
isCrude:
|
|
329
|
-
isDark:
|
|
330
|
-
isLight:
|
|
331
|
-
isZero:
|
|
332
|
-
luminance:
|
|
333
|
-
paletteZ:
|
|
334
|
-
pickByContrast:
|
|
335
|
-
rValue:
|
|
336
|
-
rgbCSS:
|
|
337
|
-
rgbString:
|
|
338
|
-
rgba1:
|
|
339
|
-
rgbaCSS:
|
|
340
|
-
setAlpha:
|
|
341
|
-
stopZ:
|
|
342
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
343
|
-
lower:
|
|
344
|
-
upper:
|
|
345
|
-
},
|
|
346
|
-
name:
|
|
347
|
-
key:
|
|
348
|
-
}),
|
|
349
|
-
subject:
|
|
317
|
+
crudeZ: R,
|
|
318
|
+
cssString: yt,
|
|
319
|
+
equals: ne,
|
|
320
|
+
fromCSS: Ot,
|
|
321
|
+
fromGradient: Ct,
|
|
322
|
+
fromHSLA: At,
|
|
323
|
+
gValue: S,
|
|
324
|
+
gradientZ: Zt,
|
|
325
|
+
grayness: $t,
|
|
326
|
+
hex: wt,
|
|
327
|
+
hsla: xt,
|
|
328
|
+
isColor: _t,
|
|
329
|
+
isCrude: bt,
|
|
330
|
+
isDark: Nt,
|
|
331
|
+
isLight: It,
|
|
332
|
+
isZero: St,
|
|
333
|
+
luminance: $,
|
|
334
|
+
paletteZ: Ut,
|
|
335
|
+
pickByContrast: jt,
|
|
336
|
+
rValue: v,
|
|
337
|
+
rgbCSS: Mt,
|
|
338
|
+
rgbString: oe,
|
|
339
|
+
rgba1: vt,
|
|
340
|
+
rgbaCSS: se,
|
|
341
|
+
setAlpha: Tt,
|
|
342
|
+
stopZ: ie
|
|
343
|
+
}, Symbol.toStringTag, { value: "Module" })), ae = c.int().min(0).max(255), ce = 255, le = 0, qt = {
|
|
344
|
+
lower: le,
|
|
345
|
+
upper: ce + 1
|
|
346
|
+
}, ue = c.object({
|
|
347
|
+
name: c.string(),
|
|
348
|
+
key: c.string()
|
|
349
|
+
}), j = (e) => c.object({
|
|
350
|
+
subject: ue,
|
|
350
351
|
resource: e,
|
|
351
|
-
authority:
|
|
352
|
-
}),
|
|
352
|
+
authority: ae
|
|
353
|
+
}), zt = (...e) => (t) => t.filter((r) => {
|
|
353
354
|
let n = !1;
|
|
354
355
|
return r.to != null && (n = e.includes(r.to.resource)), r.from != null && !n && (n = e.includes(r.from.resource)), n;
|
|
355
|
-
}),
|
|
356
|
-
from:
|
|
357
|
-
to:
|
|
358
|
-
}),
|
|
359
|
-
from:
|
|
360
|
-
to:
|
|
361
|
-
}),
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
from:
|
|
366
|
-
to:
|
|
356
|
+
}), fe = (e) => c.object({
|
|
357
|
+
from: j(e),
|
|
358
|
+
to: c.null()
|
|
359
|
+
}), de = (e) => c.object({
|
|
360
|
+
from: c.null(),
|
|
361
|
+
to: j(e)
|
|
362
|
+
}), Wt = (e) => c.union([
|
|
363
|
+
fe(e),
|
|
364
|
+
de(e),
|
|
365
|
+
c.object({
|
|
366
|
+
from: j(e),
|
|
367
|
+
to: j(e)
|
|
367
368
|
})
|
|
368
|
-
]),
|
|
369
|
+
]), Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
369
370
|
__proto__: null,
|
|
370
|
-
ABSOLUTE_AUTHORITY:
|
|
371
|
-
AUTHORITY_BOUNDS:
|
|
372
|
-
ZERO_AUTHORITY:
|
|
373
|
-
acquireZ:
|
|
374
|
-
authorityZ:
|
|
375
|
-
filterTransfersByChannelKey:
|
|
376
|
-
releaseZ:
|
|
377
|
-
stateZ:
|
|
378
|
-
subjectZ:
|
|
379
|
-
transferZ:
|
|
380
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
371
|
+
ABSOLUTE_AUTHORITY: ce,
|
|
372
|
+
AUTHORITY_BOUNDS: qt,
|
|
373
|
+
ZERO_AUTHORITY: le,
|
|
374
|
+
acquireZ: de,
|
|
375
|
+
authorityZ: ae,
|
|
376
|
+
filterTransfersByChannelKey: zt,
|
|
377
|
+
releaseZ: fe,
|
|
378
|
+
stateZ: j,
|
|
379
|
+
subjectZ: ue,
|
|
380
|
+
transferZ: Wt
|
|
381
|
+
}, Symbol.toStringTag, { value: "Module" })), Dt = /[",\n]/, Bt = (e) => Dt.test(e) ? `"${e.replace(/"/g, '""')}"` : e, Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
382
|
+
__proto__: null,
|
|
383
|
+
maybeEscapeField: Bt
|
|
384
|
+
}, Symbol.toStringTag, { value: "Module" })), Ft = (e) => Object.getOwnPropertySymbols(globalThis).includes(e), Vt = (e, t) => {
|
|
381
385
|
const r = Symbol.for(e);
|
|
382
|
-
if (!
|
|
386
|
+
if (!Ft(r)) {
|
|
383
387
|
const n = t();
|
|
384
388
|
Object.defineProperty(globalThis, r, { value: n });
|
|
385
389
|
}
|
|
386
390
|
return () => globalThis[r];
|
|
387
|
-
},
|
|
388
|
-
static discriminator =
|
|
389
|
-
discriminator =
|
|
391
|
+
}, me = "sy_x_error", Ht = (e) => (t) => t != null && typeof t == "object" && "type" in t && typeof t.type == "string" ? t.type.startsWith(e) : t instanceof Error ? t.message.startsWith(e) : typeof t != "string" ? !1 : t.startsWith(e), N = (e) => class w extends Error {
|
|
392
|
+
static discriminator = me;
|
|
393
|
+
discriminator = w.discriminator;
|
|
390
394
|
static TYPE = e;
|
|
391
|
-
type =
|
|
392
|
-
static matches =
|
|
393
|
-
matches =
|
|
395
|
+
type = w.TYPE;
|
|
396
|
+
static matches = Ht(e);
|
|
397
|
+
matches = w.matches;
|
|
394
398
|
constructor(r, n) {
|
|
395
|
-
super(r, n), this.name =
|
|
399
|
+
super(r, n), this.name = w.TYPE;
|
|
396
400
|
}
|
|
397
401
|
static sub(r) {
|
|
398
|
-
return
|
|
402
|
+
return N(`${e}.${r}`);
|
|
399
403
|
}
|
|
400
|
-
},
|
|
404
|
+
}, he = (e) => {
|
|
401
405
|
if (e == null || typeof e != "object") return !1;
|
|
402
406
|
const t = e;
|
|
403
|
-
if (t.discriminator !==
|
|
407
|
+
if (t.discriminator !== me) return !1;
|
|
404
408
|
if (!("type" in t))
|
|
405
409
|
throw new Error(
|
|
406
410
|
`X Error is missing its type property: ${JSON.stringify(t)}`
|
|
407
411
|
);
|
|
408
412
|
return !0;
|
|
409
|
-
},
|
|
410
|
-
class
|
|
413
|
+
}, _ = "unknown", z = "nil";
|
|
414
|
+
class Xt {
|
|
411
415
|
providers = [];
|
|
412
416
|
register(t) {
|
|
413
417
|
this.providers.push(t);
|
|
414
418
|
}
|
|
415
419
|
encode(t) {
|
|
416
|
-
if (t == null) return { type:
|
|
417
|
-
if (
|
|
420
|
+
if (t == null) return { type: z, data: "" };
|
|
421
|
+
if (he(t))
|
|
418
422
|
for (const r of this.providers) {
|
|
419
423
|
const n = r.encode(t);
|
|
420
424
|
if (n != null) return n;
|
|
421
425
|
}
|
|
422
|
-
if (t instanceof Error) return { type:
|
|
423
|
-
if (typeof t == "string") return { type:
|
|
426
|
+
if (t instanceof Error) return { type: _, data: t.message };
|
|
427
|
+
if (typeof t == "string") return { type: _, data: t };
|
|
424
428
|
try {
|
|
425
|
-
return { type:
|
|
429
|
+
return { type: _, data: JSON.stringify(t) };
|
|
426
430
|
} catch {
|
|
427
|
-
return { type:
|
|
431
|
+
return { type: _, data: "unable to encode error information" };
|
|
428
432
|
}
|
|
429
433
|
}
|
|
430
434
|
decode(t) {
|
|
431
|
-
if (t == null || t.type ===
|
|
432
|
-
if (t.type ===
|
|
435
|
+
if (t == null || t.type === z) return null;
|
|
436
|
+
if (t.type === _) return new W(t.data);
|
|
433
437
|
for (const r of this.providers) {
|
|
434
438
|
const n = r.decode(t);
|
|
435
439
|
if (n != null) return n;
|
|
436
440
|
}
|
|
437
|
-
return new
|
|
441
|
+
return new W(t.data);
|
|
438
442
|
}
|
|
439
443
|
}
|
|
440
|
-
const V =
|
|
441
|
-
class
|
|
444
|
+
const V = Vt("synnax-error-registry", () => new Xt()), Gt = ({ encode: e, decode: t }) => V().register({ encode: e, decode: t }), Jt = (e) => V().encode(e), Qt = (e) => e == null ? null : V().decode(e);
|
|
445
|
+
class W extends N("unknown") {
|
|
442
446
|
}
|
|
443
|
-
const
|
|
444
|
-
class
|
|
447
|
+
const Yt = c.object({ type: c.string(), data: c.string() });
|
|
448
|
+
class Kt extends N("canceled") {
|
|
445
449
|
}
|
|
446
|
-
class
|
|
450
|
+
class er extends N("not_implemented") {
|
|
447
451
|
}
|
|
448
|
-
const
|
|
452
|
+
const Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
449
453
|
__proto__: null,
|
|
450
|
-
Canceled:
|
|
451
|
-
NONE:
|
|
452
|
-
NotImplemented:
|
|
453
|
-
UNKNOWN:
|
|
454
|
-
Unknown:
|
|
455
|
-
createTyped:
|
|
456
|
-
decode:
|
|
457
|
-
encode:
|
|
458
|
-
isTyped:
|
|
459
|
-
payloadZ:
|
|
460
|
-
register:
|
|
461
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
462
|
-
jsonrpc:
|
|
463
|
-
method:
|
|
454
|
+
Canceled: Kt,
|
|
455
|
+
NONE: z,
|
|
456
|
+
NotImplemented: er,
|
|
457
|
+
UNKNOWN: _,
|
|
458
|
+
Unknown: W,
|
|
459
|
+
createTyped: N,
|
|
460
|
+
decode: Qt,
|
|
461
|
+
encode: Jt,
|
|
462
|
+
isTyped: he,
|
|
463
|
+
payloadZ: Yt,
|
|
464
|
+
register: Gt
|
|
465
|
+
}, Symbol.toStringTag, { value: "Module" })), Fr = () => Promise.resolve(), Vr = () => new Promise((e) => setTimeout(e, 0)), Hr = (e) => e ? -1 : 1, pe = m.object({
|
|
466
|
+
jsonrpc: m.literal("2.0"),
|
|
467
|
+
method: m.string(),
|
|
464
468
|
// params should be z.union([z.record(z.string(), z.json()),
|
|
465
469
|
// z.array(z.json())]).optional() but the VSCode JSON RPC implementation uses a looser
|
|
466
470
|
// definition of params then in the JSON-RPC spec.
|
|
467
|
-
params:
|
|
468
|
-
id:
|
|
469
|
-
}),
|
|
470
|
-
jsonrpc:
|
|
471
|
-
id:
|
|
472
|
-
}),
|
|
473
|
-
result:
|
|
474
|
-
}),
|
|
475
|
-
error:
|
|
476
|
-
code:
|
|
471
|
+
params: m.any().optional(),
|
|
472
|
+
id: m.union([m.string(), m.number(), m.null()]).optional()
|
|
473
|
+
}), ge = m.object({
|
|
474
|
+
jsonrpc: m.literal("2.0"),
|
|
475
|
+
id: m.union([m.string(), m.number(), m.null()])
|
|
476
|
+
}), tr = ge.extend({
|
|
477
|
+
result: m.json()
|
|
478
|
+
}), rr = ge.extend({
|
|
479
|
+
error: m.object({
|
|
480
|
+
code: m.number().int(),
|
|
477
481
|
// This should be z.string(), but the VSCode JSON RPC implementation uses a looser
|
|
478
482
|
// definition of error than the JSON-RPC spec.
|
|
479
|
-
message:
|
|
480
|
-
data:
|
|
483
|
+
message: m.string().optional(),
|
|
484
|
+
data: m.json().optional()
|
|
481
485
|
})
|
|
482
|
-
}),
|
|
486
|
+
}), be = m.union([tr, rr]), _e = m.union([pe, be]), nr = (e) => {
|
|
483
487
|
const t = new TextDecoder();
|
|
484
488
|
let r = new Uint8Array(0), n = null;
|
|
485
489
|
return (s) => {
|
|
486
490
|
let o;
|
|
487
491
|
typeof s == "string" ? o = new TextEncoder().encode(s) : s instanceof ArrayBuffer ? o = new Uint8Array(s) : o = s;
|
|
488
|
-
const
|
|
489
|
-
for (
|
|
492
|
+
const a = new Uint8Array(r.length + o.length);
|
|
493
|
+
for (a.set(r), a.set(o, r.length), r = a; r.length > 0; ) {
|
|
490
494
|
if (n === null) {
|
|
491
495
|
const i = t.decode(r).match(/^Content-Length: (\d+)\r?\n\r?\n/);
|
|
492
496
|
if (!i) break;
|
|
@@ -497,54 +501,73 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
497
501
|
if (n !== null && r.length >= n) {
|
|
498
502
|
const f = r.slice(0, n);
|
|
499
503
|
r = r.slice(n), n = null;
|
|
500
|
-
const i = t.decode(f), l =
|
|
504
|
+
const i = t.decode(f), l = Ne.decodeString(i, _e);
|
|
501
505
|
e(l);
|
|
502
506
|
} else break;
|
|
503
507
|
}
|
|
504
508
|
};
|
|
505
|
-
},
|
|
509
|
+
}, sr = (e) => {
|
|
506
510
|
const t = JSON.stringify(e);
|
|
507
511
|
return `Content-Length: ${new TextEncoder().encode(t).length}\r
|
|
508
512
|
\r
|
|
509
513
|
` + t;
|
|
510
|
-
},
|
|
514
|
+
}, Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
511
515
|
__proto__: null,
|
|
512
|
-
encodeMessage:
|
|
513
|
-
messageZ:
|
|
514
|
-
requestZ:
|
|
515
|
-
responseZ:
|
|
516
|
-
streamDecodeChunks:
|
|
517
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
518
|
-
key:
|
|
519
|
-
name:
|
|
520
|
-
color:
|
|
521
|
-
}),
|
|
516
|
+
encodeMessage: sr,
|
|
517
|
+
messageZ: _e,
|
|
518
|
+
requestZ: pe,
|
|
519
|
+
responseZ: be,
|
|
520
|
+
streamDecodeChunks: nr
|
|
521
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = m.uuid(), we = m.object({
|
|
522
|
+
key: ye,
|
|
523
|
+
name: m.string().min(1),
|
|
524
|
+
color: m.string()
|
|
525
|
+
}), Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
522
526
|
__proto__: null,
|
|
523
|
-
keyZ:
|
|
524
|
-
labelZ:
|
|
525
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
527
|
+
keyZ: ye,
|
|
528
|
+
labelZ: we
|
|
529
|
+
}, Symbol.toStringTag, { value: "Module" })), or = (e, t, r) => {
|
|
526
530
|
const n = e.get(t);
|
|
527
531
|
return n === void 0 ? (e.set(t, r), r) : n;
|
|
528
|
-
},
|
|
532
|
+
}, Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
533
|
__proto__: null,
|
|
530
|
-
getOrSetDefault:
|
|
531
|
-
}, Symbol.toStringTag, { value: "Module" })), D =
|
|
534
|
+
getOrSetDefault: or
|
|
535
|
+
}, Symbol.toStringTag, { value: "Module" })), D = c.string().regex(/^\d+\.\d+\.\d+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$/), ir = (e, t) => {
|
|
536
|
+
const r = e.split("."), n = t.split("."), s = Math.max(r.length, n.length);
|
|
537
|
+
for (let o = 0; o < s; o++) {
|
|
538
|
+
const a = r[o], f = n[o];
|
|
539
|
+
if (a === void 0) return p;
|
|
540
|
+
if (f === void 0) return g;
|
|
541
|
+
const i = /^\d+$/.test(a), l = /^\d+$/.test(f);
|
|
542
|
+
if (i && !l) return p;
|
|
543
|
+
if (!i && l) return g;
|
|
544
|
+
if (i && l) {
|
|
545
|
+
const u = parseInt(a), h = parseInt(f);
|
|
546
|
+
if (u < h) return p;
|
|
547
|
+
if (u > h) return g;
|
|
548
|
+
} else {
|
|
549
|
+
if (a < f) return p;
|
|
550
|
+
if (a > f) return g;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
return Y;
|
|
554
|
+
}, I = ((e, t, r = {}) => {
|
|
532
555
|
r.checkMajor ??= !0, r.checkMinor ??= !0, r.checkPatch ??= !0;
|
|
533
|
-
const n = D.parse(e), s = D.parse(t), [o,
|
|
556
|
+
const n = D.parse(e), s = D.parse(t), [o, a] = n.split("-"), [f, i] = s.split("-"), [l, u, h] = o.split(".").map(Number), [b, H, X] = f.split(".").map(Number);
|
|
534
557
|
if (r.checkMajor) {
|
|
535
|
-
if (
|
|
536
|
-
if (
|
|
558
|
+
if (l < b) return p;
|
|
559
|
+
if (l > b) return g;
|
|
537
560
|
}
|
|
538
561
|
if (r.checkMinor) {
|
|
539
|
-
if (
|
|
540
|
-
if (
|
|
562
|
+
if (u < H) return p;
|
|
563
|
+
if (u > H) return g;
|
|
541
564
|
}
|
|
542
565
|
if (r.checkPatch) {
|
|
543
|
-
if (
|
|
544
|
-
if (
|
|
566
|
+
if (h < X) return p;
|
|
567
|
+
if (h > X) return g;
|
|
545
568
|
}
|
|
546
|
-
return
|
|
547
|
-
}),
|
|
569
|
+
return a === void 0 && i === void 0 ? Y : a === void 0 ? g : i === void 0 ? p : ir(a, i);
|
|
570
|
+
}), ar = (e, t, r = {}) => rt(I(e, t, r)), Me = (e, t, r = {}) => nt(I(e, t, r)), cr = (e, t, r = {}) => st(I(e, t, r)), lr = ({
|
|
548
571
|
name: e,
|
|
549
572
|
migrate: t
|
|
550
573
|
}) => (r) => {
|
|
@@ -554,14 +577,14 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
554
577
|
} catch (n) {
|
|
555
578
|
throw console.log(`${e} failed to migrate from ${r.version}`), console.error(n), n;
|
|
556
579
|
}
|
|
557
|
-
},
|
|
580
|
+
}, ur = ({
|
|
558
581
|
name: e,
|
|
559
582
|
migrations: t,
|
|
560
583
|
targetSchema: r,
|
|
561
584
|
defaultVersion: n,
|
|
562
585
|
def: s
|
|
563
586
|
}) => {
|
|
564
|
-
const o = Object.keys(t).sort(
|
|
587
|
+
const o = Object.keys(t).sort(I).pop();
|
|
565
588
|
if (o == null)
|
|
566
589
|
return (l) => {
|
|
567
590
|
if (l.version ??= n, l.version !== s.version)
|
|
@@ -576,14 +599,14 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
576
599
|
return console.log(`${e} failed to parse default. Exiting with default`), console.error(u), s;
|
|
577
600
|
}
|
|
578
601
|
};
|
|
579
|
-
const
|
|
602
|
+
const a = Object.keys(t).length;
|
|
580
603
|
let f = !1;
|
|
581
604
|
const i = (l) => {
|
|
582
605
|
try {
|
|
583
|
-
if (
|
|
606
|
+
if (a === 0 || Me(l.version, o))
|
|
584
607
|
return console.log(f ? `${e} ${l.version} now up to date` : `${e} version ${l.version} is up to date with target version ${s.version}`), l;
|
|
585
|
-
const u = l.version,
|
|
586
|
-
return f = !0, i(
|
|
608
|
+
const u = l.version, h = t[u], b = h(l);
|
|
609
|
+
return f = !0, i(b);
|
|
587
610
|
} catch (u) {
|
|
588
611
|
return console.log(
|
|
589
612
|
`${e} failed to migrate from ${l.version} to ${o}`
|
|
@@ -606,16 +629,16 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
606
629
|
return console.log(`${e} failed to parse final result. Exiting with default`), console.error(u), s;
|
|
607
630
|
}
|
|
608
631
|
};
|
|
609
|
-
},
|
|
632
|
+
}, Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
610
633
|
__proto__: null,
|
|
611
|
-
compareSemVer:
|
|
612
|
-
createMigration:
|
|
613
|
-
migrator:
|
|
614
|
-
semVerNewer:
|
|
615
|
-
semVerOlder:
|
|
634
|
+
compareSemVer: I,
|
|
635
|
+
createMigration: lr,
|
|
636
|
+
migrator: ur,
|
|
637
|
+
semVerNewer: Me,
|
|
638
|
+
semVerOlder: cr,
|
|
616
639
|
semVerZ: D,
|
|
617
|
-
versionsEqual:
|
|
618
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
640
|
+
versionsEqual: ar
|
|
641
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = ["standard", "scientific", "engineering"], fr = c.enum(ve), dr = (e, t, r) => {
|
|
619
642
|
if (Number.isNaN(e)) return "NaN";
|
|
620
643
|
if (e === 1 / 0) return "∞";
|
|
621
644
|
if (e === -1 / 0) return "-∞";
|
|
@@ -624,119 +647,119 @@ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
624
647
|
return t === 0 ? "0ᴇ0" : `0.${"0".repeat(t)}ᴇ0`;
|
|
625
648
|
let n;
|
|
626
649
|
return r === "scientific" ? n = Math.floor(Math.log10(Math.abs(e))) : n = Math.floor(Math.log10(Math.abs(e)) / 3) * 3, `${(e / 10 ** n).toFixed(t)}ᴇ${n}`;
|
|
627
|
-
},
|
|
650
|
+
}, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
628
651
|
__proto__: null,
|
|
629
|
-
NOTATIONS:
|
|
630
|
-
notationZ:
|
|
631
|
-
stringifyNumber:
|
|
632
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
652
|
+
NOTATIONS: ve,
|
|
653
|
+
notationZ: fr,
|
|
654
|
+
stringifyNumber: dr
|
|
655
|
+
}, Symbol.toStringTag, { value: "Module" })), Kr = (e) => {
|
|
633
656
|
if (e === void 0 || typeof e == "string" || typeof e == "number")
|
|
634
657
|
return e;
|
|
635
658
|
if (e.toString === void 0) throw new Error("invalid renderer");
|
|
636
659
|
return e.toString();
|
|
637
|
-
},
|
|
660
|
+
}, en = (e) => Array.isArray(e) ? [...e] : typeof e == "object" && e !== null ? { ...e } : e, Se = c.enum([
|
|
638
661
|
"success",
|
|
639
662
|
"info",
|
|
640
663
|
"warning",
|
|
641
664
|
"error",
|
|
642
665
|
"loading",
|
|
643
666
|
"disabled"
|
|
644
|
-
]),
|
|
645
|
-
key:
|
|
646
|
-
name:
|
|
647
|
-
variant:
|
|
648
|
-
message:
|
|
649
|
-
description:
|
|
650
|
-
time:
|
|
651
|
-
labels:
|
|
652
|
-
details: e ??
|
|
653
|
-
}),
|
|
654
|
-
stack:
|
|
655
|
-
error:
|
|
656
|
-
}),
|
|
667
|
+
]), mr = (e) => c.object({
|
|
668
|
+
key: c.string(),
|
|
669
|
+
name: c.string().default(""),
|
|
670
|
+
variant: Se,
|
|
671
|
+
message: c.string(),
|
|
672
|
+
description: c.string().optional(),
|
|
673
|
+
time: J.z,
|
|
674
|
+
labels: je(we).optional(),
|
|
675
|
+
details: e ?? c.unknown().optional()
|
|
676
|
+
}), hr = c.object({
|
|
677
|
+
stack: c.string(),
|
|
678
|
+
error: c.instanceof(Error)
|
|
679
|
+
}), pr = (e, t) => {
|
|
657
680
|
if (!(e instanceof Error)) throw e;
|
|
658
|
-
return
|
|
681
|
+
return xe({
|
|
659
682
|
variant: "error",
|
|
660
683
|
message: t ?? e.message,
|
|
661
684
|
description: t != null ? e.message : void 0,
|
|
662
685
|
details: { stack: e.stack ?? "", error: e }
|
|
663
686
|
});
|
|
664
|
-
},
|
|
665
|
-
key:
|
|
666
|
-
time:
|
|
687
|
+
}, xe = (e) => ({
|
|
688
|
+
key: Be(),
|
|
689
|
+
time: J.now(),
|
|
667
690
|
name: "",
|
|
668
691
|
...e
|
|
669
|
-
}),
|
|
692
|
+
}), gr = (e, t = []) => {
|
|
670
693
|
if (e != null)
|
|
671
694
|
return Array.isArray(t) ? t.includes(e) ? e : void 0 : t === e ? e : void 0;
|
|
672
|
-
},
|
|
695
|
+
}, br = (e, t = []) => {
|
|
673
696
|
if (e != null)
|
|
674
697
|
return Array.isArray(t) ? t.includes(e) ? void 0 : e : t === e ? void 0 : e;
|
|
675
|
-
},
|
|
698
|
+
}, tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
676
699
|
__proto__: null,
|
|
677
|
-
create:
|
|
678
|
-
exceptionDetailsSchema:
|
|
679
|
-
fromException:
|
|
680
|
-
keepVariants:
|
|
681
|
-
removeVariants:
|
|
682
|
-
statusZ:
|
|
683
|
-
variantZ:
|
|
684
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
700
|
+
create: xe,
|
|
701
|
+
exceptionDetailsSchema: hr,
|
|
702
|
+
fromException: pr,
|
|
703
|
+
keepVariants: gr,
|
|
704
|
+
removeVariants: br,
|
|
705
|
+
statusZ: mr,
|
|
706
|
+
variantZ: Se
|
|
707
|
+
}, Symbol.toStringTag, { value: "Module" })), _r = (e, t) => {
|
|
685
708
|
if (!t.has(e)) return e;
|
|
686
709
|
let r = e, n = 1, s = e;
|
|
687
710
|
for (; t.has(s); ) {
|
|
688
|
-
const o = s.match(
|
|
711
|
+
const o = s.match(yr);
|
|
689
712
|
o ? (r = s.slice(0, o.index).trim(), n = parseInt(o[1]) + 1) : (r = s, n = 1), s = `${r} (${n})`;
|
|
690
713
|
}
|
|
691
714
|
return s;
|
|
692
|
-
},
|
|
715
|
+
}, yr = /\((\d+)\)$/, wr = (e, t = "") => {
|
|
693
716
|
if (typeof e == "string") return e;
|
|
694
717
|
const r = e.length;
|
|
695
718
|
return r === 0 ? t : r === 1 ? e[0] : r === 2 ? `${e[0]} and ${e[1]}` : `${e.slice(0, -1).join(", ")}, and ${e[r - 1]}`;
|
|
696
|
-
},
|
|
719
|
+
}, Mr = (e) => {
|
|
697
720
|
const t = e.split(" "), r = /* @__PURE__ */ new Set(), n = t.map((i) => i.charAt(0).toLowerCase()).join("");
|
|
698
721
|
r.add(n.replace(/-/g, "_")), r.add(n.replace(/(.)(.)/g, "$1_$2").replace(/-/g, "_"));
|
|
699
722
|
const s = /\d+/g;
|
|
700
723
|
e.match(s) && t.forEach((i, l) => {
|
|
701
724
|
if (s.test(i)) {
|
|
702
|
-
const u = t.map((
|
|
725
|
+
const u = t.map((h, b) => b !== l ? h.charAt(0).toLowerCase() : h).join("");
|
|
703
726
|
r.add(u.replace(/-/g, "_")), r.add(
|
|
704
727
|
u.replace(/(.)(.)/g, "$1_$2").replace(/-/g, "_")
|
|
705
728
|
);
|
|
706
729
|
}
|
|
707
730
|
});
|
|
708
|
-
const
|
|
731
|
+
const a = t.map(
|
|
709
732
|
(i) => (i.length > 3 ? i.substring(0, 3) : i).toLowerCase()
|
|
710
733
|
);
|
|
711
|
-
return r.add(
|
|
734
|
+
return r.add(a.join("").replace(/-/g, "_")), r.add(a.join("_").replace(/-/g, "_")), Array.from(r).filter(
|
|
712
735
|
(i) => i.length >= 2 && i.length <= 12 && !/^\d/.test(i)
|
|
713
736
|
);
|
|
714
|
-
},
|
|
737
|
+
}, vr = (e, t) => e.startsWith(t) ? e.slice(t.length) : e, rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
715
738
|
__proto__: null,
|
|
716
|
-
createShortIdentifiers:
|
|
717
|
-
deduplicateFileName:
|
|
718
|
-
naturalLanguageJoin:
|
|
719
|
-
trimPrefix:
|
|
720
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
721
|
-
var
|
|
739
|
+
createShortIdentifiers: Mr,
|
|
740
|
+
deduplicateFileName: _r,
|
|
741
|
+
naturalLanguageJoin: wr,
|
|
742
|
+
trimPrefix: vr
|
|
743
|
+
}, Symbol.toStringTag, { value: "Module" })), Sr = new Error("request for lock canceled");
|
|
744
|
+
var xr = function(e, t, r, n) {
|
|
722
745
|
function s(o) {
|
|
723
|
-
return o instanceof r ? o : new r(function(
|
|
724
|
-
|
|
746
|
+
return o instanceof r ? o : new r(function(a) {
|
|
747
|
+
a(o);
|
|
725
748
|
});
|
|
726
749
|
}
|
|
727
|
-
return new (r || (r = Promise))(function(o,
|
|
750
|
+
return new (r || (r = Promise))(function(o, a) {
|
|
728
751
|
function f(u) {
|
|
729
752
|
try {
|
|
730
753
|
l(n.next(u));
|
|
731
|
-
} catch (
|
|
732
|
-
|
|
754
|
+
} catch (h) {
|
|
755
|
+
a(h);
|
|
733
756
|
}
|
|
734
757
|
}
|
|
735
758
|
function i(u) {
|
|
736
759
|
try {
|
|
737
760
|
l(n.throw(u));
|
|
738
|
-
} catch (
|
|
739
|
-
|
|
761
|
+
} catch (h) {
|
|
762
|
+
a(h);
|
|
740
763
|
}
|
|
741
764
|
}
|
|
742
765
|
function l(u) {
|
|
@@ -745,25 +768,25 @@ var yr = function(e, t, r, n) {
|
|
|
745
768
|
l((n = n.apply(e, t || [])).next());
|
|
746
769
|
});
|
|
747
770
|
};
|
|
748
|
-
class
|
|
749
|
-
constructor(t, r =
|
|
771
|
+
class Tr {
|
|
772
|
+
constructor(t, r = Sr) {
|
|
750
773
|
this._value = t, this._cancelError = r, this._queue = [], this._weightedWaiters = [];
|
|
751
774
|
}
|
|
752
775
|
acquire(t = 1, r = 0) {
|
|
753
776
|
if (t <= 0)
|
|
754
777
|
throw new Error(`invalid weight ${t}: must be positive`);
|
|
755
778
|
return new Promise((n, s) => {
|
|
756
|
-
const o = { resolve: n, reject: s, weight: t, priority: r },
|
|
757
|
-
|
|
779
|
+
const o = { resolve: n, reject: s, weight: t, priority: r }, a = Te(this._queue, (f) => r <= f.priority);
|
|
780
|
+
a === -1 && t <= this._value ? this._dispatchItem(o) : this._queue.splice(a + 1, 0, o);
|
|
758
781
|
});
|
|
759
782
|
}
|
|
760
783
|
runExclusive(t) {
|
|
761
|
-
return
|
|
762
|
-
const [o,
|
|
784
|
+
return xr(this, arguments, void 0, function* (r, n = 1, s = 0) {
|
|
785
|
+
const [o, a] = yield this.acquire(n, s);
|
|
763
786
|
try {
|
|
764
787
|
return yield r(o);
|
|
765
788
|
} finally {
|
|
766
|
-
|
|
789
|
+
a();
|
|
767
790
|
}
|
|
768
791
|
});
|
|
769
792
|
}
|
|
@@ -771,7 +794,7 @@ class wr {
|
|
|
771
794
|
if (t <= 0)
|
|
772
795
|
throw new Error(`invalid weight ${t}: must be positive`);
|
|
773
796
|
return this._couldLockImmediately(t, r) ? Promise.resolve() : new Promise((n) => {
|
|
774
|
-
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []),
|
|
797
|
+
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []), $r(this._weightedWaiters[t - 1], { resolve: n, priority: r });
|
|
775
798
|
});
|
|
776
799
|
}
|
|
777
800
|
isLocked() {
|
|
@@ -826,35 +849,35 @@ class wr {
|
|
|
826
849
|
return (this._queue.length === 0 || this._queue[0].priority < r) && t <= this._value;
|
|
827
850
|
}
|
|
828
851
|
}
|
|
829
|
-
function
|
|
830
|
-
const r =
|
|
852
|
+
function $r(e, t) {
|
|
853
|
+
const r = Te(e, (n) => t.priority <= n.priority);
|
|
831
854
|
e.splice(r + 1, 0, t);
|
|
832
855
|
}
|
|
833
|
-
function
|
|
856
|
+
function Te(e, t) {
|
|
834
857
|
for (let r = e.length - 1; r >= 0; r--)
|
|
835
858
|
if (t(e[r]))
|
|
836
859
|
return r;
|
|
837
860
|
return -1;
|
|
838
861
|
}
|
|
839
|
-
var
|
|
862
|
+
var jr = function(e, t, r, n) {
|
|
840
863
|
function s(o) {
|
|
841
|
-
return o instanceof r ? o : new r(function(
|
|
842
|
-
|
|
864
|
+
return o instanceof r ? o : new r(function(a) {
|
|
865
|
+
a(o);
|
|
843
866
|
});
|
|
844
867
|
}
|
|
845
|
-
return new (r || (r = Promise))(function(o,
|
|
868
|
+
return new (r || (r = Promise))(function(o, a) {
|
|
846
869
|
function f(u) {
|
|
847
870
|
try {
|
|
848
871
|
l(n.next(u));
|
|
849
|
-
} catch (
|
|
850
|
-
|
|
872
|
+
} catch (h) {
|
|
873
|
+
a(h);
|
|
851
874
|
}
|
|
852
875
|
}
|
|
853
876
|
function i(u) {
|
|
854
877
|
try {
|
|
855
878
|
l(n.throw(u));
|
|
856
|
-
} catch (
|
|
857
|
-
|
|
879
|
+
} catch (h) {
|
|
880
|
+
a(h);
|
|
858
881
|
}
|
|
859
882
|
}
|
|
860
883
|
function l(u) {
|
|
@@ -863,12 +886,12 @@ var Sr = function(e, t, r, n) {
|
|
|
863
886
|
l((n = n.apply(e, t || [])).next());
|
|
864
887
|
});
|
|
865
888
|
};
|
|
866
|
-
class
|
|
889
|
+
class Nr {
|
|
867
890
|
constructor(t) {
|
|
868
|
-
this._semaphore = new
|
|
891
|
+
this._semaphore = new Tr(1, t);
|
|
869
892
|
}
|
|
870
893
|
acquire() {
|
|
871
|
-
return
|
|
894
|
+
return jr(this, arguments, void 0, function* (t = 0) {
|
|
872
895
|
const [, r] = yield this._semaphore.acquire(1, t);
|
|
873
896
|
return r;
|
|
874
897
|
});
|
|
@@ -889,92 +912,93 @@ class vr {
|
|
|
889
912
|
return this._semaphore.cancel();
|
|
890
913
|
}
|
|
891
914
|
}
|
|
892
|
-
class
|
|
915
|
+
class $e extends Nr {
|
|
893
916
|
constructor(t) {
|
|
894
917
|
super(), Object.assign(this, t);
|
|
895
918
|
}
|
|
896
919
|
}
|
|
897
|
-
const
|
|
920
|
+
const Ir = (e) => new $e(e), nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
898
921
|
__proto__: null,
|
|
899
|
-
mutex:
|
|
900
|
-
newMutex:
|
|
901
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
922
|
+
mutex: $e,
|
|
923
|
+
newMutex: Ir
|
|
924
|
+
}, Symbol.toStringTag, { value: "Module" })), Er = (e) => JSON.stringify(e, (t, r) => typeof r == "bigint" ? r.toString() : r), Or = async (e, t = 200, r = 20) => {
|
|
902
925
|
const n = Date.now();
|
|
903
926
|
for (; Date.now() - n < t; )
|
|
904
927
|
await e(), await new Promise((s) => setTimeout(s, r));
|
|
905
|
-
},
|
|
928
|
+
}, sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
906
929
|
__proto__: null,
|
|
907
|
-
expectAlways:
|
|
908
|
-
toString:
|
|
930
|
+
expectAlways: Or,
|
|
931
|
+
toString: Er
|
|
909
932
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
910
933
|
export {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
934
|
+
dn as DataType,
|
|
935
|
+
mn as Density,
|
|
936
|
+
hn as MultiSeries,
|
|
937
|
+
pn as Rate,
|
|
938
|
+
vs as RoutedWorker,
|
|
939
|
+
gn as Series,
|
|
940
|
+
bn as Size,
|
|
941
|
+
_n as TimeRange,
|
|
942
|
+
M as TimeSpan,
|
|
943
|
+
J as TimeStamp,
|
|
944
|
+
Ss as TypedWorker,
|
|
945
|
+
ys as URL,
|
|
946
|
+
yn as addSamples,
|
|
947
|
+
cn as array,
|
|
948
|
+
un as binary,
|
|
949
|
+
Gn as bounds,
|
|
950
|
+
os as box,
|
|
951
|
+
qr as breaker,
|
|
952
|
+
ws as buildQueryString,
|
|
953
|
+
In as caseconv,
|
|
954
|
+
On as change,
|
|
955
|
+
kn as clamp,
|
|
956
|
+
zr as color,
|
|
957
|
+
Zn as compare,
|
|
958
|
+
Wr as control,
|
|
959
|
+
wn as convertDataType,
|
|
960
|
+
Kr as convertRenderV,
|
|
961
|
+
xs as createMockWorkers,
|
|
962
|
+
Dr as csv,
|
|
963
|
+
Ln as debounce,
|
|
964
|
+
zn as deep,
|
|
965
|
+
as as dimensions,
|
|
966
|
+
ls as direction,
|
|
967
|
+
Br as errors,
|
|
968
|
+
Fr as flushMicrotasks,
|
|
969
|
+
Vr as flushTaskQueue,
|
|
970
|
+
Mn as id,
|
|
971
|
+
vn as instance,
|
|
972
|
+
Hr as invert,
|
|
973
|
+
Sn as isCrudeSeries,
|
|
974
|
+
Dn as isObject,
|
|
975
|
+
xn as isTelemValue,
|
|
976
|
+
Xr as jsonRPC,
|
|
977
|
+
Fn as kv,
|
|
978
|
+
Gr as label,
|
|
979
|
+
Hn as link,
|
|
980
|
+
fs as location,
|
|
981
|
+
Jr as map,
|
|
982
|
+
Lr as math,
|
|
983
|
+
Qr as migrate,
|
|
984
|
+
Yr as notation,
|
|
985
|
+
Tn as numericTimeRangeZ,
|
|
986
|
+
Kn as observe,
|
|
987
|
+
Qn as primitive,
|
|
988
|
+
ts as record,
|
|
989
|
+
ns as runtime,
|
|
990
|
+
Pn as scale,
|
|
991
|
+
en as shallowCopy,
|
|
992
|
+
Ur as sleep,
|
|
993
|
+
ms as spatial,
|
|
994
|
+
tn as status,
|
|
995
|
+
rn as strings,
|
|
996
|
+
nn as sync,
|
|
997
|
+
sn as testutil,
|
|
998
|
+
Un as throttle,
|
|
999
|
+
$n as typedArrayZ,
|
|
1000
|
+
bs as unique,
|
|
1001
|
+
jn as uuid,
|
|
1002
|
+
ps as xy,
|
|
1003
|
+
$s as zod
|
|
980
1004
|
};
|