@elmethis/react 0.3.2 → 0.3.4

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 (290) hide show
  1. package/lib/ElmMermaid-BFqvHKdQ.js +71 -0
  2. package/lib/ElmMermaid-DDrDuDJ-.cjs +1 -0
  3. package/lib/index.react.cjs +1 -1
  4. package/lib/index.react.mjs +3034 -7
  5. package/lib/style.css +1 -1
  6. package/lib-types/components/code/ElmCodeBlock.d.ts +21 -0
  7. package/lib-types/components/code/ElmCodeBlock.d.ts.map +1 -0
  8. package/lib-types/components/code/ElmCodeBlock.stories.d.ts +9 -0
  9. package/lib-types/components/code/ElmCodeBlock.stories.d.ts.map +1 -0
  10. package/lib-types/components/code/ElmKatex.d.ts +18 -0
  11. package/lib-types/components/code/ElmKatex.d.ts.map +1 -0
  12. package/lib-types/components/code/ElmKatex.stories.d.ts +9 -0
  13. package/lib-types/components/code/ElmKatex.stories.d.ts.map +1 -0
  14. package/lib-types/components/code/ElmMermaid.d.ts +13 -0
  15. package/lib-types/components/code/ElmMermaid.d.ts.map +1 -0
  16. package/lib-types/components/code/ElmMermaid.stories.d.ts +8 -0
  17. package/lib-types/components/code/ElmMermaid.stories.d.ts.map +1 -0
  18. package/lib-types/components/code/ElmShikiHighlighter.d.ts +19 -0
  19. package/lib-types/components/code/ElmShikiHighlighter.d.ts.map +1 -0
  20. package/lib-types/components/code/ElmShikiHighlighter.stories.d.ts +7 -0
  21. package/lib-types/components/code/ElmShikiHighlighter.stories.d.ts.map +1 -0
  22. package/lib-types/components/code/shikiInstance.d.ts +3 -0
  23. package/lib-types/components/code/shikiInstance.d.ts.map +1 -0
  24. package/lib-types/components/containments/ElmColumn.d.ts +9 -0
  25. package/lib-types/components/containments/ElmColumn.d.ts.map +1 -0
  26. package/lib-types/components/containments/ElmColumn.stories.d.ts +7 -0
  27. package/lib-types/components/containments/ElmColumn.stories.d.ts.map +1 -0
  28. package/lib-types/components/containments/ElmColumnList.d.ts +9 -0
  29. package/lib-types/components/containments/ElmColumnList.d.ts.map +1 -0
  30. package/lib-types/components/containments/ElmColumnList.stories.d.ts +7 -0
  31. package/lib-types/components/containments/ElmColumnList.stories.d.ts.map +1 -0
  32. package/lib-types/components/containments/ElmConfirmModal.d.ts +23 -0
  33. package/lib-types/components/containments/ElmConfirmModal.d.ts.map +1 -0
  34. package/lib-types/components/containments/ElmConfirmModal.stories.d.ts +7 -0
  35. package/lib-types/components/containments/ElmConfirmModal.stories.d.ts.map +1 -0
  36. package/lib-types/components/containments/ElmDesktopWindow.d.ts +14 -0
  37. package/lib-types/components/containments/ElmDesktopWindow.d.ts.map +1 -0
  38. package/lib-types/components/containments/ElmDesktopWindow.stories.d.ts +7 -0
  39. package/lib-types/components/containments/ElmDesktopWindow.stories.d.ts.map +1 -0
  40. package/lib-types/components/containments/ElmModal.d.ts +18 -0
  41. package/lib-types/components/containments/ElmModal.d.ts.map +1 -0
  42. package/lib-types/components/containments/ElmModal.stories.d.ts +7 -0
  43. package/lib-types/components/containments/ElmModal.stories.d.ts.map +1 -0
  44. package/lib-types/components/containments/ElmParallax.d.ts +13 -0
  45. package/lib-types/components/containments/ElmParallax.d.ts.map +1 -0
  46. package/lib-types/components/containments/ElmParallax.stories.d.ts +7 -0
  47. package/lib-types/components/containments/ElmParallax.stories.d.ts.map +1 -0
  48. package/lib-types/components/containments/ElmSimpleTooltip.d.ts +13 -0
  49. package/lib-types/components/containments/ElmSimpleTooltip.d.ts.map +1 -0
  50. package/lib-types/components/containments/ElmSimpleTooltip.stories.d.ts +8 -0
  51. package/lib-types/components/containments/ElmSimpleTooltip.stories.d.ts.map +1 -0
  52. package/lib-types/components/containments/ElmSnackbar.d.ts +15 -0
  53. package/lib-types/components/containments/ElmSnackbar.d.ts.map +1 -0
  54. package/lib-types/components/containments/ElmSnackbar.stories.d.ts +7 -0
  55. package/lib-types/components/containments/ElmSnackbar.stories.d.ts.map +1 -0
  56. package/lib-types/components/containments/ElmSnackbarContainer.d.ts +18 -0
  57. package/lib-types/components/containments/ElmSnackbarContainer.d.ts.map +1 -0
  58. package/lib-types/components/containments/ElmSnackbarContainer.stories.d.ts +7 -0
  59. package/lib-types/components/containments/ElmSnackbarContainer.stories.d.ts.map +1 -0
  60. package/lib-types/components/containments/ElmTabs.d.ts +13 -0
  61. package/lib-types/components/containments/ElmTabs.d.ts.map +1 -0
  62. package/lib-types/components/containments/ElmTabs.stories.d.ts +7 -0
  63. package/lib-types/components/containments/ElmTabs.stories.d.ts.map +1 -0
  64. package/lib-types/components/containments/ElmToggle.d.ts +17 -0
  65. package/lib-types/components/containments/ElmToggle.d.ts.map +1 -0
  66. package/lib-types/components/containments/ElmToggle.stories.d.ts +8 -0
  67. package/lib-types/components/containments/ElmToggle.stories.d.ts.map +1 -0
  68. package/lib-types/components/containments/ElmTooltip.d.ts +13 -0
  69. package/lib-types/components/containments/ElmTooltip.d.ts.map +1 -0
  70. package/lib-types/components/containments/ElmTooltip.stories.d.ts +7 -0
  71. package/lib-types/components/containments/ElmTooltip.stories.d.ts.map +1 -0
  72. package/lib-types/components/data/ElmMultiProgress.d.ts +32 -0
  73. package/lib-types/components/data/ElmMultiProgress.d.ts.map +1 -0
  74. package/lib-types/components/data/ElmMultiProgress.stories.d.ts +7 -0
  75. package/lib-types/components/data/ElmMultiProgress.stories.d.ts.map +1 -0
  76. package/lib-types/components/data/ElmProgress.d.ts +40 -0
  77. package/lib-types/components/data/ElmProgress.d.ts.map +1 -0
  78. package/lib-types/components/data/ElmProgress.stories.d.ts +11 -0
  79. package/lib-types/components/data/ElmProgress.stories.d.ts.map +1 -0
  80. package/lib-types/components/data/ElmStatusMessage.d.ts +18 -0
  81. package/lib-types/components/data/ElmStatusMessage.d.ts.map +1 -0
  82. package/lib-types/components/data/ElmStatusMessage.stories.d.ts +10 -0
  83. package/lib-types/components/data/ElmStatusMessage.stories.d.ts.map +1 -0
  84. package/lib-types/components/embed/ElmOEmbed.d.ts +47 -0
  85. package/lib-types/components/embed/ElmOEmbed.d.ts.map +1 -0
  86. package/lib-types/components/embed/ElmOEmbed.stories.d.ts +8 -0
  87. package/lib-types/components/embed/ElmOEmbed.stories.d.ts.map +1 -0
  88. package/lib-types/components/fallback/ElmBlockFallback.d.ts +14 -0
  89. package/lib-types/components/fallback/ElmBlockFallback.d.ts.map +1 -0
  90. package/lib-types/components/fallback/ElmBlockFallback.stories.d.ts +7 -0
  91. package/lib-types/components/fallback/ElmBlockFallback.stories.d.ts.map +1 -0
  92. package/lib-types/components/fallback/ElmRectangleWave.d.ts +9 -0
  93. package/lib-types/components/fallback/ElmRectangleWave.d.ts.map +1 -0
  94. package/lib-types/components/fallback/ElmRectangleWave.stories.d.ts +7 -0
  95. package/lib-types/components/fallback/ElmRectangleWave.stories.d.ts.map +1 -0
  96. package/lib-types/components/fallback/ElmSpinner.d.ts +17 -0
  97. package/lib-types/components/fallback/ElmSpinner.d.ts.map +1 -0
  98. package/lib-types/components/fallback/ElmSpinner.stories.d.ts +7 -0
  99. package/lib-types/components/fallback/ElmSpinner.stories.d.ts.map +1 -0
  100. package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts +13 -0
  101. package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts.map +1 -0
  102. package/lib-types/components/fallback/ElmUnsupportedBlock.stories.d.ts +7 -0
  103. package/lib-types/components/fallback/ElmUnsupportedBlock.stories.d.ts.map +1 -0
  104. package/lib-types/components/form/ElmButton.d.ts +23 -0
  105. package/lib-types/components/form/ElmButton.d.ts.map +1 -0
  106. package/lib-types/components/form/ElmButton.stories.d.ts +11 -0
  107. package/lib-types/components/form/ElmButton.stories.d.ts.map +1 -0
  108. package/lib-types/components/form/ElmCheckbox.d.ts +19 -0
  109. package/lib-types/components/form/ElmCheckbox.d.ts.map +1 -0
  110. package/lib-types/components/form/ElmCheckbox.stories.d.ts +7 -0
  111. package/lib-types/components/form/ElmCheckbox.stories.d.ts.map +1 -0
  112. package/lib-types/components/form/ElmSelect.d.ts +29 -0
  113. package/lib-types/components/form/ElmSelect.d.ts.map +1 -0
  114. package/lib-types/components/form/ElmSelect.stories.d.ts +7 -0
  115. package/lib-types/components/form/ElmSelect.stories.d.ts.map +1 -0
  116. package/lib-types/components/form/ElmSwitch.d.ts +23 -0
  117. package/lib-types/components/form/ElmSwitch.d.ts.map +1 -0
  118. package/lib-types/components/form/ElmSwitch.stories.d.ts +7 -0
  119. package/lib-types/components/form/ElmSwitch.stories.d.ts.map +1 -0
  120. package/lib-types/components/form/ElmTextField.d.ts +33 -0
  121. package/lib-types/components/form/ElmTextField.d.ts.map +1 -0
  122. package/lib-types/components/form/ElmTextField.stories.d.ts +7 -0
  123. package/lib-types/components/form/ElmTextField.stories.d.ts.map +1 -0
  124. package/lib-types/components/form/ElmValidation.d.ts +16 -0
  125. package/lib-types/components/form/ElmValidation.d.ts.map +1 -0
  126. package/lib-types/components/form/ElmValidation.stories.d.ts +7 -0
  127. package/lib-types/components/form/ElmValidation.stories.d.ts.map +1 -0
  128. package/lib-types/components/icon/ElmArrowIcon.d.ts +25 -0
  129. package/lib-types/components/icon/ElmArrowIcon.d.ts.map +1 -0
  130. package/lib-types/components/icon/ElmArrowIcon.stories.d.ts +7 -0
  131. package/lib-types/components/icon/ElmArrowIcon.stories.d.ts.map +1 -0
  132. package/lib-types/components/icon/ElmBookmarkIcon.d.ts +21 -0
  133. package/lib-types/components/icon/ElmBookmarkIcon.d.ts.map +1 -0
  134. package/lib-types/components/icon/ElmBookmarkIcon.stories.d.ts +9 -0
  135. package/lib-types/components/icon/ElmBookmarkIcon.stories.d.ts.map +1 -0
  136. package/lib-types/components/icon/ElmCubeIcon.d.ts +13 -0
  137. package/lib-types/components/icon/ElmCubeIcon.d.ts.map +1 -0
  138. package/lib-types/components/icon/ElmCubeIcon.stories.d.ts +7 -0
  139. package/lib-types/components/icon/ElmCubeIcon.stories.d.ts.map +1 -0
  140. package/lib-types/components/icon/ElmDotLoadingIcon.d.ts +19 -0
  141. package/lib-types/components/icon/ElmDotLoadingIcon.d.ts.map +1 -0
  142. package/lib-types/components/icon/ElmDotLoadingIcon.stories.d.ts +7 -0
  143. package/lib-types/components/icon/ElmDotLoadingIcon.stories.d.ts.map +1 -0
  144. package/lib-types/components/icon/ElmInlineIcon.d.ts +17 -0
  145. package/lib-types/components/icon/ElmInlineIcon.d.ts.map +1 -0
  146. package/lib-types/components/icon/ElmInlineIcon.stories.d.ts +7 -0
  147. package/lib-types/components/icon/ElmInlineIcon.stories.d.ts.map +1 -0
  148. package/lib-types/components/icon/ElmLanguageIcon.d.ts +18 -0
  149. package/lib-types/components/icon/ElmLanguageIcon.d.ts.map +1 -0
  150. package/lib-types/components/icon/ElmLanguageIcon.stories.d.ts +7 -0
  151. package/lib-types/components/icon/ElmLanguageIcon.stories.d.ts.map +1 -0
  152. package/lib-types/components/icon/ElmLoginIcon.d.ts +21 -0
  153. package/lib-types/components/icon/ElmLoginIcon.d.ts.map +1 -0
  154. package/lib-types/components/icon/ElmLoginIcon.stories.d.ts +7 -0
  155. package/lib-types/components/icon/ElmLoginIcon.stories.d.ts.map +1 -0
  156. package/lib-types/components/icon/ElmMdiIcon.d.ts +18 -0
  157. package/lib-types/components/icon/ElmMdiIcon.d.ts.map +1 -0
  158. package/lib-types/components/icon/ElmMdiIcon.stories.d.ts +7 -0
  159. package/lib-types/components/icon/ElmMdiIcon.stories.d.ts.map +1 -0
  160. package/lib-types/components/icon/ElmSquareLoadingIcon.d.ts +17 -0
  161. package/lib-types/components/icon/ElmSquareLoadingIcon.d.ts.map +1 -0
  162. package/lib-types/components/icon/ElmSquareLoadingIcon.stories.d.ts +7 -0
  163. package/lib-types/components/icon/ElmSquareLoadingIcon.stories.d.ts.map +1 -0
  164. package/lib-types/components/icon/ElmToggleTheme.d.ts +13 -0
  165. package/lib-types/components/icon/ElmToggleTheme.d.ts.map +1 -0
  166. package/lib-types/components/icon/ElmToggleTheme.stories.d.ts +7 -0
  167. package/lib-types/components/icon/ElmToggleTheme.stories.d.ts.map +1 -0
  168. package/lib-types/components/icon/language.d.ts +3 -0
  169. package/lib-types/components/icon/language.d.ts.map +1 -0
  170. package/lib-types/components/media/ElmFile.d.ts +21 -0
  171. package/lib-types/components/media/ElmFile.d.ts.map +1 -0
  172. package/lib-types/components/media/ElmFile.stories.d.ts +8 -0
  173. package/lib-types/components/media/ElmFile.stories.d.ts.map +1 -0
  174. package/lib-types/components/media/ElmImage.d.ts +33 -0
  175. package/lib-types/components/media/ElmImage.d.ts.map +1 -0
  176. package/lib-types/components/media/ElmImage.stories.d.ts +10 -0
  177. package/lib-types/components/media/ElmImage.stories.d.ts.map +1 -0
  178. package/lib-types/components/navigation/ElmBookmark.d.ts +52 -0
  179. package/lib-types/components/navigation/ElmBookmark.d.ts.map +1 -0
  180. package/lib-types/components/navigation/ElmBookmark.stories.d.ts +9 -0
  181. package/lib-types/components/navigation/ElmBookmark.stories.d.ts.map +1 -0
  182. package/lib-types/components/navigation/ElmBreadcrumb.d.ts +22 -0
  183. package/lib-types/components/navigation/ElmBreadcrumb.d.ts.map +1 -0
  184. package/lib-types/components/navigation/ElmBreadcrumb.stories.d.ts +8 -0
  185. package/lib-types/components/navigation/ElmBreadcrumb.stories.d.ts.map +1 -0
  186. package/lib-types/components/navigation/ElmPageTop.d.ts +13 -0
  187. package/lib-types/components/navigation/ElmPageTop.d.ts.map +1 -0
  188. package/lib-types/components/navigation/ElmPageTop.stories.d.ts +7 -0
  189. package/lib-types/components/navigation/ElmPageTop.stories.d.ts.map +1 -0
  190. package/lib-types/components/navigation/ElmTableOfContents.d.ts +17 -0
  191. package/lib-types/components/navigation/ElmTableOfContents.d.ts.map +1 -0
  192. package/lib-types/components/navigation/ElmTableOfContents.stories.d.ts +8 -0
  193. package/lib-types/components/navigation/ElmTableOfContents.stories.d.ts.map +1 -0
  194. package/lib-types/components/others/ElmColorSample.d.ts +11 -0
  195. package/lib-types/components/others/ElmColorSample.d.ts.map +1 -0
  196. package/lib-types/components/others/ElmColorSample.stories.d.ts +8 -0
  197. package/lib-types/components/others/ElmColorSample.stories.d.ts.map +1 -0
  198. package/lib-types/components/others/ElmColorTable.d.ts +14 -0
  199. package/lib-types/components/others/ElmColorTable.d.ts.map +1 -0
  200. package/lib-types/components/others/ElmColorTable.stories.d.ts +7 -0
  201. package/lib-types/components/others/ElmColorTable.stories.d.ts.map +1 -0
  202. package/lib-types/components/others/ElmCommandPalette.d.ts +33 -0
  203. package/lib-types/components/others/ElmCommandPalette.d.ts.map +1 -0
  204. package/lib-types/components/others/ElmCommandPalette.stories.d.ts +7 -0
  205. package/lib-types/components/others/ElmCommandPalette.stories.d.ts.map +1 -0
  206. package/lib-types/components/others/ElmJarkup.d.ts +29 -0
  207. package/lib-types/components/others/ElmJarkup.d.ts.map +1 -0
  208. package/lib-types/components/others/ElmJarkup.stories.d.ts +8 -0
  209. package/lib-types/components/others/ElmJarkup.stories.d.ts.map +1 -0
  210. package/lib-types/components/others/ElmJsonComponentRenderer.d.ts +13 -0
  211. package/lib-types/components/others/ElmJsonComponentRenderer.d.ts.map +1 -0
  212. package/lib-types/components/others/ElmJsonComponentRenderer.stories.d.ts +7 -0
  213. package/lib-types/components/others/ElmJsonComponentRenderer.stories.d.ts.map +1 -0
  214. package/lib-types/components/others/ElmMarkdown.d.ts +24 -0
  215. package/lib-types/components/others/ElmMarkdown.d.ts.map +1 -0
  216. package/lib-types/components/others/ElmMarkdown.stories.d.ts +7 -0
  217. package/lib-types/components/others/ElmMarkdown.stories.d.ts.map +1 -0
  218. package/lib-types/components/others/ElmTyping.d.ts +11 -0
  219. package/lib-types/components/others/ElmTyping.d.ts.map +1 -0
  220. package/lib-types/components/others/ElmTyping.stories.d.ts +8 -0
  221. package/lib-types/components/others/ElmTyping.stories.d.ts.map +1 -0
  222. package/lib-types/components/table/ElmTable.d.ts +25 -0
  223. package/lib-types/components/table/ElmTable.d.ts.map +1 -0
  224. package/lib-types/components/table/ElmTable.stories.d.ts +8 -0
  225. package/lib-types/components/table/ElmTable.stories.d.ts.map +1 -0
  226. package/lib-types/components/table/ElmTableBody.d.ts +7 -0
  227. package/lib-types/components/table/ElmTableBody.d.ts.map +1 -0
  228. package/lib-types/components/table/ElmTableBody.stories.d.ts +7 -0
  229. package/lib-types/components/table/ElmTableBody.stories.d.ts.map +1 -0
  230. package/lib-types/components/table/ElmTableCell.d.ts +16 -0
  231. package/lib-types/components/table/ElmTableCell.d.ts.map +1 -0
  232. package/lib-types/components/table/ElmTableCell.stories.d.ts +7 -0
  233. package/lib-types/components/table/ElmTableCell.stories.d.ts.map +1 -0
  234. package/lib-types/components/table/ElmTableHeader.d.ts +7 -0
  235. package/lib-types/components/table/ElmTableHeader.d.ts.map +1 -0
  236. package/lib-types/components/table/ElmTableHeader.stories.d.ts +7 -0
  237. package/lib-types/components/table/ElmTableHeader.stories.d.ts.map +1 -0
  238. package/lib-types/components/table/ElmTableRow.d.ts +7 -0
  239. package/lib-types/components/table/ElmTableRow.d.ts.map +1 -0
  240. package/lib-types/components/table/ElmTableRow.stories.d.ts +7 -0
  241. package/lib-types/components/table/ElmTableRow.stories.d.ts.map +1 -0
  242. package/lib-types/components/table/TableContext.d.ts +3 -0
  243. package/lib-types/components/table/TableContext.d.ts.map +1 -0
  244. package/lib-types/components/template/ElmTemplate.d.ts +4 -1
  245. package/lib-types/components/template/ElmTemplate.d.ts.map +1 -1
  246. package/lib-types/components/template/ElmTemplate.stories.d.ts +7 -0
  247. package/lib-types/components/template/ElmTemplate.stories.d.ts.map +1 -0
  248. package/lib-types/components/typography/ElmBlockQuote.d.ts +13 -0
  249. package/lib-types/components/typography/ElmBlockQuote.d.ts.map +1 -0
  250. package/lib-types/components/typography/ElmBlockQuote.stories.d.ts +7 -0
  251. package/lib-types/components/typography/ElmBlockQuote.stories.d.ts.map +1 -0
  252. package/lib-types/components/typography/ElmCallout.d.ts +14 -0
  253. package/lib-types/components/typography/ElmCallout.d.ts.map +1 -0
  254. package/lib-types/components/typography/ElmCallout.stories.d.ts +11 -0
  255. package/lib-types/components/typography/ElmCallout.stories.d.ts.map +1 -0
  256. package/lib-types/components/typography/ElmDivider.d.ts +9 -0
  257. package/lib-types/components/typography/ElmDivider.d.ts.map +1 -0
  258. package/lib-types/components/typography/ElmDivider.stories.d.ts +7 -0
  259. package/lib-types/components/typography/ElmDivider.stories.d.ts.map +1 -0
  260. package/lib-types/components/typography/ElmFragmentIdentifier.d.ts +13 -0
  261. package/lib-types/components/typography/ElmFragmentIdentifier.d.ts.map +1 -0
  262. package/lib-types/components/typography/ElmFragmentIdentifier.stories.d.ts +7 -0
  263. package/lib-types/components/typography/ElmFragmentIdentifier.stories.d.ts.map +1 -0
  264. package/lib-types/components/typography/ElmHeading.d.ts +31 -0
  265. package/lib-types/components/typography/ElmHeading.d.ts.map +1 -0
  266. package/lib-types/components/typography/ElmHeading.stories.d.ts +8 -0
  267. package/lib-types/components/typography/ElmHeading.stories.d.ts.map +1 -0
  268. package/lib-types/components/typography/ElmInlineText.d.ts +24 -0
  269. package/lib-types/components/typography/ElmInlineText.d.ts.map +1 -0
  270. package/lib-types/components/typography/ElmInlineText.stories.d.ts +13 -0
  271. package/lib-types/components/typography/ElmInlineText.stories.d.ts.map +1 -0
  272. package/lib-types/components/typography/ElmList.d.ts +15 -0
  273. package/lib-types/components/typography/ElmList.d.ts.map +1 -0
  274. package/lib-types/components/typography/ElmList.stories.d.ts +9 -0
  275. package/lib-types/components/typography/ElmList.stories.d.ts.map +1 -0
  276. package/lib-types/components/typography/ElmParagraph.d.ts +10 -0
  277. package/lib-types/components/typography/ElmParagraph.d.ts.map +1 -0
  278. package/lib-types/components/typography/ElmParagraph.stories.d.ts +8 -0
  279. package/lib-types/components/typography/ElmParagraph.stories.d.ts.map +1 -0
  280. package/lib-types/components/typography/ElmTypingAnimation.d.ts +21 -0
  281. package/lib-types/components/typography/ElmTypingAnimation.d.ts.map +1 -0
  282. package/lib-types/components/typography/ElmTypingAnimation.stories.d.ts +7 -0
  283. package/lib-types/components/typography/ElmTypingAnimation.stories.d.ts.map +1 -0
  284. package/lib-types/hooks/useElmethisTheme.d.ts +5 -0
  285. package/lib-types/hooks/useElmethisTheme.d.ts.map +1 -0
  286. package/lib-types/lib.d.ts +68 -0
  287. package/lib-types/lib.d.ts.map +1 -1
  288. package/lib-types/styles/variables.d.ts +10 -0
  289. package/lib-types/styles/variables.d.ts.map +1 -0
  290. package/package.json +23 -4
