@elmethis/react 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ElmMermaid-BFqvHKdQ.js +71 -0
- package/lib/ElmMermaid-DDrDuDJ-.cjs +1 -0
- package/lib/index.react.cjs +1 -1
- package/lib/index.react.mjs +1357 -1175
- package/lib/style.css +1 -1
- package/lib-types/components/code/ElmCodeBlock.d.ts +3 -17
- package/lib-types/components/code/ElmCodeBlock.d.ts.map +1 -1
- package/lib-types/components/code/ElmKatex.d.ts +3 -1
- package/lib-types/components/code/ElmKatex.d.ts.map +1 -1
- package/lib-types/components/code/ElmMermaid.d.ts +3 -1
- package/lib-types/components/code/ElmMermaid.d.ts.map +1 -1
- package/lib-types/components/code/ElmShikiHighlighter.d.ts.map +1 -1
- package/lib-types/components/containments/ElmDesktopWindow.stories.d.ts.map +1 -1
- package/lib-types/components/containments/ElmModal.d.ts.map +1 -1
- package/lib-types/components/containments/ElmParallax.stories.d.ts.map +1 -1
- package/lib-types/components/containments/ElmSnackbar.d.ts.map +1 -1
- package/lib-types/components/containments/ElmToggle.d.ts +2 -5
- package/lib-types/components/containments/ElmToggle.d.ts.map +1 -1
- package/lib-types/components/data/ElmMultiProgress.d.ts.map +1 -1
- package/lib-types/components/data/ElmProgress.d.ts.map +1 -1
- package/lib-types/components/data/ElmStatusMessage.d.ts.map +1 -1
- package/lib-types/components/embed/ElmOEmbed.d.ts.map +1 -1
- package/lib-types/components/fallback/ElmRectangleWave.d.ts.map +1 -1
- package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts +2 -2
- package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts.map +1 -1
- package/lib-types/components/form/ElmButton.d.ts.map +1 -1
- package/lib-types/components/form/ElmCheckbox.d.ts.map +1 -1
- package/lib-types/components/form/ElmCheckbox.stories.d.ts.map +1 -1
- package/lib-types/components/form/ElmSelect.d.ts.map +1 -1
- package/lib-types/components/form/ElmSwitch.d.ts.map +1 -1
- package/lib-types/components/form/ElmTextField.d.ts.map +1 -1
- package/lib-types/components/form/ElmValidation.d.ts.map +1 -1
- package/lib-types/components/icon/ElmMdiIcon.d.ts +6 -2
- package/lib-types/components/icon/ElmMdiIcon.d.ts.map +1 -1
- package/lib-types/components/icon/ElmMdiIcon.stories.d.ts.map +1 -1
- package/lib-types/components/icon/ElmToggleTheme.d.ts.map +1 -1
- package/lib-types/components/media/ElmFile.d.ts +3 -7
- package/lib-types/components/media/ElmFile.d.ts.map +1 -1
- package/lib-types/components/media/ElmImage.d.ts +3 -7
- package/lib-types/components/media/ElmImage.d.ts.map +1 -1
- package/lib-types/components/navigation/ElmBookmark.d.ts +3 -7
- package/lib-types/components/navigation/ElmBookmark.d.ts.map +1 -1
- package/lib-types/components/navigation/ElmBreadcrumb.d.ts.map +1 -1
- package/lib-types/components/navigation/ElmPageTop.d.ts +1 -1
- package/lib-types/components/navigation/ElmPageTop.d.ts.map +1 -1
- package/lib-types/components/navigation/ElmTableOfContents.d.ts.map +1 -1
- package/lib-types/components/others/ElmColorSample.d.ts.map +1 -1
- package/lib-types/components/others/ElmCommandPalette.d.ts.map +1 -1
- package/lib-types/components/others/ElmJarkup.d.ts +29 -0
- package/lib-types/components/others/ElmJarkup.d.ts.map +1 -0
- package/lib-types/components/others/ElmJarkup.stories.d.ts +8 -0
- package/lib-types/components/others/ElmJarkup.stories.d.ts.map +1 -0
- package/lib-types/components/others/ElmJsonComponentRenderer.stories.d.ts.map +1 -1
- package/lib-types/components/others/ElmMarkdown.d.ts +15 -2
- package/lib-types/components/others/ElmMarkdown.d.ts.map +1 -1
- package/lib-types/components/others/ElmMarkdown.stories.d.ts.map +1 -1
- package/lib-types/components/others/ElmTyping.d.ts.map +1 -1
- package/lib-types/components/table/ElmTable.d.ts +3 -8
- package/lib-types/components/table/ElmTable.d.ts.map +1 -1
- package/lib-types/components/typography/ElmBlockQuote.d.ts +2 -2
- package/lib-types/components/typography/ElmBlockQuote.d.ts.map +1 -1
- package/lib-types/components/typography/ElmCallout.d.ts +2 -2
- package/lib-types/components/typography/ElmCallout.d.ts.map +1 -1
- package/lib-types/components/typography/ElmDivider.d.ts +2 -6
- package/lib-types/components/typography/ElmDivider.d.ts.map +1 -1
- package/lib-types/components/typography/ElmFragmentIdentifier.d.ts.map +1 -1
- package/lib-types/components/typography/ElmHeading.d.ts +2 -2
- package/lib-types/components/typography/ElmHeading.d.ts.map +1 -1
- package/lib-types/components/typography/ElmList.d.ts +2 -2
- package/lib-types/components/typography/ElmList.d.ts.map +1 -1
- package/lib-types/components/typography/ElmParagraph.d.ts +1 -1
- package/lib-types/components/typography/ElmParagraph.d.ts.map +1 -1
- package/lib-types/hooks/useElmethisTheme.d.ts.map +1 -1
- package/lib-types/lib.d.ts +14 -13
- package/lib-types/lib.d.ts.map +1 -1
- package/lib-types/styles/variables.d.ts +2 -1
- package/lib-types/styles/variables.d.ts.map +1 -1
- package/package.json +6 -1
package/lib/index.react.mjs
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 y, rgbToColorString as b } from "polished";
|
|
5
|
+
import { mdiAccount as x, mdiAlert as ee, mdiAlertCircle as te, mdiAlertOctagram as ne, mdiApplicationOutline as re, mdiArchive as ie, mdiArrowDownDropCircleOutline as ae, mdiArrowLeft as oe, mdiBackspaceOutline as se, mdiCalendarMonth as ce, mdiCalendarRefresh as le, mdiCheck as ue, mdiCheckCircle as de, mdiCheckCircleOutline as fe, mdiChevronRight as pe, mdiChevronUp as me, mdiClipboardCheckMultipleOutline as he, mdiClipboardMultipleOutline as ge, mdiCloseCircleOutline as _e, mdiConsoleLine as ve, mdiDownload as ye, mdiEarth as be, mdiEmail as xe, mdiEyeOffOutline as Se, mdiEyeOutline as Ce, mdiFileOutline as we, mdiFolderOpen as Te, mdiFormatQuoteClose as Ee, mdiFormatQuoteOpen as De, mdiHome as Oe, mdiInformation as ke, mdiKey as Ae, mdiKeyboardReturn as je, mdiLightbulbOn as Me, mdiLinkVariant as Ne, mdiLoading as Pe, mdiLock as Fe, mdiLoginVariant as Ie, mdiLogoutVariant as Le, mdiMagnify as Re, mdiMenuDown as ze, mdiMessageImageOutline as Be, mdiPen as Ve, mdiPlus as He, mdiReload as Ue, mdiShieldAlert as We, mdiTable as Ge, mdiTag as Ke, mdiText as qe } from "@mdi/js";
|
|
6
|
+
import { createPortal as Je } from "react-dom";
|
|
7
|
+
import { kebabCase as Ye } from "lodash-es";
|
|
8
|
+
import { marked as Xe } from "marked";
|
|
9
|
+
var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
10
|
+
let [n, r] = d(e);
|
|
11
|
+
return /* @__PURE__ */ p("img", {
|
|
12
|
+
className: Ze.icon,
|
|
10
13
|
src: n,
|
|
11
14
|
alt: t,
|
|
12
15
|
onError: () => {
|
|
13
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>");
|
|
14
17
|
}
|
|
15
18
|
});
|
|
16
|
-
},
|
|
19
|
+
}, Qe = { icon: "_icon_18sdb_1" }, $e = {
|
|
17
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",
|
|
18
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",
|
|
19
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",
|
|
@@ -33,9 +36,9 @@ var Ke = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
33
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",
|
|
34
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",
|
|
35
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"
|
|
36
|
-
},
|
|
37
|
-
className:
|
|
38
|
-
src:
|
|
39
|
+
}, et = (e) => /* @__PURE__ */ p("img", {
|
|
40
|
+
className: Qe.icon,
|
|
41
|
+
src: $e[e.language] || "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e",
|
|
39
42
|
width: e.size,
|
|
40
43
|
height: e.size,
|
|
41
44
|
alt: e.language,
|
|
@@ -44,7 +47,7 @@ var Ke = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
44
47
|
height: e.size,
|
|
45
48
|
...e.style
|
|
46
49
|
}
|
|
47
|
-
}),
|
|
50
|
+
}), tt = [
|
|
48
51
|
"rust",
|
|
49
52
|
"javascript",
|
|
50
53
|
"typescript",
|
|
@@ -64,30 +67,36 @@ var Ke = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
64
67
|
"cpp",
|
|
65
68
|
"c",
|
|
66
69
|
"file"
|
|
67
|
-
],
|
|
68
|
-
|
|
70
|
+
], nt = {
|
|
71
|
+
icon: "_icon_g71ox_1",
|
|
72
|
+
"icon-theme-color": "_icon-theme-color_g71ox_10"
|
|
73
|
+
}, C = (e) => /* @__PURE__ */ p("div", {
|
|
69
74
|
style: e.style,
|
|
70
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ p("svg", {
|
|
71
76
|
width: e.size || "1.25rem",
|
|
72
77
|
height: e.size || "1.25rem",
|
|
73
78
|
viewBox: "0 0 24 24",
|
|
74
79
|
focusable: "false",
|
|
75
80
|
role: "img",
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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 ? nt["icon-theme-color"] : nt.icon,
|
|
79
88
|
fill: "currentColor",
|
|
80
89
|
d: e.d
|
|
81
90
|
})
|
|
82
91
|
})
|
|
83
|
-
}),
|
|
92
|
+
}), rt = {
|
|
84
93
|
wrapper: "_wrapper_1q92c_15",
|
|
85
94
|
dot: "_dot_1q92c_22",
|
|
86
95
|
bounce: "_bounce_1q92c_1"
|
|
87
96
|
}, w = (e) => {
|
|
88
97
|
let { color: t, size: n = "64px", style: r } = e;
|
|
89
|
-
return /* @__PURE__ */
|
|
90
|
-
className:
|
|
98
|
+
return /* @__PURE__ */ p("div", {
|
|
99
|
+
className: rt.wrapper,
|
|
91
100
|
style: {
|
|
92
101
|
width: n,
|
|
93
102
|
height: n,
|
|
@@ -97,83 +106,83 @@ var Ke = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
97
106
|
1,
|
|
98
107
|
2,
|
|
99
108
|
3
|
|
100
|
-
].map((e) => /* @__PURE__ */
|
|
101
|
-
className:
|
|
109
|
+
].map((e) => /* @__PURE__ */ p("div", {
|
|
110
|
+
className: rt.dot,
|
|
102
111
|
"aria-hidden": !0,
|
|
103
112
|
style: t ? { backgroundColor: t } : void 0
|
|
104
113
|
}, e))
|
|
105
114
|
});
|
|
106
|
-
},
|
|
115
|
+
}, it = {
|
|
107
116
|
wrapper: "_wrapper_1yu3x_19",
|
|
108
117
|
square: "_square_1yu3x_28",
|
|
109
118
|
appear: "_appear_1yu3x_1"
|
|
110
|
-
},
|
|
111
|
-
let { size: t = "3rem", dimensions: n = 4, style: r } = e, i =
|
|
112
|
-
return /* @__PURE__ */
|
|
113
|
-
className:
|
|
119
|
+
}, at = 1200, ot = (e) => {
|
|
120
|
+
let { size: t = "3rem", dimensions: n = 4, style: r } = e, i = at / (n * 3), a = Array.from({ length: n });
|
|
121
|
+
return /* @__PURE__ */ p("div", {
|
|
122
|
+
className: it.wrapper,
|
|
114
123
|
style: {
|
|
115
124
|
"--size": t,
|
|
116
125
|
"--dimensions": n,
|
|
117
|
-
"--duration": `${
|
|
126
|
+
"--duration": `${at}ms`,
|
|
118
127
|
...r
|
|
119
128
|
},
|
|
120
|
-
children: a.map((e, t) => a.map((e, n) => /* @__PURE__ */
|
|
121
|
-
className:
|
|
129
|
+
children: a.map((e, t) => a.map((e, n) => /* @__PURE__ */ p("div", {
|
|
130
|
+
className: it.square,
|
|
122
131
|
style: { "--delay": `${i * (t + n)}ms` }
|
|
123
132
|
}, `${t}-${n}`)))
|
|
124
133
|
});
|
|
125
|
-
},
|
|
126
|
-
function
|
|
134
|
+
}, st = { icon: "_icon_x4u0f_1" }, ct = "elmethis-theme";
|
|
135
|
+
function lt() {
|
|
127
136
|
if (typeof document < "u") {
|
|
128
137
|
let e = document.documentElement.getAttribute("data-theme");
|
|
129
138
|
if (e != null) return e === "dark";
|
|
130
139
|
}
|
|
131
140
|
if (typeof localStorage < "u") {
|
|
132
|
-
let e = localStorage.getItem(
|
|
141
|
+
let e = localStorage.getItem(ct);
|
|
133
142
|
if (e != null) return e === "dark";
|
|
134
143
|
}
|
|
135
144
|
return !1;
|
|
136
145
|
}
|
|
137
|
-
function
|
|
138
|
-
let [e, t] =
|
|
146
|
+
function ut() {
|
|
147
|
+
let [e, t] = d(lt), n = a(() => {
|
|
139
148
|
t((e) => !e);
|
|
140
149
|
}, []);
|
|
141
|
-
return
|
|
150
|
+
return s(() => {
|
|
142
151
|
if (typeof document < "u") {
|
|
143
152
|
document.documentElement.setAttribute("data-theme", e ? "dark" : "light");
|
|
144
153
|
let t = document.querySelector("body");
|
|
145
|
-
t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(
|
|
154
|
+
t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(ct, e ? "dark" : "light");
|
|
146
155
|
}
|
|
147
156
|
}, [e]), {
|
|
148
157
|
isDarkTheme: e,
|
|
149
|
-
toggleTheme:
|
|
158
|
+
toggleTheme: n
|
|
150
159
|
};
|
|
151
160
|
}
|
|
152
161
|
//#endregion
|
|
153
162
|
//#region src/components/icon/ElmToggleTheme.tsx
|
|
154
|
-
var
|
|
155
|
-
let { size: t = "2rem", style: n } = e, { isDarkTheme: r, toggleTheme: i } =
|
|
156
|
-
return r ? /* @__PURE__ */
|
|
163
|
+
var dt = (e) => {
|
|
164
|
+
let { size: t = "2rem", style: n } = e, { isDarkTheme: r, toggleTheme: i } = ut();
|
|
165
|
+
return r ? /* @__PURE__ */ m("svg", {
|
|
157
166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
158
167
|
width: t,
|
|
159
168
|
height: t,
|
|
160
169
|
viewBox: "0 0 24 24",
|
|
161
|
-
className:
|
|
170
|
+
className: st.icon,
|
|
162
171
|
style: n,
|
|
163
172
|
onClick: i,
|
|
164
173
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ m("path", {
|
|
166
175
|
fillOpacity: "0",
|
|
167
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",
|
|
168
177
|
fill: "currentColor",
|
|
169
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
170
179
|
id: "lineMdSunnyOutlineToMoonLoopTransition0",
|
|
171
180
|
fill: "freeze",
|
|
172
181
|
attributeName: "fill-opacity",
|
|
173
182
|
begin: "0.6s;lineMdSunnyOutlineToMoonLoopTransition0.begin+6s",
|
|
174
183
|
dur: "0.4s",
|
|
175
184
|
values: "0;1"
|
|
176
|
-
}), /* @__PURE__ */
|
|
185
|
+
}), /* @__PURE__ */ p("animate", {
|
|
177
186
|
fill: "freeze",
|
|
178
187
|
attributeName: "fill-opacity",
|
|
179
188
|
begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+2.2s",
|
|
@@ -181,17 +190,17 @@ var ot = (e) => {
|
|
|
181
190
|
values: "1;0"
|
|
182
191
|
})]
|
|
183
192
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ m("path", {
|
|
185
194
|
fillOpacity: "0",
|
|
186
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",
|
|
187
196
|
fill: "currentColor",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
189
198
|
fill: "freeze",
|
|
190
199
|
attributeName: "fill-opacity",
|
|
191
200
|
begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+3s",
|
|
192
201
|
dur: "0.4s",
|
|
193
202
|
values: "0;1"
|
|
194
|
-
}), /* @__PURE__ */
|
|
203
|
+
}), /* @__PURE__ */ p("animate", {
|
|
195
204
|
fill: "freeze",
|
|
196
205
|
attributeName: "fill-opacity",
|
|
197
206
|
begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+5.2s",
|
|
@@ -199,17 +208,17 @@ var ot = (e) => {
|
|
|
199
208
|
values: "1;0"
|
|
200
209
|
})]
|
|
201
210
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ m("path", {
|
|
203
212
|
fillOpacity: "0",
|
|
204
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",
|
|
205
214
|
fill: "currentColor",
|
|
206
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
207
216
|
fill: "freeze",
|
|
208
217
|
attributeName: "fill-opacity",
|
|
209
218
|
begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+0.4s",
|
|
210
219
|
dur: "0.4s",
|
|
211
220
|
values: "0;1"
|
|
212
|
-
}), /* @__PURE__ */
|
|
221
|
+
}), /* @__PURE__ */ p("animate", {
|
|
213
222
|
fill: "freeze",
|
|
214
223
|
attributeName: "fill-opacity",
|
|
215
224
|
begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+2.8s",
|
|
@@ -217,17 +226,17 @@ var ot = (e) => {
|
|
|
217
226
|
values: "1;0"
|
|
218
227
|
})]
|
|
219
228
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ m("path", {
|
|
221
230
|
fillOpacity: "0",
|
|
222
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",
|
|
223
232
|
fill: "currentColor",
|
|
224
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
225
234
|
fill: "freeze",
|
|
226
235
|
attributeName: "fill-opacity",
|
|
227
236
|
begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+3.4s",
|
|
228
237
|
dur: "0.4s",
|
|
229
238
|
values: "0;1"
|
|
230
|
-
}), /* @__PURE__ */
|
|
239
|
+
}), /* @__PURE__ */ p("animate", {
|
|
231
240
|
fill: "freeze",
|
|
232
241
|
attributeName: "fill-opacity",
|
|
233
242
|
begin: "lineMdSunnyOutlineToMoonLoopTransition0.begin+5.6s",
|
|
@@ -235,29 +244,29 @@ var ot = (e) => {
|
|
|
235
244
|
values: "1;0"
|
|
236
245
|
})]
|
|
237
246
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ m("g", {
|
|
239
248
|
fill: "none",
|
|
240
249
|
stroke: "currentColor",
|
|
241
250
|
strokeLinecap: "round",
|
|
242
251
|
strokeLinejoin: "round",
|
|
243
252
|
strokeWidth: "2",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ m("g", { children: [
|
|
254
|
+
/* @__PURE__ */ p("path", {
|
|
246
255
|
strokeDasharray: "2",
|
|
247
256
|
strokeDashoffset: "4",
|
|
248
257
|
d: "M12 21v1M21 12h1M12 3v-1M3 12h-1",
|
|
249
|
-
children: /* @__PURE__ */
|
|
258
|
+
children: /* @__PURE__ */ p("animate", {
|
|
250
259
|
fill: "freeze",
|
|
251
260
|
attributeName: "stroke-dashoffset",
|
|
252
261
|
dur: "0.2s",
|
|
253
262
|
values: "4;2"
|
|
254
263
|
})
|
|
255
264
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ p("path", {
|
|
257
266
|
strokeDasharray: "2",
|
|
258
267
|
strokeDashoffset: "4",
|
|
259
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",
|
|
260
|
-
children: /* @__PURE__ */
|
|
269
|
+
children: /* @__PURE__ */ p("animate", {
|
|
261
270
|
fill: "freeze",
|
|
262
271
|
attributeName: "stroke-dashoffset",
|
|
263
272
|
begin: "0.2s",
|
|
@@ -265,16 +274,16 @@ var ot = (e) => {
|
|
|
265
274
|
values: "4;2"
|
|
266
275
|
})
|
|
267
276
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ p("set", {
|
|
269
278
|
fill: "freeze",
|
|
270
279
|
attributeName: "opacity",
|
|
271
280
|
begin: "0.5s",
|
|
272
281
|
to: "0"
|
|
273
282
|
})
|
|
274
|
-
] }), /* @__PURE__ */
|
|
283
|
+
] }), /* @__PURE__ */ p("path", {
|
|
275
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",
|
|
276
285
|
opacity: "0",
|
|
277
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ p("set", {
|
|
278
287
|
fill: "freeze",
|
|
279
288
|
attributeName: "opacity",
|
|
280
289
|
begin: "0.5s",
|
|
@@ -282,20 +291,20 @@ var ot = (e) => {
|
|
|
282
291
|
})
|
|
283
292
|
})]
|
|
284
293
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ m("mask", {
|
|
286
295
|
id: "lineMdSunnyOutlineToMoonLoopTransition1",
|
|
287
296
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ p("circle", {
|
|
289
298
|
cx: "12",
|
|
290
299
|
cy: "12",
|
|
291
300
|
r: "12",
|
|
292
301
|
fill: "#fff"
|
|
293
302
|
}),
|
|
294
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ p("circle", {
|
|
295
304
|
cx: "12",
|
|
296
305
|
cy: "12",
|
|
297
306
|
r: "4",
|
|
298
|
-
children: /* @__PURE__ */
|
|
307
|
+
children: /* @__PURE__ */ p("animate", {
|
|
299
308
|
fill: "freeze",
|
|
300
309
|
attributeName: "r",
|
|
301
310
|
begin: "0.1s",
|
|
@@ -303,27 +312,27 @@ var ot = (e) => {
|
|
|
303
312
|
values: "4;8"
|
|
304
313
|
})
|
|
305
314
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ m("circle", {
|
|
307
316
|
cx: "22",
|
|
308
317
|
cy: "2",
|
|
309
318
|
r: "3",
|
|
310
319
|
fill: "#fff",
|
|
311
320
|
children: [
|
|
312
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ p("animate", {
|
|
313
322
|
fill: "freeze",
|
|
314
323
|
attributeName: "cx",
|
|
315
324
|
begin: "0.1s",
|
|
316
325
|
dur: "0.4s",
|
|
317
326
|
values: "22;18"
|
|
318
327
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ p("animate", {
|
|
320
329
|
fill: "freeze",
|
|
321
330
|
attributeName: "cy",
|
|
322
331
|
begin: "0.1s",
|
|
323
332
|
dur: "0.4s",
|
|
324
333
|
values: "2;6"
|
|
325
334
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ p("animate", {
|
|
327
336
|
fill: "freeze",
|
|
328
337
|
attributeName: "r",
|
|
329
338
|
begin: "0.1s",
|
|
@@ -332,26 +341,26 @@ var ot = (e) => {
|
|
|
332
341
|
})
|
|
333
342
|
]
|
|
334
343
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ m("circle", {
|
|
336
345
|
cx: "22",
|
|
337
346
|
cy: "2",
|
|
338
347
|
r: "1",
|
|
339
348
|
children: [
|
|
340
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ p("animate", {
|
|
341
350
|
fill: "freeze",
|
|
342
351
|
attributeName: "cx",
|
|
343
352
|
begin: "0.1s",
|
|
344
353
|
dur: "0.4s",
|
|
345
354
|
values: "22;18"
|
|
346
355
|
}),
|
|
347
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ p("animate", {
|
|
348
357
|
fill: "freeze",
|
|
349
358
|
attributeName: "cy",
|
|
350
359
|
begin: "0.1s",
|
|
351
360
|
dur: "0.4s",
|
|
352
361
|
values: "2;6"
|
|
353
362
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ p("animate", {
|
|
355
364
|
fill: "freeze",
|
|
356
365
|
attributeName: "r",
|
|
357
366
|
begin: "0.1s",
|
|
@@ -362,19 +371,19 @@ var ot = (e) => {
|
|
|
362
371
|
})
|
|
363
372
|
]
|
|
364
373
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ m("circle", {
|
|
366
375
|
cx: "12",
|
|
367
376
|
cy: "12",
|
|
368
377
|
r: "6",
|
|
369
378
|
mask: "url(#lineMdSunnyOutlineToMoonLoopTransition1)",
|
|
370
379
|
fill: "currentColor",
|
|
371
|
-
children: [/* @__PURE__ */
|
|
380
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
372
381
|
fill: "freeze",
|
|
373
382
|
attributeName: "r",
|
|
374
383
|
begin: "0.1s",
|
|
375
384
|
dur: "0.4s",
|
|
376
385
|
values: "6;10"
|
|
377
|
-
}), /* @__PURE__ */
|
|
386
|
+
}), /* @__PURE__ */ p("set", {
|
|
378
387
|
fill: "freeze",
|
|
379
388
|
attributeName: "opacity",
|
|
380
389
|
begin: "0.5s",
|
|
@@ -382,33 +391,33 @@ var ot = (e) => {
|
|
|
382
391
|
})]
|
|
383
392
|
})
|
|
384
393
|
]
|
|
385
|
-
}) : /* @__PURE__ */
|
|
394
|
+
}) : /* @__PURE__ */ m("svg", {
|
|
386
395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
387
396
|
width: t,
|
|
388
397
|
height: t,
|
|
389
398
|
viewBox: "0 0 24 24",
|
|
390
|
-
className:
|
|
399
|
+
className: st.icon,
|
|
391
400
|
style: n,
|
|
392
401
|
onClick: i,
|
|
393
402
|
children: [
|
|
394
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ m("g", {
|
|
395
404
|
fill: "none",
|
|
396
405
|
stroke: "currentColor",
|
|
397
406
|
strokeLinecap: "round",
|
|
398
407
|
strokeLinejoin: "round",
|
|
399
408
|
strokeWidth: "2",
|
|
400
409
|
children: [
|
|
401
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ m("path", {
|
|
402
411
|
strokeDasharray: "2",
|
|
403
412
|
strokeDashoffset: "2",
|
|
404
413
|
d: "M12 19v1M19 12h1M12 5v-1M5 12h-1",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
414
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
406
415
|
fill: "freeze",
|
|
407
416
|
attributeName: "d",
|
|
408
417
|
begin: "1.2s",
|
|
409
418
|
dur: "0.2s",
|
|
410
419
|
values: "M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1"
|
|
411
|
-
}), /* @__PURE__ */
|
|
420
|
+
}), /* @__PURE__ */ p("animate", {
|
|
412
421
|
fill: "freeze",
|
|
413
422
|
attributeName: "stroke-dashoffset",
|
|
414
423
|
begin: "1.2s",
|
|
@@ -416,17 +425,17 @@ var ot = (e) => {
|
|
|
416
425
|
values: "2;0"
|
|
417
426
|
})]
|
|
418
427
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ m("path", {
|
|
420
429
|
strokeDasharray: "2",
|
|
421
430
|
strokeDashoffset: "2",
|
|
422
431
|
d: "M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5",
|
|
423
|
-
children: [/* @__PURE__ */
|
|
432
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
424
433
|
fill: "freeze",
|
|
425
434
|
attributeName: "d",
|
|
426
435
|
begin: "1.4s",
|
|
427
436
|
dur: "0.2s",
|
|
428
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"
|
|
429
|
-
}), /* @__PURE__ */
|
|
438
|
+
}), /* @__PURE__ */ p("animate", {
|
|
430
439
|
fill: "freeze",
|
|
431
440
|
attributeName: "stroke-dashoffset",
|
|
432
441
|
begin: "1.4s",
|
|
@@ -434,7 +443,7 @@ var ot = (e) => {
|
|
|
434
443
|
values: "2;0"
|
|
435
444
|
})]
|
|
436
445
|
}),
|
|
437
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ p("animateTransform", {
|
|
438
447
|
attributeName: "transform",
|
|
439
448
|
dur: "30s",
|
|
440
449
|
repeatCount: "indefinite",
|
|
@@ -443,19 +452,19 @@ var ot = (e) => {
|
|
|
443
452
|
})
|
|
444
453
|
]
|
|
445
454
|
}),
|
|
446
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ m("g", {
|
|
447
456
|
fill: "currentColor",
|
|
448
|
-
children: [/* @__PURE__ */
|
|
457
|
+
children: [/* @__PURE__ */ p("path", {
|
|
449
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",
|
|
450
|
-
children: /* @__PURE__ */
|
|
459
|
+
children: /* @__PURE__ */ p("animate", {
|
|
451
460
|
fill: "freeze",
|
|
452
461
|
attributeName: "fill-opacity",
|
|
453
462
|
dur: "0.4s",
|
|
454
463
|
values: "1;0"
|
|
455
464
|
})
|
|
456
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ p("path", {
|
|
457
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",
|
|
458
|
-
children: /* @__PURE__ */
|
|
467
|
+
children: /* @__PURE__ */ p("animate", {
|
|
459
468
|
fill: "freeze",
|
|
460
469
|
attributeName: "fill-opacity",
|
|
461
470
|
begin: "0.2s",
|
|
@@ -464,34 +473,34 @@ var ot = (e) => {
|
|
|
464
473
|
})
|
|
465
474
|
})]
|
|
466
475
|
}),
|
|
467
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ p("path", {
|
|
468
477
|
fill: "none",
|
|
469
478
|
stroke: "currentColor",
|
|
470
479
|
strokeLinecap: "round",
|
|
471
480
|
strokeLinejoin: "round",
|
|
472
481
|
strokeWidth: "2",
|
|
473
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",
|
|
474
|
-
children: /* @__PURE__ */
|
|
483
|
+
children: /* @__PURE__ */ p("set", {
|
|
475
484
|
fill: "freeze",
|
|
476
485
|
attributeName: "opacity",
|
|
477
486
|
begin: "0.6s",
|
|
478
487
|
to: "0"
|
|
479
488
|
})
|
|
480
489
|
}),
|
|
481
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ m("mask", {
|
|
482
491
|
id: "lineMdMoonToSunnyOutlineLoopTransition0",
|
|
483
492
|
children: [
|
|
484
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ p("circle", {
|
|
485
494
|
cx: "12",
|
|
486
495
|
cy: "12",
|
|
487
496
|
r: "12",
|
|
488
497
|
fill: "#fff"
|
|
489
498
|
}),
|
|
490
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ p("circle", {
|
|
491
500
|
cx: "12",
|
|
492
501
|
cy: "12",
|
|
493
502
|
r: "8",
|
|
494
|
-
children: /* @__PURE__ */
|
|
503
|
+
children: /* @__PURE__ */ p("animate", {
|
|
495
504
|
fill: "freeze",
|
|
496
505
|
attributeName: "r",
|
|
497
506
|
begin: "0.6s",
|
|
@@ -499,27 +508,27 @@ var ot = (e) => {
|
|
|
499
508
|
values: "8;4"
|
|
500
509
|
})
|
|
501
510
|
}),
|
|
502
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ m("circle", {
|
|
503
512
|
cx: "18",
|
|
504
513
|
cy: "6",
|
|
505
514
|
r: "12",
|
|
506
515
|
fill: "#fff",
|
|
507
516
|
children: [
|
|
508
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ p("animate", {
|
|
509
518
|
fill: "freeze",
|
|
510
519
|
attributeName: "cx",
|
|
511
520
|
begin: "0.6s",
|
|
512
521
|
dur: "0.4s",
|
|
513
522
|
values: "18;22"
|
|
514
523
|
}),
|
|
515
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ p("animate", {
|
|
516
525
|
fill: "freeze",
|
|
517
526
|
attributeName: "cy",
|
|
518
527
|
begin: "0.6s",
|
|
519
528
|
dur: "0.4s",
|
|
520
529
|
values: "6;2"
|
|
521
530
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ p("animate", {
|
|
523
532
|
fill: "freeze",
|
|
524
533
|
attributeName: "r",
|
|
525
534
|
begin: "0.6s",
|
|
@@ -528,26 +537,26 @@ var ot = (e) => {
|
|
|
528
537
|
})
|
|
529
538
|
]
|
|
530
539
|
}),
|
|
531
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ m("circle", {
|
|
532
541
|
cx: "18",
|
|
533
542
|
cy: "6",
|
|
534
543
|
r: "10",
|
|
535
544
|
children: [
|
|
536
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ p("animate", {
|
|
537
546
|
fill: "freeze",
|
|
538
547
|
attributeName: "cx",
|
|
539
548
|
begin: "0.6s",
|
|
540
549
|
dur: "0.4s",
|
|
541
550
|
values: "18;22"
|
|
542
551
|
}),
|
|
543
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ p("animate", {
|
|
544
553
|
fill: "freeze",
|
|
545
554
|
attributeName: "cy",
|
|
546
555
|
begin: "0.6s",
|
|
547
556
|
dur: "0.4s",
|
|
548
557
|
values: "6;2"
|
|
549
558
|
}),
|
|
550
|
-
/* @__PURE__ */
|
|
559
|
+
/* @__PURE__ */ p("animate", {
|
|
551
560
|
fill: "freeze",
|
|
552
561
|
attributeName: "r",
|
|
553
562
|
begin: "0.6s",
|
|
@@ -558,20 +567,20 @@ var ot = (e) => {
|
|
|
558
567
|
})
|
|
559
568
|
]
|
|
560
569
|
}),
|
|
561
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ m("circle", {
|
|
562
571
|
cx: "12",
|
|
563
572
|
cy: "12",
|
|
564
573
|
r: "10",
|
|
565
574
|
mask: "url(#lineMdMoonToSunnyOutlineLoopTransition0)",
|
|
566
575
|
opacity: "0",
|
|
567
576
|
fill: "currentColor",
|
|
568
|
-
children: [/* @__PURE__ */
|
|
577
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
569
578
|
fill: "freeze",
|
|
570
579
|
attributeName: "r",
|
|
571
580
|
begin: "0.6s",
|
|
572
581
|
dur: "0.4s",
|
|
573
582
|
values: "10;6"
|
|
574
|
-
}), /* @__PURE__ */
|
|
583
|
+
}), /* @__PURE__ */ p("set", {
|
|
575
584
|
fill: "freeze",
|
|
576
585
|
attributeName: "opacity",
|
|
577
586
|
begin: "0.6s",
|
|
@@ -585,9 +594,9 @@ var ot = (e) => {
|
|
|
585
594
|
loading: "_loading_kn879_49",
|
|
586
595
|
normal: "_normal_kn879_55",
|
|
587
596
|
pending: "_pending_kn879_64"
|
|
588
|
-
},
|
|
597
|
+
}, ft = (e) => {
|
|
589
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)";
|
|
590
|
-
return /* @__PURE__ */
|
|
599
|
+
return /* @__PURE__ */ p("div", {
|
|
591
600
|
className: [
|
|
592
601
|
T.arrow,
|
|
593
602
|
!n && !r ? T.normal : void 0,
|
|
@@ -600,66 +609,66 @@ var ot = (e) => {
|
|
|
600
609
|
...a
|
|
601
610
|
}
|
|
602
611
|
});
|
|
603
|
-
},
|
|
612
|
+
}, pt = {
|
|
604
613
|
wrapper: "_wrapper_1c6r3_1",
|
|
605
614
|
favicon: "_favicon_1c6r3_24",
|
|
606
615
|
text: "_text_1c6r3_29"
|
|
607
|
-
},
|
|
616
|
+
}, mt = {
|
|
608
617
|
text: "_text_1nnze_1",
|
|
609
618
|
link: "_link_1nnze_19"
|
|
610
|
-
},
|
|
619
|
+
}, E = (e) => {
|
|
611
620
|
let t = (e) => {
|
|
612
621
|
let t = e.children;
|
|
613
|
-
return e.kbd && (t = /* @__PURE__ */
|
|
614
|
-
}, n = ({ favicon: e, href: t, children: n }) => /* @__PURE__ */
|
|
615
|
-
className:
|
|
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: mt.link,
|
|
616
625
|
href: t,
|
|
617
626
|
target: "_blank",
|
|
618
627
|
rel: "noopener noreferrer",
|
|
619
|
-
children: [e && /* @__PURE__ */
|
|
628
|
+
children: [e && /* @__PURE__ */ p(S, { src: e }), n]
|
|
620
629
|
}), r = (e) => e.href ? n(e) : t(e);
|
|
621
|
-
return /* @__PURE__ */
|
|
622
|
-
className:
|
|
630
|
+
return /* @__PURE__ */ p("span", {
|
|
631
|
+
className: mt.text,
|
|
623
632
|
style: {
|
|
624
633
|
"--elmethis-text-color-light": e.color,
|
|
625
634
|
"--elmethis-text-color-dark": e.color,
|
|
626
635
|
"--elmethis-text-background-color-light": e.backgroundColor,
|
|
627
636
|
"--elmethis-text-background-color-dark": e.backgroundColor,
|
|
628
|
-
color: e.color ?? (e.backgroundColor ?
|
|
637
|
+
color: e.color ?? (e.backgroundColor ? g(e.backgroundColor) > .5 ? "#3e434b" : "#eeeff1" : void 0),
|
|
629
638
|
backgroundColor: e.backgroundColor,
|
|
630
639
|
...e.style
|
|
631
640
|
},
|
|
632
641
|
children: r(e)
|
|
633
642
|
});
|
|
634
|
-
},
|
|
643
|
+
}, ht = (e) => {
|
|
635
644
|
let { name: t, href: n, favicon: r, style: i } = e;
|
|
636
|
-
return /* @__PURE__ */
|
|
637
|
-
className:
|
|
645
|
+
return /* @__PURE__ */ m("a", {
|
|
646
|
+
className: pt.wrapper,
|
|
638
647
|
href: n,
|
|
639
648
|
target: "_blank",
|
|
640
649
|
rel: "noopener noreferrer",
|
|
641
650
|
style: i,
|
|
642
|
-
children: [r == null ? /* @__PURE__ */
|
|
643
|
-
d:
|
|
651
|
+
children: [r == null ? /* @__PURE__ */ p(C, {
|
|
652
|
+
d: be,
|
|
644
653
|
size: "2.5rem",
|
|
645
654
|
style: { opacity: .7 }
|
|
646
|
-
}) : /* @__PURE__ */
|
|
647
|
-
className:
|
|
655
|
+
}) : /* @__PURE__ */ p("img", {
|
|
656
|
+
className: pt.favicon,
|
|
648
657
|
src: r,
|
|
649
658
|
alt: `favicon of ${t ?? n}`
|
|
650
|
-
}), /* @__PURE__ */
|
|
651
|
-
className:
|
|
652
|
-
children: /* @__PURE__ */
|
|
659
|
+
}), /* @__PURE__ */ p("div", {
|
|
660
|
+
className: pt.text,
|
|
661
|
+
children: /* @__PURE__ */ p(E, {
|
|
653
662
|
size: ".6rem",
|
|
654
663
|
children: t ?? n
|
|
655
664
|
})
|
|
656
665
|
})]
|
|
657
666
|
});
|
|
658
|
-
},
|
|
667
|
+
}, gt = {
|
|
659
668
|
cube: "_cube_1merk_1",
|
|
660
669
|
"elmethis-cube-icon-rotate": "_elmethis-cube-icon-rotate_1merk_1",
|
|
661
670
|
face: "_face_1merk_8"
|
|
662
|
-
},
|
|
671
|
+
}, _t = [
|
|
663
672
|
{
|
|
664
673
|
name: "front",
|
|
665
674
|
rotate: ""
|
|
@@ -684,298 +693,246 @@ var ot = (e) => {
|
|
|
684
693
|
name: "bottom",
|
|
685
694
|
rotate: "rotateX(-90deg)"
|
|
686
695
|
}
|
|
687
|
-
],
|
|
688
|
-
let { size: t = 128, style: n } = e, r =
|
|
689
|
-
return /* @__PURE__ */
|
|
690
|
-
className:
|
|
696
|
+
], vt = (e) => {
|
|
697
|
+
let { size: t = 128, style: n } = e, r = l(() => `translateZ(${t / 2}px)`, [t]);
|
|
698
|
+
return /* @__PURE__ */ p("div", {
|
|
699
|
+
className: gt.cube,
|
|
691
700
|
style: {
|
|
692
701
|
width: `${t}px`,
|
|
693
702
|
height: `${t}px`,
|
|
694
703
|
...n
|
|
695
704
|
},
|
|
696
|
-
children:
|
|
697
|
-
className:
|
|
705
|
+
children: _t.map((e) => /* @__PURE__ */ p("div", {
|
|
706
|
+
className: gt.face,
|
|
698
707
|
style: { transform: `${e.rotate} ${r}` }
|
|
699
708
|
}, e.name))
|
|
700
709
|
});
|
|
701
|
-
},
|
|
702
|
-
let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ?
|
|
703
|
-
return /* @__PURE__ */
|
|
704
|
-
className:
|
|
710
|
+
}, yt = { icon: "_icon_140bn_1" }, bt = (e) => {
|
|
711
|
+
let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ? Pe : n ? Le : Ie, o = r ? "gray" : n ? "#b36472" : "#6987b8";
|
|
712
|
+
return /* @__PURE__ */ p("div", {
|
|
713
|
+
className: yt.icon,
|
|
705
714
|
style: i,
|
|
706
|
-
children: /* @__PURE__ */
|
|
715
|
+
children: /* @__PURE__ */ p(C, {
|
|
707
716
|
d: a,
|
|
708
717
|
color: o,
|
|
709
718
|
size: t
|
|
710
719
|
})
|
|
711
720
|
});
|
|
712
|
-
},
|
|
713
|
-
className:
|
|
721
|
+
}, xt = { paragraph: "_paragraph_ewdky_1" }, St = (e) => /* @__PURE__ */ p("p", {
|
|
722
|
+
className: xt.paragraph,
|
|
714
723
|
style: {
|
|
715
724
|
backgroundColor: e.backgroundColor,
|
|
716
725
|
...e.style
|
|
717
726
|
},
|
|
718
727
|
children: e.children
|
|
719
|
-
}),
|
|
720
|
-
blockquote: "
|
|
721
|
-
cite: "
|
|
722
|
-
icon: "
|
|
723
|
-
},
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
"--opacity": +!!n,
|
|
738
|
-
...e.style
|
|
739
|
-
},
|
|
740
|
-
children: [
|
|
741
|
-
e.children,
|
|
742
|
-
e.cite && /* @__PURE__ */ u("cite", {
|
|
743
|
-
className: O.cite,
|
|
744
|
-
children: /* @__PURE__ */ u("a", {
|
|
745
|
-
href: e.cite,
|
|
746
|
-
target: "_blank",
|
|
747
|
-
rel: "noopener noreferrer",
|
|
748
|
-
children: e.cite
|
|
749
|
-
})
|
|
750
|
-
}),
|
|
751
|
-
/* @__PURE__ */ u("svg", {
|
|
752
|
-
className: O.icon,
|
|
753
|
-
style: {
|
|
754
|
-
top: "0.25rem",
|
|
755
|
-
left: "0.25rem"
|
|
756
|
-
},
|
|
757
|
-
viewBox: "0 0 24 24",
|
|
758
|
-
width: "1rem",
|
|
759
|
-
height: "1rem",
|
|
760
|
-
children: /* @__PURE__ */ u("path", { d: we })
|
|
761
|
-
}),
|
|
762
|
-
/* @__PURE__ */ u("svg", {
|
|
763
|
-
className: O.icon,
|
|
764
|
-
style: {
|
|
765
|
-
bottom: "0.25rem",
|
|
766
|
-
right: "0.25rem"
|
|
767
|
-
},
|
|
768
|
-
viewBox: "0 0 24 24",
|
|
769
|
-
width: "1rem",
|
|
770
|
-
height: "1rem",
|
|
771
|
-
children: /* @__PURE__ */ u("path", { d: Ce })
|
|
728
|
+
}), D = {
|
|
729
|
+
blockquote: "_blockquote_x79j0_1",
|
|
730
|
+
cite: "_cite_x79j0_16",
|
|
731
|
+
icon: "_icon_x79j0_37"
|
|
732
|
+
}, Ct = (e) => /* @__PURE__ */ m("blockquote", {
|
|
733
|
+
ref: u(null),
|
|
734
|
+
className: D.blockquote,
|
|
735
|
+
cite: e.cite,
|
|
736
|
+
style: { ...e.style },
|
|
737
|
+
children: [
|
|
738
|
+
e.children,
|
|
739
|
+
e.cite && /* @__PURE__ */ p("cite", {
|
|
740
|
+
className: D.cite,
|
|
741
|
+
children: /* @__PURE__ */ p("a", {
|
|
742
|
+
href: e.cite,
|
|
743
|
+
target: "_blank",
|
|
744
|
+
rel: "noopener noreferrer",
|
|
745
|
+
children: e.cite
|
|
772
746
|
})
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
747
|
+
}),
|
|
748
|
+
/* @__PURE__ */ p("svg", {
|
|
749
|
+
className: D.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: De })
|
|
758
|
+
}),
|
|
759
|
+
/* @__PURE__ */ p("svg", {
|
|
760
|
+
className: D.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: Ee })
|
|
769
|
+
})
|
|
770
|
+
]
|
|
771
|
+
}), wt = {
|
|
772
|
+
callout: "_callout_16oli_1",
|
|
773
|
+
header: "_header_16oli_24"
|
|
774
|
+
}, Tt = Object.freeze({
|
|
779
775
|
note: {
|
|
780
776
|
code: "#6987b8",
|
|
781
|
-
icon:
|
|
777
|
+
icon: ke
|
|
782
778
|
},
|
|
783
779
|
tip: {
|
|
784
780
|
code: "#59b57c",
|
|
785
|
-
icon:
|
|
781
|
+
icon: Me
|
|
786
782
|
},
|
|
787
783
|
important: {
|
|
788
784
|
code: "#9771bd",
|
|
789
|
-
icon:
|
|
785
|
+
icon: We
|
|
790
786
|
},
|
|
791
787
|
warning: {
|
|
792
788
|
code: "#b8a36e",
|
|
793
|
-
icon:
|
|
789
|
+
icon: ee
|
|
794
790
|
},
|
|
795
791
|
caution: {
|
|
796
792
|
code: "#b36472",
|
|
797
|
-
icon:
|
|
793
|
+
icon: ne
|
|
798
794
|
}
|
|
799
|
-
}),
|
|
800
|
-
let n =
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
if (!e) return;
|
|
804
|
-
let t = new IntersectionObserver(([e]) => {
|
|
805
|
-
a(e.isIntersecting);
|
|
806
|
-
});
|
|
807
|
-
return t.observe(e), () => t.disconnect();
|
|
808
|
-
}, []);
|
|
809
|
-
let o = yt[e];
|
|
810
|
-
return /* @__PURE__ */ d("aside", {
|
|
811
|
-
ref: n,
|
|
812
|
-
className: vt.callout,
|
|
795
|
+
}), Et = ({ type: e = "note", ...t }) => {
|
|
796
|
+
let n = Tt[e];
|
|
797
|
+
return /* @__PURE__ */ m("aside", {
|
|
798
|
+
className: wt.callout,
|
|
813
799
|
style: {
|
|
814
|
-
"--border-color":
|
|
815
|
-
"--
|
|
816
|
-
"--scale": +!!r,
|
|
800
|
+
"--elmethis-scoped-border-color": n.code,
|
|
801
|
+
"--elmethis-scoped-background-color": `color-mix(in srgb, ${n.code} 10%, transparent)`,
|
|
817
802
|
...t.style
|
|
818
803
|
},
|
|
819
|
-
children: [/* @__PURE__ */
|
|
820
|
-
className:
|
|
821
|
-
children: [/* @__PURE__ */
|
|
822
|
-
d:
|
|
804
|
+
children: [/* @__PURE__ */ m("div", {
|
|
805
|
+
className: wt.header,
|
|
806
|
+
children: [/* @__PURE__ */ p(C, {
|
|
807
|
+
d: n.icon,
|
|
823
808
|
size: "1.25em",
|
|
824
|
-
color:
|
|
825
|
-
}), /* @__PURE__ */
|
|
826
|
-
color:
|
|
809
|
+
color: n.code
|
|
810
|
+
}), /* @__PURE__ */ p(E, {
|
|
811
|
+
color: n.code,
|
|
827
812
|
children: e.toUpperCase()
|
|
828
813
|
})]
|
|
829
|
-
}), /* @__PURE__ */
|
|
814
|
+
}), /* @__PURE__ */ p("div", { children: t.children })]
|
|
830
815
|
});
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
let n = new IntersectionObserver(([e]) => {
|
|
837
|
-
r(e.isIntersecting);
|
|
838
|
-
});
|
|
839
|
-
return n.observe(e), () => n.disconnect();
|
|
840
|
-
}, []), /* @__PURE__ */ u("hr", {
|
|
841
|
-
ref: t,
|
|
842
|
-
className: xt.divider,
|
|
843
|
-
style: {
|
|
844
|
-
"--scale": +!!n,
|
|
845
|
-
"--margin-block": e.margin,
|
|
846
|
-
...e.style
|
|
847
|
-
}
|
|
848
|
-
});
|
|
849
|
-
}, Ct = { fragment: "_fragment_il7xb_1" }, wt = (e) => {
|
|
850
|
-
let t = n((e) => {
|
|
816
|
+
}, Dt = { divider: "_divider_uq5jr_1" }, Ot = (e) => /* @__PURE__ */ p("hr", {
|
|
817
|
+
className: Dt.divider,
|
|
818
|
+
style: e.style
|
|
819
|
+
}), kt = { fragment: "_fragment_il7xb_1" }, At = (e) => {
|
|
820
|
+
let t = a((e) => {
|
|
851
821
|
let t = new URL(window.location.href);
|
|
852
822
|
t.hash = e, window.history.replaceState(null, "", t.toString()), document.getElementById(e)?.scrollIntoView({ behavior: "smooth" });
|
|
853
823
|
}, []);
|
|
854
|
-
return /* @__PURE__ */
|
|
855
|
-
className:
|
|
824
|
+
return /* @__PURE__ */ p("span", {
|
|
825
|
+
className: kt.fragment,
|
|
856
826
|
style: e.style,
|
|
857
827
|
onClick: () => t(e.id),
|
|
858
828
|
children: "#"
|
|
859
829
|
});
|
|
860
|
-
},
|
|
861
|
-
"heading-common": "_heading-
|
|
862
|
-
h1: "
|
|
863
|
-
h2: "
|
|
864
|
-
h2__underline: "
|
|
865
|
-
h3: "
|
|
866
|
-
h4: "
|
|
867
|
-
h5: "
|
|
868
|
-
h6: "
|
|
869
|
-
"heading-stretch": "_heading-
|
|
870
|
-
},
|
|
830
|
+
}, jt = {
|
|
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({
|
|
871
841
|
1: 1.5,
|
|
872
842
|
2: 1.4,
|
|
873
843
|
3: 1.3,
|
|
874
844
|
4: 1.2,
|
|
875
845
|
5: 1.15,
|
|
876
846
|
6: 1.1
|
|
877
|
-
}),
|
|
878
|
-
let r =
|
|
879
|
-
|
|
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(() => {
|
|
880
850
|
let e = r.current;
|
|
881
851
|
if (!e) return;
|
|
882
852
|
let t = new IntersectionObserver(([e]) => {
|
|
883
|
-
|
|
853
|
+
a(e.isIntersecting);
|
|
884
854
|
});
|
|
885
855
|
return t.observe(e), () => t.disconnect();
|
|
886
856
|
}, []);
|
|
887
|
-
let
|
|
888
|
-
return /* @__PURE__ */
|
|
857
|
+
let o = `h${e}`, c = n.id ?? (n.text ? Nt(n.text) : void 0);
|
|
858
|
+
return /* @__PURE__ */ m(o, {
|
|
889
859
|
ref: r,
|
|
890
|
-
className: [
|
|
891
|
-
id:
|
|
860
|
+
className: [jt["heading-common"], jt[`h${e}`]].filter(Boolean).join(" "),
|
|
861
|
+
id: c,
|
|
892
862
|
style: {
|
|
893
|
-
"--font-size": n.size ?? `${
|
|
894
|
-
"--scale": +!!
|
|
895
|
-
"--opacity": +!!
|
|
863
|
+
"--font-size": n.size ?? `${Mt[e]}rem`,
|
|
864
|
+
"--scale": +!!i,
|
|
865
|
+
"--opacity": +!!i,
|
|
896
866
|
...n.style
|
|
897
867
|
},
|
|
898
868
|
children: [
|
|
899
|
-
n.text && /* @__PURE__ */
|
|
869
|
+
n.text && /* @__PURE__ */ p("span", { children: n.text }),
|
|
900
870
|
n.children,
|
|
901
|
-
!t &&
|
|
902
|
-
e === 2 && /* @__PURE__ */
|
|
903
|
-
className:
|
|
871
|
+
!t && c && /* @__PURE__ */ p(At, { id: c }),
|
|
872
|
+
e === 2 && /* @__PURE__ */ p("span", {
|
|
873
|
+
className: jt.h2__underline,
|
|
904
874
|
"aria-hidden": "true"
|
|
905
875
|
})
|
|
906
876
|
]
|
|
907
877
|
});
|
|
908
|
-
},
|
|
909
|
-
"elmethis-list-common": "_elmethis-list-
|
|
910
|
-
"elmethis-bulleted-list": "_elmethis-bulleted-
|
|
911
|
-
"elmethis-numbered-list": "_elmethis-numbered-
|
|
912
|
-
},
|
|
913
|
-
let n =
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
let t = new IntersectionObserver(([e]) => {
|
|
918
|
-
a(e.isIntersecting);
|
|
919
|
-
});
|
|
920
|
-
return t.observe(e), () => t.disconnect();
|
|
921
|
-
}, []);
|
|
922
|
-
let o = [k["elmethis-list-common"], e === "unordered" ? k["elmethis-bulleted-list"] : k["elmethis-numbered-list"]].join(" "), l = {
|
|
923
|
-
"--opacity": +!!r,
|
|
924
|
-
...t.style
|
|
925
|
-
};
|
|
926
|
-
return u(e === "ordered" ? "ol" : "ul", {
|
|
927
|
-
ref: n,
|
|
928
|
-
className: o,
|
|
929
|
-
style: l,
|
|
878
|
+
}, Pt = {
|
|
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
|
+
}, Ft = ({ listStyle: e = "unordered", ...t }) => {
|
|
883
|
+
let n = [Pt["elmethis-list-common"], e === "unordered" ? Pt["elmethis-bulleted-list"] : Pt["elmethis-numbered-list"]].join(" ");
|
|
884
|
+
return p(e === "ordered" ? "ol" : "ul", {
|
|
885
|
+
className: n,
|
|
886
|
+
style: t.style,
|
|
930
887
|
children: t.children
|
|
931
888
|
});
|
|
932
|
-
},
|
|
889
|
+
}, It = {
|
|
933
890
|
text: "_text_zrzts_1",
|
|
934
891
|
cursor: "_cursor_zrzts_30",
|
|
935
892
|
blink: "_blink_zrzts_1"
|
|
936
|
-
},
|
|
893
|
+
}, k = (e) => new Promise((t) => {
|
|
937
894
|
setTimeout(t, e);
|
|
938
|
-
}),
|
|
939
|
-
let [
|
|
940
|
-
return
|
|
941
|
-
for (; !
|
|
895
|
+
}), Lt = ({ 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) {
|
|
942
899
|
for (let e = 0; e < n.length; e++) {
|
|
943
|
-
if (
|
|
944
|
-
|
|
900
|
+
if (o.current || (await k(75), o.current)) return;
|
|
901
|
+
a(n.slice(0, e + 1));
|
|
945
902
|
}
|
|
946
|
-
if (await
|
|
947
|
-
for (let e = n.length; e >= 0; e--) if (
|
|
948
|
-
if (await
|
|
903
|
+
if (await k(t), o.current) return;
|
|
904
|
+
for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await k(25), o.current)) return;
|
|
905
|
+
if (await k(200), o.current) return;
|
|
949
906
|
}
|
|
950
907
|
})(), () => {
|
|
951
|
-
|
|
952
|
-
}), [e, t]), /* @__PURE__ */
|
|
953
|
-
className:
|
|
908
|
+
o.current = !0;
|
|
909
|
+
}), [e, t]), /* @__PURE__ */ m("span", {
|
|
910
|
+
className: It.text,
|
|
954
911
|
style: {
|
|
955
912
|
fontSize: n,
|
|
956
913
|
...r.style
|
|
957
914
|
},
|
|
958
|
-
children: [
|
|
959
|
-
className:
|
|
915
|
+
children: [i, /* @__PURE__ */ p("span", {
|
|
916
|
+
className: It.cursor,
|
|
960
917
|
children: "\xA0"
|
|
961
918
|
})]
|
|
962
919
|
});
|
|
963
|
-
},
|
|
964
|
-
className:
|
|
920
|
+
}, Rt = { "elm-template": "_elm-template_18rwn_1" }, zt = (e) => /* @__PURE__ */ p("div", {
|
|
921
|
+
className: Rt["elm-template"],
|
|
965
922
|
style: e.style,
|
|
966
923
|
children: "PLACEHOLDER"
|
|
967
|
-
}),
|
|
924
|
+
}), A = {
|
|
968
925
|
progress: "_progress_e6hmw_1",
|
|
969
926
|
container: "_container_e6hmw_27",
|
|
970
927
|
value: "_value_e6hmw_41",
|
|
971
928
|
loading: "_loading_e6hmw_56",
|
|
972
929
|
buffer: "_buffer_e6hmw_72"
|
|
973
|
-
},
|
|
974
|
-
className:
|
|
930
|
+
}, Bt = ({ 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: A.progress,
|
|
975
932
|
value: e,
|
|
976
933
|
max: n
|
|
977
|
-
}), /* @__PURE__ */
|
|
978
|
-
className:
|
|
934
|
+
}), /* @__PURE__ */ m("div", {
|
|
935
|
+
className: A.container,
|
|
979
936
|
style: {
|
|
980
937
|
"--weight": r,
|
|
981
938
|
"--border-radius": i ? "calc(var(--weight) / 2)" : void 0,
|
|
@@ -983,21 +940,21 @@ var ot = (e) => {
|
|
|
983
940
|
...s
|
|
984
941
|
},
|
|
985
942
|
children: [
|
|
986
|
-
/* @__PURE__ */
|
|
987
|
-
className:
|
|
943
|
+
/* @__PURE__ */ p("div", {
|
|
944
|
+
className: A.value,
|
|
988
945
|
style: { "--scale-x": `scaleX(${o ? 0 : e / n})` }
|
|
989
946
|
}),
|
|
990
|
-
o && /* @__PURE__ */
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
className:
|
|
947
|
+
o && /* @__PURE__ */ p("div", { className: A.loading }),
|
|
948
|
+
/* @__PURE__ */ p("div", {
|
|
949
|
+
className: A.buffer,
|
|
993
950
|
style: { "--scale-x": `scaleX(${o ? 0 : t == null ? e / n : t / n})` }
|
|
994
951
|
})
|
|
995
952
|
]
|
|
996
|
-
})] }),
|
|
953
|
+
})] }), Vt = {
|
|
997
954
|
container: "_container_13d02_1",
|
|
998
955
|
bar: "_bar_13d02_15"
|
|
999
|
-
},
|
|
1000
|
-
let i =
|
|
956
|
+
}, Ht = ({ progress: e, weight: t = "4px", round: n = !0, style: r }) => {
|
|
957
|
+
let i = l(() => {
|
|
1001
958
|
let t = e.reduce((e, t) => e + t.value, 0), n = e.map((e) => e.value / t * 100);
|
|
1002
959
|
return e.map((e, t) => ({
|
|
1003
960
|
...e,
|
|
@@ -1005,195 +962,191 @@ var ot = (e) => {
|
|
|
1005
962
|
start: n.slice(0, t).reduce((e, t) => e + t, 0)
|
|
1006
963
|
}));
|
|
1007
964
|
}, [e]);
|
|
1008
|
-
return /* @__PURE__ */
|
|
1009
|
-
className:
|
|
965
|
+
return /* @__PURE__ */ p("div", {
|
|
966
|
+
className: Vt.container,
|
|
1010
967
|
style: {
|
|
1011
968
|
"--weight": t,
|
|
1012
969
|
"--border-radius": n ? "calc(var(--weight) / 2)" : void 0,
|
|
1013
970
|
...r
|
|
1014
971
|
},
|
|
1015
|
-
children: i.map((e, t) => /* @__PURE__ */
|
|
1016
|
-
className:
|
|
972
|
+
children: i.map((e, t) => /* @__PURE__ */ p("div", {
|
|
973
|
+
className: Vt.bar,
|
|
1017
974
|
style: {
|
|
1018
975
|
"--transform": `translateX(${e.start}%) scaleX(${e.scale})`,
|
|
1019
976
|
"--color": e.color
|
|
1020
977
|
}
|
|
1021
978
|
}, t))
|
|
1022
979
|
});
|
|
1023
|
-
},
|
|
980
|
+
}, Ut = { wrapper: "_wrapper_17chp_1" }, Wt = Object.freeze({
|
|
1024
981
|
pending: {
|
|
1025
982
|
color: "#6987b8",
|
|
1026
|
-
icon:
|
|
983
|
+
icon: Ue
|
|
1027
984
|
},
|
|
1028
985
|
error: {
|
|
1029
986
|
color: "#c56565",
|
|
1030
|
-
icon:
|
|
987
|
+
icon: te
|
|
1031
988
|
},
|
|
1032
989
|
warning: {
|
|
1033
990
|
color: "#cdb57b",
|
|
1034
|
-
icon:
|
|
991
|
+
icon: ee
|
|
1035
992
|
},
|
|
1036
993
|
success: {
|
|
1037
994
|
color: "#59b57c",
|
|
1038
|
-
icon:
|
|
995
|
+
icon: de
|
|
1039
996
|
}
|
|
1040
|
-
}),
|
|
1041
|
-
let { color: r, icon: i } =
|
|
1042
|
-
return /* @__PURE__ */
|
|
1043
|
-
className:
|
|
997
|
+
}), Gt = ({ status: e, message: t, style: n }) => {
|
|
998
|
+
let { color: r, icon: i } = Wt[e];
|
|
999
|
+
return /* @__PURE__ */ m("div", {
|
|
1000
|
+
className: Ut.wrapper,
|
|
1044
1001
|
style: n,
|
|
1045
|
-
children: [/* @__PURE__ */
|
|
1002
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1046
1003
|
d: i,
|
|
1047
1004
|
color: r,
|
|
1048
1005
|
size: "1em"
|
|
1049
|
-
}), /* @__PURE__ */
|
|
1006
|
+
}), /* @__PURE__ */ p(E, {
|
|
1050
1007
|
color: r,
|
|
1051
1008
|
children: t
|
|
1052
1009
|
})]
|
|
1053
1010
|
});
|
|
1054
|
-
},
|
|
1055
|
-
wrapper: "
|
|
1056
|
-
error: "
|
|
1057
|
-
"image-frame": "_image-
|
|
1058
|
-
fallback: "
|
|
1059
|
-
pulse: "
|
|
1060
|
-
"image-inline": "_image-
|
|
1061
|
-
"image-block": "_image-
|
|
1062
|
-
"alt-container": "_alt-
|
|
1063
|
-
"alt-text": "_alt-
|
|
1064
|
-
modal: "
|
|
1065
|
-
"modal-image": "_modal-
|
|
1066
|
-
},
|
|
1067
|
-
let [
|
|
1068
|
-
return
|
|
1011
|
+
}, j = {
|
|
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
|
+
}, M = ({ 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(() => {
|
|
1069
1026
|
let t = new Image();
|
|
1070
1027
|
t.src = e, t.onload = () => {
|
|
1071
|
-
|
|
1028
|
+
l(!1), h(!1);
|
|
1072
1029
|
}, t.onerror = () => {
|
|
1073
|
-
|
|
1030
|
+
l(!1), h(!0);
|
|
1074
1031
|
};
|
|
1075
|
-
}, [e]),
|
|
1032
|
+
}, [e]), s(() => {
|
|
1076
1033
|
let e = (e) => {
|
|
1077
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
1034
|
+
e.key === "Escape" && (e.preventDefault(), _(!1));
|
|
1078
1035
|
};
|
|
1079
1036
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1080
|
-
}, []), /* @__PURE__ */
|
|
1081
|
-
className:
|
|
1082
|
-
ref:
|
|
1083
|
-
style:
|
|
1037
|
+
}, []), /* @__PURE__ */ m("div", {
|
|
1038
|
+
className: j.wrapper,
|
|
1039
|
+
ref: v,
|
|
1040
|
+
style: o,
|
|
1084
1041
|
children: [
|
|
1085
|
-
|
|
1086
|
-
className:
|
|
1087
|
-
children: /* @__PURE__ */
|
|
1042
|
+
f && /* @__PURE__ */ p("div", {
|
|
1043
|
+
className: j.error,
|
|
1044
|
+
children: /* @__PURE__ */ p(E, {
|
|
1088
1045
|
color: "#c56565",
|
|
1089
1046
|
size: "1.5rem",
|
|
1090
1047
|
children: "Error loading image"
|
|
1091
1048
|
})
|
|
1092
1049
|
}),
|
|
1093
|
-
/* @__PURE__ */
|
|
1094
|
-
className:
|
|
1095
|
-
style:
|
|
1096
|
-
children: [
|
|
1097
|
-
className:
|
|
1050
|
+
/* @__PURE__ */ m("div", {
|
|
1051
|
+
className: j["image-frame"],
|
|
1052
|
+
style: o,
|
|
1053
|
+
children: [c && /* @__PURE__ */ p("div", {
|
|
1054
|
+
className: j.fallback,
|
|
1098
1055
|
style: {
|
|
1099
|
-
aspectRatio:
|
|
1100
|
-
width:
|
|
1101
|
-
height:
|
|
1056
|
+
aspectRatio: i && a ? `${i} / ${a}` : "1200 / 630",
|
|
1057
|
+
width: i ? `${i}px` : void 0,
|
|
1058
|
+
height: a ? `${a}px` : void 0
|
|
1102
1059
|
}
|
|
1103
|
-
}), /* @__PURE__ */
|
|
1104
|
-
className: n ?
|
|
1060
|
+
}), /* @__PURE__ */ p("img", {
|
|
1061
|
+
className: n ? j["image-block"] : j["image-inline"],
|
|
1105
1062
|
src: e,
|
|
1106
1063
|
alt: t,
|
|
1107
|
-
width:
|
|
1108
|
-
height:
|
|
1064
|
+
width: i,
|
|
1065
|
+
height: a,
|
|
1109
1066
|
onClick: () => {
|
|
1110
|
-
r &&
|
|
1067
|
+
r && _(!0);
|
|
1111
1068
|
},
|
|
1112
1069
|
style: {
|
|
1113
|
-
"--
|
|
1114
|
-
"--
|
|
1115
|
-
"--height": l ? `${l}px` : void 0,
|
|
1070
|
+
"--width": i ? `${i}px` : void 0,
|
|
1071
|
+
"--height": a ? `${a}px` : void 0,
|
|
1116
1072
|
cursor: r ? "zoom-in" : void 0,
|
|
1117
|
-
opacity: +(!
|
|
1118
|
-
pointerEvents: !
|
|
1073
|
+
opacity: +(!c && !f),
|
|
1074
|
+
pointerEvents: !c && !f ? void 0 : "none"
|
|
1119
1075
|
}
|
|
1120
1076
|
})]
|
|
1121
1077
|
}),
|
|
1122
|
-
n && !
|
|
1123
|
-
className:
|
|
1124
|
-
children: [/* @__PURE__ */
|
|
1125
|
-
d:
|
|
1078
|
+
n && !c && t != null && t.trim() !== "" && /* @__PURE__ */ m("div", {
|
|
1079
|
+
className: j["alt-container"],
|
|
1080
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1081
|
+
d: Be,
|
|
1126
1082
|
color: "#b69545",
|
|
1127
1083
|
style: { flexShrink: 0 }
|
|
1128
|
-
}), /* @__PURE__ */
|
|
1129
|
-
className:
|
|
1130
|
-
children: /* @__PURE__ */
|
|
1084
|
+
}), /* @__PURE__ */ p("div", {
|
|
1085
|
+
className: j["alt-text"],
|
|
1086
|
+
children: /* @__PURE__ */ p(E, {
|
|
1131
1087
|
size: "0.8rem",
|
|
1132
1088
|
children: t
|
|
1133
1089
|
})
|
|
1134
1090
|
})]
|
|
1135
1091
|
}),
|
|
1136
|
-
|
|
1137
|
-
className:
|
|
1138
|
-
onClick: () =>
|
|
1139
|
-
children: /* @__PURE__ */
|
|
1140
|
-
className:
|
|
1092
|
+
g && /* @__PURE__ */ p("div", {
|
|
1093
|
+
className: j.modal,
|
|
1094
|
+
onClick: () => _(!1),
|
|
1095
|
+
children: /* @__PURE__ */ p("img", {
|
|
1096
|
+
className: j["modal-image"],
|
|
1141
1097
|
src: e,
|
|
1142
1098
|
alt: t,
|
|
1143
|
-
width:
|
|
1144
|
-
height:
|
|
1099
|
+
width: i,
|
|
1100
|
+
height: a
|
|
1145
1101
|
})
|
|
1146
1102
|
})
|
|
1147
1103
|
]
|
|
1148
1104
|
});
|
|
1149
1105
|
}, N = {
|
|
1150
|
-
file: "
|
|
1151
|
-
"left-container": "_left-
|
|
1152
|
-
"right-container": "_right-
|
|
1153
|
-
"download-icon": "_download-
|
|
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"
|
|
1154
1110
|
};
|
|
1155
1111
|
//#endregion
|
|
1156
1112
|
//#region src/components/media/ElmFile.tsx
|
|
1157
|
-
function
|
|
1113
|
+
function Kt(e) {
|
|
1158
1114
|
let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
|
|
1159
1115
|
return t.length > 0 ? t[t.length - 1] : null;
|
|
1160
1116
|
}
|
|
1161
|
-
var
|
|
1162
|
-
let
|
|
1117
|
+
var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
1118
|
+
let i = a(async () => {
|
|
1163
1119
|
let n;
|
|
1164
1120
|
try {
|
|
1165
1121
|
let r = await fetch(t);
|
|
1166
1122
|
if (!r.ok) throw Error("Failed to download file");
|
|
1167
1123
|
let i = await r.blob();
|
|
1168
|
-
n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ??
|
|
1124
|
+
n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ?? Kt(t) ?? "file", n.click();
|
|
1169
1125
|
} catch (e) {
|
|
1170
1126
|
console.error("ERROR:", e);
|
|
1171
1127
|
} finally {
|
|
1172
1128
|
n && URL.revokeObjectURL(n.href);
|
|
1173
1129
|
}
|
|
1174
|
-
}, [t, e]),
|
|
1175
|
-
return /* @__PURE__ */
|
|
1130
|
+
}, [t, e]), o = e ?? Kt(t) ?? "unknown file";
|
|
1131
|
+
return /* @__PURE__ */ m("div", {
|
|
1176
1132
|
className: N.file,
|
|
1177
|
-
style:
|
|
1178
|
-
|
|
1179
|
-
...a
|
|
1180
|
-
},
|
|
1181
|
-
children: [/* @__PURE__ */ d("div", {
|
|
1133
|
+
style: r,
|
|
1134
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1182
1135
|
className: N["left-container"],
|
|
1183
|
-
children: [/* @__PURE__ */
|
|
1184
|
-
d:
|
|
1136
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1137
|
+
d: we,
|
|
1185
1138
|
size: "1.25em"
|
|
1186
|
-
}), /* @__PURE__ */
|
|
1187
|
-
}), /* @__PURE__ */
|
|
1139
|
+
}), /* @__PURE__ */ p(E, { children: o })]
|
|
1140
|
+
}), /* @__PURE__ */ m("div", {
|
|
1188
1141
|
className: N["right-container"],
|
|
1189
|
-
children: [
|
|
1142
|
+
children: [n && /* @__PURE__ */ p("span", {
|
|
1190
1143
|
style: { opacity: .6 },
|
|
1191
|
-
children: /* @__PURE__ */
|
|
1192
|
-
}), /* @__PURE__ */
|
|
1144
|
+
children: /* @__PURE__ */ p(E, { children: n })
|
|
1145
|
+
}), /* @__PURE__ */ p("div", {
|
|
1193
1146
|
className: N["download-icon"],
|
|
1194
|
-
onClick:
|
|
1195
|
-
children: /* @__PURE__ */
|
|
1196
|
-
d:
|
|
1147
|
+
onClick: i,
|
|
1148
|
+
children: /* @__PURE__ */ p(C, {
|
|
1149
|
+
d: ye,
|
|
1197
1150
|
size: "1.25em"
|
|
1198
1151
|
})
|
|
1199
1152
|
})]
|
|
@@ -1208,70 +1161,67 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1208
1161
|
date: "_date_1hx4v_81",
|
|
1209
1162
|
link: "_link_1hx4v_90",
|
|
1210
1163
|
favicon: "_favicon_1hx4v_100"
|
|
1211
|
-
},
|
|
1212
|
-
let [
|
|
1213
|
-
|
|
1214
|
-
},
|
|
1215
|
-
return /* @__PURE__ */
|
|
1164
|
+
}, Jt = ({ hideUrl: e = !1, openInNewTab: t = !0, title: n, description: r = "No description provided", image: i, url: a, createdAt: o, updatedAt: s, onClick: c, favicon: l, style: u }) => {
|
|
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", {
|
|
1216
1169
|
className: P.parent,
|
|
1217
|
-
style:
|
|
1218
|
-
|
|
1219
|
-
...h
|
|
1220
|
-
},
|
|
1221
|
-
children: /* @__PURE__ */ d("a", {
|
|
1170
|
+
style: u,
|
|
1171
|
+
children: /* @__PURE__ */ m("a", {
|
|
1222
1172
|
className: P.bookmark,
|
|
1223
1173
|
href: a,
|
|
1224
1174
|
target: t ? "_blank" : void 0,
|
|
1225
1175
|
rel: "noopener noreferrer",
|
|
1226
|
-
onClick:
|
|
1227
|
-
children: [i != null && !
|
|
1176
|
+
onClick: _,
|
|
1177
|
+
children: [i != null && !h && /* @__PURE__ */ p("div", {
|
|
1228
1178
|
className: P.image,
|
|
1229
|
-
children: /* @__PURE__ */
|
|
1179
|
+
children: /* @__PURE__ */ p("img", {
|
|
1230
1180
|
src: i,
|
|
1231
1181
|
alt: "OGP Image",
|
|
1232
|
-
onError: () =>
|
|
1182
|
+
onError: () => g(!0),
|
|
1233
1183
|
style: {
|
|
1234
1184
|
width: "100%",
|
|
1235
1185
|
height: "100%",
|
|
1236
1186
|
objectFit: "cover"
|
|
1237
1187
|
}
|
|
1238
1188
|
})
|
|
1239
|
-
}), /* @__PURE__ */
|
|
1189
|
+
}), /* @__PURE__ */ m("div", {
|
|
1240
1190
|
className: P.typography,
|
|
1241
1191
|
children: [
|
|
1242
|
-
/* @__PURE__ */
|
|
1192
|
+
/* @__PURE__ */ p("div", {
|
|
1243
1193
|
className: P.title,
|
|
1244
|
-
children: /* @__PURE__ */
|
|
1194
|
+
children: /* @__PURE__ */ p(E, {
|
|
1245
1195
|
bold: !0,
|
|
1246
1196
|
children: n ?? "No title provided"
|
|
1247
1197
|
})
|
|
1248
1198
|
}),
|
|
1249
|
-
/* @__PURE__ */
|
|
1199
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(E, {
|
|
1250
1200
|
size: "0.8rem",
|
|
1251
|
-
children: /* @__PURE__ */
|
|
1201
|
+
children: /* @__PURE__ */ p("span", {
|
|
1252
1202
|
style: { opacity: .6 },
|
|
1253
|
-
children:
|
|
1203
|
+
children: v
|
|
1254
1204
|
})
|
|
1255
1205
|
}) }),
|
|
1256
|
-
(o != null || s != null) && /* @__PURE__ */
|
|
1206
|
+
(o != null || s != null) && /* @__PURE__ */ m("div", {
|
|
1257
1207
|
className: P.date,
|
|
1258
|
-
children: [o != null && /* @__PURE__ */
|
|
1259
|
-
d:
|
|
1208
|
+
children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(C, {
|
|
1209
|
+
d: ce,
|
|
1260
1210
|
size: "1em"
|
|
1261
|
-
}), /* @__PURE__ */
|
|
1211
|
+
}), /* @__PURE__ */ p(E, {
|
|
1262
1212
|
size: "0.8rem",
|
|
1263
1213
|
children: o
|
|
1264
|
-
})] }), s != null && /* @__PURE__ */
|
|
1265
|
-
d:
|
|
1214
|
+
})] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(C, {
|
|
1215
|
+
d: le,
|
|
1266
1216
|
size: "1em"
|
|
1267
|
-
}), /* @__PURE__ */
|
|
1217
|
+
}), /* @__PURE__ */ p(E, {
|
|
1268
1218
|
size: "0.8rem",
|
|
1269
1219
|
children: s
|
|
1270
1220
|
})] })]
|
|
1271
1221
|
}),
|
|
1272
|
-
!e && a != null && /* @__PURE__ */
|
|
1222
|
+
!e && a != null && /* @__PURE__ */ m("div", {
|
|
1273
1223
|
className: P.link,
|
|
1274
|
-
children: [
|
|
1224
|
+
children: [l && /* @__PURE__ */ p(S, { src: l }), /* @__PURE__ */ p(E, {
|
|
1275
1225
|
size: "0.8rem",
|
|
1276
1226
|
color: "#6987b8",
|
|
1277
1227
|
children: a
|
|
@@ -1285,42 +1235,42 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1285
1235
|
container: "_container_1r6mu_1",
|
|
1286
1236
|
"link-container": "_link-container_1r6mu_10",
|
|
1287
1237
|
text: "_text_1r6mu_36"
|
|
1288
|
-
},
|
|
1289
|
-
let r =
|
|
1290
|
-
return
|
|
1238
|
+
}, Yt = ({ links: e, style: n }) => {
|
|
1239
|
+
let r = u(null), [i, a] = d(!1);
|
|
1240
|
+
return s(() => {
|
|
1291
1241
|
let e = r.current;
|
|
1292
1242
|
if (!e) return;
|
|
1293
1243
|
let t = new IntersectionObserver(([e]) => {
|
|
1294
|
-
|
|
1244
|
+
a(e.isIntersecting);
|
|
1295
1245
|
});
|
|
1296
1246
|
return t.observe(e), () => t.disconnect();
|
|
1297
|
-
}, []), /* @__PURE__ */
|
|
1247
|
+
}, []), /* @__PURE__ */ p("nav", {
|
|
1298
1248
|
className: F.container,
|
|
1299
1249
|
ref: r,
|
|
1300
1250
|
style: {
|
|
1301
|
-
"--opacity": +!!
|
|
1251
|
+
"--opacity": +!!i,
|
|
1302
1252
|
...n
|
|
1303
1253
|
},
|
|
1304
|
-
children:
|
|
1254
|
+
children: e.map((n, r) => /* @__PURE__ */ m(t.Fragment, { children: [/* @__PURE__ */ m("div", {
|
|
1305
1255
|
className: F["link-container"],
|
|
1306
1256
|
onClick: n.onClick,
|
|
1307
|
-
children: [/* @__PURE__ */
|
|
1257
|
+
children: [/* @__PURE__ */ p("span", {
|
|
1308
1258
|
className: F.text,
|
|
1309
1259
|
style: { "--delay": `${r * 100}ms` },
|
|
1310
|
-
children: /* @__PURE__ */
|
|
1311
|
-
d: r === 0 ?
|
|
1260
|
+
children: /* @__PURE__ */ p(C, {
|
|
1261
|
+
d: r === 0 ? Oe : r === e.length - 1 ? re : Te,
|
|
1312
1262
|
size: "1.25em"
|
|
1313
1263
|
})
|
|
1314
|
-
}), /* @__PURE__ */
|
|
1264
|
+
}), /* @__PURE__ */ p("span", {
|
|
1315
1265
|
className: F.text,
|
|
1316
1266
|
style: { "--delay": `${r * 100 + 50}ms` },
|
|
1317
|
-
children: /* @__PURE__ */
|
|
1267
|
+
children: /* @__PURE__ */ p(E, { children: n.text })
|
|
1318
1268
|
})]
|
|
1319
|
-
}),
|
|
1269
|
+
}), e.length !== r + 1 && /* @__PURE__ */ p("span", {
|
|
1320
1270
|
className: F.text,
|
|
1321
1271
|
style: { "--delay": `${r * 100 + 100}ms` },
|
|
1322
|
-
children: /* @__PURE__ */
|
|
1323
|
-
d:
|
|
1272
|
+
children: /* @__PURE__ */ p(C, {
|
|
1273
|
+
d: pe,
|
|
1324
1274
|
size: "1em",
|
|
1325
1275
|
color: "#b69545"
|
|
1326
1276
|
})
|
|
@@ -1332,21 +1282,21 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1332
1282
|
partial: "_partial_1tlqa_63",
|
|
1333
1283
|
move: "_move_1tlqa_1",
|
|
1334
1284
|
text: "_text_1tlqa_104"
|
|
1335
|
-
},
|
|
1336
|
-
let [n, r] =
|
|
1337
|
-
|
|
1285
|
+
}, Xt = ({ position: e = "right", style: t }) => {
|
|
1286
|
+
let [n, r] = d(!1);
|
|
1287
|
+
s(() => {
|
|
1338
1288
|
let e = () => {
|
|
1339
1289
|
r(window.scrollY > 100);
|
|
1340
1290
|
};
|
|
1341
1291
|
return window.addEventListener("scroll", e, { passive: !0 }), e(), () => window.removeEventListener("scroll", e);
|
|
1342
1292
|
}, []);
|
|
1343
|
-
let
|
|
1293
|
+
let i = () => {
|
|
1344
1294
|
window.scrollTo({
|
|
1345
1295
|
top: 0,
|
|
1346
1296
|
behavior: "smooth"
|
|
1347
1297
|
});
|
|
1348
1298
|
};
|
|
1349
|
-
return /* @__PURE__ */
|
|
1299
|
+
return /* @__PURE__ */ m("nav", {
|
|
1350
1300
|
className: `${I.wrapper} ${n ? I["wrapper--visible"] : ""}`,
|
|
1351
1301
|
style: {
|
|
1352
1302
|
"--size": "64px",
|
|
@@ -1354,79 +1304,79 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1354
1304
|
right: e === "right" ? "0" : "auto",
|
|
1355
1305
|
...t
|
|
1356
1306
|
},
|
|
1357
|
-
onClick:
|
|
1307
|
+
onClick: i,
|
|
1358
1308
|
children: [
|
|
1359
|
-
/* @__PURE__ */
|
|
1309
|
+
/* @__PURE__ */ p("div", {
|
|
1360
1310
|
"aria-hidden": "true",
|
|
1361
1311
|
className: I.partial
|
|
1362
1312
|
}),
|
|
1363
|
-
/* @__PURE__ */
|
|
1313
|
+
/* @__PURE__ */ p("div", {
|
|
1364
1314
|
"aria-hidden": "true",
|
|
1365
1315
|
className: I.partial
|
|
1366
1316
|
}),
|
|
1367
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ p("div", {
|
|
1368
1318
|
"aria-hidden": "true",
|
|
1369
1319
|
className: I.partial
|
|
1370
1320
|
}),
|
|
1371
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ p("span", {
|
|
1372
1322
|
className: I.text,
|
|
1373
1323
|
children: "Back to Top"
|
|
1374
1324
|
})
|
|
1375
1325
|
]
|
|
1376
1326
|
});
|
|
1377
|
-
},
|
|
1327
|
+
}, Zt = {
|
|
1378
1328
|
toc: "_toc_eubcy_1",
|
|
1379
1329
|
link: "_link_eubcy_15"
|
|
1380
|
-
},
|
|
1381
|
-
className:
|
|
1330
|
+
}, Qt = ({ headings: e, style: t }) => /* @__PURE__ */ p("nav", {
|
|
1331
|
+
className: Zt.toc,
|
|
1382
1332
|
style: t,
|
|
1383
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
1384
|
-
className:
|
|
1333
|
+
children: e.map((e, t) => /* @__PURE__ */ m("a", {
|
|
1334
|
+
className: Zt.link,
|
|
1385
1335
|
href: `#${e.id ?? e.text}`,
|
|
1386
1336
|
style: { "--padding-left": `${e.level * .5}rem` },
|
|
1387
1337
|
children: [
|
|
1388
|
-
/* @__PURE__ */
|
|
1338
|
+
/* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(E, {
|
|
1389
1339
|
size: "0.6rem",
|
|
1390
1340
|
color: "#6987b8",
|
|
1391
1341
|
children: `H${e.level}`
|
|
1392
1342
|
}) }),
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1395
|
-
d:
|
|
1343
|
+
/* @__PURE__ */ p(E, { children: e.text }),
|
|
1344
|
+
/* @__PURE__ */ p(C, {
|
|
1345
|
+
d: ze,
|
|
1396
1346
|
size: "1em",
|
|
1397
1347
|
color: "#6987b8"
|
|
1398
1348
|
})
|
|
1399
1349
|
]
|
|
1400
1350
|
}, t))
|
|
1401
|
-
}),
|
|
1351
|
+
}), $t = { "block-fallback": "_block-fallback_adya7_1" }, en = {
|
|
1402
1352
|
"rectangle-wave": "_rectangle-wave_gxedo_21",
|
|
1403
1353
|
"elm-rectangle-wave": "_elm-rectangle-wave_gxedo_1"
|
|
1404
|
-
},
|
|
1354
|
+
}, tn = (e) => /* @__PURE__ */ p("div", {
|
|
1405
1355
|
"aria-hidden": !0,
|
|
1406
|
-
className:
|
|
1356
|
+
className: en["rectangle-wave"],
|
|
1407
1357
|
style: e.style
|
|
1408
|
-
}),
|
|
1358
|
+
}), nn = (e) => {
|
|
1409
1359
|
let { height: t = "16rem", style: n } = e;
|
|
1410
|
-
return /* @__PURE__ */
|
|
1411
|
-
className:
|
|
1360
|
+
return /* @__PURE__ */ m("div", {
|
|
1361
|
+
className: $t["block-fallback"],
|
|
1412
1362
|
style: {
|
|
1413
1363
|
"--height": t,
|
|
1414
1364
|
...n
|
|
1415
1365
|
},
|
|
1416
|
-
children: [/* @__PURE__ */
|
|
1366
|
+
children: [/* @__PURE__ */ p(w, {}), /* @__PURE__ */ p(tn, {})]
|
|
1417
1367
|
});
|
|
1418
|
-
},
|
|
1368
|
+
}, rn = {
|
|
1419
1369
|
circle: "_circle_ycu2l_19",
|
|
1420
1370
|
"draw-line": "_draw-line_ycu2l_1",
|
|
1421
1371
|
rotate: "_rotate_ycu2l_1"
|
|
1422
|
-
},
|
|
1372
|
+
}, an = (e) => {
|
|
1423
1373
|
let { radius: t = 16, weight: n = 2, style: r } = e;
|
|
1424
|
-
return /* @__PURE__ */
|
|
1374
|
+
return /* @__PURE__ */ p("svg", {
|
|
1425
1375
|
height: t * 2,
|
|
1426
1376
|
width: t * 2,
|
|
1427
1377
|
style: r,
|
|
1428
|
-
children: /* @__PURE__ */
|
|
1429
|
-
className:
|
|
1378
|
+
children: /* @__PURE__ */ p("circle", {
|
|
1379
|
+
className: rn.circle,
|
|
1430
1380
|
cx: t,
|
|
1431
1381
|
cy: t,
|
|
1432
1382
|
r: t - n,
|
|
@@ -1435,28 +1385,28 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1435
1385
|
})
|
|
1436
1386
|
});
|
|
1437
1387
|
}, L = {
|
|
1438
|
-
unsupported: "
|
|
1439
|
-
message: "
|
|
1440
|
-
icon: "
|
|
1441
|
-
details: "
|
|
1442
|
-
},
|
|
1388
|
+
unsupported: "_unsupported_1xu4c_1",
|
|
1389
|
+
message: "_message_1xu4c_13",
|
|
1390
|
+
icon: "_icon_1xu4c_20",
|
|
1391
|
+
details: "_details_1xu4c_24"
|
|
1392
|
+
}, on = (e) => /* @__PURE__ */ m("div", {
|
|
1443
1393
|
className: L.unsupported,
|
|
1444
1394
|
style: e.style,
|
|
1445
|
-
children: [/* @__PURE__ */
|
|
1395
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1446
1396
|
className: L.message,
|
|
1447
|
-
children: [/* @__PURE__ */
|
|
1397
|
+
children: [/* @__PURE__ */ p("svg", {
|
|
1448
1398
|
viewBox: "0 0 24 24",
|
|
1449
1399
|
width: "1.25rem",
|
|
1450
1400
|
height: "1.25rem",
|
|
1451
1401
|
className: L.icon,
|
|
1452
|
-
children: /* @__PURE__ */
|
|
1453
|
-
}), /* @__PURE__ */
|
|
1402
|
+
children: /* @__PURE__ */ p("path", { d: ke })
|
|
1403
|
+
}), /* @__PURE__ */ p(E, {
|
|
1454
1404
|
color: "#868e9c",
|
|
1455
1405
|
children: "UNSUPPORTED BLOCK"
|
|
1456
1406
|
})]
|
|
1457
|
-
}), e.details && /* @__PURE__ */
|
|
1407
|
+
}), e.details && /* @__PURE__ */ p("div", {
|
|
1458
1408
|
className: L.details,
|
|
1459
|
-
children: /* @__PURE__ */
|
|
1409
|
+
children: /* @__PURE__ */ p(E, {
|
|
1460
1410
|
color: "#868e9c",
|
|
1461
1411
|
children: e.details
|
|
1462
1412
|
})
|
|
@@ -1471,43 +1421,43 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1471
1421
|
flex: "_flex_c0mex_95",
|
|
1472
1422
|
ripple: "_ripple_c0mex_117",
|
|
1473
1423
|
"button-ripple": "_button-ripple_c0mex_1"
|
|
1474
|
-
},
|
|
1475
|
-
let [
|
|
1476
|
-
!e && !
|
|
1424
|
+
}, z = ({ 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());
|
|
1477
1427
|
}, [
|
|
1478
1428
|
e,
|
|
1479
|
-
|
|
1480
|
-
|
|
1429
|
+
n,
|
|
1430
|
+
f
|
|
1481
1431
|
]);
|
|
1482
|
-
return
|
|
1483
|
-
|
|
1484
|
-
}, []), /* @__PURE__ */
|
|
1432
|
+
return s(() => () => {
|
|
1433
|
+
l.current && clearTimeout(l.current);
|
|
1434
|
+
}, []), /* @__PURE__ */ m("button", {
|
|
1485
1435
|
className: [
|
|
1486
1436
|
R.button,
|
|
1487
|
-
!e && !
|
|
1488
|
-
|
|
1489
|
-
!
|
|
1490
|
-
!
|
|
1437
|
+
!e && !n ? R.enable : "",
|
|
1438
|
+
i.color ? R.colored : "",
|
|
1439
|
+
!i.color && !r ? R.normal : "",
|
|
1440
|
+
!i.color && r ? R.primary : ""
|
|
1491
1441
|
].filter(Boolean).join(" "),
|
|
1492
1442
|
style: {
|
|
1493
1443
|
display: t ? "flex" : "inline-flex",
|
|
1494
1444
|
width: t ? "100%" : "auto",
|
|
1495
|
-
cursor:
|
|
1496
|
-
"--opacity":
|
|
1497
|
-
"--color":
|
|
1498
|
-
...
|
|
1445
|
+
cursor: n ? "not-allowed" : e ? "progress" : "pointer",
|
|
1446
|
+
"--opacity": n || e ? .6 : void 0,
|
|
1447
|
+
"--color": i.color,
|
|
1448
|
+
...i.style
|
|
1499
1449
|
},
|
|
1500
1450
|
onClick: h,
|
|
1501
1451
|
children: [
|
|
1502
|
-
|
|
1503
|
-
e ? /* @__PURE__ */
|
|
1452
|
+
o && /* @__PURE__ */ p("div", { className: R.ripple }),
|
|
1453
|
+
e ? /* @__PURE__ */ p(w, { size: "1.5rem" }) : /* @__PURE__ */ p("span", {
|
|
1504
1454
|
className: R.flex,
|
|
1505
|
-
children:
|
|
1455
|
+
children: i.children
|
|
1506
1456
|
}),
|
|
1507
|
-
/* @__PURE__ */
|
|
1457
|
+
/* @__PURE__ */ p("div", { className: R["button-ornament"] })
|
|
1508
1458
|
]
|
|
1509
1459
|
});
|
|
1510
|
-
},
|
|
1460
|
+
}, B = {
|
|
1511
1461
|
container: "_container_12edl_1",
|
|
1512
1462
|
"container-disable": "_container-disable_12edl_14",
|
|
1513
1463
|
checkbox: "_checkbox_12edl_23",
|
|
@@ -1517,48 +1467,48 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1517
1467
|
loading: "_loading_12edl_48",
|
|
1518
1468
|
"check-line": "_check-line_12edl_67",
|
|
1519
1469
|
"elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_12edl_1"
|
|
1520
|
-
},
|
|
1521
|
-
let { onChange:
|
|
1522
|
-
!e && !t &&
|
|
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);
|
|
1523
1473
|
}, [
|
|
1524
1474
|
e,
|
|
1525
1475
|
t,
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
]), s = [
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
e ?
|
|
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"] : ""
|
|
1532
1482
|
].filter(Boolean).join(" ");
|
|
1533
|
-
return /* @__PURE__ */
|
|
1483
|
+
return /* @__PURE__ */ p("div", {
|
|
1534
1484
|
className: s,
|
|
1535
|
-
style:
|
|
1485
|
+
style: r.style,
|
|
1536
1486
|
onClick: o,
|
|
1537
|
-
children: /* @__PURE__ */
|
|
1487
|
+
children: /* @__PURE__ */ m("div", {
|
|
1538
1488
|
style: {
|
|
1539
1489
|
display: "flex",
|
|
1540
1490
|
alignItems: "center",
|
|
1541
1491
|
gap: "0.5rem"
|
|
1542
1492
|
},
|
|
1543
|
-
children: [/* @__PURE__ */
|
|
1493
|
+
children: [/* @__PURE__ */ m("svg", {
|
|
1544
1494
|
width: "24",
|
|
1545
1495
|
height: "24",
|
|
1546
|
-
className:
|
|
1496
|
+
className: B.checkbox,
|
|
1547
1497
|
children: [
|
|
1548
|
-
/* @__PURE__ */
|
|
1498
|
+
/* @__PURE__ */ m("circle", {
|
|
1549
1499
|
cx: "0",
|
|
1550
1500
|
cy: "0",
|
|
1551
1501
|
r: "2",
|
|
1552
|
-
className:
|
|
1502
|
+
className: B.loading,
|
|
1553
1503
|
style: { opacity: +!!e },
|
|
1554
|
-
children: [/* @__PURE__ */
|
|
1504
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
1555
1505
|
attributeName: "cx",
|
|
1556
1506
|
values: "4; 20; 20; 4; 4",
|
|
1557
1507
|
dur: "1.2s",
|
|
1558
1508
|
repeatCount: "indefinite",
|
|
1559
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",
|
|
1560
1510
|
calcMode: "spline"
|
|
1561
|
-
}), /* @__PURE__ */
|
|
1511
|
+
}), /* @__PURE__ */ p("animate", {
|
|
1562
1512
|
attributeName: "cy",
|
|
1563
1513
|
values: "4; 4; 20; 20; 4",
|
|
1564
1514
|
dur: "1.2s",
|
|
@@ -1567,20 +1517,20 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1567
1517
|
calcMode: "spline"
|
|
1568
1518
|
})]
|
|
1569
1519
|
}),
|
|
1570
|
-
/* @__PURE__ */
|
|
1520
|
+
/* @__PURE__ */ m("circle", {
|
|
1571
1521
|
cx: "20",
|
|
1572
1522
|
cy: "20",
|
|
1573
1523
|
r: "2",
|
|
1574
|
-
className:
|
|
1524
|
+
className: B.loading,
|
|
1575
1525
|
style: { opacity: +!!e },
|
|
1576
|
-
children: [/* @__PURE__ */
|
|
1526
|
+
children: [/* @__PURE__ */ p("animate", {
|
|
1577
1527
|
attributeName: "cx",
|
|
1578
1528
|
values: "20; 4; 4; 20; 20",
|
|
1579
1529
|
dur: "1.2s",
|
|
1580
1530
|
repeatCount: "indefinite",
|
|
1581
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",
|
|
1582
1532
|
calcMode: "spline"
|
|
1583
|
-
}), /* @__PURE__ */
|
|
1533
|
+
}), /* @__PURE__ */ p("animate", {
|
|
1584
1534
|
attributeName: "cy",
|
|
1585
1535
|
values: "20; 20; 4; 4; 20",
|
|
1586
1536
|
dur: "1.2s",
|
|
@@ -1589,7 +1539,7 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1589
1539
|
calcMode: "spline"
|
|
1590
1540
|
})]
|
|
1591
1541
|
}),
|
|
1592
|
-
/* @__PURE__ */
|
|
1542
|
+
/* @__PURE__ */ p("rect", {
|
|
1593
1543
|
x: "4",
|
|
1594
1544
|
y: "4",
|
|
1595
1545
|
width: "16",
|
|
@@ -1597,13 +1547,13 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1597
1547
|
className: c,
|
|
1598
1548
|
strokeWidth: "0.8"
|
|
1599
1549
|
}),
|
|
1600
|
-
|
|
1601
|
-
className:
|
|
1550
|
+
n && /* @__PURE__ */ p("polyline", {
|
|
1551
|
+
className: B["check-line"],
|
|
1602
1552
|
points: "5,12 10,17 19,8",
|
|
1603
1553
|
strokeWidth: "1.5",
|
|
1604
1554
|
fill: "transparent"
|
|
1605
1555
|
}),
|
|
1606
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ p("line", {
|
|
1607
1557
|
x1: "0",
|
|
1608
1558
|
y1: "1",
|
|
1609
1559
|
x2: "4",
|
|
@@ -1611,7 +1561,7 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1611
1561
|
strokeWidth: "2",
|
|
1612
1562
|
fill: "transparent"
|
|
1613
1563
|
}),
|
|
1614
|
-
/* @__PURE__ */
|
|
1564
|
+
/* @__PURE__ */ p("line", {
|
|
1615
1565
|
x1: "4",
|
|
1616
1566
|
y1: "0",
|
|
1617
1567
|
x2: "24",
|
|
@@ -1619,7 +1569,7 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1619
1569
|
strokeWidth: "1",
|
|
1620
1570
|
fill: "transparent"
|
|
1621
1571
|
}),
|
|
1622
|
-
/* @__PURE__ */
|
|
1572
|
+
/* @__PURE__ */ p("line", {
|
|
1623
1573
|
x1: "0",
|
|
1624
1574
|
y1: "4",
|
|
1625
1575
|
x2: "0",
|
|
@@ -1627,7 +1577,7 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1627
1577
|
strokeWidth: "1",
|
|
1628
1578
|
fill: "transparent"
|
|
1629
1579
|
}),
|
|
1630
|
-
/* @__PURE__ */
|
|
1580
|
+
/* @__PURE__ */ p("line", {
|
|
1631
1581
|
x1: "0",
|
|
1632
1582
|
y1: "18",
|
|
1633
1583
|
x2: "0",
|
|
@@ -1635,7 +1585,7 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1635
1585
|
strokeWidth: "1",
|
|
1636
1586
|
fill: "transparent"
|
|
1637
1587
|
}),
|
|
1638
|
-
/* @__PURE__ */
|
|
1588
|
+
/* @__PURE__ */ p("line", {
|
|
1639
1589
|
x1: "0",
|
|
1640
1590
|
y1: "24",
|
|
1641
1591
|
x2: "20",
|
|
@@ -1643,7 +1593,7 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1643
1593
|
strokeWidth: "1",
|
|
1644
1594
|
fill: "transparent"
|
|
1645
1595
|
}),
|
|
1646
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ p("line", {
|
|
1647
1597
|
x1: "20",
|
|
1648
1598
|
y1: "23",
|
|
1649
1599
|
x2: "24",
|
|
@@ -1651,7 +1601,7 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1651
1601
|
strokeWidth: "1.5",
|
|
1652
1602
|
fill: "transparent"
|
|
1653
1603
|
}),
|
|
1654
|
-
/* @__PURE__ */
|
|
1604
|
+
/* @__PURE__ */ p("line", {
|
|
1655
1605
|
x1: "24",
|
|
1656
1606
|
y1: "4",
|
|
1657
1607
|
x2: "24",
|
|
@@ -1660,10 +1610,10 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1660
1610
|
fill: "transparent"
|
|
1661
1611
|
})
|
|
1662
1612
|
]
|
|
1663
|
-
}), /* @__PURE__ */
|
|
1613
|
+
}), /* @__PURE__ */ p("span", { children: r.label })]
|
|
1664
1614
|
})
|
|
1665
1615
|
});
|
|
1666
|
-
},
|
|
1616
|
+
}, V = {
|
|
1667
1617
|
wrapper: "_wrapper_3ipdq_1",
|
|
1668
1618
|
active: "_active_3ipdq_29",
|
|
1669
1619
|
header: "_header_3ipdq_33",
|
|
@@ -1675,68 +1625,68 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1675
1625
|
pulldown: "_pulldown_3ipdq_85",
|
|
1676
1626
|
option: "_option_3ipdq_105",
|
|
1677
1627
|
description: "_description_3ipdq_127"
|
|
1678
|
-
},
|
|
1679
|
-
let [
|
|
1680
|
-
!e && !t &&
|
|
1681
|
-
}, [e, t]), { options:
|
|
1682
|
-
let t =
|
|
1683
|
-
t &&
|
|
1684
|
-
}, [
|
|
1685
|
-
return
|
|
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(() => {
|
|
1686
1636
|
let e = (e) => {
|
|
1687
|
-
|
|
1637
|
+
o.current && !o.current.contains(e.target) && i(!1);
|
|
1688
1638
|
};
|
|
1689
1639
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1690
|
-
}, []), /* @__PURE__ */
|
|
1691
|
-
ref:
|
|
1692
|
-
className: [
|
|
1640
|
+
}, []), /* @__PURE__ */ m("div", {
|
|
1641
|
+
ref: o,
|
|
1642
|
+
className: [V.wrapper, r ? V.active : ""].filter(Boolean).join(" "),
|
|
1693
1643
|
style: {
|
|
1694
1644
|
backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
|
|
1695
|
-
"--highlight-color":
|
|
1696
|
-
...
|
|
1645
|
+
"--highlight-color": r ? "#bfa056" : void 0,
|
|
1646
|
+
...n.style
|
|
1697
1647
|
},
|
|
1698
|
-
onClick:
|
|
1699
|
-
children: [/* @__PURE__ */
|
|
1700
|
-
className:
|
|
1701
|
-
children: /* @__PURE__ */
|
|
1702
|
-
className:
|
|
1703
|
-
children:
|
|
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
|
|
1704
1654
|
})
|
|
1705
|
-
}), /* @__PURE__ */
|
|
1706
|
-
className:
|
|
1707
|
-
children: /* @__PURE__ */
|
|
1708
|
-
className:
|
|
1655
|
+
}), /* @__PURE__ */ p("div", {
|
|
1656
|
+
className: V.body,
|
|
1657
|
+
children: /* @__PURE__ */ m("div", {
|
|
1658
|
+
className: V.select,
|
|
1709
1659
|
children: [
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
className:
|
|
1712
|
-
children:
|
|
1713
|
-
className:
|
|
1714
|
-
children:
|
|
1715
|
-
})] }) : /* @__PURE__ */
|
|
1716
|
-
className:
|
|
1717
|
-
children: [/* @__PURE__ */
|
|
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(C, { d: ae }), /* @__PURE__ */ p("span", { children: n.placeholder ?? "Select an option" })]
|
|
1718
1668
|
})
|
|
1719
1669
|
}),
|
|
1720
|
-
/* @__PURE__ */
|
|
1721
|
-
d:
|
|
1670
|
+
/* @__PURE__ */ p(C, {
|
|
1671
|
+
d: ze,
|
|
1722
1672
|
size: "1.5rem"
|
|
1723
1673
|
}),
|
|
1724
|
-
|
|
1725
|
-
className:
|
|
1726
|
-
children:
|
|
1727
|
-
className:
|
|
1674
|
+
r && /* @__PURE__ */ p("div", {
|
|
1675
|
+
className: V.pulldown,
|
|
1676
|
+
children: n.options.map((e) => /* @__PURE__ */ m("div", {
|
|
1677
|
+
className: V.option,
|
|
1728
1678
|
onClick: (t) => {
|
|
1729
1679
|
t.stopPropagation(), h(e.id);
|
|
1730
1680
|
},
|
|
1731
1681
|
children: [
|
|
1732
|
-
/* @__PURE__ */
|
|
1733
|
-
d:
|
|
1682
|
+
/* @__PURE__ */ p(C, {
|
|
1683
|
+
d: pe,
|
|
1734
1684
|
color: "#868e9c",
|
|
1735
1685
|
size: "0.75em"
|
|
1736
1686
|
}),
|
|
1737
|
-
/* @__PURE__ */
|
|
1738
|
-
e.description && /* @__PURE__ */
|
|
1739
|
-
className:
|
|
1687
|
+
/* @__PURE__ */ p("span", { children: e.label }),
|
|
1688
|
+
e.description && /* @__PURE__ */ p("span", {
|
|
1689
|
+
className: V.description,
|
|
1740
1690
|
children: e.description
|
|
1741
1691
|
})
|
|
1742
1692
|
]
|
|
@@ -1746,7 +1696,7 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1746
1696
|
})
|
|
1747
1697
|
})]
|
|
1748
1698
|
});
|
|
1749
|
-
},
|
|
1699
|
+
}, H = {
|
|
1750
1700
|
switch: "_switch_8t362_1",
|
|
1751
1701
|
bar: "_bar_8t362_5",
|
|
1752
1702
|
"bar-checked": "_bar-checked_8t362_21",
|
|
@@ -1754,43 +1704,43 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1754
1704
|
circle: "_circle_8t362_30",
|
|
1755
1705
|
"circle-checked": "_circle-checked_8t362_45",
|
|
1756
1706
|
"circle-disabled": "_circle-disabled_8t362_49"
|
|
1757
|
-
},
|
|
1758
|
-
let { onChange: o } =
|
|
1759
|
-
!
|
|
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);
|
|
1760
1710
|
}, [
|
|
1711
|
+
n,
|
|
1761
1712
|
r,
|
|
1762
|
-
i,
|
|
1763
1713
|
o
|
|
1764
1714
|
]), c = [
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1715
|
+
H.bar,
|
|
1716
|
+
r ? H["bar-checked"] : "",
|
|
1717
|
+
n ? H["bar-disabled"] : ""
|
|
1768
1718
|
].filter(Boolean).join(" "), l = [
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1719
|
+
H.circle,
|
|
1720
|
+
r ? H["circle-checked"] : "",
|
|
1721
|
+
n ? H["circle-disabled"] : ""
|
|
1772
1722
|
].filter(Boolean).join(" ");
|
|
1773
|
-
return /* @__PURE__ */
|
|
1723
|
+
return /* @__PURE__ */ m("div", {
|
|
1774
1724
|
onClick: s,
|
|
1775
1725
|
style: {
|
|
1776
1726
|
"--color": e,
|
|
1777
1727
|
"--padding": "2px",
|
|
1778
1728
|
"--size": t,
|
|
1779
1729
|
"--width": `calc(${t} * 2 + 2px * 2)`,
|
|
1780
|
-
...
|
|
1730
|
+
...i.style
|
|
1781
1731
|
},
|
|
1782
|
-
children: [/* @__PURE__ */
|
|
1783
|
-
className:
|
|
1732
|
+
children: [/* @__PURE__ */ p("input", {
|
|
1733
|
+
className: H.switch,
|
|
1784
1734
|
type: "checkbox",
|
|
1785
|
-
checked:
|
|
1786
|
-
disabled:
|
|
1735
|
+
checked: r,
|
|
1736
|
+
disabled: n,
|
|
1787
1737
|
readOnly: !0
|
|
1788
|
-
}), /* @__PURE__ */
|
|
1738
|
+
}), /* @__PURE__ */ p("div", {
|
|
1789
1739
|
className: c,
|
|
1790
|
-
children: /* @__PURE__ */
|
|
1740
|
+
children: /* @__PURE__ */ p("div", { className: l })
|
|
1791
1741
|
})]
|
|
1792
1742
|
});
|
|
1793
|
-
},
|
|
1743
|
+
}, U = {
|
|
1794
1744
|
loading: "_loading_1y96m_23",
|
|
1795
1745
|
wrapper: "_wrapper_1y96m_38",
|
|
1796
1746
|
active: "_active_1y96m_66",
|
|
@@ -1804,105 +1754,105 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1804
1754
|
suffix: "_suffix_1y96m_159",
|
|
1805
1755
|
counter: "_counter_1y96m_172",
|
|
1806
1756
|
"counter-over": "_counter-over_1y96m_177"
|
|
1807
|
-
},
|
|
1808
|
-
text:
|
|
1809
|
-
pen:
|
|
1810
|
-
email:
|
|
1811
|
-
user:
|
|
1812
|
-
lock:
|
|
1813
|
-
key:
|
|
1814
|
-
earth:
|
|
1815
|
-
tag:
|
|
1816
|
-
archive:
|
|
1817
|
-
link:
|
|
1818
|
-
search:
|
|
1819
|
-
},
|
|
1820
|
-
let
|
|
1757
|
+
}, un = {
|
|
1758
|
+
text: qe,
|
|
1759
|
+
pen: Ve,
|
|
1760
|
+
email: xe,
|
|
1761
|
+
user: x,
|
|
1762
|
+
lock: Fe,
|
|
1763
|
+
key: Ae,
|
|
1764
|
+
earth: be,
|
|
1765
|
+
tag: Ke,
|
|
1766
|
+
archive: ie,
|
|
1767
|
+
link: Ne,
|
|
1768
|
+
search: Re
|
|
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, y = a(() => {
|
|
1821
1771
|
!t && !e && v && v("");
|
|
1822
1772
|
}, [
|
|
1823
1773
|
t,
|
|
1824
1774
|
e,
|
|
1825
1775
|
v
|
|
1826
|
-
]), b =
|
|
1776
|
+
]), b = a(() => {
|
|
1827
1777
|
!t && !e && _((e) => e === "text" ? "password" : "text");
|
|
1828
|
-
}, [t, e]), x =
|
|
1778
|
+
}, [t, e]), x = a((e) => (t) => {
|
|
1829
1779
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
|
|
1830
1780
|
}, []);
|
|
1831
|
-
return /* @__PURE__ */
|
|
1832
|
-
className: [
|
|
1781
|
+
return /* @__PURE__ */ m("div", {
|
|
1782
|
+
className: [U.wrapper, f ? U.active : ""].filter(Boolean).join(" "),
|
|
1833
1783
|
style: {
|
|
1834
1784
|
backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
|
|
1835
|
-
"--highlight-color":
|
|
1836
|
-
...
|
|
1785
|
+
"--highlight-color": f ? "#bfa056" : void 0,
|
|
1786
|
+
...o.style
|
|
1837
1787
|
},
|
|
1838
1788
|
children: [
|
|
1839
|
-
/* @__PURE__ */
|
|
1840
|
-
className:
|
|
1841
|
-
children: [/* @__PURE__ */
|
|
1842
|
-
htmlFor:
|
|
1843
|
-
className:
|
|
1844
|
-
children: [/* @__PURE__ */
|
|
1845
|
-
className:
|
|
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,
|
|
1846
1796
|
children: "*"
|
|
1847
1797
|
})]
|
|
1848
|
-
}),
|
|
1849
|
-
className: [
|
|
1798
|
+
}), o.maxLength != null && /* @__PURE__ */ m("span", {
|
|
1799
|
+
className: [U.counter, i.length > o.maxLength ? U["counter-over"] : ""].filter(Boolean).join(" "),
|
|
1850
1800
|
children: [
|
|
1851
|
-
|
|
1801
|
+
i.length,
|
|
1852
1802
|
" / ",
|
|
1853
|
-
|
|
1803
|
+
o.maxLength
|
|
1854
1804
|
]
|
|
1855
1805
|
})]
|
|
1856
1806
|
}),
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
className:
|
|
1807
|
+
/* @__PURE__ */ m("div", {
|
|
1808
|
+
className: U.body,
|
|
1859
1809
|
children: [
|
|
1860
|
-
|
|
1861
|
-
d:
|
|
1810
|
+
o.icon && /* @__PURE__ */ p(C, {
|
|
1811
|
+
d: un[o.icon],
|
|
1862
1812
|
size: "1.5rem",
|
|
1863
1813
|
color: "gray"
|
|
1864
1814
|
}),
|
|
1865
|
-
/* @__PURE__ */
|
|
1866
|
-
id:
|
|
1867
|
-
ref:
|
|
1815
|
+
/* @__PURE__ */ p("input", {
|
|
1816
|
+
id: s,
|
|
1817
|
+
ref: l,
|
|
1868
1818
|
type: g,
|
|
1869
|
-
className:
|
|
1870
|
-
placeholder:
|
|
1871
|
-
value:
|
|
1819
|
+
className: U.input,
|
|
1820
|
+
placeholder: o.placeholder,
|
|
1821
|
+
value: i,
|
|
1872
1822
|
onChange: (e) => v?.(e.target.value),
|
|
1873
1823
|
onFocus: () => h(!0),
|
|
1874
1824
|
onBlur: () => h(!1),
|
|
1875
1825
|
disabled: e || t,
|
|
1876
1826
|
style: { cursor: e ? "not-allowed" : t ? "progress" : "auto" },
|
|
1877
|
-
"aria-required":
|
|
1827
|
+
"aria-required": r
|
|
1878
1828
|
}),
|
|
1879
|
-
/* @__PURE__ */
|
|
1880
|
-
className:
|
|
1829
|
+
/* @__PURE__ */ m("div", {
|
|
1830
|
+
className: U["icon-box"],
|
|
1881
1831
|
children: [
|
|
1882
|
-
|
|
1883
|
-
className:
|
|
1884
|
-
children:
|
|
1832
|
+
o.suffix != null && /* @__PURE__ */ p("span", {
|
|
1833
|
+
className: U.suffix,
|
|
1834
|
+
children: o.suffix
|
|
1885
1835
|
}),
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
className:
|
|
1836
|
+
/* @__PURE__ */ p("div", {
|
|
1837
|
+
className: U.icon,
|
|
1888
1838
|
onClick: b,
|
|
1889
1839
|
onKeyDown: x(b),
|
|
1890
1840
|
role: "button",
|
|
1891
1841
|
tabIndex: 0,
|
|
1892
|
-
children: /* @__PURE__ */
|
|
1893
|
-
d: g === "text" ?
|
|
1842
|
+
children: /* @__PURE__ */ p(C, {
|
|
1843
|
+
d: g === "text" ? Ce : Se,
|
|
1894
1844
|
size: "1.75em",
|
|
1895
1845
|
color: "gray"
|
|
1896
1846
|
})
|
|
1897
1847
|
}),
|
|
1898
|
-
/* @__PURE__ */
|
|
1899
|
-
className:
|
|
1848
|
+
/* @__PURE__ */ p("div", {
|
|
1849
|
+
className: U.icon,
|
|
1900
1850
|
onClick: y,
|
|
1901
1851
|
onKeyDown: x(y),
|
|
1902
1852
|
role: "button",
|
|
1903
1853
|
tabIndex: 0,
|
|
1904
|
-
children: /* @__PURE__ */
|
|
1905
|
-
d:
|
|
1854
|
+
children: /* @__PURE__ */ p(C, {
|
|
1855
|
+
d: se,
|
|
1906
1856
|
size: "1.75em",
|
|
1907
1857
|
color: "gray"
|
|
1908
1858
|
})
|
|
@@ -1911,153 +1861,153 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
1911
1861
|
})
|
|
1912
1862
|
]
|
|
1913
1863
|
}),
|
|
1914
|
-
/* @__PURE__ */
|
|
1915
|
-
className:
|
|
1864
|
+
/* @__PURE__ */ p("div", {
|
|
1865
|
+
className: U.loading,
|
|
1916
1866
|
style: { opacity: t ? .2 : 0 }
|
|
1917
1867
|
})
|
|
1918
1868
|
]
|
|
1919
1869
|
});
|
|
1920
|
-
},
|
|
1921
|
-
className:
|
|
1870
|
+
}, fn = { validation: "_validation_wuw0j_1" }, pn = ({ validColor: e = "#449763", ...t }) => /* @__PURE__ */ m("div", {
|
|
1871
|
+
className: fn.validation,
|
|
1922
1872
|
style: {
|
|
1923
1873
|
"--opacity": t.isValid ? 1 : .5,
|
|
1924
1874
|
...t.style
|
|
1925
1875
|
},
|
|
1926
|
-
children: [/* @__PURE__ */
|
|
1927
|
-
d: t.isValid ?
|
|
1876
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1877
|
+
d: t.isValid ? de : fe,
|
|
1928
1878
|
color: t.isValid ? e : void 0
|
|
1929
|
-
}), /* @__PURE__ */
|
|
1879
|
+
}), /* @__PURE__ */ p("span", {
|
|
1930
1880
|
style: { color: t.isValid ? e : void 0 },
|
|
1931
1881
|
children: t.text
|
|
1932
1882
|
})]
|
|
1933
|
-
}),
|
|
1934
|
-
className:
|
|
1883
|
+
}), mn = { column: "_column_12uje_1" }, hn = (e) => /* @__PURE__ */ p("div", {
|
|
1884
|
+
className: mn.column,
|
|
1935
1885
|
style: e.style,
|
|
1936
1886
|
children: e.children
|
|
1937
|
-
}),
|
|
1938
|
-
className:
|
|
1887
|
+
}), gn = { "column-list": "_column-list_rt1o3_1" }, _n = (e) => /* @__PURE__ */ p("div", {
|
|
1888
|
+
className: gn["column-list"],
|
|
1939
1889
|
style: e.style,
|
|
1940
1890
|
children: e.children
|
|
1941
|
-
}),
|
|
1891
|
+
}), vn = {
|
|
1942
1892
|
body: "_body_gd5gc_1",
|
|
1943
1893
|
button: "_button_gd5gc_5"
|
|
1944
|
-
},
|
|
1894
|
+
}, W = {
|
|
1945
1895
|
provider: "_provider_94i7o_1",
|
|
1946
1896
|
"provider-enter": "_provider-enter_94i7o_19",
|
|
1947
1897
|
"provider-exit": "_provider-exit_94i7o_23",
|
|
1948
1898
|
modal: "_modal_94i7o_27"
|
|
1949
|
-
},
|
|
1950
|
-
let [
|
|
1951
|
-
|
|
1952
|
-
if (
|
|
1953
|
-
let e = window.setTimeout(() =>
|
|
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);
|
|
1954
1904
|
return () => clearTimeout(e);
|
|
1955
1905
|
} else {
|
|
1956
|
-
let e = window.setTimeout(() =>
|
|
1906
|
+
let e = window.setTimeout(() => i(!1), 400);
|
|
1957
1907
|
return () => clearTimeout(e);
|
|
1958
1908
|
}
|
|
1959
|
-
}, [
|
|
1960
|
-
let
|
|
1909
|
+
}, [o]);
|
|
1910
|
+
let c = a(() => {
|
|
1961
1911
|
e && t && t(!1);
|
|
1962
|
-
}, [e, t]),
|
|
1912
|
+
}, [e, t]), l = a((e) => {
|
|
1963
1913
|
e.stopPropagation();
|
|
1964
1914
|
}, []);
|
|
1965
|
-
return !
|
|
1966
|
-
className: `${
|
|
1967
|
-
onClick:
|
|
1968
|
-
children: /* @__PURE__ */
|
|
1969
|
-
className:
|
|
1915
|
+
return !o && !r ? null : Je(/* @__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,
|
|
1970
1920
|
style: {
|
|
1971
|
-
"--width":
|
|
1972
|
-
...
|
|
1921
|
+
"--width": n.width,
|
|
1922
|
+
...n.style
|
|
1973
1923
|
},
|
|
1974
|
-
onClick:
|
|
1975
|
-
children:
|
|
1924
|
+
onClick: l,
|
|
1925
|
+
children: n.children
|
|
1976
1926
|
})
|
|
1977
1927
|
}), document.body);
|
|
1978
|
-
},
|
|
1979
|
-
let [s,
|
|
1928
|
+
}, bn = ({ closeOnClickOutside: e = !0, onChange: t, onConfirm: n, onSuccess: r, onError: i, ...o }) => {
|
|
1929
|
+
let [s, c] = d(!1), l = a(() => {
|
|
1980
1930
|
t && t(!1);
|
|
1981
|
-
}, [t]),
|
|
1982
|
-
|
|
1931
|
+
}, [t]), u = a(async () => {
|
|
1932
|
+
c(!0);
|
|
1983
1933
|
try {
|
|
1984
|
-
await
|
|
1934
|
+
await n(), c(!1), t && t(!1), r && r();
|
|
1985
1935
|
} catch (e) {
|
|
1986
|
-
|
|
1936
|
+
i && i(e), c(!1), t && t(!1);
|
|
1987
1937
|
}
|
|
1988
1938
|
}, [
|
|
1939
|
+
n,
|
|
1989
1940
|
r,
|
|
1990
1941
|
i,
|
|
1991
|
-
a,
|
|
1992
1942
|
t
|
|
1993
1943
|
]);
|
|
1994
|
-
return /* @__PURE__ */
|
|
1944
|
+
return /* @__PURE__ */ p(yn, {
|
|
1995
1945
|
value: o.value,
|
|
1996
1946
|
onChange: t,
|
|
1997
1947
|
closeOnClickOutside: e,
|
|
1998
|
-
children: /* @__PURE__ */
|
|
1999
|
-
/* @__PURE__ */
|
|
1948
|
+
children: /* @__PURE__ */ m("div", { children: [
|
|
1949
|
+
/* @__PURE__ */ p(O, {
|
|
2000
1950
|
level: 2,
|
|
2001
1951
|
disableFragmentIdentifier: !0,
|
|
2002
1952
|
children: o.title
|
|
2003
1953
|
}),
|
|
2004
|
-
/* @__PURE__ */
|
|
2005
|
-
className:
|
|
1954
|
+
/* @__PURE__ */ p("div", {
|
|
1955
|
+
className: vn.body,
|
|
2006
1956
|
children: o.children
|
|
2007
1957
|
}),
|
|
2008
|
-
/* @__PURE__ */
|
|
2009
|
-
className:
|
|
2010
|
-
children: [/* @__PURE__ */
|
|
1958
|
+
/* @__PURE__ */ m("div", {
|
|
1959
|
+
className: vn.button,
|
|
1960
|
+
children: [/* @__PURE__ */ m(z, {
|
|
2011
1961
|
block: !0,
|
|
2012
|
-
onClick:
|
|
1962
|
+
onClick: l,
|
|
2013
1963
|
loading: s,
|
|
2014
|
-
children: [/* @__PURE__ */
|
|
2015
|
-
}), /* @__PURE__ */
|
|
1964
|
+
children: [/* @__PURE__ */ p(C, { d: oe }), /* @__PURE__ */ p("span", { children: "Cancel" })]
|
|
1965
|
+
}), /* @__PURE__ */ m(z, {
|
|
2016
1966
|
block: !0,
|
|
2017
|
-
onClick:
|
|
1967
|
+
onClick: u,
|
|
2018
1968
|
primary: !0,
|
|
2019
1969
|
loading: s,
|
|
2020
|
-
children: [/* @__PURE__ */
|
|
2021
|
-
d:
|
|
1970
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1971
|
+
d: de,
|
|
2022
1972
|
color: "currentColor"
|
|
2023
|
-
}), /* @__PURE__ */
|
|
1973
|
+
}), /* @__PURE__ */ p("span", { children: "Confirm" })]
|
|
2024
1974
|
})]
|
|
2025
1975
|
})
|
|
2026
1976
|
] })
|
|
2027
1977
|
});
|
|
2028
|
-
},
|
|
1978
|
+
}, G = {
|
|
2029
1979
|
window: "_window_l8snl_1",
|
|
2030
1980
|
header: "_header_l8snl_14",
|
|
2031
1981
|
dot: "_dot_l8snl_25"
|
|
2032
|
-
},
|
|
2033
|
-
className:
|
|
1982
|
+
}, xn = ({ minHeight: e = "6rem", ...t }) => /* @__PURE__ */ m("div", {
|
|
1983
|
+
className: G.window,
|
|
2034
1984
|
style: t.style,
|
|
2035
|
-
children: [/* @__PURE__ */
|
|
2036
|
-
className:
|
|
1985
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1986
|
+
className: G.header,
|
|
2037
1987
|
children: [
|
|
2038
|
-
/* @__PURE__ */
|
|
1988
|
+
/* @__PURE__ */ p("div", {
|
|
2039
1989
|
"aria-hidden": !0,
|
|
2040
|
-
className:
|
|
1990
|
+
className: G.dot,
|
|
2041
1991
|
style: { "--bg": "#c48691" }
|
|
2042
1992
|
}),
|
|
2043
|
-
/* @__PURE__ */
|
|
1993
|
+
/* @__PURE__ */ p("div", {
|
|
2044
1994
|
"aria-hidden": !0,
|
|
2045
|
-
className:
|
|
1995
|
+
className: G.dot,
|
|
2046
1996
|
style: { "--bg": "#c9b990" }
|
|
2047
1997
|
}),
|
|
2048
|
-
/* @__PURE__ */
|
|
1998
|
+
/* @__PURE__ */ p("div", {
|
|
2049
1999
|
"aria-hidden": !0,
|
|
2050
|
-
className:
|
|
2000
|
+
className: G.dot,
|
|
2051
2001
|
style: { "--bg": "#7cc598" }
|
|
2052
2002
|
})
|
|
2053
2003
|
]
|
|
2054
|
-
}), /* @__PURE__ */
|
|
2004
|
+
}), /* @__PURE__ */ p("div", {
|
|
2055
2005
|
style: { minHeight: e },
|
|
2056
2006
|
children: t.children
|
|
2057
2007
|
})]
|
|
2058
|
-
}),
|
|
2059
|
-
let [t, n] =
|
|
2060
|
-
return
|
|
2008
|
+
}), Sn = { parallax: "_parallax_1tovg_1" }, Cn = (e) => {
|
|
2009
|
+
let [t, n] = d(0);
|
|
2010
|
+
return s(() => {
|
|
2061
2011
|
let e = null, t = () => {
|
|
2062
2012
|
e ?? (e = requestAnimationFrame(() => {
|
|
2063
2013
|
n(window.scrollY), e = null;
|
|
@@ -2066,104 +2016,104 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
2066
2016
|
return window.addEventListener("scroll", t, { passive: !0 }), () => {
|
|
2067
2017
|
window.removeEventListener("scroll", t), e != null && cancelAnimationFrame(e);
|
|
2068
2018
|
};
|
|
2069
|
-
}, []), /* @__PURE__ */
|
|
2070
|
-
className:
|
|
2019
|
+
}, []), /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2020
|
+
className: Sn.parallax,
|
|
2071
2021
|
style: {
|
|
2072
2022
|
backgroundImage: `url(${e.imageUrl1})`,
|
|
2073
2023
|
transform: `scale(1.2) translateY(${t / 400}%)`,
|
|
2074
2024
|
transformOrigin: "bottom",
|
|
2075
2025
|
...e.style
|
|
2076
2026
|
}
|
|
2077
|
-
}), /* @__PURE__ */
|
|
2078
|
-
className:
|
|
2027
|
+
}), /* @__PURE__ */ p("div", {
|
|
2028
|
+
className: Sn.parallax,
|
|
2079
2029
|
style: {
|
|
2080
2030
|
backgroundImage: `url(${e.imageUrl2})`,
|
|
2081
2031
|
transform: `scale(1.2) translateY(${t / 900}%)`,
|
|
2082
2032
|
transformOrigin: "bottom"
|
|
2083
2033
|
}
|
|
2084
2034
|
})] });
|
|
2085
|
-
},
|
|
2035
|
+
}, wn = {
|
|
2086
2036
|
container: "_container_1mzm0_1",
|
|
2087
2037
|
title: "_title_1mzm0_16",
|
|
2088
2038
|
text: "_text_1mzm0_22"
|
|
2089
|
-
},
|
|
2039
|
+
}, Tn = {
|
|
2090
2040
|
original: "_original_3zasf_1",
|
|
2091
2041
|
tooltip: "_tooltip_3zasf_5",
|
|
2092
2042
|
"tooltip-enter": "_tooltip-enter_3zasf_17"
|
|
2093
|
-
},
|
|
2094
|
-
let t =
|
|
2043
|
+
}, En = (e) => {
|
|
2044
|
+
let t = u(null), [n, r] = d(!1), [i, o] = d({}), c = a(() => {
|
|
2095
2045
|
let e = t.current;
|
|
2096
2046
|
if (!e) return;
|
|
2097
2047
|
let n = e.getBoundingClientRect(), r = window.innerWidth;
|
|
2098
|
-
n.x > r / 2 ?
|
|
2048
|
+
n.x > r / 2 ? o({
|
|
2099
2049
|
top: `${n.y + n.height}px`,
|
|
2100
2050
|
right: `${r - n.x - n.width}px`
|
|
2101
|
-
}) :
|
|
2051
|
+
}) : o({
|
|
2102
2052
|
top: `${n.y + n.height}px`,
|
|
2103
2053
|
left: `${n.x}px`
|
|
2104
2054
|
});
|
|
2105
2055
|
}, []);
|
|
2106
|
-
return
|
|
2107
|
-
|
|
2108
|
-
}, [
|
|
2056
|
+
return s(() => {
|
|
2057
|
+
n && c();
|
|
2058
|
+
}, [n, c]), /* @__PURE__ */ m("span", {
|
|
2109
2059
|
ref: t,
|
|
2110
|
-
className:
|
|
2111
|
-
onMouseOver: () =>
|
|
2112
|
-
onMouseLeave: () =>
|
|
2060
|
+
className: Tn.original,
|
|
2061
|
+
onMouseOver: () => r(!0),
|
|
2062
|
+
onMouseLeave: () => r(!1),
|
|
2113
2063
|
style: e.style,
|
|
2114
|
-
children: [e.original,
|
|
2115
|
-
className: `${
|
|
2116
|
-
style:
|
|
2064
|
+
children: [e.original, n && /* @__PURE__ */ p("div", {
|
|
2065
|
+
className: `${Tn.tooltip} ${Tn["tooltip-enter"]}`,
|
|
2066
|
+
style: i,
|
|
2117
2067
|
children: e.tooltip
|
|
2118
2068
|
})]
|
|
2119
2069
|
});
|
|
2120
|
-
},
|
|
2070
|
+
}, Dn = (e) => /* @__PURE__ */ p(En, {
|
|
2121
2071
|
original: e.children,
|
|
2122
|
-
tooltip: /* @__PURE__ */
|
|
2123
|
-
className:
|
|
2072
|
+
tooltip: /* @__PURE__ */ m("div", {
|
|
2073
|
+
className: wn.container,
|
|
2124
2074
|
style: e.style,
|
|
2125
|
-
children: [e.title && /* @__PURE__ */
|
|
2126
|
-
className:
|
|
2075
|
+
children: [e.title && /* @__PURE__ */ p("div", {
|
|
2076
|
+
className: wn.title,
|
|
2127
2077
|
children: e.title
|
|
2128
|
-
}), /* @__PURE__ */
|
|
2129
|
-
className:
|
|
2078
|
+
}), /* @__PURE__ */ p("div", {
|
|
2079
|
+
className: wn.text,
|
|
2130
2080
|
children: e.text
|
|
2131
2081
|
})]
|
|
2132
2082
|
})
|
|
2133
|
-
}),
|
|
2083
|
+
}), On = {
|
|
2134
2084
|
snackbar: "_snackbar_1f0go_1",
|
|
2135
2085
|
icon: "_icon_1f0go_19",
|
|
2136
2086
|
progress: "_progress_1f0go_45"
|
|
2137
|
-
},
|
|
2138
|
-
className:
|
|
2087
|
+
}, kn = ({ timeout: e = 5e3, ...t }) => /* @__PURE__ */ m("div", {
|
|
2088
|
+
className: On.snackbar,
|
|
2139
2089
|
style: t.style,
|
|
2140
2090
|
children: [
|
|
2141
|
-
t.label == null ? t.children : /* @__PURE__ */
|
|
2142
|
-
/* @__PURE__ */
|
|
2143
|
-
className:
|
|
2091
|
+
t.label == null ? t.children : /* @__PURE__ */ p(E, { children: t.label }),
|
|
2092
|
+
/* @__PURE__ */ p("div", {
|
|
2093
|
+
className: On.icon,
|
|
2144
2094
|
onClick: t.close,
|
|
2145
|
-
children: /* @__PURE__ */
|
|
2146
|
-
d:
|
|
2095
|
+
children: /* @__PURE__ */ p(C, {
|
|
2096
|
+
d: _e,
|
|
2147
2097
|
size: "1em"
|
|
2148
2098
|
})
|
|
2149
2099
|
}),
|
|
2150
|
-
/* @__PURE__ */
|
|
2151
|
-
className:
|
|
2100
|
+
/* @__PURE__ */ p("div", {
|
|
2101
|
+
className: On.progress,
|
|
2152
2102
|
style: { animationDuration: `${e}ms` }
|
|
2153
2103
|
})
|
|
2154
2104
|
]
|
|
2155
|
-
}),
|
|
2105
|
+
}), An = {
|
|
2156
2106
|
"snackbar-screen": "_snackbar-screen_up7j2_1",
|
|
2157
2107
|
"snackbar-container": "_snackbar-container_up7j2_14",
|
|
2158
2108
|
"snackbar-item": "_snackbar-item_up7j2_23"
|
|
2159
|
-
},
|
|
2160
|
-
className:
|
|
2109
|
+
}, jn = (e) => /* @__PURE__ */ p("div", {
|
|
2110
|
+
className: An["snackbar-screen"],
|
|
2161
2111
|
style: e.style,
|
|
2162
|
-
children: /* @__PURE__ */
|
|
2163
|
-
className:
|
|
2164
|
-
children: e.snackbars.map((e) => /* @__PURE__ */
|
|
2165
|
-
className:
|
|
2166
|
-
children: /* @__PURE__ */
|
|
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, {
|
|
2167
2117
|
label: e.label,
|
|
2168
2118
|
timeout: e.timeout,
|
|
2169
2119
|
close: e.close,
|
|
@@ -2171,99 +2121,96 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
2171
2121
|
})
|
|
2172
2122
|
}, e.id))
|
|
2173
2123
|
})
|
|
2174
|
-
}),
|
|
2175
|
-
"elm-tabs": "_elm-
|
|
2176
|
-
"tab-container": "_tab-
|
|
2177
|
-
tab: "
|
|
2178
|
-
active: "
|
|
2179
|
-
"tab-content-container": "_tab-content-
|
|
2180
|
-
"tab-content": "_tab-
|
|
2181
|
-
},
|
|
2182
|
-
let [t, n] =
|
|
2183
|
-
return /* @__PURE__ */
|
|
2184
|
-
className:
|
|
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"],
|
|
2185
2135
|
style: e.style,
|
|
2186
|
-
children: [/* @__PURE__ */
|
|
2187
|
-
className:
|
|
2188
|
-
children: e.tabLabels.map((e, r) => /* @__PURE__ */
|
|
2189
|
-
className: `${
|
|
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 : ""}`,
|
|
2190
2140
|
onClick: () => n(r),
|
|
2191
2141
|
children: e
|
|
2192
2142
|
}, r))
|
|
2193
|
-
}), /* @__PURE__ */
|
|
2194
|
-
className:
|
|
2195
|
-
children: e.tabContents.map((e, n) => /* @__PURE__ */
|
|
2196
|
-
className: `${
|
|
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 : ""}`,
|
|
2197
2147
|
children: e
|
|
2198
2148
|
}, n))
|
|
2199
2149
|
})]
|
|
2200
2150
|
});
|
|
2201
|
-
},
|
|
2202
|
-
toggle: "
|
|
2203
|
-
open: "
|
|
2204
|
-
summary: "
|
|
2205
|
-
"summary-left": "_summary-
|
|
2206
|
-
content: "
|
|
2207
|
-
"content-open": "_content-
|
|
2208
|
-
close: "
|
|
2209
|
-
"close-button": "_close-
|
|
2210
|
-
},
|
|
2211
|
-
let [t, n] =
|
|
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) => {
|
|
2212
2162
|
t.preventDefault();
|
|
2213
2163
|
let a = !i;
|
|
2214
2164
|
r ? e.onChange?.(a) : n(a);
|
|
2215
2165
|
};
|
|
2216
|
-
return /* @__PURE__ */
|
|
2217
|
-
className: `${
|
|
2218
|
-
style: {
|
|
2219
|
-
"--margin-block": e.margin,
|
|
2220
|
-
...e.style
|
|
2221
|
-
},
|
|
2166
|
+
return /* @__PURE__ */ m("div", {
|
|
2167
|
+
className: `${q.toggle} ${i ? q.open : ""}`,
|
|
2168
|
+
style: { ...e.style },
|
|
2222
2169
|
children: [
|
|
2223
|
-
/* @__PURE__ */
|
|
2224
|
-
className:
|
|
2170
|
+
/* @__PURE__ */ m("div", {
|
|
2171
|
+
className: q.summary,
|
|
2225
2172
|
onClick: a,
|
|
2226
2173
|
style: { borderRadius: i ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem" },
|
|
2227
|
-
children: [/* @__PURE__ */
|
|
2228
|
-
className:
|
|
2229
|
-
children: [/* @__PURE__ */
|
|
2174
|
+
children: [/* @__PURE__ */ m("div", {
|
|
2175
|
+
className: q["summary-left"],
|
|
2176
|
+
children: [/* @__PURE__ */ p("span", {
|
|
2230
2177
|
style: {
|
|
2231
2178
|
transform: `rotate(${i ? "90deg" : "0deg"})`,
|
|
2232
2179
|
transition: "transform 200ms",
|
|
2233
2180
|
display: "flex"
|
|
2234
2181
|
},
|
|
2235
|
-
children: /* @__PURE__ */
|
|
2236
|
-
d:
|
|
2182
|
+
children: /* @__PURE__ */ p(C, {
|
|
2183
|
+
d: pe,
|
|
2237
2184
|
color: "#59b57c",
|
|
2238
2185
|
size: "1.25em"
|
|
2239
2186
|
})
|
|
2240
|
-
}), /* @__PURE__ */
|
|
2241
|
-
}), /* @__PURE__ */
|
|
2187
|
+
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(E, { children: e.summary }) })]
|
|
2188
|
+
}), /* @__PURE__ */ p("span", {
|
|
2242
2189
|
style: {
|
|
2243
2190
|
transform: `rotate(${i ? "135deg" : "0deg"})`,
|
|
2244
2191
|
transition: "transform 200ms",
|
|
2245
2192
|
display: "flex"
|
|
2246
2193
|
},
|
|
2247
|
-
children: /* @__PURE__ */
|
|
2248
|
-
d:
|
|
2194
|
+
children: /* @__PURE__ */ p(C, {
|
|
2195
|
+
d: He,
|
|
2249
2196
|
color: i ? "#b36472" : "#59b57c"
|
|
2250
2197
|
})
|
|
2251
2198
|
})]
|
|
2252
2199
|
}),
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
className: `${
|
|
2200
|
+
/* @__PURE__ */ p("div", {
|
|
2201
|
+
className: `${q.content} ${i ? q["content-open"] : ""}`,
|
|
2255
2202
|
children: e.children
|
|
2256
2203
|
}),
|
|
2257
|
-
i && /* @__PURE__ */
|
|
2258
|
-
className:
|
|
2204
|
+
i && /* @__PURE__ */ p("div", {
|
|
2205
|
+
className: q.close,
|
|
2259
2206
|
onClick: a,
|
|
2260
|
-
children: /* @__PURE__ */
|
|
2261
|
-
className:
|
|
2262
|
-
children: [/* @__PURE__ */
|
|
2263
|
-
d:
|
|
2207
|
+
children: /* @__PURE__ */ m("div", {
|
|
2208
|
+
className: q["close-button"],
|
|
2209
|
+
children: [/* @__PURE__ */ p(C, {
|
|
2210
|
+
d: me,
|
|
2264
2211
|
size: "1.25em",
|
|
2265
2212
|
color: "#c56565"
|
|
2266
|
-
}), /* @__PURE__ */
|
|
2213
|
+
}), /* @__PURE__ */ p(E, {
|
|
2267
2214
|
color: "#8e3636",
|
|
2268
2215
|
children: "CLOSE"
|
|
2269
2216
|
})]
|
|
@@ -2271,102 +2218,99 @@ var Ht = ({ name: e, src: t, filesize: r, margin: i, style: a }) => {
|
|
|
2271
2218
|
})
|
|
2272
2219
|
]
|
|
2273
2220
|
});
|
|
2274
|
-
},
|
|
2275
|
-
table: "
|
|
2276
|
-
caption: "
|
|
2277
|
-
"caption-inner": "_caption-
|
|
2278
|
-
spacing: "
|
|
2279
|
-
},
|
|
2280
|
-
value:
|
|
2281
|
-
children: /* @__PURE__ */
|
|
2282
|
-
className:
|
|
2283
|
-
style:
|
|
2284
|
-
"--margin-block": e,
|
|
2285
|
-
...a
|
|
2286
|
-
},
|
|
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,
|
|
2287
2231
|
children: [
|
|
2288
|
-
|
|
2289
|
-
className:
|
|
2232
|
+
e != null && /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ m("span", {
|
|
2233
|
+
className: J.caption,
|
|
2290
2234
|
children: [
|
|
2291
|
-
/* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2293
|
-
className:
|
|
2294
|
-
children: [/* @__PURE__ */
|
|
2235
|
+
/* @__PURE__ */ p("span", { className: J.spacing }),
|
|
2236
|
+
/* @__PURE__ */ m("span", {
|
|
2237
|
+
className: J["caption-inner"],
|
|
2238
|
+
children: [/* @__PURE__ */ p("svg", {
|
|
2295
2239
|
viewBox: "0 0 24 24",
|
|
2296
2240
|
width: "1rem",
|
|
2297
2241
|
height: "1rem",
|
|
2298
|
-
children: /* @__PURE__ */
|
|
2299
|
-
d:
|
|
2242
|
+
children: /* @__PURE__ */ p("path", {
|
|
2243
|
+
d: Ge,
|
|
2300
2244
|
fill: "#6987b8"
|
|
2301
2245
|
})
|
|
2302
|
-
}), /* @__PURE__ */
|
|
2246
|
+
}), /* @__PURE__ */ p(E, { children: e })]
|
|
2303
2247
|
}),
|
|
2304
|
-
/* @__PURE__ */
|
|
2248
|
+
/* @__PURE__ */ p("span", { className: J.spacing })
|
|
2305
2249
|
]
|
|
2306
2250
|
}) }),
|
|
2307
|
-
|
|
2308
|
-
|
|
2251
|
+
n,
|
|
2252
|
+
r
|
|
2309
2253
|
]
|
|
2310
2254
|
})
|
|
2311
|
-
}),
|
|
2255
|
+
}), Ln = ({ children: e, style: t }) => /* @__PURE__ */ p(Pn.Provider, {
|
|
2312
2256
|
value: !1,
|
|
2313
|
-
children: /* @__PURE__ */
|
|
2257
|
+
children: /* @__PURE__ */ p("tbody", {
|
|
2314
2258
|
style: t,
|
|
2315
2259
|
children: e
|
|
2316
2260
|
})
|
|
2317
|
-
}),
|
|
2261
|
+
}), Rn = {
|
|
2318
2262
|
common: "_common_15vhm_1",
|
|
2319
2263
|
td: "_td_15vhm_26",
|
|
2320
2264
|
th: "_th_15vhm_34"
|
|
2321
|
-
},
|
|
2322
|
-
let
|
|
2323
|
-
return /* @__PURE__ */
|
|
2324
|
-
className: `${
|
|
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}`,
|
|
2325
2269
|
style: t,
|
|
2326
|
-
children:
|
|
2270
|
+
children: r ?? e
|
|
2327
2271
|
});
|
|
2328
|
-
},
|
|
2272
|
+
}, Bn = { thead: "_thead_184mb_1" }, Vn = ({ children: e, style: t }) => /* @__PURE__ */ p(Pn.Provider, {
|
|
2329
2273
|
value: !0,
|
|
2330
|
-
children: /* @__PURE__ */
|
|
2331
|
-
className:
|
|
2274
|
+
children: /* @__PURE__ */ p("thead", {
|
|
2275
|
+
className: Bn.thead,
|
|
2332
2276
|
style: t,
|
|
2333
2277
|
children: e
|
|
2334
2278
|
})
|
|
2335
|
-
}),
|
|
2279
|
+
}), Hn = {
|
|
2336
2280
|
tr: "_tr_1l64j_1",
|
|
2337
2281
|
"has-row-header": "_has-row-header_1l64j_25"
|
|
2338
|
-
},
|
|
2339
|
-
let n =
|
|
2340
|
-
return /* @__PURE__ */
|
|
2341
|
-
className: `${
|
|
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"] : ""}`,
|
|
2342
2286
|
style: t,
|
|
2343
2287
|
children: e
|
|
2344
2288
|
});
|
|
2345
|
-
},
|
|
2346
|
-
wrapper: "
|
|
2347
|
-
header: "
|
|
2348
|
-
header__left: "
|
|
2349
|
-
caption: "
|
|
2350
|
-
header__right: "
|
|
2351
|
-
"copy-icon": "_copy-
|
|
2352
|
-
code: "
|
|
2353
|
-
"code-body": "_code-
|
|
2354
|
-
fallback: "
|
|
2355
|
-
},
|
|
2356
|
-
function
|
|
2357
|
-
return
|
|
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({
|
|
2358
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("."),
|
|
2359
2303
|
themes: ["vitesse-light", "vitesse-dark"]
|
|
2360
|
-
}))),
|
|
2304
|
+
}))), Wn;
|
|
2361
2305
|
}
|
|
2362
2306
|
//#endregion
|
|
2363
2307
|
//#region src/components/code/ElmShikiHighlighter.tsx
|
|
2364
|
-
var
|
|
2365
|
-
let [
|
|
2366
|
-
return
|
|
2367
|
-
|
|
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) => {
|
|
2368
2312
|
try {
|
|
2369
|
-
|
|
2313
|
+
a(r.codeToHtml(e, {
|
|
2370
2314
|
lang: t,
|
|
2371
2315
|
themes: {
|
|
2372
2316
|
dark: "vitesse-dark",
|
|
@@ -2378,94 +2322,97 @@ var Un = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2378
2322
|
}
|
|
2379
2323
|
}));
|
|
2380
2324
|
} catch {} finally {
|
|
2381
|
-
|
|
2325
|
+
o.current = !0, n?.(!0);
|
|
2382
2326
|
}
|
|
2383
2327
|
}).catch(() => {
|
|
2384
|
-
|
|
2328
|
+
o.current = !0, n?.(!0);
|
|
2385
2329
|
});
|
|
2386
2330
|
}, [
|
|
2387
2331
|
e,
|
|
2388
2332
|
t,
|
|
2389
2333
|
n
|
|
2390
|
-
]), /* @__PURE__ */
|
|
2391
|
-
className:
|
|
2334
|
+
]), /* @__PURE__ */ p("div", {
|
|
2335
|
+
className: Un.code,
|
|
2392
2336
|
style: r,
|
|
2393
|
-
children: /* @__PURE__ */
|
|
2337
|
+
children: /* @__PURE__ */ p("div", {
|
|
2394
2338
|
className: "shiki",
|
|
2395
|
-
dangerouslySetInnerHTML: { __html:
|
|
2339
|
+
dangerouslySetInnerHTML: { __html: i }
|
|
2396
2340
|
})
|
|
2397
2341
|
});
|
|
2398
|
-
},
|
|
2399
|
-
let [
|
|
2400
|
-
|
|
2401
|
-
|
|
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, _] = d(e), v = u(null), y = u(null), b = u(null);
|
|
2344
|
+
s(() => (b.current && clearTimeout(b.current), b.current = setTimeout(() => {
|
|
2345
|
+
_(e);
|
|
2346
|
+
}, 150), () => {
|
|
2347
|
+
b.current && clearTimeout(b.current);
|
|
2348
|
+
}), [e]), s(() => {
|
|
2349
|
+
let e = v.current;
|
|
2402
2350
|
if (!e) return;
|
|
2403
2351
|
let t = new IntersectionObserver(([e]) => {
|
|
2404
|
-
|
|
2352
|
+
h(e.isIntersecting);
|
|
2405
2353
|
});
|
|
2406
2354
|
return t.observe(e), () => t.disconnect();
|
|
2407
2355
|
}, []);
|
|
2408
|
-
let
|
|
2356
|
+
let x = a(() => {
|
|
2409
2357
|
navigator.clipboard.writeText(e).then(() => {
|
|
2410
|
-
|
|
2358
|
+
l(!0), y.current && clearTimeout(y.current), y.current = setTimeout(() => l(!1), 2e3);
|
|
2411
2359
|
});
|
|
2412
2360
|
}, [e]);
|
|
2413
|
-
return
|
|
2414
|
-
|
|
2415
|
-
}, []), /* @__PURE__ */
|
|
2416
|
-
ref:
|
|
2417
|
-
className:
|
|
2361
|
+
return s(() => () => {
|
|
2362
|
+
y.current && clearTimeout(y.current);
|
|
2363
|
+
}, []), /* @__PURE__ */ m("div", {
|
|
2364
|
+
ref: v,
|
|
2365
|
+
className: X.wrapper,
|
|
2418
2366
|
style: {
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
...o
|
|
2367
|
+
opacity: +!!f,
|
|
2368
|
+
...r
|
|
2422
2369
|
},
|
|
2423
|
-
children: [/* @__PURE__ */
|
|
2424
|
-
className:
|
|
2425
|
-
children: [/* @__PURE__ */
|
|
2426
|
-
className:
|
|
2427
|
-
children: [/* @__PURE__ */
|
|
2370
|
+
children: [/* @__PURE__ */ m("div", {
|
|
2371
|
+
className: X.header,
|
|
2372
|
+
children: [/* @__PURE__ */ m("div", {
|
|
2373
|
+
className: X.header__left,
|
|
2374
|
+
children: [/* @__PURE__ */ p(et, {
|
|
2428
2375
|
language: t,
|
|
2429
2376
|
size: 20
|
|
2430
|
-
}), /* @__PURE__ */
|
|
2431
|
-
className:
|
|
2432
|
-
children: /* @__PURE__ */
|
|
2377
|
+
}), /* @__PURE__ */ p("span", {
|
|
2378
|
+
className: X.caption,
|
|
2379
|
+
children: /* @__PURE__ */ p(E, { children: n ?? t })
|
|
2433
2380
|
})]
|
|
2434
|
-
}), /* @__PURE__ */
|
|
2435
|
-
className:
|
|
2436
|
-
children: /* @__PURE__ */
|
|
2437
|
-
className:
|
|
2438
|
-
onClick:
|
|
2439
|
-
children: /* @__PURE__ */
|
|
2381
|
+
}), /* @__PURE__ */ p("div", {
|
|
2382
|
+
className: X.header__right,
|
|
2383
|
+
children: /* @__PURE__ */ p("div", {
|
|
2384
|
+
className: X["copy-icon"],
|
|
2385
|
+
onClick: x,
|
|
2386
|
+
children: /* @__PURE__ */ p(C, {
|
|
2440
2387
|
size: "1.25em",
|
|
2441
|
-
d:
|
|
2442
|
-
|
|
2388
|
+
d: c ? he : ge,
|
|
2389
|
+
useThemeColor: c
|
|
2443
2390
|
})
|
|
2444
2391
|
})
|
|
2445
2392
|
})]
|
|
2446
|
-
}), /* @__PURE__ */
|
|
2447
|
-
className:
|
|
2448
|
-
children: [/* @__PURE__ */
|
|
2449
|
-
className:
|
|
2450
|
-
style: { opacity: +!!
|
|
2451
|
-
children: /* @__PURE__ */
|
|
2452
|
-
code:
|
|
2393
|
+
}), /* @__PURE__ */ m("div", {
|
|
2394
|
+
className: X.code,
|
|
2395
|
+
children: [/* @__PURE__ */ p("div", {
|
|
2396
|
+
className: X["code-body"],
|
|
2397
|
+
style: { opacity: +!!i },
|
|
2398
|
+
children: /* @__PURE__ */ p(Kn, {
|
|
2399
|
+
code: g,
|
|
2453
2400
|
language: t,
|
|
2454
|
-
onRendered:
|
|
2401
|
+
onRendered: o
|
|
2455
2402
|
})
|
|
2456
|
-
}), /* @__PURE__ */
|
|
2457
|
-
className:
|
|
2458
|
-
style: { opacity: +!
|
|
2459
|
-
children: /* @__PURE__ */
|
|
2403
|
+
}), /* @__PURE__ */ p("div", {
|
|
2404
|
+
className: X.fallback,
|
|
2405
|
+
style: { opacity: +!i },
|
|
2406
|
+
children: /* @__PURE__ */ p(w, { size: "48px" })
|
|
2460
2407
|
})]
|
|
2461
2408
|
})]
|
|
2462
2409
|
});
|
|
2463
|
-
},
|
|
2464
|
-
let [r,
|
|
2465
|
-
|
|
2410
|
+
}, Jn = { katex: "_katex_1a1aj_1" }, Yn = ({ expression: e, block: t = !1, style: n }) => {
|
|
2411
|
+
let [r, i] = d();
|
|
2412
|
+
s(() => {
|
|
2466
2413
|
import("katex").then(({ renderToString: n }) => {
|
|
2467
2414
|
try {
|
|
2468
|
-
|
|
2415
|
+
i(n(e, {
|
|
2469
2416
|
displayMode: t,
|
|
2470
2417
|
output: "mathml"
|
|
2471
2418
|
}));
|
|
@@ -2474,126 +2421,61 @@ var Un = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2474
2421
|
}
|
|
2475
2422
|
}).catch(() => {});
|
|
2476
2423
|
}, [e, t]);
|
|
2477
|
-
let
|
|
2478
|
-
return t ?
|
|
2479
|
-
className:
|
|
2480
|
-
style: {
|
|
2481
|
-
marginBlock: "3rem",
|
|
2482
|
-
...n
|
|
2483
|
-
},
|
|
2484
|
-
dangerouslySetInnerHTML: r ? { __html: r } : void 0
|
|
2485
|
-
}) : /* @__PURE__ */ u("span", {
|
|
2486
|
-
className: o,
|
|
2424
|
+
let a = `${Jn.katex}`;
|
|
2425
|
+
return p(t ? "div" : "span", {
|
|
2426
|
+
className: a,
|
|
2487
2427
|
style: n,
|
|
2488
2428
|
dangerouslySetInnerHTML: r ? { __html: r } : void 0
|
|
2489
2429
|
});
|
|
2490
|
-
},
|
|
2491
|
-
mermaid: "_mermaid_1jn2f_1",
|
|
2492
|
-
raw: "_raw_1jn2f_10",
|
|
2493
|
-
rendered: "_rendered_1jn2f_14"
|
|
2494
|
-
}, Y = {
|
|
2495
|
-
instance: null,
|
|
2496
|
-
svgCache: /* @__PURE__ */ new Map()
|
|
2497
|
-
}, Jn = 0;
|
|
2498
|
-
function Yn(e) {
|
|
2499
|
-
let t = 0;
|
|
2500
|
-
for (let n = 0; n < e.length; n++) {
|
|
2501
|
-
let r = e.charCodeAt(n);
|
|
2502
|
-
t = (t << 5) - t + r, t &= t;
|
|
2503
|
-
}
|
|
2504
|
-
return `mermaid-${t}`;
|
|
2505
|
-
}
|
|
2506
|
-
var Xn = ({ code: e, style: t }) => {
|
|
2507
|
-
let n = s(null), [r, a] = c(!1);
|
|
2508
|
-
return i(() => {
|
|
2509
|
-
if (!n.current) return;
|
|
2510
|
-
let t = !1;
|
|
2511
|
-
return a(!1), (async () => {
|
|
2512
|
-
try {
|
|
2513
|
-
let r = Yn(e);
|
|
2514
|
-
if (Y.svgCache.has(r)) {
|
|
2515
|
-
!t && n.current && (n.current.innerHTML = Y.svgCache.get(r), a(!0));
|
|
2516
|
-
return;
|
|
2517
|
-
}
|
|
2518
|
-
if (!Y.instance) {
|
|
2519
|
-
let { default: e } = await import("mermaid");
|
|
2520
|
-
e.initialize({
|
|
2521
|
-
startOnLoad: !1,
|
|
2522
|
-
theme: "base",
|
|
2523
|
-
themeVariables: {
|
|
2524
|
-
mainBkg: "#fbfcff",
|
|
2525
|
-
lineColor: "#606875",
|
|
2526
|
-
primaryColor: "#6c7483",
|
|
2527
|
-
secondaryColor: "#e9dec5",
|
|
2528
|
-
tertiaryColor: "#f5f6f8",
|
|
2529
|
-
tertiaryBorderColor: "#e2d4b2",
|
|
2530
|
-
tertiaryTextColor: "#b69545",
|
|
2531
|
-
signalColor: "#949ba7"
|
|
2532
|
-
}
|
|
2533
|
-
}), Y.instance = e;
|
|
2534
|
-
}
|
|
2535
|
-
let i = `mermaid-react-${++Jn}`, { svg: o } = await Y.instance.render(i, e);
|
|
2536
|
-
Y.svgCache.set(r, o), !t && n.current && (n.current.innerHTML = o, a(!0));
|
|
2537
|
-
} catch (r) {
|
|
2538
|
-
console.error("Mermaid render error:", r), !t && n.current && (n.current.innerHTML = `<pre>${e}</pre>`, a(!0));
|
|
2539
|
-
}
|
|
2540
|
-
})(), () => {
|
|
2541
|
-
t = !0;
|
|
2542
|
-
};
|
|
2543
|
-
}, [e]), /* @__PURE__ */ u("div", {
|
|
2544
|
-
ref: n,
|
|
2545
|
-
className: `${qn.mermaid} ${r ? qn.rendered : qn.raw}`,
|
|
2546
|
-
style: t
|
|
2547
|
-
});
|
|
2548
|
-
}, X = {
|
|
2430
|
+
}, Z = {
|
|
2549
2431
|
"color-bg": "_color-bg_yiibu_1",
|
|
2550
2432
|
text: "_text_yiibu_17"
|
|
2551
|
-
},
|
|
2552
|
-
let [
|
|
2433
|
+
}, Xn = ({ color: e, style: t }) => {
|
|
2434
|
+
let [n, r] = d(!1), i = u(null), o = y(e), { hue: s, saturation: c, lightness: l } = v(e), h = b(o), g = `rgb(${o.red}, ${o.green}, ${o.blue})`, _ = `hsl(${Math.floor(s)}, ${Math.floor(c * 100)}%, ${Math.floor(l * 100)}%)`, x = a((e) => {
|
|
2553
2435
|
navigator.clipboard.writeText(e).then(() => {
|
|
2554
|
-
|
|
2436
|
+
r(!0), i.current && clearTimeout(i.current), i.current = setTimeout(() => r(!1), 1500);
|
|
2555
2437
|
});
|
|
2556
2438
|
}, []);
|
|
2557
|
-
return /* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ p("div", {
|
|
2558
2440
|
style: {
|
|
2559
2441
|
"--color": e,
|
|
2560
2442
|
...t
|
|
2561
2443
|
},
|
|
2562
|
-
children: /* @__PURE__ */
|
|
2563
|
-
original: /* @__PURE__ */
|
|
2564
|
-
className:
|
|
2444
|
+
children: /* @__PURE__ */ p(En, {
|
|
2445
|
+
original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2446
|
+
className: Z["color-bg"],
|
|
2565
2447
|
style: { "--background-color": e },
|
|
2566
|
-
onClick: () => x(
|
|
2567
|
-
children:
|
|
2568
|
-
d:
|
|
2448
|
+
onClick: () => x(h),
|
|
2449
|
+
children: n && /* @__PURE__ */ p(C, {
|
|
2450
|
+
d: ue,
|
|
2569
2451
|
size: "1em",
|
|
2570
2452
|
color: "white"
|
|
2571
2453
|
})
|
|
2572
|
-
}), /* @__PURE__ */
|
|
2573
|
-
className:
|
|
2574
|
-
onClick: () => x(
|
|
2575
|
-
children:
|
|
2454
|
+
}), /* @__PURE__ */ p("div", {
|
|
2455
|
+
className: Z.text,
|
|
2456
|
+
onClick: () => x(h),
|
|
2457
|
+
children: h
|
|
2576
2458
|
})] }),
|
|
2577
|
-
tooltip: /* @__PURE__ */
|
|
2578
|
-
/* @__PURE__ */
|
|
2579
|
-
className:
|
|
2580
|
-
onClick: () => x(
|
|
2581
|
-
children:
|
|
2459
|
+
tooltip: /* @__PURE__ */ m(f, { children: [
|
|
2460
|
+
/* @__PURE__ */ p("div", {
|
|
2461
|
+
className: Z.text,
|
|
2462
|
+
onClick: () => x(h),
|
|
2463
|
+
children: h
|
|
2582
2464
|
}),
|
|
2583
|
-
/* @__PURE__ */
|
|
2584
|
-
className:
|
|
2585
|
-
onClick: () => x(
|
|
2586
|
-
children:
|
|
2465
|
+
/* @__PURE__ */ p("div", {
|
|
2466
|
+
className: Z.text,
|
|
2467
|
+
onClick: () => x(g),
|
|
2468
|
+
children: g
|
|
2587
2469
|
}),
|
|
2588
|
-
/* @__PURE__ */
|
|
2589
|
-
className:
|
|
2590
|
-
onClick: () => x(
|
|
2591
|
-
children:
|
|
2470
|
+
/* @__PURE__ */ p("div", {
|
|
2471
|
+
className: Z.text,
|
|
2472
|
+
onClick: () => x(_),
|
|
2473
|
+
children: _
|
|
2592
2474
|
})
|
|
2593
2475
|
] })
|
|
2594
2476
|
})
|
|
2595
2477
|
});
|
|
2596
|
-
},
|
|
2478
|
+
}, Zn = {
|
|
2597
2479
|
container: "_container_a7c06_1",
|
|
2598
2480
|
"row-container": "_row-container_a7c06_9",
|
|
2599
2481
|
"color-name": "_color-name_a7c06_17"
|
|
@@ -2611,28 +2493,28 @@ var Xn = ({ code: e, style: t }) => {
|
|
|
2611
2493
|
.2,
|
|
2612
2494
|
.25,
|
|
2613
2495
|
.3
|
|
2614
|
-
], $n = ({ colors: e, style: t }) => /* @__PURE__ */
|
|
2615
|
-
className:
|
|
2496
|
+
], $n = ({ colors: e, style: t }) => /* @__PURE__ */ p("div", {
|
|
2497
|
+
className: Zn.container,
|
|
2616
2498
|
style: t,
|
|
2617
|
-
children: e.map((e) => /* @__PURE__ */
|
|
2618
|
-
className:
|
|
2619
|
-
children: [/* @__PURE__ */
|
|
2620
|
-
className:
|
|
2499
|
+
children: e.map((e) => /* @__PURE__ */ m("div", {
|
|
2500
|
+
className: Zn["row-container"],
|
|
2501
|
+
children: [/* @__PURE__ */ p("div", {
|
|
2502
|
+
className: Zn["color-name"],
|
|
2621
2503
|
style: { "--color": e.code },
|
|
2622
2504
|
children: e.name
|
|
2623
|
-
}), Qn.map((t) => /* @__PURE__ */
|
|
2505
|
+
}), Qn.map((t) => /* @__PURE__ */ p(Xn, { color: h(t, e.code) }, t))]
|
|
2624
2506
|
}, e.name))
|
|
2625
2507
|
}), Q = {
|
|
2626
|
-
palette: "
|
|
2627
|
-
header: "
|
|
2628
|
-
input: "
|
|
2629
|
-
body: "
|
|
2630
|
-
"empty-result": "_empty-
|
|
2631
|
-
command: "
|
|
2632
|
-
"command-selected": "_command-
|
|
2633
|
-
"command-icon": "_command-
|
|
2634
|
-
tag: "
|
|
2635
|
-
footer: "
|
|
2508
|
+
palette: "_palette_1u43p_1",
|
|
2509
|
+
header: "_header_1u43p_11",
|
|
2510
|
+
input: "_input_1u43p_31",
|
|
2511
|
+
body: "_body_1u43p_43",
|
|
2512
|
+
"empty-result": "_empty-result_1u43p_60",
|
|
2513
|
+
command: "_command_1u43p_71",
|
|
2514
|
+
"command-selected": "_command-selected_1u43p_99",
|
|
2515
|
+
"command-icon": "_command-icon_1u43p_104",
|
|
2516
|
+
tag: "_tag_1u43p_108",
|
|
2517
|
+
footer: "_footer_1u43p_119"
|
|
2636
2518
|
}, er = {
|
|
2637
2519
|
brown: "#a17c5b",
|
|
2638
2520
|
crimson: "#c56565",
|
|
@@ -2649,74 +2531,74 @@ function tr(e, t) {
|
|
|
2649
2531
|
let n = t.toLowerCase();
|
|
2650
2532
|
return e.filter((e) => e.label.toLowerCase().includes(n) || e.description?.toLowerCase().includes(n) || e.keywords?.some((e) => e.toLowerCase().includes(n)));
|
|
2651
2533
|
}
|
|
2652
|
-
var nr = ({ commands: e, onCommandInvoked: t, style:
|
|
2653
|
-
let [
|
|
2654
|
-
|
|
2655
|
-
|
|
2534
|
+
var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
2535
|
+
let [r, i] = d(""), [o, c] = d([]), [l, f] = d(null), h = u(null);
|
|
2536
|
+
s(() => {
|
|
2537
|
+
h.current?.focus();
|
|
2656
2538
|
}, []);
|
|
2657
|
-
let
|
|
2539
|
+
let g = a((t) => {
|
|
2658
2540
|
let n = t.target.value;
|
|
2659
|
-
|
|
2541
|
+
i(n);
|
|
2660
2542
|
let r = tr(e, n);
|
|
2661
|
-
|
|
2662
|
-
}, [e]), v =
|
|
2543
|
+
c(r), f(r.length > 0 ? 0 : null);
|
|
2544
|
+
}, [e]), v = a((e) => {
|
|
2663
2545
|
if (e === null) return;
|
|
2664
|
-
let n =
|
|
2546
|
+
let n = o[e];
|
|
2665
2547
|
n && (n.onInvoke?.(), t?.(n));
|
|
2666
|
-
}, [
|
|
2667
|
-
return
|
|
2548
|
+
}, [o, t]);
|
|
2549
|
+
return s(() => {
|
|
2668
2550
|
let e = (e) => {
|
|
2669
|
-
e.key === "ArrowDown" || e.key === "Tab" ? (e.preventDefault(),
|
|
2551
|
+
e.key === "ArrowDown" || e.key === "Tab" ? (e.preventDefault(), f((e) => e === null ? 0 : e < o.length - 1 ? e + 1 : e)) : e.key === "ArrowUp" ? (e.preventDefault(), f((e) => e === null ? 0 : e > 0 ? e - 1 : 0)) : e.key === "Enter" && (e.preventDefault(), v(l));
|
|
2670
2552
|
};
|
|
2671
2553
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
2672
2554
|
}, [
|
|
2673
2555
|
v,
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
]), /* @__PURE__ */
|
|
2556
|
+
l,
|
|
2557
|
+
o.length
|
|
2558
|
+
]), /* @__PURE__ */ m("div", {
|
|
2677
2559
|
className: Q.palette,
|
|
2678
2560
|
style: {
|
|
2679
2561
|
"--height": "500px",
|
|
2680
2562
|
"--width": "800px",
|
|
2681
|
-
...
|
|
2563
|
+
...n
|
|
2682
2564
|
},
|
|
2683
2565
|
children: [
|
|
2684
|
-
/* @__PURE__ */
|
|
2566
|
+
/* @__PURE__ */ m("header", {
|
|
2685
2567
|
className: Q.header,
|
|
2686
|
-
children: [/* @__PURE__ */
|
|
2687
|
-
ref:
|
|
2568
|
+
children: [/* @__PURE__ */ p(C, { d: ve }), /* @__PURE__ */ p("input", {
|
|
2569
|
+
ref: h,
|
|
2688
2570
|
className: Q.input,
|
|
2689
|
-
value:
|
|
2690
|
-
onChange:
|
|
2571
|
+
value: r,
|
|
2572
|
+
onChange: g,
|
|
2691
2573
|
type: "text",
|
|
2692
2574
|
inputMode: "text"
|
|
2693
2575
|
})]
|
|
2694
2576
|
}),
|
|
2695
|
-
/* @__PURE__ */
|
|
2577
|
+
/* @__PURE__ */ p("div", {
|
|
2696
2578
|
className: Q.body,
|
|
2697
|
-
children:
|
|
2579
|
+
children: o.length === 0 ? /* @__PURE__ */ p("div", {
|
|
2698
2580
|
className: Q["empty-result"],
|
|
2699
|
-
children: /* @__PURE__ */
|
|
2700
|
-
}) :
|
|
2701
|
-
className: `${Q.command} ${t ===
|
|
2581
|
+
children: /* @__PURE__ */ p(E, { children: "search anything..." })
|
|
2582
|
+
}) : o.map((e, t) => /* @__PURE__ */ m("button", {
|
|
2583
|
+
className: `${Q.command} ${t === l ? Q["command-selected"] : ""}`,
|
|
2702
2584
|
onClick: () => {
|
|
2703
|
-
|
|
2585
|
+
f(t), v(t);
|
|
2704
2586
|
},
|
|
2705
2587
|
children: [
|
|
2706
|
-
e.icon ? /* @__PURE__ */
|
|
2588
|
+
e.icon ? /* @__PURE__ */ p("img", {
|
|
2707
2589
|
className: Q["command-icon"],
|
|
2708
2590
|
src: e.icon,
|
|
2709
2591
|
alt: e.label
|
|
2710
|
-
}) : /* @__PURE__ */
|
|
2711
|
-
d:
|
|
2592
|
+
}) : /* @__PURE__ */ p(C, {
|
|
2593
|
+
d: ve,
|
|
2712
2594
|
size: "1rem"
|
|
2713
2595
|
}),
|
|
2714
|
-
e.tag ? /* @__PURE__ */
|
|
2596
|
+
e.tag ? /* @__PURE__ */ p("div", {
|
|
2715
2597
|
className: Q.tag,
|
|
2716
|
-
style: { "--tag-color":
|
|
2598
|
+
style: { "--tag-color": _(-.3, er[e.tag.color]) },
|
|
2717
2599
|
children: e.tag.name
|
|
2718
|
-
}) : /* @__PURE__ */
|
|
2719
|
-
/* @__PURE__ */
|
|
2600
|
+
}) : /* @__PURE__ */ p("div", { className: Q.tag }),
|
|
2601
|
+
/* @__PURE__ */ p(E, {
|
|
2720
2602
|
style: {
|
|
2721
2603
|
whiteSpace: "nowrap",
|
|
2722
2604
|
overflow: "hidden",
|
|
@@ -2725,7 +2607,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: r }) => {
|
|
|
2725
2607
|
},
|
|
2726
2608
|
children: e.label
|
|
2727
2609
|
}),
|
|
2728
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ p(E, {
|
|
2729
2611
|
style: {
|
|
2730
2612
|
opacity: .4,
|
|
2731
2613
|
whiteSpace: "nowrap",
|
|
@@ -2734,92 +2616,392 @@ var nr = ({ commands: e, onCommandInvoked: t, style: r }) => {
|
|
|
2734
2616
|
},
|
|
2735
2617
|
children: e.description ?? "-"
|
|
2736
2618
|
}),
|
|
2737
|
-
/* @__PURE__ */
|
|
2619
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(C, { d: je }) })
|
|
2738
2620
|
]
|
|
2739
2621
|
}, e.id))
|
|
2740
2622
|
}),
|
|
2741
|
-
/* @__PURE__ */
|
|
2623
|
+
/* @__PURE__ */ m("footer", {
|
|
2742
2624
|
className: Q.footer,
|
|
2743
|
-
children: [/* @__PURE__ */
|
|
2625
|
+
children: [/* @__PURE__ */ p(E, {
|
|
2744
2626
|
kbd: !0,
|
|
2745
2627
|
children: "Esc"
|
|
2746
|
-
}), /* @__PURE__ */
|
|
2628
|
+
}), /* @__PURE__ */ p(E, { children: "Close" })]
|
|
2747
2629
|
})
|
|
2748
2630
|
]
|
|
2749
2631
|
});
|
|
2750
2632
|
}, rr = {
|
|
2751
2633
|
"jarkup-body": "_jarkup-body_jsvhx_1",
|
|
2752
2634
|
"unsupported-block": "_unsupported-block_jsvhx_5"
|
|
2753
|
-
}, ir = ({ jsonComponents: e, style: t }) => /* @__PURE__ */
|
|
2635
|
+
}, ir = ({ jsonComponents: e, style: t }) => /* @__PURE__ */ p("div", {
|
|
2754
2636
|
className: rr["jarkup-body"],
|
|
2755
2637
|
style: t,
|
|
2756
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2638
|
+
children: e.map((e, t) => /* @__PURE__ */ p("div", {
|
|
2757
2639
|
className: rr["unsupported-block"],
|
|
2758
|
-
children: /* @__PURE__ */
|
|
2640
|
+
children: /* @__PURE__ */ p("code", { children: JSON.stringify(e, null, 2) })
|
|
2759
2641
|
}, t))
|
|
2760
|
-
}), ar = {
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
})
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2642
|
+
}), ar = {
|
|
2643
|
+
"jarkup-body": "_jarkup-body_1rlbi_1",
|
|
2644
|
+
"column-list": "_column-list_1rlbi_9",
|
|
2645
|
+
column: "_column_1rlbi_9"
|
|
2646
|
+
}, 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 = {
|
|
2647
|
+
Text: (e, t, n, r) => {
|
|
2648
|
+
let i = e.id ?? n, a = e.props;
|
|
2649
|
+
return a.katex ? /* @__PURE__ */ p(Yn, {
|
|
2650
|
+
expression: a.text,
|
|
2651
|
+
block: !1
|
|
2652
|
+
}, i) : /* @__PURE__ */ p(E, {
|
|
2653
|
+
color: a.color,
|
|
2654
|
+
backgroundColor: a.backgroundColor,
|
|
2655
|
+
bold: a.bold,
|
|
2656
|
+
italic: a.italic,
|
|
2657
|
+
underline: a.underline,
|
|
2658
|
+
strikethrough: a.strikethrough,
|
|
2659
|
+
code: a.code,
|
|
2660
|
+
ruby: a.ruby,
|
|
2661
|
+
href: a.href,
|
|
2662
|
+
favicon: a.favicon,
|
|
2663
|
+
children: a.text
|
|
2664
|
+
}, i);
|
|
2665
|
+
},
|
|
2666
|
+
Icon: (e, t, n, r) => {
|
|
2667
|
+
let i = e.id ?? n;
|
|
2668
|
+
return /* @__PURE__ */ p(S, {
|
|
2669
|
+
src: e.props.src,
|
|
2670
|
+
alt: e.props.alt
|
|
2671
|
+
}, i);
|
|
2672
|
+
},
|
|
2673
|
+
Fragment: (e, n, r, i) => {
|
|
2674
|
+
let a = e.id ?? r;
|
|
2675
|
+
return /* @__PURE__ */ p(t.Fragment, { children: n(e.slots.default) }, a);
|
|
2676
|
+
},
|
|
2677
|
+
Heading: (e, t, n, r) => {
|
|
2678
|
+
let i = e.id ?? n;
|
|
2679
|
+
return /* @__PURE__ */ p(O, {
|
|
2680
|
+
level: e.props.level,
|
|
2681
|
+
id: Ye(sr(e.slots.default)),
|
|
2682
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2683
|
+
children: t(e.slots.default)
|
|
2684
|
+
}, i);
|
|
2685
|
+
},
|
|
2686
|
+
Paragraph: (e, t, n, r) => {
|
|
2687
|
+
let i = e.id ?? n;
|
|
2688
|
+
return /* @__PURE__ */ p(St, {
|
|
2689
|
+
backgroundColor: e.props?.backgroundColor,
|
|
2690
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2691
|
+
children: t(e.slots.default)
|
|
2692
|
+
}, i);
|
|
2693
|
+
},
|
|
2694
|
+
ListItem: (e, t, n, r) => {
|
|
2695
|
+
let i = e.id ?? n;
|
|
2696
|
+
return /* @__PURE__ */ p("li", { children: t(e.slots.default) }, i);
|
|
2697
|
+
},
|
|
2698
|
+
List: (e, t, n, r) => {
|
|
2699
|
+
let i = e.id ?? n;
|
|
2700
|
+
return /* @__PURE__ */ p(Ft, {
|
|
2701
|
+
listStyle: e.props?.listStyle === "unordered" ? "unordered" : "ordered",
|
|
2702
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2703
|
+
children: t(e.slots.default)
|
|
2704
|
+
}, i);
|
|
2705
|
+
},
|
|
2706
|
+
BlockQuote: (e, t, n, r) => {
|
|
2707
|
+
let i = e.id ?? n;
|
|
2708
|
+
return /* @__PURE__ */ p(Ct, {
|
|
2709
|
+
cite: e.props?.cite,
|
|
2710
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2711
|
+
children: t(e.slots.default)
|
|
2712
|
+
}, i);
|
|
2713
|
+
},
|
|
2714
|
+
Callout: (e, t, n, r) => {
|
|
2715
|
+
let i = e.id ?? n;
|
|
2716
|
+
return /* @__PURE__ */ p(Et, {
|
|
2717
|
+
type: e.props?.type,
|
|
2718
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2719
|
+
children: t(e.slots.default)
|
|
2720
|
+
}, i);
|
|
2721
|
+
},
|
|
2722
|
+
Divider: (e, t, n, r) => {
|
|
2723
|
+
let i = e.id ?? n;
|
|
2724
|
+
return /* @__PURE__ */ p(Ot, { style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0 }, i);
|
|
2725
|
+
},
|
|
2726
|
+
Toggle: (e, t, n, r) => {
|
|
2727
|
+
let i = e.id ?? n;
|
|
2728
|
+
return /* @__PURE__ */ p(Nn, {
|
|
2729
|
+
summaryContent: t(e.slots.summary),
|
|
2730
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2731
|
+
children: t(e.slots.default)
|
|
2732
|
+
}, i);
|
|
2733
|
+
},
|
|
2734
|
+
Bookmark: (e, t, n, r) => {
|
|
2735
|
+
let i = e.id ?? n;
|
|
2736
|
+
return /* @__PURE__ */ p(Jt, {
|
|
2737
|
+
url: e.props.url,
|
|
2738
|
+
title: e.props.title,
|
|
2739
|
+
description: e.props.description,
|
|
2740
|
+
image: e.props.image,
|
|
2741
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2742
|
+
}, i);
|
|
2743
|
+
},
|
|
2744
|
+
File: (e, t, n, r) => {
|
|
2745
|
+
let i = e.id ?? n;
|
|
2746
|
+
return /* @__PURE__ */ p(qt, {
|
|
2747
|
+
src: e.props.src,
|
|
2748
|
+
name: e.props.name,
|
|
2749
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2750
|
+
}, i);
|
|
2751
|
+
},
|
|
2752
|
+
Image: (e, t, n, r) => {
|
|
2753
|
+
let i = e.id ?? n;
|
|
2754
|
+
return /* @__PURE__ */ p(M, {
|
|
2755
|
+
src: e.props.src,
|
|
2756
|
+
alt: e.props.alt,
|
|
2757
|
+
width: e.props.width,
|
|
2758
|
+
height: e.props.height,
|
|
2759
|
+
block: !0,
|
|
2760
|
+
enableModal: !0,
|
|
2761
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2762
|
+
}, i);
|
|
2763
|
+
},
|
|
2764
|
+
CodeBlock: (e, t, n, r) => {
|
|
2765
|
+
let i = e.id ?? n;
|
|
2766
|
+
return /* @__PURE__ */ p(qn, {
|
|
2767
|
+
code: e.props.code,
|
|
2768
|
+
language: e.props.language,
|
|
2769
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2770
|
+
}, i);
|
|
2771
|
+
},
|
|
2772
|
+
Katex: (e, t, n, r) => {
|
|
2773
|
+
let i = e.id ?? n;
|
|
2774
|
+
return /* @__PURE__ */ p(Yn, {
|
|
2775
|
+
expression: e.props.expression,
|
|
2776
|
+
block: !0,
|
|
2777
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2778
|
+
}, i);
|
|
2779
|
+
},
|
|
2780
|
+
Mermaid: (e, t, r, i) => {
|
|
2781
|
+
let a = e.id ?? r;
|
|
2782
|
+
return /* @__PURE__ */ p(n, {
|
|
2783
|
+
fallback: /* @__PURE__ */ p(nn, {}),
|
|
2784
|
+
children: /* @__PURE__ */ p(or, {
|
|
2785
|
+
code: e.props.code,
|
|
2786
|
+
style: r === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2787
|
+
})
|
|
2788
|
+
}, a);
|
|
2789
|
+
},
|
|
2790
|
+
Tab: (e, t, n, r) => [],
|
|
2791
|
+
Tabs: (e, t, n, r) => {
|
|
2792
|
+
let i = e.id ?? n, a = [], o = [];
|
|
2793
|
+
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) }));
|
|
2794
|
+
return /* @__PURE__ */ p(Mn, {
|
|
2795
|
+
tabLabels: a,
|
|
2796
|
+
tabContents: o
|
|
2797
|
+
}, i);
|
|
2798
|
+
},
|
|
2799
|
+
Table: (e, t, n, r) => {
|
|
2800
|
+
let i = e.id ?? n;
|
|
2801
|
+
return /* @__PURE__ */ p(In, {
|
|
2802
|
+
caption: e.props?.caption,
|
|
2803
|
+
hasRowHeader: e.props?.hasRowHeader,
|
|
2804
|
+
header: e.slots.header ? /* @__PURE__ */ p(Vn, { children: t(e.slots.header) }) : void 0,
|
|
2805
|
+
body: /* @__PURE__ */ p(Ln, { children: t(e.slots.body) }),
|
|
2806
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2807
|
+
}, i);
|
|
2808
|
+
},
|
|
2809
|
+
TableRow: (e, t, n, r) => {
|
|
2810
|
+
let i = e.id ?? n;
|
|
2811
|
+
return /* @__PURE__ */ p(Y, { children: t(e.slots.default) }, i);
|
|
2812
|
+
},
|
|
2813
|
+
TableCell: (e, t, n, r) => {
|
|
2814
|
+
let i = e.id ?? n;
|
|
2815
|
+
return /* @__PURE__ */ p(zn, { children: t(e.slots.default) }, i);
|
|
2816
|
+
},
|
|
2817
|
+
ColumnList: (e, t, n, r) => {
|
|
2818
|
+
let i = e.id ?? n;
|
|
2819
|
+
return /* @__PURE__ */ p("div", {
|
|
2820
|
+
className: ar["column-list"],
|
|
2821
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2822
|
+
children: t(e.slots.default)
|
|
2823
|
+
}, i);
|
|
2824
|
+
},
|
|
2825
|
+
Column: (e, t, n, r) => {
|
|
2826
|
+
let i = e.id ?? n;
|
|
2827
|
+
return /* @__PURE__ */ p("div", {
|
|
2828
|
+
className: ar.column,
|
|
2829
|
+
style: {
|
|
2830
|
+
"--width-ratio": e.props?.widthRatio ?? 1,
|
|
2831
|
+
width: e.props?.widthRatio ? `${e.props.widthRatio * 100}%` : void 0,
|
|
2832
|
+
...n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2833
|
+
},
|
|
2834
|
+
children: t(e.slots.default)
|
|
2835
|
+
}, i);
|
|
2836
|
+
},
|
|
2837
|
+
Unsupported: (e, t, n, r) => {
|
|
2838
|
+
let i = e.id ?? n;
|
|
2839
|
+
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(on, {
|
|
2840
|
+
details: e.props?.details ?? `Unsupported component type: ${e.type}`,
|
|
2841
|
+
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2842
|
+
}, i);
|
|
2843
|
+
}
|
|
2844
|
+
}, lr = ({ jsonComponents: e, skipUnsupportedComponentWarning: t = !1, renderFunctionMap: n, style: r }) => {
|
|
2845
|
+
let i = {
|
|
2846
|
+
...cr,
|
|
2847
|
+
...n
|
|
2848
|
+
}, a = (e) => e.map((e, n) => {
|
|
2849
|
+
let o = e.id ?? n, s = i[e.type];
|
|
2850
|
+
return s ? s(e, a, n, {
|
|
2851
|
+
skipUnsupportedComponentWarning: t,
|
|
2852
|
+
style: r
|
|
2853
|
+
}) : t ? null : /* @__PURE__ */ p(on, { details: `Unsupported component type: ${e.type}` }, o);
|
|
2854
|
+
});
|
|
2855
|
+
return /* @__PURE__ */ p("div", {
|
|
2856
|
+
className: ar["jarkup-body"],
|
|
2857
|
+
style: {
|
|
2858
|
+
"--elmethis-margin-block-start": r?.["--elmethis-margin-block-start"] ?? "2.5rem",
|
|
2859
|
+
...r
|
|
2860
|
+
},
|
|
2861
|
+
children: a(e)
|
|
2862
|
+
});
|
|
2863
|
+
}, ur = { "markdown-body": "_markdown-body_130yx_1" }, dr = {
|
|
2864
|
+
blockquote: (e, t, n) => !e.tokens || e.tokens.length === 0 ? null : /* @__PURE__ */ p(Ct, { children: t(e.tokens.flatMap((e) => e.type === "paragraph" && e.tokens ? e.tokens : [e])) }, n),
|
|
2865
|
+
br: (e, t, n) => /* @__PURE__ */ p("br", {}, n),
|
|
2866
|
+
checkbox: (e, t, n) => /* @__PURE__ */ p(sn, {
|
|
2867
|
+
label: e.raw,
|
|
2868
|
+
checked: e.checked
|
|
2869
|
+
}, n),
|
|
2870
|
+
code: (e, t, n) => /* @__PURE__ */ p(qn, {
|
|
2871
|
+
code: e.text.trim(),
|
|
2872
|
+
language: e.lang
|
|
2873
|
+
}, n),
|
|
2874
|
+
codespan: (e, t, n) => /* @__PURE__ */ p(E, {
|
|
2875
|
+
code: !0,
|
|
2876
|
+
children: e.text
|
|
2877
|
+
}, n),
|
|
2878
|
+
def: () => null,
|
|
2879
|
+
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(E, {
|
|
2880
|
+
strikethrough: !0,
|
|
2881
|
+
children: t(e.tokens)
|
|
2882
|
+
}, n) : /* @__PURE__ */ p(E, {
|
|
2883
|
+
strikethrough: !0,
|
|
2884
|
+
children: e.text
|
|
2885
|
+
}, n),
|
|
2886
|
+
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(E, {
|
|
2887
|
+
italic: !0,
|
|
2888
|
+
children: t(e.tokens)
|
|
2889
|
+
}, n) : /* @__PURE__ */ p(E, {
|
|
2890
|
+
italic: !0,
|
|
2891
|
+
children: e.text
|
|
2892
|
+
}, n),
|
|
2893
|
+
escape: () => null,
|
|
2894
|
+
heading: (e, t, n) => {
|
|
2895
|
+
let r = e.depth;
|
|
2896
|
+
return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(O, {
|
|
2897
|
+
level: r,
|
|
2898
|
+
children: t(e.tokens)
|
|
2899
|
+
}, n) : /* @__PURE__ */ p(O, {
|
|
2900
|
+
level: r,
|
|
2901
|
+
text: e.text
|
|
2902
|
+
}, n);
|
|
2903
|
+
},
|
|
2904
|
+
hr: (e, t, n) => /* @__PURE__ */ p(Ot, {}, n),
|
|
2905
|
+
html: () => null,
|
|
2906
|
+
image: (e, t, n) => /* @__PURE__ */ p(M, {
|
|
2907
|
+
block: !0,
|
|
2908
|
+
enableModal: !0,
|
|
2909
|
+
src: e.href,
|
|
2910
|
+
alt: e.text
|
|
2911
|
+
}, n),
|
|
2912
|
+
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(E, {
|
|
2913
|
+
href: e.href,
|
|
2914
|
+
children: t(e.tokens)
|
|
2915
|
+
}, n) : /* @__PURE__ */ p(E, {
|
|
2916
|
+
href: e.href,
|
|
2917
|
+
children: e.text
|
|
2918
|
+
}, n),
|
|
2919
|
+
list: (e, t, n) => {
|
|
2920
|
+
let r = e.items.map((e, n) => /* @__PURE__ */ p("li", { children: t(e.tokens) }, n));
|
|
2921
|
+
return /* @__PURE__ */ p(Ft, {
|
|
2922
|
+
listStyle: e.ordered ? "ordered" : "unordered",
|
|
2923
|
+
children: r
|
|
2924
|
+
}, n);
|
|
2925
|
+
},
|
|
2926
|
+
list_item: (e, t, n) => /* @__PURE__ */ p("li", { children: e.tokens && e.tokens.length !== 0 ? t(e.tokens) : e.text }, n),
|
|
2927
|
+
paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(St, { children: t(e.tokens) }, n) : null,
|
|
2928
|
+
space: () => null,
|
|
2929
|
+
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(E, {
|
|
2930
|
+
bold: !0,
|
|
2931
|
+
children: t(e.tokens)
|
|
2932
|
+
}, n) : /* @__PURE__ */ p(E, {
|
|
2933
|
+
bold: !0,
|
|
2934
|
+
children: e.text
|
|
2935
|
+
}, n),
|
|
2936
|
+
table: (e, t, n) => {
|
|
2937
|
+
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));
|
|
2938
|
+
return /* @__PURE__ */ p(In, {
|
|
2939
|
+
header: /* @__PURE__ */ p(Vn, { children: i }),
|
|
2940
|
+
body: /* @__PURE__ */ p(Ln, { children: a })
|
|
2941
|
+
}, n);
|
|
2942
|
+
},
|
|
2943
|
+
text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(E, { children: t(e.tokens) }, n) : /* @__PURE__ */ p(E, { children: e.text }, n)
|
|
2944
|
+
}, fr = ({ markdown: e, style: t, renderFunctionMap: n }) => {
|
|
2945
|
+
let r = {
|
|
2946
|
+
...dr,
|
|
2947
|
+
...n
|
|
2948
|
+
}, i = (e) => e.map((e, t) => {
|
|
2949
|
+
let n = r[e.type];
|
|
2950
|
+
return n ? n(e, i, t) : null;
|
|
2951
|
+
}), a = Xe.setOptions({ gfm: !0 }).lexer(e);
|
|
2952
|
+
return /* @__PURE__ */ p("div", {
|
|
2953
|
+
className: ur["markdown-body"],
|
|
2954
|
+
style: {
|
|
2955
|
+
"--elmethis-margin-block-start": "2.5rem",
|
|
2956
|
+
...t
|
|
2957
|
+
},
|
|
2958
|
+
children: i(a)
|
|
2777
2959
|
});
|
|
2778
2960
|
}, $ = {
|
|
2779
2961
|
char: "_char_sojtj_1",
|
|
2780
2962
|
typed: "_typed_sojtj_20",
|
|
2781
2963
|
current: "_current_sojtj_24",
|
|
2782
2964
|
incorrect: "_incorrect_sojtj_29"
|
|
2783
|
-
},
|
|
2784
|
-
let [n, r] =
|
|
2965
|
+
}, pr = ({ target: e = "Typing game", style: t }) => {
|
|
2966
|
+
let [n, r] = d(() => {
|
|
2785
2967
|
let t = e.split("").map((e) => ({
|
|
2786
2968
|
char: e,
|
|
2787
2969
|
status: "default"
|
|
2788
2970
|
}));
|
|
2789
2971
|
return t.length > 0 && (t[0].status = "current"), t;
|
|
2790
|
-
}), [
|
|
2791
|
-
return
|
|
2972
|
+
}), [i, a] = d(0), [o, c] = d(0), [l, u] = d(!1);
|
|
2973
|
+
return s(() => {
|
|
2792
2974
|
let t = e.split("").map((e) => ({
|
|
2793
2975
|
char: e,
|
|
2794
2976
|
status: "default"
|
|
2795
2977
|
}));
|
|
2796
2978
|
t.length > 0 && (t[0].status = "current");
|
|
2797
2979
|
let n = window.setTimeout(() => {
|
|
2798
|
-
r(t),
|
|
2980
|
+
r(t), a(0), c(0), u(!1);
|
|
2799
2981
|
}, 0);
|
|
2800
2982
|
return () => clearTimeout(n);
|
|
2801
|
-
}, [e]),
|
|
2983
|
+
}, [e]), s(() => {
|
|
2802
2984
|
let e = (e) => {
|
|
2803
|
-
|
|
2804
|
-
if (!t[
|
|
2985
|
+
l || e.key.length !== 1 || r((t) => {
|
|
2986
|
+
if (!t[i]) return t;
|
|
2805
2987
|
let n = [...t];
|
|
2806
|
-
return e.key === n[
|
|
2807
|
-
...n[
|
|
2988
|
+
return e.key === n[i].char ? (n[i] = {
|
|
2989
|
+
...n[i],
|
|
2808
2990
|
status: "typed"
|
|
2809
|
-
},
|
|
2991
|
+
}, i === n.length - 1 ? u(!0) : a((e) => (n[e + 1] = {
|
|
2810
2992
|
...n[e + 1],
|
|
2811
2993
|
status: "current"
|
|
2812
|
-
}, e + 1))) : (n[
|
|
2813
|
-
...n[
|
|
2994
|
+
}, e + 1))) : (n[i] = {
|
|
2995
|
+
...n[i],
|
|
2814
2996
|
status: "incorrect"
|
|
2815
|
-
},
|
|
2997
|
+
}, c((e) => e + 1)), n;
|
|
2816
2998
|
});
|
|
2817
2999
|
};
|
|
2818
3000
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
2819
|
-
}, [
|
|
3001
|
+
}, [i, l]), /* @__PURE__ */ m("div", {
|
|
2820
3002
|
style: t,
|
|
2821
3003
|
children: [
|
|
2822
|
-
/* @__PURE__ */
|
|
3004
|
+
/* @__PURE__ */ p("div", { children: n.map((e, t) => /* @__PURE__ */ p("span", {
|
|
2823
3005
|
className: [
|
|
2824
3006
|
$.char,
|
|
2825
3007
|
e.status === "typed" ? $.typed : "",
|
|
@@ -2828,32 +3010,32 @@ var nr = ({ commands: e, onCommandInvoked: t, style: r }) => {
|
|
|
2828
3010
|
].filter(Boolean).join(" "),
|
|
2829
3011
|
children: e.char
|
|
2830
3012
|
}, t)) }),
|
|
2831
|
-
|
|
2832
|
-
|
|
3013
|
+
l && /* @__PURE__ */ p("div", { children: "FINISH!" }),
|
|
3014
|
+
o > 0 && /* @__PURE__ */ m("div", { children: ["Mistakes: ", o] })
|
|
2833
3015
|
]
|
|
2834
3016
|
});
|
|
2835
|
-
},
|
|
3017
|
+
}, mr = ({ oEmbed: e, style: t }) => e.type === "photo" ? /* @__PURE__ */ p("div", {
|
|
2836
3018
|
style: t,
|
|
2837
|
-
children: /* @__PURE__ */
|
|
3019
|
+
children: /* @__PURE__ */ p(M, {
|
|
2838
3020
|
src: e.url,
|
|
2839
3021
|
alt: e.title,
|
|
2840
3022
|
width: e.width,
|
|
2841
3023
|
height: e.height,
|
|
2842
3024
|
block: !0
|
|
2843
3025
|
})
|
|
2844
|
-
}) : e.type === "video" || e.type === "rich" ? /* @__PURE__ */
|
|
3026
|
+
}) : e.type === "video" || e.type === "rich" ? /* @__PURE__ */ p("div", {
|
|
2845
3027
|
style: {
|
|
2846
3028
|
width: e.width ? `${e.width}px` : void 0,
|
|
2847
3029
|
height: e.height ? `${e.height}px` : void 0,
|
|
2848
3030
|
...t
|
|
2849
3031
|
},
|
|
2850
3032
|
dangerouslySetInnerHTML: { __html: e.html }
|
|
2851
|
-
}) : /* @__PURE__ */
|
|
3033
|
+
}) : /* @__PURE__ */ p("div", {
|
|
2852
3034
|
style: t,
|
|
2853
|
-
children: /* @__PURE__ */
|
|
3035
|
+
children: /* @__PURE__ */ p(E, {
|
|
2854
3036
|
href: e.author_url ?? e.provider_url ?? "#",
|
|
2855
3037
|
children: e.title ?? e.author_name ?? e.provider_name ?? "Link"
|
|
2856
3038
|
})
|
|
2857
3039
|
});
|
|
2858
3040
|
//#endregion
|
|
2859
|
-
export {
|
|
3041
|
+
export { ft as ElmArrowIcon, nn as ElmBlockFallback, Ct as ElmBlockQuote, Jt as ElmBookmark, ht as ElmBookmarkIcon, Yt as ElmBreadcrumb, z as ElmButton, Et 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, vt as ElmCubeIcon, xn as ElmDesktopWindow, Ot as ElmDivider, w as ElmDotLoadingIcon, qt as ElmFile, At as ElmFragmentIdentifier, O as ElmHeading, M as ElmImage, S as ElmInlineIcon, E as ElmInlineText, lr as ElmJarkup, ir as ElmJsonComponentRenderer, Yn as ElmKatex, et as ElmLanguageIcon, Ft as ElmList, bt as ElmLoginIcon, fr as ElmMarkdown, C as ElmMdiIcon, e as ElmMermaid, yn as ElmModal, Ht as ElmMultiProgress, mr as ElmOEmbed, Xt as ElmPageTop, St as ElmParagraph, Cn as ElmParallax, Bt as ElmProgress, tn as ElmRectangleWave, cn as ElmSelect, Kn as ElmShikiHighlighter, Dn as ElmSimpleTooltip, kn as ElmSnackbar, jn as ElmSnackbarContainer, an as ElmSpinner, ot as ElmSquareLoadingIcon, Gt as ElmStatusMessage, ln as ElmSwitch, In as ElmTable, Ln as ElmTableBody, zn as ElmTableCell, Vn as ElmTableHeader, Qt as ElmTableOfContents, Y as ElmTableRow, Mn as ElmTabs, zt as ElmTemplate, dn as ElmTextField, Nn as ElmToggle, dt as ElmToggleTheme, En as ElmTooltip, pr as ElmTyping, Lt as ElmTypingAnimation, on as ElmUnsupportedBlock, pn as ElmValidation, tt as LANGUAGES };
|