@nonoun/native-ui 0.2.1 → 0.2.3

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 (37) hide show
  1. package/dist/custom-elements.json +1354 -1354
  2. package/dist/define.js +62 -0
  3. package/dist/dialog-controller.js +48 -169
  4. package/dist/inspector.css +231 -0
  5. package/dist/inspector.d.ts +7 -0
  6. package/dist/inspector.d.ts.map +1 -0
  7. package/dist/inspector.js +591 -0
  8. package/dist/kernel.js +182 -181
  9. package/dist/native-ui.js +7 -5
  10. package/dist/nav/inspector/build-inspector.d.ts +8 -0
  11. package/dist/nav/inspector/build-inspector.d.ts.map +1 -0
  12. package/dist/nav/inspector/ds-color-swatch-element.d.ts +15 -0
  13. package/dist/nav/inspector/ds-color-swatch-element.d.ts.map +1 -0
  14. package/dist/nav/inspector/ds-color-swatch.d.ts +3 -0
  15. package/dist/nav/inspector/ds-color-swatch.d.ts.map +1 -0
  16. package/dist/nav/inspector/ds-colors-element.d.ts +14 -0
  17. package/dist/nav/inspector/ds-colors-element.d.ts.map +1 -0
  18. package/dist/nav/inspector/ds-colors.d.ts +4 -0
  19. package/dist/nav/inspector/ds-colors.d.ts.map +1 -0
  20. package/dist/nav/inspector/ds-themes-element.d.ts +13 -0
  21. package/dist/nav/inspector/ds-themes-element.d.ts.map +1 -0
  22. package/dist/nav/inspector/ds-themes.d.ts +4 -0
  23. package/dist/nav/inspector/ds-themes.d.ts.map +1 -0
  24. package/dist/nav/inspector/ds-variable-element.d.ts +19 -0
  25. package/dist/nav/inspector/ds-variable-element.d.ts.map +1 -0
  26. package/dist/nav/inspector/ds-variable.d.ts +4 -0
  27. package/dist/nav/inspector/ds-variable.d.ts.map +1 -0
  28. package/dist/nav/inspector/index.d.ts +9 -0
  29. package/dist/nav/inspector/index.d.ts.map +1 -0
  30. package/dist/register-all.js +1 -1
  31. package/dist/register-all2.js +25 -24
  32. package/dist/traits/drag-controller.d.ts.map +1 -1
  33. package/dist/traits.js +5 -3
  34. package/dist/ui-element.js +128 -0
  35. package/dist/ui-icon-element.js +158 -156
  36. package/dist/uid.js +3 -63
  37. package/package.json +9 -3
@@ -1,5 +1,7 @@
1
- import { a as e, o as t, r as n, t as r } from "./uid.js";
2
- import { _ as i, a, c as o, h as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, v as h } from "./dialog-controller.js";
1
+ import { t as e } from "./uid.js";
2
+ import { i as t, n, r } from "./define.js";
3
+ import { a as i, n as a, o, r as s, t as c } from "./ui-element.js";
4
+ import { a as l, c as u, n as d, o as f, r as p, s as m, t as h } from "./dialog-controller.js";
3
5
  function g(e, t, n, r) {
4
6
  let i;
5
7
  return () => {
@@ -137,20 +139,20 @@ var x = class {
137
139
  #n;
138
140
  selectedItem;
139
141
  empty;
140
- constructor(n = {}) {
141
- this.data = t([]), this.query = t(""), this.#e = t(n.filterFn ?? b), this.#t = t(n.sortFn ?? null), this.#n = t(n.multiple ?? !1), this.activeIndex = t(n.initialActiveIndex ?? -1), this.value = t(null), this.selected = t(/* @__PURE__ */ new Set()), this.filtered = e(() => {
142
+ constructor(e = {}) {
143
+ this.data = t([]), this.query = t(""), this.#e = t(e.filterFn ?? b), this.#t = t(e.sortFn ?? null), this.#n = t(e.multiple ?? !1), this.activeIndex = t(e.initialActiveIndex ?? -1), this.value = t(null), this.selected = t(/* @__PURE__ */ new Set()), this.filtered = r(() => {
142
144
  let e = this.data.value, t = this.query.value, n = this.#e.value;
143
145
  return t ? e.filter((e) => n(e, t)) : e;
144
- }), this.sorted = e(() => {
146
+ }), this.sorted = r(() => {
145
147
  let e = this.filtered.value, t = this.#t.value;
146
148
  return t ? [...e].sort(t) : e;
147
- }), this.activeItem = e(() => {
149
+ }), this.activeItem = r(() => {
148
150
  let e = this.view.value, t = this.activeIndex.value;
149
151
  return t >= 0 && t < e.length ? e[t] : null;
150
- }), this.selectedItem = e(() => {
152
+ }), this.selectedItem = r(() => {
151
153
  let e = this.value.value;
152
154
  return e === null ? null : this.data.value.find((t) => t.value === e) ?? null;
153
- }), this.empty = e(() => this.view.value.length === 0);
155
+ }), this.empty = r(() => this.view.value.length === 0);
154
156
  }
155
157
  get view() {
156
158
  return this.sorted;
@@ -263,7 +265,7 @@ async function w(e, t, n, r) {
263
265
  * @attr {string} type - Form button type: "button" | "submit" | "reset"
264
266
  * @fires ui-press - Fired on activation (click, Enter, Space)
265
267
  */
266
- var ee = class extends y(d) {
268
+ var ee = class extends y(c) {
267
269
  static observedAttributes = ["disabled", "type"];
268
270
  #e;
269
271
  #t;
@@ -294,7 +296,7 @@ var ee = class extends y(d) {
294
296
  }, e, n), super.attributeChangedCallback?.(e, t, n));
295
297
  }
296
298
  setup() {
297
- super.setup(), this.#r = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#t.signal, this.#e, { manageTabindex: !0 })), this.addEventListener("ui-press", this.#i);
299
+ super.setup(), this.#r = new f(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#t.signal, this.#e, { manageTabindex: !0 })), this.addEventListener("ui-press", this.#i);
298
300
  }
299
301
  teardown() {
300
302
  this.removeEventListener("ui-press", this.#i), this.#r.destroy(), super.teardown();
@@ -312,7 +314,7 @@ var ee = class extends y(d) {
312
314
  onFormReset() {
313
315
  this.#t.signal.value = this.hasAttribute("disabled");
314
316
  }
315
- }, te = class extends y(d) {
317
+ }, te = class extends y(c) {
316
318
  static observedAttributes = [
317
319
  "value",
318
320
  "placeholder",
@@ -434,7 +436,7 @@ var ee = class extends y(d) {
434
436
  detail: { value: this.#a() }
435
437
  }));
436
438
  };
437
- }, ne = class extends d {
439
+ }, ne = class extends c {
438
440
  static observedAttributes = [
439
441
  "disabled",
440
442
  "multiple",
@@ -493,7 +495,7 @@ var ee = class extends y(d) {
493
495
  }
494
496
  }
495
497
  setup() {
496
- super.setup(), this.#i = new l(this, {
498
+ super.setup(), this.#i = new d(this, {
497
499
  itemSelector: ":scope ui-option:not([disabled])",
498
500
  autoSync: !1,
499
501
  orientation: "vertical",
@@ -528,7 +530,7 @@ var ee = class extends y(d) {
528
530
  let e = this.#r.activeIndex.value;
529
531
  return this.querySelectorAll(":scope ui-option:not([disabled])")[e] ?? null;
530
532
  }
531
- }, re = class extends d {
533
+ }, re = class extends c {
532
534
  static observedAttributes = [
533
535
  "value",
534
536
  "disabled",
@@ -592,24 +594,24 @@ var ee = class extends y(d) {
592
594
  }
593
595
  }));
594
596
  };
595
- }, ie = class extends d {
597
+ }, ie = class extends c {
596
598
  constructor() {
597
599
  super();
598
600
  let e = this.attachInternals();
599
601
  e.role = "presentation";
600
602
  }
601
603
  setup() {
602
- super.setup(), this.id ||= r("ogh");
603
- let e = this.closest("ui-option-group");
604
- e && e.setAttribute("aria-labelledby", this.id);
604
+ super.setup(), this.id ||= e("ogh");
605
+ let t = this.closest("ui-option-group");
606
+ t && t.setAttribute("aria-labelledby", this.id);
605
607
  }
606
- }, ae = class extends d {
608
+ }, ae = class extends c {
607
609
  constructor() {
608
610
  super();
609
611
  let e = this.attachInternals();
610
612
  e.role = "group";
611
613
  }
612
- }, oe = class extends d {
614
+ }, oe = class extends c {
613
615
  static observedAttributes = ["disabled"];
614
616
  #e;
615
617
  #t = new x({ initialActiveIndex: 0 });
@@ -700,7 +702,7 @@ var ee = class extends y(d) {
700
702
  break;
701
703
  }
702
704
  };
