@elmethis/react 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/lib/{ElmMermaid-BFqvHKdQ.js → ElmMermaid-CUeT_XM9.js} +13 -9
  2. package/lib/ElmMermaid-DnSjC5T_.cjs +1 -0
  3. package/lib/index.react.cjs +1 -1
  4. package/lib/index.react.mjs +705 -678
  5. package/lib/style.css +1 -1
  6. package/lib-types/components/code/ElmCodeBlock.d.ts +2 -1
  7. package/lib-types/components/code/ElmCodeBlock.d.ts.map +1 -1
  8. package/lib-types/components/code/ElmKatex.d.ts +2 -1
  9. package/lib-types/components/code/ElmKatex.d.ts.map +1 -1
  10. package/lib-types/components/code/ElmMermaid.d.ts +2 -1
  11. package/lib-types/components/code/ElmMermaid.d.ts.map +1 -1
  12. package/lib-types/components/code/ElmShikiHighlighter.d.ts +2 -1
  13. package/lib-types/components/code/ElmShikiHighlighter.d.ts.map +1 -1
  14. package/lib-types/components/containments/ElmColumn.d.ts +1 -0
  15. package/lib-types/components/containments/ElmColumn.d.ts.map +1 -1
  16. package/lib-types/components/containments/ElmColumnList.d.ts +1 -0
  17. package/lib-types/components/containments/ElmColumnList.d.ts.map +1 -1
  18. package/lib-types/components/containments/ElmConfirmModal.d.ts +1 -0
  19. package/lib-types/components/containments/ElmConfirmModal.d.ts.map +1 -1
  20. package/lib-types/components/containments/ElmDesktopWindow.d.ts +1 -0
  21. package/lib-types/components/containments/ElmDesktopWindow.d.ts.map +1 -1
  22. package/lib-types/components/containments/ElmModal.d.ts +1 -0
  23. package/lib-types/components/containments/ElmModal.d.ts.map +1 -1
  24. package/lib-types/components/containments/ElmParallax.d.ts +2 -1
  25. package/lib-types/components/containments/ElmParallax.d.ts.map +1 -1
  26. package/lib-types/components/containments/ElmSimpleTooltip.d.ts +1 -0
  27. package/lib-types/components/containments/ElmSimpleTooltip.d.ts.map +1 -1
  28. package/lib-types/components/containments/ElmSnackbar.d.ts +1 -0
  29. package/lib-types/components/containments/ElmSnackbar.d.ts.map +1 -1
  30. package/lib-types/components/containments/ElmSnackbarContainer.d.ts +1 -0
  31. package/lib-types/components/containments/ElmSnackbarContainer.d.ts.map +1 -1
  32. package/lib-types/components/containments/ElmTabs.d.ts +1 -0
  33. package/lib-types/components/containments/ElmTabs.d.ts.map +1 -1
  34. package/lib-types/components/containments/ElmToggle.d.ts +3 -2
  35. package/lib-types/components/containments/ElmToggle.d.ts.map +1 -1
  36. package/lib-types/components/containments/ElmToggle.stories.d.ts +1 -0
  37. package/lib-types/components/containments/ElmToggle.stories.d.ts.map +1 -1
  38. package/lib-types/components/containments/ElmTooltip.d.ts +1 -0
  39. package/lib-types/components/containments/ElmTooltip.d.ts.map +1 -1
  40. package/lib-types/components/copilotkit/ToolApproval.d.ts +1 -0
  41. package/lib-types/components/copilotkit/ToolApproval.d.ts.map +1 -1
  42. package/lib-types/components/data/ElmMultiProgress.d.ts +2 -1
  43. package/lib-types/components/data/ElmMultiProgress.d.ts.map +1 -1
  44. package/lib-types/components/data/ElmProgress.d.ts +2 -1
  45. package/lib-types/components/data/ElmProgress.d.ts.map +1 -1
  46. package/lib-types/components/data/ElmStatusMessage.d.ts +2 -1
  47. package/lib-types/components/data/ElmStatusMessage.d.ts.map +1 -1
  48. package/lib-types/components/embed/ElmOEmbed.d.ts +2 -1
  49. package/lib-types/components/embed/ElmOEmbed.d.ts.map +1 -1
  50. package/lib-types/components/fallback/ElmBlockFallback.d.ts +1 -0
  51. package/lib-types/components/fallback/ElmBlockFallback.d.ts.map +1 -1
  52. package/lib-types/components/fallback/ElmRectangleWave.d.ts +1 -0
  53. package/lib-types/components/fallback/ElmRectangleWave.d.ts.map +1 -1
  54. package/lib-types/components/fallback/ElmSpinner.d.ts +1 -0
  55. package/lib-types/components/fallback/ElmSpinner.d.ts.map +1 -1
  56. package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts +1 -0
  57. package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts.map +1 -1
  58. package/lib-types/components/form/ElmButton.d.ts +1 -0
  59. package/lib-types/components/form/ElmButton.d.ts.map +1 -1
  60. package/lib-types/components/form/ElmCheckbox.d.ts +1 -0
  61. package/lib-types/components/form/ElmCheckbox.d.ts.map +1 -1
  62. package/lib-types/components/form/ElmSelect.d.ts +1 -0
  63. package/lib-types/components/form/ElmSelect.d.ts.map +1 -1
  64. package/lib-types/components/form/ElmSwitch.d.ts +1 -0
  65. package/lib-types/components/form/ElmSwitch.d.ts.map +1 -1
  66. package/lib-types/components/form/ElmTextField.d.ts +1 -0
  67. package/lib-types/components/form/ElmTextField.d.ts.map +1 -1
  68. package/lib-types/components/form/ElmValidation.d.ts +1 -0
  69. package/lib-types/components/form/ElmValidation.d.ts.map +1 -1
  70. package/lib-types/components/icon/ElmArrowIcon.d.ts +1 -0
  71. package/lib-types/components/icon/ElmArrowIcon.d.ts.map +1 -1
  72. package/lib-types/components/icon/ElmBookmarkIcon.d.ts +1 -0
  73. package/lib-types/components/icon/ElmBookmarkIcon.d.ts.map +1 -1
  74. package/lib-types/components/icon/ElmCubeIcon.d.ts +1 -0
  75. package/lib-types/components/icon/ElmCubeIcon.d.ts.map +1 -1
  76. package/lib-types/components/icon/ElmDotLoadingIcon.d.ts +1 -0
  77. package/lib-types/components/icon/ElmDotLoadingIcon.d.ts.map +1 -1
  78. package/lib-types/components/icon/ElmInlineIcon.d.ts +1 -0
  79. package/lib-types/components/icon/ElmInlineIcon.d.ts.map +1 -1
  80. package/lib-types/components/icon/ElmLanguageIcon.d.ts +1 -0
  81. package/lib-types/components/icon/ElmLanguageIcon.d.ts.map +1 -1
  82. package/lib-types/components/icon/ElmLoginIcon.d.ts +1 -0
  83. package/lib-types/components/icon/ElmLoginIcon.d.ts.map +1 -1
  84. package/lib-types/components/icon/ElmMdiIcon.d.ts +1 -0
  85. package/lib-types/components/icon/ElmMdiIcon.d.ts.map +1 -1
  86. package/lib-types/components/icon/ElmSquareLoadingIcon.d.ts +1 -0
  87. package/lib-types/components/icon/ElmSquareLoadingIcon.d.ts.map +1 -1
  88. package/lib-types/components/icon/ElmToggleTheme.d.ts +1 -0
  89. package/lib-types/components/icon/ElmToggleTheme.d.ts.map +1 -1
  90. package/lib-types/components/media/ElmFile.d.ts +2 -1
  91. package/lib-types/components/media/ElmFile.d.ts.map +1 -1
  92. package/lib-types/components/media/ElmImage.d.ts +2 -1
  93. package/lib-types/components/media/ElmImage.d.ts.map +1 -1
  94. package/lib-types/components/navigation/ElmBookmark.d.ts +2 -1
  95. package/lib-types/components/navigation/ElmBookmark.d.ts.map +1 -1
  96. package/lib-types/components/navigation/ElmBreadcrumb.d.ts +2 -1
  97. package/lib-types/components/navigation/ElmBreadcrumb.d.ts.map +1 -1
  98. package/lib-types/components/navigation/ElmPageTop.d.ts +2 -1
  99. package/lib-types/components/navigation/ElmPageTop.d.ts.map +1 -1
  100. package/lib-types/components/navigation/ElmTableOfContents.d.ts +2 -1
  101. package/lib-types/components/navigation/ElmTableOfContents.d.ts.map +1 -1
  102. package/lib-types/components/others/ElmColorSample.d.ts +2 -1
  103. package/lib-types/components/others/ElmColorSample.d.ts.map +1 -1
  104. package/lib-types/components/others/ElmColorTable.d.ts +2 -1
  105. package/lib-types/components/others/ElmColorTable.d.ts.map +1 -1
  106. package/lib-types/components/others/ElmCommandPalette.d.ts +2 -1
  107. package/lib-types/components/others/ElmCommandPalette.d.ts.map +1 -1
  108. package/lib-types/components/others/ElmJarkup.d.ts +2 -1
  109. package/lib-types/components/others/ElmJarkup.d.ts.map +1 -1
  110. package/lib-types/components/others/ElmJsonComponentRenderer.d.ts +2 -1
  111. package/lib-types/components/others/ElmJsonComponentRenderer.d.ts.map +1 -1
  112. package/lib-types/components/others/ElmMarkdown.d.ts +2 -1
  113. package/lib-types/components/others/ElmMarkdown.d.ts.map +1 -1
  114. package/lib-types/components/others/ElmTyping.d.ts +2 -1
  115. package/lib-types/components/others/ElmTyping.d.ts.map +1 -1
  116. package/lib-types/components/table/ElmTable.d.ts +2 -1
  117. package/lib-types/components/table/ElmTable.d.ts.map +1 -1
  118. package/lib-types/components/table/ElmTableBody.d.ts +2 -1
  119. package/lib-types/components/table/ElmTableBody.d.ts.map +1 -1
  120. package/lib-types/components/table/ElmTableCell.d.ts +2 -1
  121. package/lib-types/components/table/ElmTableCell.d.ts.map +1 -1
  122. package/lib-types/components/table/ElmTableHeader.d.ts +2 -1
  123. package/lib-types/components/table/ElmTableHeader.d.ts.map +1 -1
  124. package/lib-types/components/table/ElmTableRow.d.ts +2 -1
  125. package/lib-types/components/table/ElmTableRow.d.ts.map +1 -1
  126. package/lib-types/components/template/ElmTemplate.d.ts +1 -0
  127. package/lib-types/components/template/ElmTemplate.d.ts.map +1 -1
  128. package/lib-types/components/typography/ElmBlockQuote.d.ts +1 -0
  129. package/lib-types/components/typography/ElmBlockQuote.d.ts.map +1 -1
  130. package/lib-types/components/typography/ElmCallout.d.ts +1 -0
  131. package/lib-types/components/typography/ElmCallout.d.ts.map +1 -1
  132. package/lib-types/components/typography/ElmDivider.d.ts +1 -0
  133. package/lib-types/components/typography/ElmDivider.d.ts.map +1 -1
  134. package/lib-types/components/typography/ElmFragmentIdentifier.d.ts +1 -0
  135. package/lib-types/components/typography/ElmFragmentIdentifier.d.ts.map +1 -1
  136. package/lib-types/components/typography/ElmHeading.d.ts +1 -0
  137. package/lib-types/components/typography/ElmHeading.d.ts.map +1 -1
  138. package/lib-types/components/typography/ElmInlineText.d.ts +1 -0
  139. package/lib-types/components/typography/ElmInlineText.d.ts.map +1 -1
  140. package/lib-types/components/typography/ElmList.d.ts +1 -0
  141. package/lib-types/components/typography/ElmList.d.ts.map +1 -1
  142. package/lib-types/components/typography/ElmParagraph.d.ts +1 -0
  143. package/lib-types/components/typography/ElmParagraph.d.ts.map +1 -1
  144. package/lib-types/components/typography/ElmTypingAnimation.d.ts +1 -0
  145. package/lib-types/components/typography/ElmTypingAnimation.d.ts.map +1 -1
  146. package/package.json +5 -4
  147. package/lib/ElmMermaid-DDrDuDJ-.cjs +0 -1
