@monospaced/set-core 0.11.0 → 0.13.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/components/badge/badge.d.ts.map +1 -0
- package/dist/components/figure/figure.d.ts +4 -2
- package/dist/components/figure/figure.d.ts.map +1 -1
- package/dist/components/image/image.d.ts +15 -1
- package/dist/components/image/image.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1188 -1010
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Nt = /* @__PURE__ */ new Set([
|
|
2
2
|
"area",
|
|
3
3
|
"base",
|
|
4
4
|
"br",
|
|
@@ -13,38 +13,38 @@ const wt = /* @__PURE__ */ new Set([
|
|
|
13
13
|
"track",
|
|
14
14
|
"wbr"
|
|
15
15
|
]);
|
|
16
|
-
function
|
|
16
|
+
function ft(t) {
|
|
17
17
|
return t.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return Object.entries(t).flatMap(([n, e]) => e === !1 || e == null ? [] : e === !0 ? [n] : [`${n}="${
|
|
19
|
+
function Bt(t) {
|
|
20
|
+
return Object.entries(t).flatMap(([n, e]) => e === !1 || e == null ? [] : e === !0 ? [n] : [`${n}="${ft(String(e))}"`]).join(" ");
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
if (t.kind === "text") return
|
|
22
|
+
function m(t) {
|
|
23
|
+
if (t.kind === "text") return ft(t.value);
|
|
24
24
|
if (t.kind === "raw") return t.html;
|
|
25
|
-
const n =
|
|
26
|
-
if (
|
|
27
|
-
const i = t.children.map(
|
|
25
|
+
const n = Bt(t.attrs), e = n ? `<${t.tag} ${n}>` : `<${t.tag}>`;
|
|
26
|
+
if (Nt.has(t.tag)) return e;
|
|
27
|
+
const i = t.children.map(m).join("");
|
|
28
28
|
return `${e}${i}</${t.tag}>`;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function V(t) {
|
|
31
31
|
return /^[A-Za-z][\w:-]*$/.test(t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function v(t) {
|
|
34
34
|
if (t === void 0) return;
|
|
35
35
|
const n = t.trim();
|
|
36
36
|
if (n) {
|
|
37
|
-
if (!
|
|
37
|
+
if (!V(n))
|
|
38
38
|
throw new Error(
|
|
39
39
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
40
40
|
);
|
|
41
41
|
return n;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function O(t) {
|
|
45
45
|
return t == null ? void 0 : t.trim().replace(/\s+/g, " ") || void 0;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const yt = {
|
|
48
48
|
adjustment: [
|
|
49
49
|
{
|
|
50
50
|
tag: "g",
|
|
@@ -775,16 +775,16 @@ const st = {
|
|
|
775
775
|
]
|
|
776
776
|
}
|
|
777
777
|
]
|
|
778
|
-
},
|
|
779
|
-
function
|
|
778
|
+
}, oi = Object.keys(yt);
|
|
779
|
+
function wt(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 ?
|
|
784
|
+
children: n.children ? wt(n.children) : []
|
|
785
785
|
}));
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function P({
|
|
788
788
|
ariaHidden: t = !0,
|
|
789
789
|
id: n,
|
|
790
790
|
mirrored: e,
|
|
@@ -792,45 +792,45 @@ function O({
|
|
|
792
792
|
size: r = "md",
|
|
793
793
|
title: a
|
|
794
794
|
}) {
|
|
795
|
-
const
|
|
796
|
-
if (!
|
|
795
|
+
const o = yt[i];
|
|
796
|
+
if (!o)
|
|
797
797
|
throw new Error(`Unknown icon name: ${i}`);
|
|
798
|
-
const
|
|
798
|
+
const d = v(n), s = a?.trim();
|
|
799
799
|
if (!t && !s)
|
|
800
800
|
throw new Error("title must be non-empty when ariaHidden is false.");
|
|
801
|
-
if (!t && !
|
|
801
|
+
if (!t && !d)
|
|
802
802
|
throw new Error("id must be provided when ariaHidden is false.");
|
|
803
|
-
const
|
|
804
|
-
return t ||
|
|
803
|
+
const p = t ? void 0 : `${d}-title`, l = [];
|
|
804
|
+
return t || l.push({
|
|
805
805
|
kind: "element",
|
|
806
806
|
tag: "title",
|
|
807
|
-
attrs: { id:
|
|
807
|
+
attrs: { id: p },
|
|
808
808
|
children: [{ kind: "text", value: s }]
|
|
809
|
-
}),
|
|
809
|
+
}), l.push(...wt(o)), {
|
|
810
810
|
kind: "element",
|
|
811
811
|
tag: "svg",
|
|
812
812
|
attrs: {
|
|
813
813
|
"aria-hidden": t ? "true" : void 0,
|
|
814
|
-
"aria-labelledby":
|
|
814
|
+
"aria-labelledby": p,
|
|
815
815
|
class: "set-icon",
|
|
816
816
|
"data-mirrored": e,
|
|
817
817
|
"data-size": r,
|
|
818
818
|
fill: "none",
|
|
819
819
|
height: "24",
|
|
820
|
-
id:
|
|
820
|
+
id: d,
|
|
821
821
|
role: t ? void 0 : "img",
|
|
822
822
|
stroke: "currentColor",
|
|
823
823
|
"stroke-width": "1.75",
|
|
824
824
|
viewBox: "0 0 24 24",
|
|
825
825
|
xmlns: "http://www.w3.org/2000/svg"
|
|
826
826
|
},
|
|
827
|
-
children:
|
|
827
|
+
children: l
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
return
|
|
830
|
+
function Ot(t) {
|
|
831
|
+
return m(P(t));
|
|
832
832
|
}
|
|
833
|
-
const
|
|
833
|
+
const di = {
|
|
834
834
|
name: "icon",
|
|
835
835
|
description: "Use `icon` to render a Set icon.",
|
|
836
836
|
output: { element: "svg", class: "set-icon" },
|
|
@@ -944,44 +944,44 @@ const Ge = {
|
|
|
944
944
|
]
|
|
945
945
|
}
|
|
946
946
|
};
|
|
947
|
-
function
|
|
947
|
+
function ut(t) {
|
|
948
948
|
const {
|
|
949
949
|
appearance: n = "outline",
|
|
950
950
|
controls: e,
|
|
951
951
|
disabled: i,
|
|
952
952
|
disclosure: r,
|
|
953
953
|
form: a,
|
|
954
|
-
haspopup:
|
|
955
|
-
id:
|
|
954
|
+
haspopup: o,
|
|
955
|
+
id: d,
|
|
956
956
|
icon: s,
|
|
957
|
-
iconMirrored:
|
|
958
|
-
iconPlacement:
|
|
957
|
+
iconMirrored: p,
|
|
958
|
+
iconPlacement: l = "start",
|
|
959
959
|
label: c,
|
|
960
|
-
labelVisibility:
|
|
961
|
-
name:
|
|
962
|
-
size:
|
|
963
|
-
tone:
|
|
964
|
-
type:
|
|
965
|
-
value:
|
|
966
|
-
} = t,
|
|
967
|
-
if (
|
|
960
|
+
labelVisibility: h = "visible",
|
|
961
|
+
name: b,
|
|
962
|
+
size: S = "md",
|
|
963
|
+
tone: f = "default",
|
|
964
|
+
type: E,
|
|
965
|
+
value: q
|
|
966
|
+
} = t, w = s || void 0, k = !!w;
|
|
967
|
+
if (h !== "visible" && !k)
|
|
968
968
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
969
|
-
const
|
|
969
|
+
const L = 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:
|
|
976
|
+
html: Ot({
|
|
977
977
|
ariaHidden: !0,
|
|
978
|
-
mirrored:
|
|
979
|
-
name:
|
|
978
|
+
mirrored: p,
|
|
979
|
+
name: w,
|
|
980
980
|
size: "fill"
|
|
981
981
|
})
|
|
982
982
|
}
|
|
983
983
|
]
|
|
984
|
-
} : null,
|
|
984
|
+
} : null, x = {
|
|
985
985
|
kind: "element",
|
|
986
986
|
tag: "span",
|
|
987
987
|
attrs: { class: "label" },
|
|
@@ -993,26 +993,26 @@ function it(t) {
|
|
|
993
993
|
attrs: {
|
|
994
994
|
"aria-controls": r && e || void 0,
|
|
995
995
|
"aria-expanded": r ? "false" : void 0,
|
|
996
|
-
"aria-haspopup":
|
|
996
|
+
"aria-haspopup": o || void 0,
|
|
997
997
|
class: "set-button",
|
|
998
998
|
"data-appearance": n,
|
|
999
|
-
"data-label-visibility":
|
|
1000
|
-
"data-size":
|
|
1001
|
-
"data-tone":
|
|
999
|
+
"data-label-visibility": h === "visible" ? void 0 : h,
|
|
1000
|
+
"data-size": S,
|
|
1001
|
+
"data-tone": f === "neutral" ? "neutral" : void 0,
|
|
1002
1002
|
disabled: !!i,
|
|
1003
1003
|
form: a || void 0,
|
|
1004
|
-
id:
|
|
1005
|
-
name:
|
|
1006
|
-
type:
|
|
1007
|
-
value:
|
|
1004
|
+
id: d || void 0,
|
|
1005
|
+
name: b || void 0,
|
|
1006
|
+
type: E || "button",
|
|
1007
|
+
value: q || void 0
|
|
1008
1008
|
},
|
|
1009
|
-
children:
|
|
1009
|
+
children: L ? l === "end" ? [x, L] : [L, x] : [x]
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return
|
|
1012
|
+
function ht(t) {
|
|
1013
|
+
return m(ut(t));
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1015
|
+
const si = {
|
|
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 Ze = {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
]
|
|
1197
1197
|
}
|
|
1198
|
-
},
|
|
1199
|
-
function
|
|
1198
|
+
}, Z = "set-alert", St = "set-alert-before-dismiss", xt = "set-alert-dismiss", W = "Dismiss alert";
|
|
1199
|
+
function Pt(t, n) {
|
|
1200
1200
|
const e = n.createElement("div");
|
|
1201
|
-
return e.setAttribute("data-part", "close"), e.innerHTML =
|
|
1201
|
+
return e.setAttribute("data-part", "close"), e.innerHTML = ht({
|
|
1202
1202
|
appearance: "text",
|
|
1203
1203
|
icon: "close",
|
|
1204
1204
|
label: t,
|
|
@@ -1207,7 +1207,7 @@ function Et(t, n) {
|
|
|
1207
1207
|
tone: "neutral"
|
|
1208
1208
|
}), e;
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function Rt(t) {
|
|
1211
1211
|
switch (t) {
|
|
1212
1212
|
case "success":
|
|
1213
1213
|
return "check-circle";
|
|
@@ -1221,42 +1221,42 @@ function zt(t) {
|
|
|
1221
1221
|
return "sticky-note";
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function Wt(t) {
|
|
1225
1225
|
return t === "warning" || t === "error" ? "alert" : "status";
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Ut({
|
|
1228
1228
|
dismissible: t,
|
|
1229
|
-
dismissibleLabel: n =
|
|
1229
|
+
dismissibleLabel: n = W,
|
|
1230
1230
|
id: e,
|
|
1231
1231
|
inlineSize: i = "full",
|
|
1232
1232
|
message: r,
|
|
1233
1233
|
size: a = "md",
|
|
1234
|
-
tone:
|
|
1235
|
-
title:
|
|
1234
|
+
tone: o,
|
|
1235
|
+
title: d
|
|
1236
1236
|
}) {
|
|
1237
|
-
const s =
|
|
1238
|
-
return
|
|
1237
|
+
const s = v(e), p = n.trim() === "" ? W : n, l = [];
|
|
1238
|
+
return d && l.push({
|
|
1239
1239
|
kind: "element",
|
|
1240
1240
|
tag: "p",
|
|
1241
1241
|
attrs: { class: "title" },
|
|
1242
|
-
children: [{ kind: "text", value:
|
|
1243
|
-
}),
|
|
1242
|
+
children: [{ kind: "text", value: d }]
|
|
1243
|
+
}), l.push({
|
|
1244
1244
|
kind: "element",
|
|
1245
1245
|
tag: "p",
|
|
1246
1246
|
attrs: { class: "message" },
|
|
1247
1247
|
children: [{ kind: "text", value: r }]
|
|
1248
1248
|
}), {
|
|
1249
1249
|
kind: "element",
|
|
1250
|
-
tag:
|
|
1250
|
+
tag: Z,
|
|
1251
1251
|
attrs: {
|
|
1252
1252
|
class: "set-alert",
|
|
1253
1253
|
"data-dismissible": t,
|
|
1254
|
-
"data-dismissible-label": t ?
|
|
1254
|
+
"data-dismissible-label": t ? p : void 0,
|
|
1255
1255
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
1256
1256
|
"data-size": a,
|
|
1257
|
-
"data-tone":
|
|
1257
|
+
"data-tone": o || void 0,
|
|
1258
1258
|
id: s,
|
|
1259
|
-
role:
|
|
1259
|
+
role: Wt(o)
|
|
1260
1260
|
},
|
|
1261
1261
|
children: [
|
|
1262
1262
|
{
|
|
@@ -1264,9 +1264,9 @@ function Lt({
|
|
|
1264
1264
|
tag: "div",
|
|
1265
1265
|
attrs: { class: "icon-wrapper" },
|
|
1266
1266
|
children: [
|
|
1267
|
-
|
|
1267
|
+
P({
|
|
1268
1268
|
ariaHidden: !0,
|
|
1269
|
-
name:
|
|
1269
|
+
name: Rt(o),
|
|
1270
1270
|
size: a
|
|
1271
1271
|
})
|
|
1272
1272
|
]
|
|
@@ -1275,29 +1275,29 @@ function Lt({
|
|
|
1275
1275
|
kind: "element",
|
|
1276
1276
|
tag: "div",
|
|
1277
1277
|
attrs: { class: "content" },
|
|
1278
|
-
children:
|
|
1278
|
+
children: l
|
|
1279
1279
|
}
|
|
1280
1280
|
]
|
|
1281
1281
|
};
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1283
|
+
function li(t) {
|
|
1284
|
+
return m(Ut(t));
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
if (customElements.get(
|
|
1286
|
+
function $t() {
|
|
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
|
-
|
|
1293
|
+
St,
|
|
1294
1294
|
{
|
|
1295
1295
|
bubbles: !0,
|
|
1296
1296
|
cancelable: !0
|
|
1297
1297
|
}
|
|
1298
1298
|
);
|
|
1299
1299
|
this.dispatchEvent(r) && (this.dispatchEvent(
|
|
1300
|
-
new CustomEvent(
|
|
1300
|
+
new CustomEvent(xt, {
|
|
1301
1301
|
bubbles: !0
|
|
1302
1302
|
})
|
|
1303
1303
|
), this.remove());
|
|
@@ -1310,20 +1310,20 @@ function Mt() {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
#e() {
|
|
1312
1312
|
this.querySelector('[data-part="close"]') || this.append(
|
|
1313
|
-
|
|
1314
|
-
this.getAttribute("data-dismissible-label") ??
|
|
1313
|
+
Pt(
|
|
1314
|
+
this.getAttribute("data-dismissible-label") ?? W,
|
|
1315
1315
|
this.ownerDocument
|
|
1316
1316
|
)
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
customElements.define(
|
|
1320
|
+
customElements.define(Z, t);
|
|
1321
1321
|
}
|
|
1322
|
-
const
|
|
1322
|
+
const pi = {
|
|
1323
1323
|
name: "alert",
|
|
1324
1324
|
description: "Use `alert` to surface short, important messages.",
|
|
1325
1325
|
output: {
|
|
1326
|
-
element:
|
|
1326
|
+
element: Z,
|
|
1327
1327
|
class: "set-alert"
|
|
1328
1328
|
},
|
|
1329
1329
|
content: {
|
|
@@ -1340,7 +1340,7 @@ const je = {
|
|
|
1340
1340
|
type: { kind: "boolean" }
|
|
1341
1341
|
},
|
|
1342
1342
|
dismissibleLabel: {
|
|
1343
|
-
default:
|
|
1343
|
+
default: W,
|
|
1344
1344
|
description: "Accessible label for the dismiss control.",
|
|
1345
1345
|
ignoredWhen: "`dismissible` is false",
|
|
1346
1346
|
type: { kind: "string" }
|
|
@@ -1374,12 +1374,12 @@ const je = {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
},
|
|
1376
1376
|
events: {
|
|
1377
|
-
[
|
|
1377
|
+
[St]: {
|
|
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
|
-
[
|
|
1382
|
+
[xt]: {
|
|
1383
1383
|
bubbles: !0,
|
|
1384
1384
|
description: "Fired after the alert has been removed by an allowed dismiss action."
|
|
1385
1385
|
}
|
|
@@ -1445,7 +1445,7 @@ const je = {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
]
|
|
1447
1447
|
},
|
|
1448
|
-
value: { kind: "literal", text:
|
|
1448
|
+
value: { kind: "literal", text: W }
|
|
1449
1449
|
},
|
|
1450
1450
|
{
|
|
1451
1451
|
target: { on: "host" },
|
|
@@ -1468,35 +1468,35 @@ const je = {
|
|
|
1468
1468
|
]
|
|
1469
1469
|
}
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1471
|
+
function Gt(t) {
|
|
1472
1472
|
if (t)
|
|
1473
1473
|
return t === !0 ? !0 : t;
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Et(t) {
|
|
1476
1476
|
const {
|
|
1477
1477
|
appearance: n = "text",
|
|
1478
1478
|
current: e,
|
|
1479
1479
|
download: i,
|
|
1480
1480
|
href: r,
|
|
1481
1481
|
id: a,
|
|
1482
|
-
icon:
|
|
1483
|
-
iconPlacement:
|
|
1482
|
+
icon: o,
|
|
1483
|
+
iconPlacement: d = "start",
|
|
1484
1484
|
label: s,
|
|
1485
|
-
labelVisibility:
|
|
1486
|
-
rel:
|
|
1485
|
+
labelVisibility: p = "visible",
|
|
1486
|
+
rel: l,
|
|
1487
1487
|
size: c = "md",
|
|
1488
|
-
target:
|
|
1489
|
-
tone:
|
|
1490
|
-
underline:
|
|
1491
|
-
} = t,
|
|
1492
|
-
if (
|
|
1488
|
+
target: h,
|
|
1489
|
+
tone: b = "default",
|
|
1490
|
+
underline: S
|
|
1491
|
+
} = t, f = v(a), E = o?.trim() || void 0;
|
|
1492
|
+
if (p !== "visible" && !!!E)
|
|
1493
1493
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
1494
|
-
const
|
|
1494
|
+
const w = Gt(i), k = E ? {
|
|
1495
1495
|
kind: "element",
|
|
1496
1496
|
tag: "span",
|
|
1497
1497
|
attrs: { class: "icon-wrapper" },
|
|
1498
|
-
children: [{ kind: "raw", html:
|
|
1499
|
-
} : null,
|
|
1498
|
+
children: [{ kind: "raw", html: E }]
|
|
1499
|
+
} : null, L = {
|
|
1500
1500
|
kind: "element",
|
|
1501
1501
|
tag: "span",
|
|
1502
1502
|
attrs: { class: "label" },
|
|
@@ -1509,23 +1509,23 @@ function ut(t) {
|
|
|
1509
1509
|
"aria-current": e,
|
|
1510
1510
|
class: "set-link",
|
|
1511
1511
|
"data-appearance": n === "text" ? void 0 : n,
|
|
1512
|
-
"data-label-visibility":
|
|
1512
|
+
"data-label-visibility": p === "visible" ? void 0 : p,
|
|
1513
1513
|
"data-size": c,
|
|
1514
|
-
"data-tone":
|
|
1515
|
-
"data-underline":
|
|
1516
|
-
download:
|
|
1514
|
+
"data-tone": b === "neutral" ? "neutral" : void 0,
|
|
1515
|
+
"data-underline": S && n === "text" ? !0 : void 0,
|
|
1516
|
+
download: w,
|
|
1517
1517
|
href: r,
|
|
1518
|
-
id:
|
|
1519
|
-
rel:
|
|
1520
|
-
target:
|
|
1518
|
+
id: f,
|
|
1519
|
+
rel: w ? void 0 : l || void 0,
|
|
1520
|
+
target: w ? void 0 : h || void 0
|
|
1521
1521
|
},
|
|
1522
|
-
children:
|
|
1522
|
+
children: k ? d === "end" ? [L, k] : [k, L] : [L]
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1525
|
+
function ci(t) {
|
|
1526
|
+
return m(Et(t));
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1528
|
+
const ui = {
|
|
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 Xe = {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
]
|
|
1714
1714
|
}
|
|
1715
|
-
},
|
|
1716
|
-
function
|
|
1715
|
+
}, F = "set-banner", zt = "set-banner-before-dismiss", Ct = "set-banner-dismiss", j = "Dismiss banner";
|
|
1716
|
+
function Zt(t, n) {
|
|
1717
1717
|
const e = n.createElement("div");
|
|
1718
|
-
return e.setAttribute("data-part", "close"), e.innerHTML =
|
|
1718
|
+
return e.setAttribute("data-part", "close"), e.innerHTML = ht({
|
|
1719
1719
|
appearance: "text",
|
|
1720
1720
|
icon: "close",
|
|
1721
1721
|
label: t,
|
|
@@ -1724,64 +1724,64 @@ function It(t, n) {
|
|
|
1724
1724
|
tone: "neutral"
|
|
1725
1725
|
}), e;
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function Ft({
|
|
1728
1728
|
actionHref: t,
|
|
1729
1729
|
actionLabel: n,
|
|
1730
1730
|
dismissible: e = !0,
|
|
1731
|
-
dismissibleLabel: i =
|
|
1731
|
+
dismissibleLabel: i = j,
|
|
1732
1732
|
id: r,
|
|
1733
1733
|
message: a,
|
|
1734
|
-
tone:
|
|
1734
|
+
tone: o
|
|
1735
1735
|
}) {
|
|
1736
1736
|
if (!!t != !!n)
|
|
1737
1737
|
throw new Error("actionHref and actionLabel must be provided together.");
|
|
1738
|
-
const
|
|
1739
|
-
return t && n && (
|
|
1740
|
-
|
|
1738
|
+
const d = v(r), s = i.trim() === "" ? j : i, p = [{ kind: "text", value: a }];
|
|
1739
|
+
return t && n && (p.push({ kind: "text", value: " " }), p.push(
|
|
1740
|
+
Et({
|
|
1741
1741
|
href: t,
|
|
1742
1742
|
label: n,
|
|
1743
1743
|
underline: !0
|
|
1744
1744
|
})
|
|
1745
1745
|
)), {
|
|
1746
1746
|
kind: "element",
|
|
1747
|
-
tag:
|
|
1747
|
+
tag: F,
|
|
1748
1748
|
attrs: {
|
|
1749
1749
|
class: "set-banner",
|
|
1750
1750
|
"data-set-content-theme": "dark",
|
|
1751
1751
|
"data-set-surface": "default",
|
|
1752
1752
|
"data-dismissible": e,
|
|
1753
1753
|
"data-dismissible-label": e ? s : void 0,
|
|
1754
|
-
"data-tone":
|
|
1755
|
-
id:
|
|
1754
|
+
"data-tone": o || void 0,
|
|
1755
|
+
id: d
|
|
1756
1756
|
},
|
|
1757
1757
|
children: [
|
|
1758
1758
|
{
|
|
1759
1759
|
kind: "element",
|
|
1760
1760
|
tag: "p",
|
|
1761
1761
|
attrs: { class: "message" },
|
|
1762
|
-
children:
|
|
1762
|
+
children: p
|
|
1763
1763
|
}
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1768
|
-
return
|
|
1767
|
+
function hi(t) {
|
|
1768
|
+
return m(Ft(t));
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1771
|
-
if (customElements.get(
|
|
1770
|
+
function jt() {
|
|
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
|
-
|
|
1777
|
+
zt,
|
|
1778
1778
|
{
|
|
1779
1779
|
bubbles: !0,
|
|
1780
1780
|
cancelable: !0
|
|
1781
1781
|
}
|
|
1782
1782
|
);
|
|
1783
1783
|
this.dispatchEvent(r) && (this.dispatchEvent(
|
|
1784
|
-
new CustomEvent(
|
|
1784
|
+
new CustomEvent(Ct, {
|
|
1785
1785
|
bubbles: !0
|
|
1786
1786
|
})
|
|
1787
1787
|
), this.remove());
|
|
@@ -1794,19 +1794,19 @@ function At() {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
#e() {
|
|
1796
1796
|
this.querySelector('[data-part="close"]') || this.append(
|
|
1797
|
-
|
|
1798
|
-
this.getAttribute("data-dismissible-label") ??
|
|
1797
|
+
Zt(
|
|
1798
|
+
this.getAttribute("data-dismissible-label") ?? j,
|
|
1799
1799
|
this.ownerDocument
|
|
1800
1800
|
)
|
|
1801
1801
|
);
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
|
-
customElements.define(
|
|
1804
|
+
customElements.define(F, t);
|
|
1805
1805
|
}
|
|
1806
|
-
const
|
|
1806
|
+
const mi = {
|
|
1807
1807
|
name: "banner",
|
|
1808
1808
|
description: "Use `banner` to display a prominent site-wide message.",
|
|
1809
|
-
output: { element:
|
|
1809
|
+
output: { element: F, class: "set-banner" },
|
|
1810
1810
|
content: { kind: "text", prop: "message" },
|
|
1811
1811
|
props: {
|
|
1812
1812
|
actionHref: {
|
|
@@ -1825,7 +1825,7 @@ const Ye = {
|
|
|
1825
1825
|
type: { kind: "boolean" }
|
|
1826
1826
|
},
|
|
1827
1827
|
dismissibleLabel: {
|
|
1828
|
-
default:
|
|
1828
|
+
default: j,
|
|
1829
1829
|
description: "Accessible label for the dismiss control.",
|
|
1830
1830
|
ignoredWhen: "`dismissible` is false",
|
|
1831
1831
|
type: { kind: "string" }
|
|
@@ -1848,12 +1848,12 @@ const Ye = {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
},
|
|
1850
1850
|
events: {
|
|
1851
|
-
[
|
|
1851
|
+
[zt]: {
|
|
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."
|
|
1855
1855
|
},
|
|
1856
|
-
[
|
|
1856
|
+
[Ct]: {
|
|
1857
1857
|
bubbles: !0,
|
|
1858
1858
|
description: "Fired after the banner has been removed by an allowed dismiss action."
|
|
1859
1859
|
}
|
|
@@ -1891,14 +1891,14 @@ const Ye = {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
]
|
|
1893
1893
|
}
|
|
1894
|
-
},
|
|
1895
|
-
function
|
|
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
1896
|
return t === "dark" ? "light" : "dark";
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function Xt(t) {
|
|
1899
1899
|
return t === "dark" ? "moon" : "sunny";
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function gt(t, n) {
|
|
1902
1902
|
return {
|
|
1903
1903
|
kind: "element",
|
|
1904
1904
|
tag: "span",
|
|
@@ -1909,9 +1909,9 @@ function rt(t, n) {
|
|
|
1909
1909
|
tag: "span",
|
|
1910
1910
|
attrs: { class: "icon-wrapper" },
|
|
1911
1911
|
children: [
|
|
1912
|
-
|
|
1912
|
+
P({
|
|
1913
1913
|
ariaHidden: !0,
|
|
1914
|
-
name:
|
|
1914
|
+
name: Xt(t),
|
|
1915
1915
|
size: "fill"
|
|
1916
1916
|
})
|
|
1917
1917
|
]
|
|
@@ -1925,17 +1925,17 @@ function rt(t, n) {
|
|
|
1925
1925
|
]
|
|
1926
1926
|
};
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function Qt({
|
|
1929
1929
|
appearance: t = "text",
|
|
1930
1930
|
id: n,
|
|
1931
|
-
labelDark: e =
|
|
1932
|
-
labelLight: i =
|
|
1931
|
+
labelDark: e = st,
|
|
1932
|
+
labelLight: i = lt,
|
|
1933
1933
|
size: r = "md"
|
|
1934
1934
|
}) {
|
|
1935
|
-
const a =
|
|
1935
|
+
const a = v(n), o = e.trim() === "" ? st : e, d = i.trim() === "" ? lt : i;
|
|
1936
1936
|
return {
|
|
1937
1937
|
kind: "element",
|
|
1938
|
-
tag:
|
|
1938
|
+
tag: K,
|
|
1939
1939
|
attrs: {
|
|
1940
1940
|
class: "set-lightswitch",
|
|
1941
1941
|
id: a
|
|
@@ -1951,25 +1951,25 @@ function Ht({
|
|
|
1951
1951
|
type: "button"
|
|
1952
1952
|
},
|
|
1953
1953
|
children: [
|
|
1954
|
-
|
|
1955
|
-
|
|
1954
|
+
gt("dark", o),
|
|
1955
|
+
gt("light", d)
|
|
1956
1956
|
]
|
|
1957
1957
|
}
|
|
1958
1958
|
]
|
|
1959
1959
|
};
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
return
|
|
1961
|
+
function ki(t) {
|
|
1962
|
+
return m(Qt(t));
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1965
|
-
if (customElements.get(
|
|
1964
|
+
function Yt() {
|
|
1965
|
+
if (customElements.get(K)) return;
|
|
1966
1966
|
class t extends HTMLElement {
|
|
1967
1967
|
#t = (e) => {
|
|
1968
1968
|
const i = e.target;
|
|
1969
1969
|
if (!(i instanceof Element) || !i.closest("button")) return;
|
|
1970
|
-
const r =
|
|
1970
|
+
const r = Kt(this.#u());
|
|
1971
1971
|
r === this.#r() ? this.#d() : this.#n(r), this.#a(), this.dispatchEvent(
|
|
1972
|
-
new CustomEvent(
|
|
1972
|
+
new CustomEvent(Lt, {
|
|
1973
1973
|
bubbles: !0,
|
|
1974
1974
|
detail: { stored: !!this.#i(), theme: r }
|
|
1975
1975
|
})
|
|
@@ -1990,7 +1990,7 @@ function Vt() {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
#i() {
|
|
1992
1992
|
try {
|
|
1993
|
-
const e = this.#e()?.getItem(
|
|
1993
|
+
const e = this.#e()?.getItem(dt);
|
|
1994
1994
|
return e === "light" || e === "dark" ? e : void 0;
|
|
1995
1995
|
} catch {
|
|
1996
1996
|
return;
|
|
@@ -1998,13 +1998,13 @@ function Vt() {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
#n(e) {
|
|
2000
2000
|
try {
|
|
2001
|
-
this.#e()?.setItem(
|
|
2001
|
+
this.#e()?.setItem(dt, e);
|
|
2002
2002
|
} catch {
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
2005
|
#d() {
|
|
2006
2006
|
try {
|
|
2007
|
-
this.#e()?.removeItem(
|
|
2007
|
+
this.#e()?.removeItem(dt);
|
|
2008
2008
|
} catch {
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
@@ -2029,12 +2029,12 @@ function Vt() {
|
|
|
2029
2029
|
i ? e.setAttribute("data-set-theme", i) : e.removeAttribute("data-set-theme");
|
|
2030
2030
|
}
|
|
2031
2031
|
}
|
|
2032
|
-
customElements.define(
|
|
2032
|
+
customElements.define(K, t);
|
|
2033
2033
|
}
|
|
2034
|
-
const
|
|
2034
|
+
const gi = {
|
|
2035
2035
|
name: "lightswitch",
|
|
2036
2036
|
description: "Use `lightswitch` to let users toggle between light and dark themes.",
|
|
2037
|
-
output: { element:
|
|
2037
|
+
output: { element: K, class: "set-lightswitch" },
|
|
2038
2038
|
content: { kind: "none" },
|
|
2039
2039
|
props: {
|
|
2040
2040
|
appearance: {
|
|
@@ -2047,12 +2047,12 @@ const ti = {
|
|
|
2047
2047
|
type: { kind: "string" }
|
|
2048
2048
|
},
|
|
2049
2049
|
labelDark: {
|
|
2050
|
-
default:
|
|
2050
|
+
default: st,
|
|
2051
2051
|
description: "Accessible label of the switch-to-dark action.",
|
|
2052
2052
|
type: { kind: "string" }
|
|
2053
2053
|
},
|
|
2054
2054
|
labelLight: {
|
|
2055
|
-
default:
|
|
2055
|
+
default: lt,
|
|
2056
2056
|
description: "Accessible label of the switch-to-light action.",
|
|
2057
2057
|
type: { kind: "string" }
|
|
2058
2058
|
},
|
|
@@ -2063,7 +2063,7 @@ const ti = {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
},
|
|
2065
2065
|
events: {
|
|
2066
|
-
[
|
|
2066
|
+
[Lt]: {
|
|
2067
2067
|
bubbles: !0,
|
|
2068
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."
|
|
2069
2069
|
}
|
|
@@ -2102,47 +2102,47 @@ const ti = {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
]
|
|
2104
2104
|
}
|
|
2105
|
-
},
|
|
2106
|
-
function
|
|
2105
|
+
}, X = "set-menu", Mt = "set-menu-choose";
|
|
2106
|
+
function Jt({
|
|
2107
2107
|
align: t = "start",
|
|
2108
2108
|
id: n,
|
|
2109
2109
|
items: e,
|
|
2110
2110
|
size: i = "md",
|
|
2111
2111
|
triggerIcon: r,
|
|
2112
2112
|
triggerIconMirrored: a,
|
|
2113
|
-
triggerIconPlacement:
|
|
2114
|
-
triggerLabel:
|
|
2113
|
+
triggerIconPlacement: o,
|
|
2114
|
+
triggerLabel: d,
|
|
2115
2115
|
triggerLabelVisibility: s
|
|
2116
2116
|
}) {
|
|
2117
|
-
const
|
|
2118
|
-
if (!
|
|
2117
|
+
const p = n.trim();
|
|
2118
|
+
if (!p)
|
|
2119
2119
|
throw new Error("id must be a non-empty string.");
|
|
2120
|
-
if (!
|
|
2120
|
+
if (!V(p))
|
|
2121
2121
|
throw new Error(
|
|
2122
2122
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
2123
2123
|
);
|
|
2124
2124
|
if (!Array.isArray(e))
|
|
2125
2125
|
throw new Error("items must be an array.");
|
|
2126
|
-
const
|
|
2126
|
+
const l = `${p}-button`, c = `${p}-popup`, h = e.map((b) => ({
|
|
2127
2127
|
kind: "element",
|
|
2128
2128
|
tag: "button",
|
|
2129
2129
|
attrs: {
|
|
2130
|
-
"aria-disabled":
|
|
2131
|
-
"data-item-id":
|
|
2130
|
+
"aria-disabled": b.disabled ? "true" : void 0,
|
|
2131
|
+
"data-item-id": b.id || void 0,
|
|
2132
2132
|
role: "menuitem",
|
|
2133
2133
|
tabindex: "-1",
|
|
2134
2134
|
type: "button"
|
|
2135
2135
|
},
|
|
2136
|
-
children: [{ kind: "text", value:
|
|
2136
|
+
children: [{ kind: "text", value: b.label }]
|
|
2137
2137
|
}));
|
|
2138
2138
|
return {
|
|
2139
2139
|
kind: "element",
|
|
2140
|
-
tag:
|
|
2140
|
+
tag: X,
|
|
2141
2141
|
attrs: {
|
|
2142
2142
|
class: "set-menu",
|
|
2143
2143
|
"data-align": t === "start" ? void 0 : t,
|
|
2144
2144
|
"data-size": i,
|
|
2145
|
-
id:
|
|
2145
|
+
id: p
|
|
2146
2146
|
},
|
|
2147
2147
|
children: [
|
|
2148
2148
|
{
|
|
@@ -2150,16 +2150,16 @@ function Nt({
|
|
|
2150
2150
|
tag: "div",
|
|
2151
2151
|
attrs: { "data-part": "trigger" },
|
|
2152
2152
|
children: [
|
|
2153
|
-
|
|
2153
|
+
ut({
|
|
2154
2154
|
appearance: "outline",
|
|
2155
2155
|
controls: c,
|
|
2156
2156
|
disclosure: !0,
|
|
2157
2157
|
haspopup: "menu",
|
|
2158
2158
|
icon: r,
|
|
2159
2159
|
iconMirrored: a,
|
|
2160
|
-
iconPlacement:
|
|
2161
|
-
id:
|
|
2162
|
-
label:
|
|
2160
|
+
iconPlacement: o,
|
|
2161
|
+
id: l,
|
|
2162
|
+
label: d,
|
|
2163
2163
|
labelVisibility: s,
|
|
2164
2164
|
size: i,
|
|
2165
2165
|
tone: "neutral",
|
|
@@ -2171,22 +2171,22 @@ function Nt({
|
|
|
2171
2171
|
kind: "element",
|
|
2172
2172
|
tag: "div",
|
|
2173
2173
|
attrs: {
|
|
2174
|
-
"aria-labelledby":
|
|
2174
|
+
"aria-labelledby": l,
|
|
2175
2175
|
class: "popup",
|
|
2176
2176
|
hidden: !0,
|
|
2177
2177
|
id: c,
|
|
2178
2178
|
role: "menu"
|
|
2179
2179
|
},
|
|
2180
|
-
children:
|
|
2180
|
+
children: h
|
|
2181
2181
|
}
|
|
2182
2182
|
]
|
|
2183
2183
|
};
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2185
|
+
function bi(t) {
|
|
2186
|
+
return m(Jt(t));
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2189
|
-
if (customElements.get(
|
|
2188
|
+
function te() {
|
|
2189
|
+
if (customElements.get(X)) return;
|
|
2190
2190
|
class t extends HTMLElement {
|
|
2191
2191
|
#t;
|
|
2192
2192
|
#e;
|
|
@@ -2236,7 +2236,7 @@ function Ot() {
|
|
|
2236
2236
|
this.querySelectorAll('[role="menuitem"]')
|
|
2237
2237
|
).indexOf(e);
|
|
2238
2238
|
this.dispatchEvent(
|
|
2239
|
-
new CustomEvent(
|
|
2239
|
+
new CustomEvent(Mt, {
|
|
2240
2240
|
bubbles: !0,
|
|
2241
2241
|
detail: {
|
|
2242
2242
|
id: e.getAttribute("data-item-id") || void 0,
|
|
@@ -2273,9 +2273,9 @@ function Ot() {
|
|
|
2273
2273
|
e.preventDefault(), this.#o(!0);
|
|
2274
2274
|
return;
|
|
2275
2275
|
}
|
|
2276
|
-
const a = this.ownerDocument.activeElement,
|
|
2276
|
+
const a = this.ownerDocument.activeElement, o = this.#c(), d = o.indexOf(a);
|
|
2277
2277
|
if (a === i) {
|
|
2278
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#l(0)), e.key === "ArrowDown" && (e.preventDefault(), this.#l(0)), e.key === "ArrowUp" && (e.preventDefault(), this.#l(
|
|
2278
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#l(0)), e.key === "ArrowDown" && (e.preventDefault(), this.#l(0)), e.key === "ArrowUp" && (e.preventDefault(), this.#l(o.length - 1));
|
|
2279
2279
|
return;
|
|
2280
2280
|
}
|
|
2281
2281
|
if (r.contains(a)) {
|
|
@@ -2283,7 +2283,7 @@ function Ot() {
|
|
|
2283
2283
|
e.preventDefault(), this.#s(a) || (this.#h(a), this.#o(!0));
|
|
2284
2284
|
return;
|
|
2285
2285
|
}
|
|
2286
|
-
e.key === "ArrowDown" && (e.preventDefault(), this.#a(
|
|
2286
|
+
e.key === "ArrowDown" && (e.preventDefault(), this.#a(d + 1)), e.key === "ArrowUp" && (e.preventDefault(), this.#a(d - 1)), e.key === "Home" && (e.preventDefault(), this.#a(0)), e.key === "End" && (e.preventDefault(), this.#a(o.length - 1)), e.key === "Tab" && this.#o(!1);
|
|
2287
2287
|
}
|
|
2288
2288
|
}, this.#i = (e) => {
|
|
2289
2289
|
const i = e.relatedTarget;
|
|
@@ -2298,13 +2298,13 @@ function Ot() {
|
|
|
2298
2298
|
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
2299
|
}
|
|
2300
2300
|
}
|
|
2301
|
-
customElements.define(
|
|
2301
|
+
customElements.define(X, t);
|
|
2302
2302
|
}
|
|
2303
|
-
const
|
|
2303
|
+
const vi = {
|
|
2304
2304
|
name: "menu",
|
|
2305
2305
|
description: "Use `menu` to show a list of actions from a trigger button.",
|
|
2306
2306
|
output: {
|
|
2307
|
-
element:
|
|
2307
|
+
element: X,
|
|
2308
2308
|
class: "set-menu"
|
|
2309
2309
|
},
|
|
2310
2310
|
content: {
|
|
@@ -2378,7 +2378,7 @@ const ii = {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
},
|
|
2380
2380
|
events: {
|
|
2381
|
-
[
|
|
2381
|
+
[Mt]: {
|
|
2382
2382
|
bubbles: !0,
|
|
2383
2383
|
description: "Fired when a menu item is activated.",
|
|
2384
2384
|
detail: "{ id?: string; index: number; label: string }"
|
|
@@ -2438,15 +2438,15 @@ const ii = {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
]
|
|
2440
2440
|
}
|
|
2441
|
-
},
|
|
2442
|
-
function
|
|
2441
|
+
}, pt = "Menu";
|
|
2442
|
+
function ee({
|
|
2443
2443
|
controlsId: t,
|
|
2444
2444
|
expanded: n,
|
|
2445
2445
|
id: e,
|
|
2446
|
-
label: i =
|
|
2446
|
+
label: i = pt,
|
|
2447
2447
|
size: r = "md"
|
|
2448
2448
|
} = {}) {
|
|
2449
|
-
const a =
|
|
2449
|
+
const a = v(e), o = i.trim() === "" ? pt : i;
|
|
2450
2450
|
return {
|
|
2451
2451
|
kind: "element",
|
|
2452
2452
|
tag: "button",
|
|
@@ -2474,17 +2474,17 @@ function Pt({
|
|
|
2474
2474
|
kind: "element",
|
|
2475
2475
|
tag: "span",
|
|
2476
2476
|
attrs: { class: "visually-hidden" },
|
|
2477
|
-
children: [{ kind: "text", value:
|
|
2477
|
+
children: [{ kind: "text", value: o }]
|
|
2478
2478
|
}
|
|
2479
2479
|
]
|
|
2480
2480
|
}
|
|
2481
2481
|
]
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2485
|
-
return
|
|
2484
|
+
function ie(t = {}) {
|
|
2485
|
+
return m(ee(t));
|
|
2486
2486
|
}
|
|
2487
|
-
const
|
|
2487
|
+
const fi = {
|
|
2488
2488
|
name: "expander",
|
|
2489
2489
|
description: "Use `expander` as a toggle for disclosure regions such as menus.",
|
|
2490
2490
|
output: { element: "button", class: "set-expander" },
|
|
@@ -2504,7 +2504,7 @@ const ni = {
|
|
|
2504
2504
|
type: { kind: "string" }
|
|
2505
2505
|
},
|
|
2506
2506
|
label: {
|
|
2507
|
-
default:
|
|
2507
|
+
default: pt,
|
|
2508
2508
|
description: "Accessible label.",
|
|
2509
2509
|
type: { kind: "text" }
|
|
2510
2510
|
},
|
|
@@ -2549,27 +2549,27 @@ const ni = {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
]
|
|
2551
2551
|
}
|
|
2552
|
-
},
|
|
2553
|
-
function
|
|
2552
|
+
}, Q = "set-nav", bt = "data-set-scroll-locked";
|
|
2553
|
+
function ne({
|
|
2554
2554
|
collapsible: t,
|
|
2555
2555
|
contentId: n,
|
|
2556
2556
|
expanderLabel: e,
|
|
2557
2557
|
expanderPosition: i = "start",
|
|
2558
2558
|
id: r,
|
|
2559
2559
|
items: a,
|
|
2560
|
-
label:
|
|
2561
|
-
size:
|
|
2560
|
+
label: o,
|
|
2561
|
+
size: d = "md"
|
|
2562
2562
|
}) {
|
|
2563
|
-
const s =
|
|
2564
|
-
if (t && !
|
|
2563
|
+
const s = v(r), p = e?.trim() || void 0, l = n?.trim();
|
|
2564
|
+
if (t && !l)
|
|
2565
2565
|
throw new Error(
|
|
2566
2566
|
"contentId must be a non-empty string when collapsible is set."
|
|
2567
2567
|
);
|
|
2568
|
-
if (
|
|
2568
|
+
if (l && !V(l))
|
|
2569
2569
|
throw new Error(
|
|
2570
2570
|
"contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
2571
2571
|
);
|
|
2572
|
-
const c = a.map((
|
|
2572
|
+
const c = a.map((h) => ({
|
|
2573
2573
|
kind: "element",
|
|
2574
2574
|
tag: "li",
|
|
2575
2575
|
attrs: {},
|
|
@@ -2578,23 +2578,23 @@ function Rt({
|
|
|
2578
2578
|
kind: "element",
|
|
2579
2579
|
tag: "a",
|
|
2580
2580
|
attrs: {
|
|
2581
|
-
"aria-current":
|
|
2581
|
+
"aria-current": h.current ? "page" : void 0,
|
|
2582
2582
|
class: "item",
|
|
2583
|
-
href:
|
|
2583
|
+
href: h.href
|
|
2584
2584
|
},
|
|
2585
|
-
children: [{ kind: "text", value:
|
|
2585
|
+
children: [{ kind: "text", value: h.label }]
|
|
2586
2586
|
}
|
|
2587
2587
|
]
|
|
2588
2588
|
}));
|
|
2589
2589
|
return {
|
|
2590
2590
|
kind: "element",
|
|
2591
|
-
tag:
|
|
2591
|
+
tag: Q,
|
|
2592
2592
|
attrs: {
|
|
2593
2593
|
class: "set-nav",
|
|
2594
2594
|
"data-collapsible": t,
|
|
2595
|
-
"data-expander-label": t &&
|
|
2595
|
+
"data-expander-label": t && p ? p : void 0,
|
|
2596
2596
|
"data-expander-position": t ? i : void 0,
|
|
2597
|
-
"data-size":
|
|
2597
|
+
"data-size": d,
|
|
2598
2598
|
id: s
|
|
2599
2599
|
},
|
|
2600
2600
|
children: [
|
|
@@ -2602,7 +2602,7 @@ function Rt({
|
|
|
2602
2602
|
kind: "element",
|
|
2603
2603
|
tag: "nav",
|
|
2604
2604
|
attrs: {
|
|
2605
|
-
"aria-label":
|
|
2605
|
+
"aria-label": o || void 0,
|
|
2606
2606
|
class: "nav"
|
|
2607
2607
|
},
|
|
2608
2608
|
children: [
|
|
@@ -2611,7 +2611,7 @@ function Rt({
|
|
|
2611
2611
|
tag: "div",
|
|
2612
2612
|
attrs: {
|
|
2613
2613
|
class: "content",
|
|
2614
|
-
id:
|
|
2614
|
+
id: l
|
|
2615
2615
|
},
|
|
2616
2616
|
children: [
|
|
2617
2617
|
{
|
|
@@ -2627,11 +2627,11 @@ function Rt({
|
|
|
2627
2627
|
]
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2631
|
-
return
|
|
2630
|
+
function yi(t) {
|
|
2631
|
+
return m(ne(t));
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2634
|
-
if (customElements.get(
|
|
2633
|
+
function re() {
|
|
2634
|
+
if (customElements.get(Q)) return;
|
|
2635
2635
|
class t extends HTMLElement {
|
|
2636
2636
|
#t;
|
|
2637
2637
|
#e;
|
|
@@ -2657,7 +2657,7 @@ function Wt() {
|
|
|
2657
2657
|
const i = e.querySelector(".content");
|
|
2658
2658
|
i && e.insertAdjacentHTML(
|
|
2659
2659
|
"afterbegin",
|
|
2660
|
-
`<div data-part="expander">${
|
|
2660
|
+
`<div data-part="expander">${ie({
|
|
2661
2661
|
controlsId: i.id || void 0,
|
|
2662
2662
|
label: this.getAttribute("data-expander-label") || void 0,
|
|
2663
2663
|
size: this.getAttribute("data-size") === "sm" ? "md" : "lg"
|
|
@@ -2690,10 +2690,10 @@ function Wt() {
|
|
|
2690
2690
|
const i = this.ownerDocument.documentElement;
|
|
2691
2691
|
if (i) {
|
|
2692
2692
|
if (e) {
|
|
2693
|
-
i.setAttribute(
|
|
2693
|
+
i.setAttribute(bt, "");
|
|
2694
2694
|
return;
|
|
2695
2695
|
}
|
|
2696
|
-
i.removeAttribute(
|
|
2696
|
+
i.removeAttribute(bt);
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
#o() {
|
|
@@ -2707,12 +2707,12 @@ function Wt() {
|
|
|
2707
2707
|
), this.#i = void 0, this.#n = void 0, this.#e = void 0;
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
|
-
customElements.define(
|
|
2710
|
+
customElements.define(Q, t);
|
|
2711
2711
|
}
|
|
2712
|
-
const
|
|
2712
|
+
const wi = {
|
|
2713
2713
|
name: "nav",
|
|
2714
2714
|
description: "Use `nav` to render a primary navigation list.",
|
|
2715
|
-
output: { element:
|
|
2715
|
+
output: { element: Q, class: "set-nav" },
|
|
2716
2716
|
content: { kind: "structured", prop: "items" },
|
|
2717
2717
|
props: {
|
|
2718
2718
|
items: {
|
|
@@ -2824,28 +2824,28 @@ const ai = {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
]
|
|
2826
2826
|
}
|
|
2827
|
-
},
|
|
2828
|
-
function
|
|
2827
|
+
}, Y = "set-range";
|
|
2828
|
+
function ae({
|
|
2829
2829
|
description: t,
|
|
2830
2830
|
disabled: n,
|
|
2831
2831
|
id: e,
|
|
2832
2832
|
inlineSize: i = "full",
|
|
2833
2833
|
label: r,
|
|
2834
2834
|
max: a,
|
|
2835
|
-
min:
|
|
2836
|
-
name:
|
|
2835
|
+
min: o,
|
|
2836
|
+
name: d,
|
|
2837
2837
|
size: s = "md",
|
|
2838
|
-
step:
|
|
2839
|
-
value:
|
|
2838
|
+
step: p,
|
|
2839
|
+
value: l
|
|
2840
2840
|
}) {
|
|
2841
|
-
const c = e.trim(),
|
|
2841
|
+
const c = e.trim(), h = t?.trim(), b = d?.trim();
|
|
2842
2842
|
if (!c)
|
|
2843
2843
|
throw new Error("id must be a non-empty string.");
|
|
2844
|
-
if (!
|
|
2844
|
+
if (!V(c))
|
|
2845
2845
|
throw new Error(
|
|
2846
2846
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
2847
2847
|
);
|
|
2848
|
-
const
|
|
2848
|
+
const S = h ? `${c}-description` : void 0, f = [
|
|
2849
2849
|
{
|
|
2850
2850
|
kind: "element",
|
|
2851
2851
|
tag: "div",
|
|
@@ -2861,7 +2861,7 @@ function Ut({
|
|
|
2861
2861
|
kind: "element",
|
|
2862
2862
|
tag: "output",
|
|
2863
2863
|
attrs: { class: "output", for: c },
|
|
2864
|
-
children:
|
|
2864
|
+
children: l != null ? [{ kind: "text", value: String(l) }] : []
|
|
2865
2865
|
}
|
|
2866
2866
|
]
|
|
2867
2867
|
},
|
|
@@ -2869,41 +2869,41 @@ function Ut({
|
|
|
2869
2869
|
kind: "element",
|
|
2870
2870
|
tag: "input",
|
|
2871
2871
|
attrs: {
|
|
2872
|
-
"aria-describedby":
|
|
2872
|
+
"aria-describedby": S,
|
|
2873
2873
|
class: "range",
|
|
2874
2874
|
disabled: !!n,
|
|
2875
2875
|
id: c,
|
|
2876
2876
|
max: a != null ? String(a) : void 0,
|
|
2877
|
-
min:
|
|
2878
|
-
name:
|
|
2879
|
-
step:
|
|
2877
|
+
min: o != null ? String(o) : void 0,
|
|
2878
|
+
name: b || void 0,
|
|
2879
|
+
step: p != null ? String(p) : void 0,
|
|
2880
2880
|
type: "range",
|
|
2881
|
-
value:
|
|
2881
|
+
value: l != null ? String(l) : void 0
|
|
2882
2882
|
},
|
|
2883
2883
|
children: []
|
|
2884
2884
|
}
|
|
2885
2885
|
];
|
|
2886
|
-
return
|
|
2886
|
+
return h && f.push({
|
|
2887
2887
|
kind: "element",
|
|
2888
2888
|
tag: "p",
|
|
2889
|
-
attrs: { class: "description", id:
|
|
2890
|
-
children: [{ kind: "text", value:
|
|
2889
|
+
attrs: { class: "description", id: S },
|
|
2890
|
+
children: [{ kind: "text", value: h }]
|
|
2891
2891
|
}), {
|
|
2892
2892
|
kind: "element",
|
|
2893
|
-
tag:
|
|
2893
|
+
tag: Y,
|
|
2894
2894
|
attrs: {
|
|
2895
2895
|
class: "set-range",
|
|
2896
2896
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
2897
2897
|
"data-size": s
|
|
2898
2898
|
},
|
|
2899
|
-
children:
|
|
2899
|
+
children: f
|
|
2900
2900
|
};
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2903
|
-
return
|
|
2902
|
+
function Si(t) {
|
|
2903
|
+
return m(ae(t));
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2906
|
-
if (customElements.get(
|
|
2905
|
+
function oe() {
|
|
2906
|
+
if (customElements.get(Y)) return;
|
|
2907
2907
|
class t extends HTMLElement {
|
|
2908
2908
|
#t;
|
|
2909
2909
|
#e = (e) => {
|
|
@@ -2941,15 +2941,15 @@ function $t() {
|
|
|
2941
2941
|
"value"
|
|
2942
2942
|
);
|
|
2943
2943
|
if (!i?.get || !i.set) return;
|
|
2944
|
-
const r = i.get, a = i.set,
|
|
2944
|
+
const r = i.get, a = i.set, o = () => this.#i();
|
|
2945
2945
|
Object.defineProperty(e, "value", {
|
|
2946
2946
|
configurable: !0,
|
|
2947
2947
|
enumerable: i.enumerable,
|
|
2948
2948
|
get() {
|
|
2949
2949
|
return r.call(this);
|
|
2950
2950
|
},
|
|
2951
|
-
set(
|
|
2952
|
-
a.call(this,
|
|
2951
|
+
set(d) {
|
|
2952
|
+
a.call(this, d), o();
|
|
2953
2953
|
}
|
|
2954
2954
|
}), this.#t = e;
|
|
2955
2955
|
}
|
|
@@ -2957,12 +2957,12 @@ function $t() {
|
|
|
2957
2957
|
this.#t && (delete this.#t.value, this.#t = void 0);
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
|
-
customElements.define(
|
|
2960
|
+
customElements.define(Y, t);
|
|
2961
2961
|
}
|
|
2962
|
-
const
|
|
2962
|
+
const xi = {
|
|
2963
2963
|
name: "range",
|
|
2964
2964
|
description: "Use `range` to let users pick a numeric value along a scale.",
|
|
2965
|
-
output: { element:
|
|
2965
|
+
output: { element: Y, class: "set-range" },
|
|
2966
2966
|
content: { kind: "text", prop: "label" },
|
|
2967
2967
|
props: {
|
|
2968
2968
|
description: {
|
|
@@ -3091,9 +3091,9 @@ const di = {
|
|
|
3091
3091
|
}
|
|
3092
3092
|
]
|
|
3093
3093
|
}
|
|
3094
|
-
},
|
|
3095
|
-
function
|
|
3096
|
-
return `<div data-part="close">${
|
|
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({
|
|
3097
3097
|
appearance: "text",
|
|
3098
3098
|
icon: "panel-left",
|
|
3099
3099
|
iconMirrored: "rtl",
|
|
@@ -3104,25 +3104,25 @@ function Zt(t, n) {
|
|
|
3104
3104
|
type: "button"
|
|
3105
3105
|
})}</div>`;
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3107
|
+
function le({
|
|
3108
3108
|
aboveNotebook: t = "persistent",
|
|
3109
3109
|
buttonSize: n = "md",
|
|
3110
3110
|
children: e,
|
|
3111
|
-
collapseLabel: i =
|
|
3111
|
+
collapseLabel: i = B,
|
|
3112
3112
|
footer: r,
|
|
3113
3113
|
header: a,
|
|
3114
|
-
id:
|
|
3115
|
-
surface:
|
|
3116
|
-
triggerLabel: s =
|
|
3114
|
+
id: o,
|
|
3115
|
+
surface: d,
|
|
3116
|
+
triggerLabel: s = ct
|
|
3117
3117
|
}) {
|
|
3118
|
-
const
|
|
3119
|
-
if (!
|
|
3118
|
+
const p = o.trim(), l = i.trim() || B, c = s.trim() || ct;
|
|
3119
|
+
if (!p)
|
|
3120
3120
|
throw new Error("id must be a non-empty string.");
|
|
3121
|
-
if (!
|
|
3121
|
+
if (!V(p))
|
|
3122
3122
|
throw new Error(
|
|
3123
3123
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
3124
3124
|
);
|
|
3125
|
-
const
|
|
3125
|
+
const h = [
|
|
3126
3126
|
{
|
|
3127
3127
|
kind: "element",
|
|
3128
3128
|
tag: "div",
|
|
@@ -3136,22 +3136,22 @@ function Ft({
|
|
|
3136
3136
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
3137
3137
|
}
|
|
3138
3138
|
];
|
|
3139
|
-
r &&
|
|
3139
|
+
r && h.push({
|
|
3140
3140
|
kind: "element",
|
|
3141
3141
|
tag: "div",
|
|
3142
3142
|
attrs: { class: "footer" },
|
|
3143
3143
|
children: [{ kind: "raw", html: r }]
|
|
3144
3144
|
});
|
|
3145
|
-
const
|
|
3145
|
+
const b = `${p}-panel`;
|
|
3146
3146
|
return {
|
|
3147
3147
|
kind: "element",
|
|
3148
|
-
tag:
|
|
3148
|
+
tag: J,
|
|
3149
3149
|
attrs: {
|
|
3150
3150
|
class: "set-sidebar",
|
|
3151
3151
|
"data-above-notebook": t,
|
|
3152
|
-
"data-collapse-label":
|
|
3152
|
+
"data-collapse-label": l !== B ? l : void 0,
|
|
3153
3153
|
"data-button-size": n,
|
|
3154
|
-
id:
|
|
3154
|
+
id: p
|
|
3155
3155
|
},
|
|
3156
3156
|
children: [
|
|
3157
3157
|
{
|
|
@@ -3159,9 +3159,9 @@ function Ft({
|
|
|
3159
3159
|
tag: "div",
|
|
3160
3160
|
attrs: { "data-part": "trigger" },
|
|
3161
3161
|
children: [
|
|
3162
|
-
|
|
3162
|
+
ut({
|
|
3163
3163
|
appearance: "text",
|
|
3164
|
-
controls:
|
|
3164
|
+
controls: b,
|
|
3165
3165
|
disclosure: !0,
|
|
3166
3166
|
icon: "panel-left",
|
|
3167
3167
|
iconMirrored: "rtl",
|
|
@@ -3178,11 +3178,11 @@ function Ft({
|
|
|
3178
3178
|
tag: "div",
|
|
3179
3179
|
attrs: {
|
|
3180
3180
|
class: "sidebar",
|
|
3181
|
-
"data-set-surface":
|
|
3182
|
-
id:
|
|
3181
|
+
"data-set-surface": d,
|
|
3182
|
+
id: b,
|
|
3183
3183
|
tabindex: "-1"
|
|
3184
3184
|
},
|
|
3185
|
-
children:
|
|
3185
|
+
children: h
|
|
3186
3186
|
},
|
|
3187
3187
|
{
|
|
3188
3188
|
kind: "element",
|
|
@@ -3193,11 +3193,11 @@ function Ft({
|
|
|
3193
3193
|
]
|
|
3194
3194
|
};
|
|
3195
3195
|
}
|
|
3196
|
-
function
|
|
3197
|
-
return
|
|
3196
|
+
function Ei(t) {
|
|
3197
|
+
return m(le(t));
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3200
|
-
if (customElements.get(
|
|
3199
|
+
function pe() {
|
|
3200
|
+
if (customElements.get(J)) return;
|
|
3201
3201
|
class t extends HTMLElement {
|
|
3202
3202
|
#t;
|
|
3203
3203
|
#e;
|
|
@@ -3241,10 +3241,10 @@ function jt() {
|
|
|
3241
3241
|
#l() {
|
|
3242
3242
|
const e = this.#d();
|
|
3243
3243
|
if (!e || e.querySelector('[data-part="close"]')) return;
|
|
3244
|
-
const i = e.querySelector(".header"), r = this.getAttribute("data-collapse-label") ||
|
|
3244
|
+
const i = e.querySelector(".header"), r = this.getAttribute("data-collapse-label") || B, a = this.getAttribute("data-button-size") ?? "md";
|
|
3245
3245
|
i?.insertAdjacentHTML(
|
|
3246
3246
|
"beforeend",
|
|
3247
|
-
|
|
3247
|
+
se(r, a)
|
|
3248
3248
|
);
|
|
3249
3249
|
}
|
|
3250
3250
|
#o() {
|
|
@@ -3319,7 +3319,7 @@ function jt() {
|
|
|
3319
3319
|
}
|
|
3320
3320
|
#f() {
|
|
3321
3321
|
const e = this.ownerDocument.defaultView;
|
|
3322
|
-
e && (typeof e.matchMedia == "function" && (this.#t = e.matchMedia(
|
|
3322
|
+
e && (typeof e.matchMedia == "function" && (this.#t = e.matchMedia(de), this.#n = () => {
|
|
3323
3323
|
this.#g();
|
|
3324
3324
|
}, this.#t.addEventListener("change", this.#n), this.#g()), this.#e = (i) => {
|
|
3325
3325
|
const r = i.target;
|
|
@@ -3346,13 +3346,13 @@ function jt() {
|
|
|
3346
3346
|
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
3347
|
}
|
|
3348
3348
|
}
|
|
3349
|
-
customElements.define(
|
|
3349
|
+
customElements.define(J, t);
|
|
3350
3350
|
}
|
|
3351
|
-
const
|
|
3351
|
+
const zi = {
|
|
3352
3352
|
name: "sidebar",
|
|
3353
3353
|
description: "Use `sidebar` for a side panel alongside main content.",
|
|
3354
3354
|
output: {
|
|
3355
|
-
element:
|
|
3355
|
+
element: J,
|
|
3356
3356
|
class: "set-sidebar"
|
|
3357
3357
|
},
|
|
3358
3358
|
content: {
|
|
@@ -3382,7 +3382,7 @@ const li = {
|
|
|
3382
3382
|
type: { kind: "html" }
|
|
3383
3383
|
},
|
|
3384
3384
|
collapseLabel: {
|
|
3385
|
-
default:
|
|
3385
|
+
default: B,
|
|
3386
3386
|
description: "Accessible label for the collapse button.",
|
|
3387
3387
|
type: { kind: "string" }
|
|
3388
3388
|
},
|
|
@@ -3407,7 +3407,7 @@ const li = {
|
|
|
3407
3407
|
}
|
|
3408
3408
|
},
|
|
3409
3409
|
triggerLabel: {
|
|
3410
|
-
default:
|
|
3410
|
+
default: ct,
|
|
3411
3411
|
description: "Accessible label for the open button.",
|
|
3412
3412
|
type: { kind: "string" }
|
|
3413
3413
|
}
|
|
@@ -3439,7 +3439,7 @@ const li = {
|
|
|
3439
3439
|
of: {
|
|
3440
3440
|
kind: "when-equals",
|
|
3441
3441
|
prop: "collapseLabel",
|
|
3442
|
-
to:
|
|
3442
|
+
to: B
|
|
3443
3443
|
}
|
|
3444
3444
|
}
|
|
3445
3445
|
]
|
|
@@ -3472,25 +3472,25 @@ const li = {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
]
|
|
3474
3474
|
}
|
|
3475
|
-
},
|
|
3476
|
-
function
|
|
3475
|
+
}, tt = "set-video";
|
|
3476
|
+
function ce({
|
|
3477
3477
|
autoPlay: t,
|
|
3478
3478
|
controls: n,
|
|
3479
3479
|
fit: e = "intrinsic",
|
|
3480
3480
|
height: i,
|
|
3481
3481
|
id: r,
|
|
3482
3482
|
loop: a,
|
|
3483
|
-
muted:
|
|
3484
|
-
playsInline:
|
|
3483
|
+
muted: o,
|
|
3484
|
+
playsInline: d,
|
|
3485
3485
|
poster: s,
|
|
3486
|
-
preload:
|
|
3487
|
-
src:
|
|
3486
|
+
preload: p,
|
|
3487
|
+
src: l,
|
|
3488
3488
|
width: c
|
|
3489
3489
|
}) {
|
|
3490
|
-
const
|
|
3491
|
-
if (!
|
|
3490
|
+
const h = v(r), b = l.trim(), S = s?.trim();
|
|
3491
|
+
if (!b)
|
|
3492
3492
|
throw new Error("src must be a non-empty string.");
|
|
3493
|
-
const
|
|
3493
|
+
const f = {
|
|
3494
3494
|
kind: "element",
|
|
3495
3495
|
tag: "video",
|
|
3496
3496
|
attrs: {
|
|
@@ -3499,32 +3499,32 @@ function Kt({
|
|
|
3499
3499
|
controls: !!n,
|
|
3500
3500
|
height: i ? String(i) : void 0,
|
|
3501
3501
|
loop: !!a,
|
|
3502
|
-
muted: !!
|
|
3503
|
-
playsinline: !!
|
|
3504
|
-
poster:
|
|
3505
|
-
preload:
|
|
3506
|
-
src:
|
|
3502
|
+
muted: !!o,
|
|
3503
|
+
playsinline: !!d,
|
|
3504
|
+
poster: S || void 0,
|
|
3505
|
+
preload: p,
|
|
3506
|
+
src: b,
|
|
3507
3507
|
width: c ? String(c) : void 0
|
|
3508
3508
|
},
|
|
3509
3509
|
children: []
|
|
3510
3510
|
};
|
|
3511
3511
|
return {
|
|
3512
3512
|
kind: "element",
|
|
3513
|
-
tag:
|
|
3513
|
+
tag: tt,
|
|
3514
3514
|
attrs: {
|
|
3515
3515
|
class: "set-video",
|
|
3516
3516
|
"data-fluid": e === "fluid",
|
|
3517
|
-
id:
|
|
3517
|
+
id: h
|
|
3518
3518
|
},
|
|
3519
|
-
children: [
|
|
3519
|
+
children: [f]
|
|
3520
3520
|
};
|
|
3521
3521
|
}
|
|
3522
|
-
function
|
|
3523
|
-
return
|
|
3522
|
+
function Ci(t) {
|
|
3523
|
+
return m(ce(t));
|
|
3524
3524
|
}
|
|
3525
|
-
const
|
|
3526
|
-
function
|
|
3527
|
-
if (customElements.get(
|
|
3525
|
+
const ue = "(prefers-reduced-motion: reduce)";
|
|
3526
|
+
function he() {
|
|
3527
|
+
if (customElements.get(tt)) return;
|
|
3528
3528
|
class t extends HTMLElement {
|
|
3529
3529
|
#t = !1;
|
|
3530
3530
|
#e;
|
|
@@ -3533,7 +3533,7 @@ function Qt() {
|
|
|
3533
3533
|
const e = this.querySelector("video");
|
|
3534
3534
|
if (!e || (this.#t ||= e.hasAttribute("autoplay"), !this.#t)) return;
|
|
3535
3535
|
const i = this.ownerDocument.defaultView;
|
|
3536
|
-
!i || typeof i.matchMedia != "function" || (this.#e = i.matchMedia(
|
|
3536
|
+
!i || typeof i.matchMedia != "function" || (this.#e = i.matchMedia(ue), this.#i = () => {
|
|
3537
3537
|
this.#n();
|
|
3538
3538
|
}, this.#e.addEventListener("change", this.#i), this.#n());
|
|
3539
3539
|
}
|
|
@@ -3546,12 +3546,12 @@ function Qt() {
|
|
|
3546
3546
|
})));
|
|
3547
3547
|
}
|
|
3548
3548
|
}
|
|
3549
|
-
customElements.define(
|
|
3549
|
+
customElements.define(tt, t);
|
|
3550
3550
|
}
|
|
3551
|
-
const
|
|
3551
|
+
const Li = {
|
|
3552
3552
|
name: "video",
|
|
3553
3553
|
description: "Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",
|
|
3554
|
-
output: { element:
|
|
3554
|
+
output: { element: tt, class: "set-video" },
|
|
3555
3555
|
content: { kind: "none" },
|
|
3556
3556
|
props: {
|
|
3557
3557
|
autoPlay: {
|
|
@@ -3676,54 +3676,54 @@ const ci = {
|
|
|
3676
3676
|
]
|
|
3677
3677
|
}
|
|
3678
3678
|
};
|
|
3679
|
-
function
|
|
3679
|
+
function me(t) {
|
|
3680
3680
|
return t ? /[A-Za-z]/.test(t) : !1;
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3682
|
+
function ke(t) {
|
|
3683
3683
|
return /^[a-z]/.test(t);
|
|
3684
3684
|
}
|
|
3685
|
-
function
|
|
3685
|
+
function H(t) {
|
|
3686
3686
|
const n = t.charAt(0);
|
|
3687
|
-
return
|
|
3687
|
+
return me(n) ? n : void 0;
|
|
3688
3688
|
}
|
|
3689
|
-
function
|
|
3690
|
-
const n =
|
|
3689
|
+
function ge(t) {
|
|
3690
|
+
const n = O(t);
|
|
3691
3691
|
if (!n) return;
|
|
3692
|
-
const e = n.split(" "), i =
|
|
3692
|
+
const e = n.split(" "), i = H(e[0]);
|
|
3693
3693
|
if (!i) return;
|
|
3694
3694
|
const r = [i.toUpperCase()];
|
|
3695
3695
|
if (e.length === 1)
|
|
3696
3696
|
return r[0];
|
|
3697
|
-
const a = e.slice(1).find(
|
|
3697
|
+
const a = e.slice(1).find(ke);
|
|
3698
3698
|
if (a) {
|
|
3699
|
-
const
|
|
3700
|
-
return
|
|
3699
|
+
const d = H(a);
|
|
3700
|
+
return d ? `${r[0]}${d}` : void 0;
|
|
3701
3701
|
}
|
|
3702
3702
|
if (e.length === 2) {
|
|
3703
|
-
const
|
|
3704
|
-
if (!
|
|
3705
|
-
r.push(
|
|
3703
|
+
const d = H(e[1]);
|
|
3704
|
+
if (!d) return;
|
|
3705
|
+
r.push(d);
|
|
3706
3706
|
const s = e[1].split("-").filter(Boolean);
|
|
3707
3707
|
if (s.length === 2) {
|
|
3708
|
-
const
|
|
3709
|
-
|
|
3708
|
+
const p = H(s[1]);
|
|
3709
|
+
p && r.push(p);
|
|
3710
3710
|
}
|
|
3711
3711
|
return r.slice(0, 3).join("");
|
|
3712
3712
|
}
|
|
3713
3713
|
if (e.length === 3) {
|
|
3714
|
-
const
|
|
3715
|
-
return !
|
|
3714
|
+
const d = H(e[1]), s = H(e[2]);
|
|
3715
|
+
return !d || !s ? void 0 : (r.push(d, s), r.slice(0, 3).join(""));
|
|
3716
3716
|
}
|
|
3717
|
-
const
|
|
3718
|
-
if (
|
|
3719
|
-
return r.push(
|
|
3717
|
+
const o = H(e.at(-1) || "");
|
|
3718
|
+
if (o)
|
|
3719
|
+
return r.push(o), r.slice(0, 3).join("");
|
|
3720
3720
|
}
|
|
3721
|
-
const
|
|
3721
|
+
const be = {
|
|
3722
3722
|
bot: "robot-1",
|
|
3723
3723
|
organization: "city-6",
|
|
3724
3724
|
person: "user-1",
|
|
3725
3725
|
team: "member"
|
|
3726
|
-
},
|
|
3726
|
+
}, vt = [
|
|
3727
3727
|
"01",
|
|
3728
3728
|
"02",
|
|
3729
3729
|
"03",
|
|
@@ -3734,15 +3734,15 @@ const ee = {
|
|
|
3734
3734
|
"08",
|
|
3735
3735
|
"09"
|
|
3736
3736
|
];
|
|
3737
|
-
function
|
|
3737
|
+
function ve(t) {
|
|
3738
3738
|
let n = 5381;
|
|
3739
3739
|
for (const e of t)
|
|
3740
3740
|
n = n * 33 ^ e.charCodeAt(0);
|
|
3741
3741
|
return n >>> 0;
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3743
|
+
function fe(t) {
|
|
3744
3744
|
if (t == null) return;
|
|
3745
|
-
const n =
|
|
3745
|
+
const n = O(t);
|
|
3746
3746
|
if (n) {
|
|
3747
3747
|
if (n.length > 3)
|
|
3748
3748
|
throw new Error("initials must normalize to 3 characters or fewer.");
|
|
@@ -3751,90 +3751,90 @@ function ne(t) {
|
|
|
3751
3751
|
return n;
|
|
3752
3752
|
}
|
|
3753
3753
|
}
|
|
3754
|
-
function
|
|
3754
|
+
function ye({
|
|
3755
3755
|
alt: t,
|
|
3756
3756
|
ariaHidden: n,
|
|
3757
3757
|
name: e
|
|
3758
3758
|
}) {
|
|
3759
3759
|
if (!n)
|
|
3760
|
-
return
|
|
3760
|
+
return O(t) || O(e) || "Avatar";
|
|
3761
3761
|
}
|
|
3762
|
-
function
|
|
3762
|
+
function we({
|
|
3763
3763
|
color: t,
|
|
3764
3764
|
name: n
|
|
3765
3765
|
}) {
|
|
3766
3766
|
if (t) return t;
|
|
3767
3767
|
if (n) {
|
|
3768
|
-
const e =
|
|
3769
|
-
return
|
|
3768
|
+
const e = ve(n) % vt.length;
|
|
3769
|
+
return vt[e];
|
|
3770
3770
|
}
|
|
3771
3771
|
return "neutral";
|
|
3772
3772
|
}
|
|
3773
|
-
function
|
|
3773
|
+
function Se({
|
|
3774
3774
|
alt: t,
|
|
3775
3775
|
ariaHidden: n,
|
|
3776
3776
|
color: e,
|
|
3777
3777
|
entity: i = "person",
|
|
3778
3778
|
id: r,
|
|
3779
3779
|
initials: a,
|
|
3780
|
-
name:
|
|
3781
|
-
size:
|
|
3780
|
+
name: o,
|
|
3781
|
+
size: d = "md",
|
|
3782
3782
|
src: s
|
|
3783
3783
|
}) {
|
|
3784
|
-
const
|
|
3784
|
+
const p = v(r), l = fe(a), c = O(o), h = O(s), b = ye({
|
|
3785
3785
|
alt: t,
|
|
3786
3786
|
ariaHidden: n,
|
|
3787
3787
|
name: c
|
|
3788
|
-
}),
|
|
3788
|
+
}), S = l || ge(c), f = !!h, E = we({
|
|
3789
3789
|
color: e,
|
|
3790
3790
|
name: c
|
|
3791
|
-
}),
|
|
3791
|
+
}), q = {
|
|
3792
3792
|
"aria-hidden": n ? "true" : void 0,
|
|
3793
|
-
"aria-label": !n && !
|
|
3793
|
+
"aria-label": !n && !f ? b : void 0,
|
|
3794
3794
|
class: "set-avatar",
|
|
3795
|
-
"data-color":
|
|
3795
|
+
"data-color": E === "neutral" ? void 0 : E,
|
|
3796
3796
|
"data-entity": i === "person" ? void 0 : i,
|
|
3797
|
-
"data-size":
|
|
3798
|
-
id:
|
|
3799
|
-
role: !n && !
|
|
3797
|
+
"data-size": d,
|
|
3798
|
+
id: p,
|
|
3799
|
+
role: !n && !f ? "img" : void 0
|
|
3800
3800
|
};
|
|
3801
|
-
let
|
|
3802
|
-
return
|
|
3801
|
+
let w;
|
|
3802
|
+
return f ? w = {
|
|
3803
3803
|
kind: "element",
|
|
3804
3804
|
tag: "img",
|
|
3805
3805
|
attrs: {
|
|
3806
|
-
alt: n ? "" :
|
|
3806
|
+
alt: n ? "" : b || "",
|
|
3807
3807
|
class: "img",
|
|
3808
|
-
src:
|
|
3808
|
+
src: h
|
|
3809
3809
|
},
|
|
3810
3810
|
children: []
|
|
3811
|
-
} :
|
|
3811
|
+
} : S ? w = {
|
|
3812
3812
|
kind: "element",
|
|
3813
3813
|
tag: "span",
|
|
3814
3814
|
attrs: { class: "initials" },
|
|
3815
|
-
children: [{ kind: "text", value:
|
|
3816
|
-
} :
|
|
3815
|
+
children: [{ kind: "text", value: S }]
|
|
3816
|
+
} : w = {
|
|
3817
3817
|
kind: "element",
|
|
3818
3818
|
tag: "span",
|
|
3819
3819
|
attrs: { class: "icon-wrapper" },
|
|
3820
3820
|
children: [
|
|
3821
|
-
|
|
3821
|
+
P({
|
|
3822
3822
|
ariaHidden: !0,
|
|
3823
|
-
name:
|
|
3823
|
+
name: be[i],
|
|
3824
3824
|
size: "fill"
|
|
3825
3825
|
})
|
|
3826
3826
|
]
|
|
3827
3827
|
}, {
|
|
3828
3828
|
kind: "element",
|
|
3829
3829
|
tag: "span",
|
|
3830
|
-
attrs:
|
|
3831
|
-
children: [
|
|
3830
|
+
attrs: q,
|
|
3831
|
+
children: [w]
|
|
3832
3832
|
};
|
|
3833
3833
|
}
|
|
3834
|
-
function
|
|
3835
|
-
return
|
|
3834
|
+
function Mi(t) {
|
|
3835
|
+
return m(Se(t));
|
|
3836
3836
|
}
|
|
3837
|
-
const
|
|
3837
|
+
const qi = {
|
|
3838
3838
|
name: "avatar",
|
|
3839
3839
|
description: "Use `avatar` to visually represent a person, team, or entity.",
|
|
3840
3840
|
output: { element: "span", class: "set-avatar" },
|
|
@@ -3941,14 +3941,14 @@ const hi = {
|
|
|
3941
3941
|
]
|
|
3942
3942
|
}
|
|
3943
3943
|
};
|
|
3944
|
-
function
|
|
3944
|
+
function xe({
|
|
3945
3945
|
floating: t,
|
|
3946
3946
|
id: n,
|
|
3947
3947
|
label: e,
|
|
3948
3948
|
size: i = "md",
|
|
3949
3949
|
tone: r
|
|
3950
3950
|
}) {
|
|
3951
|
-
const a =
|
|
3951
|
+
const a = v(n);
|
|
3952
3952
|
return {
|
|
3953
3953
|
kind: "element",
|
|
3954
3954
|
tag: "span",
|
|
@@ -3962,10 +3962,10 @@ function de({
|
|
|
3962
3962
|
children: [{ kind: "text", value: e }]
|
|
3963
3963
|
};
|
|
3964
3964
|
}
|
|
3965
|
-
function
|
|
3966
|
-
return
|
|
3965
|
+
function Ii(t) {
|
|
3966
|
+
return m(xe(t));
|
|
3967
3967
|
}
|
|
3968
|
-
const
|
|
3968
|
+
const Ti = {
|
|
3969
3969
|
name: "badge",
|
|
3970
3970
|
description: "Use `badge` to annotate content with a short label.",
|
|
3971
3971
|
output: { element: "span", class: "set-badge" },
|
|
@@ -4034,40 +4034,40 @@ const ki = {
|
|
|
4034
4034
|
]
|
|
4035
4035
|
}
|
|
4036
4036
|
};
|
|
4037
|
-
function
|
|
4037
|
+
function et({
|
|
4038
4038
|
align: t,
|
|
4039
4039
|
as: n,
|
|
4040
4040
|
children: e,
|
|
4041
4041
|
id: i,
|
|
4042
4042
|
linkVisited: r = !0,
|
|
4043
4043
|
measured: a,
|
|
4044
|
-
monospaced:
|
|
4045
|
-
responsive:
|
|
4044
|
+
monospaced: o,
|
|
4045
|
+
responsive: d,
|
|
4046
4046
|
size: s = "md",
|
|
4047
|
-
tone:
|
|
4047
|
+
tone: p = "default"
|
|
4048
4048
|
}) {
|
|
4049
|
-
const
|
|
4049
|
+
const l = v(i), c = n === "p" ? "p" : "span", h = c === "p", b = h ? t ?? "start" : void 0;
|
|
4050
4050
|
return {
|
|
4051
4051
|
kind: "element",
|
|
4052
4052
|
tag: c,
|
|
4053
4053
|
attrs: {
|
|
4054
4054
|
class: "set-text",
|
|
4055
|
-
"data-align":
|
|
4055
|
+
"data-align": b && b !== "start" ? b : void 0,
|
|
4056
4056
|
"data-link-visited": r ? void 0 : "off",
|
|
4057
|
-
"data-measured":
|
|
4058
|
-
"data-monospaced":
|
|
4059
|
-
"data-responsive":
|
|
4057
|
+
"data-measured": h ? a ?? !0 : void 0,
|
|
4058
|
+
"data-monospaced": o,
|
|
4059
|
+
"data-responsive": d,
|
|
4060
4060
|
"data-size": s,
|
|
4061
|
-
"data-tone":
|
|
4062
|
-
id:
|
|
4061
|
+
"data-tone": p === "muted" ? "muted" : void 0,
|
|
4062
|
+
id: l
|
|
4063
4063
|
},
|
|
4064
4064
|
children: [{ kind: "raw", html: e }]
|
|
4065
4065
|
};
|
|
4066
4066
|
}
|
|
4067
|
-
function
|
|
4068
|
-
return
|
|
4067
|
+
function Ai(t) {
|
|
4068
|
+
return m(et(t));
|
|
4069
4069
|
}
|
|
4070
|
-
const
|
|
4070
|
+
const _i = {
|
|
4071
4071
|
name: "text",
|
|
4072
4072
|
description: "Use `text` for inline or paragraph body copy.",
|
|
4073
4073
|
output: {
|
|
@@ -4191,23 +4191,23 @@ const bi = {
|
|
|
4191
4191
|
]
|
|
4192
4192
|
}
|
|
4193
4193
|
};
|
|
4194
|
-
function
|
|
4194
|
+
function Ee({
|
|
4195
4195
|
align: t = "start",
|
|
4196
4196
|
attribution: n,
|
|
4197
4197
|
id: e,
|
|
4198
4198
|
measured: i = !0,
|
|
4199
4199
|
quote: r,
|
|
4200
4200
|
responsive: a = !1,
|
|
4201
|
-
size:
|
|
4201
|
+
size: o = "md"
|
|
4202
4202
|
}) {
|
|
4203
|
-
const
|
|
4203
|
+
const d = v(e);
|
|
4204
4204
|
return {
|
|
4205
4205
|
kind: "element",
|
|
4206
4206
|
tag: "figure",
|
|
4207
4207
|
attrs: {
|
|
4208
4208
|
class: "set-blockquote",
|
|
4209
4209
|
"data-align": t === "start" ? void 0 : t,
|
|
4210
|
-
id:
|
|
4210
|
+
id: d
|
|
4211
4211
|
},
|
|
4212
4212
|
children: [
|
|
4213
4213
|
{
|
|
@@ -4215,13 +4215,13 @@ function se({
|
|
|
4215
4215
|
tag: "blockquote",
|
|
4216
4216
|
attrs: { class: "quote" },
|
|
4217
4217
|
children: [
|
|
4218
|
-
|
|
4218
|
+
et({
|
|
4219
4219
|
align: t,
|
|
4220
4220
|
as: "p",
|
|
4221
4221
|
children: r,
|
|
4222
4222
|
measured: i,
|
|
4223
4223
|
responsive: a,
|
|
4224
|
-
size:
|
|
4224
|
+
size: o
|
|
4225
4225
|
})
|
|
4226
4226
|
]
|
|
4227
4227
|
},
|
|
@@ -4230,7 +4230,7 @@ function se({
|
|
|
4230
4230
|
tag: "figcaption",
|
|
4231
4231
|
attrs: { class: "attribution" },
|
|
4232
4232
|
children: [
|
|
4233
|
-
|
|
4233
|
+
et({
|
|
4234
4234
|
as: "span",
|
|
4235
4235
|
children: n,
|
|
4236
4236
|
responsive: a,
|
|
@@ -4241,10 +4241,10 @@ function se({
|
|
|
4241
4241
|
]
|
|
4242
4242
|
};
|
|
4243
4243
|
}
|
|
4244
|
-
function
|
|
4245
|
-
return
|
|
4244
|
+
function Di(t) {
|
|
4245
|
+
return m(Ee(t));
|
|
4246
4246
|
}
|
|
4247
|
-
const
|
|
4247
|
+
const Vi = {
|
|
4248
4248
|
name: "blockquote",
|
|
4249
4249
|
description: "Use `blockquote` to display a quote with attribution.",
|
|
4250
4250
|
output: { element: "figure", class: "set-blockquote" },
|
|
@@ -4313,18 +4313,18 @@ const fi = {
|
|
|
4313
4313
|
]
|
|
4314
4314
|
}
|
|
4315
4315
|
};
|
|
4316
|
-
function
|
|
4316
|
+
function ze({
|
|
4317
4317
|
background: t = "default",
|
|
4318
4318
|
border: n,
|
|
4319
4319
|
children: e,
|
|
4320
4320
|
id: i,
|
|
4321
4321
|
paddingBlock: r = "md",
|
|
4322
4322
|
paddingInline: a = "md",
|
|
4323
|
-
radius:
|
|
4324
|
-
responsive:
|
|
4323
|
+
radius: o,
|
|
4324
|
+
responsive: d,
|
|
4325
4325
|
surface: s
|
|
4326
4326
|
}) {
|
|
4327
|
-
const
|
|
4327
|
+
const p = v(i);
|
|
4328
4328
|
return {
|
|
4329
4329
|
kind: "element",
|
|
4330
4330
|
tag: "div",
|
|
@@ -4335,17 +4335,17 @@ function le({
|
|
|
4335
4335
|
"data-set-surface": s,
|
|
4336
4336
|
"data-padding-block": r,
|
|
4337
4337
|
"data-padding-inline": a,
|
|
4338
|
-
"data-radius":
|
|
4339
|
-
"data-responsive":
|
|
4340
|
-
id:
|
|
4338
|
+
"data-radius": o,
|
|
4339
|
+
"data-responsive": d,
|
|
4340
|
+
id: p
|
|
4341
4341
|
},
|
|
4342
4342
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
4343
4343
|
};
|
|
4344
4344
|
}
|
|
4345
|
-
function
|
|
4346
|
-
return
|
|
4345
|
+
function Hi(t) {
|
|
4346
|
+
return m(ze(t));
|
|
4347
4347
|
}
|
|
4348
|
-
const
|
|
4348
|
+
const Ni = {
|
|
4349
4349
|
name: "box",
|
|
4350
4350
|
description: "Use `box` to inset content.",
|
|
4351
4351
|
output: { element: "div", class: "set-box" },
|
|
@@ -4458,29 +4458,29 @@ const wi = {
|
|
|
4458
4458
|
]
|
|
4459
4459
|
}
|
|
4460
4460
|
};
|
|
4461
|
-
function
|
|
4461
|
+
function Ce({
|
|
4462
4462
|
description: t,
|
|
4463
4463
|
headingLevel: n,
|
|
4464
4464
|
href: e,
|
|
4465
4465
|
id: i,
|
|
4466
4466
|
note: r,
|
|
4467
4467
|
surface: a,
|
|
4468
|
-
title:
|
|
4468
|
+
title: o
|
|
4469
4469
|
}) {
|
|
4470
|
-
const
|
|
4470
|
+
const d = v(i), s = n ? `h${n}` : "div", p = e ? [
|
|
4471
4471
|
{
|
|
4472
4472
|
kind: "element",
|
|
4473
4473
|
tag: "a",
|
|
4474
4474
|
attrs: { href: e },
|
|
4475
|
-
children: [{ kind: "text", value:
|
|
4475
|
+
children: [{ kind: "text", value: o }]
|
|
4476
4476
|
}
|
|
4477
|
-
] : [{ kind: "text", value:
|
|
4478
|
-
r && e &&
|
|
4477
|
+
] : [{ kind: "text", value: o }], l = r ? [{ kind: "raw", html: r }] : [];
|
|
4478
|
+
r && e && l.push({
|
|
4479
4479
|
kind: "element",
|
|
4480
4480
|
tag: "span",
|
|
4481
4481
|
attrs: { class: "icon-wrapper" },
|
|
4482
4482
|
children: [
|
|
4483
|
-
|
|
4483
|
+
P({
|
|
4484
4484
|
ariaHidden: !0,
|
|
4485
4485
|
mirrored: "rtl",
|
|
4486
4486
|
name: "arrow-right",
|
|
@@ -4499,7 +4499,7 @@ function pe({
|
|
|
4499
4499
|
kind: "element",
|
|
4500
4500
|
tag: s,
|
|
4501
4501
|
attrs: { class: "title" },
|
|
4502
|
-
children:
|
|
4502
|
+
children: p
|
|
4503
4503
|
},
|
|
4504
4504
|
{
|
|
4505
4505
|
kind: "element",
|
|
@@ -4512,22 +4512,22 @@ function pe({
|
|
|
4512
4512
|
kind: "element",
|
|
4513
4513
|
tag: "p",
|
|
4514
4514
|
attrs: { class: "note" },
|
|
4515
|
-
children:
|
|
4515
|
+
children: l
|
|
4516
4516
|
}), {
|
|
4517
4517
|
kind: "element",
|
|
4518
4518
|
tag: "div",
|
|
4519
4519
|
attrs: {
|
|
4520
4520
|
class: "set-card",
|
|
4521
4521
|
"data-set-surface": a,
|
|
4522
|
-
id:
|
|
4522
|
+
id: d
|
|
4523
4523
|
},
|
|
4524
4524
|
children: c
|
|
4525
4525
|
};
|
|
4526
4526
|
}
|
|
4527
|
-
function
|
|
4528
|
-
return
|
|
4527
|
+
function Bi(t) {
|
|
4528
|
+
return m(Ce(t));
|
|
4529
4529
|
}
|
|
4530
|
-
const
|
|
4530
|
+
const Oi = {
|
|
4531
4531
|
name: "card",
|
|
4532
4532
|
description: "Use `card` to display a summary for a single topic.",
|
|
4533
4533
|
output: {
|
|
@@ -4595,22 +4595,22 @@ const xi = {
|
|
|
4595
4595
|
]
|
|
4596
4596
|
}
|
|
4597
4597
|
};
|
|
4598
|
-
function
|
|
4598
|
+
function Le({
|
|
4599
4599
|
checked: t,
|
|
4600
4600
|
description: n,
|
|
4601
4601
|
disabled: e,
|
|
4602
4602
|
id: i,
|
|
4603
4603
|
invalid: r,
|
|
4604
4604
|
label: a,
|
|
4605
|
-
name:
|
|
4606
|
-
required:
|
|
4605
|
+
name: o,
|
|
4606
|
+
required: d,
|
|
4607
4607
|
size: s = "md",
|
|
4608
|
-
value:
|
|
4608
|
+
value: p
|
|
4609
4609
|
}) {
|
|
4610
|
-
const
|
|
4611
|
-
if (c && !
|
|
4610
|
+
const l = v(i), c = n?.trim();
|
|
4611
|
+
if (c && !l)
|
|
4612
4612
|
throw new Error("id must be provided when description is provided.");
|
|
4613
|
-
const
|
|
4613
|
+
const h = c ? `${l}-description` : void 0, b = !!e, f = [
|
|
4614
4614
|
{
|
|
4615
4615
|
kind: "element",
|
|
4616
4616
|
tag: "label",
|
|
@@ -4620,16 +4620,16 @@ function ce({
|
|
|
4620
4620
|
kind: "element",
|
|
4621
4621
|
tag: "input",
|
|
4622
4622
|
attrs: {
|
|
4623
|
-
"aria-describedby":
|
|
4624
|
-
"aria-invalid": !
|
|
4623
|
+
"aria-describedby": h,
|
|
4624
|
+
"aria-invalid": !b && !!r ? "true" : void 0,
|
|
4625
4625
|
checked: !!t,
|
|
4626
4626
|
class: "checkbox",
|
|
4627
|
-
disabled:
|
|
4628
|
-
id:
|
|
4629
|
-
name:
|
|
4630
|
-
required: !!
|
|
4627
|
+
disabled: b,
|
|
4628
|
+
id: l,
|
|
4629
|
+
name: o || void 0,
|
|
4630
|
+
required: !!d,
|
|
4631
4631
|
type: "checkbox",
|
|
4632
|
-
value:
|
|
4632
|
+
value: p || void 0
|
|
4633
4633
|
},
|
|
4634
4634
|
children: []
|
|
4635
4635
|
},
|
|
@@ -4642,22 +4642,22 @@ function ce({
|
|
|
4642
4642
|
]
|
|
4643
4643
|
}
|
|
4644
4644
|
];
|
|
4645
|
-
return c &&
|
|
4645
|
+
return c && f.push({
|
|
4646
4646
|
kind: "element",
|
|
4647
4647
|
tag: "p",
|
|
4648
|
-
attrs: { class: "description", id:
|
|
4648
|
+
attrs: { class: "description", id: h },
|
|
4649
4649
|
children: [{ kind: "text", value: c }]
|
|
4650
4650
|
}), {
|
|
4651
4651
|
kind: "element",
|
|
4652
4652
|
tag: "div",
|
|
4653
4653
|
attrs: { class: "set-checkbox", "data-size": s },
|
|
4654
|
-
children:
|
|
4654
|
+
children: f
|
|
4655
4655
|
};
|
|
4656
4656
|
}
|
|
4657
|
-
function
|
|
4658
|
-
return
|
|
4657
|
+
function Pi(t) {
|
|
4658
|
+
return m(Le(t));
|
|
4659
4659
|
}
|
|
4660
|
-
const
|
|
4660
|
+
const Ri = {
|
|
4661
4661
|
name: "checkbox",
|
|
4662
4662
|
description: "Use `checkbox` to let users toggle a single option on or off.",
|
|
4663
4663
|
output: { element: "div", class: "set-checkbox" },
|
|
@@ -4787,13 +4787,13 @@ const zi = {
|
|
|
4787
4787
|
]
|
|
4788
4788
|
}
|
|
4789
4789
|
};
|
|
4790
|
-
function
|
|
4790
|
+
function Me({
|
|
4791
4791
|
children: t,
|
|
4792
4792
|
gutter: n = "default",
|
|
4793
4793
|
id: e,
|
|
4794
4794
|
maxInlineSize: i = "default"
|
|
4795
4795
|
}) {
|
|
4796
|
-
const r =
|
|
4796
|
+
const r = v(e);
|
|
4797
4797
|
return {
|
|
4798
4798
|
kind: "element",
|
|
4799
4799
|
tag: "div",
|
|
@@ -4806,10 +4806,10 @@ function ue({
|
|
|
4806
4806
|
children: t ? [{ kind: "raw", html: t }] : []
|
|
4807
4807
|
};
|
|
4808
4808
|
}
|
|
4809
|
-
function
|
|
4810
|
-
return
|
|
4809
|
+
function Wi(t) {
|
|
4810
|
+
return m(Me(t));
|
|
4811
4811
|
}
|
|
4812
|
-
const
|
|
4812
|
+
const Ui = {
|
|
4813
4813
|
name: "container",
|
|
4814
4814
|
description: "Use `container` to wrap page-level content.",
|
|
4815
4815
|
output: { element: "div", class: "set-container" },
|
|
@@ -4866,14 +4866,14 @@ const Li = {
|
|
|
4866
4866
|
]
|
|
4867
4867
|
}
|
|
4868
4868
|
};
|
|
4869
|
-
function
|
|
4869
|
+
function qe({
|
|
4870
4870
|
children: t,
|
|
4871
4871
|
id: n,
|
|
4872
4872
|
open: e,
|
|
4873
4873
|
summary: i,
|
|
4874
4874
|
inlineSize: r = "full"
|
|
4875
4875
|
}) {
|
|
4876
|
-
const a =
|
|
4876
|
+
const a = v(n);
|
|
4877
4877
|
return {
|
|
4878
4878
|
kind: "element",
|
|
4879
4879
|
tag: "details",
|
|
@@ -4894,7 +4894,7 @@ function he({
|
|
|
4894
4894
|
tag: "span",
|
|
4895
4895
|
attrs: { class: "marker" },
|
|
4896
4896
|
children: [
|
|
4897
|
-
|
|
4897
|
+
P({
|
|
4898
4898
|
ariaHidden: !0,
|
|
4899
4899
|
name: "chevron-right",
|
|
4900
4900
|
size: "sm"
|
|
@@ -4918,10 +4918,10 @@ function he({
|
|
|
4918
4918
|
]
|
|
4919
4919
|
};
|
|
4920
4920
|
}
|
|
4921
|
-
function
|
|
4922
|
-
return
|
|
4921
|
+
function $i(t) {
|
|
4922
|
+
return m(qe(t));
|
|
4923
4923
|
}
|
|
4924
|
-
const
|
|
4924
|
+
const Gi = {
|
|
4925
4925
|
name: "details",
|
|
4926
4926
|
description: "Use `details` to let users expand and collapse a section of content.",
|
|
4927
4927
|
output: { element: "details", class: "set-details" },
|
|
@@ -4980,12 +4980,12 @@ const qi = {
|
|
|
4980
4980
|
]
|
|
4981
4981
|
}
|
|
4982
4982
|
};
|
|
4983
|
-
function
|
|
4983
|
+
function Ie({
|
|
4984
4984
|
id: t,
|
|
4985
4985
|
orientation: n = "horizontal",
|
|
4986
4986
|
tone: e = "default"
|
|
4987
4987
|
} = {}) {
|
|
4988
|
-
const i =
|
|
4988
|
+
const i = v(t);
|
|
4989
4989
|
return {
|
|
4990
4990
|
kind: "element",
|
|
4991
4991
|
tag: n === "horizontal" ? "hr" : "span",
|
|
@@ -4999,10 +4999,10 @@ function me({
|
|
|
4999
4999
|
children: []
|
|
5000
5000
|
};
|
|
5001
5001
|
}
|
|
5002
|
-
function
|
|
5003
|
-
return
|
|
5002
|
+
function Zi(t = {}) {
|
|
5003
|
+
return m(Ie(t));
|
|
5004
5004
|
}
|
|
5005
|
-
const
|
|
5005
|
+
const Fi = {
|
|
5006
5006
|
name: "divider",
|
|
5007
5007
|
description: "Use `divider` to separate sections with a rule.",
|
|
5008
5008
|
output: {
|
|
@@ -5064,23 +5064,23 @@ const Ti = {
|
|
|
5064
5064
|
]
|
|
5065
5065
|
}
|
|
5066
5066
|
};
|
|
5067
|
-
function
|
|
5067
|
+
function qt({
|
|
5068
5068
|
children: t,
|
|
5069
5069
|
description: n,
|
|
5070
5070
|
disabled: e,
|
|
5071
5071
|
id: i,
|
|
5072
5072
|
invalid: r,
|
|
5073
5073
|
legend: a,
|
|
5074
|
-
inlineSize:
|
|
5074
|
+
inlineSize: o = "full"
|
|
5075
5075
|
}) {
|
|
5076
|
-
const
|
|
5076
|
+
const d = n?.trim(), s = i.trim();
|
|
5077
5077
|
if (!s)
|
|
5078
5078
|
throw new Error("id must be a non-empty string.");
|
|
5079
|
-
if (!
|
|
5079
|
+
if (!V(s))
|
|
5080
5080
|
throw new Error(
|
|
5081
5081
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
5082
5082
|
);
|
|
5083
|
-
const
|
|
5083
|
+
const p = d ? `${s}-description` : void 0, l = !!e, c = !l && !!r, h = [
|
|
5084
5084
|
{
|
|
5085
5085
|
kind: "element",
|
|
5086
5086
|
tag: "legend",
|
|
@@ -5088,29 +5088,29 @@ function bt({
|
|
|
5088
5088
|
children: [{ kind: "text", value: a }]
|
|
5089
5089
|
}
|
|
5090
5090
|
];
|
|
5091
|
-
return
|
|
5091
|
+
return d && h.push({
|
|
5092
5092
|
kind: "element",
|
|
5093
5093
|
tag: "p",
|
|
5094
|
-
attrs: { class: "description", id:
|
|
5095
|
-
children: [{ kind: "text", value:
|
|
5096
|
-
}), t &&
|
|
5094
|
+
attrs: { class: "description", id: p },
|
|
5095
|
+
children: [{ kind: "text", value: d }]
|
|
5096
|
+
}), t && h.push({ kind: "raw", html: t }), {
|
|
5097
5097
|
kind: "element",
|
|
5098
5098
|
tag: "fieldset",
|
|
5099
5099
|
attrs: {
|
|
5100
|
-
"aria-describedby":
|
|
5100
|
+
"aria-describedby": d ? p : void 0,
|
|
5101
5101
|
"aria-invalid": c ? "true" : void 0,
|
|
5102
5102
|
class: "set-fieldset",
|
|
5103
|
-
"data-inline-size":
|
|
5104
|
-
disabled:
|
|
5103
|
+
"data-inline-size": o === "fit" ? "fit" : void 0,
|
|
5104
|
+
disabled: l,
|
|
5105
5105
|
id: s
|
|
5106
5106
|
},
|
|
5107
|
-
children:
|
|
5107
|
+
children: h
|
|
5108
5108
|
};
|
|
5109
5109
|
}
|
|
5110
|
-
function
|
|
5111
|
-
return
|
|
5110
|
+
function ji(t) {
|
|
5111
|
+
return m(qt(t));
|
|
5112
5112
|
}
|
|
5113
|
-
const
|
|
5113
|
+
const Ki = {
|
|
5114
5114
|
name: "fieldset",
|
|
5115
5115
|
description: "Use `fieldset` to group related form controls under a legend.",
|
|
5116
5116
|
output: { element: "fieldset", class: "set-fieldset" },
|
|
@@ -5198,21 +5198,23 @@ const _i = {
|
|
|
5198
5198
|
]
|
|
5199
5199
|
}
|
|
5200
5200
|
};
|
|
5201
|
-
function
|
|
5201
|
+
function Te({
|
|
5202
5202
|
align: t = "start",
|
|
5203
5203
|
caption: n,
|
|
5204
5204
|
children: e,
|
|
5205
5205
|
id: i,
|
|
5206
|
-
|
|
5206
|
+
inlineSize: r = "full",
|
|
5207
|
+
responsive: a = !1
|
|
5207
5208
|
}) {
|
|
5208
|
-
const
|
|
5209
|
+
const o = v(i);
|
|
5209
5210
|
return {
|
|
5210
5211
|
kind: "element",
|
|
5211
5212
|
tag: "figure",
|
|
5212
5213
|
attrs: {
|
|
5213
5214
|
class: "set-figure",
|
|
5214
5215
|
"data-align": t === "start" ? void 0 : t,
|
|
5215
|
-
|
|
5216
|
+
"data-inline-size": r === "full" ? void 0 : r,
|
|
5217
|
+
id: o
|
|
5216
5218
|
},
|
|
5217
5219
|
children: [
|
|
5218
5220
|
{ kind: "raw", html: e },
|
|
@@ -5221,10 +5223,10 @@ function ke({
|
|
|
5221
5223
|
tag: "figcaption",
|
|
5222
5224
|
attrs: { class: "figcaption" },
|
|
5223
5225
|
children: [
|
|
5224
|
-
|
|
5226
|
+
et({
|
|
5225
5227
|
as: "span",
|
|
5226
5228
|
children: n,
|
|
5227
|
-
responsive:
|
|
5229
|
+
responsive: a,
|
|
5228
5230
|
size: "sm"
|
|
5229
5231
|
})
|
|
5230
5232
|
]
|
|
@@ -5232,10 +5234,10 @@ function ke({
|
|
|
5232
5234
|
]
|
|
5233
5235
|
};
|
|
5234
5236
|
}
|
|
5235
|
-
function
|
|
5236
|
-
return
|
|
5237
|
+
function Xi(t) {
|
|
5238
|
+
return m(Te(t));
|
|
5237
5239
|
}
|
|
5238
|
-
const
|
|
5240
|
+
const Qi = {
|
|
5239
5241
|
name: "figure",
|
|
5240
5242
|
description: "Use `figure` to present media with a caption.",
|
|
5241
5243
|
output: { element: "figure", class: "set-figure" },
|
|
@@ -5266,6 +5268,11 @@ const Hi = {
|
|
|
5266
5268
|
description: "DOM id.",
|
|
5267
5269
|
type: { kind: "string" }
|
|
5268
5270
|
},
|
|
5271
|
+
inlineSize: {
|
|
5272
|
+
default: "full",
|
|
5273
|
+
description: "Whether the figure fills its container or shrinks to fit the media.",
|
|
5274
|
+
type: { kind: "enum", values: ["full", "fit"] }
|
|
5275
|
+
},
|
|
5269
5276
|
responsive: {
|
|
5270
5277
|
default: !1,
|
|
5271
5278
|
description: "Scales the caption across breakpoints.",
|
|
@@ -5275,6 +5282,12 @@ const Hi = {
|
|
|
5275
5282
|
events: {},
|
|
5276
5283
|
rules: {
|
|
5277
5284
|
attributes: [
|
|
5285
|
+
{
|
|
5286
|
+
target: { on: "host" },
|
|
5287
|
+
attribute: "data-inline-size",
|
|
5288
|
+
condition: { kind: "when-equals", prop: "inlineSize", to: "fit" },
|
|
5289
|
+
value: { kind: "literal", text: "fit" }
|
|
5290
|
+
},
|
|
5278
5291
|
{
|
|
5279
5292
|
target: { on: "host" },
|
|
5280
5293
|
attribute: "data-align",
|
|
@@ -5293,16 +5306,16 @@ const Hi = {
|
|
|
5293
5306
|
}
|
|
5294
5307
|
]
|
|
5295
5308
|
}
|
|
5296
|
-
},
|
|
5309
|
+
}, T = (t) => {
|
|
5297
5310
|
if (t !== void 0)
|
|
5298
5311
|
return String(t);
|
|
5299
5312
|
};
|
|
5300
|
-
function
|
|
5313
|
+
function Ae({
|
|
5301
5314
|
children: t,
|
|
5302
5315
|
gap: n = "default",
|
|
5303
5316
|
id: e
|
|
5304
5317
|
}) {
|
|
5305
|
-
const i =
|
|
5318
|
+
const i = v(e);
|
|
5306
5319
|
return {
|
|
5307
5320
|
kind: "element",
|
|
5308
5321
|
tag: "div",
|
|
@@ -5321,56 +5334,56 @@ function ge({
|
|
|
5321
5334
|
]
|
|
5322
5335
|
};
|
|
5323
5336
|
}
|
|
5324
|
-
function
|
|
5325
|
-
return
|
|
5337
|
+
function Yi(t) {
|
|
5338
|
+
return m(Ae(t));
|
|
5326
5339
|
}
|
|
5327
|
-
function
|
|
5340
|
+
function _e({
|
|
5328
5341
|
align: t,
|
|
5329
5342
|
children: n,
|
|
5330
5343
|
colSpan: e,
|
|
5331
5344
|
colSpanNarrow: i,
|
|
5332
5345
|
colSpanWide: r,
|
|
5333
5346
|
colStart: a,
|
|
5334
|
-
colStartNarrow:
|
|
5335
|
-
colStartWide:
|
|
5347
|
+
colStartNarrow: o,
|
|
5348
|
+
colStartWide: d,
|
|
5336
5349
|
id: s,
|
|
5337
|
-
justify:
|
|
5338
|
-
rowSpan:
|
|
5350
|
+
justify: p,
|
|
5351
|
+
rowSpan: l,
|
|
5339
5352
|
rowSpanNarrow: c,
|
|
5340
|
-
rowSpanWide:
|
|
5341
|
-
rowStart:
|
|
5342
|
-
rowStartNarrow:
|
|
5343
|
-
rowStartWide:
|
|
5353
|
+
rowSpanWide: h,
|
|
5354
|
+
rowStart: b,
|
|
5355
|
+
rowStartNarrow: S,
|
|
5356
|
+
rowStartWide: f
|
|
5344
5357
|
}) {
|
|
5345
|
-
const
|
|
5358
|
+
const E = v(s);
|
|
5346
5359
|
return {
|
|
5347
5360
|
kind: "element",
|
|
5348
5361
|
tag: "div",
|
|
5349
5362
|
attrs: {
|
|
5350
5363
|
class: "set-grid-item",
|
|
5351
5364
|
"data-align": t,
|
|
5352
|
-
"data-justify":
|
|
5353
|
-
"data-col-span-narrow":
|
|
5354
|
-
"data-col-start-narrow":
|
|
5355
|
-
"data-col-span":
|
|
5356
|
-
"data-col-start":
|
|
5357
|
-
"data-col-span-wide":
|
|
5358
|
-
"data-col-start-wide":
|
|
5359
|
-
"data-row-span-narrow":
|
|
5360
|
-
"data-row-start-narrow":
|
|
5361
|
-
"data-row-span":
|
|
5362
|
-
"data-row-start":
|
|
5363
|
-
"data-row-span-wide":
|
|
5364
|
-
"data-row-start-wide":
|
|
5365
|
-
id:
|
|
5365
|
+
"data-justify": p,
|
|
5366
|
+
"data-col-span-narrow": T(i),
|
|
5367
|
+
"data-col-start-narrow": T(o),
|
|
5368
|
+
"data-col-span": T(e),
|
|
5369
|
+
"data-col-start": T(a),
|
|
5370
|
+
"data-col-span-wide": T(r),
|
|
5371
|
+
"data-col-start-wide": T(d),
|
|
5372
|
+
"data-row-span-narrow": T(c),
|
|
5373
|
+
"data-row-start-narrow": T(S),
|
|
5374
|
+
"data-row-span": T(l),
|
|
5375
|
+
"data-row-start": T(b),
|
|
5376
|
+
"data-row-span-wide": T(h),
|
|
5377
|
+
"data-row-start-wide": T(f),
|
|
5378
|
+
id: E
|
|
5366
5379
|
},
|
|
5367
5380
|
children: n ? [{ kind: "raw", html: n }] : []
|
|
5368
5381
|
};
|
|
5369
5382
|
}
|
|
5370
|
-
function
|
|
5371
|
-
return
|
|
5383
|
+
function Ji(t) {
|
|
5384
|
+
return m(_e(t));
|
|
5372
5385
|
}
|
|
5373
|
-
const
|
|
5386
|
+
const tn = {
|
|
5374
5387
|
name: "grid",
|
|
5375
5388
|
description: "Use `grid` to lay out content in a 12-column responsive grid.",
|
|
5376
5389
|
output: { element: "div", class: "set-grid" },
|
|
@@ -5411,12 +5424,12 @@ const Oi = {
|
|
|
5411
5424
|
}
|
|
5412
5425
|
]
|
|
5413
5426
|
}
|
|
5414
|
-
},
|
|
5427
|
+
}, A = {
|
|
5415
5428
|
kind: "number",
|
|
5416
5429
|
min: 1,
|
|
5417
5430
|
max: 12,
|
|
5418
5431
|
integer: !0
|
|
5419
|
-
},
|
|
5432
|
+
}, en = {
|
|
5420
5433
|
name: "grid-item",
|
|
5421
5434
|
description: "Use `grid-item` to place content within a `grid` layout.",
|
|
5422
5435
|
output: { element: "div", class: "set-grid-item" },
|
|
@@ -5436,11 +5449,11 @@ const Oi = {
|
|
|
5436
5449
|
},
|
|
5437
5450
|
colSpan: {
|
|
5438
5451
|
description: "Columns spanned at the default breakpoint.",
|
|
5439
|
-
type:
|
|
5452
|
+
type: A
|
|
5440
5453
|
},
|
|
5441
5454
|
colStart: {
|
|
5442
5455
|
description: "Starting column at the default breakpoint.",
|
|
5443
|
-
type:
|
|
5456
|
+
type: A
|
|
5444
5457
|
},
|
|
5445
5458
|
id: {
|
|
5446
5459
|
description: "DOM id.",
|
|
@@ -5448,43 +5461,43 @@ const Oi = {
|
|
|
5448
5461
|
},
|
|
5449
5462
|
rowSpan: {
|
|
5450
5463
|
description: "Rows spanned at the default breakpoint.",
|
|
5451
|
-
type:
|
|
5464
|
+
type: A
|
|
5452
5465
|
},
|
|
5453
5466
|
rowSpanNarrow: {
|
|
5454
5467
|
description: "Rows spanned at the narrow breakpoint.",
|
|
5455
|
-
type:
|
|
5468
|
+
type: A
|
|
5456
5469
|
},
|
|
5457
5470
|
rowSpanWide: {
|
|
5458
5471
|
description: "Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",
|
|
5459
|
-
type:
|
|
5472
|
+
type: A
|
|
5460
5473
|
},
|
|
5461
5474
|
rowStart: {
|
|
5462
5475
|
description: "Starting row at the default breakpoint.",
|
|
5463
|
-
type:
|
|
5476
|
+
type: A
|
|
5464
5477
|
},
|
|
5465
5478
|
rowStartNarrow: {
|
|
5466
5479
|
description: "Starting row at the narrow breakpoint.",
|
|
5467
|
-
type:
|
|
5480
|
+
type: A
|
|
5468
5481
|
},
|
|
5469
5482
|
rowStartWide: {
|
|
5470
5483
|
description: "Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",
|
|
5471
|
-
type:
|
|
5484
|
+
type: A
|
|
5472
5485
|
},
|
|
5473
5486
|
colSpanNarrow: {
|
|
5474
5487
|
description: "Columns spanned at the narrow breakpoint.",
|
|
5475
|
-
type:
|
|
5488
|
+
type: A
|
|
5476
5489
|
},
|
|
5477
5490
|
colStartNarrow: {
|
|
5478
5491
|
description: "Starting column at the narrow breakpoint.",
|
|
5479
|
-
type:
|
|
5492
|
+
type: A
|
|
5480
5493
|
},
|
|
5481
5494
|
colSpanWide: {
|
|
5482
5495
|
description: "Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",
|
|
5483
|
-
type:
|
|
5496
|
+
type: A
|
|
5484
5497
|
},
|
|
5485
5498
|
colStartWide: {
|
|
5486
5499
|
description: "Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",
|
|
5487
|
-
type:
|
|
5500
|
+
type: A
|
|
5488
5501
|
}
|
|
5489
5502
|
},
|
|
5490
5503
|
events: {},
|
|
@@ -5583,16 +5596,16 @@ const Oi = {
|
|
|
5583
5596
|
]
|
|
5584
5597
|
}
|
|
5585
5598
|
};
|
|
5586
|
-
function
|
|
5599
|
+
function De({
|
|
5587
5600
|
align: t = "start",
|
|
5588
5601
|
id: n,
|
|
5589
5602
|
level: e,
|
|
5590
5603
|
opticalAlign: i,
|
|
5591
5604
|
responsive: r,
|
|
5592
5605
|
size: a = "md",
|
|
5593
|
-
text:
|
|
5606
|
+
text: o
|
|
5594
5607
|
}) {
|
|
5595
|
-
const
|
|
5608
|
+
const d = v(n);
|
|
5596
5609
|
return {
|
|
5597
5610
|
kind: "element",
|
|
5598
5611
|
tag: e ? `h${e}` : "span",
|
|
@@ -5602,15 +5615,15 @@ function ve({
|
|
|
5602
5615
|
"data-optical-align": i,
|
|
5603
5616
|
"data-responsive": r,
|
|
5604
5617
|
"data-size": a,
|
|
5605
|
-
id:
|
|
5618
|
+
id: d
|
|
5606
5619
|
},
|
|
5607
|
-
children: [{ kind: "text", value:
|
|
5620
|
+
children: [{ kind: "text", value: o }]
|
|
5608
5621
|
};
|
|
5609
5622
|
}
|
|
5610
|
-
function
|
|
5611
|
-
return
|
|
5623
|
+
function nn(t) {
|
|
5624
|
+
return m(De(t));
|
|
5612
5625
|
}
|
|
5613
|
-
const
|
|
5626
|
+
const rn = {
|
|
5614
5627
|
name: "heading",
|
|
5615
5628
|
description: "Use `heading` to render heading text with consistent type.",
|
|
5616
5629
|
output: {
|
|
@@ -5705,114 +5718,247 @@ const Ri = {
|
|
|
5705
5718
|
]
|
|
5706
5719
|
}
|
|
5707
5720
|
};
|
|
5708
|
-
function
|
|
5721
|
+
function Ve({
|
|
5709
5722
|
adaptive: t,
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5723
|
+
animated: n,
|
|
5724
|
+
alt: e = "",
|
|
5725
|
+
aspectRatio: i,
|
|
5726
|
+
fit: r = "intrinsic",
|
|
5727
|
+
gravity: a = "C",
|
|
5728
|
+
height: o,
|
|
5715
5729
|
id: d,
|
|
5716
|
-
lazy:
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
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
|
|
5725
5741
|
}) {
|
|
5726
|
-
const
|
|
5727
|
-
const
|
|
5728
|
-
if (!
|
|
5729
|
-
throw new Error(`sources[${
|
|
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.`);
|
|
5730
5746
|
return {
|
|
5731
|
-
height:
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
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
|
|
5737
5755
|
};
|
|
5738
5756
|
}) || [];
|
|
5739
|
-
if (!
|
|
5757
|
+
if (!x)
|
|
5740
5758
|
throw new Error("src must be a non-empty string.");
|
|
5741
5759
|
if (t && [
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
...
|
|
5745
|
-
].some((
|
|
5760
|
+
x,
|
|
5761
|
+
z,
|
|
5762
|
+
...M.map((u) => u.srcSet)
|
|
5763
|
+
].some((u) => u?.includes("#")))
|
|
5746
5764
|
throw new Error("adaptive sources must not contain URL fragments.");
|
|
5747
|
-
const
|
|
5748
|
-
|
|
5749
|
-
|
|
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)
|
|
5750
5794
|
throw new Error(
|
|
5751
5795
|
"adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace."
|
|
5752
5796
|
);
|
|
5753
|
-
return [`${
|
|
5754
|
-
}).join(", "),
|
|
5755
|
-
const
|
|
5797
|
+
return [`${y}#${C}`, ...g].join(" ");
|
|
5798
|
+
}).join(", "), nt = (u) => {
|
|
5799
|
+
const C = {
|
|
5756
5800
|
kind: "element",
|
|
5757
5801
|
tag: "img",
|
|
5758
5802
|
attrs: {
|
|
5759
|
-
alt:
|
|
5803
|
+
alt: e,
|
|
5760
5804
|
class: "img",
|
|
5761
|
-
"data-scheme":
|
|
5762
|
-
fetchpriority:
|
|
5763
|
-
height:
|
|
5764
|
-
loading:
|
|
5765
|
-
sizes:
|
|
5766
|
-
src:
|
|
5767
|
-
srcset:
|
|
5768
|
-
width:
|
|
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
|
|
5769
5813
|
},
|
|
5770
5814
|
children: []
|
|
5771
5815
|
};
|
|
5772
|
-
if (
|
|
5773
|
-
return
|
|
5774
|
-
const
|
|
5816
|
+
if (M.length === 0)
|
|
5817
|
+
return C;
|
|
5818
|
+
const I = M.map((y) => ({
|
|
5775
5819
|
kind: "element",
|
|
5776
5820
|
tag: "source",
|
|
5777
5821
|
attrs: {
|
|
5778
|
-
height:
|
|
5779
|
-
media:
|
|
5780
|
-
sizes:
|
|
5781
|
-
srcset:
|
|
5782
|
-
type:
|
|
5783
|
-
width:
|
|
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
|
|
5784
5828
|
},
|
|
5785
5829
|
children: []
|
|
5786
5830
|
}));
|
|
5787
5831
|
return {
|
|
5788
5832
|
kind: "element",
|
|
5789
5833
|
tag: "picture",
|
|
5790
|
-
attrs: { "data-scheme":
|
|
5791
|
-
children: [...
|
|
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]
|
|
5792
5936
|
};
|
|
5793
|
-
},
|
|
5794
|
-
return
|
|
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`), {
|
|
5795
5939
|
kind: "element",
|
|
5796
5940
|
tag: "div",
|
|
5797
5941
|
attrs: {
|
|
5798
5942
|
class: "set-image",
|
|
5799
5943
|
"data-adaptive": !!t,
|
|
5800
|
-
"data-
|
|
5801
|
-
"data-
|
|
5802
|
-
"data-
|
|
5803
|
-
"data-
|
|
5804
|
-
"data-
|
|
5805
|
-
"data-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
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
|
|
5810
5956
|
};
|
|
5811
5957
|
}
|
|
5812
|
-
function
|
|
5813
|
-
return
|
|
5958
|
+
function He(t) {
|
|
5959
|
+
return m(Ve(t));
|
|
5814
5960
|
}
|
|
5815
|
-
const
|
|
5961
|
+
const an = {
|
|
5816
5962
|
name: "image",
|
|
5817
5963
|
description: "Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",
|
|
5818
5964
|
output: { element: "div", class: "set-image" },
|
|
@@ -5820,7 +5966,12 @@ const Wi = {
|
|
|
5820
5966
|
props: {
|
|
5821
5967
|
adaptive: {
|
|
5822
5968
|
default: !1,
|
|
5823
|
-
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.",
|
|
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.",
|
|
5824
5975
|
type: { kind: "boolean" }
|
|
5825
5976
|
},
|
|
5826
5977
|
alt: {
|
|
@@ -5905,6 +6056,14 @@ const Wi = {
|
|
|
5905
6056
|
required: !0,
|
|
5906
6057
|
type: { kind: "string" }
|
|
5907
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
|
+
},
|
|
5908
6067
|
type: {
|
|
5909
6068
|
description: "MIME type for the source resources.",
|
|
5910
6069
|
type: { kind: "string" }
|
|
@@ -5920,6 +6079,15 @@ const Wi = {
|
|
|
5920
6079
|
description: "Candidate sources for the fallback image.",
|
|
5921
6080
|
type: { kind: "string" }
|
|
5922
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
|
+
},
|
|
5923
6091
|
src: {
|
|
5924
6092
|
description: "Image source URL.",
|
|
5925
6093
|
required: !0,
|
|
@@ -5938,6 +6106,16 @@ const Wi = {
|
|
|
5938
6106
|
attribute: "data-adaptive",
|
|
5939
6107
|
condition: { kind: "when-truthy", prop: "adaptive" }
|
|
5940
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
|
+
},
|
|
5941
6119
|
{
|
|
5942
6120
|
target: { on: "host" },
|
|
5943
6121
|
attribute: "data-object-fit",
|
|
@@ -6010,16 +6188,16 @@ const Wi = {
|
|
|
6010
6188
|
]
|
|
6011
6189
|
}
|
|
6012
6190
|
};
|
|
6013
|
-
function
|
|
6191
|
+
function Ne({
|
|
6014
6192
|
align: t = "center",
|
|
6015
6193
|
as: n = "div",
|
|
6016
6194
|
children: e,
|
|
6017
6195
|
gap: i = "md",
|
|
6018
6196
|
id: r,
|
|
6019
6197
|
justify: a = "start",
|
|
6020
|
-
nowrap:
|
|
6198
|
+
nowrap: o
|
|
6021
6199
|
}) {
|
|
6022
|
-
const
|
|
6200
|
+
const d = v(r);
|
|
6023
6201
|
return {
|
|
6024
6202
|
kind: "element",
|
|
6025
6203
|
tag: n,
|
|
@@ -6028,16 +6206,16 @@ function we({
|
|
|
6028
6206
|
"data-align": t === "center" ? void 0 : t,
|
|
6029
6207
|
"data-gap": i,
|
|
6030
6208
|
"data-justify": a === "start" ? void 0 : a,
|
|
6031
|
-
"data-nowrap":
|
|
6032
|
-
id:
|
|
6209
|
+
"data-nowrap": o,
|
|
6210
|
+
id: d
|
|
6033
6211
|
},
|
|
6034
6212
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
6035
6213
|
};
|
|
6036
6214
|
}
|
|
6037
|
-
function
|
|
6038
|
-
return
|
|
6215
|
+
function on(t) {
|
|
6216
|
+
return m(Ne(t));
|
|
6039
6217
|
}
|
|
6040
|
-
const
|
|
6218
|
+
const dn = {
|
|
6041
6219
|
name: "inline",
|
|
6042
6220
|
description: "Use `inline` to lay out content in a horizontal row.",
|
|
6043
6221
|
output: {
|
|
@@ -6122,79 +6300,79 @@ const $i = {
|
|
|
6122
6300
|
]
|
|
6123
6301
|
}
|
|
6124
6302
|
};
|
|
6125
|
-
function
|
|
6303
|
+
function Be({
|
|
6126
6304
|
autocomplete: t,
|
|
6127
6305
|
description: n,
|
|
6128
6306
|
disabled: e,
|
|
6129
6307
|
id: i,
|
|
6130
6308
|
invalid: r,
|
|
6131
6309
|
label: a,
|
|
6132
|
-
name:
|
|
6133
|
-
pattern:
|
|
6310
|
+
name: o,
|
|
6311
|
+
pattern: d,
|
|
6134
6312
|
readOnly: s,
|
|
6135
|
-
required:
|
|
6136
|
-
size:
|
|
6313
|
+
required: p,
|
|
6314
|
+
size: l = "md",
|
|
6137
6315
|
spellcheck: c,
|
|
6138
|
-
type:
|
|
6139
|
-
value:
|
|
6140
|
-
inlineSize:
|
|
6316
|
+
type: h = "text",
|
|
6317
|
+
value: b,
|
|
6318
|
+
inlineSize: S = "full"
|
|
6141
6319
|
}) {
|
|
6142
|
-
const
|
|
6143
|
-
if (!
|
|
6320
|
+
const f = i.trim(), E = n?.trim(), q = t === !1 ? !1 : t?.trim(), w = o?.trim(), k = d?.trim(), L = b;
|
|
6321
|
+
if (!f)
|
|
6144
6322
|
throw new Error("id must be a non-empty string.");
|
|
6145
|
-
if (!
|
|
6323
|
+
if (!V(f))
|
|
6146
6324
|
throw new Error(
|
|
6147
6325
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
6148
6326
|
);
|
|
6149
|
-
const
|
|
6327
|
+
const x = E ? `${f}-description` : void 0, z = h === "numeric", _ = z ? "text" : h, D = k || (z ? "^[0-9]*$" : void 0), N = c === void 0 && z ? !1 : c, M = !!e, U = !M && !!s, $ = [
|
|
6150
6328
|
{
|
|
6151
6329
|
kind: "element",
|
|
6152
6330
|
tag: "label",
|
|
6153
|
-
attrs: { class: "label", for:
|
|
6331
|
+
attrs: { class: "label", for: f },
|
|
6154
6332
|
children: [{ kind: "text", value: a }]
|
|
6155
6333
|
},
|
|
6156
6334
|
{
|
|
6157
6335
|
kind: "element",
|
|
6158
6336
|
tag: "input",
|
|
6159
6337
|
attrs: {
|
|
6160
|
-
"aria-describedby":
|
|
6161
|
-
"aria-invalid": !
|
|
6162
|
-
autocomplete:
|
|
6338
|
+
"aria-describedby": x,
|
|
6339
|
+
"aria-invalid": !M && !U && !!r ? "true" : void 0,
|
|
6340
|
+
autocomplete: q === !1 ? "off" : q || void 0,
|
|
6163
6341
|
class: "input",
|
|
6164
|
-
disabled:
|
|
6165
|
-
id:
|
|
6166
|
-
inputmode:
|
|
6167
|
-
name:
|
|
6168
|
-
pattern:
|
|
6169
|
-
readonly:
|
|
6170
|
-
required: !!
|
|
6171
|
-
spellcheck:
|
|
6172
|
-
type:
|
|
6173
|
-
value:
|
|
6342
|
+
disabled: M,
|
|
6343
|
+
id: f,
|
|
6344
|
+
inputmode: z ? "numeric" : void 0,
|
|
6345
|
+
name: w || void 0,
|
|
6346
|
+
pattern: D,
|
|
6347
|
+
readonly: U,
|
|
6348
|
+
required: !!p,
|
|
6349
|
+
spellcheck: N === void 0 ? void 0 : String(N),
|
|
6350
|
+
type: _,
|
|
6351
|
+
value: L
|
|
6174
6352
|
},
|
|
6175
6353
|
children: []
|
|
6176
6354
|
}
|
|
6177
6355
|
];
|
|
6178
|
-
return
|
|
6356
|
+
return E && $.push({
|
|
6179
6357
|
kind: "element",
|
|
6180
6358
|
tag: "p",
|
|
6181
|
-
attrs: { class: "description", id:
|
|
6182
|
-
children: [{ kind: "text", value:
|
|
6359
|
+
attrs: { class: "description", id: x },
|
|
6360
|
+
children: [{ kind: "text", value: E }]
|
|
6183
6361
|
}), {
|
|
6184
6362
|
kind: "element",
|
|
6185
6363
|
tag: "div",
|
|
6186
6364
|
attrs: {
|
|
6187
6365
|
class: "set-input",
|
|
6188
|
-
"data-size":
|
|
6189
|
-
"data-inline-size":
|
|
6366
|
+
"data-size": l,
|
|
6367
|
+
"data-inline-size": S === "fit" ? "fit" : void 0
|
|
6190
6368
|
},
|
|
6191
|
-
children:
|
|
6369
|
+
children: $
|
|
6192
6370
|
};
|
|
6193
6371
|
}
|
|
6194
|
-
function
|
|
6195
|
-
return
|
|
6372
|
+
function sn(t) {
|
|
6373
|
+
return m(Be(t));
|
|
6196
6374
|
}
|
|
6197
|
-
const
|
|
6375
|
+
const ln = {
|
|
6198
6376
|
name: "input",
|
|
6199
6377
|
description: "Use `input` to collect a single line of text from users.",
|
|
6200
6378
|
output: { element: "div", class: "set-input" },
|
|
@@ -6389,7 +6567,7 @@ const Zi = {
|
|
|
6389
6567
|
}
|
|
6390
6568
|
]
|
|
6391
6569
|
}
|
|
6392
|
-
},
|
|
6570
|
+
}, Oe = "0 0 6714.6 1200", Pe = "0 0 600 1200", Re = [
|
|
6393
6571
|
{ x: 0, y: 0 },
|
|
6394
6572
|
{ x: 300, y: 0 },
|
|
6395
6573
|
{ x: 150, y: 300 },
|
|
@@ -6398,11 +6576,11 @@ const Zi = {
|
|
|
6398
6576
|
{ x: 300, y: 600 },
|
|
6399
6577
|
{ x: 150, y: 900 },
|
|
6400
6578
|
{ x: 450, y: 900 }
|
|
6401
|
-
],
|
|
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 = () => ({
|
|
6402
6580
|
kind: "element",
|
|
6403
6581
|
tag: "g",
|
|
6404
6582
|
attrs: { class: "mark" },
|
|
6405
|
-
children:
|
|
6583
|
+
children: Re.map(({ x: t, y: n }) => ({
|
|
6406
6584
|
kind: "element",
|
|
6407
6585
|
tag: "rect",
|
|
6408
6586
|
attrs: {
|
|
@@ -6413,19 +6591,19 @@ const Zi = {
|
|
|
6413
6591
|
},
|
|
6414
6592
|
children: []
|
|
6415
6593
|
}))
|
|
6416
|
-
}),
|
|
6594
|
+
}), $e = () => ({
|
|
6417
6595
|
kind: "element",
|
|
6418
6596
|
tag: "g",
|
|
6419
|
-
attrs: { class: "word", transform: `translate(${
|
|
6597
|
+
attrs: { class: "word", transform: `translate(${Ue} 0)` },
|
|
6420
6598
|
children: [
|
|
6421
6599
|
{
|
|
6422
6600
|
kind: "element",
|
|
6423
6601
|
tag: "path",
|
|
6424
|
-
attrs: { d:
|
|
6602
|
+
attrs: { d: We },
|
|
6425
6603
|
children: []
|
|
6426
6604
|
}
|
|
6427
6605
|
]
|
|
6428
|
-
}),
|
|
6606
|
+
}), Tt = (t, n) => ({
|
|
6429
6607
|
kind: "element",
|
|
6430
6608
|
tag: "svg",
|
|
6431
6609
|
attrs: {
|
|
@@ -6435,13 +6613,13 @@ const Zi = {
|
|
|
6435
6613
|
},
|
|
6436
6614
|
children: n
|
|
6437
6615
|
});
|
|
6438
|
-
function
|
|
6439
|
-
return
|
|
6616
|
+
function Ge() {
|
|
6617
|
+
return Tt(Oe, [It(), $e()]);
|
|
6440
6618
|
}
|
|
6441
|
-
function
|
|
6442
|
-
return
|
|
6619
|
+
function Ze() {
|
|
6620
|
+
return Tt(Pe, [It()]);
|
|
6443
6621
|
}
|
|
6444
|
-
function
|
|
6622
|
+
function Fe({
|
|
6445
6623
|
animated: t,
|
|
6446
6624
|
id: n,
|
|
6447
6625
|
label: e,
|
|
@@ -6449,7 +6627,7 @@ function Te({
|
|
|
6449
6627
|
tone: r = "default",
|
|
6450
6628
|
variant: a = "primary"
|
|
6451
6629
|
}) {
|
|
6452
|
-
const
|
|
6630
|
+
const o = v(n), d = !!t && (a === "primary" || a === "graphic"), s = [
|
|
6453
6631
|
{
|
|
6454
6632
|
kind: "element",
|
|
6455
6633
|
tag: "span",
|
|
@@ -6457,26 +6635,26 @@ function Te({
|
|
|
6457
6635
|
children: [{ kind: "text", value: e }]
|
|
6458
6636
|
}
|
|
6459
6637
|
];
|
|
6460
|
-
return
|
|
6461
|
-
a === "graphic" ?
|
|
6638
|
+
return d && s.push(
|
|
6639
|
+
a === "graphic" ? Ze() : Ge()
|
|
6462
6640
|
), {
|
|
6463
6641
|
kind: "element",
|
|
6464
6642
|
tag: "div",
|
|
6465
6643
|
attrs: {
|
|
6466
6644
|
class: "set-logo",
|
|
6467
|
-
"data-animated":
|
|
6645
|
+
"data-animated": d,
|
|
6468
6646
|
"data-size": i,
|
|
6469
6647
|
"data-tone": r === "neutral" ? "neutral" : void 0,
|
|
6470
6648
|
"data-variant": a === "primary" ? void 0 : a,
|
|
6471
|
-
id:
|
|
6649
|
+
id: o
|
|
6472
6650
|
},
|
|
6473
6651
|
children: s
|
|
6474
6652
|
};
|
|
6475
6653
|
}
|
|
6476
|
-
function
|
|
6477
|
-
return
|
|
6654
|
+
function pn(t) {
|
|
6655
|
+
return m(Fe(t));
|
|
6478
6656
|
}
|
|
6479
|
-
const
|
|
6657
|
+
const cn = {
|
|
6480
6658
|
name: "logo",
|
|
6481
6659
|
description: "Use `logo` to display the brand mark.",
|
|
6482
6660
|
output: { element: "div", class: "set-logo" },
|
|
@@ -6564,29 +6742,29 @@ const ji = {
|
|
|
6564
6742
|
]
|
|
6565
6743
|
}
|
|
6566
6744
|
};
|
|
6567
|
-
function
|
|
6745
|
+
function je({
|
|
6568
6746
|
banner: t,
|
|
6569
6747
|
centerMain: n,
|
|
6570
6748
|
children: e,
|
|
6571
6749
|
footer: i,
|
|
6572
6750
|
header: r,
|
|
6573
6751
|
headerBorder: a,
|
|
6574
|
-
headerSize:
|
|
6575
|
-
id:
|
|
6752
|
+
headerSize: o = "md",
|
|
6753
|
+
id: d,
|
|
6576
6754
|
stickyHeader: s
|
|
6577
6755
|
}) {
|
|
6578
|
-
const
|
|
6579
|
-
return t &&
|
|
6756
|
+
const p = v(d), l = [];
|
|
6757
|
+
return t && l.push({ kind: "raw", html: t }), l.push({
|
|
6580
6758
|
kind: "element",
|
|
6581
6759
|
tag: "header",
|
|
6582
6760
|
attrs: { class: "header" },
|
|
6583
6761
|
children: [{ kind: "raw", html: r }]
|
|
6584
|
-
}),
|
|
6762
|
+
}), l.push({
|
|
6585
6763
|
kind: "element",
|
|
6586
6764
|
tag: "main",
|
|
6587
6765
|
attrs: { class: "main" },
|
|
6588
6766
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
6589
|
-
}),
|
|
6767
|
+
}), l.push({
|
|
6590
6768
|
kind: "element",
|
|
6591
6769
|
tag: "footer",
|
|
6592
6770
|
attrs: { class: "footer" },
|
|
@@ -6598,17 +6776,17 @@ function Ae({
|
|
|
6598
6776
|
class: "set-page",
|
|
6599
6777
|
"data-center-main": n,
|
|
6600
6778
|
"data-header-border": a,
|
|
6601
|
-
"data-header-size":
|
|
6779
|
+
"data-header-size": o,
|
|
6602
6780
|
"data-sticky-header": s,
|
|
6603
|
-
id:
|
|
6781
|
+
id: p
|
|
6604
6782
|
},
|
|
6605
|
-
children:
|
|
6783
|
+
children: l
|
|
6606
6784
|
};
|
|
6607
6785
|
}
|
|
6608
|
-
function
|
|
6609
|
-
return
|
|
6786
|
+
function un(t) {
|
|
6787
|
+
return m(je(t));
|
|
6610
6788
|
}
|
|
6611
|
-
const
|
|
6789
|
+
const hn = {
|
|
6612
6790
|
name: "page",
|
|
6613
6791
|
description: "Use `page` as the primary layout for header, main, and footer regions.",
|
|
6614
6792
|
output: { element: "div", class: "set-page" },
|
|
@@ -6698,13 +6876,13 @@ const Xi = {
|
|
|
6698
6876
|
]
|
|
6699
6877
|
}
|
|
6700
6878
|
};
|
|
6701
|
-
function
|
|
6879
|
+
function Ke({
|
|
6702
6880
|
children: t,
|
|
6703
6881
|
id: n,
|
|
6704
6882
|
padding: e = "md",
|
|
6705
6883
|
surface: i
|
|
6706
6884
|
}) {
|
|
6707
|
-
const r =
|
|
6885
|
+
const r = v(n);
|
|
6708
6886
|
return {
|
|
6709
6887
|
kind: "element",
|
|
6710
6888
|
tag: "div",
|
|
@@ -6717,10 +6895,10 @@ function _e({
|
|
|
6717
6895
|
children: t ? [{ kind: "raw", html: t }] : []
|
|
6718
6896
|
};
|
|
6719
6897
|
}
|
|
6720
|
-
function
|
|
6721
|
-
return
|
|
6898
|
+
function mn(t) {
|
|
6899
|
+
return m(Ke(t));
|
|
6722
6900
|
}
|
|
6723
|
-
const
|
|
6901
|
+
const kn = {
|
|
6724
6902
|
name: "panel",
|
|
6725
6903
|
description: "Use `panel` to group related content in a contained region.",
|
|
6726
6904
|
output: { element: "div", class: "set-panel" },
|
|
@@ -6771,14 +6949,14 @@ const Yi = {
|
|
|
6771
6949
|
]
|
|
6772
6950
|
}
|
|
6773
6951
|
};
|
|
6774
|
-
function
|
|
6952
|
+
function Xe({
|
|
6775
6953
|
children: t,
|
|
6776
6954
|
id: n,
|
|
6777
6955
|
size: e = "md",
|
|
6778
6956
|
tone: i = "default",
|
|
6779
6957
|
variant: r = "tile"
|
|
6780
6958
|
} = {}) {
|
|
6781
|
-
const a =
|
|
6959
|
+
const a = v(n);
|
|
6782
6960
|
return {
|
|
6783
6961
|
kind: "element",
|
|
6784
6962
|
tag: "div",
|
|
@@ -6792,10 +6970,10 @@ function De({
|
|
|
6792
6970
|
children: t ? [{ kind: "raw", html: t }] : []
|
|
6793
6971
|
};
|
|
6794
6972
|
}
|
|
6795
|
-
function
|
|
6796
|
-
return
|
|
6973
|
+
function gn(t = {}) {
|
|
6974
|
+
return m(Xe(t));
|
|
6797
6975
|
}
|
|
6798
|
-
const
|
|
6976
|
+
const bn = {
|
|
6799
6977
|
name: "pattern",
|
|
6800
6978
|
description: "Use `pattern` to render repeated visual language components behind content.",
|
|
6801
6979
|
output: { element: "div", class: "set-pattern" },
|
|
@@ -6862,22 +7040,22 @@ const tn = {
|
|
|
6862
7040
|
]
|
|
6863
7041
|
}
|
|
6864
7042
|
};
|
|
6865
|
-
function
|
|
6866
|
-
return
|
|
7043
|
+
function vn(t) {
|
|
7044
|
+
return He({
|
|
6867
7045
|
...t,
|
|
6868
7046
|
alt: "",
|
|
6869
7047
|
fit: "cover",
|
|
6870
7048
|
priority: !0
|
|
6871
7049
|
});
|
|
6872
7050
|
}
|
|
6873
|
-
function
|
|
7051
|
+
function Qe({
|
|
6874
7052
|
children: t,
|
|
6875
7053
|
contentTheme: n,
|
|
6876
7054
|
id: e,
|
|
6877
7055
|
media: i,
|
|
6878
7056
|
surface: r
|
|
6879
7057
|
}) {
|
|
6880
|
-
const a =
|
|
7058
|
+
const a = v(e), o = n ? r ?? "default" : r, d = [
|
|
6881
7059
|
{
|
|
6882
7060
|
kind: "element",
|
|
6883
7061
|
tag: "div",
|
|
@@ -6885,7 +7063,7 @@ function He({
|
|
|
6885
7063
|
children: [{ kind: "raw", html: i }]
|
|
6886
7064
|
}
|
|
6887
7065
|
];
|
|
6888
|
-
return t &&
|
|
7066
|
+
return t && d.push({
|
|
6889
7067
|
kind: "element",
|
|
6890
7068
|
tag: "div",
|
|
6891
7069
|
attrs: { class: "content" },
|
|
@@ -6896,16 +7074,16 @@ function He({
|
|
|
6896
7074
|
attrs: {
|
|
6897
7075
|
class: "set-poster",
|
|
6898
7076
|
"data-set-content-theme": n,
|
|
6899
|
-
"data-set-surface":
|
|
7077
|
+
"data-set-surface": o,
|
|
6900
7078
|
id: a
|
|
6901
7079
|
},
|
|
6902
|
-
children:
|
|
7080
|
+
children: d
|
|
6903
7081
|
};
|
|
6904
7082
|
}
|
|
6905
|
-
function
|
|
6906
|
-
return
|
|
7083
|
+
function fn(t) {
|
|
7084
|
+
return m(Qe(t));
|
|
6907
7085
|
}
|
|
6908
|
-
const
|
|
7086
|
+
const yn = {
|
|
6909
7087
|
name: "poster",
|
|
6910
7088
|
description: "Use `poster` to layer content over background media.",
|
|
6911
7089
|
output: { element: "div", class: "set-poster" },
|
|
@@ -6976,17 +7154,17 @@ const rn = {
|
|
|
6976
7154
|
]
|
|
6977
7155
|
}
|
|
6978
7156
|
};
|
|
6979
|
-
function
|
|
7157
|
+
function Ye({
|
|
6980
7158
|
align: t = "start",
|
|
6981
7159
|
children: n,
|
|
6982
7160
|
hangingPunctuation: e,
|
|
6983
7161
|
id: i,
|
|
6984
7162
|
linkVisited: r = !0,
|
|
6985
7163
|
measured: a = !0,
|
|
6986
|
-
monospaced:
|
|
6987
|
-
responsive:
|
|
7164
|
+
monospaced: o,
|
|
7165
|
+
responsive: d
|
|
6988
7166
|
}) {
|
|
6989
|
-
const s =
|
|
7167
|
+
const s = v(i);
|
|
6990
7168
|
return {
|
|
6991
7169
|
kind: "element",
|
|
6992
7170
|
tag: "div",
|
|
@@ -6996,17 +7174,17 @@ function Ve({
|
|
|
6996
7174
|
"data-hanging-punctuation": e,
|
|
6997
7175
|
"data-link-visited": r ? void 0 : "off",
|
|
6998
7176
|
"data-measured": a,
|
|
6999
|
-
"data-monospaced":
|
|
7000
|
-
"data-responsive":
|
|
7177
|
+
"data-monospaced": o,
|
|
7178
|
+
"data-responsive": d,
|
|
7001
7179
|
id: s
|
|
7002
7180
|
},
|
|
7003
7181
|
children: [{ kind: "raw", html: n }]
|
|
7004
7182
|
};
|
|
7005
7183
|
}
|
|
7006
|
-
function
|
|
7007
|
-
return
|
|
7184
|
+
function wn(t) {
|
|
7185
|
+
return m(Ye(t));
|
|
7008
7186
|
}
|
|
7009
|
-
const
|
|
7187
|
+
const Sn = {
|
|
7010
7188
|
name: "prose",
|
|
7011
7189
|
description: "Use `prose` to style rich-text markup.",
|
|
7012
7190
|
output: { element: "div", class: "set-prose" },
|
|
@@ -7100,47 +7278,47 @@ const on = {
|
|
|
7100
7278
|
]
|
|
7101
7279
|
}
|
|
7102
7280
|
};
|
|
7103
|
-
function
|
|
7281
|
+
function Je({
|
|
7104
7282
|
description: t,
|
|
7105
7283
|
disabled: n,
|
|
7106
7284
|
id: e,
|
|
7107
7285
|
invalid: i,
|
|
7108
7286
|
radios: r,
|
|
7109
7287
|
legend: a,
|
|
7110
|
-
name:
|
|
7111
|
-
orientation:
|
|
7288
|
+
name: o,
|
|
7289
|
+
orientation: d = "vertical",
|
|
7112
7290
|
required: s,
|
|
7113
|
-
size:
|
|
7114
|
-
value:
|
|
7291
|
+
size: p = "md",
|
|
7292
|
+
value: l
|
|
7115
7293
|
}) {
|
|
7116
|
-
const c = e.trim(),
|
|
7294
|
+
const c = e.trim(), h = o.trim(), b = l?.trim();
|
|
7117
7295
|
if (!c)
|
|
7118
7296
|
throw new Error("id must be a non-empty string.");
|
|
7119
|
-
if (!
|
|
7297
|
+
if (!V(c))
|
|
7120
7298
|
throw new Error(
|
|
7121
7299
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
7122
7300
|
);
|
|
7123
|
-
if (!
|
|
7301
|
+
if (!h)
|
|
7124
7302
|
throw new Error("name must be a non-empty string.");
|
|
7125
7303
|
if (r.length < 2)
|
|
7126
7304
|
throw new Error("radios must include at least 2 options.");
|
|
7127
|
-
const
|
|
7128
|
-
const
|
|
7129
|
-
if (!
|
|
7130
|
-
throw new Error(`radios[${
|
|
7131
|
-
if (!
|
|
7132
|
-
throw new Error(`radios[${
|
|
7305
|
+
const S = r.map((k, L) => {
|
|
7306
|
+
const x = k.value.trim(), z = k.label.trim(), _ = k.description?.trim();
|
|
7307
|
+
if (!x)
|
|
7308
|
+
throw new Error(`radios[${L}].value must be non-empty.`);
|
|
7309
|
+
if (!z)
|
|
7310
|
+
throw new Error(`radios[${L}].label must be non-empty.`);
|
|
7133
7311
|
return {
|
|
7134
|
-
description:
|
|
7135
|
-
disabled: !!
|
|
7136
|
-
label:
|
|
7137
|
-
value:
|
|
7312
|
+
description: _,
|
|
7313
|
+
disabled: !!k.disabled,
|
|
7314
|
+
label: z,
|
|
7315
|
+
value: x
|
|
7138
7316
|
};
|
|
7139
7317
|
});
|
|
7140
|
-
if (new Set(
|
|
7318
|
+
if (new Set(S.map((k) => k.value)).size !== S.length)
|
|
7141
7319
|
throw new Error("radios values must be unique.");
|
|
7142
|
-
const
|
|
7143
|
-
const
|
|
7320
|
+
const E = !!n, q = S.map((k) => {
|
|
7321
|
+
const L = !!k.disabled, x = k.description ? `${c}-${k.value}-description` : void 0, z = [
|
|
7144
7322
|
{
|
|
7145
7323
|
kind: "element",
|
|
7146
7324
|
tag: "label",
|
|
@@ -7150,14 +7328,14 @@ function Ne({
|
|
|
7150
7328
|
kind: "element",
|
|
7151
7329
|
tag: "input",
|
|
7152
7330
|
attrs: {
|
|
7153
|
-
"aria-describedby":
|
|
7154
|
-
checked:
|
|
7331
|
+
"aria-describedby": x,
|
|
7332
|
+
checked: b === k.value,
|
|
7155
7333
|
class: "radio",
|
|
7156
|
-
disabled:
|
|
7157
|
-
name:
|
|
7158
|
-
required: !!s && !
|
|
7334
|
+
disabled: L,
|
|
7335
|
+
name: h,
|
|
7336
|
+
required: !!s && !E && !L,
|
|
7159
7337
|
type: "radio",
|
|
7160
|
-
value:
|
|
7338
|
+
value: k.value
|
|
7161
7339
|
},
|
|
7162
7340
|
children: []
|
|
7163
7341
|
},
|
|
@@ -7165,45 +7343,45 @@ function Ne({
|
|
|
7165
7343
|
kind: "element",
|
|
7166
7344
|
tag: "span",
|
|
7167
7345
|
attrs: {},
|
|
7168
|
-
children: [{ kind: "text", value:
|
|
7346
|
+
children: [{ kind: "text", value: k.label }]
|
|
7169
7347
|
}
|
|
7170
7348
|
]
|
|
7171
7349
|
}
|
|
7172
7350
|
];
|
|
7173
|
-
return
|
|
7351
|
+
return k.description && z.push({
|
|
7174
7352
|
kind: "element",
|
|
7175
7353
|
tag: "p",
|
|
7176
|
-
attrs: { class: "radio-description", id:
|
|
7177
|
-
children: [{ kind: "text", value:
|
|
7354
|
+
attrs: { class: "radio-description", id: x },
|
|
7355
|
+
children: [{ kind: "text", value: k.description }]
|
|
7178
7356
|
}), {
|
|
7179
7357
|
kind: "element",
|
|
7180
7358
|
tag: "div",
|
|
7181
7359
|
attrs: { class: "radio-field" },
|
|
7182
|
-
children:
|
|
7360
|
+
children: z
|
|
7183
7361
|
};
|
|
7184
7362
|
});
|
|
7185
|
-
return
|
|
7186
|
-
children:
|
|
7363
|
+
return qt({
|
|
7364
|
+
children: m({
|
|
7187
7365
|
kind: "element",
|
|
7188
7366
|
tag: "div",
|
|
7189
7367
|
attrs: {
|
|
7190
7368
|
class: "set-radios",
|
|
7191
|
-
"data-orientation":
|
|
7192
|
-
"data-size":
|
|
7369
|
+
"data-orientation": d,
|
|
7370
|
+
"data-size": p
|
|
7193
7371
|
},
|
|
7194
|
-
children:
|
|
7372
|
+
children: q
|
|
7195
7373
|
}),
|
|
7196
7374
|
description: t,
|
|
7197
|
-
disabled:
|
|
7375
|
+
disabled: E,
|
|
7198
7376
|
id: c,
|
|
7199
7377
|
invalid: i,
|
|
7200
7378
|
legend: a
|
|
7201
7379
|
});
|
|
7202
7380
|
}
|
|
7203
|
-
function
|
|
7204
|
-
return
|
|
7381
|
+
function xn(t) {
|
|
7382
|
+
return m(Je(t));
|
|
7205
7383
|
}
|
|
7206
|
-
const
|
|
7384
|
+
const En = {
|
|
7207
7385
|
name: "radios",
|
|
7208
7386
|
description: "Use `radios` to let users select one option from a short list.",
|
|
7209
7387
|
output: { element: "fieldset", class: "set-fieldset" },
|
|
@@ -7352,17 +7530,17 @@ const sn = {
|
|
|
7352
7530
|
]
|
|
7353
7531
|
}
|
|
7354
7532
|
};
|
|
7355
|
-
function
|
|
7533
|
+
function ti({
|
|
7356
7534
|
appOverscrollBehavior: t,
|
|
7357
7535
|
appRoot: n,
|
|
7358
7536
|
brand: e = "mnsp",
|
|
7359
7537
|
children: i,
|
|
7360
7538
|
dir: r,
|
|
7361
7539
|
id: a,
|
|
7362
|
-
lang:
|
|
7363
|
-
theme:
|
|
7540
|
+
lang: o,
|
|
7541
|
+
theme: d
|
|
7364
7542
|
}) {
|
|
7365
|
-
const s =
|
|
7543
|
+
const s = v(a);
|
|
7366
7544
|
return {
|
|
7367
7545
|
kind: "element",
|
|
7368
7546
|
tag: "div",
|
|
@@ -7371,18 +7549,18 @@ function Oe({
|
|
|
7371
7549
|
"data-app-root": n,
|
|
7372
7550
|
"data-app-overscroll-behavior": t === "none" ? "none" : void 0,
|
|
7373
7551
|
"data-set-brand": e,
|
|
7374
|
-
"data-set-theme":
|
|
7552
|
+
"data-set-theme": d,
|
|
7375
7553
|
id: s,
|
|
7376
|
-
lang:
|
|
7554
|
+
lang: o === "" ? void 0 : o,
|
|
7377
7555
|
dir: r
|
|
7378
7556
|
},
|
|
7379
7557
|
children: i ? [{ kind: "raw", html: i }] : []
|
|
7380
7558
|
};
|
|
7381
7559
|
}
|
|
7382
|
-
function
|
|
7383
|
-
return
|
|
7560
|
+
function zn(t) {
|
|
7561
|
+
return m(ti(t));
|
|
7384
7562
|
}
|
|
7385
|
-
const
|
|
7563
|
+
const Cn = {
|
|
7386
7564
|
name: "root",
|
|
7387
7565
|
description: "Mandatory top-level `root` wrapper for the Set system.",
|
|
7388
7566
|
output: { element: "div", class: "set" },
|
|
@@ -7475,13 +7653,13 @@ const pn = {
|
|
|
7475
7653
|
]
|
|
7476
7654
|
}
|
|
7477
7655
|
};
|
|
7478
|
-
function
|
|
7656
|
+
function ei({
|
|
7479
7657
|
id: t,
|
|
7480
7658
|
label: n,
|
|
7481
7659
|
size: e = "md",
|
|
7482
7660
|
tone: i = "default"
|
|
7483
7661
|
} = {}) {
|
|
7484
|
-
const r =
|
|
7662
|
+
const r = v(t), o = [
|
|
7485
7663
|
{
|
|
7486
7664
|
kind: "element",
|
|
7487
7665
|
tag: "svg",
|
|
@@ -7500,12 +7678,12 @@ function Pe({
|
|
|
7500
7678
|
[360, 660],
|
|
7501
7679
|
[360, 360],
|
|
7502
7680
|
[360, 60]
|
|
7503
|
-
].map(([
|
|
7681
|
+
].map(([d, s]) => ({
|
|
7504
7682
|
kind: "element",
|
|
7505
7683
|
tag: "rect",
|
|
7506
7684
|
attrs: {
|
|
7507
7685
|
class: "cell",
|
|
7508
|
-
x: String(
|
|
7686
|
+
x: String(d),
|
|
7509
7687
|
y: String(s),
|
|
7510
7688
|
width: "180",
|
|
7511
7689
|
height: "180"
|
|
@@ -7514,7 +7692,7 @@ function Pe({
|
|
|
7514
7692
|
}))
|
|
7515
7693
|
}
|
|
7516
7694
|
];
|
|
7517
|
-
return n &&
|
|
7695
|
+
return n && o.push({
|
|
7518
7696
|
kind: "element",
|
|
7519
7697
|
tag: "span",
|
|
7520
7698
|
attrs: { class: "visually-hidden" },
|
|
@@ -7529,13 +7707,13 @@ function Pe({
|
|
|
7529
7707
|
id: r,
|
|
7530
7708
|
role: n ? "status" : void 0
|
|
7531
7709
|
},
|
|
7532
|
-
children:
|
|
7710
|
+
children: o
|
|
7533
7711
|
};
|
|
7534
7712
|
}
|
|
7535
|
-
function
|
|
7536
|
-
return
|
|
7713
|
+
function Ln(t = {}) {
|
|
7714
|
+
return m(ei(t));
|
|
7537
7715
|
}
|
|
7538
|
-
const
|
|
7716
|
+
const Mn = {
|
|
7539
7717
|
name: "spinner",
|
|
7540
7718
|
description: "Use `spinner` to indicate loading or in-progress state.",
|
|
7541
7719
|
output: { element: "span", class: "set-spinner" },
|
|
@@ -7593,7 +7771,7 @@ const un = {
|
|
|
7593
7771
|
]
|
|
7594
7772
|
}
|
|
7595
7773
|
};
|
|
7596
|
-
function
|
|
7774
|
+
function ii({
|
|
7597
7775
|
align: t = "stretch",
|
|
7598
7776
|
as: n = "div",
|
|
7599
7777
|
children: e,
|
|
@@ -7601,7 +7779,7 @@ function Be({
|
|
|
7601
7779
|
id: r,
|
|
7602
7780
|
responsive: a
|
|
7603
7781
|
}) {
|
|
7604
|
-
const
|
|
7782
|
+
const o = v(r);
|
|
7605
7783
|
return {
|
|
7606
7784
|
kind: "element",
|
|
7607
7785
|
tag: n,
|
|
@@ -7610,15 +7788,15 @@ function Be({
|
|
|
7610
7788
|
"data-align": t === "stretch" ? void 0 : t,
|
|
7611
7789
|
"data-gap": i,
|
|
7612
7790
|
"data-responsive": a,
|
|
7613
|
-
id:
|
|
7791
|
+
id: o
|
|
7614
7792
|
},
|
|
7615
7793
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
7616
7794
|
};
|
|
7617
7795
|
}
|
|
7618
|
-
function
|
|
7619
|
-
return
|
|
7796
|
+
function qn(t) {
|
|
7797
|
+
return m(ii(t));
|
|
7620
7798
|
}
|
|
7621
|
-
const
|
|
7799
|
+
const In = {
|
|
7622
7800
|
name: "stack",
|
|
7623
7801
|
description: "Use `stack` to lay out content in a vertical column.",
|
|
7624
7802
|
output: {
|
|
@@ -7689,13 +7867,13 @@ const mn = {
|
|
|
7689
7867
|
]
|
|
7690
7868
|
}
|
|
7691
7869
|
};
|
|
7692
|
-
function
|
|
7870
|
+
function ni({
|
|
7693
7871
|
children: t,
|
|
7694
7872
|
contentTheme: n,
|
|
7695
7873
|
id: e,
|
|
7696
7874
|
variant: i = "default"
|
|
7697
7875
|
}) {
|
|
7698
|
-
const r =
|
|
7876
|
+
const r = v(e);
|
|
7699
7877
|
return {
|
|
7700
7878
|
kind: "element",
|
|
7701
7879
|
tag: "div",
|
|
@@ -7708,10 +7886,10 @@ function Re({
|
|
|
7708
7886
|
children: [{ kind: "raw", html: t }]
|
|
7709
7887
|
};
|
|
7710
7888
|
}
|
|
7711
|
-
function
|
|
7712
|
-
return
|
|
7889
|
+
function Tn(t) {
|
|
7890
|
+
return m(ni(t));
|
|
7713
7891
|
}
|
|
7714
|
-
const
|
|
7892
|
+
const An = {
|
|
7715
7893
|
name: "surface",
|
|
7716
7894
|
description: "Use `surface` to set a colour context for nested content.",
|
|
7717
7895
|
output: { element: "div", class: "set-surface" },
|
|
@@ -7763,20 +7941,20 @@ const gn = {
|
|
|
7763
7941
|
]
|
|
7764
7942
|
}
|
|
7765
7943
|
};
|
|
7766
|
-
function
|
|
7944
|
+
function ri({
|
|
7767
7945
|
checked: t,
|
|
7768
7946
|
description: n,
|
|
7769
7947
|
disabled: e,
|
|
7770
7948
|
id: i,
|
|
7771
7949
|
label: r,
|
|
7772
7950
|
name: a,
|
|
7773
|
-
size:
|
|
7774
|
-
value:
|
|
7951
|
+
size: o = "md",
|
|
7952
|
+
value: d
|
|
7775
7953
|
}) {
|
|
7776
|
-
const s =
|
|
7777
|
-
if (
|
|
7954
|
+
const s = v(i), p = n?.trim();
|
|
7955
|
+
if (p && !s)
|
|
7778
7956
|
throw new Error("id must be provided when description is provided.");
|
|
7779
|
-
const
|
|
7957
|
+
const l = p ? `${s}-description` : void 0, c = [
|
|
7780
7958
|
{
|
|
7781
7959
|
kind: "element",
|
|
7782
7960
|
tag: "label",
|
|
@@ -7786,7 +7964,7 @@ function We({
|
|
|
7786
7964
|
kind: "element",
|
|
7787
7965
|
tag: "input",
|
|
7788
7966
|
attrs: {
|
|
7789
|
-
"aria-describedby":
|
|
7967
|
+
"aria-describedby": l,
|
|
7790
7968
|
checked: !!t,
|
|
7791
7969
|
class: "switch",
|
|
7792
7970
|
disabled: !!e,
|
|
@@ -7794,7 +7972,7 @@ function We({
|
|
|
7794
7972
|
name: a || void 0,
|
|
7795
7973
|
role: "switch",
|
|
7796
7974
|
type: "checkbox",
|
|
7797
|
-
value:
|
|
7975
|
+
value: d || void 0
|
|
7798
7976
|
},
|
|
7799
7977
|
children: []
|
|
7800
7978
|
},
|
|
@@ -7807,22 +7985,22 @@ function We({
|
|
|
7807
7985
|
]
|
|
7808
7986
|
}
|
|
7809
7987
|
];
|
|
7810
|
-
return
|
|
7988
|
+
return p && c.push({
|
|
7811
7989
|
kind: "element",
|
|
7812
7990
|
tag: "p",
|
|
7813
|
-
attrs: { class: "description", id:
|
|
7814
|
-
children: [{ kind: "text", value:
|
|
7991
|
+
attrs: { class: "description", id: l },
|
|
7992
|
+
children: [{ kind: "text", value: p }]
|
|
7815
7993
|
}), {
|
|
7816
7994
|
kind: "element",
|
|
7817
7995
|
tag: "div",
|
|
7818
|
-
attrs: { class: "set-switch", "data-size":
|
|
7996
|
+
attrs: { class: "set-switch", "data-size": o },
|
|
7819
7997
|
children: c
|
|
7820
7998
|
};
|
|
7821
7999
|
}
|
|
7822
|
-
function
|
|
7823
|
-
return
|
|
8000
|
+
function _n(t) {
|
|
8001
|
+
return m(ri(t));
|
|
7824
8002
|
}
|
|
7825
|
-
const
|
|
8003
|
+
const Dn = {
|
|
7826
8004
|
name: "switch",
|
|
7827
8005
|
description: "Use `switch` to let users instantly toggle a setting on or off.",
|
|
7828
8006
|
output: { element: "div", class: "set-switch" },
|
|
@@ -7930,79 +8108,79 @@ const vn = {
|
|
|
7930
8108
|
]
|
|
7931
8109
|
}
|
|
7932
8110
|
};
|
|
7933
|
-
function
|
|
8111
|
+
function ai({
|
|
7934
8112
|
autocomplete: t,
|
|
7935
8113
|
description: n,
|
|
7936
8114
|
disabled: e,
|
|
7937
8115
|
id: i,
|
|
7938
8116
|
invalid: r,
|
|
7939
8117
|
label: a,
|
|
7940
|
-
name:
|
|
7941
|
-
readOnly:
|
|
8118
|
+
name: o,
|
|
8119
|
+
readOnly: d,
|
|
7942
8120
|
required: s,
|
|
7943
|
-
resize:
|
|
7944
|
-
rows:
|
|
8121
|
+
resize: p = "vertical",
|
|
8122
|
+
rows: l = 2,
|
|
7945
8123
|
size: c = "md",
|
|
7946
|
-
spellcheck:
|
|
7947
|
-
value:
|
|
7948
|
-
inlineSize:
|
|
8124
|
+
spellcheck: h,
|
|
8125
|
+
value: b,
|
|
8126
|
+
inlineSize: S = "full"
|
|
7949
8127
|
}) {
|
|
7950
|
-
const
|
|
7951
|
-
if (!
|
|
8128
|
+
const f = i.trim(), E = n?.trim(), q = t === !1 ? !1 : t?.trim(), w = o?.trim(), k = b;
|
|
8129
|
+
if (!f)
|
|
7952
8130
|
throw new Error("id must be a non-empty string.");
|
|
7953
|
-
if (!
|
|
8131
|
+
if (!V(f))
|
|
7954
8132
|
throw new Error(
|
|
7955
8133
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
7956
8134
|
);
|
|
7957
|
-
if (!Number.isInteger(
|
|
8135
|
+
if (!Number.isInteger(l) || l < 2)
|
|
7958
8136
|
throw new Error("rows must be an integer greater than or equal to 2.");
|
|
7959
|
-
const
|
|
8137
|
+
const L = E ? `${f}-description` : void 0, x = !!e, z = !x && !!d, D = [
|
|
7960
8138
|
{
|
|
7961
8139
|
kind: "element",
|
|
7962
8140
|
tag: "label",
|
|
7963
|
-
attrs: { class: "label", for:
|
|
8141
|
+
attrs: { class: "label", for: f },
|
|
7964
8142
|
children: [{ kind: "text", value: a }]
|
|
7965
8143
|
},
|
|
7966
8144
|
{
|
|
7967
8145
|
kind: "element",
|
|
7968
8146
|
tag: "textarea",
|
|
7969
8147
|
attrs: {
|
|
7970
|
-
"aria-describedby":
|
|
7971
|
-
"aria-invalid": !
|
|
7972
|
-
autocomplete:
|
|
8148
|
+
"aria-describedby": L,
|
|
8149
|
+
"aria-invalid": !x && !z && !!r ? "true" : void 0,
|
|
8150
|
+
autocomplete: q === !1 ? "off" : q || void 0,
|
|
7973
8151
|
class: "textarea",
|
|
7974
|
-
disabled:
|
|
7975
|
-
id:
|
|
7976
|
-
name:
|
|
7977
|
-
readonly:
|
|
8152
|
+
disabled: x,
|
|
8153
|
+
id: f,
|
|
8154
|
+
name: w || void 0,
|
|
8155
|
+
readonly: z,
|
|
7978
8156
|
required: !!s,
|
|
7979
|
-
rows: String(
|
|
7980
|
-
spellcheck:
|
|
8157
|
+
rows: String(l),
|
|
8158
|
+
spellcheck: h === void 0 ? void 0 : String(h)
|
|
7981
8159
|
},
|
|
7982
|
-
children: [{ kind: "text", value:
|
|
8160
|
+
children: [{ kind: "text", value: k || "" }]
|
|
7983
8161
|
}
|
|
7984
8162
|
];
|
|
7985
|
-
return
|
|
8163
|
+
return E && D.push({
|
|
7986
8164
|
kind: "element",
|
|
7987
8165
|
tag: "p",
|
|
7988
|
-
attrs: { class: "description", id:
|
|
7989
|
-
children: [{ kind: "text", value:
|
|
8166
|
+
attrs: { class: "description", id: L },
|
|
8167
|
+
children: [{ kind: "text", value: E }]
|
|
7990
8168
|
}), {
|
|
7991
8169
|
kind: "element",
|
|
7992
8170
|
tag: "div",
|
|
7993
8171
|
attrs: {
|
|
7994
8172
|
class: "set-textarea",
|
|
7995
|
-
"data-resize":
|
|
8173
|
+
"data-resize": p === "none" ? "none" : void 0,
|
|
7996
8174
|
"data-size": c,
|
|
7997
|
-
"data-inline-size":
|
|
8175
|
+
"data-inline-size": S === "fit" ? "fit" : void 0
|
|
7998
8176
|
},
|
|
7999
|
-
children:
|
|
8177
|
+
children: D
|
|
8000
8178
|
};
|
|
8001
8179
|
}
|
|
8002
|
-
function
|
|
8003
|
-
return
|
|
8180
|
+
function Vn(t) {
|
|
8181
|
+
return m(ai(t));
|
|
8004
8182
|
}
|
|
8005
|
-
const
|
|
8183
|
+
const Hn = {
|
|
8006
8184
|
name: "textarea",
|
|
8007
8185
|
description: "Use `textarea` to collect multiple lines of text from users.",
|
|
8008
8186
|
output: { element: "div", class: "set-textarea" },
|
|
@@ -8191,166 +8369,166 @@ const yn = {
|
|
|
8191
8369
|
]
|
|
8192
8370
|
}
|
|
8193
8371
|
};
|
|
8194
|
-
function
|
|
8195
|
-
|
|
8372
|
+
function Nn() {
|
|
8373
|
+
$t(), jt(), Yt(), te(), re(), oe(), pe(), he();
|
|
8196
8374
|
}
|
|
8197
8375
|
export {
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8376
|
+
St as SET_ALERT_EVENT_BEFORE_DISMISS,
|
|
8377
|
+
xt as SET_ALERT_EVENT_DISMISS,
|
|
8378
|
+
pi as SET_ALERT_SPEC,
|
|
8379
|
+
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,
|
|
8383
|
+
Ct as SET_BANNER_EVENT_DISMISS,
|
|
8384
|
+
mi as SET_BANNER_SPEC,
|
|
8385
|
+
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,
|
|
8453
|
+
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,
|
|
8532
|
+
m as serializeSetNode
|
|
8355
8533
|
};
|
|
8356
8534
|
//# sourceMappingURL=index.js.map
|