@keymanapp/common-types 19.0.270-alpha → 19.0.271-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.
@@ -0,0 +1,1016 @@
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]="fd4607a4-a0a3-5fc6-824d-693369d8e03b")}catch(e){}}();
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __commonJS = (cb, mod) => function __require() {
5
+ try {
6
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
7
+ }
8
+ catch (e) {
9
+ throw mod = 0, e;
10
+ }
11
+ };
12
+ // obj/schemas/keylayout.schema.validator.cjs
13
+ var require_keylayout_schema_validator = __commonJS({
14
+ "obj/schemas/keylayout.schema.validator.cjs"(exports, module) {
15
+ module.exports = validate20;
16
+ module.exports.default = validate20;
17
+ var schema22 = { "$schema": "http://json-schema.org/schema#", "additionalProperties": false, "properties": { "keyboard": { "additionalProperties": false, "properties": { "actions": { "additionalProperties": false, "properties": { "action": { "items": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "when": { "items": { "additionalProperties": false, "properties": { "next": { "type": "string" }, "output": { "type": "string" }, "state": { "type": "string" } }, "type": "object" }, "minItems": 1, "type": "array" } }, "required": ["when"], "type": "object" }, "minItems": 1, "type": "array" } }, "required": ["action"], "type": "object" }, "group": { "type": "string" }, "id": { "type": "string" }, "keyMapSet": { "items": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "keyMap": { "items": { "additionalProperties": false, "properties": { "baseIndex": { "type": "string" }, "baseMapSet": { "type": "string" }, "index": { "type": "string" }, "key": { "items": { "additionalProperties": false, "properties": { "action": { "type": "string" }, "code": { "type": "string" }, "output": { "type": "string" } }, "type": "object" }, "minItems": 1, "type": "array" } }, "required": ["key"], "type": "object" }, "minItems": 1, "type": "array" } }, "required": ["keyMap"], "type": "object" }, "minItems": 1, "type": "array" }, "layouts": { "additionalProperties": false, "properties": { "layout": { "items": { "additionalProperties": false, "properties": { "first": { "type": "string" }, "last": { "type": "string" }, "mapSet": { "type": "string" }, "modifiers": { "type": "string" } }, "type": "object" }, "minItems": 1, "type": "array" } }, "required": ["layout"], "type": "object" }, "maxout": { "type": "string" }, "modifierMap": { "items": { "additionalProperties": false, "properties": { "defaultIndex": { "type": "string" }, "id": { "type": "string" }, "keyMapSelect": { "items": { "additionalProperties": false, "properties": { "mapIndex": { "type": "string" }, "modifier": { "items": { "additionalProperties": false, "properties": { "keys": { "type": "string" } }, "type": "object" }, "minItems": 1, "type": "array" } }, "required": ["modifier"], "type": "object" }, "minItems": 1, "type": "array" } }, "required": ["keyMapSelect"], "type": "object" }, "minItems": 1, "type": "array" }, "name": { "type": "string" }, "terminators": { "additionalProperties": false, "properties": { "when": { "items": { "additionalProperties": false, "properties": { "output": { "type": "string" }, "state": { "type": "string" } }, "type": "object" }, "minItems": 1, "type": "array" } }, "required": ["when"], "type": "object" } }, "required": ["layouts", "modifierMap", "keyMapSet", "actions", "terminators"] } }, "required": ["keyboard"], "title": "C:/Projects/keyman/keyman/resources/standards-data/keylayout/dtd/keylayout.xsd", "type": "object" };
18
+ var func4 = Object.prototype.hasOwnProperty;
19
+ function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
20
+ let vErrors = null;
21
+ let errors = 0;
22
+ if (errors === 0) {
23
+ if (data && typeof data == "object" && !Array.isArray(data)) {
24
+ let missing0;
25
+ if (data.keyboard === void 0 && (missing0 = "keyboard")) {
26
+ validate20.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
27
+ return false;
28
+ }
29
+ else {
30
+ const _errs1 = errors;
31
+ for (const key0 in data) {
32
+ if (!(key0 === "keyboard")) {
33
+ validate20.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
34
+ return false;
35
+ break;
36
+ }
37
+ }
38
+ if (_errs1 === errors) {
39
+ if (data.keyboard !== void 0) {
40
+ let data0 = data.keyboard;
41
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
42
+ let missing1;
43
+ if (data0.layouts === void 0 && (missing1 = "layouts") || data0.modifierMap === void 0 && (missing1 = "modifierMap") || data0.keyMapSet === void 0 && (missing1 = "keyMapSet") || data0.actions === void 0 && (missing1 = "actions") || data0.terminators === void 0 && (missing1 = "terminators")) {
44
+ validate20.errors = [{ instancePath: instancePath + "/keyboard", schemaPath: "#/properties/keyboard/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
45
+ return false;
46
+ }
47
+ else {
48
+ const _errs3 = errors;
49
+ for (const key1 in data0) {
50
+ if (!func4.call(schema22.properties.keyboard.properties, key1)) {
51
+ validate20.errors = [{ instancePath: instancePath + "/keyboard", schemaPath: "#/properties/keyboard/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
52
+ return false;
53
+ break;
54
+ }
55
+ }
56
+ if (_errs3 === errors) {
57
+ if (data0.actions !== void 0) {
58
+ let data1 = data0.actions;
59
+ const _errs4 = errors;
60
+ if (errors === _errs4) {
61
+ if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
62
+ let missing2;
63
+ if (data1.action === void 0 && (missing2 = "action")) {
64
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions", schemaPath: "#/properties/keyboard/properties/actions/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
65
+ return false;
66
+ }
67
+ else {
68
+ const _errs6 = errors;
69
+ for (const key2 in data1) {
70
+ if (!(key2 === "action")) {
71
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions", schemaPath: "#/properties/keyboard/properties/actions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
72
+ return false;
73
+ break;
74
+ }
75
+ }
76
+ if (_errs6 === errors) {
77
+ if (data1.action !== void 0) {
78
+ let data2 = data1.action;
79
+ const _errs7 = errors;
80
+ if (errors === _errs7) {
81
+ if (Array.isArray(data2)) {
82
+ if (data2.length < 1) {
83
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action", schemaPath: "#/properties/keyboard/properties/actions/properties/action/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
84
+ return false;
85
+ }
86
+ else {
87
+ var valid3 = true;
88
+ const len0 = data2.length;
89
+ for (let i0 = 0; i0 < len0; i0++) {
90
+ let data3 = data2[i0];
91
+ const _errs9 = errors;
92
+ if (errors === _errs9) {
93
+ if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
94
+ let missing3;
95
+ if (data3.when === void 0 && (missing3 = "when")) {
96
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0, schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
97
+ return false;
98
+ }
99
+ else {
100
+ const _errs11 = errors;
101
+ for (const key3 in data3) {
102
+ if (!(key3 === "id" || key3 === "when")) {
103
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0, schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
104
+ return false;
105
+ break;
106
+ }
107
+ }
108
+ if (_errs11 === errors) {
109
+ if (data3.id !== void 0) {
110
+ const _errs12 = errors;
111
+ if (typeof data3.id !== "string") {
112
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0 + "/id", schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
113
+ return false;
114
+ }
115
+ var valid4 = _errs12 === errors;
116
+ }
117
+ else {
118
+ var valid4 = true;
119
+ }
120
+ if (valid4) {
121
+ if (data3.when !== void 0) {
122
+ let data5 = data3.when;
123
+ const _errs14 = errors;
124
+ if (errors === _errs14) {
125
+ if (Array.isArray(data5)) {
126
+ if (data5.length < 1) {
127
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0 + "/when", schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/properties/when/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
128
+ return false;
129
+ }
130
+ else {
131
+ var valid5 = true;
132
+ const len1 = data5.length;
133
+ for (let i1 = 0; i1 < len1; i1++) {
134
+ let data6 = data5[i1];
135
+ const _errs16 = errors;
136
+ if (errors === _errs16) {
137
+ if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
138
+ const _errs18 = errors;
139
+ for (const key4 in data6) {
140
+ if (!(key4 === "next" || key4 === "output" || key4 === "state")) {
141
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0 + "/when/" + i1, schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/properties/when/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
142
+ return false;
143
+ break;
144
+ }
145
+ }
146
+ if (_errs18 === errors) {
147
+ if (data6.next !== void 0) {
148
+ const _errs19 = errors;
149
+ if (typeof data6.next !== "string") {
150
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0 + "/when/" + i1 + "/next", schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/properties/when/items/properties/next/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
151
+ return false;
152
+ }
153
+ var valid6 = _errs19 === errors;
154
+ }
155
+ else {
156
+ var valid6 = true;
157
+ }
158
+ if (valid6) {
159
+ if (data6.output !== void 0) {
160
+ const _errs21 = errors;
161
+ if (typeof data6.output !== "string") {
162
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0 + "/when/" + i1 + "/output", schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/properties/when/items/properties/output/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
163
+ return false;
164
+ }
165
+ var valid6 = _errs21 === errors;
166
+ }
167
+ else {
168
+ var valid6 = true;
169
+ }
170
+ if (valid6) {
171
+ if (data6.state !== void 0) {
172
+ const _errs23 = errors;
173
+ if (typeof data6.state !== "string") {
174
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0 + "/when/" + i1 + "/state", schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/properties/when/items/properties/state/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
175
+ return false;
176
+ }
177
+ var valid6 = _errs23 === errors;
178
+ }
179
+ else {
180
+ var valid6 = true;
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ else {
187
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0 + "/when/" + i1, schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/properties/when/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
188
+ return false;
189
+ }
190
+ }
191
+ var valid5 = _errs16 === errors;
192
+ if (!valid5) {
193
+ break;
194
+ }
195
+ }
196
+ }
197
+ }
198
+ else {
199
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0 + "/when", schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/properties/when/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
200
+ return false;
201
+ }
202
+ }
203
+ var valid4 = _errs14 === errors;
204
+ }
205
+ else {
206
+ var valid4 = true;
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+ else {
213
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action/" + i0, schemaPath: "#/properties/keyboard/properties/actions/properties/action/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
214
+ return false;
215
+ }
216
+ }
217
+ var valid3 = _errs9 === errors;
218
+ if (!valid3) {
219
+ break;
220
+ }
221
+ }
222
+ }
223
+ }
224
+ else {
225
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions/action", schemaPath: "#/properties/keyboard/properties/actions/properties/action/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
226
+ return false;
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+ else {
234
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/actions", schemaPath: "#/properties/keyboard/properties/actions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
235
+ return false;
236
+ }
237
+ }
238
+ var valid1 = _errs4 === errors;
239
+ }
240
+ else {
241
+ var valid1 = true;
242
+ }
243
+ if (valid1) {
244
+ if (data0.group !== void 0) {
245
+ const _errs25 = errors;
246
+ if (typeof data0.group !== "string") {
247
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/group", schemaPath: "#/properties/keyboard/properties/group/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
248
+ return false;
249
+ }
250
+ var valid1 = _errs25 === errors;
251
+ }
252
+ else {
253
+ var valid1 = true;
254
+ }
255
+ if (valid1) {
256
+ if (data0.id !== void 0) {
257
+ const _errs27 = errors;
258
+ if (typeof data0.id !== "string") {
259
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/id", schemaPath: "#/properties/keyboard/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
260
+ return false;
261
+ }
262
+ var valid1 = _errs27 === errors;
263
+ }
264
+ else {
265
+ var valid1 = true;
266
+ }
267
+ if (valid1) {
268
+ if (data0.keyMapSet !== void 0) {
269
+ let data12 = data0.keyMapSet;
270
+ const _errs29 = errors;
271
+ if (errors === _errs29) {
272
+ if (Array.isArray(data12)) {
273
+ if (data12.length < 1) {
274
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet", schemaPath: "#/properties/keyboard/properties/keyMapSet/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
275
+ return false;
276
+ }
277
+ else {
278
+ var valid7 = true;
279
+ const len2 = data12.length;
280
+ for (let i2 = 0; i2 < len2; i2++) {
281
+ let data13 = data12[i2];
282
+ const _errs31 = errors;
283
+ if (errors === _errs31) {
284
+ if (data13 && typeof data13 == "object" && !Array.isArray(data13)) {
285
+ let missing4;
286
+ if (data13.keyMap === void 0 && (missing4 = "keyMap")) {
287
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2, schemaPath: "#/properties/keyboard/properties/keyMapSet/items/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
288
+ return false;
289
+ }
290
+ else {
291
+ const _errs33 = errors;
292
+ for (const key5 in data13) {
293
+ if (!(key5 === "id" || key5 === "keyMap")) {
294
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2, schemaPath: "#/properties/keyboard/properties/keyMapSet/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
295
+ return false;
296
+ break;
297
+ }
298
+ }
299
+ if (_errs33 === errors) {
300
+ if (data13.id !== void 0) {
301
+ const _errs34 = errors;
302
+ if (typeof data13.id !== "string") {
303
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/id", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
304
+ return false;
305
+ }
306
+ var valid8 = _errs34 === errors;
307
+ }
308
+ else {
309
+ var valid8 = true;
310
+ }
311
+ if (valid8) {
312
+ if (data13.keyMap !== void 0) {
313
+ let data15 = data13.keyMap;
314
+ const _errs36 = errors;
315
+ if (errors === _errs36) {
316
+ if (Array.isArray(data15)) {
317
+ if (data15.length < 1) {
318
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
319
+ return false;
320
+ }
321
+ else {
322
+ var valid9 = true;
323
+ const len3 = data15.length;
324
+ for (let i3 = 0; i3 < len3; i3++) {
325
+ let data16 = data15[i3];
326
+ const _errs38 = errors;
327
+ if (errors === _errs38) {
328
+ if (data16 && typeof data16 == "object" && !Array.isArray(data16)) {
329
+ let missing5;
330
+ if (data16.key === void 0 && (missing5 = "key")) {
331
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3, schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" }];
332
+ return false;
333
+ }
334
+ else {
335
+ const _errs40 = errors;
336
+ for (const key6 in data16) {
337
+ if (!(key6 === "baseIndex" || key6 === "baseMapSet" || key6 === "index" || key6 === "key")) {
338
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3, schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
339
+ return false;
340
+ break;
341
+ }
342
+ }
343
+ if (_errs40 === errors) {
344
+ if (data16.baseIndex !== void 0) {
345
+ const _errs41 = errors;
346
+ if (typeof data16.baseIndex !== "string") {
347
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/baseIndex", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/baseIndex/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
348
+ return false;
349
+ }
350
+ var valid10 = _errs41 === errors;
351
+ }
352
+ else {
353
+ var valid10 = true;
354
+ }
355
+ if (valid10) {
356
+ if (data16.baseMapSet !== void 0) {
357
+ const _errs43 = errors;
358
+ if (typeof data16.baseMapSet !== "string") {
359
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/baseMapSet", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/baseMapSet/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
360
+ return false;
361
+ }
362
+ var valid10 = _errs43 === errors;
363
+ }
364
+ else {
365
+ var valid10 = true;
366
+ }
367
+ if (valid10) {
368
+ if (data16.index !== void 0) {
369
+ const _errs45 = errors;
370
+ if (typeof data16.index !== "string") {
371
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/index", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/index/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
372
+ return false;
373
+ }
374
+ var valid10 = _errs45 === errors;
375
+ }
376
+ else {
377
+ var valid10 = true;
378
+ }
379
+ if (valid10) {
380
+ if (data16.key !== void 0) {
381
+ let data20 = data16.key;
382
+ const _errs47 = errors;
383
+ if (errors === _errs47) {
384
+ if (Array.isArray(data20)) {
385
+ if (data20.length < 1) {
386
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/key", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/key/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
387
+ return false;
388
+ }
389
+ else {
390
+ var valid11 = true;
391
+ const len4 = data20.length;
392
+ for (let i4 = 0; i4 < len4; i4++) {
393
+ let data21 = data20[i4];
394
+ const _errs49 = errors;
395
+ if (errors === _errs49) {
396
+ if (data21 && typeof data21 == "object" && !Array.isArray(data21)) {
397
+ const _errs51 = errors;
398
+ for (const key7 in data21) {
399
+ if (!(key7 === "action" || key7 === "code" || key7 === "output")) {
400
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/key/" + i4, schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/key/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" }];
401
+ return false;
402
+ break;
403
+ }
404
+ }
405
+ if (_errs51 === errors) {
406
+ if (data21.action !== void 0) {
407
+ const _errs52 = errors;
408
+ if (typeof data21.action !== "string") {
409
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/key/" + i4 + "/action", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/key/items/properties/action/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
410
+ return false;
411
+ }
412
+ var valid12 = _errs52 === errors;
413
+ }
414
+ else {
415
+ var valid12 = true;
416
+ }
417
+ if (valid12) {
418
+ if (data21.code !== void 0) {
419
+ const _errs54 = errors;
420
+ if (typeof data21.code !== "string") {
421
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/key/" + i4 + "/code", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/key/items/properties/code/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
422
+ return false;
423
+ }
424
+ var valid12 = _errs54 === errors;
425
+ }
426
+ else {
427
+ var valid12 = true;
428
+ }
429
+ if (valid12) {
430
+ if (data21.output !== void 0) {
431
+ const _errs56 = errors;
432
+ if (typeof data21.output !== "string") {
433
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/key/" + i4 + "/output", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/key/items/properties/output/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
434
+ return false;
435
+ }
436
+ var valid12 = _errs56 === errors;
437
+ }
438
+ else {
439
+ var valid12 = true;
440
+ }
441
+ }
442
+ }
443
+ }
444
+ }
445
+ else {
446
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/key/" + i4, schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/key/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
447
+ return false;
448
+ }
449
+ }
450
+ var valid11 = _errs49 === errors;
451
+ if (!valid11) {
452
+ break;
453
+ }
454
+ }
455
+ }
456
+ }
457
+ else {
458
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3 + "/key", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/properties/key/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
459
+ return false;
460
+ }
461
+ }
462
+ var valid10 = _errs47 === errors;
463
+ }
464
+ else {
465
+ var valid10 = true;
466
+ }
467
+ }
468
+ }
469
+ }
470
+ }
471
+ }
472
+ }
473
+ else {
474
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap/" + i3, schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
475
+ return false;
476
+ }
477
+ }
478
+ var valid9 = _errs38 === errors;
479
+ if (!valid9) {
480
+ break;
481
+ }
482
+ }
483
+ }
484
+ }
485
+ else {
486
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2 + "/keyMap", schemaPath: "#/properties/keyboard/properties/keyMapSet/items/properties/keyMap/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
487
+ return false;
488
+ }
489
+ }
490
+ var valid8 = _errs36 === errors;
491
+ }
492
+ else {
493
+ var valid8 = true;
494
+ }
495
+ }
496
+ }
497
+ }
498
+ }
499
+ else {
500
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet/" + i2, schemaPath: "#/properties/keyboard/properties/keyMapSet/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
501
+ return false;
502
+ }
503
+ }
504
+ var valid7 = _errs31 === errors;
505
+ if (!valid7) {
506
+ break;
507
+ }
508
+ }
509
+ }
510
+ }
511
+ else {
512
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/keyMapSet", schemaPath: "#/properties/keyboard/properties/keyMapSet/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
513
+ return false;
514
+ }
515
+ }
516
+ var valid1 = _errs29 === errors;
517
+ }
518
+ else {
519
+ var valid1 = true;
520
+ }
521
+ if (valid1) {
522
+ if (data0.layouts !== void 0) {
523
+ let data25 = data0.layouts;
524
+ const _errs58 = errors;
525
+ if (errors === _errs58) {
526
+ if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
527
+ let missing6;
528
+ if (data25.layout === void 0 && (missing6 = "layout")) {
529
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts", schemaPath: "#/properties/keyboard/properties/layouts/required", keyword: "required", params: { missingProperty: missing6 }, message: "must have required property '" + missing6 + "'" }];
530
+ return false;
531
+ }
532
+ else {
533
+ const _errs60 = errors;
534
+ for (const key8 in data25) {
535
+ if (!(key8 === "layout")) {
536
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts", schemaPath: "#/properties/keyboard/properties/layouts/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key8 }, message: "must NOT have additional properties" }];
537
+ return false;
538
+ break;
539
+ }
540
+ }
541
+ if (_errs60 === errors) {
542
+ if (data25.layout !== void 0) {
543
+ let data26 = data25.layout;
544
+ const _errs61 = errors;
545
+ if (errors === _errs61) {
546
+ if (Array.isArray(data26)) {
547
+ if (data26.length < 1) {
548
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts/layout", schemaPath: "#/properties/keyboard/properties/layouts/properties/layout/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
549
+ return false;
550
+ }
551
+ else {
552
+ var valid14 = true;
553
+ const len5 = data26.length;
554
+ for (let i5 = 0; i5 < len5; i5++) {
555
+ let data27 = data26[i5];
556
+ const _errs63 = errors;
557
+ if (errors === _errs63) {
558
+ if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
559
+ const _errs65 = errors;
560
+ for (const key9 in data27) {
561
+ if (!(key9 === "first" || key9 === "last" || key9 === "mapSet" || key9 === "modifiers")) {
562
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts/layout/" + i5, schemaPath: "#/properties/keyboard/properties/layouts/properties/layout/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key9 }, message: "must NOT have additional properties" }];
563
+ return false;
564
+ break;
565
+ }
566
+ }
567
+ if (_errs65 === errors) {
568
+ if (data27.first !== void 0) {
569
+ const _errs66 = errors;
570
+ if (typeof data27.first !== "string") {
571
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts/layout/" + i5 + "/first", schemaPath: "#/properties/keyboard/properties/layouts/properties/layout/items/properties/first/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
572
+ return false;
573
+ }
574
+ var valid15 = _errs66 === errors;
575
+ }
576
+ else {
577
+ var valid15 = true;
578
+ }
579
+ if (valid15) {
580
+ if (data27.last !== void 0) {
581
+ const _errs68 = errors;
582
+ if (typeof data27.last !== "string") {
583
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts/layout/" + i5 + "/last", schemaPath: "#/properties/keyboard/properties/layouts/properties/layout/items/properties/last/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
584
+ return false;
585
+ }
586
+ var valid15 = _errs68 === errors;
587
+ }
588
+ else {
589
+ var valid15 = true;
590
+ }
591
+ if (valid15) {
592
+ if (data27.mapSet !== void 0) {
593
+ const _errs70 = errors;
594
+ if (typeof data27.mapSet !== "string") {
595
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts/layout/" + i5 + "/mapSet", schemaPath: "#/properties/keyboard/properties/layouts/properties/layout/items/properties/mapSet/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
596
+ return false;
597
+ }
598
+ var valid15 = _errs70 === errors;
599
+ }
600
+ else {
601
+ var valid15 = true;
602
+ }
603
+ if (valid15) {
604
+ if (data27.modifiers !== void 0) {
605
+ const _errs72 = errors;
606
+ if (typeof data27.modifiers !== "string") {
607
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts/layout/" + i5 + "/modifiers", schemaPath: "#/properties/keyboard/properties/layouts/properties/layout/items/properties/modifiers/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
608
+ return false;
609
+ }
610
+ var valid15 = _errs72 === errors;
611
+ }
612
+ else {
613
+ var valid15 = true;
614
+ }
615
+ }
616
+ }
617
+ }
618
+ }
619
+ }
620
+ else {
621
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts/layout/" + i5, schemaPath: "#/properties/keyboard/properties/layouts/properties/layout/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
622
+ return false;
623
+ }
624
+ }
625
+ var valid14 = _errs63 === errors;
626
+ if (!valid14) {
627
+ break;
628
+ }
629
+ }
630
+ }
631
+ }
632
+ else {
633
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts/layout", schemaPath: "#/properties/keyboard/properties/layouts/properties/layout/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
634
+ return false;
635
+ }
636
+ }
637
+ }
638
+ }
639
+ }
640
+ }
641
+ else {
642
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/layouts", schemaPath: "#/properties/keyboard/properties/layouts/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
643
+ return false;
644
+ }
645
+ }
646
+ var valid1 = _errs58 === errors;
647
+ }
648
+ else {
649
+ var valid1 = true;
650
+ }
651
+ if (valid1) {
652
+ if (data0.maxout !== void 0) {
653
+ const _errs74 = errors;
654
+ if (typeof data0.maxout !== "string") {
655
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/maxout", schemaPath: "#/properties/keyboard/properties/maxout/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
656
+ return false;
657
+ }
658
+ var valid1 = _errs74 === errors;
659
+ }
660
+ else {
661
+ var valid1 = true;
662
+ }
663
+ if (valid1) {
664
+ if (data0.modifierMap !== void 0) {
665
+ let data33 = data0.modifierMap;
666
+ const _errs76 = errors;
667
+ if (errors === _errs76) {
668
+ if (Array.isArray(data33)) {
669
+ if (data33.length < 1) {
670
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap", schemaPath: "#/properties/keyboard/properties/modifierMap/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
671
+ return false;
672
+ }
673
+ else {
674
+ var valid16 = true;
675
+ const len6 = data33.length;
676
+ for (let i6 = 0; i6 < len6; i6++) {
677
+ let data34 = data33[i6];
678
+ const _errs78 = errors;
679
+ if (errors === _errs78) {
680
+ if (data34 && typeof data34 == "object" && !Array.isArray(data34)) {
681
+ let missing7;
682
+ if (data34.keyMapSelect === void 0 && (missing7 = "keyMapSelect")) {
683
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6, schemaPath: "#/properties/keyboard/properties/modifierMap/items/required", keyword: "required", params: { missingProperty: missing7 }, message: "must have required property '" + missing7 + "'" }];
684
+ return false;
685
+ }
686
+ else {
687
+ const _errs80 = errors;
688
+ for (const key10 in data34) {
689
+ if (!(key10 === "defaultIndex" || key10 === "id" || key10 === "keyMapSelect")) {
690
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6, schemaPath: "#/properties/keyboard/properties/modifierMap/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" }];
691
+ return false;
692
+ break;
693
+ }
694
+ }
695
+ if (_errs80 === errors) {
696
+ if (data34.defaultIndex !== void 0) {
697
+ const _errs81 = errors;
698
+ if (typeof data34.defaultIndex !== "string") {
699
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/defaultIndex", schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/defaultIndex/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
700
+ return false;
701
+ }
702
+ var valid17 = _errs81 === errors;
703
+ }
704
+ else {
705
+ var valid17 = true;
706
+ }
707
+ if (valid17) {
708
+ if (data34.id !== void 0) {
709
+ const _errs83 = errors;
710
+ if (typeof data34.id !== "string") {
711
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/id", schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
712
+ return false;
713
+ }
714
+ var valid17 = _errs83 === errors;
715
+ }
716
+ else {
717
+ var valid17 = true;
718
+ }
719
+ if (valid17) {
720
+ if (data34.keyMapSelect !== void 0) {
721
+ let data37 = data34.keyMapSelect;
722
+ const _errs85 = errors;
723
+ if (errors === _errs85) {
724
+ if (Array.isArray(data37)) {
725
+ if (data37.length < 1) {
726
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect", schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
727
+ return false;
728
+ }
729
+ else {
730
+ var valid18 = true;
731
+ const len7 = data37.length;
732
+ for (let i7 = 0; i7 < len7; i7++) {
733
+ let data38 = data37[i7];
734
+ const _errs87 = errors;
735
+ if (errors === _errs87) {
736
+ if (data38 && typeof data38 == "object" && !Array.isArray(data38)) {
737
+ let missing8;
738
+ if (data38.modifier === void 0 && (missing8 = "modifier")) {
739
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7, schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/required", keyword: "required", params: { missingProperty: missing8 }, message: "must have required property '" + missing8 + "'" }];
740
+ return false;
741
+ }
742
+ else {
743
+ const _errs89 = errors;
744
+ for (const key11 in data38) {
745
+ if (!(key11 === "mapIndex" || key11 === "modifier")) {
746
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7, schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" }];
747
+ return false;
748
+ break;
749
+ }
750
+ }
751
+ if (_errs89 === errors) {
752
+ if (data38.mapIndex !== void 0) {
753
+ const _errs90 = errors;
754
+ if (typeof data38.mapIndex !== "string") {
755
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7 + "/mapIndex", schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/properties/mapIndex/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
756
+ return false;
757
+ }
758
+ var valid19 = _errs90 === errors;
759
+ }
760
+ else {
761
+ var valid19 = true;
762
+ }
763
+ if (valid19) {
764
+ if (data38.modifier !== void 0) {
765
+ let data40 = data38.modifier;
766
+ const _errs92 = errors;
767
+ if (errors === _errs92) {
768
+ if (Array.isArray(data40)) {
769
+ if (data40.length < 1) {
770
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7 + "/modifier", schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/properties/modifier/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
771
+ return false;
772
+ }
773
+ else {
774
+ var valid20 = true;
775
+ const len8 = data40.length;
776
+ for (let i8 = 0; i8 < len8; i8++) {
777
+ let data41 = data40[i8];
778
+ const _errs94 = errors;
779
+ if (errors === _errs94) {
780
+ if (data41 && typeof data41 == "object" && !Array.isArray(data41)) {
781
+ const _errs96 = errors;
782
+ for (const key12 in data41) {
783
+ if (!(key12 === "keys")) {
784
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7 + "/modifier/" + i8, schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/properties/modifier/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" }];
785
+ return false;
786
+ break;
787
+ }
788
+ }
789
+ if (_errs96 === errors) {
790
+ if (data41.keys !== void 0) {
791
+ if (typeof data41.keys !== "string") {
792
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7 + "/modifier/" + i8 + "/keys", schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/properties/modifier/items/properties/keys/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
793
+ return false;
794
+ }
795
+ }
796
+ }
797
+ }
798
+ else {
799
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7 + "/modifier/" + i8, schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/properties/modifier/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
800
+ return false;
801
+ }
802
+ }
803
+ var valid20 = _errs94 === errors;
804
+ if (!valid20) {
805
+ break;
806
+ }
807
+ }
808
+ }
809
+ }
810
+ else {
811
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7 + "/modifier", schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/properties/modifier/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
812
+ return false;
813
+ }
814
+ }
815
+ var valid19 = _errs92 === errors;
816
+ }
817
+ else {
818
+ var valid19 = true;
819
+ }
820
+ }
821
+ }
822
+ }
823
+ }
824
+ else {
825
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect/" + i7, schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
826
+ return false;
827
+ }
828
+ }
829
+ var valid18 = _errs87 === errors;
830
+ if (!valid18) {
831
+ break;
832
+ }
833
+ }
834
+ }
835
+ }
836
+ else {
837
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6 + "/keyMapSelect", schemaPath: "#/properties/keyboard/properties/modifierMap/items/properties/keyMapSelect/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
838
+ return false;
839
+ }
840
+ }
841
+ var valid17 = _errs85 === errors;
842
+ }
843
+ else {
844
+ var valid17 = true;
845
+ }
846
+ }
847
+ }
848
+ }
849
+ }
850
+ }
851
+ else {
852
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap/" + i6, schemaPath: "#/properties/keyboard/properties/modifierMap/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
853
+ return false;
854
+ }
855
+ }
856
+ var valid16 = _errs78 === errors;
857
+ if (!valid16) {
858
+ break;
859
+ }
860
+ }
861
+ }
862
+ }
863
+ else {
864
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/modifierMap", schemaPath: "#/properties/keyboard/properties/modifierMap/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
865
+ return false;
866
+ }
867
+ }
868
+ var valid1 = _errs76 === errors;
869
+ }
870
+ else {
871
+ var valid1 = true;
872
+ }
873
+ if (valid1) {
874
+ if (data0.name !== void 0) {
875
+ const _errs99 = errors;
876
+ if (typeof data0.name !== "string") {
877
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/name", schemaPath: "#/properties/keyboard/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
878
+ return false;
879
+ }
880
+ var valid1 = _errs99 === errors;
881
+ }
882
+ else {
883
+ var valid1 = true;
884
+ }
885
+ if (valid1) {
886
+ if (data0.terminators !== void 0) {
887
+ let data44 = data0.terminators;
888
+ const _errs101 = errors;
889
+ if (errors === _errs101) {
890
+ if (data44 && typeof data44 == "object" && !Array.isArray(data44)) {
891
+ let missing9;
892
+ if (data44.when === void 0 && (missing9 = "when")) {
893
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators", schemaPath: "#/properties/keyboard/properties/terminators/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" }];
894
+ return false;
895
+ }
896
+ else {
897
+ const _errs103 = errors;
898
+ for (const key13 in data44) {
899
+ if (!(key13 === "when")) {
900
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators", schemaPath: "#/properties/keyboard/properties/terminators/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" }];
901
+ return false;
902
+ break;
903
+ }
904
+ }
905
+ if (_errs103 === errors) {
906
+ if (data44.when !== void 0) {
907
+ let data45 = data44.when;
908
+ const _errs104 = errors;
909
+ if (errors === _errs104) {
910
+ if (Array.isArray(data45)) {
911
+ if (data45.length < 1) {
912
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators/when", schemaPath: "#/properties/keyboard/properties/terminators/properties/when/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
913
+ return false;
914
+ }
915
+ else {
916
+ var valid23 = true;
917
+ const len9 = data45.length;
918
+ for (let i9 = 0; i9 < len9; i9++) {
919
+ let data46 = data45[i9];
920
+ const _errs106 = errors;
921
+ if (errors === _errs106) {
922
+ if (data46 && typeof data46 == "object" && !Array.isArray(data46)) {
923
+ const _errs108 = errors;
924
+ for (const key14 in data46) {
925
+ if (!(key14 === "output" || key14 === "state")) {
926
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators/when/" + i9, schemaPath: "#/properties/keyboard/properties/terminators/properties/when/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" }];
927
+ return false;
928
+ break;
929
+ }
930
+ }
931
+ if (_errs108 === errors) {
932
+ if (data46.output !== void 0) {
933
+ const _errs109 = errors;
934
+ if (typeof data46.output !== "string") {
935
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators/when/" + i9 + "/output", schemaPath: "#/properties/keyboard/properties/terminators/properties/when/items/properties/output/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
936
+ return false;
937
+ }
938
+ var valid24 = _errs109 === errors;
939
+ }
940
+ else {
941
+ var valid24 = true;
942
+ }
943
+ if (valid24) {
944
+ if (data46.state !== void 0) {
945
+ const _errs111 = errors;
946
+ if (typeof data46.state !== "string") {
947
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators/when/" + i9 + "/state", schemaPath: "#/properties/keyboard/properties/terminators/properties/when/items/properties/state/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
948
+ return false;
949
+ }
950
+ var valid24 = _errs111 === errors;
951
+ }
952
+ else {
953
+ var valid24 = true;
954
+ }
955
+ }
956
+ }
957
+ }
958
+ else {
959
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators/when/" + i9, schemaPath: "#/properties/keyboard/properties/terminators/properties/when/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
960
+ return false;
961
+ }
962
+ }
963
+ var valid23 = _errs106 === errors;
964
+ if (!valid23) {
965
+ break;
966
+ }
967
+ }
968
+ }
969
+ }
970
+ else {
971
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators/when", schemaPath: "#/properties/keyboard/properties/terminators/properties/when/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
972
+ return false;
973
+ }
974
+ }
975
+ }
976
+ }
977
+ }
978
+ }
979
+ else {
980
+ validate20.errors = [{ instancePath: instancePath + "/keyboard/terminators", schemaPath: "#/properties/keyboard/properties/terminators/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
981
+ return false;
982
+ }
983
+ }
984
+ var valid1 = _errs101 === errors;
985
+ }
986
+ else {
987
+ var valid1 = true;
988
+ }
989
+ }
990
+ }
991
+ }
992
+ }
993
+ }
994
+ }
995
+ }
996
+ }
997
+ }
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ }
1003
+ }
1004
+ else {
1005
+ validate20.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
1006
+ return false;
1007
+ }
1008
+ }
1009
+ validate20.errors = vErrors;
1010
+ return errors === 0;
1011
+ }
1012
+ }
1013
+ });
1014
+ export default require_keylayout_schema_validator();
1015
+ //# sourceMappingURL=keylayout.schema.validator.mjs.map
1016
+ //# debugId=fd4607a4-a0a3-5fc6-824d-693369d8e03b