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