@elmethis/solid 0.1.1 → 0.3.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.
@@ -1,26 +1,25 @@
1
- import "@elmethis/core/tokens.css";
2
1
  import { Dynamic as e, addEventListener as t, classList as n, className as r, createComponent as i, delegateEvents as a, effect as o, insert as s, memo as c, mergeProps as l, setAttribute as u, setStyleProperty as d, spread as f, style as p, template as m, use as h } from "solid-js/web";
3
2
  import { For as g, Match as _, Show as v, Switch as y, children as b, createContext as x, createEffect as S, createMemo as C, createSignal as w, createUniqueId as T, getOwner as E, mergeProps as D, on as O, onCleanup as k, onMount as A, splitProps as j, untrack as M, useContext as N } from "solid-js";
4
3
  import { clsx as P } from "clsx";
5
- import { mdiAlertCircleOutline as ee, mdiApplicationOutline as te, mdiArrowDownDropCircleOutline as ne, mdiChevronRight as re, mdiClipboardCheckOutline as ie, mdiClipboardOutline as ae, mdiDownload as oe, mdiEyeOffOutline as se, mdiEyeOutline as ce, mdiFastForward10 as le, mdiFile as ue, mdiFolderOpen as de, mdiHome as fe, mdiLinkVariant as F, mdiMenuDown as pe, mdiMessageImageOutline as me, mdiMusicNote as I, mdiOpenInNew as he, mdiPause as ge, mdiPlay as _e, mdiPlus as ve, mdiRewind10 as ye, mdiText as be, mdiTextLong as xe, mdiTrashCanOutline as Se, mdiVolumeHigh as Ce, mdiVolumeLow as we, mdiVolumeMedium as Te, mdiVolumeOff as Ee } from "@mdi/js";
6
- import { AudioApi as De, BlockImageApi as Oe, BlockQuoteApi as ke, BookmarkApi as Ae, CalloutApi as je, CodeBlockApi as Me, ColumnApi as Ne, ColumnListApi as Pe, ContentTabApi as Fe, ContentTabsApi as Ie, DividerApi as Le, FileApi as Re, HeadingApi as ze, HtmlApi as Be, IconApi as Ve, KatexApi as He, LinkTextApi as Ue, ListApi as We, ListItemApi as Ge, MermaidApi as Ke, NOTION_BLOCK_CATALOG_ID as qe, NotionCalloutApi as Je, ParagraphApi as Ye, RichTextApi as Xe, TableApi as Ze, TableCellApi as Qe, TableRowApi as $e, ToggleApi as et, UnsupportedApi as tt, VideoApi as nt, languageIcons as rt, normalizeLanguage as it } from "@elmethis/core";
7
- import { renderToString as at } from "katex";
8
- import { bundledLanguages as ot, createHighlighter as st } from "shiki";
9
- import ct from "@46ki75/ikuma-theme/dark";
10
- import lt from "@46ki75/ikuma-theme/light";
11
- import { marked as ut } from "marked";
12
- import { Catalog as dt, ComponentContext as ft, GenericBinder as pt, MessageProcessor as mt } from "@a2ui/web_core/v0_9";
13
- import { AudioPlayerApi as ht, BASIC_FUNCTIONS as gt, ButtonApi as _t, CardApi as vt, CheckBoxApi as yt, ChoicePickerApi as bt, ColumnApi as xt, DateTimeInputApi as St, DividerApi as Ct, IconApi as wt, ImageApi as Tt, ListApi as Et, ModalApi as Dt, RowApi as Ot, SliderApi as kt, TabsApi as At, TextApi as jt, TextFieldApi as Mt, VideoApi as Nt } from "@a2ui/web_core/v0_9/basic_catalog";
14
- import { createStore as Pt, reconcile as Ft } from "solid-js/store";
4
+ import { mdiAlertCircleOutline as ee, mdiApplicationOutline as F, mdiArrowDownDropCircleOutline as te, mdiChevronRight as ne, mdiClipboardCheckOutline as re, mdiClipboardOutline as ie, mdiDownload as ae, mdiEyeOffOutline as oe, mdiEyeOutline as se, mdiFastForward10 as ce, mdiFile as le, mdiFolderOpen as ue, mdiHome as de, mdiLinkVariant as I, mdiMenuDown as L, mdiMessageImageOutline as fe, mdiMusicNote as R, mdiOpenInNew as pe, mdiPause as me, mdiPlay as he, mdiPlus as ge, mdiRewind10 as _e, mdiText as ve, mdiTextLong as ye, mdiTrashCanOutline as be, mdiVolumeHigh as xe, mdiVolumeLow as Se, mdiVolumeMedium as Ce, mdiVolumeOff as we } from "@mdi/js";
5
+ import { AudioApi as Te, BlockImageApi as Ee, BlockQuoteApi as De, BookmarkApi as Oe, CalloutApi as ke, CodeBlockApi as Ae, ColumnApi as je, ColumnListApi as Me, ContentTabApi as Ne, ContentTabsApi as Pe, DividerApi as Fe, FileApi as Ie, HeadingApi as Le, HtmlApi as Re, IconApi as ze, KatexApi as Be, LinkTextApi as Ve, ListApi as He, ListItemApi as Ue, MermaidApi as We, NOTION_BLOCK_CATALOG_ID as Ge, NotionCalloutApi as Ke, ParagraphApi as qe, RichTextApi as Je, TableApi as Ye, TableCellApi as Xe, TableRowApi as Ze, ToggleApi as Qe, UnsupportedApi as $e, VideoApi as et, languageIcons as tt, normalizeLanguage as nt } from "@elmethis/core";
6
+ import { renderToString as rt } from "katex";
7
+ import { bundledLanguages as it, createHighlighter as at } from "shiki";
8
+ import ot from "@46ki75/ikuma-theme/dark";
9
+ import st from "@46ki75/ikuma-theme/light";
10
+ import { marked as ct } from "marked";
11
+ import { Catalog as lt, ComponentContext as ut, GenericBinder as dt, MessageProcessor as ft } from "@a2ui/web_core/v0_9";
12
+ import { AudioPlayerApi as pt, BASIC_FUNCTIONS as mt, ButtonApi as ht, CardApi as gt, CheckBoxApi as _t, ChoicePickerApi as vt, ColumnApi as yt, DateTimeInputApi as bt, DividerApi as xt, IconApi as St, ImageApi as Ct, ListApi as wt, ModalApi as Tt, RowApi as Et, SliderApi as Dt, TabsApi as Ot, TextApi as kt, TextFieldApi as At, VideoApi as jt } from "@a2ui/web_core/v0_9/basic_catalog";
13
+ import { createStore as Mt, reconcile as Nt } from "solid-js/store";
15
14
  //#region src/components/fallback/elm-block-fallback.module.css
16
- var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";"), e.trim()].filter(Boolean).join(";") : {
15
+ var Pt = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";"), e.trim()].filter(Boolean).join(";") : {
17
16
  ...t,
18
17
  ...e ?? {}
19
- }, Lt = {
18
+ }, Ft = {
20
19
  "elm-dot-loading-icon": "_elm-dot-loading-icon_qjgj2_15",
21
20
  dot: "_dot_qjgj2_25",
22
21
  bounce: "_bounce_qjgj2_1"
23
- }, Rt = /* @__PURE__ */ m("<span><span aria-hidden=true></span><span aria-hidden=true></span><span aria-hidden=true>"), zt = (e) => {
22
+ }, It = /* @__PURE__ */ m("<span><span aria-hidden=true></span><span aria-hidden=true></span><span aria-hidden=true>"), Lt = (e) => {
24
23
  let [t, n] = j(D({ size: "4em" }, e), [
25
24
  "class",
26
25
  "style",
@@ -28,16 +27,16 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
28
27
  "size"
29
28
  ]);
30
29
  return (() => {
31
- var e = Rt(), i = e.firstChild, a = i.nextSibling, s = a.nextSibling;
30
+ var e = It(), i = e.firstChild, a = i.nextSibling, s = a.nextSibling;
32
31
  return f(e, l({
33
32
  get class() {
34
- return P(Lt["elm-dot-loading-icon"], t.class);
33
+ return P(Ft["elm-dot-loading-icon"], t.class);
35
34
  },
36
35
  get style() {
37
- return L(t.style, { "--elmethis-scoped-size": t.size });
36
+ return z(t.style, { "--elmethis-scoped-size": t.size });
38
37
  }
39
38
  }, n), !1, !0), o((e) => {
40
- var t = Lt.dot, n = Lt.dot, o = Lt.dot;
39
+ var t = Ft.dot, n = Ft.dot, o = Ft.dot;
41
40
  return t !== e.e && r(i, e.e = t), n !== e.t && r(a, e.t = n), o !== e.a && r(s, e.a = o), e;
42
41
  }, {
43
42
  e: void 0,
@@ -45,18 +44,18 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
45
44
  a: void 0
46
45
  }), e;
47
46
  })();
48
- }, Bt = {
47
+ }, Rt = {
49
48
  "elm-rectangle-wave": "_elm-rectangle-wave_70gad_21",
50
49
  wave: "_wave_70gad_1"
51
- }, Vt = /* @__PURE__ */ m("<div aria-hidden=true>"), Ht = (e) => {
50
+ }, zt = /* @__PURE__ */ m("<div aria-hidden=true>"), Bt = (e) => {
52
51
  let [t, n] = j(e, ["class", "children"]);
53
52
  return (() => {
54
- var e = Vt();
53
+ var e = zt();
55
54
  return f(e, l({ get class() {
56
- return P(Bt["elm-rectangle-wave"], t.class);
55
+ return P(Rt["elm-rectangle-wave"], t.class);
57
56
  } }, n), !1, !1), e;
58
57
  })();
59
- }, Ut = /* @__PURE__ */ m("<div>"), Wt = (e) => {
58
+ }, Vt = /* @__PURE__ */ m("<div>"), Ht = (e) => {
60
59
  let [t, n] = j(D({ height: "16rem" }, e), [
61
60
  "class",
62
61
  "style",
@@ -64,22 +63,22 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
64
63
  "height"
65
64
  ]);
66
65
  return (() => {
67
- var e = Ut();
66
+ var e = Vt();
68
67
  return f(e, l({
69
68
  get class() {
70
- return P(It["elm-block-fallback"], t.class);
69
+ return P(Pt["elm-block-fallback"], t.class);
71
70
  },
72
71
  get style() {
73
- return L(t.style, { "--elmethis-scoped-height": t.height });
72
+ return z(t.style, { "--elmethis-scoped-height": t.height });
74
73
  }
75
- }, n), !1, !0), s(e, i(zt, {}), null), s(e, i(Ht, {}), null), e;
74
+ }, n), !1, !0), s(e, i(Lt, {}), null), s(e, i(Bt, {}), null), e;
76
75
  })();
77
- }, Gt = {
76
+ }, Ut = {
78
77
  "elm-unsupported-block": "_elm-unsupported-block_8bkk1_1",
79
78
  message: "_message_8bkk1_13",
80
79
  icon: "_icon_8bkk1_20",
81
80
  details: "_details_8bkk1_24"
82
- }, Kt = {
81
+ }, Wt = {
83
82
  "elm-inline-text": "_elm-inline-text_uf3sg_1",
84
83
  code: "_code_uf3sg_13",
85
84
  kbd: "_kbd_uf3sg_25",
@@ -88,7 +87,7 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
88
87
  "ogp-text": "_ogp-text_uf3sg_104",
89
88
  "ogp-title": "_ogp-title_uf3sg_109",
90
89
  "ogp-description": "_ogp-description_uf3sg_115"
91
- }, R = { text: "_text_zme4t_1" }, qt = { "elm-inline-icon": "_elm-inline-icon_1qs0i_1" }, Jt = /* @__PURE__ */ m("<span><img>"), Yt = (e) => {
90
+ }, B = { text: "_text_zme4t_1" }, Gt = { "elm-inline-icon": "_elm-inline-icon_1qs0i_1" }, Kt = /* @__PURE__ */ m("<span><img>"), qt = (e) => {
92
91
  let [t, n] = j(D({ size: 16 }, e), [
93
92
  "class",
94
93
  "children",
@@ -99,11 +98,11 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
99
98
  "size"
100
99
  ]);
101
100
  return (() => {
102
- var e = Jt(), i = e.firstChild;
101
+ var e = Kt(), i = e.firstChild;
103
102
  return f(e, l(n, { get class() {
104
- return P(qt["elm-inline-icon"], t.class);
103
+ return P(Gt["elm-inline-icon"], t.class);
105
104
  } }), !1, !0), o((e) => {
106
- var n = t.src, a = t.alt, o = qt["elm-inline-icon"], s = t.width ?? t.size, c = t.height ?? t.size;
105
+ var n = t.src, a = t.alt, o = Gt["elm-inline-icon"], s = t.width ?? t.size, c = t.height ?? t.size;
107
106
  return n !== e.e && u(i, "src", e.e = n), a !== e.t && u(i, "alt", e.t = a), o !== e.a && r(i, e.a = o), s !== e.o && u(i, "width", e.o = s), c !== e.i && u(i, "height", e.i = c), e;
108
107
  }, {
109
108
  e: void 0,
@@ -113,14 +112,14 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
113
112
  i: void 0
114
113
  }), e;
115
114
  })();
116
- }, Xt = /* @__PURE__ */ m("<a target=_blank rel=\"noopener noreferrer\">"), Zt = /* @__PURE__ */ m("<kbd>"), Qt = /* @__PURE__ */ m("<del>"), $t = /* @__PURE__ */ m("<em>"), en = /* @__PURE__ */ m("<ins>"), tn = /* @__PURE__ */ m("<strong>"), nn = /* @__PURE__ */ m("<code>"), rn = /* @__PURE__ */ m("<ruby><span></span><rt>"), an = /* @__PURE__ */ m("<span>"), on = (e, t) => {
115
+ }, Jt = /* @__PURE__ */ m("<a target=_blank rel=\"noopener noreferrer\">"), Yt = /* @__PURE__ */ m("<kbd>"), Xt = /* @__PURE__ */ m("<del>"), Zt = /* @__PURE__ */ m("<em>"), Qt = /* @__PURE__ */ m("<ins>"), $t = /* @__PURE__ */ m("<strong>"), en = /* @__PURE__ */ m("<code>"), tn = /* @__PURE__ */ m("<ruby><span></span><rt>"), nn = /* @__PURE__ */ m("<span>"), rn = (e, t) => {
117
116
  if (typeof e != "string") return {
118
117
  ...e ?? {},
119
118
  ...t
120
119
  };
121
120
  let n = Object.entries(t).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";");
122
121
  return [e.trim().replace(/;$/, ""), n].filter(Boolean).join(";");
