@editora/ui-core 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/ElementBase.d.ts.map +1 -1
  2. package/dist/__tests__/setup.d.ts +8 -0
  3. package/dist/__tests__/setup.d.ts.map +1 -0
  4. package/dist/components/date-time-utils.d.ts.map +1 -1
  5. package/dist/components/ui-anchor.d.ts +7 -0
  6. package/dist/components/ui-anchor.d.ts.map +1 -1
  7. package/dist/components/ui-animated-beam.d.ts.map +1 -1
  8. package/dist/components/ui-calendar.d.ts.map +1 -1
  9. package/dist/components/ui-data-table.d.ts.map +1 -1
  10. package/dist/components/ui-date-picker.d.ts +3 -0
  11. package/dist/components/ui-date-picker.d.ts.map +1 -1
  12. package/dist/components/ui-date-range-picker.d.ts +3 -0
  13. package/dist/components/ui-date-range-picker.d.ts.map +1 -1
  14. package/dist/components/ui-date-range-time-picker.d.ts.map +1 -1
  15. package/dist/components/ui-date-time-picker.d.ts.map +1 -1
  16. package/dist/components/ui-drawer.d.ts.map +1 -1
  17. package/dist/components/ui-form.d.ts +0 -1
  18. package/dist/components/ui-form.d.ts.map +1 -1
  19. package/dist/components/ui-icon-cloud.d.ts +68 -0
  20. package/dist/components/ui-icon-cloud.d.ts.map +1 -0
  21. package/dist/components/ui-listbox.d.ts +3 -0
  22. package/dist/components/ui-listbox.d.ts.map +1 -1
  23. package/dist/components/ui-masonry-grid.d.ts +12 -0
  24. package/dist/components/ui-masonry-grid.d.ts.map +1 -0
  25. package/dist/components/ui-number-ticker.d.ts +98 -0
  26. package/dist/components/ui-number-ticker.d.ts.map +1 -0
  27. package/dist/components/ui-odometer.d.ts +26 -0
  28. package/dist/components/ui-odometer.d.ts.map +1 -0
  29. package/dist/components/ui-placement-grid.d.ts +52 -0
  30. package/dist/components/ui-placement-grid.d.ts.map +1 -0
  31. package/dist/components/ui-portal.d.ts +1 -0
  32. package/dist/components/ui-portal.d.ts.map +1 -1
  33. package/dist/components/ui-sidebar.d.ts.map +1 -1
  34. package/dist/components/ui-sortable.d.ts +192 -0
  35. package/dist/components/ui-sortable.d.ts.map +1 -0
  36. package/dist/components/ui-spinning-text.d.ts +25 -0
  37. package/dist/components/ui-spinning-text.d.ts.map +1 -0
  38. package/dist/components/ui-tooltip.d.ts.map +1 -1
  39. package/dist/components/ui-transfer-list.d.ts +5 -0
  40. package/dist/components/ui-transfer-list.d.ts.map +1 -1
  41. package/dist/index.cjs.js +2778 -938
  42. package/dist/index.d.ts +15 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.esm.js +10845 -9069
  45. package/dist/portal.d.ts.map +1 -1
  46. package/dist/runtime-3cc1c386.mjs +2065 -0
  47. package/dist/runtime-41717c1e.js +1 -0
  48. package/dist/runtime.cjs.js +1 -0
  49. package/dist/runtime.d.ts +9 -0
  50. package/dist/runtime.d.ts.map +1 -0
  51. package/dist/runtime.esm.js +25 -0
  52. package/dist/sortable-06a3bd6c.js +855 -0
  53. package/dist/sortable-23bf110b.mjs +2254 -0
  54. package/dist/sortable.cjs.js +1 -0
  55. package/dist/sortable.d.ts +4 -0
  56. package/dist/sortable.d.ts.map +1 -0
  57. package/dist/sortable.esm.js +4 -0
  58. package/dist/theme.d.ts +1 -1
  59. package/dist/theme.d.ts.map +1 -1
  60. package/package.json +14 -1
