@keymanapp/common-types 17.0.299-beta → 17.0.301-beta

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