@@ -1,10 +1,3037 @@
1
- import "react";
2
- import { jsx as e } from "react/jsx-runtime";
3
- //#region src/components/template/ElmTemplate.module.css
4
- var t = { "elm-template": "_elm-template_18rwn_1" }, n = (n) => /* @__PURE__ */ e("div", {
5
- className: t["elm-template"],
6
- style: n.style,
1
+ import { t as e } from "./ElmMermaid-BFqvHKdQ.js";
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
+ 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);
11
+ return /* @__PURE__ */ p("img", {
12
+ className: $e.icon,
13
+ src: n,
14
+ alt: t,
15
+ 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>");
17
+ }
18
+ });
19
+ }, et = { icon: "_icon_18sdb_1" }, tt = {
20
+ 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
+ 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
+ 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",
23
+ shell: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20128%20128'%20width='24'%20height='24'%3e%3cpath%20fill='none'%20d='M4.24%204.24h119.53v119.53H4.24z'%20/%3e%3cpath%20fill='%23293138'%20d='M109.01%2028.64L71.28%206.24c-2.25-1.33-4.77-2-7.28-2s-5.03.67-7.28%202.01l-37.74%2022.4c-4.5%202.67-7.28%207.61-7.28%2012.96v44.8c0%205.35%202.77%2010.29%207.28%2012.96l37.73%2022.4c2.25%201.34%204.76%202%207.28%202c2.51%200%205.03-.67%207.28-2l37.74-22.4c4.5-2.67%207.28-7.62%207.28-12.96V41.6c0-5.34-2.77-10.29-7.28-12.96M79.79%2098.59l.06%203.22c0%20.39-.25.83-.55.99l-1.91%201.1c-.3.15-.56-.03-.56-.42l-.03-3.17c-1.63.68-3.29.84-4.34.42c-.2-.08-.29-.37-.21-.71l.69-2.91c.06-.23.18-.46.34-.6c.06-.06.12-.1.18-.13c.11-.06.22-.07.31-.03c1.14.38%202.59.2%203.99-.5c1.78-.9%202.97-2.72%202.95-4.52c-.02-1.64-.9-2.31-3.05-2.33c-2.74.01-5.3-.53-5.34-4.57c-.03-3.32%201.69-6.78%204.43-8.96l-.03-3.25c0-.4.24-.84.55-1l1.85-1.18c.3-.15.56.04.56.43l.03%203.25c1.36-.54%202.54-.69%203.61-.44c.23.06.34.38.24.75l-.72%202.88c-.06.22-.18.44-.33.58a.8.8%200%200%201-.19.14c-.1.05-.19.06-.28.05c-.49-.11-1.65-.36-3.48.56c-1.92.97-2.59%202.64-2.58%203.88c.02%201.48.77%201.93%203.39%201.97c3.49.06%204.99%201.58%205.03%205.09c.05%203.44-1.79%207.15-4.61%209.41m26.34-60.5l-35.7%2022.05c-4.45%202.6-7.73%205.52-7.74%2010.89v43.99c0%203.21%201.3%205.29%203.29%205.9c-.65.11-1.32.19-1.98.19c-2.09%200-4.15-.57-5.96-1.64l-37.73-22.4c-3.69-2.19-5.98-6.28-5.98-10.67V41.6c0-4.39%202.29-8.48%205.98-10.67l37.74-22.4c1.81-1.07%203.87-1.64%205.96-1.64s4.15.57%205.96%201.64l37.74%2022.4c3.11%201.85%205.21%205.04%205.8%208.63c-1.27-2.67-4.09-3.39-7.38-1.47'%20/%3e%3cpath%20fill='%234fa847'%20d='m99.12%2090.73l-9.4%205.62c-.25.15-.43.31-.43.61v2.46c0%20.3.2.43.45.28l9.54-5.8c.25-.15.29-.42.29-.72v-2.17c0-.3-.2-.42-.45-.28'%20/%3e%3c/svg%3e",
24
+ terraform: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cg%20fill-rule='evenodd'%3e%3cpath%20fill='%235c4ee5'%20d='M77.941%2044.5v36.836L46.324%2062.918V26.082zm0%200'%20/%3e%3cpath%20fill='%234040b2'%20d='m81.41%2081.336l31.633-18.418V26.082L81.41%2044.5zm0%200'%20/%3e%3cpath%20fill='%235c4ee5'%20d='M11.242%2042.36L42.86%2060.776V23.941L11.242%205.523zm66.699%2043.015L46.324%2066.957v36.82l31.617%2018.418zm0%200'%20/%3e%3c/g%3e%3c/svg%3e",
25
+ html: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23e44d26'%20d='M19.037%20113.876L9.032%201.661h109.936l-10.016%20112.198l-45.019%2012.48z'%20/%3e%3cpath%20fill='%23f16529'%20d='m64%20116.8l36.378-10.086l8.559-95.878H64z'%20/%3e%3cpath%20fill='%23ebebeb'%20d='M64%2052.455H45.788L44.53%2038.361H64V24.599H29.489l.33%203.692l3.382%2037.927H64zm0%2035.743l-.061.017l-15.327-4.14l-.979-10.975H33.816l1.928%2021.609l28.193%207.826l.063-.017z'%20/%3e%3cpath%20fill='%23fff'%20d='M63.952%2052.455v13.763h16.947l-1.597%2017.849l-15.35%204.143v14.319l28.215-7.82l.207-2.325l3.234-36.233l.335-3.696h-3.708zm0-27.856v13.762h33.244l.276-3.092l.628-6.978l.329-3.692z'%20/%3e%3c/svg%3e",
26
+ css: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23639'%20d='M0%200h107.52C118.831%200%20128%209.168%20128%2020.48v87.04c0%2011.312-9.168%2020.48-20.48%2020.48H20.48C9.169%20128%200%20118.832%200%20107.52Z'%20/%3e%3cpath%20fill='%23fff'%20d='M45.836%20117.762c-8.219-.008-13.293-4.64-13.195-13.16V83.05q0-6.481%203.793-9.852c4.543-4.379%2015.082-4.644%2019.53.067c2.743%202.417%203.778%207.355%203.532%2011.964H50.06c.074-1.808-.024-4.554-1.09-5.586c-1.383-1.87-5.035-1.652-6.004.297c-.594%201.059-.89%202.621-.89%204.696v18.71q0%205.884%204.09%205.95q1.914-.001%202.905-1.39c.918-1.099%201.063-3.528.989-5.29h9.437c.645%208.969-4.652%2015.254-13.66%2015.144Zm29.957%200c-9.11.125-13.184-6.36-12.934-15.145h8.91c-.25%203.832%201.067%207.32%204.223%207.078q2.11%200%202.969-1.324c1.086-1.613%201.293-6.265-.266-8.066c-1.085-1.735-4.996-3.266-7.058-4.297q-4.423-2.115-6.367-5.027c-2.93-4.305-2.657-13.754%201.449-17.586c3.992-4.727%2014.414-4.942%2018.41-.098c2.465%202.496%203.54%207.41%203.332%2011.934h-8.578c.074-1.86-.102-4.86-.824-5.95q-.762-1.39-2.871-1.39q-3.762.001-3.762%204.496c.027%203.18%201.27%204.488%204.16%205.816c3.742%201.453%208.5%203.938%2010.227%206.942c5.144%209.16%201.613%2023.148-11.02%2022.613Zm28.77%200c-9.11.125-13.184-6.36-12.934-15.145h8.91c-.25%203.832%201.066%207.32%204.223%207.078q2.108%200%202.969-1.324c1.085-1.613%201.289-6.265-.266-8.066c-1.086-1.735-4.996-3.266-7.059-4.297q-4.423-2.115-6.367-5.027c-2.93-4.305-2.656-13.754%201.45-17.586c3.992-4.727%2014.413-4.942%2018.41-.098c2.464%202.496%203.539%207.41%203.332%2011.934h-8.579c.07-1.86-.101-4.86-.824-5.95q-.762-1.39-2.87-1.39q-3.763.001-3.763%204.496c.028%203.18%201.27%204.488%204.16%205.816c3.743%201.453%208.5%203.938%2010.227%206.942c5.145%209.16%201.614%2023.148-11.02%2022.613Z'%20/%3e%3c/svg%3e",
27
+ npm: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23cb3837'%20d='M0%207.062C0%203.225%203.225%200%207.062%200h113.88c3.838%200%207.063%203.225%207.063%207.062v113.88c0%203.838-3.225%207.063-7.063%207.063H7.062c-3.837%200-7.062-3.225-7.062-7.063zm23.69%2097.518h40.395l.05-58.532h19.494l-.05%2058.581h19.543l.05-78.075l-78.075-.1l-.1%2078.126z'%20/%3e%3cpath%20fill='%23fff'%20d='M25.105%2065.52V26.512H40.96c8.72%200%2026.274.034%2039.008.075l23.153.075v77.866H83.645v-58.54H64.057v58.54H25.105z'%20/%3e%3c/svg%3e",
28
+ java: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%230074bd'%20d='M47.617%2098.12s-4.767%202.774%203.397%203.71c9.892%201.13%2014.947.968%2025.845-1.092c0%200%202.871%201.795%206.873%203.351c-24.439%2010.47-55.308-.607-36.115-5.969m-2.988-13.665s-5.348%203.959%202.823%204.805c10.567%201.091%2018.91%201.18%2033.354-1.6c0%200%201.993%202.025%205.132%203.131c-29.542%208.64-62.446.68-41.309-6.336'%20/%3e%3cpath%20fill='%23ea2d2e'%20d='M69.802%2061.271c6.025%206.935-1.58%2013.17-1.58%2013.17s15.289-7.891%208.269-17.777c-6.559-9.215-11.587-13.792%2015.635-29.58c0%20.001-42.731%2010.67-22.324%2034.187'%20/%3e%3cpath%20fill='%230074bd'%20d='M102.123%20108.229s3.529%202.91-3.888%205.159c-14.102%204.272-58.706%205.56-71.094.171c-4.451-1.938%203.899-4.625%206.526-5.192c2.739-.593%204.303-.485%204.303-.485c-4.953-3.487-32.013%206.85-13.743%209.815c49.821%208.076%2090.817-3.637%2077.896-9.468M49.912%2070.294s-22.686%205.389-8.033%207.348c6.188.828%2018.518.638%2030.011-.326c9.39-.789%2018.813-2.474%2018.813-2.474s-3.308%201.419-5.704%203.053c-23.042%206.061-67.544%203.238-54.731-2.958c10.832-5.239%2019.644-4.643%2019.644-4.643m40.697%2022.747c23.421-12.167%2012.591-23.86%205.032-22.285c-1.848.385-2.677.72-2.677.72s.688-1.079%202-1.543c14.953-5.255%2026.451%2015.503-4.823%2023.725c0-.002.359-.327.468-.617'%20/%3e%3cpath%20fill='%23ea2d2e'%20d='M76.491%201.587S89.459%2014.563%2064.188%2034.51c-20.266%2016.006-4.621%2025.13-.007%2035.559c-11.831-10.673-20.509-20.07-14.688-28.815C58.041%2028.42%2081.722%2022.195%2076.491%201.587'%20/%3e%3cpath%20fill='%230074bd'%20d='M52.214%20126.021c22.476%201.437%2057-.8%2057.817-11.436c0%200-1.571%204.032-18.577%207.231c-19.186%203.612-42.854%203.191-56.887.874c0%20.001%202.875%202.381%2017.647%203.331'%20/%3e%3c/svg%3e",
29
+ kotlin: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cdefs%3e%3clinearGradient%20id='deviconKotlin0'%20x1='500.003'%20x2='-.097'%20y1='579.106'%20y2='1079.206'%20gradientTransform='translate(15.534%20-96.774)scale(.1939)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.003'%20stop-color='%23e44857'%20/%3e%3cstop%20offset='.469'%20stop-color='%23c711e1'%20/%3e%3cstop%20offset='1'%20stop-color='%237f52ff'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20fill='url(%23deviconKotlin0)'%20d='M112.484%20112.484H15.516V15.516h96.968L64%2064Zm0%200'%20/%3e%3c/svg%3e",
30
+ go: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cg%20fill='%2300acd7'%20fill-rule='evenodd'%3e%3cpath%20d='M11.156%2054.829c-.243%200-.303-.122-.182-.303l1.273-1.637c.12-.182.424-.303.666-.303H34.55c.243%200%20.303.182.182.364l-1.03%201.576c-.121.181-.424.363-.606.363zm-9.152%205.575c-.242%200-.303-.12-.182-.303l1.273-1.636c.121-.182.424-.303.667-.303h27.636c.242%200%20.364.182.303.364l-.485%201.454c-.06.243-.303.364-.545.364zM16.67%2065.98c-.242%200-.302-.182-.181-.364l.848-1.515c.122-.182.364-.363.607-.363h12.12c.243%200%20.364.181.364.424l-.12%201.454c0%20.243-.243.425-.425.425zm62.91-12.242c-3.819.97-6.425%201.697-10.182%202.666c-.91.243-.97.303-1.758-.606c-.909-1.03-1.576-1.697-2.848-2.303c-3.819-1.878-7.516-1.333-10.97.91c-4.121%202.666-6.242%206.605-6.182%2011.514c.06%204.849%203.394%208.849%208.182%209.516c4.121.545%207.576-.91%2010.303-4c.545-.667%201.03-1.394%201.636-2.243H56.064c-1.272%200-1.575-.788-1.151-1.818c.788-1.879%202.242-5.03%203.09-6.606c.183-.364.607-.97%201.516-.97h22.06c-.12%201.637-.12%203.273-.363%204.91c-.667%204.363-2.303%208.363-4.97%2011.878c-4.364%205.758-10.06%209.333-17.273%2010.303c-5.939.788-11.454-.364-16.302-4c-4.485-3.394-7.03-7.879-7.697-13.454c-.788-6.606%201.151-12.546%205.151-17.758c4.303-5.636%2010-9.212%2016.97-10.485c5.697-1.03%2011.151-.363%2016.06%202.97c3.212%202.121%205.515%205.03%207.03%208.545c.364.546.122.849-.606%201.03z'%20/%3e%3cpath%20fill-rule='nonzero'%20d='M99.64%2087.253c-5.515-.122-10.546-1.697-14.788-5.334c-3.576-3.09-5.818-7.03-6.545-11.697c-1.091-6.848.787-12.909%204.909-18.302c4.424-5.819%209.757-8.849%2016.97-10.122c6.181-1.09%2012-.484%2017.272%203.091c4.788%203.273%207.757%207.697%208.545%2013.515c1.03%208.182-1.333%2014.849-6.97%2020.546c-4%204.06-8.909%206.606-14.545%207.757c-1.636.303-3.273.364-4.848.546m14.424-24.485c-.06-.788-.06-1.394-.182-2c-1.09-6-6.606-9.394-12.363-8.06c-5.637%201.272-9.273%204.848-10.606%2010.545c-1.091%204.727%201.212%209.515%205.575%2011.454c3.334%201.455%206.667%201.273%209.879-.363c4.788-2.485%207.394-6.364%207.697-11.576'%20/%3e%3c/g%3e%3c/svg%3e",
31
+ python: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3clinearGradient%20id='deviconPython0'%20x1='70.252'%20x2='170.659'%20y1='1237.476'%20y2='1151.089'%20gradientTransform='matrix(.563%200%200%20-.568%20-29.215%20707.817)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%235a9fd4'%20/%3e%3cstop%20offset='1'%20stop-color='%23306998'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='deviconPython1'%20x1='209.474'%20x2='173.62'%20y1='1098.811'%20y2='1149.537'%20gradientTransform='matrix(.563%200%200%20-.568%20-29.215%20707.817)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23ffd43b'%20/%3e%3cstop%20offset='1'%20stop-color='%23ffe873'%20/%3e%3c/linearGradient%3e%3cpath%20fill='url(%23deviconPython0)'%20d='M63.391%201.988c-4.222.02-8.252.379-11.8%201.007c-10.45%201.846-12.346%205.71-12.346%2012.837v9.411h24.693v3.137H29.977c-7.176%200-13.46%204.313-15.426%2012.521c-2.268%209.405-2.368%2015.275%200%2025.096c1.755%207.311%205.947%2012.519%2013.124%2012.519h8.491V67.234c0-8.151%207.051-15.34%2015.426-15.34h24.665c6.866%200%2012.346-5.654%2012.346-12.548V15.833c0-6.693-5.646-11.72-12.346-12.837c-4.244-.706-8.645-1.027-12.866-1.008M50.037%209.557c2.55%200%204.634%202.117%204.634%204.721c0%202.593-2.083%204.69-4.634%204.69c-2.56%200-4.633-2.097-4.633-4.69c-.001-2.604%202.073-4.721%204.633-4.721'%20transform='translate(0%2010.26)'%20/%3e%3cpath%20fill='url(%23deviconPython1)'%20d='M91.682%2028.38v10.966c0%208.5-7.208%2015.655-15.426%2015.655H51.591c-6.756%200-12.346%205.783-12.346%2012.549v23.515c0%206.691%205.818%2010.628%2012.346%2012.547c7.816%202.297%2015.312%202.713%2024.665%200c6.216-1.801%2012.346-5.423%2012.346-12.547v-9.412H63.938v-3.138h37.012c7.176%200%209.852-5.005%2012.348-12.519c2.578-7.735%202.467-15.174%200-25.096c-1.774-7.145-5.161-12.521-12.348-12.521h-9.268zM77.809%2087.927c2.561%200%204.634%202.097%204.634%204.692c0%202.602-2.074%204.719-4.634%204.719c-2.55%200-4.633-2.117-4.633-4.719c0-2.595%202.083-4.692%204.633-4.692'%20transform='translate(0%2010.26)'%20/%3e%3cradialGradient%20id='deviconPython2'%20cx='1825.678'%20cy='444.45'%20r='26.743'%20gradientTransform='matrix(0%20-.24%20-1.055%200%20532.979%20557.576)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23b8b8b8'%20stop-opacity='0.498'%20/%3e%3cstop%20offset='1'%20stop-color='%237f7f7f'%20stop-opacity='0'%20/%3e%3c/radialGradient%3e%3cpath%20fill='url(%23deviconPython2)'%20d='M97.309%20119.597c0%203.543-14.816%206.416-33.091%206.416c-18.276%200-33.092-2.873-33.092-6.416s14.815-6.417%2033.092-6.417c18.275%200%2033.091%202.872%2033.091%206.417'%20opacity='0.444'%20/%3e%3c/svg%3e",
32
+ sql: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%2300618a'%20d='M117.688%2098.242c-6.973-.191-12.297.461-16.852%202.379c-1.293.547-3.355.559-3.566%202.18c.711.746.82%201.859%201.387%202.777c1.086%201.754%202.922%204.113%204.559%205.352c1.789%201.348%203.633%202.793%205.551%203.961c3.414%202.082%207.223%203.27%2010.504%205.352c1.938%201.23%203.859%202.777%205.75%204.164c.934.684%201.563%201.75%202.773%202.18v-.195c-.637-.812-.801-1.93-1.387-2.777l-2.578-2.578c-2.52-3.344-5.719-6.281-9.117-8.719c-2.711-1.949-8.781-4.578-9.91-7.73l-.199-.199c1.922-.219%204.172-.914%205.949-1.391c2.98-.797%205.645-.59%208.719-1.387l4.164-1.187v-.793c-1.555-1.594-2.664-3.707-4.359-5.152c-4.441-3.781-9.285-7.555-14.273-10.703c-2.766-1.746-6.184-2.883-9.117-4.363c-.988-.496-2.719-.758-3.371-1.586c-1.539-1.961-2.379-4.449-3.566-6.738c-2.488-4.793-4.93-10.023-7.137-15.066c-1.504-3.437-2.484-6.828-4.359-9.91c-9-14.797-18.687-23.73-33.695-32.508c-3.195-1.867-7.039-2.605-11.102-3.57l-6.543-.395c-1.332-.555-2.715-2.184-3.965-2.977C16.977%203.52%204.223-3.312.539%205.672C-1.785%2011.34%204.016%2016.871%206.09%2019.746c1.457%202.012%203.32%204.273%204.359%206.539c.688%201.492.805%202.984%201.391%204.559c1.438%203.883%202.695%208.109%204.559%2011.695c.941%201.816%201.98%203.727%203.172%205.352c.727.996%201.98%201.438%202.18%202.973c-1.227%201.715-1.297%204.375-1.984%206.543c-3.098%209.77-1.926%2021.91%202.578%2029.137c1.383%202.223%204.641%206.98%209.117%205.156c3.918-1.598%203.043-6.539%204.164-10.902c.254-.988.098-1.715.594-2.379v.199l3.57%207.133c2.641%204.254%207.324%208.699%2011.297%2011.699c2.059%201.555%203.68%204.242%206.344%205.152v-.199h-.199c-.516-.805-1.324-1.137-1.98-1.781c-1.551-1.523-3.277-3.414-4.559-5.156c-3.613-4.902-6.805-10.27-9.711-15.855c-1.391-2.668-2.598-5.609-3.77-8.324c-.453-1.047-.445-2.633-1.387-3.172c-1.281%201.988-3.172%203.598-4.164%205.945c-1.582%203.754-1.789%208.336-2.375%2013.082c-.348.125-.195.039-.398.199c-2.762-.668-3.73-3.508-4.758-5.949c-2.594-6.164-3.078-16.09-.793-23.191c.59-1.836%203.262-7.617%202.18-9.316c-.516-1.691-2.219-2.672-3.172-3.965c-1.18-1.598-2.355-3.703-3.172-5.551c-2.125-4.805-3.113-10.203-5.352-15.062c-1.07-2.324-2.875-4.676-4.359-6.738c-1.645-2.289-3.484-3.977-4.758-6.742c-.453-.984-1.066-2.559-.398-3.566c.215-.684.516-.969%201.191-1.191c1.148-.887%204.352.297%205.547.793c3.18%201.32%205.832%202.578%208.527%204.363c1.289.855%202.598%202.512%204.16%202.973h1.785c2.789.641%205.914.195%208.523.988c4.609%201.402%208.738%203.582%2012.488%205.949c11.422%207.215%2020.766%2017.48%2027.156%2029.734c1.027%201.973%201.473%203.852%202.379%205.945c1.824%204.219%204.125%208.559%205.941%2012.688c1.816%204.113%203.582%208.27%206.148%2011.695c1.348%201.801%206.551%202.766%208.918%203.766c1.66.699%204.379%201.43%205.949%202.379c3%201.809%205.906%203.965%208.723%205.945c1.402.992%205.73%203.168%205.945%204.957zm-88.605-75.52c-1.453-.027-2.48.156-3.566.395v.199h.195c.695%201.422%201.918%202.34%202.777%203.566l1.98%204.164l.199-.195c1.227-.867%201.789-2.25%201.781-4.363c-.492-.52-.562-1.164-.992-1.785c-.562-.824-1.66-1.289-2.375-1.98zm0%200'%20/%3e%3c/svg%3e",
33
+ json: "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='M5%203h2v2H5v5a2%202%200%200%201-2%202a2%202%200%200%201%202%202v5h2v2H5c-1.07-.27-2-.9-2-2v-4a2%202%200%200%200-2-2H0v-2h1a2%202%200%200%200%202-2V5a2%202%200%200%201%202-2m14%200a2%202%200%200%201%202%202v4a2%202%200%200%200%202%202h1v2h-1a2%202%200%200%200-2%202v4a2%202%200%200%201-2%202h-2v-2h2v-5a2%202%200%200%201%202-2a2%202%200%200%201-2-2V5h-2V3zm-7%2012a1%201%200%200%201%201%201a1%201%200%200%201-1%201a1%201%200%200%201-1-1a1%201%200%200%201%201-1m-4%200a1%201%200%200%201%201%201a1%201%200%200%201-1%201a1%201%200%200%201-1-1a1%201%200%200%201%201-1m8%200a1%201%200%200%201%201%201a1%201%200%200%201-1%201a1%201%200%200%201-1-1a1%201%200%200%201%201-1'%20/%3e%3c/svg%3e",
34
+ lua: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23000080'%20d='M112.956.708c-7.912%200-14.335%206.424-14.335%2014.336s6.424%2014.335%2014.335%2014.335s14.335-6.41%2014.335-14.335c0-7.912-6.424-14.336-14.335-14.336M64%2015.058c-27.02%200-48.956%2021.935-48.956%2048.955S36.979%20112.97%2064%20112.97c27.02%200%2048.956-21.935%2048.956-48.956c0-27.02-21.936-48.956-48.956-48.956'%20/%3e%3cpath%20fill='%23fff'%20d='M84.285%2029.392c-7.91%200-14.335%206.424-14.335%2014.335s6.424%2014.336%2014.335%2014.336s14.336-6.424%2014.336-14.336s-6.424-14.335-14.335-14.335zM30.773%2056.36v32.119h19.961v-3.611H34.87V56.359Zm57.584%208.37c-3.354%200-6.126.975-7.668%202.692c-1.055%201.19-1.488%202.516-1.582%204.801h3.705c.311-2.826%201.988-4.098%205.423-4.098c3.3%200%205.153%201.231%205.153%203.435v.974c0%201.542-.92%202.205-3.827%202.556c-5.193.663-5.991.839-7.398%201.407c-2.69%201.095-4.057%203.164-4.057%206.166c0%204.193%202.908%206.83%207.574%206.83c2.907%200%205.247-1.014%207.843-3.395c.257%202.34%201.407%203.395%203.787%203.395c.757%200%201.325-.081%202.515-.392v-2.773a3%203%200%200%201-.798.095c-1.284%200-1.988-.663-1.988-1.812V71.032c0-4.098-3.002-6.302-8.682-6.302m-33.742.664V83.19c0%203.84%202.867%206.302%207.357%206.302c3.395%200%205.545-1.19%207.709-4.233v3.219h3.3V65.393h-3.652v13.09c0%204.72-2.475%207.804-6.302%207.804c-2.907%200-4.76-1.772-4.76-4.544v-16.35Zm38.773%2011.67v4.139c0%201.244-.365%201.988-1.46%203.002c-1.502%201.366-3.3%202.07-5.464%202.07c-2.867%200-4.544-1.367-4.544-3.706c0-2.42%201.636-3.665%205.558-4.233c3.881-.528%204.68-.703%205.91-1.271z'%20/%3e%3cpath%20fill='%23808080'%20d='M61.733%200a64%2064%200%200%200-5.57.436l.179%201.458a63%2063%200%200%201%205.442-.426zm5.585.046l-.075%201.468a62%2062%200%200%201%205.433.52L72.88.578a64%2064%200%200%200-5.561-.532Zm-16.665%201.31a63%2063%200%200%200-5.409%201.398l.43%201.405a62%2062%200%200%201%205.284-1.367Zm27.72.237l-.33%201.431a63%2063%200%200%201%205.262%201.455l.452-1.397a64%2064%200%200%200-5.384-1.489M39.98%204.623a64%2064%200%200%200-5.081%202.323l.668%201.308a62%2062%200%200%201%204.964-2.27zm49.012.41l-.573%201.353a63%2063%200%200%201%204.929%202.346l.688-1.298a64%2064%200%200%200-5.044-2.4ZM30.04%209.706a64%2064%200%200%200-4.6%203.17l.886%201.173a63%2063%200%200%201%204.494-3.098zm-8.906%206.728a64%2064%200%200%200-3.983%203.918l1.075%201.001a63%2063%200%200%201%203.891-3.827zm-7.61%208.165a64%2064%200%200%200-3.247%204.546l1.231.8a63%2063%200%200%201%203.172-4.44zm-6.086%209.357a64%2064%200%200%200-2.408%205.042l1.352.574a62%2062%200%200%201%202.352-4.925zm113.623.973l-1.31.667a63%2063%200%200%201%202.263%204.967l1.362-.55a64%2064%200%200%200-2.315-5.083zM3.075%2044.23a63%2063%200%200%200-1.49%205.385l1.432.328a62%2062%200%200%201%201.455-5.26Zm122.166%201.049l-1.404.429a63%2063%200%200%201%201.366%205.285l1.437-.306a64%2064%200%200%200-1.399-5.409zM.574%2055.108a64%2064%200%200%200-.528%205.561l1.467.075a63%2063%200%200%201%20.516-5.434Zm126.988%201.088l-1.458.179a63%2063%200%200%201%20.428%205.441l1.468-.05a64%2064%200%200%200-.438-5.57M1.468%2066.205L0%2066.255a64%2064%200%200%200%20.435%205.57l1.458-.179a63%2063%200%200%201-.425-5.441m125.018%201.071a63%2063%200%200%201-.518%205.434l1.455.203a64%2064%200%200%200%20.53-5.561zM2.79%2077.031l-1.437.304a63%2063%200%200%200%201.398%205.41l1.405-.43A62%2062%200%200%201%202.79%2077.03Zm122.188%201.046a62%2062%200%200%201-1.457%205.26l1.397.454a63%2063%200%200%200%201.492-5.384zM5.981%2087.459l-1.362.551a63%2063%200%200%200%202.323%205.082l1.307-.669a62%2062%200%200%201-2.268-4.964m115.627.99a62%2062%200%200%201-2.354%204.925l1.296.69a64%2064%200%200%200%202.41-5.04zM10.944%2097.17l-1.245.78a64%2064%200%200%200%203.17%204.6l1.172-.885a63%2063%200%200%201-3.097-4.495m105.534.904a63%2063%200%200%201-3.173%204.44l1.156.906a64%2064%200%200%200%203.249-4.545zm-98.96%207.8l-1.092.983a64%2064%200%200%200%203.917%203.983l1.002-1.074a63%2063%200%200%201-3.827-3.892m92.24.79a63%2063%200%200%201-3.893%203.826l.983%201.092a64%2064%200%200%200%203.984-3.916zm-84.263%206.648l-.906%201.157a64%2064%200%200%200%204.546%203.248l.8-1.232a63%2063%200%200%201-4.44-3.173m76.16.654a63%2063%200%200%201-4.495%203.096l.78%201.245a64%2064%200%200%200%204.6-3.17zm-67.018%205.294l-.691%201.296a64%2064%200%200%200%205.04%202.409l.575-1.352a62%2062%200%200%201-4.924-2.353m57.775.496a62%2062%200%200%201-4.964%202.268l.551%201.362a63%2063%200%200%200%205.082-2.322zm-47.74%203.77l-.453%201.396a63%2063%200%200%200%205.385%201.49l.329-1.43a62%2062%200%200%201-5.26-1.456zm37.632.322a62%2062%200%200%201-5.284%201.365l.304%201.437a63%2063%200%200%200%205.41-1.398zm-27.003%202.122l-.203%201.455a64%2064%200%200%200%205.561.529l.075-1.467a63%2063%200%200%201-5.433-.517m16.335.139a63%2063%200%200%201-5.442.424l.05%201.468a64%2064%200%200%200%205.57-.434z'%20/%3e%3c/svg%3e",
35
+ csharp: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%239b4f96'%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='%2368217a'%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.8zM97%2066.2l.9-4.3h-4.2v-4.7h5.1L100%2051h4.9l-1.2%206.1h3.8l1.2-6.1h4.8l-1.2%206.1h2.4v4.7h-3.3l-.9%204.3h4.2v4.7h-5.1l-1.2%206h-4.9l1.2-6h-3.8l-1.2%206h-4.8l1.2-6h-2.4v-4.7H97zm4.8%200h3.8l.9-4.3h-3.8z'%20/%3e%3c/svg%3e",
36
+ 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
+ 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
+ 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",
42
+ width: e.size,
43
+ height: e.size,
44
+ alt: e.language,
45
+ style: {
46
+ width: e.size,
47
+ height: e.size,
48
+ ...e.style
49
+ }
50
+ }), rt = [
51
+ "rust",
52
+ "javascript",
53
+ "typescript",
54
+ "shell",
55
+ "terraform",
56
+ "html",
57
+ "css",
58
+ "npm",
59
+ "java",
60
+ "kotlin",
61
+ "go",
62
+ "python",
63
+ "sql",
64
+ "json",
65
+ "lua",
66
+ "csharp",
67
+ "cpp",
68
+ "c",
69
+ "file"
70
+ ], it = {
71
+ icon: "_icon_g71ox_1",
72
+ "icon-theme-color": "_icon-theme-color_g71ox_10"
73
+ }, x = (e) => /* @__PURE__ */ p("div", {
74
+ style: e.style,
75
+ children: /* @__PURE__ */ p("svg", {
76
+ width: e.size || "1.25rem",
77
+ height: e.size || "1.25rem",
78
+ viewBox: "0 0 24 24",
79
+ focusable: "false",
80
+ role: "img",
81
+ children: /* @__PURE__ */ p("path", {
82
+ style: {
83
+ "--elmethis-scoped-color": e.colorLight ?? e.color,
84
+ "--elmethis-scoped-color-dark": e.colorDark ?? e.color,
85
+ ...e.style
86
+ },
87
+ className: e.useThemeColor ? it["icon-theme-color"] : it.icon,
88
+ fill: "currentColor",
89
+ d: e.d
90
+ })
91
+ })
92
+ }), at = {
93
+ wrapper: "_wrapper_1q92c_15",
94
+ dot: "_dot_1q92c_22",
95
+ bounce: "_bounce_1q92c_1"
96
+ }, S = (e) => {
97
+ let { color: t, size: n = "64px", style: r } = e;
98
+ return /* @__PURE__ */ p("div", {
99
+ className: at.wrapper,
100
+ style: {
101
+ width: n,
102
+ height: n,
103
+ ...r
104
+ },
105
+ children: [
106
+ 1,
107
+ 2,
108
+ 3
109
+ ].map((e) => /* @__PURE__ */ p("div", {
110
+ className: at.dot,
111
+ "aria-hidden": !0,
112
+ style: t ? { backgroundColor: t } : void 0
113
+ }, e))
114
+ });
115
+ }, ot = {
116
+ wrapper: "_wrapper_1yu3x_19",
117
+ square: "_square_1yu3x_28",
118
+ 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 });
121
+ return /* @__PURE__ */ p("div", {
122
+ className: ot.wrapper,
123
+ style: {
124
+ "--size": t,
125
+ "--dimensions": n,
126
+ "--duration": `${st}ms`,
127
+ ...r
128
+ },
129
+ children: a.map((e, t) => a.map((e, n) => /* @__PURE__ */ p("div", {
130
+ className: ot.square,
131
+ style: { "--delay": `${i * (t + n)}ms` }
132
+ }, `${t}-${n}`)))
133
+ });
134
+ }, lt = { icon: "_icon_x4u0f_1" }, ut = "elmethis-theme";
135
+ function dt() {
136
+ if (typeof document < "u") {
137
+ let e = document.documentElement.getAttribute("data-theme");
138
+ if (e != null) return e === "dark";
139
+ }
140
+ if (typeof localStorage < "u") {
141
+ let e = localStorage.getItem(ut);
142
+ if (e != null) return e === "dark";
143
+ }
144
+ return !1;
145
+ }
146
+ function ft() {
147
+ let [e, t] = d(dt), n = a(() => {
148
+ t((e) => !e);
149
+ }, []);
150
+ return s(() => {
151
+ if (typeof document < "u") {
152
+ document.documentElement.setAttribute("data-theme", e ? "dark" : "light");
153
+ let t = document.querySelector("body");
154
+ t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(ut, e ? "dark" : "light");
155
+ }
156
+ }, [e]), {
157
+ isDarkTheme: e,
158
+ toggleTheme: n
159
+ };
160
+ }
161
+ //#endregion
162
+ //#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
+ xmlns: "http://www.w3.org/2000/svg",
167
+ width: t,
168
+ height: t,
169
+ viewBox: "0 0 24 24",
170
+ className: lt.icon,
171
+ style: n,
172
+ onClick: i,
173
+ children: [
174
+ /* @__PURE__ */ m("path", {
175
+ fillOpacity: "0",
176
+ d: "M15.22 6.03l2.53-1.94L14.56 4L13.5 1l-1.06 3l-3.19.09l2.53 1.94l-.91 3.06l2.63-1.81l2.63 1.81z",
177
+ fill: "currentColor",
178
+ children: [/* @__PURE__ */ p("animate", {
179
+ id: "lineMdSunnyOutlineToMoonLoopTransition0",
180
+ fill: "freeze",
181
+ attributeName: "fill-opacity",
182
+ begin: "0.6s;lineMdSunnyOutlineToMoonLoopTransition0.begin+6s",
183
+ dur: "0.4s",
184
+ values: "0;1"
185
+ }), /* @__PURE__ */ p("animate", {
186
+ fill: "freeze",
187
+ attributeName: "fill-opacity",
188
+ begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+2.2s",
189
+ dur: "0.4s",
190
+ values: "1;0"
191
+ })]
192
+ }),
193
+ /* @__PURE__ */ m("path", {
194
+ fillOpacity: "0",
195
+ d: "M13.61 5.25L15.25 4l-2.06-.05L12.5 2l-.69 1.95L9.75 4l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z",
196
+ fill: "currentColor",
197
+ children: [/* @__PURE__ */ p("animate", {
198
+ fill: "freeze",
199
+ attributeName: "fill-opacity",
200
+ begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+3s",
201
+ dur: "0.4s",
202
+ values: "0;1"
203
+ }), /* @__PURE__ */ p("animate", {
204
+ fill: "freeze",
205
+ attributeName: "fill-opacity",
206
+ begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+5.2s",
207
+ dur: "0.4s",
208
+ values: "1;0"
209
+ })]
210
+ }),
211
+ /* @__PURE__ */ m("path", {
212
+ fillOpacity: "0",
213
+ d: "M19.61 12.25L21.25 11l-2.06-.05L18.5 9l-.69 1.95l-2.06.05l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z",
214
+ fill: "currentColor",
215
+ children: [/* @__PURE__ */ p("animate", {
216
+ fill: "freeze",
217
+ attributeName: "fill-opacity",
218
+ begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+0.4s",
219
+ dur: "0.4s",
220
+ values: "0;1"
221
+ }), /* @__PURE__ */ p("animate", {
222
+ fill: "freeze",
223
+ attributeName: "fill-opacity",
224
+ begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+2.8s",
225
+ dur: "0.4s",
226
+ values: "1;0"
227
+ })]
228
+ }),
229
+ /* @__PURE__ */ m("path", {
230
+ fillOpacity: "0",
231
+ d: "M20.828 9.731l1.876-1.439l-2.366-.067L19.552 6l-.786 2.225l-2.366.067l1.876 1.439L17.601 12l1.951-1.342L21.503 12z",
232
+ fill: "currentColor",
233
+ children: [/* @__PURE__ */ p("animate", {
234
+ fill: "freeze",
235
+ attributeName: "fill-opacity",
236
+ begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+3.4s",
237
+ dur: "0.4s",
238
+ values: "0;1"
239
+ }), /* @__PURE__ */ p("animate", {
240
+ fill: "freeze",
241
+ attributeName: "fill-opacity",
242
+ begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+5.6s",
243
+ dur: "0.4s",
244
+ values: "1;0"
245
+ })]
246
+ }),
247
+ /* @__PURE__ */ m("g", {
248
+ fill: "none",
249
+ stroke: "currentColor",
250
+ strokeLinecap: "round",
251
+ strokeLinejoin: "round",
252
+ strokeWidth: "2",
253
+ children: [/* @__PURE__ */ m("g", { children: [
254
+ /* @__PURE__ */ p("path", {
255
+ strokeDasharray: "2",
256
+ strokeDashoffset: "4",
257
+ d: "M12 21v1M21 12h1M12 3v-1M3 12h-1",
258
+ children: /* @__PURE__ */ p("animate", {
259
+ fill: "freeze",
260
+ attributeName: "stroke-dashoffset",
261
+ dur: "0.2s",
262
+ values: "4;2"
263
+ })
264
+ }),
265
+ /* @__PURE__ */ p("path", {
266
+ strokeDasharray: "2",
267
+ strokeDashoffset: "4",
268
+ d: "M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5",
269
+ children: /* @__PURE__ */ p("animate", {
270
+ fill: "freeze",
271
+ attributeName: "stroke-dashoffset",
272
+ begin: "0.2s",
273
+ dur: "0.2s",
274
+ values: "4;2"
275
+ })
276
+ }),
277
+ /* @__PURE__ */ p("set", {
278
+ fill: "freeze",
279
+ attributeName: "opacity",
280
+ begin: "0.5s",
281
+ to: "0"
282
+ })
283
+ ] }), /* @__PURE__ */ p("path", {
284
+ d: "M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z",
285
+ opacity: "0",
286
+ children: /* @__PURE__ */ p("set", {
287
+ fill: "freeze",
288
+ attributeName: "opacity",
289
+ begin: "0.5s",
290
+ to: "1"
291
+ })
292
+ })]
293
+ }),
294
+ /* @__PURE__ */ m("mask", {
295
+ id: "lineMdSunnyOutlineToMoonLoopTransition1",
296
+ children: [
297
+ /* @__PURE__ */ p("circle", {
298
+ cx: "12",
299
+ cy: "12",
300
+ r: "12",
301
+ fill: "#fff"
302
+ }),
303
+ /* @__PURE__ */ p("circle", {
304
+ cx: "12",
305
+ cy: "12",
306
+ r: "4",
307
+ children: /* @__PURE__ */ p("animate", {
308
+ fill: "freeze",
309
+ attributeName: "r",
310
+ begin: "0.1s",
311
+ dur: "0.4s",
312
+ values: "4;8"
313
+ })
314
+ }),
315
+ /* @__PURE__ */ m("circle", {
316
+ cx: "22",
317
+ cy: "2",
318
+ r: "3",
319
+ fill: "#fff",
320
+ children: [
321
+ /* @__PURE__ */ p("animate", {
322
+ fill: "freeze",
323
+ attributeName: "cx",
324
+ begin: "0.1s",
325
+ dur: "0.4s",
326
+ values: "22;18"
327
+ }),
328
+ /* @__PURE__ */ p("animate", {
329
+ fill: "freeze",
330
+ attributeName: "cy",
331
+ begin: "0.1s",
332
+ dur: "0.4s",
333
+ values: "2;6"
334
+ }),
335
+ /* @__PURE__ */ p("animate", {
336
+ fill: "freeze",
337
+ attributeName: "r",
338
+ begin: "0.1s",
339
+ dur: "0.4s",
340
+ values: "3;12"
341
+ })
342
+ ]
343
+ }),
344
+ /* @__PURE__ */ m("circle", {
345
+ cx: "22",
346
+ cy: "2",
347
+ r: "1",
348
+ children: [
349
+ /* @__PURE__ */ p("animate", {
350
+ fill: "freeze",
351
+ attributeName: "cx",
352
+ begin: "0.1s",
353
+ dur: "0.4s",
354
+ values: "22;18"
355
+ }),
356
+ /* @__PURE__ */ p("animate", {
357
+ fill: "freeze",
358
+ attributeName: "cy",
359
+ begin: "0.1s",
360
+ dur: "0.4s",
361
+ values: "2;6"
362
+ }),
363
+ /* @__PURE__ */ p("animate", {
364
+ fill: "freeze",
365
+ attributeName: "r",
366
+ begin: "0.1s",
367
+ dur: "0.4s",
368
+ values: "1;10"
369
+ })
370
+ ]
371
+ })
372
+ ]
373
+ }),
374
+ /* @__PURE__ */ m("circle", {
375
+ cx: "12",
376
+ cy: "12",
377
+ r: "6",
378
+ mask: "url(#lineMdSunnyOutlineToMoonLoopTransition1)",
379
+ fill: "currentColor",
380
+ children: [/* @__PURE__ */ p("animate", {
381
+ fill: "freeze",
382
+ attributeName: "r",
383
+ begin: "0.1s",
384
+ dur: "0.4s",
385
+ values: "6;10"
386
+ }), /* @__PURE__ */ p("set", {
387
+ fill: "freeze",
388
+ attributeName: "opacity",
389
+ begin: "0.5s",
390
+ to: "0"
391
+ })]
392
+ })
393
+ ]
394
+ }) : /* @__PURE__ */ m("svg", {
395
+ xmlns: "http://www.w3.org/2000/svg",
396
+ width: t,
397
+ height: t,
398
+ viewBox: "0 0 24 24",
399
+ className: lt.icon,
400
+ style: n,
401
+ onClick: i,
402
+ children: [
403
+ /* @__PURE__ */ m("g", {
404
+ fill: "none",
405
+ stroke: "currentColor",
406
+ strokeLinecap: "round",
407
+ strokeLinejoin: "round",
408
+ strokeWidth: "2",
409
+ children: [
410
+ /* @__PURE__ */ m("path", {
411
+ strokeDasharray: "2",
412
+ strokeDashoffset: "2",
413
+ d: "M12 19v1M19 12h1M12 5v-1M5 12h-1",
414
+ children: [/* @__PURE__ */ p("animate", {
415
+ fill: "freeze",
416
+ attributeName: "d",
417
+ begin: "1.2s",
418
+ dur: "0.2s",
419
+ values: "M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1"
420
+ }), /* @__PURE__ */ p("animate", {
421
+ fill: "freeze",
422
+ attributeName: "stroke-dashoffset",
423
+ begin: "1.2s",
424
+ dur: "0.2s",
425
+ values: "2;0"
426
+ })]
427
+ }),
428
+ /* @__PURE__ */ m("path", {
429
+ strokeDasharray: "2",
430
+ strokeDashoffset: "2",
431
+ d: "M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5",
432
+ children: [/* @__PURE__ */ p("animate", {
433
+ fill: "freeze",
434
+ attributeName: "d",
435
+ begin: "1.4s",
436
+ dur: "0.2s",
437
+ values: "M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"
438
+ }), /* @__PURE__ */ p("animate", {
439
+ fill: "freeze",
440
+ attributeName: "stroke-dashoffset",
441
+ begin: "1.4s",
442
+ dur: "0.2s",
443
+ values: "2;0"
444
+ })]
445
+ }),
446
+ /* @__PURE__ */ p("animateTransform", {
447
+ attributeName: "transform",
448
+ dur: "30s",
449
+ repeatCount: "indefinite",
450
+ type: "rotate",
451
+ values: "0 12 12;360 12 12"
452
+ })
453
+ ]
454
+ }),
455
+ /* @__PURE__ */ m("g", {
456
+ fill: "currentColor",
457
+ children: [/* @__PURE__ */ p("path", {
458
+ d: "M15.22 6.03L17.75 4.09L14.56 4L13.5 1L12.44 4L9.25 4.09L11.78 6.03L10.87 9.09L13.5 7.28L16.13 9.09L15.22 6.03Z",
459
+ children: /* @__PURE__ */ p("animate", {
460
+ fill: "freeze",
461
+ attributeName: "fill-opacity",
462
+ dur: "0.4s",
463
+ values: "1;0"
464
+ })
465
+ }), /* @__PURE__ */ p("path", {
466
+ d: "M19.61 12.25L21.25 11L19.19 10.95L18.5 9L17.81 10.95L15.75 11L17.39 12.25L16.8 14.23L18.5 13.06L20.2 14.23L19.61 12.25Z",
467
+ children: /* @__PURE__ */ p("animate", {
468
+ fill: "freeze",
469
+ attributeName: "fill-opacity",
470
+ begin: "0.2s",
471
+ dur: "0.4s",
472
+ values: "1;0"
473
+ })
474
+ })]
475
+ }),
476
+ /* @__PURE__ */ p("path", {
477
+ fill: "none",
478
+ stroke: "currentColor",
479
+ strokeLinecap: "round",
480
+ strokeLinejoin: "round",
481
+ strokeWidth: "2",
482
+ d: "M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z",
483
+ children: /* @__PURE__ */ p("set", {
484
+ fill: "freeze",
485
+ attributeName: "opacity",
486
+ begin: "0.6s",
487
+ to: "0"
488
+ })
489
+ }),
490
+ /* @__PURE__ */ m("mask", {
491
+ id: "lineMdMoonToSunnyOutlineLoopTransition0",
492
+ children: [
493
+ /* @__PURE__ */ p("circle", {
494
+ cx: "12",
495
+ cy: "12",
496
+ r: "12",
497
+ fill: "#fff"
498
+ }),
499
+ /* @__PURE__ */ p("circle", {
500
+ cx: "12",
501
+ cy: "12",
502
+ r: "8",
503
+ children: /* @__PURE__ */ p("animate", {
504
+ fill: "freeze",
505
+ attributeName: "r",
506
+ begin: "0.6s",
507
+ dur: "0.4s",
508
+ values: "8;4"
509
+ })
510
+ }),
511
+ /* @__PURE__ */ m("circle", {
512
+ cx: "18",
513
+ cy: "6",
514
+ r: "12",
515
+ fill: "#fff",
516
+ children: [
517
+ /* @__PURE__ */ p("animate", {
518
+ fill: "freeze",
519
+ attributeName: "cx",
520
+ begin: "0.6s",
521
+ dur: "0.4s",
522
+ values: "18;22"
523
+ }),
524
+ /* @__PURE__ */ p("animate", {
525
+ fill: "freeze",
526
+ attributeName: "cy",
527
+ begin: "0.6s",
528
+ dur: "0.4s",
529
+ values: "6;2"
530
+ }),
531
+ /* @__PURE__ */ p("animate", {
532
+ fill: "freeze",
533
+ attributeName: "r",
534
+ begin: "0.6s",
535
+ dur: "0.4s",
536
+ values: "12;3"
537
+ })
538
+ ]
539
+ }),
540
+ /* @__PURE__ */ m("circle", {
541
+ cx: "18",
542
+ cy: "6",
543
+ r: "10",
544
+ children: [
545
+ /* @__PURE__ */ p("animate", {
546
+ fill: "freeze",
547
+ attributeName: "cx",
548
+ begin: "0.6s",
549
+ dur: "0.4s",
550
+ values: "18;22"
551
+ }),
552
+ /* @__PURE__ */ p("animate", {
553
+ fill: "freeze",
554
+ attributeName: "cy",
555
+ begin: "0.6s",
556
+ dur: "0.4s",
557
+ values: "6;2"
558
+ }),
559
+ /* @__PURE__ */ p("animate", {
560
+ fill: "freeze",
561
+ attributeName: "r",
562
+ begin: "0.6s",
563
+ dur: "0.4s",
564
+ values: "10;1"
565
+ })
566
+ ]
567
+ })
568
+ ]
569
+ }),
570
+ /* @__PURE__ */ m("circle", {
571
+ cx: "12",
572
+ cy: "12",
573
+ r: "10",
574
+ mask: "url(#lineMdMoonToSunnyOutlineLoopTransition0)",
575
+ opacity: "0",
576
+ fill: "currentColor",
577
+ children: [/* @__PURE__ */ p("animate", {
578
+ fill: "freeze",
579
+ attributeName: "r",
580
+ begin: "0.6s",
581
+ dur: "0.4s",
582
+ values: "10;6"
583
+ }), /* @__PURE__ */ p("set", {
584
+ fill: "freeze",
585
+ attributeName: "opacity",
586
+ begin: "0.6s",
587
+ to: "1"
588
+ })]
589
+ })
590
+ ]
591
+ });
592
+ }, C = {
593
+ arrow: "_arrow_kn879_19",
594
+ loading: "_loading_kn879_49",
595
+ normal: "_normal_kn879_55",
596
+ pending: "_pending_kn879_64"
597
+ }, mt = (e) => {
598
+ 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
+ return /* @__PURE__ */ p("div", {
600
+ className: [
601
+ C.arrow,
602
+ !n && !r ? C.normal : void 0,
603
+ n ? C.loading : void 0,
604
+ !n && r ? C.pending : void 0
605
+ ].filter(Boolean).join(" "),
606
+ style: {
607
+ "--size": i,
608
+ transform: o,
609
+ ...a
610
+ }
611
+ });
612
+ }, ht = {
613
+ wrapper: "_wrapper_1c6r3_1",
614
+ favicon: "_favicon_1c6r3_24",
615
+ text: "_text_1c6r3_29"
616
+ }, gt = {
617
+ text: "_text_1nnze_1",
618
+ link: "_link_1nnze_19"
619
+ }, w = (e) => {
620
+ let t = (e) => {
621
+ let t = e.children;
622
+ 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
+ }, n = ({ favicon: e, href: t, children: n }) => /* @__PURE__ */ m("a", {
624
+ className: gt.link,
625
+ href: t,
626
+ target: "_blank",
627
+ rel: "noopener noreferrer",
628
+ children: [e && /* @__PURE__ */ p(b, { src: e }), n]
629
+ }), r = (e) => e.href ? n(e) : t(e);
630
+ return /* @__PURE__ */ p("span", {
631
+ className: gt.text,
632
+ style: {
633
+ "--elmethis-text-color-light": e.color,
634
+ "--elmethis-text-color-dark": e.color,
635
+ "--elmethis-text-background-color-light": e.backgroundColor,
636
+ "--elmethis-text-background-color-dark": e.backgroundColor,
637
+ color: e.color ?? (e.backgroundColor ? g(e.backgroundColor) > .5 ? "#3e434b" : "#eeeff1" : void 0),
638
+ backgroundColor: e.backgroundColor,
639
+ ...e.style
640
+ },
641
+ children: r(e)
642
+ });
643
+ }, _t = (e) => {
644
+ let { name: t, href: n, favicon: r, style: i } = e;
645
+ return /* @__PURE__ */ m("a", {
646
+ className: ht.wrapper,
647
+ href: n,
648
+ target: "_blank",
649
+ rel: "noopener noreferrer",
650
+ style: i,
651
+ children: [r == null ? /* @__PURE__ */ p(x, {
652
+ d: Se,
653
+ size: "2.5rem",
654
+ style: { opacity: .7 }
655
+ }) : /* @__PURE__ */ p("img", {
656
+ className: ht.favicon,
657
+ src: r,
658
+ alt: `favicon of ${t ?? n}`
659
+ }), /* @__PURE__ */ p("div", {
660
+ className: ht.text,
661
+ children: /* @__PURE__ */ p(w, {
662
+ size: ".6rem",
663
+ children: t ?? n
664
+ })
665
+ })]
666
+ });
667
+ }, vt = {
668
+ cube: "_cube_1merk_1",
669
+ "elmethis-cube-icon-rotate": "_elmethis-cube-icon-rotate_1merk_1",
670
+ face: "_face_1merk_8"
671
+ }, yt = [
672
+ {
673
+ name: "front",
674
+ rotate: ""
675
+ },
676
+ {
677
+ name: "back",
678
+ rotate: "rotateY(180deg)"
679
+ },
680
+ {
681
+ name: "left",
682
+ rotate: "rotateY(-90deg)"
683
+ },
684
+ {
685
+ name: "right",
686
+ rotate: "rotateY(90deg)"
687
+ },
688
+ {
689
+ name: "top",
690
+ rotate: "rotateX(90deg)"
691
+ },
692
+ {
693
+ name: "bottom",
694
+ rotate: "rotateX(-90deg)"
695
+ }
696
+ ], bt = (e) => {
697
+ let { size: t = 128, style: n } = e, r = l(() => `translateZ(${t / 2}px)`, [t]);
698
+ return /* @__PURE__ */ p("div", {
699
+ className: vt.cube,
700
+ style: {
701
+ width: `${t}px`,
702
+ height: `${t}px`,
703
+ ...n
704
+ },
705
+ children: yt.map((e) => /* @__PURE__ */ p("div", {
706
+ className: vt.face,
707
+ style: { transform: `${e.rotate} ${r}` }
708
+ }, e.name))
709
+ });
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";
712
+ return /* @__PURE__ */ p("div", {
713
+ className: xt.icon,
714
+ style: i,
715
+ children: /* @__PURE__ */ p(x, {
716
+ d: a,
717
+ color: o,
718
+ size: t
719
+ })
720
+ });
721
+ }, Ct = { paragraph: "_paragraph_ewdky_1" }, wt = (e) => /* @__PURE__ */ p("p", {
722
+ className: Ct.paragraph,
723
+ style: {
724
+ backgroundColor: e.backgroundColor,
725
+ ...e.style
726
+ },
727
+ children: e.children
728
+ }), T = {
729
+ blockquote: "_blockquote_x79j0_1",
730
+ cite: "_cite_x79j0_16",
731
+ icon: "_icon_x79j0_37"
732
+ }, Tt = (e) => /* @__PURE__ */ m("blockquote", {
733
+ ref: u(null),
734
+ className: T.blockquote,
735
+ cite: e.cite,
736
+ style: { ...e.style },
737
+ children: [
738
+ e.children,
739
+ e.cite && /* @__PURE__ */ p("cite", {
740
+ className: T.cite,
741
+ children: /* @__PURE__ */ p("a", {
742
+ href: e.cite,
743
+ target: "_blank",
744
+ rel: "noopener noreferrer",
745
+ children: e.cite
746
+ })
747
+ }),
748
+ /* @__PURE__ */ p("svg", {
749
+ className: T.icon,
750
+ style: {
751
+ top: "0.25rem",
752
+ left: "0.25rem"
753
+ },
754
+ viewBox: "0 0 24 24",
755
+ width: "1rem",
756
+ height: "1rem",
757
+ children: /* @__PURE__ */ p("path", { d: ke })
758
+ }),
759
+ /* @__PURE__ */ p("svg", {
760
+ className: T.icon,
761
+ style: {
762
+ bottom: "0.25rem",
763
+ right: "0.25rem"
764
+ },
765
+ viewBox: "0 0 24 24",
766
+ width: "1rem",
767
+ height: "1rem",
768
+ children: /* @__PURE__ */ p("path", { d: Oe })
769
+ })
770
+ ]
771
+ }), Et = {
772
+ callout: "_callout_16oli_1",
773
+ header: "_header_16oli_24"
774
+ }, Dt = Object.freeze({
775
+ note: {
776
+ code: "#6987b8",
777
+ icon: je
778
+ },
779
+ tip: {
780
+ code: "#59b57c",
781
+ icon: Pe
782
+ },
783
+ important: {
784
+ code: "#9771bd",
785
+ icon: Ke
786
+ },
787
+ warning: {
788
+ code: "#b8a36e",
789
+ icon: ne
790
+ },
791
+ caution: {
792
+ code: "#b36472",
793
+ icon: ie
794
+ }
795
+ }), Ot = ({ type: e = "note", ...t }) => {
796
+ let n = Dt[e];
797
+ return /* @__PURE__ */ m("aside", {
798
+ className: Et.callout,
799
+ style: {
800
+ "--elmethis-scoped-border-color": n.code,
801
+ "--elmethis-scoped-background-color": `color-mix(in srgb, ${n.code} 10%, transparent)`,
802
+ ...t.style
803
+ },
804
+ children: [/* @__PURE__ */ m("div", {
805
+ className: Et.header,
806
+ children: [/* @__PURE__ */ p(x, {
807
+ d: n.icon,
808
+ size: "1.25em",
809
+ color: n.code
810
+ }), /* @__PURE__ */ p(w, {
811
+ color: n.code,
812
+ children: e.toUpperCase()
813
+ })]
814
+ }), /* @__PURE__ */ p("div", { children: t.children })]
815
+ });
816
+ }, kt = { divider: "_divider_uq5jr_1" }, E = (e) => /* @__PURE__ */ p("hr", {
817
+ className: kt.divider,
818
+ style: e.style
819
+ }), At = { fragment: "_fragment_il7xb_1" }, jt = (e) => {
820
+ let t = a((e) => {
821
+ let t = new URL(window.location.href);
822
+ t.hash = e, window.history.replaceState(null, "", t.toString()), document.getElementById(e)?.scrollIntoView({ behavior: "smooth" });
823
+ }, []);
824
+ return /* @__PURE__ */ p("span", {
825
+ className: At.fragment,
826
+ style: e.style,
827
+ onClick: () => t(e.id),
828
+ children: "#"
829
+ });
830
+ }, D = {
831
+ "heading-common": "_heading-common_1ytfd_1",
832
+ h1: "_h1_1ytfd_22",
833
+ h2: "_h2_1ytfd_57",
834
+ h2__underline: "_h2__underline_1ytfd_91",
835
+ h3: "_h3_1ytfd_110",
836
+ h4: "_h4_1ytfd_130",
837
+ h5: "_h5_1ytfd_134",
838
+ h6: "_h6_1ytfd_138",
839
+ "heading-stretch": "_heading-stretch_1ytfd_1"
840
+ }, Mt = Object.freeze({
841
+ 1: 1.5,
842
+ 2: 1.4,
843
+ 3: 1.3,
844
+ 4: 1.2,
845
+ 5: 1.15,
846
+ 6: 1.1
847
+ }), Nt = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), O = ({ level: e = 1, disableFragmentIdentifier: t = !1, ...n }) => {
848
+ let r = u(null), [i, a] = d(!1);
849
+ s(() => {
850
+ let e = r.current;
851
+ if (!e) return;
852
+ let t = new IntersectionObserver(([e]) => {
853
+ a(e.isIntersecting);
854
+ });
855
+ return t.observe(e), () => t.disconnect();
856
+ }, []);
857
+ let o = `h${e}`, c = n.id ?? (n.text ? Nt(n.text) : void 0);
858
+ return /* @__PURE__ */ m(o, {
859
+ ref: r,
860
+ className: [D["heading-common"], D[`h${e}`]].filter(Boolean).join(" "),
861
+ id: c,
862
+ style: {
863
+ "--font-size": n.size ?? `${Mt[e]}rem`,
864
+ "--scale": +!!i,
865
+ "--opacity": +!!i,
866
+ ...n.style
867
+ },
868
+ children: [
869
+ n.text && /* @__PURE__ */ p("span", { children: n.text }),
870
+ n.children,
871
+ !t && c && /* @__PURE__ */ p(jt, { id: c }),
872
+ e === 2 && /* @__PURE__ */ p("span", {
873
+ className: D.h2__underline,
874
+ "aria-hidden": "true"
875
+ })
876
+ ]
877
+ });
878
+ }, k = {
879
+ "elmethis-list-common": "_elmethis-list-common_1qwri_1",
880
+ "elmethis-bulleted-list": "_elmethis-bulleted-list_1qwri_7",
881
+ "elmethis-numbered-list": "_elmethis-numbered-list_1qwri_25"
882
+ }, Pt = ({ listStyle: e = "unordered", ...t }) => {
883
+ let n = [k["elmethis-list-common"], e === "unordered" ? k["elmethis-bulleted-list"] : k["elmethis-numbered-list"]].join(" ");
884
+ return p(e === "ordered" ? "ol" : "ul", {
885
+ className: n,
886
+ style: t.style,
887
+ children: t.children
888
+ });
889
+ }, Ft = {
890
+ text: "_text_zrzts_1",
891
+ cursor: "_cursor_zrzts_30",
892
+ blink: "_blink_zrzts_1"
893
+ }, A = (e) => new Promise((t) => {
894
+ setTimeout(t, e);
895
+ }), It = ({ texts: e = [], interval: t = 3e3, fontSize: n = "1rem", ...r }) => {
896
+ let [i, a] = d(""), o = u(!1);
897
+ return s(() => (o.current = !1, (async () => {
898
+ for (; !o.current;) for (let n of e) {
899
+ for (let e = 0; e < n.length; e++) {
900
+ if (o.current || (await A(75), o.current)) return;
901
+ a(n.slice(0, e + 1));
902
+ }
903
+ if (await A(t), o.current) return;
904
+ for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await A(25), o.current)) return;
905
+ if (await A(200), o.current) return;
906
+ }
907
+ })(), () => {
908
+ o.current = !0;
909
+ }), [e, t]), /* @__PURE__ */ m("span", {
910
+ className: Ft.text,
911
+ style: {
912
+ fontSize: n,
913
+ ...r.style
914
+ },
915
+ children: [i, /* @__PURE__ */ p("span", {
916
+ className: Ft.cursor,
917
+ children: "\xA0"
918
+ })]
919
+ });
920
+ }, Lt = { "elm-template": "_elm-template_18rwn_1" }, Rt = (e) => /* @__PURE__ */ p("div", {
921
+ className: Lt["elm-template"],
922
+ style: e.style,
7
923
  children: "PLACEHOLDER"
924
+ }), j = {
925
+ progress: "_progress_e6hmw_1",
926
+ container: "_container_e6hmw_27",
927
+ value: "_value_e6hmw_41",
928
+ loading: "_loading_e6hmw_56",
929
+ buffer: "_buffer_e6hmw_72"
930
+ }, zt = ({ 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: j.progress,
932
+ value: e,
933
+ max: n
934
+ }), /* @__PURE__ */ m("div", {
935
+ className: j.container,
936
+ style: {
937
+ "--weight": r,
938
+ "--border-radius": i ? "calc(var(--weight) / 2)" : void 0,
939
+ "--color": a,
940
+ ...s
941
+ },
942
+ children: [
943
+ /* @__PURE__ */ p("div", {
944
+ className: j.value,
945
+ style: { "--scale-x": `scaleX(${o ? 0 : e / n})` }
946
+ }),
947
+ o && /* @__PURE__ */ p("div", { className: j.loading }),
948
+ /* @__PURE__ */ p("div", {
949
+ className: j.buffer,
950
+ style: { "--scale-x": `scaleX(${o ? 0 : t == null ? e / n : t / n})` }
951
+ })
952
+ ]
953
+ })] }), Bt = {
954
+ container: "_container_13d02_1",
955
+ bar: "_bar_13d02_15"
956
+ }, Vt = ({ progress: e, weight: t = "4px", round: n = !0, style: r }) => {
957
+ let i = l(() => {
958
+ let t = e.reduce((e, t) => e + t.value, 0), n = e.map((e) => e.value / t * 100);
959
+ return e.map((e, t) => ({
960
+ ...e,
961
+ scale: n[t] / 100,
962
+ start: n.slice(0, t).reduce((e, t) => e + t, 0)
963
+ }));
964
+ }, [e]);
965
+ return /* @__PURE__ */ p("div", {
966
+ className: Bt.container,
967
+ style: {
968
+ "--weight": t,
969
+ "--border-radius": n ? "calc(var(--weight) / 2)" : void 0,
970
+ ...r
971
+ },
972
+ children: i.map((e, t) => /* @__PURE__ */ p("div", {
973
+ className: Bt.bar,
974
+ style: {
975
+ "--transform": `translateX(${e.start}%) scaleX(${e.scale})`,
976
+ "--color": e.color
977
+ }
978
+ }, t))
979
+ });
980
+ }, Ht = { wrapper: "_wrapper_17chp_1" }, Ut = Object.freeze({
981
+ pending: {
982
+ color: "#6987b8",
983
+ icon: Ge
984
+ },
985
+ error: {
986
+ color: "#c56565",
987
+ icon: re
988
+ },
989
+ warning: {
990
+ color: "#cdb57b",
991
+ icon: ne
992
+ },
993
+ success: {
994
+ color: "#59b57c",
995
+ icon: pe
996
+ }
997
+ }), Wt = ({ status: e, message: t, style: n }) => {
998
+ let { color: r, icon: i } = Ut[e];
999
+ return /* @__PURE__ */ m("div", {
1000
+ className: Ht.wrapper,
1001
+ style: n,
1002
+ children: [/* @__PURE__ */ p(x, {
1003
+ d: i,
1004
+ color: r,
1005
+ size: "1em"
1006
+ }), /* @__PURE__ */ p(w, {
1007
+ color: r,
1008
+ children: t
1009
+ })]
1010
+ });
1011
+ }, M = {
1012
+ wrapper: "_wrapper_gcui5_1",
1013
+ error: "_error_gcui5_9",
1014
+ "image-frame": "_image-frame_gcui5_21",
1015
+ fallback: "_fallback_gcui5_29",
1016
+ pulse: "_pulse_gcui5_1",
1017
+ "image-inline": "_image-inline_gcui5_56",
1018
+ "image-block": "_image-block_gcui5_67",
1019
+ "alt-container": "_alt-container_gcui5_79",
1020
+ "alt-text": "_alt-text_gcui5_90",
1021
+ modal: "_modal_gcui5_94",
1022
+ "modal-image": "_modal-image_gcui5_108"
1023
+ }, N = ({ 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);
1025
+ return s(() => {
1026
+ let t = new Image();
1027
+ t.src = e, t.onload = () => {
1028
+ l(!1), h(!1);
1029
+ }, t.onerror = () => {
1030
+ l(!1), h(!0);
1031
+ };
1032
+ }, [e]), s(() => {
1033
+ let e = (e) => {
1034
+ e.key === "Escape" && (e.preventDefault(), _(!1));
1035
+ };
1036
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
1037
+ }, []), /* @__PURE__ */ m("div", {
1038
+ className: M.wrapper,
1039
+ ref: v,
1040
+ style: o,
1041
+ children: [
1042
+ f && /* @__PURE__ */ p("div", {
1043
+ className: M.error,
1044
+ children: /* @__PURE__ */ p(w, {
1045
+ color: "#c56565",
1046
+ size: "1.5rem",
1047
+ children: "Error loading image"
1048
+ })
1049
+ }),
1050
+ /* @__PURE__ */ m("div", {
1051
+ className: M["image-frame"],
1052
+ style: o,
1053
+ children: [c && /* @__PURE__ */ p("div", {
1054
+ className: M.fallback,
1055
+ style: {
1056
+ aspectRatio: i && a ? `${i} / ${a}` : "1200 / 630",
1057
+ width: i ? `${i}px` : void 0,
1058
+ height: a ? `${a}px` : void 0
1059
+ }
1060
+ }), /* @__PURE__ */ p("img", {
1061
+ className: n ? M["image-block"] : M["image-inline"],
1062
+ src: e,
1063
+ alt: t,
1064
+ width: i,
1065
+ height: a,
1066
+ onClick: () => {
1067
+ r && _(!0);
1068
+ },
1069
+ style: {
1070
+ "--width": i ? `${i}px` : void 0,
1071
+ "--height": a ? `${a}px` : void 0,
1072
+ cursor: r ? "zoom-in" : void 0,
1073
+ opacity: +(!c && !f),
1074
+ pointerEvents: !c && !f ? void 0 : "none"
1075
+ }
1076
+ })]
1077
+ }),
1078
+ n && !c && t != null && t.trim() !== "" && /* @__PURE__ */ m("div", {
1079
+ className: M["alt-container"],
1080
+ children: [/* @__PURE__ */ p(x, {
1081
+ d: He,
1082
+ color: "#b69545",
1083
+ style: { flexShrink: 0 }
1084
+ }), /* @__PURE__ */ p("div", {
1085
+ className: M["alt-text"],
1086
+ children: /* @__PURE__ */ p(w, {
1087
+ size: "0.8rem",
1088
+ children: t
1089
+ })
1090
+ })]
1091
+ }),
1092
+ g && /* @__PURE__ */ p("div", {
1093
+ className: M.modal,
1094
+ onClick: () => _(!1),
1095
+ children: /* @__PURE__ */ p("img", {
1096
+ className: M["modal-image"],
1097
+ src: e,
1098
+ alt: t,
1099
+ width: i,
1100
+ height: a
1101
+ })
1102
+ })
1103
+ ]
1104
+ });
1105
+ }, P = {
1106
+ file: "_file_sk4pw_1",
1107
+ "left-container": "_left-container_sk4pw_19",
1108
+ "right-container": "_right-container_sk4pw_26",
1109
+ "download-icon": "_download-icon_sk4pw_33"
1110
+ };
1111
+ //#endregion
1112
+ //#region src/components/media/ElmFile.tsx
1113
+ function Gt(e) {
1114
+ let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
1115
+ return t.length > 0 ? t[t.length - 1] : null;
1116
+ }
1117
+ var Kt = ({ name: e, src: t, filesize: n, style: r }) => {
1118
+ let i = a(async () => {
1119
+ let n;
1120
+ try {
1121
+ let r = await fetch(t);
1122
+ if (!r.ok) throw Error("Failed to download file");
1123
+ let i = await r.blob();
1124
+ n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ?? Gt(t) ?? "file", n.click();
1125
+ } catch (e) {
1126
+ console.error("ERROR:", e);
1127
+ } finally {
1128
+ n && URL.revokeObjectURL(n.href);
1129
+ }
1130
+ }, [t, e]), o = e ?? Gt(t) ?? "unknown file";
1131
+ return /* @__PURE__ */ m("div", {
1132
+ className: P.file,
1133
+ style: r,
1134
+ children: [/* @__PURE__ */ m("div", {
1135
+ className: P["left-container"],
1136
+ children: [/* @__PURE__ */ p(x, {
1137
+ d: Ee,
1138
+ size: "1.25em"
1139
+ }), /* @__PURE__ */ p(w, { children: o })]
1140
+ }), /* @__PURE__ */ m("div", {
1141
+ className: P["right-container"],
1142
+ children: [n && /* @__PURE__ */ p("span", {
1143
+ style: { opacity: .6 },
1144
+ children: /* @__PURE__ */ p(w, { children: n })
1145
+ }), /* @__PURE__ */ p("div", {
1146
+ className: P["download-icon"],
1147
+ onClick: i,
1148
+ children: /* @__PURE__ */ p(x, {
1149
+ d: xe,
1150
+ size: "1.25em"
1151
+ })
1152
+ })]
1153
+ })]
1154
+ });
1155
+ }, F = {
1156
+ parent: "_parent_1hx4v_1",
1157
+ bookmark: "_bookmark_1hx4v_23",
1158
+ image: "_image_1hx4v_42",
1159
+ typography: "_typography_1hx4v_62",
1160
+ title: "_title_1hx4v_73",
1161
+ date: "_date_1hx4v_81",
1162
+ link: "_link_1hx4v_90",
1163
+ favicon: "_favicon_1hx4v_100"
1164
+ }, qt = ({ 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) => {
1166
+ c && (e.preventDefault(), c());
1167
+ }, v = r != null && r.length > 100 ? r.slice(0, 100) + "..." : r;
1168
+ return /* @__PURE__ */ p("div", {
1169
+ className: F.parent,
1170
+ style: u,
1171
+ children: /* @__PURE__ */ m("a", {
1172
+ className: F.bookmark,
1173
+ href: a,
1174
+ target: t ? "_blank" : void 0,
1175
+ rel: "noopener noreferrer",
1176
+ onClick: _,
1177
+ children: [i != null && !h && /* @__PURE__ */ p("div", {
1178
+ className: F.image,
1179
+ children: /* @__PURE__ */ p("img", {
1180
+ src: i,
1181
+ alt: "OGP Image",
1182
+ onError: () => g(!0),
1183
+ style: {
1184
+ width: "100%",
1185
+ height: "100%",
1186
+ objectFit: "cover"
1187
+ }
1188
+ })
1189
+ }), /* @__PURE__ */ m("div", {
1190
+ className: F.typography,
1191
+ children: [
1192
+ /* @__PURE__ */ p("div", {
1193
+ className: F.title,
1194
+ children: /* @__PURE__ */ p(w, {
1195
+ bold: !0,
1196
+ children: n ?? "No title provided"
1197
+ })
1198
+ }),
1199
+ /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(w, {
1200
+ size: "0.8rem",
1201
+ children: /* @__PURE__ */ p("span", {
1202
+ style: { opacity: .6 },
1203
+ children: v
1204
+ })
1205
+ }) }),
1206
+ (o != null || s != null) && /* @__PURE__ */ m("div", {
1207
+ className: F.date,
1208
+ children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(x, {
1209
+ d: ue,
1210
+ size: "1em"
1211
+ }), /* @__PURE__ */ p(w, {
1212
+ size: "0.8rem",
1213
+ children: o
1214
+ })] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(x, {
1215
+ d: de,
1216
+ size: "1em"
1217
+ }), /* @__PURE__ */ p(w, {
1218
+ size: "0.8rem",
1219
+ children: s
1220
+ })] })]
1221
+ }),
1222
+ !e && a != null && /* @__PURE__ */ m("div", {
1223
+ className: F.link,
1224
+ children: [l && /* @__PURE__ */ p(b, { src: l }), /* @__PURE__ */ p(w, {
1225
+ size: "0.8rem",
1226
+ color: "#6987b8",
1227
+ children: a
1228
+ })]
1229
+ })
1230
+ ]
1231
+ })]
1232
+ })
1233
+ });
1234
+ }, I = {
1235
+ container: "_container_1r6mu_1",
1236
+ "link-container": "_link-container_1r6mu_10",
1237
+ text: "_text_1r6mu_36"
1238
+ }, Jt = ({ links: e, style: n }) => {
1239
+ let r = u(null), [i, a] = d(!1);
1240
+ return s(() => {
1241
+ let e = r.current;
1242
+ if (!e) return;
1243
+ let t = new IntersectionObserver(([e]) => {
1244
+ a(e.isIntersecting);
1245
+ });
1246
+ return t.observe(e), () => t.disconnect();
1247
+ }, []), /* @__PURE__ */ p("nav", {
1248
+ className: I.container,
1249
+ ref: r,
1250
+ style: {
1251
+ "--opacity": +!!i,
1252
+ ...n
1253
+ },
1254
+ children: e.map((n, r) => /* @__PURE__ */ m(t.Fragment, { children: [/* @__PURE__ */ m("div", {
1255
+ className: I["link-container"],
1256
+ onClick: n.onClick,
1257
+ children: [/* @__PURE__ */ p("span", {
1258
+ className: I.text,
1259
+ style: { "--delay": `${r * 100}ms` },
1260
+ children: /* @__PURE__ */ p(x, {
1261
+ d: r === 0 ? Ae : r === e.length - 1 ? ae : De,
1262
+ size: "1.25em"
1263
+ })
1264
+ }), /* @__PURE__ */ p("span", {
1265
+ className: I.text,
1266
+ style: { "--delay": `${r * 100 + 50}ms` },
1267
+ children: /* @__PURE__ */ p(w, { children: n.text })
1268
+ })]
1269
+ }), e.length !== r + 1 && /* @__PURE__ */ p("span", {
1270
+ className: I.text,
1271
+ style: { "--delay": `${r * 100 + 100}ms` },
1272
+ children: /* @__PURE__ */ p(x, {
1273
+ d: he,
1274
+ size: "1em",
1275
+ color: "#b69545"
1276
+ })
1277
+ })] }, r))
1278
+ });
1279
+ }, L = {
1280
+ wrapper: "_wrapper_1tlqa_1",
1281
+ "wrapper--visible": "_wrapper--visible_1tlqa_33",
1282
+ partial: "_partial_1tlqa_63",
1283
+ move: "_move_1tlqa_1",
1284
+ text: "_text_1tlqa_104"
1285
+ }, Yt = ({ position: e = "right", style: t }) => {
1286
+ let [n, r] = d(!1);
1287
+ s(() => {
1288
+ let e = () => {
1289
+ r(window.scrollY > 100);
1290
+ };
1291
+ return window.addEventListener("scroll", e, { passive: !0 }), e(), () => window.removeEventListener("scroll", e);
1292
+ }, []);
1293
+ let i = () => {
1294
+ window.scrollTo({
1295
+ top: 0,
1296
+ behavior: "smooth"
1297
+ });
1298
+ };
1299
+ return /* @__PURE__ */ m("nav", {
1300
+ className: `${L.wrapper} ${n ? L["wrapper--visible"] : ""}`,
1301
+ style: {
1302
+ "--size": "64px",
1303
+ left: e === "left" ? "0" : "auto",
1304
+ right: e === "right" ? "0" : "auto",
1305
+ ...t
1306
+ },
1307
+ onClick: i,
1308
+ children: [
1309
+ /* @__PURE__ */ p("div", {
1310
+ "aria-hidden": "true",
1311
+ className: L.partial
1312
+ }),
1313
+ /* @__PURE__ */ p("div", {
1314
+ "aria-hidden": "true",
1315
+ className: L.partial
1316
+ }),
1317
+ /* @__PURE__ */ p("div", {
1318
+ "aria-hidden": "true",
1319
+ className: L.partial
1320
+ }),
1321
+ /* @__PURE__ */ p("span", {
1322
+ className: L.text,
1323
+ children: "Back to Top"
1324
+ })
1325
+ ]
1326
+ });
1327
+ }, Xt = {
1328
+ toc: "_toc_eubcy_1",
1329
+ link: "_link_eubcy_15"
1330
+ }, Zt = ({ headings: e, style: t }) => /* @__PURE__ */ p("nav", {
1331
+ className: Xt.toc,
1332
+ style: t,
1333
+ children: e.map((e, t) => /* @__PURE__ */ m("a", {
1334
+ className: Xt.link,
1335
+ href: `#${e.id ?? e.text}`,
1336
+ style: { "--padding-left": `${e.level * .5}rem` },
1337
+ children: [
1338
+ /* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(w, {
1339
+ size: "0.6rem",
1340
+ color: "#6987b8",
1341
+ children: `H${e.level}`
1342
+ }) }),
1343
+ /* @__PURE__ */ p(w, { children: e.text }),
1344
+ /* @__PURE__ */ p(x, {
1345
+ d: Ve,
1346
+ size: "1em",
1347
+ color: "#6987b8"
1348
+ })
1349
+ ]
1350
+ }, t))
1351
+ }), Qt = { "block-fallback": "_block-fallback_adya7_1" }, $t = {
1352
+ "rectangle-wave": "_rectangle-wave_gxedo_21",
1353
+ "elm-rectangle-wave": "_elm-rectangle-wave_gxedo_1"
1354
+ }, en = (e) => /* @__PURE__ */ p("div", {
1355
+ "aria-hidden": !0,
1356
+ className: $t["rectangle-wave"],
1357
+ style: e.style
1358
+ }), tn = (e) => {
1359
+ let { height: t = "16rem", style: n } = e;
1360
+ return /* @__PURE__ */ m("div", {
1361
+ className: Qt["block-fallback"],
1362
+ style: {
1363
+ "--height": t,
1364
+ ...n
1365
+ },
1366
+ children: [/* @__PURE__ */ p(S, {}), /* @__PURE__ */ p(en, {})]
1367
+ });
1368
+ }, nn = {
1369
+ circle: "_circle_ycu2l_19",
1370
+ "draw-line": "_draw-line_ycu2l_1",
1371
+ rotate: "_rotate_ycu2l_1"
1372
+ }, rn = (e) => {
1373
+ let { radius: t = 16, weight: n = 2, style: r } = e;
1374
+ return /* @__PURE__ */ p("svg", {
1375
+ height: t * 2,
1376
+ width: t * 2,
1377
+ style: r,
1378
+ children: /* @__PURE__ */ p("circle", {
1379
+ className: nn.circle,
1380
+ cx: t,
1381
+ cy: t,
1382
+ r: t - n,
1383
+ fill: "transparent",
1384
+ strokeWidth: n
1385
+ })
1386
+ });
1387
+ }, R = {
1388
+ unsupported: "_unsupported_1xu4c_1",
1389
+ message: "_message_1xu4c_13",
1390
+ icon: "_icon_1xu4c_20",
1391
+ details: "_details_1xu4c_24"
1392
+ }, an = (e) => /* @__PURE__ */ m("div", {
1393
+ className: R.unsupported,
1394
+ style: e.style,
1395
+ children: [/* @__PURE__ */ m("div", {
1396
+ className: R.message,
1397
+ children: [/* @__PURE__ */ p("svg", {
1398
+ viewBox: "0 0 24 24",
1399
+ width: "1.25rem",
1400
+ height: "1.25rem",
1401
+ className: R.icon,
1402
+ children: /* @__PURE__ */ p("path", { d: je })
1403
+ }), /* @__PURE__ */ p(w, {
1404
+ color: "#868e9c",
1405
+ children: "UNSUPPORTED BLOCK"
1406
+ })]
1407
+ }), e.details && /* @__PURE__ */ p("div", {
1408
+ className: R.details,
1409
+ children: /* @__PURE__ */ p(w, {
1410
+ color: "#868e9c",
1411
+ children: e.details
1412
+ })
1413
+ })]
1414
+ }), z = {
1415
+ button: "_button_c0mex_1",
1416
+ "button-ornament": "_button-ornament_c0mex_29",
1417
+ normal: "_normal_c0mex_40",
1418
+ primary: "_primary_c0mex_50",
1419
+ colored: "_colored_c0mex_60",
1420
+ enable: "_enable_c0mex_64",
1421
+ flex: "_flex_c0mex_95",
1422
+ ripple: "_ripple_c0mex_117",
1423
+ "button-ripple": "_button-ripple_c0mex_1"
1424
+ }, on = ({ loading: e = !1, block: t = !1, disabled: n = !1, primary: r = !1, ...i }) => {
1425
+ let [o, c] = d(!1), l = u(void 0), { onClick: f } = i, h = a(() => {
1426
+ !e && !n && f && (c(!0), l.current = window.setTimeout(() => c(!1), 300), f());
1427
+ }, [
1428
+ e,
1429
+ n,
1430
+ f
1431
+ ]);
1432
+ return s(() => () => {
1433
+ l.current && clearTimeout(l.current);
1434
+ }, []), /* @__PURE__ */ m("button", {
1435
+ className: [
1436
+ z.button,
1437
+ !e && !n ? z.enable : "",
1438
+ i.color ? z.colored : "",
1439
+ !i.color && !r ? z.normal : "",
1440
+ !i.color && r ? z.primary : ""
1441
+ ].filter(Boolean).join(" "),
1442
+ style: {
1443
+ display: t ? "flex" : "inline-flex",
1444
+ width: t ? "100%" : "auto",
1445
+ cursor: n ? "not-allowed" : e ? "progress" : "pointer",
1446
+ "--opacity": n || e ? .6 : void 0,
1447
+ "--color": i.color,
1448
+ ...i.style
1449
+ },
1450
+ onClick: h,
1451
+ children: [
1452
+ o && /* @__PURE__ */ p("div", { className: z.ripple }),
1453
+ e ? /* @__PURE__ */ p(S, { size: "1.5rem" }) : /* @__PURE__ */ p("span", {
1454
+ className: z.flex,
1455
+ children: i.children
1456
+ }),
1457
+ /* @__PURE__ */ p("div", { className: z["button-ornament"] })
1458
+ ]
1459
+ });
1460
+ }, B = {
1461
+ container: "_container_12edl_1",
1462
+ "container-disable": "_container-disable_12edl_14",
1463
+ checkbox: "_checkbox_12edl_23",
1464
+ rect: "_rect_12edl_32",
1465
+ "rect-loading": "_rect-loading_12edl_36",
1466
+ "rect-checked": "_rect-checked_12edl_40",
1467
+ loading: "_loading_12edl_48",
1468
+ "check-line": "_check-line_12edl_67",
1469
+ "elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_12edl_1"
1470
+ }, sn = ({ loading: e = !1, disable: t = !1, checked: n = !1, ...r }) => {
1471
+ let { onChange: i } = r, o = a(() => {
1472
+ !e && !t && i && i(!n);
1473
+ }, [
1474
+ e,
1475
+ t,
1476
+ n,
1477
+ i
1478
+ ]), s = [B.container, t ? B["container-disable"] : ""].filter(Boolean).join(" "), c = [
1479
+ B.rect,
1480
+ n ? B["rect-checked"] : "",
1481
+ e ? B["rect-loading"] : ""
1482
+ ].filter(Boolean).join(" ");
1483
+ return /* @__PURE__ */ p("div", {
1484
+ className: s,
1485
+ style: r.style,
1486
+ onClick: o,
1487
+ children: /* @__PURE__ */ m("div", {
1488
+ style: {
1489
+ display: "flex",
1490
+ alignItems: "center",
1491
+ gap: "0.5rem"
1492
+ },
1493
+ children: [/* @__PURE__ */ m("svg", {
1494
+ width: "24",
1495
+ height: "24",
1496
+ className: B.checkbox,
1497
+ children: [
1498
+ /* @__PURE__ */ m("circle", {
1499
+ cx: "0",
1500
+ cy: "0",
1501
+ r: "2",
1502
+ className: B.loading,
1503
+ style: { opacity: +!!e },
1504
+ children: [/* @__PURE__ */ p("animate", {
1505
+ attributeName: "cx",
1506
+ values: "4; 20; 20; 4; 4",
1507
+ dur: "1.2s",
1508
+ repeatCount: "indefinite",
1509
+ keySplines: "0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1",
1510
+ calcMode: "spline"
1511
+ }), /* @__PURE__ */ p("animate", {
1512
+ attributeName: "cy",
1513
+ values: "4; 4; 20; 20; 4",
1514
+ dur: "1.2s",
1515
+ repeatCount: "indefinite",
1516
+ keySplines: "0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1",
1517
+ calcMode: "spline"
1518
+ })]
1519
+ }),
1520
+ /* @__PURE__ */ m("circle", {
1521
+ cx: "20",
1522
+ cy: "20",
1523
+ r: "2",
1524
+ className: B.loading,
1525
+ style: { opacity: +!!e },
1526
+ children: [/* @__PURE__ */ p("animate", {
1527
+ attributeName: "cx",
1528
+ values: "20; 4; 4; 20; 20",
1529
+ dur: "1.2s",
1530
+ repeatCount: "indefinite",
1531
+ keySplines: "0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1",
1532
+ calcMode: "spline"
1533
+ }), /* @__PURE__ */ p("animate", {
1534
+ attributeName: "cy",
1535
+ values: "20; 20; 4; 4; 20",
1536
+ dur: "1.2s",
1537
+ repeatCount: "indefinite",
1538
+ keySplines: "0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1",
1539
+ calcMode: "spline"
1540
+ })]
1541
+ }),
1542
+ /* @__PURE__ */ p("rect", {
1543
+ x: "4",
1544
+ y: "4",
1545
+ width: "16",
1546
+ height: "16",
1547
+ className: c,
1548
+ strokeWidth: "0.8"
1549
+ }),
1550
+ n && /* @__PURE__ */ p("polyline", {
1551
+ className: B["check-line"],
1552
+ points: "5,12 10,17 19,8",
1553
+ strokeWidth: "1.5",
1554
+ fill: "transparent"
1555
+ }),
1556
+ /* @__PURE__ */ p("line", {
1557
+ x1: "0",
1558
+ y1: "1",
1559
+ x2: "4",
1560
+ y2: "1",
1561
+ strokeWidth: "2",
1562
+ fill: "transparent"
1563
+ }),
1564
+ /* @__PURE__ */ p("line", {
1565
+ x1: "4",
1566
+ y1: "0",
1567
+ x2: "24",
1568
+ y2: "0",
1569
+ strokeWidth: "1",
1570
+ fill: "transparent"
1571
+ }),
1572
+ /* @__PURE__ */ p("line", {
1573
+ x1: "0",
1574
+ y1: "4",
1575
+ x2: "0",
1576
+ y2: "16",
1577
+ strokeWidth: "1",
1578
+ fill: "transparent"
1579
+ }),
1580
+ /* @__PURE__ */ p("line", {
1581
+ x1: "0",
1582
+ y1: "18",
1583
+ x2: "0",
1584
+ y2: "20",
1585
+ strokeWidth: "1",
1586
+ fill: "transparent"
1587
+ }),
1588
+ /* @__PURE__ */ p("line", {
1589
+ x1: "0",
1590
+ y1: "24",
1591
+ x2: "20",
1592
+ y2: "24",
1593
+ strokeWidth: "1",
1594
+ fill: "transparent"
1595
+ }),
1596
+ /* @__PURE__ */ p("line", {
1597
+ x1: "20",
1598
+ y1: "23",
1599
+ x2: "24",
1600
+ y2: "23",
1601
+ strokeWidth: "1.5",
1602
+ fill: "transparent"
1603
+ }),
1604
+ /* @__PURE__ */ p("line", {
1605
+ x1: "24",
1606
+ y1: "4",
1607
+ x2: "24",
1608
+ y2: "20",
1609
+ style: { strokeWidth: 1 },
1610
+ fill: "transparent"
1611
+ })
1612
+ ]
1613
+ }), /* @__PURE__ */ p("span", { children: r.label })]
1614
+ })
1615
+ });
1616
+ }, V = {
1617
+ wrapper: "_wrapper_3ipdq_1",
1618
+ active: "_active_3ipdq_29",
1619
+ header: "_header_3ipdq_33",
1620
+ label: "_label_3ipdq_41",
1621
+ body: "_body_3ipdq_54",
1622
+ select: "_select_3ipdq_63",
1623
+ selected: "_selected_3ipdq_72",
1624
+ fallback: "_fallback_3ipdq_77",
1625
+ pulldown: "_pulldown_3ipdq_85",
1626
+ option: "_option_3ipdq_105",
1627
+ description: "_description_3ipdq_127"
1628
+ }, cn = ({ disabled: e = !1, loading: t = !1, ...n }) => {
1629
+ let [r, i] = d(!1), o = u(null), c = a(() => {
1630
+ !e && !t && i((e) => !e);
1631
+ }, [e, t]), { options: l, onSelect: f } = n, h = a((e) => {
1632
+ let t = l.find((t) => t.id === e);
1633
+ t && f && f(t);
1634
+ }, [l, f]);
1635
+ return s(() => {
1636
+ let e = (e) => {
1637
+ o.current && !o.current.contains(e.target) && i(!1);
1638
+ };
1639
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1640
+ }, []), /* @__PURE__ */ m("div", {
1641
+ ref: o,
1642
+ className: [V.wrapper, r ? V.active : ""].filter(Boolean).join(" "),
1643
+ style: {
1644
+ backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
1645
+ "--highlight-color": r ? "#bfa056" : void 0,
1646
+ ...n.style
1647
+ },
1648
+ onClick: c,
1649
+ children: [/* @__PURE__ */ p("div", {
1650
+ className: V.header,
1651
+ children: /* @__PURE__ */ p("span", {
1652
+ className: V.label,
1653
+ children: n.label
1654
+ })
1655
+ }), /* @__PURE__ */ p("div", {
1656
+ className: V.body,
1657
+ children: /* @__PURE__ */ m("div", {
1658
+ className: V.select,
1659
+ children: [
1660
+ /* @__PURE__ */ p("div", {
1661
+ className: V.selected,
1662
+ children: n.selectedOption ? /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", { children: n.selectedOption.label }), n.selectedOption.description && /* @__PURE__ */ p("span", {
1663
+ className: V.description,
1664
+ children: n.selectedOption.description
1665
+ })] }) : /* @__PURE__ */ m("div", {
1666
+ className: V.fallback,
1667
+ children: [/* @__PURE__ */ p(x, { d: se }), /* @__PURE__ */ p("span", { children: n.placeholder ?? "Select an option" })]
1668
+ })
1669
+ }),
1670
+ /* @__PURE__ */ p(x, {
1671
+ d: Ve,
1672
+ size: "1.5rem"
1673
+ }),
1674
+ r && /* @__PURE__ */ p("div", {
1675
+ className: V.pulldown,
1676
+ children: n.options.map((e) => /* @__PURE__ */ m("div", {
1677
+ className: V.option,
1678
+ onClick: (t) => {
1679
+ t.stopPropagation(), h(e.id);
1680
+ },
1681
+ children: [
1682
+ /* @__PURE__ */ p(x, {
1683
+ d: he,
1684
+ color: "#868e9c",
1685
+ size: "0.75em"
1686
+ }),
1687
+ /* @__PURE__ */ p("span", { children: e.label }),
1688
+ e.description && /* @__PURE__ */ p("span", {
1689
+ className: V.description,
1690
+ children: e.description
1691
+ })
1692
+ ]
1693
+ }, e.id))
1694
+ })
1695
+ ]
1696
+ })
1697
+ })]
1698
+ });
1699
+ }, H = {
1700
+ switch: "_switch_8t362_1",
1701
+ bar: "_bar_8t362_5",
1702
+ "bar-checked": "_bar-checked_8t362_21",
1703
+ "bar-disabled": "_bar-disabled_8t362_26",
1704
+ circle: "_circle_8t362_30",
1705
+ "circle-checked": "_circle-checked_8t362_45",
1706
+ "circle-disabled": "_circle-disabled_8t362_49"
1707
+ }, ln = ({ color: e = "#bfa056", size: t = "18px", disabled: n = !1, checked: r = !1, ...i }) => {
1708
+ let { onChange: o } = i, s = a(() => {
1709
+ !n && o && o(!r);
1710
+ }, [
1711
+ n,
1712
+ r,
1713
+ o
1714
+ ]), c = [
1715
+ H.bar,
1716
+ r ? H["bar-checked"] : "",
1717
+ n ? H["bar-disabled"] : ""
1718
+ ].filter(Boolean).join(" "), l = [
1719
+ H.circle,
1720
+ r ? H["circle-checked"] : "",
1721
+ n ? H["circle-disabled"] : ""
1722
+ ].filter(Boolean).join(" ");
1723
+ return /* @__PURE__ */ m("div", {
1724
+ onClick: s,
1725
+ style: {
1726
+ "--color": e,
1727
+ "--padding": "2px",
1728
+ "--size": t,
1729
+ "--width": `calc(${t} * 2 + 2px * 2)`,
1730
+ ...i.style
1731
+ },
1732
+ children: [/* @__PURE__ */ p("input", {
1733
+ className: H.switch,
1734
+ type: "checkbox",
1735
+ checked: r,
1736
+ disabled: n,
1737
+ readOnly: !0
1738
+ }), /* @__PURE__ */ p("div", {
1739
+ className: c,
1740
+ children: /* @__PURE__ */ p("div", { className: l })
1741
+ })]
1742
+ });
1743
+ }, U = {
1744
+ loading: "_loading_1y96m_23",
1745
+ wrapper: "_wrapper_1y96m_38",
1746
+ active: "_active_1y96m_66",
1747
+ header: "_header_1y96m_70",
1748
+ label: "_label_1y96m_78",
1749
+ required: "_required_1y96m_95",
1750
+ body: "_body_1y96m_101",
1751
+ input: "_input_1y96m_109",
1752
+ "icon-box": "_icon-box_1y96m_141",
1753
+ icon: "_icon_1y96m_141",
1754
+ suffix: "_suffix_1y96m_159",
1755
+ counter: "_counter_1y96m_172",
1756
+ "counter-over": "_counter-over_1y96m_177"
1757
+ }, un = {
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
+ }, dn = ({ 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(() => {
1771
+ !t && !e && v && v("");
1772
+ }, [
1773
+ t,
1774
+ e,
1775
+ v
1776
+ ]), te = a(() => {
1777
+ !t && !e && _((e) => e === "text" ? "password" : "text");
1778
+ }, [t, e]), y = a((e) => (t) => {
1779
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
1780
+ }, []);
1781
+ return /* @__PURE__ */ m("div", {
1782
+ className: [U.wrapper, f ? U.active : ""].filter(Boolean).join(" "),
1783
+ style: {
1784
+ backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
1785
+ "--highlight-color": f ? "#bfa056" : void 0,
1786
+ ...o.style
1787
+ },
1788
+ children: [
1789
+ /* @__PURE__ */ m("div", {
1790
+ className: U.header,
1791
+ children: [/* @__PURE__ */ m("label", {
1792
+ htmlFor: s,
1793
+ className: U.label,
1794
+ children: [/* @__PURE__ */ p("span", { children: o.label }), r && /* @__PURE__ */ p("span", {
1795
+ className: U.required,
1796
+ children: "*"
1797
+ })]
1798
+ }), o.maxLength != null && /* @__PURE__ */ m("span", {
1799
+ className: [U.counter, i.length > o.maxLength ? U["counter-over"] : ""].filter(Boolean).join(" "),
1800
+ children: [
1801
+ i.length,
1802
+ " / ",
1803
+ o.maxLength
1804
+ ]
1805
+ })]
1806
+ }),
1807
+ /* @__PURE__ */ m("div", {
1808
+ className: U.body,
1809
+ children: [
1810
+ o.icon && /* @__PURE__ */ p(x, {
1811
+ d: un[o.icon],
1812
+ size: "1.5rem",
1813
+ color: "gray"
1814
+ }),
1815
+ /* @__PURE__ */ p("input", {
1816
+ id: s,
1817
+ ref: l,
1818
+ type: g,
1819
+ className: U.input,
1820
+ placeholder: o.placeholder,
1821
+ value: i,
1822
+ onChange: (e) => v?.(e.target.value),
1823
+ onFocus: () => h(!0),
1824
+ onBlur: () => h(!1),
1825
+ disabled: e || t,
1826
+ style: { cursor: e ? "not-allowed" : t ? "progress" : "auto" },
1827
+ "aria-required": r
1828
+ }),
1829
+ /* @__PURE__ */ m("div", {
1830
+ className: U["icon-box"],
1831
+ children: [
1832
+ o.suffix != null && /* @__PURE__ */ p("span", {
1833
+ className: U.suffix,
1834
+ children: o.suffix
1835
+ }),
1836
+ /* @__PURE__ */ p("div", {
1837
+ className: U.icon,
1838
+ onClick: te,
1839
+ onKeyDown: y(te),
1840
+ role: "button",
1841
+ tabIndex: 0,
1842
+ children: /* @__PURE__ */ p(x, {
1843
+ d: g === "text" ? Te : we,
1844
+ size: "1.75em",
1845
+ color: "gray"
1846
+ })
1847
+ }),
1848
+ /* @__PURE__ */ p("div", {
1849
+ className: U.icon,
1850
+ onClick: ee,
1851
+ onKeyDown: y(ee),
1852
+ role: "button",
1853
+ tabIndex: 0,
1854
+ children: /* @__PURE__ */ p(x, {
1855
+ d: le,
1856
+ size: "1.75em",
1857
+ color: "gray"
1858
+ })
1859
+ })
1860
+ ]
1861
+ })
1862
+ ]
1863
+ }),
1864
+ /* @__PURE__ */ p("div", {
1865
+ className: U.loading,
1866
+ style: { opacity: t ? .2 : 0 }
1867
+ })
1868
+ ]
1869
+ });
1870
+ }, fn = { validation: "_validation_wuw0j_1" }, pn = ({ validColor: e = "#449763", ...t }) => /* @__PURE__ */ m("div", {
1871
+ className: fn.validation,
1872
+ style: {
1873
+ "--opacity": t.isValid ? 1 : .5,
1874
+ ...t.style
1875
+ },
1876
+ children: [/* @__PURE__ */ p(x, {
1877
+ d: t.isValid ? pe : me,
1878
+ color: t.isValid ? e : void 0
1879
+ }), /* @__PURE__ */ p("span", {
1880
+ style: { color: t.isValid ? e : void 0 },
1881
+ children: t.text
1882
+ })]
1883
+ }), mn = { column: "_column_12uje_1" }, hn = (e) => /* @__PURE__ */ p("div", {
1884
+ className: mn.column,
1885
+ style: e.style,
1886
+ children: e.children
1887
+ }), gn = { "column-list": "_column-list_rt1o3_1" }, _n = (e) => /* @__PURE__ */ p("div", {
1888
+ className: gn["column-list"],
1889
+ style: e.style,
1890
+ children: e.children
1891
+ }), vn = {
1892
+ body: "_body_gd5gc_1",
1893
+ button: "_button_gd5gc_5"
1894
+ }, W = {
1895
+ provider: "_provider_94i7o_1",
1896
+ "provider-enter": "_provider-enter_94i7o_19",
1897
+ "provider-exit": "_provider-exit_94i7o_23",
1898
+ modal: "_modal_94i7o_27"
1899
+ }, yn = ({ closeOnClickOutside: e = !0, onChange: t, ...n }) => {
1900
+ let [r, i] = d(!1), o = n.value ?? !1;
1901
+ s(() => {
1902
+ if (o) {
1903
+ let e = window.setTimeout(() => i(!0), 0);
1904
+ return () => clearTimeout(e);
1905
+ } else {
1906
+ let e = window.setTimeout(() => i(!1), 400);
1907
+ return () => clearTimeout(e);
1908
+ }
1909
+ }, [o]);
1910
+ let c = a(() => {
1911
+ e && t && t(!1);
1912
+ }, [e, t]), l = a((e) => {
1913
+ e.stopPropagation();
1914
+ }, []);
1915
+ return !o && !r ? null : Xe(/* @__PURE__ */ p("div", {
1916
+ className: `${W.provider} ${o ? W["provider-enter"] : W["provider-exit"]}`,
1917
+ onClick: c,
1918
+ children: /* @__PURE__ */ p("div", {
1919
+ className: W.modal,
1920
+ style: {
1921
+ "--width": n.width,
1922
+ ...n.style
1923
+ },
1924
+ onClick: l,
1925
+ children: n.children
1926
+ })
1927
+ }), document.body);
1928
+ }, bn = ({ closeOnClickOutside: e = !0, onChange: t, onConfirm: n, onSuccess: r, onError: i, ...o }) => {
1929
+ let [s, c] = d(!1), l = a(() => {
1930
+ t && t(!1);
1931
+ }, [t]), u = a(async () => {
1932
+ c(!0);
1933
+ try {
1934
+ await n(), c(!1), t && t(!1), r && r();
1935
+ } catch (e) {
1936
+ i && i(e), c(!1), t && t(!1);
1937
+ }
1938
+ }, [
1939
+ n,
1940
+ r,
1941
+ i,
1942
+ t
1943
+ ]);
1944
+ return /* @__PURE__ */ p(yn, {
1945
+ value: o.value,
1946
+ onChange: t,
1947
+ closeOnClickOutside: e,
1948
+ children: /* @__PURE__ */ m("div", { children: [
1949
+ /* @__PURE__ */ p(O, {
1950
+ level: 2,
1951
+ disableFragmentIdentifier: !0,
1952
+ children: o.title
1953
+ }),
1954
+ /* @__PURE__ */ p("div", {
1955
+ className: vn.body,
1956
+ children: o.children
1957
+ }),
1958
+ /* @__PURE__ */ m("div", {
1959
+ className: vn.button,
1960
+ children: [/* @__PURE__ */ m(on, {
1961
+ block: !0,
1962
+ onClick: l,
1963
+ loading: s,
1964
+ children: [/* @__PURE__ */ p(x, { d: ce }), /* @__PURE__ */ p("span", { children: "Cancel" })]
1965
+ }), /* @__PURE__ */ m(on, {
1966
+ block: !0,
1967
+ onClick: u,
1968
+ primary: !0,
1969
+ loading: s,
1970
+ children: [/* @__PURE__ */ p(x, {
1971
+ d: pe,
1972
+ color: "currentColor"
1973
+ }), /* @__PURE__ */ p("span", { children: "Confirm" })]
1974
+ })]
1975
+ })
1976
+ ] })
1977
+ });
1978
+ }, G = {
1979
+ window: "_window_l8snl_1",
1980
+ header: "_header_l8snl_14",
1981
+ dot: "_dot_l8snl_25"
1982
+ }, xn = ({ minHeight: e = "6rem", ...t }) => /* @__PURE__ */ m("div", {
1983
+ className: G.window,
1984
+ style: t.style,
1985
+ children: [/* @__PURE__ */ m("div", {
1986
+ className: G.header,
1987
+ children: [
1988
+ /* @__PURE__ */ p("div", {
1989
+ "aria-hidden": !0,
1990
+ className: G.dot,
1991
+ style: { "--bg": "#c48691" }
1992
+ }),
1993
+ /* @__PURE__ */ p("div", {
1994
+ "aria-hidden": !0,
1995
+ className: G.dot,
1996
+ style: { "--bg": "#c9b990" }
1997
+ }),
1998
+ /* @__PURE__ */ p("div", {
1999
+ "aria-hidden": !0,
2000
+ className: G.dot,
2001
+ style: { "--bg": "#7cc598" }
2002
+ })
2003
+ ]
2004
+ }), /* @__PURE__ */ p("div", {
2005
+ style: { minHeight: e },
2006
+ children: t.children
2007
+ })]
2008
+ }), Sn = { parallax: "_parallax_1tovg_1" }, Cn = (e) => {
2009
+ let [t, n] = d(0);
2010
+ return s(() => {
2011
+ let e = null, t = () => {
2012
+ e ?? (e = requestAnimationFrame(() => {
2013
+ n(window.scrollY), e = null;
2014
+ }));
2015
+ };
2016
+ return window.addEventListener("scroll", t, { passive: !0 }), () => {
2017
+ window.removeEventListener("scroll", t), e != null && cancelAnimationFrame(e);
2018
+ };
2019
+ }, []), /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
2020
+ className: Sn.parallax,
2021
+ style: {
2022
+ backgroundImage: `url(${e.imageUrl1})`,
2023
+ transform: `scale(1.2) translateY(${t / 400}%)`,
2024
+ transformOrigin: "bottom",
2025
+ ...e.style
2026
+ }
2027
+ }), /* @__PURE__ */ p("div", {
2028
+ className: Sn.parallax,
2029
+ style: {
2030
+ backgroundImage: `url(${e.imageUrl2})`,
2031
+ transform: `scale(1.2) translateY(${t / 900}%)`,
2032
+ transformOrigin: "bottom"
2033
+ }
2034
+ })] });
2035
+ }, wn = {
2036
+ container: "_container_1mzm0_1",
2037
+ title: "_title_1mzm0_16",
2038
+ text: "_text_1mzm0_22"
2039
+ }, Tn = {
2040
+ original: "_original_3zasf_1",
2041
+ tooltip: "_tooltip_3zasf_5",
2042
+ "tooltip-enter": "_tooltip-enter_3zasf_17"
2043
+ }, En = (e) => {
2044
+ let t = u(null), [n, r] = d(!1), [i, o] = d({}), c = a(() => {
2045
+ let e = t.current;
2046
+ if (!e) return;
2047
+ let n = e.getBoundingClientRect(), r = window.innerWidth;
2048
+ n.x > r / 2 ? o({
2049
+ top: `${n.y + n.height}px`,
2050
+ right: `${r - n.x - n.width}px`
2051
+ }) : o({
2052
+ top: `${n.y + n.height}px`,
2053
+ left: `${n.x}px`
2054
+ });
2055
+ }, []);
2056
+ return s(() => {
2057
+ n && c();
2058
+ }, [n, c]), /* @__PURE__ */ m("span", {
2059
+ ref: t,
2060
+ className: Tn.original,
2061
+ onMouseOver: () => r(!0),
2062
+ onMouseLeave: () => r(!1),
2063
+ style: e.style,
2064
+ children: [e.original, n && /* @__PURE__ */ p("div", {
2065
+ className: `${Tn.tooltip} ${Tn["tooltip-enter"]}`,
2066
+ style: i,
2067
+ children: e.tooltip
2068
+ })]
2069
+ });
2070
+ }, Dn = (e) => /* @__PURE__ */ p(En, {
2071
+ original: e.children,
2072
+ tooltip: /* @__PURE__ */ m("div", {
2073
+ className: wn.container,
2074
+ style: e.style,
2075
+ children: [e.title && /* @__PURE__ */ p("div", {
2076
+ className: wn.title,
2077
+ children: e.title
2078
+ }), /* @__PURE__ */ p("div", {
2079
+ className: wn.text,
2080
+ children: e.text
2081
+ })]
2082
+ })
2083
+ }), On = {
2084
+ snackbar: "_snackbar_1f0go_1",
2085
+ icon: "_icon_1f0go_19",
2086
+ progress: "_progress_1f0go_45"
2087
+ }, kn = ({ timeout: e = 5e3, ...t }) => /* @__PURE__ */ m("div", {
2088
+ className: On.snackbar,
2089
+ style: t.style,
2090
+ children: [
2091
+ t.label == null ? t.children : /* @__PURE__ */ p(w, { children: t.label }),
2092
+ /* @__PURE__ */ p("div", {
2093
+ className: On.icon,
2094
+ onClick: t.close,
2095
+ children: /* @__PURE__ */ p(x, {
2096
+ d: ye,
2097
+ size: "1em"
2098
+ })
2099
+ }),
2100
+ /* @__PURE__ */ p("div", {
2101
+ className: On.progress,
2102
+ style: { animationDuration: `${e}ms` }
2103
+ })
2104
+ ]
2105
+ }), An = {
2106
+ "snackbar-screen": "_snackbar-screen_up7j2_1",
2107
+ "snackbar-container": "_snackbar-container_up7j2_14",
2108
+ "snackbar-item": "_snackbar-item_up7j2_23"
2109
+ }, jn = (e) => /* @__PURE__ */ p("div", {
2110
+ className: An["snackbar-screen"],
2111
+ style: e.style,
2112
+ children: /* @__PURE__ */ p("div", {
2113
+ className: An["snackbar-container"],
2114
+ children: e.snackbars.map((e) => /* @__PURE__ */ p("div", {
2115
+ className: An["snackbar-item"],
2116
+ children: /* @__PURE__ */ p(kn, {
2117
+ label: e.label,
2118
+ timeout: e.timeout,
2119
+ close: e.close,
2120
+ children: e.children
2121
+ })
2122
+ }, e.id))
2123
+ })
2124
+ }), K = {
2125
+ "elm-tabs": "_elm-tabs_ykoqx_1",
2126
+ "tab-container": "_tab-container_ykoqx_18",
2127
+ tab: "_tab_ykoqx_18",
2128
+ active: "_active_ykoqx_40",
2129
+ "tab-content-container": "_tab-content-container_ykoqx_51",
2130
+ "tab-content": "_tab-content_ykoqx_51"
2131
+ }, Mn = (e) => {
2132
+ let [t, n] = d(0);
2133
+ return /* @__PURE__ */ m("div", {
2134
+ className: K["elm-tabs"],
2135
+ style: e.style,
2136
+ children: [/* @__PURE__ */ p("div", {
2137
+ className: K["tab-container"],
2138
+ children: e.tabLabels.map((e, r) => /* @__PURE__ */ p("div", {
2139
+ className: `${K.tab} ${t === r ? K.active : ""}`,
2140
+ onClick: () => n(r),
2141
+ children: e
2142
+ }, r))
2143
+ }), /* @__PURE__ */ p("div", {
2144
+ className: K["tab-content-container"],
2145
+ children: e.tabContents.map((e, n) => /* @__PURE__ */ p("div", {
2146
+ className: `${K["tab-content"]} ${t === n ? K.active : ""}`,
2147
+ children: e
2148
+ }, n))
2149
+ })]
2150
+ });
2151
+ }, q = {
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"
2160
+ }, Nn = (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);
2165
+ };
2166
+ return /* @__PURE__ */ m("div", {
2167
+ className: `${q.toggle} ${i ? q.open : ""}`,
2168
+ style: { ...e.style },
2169
+ children: [
2170
+ /* @__PURE__ */ m("div", {
2171
+ className: q.summary,
2172
+ onClick: a,
2173
+ style: { borderRadius: i ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem" },
2174
+ children: [/* @__PURE__ */ m("div", {
2175
+ className: q["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,
2184
+ 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"
2197
+ })
2198
+ })]
2199
+ }),
2200
+ /* @__PURE__ */ p("div", {
2201
+ className: `${q.content} ${i ? q["content-open"] : ""}`,
2202
+ children: e.children
2203
+ }),
2204
+ i && /* @__PURE__ */ p("div", {
2205
+ className: q.close,
2206
+ onClick: a,
2207
+ children: /* @__PURE__ */ m("div", {
2208
+ className: q["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
+ })
2219
+ ]
2220
+ });
2221
+ }, J = {
2222
+ table: "_table_197ge_1",
2223
+ caption: "_caption_197ge_8",
2224
+ "caption-inner": "_caption-inner_197ge_18",
2225
+ spacing: "_spacing_197ge_25"
2226
+ }, Pn = r(!1), Fn = r(!1), In = ({ caption: e, hasRowHeader: t = !1, header: n, body: r, style: i }) => /* @__PURE__ */ p(Fn.Provider, {
2227
+ value: t,
2228
+ children: /* @__PURE__ */ m("table", {
2229
+ className: J.table,
2230
+ style: i,
2231
+ children: [
2232
+ e != null && /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ m("span", {
2233
+ className: J.caption,
2234
+ children: [
2235
+ /* @__PURE__ */ p("span", { className: J.spacing }),
2236
+ /* @__PURE__ */ m("span", {
2237
+ className: J["caption-inner"],
2238
+ children: [/* @__PURE__ */ p("svg", {
2239
+ viewBox: "0 0 24 24",
2240
+ width: "1rem",
2241
+ height: "1rem",
2242
+ children: /* @__PURE__ */ p("path", {
2243
+ d: qe,
2244
+ fill: "#6987b8"
2245
+ })
2246
+ }), /* @__PURE__ */ p(w, { children: e })]
2247
+ }),
2248
+ /* @__PURE__ */ p("span", { className: J.spacing })
2249
+ ]
2250
+ }) }),
2251
+ n,
2252
+ r
2253
+ ]
2254
+ })
2255
+ }), Ln = ({ children: e, style: t }) => /* @__PURE__ */ p(Pn.Provider, {
2256
+ value: !1,
2257
+ children: /* @__PURE__ */ p("tbody", {
2258
+ style: t,
2259
+ children: e
2260
+ })
2261
+ }), Rn = {
2262
+ common: "_common_15vhm_1",
2263
+ td: "_td_15vhm_26",
2264
+ th: "_th_15vhm_34"
2265
+ }, zn = ({ children: e, style: t, hasHeader: n = !1, text: r }) => {
2266
+ let i = o(Pn), a = n || i;
2267
+ return /* @__PURE__ */ p(a ? "th" : "td", {
2268
+ className: `${Rn.common} ${a ? Rn.th : Rn.td}`,
2269
+ style: t,
2270
+ children: r ?? e
2271
+ });
2272
+ }, Bn = { thead: "_thead_184mb_1" }, Vn = ({ children: e, style: t }) => /* @__PURE__ */ p(Pn.Provider, {
2273
+ value: !0,
2274
+ children: /* @__PURE__ */ p("thead", {
2275
+ className: Bn.thead,
2276
+ style: t,
2277
+ children: e
2278
+ })
2279
+ }), Hn = {
2280
+ tr: "_tr_1l64j_1",
2281
+ "has-row-header": "_has-row-header_1l64j_25"
2282
+ }, Y = ({ children: e, style: t }) => {
2283
+ let n = o(Fn);
2284
+ return /* @__PURE__ */ p("tr", {
2285
+ className: `${Hn.tr} ${n ? Hn["has-row-header"] : ""}`,
2286
+ style: t,
2287
+ children: e
2288
+ });
2289
+ }, X = {
2290
+ wrapper: "_wrapper_1yj17_1",
2291
+ header: "_header_1yj17_18",
2292
+ header__left: "_header__left_1yj17_36",
2293
+ caption: "_caption_1yj17_44",
2294
+ header__right: "_header__right_1yj17_50",
2295
+ "copy-icon": "_copy-icon_1yj17_58",
2296
+ code: "_code_1yj17_81",
2297
+ "code-body": "_code-body_1yj17_89",
2298
+ fallback: "_fallback_1yj17_93"
2299
+ }, Un = { code: "_code_1nyfa_1" }, Wn = null;
2300
+ function Gn() {
2301
+ return Wn || (Wn = import("shiki").then(({ createHighlighter: e }) => e({
2302
+ 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
+ themes: ["vitesse-light", "vitesse-dark"]
2304
+ }))), Wn;
2305
+ }
2306
+ //#endregion
2307
+ //#region src/components/code/ElmShikiHighlighter.tsx
2308
+ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
2309
+ let [i, a] = d(`<pre>${e}</pre>`), o = u(!1);
2310
+ return s(() => {
2311
+ o.current || Gn().then((r) => {
2312
+ try {
2313
+ a(r.codeToHtml(e, {
2314
+ lang: t,
2315
+ themes: {
2316
+ dark: "vitesse-dark",
2317
+ light: "vitesse-light"
2318
+ },
2319
+ colorReplacements: {
2320
+ "#ffffff": "transparent",
2321
+ "#121212": "transparent"
2322
+ }
2323
+ }));
2324
+ } catch {} finally {
2325
+ o.current = !0, n?.(!0);
2326
+ }
2327
+ }).catch(() => {
2328
+ o.current = !0, n?.(!0);
2329
+ });
2330
+ }, [
2331
+ e,
2332
+ t,
2333
+ n
2334
+ ]), /* @__PURE__ */ p("div", {
2335
+ className: Un.code,
2336
+ style: r,
2337
+ children: /* @__PURE__ */ p("div", {
2338
+ className: "shiki",
2339
+ dangerouslySetInnerHTML: { __html: i }
2340
+ })
2341
+ });
2342
+ }, qn = ({ code: e, language: t = "txt", caption: n, style: r }) => {
2343
+ let [i, o] = d(!1), [c, l] = d(!1), [f, h] = d(!1), g = u(null), _ = u(null);
2344
+ s(() => {
2345
+ let e = g.current;
2346
+ if (!e) return;
2347
+ let t = new IntersectionObserver(([e]) => {
2348
+ h(e.isIntersecting);
2349
+ });
2350
+ return t.observe(e), () => t.disconnect();
2351
+ }, []);
2352
+ let v = a(() => {
2353
+ navigator.clipboard.writeText(e).then(() => {
2354
+ l(!0), _.current && clearTimeout(_.current), _.current = setTimeout(() => l(!1), 2e3);
2355
+ });
2356
+ }, [e]);
2357
+ return s(() => () => {
2358
+ _.current && clearTimeout(_.current);
2359
+ }, []), /* @__PURE__ */ m("div", {
2360
+ ref: g,
2361
+ className: X.wrapper,
2362
+ style: {
2363
+ opacity: +!!f,
2364
+ ...r
2365
+ },
2366
+ children: [/* @__PURE__ */ m("div", {
2367
+ className: X.header,
2368
+ children: [/* @__PURE__ */ m("div", {
2369
+ className: X.header__left,
2370
+ children: [/* @__PURE__ */ p(nt, {
2371
+ language: t,
2372
+ size: 20
2373
+ }), /* @__PURE__ */ p("span", {
2374
+ className: X.caption,
2375
+ children: /* @__PURE__ */ p(w, { children: n ?? t })
2376
+ })]
2377
+ }), /* @__PURE__ */ p("div", {
2378
+ className: X.header__right,
2379
+ children: /* @__PURE__ */ p("div", {
2380
+ className: X["copy-icon"],
2381
+ onClick: v,
2382
+ children: /* @__PURE__ */ p(x, {
2383
+ size: "1.25em",
2384
+ d: c ? _e : ve,
2385
+ useThemeColor: c
2386
+ })
2387
+ })
2388
+ })]
2389
+ }), /* @__PURE__ */ m("div", {
2390
+ className: X.code,
2391
+ children: [/* @__PURE__ */ p("div", {
2392
+ className: X["code-body"],
2393
+ style: { opacity: +!!i },
2394
+ children: /* @__PURE__ */ p(Kn, {
2395
+ code: e,
2396
+ language: t,
2397
+ onRendered: o
2398
+ })
2399
+ }), /* @__PURE__ */ p("div", {
2400
+ className: X.fallback,
2401
+ style: { opacity: +!i },
2402
+ children: /* @__PURE__ */ p(S, { size: "48px" })
2403
+ })]
2404
+ })]
2405
+ });
2406
+ }, Jn = { katex: "_katex_1a1aj_1" }, Yn = ({ expression: e, block: t = !1, style: n }) => {
2407
+ let [r, i] = d();
2408
+ s(() => {
2409
+ import("katex").then(({ renderToString: n }) => {
2410
+ try {
2411
+ i(n(e, {
2412
+ displayMode: t,
2413
+ output: "mathml"
2414
+ }));
2415
+ } catch (e) {
2416
+ console.error("KaTeX rendering error:", e);
2417
+ }
2418
+ }).catch(() => {});
2419
+ }, [e, t]);
2420
+ let a = `${Jn.katex}`;
2421
+ return p(t ? "div" : "span", {
2422
+ className: a,
2423
+ style: n,
2424
+ dangerouslySetInnerHTML: r ? { __html: r } : void 0
2425
+ });
2426
+ }, Z = {
2427
+ "color-bg": "_color-bg_yiibu_1",
2428
+ text: "_text_yiibu_17"
2429
+ }, Xn = ({ color: e, style: t }) => {
2430
+ 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) => {
2431
+ navigator.clipboard.writeText(e).then(() => {
2432
+ r(!0), i.current && clearTimeout(i.current), i.current = setTimeout(() => r(!1), 1500);
2433
+ });
2434
+ }, []);
2435
+ return /* @__PURE__ */ p("div", {
2436
+ style: {
2437
+ "--color": e,
2438
+ ...t
2439
+ },
2440
+ children: /* @__PURE__ */ p(En, {
2441
+ original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
2442
+ className: Z["color-bg"],
2443
+ style: { "--background-color": e },
2444
+ onClick: () => y(h),
2445
+ children: n && /* @__PURE__ */ p(x, {
2446
+ d: fe,
2447
+ size: "1em",
2448
+ color: "white"
2449
+ })
2450
+ }), /* @__PURE__ */ p("div", {
2451
+ className: Z.text,
2452
+ onClick: () => y(h),
2453
+ children: h
2454
+ })] }),
2455
+ tooltip: /* @__PURE__ */ m(f, { children: [
2456
+ /* @__PURE__ */ p("div", {
2457
+ className: Z.text,
2458
+ onClick: () => y(h),
2459
+ children: h
2460
+ }),
2461
+ /* @__PURE__ */ p("div", {
2462
+ className: Z.text,
2463
+ onClick: () => y(g),
2464
+ children: g
2465
+ }),
2466
+ /* @__PURE__ */ p("div", {
2467
+ className: Z.text,
2468
+ onClick: () => y(_),
2469
+ children: _
2470
+ })
2471
+ ] })
2472
+ })
2473
+ });
2474
+ }, Zn = {
2475
+ container: "_container_a7c06_1",
2476
+ "row-container": "_row-container_a7c06_9",
2477
+ "color-name": "_color-name_a7c06_17"
2478
+ }, Qn = [
2479
+ -3,
2480
+ -.25,
2481
+ -.2,
2482
+ -.15,
2483
+ -.1,
2484
+ -.05,
2485
+ 0,
2486
+ .05,
2487
+ .1,
2488
+ .15,
2489
+ .2,
2490
+ .25,
2491
+ .3
2492
+ ], $n = ({ colors: e, style: t }) => /* @__PURE__ */ p("div", {
2493
+ className: Zn.container,
2494
+ style: t,
2495
+ children: e.map((e) => /* @__PURE__ */ m("div", {
2496
+ className: Zn["row-container"],
2497
+ children: [/* @__PURE__ */ p("div", {
2498
+ className: Zn["color-name"],
2499
+ style: { "--color": e.code },
2500
+ children: e.name
2501
+ }), Qn.map((t) => /* @__PURE__ */ p(Xn, { color: h(t, e.code) }, t))]
2502
+ }, e.name))
2503
+ }), Q = {
2504
+ palette: "_palette_1u43p_1",
2505
+ header: "_header_1u43p_11",
2506
+ input: "_input_1u43p_31",
2507
+ body: "_body_1u43p_43",
2508
+ "empty-result": "_empty-result_1u43p_60",
2509
+ command: "_command_1u43p_71",
2510
+ "command-selected": "_command-selected_1u43p_99",
2511
+ "command-icon": "_command-icon_1u43p_104",
2512
+ tag: "_tag_1u43p_108",
2513
+ footer: "_footer_1u43p_119"
2514
+ }, er = {
2515
+ brown: "#a17c5b",
2516
+ crimson: "#c56565",
2517
+ amber: "#d48b70",
2518
+ gold: "#cdb57b",
2519
+ emerald: "#59b57c",
2520
+ cyan: "#59a7b5",
2521
+ blue: "#6987b8",
2522
+ purple: "#9771bd",
2523
+ pink: "#c9699e"
2524
+ };
2525
+ function tr(e, t) {
2526
+ if (!t.trim()) return [];
2527
+ let n = t.toLowerCase();
2528
+ return e.filter((e) => e.label.toLowerCase().includes(n) || e.description?.toLowerCase().includes(n) || e.keywords?.some((e) => e.toLowerCase().includes(n)));
2529
+ }
2530
+ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
2531
+ let [r, i] = d(""), [o, c] = d([]), [l, f] = d(null), h = u(null);
2532
+ s(() => {
2533
+ h.current?.focus();
2534
+ }, []);
2535
+ let g = a((t) => {
2536
+ let n = t.target.value;
2537
+ i(n);
2538
+ let r = tr(e, n);
2539
+ c(r), f(r.length > 0 ? 0 : null);
2540
+ }, [e]), v = a((e) => {
2541
+ if (e === null) return;
2542
+ let n = o[e];
2543
+ n && (n.onInvoke?.(), t?.(n));
2544
+ }, [o, t]);
2545
+ return s(() => {
2546
+ let e = (e) => {
2547
+ 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));
2548
+ };
2549
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2550
+ }, [
2551
+ v,
2552
+ l,
2553
+ o.length
2554
+ ]), /* @__PURE__ */ m("div", {
2555
+ className: Q.palette,
2556
+ style: {
2557
+ "--height": "500px",
2558
+ "--width": "800px",
2559
+ ...n
2560
+ },
2561
+ children: [
2562
+ /* @__PURE__ */ m("header", {
2563
+ className: Q.header,
2564
+ children: [/* @__PURE__ */ p(x, { d: be }), /* @__PURE__ */ p("input", {
2565
+ ref: h,
2566
+ className: Q.input,
2567
+ value: r,
2568
+ onChange: g,
2569
+ type: "text",
2570
+ inputMode: "text"
2571
+ })]
2572
+ }),
2573
+ /* @__PURE__ */ p("div", {
2574
+ className: Q.body,
2575
+ children: o.length === 0 ? /* @__PURE__ */ p("div", {
2576
+ className: Q["empty-result"],
2577
+ children: /* @__PURE__ */ p(w, { children: "search anything..." })
2578
+ }) : o.map((e, t) => /* @__PURE__ */ m("button", {
2579
+ className: `${Q.command} ${t === l ? Q["command-selected"] : ""}`,
2580
+ onClick: () => {
2581
+ f(t), v(t);
2582
+ },
2583
+ children: [
2584
+ e.icon ? /* @__PURE__ */ p("img", {
2585
+ className: Q["command-icon"],
2586
+ src: e.icon,
2587
+ alt: e.label
2588
+ }) : /* @__PURE__ */ p(x, {
2589
+ d: be,
2590
+ size: "1rem"
2591
+ }),
2592
+ e.tag ? /* @__PURE__ */ p("div", {
2593
+ className: Q.tag,
2594
+ style: { "--tag-color": _(-.3, er[e.tag.color]) },
2595
+ children: e.tag.name
2596
+ }) : /* @__PURE__ */ p("div", { className: Q.tag }),
2597
+ /* @__PURE__ */ p(w, {
2598
+ style: {
2599
+ whiteSpace: "nowrap",
2600
+ overflow: "hidden",
2601
+ textOverflow: "ellipsis",
2602
+ maxWidth: "24rem"
2603
+ },
2604
+ children: e.label
2605
+ }),
2606
+ /* @__PURE__ */ p(w, {
2607
+ style: {
2608
+ opacity: .4,
2609
+ whiteSpace: "nowrap",
2610
+ overflow: "hidden",
2611
+ textOverflow: "ellipsis"
2612
+ },
2613
+ children: e.description ?? "-"
2614
+ }),
2615
+ /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(x, { d: Ne }) })
2616
+ ]
2617
+ }, e.id))
2618
+ }),
2619
+ /* @__PURE__ */ m("footer", {
2620
+ className: Q.footer,
2621
+ children: [/* @__PURE__ */ p(w, {
2622
+ kbd: !0,
2623
+ children: "Esc"
2624
+ }), /* @__PURE__ */ p(w, { children: "Close" })]
2625
+ })
2626
+ ]
2627
+ });
2628
+ }, rr = {
2629
+ "jarkup-body": "_jarkup-body_jsvhx_1",
2630
+ "unsupported-block": "_unsupported-block_jsvhx_5"
2631
+ }, ir = ({ jsonComponents: e, style: t }) => /* @__PURE__ */ p("div", {
2632
+ className: rr["jarkup-body"],
2633
+ style: t,
2634
+ children: e.map((e, t) => /* @__PURE__ */ p("div", {
2635
+ className: rr["unsupported-block"],
2636
+ children: /* @__PURE__ */ p("code", { children: JSON.stringify(e, null, 2) })
2637
+ }, t))
2638
+ }), ar = {
2639
+ "jarkup-body": "_jarkup-body_1rlbi_1",
2640
+ "column-list": "_column-list_1rlbi_9",
2641
+ column: "_column_1rlbi_9"
2642
+ }, or = i(() => import("./ElmMermaid-BFqvHKdQ.js").then((e) => e.n).then((e) => ({ default: e.ElmMermaid }))), sr = (e) => e.map((e) => e.type === "Text" ? e.props.text : "").join(""), cr = {
2643
+ Text: (e, t, n, r) => {
2644
+ let i = e.id ?? n, a = e.props;
2645
+ return a.katex ? /* @__PURE__ */ p(Yn, {
2646
+ expression: a.text,
2647
+ block: !1
2648
+ }, i) : /* @__PURE__ */ p(w, {
2649
+ color: a.color,
2650
+ backgroundColor: a.backgroundColor,
2651
+ bold: a.bold,
2652
+ italic: a.italic,
2653
+ underline: a.underline,
2654
+ strikethrough: a.strikethrough,
2655
+ code: a.code,
2656
+ ruby: a.ruby,
2657
+ href: a.href,
2658
+ favicon: a.favicon,
2659
+ children: a.text
2660
+ }, i);
2661
+ },
2662
+ Icon: (e, t, n, r) => {
2663
+ let i = e.id ?? n;
2664
+ return /* @__PURE__ */ p(b, {
2665
+ src: e.props.src,
2666
+ alt: e.props.alt
2667
+ }, i);
2668
+ },
2669
+ Fragment: (e, n, r, i) => {
2670
+ let a = e.id ?? r;
2671
+ return /* @__PURE__ */ p(t.Fragment, { children: n(e.slots.default) }, a);
2672
+ },
2673
+ Heading: (e, t, n, r) => {
2674
+ let i = e.id ?? n;
2675
+ return /* @__PURE__ */ p(O, {
2676
+ level: e.props.level,
2677
+ id: Ze(sr(e.slots.default)),
2678
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2679
+ children: t(e.slots.default)
2680
+ }, i);
2681
+ },
2682
+ Paragraph: (e, t, n, r) => {
2683
+ let i = e.id ?? n;
2684
+ return /* @__PURE__ */ p(wt, {
2685
+ backgroundColor: e.props?.backgroundColor,
2686
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2687
+ children: t(e.slots.default)
2688
+ }, i);
2689
+ },
2690
+ ListItem: (e, t, n, r) => {
2691
+ let i = e.id ?? n;
2692
+ return /* @__PURE__ */ p("li", { children: t(e.slots.default) }, i);
2693
+ },
2694
+ List: (e, t, n, r) => {
2695
+ let i = e.id ?? n;
2696
+ return /* @__PURE__ */ p(Pt, {
2697
+ listStyle: e.props?.listStyle === "unordered" ? "unordered" : "ordered",
2698
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2699
+ children: t(e.slots.default)
2700
+ }, i);
2701
+ },
2702
+ BlockQuote: (e, t, n, r) => {
2703
+ let i = e.id ?? n;
2704
+ return /* @__PURE__ */ p(Tt, {
2705
+ cite: e.props?.cite,
2706
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2707
+ children: t(e.slots.default)
2708
+ }, i);
2709
+ },
2710
+ Callout: (e, t, n, r) => {
2711
+ let i = e.id ?? n;
2712
+ return /* @__PURE__ */ p(Ot, {
2713
+ type: e.props?.type,
2714
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2715
+ children: t(e.slots.default)
2716
+ }, i);
2717
+ },
2718
+ Divider: (e, t, n, r) => {
2719
+ let i = e.id ?? n;
2720
+ return /* @__PURE__ */ p(E, { style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0 }, i);
2721
+ },
2722
+ Toggle: (e, t, n, r) => {
2723
+ let i = e.id ?? n;
2724
+ return /* @__PURE__ */ p(Nn, {
2725
+ summaryContent: t(e.slots.summary),
2726
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2727
+ children: t(e.slots.default)
2728
+ }, i);
2729
+ },
2730
+ Bookmark: (e, t, n, r) => {
2731
+ let i = e.id ?? n;
2732
+ return /* @__PURE__ */ p(qt, {
2733
+ url: e.props.url,
2734
+ title: e.props.title,
2735
+ description: e.props.description,
2736
+ image: e.props.image,
2737
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2738
+ }, i);
2739
+ },
2740
+ File: (e, t, n, r) => {
2741
+ let i = e.id ?? n;
2742
+ return /* @__PURE__ */ p(Kt, {
2743
+ src: e.props.src,
2744
+ name: e.props.name,
2745
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2746
+ }, i);
2747
+ },
2748
+ Image: (e, t, n, r) => {
2749
+ let i = e.id ?? n;
2750
+ return /* @__PURE__ */ p(N, {
2751
+ src: e.props.src,
2752
+ alt: e.props.alt,
2753
+ width: e.props.width,
2754
+ height: e.props.height,
2755
+ block: !0,
2756
+ enableModal: !0,
2757
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2758
+ }, i);
2759
+ },
2760
+ CodeBlock: (e, t, n, r) => {
2761
+ let i = e.id ?? n;
2762
+ return /* @__PURE__ */ p(qn, {
2763
+ code: e.props.code,
2764
+ language: e.props.language,
2765
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2766
+ }, i);
2767
+ },
2768
+ Katex: (e, t, n, r) => {
2769
+ let i = e.id ?? n;
2770
+ return /* @__PURE__ */ p(Yn, {
2771
+ expression: e.props.expression,
2772
+ block: !0,
2773
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2774
+ }, i);
2775
+ },
2776
+ Mermaid: (e, t, r, i) => {
2777
+ let a = e.id ?? r;
2778
+ return /* @__PURE__ */ p(n, {
2779
+ fallback: /* @__PURE__ */ p(tn, {}),
2780
+ children: /* @__PURE__ */ p(or, {
2781
+ code: e.props.code,
2782
+ style: r === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2783
+ })
2784
+ }, a);
2785
+ },
2786
+ Tab: (e, t, n, r) => [],
2787
+ Tabs: (e, t, n, r) => {
2788
+ let i = e.id ?? n, a = [], o = [];
2789
+ for (let n of e.slots.default) a.push(/* @__PURE__ */ p("span", { children: t(n.slots.labels) })), o.push(/* @__PURE__ */ p("div", { children: t(n.slots.contents) }));
2790
+ return /* @__PURE__ */ p(Mn, {
2791
+ tabLabels: a,
2792
+ tabContents: o
2793
+ }, i);
2794
+ },
2795
+ Table: (e, t, n, r) => {
2796
+ let i = e.id ?? n;
2797
+ return /* @__PURE__ */ p(In, {
2798
+ caption: e.props?.caption,
2799
+ hasRowHeader: e.props?.hasRowHeader,
2800
+ header: e.slots.header ? /* @__PURE__ */ p(Vn, { children: t(e.slots.header) }) : void 0,
2801
+ body: /* @__PURE__ */ p(Ln, { children: t(e.slots.body) }),
2802
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2803
+ }, i);
2804
+ },
2805
+ TableRow: (e, t, n, r) => {
2806
+ let i = e.id ?? n;
2807
+ return /* @__PURE__ */ p(Y, { children: t(e.slots.default) }, i);
2808
+ },
2809
+ TableCell: (e, t, n, r) => {
2810
+ let i = e.id ?? n;
2811
+ return /* @__PURE__ */ p(zn, { children: t(e.slots.default) }, i);
2812
+ },
2813
+ ColumnList: (e, t, n, r) => {
2814
+ let i = e.id ?? n;
2815
+ return /* @__PURE__ */ p("div", {
2816
+ className: ar["column-list"],
2817
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
2818
+ children: t(e.slots.default)
2819
+ }, i);
2820
+ },
2821
+ Column: (e, t, n, r) => {
2822
+ let i = e.id ?? n;
2823
+ return /* @__PURE__ */ p("div", {
2824
+ className: ar.column,
2825
+ style: {
2826
+ "--width-ratio": e.props?.widthRatio ?? 1,
2827
+ width: e.props?.widthRatio ? `${e.props.widthRatio * 100}%` : void 0,
2828
+ ...n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2829
+ },
2830
+ children: t(e.slots.default)
2831
+ }, i);
2832
+ },
2833
+ Unsupported: (e, t, n, r) => {
2834
+ let i = e.id ?? n;
2835
+ return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(an, {
2836
+ details: e.props?.details ?? `Unsupported component type: ${e.type}`,
2837
+ style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
2838
+ }, i);
2839
+ }
2840
+ }, lr = ({ jsonComponents: e, skipUnsupportedComponentWarning: t = !1, renderFunctionMap: n, style: r }) => {
2841
+ let i = {
2842
+ ...cr,
2843
+ ...n
2844
+ }, a = (e) => e.map((e, n) => {
2845
+ let o = e.id ?? n, s = i[e.type];
2846
+ return s ? s(e, a, n, {
2847
+ skipUnsupportedComponentWarning: t,
2848
+ style: r
2849
+ }) : t ? null : /* @__PURE__ */ p(an, { details: `Unsupported component type: ${e.type}` }, o);
2850
+ });
2851
+ return /* @__PURE__ */ p("div", {
2852
+ className: ar["jarkup-body"],
2853
+ style: {
2854
+ "--elmethis-margin-block-start": r?.["--elmethis-margin-block-start"] ?? "2.5rem",
2855
+ ...r
2856
+ },
2857
+ children: a(e)
2858
+ });
2859
+ }, ur = { "markdown-body": "_markdown-body_130yx_1" }, dr = {
2860
+ blockquote: (e, t, n) => !e.tokens || e.tokens.length === 0 ? null : /* @__PURE__ */ p(Tt, { children: t(e.tokens.flatMap((e) => e.type === "paragraph" && e.tokens ? e.tokens : [e])) }, n),
2861
+ br: (e, t, n) => /* @__PURE__ */ p("br", {}, n),
2862
+ checkbox: (e, t, n) => /* @__PURE__ */ p(sn, {
2863
+ label: e.raw,
2864
+ checked: e.checked
2865
+ }, n),
2866
+ code: (e, t, n) => /* @__PURE__ */ p(qn, {
2867
+ code: e.text.trim(),
2868
+ language: e.lang
2869
+ }, n),
2870
+ codespan: (e, t, n) => /* @__PURE__ */ p(w, {
2871
+ code: !0,
2872
+ children: e.text
2873
+ }, n),
2874
+ def: () => null,
2875
+ del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
2876
+ strikethrough: !0,
2877
+ children: t(e.tokens)
2878
+ }, n) : /* @__PURE__ */ p(w, {
2879
+ strikethrough: !0,
2880
+ children: e.text
2881
+ }, n),
2882
+ em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
2883
+ italic: !0,
2884
+ children: t(e.tokens)
2885
+ }, n) : /* @__PURE__ */ p(w, {
2886
+ italic: !0,
2887
+ children: e.text
2888
+ }, n),
2889
+ escape: () => null,
2890
+ heading: (e, t, n) => {
2891
+ let r = e.depth;
2892
+ return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(O, {
2893
+ level: r,
2894
+ children: t(e.tokens)
2895
+ }, n) : /* @__PURE__ */ p(O, {
2896
+ level: r,
2897
+ text: e.text
2898
+ }, n);
2899
+ },
2900
+ hr: (e, t, n) => /* @__PURE__ */ p(E, {}, n),
2901
+ html: () => null,
2902
+ image: (e, t, n) => /* @__PURE__ */ p(N, {
2903
+ block: !0,
2904
+ enableModal: !0,
2905
+ src: e.href,
2906
+ alt: e.text
2907
+ }, n),
2908
+ link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
2909
+ href: e.href,
2910
+ children: t(e.tokens)
2911
+ }, n) : /* @__PURE__ */ p(w, {
2912
+ href: e.href,
2913
+ children: e.text
2914
+ }, n),
2915
+ list: (e, t, n) => {
2916
+ let r = e.items.map((e, n) => /* @__PURE__ */ p("li", { children: t(e.tokens) }, n));
2917
+ return /* @__PURE__ */ p(Pt, {
2918
+ listStyle: e.ordered ? "ordered" : "unordered",
2919
+ children: r
2920
+ }, n);
2921
+ },
2922
+ list_item: (e, t, n) => /* @__PURE__ */ p("li", { children: e.tokens && e.tokens.length !== 0 ? t(e.tokens) : e.text }, n),
2923
+ paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(wt, { children: t(e.tokens) }, n) : null,
2924
+ space: () => null,
2925
+ strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
2926
+ bold: !0,
2927
+ children: t(e.tokens)
2928
+ }, n) : /* @__PURE__ */ p(w, {
2929
+ bold: !0,
2930
+ children: e.text
2931
+ }, n),
2932
+ table: (e, t, n) => {
2933
+ let r = (e) => e.map((e, n) => /* @__PURE__ */ p(zn, { children: t(e.tokens) }, n)), i = /* @__PURE__ */ p(Y, { children: r(e.header) }), a = e.rows.map((e, t) => /* @__PURE__ */ p(Y, { children: r(e) }, t));
2934
+ return /* @__PURE__ */ p(In, {
2935
+ header: /* @__PURE__ */ p(Vn, { children: i }),
2936
+ body: /* @__PURE__ */ p(Ln, { children: a })
2937
+ }, n);
2938
+ },
2939
+ 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)
2940
+ }, fr = ({ markdown: e, style: t, renderFunctionMap: n }) => {
2941
+ let r = {
2942
+ ...dr,
2943
+ ...n
2944
+ }, i = (e) => e.map((e, t) => {
2945
+ let n = r[e.type];
2946
+ return n ? n(e, i, t) : null;
2947
+ }), a = Qe.setOptions({ gfm: !0 }).lexer(e);
2948
+ return /* @__PURE__ */ p("div", {
2949
+ className: ur["markdown-body"],
2950
+ style: {
2951
+ "--elmethis-margin-block-start": "2.5rem",
2952
+ ...t
2953
+ },
2954
+ children: i(a)
2955
+ });
2956
+ }, $ = {
2957
+ char: "_char_sojtj_1",
2958
+ typed: "_typed_sojtj_20",
2959
+ current: "_current_sojtj_24",
2960
+ incorrect: "_incorrect_sojtj_29"
2961
+ }, pr = ({ target: e = "Typing game", style: t }) => {
2962
+ let [n, r] = d(() => {
2963
+ let t = e.split("").map((e) => ({
2964
+ char: e,
2965
+ status: "default"
2966
+ }));
2967
+ return t.length > 0 && (t[0].status = "current"), t;
2968
+ }), [i, a] = d(0), [o, c] = d(0), [l, u] = d(!1);
2969
+ return s(() => {
2970
+ let t = e.split("").map((e) => ({
2971
+ char: e,
2972
+ status: "default"
2973
+ }));
2974
+ t.length > 0 && (t[0].status = "current");
2975
+ let n = window.setTimeout(() => {
2976
+ r(t), a(0), c(0), u(!1);
2977
+ }, 0);
2978
+ return () => clearTimeout(n);
2979
+ }, [e]), s(() => {
2980
+ let e = (e) => {
2981
+ l || e.key.length !== 1 || r((t) => {
2982
+ if (!t[i]) return t;
2983
+ let n = [...t];
2984
+ return e.key === n[i].char ? (n[i] = {
2985
+ ...n[i],
2986
+ status: "typed"
2987
+ }, i === n.length - 1 ? u(!0) : a((e) => (n[e + 1] = {
2988
+ ...n[e + 1],
2989
+ status: "current"
2990
+ }, e + 1))) : (n[i] = {
2991
+ ...n[i],
2992
+ status: "incorrect"
2993
+ }, c((e) => e + 1)), n;
2994
+ });
2995
+ };
2996
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2997
+ }, [i, l]), /* @__PURE__ */ m("div", {
2998
+ style: t,
2999
+ children: [
3000
+ /* @__PURE__ */ p("div", { children: n.map((e, t) => /* @__PURE__ */ p("span", {
3001
+ className: [
3002
+ $.char,
3003
+ e.status === "typed" ? $.typed : "",
3004
+ e.status === "current" ? $.current : "",
3005
+ e.status === "incorrect" ? $.incorrect : ""
3006
+ ].filter(Boolean).join(" "),
3007
+ children: e.char
3008
+ }, t)) }),
3009
+ l && /* @__PURE__ */ p("div", { children: "FINISH!" }),
3010
+ o > 0 && /* @__PURE__ */ m("div", { children: ["Mistakes: ", o] })
3011
+ ]
3012
+ });
3013
+ }, mr = ({ oEmbed: e, style: t }) => e.type === "photo" ? /* @__PURE__ */ p("div", {
3014
+ style: t,
3015
+ children: /* @__PURE__ */ p(N, {
3016
+ src: e.url,
3017
+ alt: e.title,
3018
+ width: e.width,
3019
+ height: e.height,
3020
+ block: !0
3021
+ })
3022
+ }) : e.type === "video" || e.type === "rich" ? /* @__PURE__ */ p("div", {
3023
+ style: {
3024
+ width: e.width ? `${e.width}px` : void 0,
3025
+ height: e.height ? `${e.height}px` : void 0,
3026
+ ...t
3027
+ },
3028
+ dangerouslySetInnerHTML: { __html: e.html }
3029
+ }) : /* @__PURE__ */ p("div", {
3030
+ style: t,
3031
+ children: /* @__PURE__ */ p(w, {
3032
+ href: e.author_url ?? e.provider_url ?? "#",
3033
+ children: e.title ?? e.author_name ?? e.provider_name ?? "Link"
3034
+ })
8
3035
  });