@@ -1,22 +1,24 @@
1
- import { t as e } from "./ElmMermaid-BFqvHKdQ.js";
1
+ import { t as e } from "./ElmMermaid-CUeT_XM9.js";
2
2
  import t, { Suspense as n, createContext as r, lazy as i, useCallback as a, useContext as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
3
3
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
4
- import { darken as h, getLuminance as g, opacify as _, parseToHsl as v, parseToRgb as ee, rgbToColorString as te } from "polished";
5
- import { mdiAccount as y, mdiAlert as ne, mdiAlertCircle as re, mdiAlertOctagram as ie, mdiApplicationOutline as ae, mdiArchive as oe, mdiArrowDownDropCircleOutline as se, mdiArrowLeft as ce, mdiBackspaceOutline as le, mdiCalendarMonth as ue, mdiCalendarRefresh as de, mdiCheck as fe, mdiCheckCircle as pe, mdiCheckCircleOutline as me, mdiChevronRight as he, mdiChevronUp as ge, mdiClipboardCheckMultipleOutline as _e, mdiClipboardMultipleOutline as ve, mdiCloseCircleOutline as ye, mdiConsoleLine as be, mdiDownload as xe, mdiEarth as Se, mdiEmail as Ce, mdiEyeOffOutline as we, mdiEyeOutline as Te, mdiFileOutline as Ee, mdiFolderOpen as De, mdiFormatQuoteClose as Oe, mdiFormatQuoteOpen as ke, mdiHome as Ae, mdiInformation as je, mdiKey as Me, mdiKeyboardReturn as Ne, mdiLightbulbOn as Pe, mdiLinkVariant as Fe, mdiLoading as Ie, mdiLock as Le, mdiLoginVariant as Re, mdiLogoutVariant as ze, mdiMagnify as Be, mdiMenuDown as Ve, mdiMessageImageOutline as He, mdiPen as Ue, mdiPlus as We, mdiReload as Ge, mdiShieldAlert as Ke, mdiTable as qe, mdiTag as Je, mdiText as Ye } from "@mdi/js";
6
- import { createPortal as Xe } from "react-dom";
7
- import { kebabCase as Ze } from "lodash-es";
8
- import { marked as Qe } from "marked";
9
- var $e = { icon: "_icon_k0isg_1" }, b = ({ src: e, alt: t }) => {
10
- let [n, r] = d(e);
4
+ import { darken as h, getLuminance as g, opacify as _, parseToHsl as v, parseToRgb as y, rgbToColorString as ee } from "polished";
5
+ import { mdiAccount as b, mdiAlert as x, mdiAlertCircle as te, mdiAlertOctagram as ne, mdiApplicationOutline as re, mdiArchive as ie, mdiArrowDownDropCircleOutline as ae, mdiArrowLeft as oe, mdiBackspaceOutline as se, mdiCalendarMonth as ce, mdiCalendarRefresh as le, mdiCheck as ue, mdiCheckCircle as de, mdiCheckCircleOutline as fe, mdiChevronRight as pe, mdiClipboardCheckMultipleOutline as me, mdiClipboardMultipleOutline as he, mdiCloseCircleOutline as ge, mdiConsoleLine as _e, mdiDownload as ve, mdiEarth as ye, mdiEmail as be, mdiEyeOffOutline as xe, mdiEyeOutline as Se, mdiFileOutline as Ce, mdiFolderOpen as we, mdiFormatQuoteClose as Te, mdiFormatQuoteOpen as Ee, mdiHome as De, mdiInformation as Oe, mdiKey as ke, mdiKeyboardReturn as Ae, mdiLightbulbOn as je, mdiLinkVariant as Me, mdiLoading as Ne, mdiLock as Pe, mdiLoginVariant as Fe, mdiLogoutVariant as Ie, mdiMagnify as Le, mdiMenuDown as Re, mdiMessageImageOutline as ze, mdiPen as Be, mdiPlus as Ve, mdiReload as He, mdiShieldAlert as Ue, mdiTable as We, mdiTag as Ge, mdiText as Ke } from "@mdi/js";
6
+ import { createPortal as qe } from "react-dom";
7
+ import { useControllableState as Je } from "@radix-ui/react-use-controllable-state";
8
+ import S from "clsx";
9
+ import { kebabCase as Ye } from "lodash-es";
10
+ import { marked as Xe } from "marked";
11
+ var Ze = { icon: "_icon_k0isg_1" }, C = ({ src: e, alt: t, className: n }) => {
12
+ let [r, i] = d(e);
11
13
  return /* @__PURE__ */ p("img", {
12
- className: $e.icon,
13
- src: n,
14
+ className: [Ze.icon, n].filter(Boolean).join(" "),
15
+ src: r,
14
16
  alt: t,
15
17
  onError: () => {
16
- r("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path fill=\"gray\" d=\"M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2\"/></svg>");
18
+ i("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path fill=\"gray\" d=\"M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2\"/></svg>");
17
19
  }
18
20
  });
19
- }, et = { icon: "_icon_18sdb_1" }, tt = {
21
+ }, Qe = { icon: "_icon_18sdb_1" }, $e = {
20
22
  rust: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20128%20128'%20fill='%23a84f33'%20width='128'%20height='128'%20%3e%3cpath%20d='M62.96.242c-.232.135-1.203%201.528-2.16%203.097c-2.4%203.94-2.426%203.942-5.65.55c-2.098-2.208-2.605-2.612-3.28-2.607c-.44.002-.995.152-1.235.332s-.916%201.612-1.504%203.183c-1.346%203.6-1.41%203.715-2.156%203.86c-.46.086-1.343-.407-3.463-1.929c-1.565-1.125-3.1-2.045-3.411-2.045c-1.291%200-1.655.706-2.27%204.4c-.78%204.697-.754%204.681-4.988%202.758c-1.71-.776-3.33-1.41-3.603-1.41s-.792.293-1.15.652c-.652.652-.653.655-.475%204.246l.178%203.595l-.68.364c-.602.322-1.017.283-3.684-.348c-3.48-.822-4.216-.8-4.92.15l-.516.693l.692%202.964c.38%201.63.745%203.2.814%203.487c.067.287-.05.746-.26%201.02c-.348.448-.717.49-3.94.44c-5.452-.086-5.761.382-3.51%205.3c.718%201.56%201.305%202.98%201.305%203.15c0%20.898-.717%201.224-3.794%201.727c-1.722.28-3.218.51-3.326.51c-.107%200-.43.235-.717.522c-.937.936-.671%201.816%201.453%204.814c2.646%203.735%202.642%203.75-1.73%205.421c-4.971%201.902-5.072%202.37-1.287%205.96c3.525%203.344%203.53%203.295-.461%205.804C.208%2062.8.162%2062.846.085%2063.876c-.093%201.253-.071%201.275%203.538%203.48c3.57%202.18%203.57%202.246.067%205.56C-.078%2076.48.038%2077%205.013%2078.877c4.347%201.64%204.353%201.66%201.702%205.394c-1.502%202.117-1.981%203-1.981%203.653c0%201.223.637%201.535%204.44%202.174c3.206.54%203.92.857%203.92%201.741c0%20.182-.588%201.612-1.307%203.177c-2.236%204.87-1.981%205.275%203.31%205.275c4.93%200%204.799-.15%203.737%204.294c-.8%203.35-.813%203.992-.088%204.715c.554.556%201.6.494%204.87-.289c2.499-.596%202.937-.637%203.516-.328l.66.354l-.177%203.594c-.178%203.593-.177%203.595.475%204.248c.358.36.884.652%201.165.652s1.903-.63%203.604-1.404c4.22-1.916%204.194-1.932%204.973%202.75c.617%203.711.977%204.4%202.294%204.4c.327%200%201.83-.88%203.34-1.958c2.654-1.893%203.342-2.19%204.049-1.74c.182.115.89%201.67%201.572%203.455c1.003%202.625%201.37%203.31%201.929%203.576c1.062.51%201.72.1%204.218-2.62c3.016-3.286%203.14-3.27%205.602.72c2.72%204.406%203.424%204.396%206.212-.089c2.402-3.864%202.374-3.862%205.621-.47c2.157%202.25%202.616%202.61%203.343%202.61c.464%200%201.019-.175%201.23-.388c.214-.213.92-1.786%201.568-3.496c.649-1.71%201.321-3.2%201.495-3.31c.687-.436%201.398-.13%204.048%201.752c1.56%201.108%203.028%201.96%203.377%201.96c1.296%200%201.764-.92%202.302-4.535c.46-3.082.554-3.378%201.16-3.685c.596-.302.954-.2%203.75%201.07c1.701.77%203.323%201.402%203.604%201.402s.816-.302%201.184-.672l.672-.67l-.184-3.448c-.177-3.29-.16-3.468.364-3.943c.54-.488.596-.486%203.615.204c3.656.835%204.338.857%205.025.17c.671-.67.664-.818-.254-4.69c-1.03-4.346-1.168-4.19%203.78-4.19c3.374%200%203.75-.049%204.18-.523c.718-.793.547-1.702-.896-4.779c-.729-1.55-1.32-2.96-1.315-3.135c.024-.914.743-1.227%204.065-1.767c2.033-.329%203.553-.71%203.829-.96c.923-.833.584-1.918-1.523-4.873c-2.642-3.703-2.63-3.738%201.599-5.297c5.064-1.866%205.209-2.488%201.419-6.09c-3.51-3.335-3.512-3.317.333-5.677c4.648-2.853%204.655-3.496.082-6.335c-3.933-2.44-3.93-2.406-.405-5.753c3.78-3.593%203.678-4.063-1.295-5.965c-4.388-1.679-4.402-1.72-1.735-5.38c1.588-2.18%201.982-2.903%201.982-3.65c0-1.306-.586-1.598-4.436-2.22c-3.216-.52-3.924-.835-3.924-1.75c0-.174.588-1.574%201.307-3.113c1.406-3.013%201.604-4.22.808-4.94c-.428-.387-1-.443-4.067-.392c-3.208.054-3.618.008-4.063-.439c-.486-.488-.48-.557.278-3.725c.931-3.88.935-3.975.17-4.694c-.777-.73-1.262-.718-4.826.121c-2.597.612-3.027.653-3.617.337l-.67-.36l.185-3.582l.186-3.58l-.67-.67c-.369-.37-.891-.67-1.163-.67c-.27%200-1.884.64-3.583%201.421c-2.838%201.306-3.143%201.393-3.757%201.072c-.612-.32-.714-.637-1.237-3.829c-.603-3.693-.977-4.412-2.288-4.412c-.311%200-1.853.925-3.426%202.055c-2.584%201.856-2.93%202.032-3.574%201.807c-.533-.186-.843-.59-1.221-1.599c-.28-.742-.817-2.172-1.194-3.177c-.762-2.028-1.187-2.482-2.328-2.482c-.637%200-1.213.458-3.28%202.604c-3.25%203.375-3.261%203.374-5.65-.545C66.073%201.78%2065.075.382%2064.81.24c-.597-.32-1.3-.32-1.85.002m2.96%2011.798c2.83%202.014%201.326%206.75-2.144%206.75c-3.368%200-5.064-4.057-2.66-6.36c1.358-1.3%203.304-1.459%204.805-.39m-3.558%2012.507c1.855.705%202.616.282%206.852-3.8l3.182-3.07l1.347.18c4.225.56%2012.627%204.25%2017.455%207.666c4.436%203.14%2010.332%209.534%2012.845%2013.93l.537.942l-2.38%205.364c-1.31%202.95-2.382%205.673-2.382%206.053c0%20.878.576%202.267%201.13%202.726c.234.195%202.457%201.265%204.939%202.378l4.51%202.025l.178%201.148c.23%201.495.26%205.167.052%206.21l-.163.816h-2.575c-2.987%200-2.756-.267-2.918%203.396c-.118%202.656-.76%204.124-2.22%205.075c-2.377%201.551-6.304%201.27-7.97-.57c-.255-.284-.752-1.705-1.105-3.16c-1.03-4.254-2.413-6.64-5.193-8.965c-.878-.733-1.595-1.418-1.595-1.522c0-.102.965-.915%202.145-1.803c4.298-3.24%206.77-7.012%207.04-10.747c.519-7.126-5.158-13.767-13.602-15.92c-2.002-.51-2.857-.526-27.624-.526c-14.057%200-25.56-.092-25.56-.204c0-.263%203.125-3.295%204.965-4.816c5.054-4.178%2011.618-7.465%2018.417-9.22l2.35-.61l3.34%203.387c1.839%201.863%203.64%203.5%204.003%203.637M20.3%2046.34c1.539%201.008%202.17%203.54%201.26%205.062c-1.405%202.356-4.966%202.455-6.373.178c-2.046-3.309%201.895-7.349%205.113-5.24m90.672.13c4.026%202.454.906%208.493-3.404%206.586c-2.877-1.273-2.97-5.206-.155-6.64c1.174-.6%202.523-.579%203.56.053M32.163%2061.5v15.02h-13.28l-.526-2.285c-1.036-4.5-1.472-9.156-1.211-12.969l.182-2.679l4.565-2.047c2.864-1.283%204.706-2.262%204.943-2.625c1.038-1.584.94-2.715-.518-5.933l-.68-1.502h6.523V61.5M70.39%2047.132c2.843.74%204.345%202.245%204.349%204.355c.002%201.55-.765%202.52-2.67%203.38c-1.348.61-1.562.625-10.063.708l-8.686.084v-8.92h7.782c6.078%200%208.112.086%209.288.393m-2.934%2021.554c1.41.392%203.076%201.616%203.93%202.888c.898%201.337%201.423%203.076%202.667%208.836c1.05%204.87%201.727%206.46%203.62%208.532c2.345%202.566%201.8%202.466%2013.514%202.466c5.61%200%2010.198.09%2010.198.2c0%20.197-3.863%204.764-4.03%204.764c-.048%200-2.066-.422-4.484-.939c-6.829-1.458-7.075-1.287-8.642%206.032l-1.008%204.702l-.91.448c-1.518.75-6.453%202.292-9.01%202.82c-4.228.87-8.828%201.162-12.871.821c-6.893-.585-16.02-3.259-16.377-4.8c-.075-.327-.535-2.443-1.018-4.704c-.485-2.26-1.074-4.404-1.31-4.764c-1.13-1.724-2.318-1.83-7.547-.674c-1.98.44-3.708.796-3.84.796c-.248%200-3.923-4.249-3.923-4.535c0-.09%208.728-.194%2019.396-.23l19.395-.066l.07-6.89c.05-4.865-.018-6.997-.23-7.25c-.234-.284-1.485-.358-6.011-.358H53.32v-8.36l6.597.001c3.626.002%207.02.12%207.539.264M37.57%20100.02c3.084%201.88%201.605%206.804-2.043%206.8c-3.74%200-5.127-4.88-1.94-6.826c1.055-.643%202.908-.63%203.983.026m56.48.206c1.512%201.108%202.015%203.413%201.079%204.95c-2.46%204.034-8.612.827-6.557-3.419c1.01-2.085%203.695-2.837%205.478-1.53'%20/%3e%3c/svg%3e",
21
23
  javascript: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23f0db4f'%20d='M1.408%201.408h125.184v125.185H1.408z'%20/%3e%3cpath%20fill='%23323330'%20d='M116.347%2096.736c-.917-5.711-4.641-10.508-15.672-14.981c-3.832-1.761-8.104-3.022-9.377-5.926c-.452-1.69-.512-2.642-.226-3.665c.821-3.32%204.784-4.355%207.925-3.403c2.023.678%203.938%202.237%205.093%204.724c5.402-3.498%205.391-3.475%209.163-5.879c-1.381-2.141-2.118-3.129-3.022-4.045c-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902%202.748-8.877%205.235c-5.926%206.724-4.236%2018.492%202.975%2023.335c7.104%205.332%2017.54%206.545%2018.873%2011.531c1.297%206.104-4.486%208.08-10.234%207.378c-4.236-.881-6.592-3.034-9.139-6.949c-4.688%202.713-4.688%202.713-9.508%205.485c1.143%202.499%202.344%203.63%204.26%205.795c9.068%209.198%2031.76%208.746%2035.83-5.176c.165-.478%201.261-3.666.38-8.581M69.462%2058.943H57.753l-.048%2030.272c0%206.438.333%2012.34-.714%2014.149c-1.713%203.558-6.152%203.117-8.175%202.427c-2.059-1.012-3.106-2.451-4.319-4.485c-.333-.584-.583-1.036-.667-1.071l-9.52%205.83c1.583%203.249%203.915%206.069%206.902%207.901c4.462%202.678%2010.459%203.499%2016.731%202.059c4.082-1.189%207.604-3.652%209.448-7.401c2.666-4.915%202.094-10.864%202.07-17.444c.06-10.735.001-21.468.001-32.237'%20/%3e%3c/svg%3e",
22
24
  typescript: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23fff'%20d='M22.67%2047h99.67v73.67H22.67z'%20/%3e%3cpath%20fill='%23007acc'%20d='M1.5%2063.91v62.5h125v-125H1.5zm100.73-5a15.56%2015.56%200%200%201%207.82%204.5a20.6%2020.6%200%200%201%203%204c0%20.16-5.4%203.81-8.69%205.85c-.12.08-.6-.44-1.13-1.23a7.09%207.09%200%200%200-5.87-3.53c-3.79-.26-6.23%201.73-6.21%205a4.6%204.6%200%200%200%20.54%202.34c.83%201.73%202.38%202.76%207.24%204.86c8.95%203.85%2012.78%206.39%2015.16%2010c2.66%204%203.25%2010.46%201.45%2015.24c-2%205.2-6.9%208.73-13.83%209.9a38.3%2038.3%200%200%201-9.52-.1a23%2023%200%200%201-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9%209%200%200%201%201.15-.73L82%20101l3.59-2.08l.75%201.11a16.8%2016.8%200%200%200%204.74%204.54c4%202.1%209.46%201.81%2012.16-.62a5.43%205.43%200%200%200%20.69-6.92c-1-1.39-3-2.56-8.59-5c-6.45-2.78-9.23-4.5-11.77-7.24a16.5%2016.5%200%200%201-3.43-6.25a25%2025%200%200%201-.22-8c1.33-6.23%206-10.58%2012.82-11.87a31.7%2031.7%200%200%201%209.49.26zm-29.34%205.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49%2049%200%200%201%20.12-5.17C29.08%2059%2039%2059%2051%2059h21.83z'%20/%3e%3c/svg%3e",
@@ -36,9 +38,9 @@ var $e = { icon: "_icon_k0isg_1" }, b = ({ src: e, alt: t }) => {
36
38
  cpp: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%2300599c'%20d='M118.766%2095.82c.89-1.543%201.441-3.28%201.441-4.843V36.78c0-1.558-.55-3.297-1.441-4.84l-55.32%2031.94Zm0%200'%20/%3e%3cpath%20fill='%23004482'%20d='m68.36%20126.586l46.933-27.094c1.352-.781%202.582-2.129%203.473-3.672l-55.32-31.94L8.12%2095.82c.89%201.543%202.121%202.89%203.473%203.672l46.933%2027.094c2.703%201.562%207.13%201.562%209.832%200Zm0%200'%20/%3e%3cpath%20fill='%23659ad2'%20d='M118.766%2031.941c-.891-1.546-2.121-2.894-3.473-3.671L68.359%201.172c-2.703-1.563-7.129-1.563-9.832%200L11.594%2028.27C8.89%2029.828%206.68%2033.66%206.68%2036.78v54.196c0%201.562.55%203.3%201.441%204.843L63.445%2063.88Zm0%200'%20/%3e%3cpath%20fill='%23fff'%20d='M63.445%2026.035c-20.867%200-37.843%2016.977-37.843%2037.844s16.976%2037.844%2037.843%2037.844c13.465%200%2026.024-7.247%2032.77-18.91L79.84%2073.335c-3.38%205.84-9.66%209.465-16.395%209.465c-10.433%200-18.922-8.488-18.922-18.922s8.49-18.922%2018.922-18.922c6.73%200%2013.017%203.629%2016.39%209.465l16.38-9.477c-6.75-11.664-19.305-18.91-32.77-18.91zM92.88%2057.57v4.207h-4.207v4.203h4.207v4.207h4.203V65.98h4.203v-4.203h-4.203V57.57zm15.766%200v4.207h-4.204v4.203h4.204v4.207h4.207V65.98h4.203v-4.203h-4.203V57.57z'%20/%3e%3c/svg%3e",
37
39
  c: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23659ad3'%20d='M115.4%2030.7L67.1%202.9c-.8-.5-1.9-.7-3.1-.7s-2.3.3-3.1.7l-48%2027.9c-1.7%201-2.9%203.5-2.9%205.4v55.7c0%201.1.2%202.4%201%203.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7'%20/%3e%3cpath%20fill='%2303599c'%20d='M10.7%2095.3c.5.8%201.2%201.5%201.9%201.9l48.2%2027.9c.8.5%201.9.7%203.1.7s2.3-.3%203.1-.7l48-27.9c1.7-1%202.9-3.5%202.9-5.4V36.1c0-.9-.1-1.9-.6-2.8z'%20/%3e%3cpath%20fill='%23fff'%20d='M85.3%2076.1C81.1%2083.5%2073.1%2088.5%2064%2088.5c-13.5%200-24.5-11-24.5-24.5s11-24.5%2024.5-24.5c9.1%200%2017.1%205%2021.3%2012.5l13-7.5c-6.8-11.9-19.6-20-34.3-20c-21.8%200-39.5%2017.7-39.5%2039.5s17.7%2039.5%2039.5%2039.5c14.6%200%2027.4-8%2034.2-19.8z'%20/%3e%3c/svg%3e",
38
40
  file: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e"
39
- }, nt = (e) => /* @__PURE__ */ p("img", {
40
- className: et.icon,
41
- src: tt[e.language] || "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e",
41
+ }, et = (e) => /* @__PURE__ */ p("img", {
42
+ className: [Qe.icon, e.className].filter(Boolean).join(" "),
43
+ src: $e[e.language] || "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e",
42
44
  width: e.size,
43
45
  height: e.size,
44
46
  alt: e.language,
@@ -47,7 +49,7 @@ var $e = { icon: "_icon_k0isg_1" }, b = ({ src: e, alt: t }) => {
47
49
  height: e.size,
48
50
  ...e.style
49
51
  }
50
- }), rt = [
52
+ }), tt = [
51
53
  "rust",
52
54
  "javascript",
53
55
  "typescript",
@@ -67,10 +69,11 @@ var $e = { icon: "_icon_k0isg_1" }, b = ({ src: e, alt: t }) => {
67
69
  "cpp",
68
70
  "c",
69
71
  "file"
70
- ], it = {
72
+ ], nt = {
71
73
  icon: "_icon_g71ox_1",
72
74
  "icon-theme-color": "_icon-theme-color_g71ox_10"
73
- }, x = (e) => /* @__PURE__ */ p("div", {
75
+ }, w = (e) => /* @__PURE__ */ p("div", {
76
+ className: e.className,
74
77
  style: e.style,
75
78
  children: /* @__PURE__ */ p("svg", {
76
79
  width: e.size || "1.25rem",
@@ -84,19 +87,19 @@ var $e = { icon: "_icon_k0isg_1" }, b = ({ src: e, alt: t }) => {
84
87
  "--elmethis-scoped-color-dark": e.colorDark ?? e.color,
85
88
  ...e.style
86
89
  },
87
- className: e.useThemeColor ? it["icon-theme-color"] : it.icon,
90
+ className: e.useThemeColor ? nt["icon-theme-color"] : nt.icon,
88
91
  fill: "currentColor",
89
92
  d: e.d
90
93
  })
91
94
  })
92
- }), at = {
95
+ }), rt = {
93
96
  wrapper: "_wrapper_1q92c_15",
94
97
  dot: "_dot_1q92c_22",
95
98
  bounce: "_bounce_1q92c_1"
96
- }, S = (e) => {
99
+ }, T = (e) => {
97
100
  let { color: t, size: n = "64px", style: r } = e;
98
101
  return /* @__PURE__ */ p("div", {
99
- className: at.wrapper,
102
+ className: [rt.wrapper, e.className].filter(Boolean).join(" "),
100
103
  style: {
101
104
  width: n,
102
105
  height: n,
@@ -107,51 +110,51 @@ var $e = { icon: "_icon_k0isg_1" }, b = ({ src: e, alt: t }) => {
107
110
  2,
108
111
  3
109
112
  ].map((e) => /* @__PURE__ */ p("div", {
110
- className: at.dot,
113
+ className: rt.dot,
111
114
  "aria-hidden": !0,
112
115
  style: t ? { backgroundColor: t } : void 0
113
116
  }, e))
114
117
  });
115
- }, ot = {
118
+ }, it = {
116
119
  wrapper: "_wrapper_1yu3x_19",
117
120
  square: "_square_1yu3x_28",
118
121
  appear: "_appear_1yu3x_1"
119
- }, st = 1200, ct = (e) => {
120
- let { size: t = "3rem", dimensions: n = 4, style: r } = e, i = st / (n * 3), a = Array.from({ length: n });
122
+ }, at = 1200, ot = (e) => {
123
+ let { size: t = "3rem", dimensions: n = 4, style: r } = e, i = at / (n * 3), a = Array.from({ length: n });
121
124
  return /* @__PURE__ */ p("div", {
122
- className: ot.wrapper,
125
+ className: [it.wrapper, e.className].filter(Boolean).join(" "),
123
126
  style: {
124
127
  "--size": t,
125
128
  "--dimensions": n,
126
- "--duration": `${st}ms`,
129
+ "--duration": `${at}ms`,
127
130
  ...r
128
131
  },
129
132
  children: a.map((e, t) => a.map((e, n) => /* @__PURE__ */ p("div", {
130
- className: ot.square,
133
+ className: it.square,
131
134
  style: { "--delay": `${i * (t + n)}ms` }
132
135
  }, `${t}-${n}`)))
133
136
  });
134
- }, lt = { icon: "_icon_x4u0f_1" }, ut = "elmethis-theme";
135
- function dt() {
137
+ }, st = { icon: "_icon_x4u0f_1" }, ct = "elmethis-theme";
138
+ function lt() {
136
139
  if (typeof document < "u") {
137
140
  let e = document.documentElement.getAttribute("data-theme");
138
141
  if (e != null) return e === "dark";
139
142
  }
140
143
  if (typeof localStorage < "u") {
141
- let e = localStorage.getItem(ut);
144
+ let e = localStorage.getItem(ct);
142
145
  if (e != null) return e === "dark";
143
146
  }
144
147
  return !1;
145
148
  }
146
- function ft() {
147
- let [e, t] = d(dt), n = a(() => {
149
+ function ut() {
150
+ let [e, t] = d(lt), n = a(() => {
148
151
  t((e) => !e);
149
152
  }, []);
150
153
  return s(() => {
151
154
  if (typeof document < "u") {
152
155
  document.documentElement.setAttribute("data-theme", e ? "dark" : "light");
153
156
  let t = document.querySelector("body");
154
- t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(ut, e ? "dark" : "light");
157
+ t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(ct, e ? "dark" : "light");
155
158
  }
156
159
  }, [e]), {
157
160
  isDarkTheme: e,
@@ -160,16 +163,16 @@ function ft() {
160
163
  }
161
164
  //#endregion
162
165
  //#region src/components/icon/ElmToggleTheme.tsx
163
- var pt = (e) => {
164
- let { size: t = "2rem", style: n } = e, { isDarkTheme: r, toggleTheme: i } = ft();
165
- return r ? /* @__PURE__ */ m("svg", {
166
+ var dt = (e) => {
167
+ let { size: t = "2rem", style: n, className: r } = e, { isDarkTheme: i, toggleTheme: a } = ut();
168
+ return i ? /* @__PURE__ */ m("svg", {
166
169
  xmlns: "http://www.w3.org/2000/svg",
167
170
  width: t,
168
171
  height: t,
169
172
  viewBox: "0 0 24 24",
170
- className: lt.icon,
173
+ className: [st.icon, r].filter(Boolean).join(" "),
171
174
  style: n,
172
- onClick: i,
175
+ onClick: a,
173
176
  children: [
174
177
  /* @__PURE__ */ m("path", {
175
178
  fillOpacity: "0",
@@ -396,9 +399,9 @@ var pt = (e) => {
396
399
  width: t,
397
400
  height: t,
398
401
  viewBox: "0 0 24 24",
399
- className: lt.icon,
402
+ className: st.icon,
400
403
  style: n,
401
- onClick: i,
404
+ onClick: a,
402
405
  children: [
403
406
  /* @__PURE__ */ m("g", {
404
407
  fill: "none",
@@ -589,19 +592,20 @@ var pt = (e) => {
589
592
  })
590
593
  ]
591
594
  });
592
- }, C = {
595
+ }, E = {
593
596
  arrow: "_arrow_kn879_19",
594
597
  loading: "_loading_kn879_49",
595
598
  normal: "_normal_kn879_55",
596
599
  pending: "_pending_kn879_64"
597
- }, mt = (e) => {
600
+ }, ft = (e) => {
598
601
  let { direction: t = "right", loading: n = !1, pending: r = !1, size: i = "2rem", style: a } = e, o = t === "up" ? "rotate(270deg)" : t === "down" ? "rotate(90deg)" : t === "left" ? "rotate(180deg)" : "rotate(0deg)";
599
602
  return /* @__PURE__ */ p("div", {
600
603
  className: [
601
- C.arrow,
602
- !n && !r ? C.normal : void 0,
603
- n ? C.loading : void 0,
604
- !n && r ? C.pending : void 0
604
+ E.arrow,
605
+ !n && !r ? E.normal : void 0,
606
+ n ? E.loading : void 0,
607
+ !n && r ? E.pending : void 0,
608
+ e.className
605
609
  ].filter(Boolean).join(" "),
606
610
  style: {
607
611
  "--size": i,
@@ -609,26 +613,26 @@ var pt = (e) => {
609
613
  ...a
610
614
  }
611
615
  });
612
- }, ht = {
616
+ }, pt = {
613
617
  wrapper: "_wrapper_1c6r3_1",
614
618
  favicon: "_favicon_1c6r3_24",
615
619
  text: "_text_1c6r3_29"
616
- }, gt = {
620
+ }, mt = {
617
621
  text: "_text_1nnze_1",
618
622
  link: "_link_1nnze_19"
619
- }, w = (e) => {
623
+ }, D = (e) => {
620
624
  let t = (e) => {
621
625
  let t = e.children;
622
626
  return e.kbd && (t = /* @__PURE__ */ p("kbd", { children: t })), e.code && (t = /* @__PURE__ */ p("code", { children: t })), e.strikethrough && (t = /* @__PURE__ */ p("del", { children: t })), e.underline && (t = /* @__PURE__ */ p("ins", { children: t })), e.italic && (t = /* @__PURE__ */ p("em", { children: t })), e.bold && (t = /* @__PURE__ */ p("strong", { children: t })), e.ruby && (t = /* @__PURE__ */ m("ruby", { children: [t, /* @__PURE__ */ p("rt", { children: e.ruby })] })), t;
623
627
  }, n = ({ favicon: e, href: t, children: n }) => /* @__PURE__ */ m("a", {
624
- className: gt.link,
628
+ className: mt.link,
625
629
  href: t,
626
630
  target: "_blank",
627
631
  rel: "noopener noreferrer",
628
- children: [e && /* @__PURE__ */ p(b, { src: e }), n]
632
+ children: [e && /* @__PURE__ */ p(C, { src: e }), n]
629
633
  }), r = (e) => e.href ? n(e) : t(e);
630
634
  return /* @__PURE__ */ p("span", {
631
- className: gt.text,
635
+ className: [mt.text, e.className].filter(Boolean).join(" "),
632
636
  style: {
633
637
  "--elmethis-text-color-light": e.color,
634
638
  "--elmethis-text-color-dark": e.color,
@@ -640,35 +644,35 @@ var pt = (e) => {
640
644
  },
641
645
  children: r(e)
642
646
  });
643
- }, _t = (e) => {
647
+ }, ht = (e) => {
644
648
  let { name: t, href: n, favicon: r, style: i } = e;
645
649
  return /* @__PURE__ */ m("a", {
646
- className: ht.wrapper,
650
+ className: [pt.wrapper, e.className].filter(Boolean).join(" "),
647
651
  href: n,
648
652
  target: "_blank",
649
653
  rel: "noopener noreferrer",
650
654
  style: i,
651
- children: [r == null ? /* @__PURE__ */ p(x, {
652
- d: Se,
655
+ children: [r == null ? /* @__PURE__ */ p(w, {
656
+ d: ye,
653
657
  size: "2.5rem",
654
658
  style: { opacity: .7 }
655
659
  }) : /* @__PURE__ */ p("img", {
656
- className: ht.favicon,
660
+ className: pt.favicon,
657
661
  src: r,
658
662
  alt: `favicon of ${t ?? n}`
659
663
  }), /* @__PURE__ */ p("div", {
660
- className: ht.text,
661
- children: /* @__PURE__ */ p(w, {
664
+ className: pt.text,
665
+ children: /* @__PURE__ */ p(D, {
662
666
  size: ".6rem",
663
667
  children: t ?? n
664
668
  })
665
669
  })]
666
670
  });
667
- }, vt = {
671
+ }, gt = {
668
672
  cube: "_cube_1merk_1",
669
673
  "elmethis-cube-icon-rotate": "_elmethis-cube-icon-rotate_1merk_1",
670
674
  face: "_face_1merk_8"
671
- }, yt = [
675
+ }, _t = [
672
676
  {
673
677
  name: "front",
674
678
  rotate: ""
@@ -693,51 +697,51 @@ var pt = (e) => {
693
697
  name: "bottom",
694
698
  rotate: "rotateX(-90deg)"
695
699
  }
696
- ], bt = (e) => {
700
+ ], vt = (e) => {
697
701
  let { size: t = 128, style: n } = e, r = l(() => `translateZ(${t / 2}px)`, [t]);
698
702
  return /* @__PURE__ */ p("div", {
699
- className: vt.cube,
703
+ className: [gt.cube, e.className].filter(Boolean).join(" "),
700
704
  style: {
701
705
  width: `${t}px`,
702
706
  height: `${t}px`,
703
707
  ...n
704
708
  },
705
- children: yt.map((e) => /* @__PURE__ */ p("div", {
706
- className: vt.face,
709
+ children: _t.map((e) => /* @__PURE__ */ p("div", {
710
+ className: gt.face,
707
711
  style: { transform: `${e.rotate} ${r}` }
708
712
  }, e.name))
709
713
  });
710
- }, xt = { icon: "_icon_140bn_1" }, St = (e) => {
711
- let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ? Ie : n ? ze : Re, o = r ? "gray" : n ? "#b36472" : "#6987b8";
714
+ }, yt = { icon: "_icon_140bn_1" }, bt = (e) => {
715
+ let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ? Ne : n ? Ie : Fe, o = r ? "gray" : n ? "#b36472" : "#6987b8";
712
716
  return /* @__PURE__ */ p("div", {
713
- className: xt.icon,
717
+ className: [yt.icon, e.className].filter(Boolean).join(" "),
714
718
  style: i,
715
- children: /* @__PURE__ */ p(x, {
719
+ children: /* @__PURE__ */ p(w, {
716
720
  d: a,
717
721
  color: o,
718
722
  size: t
719
723
  })
720
724
  });
721
- }, Ct = { paragraph: "_paragraph_ewdky_1" }, wt = (e) => /* @__PURE__ */ p("p", {
722
- className: Ct.paragraph,
725
+ }, xt = { paragraph: "_paragraph_ewdky_1" }, St = (e) => /* @__PURE__ */ p("p", {
726
+ className: [xt.paragraph, e.className].filter(Boolean).join(" "),
723
727
  style: {
724
728
  backgroundColor: e.backgroundColor,
725
729
  ...e.style
726
730
  },
727
731
  children: e.children
728
- }), T = {
732
+ }), O = {
729
733
  blockquote: "_blockquote_x79j0_1",
730
734
  cite: "_cite_x79j0_16",
731
735
  icon: "_icon_x79j0_37"
732
- }, Tt = (e) => /* @__PURE__ */ m("blockquote", {
736
+ }, Ct = (e) => /* @__PURE__ */ m("blockquote", {
733
737
  ref: u(null),
734
- className: T.blockquote,
738
+ className: [O.blockquote, e.className].filter(Boolean).join(" "),
735
739
  cite: e.cite,
736
740
  style: { ...e.style },
737
741
  children: [
738
742
  e.children,
739
743
  e.cite && /* @__PURE__ */ p("cite", {
740
- className: T.cite,
744
+ className: O.cite,
741
745
  children: /* @__PURE__ */ p("a", {
742
746
  href: e.cite,
743
747
  target: "_blank",
@@ -746,7 +750,7 @@ var pt = (e) => {
746
750
  })
747
751
  }),
748
752
  /* @__PURE__ */ p("svg", {
749
- className: T.icon,
753
+ className: O.icon,
750
754
  style: {
751
755
  top: "0.25rem",
752
756
  left: "0.25rem"
@@ -754,10 +758,10 @@ var pt = (e) => {
754
758
  viewBox: "0 0 24 24",
755
759
  width: "1rem",
756
760
  height: "1rem",
757
- children: /* @__PURE__ */ p("path", { d: ke })
761
+ children: /* @__PURE__ */ p("path", { d: Ee })
758
762
  }),
759
763
  /* @__PURE__ */ p("svg", {
760
- className: T.icon,
764
+ className: O.icon,
761
765
  style: {
762
766
  bottom: "0.25rem",
763
767
  right: "0.25rem"
@@ -765,69 +769,69 @@ var pt = (e) => {
765
769
  viewBox: "0 0 24 24",
766
770
  width: "1rem",
767
771
  height: "1rem",
768
- children: /* @__PURE__ */ p("path", { d: Oe })
772
+ children: /* @__PURE__ */ p("path", { d: Te })
769
773
  })
770
774
  ]
771
- }), Et = {
775
+ }), wt = {
772
776
  callout: "_callout_16oli_1",
773
777
  header: "_header_16oli_24"
774
- }, Dt = Object.freeze({
778
+ }, Tt = Object.freeze({
775
779
  note: {
776
780
  code: "#6987b8",
777
- icon: je
781
+ icon: Oe
778
782
  },
779
783
  tip: {
780
784
  code: "#59b57c",
781
- icon: Pe
785
+ icon: je
782
786
  },
783
787
  important: {
784
788
  code: "#9771bd",
785
- icon: Ke
789
+ icon: Ue
786
790
  },
787
791
  warning: {
788
792
  code: "#b8a36e",
789
- icon: ne
793
+ icon: x
790
794
  },
791
795
  caution: {
792
796
  code: "#b36472",
793
- icon: ie
797
+ icon: ne
794
798
  }
795
- }), Ot = ({ type: e = "note", ...t }) => {
796
- let n = Dt[e];
799
+ }), Et = ({ type: e = "note", ...t }) => {
800
+ let n = Tt[e];
797
801
  return /* @__PURE__ */ m("aside", {
798
- className: Et.callout,
802
+ className: [wt.callout, t.className].filter(Boolean).join(" "),
799
803
  style: {
800
804
  "--elmethis-scoped-border-color": n.code,
801
805
  "--elmethis-scoped-background-color": `color-mix(in srgb, ${n.code} 10%, transparent)`,
802
806
  ...t.style
803
807
  },
804
808
  children: [/* @__PURE__ */ m("div", {
805
- className: Et.header,
806
- children: [/* @__PURE__ */ p(x, {
809
+ className: wt.header,
810
+ children: [/* @__PURE__ */ p(w, {
807
811
  d: n.icon,
808
812
  size: "1.25em",
809
813
  color: n.code
810
- }), /* @__PURE__ */ p(w, {
814
+ }), /* @__PURE__ */ p(D, {
811
815
  color: n.code,
812
816
  children: e.toUpperCase()
813
817
  })]
814
818
  }), /* @__PURE__ */ p("div", { children: t.children })]
815
819
  });
816
- }, kt = { divider: "_divider_uq5jr_1" }, At = (e) => /* @__PURE__ */ p("hr", {
817
- className: kt.divider,
820
+ }, Dt = { divider: "_divider_uq5jr_1" }, Ot = (e) => /* @__PURE__ */ p("hr", {
821
+ className: [Dt.divider, e.className].filter(Boolean).join(" "),
818
822
  style: e.style
819
- }), jt = { fragment: "_fragment_il7xb_1" }, Mt = (e) => {
823
+ }), kt = { fragment: "_fragment_il7xb_1" }, At = (e) => {
820
824
  let t = a((e) => {
821
825
  let t = new URL(window.location.href);
822
826
  t.hash = e, window.history.replaceState(null, "", t.toString()), document.getElementById(e)?.scrollIntoView({ behavior: "smooth" });
823
827
  }, []);
824
828
  return /* @__PURE__ */ p("span", {
825
- className: jt.fragment,
829
+ className: [kt.fragment, e.className].filter(Boolean).join(" "),
826
830
  style: e.style,
827
831
  onClick: () => t(e.id),
828
832
  children: "#"
829
833
  });
830
- }, E = {
834
+ }, jt = {
831
835
  "heading-common": "_heading-common_1ytfd_1",
832
836
  h1: "_h1_1ytfd_22",
833
837
  h2: "_h2_1ytfd_57",
@@ -837,14 +841,14 @@ var pt = (e) => {
837
841
  h5: "_h5_1ytfd_134",
838
842
  h6: "_h6_1ytfd_138",
839
843
  "heading-stretch": "_heading-stretch_1ytfd_1"
840
- }, Nt = Object.freeze({
844
+ }, Mt = Object.freeze({
841
845
  1: 1.5,
842
846
  2: 1.4,
843
847
  3: 1.3,
844
848
  4: 1.2,
845
849
  5: 1.15,
846
850
  6: 1.1
847
- }), Pt = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), D = ({ level: e = 1, disableFragmentIdentifier: t = !1, ...n }) => {
851
+ }), Nt = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), k = ({ level: e = 1, disableFragmentIdentifier: t = !1, ...n }) => {
848
852
  let r = u(null), [i, a] = d(!1);
849
853
  s(() => {
850
854
  let e = r.current;
@@ -854,13 +858,17 @@ var pt = (e) => {
854
858
  });
855
859
  return t.observe(e), () => t.disconnect();
856
860
  }, []);
857
- let o = `h${e}`, c = n.id ?? (n.text ? Pt(n.text) : void 0);
861
+ let o = `h${e}`, c = n.id ?? (n.text ? Nt(n.text) : void 0);
858
862
  return /* @__PURE__ */ m(o, {
859
863
  ref: r,
860
- className: [E["heading-common"], E[`h${e}`]].filter(Boolean).join(" "),
864
+ className: [
865
+ jt["heading-common"],
866
+ jt[`h${e}`],
867
+ n.className
868
+ ].filter(Boolean).join(" "),
861
869
  id: c,
862
870
  style: {
863
- "--font-size": n.size ?? `${Nt[e]}rem`,
871
+ "--font-size": n.size ?? `${Mt[e]}rem`,
864
872
  "--scale": +!!i,
865
873
  "--opacity": +!!i,
866
874
  ...n.style
@@ -868,71 +876,75 @@ var pt = (e) => {
868
876
  children: [
869
877
  n.text && /* @__PURE__ */ p("span", { children: n.text }),
870
878
  n.children,
871
- !t && c && /* @__PURE__ */ p(Mt, { id: c }),
879
+ !t && c && /* @__PURE__ */ p(At, { id: c }),
872
880
  e === 2 && /* @__PURE__ */ p("span", {
873
- className: E.h2__underline,
881
+ className: jt.h2__underline,
874
882
  "aria-hidden": "true"
875
883
  })
876
884
  ]
877
885
  });
878
- }, Ft = {
886
+ }, Pt = {
879
887
  "elmethis-list-common": "_elmethis-list-common_1qwri_1",
880
888
  "elmethis-bulleted-list": "_elmethis-bulleted-list_1qwri_7",
881
889
  "elmethis-numbered-list": "_elmethis-numbered-list_1qwri_25"
882
- }, It = ({ listStyle: e = "unordered", ...t }) => {
883
- let n = [Ft["elmethis-list-common"], e === "unordered" ? Ft["elmethis-bulleted-list"] : Ft["elmethis-numbered-list"]].join(" ");
890
+ }, Ft = ({ listStyle: e = "unordered", ...t }) => {
891
+ let n = [
892
+ Pt["elmethis-list-common"],
893
+ e === "unordered" ? Pt["elmethis-bulleted-list"] : Pt["elmethis-numbered-list"],
894
+ t.className
895
+ ].filter(Boolean).join(" ");
884
896
  return p(e === "ordered" ? "ol" : "ul", {
885
897
  className: n,
886
898
  style: t.style,
887
899
  children: t.children
888
900
  });
889
- }, Lt = {
901
+ }, It = {
890
902
  text: "_text_zrzts_1",
891
903
  cursor: "_cursor_zrzts_30",
892
904
  blink: "_blink_zrzts_1"
893
- }, O = (e) => new Promise((t) => {
905
+ }, A = (e) => new Promise((t) => {
894
906
  setTimeout(t, e);
895
- }), Rt = ({ texts: e = [], interval: t = 3e3, fontSize: n = "1rem", ...r }) => {
907
+ }), Lt = ({ texts: e = [], interval: t = 3e3, fontSize: n = "1rem", ...r }) => {
896
908
  let [i, a] = d(""), o = u(!1);
897
909
  return s(() => (o.current = !1, (async () => {
898
910
  for (; !o.current;) for (let n of e) {
899
911
  for (let e = 0; e < n.length; e++) {
900
- if (o.current || (await O(75), o.current)) return;
912
+ if (o.current || (await A(75), o.current)) return;
901
913
  a(n.slice(0, e + 1));
902
914
  }
903
- if (await O(t), o.current) return;
904
- for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await O(25), o.current)) return;
905
- if (await O(200), o.current) return;
915
+ if (await A(t), o.current) return;
916
+ for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await A(25), o.current)) return;
917
+ if (await A(200), o.current) return;
906
918
  }
907
919
  })(), () => {
908
920
  o.current = !0;
909
921
  }), [e, t]), /* @__PURE__ */ m("span", {
910
- className: Lt.text,
922
+ className: [It.text, r.className].filter(Boolean).join(" "),
911
923
  style: {
912
924
  fontSize: n,
913
925
  ...r.style
914
926
  },
915
927
  children: [i, /* @__PURE__ */ p("span", {
916
- className: Lt.cursor,
928
+ className: It.cursor,
917
929
  children: "\xA0"
918
930
  })]
919
931
  });
920
- }, zt = { "elm-template": "_elm-template_18rwn_1" }, Bt = (e) => /* @__PURE__ */ p("div", {
921
- className: zt["elm-template"],
932
+ }, Rt = { "elm-template": "_elm-template_18rwn_1" }, zt = (e) => /* @__PURE__ */ p("div", {
933
+ className: [Rt["elm-template"], e.className].filter(Boolean).join(" "),
922
934
  style: e.style,
923
935
  children: "PLACEHOLDER"
924
- }), k = {
936
+ }), j = {
925
937
  progress: "_progress_e6hmw_1",
926
938
  container: "_container_e6hmw_27",
927
939
  value: "_value_e6hmw_41",
928
940
  loading: "_loading_e6hmw_56",
929
941
  buffer: "_buffer_e6hmw_72"
930
- }, Vt = ({ value: e, buffer: t, max: n = 100, weight: r = "4px", round: i = !0, color: a, loading: o = !1, style: s }) => /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("progress", {
931
- className: k.progress,
942
+ }, Bt = ({ value: e, buffer: t, max: n = 100, weight: r = "4px", round: i = !0, color: a, loading: o = !1, style: s, className: c }) => /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("progress", {
943
+ className: j.progress,
932
944
  value: e,
933
945
  max: n
934
946
  }), /* @__PURE__ */ m("div", {
935
- className: k.container,
947
+ className: [j.container, c].filter(Boolean).join(" "),
936
948
  style: {
937
949
  "--weight": r,
938
950
  "--border-radius": i ? "calc(var(--weight) / 2)" : void 0,
@@ -941,20 +953,20 @@ var pt = (e) => {
941
953
  },
942
954
  children: [
943
955
  /* @__PURE__ */ p("div", {
944
- className: k.value,
956
+ className: j.value,
945
957
  style: { "--scale-x": `scaleX(${o ? 0 : e / n})` }
946
958
  }),
947
- o && /* @__PURE__ */ p("div", { className: k.loading }),
959
+ o && /* @__PURE__ */ p("div", { className: j.loading }),
948
960
  /* @__PURE__ */ p("div", {
949
- className: k.buffer,
961
+ className: j.buffer,
950
962
  style: { "--scale-x": `scaleX(${o ? 0 : t == null ? e / n : t / n})` }
951
963
  })
952
964
  ]
953
- })] }), Ht = {
965
+ })] }), Vt = {
954
966
  container: "_container_13d02_1",
955
967
  bar: "_bar_13d02_15"
956
- }, Ut = ({ progress: e, weight: t = "4px", round: n = !0, style: r }) => {
957
- let i = l(() => {
968
+ }, Ht = ({ progress: e, weight: t = "4px", round: n = !0, style: r, className: i }) => {
969
+ let a = l(() => {
958
970
  let t = e.reduce((e, t) => e + t.value, 0), n = e.map((e) => e.value / t * 100);
959
971
  return e.map((e, t) => ({
960
972
  ...e,
@@ -963,52 +975,52 @@ var pt = (e) => {
963
975
  }));
964
976
  }, [e]);
965
977
  return /* @__PURE__ */ p("div", {
966
- className: Ht.container,
978
+ className: [Vt.container, i].filter(Boolean).join(" "),
967
979
  style: {
968
980
  "--weight": t,
969
981
  "--border-radius": n ? "calc(var(--weight) / 2)" : void 0,
970
982
  ...r
971
983
  },
972
- children: i.map((e, t) => /* @__PURE__ */ p("div", {
973
- className: Ht.bar,
984
+ children: a.map((e, t) => /* @__PURE__ */ p("div", {
985
+ className: Vt.bar,
974
986
  style: {
975
987
  "--transform": `translateX(${e.start}%) scaleX(${e.scale})`,
976
988
  "--color": e.color
977
989
  }
978
990
  }, t))
979
991
  });
980
- }, Wt = { wrapper: "_wrapper_17chp_1" }, Gt = Object.freeze({
992
+ }, Ut = { wrapper: "_wrapper_17chp_1" }, Wt = Object.freeze({
981
993
  pending: {
982
994
  color: "#6987b8",
983
- icon: Ge
995
+ icon: He
984
996
  },
985
997
  error: {
986
998
  color: "#c56565",
987
- icon: re
999
+ icon: te
988
1000
  },
989
1001
  warning: {
990
1002
  color: "#cdb57b",
991
- icon: ne
1003
+ icon: x
992
1004
  },
993
1005
  success: {
994
1006
  color: "#59b57c",
995
- icon: pe
1007
+ icon: de
996
1008
  }
997
- }), Kt = ({ status: e, message: t, style: n }) => {
998
- let { color: r, icon: i } = Gt[e];
1009
+ }), Gt = ({ status: e, message: t, style: n, className: r }) => {
1010
+ let { color: i, icon: a } = Wt[e];
999
1011
  return /* @__PURE__ */ m("div", {
1000
- className: Wt.wrapper,
1012
+ className: [Ut.wrapper, r].filter(Boolean).join(" "),
1001
1013
  style: n,
1002
- children: [/* @__PURE__ */ p(x, {
1003
- d: i,
1004
- color: r,
1014
+ children: [/* @__PURE__ */ p(w, {
1015
+ d: a,
1016
+ color: i,
1005
1017
  size: "1em"
1006
- }), /* @__PURE__ */ p(w, {
1007
- color: r,
1018
+ }), /* @__PURE__ */ p(D, {
1019
+ color: i,
1008
1020
  children: t
1009
1021
  })]
1010
1022
  });
1011
- }, A = {
1023
+ }, M = {
1012
1024
  wrapper: "_wrapper_gcui5_1",
1013
1025
  error: "_error_gcui5_9",
1014
1026
  "image-frame": "_image-frame_gcui5_21",
@@ -1020,80 +1032,80 @@ var pt = (e) => {
1020
1032
  "alt-text": "_alt-text_gcui5_90",
1021
1033
  modal: "_modal_gcui5_94",
1022
1034
  "modal-image": "_modal-image_gcui5_108"
1023
- }, j = ({ src: e, alt: t, block: n = !1, enableModal: r = !1, width: i, height: a, style: o }) => {
1024
- let [c, l] = d(!0), [f, h] = d(!1), [g, _] = d(!1), v = u(null);
1035
+ }, N = ({ src: e, alt: t, block: n = !1, enableModal: r = !1, width: i, height: a, style: o, className: c }) => {
1036
+ let [l, f] = d(!0), [h, g] = d(!1), [_, v] = d(!1), y = u(null);
1025
1037
  return s(() => {
1026
1038
  let t = new Image();
1027
1039
  t.src = e, t.onload = () => {
1028
- l(!1), h(!1);
1040
+ f(!1), g(!1);
1029
1041
  }, t.onerror = () => {
1030
- l(!1), h(!0);
1042
+ f(!1), g(!0);
1031
1043
  };
1032
1044
  }, [e]), s(() => {
1033
1045
  let e = (e) => {
1034
- e.key === "Escape" && (e.preventDefault(), _(!1));
1046
+ e.key === "Escape" && (e.preventDefault(), v(!1));
1035
1047
  };
1036
1048
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
1037
1049
  }, []), /* @__PURE__ */ m("div", {
1038
- className: A.wrapper,
1039
- ref: v,
1050
+ className: [M.wrapper, c].filter(Boolean).join(" "),
1051
+ ref: y,
1040
1052
  style: o,
1041
1053
  children: [
1042
- f && /* @__PURE__ */ p("div", {
1043
- className: A.error,
1044
- children: /* @__PURE__ */ p(w, {
1054
+ h && /* @__PURE__ */ p("div", {
1055
+ className: M.error,
1056
+ children: /* @__PURE__ */ p(D, {
1045
1057
  color: "#c56565",
1046
1058
  size: "1.5rem",
1047
1059
  children: "Error loading image"
1048
1060
  })
1049
1061
  }),
1050
1062
  /* @__PURE__ */ m("div", {
1051
- className: A["image-frame"],
1063
+ className: M["image-frame"],
1052
1064
  style: o,
1053
- children: [c && /* @__PURE__ */ p("div", {
1054
- className: A.fallback,
1065
+ children: [l && /* @__PURE__ */ p("div", {
1066
+ className: M.fallback,
1055
1067
  style: {
1056
1068
  aspectRatio: i && a ? `${i} / ${a}` : "1200 / 630",
1057
1069
  width: i ? `${i}px` : void 0,
1058
1070
  height: a ? `${a}px` : void 0
1059
1071
  }
1060
1072
  }), /* @__PURE__ */ p("img", {
1061
- className: n ? A["image-block"] : A["image-inline"],
1073
+ className: n ? M["image-block"] : M["image-inline"],
1062
1074
  src: e,
1063
1075
  alt: t,
1064
1076
  width: i,
1065
1077
  height: a,
1066
1078
  onClick: () => {
1067
- r && _(!0);
1079
+ r && v(!0);
1068
1080
  },
1069
1081
  style: {
1070
1082
  "--width": i ? `${i}px` : void 0,
1071
1083
  "--height": a ? `${a}px` : void 0,
1072
1084
  cursor: r ? "zoom-in" : void 0,
1073
- opacity: +(!c && !f),
1074
- pointerEvents: !c && !f ? void 0 : "none"
1085
+ opacity: +(!l && !h),
1086
+ pointerEvents: !l && !h ? void 0 : "none"
1075
1087
  }
1076
1088
  })]
1077
1089
  }),
1078
- n && !c && t != null && t.trim() !== "" && /* @__PURE__ */ m("div", {
1079
- className: A["alt-container"],
1080
- children: [/* @__PURE__ */ p(x, {
1081
- d: He,
1090
+ n && !l && t != null && t.trim() !== "" && /* @__PURE__ */ m("div", {
1091
+ className: M["alt-container"],
1092
+ children: [/* @__PURE__ */ p(w, {
1093
+ d: ze,
1082
1094
  color: "#b69545",
1083
1095
  style: { flexShrink: 0 }
1084
1096
  }), /* @__PURE__ */ p("div", {
1085
- className: A["alt-text"],
1086
- children: /* @__PURE__ */ p(w, {
1097
+ className: M["alt-text"],
1098
+ children: /* @__PURE__ */ p(D, {
1087
1099
  size: "0.8rem",
1088
1100
  children: t
1089
1101
  })
1090
1102
  })]
1091
1103
  }),
1092
- g && /* @__PURE__ */ p("div", {
1093
- className: A.modal,
1094
- onClick: () => _(!1),
1104
+ _ && /* @__PURE__ */ p("div", {
1105
+ className: M.modal,
1106
+ onClick: () => v(!1),
1095
1107
  children: /* @__PURE__ */ p("img", {
1096
- className: A["modal-image"],
1108
+ className: M["modal-image"],
1097
1109
  src: e,
1098
1110
  alt: t,
1099
1111
  width: i,
@@ -1102,7 +1114,7 @@ var pt = (e) => {
1102
1114
  })
1103
1115
  ]
1104
1116
  });
1105
- }, M = {
1117
+ }, P = {
1106
1118
  file: "_file_sk4pw_1",
1107
1119
  "left-container": "_left-container_sk4pw_19",
1108
1120
  "right-container": "_right-container_sk4pw_26",
@@ -1110,49 +1122,49 @@ var pt = (e) => {
1110
1122
  };
1111
1123
  //#endregion
1112
1124
  //#region src/components/media/ElmFile.tsx
1113
- function qt(e) {
1125
+ function Kt(e) {
1114
1126
  let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
1115
1127
  return t.length > 0 ? t[t.length - 1] : null;
1116
1128
  }
1117
- var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1118
- let i = a(async () => {
1129
+ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
1130
+ let o = a(async () => {
1119
1131
  let n;
1120
1132
  try {
1121
1133
  let r = await fetch(t);
1122
1134
  if (!r.ok) throw Error("Failed to download file");
1123
1135
  let i = await r.blob();
1124
- n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ?? qt(t) ?? "file", n.click();
1136
+ n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ?? Kt(t) ?? "file", n.click();
1125
1137
  } catch (e) {
1126
1138
  console.error("ERROR:", e);
1127
1139
  } finally {
1128
1140
  n && URL.revokeObjectURL(n.href);
1129
1141
  }
1130
- }, [t, e]), o = e ?? qt(t) ?? "unknown file";
1142
+ }, [t, e]), s = e ?? Kt(t) ?? "unknown file";
1131
1143
  return /* @__PURE__ */ m("div", {
1132
- className: M.file,
1144
+ className: [P.file, i].filter(Boolean).join(" "),
1133
1145
  style: r,
1134
1146
  children: [/* @__PURE__ */ m("div", {
1135
- className: M["left-container"],
1136
- children: [/* @__PURE__ */ p(x, {
1137
- d: Ee,
1147
+ className: P["left-container"],
1148
+ children: [/* @__PURE__ */ p(w, {
1149
+ d: Ce,
1138
1150
  size: "1.25em"
1139
- }), /* @__PURE__ */ p(w, { children: o })]
1151
+ }), /* @__PURE__ */ p(D, { children: s })]
1140
1152
  }), /* @__PURE__ */ m("div", {
1141
- className: M["right-container"],
1153
+ className: P["right-container"],
1142
1154
  children: [n && /* @__PURE__ */ p("span", {
1143
1155
  style: { opacity: .6 },
1144
- children: /* @__PURE__ */ p(w, { children: n })
1156
+ children: /* @__PURE__ */ p(D, { children: n })
1145
1157
  }), /* @__PURE__ */ p("div", {
1146
- className: M["download-icon"],
1147
- onClick: i,
1148
- children: /* @__PURE__ */ p(x, {
1149
- d: xe,
1158
+ className: P["download-icon"],
1159
+ onClick: o,
1160
+ children: /* @__PURE__ */ p(w, {
1161
+ d: ve,
1150
1162
  size: "1.25em"
1151
1163
  })
1152
1164
  })]
1153
1165
  })]
1154
1166
  });
1155
- }, N = {
1167
+ }, F = {
1156
1168
  parent: "_parent_1hx4v_1",
1157
1169
  bookmark: "_bookmark_1hx4v_23",
1158
1170
  image: "_image_1hx4v_42",
@@ -1161,25 +1173,25 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1161
1173
  date: "_date_1hx4v_81",
1162
1174
  link: "_link_1hx4v_90",
1163
1175
  favicon: "_favicon_1hx4v_100"
1164
- }, Yt = ({ hideUrl: e = !1, openInNewTab: t = !0, title: n, description: r = "No description provided", image: i, url: a, createdAt: o, updatedAt: s, onClick: c, favicon: l, style: u }) => {
1165
- let [h, g] = d(!1), _ = (e) => {
1176
+ }, Jt = ({ hideUrl: e = !1, openInNewTab: t = !0, title: n, description: r = "No description provided", image: i, url: a, createdAt: o, updatedAt: s, onClick: c, favicon: l, style: u, className: h }) => {
1177
+ let [g, _] = d(!1), v = (e) => {
1166
1178
  c && (e.preventDefault(), c());
1167
- }, v = r != null && r.length > 100 ? r.slice(0, 100) + "..." : r;
1179
+ }, y = r != null && r.length > 100 ? r.slice(0, 100) + "..." : r;
1168
1180
  return /* @__PURE__ */ p("div", {
1169
- className: N.parent,
1181
+ className: [F.parent, h].filter(Boolean).join(" "),
1170
1182
  style: u,
1171
1183
  children: /* @__PURE__ */ m("a", {
1172
- className: N.bookmark,
1184
+ className: F.bookmark,
1173
1185
  href: a,
1174
1186
  target: t ? "_blank" : void 0,
1175
1187
  rel: "noopener noreferrer",
1176
- onClick: _,
1177
- children: [i != null && !h && /* @__PURE__ */ p("div", {
1178
- className: N.image,
1188
+ onClick: v,
1189
+ children: [i != null && !g && /* @__PURE__ */ p("div", {
1190
+ className: F.image,
1179
1191
  children: /* @__PURE__ */ p("img", {
1180
1192
  src: i,
1181
1193
  alt: "OGP Image",
1182
- onError: () => g(!0),
1194
+ onError: () => _(!0),
1183
1195
  style: {
1184
1196
  width: "100%",
1185
1197
  height: "100%",
@@ -1187,41 +1199,41 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1187
1199
  }
1188
1200
  })
1189
1201
  }), /* @__PURE__ */ m("div", {
1190
- className: N.typography,
1202
+ className: F.typography,
1191
1203
  children: [
1192
1204
  /* @__PURE__ */ p("div", {
1193
- className: N.title,
1194
- children: /* @__PURE__ */ p(w, {
1205
+ className: F.title,
1206
+ children: /* @__PURE__ */ p(D, {
1195
1207
  bold: !0,
1196
1208
  children: n ?? "No title provided"
1197
1209
  })
1198
1210
  }),
1199
- /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(w, {
1211
+ /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(D, {
1200
1212
  size: "0.8rem",
1201
1213
  children: /* @__PURE__ */ p("span", {
1202
1214
  style: { opacity: .6 },
1203
- children: v
1215
+ children: y
1204
1216
  })
1205
1217
  }) }),
1206
1218
  (o != null || s != null) && /* @__PURE__ */ m("div", {
1207
- className: N.date,
1208
- children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(x, {
1209
- d: ue,
1219
+ className: F.date,
1220
+ children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(w, {
1221
+ d: ce,
1210
1222
  size: "1em"
1211
- }), /* @__PURE__ */ p(w, {
1223
+ }), /* @__PURE__ */ p(D, {
1212
1224
  size: "0.8rem",
1213
1225
  children: o
1214
- })] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(x, {
1215
- d: de,
1226
+ })] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(w, {
1227
+ d: le,
1216
1228
  size: "1em"
1217
- }), /* @__PURE__ */ p(w, {
1229
+ }), /* @__PURE__ */ p(D, {
1218
1230
  size: "0.8rem",
1219
1231
  children: s
1220
1232
  })] })]
1221
1233
  }),
1222
1234
  !e && a != null && /* @__PURE__ */ m("div", {
1223
- className: N.link,
1224
- children: [l && /* @__PURE__ */ p(b, { src: l }), /* @__PURE__ */ p(w, {
1235
+ className: F.link,
1236
+ children: [l && /* @__PURE__ */ p(C, { src: l }), /* @__PURE__ */ p(D, {
1225
1237
  size: "0.8rem",
1226
1238
  color: "#6987b8",
1227
1239
  children: a
@@ -1231,152 +1243,157 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1231
1243
  })]
1232
1244
  })
1233
1245
  });
1234
- }, P = {
1246
+ }, I = {
1235
1247
  container: "_container_1r6mu_1",
1236
1248
  "link-container": "_link-container_1r6mu_10",
1237
1249
  text: "_text_1r6mu_36"
1238
- }, Xt = ({ links: e, style: n }) => {
1239
- let r = u(null), [i, a] = d(!1);
1250
+ }, Yt = ({ links: e, style: n, className: r }) => {
1251
+ let i = u(null), [a, o] = d(!1);
1240
1252
  return s(() => {
1241
- let e = r.current;
1253
+ let e = i.current;
1242
1254
  if (!e) return;
1243
1255
  let t = new IntersectionObserver(([e]) => {
1244
- a(e.isIntersecting);
1256
+ o(e.isIntersecting);
1245
1257
  });
1246
1258
  return t.observe(e), () => t.disconnect();
1247
1259
  }, []), /* @__PURE__ */ p("nav", {
1248
- className: P.container,
1249
- ref: r,
1260
+ className: [I.container, r].filter(Boolean).join(" "),
1261
+ ref: i,
1250
1262
  style: {
1251
- "--opacity": +!!i,
1263
+ "--opacity": +!!a,
1252
1264
  ...n
1253
1265
  },
1254
1266
  children: e.map((n, r) => /* @__PURE__ */ m(t.Fragment, { children: [/* @__PURE__ */ m("div", {
1255
- className: P["link-container"],
1267
+ className: I["link-container"],
1256
1268
  onClick: n.onClick,
1257
1269
  children: [/* @__PURE__ */ p("span", {
1258
- className: P.text,
1270
+ className: I.text,
1259
1271
  style: { "--delay": `${r * 100}ms` },
1260
- children: /* @__PURE__ */ p(x, {
1261
- d: r === 0 ? Ae : r === e.length - 1 ? ae : De,
1272
+ children: /* @__PURE__ */ p(w, {
1273
+ d: r === 0 ? De : r === e.length - 1 ? re : we,
1262
1274
  size: "1.25em"
1263
1275
  })
1264
1276
  }), /* @__PURE__ */ p("span", {
1265
- className: P.text,
1277
+ className: I.text,
1266
1278
  style: { "--delay": `${r * 100 + 50}ms` },
1267
- children: /* @__PURE__ */ p(w, { children: n.text })
1279
+ children: /* @__PURE__ */ p(D, { children: n.text })
1268
1280
  })]
1269
1281
  }), e.length !== r + 1 && /* @__PURE__ */ p("span", {
1270
- className: P.text,
1282
+ className: I.text,
1271
1283
  style: { "--delay": `${r * 100 + 100}ms` },
1272
- children: /* @__PURE__ */ p(x, {
1273
- d: he,
1284
+ children: /* @__PURE__ */ p(w, {
1285
+ d: pe,
1274
1286
  size: "1em",
1275
1287
  color: "#b69545"
1276
1288
  })
1277
1289
  })] }, r))
1278
1290
  });
1279
- }, F = {
1291
+ }, L = {
1280
1292
  wrapper: "_wrapper_1tlqa_1",
1281
1293
  "wrapper--visible": "_wrapper--visible_1tlqa_33",
1282
1294
  partial: "_partial_1tlqa_63",
1283
1295
  move: "_move_1tlqa_1",
1284
1296
  text: "_text_1tlqa_104"
1285
- }, Zt = ({ position: e = "right", style: t }) => {
1286
- let [n, r] = d(!1);
1297
+ }, Xt = ({ position: e = "right", style: t, className: n }) => {
1298
+ let [r, i] = d(!1);
1287
1299
  s(() => {
1288
1300
  let e = () => {
1289
- r(window.scrollY > 100);
1301
+ i(window.scrollY > 100);
1290
1302
  };
1291
1303
  return window.addEventListener("scroll", e, { passive: !0 }), e(), () => window.removeEventListener("scroll", e);
1292
1304
  }, []);
1293
- let i = () => {
1305
+ let a = () => {
1294
1306
  window.scrollTo({
1295
1307
  top: 0,
1296
1308
  behavior: "smooth"
1297
1309
  });
1298
1310
  };
1299
1311
  return /* @__PURE__ */ m("nav", {
1300
- className: `${F.wrapper} ${n ? F["wrapper--visible"] : ""}`,
1312
+ className: [
1313
+ L.wrapper,
1314
+ r ? L["wrapper--visible"] : void 0,
1315
+ n
1316
+ ].filter(Boolean).join(" "),
1301
1317
  style: {
1302
1318
  "--size": "64px",
1303
1319
  left: e === "left" ? "0" : "auto",
1304
1320
  right: e === "right" ? "0" : "auto",
1305
1321
  ...t
1306
1322
  },
1307
- onClick: i,
1323
+ onClick: a,
1308
1324
  children: [
1309
1325
  /* @__PURE__ */ p("div", {
1310
1326
  "aria-hidden": "true",
1311
- className: F.partial
1327
+ className: L.partial
1312
1328
  }),
1313
1329
  /* @__PURE__ */ p("div", {
1314
1330
  "aria-hidden": "true",
1315
- className: F.partial
1331
+ className: L.partial
1316
1332
  }),
1317
1333
  /* @__PURE__ */ p("div", {
1318
1334
  "aria-hidden": "true",
1319
- className: F.partial
1335
+ className: L.partial
1320
1336
  }),
1321
1337
  /* @__PURE__ */ p("span", {
1322
- className: F.text,
1338
+ className: L.text,
1323
1339
  children: "Back to Top"
1324
1340
  })
1325
1341
  ]
1326
1342
  });
1327
- }, Qt = {
1343
+ }, Zt = {
1328
1344
  toc: "_toc_eubcy_1",
1329
1345
  link: "_link_eubcy_15"
1330
- }, $t = ({ headings: e, style: t }) => /* @__PURE__ */ p("nav", {
1331
- className: Qt.toc,
1346
+ }, Qt = ({ headings: e, style: t, className: n }) => /* @__PURE__ */ p("nav", {
1347
+ className: [Zt.toc, n].filter(Boolean).join(" "),
1332
1348
  style: t,
1333
1349
  children: e.map((e, t) => /* @__PURE__ */ m("a", {
1334
- className: Qt.link,
1350
+ className: Zt.link,
1335
1351
  href: `#${e.id ?? e.text}`,
1336
1352
  style: { "--padding-left": `${e.level * .5}rem` },
1337
1353
  children: [
1338
- /* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(w, {
1354
+ /* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(D, {
1339
1355
  size: "0.6rem",
1340
1356
  color: "#6987b8",
1341
1357
  children: `H${e.level}`
1342
1358
  }) }),
1343
- /* @__PURE__ */ p(w, { children: e.text }),
1344
- /* @__PURE__ */ p(x, {
1345
- d: Ve,
1359
+ /* @__PURE__ */ p(D, { children: e.text }),
1360
+ /* @__PURE__ */ p(w, {
1361
+ d: Re,
1346
1362
  size: "1em",
1347
1363
  color: "#6987b8"
1348
1364
  })
1349
1365
  ]
1350
1366
  }, t))
1351
- }), en = { "block-fallback": "_block-fallback_adya7_1" }, tn = {
1367
+ }), $t = { "block-fallback": "_block-fallback_adya7_1" }, en = {
1352
1368
  "rectangle-wave": "_rectangle-wave_gxedo_21",
1353
1369
  "elm-rectangle-wave": "_elm-rectangle-wave_gxedo_1"
1354
- }, nn = (e) => /* @__PURE__ */ p("div", {
1370
+ }, tn = (e) => /* @__PURE__ */ p("div", {
1355
1371
  "aria-hidden": !0,
1356
- className: tn["rectangle-wave"],
1372
+ className: [en["rectangle-wave"], e.className].filter(Boolean).join(" "),
1357
1373
  style: e.style
1358
- }), rn = (e) => {
1374
+ }), nn = (e) => {
1359
1375
  let { height: t = "16rem", style: n } = e;
1360
1376
  return /* @__PURE__ */ m("div", {
1361
- className: en["block-fallback"],
1377
+ className: [$t["block-fallback"], e.className].filter(Boolean).join(" "),
1362
1378
  style: {
1363
1379
  "--height": t,
1364
1380
  ...n
1365
1381
  },
1366
- children: [/* @__PURE__ */ p(S, {}), /* @__PURE__ */ p(nn, {})]
1382
+ children: [/* @__PURE__ */ p(T, {}), /* @__PURE__ */ p(tn, {})]
1367
1383
  });
1368
- }, an = {
1384
+ }, rn = {
1369
1385
  circle: "_circle_ycu2l_19",
1370
1386
  "draw-line": "_draw-line_ycu2l_1",
1371
1387
  rotate: "_rotate_ycu2l_1"
1372
- }, on = (e) => {
1388
+ }, an = (e) => {
1373
1389
  let { radius: t = 16, weight: n = 2, style: r } = e;
1374
1390
  return /* @__PURE__ */ p("svg", {
1391
+ className: e.className,
1375
1392
  height: t * 2,
1376
1393
  width: t * 2,
1377
1394
  style: r,
1378
1395
  children: /* @__PURE__ */ p("circle", {
1379
- className: an.circle,
1396
+ className: rn.circle,
1380
1397
  cx: t,
1381
1398
  cy: t,
1382
1399
  r: t - n,
@@ -1384,34 +1401,34 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1384
1401
  strokeWidth: n
1385
1402
  })
1386
1403
  });
1387
- }, I = {
1404
+ }, R = {
1388
1405
  unsupported: "_unsupported_1xu4c_1",
1389
1406
  message: "_message_1xu4c_13",
1390
1407
  icon: "_icon_1xu4c_20",
1391
1408
  details: "_details_1xu4c_24"
1392
- }, sn = (e) => /* @__PURE__ */ m("div", {
1393
- className: I.unsupported,
1409
+ }, on = (e) => /* @__PURE__ */ m("div", {
1410
+ className: [R.unsupported, e.className].filter(Boolean).join(" "),
1394
1411
  style: e.style,
1395
1412
  children: [/* @__PURE__ */ m("div", {
1396
- className: I.message,
1413
+ className: R.message,
1397
1414
  children: [/* @__PURE__ */ p("svg", {
1398
1415
  viewBox: "0 0 24 24",
1399
1416
  width: "1.25rem",
1400
1417
  height: "1.25rem",
1401
- className: I.icon,
1402
- children: /* @__PURE__ */ p("path", { d: je })
1403
- }), /* @__PURE__ */ p(w, {
1418
+ className: R.icon,
1419
+ children: /* @__PURE__ */ p("path", { d: Oe })
1420
+ }), /* @__PURE__ */ p(D, {
1404
1421
  color: "#868e9c",
1405
1422
  children: "UNSUPPORTED BLOCK"
1406
1423
  })]
1407
1424
  }), e.details && /* @__PURE__ */ p("div", {
1408
- className: I.details,
1409
- children: /* @__PURE__ */ p(w, {
1425
+ className: R.details,
1426
+ children: /* @__PURE__ */ p(D, {
1410
1427
  color: "#868e9c",
1411
1428
  children: e.details
1412
1429
  })
1413
1430
  })]
1414
- }), L = {
1431
+ }), z = {
1415
1432
  button: "_button_c0mex_1",
1416
1433
  "button-ornament": "_button-ornament_c0mex_29",
1417
1434
  normal: "_normal_c0mex_40",
@@ -1421,7 +1438,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1421
1438
  flex: "_flex_c0mex_95",
1422
1439
  ripple: "_ripple_c0mex_117",
1423
1440
  "button-ripple": "_button-ripple_c0mex_1"
1424
- }, cn = ({ loading: e = !1, block: t = !1, disabled: n = !1, primary: r = !1, ...i }) => {
1441
+ }, sn = ({ loading: e = !1, block: t = !1, disabled: n = !1, primary: r = !1, ...i }) => {
1425
1442
  let [o, c] = d(!1), l = u(void 0), { onClick: f } = i, h = a(() => {
1426
1443
  !e && !n && f && (c(!0), l.current = window.setTimeout(() => c(!1), 300), f());
1427
1444
  }, [
@@ -1433,11 +1450,12 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1433
1450
  l.current && clearTimeout(l.current);
1434
1451
  }, []), /* @__PURE__ */ m("button", {
1435
1452
  className: [
1436
- L.button,
1437
- !e && !n ? L.enable : "",
1438
- i.color ? L.colored : "",
1439
- !i.color && !r ? L.normal : "",
1440
- !i.color && r ? L.primary : ""
1453
+ z.button,
1454
+ !e && !n ? z.enable : "",
1455
+ i.color ? z.colored : "",
1456
+ !i.color && !r ? z.normal : "",
1457
+ !i.color && r ? z.primary : "",
1458
+ i.className
1441
1459
  ].filter(Boolean).join(" "),
1442
1460
  style: {
1443
1461
  display: t ? "flex" : "inline-flex",
@@ -1449,15 +1467,15 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1449
1467
  },
1450
1468
  onClick: h,
1451
1469
  children: [
1452
- o && /* @__PURE__ */ p("div", { className: L.ripple }),
1453
- e ? /* @__PURE__ */ p(S, { size: "1.5rem" }) : /* @__PURE__ */ p("span", {
1454
- className: L.flex,
1470
+ o && /* @__PURE__ */ p("div", { className: z.ripple }),
1471
+ e ? /* @__PURE__ */ p(T, { size: "1.5rem" }) : /* @__PURE__ */ p("span", {
1472
+ className: z.flex,
1455
1473
  children: i.children
1456
1474
  }),
1457
- /* @__PURE__ */ p("div", { className: L["button-ornament"] })
1475
+ /* @__PURE__ */ p("div", { className: z["button-ornament"] })
1458
1476
  ]
1459
1477
  });
1460
- }, R = {
1478
+ }, B = {
1461
1479
  container: "_container_12edl_1",
1462
1480
  "container-disable": "_container-disable_12edl_14",
1463
1481
  checkbox: "_checkbox_12edl_23",
@@ -1467,7 +1485,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1467
1485
  loading: "_loading_12edl_48",
1468
1486
  "check-line": "_check-line_12edl_67",
1469
1487
  "elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_12edl_1"
1470
- }, ln = ({ loading: e = !1, disable: t = !1, checked: n = !1, ...r }) => {
1488
+ }, cn = ({ loading: e = !1, disable: t = !1, checked: n = !1, ...r }) => {
1471
1489
  let { onChange: i } = r, o = a(() => {
1472
1490
  !e && !t && i && i(!n);
1473
1491
  }, [
@@ -1475,10 +1493,14 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1475
1493
  t,
1476
1494
  n,
1477
1495
  i
1478
- ]), s = [R.container, t ? R["container-disable"] : ""].filter(Boolean).join(" "), c = [
1479
- R.rect,
1480
- n ? R["rect-checked"] : "",
1481
- e ? R["rect-loading"] : ""
1496
+ ]), s = [
1497
+ B.container,
1498
+ t ? B["container-disable"] : "",
1499
+ r.className
1500
+ ].filter(Boolean).join(" "), c = [
1501
+ B.rect,
1502
+ n ? B["rect-checked"] : "",
1503
+ e ? B["rect-loading"] : ""
1482
1504
  ].filter(Boolean).join(" ");
1483
1505
  return /* @__PURE__ */ p("div", {
1484
1506
  className: s,
@@ -1493,13 +1515,13 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1493
1515
  children: [/* @__PURE__ */ m("svg", {
1494
1516
  width: "24",
1495
1517
  height: "24",
1496
- className: R.checkbox,
1518
+ className: B.checkbox,
1497
1519
  children: [
1498
1520
  /* @__PURE__ */ m("circle", {
1499
1521
  cx: "0",
1500
1522
  cy: "0",
1501
1523
  r: "2",
1502
- className: R.loading,
1524
+ className: B.loading,
1503
1525
  style: { opacity: +!!e },
1504
1526
  children: [/* @__PURE__ */ p("animate", {
1505
1527
  attributeName: "cx",
@@ -1521,7 +1543,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1521
1543
  cx: "20",
1522
1544
  cy: "20",
1523
1545
  r: "2",
1524
- className: R.loading,
1546
+ className: B.loading,
1525
1547
  style: { opacity: +!!e },
1526
1548
  children: [/* @__PURE__ */ p("animate", {
1527
1549
  attributeName: "cx",
@@ -1548,7 +1570,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1548
1570
  strokeWidth: "0.8"
1549
1571
  }),
1550
1572
  n && /* @__PURE__ */ p("polyline", {
1551
- className: R["check-line"],
1573
+ className: B["check-line"],
1552
1574
  points: "5,12 10,17 19,8",
1553
1575
  strokeWidth: "1.5",
1554
1576
  fill: "transparent"
@@ -1613,7 +1635,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1613
1635
  }), /* @__PURE__ */ p("span", { children: r.label })]
1614
1636
  })
1615
1637
  });
1616
- }, z = {
1638
+ }, V = {
1617
1639
  wrapper: "_wrapper_3ipdq_1",
1618
1640
  active: "_active_3ipdq_29",
1619
1641
  header: "_header_3ipdq_33",
@@ -1625,7 +1647,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1625
1647
  pulldown: "_pulldown_3ipdq_85",
1626
1648
  option: "_option_3ipdq_105",
1627
1649
  description: "_description_3ipdq_127"
1628
- }, un = ({ disabled: e = !1, loading: t = !1, ...n }) => {
1650
+ }, ln = ({ disabled: e = !1, loading: t = !1, ...n }) => {
1629
1651
  let [r, i] = d(!1), o = u(null), c = a(() => {
1630
1652
  !e && !t && i((e) => !e);
1631
1653
  }, [e, t]), { options: l, onSelect: f } = n, h = a((e) => {
@@ -1639,7 +1661,11 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1639
1661
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1640
1662
  }, []), /* @__PURE__ */ m("div", {
1641
1663
  ref: o,
1642
- className: [z.wrapper, r ? z.active : ""].filter(Boolean).join(" "),
1664
+ className: [
1665
+ V.wrapper,
1666
+ r ? V.active : "",
1667
+ n.className
1668
+ ].filter(Boolean).join(" "),
1643
1669
  style: {
1644
1670
  backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
1645
1671
  "--highlight-color": r ? "#bfa056" : void 0,
@@ -1647,46 +1673,46 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1647
1673
  },
1648
1674
  onClick: c,
1649
1675
  children: [/* @__PURE__ */ p("div", {
1650
- className: z.header,
1676
+ className: V.header,
1651
1677
  children: /* @__PURE__ */ p("span", {
1652
- className: z.label,
1678
+ className: V.label,
1653
1679
  children: n.label
1654
1680
  })
1655
1681
  }), /* @__PURE__ */ p("div", {
1656
- className: z.body,
1682
+ className: V.body,
1657
1683
  children: /* @__PURE__ */ m("div", {
1658
- className: z.select,
1684
+ className: V.select,
1659
1685
  children: [
1660
1686
  /* @__PURE__ */ p("div", {
1661
- className: z.selected,
1687
+ className: V.selected,
1662
1688
  children: n.selectedOption ? /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", { children: n.selectedOption.label }), n.selectedOption.description && /* @__PURE__ */ p("span", {
1663
- className: z.description,
1689
+ className: V.description,
1664
1690
  children: n.selectedOption.description
1665
1691
  })] }) : /* @__PURE__ */ m("div", {
1666
- className: z.fallback,
1667
- children: [/* @__PURE__ */ p(x, { d: se }), /* @__PURE__ */ p("span", { children: n.placeholder ?? "Select an option" })]
1692
+ className: V.fallback,
1693
+ children: [/* @__PURE__ */ p(w, { d: ae }), /* @__PURE__ */ p("span", { children: n.placeholder ?? "Select an option" })]
1668
1694
  })
1669
1695
  }),
1670
- /* @__PURE__ */ p(x, {
1671
- d: Ve,
1696
+ /* @__PURE__ */ p(w, {
1697
+ d: Re,
1672
1698
  size: "1.5rem"
1673
1699
  }),
1674
1700
  r && /* @__PURE__ */ p("div", {
1675
- className: z.pulldown,
1701
+ className: V.pulldown,
1676
1702
  children: n.options.map((e) => /* @__PURE__ */ m("div", {
1677
- className: z.option,
1703
+ className: V.option,
1678
1704
  onClick: (t) => {
1679
1705
  t.stopPropagation(), h(e.id);
1680
1706
  },
1681
1707
  children: [
1682
- /* @__PURE__ */ p(x, {
1683
- d: he,
1708
+ /* @__PURE__ */ p(w, {
1709
+ d: pe,
1684
1710
  color: "#868e9c",
1685
1711
  size: "0.75em"
1686
1712
  }),
1687
1713
  /* @__PURE__ */ p("span", { children: e.label }),
1688
1714
  e.description && /* @__PURE__ */ p("span", {
1689
- className: z.description,
1715
+ className: V.description,
1690
1716
  children: e.description
1691
1717
  })
1692
1718
  ]
@@ -1696,7 +1722,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1696
1722
  })
1697
1723
  })]
1698
1724
  });
1699
- }, B = {
1725
+ }, H = {
1700
1726
  switch: "_switch_8t362_1",
1701
1727
  bar: "_bar_8t362_5",
1702
1728
  "bar-checked": "_bar-checked_8t362_21",
@@ -1704,7 +1730,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1704
1730
  circle: "_circle_8t362_30",
1705
1731
  "circle-checked": "_circle-checked_8t362_45",
1706
1732
  "circle-disabled": "_circle-disabled_8t362_49"
1707
- }, dn = ({ color: e = "#bfa056", size: t = "18px", disabled: n = !1, checked: r = !1, ...i }) => {
1733
+ }, un = ({ color: e = "#bfa056", size: t = "18px", disabled: n = !1, checked: r = !1, ...i }) => {
1708
1734
  let { onChange: o } = i, s = a(() => {
1709
1735
  !n && o && o(!r);
1710
1736
  }, [
@@ -1712,15 +1738,16 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1712
1738
  r,
1713
1739
  o
1714
1740
  ]), c = [
1715
- B.bar,
1716
- r ? B["bar-checked"] : "",
1717
- n ? B["bar-disabled"] : ""
1741
+ H.bar,
1742
+ r ? H["bar-checked"] : "",
1743
+ n ? H["bar-disabled"] : ""
1718
1744
  ].filter(Boolean).join(" "), l = [
1719
- B.circle,
1720
- r ? B["circle-checked"] : "",
1721
- n ? B["circle-disabled"] : ""
1745
+ H.circle,
1746
+ r ? H["circle-checked"] : "",
1747
+ n ? H["circle-disabled"] : ""
1722
1748
  ].filter(Boolean).join(" ");
1723
1749
  return /* @__PURE__ */ m("div", {
1750
+ className: i.className,
1724
1751
  onClick: s,
1725
1752
  style: {
1726
1753
  "--color": e,
@@ -1730,7 +1757,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1730
1757
  ...i.style
1731
1758
  },
1732
1759
  children: [/* @__PURE__ */ p("input", {
1733
- className: B.switch,
1760
+ className: H.switch,
1734
1761
  type: "checkbox",
1735
1762
  checked: r,
1736
1763
  disabled: n,
@@ -1740,7 +1767,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1740
1767
  children: /* @__PURE__ */ p("div", { className: l })
1741
1768
  })]
1742
1769
  });
1743
- }, V = {
1770
+ }, U = {
1744
1771
  loading: "_loading_1y96m_23",
1745
1772
  wrapper: "_wrapper_1y96m_38",
1746
1773
  active: "_active_1y96m_66",
@@ -1754,32 +1781,36 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1754
1781
  suffix: "_suffix_1y96m_159",
1755
1782
  counter: "_counter_1y96m_172",
1756
1783
  "counter-over": "_counter-over_1y96m_177"
1757
- }, fn = {
1758
- text: Ye,
1759
- pen: Ue,
1760
- email: Ce,
1761
- user: y,
1762
- lock: Le,
1763
- key: Me,
1764
- earth: Se,
1765
- tag: Je,
1766
- archive: oe,
1767
- link: Fe,
1768
- search: Be
1769
- }, pn = ({ disabled: e = !1, loading: t = !1, isPassword: n = !1, required: r = !1, value: i = "", ...o }) => {
1770
- let s = c(), l = u(null), [f, h] = d(!1), [g, _] = d(n ? "password" : "text"), { onChange: v } = o, ee = a(() => {
1784
+ }, dn = {
1785
+ text: Ke,
1786
+ pen: Be,
1787
+ email: be,
1788
+ user: b,
1789
+ lock: Pe,
1790
+ key: ke,
1791
+ earth: ye,
1792
+ tag: Ge,
1793
+ archive: ie,
1794
+ link: Me,
1795
+ search: Le
1796
+ }, fn = ({ disabled: e = !1, loading: t = !1, isPassword: n = !1, required: r = !1, value: i = "", ...o }) => {
1797
+ let s = c(), l = u(null), [f, h] = d(!1), [g, _] = d(n ? "password" : "text"), { onChange: v } = o, y = a(() => {
1771
1798
  !t && !e && v && v("");
1772
1799
  }, [
1773
1800
  t,
1774
1801
  e,
1775
1802
  v
1776
- ]), te = a(() => {
1803
+ ]), ee = a(() => {
1777
1804
  !t && !e && _((e) => e === "text" ? "password" : "text");
1778
- }, [t, e]), y = a((e) => (t) => {
1805
+ }, [t, e]), b = a((e) => (t) => {
1779
1806
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
1780
1807
  }, []);
1781
1808
  return /* @__PURE__ */ m("div", {
1782
- className: [V.wrapper, f ? V.active : ""].filter(Boolean).join(" "),
1809
+ className: [
1810
+ U.wrapper,
1811
+ f ? U.active : "",
1812
+ o.className
1813
+ ].filter(Boolean).join(" "),
1783
1814
  style: {
1784
1815
  backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
1785
1816
  "--highlight-color": f ? "#bfa056" : void 0,
@@ -1787,16 +1818,16 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1787
1818
  },
1788
1819
  children: [
1789
1820
  /* @__PURE__ */ m("div", {
1790
- className: V.header,
1821
+ className: U.header,
1791
1822
  children: [/* @__PURE__ */ m("label", {
1792
1823
  htmlFor: s,
1793
- className: V.label,
1824
+ className: U.label,
1794
1825
  children: [/* @__PURE__ */ p("span", { children: o.label }), r && /* @__PURE__ */ p("span", {
1795
- className: V.required,
1826
+ className: U.required,
1796
1827
  children: "*"
1797
1828
  })]
1798
1829
  }), o.maxLength != null && /* @__PURE__ */ m("span", {
1799
- className: [V.counter, i.length > o.maxLength ? V["counter-over"] : ""].filter(Boolean).join(" "),
1830
+ className: [U.counter, i.length > o.maxLength ? U["counter-over"] : ""].filter(Boolean).join(" "),
1800
1831
  children: [
1801
1832
  i.length,
1802
1833
  " / ",
@@ -1805,10 +1836,10 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1805
1836
  })]
1806
1837
  }),
1807
1838
  /* @__PURE__ */ m("div", {
1808
- className: V.body,
1839
+ className: U.body,
1809
1840
  children: [
1810
- o.icon && /* @__PURE__ */ p(x, {
1811
- d: fn[o.icon],
1841
+ o.icon && /* @__PURE__ */ p(w, {
1842
+ d: dn[o.icon],
1812
1843
  size: "1.5rem",
1813
1844
  color: "gray"
1814
1845
  }),
@@ -1816,7 +1847,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1816
1847
  id: s,
1817
1848
  ref: l,
1818
1849
  type: g,
1819
- className: V.input,
1850
+ className: U.input,
1820
1851
  placeholder: o.placeholder,
1821
1852
  value: i,
1822
1853
  onChange: (e) => v?.(e.target.value),
@@ -1827,32 +1858,32 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1827
1858
  "aria-required": r
1828
1859
  }),
1829
1860
  /* @__PURE__ */ m("div", {
1830
- className: V["icon-box"],
1861
+ className: U["icon-box"],
1831
1862
  children: [
1832
1863
  o.suffix != null && /* @__PURE__ */ p("span", {
1833
- className: V.suffix,
1864
+ className: U.suffix,
1834
1865
  children: o.suffix
1835
1866
  }),
1836
1867
  /* @__PURE__ */ p("div", {
1837
- className: V.icon,
1838
- onClick: te,
1839
- onKeyDown: y(te),
1868
+ className: U.icon,
1869
+ onClick: ee,
1870
+ onKeyDown: b(ee),
1840
1871
  role: "button",
1841
1872
  tabIndex: 0,
1842
- children: /* @__PURE__ */ p(x, {
1843
- d: g === "text" ? Te : we,
1873
+ children: /* @__PURE__ */ p(w, {
1874
+ d: g === "text" ? Se : xe,
1844
1875
  size: "1.75em",
1845
1876
  color: "gray"
1846
1877
  })
1847
1878
  }),
1848
1879
  /* @__PURE__ */ p("div", {
1849
- className: V.icon,
1850
- onClick: ee,
1851
- onKeyDown: y(ee),
1880
+ className: U.icon,
1881
+ onClick: y,
1882
+ onKeyDown: b(y),
1852
1883
  role: "button",
1853
1884
  tabIndex: 0,
1854
- children: /* @__PURE__ */ p(x, {
1855
- d: le,
1885
+ children: /* @__PURE__ */ p(w, {
1886
+ d: se,
1856
1887
  size: "1.75em",
1857
1888
  color: "gray"
1858
1889
  })
@@ -1862,36 +1893,36 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1862
1893
  ]
1863
1894
  }),
1864
1895
  /* @__PURE__ */ p("div", {
1865
- className: V.loading,
1896
+ className: U.loading,
1866
1897
  style: { opacity: t ? .2 : 0 }
1867
1898
  })
1868
1899
  ]
1869
1900
  });
1870
- }, mn = { validation: "_validation_wuw0j_1" }, hn = ({ validColor: e = "#449763", ...t }) => /* @__PURE__ */ m("div", {
1871
- className: mn.validation,
1901
+ }, pn = { validation: "_validation_wuw0j_1" }, mn = ({ validColor: e = "#449763", ...t }) => /* @__PURE__ */ m("div", {
1902
+ className: [pn.validation, t.className].filter(Boolean).join(" "),
1872
1903
  style: {
1873
1904
  "--opacity": t.isValid ? 1 : .5,
1874
1905
  ...t.style
1875
1906
  },
1876
- children: [/* @__PURE__ */ p(x, {
1877
- d: t.isValid ? pe : me,
1907
+ children: [/* @__PURE__ */ p(w, {
1908
+ d: t.isValid ? de : fe,
1878
1909
  color: t.isValid ? e : void 0
1879
1910
  }), /* @__PURE__ */ p("span", {
1880
1911
  style: { color: t.isValid ? e : void 0 },
1881
1912
  children: t.text
1882
1913
  })]
1883
- }), gn = { column: "_column_12uje_1" }, _n = (e) => /* @__PURE__ */ p("div", {
1884
- className: gn.column,
1914
+ }), hn = { column: "_column_12uje_1" }, gn = (e) => /* @__PURE__ */ p("div", {
1915
+ className: [hn.column, e.className].filter(Boolean).join(" "),
1885
1916
  style: e.style,
1886
1917
  children: e.children
1887
- }), vn = { "column-list": "_column-list_rt1o3_1" }, yn = (e) => /* @__PURE__ */ p("div", {
1888
- className: vn["column-list"],
1918
+ }), _n = { "column-list": "_column-list_rt1o3_1" }, vn = (e) => /* @__PURE__ */ p("div", {
1919
+ className: [_n["column-list"], e.className].filter(Boolean).join(" "),
1889
1920
  style: e.style,
1890
1921
  children: e.children
1891
- }), bn = {
1922
+ }), yn = {
1892
1923
  body: "_body_gd5gc_1",
1893
1924
  button: "_button_gd5gc_5"
1894
- }, H = {
1925
+ }, bn = {
1895
1926
  provider: "_provider_94i7o_1",
1896
1927
  "provider-enter": "_provider-enter_94i7o_19",
1897
1928
  "provider-exit": "_provider-exit_94i7o_23",
@@ -1912,11 +1943,11 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1912
1943
  }, [e, t]), l = a((e) => {
1913
1944
  e.stopPropagation();
1914
1945
  }, []);
1915
- return !o && !r ? null : Xe(/* @__PURE__ */ p("div", {
1916
- className: `${H.provider} ${o ? H["provider-enter"] : H["provider-exit"]}`,
1946
+ return !o && !r ? null : qe(/* @__PURE__ */ p("div", {
1947
+ className: `${bn.provider} ${o ? bn["provider-enter"] : bn["provider-exit"]}`,
1917
1948
  onClick: c,
1918
1949
  children: /* @__PURE__ */ p("div", {
1919
- className: H.modal,
1950
+ className: [bn.modal, n.className].filter(Boolean).join(" "),
1920
1951
  style: {
1921
1952
  "--width": n.width,
1922
1953
  ...n.style
@@ -1945,59 +1976,60 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
1945
1976
  value: o.value,
1946
1977
  onChange: t,
1947
1978
  closeOnClickOutside: e,
1979
+ className: o.className,
1948
1980
  children: /* @__PURE__ */ m("div", { children: [
1949
- /* @__PURE__ */ p(D, {
1981
+ /* @__PURE__ */ p(k, {
1950
1982
  level: 2,
1951
1983
  disableFragmentIdentifier: !0,
1952
1984
  children: o.title
1953
1985
  }),
1954
1986
  /* @__PURE__ */ p("div", {
1955
- className: bn.body,
1987
+ className: yn.body,
1956
1988
  children: o.children
1957
1989
  }),
1958
1990
  /* @__PURE__ */ m("div", {
1959
- className: bn.button,
1960
- children: [/* @__PURE__ */ m(cn, {
1991
+ className: yn.button,
1992
+ children: [/* @__PURE__ */ m(sn, {
1961
1993
  block: !0,
1962
1994
  onClick: l,
1963
1995
  loading: s,
1964
- children: [/* @__PURE__ */ p(x, { d: ce }), /* @__PURE__ */ p("span", { children: "Cancel" })]
1965
- }), /* @__PURE__ */ m(cn, {
1996
+ children: [/* @__PURE__ */ p(w, { d: oe }), /* @__PURE__ */ p("span", { children: "Cancel" })]
1997
+ }), /* @__PURE__ */ m(sn, {
1966
1998
  block: !0,
1967
1999
  onClick: u,
1968
2000
  primary: !0,
1969
2001
  loading: s,
1970
- children: [/* @__PURE__ */ p(x, {
1971
- d: pe,
2002
+ children: [/* @__PURE__ */ p(w, {
2003
+ d: de,
1972
2004
  color: "currentColor"
1973
2005
  }), /* @__PURE__ */ p("span", { children: "Confirm" })]
1974
2006
  })]
1975
2007
  })
1976
2008
  ] })
1977
2009
  });
1978
- }, U = {
2010
+ }, W = {
1979
2011
  window: "_window_l8snl_1",
1980
2012
  header: "_header_l8snl_14",
1981
2013
  dot: "_dot_l8snl_25"
1982
2014
  }, Cn = ({ minHeight: e = "6rem", ...t }) => /* @__PURE__ */ m("div", {
1983
- className: U.window,
2015
+ className: [W.window, t.className].filter(Boolean).join(" "),
1984
2016
  style: t.style,
1985
2017
  children: [/* @__PURE__ */ m("div", {
1986
- className: U.header,
2018
+ className: W.header,
1987
2019
  children: [
1988
2020
  /* @__PURE__ */ p("div", {
1989
2021
  "aria-hidden": !0,
1990
- className: U.dot,
2022
+ className: W.dot,
1991
2023
  style: { "--bg": "#c48691" }
1992
2024
  }),
1993
2025
  /* @__PURE__ */ p("div", {
1994
2026
  "aria-hidden": !0,
1995
- className: U.dot,
2027
+ className: W.dot,
1996
2028
  style: { "--bg": "#c9b990" }
1997
2029
  }),
1998
2030
  /* @__PURE__ */ p("div", {
1999
2031
  "aria-hidden": !0,
2000
- className: U.dot,
2032
+ className: W.dot,
2001
2033
  style: { "--bg": "#7cc598" }
2002
2034
  })
2003
2035
  ]
@@ -2005,30 +2037,30 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
2005
2037
  style: { minHeight: e },
2006
2038
  children: t.children
2007
2039
  })]
2008
- }), wn = { parallax: "_parallax_1tovg_1" }, Tn = (e) => {
2009
- let [t, n] = d(0);
2040
+ }), wn = { parallax: "_parallax_1tovg_1" }, Tn = ({ className: e, ...t }) => {
2041
+ let [n, r] = d(0);
2010
2042
  return s(() => {
2011
2043
  let e = null, t = () => {
2012
2044
  e ?? (e = requestAnimationFrame(() => {
2013
- n(window.scrollY), e = null;
2045
+ r(window.scrollY), e = null;
2014
2046
  }));
2015
2047
  };
2016
2048
  return window.addEventListener("scroll", t, { passive: !0 }), () => {
2017
2049
  window.removeEventListener("scroll", t), e != null && cancelAnimationFrame(e);
2018
2050
  };
2019
2051
  }, []), /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
2020
- className: wn.parallax,
2052
+ className: [wn.parallax, e].filter(Boolean).join(" "),
2021
2053
  style: {
2022
- backgroundImage: `url(${e.imageUrl1})`,
2023
- transform: `scale(1.2) translateY(${t / 400}%)`,
2054
+ backgroundImage: `url(${t.imageUrl1})`,
2055
+ transform: `scale(1.2) translateY(${n / 400}%)`,
2024
2056
  transformOrigin: "bottom",
2025
- ...e.style
2057
+ ...t.style
2026
2058
  }
2027
2059
  }), /* @__PURE__ */ p("div", {
2028
2060
  className: wn.parallax,
2029
2061
  style: {
2030
- backgroundImage: `url(${e.imageUrl2})`,
2031
- transform: `scale(1.2) translateY(${t / 900}%)`,
2062
+ backgroundImage: `url(${t.imageUrl2})`,
2063
+ transform: `scale(1.2) translateY(${n / 900}%)`,
2032
2064
  transformOrigin: "bottom"
2033
2065
  }
2034
2066
  })] });
@@ -2057,7 +2089,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
2057
2089
  n && c();
2058
2090
  }, [n, c]), /* @__PURE__ */ m("span", {
2059
2091
  ref: t,
2060
- className: Dn.original,
2092
+ className: [Dn.original, e.className].filter(Boolean).join(" "),
2061
2093
  onMouseOver: () => r(!0),
2062
2094
  onMouseLeave: () => r(!1),
2063
2095
  style: e.style,
@@ -2070,7 +2102,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
2070
2102
  }, kn = (e) => /* @__PURE__ */ p(On, {
2071
2103
  original: e.children,
2072
2104
  tooltip: /* @__PURE__ */ m("div", {
2073
- className: En.container,
2105
+ className: [En.container, e.className].filter(Boolean).join(" "),
2074
2106
  style: e.style,
2075
2107
  children: [e.title && /* @__PURE__ */ p("div", {
2076
2108
  className: En.title,
@@ -2085,15 +2117,15 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
2085
2117
  icon: "_icon_1f0go_19",
2086
2118
  progress: "_progress_1f0go_45"
2087
2119
  }, jn = ({ timeout: e = 5e3, ...t }) => /* @__PURE__ */ m("div", {
2088
- className: An.snackbar,
2120
+ className: [An.snackbar, t.className].filter(Boolean).join(" "),
2089
2121
  style: t.style,
2090
2122
  children: [
2091
- t.label == null ? t.children : /* @__PURE__ */ p(w, { children: t.label }),
2123
+ t.label == null ? t.children : /* @__PURE__ */ p(D, { children: t.label }),
2092
2124
  /* @__PURE__ */ p("div", {
2093
2125
  className: An.icon,
2094
2126
  onClick: t.close,
2095
- children: /* @__PURE__ */ p(x, {
2096
- d: ye,
2127
+ children: /* @__PURE__ */ p(w, {
2128
+ d: ge,
2097
2129
  size: "1em"
2098
2130
  })
2099
2131
  }),
@@ -2107,7 +2139,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
2107
2139
  "snackbar-container": "_snackbar-container_up7j2_14",
2108
2140
  "snackbar-item": "_snackbar-item_up7j2_23"
2109
2141
  }, Nn = (e) => /* @__PURE__ */ p("div", {
2110
- className: Mn["snackbar-screen"],
2142
+ className: [Mn["snackbar-screen"], e.className].filter(Boolean).join(" "),
2111
2143
  style: e.style,
2112
2144
  children: /* @__PURE__ */ p("div", {
2113
2145
  className: Mn["snackbar-container"],
@@ -2121,7 +2153,7 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
2121
2153
  })
2122
2154
  }, e.id))
2123
2155
  })
2124
- }), W = {
2156
+ }), G = {
2125
2157
  "elm-tabs": "_elm-tabs_ykoqx_1",
2126
2158
  "tab-container": "_tab-container_ykoqx_18",
2127
2159
  tab: "_tab_ykoqx_18",
@@ -2131,158 +2163,149 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
2131
2163
  }, Pn = (e) => {
2132
2164
  let [t, n] = d(0);
2133
2165
  return /* @__PURE__ */ m("div", {
2134
- className: W["elm-tabs"],
2166
+ className: [G["elm-tabs"], e.className].filter(Boolean).join(" "),
2135
2167
  style: e.style,
2136
2168
  children: [/* @__PURE__ */ p("div", {
2137
- className: W["tab-container"],
2169
+ className: G["tab-container"],
2138
2170
  children: e.tabLabels.map((e, r) => /* @__PURE__ */ p("div", {
2139
- className: `${W.tab} ${t === r ? W.active : ""}`,
2171
+ className: `${G.tab} ${t === r ? G.active : ""}`,
2140
2172
  onClick: () => n(r),
2141
2173
  children: e
2142
2174
  }, r))
2143
2175
  }), /* @__PURE__ */ p("div", {
2144
- className: W["tab-content-container"],
2176
+ className: G["tab-content-container"],
2145
2177
  children: e.tabContents.map((e, n) => /* @__PURE__ */ p("div", {
2146
- className: `${W["tab-content"]} ${t === n ? W.active : ""}`,
2178
+ className: `${G["tab-content"]} ${t === n ? G.active : ""}`,
2147
2179
  children: e
2148
2180
  }, n))
2149
2181
  })]
2150
2182
  });
2151
- }, G = {
2152
- toggle: "_toggle_1c0pb_1",
2153
- open: "_open_1c0pb_8",
2154
- summary: "_summary_1c0pb_12",
2155
- "summary-left": "_summary-left_1c0pb_31",
2156
- content: "_content_1c0pb_37",
2157
- "content-open": "_content-open_1c0pb_60",
2158
- close: "_close_1c0pb_65",
2159
- "close-button": "_close-button_1c0pb_74"
2183
+ }, K = {
2184
+ toggle: "_toggle_16f85_1",
2185
+ open: "_open_16f85_14",
2186
+ summary: "_summary_16f85_19",
2187
+ "summary-left": "_summary-left_16f85_33",
2188
+ divider: "_divider_16f85_40",
2189
+ chevron: "_chevron_16f85_57",
2190
+ cross: "_cross_16f85_70",
2191
+ border: "_border_16f85_84",
2192
+ content: "_content_16f85_92",
2193
+ close: "_close_16f85_96"
2160
2194
  }, Fn = (e) => {
2161
- let [t, n] = d(!1), r = e.value !== void 0, i = r ? e.value : t, a = (t) => {
2162
- t.preventDefault();
2163
- let a = !i;
2164
- r ? e.onChange?.(a) : n(a);
2195
+ let [t, n] = Je({
2196
+ prop: e.isOpen,
2197
+ defaultProp: !1,
2198
+ onChange: e.setIsOpen
2199
+ }), r = (e) => {
2200
+ e.preventDefault(), n(!t);
2165
2201
  };
2166
2202
  return /* @__PURE__ */ m("div", {
2167
- className: `${G.toggle} ${i ? G.open : ""}`,
2203
+ className: S(K.toggle, e.className, { [K.open]: t }),
2168
2204
  style: { ...e.style },
2169
2205
  children: [
2170
2206
  /* @__PURE__ */ m("div", {
2171
- className: G.summary,
2172
- onClick: a,
2173
- style: { borderRadius: i ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem" },
2174
- children: [/* @__PURE__ */ m("div", {
2175
- className: G["summary-left"],
2176
- children: [/* @__PURE__ */ p("span", {
2177
- style: {
2178
- transform: `rotate(${i ? "90deg" : "0deg"})`,
2179
- transition: "transform 200ms",
2180
- display: "flex"
2181
- },
2182
- children: /* @__PURE__ */ p(x, {
2183
- d: he,
2207
+ className: K.summary,
2208
+ onClick: r,
2209
+ children: [
2210
+ /* @__PURE__ */ m("div", {
2211
+ className: K["summary-left"],
2212
+ children: [/* @__PURE__ */ p(w, {
2213
+ className: S(K.chevron, { [K.open]: t }),
2214
+ d: pe,
2184
2215
  color: "#59b57c",
2185
- size: "1.25em"
2186
- })
2187
- }), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(w, { children: e.summary }) })]
2188
- }), /* @__PURE__ */ p("span", {
2189
- style: {
2190
- transform: `rotate(${i ? "135deg" : "0deg"})`,
2191
- transition: "transform 200ms",
2192
- display: "flex"
2193
- },
2194
- children: /* @__PURE__ */ p(x, {
2195
- d: We,
2196
- color: i ? "#b36472" : "#59b57c"
2216
+ size: "1rem"
2217
+ }), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(D, { children: e.summary }) })]
2218
+ }),
2219
+ /* @__PURE__ */ p("hr", { className: K.divider }),
2220
+ /* @__PURE__ */ p(w, {
2221
+ className: S(K.cross, { [K.open]: t }),
2222
+ d: Ve,
2223
+ size: "1rem",
2224
+ color: t ? "#b36472" : "#59b57c"
2197
2225
  })
2198
- })]
2226
+ ]
2199
2227
  }),
2228
+ /* @__PURE__ */ p("div", { className: K.border }),
2200
2229
  /* @__PURE__ */ p("div", {
2201
- className: `${G.content} ${i ? G["content-open"] : ""}`,
2230
+ className: S(K.content, { [K.close]: !t }),
2202
2231
  children: e.children
2203
- }),
2204
- i && /* @__PURE__ */ p("div", {
2205
- className: G.close,
2206
- onClick: a,
2207
- children: /* @__PURE__ */ m("div", {
2208
- className: G["close-button"],
2209
- children: [/* @__PURE__ */ p(x, {
2210
- d: ge,
2211
- size: "1.25em",
2212
- color: "#c56565"
2213
- }), /* @__PURE__ */ p(w, {
2214
- color: "#8e3636",
2215
- children: "CLOSE"
2216
- })]
2217
- })
2218
2232
  })
2219
2233
  ]
2220
2234
  });
2221
- }, K = {
2235
+ }, q = {
2222
2236
  table: "_table_197ge_1",
2223
2237
  caption: "_caption_197ge_8",
2224
2238
  "caption-inner": "_caption-inner_197ge_18",
2225
2239
  spacing: "_spacing_197ge_25"
2226
- }, In = r(!1), Ln = r(!1), q = ({ caption: e, hasRowHeader: t = !1, header: n, body: r, style: i }) => /* @__PURE__ */ p(Ln.Provider, {
2240
+ }, In = r(!1), Ln = r(!1), Rn = ({ caption: e, hasRowHeader: t = !1, header: n, body: r, style: i, className: a }) => /* @__PURE__ */ p(Ln.Provider, {
2227
2241
  value: t,
2228
2242
  children: /* @__PURE__ */ m("table", {
2229
- className: K.table,
2243
+ className: [q.table, a].filter(Boolean).join(" "),
2230
2244
  style: i,
2231
2245
  children: [
2232
2246
  e != null && /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ m("span", {
2233
- className: K.caption,
2247
+ className: q.caption,
2234
2248
  children: [
2235
- /* @__PURE__ */ p("span", { className: K.spacing }),
2249
+ /* @__PURE__ */ p("span", { className: q.spacing }),
2236
2250
  /* @__PURE__ */ m("span", {
2237
- className: K["caption-inner"],
2251
+ className: q["caption-inner"],
2238
2252
  children: [/* @__PURE__ */ p("svg", {
2239
2253
  viewBox: "0 0 24 24",
2240
2254
  width: "1rem",
2241
2255
  height: "1rem",
2242
2256
  children: /* @__PURE__ */ p("path", {
2243
- d: qe,
2257
+ d: We,
2244
2258
  fill: "#6987b8"
2245
2259
  })
2246
- }), /* @__PURE__ */ p(w, { children: e })]
2260
+ }), /* @__PURE__ */ p(D, { children: e })]
2247
2261
  }),
2248
- /* @__PURE__ */ p("span", { className: K.spacing })
2262
+ /* @__PURE__ */ p("span", { className: q.spacing })
2249
2263
  ]
2250
2264
  }) }),
2251
2265
  n,
2252
2266
  r
2253
2267
  ]
2254
2268
  })
2255
- }), Rn = ({ children: e, style: t }) => /* @__PURE__ */ p(In.Provider, {
2269
+ }), zn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(In.Provider, {
2256
2270
  value: !1,
2257
2271
  children: /* @__PURE__ */ p("tbody", {
2272
+ className: n,
2258
2273
  style: t,
2259
2274
  children: e
2260
2275
  })
2261
- }), zn = {
2276
+ }), Bn = {
2262
2277
  common: "_common_15vhm_1",
2263
2278
  td: "_td_15vhm_26",
2264
2279
  th: "_th_15vhm_34"
2265
- }, Bn = ({ children: e, style: t, hasHeader: n = !1, text: r }) => {
2266
- let i = o(In), a = n || i;
2267
- return /* @__PURE__ */ p(a ? "th" : "td", {
2268
- className: `${zn.common} ${a ? zn.th : zn.td}`,
2280
+ }, Vn = ({ children: e, style: t, hasHeader: n = !1, text: r, className: i }) => {
2281
+ let a = o(In), s = n || a;
2282
+ return /* @__PURE__ */ p(s ? "th" : "td", {
2283
+ className: [
2284
+ Bn.common,
2285
+ s ? Bn.th : Bn.td,
2286
+ i
2287
+ ].filter(Boolean).join(" "),
2269
2288
  style: t,
2270
2289
  children: r ?? e
2271
2290
  });
2272
- }, Vn = { thead: "_thead_184mb_1" }, Hn = ({ children: e, style: t }) => /* @__PURE__ */ p(In.Provider, {
2291
+ }, Hn = { thead: "_thead_184mb_1" }, Un = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(In.Provider, {
2273
2292
  value: !0,
2274
2293
  children: /* @__PURE__ */ p("thead", {
2275
- className: Vn.thead,
2294
+ className: [Hn.thead, n].filter(Boolean).join(" "),
2276
2295
  style: t,
2277
2296
  children: e
2278
2297
  })
2279
- }), Un = {
2298
+ }), Wn = {
2280
2299
  tr: "_tr_1l64j_1",
2281
2300
  "has-row-header": "_has-row-header_1l64j_25"
2282
- }, J = ({ children: e, style: t }) => {
2283
- let n = o(Ln);
2301
+ }, J = ({ children: e, style: t, className: n }) => {
2302
+ let r = o(Ln);
2284
2303
  return /* @__PURE__ */ p("tr", {
2285
- className: `${Un.tr} ${n ? Un["has-row-header"] : ""}`,
2304
+ className: [
2305
+ Wn.tr,
2306
+ r ? Wn["has-row-header"] : void 0,
2307
+ n
2308
+ ].filter(Boolean).join(" "),
2286
2309
  style: t,
2287
2310
  children: e
2288
2311
  });
@@ -2296,22 +2319,22 @@ var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
2296
2319
  code: "_code_1yj17_81",
2297
2320
  "code-body": "_code-body_1yj17_89",
2298
2321
  fallback: "_fallback_1yj17_93"
2299
- }, Wn = { code: "_code_1nyfa_1" }, Gn = null;
2300
- function Kn() {
2301
- return Gn || (Gn = import("shiki").then(({ createHighlighter: e }) => e({
2322
+ }, Gn = { code: "_code_1nyfa_1" }, Kn = null;
2323
+ function qn() {
2324
+ return Kn || (Kn = import("shiki").then(({ createHighlighter: e }) => e({
2302
2325
  langs: /* @__PURE__ */ "abap.bash.c.clojure.coffeescript.cpp.csharp.css.dart.diff.docker.elixir.elm.erlang.fsharp.gherkin.glsl.go.graphql.groovy.haskell.html.java.javascript.json.julia.kotlin.latex.less.lisp.lua.makefile.markdown.matlab.mermaid.nix.objective-c.ocaml.pascal.perl.php.plaintext.powershell.prolog.protobuf.python.r.ruby.rust.sass.scala.scheme.scss.shell.sql.swift.toml.typescript.wasm.xml.yaml".split("."),
2303
2326
  themes: ["vitesse-light", "vitesse-dark"]
2304
- }))), Gn;
2327
+ }))), Kn;
2305
2328
  }
2306
2329
  //#endregion
2307
2330
  //#region src/components/code/ElmShikiHighlighter.tsx
2308
- var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2309
- let [i, a] = d(`<pre>${e}</pre>`);
2331
+ var Jn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i }) => {
2332
+ let [a, o] = d(`<pre>${e}</pre>`);
2310
2333
  return s(() => {
2311
2334
  let r = !1;
2312
- return Kn().then((i) => {
2335
+ return qn().then((i) => {
2313
2336
  if (!r) try {
2314
- let o = i.codeToHtml(e, {
2337
+ let a = i.codeToHtml(e, {
2315
2338
  lang: t,
2316
2339
  themes: {
2317
2340
  dark: "vitesse-dark",
@@ -2322,7 +2345,7 @@ var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2322
2345
  "#121212": "transparent"
2323
2346
  }
2324
2347
  });
2325
- r || (a(o), n?.(!0));
2348
+ r || (o(a), n?.(!0));
2326
2349
  } catch {
2327
2350
  r || n?.(!0);
2328
2351
  }
@@ -2336,57 +2359,57 @@ var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2336
2359
  t,
2337
2360
  n
2338
2361
  ]), /* @__PURE__ */ p("div", {
2339
- className: Wn.code,
2362
+ className: [Gn.code, i].filter(Boolean).join(" "),
2340
2363
  style: r,
2341
2364
  children: /* @__PURE__ */ p("div", {
2342
2365
  className: "shiki",
2343
- dangerouslySetInnerHTML: { __html: i }
2366
+ dangerouslySetInnerHTML: { __html: a }
2344
2367
  })
2345
2368
  });
2346
- }, Jn = ({ code: e, language: t = "txt", caption: n, style: r }) => {
2347
- let [i, o] = d(!1), [c, l] = d(!1), [f, h] = d(!1), g = u(null), _ = u(null);
2369
+ }, Yn = ({ code: e, language: t = "txt", caption: n, style: r, className: i }) => {
2370
+ let [o, c] = d(!1), [l, f] = d(!1), [h, g] = d(!1), _ = u(null), v = u(null);
2348
2371
  s(() => {
2349
- let e = g.current;
2372
+ let e = _.current;
2350
2373
  if (!e) return;
2351
2374
  let t = new IntersectionObserver(([e]) => {
2352
- h(e.isIntersecting);
2375
+ g(e.isIntersecting);
2353
2376
  });
2354
2377
  return t.observe(e), () => t.disconnect();
2355
2378
  }, []);
2356
- let v = a(() => {
2379
+ let y = a(() => {
2357
2380
  navigator.clipboard.writeText(e).then(() => {
2358
- l(!0), _.current && clearTimeout(_.current), _.current = setTimeout(() => l(!1), 2e3);
2381
+ f(!0), v.current && clearTimeout(v.current), v.current = setTimeout(() => f(!1), 2e3);
2359
2382
  });
2360
2383
  }, [e]);
2361
2384
  return s(() => () => {
2362
- _.current && clearTimeout(_.current);
2385
+ v.current && clearTimeout(v.current);
2363
2386
  }, []), /* @__PURE__ */ m("div", {
2364
- ref: g,
2365
- className: Y.wrapper,
2387
+ ref: _,
2388
+ className: [Y.wrapper, i].filter(Boolean).join(" "),
2366
2389
  style: {
2367
- opacity: +!!f,
2390
+ opacity: +!!h,
2368
2391
  ...r
2369
2392
  },
2370
2393
  children: [/* @__PURE__ */ m("div", {
2371
2394
  className: Y.header,
2372
2395
  children: [/* @__PURE__ */ m("div", {
2373
2396
  className: Y.header__left,
2374
- children: [/* @__PURE__ */ p(nt, {
2397
+ children: [/* @__PURE__ */ p(et, {
2375
2398
  language: t,
2376
2399
  size: 20
2377
2400
  }), /* @__PURE__ */ p("span", {
2378
2401
  className: Y.caption,
2379
- children: /* @__PURE__ */ p(w, { children: n ?? t })
2402
+ children: /* @__PURE__ */ p(D, { children: n ?? t })
2380
2403
  })]
2381
2404
  }), /* @__PURE__ */ p("div", {
2382
2405
  className: Y.header__right,
2383
2406
  children: /* @__PURE__ */ p("div", {
2384
2407
  className: Y["copy-icon"],
2385
- onClick: v,
2386
- children: /* @__PURE__ */ p(x, {
2408
+ onClick: y,
2409
+ children: /* @__PURE__ */ p(w, {
2387
2410
  size: "1.25em",
2388
- d: c ? _e : ve,
2389
- useThemeColor: c
2411
+ d: l ? me : he,
2412
+ useThemeColor: l
2390
2413
  })
2391
2414
  })
2392
2415
  })]
@@ -2394,25 +2417,25 @@ var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2394
2417
  className: Y.code,
2395
2418
  children: [/* @__PURE__ */ p("div", {
2396
2419
  className: Y["code-body"],
2397
- style: { opacity: +!!i },
2398
- children: /* @__PURE__ */ p(qn, {
2420
+ style: { opacity: +!!o },
2421
+ children: /* @__PURE__ */ p(Jn, {
2399
2422
  code: e,
2400
2423
  language: t,
2401
- onRendered: o
2424
+ onRendered: c
2402
2425
  })
2403
2426
  }), /* @__PURE__ */ p("div", {
2404
2427
  className: Y.fallback,
2405
- style: { opacity: +!i },
2406
- children: /* @__PURE__ */ p(S, { size: "48px" })
2428
+ style: { opacity: +!o },
2429
+ children: /* @__PURE__ */ p(T, { size: "48px" })
2407
2430
  })]
2408
2431
  })]
2409
2432
  });
2410
- }, Yn = { katex: "_katex_1a1aj_1" }, Xn = ({ expression: e, block: t = !1, style: n }) => {
2411
- let [r, i] = d();
2433
+ }, Xn = { katex: "_katex_1a1aj_1" }, Zn = ({ expression: e, block: t = !1, style: n, className: r }) => {
2434
+ let [i, a] = d();
2412
2435
  s(() => {
2413
2436
  import("katex").then(({ renderToString: n }) => {
2414
2437
  try {
2415
- i(n(e, {
2438
+ a(n(e, {
2416
2439
  displayMode: t,
2417
2440
  output: "mathml"
2418
2441
  }));
@@ -2421,22 +2444,23 @@ var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2421
2444
  }
2422
2445
  }).catch(() => {});
2423
2446
  }, [e, t]);
2424
- let a = `${Yn.katex}`;
2447
+ let o = [Xn.katex, r].filter(Boolean).join(" ");
2425
2448
  return p(t ? "div" : "span", {
2426
- className: a,
2449
+ className: o,
2427
2450
  style: n,
2428
- dangerouslySetInnerHTML: r ? { __html: r } : void 0
2451
+ dangerouslySetInnerHTML: i ? { __html: i } : void 0
2429
2452
  });
2430
2453
  }, X = {
2431
2454
  "color-bg": "_color-bg_yiibu_1",
2432
2455
  text: "_text_yiibu_17"
2433
- }, Zn = ({ color: e, style: t }) => {
2434
- let [n, r] = d(!1), i = u(null), o = ee(e), { hue: s, saturation: c, lightness: l } = v(e), h = te(o), g = `rgb(${o.red}, ${o.green}, ${o.blue})`, _ = `hsl(${Math.floor(s)}, ${Math.floor(c * 100)}%, ${Math.floor(l * 100)}%)`, y = a((e) => {
2456
+ }, Qn = ({ color: e, style: t, className: n }) => {
2457
+ let [r, i] = d(!1), o = u(null), s = y(e), { hue: c, saturation: l, lightness: h } = v(e), g = ee(s), _ = `rgb(${s.red}, ${s.green}, ${s.blue})`, b = `hsl(${Math.floor(c)}, ${Math.floor(l * 100)}%, ${Math.floor(h * 100)}%)`, x = a((e) => {
2435
2458
  navigator.clipboard.writeText(e).then(() => {
2436
- r(!0), i.current && clearTimeout(i.current), i.current = setTimeout(() => r(!1), 1500);
2459
+ i(!0), o.current && clearTimeout(o.current), o.current = setTimeout(() => i(!1), 1500);
2437
2460
  });
2438
2461
  }, []);
2439
2462
  return /* @__PURE__ */ p("div", {
2463
+ className: n,
2440
2464
  style: {
2441
2465
  "--color": e,
2442
2466
  ...t
@@ -2445,41 +2469,41 @@ var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2445
2469
  original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
2446
2470
  className: X["color-bg"],
2447
2471
  style: { "--background-color": e },
2448
- onClick: () => y(h),
2449
- children: n && /* @__PURE__ */ p(x, {
2450
- d: fe,
2472
+ onClick: () => x(g),
2473
+ children: r && /* @__PURE__ */ p(w, {
2474
+ d: ue,
2451
2475
  size: "1em",
2452
2476
  color: "white"
2453
2477
  })
2454
2478
  }), /* @__PURE__ */ p("div", {
2455
2479
  className: X.text,
2456
- onClick: () => y(h),
2457
- children: h
2480
+ onClick: () => x(g),
2481
+ children: g
2458
2482
  })] }),
2459
2483
  tooltip: /* @__PURE__ */ m(f, { children: [
2460
2484
  /* @__PURE__ */ p("div", {
2461
2485
  className: X.text,
2462
- onClick: () => y(h),
2463
- children: h
2486
+ onClick: () => x(g),
2487
+ children: g
2464
2488
  }),
2465
2489
  /* @__PURE__ */ p("div", {
2466
2490
  className: X.text,
2467
- onClick: () => y(g),
2468
- children: g
2491
+ onClick: () => x(_),
2492
+ children: _
2469
2493
  }),
2470
2494
  /* @__PURE__ */ p("div", {
2471
2495
  className: X.text,
2472
- onClick: () => y(_),
2473
- children: _
2496
+ onClick: () => x(b),
2497
+ children: b
2474
2498
  })
2475
2499
  ] })
2476
2500
  })
2477
2501
  });
2478
- }, Qn = {
2502
+ }, $n = {
2479
2503
  container: "_container_a7c06_1",
2480
2504
  "row-container": "_row-container_a7c06_9",
2481
2505
  "color-name": "_color-name_a7c06_17"
2482
- }, $n = [
2506
+ }, er = [
2483
2507
  -3,
2484
2508
  -.25,
2485
2509
  -.2,
@@ -2493,29 +2517,29 @@ var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2493
2517
  .2,
2494
2518
  .25,
2495
2519
  .3
2496
- ], er = ({ colors: e, style: t }) => /* @__PURE__ */ p("div", {
2497
- className: Qn.container,
2520
+ ], tr = ({ colors: e, style: t, className: n }) => /* @__PURE__ */ p("div", {
2521
+ className: [$n.container, n].filter(Boolean).join(" "),
2498
2522
  style: t,
2499
2523
  children: e.map((e) => /* @__PURE__ */ m("div", {
2500
- className: Qn["row-container"],
2524
+ className: $n["row-container"],
2501
2525
  children: [/* @__PURE__ */ p("div", {
2502
- className: Qn["color-name"],
2526
+ className: $n["color-name"],
2503
2527
  style: { "--color": e.code },
2504
2528
  children: e.name
2505
- }), $n.map((t) => /* @__PURE__ */ p(Zn, { color: h(t, e.code) }, t))]
2529
+ }), er.map((t) => /* @__PURE__ */ p(Qn, { color: h(t, e.code) }, t))]
2506
2530
  }, e.name))
2507
2531
  }), Z = {
2508
- palette: "_palette_1u43p_1",
2509
- header: "_header_1u43p_11",
2510
- input: "_input_1u43p_31",
2511
- body: "_body_1u43p_43",
2512
- "empty-result": "_empty-result_1u43p_60",
2513
- command: "_command_1u43p_71",
2514
- "command-selected": "_command-selected_1u43p_99",
2515
- "command-icon": "_command-icon_1u43p_104",
2516
- tag: "_tag_1u43p_108",
2517
- footer: "_footer_1u43p_119"
2518
- }, tr = {
2532
+ palette: "_palette_1glfh_1",
2533
+ header: "_header_1glfh_11",
2534
+ input: "_input_1glfh_31",
2535
+ body: "_body_1glfh_43",
2536
+ "empty-result": "_empty-result_1glfh_60",
2537
+ command: "_command_1glfh_71",
2538
+ "command-selected": "_command-selected_1glfh_98",
2539
+ "command-icon": "_command-icon_1glfh_103",
2540
+ tag: "_tag_1glfh_107",
2541
+ footer: "_footer_1glfh_118"
2542
+ }, nr = {
2519
2543
  brown: "#a17c5b",
2520
2544
  crimson: "#c56565",
2521
2545
  amber: "#d48b70",
@@ -2526,37 +2550,37 @@ var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2526
2550
  purple: "#9771bd",
2527
2551
  pink: "#c9699e"
2528
2552
  };
2529
- function nr(e, t) {
2553
+ function rr(e, t) {
2530
2554
  if (!t.trim()) return [];
2531
2555
  let n = t.toLowerCase();
2532
2556
  return e.filter((e) => e.label.toLowerCase().includes(n) || e.description?.toLowerCase().includes(n) || e.keywords?.some((e) => e.toLowerCase().includes(n)));
2533
2557
  }
2534
- var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2535
- let [r, i] = d(""), [o, c] = d([]), [l, f] = d(null), h = u(null);
2558
+ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
2559
+ let [i, o] = d(""), [c, l] = d([]), [f, h] = d(null), g = u(null);
2536
2560
  s(() => {
2537
- h.current?.focus();
2561
+ g.current?.focus();
2538
2562
  }, []);
2539
- let g = a((t) => {
2563
+ let v = a((t) => {
2540
2564
  let n = t.target.value;
2541
- i(n);
2542
- let r = nr(e, n);
2543
- c(r), f(r.length > 0 ? 0 : null);
2544
- }, [e]), v = a((e) => {
2565
+ o(n);
2566
+ let r = rr(e, n);
2567
+ l(r), h(r.length > 0 ? 0 : null);
2568
+ }, [e]), y = a((e) => {
2545
2569
  if (e === null) return;
2546
- let n = o[e];
2570
+ let n = c[e];
2547
2571
  n && (n.onInvoke?.(), t?.(n));
2548
- }, [o, t]);
2572
+ }, [c, t]);
2549
2573
  return s(() => {
2550
2574
  let e = (e) => {
2551
- e.key === "ArrowDown" || e.key === "Tab" ? (e.preventDefault(), f((e) => e === null ? 0 : e < o.length - 1 ? e + 1 : e)) : e.key === "ArrowUp" ? (e.preventDefault(), f((e) => e === null ? 0 : e > 0 ? e - 1 : 0)) : e.key === "Enter" && (e.preventDefault(), v(l));
2575
+ e.key === "ArrowDown" || e.key === "Tab" ? (e.preventDefault(), h((e) => e === null ? 0 : e < c.length - 1 ? e + 1 : e)) : e.key === "ArrowUp" ? (e.preventDefault(), h((e) => e === null ? 0 : e > 0 ? e - 1 : 0)) : e.key === "Enter" && (e.preventDefault(), y(f));
2552
2576
  };
2553
2577
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2554
2578
  }, [
2555
- v,
2556
- l,
2557
- o.length
2579
+ y,
2580
+ f,
2581
+ c.length
2558
2582
  ]), /* @__PURE__ */ m("div", {
2559
- className: Z.palette,
2583
+ className: [Z.palette, r].filter(Boolean).join(" "),
2560
2584
  style: {
2561
2585
  "--height": "500px",
2562
2586
  "--width": "800px",
@@ -2565,40 +2589,40 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2565
2589
  children: [
2566
2590
  /* @__PURE__ */ m("header", {
2567
2591
  className: Z.header,
2568
- children: [/* @__PURE__ */ p(x, { d: be }), /* @__PURE__ */ p("input", {
2569
- ref: h,
2592
+ children: [/* @__PURE__ */ p(w, { d: _e }), /* @__PURE__ */ p("input", {
2593
+ ref: g,
2570
2594
  className: Z.input,
2571
- value: r,
2572
- onChange: g,
2595
+ value: i,
2596
+ onChange: v,
2573
2597
  type: "text",
2574
2598
  inputMode: "text"
2575
2599
  })]
2576
2600
  }),
2577
2601
  /* @__PURE__ */ p("div", {
2578
2602
  className: Z.body,
2579
- children: o.length === 0 ? /* @__PURE__ */ p("div", {
2603
+ children: c.length === 0 ? /* @__PURE__ */ p("div", {
2580
2604
  className: Z["empty-result"],
2581
- children: /* @__PURE__ */ p(w, { children: "search anything..." })
2582
- }) : o.map((e, t) => /* @__PURE__ */ m("button", {
2583
- className: `${Z.command} ${t === l ? Z["command-selected"] : ""}`,
2605
+ children: /* @__PURE__ */ p(D, { children: "search anything..." })
2606
+ }) : c.map((e, t) => /* @__PURE__ */ m("button", {
2607
+ className: `${Z.command} ${t === f ? Z["command-selected"] : ""}`,
2584
2608
  onClick: () => {
2585
- f(t), v(t);
2609
+ h(t), y(t);
2586
2610
  },
2587
2611
  children: [
2588
2612
  e.icon ? /* @__PURE__ */ p("img", {
2589
2613
  className: Z["command-icon"],
2590
2614
  src: e.icon,
2591
2615
  alt: e.label
2592
- }) : /* @__PURE__ */ p(x, {
2593
- d: be,
2616
+ }) : /* @__PURE__ */ p(w, {
2617
+ d: _e,
2594
2618
  size: "1rem"
2595
2619
  }),
2596
2620
  e.tag ? /* @__PURE__ */ p("div", {
2597
2621
  className: Z.tag,
2598
- style: { "--tag-color": _(-.3, tr[e.tag.color]) },
2622
+ style: { "--tag-color": _(-.3, nr[e.tag.color]) },
2599
2623
  children: e.tag.name
2600
2624
  }) : /* @__PURE__ */ p("div", { className: Z.tag }),
2601
- /* @__PURE__ */ p(w, {
2625
+ /* @__PURE__ */ p(D, {
2602
2626
  style: {
2603
2627
  whiteSpace: "nowrap",
2604
2628
  overflow: "hidden",
@@ -2607,7 +2631,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2607
2631
  },
2608
2632
  children: e.label
2609
2633
  }),
2610
- /* @__PURE__ */ p(w, {
2634
+ /* @__PURE__ */ p(D, {
2611
2635
  style: {
2612
2636
  opacity: .4,
2613
2637
  whiteSpace: "nowrap",
@@ -2616,40 +2640,40 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2616
2640
  },
2617
2641
  children: e.description ?? "-"
2618
2642
  }),
2619
- /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(x, { d: Ne }) })
2643
+ /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(w, { d: Ae }) })
2620
2644
  ]
2621
2645
  }, e.id))
2622
2646
  }),
2623
2647
  /* @__PURE__ */ m("footer", {
2624
2648
  className: Z.footer,
2625
- children: [/* @__PURE__ */ p(w, {
2649
+ children: [/* @__PURE__ */ p(D, {
2626
2650
  kbd: !0,
2627
2651
  children: "Esc"
2628
- }), /* @__PURE__ */ p(w, { children: "Close" })]
2652
+ }), /* @__PURE__ */ p(D, { children: "Close" })]
2629
2653
  })
2630
2654
  ]
2631
2655
  });
2632
- }, ir = {
2656
+ }, ar = {
2633
2657
  "jarkup-body": "_jarkup-body_jsvhx_1",
2634
2658
  "unsupported-block": "_unsupported-block_jsvhx_5"
2635
- }, ar = ({ jsonComponents: e, style: t }) => /* @__PURE__ */ p("div", {
2636
- className: ir["jarkup-body"],
2659
+ }, or = ({ jsonComponents: e, style: t, className: n }) => /* @__PURE__ */ p("div", {
2660
+ className: [ar["jarkup-body"], n].filter(Boolean).join(" "),
2637
2661
  style: t,
2638
2662
  children: e.map((e, t) => /* @__PURE__ */ p("div", {
2639
- className: ir["unsupported-block"],
2663
+ className: ar["unsupported-block"],
2640
2664
  children: /* @__PURE__ */ p("code", { children: JSON.stringify(e, null, 2) })
2641
2665
  }, t))
2642
- }), or = {
2666
+ }), sr = {
2643
2667
  "jarkup-body": "_jarkup-body_1rlbi_1",
2644
2668
  "column-list": "_column-list_1rlbi_9",
2645
2669
  column: "_column_1rlbi_9"
2646
- }, sr = i(() => import("./ElmMermaid-BFqvHKdQ.js").then((e) => e.n).then((e) => ({ default: e.ElmMermaid }))), cr = (e) => e.map((e) => e.type === "Text" ? e.props.text : "").join(""), lr = {
2670
+ }, cr = i(() => import("./ElmMermaid-CUeT_XM9.js").then((e) => e.n).then((e) => ({ default: e.ElmMermaid }))), lr = (e) => e.map((e) => e.type === "Text" ? e.props.text : "").join(""), ur = {
2647
2671
  Text: (e, t, n, r) => {
2648
2672
  let i = e.id ?? n, a = e.props;
2649
- return a.katex ? /* @__PURE__ */ p(Xn, {
2673
+ return a.katex ? /* @__PURE__ */ p(Zn, {
2650
2674
  expression: a.text,
2651
2675
  block: !1
2652
- }, i) : /* @__PURE__ */ p(w, {
2676
+ }, i) : /* @__PURE__ */ p(D, {
2653
2677
  color: a.color,
2654
2678
  backgroundColor: a.backgroundColor,
2655
2679
  bold: a.bold,
@@ -2665,7 +2689,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2665
2689
  },
2666
2690
  Icon: (e, t, n, r) => {
2667
2691
  let i = e.id ?? n;
2668
- return /* @__PURE__ */ p(b, {
2692
+ return /* @__PURE__ */ p(C, {
2669
2693
  src: e.props.src,
2670
2694
  alt: e.props.alt
2671
2695
  }, i);
@@ -2676,16 +2700,16 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2676
2700
  },
2677
2701
  Heading: (e, t, n, r) => {
2678
2702
  let i = e.id ?? n;
2679
- return /* @__PURE__ */ p(D, {
2703
+ return /* @__PURE__ */ p(k, {
2680
2704
  level: e.props.level,
2681
- id: Ze(cr(e.slots.default)),
2705
+ id: Ye(lr(e.slots.default)),
2682
2706
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2683
2707
  children: t(e.slots.default)
2684
2708
  }, i);
2685
2709
  },
2686
2710
  Paragraph: (e, t, n, r) => {
2687
2711
  let i = e.id ?? n;
2688
- return /* @__PURE__ */ p(wt, {
2712
+ return /* @__PURE__ */ p(St, {
2689
2713
  backgroundColor: e.props?.backgroundColor,
2690
2714
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2691
2715
  children: t(e.slots.default)
@@ -2697,7 +2721,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2697
2721
  },
2698
2722
  List: (e, t, n, r) => {
2699
2723
  let i = e.id ?? n;
2700
- return /* @__PURE__ */ p(It, {
2724
+ return /* @__PURE__ */ p(Ft, {
2701
2725
  listStyle: e.props?.listStyle === "unordered" ? "unordered" : "ordered",
2702
2726
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2703
2727
  children: t(e.slots.default)
@@ -2705,7 +2729,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2705
2729
  },
2706
2730
  BlockQuote: (e, t, n, r) => {
2707
2731
  let i = e.id ?? n;
2708
- return /* @__PURE__ */ p(Tt, {
2732
+ return /* @__PURE__ */ p(Ct, {
2709
2733
  cite: e.props?.cite,
2710
2734
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2711
2735
  children: t(e.slots.default)
@@ -2713,7 +2737,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2713
2737
  },
2714
2738
  Callout: (e, t, n, r) => {
2715
2739
  let i = e.id ?? n;
2716
- return /* @__PURE__ */ p(Ot, {
2740
+ return /* @__PURE__ */ p(Et, {
2717
2741
  type: e.props?.type,
2718
2742
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2719
2743
  children: t(e.slots.default)
@@ -2721,7 +2745,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2721
2745
  },
2722
2746
  Divider: (e, t, n, r) => {
2723
2747
  let i = e.id ?? n;
2724
- return /* @__PURE__ */ p(At, { style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0 }, i);
2748
+ return /* @__PURE__ */ p(Ot, { style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0 }, i);
2725
2749
  },
2726
2750
  Toggle: (e, t, n, r) => {
2727
2751
  let i = e.id ?? n;
@@ -2733,7 +2757,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2733
2757
  },
2734
2758
  Bookmark: (e, t, n, r) => {
2735
2759
  let i = e.id ?? n;
2736
- return /* @__PURE__ */ p(Yt, {
2760
+ return /* @__PURE__ */ p(Jt, {
2737
2761
  url: e.props.url,
2738
2762
  title: e.props.title,
2739
2763
  description: e.props.description,
@@ -2743,7 +2767,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2743
2767
  },
2744
2768
  File: (e, t, n, r) => {
2745
2769
  let i = e.id ?? n;
2746
- return /* @__PURE__ */ p(Jt, {
2770
+ return /* @__PURE__ */ p(qt, {
2747
2771
  src: e.props.src,
2748
2772
  name: e.props.name,
2749
2773
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
@@ -2751,7 +2775,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2751
2775
  },
2752
2776
  Image: (e, t, n, r) => {
2753
2777
  let i = e.id ?? n;
2754
- return /* @__PURE__ */ p(j, {
2778
+ return /* @__PURE__ */ p(N, {
2755
2779
  src: e.props.src,
2756
2780
  alt: e.props.alt,
2757
2781
  width: e.props.width,
@@ -2763,7 +2787,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2763
2787
  },
2764
2788
  CodeBlock: (e, t, n, r) => {
2765
2789
  let i = e.id ?? n;
2766
- return /* @__PURE__ */ p(Jn, {
2790
+ return /* @__PURE__ */ p(Yn, {
2767
2791
  code: e.props.code,
2768
2792
  language: e.props.language,
2769
2793
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
@@ -2771,7 +2795,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2771
2795
  },
2772
2796
  Katex: (e, t, n, r) => {
2773
2797
  let i = e.id ?? n;
2774
- return /* @__PURE__ */ p(Xn, {
2798
+ return /* @__PURE__ */ p(Zn, {
2775
2799
  expression: e.props.expression,
2776
2800
  block: !0,
2777
2801
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
@@ -2780,8 +2804,8 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2780
2804
  Mermaid: (e, t, r, i) => {
2781
2805
  let a = e.id ?? r;
2782
2806
  return /* @__PURE__ */ p(n, {
2783
- fallback: /* @__PURE__ */ p(rn, {}),
2784
- children: /* @__PURE__ */ p(sr, {
2807
+ fallback: /* @__PURE__ */ p(nn, {}),
2808
+ children: /* @__PURE__ */ p(cr, {
2785
2809
  code: e.props.code,
2786
2810
  style: r === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2787
2811
  })
@@ -2798,11 +2822,11 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2798
2822
  },
2799
2823
  Table: (e, t, n, r) => {
2800
2824
  let i = e.id ?? n;
2801
- return /* @__PURE__ */ p(q, {
2825
+ return /* @__PURE__ */ p(Rn, {
2802
2826
  caption: e.props?.caption,
2803
2827
  hasRowHeader: e.props?.hasRowHeader,
2804
- header: e.slots.header ? /* @__PURE__ */ p(Hn, { children: t(e.slots.header) }) : void 0,
2805
- body: /* @__PURE__ */ p(Rn, { children: t(e.slots.body) }),
2828
+ header: e.slots.header ? /* @__PURE__ */ p(Un, { children: t(e.slots.header) }) : void 0,
2829
+ body: /* @__PURE__ */ p(zn, { children: t(e.slots.body) }),
2806
2830
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2807
2831
  }, i);
2808
2832
  },
@@ -2812,12 +2836,12 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2812
2836
  },
2813
2837
  TableCell: (e, t, n, r) => {
2814
2838
  let i = e.id ?? n;
2815
- return /* @__PURE__ */ p(Bn, { children: t(e.slots.default) }, i);
2839
+ return /* @__PURE__ */ p(Vn, { children: t(e.slots.default) }, i);
2816
2840
  },
2817
2841
  ColumnList: (e, t, n, r) => {
2818
2842
  let i = e.id ?? n;
2819
2843
  return /* @__PURE__ */ p("div", {
2820
- className: or["column-list"],
2844
+ className: sr["column-list"],
2821
2845
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2822
2846
  children: t(e.slots.default)
2823
2847
  }, i);
@@ -2825,7 +2849,7 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2825
2849
  Column: (e, t, n, r) => {
2826
2850
  let i = e.id ?? n;
2827
2851
  return /* @__PURE__ */ p("div", {
2828
- className: or.column,
2852
+ className: sr.column,
2829
2853
  style: {
2830
2854
  "--width-ratio": e.props?.widthRatio ?? 1,
2831
2855
  width: e.props?.widthRatio ? `${e.props.widthRatio * 100}%` : void 0,
@@ -2836,157 +2860,157 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2836
2860
  },
2837
2861
  Unsupported: (e, t, n, r) => {
2838
2862
  let i = e.id ?? n;
2839
- return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(sn, {
2863
+ return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(on, {
2840
2864
  details: e.props?.details ?? `Unsupported component type: ${e.type}`,
2841
2865
  style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2842
2866
  }, i);
2843
2867
  }
2844
- }, ur = ({ jsonComponents: e, skipUnsupportedComponentWarning: t = !1, renderFunctionMap: n, style: r }) => {
2845
- let i = {
2846
- ...lr,
2868
+ }, dr = ({ jsonComponents: e, skipUnsupportedComponentWarning: t = !1, renderFunctionMap: n, style: r, className: i }) => {
2869
+ let a = {
2870
+ ...ur,
2847
2871
  ...n
2848
- }, a = (e) => e.map((e, n) => {
2849
- let o = e.id ?? n, s = i[e.type];
2850
- return s ? s(e, a, n, {
2872
+ }, o = (e) => e.map((e, n) => {
2873
+ let i = e.id ?? n, s = a[e.type];
2874
+ return s ? s(e, o, n, {
2851
2875
  skipUnsupportedComponentWarning: t,
2852
2876
  style: r
2853
- }) : t ? null : /* @__PURE__ */ p(sn, { details: `Unsupported component type: ${e.type}` }, o);
2877
+ }) : t ? null : /* @__PURE__ */ p(on, { details: `Unsupported component type: ${e.type}` }, i);
2854
2878
  });
2855
2879
  return /* @__PURE__ */ p("div", {
2856
- className: or["jarkup-body"],
2880
+ className: [sr["jarkup-body"], i].filter(Boolean).join(" "),
2857
2881
  style: {
2858
2882
  "--elmethis-margin-block-start": r?.["--elmethis-margin-block-start"] ?? "2.5rem",
2859
2883
  ...r
2860
2884
  },
2861
- children: a(e)
2885
+ children: o(e)
2862
2886
  });
2863
- }, dr = { "markdown-body": "_markdown-body_130yx_1" }, Q = (e) => e === 0 ? { "--elmethis-margin-block-start": "0" } : void 0, fr = {
2887
+ }, fr = { "markdown-body": "_markdown-body_130yx_1" }, Q = (e) => e === 0 ? { "--elmethis-margin-block-start": "0" } : void 0, pr = {
2864
2888
  blockquote: (e, t, n) => {
2865
2889
  if (!e.tokens || e.tokens.length === 0) return null;
2866
2890
  let r = e.tokens.flatMap((e) => e.type === "paragraph" && e.tokens ? e.tokens : [e]);
2867
- return /* @__PURE__ */ p(Tt, {
2891
+ return /* @__PURE__ */ p(Ct, {
2868
2892
  style: Q(n),
2869
2893
  children: t(r)
2870
2894
  }, n);
2871
2895
  },
2872
2896
  br: (e, t, n) => /* @__PURE__ */ p("br", {}, n),
2873
- checkbox: (e, t, n) => /* @__PURE__ */ p(ln, {
2897
+ checkbox: (e, t, n) => /* @__PURE__ */ p(cn, {
2874
2898
  label: e.raw,
2875
2899
  checked: e.checked,
2876
2900
  style: Q(n)
2877
2901
  }, n),
2878
- code: (e, t, n) => /* @__PURE__ */ p(Jn, {
2902
+ code: (e, t, n) => /* @__PURE__ */ p(Yn, {
2879
2903
  code: e.text.trim(),
2880
2904
  language: e.lang,
2881
2905
  style: Q(n)
2882
2906
  }, n),
2883
- codespan: (e, t, n) => /* @__PURE__ */ p(w, {
2907
+ codespan: (e, t, n) => /* @__PURE__ */ p(D, {
2884
2908
  code: !0,
2885
2909
  children: e.text
2886
2910
  }, n),
2887
2911
  def: () => null,
2888
- del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
2912
+ del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(D, {
2889
2913
  strikethrough: !0,
2890
2914
  children: t(e.tokens)
2891
- }, n) : /* @__PURE__ */ p(w, {
2915
+ }, n) : /* @__PURE__ */ p(D, {
2892
2916
  strikethrough: !0,
2893
2917
  children: e.text
2894
2918
  }, n),
2895
- em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
2919
+ em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(D, {
2896
2920
  italic: !0,
2897
2921
  children: t(e.tokens)
2898
- }, n) : /* @__PURE__ */ p(w, {
2922
+ }, n) : /* @__PURE__ */ p(D, {
2899
2923
  italic: !0,
2900
2924
  children: e.text
2901
2925
  }, n),
2902
2926
  escape: () => null,
2903
2927
  heading: (e, t, n) => {
2904
2928
  let r = e.depth;
2905
- return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(D, {
2929
+ return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(k, {
2906
2930
  level: r,
2907
2931
  style: Q(n),
2908
2932
  children: t(e.tokens)
2909
- }, n) : /* @__PURE__ */ p(D, {
2933
+ }, n) : /* @__PURE__ */ p(k, {
2910
2934
  level: r,
2911
2935
  text: e.text,
2912
2936
  style: Q(n)
2913
2937
  }, n);
2914
2938
  },
2915
- hr: (e, t, n) => /* @__PURE__ */ p(At, { style: Q(n) }, n),
2939
+ hr: (e, t, n) => /* @__PURE__ */ p(Ot, { style: Q(n) }, n),
2916
2940
  html: () => null,
2917
- image: (e, t, n) => /* @__PURE__ */ p(j, {
2941
+ image: (e, t, n) => /* @__PURE__ */ p(N, {
2918
2942
  block: !0,
2919
2943
  enableModal: !0,
2920
2944
  src: e.href,
2921
2945
  alt: e.text,
2922
2946
  style: Q(n)
2923
2947
  }, n),
2924
- link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
2948
+ link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(D, {
2925
2949
  href: e.href,
2926
2950
  children: t(e.tokens)
2927
- }, n) : /* @__PURE__ */ p(w, {
2951
+ }, n) : /* @__PURE__ */ p(D, {
2928
2952
  href: e.href,
2929
2953
  children: e.text
2930
2954
  }, n),
2931
2955
  list: (e, t, n) => {
2932
2956
  let r = e.items.map((e, n) => /* @__PURE__ */ p("li", { children: t(e.tokens) }, n));
2933
- return /* @__PURE__ */ p(It, {
2957
+ return /* @__PURE__ */ p(Ft, {
2934
2958
  listStyle: e.ordered ? "ordered" : "unordered",
2935
2959
  style: Q(n),
2936
2960
  children: r
2937
2961
  }, n);
2938
2962
  },
2939
2963
  list_item: (e, t, n) => /* @__PURE__ */ p("li", { children: e.tokens && e.tokens.length !== 0 ? t(e.tokens) : e.text }, n),
2940
- paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(wt, {
2964
+ paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(St, {
2941
2965
  style: Q(n),
2942
2966
  children: t(e.tokens)
2943
2967
  }, n) : null,
2944
2968
  space: () => null,
2945
- strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
2969
+ strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(D, {
2946
2970
  bold: !0,
2947
2971
  children: t(e.tokens)
2948
- }, n) : /* @__PURE__ */ p(w, {
2972
+ }, n) : /* @__PURE__ */ p(D, {
2949
2973
  bold: !0,
2950
2974
  children: e.text
2951
2975
  }, n),
2952
2976
  table: (e, t, n) => {
2953
- let r = (e) => e.map((e, n) => /* @__PURE__ */ p(Bn, { children: t(e.tokens) }, n)), i = /* @__PURE__ */ p(J, { children: r(e.header) }), a = e.rows.map((e, t) => /* @__PURE__ */ p(J, { children: r(e) }, t));
2954
- return /* @__PURE__ */ p(q, {
2955
- header: /* @__PURE__ */ p(Hn, { children: i }),
2956
- body: /* @__PURE__ */ p(Rn, { children: a }),
2977
+ let r = (e) => e.map((e, n) => /* @__PURE__ */ p(Vn, { children: t(e.tokens) }, n)), i = /* @__PURE__ */ p(J, { children: r(e.header) }), a = e.rows.map((e, t) => /* @__PURE__ */ p(J, { children: r(e) }, t));
2978
+ return /* @__PURE__ */ p(Rn, {
2979
+ header: /* @__PURE__ */ p(Un, { children: i }),
2980
+ body: /* @__PURE__ */ p(zn, { children: a }),
2957
2981
  style: Q(n)
2958
2982
  }, n);
2959
2983
  },
2960
- text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, { children: t(e.tokens) }, n) : /* @__PURE__ */ p(w, { children: e.text }, n)
2961
- }, pr = ({ markdown: e, style: t, renderFunctionMap: n }) => {
2962
- let r = {
2963
- ...fr,
2964
- ...n
2965
- }, i = (e) => e.map((e, t) => {
2966
- let n = r[e.type];
2967
- return n ? n(e, i, t) : null;
2968
- }), a = Qe.setOptions({ gfm: !0 }).lexer(e);
2984
+ text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(D, { children: t(e.tokens) }, n) : /* @__PURE__ */ p(D, { children: e.text }, n)
2985
+ }, mr = ({ markdown: e, style: t, className: n, renderFunctionMap: r }) => {
2986
+ let i = {
2987
+ ...pr,
2988
+ ...r
2989
+ }, a = (e) => e.map((e, t) => {
2990
+ let n = i[e.type];
2991
+ return n ? n(e, a, t) : null;
2992
+ }), o = Xe.setOptions({ gfm: !0 }).lexer(e);
2969
2993
  return /* @__PURE__ */ p("div", {
2970
- className: dr["markdown-body"],
2994
+ className: [fr["markdown-body"], n].filter(Boolean).join(" "),
2971
2995
  style: {
2972
2996
  "--elmethis-margin-block-start": "2.5rem",
2973
2997
  ...t
2974
2998
  },
2975
- children: i(a)
2999
+ children: a(o)
2976
3000
  });
2977
3001
  }, $ = {
2978
3002
  char: "_char_sojtj_1",
2979
3003
  typed: "_typed_sojtj_20",
2980
3004
  current: "_current_sojtj_24",
2981
3005
  incorrect: "_incorrect_sojtj_29"
2982
- }, mr = ({ target: e = "Typing game", style: t }) => {
2983
- let [n, r] = d(() => {
3006
+ }, hr = ({ target: e = "Typing game", style: t, className: n }) => {
3007
+ let [r, i] = d(() => {
2984
3008
  let t = e.split("").map((e) => ({
2985
3009
  char: e,
2986
3010
  status: "default"
2987
3011
  }));
2988
3012
  return t.length > 0 && (t[0].status = "current"), t;
2989
- }), [i, a] = d(0), [o, c] = d(0), [l, u] = d(!1);
3013
+ }), [a, o] = d(0), [c, l] = d(0), [u, f] = d(!1);
2990
3014
  return s(() => {
2991
3015
  let t = e.split("").map((e) => ({
2992
3016
  char: e,
@@ -2994,31 +3018,32 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2994
3018
  }));
2995
3019
  t.length > 0 && (t[0].status = "current");
2996
3020
  let n = window.setTimeout(() => {
2997
- r(t), a(0), c(0), u(!1);
3021
+ i(t), o(0), l(0), f(!1);
2998
3022
  }, 0);
2999
3023
  return () => clearTimeout(n);
3000
3024
  }, [e]), s(() => {
3001
3025
  let e = (e) => {
3002
- l || e.key.length !== 1 || r((t) => {
3003
- if (!t[i]) return t;
3026
+ u || e.key.length !== 1 || i((t) => {
3027
+ if (!t[a]) return t;
3004
3028
  let n = [...t];
3005
- return e.key === n[i].char ? (n[i] = {
3006
- ...n[i],
3029
+ return e.key === n[a].char ? (n[a] = {
3030
+ ...n[a],
3007
3031
  status: "typed"
3008
- }, i === n.length - 1 ? u(!0) : a((e) => (n[e + 1] = {
3032
+ }, a === n.length - 1 ? f(!0) : o((e) => (n[e + 1] = {
3009
3033
  ...n[e + 1],
3010
3034
  status: "current"
3011
- }, e + 1))) : (n[i] = {
3012
- ...n[i],
3035
+ }, e + 1))) : (n[a] = {
3036
+ ...n[a],
3013
3037
  status: "incorrect"
3014
- }, c((e) => e + 1)), n;
3038
+ }, l((e) => e + 1)), n;
3015
3039
  });
3016
3040
  };
3017
3041
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
3018
- }, [i, l]), /* @__PURE__ */ m("div", {
3042
+ }, [a, u]), /* @__PURE__ */ m("div", {
3043
+ className: n,
3019
3044
  style: t,
3020
3045
  children: [
3021
- /* @__PURE__ */ p("div", { children: n.map((e, t) => /* @__PURE__ */ p("span", {
3046
+ /* @__PURE__ */ p("div", { children: r.map((e, t) => /* @__PURE__ */ p("span", {
3022
3047
  className: [
3023
3048
  $.char,
3024
3049
  e.status === "typed" ? $.typed : "",
@@ -3027,13 +3052,14 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
3027
3052
  ].filter(Boolean).join(" "),
3028
3053
  children: e.char
3029
3054
  }, t)) }),
3030
- l && /* @__PURE__ */ p("div", { children: "FINISH!" }),
3031
- o > 0 && /* @__PURE__ */ m("div", { children: ["Mistakes: ", o] })
3055
+ u && /* @__PURE__ */ p("div", { children: "FINISH!" }),
3056
+ c > 0 && /* @__PURE__ */ m("div", { children: ["Mistakes: ", c] })
3032
3057
  ]
3033
3058
  });
3034
- }, hr = ({ oEmbed: e, style: t }) => e.type === "photo" ? /* @__PURE__ */ p("div", {
3059
+ }, gr = ({ oEmbed: e, style: t, className: n }) => e.type === "photo" ? /* @__PURE__ */ p("div", {
3060
+ className: n,
3035
3061
  style: t,
3036
- children: /* @__PURE__ */ p(j, {
3062
+ children: /* @__PURE__ */ p(N, {
3037
3063
  src: e.url,
3038
3064
  alt: e.title,
3039
3065
  width: e.width,
@@ -3048,11 +3074,12 @@ var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
3048
3074
  },
3049
3075
  dangerouslySetInnerHTML: { __html: e.html }
3050
3076
  }) : /* @__PURE__ */ p("div", {
3077
+ className: n,
3051
3078
  style: t,
3052
- children: /* @__PURE__ */ p(w, {
3079
+ children: /* @__PURE__ */ p(D, {
3053
3080
  href: e.author_url ?? e.provider_url ?? "#",
3054
3081
  children: e.title ?? e.author_name ?? e.provider_name ?? "Link"
3055
3082
  })
3056
3083
  });
3057
3084
  //#endregion
3058
- export { mt as ElmArrowIcon, rn as ElmBlockFallback, Tt as ElmBlockQuote, Yt as ElmBookmark, _t as ElmBookmarkIcon, Xt as ElmBreadcrumb, cn as ElmButton, Ot as ElmCallout, ln as ElmCheckbox, Jn as ElmCodeBlock, Zn as ElmColorSample, er as ElmColorTable, _n as ElmColumn, yn as ElmColumnList, rr as ElmCommandPalette, Sn as ElmConfirmModal, bt as ElmCubeIcon, Cn as ElmDesktopWindow, At as ElmDivider, S as ElmDotLoadingIcon, Jt as ElmFile, Mt as ElmFragmentIdentifier, D as ElmHeading, j as ElmImage, b as ElmInlineIcon, w as ElmInlineText, ur as ElmJarkup, ar as ElmJsonComponentRenderer, Xn as ElmKatex, nt as ElmLanguageIcon, It as ElmList, St as ElmLoginIcon, pr as ElmMarkdown, x as ElmMdiIcon, e as ElmMermaid, xn as ElmModal, Ut as ElmMultiProgress, hr as ElmOEmbed, Zt as ElmPageTop, wt as ElmParagraph, Tn as ElmParallax, Vt as ElmProgress, nn as ElmRectangleWave, un as ElmSelect, qn as ElmShikiHighlighter, kn as ElmSimpleTooltip, jn as ElmSnackbar, Nn as ElmSnackbarContainer, on as ElmSpinner, ct as ElmSquareLoadingIcon, Kt as ElmStatusMessage, dn as ElmSwitch, q as ElmTable, Rn as ElmTableBody, Bn as ElmTableCell, Hn as ElmTableHeader, $t as ElmTableOfContents, J as ElmTableRow, Pn as ElmTabs, Bt as ElmTemplate, pn as ElmTextField, Fn as ElmToggle, pt as ElmToggleTheme, On as ElmTooltip, mr as ElmTyping, Rt as ElmTypingAnimation, sn as ElmUnsupportedBlock, hn as ElmValidation, rt as LANGUAGES };
3085
+ export { ft as ElmArrowIcon, nn as ElmBlockFallback, Ct as ElmBlockQuote, Jt as ElmBookmark, ht as ElmBookmarkIcon, Yt as ElmBreadcrumb, sn as ElmButton, Et as ElmCallout, cn as ElmCheckbox, Yn as ElmCodeBlock, Qn as ElmColorSample, tr as ElmColorTable, gn as ElmColumn, vn as ElmColumnList, ir as ElmCommandPalette, Sn as ElmConfirmModal, vt as ElmCubeIcon, Cn as ElmDesktopWindow, Ot as ElmDivider, T as ElmDotLoadingIcon, qt as ElmFile, At as ElmFragmentIdentifier, k as ElmHeading, N as ElmImage, C as ElmInlineIcon, D as ElmInlineText, dr as ElmJarkup, or as ElmJsonComponentRenderer, Zn as ElmKatex, et as ElmLanguageIcon, Ft as ElmList, bt as ElmLoginIcon, mr as ElmMarkdown, w as ElmMdiIcon, e as ElmMermaid, xn as ElmModal, Ht as ElmMultiProgress, gr as ElmOEmbed, Xt as ElmPageTop, St as ElmParagraph, Tn as ElmParallax, Bt as ElmProgress, tn as ElmRectangleWave, ln as ElmSelect, Jn as ElmShikiHighlighter, kn as ElmSimpleTooltip, jn as ElmSnackbar, Nn as ElmSnackbarContainer, an as ElmSpinner, ot as ElmSquareLoadingIcon, Gt as ElmStatusMessage, un as ElmSwitch, Rn as ElmTable, zn as ElmTableBody, Vn as ElmTableCell, Un as ElmTableHeader, Qt as ElmTableOfContents, J as ElmTableRow, Pn as ElmTabs, zt as ElmTemplate, fn as ElmTextField, Fn as ElmToggle, dt as ElmToggleTheme, On as ElmTooltip, hr as ElmTyping, Lt as ElmTypingAnimation, on as ElmUnsupportedBlock, mn as ElmValidation, tt as LANGUAGES };