@synnaxlabs/pluto 0.25.0 → 0.26.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.
Files changed (110) hide show
  1. package/README.md +4 -3
  2. package/dist/{Animated-BpuQZROI.js → Animated-DNVDjbp5.js} +2 -2
  3. package/dist/{Animated-DqAjXT8r.cjs → Animated-zwHonFIj.cjs} +1 -1
  4. package/dist/{Keyboard-GDYsV4-x.cjs → Keyboard-CK96wQ5G.cjs} +1 -1
  5. package/dist/{Keyboard-BTyEk3pg.js → Keyboard-DIqjeZSO.js} +2 -2
  6. package/dist/LinePlot-Cm6T-Agy.cjs +66 -0
  7. package/dist/{LinePlot-CQAK-dkX.js → LinePlot-Cvi3y24D.js} +2138 -2089
  8. package/dist/{Link-CpMcH9c1.cjs → Link-CRvZcIvR.cjs} +1 -1
  9. package/dist/{Link-BrhOiMiE.js → Link-CfU1takx.js} +1 -1
  10. package/dist/{List-BS57aL1n.js → List-B6hlZNwe.js} +2 -2
  11. package/dist/{List-Dux7qweq.cjs → List-CBMm9BLf.cjs} +1 -1
  12. package/dist/{Pack-_i2cfPYc.cjs → Pack-BM_LmeO7.cjs} +1 -1
  13. package/dist/{Pack-CCCsIeot.js → Pack-E_3LSkGG.js} +1 -1
  14. package/dist/{Toggle-DlNzb7nt.cjs → Toggle-YiHP9pVf.cjs} +5 -5
  15. package/dist/{Toggle-CpLFBHo7.js → Toggle-_SGawcap.js} +4 -4
  16. package/dist/{Video-THwAEuOy.cjs → Video-A2NddcPS.cjs} +1 -1
  17. package/dist/{Video-Bi9kFIHV.js → Video-Ct4BfJzt.js} +1 -1
  18. package/dist/aggregator-D9ExX_tt.cjs +51 -0
  19. package/dist/{aggregator-CoD5WrqU.js → aggregator-DaNTqAB0.js} +2658 -2597
  20. package/dist/align.cjs +1 -1
  21. package/dist/align.js +1 -1
  22. package/dist/button.cjs +1 -1
  23. package/dist/button.js +1 -1
  24. package/dist/color.cjs +1 -1
  25. package/dist/color.js +1 -1
  26. package/dist/{css-Ce6IGevn.js → css-DEMSADUS.js} +140 -140
  27. package/dist/css-DY1Oedjj.cjs +1 -0
  28. package/dist/css.cjs +1 -1
  29. package/dist/css.js +2 -2
  30. package/dist/dropdown.cjs +1 -1
  31. package/dist/dropdown.js +1 -1
  32. package/dist/ether.cjs +1 -1
  33. package/dist/ether.js +42 -41
  34. package/dist/{external-DRvtVPhp.cjs → external-9st6X3mL.cjs} +1 -1
  35. package/dist/{external-DqnUE4mV.cjs → external-BAw0sDOf.cjs} +1 -1
  36. package/dist/{external-DU5Xqqld.cjs → external-BgW4t-2y.cjs} +1 -1
  37. package/dist/{external-C6v1z0ty.js → external-BxUqbUsk.js} +5 -5
  38. package/dist/{external-e0OPlFyY.js → external-C4w_40JS.js} +4 -4
  39. package/dist/{external-DQ4EhNBA.js → external-C86d--c3.js} +11 -11
  40. package/dist/{external-B7RXnD0a.cjs → external-CE4wgFJ7.cjs} +1 -1
  41. package/dist/{external-CXrgzQf5.js → external-CJOE_TDI.js} +2 -2
  42. package/dist/{external-BxBMVx6g.js → external-CS2UIUPR.js} +5 -5
  43. package/dist/{external-CUJXIrxM.cjs → external-ChI4-3Am.cjs} +1 -1
  44. package/dist/{external-NeMo53nv.js → external-ChYLNmOM.js} +4 -4
  45. package/dist/{external-CMk1k986.cjs → external-Cja9j84T.cjs} +1 -1
  46. package/dist/{external-Cv5GChi6.js → external-CsAw5Bqm.js} +7 -7
  47. package/dist/{external-DyTzmzSc.js → external-D23hMpey.js} +4 -4
  48. package/dist/{external-B815mDB0.cjs → external-DG3L9UDo.cjs} +1 -1
  49. package/dist/{external-DMYExlt2.cjs → external-DOZ21f-5.cjs} +1 -1
  50. package/dist/{external-CLwP0eXe.cjs → external-DSc2y4PB.cjs} +1 -1
  51. package/dist/{external-Dm3eiIEN.cjs → external-DZohHxSv.cjs} +1 -1
  52. package/dist/{external-C8CIAjMj.js → external-D_dAdIZX.js} +2 -2
  53. package/dist/{external-DShO9063.js → external-DfwQACwH.js} +3 -3
  54. package/dist/{external-NHkWeW29.js → external-DlkO8mh4.js} +1 -1
  55. package/dist/{external-D_WKlwCh.js → external-TgztmPvP.js} +7 -7
  56. package/dist/external-r0ozQhkY.cjs +1 -0
  57. package/dist/{external-DjSiwSCE.cjs → external-rzy59VM1.cjs} +1 -1
  58. package/dist/header.cjs +1 -1
  59. package/dist/header.js +1 -1
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.js +4122 -4040
  62. package/dist/input.cjs +1 -1
  63. package/dist/input.js +1 -1
  64. package/dist/list.cjs +1 -1
  65. package/dist/list.js +1 -1
  66. package/dist/menu.cjs +1 -1
  67. package/dist/menu.js +1 -1
  68. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  69. package/dist/src/pluto/aether/index.d.ts +1 -1
  70. package/dist/src/pluto/aether/index.d.ts.map +1 -1
  71. package/dist/src/pluto/aether/{ pluto.d.ts → pluto.d.ts} +1 -1
  72. package/dist/src/pluto/aether/pluto.d.ts.map +1 -0
  73. package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
  74. package/dist/src/vis/schematic/Forms.d.ts +4 -0
  75. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  76. package/dist/src/vis/schematic/Symbols.d.ts +14 -0
  77. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  78. package/dist/src/vis/schematic/primitives/Primitives.d.ts +8 -0
  79. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  80. package/dist/src/vis/schematic/registry.d.ts +1 -1
  81. package/dist/src/vis/schematic/registry.d.ts.map +1 -1
  82. package/dist/src/vis/setpoint/aether/index.d.ts +2 -0
  83. package/dist/src/vis/setpoint/aether/index.d.ts.map +1 -0
  84. package/dist/src/vis/setpoint/aether/setpoint.d.ts +200 -0
  85. package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -0
  86. package/dist/src/vis/setpoint/index.d.ts +2 -0
  87. package/dist/src/vis/setpoint/index.d.ts.map +1 -0
  88. package/dist/src/vis/setpoint/use.d.ts +11 -0
  89. package/dist/src/vis/setpoint/use.d.ts.map +1 -0
  90. package/dist/style.css +1 -1
  91. package/dist/tabs.cjs +1 -1
  92. package/dist/tabs.js +1 -1
  93. package/dist/text.cjs +1 -1
  94. package/dist/text.js +2 -2
  95. package/dist/theming.cjs +1 -1
  96. package/dist/theming.js +2 -2
  97. package/dist/tree.cjs +1 -1
  98. package/dist/tree.js +1 -1
  99. package/dist/triggers.cjs +1 -1
  100. package/dist/triggers.js +1 -1
  101. package/dist/{units-DlP7zkaE.js → units-BREWRknL.js} +1 -1
  102. package/dist/{units-CoE6Mywf.cjs → units-DNx3byGw.cjs} +1 -1
  103. package/dist/video.cjs +1 -1
  104. package/dist/video.js +1 -1
  105. package/package.json +5 -5
  106. package/dist/LinePlot-DnLLplw_.cjs +0 -66
  107. package/dist/aggregator-D47lwtdn.cjs +0 -51
  108. package/dist/css-CC1MhhH7.cjs +0 -1
  109. package/dist/external-Do75w1Zt.cjs +0 -1
  110. package/dist/src/pluto/aether/ pluto.d.ts.map +0 -1