703
- }, se = class extends d {
705
+ }, se = class extends c {
704
706
  #e = null;
705
707
  setup() {
706
708
  super.setup(), this.deferChildren(() => {
@@ -727,13 +729,13 @@ var ee = class extends y(d) {
727
729
  detail: { value: e }
728
730
  }));
729
731
  };
730
- }, ce = class extends d {
732
+ }, ce = class extends c {
731
733
  constructor() {
732
734
  super();
733
735
  let e = this.attachInternals();
734
736
  e.role = "listbox";
735
737
  }
736
- }, le = class extends d {
738
+ }, le = class extends c {
737
739
  static observedAttributes = [
738
740
  "value",
739
741
  "disabled",
@@ -802,13 +804,13 @@ var ee = class extends y(d) {
802
804
  }
803
805
  }));
804
806
  };
805
- }, T = class extends d {
807
+ }, T = class extends c {
806
808
  constructor() {
807
809
  super();
808
810
  let e = this.attachInternals();
809
811
  e.role = "group";
810
812
  }
811
- }, E = class extends d {}, D = class extends y(d) {
813
+ }, E = class extends c {}, D = class extends y(c) {
812
814
  static observedAttributes = [
813
815
  "checked",
814
816
  "indeterminate",
@@ -877,7 +879,7 @@ var ee = class extends y(d) {
877
879
  }
878
880
  }
879
881
  setup() {
880
- super.setup(), this.#o = new u(this, { disabled: () => this.disabled }), this.#a = this.hasAttribute("checked"), this.#i.value = this.hasAttribute("required"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#r.signal, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
882
+ super.setup(), this.#o = new f(this, { disabled: () => this.disabled }), this.#a = this.hasAttribute("checked"), this.#i.value = this.hasAttribute("required"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#r.signal, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
881
883
  let e = this.#t.value, t = this.#n.value ? "mixed" : e ? "true" : "false";
882
884
  this.setAttribute("aria-checked", t), this.#e.setFormValue(e ? this.value : null);
883
885
  }), this.addEffect(() => {
@@ -906,7 +908,7 @@ var ee = class extends y(d) {
906
908
  }
907
909
  })));
908
910
  };
909
- }, O = class extends y(d) {
911
+ }, O = class extends y(c) {
910
912
  static observedAttributes = [
911
913
  "checked",
912
914
  "disabled",
@@ -952,7 +954,7 @@ var ee = class extends y(d) {
952
954
  }, e, n), super.attributeChangedCallback?.(e, t, n));
953
955
  }
954
956
  setup() {
955
- super.setup(), this.#i = new u(this, { disabled: () => this.disabled }), this.#r = this.hasAttribute("checked"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#n.signal, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
957
+ super.setup(), this.#i = new f(this, { disabled: () => this.disabled }), this.#r = this.hasAttribute("checked"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#n.signal, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
956
958
  let e = this.#t.value;
957
959
  this.setAttribute("aria-checked", e ? "true" : "false"), this.#e.setFormValue(e ? this.value : null);
958
960
  }), this.addEventListener("ui-press", this.#a);
@@ -976,7 +978,7 @@ var ee = class extends y(d) {
976
978
  }
977
979
  })));
978
980
  };
979
- }, k = class extends d {
981
+ }, k = class extends c {
980
982
  static observedAttributes = ["value", "disabled"];
981
983
  #e;
982
984
  #t;
@@ -1003,7 +1005,7 @@ var ee = class extends y(d) {
1003
1005
  t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
1004
1006
  }
1005
1007
  setup() {
1006
- super.setup(), this.setAttribute("aria-checked", "false"), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("click", this.#r), this.addEventListener("keydown", this.#i);
1008
+ super.setup(), this.setAttribute("aria-checked", "false"), this.#n = new f(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("click", this.#r), this.addEventListener("keydown", this.#i);
1007
1009
  }
1008
1010
  teardown() {
1009
1011
  this.removeEventListener("click", this.#r), this.removeEventListener("keydown", this.#i), this.#n.destroy(), super.teardown();
@@ -1028,7 +1030,7 @@ var ee = class extends y(d) {
1028
1030
  }
1029
1031
  })));
1030
1032
  };
