@zaly/tui 0.0.12 → 0.1.0
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/assets/schemas/shiki-language.schema.json +352 -0
- package/assets/schemas/shiki-theme.schema.json +71 -0
- package/assets/schemas/theme.schema.json +226 -1046
- package/assets/themes/andromeeda.json +97 -0
- package/assets/themes/ayu-dark.json +31 -25
- package/assets/themes/ayu-light.json +106 -0
- package/assets/themes/ayu-mirage.json +106 -0
- package/assets/themes/catppuccin-frappe.json +43 -40
- package/assets/themes/catppuccin-latte.json +43 -40
- package/assets/themes/catppuccin-macchiato.json +43 -40
- package/assets/themes/catppuccin-mocha.json +43 -40
- package/assets/themes/dark-plus.json +99 -0
- package/assets/themes/dracula.json +47 -47
- package/assets/themes/everforest-dark.json +28 -26
- package/assets/themes/everforest-light.json +28 -26
- package/assets/themes/github-dark-default.json +107 -0
- package/assets/themes/github-dark-dimmed.json +107 -0
- package/assets/themes/github-light-default.json +107 -0
- package/assets/themes/gruvbox-dark-hard.json +98 -0
- package/assets/themes/gruvbox-dark-medium.json +34 -29
- package/assets/themes/gruvbox-light-medium.json +98 -0
- package/assets/themes/horizon-bright.json +101 -0
- package/assets/themes/horizon.json +101 -0
- package/assets/themes/iterm2/LICENSE +25 -0
- package/assets/themes/iterm2/README.md +28 -0
- package/assets/themes/iterm2/catppuccin-latte.json +140 -0
- package/assets/themes/iterm2/catppuccin-mocha.json +140 -0
- package/assets/themes/iterm2/github-dark.json +140 -0
- package/assets/themes/iterm2/github.json +140 -0
- package/assets/themes/iterm2/gruvbox-dark.json +140 -0
- package/assets/themes/iterm2/gruvbox-light.json +140 -0
- package/assets/themes/iterm2/nord.json +140 -0
- package/assets/themes/iterm2/tokyonight-day.json +140 -0
- package/assets/themes/iterm2/tokyonight-moon.json +140 -0
- package/assets/themes/kanagawa-dragon.json +55 -49
- package/assets/themes/kanagawa-lotus.json +105 -0
- package/assets/themes/kanagawa-wave.json +56 -50
- package/assets/themes/light-plus.json +99 -0
- package/assets/themes/material-theme-lighter.json +102 -0
- package/assets/themes/material-theme-palenight.json +52 -45
- package/assets/themes/material-theme.json +102 -0
- package/assets/themes/min-dark.json +69 -14
- package/assets/themes/min-light.json +68 -17
- package/assets/themes/monokai.json +54 -47
- package/assets/themes/night-owl-light.json +105 -0
- package/assets/themes/night-owl.json +57 -49
- package/assets/themes/nord.json +53 -39
- package/assets/themes/one-dark-pro.json +46 -38
- package/assets/themes/one-light.json +52 -41
- package/assets/themes/poimandres.json +51 -49
- package/assets/themes/rose-pine-dawn.json +99 -0
- package/assets/themes/rose-pine-moon.json +99 -0
- package/assets/themes/rose-pine.json +50 -33
- package/assets/themes/solarized-dark.json +38 -31
- package/assets/themes/solarized-light.json +40 -33
- package/assets/themes/synthwave-84.json +47 -30
- package/assets/themes/tokyonight-day.json +3 -3
- package/assets/themes/tokyonight-moon.json +3 -2
- package/assets/themes/tokyonight-night.json +3 -2
- package/assets/themes/tokyonight-storm.json +3 -2
- package/assets/themes/vesper.json +50 -42
- package/assets/themes/vitesse-black.json +103 -0
- package/assets/themes/vitesse-dark.json +26 -30
- package/assets/themes/vitesse-light.json +26 -30
- package/dist/{actions-Dc4D4uSf.d.mts → actions--ODlgCQ5.d.mts} +4 -4
- package/dist/{actions-Dc4D4uSf.d.mts.map → actions--ODlgCQ5.d.mts.map} +1 -1
- package/dist/{ansi-DZlXaItJ.mjs → ansi-CMv71xVr.mjs} +3 -31
- package/dist/ansi-CMv71xVr.mjs.map +1 -0
- package/dist/ansi.d.mts +1 -1
- package/dist/ansi.mjs +1 -1
- package/dist/{autocomplete-StW1QJZJ.d.mts → autocomplete-CD30kSe_.d.mts} +4 -4
- package/dist/{autocomplete-StW1QJZJ.d.mts.map → autocomplete-CD30kSe_.d.mts.map} +1 -1
- package/dist/{box-BkP4MF82.mjs → box-C_N_7ChP.mjs} +2 -2
- package/dist/{box-BkP4MF82.mjs.map → box-C_N_7ChP.mjs.map} +1 -1
- package/dist/builder-Chwtk0nQ.mjs +196 -0
- package/dist/builder-Chwtk0nQ.mjs.map +1 -0
- package/dist/{callbacks-BwWTCqPJ.mjs → callbacks-DLecWn7G.mjs} +4 -4
- package/dist/{callbacks-BwWTCqPJ.mjs.map → callbacks-DLecWn7G.mjs.map} +1 -1
- package/dist/client-CNGt-dOt.mjs +1 -0
- package/dist/{client-C2GXKfJ1.mjs → client-D7qz4TZt.mjs} +7 -3
- package/dist/client-D7qz4TZt.mjs.map +1 -0
- package/dist/color-DBMQLv4Y.mjs +37 -0
- package/dist/color-DBMQLv4Y.mjs.map +1 -0
- package/dist/{ctx-B7BmPUCD.mjs → ctx-BaQ2hP5u.mjs} +3 -3
- package/dist/{ctx-B7BmPUCD.mjs.map → ctx-BaQ2hP5u.mjs.map} +1 -1
- package/dist/ctx-CndlTp1T.mjs +1 -0
- package/dist/{divider-TSx9NhI_.mjs → divider-BlNNN2OS.mjs} +2 -2
- package/dist/{divider-TSx9NhI_.mjs.map → divider-BlNNN2OS.mjs.map} +1 -1
- package/dist/{files-7DUYSeNc.d.mts → files-B_5HDBPp.d.mts} +3 -3
- package/dist/{files-7DUYSeNc.d.mts.map → files-B_5HDBPp.d.mts.map} +1 -1
- package/dist/{github-C1KfXk98.d.mts → github-CyRwUQ3y.d.mts} +3 -3
- package/dist/{github-C1KfXk98.d.mts.map → github-CyRwUQ3y.d.mts.map} +1 -1
- package/dist/{image-VaT7AN-S.d.mts → image-BLls2F4t.d.mts} +2 -2
- package/dist/{image-VaT7AN-S.d.mts.map → image-BLls2F4t.d.mts.map} +1 -1
- package/dist/image-Cqtj3yRA.mjs +178 -0
- package/dist/image-Cqtj3yRA.mjs.map +1 -0
- package/dist/image.d.mts +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/dist/{input-BGTTujDN.mjs → input-ET2YEMcl.mjs} +2 -2
- package/dist/{input-BGTTujDN.mjs.map → input-ET2YEMcl.mjs.map} +1 -1
- package/dist/{input-BAYux7qo.d.mts → input-NuD8TH8N.d.mts} +3 -3
- package/dist/{input-BAYux7qo.d.mts.map → input-NuD8TH8N.d.mts.map} +1 -1
- package/dist/{inspect-CfNydMgO.d.mts → inspect-B1uXxdKC.d.mts} +2 -2
- package/dist/{inspect-CfNydMgO.d.mts.map → inspect-B1uXxdKC.d.mts.map} +1 -1
- package/dist/{inspect-jG_W4njH.mjs → inspect-Cxzs-W0g.mjs} +2 -2
- package/dist/{inspect-jG_W4njH.mjs.map → inspect-Cxzs-W0g.mjs.map} +1 -1
- package/dist/kitty-DKQYsQfH.mjs +1 -0
- package/dist/{log-ByKlM4iI.mjs → log-B4djzy2m.mjs} +4 -4
- package/dist/{log-ByKlM4iI.mjs.map → log-B4djzy2m.mjs.map} +1 -1
- package/dist/{logger-DSQb0sLP.mjs → logger-CvJCITzP.mjs} +3 -3
- package/dist/{logger-DSQb0sLP.mjs.map → logger-CvJCITzP.mjs.map} +1 -1
- package/dist/{markdown-CwRmWuU6.mjs → markdown-D3ZtRn6C.mjs} +9 -8
- package/dist/markdown-D3ZtRn6C.mjs.map +1 -0
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.mts.map +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/math-CU0wmC9N.mjs +1 -0
- package/dist/math-Dd7a1irv.mjs +206 -0
- package/dist/math-Dd7a1irv.mjs.map +1 -0
- package/dist/oklch-Bsh5swbC.mjs +99 -0
- package/dist/oklch-Bsh5swbC.mjs.map +1 -0
- package/dist/{overlay-BnvOKtGT.mjs → overlay-LvOjG7kn.mjs} +2 -2
- package/dist/{overlay-BnvOKtGT.mjs.map → overlay-LvOjG7kn.mjs.map} +1 -1
- package/dist/{picker-DQs_IW77.d.mts → picker-B-OxKKnD.d.mts} +5 -5
- package/dist/{picker-DQs_IW77.d.mts.map → picker-B-OxKKnD.d.mts.map} +1 -1
- package/dist/{picker-Dh5IUrTk.mjs → picker-f6xjgACX.mjs} +2 -2
- package/dist/{picker-Dh5IUrTk.mjs.map → picker-f6xjgACX.mjs.map} +1 -1
- package/dist/{queries-B_lOwEiE.mjs → queries-BUkBxkuM.mjs} +66 -3
- package/dist/queries-BUkBxkuM.mjs.map +1 -0
- package/dist/{queries-BDX8mcl5.d.mts → queries-C75-wG1B.d.mts} +19 -4
- package/dist/{queries-BDX8mcl5.d.mts.map → queries-C75-wG1B.d.mts.map} +1 -1
- package/dist/{registry-D-suU3g0.mjs → registry-DUWpSPoo.mjs} +202 -57
- package/dist/registry-DUWpSPoo.mjs.map +1 -0
- package/dist/{render-DEIUNLkh.mjs → render-B7LfNM5K.mjs} +2 -2
- package/dist/{render-DEIUNLkh.mjs.map → render-B7LfNM5K.mjs.map} +1 -1
- package/dist/{renderer-zDNlAovy.mjs → renderer-BLsd-wrG.mjs} +110 -14
- package/dist/renderer-BLsd-wrG.mjs.map +1 -0
- package/dist/renderer-YHbR7JZ4.mjs +1 -0
- package/dist/{renderer-MQue4Da5.mjs → renderer-aAtkFgll.mjs} +8 -7
- package/dist/renderer-aAtkFgll.mjs.map +1 -0
- package/dist/{select-J2KtwxyK.d.mts → select-BKE5LzdN.d.mts} +3 -3
- package/dist/{select-J2KtwxyK.d.mts.map → select-BKE5LzdN.d.mts.map} +1 -1
- package/dist/services/logger.d.mts +1 -1
- package/dist/services/logger.mjs +1 -1
- package/dist/services/notifier.d.mts +1 -1
- package/dist/services/notifier.mjs +2 -2
- package/dist/services/picker.d.mts +5 -5
- package/dist/services/picker.mjs +6 -6
- package/dist/services/prompt.d.mts +4 -4
- package/dist/services/prompt.mjs +5 -5
- package/dist/shiki/server.mjs +37 -14
- package/dist/shiki/server.mjs.map +1 -1
- package/dist/shiki-B4U0s8jT.mjs +635 -0
- package/dist/shiki-B4U0s8jT.mjs.map +1 -0
- package/dist/shiki-CJauRusM.mjs +20 -0
- package/dist/shiki-CJauRusM.mjs.map +1 -0
- package/dist/style-DslRHzI4.mjs +109 -0
- package/dist/style-DslRHzI4.mjs.map +1 -0
- package/dist/style.d.mts +4 -3
- package/dist/style.d.mts.map +1 -1
- package/dist/style.mjs +4 -4
- package/dist/{text-CkQ7Irmt.mjs → text-BoJdKXLU.mjs} +2 -2
- package/dist/{text-CkQ7Irmt.mjs.map → text-BoJdKXLU.mjs.map} +1 -1
- package/dist/{text-CCYs9RB2.d.mts → text-CmxbA8lk.d.mts} +3 -3
- package/dist/{text-CCYs9RB2.d.mts.map → text-CmxbA8lk.d.mts.map} +1 -1
- package/dist/{text-XvPfweeg.mjs → text-DPrhma4x.mjs} +2 -2
- package/dist/{text-XvPfweeg.mjs.map → text-DPrhma4x.mjs.map} +1 -1
- package/dist/text.d.mts +1 -1
- package/dist/text.mjs +1 -1
- package/dist/theme-C8LkcoaK.mjs +61 -0
- package/dist/theme-C8LkcoaK.mjs.map +1 -0
- package/dist/theme-DVX8dvGG.mjs +1794 -0
- package/dist/theme-DVX8dvGG.mjs.map +1 -0
- package/dist/themes.d.mts +213 -73
- package/dist/themes.d.mts.map +1 -1
- package/dist/themes.mjs +1 -1
- package/dist/{tree-DJl5W_B7.d.mts → tree-CTvSpF9b.d.mts} +3 -3
- package/dist/{tree-DJl5W_B7.d.mts.map → tree-CTvSpF9b.d.mts.map} +1 -1
- package/dist/{types-D2EYlzmK.d.mts → types-C9ceMsbJ.d.mts} +136 -128
- package/dist/types-C9ceMsbJ.d.mts.map +1 -0
- package/dist/{widget-DPqBbB57.d.mts → widget-DlF32PRp.d.mts} +2 -2
- package/dist/{widget-DPqBbB57.d.mts.map → widget-DlF32PRp.d.mts.map} +1 -1
- package/dist/widgets/autocomplete.d.mts +1 -1
- package/dist/widgets/autocomplete.mjs +2 -2
- package/dist/widgets/box.d.mts +1 -1
- package/dist/widgets/box.mjs +1 -1
- package/dist/widgets/code.d.mts +4 -2
- package/dist/widgets/code.d.mts.map +1 -1
- package/dist/widgets/code.mjs +8 -7
- package/dist/widgets/code.mjs.map +1 -1
- package/dist/widgets/completions/actions.d.mts +1 -1
- package/dist/widgets/completions/files.d.mts +1 -1
- package/dist/widgets/completions/github.d.mts +1 -1
- package/dist/widgets/completions/index.d.mts +3 -3
- package/dist/widgets/diff.d.mts +2 -2
- package/dist/widgets/diff.d.mts.map +1 -1
- package/dist/widgets/diff.mjs +35 -12
- package/dist/widgets/diff.mjs.map +1 -1
- package/dist/widgets/divider.d.mts +2 -2
- package/dist/widgets/divider.mjs +1 -1
- package/dist/widgets/image.d.mts +1 -1
- package/dist/widgets/image.mjs +4 -4
- package/dist/widgets/image.mjs.map +1 -1
- package/dist/widgets/input.d.mts +1 -1
- package/dist/widgets/input.mjs +1 -1
- package/dist/widgets/log.d.mts +1 -1
- package/dist/widgets/log.mjs +1 -1
- package/dist/widgets/markdown.d.mts +4 -4
- package/dist/widgets/markdown.d.mts.map +1 -1
- package/dist/widgets/markdown.mjs +1 -1
- package/dist/widgets/overlay.d.mts +1 -1
- package/dist/widgets/overlay.mjs +1 -1
- package/dist/widgets/picker.d.mts +1 -1
- package/dist/widgets/picker.mjs +1 -1
- package/dist/widgets/progress.d.mts +2 -2
- package/dist/widgets/select.d.mts +1 -1
- package/dist/widgets/show.d.mts +1 -1
- package/dist/widgets/spinner.d.mts +2 -2
- package/dist/widgets/text.d.mts +1 -1
- package/dist/widgets/text.mjs +1 -1
- package/dist/widgets/tree.d.mts +1 -1
- package/dist/widgets/widget.d.mts +1 -1
- package/package.json +5 -7
- package/assets/themes/dracula-soft.json +0 -100
- package/assets/themes/github-dark.json +0 -104
- package/assets/themes/github-light.json +0 -104
- package/dist/ansi-DZlXaItJ.mjs.map +0 -1
- package/dist/builder-1z5ewEWK.mjs +0 -386
- package/dist/builder-1z5ewEWK.mjs.map +0 -1
- package/dist/client-C2GXKfJ1.mjs.map +0 -1
- package/dist/client-bzdHIDL2.mjs +0 -1
- package/dist/ctx-D_JgJ8Eo.mjs +0 -1
- package/dist/image-Cm5T-uw-.mjs +0 -108
- package/dist/image-Cm5T-uw-.mjs.map +0 -1
- package/dist/markdown-CwRmWuU6.mjs.map +0 -1
- package/dist/queries-B_lOwEiE.mjs.map +0 -1
- package/dist/registry-D-suU3g0.mjs.map +0 -1
- package/dist/renderer-DhqbEVVR.mjs +0 -1
- package/dist/renderer-MQue4Da5.mjs.map +0 -1
- package/dist/renderer-zDNlAovy.mjs.map +0 -1
- package/dist/shiki--ASSYv4_.mjs +0 -12
- package/dist/shiki--ASSYv4_.mjs.map +0 -1
- package/dist/shiki-D7l5--zz.mjs +0 -432
- package/dist/shiki-D7l5--zz.mjs.map +0 -1
- package/dist/theme.config-B3Yx--C2.mjs +0 -855
- package/dist/theme.config-B3Yx--C2.mjs.map +0 -1
- package/dist/types-D2EYlzmK.d.mts.map +0 -1
|
@@ -1,855 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/typia@15.1.0+367f7514c87f1df1/node_modules/typia/lib/TypeGuardError.mjs
|
|
2
|
-
/**
|
|
3
|
-
* Error thrown when type assertion fails.
|
|
4
|
-
*
|
|
5
|
-
* Thrown by {@link assert}, {@link assertGuard}, and other assert-family
|
|
6
|
-
* functions when input doesn't match expected type `T`. Contains detailed
|
|
7
|
-
* information about the first assertion failure:
|
|
8
|
-
*
|
|
9
|
-
* - `method`: Which typia function threw (e.g., `"typia.assert"`)
|
|
10
|
-
* - `path`: Property path where error occurred (e.g., `"input.user.age"`)
|
|
11
|
-
* - `expected`: Expected type string (e.g., `"number & ExclusiveMinimum<19>"`)
|
|
12
|
-
* - `value`: Actual value that failed validation
|
|
13
|
-
*
|
|
14
|
-
* @template T Expected type (for type safety)
|
|
15
|
-
*/
|
|
16
|
-
var TypeGuardError = class extends Error {
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new TypeGuardError instance.
|
|
19
|
-
*
|
|
20
|
-
* @param props Error properties
|
|
21
|
-
*/
|
|
22
|
-
constructor(props) {
|
|
23
|
-
super(props.message || `Error on ${props.method}(): invalid type${props.path ? ` on ${props.path}` : ""}, expect to be ${props.expected}`);
|
|
24
|
-
const proto = new.target.prototype;
|
|
25
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(this, proto);
|
|
26
|
-
else this.__proto__ = proto;
|
|
27
|
-
this.name = "TypeGuardError";
|
|
28
|
-
this.method = props.method;
|
|
29
|
-
this.path = props.path;
|
|
30
|
-
this.expected = props.expected;
|
|
31
|
-
this.value = props.value;
|
|
32
|
-
if (props.description || props.value === void 0) this.description = props.description ?? [
|
|
33
|
-
"The value at this path is `undefined`.",
|
|
34
|
-
"",
|
|
35
|
-
`Please fill the \`${props.expected}\` typed value next time.`
|
|
36
|
-
].join("\n");
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region ../../node_modules/.bun/typia@15.1.0+367f7514c87f1df1/node_modules/typia/lib/internal/_assertGuard.mjs
|
|
41
|
-
/**
|
|
42
|
-
* Report an assertion failure.
|
|
43
|
-
*
|
|
44
|
-
* When `exceptionable` is true it throws the error that `factory` makes, or a
|
|
45
|
-
* TypeGuardError when `factory` is not a function; otherwise it returns false
|
|
46
|
-
* so a union probe can try the next branch.
|
|
47
|
-
*
|
|
48
|
-
* @evidence contracts/common.md#principled-implementation When the call is exceptionable it throws an error built by the caller's factory if one is a function, and a TypeGuardError otherwise, and when it is not exceptionable it returns false so a union probe can try another branch without throwing. The factory is tested for callability because a pointwise call such as `rows.map(assertUser)` passes the element index in that position, which a bare truthiness test would call.
|
|
49
|
-
* @evidence contracts/common.md#clear-and-simple-design One function with a boolean guard and one factory branch.
|
|
50
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts A non-callable argument falls back to the default error and is not retried or wrapped; the comment explains that a create-time factory overridden by the argument cannot be recovered here.
|
|
51
|
-
* @evidence contracts/common.md#meaningful-documentation The doc states the two outcomes and the factory rule; the inline comment records the pointwise hand-off failure.
|
|
52
|
-
*/
|
|
53
|
-
const _assertGuard = (exceptionable, props, factory) => {
|
|
54
|
-
if (exceptionable === true) {
|
|
55
|
-
if (typeof factory === "function") throw factory(props);
|
|
56
|
-
throw new TypeGuardError(props);
|
|
57
|
-
}
|
|
58
|
-
return false;
|
|
59
|
-
};
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region ../../node_modules/.bun/typia@15.1.0+367f7514c87f1df1/node_modules/typia/lib/internal/_accessExpressionAsString.mjs
|
|
62
|
-
/**
|
|
63
|
-
* Write a property access on a key as source text.
|
|
64
|
-
*
|
|
65
|
-
* A key that is a legal ASCII identifier and not a reserved word becomes
|
|
66
|
-
* `.key`, and any other key becomes `["key"]` with a JSON string literal.
|
|
67
|
-
*
|
|
68
|
-
* @evidence contracts/common.md#principled-implementation A key that is a legal ASCII identifier and not a reserved word is written as a dot access, and every other key as a bracket access with a JSON string literal, which is a valid JavaScript string literal for any key, so the emitted access expression is correct for every property name. The reserved list is conservative for dot access, which is legal after a dot, so it can only cause an extra bracket form; the strict-mode future reserved words are not in the list.
|
|
69
|
-
* @evidence contracts/common.md#clear-and-simple-design One function with two private helpers, the identifier test and the reserved set.
|
|
70
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts The decision is purely lexical and no property name is special-cased.
|
|
71
|
-
* @evidence contracts/common.md#meaningful-documentation The doc states the dot and bracket forms and why bracket access is always safe.
|
|
72
|
-
*/
|
|
73
|
-
const _accessExpressionAsString = (str) => variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
|
|
74
|
-
const variable = (str) => reserved(str) === false && /^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(str);
|
|
75
|
-
const reserved = (str) => RESERVED.has(str);
|
|
76
|
-
const RESERVED = /* @__PURE__ */ new Set([
|
|
77
|
-
"break",
|
|
78
|
-
"case",
|
|
79
|
-
"catch",
|
|
80
|
-
"class",
|
|
81
|
-
"const",
|
|
82
|
-
"continue",
|
|
83
|
-
"debugger",
|
|
84
|
-
"default",
|
|
85
|
-
"delete",
|
|
86
|
-
"do",
|
|
87
|
-
"else",
|
|
88
|
-
"enum",
|
|
89
|
-
"export",
|
|
90
|
-
"extends",
|
|
91
|
-
"false",
|
|
92
|
-
"finally",
|
|
93
|
-
"for",
|
|
94
|
-
"function",
|
|
95
|
-
"if",
|
|
96
|
-
"import",
|
|
97
|
-
"in",
|
|
98
|
-
"instanceof",
|
|
99
|
-
"new",
|
|
100
|
-
"null",
|
|
101
|
-
"return",
|
|
102
|
-
"super",
|
|
103
|
-
"switch",
|
|
104
|
-
"this",
|
|
105
|
-
"throw",
|
|
106
|
-
"true",
|
|
107
|
-
"try",
|
|
108
|
-
"typeof",
|
|
109
|
-
"var",
|
|
110
|
-
"void",
|
|
111
|
-
"while",
|
|
112
|
-
"with"
|
|
113
|
-
]);
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region src/schemas/gen/theme.config.ts
|
|
116
|
-
const __typia_transform__accessExpressionAsString = _accessExpressionAsString;
|
|
117
|
-
const toBaseColor = (() => {
|
|
118
|
-
const _iv0 = /* @__PURE__ */ new Set([
|
|
119
|
-
"accent",
|
|
120
|
-
"bg",
|
|
121
|
-
"black",
|
|
122
|
-
"blue",
|
|
123
|
-
"border",
|
|
124
|
-
"borderTitle",
|
|
125
|
-
"brightBlack",
|
|
126
|
-
"brightBlue",
|
|
127
|
-
"brightCyan",
|
|
128
|
-
"brightGray",
|
|
129
|
-
"brightGreen",
|
|
130
|
-
"brightGrey",
|
|
131
|
-
"brightMagenta",
|
|
132
|
-
"brightRed",
|
|
133
|
-
"brightWhite",
|
|
134
|
-
"brightYellow",
|
|
135
|
-
"code",
|
|
136
|
-
"codeTitle",
|
|
137
|
-
"comment",
|
|
138
|
-
"cyan",
|
|
139
|
-
"delim",
|
|
140
|
-
"diffAdd",
|
|
141
|
-
"diffContext",
|
|
142
|
-
"diffDel",
|
|
143
|
-
"diffLine",
|
|
144
|
-
"diffTitle",
|
|
145
|
-
"divider",
|
|
146
|
-
"error",
|
|
147
|
-
"fg",
|
|
148
|
-
"gray",
|
|
149
|
-
"green",
|
|
150
|
-
"grey",
|
|
151
|
-
"gutter",
|
|
152
|
-
"highlight",
|
|
153
|
-
"info",
|
|
154
|
-
"inherit",
|
|
155
|
-
"magenta",
|
|
156
|
-
"mdBold",
|
|
157
|
-
"mdCode",
|
|
158
|
-
"mdCodeBlock",
|
|
159
|
-
"mdCodeBlockTitle",
|
|
160
|
-
"mdHeading",
|
|
161
|
-
"mdHeading1",
|
|
162
|
-
"mdHeading2",
|
|
163
|
-
"mdHeading3",
|
|
164
|
-
"mdHeading4",
|
|
165
|
-
"mdHeading5",
|
|
166
|
-
"mdHeading6",
|
|
167
|
-
"mdHr",
|
|
168
|
-
"mdItalic",
|
|
169
|
-
"mdLink",
|
|
170
|
-
"mdListBullet",
|
|
171
|
-
"mdListChecked",
|
|
172
|
-
"mdListUnchecked",
|
|
173
|
-
"mdQuote",
|
|
174
|
-
"mdStrikethrough",
|
|
175
|
-
"mdTable",
|
|
176
|
-
"mdTableHeader",
|
|
177
|
-
"muted",
|
|
178
|
-
"name",
|
|
179
|
-
"optionActive",
|
|
180
|
-
"optionDesc",
|
|
181
|
-
"optionName",
|
|
182
|
-
"overlay",
|
|
183
|
-
"primary",
|
|
184
|
-
"prompt",
|
|
185
|
-
"quiet",
|
|
186
|
-
"red",
|
|
187
|
-
"selection",
|
|
188
|
-
"success",
|
|
189
|
-
"syntaxBoolean",
|
|
190
|
-
"syntaxBracket",
|
|
191
|
-
"syntaxConstant",
|
|
192
|
-
"syntaxDelimiter",
|
|
193
|
-
"syntaxField",
|
|
194
|
-
"syntaxFunction",
|
|
195
|
-
"syntaxNumber",
|
|
196
|
-
"syntaxSpecial",
|
|
197
|
-
"syntaxString",
|
|
198
|
-
"title",
|
|
199
|
-
"ui",
|
|
200
|
-
"warn",
|
|
201
|
-
"white",
|
|
202
|
-
"yellow"
|
|
203
|
-
]);
|
|
204
|
-
const _av0 = /* @__PURE__ */ new Set([
|
|
205
|
-
"accent",
|
|
206
|
-
"bg",
|
|
207
|
-
"black",
|
|
208
|
-
"blue",
|
|
209
|
-
"border",
|
|
210
|
-
"borderTitle",
|
|
211
|
-
"brightBlack",
|
|
212
|
-
"brightBlue",
|
|
213
|
-
"brightCyan",
|
|
214
|
-
"brightGray",
|
|
215
|
-
"brightGreen",
|
|
216
|
-
"brightGrey",
|
|
217
|
-
"brightMagenta",
|
|
218
|
-
"brightRed",
|
|
219
|
-
"brightWhite",
|
|
220
|
-
"brightYellow",
|
|
221
|
-
"code",
|
|
222
|
-
"codeTitle",
|
|
223
|
-
"comment",
|
|
224
|
-
"cyan",
|
|
225
|
-
"delim",
|
|
226
|
-
"diffAdd",
|
|
227
|
-
"diffContext",
|
|
228
|
-
"diffDel",
|
|
229
|
-
"diffLine",
|
|
230
|
-
"diffTitle",
|
|
231
|
-
"divider",
|
|
232
|
-
"error",
|
|
233
|
-
"fg",
|
|
234
|
-
"gray",
|
|
235
|
-
"green",
|
|
236
|
-
"grey",
|
|
237
|
-
"gutter",
|
|
238
|
-
"highlight",
|
|
239
|
-
"info",
|
|
240
|
-
"inherit",
|
|
241
|
-
"magenta",
|
|
242
|
-
"mdBold",
|
|
243
|
-
"mdCode",
|
|
244
|
-
"mdCodeBlock",
|
|
245
|
-
"mdCodeBlockTitle",
|
|
246
|
-
"mdHeading",
|
|
247
|
-
"mdHeading1",
|
|
248
|
-
"mdHeading2",
|
|
249
|
-
"mdHeading3",
|
|
250
|
-
"mdHeading4",
|
|
251
|
-
"mdHeading5",
|
|
252
|
-
"mdHeading6",
|
|
253
|
-
"mdHr",
|
|
254
|
-
"mdItalic",
|
|
255
|
-
"mdLink",
|
|
256
|
-
"mdListBullet",
|
|
257
|
-
"mdListChecked",
|
|
258
|
-
"mdListUnchecked",
|
|
259
|
-
"mdQuote",
|
|
260
|
-
"mdStrikethrough",
|
|
261
|
-
"mdTable",
|
|
262
|
-
"mdTableHeader",
|
|
263
|
-
"muted",
|
|
264
|
-
"name",
|
|
265
|
-
"optionActive",
|
|
266
|
-
"optionDesc",
|
|
267
|
-
"optionName",
|
|
268
|
-
"overlay",
|
|
269
|
-
"primary",
|
|
270
|
-
"prompt",
|
|
271
|
-
"quiet",
|
|
272
|
-
"red",
|
|
273
|
-
"selection",
|
|
274
|
-
"success",
|
|
275
|
-
"syntaxBoolean",
|
|
276
|
-
"syntaxBracket",
|
|
277
|
-
"syntaxConstant",
|
|
278
|
-
"syntaxDelimiter",
|
|
279
|
-
"syntaxField",
|
|
280
|
-
"syntaxFunction",
|
|
281
|
-
"syntaxNumber",
|
|
282
|
-
"syntaxSpecial",
|
|
283
|
-
"syntaxString",
|
|
284
|
-
"title",
|
|
285
|
-
"ui",
|
|
286
|
-
"warn",
|
|
287
|
-
"white",
|
|
288
|
-
"yellow"
|
|
289
|
-
]);
|
|
290
|
-
const _ae0 = "(\"accent\" | \"bg\" | \"black\" | \"blue\" | \"border\" | \"borderTitle\" | \"brightBlack\" | \"brightBlue\" | \"brightCyan\" | \"brightGray\" | \"brightGreen\" | \"brightGrey\" | \"brightMagenta\" | \"brightRed\" | \"brightWhite\" | \"brightYellow\" | \"code\" | \"codeTitle\" | \"comment\" | \"cyan\" | \"delim\" | \"diffAdd\" | \"diffContext\" | \"diffDel\" | \"diffLine\" | \"diffTitle\" | \"divider\" | \"error\" | \"fg\" | \"gray\" | \"green\" | \"grey\" | \"gutter\" | \"highlight\" | \"info\" | \"inherit\" | \"magenta\" | \"mdBold\" | \"mdCode\" | \"mdCodeBlock\" | \"mdCodeBlockTitle\" | \"mdHeading\" | \"mdHeading1\" | \"mdHeading2\" | \"mdHeading3\" | \"mdHeading4\" | \"mdHeading5\" | \"mdHeading6\" | \"mdHr\" | \"mdItalic\" | \"mdLink\" | \"mdListBullet\" | \"mdListChecked\" | \"mdListUnchecked\" | \"mdQuote\" | \"mdStrikethrough\" | \"mdTable\" | \"mdTableHeader\" | \"muted\" | \"name\" | \"optionActive\" | \"optionDesc\" | \"optionName\" | \"overlay\" | \"primary\" | \"prompt\" | \"quiet\" | \"red\" | \"selection\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"title\" | \"ui\" | \"warn\" | \"white\" | \"yellow\" | `#${string}`)";
|
|
291
|
-
const __is = (input) => null !== input && void 0 !== input && (true === _iv0.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input));
|
|
292
|
-
let _errorFactory;
|
|
293
|
-
return (input, errorFactory) => {
|
|
294
|
-
if (false === __is(input)) {
|
|
295
|
-
_errorFactory = errorFactory;
|
|
296
|
-
((input, _path, _exceptionable = true) => (null !== input || _assertGuard(true, {
|
|
297
|
-
method: "typia.createAssert",
|
|
298
|
-
path: _path + "",
|
|
299
|
-
expected: _ae0,
|
|
300
|
-
value: input
|
|
301
|
-
}, _errorFactory)) && (void 0 !== input || _assertGuard(true, {
|
|
302
|
-
method: "typia.createAssert",
|
|
303
|
-
path: _path + "",
|
|
304
|
-
expected: _ae0,
|
|
305
|
-
value: input
|
|
306
|
-
}, _errorFactory)) && (true === _av0.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input) || _assertGuard(true, {
|
|
307
|
-
method: "typia.createAssert",
|
|
308
|
-
path: _path + "",
|
|
309
|
-
expected: _ae0,
|
|
310
|
-
value: input
|
|
311
|
-
}, _errorFactory)))(input, "$input", true);
|
|
312
|
-
}
|
|
313
|
-
return input;
|
|
314
|
-
};
|
|
315
|
-
})();
|
|
316
|
-
const toLightnessColor = (() => {
|
|
317
|
-
const _iv0 = /* @__PURE__ */ new Set([
|
|
318
|
-
"accent",
|
|
319
|
-
"bg",
|
|
320
|
-
"border",
|
|
321
|
-
"borderTitle",
|
|
322
|
-
"code",
|
|
323
|
-
"codeTitle",
|
|
324
|
-
"comment",
|
|
325
|
-
"delim",
|
|
326
|
-
"diffAdd",
|
|
327
|
-
"diffContext",
|
|
328
|
-
"diffDel",
|
|
329
|
-
"diffLine",
|
|
330
|
-
"diffTitle",
|
|
331
|
-
"divider",
|
|
332
|
-
"error",
|
|
333
|
-
"fg",
|
|
334
|
-
"gutter",
|
|
335
|
-
"highlight",
|
|
336
|
-
"info",
|
|
337
|
-
"mdBold",
|
|
338
|
-
"mdCode",
|
|
339
|
-
"mdCodeBlock",
|
|
340
|
-
"mdCodeBlockTitle",
|
|
341
|
-
"mdHeading",
|
|
342
|
-
"mdHeading1",
|
|
343
|
-
"mdHeading2",
|
|
344
|
-
"mdHeading3",
|
|
345
|
-
"mdHeading4",
|
|
346
|
-
"mdHeading5",
|
|
347
|
-
"mdHeading6",
|
|
348
|
-
"mdHr",
|
|
349
|
-
"mdItalic",
|
|
350
|
-
"mdLink",
|
|
351
|
-
"mdListBullet",
|
|
352
|
-
"mdListChecked",
|
|
353
|
-
"mdListUnchecked",
|
|
354
|
-
"mdQuote",
|
|
355
|
-
"mdStrikethrough",
|
|
356
|
-
"mdTable",
|
|
357
|
-
"mdTableHeader",
|
|
358
|
-
"muted",
|
|
359
|
-
"name",
|
|
360
|
-
"optionActive",
|
|
361
|
-
"optionDesc",
|
|
362
|
-
"optionName",
|
|
363
|
-
"overlay",
|
|
364
|
-
"primary",
|
|
365
|
-
"prompt",
|
|
366
|
-
"quiet",
|
|
367
|
-
"selection",
|
|
368
|
-
"success",
|
|
369
|
-
"syntaxBoolean",
|
|
370
|
-
"syntaxBracket",
|
|
371
|
-
"syntaxConstant",
|
|
372
|
-
"syntaxDelimiter",
|
|
373
|
-
"syntaxField",
|
|
374
|
-
"syntaxFunction",
|
|
375
|
-
"syntaxNumber",
|
|
376
|
-
"syntaxSpecial",
|
|
377
|
-
"syntaxString",
|
|
378
|
-
"title",
|
|
379
|
-
"ui",
|
|
380
|
-
"warn"
|
|
381
|
-
]);
|
|
382
|
-
const _av0 = /* @__PURE__ */ new Set([
|
|
383
|
-
"accent",
|
|
384
|
-
"bg",
|
|
385
|
-
"border",
|
|
386
|
-
"borderTitle",
|
|
387
|
-
"code",
|
|
388
|
-
"codeTitle",
|
|
389
|
-
"comment",
|
|
390
|
-
"delim",
|
|
391
|
-
"diffAdd",
|
|
392
|
-
"diffContext",
|
|
393
|
-
"diffDel",
|
|
394
|
-
"diffLine",
|
|
395
|
-
"diffTitle",
|
|
396
|
-
"divider",
|
|
397
|
-
"error",
|
|
398
|
-
"fg",
|
|
399
|
-
"gutter",
|
|
400
|
-
"highlight",
|
|
401
|
-
"info",
|
|
402
|
-
"mdBold",
|
|
403
|
-
"mdCode",
|
|
404
|
-
"mdCodeBlock",
|
|
405
|
-
"mdCodeBlockTitle",
|
|
406
|
-
"mdHeading",
|
|
407
|
-
"mdHeading1",
|
|
408
|
-
"mdHeading2",
|
|
409
|
-
"mdHeading3",
|
|
410
|
-
"mdHeading4",
|
|
411
|
-
"mdHeading5",
|
|
412
|
-
"mdHeading6",
|
|
413
|
-
"mdHr",
|
|
414
|
-
"mdItalic",
|
|
415
|
-
"mdLink",
|
|
416
|
-
"mdListBullet",
|
|
417
|
-
"mdListChecked",
|
|
418
|
-
"mdListUnchecked",
|
|
419
|
-
"mdQuote",
|
|
420
|
-
"mdStrikethrough",
|
|
421
|
-
"mdTable",
|
|
422
|
-
"mdTableHeader",
|
|
423
|
-
"muted",
|
|
424
|
-
"name",
|
|
425
|
-
"optionActive",
|
|
426
|
-
"optionDesc",
|
|
427
|
-
"optionName",
|
|
428
|
-
"overlay",
|
|
429
|
-
"primary",
|
|
430
|
-
"prompt",
|
|
431
|
-
"quiet",
|
|
432
|
-
"selection",
|
|
433
|
-
"success",
|
|
434
|
-
"syntaxBoolean",
|
|
435
|
-
"syntaxBracket",
|
|
436
|
-
"syntaxConstant",
|
|
437
|
-
"syntaxDelimiter",
|
|
438
|
-
"syntaxField",
|
|
439
|
-
"syntaxFunction",
|
|
440
|
-
"syntaxNumber",
|
|
441
|
-
"syntaxSpecial",
|
|
442
|
-
"syntaxString",
|
|
443
|
-
"title",
|
|
444
|
-
"ui",
|
|
445
|
-
"warn"
|
|
446
|
-
]);
|
|
447
|
-
const _ae0 = "(\"accent\" | \"bg\" | \"border\" | \"borderTitle\" | \"code\" | \"codeTitle\" | \"comment\" | \"delim\" | \"diffAdd\" | \"diffContext\" | \"diffDel\" | \"diffLine\" | \"diffTitle\" | \"divider\" | \"error\" | \"fg\" | \"gutter\" | \"highlight\" | \"info\" | \"mdBold\" | \"mdCode\" | \"mdCodeBlock\" | \"mdCodeBlockTitle\" | \"mdHeading\" | \"mdHeading1\" | \"mdHeading2\" | \"mdHeading3\" | \"mdHeading4\" | \"mdHeading5\" | \"mdHeading6\" | \"mdHr\" | \"mdItalic\" | \"mdLink\" | \"mdListBullet\" | \"mdListChecked\" | \"mdListUnchecked\" | \"mdQuote\" | \"mdStrikethrough\" | \"mdTable\" | \"mdTableHeader\" | \"muted\" | \"name\" | \"optionActive\" | \"optionDesc\" | \"optionName\" | \"overlay\" | \"primary\" | \"prompt\" | \"quiet\" | \"selection\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"title\" | \"ui\" | \"warn\" | `#${string}`)";
|
|
448
|
-
const __is = (input) => null !== input && void 0 !== input && (true === _iv0.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input));
|
|
449
|
-
let _errorFactory;
|
|
450
|
-
return (input, errorFactory) => {
|
|
451
|
-
if (false === __is(input)) {
|
|
452
|
-
_errorFactory = errorFactory;
|
|
453
|
-
((input, _path, _exceptionable = true) => (null !== input || _assertGuard(true, {
|
|
454
|
-
method: "typia.createAssert",
|
|
455
|
-
path: _path + "",
|
|
456
|
-
expected: _ae0,
|
|
457
|
-
value: input
|
|
458
|
-
}, _errorFactory)) && (void 0 !== input || _assertGuard(true, {
|
|
459
|
-
method: "typia.createAssert",
|
|
460
|
-
path: _path + "",
|
|
461
|
-
expected: _ae0,
|
|
462
|
-
value: input
|
|
463
|
-
}, _errorFactory)) && (true === _av0.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input) || _assertGuard(true, {
|
|
464
|
-
method: "typia.createAssert",
|
|
465
|
-
path: _path + "",
|
|
466
|
-
expected: _ae0,
|
|
467
|
-
value: input
|
|
468
|
-
}, _errorFactory)))(input, "$input", true);
|
|
469
|
-
}
|
|
470
|
-
return input;
|
|
471
|
-
};
|
|
472
|
-
})();
|
|
473
|
-
const toStyle = (() => {
|
|
474
|
-
const _ao0 = (input, _path, _exceptionable = true) => _ao1(input, _path, _exceptionable) && (void 0 === input.fg || "string" === typeof input.fg || _assertGuard(_exceptionable, {
|
|
475
|
-
method: "typia.createAssert",
|
|
476
|
-
path: _path + ".fg",
|
|
477
|
-
expected: "(string | undefined)",
|
|
478
|
-
value: input.fg
|
|
479
|
-
}, _errorFactory)) && (void 0 === input.bg || "string" === typeof input.bg || _assertGuard(_exceptionable, {
|
|
480
|
-
method: "typia.createAssert",
|
|
481
|
-
path: _path + ".bg",
|
|
482
|
-
expected: "(string | undefined)",
|
|
483
|
-
value: input.bg
|
|
484
|
-
}, _errorFactory));
|
|
485
|
-
const _ao1 = (input, _path, _exceptionable = true) => (void 0 === input.bold || "boolean" === typeof input.bold || _assertGuard(_exceptionable, {
|
|
486
|
-
method: "typia.createAssert",
|
|
487
|
-
path: _path + ".bold",
|
|
488
|
-
expected: "(boolean | undefined)",
|
|
489
|
-
value: input.bold
|
|
490
|
-
}, _errorFactory)) && (void 0 === input.dim || "boolean" === typeof input.dim || _assertGuard(_exceptionable, {
|
|
491
|
-
method: "typia.createAssert",
|
|
492
|
-
path: _path + ".dim",
|
|
493
|
-
expected: "(boolean | undefined)",
|
|
494
|
-
value: input.dim
|
|
495
|
-
}, _errorFactory)) && (void 0 === input.italic || "boolean" === typeof input.italic || _assertGuard(_exceptionable, {
|
|
496
|
-
method: "typia.createAssert",
|
|
497
|
-
path: _path + ".italic",
|
|
498
|
-
expected: "(boolean | undefined)",
|
|
499
|
-
value: input.italic
|
|
500
|
-
}, _errorFactory)) && (void 0 === input.underline || "boolean" === typeof input.underline || _assertGuard(_exceptionable, {
|
|
501
|
-
method: "typia.createAssert",
|
|
502
|
-
path: _path + ".underline",
|
|
503
|
-
expected: "(boolean | undefined)",
|
|
504
|
-
value: input.underline
|
|
505
|
-
}, _errorFactory)) && (void 0 === input.inverse || "boolean" === typeof input.inverse || _assertGuard(_exceptionable, {
|
|
506
|
-
method: "typia.createAssert",
|
|
507
|
-
path: _path + ".inverse",
|
|
508
|
-
expected: "(boolean | undefined)",
|
|
509
|
-
value: input.inverse
|
|
510
|
-
}, _errorFactory)) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough || _assertGuard(_exceptionable, {
|
|
511
|
-
method: "typia.createAssert",
|
|
512
|
-
path: _path + ".strikethrough",
|
|
513
|
-
expected: "(boolean | undefined)",
|
|
514
|
-
value: input.strikethrough
|
|
515
|
-
}, _errorFactory));
|
|
516
|
-
const _io0 = (input) => _io1(input) && (void 0 === input.fg || "string" === typeof input.fg) && (void 0 === input.bg || "string" === typeof input.bg);
|
|
517
|
-
const _io1 = (input) => (void 0 === input.bold || "boolean" === typeof input.bold) && (void 0 === input.dim || "boolean" === typeof input.dim) && (void 0 === input.italic || "boolean" === typeof input.italic) && (void 0 === input.underline || "boolean" === typeof input.underline) && (void 0 === input.inverse || "boolean" === typeof input.inverse) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough);
|
|
518
|
-
const __is = (input) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input);
|
|
519
|
-
let _errorFactory;
|
|
520
|
-
return (input, errorFactory) => {
|
|
521
|
-
if (false === __is(input)) {
|
|
522
|
-
_errorFactory = errorFactory;
|
|
523
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _assertGuard(true, {
|
|
524
|
-
method: "typia.createAssert",
|
|
525
|
-
path: _path + "",
|
|
526
|
-
expected: "UserStyle",
|
|
527
|
-
value: input
|
|
528
|
-
}, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard(true, {
|
|
529
|
-
method: "typia.createAssert",
|
|
530
|
-
path: _path + "",
|
|
531
|
-
expected: "UserStyle",
|
|
532
|
-
value: input
|
|
533
|
-
}, _errorFactory))(input, "$input", true);
|
|
534
|
-
}
|
|
535
|
-
return input;
|
|
536
|
-
};
|
|
537
|
-
})();
|
|
538
|
-
const isColorKey = (() => {
|
|
539
|
-
return (input) => "accent" === input || "bg" === input || "error" === input || "fg" === input || "info" === input || "primary" === input || "success" === input || "warn" === input;
|
|
540
|
-
})();
|
|
541
|
-
function toColor(value) {
|
|
542
|
-
if (typeof value !== "string") return toBaseColor(value);
|
|
543
|
-
const color = value.replace(/[+-]\d+/, "");
|
|
544
|
-
if (value.match(/[+-]\d+/)) toLightnessColor(color);
|
|
545
|
-
return toBaseColor(color);
|
|
546
|
-
}
|
|
547
|
-
const validator = (() => {
|
|
548
|
-
const _iv0 = /* @__PURE__ */ new Set([
|
|
549
|
-
"andromeeda",
|
|
550
|
-
"aurora-x",
|
|
551
|
-
"ayu-dark",
|
|
552
|
-
"ayu-light",
|
|
553
|
-
"ayu-mirage",
|
|
554
|
-
"catppuccin-frappe",
|
|
555
|
-
"catppuccin-latte",
|
|
556
|
-
"catppuccin-macchiato",
|
|
557
|
-
"catppuccin-mocha",
|
|
558
|
-
"dark-plus",
|
|
559
|
-
"dracula",
|
|
560
|
-
"dracula-soft",
|
|
561
|
-
"everforest-dark",
|
|
562
|
-
"everforest-light",
|
|
563
|
-
"github-dark",
|
|
564
|
-
"github-dark-default",
|
|
565
|
-
"github-dark-dimmed",
|
|
566
|
-
"github-dark-high-contrast",
|
|
567
|
-
"github-light",
|
|
568
|
-
"github-light-default",
|
|
569
|
-
"github-light-high-contrast",
|
|
570
|
-
"gruvbox-dark-hard",
|
|
571
|
-
"gruvbox-dark-medium",
|
|
572
|
-
"gruvbox-dark-soft",
|
|
573
|
-
"gruvbox-light-hard",
|
|
574
|
-
"gruvbox-light-medium",
|
|
575
|
-
"gruvbox-light-soft",
|
|
576
|
-
"horizon",
|
|
577
|
-
"horizon-bright",
|
|
578
|
-
"houston",
|
|
579
|
-
"kanagawa-dragon",
|
|
580
|
-
"kanagawa-lotus",
|
|
581
|
-
"kanagawa-wave",
|
|
582
|
-
"laserwave",
|
|
583
|
-
"light-plus",
|
|
584
|
-
"material-theme",
|
|
585
|
-
"material-theme-darker",
|
|
586
|
-
"material-theme-lighter",
|
|
587
|
-
"material-theme-ocean",
|
|
588
|
-
"material-theme-palenight",
|
|
589
|
-
"min-dark",
|
|
590
|
-
"min-light",
|
|
591
|
-
"monokai",
|
|
592
|
-
"night-owl",
|
|
593
|
-
"night-owl-light",
|
|
594
|
-
"nord",
|
|
595
|
-
"one-dark-pro",
|
|
596
|
-
"one-light",
|
|
597
|
-
"plastic",
|
|
598
|
-
"poimandres",
|
|
599
|
-
"red",
|
|
600
|
-
"rose-pine",
|
|
601
|
-
"rose-pine-dawn",
|
|
602
|
-
"rose-pine-moon",
|
|
603
|
-
"slack-dark",
|
|
604
|
-
"slack-ochin",
|
|
605
|
-
"snazzy-light",
|
|
606
|
-
"solarized-dark",
|
|
607
|
-
"solarized-light",
|
|
608
|
-
"synthwave-84",
|
|
609
|
-
"tokyo-night",
|
|
610
|
-
"vesper",
|
|
611
|
-
"vitesse-black",
|
|
612
|
-
"vitesse-dark",
|
|
613
|
-
"vitesse-light"
|
|
614
|
-
]);
|
|
615
|
-
const _av0 = /* @__PURE__ */ new Set([
|
|
616
|
-
"andromeeda",
|
|
617
|
-
"aurora-x",
|
|
618
|
-
"ayu-dark",
|
|
619
|
-
"ayu-light",
|
|
620
|
-
"ayu-mirage",
|
|
621
|
-
"catppuccin-frappe",
|
|
622
|
-
"catppuccin-latte",
|
|
623
|
-
"catppuccin-macchiato",
|
|
624
|
-
"catppuccin-mocha",
|
|
625
|
-
"dark-plus",
|
|
626
|
-
"dracula",
|
|
627
|
-
"dracula-soft",
|
|
628
|
-
"everforest-dark",
|
|
629
|
-
"everforest-light",
|
|
630
|
-
"github-dark",
|
|
631
|
-
"github-dark-default",
|
|
632
|
-
"github-dark-dimmed",
|
|
633
|
-
"github-dark-high-contrast",
|
|
634
|
-
"github-light",
|
|
635
|
-
"github-light-default",
|
|
636
|
-
"github-light-high-contrast",
|
|
637
|
-
"gruvbox-dark-hard",
|
|
638
|
-
"gruvbox-dark-medium",
|
|
639
|
-
"gruvbox-dark-soft",
|
|
640
|
-
"gruvbox-light-hard",
|
|
641
|
-
"gruvbox-light-medium",
|
|
642
|
-
"gruvbox-light-soft",
|
|
643
|
-
"horizon",
|
|
644
|
-
"horizon-bright",
|
|
645
|
-
"houston",
|
|
646
|
-
"kanagawa-dragon",
|
|
647
|
-
"kanagawa-lotus",
|
|
648
|
-
"kanagawa-wave",
|
|
649
|
-
"laserwave",
|
|
650
|
-
"light-plus",
|
|
651
|
-
"material-theme",
|
|
652
|
-
"material-theme-darker",
|
|
653
|
-
"material-theme-lighter",
|
|
654
|
-
"material-theme-ocean",
|
|
655
|
-
"material-theme-palenight",
|
|
656
|
-
"min-dark",
|
|
657
|
-
"min-light",
|
|
658
|
-
"monokai",
|
|
659
|
-
"night-owl",
|
|
660
|
-
"night-owl-light",
|
|
661
|
-
"nord",
|
|
662
|
-
"one-dark-pro",
|
|
663
|
-
"one-light",
|
|
664
|
-
"plastic",
|
|
665
|
-
"poimandres",
|
|
666
|
-
"red",
|
|
667
|
-
"rose-pine",
|
|
668
|
-
"rose-pine-dawn",
|
|
669
|
-
"rose-pine-moon",
|
|
670
|
-
"slack-dark",
|
|
671
|
-
"slack-ochin",
|
|
672
|
-
"snazzy-light",
|
|
673
|
-
"solarized-dark",
|
|
674
|
-
"solarized-light",
|
|
675
|
-
"synthwave-84",
|
|
676
|
-
"tokyo-night",
|
|
677
|
-
"vesper",
|
|
678
|
-
"vitesse-black",
|
|
679
|
-
"vitesse-dark",
|
|
680
|
-
"vitesse-light"
|
|
681
|
-
]);
|
|
682
|
-
const _ae0 = "(\"andromeeda\" | \"aurora-x\" | \"ayu-dark\" | \"ayu-light\" | \"ayu-mirage\" | \"catppuccin-frappe\" | \"catppuccin-latte\" | \"catppuccin-macchiato\" | \"catppuccin-mocha\" | \"dark-plus\" | \"dracula\" | \"dracula-soft\" | \"everforest-dark\" | \"everforest-light\" | \"github-dark\" | \"github-dark-default\" | \"github-dark-dimmed\" | \"github-dark-high-contrast\" | \"github-light\" | \"github-light-default\" | \"github-light-high-contrast\" | \"gruvbox-dark-hard\" | \"gruvbox-dark-medium\" | \"gruvbox-dark-soft\" | \"gruvbox-light-hard\" | \"gruvbox-light-medium\" | \"gruvbox-light-soft\" | \"horizon\" | \"horizon-bright\" | \"houston\" | \"kanagawa-dragon\" | \"kanagawa-lotus\" | \"kanagawa-wave\" | \"laserwave\" | \"light-plus\" | \"material-theme\" | \"material-theme-darker\" | \"material-theme-lighter\" | \"material-theme-ocean\" | \"material-theme-palenight\" | \"min-dark\" | \"min-light\" | \"monokai\" | \"night-owl\" | \"night-owl-light\" | \"nord\" | \"one-dark-pro\" | \"one-light\" | \"plastic\" | \"poimandres\" | \"red\" | \"rose-pine\" | \"rose-pine-dawn\" | \"rose-pine-moon\" | \"slack-dark\" | \"slack-ochin\" | \"snazzy-light\" | \"solarized-dark\" | \"solarized-light\" | \"synthwave-84\" | \"tokyo-night\" | \"vesper\" | \"vitesse-black\" | \"vitesse-dark\" | \"vitesse-light\" | undefined)";
|
|
683
|
-
const _ao0 = (input, _path, _exceptionable = true) => (void 0 === input.$schema || "string" === typeof input.$schema || _assertGuard(_exceptionable, {
|
|
684
|
-
method: "typia.createAssertEquals",
|
|
685
|
-
path: _path + ".$schema",
|
|
686
|
-
expected: "(string | undefined)",
|
|
687
|
-
value: input.$schema
|
|
688
|
-
}, _errorFactory)) && (void 0 === input.shiki || true === _av0.has(input.shiki) || _assertGuard(_exceptionable, {
|
|
689
|
-
method: "typia.createAssertEquals",
|
|
690
|
-
path: _path + ".shiki",
|
|
691
|
-
expected: _ae0,
|
|
692
|
-
value: input.shiki
|
|
693
|
-
}, _errorFactory)) && (void 0 === input.id || "string" === typeof input.id || _assertGuard(_exceptionable, {
|
|
694
|
-
method: "typia.createAssertEquals",
|
|
695
|
-
path: _path + ".id",
|
|
696
|
-
expected: "(string | undefined)",
|
|
697
|
-
value: input.id
|
|
698
|
-
}, _errorFactory)) && (void 0 === input.name || "string" === typeof input.name || _assertGuard(_exceptionable, {
|
|
699
|
-
method: "typia.createAssertEquals",
|
|
700
|
-
path: _path + ".name",
|
|
701
|
-
expected: "(string | undefined)",
|
|
702
|
-
value: input.name
|
|
703
|
-
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every((key) => {
|
|
704
|
-
if ([
|
|
705
|
-
"$schema",
|
|
706
|
-
"shiki",
|
|
707
|
-
"id",
|
|
708
|
-
"name"
|
|
709
|
-
].some((prop) => key === prop)) return true;
|
|
710
|
-
const value = input[key];
|
|
711
|
-
if (void 0 === value) return true;
|
|
712
|
-
return (null !== value || _assertGuard(_exceptionable, {
|
|
713
|
-
method: "typia.createAssertEquals",
|
|
714
|
-
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
715
|
-
expected: "(UserStyle | string | undefined)",
|
|
716
|
-
value
|
|
717
|
-
}, _errorFactory)) && (void 0 === value || "string" === typeof value || ("object" === typeof value && null !== value && false === Array.isArray(value) || _assertGuard(_exceptionable, {
|
|
718
|
-
method: "typia.createAssertEquals",
|
|
719
|
-
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
720
|
-
expected: "(UserStyle | string | undefined)",
|
|
721
|
-
value
|
|
722
|
-
}, _errorFactory)) && _ao1(value, _path + __typia_transform__accessExpressionAsString(key), _exceptionable) || _assertGuard(_exceptionable, {
|
|
723
|
-
method: "typia.createAssertEquals",
|
|
724
|
-
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
725
|
-
expected: "(UserStyle | string | undefined)",
|
|
726
|
-
value
|
|
727
|
-
}, _errorFactory));
|
|
728
|
-
}));
|
|
729
|
-
const _ao1 = (input, _path, _exceptionable = true) => (void 0 === input.bold || "boolean" === typeof input.bold || _assertGuard(_exceptionable, {
|
|
730
|
-
method: "typia.createAssertEquals",
|
|
731
|
-
path: _path + ".bold",
|
|
732
|
-
expected: "(boolean | undefined)",
|
|
733
|
-
value: input.bold
|
|
734
|
-
}, _errorFactory)) && (void 0 === input.dim || "boolean" === typeof input.dim || _assertGuard(_exceptionable, {
|
|
735
|
-
method: "typia.createAssertEquals",
|
|
736
|
-
path: _path + ".dim",
|
|
737
|
-
expected: "(boolean | undefined)",
|
|
738
|
-
value: input.dim
|
|
739
|
-
}, _errorFactory)) && (void 0 === input.italic || "boolean" === typeof input.italic || _assertGuard(_exceptionable, {
|
|
740
|
-
method: "typia.createAssertEquals",
|
|
741
|
-
path: _path + ".italic",
|
|
742
|
-
expected: "(boolean | undefined)",
|
|
743
|
-
value: input.italic
|
|
744
|
-
}, _errorFactory)) && (void 0 === input.underline || "boolean" === typeof input.underline || _assertGuard(_exceptionable, {
|
|
745
|
-
method: "typia.createAssertEquals",
|
|
746
|
-
path: _path + ".underline",
|
|
747
|
-
expected: "(boolean | undefined)",
|
|
748
|
-
value: input.underline
|
|
749
|
-
}, _errorFactory)) && (void 0 === input.inverse || "boolean" === typeof input.inverse || _assertGuard(_exceptionable, {
|
|
750
|
-
method: "typia.createAssertEquals",
|
|
751
|
-
path: _path + ".inverse",
|
|
752
|
-
expected: "(boolean | undefined)",
|
|
753
|
-
value: input.inverse
|
|
754
|
-
}, _errorFactory)) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough || _assertGuard(_exceptionable, {
|
|
755
|
-
method: "typia.createAssertEquals",
|
|
756
|
-
path: _path + ".strikethrough",
|
|
757
|
-
expected: "(boolean | undefined)",
|
|
758
|
-
value: input.strikethrough
|
|
759
|
-
}, _errorFactory)) && (void 0 === input.fg || "string" === typeof input.fg || _assertGuard(_exceptionable, {
|
|
760
|
-
method: "typia.createAssertEquals",
|
|
761
|
-
path: _path + ".fg",
|
|
762
|
-
expected: "(string | undefined)",
|
|
763
|
-
value: input.fg
|
|
764
|
-
}, _errorFactory)) && (void 0 === input.bg || "string" === typeof input.bg || _assertGuard(_exceptionable, {
|
|
765
|
-
method: "typia.createAssertEquals",
|
|
766
|
-
path: _path + ".bg",
|
|
767
|
-
expected: "(string | undefined)",
|
|
768
|
-
value: input.bg
|
|
769
|
-
}, _errorFactory)) && (0 === Object.keys(input).length || false === _exceptionable || Object.keys(input).every((key) => {
|
|
770
|
-
if ([
|
|
771
|
-
"bold",
|
|
772
|
-
"dim",
|
|
773
|
-
"italic",
|
|
774
|
-
"underline",
|
|
775
|
-
"inverse",
|
|
776
|
-
"strikethrough",
|
|
777
|
-
"fg",
|
|
778
|
-
"bg"
|
|
779
|
-
].some((prop) => key === prop)) return true;
|
|
780
|
-
const value = input[key];
|
|
781
|
-
if (void 0 === value) return true;
|
|
782
|
-
return _assertGuard(_exceptionable, {
|
|
783
|
-
method: "typia.createAssertEquals",
|
|
784
|
-
path: _path + _accessExpressionAsString(key),
|
|
785
|
-
expected: "undefined",
|
|
786
|
-
value
|
|
787
|
-
}, _errorFactory);
|
|
788
|
-
}));
|
|
789
|
-
const _io0 = (input, _exceptionable = true) => (void 0 === input.$schema || "string" === typeof input.$schema) && (void 0 === input.shiki || true === _iv0.has(input.shiki)) && (void 0 === input.id || "string" === typeof input.id) && (void 0 === input.name || "string" === typeof input.name) && Object.keys(input).every((key) => {
|
|
790
|
-
if ([
|
|
791
|
-
"$schema",
|
|
792
|
-
"shiki",
|
|
793
|
-
"id",
|
|
794
|
-
"name"
|
|
795
|
-
].some((prop) => key === prop)) return true;
|
|
796
|
-
const value = input[key];
|
|
797
|
-
if (void 0 === value) return true;
|
|
798
|
-
return null !== value && (void 0 === value || "string" === typeof value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, _exceptionable));
|
|
799
|
-
});
|
|
800
|
-
const _io1 = (input, _exceptionable = true) => (void 0 === input.bold || "boolean" === typeof input.bold) && (void 0 === input.dim || "boolean" === typeof input.dim) && (void 0 === input.italic || "boolean" === typeof input.italic) && (void 0 === input.underline || "boolean" === typeof input.underline) && (void 0 === input.inverse || "boolean" === typeof input.inverse) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough) && (void 0 === input.fg || "string" === typeof input.fg) && (void 0 === input.bg || "string" === typeof input.bg) && (0 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
801
|
-
if ([
|
|
802
|
-
"bold",
|
|
803
|
-
"dim",
|
|
804
|
-
"italic",
|
|
805
|
-
"underline",
|
|
806
|
-
"inverse",
|
|
807
|
-
"strikethrough",
|
|
808
|
-
"fg",
|
|
809
|
-
"bg"
|
|
810
|
-
].some((prop) => key === prop)) return true;
|
|
811
|
-
if (void 0 === input[key]) return true;
|
|
812
|
-
return false;
|
|
813
|
-
}));
|
|
814
|
-
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true);
|
|
815
|
-
let _errorFactory;
|
|
816
|
-
return (input, errorFactory) => {
|
|
817
|
-
if (false === __is(input)) {
|
|
818
|
-
_errorFactory = errorFactory;
|
|
819
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _assertGuard(true, {
|
|
820
|
-
method: "typia.createAssertEquals",
|
|
821
|
-
path: _path + "",
|
|
822
|
-
expected: "Partial<UserTheme>",
|
|
823
|
-
value: input
|
|
824
|
-
}, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard(true, {
|
|
825
|
-
method: "typia.createAssertEquals",
|
|
826
|
-
path: _path + "",
|
|
827
|
-
expected: "Partial<UserTheme>",
|
|
828
|
-
value: input
|
|
829
|
-
}, _errorFactory))(input, "$input", true);
|
|
830
|
-
}
|
|
831
|
-
return input;
|
|
832
|
-
};
|
|
833
|
-
})();
|
|
834
|
-
const skipSlots = /* @__PURE__ */ new Set([
|
|
835
|
-
"$schema",
|
|
836
|
-
"shiki",
|
|
837
|
-
"id",
|
|
838
|
-
"name"
|
|
839
|
-
]);
|
|
840
|
-
function validateTheme(input) {
|
|
841
|
-
const out = validator(input);
|
|
842
|
-
for (const [slot, value] of Object.entries(out)) {
|
|
843
|
-
if (skipSlots.has(slot) || value === void 0) continue;
|
|
844
|
-
if (typeof value === "string" && toColor(value)) continue;
|
|
845
|
-
if (isColorKey(slot)) toColor(value);
|
|
846
|
-
const style = toStyle(value);
|
|
847
|
-
if (style.fg !== void 0) toColor(style.fg);
|
|
848
|
-
if (style.bg !== void 0) toColor(style.bg);
|
|
849
|
-
}
|
|
850
|
-
return out;
|
|
851
|
-
}
|
|
852
|
-
//#endregion
|
|
853
|
-
export { validateTheme };
|
|
854
|
-
|
|
855
|
-
//# sourceMappingURL=theme.config-B3Yx--C2.mjs.map
|