@@ -49,14 +49,14 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
49
49
  }, Bt = (t, e) => {
50
50
  const r = c(t), n = c(e);
51
51
  return r.lower === n.lower ? !0 : n.upper === r.lower || n.lower === r.upper ? !1 : S(r, n.upper) || S(r, n.lower) || S(n, r.upper) || S(n, r.lower);
52
- }, m = (t) => {
52
+ }, w = (t) => {
53
53
  const e = c(t);
54
54
  return e.upper - e.lower;
55
55
  }, At = (t) => {
56
56
  const e = c(t);
57
57
  return typeof e.lower == "bigint" ? e.lower === 0n && e.upper === 0n : e.lower === 0 && e.upper === 0;
58
58
  }, Nt = (t) => {
59
- const e = m(t);
59
+ const e = w(t);
60
60
  return typeof e == "number" ? e === 0 : e === 0n;
61
61
  }, zt = (t) => {
62
62
  const e = c(t);
@@ -69,7 +69,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
69
69
  upper: Math.min(...t.map((e) => c(e).upper))
70
70
  }), _t = (t) => {
71
71
  const e = c(t), r = typeof e.lower == "bigint";
72
- return Array.from({ length: Number(m(t)) }, (n, o) => r ? e.lower + BigInt(o) : e.lower + o);
72
+ return Array.from({ length: Number(w(t)) }, (n, o) => r ? e.lower + BigInt(o) : e.lower + o);
73
73
  }, se = (t, e) => {
74
74
  const r = t.map((s) => c(s)), n = r.findIndex(
75
75
  (s, u) => S(s, e) || e < r[u].lower
@@ -83,7 +83,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
83
83
  insertInto: 0,
84
84
  deleteInBetween: 0
85
85
  }, Pe = (t, e) => {
86
- const r = t.map((y) => c(y)), n = c(e);
86
+ const r = t.map((h) => c(h)), n = c(e);
87
87
  if (r.length === 0) return re;
88
88
  const o = se(r, n.lower), s = se(r, n.upper);
89
89
  if (o.index === t.length) return { ...re, insertInto: t.length };
@@ -95,9 +95,9 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
95
95
  insertInto: o.index,
96
96
  deleteInBetween: 0
97
97
  };
98
- let u = s.index - o.index, a = o.index, p = ve(Number(m(r[o.index])), o.position);
99
- return o.position !== 0 ? (u -= 1, a += 1) : p = 0, {
100
- removeBefore: p,
98
+ let u = s.index - o.index, a = o.index, y = ve(Number(w(r[o.index])), o.position);
99
+ return o.position !== 0 ? (u -= 1, a += 1) : y = 0, {
100
+ removeBefore: y,
101
101
  removeAfter: s.position,
102
102
  insertInto: a,
103
103
  deleteInBetween: u
@@ -109,7 +109,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
109
109
  return o.lower = Le(o.lower, r.removeBefore), o.upper = ve(o.upper, r.removeAfter), n.splice(r.insertInto, r.deleteInBetween, o), n;
110
110
  }, Pt = (t, e) => {
111
111
  const r = c(t), n = c(e);
112
- return r.upper <= n.lower || r.lower >= n.upper ? 0 : r.lower >= n.lower && r.upper <= n.upper ? 1 : r.lower <= n.lower && r.upper >= n.upper ? m(n) / m(r) : r.lower <= n.lower ? (r.upper - n.lower) / m(r) : (n.upper - r.lower) / m(r);
112
+ return r.upper <= n.lower || r.lower >= n.upper ? 0 : r.lower >= n.lower && r.upper <= n.upper ? 1 : r.lower <= n.lower && r.upper >= n.upper ? w(n) / w(r) : r.lower <= n.lower ? (r.upper - n.lower) / w(r) : (n.upper - r.lower) / w(r);
113
113
  }, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
114
114
  __proto__: null,
115
115
  CLIP: St,
@@ -132,11 +132,11 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
132
132
  max: Ct,
133
133
  min: Rt,
134
134
  overlapsWith: Bt,
135
- span: m,
135
+ span: w,
136
136
  spanIsZero: Nt
137
- }, Symbol.toStringTag, { value: "Module" })), He = wt, j = (t) => be.includes(t) ? t : K.includes(t) ? "y" : "x", Ht = (t) => j(t) === "x" ? "y" : "x", Zt = (t) => j(t) === "x" ? "width" : "height", Yt = (t) => j(t) === "x" ? "left" : "top", Ft = (t) => He.safeParse(t).success, Wt = (t) => j(t) === "x" ? "signedWidth" : "signedHeight", Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
137
+ }, Symbol.toStringTag, { value: "Module" })), He = wt, T = (t) => be.includes(t) ? t : K.includes(t) ? "y" : "x", Ht = (t) => T(t) === "x" ? "y" : "x", Zt = (t) => T(t) === "x" ? "width" : "height", Yt = (t) => T(t) === "x" ? "left" : "top", Ft = (t) => He.safeParse(t).success, Wt = (t) => T(t) === "x" ? "signedWidth" : "signedHeight", Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
138
138
  __proto__: null,
