@quietmind/mdx-docs 0.1.15 → 0.1.16
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/dist/favicon.svg +12 -0
- package/dist/icon.svg +22 -0
- package/dist/index.js +277 -237
- package/dist/og-image.png +0 -0
- package/package.json +1 -1
- package/dist/vite.svg +0 -1
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
4
|
+
<stop offset="0%" stop-color="#7c3aed"/>
|
|
5
|
+
<stop offset="100%" stop-color="#22d3ee"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<polygon
|
|
9
|
+
points="11.2,3.5 7.8,11.5 10.6,11.5 8.8,20 15.6,9.8 12.6,9.8 16,3.5"
|
|
10
|
+
fill="url(#grad)"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
package/dist/icon.svg
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="500" height="500" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
2
|
+
|
|
3
|
+
<defs>
|
|
4
|
+
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
5
|
+
<stop offset="0%" stop-color="#7c3aed"/>
|
|
6
|
+
<stop offset="100%" stop-color="#22d3ee"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
|
|
10
|
+
<!-- Single continuous document outline -->
|
|
11
|
+
<path
|
|
12
|
+
d="M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2Z"
|
|
13
|
+
stroke="url(#grad)"
|
|
14
|
+
/>
|
|
15
|
+
|
|
16
|
+
<!-- Lightning bolt -->
|
|
17
|
+
<polygon
|
|
18
|
+
points="11.8,6.6 9.4,12.8 11.8,12.8 10.3,18.2 14.8,11.4 12.3,11.4 15.8,6.6"
|
|
19
|
+
fill="url(#grad)"
|
|
20
|
+
/>
|
|
21
|
+
|
|
22
|
+
</svg>
|
package/dist/index.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import X, { createContext as Z, useContext as K, useState as F, Suspense as
|
|
1
|
+
import { jsx as a, jsxs as m, Fragment as U } from "react/jsx-runtime";
|
|
2
|
+
import X, { createContext as Z, useContext as K, useState as F, Suspense as q, useEffect as x, useLayoutEffect as Y, useMemo as V, StrictMode as J } from "react";
|
|
3
3
|
import { createRoot as Q } from "react-dom/client";
|
|
4
|
-
import { AppBar as ee, Toolbar as P, IconButton as
|
|
5
|
-
import { Link as L, Routes as
|
|
6
|
-
import
|
|
4
|
+
import { AppBar as ee, Toolbar as P, IconButton as v, Typography as te, Box as f, useTheme as D, Tooltip as re, CircularProgress as ae, List as ne, ListItem as oe, ListItemButton as se, ListItemText as ie, Drawer as $, createTheme as le, ThemeProvider as ce, CssBaseline as de } from "@mui/material";
|
|
5
|
+
import { Link as L, Routes as pe, Route as I, useLocation as B, BrowserRouter as ue, useNavigate as fe } from "react-router-dom";
|
|
6
|
+
import ge from "@mui/icons-material/DarkMode";
|
|
7
7
|
import me from "@mui/icons-material/LightMode";
|
|
8
|
-
import
|
|
9
|
-
import { MDXProvider as
|
|
8
|
+
import be from "@mui/icons-material/Menu";
|
|
9
|
+
import { MDXProvider as he } from "@mdx-js/react";
|
|
10
10
|
import ye from "@mui/icons-material/Check";
|
|
11
11
|
import Se from "@mui/icons-material/ContentCopy";
|
|
12
12
|
import { Highlight as M } from "prism-react-renderer";
|
|
13
13
|
import xe from "prismjs";
|
|
14
|
-
const j = Z(null),
|
|
14
|
+
const j = Z(null), ke = ({ pages: e, site: t, children: r }) => /* @__PURE__ */ a(j.Provider, { value: { pages: e, site: t }, children: r }), E = () => {
|
|
15
15
|
const e = K(j);
|
|
16
16
|
if (!e)
|
|
17
17
|
throw new Error("useDocsContext must be used within a DocsProvider");
|
|
18
18
|
return e;
|
|
19
19
|
};
|
|
20
|
-
function
|
|
21
|
-
const { site:
|
|
22
|
-
return /* @__PURE__ */
|
|
20
|
+
function we({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
21
|
+
const { site: n } = E();
|
|
22
|
+
return /* @__PURE__ */ a(
|
|
23
23
|
ee,
|
|
24
24
|
{
|
|
25
25
|
position: "fixed",
|
|
26
|
-
sx: { zIndex: (
|
|
26
|
+
sx: { zIndex: (i) => i.zIndex.drawer + 1 },
|
|
27
27
|
children: /* @__PURE__ */ m(P, { children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
28
|
+
/* @__PURE__ */ a(
|
|
29
|
+
v,
|
|
30
30
|
{
|
|
31
31
|
color: "inherit",
|
|
32
32
|
edge: "start",
|
|
33
33
|
onClick: r,
|
|
34
34
|
"aria-label": "Toggle navigation menu",
|
|
35
35
|
sx: { mr: 2, display: { sm: "none" } },
|
|
36
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ a(be, {})
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ a(
|
|
40
40
|
te,
|
|
41
41
|
{
|
|
42
42
|
variant: "h6",
|
|
@@ -50,36 +50,23 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
|
50
50
|
color: "inherit"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
children:
|
|
53
|
+
children: n.name
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
56
|
+
/* @__PURE__ */ a(f, { sx: { flexGrow: 1 } }),
|
|
57
|
+
/* @__PURE__ */ a(
|
|
58
|
+
v,
|
|
59
59
|
{
|
|
60
60
|
onClick: () => t(!e),
|
|
61
61
|
color: "inherit",
|
|
62
62
|
"aria-label": e ? "Switch to light mode" : "Switch to dark mode",
|
|
63
63
|
sx: {
|
|
64
64
|
ml: 1,
|
|
65
|
-
"&:focus": {
|
|
66
|
-
outline: "none"
|
|
67
|
-
},
|
|
68
|
-
"&:focus-visible": {
|
|
69
|
-
outline: "none"
|
|
70
|
-
},
|
|
71
|
-
"&:focus-within": {
|
|
72
|
-
outline: "none"
|
|
73
|
-
},
|
|
74
|
-
// Remove webkit focus ring
|
|
75
|
-
"&::-webkit-focus-inner": {
|
|
76
|
-
border: 0
|
|
77
|
-
},
|
|
78
|
-
"&::-webkit-focus-ring-color": {
|
|
65
|
+
"&:focus:not(:focus-visible)": {
|
|
79
66
|
outline: "none"
|
|
80
67
|
}
|
|
81
68
|
},
|
|
82
|
-
children: e ? /* @__PURE__ */
|
|
69
|
+
children: e ? /* @__PURE__ */ a(me, {}) : /* @__PURE__ */ a(ge, {})
|
|
83
70
|
}
|
|
84
71
|
)
|
|
85
72
|
] })
|
|
@@ -94,7 +81,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
|
94
81
|
// this looks reasonably well in all themes
|
|
95
82
|
inside: null
|
|
96
83
|
// see below
|
|
97
|
-
},
|
|
84
|
+
}, n = {
|
|
98
85
|
bash: r,
|
|
99
86
|
environment: {
|
|
100
87
|
pattern: RegExp("\\$" + t),
|
|
@@ -206,7 +193,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
|
206
193
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
207
194
|
lookbehind: !0,
|
|
208
195
|
greedy: !0,
|
|
209
|
-
inside:
|
|
196
|
+
inside: n
|
|
210
197
|
},
|
|
211
198
|
// Here-document with quotes around the tag
|
|
212
199
|
// → No expansion (so no “inside”).
|
|
@@ -224,7 +211,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
|
224
211
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
225
212
|
lookbehind: !0,
|
|
226
213
|
greedy: !0,
|
|
227
|
-
inside:
|
|
214
|
+
inside: n
|
|
228
215
|
},
|
|
229
216
|
{
|
|
230
217
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -237,7 +224,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
|
237
224
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
238
225
|
greedy: !0,
|
|
239
226
|
inside: {
|
|
240
|
-
entity:
|
|
227
|
+
entity: n.entity
|
|
241
228
|
}
|
|
242
229
|
}
|
|
243
230
|
],
|
|
@@ -245,7 +232,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
|
245
232
|
pattern: RegExp("\\$?" + t),
|
|
246
233
|
alias: "constant"
|
|
247
234
|
},
|
|
248
|
-
variable:
|
|
235
|
+
variable: n.variable,
|
|
249
236
|
function: {
|
|
250
237
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
251
238
|
lookbehind: !0
|
|
@@ -285,7 +272,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
|
285
272
|
lookbehind: !0
|
|
286
273
|
}
|
|
287
274
|
}, r.inside = e.languages.bash;
|
|
288
|
-
for (var
|
|
275
|
+
for (var i = [
|
|
289
276
|
"comment",
|
|
290
277
|
"function-name",
|
|
291
278
|
"for-or-select",
|
|
@@ -301,12 +288,12 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
|
|
|
301
288
|
"operator",
|
|
302
289
|
"punctuation",
|
|
303
290
|
"number"
|
|
304
|
-
], s =
|
|
305
|
-
s[l
|
|
291
|
+
], s = n.variable[1].inside, l = 0; l < i.length; l++)
|
|
292
|
+
s[i[l]] = e.languages.bash[i[l]];
|
|
306
293
|
e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
|
|
307
294
|
})(Prism);
|
|
308
295
|
var O = {}, R;
|
|
309
|
-
function
|
|
296
|
+
function Ae() {
|
|
310
297
|
return R || (R = 1, function(e) {
|
|
311
298
|
var t = [
|
|
312
299
|
// normal string
|
|
@@ -362,26 +349,26 @@ function ve() {
|
|
|
362
349
|
}, e.languages["sh-session"] = e.languages.shellsession = e.languages["shell-session"];
|
|
363
350
|
}(Prism)), O;
|
|
364
351
|
}
|
|
365
|
-
|
|
352
|
+
Ae();
|
|
366
353
|
(function(e) {
|
|
367
354
|
var t = /\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source, r = /(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g, function() {
|
|
368
355
|
return t;
|
|
369
|
-
}),
|
|
370
|
-
return
|
|
356
|
+
}), n = /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source, i = /--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g, function() {
|
|
357
|
+
return n;
|
|
371
358
|
}), s = {
|
|
372
|
-
pattern: RegExp(
|
|
359
|
+
pattern: RegExp(n),
|
|
373
360
|
greedy: !0
|
|
374
|
-
},
|
|
361
|
+
}, l = {
|
|
375
362
|
pattern: /(^[ \t]*)#.*/m,
|
|
376
363
|
lookbehind: !0,
|
|
377
364
|
greedy: !0
|
|
378
365
|
};
|
|
379
|
-
function
|
|
380
|
-
return
|
|
381
|
-
return
|
|
366
|
+
function p(o, c) {
|
|
367
|
+
return o = o.replace(/<OPT>/g, function() {
|
|
368
|
+
return i;
|
|
382
369
|
}).replace(/<SP>/g, function() {
|
|
383
370
|
return r;
|
|
384
|
-
}), RegExp(
|
|
371
|
+
}), RegExp(o, c);
|
|
385
372
|
}
|
|
386
373
|
e.languages.docker = {
|
|
387
374
|
instruction: {
|
|
@@ -390,7 +377,7 @@ ve();
|
|
|
390
377
|
greedy: !0,
|
|
391
378
|
inside: {
|
|
392
379
|
options: {
|
|
393
|
-
pattern:
|
|
380
|
+
pattern: p(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source, "i"),
|
|
394
381
|
lookbehind: !0,
|
|
395
382
|
greedy: !0,
|
|
396
383
|
inside: {
|
|
@@ -412,19 +399,19 @@ ve();
|
|
|
412
399
|
keyword: [
|
|
413
400
|
{
|
|
414
401
|
// https://docs.docker.com/engine/reference/builder/#healthcheck
|
|
415
|
-
pattern:
|
|
402
|
+
pattern: p(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source, "i"),
|
|
416
403
|
lookbehind: !0,
|
|
417
404
|
greedy: !0
|
|
418
405
|
},
|
|
419
406
|
{
|
|
420
407
|
// https://docs.docker.com/engine/reference/builder/#from
|
|
421
|
-
pattern:
|
|
408
|
+
pattern: p(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source, "i"),
|
|
422
409
|
lookbehind: !0,
|
|
423
410
|
greedy: !0
|
|
424
411
|
},
|
|
425
412
|
{
|
|
426
413
|
// https://docs.docker.com/engine/reference/builder/#onbuild
|
|
427
|
-
pattern:
|
|
414
|
+
pattern: p(/(^ONBUILD<SP>)\w+/.source, "i"),
|
|
428
415
|
lookbehind: !0,
|
|
429
416
|
greedy: !0
|
|
430
417
|
},
|
|
@@ -433,32 +420,32 @@ ve();
|
|
|
433
420
|
greedy: !0
|
|
434
421
|
}
|
|
435
422
|
],
|
|
436
|
-
comment:
|
|
423
|
+
comment: l,
|
|
437
424
|
string: s,
|
|
438
425
|
variable: /\$(?:\w+|\{[^{}"'\\]*\})/,
|
|
439
426
|
operator: /\\$/m
|
|
440
427
|
}
|
|
441
428
|
},
|
|
442
|
-
comment:
|
|
429
|
+
comment: l
|
|
443
430
|
}, e.languages.dockerfile = e.languages.docker;
|
|
444
431
|
})(Prism);
|
|
445
432
|
(function(e) {
|
|
446
|
-
var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,
|
|
433
|
+
var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, n = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", i = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
447
434
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
448
435
|
}), s = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
449
|
-
function
|
|
450
|
-
|
|
436
|
+
function l(p, o) {
|
|
437
|
+
o = (o || "").replace(/m/g, "") + "m";
|
|
451
438
|
var c = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
452
|
-
return
|
|
439
|
+
return n;
|
|
453
440
|
}).replace(/<<value>>/g, function() {
|
|
454
|
-
return
|
|
441
|
+
return p;
|
|
455
442
|
});
|
|
456
|
-
return RegExp(c,
|
|
443
|
+
return RegExp(c, o);
|
|
457
444
|
}
|
|
458
445
|
e.languages.yaml = {
|
|
459
446
|
scalar: {
|
|
460
447
|
pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
|
|
461
|
-
return
|
|
448
|
+
return n;
|
|
462
449
|
})),
|
|
463
450
|
lookbehind: !0,
|
|
464
451
|
alias: "string"
|
|
@@ -466,9 +453,9 @@ ve();
|
|
|
466
453
|
comment: /#.*/,
|
|
467
454
|
key: {
|
|
468
455
|
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
469
|
-
return
|
|
456
|
+
return n;
|
|
470
457
|
}).replace(/<<key>>/g, function() {
|
|
471
|
-
return "(?:" +
|
|
458
|
+
return "(?:" + i + "|" + s + ")";
|
|
472
459
|
})),
|
|
473
460
|
lookbehind: !0,
|
|
474
461
|
greedy: !0,
|
|
@@ -480,27 +467,27 @@ ve();
|
|
|
480
467
|
alias: "important"
|
|
481
468
|
},
|
|
482
469
|
datetime: {
|
|
483
|
-
pattern:
|
|
470
|
+
pattern: l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
|
|
484
471
|
lookbehind: !0,
|
|
485
472
|
alias: "number"
|
|
486
473
|
},
|
|
487
474
|
boolean: {
|
|
488
|
-
pattern:
|
|
475
|
+
pattern: l(/false|true/.source, "i"),
|
|
489
476
|
lookbehind: !0,
|
|
490
477
|
alias: "important"
|
|
491
478
|
},
|
|
492
479
|
null: {
|
|
493
|
-
pattern:
|
|
480
|
+
pattern: l(/null|~/.source, "i"),
|
|
494
481
|
lookbehind: !0,
|
|
495
482
|
alias: "important"
|
|
496
483
|
},
|
|
497
484
|
string: {
|
|
498
|
-
pattern:
|
|
485
|
+
pattern: l(s),
|
|
499
486
|
lookbehind: !0,
|
|
500
487
|
greedy: !0
|
|
501
488
|
},
|
|
502
489
|
number: {
|
|
503
|
-
pattern:
|
|
490
|
+
pattern: l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
|
|
504
491
|
lookbehind: !0
|
|
505
492
|
},
|
|
506
493
|
tag: r,
|
|
@@ -510,8 +497,8 @@ ve();
|
|
|
510
497
|
})(Prism);
|
|
511
498
|
(function(e) {
|
|
512
499
|
var t = /(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;
|
|
513
|
-
function r(
|
|
514
|
-
return
|
|
500
|
+
function r(n) {
|
|
501
|
+
return n.replace(/__/g, function() {
|
|
515
502
|
return t;
|
|
516
503
|
});
|
|
517
504
|
}
|
|
@@ -691,17 +678,17 @@ Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "java
|
|
|
691
678
|
));
|
|
692
679
|
Prism.languages.js = Prism.languages.javascript;
|
|
693
680
|
(function(e) {
|
|
694
|
-
var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,
|
|
695
|
-
function s(
|
|
696
|
-
return
|
|
681
|
+
var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, n = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, i = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
682
|
+
function s(o, c) {
|
|
683
|
+
return o = o.replace(/<S>/g, function() {
|
|
697
684
|
return r;
|
|
698
685
|
}).replace(/<BRACES>/g, function() {
|
|
699
|
-
return
|
|
686
|
+
return n;
|
|
700
687
|
}).replace(/<SPREAD>/g, function() {
|
|
701
|
-
return
|
|
702
|
-
}), RegExp(
|
|
688
|
+
return i;
|
|
689
|
+
}), RegExp(o, c);
|
|
703
690
|
}
|
|
704
|
-
|
|
691
|
+
i = s(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = s(
|
|
705
692
|
/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
|
|
706
693
|
), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", {
|
|
707
694
|
spread: {
|
|
@@ -722,27 +709,27 @@ Prism.languages.js = Prism.languages.javascript;
|
|
|
722
709
|
}
|
|
723
710
|
}
|
|
724
711
|
}, e.languages.jsx.tag);
|
|
725
|
-
var
|
|
726
|
-
return
|
|
727
|
-
},
|
|
728
|
-
for (var c = [],
|
|
729
|
-
var d =
|
|
730
|
-
if (typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? c.length > 0 && c[c.length - 1].tagName ===
|
|
731
|
-
tagName:
|
|
712
|
+
var l = function(o) {
|
|
713
|
+
return o ? typeof o == "string" ? o : typeof o.content == "string" ? o.content : o.content.map(l).join("") : "";
|
|
714
|
+
}, p = function(o) {
|
|
715
|
+
for (var c = [], u = 0; u < o.length; u++) {
|
|
716
|
+
var d = o[u], b = !1;
|
|
717
|
+
if (typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? c.length > 0 && c[c.length - 1].tagName === l(d.content[0].content[1]) && c.pop() : d.content[d.content.length - 1].content === "/>" || c.push({
|
|
718
|
+
tagName: l(d.content[0].content[1]),
|
|
732
719
|
openedBraces: 0
|
|
733
|
-
}) : c.length > 0 && d.type === "punctuation" && d.content === "{" ? c[c.length - 1].openedBraces++ : c.length > 0 && c[c.length - 1].openedBraces > 0 && d.type === "punctuation" && d.content === "}" ? c[c.length - 1].openedBraces-- :
|
|
734
|
-
var
|
|
735
|
-
|
|
720
|
+
}) : c.length > 0 && d.type === "punctuation" && d.content === "{" ? c[c.length - 1].openedBraces++ : c.length > 0 && c[c.length - 1].openedBraces > 0 && d.type === "punctuation" && d.content === "}" ? c[c.length - 1].openedBraces-- : b = !0), (b || typeof d == "string") && c.length > 0 && c[c.length - 1].openedBraces === 0) {
|
|
721
|
+
var g = l(d);
|
|
722
|
+
u < o.length - 1 && (typeof o[u + 1] == "string" || o[u + 1].type === "plain-text") && (g += l(o[u + 1]), o.splice(u + 1, 1)), u > 0 && (typeof o[u - 1] == "string" || o[u - 1].type === "plain-text") && (g = l(o[u - 1]) + g, o.splice(u - 1, 1), u--), o[u] = new e.Token("plain-text", g, null, g);
|
|
736
723
|
}
|
|
737
|
-
d.content && typeof d.content != "string" &&
|
|
724
|
+
d.content && typeof d.content != "string" && p(d.content);
|
|
738
725
|
}
|
|
739
726
|
};
|
|
740
|
-
e.hooks.add("after-tokenize", function(
|
|
741
|
-
|
|
727
|
+
e.hooks.add("after-tokenize", function(o) {
|
|
728
|
+
o.language !== "jsx" && o.language !== "tsx" || p(o.tokens);
|
|
742
729
|
});
|
|
743
730
|
})(Prism);
|
|
744
731
|
var C = {}, N;
|
|
745
|
-
function
|
|
732
|
+
function ve() {
|
|
746
733
|
return N || (N = 1, function(e) {
|
|
747
734
|
e.languages.typescript = e.languages.extend("javascript", {
|
|
748
735
|
"class-name": {
|
|
@@ -789,7 +776,7 @@ function Ae() {
|
|
|
789
776
|
}), e.languages.ts = e.languages.typescript;
|
|
790
777
|
}(Prism)), C;
|
|
791
778
|
}
|
|
792
|
-
|
|
779
|
+
ve();
|
|
793
780
|
(function(e) {
|
|
794
781
|
var t = e.util.clone(e.languages.typescript);
|
|
795
782
|
e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
|
|
@@ -802,9 +789,9 @@ const Fe = {
|
|
|
802
789
|
zsh: "bash",
|
|
803
790
|
console: "bash"
|
|
804
791
|
}, Ee = ({ children: e, className: t = "", ...r }) => {
|
|
805
|
-
const [
|
|
806
|
-
let
|
|
807
|
-
typeof e == "string" ?
|
|
792
|
+
const [n, i] = F(!1), s = D(), l = t.replace("language-", "") || "jsx", p = Fe[l] ?? l;
|
|
793
|
+
let o = "";
|
|
794
|
+
typeof e == "string" ? o = e.trim() : e && typeof e == "object" && e.props && (typeof e.props.children == "string" ? o = e.props.children.trim() : Array.isArray(e.props.children) && (o = e.props.children.join("").trim()));
|
|
808
795
|
const c = {
|
|
809
796
|
plain: {
|
|
810
797
|
color: s.palette.text.primary,
|
|
@@ -861,25 +848,25 @@ const Fe = {
|
|
|
861
848
|
}
|
|
862
849
|
]
|
|
863
850
|
};
|
|
864
|
-
return /* @__PURE__ */ m(
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
|
|
851
|
+
return /* @__PURE__ */ m(f, { sx: { position: "relative", my: 2 }, children: [
|
|
852
|
+
/* @__PURE__ */ a(f, { sx: { position: "absolute", top: 4, right: 4, zIndex: 1 }, children: /* @__PURE__ */ a(re, { title: n ? "Copied!" : "Copy", children: /* @__PURE__ */ a(
|
|
853
|
+
v,
|
|
867
854
|
{
|
|
868
855
|
size: "small",
|
|
869
856
|
onClick: async () => {
|
|
870
857
|
try {
|
|
871
|
-
await navigator.clipboard.writeText(
|
|
858
|
+
await navigator.clipboard.writeText(o), i(!0), setTimeout(() => i(!1), 1500);
|
|
872
859
|
} catch {
|
|
873
860
|
}
|
|
874
861
|
},
|
|
875
862
|
color: "inherit",
|
|
876
|
-
"aria-label":
|
|
863
|
+
"aria-label": n ? "Code copied to clipboard" : "Copy code to clipboard",
|
|
877
864
|
sx: { width: 24, height: 24 },
|
|
878
|
-
children:
|
|
865
|
+
children: n ? /* @__PURE__ */ a(ye, { sx: { fontSize: 16 } }) : /* @__PURE__ */ a(Se, { sx: { fontSize: 16 } })
|
|
879
866
|
}
|
|
880
867
|
) }) }),
|
|
881
|
-
/* @__PURE__ */
|
|
882
|
-
|
|
868
|
+
/* @__PURE__ */ a(M, { prism: xe, code: o, language: p, theme: c, children: ({ className: d, style: b, tokens: g, getLineProps: k, getTokenProps: w }) => /* @__PURE__ */ m(
|
|
869
|
+
f,
|
|
883
870
|
{
|
|
884
871
|
sx: {
|
|
885
872
|
border: 1,
|
|
@@ -890,8 +877,8 @@ const Fe = {
|
|
|
890
877
|
boxShadow: 1
|
|
891
878
|
},
|
|
892
879
|
children: [
|
|
893
|
-
/* @__PURE__ */
|
|
894
|
-
|
|
880
|
+
/* @__PURE__ */ a(
|
|
881
|
+
f,
|
|
895
882
|
{
|
|
896
883
|
sx: {
|
|
897
884
|
px: 2,
|
|
@@ -905,15 +892,15 @@ const Fe = {
|
|
|
905
892
|
textTransform: "uppercase",
|
|
906
893
|
letterSpacing: 0.5
|
|
907
894
|
},
|
|
908
|
-
children:
|
|
895
|
+
children: p
|
|
909
896
|
}
|
|
910
897
|
),
|
|
911
|
-
/* @__PURE__ */
|
|
898
|
+
/* @__PURE__ */ a(
|
|
912
899
|
"pre",
|
|
913
900
|
{
|
|
914
901
|
className: d,
|
|
915
902
|
style: {
|
|
916
|
-
...
|
|
903
|
+
...b,
|
|
917
904
|
margin: 0,
|
|
918
905
|
padding: 16,
|
|
919
906
|
overflowX: "auto",
|
|
@@ -923,12 +910,12 @@ const Fe = {
|
|
|
923
910
|
whiteSpace: "pre-wrap"
|
|
924
911
|
},
|
|
925
912
|
...r,
|
|
926
|
-
children:
|
|
927
|
-
const T =
|
|
928
|
-
return /* @__PURE__ */
|
|
929
|
-
const z =
|
|
930
|
-
return /* @__PURE__ */
|
|
931
|
-
}) },
|
|
913
|
+
children: g.map((h, S) => {
|
|
914
|
+
const T = k({ line: h, key: S }), { key: A, ...H } = T;
|
|
915
|
+
return /* @__PURE__ */ a("div", { ...H, children: h.map((G, _) => {
|
|
916
|
+
const z = w({ token: G, key: _ }), { key: ze, ...W } = z;
|
|
917
|
+
return /* @__PURE__ */ a("span", { ...W }, `${S}-${_}`);
|
|
918
|
+
}) }, A);
|
|
932
919
|
})
|
|
933
920
|
}
|
|
934
921
|
)
|
|
@@ -937,7 +924,7 @@ const Fe = {
|
|
|
937
924
|
) })
|
|
938
925
|
] });
|
|
939
926
|
}, Te = ({ children: e, ...t }) => {
|
|
940
|
-
const r = D(),
|
|
927
|
+
const r = D(), n = typeof e == "string" ? e.trim() : "", i = {
|
|
941
928
|
plain: {
|
|
942
929
|
color: r.palette.text.primary,
|
|
943
930
|
backgroundColor: r.palette.mode === "dark" ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.08)"
|
|
@@ -993,12 +980,12 @@ const Fe = {
|
|
|
993
980
|
}
|
|
994
981
|
]
|
|
995
982
|
};
|
|
996
|
-
return /* @__PURE__ */
|
|
983
|
+
return /* @__PURE__ */ a(M, { code: n, language: "jsx", theme: i, children: ({ className: s, style: l, tokens: p, getLineProps: o, getTokenProps: c }) => /* @__PURE__ */ a(
|
|
997
984
|
"code",
|
|
998
985
|
{
|
|
999
986
|
className: s,
|
|
1000
987
|
style: {
|
|
1001
|
-
...
|
|
988
|
+
...l,
|
|
1002
989
|
padding: "2px 4px",
|
|
1003
990
|
borderRadius: "3px",
|
|
1004
991
|
fontSize: "0.875em",
|
|
@@ -1009,19 +996,19 @@ const Fe = {
|
|
|
1009
996
|
maxWidth: "100%"
|
|
1010
997
|
},
|
|
1011
998
|
...t,
|
|
1012
|
-
children:
|
|
1013
|
-
const
|
|
1014
|
-
return /* @__PURE__ */
|
|
1015
|
-
const S = c({ token:
|
|
1016
|
-
return /* @__PURE__ */
|
|
1017
|
-
}) },
|
|
999
|
+
children: p.map((u, d) => {
|
|
1000
|
+
const b = o({ line: u, key: d }), { key: g, ...k } = b;
|
|
1001
|
+
return /* @__PURE__ */ a("div", { ...k, children: u.map((w, h) => {
|
|
1002
|
+
const S = c({ token: w, key: h }), { key: T, ...A } = S;
|
|
1003
|
+
return /* @__PURE__ */ a("span", { ...A }, `${d}-${h}`);
|
|
1004
|
+
}) }, g);
|
|
1018
1005
|
})
|
|
1019
1006
|
}
|
|
1020
1007
|
) });
|
|
1021
1008
|
}, _e = (e) => e.filter((t) => !t.isDefault), $e = (e) => e.find((t) => t.isDefault), Ie = (e) => e ? !!(e.startsWith("http://") || e.startsWith("https://") || e.startsWith("mailto:") || e.startsWith("tel:")) : !1, Oe = () => {
|
|
1022
1009
|
const { pages: e } = E();
|
|
1023
|
-
return /* @__PURE__ */
|
|
1024
|
-
|
|
1010
|
+
return /* @__PURE__ */ a(
|
|
1011
|
+
f,
|
|
1025
1012
|
{
|
|
1026
1013
|
sx: {
|
|
1027
1014
|
width: "100%",
|
|
@@ -1069,15 +1056,15 @@ const Fe = {
|
|
|
1069
1056
|
}
|
|
1070
1057
|
}
|
|
1071
1058
|
},
|
|
1072
|
-
children: /* @__PURE__ */
|
|
1073
|
-
|
|
1059
|
+
children: /* @__PURE__ */ a(
|
|
1060
|
+
he,
|
|
1074
1061
|
{
|
|
1075
1062
|
components: {
|
|
1076
1063
|
// pre: CodeBlock,
|
|
1077
|
-
code: (t) => t.className ? /* @__PURE__ */
|
|
1064
|
+
code: (t) => t.className ? /* @__PURE__ */ a(Ee, { ...t }) : /* @__PURE__ */ a(Te, { ...t }),
|
|
1078
1065
|
a: (t) => {
|
|
1079
1066
|
const r = Ie(t.href);
|
|
1080
|
-
return /* @__PURE__ */
|
|
1067
|
+
return /* @__PURE__ */ a(
|
|
1081
1068
|
"a",
|
|
1082
1069
|
{
|
|
1083
1070
|
...t,
|
|
@@ -1086,27 +1073,34 @@ const Fe = {
|
|
|
1086
1073
|
}
|
|
1087
1074
|
);
|
|
1088
1075
|
},
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1076
|
+
blockquote: (t) => /* @__PURE__ */ a(
|
|
1077
|
+
f,
|
|
1078
|
+
{
|
|
1079
|
+
component: "blockquote",
|
|
1080
|
+
sx: {
|
|
1081
|
+
borderLeft: "4px solid",
|
|
1082
|
+
borderColor: "primary.main",
|
|
1083
|
+
pl: 2,
|
|
1084
|
+
py: 0.5,
|
|
1085
|
+
my: 2,
|
|
1086
|
+
mx: 0,
|
|
1087
|
+
color: "text.secondary",
|
|
1088
|
+
fontStyle: "italic",
|
|
1089
|
+
bgcolor: "action.hover",
|
|
1090
|
+
borderRadius: "0 4px 4px 0"
|
|
1091
|
+
},
|
|
1092
|
+
...t
|
|
1093
|
+
}
|
|
1094
|
+
),
|
|
1095
|
+
p: (t) => t.children && (Array.isArray(t.children) ? t.children.some(
|
|
1096
|
+
(n) => typeof n == "object" && n.type
|
|
1097
|
+
) : typeof t.children == "object" && t.children.type) ? /* @__PURE__ */ a(U, { children: t.children }) : /* @__PURE__ */ a("p", { ...t })
|
|
1104
1098
|
},
|
|
1105
|
-
children: /* @__PURE__ */
|
|
1106
|
-
|
|
1099
|
+
children: /* @__PURE__ */ a(
|
|
1100
|
+
q,
|
|
1107
1101
|
{
|
|
1108
|
-
fallback: /* @__PURE__ */
|
|
1109
|
-
|
|
1102
|
+
fallback: /* @__PURE__ */ a(
|
|
1103
|
+
f,
|
|
1110
1104
|
{
|
|
1111
1105
|
sx: {
|
|
1112
1106
|
display: "flex",
|
|
@@ -1114,22 +1108,22 @@ const Fe = {
|
|
|
1114
1108
|
alignItems: "center",
|
|
1115
1109
|
minHeight: "200px"
|
|
1116
1110
|
},
|
|
1117
|
-
children: /* @__PURE__ */
|
|
1111
|
+
children: /* @__PURE__ */ a(ae, {})
|
|
1118
1112
|
}
|
|
1119
1113
|
),
|
|
1120
|
-
children: /* @__PURE__ */ m(
|
|
1114
|
+
children: /* @__PURE__ */ m(pe, { children: [
|
|
1121
1115
|
e.map((t) => {
|
|
1122
1116
|
const r = t.component;
|
|
1123
|
-
return /* @__PURE__ */
|
|
1117
|
+
return /* @__PURE__ */ a(
|
|
1124
1118
|
I,
|
|
1125
1119
|
{
|
|
1126
1120
|
path: t.route,
|
|
1127
|
-
element: /* @__PURE__ */
|
|
1121
|
+
element: /* @__PURE__ */ a(r, {})
|
|
1128
1122
|
},
|
|
1129
1123
|
t.route
|
|
1130
1124
|
);
|
|
1131
1125
|
}),
|
|
1132
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ a(
|
|
1133
1127
|
I,
|
|
1134
1128
|
{
|
|
1135
1129
|
path: "*",
|
|
@@ -1144,40 +1138,40 @@ const Fe = {
|
|
|
1144
1138
|
}
|
|
1145
1139
|
);
|
|
1146
1140
|
}, y = 240, Re = ({ mobileOpen: e, handleDrawerToggle: t }) => {
|
|
1147
|
-
const r = B(), { pages:
|
|
1141
|
+
const r = B(), { pages: n } = E(), i = _e(n);
|
|
1148
1142
|
x(() => {
|
|
1149
|
-
const
|
|
1143
|
+
const p = setTimeout(() => {
|
|
1150
1144
|
document.body.style.overflow = "";
|
|
1151
1145
|
}, 100);
|
|
1152
|
-
return () => clearTimeout(
|
|
1146
|
+
return () => clearTimeout(p);
|
|
1153
1147
|
}, [r.pathname]);
|
|
1154
1148
|
const s = () => {
|
|
1155
1149
|
t();
|
|
1156
|
-
},
|
|
1157
|
-
/* @__PURE__ */
|
|
1158
|
-
/* @__PURE__ */
|
|
1150
|
+
}, l = /* @__PURE__ */ m("div", { children: [
|
|
1151
|
+
/* @__PURE__ */ a(P, {}),
|
|
1152
|
+
/* @__PURE__ */ a(ne, { children: i.map((p) => /* @__PURE__ */ a(oe, { disablePadding: !0, children: /* @__PURE__ */ a(
|
|
1159
1153
|
se,
|
|
1160
1154
|
{
|
|
1161
1155
|
component: L,
|
|
1162
|
-
to:
|
|
1156
|
+
to: p.route,
|
|
1163
1157
|
onClick: () => s(),
|
|
1164
1158
|
sx: {
|
|
1165
1159
|
"&:hover": {
|
|
1166
1160
|
color: "inherit"
|
|
1167
1161
|
}
|
|
1168
1162
|
},
|
|
1169
|
-
children: /* @__PURE__ */
|
|
1163
|
+
children: /* @__PURE__ */ a(ie, { primary: p.name })
|
|
1170
1164
|
}
|
|
1171
|
-
) },
|
|
1165
|
+
) }, p.route)) })
|
|
1172
1166
|
] });
|
|
1173
1167
|
return /* @__PURE__ */ m(
|
|
1174
|
-
|
|
1168
|
+
f,
|
|
1175
1169
|
{
|
|
1176
1170
|
component: "nav",
|
|
1177
1171
|
sx: { width: { sm: y }, flexShrink: { sm: 0 } },
|
|
1178
1172
|
"aria-label": "sidebar navigation",
|
|
1179
1173
|
children: [
|
|
1180
|
-
/* @__PURE__ */
|
|
1174
|
+
/* @__PURE__ */ a(
|
|
1181
1175
|
$,
|
|
1182
1176
|
{
|
|
1183
1177
|
variant: "temporary",
|
|
@@ -1195,10 +1189,10 @@ const Fe = {
|
|
|
1195
1189
|
maxWidth: y
|
|
1196
1190
|
}
|
|
1197
1191
|
},
|
|
1198
|
-
children:
|
|
1192
|
+
children: l
|
|
1199
1193
|
}
|
|
1200
1194
|
),
|
|
1201
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ a(
|
|
1202
1196
|
$,
|
|
1203
1197
|
{
|
|
1204
1198
|
variant: "permanent",
|
|
@@ -1210,7 +1204,7 @@ const Fe = {
|
|
|
1210
1204
|
}
|
|
1211
1205
|
},
|
|
1212
1206
|
open: !0,
|
|
1213
|
-
children:
|
|
1207
|
+
children: l
|
|
1214
1208
|
}
|
|
1215
1209
|
)
|
|
1216
1210
|
]
|
|
@@ -1229,10 +1223,10 @@ const Fe = {
|
|
|
1229
1223
|
typeof window < "u" && localStorage.setItem("darkMode", JSON.stringify(e));
|
|
1230
1224
|
}, [e]), x(() => {
|
|
1231
1225
|
if (typeof window < "u" && window.matchMedia) {
|
|
1232
|
-
const r = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
1233
|
-
localStorage.getItem("darkMode") === null && t(
|
|
1226
|
+
const r = window.matchMedia("(prefers-color-scheme: dark)"), n = (i) => {
|
|
1227
|
+
localStorage.getItem("darkMode") === null && t(i.matches);
|
|
1234
1228
|
};
|
|
1235
|
-
return r.addEventListener("change",
|
|
1229
|
+
return r.addEventListener("change", n), () => r.removeEventListener("change", n);
|
|
1236
1230
|
}
|
|
1237
1231
|
}, []), { darkMode: e, setDarkMode: t };
|
|
1238
1232
|
}, De = {
|
|
@@ -1404,79 +1398,79 @@ const Fe = {
|
|
|
1404
1398
|
activatedOpacity: 0.12
|
|
1405
1399
|
}
|
|
1406
1400
|
}
|
|
1407
|
-
}, Be =
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
"
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
},
|
|
1428
|
-
// Remove webkit focus ring
|
|
1429
|
-
"&::-webkit-focus-inner": {
|
|
1430
|
-
border: 0
|
|
1431
|
-
},
|
|
1432
|
-
"&::-webkit-focus-ring-color": {
|
|
1433
|
-
outline: "none"
|
|
1434
|
-
}
|
|
1401
|
+
}, Be = {
|
|
1402
|
+
components: {
|
|
1403
|
+
MuiIconButton: {
|
|
1404
|
+
styleOverrides: {
|
|
1405
|
+
root: {
|
|
1406
|
+
"&:focus": {
|
|
1407
|
+
outline: "none"
|
|
1408
|
+
},
|
|
1409
|
+
"&:focus-visible": {
|
|
1410
|
+
outline: "none"
|
|
1411
|
+
},
|
|
1412
|
+
"&:focus-within": {
|
|
1413
|
+
outline: "none"
|
|
1414
|
+
},
|
|
1415
|
+
// Remove webkit focus ring
|
|
1416
|
+
"&::-webkit-focus-inner": {
|
|
1417
|
+
border: 0
|
|
1418
|
+
},
|
|
1419
|
+
"&::-webkit-focus-ring-color": {
|
|
1420
|
+
outline: "none"
|
|
1435
1421
|
}
|
|
1436
1422
|
}
|
|
1437
1423
|
}
|
|
1438
1424
|
}
|
|
1439
|
-
}
|
|
1440
|
-
}, Me = (
|
|
1441
|
-
const
|
|
1425
|
+
}
|
|
1426
|
+
}, Me = (e = "light", t = {}) => {
|
|
1427
|
+
const r = e === "dark" ? De : Le, n = t[e], i = {};
|
|
1428
|
+
t.primaryColor && (i.palette = { primary: { main: t.primaryColor } }), t.fontFamily && (i.typography = { fontFamily: t.fontFamily });
|
|
1429
|
+
const s = [
|
|
1430
|
+
{ ...r, palette: { ...r.palette, mode: e } },
|
|
1431
|
+
i
|
|
1432
|
+
];
|
|
1433
|
+
return n && s.push(n), s.push(Be), le(...s);
|
|
1434
|
+
}, je = ({ children: e }) => {
|
|
1435
|
+
const t = B(), r = fe();
|
|
1442
1436
|
return x(() => {
|
|
1443
|
-
const
|
|
1444
|
-
if (
|
|
1445
|
-
|
|
1446
|
-
const s = window.location.pathname + (
|
|
1447
|
-
window.history.replaceState({}, "", s), r(
|
|
1437
|
+
const n = new URLSearchParams(window.location.search), i = n.get("redirect");
|
|
1438
|
+
if (i) {
|
|
1439
|
+
n.delete("redirect");
|
|
1440
|
+
const s = window.location.pathname + (n.toString() ? "?" + n.toString() : "");
|
|
1441
|
+
window.history.replaceState({}, "", s), r(i);
|
|
1448
1442
|
}
|
|
1449
|
-
}, [r]),
|
|
1443
|
+
}, [r]), Y(() => {
|
|
1450
1444
|
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
|
1451
1445
|
}, [t.pathname]), e;
|
|
1452
1446
|
};
|
|
1453
|
-
function
|
|
1454
|
-
const { darkMode:
|
|
1455
|
-
() =>
|
|
1456
|
-
[e]
|
|
1457
|
-
),
|
|
1458
|
-
|
|
1447
|
+
function He({ userTheme: e = {} }) {
|
|
1448
|
+
const { darkMode: t, setDarkMode: r } = Pe(), [n, i] = F(!1), s = V(
|
|
1449
|
+
() => Me(t ? "dark" : "light", e),
|
|
1450
|
+
[t, e]
|
|
1451
|
+
), l = () => {
|
|
1452
|
+
i(!n);
|
|
1459
1453
|
};
|
|
1460
|
-
return /* @__PURE__ */ m(ce, { theme:
|
|
1461
|
-
/* @__PURE__ */
|
|
1462
|
-
/* @__PURE__ */ m(
|
|
1463
|
-
/* @__PURE__ */
|
|
1464
|
-
|
|
1454
|
+
return /* @__PURE__ */ m(ce, { theme: s, children: [
|
|
1455
|
+
/* @__PURE__ */ a(de, {}),
|
|
1456
|
+
/* @__PURE__ */ m(f, { sx: { display: "flex" }, children: [
|
|
1457
|
+
/* @__PURE__ */ a(
|
|
1458
|
+
we,
|
|
1465
1459
|
{
|
|
1466
|
-
darkMode:
|
|
1467
|
-
setDarkMode:
|
|
1468
|
-
handleDrawerToggle:
|
|
1460
|
+
darkMode: t,
|
|
1461
|
+
setDarkMode: r,
|
|
1462
|
+
handleDrawerToggle: l
|
|
1469
1463
|
}
|
|
1470
1464
|
),
|
|
1471
|
-
/* @__PURE__ */
|
|
1465
|
+
/* @__PURE__ */ a(
|
|
1472
1466
|
Re,
|
|
1473
1467
|
{
|
|
1474
|
-
mobileOpen:
|
|
1475
|
-
handleDrawerToggle:
|
|
1468
|
+
mobileOpen: n,
|
|
1469
|
+
handleDrawerToggle: l
|
|
1476
1470
|
}
|
|
1477
1471
|
),
|
|
1478
|
-
/* @__PURE__ */
|
|
1479
|
-
|
|
1472
|
+
/* @__PURE__ */ a(
|
|
1473
|
+
f,
|
|
1480
1474
|
{
|
|
1481
1475
|
component: "main",
|
|
1482
1476
|
sx: {
|
|
@@ -1489,20 +1483,66 @@ function je() {
|
|
|
1489
1483
|
// Prevent horizontal overflow on very small screens
|
|
1490
1484
|
overflowX: "hidden"
|
|
1491
1485
|
},
|
|
1492
|
-
children: /* @__PURE__ */
|
|
1486
|
+
children: /* @__PURE__ */ a(Oe, {})
|
|
1493
1487
|
}
|
|
1494
1488
|
)
|
|
1495
1489
|
] })
|
|
1496
1490
|
] });
|
|
1497
1491
|
}
|
|
1498
|
-
function
|
|
1499
|
-
return /* @__PURE__ */
|
|
1492
|
+
function Ge({ pages: e, site: t, theme: r = {} }) {
|
|
1493
|
+
return /* @__PURE__ */ a(ke, { pages: e, site: t, children: /* @__PURE__ */ a(ue, { basename: "/", children: /* @__PURE__ */ a(je, { children: /* @__PURE__ */ a(He, { userTheme: r }) }) }) });
|
|
1500
1494
|
}
|
|
1501
|
-
function
|
|
1495
|
+
function at({ pages: e, site: t, theme: r }) {
|
|
1502
1496
|
Q(document.getElementById("root")).render(
|
|
1503
|
-
/* @__PURE__ */
|
|
1497
|
+
/* @__PURE__ */ a(J, { children: /* @__PURE__ */ a(Ge, { pages: e, site: t, theme: r }) })
|
|
1504
1498
|
);
|
|
1505
1499
|
}
|
|
1500
|
+
const nt = {
|
|
1501
|
+
default: {},
|
|
1502
|
+
ocean: {
|
|
1503
|
+
primaryColor: "#0077b6",
|
|
1504
|
+
dark: {
|
|
1505
|
+
palette: {
|
|
1506
|
+
primary: { main: "#48cae4" },
|
|
1507
|
+
background: { default: "#03045e", paper: "#023e8a" }
|
|
1508
|
+
}
|
|
1509
|
+
},
|
|
1510
|
+
light: {
|
|
1511
|
+
palette: {
|
|
1512
|
+
background: { default: "#f0f9ff", paper: "#e0f2fe" }
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
forest: {
|
|
1517
|
+
primaryColor: "#2d6a4f",
|
|
1518
|
+
dark: {
|
|
1519
|
+
palette: {
|
|
1520
|
+
primary: { main: "#74c69d" },
|
|
1521
|
+
background: { default: "#081c15", paper: "#1b4332" }
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
light: {
|
|
1525
|
+
palette: {
|
|
1526
|
+
background: { default: "#f0fdf4", paper: "#dcfce7" }
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
rose: {
|
|
1531
|
+
primaryColor: "#be123c",
|
|
1532
|
+
dark: {
|
|
1533
|
+
palette: {
|
|
1534
|
+
primary: { main: "#fb7185" },
|
|
1535
|
+
background: { default: "#1c0a0d", paper: "#3b0015" }
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
light: {
|
|
1539
|
+
palette: {
|
|
1540
|
+
background: { default: "#fff1f2", paper: "#ffe4e6" }
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
};
|
|
1506
1545
|
export {
|
|
1507
|
-
|
|
1546
|
+
at as createApp,
|
|
1547
|
+
nt as themes
|
|
1508
1548
|
};
|
|
Binary file
|
package/package.json
CHANGED
package/dist/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|