@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
|
@@ -0,0 +1,1794 @@
|
|
|
1
|
+
//#region src/schemas/gen/theme.ts
|
|
2
|
+
const validator = (() => {
|
|
3
|
+
const module = { exports: {} };
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toCommonJS = (from) => {
|
|
12
|
+
var entry = (__moduleCache ??= /* @__PURE__ */ new WeakMap()).get(from), desc;
|
|
13
|
+
if (entry) return entry;
|
|
14
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (var key of __getOwnPropNames(from)) if (!__hasOwnProp.call(entry, key)) __defProp(entry, key, {
|
|
17
|
+
get: __accessProp.bind(from, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
__moduleCache.set(from, entry);
|
|
22
|
+
return entry;
|
|
23
|
+
};
|
|
24
|
+
var __moduleCache;
|
|
25
|
+
var __returnValue = (v) => v;
|
|
26
|
+
function __exportSetter(name, newValue) {
|
|
27
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
28
|
+
}
|
|
29
|
+
var __export = (target, all) => {
|
|
30
|
+
for (var name in all) __defProp(target, name, {
|
|
31
|
+
get: all[name],
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
set: __exportSetter.bind(all, name)
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var exports_validator = {};
|
|
38
|
+
__export(exports_validator, {
|
|
39
|
+
default: () => validator_default,
|
|
40
|
+
validate: () => validate
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(exports_validator);
|
|
43
|
+
var validate = validate21;
|
|
44
|
+
var validator_default = validate21;
|
|
45
|
+
var schema6 = {
|
|
46
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
47
|
+
additionalProperties: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
48
|
+
definitions: {
|
|
49
|
+
"Color<false,false>": {
|
|
50
|
+
description: "Hex color or theme slot. Hex colors and theme slots may have an integer +/- lightness adjustment.",
|
|
51
|
+
pattern: "^(?:(?:#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|accent|bg|border|borderTitle|code|codeTitle|comment|delim|diffAdd|diffAddNum|diffContext|diffContextNum|diffDel|diffDelNum|divider|error|fg|gutter|highlight|info|mdBold|mdCode|mdCodeBlock|mdCodeBlockTitle|mdHeading|mdHeading1|mdHeading2|mdHeading3|mdHeading4|mdHeading5|mdHeading6|mdHr|mdItalic|mdLink|mdListBullet|mdListChecked|mdListUnchecked|mdMath|mdQuote|mdStrikethrough|mdTable|mdTableHeader|muted|optionActive|optionDesc|optionName|overlay|primary|prompt|quiet|selection|success|syntaxBoolean|syntaxBracket|syntaxConstant|syntaxDelimiter|syntaxField|syntaxFunction|syntaxNumber|syntaxSpecial|syntaxString|title|ui|warn)(?:[+-][0-9]+)?)$",
|
|
52
|
+
type: "string"
|
|
53
|
+
},
|
|
54
|
+
"Color<false>": {
|
|
55
|
+
description: "Hex color or theme slot, or inherit. Hex colors and theme slots may have an integer +/- lightness adjustment.",
|
|
56
|
+
pattern: "^(?:(?:#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|accent|bg|border|borderTitle|code|codeTitle|comment|delim|diffAdd|diffAddNum|diffContext|diffContextNum|diffDel|diffDelNum|divider|error|fg|gutter|highlight|info|mdBold|mdCode|mdCodeBlock|mdCodeBlockTitle|mdHeading|mdHeading1|mdHeading2|mdHeading3|mdHeading4|mdHeading5|mdHeading6|mdHr|mdItalic|mdLink|mdListBullet|mdListChecked|mdListUnchecked|mdMath|mdQuote|mdStrikethrough|mdTable|mdTableHeader|muted|optionActive|optionDesc|optionName|overlay|primary|prompt|quiet|selection|success|syntaxBoolean|syntaxBracket|syntaxConstant|syntaxDelimiter|syntaxField|syntaxFunction|syntaxNumber|syntaxSpecial|syntaxString|title|ui|warn)(?:[+-][0-9]+)?|inherit)$",
|
|
57
|
+
type: "string"
|
|
58
|
+
},
|
|
59
|
+
ShikiSelection: { anyOf: [{
|
|
60
|
+
const: "auto",
|
|
61
|
+
type: "string"
|
|
62
|
+
}, { $ref: "#/definitions/ShikiTheme" }] },
|
|
63
|
+
ShikiTheme: {
|
|
64
|
+
enum: [
|
|
65
|
+
"andromeeda",
|
|
66
|
+
"aurora-x",
|
|
67
|
+
"ayu-dark",
|
|
68
|
+
"ayu-light",
|
|
69
|
+
"ayu-mirage",
|
|
70
|
+
"catppuccin-frappe",
|
|
71
|
+
"catppuccin-latte",
|
|
72
|
+
"catppuccin-macchiato",
|
|
73
|
+
"catppuccin-mocha",
|
|
74
|
+
"dark-plus",
|
|
75
|
+
"dracula",
|
|
76
|
+
"dracula-soft",
|
|
77
|
+
"everforest-dark",
|
|
78
|
+
"everforest-light",
|
|
79
|
+
"github-dark",
|
|
80
|
+
"github-dark-default",
|
|
81
|
+
"github-dark-dimmed",
|
|
82
|
+
"github-dark-high-contrast",
|
|
83
|
+
"github-light",
|
|
84
|
+
"github-light-default",
|
|
85
|
+
"github-light-high-contrast",
|
|
86
|
+
"gruvbox-dark-hard",
|
|
87
|
+
"gruvbox-dark-medium",
|
|
88
|
+
"gruvbox-dark-soft",
|
|
89
|
+
"gruvbox-light-hard",
|
|
90
|
+
"gruvbox-light-medium",
|
|
91
|
+
"gruvbox-light-soft",
|
|
92
|
+
"horizon",
|
|
93
|
+
"horizon-bright",
|
|
94
|
+
"houston",
|
|
95
|
+
"kanagawa-dragon",
|
|
96
|
+
"kanagawa-lotus",
|
|
97
|
+
"kanagawa-wave",
|
|
98
|
+
"laserwave",
|
|
99
|
+
"light-plus",
|
|
100
|
+
"material-theme",
|
|
101
|
+
"material-theme-darker",
|
|
102
|
+
"material-theme-lighter",
|
|
103
|
+
"material-theme-ocean",
|
|
104
|
+
"material-theme-palenight",
|
|
105
|
+
"min-dark",
|
|
106
|
+
"min-light",
|
|
107
|
+
"monokai",
|
|
108
|
+
"night-owl",
|
|
109
|
+
"night-owl-light",
|
|
110
|
+
"nord",
|
|
111
|
+
"one-dark-pro",
|
|
112
|
+
"one-light",
|
|
113
|
+
"plastic",
|
|
114
|
+
"poimandres",
|
|
115
|
+
"red",
|
|
116
|
+
"rose-pine",
|
|
117
|
+
"rose-pine-dawn",
|
|
118
|
+
"rose-pine-moon",
|
|
119
|
+
"slack-dark",
|
|
120
|
+
"slack-ochin",
|
|
121
|
+
"snazzy-light",
|
|
122
|
+
"solarized-dark",
|
|
123
|
+
"solarized-light",
|
|
124
|
+
"synthwave-84",
|
|
125
|
+
"tokyo-night",
|
|
126
|
+
"vesper",
|
|
127
|
+
"vitesse-black",
|
|
128
|
+
"vitesse-dark",
|
|
129
|
+
"vitesse-light"
|
|
130
|
+
],
|
|
131
|
+
type: "string"
|
|
132
|
+
},
|
|
133
|
+
"ThemeStyle<false>": {
|
|
134
|
+
additionalProperties: false,
|
|
135
|
+
description: "Simplify a type by flattening its properties.",
|
|
136
|
+
properties: {
|
|
137
|
+
bg: { $ref: "#/definitions/Color%3Cfalse%3E" },
|
|
138
|
+
bold: { type: "boolean" },
|
|
139
|
+
dim: { type: "boolean" },
|
|
140
|
+
fg: { $ref: "#/definitions/Color%3Cfalse%3E" },
|
|
141
|
+
inverse: { type: "boolean" },
|
|
142
|
+
italic: { type: "boolean" },
|
|
143
|
+
strikethrough: { type: "boolean" },
|
|
144
|
+
underline: { type: "boolean" }
|
|
145
|
+
},
|
|
146
|
+
type: "object"
|
|
147
|
+
},
|
|
148
|
+
"ThemeValue<false>": { anyOf: [{ $ref: "#/definitions/ThemeStyle%3Cfalse%3E" }, { $ref: "#/definitions/Color%3Cfalse%3E" }] }
|
|
149
|
+
},
|
|
150
|
+
properties: {
|
|
151
|
+
$schema: { type: "string" },
|
|
152
|
+
accent: {
|
|
153
|
+
$ref: "#/definitions/Color%3Cfalse%3E",
|
|
154
|
+
description: "Secondary accent — distinct hue from `primary`."
|
|
155
|
+
},
|
|
156
|
+
appearance: {
|
|
157
|
+
description: "Dark/light appearance, inferred from bg when omitted in a theme file.",
|
|
158
|
+
enum: ["dark", "light"],
|
|
159
|
+
type: "string"
|
|
160
|
+
},
|
|
161
|
+
bg: { $ref: "#/definitions/Color%3Cfalse%2Cfalse%3E" },
|
|
162
|
+
border: {
|
|
163
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
164
|
+
description: "Structural border around panels, boxes, tables."
|
|
165
|
+
},
|
|
166
|
+
borderTitle: {
|
|
167
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
168
|
+
description: "Title text inside a bordered region (slightly stronger than `border`)."
|
|
169
|
+
},
|
|
170
|
+
code: {
|
|
171
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
172
|
+
description: "Code-block surface (bg + optional fg). Default for `mdCodeBlock`."
|
|
173
|
+
},
|
|
174
|
+
codeTitle: {
|
|
175
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
176
|
+
description: "Title above a code block (e.g. file path)."
|
|
177
|
+
},
|
|
178
|
+
comment: {
|
|
179
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
180
|
+
description: "Editor-comment tier — soft, often tinted. Used for code annotations, line-number labels, italic quotes."
|
|
181
|
+
},
|
|
182
|
+
delim: {
|
|
183
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
184
|
+
description: "Structural separators — borders, dividers, gutter lines."
|
|
185
|
+
},
|
|
186
|
+
diffAdd: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
187
|
+
diffAddNum: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
188
|
+
diffContext: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
189
|
+
diffContextNum: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
190
|
+
diffDel: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
191
|
+
diffDelNum: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
192
|
+
divider: {
|
|
193
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
194
|
+
description: "Separators between messages or sections."
|
|
195
|
+
},
|
|
196
|
+
error: { $ref: "#/definitions/Color%3Cfalse%3E" },
|
|
197
|
+
fg: { $ref: "#/definitions/Color%3Cfalse%2Cfalse%3E" },
|
|
198
|
+
gutter: {
|
|
199
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
200
|
+
description: "Line-number column, diff markers."
|
|
201
|
+
},
|
|
202
|
+
highlight: {
|
|
203
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
204
|
+
description: "Tinted region for emphasized content within the stream — user bubble bg, focused row, callout. Distinct from `code`, which is reserved for code-block bg."
|
|
205
|
+
},
|
|
206
|
+
id: { type: "string" },
|
|
207
|
+
info: { $ref: "#/definitions/Color%3Cfalse%3E" },
|
|
208
|
+
mdBold: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
209
|
+
mdCode: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
210
|
+
mdCodeBlock: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
211
|
+
mdCodeBlockTitle: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
212
|
+
mdHeading: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
213
|
+
mdHeading1: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
214
|
+
mdHeading2: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
215
|
+
mdHeading3: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
216
|
+
mdHeading4: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
217
|
+
mdHeading5: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
218
|
+
mdHeading6: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
219
|
+
mdHr: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
220
|
+
mdItalic: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
221
|
+
mdLink: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
222
|
+
mdListBullet: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
223
|
+
mdListChecked: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
224
|
+
mdListUnchecked: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
225
|
+
mdMath: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
226
|
+
mdQuote: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
227
|
+
mdStrikethrough: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
228
|
+
mdTable: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
229
|
+
mdTableHeader: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
230
|
+
muted: {
|
|
231
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
232
|
+
description: "Secondary text — first tier of the quietness ladder (`muted` → `quiet` → `comment`). Slightly faded but readable; good for timestamps, captions, less-prominent labels."
|
|
233
|
+
},
|
|
234
|
+
name: { type: "string" },
|
|
235
|
+
optionActive: {
|
|
236
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
237
|
+
description: "Currently-highlighted entry."
|
|
238
|
+
},
|
|
239
|
+
optionDesc: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
240
|
+
optionName: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
241
|
+
overlay: {
|
|
242
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
243
|
+
description: "Popup / modal surface. One tier above `ui`."
|
|
244
|
+
},
|
|
245
|
+
primary: {
|
|
246
|
+
$ref: "#/definitions/Color%3Cfalse%3E",
|
|
247
|
+
description: "Brand / primary accent."
|
|
248
|
+
},
|
|
249
|
+
prompt: {
|
|
250
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
251
|
+
description: "Main input-prompt styling."
|
|
252
|
+
},
|
|
253
|
+
quiet: {
|
|
254
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
255
|
+
description: "De-emphasized but still readable. Reasoning / thinking text, secondary annotations, hints."
|
|
256
|
+
},
|
|
257
|
+
selection: {
|
|
258
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
259
|
+
description: "Highlighted text in inputs, lists, autocomplete."
|
|
260
|
+
},
|
|
261
|
+
shiki: {
|
|
262
|
+
$ref: "#/definitions/ShikiSelection",
|
|
263
|
+
description: "Matching bundled Shiki theme. Unset or \"auto\" generates highlighting from the syntax slots."
|
|
264
|
+
},
|
|
265
|
+
success: { $ref: "#/definitions/Color%3Cfalse%3E" },
|
|
266
|
+
syntaxBoolean: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
267
|
+
syntaxBracket: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
268
|
+
syntaxConstant: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
269
|
+
syntaxDelimiter: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
270
|
+
syntaxField: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
271
|
+
syntaxFunction: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
272
|
+
syntaxNumber: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
273
|
+
syntaxSpecial: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
274
|
+
syntaxString: { $ref: "#/definitions/ThemeValue%3Cfalse%3E" },
|
|
275
|
+
title: {
|
|
276
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
277
|
+
description: "Section / panel titles. Typically `bold` + a fg color."
|
|
278
|
+
},
|
|
279
|
+
ui: {
|
|
280
|
+
$ref: "#/definitions/ThemeValue%3Cfalse%3E",
|
|
281
|
+
description: "Default UI surface. Bottom of the stack."
|
|
282
|
+
},
|
|
283
|
+
warn: { $ref: "#/definitions/Color%3Cfalse%3E" }
|
|
284
|
+
},
|
|
285
|
+
required: [
|
|
286
|
+
"accent",
|
|
287
|
+
"bg",
|
|
288
|
+
"diffAdd",
|
|
289
|
+
"diffDel",
|
|
290
|
+
"error",
|
|
291
|
+
"fg",
|
|
292
|
+
"id",
|
|
293
|
+
"info",
|
|
294
|
+
"primary",
|
|
295
|
+
"selection",
|
|
296
|
+
"success",
|
|
297
|
+
"syntaxBoolean",
|
|
298
|
+
"syntaxConstant",
|
|
299
|
+
"syntaxField",
|
|
300
|
+
"syntaxFunction",
|
|
301
|
+
"syntaxNumber",
|
|
302
|
+
"syntaxSpecial",
|
|
303
|
+
"syntaxString",
|
|
304
|
+
"warn"
|
|
305
|
+
],
|
|
306
|
+
type: "object"
|
|
307
|
+
};
|
|
308
|
+
var func2 = Object.prototype.hasOwnProperty;
|
|
309
|
+
var pattern0 = /* @__PURE__ */ new RegExp("^(?:(?:#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|accent|bg|border|borderTitle|code|codeTitle|comment|delim|diffAdd|diffAddNum|diffContext|diffContextNum|diffDel|diffDelNum|divider|error|fg|gutter|highlight|info|mdBold|mdCode|mdCodeBlock|mdCodeBlockTitle|mdHeading|mdHeading1|mdHeading2|mdHeading3|mdHeading4|mdHeading5|mdHeading6|mdHr|mdItalic|mdLink|mdListBullet|mdListChecked|mdListUnchecked|mdMath|mdQuote|mdStrikethrough|mdTable|mdTableHeader|muted|optionActive|optionDesc|optionName|overlay|primary|prompt|quiet|selection|success|syntaxBoolean|syntaxBracket|syntaxConstant|syntaxDelimiter|syntaxField|syntaxFunction|syntaxNumber|syntaxSpecial|syntaxString|title|ui|warn)(?:[+-][0-9]+)?|inherit)$", "u");
|
|
310
|
+
function validate24(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
311
|
+
let vErrors = null;
|
|
312
|
+
let errors = 0;
|
|
313
|
+
if (typeof data === "string") {
|
|
314
|
+
if (!pattern0.test(data)) {
|
|
315
|
+
const err0 = {
|
|
316
|
+
instancePath,
|
|
317
|
+
schemaPath: "#/pattern",
|
|
318
|
+
keyword: "pattern",
|
|
319
|
+
params: { pattern: "^(?:(?:#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|accent|bg|border|borderTitle|code|codeTitle|comment|delim|diffAdd|diffAddNum|diffContext|diffContextNum|diffDel|diffDelNum|divider|error|fg|gutter|highlight|info|mdBold|mdCode|mdCodeBlock|mdCodeBlockTitle|mdHeading|mdHeading1|mdHeading2|mdHeading3|mdHeading4|mdHeading5|mdHeading6|mdHr|mdItalic|mdLink|mdListBullet|mdListChecked|mdListUnchecked|mdMath|mdQuote|mdStrikethrough|mdTable|mdTableHeader|muted|optionActive|optionDesc|optionName|overlay|primary|prompt|quiet|selection|success|syntaxBoolean|syntaxBracket|syntaxConstant|syntaxDelimiter|syntaxField|syntaxFunction|syntaxNumber|syntaxSpecial|syntaxString|title|ui|warn)(?:[+-][0-9]+)?|inherit)$" },
|
|
320
|
+
message: "must match pattern \"^(?:(?:#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|accent|bg|border|borderTitle|code|codeTitle|comment|delim|diffAdd|diffAddNum|diffContext|diffContextNum|diffDel|diffDelNum|divider|error|fg|gutter|highlight|info|mdBold|mdCode|mdCodeBlock|mdCodeBlockTitle|mdHeading|mdHeading1|mdHeading2|mdHeading3|mdHeading4|mdHeading5|mdHeading6|mdHr|mdItalic|mdLink|mdListBullet|mdListChecked|mdListUnchecked|mdMath|mdQuote|mdStrikethrough|mdTable|mdTableHeader|muted|optionActive|optionDesc|optionName|overlay|primary|prompt|quiet|selection|success|syntaxBoolean|syntaxBracket|syntaxConstant|syntaxDelimiter|syntaxField|syntaxFunction|syntaxNumber|syntaxSpecial|syntaxString|title|ui|warn)(?:[+-][0-9]+)?|inherit)$\""
|
|
321
|
+
};
|
|
322
|
+
if (vErrors === null) vErrors = [err0];
|
|
323
|
+
else vErrors.push(err0);
|
|
324
|
+
errors++;
|
|
325
|
+
}
|
|
326
|
+
} else {
|
|
327
|
+
const err1 = {
|
|
328
|
+
instancePath,
|
|
329
|
+
schemaPath: "#/type",
|
|
330
|
+
keyword: "type",
|
|
331
|
+
params: { type: "string" },
|
|
332
|
+
message: "must be string"
|
|
333
|
+
};
|
|
334
|
+
if (vErrors === null) vErrors = [err1];
|
|
335
|
+
else vErrors.push(err1);
|
|
336
|
+
errors++;
|
|
337
|
+
}
|
|
338
|
+
validate24.errors = vErrors;
|
|
339
|
+
return errors === 0;
|
|
340
|
+
}
|
|
341
|
+
function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
342
|
+
let vErrors = null;
|
|
343
|
+
let errors = 0;
|
|
344
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
345
|
+
for (const key0 in data) if (!(key0 === "bg" || key0 === "bold" || key0 === "dim" || key0 === "fg" || key0 === "inverse" || key0 === "italic" || key0 === "strikethrough" || key0 === "underline")) {
|
|
346
|
+
const err0 = {
|
|
347
|
+
instancePath,
|
|
348
|
+
schemaPath: "#/additionalProperties",
|
|
349
|
+
keyword: "additionalProperties",
|
|
350
|
+
params: { additionalProperty: key0 },
|
|
351
|
+
message: "must NOT have additional properties"
|
|
352
|
+
};
|
|
353
|
+
if (vErrors === null) vErrors = [err0];
|
|
354
|
+
else vErrors.push(err0);
|
|
355
|
+
errors++;
|
|
356
|
+
}
|
|
357
|
+
if (data.bg !== void 0) {
|
|
358
|
+
if (!validate24(data.bg, {
|
|
359
|
+
instancePath: instancePath + "/bg",
|
|
360
|
+
parentData: data,
|
|
361
|
+
parentDataProperty: "bg",
|
|
362
|
+
rootData
|
|
363
|
+
})) {
|
|
364
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
365
|
+
errors = vErrors.length;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if (data.bold !== void 0) {
|
|
369
|
+
if (typeof data.bold !== "boolean") {
|
|
370
|
+
const err1 = {
|
|
371
|
+
instancePath: instancePath + "/bold",
|
|
372
|
+
schemaPath: "#/properties/bold/type",
|
|
373
|
+
keyword: "type",
|
|
374
|
+
params: { type: "boolean" },
|
|
375
|
+
message: "must be boolean"
|
|
376
|
+
};
|
|
377
|
+
if (vErrors === null) vErrors = [err1];
|
|
378
|
+
else vErrors.push(err1);
|
|
379
|
+
errors++;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
if (data.dim !== void 0) {
|
|
383
|
+
if (typeof data.dim !== "boolean") {
|
|
384
|
+
const err2 = {
|
|
385
|
+
instancePath: instancePath + "/dim",
|
|
386
|
+
schemaPath: "#/properties/dim/type",
|
|
387
|
+
keyword: "type",
|
|
388
|
+
params: { type: "boolean" },
|
|
389
|
+
message: "must be boolean"
|
|
390
|
+
};
|
|
391
|
+
if (vErrors === null) vErrors = [err2];
|
|
392
|
+
else vErrors.push(err2);
|
|
393
|
+
errors++;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
if (data.fg !== void 0) {
|
|
397
|
+
if (!validate24(data.fg, {
|
|
398
|
+
instancePath: instancePath + "/fg",
|
|
399
|
+
parentData: data,
|
|
400
|
+
parentDataProperty: "fg",
|
|
401
|
+
rootData
|
|
402
|
+
})) {
|
|
403
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
404
|
+
errors = vErrors.length;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
if (data.inverse !== void 0) {
|
|
408
|
+
if (typeof data.inverse !== "boolean") {
|
|
409
|
+
const err3 = {
|
|
410
|
+
instancePath: instancePath + "/inverse",
|
|
411
|
+
schemaPath: "#/properties/inverse/type",
|
|
412
|
+
keyword: "type",
|
|
413
|
+
params: { type: "boolean" },
|
|
414
|
+
message: "must be boolean"
|
|
415
|
+
};
|
|
416
|
+
if (vErrors === null) vErrors = [err3];
|
|
417
|
+
else vErrors.push(err3);
|
|
418
|
+
errors++;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
if (data.italic !== void 0) {
|
|
422
|
+
if (typeof data.italic !== "boolean") {
|
|
423
|
+
const err4 = {
|
|
424
|
+
instancePath: instancePath + "/italic",
|
|
425
|
+
schemaPath: "#/properties/italic/type",
|
|
426
|
+
keyword: "type",
|
|
427
|
+
params: { type: "boolean" },
|
|
428
|
+
message: "must be boolean"
|
|
429
|
+
};
|
|
430
|
+
if (vErrors === null) vErrors = [err4];
|
|
431
|
+
else vErrors.push(err4);
|
|
432
|
+
errors++;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
if (data.strikethrough !== void 0) {
|
|
436
|
+
if (typeof data.strikethrough !== "boolean") {
|
|
437
|
+
const err5 = {
|
|
438
|
+
instancePath: instancePath + "/strikethrough",
|
|
439
|
+
schemaPath: "#/properties/strikethrough/type",
|
|
440
|
+
keyword: "type",
|
|
441
|
+
params: { type: "boolean" },
|
|
442
|
+
message: "must be boolean"
|
|
443
|
+
};
|
|
444
|
+
if (vErrors === null) vErrors = [err5];
|
|
445
|
+
else vErrors.push(err5);
|
|
446
|
+
errors++;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
if (data.underline !== void 0) {
|
|
450
|
+
if (typeof data.underline !== "boolean") {
|
|
451
|
+
const err6 = {
|
|
452
|
+
instancePath: instancePath + "/underline",
|
|
453
|
+
schemaPath: "#/properties/underline/type",
|
|
454
|
+
keyword: "type",
|
|
455
|
+
params: { type: "boolean" },
|
|
456
|
+
message: "must be boolean"
|
|
457
|
+
};
|
|
458
|
+
if (vErrors === null) vErrors = [err6];
|
|
459
|
+
else vErrors.push(err6);
|
|
460
|
+
errors++;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
} else {
|
|
464
|
+
const err7 = {
|
|
465
|
+
instancePath,
|
|
466
|
+
schemaPath: "#/type",
|
|
467
|
+
keyword: "type",
|
|
468
|
+
params: { type: "object" },
|
|
469
|
+
message: "must be object"
|
|
470
|
+
};
|
|
471
|
+
if (vErrors === null) vErrors = [err7];
|
|
472
|
+
else vErrors.push(err7);
|
|
473
|
+
errors++;
|
|
474
|
+
}
|
|
475
|
+
validate23.errors = vErrors;
|
|
476
|
+
return errors === 0;
|
|
477
|
+
}
|
|
478
|
+
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
479
|
+
let vErrors = null;
|
|
480
|
+
let errors = 0;
|
|
481
|
+
const _errs0 = errors;
|
|
482
|
+
let valid0 = false;
|
|
483
|
+
const _errs1 = errors;
|
|
484
|
+
if (!validate23(data, {
|
|
485
|
+
instancePath,
|
|
486
|
+
parentData,
|
|
487
|
+
parentDataProperty,
|
|
488
|
+
rootData
|
|
489
|
+
})) {
|
|
490
|
+
vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
|
|
491
|
+
errors = vErrors.length;
|
|
492
|
+
}
|
|
493
|
+
var _valid0 = _errs1 === errors;
|
|
494
|
+
valid0 = valid0 || _valid0;
|
|
495
|
+
if (!valid0) {
|
|
496
|
+
const _errs2 = errors;
|
|
497
|
+
if (!validate24(data, {
|
|
498
|
+
instancePath,
|
|
499
|
+
parentData,
|
|
500
|
+
parentDataProperty,
|
|
501
|
+
rootData
|
|
502
|
+
})) {
|
|
503
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
504
|
+
errors = vErrors.length;
|
|
505
|
+
}
|
|
506
|
+
var _valid0 = _errs2 === errors;
|
|
507
|
+
valid0 = valid0 || _valid0;
|
|
508
|
+
}
|
|
509
|
+
if (!valid0) {
|
|
510
|
+
const err0 = {
|
|
511
|
+
instancePath,
|
|
512
|
+
schemaPath: "#/anyOf",
|
|
513
|
+
keyword: "anyOf",
|
|
514
|
+
params: {},
|
|
515
|
+
message: "must match a schema in anyOf"
|
|
516
|
+
};
|
|
517
|
+
if (vErrors === null) vErrors = [err0];
|
|
518
|
+
else vErrors.push(err0);
|
|
519
|
+
errors++;
|
|
520
|
+
} else {
|
|
521
|
+
errors = _errs0;
|
|
522
|
+
if (vErrors !== null) {
|
|
523
|
+
if (_errs0) vErrors.length = _errs0;
|
|
524
|
+
else vErrors = null;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
validate22.errors = vErrors;
|
|
528
|
+
return errors === 0;
|
|
529
|
+
}
|
|
530
|
+
var pattern1 = /* @__PURE__ */ new RegExp("^(?:(?:#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|accent|bg|border|borderTitle|code|codeTitle|comment|delim|diffAdd|diffAddNum|diffContext|diffContextNum|diffDel|diffDelNum|divider|error|fg|gutter|highlight|info|mdBold|mdCode|mdCodeBlock|mdCodeBlockTitle|mdHeading|mdHeading1|mdHeading2|mdHeading3|mdHeading4|mdHeading5|mdHeading6|mdHr|mdItalic|mdLink|mdListBullet|mdListChecked|mdListUnchecked|mdMath|mdQuote|mdStrikethrough|mdTable|mdTableHeader|muted|optionActive|optionDesc|optionName|overlay|primary|prompt|quiet|selection|success|syntaxBoolean|syntaxBracket|syntaxConstant|syntaxDelimiter|syntaxField|syntaxFunction|syntaxNumber|syntaxSpecial|syntaxString|title|ui|warn)(?:[+-][0-9]+)?)$", "u");
|
|
531
|
+
function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
532
|
+
let vErrors = null;
|
|
533
|
+
let errors = 0;
|
|
534
|
+
if (typeof data === "string") {
|
|
535
|
+
if (!pattern1.test(data)) {
|
|
536
|
+
const err0 = {
|
|
537
|
+
instancePath,
|
|
538
|
+
schemaPath: "#/pattern",
|
|
539
|
+
keyword: "pattern",
|
|
540
|
+
params: { pattern: "^(?:(?:#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|accent|bg|border|borderTitle|code|codeTitle|comment|delim|diffAdd|diffAddNum|diffContext|diffContextNum|diffDel|diffDelNum|divider|error|fg|gutter|highlight|info|mdBold|mdCode|mdCodeBlock|mdCodeBlockTitle|mdHeading|mdHeading1|mdHeading2|mdHeading3|mdHeading4|mdHeading5|mdHeading6|mdHr|mdItalic|mdLink|mdListBullet|mdListChecked|mdListUnchecked|mdMath|mdQuote|mdStrikethrough|mdTable|mdTableHeader|muted|optionActive|optionDesc|optionName|overlay|primary|prompt|quiet|selection|success|syntaxBoolean|syntaxBracket|syntaxConstant|syntaxDelimiter|syntaxField|syntaxFunction|syntaxNumber|syntaxSpecial|syntaxString|title|ui|warn)(?:[+-][0-9]+)?)$" },
|
|
541
|
+
message: "must match pattern \"^(?:(?:#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|accent|bg|border|borderTitle|code|codeTitle|comment|delim|diffAdd|diffAddNum|diffContext|diffContextNum|diffDel|diffDelNum|divider|error|fg|gutter|highlight|info|mdBold|mdCode|mdCodeBlock|mdCodeBlockTitle|mdHeading|mdHeading1|mdHeading2|mdHeading3|mdHeading4|mdHeading5|mdHeading6|mdHr|mdItalic|mdLink|mdListBullet|mdListChecked|mdListUnchecked|mdMath|mdQuote|mdStrikethrough|mdTable|mdTableHeader|muted|optionActive|optionDesc|optionName|overlay|primary|prompt|quiet|selection|success|syntaxBoolean|syntaxBracket|syntaxConstant|syntaxDelimiter|syntaxField|syntaxFunction|syntaxNumber|syntaxSpecial|syntaxString|title|ui|warn)(?:[+-][0-9]+)?)$\""
|
|
542
|
+
};
|
|
543
|
+
if (vErrors === null) vErrors = [err0];
|
|
544
|
+
else vErrors.push(err0);
|
|
545
|
+
errors++;
|
|
546
|
+
}
|
|
547
|
+
} else {
|
|
548
|
+
const err1 = {
|
|
549
|
+
instancePath,
|
|
550
|
+
schemaPath: "#/type",
|
|
551
|
+
keyword: "type",
|
|
552
|
+
params: { type: "string" },
|
|
553
|
+
message: "must be string"
|
|
554
|
+
};
|
|
555
|
+
if (vErrors === null) vErrors = [err1];
|
|
556
|
+
else vErrors.push(err1);
|
|
557
|
+
errors++;
|
|
558
|
+
}
|
|
559
|
+
validate31.errors = vErrors;
|
|
560
|
+
return errors === 0;
|
|
561
|
+
}
|
|
562
|
+
var schema12 = {
|
|
563
|
+
enum: [
|
|
564
|
+
"andromeeda",
|
|
565
|
+
"aurora-x",
|
|
566
|
+
"ayu-dark",
|
|
567
|
+
"ayu-light",
|
|
568
|
+
"ayu-mirage",
|
|
569
|
+
"catppuccin-frappe",
|
|
570
|
+
"catppuccin-latte",
|
|
571
|
+
"catppuccin-macchiato",
|
|
572
|
+
"catppuccin-mocha",
|
|
573
|
+
"dark-plus",
|
|
574
|
+
"dracula",
|
|
575
|
+
"dracula-soft",
|
|
576
|
+
"everforest-dark",
|
|
577
|
+
"everforest-light",
|
|
578
|
+
"github-dark",
|
|
579
|
+
"github-dark-default",
|
|
580
|
+
"github-dark-dimmed",
|
|
581
|
+
"github-dark-high-contrast",
|
|
582
|
+
"github-light",
|
|
583
|
+
"github-light-default",
|
|
584
|
+
"github-light-high-contrast",
|
|
585
|
+
"gruvbox-dark-hard",
|
|
586
|
+
"gruvbox-dark-medium",
|
|
587
|
+
"gruvbox-dark-soft",
|
|
588
|
+
"gruvbox-light-hard",
|
|
589
|
+
"gruvbox-light-medium",
|
|
590
|
+
"gruvbox-light-soft",
|
|
591
|
+
"horizon",
|
|
592
|
+
"horizon-bright",
|
|
593
|
+
"houston",
|
|
594
|
+
"kanagawa-dragon",
|
|
595
|
+
"kanagawa-lotus",
|
|
596
|
+
"kanagawa-wave",
|
|
597
|
+
"laserwave",
|
|
598
|
+
"light-plus",
|
|
599
|
+
"material-theme",
|
|
600
|
+
"material-theme-darker",
|
|
601
|
+
"material-theme-lighter",
|
|
602
|
+
"material-theme-ocean",
|
|
603
|
+
"material-theme-palenight",
|
|
604
|
+
"min-dark",
|
|
605
|
+
"min-light",
|
|
606
|
+
"monokai",
|
|
607
|
+
"night-owl",
|
|
608
|
+
"night-owl-light",
|
|
609
|
+
"nord",
|
|
610
|
+
"one-dark-pro",
|
|
611
|
+
"one-light",
|
|
612
|
+
"plastic",
|
|
613
|
+
"poimandres",
|
|
614
|
+
"red",
|
|
615
|
+
"rose-pine",
|
|
616
|
+
"rose-pine-dawn",
|
|
617
|
+
"rose-pine-moon",
|
|
618
|
+
"slack-dark",
|
|
619
|
+
"slack-ochin",
|
|
620
|
+
"snazzy-light",
|
|
621
|
+
"solarized-dark",
|
|
622
|
+
"solarized-light",
|
|
623
|
+
"synthwave-84",
|
|
624
|
+
"tokyo-night",
|
|
625
|
+
"vesper",
|
|
626
|
+
"vitesse-black",
|
|
627
|
+
"vitesse-dark",
|
|
628
|
+
"vitesse-light"
|
|
629
|
+
],
|
|
630
|
+
type: "string"
|
|
631
|
+
};
|
|
632
|
+
function validate83(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
633
|
+
let vErrors = null;
|
|
634
|
+
let errors = 0;
|
|
635
|
+
if (typeof data !== "string") {
|
|
636
|
+
const err0 = {
|
|
637
|
+
instancePath,
|
|
638
|
+
schemaPath: "#/type",
|
|
639
|
+
keyword: "type",
|
|
640
|
+
params: { type: "string" },
|
|
641
|
+
message: "must be string"
|
|
642
|
+
};
|
|
643
|
+
if (vErrors === null) vErrors = [err0];
|
|
644
|
+
else vErrors.push(err0);
|
|
645
|
+
errors++;
|
|
646
|
+
}
|
|
647
|
+
if (!(data === "andromeeda" || data === "aurora-x" || data === "ayu-dark" || data === "ayu-light" || data === "ayu-mirage" || data === "catppuccin-frappe" || data === "catppuccin-latte" || data === "catppuccin-macchiato" || data === "catppuccin-mocha" || data === "dark-plus" || data === "dracula" || data === "dracula-soft" || data === "everforest-dark" || data === "everforest-light" || data === "github-dark" || data === "github-dark-default" || data === "github-dark-dimmed" || data === "github-dark-high-contrast" || data === "github-light" || data === "github-light-default" || data === "github-light-high-contrast" || data === "gruvbox-dark-hard" || data === "gruvbox-dark-medium" || data === "gruvbox-dark-soft" || data === "gruvbox-light-hard" || data === "gruvbox-light-medium" || data === "gruvbox-light-soft" || data === "horizon" || data === "horizon-bright" || data === "houston" || data === "kanagawa-dragon" || data === "kanagawa-lotus" || data === "kanagawa-wave" || data === "laserwave" || data === "light-plus" || data === "material-theme" || data === "material-theme-darker" || data === "material-theme-lighter" || data === "material-theme-ocean" || data === "material-theme-palenight" || data === "min-dark" || data === "min-light" || data === "monokai" || data === "night-owl" || data === "night-owl-light" || data === "nord" || data === "one-dark-pro" || data === "one-light" || data === "plastic" || data === "poimandres" || data === "red" || data === "rose-pine" || data === "rose-pine-dawn" || data === "rose-pine-moon" || data === "slack-dark" || data === "slack-ochin" || data === "snazzy-light" || data === "solarized-dark" || data === "solarized-light" || data === "synthwave-84" || data === "tokyo-night" || data === "vesper" || data === "vitesse-black" || data === "vitesse-dark" || data === "vitesse-light")) {
|
|
648
|
+
const err1 = {
|
|
649
|
+
instancePath,
|
|
650
|
+
schemaPath: "#/enum",
|
|
651
|
+
keyword: "enum",
|
|
652
|
+
params: { allowedValues: schema12.enum },
|
|
653
|
+
message: "must be equal to one of the allowed values"
|
|
654
|
+
};
|
|
655
|
+
if (vErrors === null) vErrors = [err1];
|
|
656
|
+
else vErrors.push(err1);
|
|
657
|
+
errors++;
|
|
658
|
+
}
|
|
659
|
+
validate83.errors = vErrors;
|
|
660
|
+
return errors === 0;
|
|
661
|
+
}
|
|
662
|
+
function validate82(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
663
|
+
let vErrors = null;
|
|
664
|
+
let errors = 0;
|
|
665
|
+
const _errs0 = errors;
|
|
666
|
+
let valid0 = false;
|
|
667
|
+
const _errs1 = errors;
|
|
668
|
+
if (typeof data !== "string") {
|
|
669
|
+
const err0 = {
|
|
670
|
+
instancePath,
|
|
671
|
+
schemaPath: "#/anyOf/0/type",
|
|
672
|
+
keyword: "type",
|
|
673
|
+
params: { type: "string" },
|
|
674
|
+
message: "must be string"
|
|
675
|
+
};
|
|
676
|
+
if (vErrors === null) vErrors = [err0];
|
|
677
|
+
else vErrors.push(err0);
|
|
678
|
+
errors++;
|
|
679
|
+
}
|
|
680
|
+
if (data !== "auto") {
|
|
681
|
+
const err1 = {
|
|
682
|
+
instancePath,
|
|
683
|
+
schemaPath: "#/anyOf/0/const",
|
|
684
|
+
keyword: "const",
|
|
685
|
+
params: { allowedValue: "auto" },
|
|
686
|
+
message: "must be equal to constant"
|
|
687
|
+
};
|
|
688
|
+
if (vErrors === null) vErrors = [err1];
|
|
689
|
+
else vErrors.push(err1);
|
|
690
|
+
errors++;
|
|
691
|
+
}
|
|
692
|
+
var _valid0 = _errs1 === errors;
|
|
693
|
+
valid0 = valid0 || _valid0;
|
|
694
|
+
if (!valid0) {
|
|
695
|
+
const _errs3 = errors;
|
|
696
|
+
if (!validate83(data, {
|
|
697
|
+
instancePath,
|
|
698
|
+
parentData,
|
|
699
|
+
parentDataProperty,
|
|
700
|
+
rootData
|
|
701
|
+
})) {
|
|
702
|
+
vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);
|
|
703
|
+
errors = vErrors.length;
|
|
704
|
+
}
|
|
705
|
+
var _valid0 = _errs3 === errors;
|
|
706
|
+
valid0 = valid0 || _valid0;
|
|
707
|
+
}
|
|
708
|
+
if (!valid0) {
|
|
709
|
+
const err2 = {
|
|
710
|
+
instancePath,
|
|
711
|
+
schemaPath: "#/anyOf",
|
|
712
|
+
keyword: "anyOf",
|
|
713
|
+
params: {},
|
|
714
|
+
message: "must match a schema in anyOf"
|
|
715
|
+
};
|
|
716
|
+
if (vErrors === null) vErrors = [err2];
|
|
717
|
+
else vErrors.push(err2);
|
|
718
|
+
errors++;
|
|
719
|
+
} else {
|
|
720
|
+
errors = _errs0;
|
|
721
|
+
if (vErrors !== null) {
|
|
722
|
+
if (_errs0) vErrors.length = _errs0;
|
|
723
|
+
else vErrors = null;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
validate82.errors = vErrors;
|
|
727
|
+
return errors === 0;
|
|
728
|
+
}
|
|
729
|
+
function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
730
|
+
let vErrors = null;
|
|
731
|
+
let errors = 0;
|
|
732
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
733
|
+
if (data.accent === void 0) {
|
|
734
|
+
const err0 = {
|
|
735
|
+
instancePath,
|
|
736
|
+
schemaPath: "#/required",
|
|
737
|
+
keyword: "required",
|
|
738
|
+
params: { missingProperty: "accent" },
|
|
739
|
+
message: "must have required property 'accent'"
|
|
740
|
+
};
|
|
741
|
+
if (vErrors === null) vErrors = [err0];
|
|
742
|
+
else vErrors.push(err0);
|
|
743
|
+
errors++;
|
|
744
|
+
}
|
|
745
|
+
if (data.bg === void 0) {
|
|
746
|
+
const err1 = {
|
|
747
|
+
instancePath,
|
|
748
|
+
schemaPath: "#/required",
|
|
749
|
+
keyword: "required",
|
|
750
|
+
params: { missingProperty: "bg" },
|
|
751
|
+
message: "must have required property 'bg'"
|
|
752
|
+
};
|
|
753
|
+
if (vErrors === null) vErrors = [err1];
|
|
754
|
+
else vErrors.push(err1);
|
|
755
|
+
errors++;
|
|
756
|
+
}
|
|
757
|
+
if (data.diffAdd === void 0) {
|
|
758
|
+
const err2 = {
|
|
759
|
+
instancePath,
|
|
760
|
+
schemaPath: "#/required",
|
|
761
|
+
keyword: "required",
|
|
762
|
+
params: { missingProperty: "diffAdd" },
|
|
763
|
+
message: "must have required property 'diffAdd'"
|
|
764
|
+
};
|
|
765
|
+
if (vErrors === null) vErrors = [err2];
|
|
766
|
+
else vErrors.push(err2);
|
|
767
|
+
errors++;
|
|
768
|
+
}
|
|
769
|
+
if (data.diffDel === void 0) {
|
|
770
|
+
const err3 = {
|
|
771
|
+
instancePath,
|
|
772
|
+
schemaPath: "#/required",
|
|
773
|
+
keyword: "required",
|
|
774
|
+
params: { missingProperty: "diffDel" },
|
|
775
|
+
message: "must have required property 'diffDel'"
|
|
776
|
+
};
|
|
777
|
+
if (vErrors === null) vErrors = [err3];
|
|
778
|
+
else vErrors.push(err3);
|
|
779
|
+
errors++;
|
|
780
|
+
}
|
|
781
|
+
if (data.error === void 0) {
|
|
782
|
+
const err4 = {
|
|
783
|
+
instancePath,
|
|
784
|
+
schemaPath: "#/required",
|
|
785
|
+
keyword: "required",
|
|
786
|
+
params: { missingProperty: "error" },
|
|
787
|
+
message: "must have required property 'error'"
|
|
788
|
+
};
|
|
789
|
+
if (vErrors === null) vErrors = [err4];
|
|
790
|
+
else vErrors.push(err4);
|
|
791
|
+
errors++;
|
|
792
|
+
}
|
|
793
|
+
if (data.fg === void 0) {
|
|
794
|
+
const err5 = {
|
|
795
|
+
instancePath,
|
|
796
|
+
schemaPath: "#/required",
|
|
797
|
+
keyword: "required",
|
|
798
|
+
params: { missingProperty: "fg" },
|
|
799
|
+
message: "must have required property 'fg'"
|
|
800
|
+
};
|
|
801
|
+
if (vErrors === null) vErrors = [err5];
|
|
802
|
+
else vErrors.push(err5);
|
|
803
|
+
errors++;
|
|
804
|
+
}
|
|
805
|
+
if (data.id === void 0) {
|
|
806
|
+
const err6 = {
|
|
807
|
+
instancePath,
|
|
808
|
+
schemaPath: "#/required",
|
|
809
|
+
keyword: "required",
|
|
810
|
+
params: { missingProperty: "id" },
|
|
811
|
+
message: "must have required property 'id'"
|
|
812
|
+
};
|
|
813
|
+
if (vErrors === null) vErrors = [err6];
|
|
814
|
+
else vErrors.push(err6);
|
|
815
|
+
errors++;
|
|
816
|
+
}
|
|
817
|
+
if (data.info === void 0) {
|
|
818
|
+
const err7 = {
|
|
819
|
+
instancePath,
|
|
820
|
+
schemaPath: "#/required",
|
|
821
|
+
keyword: "required",
|
|
822
|
+
params: { missingProperty: "info" },
|
|
823
|
+
message: "must have required property 'info'"
|
|
824
|
+
};
|
|
825
|
+
if (vErrors === null) vErrors = [err7];
|
|
826
|
+
else vErrors.push(err7);
|
|
827
|
+
errors++;
|
|
828
|
+
}
|
|
829
|
+
if (data.primary === void 0) {
|
|
830
|
+
const err8 = {
|
|
831
|
+
instancePath,
|
|
832
|
+
schemaPath: "#/required",
|
|
833
|
+
keyword: "required",
|
|
834
|
+
params: { missingProperty: "primary" },
|
|
835
|
+
message: "must have required property 'primary'"
|
|
836
|
+
};
|
|
837
|
+
if (vErrors === null) vErrors = [err8];
|
|
838
|
+
else vErrors.push(err8);
|
|
839
|
+
errors++;
|
|
840
|
+
}
|
|
841
|
+
if (data.selection === void 0) {
|
|
842
|
+
const err9 = {
|
|
843
|
+
instancePath,
|
|
844
|
+
schemaPath: "#/required",
|
|
845
|
+
keyword: "required",
|
|
846
|
+
params: { missingProperty: "selection" },
|
|
847
|
+
message: "must have required property 'selection'"
|
|
848
|
+
};
|
|
849
|
+
if (vErrors === null) vErrors = [err9];
|
|
850
|
+
else vErrors.push(err9);
|
|
851
|
+
errors++;
|
|
852
|
+
}
|
|
853
|
+
if (data.success === void 0) {
|
|
854
|
+
const err10 = {
|
|
855
|
+
instancePath,
|
|
856
|
+
schemaPath: "#/required",
|
|
857
|
+
keyword: "required",
|
|
858
|
+
params: { missingProperty: "success" },
|
|
859
|
+
message: "must have required property 'success'"
|
|
860
|
+
};
|
|
861
|
+
if (vErrors === null) vErrors = [err10];
|
|
862
|
+
else vErrors.push(err10);
|
|
863
|
+
errors++;
|
|
864
|
+
}
|
|
865
|
+
if (data.syntaxBoolean === void 0) {
|
|
866
|
+
const err11 = {
|
|
867
|
+
instancePath,
|
|
868
|
+
schemaPath: "#/required",
|
|
869
|
+
keyword: "required",
|
|
870
|
+
params: { missingProperty: "syntaxBoolean" },
|
|
871
|
+
message: "must have required property 'syntaxBoolean'"
|
|
872
|
+
};
|
|
873
|
+
if (vErrors === null) vErrors = [err11];
|
|
874
|
+
else vErrors.push(err11);
|
|
875
|
+
errors++;
|
|
876
|
+
}
|
|
877
|
+
if (data.syntaxConstant === void 0) {
|
|
878
|
+
const err12 = {
|
|
879
|
+
instancePath,
|
|
880
|
+
schemaPath: "#/required",
|
|
881
|
+
keyword: "required",
|
|
882
|
+
params: { missingProperty: "syntaxConstant" },
|
|
883
|
+
message: "must have required property 'syntaxConstant'"
|
|
884
|
+
};
|
|
885
|
+
if (vErrors === null) vErrors = [err12];
|
|
886
|
+
else vErrors.push(err12);
|
|
887
|
+
errors++;
|
|
888
|
+
}
|
|
889
|
+
if (data.syntaxField === void 0) {
|
|
890
|
+
const err13 = {
|
|
891
|
+
instancePath,
|
|
892
|
+
schemaPath: "#/required",
|
|
893
|
+
keyword: "required",
|
|
894
|
+
params: { missingProperty: "syntaxField" },
|
|
895
|
+
message: "must have required property 'syntaxField'"
|
|
896
|
+
};
|
|
897
|
+
if (vErrors === null) vErrors = [err13];
|
|
898
|
+
else vErrors.push(err13);
|
|
899
|
+
errors++;
|
|
900
|
+
}
|
|
901
|
+
if (data.syntaxFunction === void 0) {
|
|
902
|
+
const err14 = {
|
|
903
|
+
instancePath,
|
|
904
|
+
schemaPath: "#/required",
|
|
905
|
+
keyword: "required",
|
|
906
|
+
params: { missingProperty: "syntaxFunction" },
|
|
907
|
+
message: "must have required property 'syntaxFunction'"
|
|
908
|
+
};
|
|
909
|
+
if (vErrors === null) vErrors = [err14];
|
|
910
|
+
else vErrors.push(err14);
|
|
911
|
+
errors++;
|
|
912
|
+
}
|
|
913
|
+
if (data.syntaxNumber === void 0) {
|
|
914
|
+
const err15 = {
|
|
915
|
+
instancePath,
|
|
916
|
+
schemaPath: "#/required",
|
|
917
|
+
keyword: "required",
|
|
918
|
+
params: { missingProperty: "syntaxNumber" },
|
|
919
|
+
message: "must have required property 'syntaxNumber'"
|
|
920
|
+
};
|
|
921
|
+
if (vErrors === null) vErrors = [err15];
|
|
922
|
+
else vErrors.push(err15);
|
|
923
|
+
errors++;
|
|
924
|
+
}
|
|
925
|
+
if (data.syntaxSpecial === void 0) {
|
|
926
|
+
const err16 = {
|
|
927
|
+
instancePath,
|
|
928
|
+
schemaPath: "#/required",
|
|
929
|
+
keyword: "required",
|
|
930
|
+
params: { missingProperty: "syntaxSpecial" },
|
|
931
|
+
message: "must have required property 'syntaxSpecial'"
|
|
932
|
+
};
|
|
933
|
+
if (vErrors === null) vErrors = [err16];
|
|
934
|
+
else vErrors.push(err16);
|
|
935
|
+
errors++;
|
|
936
|
+
}
|
|
937
|
+
if (data.syntaxString === void 0) {
|
|
938
|
+
const err17 = {
|
|
939
|
+
instancePath,
|
|
940
|
+
schemaPath: "#/required",
|
|
941
|
+
keyword: "required",
|
|
942
|
+
params: { missingProperty: "syntaxString" },
|
|
943
|
+
message: "must have required property 'syntaxString'"
|
|
944
|
+
};
|
|
945
|
+
if (vErrors === null) vErrors = [err17];
|
|
946
|
+
else vErrors.push(err17);
|
|
947
|
+
errors++;
|
|
948
|
+
}
|
|
949
|
+
if (data.warn === void 0) {
|
|
950
|
+
const err18 = {
|
|
951
|
+
instancePath,
|
|
952
|
+
schemaPath: "#/required",
|
|
953
|
+
keyword: "required",
|
|
954
|
+
params: { missingProperty: "warn" },
|
|
955
|
+
message: "must have required property 'warn'"
|
|
956
|
+
};
|
|
957
|
+
if (vErrors === null) vErrors = [err18];
|
|
958
|
+
else vErrors.push(err18);
|
|
959
|
+
errors++;
|
|
960
|
+
}
|
|
961
|
+
for (const key0 in data) if (!func2.call(schema6.properties, key0)) {
|
|
962
|
+
if (!validate22(data[key0], {
|
|
963
|
+
instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
964
|
+
parentData: data,
|
|
965
|
+
parentDataProperty: key0,
|
|
966
|
+
rootData
|
|
967
|
+
})) {
|
|
968
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
969
|
+
errors = vErrors.length;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
if (data.$schema !== void 0) {
|
|
973
|
+
if (typeof data.$schema !== "string") {
|
|
974
|
+
const err19 = {
|
|
975
|
+
instancePath: instancePath + "/$schema",
|
|
976
|
+
schemaPath: "#/properties/%24schema/type",
|
|
977
|
+
keyword: "type",
|
|
978
|
+
params: { type: "string" },
|
|
979
|
+
message: "must be string"
|
|
980
|
+
};
|
|
981
|
+
if (vErrors === null) vErrors = [err19];
|
|
982
|
+
else vErrors.push(err19);
|
|
983
|
+
errors++;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
if (data.accent !== void 0) {
|
|
987
|
+
if (!validate24(data.accent, {
|
|
988
|
+
instancePath: instancePath + "/accent",
|
|
989
|
+
parentData: data,
|
|
990
|
+
parentDataProperty: "accent",
|
|
991
|
+
rootData
|
|
992
|
+
})) {
|
|
993
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
994
|
+
errors = vErrors.length;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
if (data.appearance !== void 0) {
|
|
998
|
+
let data3 = data.appearance;
|
|
999
|
+
if (typeof data3 !== "string") {
|
|
1000
|
+
const err20 = {
|
|
1001
|
+
instancePath: instancePath + "/appearance",
|
|
1002
|
+
schemaPath: "#/properties/appearance/type",
|
|
1003
|
+
keyword: "type",
|
|
1004
|
+
params: { type: "string" },
|
|
1005
|
+
message: "must be string"
|
|
1006
|
+
};
|
|
1007
|
+
if (vErrors === null) vErrors = [err20];
|
|
1008
|
+
else vErrors.push(err20);
|
|
1009
|
+
errors++;
|
|
1010
|
+
}
|
|
1011
|
+
if (!(data3 === "dark" || data3 === "light")) {
|
|
1012
|
+
const err21 = {
|
|
1013
|
+
instancePath: instancePath + "/appearance",
|
|
1014
|
+
schemaPath: "#/properties/appearance/enum",
|
|
1015
|
+
keyword: "enum",
|
|
1016
|
+
params: { allowedValues: schema6.properties.appearance.enum },
|
|
1017
|
+
message: "must be equal to one of the allowed values"
|
|
1018
|
+
};
|
|
1019
|
+
if (vErrors === null) vErrors = [err21];
|
|
1020
|
+
else vErrors.push(err21);
|
|
1021
|
+
errors++;
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
if (data.bg !== void 0) {
|
|
1025
|
+
if (!validate31(data.bg, {
|
|
1026
|
+
instancePath: instancePath + "/bg",
|
|
1027
|
+
parentData: data,
|
|
1028
|
+
parentDataProperty: "bg",
|
|
1029
|
+
rootData
|
|
1030
|
+
})) {
|
|
1031
|
+
vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
|
|
1032
|
+
errors = vErrors.length;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
if (data.border !== void 0) {
|
|
1036
|
+
if (!validate22(data.border, {
|
|
1037
|
+
instancePath: instancePath + "/border",
|
|
1038
|
+
parentData: data,
|
|
1039
|
+
parentDataProperty: "border",
|
|
1040
|
+
rootData
|
|
1041
|
+
})) {
|
|
1042
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1043
|
+
errors = vErrors.length;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
if (data.borderTitle !== void 0) {
|
|
1047
|
+
if (!validate22(data.borderTitle, {
|
|
1048
|
+
instancePath: instancePath + "/borderTitle",
|
|
1049
|
+
parentData: data,
|
|
1050
|
+
parentDataProperty: "borderTitle",
|
|
1051
|
+
rootData
|
|
1052
|
+
})) {
|
|
1053
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1054
|
+
errors = vErrors.length;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
if (data.code !== void 0) {
|
|
1058
|
+
if (!validate22(data.code, {
|
|
1059
|
+
instancePath: instancePath + "/code",
|
|
1060
|
+
parentData: data,
|
|
1061
|
+
parentDataProperty: "code",
|
|
1062
|
+
rootData
|
|
1063
|
+
})) {
|
|
1064
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1065
|
+
errors = vErrors.length;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
if (data.codeTitle !== void 0) {
|
|
1069
|
+
if (!validate22(data.codeTitle, {
|
|
1070
|
+
instancePath: instancePath + "/codeTitle",
|
|
1071
|
+
parentData: data,
|
|
1072
|
+
parentDataProperty: "codeTitle",
|
|
1073
|
+
rootData
|
|
1074
|
+
})) {
|
|
1075
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1076
|
+
errors = vErrors.length;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
if (data.comment !== void 0) {
|
|
1080
|
+
if (!validate22(data.comment, {
|
|
1081
|
+
instancePath: instancePath + "/comment",
|
|
1082
|
+
parentData: data,
|
|
1083
|
+
parentDataProperty: "comment",
|
|
1084
|
+
rootData
|
|
1085
|
+
})) {
|
|
1086
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1087
|
+
errors = vErrors.length;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
if (data.delim !== void 0) {
|
|
1091
|
+
if (!validate22(data.delim, {
|
|
1092
|
+
instancePath: instancePath + "/delim",
|
|
1093
|
+
parentData: data,
|
|
1094
|
+
parentDataProperty: "delim",
|
|
1095
|
+
rootData
|
|
1096
|
+
})) {
|
|
1097
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1098
|
+
errors = vErrors.length;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
if (data.diffAdd !== void 0) {
|
|
1102
|
+
if (!validate22(data.diffAdd, {
|
|
1103
|
+
instancePath: instancePath + "/diffAdd",
|
|
1104
|
+
parentData: data,
|
|
1105
|
+
parentDataProperty: "diffAdd",
|
|
1106
|
+
rootData
|
|
1107
|
+
})) {
|
|
1108
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1109
|
+
errors = vErrors.length;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
if (data.diffAddNum !== void 0) {
|
|
1113
|
+
if (!validate22(data.diffAddNum, {
|
|
1114
|
+
instancePath: instancePath + "/diffAddNum",
|
|
1115
|
+
parentData: data,
|
|
1116
|
+
parentDataProperty: "diffAddNum",
|
|
1117
|
+
rootData
|
|
1118
|
+
})) {
|
|
1119
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1120
|
+
errors = vErrors.length;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
if (data.diffContext !== void 0) {
|
|
1124
|
+
if (!validate22(data.diffContext, {
|
|
1125
|
+
instancePath: instancePath + "/diffContext",
|
|
1126
|
+
parentData: data,
|
|
1127
|
+
parentDataProperty: "diffContext",
|
|
1128
|
+
rootData
|
|
1129
|
+
})) {
|
|
1130
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1131
|
+
errors = vErrors.length;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
if (data.diffContextNum !== void 0) {
|
|
1135
|
+
if (!validate22(data.diffContextNum, {
|
|
1136
|
+
instancePath: instancePath + "/diffContextNum",
|
|
1137
|
+
parentData: data,
|
|
1138
|
+
parentDataProperty: "diffContextNum",
|
|
1139
|
+
rootData
|
|
1140
|
+
})) {
|
|
1141
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1142
|
+
errors = vErrors.length;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
if (data.diffDel !== void 0) {
|
|
1146
|
+
if (!validate22(data.diffDel, {
|
|
1147
|
+
instancePath: instancePath + "/diffDel",
|
|
1148
|
+
parentData: data,
|
|
1149
|
+
parentDataProperty: "diffDel",
|
|
1150
|
+
rootData
|
|
1151
|
+
})) {
|
|
1152
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1153
|
+
errors = vErrors.length;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
if (data.diffDelNum !== void 0) {
|
|
1157
|
+
if (!validate22(data.diffDelNum, {
|
|
1158
|
+
instancePath: instancePath + "/diffDelNum",
|
|
1159
|
+
parentData: data,
|
|
1160
|
+
parentDataProperty: "diffDelNum",
|
|
1161
|
+
rootData
|
|
1162
|
+
})) {
|
|
1163
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1164
|
+
errors = vErrors.length;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
if (data.divider !== void 0) {
|
|
1168
|
+
if (!validate22(data.divider, {
|
|
1169
|
+
instancePath: instancePath + "/divider",
|
|
1170
|
+
parentData: data,
|
|
1171
|
+
parentDataProperty: "divider",
|
|
1172
|
+
rootData
|
|
1173
|
+
})) {
|
|
1174
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1175
|
+
errors = vErrors.length;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
if (data.error !== void 0) {
|
|
1179
|
+
if (!validate24(data.error, {
|
|
1180
|
+
instancePath: instancePath + "/error",
|
|
1181
|
+
parentData: data,
|
|
1182
|
+
parentDataProperty: "error",
|
|
1183
|
+
rootData
|
|
1184
|
+
})) {
|
|
1185
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
1186
|
+
errors = vErrors.length;
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
if (data.fg !== void 0) {
|
|
1190
|
+
if (!validate31(data.fg, {
|
|
1191
|
+
instancePath: instancePath + "/fg",
|
|
1192
|
+
parentData: data,
|
|
1193
|
+
parentDataProperty: "fg",
|
|
1194
|
+
rootData
|
|
1195
|
+
})) {
|
|
1196
|
+
vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
|
|
1197
|
+
errors = vErrors.length;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
if (data.gutter !== void 0) {
|
|
1201
|
+
if (!validate22(data.gutter, {
|
|
1202
|
+
instancePath: instancePath + "/gutter",
|
|
1203
|
+
parentData: data,
|
|
1204
|
+
parentDataProperty: "gutter",
|
|
1205
|
+
rootData
|
|
1206
|
+
})) {
|
|
1207
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1208
|
+
errors = vErrors.length;
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
if (data.highlight !== void 0) {
|
|
1212
|
+
if (!validate22(data.highlight, {
|
|
1213
|
+
instancePath: instancePath + "/highlight",
|
|
1214
|
+
parentData: data,
|
|
1215
|
+
parentDataProperty: "highlight",
|
|
1216
|
+
rootData
|
|
1217
|
+
})) {
|
|
1218
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1219
|
+
errors = vErrors.length;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
if (data.id !== void 0) {
|
|
1223
|
+
if (typeof data.id !== "string") {
|
|
1224
|
+
const err22 = {
|
|
1225
|
+
instancePath: instancePath + "/id",
|
|
1226
|
+
schemaPath: "#/properties/id/type",
|
|
1227
|
+
keyword: "type",
|
|
1228
|
+
params: { type: "string" },
|
|
1229
|
+
message: "must be string"
|
|
1230
|
+
};
|
|
1231
|
+
if (vErrors === null) vErrors = [err22];
|
|
1232
|
+
else vErrors.push(err22);
|
|
1233
|
+
errors++;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
if (data.info !== void 0) {
|
|
1237
|
+
if (!validate24(data.info, {
|
|
1238
|
+
instancePath: instancePath + "/info",
|
|
1239
|
+
parentData: data,
|
|
1240
|
+
parentDataProperty: "info",
|
|
1241
|
+
rootData
|
|
1242
|
+
})) {
|
|
1243
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
1244
|
+
errors = vErrors.length;
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
if (data.mdBold !== void 0) {
|
|
1248
|
+
if (!validate22(data.mdBold, {
|
|
1249
|
+
instancePath: instancePath + "/mdBold",
|
|
1250
|
+
parentData: data,
|
|
1251
|
+
parentDataProperty: "mdBold",
|
|
1252
|
+
rootData
|
|
1253
|
+
})) {
|
|
1254
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1255
|
+
errors = vErrors.length;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
if (data.mdCode !== void 0) {
|
|
1259
|
+
if (!validate22(data.mdCode, {
|
|
1260
|
+
instancePath: instancePath + "/mdCode",
|
|
1261
|
+
parentData: data,
|
|
1262
|
+
parentDataProperty: "mdCode",
|
|
1263
|
+
rootData
|
|
1264
|
+
})) {
|
|
1265
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1266
|
+
errors = vErrors.length;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
if (data.mdCodeBlock !== void 0) {
|
|
1270
|
+
if (!validate22(data.mdCodeBlock, {
|
|
1271
|
+
instancePath: instancePath + "/mdCodeBlock",
|
|
1272
|
+
parentData: data,
|
|
1273
|
+
parentDataProperty: "mdCodeBlock",
|
|
1274
|
+
rootData
|
|
1275
|
+
})) {
|
|
1276
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1277
|
+
errors = vErrors.length;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
if (data.mdCodeBlockTitle !== void 0) {
|
|
1281
|
+
if (!validate22(data.mdCodeBlockTitle, {
|
|
1282
|
+
instancePath: instancePath + "/mdCodeBlockTitle",
|
|
1283
|
+
parentData: data,
|
|
1284
|
+
parentDataProperty: "mdCodeBlockTitle",
|
|
1285
|
+
rootData
|
|
1286
|
+
})) {
|
|
1287
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1288
|
+
errors = vErrors.length;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
if (data.mdHeading !== void 0) {
|
|
1292
|
+
if (!validate22(data.mdHeading, {
|
|
1293
|
+
instancePath: instancePath + "/mdHeading",
|
|
1294
|
+
parentData: data,
|
|
1295
|
+
parentDataProperty: "mdHeading",
|
|
1296
|
+
rootData
|
|
1297
|
+
})) {
|
|
1298
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1299
|
+
errors = vErrors.length;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
if (data.mdHeading1 !== void 0) {
|
|
1303
|
+
if (!validate22(data.mdHeading1, {
|
|
1304
|
+
instancePath: instancePath + "/mdHeading1",
|
|
1305
|
+
parentData: data,
|
|
1306
|
+
parentDataProperty: "mdHeading1",
|
|
1307
|
+
rootData
|
|
1308
|
+
})) {
|
|
1309
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1310
|
+
errors = vErrors.length;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
if (data.mdHeading2 !== void 0) {
|
|
1314
|
+
if (!validate22(data.mdHeading2, {
|
|
1315
|
+
instancePath: instancePath + "/mdHeading2",
|
|
1316
|
+
parentData: data,
|
|
1317
|
+
parentDataProperty: "mdHeading2",
|
|
1318
|
+
rootData
|
|
1319
|
+
})) {
|
|
1320
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1321
|
+
errors = vErrors.length;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
if (data.mdHeading3 !== void 0) {
|
|
1325
|
+
if (!validate22(data.mdHeading3, {
|
|
1326
|
+
instancePath: instancePath + "/mdHeading3",
|
|
1327
|
+
parentData: data,
|
|
1328
|
+
parentDataProperty: "mdHeading3",
|
|
1329
|
+
rootData
|
|
1330
|
+
})) {
|
|
1331
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1332
|
+
errors = vErrors.length;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
if (data.mdHeading4 !== void 0) {
|
|
1336
|
+
if (!validate22(data.mdHeading4, {
|
|
1337
|
+
instancePath: instancePath + "/mdHeading4",
|
|
1338
|
+
parentData: data,
|
|
1339
|
+
parentDataProperty: "mdHeading4",
|
|
1340
|
+
rootData
|
|
1341
|
+
})) {
|
|
1342
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1343
|
+
errors = vErrors.length;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
if (data.mdHeading5 !== void 0) {
|
|
1347
|
+
if (!validate22(data.mdHeading5, {
|
|
1348
|
+
instancePath: instancePath + "/mdHeading5",
|
|
1349
|
+
parentData: data,
|
|
1350
|
+
parentDataProperty: "mdHeading5",
|
|
1351
|
+
rootData
|
|
1352
|
+
})) {
|
|
1353
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1354
|
+
errors = vErrors.length;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
if (data.mdHeading6 !== void 0) {
|
|
1358
|
+
if (!validate22(data.mdHeading6, {
|
|
1359
|
+
instancePath: instancePath + "/mdHeading6",
|
|
1360
|
+
parentData: data,
|
|
1361
|
+
parentDataProperty: "mdHeading6",
|
|
1362
|
+
rootData
|
|
1363
|
+
})) {
|
|
1364
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1365
|
+
errors = vErrors.length;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
if (data.mdHr !== void 0) {
|
|
1369
|
+
if (!validate22(data.mdHr, {
|
|
1370
|
+
instancePath: instancePath + "/mdHr",
|
|
1371
|
+
parentData: data,
|
|
1372
|
+
parentDataProperty: "mdHr",
|
|
1373
|
+
rootData
|
|
1374
|
+
})) {
|
|
1375
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1376
|
+
errors = vErrors.length;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
if (data.mdItalic !== void 0) {
|
|
1380
|
+
if (!validate22(data.mdItalic, {
|
|
1381
|
+
instancePath: instancePath + "/mdItalic",
|
|
1382
|
+
parentData: data,
|
|
1383
|
+
parentDataProperty: "mdItalic",
|
|
1384
|
+
rootData
|
|
1385
|
+
})) {
|
|
1386
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1387
|
+
errors = vErrors.length;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
if (data.mdLink !== void 0) {
|
|
1391
|
+
if (!validate22(data.mdLink, {
|
|
1392
|
+
instancePath: instancePath + "/mdLink",
|
|
1393
|
+
parentData: data,
|
|
1394
|
+
parentDataProperty: "mdLink",
|
|
1395
|
+
rootData
|
|
1396
|
+
})) {
|
|
1397
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1398
|
+
errors = vErrors.length;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
if (data.mdListBullet !== void 0) {
|
|
1402
|
+
if (!validate22(data.mdListBullet, {
|
|
1403
|
+
instancePath: instancePath + "/mdListBullet",
|
|
1404
|
+
parentData: data,
|
|
1405
|
+
parentDataProperty: "mdListBullet",
|
|
1406
|
+
rootData
|
|
1407
|
+
})) {
|
|
1408
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1409
|
+
errors = vErrors.length;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
if (data.mdListChecked !== void 0) {
|
|
1413
|
+
if (!validate22(data.mdListChecked, {
|
|
1414
|
+
instancePath: instancePath + "/mdListChecked",
|
|
1415
|
+
parentData: data,
|
|
1416
|
+
parentDataProperty: "mdListChecked",
|
|
1417
|
+
rootData
|
|
1418
|
+
})) {
|
|
1419
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1420
|
+
errors = vErrors.length;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
if (data.mdListUnchecked !== void 0) {
|
|
1424
|
+
if (!validate22(data.mdListUnchecked, {
|
|
1425
|
+
instancePath: instancePath + "/mdListUnchecked",
|
|
1426
|
+
parentData: data,
|
|
1427
|
+
parentDataProperty: "mdListUnchecked",
|
|
1428
|
+
rootData
|
|
1429
|
+
})) {
|
|
1430
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1431
|
+
errors = vErrors.length;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
if (data.mdMath !== void 0) {
|
|
1435
|
+
if (!validate22(data.mdMath, {
|
|
1436
|
+
instancePath: instancePath + "/mdMath",
|
|
1437
|
+
parentData: data,
|
|
1438
|
+
parentDataProperty: "mdMath",
|
|
1439
|
+
rootData
|
|
1440
|
+
})) {
|
|
1441
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1442
|
+
errors = vErrors.length;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
if (data.mdQuote !== void 0) {
|
|
1446
|
+
if (!validate22(data.mdQuote, {
|
|
1447
|
+
instancePath: instancePath + "/mdQuote",
|
|
1448
|
+
parentData: data,
|
|
1449
|
+
parentDataProperty: "mdQuote",
|
|
1450
|
+
rootData
|
|
1451
|
+
})) {
|
|
1452
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1453
|
+
errors = vErrors.length;
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
if (data.mdStrikethrough !== void 0) {
|
|
1457
|
+
if (!validate22(data.mdStrikethrough, {
|
|
1458
|
+
instancePath: instancePath + "/mdStrikethrough",
|
|
1459
|
+
parentData: data,
|
|
1460
|
+
parentDataProperty: "mdStrikethrough",
|
|
1461
|
+
rootData
|
|
1462
|
+
})) {
|
|
1463
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1464
|
+
errors = vErrors.length;
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
if (data.mdTable !== void 0) {
|
|
1468
|
+
if (!validate22(data.mdTable, {
|
|
1469
|
+
instancePath: instancePath + "/mdTable",
|
|
1470
|
+
parentData: data,
|
|
1471
|
+
parentDataProperty: "mdTable",
|
|
1472
|
+
rootData
|
|
1473
|
+
})) {
|
|
1474
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1475
|
+
errors = vErrors.length;
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
if (data.mdTableHeader !== void 0) {
|
|
1479
|
+
if (!validate22(data.mdTableHeader, {
|
|
1480
|
+
instancePath: instancePath + "/mdTableHeader",
|
|
1481
|
+
parentData: data,
|
|
1482
|
+
parentDataProperty: "mdTableHeader",
|
|
1483
|
+
rootData
|
|
1484
|
+
})) {
|
|
1485
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1486
|
+
errors = vErrors.length;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
if (data.muted !== void 0) {
|
|
1490
|
+
if (!validate22(data.muted, {
|
|
1491
|
+
instancePath: instancePath + "/muted",
|
|
1492
|
+
parentData: data,
|
|
1493
|
+
parentDataProperty: "muted",
|
|
1494
|
+
rootData
|
|
1495
|
+
})) {
|
|
1496
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1497
|
+
errors = vErrors.length;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
if (data.name !== void 0) {
|
|
1501
|
+
if (typeof data.name !== "string") {
|
|
1502
|
+
const err23 = {
|
|
1503
|
+
instancePath: instancePath + "/name",
|
|
1504
|
+
schemaPath: "#/properties/name/type",
|
|
1505
|
+
keyword: "type",
|
|
1506
|
+
params: { type: "string" },
|
|
1507
|
+
message: "must be string"
|
|
1508
|
+
};
|
|
1509
|
+
if (vErrors === null) vErrors = [err23];
|
|
1510
|
+
else vErrors.push(err23);
|
|
1511
|
+
errors++;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
if (data.optionActive !== void 0) {
|
|
1515
|
+
if (!validate22(data.optionActive, {
|
|
1516
|
+
instancePath: instancePath + "/optionActive",
|
|
1517
|
+
parentData: data,
|
|
1518
|
+
parentDataProperty: "optionActive",
|
|
1519
|
+
rootData
|
|
1520
|
+
})) {
|
|
1521
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1522
|
+
errors = vErrors.length;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
if (data.optionDesc !== void 0) {
|
|
1526
|
+
if (!validate22(data.optionDesc, {
|
|
1527
|
+
instancePath: instancePath + "/optionDesc",
|
|
1528
|
+
parentData: data,
|
|
1529
|
+
parentDataProperty: "optionDesc",
|
|
1530
|
+
rootData
|
|
1531
|
+
})) {
|
|
1532
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1533
|
+
errors = vErrors.length;
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
if (data.optionName !== void 0) {
|
|
1537
|
+
if (!validate22(data.optionName, {
|
|
1538
|
+
instancePath: instancePath + "/optionName",
|
|
1539
|
+
parentData: data,
|
|
1540
|
+
parentDataProperty: "optionName",
|
|
1541
|
+
rootData
|
|
1542
|
+
})) {
|
|
1543
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1544
|
+
errors = vErrors.length;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
if (data.overlay !== void 0) {
|
|
1548
|
+
if (!validate22(data.overlay, {
|
|
1549
|
+
instancePath: instancePath + "/overlay",
|
|
1550
|
+
parentData: data,
|
|
1551
|
+
parentDataProperty: "overlay",
|
|
1552
|
+
rootData
|
|
1553
|
+
})) {
|
|
1554
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1555
|
+
errors = vErrors.length;
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
if (data.primary !== void 0) {
|
|
1559
|
+
if (!validate24(data.primary, {
|
|
1560
|
+
instancePath: instancePath + "/primary",
|
|
1561
|
+
parentData: data,
|
|
1562
|
+
parentDataProperty: "primary",
|
|
1563
|
+
rootData
|
|
1564
|
+
})) {
|
|
1565
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
1566
|
+
errors = vErrors.length;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
if (data.prompt !== void 0) {
|
|
1570
|
+
if (!validate22(data.prompt, {
|
|
1571
|
+
instancePath: instancePath + "/prompt",
|
|
1572
|
+
parentData: data,
|
|
1573
|
+
parentDataProperty: "prompt",
|
|
1574
|
+
rootData
|
|
1575
|
+
})) {
|
|
1576
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1577
|
+
errors = vErrors.length;
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
if (data.quiet !== void 0) {
|
|
1581
|
+
if (!validate22(data.quiet, {
|
|
1582
|
+
instancePath: instancePath + "/quiet",
|
|
1583
|
+
parentData: data,
|
|
1584
|
+
parentDataProperty: "quiet",
|
|
1585
|
+
rootData
|
|
1586
|
+
})) {
|
|
1587
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1588
|
+
errors = vErrors.length;
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
if (data.selection !== void 0) {
|
|
1592
|
+
if (!validate22(data.selection, {
|
|
1593
|
+
instancePath: instancePath + "/selection",
|
|
1594
|
+
parentData: data,
|
|
1595
|
+
parentDataProperty: "selection",
|
|
1596
|
+
rootData
|
|
1597
|
+
})) {
|
|
1598
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1599
|
+
errors = vErrors.length;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
if (data.shiki !== void 0) {
|
|
1603
|
+
if (!validate82(data.shiki, {
|
|
1604
|
+
instancePath: instancePath + "/shiki",
|
|
1605
|
+
parentData: data,
|
|
1606
|
+
parentDataProperty: "shiki",
|
|
1607
|
+
rootData
|
|
1608
|
+
})) {
|
|
1609
|
+
vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors);
|
|
1610
|
+
errors = vErrors.length;
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
if (data.success !== void 0) {
|
|
1614
|
+
if (!validate24(data.success, {
|
|
1615
|
+
instancePath: instancePath + "/success",
|
|
1616
|
+
parentData: data,
|
|
1617
|
+
parentDataProperty: "success",
|
|
1618
|
+
rootData
|
|
1619
|
+
})) {
|
|
1620
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
1621
|
+
errors = vErrors.length;
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
if (data.syntaxBoolean !== void 0) {
|
|
1625
|
+
if (!validate22(data.syntaxBoolean, {
|
|
1626
|
+
instancePath: instancePath + "/syntaxBoolean",
|
|
1627
|
+
parentData: data,
|
|
1628
|
+
parentDataProperty: "syntaxBoolean",
|
|
1629
|
+
rootData
|
|
1630
|
+
})) {
|
|
1631
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1632
|
+
errors = vErrors.length;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
if (data.syntaxBracket !== void 0) {
|
|
1636
|
+
if (!validate22(data.syntaxBracket, {
|
|
1637
|
+
instancePath: instancePath + "/syntaxBracket",
|
|
1638
|
+
parentData: data,
|
|
1639
|
+
parentDataProperty: "syntaxBracket",
|
|
1640
|
+
rootData
|
|
1641
|
+
})) {
|
|
1642
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1643
|
+
errors = vErrors.length;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
if (data.syntaxConstant !== void 0) {
|
|
1647
|
+
if (!validate22(data.syntaxConstant, {
|
|
1648
|
+
instancePath: instancePath + "/syntaxConstant",
|
|
1649
|
+
parentData: data,
|
|
1650
|
+
parentDataProperty: "syntaxConstant",
|
|
1651
|
+
rootData
|
|
1652
|
+
})) {
|
|
1653
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1654
|
+
errors = vErrors.length;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
if (data.syntaxDelimiter !== void 0) {
|
|
1658
|
+
if (!validate22(data.syntaxDelimiter, {
|
|
1659
|
+
instancePath: instancePath + "/syntaxDelimiter",
|
|
1660
|
+
parentData: data,
|
|
1661
|
+
parentDataProperty: "syntaxDelimiter",
|
|
1662
|
+
rootData
|
|
1663
|
+
})) {
|
|
1664
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1665
|
+
errors = vErrors.length;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
if (data.syntaxField !== void 0) {
|
|
1669
|
+
if (!validate22(data.syntaxField, {
|
|
1670
|
+
instancePath: instancePath + "/syntaxField",
|
|
1671
|
+
parentData: data,
|
|
1672
|
+
parentDataProperty: "syntaxField",
|
|
1673
|
+
rootData
|
|
1674
|
+
})) {
|
|
1675
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1676
|
+
errors = vErrors.length;
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
if (data.syntaxFunction !== void 0) {
|
|
1680
|
+
if (!validate22(data.syntaxFunction, {
|
|
1681
|
+
instancePath: instancePath + "/syntaxFunction",
|
|
1682
|
+
parentData: data,
|
|
1683
|
+
parentDataProperty: "syntaxFunction",
|
|
1684
|
+
rootData
|
|
1685
|
+
})) {
|
|
1686
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1687
|
+
errors = vErrors.length;
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
if (data.syntaxNumber !== void 0) {
|
|
1691
|
+
if (!validate22(data.syntaxNumber, {
|
|
1692
|
+
instancePath: instancePath + "/syntaxNumber",
|
|
1693
|
+
parentData: data,
|
|
1694
|
+
parentDataProperty: "syntaxNumber",
|
|
1695
|
+
rootData
|
|
1696
|
+
})) {
|
|
1697
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1698
|
+
errors = vErrors.length;
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
if (data.syntaxSpecial !== void 0) {
|
|
1702
|
+
if (!validate22(data.syntaxSpecial, {
|
|
1703
|
+
instancePath: instancePath + "/syntaxSpecial",
|
|
1704
|
+
parentData: data,
|
|
1705
|
+
parentDataProperty: "syntaxSpecial",
|
|
1706
|
+
rootData
|
|
1707
|
+
})) {
|
|
1708
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1709
|
+
errors = vErrors.length;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
if (data.syntaxString !== void 0) {
|
|
1713
|
+
if (!validate22(data.syntaxString, {
|
|
1714
|
+
instancePath: instancePath + "/syntaxString",
|
|
1715
|
+
parentData: data,
|
|
1716
|
+
parentDataProperty: "syntaxString",
|
|
1717
|
+
rootData
|
|
1718
|
+
})) {
|
|
1719
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1720
|
+
errors = vErrors.length;
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
if (data.title !== void 0) {
|
|
1724
|
+
if (!validate22(data.title, {
|
|
1725
|
+
instancePath: instancePath + "/title",
|
|
1726
|
+
parentData: data,
|
|
1727
|
+
parentDataProperty: "title",
|
|
1728
|
+
rootData
|
|
1729
|
+
})) {
|
|
1730
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1731
|
+
errors = vErrors.length;
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
if (data.ui !== void 0) {
|
|
1735
|
+
if (!validate22(data.ui, {
|
|
1736
|
+
instancePath: instancePath + "/ui",
|
|
1737
|
+
parentData: data,
|
|
1738
|
+
parentDataProperty: "ui",
|
|
1739
|
+
rootData
|
|
1740
|
+
})) {
|
|
1741
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1742
|
+
errors = vErrors.length;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
if (data.warn !== void 0) {
|
|
1746
|
+
if (!validate24(data.warn, {
|
|
1747
|
+
instancePath: instancePath + "/warn",
|
|
1748
|
+
parentData: data,
|
|
1749
|
+
parentDataProperty: "warn",
|
|
1750
|
+
rootData
|
|
1751
|
+
})) {
|
|
1752
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
1753
|
+
errors = vErrors.length;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
} else {
|
|
1757
|
+
const err24 = {
|
|
1758
|
+
instancePath,
|
|
1759
|
+
schemaPath: "#/type",
|
|
1760
|
+
keyword: "type",
|
|
1761
|
+
params: { type: "object" },
|
|
1762
|
+
message: "must be object"
|
|
1763
|
+
};
|
|
1764
|
+
if (vErrors === null) vErrors = [err24];
|
|
1765
|
+
else vErrors.push(err24);
|
|
1766
|
+
errors++;
|
|
1767
|
+
}
|
|
1768
|
+
validate21.errors = vErrors;
|
|
1769
|
+
return errors === 0;
|
|
1770
|
+
}
|
|
1771
|
+
return module.exports.default;
|
|
1772
|
+
})();
|
|
1773
|
+
function check(input) {
|
|
1774
|
+
return validator(input);
|
|
1775
|
+
}
|
|
1776
|
+
function validate(input) {
|
|
1777
|
+
if (check(input)) return input;
|
|
1778
|
+
const errors = (validator.errors ?? []).map((error) => {
|
|
1779
|
+
let path = error.instancePath;
|
|
1780
|
+
if (error.keyword === "required") path += "/" + String(error.params.missingProperty);
|
|
1781
|
+
if (error.keyword === "additionalProperties") path += "/" + String(error.params.additionalProperty);
|
|
1782
|
+
return (path === "" ? "/" : path) + ": " + (error.message ?? error.keyword);
|
|
1783
|
+
});
|
|
1784
|
+
throw new Error("Invalid theme:\n" + errors.join("\n"));
|
|
1785
|
+
}
|
|
1786
|
+
//#endregion
|
|
1787
|
+
//#region src/schemas/theme.ts
|
|
1788
|
+
function validateTheme(input) {
|
|
1789
|
+
return validate(input);
|
|
1790
|
+
}
|
|
1791
|
+
//#endregion
|
|
1792
|
+
export { validateTheme };
|
|
1793
|
+
|
|
1794
|
+
//# sourceMappingURL=theme-DVX8dvGG.mjs.map
|