139
- construct: j,
139
+ construct: T,
140
140
  crude: He,
141
141
  dimension: Zt,
142
142
  direction: xe,
@@ -150,17 +150,17 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
150
150
  }, Ze = (t) => {
151
151
  const e = (r, n = V) => {
152
152
  if (typeof r == "string") return t(r);
153
- if (Array.isArray(r)) return r.map((s) => e(s, n));
154
- if (!W(r)) return null;
153
+ if (Array.isArray(r)) return r.map((u) => e(u, n));
154
+ if (!W(r)) return r;
155
155
  n = Fe(n);
156
- const o = {};
157
- return Object.keys(r).forEach((s) => {
158
- let u = r[s];
159
- const a = t(s);
160
- n.recursive && (W(u) ? ue(u, n.keepTypesOnRecursion) || (u = e(u, n)) : n.recursiveInArray && ie(u) && (u = [...u].map((p) => {
161
- let y = p;
162
- return W(p) ? ue(y, n.keepTypesOnRecursion) || (y = e(p, n)) : ie(p) && (y = e({ key: p }, n).key), y;
163
- }))), o[a] = u;
156
+ const o = {}, s = r;
157
+ return Object.keys(s).forEach((u) => {
158
+ let a = s[u];
159
+ const y = t(u);
160
+ n.recursive && (W(a) ? ue(a, n.keepTypesOnRecursion) || (a = e(a, n)) : n.recursiveInArray && ie(a) && (a = [...a].map((h) => {
161
+ let d = h;
162
+ return W(h) ? ue(d, n.keepTypesOnRecursion) || (d = e(h, n)) : ie(h) && (d = e({ key: h }, n).key), d;
163
+ }))), o[y] = a;
164
164
  }), o;
165
165
  };
166
166
  return e;
@@ -190,8 +190,8 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
190
190
  bottom: "right",
191
191
  left: "bottom",
192
192
  center: "center"
193
- }, Qt = $t, v = (t) => t instanceof String ? t : be.includes(t) ? t === "x" ? "left" : "top" : t, er = (t) => Jt[v(t)], tr = (t) => Kt[v(t)], _ = (t) => {
194
- const e = v(t);
193
+ }, Qt = $t, M = (t) => t instanceof String ? t : be.includes(t) ? t === "x" ? "left" : "top" : t, er = (t) => Jt[M(t)], tr = (t) => Kt[M(t)], _ = (t) => {
194
+ const e = M(t);
195
195
  return e === "top" || e === "bottom" ? "y" : "x";
196
196
  }, rr = i.object({
197
197
  x: fe.or(Ae),
@@ -212,9 +212,9 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
212
212
  return "x" in e && (t.x === e.x || (r = !1)), "y" in e && (t.y === e.y || (r = !1)), r;
213
213
  }
214
214
  return t.x === e || t.y === e;
215
- }, qe = (t) => [t.x, t.y], X = (t) => _(v(t)) === "x", sr = (t) => _(v(t)) === "y", ir = (t) => `${t.x}${Ye(t.y)}`, ur = (t, e) => {
215
+ }, qe = (t) => [t.x, t.y], X = (t) => _(M(t)) === "x", sr = (t) => _(M(t)) === "y", ir = (t) => `${t.x}${Ye(t.y)}`, ur = (t, e) => {
216
216
  let r, n;
217
- if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = v(t), n = v(e ?? t)), _(r) === _(n) && r !== "center" && n !== "center")
217
+ if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = M(t), n = M(e ?? t)), _(r) === _(n) && r !== "center" && n !== "center")
218
218
  throw new Error(
219
219
  `[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`
220
220
  );
@@ -235,7 +235,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
235
235
  XY_LOCATIONS: nr,
236
236
  X_LOCATIONS: J,
237
237
  Y_LOCATIONS: K,
