@zaly/tui 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +59 -0
  3. package/assets/schemas/theme.schema.json +899 -0
  4. package/assets/themes/LICENSE-tokyonight.txt +201 -0
  5. package/assets/themes/NOTICES.md +69 -0
  6. package/assets/themes/ayu-dark.json +119 -0
  7. package/assets/themes/catppuccin-frappe.json +124 -0
  8. package/assets/themes/catppuccin-latte.json +124 -0
  9. package/assets/themes/catppuccin-macchiato.json +124 -0
  10. package/assets/themes/catppuccin-mocha.json +124 -0
  11. package/assets/themes/dracula-soft.json +119 -0
  12. package/assets/themes/dracula.json +119 -0
  13. package/assets/themes/everforest-dark.json +118 -0
  14. package/assets/themes/everforest-light.json +118 -0
  15. package/assets/themes/github-dark.json +123 -0
  16. package/assets/themes/github-light.json +123 -0
  17. package/assets/themes/gruvbox-dark-medium.json +112 -0
  18. package/assets/themes/kanagawa-dragon.json +115 -0
  19. package/assets/themes/kanagawa-wave.json +115 -0
  20. package/assets/themes/material-theme-palenight.json +114 -0
  21. package/assets/themes/min-dark.json +55 -0
  22. package/assets/themes/min-light.json +59 -0
  23. package/assets/themes/monokai.json +116 -0
  24. package/assets/themes/night-owl.json +116 -0
  25. package/assets/themes/nord.json +101 -0
  26. package/assets/themes/one-dark-pro.json +110 -0
  27. package/assets/themes/one-light.json +108 -0
  28. package/assets/themes/poimandres.json +123 -0
  29. package/assets/themes/rose-pine.json +98 -0
  30. package/assets/themes/solarized-dark.json +116 -0
  31. package/assets/themes/solarized-light.json +116 -0
  32. package/assets/themes/synthwave-84.json +100 -0
  33. package/assets/themes/tokyonight-day.json +157 -0
  34. package/assets/themes/tokyonight-moon.json +157 -0
  35. package/assets/themes/tokyonight-night.json +157 -0
  36. package/assets/themes/tokyonight-storm.json +157 -0
  37. package/assets/themes/vesper.json +103 -0
  38. package/assets/themes/vitesse-dark.json +126 -0
  39. package/assets/themes/vitesse-light.json +126 -0
  40. package/dist/ansi-Clq0ozyA.mjs +206 -0
  41. package/dist/ansi-Clq0ozyA.mjs.map +1 -0
  42. package/dist/ansi.d.mts +48 -0
  43. package/dist/ansi.d.mts.map +1 -0
  44. package/dist/ansi.mjs +2 -0
  45. package/dist/autocomplete-Dfw-yQDa.d.mts +100 -0
  46. package/dist/autocomplete-Dfw-yQDa.d.mts.map +1 -0
  47. package/dist/box-DyaByEiG.mjs +386 -0
  48. package/dist/box-DyaByEiG.mjs.map +1 -0
  49. package/dist/builder-D49ECBEf.mjs +385 -0
  50. package/dist/builder-D49ECBEf.mjs.map +1 -0
  51. package/dist/callbacks-CNjGNxVw.mjs +279 -0
  52. package/dist/callbacks-CNjGNxVw.mjs.map +1 -0
  53. package/dist/client-D6C_uczF.mjs +142 -0
  54. package/dist/client-D6C_uczF.mjs.map +1 -0
  55. package/dist/clipboard.d.mts +104 -0
  56. package/dist/clipboard.d.mts.map +1 -0
  57. package/dist/clipboard.mjs +404 -0
  58. package/dist/clipboard.mjs.map +1 -0
  59. package/dist/flex-Bguo-fUe.mjs +202 -0
  60. package/dist/flex-Bguo-fUe.mjs.map +1 -0
  61. package/dist/image-Cm5T-uw-.mjs +108 -0
  62. package/dist/image-Cm5T-uw-.mjs.map +1 -0
  63. package/dist/image.d.mts +123 -0
  64. package/dist/image.d.mts.map +1 -0
  65. package/dist/image.mjs +2 -0
  66. package/dist/index.d.mts +64 -0
  67. package/dist/index.d.mts.map +1 -0
  68. package/dist/index.mjs +222 -0
  69. package/dist/index.mjs.map +1 -0
  70. package/dist/input-B5Vy-iaa.d.mts +141 -0
  71. package/dist/input-B5Vy-iaa.d.mts.map +1 -0
  72. package/dist/inspect-D1d9t-ni.mjs +101 -0
  73. package/dist/inspect-D1d9t-ni.mjs.map +1 -0
  74. package/dist/inspect-D6FW_QUo.d.mts +67 -0
  75. package/dist/inspect-D6FW_QUo.d.mts.map +1 -0
  76. package/dist/kitty-JbCJC0iQ.mjs +673 -0
  77. package/dist/kitty-JbCJC0iQ.mjs.map +1 -0
  78. package/dist/markdown.d.mts +24 -0
  79. package/dist/markdown.d.mts.map +1 -0
  80. package/dist/markdown.mjs +2 -0
  81. package/dist/md.bun.d.mts +14 -0
  82. package/dist/md.bun.d.mts.map +1 -0
  83. package/dist/md.bun.mjs +28 -0
  84. package/dist/md.bun.mjs.map +1 -0
  85. package/dist/md.node.d.mts +14 -0
  86. package/dist/md.node.d.mts.map +1 -0
  87. package/dist/md.node.mjs +126 -0
  88. package/dist/md.node.mjs.map +1 -0
  89. package/dist/node-BZ7f6HzU.mjs +316 -0
  90. package/dist/node-BZ7f6HzU.mjs.map +1 -0
  91. package/dist/picker-D8OLb6kZ.d.mts +36 -0
  92. package/dist/picker-D8OLb6kZ.d.mts.map +1 -0
  93. package/dist/picker-ndVVt6qF.mjs +621 -0
  94. package/dist/picker-ndVVt6qF.mjs.map +1 -0
  95. package/dist/queries-DH3bj74K.d.mts +1963 -0
  96. package/dist/queries-DH3bj74K.d.mts.map +1 -0
  97. package/dist/reactive-f7NpAi69.mjs +623 -0
  98. package/dist/reactive-f7NpAi69.mjs.map +1 -0
  99. package/dist/registry-U654j61Y.mjs +356 -0
  100. package/dist/registry-U654j61Y.mjs.map +1 -0
  101. package/dist/render-DxVLqqB9.mjs +74 -0
  102. package/dist/render-DxVLqqB9.mjs.map +1 -0
  103. package/dist/renderer-CdLCkJB-.mjs +42 -0
  104. package/dist/renderer-CdLCkJB-.mjs.map +1 -0
  105. package/dist/renderer-CxL4xbkl.mjs +2644 -0
  106. package/dist/renderer-CxL4xbkl.mjs.map +1 -0
  107. package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
  108. package/dist/search-FvGnswRl.d.mts +49 -0
  109. package/dist/search-FvGnswRl.d.mts.map +1 -0
  110. package/dist/select-CbmAZdpt.d.mts +116 -0
  111. package/dist/select-CbmAZdpt.d.mts.map +1 -0
  112. package/dist/services/logger.d.mts +2 -0
  113. package/dist/services/logger.mjs +71 -0
  114. package/dist/services/logger.mjs.map +1 -0
  115. package/dist/services/notifier.d.mts +17 -0
  116. package/dist/services/notifier.d.mts.map +1 -0
  117. package/dist/services/notifier.mjs +71 -0
  118. package/dist/services/notifier.mjs.map +1 -0
  119. package/dist/services/picker.d.mts +36 -0
  120. package/dist/services/picker.d.mts.map +1 -0
  121. package/dist/services/picker.mjs +137 -0
  122. package/dist/services/picker.mjs.map +1 -0
  123. package/dist/services/prompt.d.mts +30 -0
  124. package/dist/services/prompt.d.mts.map +1 -0
  125. package/dist/services/prompt.mjs +83 -0
  126. package/dist/services/prompt.mjs.map +1 -0
  127. package/dist/shiki-BrjVUkeh.mjs +423 -0
  128. package/dist/shiki-BrjVUkeh.mjs.map +1 -0
  129. package/dist/size-D8JogYLy.mjs +34 -0
  130. package/dist/size-D8JogYLy.mjs.map +1 -0
  131. package/dist/style.d.mts +10 -0
  132. package/dist/style.d.mts.map +1 -0
  133. package/dist/style.mjs +4 -0
  134. package/dist/text.d.mts +33 -0
  135. package/dist/text.d.mts.map +1 -0
  136. package/dist/text.mjs +111 -0
  137. package/dist/text.mjs.map +1 -0
  138. package/dist/theme.config-CU3B50HN.mjs +832 -0
  139. package/dist/theme.config-CU3B50HN.mjs.map +1 -0
  140. package/dist/themes.d.mts +113 -0
  141. package/dist/themes.d.mts.map +1 -0
  142. package/dist/themes.mjs +2 -0
  143. package/dist/tree-C28QOVIK.d.mts +23 -0
  144. package/dist/tree-C28QOVIK.d.mts.map +1 -0
  145. package/dist/types-B9Eh7k2v.d.mts +212 -0
  146. package/dist/types-B9Eh7k2v.d.mts.map +1 -0
  147. package/dist/types-D3jk1rtk.d.mts +140 -0
  148. package/dist/types-D3jk1rtk.d.mts.map +1 -0
  149. package/dist/utils-3M4D_AXZ.mjs +40 -0
  150. package/dist/utils-3M4D_AXZ.mjs.map +1 -0
  151. package/dist/widgets/autocomplete.d.mts +2 -0
  152. package/dist/widgets/autocomplete.mjs +165 -0
  153. package/dist/widgets/autocomplete.mjs.map +1 -0
  154. package/dist/widgets/box.d.mts +2 -0
  155. package/dist/widgets/box.mjs +2 -0
  156. package/dist/widgets/code.d.mts +48 -0
  157. package/dist/widgets/code.d.mts.map +1 -0
  158. package/dist/widgets/code.mjs +59 -0
  159. package/dist/widgets/code.mjs.map +1 -0
  160. package/dist/widgets/completions/actions.d.mts +41 -0
  161. package/dist/widgets/completions/actions.d.mts.map +1 -0
  162. package/dist/widgets/completions/actions.mjs +48 -0
  163. package/dist/widgets/completions/actions.mjs.map +1 -0
  164. package/dist/widgets/completions/files.d.mts +29 -0
  165. package/dist/widgets/completions/files.d.mts.map +1 -0
  166. package/dist/widgets/completions/files.mjs +42 -0
  167. package/dist/widgets/completions/files.mjs.map +1 -0
  168. package/dist/widgets/completions/github.d.mts +64 -0
  169. package/dist/widgets/completions/github.d.mts.map +1 -0
  170. package/dist/widgets/completions/github.mjs +137 -0
  171. package/dist/widgets/completions/github.mjs.map +1 -0
  172. package/dist/widgets/completions/index.d.mts +4 -0
  173. package/dist/widgets/completions/index.mjs +4 -0
  174. package/dist/widgets/diff.d.mts +57 -0
  175. package/dist/widgets/diff.d.mts.map +1 -0
  176. package/dist/widgets/diff.mjs +199 -0
  177. package/dist/widgets/diff.mjs.map +1 -0
  178. package/dist/widgets/divider.d.mts +11 -0
  179. package/dist/widgets/divider.d.mts.map +1 -0
  180. package/dist/widgets/divider.mjs +9 -0
  181. package/dist/widgets/divider.mjs.map +1 -0
  182. package/dist/widgets/image.d.mts +37 -0
  183. package/dist/widgets/image.d.mts.map +1 -0
  184. package/dist/widgets/image.mjs +77 -0
  185. package/dist/widgets/image.mjs.map +1 -0
  186. package/dist/widgets/input.d.mts +2 -0
  187. package/dist/widgets/input.mjs +497 -0
  188. package/dist/widgets/input.mjs.map +1 -0
  189. package/dist/widgets/log.d.mts +2 -0
  190. package/dist/widgets/log.mjs +130 -0
  191. package/dist/widgets/log.mjs.map +1 -0
  192. package/dist/widgets/markdown.d.mts +45 -0
  193. package/dist/widgets/markdown.d.mts.map +1 -0
  194. package/dist/widgets/markdown.mjs +124 -0
  195. package/dist/widgets/markdown.mjs.map +1 -0
  196. package/dist/widgets/overlay.d.mts +2 -0
  197. package/dist/widgets/overlay.mjs +18 -0
  198. package/dist/widgets/overlay.mjs.map +1 -0
  199. package/dist/widgets/picker.d.mts +2 -0
  200. package/dist/widgets/picker.mjs +2 -0
  201. package/dist/widgets/progress.d.mts +48 -0
  202. package/dist/widgets/progress.d.mts.map +1 -0
  203. package/dist/widgets/progress.mjs +48 -0
  204. package/dist/widgets/progress.mjs.map +1 -0
  205. package/dist/widgets/select.d.mts +2 -0
  206. package/dist/widgets/select.mjs +195 -0
  207. package/dist/widgets/select.mjs.map +1 -0
  208. package/dist/widgets/show.d.mts +55 -0
  209. package/dist/widgets/show.d.mts.map +1 -0
  210. package/dist/widgets/show.mjs +85 -0
  211. package/dist/widgets/show.mjs.map +1 -0
  212. package/dist/widgets/spinner.d.mts +65 -0
  213. package/dist/widgets/spinner.d.mts.map +1 -0
  214. package/dist/widgets/spinner.mjs +147 -0
  215. package/dist/widgets/spinner.mjs.map +1 -0
  216. package/dist/widgets/text.d.mts +2 -0
  217. package/dist/widgets/text.mjs +32 -0
  218. package/dist/widgets/text.mjs.map +1 -0
  219. package/dist/widgets/tree.d.mts +2 -0
  220. package/dist/widgets/tree.mjs +73 -0
  221. package/dist/widgets/tree.mjs.map +1 -0
  222. package/dist/widgets/widget.d.mts +49 -0
  223. package/dist/widgets/widget.d.mts.map +1 -0
  224. package/dist/widgets/widget.mjs +40 -0
  225. package/dist/widgets/widget.mjs.map +1 -0
  226. package/dist/worker-DjHuQSbY.mjs +27 -0
  227. package/dist/worker-DjHuQSbY.mjs.map +1 -0
  228. package/package.json +117 -0