@@ -0,0 +1,2065 @@
1
+ function ae(e = "ui-portal-root") {
2
+ if (typeof document > "u")
3
+ return null;
4
+ let a = document.getElementById(e);
5
+ return a || (a = document.createElement("div"), a.id = e, a.style.position = "fixed", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "0", a.style.pointerEvents = "none", a.style.zIndex = "var(--ui-portal-z, 1600)", document.body.appendChild(a)), a.style.zIndex || (a.style.zIndex = "var(--ui-portal-z, 1600)"), a;
6
+ }
7
+ function Va(e, a, i = "top") {
8
+ const n = typeof i == "string" ? { placement: i } : i, r = n.placement || "top", t = typeof n.offset == "number" ? n.offset : 8, l = !!n.shift, s = e.getBoundingClientRect(), p = a.getBoundingClientRect();
9
+ let c = 0, d = 0;
10
+ r === "top" ? (c = s.top - p.height - t, d = s.left + (s.width - p.width) / 2) : r === "bottom" ? (c = s.bottom + t, d = s.left + (s.width - p.width) / 2) : r === "left" ? (c = s.top + (s.height - p.height) / 2, d = s.left - p.width - t) : (c = s.top + (s.height - p.height) / 2, d = s.right + t);
11
+ const y = s.left + s.width / 2, x = s.top + s.height / 2, _ = Math.round(y - d), w = Math.round(x - c);
12
+ if (l) {
13
+ const m = window.innerWidth || document.documentElement.clientWidth, b = window.innerHeight || document.documentElement.clientHeight;
14
+ if (r === "top" || r === "bottom") {
15
+ const h = m - p.width - 4;
16
+ d < 4 && (d = Math.min(h, d + (4 - d))), d > h && (d = Math.max(4, d - (d - h)));
17
+ } else {
18
+ const h = b - p.height - 4;
19
+ c < 4 && (c = Math.min(h, c + (4 - c))), c > h && (c = Math.max(4, c - (c - h)));
20
+ }
21
+ }
22
+ return { top: c, left: d, placement: r, x: _, y: w };
23
+ }
24
+ function ee(e, a, i) {
25
+ let n = null, r = null, t = null, l = 0;
26
+ const s = [], p = () => {
27
+ l || (l = requestAnimationFrame(() => {
28
+ l = 0, i();
29
+ }));
30
+ }, c = () => p();
31
+ if (typeof ResizeObserver < "u") {
32
+ n = new ResizeObserver(p), r = new ResizeObserver(p);
33
+ try {
34
+ n.observe(e);
35
+ } catch {
36
+ }
37
+ try {
38
+ r.observe(a);
39
+ } catch {
40
+ }
41
+ }
42
+ if (typeof MutationObserver < "u") {
43
+ t = new MutationObserver(p);
44
+ try {
45
+ t.observe(e, { attributes: !0, childList: !1, subtree: !1 });
46
+ } catch {
47
+ }
48
+ }
49
+ return window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), s.push(() => window.removeEventListener("scroll", c, !0)), s.push(() => window.removeEventListener("resize", c)), s.push(() => {
50
+ n && n.disconnect(), n = null;
51
+ }), s.push(() => {
52
+ r && r.disconnect(), r = null;
53
+ }), s.push(() => {
54
+ t && t.disconnect(), t = null;
55
+ }), s.push(() => {
56
+ l && (cancelAnimationFrame(l), l = 0);
57
+ }), () => s.forEach((d) => {
58
+ try {
59
+ d();
60
+ } catch {
61
+ }
62
+ });
63
+ }
64
+ function he(e, a, i = "top") {
65
+ const n = typeof i == "string" ? { placement: i } : i, r = n.placement || "top", t = typeof n.offset == "number" ? n.offset : 8, l = n.flip !== !1, s = !!n.shift, p = ae();
66
+ if (!p)
67
+ return;
68
+ a.style.position = "absolute", a.style.pointerEvents = "auto", p.appendChild(a);
69
+ let c = () => {
70
+ };
71
+ function d(x, _, w) {
72
+ const m = a.querySelector(".arrow");
73
+ if (!m)
74
+ return;
75
+ const b = e.getBoundingClientRect(), g = b.left + b.width / 2, h = b.top + b.height / 2;
76
+ if (w === "top" || w === "bottom") {
77
+ const S = g - _, C = 8, k = a.offsetWidth - 8, z = Math.max(C, Math.min(k, S));
78
+ m.style.left = `${Math.round(z)}px`, m.style.top = "";
79
+ } else {
80
+ const S = h - x, C = 8, k = a.offsetHeight - 8, z = Math.max(C, Math.min(k, S));
81
+ m.style.top = `${Math.round(z)}px`, m.style.left = "";
82
+ }
83
+ }
84
+ function y() {
85
+ var b;
86
+ if (e && typeof e.getBoundingClientRect == "function" && e instanceof HTMLElement) {
87
+ const g = e, h = (b = g.getRootNode) == null ? void 0 : b.call(g), S = h instanceof ShadowRoot ? h.host : null, C = g.isConnected || document.body.contains(g) || (S ? document.body.contains(S) : !1), k = window.getComputedStyle(g), z = k.display !== "none" && k.visibility !== "hidden" && parseFloat(k.opacity || "1") > 0;
88
+ if (!C || !z) {
89
+ try {
90
+ a.parentElement && a.parentElement.removeChild(a);
91
+ } catch {
92
+ }
93
+ c();
94
+ return;
95
+ }
96
+ }
97
+ const x = Va(e, a, { placement: r, offset: t, shift: s }), _ = window.innerWidth || document.documentElement.clientWidth, w = window.innerHeight || document.documentElement.clientHeight;
98
+ let m = x;
99
+ l && (x.top < 0 && r === "top" || x.top + a.offsetHeight > w && r === "bottom") && (m = Va(e, a, { placement: r === "top" ? "bottom" : "top", offset: t, shift: s })), m.left < 4 && (m.left = 4), m.left + a.offsetWidth > _ - 4 && (m.left = _ - a.offsetWidth - 4), m.top < 4 && (m.top = 4), m.top + a.offsetHeight > w - 4 && (m.top = w - a.offsetHeight - 4), a.style.top = `${Math.round(m.top)}px`, a.style.left = `${Math.round(m.left)}px`, d(m.top, m.left, m.placement), a.setAttribute("data-placement", m.placement);
100
+ }
101
+ return y(), c = ee(e, a, y), () => {
102
+ try {
103
+ a.parentElement && a.parentElement.removeChild(a);
104
+ } catch {
105
+ }
106
+ c();
107
+ };
108
+ }
109
+ function ja() {
110
+ return typeof window < "u" && typeof document < "u";
111
+ }
112
+ function ne(e) {
113
+ return e ? typeof e == "string" ? e : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again." : "Something went wrong. Please try again.";
114
+ }
115
+ function ie(e) {
116
+ return e === "replace" || e === "stack" ? e : "queue";
117
+ }
118
+ function Ua(e) {
119
+ return `ui-alert-dialog-${e}`;
120
+ }
121
+ function te(e, a) {
122
+ var r, t;
123
+ const i = e.kind === "alert" && a.action === "cancel" ? "dismiss" : a.action, n = (r = e.dialog) == null ? void 0 : r.getChecked();
124
+ if (e.kind === "prompt") {
125
+ const l = ((t = e.dialog) == null ? void 0 : t.getInputValue()) ?? e.value ?? "";
126
+ return {
127
+ id: e.id,
128
+ action: i,
129
+ value: l,
130
+ checked: n,
131
+ source: a.source,
132
+ reason: a.reason
133
+ };
134
+ }
135
+ return {
136
+ id: e.id,
137
+ action: i,
138
+ value: e.value,
139
+ checked: n,
140
+ source: a.source,
141
+ reason: a.reason
142
+ };
143
+ }
144
+ function ka(e, a, i) {
145
+ var n, r, t;
146
+ return e.kind === "prompt" ? {
147
+ id: e.id,
148
+ action: "dismiss",
149
+ value: ((n = e.dialog) == null ? void 0 : n.getInputValue()) ?? e.value ?? "",
150
+ checked: (r = e.dialog) == null ? void 0 : r.getChecked(),
151
+ source: a,
152
+ reason: i
153
+ } : {
154
+ id: e.id,
155
+ action: "dismiss",
156
+ value: e.value,
157
+ checked: (t = e.dialog) == null ? void 0 : t.getChecked(),
158
+ source: a,
159
+ reason: i
160
+ };
161
+ }
162
+ function oe(e) {
163
+ return e === "esc" || e === "backdrop" || e === "close-icon" || e === "abort" || e === "unmount" || e === "replace" || e === "programmatic" ? e : "abort";
164
+ }
165
+ class re {
166
+ constructor(a) {
167
+ this._container = null, this._ownsContainer = !1, this._queue = [], this._active = [], this._disposed = !1, this._seed = 0, this._defaults = {}, this._container = a ?? null;
168
+ }
169
+ setContainer(a) {
170
+ this._container = a, this._ownsContainer = !1;
171
+ }
172
+ setDefaults(a) {
173
+ this._defaults = a ? { ...a } : {};
174
+ }
175
+ alert(a = {}) {
176
+ return this._enqueue("alert", a);
177
+ }
178
+ confirm(a = {}) {
179
+ return this._enqueue("confirm", a);
180
+ }
181
+ prompt(a = {}) {
182
+ return this._enqueue("prompt", a);
183
+ }
184
+ destroy(a = "unmount") {
185
+ this._disposed = !0;
186
+ const i = [...this._active, ...this._queue];
187
+ this._queue = [];
188
+ for (const n of i)
189
+ this._settle(n, ka(n, a), !1);
190
+ this._active = [], this._ownsContainer && this._container && this._container.parentElement && this._container.parentElement.removeChild(this._container), this._container = null, this._ownsContainer = !1;
191
+ }
192
+ _enqueue(a, i) {
193
+ const n = this._mergeOptions(i);
194
+ if (!ja() || this._disposed) {
195
+ const l = {
196
+ id: n.id || Ua(++this._seed),
197
+ action: "dismiss",
198
+ source: "unmount"
199
+ };
200
+ return Promise.resolve(l);
201
+ }
202
+ const r = n.id || Ua(++this._seed), t = ie(n.mode);
203
+ return new Promise((l) => {
204
+ var p;
205
+ const s = {
206
+ id: r,
207
+ kind: a,
208
+ mode: t,
209
+ options: n,
210
+ settled: !1,
211
+ processing: !1,
212
+ resolve: l,
213
+ cleanup: []
214
+ };
215
+ if ((p = n.signal) != null && p.aborted) {
216
+ this._settle(s, ka(s, "abort"), !1);
217
+ return;
218
+ }
219
+ if (t === "replace") {
220
+ const c = this._active[this._active.length - 1];
221
+ c && this._settle(c, ka(c, "replace", "replace"), !1, !1), this._open(s);
222
+ return;
223
+ }
224
+ if (t === "stack") {
225
+ this._open(s);
226
+ return;
227
+ }
228
+ if (this._active.length > 0) {
229
+ this._queue.push(s);
230
+ return;
231
+ }
232
+ this._open(s);
233
+ });
234
+ }
235
+ _open(a) {
236
+ var p;
237
+ const i = this._ensureContainer();
238
+ if (!i) {
239
+ this._settle(a, ka(a, "unmount"), !1);
240
+ return;
241
+ }
242
+ const n = document.createElement("ui-alert-dialog");
243
+ a.dialog = n, a.checked = !!((p = a.options.checkbox) != null && p.defaultChecked);
244
+ const r = this._buildConfig(a);
245
+ n.dialogId = a.id, n.config = r;
246
+ const t = (c) => {
247
+ if (a.settled)
248
+ return;
249
+ const d = c.detail;
250
+ a.value = d == null ? void 0 : d.inputValue, a.checked = d == null ? void 0 : d.checked;
251
+ const y = this._validatePrompt(a);
252
+ if (y) {
253
+ c.preventDefault(), n.setError(y);
254
+ return;
255
+ }
256
+ if (!a.options.onConfirm) {
257
+ n.clearError();
258
+ return;
259
+ }
260
+ c.preventDefault(), a.processing = !0, n.state = "loading", n.clearError(), Promise.resolve(
261
+ a.options.onConfirm({
262
+ id: a.id,
263
+ value: a.value,
264
+ checked: a.checked,
265
+ dialog: n,
266
+ signal: a.options.signal
267
+ })
268
+ ).then(() => {
269
+ a.processing = !1, n.state = "idle", n.clearError(), a.settled || n.close("confirm");
270
+ }).catch((x) => {
271
+ a.processing = !1, n.state = "error", n.setError(ne(x));
272
+ });
273
+ }, l = () => {
274
+ a.settled || (a.value = n.getInputValue(), a.checked = n.getChecked(), n.state === "error" && n.clearError());
275
+ }, s = (c) => {
276
+ if (a.settled)
277
+ return;
278
+ const d = c.detail;
279
+ this._handleClose(a, d);
280
+ };
281
+ if (n.addEventListener("ui-confirm", t), n.addEventListener("ui-change", l), n.addEventListener("ui-close", s), a.cleanup.push(() => n.removeEventListener("ui-confirm", t)), a.cleanup.push(() => n.removeEventListener("ui-change", l)), a.cleanup.push(() => n.removeEventListener("ui-close", s)), a.options.signal) {
282
+ const c = () => {
283
+ a.settled || this._settle(a, ka(a, "abort"), !1);
284
+ };
285
+ a.options.signal.addEventListener("abort", c, { once: !0 }), a.cleanup.push(() => {
286
+ var d;
287
+ return (d = a.options.signal) == null ? void 0 : d.removeEventListener("abort", c);
288
+ });
289
+ }
290
+ this._active.push(a), i.appendChild(n), n.open = !0, this._updateStackZIndex();
291
+ }
292
+ _validatePrompt(a) {
293
+ var t;
294
+ if (a.kind !== "prompt")
295
+ return null;
296
+ const n = a.options.input, r = ((t = a.dialog) == null ? void 0 : t.getInputValue()) ?? a.value ?? "";
297
+ return n != null && n.required && !r.trim() ? "Please enter a value." : n != null && n.validate ? n.validate(r) : null;
298
+ }
299
+ _settle(a, i, n, r = !0) {
300
+ if (!a.settled) {
301
+ if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((t) => t !== a), this._queue = this._queue.filter((t) => t !== a), a.dialog) {
302
+ const t = a.dialog;
303
+ if (!n && t.open) {
304
+ const l = oe(i.source);
305
+ t.close("dismiss", l, i.reason);
306
+ }
307
+ t.parentElement && t.parentElement.removeChild(t);
308
+ }
309
+ a.resolve(i), this._updateStackZIndex(), !this._disposed && r && this._drainQueue();
310
+ }
311
+ }
312
+ _cleanupRequest(a) {
313
+ for (const i of a.cleanup.splice(0))
314
+ try {
315
+ i();
316
+ } catch {
317
+ }
318
+ }
319
+ _drainQueue() {
320
+ if (this._active.length > 0)
321
+ return;
322
+ const a = this._queue.shift();
323
+ a && this._open(a);
324
+ }
325
+ _buildConfig(a) {
326
+ var l, s, p;
327
+ const i = a.options, n = a.kind === "prompt", r = a.kind === "alert", t = n ? i.input : void 0;
328
+ return {
329
+ id: a.id,
330
+ title: i.title,
331
+ description: i.description,
332
+ confirmText: i.confirmText || (r ? "OK" : "Confirm"),
333
+ cancelText: i.cancelText || "Cancel",
334
+ loadingText: i.loadingText,
335
+ errorMessage: i.errorMessage,
336
+ dismissible: i.dismissible ?? !0,
337
+ closeOnEsc: i.closeOnEsc,
338
+ closeOnBackdrop: i.closeOnBackdrop,
339
+ lockWhileLoading: i.lockWhileLoading ?? !0,
340
+ role: i.role || "alertdialog",
341
+ tone: i.tone || (r ? "info" : n ? "neutral" : "warning"),
342
+ size: i.size || "md",
343
+ variant: i.variant || "surface",
344
+ radius: i.radius,
345
+ elevation: i.elevation || "low",
346
+ indicator: i.indicator || "line",
347
+ initialFocus: i.initialFocus,
348
+ ariaLabel: i.ariaLabel,
349
+ ariaLabelledby: i.ariaLabelledby,
350
+ ariaDescribedby: i.ariaDescribedby,
351
+ headless: i.headless,
352
+ showCancel: !r,
353
+ showClose: i.dismissible ?? !0,
354
+ input: {
355
+ enabled: n,
356
+ label: t == null ? void 0 : t.label,
357
+ placeholder: t == null ? void 0 : t.placeholder,
358
+ value: (t == null ? void 0 : t.defaultValue) || "",
359
+ required: t == null ? void 0 : t.required
360
+ },
361
+ checkbox: {
362
+ enabled: !!((l = i.checkbox) != null && l.enabled),
363
+ label: (s = i.checkbox) == null ? void 0 : s.label,
364
+ checked: (p = i.checkbox) == null ? void 0 : p.defaultChecked
365
+ }
366
+ };
367
+ }
368
+ _buildLifecycleContext(a) {
369
+ var i, n;
370
+ return {
371
+ id: a.id,
372
+ value: ((i = a.dialog) == null ? void 0 : i.getInputValue()) ?? a.value,
373
+ checked: ((n = a.dialog) == null ? void 0 : n.getChecked()) ?? a.checked,
374
+ dialog: a.dialog,
375
+ signal: a.options.signal
376
+ };
377
+ }
378
+ _handleClose(a, i) {
379
+ const n = te(a, i);
380
+ if (i.action === "cancel" && a.options.onCancel) {
381
+ Promise.resolve(a.options.onCancel(this._buildLifecycleContext(a))).finally(() => {
382
+ this._settle(a, n, !0);
383
+ });
384
+ return;
385
+ }
386
+ if (i.action === "dismiss" && a.options.onDismiss) {
387
+ Promise.resolve(
388
+ a.options.onDismiss({
389
+ ...this._buildLifecycleContext(a),
390
+ source: i.source || "programmatic",
391
+ reason: i.reason
392
+ })
393
+ ).finally(() => {
394
+ this._settle(a, n, !0);
395
+ });
396
+ return;
397
+ }
398
+ this._settle(a, n, !0);
399
+ }
400
+ _mergeOptions(a) {
401
+ const i = this._defaults;
402
+ return {
403
+ ...i,
404
+ ...a,
405
+ checkbox: {
406
+ ...i.checkbox || {},
407
+ ...a.checkbox || {}
408
+ }
409
+ };
410
+ }
411
+ _ensureContainer() {
412
+ if (!ja())
413
+ return null;
414
+ if (this._container && this._container.isConnected)
415
+ return this._container;
416
+ let a = document.querySelector('[data-ui-alert-dialog-host="true"]');
417
+ return a ? this._ownsContainer = !1 : (a = document.createElement("div"), a.setAttribute("data-ui-alert-dialog-host", "true"), a.style.position = "relative", a.style.zIndex = "1000", document.body.appendChild(a), this._ownsContainer = !0), this._container = a, a;
418
+ }
419
+ _updateStackZIndex() {
420
+ for (let a = 0; a < this._active.length; a += 1) {
421
+ const i = this._active[a];
422
+ i.dialog && (i.dialog.style.setProperty("--ui-alert-backdrop-z", String(1e3 + a * 2)), i.dialog.style.setProperty("--ui-alert-z", String(1001 + a * 2)));
423
+ }
424
+ }
425
+ }
426
+ let E = null;
427
+ function se(e = {}) {
428
+ return new re(e.container ?? null);
429
+ }
430
+ function Sa() {
431
+ return E || (E = se()), E;
432
+ }
433
+ function ge(e = {}) {
434
+ return Sa().alert(e);
435
+ }
436
+ function xe(e = {}) {
437
+ return Sa().confirm(e);
438
+ }
439
+ function be(e = {}) {
440
+ return Sa().prompt(e);
441
+ }
442
+ function ye(e = "programmatic") {
443
+ E && (E.destroy(e), E = null);
444
+ }
445
+ function Za() {
446
+ return typeof window < "u" && typeof document < "u";
447
+ }
448
+ function pe(e) {
449
+ return e === "replace" || e === "stack" ? e : "queue";
450
+ }
451
+ function Na(e) {
452
+ return `ui-dialog-${e}`;
453
+ }
454
+ function ce(e) {
455
+ return e ? typeof e == "string" ? e : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again." : "Something went wrong. Please try again.";
456
+ }
457
+ class le {
458
+ constructor(a) {
459
+ this._container = null, this._ownsContainer = !1, this._queue = [], this._active = [], this._disposed = !1, this._seed = 0, this._container = a ?? null;
460
+ }
461
+ setContainer(a) {
462
+ this._container = a, this._ownsContainer = !1;
463
+ }
464
+ open(a = {}) {
465
+ return this._enqueue(a);
466
+ }
467
+ confirm(a = {}) {
468
+ return this._enqueue({ ...a, showCancel: a.showCancel ?? !0 });
469
+ }
470
+ destroy(a = "unmount") {
471
+ this._disposed = !0;
472
+ const i = [...this._active, ...this._queue];
473
+ this._queue = [];
474
+ for (const n of i)
475
+ this._settle(n, {
476
+ id: n.id,
477
+ action: "dismiss",
478
+ source: a,
479
+ reason: a
480
+ }, !1);
481
+ this._active = [], this._ownsContainer && this._container && this._container.parentElement && this._container.parentElement.removeChild(this._container), this._container = null, this._ownsContainer = !1;
482
+ }
483
+ _enqueue(a) {
484
+ if (!Za() || this._disposed)
485
+ return Promise.resolve({
486
+ id: a.id || Na(++this._seed),
487
+ action: "dismiss",
488
+ source: "unmount"
489
+ });
490
+ const i = a.id || Na(++this._seed), n = pe(a.mode);
491
+ return new Promise((r) => {
492
+ var l;
493
+ const t = {
494
+ id: i,
495
+ mode: n,
496
+ options: a,
497
+ settled: !1,
498
+ resolve: r,
499
+ cleanup: []
500
+ };
501
+ if ((l = a.signal) != null && l.aborted) {
502
+ this._settle(t, { id: i, action: "dismiss", source: "abort" }, !1);
503
+ return;
504
+ }
505
+ if (n === "replace") {
506
+ const s = this._active[this._active.length - 1];
507
+ s && this._settle(s, { id: s.id, action: "dismiss", source: "replace", reason: "replace" }, !1, !1), this._open(t);
508
+ return;
509
+ }
510
+ if (n === "stack") {
511
+ this._open(t);
512
+ return;
513
+ }
514
+ if (this._active.length > 0) {
515
+ this._queue.push(t);
516
+ return;
517
+ }
518
+ this._open(t);
519
+ });
520
+ }
521
+ _open(a) {
522
+ const i = this._ensureContainer();
523
+ if (!i) {
524
+ this._settle(a, {
525
+ id: a.id,
526
+ action: "dismiss",
527
+ source: "unmount"
528
+ }, !1);
529
+ return;
530
+ }
531
+ const n = document.createElement("ui-dialog");
532
+ a.dialog = n;
533
+ const r = this._buildConfig(a.options, a.id);
534
+ n.dialogId = a.id, n.config = r;
535
+ const t = (s) => {
536
+ if (a.settled)
537
+ return;
538
+ const p = s.detail;
539
+ if (a.resultFormData = p == null ? void 0 : p.formData, !a.options.onSubmit) {
540
+ n.clearError();
541
+ return;
542
+ }
543
+ s.preventDefault(), n.state = "loading", n.clearError(), Promise.resolve(
544
+ a.options.onSubmit({
545
+ id: a.id,
546
+ dialog: n,
547
+ signal: a.options.signal,
548
+ formData: p == null ? void 0 : p.formData
549
+ })
550
+ ).then(() => {
551
+ a.settled || (n.state = "idle", n.clearError(), n.close("submit"));
552
+ }).catch((c) => {
553
+ n.state = "error", n.setError(ce(c));
554
+ });
555
+ }, l = (s) => {
556
+ if (a.settled)
557
+ return;
558
+ const p = s.detail;
559
+ this._settle(a, {
560
+ id: a.id,
561
+ action: p.action,
562
+ source: p.source,
563
+ reason: p.reason,
564
+ formData: a.resultFormData
565
+ }, !0);
566
+ };
567
+ if (n.addEventListener("ui-submit", t), n.addEventListener("ui-close", l), a.cleanup.push(() => n.removeEventListener("ui-submit", t)), a.cleanup.push(() => n.removeEventListener("ui-close", l)), a.options.signal) {
568
+ const s = () => {
569
+ a.settled || this._settle(a, {
570
+ id: a.id,
571
+ action: "dismiss",
572
+ source: "abort"
573
+ }, !1);
574
+ };
575
+ a.options.signal.addEventListener("abort", s, { once: !0 }), a.cleanup.push(() => {
576
+ var p;
577
+ return (p = a.options.signal) == null ? void 0 : p.removeEventListener("abort", s);
578
+ });
579
+ }
580
+ this._active.push(a), i.appendChild(n), n.openDialog(), this._updateStackZIndex();
581
+ }
582
+ _settle(a, i, n, r = !0) {
583
+ if (!a.settled) {
584
+ if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((t) => t !== a), this._queue = this._queue.filter((t) => t !== a), a.dialog) {
585
+ const t = a.dialog;
586
+ !n && t.open && t.close("dismiss", i.source || "abort", i.reason), t.parentElement && t.parentElement.removeChild(t);
587
+ }
588
+ a.resolve(i), this._updateStackZIndex(), !this._disposed && r && this._drainQueue();
589
+ }
590
+ }
591
+ _cleanupRequest(a) {
592
+ for (const i of a.cleanup.splice(0))
593
+ try {
594
+ i();
595
+ } catch {
596
+ }
597
+ }
598
+ _drainQueue() {
599
+ if (this._active.length > 0)
600
+ return;
601
+ const a = this._queue.shift();
602
+ a && this._open(a);
603
+ }
604
+ _buildConfig(a, i) {
605
+ return {
606
+ id: i,
607
+ title: a.title,
608
+ description: a.description,
609
+ submitText: a.submitText || "Submit",
610
+ cancelText: a.cancelText || "Cancel",
611
+ loadingText: a.loadingText,
612
+ errorMessage: a.errorMessage,
613
+ dismissible: a.dismissible ?? !0,
614
+ closeOnOverlay: a.closeOnOverlay,
615
+ closeOnEsc: a.closeOnEsc,
616
+ lockWhileLoading: a.lockWhileLoading ?? !0,
617
+ role: a.role || "dialog",
618
+ size: a.size || "md",
619
+ initialFocus: a.initialFocus,
620
+ ariaLabel: a.ariaLabel,
621
+ ariaLabelledby: a.ariaLabelledby,
622
+ ariaDescribedby: a.ariaDescribedby,
623
+ headless: a.headless,
624
+ showCancel: a.showCancel ?? !0,
625
+ showClose: a.showClose ?? a.dismissible ?? !0
626
+ };
627
+ }
628
+ _ensureContainer() {
629
+ if (!Za())
630
+ return null;
631
+ if (this._container && this._container.isConnected)
632
+ return this._container;
633
+ let a = document.querySelector('[data-ui-dialog-host="true"]');
634
+ return a ? this._ownsContainer = !1 : (a = document.createElement("div"), a.setAttribute("data-ui-dialog-host", "true"), a.style.position = "relative", a.style.zIndex = "1200", document.body.appendChild(a), this._ownsContainer = !0), this._container = a, a;
635
+ }
636
+ _updateStackZIndex() {
637
+ for (let a = 0; a < this._active.length; a += 1) {
638
+ const i = this._active[a];
639
+ i.dialog && (i.dialog.style.setProperty("--ui-dialog-backdrop-z", String(1200 + a * 2)), i.dialog.style.setProperty("--ui-dialog-z", String(1201 + a * 2)));
640
+ }
641
+ }
642
+ }
643
+ let M = null;
644
+ function de(e = {}) {
645
+ return new le(e.container ?? null);
646
+ }
647
+ function Xa() {
648
+ return M || (M = de()), M;
649
+ }
650
+ function we(e = {}) {
651
+ return Xa().open(e);
652
+ }
653
+ function ve(e = {}) {
654
+ return Xa().confirm(e);
655
+ }
656
+ function ke(e = "programmatic") {
657
+ M && (M.destroy(e), M = null);
658
+ }
659
+ const Ya = {
660
+ 1: "#0000000d",
661
+ 2: "#0000001a",
662
+ 3: "#00000026",
663
+ 4: "#0003",
664
+ 5: "#0000004d",
665
+ 6: "#0006",
666
+ 7: "#00000080",
667
+ 8: "#0009",
668
+ 9: "#000000b3",
669
+ 10: "#000c",
670
+ 11: "#000000e6",
671
+ 12: "#000000f2"
672
+ }, Ga = {
673
+ 1: "#ffffff0d",
674
+ 2: "#ffffff1a",
675
+ 3: "#ffffff26",
676
+ 4: "#fff3",
677
+ 5: "#ffffff4d",
678
+ 6: "#fff6",
679
+ 7: "#ffffff80",
680
+ 8: "#fff9",
681
+ 9: "#ffffffb3",
682
+ 10: "#fffc",
683
+ 11: "#ffffffe6",
684
+ 12: "#fffffff2"
685
+ }, v = {
686
+ amber: {
687
+ light: {
688
+ scale: {
689
+ 1: "#fefdfb",
690
+ 2: "#fefbe9",
691
+ 3: "#fff7c2",
692
+ 4: "#ffee9c",
693
+ 5: "#fbe577",
694
+ 6: "#f3d673",
695
+ 7: "#e9c162",
696
+ 8: "#e2a336",
697
+ 9: "#ffc53d",
698
+ 10: "#ffba18",
699
+ 11: "#ab6400",
700
+ 12: "#4f3422"
701
+ },
702
+ alphaScale: {
703
+ 1: "#c0800004",
704
+ 2: "#f4d10016",
705
+ 3: "#ffde003d",
706
+ 4: "#ffd40063",
707
+ 5: "#f8cf0088",
708
+ 6: "#eab5008c",
709
+ 7: "#dc9b009d",
710
+ 8: "#da8a00c9",
711
+ 9: "#ffb300c2",
712
+ 10: "#ffb300e7",
713
+ 11: "#ab6400",
714
+ 12: "#341500dd"
715
+ },
716
+ contrast: "#21201c",
717
+ surface: "#fefae4cc",
718
+ indicator: "#ffc53d",
719
+ track: "#ffc53d"
720
+ },
721
+ dark: {
722
+ scale: {
723
+ 1: "#16120c",
724
+ 2: "#1d180f",
725
+ 3: "#302008",
726
+ 4: "#3f2700",
727
+ 5: "#4d3000",
728
+ 6: "#5c3d05",
729
+ 7: "#714f19",
730
+ 8: "#8f6424",
731
+ 9: "#ffc53d",
732
+ 10: "#ffd60a",
733
+ 11: "#ffca16",
734
+ 12: "#ffe7b3"
735
+ },
736
+ alphaScale: {
737
+ 1: "#e63c0006",
738
+ 2: "#fd9b000d",
739
+ 3: "#fa820022",
740
+ 4: "#fc820032",
741
+ 5: "#fd8b0041",
742
+ 6: "#fd9b0051",
743
+ 7: "#ffab2567",
744
+ 8: "#ffae3587",
745
+ 9: "#ffc53d",
746
+ 10: "#ffd60a",
747
+ 11: "#ffca16",
748
+ 12: "#ffe7b3"
749
+ },
750
+ contrast: "#21201c",
751
+ surface: "#271f1380",
752
+ indicator: "#ffc53d",
753
+ track: "#ffc53d"
754
+ }
755
+ },
756
+ blue: {
757
+ light: {
758
+ scale: {
759
+ 1: "#fbfdff",
760
+ 2: "#f4faff",
761
+ 3: "#e6f4fe",
762
+ 4: "#d5efff",
763
+ 5: "#c2e5ff",
764
+ 6: "#acd8fc",
765
+ 7: "#8ec8f6",
766
+ 8: "#5eb1ef",
767
+ 9: "#0090ff",
768
+ 10: "#0588f0",
769
+ 11: "#0d74ce",
770
+ 12: "#113264"
771
+ },
772
+ alphaScale: {
773
+ 1: "#0080ff04",
774
+ 2: "#008cff0b",
775
+ 3: "#008ff519",
776
+ 4: "#009eff2a",
777
+ 5: "#0093ff3d",
778
+ 6: "#0088f653",
779
+ 7: "#0083eb71",
780
+ 8: "#0084e6a1",
781
+ 9: "#0090ff",
782
+ 10: "#0086f0fa",
783
+ 11: "#006dcbf2",
784
+ 12: "#002359ee"
785
+ },
786
+ contrast: "#ffffff",
787
+ surface: "#f1f9ffcc",
788
+ indicator: "#0090ff",
789
+ track: "#0090ff"
790
+ },
791
+ dark: {
792
+ scale: {
793
+ 1: "#0d1520",
794
+ 2: "#111927",
795
+ 3: "#0d2847",
796
+ 4: "#003362",
797
+ 5: "#004074",
798
+ 6: "#104d87",
799
+ 7: "#205d9e",
800
+ 8: "#2870bd",
801
+ 9: "#0090ff",
802
+ 10: "#3b9eff",
803
+ 11: "#70b8ff",
804
+ 12: "#c2e6ff"
805
+ },
806
+ alphaScale: {
807
+ 1: "#004df211",
808
+ 2: "#1166fb18",
809
+ 3: "#0077ff3a",
810
+ 4: "#0075ff57",
811
+ 5: "#0081fd6b",
812
+ 6: "#0f89fd7f",
813
+ 7: "#2a91fe98",
814
+ 8: "#3094feb9",
815
+ 9: "#0090ff",
816
+ 10: "#3b9eff",
817
+ 11: "#70b8ff",
818
+ 12: "#c2e6ff"
819
+ },
820
+ contrast: "#ffffff",
821
+ surface: "#0f274380",
822
+ indicator: "#0090ff",
823
+ track: "#0090ff"
824
+ }
825
+ },
826
+ green: {
827
+ light: {
828
+ scale: {
829
+ 1: "#fbfefc",
830
+ 2: "#f4fbf6",
831
+ 3: "#e6f6eb",
832
+ 4: "#d6f1df",
833
+ 5: "#c4e8d1",
834
+ 6: "#adddc0",
835
+ 7: "#8eceaa",
836
+ 8: "#5bb98b",
837
+ 9: "#30a46c",
838
+ 10: "#2b9a66",
839
+ 11: "#218358",
840
+ 12: "#193b2d"
841
+ },
842
+ alphaScale: {
843
+ 1: "#00c04004",
844
+ 2: "#00a32f0b",
845
+ 3: "#00a43319",
846
+ 4: "#00a83829",
847
+ 5: "#019c393b",
848
+ 6: "#00963c52",
849
+ 7: "#00914071",
850
+ 8: "#00924ba4",
851
+ 9: "#008f4acf",
852
+ 10: "#008647d4",
853
+ 11: "#00713fde",
854
+ 12: "#002616e6"
855
+ },
856
+ contrast: "#ffffff",
857
+ surface: "#f1faf4cc",
858
+ indicator: "#30a46c",
859
+ track: "#30a46c"
860
+ },
861
+ dark: {
862
+ scale: {
863
+ 1: "#0e1512",
864
+ 2: "#121b17",
865
+ 3: "#132d21",
866
+ 4: "#113b29",
867
+ 5: "#174933",
868
+ 6: "#20573e",
869
+ 7: "#28684a",
870
+ 8: "#2f7c57",
871
+ 9: "#30a46c",
872
+ 10: "#33b074",
873
+ 11: "#3dd68c",
874
+ 12: "#b1f1cb"
875
+ },
876
+ alphaScale: {
877
+ 1: "#00de4505",
878
+ 2: "#29f99d0b",
879
+ 3: "#22ff991e",
880
+ 4: "#11ff9930",
881
+ 5: "#2bffa23f",
882
+ 6: "#44ffaa4d",
883
+ 7: "#50fdac5f",
884
+ 8: "#54ffad75",
885
+ 9: "#44ffa49f",
886
+ 10: "#43fea4ab",
887
+ 11: "#46fea5d4",
888
+ 12: "#bbffd7ef"
889
+ },
890
+ contrast: "#0f1a14",
891
+ surface: "#13281e80",
892
+ indicator: "#30a46c",
893
+ track: "#30a46c"
894
+ }
895
+ },
896
+ red: {
897
+ light: {
898
+ scale: {
899
+ 1: "#fffcfc",
900
+ 2: "#fff7f7",
901
+ 3: "#feebec",
902
+ 4: "#ffdbdc",
903
+ 5: "#ffcdce",
904
+ 6: "#fdbdbe",
905
+ 7: "#f4a9aa",
906
+ 8: "#eb8e90",
907
+ 9: "#e5484d",
908
+ 10: "#dc3e42",
909
+ 11: "#ce2c31",
910
+ 12: "#641723"
911
+ },
912
+ alphaScale: {
913
+ 1: "#ff000003",
914
+ 2: "#ff000008",
915
+ 3: "#f3000d14",
916
+ 4: "#ff000824",
917
+ 5: "#ff000632",
918
+ 6: "#f8000442",
919
+ 7: "#df000356",
920
+ 8: "#d2000571",
921
+ 9: "#db0007b7",
922
+ 10: "#d10005c1",
923
+ 11: "#c40006d3",
924
+ 12: "#55000de8"
925
+ },
926
+ contrast: "#ffffff",
927
+ surface: "#fff5f5cc",
928
+ indicator: "#e5484d",
929
+ track: "#e5484d"
930
+ },
931
+ dark: {
932
+ scale: {
933
+ 1: "#191111",
934
+ 2: "#201314",
935
+ 3: "#3b1219",
936
+ 4: "#500f1c",
937
+ 5: "#611623",
938
+ 6: "#72232d",
939
+ 7: "#8c333a",
940
+ 8: "#b54548",
941
+ 9: "#e5484d",
942
+ 10: "#ec5d5e",
943
+ 11: "#ff9592",
944
+ 12: "#ffd1d9"
945
+ },
946
+ alphaScale: {
947
+ 1: "#f4121209",
948
+ 2: "#f22f3e11",
949
+ 3: "#ff173f2d",
950
+ 4: "#fe0a3b44",
951
+ 5: "#ff204756",
952
+ 6: "#ff3e5668",
953
+ 7: "#ff536184",
954
+ 8: "#ff5d61b0",
955
+ 9: "#fe4e54e4",
956
+ 10: "#ff6465eb",
957
+ 11: "#ff9592",
958
+ 12: "#ffd1d9"
959
+ },
960
+ contrast: "#ffffff",
961
+ surface: "#32141780",
962
+ indicator: "#e5484d",
963
+ track: "#e5484d"
964
+ }
965
+ },
966
+ gray: {
967
+ light: {
968
+ scale: {
969
+ 1: "#fcfcfc",
970
+ 2: "#f9f9f9",
971
+ 3: "#f0f0f0",
972
+ 4: "#e8e8e8",
973
+ 5: "#e0e0e0",
974
+ 6: "#d9d9d9",
975
+ 7: "#cecece",
976
+ 8: "#bbb",
977
+ 9: "#8d8d8d",
978
+ 10: "#838383",
979
+ 11: "#646464",
980
+ 12: "#202020"
981
+ },
982
+ alphaScale: {
983
+ 1: "#00000003",
984
+ 2: "#00000006",
985
+ 3: "#0000000f",
986
+ 4: "#00000017",
987
+ 5: "#0000001f",
988
+ 6: "#00000026",
989
+ 7: "#00000031",
990
+ 8: "#00000044",
991
+ 9: "#00000072",
992
+ 10: "#0000007c",
993
+ 11: "#0000009b",
994
+ 12: "#000000df"
995
+ },
996
+ contrast: "#ffffff",
997
+ surface: "#f8f8f8cc",
998
+ indicator: "#8d8d8d",
999
+ track: "#8d8d8d"
1000
+ },
1001
+ dark: {
1002
+ scale: {
1003
+ 1: "#111",
1004
+ 2: "#191919",
1005
+ 3: "#222",
1006
+ 4: "#2a2a2a",
1007
+ 5: "#313131",
1008
+ 6: "#3a3a3a",
1009
+ 7: "#484848",
1010
+ 8: "#606060",
1011
+ 9: "#6e6e6e",
1012
+ 10: "#7b7b7b",
1013
+ 11: "#b4b4b4",
1014
+ 12: "#eee"
1015
+ },
1016
+ alphaScale: {
1017
+ 1: "#0000",
1018
+ 2: "#ffffff09",
1019
+ 3: "#ffffff12",
1020
+ 4: "#ffffff1b",
1021
+ 5: "#ffffff22",
1022
+ 6: "#ffffff2c",
1023
+ 7: "#ffffff3b",
1024
+ 8: "#ffffff55",
1025
+ 9: "#ffffff64",
1026
+ 10: "#ffffff72",
1027
+ 11: "#ffffffaf",
1028
+ 12: "#ffffffed"
1029
+ },
1030
+ contrast: "#111111",
1031
+ surface: "#1d1d1d80",
1032
+ indicator: "#7b7b7b",
1033
+ track: "#7b7b7b"
1034
+ }
1035
+ }
1036
+ }, fe = {
1037
+ button: {
1038
+ "height-sm": "32px",
1039
+ "height-md": "36px",
1040
+ "height-lg": "44px",
1041
+ "classic-after-inset": "2px",
1042
+ "classic-box-shadow-top": "inset 0 0 0 1px var(--gray-a5), inset 0 1px 1px var(--white-a10)",
1043
+ "classic-box-shadow-bottom": "inset 0 4px 2px -2px var(--white-a9), inset 0 2px 1px -1px var(--white-a9)",
1044
+ "classic-disabled-box-shadow": "inset 0 0 0 1px var(--gray-a4), inset 0 1px 1px var(--gray-a1)",
1045
+ "classic-active-filter": "brightness(0.985) saturate(0.98)",
1046
+ "solid-active-filter": "brightness(0.96) saturate(1.02)"
1047
+ },
1048
+ badge: {
1049
+ radius: "999px",
1050
+ shadow: "none",
1051
+ "font-size": "12px",
1052
+ "font-weight": "600",
1053
+ gap: "6px",
1054
+ "padding-block": "5px",
1055
+ "padding-inline": "10px",
1056
+ "border-width": "1px"
1057
+ },
1058
+ blockControls: {
1059
+ bg: "var(--color-panel)",
1060
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1061
+ radius: "var(--ui-radius)",
1062
+ shadow: "var(--shadow-2)",
1063
+ gap: "6px",
1064
+ padding: "8px",
1065
+ "item-radius": "var(--ui-radius)"
1066
+ },
1067
+ box: {
1068
+ bg: "var(--color-panel-solid)",
1069
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1070
+ radius: "var(--ui-radius)",
1071
+ shadow: "var(--shadow-2)",
1072
+ backdrop: "var(--backdrop-filter-panel)"
1073
+ },
1074
+ breadcrumb: {
1075
+ radius: "var(--ui-radius)",
1076
+ gap: "8px",
1077
+ "font-size": "14px",
1078
+ shadow: "none",
1079
+ "item-padding-block": "4px",
1080
+ "item-padding-inline": "9px"
1081
+ },
1082
+ dropdown: {
1083
+ bg: "color-mix(in srgb, var(--color-panel-solid) 98%, transparent)",
1084
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1085
+ radius: "var(--radius-4)",
1086
+ shadow: "var(--shadow-5)",
1087
+ backdrop: "none",
1088
+ "content-padding": "0px",
1089
+ "min-width": "224px",
1090
+ "item-height": "36px",
1091
+ "item-padding-x": "12px",
1092
+ "item-padding-y": "8px",
1093
+ "item-gap": "10px",
1094
+ "item-radius": "0px",
1095
+ "item-font-size": "14px",
1096
+ "item-line-height": "20px",
1097
+ "separator-margin": "6px 10px"
1098
+ },
1099
+ select: {
1100
+ bg: "var(--color-panel-solid)",
1101
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1102
+ radius: "var(--ui-radius)",
1103
+ shadow: "none",
1104
+ "height-sm": "34px",
1105
+ "height-md": "42px",
1106
+ "height-lg": "46px",
1107
+ "padding-x": "12px",
1108
+ gap: "8px",
1109
+ "label-color": "var(--ui-color-text)",
1110
+ "description-color": "var(--ui-color-muted)",
1111
+ "menu-bg": "var(--color-panel-solid)",
1112
+ "menu-color": "var(--ui-color-text)",
1113
+ "menu-border": "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1114
+ "menu-radius": "var(--radius-4)",
1115
+ "menu-shadow": "var(--shadow-5)",
1116
+ "menu-padding": "8px",
1117
+ "menu-min-width": "232px",
1118
+ "menu-item-height": "36px",
1119
+ "menu-item-padding-x": "12px",
1120
+ "menu-item-padding-y": "8px",
1121
+ "menu-item-gap": "10px",
1122
+ "menu-item-radius": "var(--radius-2)",
1123
+ "menu-item-font-size": "14px",
1124
+ "menu-item-line-height": "20px",
1125
+ "menu-separator-margin": "6px 10px"
1126
+ },
1127
+ sidebar: {
1128
+ bg: "var(--color-panel-solid)",
1129
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1130
+ radius: "4px",
1131
+ shadow: "var(--shadow-5)",
1132
+ padding: "12px",
1133
+ gap: "12px",
1134
+ "header-padding": "6px 8px 10px",
1135
+ "item-radius": "4px",
1136
+ "item-height": "45px",
1137
+ "item-padding-x": "6px",
1138
+ "item-padding-y": "3px",
1139
+ "item-gap": "8px",
1140
+ "item-font-size": "12px",
1141
+ "item-line-height": "22px",
1142
+ "section-gap": "10px",
1143
+ "section-label-size": "12px",
1144
+ "section-label-spacing": "0.06em",
1145
+ "submenu-indent": "18px",
1146
+ "promo-radius": "4px",
1147
+ "promo-padding": "18px"
1148
+ },
1149
+ card: {
1150
+ bg: "var(--color-panel-solid)",
1151
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1152
+ radius: "var(--ui-radius)",
1153
+ shadow: "var(--shadow-2)",
1154
+ "hover-shadow": "var(--shadow-3)",
1155
+ "active-shadow": "var(--shadow-2)",
1156
+ "classic-shadow": "var(--shadow-2)",
1157
+ "classic-hover-shadow": "var(--shadow-3)",
1158
+ "classic-active-shadow": "var(--shadow-2)"
1159
+ },
1160
+ multiSelect: {
1161
+ bg: "var(--color-panel-solid)",
1162
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1163
+ radius: "var(--ui-radius)",
1164
+ shadow: "none",
1165
+ "height-sm": "38px",
1166
+ "height-md": "44px",
1167
+ "height-lg": "48px",
1168
+ "padding-x": "10px",
1169
+ "padding-y": "8px",
1170
+ "panel-bg": "var(--color-panel-solid)",
1171
+ "panel-border": "1px solid color-mix(in srgb, var(--gray-a5) 84%, transparent)",
1172
+ "panel-radius": "calc(var(--ui-radius) + 2px)",
1173
+ "panel-shadow": "var(--shadow-4)",
1174
+ "chip-radius": "999px",
1175
+ "chip-gap": "6px",
1176
+ "chip-padding-x": "10px",
1177
+ "chip-padding-y": "6px",
1178
+ "option-radius": "10px",
1179
+ "option-gap": "10px",
1180
+ "option-padding-x": "10px",
1181
+ "option-padding-y": "10px"
1182
+ },
1183
+ navigationMenu: {
1184
+ bg: "var(--color-panel-solid)",
1185
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1186
+ radius: "var(--radius-4)",
1187
+ shadow: "var(--shadow-2)",
1188
+ padding: "6px",
1189
+ gap: "6px",
1190
+ "item-radius": "var(--radius-2)",
1191
+ "item-padding-x": "12px",
1192
+ "item-padding-y": "8px",
1193
+ "item-font-size": "14px",
1194
+ "item-font-weight": "600",
1195
+ "item-line-height": "20px",
1196
+ "panel-bg": "var(--color-panel-solid)",
1197
+ "panel-border": "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1198
+ "panel-radius": "var(--radius-4)",
1199
+ "panel-shadow": "var(--shadow-3)",
1200
+ "panel-padding": "12px"
1201
+ },
1202
+ menubar: {
1203
+ bg: "var(--color-panel-solid)",
1204
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1205
+ radius: "var(--radius-4)",
1206
+ shadow: "var(--shadow-2)",
1207
+ padding: "6px",
1208
+ gap: "6px",
1209
+ "item-radius": "var(--radius-2)",
1210
+ "item-padding-x": "14px",
1211
+ "item-padding-y": "9px",
1212
+ "item-font-size": "14px",
1213
+ "item-font-weight": "600",
1214
+ "item-line-height": "20px",
1215
+ "panel-bg": "var(--color-panel-solid)",
1216
+ "panel-color": "var(--ui-color-text)",
1217
+ "panel-border": "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1218
+ "panel-shadow": "var(--shadow-5)",
1219
+ "panel-radius": "var(--radius-4)",
1220
+ "panel-padding": "8px",
1221
+ "panel-min-width": "232px",
1222
+ "panel-item-height": "36px",
1223
+ "panel-item-padding-x": "12px",
1224
+ "panel-item-padding-y": "8px",
1225
+ "panel-item-gap": "10px",
1226
+ "panel-item-radius": "var(--radius-2)",
1227
+ "panel-item-font-size": "14px",
1228
+ "panel-item-line-height": "20px",
1229
+ "panel-separator-margin": "6px 10px"
1230
+ },
1231
+ contextMenu: {
1232
+ bg: "var(--color-panel-solid)",
1233
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1234
+ radius: "var(--radius-4)",
1235
+ shadow: "var(--shadow-5)",
1236
+ padding: "8px",
1237
+ "min-width": "232px",
1238
+ "item-height": "36px",
1239
+ "item-padding-x": "12px",
1240
+ "item-padding-y": "8px",
1241
+ "item-gap": "10px",
1242
+ "item-radius": "var(--radius-2)",
1243
+ "item-font-size": "14px",
1244
+ "item-line-height": "20px",
1245
+ "submenu-radius": "var(--radius-4)",
1246
+ "submenu-padding": "8px"
1247
+ },
1248
+ alert: {
1249
+ bg: "var(--color-panel-solid)",
1250
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1251
+ radius: "var(--ui-radius)",
1252
+ shadow: "var(--shadow-2)",
1253
+ "padding-x": "16px",
1254
+ "padding-y": "14px",
1255
+ gap: "var(--ui-default-gap)",
1256
+ "icon-size": "26px",
1257
+ "dismiss-size": "28px"
1258
+ },
1259
+ alertDialog: {
1260
+ bg: "var(--color-panel-solid)",
1261
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1262
+ radius: "var(--ui-radius)",
1263
+ shadow: "var(--shadow-4)",
1264
+ backdrop: "var(--color-overlay)",
1265
+ padding: "20px",
1266
+ gap: "var(--ui-default-gap)",
1267
+ "min-width": "360px",
1268
+ "max-width": "min(90vw, 560px)",
1269
+ "header-gap": "10px",
1270
+ "footer-gap": "10px"
1271
+ },
1272
+ appHeader: {
1273
+ bg: "var(--color-panel)",
1274
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 78%, transparent)",
1275
+ radius: "0px",
1276
+ shadow: "none",
1277
+ padding: "16px",
1278
+ gap: "12px",
1279
+ height: "64px",
1280
+ "height-dense": "52px",
1281
+ "control-radius": "var(--ui-radius)"
1282
+ },
1283
+ aspectRatio: {
1284
+ bg: "var(--color-panel-solid)",
1285
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1286
+ radius: "var(--radius-4)",
1287
+ shadow: "none",
1288
+ "empty-bg": "color-mix(in srgb, var(--accent-a3) 24%, transparent)",
1289
+ "badge-radius": "999px"
1290
+ },
1291
+ avatar: {
1292
+ bg: "var(--color-panel-solid)",
1293
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1294
+ radius: "999px",
1295
+ shadow: "0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 24px rgba(15, 23, 42, 0.12)",
1296
+ "size-sm": "30px",
1297
+ "size-md": "40px",
1298
+ "size-lg": "52px",
1299
+ "badge-radius": "999px",
1300
+ "status-border": "2px solid var(--color-panel-solid)"
1301
+ },
1302
+ menu: {
1303
+ bg: "var(--color-panel-solid)",
1304
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1305
+ radius: "var(--radius-4)",
1306
+ shadow: "var(--shadow-5)",
1307
+ backdrop: "none",
1308
+ "content-padding": "8px",
1309
+ "min-width": "232px",
1310
+ "item-height": "36px",
1311
+ "item-padding-x": "12px",
1312
+ "item-padding-y": "8px",
1313
+ "item-gap": "10px",
1314
+ "item-radius": "var(--radius-2)",
1315
+ "item-font-size": "14px",
1316
+ "item-line-height": "20px",
1317
+ "separator-margin": "6px 10px"
1318
+ },
1319
+ panel: {
1320
+ bg: "var(--color-panel)",
1321
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 72%, transparent)",
1322
+ radius: "var(--ui-radius)",
1323
+ shadow: "var(--shadow-4)",
1324
+ backdrop: "var(--backdrop-filter-panel)",
1325
+ padding: "var(--ui-default-gap)"
1326
+ },
1327
+ input: {
1328
+ "height-sm": "32px",
1329
+ "height-md": "36px",
1330
+ "height-lg": "44px",
1331
+ bg: "var(--color-panel-solid)",
1332
+ border: "1px solid color-mix(in srgb, var(--gray-a5) 84%, transparent)",
1333
+ "focus-ring": "0 0 0 3px color-mix(in srgb, var(--accent-a5) 48%, transparent)"
1334
+ }
1335
+ }, ue = {
1336
+ button: {
1337
+ "height-sm": "32px",
1338
+ "height-md": "36px",
1339
+ "height-lg": "44px",
1340
+ "classic-after-inset": "1px",
1341
+ "classic-box-shadow-top": "inset 0 0 0 1px var(--white-a2), inset 0 4px 2px -2px var(--white-a3), inset 0 1px 1px var(--white-a6), inset 0 -1px 1px var(--black-a6)",
1342
+ "classic-box-shadow-bottom": "inset 0 0 0 1px var(--black-a4), inset 0 -1px 1px var(--black-a8)",
1343
+ "classic-disabled-box-shadow": "inset 0 0 0 1px var(--gray-a5), inset 0 4px 2px -2px var(--gray-a2), inset 0 1px 1px var(--gray-a5), inset 0 -1px 1px var(--black-a3), inset 0 0 0 1px var(--gray-a2)",
1344
+ "classic-active-filter": "brightness(0.94) saturate(0.95)",
1345
+ "solid-active-filter": "brightness(0.92) saturate(1.04)"
1346
+ },
1347
+ badge: {
1348
+ radius: "999px",
1349
+ shadow: "none",
1350
+ "font-size": "12px",
1351
+ "font-weight": "600",
1352
+ gap: "6px",
1353
+ "padding-block": "5px",
1354
+ "padding-inline": "10px",
1355
+ "border-width": "1px"
1356
+ },
1357
+ blockControls: {
1358
+ bg: "var(--color-panel)",
1359
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 86%, transparent)",
1360
+ radius: "var(--ui-radius)",
1361
+ shadow: "var(--shadow-2)",
1362
+ gap: "6px",
1363
+ padding: "8px",
1364
+ "item-radius": "var(--ui-radius)"
1365
+ },
1366
+ box: {
1367
+ bg: "var(--color-panel-solid)",
1368
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1369
+ radius: "var(--ui-radius)",
1370
+ shadow: "var(--shadow-2)",
1371
+ backdrop: "var(--backdrop-filter-panel)"
1372
+ },
1373
+ breadcrumb: {
1374
+ radius: "var(--ui-radius)",
1375
+ gap: "8px",
1376
+ "font-size": "14px",
1377
+ shadow: "none",
1378
+ "item-padding-block": "4px",
1379
+ "item-padding-inline": "9px"
1380
+ },
1381
+ dropdown: {
1382
+ bg: "color-mix(in srgb, var(--color-panel-solid) 98%, transparent)",
1383
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1384
+ radius: "var(--radius-4)",
1385
+ shadow: "var(--shadow-5)",
1386
+ backdrop: "none",
1387
+ "content-padding": "0px",
1388
+ "min-width": "224px",
1389
+ "item-height": "36px",
1390
+ "item-padding-x": "12px",
1391
+ "item-padding-y": "8px",
1392
+ "item-gap": "10px",
1393
+ "item-radius": "0px",
1394
+ "item-font-size": "14px",
1395
+ "item-line-height": "20px",
1396
+ "separator-margin": "6px 10px"
1397
+ },
1398
+ select: {
1399
+ bg: "var(--color-panel-solid)",
1400
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1401
+ radius: "var(--ui-radius)",
1402
+ shadow: "none",
1403
+ "height-sm": "34px",
1404
+ "height-md": "42px",
1405
+ "height-lg": "46px",
1406
+ "padding-x": "12px",
1407
+ gap: "8px",
1408
+ "label-color": "var(--ui-color-text)",
1409
+ "description-color": "var(--ui-color-muted)",
1410
+ "menu-bg": "var(--color-panel-solid)",
1411
+ "menu-color": "var(--ui-color-text)",
1412
+ "menu-border": "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1413
+ "menu-radius": "var(--radius-4)",
1414
+ "menu-shadow": "var(--shadow-5)",
1415
+ "menu-padding": "8px",
1416
+ "menu-min-width": "232px",
1417
+ "menu-item-height": "36px",
1418
+ "menu-item-padding-x": "12px",
1419
+ "menu-item-padding-y": "8px",
1420
+ "menu-item-gap": "10px",
1421
+ "menu-item-radius": "var(--radius-2)",
1422
+ "menu-item-font-size": "14px",
1423
+ "menu-item-line-height": "20px",
1424
+ "menu-separator-margin": "6px 10px"
1425
+ },
1426
+ sidebar: {
1427
+ bg: "var(--color-panel-solid)",
1428
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1429
+ radius: "4px",
1430
+ shadow: "var(--shadow-5)",
1431
+ padding: "12px",
1432
+ gap: "12px",
1433
+ "header-padding": "6px 8px 10px",
1434
+ "item-radius": "4px",
1435
+ "item-height": "45px",
1436
+ "item-padding-x": "6px",
1437
+ "item-padding-y": "3px",
1438
+ "item-gap": "8px",
1439
+ "item-font-size": "12px",
1440
+ "item-line-height": "22px",
1441
+ "section-gap": "10px",
1442
+ "section-label-size": "12px",
1443
+ "section-label-spacing": "0.06em",
1444
+ "submenu-indent": "18px",
1445
+ "promo-radius": "4px",
1446
+ "promo-padding": "18px"
1447
+ },
1448
+ card: {
1449
+ bg: "var(--color-panel-solid)",
1450
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1451
+ radius: "var(--ui-radius)",
1452
+ shadow: "var(--shadow-2)",
1453
+ "hover-shadow": "var(--shadow-3)",
1454
+ "active-shadow": "var(--shadow-2)",
1455
+ "classic-shadow": "var(--shadow-2)",
1456
+ "classic-hover-shadow": "var(--shadow-3)",
1457
+ "classic-active-shadow": "var(--shadow-2)"
1458
+ },
1459
+ multiSelect: {
1460
+ bg: "var(--color-panel-solid)",
1461
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1462
+ radius: "var(--ui-radius)",
1463
+ shadow: "none",
1464
+ "height-sm": "38px",
1465
+ "height-md": "44px",
1466
+ "height-lg": "48px",
1467
+ "padding-x": "10px",
1468
+ "padding-y": "8px",
1469
+ "panel-bg": "var(--color-panel-solid)",
1470
+ "panel-border": "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1471
+ "panel-radius": "calc(var(--ui-radius) + 2px)",
1472
+ "panel-shadow": "var(--shadow-4)",
1473
+ "chip-radius": "999px",
1474
+ "chip-gap": "6px",
1475
+ "chip-padding-x": "10px",
1476
+ "chip-padding-y": "6px",
1477
+ "option-radius": "10px",
1478
+ "option-gap": "10px",
1479
+ "option-padding-x": "10px",
1480
+ "option-padding-y": "10px"
1481
+ },
1482
+ navigationMenu: {
1483
+ bg: "var(--color-panel-solid)",
1484
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1485
+ radius: "var(--radius-4)",
1486
+ shadow: "var(--shadow-2)",
1487
+ padding: "6px",
1488
+ gap: "6px",
1489
+ "item-radius": "var(--radius-2)",
1490
+ "item-padding-x": "12px",
1491
+ "item-padding-y": "8px",
1492
+ "item-font-size": "14px",
1493
+ "item-font-weight": "600",
1494
+ "item-line-height": "20px",
1495
+ "panel-bg": "var(--color-panel-solid)",
1496
+ "panel-border": "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1497
+ "panel-radius": "var(--radius-4)",
1498
+ "panel-shadow": "var(--shadow-3)",
1499
+ "panel-padding": "12px"
1500
+ },
1501
+ menubar: {
1502
+ bg: "var(--color-panel-solid)",
1503
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1504
+ radius: "var(--radius-4)",
1505
+ shadow: "var(--shadow-2)",
1506
+ padding: "6px",
1507
+ gap: "6px",
1508
+ "item-radius": "var(--radius-2)",
1509
+ "item-padding-x": "14px",
1510
+ "item-padding-y": "9px",
1511
+ "item-font-size": "14px",
1512
+ "item-font-weight": "600",
1513
+ "item-line-height": "20px",
1514
+ "panel-bg": "var(--color-panel-solid)",
1515
+ "panel-color": "var(--ui-color-text)",
1516
+ "panel-border": "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1517
+ "panel-shadow": "var(--shadow-5)",
1518
+ "panel-radius": "var(--radius-4)",
1519
+ "panel-padding": "8px",
1520
+ "panel-min-width": "232px",
1521
+ "panel-item-height": "36px",
1522
+ "panel-item-padding-x": "12px",
1523
+ "panel-item-padding-y": "8px",
1524
+ "panel-item-gap": "10px",
1525
+ "panel-item-radius": "var(--radius-2)",
1526
+ "panel-item-font-size": "14px",
1527
+ "panel-item-line-height": "20px",
1528
+ "panel-separator-margin": "6px 10px"
1529
+ },
1530
+ contextMenu: {
1531
+ bg: "var(--color-panel-solid)",
1532
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1533
+ radius: "var(--radius-4)",
1534
+ shadow: "var(--shadow-5)",
1535
+ padding: "8px",
1536
+ "min-width": "232px",
1537
+ "item-height": "36px",
1538
+ "item-padding-x": "12px",
1539
+ "item-padding-y": "8px",
1540
+ "item-gap": "10px",
1541
+ "item-radius": "var(--radius-2)",
1542
+ "item-font-size": "14px",
1543
+ "item-line-height": "20px",
1544
+ "submenu-radius": "var(--radius-4)",
1545
+ "submenu-padding": "8px"
1546
+ },
1547
+ alert: {
1548
+ bg: "var(--color-panel-solid)",
1549
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1550
+ radius: "var(--ui-radius)",
1551
+ shadow: "var(--shadow-2)",
1552
+ "padding-x": "16px",
1553
+ "padding-y": "14px",
1554
+ gap: "var(--ui-default-gap)",
1555
+ "icon-size": "26px",
1556
+ "dismiss-size": "28px"
1557
+ },
1558
+ alertDialog: {
1559
+ bg: "var(--color-panel-solid)",
1560
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1561
+ radius: "var(--ui-radius)",
1562
+ shadow: "var(--shadow-4)",
1563
+ backdrop: "var(--color-overlay)",
1564
+ padding: "20px",
1565
+ gap: "var(--ui-default-gap)",
1566
+ "min-width": "360px",
1567
+ "max-width": "min(90vw, 560px)",
1568
+ "header-gap": "10px",
1569
+ "footer-gap": "10px"
1570
+ },
1571
+ appHeader: {
1572
+ bg: "var(--color-panel)",
1573
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 82%, transparent)",
1574
+ radius: "0px",
1575
+ shadow: "none",
1576
+ padding: "16px",
1577
+ gap: "12px",
1578
+ height: "64px",
1579
+ "height-dense": "52px",
1580
+ "control-radius": "var(--ui-radius)"
1581
+ },
1582
+ aspectRatio: {
1583
+ bg: "var(--color-panel-solid)",
1584
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1585
+ radius: "var(--radius-4)",
1586
+ shadow: "none",
1587
+ "empty-bg": "color-mix(in srgb, var(--accent-a3) 20%, transparent)",
1588
+ "badge-radius": "999px"
1589
+ },
1590
+ avatar: {
1591
+ bg: "var(--color-panel-solid)",
1592
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1593
+ radius: "999px",
1594
+ shadow: "0 1px 2px rgba(2, 6, 23, 0.18), 0 12px 24px rgba(2, 6, 23, 0.28)",
1595
+ "size-sm": "30px",
1596
+ "size-md": "40px",
1597
+ "size-lg": "52px",
1598
+ "badge-radius": "999px",
1599
+ "status-border": "2px solid var(--color-panel-solid)"
1600
+ },
1601
+ menu: {
1602
+ bg: "var(--color-panel-solid)",
1603
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1604
+ radius: "var(--radius-4)",
1605
+ shadow: "var(--shadow-5)",
1606
+ backdrop: "none",
1607
+ "content-padding": "8px",
1608
+ "min-width": "232px",
1609
+ "item-height": "36px",
1610
+ "item-padding-x": "12px",
1611
+ "item-padding-y": "8px",
1612
+ "item-gap": "10px",
1613
+ "item-radius": "var(--radius-2)",
1614
+ "item-font-size": "14px",
1615
+ "item-line-height": "20px",
1616
+ "separator-margin": "6px 10px"
1617
+ },
1618
+ panel: {
1619
+ bg: "var(--color-panel)",
1620
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1621
+ radius: "var(--ui-radius)",
1622
+ shadow: "var(--shadow-4)",
1623
+ backdrop: "var(--backdrop-filter-panel)",
1624
+ padding: "var(--ui-default-gap)"
1625
+ },
1626
+ input: {
1627
+ "height-sm": "32px",
1628
+ "height-md": "36px",
1629
+ "height-lg": "44px",
1630
+ bg: "var(--color-panel-solid)",
1631
+ border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1632
+ "focus-ring": "0 0 0 3px color-mix(in srgb, var(--accent-a6) 42%, transparent)"
1633
+ }
1634
+ };
1635
+ function Ka(e) {
1636
+ return {
1637
+ primary: e.scale[9],
1638
+ primaryHover: e.scale[10] || e.scale[9],
1639
+ foregroundOnPrimary: e.contrast,
1640
+ focusRing: e.scale[8] || e.scale[9],
1641
+ warning: e.scale[9]
1642
+ };
1643
+ }
1644
+ const _a = {
1645
+ colors: {
1646
+ primary: "#ffc53d",
1647
+ primaryHover: "#ffba18",
1648
+ foregroundOnPrimary: "#21201c",
1649
+ background: "#ffffff",
1650
+ surface: "#fcfcfc",
1651
+ surfaceAlt: "#f9f9f9",
1652
+ text: "#202020",
1653
+ muted: "#646464",
1654
+ border: "#0000001f",
1655
+ focusRing: "#e2a336",
1656
+ success: "#30a46c",
1657
+ danger: "#e5484d",
1658
+ warning: "#ffc53d"
1659
+ },
1660
+ palette: {
1661
+ gray: {
1662
+ 1: "#fcfcfc",
1663
+ 2: "#f9f9f9",
1664
+ 3: "#f0f0f0",
1665
+ 4: "#e8e8e8",
1666
+ 5: "#e0e0e0",
1667
+ 6: "#d9d9d9",
1668
+ 7: "#cecece",
1669
+ 8: "#bbb",
1670
+ 9: "#8d8d8d",
1671
+ 10: "#838383",
1672
+ 11: "#646464",
1673
+ 12: "#202020"
1674
+ },
1675
+ grayAlpha: {
1676
+ 1: "#00000003",
1677
+ 2: "#00000006",
1678
+ 3: "#0000000f",
1679
+ 4: "#00000017",
1680
+ 5: "#0000001f",
1681
+ 6: "#00000026",
1682
+ 7: "#00000031",
1683
+ 8: "#00000044",
1684
+ 9: "#00000072",
1685
+ 10: "#0000007c",
1686
+ 11: "#0000009b",
1687
+ 12: "#000000df"
1688
+ },
1689
+ blackAlpha: Ya,
1690
+ whiteAlpha: Ga,
1691
+ accent: {
1692
+ ...v.amber.light.scale
1693
+ },
1694
+ accentAlpha: {
1695
+ ...v.amber.light.alphaScale
1696
+ },
1697
+ accentContrast: v.amber.light.contrast,
1698
+ accentSurface: v.amber.light.surface,
1699
+ accentIndicator: v.amber.light.indicator,
1700
+ accentTrack: v.amber.light.track
1701
+ },
1702
+ surfaces: {
1703
+ background: "#ffffff",
1704
+ surface: "#fcfcfc",
1705
+ panel: "#ffffffcc",
1706
+ panelSolid: "#ffffff",
1707
+ panelTranslucent: "#ffffffcc",
1708
+ overlay: "rgba(2, 6, 23, 0.52)",
1709
+ transparent: "transparent"
1710
+ },
1711
+ radius: "4px",
1712
+ radiusScale: {
1713
+ 1: "3px",
1714
+ 2: "4px",
1715
+ 3: "6px",
1716
+ 4: "8px",
1717
+ 5: "12px",
1718
+ 6: "16px"
1719
+ },
1720
+ shadows: {
1721
+ sm: "0 0 0 1px var(--gray-a3),0 0 0 0.5px var(--black-a1),0 1px 1px 0 var(--gray-a2),0 2px 1px -1px var(--black-a1),0 1px 3px 0 var(--black-a1)",
1722
+ md: "0 0 0 1px var(--gray-a3),0 2px 3px -2px var(--gray-a3),0 3px 12px -4px var(--black-a2),0 4px 16px -8px var(--black-a2)",
1723
+ lg: "0 0 0 1px var(--gray-a3),0 8px 40px var(--black-a1),0 12px 32px -16px var(--gray-a3)",
1724
+ 1: "inset 0 0 0 1px var(--gray-a5),inset 0 1.5px 2px 0 var(--gray-a2),inset 0 1.5px 2px 0 var(--black-a2)",
1725
+ 2: "0 0 0 1px var(--gray-a3),0 0 0 0.5px var(--black-a1),0 1px 1px 0 var(--gray-a2),0 2px 1px -1px var(--black-a1),0 1px 3px 0 var(--black-a1)",
1726
+ 3: "0 0 0 1px var(--gray-a3),0 2px 3px -2px var(--gray-a3),0 3px 12px -4px var(--black-a2),0 4px 16px -8px var(--black-a2)",
1727
+ 4: "0 0 0 1px var(--gray-a3),0 8px 40px var(--black-a1),0 12px 32px -16px var(--gray-a3)",
1728
+ 5: "0 0 0 1px var(--gray-a3),0 12px 60px var(--black-a3),0 12px 32px -16px var(--gray-a5)",
1729
+ 6: "0 0 0 1px var(--gray-a3),0 12px 60px var(--black-a3),0 16px 64px var(--gray-a2),0 16px 36px -20px var(--gray-a7)"
1730
+ },
1731
+ spacing: {
1732
+ xs: "4px",
1733
+ sm: "8px",
1734
+ md: "12px",
1735
+ lg: "24px",
1736
+ xl: "32px",
1737
+ xxl: "48px"
1738
+ },
1739
+ spaceScale: {
1740
+ 1: "4px",
1741
+ 2: "8px",
1742
+ 3: "12px",
1743
+ 4: "16px",
1744
+ 5: "24px",
1745
+ 6: "32px",
1746
+ 7: "40px",
1747
+ 8: "48px",
1748
+ 9: "64px"
1749
+ },
1750
+ typography: {
1751
+ family: '-apple-system,BlinkMacSystemFont,"Segoe UI (Custom)",Roboto,"Helvetica Neue","Open Sans (Custom)",system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
1752
+ headingFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI (Custom)",Roboto,"Helvetica Neue","Open Sans (Custom)",system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
1753
+ codeFamily: '"Menlo","Consolas (Custom)","Bitstream Vera Sans Mono",monospace,"Apple Color Emoji","Segoe UI Emoji"',
1754
+ size: { sm: "12px", md: "14px", lg: "16px" },
1755
+ fontScale: {
1756
+ 1: "12px",
1757
+ 2: "14px",
1758
+ 3: "16px",
1759
+ 4: "18px",
1760
+ 5: "20px",
1761
+ 6: "24px",
1762
+ 7: "28px",
1763
+ 8: "35px",
1764
+ 9: "60px"
1765
+ },
1766
+ lineHeight: {
1767
+ 1: "16px",
1768
+ 2: "20px",
1769
+ 3: "24px",
1770
+ 4: "26px",
1771
+ 5: "28px",
1772
+ 6: "30px",
1773
+ 7: "36px",
1774
+ 8: "40px",
1775
+ 9: "60px"
1776
+ },
1777
+ letterSpacing: {
1778
+ 1: "0.0025em",
1779
+ 2: "0em",
1780
+ 3: "0em",
1781
+ 4: "-0.0025em",
1782
+ 5: "-0.005em",
1783
+ 6: "-0.00625em",
1784
+ 7: "-0.0075em",
1785
+ 8: "-0.01em",
1786
+ 9: "-0.025em"
1787
+ }
1788
+ },
1789
+ motion: {
1790
+ durationShort: "120ms",
1791
+ durationBase: "180ms",
1792
+ durationLong: "260ms",
1793
+ easing: "cubic-bezier(0.2, 0.8, 0.2, 1)"
1794
+ },
1795
+ effects: {
1796
+ backdropFilterPanel: "blur(64px)"
1797
+ },
1798
+ components: fe,
1799
+ zIndex: { modal: 1e3, overlay: 900, toast: 1100 },
1800
+ breakpoints: { sm: "640px", md: "768px", lg: "1024px" }
1801
+ }, me = {
1802
+ ..._a,
1803
+ colors: {
1804
+ primary: "#ffc53d",
1805
+ primaryHover: "#ffd60a",
1806
+ foregroundOnPrimary: "#21201c",
1807
+ background: "#111111",
1808
+ surface: "#111111",
1809
+ surfaceAlt: "#191919",
1810
+ text: "#eeeeee",
1811
+ muted: "#b4b4b4",
1812
+ border: "#ffffff22",
1813
+ focusRing: "#ffc53d",
1814
+ success: "#30a46c",
1815
+ danger: "#e5484d",
1816
+ warning: "#ffc53d"
1817
+ },
1818
+ palette: {
1819
+ ..._a.palette,
1820
+ gray: {
1821
+ 1: "#111",
1822
+ 2: "#191919",
1823
+ 3: "#222",
1824
+ 4: "#2a2a2a",
1825
+ 5: "#313131",
1826
+ 6: "#3a3a3a",
1827
+ 7: "#484848",
1828
+ 8: "#606060",
1829
+ 9: "#6e6e6e",
1830
+ 10: "#7b7b7b",
1831
+ 11: "#b4b4b4",
1832
+ 12: "#eee"
1833
+ },
1834
+ grayAlpha: {
1835
+ 1: "#0000",
1836
+ 2: "#ffffff09",
1837
+ 3: "#ffffff12",
1838
+ 4: "#ffffff1b",
1839
+ 5: "#ffffff22",
1840
+ 6: "#ffffff2c",
1841
+ 7: "#ffffff3b",
1842
+ 8: "#ffffff55",
1843
+ 9: "#ffffff64",
1844
+ 10: "#ffffff72",
1845
+ 11: "#ffffffaf",
1846
+ 12: "#ffffffed"
1847
+ },
1848
+ blackAlpha: Ya,
1849
+ whiteAlpha: Ga,
1850
+ accent: {
1851
+ ...v.amber.dark.scale
1852
+ },
1853
+ accentAlpha: {
1854
+ ...v.amber.dark.alphaScale
1855
+ },
1856
+ accentContrast: v.amber.dark.contrast,
1857
+ accentSurface: v.amber.dark.surface,
1858
+ accentIndicator: v.amber.dark.indicator,
1859
+ accentTrack: v.amber.dark.track
1860
+ },
1861
+ surfaces: {
1862
+ background: "#111111",
1863
+ surface: "#111111",
1864
+ panel: "#21212180",
1865
+ panelSolid: "#191919",
1866
+ panelTranslucent: "#21212180",
1867
+ overlay: "rgba(0, 0, 0, 0.72)",
1868
+ transparent: "transparent"
1869
+ },
1870
+ shadows: {
1871
+ sm: "0 0 0 1px var(--gray-a6),0 0 0 0.5px var(--black-a3),0 1px 1px 0 var(--black-a6),0 2px 1px -1px var(--black-a6),0 1px 3px 0 var(--black-a5)",
1872
+ md: "0 0 0 1px var(--gray-a6),0 2px 3px -2px var(--black-a3),0 3px 8px -2px var(--black-a6),0 4px 12px -4px var(--black-a7)",
1873
+ lg: "0 0 0 1px var(--gray-a6),0 8px 40px var(--black-a3),0 12px 32px -16px var(--black-a5)",
1874
+ 1: "inset 0 -1px 1px 0 var(--gray-a3),inset 0 0 0 1px var(--gray-a3),inset 0 3px 4px 0 var(--black-a5),inset 0 0 0 1px var(--gray-a4)",
1875
+ 2: "0 0 0 1px var(--gray-a6),0 0 0 0.5px var(--black-a3),0 1px 1px 0 var(--black-a6),0 2px 1px -1px var(--black-a6),0 1px 3px 0 var(--black-a5)",
1876
+ 3: "0 0 0 1px var(--gray-a6),0 2px 3px -2px var(--black-a3),0 3px 8px -2px var(--black-a6),0 4px 12px -4px var(--black-a7)",
1877
+ 4: "0 0 0 1px var(--gray-a6),0 8px 40px var(--black-a3),0 12px 32px -16px var(--black-a5)",
1878
+ 5: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a5),0 12px 32px -16px var(--black-a7)",
1879
+ 6: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a4),0 16px 64px var(--black-a6),0 16px 36px -20px var(--black-a11)"
1880
+ },
1881
+ components: ue
1882
+ }, _e = _a, Ja = /* @__PURE__ */ new Set();
1883
+ function u(e, a) {
1884
+ if (!(!e && !a))
1885
+ return { ...e || {}, ...a || {} };
1886
+ }
1887
+ function qa(e, a) {
1888
+ var p, c, d, y, x, _, w, m, b, g, h, S, C, k, z, A, L, T, I, D, R, H, P, F, B, $, O, W, V, j, U, Z, N, Q, X, Y, G, K, J, q, aa, ea, na, ia, ta, oa, ra, sa, pa, ca, la, da, fa, ua, ma, ha, ga, xa, ba, ya, wa, va;
1889
+ const i = (a == null ? void 0 : a.mode) || "light", n = i === "dark" ? me : _a, r = a == null ? void 0 : a.accentPalette, t = r ? v[r][i] : null, l = t ? {
1890
+ colors: {
1891
+ ...Ka(t)
1892
+ },
1893
+ palette: {
1894
+ accent: t.scale,
1895
+ accentAlpha: t.alphaScale,
1896
+ accentContrast: t.contrast,
1897
+ accentSurface: t.surface,
1898
+ accentIndicator: t.indicator,
1899
+ accentTrack: t.track
1900
+ }
1901
+ } : null;
1902
+ return {
1903
+ ...n,
1904
+ ...e,
1905
+ colors: {
1906
+ ...n.colors,
1907
+ ...(l == null ? void 0 : l.colors) || {},
1908
+ ...(e == null ? void 0 : e.colors) || {}
1909
+ },
1910
+ palette: {
1911
+ ...n.palette || {},
1912
+ ...(l == null ? void 0 : l.palette) || {},
1913
+ ...(e == null ? void 0 : e.palette) || {},
1914
+ gray: u((p = n.palette) == null ? void 0 : p.gray, (c = e == null ? void 0 : e.palette) == null ? void 0 : c.gray),
1915
+ grayAlpha: u((d = n.palette) == null ? void 0 : d.grayAlpha, (y = e == null ? void 0 : e.palette) == null ? void 0 : y.grayAlpha),
1916
+ blackAlpha: u((x = n.palette) == null ? void 0 : x.blackAlpha, (_ = e == null ? void 0 : e.palette) == null ? void 0 : _.blackAlpha),
1917
+ whiteAlpha: u((w = n.palette) == null ? void 0 : w.whiteAlpha, (m = e == null ? void 0 : e.palette) == null ? void 0 : m.whiteAlpha),
1918
+ accent: u((t == null ? void 0 : t.scale) || ((b = n.palette) == null ? void 0 : b.accent), (g = e == null ? void 0 : e.palette) == null ? void 0 : g.accent),
1919
+ accentAlpha: u((t == null ? void 0 : t.alphaScale) || ((h = n.palette) == null ? void 0 : h.accentAlpha), (S = e == null ? void 0 : e.palette) == null ? void 0 : S.accentAlpha)
1920
+ },
1921
+ surfaces: {
1922
+ ...n.surfaces || {},
1923
+ ...(e == null ? void 0 : e.surfaces) || {}
1924
+ },
1925
+ shadows: {
1926
+ ...n.shadows || {},
1927
+ ...(e == null ? void 0 : e.shadows) || {}
1928
+ },
1929
+ spacing: {
1930
+ ...n.spacing || {},
1931
+ ...(e == null ? void 0 : e.spacing) || {}
1932
+ },
1933
+ spaceScale: u(n.spaceScale, e == null ? void 0 : e.spaceScale),
1934
+ radiusScale: u(n.radiusScale, e == null ? void 0 : e.radiusScale),
1935
+ typography: {
1936
+ ...n.typography || {},
1937
+ ...(e == null ? void 0 : e.typography) || {},
1938
+ size: {
1939
+ ...((C = n.typography) == null ? void 0 : C.size) || {},
1940
+ ...((k = e == null ? void 0 : e.typography) == null ? void 0 : k.size) || {}
1941
+ },
1942
+ fontScale: u((z = n.typography) == null ? void 0 : z.fontScale, (A = e == null ? void 0 : e.typography) == null ? void 0 : A.fontScale),
1943
+ lineHeight: u((L = n.typography) == null ? void 0 : L.lineHeight, (T = e == null ? void 0 : e.typography) == null ? void 0 : T.lineHeight),
1944
+ letterSpacing: u((I = n.typography) == null ? void 0 : I.letterSpacing, (D = e == null ? void 0 : e.typography) == null ? void 0 : D.letterSpacing)
1945
+ },
1946
+ motion: {
1947
+ ...n.motion || {},
1948
+ ...(e == null ? void 0 : e.motion) || {}
1949
+ },
1950
+ effects: {
1951
+ ...n.effects || {},
1952
+ ...(e == null ? void 0 : e.effects) || {}
1953
+ },
1954
+ components: {
1955
+ ...n.components || {},
1956
+ ...(e == null ? void 0 : e.components) || {},
1957
+ button: u((R = n.components) == null ? void 0 : R.button, (H = e == null ? void 0 : e.components) == null ? void 0 : H.button),
1958
+ badge: u((P = n.components) == null ? void 0 : P.badge, (F = e == null ? void 0 : e.components) == null ? void 0 : F.badge),
1959
+ dropdown: u((B = n.components) == null ? void 0 : B.dropdown, ($ = e == null ? void 0 : e.components) == null ? void 0 : $.dropdown),
1960
+ select: u((O = n.components) == null ? void 0 : O.select, (W = e == null ? void 0 : e.components) == null ? void 0 : W.select),
1961
+ sidebar: u((V = n.components) == null ? void 0 : V.sidebar, (j = e == null ? void 0 : e.components) == null ? void 0 : j.sidebar),
1962
+ card: u((U = n.components) == null ? void 0 : U.card, (Z = e == null ? void 0 : e.components) == null ? void 0 : Z.card),
1963
+ navigationMenu: u((N = n.components) == null ? void 0 : N.navigationMenu, (Q = e == null ? void 0 : e.components) == null ? void 0 : Q.navigationMenu),
1964
+ blockControls: u((X = n.components) == null ? void 0 : X.blockControls, (Y = e == null ? void 0 : e.components) == null ? void 0 : Y.blockControls),
1965
+ box: u((G = n.components) == null ? void 0 : G.box, (K = e == null ? void 0 : e.components) == null ? void 0 : K.box),
1966
+ breadcrumb: u((J = n.components) == null ? void 0 : J.breadcrumb, (q = e == null ? void 0 : e.components) == null ? void 0 : q.breadcrumb),
1967
+ contextMenu: u((aa = n.components) == null ? void 0 : aa.contextMenu, (ea = e == null ? void 0 : e.components) == null ? void 0 : ea.contextMenu),
1968
+ menubar: u((na = n.components) == null ? void 0 : na.menubar, (ia = e == null ? void 0 : e.components) == null ? void 0 : ia.menubar),
1969
+ alert: u((ta = n.components) == null ? void 0 : ta.alert, (oa = e == null ? void 0 : e.components) == null ? void 0 : oa.alert),
1970
+ alertDialog: u((ra = n.components) == null ? void 0 : ra.alertDialog, (sa = e == null ? void 0 : e.components) == null ? void 0 : sa.alertDialog),
1971
+ appHeader: u((pa = n.components) == null ? void 0 : pa.appHeader, (ca = e == null ? void 0 : e.components) == null ? void 0 : ca.appHeader),
1972
+ aspectRatio: u((la = n.components) == null ? void 0 : la.aspectRatio, (da = e == null ? void 0 : e.components) == null ? void 0 : da.aspectRatio),
1973
+ avatar: u((fa = n.components) == null ? void 0 : fa.avatar, (ua = e == null ? void 0 : e.components) == null ? void 0 : ua.avatar),
1974
+ menu: u((ma = n.components) == null ? void 0 : ma.menu, (ha = e == null ? void 0 : e.components) == null ? void 0 : ha.menu),
1975
+ multiSelect: u((ga = n.components) == null ? void 0 : ga.multiSelect, (xa = e == null ? void 0 : e.components) == null ? void 0 : xa.multiSelect),
1976
+ panel: u((ba = n.components) == null ? void 0 : ba.panel, (ya = e == null ? void 0 : e.components) == null ? void 0 : ya.panel),
1977
+ input: u((wa = n.components) == null ? void 0 : wa.input, (va = e == null ? void 0 : e.components) == null ? void 0 : va.input)
1978
+ },
1979
+ zIndex: {
1980
+ ...n.zIndex || {},
1981
+ ...(e == null ? void 0 : e.zIndex) || {}
1982
+ },
1983
+ breakpoints: {
1984
+ ...n.breakpoints || {},
1985
+ ...(e == null ? void 0 : e.breakpoints) || {}
1986
+ }
1987
+ };
1988
+ }
1989
+ function Se(e, a, i = "light") {
1990
+ const n = v[a][i], r = e;
1991
+ return qa(
1992
+ {
1993
+ ...r,
1994
+ colors: {
1995
+ ...r.colors || {},
1996
+ ...Ka(n)
1997
+ },
1998
+ palette: {
1999
+ ...r.palette || {},
2000
+ accent: n.scale,
2001
+ accentAlpha: n.alphaScale,
2002
+ accentContrast: n.contrast,
2003
+ accentSurface: n.surface,
2004
+ accentIndicator: n.indicator,
2005
+ accentTrack: n.track
2006
+ }
2007
+ },
2008
+ { mode: i }
2009
+ );
2010
+ }
2011
+ function o(e, a, i) {
2012
+ try {
2013
+ e.style.setProperty(a, i);
2014
+ } catch {
2015
+ }
2016
+ }
2017
+ function f(e, a, i) {
2018
+ i && Object.entries(i).forEach(([n, r]) => {
2019
+ typeof r == "string" && r && e.style.setProperty(`${a}${n}`, r);
2020
+ });
2021
+ }
2022
+ function Ce(e) {
2023
+ e && Ja.add(e);
2024
+ }
2025
+ function Qa(e, a) {
2026
+ var i, n, r, t, l, s, p, c, d, y, x, _, w, m, b, g, h, S, C, k, z, A, L, T, I, D, R, H, P, F, B, $, O, W, V, j, U, Z, N, Q, X, Y, G, K, J, q, aa, ea, na, ia, ta, oa, ra, sa, pa, ca, la, da, fa, ua, ma, ha, ga, xa, ba, ya, wa, va, Ca, za, Aa, Ea, Ma, La, Ta, Ia, Da, Ra, Ha, Pa, Fa, Ba, $a, Oa, Wa;
2027
+ o(e, "--ui-color-primary", a.colors.primary), o(e, "--ui-color-primary-hover", a.colors.primaryHover || a.colors.primary), o(e, "--ui-color-foreground-on-primary", a.colors.foregroundOnPrimary || "#ffffff"), o(e, "--ui-color-background", a.colors.background || "#ffffff"), o(e, "--ui-color-surface", a.colors.surface || a.colors.background || "#ffffff"), o(e, "--ui-color-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), o(e, "--ui-color-text", a.colors.text || "#202020"), o(e, "--ui-color-muted", a.colors.muted || "#646464"), o(e, "--ui-color-border", a.colors.border || "#0000001f"), o(e, "--ui-color-focus-ring", a.colors.focusRing || a.colors.primary), o(e, "--ui-color-success", a.colors.success || "#30a46c"), o(e, "--ui-color-danger", a.colors.danger || "#e5484d"), o(e, "--ui-color-warning", a.colors.warning || a.colors.primary), o(e, "--ui-primary", a.colors.primary), o(e, "--ui-primary-hover", a.colors.primaryHover || a.colors.primary), o(e, "--ui-foreground", a.colors.foregroundOnPrimary || "#ffffff"), o(e, "--ui-background", a.colors.background || "#ffffff"), o(e, "--ui-surface", a.colors.surface || a.colors.background || "#ffffff"), o(e, "--ui-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), o(e, "--ui-text", a.colors.text || "#202020"), o(e, "--ui-muted", a.colors.muted || "#646464"), o(e, "--ui-border", a.colors.border || "#0000001f"), o(e, "--ui-focus-ring", a.colors.focusRing || a.colors.primary), o(e, "--ui-success", a.colors.success || "#30a46c"), o(e, "--ui-error", a.colors.danger || "#e5484d"), o(e, "--ui-warning", a.colors.warning || a.colors.primary), o(e, "--ui-radius", a.radius || "4px"), o(e, "--ui-space-xs", ((i = a.spacing) == null ? void 0 : i.xs) || "4px"), o(e, "--ui-space-sm", ((n = a.spacing) == null ? void 0 : n.sm) || "8px"), o(e, "--ui-space-md", ((r = a.spacing) == null ? void 0 : r.md) || "12px"), o(e, "--ui-space-lg", ((t = a.spacing) == null ? void 0 : t.lg) || "24px"), o(e, "--ui-space-xl", ((l = a.spacing) == null ? void 0 : l.xl) || "32px"), o(e, "--ui-space-xxl", ((s = a.spacing) == null ? void 0 : s.xxl) || "48px"), o(e, "--ui-default-gap", ((p = a.spacing) == null ? void 0 : p.sm) || ((c = a.spaceScale) == null ? void 0 : c["2"]) || "8px"), o(e, "--ui-shadow-sm", ((d = a.shadows) == null ? void 0 : d.sm) || ((y = a.shadows) == null ? void 0 : y["2"]) || "none"), o(e, "--ui-shadow-md", ((x = a.shadows) == null ? void 0 : x.md) || ((_ = a.shadows) == null ? void 0 : _["3"]) || "none"), o(e, "--ui-shadow-lg", ((w = a.shadows) == null ? void 0 : w.lg) || ((m = a.shadows) == null ? void 0 : m["4"]) || "none"), o(e, "--ui-font-family", ((b = a.typography) == null ? void 0 : b.family) || "system-ui, sans-serif"), o(e, "--ui-font-family-heading", ((g = a.typography) == null ? void 0 : g.headingFamily) || ((h = a.typography) == null ? void 0 : h.family) || "system-ui, sans-serif"), o(e, "--ui-font-family-code", ((S = a.typography) == null ? void 0 : S.codeFamily) || "monospace"), o(e, "--ui-font-size-sm", ((k = (C = a.typography) == null ? void 0 : C.size) == null ? void 0 : k.sm) || "12px"), o(e, "--ui-font-size-md", ((A = (z = a.typography) == null ? void 0 : z.size) == null ? void 0 : A.md) || "14px"), o(e, "--ui-font-size-lg", ((T = (L = a.typography) == null ? void 0 : L.size) == null ? void 0 : T.lg) || "16px"), o(e, "--ui-default-font-size", ((D = (I = a.typography) == null ? void 0 : I.size) == null ? void 0 : D.md) || ((H = (R = a.typography) == null ? void 0 : R.fontScale) == null ? void 0 : H["2"]) || "14px"), o(e, "--ui-default-line-height", ((F = (P = a.typography) == null ? void 0 : P.lineHeight) == null ? void 0 : F["2"]) || "20px"), o(e, "--ui-default-letter-spacing", (($ = (B = a.typography) == null ? void 0 : B.letterSpacing) == null ? void 0 : $["2"]) || "0em"), o(e, "--ui-motion-short", ((O = a.motion) == null ? void 0 : O.durationShort) || "120ms"), o(e, "--ui-motion-base", ((W = a.motion) == null ? void 0 : W.durationBase) || "180ms"), o(e, "--ui-motion-long", ((V = a.motion) == null ? void 0 : V.durationLong) || "260ms"), o(e, "--ui-motion-easing", ((j = a.motion) == null ? void 0 : j.easing) || "cubic-bezier(0.2, 0.8, 0.2, 1)"), o(e, "--ui-z-modal", String(((U = a.zIndex) == null ? void 0 : U.modal) ?? 1e3)), o(e, "--ui-z-overlay", String(((Z = a.zIndex) == null ? void 0 : Z.overlay) ?? 900)), o(e, "--ui-z-toast", String(((N = a.zIndex) == null ? void 0 : N.toast) ?? 1100)), o(e, "--ui-breakpoint-sm", ((Q = a.breakpoints) == null ? void 0 : Q.sm) || "640px"), o(e, "--ui-breakpoint-md", ((X = a.breakpoints) == null ? void 0 : X.md) || "768px"), o(e, "--ui-breakpoint-lg", ((Y = a.breakpoints) == null ? void 0 : Y.lg) || "1024px"), o(e, "--color-background", ((G = a.surfaces) == null ? void 0 : G.background) || a.colors.background || "#ffffff"), o(e, "--color-surface", ((K = a.surfaces) == null ? void 0 : K.surface) || a.colors.surface || "#fcfcfc"), o(e, "--color-panel", ((J = a.surfaces) == null ? void 0 : J.panel) || ((q = a.surfaces) == null ? void 0 : q.panelTranslucent) || "#ffffffcc"), o(e, "--color-panel-solid", ((aa = a.surfaces) == null ? void 0 : aa.panelSolid) || a.colors.surface || "#ffffff"), o(e, "--color-panel-translucent", ((ea = a.surfaces) == null ? void 0 : ea.panelTranslucent) || "#ffffffcc"), o(e, "--color-overlay", ((na = a.surfaces) == null ? void 0 : na.overlay) || "rgba(2, 6, 23, 0.52)"), o(e, "--color-transparent", ((ia = a.surfaces) == null ? void 0 : ia.transparent) || "transparent"), o(e, "--backdrop-filter-panel", ((ta = a.effects) == null ? void 0 : ta.backdropFilterPanel) || "blur(64px)"), (oa = a.palette) != null && oa.accentContrast && o(e, "--accent-contrast", a.palette.accentContrast), (ra = a.palette) != null && ra.accentSurface && o(e, "--accent-surface", a.palette.accentSurface), (sa = a.palette) != null && sa.accentIndicator && o(e, "--accent-indicator", a.palette.accentIndicator), (pa = a.palette) != null && pa.accentTrack && o(e, "--accent-track", a.palette.accentTrack), f(e, "--gray-", (ca = a.palette) == null ? void 0 : ca.gray), f(e, "--gray-a", (la = a.palette) == null ? void 0 : la.grayAlpha), f(e, "--black-a", (da = a.palette) == null ? void 0 : da.blackAlpha), f(e, "--white-a", (fa = a.palette) == null ? void 0 : fa.whiteAlpha), f(e, "--accent-", (ua = a.palette) == null ? void 0 : ua.accent), f(e, "--accent-a", (ma = a.palette) == null ? void 0 : ma.accentAlpha), f(e, "--space-", a.spaceScale), f(e, "--radius-", a.radiusScale), f(e, "--font-size-", (ha = a.typography) == null ? void 0 : ha.fontScale), f(e, "--line-height-", (ga = a.typography) == null ? void 0 : ga.lineHeight), f(e, "--letter-spacing-", (xa = a.typography) == null ? void 0 : xa.letterSpacing), f(e, "--shadow-", a.shadows), f(e, "--base-button-", (ba = a.components) == null ? void 0 : ba.button), f(e, "--base-badge-", (ya = a.components) == null ? void 0 : ya.badge), f(e, "--base-dropdown-", (wa = a.components) == null ? void 0 : wa.dropdown), f(e, "--base-select-", (va = a.components) == null ? void 0 : va.select), f(e, "--base-sidebar-", (Ca = a.components) == null ? void 0 : Ca.sidebar), f(e, "--base-block-controls-", (za = a.components) == null ? void 0 : za.blockControls), f(e, "--base-box-", (Aa = a.components) == null ? void 0 : Aa.box), f(e, "--base-breadcrumb-", (Ea = a.components) == null ? void 0 : Ea.breadcrumb), f(e, "--base-card-", (Ma = a.components) == null ? void 0 : Ma.card), f(e, "--base-multi-select-", (La = a.components) == null ? void 0 : La.multiSelect), f(e, "--base-navigation-menu-", (Ta = a.components) == null ? void 0 : Ta.navigationMenu), f(e, "--base-menubar-", (Ia = a.components) == null ? void 0 : Ia.menubar), f(e, "--base-context-menu-", (Da = a.components) == null ? void 0 : Da.contextMenu), f(e, "--base-alert-", (Ra = a.components) == null ? void 0 : Ra.alert), f(e, "--base-alert-dialog-", (Ha = a.components) == null ? void 0 : Ha.alertDialog), f(e, "--base-app-header-", (Pa = a.components) == null ? void 0 : Pa.appHeader), f(e, "--base-aspect-ratio-", (Fa = a.components) == null ? void 0 : Fa.aspectRatio), f(e, "--base-avatar-", (Ba = a.components) == null ? void 0 : Ba.avatar), f(e, "--base-menu-", ($a = a.components) == null ? void 0 : $a.menu), f(e, "--base-panel-", (Oa = a.components) == null ? void 0 : Oa.panel), f(e, "--base-input-", (Wa = a.components) == null ? void 0 : Wa.input);
2028
+ }
2029
+ function ze(e, a = typeof document < "u" ? document : null) {
2030
+ if (!a)
2031
+ return;
2032
+ const i = qa(e), n = a === document || a instanceof ShadowRoot;
2033
+ let r;
2034
+ if (a === document ? r = document.documentElement : a instanceof ShadowRoot ? r = a.host : r = a, Qa(r, i), n)
2035
+ for (const t of Ja)
2036
+ try {
2037
+ Qa(t, i);
2038
+ } catch {
2039
+ }
2040
+ }
2041
+ export {
2042
+ re as A,
2043
+ le as D,
2044
+ se as a,
2045
+ ge as b,
2046
+ ae as c,
2047
+ xe as d,
2048
+ ye as e,
2049
+ de as f,
2050
+ we as g,
2051
+ ve as h,
2052
+ ke as i,
2053
+ v as j,
2054
+ _a as k,
2055
+ me as l,
2056
+ _e as m,
2057
+ qa as n,
2058
+ ze as o,
2059
+ be as p,
2060
+ Va as q,
2061
+ Ce as r,
2062
+ he as s,
2063
+ ee as t,
2064
+ Se as w
2065
+ };