238
- construct: v,
238
+ construct: M,
239
239
  constructXY: ur,
240
240
  corner: We,
241
241
  crude: Qt,
@@ -260,59 +260,59 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
260
260
  ge,
261
261
  ht,
262
262
  Ce
263
- ]), h = (t, e) => {
263
+ ]), p = (t, e) => {
264
264
  if (typeof t == "string") {
265
265
  if (e === void 0) throw new Error("The y coordinate must be given.");
266
266
  return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
267
267
  }
268
268
  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 };
269
- }, f = Object.freeze({ x: 0, y: 0 }), Ge = Object.freeze({ x: 1, y: 1 }), ar = Object.freeze({ x: 1 / 0, y: 1 / 0 }), cr = Object.freeze({ x: NaN, y: NaN }), q = (t, e, r = 0) => {
270
- const n = h(t), o = h(e);
269
+ }, m = Object.freeze({ x: 0, y: 0 }), Ge = Object.freeze({ x: 1, y: 1 }), ar = Object.freeze({ x: 1 / 0, y: 1 / 0 }), cr = Object.freeze({ x: NaN, y: NaN }), q = (t, e, r = 0) => {
270
+ const n = p(t), o = p(e);
271
271
  return r === 0 ? n.x === o.x && n.y === o.y : Math.abs(n.x - o.x) <= r && Math.abs(n.y - o.y) <= r;
272
- }, lr = (t) => q(t, f), pr = (t, e, r) => {
273
- const n = h(t), o = h(e, r);
272
+ }, lr = (t) => q(t, m), pr = (t, e, r) => {
273
+ const n = p(t), o = p(e, r);
274
274
  return { x: n.x * o.x, y: n.y * o.y };
275
275
  }, Je = (t, e) => {
276
- const r = h(t);
276
+ const r = p(t);
277
277
  return { x: r.x + e, y: r.y };
278
278
  }, Ke = (t, e) => {
279
- const r = h(t);
279
+ const r = p(t);
280
280
  return { x: r.x, y: r.y + e };
281
- }, U = (t, e, r, ...n) => typeof e == "string" && typeof r == "number" ? e === "x" ? Je(t, r) : Ke(t, r) : [t, e, r ?? f, ...n].reduce((o, s) => {
282
- const u = h(s);
281
+ }, U = (t, e, r, ...n) => typeof e == "string" && typeof r == "number" ? e === "x" ? Je(t, r) : Ke(t, r) : [t, e, r ?? m, ...n].reduce((o, s) => {
282
+ const u = p(s);
283
283
  return { x: o.x + u.x, y: o.y + u.y };
284
- }, f), hr = (t, e, r) => {
285
- const n = h(t);
284
+ }, m), hr = (t, e, r) => {
285
+ const n = p(t);
286
286
  return e === "x" ? { x: r, y: n.y } : { x: n.x, y: r };
287
287
  }, yr = (t, e) => {
288
- const r = h(t), n = h(e);
288
+ const r = p(t), n = p(e);
289
289
  return Math.sqrt((r.x - n.x) ** 2 + (r.y - n.y) ** 2);
290
290
  }, dr = (t, e) => {
291
- const r = h(t), n = h(e);
291
+ const r = p(t), n = p(e);
292
292
  return { x: n.x - r.x, y: n.y - r.y };
293
293
  }, gr = (t) => {
294
- const e = h(t);
294
+ const e = p(t);
295
295
  return Number.isNaN(e.x) || Number.isNaN(e.y);
296
296
  }, br = (t) => {
297
- const e = h(t);
297
+ const e = p(t);
298
298
  return Number.isFinite(e.x) && Number.isFinite(e.y);
299
299
  }, xr = (t) => {
300
- const e = h(t);
300
+ const e = p(t);
301
301
  return [e.x, e.y];
302
302
  }, fr = (t) => {
303
- const e = h(t);
303
+ const e = p(t);
304
304
  return { left: e.x, top: e.y };
305
305
  }, ce = (t, e = 0) => {
306
- const r = h(t);
306
+ const r = p(t);
307
307
  return { x: Number(r.x.toFixed(e)), y: Number(r.y.toFixed(e)) };
308
308
  }, Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
309
309
  __proto__: null,
310
310
  INFINITY: ar,
311
311
  NAN: cr,
312
312
  ONE: Ge,
313
- ZERO: f,
313
+ ZERO: m,
314
314
  clientXY: Ce,
315
- construct: h,
315
+ construct: p,
316
316
  couple: xr,
317
317
  crudeZ: ae,
318
318
  css: fr,