@@ -0,0 +1,832 @@
1
+ //#region ../../node_modules/.bun/typia@13.0.2+e154a6929a67600d/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@13.0.2+e154a6929a67600d/node_modules/typia/lib/internal/_assertGuard.mjs
41
+ const _assertGuard = (exceptionable, props, factory) => {
42
+ if (exceptionable === true) if (factory) throw factory(props);
43
+ else throw new TypeGuardError(props);
44
+ return false;
45
+ };
46
+ //#endregion
47
+ //#region ../../node_modules/.bun/typia@13.0.2+e154a6929a67600d/node_modules/typia/lib/internal/_accessExpressionAsString.mjs
48
+ const _accessExpressionAsString = (str) => variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
49
+ const variable = (str) => reserved(str) === false && /^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(str);
50
+ const reserved = (str) => RESERVED.has(str);
51
+ const RESERVED = /* @__PURE__ */ new Set([
52
+ "break",
53
+ "case",
54
+ "catch",
55
+ "class",
56
+ "const",
57
+ "continue",
58
+ "debugger",
59
+ "default",
60
+ "delete",
61
+ "do",
62
+ "else",
63
+ "enum",
64
+ "export",
65
+ "extends",
66
+ "false",
67
+ "finally",
68
+ "for",
69
+ "function",
70
+ "if",
71
+ "import",
72
+ "in",
73
+ "instanceof",
74
+ "new",
75
+ "null",
76
+ "return",
77
+ "super",
78
+ "switch",
79
+ "this",
80
+ "throw",
81
+ "true",
82
+ "try",
83
+ "typeof",
84
+ "var",
85
+ "void",
86
+ "while",
87
+ "with"
88
+ ]);
89
+ //#endregion
90
+ //#region src/schemas/gen/theme.config.ts
91
+ const toBaseColor = (() => {
92
+ const _iv1 = /* @__PURE__ */ new Set([
93
+ "red",
94
+ "black",
95
+ "green",
96
+ "yellow",
97
+ "blue",
98
+ "magenta",
99
+ "cyan",
100
+ "white",
101
+ "gray",
102
+ "grey",
103
+ "brightRed",
104
+ "brightBlack",
105
+ "brightGreen",
106
+ "brightYellow",
107
+ "brightBlue",
108
+ "brightMagenta",
109
+ "brightCyan",
110
+ "brightWhite",
111
+ "brightGray",
112
+ "brightGrey",
113
+ "id",
114
+ "name",
115
+ "shiki",
116
+ "primary",
117
+ "accent",
118
+ "text",
119
+ "muted",
120
+ "quiet",
121
+ "comment",
122
+ "title",
123
+ "delim",
124
+ "subtle",
125
+ "ui",
126
+ "overlay",
127
+ "highlight",
128
+ "divider",
129
+ "selection",
130
+ "gutter",
131
+ "prompt",
132
+ "border",
133
+ "borderTitle",
134
+ "code",
135
+ "codeTitle",
136
+ "success",
137
+ "info",
138
+ "warn",
139
+ "error",
140
+ "syntaxBoolean",
141
+ "syntaxBracket",
142
+ "syntaxConstant",
143
+ "syntaxDelimiter",
144
+ "syntaxField",
145
+ "syntaxFunction",
146
+ "syntaxNumber",
147
+ "syntaxSpecial",
148
+ "syntaxString",
149
+ "mdBold",
150
+ "mdCode",
151
+ "mdCodeBlock",
152
+ "mdCodeBlockTitle",
153
+ "mdHeading1",
154
+ "mdHeading2",
155
+ "mdHeading3",
156
+ "mdHeading4",
157
+ "mdHeading5",
158
+ "mdHeading6",
159
+ "mdHeading",
160
+ "mdHr",
161
+ "mdItalic",
162
+ "mdLink",
163
+ "mdListBullet",
164
+ "mdListChecked",
165
+ "mdListUnchecked",
166
+ "mdQuote",
167
+ "mdStrikethrough",
168
+ "mdTable",
169
+ "mdTableHeader",
170
+ "optionName",
171
+ "optionDesc",
172
+ "optionActive",
173
+ "diffAdd",
174
+ "diffContext",
175
+ "diffDel",
176
+ "diffLine",
177
+ "diffTitle",
178
+ "inherit"
179
+ ]);
180
+ const _av2 = /* @__PURE__ */ new Set([
181
+ "red",
182
+ "black",
183
+ "green",
184
+ "yellow",
185
+ "blue",
186
+ "magenta",
187
+ "cyan",
188
+ "white",
189
+ "gray",
190
+ "grey",
191
+ "brightRed",
192
+ "brightBlack",
193
+ "brightGreen",
194
+ "brightYellow",
195
+ "brightBlue",
196
+ "brightMagenta",
197
+ "brightCyan",
198
+ "brightWhite",
199
+ "brightGray",
200
+ "brightGrey",
201
+ "id",
202
+ "name",
203
+ "shiki",
204
+ "primary",
205
+ "accent",
206
+ "text",
207
+ "muted",
208
+ "quiet",
209
+ "comment",
210
+ "title",
211
+ "delim",
212
+ "subtle",
213
+ "ui",
214
+ "overlay",
215
+ "highlight",
216
+ "divider",
217
+ "selection",
218
+ "gutter",
219
+ "prompt",
220
+ "border",
221
+ "borderTitle",
222
+ "code",
223
+ "codeTitle",
224
+ "success",
225
+ "info",
226
+ "warn",
227
+ "error",
228
+ "syntaxBoolean",
229
+ "syntaxBracket",
230
+ "syntaxConstant",
231
+ "syntaxDelimiter",
232
+ "syntaxField",
233
+ "syntaxFunction",
234
+ "syntaxNumber",
235
+ "syntaxSpecial",
236
+ "syntaxString",
237
+ "mdBold",
238
+ "mdCode",
239
+ "mdCodeBlock",
240
+ "mdCodeBlockTitle",
241
+ "mdHeading1",
242
+ "mdHeading2",
243
+ "mdHeading3",
244
+ "mdHeading4",
245
+ "mdHeading5",
246
+ "mdHeading6",
247
+ "mdHeading",
248
+ "mdHr",
249
+ "mdItalic",
250
+ "mdLink",
251
+ "mdListBullet",
252
+ "mdListChecked",
253
+ "mdListUnchecked",
254
+ "mdQuote",
255
+ "mdStrikethrough",
256
+ "mdTable",
257
+ "mdTableHeader",
258
+ "optionName",
259
+ "optionDesc",
260
+ "optionActive",
261
+ "diffAdd",
262
+ "diffContext",
263
+ "diffDel",
264
+ "diffLine",
265
+ "diffTitle",
266
+ "inherit"
267
+ ]);
268
+ const __is = (input) => null !== input && void 0 !== input && (true === _iv1.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input));
269
+ let _errorFactory;
270
+ return (input, errorFactory) => {
271
+ if (false === __is(input)) {
272
+ _errorFactory = errorFactory;
273
+ ((input, _path, _exceptionable = true) => (null !== input || _assertGuard(true, {
274
+ method: "typia.createAssert",
275
+ path: _path + "",
276
+ expected: "(\"accent\" | \"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\" | \"gray\" | \"green\" | \"grey\" | \"gutter\" | \"highlight\" | \"id\" | \"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\" | \"shiki\" | \"subtle\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"text\" | \"title\" | \"ui\" | \"warn\" | \"white\" | \"yellow\" | `#${string}`)",
277
+ value: input
278
+ }, _errorFactory)) && (void 0 !== input || _assertGuard(true, {
279
+ method: "typia.createAssert",
280
+ path: _path + "",
281
+ expected: "(\"accent\" | \"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\" | \"gray\" | \"green\" | \"grey\" | \"gutter\" | \"highlight\" | \"id\" | \"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\" | \"shiki\" | \"subtle\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"text\" | \"title\" | \"ui\" | \"warn\" | \"white\" | \"yellow\" | `#${string}`)",
282
+ value: input
283
+ }, _errorFactory)) && (true === _av2.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input) || _assertGuard(true, {
284
+ method: "typia.createAssert",
285
+ path: _path + "",
286
+ expected: "(\"accent\" | \"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\" | \"gray\" | \"green\" | \"grey\" | \"gutter\" | \"highlight\" | \"id\" | \"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\" | \"shiki\" | \"subtle\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"text\" | \"title\" | \"ui\" | \"warn\" | \"white\" | \"yellow\" | `#${string}`)",
287
+ value: input
288
+ }, _errorFactory)))(input, "$input", true);
289
+ }
290
+ return input;
291
+ };
292
+ })();
293
+ const toLightnessColor = (() => {
294
+ const _iv1 = /* @__PURE__ */ new Set([
295
+ "id",
296
+ "name",
297
+ "shiki",
298
+ "primary",
299
+ "accent",
300
+ "text",
301
+ "muted",
302
+ "quiet",
303
+ "comment",
304
+ "title",
305
+ "delim",
306
+ "subtle",
307
+ "ui",
308
+ "overlay",
309
+ "highlight",
310
+ "divider",
311
+ "selection",
312
+ "gutter",
313
+ "prompt",
314
+ "border",
315
+ "borderTitle",
316
+ "code",
317
+ "codeTitle",
318
+ "success",
319
+ "info",
320
+ "warn",
321
+ "error",
322
+ "syntaxBoolean",
323
+ "syntaxBracket",
324
+ "syntaxConstant",
325
+ "syntaxDelimiter",
326
+ "syntaxField",
327
+ "syntaxFunction",
328
+ "syntaxNumber",
329
+ "syntaxSpecial",
330
+ "syntaxString",
331
+ "mdBold",
332
+ "mdCode",
333
+ "mdCodeBlock",
334
+ "mdCodeBlockTitle",
335
+ "mdHeading1",
336
+ "mdHeading2",
337
+ "mdHeading3",
338
+ "mdHeading4",
339
+ "mdHeading5",
340
+ "mdHeading6",
341
+ "mdHeading",
342
+ "mdHr",
343
+ "mdItalic",
344
+ "mdLink",
345
+ "mdListBullet",
346
+ "mdListChecked",
347
+ "mdListUnchecked",
348
+ "mdQuote",
349
+ "mdStrikethrough",
350
+ "mdTable",
351
+ "mdTableHeader",
352
+ "optionName",
353
+ "optionDesc",
354
+ "optionActive",
355
+ "diffAdd",
356
+ "diffContext",
357
+ "diffDel",
358
+ "diffLine",
359
+ "diffTitle"
360
+ ]);
361
+ const _av2 = /* @__PURE__ */ new Set([
362
+ "id",
363
+ "name",
364
+ "shiki",
365
+ "primary",
366
+ "accent",
367
+ "text",
368
+ "muted",
369
+ "quiet",
370
+ "comment",
371
+ "title",
372
+ "delim",
373
+ "subtle",
374
+ "ui",
375
+ "overlay",
376
+ "highlight",
377
+ "divider",
378
+ "selection",
379
+ "gutter",
380
+ "prompt",
381
+ "border",
382
+ "borderTitle",
383
+ "code",
384
+ "codeTitle",
385
+ "success",
386
+ "info",
387
+ "warn",
388
+ "error",
389
+ "syntaxBoolean",
390
+ "syntaxBracket",
391
+ "syntaxConstant",
392
+ "syntaxDelimiter",
393
+ "syntaxField",
394
+ "syntaxFunction",
395
+ "syntaxNumber",
396
+ "syntaxSpecial",
397
+ "syntaxString",
398
+ "mdBold",
399
+ "mdCode",
400
+ "mdCodeBlock",
401
+ "mdCodeBlockTitle",
402
+ "mdHeading1",
403
+ "mdHeading2",
404
+ "mdHeading3",
405
+ "mdHeading4",
406
+ "mdHeading5",
407
+ "mdHeading6",
408
+ "mdHeading",
409
+ "mdHr",
410
+ "mdItalic",
411
+ "mdLink",
412
+ "mdListBullet",
413
+ "mdListChecked",
414
+ "mdListUnchecked",
415
+ "mdQuote",
416
+ "mdStrikethrough",
417
+ "mdTable",
418
+ "mdTableHeader",
419
+ "optionName",
420
+ "optionDesc",
421
+ "optionActive",
422
+ "diffAdd",
423
+ "diffContext",
424
+ "diffDel",
425
+ "diffLine",
426
+ "diffTitle"
427
+ ]);
428
+ const __is = (input) => null !== input && void 0 !== input && (true === _iv1.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input));
429
+ let _errorFactory;
430
+ return (input, errorFactory) => {
431
+ if (false === __is(input)) {
432
+ _errorFactory = errorFactory;
433
+ ((input, _path, _exceptionable = true) => (null !== input || _assertGuard(true, {
434
+ method: "typia.createAssert",
435
+ path: _path + "",
436
+ expected: "(\"accent\" | \"border\" | \"borderTitle\" | \"code\" | \"codeTitle\" | \"comment\" | \"delim\" | \"diffAdd\" | \"diffContext\" | \"diffDel\" | \"diffLine\" | \"diffTitle\" | \"divider\" | \"error\" | \"gutter\" | \"highlight\" | \"id\" | \"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\" | \"shiki\" | \"subtle\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"text\" | \"title\" | \"ui\" | \"warn\" | `#${string}`)",
437
+ value: input
438
+ }, _errorFactory)) && (void 0 !== input || _assertGuard(true, {
439
+ method: "typia.createAssert",
440
+ path: _path + "",
441
+ expected: "(\"accent\" | \"border\" | \"borderTitle\" | \"code\" | \"codeTitle\" | \"comment\" | \"delim\" | \"diffAdd\" | \"diffContext\" | \"diffDel\" | \"diffLine\" | \"diffTitle\" | \"divider\" | \"error\" | \"gutter\" | \"highlight\" | \"id\" | \"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\" | \"shiki\" | \"subtle\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"text\" | \"title\" | \"ui\" | \"warn\" | `#${string}`)",
442
+ value: input
443
+ }, _errorFactory)) && (true === _av2.has(input) || "string" === typeof input && RegExp(/^#(.*)/).test(input) || _assertGuard(true, {
444
+ method: "typia.createAssert",
445
+ path: _path + "",
446
+ expected: "(\"accent\" | \"border\" | \"borderTitle\" | \"code\" | \"codeTitle\" | \"comment\" | \"delim\" | \"diffAdd\" | \"diffContext\" | \"diffDel\" | \"diffLine\" | \"diffTitle\" | \"divider\" | \"error\" | \"gutter\" | \"highlight\" | \"id\" | \"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\" | \"shiki\" | \"subtle\" | \"success\" | \"syntaxBoolean\" | \"syntaxBracket\" | \"syntaxConstant\" | \"syntaxDelimiter\" | \"syntaxField\" | \"syntaxFunction\" | \"syntaxNumber\" | \"syntaxSpecial\" | \"syntaxString\" | \"text\" | \"title\" | \"ui\" | \"warn\" | `#${string}`)",
447
+ value: input
448
+ }, _errorFactory)))(input, "$input", true);
449
+ }
450
+ return input;
451
+ };
452
+ })();
453
+ const toStyle = (() => {
454
+ const _io0 = (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) && (void 0 === input.fg || "string" === typeof input.fg) && (void 0 === input.bg || "string" === typeof input.bg);
455
+ const _ao0 = (input, _path, _exceptionable = true) => (void 0 === input.bold || "boolean" === typeof input.bold || _assertGuard(_exceptionable, {
456
+ method: "typia.createAssert",
457
+ path: _path + ".bold",
458
+ expected: "(boolean | undefined)",
459
+ value: input.bold
460
+ }, _errorFactory)) && (void 0 === input.dim || "boolean" === typeof input.dim || _assertGuard(_exceptionable, {
461
+ method: "typia.createAssert",
462
+ path: _path + ".dim",
463
+ expected: "(boolean | undefined)",
464
+ value: input.dim
465
+ }, _errorFactory)) && (void 0 === input.italic || "boolean" === typeof input.italic || _assertGuard(_exceptionable, {
466
+ method: "typia.createAssert",
467
+ path: _path + ".italic",
468
+ expected: "(boolean | undefined)",
469
+ value: input.italic
470
+ }, _errorFactory)) && (void 0 === input.underline || "boolean" === typeof input.underline || _assertGuard(_exceptionable, {
471
+ method: "typia.createAssert",
472
+ path: _path + ".underline",
473
+ expected: "(boolean | undefined)",
474
+ value: input.underline
475
+ }, _errorFactory)) && (void 0 === input.inverse || "boolean" === typeof input.inverse || _assertGuard(_exceptionable, {
476
+ method: "typia.createAssert",
477
+ path: _path + ".inverse",
478
+ expected: "(boolean | undefined)",
479
+ value: input.inverse
480
+ }, _errorFactory)) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough || _assertGuard(_exceptionable, {
481
+ method: "typia.createAssert",
482
+ path: _path + ".strikethrough",
483
+ expected: "(boolean | undefined)",
484
+ value: input.strikethrough
485
+ }, _errorFactory)) && (void 0 === input.fg || "string" === typeof input.fg || _assertGuard(_exceptionable, {
486
+ method: "typia.createAssert",
487
+ path: _path + ".fg",
488
+ expected: "(string | undefined)",
489
+ value: input.fg
490
+ }, _errorFactory)) && (void 0 === input.bg || "string" === typeof input.bg || _assertGuard(_exceptionable, {
491
+ method: "typia.createAssert",
492
+ path: _path + ".bg",
493
+ expected: "(string | undefined)",
494
+ value: input.bg
495
+ }, _errorFactory));
496
+ const __is = (input) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input);
497
+ let _errorFactory;
498
+ return (input, errorFactory) => {
499
+ if (false === __is(input)) {
500
+ _errorFactory = errorFactory;
501
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _assertGuard(true, {
502
+ method: "typia.createAssert",
503
+ path: _path + "",
504
+ expected: "UserStyle",
505
+ value: input
506
+ }, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard(true, {
507
+ method: "typia.createAssert",
508
+ path: _path + "",
509
+ expected: "UserStyle",
510
+ value: input
511
+ }, _errorFactory))(input, "$input", true);
512
+ }
513
+ return input;
514
+ };
515
+ })();
516
+ const isColorKey = (() => {
517
+ return (input) => "primary" === input || "accent" === input || "text" === input || "success" === input || "info" === input || "warn" === input || "error" === input;
518
+ })();
519
+ function toColor(value) {
520
+ if (typeof value !== "string") return toBaseColor(value);
521
+ const color = value.replace(/[+-]\d+/, "");
522
+ if (value.match(/[+-]\d+/)) toLightnessColor(color);
523
+ return toBaseColor(color);
524
+ }
525
+ const validator = (() => {
526
+ const _iv1 = /* @__PURE__ */ new Set([
527
+ "andromeeda",
528
+ "aurora-x",
529
+ "ayu-dark",
530
+ "ayu-light",
531
+ "ayu-mirage",
532
+ "catppuccin-frappe",
533
+ "catppuccin-latte",
534
+ "catppuccin-macchiato",
535
+ "catppuccin-mocha",
536
+ "dark-plus",
537
+ "dracula",
538
+ "dracula-soft",
539
+ "everforest-dark",
540
+ "everforest-light",
541
+ "github-dark",
542
+ "github-dark-default",
543
+ "github-dark-dimmed",
544
+ "github-dark-high-contrast",
545
+ "github-light",
546
+ "github-light-default",
547
+ "github-light-high-contrast",
548
+ "gruvbox-dark-hard",
549
+ "gruvbox-dark-medium",
550
+ "gruvbox-dark-soft",
551
+ "gruvbox-light-hard",
552
+ "gruvbox-light-medium",
553
+ "gruvbox-light-soft",
554
+ "horizon",
555
+ "horizon-bright",
556
+ "houston",
557
+ "kanagawa-dragon",
558
+ "kanagawa-lotus",
559
+ "kanagawa-wave",
560
+ "laserwave",
561
+ "light-plus",
562
+ "material-theme",
563
+ "material-theme-darker",
564
+ "material-theme-lighter",
565
+ "material-theme-ocean",
566
+ "material-theme-palenight",
567
+ "min-dark",
568
+ "min-light",
569
+ "monokai",
570
+ "night-owl",
571
+ "night-owl-light",
572
+ "nord",
573
+ "one-dark-pro",
574
+ "one-light",
575
+ "plastic",
576
+ "poimandres",
577
+ "red",
578
+ "rose-pine",
579
+ "rose-pine-dawn",
580
+ "rose-pine-moon",
581
+ "slack-dark",
582
+ "slack-ochin",
583
+ "snazzy-light",
584
+ "solarized-dark",
585
+ "solarized-light",
586
+ "synthwave-84",
587
+ "tokyo-night",
588
+ "vesper",
589
+ "vitesse-black",
590
+ "vitesse-dark",
591
+ "vitesse-light"
592
+ ]);
593
+ const _av2 = /* @__PURE__ */ new Set([
594
+ "andromeeda",
595
+ "aurora-x",
596
+ "ayu-dark",
597
+ "ayu-light",
598
+ "ayu-mirage",
599
+ "catppuccin-frappe",
600
+ "catppuccin-latte",
601
+ "catppuccin-macchiato",
602
+ "catppuccin-mocha",
603
+ "dark-plus",
604
+ "dracula",
605
+ "dracula-soft",
606
+ "everforest-dark",
607
+ "everforest-light",
608
+ "github-dark",
609
+ "github-dark-default",
610
+ "github-dark-dimmed",
611
+ "github-dark-high-contrast",
612
+ "github-light",
613
+ "github-light-default",
614
+ "github-light-high-contrast",
615
+ "gruvbox-dark-hard",
616
+ "gruvbox-dark-medium",
617
+ "gruvbox-dark-soft",
618
+ "gruvbox-light-hard",
619
+ "gruvbox-light-medium",
620
+ "gruvbox-light-soft",
621
+ "horizon",
622
+ "horizon-bright",
623
+ "houston",
624
+ "kanagawa-dragon",
625
+ "kanagawa-lotus",
626
+ "kanagawa-wave",
627
+ "laserwave",
628
+ "light-plus",
629
+ "material-theme",
630
+ "material-theme-darker",
631
+ "material-theme-lighter",
632
+ "material-theme-ocean",
633
+ "material-theme-palenight",
634
+ "min-dark",
635
+ "min-light",
636
+ "monokai",
637
+ "night-owl",
638
+ "night-owl-light",
639
+ "nord",
640
+ "one-dark-pro",
641
+ "one-light",
642
+ "plastic",
643
+ "poimandres",
644
+ "red",
645
+ "rose-pine",
646
+ "rose-pine-dawn",
647
+ "rose-pine-moon",
648
+ "slack-dark",
649
+ "slack-ochin",
650
+ "snazzy-light",
651
+ "solarized-dark",
652
+ "solarized-light",
653
+ "synthwave-84",
654
+ "tokyo-night",
655
+ "vesper",
656
+ "vitesse-black",
657
+ "vitesse-dark",
658
+ "vitesse-light"
659
+ ]);
660
+ const _io0 = (input, _exceptionable = true) => (void 0 === input.$schema || "string" === typeof input.$schema) && (void 0 === input.shiki || true === _iv1.has(input.shiki)) && (void 0 === input.id || "string" === typeof input.id) && (void 0 === input.name || "string" === typeof input.name) && Object.keys(input).every((key) => {
661
+ if ([
662
+ "$schema",
663
+ "shiki",
664
+ "id",
665
+ "name"
666
+ ].some((prop) => key === prop)) return true;
667
+ const value = input[key];
668
+ if (void 0 === value) return true;
669
+ return null !== value && (void 0 === value || "string" === typeof value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, _exceptionable));
670
+ });
671
+ 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) => {
672
+ if ([
673
+ "bold",
674
+ "dim",
675
+ "italic",
676
+ "underline",
677
+ "inverse",
678
+ "strikethrough",
679
+ "fg",
680
+ "bg"
681
+ ].some((prop) => key === prop)) return true;
682
+ if (void 0 === input[key]) return true;
683
+ return false;
684
+ }));
685
+ const _ao0 = (input, _path, _exceptionable = true) => (void 0 === input.$schema || "string" === typeof input.$schema || _assertGuard(_exceptionable, {
686
+ method: "typia.createAssertEquals",
687
+ path: _path + ".$schema",
688
+ expected: "(string | undefined)",
689
+ value: input.$schema
690
+ }, _errorFactory)) && (void 0 === input.shiki || true === _av2.has(input.shiki) || _assertGuard(_exceptionable, {
691
+ method: "typia.createAssertEquals",
692
+ path: _path + ".shiki",
693
+ expected: "(\"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)",
694
+ value: input.shiki
695
+ }, _errorFactory)) && (void 0 === input.id || "string" === typeof input.id || _assertGuard(_exceptionable, {
696
+ method: "typia.createAssertEquals",
697
+ path: _path + ".id",
698
+ expected: "(string | undefined)",
699
+ value: input.id
700
+ }, _errorFactory)) && (void 0 === input.name || "string" === typeof input.name || _assertGuard(_exceptionable, {
701
+ method: "typia.createAssertEquals",
702
+ path: _path + ".name",
703
+ expected: "(string | undefined)",
704
+ value: input.name
705
+ }, _errorFactory)) && (false === _exceptionable || Object.keys(input).every((key) => {
706
+ if ([
707
+ "$schema",
708
+ "shiki",
709
+ "id",
710
+ "name"
711
+ ].some((prop) => key === prop)) return true;
712
+ const value = input[key];
713
+ if (void 0 === value) return true;
714
+ return (null !== value || _assertGuard(_exceptionable, {
715
+ method: "typia.createAssertEquals",
716
+ path: _path + _accessExpressionAsString(key),
717
+ expected: "(UserStyle | string | undefined)",
718
+ value
719
+ }, _errorFactory)) && (void 0 === value || "string" === typeof value || ("object" === typeof value && null !== value && false === Array.isArray(value) || _assertGuard(_exceptionable, {
720
+ method: "typia.createAssertEquals",
721
+ path: _path + _accessExpressionAsString(key),
722
+ expected: "(UserStyle | string | undefined)",
723
+ value
724
+ }, _errorFactory)) && _ao1(value, _path + _accessExpressionAsString(key), _exceptionable) || _assertGuard(_exceptionable, {
725
+ method: "typia.createAssertEquals",
726
+ path: _path + _accessExpressionAsString(key),
727
+ expected: "(UserStyle | string | undefined)",
728
+ value
729
+ }, _errorFactory));
730
+ }));
731
+ const _ao1 = (input, _path, _exceptionable = true) => (void 0 === input.bold || "boolean" === typeof input.bold || _assertGuard(_exceptionable, {
732
+ method: "typia.createAssertEquals",
733
+ path: _path + ".bold",
734
+ expected: "(boolean | undefined)",
735
+ value: input.bold
736
+ }, _errorFactory)) && (void 0 === input.dim || "boolean" === typeof input.dim || _assertGuard(_exceptionable, {
737
+ method: "typia.createAssertEquals",
738
+ path: _path + ".dim",
739
+ expected: "(boolean | undefined)",
740
+ value: input.dim
741
+ }, _errorFactory)) && (void 0 === input.italic || "boolean" === typeof input.italic || _assertGuard(_exceptionable, {
742
+ method: "typia.createAssertEquals",
743
+ path: _path + ".italic",
744
+ expected: "(boolean | undefined)",
745
+ value: input.italic
746
+ }, _errorFactory)) && (void 0 === input.underline || "boolean" === typeof input.underline || _assertGuard(_exceptionable, {
747
+ method: "typia.createAssertEquals",
748
+ path: _path + ".underline",
749
+ expected: "(boolean | undefined)",
750
+ value: input.underline
751
+ }, _errorFactory)) && (void 0 === input.inverse || "boolean" === typeof input.inverse || _assertGuard(_exceptionable, {
752
+ method: "typia.createAssertEquals",
753
+ path: _path + ".inverse",
754
+ expected: "(boolean | undefined)",
755
+ value: input.inverse
756
+ }, _errorFactory)) && (void 0 === input.strikethrough || "boolean" === typeof input.strikethrough || _assertGuard(_exceptionable, {
757
+ method: "typia.createAssertEquals",
758
+ path: _path + ".strikethrough",
759
+ expected: "(boolean | undefined)",
760
+ value: input.strikethrough
761
+ }, _errorFactory)) && (void 0 === input.fg || "string" === typeof input.fg || _assertGuard(_exceptionable, {
762
+ method: "typia.createAssertEquals",
763
+ path: _path + ".fg",
764
+ expected: "(string | undefined)",
765
+ value: input.fg
766
+ }, _errorFactory)) && (void 0 === input.bg || "string" === typeof input.bg || _assertGuard(_exceptionable, {
767
+ method: "typia.createAssertEquals",
768
+ path: _path + ".bg",
769
+ expected: "(string | undefined)",
770
+ value: input.bg
771
+ }, _errorFactory)) && (0 === Object.keys(input).length || false === _exceptionable || Object.keys(input).every((key) => {
772
+ if ([
773
+ "bold",
774
+ "dim",
775
+ "italic",
776
+ "underline",
777
+ "inverse",
778
+ "strikethrough",
779
+ "fg",
780
+ "bg"
781
+ ].some((prop) => key === prop)) return true;
782
+ const value = input[key];
783
+ if (void 0 === value) return true;
784
+ return _assertGuard(_exceptionable, {
785
+ method: "typia.createAssertEquals",
786
+ path: _path + _accessExpressionAsString(key),
787
+ expected: "undefined",
788
+ value
789
+ }, _errorFactory);
790
+ }));
791
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true);
792
+ let _errorFactory;
793
+ return (input, errorFactory) => {
794
+ if (false === __is(input)) {
795
+ _errorFactory = errorFactory;
796
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _assertGuard(true, {
797
+ method: "typia.createAssertEquals",
798
+ path: _path + "",
799
+ expected: "Partial<UserTheme>",
800
+ value: input
801
+ }, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard(true, {
802
+ method: "typia.createAssertEquals",
803
+ path: _path + "",
804
+ expected: "Partial<UserTheme>",
805
+ value: input
806
+ }, _errorFactory))(input, "$input", true);
807
+ }
808
+ return input;
809
+ };
810
+ })();
811
+ const skipSlots = /* @__PURE__ */ new Set([
812
+ "$schema",
813
+ "shiki",
814
+ "id",
815
+ "name"
816
+ ]);
817
+ function validateTheme(input) {
818
+ const out = validator(input);
819
+ for (const [slot, value] of Object.entries(out)) {
820
+ if (skipSlots.has(slot) || value === void 0) continue;
821
+ if (typeof value === "string" && toColor(value)) continue;
822
+ if (isColorKey(slot)) toColor(value);
823
+ const style = toStyle(value);
824
+ if (style.fg !== void 0) toColor(style.fg);
825
+ if (style.bg !== void 0) toColor(style.bg);
826
+ }
827
+ return out;
828
+ }
829
+ //#endregion
830
+ export { validateTheme };
831
+
832
+ //# sourceMappingURL=theme.config-CU3B50HN.mjs.map