@elmethis/react 0.3.5 → 0.3.6
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/index.react.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./ElmMermaid-BFqvHKdQ.js";
|
|
2
2
|
import t, { Suspense as n, createContext as r, lazy as i, useCallback as a, useContext as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
3
3
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
4
|
-
import { darken as h, getLuminance as g, opacify as _, parseToHsl as v, parseToRgb as
|
|
5
|
-
import { mdiAccount as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { kebabCase as
|
|
8
|
-
import { marked as
|
|
9
|
-
var
|
|
4
|
+
import { darken as h, getLuminance as g, opacify as _, parseToHsl as v, parseToRgb as ee, rgbToColorString as te } from "polished";
|
|
5
|
+
import { mdiAccount as y, mdiAlert as ne, mdiAlertCircle as re, mdiAlertOctagram as ie, mdiApplicationOutline as ae, mdiArchive as oe, mdiArrowDownDropCircleOutline as se, mdiArrowLeft as ce, mdiBackspaceOutline as le, mdiCalendarMonth as ue, mdiCalendarRefresh as de, mdiCheck as fe, mdiCheckCircle as pe, mdiCheckCircleOutline as me, mdiChevronRight as he, mdiChevronUp as ge, mdiClipboardCheckMultipleOutline as _e, mdiClipboardMultipleOutline as ve, mdiCloseCircleOutline as ye, mdiConsoleLine as be, mdiDownload as xe, mdiEarth as Se, mdiEmail as Ce, mdiEyeOffOutline as we, mdiEyeOutline as Te, mdiFileOutline as Ee, mdiFolderOpen as De, mdiFormatQuoteClose as Oe, mdiFormatQuoteOpen as ke, mdiHome as Ae, mdiInformation as je, mdiKey as Me, mdiKeyboardReturn as Ne, mdiLightbulbOn as Pe, mdiLinkVariant as Fe, mdiLoading as Ie, mdiLock as Le, mdiLoginVariant as Re, mdiLogoutVariant as ze, mdiMagnify as Be, mdiMenuDown as Ve, mdiMessageImageOutline as He, mdiPen as Ue, mdiPlus as We, mdiReload as Ge, mdiShieldAlert as Ke, mdiTable as qe, mdiTag as Je, mdiText as Ye } from "@mdi/js";
|
|
6
|
+
import { createPortal as Xe } from "react-dom";
|
|
7
|
+
import { kebabCase as Ze } from "lodash-es";
|
|
8
|
+
import { marked as Qe } from "marked";
|
|
9
|
+
var $e = { icon: "_icon_k0isg_1" }, b = ({ src: e, alt: t }) => {
|
|
10
10
|
let [n, r] = d(e);
|
|
11
11
|
return /* @__PURE__ */ p("img", {
|
|
12
|
-
className:
|
|
12
|
+
className: $e.icon,
|
|
13
13
|
src: n,
|
|
14
14
|
alt: t,
|
|
15
15
|
onError: () => {
|
|
16
16
|
r("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path fill=\"gray\" d=\"M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2\"/></svg>");
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
},
|
|
19
|
+
}, et = { icon: "_icon_18sdb_1" }, tt = {
|
|
20
20
|
rust: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20128%20128'%20fill='%23a84f33'%20width='128'%20height='128'%20%3e%3cpath%20d='M62.96.242c-.232.135-1.203%201.528-2.16%203.097c-2.4%203.94-2.426%203.942-5.65.55c-2.098-2.208-2.605-2.612-3.28-2.607c-.44.002-.995.152-1.235.332s-.916%201.612-1.504%203.183c-1.346%203.6-1.41%203.715-2.156%203.86c-.46.086-1.343-.407-3.463-1.929c-1.565-1.125-3.1-2.045-3.411-2.045c-1.291%200-1.655.706-2.27%204.4c-.78%204.697-.754%204.681-4.988%202.758c-1.71-.776-3.33-1.41-3.603-1.41s-.792.293-1.15.652c-.652.652-.653.655-.475%204.246l.178%203.595l-.68.364c-.602.322-1.017.283-3.684-.348c-3.48-.822-4.216-.8-4.92.15l-.516.693l.692%202.964c.38%201.63.745%203.2.814%203.487c.067.287-.05.746-.26%201.02c-.348.448-.717.49-3.94.44c-5.452-.086-5.761.382-3.51%205.3c.718%201.56%201.305%202.98%201.305%203.15c0%20.898-.717%201.224-3.794%201.727c-1.722.28-3.218.51-3.326.51c-.107%200-.43.235-.717.522c-.937.936-.671%201.816%201.453%204.814c2.646%203.735%202.642%203.75-1.73%205.421c-4.971%201.902-5.072%202.37-1.287%205.96c3.525%203.344%203.53%203.295-.461%205.804C.208%2062.8.162%2062.846.085%2063.876c-.093%201.253-.071%201.275%203.538%203.48c3.57%202.18%203.57%202.246.067%205.56C-.078%2076.48.038%2077%205.013%2078.877c4.347%201.64%204.353%201.66%201.702%205.394c-1.502%202.117-1.981%203-1.981%203.653c0%201.223.637%201.535%204.44%202.174c3.206.54%203.92.857%203.92%201.741c0%20.182-.588%201.612-1.307%203.177c-2.236%204.87-1.981%205.275%203.31%205.275c4.93%200%204.799-.15%203.737%204.294c-.8%203.35-.813%203.992-.088%204.715c.554.556%201.6.494%204.87-.289c2.499-.596%202.937-.637%203.516-.328l.66.354l-.177%203.594c-.178%203.593-.177%203.595.475%204.248c.358.36.884.652%201.165.652s1.903-.63%203.604-1.404c4.22-1.916%204.194-1.932%204.973%202.75c.617%203.711.977%204.4%202.294%204.4c.327%200%201.83-.88%203.34-1.958c2.654-1.893%203.342-2.19%204.049-1.74c.182.115.89%201.67%201.572%203.455c1.003%202.625%201.37%203.31%201.929%203.576c1.062.51%201.72.1%204.218-2.62c3.016-3.286%203.14-3.27%205.602.72c2.72%204.406%203.424%204.396%206.212-.089c2.402-3.864%202.374-3.862%205.621-.47c2.157%202.25%202.616%202.61%203.343%202.61c.464%200%201.019-.175%201.23-.388c.214-.213.92-1.786%201.568-3.496c.649-1.71%201.321-3.2%201.495-3.31c.687-.436%201.398-.13%204.048%201.752c1.56%201.108%203.028%201.96%203.377%201.96c1.296%200%201.764-.92%202.302-4.535c.46-3.082.554-3.378%201.16-3.685c.596-.302.954-.2%203.75%201.07c1.701.77%203.323%201.402%203.604%201.402s.816-.302%201.184-.672l.672-.67l-.184-3.448c-.177-3.29-.16-3.468.364-3.943c.54-.488.596-.486%203.615.204c3.656.835%204.338.857%205.025.17c.671-.67.664-.818-.254-4.69c-1.03-4.346-1.168-4.19%203.78-4.19c3.374%200%203.75-.049%204.18-.523c.718-.793.547-1.702-.896-4.779c-.729-1.55-1.32-2.96-1.315-3.135c.024-.914.743-1.227%204.065-1.767c2.033-.329%203.553-.71%203.829-.96c.923-.833.584-1.918-1.523-4.873c-2.642-3.703-2.63-3.738%201.599-5.297c5.064-1.866%205.209-2.488%201.419-6.09c-3.51-3.335-3.512-3.317.333-5.677c4.648-2.853%204.655-3.496.082-6.335c-3.933-2.44-3.93-2.406-.405-5.753c3.78-3.593%203.678-4.063-1.295-5.965c-4.388-1.679-4.402-1.72-1.735-5.38c1.588-2.18%201.982-2.903%201.982-3.65c0-1.306-.586-1.598-4.436-2.22c-3.216-.52-3.924-.835-3.924-1.75c0-.174.588-1.574%201.307-3.113c1.406-3.013%201.604-4.22.808-4.94c-.428-.387-1-.443-4.067-.392c-3.208.054-3.618.008-4.063-.439c-.486-.488-.48-.557.278-3.725c.931-3.88.935-3.975.17-4.694c-.777-.73-1.262-.718-4.826.121c-2.597.612-3.027.653-3.617.337l-.67-.36l.185-3.582l.186-3.58l-.67-.67c-.369-.37-.891-.67-1.163-.67c-.27%200-1.884.64-3.583%201.421c-2.838%201.306-3.143%201.393-3.757%201.072c-.612-.32-.714-.637-1.237-3.829c-.603-3.693-.977-4.412-2.288-4.412c-.311%200-1.853.925-3.426%202.055c-2.584%201.856-2.93%202.032-3.574%201.807c-.533-.186-.843-.59-1.221-1.599c-.28-.742-.817-2.172-1.194-3.177c-.762-2.028-1.187-2.482-2.328-2.482c-.637%200-1.213.458-3.28%202.604c-3.25%203.375-3.261%203.374-5.65-.545C66.073%201.78%2065.075.382%2064.81.24c-.597-.32-1.3-.32-1.85.002m2.96%2011.798c2.83%202.014%201.326%206.75-2.144%206.75c-3.368%200-5.064-4.057-2.66-6.36c1.358-1.3%203.304-1.459%204.805-.39m-3.558%2012.507c1.855.705%202.616.282%206.852-3.8l3.182-3.07l1.347.18c4.225.56%2012.627%204.25%2017.455%207.666c4.436%203.14%2010.332%209.534%2012.845%2013.93l.537.942l-2.38%205.364c-1.31%202.95-2.382%205.673-2.382%206.053c0%20.878.576%202.267%201.13%202.726c.234.195%202.457%201.265%204.939%202.378l4.51%202.025l.178%201.148c.23%201.495.26%205.167.052%206.21l-.163.816h-2.575c-2.987%200-2.756-.267-2.918%203.396c-.118%202.656-.76%204.124-2.22%205.075c-2.377%201.551-6.304%201.27-7.97-.57c-.255-.284-.752-1.705-1.105-3.16c-1.03-4.254-2.413-6.64-5.193-8.965c-.878-.733-1.595-1.418-1.595-1.522c0-.102.965-.915%202.145-1.803c4.298-3.24%206.77-7.012%207.04-10.747c.519-7.126-5.158-13.767-13.602-15.92c-2.002-.51-2.857-.526-27.624-.526c-14.057%200-25.56-.092-25.56-.204c0-.263%203.125-3.295%204.965-4.816c5.054-4.178%2011.618-7.465%2018.417-9.22l2.35-.61l3.34%203.387c1.839%201.863%203.64%203.5%204.003%203.637M20.3%2046.34c1.539%201.008%202.17%203.54%201.26%205.062c-1.405%202.356-4.966%202.455-6.373.178c-2.046-3.309%201.895-7.349%205.113-5.24m90.672.13c4.026%202.454.906%208.493-3.404%206.586c-2.877-1.273-2.97-5.206-.155-6.64c1.174-.6%202.523-.579%203.56.053M32.163%2061.5v15.02h-13.28l-.526-2.285c-1.036-4.5-1.472-9.156-1.211-12.969l.182-2.679l4.565-2.047c2.864-1.283%204.706-2.262%204.943-2.625c1.038-1.584.94-2.715-.518-5.933l-.68-1.502h6.523V61.5M70.39%2047.132c2.843.74%204.345%202.245%204.349%204.355c.002%201.55-.765%202.52-2.67%203.38c-1.348.61-1.562.625-10.063.708l-8.686.084v-8.92h7.782c6.078%200%208.112.086%209.288.393m-2.934%2021.554c1.41.392%203.076%201.616%203.93%202.888c.898%201.337%201.423%203.076%202.667%208.836c1.05%204.87%201.727%206.46%203.62%208.532c2.345%202.566%201.8%202.466%2013.514%202.466c5.61%200%2010.198.09%2010.198.2c0%20.197-3.863%204.764-4.03%204.764c-.048%200-2.066-.422-4.484-.939c-6.829-1.458-7.075-1.287-8.642%206.032l-1.008%204.702l-.91.448c-1.518.75-6.453%202.292-9.01%202.82c-4.228.87-8.828%201.162-12.871.821c-6.893-.585-16.02-3.259-16.377-4.8c-.075-.327-.535-2.443-1.018-4.704c-.485-2.26-1.074-4.404-1.31-4.764c-1.13-1.724-2.318-1.83-7.547-.674c-1.98.44-3.708.796-3.84.796c-.248%200-3.923-4.249-3.923-4.535c0-.09%208.728-.194%2019.396-.23l19.395-.066l.07-6.89c.05-4.865-.018-6.997-.23-7.25c-.234-.284-1.485-.358-6.011-.358H53.32v-8.36l6.597.001c3.626.002%207.02.12%207.539.264M37.57%20100.02c3.084%201.88%201.605%206.804-2.043%206.8c-3.74%200-5.127-4.88-1.94-6.826c1.055-.643%202.908-.63%203.983.026m56.48.206c1.512%201.108%202.015%203.413%201.079%204.95c-2.46%204.034-8.612.827-6.557-3.419c1.01-2.085%203.695-2.837%205.478-1.53'%20/%3e%3c/svg%3e",
|
|
21
21
|
javascript: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23f0db4f'%20d='M1.408%201.408h125.184v125.185H1.408z'%20/%3e%3cpath%20fill='%23323330'%20d='M116.347%2096.736c-.917-5.711-4.641-10.508-15.672-14.981c-3.832-1.761-8.104-3.022-9.377-5.926c-.452-1.69-.512-2.642-.226-3.665c.821-3.32%204.784-4.355%207.925-3.403c2.023.678%203.938%202.237%205.093%204.724c5.402-3.498%205.391-3.475%209.163-5.879c-1.381-2.141-2.118-3.129-3.022-4.045c-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902%202.748-8.877%205.235c-5.926%206.724-4.236%2018.492%202.975%2023.335c7.104%205.332%2017.54%206.545%2018.873%2011.531c1.297%206.104-4.486%208.08-10.234%207.378c-4.236-.881-6.592-3.034-9.139-6.949c-4.688%202.713-4.688%202.713-9.508%205.485c1.143%202.499%202.344%203.63%204.26%205.795c9.068%209.198%2031.76%208.746%2035.83-5.176c.165-.478%201.261-3.666.38-8.581M69.462%2058.943H57.753l-.048%2030.272c0%206.438.333%2012.34-.714%2014.149c-1.713%203.558-6.152%203.117-8.175%202.427c-2.059-1.012-3.106-2.451-4.319-4.485c-.333-.584-.583-1.036-.667-1.071l-9.52%205.83c1.583%203.249%203.915%206.069%206.902%207.901c4.462%202.678%2010.459%203.499%2016.731%202.059c4.082-1.189%207.604-3.652%209.448-7.401c2.666-4.915%202.094-10.864%202.07-17.444c.06-10.735.001-21.468.001-32.237'%20/%3e%3c/svg%3e",
|
|
22
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",
|
|
@@ -36,9 +36,9 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
36
36
|
cpp: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%2300599c'%20d='M118.766%2095.82c.89-1.543%201.441-3.28%201.441-4.843V36.78c0-1.558-.55-3.297-1.441-4.84l-55.32%2031.94Zm0%200'%20/%3e%3cpath%20fill='%23004482'%20d='m68.36%20126.586l46.933-27.094c1.352-.781%202.582-2.129%203.473-3.672l-55.32-31.94L8.12%2095.82c.89%201.543%202.121%202.89%203.473%203.672l46.933%2027.094c2.703%201.562%207.13%201.562%209.832%200Zm0%200'%20/%3e%3cpath%20fill='%23659ad2'%20d='M118.766%2031.941c-.891-1.546-2.121-2.894-3.473-3.671L68.359%201.172c-2.703-1.563-7.129-1.563-9.832%200L11.594%2028.27C8.89%2029.828%206.68%2033.66%206.68%2036.78v54.196c0%201.562.55%203.3%201.441%204.843L63.445%2063.88Zm0%200'%20/%3e%3cpath%20fill='%23fff'%20d='M63.445%2026.035c-20.867%200-37.843%2016.977-37.843%2037.844s16.976%2037.844%2037.843%2037.844c13.465%200%2026.024-7.247%2032.77-18.91L79.84%2073.335c-3.38%205.84-9.66%209.465-16.395%209.465c-10.433%200-18.922-8.488-18.922-18.922s8.49-18.922%2018.922-18.922c6.73%200%2013.017%203.629%2016.39%209.465l16.38-9.477c-6.75-11.664-19.305-18.91-32.77-18.91zM92.88%2057.57v4.207h-4.207v4.203h4.207v4.207h4.203V65.98h4.203v-4.203h-4.203V57.57zm15.766%200v4.207h-4.204v4.203h4.204v4.207h4.207V65.98h4.203v-4.203h-4.203V57.57z'%20/%3e%3c/svg%3e",
|
|
37
37
|
c: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23659ad3'%20d='M115.4%2030.7L67.1%202.9c-.8-.5-1.9-.7-3.1-.7s-2.3.3-3.1.7l-48%2027.9c-1.7%201-2.9%203.5-2.9%205.4v55.7c0%201.1.2%202.4%201%203.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7'%20/%3e%3cpath%20fill='%2303599c'%20d='M10.7%2095.3c.5.8%201.2%201.5%201.9%201.9l48.2%2027.9c.8.5%201.9.7%203.1.7s2.3-.3%203.1-.7l48-27.9c1.7-1%202.9-3.5%202.9-5.4V36.1c0-.9-.1-1.9-.6-2.8z'%20/%3e%3cpath%20fill='%23fff'%20d='M85.3%2076.1C81.1%2083.5%2073.1%2088.5%2064%2088.5c-13.5%200-24.5-11-24.5-24.5s11-24.5%2024.5-24.5c9.1%200%2017.1%205%2021.3%2012.5l13-7.5c-6.8-11.9-19.6-20-34.3-20c-21.8%200-39.5%2017.7-39.5%2039.5s17.7%2039.5%2039.5%2039.5c14.6%200%2027.4-8%2034.2-19.8z'%20/%3e%3c/svg%3e",
|
|
38
38
|
file: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e"
|
|
39
|
-
},
|
|
40
|
-
className:
|
|
41
|
-
src:
|
|
39
|
+
}, nt = (e) => /* @__PURE__ */ p("img", {
|
|
40
|
+
className: et.icon,
|
|
41
|
+
src: tt[e.language] || "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e",
|
|
42
42
|
width: e.size,
|
|
43
43
|
height: e.size,
|
|
44
44
|
alt: e.language,
|
|
@@ -47,7 +47,7 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
47
47
|
height: e.size,
|
|
48
48
|
...e.style
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), rt = [
|
|
51
51
|
"rust",
|
|
52
52
|
"javascript",
|
|
53
53
|
"typescript",
|
|
@@ -67,10 +67,10 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
67
67
|
"cpp",
|
|
68
68
|
"c",
|
|
69
69
|
"file"
|
|
70
|
-
],
|
|
70
|
+
], it = {
|
|
71
71
|
icon: "_icon_g71ox_1",
|
|
72
72
|
"icon-theme-color": "_icon-theme-color_g71ox_10"
|
|
73
|
-
},
|
|
73
|
+
}, x = (e) => /* @__PURE__ */ p("div", {
|
|
74
74
|
style: e.style,
|
|
75
75
|
children: /* @__PURE__ */ p("svg", {
|
|
76
76
|
width: e.size || "1.25rem",
|
|
@@ -84,19 +84,19 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
84
84
|
"--elmethis-scoped-color-dark": e.colorDark ?? e.color,
|
|
85
85
|
...e.style
|
|
86
86
|
},
|
|
87
|
-
className: e.useThemeColor ?
|
|
87
|
+
className: e.useThemeColor ? it["icon-theme-color"] : it.icon,
|
|
88
88
|
fill: "currentColor",
|
|
89
89
|
d: e.d
|
|
90
90
|
})
|
|
91
91
|
})
|
|
92
|
-
}),
|
|
92
|
+
}), at = {
|
|
93
93
|
wrapper: "_wrapper_1q92c_15",
|
|
94
94
|
dot: "_dot_1q92c_22",
|
|
95
95
|
bounce: "_bounce_1q92c_1"
|
|
96
|
-
},
|
|
96
|
+
}, S = (e) => {
|
|
97
97
|
let { color: t, size: n = "64px", style: r } = e;
|
|
98
98
|
return /* @__PURE__ */ p("div", {
|
|
99
|
-
className:
|
|
99
|
+
className: at.wrapper,
|
|
100
100
|
style: {
|
|
101
101
|
width: n,
|
|
102
102
|
height: n,
|
|
@@ -107,51 +107,51 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
107
107
|
2,
|
|
108
108
|
3
|
|
109
109
|
].map((e) => /* @__PURE__ */ p("div", {
|
|
110
|
-
className:
|
|
110
|
+
className: at.dot,
|
|
111
111
|
"aria-hidden": !0,
|
|
112
112
|
style: t ? { backgroundColor: t } : void 0
|
|
113
113
|
}, e))
|
|
114
114
|
});
|
|
115
|
-
},
|
|
115
|
+
}, ot = {
|
|
116
116
|
wrapper: "_wrapper_1yu3x_19",
|
|
117
117
|
square: "_square_1yu3x_28",
|
|
118
118
|
appear: "_appear_1yu3x_1"
|
|
119
|
-
},
|
|
120
|
-
let { size: t = "3rem", dimensions: n = 4, style: r } = e, i =
|
|
119
|
+
}, st = 1200, ct = (e) => {
|
|
120
|
+
let { size: t = "3rem", dimensions: n = 4, style: r } = e, i = st / (n * 3), a = Array.from({ length: n });
|
|
121
121
|
return /* @__PURE__ */ p("div", {
|
|
122
|
-
className:
|
|
122
|
+
className: ot.wrapper,
|
|
123
123
|
style: {
|
|
124
124
|
"--size": t,
|
|
125
125
|
"--dimensions": n,
|
|
126
|
-
"--duration": `${
|
|
126
|
+
"--duration": `${st}ms`,
|
|
127
127
|
...r
|
|
128
128
|
},
|
|
129
129
|
children: a.map((e, t) => a.map((e, n) => /* @__PURE__ */ p("div", {
|
|
130
|
-
className:
|
|
130
|
+
className: ot.square,
|
|
131
131
|
style: { "--delay": `${i * (t + n)}ms` }
|
|
132
132
|
}, `${t}-${n}`)))
|
|
133
133
|
});
|
|
134
|
-
},
|
|
135
|
-
function
|
|
134
|
+
}, lt = { icon: "_icon_x4u0f_1" }, ut = "elmethis-theme";
|
|
135
|
+
function dt() {
|
|
136
136
|
if (typeof document < "u") {
|
|
137
137
|
let e = document.documentElement.getAttribute("data-theme");
|
|
138
138
|
if (e != null) return e === "dark";
|
|
139
139
|
}
|
|
140
140
|
if (typeof localStorage < "u") {
|
|
141
|
-
let e = localStorage.getItem(
|
|
141
|
+
let e = localStorage.getItem(ut);
|
|
142
142
|
if (e != null) return e === "dark";
|
|
143
143
|
}
|
|
144
144
|
return !1;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
let [e, t] = d(
|
|
146
|
+
function ft() {
|
|
147
|
+
let [e, t] = d(dt), n = a(() => {
|
|
148
148
|
t((e) => !e);
|
|
149
149
|
}, []);
|
|
150
150
|
return s(() => {
|
|
151
151
|
if (typeof document < "u") {
|
|
152
152
|
document.documentElement.setAttribute("data-theme", e ? "dark" : "light");
|
|
153
153
|
let t = document.querySelector("body");
|
|
154
|
-
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(ut, e ? "dark" : "light");
|
|
155
155
|
}
|
|
156
156
|
}, [e]), {
|
|
157
157
|
isDarkTheme: e,
|
|
@@ -160,14 +160,14 @@ function ut() {
|
|
|
160
160
|
}
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region src/components/icon/ElmToggleTheme.tsx
|
|
163
|
-
var
|
|
164
|
-
let { size: t = "2rem", style: n } = e, { isDarkTheme: r, toggleTheme: i } =
|
|
163
|
+
var pt = (e) => {
|
|
164
|
+
let { size: t = "2rem", style: n } = e, { isDarkTheme: r, toggleTheme: i } = ft();
|
|
165
165
|
return r ? /* @__PURE__ */ m("svg", {
|
|
166
166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
167
167
|
width: t,
|
|
168
168
|
height: t,
|
|
169
169
|
viewBox: "0 0 24 24",
|
|
170
|
-
className:
|
|
170
|
+
className: lt.icon,
|
|
171
171
|
style: n,
|
|
172
172
|
onClick: i,
|
|
173
173
|
children: [
|
|
@@ -396,7 +396,7 @@ var dt = (e) => {
|
|
|
396
396
|
width: t,
|
|
397
397
|
height: t,
|
|
398
398
|
viewBox: "0 0 24 24",
|
|
399
|
-
className:
|
|
399
|
+
className: lt.icon,
|
|
400
400
|
style: n,
|
|
401
401
|
onClick: i,
|
|
402
402
|
children: [
|
|
@@ -589,19 +589,19 @@ var dt = (e) => {
|
|
|
589
589
|
})
|
|
590
590
|
]
|
|
591
591
|
});
|
|
592
|
-
},
|
|
592
|
+
}, C = {
|
|
593
593
|
arrow: "_arrow_kn879_19",
|
|
594
594
|
loading: "_loading_kn879_49",
|
|
595
595
|
normal: "_normal_kn879_55",
|
|
596
596
|
pending: "_pending_kn879_64"
|
|
597
|
-
},
|
|
597
|
+
}, mt = (e) => {
|
|
598
598
|
let { direction: t = "right", loading: n = !1, pending: r = !1, size: i = "2rem", style: a } = e, o = t === "up" ? "rotate(270deg)" : t === "down" ? "rotate(90deg)" : t === "left" ? "rotate(180deg)" : "rotate(0deg)";
|
|
599
599
|
return /* @__PURE__ */ p("div", {
|
|
600
600
|
className: [
|
|
601
|
-
|
|
602
|
-
!n && !r ?
|
|
603
|
-
n ?
|
|
604
|
-
!n && r ?
|
|
601
|
+
C.arrow,
|
|
602
|
+
!n && !r ? C.normal : void 0,
|
|
603
|
+
n ? C.loading : void 0,
|
|
604
|
+
!n && r ? C.pending : void 0
|
|
605
605
|
].filter(Boolean).join(" "),
|
|
606
606
|
style: {
|
|
607
607
|
"--size": i,
|
|
@@ -609,26 +609,26 @@ var dt = (e) => {
|
|
|
609
609
|
...a
|
|
610
610
|
}
|
|
611
611
|
});
|
|
612
|
-
},
|
|
612
|
+
}, ht = {
|
|
613
613
|
wrapper: "_wrapper_1c6r3_1",
|
|
614
614
|
favicon: "_favicon_1c6r3_24",
|
|
615
615
|
text: "_text_1c6r3_29"
|
|
616
|
-
},
|
|
616
|
+
}, gt = {
|
|
617
617
|
text: "_text_1nnze_1",
|
|
618
618
|
link: "_link_1nnze_19"
|
|
619
|
-
},
|
|
619
|
+
}, w = (e) => {
|
|
620
620
|
let t = (e) => {
|
|
621
621
|
let t = e.children;
|
|
622
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
623
|
}, n = ({ favicon: e, href: t, children: n }) => /* @__PURE__ */ m("a", {
|
|
624
|
-
className:
|
|
624
|
+
className: gt.link,
|
|
625
625
|
href: t,
|
|
626
626
|
target: "_blank",
|
|
627
627
|
rel: "noopener noreferrer",
|
|
628
|
-
children: [e && /* @__PURE__ */ p(
|
|
628
|
+
children: [e && /* @__PURE__ */ p(b, { src: e }), n]
|
|
629
629
|
}), r = (e) => e.href ? n(e) : t(e);
|
|
630
630
|
return /* @__PURE__ */ p("span", {
|
|
631
|
-
className:
|
|
631
|
+
className: gt.text,
|
|
632
632
|
style: {
|
|
633
633
|
"--elmethis-text-color-light": e.color,
|
|
634
634
|
"--elmethis-text-color-dark": e.color,
|
|
@@ -640,35 +640,35 @@ var dt = (e) => {
|
|
|
640
640
|
},
|
|
641
641
|
children: r(e)
|
|
642
642
|
});
|
|
643
|
-
},
|
|
643
|
+
}, _t = (e) => {
|
|
644
644
|
let { name: t, href: n, favicon: r, style: i } = e;
|
|
645
645
|
return /* @__PURE__ */ m("a", {
|
|
646
|
-
className:
|
|
646
|
+
className: ht.wrapper,
|
|
647
647
|
href: n,
|
|
648
648
|
target: "_blank",
|
|
649
649
|
rel: "noopener noreferrer",
|
|
650
650
|
style: i,
|
|
651
|
-
children: [r == null ? /* @__PURE__ */ p(
|
|
652
|
-
d:
|
|
651
|
+
children: [r == null ? /* @__PURE__ */ p(x, {
|
|
652
|
+
d: Se,
|
|
653
653
|
size: "2.5rem",
|
|
654
654
|
style: { opacity: .7 }
|
|
655
655
|
}) : /* @__PURE__ */ p("img", {
|
|
656
|
-
className:
|
|
656
|
+
className: ht.favicon,
|
|
657
657
|
src: r,
|
|
658
658
|
alt: `favicon of ${t ?? n}`
|
|
659
659
|
}), /* @__PURE__ */ p("div", {
|
|
660
|
-
className:
|
|
661
|
-
children: /* @__PURE__ */ p(
|
|
660
|
+
className: ht.text,
|
|
661
|
+
children: /* @__PURE__ */ p(w, {
|
|
662
662
|
size: ".6rem",
|
|
663
663
|
children: t ?? n
|
|
664
664
|
})
|
|
665
665
|
})]
|
|
666
666
|
});
|
|
667
|
-
},
|
|
667
|
+
}, vt = {
|
|
668
668
|
cube: "_cube_1merk_1",
|
|
669
669
|
"elmethis-cube-icon-rotate": "_elmethis-cube-icon-rotate_1merk_1",
|
|
670
670
|
face: "_face_1merk_8"
|
|
671
|
-
},
|
|
671
|
+
}, yt = [
|
|
672
672
|
{
|
|
673
673
|
name: "front",
|
|
674
674
|
rotate: ""
|
|
@@ -693,51 +693,51 @@ var dt = (e) => {
|
|
|
693
693
|
name: "bottom",
|
|
694
694
|
rotate: "rotateX(-90deg)"
|
|
695
695
|
}
|
|
696
|
-
],
|
|
696
|
+
], bt = (e) => {
|
|
697
697
|
let { size: t = 128, style: n } = e, r = l(() => `translateZ(${t / 2}px)`, [t]);
|
|
698
698
|
return /* @__PURE__ */ p("div", {
|
|
699
|
-
className:
|
|
699
|
+
className: vt.cube,
|
|
700
700
|
style: {
|
|
701
701
|
width: `${t}px`,
|
|
702
702
|
height: `${t}px`,
|
|
703
703
|
...n
|
|
704
704
|
},
|
|
705
|
-
children:
|
|
706
|
-
className:
|
|
705
|
+
children: yt.map((e) => /* @__PURE__ */ p("div", {
|
|
706
|
+
className: vt.face,
|
|
707
707
|
style: { transform: `${e.rotate} ${r}` }
|
|
708
708
|
}, e.name))
|
|
709
709
|
});
|
|
710
|
-
},
|
|
711
|
-
let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ?
|
|
710
|
+
}, xt = { icon: "_icon_140bn_1" }, St = (e) => {
|
|
711
|
+
let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ? Ie : n ? ze : Re, o = r ? "gray" : n ? "#b36472" : "#6987b8";
|
|
712
712
|
return /* @__PURE__ */ p("div", {
|
|
713
|
-
className:
|
|
713
|
+
className: xt.icon,
|
|
714
714
|
style: i,
|
|
715
|
-
children: /* @__PURE__ */ p(
|
|
715
|
+
children: /* @__PURE__ */ p(x, {
|
|
716
716
|
d: a,
|
|
717
717
|
color: o,
|
|
718
718
|
size: t
|
|
719
719
|
})
|
|
720
720
|
});
|
|
721
|
-
},
|
|
722
|
-
className:
|
|
721
|
+
}, Ct = { paragraph: "_paragraph_ewdky_1" }, wt = (e) => /* @__PURE__ */ p("p", {
|
|
722
|
+
className: Ct.paragraph,
|
|
723
723
|
style: {
|
|
724
724
|
backgroundColor: e.backgroundColor,
|
|
725
725
|
...e.style
|
|
726
726
|
},
|
|
727
727
|
children: e.children
|
|
728
|
-
}),
|
|
728
|
+
}), T = {
|
|
729
729
|
blockquote: "_blockquote_x79j0_1",
|
|
730
730
|
cite: "_cite_x79j0_16",
|
|
731
731
|
icon: "_icon_x79j0_37"
|
|
732
|
-
},
|
|
732
|
+
}, Tt = (e) => /* @__PURE__ */ m("blockquote", {
|
|
733
733
|
ref: u(null),
|
|
734
|
-
className:
|
|
734
|
+
className: T.blockquote,
|
|
735
735
|
cite: e.cite,
|
|
736
736
|
style: { ...e.style },
|
|
737
737
|
children: [
|
|
738
738
|
e.children,
|
|
739
739
|
e.cite && /* @__PURE__ */ p("cite", {
|
|
740
|
-
className:
|
|
740
|
+
className: T.cite,
|
|
741
741
|
children: /* @__PURE__ */ p("a", {
|
|
742
742
|
href: e.cite,
|
|
743
743
|
target: "_blank",
|
|
@@ -746,7 +746,7 @@ var dt = (e) => {
|
|
|
746
746
|
})
|
|
747
747
|
}),
|
|
748
748
|
/* @__PURE__ */ p("svg", {
|
|
749
|
-
className:
|
|
749
|
+
className: T.icon,
|
|
750
750
|
style: {
|
|
751
751
|
top: "0.25rem",
|
|
752
752
|
left: "0.25rem"
|
|
@@ -754,10 +754,10 @@ var dt = (e) => {
|
|
|
754
754
|
viewBox: "0 0 24 24",
|
|
755
755
|
width: "1rem",
|
|
756
756
|
height: "1rem",
|
|
757
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
757
|
+
children: /* @__PURE__ */ p("path", { d: ke })
|
|
758
758
|
}),
|
|
759
759
|
/* @__PURE__ */ p("svg", {
|
|
760
|
-
className:
|
|
760
|
+
className: T.icon,
|
|
761
761
|
style: {
|
|
762
762
|
bottom: "0.25rem",
|
|
763
763
|
right: "0.25rem"
|
|
@@ -765,69 +765,69 @@ var dt = (e) => {
|
|
|
765
765
|
viewBox: "0 0 24 24",
|
|
766
766
|
width: "1rem",
|
|
767
767
|
height: "1rem",
|
|
768
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
768
|
+
children: /* @__PURE__ */ p("path", { d: Oe })
|
|
769
769
|
})
|
|
770
770
|
]
|
|
771
|
-
}),
|
|
771
|
+
}), Et = {
|
|
772
772
|
callout: "_callout_16oli_1",
|
|
773
773
|
header: "_header_16oli_24"
|
|
774
|
-
},
|
|
774
|
+
}, Dt = Object.freeze({
|
|
775
775
|
note: {
|
|
776
776
|
code: "#6987b8",
|
|
777
|
-
icon:
|
|
777
|
+
icon: je
|
|
778
778
|
},
|
|
779
779
|
tip: {
|
|
780
780
|
code: "#59b57c",
|
|
781
|
-
icon:
|
|
781
|
+
icon: Pe
|
|
782
782
|
},
|
|
783
783
|
important: {
|
|
784
784
|
code: "#9771bd",
|
|
785
|
-
icon:
|
|
785
|
+
icon: Ke
|
|
786
786
|
},
|
|
787
787
|
warning: {
|
|
788
788
|
code: "#b8a36e",
|
|
789
|
-
icon:
|
|
789
|
+
icon: ne
|
|
790
790
|
},
|
|
791
791
|
caution: {
|
|
792
792
|
code: "#b36472",
|
|
793
|
-
icon:
|
|
793
|
+
icon: ie
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
796
|
-
let n =
|
|
795
|
+
}), Ot = ({ type: e = "note", ...t }) => {
|
|
796
|
+
let n = Dt[e];
|
|
797
797
|
return /* @__PURE__ */ m("aside", {
|
|
798
|
-
className:
|
|
798
|
+
className: Et.callout,
|
|
799
799
|
style: {
|
|
800
800
|
"--elmethis-scoped-border-color": n.code,
|
|
801
801
|
"--elmethis-scoped-background-color": `color-mix(in srgb, ${n.code} 10%, transparent)`,
|
|
802
802
|
...t.style
|
|
803
803
|
},
|
|
804
804
|
children: [/* @__PURE__ */ m("div", {
|
|
805
|
-
className:
|
|
806
|
-
children: [/* @__PURE__ */ p(
|
|
805
|
+
className: Et.header,
|
|
806
|
+
children: [/* @__PURE__ */ p(x, {
|
|
807
807
|
d: n.icon,
|
|
808
808
|
size: "1.25em",
|
|
809
809
|
color: n.code
|
|
810
|
-
}), /* @__PURE__ */ p(
|
|
810
|
+
}), /* @__PURE__ */ p(w, {
|
|
811
811
|
color: n.code,
|
|
812
812
|
children: e.toUpperCase()
|
|
813
813
|
})]
|
|
814
814
|
}), /* @__PURE__ */ p("div", { children: t.children })]
|
|
815
815
|
});
|
|
816
|
-
},
|
|
817
|
-
className:
|
|
816
|
+
}, kt = { divider: "_divider_uq5jr_1" }, E = (e) => /* @__PURE__ */ p("hr", {
|
|
817
|
+
className: kt.divider,
|
|
818
818
|
style: e.style
|
|
819
|
-
}),
|
|
819
|
+
}), At = { fragment: "_fragment_il7xb_1" }, jt = (e) => {
|
|
820
820
|
let t = a((e) => {
|
|
821
821
|
let t = new URL(window.location.href);
|
|
822
822
|
t.hash = e, window.history.replaceState(null, "", t.toString()), document.getElementById(e)?.scrollIntoView({ behavior: "smooth" });
|
|
823
823
|
}, []);
|
|
824
824
|
return /* @__PURE__ */ p("span", {
|
|
825
|
-
className:
|
|
825
|
+
className: At.fragment,
|
|
826
826
|
style: e.style,
|
|
827
827
|
onClick: () => t(e.id),
|
|
828
828
|
children: "#"
|
|
829
829
|
});
|
|
830
|
-
},
|
|
830
|
+
}, D = {
|
|
831
831
|
"heading-common": "_heading-common_1ytfd_1",
|
|
832
832
|
h1: "_h1_1ytfd_22",
|
|
833
833
|
h2: "_h2_1ytfd_57",
|
|
@@ -857,7 +857,7 @@ var dt = (e) => {
|
|
|
857
857
|
let o = `h${e}`, c = n.id ?? (n.text ? Nt(n.text) : void 0);
|
|
858
858
|
return /* @__PURE__ */ m(o, {
|
|
859
859
|
ref: r,
|
|
860
|
-
className: [
|
|
860
|
+
className: [D["heading-common"], D[`h${e}`]].filter(Boolean).join(" "),
|
|
861
861
|
id: c,
|
|
862
862
|
style: {
|
|
863
863
|
"--font-size": n.size ?? `${Mt[e]}rem`,
|
|
@@ -868,71 +868,71 @@ var dt = (e) => {
|
|
|
868
868
|
children: [
|
|
869
869
|
n.text && /* @__PURE__ */ p("span", { children: n.text }),
|
|
870
870
|
n.children,
|
|
871
|
-
!t && c && /* @__PURE__ */ p(
|
|
871
|
+
!t && c && /* @__PURE__ */ p(jt, { id: c }),
|
|
872
872
|
e === 2 && /* @__PURE__ */ p("span", {
|
|
873
|
-
className:
|
|
873
|
+
className: D.h2__underline,
|
|
874
874
|
"aria-hidden": "true"
|
|
875
875
|
})
|
|
876
876
|
]
|
|
877
877
|
});
|
|
878
|
-
},
|
|
878
|
+
}, k = {
|
|
879
879
|
"elmethis-list-common": "_elmethis-list-common_1qwri_1",
|
|
880
880
|
"elmethis-bulleted-list": "_elmethis-bulleted-list_1qwri_7",
|
|
881
881
|
"elmethis-numbered-list": "_elmethis-numbered-list_1qwri_25"
|
|
882
|
-
},
|
|
883
|
-
let n = [
|
|
882
|
+
}, Pt = ({ listStyle: e = "unordered", ...t }) => {
|
|
883
|
+
let n = [k["elmethis-list-common"], e === "unordered" ? k["elmethis-bulleted-list"] : k["elmethis-numbered-list"]].join(" ");
|
|
884
884
|
return p(e === "ordered" ? "ol" : "ul", {
|
|
885
885
|
className: n,
|
|
886
886
|
style: t.style,
|
|
887
887
|
children: t.children
|
|
888
888
|
});
|
|
889
|
-
},
|
|
889
|
+
}, Ft = {
|
|
890
890
|
text: "_text_zrzts_1",
|
|
891
891
|
cursor: "_cursor_zrzts_30",
|
|
892
892
|
blink: "_blink_zrzts_1"
|
|
893
|
-
},
|
|
893
|
+
}, A = (e) => new Promise((t) => {
|
|
894
894
|
setTimeout(t, e);
|
|
895
|
-
}),
|
|
895
|
+
}), It = ({ texts: e = [], interval: t = 3e3, fontSize: n = "1rem", ...r }) => {
|
|
896
896
|
let [i, a] = d(""), o = u(!1);
|
|
897
897
|
return s(() => (o.current = !1, (async () => {
|
|
898
898
|
for (; !o.current;) for (let n of e) {
|
|
899
899
|
for (let e = 0; e < n.length; e++) {
|
|
900
|
-
if (o.current || (await
|
|
900
|
+
if (o.current || (await A(75), o.current)) return;
|
|
901
901
|
a(n.slice(0, e + 1));
|
|
902
902
|
}
|
|
903
|
-
if (await
|
|
904
|
-
for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await
|
|
905
|
-
if (await
|
|
903
|
+
if (await A(t), o.current) return;
|
|
904
|
+
for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await A(25), o.current)) return;
|
|
905
|
+
if (await A(200), o.current) return;
|
|
906
906
|
}
|
|
907
907
|
})(), () => {
|
|
908
908
|
o.current = !0;
|
|
909
909
|
}), [e, t]), /* @__PURE__ */ m("span", {
|
|
910
|
-
className:
|
|
910
|
+
className: Ft.text,
|
|
911
911
|
style: {
|
|
912
912
|
fontSize: n,
|
|
913
913
|
...r.style
|
|
914
914
|
},
|
|
915
915
|
children: [i, /* @__PURE__ */ p("span", {
|
|
916
|
-
className:
|
|
916
|
+
className: Ft.cursor,
|
|
917
917
|
children: "\xA0"
|
|
918
918
|
})]
|
|
919
919
|
});
|
|
920
|
-
},
|
|
921
|
-
className:
|
|
920
|
+
}, Lt = { "elm-template": "_elm-template_18rwn_1" }, Rt = (e) => /* @__PURE__ */ p("div", {
|
|
921
|
+
className: Lt["elm-template"],
|
|
922
922
|
style: e.style,
|
|
923
923
|
children: "PLACEHOLDER"
|
|
924
|
-
}),
|
|
924
|
+
}), j = {
|
|
925
925
|
progress: "_progress_e6hmw_1",
|
|
926
926
|
container: "_container_e6hmw_27",
|
|
927
927
|
value: "_value_e6hmw_41",
|
|
928
928
|
loading: "_loading_e6hmw_56",
|
|
929
929
|
buffer: "_buffer_e6hmw_72"
|
|
930
|
-
},
|
|
931
|
-
className:
|
|
930
|
+
}, zt = ({ value: e, buffer: t, max: n = 100, weight: r = "4px", round: i = !0, color: a, loading: o = !1, style: s }) => /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("progress", {
|
|
931
|
+
className: j.progress,
|
|
932
932
|
value: e,
|
|
933
933
|
max: n
|
|
934
934
|
}), /* @__PURE__ */ m("div", {
|
|
935
|
-
className:
|
|
935
|
+
className: j.container,
|
|
936
936
|
style: {
|
|
937
937
|
"--weight": r,
|
|
938
938
|
"--border-radius": i ? "calc(var(--weight) / 2)" : void 0,
|
|
@@ -941,19 +941,19 @@ var dt = (e) => {
|
|
|
941
941
|
},
|
|
942
942
|
children: [
|
|
943
943
|
/* @__PURE__ */ p("div", {
|
|
944
|
-
className:
|
|
944
|
+
className: j.value,
|
|
945
945
|
style: { "--scale-x": `scaleX(${o ? 0 : e / n})` }
|
|
946
946
|
}),
|
|
947
|
-
o && /* @__PURE__ */ p("div", { className:
|
|
947
|
+
o && /* @__PURE__ */ p("div", { className: j.loading }),
|
|
948
948
|
/* @__PURE__ */ p("div", {
|
|
949
|
-
className:
|
|
949
|
+
className: j.buffer,
|
|
950
950
|
style: { "--scale-x": `scaleX(${o ? 0 : t == null ? e / n : t / n})` }
|
|
951
951
|
})
|
|
952
952
|
]
|
|
953
|
-
})] }),
|
|
953
|
+
})] }), Bt = {
|
|
954
954
|
container: "_container_13d02_1",
|
|
955
955
|
bar: "_bar_13d02_15"
|
|
956
|
-
},
|
|
956
|
+
}, Vt = ({ progress: e, weight: t = "4px", round: n = !0, style: r }) => {
|
|
957
957
|
let i = l(() => {
|
|
958
958
|
let t = e.reduce((e, t) => e + t.value, 0), n = e.map((e) => e.value / t * 100);
|
|
959
959
|
return e.map((e, t) => ({
|
|
@@ -963,52 +963,52 @@ var dt = (e) => {
|
|
|
963
963
|
}));
|
|
964
964
|
}, [e]);
|
|
965
965
|
return /* @__PURE__ */ p("div", {
|
|
966
|
-
className:
|
|
966
|
+
className: Bt.container,
|
|
967
967
|
style: {
|
|
968
968
|
"--weight": t,
|
|
969
969
|
"--border-radius": n ? "calc(var(--weight) / 2)" : void 0,
|
|
970
970
|
...r
|
|
971
971
|
},
|
|
972
972
|
children: i.map((e, t) => /* @__PURE__ */ p("div", {
|
|
973
|
-
className:
|
|
973
|
+
className: Bt.bar,
|
|
974
974
|
style: {
|
|
975
975
|
"--transform": `translateX(${e.start}%) scaleX(${e.scale})`,
|
|
976
976
|
"--color": e.color
|
|
977
977
|
}
|
|
978
978
|
}, t))
|
|
979
979
|
});
|
|
980
|
-
},
|
|
980
|
+
}, Ht = { wrapper: "_wrapper_17chp_1" }, Ut = Object.freeze({
|
|
981
981
|
pending: {
|
|
982
982
|
color: "#6987b8",
|
|
983
|
-
icon:
|
|
983
|
+
icon: Ge
|
|
984
984
|
},
|
|
985
985
|
error: {
|
|
986
986
|
color: "#c56565",
|
|
987
|
-
icon:
|
|
987
|
+
icon: re
|
|
988
988
|
},
|
|
989
989
|
warning: {
|
|
990
990
|
color: "#cdb57b",
|
|
991
|
-
icon:
|
|
991
|
+
icon: ne
|
|
992
992
|
},
|
|
993
993
|
success: {
|
|
994
994
|
color: "#59b57c",
|
|
995
|
-
icon:
|
|
995
|
+
icon: pe
|
|
996
996
|
}
|
|
997
|
-
}),
|
|
998
|
-
let { color: r, icon: i } =
|
|
997
|
+
}), Wt = ({ status: e, message: t, style: n }) => {
|
|
998
|
+
let { color: r, icon: i } = Ut[e];
|
|
999
999
|
return /* @__PURE__ */ m("div", {
|
|
1000
|
-
className:
|
|
1000
|
+
className: Ht.wrapper,
|
|
1001
1001
|
style: n,
|
|
1002
|
-
children: [/* @__PURE__ */ p(
|
|
1002
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1003
1003
|
d: i,
|
|
1004
1004
|
color: r,
|
|
1005
1005
|
size: "1em"
|
|
1006
|
-
}), /* @__PURE__ */ p(
|
|
1006
|
+
}), /* @__PURE__ */ p(w, {
|
|
1007
1007
|
color: r,
|
|
1008
1008
|
children: t
|
|
1009
1009
|
})]
|
|
1010
1010
|
});
|
|
1011
|
-
},
|
|
1011
|
+
}, M = {
|
|
1012
1012
|
wrapper: "_wrapper_gcui5_1",
|
|
1013
1013
|
error: "_error_gcui5_9",
|
|
1014
1014
|
"image-frame": "_image-frame_gcui5_21",
|
|
@@ -1020,7 +1020,7 @@ var dt = (e) => {
|
|
|
1020
1020
|
"alt-text": "_alt-text_gcui5_90",
|
|
1021
1021
|
modal: "_modal_gcui5_94",
|
|
1022
1022
|
"modal-image": "_modal-image_gcui5_108"
|
|
1023
|
-
},
|
|
1023
|
+
}, N = ({ src: e, alt: t, block: n = !1, enableModal: r = !1, width: i, height: a, style: o }) => {
|
|
1024
1024
|
let [c, l] = d(!0), [f, h] = d(!1), [g, _] = d(!1), v = u(null);
|
|
1025
1025
|
return s(() => {
|
|
1026
1026
|
let t = new Image();
|
|
@@ -1035,30 +1035,30 @@ var dt = (e) => {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1037
1037
|
}, []), /* @__PURE__ */ m("div", {
|
|
1038
|
-
className:
|
|
1038
|
+
className: M.wrapper,
|
|
1039
1039
|
ref: v,
|
|
1040
1040
|
style: o,
|
|
1041
1041
|
children: [
|
|
1042
1042
|
f && /* @__PURE__ */ p("div", {
|
|
1043
|
-
className:
|
|
1044
|
-
children: /* @__PURE__ */ p(
|
|
1043
|
+
className: M.error,
|
|
1044
|
+
children: /* @__PURE__ */ p(w, {
|
|
1045
1045
|
color: "#c56565",
|
|
1046
1046
|
size: "1.5rem",
|
|
1047
1047
|
children: "Error loading image"
|
|
1048
1048
|
})
|
|
1049
1049
|
}),
|
|
1050
1050
|
/* @__PURE__ */ m("div", {
|
|
1051
|
-
className:
|
|
1051
|
+
className: M["image-frame"],
|
|
1052
1052
|
style: o,
|
|
1053
1053
|
children: [c && /* @__PURE__ */ p("div", {
|
|
1054
|
-
className:
|
|
1054
|
+
className: M.fallback,
|
|
1055
1055
|
style: {
|
|
1056
1056
|
aspectRatio: i && a ? `${i} / ${a}` : "1200 / 630",
|
|
1057
1057
|
width: i ? `${i}px` : void 0,
|
|
1058
1058
|
height: a ? `${a}px` : void 0
|
|
1059
1059
|
}
|
|
1060
1060
|
}), /* @__PURE__ */ p("img", {
|
|
1061
|
-
className: n ?
|
|
1061
|
+
className: n ? M["image-block"] : M["image-inline"],
|
|
1062
1062
|
src: e,
|
|
1063
1063
|
alt: t,
|
|
1064
1064
|
width: i,
|
|
@@ -1076,24 +1076,24 @@ var dt = (e) => {
|
|
|
1076
1076
|
})]
|
|
1077
1077
|
}),
|
|
1078
1078
|
n && !c && t != null && t.trim() !== "" && /* @__PURE__ */ m("div", {
|
|
1079
|
-
className:
|
|
1080
|
-
children: [/* @__PURE__ */ p(
|
|
1081
|
-
d:
|
|
1079
|
+
className: M["alt-container"],
|
|
1080
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1081
|
+
d: He,
|
|
1082
1082
|
color: "#b69545",
|
|
1083
1083
|
style: { flexShrink: 0 }
|
|
1084
1084
|
}), /* @__PURE__ */ p("div", {
|
|
1085
|
-
className:
|
|
1086
|
-
children: /* @__PURE__ */ p(
|
|
1085
|
+
className: M["alt-text"],
|
|
1086
|
+
children: /* @__PURE__ */ p(w, {
|
|
1087
1087
|
size: "0.8rem",
|
|
1088
1088
|
children: t
|
|
1089
1089
|
})
|
|
1090
1090
|
})]
|
|
1091
1091
|
}),
|
|
1092
1092
|
g && /* @__PURE__ */ p("div", {
|
|
1093
|
-
className:
|
|
1093
|
+
className: M.modal,
|
|
1094
1094
|
onClick: () => _(!1),
|
|
1095
1095
|
children: /* @__PURE__ */ p("img", {
|
|
1096
|
-
className:
|
|
1096
|
+
className: M["modal-image"],
|
|
1097
1097
|
src: e,
|
|
1098
1098
|
alt: t,
|
|
1099
1099
|
width: i,
|
|
@@ -1102,7 +1102,7 @@ var dt = (e) => {
|
|
|
1102
1102
|
})
|
|
1103
1103
|
]
|
|
1104
1104
|
});
|
|
1105
|
-
},
|
|
1105
|
+
}, P = {
|
|
1106
1106
|
file: "_file_sk4pw_1",
|
|
1107
1107
|
"left-container": "_left-container_sk4pw_19",
|
|
1108
1108
|
"right-container": "_right-container_sk4pw_26",
|
|
@@ -1110,49 +1110,49 @@ var dt = (e) => {
|
|
|
1110
1110
|
};
|
|
1111
1111
|
//#endregion
|
|
1112
1112
|
//#region src/components/media/ElmFile.tsx
|
|
1113
|
-
function
|
|
1113
|
+
function Gt(e) {
|
|
1114
1114
|
let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
|
|
1115
1115
|
return t.length > 0 ? t[t.length - 1] : null;
|
|
1116
1116
|
}
|
|
1117
|
-
var
|
|
1117
|
+
var Kt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
1118
1118
|
let i = a(async () => {
|
|
1119
1119
|
let n;
|
|
1120
1120
|
try {
|
|
1121
1121
|
let r = await fetch(t);
|
|
1122
1122
|
if (!r.ok) throw Error("Failed to download file");
|
|
1123
1123
|
let i = await r.blob();
|
|
1124
|
-
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 ?? Gt(t) ?? "file", n.click();
|
|
1125
1125
|
} catch (e) {
|
|
1126
1126
|
console.error("ERROR:", e);
|
|
1127
1127
|
} finally {
|
|
1128
1128
|
n && URL.revokeObjectURL(n.href);
|
|
1129
1129
|
}
|
|
1130
|
-
}, [t, e]), o = e ??
|
|
1130
|
+
}, [t, e]), o = e ?? Gt(t) ?? "unknown file";
|
|
1131
1131
|
return /* @__PURE__ */ m("div", {
|
|
1132
|
-
className:
|
|
1132
|
+
className: P.file,
|
|
1133
1133
|
style: r,
|
|
1134
1134
|
children: [/* @__PURE__ */ m("div", {
|
|
1135
|
-
className:
|
|
1136
|
-
children: [/* @__PURE__ */ p(
|
|
1137
|
-
d:
|
|
1135
|
+
className: P["left-container"],
|
|
1136
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1137
|
+
d: Ee,
|
|
1138
1138
|
size: "1.25em"
|
|
1139
|
-
}), /* @__PURE__ */ p(
|
|
1139
|
+
}), /* @__PURE__ */ p(w, { children: o })]
|
|
1140
1140
|
}), /* @__PURE__ */ m("div", {
|
|
1141
|
-
className:
|
|
1141
|
+
className: P["right-container"],
|
|
1142
1142
|
children: [n && /* @__PURE__ */ p("span", {
|
|
1143
1143
|
style: { opacity: .6 },
|
|
1144
|
-
children: /* @__PURE__ */ p(
|
|
1144
|
+
children: /* @__PURE__ */ p(w, { children: n })
|
|
1145
1145
|
}), /* @__PURE__ */ p("div", {
|
|
1146
|
-
className:
|
|
1146
|
+
className: P["download-icon"],
|
|
1147
1147
|
onClick: i,
|
|
1148
|
-
children: /* @__PURE__ */ p(
|
|
1149
|
-
d:
|
|
1148
|
+
children: /* @__PURE__ */ p(x, {
|
|
1149
|
+
d: xe,
|
|
1150
1150
|
size: "1.25em"
|
|
1151
1151
|
})
|
|
1152
1152
|
})]
|
|
1153
1153
|
})]
|
|
1154
1154
|
});
|
|
1155
|
-
},
|
|
1155
|
+
}, F = {
|
|
1156
1156
|
parent: "_parent_1hx4v_1",
|
|
1157
1157
|
bookmark: "_bookmark_1hx4v_23",
|
|
1158
1158
|
image: "_image_1hx4v_42",
|
|
@@ -1161,21 +1161,21 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1161
1161
|
date: "_date_1hx4v_81",
|
|
1162
1162
|
link: "_link_1hx4v_90",
|
|
1163
1163
|
favicon: "_favicon_1hx4v_100"
|
|
1164
|
-
},
|
|
1164
|
+
}, qt = ({ hideUrl: e = !1, openInNewTab: t = !0, title: n, description: r = "No description provided", image: i, url: a, createdAt: o, updatedAt: s, onClick: c, favicon: l, style: u }) => {
|
|
1165
1165
|
let [h, g] = d(!1), _ = (e) => {
|
|
1166
1166
|
c && (e.preventDefault(), c());
|
|
1167
1167
|
}, v = r != null && r.length > 100 ? r.slice(0, 100) + "..." : r;
|
|
1168
1168
|
return /* @__PURE__ */ p("div", {
|
|
1169
|
-
className:
|
|
1169
|
+
className: F.parent,
|
|
1170
1170
|
style: u,
|
|
1171
1171
|
children: /* @__PURE__ */ m("a", {
|
|
1172
|
-
className:
|
|
1172
|
+
className: F.bookmark,
|
|
1173
1173
|
href: a,
|
|
1174
1174
|
target: t ? "_blank" : void 0,
|
|
1175
1175
|
rel: "noopener noreferrer",
|
|
1176
1176
|
onClick: _,
|
|
1177
1177
|
children: [i != null && !h && /* @__PURE__ */ p("div", {
|
|
1178
|
-
className:
|
|
1178
|
+
className: F.image,
|
|
1179
1179
|
children: /* @__PURE__ */ p("img", {
|
|
1180
1180
|
src: i,
|
|
1181
1181
|
alt: "OGP Image",
|
|
@@ -1187,16 +1187,16 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
})
|
|
1189
1189
|
}), /* @__PURE__ */ m("div", {
|
|
1190
|
-
className:
|
|
1190
|
+
className: F.typography,
|
|
1191
1191
|
children: [
|
|
1192
1192
|
/* @__PURE__ */ p("div", {
|
|
1193
|
-
className:
|
|
1194
|
-
children: /* @__PURE__ */ p(
|
|
1193
|
+
className: F.title,
|
|
1194
|
+
children: /* @__PURE__ */ p(w, {
|
|
1195
1195
|
bold: !0,
|
|
1196
1196
|
children: n ?? "No title provided"
|
|
1197
1197
|
})
|
|
1198
1198
|
}),
|
|
1199
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
1199
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(w, {
|
|
1200
1200
|
size: "0.8rem",
|
|
1201
1201
|
children: /* @__PURE__ */ p("span", {
|
|
1202
1202
|
style: { opacity: .6 },
|
|
@@ -1204,24 +1204,24 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1204
1204
|
})
|
|
1205
1205
|
}) }),
|
|
1206
1206
|
(o != null || s != null) && /* @__PURE__ */ m("div", {
|
|
1207
|
-
className:
|
|
1208
|
-
children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
1209
|
-
d:
|
|
1207
|
+
className: F.date,
|
|
1208
|
+
children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(x, {
|
|
1209
|
+
d: ue,
|
|
1210
1210
|
size: "1em"
|
|
1211
|
-
}), /* @__PURE__ */ p(
|
|
1211
|
+
}), /* @__PURE__ */ p(w, {
|
|
1212
1212
|
size: "0.8rem",
|
|
1213
1213
|
children: o
|
|
1214
|
-
})] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
1215
|
-
d:
|
|
1214
|
+
})] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(x, {
|
|
1215
|
+
d: de,
|
|
1216
1216
|
size: "1em"
|
|
1217
|
-
}), /* @__PURE__ */ p(
|
|
1217
|
+
}), /* @__PURE__ */ p(w, {
|
|
1218
1218
|
size: "0.8rem",
|
|
1219
1219
|
children: s
|
|
1220
1220
|
})] })]
|
|
1221
1221
|
}),
|
|
1222
1222
|
!e && a != null && /* @__PURE__ */ m("div", {
|
|
1223
|
-
className:
|
|
1224
|
-
children: [l && /* @__PURE__ */ p(
|
|
1223
|
+
className: F.link,
|
|
1224
|
+
children: [l && /* @__PURE__ */ p(b, { src: l }), /* @__PURE__ */ p(w, {
|
|
1225
1225
|
size: "0.8rem",
|
|
1226
1226
|
color: "#6987b8",
|
|
1227
1227
|
children: a
|
|
@@ -1231,11 +1231,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1231
1231
|
})]
|
|
1232
1232
|
})
|
|
1233
1233
|
});
|
|
1234
|
-
},
|
|
1234
|
+
}, I = {
|
|
1235
1235
|
container: "_container_1r6mu_1",
|
|
1236
1236
|
"link-container": "_link-container_1r6mu_10",
|
|
1237
1237
|
text: "_text_1r6mu_36"
|
|
1238
|
-
},
|
|
1238
|
+
}, Jt = ({ links: e, style: n }) => {
|
|
1239
1239
|
let r = u(null), [i, a] = d(!1);
|
|
1240
1240
|
return s(() => {
|
|
1241
1241
|
let e = r.current;
|
|
@@ -1245,44 +1245,44 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1245
1245
|
});
|
|
1246
1246
|
return t.observe(e), () => t.disconnect();
|
|
1247
1247
|
}, []), /* @__PURE__ */ p("nav", {
|
|
1248
|
-
className:
|
|
1248
|
+
className: I.container,
|
|
1249
1249
|
ref: r,
|
|
1250
1250
|
style: {
|
|
1251
1251
|
"--opacity": +!!i,
|
|
1252
1252
|
...n
|
|
1253
1253
|
},
|
|
1254
1254
|
children: e.map((n, r) => /* @__PURE__ */ m(t.Fragment, { children: [/* @__PURE__ */ m("div", {
|
|
1255
|
-
className:
|
|
1255
|
+
className: I["link-container"],
|
|
1256
1256
|
onClick: n.onClick,
|
|
1257
1257
|
children: [/* @__PURE__ */ p("span", {
|
|
1258
|
-
className:
|
|
1258
|
+
className: I.text,
|
|
1259
1259
|
style: { "--delay": `${r * 100}ms` },
|
|
1260
|
-
children: /* @__PURE__ */ p(
|
|
1261
|
-
d: r === 0 ?
|
|
1260
|
+
children: /* @__PURE__ */ p(x, {
|
|
1261
|
+
d: r === 0 ? Ae : r === e.length - 1 ? ae : De,
|
|
1262
1262
|
size: "1.25em"
|
|
1263
1263
|
})
|
|
1264
1264
|
}), /* @__PURE__ */ p("span", {
|
|
1265
|
-
className:
|
|
1265
|
+
className: I.text,
|
|
1266
1266
|
style: { "--delay": `${r * 100 + 50}ms` },
|
|
1267
|
-
children: /* @__PURE__ */ p(
|
|
1267
|
+
children: /* @__PURE__ */ p(w, { children: n.text })
|
|
1268
1268
|
})]
|
|
1269
1269
|
}), e.length !== r + 1 && /* @__PURE__ */ p("span", {
|
|
1270
|
-
className:
|
|
1270
|
+
className: I.text,
|
|
1271
1271
|
style: { "--delay": `${r * 100 + 100}ms` },
|
|
1272
|
-
children: /* @__PURE__ */ p(
|
|
1273
|
-
d:
|
|
1272
|
+
children: /* @__PURE__ */ p(x, {
|
|
1273
|
+
d: he,
|
|
1274
1274
|
size: "1em",
|
|
1275
1275
|
color: "#b69545"
|
|
1276
1276
|
})
|
|
1277
1277
|
})] }, r))
|
|
1278
1278
|
});
|
|
1279
|
-
},
|
|
1279
|
+
}, L = {
|
|
1280
1280
|
wrapper: "_wrapper_1tlqa_1",
|
|
1281
1281
|
"wrapper--visible": "_wrapper--visible_1tlqa_33",
|
|
1282
1282
|
partial: "_partial_1tlqa_63",
|
|
1283
1283
|
move: "_move_1tlqa_1",
|
|
1284
1284
|
text: "_text_1tlqa_104"
|
|
1285
|
-
},
|
|
1285
|
+
}, Yt = ({ position: e = "right", style: t }) => {
|
|
1286
1286
|
let [n, r] = d(!1);
|
|
1287
1287
|
s(() => {
|
|
1288
1288
|
let e = () => {
|
|
@@ -1297,7 +1297,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1297
1297
|
});
|
|
1298
1298
|
};
|
|
1299
1299
|
return /* @__PURE__ */ m("nav", {
|
|
1300
|
-
className: `${
|
|
1300
|
+
className: `${L.wrapper} ${n ? L["wrapper--visible"] : ""}`,
|
|
1301
1301
|
style: {
|
|
1302
1302
|
"--size": "64px",
|
|
1303
1303
|
left: e === "left" ? "0" : "auto",
|
|
@@ -1308,75 +1308,75 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1308
1308
|
children: [
|
|
1309
1309
|
/* @__PURE__ */ p("div", {
|
|
1310
1310
|
"aria-hidden": "true",
|
|
1311
|
-
className:
|
|
1311
|
+
className: L.partial
|
|
1312
1312
|
}),
|
|
1313
1313
|
/* @__PURE__ */ p("div", {
|
|
1314
1314
|
"aria-hidden": "true",
|
|
1315
|
-
className:
|
|
1315
|
+
className: L.partial
|
|
1316
1316
|
}),
|
|
1317
1317
|
/* @__PURE__ */ p("div", {
|
|
1318
1318
|
"aria-hidden": "true",
|
|
1319
|
-
className:
|
|
1319
|
+
className: L.partial
|
|
1320
1320
|
}),
|
|
1321
1321
|
/* @__PURE__ */ p("span", {
|
|
1322
|
-
className:
|
|
1322
|
+
className: L.text,
|
|
1323
1323
|
children: "Back to Top"
|
|
1324
1324
|
})
|
|
1325
1325
|
]
|
|
1326
1326
|
});
|
|
1327
|
-
},
|
|
1327
|
+
}, Xt = {
|
|
1328
1328
|
toc: "_toc_eubcy_1",
|
|
1329
1329
|
link: "_link_eubcy_15"
|
|
1330
|
-
},
|
|
1331
|
-
className:
|
|
1330
|
+
}, Zt = ({ headings: e, style: t }) => /* @__PURE__ */ p("nav", {
|
|
1331
|
+
className: Xt.toc,
|
|
1332
1332
|
style: t,
|
|
1333
1333
|
children: e.map((e, t) => /* @__PURE__ */ m("a", {
|
|
1334
|
-
className:
|
|
1334
|
+
className: Xt.link,
|
|
1335
1335
|
href: `#${e.id ?? e.text}`,
|
|
1336
1336
|
style: { "--padding-left": `${e.level * .5}rem` },
|
|
1337
1337
|
children: [
|
|
1338
|
-
/* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(
|
|
1338
|
+
/* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(w, {
|
|
1339
1339
|
size: "0.6rem",
|
|
1340
1340
|
color: "#6987b8",
|
|
1341
1341
|
children: `H${e.level}`
|
|
1342
1342
|
}) }),
|
|
1343
|
-
/* @__PURE__ */ p(
|
|
1344
|
-
/* @__PURE__ */ p(
|
|
1345
|
-
d:
|
|
1343
|
+
/* @__PURE__ */ p(w, { children: e.text }),
|
|
1344
|
+
/* @__PURE__ */ p(x, {
|
|
1345
|
+
d: Ve,
|
|
1346
1346
|
size: "1em",
|
|
1347
1347
|
color: "#6987b8"
|
|
1348
1348
|
})
|
|
1349
1349
|
]
|
|
1350
1350
|
}, t))
|
|
1351
|
-
}),
|
|
1351
|
+
}), Qt = { "block-fallback": "_block-fallback_adya7_1" }, $t = {
|
|
1352
1352
|
"rectangle-wave": "_rectangle-wave_gxedo_21",
|
|
1353
1353
|
"elm-rectangle-wave": "_elm-rectangle-wave_gxedo_1"
|
|
1354
|
-
},
|
|
1354
|
+
}, en = (e) => /* @__PURE__ */ p("div", {
|
|
1355
1355
|
"aria-hidden": !0,
|
|
1356
|
-
className:
|
|
1356
|
+
className: $t["rectangle-wave"],
|
|
1357
1357
|
style: e.style
|
|
1358
|
-
}),
|
|
1358
|
+
}), tn = (e) => {
|
|
1359
1359
|
let { height: t = "16rem", style: n } = e;
|
|
1360
1360
|
return /* @__PURE__ */ m("div", {
|
|
1361
|
-
className:
|
|
1361
|
+
className: Qt["block-fallback"],
|
|
1362
1362
|
style: {
|
|
1363
1363
|
"--height": t,
|
|
1364
1364
|
...n
|
|
1365
1365
|
},
|
|
1366
|
-
children: [/* @__PURE__ */ p(
|
|
1366
|
+
children: [/* @__PURE__ */ p(S, {}), /* @__PURE__ */ p(en, {})]
|
|
1367
1367
|
});
|
|
1368
|
-
},
|
|
1368
|
+
}, nn = {
|
|
1369
1369
|
circle: "_circle_ycu2l_19",
|
|
1370
1370
|
"draw-line": "_draw-line_ycu2l_1",
|
|
1371
1371
|
rotate: "_rotate_ycu2l_1"
|
|
1372
|
-
},
|
|
1372
|
+
}, rn = (e) => {
|
|
1373
1373
|
let { radius: t = 16, weight: n = 2, style: r } = e;
|
|
1374
1374
|
return /* @__PURE__ */ p("svg", {
|
|
1375
1375
|
height: t * 2,
|
|
1376
1376
|
width: t * 2,
|
|
1377
1377
|
style: r,
|
|
1378
1378
|
children: /* @__PURE__ */ p("circle", {
|
|
1379
|
-
className:
|
|
1379
|
+
className: nn.circle,
|
|
1380
1380
|
cx: t,
|
|
1381
1381
|
cy: t,
|
|
1382
1382
|
r: t - n,
|
|
@@ -1384,34 +1384,34 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1384
1384
|
strokeWidth: n
|
|
1385
1385
|
})
|
|
1386
1386
|
});
|
|
1387
|
-
},
|
|
1387
|
+
}, R = {
|
|
1388
1388
|
unsupported: "_unsupported_1xu4c_1",
|
|
1389
1389
|
message: "_message_1xu4c_13",
|
|
1390
1390
|
icon: "_icon_1xu4c_20",
|
|
1391
1391
|
details: "_details_1xu4c_24"
|
|
1392
|
-
},
|
|
1393
|
-
className:
|
|
1392
|
+
}, an = (e) => /* @__PURE__ */ m("div", {
|
|
1393
|
+
className: R.unsupported,
|
|
1394
1394
|
style: e.style,
|
|
1395
1395
|
children: [/* @__PURE__ */ m("div", {
|
|
1396
|
-
className:
|
|
1396
|
+
className: R.message,
|
|
1397
1397
|
children: [/* @__PURE__ */ p("svg", {
|
|
1398
1398
|
viewBox: "0 0 24 24",
|
|
1399
1399
|
width: "1.25rem",
|
|
1400
1400
|
height: "1.25rem",
|
|
1401
|
-
className:
|
|
1402
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
1403
|
-
}), /* @__PURE__ */ p(
|
|
1401
|
+
className: R.icon,
|
|
1402
|
+
children: /* @__PURE__ */ p("path", { d: je })
|
|
1403
|
+
}), /* @__PURE__ */ p(w, {
|
|
1404
1404
|
color: "#868e9c",
|
|
1405
1405
|
children: "UNSUPPORTED BLOCK"
|
|
1406
1406
|
})]
|
|
1407
1407
|
}), e.details && /* @__PURE__ */ p("div", {
|
|
1408
|
-
className:
|
|
1409
|
-
children: /* @__PURE__ */ p(
|
|
1408
|
+
className: R.details,
|
|
1409
|
+
children: /* @__PURE__ */ p(w, {
|
|
1410
1410
|
color: "#868e9c",
|
|
1411
1411
|
children: e.details
|
|
1412
1412
|
})
|
|
1413
1413
|
})]
|
|
1414
|
-
}),
|
|
1414
|
+
}), z = {
|
|
1415
1415
|
button: "_button_c0mex_1",
|
|
1416
1416
|
"button-ornament": "_button-ornament_c0mex_29",
|
|
1417
1417
|
normal: "_normal_c0mex_40",
|
|
@@ -1421,7 +1421,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1421
1421
|
flex: "_flex_c0mex_95",
|
|
1422
1422
|
ripple: "_ripple_c0mex_117",
|
|
1423
1423
|
"button-ripple": "_button-ripple_c0mex_1"
|
|
1424
|
-
},
|
|
1424
|
+
}, on = ({ loading: e = !1, block: t = !1, disabled: n = !1, primary: r = !1, ...i }) => {
|
|
1425
1425
|
let [o, c] = d(!1), l = u(void 0), { onClick: f } = i, h = a(() => {
|
|
1426
1426
|
!e && !n && f && (c(!0), l.current = window.setTimeout(() => c(!1), 300), f());
|
|
1427
1427
|
}, [
|
|
@@ -1433,11 +1433,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1433
1433
|
l.current && clearTimeout(l.current);
|
|
1434
1434
|
}, []), /* @__PURE__ */ m("button", {
|
|
1435
1435
|
className: [
|
|
1436
|
-
|
|
1437
|
-
!e && !n ?
|
|
1438
|
-
i.color ?
|
|
1439
|
-
!i.color && !r ?
|
|
1440
|
-
!i.color && r ?
|
|
1436
|
+
z.button,
|
|
1437
|
+
!e && !n ? z.enable : "",
|
|
1438
|
+
i.color ? z.colored : "",
|
|
1439
|
+
!i.color && !r ? z.normal : "",
|
|
1440
|
+
!i.color && r ? z.primary : ""
|
|
1441
1441
|
].filter(Boolean).join(" "),
|
|
1442
1442
|
style: {
|
|
1443
1443
|
display: t ? "flex" : "inline-flex",
|
|
@@ -1449,12 +1449,12 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1449
1449
|
},
|
|
1450
1450
|
onClick: h,
|
|
1451
1451
|
children: [
|
|
1452
|
-
o && /* @__PURE__ */ p("div", { className:
|
|
1453
|
-
e ? /* @__PURE__ */ p(
|
|
1454
|
-
className:
|
|
1452
|
+
o && /* @__PURE__ */ p("div", { className: z.ripple }),
|
|
1453
|
+
e ? /* @__PURE__ */ p(S, { size: "1.5rem" }) : /* @__PURE__ */ p("span", {
|
|
1454
|
+
className: z.flex,
|
|
1455
1455
|
children: i.children
|
|
1456
1456
|
}),
|
|
1457
|
-
/* @__PURE__ */ p("div", { className:
|
|
1457
|
+
/* @__PURE__ */ p("div", { className: z["button-ornament"] })
|
|
1458
1458
|
]
|
|
1459
1459
|
});
|
|
1460
1460
|
}, B = {
|
|
@@ -1664,11 +1664,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1664
1664
|
children: n.selectedOption.description
|
|
1665
1665
|
})] }) : /* @__PURE__ */ m("div", {
|
|
1666
1666
|
className: V.fallback,
|
|
1667
|
-
children: [/* @__PURE__ */ p(
|
|
1667
|
+
children: [/* @__PURE__ */ p(x, { d: se }), /* @__PURE__ */ p("span", { children: n.placeholder ?? "Select an option" })]
|
|
1668
1668
|
})
|
|
1669
1669
|
}),
|
|
1670
|
-
/* @__PURE__ */ p(
|
|
1671
|
-
d:
|
|
1670
|
+
/* @__PURE__ */ p(x, {
|
|
1671
|
+
d: Ve,
|
|
1672
1672
|
size: "1.5rem"
|
|
1673
1673
|
}),
|
|
1674
1674
|
r && /* @__PURE__ */ p("div", {
|
|
@@ -1679,8 +1679,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1679
1679
|
t.stopPropagation(), h(e.id);
|
|
1680
1680
|
},
|
|
1681
1681
|
children: [
|
|
1682
|
-
/* @__PURE__ */ p(
|
|
1683
|
-
d:
|
|
1682
|
+
/* @__PURE__ */ p(x, {
|
|
1683
|
+
d: he,
|
|
1684
1684
|
color: "#868e9c",
|
|
1685
1685
|
size: "0.75em"
|
|
1686
1686
|
}),
|
|
@@ -1755,27 +1755,27 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1755
1755
|
counter: "_counter_1y96m_172",
|
|
1756
1756
|
"counter-over": "_counter-over_1y96m_177"
|
|
1757
1757
|
}, un = {
|
|
1758
|
-
text:
|
|
1759
|
-
pen:
|
|
1760
|
-
email:
|
|
1761
|
-
user:
|
|
1762
|
-
lock:
|
|
1763
|
-
key:
|
|
1764
|
-
earth:
|
|
1765
|
-
tag:
|
|
1766
|
-
archive:
|
|
1767
|
-
link:
|
|
1768
|
-
search:
|
|
1758
|
+
text: Ye,
|
|
1759
|
+
pen: Ue,
|
|
1760
|
+
email: Ce,
|
|
1761
|
+
user: y,
|
|
1762
|
+
lock: Le,
|
|
1763
|
+
key: Me,
|
|
1764
|
+
earth: Se,
|
|
1765
|
+
tag: Je,
|
|
1766
|
+
archive: oe,
|
|
1767
|
+
link: Fe,
|
|
1768
|
+
search: Be
|
|
1769
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,
|
|
1770
|
+
let s = c(), l = u(null), [f, h] = d(!1), [g, _] = d(n ? "password" : "text"), { onChange: v } = o, ee = a(() => {
|
|
1771
1771
|
!t && !e && v && v("");
|
|
1772
1772
|
}, [
|
|
1773
1773
|
t,
|
|
1774
1774
|
e,
|
|
1775
1775
|
v
|
|
1776
|
-
]),
|
|
1776
|
+
]), te = a(() => {
|
|
1777
1777
|
!t && !e && _((e) => e === "text" ? "password" : "text");
|
|
1778
|
-
}, [t, e]),
|
|
1778
|
+
}, [t, e]), y = a((e) => (t) => {
|
|
1779
1779
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
|
|
1780
1780
|
}, []);
|
|
1781
1781
|
return /* @__PURE__ */ m("div", {
|
|
@@ -1807,7 +1807,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1807
1807
|
/* @__PURE__ */ m("div", {
|
|
1808
1808
|
className: U.body,
|
|
1809
1809
|
children: [
|
|
1810
|
-
o.icon && /* @__PURE__ */ p(
|
|
1810
|
+
o.icon && /* @__PURE__ */ p(x, {
|
|
1811
1811
|
d: un[o.icon],
|
|
1812
1812
|
size: "1.5rem",
|
|
1813
1813
|
color: "gray"
|
|
@@ -1835,24 +1835,24 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1835
1835
|
}),
|
|
1836
1836
|
/* @__PURE__ */ p("div", {
|
|
1837
1837
|
className: U.icon,
|
|
1838
|
-
onClick:
|
|
1839
|
-
onKeyDown:
|
|
1838
|
+
onClick: te,
|
|
1839
|
+
onKeyDown: y(te),
|
|
1840
1840
|
role: "button",
|
|
1841
1841
|
tabIndex: 0,
|
|
1842
|
-
children: /* @__PURE__ */ p(
|
|
1843
|
-
d: g === "text" ?
|
|
1842
|
+
children: /* @__PURE__ */ p(x, {
|
|
1843
|
+
d: g === "text" ? Te : we,
|
|
1844
1844
|
size: "1.75em",
|
|
1845
1845
|
color: "gray"
|
|
1846
1846
|
})
|
|
1847
1847
|
}),
|
|
1848
1848
|
/* @__PURE__ */ p("div", {
|
|
1849
1849
|
className: U.icon,
|
|
1850
|
-
onClick:
|
|
1851
|
-
onKeyDown:
|
|
1850
|
+
onClick: ee,
|
|
1851
|
+
onKeyDown: y(ee),
|
|
1852
1852
|
role: "button",
|
|
1853
1853
|
tabIndex: 0,
|
|
1854
|
-
children: /* @__PURE__ */ p(
|
|
1855
|
-
d:
|
|
1854
|
+
children: /* @__PURE__ */ p(x, {
|
|
1855
|
+
d: le,
|
|
1856
1856
|
size: "1.75em",
|
|
1857
1857
|
color: "gray"
|
|
1858
1858
|
})
|
|
@@ -1873,8 +1873,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1873
1873
|
"--opacity": t.isValid ? 1 : .5,
|
|
1874
1874
|
...t.style
|
|
1875
1875
|
},
|
|
1876
|
-
children: [/* @__PURE__ */ p(
|
|
1877
|
-
d: t.isValid ?
|
|
1876
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1877
|
+
d: t.isValid ? pe : me,
|
|
1878
1878
|
color: t.isValid ? e : void 0
|
|
1879
1879
|
}), /* @__PURE__ */ p("span", {
|
|
1880
1880
|
style: { color: t.isValid ? e : void 0 },
|
|
@@ -1912,7 +1912,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1912
1912
|
}, [e, t]), l = a((e) => {
|
|
1913
1913
|
e.stopPropagation();
|
|
1914
1914
|
}, []);
|
|
1915
|
-
return !o && !r ? null :
|
|
1915
|
+
return !o && !r ? null : Xe(/* @__PURE__ */ p("div", {
|
|
1916
1916
|
className: `${W.provider} ${o ? W["provider-enter"] : W["provider-exit"]}`,
|
|
1917
1917
|
onClick: c,
|
|
1918
1918
|
children: /* @__PURE__ */ p("div", {
|
|
@@ -1957,18 +1957,18 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1957
1957
|
}),
|
|
1958
1958
|
/* @__PURE__ */ m("div", {
|
|
1959
1959
|
className: vn.button,
|
|
1960
|
-
children: [/* @__PURE__ */ m(
|
|
1960
|
+
children: [/* @__PURE__ */ m(on, {
|
|
1961
1961
|
block: !0,
|
|
1962
1962
|
onClick: l,
|
|
1963
1963
|
loading: s,
|
|
1964
|
-
children: [/* @__PURE__ */ p(
|
|
1965
|
-
}), /* @__PURE__ */ m(
|
|
1964
|
+
children: [/* @__PURE__ */ p(x, { d: ce }), /* @__PURE__ */ p("span", { children: "Cancel" })]
|
|
1965
|
+
}), /* @__PURE__ */ m(on, {
|
|
1966
1966
|
block: !0,
|
|
1967
1967
|
onClick: u,
|
|
1968
1968
|
primary: !0,
|
|
1969
1969
|
loading: s,
|
|
1970
|
-
children: [/* @__PURE__ */ p(
|
|
1971
|
-
d:
|
|
1970
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1971
|
+
d: pe,
|
|
1972
1972
|
color: "currentColor"
|
|
1973
1973
|
}), /* @__PURE__ */ p("span", { children: "Confirm" })]
|
|
1974
1974
|
})]
|
|
@@ -2088,12 +2088,12 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2088
2088
|
className: On.snackbar,
|
|
2089
2089
|
style: t.style,
|
|
2090
2090
|
children: [
|
|
2091
|
-
t.label == null ? t.children : /* @__PURE__ */ p(
|
|
2091
|
+
t.label == null ? t.children : /* @__PURE__ */ p(w, { children: t.label }),
|
|
2092
2092
|
/* @__PURE__ */ p("div", {
|
|
2093
2093
|
className: On.icon,
|
|
2094
2094
|
onClick: t.close,
|
|
2095
|
-
children: /* @__PURE__ */ p(
|
|
2096
|
-
d:
|
|
2095
|
+
children: /* @__PURE__ */ p(x, {
|
|
2096
|
+
d: ye,
|
|
2097
2097
|
size: "1em"
|
|
2098
2098
|
})
|
|
2099
2099
|
}),
|
|
@@ -2179,20 +2179,20 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2179
2179
|
transition: "transform 200ms",
|
|
2180
2180
|
display: "flex"
|
|
2181
2181
|
},
|
|
2182
|
-
children: /* @__PURE__ */ p(
|
|
2183
|
-
d:
|
|
2182
|
+
children: /* @__PURE__ */ p(x, {
|
|
2183
|
+
d: he,
|
|
2184
2184
|
color: "#59b57c",
|
|
2185
2185
|
size: "1.25em"
|
|
2186
2186
|
})
|
|
2187
|
-
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(
|
|
2187
|
+
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(w, { children: e.summary }) })]
|
|
2188
2188
|
}), /* @__PURE__ */ p("span", {
|
|
2189
2189
|
style: {
|
|
2190
2190
|
transform: `rotate(${i ? "135deg" : "0deg"})`,
|
|
2191
2191
|
transition: "transform 200ms",
|
|
2192
2192
|
display: "flex"
|
|
2193
2193
|
},
|
|
2194
|
-
children: /* @__PURE__ */ p(
|
|
2195
|
-
d:
|
|
2194
|
+
children: /* @__PURE__ */ p(x, {
|
|
2195
|
+
d: We,
|
|
2196
2196
|
color: i ? "#b36472" : "#59b57c"
|
|
2197
2197
|
})
|
|
2198
2198
|
})]
|
|
@@ -2206,11 +2206,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2206
2206
|
onClick: a,
|
|
2207
2207
|
children: /* @__PURE__ */ m("div", {
|
|
2208
2208
|
className: q["close-button"],
|
|
2209
|
-
children: [/* @__PURE__ */ p(
|
|
2210
|
-
d:
|
|
2209
|
+
children: [/* @__PURE__ */ p(x, {
|
|
2210
|
+
d: ge,
|
|
2211
2211
|
size: "1.25em",
|
|
2212
2212
|
color: "#c56565"
|
|
2213
|
-
}), /* @__PURE__ */ p(
|
|
2213
|
+
}), /* @__PURE__ */ p(w, {
|
|
2214
2214
|
color: "#8e3636",
|
|
2215
2215
|
children: "CLOSE"
|
|
2216
2216
|
})]
|
|
@@ -2240,10 +2240,10 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2240
2240
|
width: "1rem",
|
|
2241
2241
|
height: "1rem",
|
|
2242
2242
|
children: /* @__PURE__ */ p("path", {
|
|
2243
|
-
d:
|
|
2243
|
+
d: qe,
|
|
2244
2244
|
fill: "#6987b8"
|
|
2245
2245
|
})
|
|
2246
|
-
}), /* @__PURE__ */ p(
|
|
2246
|
+
}), /* @__PURE__ */ p(w, { children: e })]
|
|
2247
2247
|
}),
|
|
2248
2248
|
/* @__PURE__ */ p("span", { className: J.spacing })
|
|
2249
2249
|
]
|
|
@@ -2306,11 +2306,12 @@ function Gn() {
|
|
|
2306
2306
|
//#endregion
|
|
2307
2307
|
//#region src/components/code/ElmShikiHighlighter.tsx
|
|
2308
2308
|
var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
2309
|
-
let [i, a] = d(`<pre>${e}</pre>`)
|
|
2309
|
+
let [i, a] = d(`<pre>${e}</pre>`);
|
|
2310
2310
|
return s(() => {
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2311
|
+
let r = !1;
|
|
2312
|
+
return Gn().then((i) => {
|
|
2313
|
+
if (!r) try {
|
|
2314
|
+
let o = i.codeToHtml(e, {
|
|
2314
2315
|
lang: t,
|
|
2315
2316
|
themes: {
|
|
2316
2317
|
dark: "vitesse-dark",
|
|
@@ -2320,13 +2321,16 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2320
2321
|
"#ffffff": "transparent",
|
|
2321
2322
|
"#121212": "transparent"
|
|
2322
2323
|
}
|
|
2323
|
-
})
|
|
2324
|
-
|
|
2325
|
-
|
|
2324
|
+
});
|
|
2325
|
+
r || (a(o), n?.(!0));
|
|
2326
|
+
} catch {
|
|
2327
|
+
r || n?.(!0);
|
|
2326
2328
|
}
|
|
2327
2329
|
}).catch(() => {
|
|
2328
|
-
|
|
2329
|
-
})
|
|
2330
|
+
r || n?.(!0);
|
|
2331
|
+
}), () => {
|
|
2332
|
+
r = !0;
|
|
2333
|
+
};
|
|
2330
2334
|
}, [
|
|
2331
2335
|
e,
|
|
2332
2336
|
t,
|
|
@@ -2340,28 +2344,24 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2340
2344
|
})
|
|
2341
2345
|
});
|
|
2342
2346
|
}, qn = ({ code: e, language: t = "txt", caption: n, style: r }) => {
|
|
2343
|
-
let [i, o] = d(!1), [c, l] = d(!1), [f, h] = d(!1),
|
|
2344
|
-
s(() =>
|
|
2345
|
-
|
|
2346
|
-
}, 150), () => {
|
|
2347
|
-
b.current && clearTimeout(b.current);
|
|
2348
|
-
}), [e]), s(() => {
|
|
2349
|
-
let e = v.current;
|
|
2347
|
+
let [i, o] = d(!1), [c, l] = d(!1), [f, h] = d(!1), g = u(null), _ = u(null);
|
|
2348
|
+
s(() => {
|
|
2349
|
+
let e = g.current;
|
|
2350
2350
|
if (!e) return;
|
|
2351
2351
|
let t = new IntersectionObserver(([e]) => {
|
|
2352
2352
|
h(e.isIntersecting);
|
|
2353
2353
|
});
|
|
2354
2354
|
return t.observe(e), () => t.disconnect();
|
|
2355
2355
|
}, []);
|
|
2356
|
-
let
|
|
2356
|
+
let v = a(() => {
|
|
2357
2357
|
navigator.clipboard.writeText(e).then(() => {
|
|
2358
|
-
l(!0),
|
|
2358
|
+
l(!0), _.current && clearTimeout(_.current), _.current = setTimeout(() => l(!1), 2e3);
|
|
2359
2359
|
});
|
|
2360
2360
|
}, [e]);
|
|
2361
2361
|
return s(() => () => {
|
|
2362
|
-
|
|
2362
|
+
_.current && clearTimeout(_.current);
|
|
2363
2363
|
}, []), /* @__PURE__ */ m("div", {
|
|
2364
|
-
ref:
|
|
2364
|
+
ref: g,
|
|
2365
2365
|
className: X.wrapper,
|
|
2366
2366
|
style: {
|
|
2367
2367
|
opacity: +!!f,
|
|
@@ -2371,21 +2371,21 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2371
2371
|
className: X.header,
|
|
2372
2372
|
children: [/* @__PURE__ */ m("div", {
|
|
2373
2373
|
className: X.header__left,
|
|
2374
|
-
children: [/* @__PURE__ */ p(
|
|
2374
|
+
children: [/* @__PURE__ */ p(nt, {
|
|
2375
2375
|
language: t,
|
|
2376
2376
|
size: 20
|
|
2377
2377
|
}), /* @__PURE__ */ p("span", {
|
|
2378
2378
|
className: X.caption,
|
|
2379
|
-
children: /* @__PURE__ */ p(
|
|
2379
|
+
children: /* @__PURE__ */ p(w, { children: n ?? t })
|
|
2380
2380
|
})]
|
|
2381
2381
|
}), /* @__PURE__ */ p("div", {
|
|
2382
2382
|
className: X.header__right,
|
|
2383
2383
|
children: /* @__PURE__ */ p("div", {
|
|
2384
2384
|
className: X["copy-icon"],
|
|
2385
|
-
onClick:
|
|
2386
|
-
children: /* @__PURE__ */ p(
|
|
2385
|
+
onClick: v,
|
|
2386
|
+
children: /* @__PURE__ */ p(x, {
|
|
2387
2387
|
size: "1.25em",
|
|
2388
|
-
d: c ?
|
|
2388
|
+
d: c ? _e : ve,
|
|
2389
2389
|
useThemeColor: c
|
|
2390
2390
|
})
|
|
2391
2391
|
})
|
|
@@ -2396,14 +2396,14 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2396
2396
|
className: X["code-body"],
|
|
2397
2397
|
style: { opacity: +!!i },
|
|
2398
2398
|
children: /* @__PURE__ */ p(Kn, {
|
|
2399
|
-
code:
|
|
2399
|
+
code: e,
|
|
2400
2400
|
language: t,
|
|
2401
2401
|
onRendered: o
|
|
2402
2402
|
})
|
|
2403
2403
|
}), /* @__PURE__ */ p("div", {
|
|
2404
2404
|
className: X.fallback,
|
|
2405
2405
|
style: { opacity: +!i },
|
|
2406
|
-
children: /* @__PURE__ */ p(
|
|
2406
|
+
children: /* @__PURE__ */ p(S, { size: "48px" })
|
|
2407
2407
|
})]
|
|
2408
2408
|
})]
|
|
2409
2409
|
});
|
|
@@ -2431,7 +2431,7 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2431
2431
|
"color-bg": "_color-bg_yiibu_1",
|
|
2432
2432
|
text: "_text_yiibu_17"
|
|
2433
2433
|
}, Xn = ({ color: e, style: t }) => {
|
|
2434
|
-
let [n, r] = d(!1), i = u(null), o =
|
|
2434
|
+
let [n, r] = d(!1), i = u(null), o = ee(e), { hue: s, saturation: c, lightness: l } = v(e), h = te(o), g = `rgb(${o.red}, ${o.green}, ${o.blue})`, _ = `hsl(${Math.floor(s)}, ${Math.floor(c * 100)}%, ${Math.floor(l * 100)}%)`, y = a((e) => {
|
|
2435
2435
|
navigator.clipboard.writeText(e).then(() => {
|
|
2436
2436
|
r(!0), i.current && clearTimeout(i.current), i.current = setTimeout(() => r(!1), 1500);
|
|
2437
2437
|
});
|
|
@@ -2445,31 +2445,31 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2445
2445
|
original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2446
2446
|
className: Z["color-bg"],
|
|
2447
2447
|
style: { "--background-color": e },
|
|
2448
|
-
onClick: () =>
|
|
2449
|
-
children: n && /* @__PURE__ */ p(
|
|
2450
|
-
d:
|
|
2448
|
+
onClick: () => y(h),
|
|
2449
|
+
children: n && /* @__PURE__ */ p(x, {
|
|
2450
|
+
d: fe,
|
|
2451
2451
|
size: "1em",
|
|
2452
2452
|
color: "white"
|
|
2453
2453
|
})
|
|
2454
2454
|
}), /* @__PURE__ */ p("div", {
|
|
2455
2455
|
className: Z.text,
|
|
2456
|
-
onClick: () =>
|
|
2456
|
+
onClick: () => y(h),
|
|
2457
2457
|
children: h
|
|
2458
2458
|
})] }),
|
|
2459
2459
|
tooltip: /* @__PURE__ */ m(f, { children: [
|
|
2460
2460
|
/* @__PURE__ */ p("div", {
|
|
2461
2461
|
className: Z.text,
|
|
2462
|
-
onClick: () =>
|
|
2462
|
+
onClick: () => y(h),
|
|
2463
2463
|
children: h
|
|
2464
2464
|
}),
|
|
2465
2465
|
/* @__PURE__ */ p("div", {
|
|
2466
2466
|
className: Z.text,
|
|
2467
|
-
onClick: () =>
|
|
2467
|
+
onClick: () => y(g),
|
|
2468
2468
|
children: g
|
|
2469
2469
|
}),
|
|
2470
2470
|
/* @__PURE__ */ p("div", {
|
|
2471
2471
|
className: Z.text,
|
|
2472
|
-
onClick: () =>
|
|
2472
|
+
onClick: () => y(_),
|
|
2473
2473
|
children: _
|
|
2474
2474
|
})
|
|
2475
2475
|
] })
|
|
@@ -2565,7 +2565,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2565
2565
|
children: [
|
|
2566
2566
|
/* @__PURE__ */ m("header", {
|
|
2567
2567
|
className: Q.header,
|
|
2568
|
-
children: [/* @__PURE__ */ p(
|
|
2568
|
+
children: [/* @__PURE__ */ p(x, { d: be }), /* @__PURE__ */ p("input", {
|
|
2569
2569
|
ref: h,
|
|
2570
2570
|
className: Q.input,
|
|
2571
2571
|
value: r,
|
|
@@ -2578,7 +2578,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2578
2578
|
className: Q.body,
|
|
2579
2579
|
children: o.length === 0 ? /* @__PURE__ */ p("div", {
|
|
2580
2580
|
className: Q["empty-result"],
|
|
2581
|
-
children: /* @__PURE__ */ p(
|
|
2581
|
+
children: /* @__PURE__ */ p(w, { children: "search anything..." })
|
|
2582
2582
|
}) : o.map((e, t) => /* @__PURE__ */ m("button", {
|
|
2583
2583
|
className: `${Q.command} ${t === l ? Q["command-selected"] : ""}`,
|
|
2584
2584
|
onClick: () => {
|
|
@@ -2589,8 +2589,8 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2589
2589
|
className: Q["command-icon"],
|
|
2590
2590
|
src: e.icon,
|
|
2591
2591
|
alt: e.label
|
|
2592
|
-
}) : /* @__PURE__ */ p(
|
|
2593
|
-
d:
|
|
2592
|
+
}) : /* @__PURE__ */ p(x, {
|
|
2593
|
+
d: be,
|
|
2594
2594
|
size: "1rem"
|
|
2595
2595
|
}),
|
|
2596
2596
|
e.tag ? /* @__PURE__ */ p("div", {
|
|
@@ -2598,7 +2598,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2598
2598
|
style: { "--tag-color": _(-.3, er[e.tag.color]) },
|
|
2599
2599
|
children: e.tag.name
|
|
2600
2600
|
}) : /* @__PURE__ */ p("div", { className: Q.tag }),
|
|
2601
|
-
/* @__PURE__ */ p(
|
|
2601
|
+
/* @__PURE__ */ p(w, {
|
|
2602
2602
|
style: {
|
|
2603
2603
|
whiteSpace: "nowrap",
|
|
2604
2604
|
overflow: "hidden",
|
|
@@ -2607,7 +2607,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2607
2607
|
},
|
|
2608
2608
|
children: e.label
|
|
2609
2609
|
}),
|
|
2610
|
-
/* @__PURE__ */ p(
|
|
2610
|
+
/* @__PURE__ */ p(w, {
|
|
2611
2611
|
style: {
|
|
2612
2612
|
opacity: .4,
|
|
2613
2613
|
whiteSpace: "nowrap",
|
|
@@ -2616,16 +2616,16 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2616
2616
|
},
|
|
2617
2617
|
children: e.description ?? "-"
|
|
2618
2618
|
}),
|
|
2619
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
2619
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(x, { d: Ne }) })
|
|
2620
2620
|
]
|
|
2621
2621
|
}, e.id))
|
|
2622
2622
|
}),
|
|
2623
2623
|
/* @__PURE__ */ m("footer", {
|
|
2624
2624
|
className: Q.footer,
|
|
2625
|
-
children: [/* @__PURE__ */ p(
|
|
2625
|
+
children: [/* @__PURE__ */ p(w, {
|
|
2626
2626
|
kbd: !0,
|
|
2627
2627
|
children: "Esc"
|
|
2628
|
-
}), /* @__PURE__ */ p(
|
|
2628
|
+
}), /* @__PURE__ */ p(w, { children: "Close" })]
|
|
2629
2629
|
})
|
|
2630
2630
|
]
|
|
2631
2631
|
});
|
|
@@ -2649,7 +2649,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2649
2649
|
return a.katex ? /* @__PURE__ */ p(Yn, {
|
|
2650
2650
|
expression: a.text,
|
|
2651
2651
|
block: !1
|
|
2652
|
-
}, i) : /* @__PURE__ */ p(
|
|
2652
|
+
}, i) : /* @__PURE__ */ p(w, {
|
|
2653
2653
|
color: a.color,
|
|
2654
2654
|
backgroundColor: a.backgroundColor,
|
|
2655
2655
|
bold: a.bold,
|
|
@@ -2665,7 +2665,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2665
2665
|
},
|
|
2666
2666
|
Icon: (e, t, n, r) => {
|
|
2667
2667
|
let i = e.id ?? n;
|
|
2668
|
-
return /* @__PURE__ */ p(
|
|
2668
|
+
return /* @__PURE__ */ p(b, {
|
|
2669
2669
|
src: e.props.src,
|
|
2670
2670
|
alt: e.props.alt
|
|
2671
2671
|
}, i);
|
|
@@ -2678,14 +2678,14 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2678
2678
|
let i = e.id ?? n;
|
|
2679
2679
|
return /* @__PURE__ */ p(O, {
|
|
2680
2680
|
level: e.props.level,
|
|
2681
|
-
id:
|
|
2681
|
+
id: Ze(sr(e.slots.default)),
|
|
2682
2682
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2683
2683
|
children: t(e.slots.default)
|
|
2684
2684
|
}, i);
|
|
2685
2685
|
},
|
|
2686
2686
|
Paragraph: (e, t, n, r) => {
|
|
2687
2687
|
let i = e.id ?? n;
|
|
2688
|
-
return /* @__PURE__ */ p(
|
|
2688
|
+
return /* @__PURE__ */ p(wt, {
|
|
2689
2689
|
backgroundColor: e.props?.backgroundColor,
|
|
2690
2690
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2691
2691
|
children: t(e.slots.default)
|
|
@@ -2697,7 +2697,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2697
2697
|
},
|
|
2698
2698
|
List: (e, t, n, r) => {
|
|
2699
2699
|
let i = e.id ?? n;
|
|
2700
|
-
return /* @__PURE__ */ p(
|
|
2700
|
+
return /* @__PURE__ */ p(Pt, {
|
|
2701
2701
|
listStyle: e.props?.listStyle === "unordered" ? "unordered" : "ordered",
|
|
2702
2702
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2703
2703
|
children: t(e.slots.default)
|
|
@@ -2705,7 +2705,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2705
2705
|
},
|
|
2706
2706
|
BlockQuote: (e, t, n, r) => {
|
|
2707
2707
|
let i = e.id ?? n;
|
|
2708
|
-
return /* @__PURE__ */ p(
|
|
2708
|
+
return /* @__PURE__ */ p(Tt, {
|
|
2709
2709
|
cite: e.props?.cite,
|
|
2710
2710
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2711
2711
|
children: t(e.slots.default)
|
|
@@ -2713,7 +2713,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2713
2713
|
},
|
|
2714
2714
|
Callout: (e, t, n, r) => {
|
|
2715
2715
|
let i = e.id ?? n;
|
|
2716
|
-
return /* @__PURE__ */ p(
|
|
2716
|
+
return /* @__PURE__ */ p(Ot, {
|
|
2717
2717
|
type: e.props?.type,
|
|
2718
2718
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2719
2719
|
children: t(e.slots.default)
|
|
@@ -2721,7 +2721,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2721
2721
|
},
|
|
2722
2722
|
Divider: (e, t, n, r) => {
|
|
2723
2723
|
let i = e.id ?? n;
|
|
2724
|
-
return /* @__PURE__ */ p(
|
|
2724
|
+
return /* @__PURE__ */ p(E, { style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0 }, i);
|
|
2725
2725
|
},
|
|
2726
2726
|
Toggle: (e, t, n, r) => {
|
|
2727
2727
|
let i = e.id ?? n;
|
|
@@ -2733,7 +2733,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2733
2733
|
},
|
|
2734
2734
|
Bookmark: (e, t, n, r) => {
|
|
2735
2735
|
let i = e.id ?? n;
|
|
2736
|
-
return /* @__PURE__ */ p(
|
|
2736
|
+
return /* @__PURE__ */ p(qt, {
|
|
2737
2737
|
url: e.props.url,
|
|
2738
2738
|
title: e.props.title,
|
|
2739
2739
|
description: e.props.description,
|
|
@@ -2743,7 +2743,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2743
2743
|
},
|
|
2744
2744
|
File: (e, t, n, r) => {
|
|
2745
2745
|
let i = e.id ?? n;
|
|
2746
|
-
return /* @__PURE__ */ p(
|
|
2746
|
+
return /* @__PURE__ */ p(Kt, {
|
|
2747
2747
|
src: e.props.src,
|
|
2748
2748
|
name: e.props.name,
|
|
2749
2749
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2751,7 +2751,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2751
2751
|
},
|
|
2752
2752
|
Image: (e, t, n, r) => {
|
|
2753
2753
|
let i = e.id ?? n;
|
|
2754
|
-
return /* @__PURE__ */ p(
|
|
2754
|
+
return /* @__PURE__ */ p(N, {
|
|
2755
2755
|
src: e.props.src,
|
|
2756
2756
|
alt: e.props.alt,
|
|
2757
2757
|
width: e.props.width,
|
|
@@ -2780,7 +2780,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2780
2780
|
Mermaid: (e, t, r, i) => {
|
|
2781
2781
|
let a = e.id ?? r;
|
|
2782
2782
|
return /* @__PURE__ */ p(n, {
|
|
2783
|
-
fallback: /* @__PURE__ */ p(
|
|
2783
|
+
fallback: /* @__PURE__ */ p(tn, {}),
|
|
2784
2784
|
children: /* @__PURE__ */ p(or, {
|
|
2785
2785
|
code: e.props.code,
|
|
2786
2786
|
style: r === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2836,7 +2836,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2836
2836
|
},
|
|
2837
2837
|
Unsupported: (e, t, n, r) => {
|
|
2838
2838
|
let i = e.id ?? n;
|
|
2839
|
-
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(
|
|
2839
|
+
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(an, {
|
|
2840
2840
|
details: e.props?.details ?? `Unsupported component type: ${e.type}`,
|
|
2841
2841
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2842
2842
|
}, i);
|
|
@@ -2850,7 +2850,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2850
2850
|
return s ? s(e, a, n, {
|
|
2851
2851
|
skipUnsupportedComponentWarning: t,
|
|
2852
2852
|
style: r
|
|
2853
|
-
}) : t ? null : /* @__PURE__ */ p(
|
|
2853
|
+
}) : t ? null : /* @__PURE__ */ p(an, { details: `Unsupported component type: ${e.type}` }, o);
|
|
2854
2854
|
});
|
|
2855
2855
|
return /* @__PURE__ */ p("div", {
|
|
2856
2856
|
className: ar["jarkup-body"],
|
|
@@ -2861,7 +2861,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2861
2861
|
children: a(e)
|
|
2862
2862
|
});
|
|
2863
2863
|
}, ur = { "markdown-body": "_markdown-body_130yx_1" }, dr = {
|
|
2864
|
-
blockquote: (e, t, n) => !e.tokens || e.tokens.length === 0 ? null : /* @__PURE__ */ p(
|
|
2864
|
+
blockquote: (e, t, n) => !e.tokens || e.tokens.length === 0 ? null : /* @__PURE__ */ p(Tt, { children: t(e.tokens.flatMap((e) => e.type === "paragraph" && e.tokens ? e.tokens : [e])) }, n),
|
|
2865
2865
|
br: (e, t, n) => /* @__PURE__ */ p("br", {}, n),
|
|
2866
2866
|
checkbox: (e, t, n) => /* @__PURE__ */ p(sn, {
|
|
2867
2867
|
label: e.raw,
|
|
@@ -2871,22 +2871,22 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2871
2871
|
code: e.text.trim(),
|
|
2872
2872
|
language: e.lang
|
|
2873
2873
|
}, n),
|
|
2874
|
-
codespan: (e, t, n) => /* @__PURE__ */ p(
|
|
2874
|
+
codespan: (e, t, n) => /* @__PURE__ */ p(w, {
|
|
2875
2875
|
code: !0,
|
|
2876
2876
|
children: e.text
|
|
2877
2877
|
}, n),
|
|
2878
2878
|
def: () => null,
|
|
2879
|
-
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2879
|
+
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
|
|
2880
2880
|
strikethrough: !0,
|
|
2881
2881
|
children: t(e.tokens)
|
|
2882
|
-
}, n) : /* @__PURE__ */ p(
|
|
2882
|
+
}, n) : /* @__PURE__ */ p(w, {
|
|
2883
2883
|
strikethrough: !0,
|
|
2884
2884
|
children: e.text
|
|
2885
2885
|
}, n),
|
|
2886
|
-
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2886
|
+
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
|
|
2887
2887
|
italic: !0,
|
|
2888
2888
|
children: t(e.tokens)
|
|
2889
|
-
}, n) : /* @__PURE__ */ p(
|
|
2889
|
+
}, n) : /* @__PURE__ */ p(w, {
|
|
2890
2890
|
italic: !0,
|
|
2891
2891
|
children: e.text
|
|
2892
2892
|
}, n),
|
|
@@ -2901,35 +2901,35 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2901
2901
|
text: e.text
|
|
2902
2902
|
}, n);
|
|
2903
2903
|
},
|
|
2904
|
-
hr: (e, t, n) => /* @__PURE__ */ p(
|
|
2904
|
+
hr: (e, t, n) => /* @__PURE__ */ p(E, {}, n),
|
|
2905
2905
|
html: () => null,
|
|
2906
|
-
image: (e, t, n) => /* @__PURE__ */ p(
|
|
2906
|
+
image: (e, t, n) => /* @__PURE__ */ p(N, {
|
|
2907
2907
|
block: !0,
|
|
2908
2908
|
enableModal: !0,
|
|
2909
2909
|
src: e.href,
|
|
2910
2910
|
alt: e.text
|
|
2911
2911
|
}, n),
|
|
2912
|
-
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2912
|
+
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
|
|
2913
2913
|
href: e.href,
|
|
2914
2914
|
children: t(e.tokens)
|
|
2915
|
-
}, n) : /* @__PURE__ */ p(
|
|
2915
|
+
}, n) : /* @__PURE__ */ p(w, {
|
|
2916
2916
|
href: e.href,
|
|
2917
2917
|
children: e.text
|
|
2918
2918
|
}, n),
|
|
2919
2919
|
list: (e, t, n) => {
|
|
2920
2920
|
let r = e.items.map((e, n) => /* @__PURE__ */ p("li", { children: t(e.tokens) }, n));
|
|
2921
|
-
return /* @__PURE__ */ p(
|
|
2921
|
+
return /* @__PURE__ */ p(Pt, {
|
|
2922
2922
|
listStyle: e.ordered ? "ordered" : "unordered",
|
|
2923
2923
|
children: r
|
|
2924
2924
|
}, n);
|
|
2925
2925
|
},
|
|
2926
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(
|
|
2927
|
+
paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(wt, { children: t(e.tokens) }, n) : null,
|
|
2928
2928
|
space: () => null,
|
|
2929
|
-
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2929
|
+
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
|
|
2930
2930
|
bold: !0,
|
|
2931
2931
|
children: t(e.tokens)
|
|
2932
|
-
}, n) : /* @__PURE__ */ p(
|
|
2932
|
+
}, n) : /* @__PURE__ */ p(w, {
|
|
2933
2933
|
bold: !0,
|
|
2934
2934
|
children: e.text
|
|
2935
2935
|
}, n),
|
|
@@ -2940,7 +2940,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2940
2940
|
body: /* @__PURE__ */ p(Ln, { children: a })
|
|
2941
2941
|
}, n);
|
|
2942
2942
|
},
|
|
2943
|
-
text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2943
|
+
text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, { children: t(e.tokens) }, n) : /* @__PURE__ */ p(w, { children: e.text }, n)
|
|
2944
2944
|
}, fr = ({ markdown: e, style: t, renderFunctionMap: n }) => {
|
|
2945
2945
|
let r = {
|
|
2946
2946
|
...dr,
|
|
@@ -2948,7 +2948,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2948
2948
|
}, i = (e) => e.map((e, t) => {
|
|
2949
2949
|
let n = r[e.type];
|
|
2950
2950
|
return n ? n(e, i, t) : null;
|
|
2951
|
-
}), a =
|
|
2951
|
+
}), a = Qe.setOptions({ gfm: !0 }).lexer(e);
|
|
2952
2952
|
return /* @__PURE__ */ p("div", {
|
|
2953
2953
|
className: ur["markdown-body"],
|
|
2954
2954
|
style: {
|
|
@@ -3016,7 +3016,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
3016
3016
|
});
|
|
3017
3017
|
}, mr = ({ oEmbed: e, style: t }) => e.type === "photo" ? /* @__PURE__ */ p("div", {
|
|
3018
3018
|
style: t,
|
|
3019
|
-
children: /* @__PURE__ */ p(
|
|
3019
|
+
children: /* @__PURE__ */ p(N, {
|
|
3020
3020
|
src: e.url,
|
|
3021
3021
|
alt: e.title,
|
|
3022
3022
|
width: e.width,
|
|
@@ -3032,10 +3032,10 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
3032
3032
|
dangerouslySetInnerHTML: { __html: e.html }
|
|
3033
3033
|
}) : /* @__PURE__ */ p("div", {
|
|
3034
3034
|
style: t,
|
|
3035
|
-
children: /* @__PURE__ */ p(
|
|
3035
|
+
children: /* @__PURE__ */ p(w, {
|
|
3036
3036
|
href: e.author_url ?? e.provider_url ?? "#",
|
|
3037
3037
|
children: e.title ?? e.author_name ?? e.provider_name ?? "Link"
|
|
3038
3038
|
})
|
|
3039
3039
|
});
|
|
3040
3040
|
//#endregion
|
|
3041
|
-
export {
|
|
3041
|
+
export { mt as ElmArrowIcon, tn as ElmBlockFallback, Tt as ElmBlockQuote, qt as ElmBookmark, _t as ElmBookmarkIcon, Jt as ElmBreadcrumb, on as ElmButton, Ot as ElmCallout, sn as ElmCheckbox, qn as ElmCodeBlock, Xn as ElmColorSample, $n as ElmColorTable, hn as ElmColumn, _n as ElmColumnList, nr as ElmCommandPalette, bn as ElmConfirmModal, bt as ElmCubeIcon, xn as ElmDesktopWindow, E as ElmDivider, S as ElmDotLoadingIcon, Kt as ElmFile, jt as ElmFragmentIdentifier, O as ElmHeading, N as ElmImage, b as ElmInlineIcon, w as ElmInlineText, lr as ElmJarkup, ir as ElmJsonComponentRenderer, Yn as ElmKatex, nt as ElmLanguageIcon, Pt as ElmList, St as ElmLoginIcon, fr as ElmMarkdown, x as ElmMdiIcon, e as ElmMermaid, yn as ElmModal, Vt as ElmMultiProgress, mr as ElmOEmbed, Yt as ElmPageTop, wt as ElmParagraph, Cn as ElmParallax, zt as ElmProgress, en as ElmRectangleWave, cn as ElmSelect, Kn as ElmShikiHighlighter, Dn as ElmSimpleTooltip, kn as ElmSnackbar, jn as ElmSnackbarContainer, rn as ElmSpinner, ct as ElmSquareLoadingIcon, Wt as ElmStatusMessage, ln as ElmSwitch, In as ElmTable, Ln as ElmTableBody, zn as ElmTableCell, Vn as ElmTableHeader, Zt as ElmTableOfContents, Y as ElmTableRow, Mn as ElmTabs, Rt as ElmTemplate, dn as ElmTextField, Nn as ElmToggle, pt as ElmToggleTheme, En as ElmTooltip, pr as ElmTyping, It as ElmTypingAnimation, an as ElmUnsupportedBlock, pn as ElmValidation, rt as LANGUAGES };
|