@@ -346,14 +346,14 @@ const mr = i.object({
346
346
  one: R,
347
347
  two: R,
348
348
  root: We
349
- }), Qe = { one: f, two: f, root: L }, wr = { one: f, two: Ge, root: Q }, et = (t, e) => ({
349
+ }), Qe = { one: m, two: m, root: L }, wr = { one: m, two: Ge, root: Q }, et = (t, e) => ({
350
350
  one: t.one,
351
351
  two: t.two,
352
352
  root: e ?? t.root
353
353
  }), l = (t, e, r = 0, n = 0, o) => {
354
354
  const s = {
355
- one: { ...f },
356
- two: { ...f },
355
+ one: { ...m },
356
+ two: { ...m },
357
357
  root: o ?? L
358
358
  };
359
359
  if (typeof t == "number") {
@@ -372,12 +372,12 @@ const mr = i.object({
372
372
  const n = l(t);
373
373
  if (typeof e == "string") {
374
374
  if (r == null) throw new Error("Invalid arguments for resize");
375
- const o = j(e);
375
+ const o = T(e);
376
376
  return l(
377
377
  n.one,
378
378
  void 0,
379
- o === "x" ? r : M(n),
380
- o === "y" ? r : O(n),
379
+ o === "x" ? r : O(n),
380
+ o === "y" ? r : j(n),
381
381
  n.root
382
382
  );
383
383
  }
@@ -385,20 +385,20 @@ const mr = i.object({
385
385
  }, vr = (t, e, r = !0) => {
386
386
  const n = l(t);
387
387
  let o = (s, u) => s < u;
388
- return r && (o = (s, u) => s <= u), "one" in e ? o(w(n), w(e)) && o(E(e), E(n)) && o($(n), $(e)) && o(I(e), I(n)) : o(w(n), e.x) && o(e.x, E(n)) && o($(n), e.y) && o(e.y, I(n));
388
+ return r && (o = (s, u) => s <= u), "one" in e ? o($(n), $(e)) && o(E(e), E(n)) && o(v(n), v(e)) && o(I(e), I(n)) : o($(n), e.x) && o(e.x, E(n)) && o(v(n), e.y) && o(e.y, I(n));
389
389
  }, Mr = (t, e) => q(t.one, e.one) && q(t.two, e.two) && Te(t.root, e.root), tt = (t) => ({
390
- width: M(t),
391
- height: O(t)
390
+ width: O(t),
391
+ height: j(t)
392
392
  }), Or = (t) => ({
393
393
  signedWidth: ee(t),
394
394
  signedHeight: te(t)
395
395
  }), jr = (t) => ({
396
- top: $(t),
397
- left: w(t),
398
- width: M(t),
399
- height: O(t)
396
+ top: v(t),
397
+ left: $(t),
398
+ width: O(t),
399
+ height: j(t)
400
400
  }), Se = (t, e, r = !1) => {
401
- const n = j(e) === "y" ? te(t) : ee(t);
401
+ const n = T(e) === "y" ? te(t) : ee(t);
402
402
  return r ? n : Math.abs(n);
403
403
  }, P = (t, e) => {
404
404
  const r = l(t);
@@ -409,21 +409,21 @@ const mr = i.object({
409
409
  }, B = (t, e) => {
410
410
  const r = l(t), n = qe(r.root).includes(e) ? Math.min : Math.max;
411
411
  return J.includes(e) ? n(r.one.x, r.two.x) : n(r.one.y, r.two.y);
412
- }, Tr = (t) => t.one.x === t.two.x && t.one.y === t.two.y, M = (t) => Se(t, "x"), O = (t) => Se(t, "y"), ee = (t) => {
412
+ }, Tr = (t) => t.one.x === t.two.x && t.one.y === t.two.y, O = (t) => Se(t, "x"), j = (t) => Se(t, "y"), ee = (t) => {
413
413
  const e = l(t);
414
414
  return e.two.x - e.one.x;
415
415
  }, te = (t) => {
416
416
  const e = l(t);
417
417
  return e.two.y - e.one.y;
418
- }, rt = (t) => P(t, L), Sr = (t) => P(t, Me), Er = (t) => P(t, Q), Ir = (t) => P(t, Oe), E = (t) => B(t, "right"), I = (t) => B(t, "bottom"), w = (t) => B(t, "left"), $ = (t) => B(t, "top"), le = (t) => U(rt(t), {
418
+ }, rt = (t) => P(t, L), Sr = (t) => P(t, Me), Er = (t) => P(t, Q), Ir = (t) => P(t, Oe), E = (t) => B(t, "right"), I = (t) => B(t, "bottom"), $ = (t) => B(t, "left"), v = (t) => B(t, "top"), le = (t) => U(rt(t), {
419
419
  x: ee(t) / 2,
420
420
  y: te(t) / 2
421
421
  }), Ee = (t) => {
422
422
  const e = l(t);
423
- return e.root.x === "left" ? w(e) : E(e);
423
+ return e.root.x === "left" ? $(e) : E(e);
424
424
  }, Ie = (t) => {
425
425
  const e = l(t);
426
- return e.root.y === "top" ? $(e) : I(e);
426
+ return e.root.y === "top" ? v(e) : I(e);
427
427
  }, Br = (t) => ({ x: Ee(t), y: Ie(t) }), k = (t) => {
428
428
  const e = l(t);
429
429
  return { lower: e.one.x, upper: e.two.x };
@@ -436,13 +436,13 @@ const mr = i.object({
436
436
  const o = e === "top" || e === "left" ? Math.min : Math.max, s = { ...r.one }, u = { ...r.two };
437
437
  return s[n] = o(r.one[n], r.two[n]), u[n] = o(r.one[n], r.two[n]), [s, u];
438
438
  }, zr = (t, e) => {
439
- const r = l(t), n = l(e), o = Ee(n) + (M(n) - M(r)) / 2, s = Ie(n) + (O(n) - O(r)) / 2;
439
+ const r = l(t), n = l(e), o = Ee(n) + (O(n) - O(r)) / 2, s = Ie(n) + (j(n) - j(r)) / 2;
440
440
  return l({ x: o, y: s }, tt(r));
441
- }, nt = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, Cr = (t) => M(t) / O(t), Rr = (t, e, r) => {
441
+ }, nt = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, Cr = (t) => O(t) / j(t), Rr = (t, e, r) => {
442
442
  if (typeof e == "string") {
443
443
  if (r == null) throw new Error("Undefined amount passed into box.translate");
444
- const o = j(e);
445
- e = h(o, r);
444
+ const o = T(e);
445
+ e = p(o, r);
446
446
  }
447
447
  const n = l(t);
448
448
  return l(
@@ -453,9 +453,9 @@ const mr = i.object({
453
453
  n.root
454
454
  );
455
455
  }, _r = (t, e) => {
456
- const r = Math.max(w(t), w(e)), n = Math.max($(t), $(e)), o = Math.min(E(t), E(e)), s = Math.min(I(t), I(e));
456
+ const r = Math.max($(t), $(e)), n = Math.max(v(t), v(e)), o = Math.min(E(t), E(e)), s = Math.min(I(t), I(e));
457
457
  return r > o || n > s ? Qe : l({ x: r, y: n }, { x: o, y: s }, void 0, void 0, t.root);
458
- }, Lr = (t) => M(t) * O(t), Pr = (t, e) => {
458
+ }, Lr = (t) => O(t) * j(t), Pr = (t, e) => {
459
459
  const r = l(t);
460
460
  return l(
461
461
  ce(r.one, e),
@@ -488,10 +488,10 @@ const mr = i.object({
488
488
  dims: tt,
489
489
  edgePoints: Nr,
490
490
  equals: Mr,
491
- height: O,
491
+ height: j,
492
492
  intersection: _r,
493
493
  isBox: nt,
494
- left: w,
494
+ left: $,
495
495
  loc: B,
496
496
  positionInCenter: zr,
497
497
  reRoot: Ar,
@@ -501,44 +501,44 @@ const mr = i.object({
501
501
  signedDims: Or,
502
502
  signedHeight: te,
503
503
  signedWidth: ee,
504
- top: $,
504
+ top: v,
505
505
  topLeft: rt,
506
506
  topRight: Sr,
507
507
  translate: Rr,
508
508
  truncate: Pr,
509
- width: M,
509
+ width: O,
510
510
  x: Ee,
511
511
  xBounds: k,
512
512
  xyLoc: P,
513
513
  y: Ie,
514
514
  yBounds: D
515
- }, Symbol.toStringTag, { value: "Module" })), ot = i.object({ signedWidth: i.number(), signedHeight: i.number() }), Zr = i.union([ge, ot, R, G]), Yr = { width: 0, height: 0 }, Fr = { width: 1, height: 1 }, d = (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 }, Wr = (t, e) => {
515
+ }, Symbol.toStringTag, { value: "Module" })), ot = i.object({ signedWidth: i.number(), signedHeight: i.number() }), Zr = i.union([ge, ot, R, G]), Yr = { width: 0, height: 0 }, Fr = { width: 1, height: 1 }, g = (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 }, Wr = (t, e) => {
516
516
  if (e == null) return !1;
517
- const r = d(t), n = d(e);
517
+ const r = g(t), n = g(e);
518
518
  return r.width === n.width && r.height === n.height;
519
519
  }, Xr = (t) => {
520
- const e = d(t);
520
+ const e = g(t);
521
521
  return { width: e.height, height: e.width };
522
522
  }, kr = (t) => {
523
- const e = d(t);
523
+ const e = g(t);
524
524
  return `0 0 ${e.width} ${e.height}`;
525
525
  }, Dr = (t) => {
526
- const e = d(t);
526
+ const e = g(t);
527
527
  return [e.width, e.height];
528
528
  }, Vr = (t) => ({
529
- width: Math.max(...t.map((e) => d(e).width)),
530
- height: Math.max(...t.map((e) => d(e).height))
529
+ width: Math.max(...t.map((e) => g(e).width)),
530
+ height: Math.max(...t.map((e) => g(e).height))
531
531
  }), qr = (t) => ({
532
- width: Math.min(...t.map((e) => d(e).width)),
533
- height: Math.min(...t.map((e) => d(e).height))
532
+ width: Math.min(...t.map((e) => g(e).width)),
533
+ height: Math.min(...t.map((e) => g(e).height))
534
534
  }), Ur = (t, e) => {
535
- const r = d(t);
535
+ const r = g(t);
536
536
  return { width: r.width * e, height: r.height * e };
537
537
  }, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
538
538
  __proto__: null,
539
539
  DECIMAL: Fr,
540
540
  ZERO: Yr,
541
- construct: d,
541
+ construct: g,
542
542
  couple: Dr,
543
543
  crude: Zr,
544
544
  dimensions: ge,
@@ -550,7 +550,7 @@ const mr = i.object({
550
550
  svgViewBox: kr,
551
551
  swap: Xr
552
552
  }, Symbol.toStringTag, { value: "Module" }));
553
- var Gr = Object.defineProperty, Jr = (t, e, r) => e in t ? Gr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, x = (t, e, r) => Jr(t, typeof e != "symbol" ? e + "" : e, r);
553
+ var Gr = Object.defineProperty, Jr = (t, e, r) => e in t ? Gr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, f = (t, e, r) => Jr(t, typeof e != "symbol" ? e + "" : e, r);
554
554
  const Kr = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r : t, Qr = i.object({ offset: ae, scale: ae }), en = (t) => (e, r, n, o) => r === "dimension" ? [e, n] : [
555
555
  e,
556
556
  o ? n - t : n + t
@@ -559,10 +559,10 @@ const Kr = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r :
559
559
  o ? n / t : n * t
560
560
  ], rn = (t) => (e, r, n) => {
561
561
  if (e === null) return [t, n];
562
- const { lower: o, upper: s } = e, { lower: u, upper: a } = t, p = s - o, y = a - u;
563
- if (r === "dimension") return [t, n * (y / p)];
564
- const T = (n - o) * (y / p) + u;
565
- return [t, T];
562
+ const { lower: o, upper: s } = e, { lower: u, upper: a } = t, y = s - o, h = a - u;
563
+ if (r === "dimension") return [t, n * (h / y)];
564
+ const d = (n - o) * (h / y) + u;
565
+ return [t, d];
566
566
  }, nn = (t) => (e, r, n) => [t, n], on = () => (t, e, r) => {
567
567
  if (t === null) throw new Error("cannot invert without bounds");
568
568
  if (e === "dimension") return [t, r];
@@ -573,7 +573,7 @@ const Kr = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r :
573
573
  return n = Kr(n, o, s), [e, n];
574
574
  }, pe = class C {
575
575
  constructor() {
576
- x(this, "ops", []), x(this, "currBounds", null), x(this, "currType", null), x(this, "reversed", !1), this.ops = [];
576
+ f(this, "ops", []), f(this, "currBounds", null), f(this, "currType", null), f(this, "reversed", !1), this.ops = [];
577
577
  }
578
578
  static translate(e) {
579
579
  return new C().translate(e);
@@ -641,7 +641,7 @@ const Kr = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r :
641
641
  }), e.reversed = !e.reversed, e;
642
642
  }
643
643
  };
644
- x(pe, "IDENTITY", new pe());
644
+ f(pe, "IDENTITY", new pe());
645
645
  let he = pe;
646
646
  const un = (t) => ({
647
647
  scale: {
@@ -652,33 +652,33 @@ const un = (t) => ({
652
652
  x: t.x.pos(0),
653
653
  y: t.y.pos(0)
654
654
  }
655
- }), ye = class b {
655
+ }), ye = class x {
656
656
  constructor(e = new he(), r = new he(), n = null) {
657
- x(this, "x"), x(this, "y"), x(this, "currRoot"), this.x = e, this.y = r, this.currRoot = n;
657
+ f(this, "x"), f(this, "y"), f(this, "currRoot"), this.x = e, this.y = r, this.currRoot = n;
658
658
  }
659
659
  static translate(e, r) {
660
- return new b().translate(e, r);
660
+ return new x().translate(e, r);
661
661
  }
662
662
  static translateX(e) {
663
- return new b().translateX(e);
663
+ return new x().translateX(e);
664
664
  }
665
665
  static translateY(e) {
666
- return new b().translateY(e);
666
+ return new x().translateY(e);
667
667
  }
668
668
  static clamp(e) {
669
- return new b().clamp(e);
669
+ return new x().clamp(e);
670
670
  }
671
671
  static magnify(e) {
672
- return new b().magnify(e);
672
+ return new x().magnify(e);
673
673
  }
674
674
  static scale(e) {
675
- return new b().scale(e);
675
+ return new x().scale(e);
676
676
  }
677
677
  static reBound(e) {
678
- return new b().reBound(e);
678
+ return new x().reBound(e);
679
679
  }
680
680
  translate(e, r) {
681
- const n = h(e, r), o = this.copy();
681
+ const n = p(e, r), o = this.copy();
682
682
  return o.x = this.x.translate(n.x), o.y = this.y.translate(n.y), o;
683
683
  }
684
684
  translateX(e) {
@@ -710,7 +710,7 @@ const un = (t) => ({
710
710
  return r.x = this.x.clamp(k(e)), r.y = this.y.clamp(D(e)), r;
711
711
  }
712
712
  copy() {
713
- const e = new b();
713
+ const e = new x();
714
714
  return e.currRoot = this.currRoot, e.x = this.x, e.y = this.y, e;
715
715
  }
716
716
  reverse() {
@@ -730,7 +730,7 @@ const un = (t) => ({
730
730
  );
731
731
  }
732
732
  };
733
- x(ye, "IDENTITY", new ye());
733
+ f(ye, "IDENTITY", new ye());
734
734
  let an = ye;
735
735
  const zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
736
736
  __proto__: null,
@@ -761,7 +761,7 @@ const ln = cn, Ne = "-", ze = "__", Z = "--", it = (t) => {
761
761
  if (e.success) return e.data.rgbaCSS;
762
762
  if (typeof t == "string") return t;
763
763
  throw e.error;
764
- }, g = class g {
764
+ }, b = class b {
765
765
  /**
766
766
  * @constructor Creates a new color from the given color value. The color value can be
767
767
  * a hex string, an array of RGB or RGBA values, or another color.
@@ -783,7 +783,7 @@ const ln = cn, Ne = "-", ze = "__", Z = "--", it = (t) => {
783
783
  */
784
784
  N(this, "rgba255");
785
785
  if (typeof e == "string")
786
- this.rgba255 = g.fromHex(e, r);
786
+ this.rgba255 = b.fromHex(e, r);
787
787
  else if (Array.isArray(e)) {
788
788
  if (e.length < 3 || e.length > 4)
789
789
  throw new Error(`Invalid color: [${e.join(", ")}]`);
@@ -796,7 +796,7 @@ const ln = cn, Ne = "-", ze = "__", Z = "--", it = (t) => {
796
796
  */
797
797
  equals(e) {
798
798
  if (e == null) return !1;
799
- const r = new g(e);
799
+ const r = new b(e);
800
800
  return this.rgba255.every((n, o) => n === r.rgba255[o]);
801
801
  }
802
802
  /**
@@ -873,7 +873,7 @@ const ln = cn, Ne = "-", ze = "__", Z = "--", it = (t) => {
873
873
  const [r, n, o] = this.rgba255;
874
874
  if (e > 100)
875
875
  throw new Error(`Color opacity must be between 0 and 100, got ${e}`);
876
- return e > 1 && (e = e / 100), new g([r, n, o, e]);
876
+ return e > 1 && (e = e / 100), new b([r, n, o, e]);
877
877
  }
878
878
  /**
879
879
  * @returns the luminance of the color, between 0 and 1.
@@ -890,13 +890,13 @@ const ln = cn, Ne = "-", ze = "__", Z = "--", it = (t) => {
890
890
  * @returns
891
891
  */
892
892
  contrast(e) {
893
- const r = new g(e), n = this.luminance, o = r.luminance;
893
+ const r = new b(e), n = this.luminance, o = r.luminance;
894
894
  return (Math.max(n, o) + 0.5) / (Math.min(n, o) + 0.5);
895
895
  }
896
896
  pickByContrast(...e) {
897
897
  if (e.length === 0)
898
898
  throw new Error("[Color.pickByContrast] - must provide at least one color");
899
- const [r] = e.map((n) => new g(n)).sort((n, o) => this.contrast(o) - this.contrast(n));
899
+ const [r] = e.map((n) => new b(n)).sort((n, o) => this.contrast(o) - this.contrast(n));
900
900
  return r;
901
901
  }
902
902
  get isDark() {
@@ -915,8 +915,8 @@ const ln = cn, Ne = "-", ze = "__", Z = "--", it = (t) => {
915
915
  ];
916
916
  }
917
917
  };
918
- N(g, "z", i.union([de, Be, ut, i.instanceof(g), at]).transform((e) => new g(e)));
919
- let A = g;
918
+ N(b, "z", i.union([de, Be, ut, i.instanceof(b), at]).transform((e) => new b(e)));
919
+ let A = b;
920
920
  const ct = new A([0, 0, 0, 0]), Y = (t) => Math.floor(t).toString(16).padStart(2, "0"), F = (t, e) => parseInt(t.slice(e, e + 2), 16), gn = (t) => t.startsWith("#") ? t.slice(1) : t, bn = (t) => {
921
921
  let [e, r, n] = t;
922
922
  const o = t[3];
@@ -925,8 +925,8 @@ const ct = new A([0, 0, 0, 0]), Y = (t) => Math.floor(t).toString(16).padStart(2
925
925
  if (r === 0)
926
926
  s = u = a = n;
927
927
  else {
928
- const p = n < 0.5 ? n * (1 + r) : n + r - n * r, y = 2 * n - p;
929
- s = ne(y, p, e + 1 / 3), u = ne(y, p, e), a = ne(y, p, e - 1 / 3);
928
+ const y = n < 0.5 ? n * (1 + r) : n + r - n * r, h = 2 * n - y;
929
+ s = ne(h, y, e + 1 / 3), u = ne(h, y, e), a = ne(h, y, e - 1 / 3);
930
930
  }
931
931
  return [Math.round(s * 255), Math.round(u * 255), Math.round(a * 255), o];
932
932
  }, ne = (t, e, r) => (r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? t + (e - t) * 6 * r : r < 1 / 2 ? e : r < 2 / 3 ? t + (e - t) * (2 / 3 - r) * 6 : t), xn = (t) => {
@@ -934,14 +934,14 @@ const ct = new A([0, 0, 0, 0]), Y = (t) => Math.floor(t).toString(16).padStart(2
934
934
  const o = t[3];
935
935
  e /= 255, r /= 255, n /= 255, e /= 255, r /= 255, n /= 255;
936
936
  const s = Math.max(e, r, n), u = Math.min(e, r, n);
937
- let a, p, y = (s + u) / 2;
937
+ let a, y, h = (s + u) / 2;
938
938
  if (s === u)
939
- a = p = 0;
939
+ a = y = 0;
940
940
  else {
941
- const T = s - u;
942
- p = y > 0.5 ? T / (2 - s - u) : T / (s + u), s === e ? a = (r - n) / T + (r < n ? 6 : 0) : s === r ? a = (n - e) / T + 2 : a = (e - r) / T + 4, a /= 6;
941
+ const d = s - u;
942
+ y = h > 0.5 ? d / (2 - s - u) : d / (s + u), s === e ? a = (r - n) / d + (r < n ? 6 : 0) : s === r ? a = (n - e) / d + 2 : a = (e - r) / d + 4, a /= 6;
943
943
  }
944
- return a *= 360, p *= 100, y *= 100, [Math.round(a), Math.round(p), Math.round(y), o];
944
+ return a *= 360, y *= 100, h *= 100, [Math.round(a), Math.round(y), Math.round(h), o];
945
945
  }, fn = i.union([
946
946
  de,
947
947
  Be,
@@ -997,46 +997,46 @@ const wn = (t, e) => Object.entries(e).forEach(
997
997
  }, Rn = vn("pluto");
998
998
  export {
999
999
  Te as $,
1000
- O as A,
1000
+ Hr as A,
1001
1001
  or as B,
1002
1002
  Rn as C,
1003
1003
  jn as D,
1004
- M as E,
1005
- Lr as F,
1006
- _r as G,
1007
- er as H,
1004
+ L as E,
1005
+ j as F,
1006
+ O as G,
1007
+ Lr as H,
1008
+ _r as I,
1008
1009
  Ue as J,
1010
+ er as K,
1009
1011
  nr as M,
1010
- Dt as O,
1011
1012
  En as R,
1012
- In as S,
1013
1013
  An as T,
1014
1014
  ct as Z,
1015
- Nn as _,
1015
+ In as _,
1016
1016
  A as a,
1017
1017
  fn as b,
1018
1018
  dn as c,
1019
1019
  Cn as d,
1020
- Sn as e,
1020
+ Dt as e,
1021
1021
  bn as f,
1022
1022
  Xt as g,
1023
- cn as h,
1024
- ft as i,
1023
+ qt as h,
1024
+ Sn as i,
1025
1025
  Kr as j,
1026
- zn as k,
1027
- Tn as l,
1028
- rr as m,
1026
+ cn as k,
1027
+ zn as l,
1028
+ Nn as m,
1029
1029
  it as n,
1030
1030
  c as o,
1031
- $e as p,
1031
+ ft as p,
1032
1032
  Bn as q,
1033
- j as r,
1034
- l as s,
1033
+ Tn as r,
1034
+ rr as s,
1035
1035
  yn as t,
1036
1036
  dt as u,
1037
- qt as v,
1038
- P as w,
1039
- Hr as x,
1037
+ $e as v,
1038
+ T as w,
1039
+ l as x,
1040
1040
  je as y,
1041
- L as z
1041
+ P as z
1042
1042
  };