@monospaced/set-core 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ function m(t) {
30
30
  function H(t) {
31
31
  return /^[A-Za-z][\w:-]*$/.test(t);
32
32
  }
33
- function v(t) {
33
+ function b(t) {
34
34
  if (t === void 0) return;
35
35
  const n = t.trim();
36
36
  if (n) {
@@ -792,21 +792,21 @@ function R({
792
792
  size: r = "md",
793
793
  title: a
794
794
  }) {
795
- const o = St[i];
796
- if (!o)
795
+ const d = St[i];
796
+ if (!d)
797
797
  throw new Error(`Unknown icon name: ${i}`);
798
- const d = v(n), l = a?.trim();
799
- if (!t && !l)
798
+ const o = b(n), s = a?.trim();
799
+ if (!t && !s)
800
800
  throw new Error("title must be non-empty when ariaHidden is false.");
801
- if (!t && !d)
801
+ if (!t && !o)
802
802
  throw new Error("id must be provided when ariaHidden is false.");
803
- const p = t ? void 0 : `${d}-title`, s = [];
804
- return t || s.push({
803
+ const p = t ? void 0 : `${o}-title`, l = [];
804
+ return t || l.push({
805
805
  kind: "element",
806
806
  tag: "title",
807
807
  attrs: { id: p },
808
- children: [{ kind: "text", value: l }]
809
- }), s.push(...xt(o)), {
808
+ children: [{ kind: "text", value: s }]
809
+ }), l.push(...xt(d)), {
810
810
  kind: "element",
811
811
  tag: "svg",
812
812
  attrs: {
@@ -817,14 +817,14 @@ function R({
817
817
  "data-size": r,
818
818
  fill: "none",
819
819
  height: "24",
820
- id: d,
820
+ id: o,
821
821
  role: t ? void 0 : "img",
822
822
  stroke: "currentColor",
823
823
  "stroke-width": "1.75",
824
824
  viewBox: "0 0 24 24",
825
825
  xmlns: "http://www.w3.org/2000/svg"
826
826
  },
827
- children: s
827
+ children: l
828
828
  };
829
829
  }
830
830
  function Wt(t) {
@@ -950,7 +950,7 @@ function Ut({
950
950
  size: e = "md",
951
951
  tone: i = "default"
952
952
  } = {}) {
953
- const r = v(t), o = [
953
+ const r = b(t), d = [
954
954
  {
955
955
  kind: "element",
956
956
  tag: "svg",
@@ -969,13 +969,13 @@ function Ut({
969
969
  [360, 660],
970
970
  [360, 360],
971
971
  [360, 60]
972
- ].map(([d, l]) => ({
972
+ ].map(([o, s]) => ({
973
973
  kind: "element",
974
974
  tag: "rect",
975
975
  attrs: {
976
976
  class: "cell",
977
- x: String(d),
978
- y: String(l),
977
+ x: String(o),
978
+ y: String(s),
979
979
  width: "180",
980
980
  height: "180"
981
981
  },
@@ -983,7 +983,7 @@ function Ut({
983
983
  }))
984
984
  }
985
985
  ];
986
- return n && o.push({
986
+ return n && d.push({
987
987
  kind: "element",
988
988
  tag: "span",
989
989
  attrs: { class: "visually-hidden" },
@@ -998,7 +998,7 @@ function Ut({
998
998
  id: r,
999
999
  role: n ? "status" : void 0
1000
1000
  },
1001
- children: o
1001
+ children: d
1002
1002
  };
1003
1003
  }
1004
1004
  function bt(t = {}) {
@@ -1079,23 +1079,23 @@ function ht(t) {
1079
1079
  controls: i,
1080
1080
  disabled: r,
1081
1081
  disclosure: a,
1082
- form: o,
1083
- haspopup: d,
1084
- id: l,
1082
+ form: d,
1083
+ haspopup: o,
1084
+ id: s,
1085
1085
  icon: p,
1086
- iconMirrored: s,
1086
+ iconMirrored: l,
1087
1087
  iconPlacement: c = "start",
1088
1088
  label: h,
1089
- labelVisibility: b = "visible",
1090
- name: w,
1091
- size: f = "md",
1089
+ labelVisibility: g = "visible",
1090
+ name: y,
1091
+ size: v = "md",
1092
1092
  tone: z = "default",
1093
- type: q,
1094
- value: x
1095
- } = t, k = p || void 0, C = !!k;
1096
- if (b !== "visible" && !C)
1093
+ type: M,
1094
+ value: S
1095
+ } = t, w = p || void 0, x = !!w;
1096
+ if (g !== "visible" && !x)
1097
1097
  throw new Error("labelVisibility requires icon when label is not visible.");
1098
- const E = C && k ? {
1098
+ const E = x && w ? {
1099
1099
  kind: "element",
1100
1100
  tag: "span",
1101
1101
  attrs: { class: "icon-wrapper" },
@@ -1104,8 +1104,8 @@ function ht(t) {
1104
1104
  kind: "raw",
1105
1105
  html: Wt({
1106
1106
  ariaHidden: !0,
1107
- mirrored: s,
1108
- name: k,
1107
+ mirrored: l,
1108
+ name: w,
1109
1109
  size: "fill"
1110
1110
  })
1111
1111
  },
@@ -1116,27 +1116,27 @@ function ht(t) {
1116
1116
  }
1117
1117
  ] : []
1118
1118
  ]
1119
- } : null, S = {
1119
+ } : null, L = {
1120
1120
  kind: "element",
1121
1121
  tag: "span",
1122
1122
  attrs: { class: "label" },
1123
1123
  children: [{ kind: "text", value: h }]
1124
- }, I = n ? {
1124
+ }, A = n ? {
1125
1125
  kind: "element",
1126
1126
  tag: "span",
1127
1127
  attrs: { class: "status" },
1128
1128
  children: [{ kind: "text", value: ", busy" }]
1129
- } : null, A = n && !C ? {
1129
+ } : null, V = n && !x ? {
1130
1130
  kind: "element",
1131
1131
  tag: "span",
1132
1132
  attrs: { class: "spinner-overlay" },
1133
1133
  children: [
1134
1134
  {
1135
1135
  kind: "raw",
1136
- html: bt({ size: $t[f] })
1136
+ html: bt({ size: $t[v] })
1137
1137
  }
1138
1138
  ]
1139
- } : null, V = E ? c === "end" ? [S, E] : [E, S] : A ? [A, S] : [S], M = I ? [...V, I] : V, N = Et(n);
1139
+ } : null, q = E ? c === "end" ? [L, E] : [E, L] : V ? [V, L] : [L], I = A ? [...q, A] : q, N = Et(n);
1140
1140
  return {
1141
1141
  kind: "element",
1142
1142
  tag: "button",
@@ -1144,21 +1144,21 @@ function ht(t) {
1144
1144
  "aria-controls": a && i || void 0,
1145
1145
  "aria-disabled": N["aria-disabled"],
1146
1146
  "aria-expanded": a ? "false" : void 0,
1147
- "aria-haspopup": d || void 0,
1147
+ "aria-haspopup": o || void 0,
1148
1148
  class: "set-button",
1149
1149
  "data-activity": N["data-activity"],
1150
1150
  "data-appearance": e,
1151
- "data-label-visibility": b === "visible" ? void 0 : b,
1152
- "data-size": f,
1151
+ "data-label-visibility": g === "visible" ? void 0 : g,
1152
+ "data-size": v,
1153
1153
  "data-tone": z === "neutral" ? "neutral" : void 0,
1154
1154
  disabled: !!r,
1155
- form: o || void 0,
1156
- id: l || void 0,
1157
- name: w || void 0,
1158
- type: q || "button",
1159
- value: x || void 0
1155
+ form: d || void 0,
1156
+ id: s || void 0,
1157
+ name: y || void 0,
1158
+ type: M || "button",
1159
+ value: S || void 0
1160
1160
  },
1161
- children: M
1161
+ children: I
1162
1162
  };
1163
1163
  }
1164
1164
  function mt(t) {
@@ -1404,16 +1404,16 @@ function Kt({
1404
1404
  inlineSize: i = "full",
1405
1405
  message: r,
1406
1406
  size: a = "md",
1407
- tone: o,
1408
- title: d
1407
+ tone: d,
1408
+ title: o
1409
1409
  }) {
1410
- const l = v(e), p = n.trim() === "" ? U : n, s = [];
1411
- return d && s.push({
1410
+ const s = b(e), p = n.trim() === "" ? U : n, l = [];
1411
+ return o && l.push({
1412
1412
  kind: "element",
1413
1413
  tag: "p",
1414
1414
  attrs: { class: "title" },
1415
- children: [{ kind: "text", value: d }]
1416
- }), s.push({
1415
+ children: [{ kind: "text", value: o }]
1416
+ }), l.push({
1417
1417
  kind: "element",
1418
1418
  tag: "p",
1419
1419
  attrs: { class: "message" },
@@ -1427,9 +1427,9 @@ function Kt({
1427
1427
  "data-dismissible-label": t ? p : void 0,
1428
1428
  "data-inline-size": i === "fit" ? "fit" : void 0,
1429
1429
  "data-size": a,
1430
- "data-tone": o || void 0,
1431
- id: l,
1432
- role: jt(o)
1430
+ "data-tone": d || void 0,
1431
+ id: s,
1432
+ role: jt(d)
1433
1433
  },
1434
1434
  children: [
1435
1435
  {
@@ -1439,7 +1439,7 @@ function Kt({
1439
1439
  children: [
1440
1440
  R({
1441
1441
  ariaHidden: !0,
1442
- name: Ft(o),
1442
+ name: Ft(d),
1443
1443
  size: a
1444
1444
  })
1445
1445
  ]
@@ -1448,7 +1448,7 @@ function Kt({
1448
1448
  kind: "element",
1449
1449
  tag: "div",
1450
1450
  attrs: { class: "content" },
1451
- children: s
1451
+ children: l
1452
1452
  }
1453
1453
  ]
1454
1454
  };
@@ -1652,28 +1652,28 @@ function Ct(t) {
1652
1652
  download: i,
1653
1653
  href: r,
1654
1654
  id: a,
1655
- icon: o,
1656
- iconPlacement: d = "start",
1657
- label: l,
1655
+ icon: d,
1656
+ iconPlacement: o = "start",
1657
+ label: s,
1658
1658
  labelVisibility: p = "visible",
1659
- rel: s,
1659
+ rel: l,
1660
1660
  size: c = "md",
1661
1661
  target: h,
1662
- tone: b = "default",
1663
- underline: w
1664
- } = t, f = v(a), z = o?.trim() || void 0;
1662
+ tone: g = "default",
1663
+ underline: y
1664
+ } = t, v = b(a), z = d?.trim() || void 0;
1665
1665
  if (p !== "visible" && !!!z)
1666
1666
  throw new Error("labelVisibility requires icon when label is not visible.");
1667
- const x = Qt(i), k = z ? {
1667
+ const S = Qt(i), w = z ? {
1668
1668
  kind: "element",
1669
1669
  tag: "span",
1670
1670
  attrs: { class: "icon-wrapper" },
1671
1671
  children: [{ kind: "raw", html: z }]
1672
- } : null, C = {
1672
+ } : null, x = {
1673
1673
  kind: "element",
1674
1674
  tag: "span",
1675
1675
  attrs: { class: "label" },
1676
- children: [{ kind: "text", value: l }]
1676
+ children: [{ kind: "text", value: s }]
1677
1677
  };
1678
1678
  return {
1679
1679
  kind: "element",
@@ -1684,15 +1684,15 @@ function Ct(t) {
1684
1684
  "data-appearance": n === "text" ? void 0 : n,
1685
1685
  "data-label-visibility": p === "visible" ? void 0 : p,
1686
1686
  "data-size": c,
1687
- "data-tone": b === "neutral" ? "neutral" : void 0,
1688
- "data-underline": w && n === "text" ? !0 : void 0,
1689
- download: x,
1687
+ "data-tone": g === "neutral" ? "neutral" : void 0,
1688
+ "data-underline": y && n === "text" ? !0 : void 0,
1689
+ download: S,
1690
1690
  href: r,
1691
- id: f,
1692
- rel: x ? void 0 : s || void 0,
1693
- target: x ? void 0 : h || void 0
1691
+ id: v,
1692
+ rel: S ? void 0 : l || void 0,
1693
+ target: S ? void 0 : h || void 0
1694
1694
  },
1695
- children: k ? d === "end" ? [C, k] : [k, C] : [C]
1695
+ children: w ? o === "end" ? [x, w] : [w, x] : [x]
1696
1696
  };
1697
1697
  }
1698
1698
  function vi(t) {
@@ -1717,7 +1717,7 @@ const fi = {
1717
1717
  },
1718
1718
  current: {
1719
1719
  description: "Marks the link as the current item in its set; emits `aria-current` with this value.",
1720
- type: { kind: "enum", values: ["page"] }
1720
+ type: { kind: "enum", values: ["page", "true"] }
1721
1721
  },
1722
1722
  download: {
1723
1723
  description: "Saves the target instead of navigating. Pass a filename or `true`.",
@@ -1904,11 +1904,11 @@ function Jt({
1904
1904
  dismissibleLabel: i = j,
1905
1905
  id: r,
1906
1906
  message: a,
1907
- tone: o
1907
+ tone: d
1908
1908
  }) {
1909
1909
  if (!!t != !!n)
1910
1910
  throw new Error("actionHref and actionLabel must be provided together.");
1911
- const d = v(r), l = i.trim() === "" ? j : i, p = [{ kind: "text", value: a }];
1911
+ const o = b(r), s = i.trim() === "" ? j : i, p = [{ kind: "text", value: a }];
1912
1912
  return t && n && (p.push({ kind: "text", value: " " }), p.push(
1913
1913
  Ct({
1914
1914
  href: t,
@@ -1923,9 +1923,9 @@ function Jt({
1923
1923
  "data-set-content-theme": "dark",
1924
1924
  "data-set-surface": "default",
1925
1925
  "data-dismissible": e,
1926
- "data-dismissible-label": e ? l : void 0,
1927
- "data-tone": o || void 0,
1928
- id: d
1926
+ "data-dismissible-label": e ? s : void 0,
1927
+ "data-tone": d || void 0,
1928
+ id: o
1929
1929
  },
1930
1930
  children: [
1931
1931
  {
@@ -2067,111 +2067,110 @@ const wi = {
2067
2067
  }, K = "set-image";
2068
2068
  function ee({
2069
2069
  adaptive: t,
2070
- animated: n,
2071
- alt: e = "",
2072
- aspectRatio: i,
2073
- fit: r = "intrinsic",
2074
- gravity: a = "C",
2075
- height: o,
2070
+ alt: n = "",
2071
+ aspectRatio: e,
2072
+ fit: i = "intrinsic",
2073
+ gravity: r = "C",
2074
+ height: a,
2076
2075
  id: d,
2077
- lazy: l,
2078
- leadSrc: p,
2079
- priority: s,
2080
- radius: c,
2081
- shadow: h,
2082
- sizes: b,
2083
- sources: w,
2084
- src: f,
2085
- srcSet: z,
2086
- still: q,
2087
- width: x
2076
+ lazy: o,
2077
+ leadSrc: s,
2078
+ priority: p,
2079
+ radius: l,
2080
+ shadow: c,
2081
+ sizes: h,
2082
+ sources: g,
2083
+ src: y,
2084
+ srcSet: v,
2085
+ stillSrc: z,
2086
+ width: M
2088
2087
  }) {
2089
- const k = r === "cover", C = v(d), E = f.trim(), S = z?.trim(), I = p?.trim(), A = q?.trim(), V = b?.trim(), M = w?.map((u, L) => {
2090
- const T = u.srcSet.trim(), y = u.media?.trim(), g = u.type?.trim(), Nt = u.sizes?.trim(), Bt = u.leadSrc?.trim(), Ot = u.still?.trim();
2088
+ const S = i === "cover", w = b(d), x = y.trim(), E = v?.trim(), L = s?.trim(), A = z?.trim(), V = h?.trim(), q = g?.map((u, C) => {
2089
+ const T = u.srcSet.trim(), f = u.media?.trim(), k = u.type?.trim(), Nt = u.sizes?.trim(), Bt = u.leadSrc?.trim(), Ot = u.stillSrc?.trim();
2091
2090
  if (!T)
2092
- throw new Error(`sources[${L}].srcSet must be non-empty.`);
2091
+ throw new Error(`sources[${C}].srcSet must be non-empty.`);
2093
2092
  return {
2094
2093
  height: u.height,
2095
2094
  leadSrc: Bt || void 0,
2096
- media: y || void 0,
2095
+ media: f || void 0,
2097
2096
  sizes: Nt || void 0,
2098
2097
  srcSet: T,
2099
- still: Ot || void 0,
2100
- type: g || void 0,
2098
+ stillSrc: Ot || void 0,
2099
+ type: k || void 0,
2101
2100
  width: u.width
2102
2101
  };
2103
2102
  }) || [];
2104
- if (!E)
2103
+ if (!x)
2105
2104
  throw new Error("src must be a non-empty string.");
2106
2105
  if (t && [
2106
+ x,
2107
2107
  E,
2108
- S,
2109
- ...M.map((u) => u.srcSet)
2108
+ ...q.map((u) => u.srcSet)
2110
2109
  ].some((u) => u?.includes("#")))
2111
2110
  throw new Error("adaptive sources must not contain URL fragments.");
2112
- const N = !!(n && t), nt = !!(n && I), $ = !!I || M.some((u) => u.leadSrc);
2113
- if (!n && $)
2114
- throw new Error("leadSrc requires animated.");
2115
- if (n) {
2111
+ const I = !!A, N = !!(I && t), nt = !!(I && L), $ = !!L || q.some((u) => u.leadSrc);
2112
+ if (!I && $)
2113
+ throw new Error("leadSrc requires a stillSrc.");
2114
+ if (!I && q.some((u) => u.stillSrc))
2115
+ throw new Error("sources stillSrc requires a top-level stillSrc.");
2116
+ if (I) {
2116
2117
  const u = [
2118
+ x,
2117
2119
  E,
2118
- S,
2119
- I,
2120
- ...M.flatMap((y) => [y.srcSet, y.leadSrc])
2121
- ].filter((y) => !!y), L = u.filter((y) => y.includes("{scheme}"));
2122
- if (t && L.length !== u.length)
2120
+ L,
2121
+ ...q.flatMap((f) => [f.srcSet, f.leadSrc])
2122
+ ].filter((f) => !!f), C = u.filter((f) => f.includes("{scheme}"));
2123
+ if (t && C.length !== u.length)
2123
2124
  throw new Error(
2124
2125
  "adaptive animated sources must contain a {scheme} placeholder."
2125
2126
  );
2126
- if (!t && L.length > 0)
2127
+ if (!t && C.length > 0)
2127
2128
  throw new Error(
2128
2129
  "the {scheme} placeholder requires adaptive to enable light/dark."
2129
2130
  );
2130
- if (!A)
2131
- throw new Error("animated requires a still.");
2132
2131
  if ([
2133
2132
  A,
2134
- ...M.map((y) => y.still)
2135
- ].filter((y) => !!y).some((y) => y.includes("#")))
2136
- throw new Error("animated still must not contain URL fragments.");
2133
+ ...q.map((f) => f.stillSrc)
2134
+ ].filter((f) => !!f).some((f) => f.includes("#")))
2135
+ throw new Error("stillSrc must not contain URL fragments.");
2137
2136
  }
2138
- const kt = (u, L) => u.split(/,\s+/).map((T) => {
2139
- const [y, ...g] = T.trim().split(/\s+/);
2140
- if (!y || g.length > 1)
2137
+ const kt = (u, C) => u.split(/,\s+/).map((T) => {
2138
+ const [f, ...k] = T.trim().split(/\s+/);
2139
+ if (!f || k.length > 1)
2141
2140
  throw new Error(
2142
2141
  "adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace."
2143
2142
  );
2144
- return [`${y}#${L}`, ...g].join(" ");
2143
+ return [`${f}#${C}`, ...k].join(" ");
2145
2144
  }).join(", "), rt = (u) => {
2146
- const L = {
2145
+ const C = {
2147
2146
  kind: "element",
2148
2147
  tag: "img",
2149
2148
  attrs: {
2150
- alt: e,
2149
+ alt: n,
2151
2150
  class: "img",
2152
- "data-scheme": u && M.length === 0 ? u : void 0,
2153
- fetchpriority: s ? "high" : void 0,
2154
- height: k ? void 0 : o ? String(o) : void 0,
2155
- loading: l && !s ? "lazy" : void 0,
2156
- sizes: M.length > 0 ? void 0 : V || void 0,
2157
- src: u ? `${E}#${u}` : E,
2158
- srcset: S && u ? kt(S, u) : S || void 0,
2159
- width: k ? void 0 : x ? String(x) : void 0
2151
+ "data-scheme": u && q.length === 0 ? u : void 0,
2152
+ fetchpriority: p ? "high" : void 0,
2153
+ height: S ? void 0 : a ? String(a) : void 0,
2154
+ loading: o && !p ? "lazy" : void 0,
2155
+ sizes: q.length > 0 ? void 0 : V || void 0,
2156
+ src: u ? `${x}#${u}` : x,
2157
+ srcset: E && u ? kt(E, u) : E || void 0,
2158
+ width: S ? void 0 : M ? String(M) : void 0
2160
2159
  },
2161
2160
  children: []
2162
2161
  };
2163
- if (M.length === 0)
2164
- return L;
2165
- const T = M.map((y) => ({
2162
+ if (q.length === 0)
2163
+ return C;
2164
+ const T = q.map((f) => ({
2166
2165
  kind: "element",
2167
2166
  tag: "source",
2168
2167
  attrs: {
2169
- height: y.height ? String(y.height) : void 0,
2170
- media: y.media,
2171
- sizes: y.sizes,
2172
- srcset: u ? kt(y.srcSet, u) : y.srcSet,
2173
- type: y.type,
2174
- width: y.width ? String(y.width) : void 0
2168
+ height: f.height ? String(f.height) : void 0,
2169
+ media: f.media,
2170
+ sizes: f.sizes,
2171
+ srcset: u ? kt(f.srcSet, u) : f.srcSet,
2172
+ type: f.type,
2173
+ width: f.width ? String(f.width) : void 0
2175
2174
  },
2176
2175
  children: []
2177
2176
  }));
@@ -2179,21 +2178,21 @@ function ee({
2179
2178
  kind: "element",
2180
2179
  tag: "picture",
2181
2180
  attrs: { "data-scheme": u },
2182
- children: [...T, L]
2181
+ children: [...T, C]
2183
2182
  };
2184
- }, at = "(prefers-reduced-motion: reduce)", W = (u, L) => L ? u.replaceAll("{scheme}", L) : u, ot = (u, L) => L ? `${u}#${L}` : u, gt = (u) => {
2185
- const L = M.filter((g) => g.still).map((g) => ({
2183
+ }, at = "(prefers-reduced-motion: reduce)", W = (u, C) => C ? u.replaceAll("{scheme}", C) : u, ot = (u, C) => C ? `${u}#${C}` : u, gt = (u) => {
2184
+ const C = q.filter((k) => k.stillSrc).map((k) => ({
2186
2185
  kind: "element",
2187
2186
  tag: "source",
2188
2187
  attrs: {
2189
- height: g.height ? String(g.height) : void 0,
2190
- media: g.media ? `${at} and ${g.media}` : at,
2191
- srcset: ot(g.still, u),
2192
- width: g.width ? String(g.width) : void 0
2188
+ height: k.height ? String(k.height) : void 0,
2189
+ media: k.media ? `${at} and ${k.media}` : at,
2190
+ srcset: ot(k.stillSrc, u),
2191
+ width: k.width ? String(k.width) : void 0
2193
2192
  },
2194
2193
  children: []
2195
2194
  }));
2196
- L.push({
2195
+ C.push({
2197
2196
  kind: "element",
2198
2197
  tag: "source",
2199
2198
  attrs: {
@@ -2202,31 +2201,31 @@ function ee({
2202
2201
  },
2203
2202
  children: []
2204
2203
  });
2205
- const T = M.map((g) => ({
2204
+ const T = q.map((k) => ({
2206
2205
  kind: "element",
2207
2206
  tag: "source",
2208
2207
  attrs: {
2209
- height: g.height ? String(g.height) : void 0,
2210
- media: g.media,
2211
- sizes: g.sizes,
2212
- srcset: W(g.srcSet, u),
2213
- type: g.type,
2214
- width: g.width ? String(g.width) : void 0
2208
+ height: k.height ? String(k.height) : void 0,
2209
+ media: k.media,
2210
+ sizes: k.sizes,
2211
+ srcset: W(k.srcSet, u),
2212
+ type: k.type,
2213
+ width: k.width ? String(k.width) : void 0
2215
2214
  },
2216
2215
  children: []
2217
- })), y = {
2216
+ })), f = {
2218
2217
  kind: "element",
2219
2218
  tag: "img",
2220
2219
  attrs: {
2221
- alt: e,
2220
+ alt: n,
2222
2221
  class: "img",
2223
- fetchpriority: s ? "high" : void 0,
2224
- height: k ? void 0 : o ? String(o) : void 0,
2225
- loading: l && !s ? "lazy" : void 0,
2226
- sizes: M.length > 0 ? void 0 : V || void 0,
2227
- src: W(E, u),
2228
- srcset: S ? W(S, u) : void 0,
2229
- width: k ? void 0 : x ? String(x) : void 0
2222
+ fetchpriority: p ? "high" : void 0,
2223
+ height: S ? void 0 : a ? String(a) : void 0,
2224
+ loading: o && !p ? "lazy" : void 0,
2225
+ sizes: q.length > 0 ? void 0 : V || void 0,
2226
+ src: W(x, u),
2227
+ srcset: E ? W(E, u) : void 0,
2228
+ width: S ? void 0 : M ? String(M) : void 0
2230
2229
  },
2231
2230
  children: []
2232
2231
  };
@@ -2234,44 +2233,44 @@ function ee({
2234
2233
  kind: "element",
2235
2234
  tag: "picture",
2236
2235
  attrs: { "data-scheme": u },
2237
- children: [...L, ...T, y]
2236
+ children: [...C, ...T, f]
2238
2237
  };
2239
2238
  }, Vt = (u) => {
2240
- const L = "(prefers-reduced-motion: no-preference)", T = M.map((g) => {
2241
- if (g.leadSrc)
2239
+ const C = "(prefers-reduced-motion: no-preference)", T = q.map((k) => {
2240
+ if (k.leadSrc)
2242
2241
  return {
2243
2242
  kind: "element",
2244
2243
  tag: "source",
2245
2244
  attrs: {
2246
- height: g.height ? String(g.height) : void 0,
2247
- media: g.media ? `${L} and ${g.media}` : L,
2248
- sizes: g.sizes,
2249
- srcset: W(g.leadSrc, u),
2250
- type: g.type,
2251
- width: g.width ? String(g.width) : void 0
2245
+ height: k.height ? String(k.height) : void 0,
2246
+ media: k.media ? `${C} and ${k.media}` : C,
2247
+ sizes: k.sizes,
2248
+ srcset: W(k.leadSrc, u),
2249
+ type: k.type,
2250
+ width: k.width ? String(k.width) : void 0
2252
2251
  },
2253
2252
  children: []
2254
2253
  };
2255
- }).filter((g) => !!g);
2254
+ }).filter((k) => !!k);
2256
2255
  T.push({
2257
2256
  kind: "element",
2258
2257
  tag: "source",
2259
2258
  attrs: {
2260
- media: L,
2261
- sizes: M.length > 0 ? void 0 : V || void 0,
2262
- srcset: W(I, u)
2259
+ media: C,
2260
+ sizes: q.length > 0 ? void 0 : V || void 0,
2261
+ srcset: W(L, u)
2263
2262
  },
2264
2263
  children: []
2265
2264
  });
2266
- const y = {
2265
+ const f = {
2267
2266
  kind: "element",
2268
2267
  tag: "img",
2269
2268
  attrs: {
2270
2269
  alt: "",
2271
2270
  class: "img",
2272
- height: k ? void 0 : o ? String(o) : void 0,
2271
+ height: S ? void 0 : a ? String(a) : void 0,
2273
2272
  src: ot(A, u),
2274
- width: k ? void 0 : x ? String(x) : void 0
2273
+ width: S ? void 0 : M ? String(M) : void 0
2275
2274
  },
2276
2275
  children: []
2277
2276
  };
@@ -2279,24 +2278,24 @@ function ee({
2279
2278
  kind: "element",
2280
2279
  tag: "picture",
2281
2280
  attrs: { "data-scheme": u, "data-layer": "lead" },
2282
- children: [...T, y]
2281
+ children: [...T, f]
2283
2282
  };
2284
- }, dt = (u) => nt ? [gt(u), Vt(u)] : [gt(u)], Ht = n ? N ? [...dt("light"), ...dt("dark")] : dt() : t ? [rt("light"), rt("dark")] : [rt()], G = [];
2285
- return o && G.push(`--set-image-block-size: ${o / 16}rem`), x && G.push(`--set-image-inline-size: ${x / 16}rem`), {
2283
+ }, dt = (u) => nt ? [gt(u), Vt(u)] : [gt(u)], Ht = I ? N ? [...dt("light"), ...dt("dark")] : dt() : t ? [rt("light"), rt("dark")] : [rt()], G = [];
2284
+ return a && G.push(`--set-image-block-size: ${a / 16}rem`), M && G.push(`--set-image-inline-size: ${M / 16}rem`), {
2286
2285
  kind: "element",
2287
2286
  tag: K,
2288
2287
  attrs: {
2289
2288
  class: "set-image",
2290
2289
  "data-adaptive": !!t,
2291
- "data-animated": !!n,
2290
+ "data-animated": !!I,
2292
2291
  "data-sequenced": nt,
2293
- "data-aspect-ratio": k && !o ? i : void 0,
2294
- "data-fluid": r === "fluid",
2295
- "data-gravity": k && a !== "C" ? a : void 0,
2296
- "data-shadow": !!h,
2297
- "data-object-fit": k ? "cover" : void 0,
2298
- "data-radius": !!c,
2299
- id: C,
2292
+ "data-aspect-ratio": S && !a ? e : void 0,
2293
+ "data-fluid": i === "fluid",
2294
+ "data-gravity": S && r !== "C" ? r : void 0,
2295
+ "data-shadow": !!c,
2296
+ "data-object-fit": S ? "cover" : void 0,
2297
+ "data-radius": !!l,
2298
+ id: w,
2300
2299
  style: G.length > 0 ? G.join("; ") : void 0
2301
2300
  },
2302
2301
  children: Ht
@@ -2336,12 +2335,7 @@ const Si = {
2336
2335
  props: {
2337
2336
  adaptive: {
2338
2337
  default: !1,
2339
- description: "Shows the image's light or dark variant to match the surrounding color scheme. Use with adaptive assets exported from Screen, which carry both variants in one file; the component selects one by adding `#light`/`#dark` to the URL. With `animated`, it pairs light/dark webp instead, via a `{scheme}` placeholder in the URLs.",
2340
- type: { kind: "boolean" }
2341
- },
2342
- animated: {
2343
- default: !1,
2344
- description: "Renders an animated image (e.g. `webp`) with a required `still` shown when the user prefers reduced motion. Combine with `adaptive` for light/dark theming: the `src`/`srcSet`/`sources` URLs then carry no Cloudinary version and a `{scheme}` placeholder — matching Screen's animated exports — which the component substitutes across a light/dark pair. The `still` gets `#light`/`#dark` appended. Without `adaptive`, renders a single, unthemed animated asset. Add a `leadSrc` to sequence: it plays once as an overlay, then reveals `src` after a fixed hold.",
2338
+ description: "Shows the image's light or dark variant to match the surrounding color scheme. Use with adaptive assets exported from Screen, which carry both variants in one file; the component selects one by adding `#light`/`#dark` to the URL. With an animated image (opted in by `stillSrc`), it pairs light/dark webp instead, via a `{scheme}` placeholder in the URLs.",
2345
2339
  type: { kind: "boolean" }
2346
2340
  },
2347
2341
  alt: {
@@ -2427,11 +2421,11 @@ const Si = {
2427
2421
  type: { kind: "string" }
2428
2422
  },
2429
2423
  leadSrc: {
2430
- description: "Intro overlay for this source in an `animated` sequence.",
2424
+ description: "Intro overlay for this source in an animated sequence.",
2431
2425
  type: { kind: "string" }
2432
2426
  },
2433
- still: {
2434
- description: "Reduced-motion still for this source, used when `animated`. For a light/dark still, use an adaptive SVG.",
2427
+ stillSrc: {
2428
+ description: "Reduced-motion still for this source's animated asset. For a light/dark still, use an adaptive SVG.",
2435
2429
  type: { kind: "string" }
2436
2430
  },
2437
2431
  type: {
@@ -2450,12 +2444,11 @@ const Si = {
2450
2444
  type: { kind: "string" }
2451
2445
  },
2452
2446
  leadSrc: {
2453
- description: "An intro overlay that sequences an `animated` image: `leadSrc` plays once, then the component reveals `src` after a fixed hold. Follows the same `{scheme}` rules as `animated` sources.",
2447
+ description: "An intro overlay that sequences an animated image (requires `stillSrc`): `leadSrc` plays once, then the component reveals `src` after a fixed hold. Follows the same `{scheme}` rules as animated sources (see `stillSrc`).",
2454
2448
  type: { kind: "string" }
2455
2449
  },
2456
- still: {
2457
- description: "Reduced-motion still shown when `animated` and the user prefers reduced motion. Any image works; for a light/dark still use an adaptive SVG exported from Screen, which the component selects with `#light`/`#dark` when combined with `adaptive`.",
2458
- requiredWhen: "`animated` is set",
2450
+ stillSrc: {
2451
+ description: "Reduced-motion still; providing it marks the image as animated (e.g. an animated `webp` in `src`). The still is shown when the user prefers reduced motion. Any image works; for a light/dark still use an adaptive SVG exported from Screen, which the component selects with `#light`/`#dark` when combined with `adaptive`. With `adaptive`, the animated `src`/`srcSet`/`sources` URLs carry no Cloudinary version and a `{scheme}` placeholder — matching Screen's animated exports — which the component substitutes across a light/dark pair; without it, a single unthemed animated asset renders. Add a `leadSrc` to sequence: it plays once as an overlay, then reveals `src` after a fixed hold.",
2459
2452
  type: { kind: "string" }
2460
2453
  },
2461
2454
  src: {
@@ -2479,7 +2472,7 @@ const Si = {
2479
2472
  {
2480
2473
  target: { on: "host" },
2481
2474
  attribute: "data-animated",
2482
- condition: { kind: "when-truthy", prop: "animated" }
2475
+ condition: { kind: "when-non-empty", prop: "stillSrc" }
2483
2476
  },
2484
2477
  {
2485
2478
  target: { on: "host" },
@@ -2598,7 +2591,7 @@ function oe({
2598
2591
  labelLight: i = pt,
2599
2592
  size: r = "md"
2600
2593
  }) {
2601
- const a = v(n), o = e.trim() === "" ? lt : e, d = i.trim() === "" ? pt : i;
2594
+ const a = b(n), d = e.trim() === "" ? lt : e, o = i.trim() === "" ? pt : i;
2602
2595
  return {
2603
2596
  kind: "element",
2604
2597
  tag: X,
@@ -2617,8 +2610,8 @@ function oe({
2617
2610
  type: "button"
2618
2611
  },
2619
2612
  children: [
2620
- vt("dark", o),
2621
- vt("light", d)
2613
+ vt("dark", d),
2614
+ vt("light", o)
2622
2615
  ]
2623
2616
  }
2624
2617
  ]
@@ -2776,31 +2769,31 @@ function se({
2776
2769
  size: i = "md",
2777
2770
  triggerActivity: r,
2778
2771
  triggerIcon: a,
2779
- triggerIconMirrored: o,
2780
- triggerIconPlacement: d,
2781
- triggerLabel: l,
2772
+ triggerIconMirrored: d,
2773
+ triggerIconPlacement: o,
2774
+ triggerLabel: s,
2782
2775
  triggerLabelVisibility: p
2783
2776
  }) {
2784
- const s = n.trim();
2785
- if (!s)
2777
+ const l = n.trim();
2778
+ if (!l)
2786
2779
  throw new Error("id must be a non-empty string.");
2787
- if (!H(s))
2780
+ if (!H(l))
2788
2781
  throw new Error(
2789
2782
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
2790
2783
  );
2791
2784
  if (!Array.isArray(e))
2792
2785
  throw new Error("items must be an array.");
2793
- const c = `${s}-button`, h = `${s}-popup`, b = e.map((w) => ({
2786
+ const c = `${l}-button`, h = `${l}-popup`, g = e.map((y) => ({
2794
2787
  kind: "element",
2795
2788
  tag: "button",
2796
2789
  attrs: {
2797
- "aria-disabled": w.disabled ? "true" : void 0,
2798
- "data-item-id": w.id || void 0,
2790
+ "aria-disabled": y.disabled ? "true" : void 0,
2791
+ "data-item-id": y.id || void 0,
2799
2792
  role: "menuitem",
2800
2793
  tabindex: "-1",
2801
2794
  type: "button"
2802
2795
  },
2803
- children: [{ kind: "text", value: w.label }]
2796
+ children: [{ kind: "text", value: y.label }]
2804
2797
  }));
2805
2798
  return {
2806
2799
  kind: "element",
@@ -2809,7 +2802,7 @@ function se({
2809
2802
  class: "set-menu",
2810
2803
  "data-align": t === "start" ? void 0 : t,
2811
2804
  "data-size": i,
2812
- id: s
2805
+ id: l
2813
2806
  },
2814
2807
  children: [
2815
2808
  {
@@ -2824,10 +2817,10 @@ function se({
2824
2817
  disclosure: !0,
2825
2818
  haspopup: "menu",
2826
2819
  icon: a,
2827
- iconMirrored: o,
2828
- iconPlacement: d,
2820
+ iconMirrored: d,
2821
+ iconPlacement: o,
2829
2822
  id: c,
2830
- label: l,
2823
+ label: s,
2831
2824
  labelVisibility: p,
2832
2825
  size: i,
2833
2826
  tone: "neutral",
@@ -2845,7 +2838,7 @@ function se({
2845
2838
  id: h,
2846
2839
  role: "menu"
2847
2840
  },
2848
- children: b
2841
+ children: g
2849
2842
  }
2850
2843
  ]
2851
2844
  };
@@ -2956,9 +2949,9 @@ function le() {
2956
2949
  e.preventDefault(), this.#d(!0);
2957
2950
  return;
2958
2951
  }
2959
- const a = this.ownerDocument.activeElement, o = this.#c(), d = o.indexOf(a);
2952
+ const a = this.ownerDocument.activeElement, d = this.#c(), o = d.indexOf(a);
2960
2953
  if (a === i) {
2961
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#l(0)), e.key === "ArrowDown" && (e.preventDefault(), this.#l(0)), e.key === "ArrowUp" && (e.preventDefault(), this.#l(o.length - 1));
2954
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#l(0)), e.key === "ArrowDown" && (e.preventDefault(), this.#l(0)), e.key === "ArrowUp" && (e.preventDefault(), this.#l(d.length - 1));
2962
2955
  return;
2963
2956
  }
2964
2957
  if (r.contains(a)) {
@@ -2966,7 +2959,7 @@ function le() {
2966
2959
  e.preventDefault(), this.#s(a) || (this.#h(a), this.#d(!0));
2967
2960
  return;
2968
2961
  }
2969
- e.key === "ArrowDown" && (e.preventDefault(), this.#o(d + 1)), e.key === "ArrowUp" && (e.preventDefault(), this.#o(d - 1)), e.key === "Home" && (e.preventDefault(), this.#o(0)), e.key === "End" && (e.preventDefault(), this.#o(o.length - 1)), e.key === "Tab" && this.#d(!1);
2962
+ e.key === "ArrowDown" && (e.preventDefault(), this.#o(o + 1)), e.key === "ArrowUp" && (e.preventDefault(), this.#o(o - 1)), e.key === "Home" && (e.preventDefault(), this.#o(0)), e.key === "End" && (e.preventDefault(), this.#o(d.length - 1)), e.key === "Tab" && this.#d(!1);
2970
2963
  }
2971
2964
  }, this.#i = (e) => {
2972
2965
  const i = e.relatedTarget;
@@ -3133,7 +3126,7 @@ function pe({
3133
3126
  label: i = ct,
3134
3127
  size: r = "md"
3135
3128
  } = {}) {
3136
- const a = v(e), o = i.trim() === "" ? ct : i;
3129
+ const a = b(e), d = i.trim() === "" ? ct : i;
3137
3130
  return {
3138
3131
  kind: "element",
3139
3132
  tag: "button",
@@ -3161,7 +3154,7 @@ function pe({
3161
3154
  kind: "element",
3162
3155
  tag: "span",
3163
3156
  attrs: { class: "visually-hidden" },
3164
- children: [{ kind: "text", value: o }]
3157
+ children: [{ kind: "text", value: d }]
3165
3158
  }
3166
3159
  ]
3167
3160
  }
@@ -3244,15 +3237,15 @@ function ue({
3244
3237
  expanderPosition: i = "start",
3245
3238
  id: r,
3246
3239
  items: a,
3247
- label: o,
3248
- size: d = "md"
3240
+ label: d,
3241
+ size: o = "md"
3249
3242
  }) {
3250
- const l = v(r), p = e?.trim() || void 0, s = n?.trim();
3251
- if (t && !s)
3243
+ const s = b(r), p = e?.trim() || void 0, l = n?.trim();
3244
+ if (t && !l)
3252
3245
  throw new Error(
3253
3246
  "contentId must be a non-empty string when collapsible is set."
3254
3247
  );
3255
- if (s && !H(s))
3248
+ if (l && !H(l))
3256
3249
  throw new Error(
3257
3250
  "contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'."
3258
3251
  );
@@ -3265,7 +3258,7 @@ function ue({
3265
3258
  kind: "element",
3266
3259
  tag: "a",
3267
3260
  attrs: {
3268
- "aria-current": h.current ? "page" : void 0,
3261
+ "aria-current": h.current,
3269
3262
  class: "item",
3270
3263
  href: h.href
3271
3264
  },
@@ -3281,15 +3274,15 @@ function ue({
3281
3274
  "data-collapsible": t,
3282
3275
  "data-expander-label": t && p ? p : void 0,
3283
3276
  "data-expander-position": t ? i : void 0,
3284
- "data-size": d,
3285
- id: l
3277
+ "data-size": o,
3278
+ id: s
3286
3279
  },
3287
3280
  children: [
3288
3281
  {
3289
3282
  kind: "element",
3290
3283
  tag: "nav",
3291
3284
  attrs: {
3292
- "aria-label": o || void 0,
3285
+ "aria-label": d || void 0,
3293
3286
  class: "nav"
3294
3287
  },
3295
3288
  children: [
@@ -3298,7 +3291,7 @@ function ue({
3298
3291
  tag: "div",
3299
3292
  attrs: {
3300
3293
  class: "content",
3301
- id: s
3294
+ id: l
3302
3295
  },
3303
3296
  children: [
3304
3297
  {
@@ -3409,9 +3402,8 @@ const qi = {
3409
3402
  kind: "array",
3410
3403
  itemShape: {
3411
3404
  current: {
3412
- default: !1,
3413
- description: 'Emits `aria-current="page"` when true.',
3414
- type: { kind: "boolean" }
3405
+ description: "Marks the item as current; emits `aria-current` with this value.",
3406
+ type: { kind: "enum", values: ["page", "true"] }
3415
3407
  },
3416
3408
  href: {
3417
3409
  description: "Link destination.",
@@ -3519,20 +3511,20 @@ function me({
3519
3511
  inlineSize: i = "full",
3520
3512
  label: r,
3521
3513
  max: a,
3522
- min: o,
3523
- name: d,
3524
- size: l = "md",
3514
+ min: d,
3515
+ name: o,
3516
+ size: s = "md",
3525
3517
  step: p,
3526
- value: s
3518
+ value: l
3527
3519
  }) {
3528
- const c = e.trim(), h = t?.trim(), b = d?.trim();
3520
+ const c = e.trim(), h = t?.trim(), g = o?.trim();
3529
3521
  if (!c)
3530
3522
  throw new Error("id must be a non-empty string.");
3531
3523
  if (!H(c))
3532
3524
  throw new Error(
3533
3525
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
3534
3526
  );
3535
- const w = h ? `${c}-description` : void 0, f = [
3527
+ const y = h ? `${c}-description` : void 0, v = [
3536
3528
  {
3537
3529
  kind: "element",
3538
3530
  tag: "div",
@@ -3548,7 +3540,7 @@ function me({
3548
3540
  kind: "element",
3549
3541
  tag: "output",
3550
3542
  attrs: { class: "output", for: c },
3551
- children: s != null ? [{ kind: "text", value: String(s) }] : []
3543
+ children: l != null ? [{ kind: "text", value: String(l) }] : []
3552
3544
  }
3553
3545
  ]
3554
3546
  },
@@ -3556,24 +3548,24 @@ function me({
3556
3548
  kind: "element",
3557
3549
  tag: "input",
3558
3550
  attrs: {
3559
- "aria-describedby": w,
3551
+ "aria-describedby": y,
3560
3552
  class: "range",
3561
3553
  disabled: !!n,
3562
3554
  id: c,
3563
3555
  max: a != null ? String(a) : void 0,
3564
- min: o != null ? String(o) : void 0,
3565
- name: b || void 0,
3556
+ min: d != null ? String(d) : void 0,
3557
+ name: g || void 0,
3566
3558
  step: p != null ? String(p) : void 0,
3567
3559
  type: "range",
3568
- value: s != null ? String(s) : void 0
3560
+ value: l != null ? String(l) : void 0
3569
3561
  },
3570
3562
  children: []
3571
3563
  }
3572
3564
  ];
3573
- return h && f.push({
3565
+ return h && v.push({
3574
3566
  kind: "element",
3575
3567
  tag: "p",
3576
- attrs: { class: "description", id: w },
3568
+ attrs: { class: "description", id: y },
3577
3569
  children: [{ kind: "text", value: h }]
3578
3570
  }), {
3579
3571
  kind: "element",
@@ -3581,9 +3573,9 @@ function me({
3581
3573
  attrs: {
3582
3574
  class: "set-range",
3583
3575
  "data-inline-size": i === "fit" ? "fit" : void 0,
3584
- "data-size": l
3576
+ "data-size": s
3585
3577
  },
3586
- children: f
3578
+ children: v
3587
3579
  };
3588
3580
  }
3589
3581
  function Ii(t) {
@@ -3628,15 +3620,15 @@ function ke() {
3628
3620
  "value"
3629
3621
  );
3630
3622
  if (!i?.get || !i.set) return;
3631
- const r = i.get, a = i.set, o = () => this.#i();
3623
+ const r = i.get, a = i.set, d = () => this.#i();
3632
3624
  Object.defineProperty(e, "value", {
3633
3625
  configurable: !0,
3634
3626
  enumerable: i.enumerable,
3635
3627
  get() {
3636
3628
  return r.call(this);
3637
3629
  },
3638
- set(d) {
3639
- a.call(this, d), o();
3630
+ set(o) {
3631
+ a.call(this, o), d();
3640
3632
  }
3641
3633
  }), this.#t = e;
3642
3634
  }
@@ -3798,11 +3790,11 @@ function ve({
3798
3790
  collapseLabel: i = O,
3799
3791
  footer: r,
3800
3792
  header: a,
3801
- id: o,
3802
- surface: d,
3803
- triggerLabel: l = ut
3793
+ id: d,
3794
+ surface: o,
3795
+ triggerLabel: s = ut
3804
3796
  }) {
3805
- const p = o.trim(), s = i.trim() || O, c = l.trim() || ut;
3797
+ const p = d.trim(), l = i.trim() || O, c = s.trim() || ut;
3806
3798
  if (!p)
3807
3799
  throw new Error("id must be a non-empty string.");
3808
3800
  if (!H(p))
@@ -3829,14 +3821,14 @@ function ve({
3829
3821
  attrs: { class: "footer" },
3830
3822
  children: [{ kind: "raw", html: r }]
3831
3823
  });
3832
- const b = `${p}-panel`;
3824
+ const g = `${p}-panel`;
3833
3825
  return {
3834
3826
  kind: "element",
3835
3827
  tag: tt,
3836
3828
  attrs: {
3837
3829
  class: "set-sidebar",
3838
3830
  "data-above-notebook": t,
3839
- "data-collapse-label": s !== O ? s : void 0,
3831
+ "data-collapse-label": l !== O ? l : void 0,
3840
3832
  "data-button-size": n,
3841
3833
  id: p
3842
3834
  },
@@ -3848,7 +3840,7 @@ function ve({
3848
3840
  children: [
3849
3841
  ht({
3850
3842
  appearance: "text",
3851
- controls: b,
3843
+ controls: g,
3852
3844
  disclosure: !0,
3853
3845
  icon: "panel-left",
3854
3846
  iconMirrored: "rtl",
@@ -3865,8 +3857,8 @@ function ve({
3865
3857
  tag: "div",
3866
3858
  attrs: {
3867
3859
  class: "sidebar",
3868
- "data-set-surface": d,
3869
- id: b,
3860
+ "data-set-surface": o,
3861
+ id: g,
3870
3862
  tabindex: "-1"
3871
3863
  },
3872
3864
  children: h
@@ -4167,17 +4159,17 @@ function ye({
4167
4159
  height: i,
4168
4160
  id: r,
4169
4161
  loop: a,
4170
- muted: o,
4171
- playsInline: d,
4172
- poster: l,
4162
+ muted: d,
4163
+ playsInline: o,
4164
+ poster: s,
4173
4165
  preload: p,
4174
- src: s,
4166
+ src: l,
4175
4167
  width: c
4176
4168
  }) {
4177
- const h = v(r), b = s.trim(), w = l?.trim();
4178
- if (!b)
4169
+ const h = b(r), g = l.trim(), y = s?.trim();
4170
+ if (!g)
4179
4171
  throw new Error("src must be a non-empty string.");
4180
- const f = {
4172
+ const v = {
4181
4173
  kind: "element",
4182
4174
  tag: "video",
4183
4175
  attrs: {
@@ -4186,11 +4178,11 @@ function ye({
4186
4178
  controls: !!n,
4187
4179
  height: i ? String(i) : void 0,
4188
4180
  loop: !!a,
4189
- muted: !!o,
4190
- playsinline: !!d,
4191
- poster: w || void 0,
4181
+ muted: !!d,
4182
+ playsinline: !!o,
4183
+ poster: y || void 0,
4192
4184
  preload: p,
4193
- src: b,
4185
+ src: g,
4194
4186
  width: c ? String(c) : void 0
4195
4187
  },
4196
4188
  children: []
@@ -4203,7 +4195,7 @@ function ye({
4203
4195
  "data-fluid": e === "fluid",
4204
4196
  id: h
4205
4197
  },
4206
- children: [f]
4198
+ children: [v]
4207
4199
  };
4208
4200
  }
4209
4201
  function Di(t) {
@@ -4383,27 +4375,27 @@ function ze(t) {
4383
4375
  return r[0];
4384
4376
  const a = e.slice(1).find(Ee);
4385
4377
  if (a) {
4386
- const d = B(a);
4387
- return d ? `${r[0]}${d}` : void 0;
4378
+ const o = B(a);
4379
+ return o ? `${r[0]}${o}` : void 0;
4388
4380
  }
4389
4381
  if (e.length === 2) {
4390
- const d = B(e[1]);
4391
- if (!d) return;
4392
- r.push(d);
4393
- const l = e[1].split("-").filter(Boolean);
4394
- if (l.length === 2) {
4395
- const p = B(l[1]);
4382
+ const o = B(e[1]);
4383
+ if (!o) return;
4384
+ r.push(o);
4385
+ const s = e[1].split("-").filter(Boolean);
4386
+ if (s.length === 2) {
4387
+ const p = B(s[1]);
4396
4388
  p && r.push(p);
4397
4389
  }
4398
4390
  return r.slice(0, 3).join("");
4399
4391
  }
4400
4392
  if (e.length === 3) {
4401
- const d = B(e[1]), l = B(e[2]);
4402
- return !d || !l ? void 0 : (r.push(d, l), r.slice(0, 3).join(""));
4393
+ const o = B(e[1]), s = B(e[2]);
4394
+ return !o || !s ? void 0 : (r.push(o, s), r.slice(0, 3).join(""));
4403
4395
  }
4404
- const o = B(e.at(-1) || "");
4405
- if (o)
4406
- return r.push(o), r.slice(0, 3).join("");
4396
+ const d = B(e.at(-1) || "");
4397
+ if (d)
4398
+ return r.push(d), r.slice(0, 3).join("");
4407
4399
  }
4408
4400
  const Le = {
4409
4401
  bot: "robot-1",
@@ -4464,43 +4456,43 @@ function Ae({
4464
4456
  entity: i = "person",
4465
4457
  id: r,
4466
4458
  initials: a,
4467
- name: o,
4468
- size: d = "md",
4469
- src: l
4459
+ name: d,
4460
+ size: o = "md",
4461
+ src: s
4470
4462
  }) {
4471
- const p = v(r), s = Me(a), c = P(o), h = P(l), b = qe({
4463
+ const p = b(r), l = Me(a), c = P(d), h = P(s), g = qe({
4472
4464
  alt: t,
4473
4465
  ariaHidden: n,
4474
4466
  name: c
4475
- }), w = s || ze(c), f = !!h, z = Ie({
4467
+ }), y = l || ze(c), v = !!h, z = Ie({
4476
4468
  color: e,
4477
4469
  name: c
4478
- }), q = {
4470
+ }), M = {
4479
4471
  "aria-hidden": n ? "true" : void 0,
4480
- "aria-label": !n && !f ? b : void 0,
4472
+ "aria-label": !n && !v ? g : void 0,
4481
4473
  class: "set-avatar",
4482
4474
  "data-color": z === "neutral" ? void 0 : z,
4483
4475
  "data-entity": i === "person" ? void 0 : i,
4484
- "data-size": d,
4476
+ "data-size": o,
4485
4477
  id: p,
4486
- role: !n && !f ? "img" : void 0
4478
+ role: !n && !v ? "img" : void 0
4487
4479
  };
4488
- let x;
4489
- return f ? x = {
4480
+ let S;
4481
+ return v ? S = {
4490
4482
  kind: "element",
4491
4483
  tag: "img",
4492
4484
  attrs: {
4493
- alt: n ? "" : b || "",
4485
+ alt: n ? "" : g || "",
4494
4486
  class: "img",
4495
4487
  src: h
4496
4488
  },
4497
4489
  children: []
4498
- } : w ? x = {
4490
+ } : y ? S = {
4499
4491
  kind: "element",
4500
4492
  tag: "span",
4501
4493
  attrs: { class: "initials" },
4502
- children: [{ kind: "text", value: w }]
4503
- } : x = {
4494
+ children: [{ kind: "text", value: y }]
4495
+ } : S = {
4504
4496
  kind: "element",
4505
4497
  tag: "span",
4506
4498
  attrs: { class: "icon-wrapper" },
@@ -4514,8 +4506,8 @@ function Ae({
4514
4506
  }, {
4515
4507
  kind: "element",
4516
4508
  tag: "span",
4517
- attrs: q,
4518
- children: [x]
4509
+ attrs: M,
4510
+ children: [S]
4519
4511
  };
4520
4512
  }
4521
4513
  function Hi(t) {
@@ -4635,7 +4627,7 @@ function Te({
4635
4627
  size: i = "md",
4636
4628
  tone: r
4637
4629
  }) {
4638
- const a = v(n);
4630
+ const a = b(n);
4639
4631
  return {
4640
4632
  kind: "element",
4641
4633
  tag: "span",
@@ -4728,25 +4720,25 @@ function it({
4728
4720
  id: i,
4729
4721
  linkVisited: r = !0,
4730
4722
  measured: a,
4731
- monospaced: o,
4732
- responsive: d,
4733
- size: l = "md",
4723
+ monospaced: d,
4724
+ responsive: o,
4725
+ size: s = "md",
4734
4726
  tone: p = "default"
4735
4727
  }) {
4736
- const s = v(i), c = n === "p" ? "p" : "span", h = c === "p", b = h ? t ?? "start" : void 0;
4728
+ const l = b(i), c = n === "p" ? "p" : "span", h = c === "p", g = h ? t ?? "start" : void 0;
4737
4729
  return {
4738
4730
  kind: "element",
4739
4731
  tag: c,
4740
4732
  attrs: {
4741
4733
  class: "set-text",
4742
- "data-align": b && b !== "start" ? b : void 0,
4734
+ "data-align": g && g !== "start" ? g : void 0,
4743
4735
  "data-link-visited": r ? void 0 : "off",
4744
4736
  "data-measured": h ? a ?? !0 : void 0,
4745
- "data-monospaced": o,
4746
- "data-responsive": d,
4747
- "data-size": l,
4737
+ "data-monospaced": d,
4738
+ "data-responsive": o,
4739
+ "data-size": s,
4748
4740
  "data-tone": p === "muted" ? "muted" : void 0,
4749
- id: s
4741
+ id: l
4750
4742
  },
4751
4743
  children: [{ kind: "raw", html: e }]
4752
4744
  };
@@ -4885,16 +4877,16 @@ function _e({
4885
4877
  measured: i = !0,
4886
4878
  quote: r,
4887
4879
  responsive: a = !1,
4888
- size: o = "md"
4880
+ size: d = "md"
4889
4881
  }) {
4890
- const d = v(e);
4882
+ const o = b(e);
4891
4883
  return {
4892
4884
  kind: "element",
4893
4885
  tag: "figure",
4894
4886
  attrs: {
4895
4887
  class: "set-blockquote",
4896
4888
  "data-align": t === "start" ? void 0 : t,
4897
- id: d
4889
+ id: o
4898
4890
  },
4899
4891
  children: [
4900
4892
  {
@@ -4908,7 +4900,7 @@ function _e({
4908
4900
  children: r,
4909
4901
  measured: i,
4910
4902
  responsive: a,
4911
- size: o
4903
+ size: d
4912
4904
  })
4913
4905
  ]
4914
4906
  },
@@ -5007,11 +4999,11 @@ function De({
5007
4999
  id: i,
5008
5000
  paddingBlock: r = "md",
5009
5001
  paddingInline: a = "md",
5010
- radius: o,
5011
- responsive: d,
5012
- surface: l
5002
+ radius: d,
5003
+ responsive: o,
5004
+ surface: s
5013
5005
  }) {
5014
- const p = v(i);
5006
+ const p = b(i);
5015
5007
  return {
5016
5008
  kind: "element",
5017
5009
  tag: "div",
@@ -5019,11 +5011,11 @@ function De({
5019
5011
  class: "set-box",
5020
5012
  "data-background": t === "default" ? void 0 : t,
5021
5013
  "data-border": n,
5022
- "data-set-surface": l,
5014
+ "data-set-surface": s,
5023
5015
  "data-padding-block": r,
5024
5016
  "data-padding-inline": a,
5025
- "data-radius": o,
5026
- "data-responsive": d,
5017
+ "data-radius": d,
5018
+ "data-responsive": o,
5027
5019
  id: p
5028
5020
  },
5029
5021
  children: e ? [{ kind: "raw", html: e }] : []
@@ -5152,17 +5144,17 @@ function Ve({
5152
5144
  id: i,
5153
5145
  note: r,
5154
5146
  surface: a,
5155
- title: o
5147
+ title: d
5156
5148
  }) {
5157
- const d = v(i), l = n ? `h${n}` : "div", p = e ? [
5149
+ const o = b(i), s = n ? `h${n}` : "div", p = e ? [
5158
5150
  {
5159
5151
  kind: "element",
5160
5152
  tag: "a",
5161
5153
  attrs: { href: e },
5162
- children: [{ kind: "text", value: o }]
5154
+ children: [{ kind: "text", value: d }]
5163
5155
  }
5164
- ] : [{ kind: "text", value: o }], s = r ? [{ kind: "raw", html: r }] : [];
5165
- r && e && s.push({
5156
+ ] : [{ kind: "text", value: d }], l = r ? [{ kind: "raw", html: r }] : [];
5157
+ r && e && l.push({
5166
5158
  kind: "element",
5167
5159
  tag: "span",
5168
5160
  attrs: { class: "icon-wrapper" },
@@ -5184,7 +5176,7 @@ function Ve({
5184
5176
  },
5185
5177
  {
5186
5178
  kind: "element",
5187
- tag: l,
5179
+ tag: s,
5188
5180
  attrs: { class: "title" },
5189
5181
  children: p
5190
5182
  },
@@ -5199,14 +5191,14 @@ function Ve({
5199
5191
  kind: "element",
5200
5192
  tag: "p",
5201
5193
  attrs: { class: "note" },
5202
- children: s
5194
+ children: l
5203
5195
  }), {
5204
5196
  kind: "element",
5205
5197
  tag: "div",
5206
5198
  attrs: {
5207
5199
  class: "set-card",
5208
5200
  "data-set-surface": a,
5209
- id: d
5201
+ id: o
5210
5202
  },
5211
5203
  children: c
5212
5204
  };
@@ -5289,15 +5281,15 @@ function He({
5289
5281
  id: i,
5290
5282
  invalid: r,
5291
5283
  label: a,
5292
- name: o,
5293
- required: d,
5294
- size: l = "md",
5284
+ name: d,
5285
+ required: o,
5286
+ size: s = "md",
5295
5287
  value: p
5296
5288
  }) {
5297
- const s = v(i), c = n?.trim();
5298
- if (c && !s)
5289
+ const l = b(i), c = n?.trim();
5290
+ if (c && !l)
5299
5291
  throw new Error("id must be provided when description is provided.");
5300
- const h = c ? `${s}-description` : void 0, b = !!e, f = [
5292
+ const h = c ? `${l}-description` : void 0, g = !!e, v = [
5301
5293
  {
5302
5294
  kind: "element",
5303
5295
  tag: "label",
@@ -5308,13 +5300,13 @@ function He({
5308
5300
  tag: "input",
5309
5301
  attrs: {
5310
5302
  "aria-describedby": h,
5311
- "aria-invalid": !b && !!r ? "true" : void 0,
5303
+ "aria-invalid": !g && !!r ? "true" : void 0,
5312
5304
  checked: !!t,
5313
5305
  class: "checkbox",
5314
- disabled: b,
5315
- id: s,
5316
- name: o || void 0,
5317
- required: !!d,
5306
+ disabled: g,
5307
+ id: l,
5308
+ name: d || void 0,
5309
+ required: !!o,
5318
5310
  type: "checkbox",
5319
5311
  value: p || void 0
5320
5312
  },
@@ -5329,7 +5321,7 @@ function He({
5329
5321
  ]
5330
5322
  }
5331
5323
  ];
5332
- return c && f.push({
5324
+ return c && v.push({
5333
5325
  kind: "element",
5334
5326
  tag: "p",
5335
5327
  attrs: { class: "description", id: h },
@@ -5337,8 +5329,8 @@ function He({
5337
5329
  }), {
5338
5330
  kind: "element",
5339
5331
  tag: "div",
5340
- attrs: { class: "set-checkbox", "data-size": l },
5341
- children: f
5332
+ attrs: { class: "set-checkbox", "data-size": s },
5333
+ children: v
5342
5334
  };
5343
5335
  }
5344
5336
  function ji(t) {
@@ -5480,7 +5472,7 @@ function Ne({
5480
5472
  id: e,
5481
5473
  maxInlineSize: i = "default"
5482
5474
  }) {
5483
- const r = v(e);
5475
+ const r = b(e);
5484
5476
  return {
5485
5477
  kind: "element",
5486
5478
  tag: "div",
@@ -5560,7 +5552,7 @@ function Be({
5560
5552
  summary: i,
5561
5553
  inlineSize: r = "full"
5562
5554
  }) {
5563
- const a = v(n);
5555
+ const a = b(n);
5564
5556
  return {
5565
5557
  kind: "element",
5566
5558
  tag: "details",
@@ -5672,7 +5664,7 @@ function Oe({
5672
5664
  orientation: n = "horizontal",
5673
5665
  tone: e = "default"
5674
5666
  } = {}) {
5675
- const i = v(t);
5667
+ const i = b(t);
5676
5668
  return {
5677
5669
  kind: "element",
5678
5670
  tag: n === "horizontal" ? "hr" : "span",
@@ -5758,16 +5750,16 @@ function Tt({
5758
5750
  id: i,
5759
5751
  invalid: r,
5760
5752
  legend: a,
5761
- inlineSize: o = "full"
5753
+ inlineSize: d = "full"
5762
5754
  }) {
5763
- const d = n?.trim(), l = i.trim();
5764
- if (!l)
5755
+ const o = n?.trim(), s = i.trim();
5756
+ if (!s)
5765
5757
  throw new Error("id must be a non-empty string.");
5766
- if (!H(l))
5758
+ if (!H(s))
5767
5759
  throw new Error(
5768
5760
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
5769
5761
  );
5770
- const p = d ? `${l}-description` : void 0, s = !!e, c = !s && !!r, h = [
5762
+ const p = o ? `${s}-description` : void 0, l = !!e, c = !l && !!r, h = [
5771
5763
  {
5772
5764
  kind: "element",
5773
5765
  tag: "legend",
@@ -5775,21 +5767,21 @@ function Tt({
5775
5767
  children: [{ kind: "text", value: a }]
5776
5768
  }
5777
5769
  ];
5778
- return d && h.push({
5770
+ return o && h.push({
5779
5771
  kind: "element",
5780
5772
  tag: "p",
5781
5773
  attrs: { class: "description", id: p },
5782
- children: [{ kind: "text", value: d }]
5774
+ children: [{ kind: "text", value: o }]
5783
5775
  }), t && h.push({ kind: "raw", html: t }), {
5784
5776
  kind: "element",
5785
5777
  tag: "fieldset",
5786
5778
  attrs: {
5787
- "aria-describedby": d ? p : void 0,
5779
+ "aria-describedby": o ? p : void 0,
5788
5780
  "aria-invalid": c ? "true" : void 0,
5789
5781
  class: "set-fieldset",
5790
- "data-inline-size": o === "fit" ? "fit" : void 0,
5791
- disabled: s,
5792
- id: l
5782
+ "data-inline-size": d === "fit" ? "fit" : void 0,
5783
+ disabled: l,
5784
+ id: s
5793
5785
  },
5794
5786
  children: h
5795
5787
  };
@@ -5893,7 +5885,7 @@ function Pe({
5893
5885
  inlineSize: r = "full",
5894
5886
  responsive: a = !1
5895
5887
  }) {
5896
- const o = v(i);
5888
+ const d = b(i);
5897
5889
  return {
5898
5890
  kind: "element",
5899
5891
  tag: "figure",
@@ -5901,7 +5893,7 @@ function Pe({
5901
5893
  class: "set-figure",
5902
5894
  "data-align": t === "start" ? void 0 : t,
5903
5895
  "data-inline-size": r === "full" ? void 0 : r,
5904
- id: o
5896
+ id: d
5905
5897
  },
5906
5898
  children: [
5907
5899
  { kind: "raw", html: e },
@@ -6002,7 +5994,7 @@ function Re({
6002
5994
  gap: n = "default",
6003
5995
  id: e
6004
5996
  }) {
6005
- const i = v(e);
5997
+ const i = b(e);
6006
5998
  return {
6007
5999
  kind: "element",
6008
6000
  tag: "div",
@@ -6031,18 +6023,18 @@ function We({
6031
6023
  colSpanNarrow: i,
6032
6024
  colSpanWide: r,
6033
6025
  colStart: a,
6034
- colStartNarrow: o,
6035
- colStartWide: d,
6036
- id: l,
6026
+ colStartNarrow: d,
6027
+ colStartWide: o,
6028
+ id: s,
6037
6029
  justify: p,
6038
- rowSpan: s,
6030
+ rowSpan: l,
6039
6031
  rowSpanNarrow: c,
6040
6032
  rowSpanWide: h,
6041
- rowStart: b,
6042
- rowStartNarrow: w,
6043
- rowStartWide: f
6033
+ rowStart: g,
6034
+ rowStartNarrow: y,
6035
+ rowStartWide: v
6044
6036
  }) {
6045
- const z = v(l);
6037
+ const z = b(s);
6046
6038
  return {
6047
6039
  kind: "element",
6048
6040
  tag: "div",
@@ -6051,17 +6043,17 @@ function We({
6051
6043
  "data-align": t,
6052
6044
  "data-justify": p,
6053
6045
  "data-col-span-narrow": _(i),
6054
- "data-col-start-narrow": _(o),
6046
+ "data-col-start-narrow": _(d),
6055
6047
  "data-col-span": _(e),
6056
6048
  "data-col-start": _(a),
6057
6049
  "data-col-span-wide": _(r),
6058
- "data-col-start-wide": _(d),
6050
+ "data-col-start-wide": _(o),
6059
6051
  "data-row-span-narrow": _(c),
6060
- "data-row-start-narrow": _(w),
6061
- "data-row-span": _(s),
6062
- "data-row-start": _(b),
6052
+ "data-row-start-narrow": _(y),
6053
+ "data-row-span": _(l),
6054
+ "data-row-start": _(g),
6063
6055
  "data-row-span-wide": _(h),
6064
- "data-row-start-wide": _(f),
6056
+ "data-row-start-wide": _(v),
6065
6057
  id: z
6066
6058
  },
6067
6059
  children: n ? [{ kind: "raw", html: n }] : []
@@ -6290,9 +6282,9 @@ function Ue({
6290
6282
  opticalAlign: i,
6291
6283
  responsive: r,
6292
6284
  size: a = "md",
6293
- text: o
6285
+ text: d
6294
6286
  }) {
6295
- const d = v(n);
6287
+ const o = b(n);
6296
6288
  return {
6297
6289
  kind: "element",
6298
6290
  tag: e ? `h${e}` : "span",
@@ -6302,9 +6294,9 @@ function Ue({
6302
6294
  "data-optical-align": i,
6303
6295
  "data-responsive": r,
6304
6296
  "data-size": a,
6305
- id: d
6297
+ id: o
6306
6298
  },
6307
- children: [{ kind: "text", value: o }]
6299
+ children: [{ kind: "text", value: d }]
6308
6300
  };
6309
6301
  }
6310
6302
  function cn(t) {
@@ -6412,9 +6404,9 @@ function $e({
6412
6404
  gap: i = "md",
6413
6405
  id: r,
6414
6406
  justify: a = "start",
6415
- nowrap: o
6407
+ nowrap: d
6416
6408
  }) {
6417
- const d = v(r);
6409
+ const o = b(r);
6418
6410
  return {
6419
6411
  kind: "element",
6420
6412
  tag: n,
@@ -6423,8 +6415,8 @@ function $e({
6423
6415
  "data-align": t === "center" ? void 0 : t,
6424
6416
  "data-gap": i,
6425
6417
  "data-justify": a === "start" ? void 0 : a,
6426
- "data-nowrap": o,
6427
- id: d
6418
+ "data-nowrap": d,
6419
+ id: o
6428
6420
  },
6429
6421
  children: e ? [{ kind: "raw", html: e }] : []
6430
6422
  };
@@ -6524,28 +6516,28 @@ function Ge({
6524
6516
  id: i,
6525
6517
  invalid: r,
6526
6518
  label: a,
6527
- name: o,
6528
- pattern: d,
6529
- readOnly: l,
6519
+ name: d,
6520
+ pattern: o,
6521
+ readOnly: s,
6530
6522
  required: p,
6531
- size: s = "md",
6523
+ size: l = "md",
6532
6524
  spellcheck: c,
6533
6525
  type: h = "text",
6534
- value: b,
6535
- inlineSize: w = "full"
6526
+ value: g,
6527
+ inlineSize: y = "full"
6536
6528
  }) {
6537
- const f = i.trim(), z = n?.trim(), q = t === !1 ? !1 : t?.trim(), x = o?.trim(), k = d?.trim(), C = b;
6538
- if (!f)
6529
+ const v = i.trim(), z = n?.trim(), M = t === !1 ? !1 : t?.trim(), S = d?.trim(), w = o?.trim(), x = g;
6530
+ if (!v)
6539
6531
  throw new Error("id must be a non-empty string.");
6540
- if (!H(f))
6532
+ if (!H(v))
6541
6533
  throw new Error(
6542
6534
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
6543
6535
  );
6544
- const E = z ? `${f}-description` : void 0, S = h === "numeric", I = S ? "text" : h, A = k || (S ? "^[0-9]*$" : void 0), V = c === void 0 && S ? !1 : c, M = !!e, N = !M && !!l, $ = [
6536
+ const E = z ? `${v}-description` : void 0, L = h === "numeric", A = L ? "text" : h, V = w || (L ? "^[0-9]*$" : void 0), q = c === void 0 && L ? !1 : c, I = !!e, N = !I && !!s, $ = [
6545
6537
  {
6546
6538
  kind: "element",
6547
6539
  tag: "label",
6548
- attrs: { class: "label", for: f },
6540
+ attrs: { class: "label", for: v },
6549
6541
  children: [{ kind: "text", value: a }]
6550
6542
  },
6551
6543
  {
@@ -6553,19 +6545,19 @@ function Ge({
6553
6545
  tag: "input",
6554
6546
  attrs: {
6555
6547
  "aria-describedby": E,
6556
- "aria-invalid": !M && !N && !!r ? "true" : void 0,
6557
- autocomplete: q === !1 ? "off" : q || void 0,
6548
+ "aria-invalid": !I && !N && !!r ? "true" : void 0,
6549
+ autocomplete: M === !1 ? "off" : M || void 0,
6558
6550
  class: "input",
6559
- disabled: M,
6560
- id: f,
6561
- inputmode: S ? "numeric" : void 0,
6562
- name: x || void 0,
6563
- pattern: A,
6551
+ disabled: I,
6552
+ id: v,
6553
+ inputmode: L ? "numeric" : void 0,
6554
+ name: S || void 0,
6555
+ pattern: V,
6564
6556
  readonly: N,
6565
6557
  required: !!p,
6566
- spellcheck: V === void 0 ? void 0 : String(V),
6567
- type: I,
6568
- value: C
6558
+ spellcheck: q === void 0 ? void 0 : String(q),
6559
+ type: A,
6560
+ value: x
6569
6561
  },
6570
6562
  children: []
6571
6563
  }
@@ -6580,8 +6572,8 @@ function Ge({
6580
6572
  tag: "div",
6581
6573
  attrs: {
6582
6574
  class: "set-input",
6583
- "data-size": s,
6584
- "data-inline-size": w === "fit" ? "fit" : void 0
6575
+ "data-size": l,
6576
+ "data-inline-size": y === "fit" ? "fit" : void 0
6585
6577
  },
6586
6578
  children: $
6587
6579
  };
@@ -6844,7 +6836,7 @@ function ti({
6844
6836
  tone: r = "default",
6845
6837
  variant: a = "primary"
6846
6838
  }) {
6847
- const o = v(n), d = !!t && (a === "primary" || a === "graphic"), l = [
6839
+ const d = b(n), o = !!t && (a === "primary" || a === "graphic"), s = [
6848
6840
  {
6849
6841
  kind: "element",
6850
6842
  tag: "span",
@@ -6852,20 +6844,20 @@ function ti({
6852
6844
  children: [{ kind: "text", value: e }]
6853
6845
  }
6854
6846
  ];
6855
- return d && l.push(
6847
+ return o && s.push(
6856
6848
  a === "graphic" ? Je() : Ye()
6857
6849
  ), {
6858
6850
  kind: "element",
6859
6851
  tag: "div",
6860
6852
  attrs: {
6861
6853
  class: "set-logo",
6862
- "data-animated": d,
6854
+ "data-animated": o,
6863
6855
  "data-size": i,
6864
6856
  "data-tone": r === "neutral" ? "neutral" : void 0,
6865
6857
  "data-variant": a === "primary" ? void 0 : a,
6866
- id: o
6858
+ id: d
6867
6859
  },
6868
- children: l
6860
+ children: s
6869
6861
  };
6870
6862
  }
6871
6863
  function bn(t) {
@@ -6966,22 +6958,22 @@ function ei({
6966
6958
  footer: i,
6967
6959
  header: r,
6968
6960
  headerBorder: a,
6969
- headerSize: o = "md",
6970
- id: d,
6971
- stickyHeader: l
6961
+ headerSize: d = "md",
6962
+ id: o,
6963
+ stickyHeader: s
6972
6964
  }) {
6973
- const p = v(d), s = [];
6974
- return t && s.push({ kind: "raw", html: t }), s.push({
6965
+ const p = b(o), l = [];
6966
+ return t && l.push({ kind: "raw", html: t }), l.push({
6975
6967
  kind: "element",
6976
6968
  tag: "header",
6977
6969
  attrs: { class: "header" },
6978
6970
  children: [{ kind: "raw", html: r }]
6979
- }), s.push({
6971
+ }), l.push({
6980
6972
  kind: "element",
6981
6973
  tag: "main",
6982
6974
  attrs: { class: "main" },
6983
6975
  children: e ? [{ kind: "raw", html: e }] : []
6984
- }), s.push({
6976
+ }), l.push({
6985
6977
  kind: "element",
6986
6978
  tag: "footer",
6987
6979
  attrs: { class: "footer" },
@@ -6993,11 +6985,11 @@ function ei({
6993
6985
  class: "set-page",
6994
6986
  "data-center-main": n,
6995
6987
  "data-header-border": a,
6996
- "data-header-size": o,
6997
- "data-sticky-header": l,
6988
+ "data-header-size": d,
6989
+ "data-sticky-header": s,
6998
6990
  id: p
6999
6991
  },
7000
- children: s
6992
+ children: l
7001
6993
  };
7002
6994
  }
7003
6995
  function fn(t) {
@@ -7099,7 +7091,7 @@ function ii({
7099
7091
  padding: e = "md",
7100
7092
  surface: i
7101
7093
  }) {
7102
- const r = v(n);
7094
+ const r = b(n);
7103
7095
  return {
7104
7096
  kind: "element",
7105
7097
  tag: "div",
@@ -7173,7 +7165,7 @@ function ni({
7173
7165
  tone: i = "default",
7174
7166
  variant: r = "tile"
7175
7167
  } = {}) {
7176
- const a = v(n);
7168
+ const a = b(n);
7177
7169
  return {
7178
7170
  kind: "element",
7179
7171
  tag: "div",
@@ -7272,7 +7264,7 @@ function ri({
7272
7264
  media: i,
7273
7265
  surface: r
7274
7266
  }) {
7275
- const a = v(e), o = n ? r ?? "default" : r, d = [
7267
+ const a = b(e), d = n ? r ?? "default" : r, o = [
7276
7268
  {
7277
7269
  kind: "element",
7278
7270
  tag: "div",
@@ -7280,7 +7272,7 @@ function ri({
7280
7272
  children: [{ kind: "raw", html: i }]
7281
7273
  }
7282
7274
  ];
7283
- return t && d.push({
7275
+ return t && o.push({
7284
7276
  kind: "element",
7285
7277
  tag: "div",
7286
7278
  attrs: { class: "content" },
@@ -7291,10 +7283,10 @@ function ri({
7291
7283
  attrs: {
7292
7284
  class: "set-poster",
7293
7285
  "data-set-content-theme": n,
7294
- "data-set-surface": o,
7286
+ "data-set-surface": d,
7295
7287
  id: a
7296
7288
  },
7297
- children: d
7289
+ children: o
7298
7290
  };
7299
7291
  }
7300
7292
  function Ln(t) {
@@ -7378,10 +7370,10 @@ function ai({
7378
7370
  id: i,
7379
7371
  linkVisited: r = !0,
7380
7372
  measured: a = !0,
7381
- monospaced: o,
7382
- responsive: d
7373
+ monospaced: d,
7374
+ responsive: o
7383
7375
  }) {
7384
- const l = v(i);
7376
+ const s = b(i);
7385
7377
  return {
7386
7378
  kind: "element",
7387
7379
  tag: "div",
@@ -7391,9 +7383,9 @@ function ai({
7391
7383
  "data-hanging-punctuation": e,
7392
7384
  "data-link-visited": r ? void 0 : "off",
7393
7385
  "data-measured": a,
7394
- "data-monospaced": o,
7395
- "data-responsive": d,
7396
- id: l
7386
+ "data-monospaced": d,
7387
+ "data-responsive": o,
7388
+ id: s
7397
7389
  },
7398
7390
  children: [{ kind: "raw", html: n }]
7399
7391
  };
@@ -7502,13 +7494,13 @@ function oi({
7502
7494
  invalid: i,
7503
7495
  radios: r,
7504
7496
  legend: a,
7505
- name: o,
7506
- orientation: d = "vertical",
7507
- required: l,
7497
+ name: d,
7498
+ orientation: o = "vertical",
7499
+ required: s,
7508
7500
  size: p = "md",
7509
- value: s
7501
+ value: l
7510
7502
  }) {
7511
- const c = e.trim(), h = o.trim(), b = s?.trim();
7503
+ const c = e.trim(), h = d.trim(), g = l?.trim();
7512
7504
  if (!c)
7513
7505
  throw new Error("id must be a non-empty string.");
7514
7506
  if (!H(c))
@@ -7519,23 +7511,23 @@ function oi({
7519
7511
  throw new Error("name must be a non-empty string.");
7520
7512
  if (r.length < 2)
7521
7513
  throw new Error("radios must include at least 2 options.");
7522
- const w = r.map((k, C) => {
7523
- const E = k.value.trim(), S = k.label.trim(), I = k.description?.trim();
7514
+ const y = r.map((w, x) => {
7515
+ const E = w.value.trim(), L = w.label.trim(), A = w.description?.trim();
7524
7516
  if (!E)
7525
- throw new Error(`radios[${C}].value must be non-empty.`);
7526
- if (!S)
7527
- throw new Error(`radios[${C}].label must be non-empty.`);
7517
+ throw new Error(`radios[${x}].value must be non-empty.`);
7518
+ if (!L)
7519
+ throw new Error(`radios[${x}].label must be non-empty.`);
7528
7520
  return {
7529
- description: I,
7530
- disabled: !!k.disabled,
7531
- label: S,
7521
+ description: A,
7522
+ disabled: !!w.disabled,
7523
+ label: L,
7532
7524
  value: E
7533
7525
  };
7534
7526
  });
7535
- if (new Set(w.map((k) => k.value)).size !== w.length)
7527
+ if (new Set(y.map((w) => w.value)).size !== y.length)
7536
7528
  throw new Error("radios values must be unique.");
7537
- const z = !!n, q = w.map((k) => {
7538
- const C = !!k.disabled, E = k.description ? `${c}-${k.value}-description` : void 0, S = [
7529
+ const z = !!n, M = y.map((w) => {
7530
+ const x = !!w.disabled, E = w.description ? `${c}-${w.value}-description` : void 0, L = [
7539
7531
  {
7540
7532
  kind: "element",
7541
7533
  tag: "label",
@@ -7546,13 +7538,13 @@ function oi({
7546
7538
  tag: "input",
7547
7539
  attrs: {
7548
7540
  "aria-describedby": E,
7549
- checked: b === k.value,
7541
+ checked: g === w.value,
7550
7542
  class: "radio",
7551
- disabled: C,
7543
+ disabled: x,
7552
7544
  name: h,
7553
- required: !!l && !z && !C,
7545
+ required: !!s && !z && !x,
7554
7546
  type: "radio",
7555
- value: k.value
7547
+ value: w.value
7556
7548
  },
7557
7549
  children: []
7558
7550
  },
@@ -7560,21 +7552,21 @@ function oi({
7560
7552
  kind: "element",
7561
7553
  tag: "span",
7562
7554
  attrs: {},
7563
- children: [{ kind: "text", value: k.label }]
7555
+ children: [{ kind: "text", value: w.label }]
7564
7556
  }
7565
7557
  ]
7566
7558
  }
7567
7559
  ];
7568
- return k.description && S.push({
7560
+ return w.description && L.push({
7569
7561
  kind: "element",
7570
7562
  tag: "p",
7571
7563
  attrs: { class: "radio-description", id: E },
7572
- children: [{ kind: "text", value: k.description }]
7564
+ children: [{ kind: "text", value: w.description }]
7573
7565
  }), {
7574
7566
  kind: "element",
7575
7567
  tag: "div",
7576
7568
  attrs: { class: "radio-field" },
7577
- children: S
7569
+ children: L
7578
7570
  };
7579
7571
  });
7580
7572
  return Tt({
@@ -7583,10 +7575,10 @@ function oi({
7583
7575
  tag: "div",
7584
7576
  attrs: {
7585
7577
  class: "set-radios",
7586
- "data-orientation": d,
7578
+ "data-orientation": o,
7587
7579
  "data-size": p
7588
7580
  },
7589
- children: q
7581
+ children: M
7590
7582
  }),
7591
7583
  description: t,
7592
7584
  disabled: z,
@@ -7754,10 +7746,10 @@ function di({
7754
7746
  children: i,
7755
7747
  dir: r,
7756
7748
  id: a,
7757
- lang: o,
7758
- theme: d
7749
+ lang: d,
7750
+ theme: o
7759
7751
  }) {
7760
- const l = v(a);
7752
+ const s = b(a);
7761
7753
  return {
7762
7754
  kind: "element",
7763
7755
  tag: "div",
@@ -7766,9 +7758,9 @@ function di({
7766
7758
  "data-app-root": n,
7767
7759
  "data-app-overscroll-behavior": t === "none" ? "none" : void 0,
7768
7760
  "data-set-brand": e,
7769
- "data-set-theme": d,
7770
- id: l,
7771
- lang: o === "" ? void 0 : o,
7761
+ "data-set-theme": o,
7762
+ id: s,
7763
+ lang: d === "" ? void 0 : d,
7772
7764
  dir: r
7773
7765
  },
7774
7766
  children: i ? [{ kind: "raw", html: i }] : []
@@ -7878,7 +7870,7 @@ function si({
7878
7870
  id: r,
7879
7871
  responsive: a
7880
7872
  }) {
7881
- const o = v(r);
7873
+ const d = b(r);
7882
7874
  return {
7883
7875
  kind: "element",
7884
7876
  tag: n,
@@ -7887,7 +7879,7 @@ function si({
7887
7879
  "data-align": t === "stretch" ? void 0 : t,
7888
7880
  "data-gap": i,
7889
7881
  "data-responsive": a,
7890
- id: o
7882
+ id: d
7891
7883
  },
7892
7884
  children: e ? [{ kind: "raw", html: e }] : []
7893
7885
  };
@@ -7972,7 +7964,7 @@ function li({
7972
7964
  id: e,
7973
7965
  variant: i = "default"
7974
7966
  }) {
7975
- const r = v(e);
7967
+ const r = b(e);
7976
7968
  return {
7977
7969
  kind: "element",
7978
7970
  tag: "div",
@@ -8047,13 +8039,13 @@ function pi({
8047
8039
  id: i,
8048
8040
  label: r,
8049
8041
  name: a,
8050
- size: o = "md",
8051
- value: d
8042
+ size: d = "md",
8043
+ value: o
8052
8044
  }) {
8053
- const l = v(i), p = n?.trim();
8054
- if (p && !l)
8045
+ const s = b(i), p = n?.trim();
8046
+ if (p && !s)
8055
8047
  throw new Error("id must be provided when description is provided.");
8056
- const s = p ? `${l}-description` : void 0, c = [
8048
+ const l = p ? `${s}-description` : void 0, c = [
8057
8049
  {
8058
8050
  kind: "element",
8059
8051
  tag: "label",
@@ -8063,15 +8055,15 @@ function pi({
8063
8055
  kind: "element",
8064
8056
  tag: "input",
8065
8057
  attrs: {
8066
- "aria-describedby": s,
8058
+ "aria-describedby": l,
8067
8059
  checked: !!t,
8068
8060
  class: "switch",
8069
8061
  disabled: !!e,
8070
- id: l,
8062
+ id: s,
8071
8063
  name: a || void 0,
8072
8064
  role: "switch",
8073
8065
  type: "checkbox",
8074
- value: d || void 0
8066
+ value: o || void 0
8075
8067
  },
8076
8068
  children: []
8077
8069
  },
@@ -8087,12 +8079,12 @@ function pi({
8087
8079
  return p && c.push({
8088
8080
  kind: "element",
8089
8081
  tag: "p",
8090
- attrs: { class: "description", id: s },
8082
+ attrs: { class: "description", id: l },
8091
8083
  children: [{ kind: "text", value: p }]
8092
8084
  }), {
8093
8085
  kind: "element",
8094
8086
  tag: "div",
8095
- attrs: { class: "set-switch", "data-size": o },
8087
+ attrs: { class: "set-switch", "data-size": d },
8096
8088
  children: c
8097
8089
  };
8098
8090
  }
@@ -8214,55 +8206,55 @@ function ci({
8214
8206
  id: i,
8215
8207
  invalid: r,
8216
8208
  label: a,
8217
- name: o,
8218
- readOnly: d,
8219
- required: l,
8209
+ name: d,
8210
+ readOnly: o,
8211
+ required: s,
8220
8212
  resize: p = "vertical",
8221
- rows: s = 2,
8213
+ rows: l = 2,
8222
8214
  size: c = "md",
8223
8215
  spellcheck: h,
8224
- value: b,
8225
- inlineSize: w = "full"
8216
+ value: g,
8217
+ inlineSize: y = "full"
8226
8218
  }) {
8227
- const f = i.trim(), z = n?.trim(), q = t === !1 ? !1 : t?.trim(), x = o?.trim(), k = b;
8228
- if (!f)
8219
+ const v = i.trim(), z = n?.trim(), M = t === !1 ? !1 : t?.trim(), S = d?.trim(), w = g;
8220
+ if (!v)
8229
8221
  throw new Error("id must be a non-empty string.");
8230
- if (!H(f))
8222
+ if (!H(v))
8231
8223
  throw new Error(
8232
8224
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
8233
8225
  );
8234
- if (!Number.isInteger(s) || s < 2)
8226
+ if (!Number.isInteger(l) || l < 2)
8235
8227
  throw new Error("rows must be an integer greater than or equal to 2.");
8236
- const C = z ? `${f}-description` : void 0, E = !!e, S = !E && !!d, A = [
8228
+ const x = z ? `${v}-description` : void 0, E = !!e, L = !E && !!o, V = [
8237
8229
  {
8238
8230
  kind: "element",
8239
8231
  tag: "label",
8240
- attrs: { class: "label", for: f },
8232
+ attrs: { class: "label", for: v },
8241
8233
  children: [{ kind: "text", value: a }]
8242
8234
  },
8243
8235
  {
8244
8236
  kind: "element",
8245
8237
  tag: "textarea",
8246
8238
  attrs: {
8247
- "aria-describedby": C,
8248
- "aria-invalid": !E && !S && !!r ? "true" : void 0,
8249
- autocomplete: q === !1 ? "off" : q || void 0,
8239
+ "aria-describedby": x,
8240
+ "aria-invalid": !E && !L && !!r ? "true" : void 0,
8241
+ autocomplete: M === !1 ? "off" : M || void 0,
8250
8242
  class: "textarea",
8251
8243
  disabled: E,
8252
- id: f,
8253
- name: x || void 0,
8254
- readonly: S,
8255
- required: !!l,
8256
- rows: String(s),
8244
+ id: v,
8245
+ name: S || void 0,
8246
+ readonly: L,
8247
+ required: !!s,
8248
+ rows: String(l),
8257
8249
  spellcheck: h === void 0 ? void 0 : String(h)
8258
8250
  },
8259
- children: [{ kind: "text", value: k || "" }]
8251
+ children: [{ kind: "text", value: w || "" }]
8260
8252
  }
8261
8253
  ];
8262
- return z && A.push({
8254
+ return z && V.push({
8263
8255
  kind: "element",
8264
8256
  tag: "p",
8265
- attrs: { class: "description", id: C },
8257
+ attrs: { class: "description", id: x },
8266
8258
  children: [{ kind: "text", value: z }]
8267
8259
  }), {
8268
8260
  kind: "element",
@@ -8271,9 +8263,9 @@ function ci({
8271
8263
  class: "set-textarea",
8272
8264
  "data-resize": p === "none" ? "none" : void 0,
8273
8265
  "data-size": c,
8274
- "data-inline-size": w === "fit" ? "fit" : void 0
8266
+ "data-inline-size": y === "fit" ? "fit" : void 0
8275
8267
  },
8276
- children: A
8268
+ children: V
8277
8269
  };
8278
8270
  }
8279
8271
  function Pn(t) {