123
- }, z = (e) => {
122
+ }, V = (e) => {
124
123
  let [t, n] = j(D({ size: "1em" }, e), [
125
124
  "class",
126
125
  "style",
@@ -140,89 +139,89 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
140
139
  ]), a = b(() => t.children), d = C(() => {
141
140
  let e = a();
142
141
  return t.href && (e = (() => {
143
- var n = Xt();
142
+ var n = Jt();
144
143
  return s(n, (() => {
145
144
  var e = c(() => !!t.favicon);
146
- return () => e() && i(Yt, {
145
+ return () => e() && i(qt, {
147
146
  get src() {
148
147
  return t.favicon;
149
148
  },
150
149
  alt: "favicon"
151
150
  });
152
151
  })(), null), s(n, e, null), o((e) => {
153
- var i = Kt.link, a = t.href;
152
+ var i = Wt.link, a = t.href;
154
153
  return i !== e.e && r(n, e.e = i), a !== e.t && u(n, "href", e.t = a), e;
155
154
  }, {
156
155
  e: void 0,
157
156
  t: void 0
158
157
  }), n;
159
158
  })()), t.kbd && (e = (() => {
160
- var t = Zt();
161
- return s(t, e), o(() => r(t, Kt.kbd)), t;
159
+ var t = Yt();
160
+ return s(t, e), o(() => r(t, Wt.kbd)), t;
162
161
  })()), t.strikethrough && (e = (() => {
163
- var t = Qt();
162
+ var t = Xt();
164
163
  return s(t, e), t;
165
164
  })()), t.italic && (e = (() => {
166
- var t = $t();
165
+ var t = Zt();
167
166
  return s(t, e), t;
168
167
  })()), t.underline && (e = (() => {
169
- var t = en();
168
+ var t = Qt();
170
169
  return s(t, e), t;
171
170
  })()), t.bold && (e = (() => {
172
- var t = tn();
171
+ var t = $t();
173
172
  return s(t, e), t;
174
173
  })()), t.code && (e = (() => {
175
- var t = nn();
176
- return s(t, e), o(() => r(t, Kt.code)), t;
174
+ var t = en();
175
+ return s(t, e), o(() => r(t, Wt.code)), t;
177
176
  })()), t.ruby && (e = (() => {
178
- var n = rn(), i = n.firstChild, a = i.nextSibling;
179
- return s(i, e), s(a, () => t.ruby), o(() => r(n, Kt["elm-inline-text"])), n;
177
+ var n = tn(), i = n.firstChild, a = i.nextSibling;
178
+ return s(i, e), s(a, () => t.ruby), o(() => r(n, Wt["elm-inline-text"])), n;
180
179
  })()), e;
181
- }), p = C(() => on(t.style, {
180
+ }), p = C(() => rn(t.style, {
182
181
  "--elmethis-scoped-color": t.color,
183
182
  "--elmethis-scoped-font-size": t.size,
184
183
  "--elmethis-scoped-background-color": t.backgroundColor
185
184
  }));
186
185
  return (() => {
187
- var e = an();
186
+ var e = nn();
188
187
  return f(e, l(n, {
189
188
  get class() {
190
- return P(Kt["elm-inline-text"], R.text, t.class);
189
+ return P(Wt["elm-inline-text"], B.text, t.class);
191
190
  },
192
191
  get style() {
193
192
  return p();
194
193
  }
195
194
  }), !1, !0), s(e, d), e;
196
195
  })();
197
- }, sn = /* @__PURE__ */ m("<div><div><svg viewBox=\"0 0 24 24\"width=1.25rem height=1.25rem><path d=\"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\">"), cn = /* @__PURE__ */ m("<div>"), ln = (e) => {
196
+ }, an = /* @__PURE__ */ m("<div><div><svg viewBox=\"0 0 24 24\"width=1.25rem height=1.25rem><path d=\"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\">"), on = /* @__PURE__ */ m("<div>"), sn = (e) => {
198
197
  let [t, n] = j(e, [
199
198
  "class",
200
199
  "children",
201
200
  "details"
202
201
  ]);
203
202
  return (() => {
204
- var e = sn(), a = e.firstChild, d = a.firstChild;
203
+ var e = an(), a = e.firstChild, d = a.firstChild;
205
204
  return f(e, l({ get class() {
206
- return P(Gt["elm-unsupported-block"], t.class);
207
- } }, n), !1, !0), s(a, i(z, { children: "UNSUPPORTED BLOCK" }), null), s(e, (() => {
205
+ return P(Ut["elm-unsupported-block"], t.class);
206
+ } }, n), !1, !0), s(a, i(V, { children: "UNSUPPORTED BLOCK" }), null), s(e, (() => {
208
207
  var e = c(() => !!t.details);
209
208
  return () => e() && (() => {
210
- var e = cn();
211
- return s(e, i(z, { get children() {
209
+ var e = on();
210
+ return s(e, i(V, { get children() {
212
211
  return t.details;
213
- } })), o(() => r(e, Gt.details)), e;
212
+ } })), o(() => r(e, Ut.details)), e;
214
213
  })();
215
214
  })(), null), o((e) => {
216
- var t = Gt.message, n = Gt.icon;
215
+ var t = Ut.message, n = Ut.icon;
217
216
  return t !== e.e && r(a, e.e = t), n !== e.t && u(d, "class", e.t = n), e;
218
217
  }, {
219
218
  e: void 0,
220
219
  t: void 0
221
220
  }), e;
222
221
  })();
223
- }, B = (e, t) => {
222
+ }, H = (e, t) => {
224
223
  typeof e == "function" ? e(t) : e && e[0](e[1], t);
225
- }, un = {
224
+ }, cn = {
226
225
  "elm-button": "_elm-button_9qh0y_1",
227
226
  normal: "_normal_9qh0y_22",
228
227
  primary: "_primary_9qh0y_29",
@@ -231,7 +230,7 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
231
230
  flex: "_flex_9qh0y_59",
232
231
  ripple: "_ripple_9qh0y_83",
233
232
  "button-ripple": "_button-ripple_9qh0y_1"
234
- }, dn = /* @__PURE__ */ m("<span>"), fn = /* @__PURE__ */ m("<button>"), pn = (e) => {
233
+ }, ln = /* @__PURE__ */ m("<span>"), un = /* @__PURE__ */ m("<button>"), dn = (e) => {
235
234
  let [t, n] = j(e, [
236
235
  "class",
237
236
  "style",
@@ -245,20 +244,20 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
245
244
  ]), [a, c] = w(!1), u;
246
245
  k(() => clearTimeout(u));
247
246
  let d = (e) => {
248
- t.isLoading || t.disabled || !t.onClick || (c(!0), clearTimeout(u), u = setTimeout(() => c(!1), 300), B(t.onClick, e));
247
+ t.isLoading || t.disabled || !t.onClick || (c(!0), clearTimeout(u), u = setTimeout(() => c(!1), 300), H(t.onClick, e));
249
248
  };
250
249
  return (() => {
251
- var e = fn();
250
+ var e = un();
252
251
  return f(e, l(n, {
253
252
  onClick: d,
254
253
  get disabled() {
255
254
  return t.disabled;
256
255
  },
257
256
  get class() {
258
- return P(un["elm-button"], !t.isLoading && !t.disabled && un.enable, t.color && un.colored, !t.color && !t.primary && un.normal, !t.color && t.primary && un.primary, t.class);
257
+ return P(cn["elm-button"], !t.isLoading && !t.disabled && cn.enable, t.color && cn.colored, !t.color && !t.primary && cn.normal, !t.color && t.primary && cn.primary, t.class);
259
258
  },
260
259
  get style() {
261
- return L(t.style, {
260
+ return z(t.style, {
262
261
  display: t.block ? "flex" : "inline-flex",
263
262
  width: t.block ? "100%" : "auto",
264
263
  cursor: t.disabled ? "not-allowed" : t.isLoading ? "progress" : "pointer",
@@ -271,26 +270,26 @@ var It = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, L = (e, t) =>
271
270
  return a();
272
271
  },
273
272
  get children() {
274
- var e = dn();
275
- return o(() => r(e, un.ripple)), e;
273
+ var e = ln();
274
+ return o(() => r(e, cn.ripple)), e;
276
275
  }
277
276
  }), null), s(e, i(v, {
278
277
  get when() {
279
278
  return !t.isLoading;
280
279
  },
281
280
  get fallback() {
282
- return i(zt, { size: "1.5rem" });
281
+ return i(Lt, { size: "1.5rem" });
283
282
  },
284
283
  get children() {
285
- var e = dn();
286
- return s(e, () => t.children), o(() => r(e, un.flex)), e;
284
+ var e = ln();
285
+ return s(e, () => t.children), o(() => r(e, cn.flex)), e;
287
286
  }
288
287
  }), null), e;
289
288
  })();
290
289
  };
291
290
  //#endregion
292
291
  //#region src/primitives/create-controllable-signal.ts
293
- function mn(e) {
292
+ function fn(e) {
294
293
  let t = e.defaultValue(), [n, r] = w(t, { equals: Object.is }), i = C(() => {
295
294
  let t = e.value?.();
296
295
  return t === void 0 ? n() : t;
@@ -300,7 +299,7 @@ function mn(e) {
300
299
  return Object.is(a, n) ? a : (e.value?.() === void 0 && r((() => a)), e.onChange?.(a), a);
301
300
  }))];
302
301
  }
303
- var hn = {
302
+ var pn = {
304
303
  "elm-checkbox": "_elm-checkbox_18dfs_1",
305
304
  disabled: "_disabled_18dfs_12",
306
305
  checkbox: "_checkbox_18dfs_22",
@@ -310,7 +309,7 @@ var hn = {
310
309
  "loading-dot": "_loading-dot_18dfs_39",
311
310
  "check-line": "_check-line_18dfs_54",
312
311
  "elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_18dfs_1"
313
- }, gn = /* @__PURE__ */ m("<svg><polyline points=\"5,12 10,17 19,8\"stroke-width=1.5 fill=transparent></svg>", !1, !0, !1), _n = /* @__PURE__ */ m("<div><div style=display:flex;align-items:center;gap:0.5rem><svg width=24 height=24><circle cx=0 cy=0 r=2><animate attributeName=cx values=\"4; 20; 20; 4; 4\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate><animate attributeName=cy values=\"4; 4; 20; 20; 4\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate></circle><circle cx=20 cy=20 r=2><animate attributeName=cx values=\"20; 4; 4; 20; 20\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate><animate attributeName=cy values=\"20; 20; 4; 4; 20\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate></circle><rect x=4 y=4 width=16 height=16 stroke-width=0.8></rect><line x1=0 y1=1 x2=4 y2=1 stroke-width=2 fill=transparent></line><line x1=4 y1=0 x2=24 y2=0 stroke-width=1 fill=transparent></line><line x1=0 y1=4 x2=0 y2=16 stroke-width=1 fill=transparent></line><line x1=0 y1=18 x2=0 y2=20 stroke-width=1 fill=transparent></line><line x1=0 y1=24 x2=20 y2=24 stroke-width=1 fill=transparent></line><line x1=20 y1=23 x2=24 y2=23 stroke-width=1.5 fill=transparent></line><line x1=24 y1=4 x2=24 y2=20 fill=transparent style=stroke-width:1px>"), vn = (e) => {
312
+ }, mn = /* @__PURE__ */ m("<svg><polyline points=\"5,12 10,17 19,8\"stroke-width=1.5 fill=transparent></svg>", !1, !0, !1), hn = /* @__PURE__ */ m("<div><div style=display:flex;align-items:center;gap:0.5rem><svg width=24 height=24><circle cx=0 cy=0 r=2><animate attributeName=cx values=\"4; 20; 20; 4; 4\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate><animate attributeName=cy values=\"4; 4; 20; 20; 4\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate></circle><circle cx=20 cy=20 r=2><animate attributeName=cx values=\"20; 4; 4; 20; 20\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate><animate attributeName=cy values=\"20; 20; 4; 4; 20\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate></circle><rect x=4 y=4 width=16 height=16 stroke-width=0.8></rect><line x1=0 y1=1 x2=4 y2=1 stroke-width=2 fill=transparent></line><line x1=4 y1=0 x2=24 y2=0 stroke-width=1 fill=transparent></line><line x1=0 y1=4 x2=0 y2=16 stroke-width=1 fill=transparent></line><line x1=0 y1=18 x2=0 y2=20 stroke-width=1 fill=transparent></line><line x1=0 y1=24 x2=20 y2=24 stroke-width=1 fill=transparent></line><line x1=20 y1=23 x2=24 y2=23 stroke-width=1.5 fill=transparent></line><line x1=24 y1=4 x2=24 y2=20 fill=transparent style=stroke-width:1px>"), gn = (e) => {
314
313
  let [t, n] = j(e, [
315
314
  "class",
316
315
  "onClick",
@@ -321,18 +320,18 @@ var hn = {
321
320
  "defaultChecked",
322
321
  "onCheckedChange",
323
322
  "children"
324
- ]), [r, a] = mn({
323
+ ]), [r, a] = fn({
325
324
  value: () => t.checked,
326
325
  defaultValue: () => t.defaultChecked ?? !1,
327
326
  onChange: (e) => t.onCheckedChange?.(e)
328
327
  }), c = (e) => {
329
- B(t.onClick, e), !e.defaultPrevented && !t.isLoading && !t.disabled && a((e) => !e);
328
+ H(t.onClick, e), !e.defaultPrevented && !t.isLoading && !t.disabled && a((e) => !e);
330
329
  };
331
330
  return (() => {
332
- var e = _n(), a = e.firstChild, p = a.firstChild, m = p.firstChild, h = m.nextSibling, g = h.nextSibling, _ = g.nextSibling;
331
+ var e = hn(), a = e.firstChild, p = a.firstChild, m = p.firstChild, h = m.nextSibling, g = h.nextSibling, _ = g.nextSibling;
333
332
  return _.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling, f(e, l(n, {
334
333
  get class() {
335
- return P(hn["elm-checkbox"], t.disabled && hn.disabled, t.class);
334
+ return P(pn["elm-checkbox"], t.disabled && pn.disabled, t.class);
336
335
  },
337
336
  onClick: c
338
337
  }), !1, !0), s(p, i(v, {
@@ -340,13 +339,13 @@ var hn = {
340
339
  return r();
341
340
  },
342
341
  get children() {
343
- var e = gn();
344
- return o(() => u(e, "class", hn["check-line"])), e;
342
+ var e = mn();
343
+ return o(() => u(e, "class", pn["check-line"])), e;
345
344
  }
346
- }), _), s(a, i(z, { get children() {
345
+ }), _), s(a, i(V, { get children() {
347
346
  return t.label;
348
347
  } }), null), o((e) => {
349
- var n = hn.checkbox, i = hn["loading-dot"], a = +!!t.isLoading, o = hn["loading-dot"], s = +!!t.isLoading, c = P(hn.rect, r() && hn.checked, t.isLoading && hn.loading);
348
+ var n = pn.checkbox, i = pn["loading-dot"], a = +!!t.isLoading, o = pn["loading-dot"], s = +!!t.isLoading, c = P(pn.rect, r() && pn.checked, t.isLoading && pn.loading);
350
349
  return n !== e.e && u(p, "class", e.e = n), i !== e.t && u(m, "class", e.t = i), a !== e.a && d(m, "opacity", e.a = a), o !== e.o && u(h, "class", e.o = o), s !== e.i && d(h, "opacity", e.i = s), c !== e.n && u(g, "class", e.n = c), e;
351
350
  }, {
352
351
  e: void 0,
@@ -357,13 +356,13 @@ var hn = {
357
356
  n: void 0
358
357
  }), e;
359
358
  })();
360
- }, yn = {
359
+ }, _n = {
361
360
  switch: "_switch_9s4vz_1",
362
361
  bar: "_bar_9s4vz_5",
363
362
  checked: "_checked_9s4vz_21",
364
363
  disabled: "_disabled_9s4vz_26",
365
364
  circle: "_circle_9s4vz_31"
366
- }, bn = /* @__PURE__ */ m("<div><input type=checkbox readonly><div><div>"), xn = (e) => {
365
+ }, vn = /* @__PURE__ */ m("<div><input type=checkbox readonly><div><div>"), yn = (e) => {
367
366
  let [t, n] = j(D({
368
367
  color: "var(--elmethis-color-primary)",
369
368
  size: "18px"
@@ -378,17 +377,17 @@ var hn = {
378
377
  "onCheckedChange",
379
378
  "children"
380
379
  ]), i = (e) => {
381
- B(t.onClick, e), !e.defaultPrevented && !t.disabled && t.onCheckedChange?.(!t.checked);
380
+ H(t.onClick, e), !e.defaultPrevented && !t.disabled && t.onCheckedChange?.(!t.checked);
382
381
  };
383
382
  return (() => {
384
- var e = bn(), a = e.firstChild, s = a.nextSibling, c = s.firstChild;
383
+ var e = vn(), a = e.firstChild, s = a.nextSibling, c = s.firstChild;
385
384
  return f(e, l(n, {
386
385
  onClick: i,
387
386
  get class() {
388
387
  return t.class;
389
388
  },
390
389
  get style() {
391
- return L(t.style, {
390
+ return z(t.style, {
392
391
  "--elmethis-scoped-color": t.color,
393
392
  "--elmethis-scoped-padding": "2px",
394
393
  "--elmethis-scoped-size": t.size,
@@ -396,7 +395,7 @@ var hn = {
396
395
  });
397
396
  }
398
397
  }), !1, !0), o((e) => {
399
- var n = yn.switch, i = t.disabled, o = P(yn.bar, t.checked && yn.checked, t.disabled && yn.disabled), l = P(yn.circle, t.checked && yn.checked, t.disabled && yn.disabled);
398
+ var n = _n.switch, i = t.disabled, o = P(_n.bar, t.checked && _n.checked, t.disabled && _n.disabled), l = P(_n.circle, t.checked && _n.checked, t.disabled && _n.disabled);
400
399
  return n !== e.e && r(a, e.e = n), i !== e.t && (a.disabled = e.t = i), o !== e.a && r(s, e.a = o), l !== e.o && r(c, e.o = l), e;
401
400
  }, {
402
401
  e: void 0,
@@ -405,7 +404,7 @@ var hn = {
405
404
  o: void 0
406
405
  }), o(() => a.checked = t.checked), e;
407
406
  })();
408
- }, Sn = { "elm-mdi-icon": "_elm-mdi-icon_ihskx_1" }, Cn = /* @__PURE__ */ m("<svg viewBox=\"0 0 24 24\"xmlns=http://www.w3.org/2000/svg role=img><path>"), wn = { focusable: "false" }, V = (e) => {
407
+ }, bn = { "elm-mdi-icon": "_elm-mdi-icon_ihskx_1" }, xn = /* @__PURE__ */ m("<svg viewBox=\"0 0 24 24\"xmlns=http://www.w3.org/2000/svg role=img><path>"), Sn = { focusable: "false" }, U = (e) => {
409
408
  let [t, n] = j(D({
410
409
  size: "1em",
411
410
  color: "currentColor"
@@ -420,13 +419,13 @@ var hn = {
420
419
  "darkColor"
421
420
  ]);
422
421
  return (() => {
423
- var e = Cn(), r = e.firstChild;
422
+ var e = xn(), r = e.firstChild;
424
423
  return f(e, l({
425
424
  get class() {
426
- return P(Sn["elm-mdi-icon"], t.class);
425
+ return P(bn["elm-mdi-icon"], t.class);
427
426
  },
428
427
  get style() {
429
- return L(t.style, {
428
+ return z(t.style, {
430
429
  "--elmethis-scoped-color": t.lightColor ?? t.color,
431
430
  "--dark-color": t.darkColor ?? t.color
432
431
  });
@@ -440,9 +439,9 @@ var hn = {
440
439
  get fill() {
441
440
  return t.color;
442
441
  }
443
- }, wn, n), !0, !0), o(() => u(r, "d", t.d)), e;
442
+ }, Sn, n), !0, !0), o(() => u(r, "d", t.d)), e;
444
443
  })();
445
- }, Tn = { "elm-validation": "_elm-validation_1cigg_1" }, En = /* @__PURE__ */ m("<div>"), Dn = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", On = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z", kn = (e) => {
444
+ }, Cn = { "elm-validation": "_elm-validation_1cigg_1" }, wn = /* @__PURE__ */ m("<div>"), Tn = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", En = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z", Dn = (e) => {
446
445
  let [t, n] = j(D({ validColor: "var(--elmethis-color-accent-success)" }, e), [
447
446
  "class",
448
447
  "style",
@@ -451,22 +450,22 @@ var hn = {
451
450
  "isValid"
452
451
  ]);
453
452
  return (() => {
454
- var e = En();
453
+ var e = wn();
455
454
  return f(e, l(n, {
456
455
  get class() {
457
- return P(Tn["elm-validation"], t.class);
456
+ return P(Cn["elm-validation"], t.class);
458
457
  },
459
458
  get style() {
460
- return L(t.style, { "--elmethis-scoped-opacity": t.isValid ? 1 : .5 });
459
+ return z(t.style, { "--elmethis-scoped-opacity": t.isValid ? 1 : .5 });
461
460
  }
462
- }), !1, !0), s(e, i(V, {
461
+ }), !1, !0), s(e, i(U, {
463
462
  get d() {
464
- return t.isValid ? Dn : On;
463
+ return t.isValid ? Tn : En;
465
464
  },
466
465
  get color() {
467
466
  return c(() => !!t.isValid)() ? t.validColor : void 0;
468
467
  }
469
- }), null), s(e, i(z, {
468
+ }), null), s(e, i(V, {
470
469
  get color() {
471
470
  return c(() => !!t.isValid)() ? t.validColor : void 0;
472
471
  },
@@ -478,7 +477,7 @@ var hn = {
478
477
  };
479
478
  //#endregion
480
479
  //#region src/primitives/create-clipboard.ts
481
- function An(e) {
480
+ function On(e) {
482
481
  let [t, n] = w(!1), r, i = !1;
483
482
  return k(() => {
484
483
  i = !0, r !== void 0 && clearTimeout(r);
@@ -503,10 +502,10 @@ function An(e) {
503
502
  }
504
503
  //#endregion
505
504
  //#region src/components/icon/elm-copy-icon.module.css
506
- var jn = {
505
+ var kn = {
507
506
  "elm-copy-icon": "_elm-copy-icon_1mzoy_1",
508
507
  "elm-copy-icon-copied": "_elm-copy-icon-copied_1mzoy_29"
509
- }, Mn = /* @__PURE__ */ m("<button>"), Nn = (e) => {
508
+ }, An = /* @__PURE__ */ m("<button>"), jn = (e) => {
510
509
  let [t, n] = j(e, [
511
510
  "class",
512
511
  "style",
@@ -514,7 +513,7 @@ var jn = {
514
513
  "onClick",
515
514
  "type",
516
515
  "aria-label"
517
- ]), r = An({ get content() {
516
+ ]), r = On({ get content() {
518
517
  return t.content;
519
518
  } }), a = (e) => {
520
519
  r.copy().catch(() => void 0);
@@ -522,13 +521,13 @@ var jn = {
522
521
  typeof n == "function" ? n(e) : n?.[0](n[1], e);
523
522
  };
524
523
  return (() => {
525
- var e = Mn();
524
+ var e = An();
526
525
  return e.$$click = a, f(e, l({
527
526
  get type() {
528
527
  return t.type ?? "button";
529
528
  },
530
529
  get class() {
531
- return P(jn["elm-copy-icon"], t.class);
530
+ return P(kn["elm-copy-icon"], t.class);
532
531
  },
533
532
  get style() {
534
533
  return t.style;
@@ -536,14 +535,14 @@ var jn = {
536
535
  get "aria-label"() {
537
536
  return t["aria-label"] ?? (r.copied() ? "Copied" : "Copy to clipboard");
538
537
  }
539
- }, n), !1, !0), s(e, i(V, {
538
+ }, n), !1, !0), s(e, i(U, {
540
539
  "aria-hidden": "true",
541
540
  role: "presentation",
542
541
  get class() {
543
- return P(r.copied() && jn["elm-copy-icon-copied"]);
542
+ return P(r.copied() && kn["elm-copy-icon-copied"]);
544
543
  },
545
544
  get d() {
546
- return r.copied() ? ie : ae;
545
+ return r.copied() ? re : ie;
547
546
  },
548
547
  size: "1.25rem"
549
548
  })), e;
@@ -552,9 +551,9 @@ var jn = {
552
551
  a(["click"]);
553
552
  //#endregion
554
553
  //#region src/components/icon/language-glyph.tsx
555
- var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t, n) => t === "id" ? `${e}-${n}` : e.replace(/url\(#([^)]+)\)/g, `url(#$1-${n})`), In = (t, n) => {
554
+ var Mn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Nn = (e, t, n) => t === "id" ? `${e}-${n}` : e.replace(/url\(#([^)]+)\)/g, `url(#$1-${n})`), Pn = (t, n) => {
556
555
  let r = {};
557
- for (let [e, i] of Object.entries(t.attrs ?? {})) r[e] = Fn(i, e, n);
556
+ for (let [e, i] of Object.entries(t.attrs ?? {})) r[e] = Nn(i, e, n);
558
557
  return i(e, l({ get component() {
559
558
  return t.tag;
560
559
  } }, r, {
@@ -566,11 +565,11 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
566
565
  get each() {
567
566
  return t.children;
568
567
  },
569
- children: (e) => In(e, n)
568
+ children: (e) => Pn(e, n)
570
569
  });
571
570
  }
572
571
  }));
573
- }, Ln = (e) => {
572
+ }, Fn = (e) => {
574
573
  let [t] = j(D({ size: 24 }, e), [
575
574
  "icon",
576
575
  "size",
@@ -578,7 +577,7 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
578
577
  "style"
579
578
  ]), n = T(), r = C(() => t.icon.attrs ?? {});
580
579
  return (() => {
581
- var e = Pn();
580
+ var e = Mn();
582
581
  return f(e, l({
583
582
  get viewBox() {
584
583
  return t.icon.viewBox;
@@ -599,13 +598,13 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
599
598
  get each() {
600
599
  return t.icon.children;
601
600
  },
602
- children: (e) => In(e, n)
601
+ children: (e) => Pn(e, n)
603
602
  })), e;
604
603
  })();
605
- }, Rn = "M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z", zn = (e) => {
604
+ }, In = "M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z", Ln = (e) => {
606
605
  let t = D({ size: 24 }, e), n = C(() => {
607
- let e = it(t.language);
608
- return e === "file" ? void 0 : rt[e];
606
+ let e = nt(t.language);
607
+ return e === "file" ? void 0 : tt[e];
609
608
  });
610
609
  return i(v, {
611
610
  get when() {
@@ -613,8 +612,8 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
613
612
  },
614
613
  keyed: !0,
615
614
  get fallback() {
616
- return i(V, {
617
- d: Rn,
615
+ return i(U, {
616
+ d: In,
618
617
  get size() {
619
618
  return String(t.size);
620
619
  },
@@ -626,7 +625,7 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
626
625
  }
627
626
  });
628
627
  },
629
- children: (e) => i(Ln, {
628
+ children: (e) => i(Fn, {
630
629
  icon: e,
631
630
  get size() {
632
631
  return t.size;
@@ -639,11 +638,11 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
639
638
  }
640
639
  })
641
640
  });
642
- }, Bn = {
641
+ }, Rn = {
643
642
  "elm-square-loading-icon": "_elm-square-loading-icon_m72nq_19",
644
643
  square: "_square_m72nq_28",
645
644
  appear: "_appear_m72nq_1"
646
- }, Vn = /* @__PURE__ */ m("<span>"), Hn = 1200, Un = (e) => {
645
+ }, zn = /* @__PURE__ */ m("<span>"), Bn = 1200, Vn = (e) => {
647
646
  let [t, n] = j(D({
648
647
  size: "3rem",
649
648
  dimensions: 4
@@ -655,16 +654,16 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
655
654
  "dimensions"
656
655
  ]), a = C(() => Array(t.dimensions).fill(null).map((e, t) => t));
657
656
  return (() => {
658
- var e = Vn();
657
+ var e = zn();
659
658
  return f(e, l({
660
659
  get class() {
661
- return P(Bn["elm-square-loading-icon"], t.class);
660
+ return P(Rn["elm-square-loading-icon"], t.class);
662
661
  },
663
662
  get style() {
664
- return L(t.style, {
663
+ return z(t.style, {
665
664
  "--elmethis-scoped-size": t.size,
666
665
  "--elmethis-scoped-dimensions": t.dimensions,
667
- "--elmethis-scoped-duration": `${Hn}ms`
666
+ "--elmethis-scoped-duration": `${Bn}ms`
668
667
  });
669
668
  }
670
669
  }, n), !1, !0), s(e, i(g, {
@@ -676,9 +675,9 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
676
675
  return a();
677
676
  },
678
677
  children: (n) => (() => {
679
- var i = Vn();
678
+ var i = zn();
680
679
  return o((a) => {
681
- var o = Bn.square, s = `${Hn / (t.dimensions * 3) * (e + n)}ms`;
680
+ var o = Rn.square, s = `${Bn / (t.dimensions * 3) * (e + n)}ms`;
682
681
  return o !== a.e && r(i, a.e = o), s !== a.t && d(i, "--elmethis-scoped-delay", a.t = s), a;
683
682
  }, {
684
683
  e: void 0,
@@ -688,52 +687,52 @@ var Pn = /* @__PURE__ */ m("<svg xmlns=http://www.w3.org/2000/svg>"), Fn = (e, t
688
687
  })
689
688
  })), e;
690
689
  })();
691
- }, Wn = "elmethis-theme", Gn = "(prefers-color-scheme: dark)", Kn = "elmethis-theme-change", qn = (e) => e === "dark" ? "dark" : e === "light" ? "light" : null, Jn = () => {
690
+ }, Hn = "elmethis-theme", Un = "(prefers-color-scheme: dark)", Wn = "elmethis-theme-change", Gn = (e) => e === "dark" ? "dark" : e === "light" ? "light" : null, Kn = () => {
692
691
  try {
693
- return qn(window.localStorage.getItem(Wn));
692
+ return Gn(window.localStorage.getItem(Hn));
694
693
  } catch {
695
694
  return null;
696
695
  }
697
- }, Yn = (e, t) => {
696
+ }, qn = (e, t) => {
698
697
  let n = document.documentElement;
699
698
  if (e === null ? (n.style.removeProperty("color-scheme"), n.removeAttribute("data-theme")) : (n.style.colorScheme = e, n.setAttribute("data-theme", e)), t) try {
700
- e === null ? window.localStorage.removeItem(Wn) : window.localStorage.setItem(Wn, e);
699
+ e === null ? window.localStorage.removeItem(Hn) : window.localStorage.setItem(Hn, e);
701
700
  } catch {}
702
- window.dispatchEvent(new CustomEvent(Kn, { detail: e }));
701
+ window.dispatchEvent(new CustomEvent(Wn, { detail: e }));
703
702
  };
704
- function Xn() {
703
+ function Jn() {
705
704
  let [e, t] = w(!1), n, r = () => n?.matches ?? !1;
706
705
  return A(() => {
707
- typeof window.matchMedia == "function" && (n = window.matchMedia(Gn));
706
+ typeof window.matchMedia == "function" && (n = window.matchMedia(Un));
708
707
  let e = (e) => {
709
708
  let n = e.detail;
710
709
  t(n === null ? r() : n === "dark");
711
710
  }, i = (e) => {
712
- if (e.key !== null && e.key !== Wn) return;
713
- let n = qn(e.newValue);
714
- t(n === null ? r() : n === "dark"), Yn(n, !1);
711
+ if (e.key !== null && e.key !== Hn) return;
712
+ let n = Gn(e.newValue);
713
+ t(n === null ? r() : n === "dark"), qn(n, !1);
715
714
  }, a = (e) => {
716
- Jn() === null && t(e.matches);
715
+ Kn() === null && t(e.matches);
717
716
  };
718
- window.addEventListener(Kn, e), window.addEventListener("storage", i), n?.addEventListener("change", a);
719
- let o = Jn();
720
- t(o === null ? r() : o === "dark"), o !== null && Yn(o, !1), k(() => {
721
- window.removeEventListener(Kn, e), window.removeEventListener("storage", i), n?.removeEventListener("change", a), n = void 0;
717
+ window.addEventListener(Wn, e), window.addEventListener("storage", i), n?.addEventListener("change", a);
718
+ let o = Kn();
719
+ t(o === null ? r() : o === "dark"), o !== null && qn(o, !1), k(() => {
720
+ window.removeEventListener(Wn, e), window.removeEventListener("storage", i), n?.removeEventListener("change", a), n = void 0;
722
721
  });
723
722
  }), {
724
723
  isDarkTheme: e,
725
724
  toggleTheme: () => {
726
725
  let n = e() ? "light" : "dark";
727
- t(n === "dark"), Yn(n, !0);
726
+ t(n === "dark"), qn(n, !0);
728
727
  }
729
728
  };
730
729
  }
731
730
  //#endregion
732
731
  //#region src/components/icon/elm-toggle-theme.module.css
733
- var Zn = { "elm-toggle-theme": "_elm-toggle-theme_1none_1" }, Qn = /* @__PURE__ */ m("<svg><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M12 19v1M19 12h1M12 5v-1M5 12h-1\"><animate fill=freeze attributeName=d begin=1.2s dur=0.2s values=\"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.2s dur=0.2s values=2;0></animate></path><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5\"><animate fill=freeze attributeName=d begin=1.4s dur=0.2s values=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.4s dur=0.2s values=2;0></animate></path><animateTransform attributeName=transform dur=30s repeatCount=indefinite type=rotate values=\"0 12 12;360 12 12\"></animateTransform></g><g fill=currentColor><path d=\"M15.22 6.03L17.75 4.09L14.56 4L13.5 1L12.44 4L9.25 4.09L11.78 6.03L10.87 9.09L13.5 7.28L16.13 9.09L15.22 6.03Z\"><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path d=\"M19.61 12.25L21.25 11L19.19 10.95L18.5 9L17.81 10.95L15.75 11L17.39 12.25L16.8 14.23L18.5 13.06L20.2 14.23L19.61 12.25Z\"><animate fill=freeze attributeName=fill-opacity begin=0.2s dur=0.4s values=1;0></animate></path></g><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"><set></set></path><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=8><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=8;4></animate></circle><circle cx=18 cy=6 r=12 fill=#fff><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=12;3></animate></circle><circle cx=18 cy=6 r=10><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;1></animate></circle></mask><circle cx=12 cy=12 r=10 opacity=0 fill=currentColor><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;6></animate><set>"), $n = /* @__PURE__ */ m("<svg><path fill-opacity=0 d=\"M15.22 6.03l2.53-1.94L14.56 4L13.5 1l-1.06 3l-3.19.09l2.53 1.94l-.91 3.06l2.63-1.81l2.63 1.81z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M13.61 5.25L15.25 4l-2.06-.05L12.5 2l-.69 1.95L9.75 4l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M19.61 12.25L21.25 11l-2.06-.05L18.5 9l-.69 1.95l-2.06.05l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M20.828 9.731l1.876-1.439l-2.366-.067L19.552 6l-.786 2.225l-2.366.067l1.876 1.439L17.601 12l1.951-1.342L21.503 12z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><g><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M12 21v1M21 12h1M12 3v-1M3 12h-1\"><animate fill=freeze attributeName=stroke-dashoffset dur=0.2s values=4;2></animate></path><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"><animate fill=freeze attributeName=stroke-dashoffset begin=0.2s dur=0.2s values=4;2></animate></path><set></set></g><path d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"opacity=0><set></set></path></g><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=4><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=4;8></animate></circle><circle cx=22 cy=2 r=3 fill=#fff><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=3;12></animate></circle><circle cx=22 cy=2 r=1><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=1;10></animate></circle></mask><circle cx=12 cy=12 r=6 fill=currentColor><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=6;10></animate><set>"), er = (e) => ({
732
+ var Yn = { "elm-toggle-theme": "_elm-toggle-theme_1none_1" }, Xn = /* @__PURE__ */ m("<svg><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M12 19v1M19 12h1M12 5v-1M5 12h-1\"><animate fill=freeze attributeName=d begin=1.2s dur=0.2s values=\"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.2s dur=0.2s values=2;0></animate></path><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5\"><animate fill=freeze attributeName=d begin=1.4s dur=0.2s values=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.4s dur=0.2s values=2;0></animate></path><animateTransform attributeName=transform dur=30s repeatCount=indefinite type=rotate values=\"0 12 12;360 12 12\"></animateTransform></g><g fill=currentColor><path d=\"M15.22 6.03L17.75 4.09L14.56 4L13.5 1L12.44 4L9.25 4.09L11.78 6.03L10.87 9.09L13.5 7.28L16.13 9.09L15.22 6.03Z\"><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path d=\"M19.61 12.25L21.25 11L19.19 10.95L18.5 9L17.81 10.95L15.75 11L17.39 12.25L16.8 14.23L18.5 13.06L20.2 14.23L19.61 12.25Z\"><animate fill=freeze attributeName=fill-opacity begin=0.2s dur=0.4s values=1;0></animate></path></g><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"><set></set></path><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=8><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=8;4></animate></circle><circle cx=18 cy=6 r=12 fill=#fff><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=12;3></animate></circle><circle cx=18 cy=6 r=10><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;1></animate></circle></mask><circle cx=12 cy=12 r=10 opacity=0 fill=currentColor><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;6></animate><set>"), Zn = /* @__PURE__ */ m("<svg><path fill-opacity=0 d=\"M15.22 6.03l2.53-1.94L14.56 4L13.5 1l-1.06 3l-3.19.09l2.53 1.94l-.91 3.06l2.63-1.81l2.63 1.81z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M13.61 5.25L15.25 4l-2.06-.05L12.5 2l-.69 1.95L9.75 4l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M19.61 12.25L21.25 11l-2.06-.05L18.5 9l-.69 1.95l-2.06.05l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M20.828 9.731l1.876-1.439l-2.366-.067L19.552 6l-.786 2.225l-2.366.067l1.876 1.439L17.601 12l1.951-1.342L21.503 12z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><g><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M12 21v1M21 12h1M12 3v-1M3 12h-1\"><animate fill=freeze attributeName=stroke-dashoffset dur=0.2s values=4;2></animate></path><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"><animate fill=freeze attributeName=stroke-dashoffset begin=0.2s dur=0.2s values=4;2></animate></path><set></set></g><path d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"opacity=0><set></set></path></g><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=4><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=4;8></animate></circle><circle cx=22 cy=2 r=3 fill=#fff><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=3;12></animate></circle><circle cx=22 cy=2 r=1><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=1;10></animate></circle></mask><circle cx=12 cy=12 r=6 fill=currentColor><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=6;10></animate><set>"), Qn = (e) => ({
734
733
  attributeName: "opacity",
735
734
  to: e
736
- }), tr = (e) => {
735
+ }), $n = (e) => {
737
736
  let [t, n] = j(D({ size: "2rem" }, e), [
738
737
  "class",
739
738
  "style",
@@ -745,7 +744,7 @@ var Zn = { "elm-toggle-theme": "_elm-toggle-theme_1none_1" }, Qn = /* @__PURE__
745
744
  "tabIndex",
746
745
  "aria-label",
747
746
  "children"
748
- ]), r = Xn(), i = T(), a = `elm-toggle-theme-moon-mask-${i}`, o = `elm-toggle-theme-sun-animation-${i}`, s = `elm-toggle-theme-sun-mask-${i}`, d = (e) => {
747
+ ]), r = Jn(), i = T(), a = `elm-toggle-theme-moon-mask-${i}`, o = `elm-toggle-theme-sun-animation-${i}`, s = `elm-toggle-theme-sun-mask-${i}`, d = (e) => {
749
748
  r.toggleTheme();
750
749
  let n = t.onClick;
751
750
  typeof n == "function" ? n(e) : n?.[0](n[1], e);
@@ -758,7 +757,7 @@ var Zn = { "elm-toggle-theme": "_elm-toggle-theme_1none_1" }, Qn = /* @__PURE__
758
757
  viewBox: "0 0 24 24"
759
758
  };
760
759
  return c(() => c(() => !r.isDarkTheme())() ? (() => {
761
- var e = Qn(), r = e.firstChild.nextSibling.nextSibling, i = r.firstChild, o = r.nextSibling, s = o.nextSibling, c = s.firstChild.nextSibling;
760
+ var e = Xn(), r = e.firstChild.nextSibling.nextSibling, i = r.firstChild, o = r.nextSibling, s = o.nextSibling, c = s.firstChild.nextSibling;
762
761
  return f(e, l(m, {
763
762
  get width() {
764
763
  return t.size;
@@ -767,7 +766,7 @@ var Zn = { "elm-toggle-theme": "_elm-toggle-theme_1none_1" }, Qn = /* @__PURE__
767
766
  return t.size;
768
767
  },
769
768
  get class() {
770
- return P(Zn["elm-toggle-theme"], t.class);
769
+ return P(Yn["elm-toggle-theme"], t.class);
771
770
  },
772
771
  get style() {
773
772
  return t.style;
@@ -783,15 +782,15 @@ var Zn = { "elm-toggle-theme": "_elm-toggle-theme_1none_1" }, Qn = /* @__PURE__
783
782
  },
784
783
  onClick: d,
785
784
  onKeyDown: p
786
- }, n), !0, !0), f(i, l(() => er("0"), {
785
+ }, n), !0, !0), f(i, l(() => Qn("0"), {
787
786
  fill: "freeze",
788
787
  begin: "0.6s"
789
- }), !0, !1), u(o, "id", a), u(s, "mask", `url(#${a})`), f(c, l(() => er("1"), {
788
+ }), !0, !1), u(o, "id", a), u(s, "mask", `url(#${a})`), f(c, l(() => Qn("1"), {
790
789
  fill: "freeze",
791
790
  begin: "0.6s"
792
791
  }), !0, !1), e;
793
792
  })() : (() => {
794
- var e = $n(), r = e.firstChild, i = r.firstChild, a = i.nextSibling, c = r.nextSibling, h = c.firstChild, g = h.nextSibling, _ = c.nextSibling, v = _.firstChild, y = v.nextSibling, b = _.nextSibling, x = b.firstChild, S = x.nextSibling, C = b.nextSibling, w = C.firstChild, T = w.firstChild.nextSibling.nextSibling, E = w.nextSibling.firstChild, D = C.nextSibling, O = D.nextSibling, k = O.firstChild.nextSibling;
793
+ var e = Zn(), r = e.firstChild, i = r.firstChild, a = i.nextSibling, c = r.nextSibling, h = c.firstChild, g = h.nextSibling, _ = c.nextSibling, v = _.firstChild, y = v.nextSibling, b = _.nextSibling, x = b.firstChild, S = x.nextSibling, C = b.nextSibling, w = C.firstChild, T = w.firstChild.nextSibling.nextSibling, E = w.nextSibling.firstChild, D = C.nextSibling, O = D.nextSibling, k = O.firstChild.nextSibling;
795
794
  return f(e, l(m, {
796
795
  get width() {
797
796
  return t.size;
@@ -800,7 +799,7 @@ var Zn = { "elm-toggle-theme": "_elm-toggle-theme_1none_1" }, Qn = /* @__PURE__
800
799
  return t.size;
801
800
  },
802
801
  get class() {
803
- return P(Zn["elm-toggle-theme"], t.class);
802
+ return P(Yn["elm-toggle-theme"], t.class);
804
803
  },
805
804
  get style() {
806
805
  return t.style;
@@ -816,27 +815,27 @@ var Zn = { "elm-toggle-theme": "_elm-toggle-theme_1none_1" }, Qn = /* @__PURE__
816
815
  },
817
816
  onClick: d,
818
817
  onKeyDown: p
819
- }, n), !0, !0), u(i, "id", o), u(i, "begin", `0.6s;${o}.begin+6s`), u(a, "begin", `${o}.begin+2.2s`), u(h, "begin", `${o}.begin+3s`), u(g, "begin", `${o}.begin+5.2s`), u(v, "begin", `${o}.begin+0.4s`), u(y, "begin", `${o}.begin+2.8s`), u(x, "begin", `${o}.begin+3.4s`), u(S, "begin", `${o}.begin+5.6s`), f(T, l(() => er("0"), {
818
+ }, n), !0, !0), u(i, "id", o), u(i, "begin", `0.6s;${o}.begin+6s`), u(a, "begin", `${o}.begin+2.2s`), u(h, "begin", `${o}.begin+3s`), u(g, "begin", `${o}.begin+5.2s`), u(v, "begin", `${o}.begin+0.4s`), u(y, "begin", `${o}.begin+2.8s`), u(x, "begin", `${o}.begin+3.4s`), u(S, "begin", `${o}.begin+5.6s`), f(T, l(() => Qn("0"), {
820
819
  fill: "freeze",
821
820
  begin: "0.5s"
822
- }), !0, !1), f(E, l(() => er("1"), {
821
+ }), !0, !1), f(E, l(() => Qn("1"), {
823
822
  fill: "freeze",
824
823
  begin: "0.5s"
825
- }), !0, !1), u(D, "id", s), u(O, "mask", `url(#${s})`), f(k, l(() => er("0"), {
824
+ }), !0, !1), u(D, "id", s), u(O, "mask", `url(#${s})`), f(k, l(() => Qn("0"), {
826
825
  fill: "freeze",
827
826
  begin: "0.5s"
828
827
  }), !0, !1), e;
829
828
  })());
830
- }, nr = {
829
+ }, er = {
831
830
  "elm-file": "_elm-file_aoaqq_1",
832
831
  "file-size": "_file-size_aoaqq_12",
833
832
  "download-icon": "_download-icon_aoaqq_17"
834
- }, rr = /* @__PURE__ */ m("<div><div></div><div></div><div></div><div>");
835
- function ir(e) {
833
+ }, tr = /* @__PURE__ */ m("<div><div></div><div></div><div></div><div>");
834
+ function nr(e) {
836
835
  let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
837
836
  return t.length > 0 ? t[t.length - 1] : null;
838
837
  }
839
- var ar = (e) => {
838
+ var rr = (e) => {
840
839
  let [t, n] = j(e, [
841
840
  "class",
842
841
  "name",
@@ -856,27 +855,27 @@ var ar = (e) => {
856
855
  let i = URL.createObjectURL(r);
857
856
  a && URL.revokeObjectURL(a), a = i;
858
857
  let o = document.createElement("a");
859
- o.href = a, o.download = n ?? ir(e) ?? "file", o.click();
858
+ o.href = a, o.download = n ?? nr(e) ?? "file", o.click();
860
859
  } catch (e) {
861
860
  console.error("ERROR:", e);
862
861
  }
863
862
  };
864
863
  return (() => {
865
- var e = rr(), a = e.firstChild, c = a.nextSibling, d = c.nextSibling, p = d.nextSibling;
864
+ var e = tr(), a = e.firstChild, c = a.nextSibling, d = c.nextSibling, p = d.nextSibling;
866
865
  return f(e, l({ get class() {
867
- return P(nr["elm-file"], t.class);
868
- } }, n), !1, !0), s(a, i(V, {
869
- d: ue,
866
+ return P(er["elm-file"], t.class);
867
+ } }, n), !1, !0), s(a, i(U, {
868
+ d: le,
870
869
  size: "1.25rem"
871
- })), s(c, i(z, { get children() {
872
- return t.name ?? ir(t.src);
873
- } })), s(d, i(z, { get children() {
870
+ })), s(c, i(V, { get children() {
871
+ return t.name ?? nr(t.src);
872
+ } })), s(d, i(V, { get children() {
874
873
  return t.filesize;
875
- } })), p.$$click = () => void u(), s(p, i(V, {
876
- d: oe,
874
+ } })), p.$$click = () => void u(), s(p, i(U, {
875
+ d: ae,
877
876
  size: "1.25rem"
878
877
  })), o((e) => {
879
- var t = nr["file-size"], n = nr["download-icon"];
878
+ var t = er["file-size"], n = er["download-icon"];
880
879
  return t !== e.e && r(d, e.e = t), n !== e.t && r(p, e.t = n), e;
881
880
  }, {
882
881
  e: void 0,
@@ -885,7 +884,7 @@ var ar = (e) => {
885
884
  })();
886
885
  };
887
886
  a(["click"]);
888
- var or = {
887
+ var ir = {
889
888
  "elm-bookmark": "_elm-bookmark_cbkg4_1",
890
889
  container: "_container_cbkg4_23",
891
890
  image: "_image_cbkg4_35",
@@ -893,10 +892,10 @@ var or = {
893
892
  title: "_title_cbkg4_71",
894
893
  description: "_description_cbkg4_75",
895
894
  link: "_link_cbkg4_80"
896
- }, sr = /* @__PURE__ */ m("<div><a target=_blank rel=\"noopener noreferrer\"><img alt=\"OGP Image\"><div><div></div><div></div><div>"), cr = {
895
+ }, ar = /* @__PURE__ */ m("<div><a target=_blank rel=\"noopener noreferrer\"><img alt=\"OGP Image\"><div><div></div><div></div><div>"), or = {
897
896
  visibility: "hidden",
898
897
  width: "0"
899
- }, lr = (e) => {
898
+ }, sr = (e) => {
900
899
  let [t, n] = j(e, [
901
900
  "class",
902
901
  "title",
@@ -906,34 +905,34 @@ var or = {
906
905
  "favicon"
907
906
  ]), [a, d] = w(!1);
908
907
  return S(O(() => t.image, () => d(!1), { defer: !0 })), (() => {
909
- var e = sr(), m = e.firstChild, h = m.firstChild, g = h.nextSibling, _ = g.firstChild, v = _.nextSibling, y = v.nextSibling;
908
+ var e = ar(), m = e.firstChild, h = m.firstChild, g = h.nextSibling, _ = g.firstChild, v = _.nextSibling, y = v.nextSibling;
910
909
  return f(e, l({ get class() {
911
- return P(or["elm-bookmark"], t.class);
912
- } }, n), !1, !0), h.addEventListener("error", () => d(!0)), s(_, i(z, {
910
+ return P(ir["elm-bookmark"], t.class);
911
+ } }, n), !1, !0), h.addEventListener("error", () => d(!0)), s(_, i(V, {
913
912
  bold: !0,
914
913
  get children() {
915
914
  return t.title;
916
915
  }
917
- })), s(v, i(z, {
916
+ })), s(v, i(V, {
918
917
  size: "0.75rem",
919
918
  get children() {
920
919
  return t.description;
921
920
  }
922
921
  })), s(y, (() => {
923
922
  var e = c(() => !!t.favicon);
924
- return () => e() ? i(Yt, { get src() {
923
+ return () => e() ? i(qt, { get src() {
925
924
  return t.favicon;
926
- } }) : i(V, {
927
- d: F,
925
+ } }) : i(U, {
926
+ d: I,
928
927
  color: "var(--elmethis-color-accent-info)"
929
928
  });
930
- })(), null), s(y, i(z, {
929
+ })(), null), s(y, i(V, {
931
930
  size: "0.75rem",
932
931
  get children() {
933
932
  return t.url;
934
933
  }
935
934
  }), null), o((e) => {
936
- var n = or.container, i = t.url, o = or.image, s = t.image, c = a() || t.image == null ? cr : void 0, l = or.content, d = or.title, f = or.description, b = or.link;
935
+ var n = ir.container, i = t.url, o = ir.image, s = t.image, c = a() || t.image == null ? or : void 0, l = ir.content, d = ir.title, f = ir.description, b = ir.link;
937
936
  return n !== e.e && r(m, e.e = n), i !== e.t && u(m, "href", e.t = i), o !== e.a && r(h, e.a = o), s !== e.o && u(h, "src", e.o = s), e.i = p(h, c, e.i), l !== e.n && r(g, e.n = l), d !== e.s && r(_, e.s = d), f !== e.h && r(v, e.h = f), b !== e.r && r(y, e.r = b), e;
938
937
  }, {
939
938
  e: void 0,
@@ -947,43 +946,43 @@ var or = {
947
946
  r: void 0
948
947
  }), e;
949
948
  })();
950
- }, ur = {
949
+ }, cr = {
951
950
  "elm-breadcrumb": "_elm-breadcrumb_13oke_1",
952
951
  "link-container": "_link-container_13oke_9",
953
952
  icon: "_icon_13oke_23",
954
953
  chunk: "_chunk_13oke_36",
955
954
  chevron: "_chevron_13oke_41"
956
- }, dr = /* @__PURE__ */ m("<nav>"), fr = /* @__PURE__ */ m("<span style=display:contents><span><span>"), pr = (e) => {
955
+ }, lr = /* @__PURE__ */ m("<nav>"), ur = /* @__PURE__ */ m("<span style=display:contents><span><span>"), dr = (e) => {
957
956
  let [n, a] = j(e, ["class", "links"]);
958
957
  return (() => {
959
- var e = dr();
958
+ var e = lr();
960
959
  return f(e, l({ get class() {
961
- return P(ur["elm-breadcrumb"], n.class);
960
+ return P(cr["elm-breadcrumb"], n.class);
962
961
  } }, a), !1, !0), s(e, i(g, {
963
962
  get each() {
964
963
  return n.links;
965
964
  },
966
965
  children: (e, a) => (() => {
967
- var l = fr(), u = l.firstChild, d = u.firstChild;
968
- return t(u, "click", e.onClick, !0), s(u, i(V, {
966
+ var l = ur(), u = l.firstChild, d = u.firstChild;
967
+ return t(u, "click", e.onClick, !0), s(u, i(U, {
969
968
  get class() {
970
- return ur.icon;
969
+ return cr.icon;
971
970
  },
972
971
  get d() {
973
- return c(() => a() === 0)() ? fe : a() === n.links.length - 1 ? te : de;
972
+ return c(() => a() === 0)() ? de : a() === n.links.length - 1 ? F : ue;
974
973
  },
975
974
  size: "1rem"
976
975
  }), d), s(d, () => e.text), s(l, (() => {
977
976
  var e = c(() => n.links.length !== a() + 1);
978
- return () => e() && i(V, {
977
+ return () => e() && i(U, {
979
978
  get class() {
980
- return ur.chevron;
979
+ return cr.chevron;
981
980
  },
982
- d: re,
981
+ d: ne,
983
982
  size: "1rem"
984
983
  });
985
984
  })(), null), o((e) => {
986
- var t = ur["link-container"], n = ur.chunk;
985
+ var t = cr["link-container"], n = cr.chunk;
987
986
  return t !== e.e && r(u, e.e = t), n !== e.t && r(d, e.t = n), e;
988
987
  }, {
989
988
  e: void 0,
@@ -994,13 +993,13 @@ var or = {
994
993
  })();
995
994
  };
996
995
  a(["click"]);
997
- var mr = {
996
+ var fr = {
998
997
  "elm-page-top": "_elm-page-top_u2nu8_1",
999
998
  move: "_move_u2nu8_1",
1000
999
  visible: "_visible_u2nu8_35",
1001
1000
  partial: "_partial_u2nu8_42",
1002
1001
  text: "_text_u2nu8_79"
1003
- }, hr = /* @__PURE__ */ m("<nav><div aria-hidden=true></div><div aria-hidden=true></div><div aria-hidden=true></div><span>Back to Top"), gr = (e) => {
1002
+ }, pr = /* @__PURE__ */ m("<nav><div aria-hidden=true></div><div aria-hidden=true></div><div aria-hidden=true></div><span>Back to Top"), mr = (e) => {
1004
1003
  let [t, n] = j(D({ position: "right" }, e), [
1005
1004
  "class",
1006
1005
  "style",
@@ -1029,13 +1028,13 @@ var mr = {
1029
1028
  typeof n == "function" ? n(e) : n?.[0](n[1], e);
1030
1029
  };
1031
1030
  return (() => {
1032
- var e = hr(), a = e.firstChild, s = a.nextSibling, p = s.nextSibling, m = p.nextSibling;
1031
+ var e = pr(), a = e.firstChild, s = a.nextSibling, p = s.nextSibling, m = p.nextSibling;
1033
1032
  return e.$$keydown = d, e.$$click = u, f(e, l({
1034
1033
  get class() {
1035
- return P(mr["elm-page-top"], i() && mr.visible, t.class);
1034
+ return P(fr["elm-page-top"], i() && fr.visible, t.class);
1036
1035
  },
1037
1036
  get style() {
1038
- return L(t.style, {
1037
+ return z(t.style, {
1039
1038
  "--elmethis-scoped-size": "64px",
1040
1039
  left: t.position === "left" ? "0" : "auto",
1041
1040
  right: t.position === "right" ? "0" : "auto"
@@ -1051,7 +1050,7 @@ var mr = {
1051
1050
  return c(() => !!i())() ? t.tabindex ?? t.tabIndex ?? 0 : -1;
1052
1051
  }
1053
1052
  }, n), !1, !0), o((e) => {
1054
- var t = mr.partial, n = mr.partial, i = mr.partial, o = mr.text;
1053
+ var t = fr.partial, n = fr.partial, i = fr.partial, o = fr.text;
1055
1054
  return t !== e.e && r(a, e.e = t), n !== e.t && r(s, e.t = n), i !== e.a && r(p, e.a = i), o !== e.o && r(m, e.o = o), e;
1056
1055
  }, {
1057
1056
  e: void 0,
@@ -1062,7 +1061,7 @@ var mr = {
1062
1061
  })();
1063
1062
  };
1064
1063
  a(["click", "keydown"]);
1065
- var _r = {
1064
+ var hr = {
1066
1065
  "elm-notion-callout": "_elm-notion-callout_15idh_1",
1067
1066
  icon: "_icon_15idh_9",
1068
1067
  content: "_content_15idh_15",
@@ -1078,7 +1077,7 @@ var _r = {
1078
1077
  blue: "_blue_15idh_74",
1079
1078
  purple: "_purple_15idh_79",
1080
1079
  magenta: "_magenta_15idh_86"
1081
- }, vr = /* @__PURE__ */ m("<div><div>"), yr = /* @__PURE__ */ m("<span role=img>"), br = (e) => {
1080
+ }, gr = /* @__PURE__ */ m("<div><div>"), _r = /* @__PURE__ */ m("<span role=img>"), vr = (e) => {
1082
1081
  let [t, n] = j(D({
1083
1082
  color: "gray",
1084
1083
  variant: "filled"
@@ -1090,17 +1089,17 @@ var _r = {
1090
1089
  "variant"
1091
1090
  ]);
1092
1091
  return (() => {
1093
- var e = vr(), a = e.firstChild;
1092
+ var e = gr(), a = e.firstChild;
1094
1093
  return f(e, l(n, { get class() {
1095
- return P(_r["elm-notion-callout"], _r[t.color], _r[t.variant], t.class);
1094
+ return P(hr["elm-notion-callout"], hr[t.color], hr[t.variant], t.class);
1096
1095
  } }), !1, !0), s(e, (() => {
1097
1096
  var e = c(() => t.icon?.kind === "emoji");
1098
1097
  return () => e() ? (() => {
1099
- var e = yr();
1100
- return s(e, () => t.icon.emoji), o(() => r(e, _r.icon)), e;
1101
- })() : c(() => t.icon?.kind === "image")() ? i(Yt, {
1098
+ var e = _r();
1099
+ return s(e, () => t.icon.emoji), o(() => r(e, hr.icon)), e;
1100
+ })() : c(() => t.icon?.kind === "image")() ? i(qt, {
1102
1101
  get class() {
1103
- return _r.icon;
1102
+ return hr.icon;
1104
1103
  },
1105
1104
  get src() {
1106
1105
  return t.icon.src;
@@ -1110,9 +1109,9 @@ var _r = {
1110
1109
  },
1111
1110
  size: 20
1112
1111
  }) : null;
1113
- })(), a), s(a, () => t.children), o(() => r(a, _r.content)), e;
1112
+ })(), a), s(a, () => t.children), o(() => r(a, hr.content)), e;
1114
1113
  })();
1115
- }, H = {
1114
+ }, yr = {
1116
1115
  "elm-color-primitive-sample": "_elm-color-primitive-sample_vuro0_1",
1117
1116
  toolbar: "_toolbar_vuro0_6",
1118
1117
  "mode-toggle": "_mode-toggle_vuro0_11",
@@ -1123,12 +1122,12 @@ var _r = {
1123
1122
  swatch: "_swatch_vuro0_52",
1124
1123
  "swatch-name": "_swatch-name_vuro0_55",
1125
1124
  "swatch-bg": "_swatch-bg_vuro0_60"
1126
- }, xr = (e) => {
1125
+ }, br = (e) => {
1127
1126
  let t = e.match(/\d+(?:\.\d+)?/g);
1128
1127
  if (!t || t.length < 3) return null;
1129
1128
  let n = (e) => Math.max(0, Math.min(255, Math.round(Number(e)))).toString(16).padStart(2, "0");
1130
1129
  return `#${n(t[0])}${n(t[1])}${n(t[2])}`;
1131
- }, Sr = () => {
1130
+ }, xr = () => {
1132
1131
  let [e, t] = w(null), [n, r] = w("variable"), i, a = !1;
1133
1132
  return k(() => {
1134
1133
  a = !0, i !== void 0 && clearTimeout(i);
@@ -1146,7 +1145,7 @@ var _r = {
1146
1145
  let e = r.closest("[data-theme]") ?? r.ownerDocument.documentElement, t = r.ownerDocument.createElement("span");
1147
1146
  t.style.color = `var(${o})`, t.style.display = "none", e.append(t);
1148
1147
  try {
1149
- l = xr(s.getComputedStyle(t).color) ?? o;
1148
+ l = br(s.getComputedStyle(t).color) ?? o;
1150
1149
  } finally {
1151
1150
  t.remove();
1152
1151
  }
@@ -1156,11 +1155,11 @@ var _r = {
1156
1155
  }, 1500));
1157
1156
  }
1158
1157
  };
1159
- }, Cr = /* @__PURE__ */ m("<div><div><button type=button>Copy: "), wr = /* @__PURE__ */ m("<div><span></span><div>"), Tr = /* @__PURE__ */ m("<div><div></div><code>"), Er = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z", Dr = "M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z", Or = [
1158
+ }, Sr = /* @__PURE__ */ m("<div><div><button type=button>Copy: "), Cr = /* @__PURE__ */ m("<div><span></span><div>"), wr = /* @__PURE__ */ m("<div><div></div><code>"), Tr = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z", Er = "M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z", Dr = [
1160
1159
  100,
1161
1160
  500,
1162
1161
  900
1163
- ], kr = [
1162
+ ], Or = [
1164
1163
  100,
1165
1164
  200,
1166
1165
  300,
@@ -1170,71 +1169,71 @@ var _r = {
1170
1169
  700,
1171
1170
  800,
1172
1171
  900
1173
- ], Ar = [
1172
+ ], kr = [
1174
1173
  {
1175
1174
  hue: "red",
1176
- steps: Or
1175
+ steps: Dr
1177
1176
  },
1178
1177
  {
1179
1178
  hue: "orange",
1180
- steps: Or
1179
+ steps: Dr
1181
1180
  },
1182
1181
  {
1183
1182
  hue: "yellow",
1184
- steps: Or
1183
+ steps: Dr
1185
1184
  },
1186
1185
  {
1187
1186
  hue: "green",
1188
- steps: Or
1187
+ steps: Dr
1189
1188
  },
1190
1189
  {
1191
1190
  hue: "cyan",
1192
- steps: Or
1191
+ steps: Dr
1193
1192
  },
1194
1193
  {
1195
1194
  hue: "blue",
1196
- steps: Or
1195
+ steps: Dr
1197
1196
  },
1198
1197
  {
1199
1198
  hue: "purple",
1200
- steps: Or
1199
+ steps: Dr
1201
1200
  },
1202
1201
  {
1203
1202
  hue: "magenta",
1204
- steps: Or
1203
+ steps: Dr
1205
1204
  },
1206
1205
  {
1207
1206
  hue: "slate",
1208
- steps: kr
1207
+ steps: Or
1209
1208
  },
1210
1209
  {
1211
1210
  hue: "gold",
1212
- steps: kr
1211
+ steps: Or
1213
1212
  }
1214
- ], jr = (e) => {
1215
- let [n, a] = j(e, ["class", "style"]), c = Sr();
1213
+ ], Ar = (e) => {
1214
+ let [n, a] = j(e, ["class", "style"]), c = xr();
1216
1215
  return (() => {
1217
- var e = Cr(), p = e.firstChild, m = p.firstChild, h = m.firstChild;
1216
+ var e = Sr(), p = e.firstChild, m = p.firstChild, h = m.firstChild;
1218
1217
  return f(e, l(a, {
1219
1218
  get class() {
1220
- return P(H["elm-color-primitive-sample"], n.class);
1219
+ return P(yr["elm-color-primitive-sample"], n.class);
1221
1220
  },
1222
1221
  get style() {
1223
1222
  return n.style;
1224
1223
  },
1225
1224
  "on:click": (e) => void c.copyToken(e)
1226
- }), !1, !0), t(m, "click", c.toggleCopyMode, !0), s(m, i(V, {
1225
+ }), !1, !0), t(m, "click", c.toggleCopyMode, !0), s(m, i(U, {
1227
1226
  get class() {
1228
- return H["mode-toggle-icon"];
1227
+ return yr["mode-toggle-icon"];
1229
1228
  },
1230
1229
  get d() {
1231
- return c.copyMode() === "hex" ? Dr : Er;
1230
+ return c.copyMode() === "hex" ? Er : Tr;
1232
1231
  },
1233
1232
  size: "1.25rem"
1234
1233
  }), h), s(m, () => c.copyMode() === "hex" ? "hex value" : "variable name", null), s(e, i(g, {
1235
- each: Ar,
1234
+ each: kr,
1236
1235
  children: (e) => (() => {
1237
- var t = wr(), n = t.firstChild, a = n.nextSibling;
1236
+ var t = Cr(), n = t.firstChild, a = n.nextSibling;
1238
1237
  return s(n, () => e.hue), s(a, i(g, {
1239
1238
  get each() {
1240
1239
  return e.steps;
@@ -1242,9 +1241,9 @@ var _r = {
1242
1241
  children: (t) => {
1243
1242
  let n = `--elmethis-primitive-color-${e.hue}-${t}`;
1244
1243
  return (() => {
1245
- var e = Tr(), i = e.firstChild, a = i.nextSibling;
1244
+ var e = wr(), i = e.firstChild, a = i.nextSibling;
1246
1245
  return u(e, "data-copy-token", n), u(e, "title", n), d(i, "background-color", `var(${n})`), s(a, () => c.copiedToken() === n ? "copied!" : t), o((n) => {
1247
- var o = H.swatch, s = String(t / 100), c = H["swatch-bg"], l = H["swatch-name"];
1246
+ var o = yr.swatch, s = String(t / 100), c = yr["swatch-bg"], l = yr["swatch-name"];
1248
1247
  return o !== n.e && r(e, n.e = o), s !== n.t && d(e, "grid-column", n.t = s), c !== n.a && r(i, n.a = c), l !== n.o && r(a, n.o = l), n;
1249
1248
  }, {
1250
1249
  e: void 0,
@@ -1255,7 +1254,7 @@ var _r = {
1255
1254
  })();
1256
1255
  }
1257
1256
  })), o((e) => {
1258
- var i = H.group, o = H["section-title"], s = H.scale;
1257
+ var i = yr.group, o = yr["section-title"], s = yr.scale;
1259
1258
  return i !== e.e && r(t, e.e = i), o !== e.t && r(n, e.t = o), s !== e.a && r(a, e.a = s), e;
1260
1259
  }, {
1261
1260
  e: void 0,
@@ -1264,7 +1263,7 @@ var _r = {
1264
1263
  }), t;
1265
1264
  })()
1266
1265
  }), null), o((e) => {
1267
- var t = H.toolbar, n = H["mode-toggle"];
1266
+ var t = yr.toolbar, n = yr["mode-toggle"];
1268
1267
  return t !== e.e && r(p, e.e = t), n !== e.t && r(m, e.t = n), e;
1269
1268
  }, {
1270
1269
  e: void 0,
@@ -1273,7 +1272,7 @@ var _r = {
1273
1272
  })();
1274
1273
  };
1275
1274
  a(["click"]);
1276
- var U = {
1275
+ var W = {
1277
1276
  "elm-color-semantic-sample": "_elm-color-semantic-sample_6i1j1_1",
1278
1277
  toolbar: "_toolbar_6i1j1_6",
1279
1278
  "mode-toggle": "_mode-toggle_6i1j1_11",
@@ -1292,11 +1291,11 @@ var U = {
1292
1291
  "color-sample": "_color-sample_6i1j1_112",
1293
1292
  "color-sample-bg": "_color-sample-bg_6i1j1_121",
1294
1293
  "color-sample-name": "_color-sample-name_6i1j1_127"
1295
- }, Mr = /* @__PURE__ */ m("<div>"), Nr = /* @__PURE__ */ m("<div><div></div><code>"), Pr = /* @__PURE__ */ m("<div><div style=background-color:var(--elmethis-color-surface-base)><header style=background-color:var(--elmethis-color-surface-sunken)><span data-copy-token=--elmethis-color-surface-sunken></span></header><div><div><span>Surface</span></div><div><span>Foreground</span></div><div><span>Accent</span></div><div><span>Neutral</span></div><div><span>Primary</span></div><div><span>Display"), Fr = /* @__PURE__ */ m("<span>"), Ir = /* @__PURE__ */ m("<div><span></span><span>"), Lr = /* @__PURE__ */ m("<div><div><button type=button>Copy: </button></div><div>"), Rr = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z", zr = "M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z", Br = [
1294
+ }, jr = /* @__PURE__ */ m("<div>"), Mr = /* @__PURE__ */ m("<div><div></div><code>"), Nr = /* @__PURE__ */ m("<div><div style=background-color:var(--elmethis-color-surface-base)><header style=background-color:var(--elmethis-color-surface-sunken)><span data-copy-token=--elmethis-color-surface-sunken></span></header><div><div><span>Surface</span></div><div><span>Foreground</span></div><div><span>Accent</span></div><div><span>Neutral</span></div><div><span>Primary</span></div><div><span>Display"), Pr = /* @__PURE__ */ m("<span>"), Fr = /* @__PURE__ */ m("<div><span></span><span>"), Ir = /* @__PURE__ */ m("<div><div><button type=button>Copy: </button></div><div>"), Lr = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z", Rr = "M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z", zr = [
1296
1295
  "--elmethis-color-surface-sunken",
1297
1296
  "--elmethis-color-surface-base",
1298
1297
  "--elmethis-color-surface-raised"
1299
- ], Vr = [
1298
+ ], Br = [
1300
1299
  "--elmethis-color-neutral-weak",
1301
1300
  "--elmethis-color-neutral",
1302
1301
  "--elmethis-color-neutral-strong",
@@ -1305,15 +1304,15 @@ var U = {
1305
1304
  "--elmethis-color-primary-strong",
1306
1305
  "--elmethis-color-accent-link",
1307
1306
  "--elmethis-color-accent-link-visited"
1308
- ], Hr = [
1307
+ ], Vr = [
1309
1308
  "--elmethis-color-neutral-weak",
1310
1309
  "--elmethis-color-neutral",
1311
1310
  "--elmethis-color-neutral-strong"
1312
- ], Ur = [
1311
+ ], Hr = [
1313
1312
  "--elmethis-color-primary-weak",
1314
1313
  "--elmethis-color-primary",
1315
1314
  "--elmethis-color-primary-strong"
1316
- ], Wr = [
1315
+ ], Ur = [
1317
1316
  {
1318
1317
  foreground: "--elmethis-color-accent-info",
1319
1318
  surface: "--elmethis-color-accent-info-surface"
@@ -1334,7 +1333,7 @@ var U = {
1334
1333
  foreground: "--elmethis-color-accent-error",
1335
1334
  surface: "--elmethis-color-accent-error-surface"
1336
1335
  }
1337
- ], Gr = [
1336
+ ], Wr = [
1338
1337
  "red",
1339
1338
  "orange",
1340
1339
  "yellow",
@@ -1345,15 +1344,15 @@ var U = {
1345
1344
  ].map((e) => ({
1346
1345
  foreground: `--elmethis-color-display-${e}`,
1347
1346
  surface: `--elmethis-color-display-${e}-surface`
1348
- })), Kr = (e) => {
1349
- let [n, a] = j(e, ["class", "style"]), c = Sr(), p = (e) => c.copiedToken() === e ? "copied!" : e, m = (e) => (() => {
1350
- var t = Mr();
1347
+ })), Gr = (e) => {
1348
+ let [n, a] = j(e, ["class", "style"]), c = xr(), p = (e) => c.copiedToken() === e ? "copied!" : e, m = (e) => (() => {
1349
+ var t = jr();
1351
1350
  return s(t, i(g, {
1352
1351
  each: e,
1353
1352
  children: (e) => (() => {
1354
- var t = Nr(), n = t.firstChild, i = n.nextSibling;
1353
+ var t = Mr(), n = t.firstChild, i = n.nextSibling;
1355
1354
  return u(t, "data-copy-token", e), d(n, "background-color", `var(${e})`), s(i, () => p(e)), o((e) => {
1356
- var a = U["color-sample"], o = U["color-sample-bg"], s = U["color-sample-name"];
1355
+ var a = W["color-sample"], o = W["color-sample-bg"], s = W["color-sample-name"];
1357
1356
  return a !== e.e && r(t, e.e = a), o !== e.t && r(n, e.t = o), s !== e.a && r(i, e.a = s), e;
1358
1357
  }, {
1359
1358
  e: void 0,
@@ -1361,27 +1360,27 @@ var U = {
1361
1360
  a: void 0
1362
1361
  }), t;
1363
1362
  })()
1364
- })), o(() => r(t, U["color-sample-container"])), t;
1363
+ })), o(() => r(t, W["color-sample-container"])), t;
1365
1364
  })(), h = (e) => (() => {
1366
- var t = Pr(), n = t.firstChild, a = n.firstChild, c = a.firstChild, l = a.nextSibling, f = l.firstChild, h = f.firstChild, _ = f.nextSibling, v = _.firstChild, y = _.nextSibling, b = y.firstChild, x = y.nextSibling, S = x.firstChild, C = x.nextSibling, w = C.firstChild, T = C.nextSibling, E = T.firstChild;
1365
+ var t = Nr(), n = t.firstChild, a = n.firstChild, c = a.firstChild, l = a.nextSibling, f = l.firstChild, h = f.firstChild, _ = f.nextSibling, v = _.firstChild, y = _.nextSibling, b = y.firstChild, x = y.nextSibling, S = x.firstChild, C = x.nextSibling, w = C.firstChild, T = C.nextSibling, E = T.firstChild;
1367
1366
  return u(t, "data-theme", e), d(t, "color-scheme", e), s(c, () => p("--elmethis-color-surface-sunken")), s(f, i(g, {
1368
- each: Br,
1367
+ each: zr,
1369
1368
  children: (e) => (() => {
1370
- var t = Mr();
1371
- return d(t, "background-color", `var(${e})`), u(t, "data-copy-token", e), s(t, () => p(e)), o(() => r(t, U.surface)), t;
1369
+ var t = jr();
1370
+ return d(t, "background-color", `var(${e})`), u(t, "data-copy-token", e), s(t, () => p(e)), o(() => r(t, W.surface)), t;
1372
1371
  })()
1373
1372
  }), null), s(_, i(g, {
1374
- each: Vr,
1373
+ each: Br,
1375
1374
  children: (e) => (() => {
1376
- var t = Fr();
1377
- return d(t, "color", `var(${e})`), u(t, "data-copy-token", e), s(t, () => p(e)), o(() => r(t, U.foreground)), t;
1375
+ var t = Pr();
1376
+ return d(t, "color", `var(${e})`), u(t, "data-copy-token", e), s(t, () => p(e)), o(() => r(t, W.foreground)), t;
1378
1377
  })()
1379
1378
  }), null), s(y, i(g, {
1380
- each: Wr,
1379
+ each: Ur,
1381
1380
  children: (e) => (() => {
1382
- var t = Ir(), n = t.firstChild, i = n.nextSibling;
1381
+ var t = Fr(), n = t.firstChild, i = n.nextSibling;
1383
1382
  return s(n, () => p(e.foreground)), s(i, () => p(e.surface)), o((a) => {
1384
- var o = U["accent-pair"], s = `var(${e.foreground})`, c = `var(${e.surface})`, l = e.foreground, f = e.surface;
1383
+ var o = W["accent-pair"], s = `var(${e.foreground})`, c = `var(${e.surface})`, l = e.foreground, f = e.surface;
1385
1384
  return o !== a.e && r(t, a.e = o), s !== a.t && d(t, "color", a.t = s), c !== a.a && d(t, "background-color", a.a = c), l !== a.o && u(n, "data-copy-token", a.o = l), f !== a.i && u(i, "data-copy-token", a.i = f), a;
1386
1385
  }, {
1387
1386
  e: void 0,
@@ -1391,12 +1390,12 @@ var U = {
1391
1390
  i: void 0
1392
1391
  }), t;
1393
1392
  })()
1394
- }), null), s(x, () => m(Hr), null), s(C, () => m(Ur), null), s(T, i(g, {
1395
- each: Gr,
1393
+ }), null), s(x, () => m(Vr), null), s(C, () => m(Hr), null), s(T, i(g, {
1394
+ each: Wr,
1396
1395
  children: (e) => (() => {
1397
- var t = Ir(), n = t.firstChild, i = n.nextSibling;
1396
+ var t = Fr(), n = t.firstChild, i = n.nextSibling;
1398
1397
  return s(n, () => p(e.foreground)), s(i, () => p(e.surface)), o((a) => {
1399
- var o = U["accent-pair"], s = `var(${e.foreground})`, c = `var(${e.surface})`, l = e.foreground, f = e.surface;
1398
+ var o = W["accent-pair"], s = `var(${e.foreground})`, c = `var(${e.surface})`, l = e.foreground, f = e.surface;
1400
1399
  return o !== a.e && r(t, a.e = o), s !== a.t && d(t, "color", a.t = s), c !== a.a && d(t, "background-color", a.a = c), l !== a.o && u(n, "data-copy-token", a.o = l), f !== a.i && u(i, "data-copy-token", a.i = f), a;
1401
1400
  }, {
1402
1401
  e: void 0,
@@ -1407,7 +1406,7 @@ var U = {
1407
1406
  }), t;
1408
1407
  })()
1409
1408
  }), null), o((e) => {
1410
- var i = U.panel, o = U["panel-body"], s = U.header, c = U.body, u = U.group, d = U["section-title"], p = U.group, m = U["section-title"], g = U.group, D = U["section-title"], O = U.group, k = U["section-title"], A = U.group, j = U["section-title"], M = U.group, N = U["section-title"];
1409
+ var i = W.panel, o = W["panel-body"], s = W.header, c = W.body, u = W.group, d = W["section-title"], p = W.group, m = W["section-title"], g = W.group, D = W["section-title"], O = W.group, k = W["section-title"], A = W.group, j = W["section-title"], M = W.group, N = W["section-title"];
1411
1410
  return i !== e.e && r(t, e.e = i), o !== e.t && r(n, e.t = o), s !== e.a && r(a, e.a = s), c !== e.o && r(l, e.o = c), u !== e.i && r(f, e.i = u), d !== e.n && r(h, e.n = d), p !== e.s && r(_, e.s = p), m !== e.h && r(v, e.h = m), g !== e.r && r(y, e.r = g), D !== e.d && r(b, e.d = D), O !== e.l && r(x, e.l = O), k !== e.u && r(S, e.u = k), A !== e.c && r(C, e.c = A), j !== e.w && r(w, e.w = j), M !== e.m && r(T, e.m = M), N !== e.f && r(E, e.f = N), e;
1412
1411
  }, {
1413
1412
  e: void 0,
@@ -1429,24 +1428,24 @@ var U = {
1429
1428
  }), t;
1430
1429
  })();
1431
1430
  return (() => {
1432
- var e = Lr(), u = e.firstChild, d = u.firstChild, p = d.firstChild, m = u.nextSibling;
1431
+ var e = Ir(), u = e.firstChild, d = u.firstChild, p = d.firstChild, m = u.nextSibling;
1433
1432
  return f(e, l(a, {
1434
1433
  get class() {
1435
- return P(U["elm-color-semantic-sample"], n.class);
1434
+ return P(W["elm-color-semantic-sample"], n.class);
1436
1435
  },
1437
1436
  get style() {
1438
1437
  return n.style;
1439
1438
  }
1440
- }), !1, !0), t(d, "click", c.toggleCopyMode, !0), s(d, i(V, {
1439
+ }), !1, !0), t(d, "click", c.toggleCopyMode, !0), s(d, i(U, {
1441
1440
  get class() {
1442
- return U["mode-toggle-icon"];
1441
+ return W["mode-toggle-icon"];
1443
1442
  },
1444
1443
  get d() {
1445
- return c.copyMode() === "hex" ? zr : Rr;
1444
+ return c.copyMode() === "hex" ? Rr : Lr;
1446
1445
  },
1447
1446
  size: "1.25rem"
1448
1447
  }), p), s(d, () => c.copyMode() === "hex" ? "hex value" : "variable name", null), m.$$click = (e) => void c.copyToken(e), s(m, () => h("light"), null), s(m, () => h("dark"), null), o((e) => {
1449
- var t = U.toolbar, n = U["mode-toggle"], i = U.panels;
1448
+ var t = W.toolbar, n = W["mode-toggle"], i = W.panels;
1450
1449
  return t !== e.e && r(u, e.e = t), n !== e.t && r(d, e.t = n), i !== e.a && r(m, e.a = i), e;
1451
1450
  }, {
1452
1451
  e: void 0,
@@ -1456,20 +1455,20 @@ var U = {
1456
1455
  })();
1457
1456
  };
1458
1457
  a(["click"]);
1459
- var qr = {
1458
+ var Kr = {
1460
1459
  "elm-block-quote": "_elm-block-quote_1ez87_1",
1461
1460
  body: "_body_1ez87_19",
1462
1461
  icon: "_icon_1ez87_28",
1463
1462
  "icon-top-left": "_icon-top-left_1ez87_33",
1464
1463
  "icon-bottom-right": "_icon-bottom-right_1ez87_37"
1465
- }, Jr = /* @__PURE__ */ m("<blockquote><div></div><div></div><div>"), Yr = "M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z", Xr = "M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z", Zr = (e) => {
1464
+ }, qr = /* @__PURE__ */ m("<blockquote><div></div><div></div><div>"), Jr = "M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z", Yr = "M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z", Xr = (e) => {
1466
1465
  let [t, n] = j(e, ["class", "children"]);
1467
1466
  return (() => {
1468
- var e = Jr(), a = e.firstChild, c = a.nextSibling, u = c.nextSibling;
1467
+ var e = qr(), a = e.firstChild, c = a.nextSibling, u = c.nextSibling;
1469
1468
  return f(e, l(n, { get class() {
1470
- return P(qr["elm-block-quote"], R.text, t.class);
1471
- } }), !1, !0), s(a, i(V, { d: Yr })), s(c, () => t.children), s(u, i(V, { d: Xr })), o((e) => {
1472
- var t = P(qr.icon, qr["icon-top-left"]), n = qr.body, i = P(qr.icon, qr["icon-bottom-right"]);
1469
+ return P(Kr["elm-block-quote"], B.text, t.class);
1470
+ } }), !1, !0), s(a, i(U, { d: Jr })), s(c, () => t.children), s(u, i(U, { d: Yr })), o((e) => {
1471
+ var t = P(Kr.icon, Kr["icon-top-left"]), n = Kr.body, i = P(Kr.icon, Kr["icon-bottom-right"]);
1473
1472
  return t !== e.e && r(a, e.e = t), n !== e.t && r(c, e.t = n), i !== e.a && r(u, e.a = i), e;
1474
1473
  }, {
1475
1474
  e: void 0,
@@ -1477,7 +1476,7 @@ var qr = {
1477
1476
  a: void 0
1478
1477
  }), e;
1479
1478
  })();
1480
- }, Qr = {
1479
+ }, Zr = {
1481
1480
  "elm-callout": "_elm-callout_1nsmp_1",
1482
1481
  header: "_header_1nsmp_26",
1483
1482
  content: "_content_1nsmp_35",
@@ -1487,60 +1486,60 @@ var qr = {
1487
1486
  important: "_important_1nsmp_55",
1488
1487
  warning: "_warning_1nsmp_59",
1489
1488
  caution: "_caution_1nsmp_63"
1490
- }, $r = /* @__PURE__ */ m("<aside><div><span></span></div><div>"), ei = Object.freeze({
1489
+ }, Qr = /* @__PURE__ */ m("<aside><div><span></span></div><div>"), $r = Object.freeze({
1491
1490
  note: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",
1492
1491
  tip: "M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63Z",
1493
1492
  important: "M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5M11,7H13V13H11M11,15H13V17H11",
1494
1493
  warning: "M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",
1495
1494
  caution: "M2.2,16.06L3.88,12L2.2,7.94L6.26,6.26L7.94,2.2L12,3.88L16.06,2.2L17.74,6.26L21.8,7.94L20.12,12L21.8,16.06L17.74,17.74L16.06,21.8L12,20.12L7.94,21.8L6.26,17.74L2.2,16.06M13,17V15H11V17H13M13,13V7H11V13H13Z"
1496
- }), ti = (e) => {
1495
+ }), ei = (e) => {
1497
1496
  let [t, n] = j(D({ type: "note" }, e), [
1498
1497
  "class",
1499
1498
  "children",
1500
1499
  "type"
1501
1500
  ]);
1502
1501
  return (() => {
1503
- var e = $r(), a = e.firstChild, c = a.firstChild, u = a.nextSibling;
1502
+ var e = Qr(), a = e.firstChild, c = a.firstChild, u = a.nextSibling;
1504
1503
  return f(e, l(n, { get class() {
1505
- return P(Qr["elm-callout"], Qr[t.type], t.class);
1506
- } }), !1, !0), s(a, i(V, {
1504
+ return P(Zr["elm-callout"], Zr[t.type], t.class);
1505
+ } }), !1, !0), s(a, i(U, {
1507
1506
  get class() {
1508
- return Qr.icon;
1507
+ return Zr.icon;
1509
1508
  },
1510
1509
  get d() {
1511
- return ei[t.type];
1510
+ return $r[t.type];
1512
1511
  },
1513
1512
  size: "1.25rem"
1514
1513
  }), c), s(c, () => t.type), s(u, () => t.children), o((e) => {
1515
- var t = Qr.header, n = Qr.content;
1514
+ var t = Zr.header, n = Zr.content;
1516
1515
  return t !== e.e && r(a, e.e = t), n !== e.t && r(u, e.t = n), e;
1517
1516
  }, {
1518
1517
  e: void 0,
1519
1518
  t: void 0
1520
1519
  }), e;
1521
1520
  })();
1522
- }, ni = { "elm-divider": "_elm-divider_9m6gb_1" }, ri = /* @__PURE__ */ m("<hr>"), ii = (e) => {
1521
+ }, ti = { "elm-divider": "_elm-divider_9m6gb_1" }, ni = /* @__PURE__ */ m("<hr>"), ri = (e) => {
1523
1522
  let [t, n] = j(e, ["class"]);
1524
1523
  return (() => {
1525
- var e = ri();
1524
+ var e = ni();
1526
1525
  return f(e, l({ get class() {
1527
- return P(ni["elm-divider"], t.class);
1526
+ return P(ti["elm-divider"], t.class);
1528
1527
  } }, n), !1, !1), e;
1529
1528
  })();
1530
- }, ai = { "elm-fragment-identifier": "_elm-fragment-identifier_xb2v4_1" }, oi = /* @__PURE__ */ m("<span>#"), si = (e) => {
1529
+ }, ii = { "elm-fragment-identifier": "_elm-fragment-identifier_xb2v4_1" }, ai = /* @__PURE__ */ m("<span>#"), oi = (e) => {
1531
1530
  let [t, n] = j(e, ["class", "id"]), r = () => {
1532
1531
  let e = new URL(window.location.href);
1533
1532
  e.hash = t.id, window.history.replaceState(null, "", e.toString()), document.getElementById(t.id)?.scrollIntoView({ behavior: "smooth" });
1534
1533
  };
1535
1534
  return (() => {
1536
- var e = oi();
1535
+ var e = ai();
1537
1536
  return e.$$click = r, f(e, l({ get class() {
1538
- return P(ai["elm-fragment-identifier"], t.class);
1537
+ return P(ii["elm-fragment-identifier"], t.class);
1539
1538
  } }, n), !1, !0), e;
1540
1539
  })();
1541
1540
  };
1542
1541
  a(["click"]);
1543
- var ci = {
1542
+ var si = {
1544
1543
  "elm-heading": "_elm-heading_1fuld_1",
1545
1544
  h1: "_h1_1fuld_12",
1546
1545
  h2: "_h2_1fuld_34",
@@ -1549,14 +1548,14 @@ var ci = {
1549
1548
  h4: "_h4_1fuld_86",
1550
1549
  h5: "_h5_1fuld_90",
1551
1550
  h6: "_h6_1fuld_94"
1552
- }, li = /* @__PURE__ */ m("<span>"), ui = /* @__PURE__ */ m("<span style=padding:0.5rem>"), di = /* @__PURE__ */ m("<span aria-hidden=true>"), fi = Object.freeze({
1551
+ }, ci = /* @__PURE__ */ m("<span>"), li = /* @__PURE__ */ m("<span style=padding:0.5rem>"), ui = /* @__PURE__ */ m("<span aria-hidden=true>"), di = Object.freeze({
1553
1552
  1: 1.5,
1554
1553
  2: 1.4,
1555
1554
  3: 1.3,
1556
1555
  4: 1.2,
1557
1556
  5: 1.15,
1558
1557
  6: 1.1
1559
- }), pi = (t) => {
1558
+ }), fi = (t) => {
1560
1559
  let [n, a] = j(t, [
1561
1560
  "class",
1562
1561
  "style",
@@ -1569,10 +1568,10 @@ var ci = {
1569
1568
  return `h${n.level}`;
1570
1569
  } }, a, {
1571
1570
  get class() {
1572
- return P(ci["elm-heading"], R.text, ci[`h${n.level}`], n.class);
1571
+ return P(si["elm-heading"], B.text, si[`h${n.level}`], n.class);
1573
1572
  },
1574
1573
  get style() {
1575
- return L(n.style, { "--elmethis-scoped-font-size": `${fi[n.level]}em` });
1574
+ return z(n.style, { "--elmethis-scoped-font-size": `${di[n.level]}em` });
1576
1575
  },
1577
1576
  get id() {
1578
1577
  return n.id;
@@ -1580,28 +1579,28 @@ var ci = {
1580
1579
  get children() {
1581
1580
  return [
1582
1581
  (() => {
1583
- var e = li();
1582
+ var e = ci();
1584
1583
  return s(e, () => n.text), e;
1585
1584
  })(),
1586
1585
  c(() => n.children),
1587
1586
  c(() => c(() => !!n.id)() && (() => {
1588
- var e = ui();
1589
- return s(e, i(si, { get id() {
1587
+ var e = li();
1588
+ return s(e, i(oi, { get id() {
1590
1589
  return n.id;
1591
1590
  } })), e;
1592
1591
  })()),
1593
1592
  c(() => c(() => n.level === 2)() && (() => {
1594
- var e = di();
1595
- return o(() => r(e, ci["h2-underline"])), e;
1593
+ var e = ui();
1594
+ return o(() => r(e, si["h2-underline"])), e;
1596
1595
  })())
1597
1596
  ];
1598
1597
  }
1599
1598
  }));
1600
- }, mi = {
1599
+ }, pi = {
1601
1600
  "elm-list": "_elm-list_brpi5_1",
1602
1601
  bulleted: "_bulleted_brpi5_8",
1603
1602
  numbered: "_numbered_brpi5_57"
1604
- }, hi = (t) => {
1603
+ }, mi = (t) => {
1605
1604
  let [n, r] = j(D({ listStyle: "unordered" }, t), [
1606
1605
  "class",
1607
1606
  "children",
@@ -1611,13 +1610,13 @@ var ci = {
1611
1610
  return n.listStyle === "ordered" ? "ol" : "ul";
1612
1611
  } }, r, {
1613
1612
  get class() {
1614
- return P(R.text, mi["elm-list"], n.listStyle === "ordered" ? mi.numbered : mi.bulleted, n.class);
1613
+ return P(B.text, pi["elm-list"], n.listStyle === "ordered" ? pi.numbered : pi.bulleted, n.class);
1615
1614
  },
1616
1615
  get children() {
1617
1616
  return n.children;
1618
1617
  }
1619
1618
  }));
1620
- }, gi = { "elm-paragraph": "_elm-paragraph_y4o6n_1" }, _i = /* @__PURE__ */ m("<p>"), vi = (e) => {
1619
+ }, hi = { "elm-paragraph": "_elm-paragraph_y4o6n_1" }, gi = /* @__PURE__ */ m("<p>"), _i = (e) => {
1621
1620
  let [t, n] = j(e, [
1622
1621
  "class",
1623
1622
  "style",
@@ -1626,13 +1625,13 @@ var ci = {
1626
1625
  "backgroundColor"
1627
1626
  ]);
1628
1627
  return (() => {
1629
- var e = _i();
1628
+ var e = gi();
1630
1629
  return f(e, l(n, {
1631
1630
  get class() {
1632
- return P(gi["elm-paragraph"], R.text, t.class);
1631
+ return P(hi["elm-paragraph"], B.text, t.class);
1633
1632
  },
1634
1633
  get style() {
1635
- return L(t.style, {
1634
+ return z(t.style, {
1636
1635
  "--elmethis-scoped-color": t.color,
1637
1636
  "--elmethis-scoped-background-color": t.backgroundColor
1638
1637
  });
@@ -1642,7 +1641,7 @@ var ci = {
1642
1641
  };
1643
1642
  //#endregion
1644
1643
  //#region src/primitives/create-async-state.ts
1645
- function yi(e, t, n = {}) {
1644
+ function vi(e, t, n = {}) {
1646
1645
  let [r, i] = w(t, { equals: Object.is }), [a, o] = w(!1), [s, c] = w(!1), [l, u] = w(void 0, { equals: Object.is }), d = /* @__PURE__ */ new Map(), f = 0, p = !1, m = (e) => new Promise((t) => {
1647
1646
  let n = setTimeout(() => {
1648
1647
  d.delete(n), t();
@@ -1677,7 +1676,7 @@ function yi(e, t, n = {}) {
1677
1676
  }
1678
1677
  //#endregion
1679
1678
  //#region src/primitives/create-auto-animate.ts
1680
- function bi(e) {
1679
+ function yi(e) {
1681
1680
  let [t, n] = w(e?.enabled ?? !0), [r, i] = w(), a = !1, o, s, c = 0, l = () => {
1682
1681
  let e = s;
1683
1682
  s = void 0, i(void 0), e?.destroy?.();
@@ -1708,7 +1707,7 @@ function bi(e) {
1708
1707
  }
1709
1708
  //#endregion
1710
1709
  //#region src/primitives/create-debounced.ts
1711
- function xi(e, t) {
1710
+ function bi(e, t) {
1712
1711
  let [n, r] = w(e, { equals: Object.is }), [i, a] = w(e, { equals: Object.is }), o, s = () => {
1713
1712
  o !== void 0 && (clearTimeout(o), o = void 0);
1714
1713
  };
@@ -1726,7 +1725,7 @@ function xi(e, t) {
1726
1725
  }
1727
1726
  //#endregion
1728
1727
  //#region src/primitives/create-delayed-signal.ts
1729
- function Si(e) {
1728
+ function xi(e) {
1730
1729
  let [t, n] = w(e, { equals: Object.is }), [r, i] = w(e, { equals: Object.is }), [a, o] = w(!1), s, c = () => {
1731
1730
  s !== void 0 && (clearTimeout(s), s = void 0);
1732
1731
  };
@@ -1747,48 +1746,48 @@ function Si(e) {
1747
1746
  }
1748
1747
  //#endregion
1749
1748
  //#region src/primitives/create-storage.ts
1750
- var Ci = "elmethis-local-storage-change", wi = "elmethis:sessionStorage:", Ti = (e) => JSON.parse(e), Ei = (e) => {
1749
+ var Si = "elmethis-local-storage-change", Ci = "elmethis:sessionStorage:", wi = (e) => JSON.parse(e), Ti = (e) => {
1751
1750
  let t = JSON.stringify(e);
1752
1751
  if (t === void 0) throw TypeError("The storage value is not JSON-serializable");
1753
1752
  return t;
1754
- }, Di = (e) => {
1753
+ }, Ei = (e) => {
1755
1754
  if (typeof e != "object" || !e) return !1;
1756
1755
  let t = e;
1757
1756
  return t.protocol === "elmethis-storage-v1" && typeof t.key == "string" && (t.type === "remove" || t.type === "set" && typeof t.value == "string");
1758
- }, Oi = (e, t, n) => {
1757
+ }, Di = (e, t, n) => {
1759
1758
  console.warn(`createStorage: failed to ${e} "${t}"`, n);
1760
1759
  };
1761
- function ki(e, t) {
1760
+ function Oi(e, t) {
1762
1761
  let [n, r] = w(t.initialValue), i = {}, a, o, s = !1, c = (e) => r((() => e)), l = (e) => {
1763
1762
  if (e.type === "remove") {
1764
1763
  c(t.initialValue);
1765
1764
  return;
1766
1765
  }
1767
1766
  try {
1768
- c(Ti(e.value));
1767
+ c(wi(e.value));
1769
1768
  } catch (e) {
1770
- Oi("parse", t.key, e);
1769
+ Di("parse", t.key, e);
1771
1770
  }
1772
1771
  }, u = (n) => {
1773
1772
  if (!s) return;
1774
1773
  if (a) try {
1775
1774
  n.type === "remove" ? a.removeItem(t.key) : a.setItem(t.key, n.value);
1776
1775
  } catch (e) {
1777
- Oi(n.type === "remove" ? "remove" : "write", t.key, e);
1776
+ Di(n.type === "remove" ? "remove" : "write", t.key, e);
1778
1777
  }
1779
1778
  let r = {
1780
1779
  protocol: "elmethis-storage-v1",
1781
1780
  key: t.key,
1782
1781
  ...n
1783
1782
  };
1784
- if (e === "local") window.dispatchEvent(new CustomEvent(Ci, { detail: {
1783
+ if (e === "local") window.dispatchEvent(new CustomEvent(Si, { detail: {
1785
1784
  ...r,
1786
1785
  source: i
1787
1786
  } }));
1788
1787
  else if (o) try {
1789
1788
  o.postMessage(r);
1790
1789
  } catch (e) {
1791
- Oi("broadcast", t.key, e);
1790
+ Di("broadcast", t.key, e);
1792
1791
  }
1793
1792
  };
1794
1793
  return A(() => {
@@ -1797,16 +1796,16 @@ function ki(e, t) {
1797
1796
  a = e === "local" ? window.localStorage : window.sessionStorage;
1798
1797
  let n = a.getItem(t.key);
1799
1798
  if (n === null) try {
1800
- a.setItem(t.key, Ei(t.initialValue));
1799
+ a.setItem(t.key, Ti(t.initialValue));
1801
1800
  } catch (e) {
1802
- Oi("write", t.key, e);
1801
+ Di("write", t.key, e);
1803
1802
  }
1804
1803
  else l({
1805
1804
  type: "set",
1806
1805
  value: n
1807
1806
  });
1808
1807
  } catch (e) {
1809
- a = void 0, Oi("read", t.key, e);
1808
+ a = void 0, Di("read", t.key, e);
1810
1809
  }
1811
1810
  let n = (e) => {
1812
1811
  e.key !== t.key || e.storageArea !== null && e.storageArea !== a || l(e.newValue === null ? { type: "remove" } : {
@@ -1815,22 +1814,22 @@ function ki(e, t) {
1815
1814
  });
1816
1815
  }, r = (e) => {
1817
1816
  let n = e.detail;
1818
- n?.source === i || !Di(n) || n.key !== t.key || l(n);
1817
+ n?.source === i || !Ei(n) || n.key !== t.key || l(n);
1819
1818
  };
1820
- if (window.addEventListener("storage", n), e === "local") window.addEventListener(Ci, r);
1819
+ if (window.addEventListener("storage", n), e === "local") window.addEventListener(Si, r);
1821
1820
  else if (typeof BroadcastChannel < "u") try {
1822
- o = new BroadcastChannel(`${wi}${t.key}`), o.addEventListener("message", (e) => {
1823
- if (!(!Di(e.data) || e.data.key !== t.key) && (l(e.data), a)) try {
1821
+ o = new BroadcastChannel(`${Ci}${t.key}`), o.addEventListener("message", (e) => {
1822
+ if (!(!Ei(e.data) || e.data.key !== t.key) && (l(e.data), a)) try {
1824
1823
  e.data.type === "remove" ? a.removeItem(t.key) : a.setItem(t.key, e.data.value);
1825
1824
  } catch (e) {
1826
- Oi("mirror", t.key, e);
1825
+ Di("mirror", t.key, e);
1827
1826
  }
1828
1827
  });
1829
1828
  } catch (e) {
1830
- o = void 0, Oi("open broadcast channel for", t.key, e);
1829
+ o = void 0, Di("open broadcast channel for", t.key, e);
1831
1830
  }
1832
1831
  k(() => {
1833
- s = !1, a = void 0, window.removeEventListener("storage", n), window.removeEventListener(Ci, r), o?.close(), o = void 0;
1832
+ s = !1, a = void 0, window.removeEventListener("storage", n), window.removeEventListener(Si, r), o?.close(), o = void 0;
1834
1833
  });
1835
1834
  }), {
1836
1835
  state: n,
@@ -1839,10 +1838,10 @@ function ki(e, t) {
1839
1838
  try {
1840
1839
  u({
1841
1840
  type: "set",
1842
- value: Ei(n)
1841
+ value: Ti(n)
1843
1842
  });
1844
1843
  } catch (e) {
1845
- Oi("serialize", t.key, e);
1844
+ Di("serialize", t.key, e);
1846
1845
  }
1847
1846
  return n;
1848
1847
  }),
@@ -1851,10 +1850,10 @@ function ki(e, t) {
1851
1850
  }
1852
1851
  };
1853
1852
  }
1854
- var Ai = (e) => ki("local", e), ji = (e) => ki("session", e);
1853
+ var ki = (e) => Oi("local", e), Ai = (e) => Oi("session", e);
1855
1854
  //#endregion
1856
1855
  //#region src/primitives/create-throttled.ts
1857
- function Mi(e, t) {
1856
+ function ji(e, t) {
1858
1857
  let [n, r] = w(e, { equals: Object.is }), [i, a] = w(e, { equals: Object.is }), [o, s] = w(!1), c, l = !1, u = () => {
1859
1858
  s(!0), c = setTimeout(() => {
1860
1859
  if (c = void 0, l) return;
@@ -1876,36 +1875,36 @@ function Mi(e, t) {
1876
1875
  }
1877
1876
  //#endregion
1878
1877
  //#region \0@oxc-project+runtime@0.123.0/helpers/typeof.js
1879
- function Ni(e) {
1878
+ function Mi(e) {
1880
1879
  "@babel/helpers - typeof";
1881
- return Ni = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1880
+ return Mi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1882
1881
  return typeof e;
1883
1882
  } : function(e) {
1884
1883
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1885
- }, Ni(e);
1884
+ }, Mi(e);
1886
1885
  }
1887
1886
  //#endregion
1888
1887
  //#region \0@oxc-project+runtime@0.123.0/helpers/toPrimitive.js
1889
- function Pi(e, t) {
1890
- if (Ni(e) != "object" || !e) return e;
1888
+ function Ni(e, t) {
1889
+ if (Mi(e) != "object" || !e) return e;
1891
1890
  var n = e[Symbol.toPrimitive];
1892
1891
  if (n !== void 0) {
1893
1892
  var r = n.call(e, t || "default");
1894
- if (Ni(r) != "object") return r;
1893
+ if (Mi(r) != "object") return r;
1895
1894
  throw TypeError("@@toPrimitive must return a primitive value.");
1896
1895
  }
1897
1896
  return (t === "string" ? String : Number)(e);
1898
1897
  }
1899
1898
  //#endregion
1900
1899
  //#region \0@oxc-project+runtime@0.123.0/helpers/toPropertyKey.js
1901
- function Fi(e) {
1902
- var t = Pi(e, "string");
1903
- return Ni(t) == "symbol" ? t : t + "";
1900
+ function Pi(e) {
1901
+ var t = Ni(e, "string");
1902
+ return Mi(t) == "symbol" ? t : t + "";
1904
1903
  }
1905
1904
  //#endregion
1906
1905
  //#region \0@oxc-project+runtime@0.123.0/helpers/defineProperty.js
1907
- function Ii(e, t, n) {
1908
- return (t = Fi(t)) in e ? Object.defineProperty(e, t, {
1906
+ function Fi(e, t, n) {
1907
+ return (t = Pi(t)) in e ? Object.defineProperty(e, t, {
1909
1908
  value: n,
1910
1909
  enumerable: !0,
1911
1910
  configurable: !0,
@@ -1914,9 +1913,9 @@ function Ii(e, t, n) {
1914
1913
  }
1915
1914
  //#endregion
1916
1915
  //#region src/primitives/create-throttled-queue.ts
1917
- var Li = class {
1916
+ var Ii = class {
1918
1917
  constructor(e = 200) {
1919
- Ii(this, "queue", []), Ii(this, "minInterval", void 0), Ii(this, "lastFinishedAt", 0), Ii(this, "running", !1), Ii(this, "destroyed", !1), Ii(this, "timer", void 0), this.minInterval = Math.max(0, e);
1918
+ Fi(this, "queue", []), Fi(this, "minInterval", void 0), Fi(this, "lastFinishedAt", 0), Fi(this, "running", !1), Fi(this, "destroyed", !1), Fi(this, "timer", void 0), this.minInterval = Math.max(0, e);
1920
1919
  }
1921
1920
  push(e) {
1922
1921
  return this.destroyed ? Promise.reject(/* @__PURE__ */ Error("ThrottledQueue is destroyed")) : new Promise((t, n) => {
@@ -1955,47 +1954,47 @@ var Li = class {
1955
1954
  }, t);
1956
1955
  }
1957
1956
  };
1958
- function Ri(e = 200) {
1957
+ function Li(e = 200) {
1959
1958
  if (!E()) throw Error("createThrottledQueue requires a reactive owner");
1960
- let t = new Li(e);
1959
+ let t = new Ii(e);
1961
1960
  return k(() => t.destroy("owner disposed")), t;
1962
1961
  }
1963
1962
  //#endregion
1964
1963
  //#region src/components/code/elm-katex.module.css
1965
- var zi = { "elm-katex": "_elm-katex_11clp_3" }, Bi = /* @__PURE__ */ m("<div>"), Vi = (e) => {
1964
+ var Ri = { "elm-katex": "_elm-katex_11clp_3" }, zi = /* @__PURE__ */ m("<div>"), Bi = (e) => {
1966
1965
  let [t, n] = j(e, [
1967
1966
  "class",
1968
1967
  "expression",
1969
1968
  "block"
1970
- ]), r = C(() => at(t.expression, {
1969
+ ]), r = C(() => rt(t.expression, {
1971
1970
  displayMode: t.block ?? !1,
1972
1971
  output: "mathml"
1973
1972
  }));
1974
1973
  return (() => {
1975
- var e = Bi();
1974
+ var e = zi();
1976
1975
  return f(e, l({
1977
1976
  get class() {
1978
- return P(R.text, t.block && zi["elm-katex"], t.class);
1977
+ return P(B.text, t.block && Ri["elm-katex"], t.class);
1979
1978
  },
1980
1979
  get innerHTML() {
1981
1980
  return r();
1982
1981
  }
1983
1982
  }, n), !1, !1), e;
1984
1983
  })();
1985
- }, Hi = {
1984
+ }, Vi = {
1986
1985
  "elm-collapse": "_elm-collapse_19v9o_1",
1987
1986
  row: "_row_19v9o_5",
1988
1987
  open: "_open_19v9o_11",
1989
1988
  column: "_column_19v9o_16",
1990
1989
  both: "_both_19v9o_27",
1991
1990
  inner: "_inner_19v9o_44"
1992
- }, Ui = /* @__PURE__ */ m("<div><div>"), Wi = (e, t) => {
1991
+ }, Hi = /* @__PURE__ */ m("<div><div>"), Ui = (e, t) => {
1993
1992
  let n = { "--elmethis-scoped-transition-timing-function": t };
1994
1993
  return typeof e == "string" ? [e.trim().replace(/;$/, ""), `--elmethis-scoped-transition-timing-function:${String(t)}`].filter(Boolean).join(";") : {
1995
1994
  ...e ?? {},
1996
1995
  ...n
1997
1996
  };
1998
- }, Gi = (e) => {
1997
+ }, Wi = (e) => {
1999
1998
  let [t, n] = j(D({
2000
1999
  direction: "row",
2001
2000
  transitionTimingFunction: "ease-in-out"
@@ -2008,37 +2007,37 @@ var zi = { "elm-katex": "_elm-katex_11clp_3" }, Bi = /* @__PURE__ */ m("<div>"),
2008
2007
  "transitionTimingFunction"
2009
2008
  ]);
2010
2009
  return (() => {
2011
- var e = Ui(), i = e.firstChild;
2010
+ var e = Hi(), i = e.firstChild;
2012
2011
  return f(e, l(n, {
2013
2012
  get class() {
2014
- return P(Hi["elm-collapse"], t.isOpen && Hi.open, t.direction === "row" && Hi.row, t.direction === "column" && Hi.column, t.direction === "both" && Hi.both, t.class);
2013
+ return P(Vi["elm-collapse"], t.isOpen && Vi.open, t.direction === "row" && Vi.row, t.direction === "column" && Vi.column, t.direction === "both" && Vi.both, t.class);
2015
2014
  },
2016
2015
  get style() {
2017
- return Wi(t.style, t.transitionTimingFunction);
2016
+ return Ui(t.style, t.transitionTimingFunction);
2018
2017
  }
2019
- }), !1, !0), s(i, () => t.children), o(() => r(i, Hi.inner)), e;
2018
+ }), !1, !0), s(i, () => t.children), o(() => r(i, Vi.inner)), e;
2020
2019
  })();
2021
- }, Ki = {
2020
+ }, Gi = {
2022
2021
  "elm-parallax": "_elm-parallax_1fg1r_1",
2023
2022
  "parallax-watcher": "_parallax-watcher_1fg1r_6",
2024
2023
  parallax: "_parallax_1fg1r_6"
2025
- }, qi = /* @__PURE__ */ m("<div><div>"), Ji = /* @__PURE__ */ m("<div aria-hidden=true style=transform-origin:bottom>"), Yi = (e) => {
2024
+ }, Ki = /* @__PURE__ */ m("<div><div>"), qi = /* @__PURE__ */ m("<div aria-hidden=true style=transform-origin:bottom>"), Ji = (e) => {
2026
2025
  let [t, n] = j(e, ["class", "images"]), [a, c] = w(0);
2027
2026
  return A(() => {
2028
2027
  let e = () => c(window.scrollY);
2029
2028
  window.addEventListener("scroll", e, { passive: !0 }), k(() => window.removeEventListener("scroll", e));
2030
2029
  }), (() => {
2031
- var e = qi(), c = e.firstChild;
2030
+ var e = Ki(), c = e.firstChild;
2032
2031
  return f(e, l({ get class() {
2033
- return P(Ki["elm-parallax"], t.class);
2032
+ return P(Gi["elm-parallax"], t.class);
2034
2033
  } }, n), !1, !0), s(e, i(g, {
2035
2034
  get each() {
2036
2035
  return t.images;
2037
2036
  },
2038
2037
  children: (e, t) => (() => {
2039
- var n = Ji();
2038
+ var n = qi();
2040
2039
  return o((i) => {
2041
- var o = Ki.parallax, s = `url(${JSON.stringify(e)})`, c = `scale(1.2) translateY(${a() / (1e3 * (t() + 1))}%)`;
2040
+ var o = Gi.parallax, s = `url(${JSON.stringify(e)})`, c = `scale(1.2) translateY(${a() / (1e3 * (t() + 1))}%)`;
2042
2041
  return o !== i.e && r(n, i.e = o), s !== i.t && d(n, "background-image", i.t = s), c !== i.a && d(n, "transform", i.a = c), i;
2043
2042
  }, {
2044
2043
  e: void 0,
@@ -2046,12 +2045,12 @@ var zi = { "elm-katex": "_elm-katex_11clp_3" }, Bi = /* @__PURE__ */ m("<div>"),
2046
2045
  a: void 0
2047
2046
  }), n;
2048
2047
  })()
2049
- }), null), o(() => r(c, Ki["parallax-watcher"])), e;
2048
+ }), null), o(() => r(c, Gi["parallax-watcher"])), e;
2050
2049
  })();
2051
- }, Xi = {
2050
+ }, Yi = {
2052
2051
  "elm-modal": "_elm-modal_scrq9_1",
2053
2052
  shown: "_shown_scrq9_14"
2054
- }, Zi = /* @__PURE__ */ m("<dialog><div>"), Qi = (e) => {
2053
+ }, Xi = /* @__PURE__ */ m("<dialog><div>"), Zi = (e) => {
2055
2054
  let [t, n] = j(D({
2056
2055
  delay: 200,
2057
2056
  closedby: "none"
@@ -2088,22 +2087,22 @@ var zi = { "elm-katex": "_elm-katex_11clp_3" }, Bi = /* @__PURE__ */ m("<div>"),
2088
2087
  }
2089
2088
  }), k(c);
2090
2089
  let u = (e) => {
2091
- B(t.onClick, e), !(e.defaultPrevented || e.target !== e.currentTarget) && t.onClose?.(e, e.currentTarget);
2090
+ H(t.onClick, e), !(e.defaultPrevented || e.target !== e.currentTarget) && t.onClose?.(e, e.currentTarget);
2092
2091
  }, d = (e) => {
2093
- B(t.onCancel, e), !e.defaultPrevented && (e.preventDefault(), t.onClose?.(e, e.currentTarget));
2092
+ H(t.onCancel, e), !e.defaultPrevented && (e.preventDefault(), t.onClose?.(e, e.currentTarget));
2094
2093
  }, p = (e) => {
2095
2094
  c(), i(!1), t.isOpen && t.onClose?.(e, e.currentTarget);
2096
2095
  };
2097
2096
  return (() => {
2098
- var e = Zi(), i = e.firstChild;
2097
+ var e = Xi(), i = e.firstChild;
2099
2098
  return h((e) => {
2100
2099
  a = e, typeof t.ref == "function" && t.ref(e);
2101
2100
  }, e), f(e, l(n, {
2102
2101
  get class() {
2103
- return P(Xi["elm-modal"], r() && Xi.shown, t.class);
2102
+ return P(Yi["elm-modal"], r() && Yi.shown, t.class);
2104
2103
  },
2105
2104
  get style() {
2106
- return L(t.style, { "--elmethis-scoped-modal-delay": `${t.delay}ms` });
2105
+ return z(t.style, { "--elmethis-scoped-modal-delay": `${t.delay}ms` });
2107
2106
  },
2108
2107
  onClick: u,
2109
2108
  onCancel: d,
@@ -2112,18 +2111,18 @@ var zi = { "elm-katex": "_elm-katex_11clp_3" }, Bi = /* @__PURE__ */ m("<div>"),
2112
2111
  })();
2113
2112
  };
2114
2113
  a(["click"]);
2115
- var $i = {
2114
+ var Qi = {
2116
2115
  "elm-tabs": "_elm-tabs_whoym_1",
2117
2116
  "tab-container": "_tab-container_whoym_13",
2118
2117
  tab: "_tab_whoym_13",
2119
2118
  active: "_active_whoym_41",
2120
2119
  "tab-content": "_tab-content_whoym_52",
2121
2120
  "tab-content-inner": "_tab-content-inner_whoym_57"
2122
- }, ea = /* @__PURE__ */ m("<div>"), ta = x(), na = () => {
2123
- let e = N(ta);
2121
+ }, $i = /* @__PURE__ */ m("<div>"), ea = x(), ta = () => {
2122
+ let e = N(ea);
2124
2123
  if (e === void 0) throw Error("ElmTabs subcomponents must be used within <ElmTabs>");
2125
2124
  return e;
2126
- }, ra = (e) => {
2125
+ }, na = (e) => {
2127
2126
  let [t, n] = j(D({ transitionTimingFunction: "linear" }, e), [
2128
2127
  "class",
2129
2128
  "children",
@@ -2131,7 +2130,7 @@ var $i = {
2131
2130
  "defaultValue",
2132
2131
  "onValueChange",
2133
2132
  "transitionTimingFunction"
2134
- ]), [r, a] = mn({
2133
+ ]), [r, a] = fn({
2135
2134
  value: () => t.value,
2136
2135
  defaultValue: () => t.defaultValue ?? "",
2137
2136
  onChange: (e) => t.onValueChange?.(e)
@@ -2142,52 +2141,52 @@ var $i = {
2142
2141
  },
2143
2142
  transitionTimingFunction: () => t.transitionTimingFunction
2144
2143
  };
2145
- return i(ta.Provider, {
2144
+ return i(ea.Provider, {
2146
2145
  value: o,
2147
2146
  get children() {
2148
- var e = ea();
2147
+ var e = $i();
2149
2148
  return f(e, l(n, { get class() {
2150
- return P($i["elm-tabs"], t.class);
2149
+ return P(Qi["elm-tabs"], t.class);
2151
2150
  } }), !1, !0), s(e, () => t.children), e;
2152
2151
  }
2153
2152
  });
2154
- }, ia = (e) => {
2153
+ }, ra = (e) => {
2155
2154
  let [t, n] = j(e, ["class", "children"]);
2156
2155
  return (() => {
2157
- var e = ea();
2156
+ var e = $i();
2158
2157
  return f(e, l(n, { get class() {
2159
- return P($i["tab-container"], t.class);
2158
+ return P(Qi["tab-container"], t.class);
2160
2159
  } }), !1, !0), s(e, () => t.children), e;
2161
2160
  })();
2162
- }, aa = (e) => {
2163
- let t = na(), [n, r] = j(e, [
2161
+ }, ia = (e) => {
2162
+ let t = ta(), [n, r] = j(e, [
2164
2163
  "class",
2165
2164
  "children",
2166
2165
  "value",
2167
2166
  "onClick"
2168
2167
  ]), i = (e) => {
2169
- t.setSelectedValue(n.value), B(n.onClick, e);
2168
+ t.setSelectedValue(n.value), H(n.onClick, e);
2170
2169
  };
2171
2170
  return (() => {
2172
- var e = ea();
2171
+ var e = $i();
2173
2172
  return f(e, l(r, {
2174
2173
  get class() {
2175
- return P($i.tab, t.selectedValue() === n.value && $i.active, n.class);
2174
+ return P(Qi.tab, t.selectedValue() === n.value && Qi.active, n.class);
2176
2175
  },
2177
2176
  onClick: i
2178
2177
  }), !1, !0), s(e, () => n.children), e;
2179
2178
  })();
2180
- }, oa = (e) => {
2181
- let t = na(), [n, a] = j(e, [
2179
+ }, aa = (e) => {
2180
+ let t = ta(), [n, a] = j(e, [
2182
2181
  "class",
2183
2182
  "children",
2184
2183
  "value"
2185
2184
  ]);
2186
2185
  return (() => {
2187
- var e = ea();
2186
+ var e = $i();
2188
2187
  return f(e, l(a, { get class() {
2189
- return P($i["tab-content"], n.class);
2190
- } }), !1, !0), s(e, i(Gi, {
2188
+ return P(Qi["tab-content"], n.class);
2189
+ } }), !1, !0), s(e, i(Wi, {
2191
2190
  direction: "row",
2192
2191
  get isOpen() {
2193
2192
  return t.selectedValue() === n.value;
@@ -2196,12 +2195,12 @@ var $i = {
2196
2195
  return t.transitionTimingFunction();
2197
2196
  },
2198
2197
  get children() {
2199
- var e = ea();
2200
- return s(e, () => n.children), o(() => r(e, $i["tab-content-inner"])), e;
2198
+ var e = $i();
2199
+ return s(e, () => n.children), o(() => r(e, Qi["tab-content-inner"])), e;
2201
2200
  }
2202
2201
  })), e;
2203
2202
  })();
2204
- }, W = {
2203
+ }, G = {
2205
2204
  "elm-toggle": "_elm-toggle_qfazq_1",
2206
2205
  open: "_open_qfazq_8",
2207
2206
  summary: "_summary_qfazq_13",
@@ -2211,7 +2210,7 @@ var $i = {
2211
2210
  cross: "_cross_qfazq_62",
2212
2211
  border: "_border_qfazq_76",
2213
2212
  content: "_content_qfazq_84"
2214
- }, sa = /* @__PURE__ */ m("<div><div><div><span></span><div></div></div><hr><span></span></div><div></div><div>"), ca = (e) => {
2213
+ }, oa = /* @__PURE__ */ m("<div><div><div><span></span><div></div></div><hr><span></span></div><div></div><div>"), sa = (e) => {
2215
2214
  let [t, n] = j(e, [
2216
2215
  "class",
2217
2216
  "children",
@@ -2220,7 +2219,7 @@ var $i = {
2220
2219
  "isOpen",
2221
2220
  "onOpenChange",
2222
2221
  "monochrome"
2223
- ]), [a, u] = mn({
2222
+ ]), [a, u] = fn({
2224
2223
  value: () => t.isOpen,
2225
2224
  defaultValue: () => t.defaultIsOpen ?? !1,
2226
2225
  onChange: (e) => t.onOpenChange?.(e)
@@ -2228,28 +2227,28 @@ var $i = {
2228
2227
  e.preventDefault(), u((e) => !e);
2229
2228
  };
2230
2229
  return (() => {
2231
- var e = sa(), u = e.firstChild, p = u.firstChild, m = p.firstChild, h = m.nextSibling, g = p.nextSibling, _ = g.nextSibling, v = u.nextSibling, y = v.nextSibling;
2230
+ var e = oa(), u = e.firstChild, p = u.firstChild, m = p.firstChild, h = m.nextSibling, g = p.nextSibling, _ = g.nextSibling, v = u.nextSibling, y = v.nextSibling;
2232
2231
  return f(e, l(n, { get class() {
2233
- return P(W["elm-toggle"], a() && W.open, t.class);
2234
- } }), !1, !0), u.$$click = d, s(m, i(V, {
2235
- d: re,
2232
+ return P(G["elm-toggle"], a() && G.open, t.class);
2233
+ } }), !1, !0), u.$$click = d, s(m, i(U, {
2234
+ d: ne,
2236
2235
  get color() {
2237
2236
  return t.monochrome ? "var(--elmethis-color-neutral-weak)" : "var(--elmethis-color-primary)";
2238
2237
  },
2239
2238
  size: "1rem"
2240
2239
  })), s(h, (() => {
2241
2240
  var e = c(() => typeof t.summary == "string");
2242
- return () => e() ? i(z, { get children() {
2241
+ return () => e() ? i(V, { get children() {
2243
2242
  return t.summary;
2244
2243
  } }) : t.summary;
2245
- })()), s(_, i(V, {
2246
- d: ve,
2244
+ })()), s(_, i(U, {
2245
+ d: ge,
2247
2246
  size: "1rem",
2248
2247
  get color() {
2249
2248
  return c(() => !!t.monochrome)() ? "var(--elmethis-color-neutral-weak)" : a() ? "var(--elmethis-color-accent-error)" : "var(--elmethis-color-primary)";
2250
2249
  }
2251
2250
  })), s(y, () => t.children), o((e) => {
2252
- var t = W.summary, n = W["summary-left"], i = P(W.chevron, a() && W.open), o = W.divider, s = P(W.cross, a() && W.open), c = W.border, l = P(W.content, a() && W.open);
2251
+ var t = G.summary, n = G["summary-left"], i = P(G.chevron, a() && G.open), o = G.divider, s = P(G.cross, a() && G.open), c = G.border, l = P(G.content, a() && G.open);
2253
2252
  return t !== e.e && r(u, e.e = t), n !== e.t && r(p, e.t = n), i !== e.a && r(m, e.a = i), o !== e.o && r(g, e.o = o), s !== e.i && r(_, e.i = s), c !== e.n && r(v, e.n = c), l !== e.s && r(y, e.s = l), e;
2254
2253
  }, {
2255
2254
  e: void 0,
@@ -2263,11 +2262,11 @@ var $i = {
2263
2262
  })();
2264
2263
  };
2265
2264
  a(["click"]);
2266
- var la = {
2265
+ var ca = {
2267
2266
  "elm-tooltip": "_elm-tooltip_1b13f_1",
2268
2267
  tooltip: "_tooltip_1b13f_5",
2269
2268
  show: "_show_1b13f_18"
2270
- }, ua = /* @__PURE__ */ m("<span><div>"), da = (e) => {
2269
+ }, la = /* @__PURE__ */ m("<span><div>"), ua = (e) => {
2271
2270
  let [t, n] = j(e, [
2272
2271
  "class",
2273
2272
  "ref",
@@ -2291,31 +2290,31 @@ var la = {
2291
2290
  left: `${e.x}px`
2292
2291
  }), a(!0);
2293
2292
  }
2294
- B(t.onMouseOver, e);
2293
+ H(t.onMouseOver, e);
2295
2294
  }, v = (e) => {
2296
2295
  m === void 0 && (m = setTimeout(() => {
2297
2296
  m = void 0, a(!1);
2298
- }, 250)), B(t.onMouseLeave, e);
2297
+ }, 250)), H(t.onMouseLeave, e);
2299
2298
  };
2300
2299
  return (() => {
2301
- var e = ua(), a = e.firstChild;
2300
+ var e = la(), a = e.firstChild;
2302
2301
  return h((e) => {
2303
2302
  d = e, typeof t.ref == "function" && t.ref(e);
2304
2303
  }, e), f(e, l(n, {
2305
2304
  get class() {
2306
- return P(la["elm-tooltip"], t.class);
2305
+ return P(ca["elm-tooltip"], t.class);
2307
2306
  },
2308
2307
  onMouseOver: _,
2309
2308
  onMouseLeave: v
2310
2309
  }), !1, !0), s(e, () => t.original, a), s(a, () => t.tooltip), o((e) => {
2311
- var t = P(la.tooltip, i() && la.show), n = c();
2310
+ var t = P(ca.tooltip, i() && ca.show), n = c();
2312
2311
  return t !== e.e && r(a, e.e = t), e.t = p(a, n, e.t), e;
2313
2312
  }, {
2314
2313
  e: void 0,
2315
2314
  t: void 0
2316
2315
  }), e;
2317
2316
  })();
2318
- }, G = {
2317
+ }, da = {
2319
2318
  "elm-button-dropdown": "_elm-button-dropdown_1v68r_1",
2320
2319
  block: "_block_1v68r_7",
2321
2320
  main: "_main_1v68r_11",
@@ -2330,7 +2329,7 @@ var la = {
2330
2329
  defaultSelectedOptionId: null,
2331
2330
  primary: !0,
2332
2331
  autoClose: !0,
2333
- dropdownIcon: pe
2332
+ dropdownIcon: L
2334
2333
  }, e), [
2335
2334
  "ref",
2336
2335
  "class",
@@ -2354,7 +2353,7 @@ var la = {
2354
2353
  "onClick",
2355
2354
  "onItemClick",
2356
2355
  "onOpenChange"
2357
- ]), [a, d] = mn({
2356
+ ]), [a, d] = fn({
2358
2357
  value: () => t.selectedOptionId,
2359
2358
  defaultValue: () => t.defaultSelectedOptionId,
2360
2359
  onChange: (e) => t.onSelectedOptionIdChange?.(e)
@@ -2376,14 +2375,14 @@ var la = {
2376
2375
  y = e, typeof t.ref == "function" && t.ref(e);
2377
2376
  }, e), f(e, l(n, {
2378
2377
  get class() {
2379
- return P(G["elm-button-dropdown"], t.block && G.block, t.class);
2378
+ return P(da["elm-button-dropdown"], t.block && da.block, t.class);
2380
2379
  },
2381
2380
  get style() {
2382
2381
  return t.style;
2383
2382
  }
2384
- }), !1, !0), s(e, i(pn, {
2383
+ }), !1, !0), s(e, i(dn, {
2385
2384
  get class() {
2386
- return P(G.main, G.segment);
2385
+ return P(da.main, da.segment);
2387
2386
  },
2388
2387
  type: "button",
2389
2388
  get primary() {
@@ -2413,13 +2412,13 @@ var la = {
2413
2412
  return e.icon;
2414
2413
  },
2415
2414
  keyed: !0,
2416
- children: (e) => i(Yt, { src: e })
2415
+ children: (e) => i(qt, { src: e })
2417
2416
  }), c(() => e.label)]
2418
2417
  });
2419
2418
  }
2420
- }), null), s(e, i(pn, {
2419
+ }), null), s(e, i(dn, {
2421
2420
  get class() {
2422
- return P(G.caret, G.segment);
2421
+ return P(da.caret, da.segment);
2423
2422
  },
2424
2423
  type: "button",
2425
2424
  get primary() {
@@ -2439,19 +2438,19 @@ var la = {
2439
2438
  return m();
2440
2439
  },
2441
2440
  get children() {
2442
- return i(V, {
2441
+ return i(U, {
2443
2442
  get d() {
2444
2443
  return t.dropdownIcon;
2445
2444
  },
2446
2445
  size: "1.25rem"
2447
2446
  });
2448
2447
  }
2449
- }), null), s(e, i(Gi, {
2448
+ }), null), s(e, i(Wi, {
2450
2449
  get isOpen() {
2451
2450
  return m();
2452
2451
  },
2453
2452
  get class() {
2454
- return G.menu;
2453
+ return da.menu;
2455
2454
  },
2456
2455
  get children() {
2457
2456
  return i(g, {
@@ -2462,8 +2461,8 @@ var la = {
2462
2461
  var t = fa();
2463
2462
  return t.$$click = (t) => {
2464
2463
  t.stopPropagation(), T(e);
2465
- }, s(t, i(V, {
2466
- d: re,
2464
+ }, s(t, i(U, {
2465
+ d: ne,
2467
2466
  color: "var(--elmethis-color-primary-weak)",
2468
2467
  size: "0.75em"
2469
2468
  }), null), s(t, i(v, {
@@ -2471,11 +2470,11 @@ var la = {
2471
2470
  return e.icon;
2472
2471
  },
2473
2472
  keyed: !0,
2474
- children: (e) => i(Yt, { src: e })
2475
- }), null), s(t, i(z, { get children() {
2473
+ children: (e) => i(qt, { src: e })
2474
+ }), null), s(t, i(V, { get children() {
2476
2475
  return e.label;
2477
2476
  } }), null), o((n) => {
2478
- var i = P(G.item, R.text, e.id === a() && G.selected, e.disabled && G["item-disabled"]), o = e.id === a();
2477
+ var i = P(da.item, B.text, e.id === a() && da.selected, e.disabled && da["item-disabled"]), o = e.id === a();
2479
2478
  return i !== n.e && r(t, n.e = i), o !== n.t && u(t, "aria-selected", n.t = o), n;
2480
2479
  }, {
2481
2480
  e: void 0,
@@ -2516,7 +2515,7 @@ var K = {
2516
2515
  "defaultSelectedOptionId",
2517
2516
  "onSelectedOptionIdChange",
2518
2517
  "icon"
2519
- ]), [a, c] = mn({
2518
+ ]), [a, c] = fn({
2520
2519
  value: () => t.selectedOptionId,
2521
2520
  defaultValue: () => t.defaultSelectedOptionId ?? null,
2522
2521
  onChange: (e) => t.onSelectedOptionIdChange?.(e)
@@ -2528,7 +2527,7 @@ var K = {
2528
2527
  document.addEventListener("click", e), k(() => document.removeEventListener("click", e));
2529
2528
  });
2530
2529
  let _ = (e) => {
2531
- B(t.onClick, e), !e.defaultPrevented && !t.disabled && !t.isLoading && p((e) => !e);
2530
+ H(t.onClick, e), !e.defaultPrevented && !t.disabled && !t.isLoading && p((e) => !e);
2532
2531
  };
2533
2532
  return (() => {
2534
2533
  var e = ma(), a = e.firstChild, y = a.nextSibling, b = y.firstChild;
@@ -2542,8 +2541,8 @@ var K = {
2542
2541
  return t.style;
2543
2542
  },
2544
2543
  onClick: _
2545
- }), !1, !0), s(a, () => t.icon ?? i(V, {
2546
- d: ne,
2544
+ }), !1, !0), s(a, () => t.icon ?? i(U, {
2545
+ d: te,
2547
2546
  size: "0.75rem"
2548
2547
  }), null), s(a, () => t.label, null), s(b, i(v, {
2549
2548
  get when() {
@@ -2563,15 +2562,15 @@ var K = {
2563
2562
  return e.icon;
2564
2563
  },
2565
2564
  keyed: !0,
2566
- children: (e) => i(Yt, { src: e })
2567
- }), null), s(t, i(z, { get children() {
2565
+ children: (e) => i(qt, { src: e })
2566
+ }), null), s(t, i(V, { get children() {
2568
2567
  return e.label;
2569
2568
  } }), null), o(() => r(t, K["option-content"])), t;
2570
2569
  })()
2571
- })), s(y, i(V, {
2572
- d: pe,
2570
+ })), s(y, i(U, {
2571
+ d: L,
2573
2572
  size: "1.5rem"
2574
- }), null), s(y, i(Gi, {
2573
+ }), null), s(y, i(Wi, {
2575
2574
  get isOpen() {
2576
2575
  return d();
2577
2576
  },
@@ -2587,8 +2586,8 @@ var K = {
2587
2586
  var t = ga();
2588
2587
  return t.$$click = (t) => {
2589
2588
  t.stopPropagation(), c(e.id), p(!1);
2590
- }, s(t, i(V, {
2591
- d: re,
2589
+ }, s(t, i(U, {
2590
+ d: ne,
2592
2591
  color: "var(--elmethis-color-primary-weak)",
2593
2592
  size: "0.75em"
2594
2593
  }), null), s(t, i(v, {
@@ -2596,15 +2595,15 @@ var K = {
2596
2595
  return e.icon;
2597
2596
  },
2598
2597
  keyed: !0,
2599
- children: (e) => i(Yt, { src: e })
2600
- }), null), s(t, i(z, { get children() {
2598
+ children: (e) => i(qt, { src: e })
2599
+ }), null), s(t, i(V, { get children() {
2601
2600
  return e.label;
2602
- } }), null), o(() => r(t, P(K.option, R.text))), t;
2601
+ } }), null), o(() => r(t, P(K.option, B.text))), t;
2603
2602
  })()
2604
2603
  });
2605
2604
  }
2606
2605
  }), null), o((e) => {
2607
- var t = P(K.label, d() && K["label-active"]), n = K.body, i = P(K["selected-option"], R.text);
2606
+ var t = P(K.label, d() && K["label-active"]), n = K.body, i = P(K["selected-option"], B.text);
2608
2607
  return t !== e.e && r(a, e.e = t), n !== e.t && r(y, e.t = n), i !== e.a && r(b, e.a = i), e;
2609
2608
  }, {
2610
2609
  e: void 0,
@@ -2619,7 +2618,7 @@ a(["click"]);
2619
2618
  var va = (e = {}) => {
2620
2619
  let [t, n] = w(!1), r = () => n(!0), a = () => n(!1);
2621
2620
  return {
2622
- Modal: (n) => i(Qi, {
2621
+ Modal: (n) => i(Zi, {
2623
2622
  get isOpen() {
2624
2623
  return t();
2625
2624
  },
@@ -2683,10 +2682,10 @@ var va = (e = {}) => {
2683
2682
  },
2684
2683
  children: (e) => (() => {
2685
2684
  var t = Sa(), n = t.firstChild;
2686
- return s(n, i(V, {
2687
- d: me,
2685
+ return s(n, i(U, {
2686
+ d: fe,
2688
2687
  size: "1.25rem"
2689
- })), s(t, i(z, {
2688
+ })), s(t, i(V, {
2690
2689
  size: "1rem",
2691
2690
  get children() {
2692
2691
  return e();
@@ -2739,14 +2738,14 @@ var wa = {
2739
2738
  return h((e) => {
2740
2739
  y = e;
2741
2740
  }, c), f(p, l(n, { get class() {
2742
- return P(wa["elm-table"], R.text, t.hasRowHeader && wa["sticky-row-header"], t.class);
2741
+ return P(wa["elm-table"], B.text, t.hasRowHeader && wa["sticky-row-header"], t.class);
2743
2742
  } }), !1, !0), s(p, i(v, {
2744
2743
  get when() {
2745
2744
  return t.caption;
2746
2745
  },
2747
2746
  children: (e) => (() => {
2748
2747
  var t = Oa(), n = t.firstChild, a = n.firstChild, c = a.nextSibling, l = c.nextSibling;
2749
- return s(c, i(z, { get children() {
2748
+ return s(c, i(V, { get children() {
2750
2749
  return e();
2751
2750
  } })), o((e) => {
2752
2751
  var t = wa.caption, i = wa.spacing, o = wa["caption-inner"], s = wa.spacing;
@@ -2828,13 +2827,13 @@ var wa = {
2828
2827
  })();
2829
2828
  }, Ba = { "elm-shiki-highlighter": "_elm-shiki-highlighter_slumv_1" }, Va = /* @__PURE__ */ m("<pre>"), Ha = (e) => {
2830
2829
  let t = e.trim().toLowerCase();
2831
- return t in ot ? t : "text";
2830
+ return t in it ? t : "text";
2832
2831
  }, Ua = (e) => e.replaceAll("&", "&amp;").replaceAll("<", "&lt;"), Wa = (e) => {
2833
2832
  let [t, n] = j(D({ language: "txt" }, e), [
2834
2833
  "class",
2835
2834
  "code",
2836
2835
  "language"
2837
- ]), [r, i] = w(""), a = 0, o = !1;
2836
+ ]), [r, i] = w(Ua(M(() => t.code))), a = 0, o = !1;
2838
2837
  return A(() => {
2839
2838
  S(() => {
2840
2839
  let e = t.code, n = Ha(t.language), r = ++a;
@@ -2845,15 +2844,15 @@ var wa = {
2845
2844
  (async () => {
2846
2845
  let t;
2847
2846
  try {
2848
- if (t = await st({
2849
- themes: [ct, lt],
2847
+ if (t = await at({
2848
+ themes: [ot, st],
2850
2849
  langs: n === "text" ? [] : [n]
2851
2850
  }), o || r !== a) return;
2852
2851
  let s = t.codeToHtml(e, {
2853
2852
  lang: n,
2854
2853
  themes: {
2855
- dark: ct,
2856
- light: lt
2854
+ dark: ot,
2855
+ light: st
2857
2856
  },
2858
2857
  defaultColor: !1,
2859
2858
  colorReplacements: {
@@ -2901,11 +2900,11 @@ var wa = {
2901
2900
  var e = Ka(), a = e.firstChild, u = a.nextSibling, d = u.nextSibling, p = d.nextSibling, m = p.nextSibling;
2902
2901
  return f(e, l(n, { get class() {
2903
2902
  return P(Ga["elm-code-block"], t.class);
2904
- } }), !1, !0), s(a, i(zn, { get language() {
2903
+ } }), !1, !0), s(a, i(Ln, { get language() {
2905
2904
  return t.language;
2906
- } })), s(u, i(z, { get children() {
2905
+ } })), s(u, i(V, { get children() {
2907
2906
  return [c(() => t.caption || t.language), c(() => t.children)];
2908
- } })), s(d, i(Nn, { get content() {
2907
+ } })), s(d, i(jn, { get content() {
2909
2908
  return t.code;
2910
2909
  } })), s(m, i(Wa, {
2911
2910
  get code() {
@@ -2933,7 +2932,7 @@ var wa = {
2933
2932
  }), $a = (e) => "tokens" in e && Array.isArray(e.tokens) ? e.tokens : [], eo = (e) => "text" in e && typeof e.text == "string" ? e.text : "", to = (e) => {
2934
2933
  let t = $a(e), n = () => t.length > 0 ? i(Qa, { tokens: t }) : eo(e);
2935
2934
  switch (e.type) {
2936
- case "blockquote": return t.length > 0 ? i(Zr, { get children() {
2935
+ case "blockquote": return t.length > 0 ? i(Xr, { get children() {
2937
2936
  return i(Qa, { tokens: t });
2938
2937
  } }) : void 0;
2939
2938
  case "br": return Ya();
@@ -2945,26 +2944,26 @@ var wa = {
2945
2944
  return e.lang ?? "txt";
2946
2945
  }
2947
2946
  });
2948
- case "codespan": return i(z, {
2947
+ case "codespan": return i(V, {
2949
2948
  code: !0,
2950
2949
  get children() {
2951
2950
  return e.text;
2952
2951
  }
2953
2952
  });
2954
- case "del": return i(z, {
2953
+ case "del": return i(V, {
2955
2954
  strikethrough: !0,
2956
2955
  get children() {
2957
2956
  return n();
2958
2957
  }
2959
2958
  });
2960
- case "em": return i(z, {
2959
+ case "em": return i(V, {
2961
2960
  italic: !0,
2962
2961
  get children() {
2963
2962
  return n();
2964
2963
  }
2965
2964
  });
2966
2965
  case "escape": return e.text;
2967
- case "heading": return i(pi, {
2966
+ case "heading": return i(fi, {
2968
2967
  get level() {
2969
2968
  return e.depth;
2970
2969
  },
@@ -2972,7 +2971,7 @@ var wa = {
2972
2971
  return n();
2973
2972
  }
2974
2973
  });
2975
- case "hr": return i(ii, {});
2974
+ case "hr": return i(ri, {});
2976
2975
  case "html": return;
2977
2976
  case "image": return i(Ca, {
2978
2977
  enableModal: !0,
@@ -2983,7 +2982,7 @@ var wa = {
2983
2982
  return e.text;
2984
2983
  }
2985
2984
  });
2986
- case "link": return i(z, {
2985
+ case "link": return i(V, {
2987
2986
  get href() {
2988
2987
  return e.href;
2989
2988
  },
@@ -2991,7 +2990,7 @@ var wa = {
2991
2990
  return n();
2992
2991
  }
2993
2992
  });
2994
- case "list": return i(hi, {
2993
+ case "list": return i(mi, {
2995
2994
  get listStyle() {
2996
2995
  return e.ordered ? "ordered" : "unordered";
2997
2996
  },
@@ -3016,10 +3015,10 @@ var wa = {
3016
3015
  return () => n() ? i(Qa, { tokens: t }) : e.text;
3017
3016
  })()), n;
3018
3017
  })();
3019
- case "paragraph": return i(vi, { get children() {
3018
+ case "paragraph": return i(_i, { get children() {
3020
3019
  return n();
3021
3020
  } });
3022
- case "strong": return i(z, {
3021
+ case "strong": return i(V, {
3023
3022
  bold: !0,
3024
3023
  get children() {
3025
3024
  return n();
@@ -3066,7 +3065,7 @@ var wa = {
3066
3065
  "markdown",
3067
3066
  "isStreaming"
3068
3067
  ]), r = [], a = C(() => {
3069
- let e = t.markdown, n = ut.lexer(e, { gfm: !0 });
3068
+ let e = t.markdown, n = ct.lexer(e, { gfm: !0 });
3070
3069
  if (!(t.isStreaming && n.length > 0)) return r = n, {
3071
3070
  stable: n,
3072
3071
  tail: []
@@ -3331,11 +3330,11 @@ var po = (e) => {
3331
3330
  var e = go(), a = e.firstChild, c = a.firstChild, p = c.nextSibling, m = a.nextSibling, h = m.nextSibling;
3332
3331
  return f(e, l(n, { get class() {
3333
3332
  return P(ho["elm-html-viewer"], t.class);
3334
- } }), !1, !0), c.$$click = d, s(c, i(V, {
3335
- d: oe,
3333
+ } }), !1, !0), c.$$click = d, s(c, i(U, {
3334
+ d: ae,
3336
3335
  size: "1.25rem"
3337
- })), p.$$click = u, s(p, i(V, {
3338
- d: he,
3336
+ })), p.$$click = u, s(p, i(U, {
3337
+ d: pe,
3339
3338
  size: "1.25rem"
3340
3339
  })), s(h, i(mo, {
3341
3340
  get html() {
@@ -3444,11 +3443,11 @@ var q = {
3444
3443
  ]), a = () => t.min ?? 0, c = () => t.max ?? 100, u = () => t.step ?? 1, m = () => t.orientation ?? "horizontal", _ = C(() => Math.min(a(), c())), y = C(() => Math.max(a(), c())), b = C(() => Co(t.innerMin ?? _(), _(), y())), x = C(() => Co(t.innerMax ?? y(), b(), y())), T = (e) => Co(wo(e), b(), x()), E = (e) => {
3445
3444
  let t = Math.abs(u());
3446
3445
  return T(t === 0 ? e : a() + Math.round((e - a()) / t) * t);
3447
- }, D = (e) => c() === a() ? 0 : Co((e - a()) / (c() - a()), 0, 1), [O, M] = mn({
3446
+ }, D = (e) => c() === a() ? 0 : Co((e - a()) / (c() - a()), 0, 1), [O, M] = fn({
3448
3447
  value: () => t.value,
3449
3448
  defaultValue: () => T(t.defaultValue ?? (b() + x()) / 2),
3450
3449
  onChange: (e) => t.onValueChange?.(e)
3451
- }), N = C(() => T(O())), ee = C(() => D(N())), te = C(() => D(b())), ne = C(() => D(x())), re = C(() => Math.min(te(), ne())), ie = C(() => Math.max(te(), ne())), ae = C(() => Math.min(ee(), te())), oe = C(() => Math.abs(ee() - te())), se = C(() => !!(t.markers || t.markerLabels)), ce = C(() => Eo(se(), a(), c(), u())), le = C(() => ce().map((e) => {
3450
+ }), N = C(() => T(O())), ee = C(() => D(N())), F = C(() => D(b())), te = C(() => D(x())), ne = C(() => Math.min(F(), te())), re = C(() => Math.max(F(), te())), ie = C(() => Math.min(ee(), F())), ae = C(() => Math.abs(ee() - F())), oe = C(() => !!(t.markers || t.markerLabels)), se = C(() => Eo(oe(), a(), c(), u())), ce = C(() => se().map((e) => {
3452
3451
  let n = C(() => {
3453
3452
  if (t.markerLabels) return t.formatMarkerLabel?.(e.value) ?? e.value;
3454
3453
  });
@@ -3456,47 +3455,47 @@ var q = {
3456
3455
  ...e,
3457
3456
  label: n
3458
3457
  };
3459
- })), ue = C(() => le().reduce((e, t) => Math.max(e, To(t.label())), 0)), [de, fe] = w(0), F = /* @__PURE__ */ new Set(), pe, me, I, he = () => {
3458
+ })), le = C(() => ce().reduce((e, t) => Math.max(e, To(t.label())), 0)), [ue, de] = w(0), I = /* @__PURE__ */ new Set(), L, fe, R, pe = () => {
3460
3459
  let e = 0;
3461
- for (let t of F) e = Math.max(e, t.getBoundingClientRect().width);
3462
- fe(Math.ceil(e));
3463
- }, ge = (e) => {
3464
- F.add(e), pe?.observe(e), k(() => {
3465
- F.delete(e), pe?.unobserve(e), he();
3460
+ for (let t of I) e = Math.max(e, t.getBoundingClientRect().width);
3461
+ de(Math.ceil(e));
3462
+ }, me = (e) => {
3463
+ I.add(e), L?.observe(e), k(() => {
3464
+ I.delete(e), L?.unobserve(e), pe();
3466
3465
  });
3467
- }, _e = (e = I) => {
3468
- e === void 0 || e !== I || (me?.hasPointerCapture(e) && me.releasePointerCapture(e), I === e && (I = void 0));
3466
+ }, he = (e = R) => {
3467
+ e === void 0 || e !== R || (fe?.hasPointerCapture(e) && fe.releasePointerCapture(e), R === e && (R = void 0));
3469
3468
  };
3470
3469
  A(() => {
3471
- pe = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(he);
3472
- for (let e of F) pe?.observe(e);
3473
- he(), k(() => {
3474
- _e(), pe?.disconnect(), pe = void 0, F.clear();
3470
+ L = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(pe);
3471
+ for (let e of I) L?.observe(e);
3472
+ pe(), k(() => {
3473
+ he(), L?.disconnect(), L = void 0, I.clear();
3475
3474
  });
3476
3475
  }), S(() => {
3477
- t.disabled && _e();
3476
+ t.disabled && he();
3478
3477
  });
3479
- let ve = (e, t) => {
3480
- if (me == null) return N();
3481
- let n = me.getBoundingClientRect(), r = m() === "vertical" ? n.height === 0 ? 0 : Co((n.bottom - t) / n.height, 0, 1) : n.width === 0 ? 0 : Co((e - n.left) / n.width, 0, 1);
3478
+ let ge = (e, t) => {
3479
+ if (fe == null) return N();
3480
+ let n = fe.getBoundingClientRect(), r = m() === "vertical" ? n.height === 0 ? 0 : Co((n.bottom - t) / n.height, 0, 1) : n.width === 0 ? 0 : Co((e - n.left) / n.width, 0, 1);
3482
3481
  return E(a() + r * (c() - a()));
3483
- }, ye = (e) => {
3484
- t.disabled || (I !== void 0 && I !== e.pointerId && _e(), e.currentTarget.setPointerCapture(e.pointerId), I = e.pointerId, M(ve(e.clientX, e.clientY)), B(t.onPointerDown, e));
3485
- }, be = (e) => {
3482
+ }, _e = (e) => {
3483
+ t.disabled || (R !== void 0 && R !== e.pointerId && he(), e.currentTarget.setPointerCapture(e.pointerId), R = e.pointerId, M(ge(e.clientX, e.clientY)), H(t.onPointerDown, e));
3484
+ }, ve = (e) => {
3486
3485
  if (!t.disabled) {
3487
- if (I !== e.pointerId || !e.currentTarget.hasPointerCapture(e.pointerId)) {
3488
- B(t.onPointerMove, e);
3486
+ if (R !== e.pointerId || !e.currentTarget.hasPointerCapture(e.pointerId)) {
3487
+ H(t.onPointerMove, e);
3489
3488
  return;
3490
3489
  }
3491
- M(ve(e.clientX, e.clientY)), B(t.onPointerMove, e);
3490
+ M(ge(e.clientX, e.clientY)), H(t.onPointerMove, e);
3492
3491
  }
3492
+ }, ye = (e) => {
3493
+ t.disabled || (he(e.pointerId), H(t.onPointerUp, e));
3494
+ }, be = (e) => {
3495
+ t.disabled || (he(e.pointerId), H(t.onPointerCancel, e));
3493
3496
  }, xe = (e) => {
3494
- t.disabled || (_e(e.pointerId), B(t.onPointerUp, e));
3497
+ R === e.pointerId && (R = void 0), t.disabled || H(t.onLostPointerCapture, e);
3495
3498
  }, Se = (e) => {
3496
- t.disabled || (_e(e.pointerId), B(t.onPointerCancel, e));
3497
- }, Ce = (e) => {
3498
- I === e.pointerId && (I = void 0), t.disabled || B(t.onLostPointerCapture, e);
3499
- }, we = (e) => {
3500
3499
  if (t.disabled) return;
3501
3500
  let n = Math.abs(u());
3502
3501
  switch (e.key) {
@@ -3521,12 +3520,12 @@ var q = {
3521
3520
  e.preventDefault(), M(x());
3522
3521
  break;
3523
3522
  }
3524
- B(t.onKeyDown, e);
3523
+ H(t.onKeyDown, e);
3525
3524
  };
3526
3525
  return (() => {
3527
3526
  var e = yo(), a = e.firstChild, c = a.firstChild, u = c.firstChild, _ = u.nextSibling, y = _.nextSibling, S = c.nextSibling;
3528
3527
  return h((e) => {
3529
- me = e, typeof t.ref == "function" && t.ref(e);
3528
+ fe = e, typeof t.ref == "function" && t.ref(e);
3530
3529
  }, a), f(a, l({ get tabIndex() {
3531
3530
  return t.disabled ? -1 : 0;
3532
3531
  } }, n, {
@@ -3549,21 +3548,21 @@ var q = {
3549
3548
  get "aria-disabled"() {
3550
3549
  return t.disabled || void 0;
3551
3550
  },
3552
- onPointerDown: ye,
3553
- onPointerMove: be,
3554
- onPointerUp: xe,
3555
- onPointerCancel: Se,
3556
- onLostPointerCapture: Ce,
3557
- onKeyDown: we
3551
+ onPointerDown: _e,
3552
+ onPointerMove: ve,
3553
+ onPointerUp: ye,
3554
+ onPointerCancel: be,
3555
+ onLostPointerCapture: xe,
3556
+ onKeyDown: Se
3558
3557
  }), !1, !0), s(a, i(v, {
3559
3558
  get when() {
3560
- return le().length > 0;
3559
+ return ce().length > 0;
3561
3560
  },
3562
3561
  get children() {
3563
3562
  var e = vo();
3564
3563
  return s(e, i(g, {
3565
3564
  get each() {
3566
- return le();
3565
+ return ce();
3567
3566
  },
3568
3567
  children: (e, n) => (() => {
3569
3568
  var a = xo();
@@ -3581,10 +3580,10 @@ var q = {
3581
3580
  },
3582
3581
  get children() {
3583
3582
  var t = xo();
3584
- return h(ge, t), s(t, () => e.label()), o(() => r(t, q["mark-label"])), t;
3583
+ return h(me, t), s(t, () => e.label()), o(() => r(t, q["mark-label"])), t;
3585
3584
  }
3586
3585
  }), null), o((t) => {
3587
- var i = P(q.mark, n() === 0 && q["mark-start"], n() === le().length - 1 && q["mark-end"], (e.value < b() || e.value > x()) && q["mark-restricted"]), o = e.ratio;
3586
+ var i = P(q.mark, n() === 0 && q["mark-start"], n() === ce().length - 1 && q["mark-end"], (e.value < b() || e.value > x()) && q["mark-restricted"]), o = e.ratio;
3588
3587
  return i !== t.e && r(a, t.e = i), o !== t.t && d(a, "--elmethis-scoped-marker-ratio", t.t = o), t;
3589
3588
  }, {
3590
3589
  e: void 0,
@@ -3594,14 +3593,14 @@ var q = {
3594
3593
  })), o(() => r(e, q.marks)), e;
3595
3594
  }
3596
3595
  }), S), o((n) => {
3597
- var i = P(q["elm-slider"], m() === "vertical" && q.vertical, t.disabled && q.disabled, t.markers && q["has-markers"], t.markerLabels && q["has-marker-labels"], t.class), a = L(t.style, {
3596
+ var i = P(q["elm-slider"], m() === "vertical" && q.vertical, t.disabled && q.disabled, t.markers && q["has-markers"], t.markerLabels && q["has-marker-labels"], t.class), a = z(t.style, {
3598
3597
  "--elmethis-scoped-value-ratio": ee(),
3599
- "--elmethis-scoped-inner-min-ratio": re(),
3600
- "--elmethis-scoped-inner-max-ratio": ie(),
3601
- "--elmethis-scoped-fill-start-ratio": ae(),
3602
- "--elmethis-scoped-fill-size-ratio": oe(),
3603
- "--elmethis-scoped-max-marker-label-chars": ue(),
3604
- "--elmethis-scoped-max-marker-label-width": `${de()}px`
3598
+ "--elmethis-scoped-inner-min-ratio": ne(),
3599
+ "--elmethis-scoped-inner-max-ratio": re(),
3600
+ "--elmethis-scoped-fill-start-ratio": ie(),
3601
+ "--elmethis-scoped-fill-size-ratio": ae(),
3602
+ "--elmethis-scoped-max-marker-label-chars": le(),
3603
+ "--elmethis-scoped-max-marker-label-width": `${ue()}px`
3605
3604
  }), o = q.rail, s = q["restricted-start"], l = q.fill, d = q["restricted-end"], f = q.thumb;
3606
3605
  return i !== n.e && r(e, n.e = i), n.t = p(e, a, n.t), o !== n.a && r(c, n.a = o), s !== n.o && r(u, n.o = s), l !== n.i && r(_, n.i = l), d !== n.n && r(y, n.n = d), f !== n.s && r(S, n.s = f), n;
3607
3606
  }, {
@@ -3655,8 +3654,8 @@ var q = {
3655
3654
  };
3656
3655
  return (() => {
3657
3656
  var e = Ao(), u = e.firstChild, m = u.firstChild, g = u.nextSibling, w = g.firstChild, T = g.nextSibling;
3658
- return s(u, () => t.icon ?? i(V, {
3659
- d: xe,
3657
+ return s(u, () => t.icon ?? i(U, {
3658
+ d: ye,
3660
3659
  size: "0.75rem"
3661
3660
  }), m), s(m, () => t.label, null), s(m, i(v, {
3662
3661
  get when() {
@@ -3671,7 +3670,7 @@ var q = {
3671
3670
  return _();
3672
3671
  },
3673
3672
  get children() {
3674
- return i(z, {
3673
+ return i(V, {
3675
3674
  get color() {
3676
3675
  return t.maxLength != null && y() > t.maxLength ? "var(--elmethis-color-accent-error)" : "gray";
3677
3676
  },
@@ -3778,8 +3777,8 @@ var q = {
3778
3777
  };
3779
3778
  return (() => {
3780
3779
  var e = No(), m = e.firstChild, w = m.firstChild, E = m.nextSibling, D = E.firstChild, O = D.nextSibling, k = O.firstChild, A = k.nextSibling, j = A.nextSibling, M = E.nextSibling;
3781
- return s(m, () => t.icon ?? i(V, {
3782
- d: be,
3780
+ return s(m, () => t.icon ?? i(U, {
3781
+ d: ve,
3783
3782
  size: "0.75rem"
3784
3783
  }), w), s(w, () => t.label, null), s(w, i(v, {
3785
3784
  get when() {
@@ -3794,7 +3793,7 @@ var q = {
3794
3793
  return t.value != null;
3795
3794
  },
3796
3795
  get children() {
3797
- return i(z, {
3796
+ return i(V, {
3798
3797
  get color() {
3799
3798
  return t.maxLength != null && String(t.value).length > t.maxLength ? "var(--elmethis-color-accent-error)" : "gray";
3800
3799
  },
@@ -3852,18 +3851,18 @@ var q = {
3852
3851
  return t.suffix != null;
3853
3852
  },
3854
3853
  get children() {
3855
- return i(z, { get children() {
3854
+ return i(V, { get children() {
3856
3855
  return t.suffix;
3857
3856
  } });
3858
3857
  }
3859
- })), A.$$click = () => _((e) => e === "text" ? "password" : "text"), s(A, i(V, {
3858
+ })), A.$$click = () => _((e) => e === "text" ? "password" : "text"), s(A, i(U, {
3860
3859
  get d() {
3861
- return g() === "text" ? ce : se;
3860
+ return g() === "text" ? se : oe;
3862
3861
  },
3863
3862
  size: "1.25rem",
3864
3863
  color: "gray"
3865
- })), j.$$click = () => b(""), s(j, i(V, {
3866
- d: Se,
3864
+ })), j.$$click = () => b(""), s(j, i(U, {
3865
+ d: be,
3867
3866
  size: "1.25rem",
3868
3867
  color: "gray"
3869
3868
  })), o((n) => {
@@ -3943,50 +3942,50 @@ var Y = {
3943
3942
  "seekStep",
3944
3943
  "loop",
3945
3944
  "autoPlay"
3946
- ]), a, p, m = null, [g, _] = w(!1), [v, y] = w(!0), [b, x] = w(!1), [T, E] = w(0), [O, A] = w(0), [M, N] = w(1), [te, ne] = w(!1), [re, ie] = w(null), ae = C(() => T() > 0 ? Math.min(1, O() / T()) : 0), oe = C(() => t.title ?? Ho(t.src)), se = C(() => te() || M() === 0 ? Ee : M() < .34 ? we : M() < .67 ? Te : Ce), ce = () => {
3945
+ ]), a, p, m = null, [g, _] = w(!1), [v, y] = w(!0), [b, x] = w(!1), [T, E] = w(0), [O, A] = w(0), [M, N] = w(1), [F, te] = w(!1), [ne, re] = w(null), ie = C(() => T() > 0 ? Math.min(1, O() / T()) : 0), ae = C(() => t.title ?? Ho(t.src)), oe = C(() => F() || M() === 0 ? we : M() < .34 ? Se : M() < .67 ? Ce : xe), se = () => {
3947
3946
  m != null && (cancelAnimationFrame(m), m = null);
3948
- }, ue = () => {
3947
+ }, le = () => {
3949
3948
  if (m != null) return;
3950
3949
  let e = () => {
3951
3950
  a && A(a.currentTime), m = requestAnimationFrame(e);
3952
3951
  };
3953
3952
  m = requestAnimationFrame(e);
3954
3953
  };
3955
- k(ce);
3956
- let de;
3954
+ k(se);
3955
+ let ue;
3957
3956
  S(() => {
3958
3957
  let e = t.src;
3959
- if (de === void 0) {
3960
- de = e;
3958
+ if (ue === void 0) {
3959
+ ue = e;
3961
3960
  return;
3962
3961
  }
3963
- e !== de && (de = e, ce(), _(!1), y(!0), x(!1), E(0), A(0), ie(null));
3962
+ e !== ue && (ue = e, se(), _(!1), y(!0), x(!1), E(0), A(0), re(null));
3964
3963
  });
3965
- let fe = () => {
3964
+ let de = () => {
3966
3965
  a && (a.paused ? a.play().catch(() => _(!1)) : a.pause());
3967
- }, F = (e) => {
3966
+ }, I = (e) => {
3968
3967
  let t = T();
3969
3968
  if (!a || !Number.isFinite(t) || t <= 0) return;
3970
3969
  let n = Math.max(0, Math.min(t, e));
3971
3970
  a.currentTime = n, A(n);
3972
- }, pe = (e) => {
3971
+ }, L = (e) => {
3973
3972
  if (!p) return 0;
3974
3973
  let t = p.getBoundingClientRect();
3975
3974
  return t.width === 0 ? 0 : Math.max(0, Math.min(1, (e - t.left) / t.width));
3976
- }, me = (e) => {
3977
- e.currentTarget.setPointerCapture(e.pointerId), F(pe(e.clientX) * T());
3978
- }, he = (e) => {
3979
- let t = pe(e.clientX);
3980
- ie(t), e.currentTarget.hasPointerCapture(e.pointerId) && F(t * T());
3975
+ }, fe = (e) => {
3976
+ e.currentTarget.setPointerCapture(e.pointerId), I(L(e.clientX) * T());
3977
+ }, pe = (e) => {
3978
+ let t = L(e.clientX);
3979
+ re(t), e.currentTarget.hasPointerCapture(e.pointerId) && I(t * T());
3980
+ }, ge = (e) => {
3981
+ e.key === "ArrowRight" ? (e.preventDefault(), I(O() + t.seekStep)) : e.key === "ArrowLeft" ? (e.preventDefault(), I(O() - t.seekStep)) : e.key === "Home" ? (e.preventDefault(), I(0)) : e.key === "End" && (e.preventDefault(), I(T()));
3981
3982
  }, ve = (e) => {
3982
- e.key === "ArrowRight" ? (e.preventDefault(), F(O() + t.seekStep)) : e.key === "ArrowLeft" ? (e.preventDefault(), F(O() - t.seekStep)) : e.key === "Home" ? (e.preventDefault(), F(0)) : e.key === "End" && (e.preventDefault(), F(T()));
3983
- }, be = (e) => {
3984
3983
  let t = Math.max(0, Math.min(1, e));
3985
- a && (a.volume = t, a.muted = t === 0), N(t), ne(t === 0);
3986
- }, xe = () => {
3984
+ a && (a.volume = t, a.muted = t === 0), N(t), te(t === 0);
3985
+ }, ye = () => {
3987
3986
  if (!a) return;
3988
3987
  let e = !a.muted;
3989
- a.muted = e, ne(e);
3988
+ a.muted = e, te(e);
3990
3989
  };
3991
3990
  return (() => {
3992
3991
  var e = Io(), S = e.firstChild, C = S.nextSibling, w = C.firstChild, D = w.nextSibling, k = D.firstChild, j = D.nextSibling;
@@ -3995,33 +3994,33 @@ var Y = {
3995
3994
  return P(Y["elm-audio-player"], g() && Y.playing, v() && Y.loading, b() && Y.errored, t.class);
3996
3995
  },
3997
3996
  get style() {
3998
- return L(t.style, {
3999
- "--elmethis-scoped-progress": ae(),
4000
- "--elmethis-scoped-hover": re() ?? 0
3997
+ return z(t.style, {
3998
+ "--elmethis-scoped-progress": ie(),
3999
+ "--elmethis-scoped-hover": ne() ?? 0
4001
4000
  });
4002
4001
  }
4003
4002
  }), !1, !0), S.addEventListener("error", () => {
4004
- ce(), _(!1), x(!0), y(!1);
4003
+ se(), _(!1), x(!0), y(!1);
4005
4004
  }), S.addEventListener("volumechange", (e) => {
4006
- N(e.currentTarget.volume), ne(e.currentTarget.muted);
4005
+ N(e.currentTarget.volume), te(e.currentTarget.muted);
4007
4006
  }), S.addEventListener("ended", () => {
4008
- _(!1), ce();
4007
+ _(!1), se();
4009
4008
  }), S.addEventListener("pause", () => {
4010
- _(!1), ce();
4009
+ _(!1), se();
4011
4010
  }), S.addEventListener("play", () => {
4012
- _(!0), ue();
4011
+ _(!0), le();
4013
4012
  }), S.addEventListener("timeupdate", (e) => {
4014
4013
  m ?? A(e.currentTarget.currentTime);
4015
4014
  }), S.addEventListener("playing", () => y(!1)), S.addEventListener("waiting", () => y(!0)), S.addEventListener("canplay", () => y(!1)), S.addEventListener("durationchange", (e) => E(e.currentTarget.duration)), S.addEventListener("loadedmetadata", (e) => {
4016
- E(e.currentTarget.duration), N(e.currentTarget.volume), ne(e.currentTarget.muted), y(!1);
4015
+ E(e.currentTarget.duration), N(e.currentTarget.volume), te(e.currentTarget.muted), y(!1);
4017
4016
  }), h((e) => {
4018
4017
  a = e;
4019
- }, S), s(w, i(V, {
4018
+ }, S), s(w, i(U, {
4020
4019
  get d() {
4021
- return b() ? ee : I;
4020
+ return b() ? ee : R;
4022
4021
  },
4023
4022
  size: "1.25rem"
4024
- })), s(k, oe), s(D, (() => {
4023
+ })), s(k, ae), s(D, (() => {
4025
4024
  var e = c(() => !!t.artist);
4026
4025
  return () => e() && (() => {
4027
4026
  var e = Lo();
@@ -4031,7 +4030,7 @@ var Y = {
4031
4030
  var e = c(() => !!b());
4032
4031
  return () => e() ? (() => {
4033
4032
  var e = Ro(), n = e.firstChild;
4034
- return s(e, i(V, {
4033
+ return s(e, i(U, {
4035
4034
  d: ee,
4036
4035
  size: "1.25rem"
4037
4036
  }), n), s(n, () => t.errorMessage), o((t) => {
@@ -4043,7 +4042,7 @@ var Y = {
4043
4042
  }), e;
4044
4043
  })() : [(() => {
4045
4044
  var e = zo(), t = e.firstChild, n = t.firstChild, i = t.nextSibling, a = i.nextSibling;
4046
- return e.$$keydown = ve, e.addEventListener("pointerleave", () => ie(null)), e.$$pointermove = he, e.$$pointerdown = me, h((e) => {
4045
+ return e.$$keydown = ge, e.addEventListener("pointerleave", () => re(null)), e.$$pointermove = pe, e.$$pointerdown = fe, h((e) => {
4047
4046
  p = e;
4048
4047
  }, e), o((o) => {
4049
4048
  var s = Y.seekbar, c = Math.round(T()) || 0, l = Math.round(O()), d = `${Vo(O())} of ${Vo(T())}`, f = Y.track, p = Y.fill, m = Y["hover-thumb"], h = Y.thumb;
@@ -4060,24 +4059,24 @@ var Y = {
4060
4059
  }), e;
4061
4060
  })(), (() => {
4062
4061
  var e = Bo(), n = e.firstChild, a = n.nextSibling, c = a.firstChild, l = c.nextSibling, f = l.nextSibling, p = a.nextSibling, m = p.firstChild, h = m.nextSibling, _ = p.nextSibling;
4063
- return s(n, () => Vo(O())), c.$$click = () => F(O() - t.seekStep), s(c, i(V, {
4064
- d: ye,
4062
+ return s(n, () => Vo(O())), c.$$click = () => I(O() - t.seekStep), s(c, i(U, {
4063
+ d: _e,
4065
4064
  size: "1.25rem"
4066
- })), l.$$click = fe, s(l, i(V, {
4065
+ })), l.$$click = de, s(l, i(U, {
4067
4066
  get d() {
4068
- return g() ? ge : _e;
4067
+ return g() ? me : he;
4069
4068
  },
4070
4069
  size: "1.5rem"
4071
- })), f.$$click = () => F(O() + t.seekStep), s(f, i(V, {
4072
- d: le,
4070
+ })), f.$$click = () => I(O() + t.seekStep), s(f, i(U, {
4071
+ d: ce,
4073
4072
  size: "1.25rem"
4074
- })), m.$$click = xe, s(m, i(V, {
4073
+ })), m.$$click = ye, s(m, i(U, {
4075
4074
  get d() {
4076
- return se();
4075
+ return oe();
4077
4076
  },
4078
4077
  size: "1.25rem"
4079
- })), h.$$input = (e) => be(e.currentTarget.valueAsNumber), s(_, () => Vo(T())), o((i) => {
4080
- var o = Y.controls, s = P(Y.time, Y["time-current"]), v = Y.transport, y = Y["icon-button"], b = `Back ${t.seekStep} seconds`, x = Y["play-button"], S = g() ? "Pause" : "Play", C = g(), w = Y["icon-button"], T = `Forward ${t.seekStep} seconds`, E = Y.volume, D = Y["icon-button"], O = te() ? "Unmute" : "Mute", k = te(), A = Y["volume-slider"], j = te() ? 0 : M(), N = P(Y.time, Y["time-total"]);
4078
+ })), h.$$input = (e) => ve(e.currentTarget.valueAsNumber), s(_, () => Vo(T())), o((i) => {
4079
+ var o = Y.controls, s = P(Y.time, Y["time-current"]), v = Y.transport, y = Y["icon-button"], b = `Back ${t.seekStep} seconds`, x = Y["play-button"], S = g() ? "Pause" : "Play", C = g(), w = Y["icon-button"], T = `Forward ${t.seekStep} seconds`, E = Y.volume, D = Y["icon-button"], O = F() ? "Unmute" : "Mute", k = F(), A = Y["volume-slider"], j = F() ? 0 : M(), N = P(Y.time, Y["time-total"]);
4081
4080
  return o !== i.e && r(e, i.e = o), s !== i.t && r(n, i.t = s), v !== i.a && r(a, i.a = v), y !== i.o && r(c, i.o = y), b !== i.i && u(c, "aria-label", i.i = b), x !== i.n && r(l, i.n = x), S !== i.s && u(l, "aria-label", i.s = S), C !== i.h && u(l, "aria-pressed", i.h = C), w !== i.r && r(f, i.r = w), T !== i.d && u(f, "aria-label", i.d = T), E !== i.l && r(p, i.l = E), D !== i.u && r(m, i.u = D), O !== i.c && u(m, "aria-label", i.c = O), k !== i.w && u(m, "aria-pressed", i.w = k), A !== i.m && r(h, i.m = A), j !== i.f && d(h, "--elmethis-scoped-volume", i.f = j), N !== i.y && r(_, i.y = N), i;
4082
4081
  }, {
4083
4082
  e: void 0,
@@ -4097,10 +4096,10 @@ var Y = {
4097
4096
  m: void 0,
4098
4097
  f: void 0,
4099
4098
  y: void 0
4100
- }), o(() => h.value = te() ? 0 : M()), e;
4099
+ }), o(() => h.value = F() ? 0 : M()), e;
4101
4100
  })()];
4102
4101
  })(), null), o((e) => {
4103
- var n = Y["native-audio"], i = t.src, a = t.loop, o = t.autoPlay, s = Y.header, c = P(Y.artwork, b() && Y["artwork-error"]), l = Y.meta, d = Y.title, f = oe(), p = Y.equalizer;
4102
+ var n = Y["native-audio"], i = t.src, a = t.loop, o = t.autoPlay, s = Y.header, c = P(Y.artwork, b() && Y["artwork-error"]), l = Y.meta, d = Y.title, f = ae(), p = Y.equalizer;
4104
4103
  return n !== e.e && r(S, e.e = n), i !== e.t && u(S, "src", e.t = i), a !== e.a && (S.loop = e.a = a), o !== e.o && (S.autoplay = e.o = o), s !== e.i && r(C, e.i = s), c !== e.n && r(w, e.n = c), l !== e.s && r(D, e.s = l), d !== e.h && r(k, e.h = d), f !== e.r && u(k, "title", e.r = f), p !== e.d && r(j, e.d = p), e;
4105
4104
  }, {
4106
4105
  e: void 0,
@@ -4421,7 +4420,7 @@ function Q(e, t) {
4421
4420
  }
4422
4421
  var ss = class e {
4423
4422
  constructor(e = [], t = []) {
4424
- Ii(this, "components", void 0), Ii(this, "functions", void 0);
4423
+ Fi(this, "components", void 0), Fi(this, "functions", void 0);
4425
4424
  let n = /* @__PURE__ */ new Map();
4426
4425
  for (let t of e) n.set(t.name, t);
4427
4426
  this.components = n, this.functions = [...t];
@@ -4441,7 +4440,7 @@ var ss = class e {
4441
4440
  return new e(n.values(), [...r.values()]);
4442
4441
  }
4443
4442
  toCatalog(e) {
4444
- return new dt(e, [...this.components.values()], [...this.functions]);
4443
+ return new lt(e, [...this.components.values()], [...this.functions]);
4445
4444
  }
4446
4445
  }, cs = {
4447
4446
  start: "flex-start",
@@ -4492,9 +4491,9 @@ var ss = class e {
4492
4491
  }), t;
4493
4492
  }
4494
4493
  }), Ps = new ss([
4495
- Q(jt, (e) => i(y, {
4494
+ Q(kt, (e) => i(y, {
4496
4495
  get fallback() {
4497
- return i(pi, {
4496
+ return i(fi, {
4498
4497
  get level() {
4499
4498
  return Ms(e.props.variant ?? "h1");
4500
4499
  },
@@ -4509,7 +4508,7 @@ var ss = class e {
4509
4508
  return e.props.variant === "caption";
4510
4509
  },
4511
4510
  get children() {
4512
- return i(z, { get children() {
4511
+ return i(V, { get children() {
4513
4512
  return e.props.text;
4514
4513
  } });
4515
4514
  }
@@ -4518,14 +4517,14 @@ var ss = class e {
4518
4517
  return (e.props.variant ?? "body") === "body";
4519
4518
  },
4520
4519
  get children() {
4521
- return i(vi, { get children() {
4520
+ return i(_i, { get children() {
4522
4521
  return e.props.text;
4523
4522
  } });
4524
4523
  }
4525
4524
  })];
4526
4525
  }
4527
4526
  })),
4528
- Q(Ot, (e) => (() => {
4527
+ Q(Et, (e) => (() => {
4529
4528
  var t = ps();
4530
4529
  return s(t, i(g, {
4531
4530
  get each() {
@@ -4547,7 +4546,7 @@ var ss = class e {
4547
4546
  a: void 0
4548
4547
  }), t;
4549
4548
  })()),
4550
- Q(xt, (e) => (() => {
4549
+ Q(yt, (e) => (() => {
4551
4550
  var t = ps();
4552
4551
  return s(t, i(g, {
4553
4552
  get each() {
@@ -4562,7 +4561,7 @@ var ss = class e {
4562
4561
  })
4563
4562
  })), o(() => r(t, Z.column)), t;
4564
4563
  })()),
4565
- Q(Et, (e) => (() => {
4564
+ Q(wt, (e) => (() => {
4566
4565
  var t = ps();
4567
4566
  return s(t, i(g, {
4568
4567
  get each() {
@@ -4586,11 +4585,11 @@ var ss = class e {
4586
4585
  t: void 0
4587
4586
  }), t;
4588
4587
  })()),
4589
- Q(vt, (e) => (() => {
4588
+ Q(gt, (e) => (() => {
4590
4589
  var t = ps();
4591
4590
  return s(t, () => e.renderChild(e.props.child)), o(() => r(t, Z.card)), t;
4592
4591
  })()),
4593
- Q(_t, (e) => {
4592
+ Q(ht, (e) => {
4594
4593
  let t = () => `${e.instanceId}-errors`, a = () => e.props.isValid === !1;
4595
4594
  return (() => {
4596
4595
  var c = ms(), l = c.firstChild;
@@ -4621,7 +4620,7 @@ var ss = class e {
4621
4620
  }), c;
4622
4621
  })();
4623
4622
  }),
4624
- Q(Tt, (e) => (() => {
4623
+ Q(Ct, (e) => (() => {
4625
4624
  var t = hs();
4626
4625
  return o((n) => {
4627
4626
  var i = Z.image, a = e.props.url, o = e.props.description ?? "", s = us[e.props.fit ?? "cover"];
@@ -4633,7 +4632,7 @@ var ss = class e {
4633
4632
  o: void 0
4634
4633
  }), t;
4635
4634
  })()),
4636
- Q(wt, (e) => {
4635
+ Q(St, (e) => {
4637
4636
  let t = C(() => typeof e.props.name == "string" ? e.props.name : "custom"), n = C(() => typeof e.props.name == "object" && e.props.name != null && "svgPath" in e.props.name ? e.props.name.svgPath : void 0);
4638
4637
  return i(v, {
4639
4638
  get when() {
@@ -4665,7 +4664,7 @@ var ss = class e {
4665
4664
  })()
4666
4665
  });
4667
4666
  }),
4668
- Q(Ct, (e) => (() => {
4667
+ Q(xt, (e) => (() => {
4669
4668
  var t = vs();
4670
4669
  return o((i) => {
4671
4670
  var a = Z.divider, o = { [Z["divider-vertical"]]: e.props.axis === "vertical" };
@@ -4675,7 +4674,7 @@ var ss = class e {
4675
4674
  t: void 0
4676
4675
  }), t;
4677
4676
  })()),
4678
- Q(Mt, (e) => (() => {
4677
+ Q(At, (e) => (() => {
4679
4678
  var t = bs(), n = t.firstChild;
4680
4679
  return s(n, () => e.props.label), s(t, i(v, {
4681
4680
  get when() {
@@ -4724,7 +4723,7 @@ var ss = class e {
4724
4723
  a: void 0
4725
4724
  }), t;
4726
4725
  })()),
4727
- Q(yt, (e) => (() => {
4726
+ Q(_t, (e) => (() => {
4728
4727
  var t = Ss(), n = t.firstChild, a = n.firstChild, c = a.nextSibling;
4729
4728
  return a.addEventListener("change", (t) => e.props.setValue(t.currentTarget.checked)), s(c, () => e.props.label), s(t, i(Ns, {
4730
4729
  get id() {
@@ -4744,7 +4743,7 @@ var ss = class e {
4744
4743
  i: void 0
4745
4744
  }), o(() => a.checked = !!e.props.value), t;
4746
4745
  })()),
4747
- Q(kt, (e) => (() => {
4746
+ Q(Dt, (e) => (() => {
4748
4747
  var t = Cs(), n = t.firstChild;
4749
4748
  return n.$$input = (t) => e.props.setValue(Number(t.currentTarget.value)), s(t, i(Ns, {
4750
4749
  get id() {
@@ -4766,15 +4765,15 @@ var ss = class e {
4766
4765
  s: void 0
4767
4766
  }), o(() => n.value = Number(e.props.value ?? 0)), t;
4768
4767
  })()),
4769
- Q(At, (e) => i(ra, {
4768
+ Q(Ot, (e) => i(na, {
4770
4769
  defaultValue: "0",
4771
4770
  get children() {
4772
- return [i(ia, { get children() {
4771
+ return [i(ra, { get children() {
4773
4772
  return i(g, {
4774
4773
  get each() {
4775
4774
  return e.props.tabs;
4776
4775
  },
4777
- children: (e, t) => i(aa, {
4776
+ children: (e, t) => i(ia, {
4778
4777
  get value() {
4779
4778
  return String(t());
4780
4779
  },
@@ -4787,7 +4786,7 @@ var ss = class e {
4787
4786
  get each() {
4788
4787
  return e.props.tabs;
4789
4788
  },
4790
- children: (t, n) => i(oa, {
4789
+ children: (t, n) => i(aa, {
4791
4790
  get value() {
4792
4791
  return String(n());
4793
4792
  },
@@ -4798,7 +4797,7 @@ var ss = class e {
4798
4797
  })];
4799
4798
  }
4800
4799
  })),
4801
- Q(Dt, (e) => {
4800
+ Q(Tt, (e) => {
4802
4801
  let [t, n] = w(!1), a = () => n(!0);
4803
4802
  return [(() => {
4804
4803
  var t = ws();
@@ -4810,7 +4809,7 @@ var ss = class e {
4810
4809
  return t();
4811
4810
  },
4812
4811
  get children() {
4813
- return i(Qi, {
4812
+ return i(Zi, {
4814
4813
  isOpen: !0,
4815
4814
  delay: 0,
4816
4815
  onClose: () => n(!1),
@@ -4821,7 +4820,7 @@ var ss = class e {
4821
4820
  }
4822
4821
  })];
4823
4822
  }),
4824
- Q(Nt, (e) => (() => {
4823
+ Q(jt, (e) => (() => {
4825
4824
  var t = Ts();
4826
4825
  return o((n) => {
4827
4826
  var i = Z.video, a = e.props.url;
@@ -4831,7 +4830,7 @@ var ss = class e {
4831
4830
  t: void 0
4832
4831
  }), t;
4833
4832
  })()),
4834
- Q(ht, (e) => (() => {
4833
+ Q(pt, (e) => (() => {
4835
4834
  var t = Es();
4836
4835
  return o((n) => {
4837
4836
  var i = Z.audio, a = e.props.url;
@@ -4841,7 +4840,7 @@ var ss = class e {
4841
4840
  t: void 0
4842
4841
  }), t;
4843
4842
  })()),
4844
- Q(bt, (e) => {
4843
+ Q(vt, (e) => {
4845
4844
  let t = C(() => Array.isArray(e.props.value) ? e.props.value : []), n = C(() => e.props.variant === "multipleSelection");
4846
4845
  return (() => {
4847
4846
  var a = Ds(), c = a.firstChild;
@@ -4889,7 +4888,7 @@ var ss = class e {
4889
4888
  }), a;
4890
4889
  })();
4891
4890
  }),
4892
- Q(St, (e) => {
4891
+ Q(bt, (e) => {
4893
4892
  let t = C(() => e.props.enableDate && e.props.enableTime ? "datetime-local" : e.props.enableDate ? "date" : e.props.enableTime ? "time" : "text");
4894
4893
  return (() => {
4895
4894
  var n = As(), a = n.firstChild;
@@ -4922,7 +4921,7 @@ var ss = class e {
4922
4921
  }), o(() => a.value = e.props.value ?? ""), n;
4923
4922
  })();
4924
4923
  })
4925
- ], [...gt]);
4924
+ ], [...mt]);
4926
4925
  a([
4927
4926
  "click",
4928
4927
  "keydown",
@@ -4957,7 +4956,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
4957
4956
  a({});
4958
4957
  return;
4959
4958
  }
4960
- let n = new pt(new ft(e.surface, e.id, e.basePath), Fe.schema);
4959
+ let n = new dt(new ut(e.surface, e.id, e.basePath), Ne.schema);
4961
4960
  a({ ...n.snapshot });
4962
4961
  let r = n.subscribe((e) => a({ ...e }));
4963
4962
  k(() => {
@@ -4976,12 +4975,12 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
4976
4975
  })
4977
4976
  });
4978
4977
  }, Hs = [
4979
- Q(Xe, (e) => i(v, {
4978
+ Q(Je, (e) => i(v, {
4980
4979
  get when() {
4981
4980
  return !e.props.decoration?.includes("katex");
4982
4981
  },
4983
4982
  get fallback() {
4984
- return i(Vi, {
4983
+ return i(Bi, {
4985
4984
  get expression() {
4986
4985
  return e.props.text;
4987
4986
  },
@@ -4989,7 +4988,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
4989
4988
  });
4990
4989
  },
4991
4990
  get children() {
4992
- return i(z, {
4991
+ return i(V, {
4993
4992
  get bold() {
4994
4993
  return e.props.decoration?.includes("bold");
4995
4994
  },
@@ -5017,7 +5016,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5017
5016
  });
5018
5017
  }
5019
5018
  })),
5020
- Q(Ue, (e) => i(z, {
5019
+ Q(Ve, (e) => i(V, {
5021
5020
  get href() {
5022
5021
  return e.props.href;
5023
5022
  },
@@ -5028,7 +5027,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5028
5027
  return e.props.text;
5029
5028
  }
5030
5029
  })),
5031
- Q(Ve, (e) => i(Yt, {
5030
+ Q(ze, (e) => i(qt, {
5032
5031
  get src() {
5033
5032
  return e.props.src;
5034
5033
  },
@@ -5036,7 +5035,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5036
5035
  return e.props.alt;
5037
5036
  }
5038
5037
  })),
5039
- Q(Ne, (e) => (() => {
5038
+ Q(je, (e) => (() => {
5040
5039
  var t = Fs();
5041
5040
  return s(t, i(g, {
5042
5041
  get each() {
@@ -5058,7 +5057,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5058
5057
  a: void 0
5059
5058
  }), t;
5060
5059
  })()),
5061
- Q(Pe, (e) => (() => {
5060
+ Q(Me, (e) => (() => {
5062
5061
  var t = Is();
5063
5062
  return p(t, Bs), s(t, i(g, {
5064
5063
  get each() {
@@ -5073,7 +5072,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5073
5072
  })
5074
5073
  })), t;
5075
5074
  })()),
5076
- Q(ze, (e) => i(pi, {
5075
+ Q(Le, (e) => i(fi, {
5077
5076
  get level() {
5078
5077
  return e.props.level;
5079
5078
  },
@@ -5092,7 +5091,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5092
5091
  });
5093
5092
  }
5094
5093
  })),
5095
- Q(Ye, (e) => i(vi, {
5094
+ Q(qe, (e) => i(_i, {
5096
5095
  get color() {
5097
5096
  return e.props.color;
5098
5097
  },
@@ -5114,7 +5113,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5114
5113
  });
5115
5114
  }
5116
5115
  })),
5117
- Q(We, (e) => i(hi, {
5116
+ Q(He, (e) => i(mi, {
5118
5117
  get listStyle() {
5119
5118
  return e.props.style ?? "unordered";
5120
5119
  },
@@ -5136,7 +5135,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5136
5135
  });
5137
5136
  }
5138
5137
  })),
5139
- Q(Ge, (e) => i(g, {
5138
+ Q(Ue, (e) => i(g, {
5140
5139
  get each() {
5141
5140
  return e.childRefs(e.props.children);
5142
5141
  },
@@ -5148,7 +5147,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5148
5147
  }
5149
5148
  })
5150
5149
  })),
5151
- Q(ke, (e) => i(Zr, {
5150
+ Q(De, (e) => i(Xr, {
5152
5151
  get cite() {
5153
5152
  return e.props.cite;
5154
5153
  },
@@ -5167,7 +5166,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5167
5166
  });
5168
5167
  }
5169
5168
  })),
5170
- Q(je, (e) => i(ti, {
5169
+ Q(ke, (e) => i(ei, {
5171
5170
  get type() {
5172
5171
  return e.props.type;
5173
5172
  },
@@ -5186,7 +5185,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5186
5185
  });
5187
5186
  }
5188
5187
  })),
5189
- Q(Je, (e) => i(br, {
5188
+ Q(Ke, (e) => i(vr, {
5190
5189
  get icon() {
5191
5190
  return e.props.icon;
5192
5191
  },
@@ -5211,8 +5210,8 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5211
5210
  });
5212
5211
  }
5213
5212
  })),
5214
- Q(Le, () => i(ii, {})),
5215
- Q(et, (e) => i(ca, {
5213
+ Q(Fe, () => i(ri, {})),
5214
+ Q(Qe, (e) => i(sa, {
5216
5215
  get summary() {
5217
5216
  return i(g, {
5218
5217
  get each() {
@@ -5242,7 +5241,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5242
5241
  });
5243
5242
  }
5244
5243
  })),
5245
- Q(Ae, (e) => i(lr, {
5244
+ Q(Oe, (e) => i(sr, {
5246
5245
  get url() {
5247
5246
  return e.props.url;
5248
5247
  },
@@ -5256,7 +5255,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5256
5255
  return e.props.image;
5257
5256
  }
5258
5257
  })),
5259
- Q(Re, (e) => i(ar, {
5258
+ Q(Ie, (e) => i(rr, {
5260
5259
  get src() {
5261
5260
  return e.props.src;
5262
5261
  },
@@ -5264,7 +5263,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5264
5263
  return e.props.name;
5265
5264
  }
5266
5265
  })),
5267
- Q(De, (e) => i(Uo, {
5266
+ Q(Te, (e) => i(Uo, {
5268
5267
  get src() {
5269
5268
  return e.props.src;
5270
5269
  },
@@ -5284,7 +5283,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5284
5283
  return e.props.autoPlay;
5285
5284
  }
5286
5285
  })),
5287
- Q(nt, (e) => (() => {
5286
+ Q(et, (e) => (() => {
5288
5287
  var t = Rs(), n = t.firstChild;
5289
5288
  return s(t, i(v, {
5290
5289
  get when() {
@@ -5308,7 +5307,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5308
5307
  h: void 0
5309
5308
  }), t;
5310
5309
  })()),
5311
- Q(Oe, (e) => i(Ca, {
5310
+ Q(Ee, (e) => i(Ca, {
5312
5311
  get src() {
5313
5312
  return e.props.src;
5314
5313
  },
@@ -5332,7 +5331,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5332
5331
  },
5333
5332
  enableModal: !0
5334
5333
  })),
5335
- Q(Be, (e) => i(_o, {
5334
+ Q(Re, (e) => i(_o, {
5336
5335
  get html() {
5337
5336
  return e.props.html;
5338
5337
  },
@@ -5349,7 +5348,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5349
5348
  return e.props.height ?? 400;
5350
5349
  }
5351
5350
  })),
5352
- Q(Me, (e) => i(qa, {
5351
+ Q(Ae, (e) => i(qa, {
5353
5352
  get code() {
5354
5353
  return e.props.code;
5355
5354
  },
@@ -5360,30 +5359,30 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5360
5359
  return e.props.caption;
5361
5360
  }
5362
5361
  })),
5363
- Q(He, (e) => i(Vi, {
5362
+ Q(Be, (e) => i(Bi, {
5364
5363
  get expression() {
5365
5364
  return e.props.expression;
5366
5365
  },
5367
5366
  block: !0
5368
5367
  })),
5369
- Q(Ke, (e) => i(qa, {
5368
+ Q(We, (e) => i(qa, {
5370
5369
  get code() {
5371
5370
  return e.props.code;
5372
5371
  },
5373
5372
  language: "mermaid"
5374
5373
  })),
5375
- Q(Fe, () => null),
5376
- Q(Ie, (e) => {
5374
+ Q(Ne, () => null),
5375
+ Q(Pe, (e) => {
5377
5376
  let t = () => e.childRefs(e.props.children);
5378
- return i(ra, {
5377
+ return i(na, {
5379
5378
  defaultValue: "0",
5380
5379
  get children() {
5381
- return [i(ia, { get children() {
5380
+ return [i(ra, { get children() {
5382
5381
  return i(g, {
5383
5382
  get each() {
5384
5383
  return t();
5385
5384
  },
5386
- children: (t, n) => i(aa, {
5385
+ children: (t, n) => i(ia, {
5387
5386
  get value() {
5388
5387
  return String(n());
5389
5388
  },
@@ -5410,7 +5409,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5410
5409
  get each() {
5411
5410
  return t();
5412
5411
  },
5413
- children: (t, n) => i(oa, {
5412
+ children: (t, n) => i(aa, {
5414
5413
  get value() {
5415
5414
  return String(n());
5416
5415
  },
@@ -5436,7 +5435,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5436
5435
  }
5437
5436
  });
5438
5437
  }),
5439
- Q(Ze, (e) => i(ka, {
5438
+ Q(Ye, (e) => i(ka, {
5440
5439
  get caption() {
5441
5440
  return c(() => e.props.caption == null)() ? void 0 : String(e.props.caption);
5442
5441
  },
@@ -5480,7 +5479,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5480
5479
  } })];
5481
5480
  }
5482
5481
  })),
5483
- Q($e, (e) => i(za, { get children() {
5482
+ Q(Ze, (e) => i(za, { get children() {
5484
5483
  return i(g, {
5485
5484
  get each() {
5486
5485
  return e.childRefs(e.props.children);
@@ -5494,7 +5493,7 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5494
5493
  })
5495
5494
  });
5496
5495
  } })),
5497
- Q(Qe, (e) => i(Na, {
5496
+ Q(Xe, (e) => i(Na, {
5498
5497
  get isHeader() {
5499
5498
  return e.props.isHeader;
5500
5499
  },
@@ -5516,11 +5515,11 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5516
5515
  });
5517
5516
  }
5518
5517
  })),
5519
- Q(tt, (e) => i(ln, { get details() {
5518
+ Q($e, (e) => i(sn, { get details() {
5520
5519
  return c(() => !!e.props.details)() ? `Unsupported component type: ${String(e.props.details)}` : "Unsupported component type";
5521
5520
  } }))
5522
5521
  ], Us = Ps.extend(...Hs), Ws = [...Us.components.values()], Gs = [...Us.functions], Ks = /* @__PURE__ */ m("<span data-a2ui-state=loading class=a2ui-loading>[Loading <!>…]"), qs = /* @__PURE__ */ m("<span data-a2ui-state=unknown class=a2ui-unknown>Unknown component: "), Js = /* @__PURE__ */ m("<span style=display:contents>"), Ys = "root", Xs = x(), Zs = x(), Qs = (...e) => `a2ui-${encodeURIComponent(JSON.stringify(e))}`, $s = (e) => {
5523
- let t = N(Xs), n = N(Zs), r = () => e.ancestors ?? [], a = () => r().includes(e.id), [l, d] = w(), [f, p] = w(!1), [m, h] = w(), [g, _] = Pt({});
5522
+ let t = N(Xs), n = N(Zs), r = () => e.ancestors ?? [], a = () => r().includes(e.id), [l, d] = w(), [f, p] = w(!1), [m, h] = w(), [g, _] = Mt({});
5524
5523
  S(() => {
5525
5524
  let n = e.id, r = t?.();
5526
5525
  if (a() || r == null) {
@@ -5540,16 +5539,16 @@ var Fs = /* @__PURE__ */ m("<div style=display:flex;flex-direction:column;box-si
5540
5539
  }), S(() => {
5541
5540
  let r = l(), i = t?.(), o = r == null ? void 0 : n?.().get(r.type);
5542
5541
  if (r == null || o == null || i == null || a()) {
5543
- h(void 0), _(Ft({}));
5542
+ h(void 0), _(Nt({}));
5544
5543
  return;
5545
5544
  }
5546
- let s = new ft(i, e.id, e.basePath), c = new pt(s, o.schema);
5547
- _(Ft({ ...c.snapshot })), h({
5545
+ let s = new ut(i, e.id, e.basePath), c = new dt(s, o.schema);
5546
+ _(Nt({ ...c.snapshot })), h({
5548
5547
  entry: o,
5549
5548
  context: s
5550
5549
  });
5551
5550
  let u = c.subscribe((e) => {
5552
- _(Ft({ ...e }));
5551
+ _(Nt({ ...e }));
5553
5552
  });
5554
5553
  k(() => {
5555
5554
  u.unsubscribe(), c.dispose();
@@ -5757,13 +5756,13 @@ var tc = /* @__PURE__ */ m("<div>"), nc = "https://a2ui.org/specification/v0_9/b
5757
5756
  return;
5758
5757
  }
5759
5758
  d();
5760
- let a = new Set([nc, qe]);
5759
+ let a = new Set([nc, Ge]);
5761
5760
  n && a.add(n);
5762
5761
  for (let t of e) if (typeof t == "object" && t && "createSurface" in t) {
5763
5762
  let e = t.createSurface?.catalogId;
5764
5763
  e && a.add(e);
5765
5764
  }
5766
- let o = new mt([...a].map((e) => i.toCatalog(e))), s = /* @__PURE__ */ new Map(), l = () => c([...s.values()]);
5765
+ let o = new ft([...a].map((e) => i.toCatalog(e))), s = /* @__PURE__ */ new Map(), l = () => c([...s.values()]);
5767
5766
  u = {
5768
5767
  processor: o,
5769
5768
  subscriptions: [o.model.onSurfaceCreated.subscribe((e) => {
@@ -5805,4 +5804,4 @@ var tc = /* @__PURE__ */ m("<div>"), nc = "https://a2ui.org/specification/v0_9/b
5805
5804
  })();
5806
5805
  };
5807
5806
  //#endregion
5808
- export { Zs as A2uiCatalogContext, rc as A2uiSurface, Xs as A2uiSurfaceContext, ss as CatalogRenderer, $s as ComponentHost, ic as ElmA2ui, Uo as ElmAudioPlayer, Wt as ElmBlockFallback, Ca as ElmBlockImage, Zr as ElmBlockQuote, lr as ElmBookmark, pr as ElmBreadcrumb, pn as ElmButton, pa as ElmButtonDropdown, ti as ElmCallout, vn as ElmCheckbox, qa as ElmCodeBlock, Gi as ElmCollapse, jr as ElmColorPrimitiveSample, Kr as ElmColorSemanticSample, Nn as ElmCopyIcon, ii as ElmDivider, zt as ElmDotLoadingIcon, ar as ElmFile, si as ElmFragmentIdentifier, pi as ElmHeading, mo as ElmHtml, _o as ElmHtmlViewer, Yt as ElmInlineIcon, z as ElmInlineText, Vi as ElmKatex, zn as ElmLanguageIcon, hi as ElmList, no as ElmMarkdown, V as ElmMdiIcon, Qi as ElmModal, br as ElmNotionCallout, gr as ElmPageTop, vi as ElmParagraph, Yi as ElmParallax, Ht as ElmRectangleWave, _a as ElmSelect, Wa as ElmShikiHighlighter, Do as ElmSlider, Un as ElmSquareLoadingIcon, xn as ElmSwitch, aa as ElmTab, ia as ElmTabList, oa as ElmTabPanel, ka as ElmTable, ja as ElmTableBody, Na as ElmTableCell, Ia as ElmTableHeader, za as ElmTableRow, ra as ElmTabs, jo as ElmTextArea, Fo as ElmTextField, ca as ElmToggle, tr as ElmToggleTheme, da as ElmTooltip, ln as ElmUnsupportedBlock, kn as ElmValidation, Ta as HasRowHeaderContext, Ys as ROOT_COMPONENT_ID, Kn as THEME_CHANGE_EVENT, Ea as TableSectionContext, Li as ThrottledQueue, Ps as basicCatalog, yi as createAsyncState, bi as createAutoAnimate, An as createClipboard, mn as createControllableSignal, xi as createDebounced, Si as createDelayedSignal, Xn as createElmethisTheme, Ai as createLocalStorage, va as createModal, ji as createSessionStorage, Mi as createThrottled, Ri as createThrottledQueue, Q as defineRenderer, Us as notionBlockCatalog, Ws as notionBlockComponents, Gs as notionBlockFunctions, as as useWordle };
5807
+ export { Zs as A2uiCatalogContext, rc as A2uiSurface, Xs as A2uiSurfaceContext, ss as CatalogRenderer, $s as ComponentHost, ic as ElmA2ui, Uo as ElmAudioPlayer, Ht as ElmBlockFallback, Ca as ElmBlockImage, Xr as ElmBlockQuote, sr as ElmBookmark, dr as ElmBreadcrumb, dn as ElmButton, pa as ElmButtonDropdown, ei as ElmCallout, gn as ElmCheckbox, qa as ElmCodeBlock, Wi as ElmCollapse, Ar as ElmColorPrimitiveSample, Gr as ElmColorSemanticSample, jn as ElmCopyIcon, ri as ElmDivider, Lt as ElmDotLoadingIcon, rr as ElmFile, oi as ElmFragmentIdentifier, fi as ElmHeading, mo as ElmHtml, _o as ElmHtmlViewer, qt as ElmInlineIcon, V as ElmInlineText, Bi as ElmKatex, Ln as ElmLanguageIcon, mi as ElmList, no as ElmMarkdown, U as ElmMdiIcon, Zi as ElmModal, vr as ElmNotionCallout, mr as ElmPageTop, _i as ElmParagraph, Ji as ElmParallax, Bt as ElmRectangleWave, _a as ElmSelect, Wa as ElmShikiHighlighter, Do as ElmSlider, Vn as ElmSquareLoadingIcon, yn as ElmSwitch, ia as ElmTab, ra as ElmTabList, aa as ElmTabPanel, ka as ElmTable, ja as ElmTableBody, Na as ElmTableCell, Ia as ElmTableHeader, za as ElmTableRow, na as ElmTabs, jo as ElmTextArea, Fo as ElmTextField, sa as ElmToggle, $n as ElmToggleTheme, ua as ElmTooltip, sn as ElmUnsupportedBlock, Dn as ElmValidation, Ta as HasRowHeaderContext, Ys as ROOT_COMPONENT_ID, Wn as THEME_CHANGE_EVENT, Ea as TableSectionContext, Ii as ThrottledQueue, Ps as basicCatalog, vi as createAsyncState, yi as createAutoAnimate, On as createClipboard, fn as createControllableSignal, bi as createDebounced, xi as createDelayedSignal, Jn as createElmethisTheme, ki as createLocalStorage, va as createModal, Ai as createSessionStorage, ji as createThrottled, Li as createThrottledQueue, Q as defineRenderer, Us as notionBlockCatalog, Ws as notionBlockComponents, Gs as notionBlockFunctions, as as useWordle };