@flesler/cursor-canvas-web 1.1.1 → 1.1.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.
@@ -1,10 +1,10 @@
1
- import { jsx as i, jsxs as y } from "react/jsx-runtime";
2
- import { useComputedColorScheme as me, Button as xe, Alert as ve, Card as be, Checkbox as Se, Divider as ke, Title as _, ActionIcon as Ce, Badge as we, Group as Le, Select as Te, Stack as Pe, Text as H, Table as w, Textarea as Me, TextInput as Ae, Switch as $e } from "@mantine/core";
3
- import { useState as B, createContext as Be, useCallback as W, useContext as oe } from "react";
4
- import { useEffect as Vt, useMemo as Zt, useRef as Jt, useState as Ut } from "react";
1
+ import { jsx as a, jsxs as y } from "react/jsx-runtime";
2
+ import { useComputedColorScheme as ge, Button as xe, Alert as ve, Card as be, Checkbox as Se, Divider as ke, Title as W, ActionIcon as Ce, Badge as we, Group as Le, Select as Te, Stack as Pe, Text as H, Table as w, Textarea as Ae, TextInput as Me, Switch as Be } from "@mantine/core";
3
+ import { useState as $, createContext as $e, useCallback as _, useContext as oe } from "react";
4
+ import { useEffect as Zt, useMemo as Jt, useRef as Ut, useState as Qt } from "react";
5
5
  import { r as Fe, u as te } from "./host-tokens-Dh2BFFjv.js";