9
3036
  //#endregion
10
- export { n as ElmTemplate };
3037
+ export { mt as ElmArrowIcon, tn as ElmBlockFallback, Tt as ElmBlockQuote, qt as ElmBookmark, _t as ElmBookmarkIcon, Jt as ElmBreadcrumb, on as ElmButton, Ot as ElmCallout, sn as ElmCheckbox, qn as ElmCodeBlock, Xn as ElmColorSample, $n as ElmColorTable, hn as ElmColumn, _n as ElmColumnList, nr as ElmCommandPalette, bn as ElmConfirmModal, bt as ElmCubeIcon, xn as ElmDesktopWindow, E as ElmDivider, S as ElmDotLoadingIcon, Kt as ElmFile, jt as ElmFragmentIdentifier, O as ElmHeading, N as ElmImage, b as ElmInlineIcon, w as ElmInlineText, lr as ElmJarkup, ir as ElmJsonComponentRenderer, Yn as ElmKatex, nt as ElmLanguageIcon, Pt as ElmList, St as ElmLoginIcon, fr as ElmMarkdown, x as ElmMdiIcon, e as ElmMermaid, yn as ElmModal, Vt as ElmMultiProgress, mr as ElmOEmbed, Yt as ElmPageTop, wt as ElmParagraph, Cn as ElmParallax, zt as ElmProgress, en as ElmRectangleWave, cn as ElmSelect, Kn as ElmShikiHighlighter, Dn as ElmSimpleTooltip, kn as ElmSnackbar, jn as ElmSnackbarContainer, rn as ElmSpinner, ct as ElmSquareLoadingIcon, Wt as ElmStatusMessage, ln as ElmSwitch, In as ElmTable, Ln as ElmTableBody, zn as ElmTableCell, Vn as ElmTableHeader, Zt as ElmTableOfContents, Y as ElmTableRow, Mn as ElmTabs, Rt as ElmTemplate, dn as ElmTextField, Nn as ElmToggle, pt as ElmToggleTheme, En as ElmTooltip, pr as ElmTyping, It as ElmTypingAnimation, an as ElmUnsupportedBlock, pn as ElmValidation, rt as LANGUAGES };