@synnaxlabs/x 0.46.1 → 0.46.2
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 +6 -6
- package/dist/index.cjs +3 -3
- package/dist/index.js +164 -156
- package/dist/src/strings/deduplicateFileName.d.ts +2 -0
- package/dist/src/strings/deduplicateFileName.d.ts.map +1 -0
- package/dist/src/strings/deduplicateFileName.spec.d.ts +2 -0
- package/dist/src/strings/deduplicateFileName.spec.d.ts.map +1 -0
- package/dist/src/strings/external.d.ts +3 -0
- package/dist/src/strings/external.d.ts.map +1 -0
- package/dist/src/strings/index.d.ts +1 -1
- package/dist/src/strings/index.d.ts.map +1 -1
- package/dist/src/strings/strings.d.ts +0 -1
- package/dist/src/strings/strings.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/strings/deduplicateFileName.spec.ts +84 -0
- package/src/strings/deduplicateFileName.ts +32 -0
- package/src/strings/external.ts +11 -0
- package/src/strings/index.ts +1 -1
- package/src/strings/strings.spec.ts +0 -42
- package/src/strings/strings.ts +0 -14
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { n as xe } from "./external-Du5qzfYv.js";
|
|
2
|
-
import { e as
|
|
2
|
+
import { e as tn } from "./external-Du5qzfYv.js";
|
|
3
3
|
import { J as Te } from "./index-yz34Wc2p.js";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as nn } from "./index-yz34Wc2p.js";
|
|
5
5
|
import h, { z as a } from "zod";
|
|
6
6
|
import { h as $e, j as je, k as Ne, l as Ee, m as Ie, o as Oe, p as Ae, q as ke, r as Pe, s as Re, u as Ze, v as Ce, w as Le, x as Ue, y as qe, a as _, T as X, z as We } from "./series-Clbw-fZI.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { a as
|
|
9
|
-
import { c as
|
|
10
|
-
import { c as
|
|
7
|
+
import { c as on, D as an, M as cn, R as ln, S as un, d as fn, b as dn, g as hn, f as mn, A as pn, B as gn, i as bn, e as _n, n as yn, t as wn, C as Mn } from "./series-Clbw-fZI.js";
|
|
8
|
+
import { a as vn } from "./index-qmkoZBNO.js";
|
|
9
|
+
import { c as Tn } from "./change-DLl6DccR.js";
|
|
10
|
+
import { c as jn, s as Nn } from "./scale-BBWhTUqJ.js";
|
|
11
11
|
import { a as ze, b as De, c as Be, L as R, G as Z, E as Fe } from "./index-C452Pas0.js";
|
|
12
|
-
import { d as
|
|
13
|
-
import { debounce as
|
|
14
|
-
import { deep as
|
|
15
|
-
import { isObject as
|
|
16
|
-
import { e as
|
|
17
|
-
import { link as
|
|
12
|
+
import { d as In, p as On } from "./index-C452Pas0.js";
|
|
13
|
+
import { debounce as kn, throttle as Pn } from "./debounce.js";
|
|
14
|
+
import { deep as Zn } from "./deep.js";
|
|
15
|
+
import { isObject as Ln } from "./identity.js";
|
|
16
|
+
import { e as qn } from "./external-BYuXBYJh.js";
|
|
17
|
+
import { link as zn } from "./link.js";
|
|
18
18
|
import { i as G, j as Ve, a as He, k as Xe, d as Ge, l as Je, n as Qe, o as Ye, p as Ke, m as et, r as tt, s as rt } from "./bounds-DeUXrllt.js";
|
|
19
|
-
import { b as
|
|
20
|
-
import { observe as
|
|
21
|
-
import { r as
|
|
22
|
-
import { e as
|
|
23
|
-
import { b as
|
|
24
|
-
import { d as
|
|
25
|
-
import { d as
|
|
26
|
-
import { l as
|
|
27
|
-
import { s as
|
|
28
|
-
import { x as
|
|
29
|
-
import { u as
|
|
30
|
-
import { URL as
|
|
31
|
-
import { RoutedWorker as ps, TypedWorker as
|
|
32
|
-
import { e as
|
|
19
|
+
import { b as Bn } from "./bounds-DeUXrllt.js";
|
|
20
|
+
import { observe as Vn } from "./observe.js";
|
|
21
|
+
import { r as Xn } from "./record-tSFQKmdG.js";
|
|
22
|
+
import { e as Jn } from "./external-B80i4ymZ.js";
|
|
23
|
+
import { b as Yn } from "./box-BXWXSkKu.js";
|
|
24
|
+
import { d as es } from "./dimensions-DC0uLPwn.js";
|
|
25
|
+
import { d as rs } from "./direction-C_b4tfRN.js";
|
|
26
|
+
import { l as ss } from "./location-BIzpxczO.js";
|
|
27
|
+
import { s as is } from "./spatial-DnsaOypA.js";
|
|
28
|
+
import { x as cs } from "./xy-DnrCAZaw.js";
|
|
29
|
+
import { u as us } from "./index-D4NCYiQB.js";
|
|
30
|
+
import { URL as ds, buildQueryString as hs } from "./url.js";
|
|
31
|
+
import { RoutedWorker as ps, TypedWorker as gs, createMockWorkers as bs } from "./worker.js";
|
|
32
|
+
import { e as ys } from "./external-2YWy569j.js";
|
|
33
33
|
const L = 2, U = 3, J = 2, nt = (e, t) => {
|
|
34
34
|
if (Number.isNaN(e) || !Number.isFinite(e)) return e;
|
|
35
35
|
const r = G(t);
|
|
@@ -64,7 +64,7 @@ const L = 2, U = 3, J = 2, nt = (e, t) => {
|
|
|
64
64
|
}
|
|
65
65
|
const o = Math.floor(Math.log10(r)), f = 10 ** (st - o - 1);
|
|
66
66
|
return Math.round(e * f) / f;
|
|
67
|
-
},
|
|
67
|
+
}, kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
68
68
|
__proto__: null,
|
|
69
69
|
MAX_INT16: $e,
|
|
70
70
|
MAX_INT32: je,
|
|
@@ -96,7 +96,7 @@ const L = 2, U = 3, J = 2, nt = (e, t) => {
|
|
|
96
96
|
sub: rt
|
|
97
97
|
}, Symbol.toStringTag, { value: "Module" })), Q = async (e) => await new Promise(
|
|
98
98
|
(t) => setTimeout(t, _.fromMilliseconds(e).milliseconds)
|
|
99
|
-
),
|
|
99
|
+
), Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
100
100
|
__proto__: null,
|
|
101
101
|
sleep: Q
|
|
102
102
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -127,11 +127,11 @@ const ct = a.object({
|
|
|
127
127
|
baseInterval: _.z.optional(),
|
|
128
128
|
maxRetries: a.number().optional(),
|
|
129
129
|
scale: a.number().optional()
|
|
130
|
-
}),
|
|
130
|
+
}), Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
131
131
|
__proto__: null,
|
|
132
132
|
Breaker: at,
|
|
133
133
|
breakerConfigZ: ct
|
|
134
|
-
}, Symbol.toStringTag, { value: "Module" })), lt = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, I = a.string().regex(lt), g = a.number().min(0).max(255), Y = a.number().min(0).max(1), O = a.tuple([g, g, g, Y]), ut = a.tuple([g, g, g]), ft = a.object({ rgba255: O }), dt = a.number().min(0).max(360), ht = a.number().min(0).max(100),
|
|
134
|
+
}, Symbol.toStringTag, { value: "Module" })), lt = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, I = a.string().regex(lt), g = a.number().min(0).max(255), Y = a.number().min(0).max(1), O = a.tuple([g, g, g, Y]), ut = a.tuple([g, g, g]), ft = a.object({ rgba255: O }), dt = a.number().min(0).max(360), ht = a.number().min(0).max(100), mt = a.number().min(0).max(100), K = a.tuple([dt, ht, mt, Y]), A = a.union([I, ut, O, K, ft]), k = A.transform((e) => d(e)), pt = (e) => k.safeParse(e).success, gt = (e) => O.safeParse(e).success, bt = ((e) => {
|
|
135
135
|
if (e == null) return;
|
|
136
136
|
const t = k.safeParse(e);
|
|
137
137
|
if (t.success) return te(t.data);
|
|
@@ -291,8 +291,8 @@ const ct = a.object({
|
|
|
291
291
|
w(c) + o * (w(f) - w(c))
|
|
292
292
|
), u = Math.round(
|
|
293
293
|
M(c) + o * (M(f) - M(c))
|
|
294
|
-
),
|
|
295
|
-
return d([i, l, u,
|
|
294
|
+
), m = S(c) + o * (S(f) - S(c));
|
|
295
|
+
return d([i, l, u, m]);
|
|
296
296
|
}
|
|
297
297
|
return d(e[e.length - 1].color);
|
|
298
298
|
}, Zt = a.object({
|
|
@@ -303,7 +303,7 @@ const ct = a.object({
|
|
|
303
303
|
key: a.string(),
|
|
304
304
|
name: a.string(),
|
|
305
305
|
swatches: a.array(Zt)
|
|
306
|
-
}),
|
|
306
|
+
}), Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
307
307
|
__proto__: null,
|
|
308
308
|
BLACK: At,
|
|
309
309
|
WHITE: kt,
|
|
@@ -325,7 +325,7 @@ const ct = a.object({
|
|
|
325
325
|
hex: _t,
|
|
326
326
|
hsla: St,
|
|
327
327
|
isColor: gt,
|
|
328
|
-
isCrude:
|
|
328
|
+
isCrude: pt,
|
|
329
329
|
isDark: $t,
|
|
330
330
|
isLight: jt,
|
|
331
331
|
isZero: Mt,
|
|
@@ -365,7 +365,7 @@ const ct = a.object({
|
|
|
365
365
|
from: x(e),
|
|
366
366
|
to: x(e)
|
|
367
367
|
})
|
|
368
|
-
]),
|
|
368
|
+
]), Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
369
369
|
__proto__: null,
|
|
370
370
|
ABSOLUTE_AUTHORITY: oe,
|
|
371
371
|
AUTHORITY_BOUNDS: Lt,
|
|
@@ -406,7 +406,7 @@ const ct = a.object({
|
|
|
406
406
|
`X Error is missing its type property: ${JSON.stringify(t)}`
|
|
407
407
|
);
|
|
408
408
|
return !0;
|
|
409
|
-
},
|
|
409
|
+
}, p = "unknown", W = "nil";
|
|
410
410
|
class Bt {
|
|
411
411
|
providers = [];
|
|
412
412
|
register(t) {
|
|
@@ -419,17 +419,17 @@ class Bt {
|
|
|
419
419
|
const n = r.encode(t);
|
|
420
420
|
if (n != null) return n;
|
|
421
421
|
}
|
|
422
|
-
if (t instanceof Error) return { type:
|
|
423
|
-
if (typeof t == "string") return { type:
|
|
422
|
+
if (t instanceof Error) return { type: p, data: t.message };
|
|
423
|
+
if (typeof t == "string") return { type: p, data: t };
|
|
424
424
|
try {
|
|
425
|
-
return { type:
|
|
425
|
+
return { type: p, data: JSON.stringify(t) };
|
|
426
426
|
} catch {
|
|
427
|
-
return { type:
|
|
427
|
+
return { type: p, data: "unable to encode error information" };
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
decode(t) {
|
|
431
431
|
if (t == null || t.type === W) return null;
|
|
432
|
-
if (t.type ===
|
|
432
|
+
if (t.type === p) return new z(t.data);
|
|
433
433
|
for (const r of this.providers) {
|
|
434
434
|
const n = r.decode(t);
|
|
435
435
|
if (n != null) return n;
|
|
@@ -445,12 +445,12 @@ class Gt extends T("canceled") {
|
|
|
445
445
|
}
|
|
446
446
|
class Jt extends T("not_implemented") {
|
|
447
447
|
}
|
|
448
|
-
const
|
|
448
|
+
const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
449
449
|
__proto__: null,
|
|
450
450
|
Canceled: Gt,
|
|
451
451
|
NONE: W,
|
|
452
452
|
NotImplemented: Jt,
|
|
453
|
-
UNKNOWN:
|
|
453
|
+
UNKNOWN: p,
|
|
454
454
|
Unknown: z,
|
|
455
455
|
createTyped: T,
|
|
456
456
|
decode: Ht,
|
|
@@ -458,7 +458,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
458
458
|
isTyped: fe,
|
|
459
459
|
payloadZ: Xt,
|
|
460
460
|
register: Ft
|
|
461
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
461
|
+
}, Symbol.toStringTag, { value: "Module" })), Ur = () => Promise.resolve(), qr = () => new Promise((e) => setTimeout(e, 0)), Wr = (e) => e ? -1 : 1, de = h.object({
|
|
462
462
|
jsonrpc: h.literal("2.0"),
|
|
463
463
|
method: h.string(),
|
|
464
464
|
// params should be z.union([z.record(z.string(), z.json()),
|
|
@@ -479,7 +479,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
479
479
|
message: h.string().optional(),
|
|
480
480
|
data: h.json().optional()
|
|
481
481
|
})
|
|
482
|
-
}),
|
|
482
|
+
}), me = h.union([Qt, Yt]), pe = h.union([de, me]), Kt = (e) => {
|
|
483
483
|
const t = new TextDecoder();
|
|
484
484
|
let r = new Uint8Array(0), n = null;
|
|
485
485
|
return (s) => {
|
|
@@ -497,7 +497,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
497
497
|
if (n !== null && r.length >= n) {
|
|
498
498
|
const f = r.slice(0, n);
|
|
499
499
|
r = r.slice(n), n = null;
|
|
500
|
-
const i = t.decode(f), l = Te.decodeString(i,
|
|
500
|
+
const i = t.decode(f), l = Te.decodeString(i, pe);
|
|
501
501
|
e(l);
|
|
502
502
|
} else break;
|
|
503
503
|
}
|
|
@@ -507,25 +507,25 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
507
507
|
return `Content-Length: ${new TextEncoder().encode(t).length}\r
|
|
508
508
|
\r
|
|
509
509
|
` + t;
|
|
510
|
-
},
|
|
510
|
+
}, zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
511
511
|
__proto__: null,
|
|
512
512
|
encodeMessage: er,
|
|
513
|
-
messageZ:
|
|
513
|
+
messageZ: pe,
|
|
514
514
|
requestZ: de,
|
|
515
|
-
responseZ:
|
|
515
|
+
responseZ: me,
|
|
516
516
|
streamDecodeChunks: Kt
|
|
517
517
|
}, Symbol.toStringTag, { value: "Module" })), ge = h.uuid(), be = h.object({
|
|
518
518
|
key: ge,
|
|
519
519
|
name: h.string().min(1),
|
|
520
520
|
color: h.string()
|
|
521
|
-
}),
|
|
521
|
+
}), Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
522
522
|
__proto__: null,
|
|
523
523
|
keyZ: ge,
|
|
524
524
|
labelZ: be
|
|
525
525
|
}, Symbol.toStringTag, { value: "Module" })), tr = (e, t, r) => {
|
|
526
526
|
const n = e.get(t);
|
|
527
527
|
return n === void 0 ? (e.set(t, r), r) : n;
|
|
528
|
-
},
|
|
528
|
+
}, Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
529
|
__proto__: null,
|
|
530
530
|
getOrSetDefault: tr
|
|
531
531
|
}, Symbol.toStringTag, { value: "Module" })), D = a.string().regex(/^\d+\.\d+\.\d+$/), $ = ((e, t, r = {}) => {
|
|
@@ -582,7 +582,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
582
582
|
try {
|
|
583
583
|
if (c === 0 || _e(l.version, o))
|
|
584
584
|
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,
|
|
585
|
+
const u = l.version, m = t[u], P = m(l);
|
|
586
586
|
return f = !0, i(P);
|
|
587
587
|
} catch (u) {
|
|
588
588
|
return console.log(
|
|
@@ -606,7 +606,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
606
606
|
return console.log(`${e} failed to parse final result. Exiting with default`), console.error(u), s;
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
|
-
},
|
|
609
|
+
}, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
610
610
|
__proto__: null,
|
|
611
611
|
compareSemVer: $,
|
|
612
612
|
createMigration: sr,
|
|
@@ -624,17 +624,17 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
624
624
|
return t === 0 ? "0ᴇ0" : `0.${"0".repeat(t)}ᴇ0`;
|
|
625
625
|
let n;
|
|
626
626
|
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
|
-
},
|
|
627
|
+
}, Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
628
628
|
__proto__: null,
|
|
629
629
|
NOTATIONS: ye,
|
|
630
630
|
notationZ: ir,
|
|
631
631
|
stringifyNumber: ar
|
|
632
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
632
|
+
}, Symbol.toStringTag, { value: "Module" })), Hr = (e) => {
|
|
633
633
|
if (e === void 0 || typeof e == "string" || typeof e == "number")
|
|
634
634
|
return e;
|
|
635
635
|
if (e.toString === void 0) throw new Error("invalid renderer");
|
|
636
636
|
return e.toString();
|
|
637
|
-
},
|
|
637
|
+
}, Xr = (e) => Array.isArray(e) ? [...e] : typeof e == "object" && e !== null ? { ...e } : e, we = a.enum([
|
|
638
638
|
"success",
|
|
639
639
|
"info",
|
|
640
640
|
"warning",
|
|
@@ -672,7 +672,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
672
672
|
}, dr = (e, t = []) => {
|
|
673
673
|
if (e != null)
|
|
674
674
|
return Array.isArray(t) ? t.includes(e) ? void 0 : e : t === e ? void 0 : e;
|
|
675
|
-
},
|
|
675
|
+
}, Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
676
676
|
__proto__: null,
|
|
677
677
|
create: Me,
|
|
678
678
|
exceptionDetailsSchema: lr,
|
|
@@ -681,17 +681,25 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
681
681
|
removeVariants: dr,
|
|
682
682
|
statusZ: cr,
|
|
683
683
|
variantZ: we
|
|
684
|
-
}, Symbol.toStringTag, { value: "Module" })), hr = (e, t
|
|
684
|
+
}, Symbol.toStringTag, { value: "Module" })), hr = (e, t) => {
|
|
685
|
+
if (!t.has(e)) return e;
|
|
686
|
+
let r = e, n = 1, s = e;
|
|
687
|
+
for (; t.has(s); ) {
|
|
688
|
+
const o = s.match(mr);
|
|
689
|
+
o ? (r = s.slice(0, o.index).trim(), n = parseInt(o[1]) + 1) : (r = s, n = 1), s = `${r} (${n})`;
|
|
690
|
+
}
|
|
691
|
+
return s;
|
|
692
|
+
}, mr = /\((\d+)\)$/, pr = (e, t = "") => {
|
|
685
693
|
if (typeof e == "string") return e;
|
|
686
694
|
const r = e.length;
|
|
687
695
|
return r === 0 ? t : r === 1 ? e[0] : r === 2 ? `${e[0]} and ${e[1]}` : `${e.slice(0, -1).join(", ")}, and ${e[r - 1]}`;
|
|
688
|
-
},
|
|
696
|
+
}, gr = (e) => {
|
|
689
697
|
const t = e.split(" "), r = /* @__PURE__ */ new Set(), n = t.map((i) => i.charAt(0).toLowerCase()).join("");
|
|
690
698
|
r.add(n.replace(/-/g, "_")), r.add(n.replace(/(.)(.)/g, "$1_$2").replace(/-/g, "_"));
|
|
691
699
|
const s = /\d+/g;
|
|
692
700
|
e.match(s) && t.forEach((i, l) => {
|
|
693
701
|
if (s.test(i)) {
|
|
694
|
-
const u = t.map((
|
|
702
|
+
const u = t.map((m, P) => P !== l ? m.charAt(0).toLowerCase() : m).join("");
|
|
695
703
|
r.add(u.replace(/-/g, "_")), r.add(
|
|
696
704
|
u.replace(/(.)(.)/g, "$1_$2").replace(/-/g, "_")
|
|
697
705
|
);
|
|
@@ -703,14 +711,14 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
703
711
|
return r.add(c.join("").replace(/-/g, "_")), r.add(c.join("_").replace(/-/g, "_")), Array.from(r).filter(
|
|
704
712
|
(i) => i.length >= 2 && i.length <= 12 && !/^\d/.test(i)
|
|
705
713
|
);
|
|
706
|
-
},
|
|
714
|
+
}, br = (e, t) => e.startsWith(t) ? e.slice(t.length) : e, Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
707
715
|
__proto__: null,
|
|
708
|
-
createShortIdentifiers:
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
trimPrefix:
|
|
712
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
713
|
-
var
|
|
716
|
+
createShortIdentifiers: gr,
|
|
717
|
+
deduplicateFileName: hr,
|
|
718
|
+
naturalLanguageJoin: pr,
|
|
719
|
+
trimPrefix: br
|
|
720
|
+
}, Symbol.toStringTag, { value: "Module" })), _r = new Error("request for lock canceled");
|
|
721
|
+
var yr = function(e, t, r, n) {
|
|
714
722
|
function s(o) {
|
|
715
723
|
return o instanceof r ? o : new r(function(c) {
|
|
716
724
|
c(o);
|
|
@@ -720,15 +728,15 @@ var _r = function(e, t, r, n) {
|
|
|
720
728
|
function f(u) {
|
|
721
729
|
try {
|
|
722
730
|
l(n.next(u));
|
|
723
|
-
} catch (
|
|
724
|
-
c(
|
|
731
|
+
} catch (m) {
|
|
732
|
+
c(m);
|
|
725
733
|
}
|
|
726
734
|
}
|
|
727
735
|
function i(u) {
|
|
728
736
|
try {
|
|
729
737
|
l(n.throw(u));
|
|
730
|
-
} catch (
|
|
731
|
-
c(
|
|
738
|
+
} catch (m) {
|
|
739
|
+
c(m);
|
|
732
740
|
}
|
|
733
741
|
}
|
|
734
742
|
function l(u) {
|
|
@@ -737,8 +745,8 @@ var _r = function(e, t, r, n) {
|
|
|
737
745
|
l((n = n.apply(e, t || [])).next());
|
|
738
746
|
});
|
|
739
747
|
};
|
|
740
|
-
class
|
|
741
|
-
constructor(t, r =
|
|
748
|
+
class wr {
|
|
749
|
+
constructor(t, r = _r) {
|
|
742
750
|
this._value = t, this._cancelError = r, this._queue = [], this._weightedWaiters = [];
|
|
743
751
|
}
|
|
744
752
|
acquire(t = 1, r = 0) {
|
|
@@ -750,7 +758,7 @@ class yr {
|
|
|
750
758
|
});
|
|
751
759
|
}
|
|
752
760
|
runExclusive(t) {
|
|
753
|
-
return
|
|
761
|
+
return yr(this, arguments, void 0, function* (r, n = 1, s = 0) {
|
|
754
762
|
const [o, c] = yield this.acquire(n, s);
|
|
755
763
|
try {
|
|
756
764
|
return yield r(o);
|
|
@@ -763,7 +771,7 @@ class yr {
|
|
|
763
771
|
if (t <= 0)
|
|
764
772
|
throw new Error(`invalid weight ${t}: must be positive`);
|
|
765
773
|
return this._couldLockImmediately(t, r) ? Promise.resolve() : new Promise((n) => {
|
|
766
|
-
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []),
|
|
774
|
+
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []), Mr(this._weightedWaiters[t - 1], { resolve: n, priority: r });
|
|
767
775
|
});
|
|
768
776
|
}
|
|
769
777
|
isLocked() {
|
|
@@ -818,7 +826,7 @@ class yr {
|
|
|
818
826
|
return (this._queue.length === 0 || this._queue[0].priority < r) && t <= this._value;
|
|
819
827
|
}
|
|
820
828
|
}
|
|
821
|
-
function
|
|
829
|
+
function Mr(e, t) {
|
|
822
830
|
const r = Se(e, (n) => t.priority <= n.priority);
|
|
823
831
|
e.splice(r + 1, 0, t);
|
|
824
832
|
}
|
|
@@ -828,7 +836,7 @@ function Se(e, t) {
|
|
|
828
836
|
return r;
|
|
829
837
|
return -1;
|
|
830
838
|
}
|
|
831
|
-
var
|
|
839
|
+
var Sr = function(e, t, r, n) {
|
|
832
840
|
function s(o) {
|
|
833
841
|
return o instanceof r ? o : new r(function(c) {
|
|
834
842
|
c(o);
|
|
@@ -838,15 +846,15 @@ var Mr = function(e, t, r, n) {
|
|
|
838
846
|
function f(u) {
|
|
839
847
|
try {
|
|
840
848
|
l(n.next(u));
|
|
841
|
-
} catch (
|
|
842
|
-
c(
|
|
849
|
+
} catch (m) {
|
|
850
|
+
c(m);
|
|
843
851
|
}
|
|
844
852
|
}
|
|
845
853
|
function i(u) {
|
|
846
854
|
try {
|
|
847
855
|
l(n.throw(u));
|
|
848
|
-
} catch (
|
|
849
|
-
c(
|
|
856
|
+
} catch (m) {
|
|
857
|
+
c(m);
|
|
850
858
|
}
|
|
851
859
|
}
|
|
852
860
|
function l(u) {
|
|
@@ -855,12 +863,12 @@ var Mr = function(e, t, r, n) {
|
|
|
855
863
|
l((n = n.apply(e, t || [])).next());
|
|
856
864
|
});
|
|
857
865
|
};
|
|
858
|
-
class
|
|
866
|
+
class vr {
|
|
859
867
|
constructor(t) {
|
|
860
|
-
this._semaphore = new
|
|
868
|
+
this._semaphore = new wr(1, t);
|
|
861
869
|
}
|
|
862
870
|
acquire() {
|
|
863
|
-
return
|
|
871
|
+
return Sr(this, arguments, void 0, function* (t = 0) {
|
|
864
872
|
const [, r] = yield this._semaphore.acquire(1, t);
|
|
865
873
|
return r;
|
|
866
874
|
});
|
|
@@ -881,92 +889,92 @@ class Sr {
|
|
|
881
889
|
return this._semaphore.cancel();
|
|
882
890
|
}
|
|
883
891
|
}
|
|
884
|
-
class ve extends
|
|
892
|
+
class ve extends vr {
|
|
885
893
|
constructor(t) {
|
|
886
894
|
super(), Object.assign(this, t);
|
|
887
895
|
}
|
|
888
896
|
}
|
|
889
|
-
const
|
|
897
|
+
const xr = (e) => new ve(e), Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
890
898
|
__proto__: null,
|
|
891
899
|
mutex: ve,
|
|
892
|
-
newMutex:
|
|
893
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
900
|
+
newMutex: xr
|
|
901
|
+
}, Symbol.toStringTag, { value: "Module" })), Tr = (e) => JSON.stringify(e, (t, r) => typeof r == "bigint" ? r.toString() : r), $r = async (e, t = 200, r = 20) => {
|
|
894
902
|
const n = Date.now();
|
|
895
903
|
for (; Date.now() - n < t; )
|
|
896
904
|
await e(), await new Promise((s) => setTimeout(s, r));
|
|
897
|
-
},
|
|
905
|
+
}, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
898
906
|
__proto__: null,
|
|
899
|
-
expectAlways:
|
|
900
|
-
toString:
|
|
907
|
+
expectAlways: $r,
|
|
908
|
+
toString: Tr
|
|
901
909
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
902
910
|
export {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
911
|
+
on as DataType,
|
|
912
|
+
an as Density,
|
|
913
|
+
cn as MultiSeries,
|
|
914
|
+
ln as Rate,
|
|
907
915
|
ps as RoutedWorker,
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
916
|
+
un as Series,
|
|
917
|
+
fn as Size,
|
|
918
|
+
dn as TimeRange,
|
|
911
919
|
_ as TimeSpan,
|
|
912
920
|
X as TimeStamp,
|
|
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
|
-
|
|
921
|
+
gs as TypedWorker,
|
|
922
|
+
ds as URL,
|
|
923
|
+
hn as addSamples,
|
|
924
|
+
tn as array,
|
|
925
|
+
nn as binary,
|
|
926
|
+
Bn as bounds,
|
|
927
|
+
Yn as box,
|
|
928
|
+
Rr as breaker,
|
|
929
|
+
hs as buildQueryString,
|
|
930
|
+
vn as caseconv,
|
|
931
|
+
Tn as change,
|
|
932
|
+
jn as clamp,
|
|
933
|
+
Zr as color,
|
|
934
|
+
In as compare,
|
|
935
|
+
Cr as control,
|
|
936
|
+
mn as convertDataType,
|
|
937
|
+
Hr as convertRenderV,
|
|
938
|
+
bs as createMockWorkers,
|
|
939
|
+
kn as debounce,
|
|
940
|
+
Zn as deep,
|
|
941
|
+
es as dimensions,
|
|
942
|
+
rs as direction,
|
|
943
|
+
Lr as errors,
|
|
944
|
+
Ur as flushMicrotasks,
|
|
945
|
+
qr as flushTaskQueue,
|
|
938
946
|
pn as id,
|
|
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
|
-
|
|
947
|
+
gn as instance,
|
|
948
|
+
Wr as invert,
|
|
949
|
+
bn as isCrudeSeries,
|
|
950
|
+
Ln as isObject,
|
|
951
|
+
_n as isTelemValue,
|
|
952
|
+
zr as jsonRPC,
|
|
953
|
+
qn as kv,
|
|
954
|
+
Dr as label,
|
|
955
|
+
zn as link,
|
|
956
|
+
ss as location,
|
|
957
|
+
Br as map,
|
|
958
|
+
kr as math,
|
|
959
|
+
Fr as migrate,
|
|
960
|
+
Vr as notation,
|
|
961
|
+
yn as numericTimeRangeZ,
|
|
962
|
+
Vn as observe,
|
|
963
|
+
On as primitive,
|
|
964
|
+
Xn as record,
|
|
965
|
+
Jn as runtime,
|
|
966
|
+
Nn as scale,
|
|
967
|
+
Xr as shallowCopy,
|
|
968
|
+
Pr as sleep,
|
|
969
|
+
is as spatial,
|
|
970
|
+
Gr as status,
|
|
971
|
+
Jr as strings,
|
|
972
|
+
Qr as sync,
|
|
973
|
+
Yr as testutil,
|
|
974
|
+
Pn as throttle,
|
|
975
|
+
wn as typedArrayZ,
|
|
976
|
+
us as unique,
|
|
977
|
+
Mn as uuid,
|
|
978
|
+
cs as xy,
|
|
979
|
+
ys as zod
|
|
972
980
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deduplicateFileName.d.ts","sourceRoot":"","sources":["../../../src/strings/deduplicateFileName.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mBAAmB,GAC9B,MAAM,MAAM,EACZ,eAAe,GAAG,CAAC,MAAM,CAAC,KACzB,MAiBF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deduplicateFileName.spec.d.ts","sourceRoot":"","sources":["../../../src/strings/deduplicateFileName.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/strings/external.ts"],"names":[],"mappings":"AASA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as strings from './
|
|
1
|
+
export * as strings from './external';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/strings/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/strings/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../src/strings/strings.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,GAC9B,SAAS,MAAM,GAAG,MAAM,EAAE,EAC1B,aAAY,MAAW,KACtB,MAOF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,MAAM,KAAG,MAAM,EAuC3D,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,QAAQ,MAAM,KAAG,MAGxD,CAAC
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../src/strings/strings.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,GAC9B,SAAS,MAAM,GAAG,MAAM,EAAE,EAC1B,aAAY,MAAW,KACtB,MAOF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,MAAM,KAAG,MAAM,EAuC3D,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,QAAQ,MAAM,KAAG,MAGxD,CAAC"}
|