6
- import { c as er, a as tr, b as rr, d as nr, e as or, f as ar, g as ir, h as sr, i as cr } from "./host-tokens-Dh2BFFjv.js";
7
- import { BarChart as Ee, AreaChart as De, LineChart as Ie, ChartLegend as Ne, DonutChart as Re, PieChart as ze } from "@mantine/charts";
6
+ import { c as tr, a as rr, b as nr, d as or, e as ar, f as ir, g as sr, h as lr, i as cr } from "./host-tokens-Dh2BFFjv.js";
7
+ import { BarChart as De, AreaChart as Ee, LineChart as Ie, DonutChart as ze, PieChart as Ne, ChartLegend as Re } from "@mantine/charts";
8
8
  const k = {
9
9
  success: "#1F8A65",
10
10
  danger: "#CF2D56",
@@ -24,8 +24,8 @@ const k = {
24
24
  deleted: "red",
25
25
  renamed: "indigo"
26
26
  };
27
- function g() {
28
- const t = me("light") === "dark" ? "dark" : "light";
27
+ function m() {
28
+ const t = ge("light") === "dark" ? "dark" : "light";
29
29
  return Fe(t);
30
30
  }
31
31
  const ie = {
@@ -35,19 +35,19 @@ const ie = {
35
35
  legend: { justifyContent: "center" }
36
36
  };
37
37
  function G() {
38
- const t = g().chart.sequence;
38
+ const t = m().chart.sequence;
39
39
  return (r, n) => r ? k[r] : t[n % t.length];
40
40
  }
41
- function ce() {
42
- const t = g().text.primary;
41
+ function le() {
42
+ const t = m().text.primary;
43
43
  return { textColor: t, barLabelColor: t };
44
44
  }
45
- function le(e, t) {
45
+ function ce(e, t) {
46
46
  return e.map((r, n) => {
47
- const a = { category: r };
47
+ const i = { category: r };
48
48
  for (const o of t)
49
- a[o.name] = o.data[n] ?? 0;
50
- return a;
49
+ i[o.name] = o.data[n] ?? 0;
50
+ return i;
51
51
  });
52
52
  }
53
53
  function de(e, t) {
@@ -77,17 +77,17 @@ function fe(e) {
77
77
  ];
78
78
  return e.horizontal ? { xAxisProps: { domain: n }, referenceLines: t } : { yAxisProps: { domain: n }, referenceLines: t };
79
79
  }
80
- function _e(e, t, r) {
80
+ function We(e, t, r) {
81
81
  return e !== void 0 ? e : t.length === 1 && r.length <= 8;
82
82
  }
83
83
  const re = 14;
84
- function We(e) {
84
+ function _e(e) {
85
85
  return e.length <= re ? e : `${e.slice(0, re - 1)}…`;
86
86
  }
87
87
  function Ge(e) {
88
88
  var o;
89
- const t = typeof e.x == "number" ? e.x : Number(e.x) || 0, r = typeof e.y == "number" ? e.y : Number(e.y) || 0, n = String(((o = e.payload) == null ? void 0 : o.value) ?? ""), a = We(n);
90
- return /* @__PURE__ */ i("g", { transform: `translate(${t},${r})`, children: /* @__PURE__ */ y(
89
+ const t = typeof e.x == "number" ? e.x : Number(e.x) || 0, r = typeof e.y == "number" ? e.y : Number(e.y) || 0, n = String(((o = e.payload) == null ? void 0 : o.value) ?? ""), i = _e(n);
90
+ return /* @__PURE__ */ a("g", { transform: `translate(${t},${r})`, children: /* @__PURE__ */ y(
91
91
  "text",
92
92
  {
93
93
  x: -10,
@@ -97,8 +97,8 @@ function Ge(e) {
97
97
  fill: "currentColor",
98
98
  fontSize: 12,
99
99
  children: [
100
- /* @__PURE__ */ i("title", { children: n }),
101
- a
100
+ /* @__PURE__ */ a("title", { children: n }),
101
+ i
102
102
  ]
103
103
  }
104
104
  ) });
@@ -127,27 +127,27 @@ function Ke() {
127
127
  }
128
128
  };
129
129
  }
130
- function lt({
130
+ function dt({
131
131
  categories: e,
132
132
  series: t,
133
133
  height: r = 240,
134
134
  fill: n,
135
- valueSuffix: a,
135
+ valueSuffix: i,
136
136
  valuePrefix: o,
137
- showValues: l,
137
+ showValues: c,
138
138
  showHoverGuide: f = !0,
139
139
  beginAtZero: d,
140
- yMin: c,
140
+ yMin: l,
141
141
  yMax: u,
142
- referenceLines: m,
142
+ referenceLines: g,
143
143
  style: v,
144
144
  smooth: h
145
145
  }) {
146
- const C = G(), S = ce(), T = le(e, t), P = de(t, C), M = fe({
146
+ const C = G(), S = le(), T = ce(e, t), P = de(t, C), A = fe({
147
147
  beginAtZero: d,
148
- yMin: c,
148
+ yMin: l,
149
149
  yMax: u,
150
- referenceLines: m,
150
+ referenceLines: g,
151
151
  horizontal: !1
152
152
  }), L = {
153
153
  h: r,
@@ -157,65 +157,65 @@ function lt({
157
157
  curveType: h ? "monotone" : "linear",
158
158
  withLegend: t.length > 1,
159
159
  legendProps: ie,
160
- valueFormatter: ue(a, o),
161
- withPointLabels: l ?? e.length <= 20,
160
+ valueFormatter: ue(i, o),
161
+ withPointLabels: c ?? e.length <= 20,
162
162
  tooltipProps: f ? void 0 : { cursor: !1 },
163
163
  styles: {
164
164
  ...se,
165
165
  legendItemName: { color: S.textColor }
166
166
  },
167
167
  ...S,
168
- ...M,
168
+ ...A,
169
169
  style: v
170
170
  };
171
- return n ? /* @__PURE__ */ i(De, { ...L }) : /* @__PURE__ */ i(Ie, { ...L });
171
+ return n ? /* @__PURE__ */ a(Ee, { ...L }) : /* @__PURE__ */ a(Ie, { ...L });
172
172
  }
173
- function dt({
173
+ function ut({
174
174
  categories: e,
175
175
  series: t,
176
176
  height: r = 240,
177
177
  stacked: n,
178
- horizontal: a,
178
+ horizontal: i,
179
179
  normalized: o,
180
- valueSuffix: l,
180
+ valueSuffix: c,
181
181
  valuePrefix: f,
182
182
  showValues: d,
183
- beginAtZero: c,
183
+ beginAtZero: l,
184
184
  yMin: u,
185
- yMax: m,
185
+ yMax: g,
186
186
  referenceLines: v,
187
187
  style: h
188
188
  }) {
189
- const C = G(), S = ce(), T = le(e, t), P = o ? "percent" : n ? "stacked" : "default", M = fe({
190
- beginAtZero: c,
189
+ const C = G(), S = le(), T = ce(e, t), P = o ? "percent" : n ? "stacked" : "default", A = fe({
190
+ beginAtZero: l,
191
191
  yMin: u,
192
- yMax: m,
192
+ yMax: g,
193
193
  referenceLines: v,
194
- horizontal: a,
194
+ horizontal: i,
195
195
  stacked: n,
196
196
  normalized: o
197
- }), L = !n && !o && _e(d, t, e);
198
- return /* @__PURE__ */ i(
199
- Ee,
197
+ }), L = !n && !o && We(d, t, e);
198
+ return /* @__PURE__ */ a(
199
+ De,
200
200
  {
201
201
  h: r,
202
202
  data: T,
203
203
  dataKey: "category",
204
204
  series: de(t, C),
205
205
  type: P,
206
- orientation: a ? "vertical" : "horizontal",
206
+ orientation: i ? "vertical" : "horizontal",
207
207
  withLegend: t.length > 1,
208
208
  legendProps: ie,
209
- valueFormatter: ue(l, f),
209
+ valueFormatter: ue(c, f),
210
210
  withBarValueLabel: L,
211
211
  ...L ? { valueLabelProps: je(S.barLabelColor) } : {},
212
- ...a ? Oe() : L ? Ke() : {},
212
+ ...i ? Oe() : L ? Ke() : {},
213
213
  styles: {
214
214
  ...se,
215
215
  legendItemName: { color: S.textColor }
216
216
  },
217
217
  ...S,
218
- ...M,
218
+ ...A,
219
219
  style: h
220
220
  }
221
221
  );
@@ -245,35 +245,64 @@ function Je(e, t) {
245
245
  label: `${r.name} ${qe(r.value, t)}`
246
246
  }));
247
247
  }
248
- function ut({ data: e, size: t = 200, donut: r, style: n }) {
249
- const [a, o] = B(null), l = g(), f = G(), d = e.map((h, C) => ({
248
+ function Ue({
249
+ total: e,
250
+ family: t,
251
+ primary: r,
252
+ subtitle: n
253
+ }) {
254
+ return /* @__PURE__ */ y(
255
+ "text",
256
+ {
257
+ x: "50%",
258
+ y: "50%",
259
+ textAnchor: "middle",
260
+ dominantBaseline: "central",
261
+ fontFamily: t,
262
+ children: [
263
+ /* @__PURE__ */ a("tspan", { x: "50%", dy: "-0.4em", fontSize: 20, fontWeight: 600, fill: r, children: e }),
264
+ /* @__PURE__ */ a("tspan", { x: "50%", dy: "1.55em", fontSize: 16, fontWeight: 500, fill: n, children: "Total" })
265
+ ]
266
+ }
267
+ );
268
+ }
269
+ function ft({ data: e, size: t = 200, donut: r, style: n }) {
270
+ const [i, o] = $(null), c = m(), f = G(), d = e.map((h, C) => ({
250
271
  name: h.label,
251
272
  value: h.value,
252
273
  color: f(h.tone, C)
253
- })), c = d.reduce((h, C) => h + C.value, 0), u = {
274
+ })), l = d.reduce((h, C) => h + C.value, 0), u = {
254
275
  startAngle: Xe,
255
276
  endAngle: Ye
256
- }, m = (h) => ({
257
- opacity: a === null || a === h ? 1 : 0.35
258
- }), v = r ? /* @__PURE__ */ i(
259
- Re,
277
+ }, g = (h) => ({
278
+ opacity: i === null || i === h ? 1 : 0.35
279
+ }), v = r ? /* @__PURE__ */ a(
280
+ ze,
260
281
  {
261
282
  data: d,
262
283
  size: t,
263
284
  thickness: Ve(t),
264
285
  withTooltip: !0,
265
- chartLabel: c,
266
- cellProps: (h) => m(h.name),
267
- ...u
286
+ cellProps: (h) => g(h.name),
287
+ ...u,
288
+ children: /* @__PURE__ */ a(
289
+ Ue,
290
+ {
291
+ total: l,
292
+ family: c.typography.fontFamily,
293
+ primary: c.text.primary,
294
+ subtitle: c.text.secondary
295
+ }
296
+ )
268
297
  }
269
- ) : /* @__PURE__ */ i(
270
- ze,
298
+ ) : /* @__PURE__ */ a(
299
+ Ne,
271
300
  {
272
301
  data: d,
273
302
  size: t,
274
303
  withTooltip: !0,
275
304
  withLabelsLine: !1,
276
- cellProps: (h) => m(h.name),
305
+ cellProps: (h) => g(h.name),
277
306
  ...u
278
307
  }
279
308
  );
@@ -288,7 +317,7 @@ function ut({ data: e, size: t = 200, donut: r, style: n }) {
288
317
  ...n
289
318
  },
290
319
  children: [
291
- /* @__PURE__ */ i(
320
+ /* @__PURE__ */ a(
292
321
  "div",
293
322
  {
294
323
  style: {
@@ -302,11 +331,11 @@ function ut({ data: e, size: t = 200, donut: r, style: n }) {
302
331
  children: v
303
332
  }
304
333
  ),
305
- /* @__PURE__ */ i(
306
- Ne,
334
+ /* @__PURE__ */ a(
335
+ Re,
307
336
  {
308
337
  payload: Ze(d),
309
- series: Je(d, c),
338
+ series: Je(d, l),
310
339
  legendPosition: "bottom",
311
340
  centered: !0,
312
341
  onHighlight: o,
@@ -316,10 +345,10 @@ function ut({ data: e, size: t = 200, donut: r, style: n }) {
316
345
  legend: {
317
346
  justifyContent: "center",
318
347
  gap: 12,
319
- color: l.text.primary
348
+ color: c.text.primary
320
349
  },
321
350
  legendItemName: {
322
- color: l.text.primary
351
+ color: c.text.primary
323
352
  }
324
353
  }
325
354
  }
@@ -328,71 +357,71 @@ function ut({ data: e, size: t = 200, donut: r, style: n }) {
328
357
  }
329
358
  );
330
359
  }
331
- function ft(e) {
360
+ function ht(e) {
332
361
  const {
333
362
  nodes: t,
334
363
  edges: r,
335
364
  direction: n = "vertical",
336
- nodeWidth: a = 160,
365
+ nodeWidth: i = 160,
337
366
  nodeHeight: o = 40,
338
- rankGap: l = 64,
367
+ rankGap: c = 64,
339
368
  nodeGap: f = 48,
340
369
  padding: d = 24
341
- } = e, c = t.map((s) => s.id), u = new Set(c), m = /* @__PURE__ */ new Map();
342
- for (const s of c) m.set(s, []);
370
+ } = e, l = t.map((s) => s.id), u = new Set(l), g = /* @__PURE__ */ new Map();
371
+ for (const s of l) g.set(s, []);
343
372
  for (const s of r)
344
- u.has(s.from) && u.has(s.to) && m.get(s.from).push(s.to);
345
- const v = 0, h = 1, C = 2, S = new Map(c.map((s) => [s, v])), T = /* @__PURE__ */ new Set(), P = (s, p) => `${s}\0${p}`, M = (s) => {
373
+ u.has(s.from) && u.has(s.to) && g.get(s.from).push(s.to);
374
+ const v = 0, h = 1, C = 2, S = new Map(l.map((s) => [s, v])), T = /* @__PURE__ */ new Set(), P = (s, p) => `${s}\0${p}`, A = (s) => {
346
375
  S.set(s, h);
347
- for (const p of m.get(s) ?? []) {
376
+ for (const p of g.get(s) ?? []) {
348
377
  const x = S.get(p);
349
- x === h ? T.add(P(s, p)) : x === v && M(p);
378
+ x === h ? T.add(P(s, p)) : x === v && A(p);
350
379
  }
351
380
  S.set(s, C);
352
381
  };
353
- for (const s of c) S.get(s) === v && M(s);
382
+ for (const s of l) S.get(s) === v && A(s);
354
383
  const L = r.filter(
355
384
  (s) => u.has(s.from) && u.has(s.to) && !T.has(P(s.from, s.to))
356
- ), A = new Map(c.map((s) => [s, 0])), K = new Map(c.map((s) => [s, []]));
385
+ ), M = new Map(l.map((s) => [s, 0])), K = new Map(l.map((s) => [s, []]));
357
386
  for (const s of L)
358
- K.get(s.from).push(s.to), A.set(s.to, (A.get(s.to) ?? 0) + 1);
359
- const F = new Map(c.map((s) => [s, 0])), N = c.filter((s) => (A.get(s) ?? 0) === 0);
360
- for (; N.length > 0; ) {
361
- const s = N.shift(), p = F.get(s);
387
+ K.get(s.from).push(s.to), M.set(s.to, (M.get(s.to) ?? 0) + 1);
388
+ const F = new Map(l.map((s) => [s, 0])), z = l.filter((s) => (M.get(s) ?? 0) === 0);
389
+ for (; z.length > 0; ) {
390
+ const s = z.shift(), p = F.get(s);
362
391
  for (const x of K.get(s))
363
- F.set(x, Math.max(F.get(x), p + 1)), A.set(x, A.get(x) - 1), A.get(x) === 0 && N.push(x);
392
+ F.set(x, Math.max(F.get(x), p + 1)), M.set(x, M.get(x) - 1), M.get(x) === 0 && z.push(x);
364
393
  }
365
- const $ = /* @__PURE__ */ new Map();
366
- for (const s of c) {
394
+ const B = /* @__PURE__ */ new Map();
395
+ for (const s of l) {
367
396
  const p = F.get(s);
368
- $.has(p) || $.set(p, []), $.get(p).push(s);
397
+ B.has(p) || B.set(p, []), B.get(p).push(s);
369
398
  }
370
- const E = [...$.keys()].sort((s, p) => s - p), b = n === "vertical", X = (s) => s * (b ? a : o) + Math.max(0, s - 1) * f, Y = Math.max(
399
+ const D = [...B.keys()].sort((s, p) => s - p), b = n === "vertical", X = (s) => s * (b ? i : o) + Math.max(0, s - 1) * f, Y = Math.max(
371
400
  0,
372
- ...E.map((s) => X($.get(s).length))
373
- ), D = /* @__PURE__ */ new Map(), q = [];
374
- E.forEach((s, p) => {
375
- const x = $.get(s), R = X(x.length), z = d + (Y - R) / 2, I = d + p * ((b ? o : a) + l);
401
+ ...D.map((s) => X(B.get(s).length))
402
+ ), E = /* @__PURE__ */ new Map(), q = [];
403
+ D.forEach((s, p) => {
404
+ const x = B.get(s), N = X(x.length), R = d + (Y - N) / 2, I = d + p * ((b ? o : i) + c);
376
405
  x.forEach((U, Q) => {
377
- const ee = z + Q * ((b ? a : o) + f), ye = b ? ee : I, ge = b ? I : ee;
378
- D.set(U, { id: U, x: ye, y: ge, rank: s, order: Q });
406
+ const ee = R + Q * ((b ? i : o) + f), ye = b ? ee : I, me = b ? I : ee;
407
+ E.set(U, { id: U, x: ye, y: me, rank: s, order: Q });
379
408
  }), q.push({
380
409
  rank: s,
381
- x: b ? z : I,
382
- y: b ? I : z,
383
- width: b ? R : a,
384
- height: b ? o : R,
410
+ x: b ? R : I,
411
+ y: b ? I : R,
412
+ width: b ? N : i,
413
+ height: b ? o : N,
385
414
  nodeIds: x
386
415
  });
387
416
  });
388
417
  const V = (s, p) => s ? b ? {
389
- x: s.x + a / 2,
418
+ x: s.x + i / 2,
390
419
  y: p === "source" ? s.y + o : s.y
391
420
  } : {
392
- x: p === "source" ? s.x + a : s.x,
421
+ x: p === "source" ? s.x + i : s.x,
393
422
  y: s.y + o / 2
394
423
  } : { x: 0, y: 0 }, pe = r.filter((s) => u.has(s.from) && u.has(s.to)).map((s) => {
395
- const p = V(D.get(s.from), "source"), x = V(D.get(s.to), "target");
424
+ const p = V(E.get(s.from), "source"), x = V(E.get(s.to), "target");
396
425
  return {
397
426
  from: s.from,
398
427
  to: s.to,
@@ -402,9 +431,9 @@ function ft(e) {
402
431
  targetY: x.y,
403
432
  isBackEdge: T.has(P(s.from, s.to))
404
433
  };
405
- }), Z = d * 2 + E.length * (b ? o : a) + Math.max(0, E.length - 1) * l, J = d * 2 + Y;
434
+ }), Z = d * 2 + D.length * (b ? o : i) + Math.max(0, D.length - 1) * c, J = d * 2 + Y;
406
435
  return {
407
- nodes: [...D.values()],
436
+ nodes: [...E.values()],
408
437
  edges: pe,
409
438
  ranks: q,
410
439
  direction: n,
@@ -412,7 +441,7 @@ function ft(e) {
412
441
  height: b ? Z : J
413
442
  };
414
443
  }
415
- function ht({
444
+ function pt({
416
445
  additions: e = 0,
417
446
  deletions: t = 0,
418
447
  style: r
@@ -441,20 +470,20 @@ function ht({
441
470
  }
442
471
  );
443
472
  }
444
- const Ue = {
473
+ const Qe = {
445
474
  added: "+",
446
475
  removed: "-",
447
476
  unchanged: " "
448
477
  };
449
- function pt({
478
+ function yt({
450
479
  lines: e,
451
480
  showLineNumbers: t = !0,
452
481
  coloredLineNumbers: r = !0,
453
482
  showAccentStrip: n = !0,
454
- style: a
483
+ style: i
455
484
  }) {
456
- const o = g(), l = (c) => c === "added" ? o.diff.insertedLine : c === "removed" ? o.diff.removedLine : "transparent", f = (c) => c === "added" ? o.diff.stripAdded : c === "removed" ? o.diff.stripRemoved : "transparent", d = (c) => r && c === "added" ? k.added : r && c === "removed" ? k.deleted : o.text.tertiary;
457
- return /* @__PURE__ */ i(
485
+ const o = m(), c = (l) => l === "added" ? o.diff.insertedLine : l === "removed" ? o.diff.removedLine : "transparent", f = (l) => l === "added" ? o.diff.stripAdded : l === "removed" ? o.diff.stripRemoved : "transparent", d = (l) => r && l === "added" ? k.added : r && l === "removed" ? k.deleted : o.text.tertiary;
486
+ return /* @__PURE__ */ a(
458
487
  "div",
459
488
  {
460
489
  style: {
@@ -463,19 +492,19 @@ function pt({
463
492
  lineHeight: "18px",
464
493
  color: o.text.primary,
465
494
  overflowX: "auto",
466
- ...a
495
+ ...i
467
496
  },
468
- children: e.map((c, u) => /* @__PURE__ */ y(
497
+ children: e.map((l, u) => /* @__PURE__ */ y(
469
498
  "div",
470
499
  {
471
500
  style: {
472
501
  display: "flex",
473
502
  alignItems: "stretch",
474
- background: l(c.type),
475
- borderLeft: n ? `3px solid ${f(c.type)}` : void 0
503
+ background: c(l.type),
504
+ borderLeft: n ? `3px solid ${f(l.type)}` : void 0
476
505
  },
477
506
  children: [
478
- t && /* @__PURE__ */ i(
507
+ t && /* @__PURE__ */ a(
479
508
  "span",
480
509
  {
481
510
  style: {
@@ -484,12 +513,12 @@ function pt({
484
513
  textAlign: "right",
485
514
  paddingRight: 10,
486
515
  userSelect: "none",
487
- color: d(c.type)
516
+ color: d(l.type)
488
517
  },
489
- children: c.lineNumber ?? ""
518
+ children: l.lineNumber ?? ""
490
519
  }
491
520
  ),
492
- /* @__PURE__ */ i(
521
+ /* @__PURE__ */ a(
493
522
  "span",
494
523
  {
495
524
  style: {
@@ -497,12 +526,12 @@ function pt({
497
526
  width: 14,
498
527
  textAlign: "center",
499
528
  userSelect: "none",
500
- color: d(c.type)
529
+ color: d(l.type)
501
530
  },
502
- children: Ue[c.type]
531
+ children: Qe[l.type]
503
532
  }
504
533
  ),
505
- /* @__PURE__ */ i(
534
+ /* @__PURE__ */ a(
506
535
  "pre",
507
536
  {
508
537
  style: {
@@ -511,7 +540,7 @@ function pt({
511
540
  whiteSpace: "pre",
512
541
  fontFamily: "inherit"
513
542
  },
514
- children: c.content
543
+ children: l.content
515
544
  }
516
545
  )
517
546
  ]
@@ -521,8 +550,8 @@ function pt({
521
550
  }
522
551
  );
523
552
  }
524
- function Qe({ status: e }) {
525
- const t = g(), r = e === "completed" ? k.success : e === "in_progress" ? t.accent.primary : e === "cancelled" ? k.danger : t.text.tertiary;
553
+ function et({ status: e }) {
554
+ const t = m(), r = e === "completed" ? k.success : e === "in_progress" ? t.accent.primary : e === "cancelled" ? k.danger : t.text.tertiary;
526
555
  return /* @__PURE__ */ y(
527
556
  "svg",
528
557
  {
@@ -533,8 +562,8 @@ function Qe({ status: e }) {
533
562
  style: { flex: "0 0 auto", marginTop: 3 },
534
563
  "aria-hidden": !0,
535
564
  children: [
536
- /* @__PURE__ */ i("circle", { cx: 7, cy: 7, r: 6, stroke: r, strokeWidth: 1.4 }),
537
- e === "completed" && /* @__PURE__ */ i(
565
+ /* @__PURE__ */ a("circle", { cx: 7, cy: 7, r: 6, stroke: r, strokeWidth: 1.4 }),
566
+ e === "completed" && /* @__PURE__ */ a(
538
567
  "path",
539
568
  {
540
569
  d: "M4 7.2l2 2 4-4.4",
@@ -544,8 +573,8 @@ function Qe({ status: e }) {
544
573
  strokeLinejoin: "round"
545
574
  }
546
575
  ),
547
- e === "in_progress" && /* @__PURE__ */ i("circle", { cx: 7, cy: 7, r: 3, fill: r }),
548
- e === "cancelled" && /* @__PURE__ */ i(
576
+ e === "in_progress" && /* @__PURE__ */ a("circle", { cx: 7, cy: 7, r: 3, fill: r }),
577
+ e === "cancelled" && /* @__PURE__ */ a(
549
578
  "path",
550
579
  {
551
580
  d: "M4.8 4.8l4.4 4.4M9.2 4.8l-4.4 4.4",
@@ -558,15 +587,15 @@ function Qe({ status: e }) {
558
587
  }
559
588
  );
560
589
  }
561
- function et({
590
+ function tt({
562
591
  todos: e,
563
592
  dimmedTodoIds: t,
564
593
  onTodoClick: r,
565
594
  style: n
566
595
  }) {
567
- const a = g();
568
- return e.length === 0 ? null : /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", ...n }, children: e.map((o) => {
569
- const l = t == null ? void 0 : t.has(o.id);
596
+ const i = m();
597
+ return e.length === 0 ? null : /* @__PURE__ */ a("div", { style: { display: "flex", flexDirection: "column", ...n }, children: e.map((o) => {
598
+ const c = t == null ? void 0 : t.has(o.id);
570
599
  return /* @__PURE__ */ y(
571
600
  "button",
572
601
  {
@@ -582,19 +611,19 @@ function et({
582
611
  background: "transparent",
583
612
  border: "none",
584
613
  cursor: r ? "pointer" : "default",
585
- color: a.text.primary,
614
+ color: i.text.primary,
586
615
  fontSize: 14,
587
616
  lineHeight: "20px",
588
- opacity: l ? 0.45 : 1
617
+ opacity: c ? 0.45 : 1
589
618
  },
590
619
  children: [
591
- /* @__PURE__ */ i(Qe, { status: o.status }),
592
- /* @__PURE__ */ i(
620
+ /* @__PURE__ */ a(et, { status: o.status }),
621
+ /* @__PURE__ */ a(
593
622
  "span",
594
623
  {
595
624
  style: {
596
625
  textDecoration: o.status === "cancelled" ? "line-through" : void 0,
597
- color: o.status === "cancelled" ? a.text.tertiary : void 0
626
+ color: o.status === "cancelled" ? i.text.tertiary : void 0
598
627
  },
599
628
  children: o.content
600
629
  }
@@ -605,16 +634,16 @@ function et({
605
634
  );
606
635
  }) });
607
636
  }
608
- function yt({
637
+ function mt({
609
638
  todos: e,
610
639
  dimmedTodoIds: t,
611
640
  defaultExpanded: r = !1,
612
641
  onTodoClick: n,
613
- style: a
642
+ style: i
614
643
  }) {
615
- const o = g(), [l, f] = B(r);
644
+ const o = m(), [c, f] = $(r);
616
645
  if (e.length === 0) return null;
617
- const d = e.filter((c) => c.status === "completed").length;
646
+ const d = e.filter((l) => l.status === "completed").length;
618
647
  return /* @__PURE__ */ y(
619
648
  "div",
620
649
  {
@@ -622,14 +651,14 @@ function yt({
622
651
  border: `1px solid ${o.stroke.primary}`,
623
652
  borderRadius: 6,
624
653
  overflow: "hidden",
625
- ...a
654
+ ...i
626
655
  },
627
656
  children: [
628
657
  /* @__PURE__ */ y(
629
658
  "button",
630
659
  {
631
660
  type: "button",
632
- onClick: () => f((c) => !c),
661
+ onClick: () => f((l) => !l),
633
662
  style: {
634
663
  display: "flex",
635
664
  alignItems: "center",
@@ -644,7 +673,7 @@ function yt({
644
673
  fontWeight: 600
645
674
  },
646
675
  children: [
647
- /* @__PURE__ */ i(
676
+ /* @__PURE__ */ a(
648
677
  "svg",
649
678
  {
650
679
  width: 12,
@@ -652,11 +681,11 @@ function yt({
652
681
  viewBox: "0 0 12 12",
653
682
  fill: "none",
654
683
  style: {
655
- transform: l ? "rotate(90deg)" : "none",
684
+ transform: c ? "rotate(90deg)" : "none",
656
685
  transition: "transform 120ms"
657
686
  },
658
687
  "aria-hidden": !0,
659
- children: /* @__PURE__ */ i(
688
+ children: /* @__PURE__ */ a(
660
689
  "path",
661
690
  {
662
691
  d: "M4 2.5L8 6l-4 3.5",
@@ -668,8 +697,8 @@ function yt({
668
697
  )
669
698
  }
670
699
  ),
671
- /* @__PURE__ */ i("span", { children: "Todos" }),
672
- /* @__PURE__ */ i("span", { style: { flex: 1 } }),
700
+ /* @__PURE__ */ a("span", { children: "Todos" }),
701
+ /* @__PURE__ */ a("span", { style: { flex: 1 } }),
673
702
  /* @__PURE__ */ y("span", { children: [
674
703
  d,
675
704
  " of ",
@@ -679,8 +708,8 @@ function yt({
679
708
  ]
680
709
  }
681
710
  ),
682
- l && /* @__PURE__ */ i("div", { style: { padding: 6 }, children: /* @__PURE__ */ i(
683
- et,
711
+ c && /* @__PURE__ */ a("div", { style: { padding: 6 }, children: /* @__PURE__ */ a(
712
+ tt,
684
713
  {
685
714
  todos: e,
686
715
  dimmedTodoIds: t,
@@ -692,18 +721,18 @@ function yt({
692
721
  );
693
722
  }
694
723
  function gt(e, t) {
695
- const r = `canvas:${e}`, [n, a] = B(() => {
724
+ const r = `canvas:${e}`, [n, i] = $(() => {
696
725
  if (typeof localStorage > "u") return t;
697
726
  try {
698
- const l = localStorage.getItem(r);
699
- return l === null ? t : JSON.parse(l);
727
+ const c = localStorage.getItem(r);
728
+ return c === null ? t : JSON.parse(c);
700
729
  } catch {
701
730
  return t;
702
731
  }
703
- }), o = W(
704
- (l) => {
705
- a((f) => {
706
- const d = typeof l == "function" ? l(f) : l;
732
+ }), o = _(
733
+ (c) => {
734
+ i((f) => {
735
+ const d = typeof c == "function" ? c(f) : c;
707
736
  try {
708
737
  localStorage == null || localStorage.setItem(r, JSON.stringify(d));
709
738
  } catch {
@@ -715,11 +744,11 @@ function gt(e, t) {
715
744
  );
716
745
  return [n, o];
717
746
  }
718
- function mt() {
719
- return W((e) => {
747
+ function xt() {
748
+ return _((e) => {
720
749
  }, []);
721
750
  }
722
- function xt(e, t) {
751
+ function vt(e, t) {
723
752
  return { ...e, ...t };
724
753
  }
725
754
  function j(e, t, r) {
@@ -734,43 +763,43 @@ function j(e, t, r) {
734
763
  ...r
735
764
  };
736
765
  }
737
- function vt({ children: e, style: t }) {
738
- const r = g();
739
- return /* @__PURE__ */ i(_, { order: 1, style: j(r, "h1", t), children: e });
740
- }
741
766
  function bt({ children: e, style: t }) {
742
- const r = g();
743
- return /* @__PURE__ */ i(_, { order: 2, style: j(r, "h2", t), children: e });
767
+ const r = m();
768
+ return /* @__PURE__ */ a(W, { order: 1, style: j(r, "h1", t), children: e });
744
769
  }
745
770
  function St({ children: e, style: t }) {
746
- const r = g();
747
- return /* @__PURE__ */ i(_, { order: 3, style: j(r, "h3", t), children: e });
771
+ const r = m();
772
+ return /* @__PURE__ */ a(W, { order: 2, style: j(r, "h2", t), children: e });
773
+ }
774
+ function kt({ children: e, style: t }) {
775
+ const r = m();
776
+ return /* @__PURE__ */ a(W, { order: 3, style: j(r, "h3", t), children: e });
748
777
  }
749
- const tt = {
778
+ const rt = {
750
779
  normal: 400,
751
780
  medium: 500,
752
781
  semibold: 600,
753
782
  bold: 700
754
783
  };
755
- function kt({
784
+ function Ct({
756
785
  children: e,
757
786
  tone: t = "primary",
758
787
  size: r = "body",
759
788
  as: n = "p",
760
- weight: a = "normal",
789
+ weight: i = "normal",
761
790
  italic: o,
762
- truncate: l,
791
+ truncate: c,
763
792
  style: f
764
793
  }) {
765
- const d = g();
766
- return /* @__PURE__ */ i(
794
+ const d = m();
795
+ return /* @__PURE__ */ a(
767
796
  H,
768
797
  {
769
798
  component: n,
770
799
  size: r === "small" ? "xs" : "sm",
771
- fw: tt[a],
800
+ fw: rt[i],
772
801
  c: t === "primary" ? void 0 : d.text[t],
773
- truncate: l,
802
+ truncate: c,
774
803
  style: {
775
804
  fontStyle: o ? "italic" : void 0,
776
805
  ...t === "primary" ? { color: d.text.primary } : void 0,
@@ -781,9 +810,9 @@ function kt({
781
810
  }
782
811
  );
783
812
  }
784
- function Ct({ children: e, style: t }) {
785
- const r = g();
786
- return /* @__PURE__ */ i(
813
+ function wt({ children: e, style: t }) {
814
+ const r = m();
815
+ return /* @__PURE__ */ a(
787
816
  "code",
788
817
  {
789
818
  style: {
@@ -799,9 +828,9 @@ function Ct({ children: e, style: t }) {
799
828
  }
800
829
  );
801
830
  }
802
- function wt({ children: e, href: t, style: r }) {
803
- const n = g();
804
- return /* @__PURE__ */ i(
831
+ function Lt({ children: e, href: t, style: r }) {
832
+ const n = m();
833
+ return /* @__PURE__ */ a(
805
834
  "a",
806
835
  {
807
836
  href: t,
@@ -812,8 +841,8 @@ function wt({ children: e, href: t, style: r }) {
812
841
  }
813
842
  );
814
843
  }
815
- function Lt({ children: e, gap: t, style: r }) {
816
- return /* @__PURE__ */ i(Pe, { gap: t, style: r, children: e });
844
+ function Tt({ children: e, gap: t, style: r }) {
845
+ return /* @__PURE__ */ a(Pe, { gap: t, style: r, children: e });
817
846
  }
818
847
  const ne = {
819
848
  start: "flex-start",
@@ -822,32 +851,32 @@ const ne = {
822
851
  stretch: "stretch",
823
852
  "space-between": "space-between"
824
853
  };
825
- function Tt({
854
+ function Pt({
826
855
  children: e,
827
856
  gap: t,
828
857
  align: r = "center",
829
858
  justify: n = "start",
830
- wrap: a = !1,
859
+ wrap: i = !1,
831
860
  style: o
832
861
  }) {
833
- return /* @__PURE__ */ i(
862
+ return /* @__PURE__ */ a(
834
863
  Le,
835
864
  {
836
865
  gap: t,
837
866
  align: ne[r],
838
867
  justify: ne[n],
839
- wrap: a ? "wrap" : "nowrap",
868
+ wrap: i ? "wrap" : "nowrap",
840
869
  style: o,
841
870
  children: e
842
871
  }
843
872
  );
844
873
  }
845
- function Pt() {
846
- return /* @__PURE__ */ i("div", { style: { flex: 1 } });
874
+ function At() {
875
+ return /* @__PURE__ */ a("div", { style: { flex: 1 } });
847
876
  }
848
- function Mt({ children: e, columns: t, gap: r = 16, align: n, style: a }) {
877
+ function Mt({ children: e, columns: t, gap: r = 16, align: n, style: i }) {
849
878
  const o = typeof t == "number" ? `repeat(${t}, minmax(0, 1fr))` : t;
850
- return /* @__PURE__ */ i(
879
+ return /* @__PURE__ */ a(
851
880
  "div",
852
881
  {
853
882
  style: {
@@ -855,16 +884,16 @@ function Mt({ children: e, columns: t, gap: r = 16, align: n, style: a }) {
855
884
  gridTemplateColumns: o,
856
885
  gap: r,
857
886
  alignItems: n,
858
- ...a
887
+ ...i
859
888
  },
860
889
  children: e
861
890
  }
862
891
  );
863
892
  }
864
- function At({ style: e }) {
865
- return /* @__PURE__ */ i(ke, { style: e });
893
+ function Bt({ style: e }) {
894
+ return /* @__PURE__ */ a(ke, { style: e });
866
895
  }
867
- const O = Be({
896
+ const O = $e({
868
897
  collapsible: !1,
869
898
  open: !0,
870
899
  toggle: () => {
@@ -875,15 +904,15 @@ function $t({
875
904
  variant: t = "default",
876
905
  collapsible: r = !1,
877
906
  defaultOpen: n = !0,
878
- open: a,
907
+ open: i,
879
908
  onOpenChange: o,
880
- style: l
909
+ style: c
881
910
  }) {
882
- const f = g(), [d, c] = B(n), u = a ?? d, m = W(() => {
911
+ const f = m(), [d, l] = $(n), u = i ?? d, g = _(() => {
883
912
  const v = !u;
884
- a === void 0 && c(v), o == null || o(v);
885
- }, [u, a, o]);
886
- return /* @__PURE__ */ i(
913
+ i === void 0 && l(v), o == null || o(v);
914
+ }, [u, i, o]);
915
+ return /* @__PURE__ */ a(
887
916
  be,
888
917
  {
889
918
  withBorder: t !== "borderless",
@@ -892,18 +921,18 @@ function $t({
892
921
  style: {
893
922
  background: f.bg.elevated,
894
923
  borderColor: f.stroke.secondary,
895
- ...l
924
+ ...c
896
925
  },
897
- children: /* @__PURE__ */ i(O.Provider, { value: { collapsible: r, open: u, toggle: m }, children: e })
926
+ children: /* @__PURE__ */ a(O.Provider, { value: { collapsible: r, open: u, toggle: g }, children: e })
898
927
  }
899
928
  );
900
929
  }
901
- function Bt({ children: e, trailing: t, style: r }) {
902
- const n = g(), { collapsible: a, open: o, toggle: l } = oe(O);
930
+ function Ft({ children: e, trailing: t, style: r }) {
931
+ const n = m(), { collapsible: i, open: o, toggle: c } = oe(O);
903
932
  return /* @__PURE__ */ y(
904
933
  "div",
905
934
  {
906
- onClick: a ? l : void 0,
935
+ onClick: i ? c : void 0,
907
936
  style: {
908
937
  display: "flex",
909
938
  alignItems: "center",
@@ -915,26 +944,26 @@ function Bt({ children: e, trailing: t, style: r }) {
915
944
  fontWeight: n.typography.h3.fontWeight,
916
945
  color: n.text.primary,
917
946
  fontFamily: n.typography.fontFamily,
918
- cursor: a ? "pointer" : void 0,
919
- userSelect: a ? "none" : void 0,
947
+ cursor: i ? "pointer" : void 0,
948
+ userSelect: i ? "none" : void 0,
920
949
  ...r
921
950
  },
922
951
  children: [
923
952
  /* @__PURE__ */ y("span", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
924
- a && /* @__PURE__ */ i(he, { expanded: o }),
953
+ i && /* @__PURE__ */ a(he, { expanded: o }),
925
954
  e
926
955
  ] }),
927
- t != null && /* @__PURE__ */ i("span", { children: t })
956
+ t != null && /* @__PURE__ */ a("span", { children: t })
928
957
  ]
929
958
  }
930
959
  );
931
960
  }
932
- function Ft({ children: e, style: t }) {
961
+ function Dt({ children: e, style: t }) {
933
962
  const { collapsible: r, open: n } = oe(O);
934
- return r && !n ? null : /* @__PURE__ */ i("div", { style: { padding: 14, ...t }, children: e });
963
+ return r && !n ? null : /* @__PURE__ */ a("div", { style: { padding: 14, ...t }, children: e });
935
964
  }
936
965
  function he({ expanded: e }) {
937
- return /* @__PURE__ */ i(
966
+ return /* @__PURE__ */ a(
938
967
  "svg",
939
968
  {
940
969
  width: 12,
@@ -946,7 +975,7 @@ function he({ expanded: e }) {
946
975
  transition: "transform 120ms"
947
976
  },
948
977
  "aria-hidden": !0,
949
- children: /* @__PURE__ */ i(
978
+ children: /* @__PURE__ */ a(
950
979
  "path",
951
980
  {
952
981
  d: "M4 2.5L8 6l-4 3.5",
@@ -960,54 +989,54 @@ function he({ expanded: e }) {
960
989
  );
961
990
  }
962
991
  function Et({ value: e, label: t, tone: r, style: n }) {
963
- const a = g();
992
+ const i = m();
964
993
  return /* @__PURE__ */ y("div", { style: n, children: [
965
- /* @__PURE__ */ i(
994
+ /* @__PURE__ */ a(
966
995
  H,
967
996
  {
968
997
  fz: 22,
969
998
  fw: 700,
970
999
  lh: 1.2,
971
1000
  style: {
972
- color: r ? k[r] : a.text.primary,
973
- fontFamily: a.typography.fontFamily
1001
+ color: r ? k[r] : i.text.primary,
1002
+ fontFamily: i.typography.fontFamily
974
1003
  },
975
1004
  children: e
976
1005
  }
977
1006
  ),
978
- /* @__PURE__ */ i(
1007
+ /* @__PURE__ */ a(
979
1008
  H,
980
1009
  {
981
1010
  fz: 12,
982
1011
  style: {
983
- color: a.text.tertiary,
984
- fontFamily: a.typography.fontFamily
1012
+ color: i.text.tertiary,
1013
+ fontFamily: i.typography.fontFamily
985
1014
  },
986
1015
  children: t
987
1016
  }
988
1017
  )
989
1018
  ] });
990
1019
  }
991
- function Dt({
1020
+ function It({
992
1021
  children: e,
993
1022
  active: t,
994
1023
  tone: r = "neutral",
995
1024
  size: n = "md",
996
- leadingContent: a,
1025
+ leadingContent: i,
997
1026
  keyboardHint: o,
998
- title: l,
1027
+ title: c,
999
1028
  style: f,
1000
1029
  onClick: d
1001
1030
  }) {
1002
- return /* @__PURE__ */ i(
1031
+ return /* @__PURE__ */ a(
1003
1032
  we,
1004
1033
  {
1005
1034
  color: ae[r],
1006
1035
  variant: t ? "filled" : "light",
1007
1036
  size: n === "sm" ? "sm" : "md",
1008
- leftSection: a,
1037
+ leftSection: i,
1009
1038
  rightSection: o,
1010
- title: l,
1039
+ title: c,
1011
1040
  onClick: d,
1012
1041
  style: {
1013
1042
  cursor: d ? "pointer" : void 0,
@@ -1018,26 +1047,26 @@ function Dt({
1018
1047
  }
1019
1048
  );
1020
1049
  }
1021
- function It({
1050
+ function zt({
1022
1051
  children: e,
1023
1052
  tone: t = "neutral",
1024
1053
  title: r,
1025
1054
  icon: n,
1026
- style: a
1055
+ style: i
1027
1056
  }) {
1028
- return /* @__PURE__ */ i(
1057
+ return /* @__PURE__ */ a(
1029
1058
  ve,
1030
1059
  {
1031
1060
  color: ae[t],
1032
1061
  title: r,
1033
1062
  icon: n,
1034
1063
  variant: "light",
1035
- style: a,
1064
+ style: i,
1036
1065
  children: e
1037
1066
  }
1038
1067
  );
1039
1068
  }
1040
- const rt = {
1069
+ const nt = {
1041
1070
  success: "rgba(31,138,101,0.12)",
1042
1071
  danger: "rgba(207,45,86,0.12)",
1043
1072
  warning: "rgba(232,163,61,0.14)",
@@ -1049,34 +1078,34 @@ function Nt({
1049
1078
  rows: t,
1050
1079
  columnAlign: r,
1051
1080
  rowTone: n,
1052
- framed: a = !0,
1081
+ framed: i = !0,
1053
1082
  striped: o,
1054
- stickyHeader: l,
1083
+ stickyHeader: c,
1055
1084
  style: f,
1056
1085
  emptyMessage: d
1057
1086
  }) {
1058
1087
  return /* @__PURE__ */ y(
1059
1088
  w,
1060
1089
  {
1061
- withTableBorder: a,
1090
+ withTableBorder: i,
1062
1091
  withColumnBorders: !1,
1063
1092
  striped: o,
1064
- stickyHeader: l,
1093
+ stickyHeader: c,
1065
1094
  highlightOnHover: !0,
1066
1095
  style: f,
1067
1096
  children: [
1068
- /* @__PURE__ */ i(w.Thead, { children: /* @__PURE__ */ i(w.Tr, { children: e.map((c, u) => /* @__PURE__ */ i(w.Th, { ta: (r == null ? void 0 : r[u]) ?? "left", children: c }, u)) }) }),
1069
- /* @__PURE__ */ i(w.Tbody, { children: t.length === 0 ? /* @__PURE__ */ i(w.Tr, { children: /* @__PURE__ */ i(w.Td, { colSpan: e.length, ta: "center", c: "dimmed", children: d ?? "No data" }) }) : t.map((c, u) => {
1070
- const m = n == null ? void 0 : n[u];
1071
- return /* @__PURE__ */ i(
1097
+ /* @__PURE__ */ a(w.Thead, { children: /* @__PURE__ */ a(w.Tr, { children: e.map((l, u) => /* @__PURE__ */ a(w.Th, { ta: (r == null ? void 0 : r[u]) ?? "left", children: l }, u)) }) }),
1098
+ /* @__PURE__ */ a(w.Tbody, { children: t.length === 0 ? /* @__PURE__ */ a(w.Tr, { children: /* @__PURE__ */ a(w.Td, { colSpan: e.length, ta: "center", c: "dimmed", children: d ?? "No data" }) }) : t.map((l, u) => {
1099
+ const g = n == null ? void 0 : n[u];
1100
+ return /* @__PURE__ */ a(
1072
1101
  w.Tr,
1073
1102
  {
1074
- style: m ? { background: rt[m] } : void 0,
1075
- children: e.map((v, h) => /* @__PURE__ */ i(
1103
+ style: g ? { background: nt[g] } : void 0,
1104
+ children: e.map((v, h) => /* @__PURE__ */ a(
1076
1105
  w.Td,
1077
1106
  {
1078
1107
  ta: (r == null ? void 0 : r[h]) ?? "left",
1079
- children: c[h]
1108
+ children: l[h]
1080
1109
  },
1081
1110
  h
1082
1111
  ))
@@ -1088,7 +1117,7 @@ function Nt({
1088
1117
  }
1089
1118
  );
1090
1119
  }
1091
- const nt = {
1120
+ const ot = {
1092
1121
  primary: "filled",
1093
1122
  secondary: "default",
1094
1123
  ghost: "subtle"
@@ -1098,66 +1127,66 @@ function Rt({
1098
1127
  variant: t = "secondary",
1099
1128
  disabled: r,
1100
1129
  type: n = "button",
1101
- style: a,
1130
+ style: i,
1102
1131
  onClick: o
1103
1132
  }) {
1104
- return /* @__PURE__ */ i(
1133
+ return /* @__PURE__ */ a(
1105
1134
  xe,
1106
1135
  {
1107
- variant: nt[t],
1136
+ variant: ot[t],
1108
1137
  color: t === "primary" ? "accent" : void 0,
1109
1138
  size: "xs",
1110
1139
  disabled: r,
1111
1140
  type: n,
1112
1141
  onClick: o,
1113
- style: a,
1142
+ style: i,
1114
1143
  children: e
1115
1144
  }
1116
1145
  );
1117
1146
  }
1118
- function zt({
1147
+ function Ht({
1119
1148
  children: e,
1120
1149
  onClick: t,
1121
1150
  disabled: r,
1122
1151
  title: n,
1123
- variant: a = "default",
1152
+ variant: i = "default",
1124
1153
  size: o = "md",
1125
- style: l
1154
+ style: c
1126
1155
  }) {
1127
- return /* @__PURE__ */ i(
1156
+ return /* @__PURE__ */ a(
1128
1157
  Ce,
1129
1158
  {
1130
- variant: a === "circle" ? "light" : "subtle",
1131
- radius: a === "circle" ? "xl" : "sm",
1159
+ variant: i === "circle" ? "light" : "subtle",
1160
+ radius: i === "circle" ? "xl" : "sm",
1132
1161
  size: o === "sm" ? "sm" : "md",
1133
1162
  color: "gray",
1134
1163
  disabled: r,
1135
1164
  title: n,
1136
1165
  "aria-label": n,
1137
1166
  onClick: t,
1138
- style: l,
1167
+ style: c,
1139
1168
  children: e
1140
1169
  }
1141
1170
  );
1142
1171
  }
1143
- function Ht({
1172
+ function Wt({
1144
1173
  value: e,
1145
1174
  onChange: t,
1146
1175
  options: r,
1147
1176
  placeholder: n,
1148
- disabled: a,
1177
+ disabled: i,
1149
1178
  style: o
1150
1179
  }) {
1151
- return /* @__PURE__ */ i(
1180
+ return /* @__PURE__ */ a(
1152
1181
  Te,
1153
1182
  {
1154
1183
  value: e,
1155
1184
  data: r,
1156
1185
  placeholder: n,
1157
- disabled: a,
1186
+ disabled: i,
1158
1187
  allowDeselect: !1,
1159
- onChange: (l) => {
1160
- l !== null && (t == null || t(l));
1188
+ onChange: (c) => {
1189
+ c !== null && (t == null || t(c));
1161
1190
  },
1162
1191
  style: o
1163
1192
  }
@@ -1168,81 +1197,81 @@ function _t({
1168
1197
  onChange: t,
1169
1198
  disabled: r,
1170
1199
  label: n,
1171
- style: a
1200
+ style: i
1172
1201
  }) {
1173
- return /* @__PURE__ */ i(
1202
+ return /* @__PURE__ */ a(
1174
1203
  Se,
1175
1204
  {
1176
1205
  checked: e,
1177
1206
  disabled: r,
1178
1207
  label: n,
1179
1208
  onChange: (o) => t == null ? void 0 : t(o.currentTarget.checked),
1180
- style: a
1209
+ style: i
1181
1210
  }
1182
1211
  );
1183
1212
  }
1184
- function Wt({
1213
+ function Gt({
1185
1214
  checked: e,
1186
1215
  onChange: t,
1187
1216
  disabled: r,
1188
1217
  size: n = "sm",
1189
- style: a
1218
+ style: i
1190
1219
  }) {
1191
- return /* @__PURE__ */ i(
1192
- $e,
1220
+ return /* @__PURE__ */ a(
1221
+ Be,
1193
1222
  {
1194
1223
  checked: e,
1195
1224
  disabled: r,
1196
1225
  size: n === "sm" ? "sm" : "md",
1197
1226
  onChange: (o) => t == null ? void 0 : t(o.currentTarget.checked),
1198
- style: a
1227
+ style: i
1199
1228
  }
1200
1229
  );
1201
1230
  }
1202
- function Gt({
1231
+ function jt({
1203
1232
  value: e,
1204
1233
  onChange: t,
1205
1234
  placeholder: r,
1206
1235
  disabled: n,
1207
- type: a,
1236
+ type: i,
1208
1237
  style: o
1209
1238
  }) {
1210
- return /* @__PURE__ */ i(
1211
- Ae,
1239
+ return /* @__PURE__ */ a(
1240
+ Me,
1212
1241
  {
1213
1242
  value: e,
1214
1243
  placeholder: r,
1215
1244
  disabled: n,
1216
- type: a,
1217
- onChange: (l) => t == null ? void 0 : t(l.currentTarget.value),
1245
+ type: i,
1246
+ onChange: (c) => t == null ? void 0 : t(c.currentTarget.value),
1218
1247
  style: o
1219
1248
  }
1220
1249
  );
1221
1250
  }
1222
- function jt({
1251
+ function Ot({
1223
1252
  value: e,
1224
1253
  onChange: t,
1225
1254
  placeholder: r,
1226
1255
  disabled: n,
1227
- rows: a = 3,
1256
+ rows: i = 3,
1228
1257
  style: o
1229
1258
  }) {
1230
- return /* @__PURE__ */ i(
1231
- Me,
1259
+ return /* @__PURE__ */ a(
1260
+ Ae,
1232
1261
  {
1233
1262
  value: e,
1234
1263
  placeholder: r,
1235
1264
  disabled: n,
1236
1265
  autosize: !0,
1237
- minRows: a,
1238
- onChange: (l) => t == null ? void 0 : t(l.currentTarget.value),
1266
+ minRows: i,
1267
+ onChange: (c) => t == null ? void 0 : t(c.currentTarget.value),
1239
1268
  style: o
1240
1269
  }
1241
1270
  );
1242
1271
  }
1243
- function Ot({ color: e, style: t }) {
1244
- const r = g();
1245
- return /* @__PURE__ */ i(
1272
+ function Kt({ color: e, style: t }) {
1273
+ const r = m();
1274
+ return /* @__PURE__ */ a(
1246
1275
  "span",
1247
1276
  {
1248
1277
  style: {
@@ -1257,18 +1286,18 @@ function Ot({ color: e, style: t }) {
1257
1286
  }
1258
1287
  );
1259
1288
  }
1260
- function Kt({
1289
+ function Xt({
1261
1290
  segments: e,
1262
1291
  total: t,
1263
1292
  topLeftLabel: r,
1264
1293
  topRightLabel: n,
1265
- style: a
1294
+ style: i
1266
1295
  }) {
1267
- const o = g(), l = t > 0 ? t : 1, f = e.reduce(
1268
- (c, u) => c + (Number.isFinite(u.value) && u.value > 0 ? u.value : 0),
1296
+ const o = m(), c = t > 0 ? t : 1, f = e.reduce(
1297
+ (l, u) => l + (Number.isFinite(u.value) && u.value > 0 ? u.value : 0),
1269
1298
  0
1270
- ), d = Math.max(0, l - f);
1271
- return /* @__PURE__ */ y("div", { style: a, children: [
1299
+ ), d = Math.max(0, c - f);
1300
+ return /* @__PURE__ */ y("div", { style: i, children: [
1272
1301
  (r != null || n != null) && /* @__PURE__ */ y(
1273
1302
  "div",
1274
1303
  {
@@ -1280,31 +1309,31 @@ function Kt({
1280
1309
  marginBottom: 6
1281
1310
  },
1282
1311
  children: [
1283
- /* @__PURE__ */ i("span", { children: r }),
1284
- /* @__PURE__ */ i("span", { children: n })
1312
+ /* @__PURE__ */ a("span", { children: r }),
1313
+ /* @__PURE__ */ a("span", { children: n })
1285
1314
  ]
1286
1315
  }
1287
1316
  ),
1288
1317
  /* @__PURE__ */ y("div", { style: { display: "flex", gap: 2, height: 8 }, children: [
1289
- e.map((c, u) => {
1290
- const m = Number.isFinite(c.value) && c.value > 0 ? c.value : 0, v = o.category[c.color ?? te[u % te.length]];
1291
- return /* @__PURE__ */ i(
1318
+ e.map((l, u) => {
1319
+ const g = Number.isFinite(l.value) && l.value > 0 ? l.value : 0, v = o.category[l.color ?? te[u % te.length]];
1320
+ return /* @__PURE__ */ a(
1292
1321
  "div",
1293
1322
  {
1294
1323
  style: {
1295
- width: `${m / l * 100}%`,
1324
+ width: `${g / c * 100}%`,
1296
1325
  background: v,
1297
1326
  borderRadius: 3
1298
1327
  }
1299
1328
  },
1300
- c.id
1329
+ l.id
1301
1330
  );
1302
1331
  }),
1303
- d > 0 && /* @__PURE__ */ i(
1332
+ d > 0 && /* @__PURE__ */ a(
1304
1333
  "div",
1305
1334
  {
1306
1335
  style: {
1307
- width: `${d / l * 100}%`,
1336
+ width: `${d / c * 100}%`,
1308
1337
  background: o.fill.tertiary,
1309
1338
  borderRadius: 3
1310
1339
  }
@@ -1313,21 +1342,21 @@ function Kt({
1313
1342
  ] })
1314
1343
  ] });
1315
1344
  }
1316
- function Xt({
1345
+ function Yt({
1317
1346
  title: e,
1318
1347
  leading: t,
1319
1348
  count: r,
1320
1349
  trailing: n,
1321
- children: a,
1350
+ children: i,
1322
1351
  defaultOpen: o = !1,
1323
- style: l
1352
+ style: c
1324
1353
  }) {
1325
- const f = g(), [d, c] = B(o);
1326
- return /* @__PURE__ */ y("div", { style: l, children: [
1354
+ const f = m(), [d, l] = $(o);
1355
+ return /* @__PURE__ */ y("div", { style: c, children: [
1327
1356
  /* @__PURE__ */ y(
1328
1357
  "div",
1329
1358
  {
1330
- onClick: () => c((u) => !u),
1359
+ onClick: () => l((u) => !u),
1331
1360
  style: {
1332
1361
  display: "flex",
1333
1362
  alignItems: "center",
@@ -1339,71 +1368,71 @@ function Xt({
1339
1368
  fontSize: 14
1340
1369
  },
1341
1370
  children: [
1342
- /* @__PURE__ */ i(he, { expanded: d }),
1371
+ /* @__PURE__ */ a(he, { expanded: d }),
1343
1372
  t,
1344
- /* @__PURE__ */ i("span", { style: { fontWeight: 500 }, children: e }),
1345
- r != null && /* @__PURE__ */ i("span", { style: { color: f.text.tertiary, fontSize: 12 }, children: r }),
1346
- /* @__PURE__ */ i("span", { style: { flex: 1 } }),
1347
- n != null && /* @__PURE__ */ i("span", { style: { color: f.text.tertiary }, children: n })
1373
+ /* @__PURE__ */ a("span", { style: { fontWeight: 500 }, children: e }),
1374
+ r != null && /* @__PURE__ */ a("span", { style: { color: f.text.tertiary, fontSize: 12 }, children: r }),
1375
+ /* @__PURE__ */ a("span", { style: { flex: 1 } }),
1376
+ n != null && /* @__PURE__ */ a("span", { style: { color: f.text.tertiary }, children: n })
1348
1377
  ]
1349
1378
  }
1350
1379
  ),
1351
- d && /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingBottom: 4 }, children: a })
1380
+ d && /* @__PURE__ */ a("div", { style: { paddingLeft: 18, paddingBottom: 4 }, children: i })
1352
1381
  ] });
1353
1382
  }
1354
1383
  export {
1355
- dt as BarChart,
1384
+ ut as BarChart,
1356
1385
  Rt as Button,
1357
- It as Callout,
1386
+ zt as Callout,
1358
1387
  $t as Card,
1359
- Ft as CardBody,
1360
- Bt as CardHeader,
1388
+ Dt as CardBody,
1389
+ Ft as CardHeader,
1361
1390
  _t as Checkbox,
1362
- Ct as Code,
1363
- Xt as CollapsibleSection,
1364
- ht as DiffStats,
1365
- pt as DiffView,
1366
- At as Divider,
1391
+ wt as Code,
1392
+ Yt as CollapsibleSection,
1393
+ pt as DiffStats,
1394
+ yt as DiffView,
1395
+ Bt as Divider,
1367
1396
  Mt as Grid,
1368
- vt as H1,
1369
- bt as H2,
1370
- St as H3,
1371
- zt as IconButton,
1372
- lt as LineChart,
1373
- wt as Link,
1374
- ut as PieChart,
1375
- Dt as Pill,
1376
- Tt as Row,
1377
- Ht as Select,
1378
- Pt as Spacer,
1379
- Lt as Stack,
1397
+ bt as H1,
1398
+ St as H2,
1399
+ kt as H3,
1400
+ Ht as IconButton,
1401
+ dt as LineChart,
1402
+ Lt as Link,
1403
+ ft as PieChart,
1404
+ It as Pill,
1405
+ Pt as Row,
1406
+ Wt as Select,
1407
+ At as Spacer,
1408
+ Tt as Stack,
1380
1409
  Et as Stat,
1381
- Ot as Swatch,
1410
+ Kt as Swatch,
1382
1411
  Nt as Table,
1383
- kt as Text,
1384
- jt as TextArea,
1385
- Gt as TextInput,
1386
- et as TodoList,
1387
- yt as TodoListCard,
1388
- Wt as Toggle,
1389
- Kt as UsageBar,
1390
- er as canvasPaletteDark,
1391
- tr as canvasPaletteGrokDark,
1392
- rr as canvasPaletteGrokLight,
1393
- nr as canvasPaletteLight,
1394
- or as canvasTokens,
1395
- ar as canvasTokensLight,
1396
- ir as categoryPaletteDark,
1397
- sr as categoryPaletteLight,
1412
+ Ct as Text,
1413
+ Ot as TextArea,
1414
+ jt as TextInput,
1415
+ tt as TodoList,
1416
+ mt as TodoListCard,
1417
+ Gt as Toggle,
1418
+ Xt as UsageBar,
1419
+ tr as canvasPaletteDark,
1420
+ rr as canvasPaletteGrokDark,
1421
+ nr as canvasPaletteGrokLight,
1422
+ or as canvasPaletteLight,
1423
+ ar as canvasTokens,
1424
+ ir as canvasTokensLight,
1425
+ sr as categoryPaletteDark,
1426
+ lr as categoryPaletteLight,
1398
1427
  cr as colorPalette,
1399
- ft as computeDAGLayout,
1400
- xt as mergeStyle,
1428
+ ht as computeDAGLayout,
1429
+ vt as mergeStyle,
1401
1430
  te as usageColorSequence,
1402
- mt as useCanvasAction,
1431
+ xt as useCanvasAction,
1403
1432
  gt as useCanvasState,
1404
- Vt as useEffect,
1405
- g as useHostTheme,
1406
- Zt as useMemo,
1407
- Jt as useRef,
1408
- Ut as useState
1433
+ Zt as useEffect,
1434
+ m as useHostTheme,
1435
+ Jt as useMemo,
1436
+ Ut as useRef,
1437
+ Qt as useState
1409
1438
  };