@keymanapp/common-types 18.0.41-alpha → 18.0.46-alpha
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/build/src/consts/virtual-key-constants.d.ts +191 -191
- package/build/src/consts/virtual-key-constants.js +221 -221
- package/build/src/consts/virtual-key-constants.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts +5 -5
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js +72 -72
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts +28 -28
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js +120 -120
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts +95 -95
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.js +52 -52
- package/build/src/kmx/element-string.d.ts +23 -23
- package/build/src/kmx/element-string.js +125 -125
- package/build/src/kmx/element-string.js.map +1 -1
- package/build/src/kmx/keyman-targets.d.ts +20 -20
- package/build/src/kmx/keyman-targets.js +79 -79
- package/build/src/kmx/keyman-targets.js.map +1 -1
- package/build/src/kmx/kmx-builder.d.ts +32 -32
- package/build/src/kmx/kmx-builder.js +189 -189
- package/build/src/kmx/kmx-builder.js.map +1 -1
- package/build/src/kmx/kmx-file-reader.d.ts +13 -13
- package/build/src/kmx/kmx-file-reader.js +134 -134
- package/build/src/kmx/kmx-file-reader.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-disp.d.ts +18 -18
- package/build/src/kmx/kmx-plus-builder/build-disp.js +27 -27
- package/build/src/kmx/kmx-plus-builder/build-disp.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-elem.d.ts +28 -28
- package/build/src/kmx/kmx-plus-builder/build-elem.js +89 -89
- package/build/src/kmx/kmx-plus-builder/build-elem.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts +56 -56
- package/build/src/kmx/kmx-plus-builder/build-keys.js +107 -107
- package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts +53 -53
- package/build/src/kmx/kmx-plus-builder/build-layr.js +101 -101
- package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-list.d.ts +35 -35
- package/build/src/kmx/kmx-plus-builder/build-list.js +66 -66
- package/build/src/kmx/kmx-plus-builder/build-list.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-loca.d.ts +11 -11
- package/build/src/kmx/kmx-plus-builder/build-loca.js +21 -21
- package/build/src/kmx/kmx-plus-builder/build-loca.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts +16 -16
- package/build/src/kmx/kmx-plus-builder/build-meta.js +20 -20
- package/build/src/kmx/kmx-plus-builder/build-sect.d.ts +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-strs.d.ts +22 -22
- package/build/src/kmx/kmx-plus-builder/build-strs.js +46 -46
- package/build/src/kmx/kmx-plus-builder/build-strs.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-tran.d.ts +32 -32
- package/build/src/kmx/kmx-plus-builder/build-tran.js +69 -69
- package/build/src/kmx/kmx-plus-builder/build-tran.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-uset.d.ts +30 -30
- package/build/src/kmx/kmx-plus-builder/build-uset.js +60 -60
- package/build/src/kmx/kmx-plus-builder/build-uset.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-vars.d.ts +21 -21
- package/build/src/kmx/kmx-plus-builder/build-vars.js +48 -48
- package/build/src/kmx/kmx-plus-builder/build-vars.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/builder-section.d.ts +9 -9
- package/build/src/kmx/kmx-plus-builder/builder-section.js +2 -2
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +42 -42
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +137 -137
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
- package/build/src/kmx/kmx-plus.d.ts +322 -322
- package/build/src/kmx/kmx-plus.js +830 -830
- package/build/src/kmx/kmx-plus.js.map +1 -1
- package/build/src/kmx/kmx.d.ts +233 -233
- package/build/src/kmx/kmx.js +302 -302
- package/build/src/kmx/kmx.js.map +1 -1
- package/build/src/kmx/string-list.d.ts +35 -35
- package/build/src/kmx/string-list.js +88 -88
- package/build/src/kmx/string-list.js.map +1 -1
- package/build/src/kpj/keyman-developer-project.d.ts +78 -78
- package/build/src/kpj/keyman-developer-project.js +195 -195
- package/build/src/kpj/keyman-developer-project.js.map +1 -1
- package/build/src/kpj/kpj-file-reader.d.ts +18 -18
- package/build/src/kpj/kpj-file-reader.js +119 -119
- package/build/src/kpj/kpj-file-reader.js.map +1 -1
- package/build/src/kpj/kpj-file.d.ts +39 -39
- package/build/src/kpj/kpj-file.js +10 -10
- package/build/src/kvk/kvk-file-reader.d.ts +4 -4
- package/build/src/kvk/kvk-file-reader.js +37 -37
- package/build/src/kvk/kvk-file-reader.js.map +1 -1
- package/build/src/kvk/kvk-file-writer.d.ts +19 -19
- package/build/src/kvk/kvk-file-writer.js +77 -77
- package/build/src/kvk/kvk-file-writer.js.map +1 -1
- package/build/src/kvk/kvk-file.d.ts +66 -66
- package/build/src/kvk/kvk-file.d.ts.map +1 -1
- package/build/src/kvk/kvk-file.js +90 -90
- package/build/src/kvk/kvk-file.js.map +1 -1
- package/build/src/kvk/kvks-file-reader.d.ts +23 -23
- package/build/src/kvk/kvks-file-reader.js +175 -175
- package/build/src/kvk/kvks-file-reader.js.map +1 -1
- package/build/src/kvk/kvks-file-writer.d.ts +6 -6
- package/build/src/kvk/kvks-file-writer.js +106 -106
- package/build/src/kvk/kvks-file-writer.js.map +1 -1
- package/build/src/kvk/kvks-file.d.ts +43 -43
- package/build/src/kvk/kvks-file.js +9 -9
- package/build/src/kvk/visual-keyboard.d.ts +44 -44
- package/build/src/kvk/visual-keyboard.js +75 -75
- package/build/src/kvk/visual-keyboard.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts +60 -60
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js +19 -19
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +95 -95
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +409 -409
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +170 -170
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js +55 -55
- package/build/src/ldml-keyboard/pattern-parser.d.ts +201 -201
- package/build/src/ldml-keyboard/pattern-parser.js +490 -490
- package/build/src/ldml-keyboard/pattern-parser.js.map +1 -1
- package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts +37 -37
- package/build/src/ldml-keyboard/unicodeset-parser-api.js +27 -27
- package/build/src/main.d.ts +33 -33
- package/build/src/main.js +32 -32
- package/build/src/package/kmp-json-file.d.ts +115 -115
- package/build/src/package/kmp-json-file.js +1 -1
- package/build/src/package/kps-file.d.ts +175 -175
- package/build/src/package/kps-file.js +15 -15
- package/build/src/schema-validators.d.ts +13 -13
- package/build/src/schema-validators.js +25 -25
- package/build/src/schemas/displaymap.schema.d.ts +57 -57
- package/build/src/schemas/displaymap.schema.js +35 -35
- package/build/src/schemas/displaymap.schema.validator.d.mts +2 -2
- package/build/src/schemas/displaymap.schema.validator.mjs +266 -266
- package/build/src/schemas/displaymap.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyboard_info.schema.d.ts +209 -209
- package/build/src/schemas/keyboard_info.schema.js +98 -98
- package/build/src/schemas/keyboard_info.schema.validator.d.mts +2 -2
- package/build/src/schemas/keyboard_info.schema.validator.mjs +1160 -1160
- package/build/src/schemas/keyboard_info.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts +227 -227
- package/build/src/schemas/keyman-touch-layout.clean.spec.js +151 -151
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs +1094 -1094
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.spec.d.ts +229 -229
- package/build/src/schemas/keyman-touch-layout.spec.js +140 -140
- package/build/src/schemas/keyman-touch-layout.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs +1436 -1436
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs.map +1 -1
- package/build/src/schemas/kmp.schema.d.ts +324 -324
- package/build/src/schemas/kmp.schema.js +353 -353
- package/build/src/schemas/kmp.schema.validator.d.mts +2 -2
- package/build/src/schemas/kmp.schema.validator.mjs +1627 -1627
- package/build/src/schemas/kmp.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj-9.0.schema.d.ts +152 -152
- package/build/src/schemas/kpj-9.0.schema.js +131 -131
- package/build/src/schemas/kpj-9.0.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj-9.0.schema.validator.mjs +655 -655
- package/build/src/schemas/kpj-9.0.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj.schema.d.ts +122 -122
- package/build/src/schemas/kpj.schema.js +129 -129
- package/build/src/schemas/kpj.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj.schema.validator.mjs +515 -515
- package/build/src/schemas/kpj.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kvks.schema.d.ts +160 -160
- package/build/src/schemas/kvks.schema.js +182 -182
- package/build/src/schemas/kvks.schema.validator.d.mts +2 -2
- package/build/src/schemas/kvks.schema.validator.mjs +625 -625
- package/build/src/schemas/kvks.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.d.ts +635 -635
- package/build/src/schemas/ldml-keyboard3.schema.js +696 -696
- package/build/src/schemas/ldml-keyboard3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs +3117 -3117
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboardtest3.schema.d.ts +192 -192
- package/build/src/schemas/ldml-keyboardtest3.schema.js +225 -225
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs +744 -744
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs.map +1 -1
- package/build/src/schemas.d.ts +2300 -2300
- package/build/src/schemas.js +23 -23
- package/build/src/util/common-events.d.ts +44 -44
- package/build/src/util/common-events.js +26 -26
- package/build/src/util/compiler-interfaces.d.ts +371 -371
- package/build/src/util/compiler-interfaces.d.ts.map +1 -1
- package/build/src/util/compiler-interfaces.js +380 -380
- package/build/src/util/compiler-interfaces.js.map +1 -1
- package/build/src/util/errors.d.ts +5 -5
- package/build/src/util/errors.js +5 -5
- package/build/src/util/file-types.d.ts +93 -93
- package/build/src/util/file-types.d.ts.map +1 -1
- package/build/src/util/file-types.js +142 -142
- package/build/src/util/file-types.js.map +1 -1
- package/build/src/util/util.d.ts +98 -98
- package/build/src/util/util.js +368 -368
- package/build/src/util/util.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,627 +1,627 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
-
};
|
|
7
|
-
// obj/schemas/kvks.schema.validator.cjs
|
|
8
|
-
var require_kvks_schema_validator = __commonJS({
|
|
9
|
-
"obj/schemas/kvks.schema.validator.cjs"(exports, module) {
|
|
10
|
-
module.exports = validate20;
|
|
11
|
-
module.exports.default = validate20;
|
|
12
|
-
var schema24 = { "type": "string", "pattern": "(\\d+\\.)+(\\d+)", "enum": ["10.0"] };
|
|
13
|
-
var pattern0 = new RegExp("(\\d+\\.)+(\\d+)", "u");
|
|
14
|
-
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
15
|
-
let vErrors = null;
|
|
16
|
-
let errors = 0;
|
|
17
|
-
if (errors === 0) {
|
|
18
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19
|
-
const _errs1 = errors;
|
|
20
|
-
for (const key0 in data) {
|
|
21
|
-
if (!(key0 === "key102" || key0 === "displayunderlying" || key0 === "usealtgr" || key0 === "useunderlying")) {
|
|
22
|
-
validate22.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
23
|
-
return false;
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (_errs1 === errors) {
|
|
28
|
-
if (data.key102 !== void 0) {
|
|
29
|
-
const _errs2 = errors;
|
|
30
|
-
if (typeof data.key102 !== "string") {
|
|
31
|
-
validate22.errors = [{ instancePath: instancePath + "/key102", schemaPath: "#/definitions/km-empty/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
var valid0 = _errs2 === errors;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
var valid0 = true;
|
|
38
|
-
}
|
|
39
|
-
if (valid0) {
|
|
40
|
-
if (data.displayunderlying !== void 0) {
|
|
41
|
-
const _errs5 = errors;
|
|
42
|
-
if (typeof data.displayunderlying !== "string") {
|
|
43
|
-
validate22.errors = [{ instancePath: instancePath + "/displayunderlying", schemaPath: "#/definitions/km-empty/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
var valid0 = _errs5 === errors;
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
var valid0 = true;
|
|
50
|
-
}
|
|
51
|
-
if (valid0) {
|
|
52
|
-
if (data.usealtgr !== void 0) {
|
|
53
|
-
const _errs8 = errors;
|
|
54
|
-
if (typeof data.usealtgr !== "string") {
|
|
55
|
-
validate22.errors = [{ instancePath: instancePath + "/usealtgr", schemaPath: "#/definitions/km-empty/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
var valid0 = _errs8 === errors;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
var valid0 = true;
|
|
62
|
-
}
|
|
63
|
-
if (valid0) {
|
|
64
|
-
if (data.useunderlying !== void 0) {
|
|
65
|
-
const _errs11 = errors;
|
|
66
|
-
if (typeof data.useunderlying !== "string") {
|
|
67
|
-
validate22.errors = [{ instancePath: instancePath + "/useunderlying", schemaPath: "#/definitions/km-empty/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
var valid0 = _errs11 === errors;
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
var valid0 = true;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
validate22.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
validate22.errors = vErrors;
|
|
86
|
-
return errors === 0;
|
|
87
|
-
}
|
|
88
|
-
function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
89
|
-
let vErrors = null;
|
|
90
|
-
let errors = 0;
|
|
91
|
-
if (errors === 0) {
|
|
92
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
93
|
-
let missing0;
|
|
94
|
-
if (data.version === void 0 && (missing0 = "version")) {
|
|
95
|
-
validate21.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
const _errs1 = errors;
|
|
100
|
-
for (const key0 in data) {
|
|
101
|
-
if (!(key0 === "version" || key0 === "kbdname" || key0 === "flags" || key0 === "layout")) {
|
|
102
|
-
validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
103
|
-
return false;
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
if (_errs1 === errors) {
|
|
108
|
-
if (data.version !== void 0) {
|
|
109
|
-
let data0 = data.version;
|
|
110
|
-
const _errs2 = errors;
|
|
111
|
-
const _errs3 = errors;
|
|
112
|
-
if (!(data0 === "10.0")) {
|
|
113
|
-
validate21.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/kvk-version/enum", keyword: "enum", params: { allowedValues: schema24.enum }, message: "must be equal to one of the allowed values" }];
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
|
-
if (errors === _errs3) {
|
|
117
|
-
if (typeof data0 === "string") {
|
|
118
|
-
if (!pattern0.test(data0)) {
|
|
119
|
-
validate21.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/kvk-version/pattern", keyword: "pattern", params: { pattern: "(\\d+\\.)+(\\d+)" }, message: 'must match pattern "(\\d+\\.)+(\\d+)"' }];
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
validate21.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/kvk-version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
125
|
-
return false;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
var valid0 = _errs2 === errors;
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
var valid0 = true;
|
|
132
|
-
}
|
|
133
|
-
if (valid0) {
|
|
134
|
-
if (data.kbdname !== void 0) {
|
|
135
|
-
const _errs5 = errors;
|
|
136
|
-
if (typeof data.kbdname !== "string") {
|
|
137
|
-
validate21.errors = [{ instancePath: instancePath + "/kbdname", schemaPath: "#/properties/kbdname/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
var valid0 = _errs5 === errors;
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
var valid0 = true;
|
|
144
|
-
}
|
|
145
|
-
if (valid0) {
|
|
146
|
-
if (data.flags !== void 0) {
|
|
147
|
-
const _errs7 = errors;
|
|
148
|
-
if (!validate22(data.flags, { instancePath: instancePath + "/flags", parentData: data, parentDataProperty: "flags", rootData })) {
|
|
149
|
-
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
150
|
-
errors = vErrors.length;
|
|
151
|
-
}
|
|
152
|
-
var valid0 = _errs7 === errors;
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
var valid0 = true;
|
|
156
|
-
}
|
|
157
|
-
if (valid0) {
|
|
158
|
-
if (data.layout !== void 0) {
|
|
159
|
-
const _errs8 = errors;
|
|
160
|
-
if (typeof data.layout !== "string") {
|
|
161
|
-
validate21.errors = [{ instancePath: instancePath + "/layout", schemaPath: "#/properties/layout/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
var valid0 = _errs8 === errors;
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
var valid0 = true;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
177
|
-
return false;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
validate21.errors = vErrors;
|
|
181
|
-
return errors === 0;
|
|
182
|
-
}
|
|
183
|
-
var schema34 = { "type": "string", "enum": ["ansi", "unicode"] };
|
|
184
|
-
var pattern1 = new RegExp("S?(C|LC|RC)?(A|LA|RA)?", "u");
|
|
185
|
-
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
186
|
-
let vErrors = null;
|
|
187
|
-
let errors = 0;
|
|
188
|
-
if (errors === 0) {
|
|
189
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
190
|
-
let missing0;
|
|
191
|
-
if (data.$ === void 0 && (missing0 = "$")) {
|
|
192
|
-
validate26.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
193
|
-
return false;
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
const _errs1 = errors;
|
|
197
|
-
for (const key0 in data) {
|
|
198
|
-
if (!(key0 === "key" || key0 === "$")) {
|
|
199
|
-
validate26.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
200
|
-
return false;
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
if (_errs1 === errors) {
|
|
205
|
-
if (data.key !== void 0) {
|
|
206
|
-
let data0 = data.key;
|
|
207
|
-
const _errs2 = errors;
|
|
208
|
-
if (errors === _errs2) {
|
|
209
|
-
if (Array.isArray(data0)) {
|
|
210
|
-
var valid1 = true;
|
|
211
|
-
const len0 = data0.length;
|
|
212
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
213
|
-
let data1 = data0[i0];
|
|
214
|
-
const _errs4 = errors;
|
|
215
|
-
const _errs5 = errors;
|
|
216
|
-
if (errors === _errs5) {
|
|
217
|
-
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
218
|
-
let missing1;
|
|
219
|
-
if (data1.$ === void 0 && (missing1 = "$")) {
|
|
220
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0, schemaPath: "#/definitions/kvk-key/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
221
|
-
return false;
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
const _errs7 = errors;
|
|
225
|
-
for (const key1 in data1) {
|
|
226
|
-
if (!(key1 === "bitmap" || key1 === "$" || key1 === "_")) {
|
|
227
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0, schemaPath: "#/definitions/kvk-key/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
228
|
-
return false;
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
if (_errs7 === errors) {
|
|
233
|
-
if (data1.bitmap !== void 0) {
|
|
234
|
-
const _errs8 = errors;
|
|
235
|
-
if (typeof data1.bitmap !== "string") {
|
|
236
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/bitmap", schemaPath: "#/definitions/kvk-key/properties/bitmap/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
237
|
-
return false;
|
|
238
|
-
}
|
|
239
|
-
var valid3 = _errs8 === errors;
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
var valid3 = true;
|
|
243
|
-
}
|
|
244
|
-
if (valid3) {
|
|
245
|
-
if (data1.$ !== void 0) {
|
|
246
|
-
let data3 = data1.$;
|
|
247
|
-
const _errs10 = errors;
|
|
248
|
-
if (errors === _errs10) {
|
|
249
|
-
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
250
|
-
let missing2;
|
|
251
|
-
if (data3.vkey === void 0 && (missing2 = "vkey")) {
|
|
252
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/$", schemaPath: "#/definitions/kvk-key/properties/%24/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
253
|
-
return false;
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
const _errs12 = errors;
|
|
257
|
-
for (const key2 in data3) {
|
|
258
|
-
if (!(key2 === "vkey")) {
|
|
259
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/$", schemaPath: "#/definitions/kvk-key/properties/%24/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
260
|
-
return false;
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
if (_errs12 === errors) {
|
|
265
|
-
if (data3.vkey !== void 0) {
|
|
266
|
-
if (typeof data3.vkey !== "string") {
|
|
267
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/$/vkey", schemaPath: "#/definitions/kvk-key/properties/%24/properties/vkey/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
268
|
-
return false;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/$", schemaPath: "#/definitions/kvk-key/properties/%24/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
276
|
-
return false;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
var valid3 = _errs10 === errors;
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
var valid3 = true;
|
|
283
|
-
}
|
|
284
|
-
if (valid3) {
|
|
285
|
-
if (data1._ !== void 0) {
|
|
286
|
-
const _errs15 = errors;
|
|
287
|
-
if (typeof data1._ !== "string") {
|
|
288
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/_", schemaPath: "#/definitions/kvk-key/properties/_/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
289
|
-
return false;
|
|
290
|
-
}
|
|
291
|
-
var valid3 = _errs15 === errors;
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
var valid3 = true;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
validate26.errors = [{ instancePath: instancePath + "/key/" + i0, schemaPath: "#/definitions/kvk-key/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
303
|
-
return false;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
var valid1 = _errs4 === errors;
|
|
307
|
-
if (!valid1) {
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
validate26.errors = [{ instancePath: instancePath + "/key", schemaPath: "#/properties/key/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
314
|
-
return false;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
var valid0 = _errs2 === errors;
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
var valid0 = true;
|
|
321
|
-
}
|
|
322
|
-
if (valid0) {
|
|
323
|
-
if (data.$ !== void 0) {
|
|
324
|
-
let data6 = data.$;
|
|
325
|
-
const _errs17 = errors;
|
|
326
|
-
if (errors === _errs17) {
|
|
327
|
-
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
328
|
-
let missing3;
|
|
329
|
-
if (data6.shift === void 0 && (missing3 = "shift")) {
|
|
330
|
-
validate26.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
331
|
-
return false;
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
const _errs19 = errors;
|
|
335
|
-
for (const key3 in data6) {
|
|
336
|
-
if (!(key3 === "shift")) {
|
|
337
|
-
validate26.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
338
|
-
return false;
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
if (_errs19 === errors) {
|
|
343
|
-
if (data6.shift !== void 0) {
|
|
344
|
-
let data7 = data6.shift;
|
|
345
|
-
const _errs21 = errors;
|
|
346
|
-
if (errors === _errs21) {
|
|
347
|
-
if (typeof data7 === "string") {
|
|
348
|
-
if (!pattern1.test(data7)) {
|
|
349
|
-
validate26.errors = [{ instancePath: instancePath + "/$/shift", schemaPath: "#/definitions/kvk-layer-shift/pattern", keyword: "pattern", params: { pattern: "S?(C|LC|RC)?(A|LA|RA)?" }, message: 'must match pattern "S?(C|LC|RC)?(A|LA|RA)?"' }];
|
|
350
|
-
return false;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
validate26.errors = [{ instancePath: instancePath + "/$/shift", schemaPath: "#/definitions/kvk-layer-shift/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
355
|
-
return false;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
validate26.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
364
|
-
return false;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
var valid0 = _errs17 === errors;
|
|
368
|
-
}
|
|
369
|
-
else {
|
|
370
|
-
var valid0 = true;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
else {
|
|
377
|
-
validate26.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
378
|
-
return false;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
validate26.errors = vErrors;
|
|
382
|
-
return errors === 0;
|
|
383
|
-
}
|
|
384
|
-
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
385
|
-
let vErrors = null;
|
|
386
|
-
let errors = 0;
|
|
387
|
-
if (errors === 0) {
|
|
388
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
389
|
-
let missing0;
|
|
390
|
-
if (data.$ === void 0 && (missing0 = "$")) {
|
|
391
|
-
validate25.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
392
|
-
return false;
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
const _errs1 = errors;
|
|
396
|
-
for (const key0 in data) {
|
|
397
|
-
if (!(key0 === "layer" || key0 === "$")) {
|
|
398
|
-
validate25.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
399
|
-
return false;
|
|
400
|
-
break;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
if (_errs1 === errors) {
|
|
404
|
-
if (data.layer !== void 0) {
|
|
405
|
-
let data0 = data.layer;
|
|
406
|
-
const _errs2 = errors;
|
|
407
|
-
if (errors === _errs2) {
|
|
408
|
-
if (Array.isArray(data0)) {
|
|
409
|
-
var valid1 = true;
|
|
410
|
-
const len0 = data0.length;
|
|
411
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
412
|
-
const _errs4 = errors;
|
|
413
|
-
if (!validate26(data0[i0], { instancePath: instancePath + "/layer/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
414
|
-
vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);
|
|
415
|
-
errors = vErrors.length;
|
|
416
|
-
}
|
|
417
|
-
var valid1 = _errs4 === errors;
|
|
418
|
-
if (!valid1) {
|
|
419
|
-
break;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
validate25.errors = [{ instancePath: instancePath + "/layer", schemaPath: "#/properties/layer/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
425
|
-
return false;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
var valid0 = _errs2 === errors;
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
var valid0 = true;
|
|
432
|
-
}
|
|
433
|
-
if (valid0) {
|
|
434
|
-
if (data.$ !== void 0) {
|
|
435
|
-
let data2 = data.$;
|
|
436
|
-
const _errs5 = errors;
|
|
437
|
-
if (errors === _errs5) {
|
|
438
|
-
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
439
|
-
let missing1;
|
|
440
|
-
if (data2.name === void 0 && (missing1 = "name")) {
|
|
441
|
-
validate25.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
442
|
-
return false;
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
const _errs7 = errors;
|
|
446
|
-
for (const key1 in data2) {
|
|
447
|
-
if (!(key1 === "name" || key1 === "fontname" || key1 === "fontsize")) {
|
|
448
|
-
validate25.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
449
|
-
return false;
|
|
450
|
-
break;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if (_errs7 === errors) {
|
|
454
|
-
if (data2.name !== void 0) {
|
|
455
|
-
let data3 = data2.name;
|
|
456
|
-
const _errs8 = errors;
|
|
457
|
-
if (typeof data3 !== "string") {
|
|
458
|
-
validate25.errors = [{ instancePath: instancePath + "/$/name", schemaPath: "#/definitions/kvk-encoding-name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
459
|
-
return false;
|
|
460
|
-
}
|
|
461
|
-
if (!(data3 === "ansi" || data3 === "unicode")) {
|
|
462
|
-
validate25.errors = [{ instancePath: instancePath + "/$/name", schemaPath: "#/definitions/kvk-encoding-name/enum", keyword: "enum", params: { allowedValues: schema34.enum }, message: "must be equal to one of the allowed values" }];
|
|
463
|
-
return false;
|
|
464
|
-
}
|
|
465
|
-
var valid2 = _errs8 === errors;
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
var valid2 = true;
|
|
469
|
-
}
|
|
470
|
-
if (valid2) {
|
|
471
|
-
if (data2.fontname !== void 0) {
|
|
472
|
-
const _errs11 = errors;
|
|
473
|
-
if (typeof data2.fontname !== "string") {
|
|
474
|
-
validate25.errors = [{ instancePath: instancePath + "/$/fontname", schemaPath: "#/properties/%24/properties/fontname/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
475
|
-
return false;
|
|
476
|
-
}
|
|
477
|
-
var valid2 = _errs11 === errors;
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
var valid2 = true;
|
|
481
|
-
}
|
|
482
|
-
if (valid2) {
|
|
483
|
-
if (data2.fontsize !== void 0) {
|
|
484
|
-
const _errs13 = errors;
|
|
485
|
-
if (typeof data2.fontsize !== "string") {
|
|
486
|
-
validate25.errors = [{ instancePath: instancePath + "/$/fontsize", schemaPath: "#/properties/%24/properties/fontsize/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
487
|
-
return false;
|
|
488
|
-
}
|
|
489
|
-
var valid2 = _errs13 === errors;
|
|
490
|
-
}
|
|
491
|
-
else {
|
|
492
|
-
var valid2 = true;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
validate25.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
501
|
-
return false;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
var valid0 = _errs5 === errors;
|
|
505
|
-
}
|
|
506
|
-
else {
|
|
507
|
-
var valid0 = true;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
validate25.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
515
|
-
return false;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
validate25.errors = vErrors;
|
|
519
|
-
return errors === 0;
|
|
520
|
-
}
|
|
521
|
-
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
522
|
-
let vErrors = null;
|
|
523
|
-
let errors = 0;
|
|
524
|
-
if (errors === 0) {
|
|
525
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
526
|
-
let missing0;
|
|
527
|
-
if (data.visualkeyboard === void 0 && (missing0 = "visualkeyboard")) {
|
|
528
|
-
validate20.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
529
|
-
return false;
|
|
530
|
-
}
|
|
531
|
-
else {
|
|
532
|
-
const _errs1 = errors;
|
|
533
|
-
for (const key0 in data) {
|
|
534
|
-
if (!(key0 === "visualkeyboard")) {
|
|
535
|
-
validate20.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
536
|
-
return false;
|
|
537
|
-
break;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
if (_errs1 === errors) {
|
|
541
|
-
if (data.visualkeyboard !== void 0) {
|
|
542
|
-
let data0 = data.visualkeyboard;
|
|
543
|
-
const _errs2 = errors;
|
|
544
|
-
if (errors === _errs2) {
|
|
545
|
-
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
546
|
-
let missing1;
|
|
547
|
-
if (data0.header === void 0 && (missing1 = "header")) {
|
|
548
|
-
validate20.errors = [{ instancePath: instancePath + "/visualkeyboard", schemaPath: "#/properties/visualkeyboard/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
549
|
-
return false;
|
|
550
|
-
}
|
|
551
|
-
else {
|
|
552
|
-
const _errs4 = errors;
|
|
553
|
-
for (const key1 in data0) {
|
|
554
|
-
if (!(key1 === "header" || key1 === "encoding")) {
|
|
555
|
-
validate20.errors = [{ instancePath: instancePath + "/visualkeyboard", schemaPath: "#/properties/visualkeyboard/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
556
|
-
return false;
|
|
557
|
-
break;
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
if (_errs4 === errors) {
|
|
561
|
-
if (data0.header !== void 0) {
|
|
562
|
-
const _errs5 = errors;
|
|
563
|
-
if (!validate21(data0.header, { instancePath: instancePath + "/visualkeyboard/header", parentData: data0, parentDataProperty: "header", rootData })) {
|
|
564
|
-
vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
|
|
565
|
-
errors = vErrors.length;
|
|
566
|
-
}
|
|
567
|
-
var valid1 = _errs5 === errors;
|
|
568
|
-
}
|
|
569
|
-
else {
|
|
570
|
-
var valid1 = true;
|
|
571
|
-
}
|
|
572
|
-
if (valid1) {
|
|
573
|
-
if (data0.encoding !== void 0) {
|
|
574
|
-
let data2 = data0.encoding;
|
|
575
|
-
const _errs6 = errors;
|
|
576
|
-
if (errors === _errs6) {
|
|
577
|
-
if (Array.isArray(data2)) {
|
|
578
|
-
var valid2 = true;
|
|
579
|
-
const len0 = data2.length;
|
|
580
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
581
|
-
const _errs8 = errors;
|
|
582
|
-
if (!validate25(data2[i0], { instancePath: instancePath + "/visualkeyboard/encoding/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
|
|
583
|
-
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
584
|
-
errors = vErrors.length;
|
|
585
|
-
}
|
|
586
|
-
var valid2 = _errs8 === errors;
|
|
587
|
-
if (!valid2) {
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
else {
|
|
593
|
-
validate20.errors = [{ instancePath: instancePath + "/visualkeyboard/encoding", schemaPath: "#/properties/visualkeyboard/properties/encoding/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
594
|
-
return false;
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
var valid1 = _errs6 === errors;
|
|
598
|
-
}
|
|
599
|
-
else {
|
|
600
|
-
var valid1 = true;
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
else {
|
|
607
|
-
validate20.errors = [{ instancePath: instancePath + "/visualkeyboard", schemaPath: "#/properties/visualkeyboard/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
608
|
-
return false;
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
else {
|
|
616
|
-
validate20.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
617
|
-
return false;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
validate20.errors = vErrors;
|
|
621
|
-
return errors === 0;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
});
|
|
625
|
-
export default require_kvks_schema_validator();
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bc58d758-9353-5a5d-bb1e-6fe4aa08b826")}catch(e){}}();
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
+
};
|
|
7
|
+
// obj/schemas/kvks.schema.validator.cjs
|
|
8
|
+
var require_kvks_schema_validator = __commonJS({
|
|
9
|
+
"obj/schemas/kvks.schema.validator.cjs"(exports, module) {
|
|
10
|
+
module.exports = validate20;
|
|
11
|
+
module.exports.default = validate20;
|
|
12
|
+
var schema24 = { "type": "string", "pattern": "(\\d+\\.)+(\\d+)", "enum": ["10.0"] };
|
|
13
|
+
var pattern0 = new RegExp("(\\d+\\.)+(\\d+)", "u");
|
|
14
|
+
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
15
|
+
let vErrors = null;
|
|
16
|
+
let errors = 0;
|
|
17
|
+
if (errors === 0) {
|
|
18
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19
|
+
const _errs1 = errors;
|
|
20
|
+
for (const key0 in data) {
|
|
21
|
+
if (!(key0 === "key102" || key0 === "displayunderlying" || key0 === "usealtgr" || key0 === "useunderlying")) {
|
|
22
|
+
validate22.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
23
|
+
return false;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (_errs1 === errors) {
|
|
28
|
+
if (data.key102 !== void 0) {
|
|
29
|
+
const _errs2 = errors;
|
|
30
|
+
if (typeof data.key102 !== "string") {
|
|
31
|
+
validate22.errors = [{ instancePath: instancePath + "/key102", schemaPath: "#/definitions/km-empty/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
var valid0 = _errs2 === errors;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
var valid0 = true;
|
|
38
|
+
}
|
|
39
|
+
if (valid0) {
|
|
40
|
+
if (data.displayunderlying !== void 0) {
|
|
41
|
+
const _errs5 = errors;
|
|
42
|
+
if (typeof data.displayunderlying !== "string") {
|
|
43
|
+
validate22.errors = [{ instancePath: instancePath + "/displayunderlying", schemaPath: "#/definitions/km-empty/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
var valid0 = _errs5 === errors;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
var valid0 = true;
|
|
50
|
+
}
|
|
51
|
+
if (valid0) {
|
|
52
|
+
if (data.usealtgr !== void 0) {
|
|
53
|
+
const _errs8 = errors;
|
|
54
|
+
if (typeof data.usealtgr !== "string") {
|
|
55
|
+
validate22.errors = [{ instancePath: instancePath + "/usealtgr", schemaPath: "#/definitions/km-empty/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
var valid0 = _errs8 === errors;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
var valid0 = true;
|
|
62
|
+
}
|
|
63
|
+
if (valid0) {
|
|
64
|
+
if (data.useunderlying !== void 0) {
|
|
65
|
+
const _errs11 = errors;
|
|
66
|
+
if (typeof data.useunderlying !== "string") {
|
|
67
|
+
validate22.errors = [{ instancePath: instancePath + "/useunderlying", schemaPath: "#/definitions/km-empty/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
var valid0 = _errs11 === errors;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
var valid0 = true;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
validate22.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
validate22.errors = vErrors;
|
|
86
|
+
return errors === 0;
|
|
87
|
+
}
|
|
88
|
+
function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
89
|
+
let vErrors = null;
|
|
90
|
+
let errors = 0;
|
|
91
|
+
if (errors === 0) {
|
|
92
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
93
|
+
let missing0;
|
|
94
|
+
if (data.version === void 0 && (missing0 = "version")) {
|
|
95
|
+
validate21.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
const _errs1 = errors;
|
|
100
|
+
for (const key0 in data) {
|
|
101
|
+
if (!(key0 === "version" || key0 === "kbdname" || key0 === "flags" || key0 === "layout")) {
|
|
102
|
+
validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
103
|
+
return false;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (_errs1 === errors) {
|
|
108
|
+
if (data.version !== void 0) {
|
|
109
|
+
let data0 = data.version;
|
|
110
|
+
const _errs2 = errors;
|
|
111
|
+
const _errs3 = errors;
|
|
112
|
+
if (!(data0 === "10.0")) {
|
|
113
|
+
validate21.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/kvk-version/enum", keyword: "enum", params: { allowedValues: schema24.enum }, message: "must be equal to one of the allowed values" }];
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
if (errors === _errs3) {
|
|
117
|
+
if (typeof data0 === "string") {
|
|
118
|
+
if (!pattern0.test(data0)) {
|
|
119
|
+
validate21.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/kvk-version/pattern", keyword: "pattern", params: { pattern: "(\\d+\\.)+(\\d+)" }, message: 'must match pattern "(\\d+\\.)+(\\d+)"' }];
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
validate21.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/kvk-version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
var valid0 = _errs2 === errors;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
var valid0 = true;
|
|
132
|
+
}
|
|
133
|
+
if (valid0) {
|
|
134
|
+
if (data.kbdname !== void 0) {
|
|
135
|
+
const _errs5 = errors;
|
|
136
|
+
if (typeof data.kbdname !== "string") {
|
|
137
|
+
validate21.errors = [{ instancePath: instancePath + "/kbdname", schemaPath: "#/properties/kbdname/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
var valid0 = _errs5 === errors;
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
var valid0 = true;
|
|
144
|
+
}
|
|
145
|
+
if (valid0) {
|
|
146
|
+
if (data.flags !== void 0) {
|
|
147
|
+
const _errs7 = errors;
|
|
148
|
+
if (!validate22(data.flags, { instancePath: instancePath + "/flags", parentData: data, parentDataProperty: "flags", rootData })) {
|
|
149
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
150
|
+
errors = vErrors.length;
|
|
151
|
+
}
|
|
152
|
+
var valid0 = _errs7 === errors;
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
var valid0 = true;
|
|
156
|
+
}
|
|
157
|
+
if (valid0) {
|
|
158
|
+
if (data.layout !== void 0) {
|
|
159
|
+
const _errs8 = errors;
|
|
160
|
+
if (typeof data.layout !== "string") {
|
|
161
|
+
validate21.errors = [{ instancePath: instancePath + "/layout", schemaPath: "#/properties/layout/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
var valid0 = _errs8 === errors;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
var valid0 = true;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
validate21.errors = vErrors;
|
|
181
|
+
return errors === 0;
|
|
182
|
+
}
|
|
183
|
+
var schema34 = { "type": "string", "enum": ["ansi", "unicode"] };
|
|
184
|
+
var pattern1 = new RegExp("S?(C|LC|RC)?(A|LA|RA)?", "u");
|
|
185
|
+
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
186
|
+
let vErrors = null;
|
|
187
|
+
let errors = 0;
|
|
188
|
+
if (errors === 0) {
|
|
189
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
190
|
+
let missing0;
|
|
191
|
+
if (data.$ === void 0 && (missing0 = "$")) {
|
|
192
|
+
validate26.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
const _errs1 = errors;
|
|
197
|
+
for (const key0 in data) {
|
|
198
|
+
if (!(key0 === "key" || key0 === "$")) {
|
|
199
|
+
validate26.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
200
|
+
return false;
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (_errs1 === errors) {
|
|
205
|
+
if (data.key !== void 0) {
|
|
206
|
+
let data0 = data.key;
|
|
207
|
+
const _errs2 = errors;
|
|
208
|
+
if (errors === _errs2) {
|
|
209
|
+
if (Array.isArray(data0)) {
|
|
210
|
+
var valid1 = true;
|
|
211
|
+
const len0 = data0.length;
|
|
212
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
213
|
+
let data1 = data0[i0];
|
|
214
|
+
const _errs4 = errors;
|
|
215
|
+
const _errs5 = errors;
|
|
216
|
+
if (errors === _errs5) {
|
|
217
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
218
|
+
let missing1;
|
|
219
|
+
if (data1.$ === void 0 && (missing1 = "$")) {
|
|
220
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0, schemaPath: "#/definitions/kvk-key/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
const _errs7 = errors;
|
|
225
|
+
for (const key1 in data1) {
|
|
226
|
+
if (!(key1 === "bitmap" || key1 === "$" || key1 === "_")) {
|
|
227
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0, schemaPath: "#/definitions/kvk-key/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
228
|
+
return false;
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
if (_errs7 === errors) {
|
|
233
|
+
if (data1.bitmap !== void 0) {
|
|
234
|
+
const _errs8 = errors;
|
|
235
|
+
if (typeof data1.bitmap !== "string") {
|
|
236
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/bitmap", schemaPath: "#/definitions/kvk-key/properties/bitmap/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
var valid3 = _errs8 === errors;
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
var valid3 = true;
|
|
243
|
+
}
|
|
244
|
+
if (valid3) {
|
|
245
|
+
if (data1.$ !== void 0) {
|
|
246
|
+
let data3 = data1.$;
|
|
247
|
+
const _errs10 = errors;
|
|
248
|
+
if (errors === _errs10) {
|
|
249
|
+
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
250
|
+
let missing2;
|
|
251
|
+
if (data3.vkey === void 0 && (missing2 = "vkey")) {
|
|
252
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/$", schemaPath: "#/definitions/kvk-key/properties/%24/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
const _errs12 = errors;
|
|
257
|
+
for (const key2 in data3) {
|
|
258
|
+
if (!(key2 === "vkey")) {
|
|
259
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/$", schemaPath: "#/definitions/kvk-key/properties/%24/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
260
|
+
return false;
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (_errs12 === errors) {
|
|
265
|
+
if (data3.vkey !== void 0) {
|
|
266
|
+
if (typeof data3.vkey !== "string") {
|
|
267
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/$/vkey", schemaPath: "#/definitions/kvk-key/properties/%24/properties/vkey/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/$", schemaPath: "#/definitions/kvk-key/properties/%24/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
var valid3 = _errs10 === errors;
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
var valid3 = true;
|
|
283
|
+
}
|
|
284
|
+
if (valid3) {
|
|
285
|
+
if (data1._ !== void 0) {
|
|
286
|
+
const _errs15 = errors;
|
|
287
|
+
if (typeof data1._ !== "string") {
|
|
288
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0 + "/_", schemaPath: "#/definitions/kvk-key/properties/_/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
289
|
+
return false;
|
|
290
|
+
}
|
|
291
|
+
var valid3 = _errs15 === errors;
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
var valid3 = true;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
validate26.errors = [{ instancePath: instancePath + "/key/" + i0, schemaPath: "#/definitions/kvk-key/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
var valid1 = _errs4 === errors;
|
|
307
|
+
if (!valid1) {
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
validate26.errors = [{ instancePath: instancePath + "/key", schemaPath: "#/properties/key/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
314
|
+
return false;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
var valid0 = _errs2 === errors;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
var valid0 = true;
|
|
321
|
+
}
|
|
322
|
+
if (valid0) {
|
|
323
|
+
if (data.$ !== void 0) {
|
|
324
|
+
let data6 = data.$;
|
|
325
|
+
const _errs17 = errors;
|
|
326
|
+
if (errors === _errs17) {
|
|
327
|
+
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
328
|
+
let missing3;
|
|
329
|
+
if (data6.shift === void 0 && (missing3 = "shift")) {
|
|
330
|
+
validate26.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
331
|
+
return false;
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
const _errs19 = errors;
|
|
335
|
+
for (const key3 in data6) {
|
|
336
|
+
if (!(key3 === "shift")) {
|
|
337
|
+
validate26.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
338
|
+
return false;
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
if (_errs19 === errors) {
|
|
343
|
+
if (data6.shift !== void 0) {
|
|
344
|
+
let data7 = data6.shift;
|
|
345
|
+
const _errs21 = errors;
|
|
346
|
+
if (errors === _errs21) {
|
|
347
|
+
if (typeof data7 === "string") {
|
|
348
|
+
if (!pattern1.test(data7)) {
|
|
349
|
+
validate26.errors = [{ instancePath: instancePath + "/$/shift", schemaPath: "#/definitions/kvk-layer-shift/pattern", keyword: "pattern", params: { pattern: "S?(C|LC|RC)?(A|LA|RA)?" }, message: 'must match pattern "S?(C|LC|RC)?(A|LA|RA)?"' }];
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
validate26.errors = [{ instancePath: instancePath + "/$/shift", schemaPath: "#/definitions/kvk-layer-shift/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
validate26.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
364
|
+
return false;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
var valid0 = _errs17 === errors;
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
var valid0 = true;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
validate26.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
validate26.errors = vErrors;
|
|
382
|
+
return errors === 0;
|
|
383
|
+
}
|
|
384
|
+
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
385
|
+
let vErrors = null;
|
|
386
|
+
let errors = 0;
|
|
387
|
+
if (errors === 0) {
|
|
388
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
389
|
+
let missing0;
|
|
390
|
+
if (data.$ === void 0 && (missing0 = "$")) {
|
|
391
|
+
validate25.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
392
|
+
return false;
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
const _errs1 = errors;
|
|
396
|
+
for (const key0 in data) {
|
|
397
|
+
if (!(key0 === "layer" || key0 === "$")) {
|
|
398
|
+
validate25.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
399
|
+
return false;
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
if (_errs1 === errors) {
|
|
404
|
+
if (data.layer !== void 0) {
|
|
405
|
+
let data0 = data.layer;
|
|
406
|
+
const _errs2 = errors;
|
|
407
|
+
if (errors === _errs2) {
|
|
408
|
+
if (Array.isArray(data0)) {
|
|
409
|
+
var valid1 = true;
|
|
410
|
+
const len0 = data0.length;
|
|
411
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
412
|
+
const _errs4 = errors;
|
|
413
|
+
if (!validate26(data0[i0], { instancePath: instancePath + "/layer/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
414
|
+
vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);
|
|
415
|
+
errors = vErrors.length;
|
|
416
|
+
}
|
|
417
|
+
var valid1 = _errs4 === errors;
|
|
418
|
+
if (!valid1) {
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
validate25.errors = [{ instancePath: instancePath + "/layer", schemaPath: "#/properties/layer/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
425
|
+
return false;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
var valid0 = _errs2 === errors;
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
var valid0 = true;
|
|
432
|
+
}
|
|
433
|
+
if (valid0) {
|
|
434
|
+
if (data.$ !== void 0) {
|
|
435
|
+
let data2 = data.$;
|
|
436
|
+
const _errs5 = errors;
|
|
437
|
+
if (errors === _errs5) {
|
|
438
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
439
|
+
let missing1;
|
|
440
|
+
if (data2.name === void 0 && (missing1 = "name")) {
|
|
441
|
+
validate25.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
442
|
+
return false;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
const _errs7 = errors;
|
|
446
|
+
for (const key1 in data2) {
|
|
447
|
+
if (!(key1 === "name" || key1 === "fontname" || key1 === "fontsize")) {
|
|
448
|
+
validate25.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
449
|
+
return false;
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
if (_errs7 === errors) {
|
|
454
|
+
if (data2.name !== void 0) {
|
|
455
|
+
let data3 = data2.name;
|
|
456
|
+
const _errs8 = errors;
|
|
457
|
+
if (typeof data3 !== "string") {
|
|
458
|
+
validate25.errors = [{ instancePath: instancePath + "/$/name", schemaPath: "#/definitions/kvk-encoding-name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
459
|
+
return false;
|
|
460
|
+
}
|
|
461
|
+
if (!(data3 === "ansi" || data3 === "unicode")) {
|
|
462
|
+
validate25.errors = [{ instancePath: instancePath + "/$/name", schemaPath: "#/definitions/kvk-encoding-name/enum", keyword: "enum", params: { allowedValues: schema34.enum }, message: "must be equal to one of the allowed values" }];
|
|
463
|
+
return false;
|
|
464
|
+
}
|
|
465
|
+
var valid2 = _errs8 === errors;
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
var valid2 = true;
|
|
469
|
+
}
|
|
470
|
+
if (valid2) {
|
|
471
|
+
if (data2.fontname !== void 0) {
|
|
472
|
+
const _errs11 = errors;
|
|
473
|
+
if (typeof data2.fontname !== "string") {
|
|
474
|
+
validate25.errors = [{ instancePath: instancePath + "/$/fontname", schemaPath: "#/properties/%24/properties/fontname/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
475
|
+
return false;
|
|
476
|
+
}
|
|
477
|
+
var valid2 = _errs11 === errors;
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
var valid2 = true;
|
|
481
|
+
}
|
|
482
|
+
if (valid2) {
|
|
483
|
+
if (data2.fontsize !== void 0) {
|
|
484
|
+
const _errs13 = errors;
|
|
485
|
+
if (typeof data2.fontsize !== "string") {
|
|
486
|
+
validate25.errors = [{ instancePath: instancePath + "/$/fontsize", schemaPath: "#/properties/%24/properties/fontsize/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
487
|
+
return false;
|
|
488
|
+
}
|
|
489
|
+
var valid2 = _errs13 === errors;
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
var valid2 = true;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
validate25.errors = [{ instancePath: instancePath + "/$", schemaPath: "#/properties/%24/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
501
|
+
return false;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
var valid0 = _errs5 === errors;
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
var valid0 = true;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
validate25.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
515
|
+
return false;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
validate25.errors = vErrors;
|
|
519
|
+
return errors === 0;
|
|
520
|
+
}
|
|
521
|
+
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
522
|
+
let vErrors = null;
|
|
523
|
+
let errors = 0;
|
|
524
|
+
if (errors === 0) {
|
|
525
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
526
|
+
let missing0;
|
|
527
|
+
if (data.visualkeyboard === void 0 && (missing0 = "visualkeyboard")) {
|
|
528
|
+
validate20.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
529
|
+
return false;
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
const _errs1 = errors;
|
|
533
|
+
for (const key0 in data) {
|
|
534
|
+
if (!(key0 === "visualkeyboard")) {
|
|
535
|
+
validate20.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
536
|
+
return false;
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
if (_errs1 === errors) {
|
|
541
|
+
if (data.visualkeyboard !== void 0) {
|
|
542
|
+
let data0 = data.visualkeyboard;
|
|
543
|
+
const _errs2 = errors;
|
|
544
|
+
if (errors === _errs2) {
|
|
545
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
546
|
+
let missing1;
|
|
547
|
+
if (data0.header === void 0 && (missing1 = "header")) {
|
|
548
|
+
validate20.errors = [{ instancePath: instancePath + "/visualkeyboard", schemaPath: "#/properties/visualkeyboard/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
549
|
+
return false;
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
const _errs4 = errors;
|
|
553
|
+
for (const key1 in data0) {
|
|
554
|
+
if (!(key1 === "header" || key1 === "encoding")) {
|
|
555
|
+
validate20.errors = [{ instancePath: instancePath + "/visualkeyboard", schemaPath: "#/properties/visualkeyboard/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
556
|
+
return false;
|
|
557
|
+
break;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
if (_errs4 === errors) {
|
|
561
|
+
if (data0.header !== void 0) {
|
|
562
|
+
const _errs5 = errors;
|
|
563
|
+
if (!validate21(data0.header, { instancePath: instancePath + "/visualkeyboard/header", parentData: data0, parentDataProperty: "header", rootData })) {
|
|
564
|
+
vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
|
|
565
|
+
errors = vErrors.length;
|
|
566
|
+
}
|
|
567
|
+
var valid1 = _errs5 === errors;
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
var valid1 = true;
|
|
571
|
+
}
|
|
572
|
+
if (valid1) {
|
|
573
|
+
if (data0.encoding !== void 0) {
|
|
574
|
+
let data2 = data0.encoding;
|
|
575
|
+
const _errs6 = errors;
|
|
576
|
+
if (errors === _errs6) {
|
|
577
|
+
if (Array.isArray(data2)) {
|
|
578
|
+
var valid2 = true;
|
|
579
|
+
const len0 = data2.length;
|
|
580
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
581
|
+
const _errs8 = errors;
|
|
582
|
+
if (!validate25(data2[i0], { instancePath: instancePath + "/visualkeyboard/encoding/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
|
|
583
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
584
|
+
errors = vErrors.length;
|
|
585
|
+
}
|
|
586
|
+
var valid2 = _errs8 === errors;
|
|
587
|
+
if (!valid2) {
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
validate20.errors = [{ instancePath: instancePath + "/visualkeyboard/encoding", schemaPath: "#/properties/visualkeyboard/properties/encoding/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
594
|
+
return false;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
var valid1 = _errs6 === errors;
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
var valid1 = true;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
607
|
+
validate20.errors = [{ instancePath: instancePath + "/visualkeyboard", schemaPath: "#/properties/visualkeyboard/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
608
|
+
return false;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
else {
|
|
616
|
+
validate20.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
617
|
+
return false;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
validate20.errors = vErrors;
|
|
621
|
+
return errors === 0;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
export default require_kvks_schema_validator();
|
|
626
626
|
//# sourceMappingURL=kvks.schema.validator.mjs.map
|
|
627
|
-
//# debugId=
|
|
627
|
+
//# debugId=bc58d758-9353-5a5d-bb1e-6fe4aa08b826
|