@monospaced/set-core 0.13.0 → 0.14.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
@@ -1,4 +1,4 @@
1
- const Nt = /* @__PURE__ */ new Set([
1
+ const Bt = /* @__PURE__ */ new Set([
2
2
  "area",
3
3
  "base",
4
4
  "br",
@@ -13,17 +13,17 @@ const Nt = /* @__PURE__ */ new Set([
13
13
  "track",
14
14
  "wbr"
15
15
  ]);
16
- function ft(t) {
16
+ function yt(t) {
17
17
  return t.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
18
18
  }
19
- function Bt(t) {
20
- return Object.entries(t).flatMap(([n, e]) => e === !1 || e == null ? [] : e === !0 ? [n] : [`${n}="${ft(String(e))}"`]).join(" ");
19
+ function Ot(t) {
20
+ return Object.entries(t).flatMap(([n, e]) => e === !1 || e == null ? [] : e === !0 ? [n] : [`${n}="${yt(String(e))}"`]).join(" ");
21
21
  }
22
22
  function m(t) {
23
- if (t.kind === "text") return ft(t.value);
23
+ if (t.kind === "text") return yt(t.value);
24
24
  if (t.kind === "raw") return t.html;
25
- const n = Bt(t.attrs), e = n ? `<${t.tag} ${n}>` : `<${t.tag}>`;
26
- if (Nt.has(t.tag)) return e;
25
+ const n = Ot(t.attrs), e = n ? `<${t.tag} ${n}>` : `<${t.tag}>`;
26
+ if (Bt.has(t.tag)) return e;
27
27
  const i = t.children.map(m).join("");
28
28
  return `${e}${i}</${t.tag}>`;
29
29
  }
@@ -44,7 +44,7 @@ function v(t) {
44
44
  function O(t) {
45
45
  return t == null ? void 0 : t.trim().replace(/\s+/g, " ") || void 0;
46
46
  }
47
- const yt = {
47
+ const wt = {
48
48
  adjustment: [
49
49
  {
50
50
  tag: "g",
@@ -775,13 +775,13 @@ const yt = {
775
775
  ]
776
776
  }
777
777
  ]
778
- }, oi = Object.keys(yt);
779
- function wt(t) {
778
+ }, si = Object.keys(wt);
779
+ function St(t) {
780
780
  return t.map((n) => ({
781
781
  kind: "element",
782
782
  tag: n.tag,
783
783
  attrs: n.attrs,
784
- children: n.children ? wt(n.children) : []
784
+ children: n.children ? St(n.children) : []
785
785
  }));
786
786
  }
787
787
  function P({
@@ -792,7 +792,7 @@ function P({
792
792
  size: r = "md",
793
793
  title: a
794
794
  }) {
795
- const o = yt[i];
795
+ const o = wt[i];
796
796
  if (!o)
797
797
  throw new Error(`Unknown icon name: ${i}`);
798
798
  const d = v(n), s = a?.trim();
@@ -806,7 +806,7 @@ function P({
806
806
  tag: "title",
807
807
  attrs: { id: p },
808
808
  children: [{ kind: "text", value: s }]
809
- }), l.push(...wt(o)), {
809
+ }), l.push(...St(o)), {
810
810
  kind: "element",
811
811
  tag: "svg",
812
812
  attrs: {
@@ -827,10 +827,10 @@ function P({
827
827
  children: l
828
828
  };
829
829
  }
830
- function Ot(t) {
830
+ function Pt(t) {
831
831
  return m(P(t));
832
832
  }
833
- const di = {
833
+ const li = {
834
834
  name: "icon",
835
835
  description: "Use `icon` to render a Set icon.",
836
836
  output: { element: "svg", class: "set-icon" },
@@ -944,7 +944,7 @@ const di = {
944
944
  ]
945
945
  }
946
946
  };
947
- function ut(t) {
947
+ function ht(t) {
948
948
  const {
949
949
  appearance: n = "outline",
950
950
  controls: e,
@@ -966,14 +966,14 @@ function ut(t) {
966
966
  } = t, w = s || void 0, k = !!w;
967
967
  if (h !== "visible" && !k)
968
968
  throw new Error("labelVisibility requires icon when label is not visible.");
969
- const L = k && w ? {
969
+ const C = k && w ? {
970
970
  kind: "element",
971
971
  tag: "span",
972
972
  attrs: { class: "icon-wrapper" },
973
973
  children: [
974
974
  {
975
975
  kind: "raw",
976
- html: Ot({
976
+ html: Pt({
977
977
  ariaHidden: !0,
978
978
  mirrored: p,
979
979
  name: w,
@@ -1006,13 +1006,13 @@ function ut(t) {
1006
1006
  type: E || "button",
1007
1007
  value: q || void 0
1008
1008
  },
1009
- children: L ? l === "end" ? [x, L] : [L, x] : [x]
1009
+ children: C ? l === "end" ? [x, C] : [C, x] : [x]
1010
1010
  };
1011
1011
  }
1012
- function ht(t) {
1013
- return m(ut(t));
1012
+ function mt(t) {
1013
+ return m(ht(t));
1014
1014
  }
1015
- const si = {
1015
+ const pi = {
1016
1016
  name: "button",
1017
1017
  description: "Use `button` to let users trigger actions.",
1018
1018
  output: { element: "button", class: "set-button" },
@@ -1195,10 +1195,10 @@ const si = {
1195
1195
  }
1196
1196
  ]
1197
1197
  }
1198
- }, Z = "set-alert", St = "set-alert-before-dismiss", xt = "set-alert-dismiss", W = "Dismiss alert";
1199
- function Pt(t, n) {
1198
+ }, Z = "set-alert", xt = "set-alert-before-dismiss", Et = "set-alert-dismiss", W = "Dismiss alert";
1199
+ function Rt(t, n) {
1200
1200
  const e = n.createElement("div");
1201
- return e.setAttribute("data-part", "close"), e.innerHTML = ht({
1201
+ return e.setAttribute("data-part", "close"), e.innerHTML = mt({
1202
1202
  appearance: "text",
1203
1203
  icon: "close",
1204
1204
  label: t,
@@ -1207,7 +1207,7 @@ function Pt(t, n) {
1207
1207
  tone: "neutral"
1208
1208
  }), e;
1209
1209
  }
1210
- function Rt(t) {
1210
+ function Wt(t) {
1211
1211
  switch (t) {
1212
1212
  case "success":
1213
1213
  return "check-circle";
@@ -1221,10 +1221,10 @@ function Rt(t) {
1221
1221
  return "sticky-note";
1222
1222
  }
1223
1223
  }
1224
- function Wt(t) {
1224
+ function Ut(t) {
1225
1225
  return t === "warning" || t === "error" ? "alert" : "status";
1226
1226
  }
1227
- function Ut({
1227
+ function $t({
1228
1228
  dismissible: t,
1229
1229
  dismissibleLabel: n = W,
1230
1230
  id: e,
@@ -1256,7 +1256,7 @@ function Ut({
1256
1256
  "data-size": a,
1257
1257
  "data-tone": o || void 0,
1258
1258
  id: s,
1259
- role: Wt(o)
1259
+ role: Ut(o)
1260
1260
  },
1261
1261
  children: [
1262
1262
  {
@@ -1266,7 +1266,7 @@ function Ut({
1266
1266
  children: [
1267
1267
  P({
1268
1268
  ariaHidden: !0,
1269
- name: Rt(o),
1269
+ name: Wt(o),
1270
1270
  size: a
1271
1271
  })
1272
1272
  ]
@@ -1280,24 +1280,24 @@ function Ut({
1280
1280
  ]
1281
1281
  };
1282
1282
  }
1283
- function li(t) {
1284
- return m(Ut(t));
1283
+ function ci(t) {
1284
+ return m($t(t));
1285
1285
  }
1286
- function $t() {
1286
+ function Gt() {
1287
1287
  if (customElements.get(Z)) return;
1288
1288
  class t extends HTMLElement {
1289
1289
  #t = (e) => {
1290
1290
  const i = e.target;
1291
1291
  if (!(i instanceof Element) || !i.closest('[data-part="close"]')) return;
1292
1292
  const r = new CustomEvent(
1293
- St,
1293
+ xt,
1294
1294
  {
1295
1295
  bubbles: !0,
1296
1296
  cancelable: !0
1297
1297
  }
1298
1298
  );
1299
1299
  this.dispatchEvent(r) && (this.dispatchEvent(
1300
- new CustomEvent(xt, {
1300
+ new CustomEvent(Et, {
1301
1301
  bubbles: !0
1302
1302
  })
1303
1303
  ), this.remove());
@@ -1310,7 +1310,7 @@ function $t() {
1310
1310
  }
1311
1311
  #e() {
1312
1312
  this.querySelector('[data-part="close"]') || this.append(
1313
- Pt(
1313
+ Rt(
1314
1314
  this.getAttribute("data-dismissible-label") ?? W,
1315
1315
  this.ownerDocument
1316
1316
  )
@@ -1319,7 +1319,7 @@ function $t() {
1319
1319
  }
1320
1320
  customElements.define(Z, t);
1321
1321
  }
1322
- const pi = {
1322
+ const ui = {
1323
1323
  name: "alert",
1324
1324
  description: "Use `alert` to surface short, important messages.",
1325
1325
  output: {
@@ -1374,12 +1374,12 @@ const pi = {
1374
1374
  }
1375
1375
  },
1376
1376
  events: {
1377
- [St]: {
1377
+ [xt]: {
1378
1378
  bubbles: !0,
1379
1379
  cancelable: !0,
1380
1380
  description: "Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."
1381
1381
  },
1382
- [xt]: {
1382
+ [Et]: {
1383
1383
  bubbles: !0,
1384
1384
  description: "Fired after the alert has been removed by an allowed dismiss action."
1385
1385
  }
@@ -1468,11 +1468,11 @@ const pi = {
1468
1468
  ]
1469
1469
  }
1470
1470
  };
1471
- function Gt(t) {
1471
+ function Zt(t) {
1472
1472
  if (t)
1473
1473
  return t === !0 ? !0 : t;
1474
1474
  }
1475
- function Et(t) {
1475
+ function zt(t) {
1476
1476
  const {
1477
1477
  appearance: n = "text",
1478
1478
  current: e,
@@ -1491,12 +1491,12 @@ function Et(t) {
1491
1491
  } = t, f = v(a), E = o?.trim() || void 0;
1492
1492
  if (p !== "visible" && !!!E)
1493
1493
  throw new Error("labelVisibility requires icon when label is not visible.");
1494
- const w = Gt(i), k = E ? {
1494
+ const w = Zt(i), k = E ? {
1495
1495
  kind: "element",
1496
1496
  tag: "span",
1497
1497
  attrs: { class: "icon-wrapper" },
1498
1498
  children: [{ kind: "raw", html: E }]
1499
- } : null, L = {
1499
+ } : null, C = {
1500
1500
  kind: "element",
1501
1501
  tag: "span",
1502
1502
  attrs: { class: "label" },
@@ -1519,13 +1519,13 @@ function Et(t) {
1519
1519
  rel: w ? void 0 : l || void 0,
1520
1520
  target: w ? void 0 : h || void 0
1521
1521
  },
1522
- children: k ? d === "end" ? [L, k] : [k, L] : [L]
1522
+ children: k ? d === "end" ? [C, k] : [k, C] : [C]
1523
1523
  };
1524
1524
  }
1525
- function ci(t) {
1526
- return m(Et(t));
1525
+ function hi(t) {
1526
+ return m(zt(t));
1527
1527
  }
1528
- const ui = {
1528
+ const mi = {
1529
1529
  name: "link",
1530
1530
  description: "Use `link` to navigate to another page or resource.",
1531
1531
  output: { element: "a", class: "set-link" },
@@ -1712,10 +1712,10 @@ const ui = {
1712
1712
  }
1713
1713
  ]
1714
1714
  }
1715
- }, F = "set-banner", zt = "set-banner-before-dismiss", Ct = "set-banner-dismiss", j = "Dismiss banner";
1716
- function Zt(t, n) {
1715
+ }, F = "set-banner", Lt = "set-banner-before-dismiss", Ct = "set-banner-dismiss", j = "Dismiss banner";
1716
+ function Ft(t, n) {
1717
1717
  const e = n.createElement("div");
1718
- return e.setAttribute("data-part", "close"), e.innerHTML = ht({
1718
+ return e.setAttribute("data-part", "close"), e.innerHTML = mt({
1719
1719
  appearance: "text",
1720
1720
  icon: "close",
1721
1721
  label: t,
@@ -1724,7 +1724,7 @@ function Zt(t, n) {
1724
1724
  tone: "neutral"
1725
1725
  }), e;
1726
1726
  }
1727
- function Ft({
1727
+ function jt({
1728
1728
  actionHref: t,
1729
1729
  actionLabel: n,
1730
1730
  dismissible: e = !0,
@@ -1737,7 +1737,7 @@ function Ft({
1737
1737
  throw new Error("actionHref and actionLabel must be provided together.");
1738
1738
  const d = v(r), s = i.trim() === "" ? j : i, p = [{ kind: "text", value: a }];
1739
1739
  return t && n && (p.push({ kind: "text", value: " " }), p.push(
1740
- Et({
1740
+ zt({
1741
1741
  href: t,
1742
1742
  label: n,
1743
1743
  underline: !0
@@ -1764,17 +1764,17 @@ function Ft({
1764
1764
  ]
1765
1765
  };
1766
1766
  }
1767
- function hi(t) {
1768
- return m(Ft(t));
1767
+ function ki(t) {
1768
+ return m(jt(t));
1769
1769
  }
1770
- function jt() {
1770
+ function Kt() {
1771
1771
  if (customElements.get(F)) return;
1772
1772
  class t extends HTMLElement {
1773
1773
  #t = (e) => {
1774
1774
  const i = e.target;
1775
1775
  if (!(i instanceof Element) || !i.closest('[data-part="close"]')) return;
1776
1776
  const r = new CustomEvent(
1777
- zt,
1777
+ Lt,
1778
1778
  {
1779
1779
  bubbles: !0,
1780
1780
  cancelable: !0
@@ -1794,7 +1794,7 @@ function jt() {
1794
1794
  }
1795
1795
  #e() {
1796
1796
  this.querySelector('[data-part="close"]') || this.append(
1797
- Zt(
1797
+ Ft(
1798
1798
  this.getAttribute("data-dismissible-label") ?? j,
1799
1799
  this.ownerDocument
1800
1800
  )
@@ -1803,7 +1803,7 @@ function jt() {
1803
1803
  }
1804
1804
  customElements.define(F, t);
1805
1805
  }
1806
- const mi = {
1806
+ const gi = {
1807
1807
  name: "banner",
1808
1808
  description: "Use `banner` to display a prominent site-wide message.",
1809
1809
  output: { element: F, class: "set-banner" },
@@ -1848,7 +1848,7 @@ const mi = {
1848
1848
  }
1849
1849
  },
1850
1850
  events: {
1851
- [zt]: {
1851
+ [Lt]: {
1852
1852
  bubbles: !0,
1853
1853
  cancelable: !0,
1854
1854
  description: "Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."
@@ -1891,369 +1891,862 @@ const mi = {
1891
1891
  }
1892
1892
  ]
1893
1893
  }
1894
- }, K = "set-lightswitch", Lt = "set-lightswitch-change", dt = "set-theme", st = "Switch to dark theme", lt = "Switch to light theme";
1895
- function Kt(t) {
1896
- return t === "dark" ? "light" : "dark";
1897
- }
1898
- function Xt(t) {
1899
- return t === "dark" ? "moon" : "sunny";
1900
- }
1901
- function gt(t, n) {
1902
- return {
1903
- kind: "element",
1904
- tag: "span",
1905
- attrs: { class: "option", "data-option": t },
1906
- children: [
1907
- {
1908
- kind: "element",
1909
- tag: "span",
1910
- attrs: { class: "icon-wrapper" },
1911
- children: [
1912
- P({
1913
- ariaHidden: !0,
1914
- name: Xt(t),
1915
- size: "fill"
1916
- })
1917
- ]
1918
- },
1919
- {
1920
- kind: "element",
1921
- tag: "span",
1922
- attrs: { class: "label" },
1923
- children: [{ kind: "text", value: n }]
1924
- }
1925
- ]
1926
- };
1927
- }
1928
- function Qt({
1929
- appearance: t = "text",
1930
- id: n,
1931
- labelDark: e = st,
1932
- labelLight: i = lt,
1933
- size: r = "md"
1894
+ }, K = "set-image";
1895
+ function Xt({
1896
+ adaptive: t,
1897
+ animated: n,
1898
+ alt: e = "",
1899
+ aspectRatio: i,
1900
+ fit: r = "intrinsic",
1901
+ gravity: a = "C",
1902
+ height: o,
1903
+ id: d,
1904
+ lazy: s,
1905
+ leadSrc: p,
1906
+ priority: l,
1907
+ radius: c,
1908
+ shadow: h,
1909
+ sizes: b,
1910
+ sources: S,
1911
+ src: f,
1912
+ srcSet: E,
1913
+ still: q,
1914
+ width: w
1934
1915
  }) {
1935
- const a = v(n), o = e.trim() === "" ? st : e, d = i.trim() === "" ? lt : i;
1936
- return {
1916
+ const k = r === "cover", C = v(d), x = f.trim(), z = E?.trim(), _ = p?.trim(), D = q?.trim(), N = b?.trim(), M = S?.map((u, L) => {
1917
+ const I = u.srcSet.trim(), y = u.media?.trim(), g = u.type?.trim(), Vt = u.sizes?.trim(), Ht = u.leadSrc?.trim(), Nt = u.still?.trim();
1918
+ if (!I)
1919
+ throw new Error(`sources[${L}].srcSet must be non-empty.`);
1920
+ return {
1921
+ height: u.height,
1922
+ leadSrc: Ht || void 0,
1923
+ media: y || void 0,
1924
+ sizes: Vt || void 0,
1925
+ srcSet: I,
1926
+ still: Nt || void 0,
1927
+ type: g || void 0,
1928
+ width: u.width
1929
+ };
1930
+ }) || [];
1931
+ if (!x)
1932
+ throw new Error("src must be a non-empty string.");
1933
+ if (t && [
1934
+ x,
1935
+ z,
1936
+ ...M.map((u) => u.srcSet)
1937
+ ].some((u) => u?.includes("#")))
1938
+ throw new Error("adaptive sources must not contain URL fragments.");
1939
+ const U = !!(n && t), nt = !!(n && _), $ = !!_ || M.some((u) => u.leadSrc);
1940
+ if (!n && $)
1941
+ throw new Error("leadSrc requires animated.");
1942
+ if (n) {
1943
+ const u = [
1944
+ x,
1945
+ z,
1946
+ _,
1947
+ ...M.flatMap((y) => [y.srcSet, y.leadSrc])
1948
+ ].filter((y) => !!y), L = u.filter((y) => y.includes("{scheme}"));
1949
+ if (t && L.length !== u.length)
1950
+ throw new Error(
1951
+ "adaptive animated sources must contain a {scheme} placeholder."
1952
+ );
1953
+ if (!t && L.length > 0)
1954
+ throw new Error(
1955
+ "the {scheme} placeholder requires adaptive to enable light/dark."
1956
+ );
1957
+ if (!D)
1958
+ throw new Error("animated requires a still.");
1959
+ if ([
1960
+ D,
1961
+ ...M.map((y) => y.still)
1962
+ ].filter((y) => !!y).some((y) => y.includes("#")))
1963
+ throw new Error("animated still must not contain URL fragments.");
1964
+ }
1965
+ const kt = (u, L) => u.split(/,\s+/).map((I) => {
1966
+ const [y, ...g] = I.trim().split(/\s+/);
1967
+ if (!y || g.length > 1)
1968
+ throw new Error(
1969
+ "adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace."
1970
+ );
1971
+ return [`${y}#${L}`, ...g].join(" ");
1972
+ }).join(", "), rt = (u) => {
1973
+ const L = {
1974
+ kind: "element",
1975
+ tag: "img",
1976
+ attrs: {
1977
+ alt: e,
1978
+ class: "img",
1979
+ "data-scheme": u && M.length === 0 ? u : void 0,
1980
+ fetchpriority: l ? "high" : void 0,
1981
+ height: k ? void 0 : o ? String(o) : void 0,
1982
+ loading: s && !l ? "lazy" : void 0,
1983
+ sizes: M.length > 0 ? void 0 : N || void 0,
1984
+ src: u ? `${x}#${u}` : x,
1985
+ srcset: z && u ? kt(z, u) : z || void 0,
1986
+ width: k ? void 0 : w ? String(w) : void 0
1987
+ },
1988
+ children: []
1989
+ };
1990
+ if (M.length === 0)
1991
+ return L;
1992
+ const I = M.map((y) => ({
1993
+ kind: "element",
1994
+ tag: "source",
1995
+ attrs: {
1996
+ height: y.height ? String(y.height) : void 0,
1997
+ media: y.media,
1998
+ sizes: y.sizes,
1999
+ srcset: u ? kt(y.srcSet, u) : y.srcSet,
2000
+ type: y.type,
2001
+ width: y.width ? String(y.width) : void 0
2002
+ },
2003
+ children: []
2004
+ }));
2005
+ return {
2006
+ kind: "element",
2007
+ tag: "picture",
2008
+ attrs: { "data-scheme": u },
2009
+ children: [...I, L]
2010
+ };
2011
+ }, at = "(prefers-reduced-motion: reduce)", R = (u, L) => L ? u.replaceAll("{scheme}", L) : u, ot = (u, L) => L ? `${u}#${L}` : u, gt = (u) => {
2012
+ const L = M.filter((g) => g.still).map((g) => ({
2013
+ kind: "element",
2014
+ tag: "source",
2015
+ attrs: {
2016
+ height: g.height ? String(g.height) : void 0,
2017
+ media: g.media ? `${at} and ${g.media}` : at,
2018
+ srcset: ot(g.still, u),
2019
+ width: g.width ? String(g.width) : void 0
2020
+ },
2021
+ children: []
2022
+ }));
2023
+ L.push({
2024
+ kind: "element",
2025
+ tag: "source",
2026
+ attrs: {
2027
+ media: at,
2028
+ srcset: ot(D, u)
2029
+ },
2030
+ children: []
2031
+ });
2032
+ const I = M.map((g) => ({
2033
+ kind: "element",
2034
+ tag: "source",
2035
+ attrs: {
2036
+ height: g.height ? String(g.height) : void 0,
2037
+ media: g.media,
2038
+ sizes: g.sizes,
2039
+ srcset: R(g.srcSet, u),
2040
+ type: g.type,
2041
+ width: g.width ? String(g.width) : void 0
2042
+ },
2043
+ children: []
2044
+ })), y = {
2045
+ kind: "element",
2046
+ tag: "img",
2047
+ attrs: {
2048
+ alt: e,
2049
+ class: "img",
2050
+ fetchpriority: l ? "high" : void 0,
2051
+ height: k ? void 0 : o ? String(o) : void 0,
2052
+ loading: s && !l ? "lazy" : void 0,
2053
+ sizes: M.length > 0 ? void 0 : N || void 0,
2054
+ src: R(x, u),
2055
+ srcset: z ? R(z, u) : void 0,
2056
+ width: k ? void 0 : w ? String(w) : void 0
2057
+ },
2058
+ children: []
2059
+ };
2060
+ return {
2061
+ kind: "element",
2062
+ tag: "picture",
2063
+ attrs: { "data-scheme": u },
2064
+ children: [...L, ...I, y]
2065
+ };
2066
+ }, _t = (u) => {
2067
+ const L = "(prefers-reduced-motion: no-preference)", I = M.map((g) => {
2068
+ if (g.leadSrc)
2069
+ return {
2070
+ kind: "element",
2071
+ tag: "source",
2072
+ attrs: {
2073
+ height: g.height ? String(g.height) : void 0,
2074
+ media: g.media ? `${L} and ${g.media}` : L,
2075
+ sizes: g.sizes,
2076
+ srcset: R(g.leadSrc, u),
2077
+ type: g.type,
2078
+ width: g.width ? String(g.width) : void 0
2079
+ },
2080
+ children: []
2081
+ };
2082
+ }).filter((g) => !!g);
2083
+ I.push({
2084
+ kind: "element",
2085
+ tag: "source",
2086
+ attrs: {
2087
+ media: L,
2088
+ sizes: M.length > 0 ? void 0 : N || void 0,
2089
+ srcset: R(_, u)
2090
+ },
2091
+ children: []
2092
+ });
2093
+ const y = {
2094
+ kind: "element",
2095
+ tag: "img",
2096
+ attrs: {
2097
+ alt: "",
2098
+ class: "img",
2099
+ height: k ? void 0 : o ? String(o) : void 0,
2100
+ src: ot(D, u),
2101
+ width: k ? void 0 : w ? String(w) : void 0
2102
+ },
2103
+ children: []
2104
+ };
2105
+ return {
2106
+ kind: "element",
2107
+ tag: "picture",
2108
+ attrs: { "data-scheme": u, "data-layer": "lead" },
2109
+ children: [...I, y]
2110
+ };
2111
+ }, dt = (u) => nt ? [gt(u), _t(u)] : [gt(u)], Dt = n ? U ? [...dt("light"), ...dt("dark")] : dt() : t ? [rt("light"), rt("dark")] : [rt()], G = [];
2112
+ return o && G.push(`--set-image-block-size: ${o / 16}rem`), w && G.push(`--set-image-inline-size: ${w / 16}rem`), {
1937
2113
  kind: "element",
1938
2114
  tag: K,
1939
2115
  attrs: {
1940
- class: "set-lightswitch",
1941
- id: a
2116
+ class: "set-image",
2117
+ "data-adaptive": !!t,
2118
+ "data-animated": !!n,
2119
+ "data-sequenced": nt,
2120
+ "data-aspect-ratio": k && !o ? i : void 0,
2121
+ "data-fluid": r === "fluid",
2122
+ "data-gravity": k && a !== "C" ? a : void 0,
2123
+ "data-shadow": !!h,
2124
+ "data-object-fit": k ? "cover" : void 0,
2125
+ "data-radius": !!c,
2126
+ id: C,
2127
+ style: G.length > 0 ? G.join("; ") : void 0
1942
2128
  },
1943
- children: [
1944
- {
1945
- kind: "element",
1946
- tag: "button",
1947
- attrs: {
1948
- class: "toggle",
1949
- "data-appearance": t,
1950
- "data-size": r,
1951
- type: "button"
1952
- },
1953
- children: [
1954
- gt("dark", o),
1955
- gt("light", d)
1956
- ]
1957
- }
1958
- ]
2129
+ children: Dt
1959
2130
  };
1960
2131
  }
1961
- function ki(t) {
1962
- return m(Qt(t));
2132
+ function Qt(t) {
2133
+ return m(Xt(t));
1963
2134
  }
1964
2135
  function Yt() {
1965
2136
  if (customElements.get(K)) return;
1966
- class t extends HTMLElement {
1967
- #t = (e) => {
1968
- const i = e.target;
1969
- if (!(i instanceof Element) || !i.closest("button")) return;
1970
- const r = Kt(this.#u());
1971
- r === this.#r() ? this.#d() : this.#n(r), this.#a(), this.dispatchEvent(
1972
- new CustomEvent(Lt, {
1973
- bubbles: !0,
1974
- detail: { stored: !!this.#i(), theme: r }
1975
- })
1976
- );
1977
- };
2137
+ const t = "(prefers-reduced-motion: reduce)";
2138
+ class n extends HTMLElement {
1978
2139
  connectedCallback() {
1979
- this.removeEventListener("click", this.#t), this.addEventListener("click", this.#t), this.#i() && this.#a();
1980
- }
1981
- disconnectedCallback() {
1982
- this.removeEventListener("click", this.#t);
1983
- }
1984
- #e() {
1985
- try {
1986
- return this.ownerDocument.defaultView?.localStorage;
1987
- } catch {
1988
- return;
1989
- }
1990
- }
1991
- #i() {
1992
- try {
1993
- const e = this.#e()?.getItem(dt);
1994
- return e === "light" || e === "dark" ? e : void 0;
1995
- } catch {
1996
- return;
1997
- }
1998
- }
1999
- #n(e) {
2000
- try {
2001
- this.#e()?.setItem(dt, e);
2002
- } catch {
2003
- }
2004
- }
2005
- #d() {
2006
- try {
2007
- this.#e()?.removeItem(dt);
2008
- } catch {
2009
- }
2010
- }
2011
- #r() {
2012
- const e = this.ownerDocument.defaultView;
2013
- return !e || typeof e.matchMedia != "function" ? "light" : e.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2014
- }
2015
- #c() {
2016
- return this.closest(".set");
2017
- }
2018
- #s() {
2019
- const e = this.#c()?.getAttribute("data-set-theme");
2020
- return e === "light" || e === "dark" ? e : void 0;
2021
- }
2022
- #u() {
2023
- return this.#i() ?? this.#s() ?? this.#r();
2024
- }
2025
- #a() {
2026
- const e = this.#c();
2027
- if (!e) return;
2028
- const i = this.#i();
2029
- i ? e.setAttribute("data-set-theme", i) : e.removeAttribute("data-set-theme");
2140
+ const i = this.querySelectorAll('[data-layer="lead"]');
2141
+ if (!(i.length === 0 || this.ownerDocument.defaultView?.matchMedia?.(t).matches))
2142
+ for (const a of i) this.#t(a);
2143
+ }
2144
+ // Drive the overlay's hide from playback readiness rather than render, so a
2145
+ // slow connection can't clip the hand-off before the frames have loaded.
2146
+ #t(i) {
2147
+ const r = i.querySelector("img");
2148
+ if (!r) return;
2149
+ i.style.animation = "none";
2150
+ const a = () => {
2151
+ i.offsetWidth, i.style.animation = "";
2152
+ };
2153
+ r.complete ? a() : r.addEventListener("load", a, { once: !0 });
2030
2154
  }
2031
2155
  }
2032
- customElements.define(K, t);
2156
+ customElements.define(K, n);
2033
2157
  }
2034
- const gi = {
2035
- name: "lightswitch",
2036
- description: "Use `lightswitch` to let users toggle between light and dark themes.",
2037
- output: { element: K, class: "set-lightswitch" },
2158
+ const bi = {
2159
+ name: "image",
2160
+ description: "Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",
2161
+ output: { element: K, class: "set-image" },
2038
2162
  content: { kind: "none" },
2039
2163
  props: {
2040
- appearance: {
2041
- default: "text",
2042
- description: "Visual appearance of the toggle button.",
2043
- type: { kind: "enum", values: ["outline", "solid", "text"] }
2164
+ adaptive: {
2165
+ default: !1,
2166
+ 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.",
2167
+ type: { kind: "boolean" }
2168
+ },
2169
+ animated: {
2170
+ default: !1,
2171
+ 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.",
2172
+ type: { kind: "boolean" }
2173
+ },
2174
+ alt: {
2175
+ default: "",
2176
+ description: "Alternative text. Leave empty for decorative images.",
2177
+ type: { kind: "string" }
2178
+ },
2179
+ gravity: {
2180
+ default: "C",
2181
+ description: "Focal point used when cropping.",
2182
+ ignoredWhen: '`fit` is not `"cover"`',
2183
+ type: {
2184
+ kind: "enum",
2185
+ values: ["N", "NE", "E", "SE", "S", "SW", "W", "NW", "C"]
2186
+ }
2187
+ },
2188
+ radius: {
2189
+ default: !1,
2190
+ description: "Applies the default corner radius.",
2191
+ type: { kind: "boolean" }
2192
+ },
2193
+ aspectRatio: {
2194
+ description: "Aspect ratio applied to the wrapper.",
2195
+ ignoredWhen: '`fit` is not `"cover"`, or `height` is set',
2196
+ type: {
2197
+ kind: "enum",
2198
+ values: ["1:1", "4:5", "3:2", "16:9", "21:9"]
2199
+ }
2200
+ },
2201
+ fit: {
2202
+ default: "intrinsic",
2203
+ description: "Layout mode. `intrinsic` renders at the image's own dimensions, `fluid` scales to the container's full inline size at the active source's aspect ratio, `cover` renders a cropped fill (`object-fit: cover`) sized by the wrapper. For `fluid`, provide candidates sized for large viewports via `srcSet`/`sources` so upscaled rendering stays sharp.",
2204
+ type: { kind: "enum", values: ["intrinsic", "fluid", "cover"] }
2205
+ },
2206
+ shadow: {
2207
+ default: !1,
2208
+ description: "Applies a drop shadow to the image.",
2209
+ type: { kind: "boolean" }
2210
+ },
2211
+ height: {
2212
+ description: "Height in pixels. Under `intrinsic` and `fluid`, an aspect-ratio hint — with `width`, reserves the correctly shaped box before load; rendered height follows the aspect ratio. Under `cover`, the wrapper's block size, overriding `aspectRatio`.",
2213
+ type: { kind: "number" }
2044
2214
  },
2045
2215
  id: {
2046
2216
  description: "DOM id.",
2047
2217
  type: { kind: "string" }
2048
2218
  },
2049
- labelDark: {
2050
- default: st,
2051
- description: "Accessible label of the switch-to-dark action.",
2219
+ lazy: {
2220
+ default: !1,
2221
+ description: "Defers loading until the image is near the viewport.",
2222
+ type: { kind: "boolean" }
2223
+ },
2224
+ priority: {
2225
+ default: !1,
2226
+ description: "Marks the image as high priority for fetch.",
2227
+ type: { kind: "boolean" }
2228
+ },
2229
+ sizes: {
2230
+ description: "`sizes` attribute used with `srcSet`.",
2231
+ ignoredWhen: "`sources` are provided",
2052
2232
  type: { kind: "string" }
2053
2233
  },
2054
- labelLight: {
2055
- default: lt,
2056
- description: "Accessible label of the switch-to-light action.",
2234
+ sources: {
2235
+ description: "Responsive sources rendered inside a `<picture>`.",
2236
+ type: {
2237
+ kind: "array",
2238
+ itemShape: {
2239
+ height: {
2240
+ description: "Intrinsic height in pixels.",
2241
+ type: { kind: "number" }
2242
+ },
2243
+ media: {
2244
+ description: "`media` condition evaluated for the source.",
2245
+ type: { kind: "string" }
2246
+ },
2247
+ sizes: {
2248
+ description: "`sizes` attribute for the source.",
2249
+ type: { kind: "string" }
2250
+ },
2251
+ srcSet: {
2252
+ description: "Candidate sources for this media entry.",
2253
+ required: !0,
2254
+ type: { kind: "string" }
2255
+ },
2256
+ leadSrc: {
2257
+ description: "Intro overlay for this source in an `animated` sequence.",
2258
+ type: { kind: "string" }
2259
+ },
2260
+ still: {
2261
+ description: "Reduced-motion still for this source, used when `animated`. For a light/dark still, use an adaptive SVG.",
2262
+ type: { kind: "string" }
2263
+ },
2264
+ type: {
2265
+ description: "MIME type for the source resources.",
2266
+ type: { kind: "string" }
2267
+ },
2268
+ width: {
2269
+ description: "Intrinsic width in pixels.",
2270
+ type: { kind: "number" }
2271
+ }
2272
+ }
2273
+ }
2274
+ },
2275
+ srcSet: {
2276
+ description: "Candidate sources for the fallback image.",
2057
2277
  type: { kind: "string" }
2058
2278
  },
2059
- size: {
2060
- default: "md",
2061
- description: "Size variant.",
2062
- type: { kind: "enum", values: ["sm", "md", "lg"] }
2063
- }
2064
- },
2065
- events: {
2066
- [Lt]: {
2067
- bubbles: !0,
2068
- description: "Fired after activation applies a theme. `detail.theme` is the theme switched to; `detail.stored` is false when the change cleared the override to follow the system preference again."
2279
+ leadSrc: {
2280
+ 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.",
2281
+ type: { kind: "string" }
2282
+ },
2283
+ still: {
2284
+ 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`.",
2285
+ requiredWhen: "`animated` is set",
2286
+ type: { kind: "string" }
2287
+ },
2288
+ src: {
2289
+ description: "Image source URL.",
2290
+ required: !0,
2291
+ type: { kind: "string" }
2292
+ },
2293
+ width: {
2294
+ description: "Width in pixels. Under `intrinsic`, the rendered width, capped at the container; under `fluid`, an aspect-ratio hint; under `cover`, the wrapper's inline size (`aspectRatio` still derives the block size while `height` is unset).",
2295
+ type: { kind: "number" }
2069
2296
  }
2070
2297
  },
2298
+ events: {},
2071
2299
  rules: {
2072
2300
  attributes: [
2073
2301
  {
2074
2302
  target: { on: "host" },
2075
- attribute: "id",
2076
- condition: { kind: "when-non-empty", prop: "id" },
2077
- value: { kind: "prop", prop: "id" }
2303
+ attribute: "data-adaptive",
2304
+ condition: { kind: "when-truthy", prop: "adaptive" }
2078
2305
  },
2079
2306
  {
2080
- target: { on: "descendant", selector: "button" },
2081
- attribute: "class",
2082
- condition: { kind: "always" },
2083
- value: { kind: "literal", text: "toggle" }
2307
+ target: { on: "host" },
2308
+ attribute: "data-animated",
2309
+ condition: { kind: "when-truthy", prop: "animated" }
2084
2310
  },
2085
2311
  {
2086
- target: { on: "descendant", selector: "button" },
2087
- attribute: "data-appearance",
2088
- condition: { kind: "always" },
2089
- value: { kind: "prop", prop: "appearance" }
2312
+ target: { on: "host" },
2313
+ attribute: "data-sequenced",
2314
+ condition: { kind: "when-non-empty", prop: "leadSrc" }
2090
2315
  },
2091
2316
  {
2092
- target: { on: "descendant", selector: "button" },
2093
- attribute: "data-size",
2094
- condition: { kind: "always" },
2095
- value: { kind: "prop", prop: "size" }
2317
+ target: { on: "host" },
2318
+ attribute: "data-object-fit",
2319
+ condition: { kind: "when-equals", prop: "fit", to: "cover" },
2320
+ value: { kind: "literal", text: "cover" }
2096
2321
  },
2097
2322
  {
2098
- target: { on: "descendant", selector: "button" },
2099
- attribute: "type",
2100
- condition: { kind: "always" },
2101
- value: { kind: "literal", text: "button" }
2102
- }
2103
- ]
2104
- }
2105
- }, X = "set-menu", Mt = "set-menu-choose";
2106
- function Jt({
2107
- align: t = "start",
2108
- id: n,
2109
- items: e,
2110
- size: i = "md",
2111
- triggerIcon: r,
2112
- triggerIconMirrored: a,
2113
- triggerIconPlacement: o,
2114
- triggerLabel: d,
2115
- triggerLabelVisibility: s
2116
- }) {
2117
- const p = n.trim();
2118
- if (!p)
2119
- throw new Error("id must be a non-empty string.");
2120
- if (!V(p))
2121
- throw new Error(
2122
- "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
2123
- );
2124
- if (!Array.isArray(e))
2125
- throw new Error("items must be an array.");
2126
- const l = `${p}-button`, c = `${p}-popup`, h = e.map((b) => ({
2127
- kind: "element",
2128
- tag: "button",
2129
- attrs: {
2130
- "aria-disabled": b.disabled ? "true" : void 0,
2131
- "data-item-id": b.id || void 0,
2132
- role: "menuitem",
2133
- tabindex: "-1",
2134
- type: "button"
2135
- },
2136
- children: [{ kind: "text", value: b.label }]
2137
- }));
2323
+ target: { on: "host" },
2324
+ attribute: "data-shadow",
2325
+ condition: { kind: "when-truthy", prop: "shadow" }
2326
+ },
2327
+ {
2328
+ target: { on: "host" },
2329
+ attribute: "data-radius",
2330
+ condition: { kind: "when-truthy", prop: "radius" }
2331
+ },
2332
+ {
2333
+ target: { on: "host" },
2334
+ attribute: "data-fluid",
2335
+ condition: { kind: "when-equals", prop: "fit", to: "fluid" }
2336
+ },
2337
+ {
2338
+ target: { on: "descendant", selector: "img" },
2339
+ attribute: "class",
2340
+ condition: { kind: "always" },
2341
+ value: { kind: "literal", text: "img" }
2342
+ },
2343
+ {
2344
+ target: { on: "descendant", selector: "img" },
2345
+ attribute: "alt",
2346
+ condition: { kind: "always" },
2347
+ value: { kind: "prop", prop: "alt" }
2348
+ },
2349
+ {
2350
+ target: { on: "descendant", selector: "img" },
2351
+ attribute: "src",
2352
+ condition: { kind: "always" },
2353
+ value: { kind: "template", pattern: "{src}" }
2354
+ },
2355
+ {
2356
+ target: { on: "descendant", selector: "img" },
2357
+ attribute: "srcset",
2358
+ condition: { kind: "when-non-empty", prop: "srcSet" },
2359
+ value: { kind: "prop", prop: "srcSet" }
2360
+ },
2361
+ {
2362
+ target: { on: "descendant", selector: "img" },
2363
+ attribute: "fetchpriority",
2364
+ condition: { kind: "when-truthy", prop: "priority" },
2365
+ value: { kind: "literal", text: "high" }
2366
+ },
2367
+ {
2368
+ target: { on: "descendant", selector: "img" },
2369
+ attribute: "loading",
2370
+ condition: {
2371
+ kind: "all",
2372
+ of: [
2373
+ { kind: "when-truthy", prop: "lazy" },
2374
+ { kind: "not", of: { kind: "when-truthy", prop: "priority" } }
2375
+ ]
2376
+ },
2377
+ value: { kind: "literal", text: "lazy" }
2378
+ },
2379
+ {
2380
+ target: { on: "host" },
2381
+ attribute: "id",
2382
+ condition: { kind: "when-non-empty", prop: "id" },
2383
+ value: { kind: "prop", prop: "id" }
2384
+ }
2385
+ ]
2386
+ }
2387
+ }, X = "set-lightswitch", Mt = "set-lightswitch-change", st = "set-theme", lt = "Switch to dark theme", pt = "Switch to light theme";
2388
+ function Jt(t) {
2389
+ return t === "dark" ? "light" : "dark";
2390
+ }
2391
+ function te(t) {
2392
+ return t === "dark" ? "moon" : "sunny";
2393
+ }
2394
+ function bt(t, n) {
2138
2395
  return {
2139
2396
  kind: "element",
2140
- tag: X,
2141
- attrs: {
2142
- class: "set-menu",
2143
- "data-align": t === "start" ? void 0 : t,
2144
- "data-size": i,
2145
- id: p
2146
- },
2397
+ tag: "span",
2398
+ attrs: { class: "option", "data-option": t },
2147
2399
  children: [
2148
2400
  {
2149
2401
  kind: "element",
2150
- tag: "div",
2151
- attrs: { "data-part": "trigger" },
2402
+ tag: "span",
2403
+ attrs: { class: "icon-wrapper" },
2152
2404
  children: [
2153
- ut({
2154
- appearance: "outline",
2155
- controls: c,
2156
- disclosure: !0,
2157
- haspopup: "menu",
2158
- icon: r,
2159
- iconMirrored: a,
2160
- iconPlacement: o,
2161
- id: l,
2162
- label: d,
2163
- labelVisibility: s,
2164
- size: i,
2165
- tone: "neutral",
2166
- type: "button"
2405
+ P({
2406
+ ariaHidden: !0,
2407
+ name: te(t),
2408
+ size: "fill"
2167
2409
  })
2168
2410
  ]
2169
2411
  },
2170
2412
  {
2171
2413
  kind: "element",
2172
- tag: "div",
2414
+ tag: "span",
2415
+ attrs: { class: "label" },
2416
+ children: [{ kind: "text", value: n }]
2417
+ }
2418
+ ]
2419
+ };
2420
+ }
2421
+ function ee({
2422
+ appearance: t = "text",
2423
+ id: n,
2424
+ labelDark: e = lt,
2425
+ labelLight: i = pt,
2426
+ size: r = "md"
2427
+ }) {
2428
+ const a = v(n), o = e.trim() === "" ? lt : e, d = i.trim() === "" ? pt : i;
2429
+ return {
2430
+ kind: "element",
2431
+ tag: X,
2432
+ attrs: {
2433
+ class: "set-lightswitch",
2434
+ id: a
2435
+ },
2436
+ children: [
2437
+ {
2438
+ kind: "element",
2439
+ tag: "button",
2173
2440
  attrs: {
2174
- "aria-labelledby": l,
2175
- class: "popup",
2176
- hidden: !0,
2177
- id: c,
2178
- role: "menu"
2441
+ class: "toggle",
2442
+ "data-appearance": t,
2443
+ "data-size": r,
2444
+ type: "button"
2179
2445
  },
2180
- children: h
2446
+ children: [
2447
+ bt("dark", o),
2448
+ bt("light", d)
2449
+ ]
2181
2450
  }
2182
2451
  ]
2183
2452
  };
2184
2453
  }
2185
- function bi(t) {
2186
- return m(Jt(t));
2454
+ function vi(t) {
2455
+ return m(ee(t));
2187
2456
  }
2188
- function te() {
2457
+ function ie() {
2189
2458
  if (customElements.get(X)) return;
2190
2459
  class t extends HTMLElement {
2191
- #t;
2192
- #e;
2193
- #i;
2194
- #n;
2460
+ #t = (e) => {
2461
+ const i = e.target;
2462
+ if (!(i instanceof Element) || !i.closest("button")) return;
2463
+ const r = Jt(this.#u());
2464
+ r === this.#r() ? this.#d() : this.#n(r), this.#a(), this.dispatchEvent(
2465
+ new CustomEvent(Mt, {
2466
+ bubbles: !0,
2467
+ detail: { stored: !!this.#i(), theme: r }
2468
+ })
2469
+ );
2470
+ };
2195
2471
  connectedCallback() {
2196
- this.#p(), this.#o(!1), this.#k();
2472
+ this.removeEventListener("click", this.#t), this.addEventListener("click", this.#t), this.#i() && this.#a();
2197
2473
  }
2198
2474
  disconnectedCallback() {
2199
- this.#p();
2475
+ this.removeEventListener("click", this.#t);
2476
+ }
2477
+ #e() {
2478
+ try {
2479
+ return this.ownerDocument.defaultView?.localStorage;
2480
+ } catch {
2481
+ return;
2482
+ }
2483
+ }
2484
+ #i() {
2485
+ try {
2486
+ const e = this.#e()?.getItem(st);
2487
+ return e === "light" || e === "dark" ? e : void 0;
2488
+ } catch {
2489
+ return;
2490
+ }
2491
+ }
2492
+ #n(e) {
2493
+ try {
2494
+ this.#e()?.setItem(st, e);
2495
+ } catch {
2496
+ }
2200
2497
  }
2201
2498
  #d() {
2202
- return this.querySelector(
2203
- '[data-part="trigger"] .set-button'
2204
- );
2499
+ try {
2500
+ this.#e()?.removeItem(st);
2501
+ } catch {
2502
+ }
2205
2503
  }
2206
2504
  #r() {
2207
- return this.querySelector('[role="menu"]');
2505
+ const e = this.ownerDocument.defaultView;
2506
+ return !e || typeof e.matchMedia != "function" ? "light" : e.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2208
2507
  }
2209
2508
  #c() {
2210
- return Array.from(
2211
- this.querySelectorAll('[role="menuitem"]')
2212
- );
2509
+ return this.closest(".set");
2213
2510
  }
2214
- #s(e) {
2215
- return e.getAttribute("aria-disabled") === "true";
2511
+ #s() {
2512
+ const e = this.#c()?.getAttribute("data-set-theme");
2513
+ return e === "light" || e === "dark" ? e : void 0;
2216
2514
  }
2217
2515
  #u() {
2218
- return this.hasAttribute("data-open");
2219
- }
2220
- #a(e) {
2221
- const i = this.#c();
2222
- if (i.length === 0) return;
2223
- const r = (e % i.length + i.length) % i.length;
2224
- i[r]?.focus();
2225
- }
2226
- #l(e = 0) {
2227
- const i = this.#r(), r = this.#d();
2228
- !i || !r || (i.hidden = !1, this.setAttribute("data-open", ""), r.setAttribute("aria-expanded", "true"), this.#a(e));
2229
- }
2230
- #o(e = !1) {
2231
- const i = this.#r(), r = this.#d();
2232
- !i || !r || (i.hidden = !0, this.removeAttribute("data-open"), r.setAttribute("aria-expanded", "false"), e && r.focus());
2516
+ return this.#i() ?? this.#s() ?? this.#r();
2233
2517
  }
2234
- #h(e) {
2235
- const r = Array.from(
2236
- this.querySelectorAll('[role="menuitem"]')
2237
- ).indexOf(e);
2238
- this.dispatchEvent(
2239
- new CustomEvent(Mt, {
2240
- bubbles: !0,
2241
- detail: {
2242
- id: e.getAttribute("data-item-id") || void 0,
2243
- index: r,
2244
- label: e.textContent || ""
2245
- }
2246
- })
2247
- );
2518
+ #a() {
2519
+ const e = this.#c();
2520
+ if (!e) return;
2521
+ const i = this.#i();
2522
+ i ? e.setAttribute("data-set-theme", i) : e.removeAttribute("data-set-theme");
2248
2523
  }
2249
- #k() {
2250
- this.#t = (e) => {
2251
- const i = e.target;
2252
- if (!(i instanceof Element)) return;
2253
- if (i.closest('[data-part="trigger"] .set-button')) {
2254
- if (this.#u()) {
2255
- this.#o();
2256
- return;
2524
+ }
2525
+ customElements.define(X, t);
2526
+ }
2527
+ const fi = {
2528
+ name: "lightswitch",
2529
+ description: "Use `lightswitch` to let users toggle between light and dark themes.",
2530
+ output: { element: X, class: "set-lightswitch" },
2531
+ content: { kind: "none" },
2532
+ props: {
2533
+ appearance: {
2534
+ default: "text",
2535
+ description: "Visual appearance of the toggle button.",
2536
+ type: { kind: "enum", values: ["outline", "solid", "text"] }
2537
+ },
2538
+ id: {
2539
+ description: "DOM id.",
2540
+ type: { kind: "string" }
2541
+ },
2542
+ labelDark: {
2543
+ default: lt,
2544
+ description: "Accessible label of the switch-to-dark action.",
2545
+ type: { kind: "string" }
2546
+ },
2547
+ labelLight: {
2548
+ default: pt,
2549
+ description: "Accessible label of the switch-to-light action.",
2550
+ type: { kind: "string" }
2551
+ },
2552
+ size: {
2553
+ default: "md",
2554
+ description: "Size variant.",
2555
+ type: { kind: "enum", values: ["sm", "md", "lg"] }
2556
+ }
2557
+ },
2558
+ events: {
2559
+ [Mt]: {
2560
+ bubbles: !0,
2561
+ description: "Fired after activation applies a theme. `detail.theme` is the theme switched to; `detail.stored` is false when the change cleared the override to follow the system preference again."
2562
+ }
2563
+ },
2564
+ rules: {
2565
+ attributes: [
2566
+ {
2567
+ target: { on: "host" },
2568
+ attribute: "id",
2569
+ condition: { kind: "when-non-empty", prop: "id" },
2570
+ value: { kind: "prop", prop: "id" }
2571
+ },
2572
+ {
2573
+ target: { on: "descendant", selector: "button" },
2574
+ attribute: "class",
2575
+ condition: { kind: "always" },
2576
+ value: { kind: "literal", text: "toggle" }
2577
+ },
2578
+ {
2579
+ target: { on: "descendant", selector: "button" },
2580
+ attribute: "data-appearance",
2581
+ condition: { kind: "always" },
2582
+ value: { kind: "prop", prop: "appearance" }
2583
+ },
2584
+ {
2585
+ target: { on: "descendant", selector: "button" },
2586
+ attribute: "data-size",
2587
+ condition: { kind: "always" },
2588
+ value: { kind: "prop", prop: "size" }
2589
+ },
2590
+ {
2591
+ target: { on: "descendant", selector: "button" },
2592
+ attribute: "type",
2593
+ condition: { kind: "always" },
2594
+ value: { kind: "literal", text: "button" }
2595
+ }
2596
+ ]
2597
+ }
2598
+ }, Q = "set-menu", qt = "set-menu-choose";
2599
+ function ne({
2600
+ align: t = "start",
2601
+ id: n,
2602
+ items: e,
2603
+ size: i = "md",
2604
+ triggerIcon: r,
2605
+ triggerIconMirrored: a,
2606
+ triggerIconPlacement: o,
2607
+ triggerLabel: d,
2608
+ triggerLabelVisibility: s
2609
+ }) {
2610
+ const p = n.trim();
2611
+ if (!p)
2612
+ throw new Error("id must be a non-empty string.");
2613
+ if (!V(p))
2614
+ throw new Error(
2615
+ "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
2616
+ );
2617
+ if (!Array.isArray(e))
2618
+ throw new Error("items must be an array.");
2619
+ const l = `${p}-button`, c = `${p}-popup`, h = e.map((b) => ({
2620
+ kind: "element",
2621
+ tag: "button",
2622
+ attrs: {
2623
+ "aria-disabled": b.disabled ? "true" : void 0,
2624
+ "data-item-id": b.id || void 0,
2625
+ role: "menuitem",
2626
+ tabindex: "-1",
2627
+ type: "button"
2628
+ },
2629
+ children: [{ kind: "text", value: b.label }]
2630
+ }));
2631
+ return {
2632
+ kind: "element",
2633
+ tag: Q,
2634
+ attrs: {
2635
+ class: "set-menu",
2636
+ "data-align": t === "start" ? void 0 : t,
2637
+ "data-size": i,
2638
+ id: p
2639
+ },
2640
+ children: [
2641
+ {
2642
+ kind: "element",
2643
+ tag: "div",
2644
+ attrs: { "data-part": "trigger" },
2645
+ children: [
2646
+ ht({
2647
+ appearance: "outline",
2648
+ controls: c,
2649
+ disclosure: !0,
2650
+ haspopup: "menu",
2651
+ icon: r,
2652
+ iconMirrored: a,
2653
+ iconPlacement: o,
2654
+ id: l,
2655
+ label: d,
2656
+ labelVisibility: s,
2657
+ size: i,
2658
+ tone: "neutral",
2659
+ type: "button"
2660
+ })
2661
+ ]
2662
+ },
2663
+ {
2664
+ kind: "element",
2665
+ tag: "div",
2666
+ attrs: {
2667
+ "aria-labelledby": l,
2668
+ class: "popup",
2669
+ hidden: !0,
2670
+ id: c,
2671
+ role: "menu"
2672
+ },
2673
+ children: h
2674
+ }
2675
+ ]
2676
+ };
2677
+ }
2678
+ function yi(t) {
2679
+ return m(ne(t));
2680
+ }
2681
+ function re() {
2682
+ if (customElements.get(Q)) return;
2683
+ class t extends HTMLElement {
2684
+ #t;
2685
+ #e;
2686
+ #i;
2687
+ #n;
2688
+ connectedCallback() {
2689
+ this.#p(), this.#o(!1), this.#k();
2690
+ }
2691
+ disconnectedCallback() {
2692
+ this.#p();
2693
+ }
2694
+ #d() {
2695
+ return this.querySelector(
2696
+ '[data-part="trigger"] .set-button'
2697
+ );
2698
+ }
2699
+ #r() {
2700
+ return this.querySelector('[role="menu"]');
2701
+ }
2702
+ #c() {
2703
+ return Array.from(
2704
+ this.querySelectorAll('[role="menuitem"]')
2705
+ );
2706
+ }
2707
+ #s(e) {
2708
+ return e.getAttribute("aria-disabled") === "true";
2709
+ }
2710
+ #u() {
2711
+ return this.hasAttribute("data-open");
2712
+ }
2713
+ #a(e) {
2714
+ const i = this.#c();
2715
+ if (i.length === 0) return;
2716
+ const r = (e % i.length + i.length) % i.length;
2717
+ i[r]?.focus();
2718
+ }
2719
+ #l(e = 0) {
2720
+ const i = this.#r(), r = this.#d();
2721
+ !i || !r || (i.hidden = !1, this.setAttribute("data-open", ""), r.setAttribute("aria-expanded", "true"), this.#a(e));
2722
+ }
2723
+ #o(e = !1) {
2724
+ const i = this.#r(), r = this.#d();
2725
+ !i || !r || (i.hidden = !0, this.removeAttribute("data-open"), r.setAttribute("aria-expanded", "false"), e && r.focus());
2726
+ }
2727
+ #h(e) {
2728
+ const r = Array.from(
2729
+ this.querySelectorAll('[role="menuitem"]')
2730
+ ).indexOf(e);
2731
+ this.dispatchEvent(
2732
+ new CustomEvent(qt, {
2733
+ bubbles: !0,
2734
+ detail: {
2735
+ id: e.getAttribute("data-item-id") || void 0,
2736
+ index: r,
2737
+ label: e.textContent || ""
2738
+ }
2739
+ })
2740
+ );
2741
+ }
2742
+ #k() {
2743
+ this.#t = (e) => {
2744
+ const i = e.target;
2745
+ if (!(i instanceof Element)) return;
2746
+ if (i.closest('[data-part="trigger"] .set-button')) {
2747
+ if (this.#u()) {
2748
+ this.#o();
2749
+ return;
2257
2750
  }
2258
2751
  this.#l(0);
2259
2752
  return;
@@ -2298,13 +2791,13 @@ function te() {
2298
2791
  this.#t && this.removeEventListener("click", this.#t), this.#e && this.ownerDocument.removeEventListener("click", this.#e), this.#n && this.removeEventListener("keydown", this.#n), this.#i && this.removeEventListener("focusout", this.#i), this.#t = void 0, this.#e = void 0, this.#i = void 0, this.#n = void 0;
2299
2792
  }
2300
2793
  }
2301
- customElements.define(X, t);
2794
+ customElements.define(Q, t);
2302
2795
  }
2303
- const vi = {
2796
+ const wi = {
2304
2797
  name: "menu",
2305
2798
  description: "Use `menu` to show a list of actions from a trigger button.",
2306
2799
  output: {
2307
- element: X,
2800
+ element: Q,
2308
2801
  class: "set-menu"
2309
2802
  },
2310
2803
  content: {
@@ -2378,7 +2871,7 @@ const vi = {
2378
2871
  }
2379
2872
  },
2380
2873
  events: {
2381
- [Mt]: {
2874
+ [qt]: {
2382
2875
  bubbles: !0,
2383
2876
  description: "Fired when a menu item is activated.",
2384
2877
  detail: "{ id?: string; index: number; label: string }"
@@ -2438,15 +2931,15 @@ const vi = {
2438
2931
  }
2439
2932
  ]
2440
2933
  }
2441
- }, pt = "Menu";
2442
- function ee({
2934
+ }, ct = "Menu";
2935
+ function ae({
2443
2936
  controlsId: t,
2444
2937
  expanded: n,
2445
2938
  id: e,
2446
- label: i = pt,
2939
+ label: i = ct,
2447
2940
  size: r = "md"
2448
2941
  } = {}) {
2449
- const a = v(e), o = i.trim() === "" ? pt : i;
2942
+ const a = v(e), o = i.trim() === "" ? ct : i;
2450
2943
  return {
2451
2944
  kind: "element",
2452
2945
  tag: "button",
@@ -2481,10 +2974,10 @@ function ee({
2481
2974
  ]
2482
2975
  };
2483
2976
  }
2484
- function ie(t = {}) {
2485
- return m(ee(t));
2977
+ function oe(t = {}) {
2978
+ return m(ae(t));
2486
2979
  }
2487
- const fi = {
2980
+ const Si = {
2488
2981
  name: "expander",
2489
2982
  description: "Use `expander` as a toggle for disclosure regions such as menus.",
2490
2983
  output: { element: "button", class: "set-expander" },
@@ -2504,7 +2997,7 @@ const fi = {
2504
2997
  type: { kind: "string" }
2505
2998
  },
2506
2999
  label: {
2507
- default: pt,
3000
+ default: ct,
2508
3001
  description: "Accessible label.",
2509
3002
  type: { kind: "text" }
2510
3003
  },
@@ -2549,8 +3042,8 @@ const fi = {
2549
3042
  }
2550
3043
  ]
2551
3044
  }
2552
- }, Q = "set-nav", bt = "data-set-scroll-locked";
2553
- function ne({
3045
+ }, Y = "set-nav", vt = "data-set-scroll-locked";
3046
+ function de({
2554
3047
  collapsible: t,
2555
3048
  contentId: n,
2556
3049
  expanderLabel: e,
@@ -2588,7 +3081,7 @@ function ne({
2588
3081
  }));
2589
3082
  return {
2590
3083
  kind: "element",
2591
- tag: Q,
3084
+ tag: Y,
2592
3085
  attrs: {
2593
3086
  class: "set-nav",
2594
3087
  "data-collapsible": t,
@@ -2627,11 +3120,11 @@ function ne({
2627
3120
  ]
2628
3121
  };
2629
3122
  }
2630
- function yi(t) {
2631
- return m(ne(t));
3123
+ function xi(t) {
3124
+ return m(de(t));
2632
3125
  }
2633
- function re() {
2634
- if (customElements.get(Q)) return;
3126
+ function se() {
3127
+ if (customElements.get(Y)) return;
2635
3128
  class t extends HTMLElement {
2636
3129
  #t;
2637
3130
  #e;
@@ -2657,7 +3150,7 @@ function re() {
2657
3150
  const i = e.querySelector(".content");
2658
3151
  i && e.insertAdjacentHTML(
2659
3152
  "afterbegin",
2660
- `<div data-part="expander">${ie({
3153
+ `<div data-part="expander">${oe({
2661
3154
  controlsId: i.id || void 0,
2662
3155
  label: this.getAttribute("data-expander-label") || void 0,
2663
3156
  size: this.getAttribute("data-size") === "sm" ? "md" : "lg"
@@ -2690,10 +3183,10 @@ function re() {
2690
3183
  const i = this.ownerDocument.documentElement;
2691
3184
  if (i) {
2692
3185
  if (e) {
2693
- i.setAttribute(bt, "");
3186
+ i.setAttribute(vt, "");
2694
3187
  return;
2695
3188
  }
2696
- i.removeAttribute(bt);
3189
+ i.removeAttribute(vt);
2697
3190
  }
2698
3191
  }
2699
3192
  #o() {
@@ -2707,12 +3200,12 @@ function re() {
2707
3200
  ), this.#i = void 0, this.#n = void 0, this.#e = void 0;
2708
3201
  }
2709
3202
  }
2710
- customElements.define(Q, t);
3203
+ customElements.define(Y, t);
2711
3204
  }
2712
- const wi = {
3205
+ const Ei = {
2713
3206
  name: "nav",
2714
3207
  description: "Use `nav` to render a primary navigation list.",
2715
- output: { element: Q, class: "set-nav" },
3208
+ output: { element: Y, class: "set-nav" },
2716
3209
  content: { kind: "structured", prop: "items" },
2717
3210
  props: {
2718
3211
  items: {
@@ -2824,8 +3317,8 @@ const wi = {
2824
3317
  }
2825
3318
  ]
2826
3319
  }
2827
- }, Y = "set-range";
2828
- function ae({
3320
+ }, J = "set-range";
3321
+ function le({
2829
3322
  description: t,
2830
3323
  disabled: n,
2831
3324
  id: e,
@@ -2890,7 +3383,7 @@ function ae({
2890
3383
  children: [{ kind: "text", value: h }]
2891
3384
  }), {
2892
3385
  kind: "element",
2893
- tag: Y,
3386
+ tag: J,
2894
3387
  attrs: {
2895
3388
  class: "set-range",
2896
3389
  "data-inline-size": i === "fit" ? "fit" : void 0,
@@ -2899,11 +3392,11 @@ function ae({
2899
3392
  children: f
2900
3393
  };
2901
3394
  }
2902
- function Si(t) {
2903
- return m(ae(t));
3395
+ function zi(t) {
3396
+ return m(le(t));
2904
3397
  }
2905
- function oe() {
2906
- if (customElements.get(Y)) return;
3398
+ function pe() {
3399
+ if (customElements.get(J)) return;
2907
3400
  class t extends HTMLElement {
2908
3401
  #t;
2909
3402
  #e = (e) => {
@@ -2957,12 +3450,12 @@ function oe() {
2957
3450
  this.#t && (delete this.#t.value, this.#t = void 0);
2958
3451
  }
2959
3452
  }
2960
- customElements.define(Y, t);
3453
+ customElements.define(J, t);
2961
3454
  }
2962
- const xi = {
3455
+ const Li = {
2963
3456
  name: "range",
2964
3457
  description: "Use `range` to let users pick a numeric value along a scale.",
2965
- output: { element: Y, class: "set-range" },
3458
+ output: { element: J, class: "set-range" },
2966
3459
  content: { kind: "text", prop: "label" },
2967
3460
  props: {
2968
3461
  description: {
@@ -3091,9 +3584,9 @@ const xi = {
3091
3584
  }
3092
3585
  ]
3093
3586
  }
3094
- }, J = "set-sidebar", de = "(min-width: 68em)", B = "Collapse sidebar", ct = "Open sidebar";
3095
- function se(t, n) {
3096
- return `<div data-part="close">${ht({
3587
+ }, tt = "set-sidebar", ce = "(min-width: 68em)", B = "Collapse sidebar", ut = "Open sidebar";
3588
+ function ue(t, n) {
3589
+ return `<div data-part="close">${mt({
3097
3590
  appearance: "text",
3098
3591
  icon: "panel-left",
3099
3592
  iconMirrored: "rtl",
@@ -3104,7 +3597,7 @@ function se(t, n) {
3104
3597
  type: "button"
3105
3598
  })}</div>`;
3106
3599
  }
3107
- function le({
3600
+ function he({
3108
3601
  aboveNotebook: t = "persistent",
3109
3602
  buttonSize: n = "md",
3110
3603
  children: e,
@@ -3113,9 +3606,9 @@ function le({
3113
3606
  header: a,
3114
3607
  id: o,
3115
3608
  surface: d,
3116
- triggerLabel: s = ct
3609
+ triggerLabel: s = ut
3117
3610
  }) {
3118
- const p = o.trim(), l = i.trim() || B, c = s.trim() || ct;
3611
+ const p = o.trim(), l = i.trim() || B, c = s.trim() || ut;
3119
3612
  if (!p)
3120
3613
  throw new Error("id must be a non-empty string.");
3121
3614
  if (!V(p))
@@ -3145,7 +3638,7 @@ function le({
3145
3638
  const b = `${p}-panel`;
3146
3639
  return {
3147
3640
  kind: "element",
3148
- tag: J,
3641
+ tag: tt,
3149
3642
  attrs: {
3150
3643
  class: "set-sidebar",
3151
3644
  "data-above-notebook": t,
@@ -3159,7 +3652,7 @@ function le({
3159
3652
  tag: "div",
3160
3653
  attrs: { "data-part": "trigger" },
3161
3654
  children: [
3162
- ut({
3655
+ ht({
3163
3656
  appearance: "text",
3164
3657
  controls: b,
3165
3658
  disclosure: !0,
@@ -3193,11 +3686,11 @@ function le({
3193
3686
  ]
3194
3687
  };
3195
3688
  }
3196
- function Ei(t) {
3197
- return m(le(t));
3689
+ function Ci(t) {
3690
+ return m(he(t));
3198
3691
  }
3199
- function pe() {
3200
- if (customElements.get(J)) return;
3692
+ function me() {
3693
+ if (customElements.get(tt)) return;
3201
3694
  class t extends HTMLElement {
3202
3695
  #t;
3203
3696
  #e;
@@ -3244,7 +3737,7 @@ function pe() {
3244
3737
  const i = e.querySelector(".header"), r = this.getAttribute("data-collapse-label") || B, a = this.getAttribute("data-button-size") ?? "md";
3245
3738
  i?.insertAdjacentHTML(
3246
3739
  "beforeend",
3247
- se(r, a)
3740
+ ue(r, a)
3248
3741
  );
3249
3742
  }
3250
3743
  #o() {
@@ -3319,7 +3812,7 @@ function pe() {
3319
3812
  }
3320
3813
  #f() {
3321
3814
  const e = this.ownerDocument.defaultView;
3322
- e && (typeof e.matchMedia == "function" && (this.#t = e.matchMedia(de), this.#n = () => {
3815
+ e && (typeof e.matchMedia == "function" && (this.#t = e.matchMedia(ce), this.#n = () => {
3323
3816
  this.#g();
3324
3817
  }, this.#t.addEventListener("change", this.#n), this.#g()), this.#e = (i) => {
3325
3818
  const r = i.target;
@@ -3346,13 +3839,13 @@ function pe() {
3346
3839
  this.#e && this.removeEventListener("click", this.#e), this.#i && this.removeEventListener("keydown", this.#i), this.#t && this.#n && this.#t.removeEventListener("change", this.#n), this.#e = void 0, this.#i = void 0, this.#t = void 0, this.#n = void 0;
3347
3840
  }
3348
3841
  }
3349
- customElements.define(J, t);
3842
+ customElements.define(tt, t);
3350
3843
  }
3351
- const zi = {
3844
+ const Mi = {
3352
3845
  name: "sidebar",
3353
3846
  description: "Use `sidebar` for a side panel alongside main content.",
3354
3847
  output: {
3355
- element: J,
3848
+ element: tt,
3356
3849
  class: "set-sidebar"
3357
3850
  },
3358
3851
  content: {
@@ -3407,7 +3900,7 @@ const zi = {
3407
3900
  }
3408
3901
  },
3409
3902
  triggerLabel: {
3410
- default: ct,
3903
+ default: ut,
3411
3904
  description: "Accessible label for the open button.",
3412
3905
  type: { kind: "string" }
3413
3906
  }
@@ -3472,8 +3965,8 @@ const zi = {
3472
3965
  }
3473
3966
  ]
3474
3967
  }
3475
- }, tt = "set-video";
3476
- function ce({
3968
+ }, et = "set-video";
3969
+ function ke({
3477
3970
  autoPlay: t,
3478
3971
  controls: n,
3479
3972
  fit: e = "intrinsic",
@@ -3510,7 +4003,7 @@ function ce({
3510
4003
  };
3511
4004
  return {
3512
4005
  kind: "element",
3513
- tag: tt,
4006
+ tag: et,
3514
4007
  attrs: {
3515
4008
  class: "set-video",
3516
4009
  "data-fluid": e === "fluid",
@@ -3519,12 +4012,12 @@ function ce({
3519
4012
  children: [f]
3520
4013
  };
3521
4014
  }
3522
- function Ci(t) {
3523
- return m(ce(t));
4015
+ function qi(t) {
4016
+ return m(ke(t));
3524
4017
  }
3525
- const ue = "(prefers-reduced-motion: reduce)";
3526
- function he() {
3527
- if (customElements.get(tt)) return;
4018
+ const ge = "(prefers-reduced-motion: reduce)";
4019
+ function be() {
4020
+ if (customElements.get(et)) return;
3528
4021
  class t extends HTMLElement {
3529
4022
  #t = !1;
3530
4023
  #e;
@@ -3533,7 +4026,7 @@ function he() {
3533
4026
  const e = this.querySelector("video");
3534
4027
  if (!e || (this.#t ||= e.hasAttribute("autoplay"), !this.#t)) return;
3535
4028
  const i = this.ownerDocument.defaultView;
3536
- !i || typeof i.matchMedia != "function" || (this.#e = i.matchMedia(ue), this.#i = () => {
4029
+ !i || typeof i.matchMedia != "function" || (this.#e = i.matchMedia(ge), this.#i = () => {
3537
4030
  this.#n();
3538
4031
  }, this.#e.addEventListener("change", this.#i), this.#n());
3539
4032
  }
@@ -3546,12 +4039,12 @@ function he() {
3546
4039
  })));
3547
4040
  }
3548
4041
  }
3549
- customElements.define(tt, t);
4042
+ customElements.define(et, t);
3550
4043
  }
3551
- const Li = {
4044
+ const Ii = {
3552
4045
  name: "video",
3553
4046
  description: "Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",
3554
- output: { element: tt, class: "set-video" },
4047
+ output: { element: et, class: "set-video" },
3555
4048
  content: { kind: "none" },
3556
4049
  props: {
3557
4050
  autoPlay: {
@@ -3676,17 +4169,17 @@ const Li = {
3676
4169
  ]
3677
4170
  }
3678
4171
  };
3679
- function me(t) {
4172
+ function ve(t) {
3680
4173
  return t ? /[A-Za-z]/.test(t) : !1;
3681
4174
  }
3682
- function ke(t) {
4175
+ function fe(t) {
3683
4176
  return /^[a-z]/.test(t);
3684
4177
  }
3685
4178
  function H(t) {
3686
4179
  const n = t.charAt(0);
3687
- return me(n) ? n : void 0;
4180
+ return ve(n) ? n : void 0;
3688
4181
  }
3689
- function ge(t) {
4182
+ function ye(t) {
3690
4183
  const n = O(t);
3691
4184
  if (!n) return;
3692
4185
  const e = n.split(" "), i = H(e[0]);
@@ -3694,7 +4187,7 @@ function ge(t) {
3694
4187
  const r = [i.toUpperCase()];
3695
4188
  if (e.length === 1)
3696
4189
  return r[0];
3697
- const a = e.slice(1).find(ke);
4190
+ const a = e.slice(1).find(fe);
3698
4191
  if (a) {
3699
4192
  const d = H(a);
3700
4193
  return d ? `${r[0]}${d}` : void 0;
@@ -3718,12 +4211,12 @@ function ge(t) {
3718
4211
  if (o)
3719
4212
  return r.push(o), r.slice(0, 3).join("");
3720
4213
  }
3721
- const be = {
4214
+ const we = {
3722
4215
  bot: "robot-1",
3723
4216
  organization: "city-6",
3724
4217
  person: "user-1",
3725
4218
  team: "member"
3726
- }, vt = [
4219
+ }, ft = [
3727
4220
  "01",
3728
4221
  "02",
3729
4222
  "03",
@@ -3734,13 +4227,13 @@ const be = {
3734
4227
  "08",
3735
4228
  "09"
3736
4229
  ];
3737
- function ve(t) {
4230
+ function Se(t) {
3738
4231
  let n = 5381;
3739
4232
  for (const e of t)
3740
4233
  n = n * 33 ^ e.charCodeAt(0);
3741
4234
  return n >>> 0;
3742
4235
  }
3743
- function fe(t) {
4236
+ function xe(t) {
3744
4237
  if (t == null) return;
3745
4238
  const n = O(t);
3746
4239
  if (n) {
@@ -3751,7 +4244,7 @@ function fe(t) {
3751
4244
  return n;
3752
4245
  }
3753
4246
  }
3754
- function ye({
4247
+ function Ee({
3755
4248
  alt: t,
3756
4249
  ariaHidden: n,
3757
4250
  name: e
@@ -3759,18 +4252,18 @@ function ye({
3759
4252
  if (!n)
3760
4253
  return O(t) || O(e) || "Avatar";
3761
4254
  }
3762
- function we({
4255
+ function ze({
3763
4256
  color: t,
3764
4257
  name: n
3765
4258
  }) {
3766
4259
  if (t) return t;
3767
4260
  if (n) {
3768
- const e = ve(n) % vt.length;
3769
- return vt[e];
4261
+ const e = Se(n) % ft.length;
4262
+ return ft[e];
3770
4263
  }
3771
4264
  return "neutral";
3772
4265
  }
3773
- function Se({
4266
+ function Le({
3774
4267
  alt: t,
3775
4268
  ariaHidden: n,
3776
4269
  color: e,
@@ -3781,11 +4274,11 @@ function Se({
3781
4274
  size: d = "md",
3782
4275
  src: s
3783
4276
  }) {
3784
- const p = v(r), l = fe(a), c = O(o), h = O(s), b = ye({
4277
+ const p = v(r), l = xe(a), c = O(o), h = O(s), b = Ee({
3785
4278
  alt: t,
3786
4279
  ariaHidden: n,
3787
4280
  name: c
3788
- }), S = l || ge(c), f = !!h, E = we({
4281
+ }), S = l || ye(c), f = !!h, E = ze({
3789
4282
  color: e,
3790
4283
  name: c
3791
4284
  }), q = {
@@ -3820,7 +4313,7 @@ function Se({
3820
4313
  children: [
3821
4314
  P({
3822
4315
  ariaHidden: !0,
3823
- name: be[i],
4316
+ name: we[i],
3824
4317
  size: "fill"
3825
4318
  })
3826
4319
  ]
@@ -3831,10 +4324,10 @@ function Se({
3831
4324
  children: [w]
3832
4325
  };
3833
4326
  }
3834
- function Mi(t) {
3835
- return m(Se(t));
4327
+ function Ti(t) {
4328
+ return m(Le(t));
3836
4329
  }
3837
- const qi = {
4330
+ const Ai = {
3838
4331
  name: "avatar",
3839
4332
  description: "Use `avatar` to visually represent a person, team, or entity.",
3840
4333
  output: { element: "span", class: "set-avatar" },
@@ -3941,7 +4434,7 @@ const qi = {
3941
4434
  ]
3942
4435
  }
3943
4436
  };
3944
- function xe({
4437
+ function Ce({
3945
4438
  floating: t,
3946
4439
  id: n,
3947
4440
  label: e,
@@ -3962,10 +4455,10 @@ function xe({
3962
4455
  children: [{ kind: "text", value: e }]
3963
4456
  };
3964
4457
  }
3965
- function Ii(t) {
3966
- return m(xe(t));
4458
+ function _i(t) {
4459
+ return m(Ce(t));
3967
4460
  }
3968
- const Ti = {
4461
+ const Di = {
3969
4462
  name: "badge",
3970
4463
  description: "Use `badge` to annotate content with a short label.",
3971
4464
  output: { element: "span", class: "set-badge" },
@@ -4034,7 +4527,7 @@ const Ti = {
4034
4527
  ]
4035
4528
  }
4036
4529
  };
4037
- function et({
4530
+ function it({
4038
4531
  align: t,
4039
4532
  as: n,
4040
4533
  children: e,
@@ -4064,10 +4557,10 @@ function et({
4064
4557
  children: [{ kind: "raw", html: e }]
4065
4558
  };
4066
4559
  }
4067
- function Ai(t) {
4068
- return m(et(t));
4560
+ function Vi(t) {
4561
+ return m(it(t));
4069
4562
  }
4070
- const _i = {
4563
+ const Hi = {
4071
4564
  name: "text",
4072
4565
  description: "Use `text` for inline or paragraph body copy.",
4073
4566
  output: {
@@ -4191,7 +4684,7 @@ const _i = {
4191
4684
  ]
4192
4685
  }
4193
4686
  };
4194
- function Ee({
4687
+ function Me({
4195
4688
  align: t = "start",
4196
4689
  attribution: n,
4197
4690
  id: e,
@@ -4215,7 +4708,7 @@ function Ee({
4215
4708
  tag: "blockquote",
4216
4709
  attrs: { class: "quote" },
4217
4710
  children: [
4218
- et({
4711
+ it({
4219
4712
  align: t,
4220
4713
  as: "p",
4221
4714
  children: r,
@@ -4230,7 +4723,7 @@ function Ee({
4230
4723
  tag: "figcaption",
4231
4724
  attrs: { class: "attribution" },
4232
4725
  children: [
4233
- et({
4726
+ it({
4234
4727
  as: "span",
4235
4728
  children: n,
4236
4729
  responsive: a,
@@ -4241,10 +4734,10 @@ function Ee({
4241
4734
  ]
4242
4735
  };
4243
4736
  }
4244
- function Di(t) {
4245
- return m(Ee(t));
4737
+ function Ni(t) {
4738
+ return m(Me(t));
4246
4739
  }
4247
- const Vi = {
4740
+ const Bi = {
4248
4741
  name: "blockquote",
4249
4742
  description: "Use `blockquote` to display a quote with attribution.",
4250
4743
  output: { element: "figure", class: "set-blockquote" },
@@ -4313,7 +4806,7 @@ const Vi = {
4313
4806
  ]
4314
4807
  }
4315
4808
  };
4316
- function ze({
4809
+ function qe({
4317
4810
  background: t = "default",
4318
4811
  border: n,
4319
4812
  children: e,
@@ -4342,10 +4835,10 @@ function ze({
4342
4835
  children: e ? [{ kind: "raw", html: e }] : []
4343
4836
  };
4344
4837
  }
4345
- function Hi(t) {
4346
- return m(ze(t));
4838
+ function Oi(t) {
4839
+ return m(qe(t));
4347
4840
  }
4348
- const Ni = {
4841
+ const Pi = {
4349
4842
  name: "box",
4350
4843
  description: "Use `box` to inset content.",
4351
4844
  output: { element: "div", class: "set-box" },
@@ -4458,7 +4951,7 @@ const Ni = {
4458
4951
  ]
4459
4952
  }
4460
4953
  };
4461
- function Ce({
4954
+ function Ie({
4462
4955
  description: t,
4463
4956
  headingLevel: n,
4464
4957
  href: e,
@@ -4524,10 +5017,10 @@ function Ce({
4524
5017
  children: c
4525
5018
  };
4526
5019
  }
4527
- function Bi(t) {
4528
- return m(Ce(t));
5020
+ function Ri(t) {
5021
+ return m(Ie(t));
4529
5022
  }
4530
- const Oi = {
5023
+ const Wi = {
4531
5024
  name: "card",
4532
5025
  description: "Use `card` to display a summary for a single topic.",
4533
5026
  output: {
@@ -4595,7 +5088,7 @@ const Oi = {
4595
5088
  ]
4596
5089
  }
4597
5090
  };
4598
- function Le({
5091
+ function Te({
4599
5092
  checked: t,
4600
5093
  description: n,
4601
5094
  disabled: e,
@@ -4654,10 +5147,10 @@ function Le({
4654
5147
  children: f
4655
5148
  };
4656
5149
  }
4657
- function Pi(t) {
4658
- return m(Le(t));
5150
+ function Ui(t) {
5151
+ return m(Te(t));
4659
5152
  }
4660
- const Ri = {
5153
+ const $i = {
4661
5154
  name: "checkbox",
4662
5155
  description: "Use `checkbox` to let users toggle a single option on or off.",
4663
5156
  output: { element: "div", class: "set-checkbox" },
@@ -4787,7 +5280,7 @@ const Ri = {
4787
5280
  ]
4788
5281
  }
4789
5282
  };
4790
- function Me({
5283
+ function Ae({
4791
5284
  children: t,
4792
5285
  gutter: n = "default",
4793
5286
  id: e,
@@ -4806,10 +5299,10 @@ function Me({
4806
5299
  children: t ? [{ kind: "raw", html: t }] : []
4807
5300
  };
4808
5301
  }
4809
- function Wi(t) {
4810
- return m(Me(t));
5302
+ function Gi(t) {
5303
+ return m(Ae(t));
4811
5304
  }
4812
- const Ui = {
5305
+ const Zi = {
4813
5306
  name: "container",
4814
5307
  description: "Use `container` to wrap page-level content.",
4815
5308
  output: { element: "div", class: "set-container" },
@@ -4866,7 +5359,7 @@ const Ui = {
4866
5359
  ]
4867
5360
  }
4868
5361
  };
4869
- function qe({
5362
+ function _e({
4870
5363
  children: t,
4871
5364
  id: n,
4872
5365
  open: e,
@@ -4918,10 +5411,10 @@ function qe({
4918
5411
  ]
4919
5412
  };
4920
5413
  }
4921
- function $i(t) {
4922
- return m(qe(t));
5414
+ function Fi(t) {
5415
+ return m(_e(t));
4923
5416
  }
4924
- const Gi = {
5417
+ const ji = {
4925
5418
  name: "details",
4926
5419
  description: "Use `details` to let users expand and collapse a section of content.",
4927
5420
  output: { element: "details", class: "set-details" },
@@ -4980,7 +5473,7 @@ const Gi = {
4980
5473
  ]
4981
5474
  }
4982
5475
  };
4983
- function Ie({
5476
+ function De({
4984
5477
  id: t,
4985
5478
  orientation: n = "horizontal",
4986
5479
  tone: e = "default"
@@ -4999,10 +5492,10 @@ function Ie({
4999
5492
  children: []
5000
5493
  };
5001
5494
  }
5002
- function Zi(t = {}) {
5003
- return m(Ie(t));
5495
+ function Ki(t = {}) {
5496
+ return m(De(t));
5004
5497
  }
5005
- const Fi = {
5498
+ const Xi = {
5006
5499
  name: "divider",
5007
5500
  description: "Use `divider` to separate sections with a rule.",
5008
5501
  output: {
@@ -5064,7 +5557,7 @@ const Fi = {
5064
5557
  ]
5065
5558
  }
5066
5559
  };
5067
- function qt({
5560
+ function It({
5068
5561
  children: t,
5069
5562
  description: n,
5070
5563
  disabled: e,
@@ -5107,10 +5600,10 @@ function qt({
5107
5600
  children: h
5108
5601
  };
5109
5602
  }
5110
- function ji(t) {
5111
- return m(qt(t));
5603
+ function Qi(t) {
5604
+ return m(It(t));
5112
5605
  }
5113
- const Ki = {
5606
+ const Yi = {
5114
5607
  name: "fieldset",
5115
5608
  description: "Use `fieldset` to group related form controls under a legend.",
5116
5609
  output: { element: "fieldset", class: "set-fieldset" },
@@ -5198,7 +5691,7 @@ const Ki = {
5198
5691
  ]
5199
5692
  }
5200
5693
  };
5201
- function Te({
5694
+ function Ve({
5202
5695
  align: t = "start",
5203
5696
  caption: n,
5204
5697
  children: e,
@@ -5223,7 +5716,7 @@ function Te({
5223
5716
  tag: "figcaption",
5224
5717
  attrs: { class: "figcaption" },
5225
5718
  children: [
5226
- et({
5719
+ it({
5227
5720
  as: "span",
5228
5721
  children: n,
5229
5722
  responsive: a,
@@ -5234,10 +5727,10 @@ function Te({
5234
5727
  ]
5235
5728
  };
5236
5729
  }
5237
- function Xi(t) {
5238
- return m(Te(t));
5730
+ function Ji(t) {
5731
+ return m(Ve(t));
5239
5732
  }
5240
- const Qi = {
5733
+ const tn = {
5241
5734
  name: "figure",
5242
5735
  description: "Use `figure` to present media with a caption.",
5243
5736
  output: { element: "figure", class: "set-figure" },
@@ -5310,7 +5803,7 @@ const Qi = {
5310
5803
  if (t !== void 0)
5311
5804
  return String(t);
5312
5805
  };
5313
- function Ae({
5806
+ function He({
5314
5807
  children: t,
5315
5808
  gap: n = "default",
5316
5809
  id: e
@@ -5334,10 +5827,10 @@ function Ae({
5334
5827
  ]
5335
5828
  };
5336
5829
  }
5337
- function Yi(t) {
5338
- return m(Ae(t));
5830
+ function en(t) {
5831
+ return m(He(t));
5339
5832
  }
5340
- function _e({
5833
+ function Ne({
5341
5834
  align: t,
5342
5835
  children: n,
5343
5836
  colSpan: e,
@@ -5380,10 +5873,10 @@ function _e({
5380
5873
  children: n ? [{ kind: "raw", html: n }] : []
5381
5874
  };
5382
5875
  }
5383
- function Ji(t) {
5384
- return m(_e(t));
5876
+ function nn(t) {
5877
+ return m(Ne(t));
5385
5878
  }
5386
- const tn = {
5879
+ const rn = {
5387
5880
  name: "grid",
5388
5881
  description: "Use `grid` to lay out content in a 12-column responsive grid.",
5389
5882
  output: { element: "div", class: "set-grid" },
@@ -5429,7 +5922,7 @@ const tn = {
5429
5922
  min: 1,
5430
5923
  max: 12,
5431
5924
  integer: !0
5432
- }, en = {
5925
+ }, an = {
5433
5926
  name: "grid-item",
5434
5927
  description: "Use `grid-item` to place content within a `grid` layout.",
5435
5928
  output: { element: "div", class: "set-grid-item" },
@@ -5596,7 +6089,7 @@ const tn = {
5596
6089
  ]
5597
6090
  }
5598
6091
  };
5599
- function De({
6092
+ function Be({
5600
6093
  align: t = "start",
5601
6094
  id: n,
5602
6095
  level: e,
@@ -5620,10 +6113,10 @@ function De({
5620
6113
  children: [{ kind: "text", value: o }]
5621
6114
  };
5622
6115
  }
5623
- function nn(t) {
5624
- return m(De(t));
6116
+ function on(t) {
6117
+ return m(Be(t));
5625
6118
  }
5626
- const rn = {
6119
+ const dn = {
5627
6120
  name: "heading",
5628
6121
  description: "Use `heading` to render heading text with consistent type.",
5629
6122
  output: {
@@ -5646,456 +6139,38 @@ const rn = {
5646
6139
  align: {
5647
6140
  default: "start",
5648
6141
  description: "Text alignment.",
5649
- type: { kind: "enum", values: ["start", "center", "end"] }
5650
- },
5651
- id: {
5652
- description: "DOM id.",
5653
- type: { kind: "string" }
5654
- },
5655
- level: {
5656
- description: "Semantic heading level. Renders a `<span>` when omitted.",
5657
- type: { kind: "enum", values: [1, 2, 3, 4, 5, 6] }
5658
- },
5659
- opticalAlign: {
5660
- default: !1,
5661
- description: "Optically aligns left sidebearing-heavy glyphs with the content edge.",
5662
- type: { kind: "boolean" }
5663
- },
5664
- responsive: {
5665
- default: !1,
5666
- description: "Scales type across breakpoints.",
5667
- type: { kind: "boolean" }
5668
- },
5669
- size: {
5670
- default: "md",
5671
- description: "Size variant.",
5672
- type: {
5673
- kind: "enum",
5674
- values: ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl"]
5675
- }
5676
- },
5677
- text: {
5678
- description: "Heading text.",
5679
- required: !0,
5680
- type: { kind: "text" }
5681
- }
5682
- },
5683
- events: {},
5684
- rules: {
5685
- attributes: [
5686
- {
5687
- target: { on: "host" },
5688
- attribute: "data-align",
5689
- condition: {
5690
- kind: "when-in",
5691
- prop: "align",
5692
- values: ["center", "end"]
5693
- },
5694
- value: { kind: "prop", prop: "align" }
5695
- },
5696
- {
5697
- target: { on: "host" },
5698
- attribute: "data-optical-align",
5699
- condition: { kind: "when-truthy", prop: "opticalAlign" }
5700
- },
5701
- {
5702
- target: { on: "host" },
5703
- attribute: "data-responsive",
5704
- condition: { kind: "when-truthy", prop: "responsive" }
5705
- },
5706
- {
5707
- target: { on: "host" },
5708
- attribute: "data-size",
5709
- condition: { kind: "always" },
5710
- value: { kind: "prop", prop: "size" }
5711
- },
5712
- {
5713
- target: { on: "host" },
5714
- attribute: "id",
5715
- condition: { kind: "when-non-empty", prop: "id" },
5716
- value: { kind: "prop", prop: "id" }
5717
- }
5718
- ]
5719
- }
5720
- };
5721
- function Ve({
5722
- adaptive: t,
5723
- animated: n,
5724
- alt: e = "",
5725
- aspectRatio: i,
5726
- fit: r = "intrinsic",
5727
- gravity: a = "C",
5728
- height: o,
5729
- id: d,
5730
- lazy: s,
5731
- leadSrc: p,
5732
- priority: l,
5733
- radius: c,
5734
- shadow: h,
5735
- sizes: b,
5736
- sources: S,
5737
- src: f,
5738
- srcSet: E,
5739
- still: q,
5740
- width: w
5741
- }) {
5742
- const k = r === "cover", L = v(d), x = f.trim(), z = E?.trim(), _ = p?.trim(), D = q?.trim(), N = b?.trim(), M = S?.map((u, C) => {
5743
- const I = u.srcSet.trim(), y = u.media?.trim(), g = u.type?.trim(), Dt = u.sizes?.trim(), Vt = u.leadSrc?.trim(), Ht = u.still?.trim();
5744
- if (!I)
5745
- throw new Error(`sources[${C}].srcSet must be non-empty.`);
5746
- return {
5747
- height: u.height,
5748
- leadSrc: Vt || void 0,
5749
- media: y || void 0,
5750
- sizes: Dt || void 0,
5751
- srcSet: I,
5752
- still: Ht || void 0,
5753
- type: g || void 0,
5754
- width: u.width
5755
- };
5756
- }) || [];
5757
- if (!x)
5758
- throw new Error("src must be a non-empty string.");
5759
- if (t && [
5760
- x,
5761
- z,
5762
- ...M.map((u) => u.srcSet)
5763
- ].some((u) => u?.includes("#")))
5764
- throw new Error("adaptive sources must not contain URL fragments.");
5765
- const U = !!(n && t), it = !!(n && _), $ = !!_ || M.some((u) => u.leadSrc);
5766
- if (!n && $)
5767
- throw new Error("leadSrc requires animated.");
5768
- if (n) {
5769
- const u = [
5770
- x,
5771
- z,
5772
- _,
5773
- ...M.flatMap((y) => [y.srcSet, y.leadSrc])
5774
- ].filter((y) => !!y), C = u.filter((y) => y.includes("{scheme}"));
5775
- if (t && C.length !== u.length)
5776
- throw new Error(
5777
- "adaptive animated sources must contain a {scheme} placeholder."
5778
- );
5779
- if (!t && C.length > 0)
5780
- throw new Error(
5781
- "the {scheme} placeholder requires adaptive to enable light/dark."
5782
- );
5783
- if (!D)
5784
- throw new Error("animated requires a still.");
5785
- if ([
5786
- D,
5787
- ...M.map((y) => y.still)
5788
- ].filter((y) => !!y).some((y) => y.includes("#")))
5789
- throw new Error("animated still must not contain URL fragments.");
5790
- }
5791
- const mt = (u, C) => u.split(/,\s+/).map((I) => {
5792
- const [y, ...g] = I.trim().split(/\s+/);
5793
- if (!y || g.length > 1)
5794
- throw new Error(
5795
- "adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace."
5796
- );
5797
- return [`${y}#${C}`, ...g].join(" ");
5798
- }).join(", "), nt = (u) => {
5799
- const C = {
5800
- kind: "element",
5801
- tag: "img",
5802
- attrs: {
5803
- alt: e,
5804
- class: "img",
5805
- "data-scheme": u && M.length === 0 ? u : void 0,
5806
- fetchpriority: l ? "high" : void 0,
5807
- height: k ? void 0 : o ? String(o) : void 0,
5808
- loading: s && !l ? "lazy" : void 0,
5809
- sizes: M.length > 0 ? void 0 : N || void 0,
5810
- src: u ? `${x}#${u}` : x,
5811
- srcset: z && u ? mt(z, u) : z || void 0,
5812
- width: k ? void 0 : w ? String(w) : void 0
5813
- },
5814
- children: []
5815
- };
5816
- if (M.length === 0)
5817
- return C;
5818
- const I = M.map((y) => ({
5819
- kind: "element",
5820
- tag: "source",
5821
- attrs: {
5822
- height: y.height ? String(y.height) : void 0,
5823
- media: y.media,
5824
- sizes: y.sizes,
5825
- srcset: u ? mt(y.srcSet, u) : y.srcSet,
5826
- type: y.type,
5827
- width: y.width ? String(y.width) : void 0
5828
- },
5829
- children: []
5830
- }));
5831
- return {
5832
- kind: "element",
5833
- tag: "picture",
5834
- attrs: { "data-scheme": u },
5835
- children: [...I, C]
5836
- };
5837
- }, rt = "(prefers-reduced-motion: reduce)", R = (u, C) => C ? u.replaceAll("{scheme}", C) : u, at = (u, C) => C ? `${u}#${C}` : u, kt = (u) => {
5838
- const C = M.filter((g) => g.still).map((g) => ({
5839
- kind: "element",
5840
- tag: "source",
5841
- attrs: {
5842
- height: g.height ? String(g.height) : void 0,
5843
- media: g.media ? `${rt} and ${g.media}` : rt,
5844
- srcset: at(g.still, u),
5845
- width: g.width ? String(g.width) : void 0
5846
- },
5847
- children: []
5848
- }));
5849
- C.push({
5850
- kind: "element",
5851
- tag: "source",
5852
- attrs: {
5853
- media: rt,
5854
- srcset: at(D, u)
5855
- },
5856
- children: []
5857
- });
5858
- const I = M.map((g) => ({
5859
- kind: "element",
5860
- tag: "source",
5861
- attrs: {
5862
- height: g.height ? String(g.height) : void 0,
5863
- media: g.media,
5864
- sizes: g.sizes,
5865
- srcset: R(g.srcSet, u),
5866
- type: g.type,
5867
- width: g.width ? String(g.width) : void 0
5868
- },
5869
- children: []
5870
- })), y = {
5871
- kind: "element",
5872
- tag: "img",
5873
- attrs: {
5874
- alt: e,
5875
- class: "img",
5876
- fetchpriority: l ? "high" : void 0,
5877
- height: k ? void 0 : o ? String(o) : void 0,
5878
- loading: s && !l ? "lazy" : void 0,
5879
- sizes: M.length > 0 ? void 0 : N || void 0,
5880
- src: R(x, u),
5881
- srcset: z ? R(z, u) : void 0,
5882
- width: k ? void 0 : w ? String(w) : void 0
5883
- },
5884
- children: []
5885
- };
5886
- return {
5887
- kind: "element",
5888
- tag: "picture",
5889
- attrs: { "data-scheme": u },
5890
- children: [...C, ...I, y]
5891
- };
5892
- }, At = (u) => {
5893
- const C = "(prefers-reduced-motion: no-preference)", I = M.map((g) => {
5894
- if (g.leadSrc)
5895
- return {
5896
- kind: "element",
5897
- tag: "source",
5898
- attrs: {
5899
- height: g.height ? String(g.height) : void 0,
5900
- media: g.media ? `${C} and ${g.media}` : C,
5901
- sizes: g.sizes,
5902
- srcset: R(g.leadSrc, u),
5903
- type: g.type,
5904
- width: g.width ? String(g.width) : void 0
5905
- },
5906
- children: []
5907
- };
5908
- }).filter((g) => !!g);
5909
- I.push({
5910
- kind: "element",
5911
- tag: "source",
5912
- attrs: {
5913
- media: C,
5914
- sizes: M.length > 0 ? void 0 : N || void 0,
5915
- srcset: R(_, u)
5916
- },
5917
- children: []
5918
- });
5919
- const y = {
5920
- kind: "element",
5921
- tag: "img",
5922
- attrs: {
5923
- alt: "",
5924
- class: "img",
5925
- height: k ? void 0 : o ? String(o) : void 0,
5926
- src: at(D, u),
5927
- width: k ? void 0 : w ? String(w) : void 0
5928
- },
5929
- children: []
5930
- };
5931
- return {
5932
- kind: "element",
5933
- tag: "picture",
5934
- attrs: { "data-scheme": u, "data-layer": "lead" },
5935
- children: [...I, y]
5936
- };
5937
- }, ot = (u) => it ? [kt(u), At(u)] : [kt(u)], _t = n ? U ? [...ot("light"), ...ot("dark")] : ot() : t ? [nt("light"), nt("dark")] : [nt()], G = [];
5938
- return o && G.push(`--set-image-block-size: ${o / 16}rem`), w && G.push(`--set-image-inline-size: ${w / 16}rem`), {
5939
- kind: "element",
5940
- tag: "div",
5941
- attrs: {
5942
- class: "set-image",
5943
- "data-adaptive": !!t,
5944
- "data-animated": !!n,
5945
- "data-sequenced": it,
5946
- "data-aspect-ratio": k && !o ? i : void 0,
5947
- "data-fluid": r === "fluid",
5948
- "data-gravity": k && a !== "C" ? a : void 0,
5949
- "data-shadow": !!h,
5950
- "data-object-fit": k ? "cover" : void 0,
5951
- "data-radius": !!c,
5952
- id: L,
5953
- style: G.length > 0 ? G.join("; ") : void 0
5954
- },
5955
- children: _t
5956
- };
5957
- }
5958
- function He(t) {
5959
- return m(Ve(t));
5960
- }
5961
- const an = {
5962
- name: "image",
5963
- description: "Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",
5964
- output: { element: "div", class: "set-image" },
5965
- content: { kind: "none" },
5966
- props: {
5967
- adaptive: {
5968
- default: !1,
5969
- 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.",
5970
- type: { kind: "boolean" }
5971
- },
5972
- animated: {
5973
- default: !1,
5974
- 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.",
5975
- type: { kind: "boolean" }
5976
- },
5977
- alt: {
5978
- default: "",
5979
- description: "Alternative text. Leave empty for decorative images.",
5980
- type: { kind: "string" }
5981
- },
5982
- gravity: {
5983
- default: "C",
5984
- description: "Focal point used when cropping.",
5985
- ignoredWhen: '`fit` is not `"cover"`',
5986
- type: {
5987
- kind: "enum",
5988
- values: ["N", "NE", "E", "SE", "S", "SW", "W", "NW", "C"]
5989
- }
5990
- },
5991
- radius: {
5992
- default: !1,
5993
- description: "Applies the default corner radius.",
5994
- type: { kind: "boolean" }
5995
- },
5996
- aspectRatio: {
5997
- description: "Aspect ratio applied to the wrapper.",
5998
- ignoredWhen: '`fit` is not `"cover"`, or `height` is set',
5999
- type: {
6000
- kind: "enum",
6001
- values: ["1:1", "4:5", "3:2", "16:9", "21:9"]
6002
- }
6003
- },
6004
- fit: {
6005
- default: "intrinsic",
6006
- description: "Layout mode. `intrinsic` renders at the image's own dimensions, `fluid` scales to the container's full inline size at the active source's aspect ratio, `cover` renders a cropped fill (`object-fit: cover`) sized by the wrapper. For `fluid`, provide candidates sized for large viewports via `srcSet`/`sources` so upscaled rendering stays sharp.",
6007
- type: { kind: "enum", values: ["intrinsic", "fluid", "cover"] }
6008
- },
6009
- shadow: {
6010
- default: !1,
6011
- description: "Applies a drop shadow to the image.",
6012
- type: { kind: "boolean" }
6013
- },
6014
- height: {
6015
- description: "Height in pixels. Under `intrinsic` and `fluid`, an aspect-ratio hint — with `width`, reserves the correctly shaped box before load; rendered height follows the aspect ratio. Under `cover`, the wrapper's block size, overriding `aspectRatio`.",
6016
- type: { kind: "number" }
6142
+ type: { kind: "enum", values: ["start", "center", "end"] }
6017
6143
  },
6018
6144
  id: {
6019
6145
  description: "DOM id.",
6020
6146
  type: { kind: "string" }
6021
6147
  },
6022
- lazy: {
6148
+ level: {
6149
+ description: "Semantic heading level. Renders a `<span>` when omitted.",
6150
+ type: { kind: "enum", values: [1, 2, 3, 4, 5, 6] }
6151
+ },
6152
+ opticalAlign: {
6023
6153
  default: !1,
6024
- description: "Defers loading until the image is near the viewport.",
6154
+ description: "Optically aligns left sidebearing-heavy glyphs with the content edge.",
6025
6155
  type: { kind: "boolean" }
6026
6156
  },
6027
- priority: {
6157
+ responsive: {
6028
6158
  default: !1,
6029
- description: "Marks the image as high priority for fetch.",
6159
+ description: "Scales type across breakpoints.",
6030
6160
  type: { kind: "boolean" }
6031
6161
  },
6032
- sizes: {
6033
- description: "`sizes` attribute used with `srcSet`.",
6034
- ignoredWhen: "`sources` are provided",
6035
- type: { kind: "string" }
6036
- },
6037
- sources: {
6038
- description: "Responsive sources rendered inside a `<picture>`.",
6162
+ size: {
6163
+ default: "md",
6164
+ description: "Size variant.",
6039
6165
  type: {
6040
- kind: "array",
6041
- itemShape: {
6042
- height: {
6043
- description: "Intrinsic height in pixels.",
6044
- type: { kind: "number" }
6045
- },
6046
- media: {
6047
- description: "`media` condition evaluated for the source.",
6048
- type: { kind: "string" }
6049
- },
6050
- sizes: {
6051
- description: "`sizes` attribute for the source.",
6052
- type: { kind: "string" }
6053
- },
6054
- srcSet: {
6055
- description: "Candidate sources for this media entry.",
6056
- required: !0,
6057
- type: { kind: "string" }
6058
- },
6059
- leadSrc: {
6060
- description: "Intro overlay for this source in an `animated` sequence.",
6061
- type: { kind: "string" }
6062
- },
6063
- still: {
6064
- description: "Reduced-motion still for this source, used when `animated`. For a light/dark still, use an adaptive SVG.",
6065
- type: { kind: "string" }
6066
- },
6067
- type: {
6068
- description: "MIME type for the source resources.",
6069
- type: { kind: "string" }
6070
- },
6071
- width: {
6072
- description: "Intrinsic width in pixels.",
6073
- type: { kind: "number" }
6074
- }
6075
- }
6166
+ kind: "enum",
6167
+ values: ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl"]
6076
6168
  }
6077
6169
  },
6078
- srcSet: {
6079
- description: "Candidate sources for the fallback image.",
6080
- type: { kind: "string" }
6081
- },
6082
- leadSrc: {
6083
- 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.",
6084
- type: { kind: "string" }
6085
- },
6086
- still: {
6087
- 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`.",
6088
- requiredWhen: "`animated` is set",
6089
- type: { kind: "string" }
6090
- },
6091
- src: {
6092
- description: "Image source URL.",
6170
+ text: {
6171
+ description: "Heading text.",
6093
6172
  required: !0,
6094
- type: { kind: "string" }
6095
- },
6096
- width: {
6097
- description: "Width in pixels. Under `intrinsic`, the rendered width, capped at the container; under `fluid`, an aspect-ratio hint; under `cover`, the wrapper's inline size (`aspectRatio` still derives the block size while `height` is unset).",
6098
- type: { kind: "number" }
6173
+ type: { kind: "text" }
6099
6174
  }
6100
6175
  },
6101
6176
  events: {},
@@ -6103,81 +6178,29 @@ const an = {
6103
6178
  attributes: [
6104
6179
  {
6105
6180
  target: { on: "host" },
6106
- attribute: "data-adaptive",
6107
- condition: { kind: "when-truthy", prop: "adaptive" }
6108
- },
6109
- {
6110
- target: { on: "host" },
6111
- attribute: "data-animated",
6112
- condition: { kind: "when-truthy", prop: "animated" }
6113
- },
6114
- {
6115
- target: { on: "host" },
6116
- attribute: "data-sequenced",
6117
- condition: { kind: "when-non-empty", prop: "leadSrc" }
6118
- },
6119
- {
6120
- target: { on: "host" },
6121
- attribute: "data-object-fit",
6122
- condition: { kind: "when-equals", prop: "fit", to: "cover" },
6123
- value: { kind: "literal", text: "cover" }
6181
+ attribute: "data-align",
6182
+ condition: {
6183
+ kind: "when-in",
6184
+ prop: "align",
6185
+ values: ["center", "end"]
6186
+ },
6187
+ value: { kind: "prop", prop: "align" }
6124
6188
  },
6125
6189
  {
6126
6190
  target: { on: "host" },
6127
- attribute: "data-shadow",
6128
- condition: { kind: "when-truthy", prop: "shadow" }
6191
+ attribute: "data-optical-align",
6192
+ condition: { kind: "when-truthy", prop: "opticalAlign" }
6129
6193
  },
6130
6194
  {
6131
6195
  target: { on: "host" },
6132
- attribute: "data-radius",
6133
- condition: { kind: "when-truthy", prop: "radius" }
6196
+ attribute: "data-responsive",
6197
+ condition: { kind: "when-truthy", prop: "responsive" }
6134
6198
  },
6135
6199
  {
6136
6200
  target: { on: "host" },
6137
- attribute: "data-fluid",
6138
- condition: { kind: "when-equals", prop: "fit", to: "fluid" }
6139
- },
6140
- {
6141
- target: { on: "descendant", selector: "img" },
6142
- attribute: "class",
6143
- condition: { kind: "always" },
6144
- value: { kind: "literal", text: "img" }
6145
- },
6146
- {
6147
- target: { on: "descendant", selector: "img" },
6148
- attribute: "alt",
6149
- condition: { kind: "always" },
6150
- value: { kind: "prop", prop: "alt" }
6151
- },
6152
- {
6153
- target: { on: "descendant", selector: "img" },
6154
- attribute: "src",
6201
+ attribute: "data-size",
6155
6202
  condition: { kind: "always" },
6156
- value: { kind: "template", pattern: "{src}" }
6157
- },
6158
- {
6159
- target: { on: "descendant", selector: "img" },
6160
- attribute: "srcset",
6161
- condition: { kind: "when-non-empty", prop: "srcSet" },
6162
- value: { kind: "prop", prop: "srcSet" }
6163
- },
6164
- {
6165
- target: { on: "descendant", selector: "img" },
6166
- attribute: "fetchpriority",
6167
- condition: { kind: "when-truthy", prop: "priority" },
6168
- value: { kind: "literal", text: "high" }
6169
- },
6170
- {
6171
- target: { on: "descendant", selector: "img" },
6172
- attribute: "loading",
6173
- condition: {
6174
- kind: "all",
6175
- of: [
6176
- { kind: "when-truthy", prop: "lazy" },
6177
- { kind: "not", of: { kind: "when-truthy", prop: "priority" } }
6178
- ]
6179
- },
6180
- value: { kind: "literal", text: "lazy" }
6203
+ value: { kind: "prop", prop: "size" }
6181
6204
  },
6182
6205
  {
6183
6206
  target: { on: "host" },
@@ -6188,7 +6211,7 @@ const an = {
6188
6211
  ]
6189
6212
  }
6190
6213
  };
6191
- function Ne({
6214
+ function Oe({
6192
6215
  align: t = "center",
6193
6216
  as: n = "div",
6194
6217
  children: e,
@@ -6212,10 +6235,10 @@ function Ne({
6212
6235
  children: e ? [{ kind: "raw", html: e }] : []
6213
6236
  };
6214
6237
  }
6215
- function on(t) {
6216
- return m(Ne(t));
6238
+ function sn(t) {
6239
+ return m(Oe(t));
6217
6240
  }
6218
- const dn = {
6241
+ const ln = {
6219
6242
  name: "inline",
6220
6243
  description: "Use `inline` to lay out content in a horizontal row.",
6221
6244
  output: {
@@ -6300,7 +6323,7 @@ const dn = {
6300
6323
  ]
6301
6324
  }
6302
6325
  };
6303
- function Be({
6326
+ function Pe({
6304
6327
  autocomplete: t,
6305
6328
  description: n,
6306
6329
  disabled: e,
@@ -6317,7 +6340,7 @@ function Be({
6317
6340
  value: b,
6318
6341
  inlineSize: S = "full"
6319
6342
  }) {
6320
- const f = i.trim(), E = n?.trim(), q = t === !1 ? !1 : t?.trim(), w = o?.trim(), k = d?.trim(), L = b;
6343
+ const f = i.trim(), E = n?.trim(), q = t === !1 ? !1 : t?.trim(), w = o?.trim(), k = d?.trim(), C = b;
6321
6344
  if (!f)
6322
6345
  throw new Error("id must be a non-empty string.");
6323
6346
  if (!V(f))
@@ -6348,7 +6371,7 @@ function Be({
6348
6371
  required: !!p,
6349
6372
  spellcheck: N === void 0 ? void 0 : String(N),
6350
6373
  type: _,
6351
- value: L
6374
+ value: C
6352
6375
  },
6353
6376
  children: []
6354
6377
  }
@@ -6369,10 +6392,10 @@ function Be({
6369
6392
  children: $
6370
6393
  };
6371
6394
  }
6372
- function sn(t) {
6373
- return m(Be(t));
6395
+ function pn(t) {
6396
+ return m(Pe(t));
6374
6397
  }
6375
- const ln = {
6398
+ const cn = {
6376
6399
  name: "input",
6377
6400
  description: "Use `input` to collect a single line of text from users.",
6378
6401
  output: { element: "div", class: "set-input" },
@@ -6567,7 +6590,7 @@ const ln = {
6567
6590
  }
6568
6591
  ]
6569
6592
  }
6570
- }, Oe = "0 0 6714.6 1200", Pe = "0 0 600 1200", Re = [
6593
+ }, Re = "0 0 6714.6 1200", We = "0 0 600 1200", Ue = [
6571
6594
  { x: 0, y: 0 },
6572
6595
  { x: 300, y: 0 },
6573
6596
  { x: 150, y: 300 },
@@ -6576,11 +6599,11 @@ const ln = {
6576
6599
  { x: 300, y: 600 },
6577
6600
  { x: 150, y: 900 },
6578
6601
  { x: 450, y: 900 }
6579
- ], We = "M0 956h98V571L87 391h2l124 320h89l123-320h3l-11 180v385h98V276H384L260 608h-5L131 276H0zm879.94 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m361.44 83h103V686c0-141 20-169 112-169 73 0 88 18 88 107v332h103V624c0-167-28-202-163-202-95 0-120 16-147 92h-5v-82h-91zm769.16 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m363.25-65c-4 132 30 158 202 158 173 0 208-25 208-150 0-118-33-146-191-170-94-14-114-26-114-74 0-50 18-60 103-60 76 0 92 9 96 52h97c-3-118-36-142-194-142-166 0-201 25-201 146 0 114 31 141 182 162 101 13 122 28 122 82 0 53-18 64-103 64-88 0-107-11-110-68zm558.97 363h102V902h5c20 54 41 64 123 64 160 0 193-45 193-270 0-227-34-274-198-274-83 0-105 11-123 65h-4v-55h-98zm209-298c-93 0-112-30-112-179 0-148 19-178 112-178s113 30 113 179c0 148-20 178-113 178m656.46 83h88V610c0-156-34-187-197-187-150 0-181 27-179 157h97c1-61 15-74 85-74 82 0 99 18 99 105v24h-72c-187 0-226 30-226 179 0 126 28 152 162 152 92 0 116-13 138-74h5zm-8-243c-1 135-22 163-119 163-65 0-79-13-79-75 0-74 18-88 107-88zm551.75 95c-10 56-26 67-89 67-100 0-121-31-121-181s20-181 117-181c65 0 81 14 91 79h101c-4-141-37-170-188-170-185 0-224 46-224 272s39 272 226 272c147 0 179-26 186-158zm547.03 9c-15 48-31 58-96 58-96 0-117-23-123-136h324c5-263-32-317-214-317-172 0-207 46-207 271 0 227 38 273 223 273 139 0 172-25 190-149zm-218-160c4-122 24-146 114-146 88 0 108 24 112 146zm787.56 299h93l-1-734h-102l1 266h-5c-19-54-40-65-120-65-162 0-196 46-196 272s35 271 200 271c84 0 105-11 125-65h5zm-115-82c-94 0-114-30-114-180s20-180 114-180c93 0 112 30 112 180s-19 180-112 180", Ue = 1163, It = () => ({
6602
+ ], $e = "M0 956h98V571L87 391h2l124 320h89l123-320h3l-11 180v385h98V276H384L260 608h-5L131 276H0zm879.94 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m361.44 83h103V686c0-141 20-169 112-169 73 0 88 18 88 107v332h103V624c0-167-28-202-163-202-95 0-120 16-147 92h-5v-82h-91zm769.16 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m363.25-65c-4 132 30 158 202 158 173 0 208-25 208-150 0-118-33-146-191-170-94-14-114-26-114-74 0-50 18-60 103-60 76 0 92 9 96 52h97c-3-118-36-142-194-142-166 0-201 25-201 146 0 114 31 141 182 162 101 13 122 28 122 82 0 53-18 64-103 64-88 0-107-11-110-68zm558.97 363h102V902h5c20 54 41 64 123 64 160 0 193-45 193-270 0-227-34-274-198-274-83 0-105 11-123 65h-4v-55h-98zm209-298c-93 0-112-30-112-179 0-148 19-178 112-178s113 30 113 179c0 148-20 178-113 178m656.46 83h88V610c0-156-34-187-197-187-150 0-181 27-179 157h97c1-61 15-74 85-74 82 0 99 18 99 105v24h-72c-187 0-226 30-226 179 0 126 28 152 162 152 92 0 116-13 138-74h5zm-8-243c-1 135-22 163-119 163-65 0-79-13-79-75 0-74 18-88 107-88zm551.75 95c-10 56-26 67-89 67-100 0-121-31-121-181s20-181 117-181c65 0 81 14 91 79h101c-4-141-37-170-188-170-185 0-224 46-224 272s39 272 226 272c147 0 179-26 186-158zm547.03 9c-15 48-31 58-96 58-96 0-117-23-123-136h324c5-263-32-317-214-317-172 0-207 46-207 271 0 227 38 273 223 273 139 0 172-25 190-149zm-218-160c4-122 24-146 114-146 88 0 108 24 112 146zm787.56 299h93l-1-734h-102l1 266h-5c-19-54-40-65-120-65-162 0-196 46-196 272s35 271 200 271c84 0 105-11 125-65h5zm-115-82c-94 0-114-30-114-180s20-180 114-180c93 0 112 30 112 180s-19 180-112 180", Ge = 1163, Tt = () => ({
6580
6603
  kind: "element",
6581
6604
  tag: "g",
6582
6605
  attrs: { class: "mark" },
6583
- children: Re.map(({ x: t, y: n }) => ({
6606
+ children: Ue.map(({ x: t, y: n }) => ({
6584
6607
  kind: "element",
6585
6608
  tag: "rect",
6586
6609
  attrs: {
@@ -6591,19 +6614,19 @@ const ln = {
6591
6614
  },
6592
6615
  children: []
6593
6616
  }))
6594
- }), $e = () => ({
6617
+ }), Ze = () => ({
6595
6618
  kind: "element",
6596
6619
  tag: "g",
6597
- attrs: { class: "word", transform: `translate(${Ue} 0)` },
6620
+ attrs: { class: "word", transform: `translate(${Ge} 0)` },
6598
6621
  children: [
6599
6622
  {
6600
6623
  kind: "element",
6601
6624
  tag: "path",
6602
- attrs: { d: We },
6625
+ attrs: { d: $e },
6603
6626
  children: []
6604
6627
  }
6605
6628
  ]
6606
- }), Tt = (t, n) => ({
6629
+ }), At = (t, n) => ({
6607
6630
  kind: "element",
6608
6631
  tag: "svg",
6609
6632
  attrs: {
@@ -6613,13 +6636,13 @@ const ln = {
6613
6636
  },
6614
6637
  children: n
6615
6638
  });
6616
- function Ge() {
6617
- return Tt(Oe, [It(), $e()]);
6639
+ function Fe() {
6640
+ return At(Re, [Tt(), Ze()]);
6618
6641
  }
6619
- function Ze() {
6620
- return Tt(Pe, [It()]);
6642
+ function je() {
6643
+ return At(We, [Tt()]);
6621
6644
  }
6622
- function Fe({
6645
+ function Ke({
6623
6646
  animated: t,
6624
6647
  id: n,
6625
6648
  label: e,
@@ -6636,7 +6659,7 @@ function Fe({
6636
6659
  }
6637
6660
  ];
6638
6661
  return d && s.push(
6639
- a === "graphic" ? Ze() : Ge()
6662
+ a === "graphic" ? je() : Fe()
6640
6663
  ), {
6641
6664
  kind: "element",
6642
6665
  tag: "div",
@@ -6651,10 +6674,10 @@ function Fe({
6651
6674
  children: s
6652
6675
  };
6653
6676
  }
6654
- function pn(t) {
6655
- return m(Fe(t));
6677
+ function un(t) {
6678
+ return m(Ke(t));
6656
6679
  }
6657
- const cn = {
6680
+ const hn = {
6658
6681
  name: "logo",
6659
6682
  description: "Use `logo` to display the brand mark.",
6660
6683
  output: { element: "div", class: "set-logo" },
@@ -6742,7 +6765,7 @@ const cn = {
6742
6765
  ]
6743
6766
  }
6744
6767
  };
6745
- function je({
6768
+ function Xe({
6746
6769
  banner: t,
6747
6770
  centerMain: n,
6748
6771
  children: e,
@@ -6783,10 +6806,10 @@ function je({
6783
6806
  children: l
6784
6807
  };
6785
6808
  }
6786
- function un(t) {
6787
- return m(je(t));
6809
+ function mn(t) {
6810
+ return m(Xe(t));
6788
6811
  }
6789
- const hn = {
6812
+ const kn = {
6790
6813
  name: "page",
6791
6814
  description: "Use `page` as the primary layout for header, main, and footer regions.",
6792
6815
  output: { element: "div", class: "set-page" },
@@ -6876,7 +6899,7 @@ const hn = {
6876
6899
  ]
6877
6900
  }
6878
6901
  };
6879
- function Ke({
6902
+ function Qe({
6880
6903
  children: t,
6881
6904
  id: n,
6882
6905
  padding: e = "md",
@@ -6895,10 +6918,10 @@ function Ke({
6895
6918
  children: t ? [{ kind: "raw", html: t }] : []
6896
6919
  };
6897
6920
  }
6898
- function mn(t) {
6899
- return m(Ke(t));
6921
+ function gn(t) {
6922
+ return m(Qe(t));
6900
6923
  }
6901
- const kn = {
6924
+ const bn = {
6902
6925
  name: "panel",
6903
6926
  description: "Use `panel` to group related content in a contained region.",
6904
6927
  output: { element: "div", class: "set-panel" },
@@ -6949,7 +6972,7 @@ const kn = {
6949
6972
  ]
6950
6973
  }
6951
6974
  };
6952
- function Xe({
6975
+ function Ye({
6953
6976
  children: t,
6954
6977
  id: n,
6955
6978
  size: e = "md",
@@ -6970,10 +6993,10 @@ function Xe({
6970
6993
  children: t ? [{ kind: "raw", html: t }] : []
6971
6994
  };
6972
6995
  }
6973
- function gn(t = {}) {
6974
- return m(Xe(t));
6996
+ function vn(t = {}) {
6997
+ return m(Ye(t));
6975
6998
  }
6976
- const bn = {
6999
+ const fn = {
6977
7000
  name: "pattern",
6978
7001
  description: "Use `pattern` to render repeated visual language components behind content.",
6979
7002
  output: { element: "div", class: "set-pattern" },
@@ -7040,15 +7063,15 @@ const bn = {
7040
7063
  ]
7041
7064
  }
7042
7065
  };
7043
- function vn(t) {
7044
- return He({
7066
+ function yn(t) {
7067
+ return Qt({
7045
7068
  ...t,
7046
7069
  alt: "",
7047
7070
  fit: "cover",
7048
7071
  priority: !0
7049
7072
  });
7050
7073
  }
7051
- function Qe({
7074
+ function Je({
7052
7075
  children: t,
7053
7076
  contentTheme: n,
7054
7077
  id: e,
@@ -7080,10 +7103,10 @@ function Qe({
7080
7103
  children: d
7081
7104
  };
7082
7105
  }
7083
- function fn(t) {
7084
- return m(Qe(t));
7106
+ function wn(t) {
7107
+ return m(Je(t));
7085
7108
  }
7086
- const yn = {
7109
+ const Sn = {
7087
7110
  name: "poster",
7088
7111
  description: "Use `poster` to layer content over background media.",
7089
7112
  output: { element: "div", class: "set-poster" },
@@ -7154,7 +7177,7 @@ const yn = {
7154
7177
  ]
7155
7178
  }
7156
7179
  };
7157
- function Ye({
7180
+ function ti({
7158
7181
  align: t = "start",
7159
7182
  children: n,
7160
7183
  hangingPunctuation: e,
@@ -7181,10 +7204,10 @@ function Ye({
7181
7204
  children: [{ kind: "raw", html: n }]
7182
7205
  };
7183
7206
  }
7184
- function wn(t) {
7185
- return m(Ye(t));
7207
+ function xn(t) {
7208
+ return m(ti(t));
7186
7209
  }
7187
- const Sn = {
7210
+ const En = {
7188
7211
  name: "prose",
7189
7212
  description: "Use `prose` to style rich-text markup.",
7190
7213
  output: { element: "div", class: "set-prose" },
@@ -7278,7 +7301,7 @@ const Sn = {
7278
7301
  ]
7279
7302
  }
7280
7303
  };
7281
- function Je({
7304
+ function ei({
7282
7305
  description: t,
7283
7306
  disabled: n,
7284
7307
  id: e,
@@ -7302,12 +7325,12 @@ function Je({
7302
7325
  throw new Error("name must be a non-empty string.");
7303
7326
  if (r.length < 2)
7304
7327
  throw new Error("radios must include at least 2 options.");
7305
- const S = r.map((k, L) => {
7328
+ const S = r.map((k, C) => {
7306
7329
  const x = k.value.trim(), z = k.label.trim(), _ = k.description?.trim();
7307
7330
  if (!x)
7308
- throw new Error(`radios[${L}].value must be non-empty.`);
7331
+ throw new Error(`radios[${C}].value must be non-empty.`);
7309
7332
  if (!z)
7310
- throw new Error(`radios[${L}].label must be non-empty.`);
7333
+ throw new Error(`radios[${C}].label must be non-empty.`);
7311
7334
  return {
7312
7335
  description: _,
7313
7336
  disabled: !!k.disabled,
@@ -7318,7 +7341,7 @@ function Je({
7318
7341
  if (new Set(S.map((k) => k.value)).size !== S.length)
7319
7342
  throw new Error("radios values must be unique.");
7320
7343
  const E = !!n, q = S.map((k) => {
7321
- const L = !!k.disabled, x = k.description ? `${c}-${k.value}-description` : void 0, z = [
7344
+ const C = !!k.disabled, x = k.description ? `${c}-${k.value}-description` : void 0, z = [
7322
7345
  {
7323
7346
  kind: "element",
7324
7347
  tag: "label",
@@ -7331,9 +7354,9 @@ function Je({
7331
7354
  "aria-describedby": x,
7332
7355
  checked: b === k.value,
7333
7356
  class: "radio",
7334
- disabled: L,
7357
+ disabled: C,
7335
7358
  name: h,
7336
- required: !!s && !E && !L,
7359
+ required: !!s && !E && !C,
7337
7360
  type: "radio",
7338
7361
  value: k.value
7339
7362
  },
@@ -7360,7 +7383,7 @@ function Je({
7360
7383
  children: z
7361
7384
  };
7362
7385
  });
7363
- return qt({
7386
+ return It({
7364
7387
  children: m({
7365
7388
  kind: "element",
7366
7389
  tag: "div",
@@ -7378,10 +7401,10 @@ function Je({
7378
7401
  legend: a
7379
7402
  });
7380
7403
  }
7381
- function xn(t) {
7382
- return m(Je(t));
7404
+ function zn(t) {
7405
+ return m(ei(t));
7383
7406
  }
7384
- const En = {
7407
+ const Ln = {
7385
7408
  name: "radios",
7386
7409
  description: "Use `radios` to let users select one option from a short list.",
7387
7410
  output: { element: "fieldset", class: "set-fieldset" },
@@ -7530,7 +7553,7 @@ const En = {
7530
7553
  ]
7531
7554
  }
7532
7555
  };
7533
- function ti({
7556
+ function ii({
7534
7557
  appOverscrollBehavior: t,
7535
7558
  appRoot: n,
7536
7559
  brand: e = "mnsp",
@@ -7557,10 +7580,10 @@ function ti({
7557
7580
  children: i ? [{ kind: "raw", html: i }] : []
7558
7581
  };
7559
7582
  }
7560
- function zn(t) {
7561
- return m(ti(t));
7583
+ function Cn(t) {
7584
+ return m(ii(t));
7562
7585
  }
7563
- const Cn = {
7586
+ const Mn = {
7564
7587
  name: "root",
7565
7588
  description: "Mandatory top-level `root` wrapper for the Set system.",
7566
7589
  output: { element: "div", class: "set" },
@@ -7653,7 +7676,7 @@ const Cn = {
7653
7676
  ]
7654
7677
  }
7655
7678
  };
7656
- function ei({
7679
+ function ni({
7657
7680
  id: t,
7658
7681
  label: n,
7659
7682
  size: e = "md",
@@ -7710,10 +7733,10 @@ function ei({
7710
7733
  children: o
7711
7734
  };
7712
7735
  }
7713
- function Ln(t = {}) {
7714
- return m(ei(t));
7736
+ function qn(t = {}) {
7737
+ return m(ni(t));
7715
7738
  }
7716
- const Mn = {
7739
+ const In = {
7717
7740
  name: "spinner",
7718
7741
  description: "Use `spinner` to indicate loading or in-progress state.",
7719
7742
  output: { element: "span", class: "set-spinner" },
@@ -7771,7 +7794,7 @@ const Mn = {
7771
7794
  ]
7772
7795
  }
7773
7796
  };
7774
- function ii({
7797
+ function ri({
7775
7798
  align: t = "stretch",
7776
7799
  as: n = "div",
7777
7800
  children: e,
@@ -7793,10 +7816,10 @@ function ii({
7793
7816
  children: e ? [{ kind: "raw", html: e }] : []
7794
7817
  };
7795
7818
  }
7796
- function qn(t) {
7797
- return m(ii(t));
7819
+ function Tn(t) {
7820
+ return m(ri(t));
7798
7821
  }
7799
- const In = {
7822
+ const An = {
7800
7823
  name: "stack",
7801
7824
  description: "Use `stack` to lay out content in a vertical column.",
7802
7825
  output: {
@@ -7867,7 +7890,7 @@ const In = {
7867
7890
  ]
7868
7891
  }
7869
7892
  };
7870
- function ni({
7893
+ function ai({
7871
7894
  children: t,
7872
7895
  contentTheme: n,
7873
7896
  id: e,
@@ -7886,10 +7909,10 @@ function ni({
7886
7909
  children: [{ kind: "raw", html: t }]
7887
7910
  };
7888
7911
  }
7889
- function Tn(t) {
7890
- return m(ni(t));
7912
+ function _n(t) {
7913
+ return m(ai(t));
7891
7914
  }
7892
- const An = {
7915
+ const Dn = {
7893
7916
  name: "surface",
7894
7917
  description: "Use `surface` to set a colour context for nested content.",
7895
7918
  output: { element: "div", class: "set-surface" },
@@ -7941,7 +7964,7 @@ const An = {
7941
7964
  ]
7942
7965
  }
7943
7966
  };
7944
- function ri({
7967
+ function oi({
7945
7968
  checked: t,
7946
7969
  description: n,
7947
7970
  disabled: e,
@@ -7997,10 +8020,10 @@ function ri({
7997
8020
  children: c
7998
8021
  };
7999
8022
  }
8000
- function _n(t) {
8001
- return m(ri(t));
8023
+ function Vn(t) {
8024
+ return m(oi(t));
8002
8025
  }
8003
- const Dn = {
8026
+ const Hn = {
8004
8027
  name: "switch",
8005
8028
  description: "Use `switch` to let users instantly toggle a setting on or off.",
8006
8029
  output: { element: "div", class: "set-switch" },
@@ -8108,7 +8131,7 @@ const Dn = {
8108
8131
  ]
8109
8132
  }
8110
8133
  };
8111
- function ai({
8134
+ function di({
8112
8135
  autocomplete: t,
8113
8136
  description: n,
8114
8137
  disabled: e,
@@ -8134,7 +8157,7 @@ function ai({
8134
8157
  );
8135
8158
  if (!Number.isInteger(l) || l < 2)
8136
8159
  throw new Error("rows must be an integer greater than or equal to 2.");
8137
- const L = E ? `${f}-description` : void 0, x = !!e, z = !x && !!d, D = [
8160
+ const C = E ? `${f}-description` : void 0, x = !!e, z = !x && !!d, D = [
8138
8161
  {
8139
8162
  kind: "element",
8140
8163
  tag: "label",
@@ -8145,7 +8168,7 @@ function ai({
8145
8168
  kind: "element",
8146
8169
  tag: "textarea",
8147
8170
  attrs: {
8148
- "aria-describedby": L,
8171
+ "aria-describedby": C,
8149
8172
  "aria-invalid": !x && !z && !!r ? "true" : void 0,
8150
8173
  autocomplete: q === !1 ? "off" : q || void 0,
8151
8174
  class: "textarea",
@@ -8163,7 +8186,7 @@ function ai({
8163
8186
  return E && D.push({
8164
8187
  kind: "element",
8165
8188
  tag: "p",
8166
- attrs: { class: "description", id: L },
8189
+ attrs: { class: "description", id: C },
8167
8190
  children: [{ kind: "text", value: E }]
8168
8191
  }), {
8169
8192
  kind: "element",
@@ -8177,10 +8200,10 @@ function ai({
8177
8200
  children: D
8178
8201
  };
8179
8202
  }
8180
- function Vn(t) {
8181
- return m(ai(t));
8203
+ function Nn(t) {
8204
+ return m(di(t));
8182
8205
  }
8183
- const Hn = {
8206
+ const Bn = {
8184
8207
  name: "textarea",
8185
8208
  description: "Use `textarea` to collect multiple lines of text from users.",
8186
8209
  output: { element: "div", class: "set-textarea" },
@@ -8369,166 +8392,168 @@ const Hn = {
8369
8392
  ]
8370
8393
  }
8371
8394
  };
8372
- function Nn() {
8373
- $t(), jt(), Yt(), te(), re(), oe(), pe(), he();
8395
+ function On() {
8396
+ Gt(), Kt(), Yt(), ie(), re(), se(), pe(), me(), be();
8374
8397
  }
8375
8398
  export {
8376
- St as SET_ALERT_EVENT_BEFORE_DISMISS,
8377
- xt as SET_ALERT_EVENT_DISMISS,
8378
- pi as SET_ALERT_SPEC,
8399
+ xt as SET_ALERT_EVENT_BEFORE_DISMISS,
8400
+ Et as SET_ALERT_EVENT_DISMISS,
8401
+ ui as SET_ALERT_SPEC,
8379
8402
  Z as SET_ALERT_TAG_NAME,
8380
- qi as SET_AVATAR_SPEC,
8381
- Ti as SET_BADGE_SPEC,
8382
- zt as SET_BANNER_EVENT_BEFORE_DISMISS,
8403
+ Ai as SET_AVATAR_SPEC,
8404
+ Di as SET_BADGE_SPEC,
8405
+ Lt as SET_BANNER_EVENT_BEFORE_DISMISS,
8383
8406
  Ct as SET_BANNER_EVENT_DISMISS,
8384
- mi as SET_BANNER_SPEC,
8407
+ gi as SET_BANNER_SPEC,
8385
8408
  F as SET_BANNER_TAG_NAME,
8386
- Vi as SET_BLOCKQUOTE_SPEC,
8387
- Ni as SET_BOX_SPEC,
8388
- si as SET_BUTTON_SPEC,
8389
- Oi as SET_CARD_SPEC,
8390
- Ri as SET_CHECKBOX_SPEC,
8391
- Ui as SET_CONTAINER_SPEC,
8392
- Gi as SET_DETAILS_SPEC,
8393
- Fi as SET_DIVIDER_SPEC,
8394
- fi as SET_EXPANDER_SPEC,
8395
- Ki as SET_FIELDSET_SPEC,
8396
- Qi as SET_FIGURE_SPEC,
8397
- en as SET_GRID_ITEM_SPEC,
8398
- tn as SET_GRID_SPEC,
8399
- rn as SET_HEADING_SPEC,
8400
- oi as SET_ICON_NAMES,
8401
- di as SET_ICON_SPEC,
8402
- an as SET_IMAGE_SPEC,
8403
- dn as SET_INLINE_SPEC,
8404
- ln as SET_INPUT_SPEC,
8405
- Lt as SET_LIGHTSWITCH_EVENT_CHANGE,
8406
- gi as SET_LIGHTSWITCH_SPEC,
8407
- dt as SET_LIGHTSWITCH_STORAGE_KEY,
8408
- K as SET_LIGHTSWITCH_TAG_NAME,
8409
- ui as SET_LINK_SPEC,
8410
- cn as SET_LOGO_SPEC,
8411
- Mt as SET_MENU_EVENT_CHOOSE,
8412
- vi as SET_MENU_SPEC,
8413
- X as SET_MENU_TAG_NAME,
8414
- wi as SET_NAV_SPEC,
8415
- Q as SET_NAV_TAG_NAME,
8416
- hn as SET_PAGE_SPEC,
8417
- kn as SET_PANEL_SPEC,
8418
- bn as SET_PATTERN_SPEC,
8419
- yn as SET_POSTER_SPEC,
8420
- Sn as SET_PROSE_SPEC,
8421
- En as SET_RADIOS_SPEC,
8422
- xi as SET_RANGE_SPEC,
8423
- Y as SET_RANGE_TAG_NAME,
8424
- Cn as SET_ROOT_SPEC,
8425
- zi as SET_SIDEBAR_SPEC,
8426
- J as SET_SIDEBAR_TAG_NAME,
8427
- Mn as SET_SPINNER_SPEC,
8428
- In as SET_STACK_SPEC,
8429
- An as SET_SURFACE_SPEC,
8430
- Dn as SET_SWITCH_SPEC,
8431
- Hn as SET_TEXTAREA_SPEC,
8432
- _i as SET_TEXT_SPEC,
8433
- Li as SET_VIDEO_SPEC,
8434
- tt as SET_VIDEO_TAG_NAME,
8435
- Ut as buildSetAlert,
8436
- Se as buildSetAvatar,
8437
- xe as buildSetBadge,
8438
- Ft as buildSetBanner,
8439
- Ee as buildSetBlockquote,
8440
- ze as buildSetBox,
8441
- ut as buildSetButton,
8442
- Ce as buildSetCard,
8443
- Le as buildSetCheckbox,
8444
- Me as buildSetContainer,
8445
- qe as buildSetDetails,
8446
- Ie as buildSetDivider,
8447
- ee as buildSetExpander,
8448
- qt as buildSetFieldset,
8449
- Te as buildSetFigure,
8450
- Ae as buildSetGrid,
8451
- _e as buildSetGridItem,
8452
- De as buildSetHeading,
8409
+ Bi as SET_BLOCKQUOTE_SPEC,
8410
+ Pi as SET_BOX_SPEC,
8411
+ pi as SET_BUTTON_SPEC,
8412
+ Wi as SET_CARD_SPEC,
8413
+ $i as SET_CHECKBOX_SPEC,
8414
+ Zi as SET_CONTAINER_SPEC,
8415
+ ji as SET_DETAILS_SPEC,
8416
+ Xi as SET_DIVIDER_SPEC,
8417
+ Si as SET_EXPANDER_SPEC,
8418
+ Yi as SET_FIELDSET_SPEC,
8419
+ tn as SET_FIGURE_SPEC,
8420
+ an as SET_GRID_ITEM_SPEC,
8421
+ rn as SET_GRID_SPEC,
8422
+ dn as SET_HEADING_SPEC,
8423
+ si as SET_ICON_NAMES,
8424
+ li as SET_ICON_SPEC,
8425
+ bi as SET_IMAGE_SPEC,
8426
+ K as SET_IMAGE_TAG_NAME,
8427
+ ln as SET_INLINE_SPEC,
8428
+ cn as SET_INPUT_SPEC,
8429
+ Mt as SET_LIGHTSWITCH_EVENT_CHANGE,
8430
+ fi as SET_LIGHTSWITCH_SPEC,
8431
+ st as SET_LIGHTSWITCH_STORAGE_KEY,
8432
+ X as SET_LIGHTSWITCH_TAG_NAME,
8433
+ mi as SET_LINK_SPEC,
8434
+ hn as SET_LOGO_SPEC,
8435
+ qt as SET_MENU_EVENT_CHOOSE,
8436
+ wi as SET_MENU_SPEC,
8437
+ Q as SET_MENU_TAG_NAME,
8438
+ Ei as SET_NAV_SPEC,
8439
+ Y as SET_NAV_TAG_NAME,
8440
+ kn as SET_PAGE_SPEC,
8441
+ bn as SET_PANEL_SPEC,
8442
+ fn as SET_PATTERN_SPEC,
8443
+ Sn as SET_POSTER_SPEC,
8444
+ En as SET_PROSE_SPEC,
8445
+ Ln as SET_RADIOS_SPEC,
8446
+ Li as SET_RANGE_SPEC,
8447
+ J as SET_RANGE_TAG_NAME,
8448
+ Mn as SET_ROOT_SPEC,
8449
+ Mi as SET_SIDEBAR_SPEC,
8450
+ tt as SET_SIDEBAR_TAG_NAME,
8451
+ In as SET_SPINNER_SPEC,
8452
+ An as SET_STACK_SPEC,
8453
+ Dn as SET_SURFACE_SPEC,
8454
+ Hn as SET_SWITCH_SPEC,
8455
+ Bn as SET_TEXTAREA_SPEC,
8456
+ Hi as SET_TEXT_SPEC,
8457
+ Ii as SET_VIDEO_SPEC,
8458
+ et as SET_VIDEO_TAG_NAME,
8459
+ $t as buildSetAlert,
8460
+ Le as buildSetAvatar,
8461
+ Ce as buildSetBadge,
8462
+ jt as buildSetBanner,
8463
+ Me as buildSetBlockquote,
8464
+ qe as buildSetBox,
8465
+ ht as buildSetButton,
8466
+ Ie as buildSetCard,
8467
+ Te as buildSetCheckbox,
8468
+ Ae as buildSetContainer,
8469
+ _e as buildSetDetails,
8470
+ De as buildSetDivider,
8471
+ ae as buildSetExpander,
8472
+ It as buildSetFieldset,
8473
+ Ve as buildSetFigure,
8474
+ He as buildSetGrid,
8475
+ Ne as buildSetGridItem,
8476
+ Be as buildSetHeading,
8453
8477
  P as buildSetIcon,
8454
- Ve as buildSetImage,
8455
- Ne as buildSetInline,
8456
- Be as buildSetInput,
8457
- Qt as buildSetLightswitch,
8458
- Et as buildSetLink,
8459
- Fe as buildSetLogo,
8460
- Jt as buildSetMenu,
8461
- ne as buildSetNav,
8462
- je as buildSetPage,
8463
- Ke as buildSetPanel,
8464
- Xe as buildSetPattern,
8465
- Qe as buildSetPoster,
8466
- Ye as buildSetProse,
8467
- Je as buildSetRadios,
8468
- ae as buildSetRange,
8469
- ti as buildSetRoot,
8470
- le as buildSetSidebar,
8471
- ei as buildSetSpinner,
8472
- ii as buildSetStack,
8473
- ni as buildSetSurface,
8474
- ri as buildSetSwitch,
8475
- et as buildSetText,
8476
- ai as buildSetTextarea,
8477
- ce as buildSetVideo,
8478
- $t as defineSetAlert,
8479
- jt as defineSetBanner,
8480
- Nn as defineSetComponents,
8481
- Yt as defineSetLightswitch,
8482
- te as defineSetMenu,
8483
- re as defineSetNav,
8484
- oe as defineSetRange,
8485
- pe as defineSetSidebar,
8486
- he as defineSetVideo,
8487
- ge as getSetInitials,
8488
- li as renderSetAlert,
8489
- Mi as renderSetAvatar,
8490
- Ii as renderSetBadge,
8491
- hi as renderSetBanner,
8492
- Di as renderSetBlockquote,
8493
- Hi as renderSetBox,
8494
- ht as renderSetButton,
8495
- Bi as renderSetCard,
8496
- Pi as renderSetCheckbox,
8497
- Wi as renderSetContainer,
8498
- $i as renderSetDetails,
8499
- Zi as renderSetDivider,
8500
- ie as renderSetExpander,
8501
- ji as renderSetFieldset,
8502
- Xi as renderSetFigure,
8503
- Yi as renderSetGrid,
8504
- Ji as renderSetGridItem,
8505
- nn as renderSetHeading,
8506
- Ot as renderSetIcon,
8507
- He as renderSetImage,
8508
- on as renderSetInline,
8509
- sn as renderSetInput,
8510
- ki as renderSetLightswitch,
8511
- ci as renderSetLink,
8512
- pn as renderSetLogo,
8513
- bi as renderSetMenu,
8514
- yi as renderSetNav,
8515
- un as renderSetPage,
8516
- mn as renderSetPanel,
8517
- gn as renderSetPattern,
8518
- fn as renderSetPoster,
8519
- vn as renderSetPosterImage,
8520
- wn as renderSetProse,
8521
- xn as renderSetRadios,
8522
- Si as renderSetRange,
8523
- zn as renderSetRoot,
8524
- Ei as renderSetSidebar,
8525
- Ln as renderSetSpinner,
8526
- qn as renderSetStack,
8527
- Tn as renderSetSurface,
8528
- _n as renderSetSwitch,
8529
- Ai as renderSetText,
8530
- Vn as renderSetTextarea,
8531
- Ci as renderSetVideo,
8478
+ Xt as buildSetImage,
8479
+ Oe as buildSetInline,
8480
+ Pe as buildSetInput,
8481
+ ee as buildSetLightswitch,
8482
+ zt as buildSetLink,
8483
+ Ke as buildSetLogo,
8484
+ ne as buildSetMenu,
8485
+ de as buildSetNav,
8486
+ Xe as buildSetPage,
8487
+ Qe as buildSetPanel,
8488
+ Ye as buildSetPattern,
8489
+ Je as buildSetPoster,
8490
+ ti as buildSetProse,
8491
+ ei as buildSetRadios,
8492
+ le as buildSetRange,
8493
+ ii as buildSetRoot,
8494
+ he as buildSetSidebar,
8495
+ ni as buildSetSpinner,
8496
+ ri as buildSetStack,
8497
+ ai as buildSetSurface,
8498
+ oi as buildSetSwitch,
8499
+ it as buildSetText,
8500
+ di as buildSetTextarea,
8501
+ ke as buildSetVideo,
8502
+ Gt as defineSetAlert,
8503
+ Kt as defineSetBanner,
8504
+ On as defineSetComponents,
8505
+ Yt as defineSetImage,
8506
+ ie as defineSetLightswitch,
8507
+ re as defineSetMenu,
8508
+ se as defineSetNav,
8509
+ pe as defineSetRange,
8510
+ me as defineSetSidebar,
8511
+ be as defineSetVideo,
8512
+ ye as getSetInitials,
8513
+ ci as renderSetAlert,
8514
+ Ti as renderSetAvatar,
8515
+ _i as renderSetBadge,
8516
+ ki as renderSetBanner,
8517
+ Ni as renderSetBlockquote,
8518
+ Oi as renderSetBox,
8519
+ mt as renderSetButton,
8520
+ Ri as renderSetCard,
8521
+ Ui as renderSetCheckbox,
8522
+ Gi as renderSetContainer,
8523
+ Fi as renderSetDetails,
8524
+ Ki as renderSetDivider,
8525
+ oe as renderSetExpander,
8526
+ Qi as renderSetFieldset,
8527
+ Ji as renderSetFigure,
8528
+ en as renderSetGrid,
8529
+ nn as renderSetGridItem,
8530
+ on as renderSetHeading,
8531
+ Pt as renderSetIcon,
8532
+ Qt as renderSetImage,
8533
+ sn as renderSetInline,
8534
+ pn as renderSetInput,
8535
+ vi as renderSetLightswitch,
8536
+ hi as renderSetLink,
8537
+ un as renderSetLogo,
8538
+ yi as renderSetMenu,
8539
+ xi as renderSetNav,
8540
+ mn as renderSetPage,
8541
+ gn as renderSetPanel,
8542
+ vn as renderSetPattern,
8543
+ wn as renderSetPoster,
8544
+ yn as renderSetPosterImage,
8545
+ xn as renderSetProse,
8546
+ zn as renderSetRadios,
8547
+ zi as renderSetRange,
8548
+ Cn as renderSetRoot,
8549
+ Ci as renderSetSidebar,
8550
+ qn as renderSetSpinner,
8551
+ Tn as renderSetStack,
8552
+ _n as renderSetSurface,
8553
+ Vn as renderSetSwitch,
8554
+ Vi as renderSetText,
8555
+ Nn as renderSetTextarea,
8556
+ qi as renderSetVideo,
8532
8557
  m as serializeSetNode
8533
8558
  };
8534
8559
  //# sourceMappingURL=index.js.map