1031
- }, A = class extends y(d) {
1033
+ }, A = class extends y(c) {
1032
1034
  static observedAttributes = [
1033
1035
  "value",
1034
1036
  "disabled",
@@ -1088,7 +1090,7 @@ var ee = class extends y(d) {
1088
1090
  }
1089
1091
  }
1090
1092
  setup() {
1091
- super.setup(), this.#r = this.getAttribute("value"), this.#n.value = this.hasAttribute("required"), this.#i = new l(this, {
1093
+ super.setup(), this.#r = this.getAttribute("value"), this.#n.value = this.hasAttribute("required"), this.#i = new d(this, {
1092
1094
  itemSelector: ":scope ui-radio:not([disabled])",
1093
1095
  ariaAttr: "aria-checked",
1094
1096
  orientation: "vertical",
@@ -1123,7 +1125,7 @@ var ee = class extends y(d) {
1123
1125
  onFormReset() {
1124
1126
  this.#i && (this.#i.listValue.value = this.#r), this.#r === null ? this.removeAttribute("value") : this.setAttribute("value", this.#r);
1125
1127
  }
1126
- }, j = class extends y(d) {
1128
+ }, j = class extends y(c) {
1127
1129
  static observedAttributes = [
1128
1130
  "value",
1129
1131
  "disabled",
@@ -1179,7 +1181,7 @@ var ee = class extends y(d) {
1179
1181
  }
1180
1182
  }
1181
1183
  setup() {
1182
- super.setup(), this.#r = this.getAttribute("value"), this.#i = new l(this, {
1184
+ super.setup(), this.#r = this.getAttribute("value"), this.#i = new d(this, {
1183
1185
  itemSelector: ":scope > ui-segment:not([disabled])",
1184
1186
  ariaAttr: "aria-checked",
1185
1187
  orientation: "horizontal",
@@ -1224,7 +1226,7 @@ var ee = class extends y(d) {
1224
1226
  }
1225
1227
  this.style.setProperty("--_indicator-index", `${e}`), this.style.setProperty("--_segment-count", `${t}`), this.#e.states.add("ready");
1226
1228
  }
1227
- }, M = class extends d {
1229
+ }, M = class extends c {
1228
1230
  static observedAttributes = ["value", "disabled"];
1229
1231
  #e;
1230
1232
  #t;
@@ -1251,7 +1253,7 @@ var ee = class extends y(d) {
1251
1253
  t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
1252
1254
  }
1253
1255
  setup() {
1254
- super.setup(), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("ui-press", this.#r);
1256
+ super.setup(), this.#n = new f(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("ui-press", this.#r);
1255
1257
  }
1256
1258
  teardown() {
1257
1259
  this.removeEventListener("ui-press", this.#r), this.#n.destroy(), super.teardown();
@@ -1266,7 +1268,7 @@ var ee = class extends y(d) {
1266
1268
  }
1267
1269
  }));
1268
1270
  };
1269
- }, N = class extends d {
1271
+ }, N = class extends c {
1270
1272
  static observedAttributes = [
1271
1273
  "placement",
1272
1274
  "delay",
@@ -1303,7 +1305,7 @@ var ee = class extends y(d) {
1303
1305
  t !== n && (e === "disabled" && (this.#n.value = n !== null), super.attributeChangedCallback?.(e, t, n));
1304
1306
  }
1305
1307
  setup() {
1306
- super.setup(), this.addEffect(g(this, this.#n, this.#e)), this.#i = this.parentElement, this.#i && (this.#a = r("tip"), this.#i.style.setProperty("anchor-name", `--${this.#a}`), this.style.setProperty("position-anchor", `--${this.#a}`), this.hasAttribute("popover") || this.setAttribute("popover", "manual"), this.id ||= r("tooltip"), this.#i.setAttribute("aria-describedby", this.id), this.#i.addEventListener("mouseenter", this.#o), this.#i.addEventListener("mouseleave", this.#s), this.#i.addEventListener("focusin", this.#o), this.#i.addEventListener("focusout", this.#s), this.#i.addEventListener("keydown", this.#c), this.addEffect(() => {
1308
+ super.setup(), this.addEffect(g(this, this.#n, this.#e)), this.#i = this.parentElement, this.#i && (this.#a = e("tip"), this.#i.style.setProperty("anchor-name", `--${this.#a}`), this.style.setProperty("position-anchor", `--${this.#a}`), this.hasAttribute("popover") || this.setAttribute("popover", "manual"), this.id ||= e("tooltip"), this.#i.setAttribute("aria-describedby", this.id), this.#i.addEventListener("mouseenter", this.#o), this.#i.addEventListener("mouseleave", this.#s), this.#i.addEventListener("focusin", this.#o), this.#i.addEventListener("focusout", this.#s), this.#i.addEventListener("keydown", this.#c), this.addEffect(() => {
1307
1309
  this.#n.value && this.#t.value && (this.#l(), this.#t.value = !1);
1308
1310
  }), this.addEffect(() => {
1309
1311
  if (this.#t.value) try {
@@ -1331,7 +1333,7 @@ var ee = class extends y(d) {
1331
1333
  #l() {
1332
1334
  this.#r !== null && (clearTimeout(this.#r), this.#r = null);
1333
1335
  }
1334
- }, P = class extends d {
1336
+ }, P = class extends c {
1335
1337
  static observedAttributes = ["multiple", "disabled"];
1336
1338
  #e = t(!1);
1337
1339
  get multiple() {
@@ -1364,7 +1366,7 @@ var ee = class extends y(d) {
1364
1366
  let r = this.querySelectorAll(":scope > ui-accordion-item[open]");
1365
1367
  for (let e of r) e !== n && (e.open = !1);
1366
1368
  };
1367
- }, F = class extends d {
1369
+ }, F = class extends c {
1368
1370
  static observedAttributes = ["open", "disabled"];
1369
1371
  #e = t(!1);
1370
1372
  #t = t(!1);
@@ -1413,7 +1415,7 @@ var ee = class extends y(d) {
1413
1415
  let e = this.#n.open;
1414
1416
  this.#e.value = e, this.toggleAttribute("open", e);
1415
1417
  };
1416
- }, I = class extends d {
1418
+ }, I = class extends c {
1417
1419
  static observedAttributes = ["no-close-on-escape", "no-close-on-backdrop"];
1418
1420
  #e;
1419
1421
  get open() {
@@ -1426,12 +1428,12 @@ var ee = class extends y(d) {
1426
1428
  this.#e.close();
1427
1429
  }
1428
1430
  setup() {
1429
- super.setup(), this.#e = new m(this);
1431
+ super.setup(), this.#e = new h(this);
1430
1432
  }
1431
1433
  teardown() {
1432
1434
  this.#e.destroy(), super.teardown();
1433
1435
  }
1434
- }, L = class extends d {
1436
+ }, L = class extends c {
1435
1437
  static observedAttributes = [
1436
1438
  "value",
1437
1439
  "disabled",
@@ -1472,7 +1474,7 @@ var ee = class extends y(d) {
1472
1474
  }
1473
1475
  }
1474
1476
  setup() {
1475
- super.setup(), this.#n = new l(this, {
1477
+ super.setup(), this.#n = new d(this, {
1476
1478
  itemSelector: ":scope > ui-tab:not([disabled])",
1477
1479
  orientation: "horizontal",
1478
1480
  autoSync: !0,
@@ -1503,12 +1505,12 @@ var ee = class extends y(d) {
1503
1505
  this.#n.destroy(), super.teardown();
1504
1506
  }
1505
1507
  #r() {
1506
- let e = this.querySelectorAll(":scope > ui-tab"), t = this.querySelectorAll(":scope > ui-tab-panels > ui-tab-panel"), n = /* @__PURE__ */ new Map();
1507
- for (let e of t) e.id ||= r("tp"), n.set(e.getAttribute("value") ?? "", e);
1508
- for (let t of e) {
1509
- t.id ||= r("tab");
1510
- let e = n.get(t.getAttribute("value") ?? "");
1511
- e && (t.setAttribute("aria-controls", e.id), e.setAttribute("aria-labelledby", t.id));
1508
+ let t = this.querySelectorAll(":scope > ui-tab"), n = this.querySelectorAll(":scope > ui-tab-panels > ui-tab-panel"), r = /* @__PURE__ */ new Map();
1509
+ for (let t of n) t.id ||= e("tp"), r.set(t.getAttribute("value") ?? "", t);
1510
+ for (let n of t) {
1511
+ n.id ||= e("tab");
1512
+ let t = r.get(n.getAttribute("value") ?? "");
1513
+ t && (n.setAttribute("aria-controls", t.id), t.setAttribute("aria-labelledby", n.id));
1512
1514
  }
1513
1515
  }
1514
1516
  #i(e, t) {
@@ -1518,7 +1520,7 @@ var ee = class extends y(d) {
1518
1520
  }
1519
1521
  this.style.setProperty("--_indicator-index", `${e}`), this.style.setProperty("--_tab-count", `${t}`), this.#e.states.add("ready");
1520
1522
  }
1521
- }, R = class extends d {
1523
+ }, R = class extends c {
1522
1524
  static observedAttributes = ["value", "disabled"];
1523
1525
  #e;
1524
1526
  #t;
@@ -1545,7 +1547,7 @@ var ee = class extends y(d) {
1545
1547
  t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
1546
1548
  }
1547
1549
  setup() {
1548
- super.setup(), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("ui-press", this.#r);
1550
+ super.setup(), this.#n = new f(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("ui-press", this.#r);
1549
1551
  }
1550
1552
  teardown() {
1551
1553
  this.removeEventListener("ui-press", this.#r), this.#n.destroy(), super.teardown();
@@ -1560,7 +1562,7 @@ var ee = class extends y(d) {
1560
1562
  }
1561
1563
  }));
1562
1564
  };
1563
- }, z = class extends d {
1565
+ }, z = class extends c {
1564
1566
  static observedAttributes = ["value"];
1565
1567
  #e;
1566
1568
  constructor() {
@@ -1575,7 +1577,7 @@ var ee = class extends y(d) {
1575
1577
  attributeChangedCallback(e, t, n) {
1576
1578
  t !== n && super.attributeChangedCallback?.(e, t, n);
1577
1579
  }
1578
- }, B = class extends d {
1580
+ }, B = class extends c {
1579
1581
  #e;
1580
1582
  constructor() {
1581
1583
  super(), this.#e = this.attachInternals(), this.#e.role = "presentation";
@@ -1701,7 +1703,7 @@ var U = class {
1701
1703
  #n;
1702
1704
  #r = !1;
1703
1705
  constructor(e, t) {
1704
- this.#t = t, this.#n = e, this.#e = new o(e, {
1706
+ this.#t = t, this.#n = e, this.#e = new u(e, {
1705
1707
  selector: "ui-table-row:not([colspan])",
1706
1708
  axis: "vertical",
1707
1709
  mode: "slot"
@@ -1731,7 +1733,7 @@ var U = class {
1731
1733
  destroy() {
1732
1734
  this.#n.removeEventListener("ui-drag-start", this.#i), this.#n.removeEventListener("ui-drop", this.#a), this.#n.removeEventListener("click", this.#o, { capture: !0 }), this.#e.destroy();
1733
1735
  }
1734
- }, ue = class extends d {
1736
+ }, ue = class extends c {
1735
1737
  static observedAttributes = [
1736
1738
  "selectable",
1737
1739
  "resizable",
@@ -1822,17 +1824,17 @@ var U = class {
1822
1824
  }
1823
1825
  }));
1824
1826
  };
1825
- }, de = class extends d {
1827
+ }, de = class extends c {
1826
1828
  #e;
1827
1829
  constructor() {
1828
1830
  super(), this.#e = this.attachInternals(), this.#e.role = "rowgroup";
1829
1831
  }
1830
- }, fe = class extends d {
1832
+ }, fe = class extends c {
1831
1833
  #e;
1832
1834
  constructor() {
1833
1835
  super(), this.#e = this.attachInternals(), this.#e.role = "rowgroup";
1834
1836
  }
1835
- }, pe = class extends d {
1837
+ }, pe = class extends c {
1836
1838
  static observedAttributes = ["value", "selected"];
1837
1839
  #e;
1838
1840
  constructor() {
@@ -1863,12 +1865,12 @@ var U = class {
1863
1865
  detail: { value: this.value }
1864
1866
  }));
1865
1867
  };
1866
- }, me = class extends d {
1868
+ }, me = class extends c {
1867
1869
  #e;
1868
1870
  constructor() {
1869
1871
  super(), this.#e = this.attachInternals(), this.#e.role = "cell";
1870
1872
  }
1871
- }, he = class extends d {
1873
+ }, he = class extends c {
1872
1874
  static observedAttributes = ["sort", "sortable"];
1873
1875
  #e;
1874
1876
  constructor() {
@@ -1927,9 +1929,9 @@ var q = class {
1927
1929
  months;
1928
1930
  years;
1929
1931
  title;
1930
- constructor(n = {}) {
1931
- let r = /* @__PURE__ */ new Date(), i = G(n.value ?? null) ?? r;
1932
- this.view = t("day"), this.focusedYear = t(i.getFullYear()), this.focusedMonth = t(i.getMonth()), this.value = t(n.value ?? null), this.rangeStart = t(n.rangeStart ?? null), this.rangeEnd = t(n.rangeEnd ?? null), this.min = t(n.min ?? null), this.max = t(n.max ?? null), this.days = e(() => this.#e()), this.months = e(() => this.#t()), this.years = e(() => this.#n()), this.title = e(() => this.#r());
1932
+ constructor(e = {}) {
1933
+ let n = /* @__PURE__ */ new Date(), i = G(e.value ?? null) ?? n;
1934
+ this.view = t("day"), this.focusedYear = t(i.getFullYear()), this.focusedMonth = t(i.getMonth()), this.value = t(e.value ?? null), this.rangeStart = t(e.rangeStart ?? null), this.rangeEnd = t(e.rangeEnd ?? null), this.min = t(e.min ?? null), this.max = t(e.max ?? null), this.days = r(() => this.#e()), this.months = r(() => this.#t()), this.years = r(() => this.#n()), this.title = r(() => this.#r());
1933
1935
  }
1934
1936
  prevMonth() {
1935
1937
  n(() => {
@@ -2062,7 +2064,7 @@ function _e(e = {}) {
2062
2064
  * @fires ui-change - Fired on single date selection with `{ value }` detail
2063
2065
  * @fires ui-range-select - Fired on range commit with `{ start, end }` detail
2064
2066
  */
2065
- var ve = class extends y(d) {
2067
+ var ve = class extends y(c) {
2066
2068
  static observedAttributes = [
2067
2069
  "value",
2068
2070
  "min",
@@ -2303,7 +2305,7 @@ var ve = class extends y(d) {
2303
2305
  this.open.value = !1, this.value.value = null, this.label.value = "";
2304
2306
  });
2305
2307
  }
2306
- }, ye = class extends y(d) {
2308
+ }, ye = class extends y(c) {
2307
2309
  static observedAttributes = [
2308
2310
  "value",
2309
2311
  "disabled",
@@ -2427,7 +2429,7 @@ var ve = class extends y(d) {
2427
2429
  }
2428
2430
  }
2429
2431
  setup() {
2430
- if (super.setup(), this.#i = new f(this), this.#c = this.hasAttribute("options") || this.hasAttribute("src"), this.#c) {
2432
+ if (super.setup(), this.#i = new p(this), this.#c = this.hasAttribute("options") || this.hasAttribute("src"), this.#c) {
2431
2433
  let e = this.getAttribute("options");
2432
2434
  e && (this.#a.value = this.#f(e)), this.#o.value = this.getAttribute("src"), this.#s.value = this.getAttribute("placeholder") ?? "", this.#m();
2433
2435
  }
@@ -2540,7 +2542,7 @@ var ve = class extends y(d) {
2540
2542
  onFormDisabled(e) {
2541
2543
  this.#n.value = e;
2542
2544
  }
2543
- }, be = class extends y(d) {
2545
+ }, be = class extends y(c) {
2544
2546
  static observedAttributes = [
2545
2547
  "value",
2546
2548
  "disabled",
@@ -2556,7 +2558,7 @@ var ve = class extends y(d) {
2556
2558
  #r = t(!1);
2557
2559
  #i = t(!1);
2558
2560
  #a;
2559
- #o = r("listbox");
2561
+ #o = e("listbox");
2560
2562
  #s = null;
2561
2563
  #c = t([]);
2562
2564
  #l = t(null);
@@ -2666,40 +2668,40 @@ var ve = class extends y(d) {
2666
2668
  }
2667
2669
  }
2668
2670
  setup() {
2669
- if (super.setup(), this.#a = new f(this), this.#d = this.hasAttribute("options") || this.hasAttribute("src"), this.#d) {
2671
+ if (super.setup(), this.#a = new p(this), this.#d = this.hasAttribute("options") || this.hasAttribute("src"), this.#d) {
2670
2672
  let e = this.getAttribute("options");
2671
2673
  e && (this.#c.value = this.#m(e)), this.#l.value = this.getAttribute("src"), this.#u.value = this.getAttribute("placeholder") ?? "", this.#g();
2672
2674
  }
2673
- let e = this.querySelector(":scope > ui-input");
2674
- this.#s = e;
2675
- let t = this.querySelector(":scope > ui-listbox[popover]");
2676
- this.#p = t, t?.setAttribute("popover", "manual"), t?.setAttribute("virtual-focus", ""), e && t && (this.#a.wirePopover(e, t), t.id ||= this.#o), e?.setAttribute("role", "combobox"), e?.setAttribute("aria-autocomplete", "list"), e?.setAttribute("aria-controls", t?.id ?? ""), e?.setAttribute("aria-expanded", "false"), this.deferChildren(() => {
2675
+ let t = this.querySelector(":scope > ui-input");
2676
+ this.#s = t;
2677
+ let n = this.querySelector(":scope > ui-listbox[popover]");
2678
+ this.#p = n, n?.setAttribute("popover", "manual"), n?.setAttribute("virtual-focus", ""), t && n && (this.#a.wirePopover(t, n), n.id ||= this.#o), t?.setAttribute("role", "combobox"), t?.setAttribute("aria-autocomplete", "list"), t?.setAttribute("aria-controls", n?.id ?? ""), t?.setAttribute("aria-expanded", "false"), this.deferChildren(() => {
2677
2679
  if (!this.#d) {
2678
- let e = t?.querySelectorAll("ui-option") ?? [];
2680
+ let e = n?.querySelectorAll("ui-option") ?? [];
2679
2681
  this.#t.data.value = [...e].map((e) => ({
2680
2682
  value: e.getAttribute("value") ?? "",
2681
2683
  label: e.getAttribute("label") ?? e.textContent?.trim() ?? ""
2682
2684
  }));
2683
2685
  }
2684
- let n = this.getAttribute("value");
2685
- if (n) {
2686
- let e = this.querySelector(`ui-option[value="${CSS.escape(n)}"]`), t = e?.getAttribute("label") ?? e?.textContent?.trim() ?? n;
2687
- this.#t.value.value = n, this.#t.query.value = t;
2686
+ let r = this.getAttribute("value");
2687
+ if (r) {
2688
+ let e = this.querySelector(`ui-option[value="${CSS.escape(r)}"]`), t = e?.getAttribute("label") ?? e?.textContent?.trim() ?? r;
2689
+ this.#t.value.value = r, this.#t.query.value = t;
2688
2690
  }
2689
2691
  this.addEffect(() => {
2690
- let e = this.#t.view.value, n = new Set(e.map((e) => e.value)), r = t?.querySelectorAll("ui-option") ?? [];
2691
- for (let e of r) e.toggleAttribute("hidden", !n.has(e.getAttribute("value") ?? ""));
2692
+ let e = this.#t.view.value, t = new Set(e.map((e) => e.value)), r = n?.querySelectorAll("ui-option") ?? [];
2693
+ for (let e of r) e.toggleAttribute("hidden", !t.has(e.getAttribute("value") ?? ""));
2692
2694
  }), this.addEffect(() => {
2693
2695
  this.#t.view.value;
2694
- let n = this.#t.activeIndex.value, i = [...t?.querySelectorAll("ui-option:not([hidden]):not([disabled])") ?? []];
2695
- for (let e = 0; e < i.length; e++) i[e].toggleAttribute("active", e === n);
2696
- let a = i[n];
2697
- a ? (a.scrollIntoView({ block: "nearest" }), a.id ||= r("opt"), e?.setAttribute("aria-activedescendant", a.id)) : e?.removeAttribute("aria-activedescendant");
2696
+ let r = this.#t.activeIndex.value, i = [...n?.querySelectorAll("ui-option:not([hidden]):not([disabled])") ?? []];
2697
+ for (let e = 0; e < i.length; e++) i[e].toggleAttribute("active", e === r);
2698
+ let a = i[r];
2699
+ a ? (a.scrollIntoView({ block: "nearest" }), a.id ||= e("opt"), t?.setAttribute("aria-activedescendant", a.id)) : t?.removeAttribute("aria-activedescendant");
2698
2700
  }), this.addEffect(() => {
2699
- let e = this.#t.value.value, n = t?.querySelectorAll("ui-option") ?? [];
2700
- for (let t of n) {
2701
- let n = t.getAttribute("value") === e;
2702
- t.setAttribute("aria-selected", String(n));
2701
+ let e = this.#t.value.value, t = n?.querySelectorAll("ui-option") ?? [];
2702
+ for (let n of t) {
2703
+ let t = n.getAttribute("value") === e;
2704
+ n.setAttribute("aria-selected", String(t));
2703
2705
  }
2704
2706
  }), this.#d && (this.addEffect(() => {
2705
2707
  let e = this.#c.value;
@@ -2708,22 +2710,22 @@ var ve = class extends y(d) {
2708
2710
  let e = this.#l.value;
2709
2711
  e && this.#h(e);
2710
2712
  }), this.addEffect(() => {
2711
- let t = this.#u.value;
2712
- e && (t ? e.setAttribute("placeholder", t) : e.removeAttribute("placeholder"));
2713
+ let e = this.#u.value;
2714
+ t && (e ? t.setAttribute("placeholder", e) : t.removeAttribute("placeholder"));
2713
2715
  }));
2714
2716
  }), this.addEffect(g(this, this.#r, this.#e)), this.addEffect(() => {
2715
- let t = this.#r.value;
2716
- e && e.toggleAttribute("disabled", t), t && this.#n.value && (this.#n.value = !1);
2717
+ let e = this.#r.value;
2718
+ t && t.toggleAttribute("disabled", e), e && this.#n.value && (this.#n.value = !1);
2717
2719
  }), this.#i.value = this.hasAttribute("required"), this.addEffect(() => {
2718
2720
  let e = this.#t.value.value;
2719
2721
  this.#i.value && (e === null || e === "") ? this.#e.setValidity({ valueMissing: !0 }, "Please select an option.", this) : this.#e.setValidity({});
2720
2722
  }), this.addEffect(() => {
2721
- let t = this.#n.value;
2722
- this.#a.syncPopover(t), e?.setAttribute("aria-expanded", String(t));
2723
+ let e = this.#n.value;
2724
+ this.#a.syncPopover(e), t?.setAttribute("aria-expanded", String(e));
2723
2725
  }), this.addEffect(() => {
2724
2726
  let e = this.#t.value.value;
2725
2727
  this.#e.setFormValue(e ?? ""), e == null ? this.removeAttribute("value") : this.setAttribute("value", e);
2726
- }), e?.addEventListener("focus", this.#v), this.addEventListener("ui-input", this.#y), this.addEventListener("ui-change", this.#b), this.addEventListener("ui-select", this.#x), this.addEventListener("ui-dismiss", this.#S), e?.addEventListener("keydown", this.#C);
2728
+ }), t?.addEventListener("focus", this.#v), this.addEventListener("ui-input", this.#y), this.addEventListener("ui-change", this.#b), this.addEventListener("ui-select", this.#x), this.addEventListener("ui-dismiss", this.#S), t?.addEventListener("keydown", this.#C);
2727
2729
  }
2728
2730
  #v = () => {
2729
2731
  !this.#r.value && !this.#n.value && (this.#n.value = !0);
@@ -2794,11 +2796,11 @@ var ve = class extends y(d) {
2794
2796
  onFormDisabled(e) {
2795
2797
  this.#r.value = e;
2796
2798
  }
2797
- }, xe = class extends d {
2799
+ }, xe = class extends c {
2798
2800
  static observedAttributes = ["disabled", "required"];
2799
- #e = r("field-label");
2800
- #t = r("field-desc");
2801
- #n = r("field-err");
2801
+ #e = e("field-label");
2802
+ #t = e("field-desc");
2803
+ #n = e("field-err");
2802
2804
  #r = null;
2803
2805
  setup() {
2804
2806
  super.setup(), this.deferChildren(() => {
@@ -2854,7 +2856,7 @@ var ve = class extends y(d) {
2854
2856
  #u = () => {
2855
2857
  this.removeAttribute("invalid");
2856
2858
  };
2857
- }, Se = class extends y(d) {
2859
+ }, Se = class extends y(c) {
2858
2860
  static observedAttributes = [
2859
2861
  "value",
2860
2862
  "placeholder",
@@ -2978,7 +2980,7 @@ var ve = class extends y(d) {
2978
2980
  detail: { value: this.textContent ?? "" }
2979
2981
  }));
2980
2982
  };
2981
- }, Ce = class extends y(d) {
2983
+ }, Ce = class extends y(c) {
2982
2984
  static observedAttributes = [
2983
2985
  "value",
2984
2986
  "min",
@@ -3148,7 +3150,7 @@ var ve = class extends y(d) {
3148
3150
  detail: { value: this.#n.value }
3149
3151
  }));
3150
3152
  }
3151
- }, we = class extends y(d) {
3153
+ }, we = class extends y(c) {
3152
3154
  static observedAttributes = [
3153
3155
  "value",
3154
3156
  "length",
@@ -3318,7 +3320,7 @@ var ve = class extends y(d) {
3318
3320
  detail: { value: this.value }
3319
3321
  }));
3320
3322
  }
3321
- }, Te = class extends d {
3323
+ }, Te = class extends c {
3322
3324
  static observedAttributes = [
3323
3325
  "src",
3324
3326
  "name",
@@ -3364,7 +3366,7 @@ var ve = class extends y(d) {
3364
3366
  let e = this.getAttribute("name");
3365
3367
  e ? this.textContent = this.#r(e) : this.textContent = "?";
3366
3368
  };
3367
- }, Ee = class extends d {
3369
+ }, Ee = class extends c {
3368
3370
  static observedAttributes = ["max"];
3369
3371
  #e;
3370
3372
  #t = "";
@@ -3385,7 +3387,7 @@ var ve = class extends y(d) {
3385
3387
  let n = parseInt(this.#t, 10);
3386
3388
  isNaN(n) || (n > t ? this.textContent = `${t}+` : this.textContent = this.#t);
3387
3389
  }
3388
- }, De = class extends d {
3390
+ }, De = class extends c {
3389
3391
  #e;
3390
3392
  constructor() {
3391
3393
  super(), this.#e = this.attachInternals(), this.#e.role = "navigation";
@@ -3395,7 +3397,7 @@ var ve = class extends y(d) {
3395
3397
  let e = this.getAttribute("aria-label") ?? "Breadcrumb";
3396
3398
  this.#e.ariaLabel = e, this.hasAttribute("aria-label") || this.setAttribute("aria-label", e);
3397
3399
  }
3398
- }, Oe = class extends d {
3400
+ }, Oe = class extends c {
3399
3401
  static observedAttributes = ["href", "current"];
3400
3402
  #e;
3401
3403
  constructor() {
@@ -3421,7 +3423,7 @@ var ve = class extends y(d) {
3421
3423
  #r = (e) => {
3422
3424
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#n());
3423
3425
  };
3424
- }, ke = class extends d {
3426
+ }, ke = class extends c {
3425
3427
  static observedAttributes = [
3426
3428
  "total",
3427
3429
  "value",
@@ -3544,7 +3546,7 @@ var ve = class extends y(d) {
3544
3546
  detail: { value: t }
3545
3547
  })));
3546
3548
  }
3547
- }, Ae = class extends d {
3549
+ }, Ae = class extends c {
3548
3550
  static observedAttributes = [
3549
3551
  "side",
3550
3552
  "no-close-on-escape",
@@ -3561,12 +3563,12 @@ var ve = class extends y(d) {
3561
3563
  this.#e.close();
3562
3564
  }
3563
3565
  setup() {
3564
- super.setup(), this.#e = new m(this, { contentTarget: () => document.createElement("ui-drawer-panel") });
3566
+ super.setup(), this.#e = new h(this, { contentTarget: () => document.createElement("ui-drawer-panel") });
3565
3567
  }
3566
3568
  teardown() {
3567
3569
  this.#e.destroy(), super.teardown();
3568
3570
  }
3569
- }, je = class extends d {
3571
+ }, je = class extends c {
3570
3572
  static observedAttributes = ["disabled"];
3571
3573
  #e;
3572
3574
  #t = t(!1);
@@ -3584,7 +3586,7 @@ var ve = class extends y(d) {
3584
3586
  t !== n && (e === "disabled" && (this.#t.value = n !== null), super.attributeChangedCallback?.(e, t, n));
3585
3587
  }
3586
3588
  setup() {
3587
- super.setup(), this.#n = new a(this, {
3589
+ super.setup(), this.#n = new l(this, {
3588
3590
  selector: ":scope ui-tree-item > [slot=\"label\"]",
3589
3591
  orientation: "vertical"
3590
3592
  });
@@ -3594,7 +3596,7 @@ var ve = class extends y(d) {
3594
3596
  teardown() {
3595
3597
  this.#n.destroy(), super.teardown();
3596
3598
  }
3597
- }, Me = class extends d {
3599
+ }, Me = class extends c {
3598
3600
  static observedAttributes = [
3599
3601
  "expanded",
3600
3602
  "selected",
@@ -3676,7 +3678,7 @@ var ve = class extends y(d) {
3676
3678
  break;
3677
3679
  }
3678
3680
  };
3679
- }, Ne = class extends d {
3681
+ }, Ne = class extends c {
3680
3682
  static observedAttributes = [
3681
3683
  "direction",
3682
3684
  "controls",
@@ -3750,27 +3752,27 @@ var ve = class extends y(d) {
3750
3752
  }
3751
3753
  setup() {
3752
3754
  super.setup(), this.#l = window.matchMedia("(prefers-reduced-motion: reduce)");
3753
- let e = document.createElement("div");
3754
- e.setAttribute("part", "track"), e.id = r("ss-track"), e.setAttribute("tabindex", "0");
3755
- let t = [];
3755
+ let t = document.createElement("div");
3756
+ t.setAttribute("part", "track"), t.id = e("ss-track"), t.setAttribute("tabindex", "0");
3757
+ let n = [];
3756
3758
  for (; this.firstChild;) {
3757
- let n = this.firstChild;
3758
- e.appendChild(n), n instanceof HTMLElement && n.tagName.toLowerCase() === "ui-slide" && t.push(n);
3759
+ let e = this.firstChild;
3760
+ t.appendChild(e), e instanceof HTMLElement && e.tagName.toLowerCase() === "ui-slide" && n.push(e);
3759
3761
  }
3760
- this.appendChild(e), this.#e = e, this.#d = t;
3761
- let n = document.createElement("div");
3762
- n.setAttribute("part", "controls");
3762
+ this.appendChild(t), this.#e = t, this.#d = n;
3763
+ let r = document.createElement("div");
3764
+ r.setAttribute("part", "controls");
3763
3765
  let i = document.createElement("button");
3764
3766
  i.setAttribute("part", "prev"), i.setAttribute("aria-label", "Previous slide"), i.setAttribute("type", "button"), i.innerHTML = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 256 256\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z\" fill=\"currentColor\"/></svg>";
3765
3767
  let a = document.createElement("button");
3766
- a.setAttribute("part", "next"), a.setAttribute("aria-label", "Next slide"), a.setAttribute("type", "button"), a.innerHTML = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 256 256\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z\" fill=\"currentColor\"/></svg>", n.appendChild(i), n.appendChild(a), this.appendChild(n), this.#n = i, this.#r = a;
3768
+ a.setAttribute("part", "next"), a.setAttribute("aria-label", "Next slide"), a.setAttribute("type", "button"), a.innerHTML = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 256 256\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z\" fill=\"currentColor\"/></svg>", r.appendChild(i), r.appendChild(a), this.appendChild(r), this.#n = i, this.#r = a;
3767
3769
  let o = document.createElement("div");
3768
3770
  o.setAttribute("part", "indicators"), o.setAttribute("aria-hidden", "true"), this.appendChild(o), this.#t = o;
3769
3771
  let s = document.createElement("div");
3770
- s.id = r("ss-live"), s.setAttribute("aria-live", "polite"), s.setAttribute("aria-atomic", "true"), s.setAttribute("data-visually-hidden", ""), this.appendChild(s), this.#i = s, this.setAttribute("aria-roledescription", "carousel"), this.hasAttribute("aria-label") || this.setAttribute("aria-label", "Slideshow"), this.#v(this.getAttribute("per-view")), this.#o.value = t.length, this.#y(t), this.#b(t.length), this.#S(t), t.length > 0 && t[0].toggleAttribute("active", !0), this.addEffect(() => {
3772
+ s.id = e("ss-live"), s.setAttribute("aria-live", "polite"), s.setAttribute("aria-atomic", "true"), s.setAttribute("data-visually-hidden", ""), this.appendChild(s), this.#i = s, this.setAttribute("aria-roledescription", "carousel"), this.hasAttribute("aria-label") || this.setAttribute("aria-label", "Slideshow"), this.#v(this.getAttribute("per-view")), this.#o.value = n.length, this.#y(n), this.#b(n.length), this.#S(n), n.length > 0 && n[0].toggleAttribute("active", !0), this.addEffect(() => {
3771
3773
  let e = this.#a.value, t = this.#o.value;
3772
3774
  this.#C(e), this.#w(e, t), this.#i && (this.#i.textContent = `Slide ${e + 1} of ${t}`);
3773
- }), this.addEffect(g(this, this.#s, this.#_)), i.addEventListener("click", this.#D), a.addEventListener("click", this.#O), e.addEventListener("keydown", this.#P), e.addEventListener("pointerdown", this.#j), this.addEventListener("mouseenter", this.#k), this.addEventListener("mouseleave", this.#A), this.addEventListener("focusin", this.#k), this.addEventListener("focusout", this.#A), this.hasAttribute("autoplay") && this.#T();
3775
+ }), this.addEffect(g(this, this.#s, this.#_)), i.addEventListener("click", this.#D), a.addEventListener("click", this.#O), t.addEventListener("keydown", this.#P), t.addEventListener("pointerdown", this.#j), this.addEventListener("mouseenter", this.#k), this.addEventListener("mouseleave", this.#A), this.addEventListener("focusin", this.#k), this.addEventListener("focusout", this.#A), this.hasAttribute("autoplay") && this.#T();
3774
3776
  }
3775
3777
  teardown() {
3776
3778
  this.#E(), this.#u?.disconnect(), this.#u = null, this.#n?.removeEventListener("click", this.#D), this.#r?.removeEventListener("click", this.#O), this.#e?.removeEventListener("keydown", this.#P), this.#e?.removeEventListener("pointerdown", this.#j), this.removeEventListener("mouseenter", this.#k), this.removeEventListener("mouseleave", this.#A), this.removeEventListener("focusin", this.#k), this.removeEventListener("focusout", this.#A), this.#e = null, this.#t?.removeEventListener("click", this.#x), this.#t && (this.#t.innerHTML = ""), this.#t = null, this.#n = null, this.#r = null, this.#i = null, this.#d = [], super.teardown();
@@ -3779,11 +3781,11 @@ var ve = class extends y(d) {
3779
3781
  let t = Math.max(1, parseInt(e ?? "1", 10) || 1);
3780
3782
  this.style.setProperty("--_per-view", String(t));
3781
3783
  }
3782
- #y(e) {
3783
- let t = e.length;
3784
- for (let n = 0; n < t; n++) {
3785
- let i = e[n];
3786
- i.setAttribute("role", "group"), i.setAttribute("aria-roledescription", "slide"), i.setAttribute("aria-label", `${n + 1} of ${t}`), i.id ||= r("slide");
3784
+ #y(t) {
3785
+ let n = t.length;
3786
+ for (let r = 0; r < n; r++) {
3787
+ let i = t[r];
3788
+ i.setAttribute("role", "group"), i.setAttribute("aria-roledescription", "slide"), i.setAttribute("aria-label", `${r + 1} of ${n}`), i.id ||= e("slide");
3787
3789
  }
3788
3790
  }
3789
3791
  #b(e) {
@@ -3889,11 +3891,11 @@ var ve = class extends y(d) {
3889
3891
  break;
3890
3892
  }
3891
3893
  };
3892
- }, Pe = class extends d {
3894
+ }, Pe = class extends c {
3893
3895
  setup() {
3894
3896
  super.setup(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1");
3895
3897
  }
3896
- }, Fe = class extends d {
3898
+ }, Fe = class extends c {
3897
3899
  static observedAttributes = ["value", "disabled"];
3898
3900
  #e;
3899
3901
  #t;
@@ -3923,7 +3925,7 @@ var ve = class extends y(d) {
3923
3925
  }
3924
3926
  }
3925
3927
  setup() {
3926
- super.setup(), this.#n = new l(this, {
3928
+ super.setup(), this.#n = new d(this, {
3927
3929
  itemSelector: ":scope ui-nav-item:not([disabled])",
3928
3930
  orientation: "vertical",
3929
3931
  ariaAttr: "aria-current",
@@ -3944,7 +3946,7 @@ var ve = class extends y(d) {
3944
3946
  teardown() {
3945
3947
  this.#n.destroy(), super.teardown();
3946
3948
  }
3947
- }, Ie = class extends d {
3949
+ }, Ie = class extends c {
3948
3950
  static observedAttributes = [
3949
3951
  "value",
3950
3952
  "disabled",
@@ -4008,7 +4010,7 @@ var ve = class extends y(d) {
4008
4010
  }
4009
4011
  }));
4010
4012
  };
4011
- }, Le = class extends d {
4013
+ }, Le = class extends c {
4012
4014
  static observedAttributes = ["open"];
4013
4015
  #e = t(!0);
4014
4016
  #t = null;
@@ -4060,18 +4062,18 @@ var ve = class extends y(d) {
4060
4062
  let e = this.#t.open;
4061
4063
  this.#e.value = e, this.toggleAttribute("open", e);
4062
4064
  };
4063
- }, Re = class extends d {
4065
+ }, Re = class extends c {
4064
4066
  constructor() {
4065
4067
  super();
4066
4068
  let e = this.attachInternals();
4067
4069
  e.role = "presentation";
4068
4070
  }
4069
4071
  setup() {
4070
- super.setup(), this.id ||= r("ngh");
4071
- let e = this.closest("ui-nav-group");
4072
- e && e.setAttribute("aria-labelledby", this.id);
4072
+ super.setup(), this.id ||= e("ngh");
4073
+ let t = this.closest("ui-nav-group");
4074
+ t && t.setAttribute("aria-labelledby", this.id);
4073
4075
  }
4074
- }, Y = class extends d {
4076
+ }, Y = class extends c {
4075
4077
  static observedAttributes = [
4076
4078
  "traits",
4077
4079
  "for",
@@ -4103,7 +4105,7 @@ var ve = class extends y(d) {
4103
4105
  let e = this.getAttribute("traits");
4104
4106
  if (!e) return;
4105
4107
  let t = this.getAttribute("for");
4106
- t === null ? this.#o(e) : this.#s(e, t), this.#r.size > 0 && !this.#i && (this.#i = h((e) => {
4108
+ t === null ? this.#o(e) : this.#s(e, t), this.#r.size > 0 && !this.#i && (this.#i = o((e) => {
4107
4109
  this.#r.has(e) && (this.#r.delete(e), this.#a(), this.#r.size === 0 && (this.#i?.(), this.#i = null));
4108
4110
  }));
4109
4111
  }
@@ -4139,8 +4141,8 @@ var ve = class extends y(d) {
4139
4141
  let n = `[native-ui] Trait conflict: "${t}" and "${e}" are incompatible.`;
4140
4142
  console.warn(n);
4141
4143
  }
4142
- let a = c(this, t), o = n.create(e, a);
4143
- r.set(t, o);
4144
+ let o = a(this, t), s = n.create(e, o);
4145
+ r.set(t, s);
4144
4146
  }
4145
4147
  this.#e.set(e, r);
4146
4148
  }
@@ -4168,7 +4170,7 @@ var ve = class extends y(d) {
4168
4170
  if (!e) continue;
4169
4171
  let n = i(e.trait);
4170
4172
  if (!n?.update) continue;
4171
- let r = c(this, e.trait);
4173
+ let r = a(this, e.trait);
4172
4174
  for (let [, t] of this.#e) {
4173
4175
  let i = t.get(e.trait);
4174
4176
  i && n.update(i, r);
@@ -4176,7 +4178,7 @@ var ve = class extends y(d) {
4176
4178
  }
4177
4179
  }), this.#n.observe(this, { attributes: !0 });
4178
4180
  }
4179
- }, ze = class extends d {
4181
+ }, ze = class extends c {
4180
4182
  static observedAttributes = [
4181
4183
  "disabled",
4182
4184
  "no-enter-submit",
@@ -4256,7 +4258,7 @@ var ve = class extends y(d) {
4256
4258
  detail: { value: e }
4257
4259
  })) && !this.hasAttribute("no-auto-clear") && (this.value = "", this.#r?.setAttribute("disabled", ""));
4258
4260
  }
4259
- }, Be = class extends d {
4261
+ }, Be = class extends c {
4260
4262
  static observedAttributes = ["interactive", "href"];
4261
4263
  setup() {
4262
4264
  super.setup(), this.hasAttribute("interactive") && (this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEventListener("click", this.#e), this.addEventListener("keydown", this.#t));
@@ -4271,7 +4273,7 @@ var ve = class extends y(d) {
4271
4273
  #t = (e) => {
4272
4274
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#e());
4273
4275
  };
4274
- }, Ve = class extends d {
4276
+ }, Ve = class extends c {
4275
4277
  static observedAttributes = [
4276
4278
  "collapsible",
4277
4279
  "collapsed",
@@ -4290,14 +4292,14 @@ var ve = class extends y(d) {
4290
4292
  #e = () => {
4291
4293
  this.hasAttribute("collapsible") && this.toggleAttribute("collapsed");
4292
4294
  };
4293
- }, He = class extends d {
4295
+ }, He = class extends c {
4294
4296
  #e;
4295
4297
  #t;
4296
4298
  constructor() {
4297
4299
  super(), this.#e = this.attachInternals(), this.#e.role = "toolbar";
4298
4300
  }
4299
4301
  setup() {
4300
- super.setup(), this.#t = new a(this, {
4302
+ super.setup(), this.#t = new l(this, {
4301
4303
  selector: ":scope > ui-button:not([disabled]), :scope > button:not([disabled])",
4302
4304
  orientation: "horizontal"
4303
4305
  }), this.hasAttribute("aria-label") || this.setAttribute("aria-label", "Toolbar");
@@ -4305,12 +4307,12 @@ var ve = class extends y(d) {
4305
4307
  teardown() {
4306
4308
  this.#t.destroy(), super.teardown();
4307
4309
  }
4308
- }, Ue = class extends d {
4310
+ }, Ue = class extends c {
4309
4311
  #e = null;
4310
4312
  setup() {
4311
4313
  super.setup();
4312
4314
  let e = this.querySelector(":scope > [slot=\"sidebar\"]");
4313
- e?.querySelector(".layout-resize-handle") && (this.#e = new p(e, {
4315
+ e?.querySelector(".layout-resize-handle") && (this.#e = new m(e, {
4314
4316
  handleSelector: ".layout-resize-handle",
4315
4317
  axis: "horizontal",
4316
4318
  min: 160,
@@ -4320,13 +4322,13 @@ var ve = class extends y(d) {
4320
4322
  teardown() {
4321
4323
  this.#e?.destroy(), this.#e = null, super.teardown();
4322
4324
  }
4323
- }, We = class extends d {
4325
+ }, We = class extends c {
4324
4326
  #e = null;
4325
4327
  #t = !1;
4326
4328
  setup() {
4327
4329
  super.setup();
4328
4330
  let e = this.querySelector(":scope > ui-listbox[popover]");
4329
- e && (this.#e = new f(this), this.#e.wirePopover(this, e), this.addEventListener("click", this.#n), this.addEventListener("ui-dismiss", this.#r));
4331
+ e && (this.#e = new p(this), this.#e.wirePopover(this, e), this.addEventListener("click", this.#n), this.addEventListener("ui-dismiss", this.#r));
4330
4332
  }
4331
4333
  teardown() {
4332
4334
  this.removeEventListener("click", this.#n), this.removeEventListener("ui-dismiss", this.#r), this.#e?.destroy(), this.#e = null, this.#t = !1, super.teardown();
@@ -4337,7 +4339,7 @@ var ve = class extends y(d) {
4337
4339
  #r = () => {
4338
4340
  this.#t = !1, this.#e?.syncPopover(!1);
4339
4341
  };
4340
- }, Ge = class extends d {
4342
+ }, Ge = class extends c {
4341
4343
  #e = null;
4342
4344
  get open() {
4343
4345
  return this.hasAttribute("open");
@@ -4349,7 +4351,7 @@ var ve = class extends y(d) {
4349
4351
  this.open = !this.open;
4350
4352
  }
4351
4353
  setup() {
4352
- super.setup(), this.querySelector(".layout-resize-handle") && (this.#e = new p(this, {
4354
+ super.setup(), this.querySelector(".layout-resize-handle") && (this.#e = new m(this, {
4353
4355
  handleSelector: ".layout-resize-handle",
4354
4356
  axis: "horizontal",
4355
4357
  min: 280,
@@ -4376,7 +4378,7 @@ function $(e) {
4376
4378
  * @attr {string} size - Icon size override
4377
4379
  * @attr {string} aria-label - Accessible label (sets role="img" when present)
4378
4380
  */
4379
- var qe = class extends d {
4381
+ var qe = class extends c {
4380
4382
  static observedAttributes = [
4381
4383
  "name",
4382
4384
  "size",