@rspack/core 0.0.25 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +1 -1
  2. package/dist/config/adapter-rule-use.d.ts.map +1 -1
  3. package/dist/config/adapter-rule-use.js +12 -20
  4. package/dist/config/adapter-rule-use.js.map +1 -1
  5. package/dist/config/adapter.d.ts.map +1 -1
  6. package/dist/config/adapter.js +20 -2
  7. package/dist/config/adapter.js.map +1 -1
  8. package/dist/config/builtins.d.ts.map +1 -1
  9. package/dist/config/builtins.js +3 -6
  10. package/dist/config/builtins.js.map +1 -1
  11. package/dist/config/schema.check.d.ts +11 -0
  12. package/dist/config/schema.check.d.ts.map +1 -0
  13. package/dist/config/schema.check.js +3709 -0
  14. package/dist/config/schema.check.js.map +1 -0
  15. package/dist/config/schema.d.ts +2039 -0
  16. package/dist/config/schema.d.ts.map +1 -0
  17. package/dist/config/schema.js +1686 -0
  18. package/dist/config/schema.js.map +1 -0
  19. package/dist/config/types.d.ts +32 -31
  20. package/dist/config/types.d.ts.map +1 -1
  21. package/dist/error/InvalidateConfiguration.d.ts +4 -0
  22. package/dist/error/InvalidateConfiguration.d.ts.map +1 -0
  23. package/dist/error/InvalidateConfiguration.js +10 -0
  24. package/dist/error/InvalidateConfiguration.js.map +1 -0
  25. package/dist/multiCompiler.d.ts +1 -1
  26. package/dist/multiCompiler.d.ts.map +1 -1
  27. package/dist/rspack.d.ts +3 -2
  28. package/dist/rspack.d.ts.map +1 -1
  29. package/dist/rspack.js +47 -18
  30. package/dist/rspack.js.map +1 -1
  31. package/dist/util/index.d.ts +1 -0
  32. package/dist/util/index.d.ts.map +1 -1
  33. package/dist/util/index.js +5 -1
  34. package/dist/util/index.js.map +1 -1
  35. package/dist/watching.d.ts.map +1 -1
  36. package/dist/watching.js +0 -4
  37. package/dist/watching.js.map +1 -1
  38. package/package.json +12 -10
@@ -0,0 +1,3709 @@
1
+ /** This file was automatically generated, Run `pnpm precompile-schema` to update */
2
+ "use strict";
3
+ module.exports = $, module.exports.default = $;
4
+ const e = new RegExp("^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$", "u");
5
+ function t(e, { instancePath: a = "", parentData: s, parentDataProperty: n, rootData: r = e } = {}) { let i = null, o = 0; if (0 === o) {
6
+ if (!e || "object" != typeof e || Array.isArray(e))
7
+ return t.errors = [{ instancePath: a, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
8
+ {
9
+ let s;
10
+ if (void 0 === e.import && (s = "import"))
11
+ return t.errors = [{ instancePath: a, schemaPath: "#/required", keyword: "required", params: { missingProperty: s }, message: "must have required property '" + s + "'" }], !1;
12
+ if (void 0 !== e.import) {
13
+ let s = e.import;
14
+ const n = o, r = o;
15
+ let c = !1;
16
+ const h = o;
17
+ if (o === h)
18
+ if (Array.isArray(s))
19
+ if (s.length < 1) {
20
+ const e = { instancePath: a + "/import", schemaPath: "#/definitions/EntryItem/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
21
+ null === i ? i = [e] : i.push(e), o++;
22
+ }
23
+ else {
24
+ var l = !0;
25
+ const e = s.length;
26
+ for (let t = 0; t < e; t++) {
27
+ let e = s[t];
28
+ const n = o;
29
+ if (o === n)
30
+ if ("string" == typeof e) {
31
+ if (e.length < 1) {
32
+ const e = { instancePath: a + "/import/" + t, schemaPath: "#/definitions/EntryItem/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
33
+ null === i ? i = [e] : i.push(e), o++;
34
+ }
35
+ }
36
+ else {
37
+ const e = { instancePath: a + "/import/" + t, schemaPath: "#/definitions/EntryItem/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
38
+ null === i ? i = [e] : i.push(e), o++;
39
+ }
40
+ if (!(l = n === o))
41
+ break;
42
+ }
43
+ if (l) {
44
+ let e, t = s.length;
45
+ if (t > 1) {
46
+ const n = {};
47
+ for (; t--;) {
48
+ let r = s[t];
49
+ if ("string" == typeof r) {
50
+ if ("number" == typeof n[r]) {
51
+ e = n[r];
52
+ const s = { instancePath: a + "/import", schemaPath: "#/definitions/EntryItem/anyOf/0/uniqueItems", keyword: "uniqueItems", params: { i: t, j: e }, message: "must NOT have duplicate items (items ## " + e + " and " + t + " are identical)" };
53
+ null === i ? i = [s] : i.push(s), o++;
54
+ break;
55
+ }
56
+ n[r] = t;
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ else {
63
+ const e = { instancePath: a + "/import", schemaPath: "#/definitions/EntryItem/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
64
+ null === i ? i = [e] : i.push(e), o++;
65
+ }
66
+ var m = h === o;
67
+ if (c = c || m, !c) {
68
+ const e = o;
69
+ if (o === e)
70
+ if ("string" == typeof s) {
71
+ if (s.length < 1) {
72
+ const e = { instancePath: a + "/import", schemaPath: "#/definitions/EntryItem/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
73
+ null === i ? i = [e] : i.push(e), o++;
74
+ }
75
+ }
76
+ else {
77
+ const e = { instancePath: a + "/import", schemaPath: "#/definitions/EntryItem/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
78
+ null === i ? i = [e] : i.push(e), o++;
79
+ }
80
+ m = e === o, c = c || m;
81
+ }
82
+ if (!c) {
83
+ const e = { instancePath: a + "/import", schemaPath: "#/definitions/EntryItem/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
84
+ return null === i ? i = [e] : i.push(e), o++, t.errors = i, !1;
85
+ }
86
+ o = r, null !== i && (r ? i.length = r : i = null);
87
+ var p = n === o;
88
+ }
89
+ else
90
+ p = !0;
91
+ if (p)
92
+ if (void 0 !== e.runtime) {
93
+ let s = e.runtime;
94
+ const n = o, r = o;
95
+ let l = !1;
96
+ const m = o;
97
+ if (!1 !== s) {
98
+ const e = { instancePath: a + "/runtime", schemaPath: "#/definitions/EntryRuntime/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
99
+ null === i ? i = [e] : i.push(e), o++;
100
+ }
101
+ var c = m === o;
102
+ if (l = l || c, !l) {
103
+ const e = o;
104
+ if (o === e)
105
+ if ("string" == typeof s) {
106
+ if (s.length < 1) {
107
+ const e = { instancePath: a + "/runtime", schemaPath: "#/definitions/EntryRuntime/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
108
+ null === i ? i = [e] : i.push(e), o++;
109
+ }
110
+ }
111
+ else {
112
+ const e = { instancePath: a + "/runtime", schemaPath: "#/definitions/EntryRuntime/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
113
+ null === i ? i = [e] : i.push(e), o++;
114
+ }
115
+ c = e === o, l = l || c;
116
+ }
117
+ if (!l) {
118
+ const e = { instancePath: a + "/runtime", schemaPath: "#/definitions/EntryRuntime/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
119
+ return null === i ? i = [e] : i.push(e), o++, t.errors = i, !1;
120
+ }
121
+ o = r, null !== i && (r ? i.length = r : i = null), p = n === o;
122
+ }
123
+ else
124
+ p = !0;
125
+ }
126
+ } return t.errors = i, 0 === o; }
127
+ function a(e, { instancePath: s = "", parentData: n, parentDataProperty: r, rootData: i = e } = {}) { let o = null, l = 0; if (0 === l) {
128
+ if (!e || "object" != typeof e || Array.isArray(e))
129
+ return a.errors = [{ instancePath: s, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
130
+ for (const n in e) {
131
+ let r = e[n];
132
+ const h = l, u = l;
133
+ let y = !1;
134
+ const f = l, d = l;
135
+ let g = !1;
136
+ const P = l;
137
+ if (l === P)
138
+ if (Array.isArray(r))
139
+ if (r.length < 1) {
140
+ const e = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
141
+ null === o ? o = [e] : o.push(e), l++;
142
+ }
143
+ else {
144
+ var m = !0;
145
+ const e = r.length;
146
+ for (let t = 0; t < e; t++) {
147
+ let e = r[t];
148
+ const a = l;
149
+ if (l === a)
150
+ if ("string" == typeof e) {
151
+ if (e.length < 1) {
152
+ const e = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + t, schemaPath: "#/definitions/EntryItem/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
153
+ null === o ? o = [e] : o.push(e), l++;
154
+ }
155
+ }
156
+ else {
157
+ const e = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + t, schemaPath: "#/definitions/EntryItem/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
158
+ null === o ? o = [e] : o.push(e), l++;
159
+ }
160
+ if (!(m = a === l))
161
+ break;
162
+ }
163
+ if (m) {
164
+ let e, t = r.length;
165
+ if (t > 1) {
166
+ const a = {};
167
+ for (; t--;) {
168
+ let i = r[t];
169
+ if ("string" == typeof i) {
170
+ if ("number" == typeof a[i]) {
171
+ e = a[i];
172
+ const r = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/0/uniqueItems", keyword: "uniqueItems", params: { i: t, j: e }, message: "must NOT have duplicate items (items ## " + e + " and " + t + " are identical)" };
173
+ null === o ? o = [r] : o.push(r), l++;
174
+ break;
175
+ }
176
+ a[i] = t;
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ else {
183
+ const e = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
184
+ null === o ? o = [e] : o.push(e), l++;
185
+ }
186
+ var p = P === l;
187
+ if (g = g || p, !g) {
188
+ const e = l;
189
+ if (l === e)
190
+ if ("string" == typeof r) {
191
+ if (r.length < 1) {
192
+ const e = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
193
+ null === o ? o = [e] : o.push(e), l++;
194
+ }
195
+ }
196
+ else {
197
+ const e = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
198
+ null === o ? o = [e] : o.push(e), l++;
199
+ }
200
+ p = e === l, g = g || p;
201
+ }
202
+ if (g)
203
+ l = d, null !== o && (d ? o.length = d : o = null);
204
+ else {
205
+ const e = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
206
+ null === o ? o = [e] : o.push(e), l++;
207
+ }
208
+ var c = f === l;
209
+ if (y = y || c, !y) {
210
+ const a = l;
211
+ t(r, { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: e, parentDataProperty: n, rootData: i }) || (o = null === o ? t.errors : o.concat(t.errors), l = o.length), c = a === l, y = y || c;
212
+ }
213
+ if (!y) {
214
+ const e = { instancePath: s + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
215
+ return null === o ? o = [e] : o.push(e), l++, a.errors = o, !1;
216
+ }
217
+ if (l = u, null !== o && (u ? o.length = u : o = null), h !== l)
218
+ break;
219
+ }
220
+ } return a.errors = o, 0 === l; }
221
+ function s(e, { instancePath: t = "", parentData: a, parentDataProperty: n, rootData: r = e } = {}) { let i = null, o = 0; const l = o; let m = !1, p = null; const c = o, h = o; let u = !1; const y = o; if (o === y)
222
+ if (Array.isArray(e))
223
+ if (e.length < 1) {
224
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
225
+ null === i ? i = [e] : i.push(e), o++;
226
+ }
227
+ else {
228
+ var f = !0;
229
+ const a = e.length;
230
+ for (let s = 0; s < a; s++) {
231
+ let a = e[s];
232
+ const n = o;
233
+ if (o === n)
234
+ if ("string" == typeof a) {
235
+ if (a.length < 1) {
236
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/EntryItem/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
237
+ null === i ? i = [e] : i.push(e), o++;
238
+ }
239
+ }
240
+ else {
241
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/EntryItem/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
242
+ null === i ? i = [e] : i.push(e), o++;
243
+ }
244
+ if (!(f = n === o))
245
+ break;
246
+ }
247
+ if (f) {
248
+ let a, s = e.length;
249
+ if (s > 1) {
250
+ const n = {};
251
+ for (; s--;) {
252
+ let r = e[s];
253
+ if ("string" == typeof r) {
254
+ if ("number" == typeof n[r]) {
255
+ a = n[r];
256
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/0/uniqueItems", keyword: "uniqueItems", params: { i: s, j: a }, message: "must NOT have duplicate items (items ## " + a + " and " + s + " are identical)" };
257
+ null === i ? i = [e] : i.push(e), o++;
258
+ break;
259
+ }
260
+ n[r] = s;
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ else {
267
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
268
+ null === i ? i = [e] : i.push(e), o++;
269
+ } var d = y === o; if (u = u || d, !u) {
270
+ const a = o;
271
+ if (o === a)
272
+ if ("string" == typeof e) {
273
+ if (e.length < 1) {
274
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
275
+ null === i ? i = [e] : i.push(e), o++;
276
+ }
277
+ }
278
+ else {
279
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
280
+ null === i ? i = [e] : i.push(e), o++;
281
+ }
282
+ d = a === o, u = u || d;
283
+ } if (u)
284
+ o = h, null !== i && (h ? i.length = h : i = null);
285
+ else {
286
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
287
+ null === i ? i = [e] : i.push(e), o++;
288
+ } if (c === o && (m = !0, p = 0), !m) {
289
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: p }, message: "must match exactly one schema in oneOf" };
290
+ return null === i ? i = [e] : i.push(e), o++, s.errors = i, !1;
291
+ } return o = l, null !== i && (l ? i.length = l : i = null), s.errors = i, 0 === o; }
292
+ function n(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: o = e } = {}) { let l = null, m = 0; const p = m; let c = !1; const h = m; a(e, { instancePath: t, parentData: r, parentDataProperty: i, rootData: o }) || (l = null === l ? a.errors : l.concat(a.errors), m = l.length); var u = h === m; if (c = c || u, !c) {
293
+ const a = m;
294
+ s(e, { instancePath: t, parentData: r, parentDataProperty: i, rootData: o }) || (l = null === l ? s.errors : l.concat(s.errors), m = l.length), u = a === m, c = c || u;
295
+ } if (!c) {
296
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
297
+ return null === l ? l = [e] : l.push(e), m++, n.errors = l, !1;
298
+ } return m = p, null !== l && (p ? l.length = p : l = null), n.errors = l, 0 === m; }
299
+ function r(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: i = e } = {}) { let o = null, l = 0; const m = l; let p = !1; const c = l; if (n(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: i }) || (o = null === o ? n.errors : o.concat(n.errors), l = o.length), p = p || c === l, !p) {
300
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
301
+ return null === o ? o = [e] : o.push(e), l++, r.errors = o, !1;
302
+ } return l = m, null !== o && (m ? o.length = m : o = null), r.errors = o, 0 === l; }
303
+ function i(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, o = 0; const l = o; let m = !1; const p = o; if ("string" != typeof e) {
304
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
305
+ null === r ? r = [e] : r.push(e), o++;
306
+ } var c = p === o; if (m = m || c, !m) {
307
+ const a = o;
308
+ if (o === a)
309
+ if (e && "object" == typeof e && !Array.isArray(e))
310
+ for (const a in e) {
311
+ const s = o, n = o;
312
+ let i = !1;
313
+ const l = o;
314
+ if ("string" != typeof e[a]) {
315
+ const e = { instancePath: t + "/" + a.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ExternalItemValue/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
316
+ null === r ? r = [e] : r.push(e), o++;
317
+ }
318
+ if (i = i || l === o, i)
319
+ o = n, null !== r && (n ? r.length = n : r = null);
320
+ else {
321
+ const e = { instancePath: t + "/" + a.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ExternalItemValue/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
322
+ null === r ? r = [e] : r.push(e), o++;
323
+ }
324
+ if (s !== o)
325
+ break;
326
+ }
327
+ else {
328
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
329
+ null === r ? r = [e] : r.push(e), o++;
330
+ }
331
+ c = a === o, m = m || c;
332
+ } if (!m) {
333
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
334
+ return null === r ? r = [e] : r.push(e), o++, i.errors = r, !1;
335
+ } return o = l, null !== r && (l ? r.length = l : r = null), i.errors = r, 0 === o; }
336
+ function o(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, l = 0; const m = l; let p = !1; const c = l; if (i(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? i.errors : r.concat(i.errors), l = r.length), p = p || c === l, !p) {
337
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
338
+ return null === r ? r = [e] : r.push(e), l++, o.errors = r, !1;
339
+ } return l = m, null !== r && (m ? r.length = m : r = null), o.errors = r, 0 === l; }
340
+ function l(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let m = !1; const p = i; if (i === p)
341
+ if (Array.isArray(e)) {
342
+ const a = e.length;
343
+ for (let s = 0; s < a; s++) {
344
+ let a = e[s];
345
+ const n = i, o = i;
346
+ let l = !1, m = null;
347
+ const p = i, h = i;
348
+ let u = !1;
349
+ const y = i;
350
+ if (!(a instanceof RegExp)) {
351
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/FilterItemTypes/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
352
+ null === r ? r = [e] : r.push(e), i++;
353
+ }
354
+ var c = y === i;
355
+ if (u = u || c, !u) {
356
+ const e = i;
357
+ if ("string" != typeof a) {
358
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/FilterItemTypes/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
359
+ null === r ? r = [e] : r.push(e), i++;
360
+ }
361
+ if (c = e === i, u = u || c, !u) {
362
+ const e = i;
363
+ if (!(a instanceof Function)) {
364
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/FilterItemTypes/anyOf/2/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
365
+ null === r ? r = [e] : r.push(e), i++;
366
+ }
367
+ c = e === i, u = u || c;
368
+ }
369
+ }
370
+ if (u)
371
+ i = h, null !== r && (h ? r.length = h : r = null);
372
+ else {
373
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/FilterItemTypes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
374
+ null === r ? r = [e] : r.push(e), i++;
375
+ }
376
+ if (p === i && (l = !0, m = 0), l)
377
+ i = o, null !== r && (o ? r.length = o : r = null);
378
+ else {
379
+ const e = { instancePath: t + "/" + s, schemaPath: "#/anyOf/0/items/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
380
+ null === r ? r = [e] : r.push(e), i++;
381
+ }
382
+ if (n !== i)
383
+ break;
384
+ }
385
+ }
386
+ else {
387
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
388
+ null === r ? r = [e] : r.push(e), i++;
389
+ } var h = p === i; if (m = m || h, !m) {
390
+ const a = i, s = i;
391
+ let n = !1;
392
+ const o = i;
393
+ if (!(e instanceof RegExp)) {
394
+ const e = { instancePath: t, schemaPath: "#/definitions/FilterItemTypes/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
395
+ null === r ? r = [e] : r.push(e), i++;
396
+ }
397
+ var u = o === i;
398
+ if (n = n || u, !n) {
399
+ const a = i;
400
+ if ("string" != typeof e) {
401
+ const e = { instancePath: t, schemaPath: "#/definitions/FilterItemTypes/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
402
+ null === r ? r = [e] : r.push(e), i++;
403
+ }
404
+ if (u = a === i, n = n || u, !n) {
405
+ const a = i;
406
+ if (!(e instanceof Function)) {
407
+ const e = { instancePath: t, schemaPath: "#/definitions/FilterItemTypes/anyOf/2/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
408
+ null === r ? r = [e] : r.push(e), i++;
409
+ }
410
+ u = a === i, n = n || u;
411
+ }
412
+ }
413
+ if (n)
414
+ i = s, null !== r && (s ? r.length = s : r = null);
415
+ else {
416
+ const e = { instancePath: t, schemaPath: "#/definitions/FilterItemTypes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
417
+ null === r ? r = [e] : r.push(e), i++;
418
+ }
419
+ h = a === i, m = m || h;
420
+ } if (!m) {
421
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
422
+ return null === r ? r = [e] : r.push(e), i++, l.errors = r, !1;
423
+ } return i = o, null !== r && (o ? r.length = o : r = null), l.errors = r, 0 === i; }
424
+ function m(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
425
+ if (!e || "object" != typeof e || Array.isArray(e))
426
+ return m.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
427
+ {
428
+ const a = i;
429
+ for (const a in e)
430
+ if ("appendOnly" !== a && "colors" !== a && "console" !== a && "debug" !== a && "level" !== a && "stream" !== a)
431
+ return m.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" }], !1;
432
+ if (a === i) {
433
+ if (void 0 !== e.appendOnly) {
434
+ const a = i;
435
+ if ("boolean" != typeof e.appendOnly)
436
+ return m.errors = [{ instancePath: t + "/appendOnly", schemaPath: "#/properties/appendOnly/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
437
+ var o = a === i;
438
+ }
439
+ else
440
+ o = !0;
441
+ if (o) {
442
+ if (void 0 !== e.colors) {
443
+ const a = i;
444
+ if ("boolean" != typeof e.colors)
445
+ return m.errors = [{ instancePath: t + "/colors", schemaPath: "#/properties/colors/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
446
+ o = a === i;
447
+ }
448
+ else
449
+ o = !0;
450
+ if (o) {
451
+ if (void 0 !== e.debug) {
452
+ let a = e.debug;
453
+ const s = i, c = i;
454
+ let h = !1;
455
+ const u = i;
456
+ if ("boolean" != typeof a) {
457
+ const e = { instancePath: t + "/debug", schemaPath: "#/properties/debug/anyOf/0/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
458
+ null === r ? r = [e] : r.push(e), i++;
459
+ }
460
+ var p = u === i;
461
+ if (h = h || p, !h) {
462
+ const s = i;
463
+ l(a, { instancePath: t + "/debug", parentData: e, parentDataProperty: "debug", rootData: n }) || (r = null === r ? l.errors : r.concat(l.errors), i = r.length), p = s === i, h = h || p;
464
+ }
465
+ if (!h) {
466
+ const e = { instancePath: t + "/debug", schemaPath: "#/properties/debug/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
467
+ return null === r ? r = [e] : r.push(e), i++, m.errors = r, !1;
468
+ }
469
+ i = c, null !== r && (c ? r.length = c : r = null), o = s === i;
470
+ }
471
+ else
472
+ o = !0;
473
+ if (o)
474
+ if (void 0 !== e.level) {
475
+ let a = e.level;
476
+ const s = i;
477
+ if ("none" !== a && "error" !== a && "warn" !== a && "info" !== a && "log" !== a && "verbose" !== a)
478
+ return m.errors = [{ instancePath: t + "/level", schemaPath: "#/properties/level/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' }], !1;
479
+ o = s === i;
480
+ }
481
+ else
482
+ o = !0;
483
+ }
484
+ }
485
+ }
486
+ }
487
+ } return m.errors = r, 0 === i; }
488
+ const p = { exclude: { description: "Shortcut for resource.exclude.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, generator: { description: "The options for the module generator.", type: "object" }, include: { description: "Shortcut for resource.include.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, issuer: { description: "Match the issuer of the module (The module pointing to this module).", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, oneOf: { description: "Only execute the first matching rule in this array.", type: "array", items: { description: "A rule.", oneOf: [{ $ref: "#/definitions/RuleSetRule" }] } }, parser: { description: "Options for parsing.", type: "object", additionalProperties: !0 }, resolve: { description: "Options for the resolver.", type: "object", oneOf: [{ $ref: "#/definitions/ResolveOptions" }] }, resource: { description: "Match the resource path of the module.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, resourceFragment: { description: "Match the resource fragment of the module.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, resourceQuery: { description: "Match the resource query of the module.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, rules: { description: "Match and execute these rules when this rule is matched.", type: "array", items: { description: "A rule.", oneOf: [{ $ref: "#/definitions/RuleSetRule" }] } }, sideEffects: { description: "Flags a module as with or without side effects.", type: "boolean" }, test: { description: "Shortcut for resource.test.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, type: { description: "Module type to use for the module.", type: "string" }, use: { description: "Modifiers applied to the module when rule is matched.", oneOf: [{ $ref: "#/definitions/RuleSetUse" }] } }, c = Object.prototype.hasOwnProperty, h = { validate: f };
489
+ function u(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
490
+ if (!Array.isArray(e))
491
+ return u.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
492
+ {
493
+ const a = e.length;
494
+ for (let s = 0; s < a; s++) {
495
+ const a = i, o = i;
496
+ let l = !1, m = null;
497
+ const p = i;
498
+ if (h.validate(e[s], { instancePath: t + "/" + s, parentData: e, parentDataProperty: s, rootData: n }) || (r = null === r ? h.validate.errors : r.concat(h.validate.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
499
+ const e = { instancePath: t + "/" + s, schemaPath: "#/items/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
500
+ return null === r ? r = [e] : r.push(e), i++, u.errors = r, !1;
501
+ }
502
+ if (i = o, null !== r && (o ? r.length = o : r = null), a !== i)
503
+ break;
504
+ }
505
+ }
506
+ } return u.errors = r, 0 === i; }
507
+ function y(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
508
+ if (!e || "object" != typeof e || Array.isArray(e))
509
+ return y.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
510
+ {
511
+ const a = i;
512
+ for (const a in e)
513
+ if ("and" !== a && "not" !== a && "or" !== a)
514
+ return y.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" }], !1;
515
+ if (a === i) {
516
+ if (void 0 !== e.and) {
517
+ const a = i, s = i;
518
+ let l = !1, m = null;
519
+ const p = i;
520
+ if (u(e.and, { instancePath: t + "/and", parentData: e, parentDataProperty: "and", rootData: n }) || (r = null === r ? u.errors : r.concat(u.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
521
+ const e = { instancePath: t + "/and", schemaPath: "#/properties/and/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
522
+ return null === r ? r = [e] : r.push(e), i++, y.errors = r, !1;
523
+ }
524
+ i = s, null !== r && (s ? r.length = s : r = null);
525
+ var o = a === i;
526
+ }
527
+ else
528
+ o = !0;
529
+ if (o) {
530
+ if (void 0 !== e.not) {
531
+ const a = i, s = i;
532
+ let l = !1, m = null;
533
+ const p = i;
534
+ if (h.validate(e.not, { instancePath: t + "/not", parentData: e, parentDataProperty: "not", rootData: n }) || (r = null === r ? h.validate.errors : r.concat(h.validate.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
535
+ const e = { instancePath: t + "/not", schemaPath: "#/properties/not/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
536
+ return null === r ? r = [e] : r.push(e), i++, y.errors = r, !1;
537
+ }
538
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
539
+ }
540
+ else
541
+ o = !0;
542
+ if (o)
543
+ if (void 0 !== e.or) {
544
+ const a = i, s = i;
545
+ let l = !1, m = null;
546
+ const p = i;
547
+ if (u(e.or, { instancePath: t + "/or", parentData: e, parentDataProperty: "or", rootData: n }) || (r = null === r ? u.errors : r.concat(u.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
548
+ const e = { instancePath: t + "/or", schemaPath: "#/properties/or/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
549
+ return null === r ? r = [e] : r.push(e), i++, y.errors = r, !1;
550
+ }
551
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
552
+ }
553
+ else
554
+ o = !0;
555
+ }
556
+ }
557
+ }
558
+ } return y.errors = r, 0 === i; }
559
+ function f(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; if (!(e instanceof RegExp)) {
560
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
561
+ null === r ? r = [e] : r.push(e), i++;
562
+ } var p = m === i; if (l = l || p, !l) {
563
+ const o = i;
564
+ if ("string" != typeof e) {
565
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
566
+ null === r ? r = [e] : r.push(e), i++;
567
+ }
568
+ if (p = o === i, l = l || p, !l) {
569
+ const o = i;
570
+ if (y(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? y.errors : r.concat(y.errors), i = r.length), p = o === i, l = l || p, !l) {
571
+ const o = i;
572
+ u(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? u.errors : r.concat(u.errors), i = r.length), p = o === i, l = l || p;
573
+ }
574
+ }
575
+ } if (!l) {
576
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
577
+ return null === r ? r = [e] : r.push(e), i++, f.errors = r, !1;
578
+ } return i = o, null !== r && (o ? r.length = o : r = null), f.errors = r, 0 === i; }
579
+ function d(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; f(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? f.errors : r.concat(f.errors), i = r.length); var p = m === i; if (l = l || p, !l) {
580
+ const o = i;
581
+ u(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? u.errors : r.concat(u.errors), i = r.length), p = o === i, l = l || p;
582
+ } if (!l) {
583
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
584
+ return null === r ? r = [e] : r.push(e), i++, d.errors = r, !1;
585
+ } return i = o, null !== r && (o ? r.length = o : r = null), d.errors = r, 0 === i; }
586
+ function g(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
587
+ if (!e || "object" != typeof e || Array.isArray(e))
588
+ return g.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
589
+ if (void 0 !== e.alias) {
590
+ let a = e.alias;
591
+ const s = i, n = i;
592
+ let m = !1;
593
+ const p = i;
594
+ if (i === p)
595
+ if (a && "object" == typeof a && !Array.isArray(a))
596
+ for (const e in a) {
597
+ let s = a[e];
598
+ const n = i, l = i;
599
+ let m = !1;
600
+ const p = i;
601
+ if (i === p)
602
+ if (Array.isArray(s)) {
603
+ const a = s.length;
604
+ for (let n = 0; n < a; n++) {
605
+ let a = s[n];
606
+ const o = i;
607
+ if (i === o)
608
+ if ("string" == typeof a) {
609
+ if (a.length < 1) {
610
+ const a = { instancePath: t + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + n, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
611
+ null === r ? r = [a] : r.push(a), i++;
612
+ }
613
+ }
614
+ else {
615
+ const a = { instancePath: t + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + n, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
616
+ null === r ? r = [a] : r.push(a), i++;
617
+ }
618
+ if (o !== i)
619
+ break;
620
+ }
621
+ }
622
+ else {
623
+ const a = { instancePath: t + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
624
+ null === r ? r = [a] : r.push(a), i++;
625
+ }
626
+ var o = p === i;
627
+ if (m = m || o, !m) {
628
+ const a = i;
629
+ if (!1 !== s) {
630
+ const a = { instancePath: t + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/1/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
631
+ null === r ? r = [a] : r.push(a), i++;
632
+ }
633
+ if (o = a === i, m = m || o, !m) {
634
+ const a = i;
635
+ if (i === a)
636
+ if ("string" == typeof s) {
637
+ if (s.length < 1) {
638
+ const a = { instancePath: t + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
639
+ null === r ? r = [a] : r.push(a), i++;
640
+ }
641
+ }
642
+ else {
643
+ const a = { instancePath: t + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
644
+ null === r ? r = [a] : r.push(a), i++;
645
+ }
646
+ o = a === i, m = m || o;
647
+ }
648
+ }
649
+ if (m)
650
+ i = l, null !== r && (l ? r.length = l : r = null);
651
+ else {
652
+ const a = { instancePath: t + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
653
+ null === r ? r = [a] : r.push(a), i++;
654
+ }
655
+ if (n !== i)
656
+ break;
657
+ }
658
+ else {
659
+ const e = { instancePath: t + "/alias", schemaPath: "#/definitions/ResolveAlias/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
660
+ null === r ? r = [e] : r.push(e), i++;
661
+ }
662
+ if (m = m || p === i, !m) {
663
+ const e = { instancePath: t + "/alias", schemaPath: "#/definitions/ResolveAlias/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
664
+ return null === r ? r = [e] : r.push(e), i++, g.errors = r, !1;
665
+ }
666
+ i = n, null !== r && (n ? r.length = n : r = null);
667
+ var l = s === i;
668
+ }
669
+ else
670
+ l = !0;
671
+ if (l) {
672
+ if (void 0 !== e.browserField) {
673
+ const a = i;
674
+ if ("boolean" != typeof e.browserField)
675
+ return g.errors = [{ instancePath: t + "/browserField", schemaPath: "#/properties/browserField/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
676
+ l = a === i;
677
+ }
678
+ else
679
+ l = !0;
680
+ if (l) {
681
+ if (void 0 !== e.conditionNames) {
682
+ let a = e.conditionNames;
683
+ const s = i;
684
+ if (i === s) {
685
+ if (!Array.isArray(a))
686
+ return g.errors = [{ instancePath: t + "/conditionNames", schemaPath: "#/properties/conditionNames/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
687
+ {
688
+ const e = a.length;
689
+ for (let s = 0; s < e; s++) {
690
+ const e = i;
691
+ if ("string" != typeof a[s])
692
+ return g.errors = [{ instancePath: t + "/conditionNames/" + s, schemaPath: "#/properties/conditionNames/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
693
+ if (e !== i)
694
+ break;
695
+ }
696
+ }
697
+ }
698
+ l = s === i;
699
+ }
700
+ else
701
+ l = !0;
702
+ if (l) {
703
+ if (void 0 !== e.extensions) {
704
+ let a = e.extensions;
705
+ const s = i;
706
+ if (i === s) {
707
+ if (!Array.isArray(a))
708
+ return g.errors = [{ instancePath: t + "/extensions", schemaPath: "#/properties/extensions/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
709
+ {
710
+ const e = a.length;
711
+ for (let s = 0; s < e; s++) {
712
+ const e = i;
713
+ if ("string" != typeof a[s])
714
+ return g.errors = [{ instancePath: t + "/extensions/" + s, schemaPath: "#/properties/extensions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
715
+ if (e !== i)
716
+ break;
717
+ }
718
+ }
719
+ }
720
+ l = s === i;
721
+ }
722
+ else
723
+ l = !0;
724
+ if (l) {
725
+ if (void 0 !== e.fallback) {
726
+ let a = e.fallback;
727
+ const s = i, n = i;
728
+ let o = !1, p = null;
729
+ const c = i, h = i;
730
+ let u = !1;
731
+ const y = i;
732
+ if (i === y)
733
+ if (a && "object" == typeof a && !Array.isArray(a))
734
+ for (const e in a) {
735
+ let s = a[e];
736
+ const n = i, o = i;
737
+ let l = !1;
738
+ const p = i;
739
+ if (i === p)
740
+ if (Array.isArray(s)) {
741
+ const a = s.length;
742
+ for (let n = 0; n < a; n++) {
743
+ let a = s[n];
744
+ const o = i;
745
+ if (i === o)
746
+ if ("string" == typeof a) {
747
+ if (a.length < 1) {
748
+ const a = { instancePath: t + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + n, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
749
+ null === r ? r = [a] : r.push(a), i++;
750
+ }
751
+ }
752
+ else {
753
+ const a = { instancePath: t + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + n, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
754
+ null === r ? r = [a] : r.push(a), i++;
755
+ }
756
+ if (o !== i)
757
+ break;
758
+ }
759
+ }
760
+ else {
761
+ const a = { instancePath: t + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
762
+ null === r ? r = [a] : r.push(a), i++;
763
+ }
764
+ var m = p === i;
765
+ if (l = l || m, !l) {
766
+ const a = i;
767
+ if (!1 !== s) {
768
+ const a = { instancePath: t + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/1/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
769
+ null === r ? r = [a] : r.push(a), i++;
770
+ }
771
+ if (m = a === i, l = l || m, !l) {
772
+ const a = i;
773
+ if (i === a)
774
+ if ("string" == typeof s) {
775
+ if (s.length < 1) {
776
+ const a = { instancePath: t + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
777
+ null === r ? r = [a] : r.push(a), i++;
778
+ }
779
+ }
780
+ else {
781
+ const a = { instancePath: t + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
782
+ null === r ? r = [a] : r.push(a), i++;
783
+ }
784
+ m = a === i, l = l || m;
785
+ }
786
+ }
787
+ if (l)
788
+ i = o, null !== r && (o ? r.length = o : r = null);
789
+ else {
790
+ const a = { instancePath: t + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
791
+ null === r ? r = [a] : r.push(a), i++;
792
+ }
793
+ if (n !== i)
794
+ break;
795
+ }
796
+ else {
797
+ const e = { instancePath: t + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
798
+ null === r ? r = [e] : r.push(e), i++;
799
+ }
800
+ if (u = u || y === i, u)
801
+ i = h, null !== r && (h ? r.length = h : r = null);
802
+ else {
803
+ const e = { instancePath: t + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
804
+ null === r ? r = [e] : r.push(e), i++;
805
+ }
806
+ if (c === i && (o = !0, p = 0), !o) {
807
+ const e = { instancePath: t + "/fallback", schemaPath: "#/properties/fallback/oneOf", keyword: "oneOf", params: { passingSchemas: p }, message: "must match exactly one schema in oneOf" };
808
+ return null === r ? r = [e] : r.push(e), i++, g.errors = r, !1;
809
+ }
810
+ i = n, null !== r && (n ? r.length = n : r = null), l = s === i;
811
+ }
812
+ else
813
+ l = !0;
814
+ if (l) {
815
+ if (void 0 !== e.mainFields) {
816
+ let a = e.mainFields;
817
+ const s = i;
818
+ if (i === s) {
819
+ if (!Array.isArray(a))
820
+ return g.errors = [{ instancePath: t + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
821
+ {
822
+ const e = a.length;
823
+ for (let s = 0; s < e; s++) {
824
+ let e = a[s];
825
+ const n = i, o = i;
826
+ let l = !1;
827
+ const m = i;
828
+ if (i === m)
829
+ if (Array.isArray(e)) {
830
+ const a = e.length;
831
+ for (let n = 0; n < a; n++) {
832
+ let a = e[n];
833
+ const o = i;
834
+ if (i === o)
835
+ if ("string" == typeof a) {
836
+ if (a.length < 1) {
837
+ const e = { instancePath: t + "/mainFields/" + s + "/" + n, schemaPath: "#/properties/mainFields/items/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
838
+ null === r ? r = [e] : r.push(e), i++;
839
+ }
840
+ }
841
+ else {
842
+ const e = { instancePath: t + "/mainFields/" + s + "/" + n, schemaPath: "#/properties/mainFields/items/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
843
+ null === r ? r = [e] : r.push(e), i++;
844
+ }
845
+ if (o !== i)
846
+ break;
847
+ }
848
+ }
849
+ else {
850
+ const e = { instancePath: t + "/mainFields/" + s, schemaPath: "#/properties/mainFields/items/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
851
+ null === r ? r = [e] : r.push(e), i++;
852
+ }
853
+ var p = m === i;
854
+ if (l = l || p, !l) {
855
+ const a = i;
856
+ if (i === a)
857
+ if ("string" == typeof e) {
858
+ if (e.length < 1) {
859
+ const e = { instancePath: t + "/mainFields/" + s, schemaPath: "#/properties/mainFields/items/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
860
+ null === r ? r = [e] : r.push(e), i++;
861
+ }
862
+ }
863
+ else {
864
+ const e = { instancePath: t + "/mainFields/" + s, schemaPath: "#/properties/mainFields/items/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
865
+ null === r ? r = [e] : r.push(e), i++;
866
+ }
867
+ p = a === i, l = l || p;
868
+ }
869
+ if (!l) {
870
+ const e = { instancePath: t + "/mainFields/" + s, schemaPath: "#/properties/mainFields/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
871
+ return null === r ? r = [e] : r.push(e), i++, g.errors = r, !1;
872
+ }
873
+ if (i = o, null !== r && (o ? r.length = o : r = null), n !== i)
874
+ break;
875
+ }
876
+ }
877
+ }
878
+ l = s === i;
879
+ }
880
+ else
881
+ l = !0;
882
+ if (l) {
883
+ if (void 0 !== e.mainFiles) {
884
+ let a = e.mainFiles;
885
+ const s = i;
886
+ if (i === s) {
887
+ if (!Array.isArray(a))
888
+ return g.errors = [{ instancePath: t + "/mainFiles", schemaPath: "#/properties/mainFiles/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
889
+ {
890
+ const e = a.length;
891
+ for (let s = 0; s < e; s++) {
892
+ let e = a[s];
893
+ const n = i;
894
+ if (i === n) {
895
+ if ("string" != typeof e)
896
+ return g.errors = [{ instancePath: t + "/mainFiles/" + s, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
897
+ if (e.length < 1)
898
+ return g.errors = [{ instancePath: t + "/mainFiles/" + s, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' }], !1;
899
+ }
900
+ if (n !== i)
901
+ break;
902
+ }
903
+ }
904
+ }
905
+ l = s === i;
906
+ }
907
+ else
908
+ l = !0;
909
+ if (l) {
910
+ if (void 0 !== e.modules) {
911
+ let a = e.modules;
912
+ const s = i;
913
+ if (i === s) {
914
+ if (!Array.isArray(a))
915
+ return g.errors = [{ instancePath: t + "/modules", schemaPath: "#/properties/modules/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
916
+ {
917
+ const e = a.length;
918
+ for (let s = 0; s < e; s++) {
919
+ let e = a[s];
920
+ const n = i;
921
+ if (i === n) {
922
+ if ("string" != typeof e)
923
+ return g.errors = [{ instancePath: t + "/modules/" + s, schemaPath: "#/properties/modules/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
924
+ if (e.length < 1)
925
+ return g.errors = [{ instancePath: t + "/modules/" + s, schemaPath: "#/properties/modules/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' }], !1;
926
+ }
927
+ if (n !== i)
928
+ break;
929
+ }
930
+ }
931
+ }
932
+ l = s === i;
933
+ }
934
+ else
935
+ l = !0;
936
+ if (l) {
937
+ if (void 0 !== e.preferRelative) {
938
+ const a = i;
939
+ if ("boolean" != typeof e.preferRelative)
940
+ return g.errors = [{ instancePath: t + "/preferRelative", schemaPath: "#/properties/preferRelative/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
941
+ l = a === i;
942
+ }
943
+ else
944
+ l = !0;
945
+ if (l)
946
+ if (void 0 !== e.tsConfigPath) {
947
+ const a = i;
948
+ if ("string" != typeof e.tsConfigPath)
949
+ return g.errors = [{ instancePath: t + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
950
+ l = a === i;
951
+ }
952
+ else
953
+ l = !0;
954
+ }
955
+ }
956
+ }
957
+ }
958
+ }
959
+ }
960
+ }
961
+ }
962
+ } return g.errors = r, 0 === i; }
963
+ function P(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; if (i === m)
964
+ if (e && "object" == typeof e && !Array.isArray(e)) {
965
+ const a = i;
966
+ for (const a in e)
967
+ if ("loader" !== a && "options" !== a) {
968
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" };
969
+ null === r ? r = [e] : r.push(e), i++;
970
+ break;
971
+ }
972
+ if (a === i) {
973
+ if (void 0 !== e.loader) {
974
+ let a = e.loader;
975
+ const s = i, n = i;
976
+ let o = !1, l = null;
977
+ const m = i;
978
+ if (i == i)
979
+ if ("string" == typeof a) {
980
+ if (a.length < 1) {
981
+ const e = { instancePath: t + "/loader", schemaPath: "#/definitions/RuleSetLoader/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
982
+ null === r ? r = [e] : r.push(e), i++;
983
+ }
984
+ }
985
+ else {
986
+ const e = { instancePath: t + "/loader", schemaPath: "#/definitions/RuleSetLoader/type", keyword: "type", params: { type: "string" }, message: "must be string" };
987
+ null === r ? r = [e] : r.push(e), i++;
988
+ }
989
+ if (m === i && (o = !0, l = 0), o)
990
+ i = n, null !== r && (n ? r.length = n : r = null);
991
+ else {
992
+ const e = { instancePath: t + "/loader", schemaPath: "#/anyOf/0/properties/loader/oneOf", keyword: "oneOf", params: { passingSchemas: l }, message: "must match exactly one schema in oneOf" };
993
+ null === r ? r = [e] : r.push(e), i++;
994
+ }
995
+ var p = s === i;
996
+ }
997
+ else
998
+ p = !0;
999
+ if (p)
1000
+ if (void 0 !== e.options) {
1001
+ let a = e.options;
1002
+ const s = i, n = i;
1003
+ let o = !1, l = null;
1004
+ const m = i, h = i;
1005
+ let u = !1;
1006
+ const y = i;
1007
+ if ("string" != typeof a) {
1008
+ const e = { instancePath: t + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1009
+ null === r ? r = [e] : r.push(e), i++;
1010
+ }
1011
+ var c = y === i;
1012
+ if (u = u || c, !u) {
1013
+ const e = i;
1014
+ if (!a || "object" != typeof a || Array.isArray(a)) {
1015
+ const e = { instancePath: t + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1016
+ null === r ? r = [e] : r.push(e), i++;
1017
+ }
1018
+ c = e === i, u = u || c;
1019
+ }
1020
+ if (u)
1021
+ i = h, null !== r && (h ? r.length = h : r = null);
1022
+ else {
1023
+ const e = { instancePath: t + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1024
+ null === r ? r = [e] : r.push(e), i++;
1025
+ }
1026
+ if (m === i && (o = !0, l = 0), o)
1027
+ i = n, null !== r && (n ? r.length = n : r = null);
1028
+ else {
1029
+ const e = { instancePath: t + "/options", schemaPath: "#/anyOf/0/properties/options/oneOf", keyword: "oneOf", params: { passingSchemas: l }, message: "must match exactly one schema in oneOf" };
1030
+ null === r ? r = [e] : r.push(e), i++;
1031
+ }
1032
+ p = s === i;
1033
+ }
1034
+ else
1035
+ p = !0;
1036
+ }
1037
+ }
1038
+ else {
1039
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1040
+ null === r ? r = [e] : r.push(e), i++;
1041
+ } var h = m === i; if (l = l || h, !l) {
1042
+ const a = i;
1043
+ if (i == i)
1044
+ if ("string" == typeof e) {
1045
+ if (e.length < 1) {
1046
+ const e = { instancePath: t, schemaPath: "#/definitions/RuleSetLoader/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
1047
+ null === r ? r = [e] : r.push(e), i++;
1048
+ }
1049
+ }
1050
+ else {
1051
+ const e = { instancePath: t, schemaPath: "#/definitions/RuleSetLoader/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1052
+ null === r ? r = [e] : r.push(e), i++;
1053
+ }
1054
+ h = a === i, l = l || h;
1055
+ } if (!l) {
1056
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1057
+ return null === r ? r = [e] : r.push(e), i++, P.errors = r, !1;
1058
+ } return i = o, null !== r && (o ? r.length = o : r = null), P.errors = r, 0 === i; }
1059
+ function b(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; if (i === m)
1060
+ if (Array.isArray(e)) {
1061
+ const a = e.length;
1062
+ for (let s = 0; s < a; s++) {
1063
+ const a = i, o = i;
1064
+ let l = !1, m = null;
1065
+ const p = i;
1066
+ if (P(e[s], { instancePath: t + "/" + s, parentData: e, parentDataProperty: s, rootData: n }) || (r = null === r ? P.errors : r.concat(P.errors), i = r.length), p === i && (l = !0, m = 0), l)
1067
+ i = o, null !== r && (o ? r.length = o : r = null);
1068
+ else {
1069
+ const e = { instancePath: t + "/" + s, schemaPath: "#/anyOf/0/items/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1070
+ null === r ? r = [e] : r.push(e), i++;
1071
+ }
1072
+ if (a !== i)
1073
+ break;
1074
+ }
1075
+ }
1076
+ else {
1077
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1078
+ null === r ? r = [e] : r.push(e), i++;
1079
+ } var p = m === i; if (l = l || p, !l) {
1080
+ const o = i;
1081
+ P(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? P.errors : r.concat(P.errors), i = r.length), p = o === i, l = l || p;
1082
+ } if (!l) {
1083
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1084
+ return null === r ? r = [e] : r.push(e), i++, b.errors = r, !1;
1085
+ } return i = o, null !== r && (o ? r.length = o : r = null), b.errors = r, 0 === i; }
1086
+ const O = { validate: k };
1087
+ function k(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
1088
+ if (!e || "object" != typeof e || Array.isArray(e))
1089
+ return k.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1090
+ {
1091
+ const a = i;
1092
+ for (const a in e)
1093
+ if (!c.call(p, a))
1094
+ return k.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" }], !1;
1095
+ if (a === i) {
1096
+ if (void 0 !== e.exclude) {
1097
+ const a = i, s = i;
1098
+ let l = !1, m = null;
1099
+ const p = i;
1100
+ if (d(e.exclude, { instancePath: t + "/exclude", parentData: e, parentDataProperty: "exclude", rootData: n }) || (r = null === r ? d.errors : r.concat(d.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1101
+ const e = { instancePath: t + "/exclude", schemaPath: "#/properties/exclude/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1102
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1103
+ }
1104
+ i = s, null !== r && (s ? r.length = s : r = null);
1105
+ var o = a === i;
1106
+ }
1107
+ else
1108
+ o = !0;
1109
+ if (o) {
1110
+ if (void 0 !== e.generator) {
1111
+ let a = e.generator;
1112
+ const s = i;
1113
+ if (!a || "object" != typeof a || Array.isArray(a))
1114
+ return k.errors = [{ instancePath: t + "/generator", schemaPath: "#/properties/generator/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1115
+ o = s === i;
1116
+ }
1117
+ else
1118
+ o = !0;
1119
+ if (o) {
1120
+ if (void 0 !== e.include) {
1121
+ const a = i, s = i;
1122
+ let l = !1, m = null;
1123
+ const p = i;
1124
+ if (d(e.include, { instancePath: t + "/include", parentData: e, parentDataProperty: "include", rootData: n }) || (r = null === r ? d.errors : r.concat(d.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1125
+ const e = { instancePath: t + "/include", schemaPath: "#/properties/include/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1126
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1127
+ }
1128
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
1129
+ }
1130
+ else
1131
+ o = !0;
1132
+ if (o) {
1133
+ if (void 0 !== e.issuer) {
1134
+ const a = i, s = i;
1135
+ let l = !1, m = null;
1136
+ const p = i;
1137
+ if (d(e.issuer, { instancePath: t + "/issuer", parentData: e, parentDataProperty: "issuer", rootData: n }) || (r = null === r ? d.errors : r.concat(d.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1138
+ const e = { instancePath: t + "/issuer", schemaPath: "#/properties/issuer/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1139
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1140
+ }
1141
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
1142
+ }
1143
+ else
1144
+ o = !0;
1145
+ if (o) {
1146
+ if (void 0 !== e.oneOf) {
1147
+ let a = e.oneOf;
1148
+ const s = i;
1149
+ if (i === s) {
1150
+ if (!Array.isArray(a))
1151
+ return k.errors = [{ instancePath: t + "/oneOf", schemaPath: "#/properties/oneOf/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
1152
+ {
1153
+ const e = a.length;
1154
+ for (let s = 0; s < e; s++) {
1155
+ const e = i, o = i;
1156
+ let l = !1, m = null;
1157
+ const p = i;
1158
+ if (O.validate(a[s], { instancePath: t + "/oneOf/" + s, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? O.validate.errors : r.concat(O.validate.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1159
+ const e = { instancePath: t + "/oneOf/" + s, schemaPath: "#/properties/oneOf/items/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1160
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1161
+ }
1162
+ if (i = o, null !== r && (o ? r.length = o : r = null), e !== i)
1163
+ break;
1164
+ }
1165
+ }
1166
+ }
1167
+ o = s === i;
1168
+ }
1169
+ else
1170
+ o = !0;
1171
+ if (o) {
1172
+ if (void 0 !== e.parser) {
1173
+ let a = e.parser;
1174
+ const s = i;
1175
+ if (i === s && (!a || "object" != typeof a || Array.isArray(a)))
1176
+ return k.errors = [{ instancePath: t + "/parser", schemaPath: "#/properties/parser/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1177
+ o = s === i;
1178
+ }
1179
+ else
1180
+ o = !0;
1181
+ if (o) {
1182
+ if (void 0 !== e.resolve) {
1183
+ let a = e.resolve;
1184
+ const s = i;
1185
+ if (!a || "object" != typeof a || Array.isArray(a))
1186
+ return k.errors = [{ instancePath: t + "/resolve", schemaPath: "#/properties/resolve/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1187
+ const l = i;
1188
+ let m = !1, p = null;
1189
+ const c = i;
1190
+ if (g(a, { instancePath: t + "/resolve", parentData: e, parentDataProperty: "resolve", rootData: n }) || (r = null === r ? g.errors : r.concat(g.errors), i = r.length), c === i && (m = !0, p = 0), !m) {
1191
+ const e = { instancePath: t + "/resolve", schemaPath: "#/properties/resolve/oneOf", keyword: "oneOf", params: { passingSchemas: p }, message: "must match exactly one schema in oneOf" };
1192
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1193
+ }
1194
+ i = l, null !== r && (l ? r.length = l : r = null), o = s === i;
1195
+ }
1196
+ else
1197
+ o = !0;
1198
+ if (o) {
1199
+ if (void 0 !== e.resource) {
1200
+ const a = i, s = i;
1201
+ let l = !1, m = null;
1202
+ const p = i;
1203
+ if (d(e.resource, { instancePath: t + "/resource", parentData: e, parentDataProperty: "resource", rootData: n }) || (r = null === r ? d.errors : r.concat(d.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1204
+ const e = { instancePath: t + "/resource", schemaPath: "#/properties/resource/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1205
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1206
+ }
1207
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
1208
+ }
1209
+ else
1210
+ o = !0;
1211
+ if (o) {
1212
+ if (void 0 !== e.resourceFragment) {
1213
+ const a = i, s = i;
1214
+ let l = !1, m = null;
1215
+ const p = i;
1216
+ if (d(e.resourceFragment, { instancePath: t + "/resourceFragment", parentData: e, parentDataProperty: "resourceFragment", rootData: n }) || (r = null === r ? d.errors : r.concat(d.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1217
+ const e = { instancePath: t + "/resourceFragment", schemaPath: "#/properties/resourceFragment/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1218
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1219
+ }
1220
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
1221
+ }
1222
+ else
1223
+ o = !0;
1224
+ if (o) {
1225
+ if (void 0 !== e.resourceQuery) {
1226
+ const a = i, s = i;
1227
+ let l = !1, m = null;
1228
+ const p = i;
1229
+ if (d(e.resourceQuery, { instancePath: t + "/resourceQuery", parentData: e, parentDataProperty: "resourceQuery", rootData: n }) || (r = null === r ? d.errors : r.concat(d.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1230
+ const e = { instancePath: t + "/resourceQuery", schemaPath: "#/properties/resourceQuery/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1231
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1232
+ }
1233
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
1234
+ }
1235
+ else
1236
+ o = !0;
1237
+ if (o) {
1238
+ if (void 0 !== e.rules) {
1239
+ let a = e.rules;
1240
+ const s = i;
1241
+ if (i === s) {
1242
+ if (!Array.isArray(a))
1243
+ return k.errors = [{ instancePath: t + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
1244
+ {
1245
+ const e = a.length;
1246
+ for (let s = 0; s < e; s++) {
1247
+ const e = i, o = i;
1248
+ let l = !1, m = null;
1249
+ const p = i;
1250
+ if (O.validate(a[s], { instancePath: t + "/rules/" + s, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? O.validate.errors : r.concat(O.validate.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1251
+ const e = { instancePath: t + "/rules/" + s, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1252
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1253
+ }
1254
+ if (i = o, null !== r && (o ? r.length = o : r = null), e !== i)
1255
+ break;
1256
+ }
1257
+ }
1258
+ }
1259
+ o = s === i;
1260
+ }
1261
+ else
1262
+ o = !0;
1263
+ if (o) {
1264
+ if (void 0 !== e.sideEffects) {
1265
+ const a = i;
1266
+ if ("boolean" != typeof e.sideEffects)
1267
+ return k.errors = [{ instancePath: t + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
1268
+ o = a === i;
1269
+ }
1270
+ else
1271
+ o = !0;
1272
+ if (o) {
1273
+ if (void 0 !== e.test) {
1274
+ const a = i, s = i;
1275
+ let l = !1, m = null;
1276
+ const p = i;
1277
+ if (d(e.test, { instancePath: t + "/test", parentData: e, parentDataProperty: "test", rootData: n }) || (r = null === r ? d.errors : r.concat(d.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1278
+ const e = { instancePath: t + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1279
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1280
+ }
1281
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
1282
+ }
1283
+ else
1284
+ o = !0;
1285
+ if (o) {
1286
+ if (void 0 !== e.type) {
1287
+ const a = i;
1288
+ if ("string" != typeof e.type)
1289
+ return k.errors = [{ instancePath: t + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
1290
+ o = a === i;
1291
+ }
1292
+ else
1293
+ o = !0;
1294
+ if (o)
1295
+ if (void 0 !== e.use) {
1296
+ const a = i, s = i;
1297
+ let l = !1, m = null;
1298
+ const p = i;
1299
+ if (b(e.use, { instancePath: t + "/use", parentData: e, parentDataProperty: "use", rootData: n }) || (r = null === r ? b.errors : r.concat(b.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1300
+ const e = { instancePath: t + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1301
+ return null === r ? r = [e] : r.push(e), i++, k.errors = r, !1;
1302
+ }
1303
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
1304
+ }
1305
+ else
1306
+ o = !0;
1307
+ }
1308
+ }
1309
+ }
1310
+ }
1311
+ }
1312
+ }
1313
+ }
1314
+ }
1315
+ }
1316
+ }
1317
+ }
1318
+ }
1319
+ }
1320
+ }
1321
+ }
1322
+ } return k.errors = r, 0 === i; }
1323
+ function w(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
1324
+ if (!Array.isArray(e))
1325
+ return w.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
1326
+ {
1327
+ const a = e.length;
1328
+ for (let s = 0; s < a; s++) {
1329
+ let a = e[s];
1330
+ const l = i, m = i;
1331
+ let p = !1;
1332
+ const c = i;
1333
+ if ("..." !== a) {
1334
+ const e = { instancePath: t + "/" + s, schemaPath: "#/items/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1335
+ null === r ? r = [e] : r.push(e), i++;
1336
+ }
1337
+ var o = c === i;
1338
+ if (p = p || o, !p) {
1339
+ const l = i;
1340
+ k(a, { instancePath: t + "/" + s, parentData: e, parentDataProperty: s, rootData: n }) || (r = null === r ? k.errors : r.concat(k.errors), i = r.length), o = l === i, p = p || o;
1341
+ }
1342
+ if (!p) {
1343
+ const e = { instancePath: t + "/" + s, schemaPath: "#/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1344
+ return null === r ? r = [e] : r.push(e), i++, w.errors = r, !1;
1345
+ }
1346
+ if (i = m, null !== r && (m ? r.length = m : r = null), l !== i)
1347
+ break;
1348
+ }
1349
+ }
1350
+ } return w.errors = r, 0 === i; }
1351
+ function v(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
1352
+ if (!e || "object" != typeof e || Array.isArray(e))
1353
+ return v.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1354
+ {
1355
+ const a = i;
1356
+ for (const a in e)
1357
+ if ("dataUrlCondition" !== a)
1358
+ return v.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" }], !1;
1359
+ if (a === i && void 0 !== e.dataUrlCondition) {
1360
+ let a = e.dataUrlCondition;
1361
+ const s = i;
1362
+ let n = !1;
1363
+ const o = i;
1364
+ if (i == i)
1365
+ if (a && "object" == typeof a && !Array.isArray(a)) {
1366
+ const e = i;
1367
+ for (const e in a)
1368
+ if ("maxSize" !== e) {
1369
+ const a = { instancePath: t + "/dataUrlCondition", schemaPath: "#/definitions/AssetParserDataUrlOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: e }, message: "must NOT have additional properties" };
1370
+ null === r ? r = [a] : r.push(a), i++;
1371
+ break;
1372
+ }
1373
+ if (e === i && void 0 !== a.maxSize && "number" != typeof a.maxSize) {
1374
+ const e = { instancePath: t + "/dataUrlCondition/maxSize", schemaPath: "#/definitions/AssetParserDataUrlOptions/properties/maxSize/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1375
+ null === r ? r = [e] : r.push(e), i++;
1376
+ }
1377
+ }
1378
+ else {
1379
+ const e = { instancePath: t + "/dataUrlCondition", schemaPath: "#/definitions/AssetParserDataUrlOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1380
+ null === r ? r = [e] : r.push(e), i++;
1381
+ }
1382
+ if (n = n || o === i, !n) {
1383
+ const e = { instancePath: t + "/dataUrlCondition", schemaPath: "#/properties/dataUrlCondition/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1384
+ return null === r ? r = [e] : r.push(e), i++, v.errors = r, !1;
1385
+ }
1386
+ i = s, null !== r && (s ? r.length = s : r = null);
1387
+ }
1388
+ }
1389
+ } return v.errors = r, 0 === i; }
1390
+ function D(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
1391
+ if (!e || "object" != typeof e || Array.isArray(e))
1392
+ return D.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1393
+ {
1394
+ const a = i;
1395
+ for (const a in e)
1396
+ if ("asset" !== a) {
1397
+ let s = e[a];
1398
+ const n = i;
1399
+ if (i === n && (!s || "object" != typeof s || Array.isArray(s)))
1400
+ return D.errors = [{ instancePath: t + "/" + a.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1401
+ if (n !== i)
1402
+ break;
1403
+ }
1404
+ a === i && void 0 !== e.asset && (v(e.asset, { instancePath: t + "/asset", parentData: e, parentDataProperty: "asset", rootData: n }) || (r = null === r ? v.errors : r.concat(v.errors), i = r.length));
1405
+ }
1406
+ } return D.errors = r, 0 === i; }
1407
+ function j(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
1408
+ if (!e || "object" != typeof e || Array.isArray(e))
1409
+ return j.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1410
+ {
1411
+ const a = i;
1412
+ for (const a in e)
1413
+ if ("defaultRules" !== a && "parser" !== a && "rules" !== a)
1414
+ return j.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" }], !1;
1415
+ if (a === i) {
1416
+ if (void 0 !== e.defaultRules) {
1417
+ const a = i, s = i;
1418
+ let l = !1, m = null;
1419
+ const p = i;
1420
+ if (w(e.defaultRules, { instancePath: t + "/defaultRules", parentData: e, parentDataProperty: "defaultRules", rootData: n }) || (r = null === r ? w.errors : r.concat(w.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1421
+ const e = { instancePath: t + "/defaultRules", schemaPath: "#/properties/defaultRules/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1422
+ return null === r ? r = [e] : r.push(e), i++, j.errors = r, !1;
1423
+ }
1424
+ i = s, null !== r && (s ? r.length = s : r = null);
1425
+ var o = a === i;
1426
+ }
1427
+ else
1428
+ o = !0;
1429
+ if (o) {
1430
+ if (void 0 !== e.parser) {
1431
+ const a = i;
1432
+ D(e.parser, { instancePath: t + "/parser", parentData: e, parentDataProperty: "parser", rootData: n }) || (r = null === r ? D.errors : r.concat(D.errors), i = r.length), o = a === i;
1433
+ }
1434
+ else
1435
+ o = !0;
1436
+ if (o)
1437
+ if (void 0 !== e.rules) {
1438
+ const a = i, s = i;
1439
+ let l = !1, m = null;
1440
+ const p = i;
1441
+ if (w(e.rules, { instancePath: t + "/rules", parentData: e, parentDataProperty: "rules", rootData: n }) || (r = null === r ? w.errors : r.concat(w.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
1442
+ const e = { instancePath: t + "/rules", schemaPath: "#/properties/rules/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
1443
+ return null === r ? r = [e] : r.push(e), i++, j.errors = r, !1;
1444
+ }
1445
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
1446
+ }
1447
+ else
1448
+ o = !0;
1449
+ }
1450
+ }
1451
+ }
1452
+ } return j.errors = r, 0 === i; }
1453
+ function A(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; if (!1 !== e) {
1454
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1455
+ null === r ? r = [e] : r.push(e), i++;
1456
+ } var p = m === i; if (l = l || p, !l) {
1457
+ const a = i;
1458
+ if (i == i)
1459
+ if (e && "object" == typeof e && !Array.isArray(e)) {
1460
+ const a = i;
1461
+ for (const a in e)
1462
+ if ("__dirname" !== a && "global" !== a) {
1463
+ const e = { instancePath: t, schemaPath: "#/definitions/NodeOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" };
1464
+ null === r ? r = [e] : r.push(e), i++;
1465
+ break;
1466
+ }
1467
+ if (a === i) {
1468
+ if (void 0 !== e.__dirname) {
1469
+ let a = e.__dirname;
1470
+ const s = i;
1471
+ if (!1 !== a && !0 !== a && "warn-mock" !== a && "mock" !== a && "eval-only" !== a) {
1472
+ const e = { instancePath: t + "/__dirname", schemaPath: "#/definitions/NodeOptions/properties/__dirname/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1473
+ null === r ? r = [e] : r.push(e), i++;
1474
+ }
1475
+ var c = s === i;
1476
+ }
1477
+ else
1478
+ c = !0;
1479
+ if (c)
1480
+ if (void 0 !== e.global) {
1481
+ let a = e.global;
1482
+ const s = i;
1483
+ if (!1 !== a && !0 !== a && "warn" !== a) {
1484
+ const e = { instancePath: t + "/global", schemaPath: "#/definitions/NodeOptions/properties/global/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1485
+ null === r ? r = [e] : r.push(e), i++;
1486
+ }
1487
+ c = s === i;
1488
+ }
1489
+ else
1490
+ c = !0;
1491
+ }
1492
+ }
1493
+ else {
1494
+ const e = { instancePath: t, schemaPath: "#/definitions/NodeOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1495
+ null === r ? r = [e] : r.push(e), i++;
1496
+ }
1497
+ p = a === i, l = l || p;
1498
+ } if (!l) {
1499
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1500
+ return null === r ? r = [e] : r.push(e), i++, A.errors = r, !1;
1501
+ } return i = o, null !== r && (o ? r.length = o : r = null), A.errors = r, 0 === i; }
1502
+ function L(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
1503
+ if (!e || "object" != typeof e || Array.isArray(e))
1504
+ return L.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1505
+ if (void 0 !== e.cacheGroups) {
1506
+ let a = e.cacheGroups;
1507
+ const s = i;
1508
+ if (i === s) {
1509
+ if (!a || "object" != typeof a || Array.isArray(a))
1510
+ return L.errors = [{ instancePath: t + "/cacheGroups", schemaPath: "#/properties/cacheGroups/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1511
+ for (const e in a) {
1512
+ let s = a[e];
1513
+ const n = i, p = i;
1514
+ let c = !1;
1515
+ const h = i;
1516
+ if (i == i)
1517
+ if (s && "object" == typeof s && !Array.isArray(s)) {
1518
+ if (void 0 !== s.chunks) {
1519
+ let a = s.chunks;
1520
+ const n = i, m = i;
1521
+ let p = !1;
1522
+ const c = i;
1523
+ if ("initial" !== a && "async" !== a && "all" !== a) {
1524
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/chunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/chunks/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1525
+ null === r ? r = [a] : r.push(a), i++;
1526
+ }
1527
+ var o = c === i;
1528
+ if (p = p || o, !p) {
1529
+ const s = i;
1530
+ if (!(a instanceof Function)) {
1531
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/chunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/chunks/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
1532
+ null === r ? r = [a] : r.push(a), i++;
1533
+ }
1534
+ o = s === i, p = p || o;
1535
+ }
1536
+ if (p)
1537
+ i = m, null !== r && (m ? r.length = m : r = null);
1538
+ else {
1539
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/chunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/chunks/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1540
+ null === r ? r = [a] : r.push(a), i++;
1541
+ }
1542
+ var l = n === i;
1543
+ }
1544
+ else
1545
+ l = !0;
1546
+ if (l) {
1547
+ if (void 0 !== s.minChunks) {
1548
+ let a = s.minChunks;
1549
+ const n = i;
1550
+ if (i === n)
1551
+ if ("number" == typeof a) {
1552
+ if (a < 1 || isNaN(a)) {
1553
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/minChunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
1554
+ null === r ? r = [a] : r.push(a), i++;
1555
+ }
1556
+ }
1557
+ else {
1558
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/minChunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1559
+ null === r ? r = [a] : r.push(a), i++;
1560
+ }
1561
+ l = n === i;
1562
+ }
1563
+ else
1564
+ l = !0;
1565
+ if (l) {
1566
+ if (void 0 !== s.name) {
1567
+ let a = s.name;
1568
+ const n = i, o = i;
1569
+ let p = !1;
1570
+ const c = i;
1571
+ if (!1 !== a) {
1572
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1573
+ null === r ? r = [a] : r.push(a), i++;
1574
+ }
1575
+ var m = c === i;
1576
+ if (p = p || m, !p) {
1577
+ const s = i;
1578
+ if ("string" != typeof a) {
1579
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1580
+ null === r ? r = [a] : r.push(a), i++;
1581
+ }
1582
+ if (m = s === i, p = p || m, !p) {
1583
+ const s = i;
1584
+ if (!(a instanceof Function)) {
1585
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/2/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
1586
+ null === r ? r = [a] : r.push(a), i++;
1587
+ }
1588
+ m = s === i, p = p || m;
1589
+ }
1590
+ }
1591
+ if (p)
1592
+ i = o, null !== r && (o ? r.length = o : r = null);
1593
+ else {
1594
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1595
+ null === r ? r = [a] : r.push(a), i++;
1596
+ }
1597
+ l = n === i;
1598
+ }
1599
+ else
1600
+ l = !0;
1601
+ if (l) {
1602
+ if (void 0 !== s.priority) {
1603
+ const a = i;
1604
+ if ("number" != typeof s.priority) {
1605
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/priority", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/priority/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1606
+ null === r ? r = [a] : r.push(a), i++;
1607
+ }
1608
+ l = a === i;
1609
+ }
1610
+ else
1611
+ l = !0;
1612
+ if (l) {
1613
+ if (void 0 !== s.reuseExistingChunk) {
1614
+ const a = i;
1615
+ if ("boolean" != typeof s.reuseExistingChunk) {
1616
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/reuseExistingChunk", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/reuseExistingChunk/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1617
+ null === r ? r = [a] : r.push(a), i++;
1618
+ }
1619
+ l = a === i;
1620
+ }
1621
+ else
1622
+ l = !0;
1623
+ if (l)
1624
+ if (void 0 !== s.test) {
1625
+ const a = i, n = i;
1626
+ let o = !1;
1627
+ const m = i;
1628
+ if (!(s.test instanceof RegExp)) {
1629
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/test", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/test/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
1630
+ null === r ? r = [a] : r.push(a), i++;
1631
+ }
1632
+ if (o = o || m === i, o)
1633
+ i = n, null !== r && (n ? r.length = n : r = null);
1634
+ else {
1635
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/test", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/test/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1636
+ null === r ? r = [a] : r.push(a), i++;
1637
+ }
1638
+ l = a === i;
1639
+ }
1640
+ else
1641
+ l = !0;
1642
+ }
1643
+ }
1644
+ }
1645
+ }
1646
+ }
1647
+ else {
1648
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1649
+ null === r ? r = [a] : r.push(a), i++;
1650
+ }
1651
+ if (c = c || h === i, !c) {
1652
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/cacheGroups/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1653
+ return null === r ? r = [a] : r.push(a), i++, L.errors = r, !1;
1654
+ }
1655
+ if (i = p, null !== r && (p ? r.length = p : r = null), n !== i)
1656
+ break;
1657
+ }
1658
+ }
1659
+ var p = s === i;
1660
+ }
1661
+ else
1662
+ p = !0;
1663
+ if (p) {
1664
+ if (void 0 !== e.chunks) {
1665
+ let a = e.chunks;
1666
+ const s = i, n = i;
1667
+ let o = !1;
1668
+ const l = i;
1669
+ if ("initial" !== a && "async" !== a && "all" !== a) {
1670
+ const e = { instancePath: t + "/chunks", schemaPath: "#/properties/chunks/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1671
+ null === r ? r = [e] : r.push(e), i++;
1672
+ }
1673
+ if (o = o || l === i, !o) {
1674
+ const e = { instancePath: t + "/chunks", schemaPath: "#/properties/chunks/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1675
+ return null === r ? r = [e] : r.push(e), i++, L.errors = r, !1;
1676
+ }
1677
+ i = n, null !== r && (n ? r.length = n : r = null), p = s === i;
1678
+ }
1679
+ else
1680
+ p = !0;
1681
+ if (p) {
1682
+ if (void 0 !== e.enforceSizeThreshold) {
1683
+ let a = e.enforceSizeThreshold;
1684
+ const s = i, n = i;
1685
+ let o = !1, l = null;
1686
+ const m = i, c = i;
1687
+ let h = !1;
1688
+ const u = i;
1689
+ if (i === u)
1690
+ if ("number" == typeof a) {
1691
+ if (a < 0 || isNaN(a)) {
1692
+ const e = { instancePath: t + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1693
+ null === r ? r = [e] : r.push(e), i++;
1694
+ }
1695
+ }
1696
+ else {
1697
+ const e = { instancePath: t + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1698
+ null === r ? r = [e] : r.push(e), i++;
1699
+ }
1700
+ if (h = h || u === i, h)
1701
+ i = c, null !== r && (c ? r.length = c : r = null);
1702
+ else {
1703
+ const e = { instancePath: t + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1704
+ null === r ? r = [e] : r.push(e), i++;
1705
+ }
1706
+ if (m === i && (o = !0, l = 0), !o) {
1707
+ const e = { instancePath: t + "/enforceSizeThreshold", schemaPath: "#/properties/enforceSizeThreshold/oneOf", keyword: "oneOf", params: { passingSchemas: l }, message: "must match exactly one schema in oneOf" };
1708
+ return null === r ? r = [e] : r.push(e), i++, L.errors = r, !1;
1709
+ }
1710
+ i = n, null !== r && (n ? r.length = n : r = null), p = s === i;
1711
+ }
1712
+ else
1713
+ p = !0;
1714
+ if (p) {
1715
+ if (void 0 !== e.maxAsyncRequests) {
1716
+ let a = e.maxAsyncRequests;
1717
+ const s = i;
1718
+ if (i === s) {
1719
+ if ("number" != typeof a)
1720
+ return L.errors = [{ instancePath: t + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }], !1;
1721
+ if (a < 1 || isNaN(a))
1722
+ return L.errors = [{ instancePath: t + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }], !1;
1723
+ }
1724
+ p = s === i;
1725
+ }
1726
+ else
1727
+ p = !0;
1728
+ if (p) {
1729
+ if (void 0 !== e.maxInitialRequests) {
1730
+ let a = e.maxInitialRequests;
1731
+ const s = i;
1732
+ if (i === s) {
1733
+ if ("number" != typeof a)
1734
+ return L.errors = [{ instancePath: t + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }], !1;
1735
+ if (a < 1 || isNaN(a))
1736
+ return L.errors = [{ instancePath: t + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }], !1;
1737
+ }
1738
+ p = s === i;
1739
+ }
1740
+ else
1741
+ p = !0;
1742
+ if (p) {
1743
+ if (void 0 !== e.minChunks) {
1744
+ let a = e.minChunks;
1745
+ const s = i;
1746
+ if (i === s) {
1747
+ if ("number" != typeof a)
1748
+ return L.errors = [{ instancePath: t + "/minChunks", schemaPath: "#/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" }], !1;
1749
+ if (a < 1 || isNaN(a))
1750
+ return L.errors = [{ instancePath: t + "/minChunks", schemaPath: "#/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }], !1;
1751
+ }
1752
+ p = s === i;
1753
+ }
1754
+ else
1755
+ p = !0;
1756
+ if (p) {
1757
+ if (void 0 !== e.minRemainingSize) {
1758
+ let a = e.minRemainingSize;
1759
+ const s = i, n = i;
1760
+ let o = !1, l = null;
1761
+ const m = i, c = i;
1762
+ let h = !1;
1763
+ const u = i;
1764
+ if (i === u)
1765
+ if ("number" == typeof a) {
1766
+ if (a < 0 || isNaN(a)) {
1767
+ const e = { instancePath: t + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1768
+ null === r ? r = [e] : r.push(e), i++;
1769
+ }
1770
+ }
1771
+ else {
1772
+ const e = { instancePath: t + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1773
+ null === r ? r = [e] : r.push(e), i++;
1774
+ }
1775
+ if (h = h || u === i, h)
1776
+ i = c, null !== r && (c ? r.length = c : r = null);
1777
+ else {
1778
+ const e = { instancePath: t + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1779
+ null === r ? r = [e] : r.push(e), i++;
1780
+ }
1781
+ if (m === i && (o = !0, l = 0), !o) {
1782
+ const e = { instancePath: t + "/minRemainingSize", schemaPath: "#/properties/minRemainingSize/oneOf", keyword: "oneOf", params: { passingSchemas: l }, message: "must match exactly one schema in oneOf" };
1783
+ return null === r ? r = [e] : r.push(e), i++, L.errors = r, !1;
1784
+ }
1785
+ i = n, null !== r && (n ? r.length = n : r = null), p = s === i;
1786
+ }
1787
+ else
1788
+ p = !0;
1789
+ if (p)
1790
+ if (void 0 !== e.minSize) {
1791
+ let a = e.minSize;
1792
+ const s = i, n = i;
1793
+ let o = !1, l = null;
1794
+ const m = i, c = i;
1795
+ let h = !1;
1796
+ const u = i;
1797
+ if (i === u)
1798
+ if ("number" == typeof a) {
1799
+ if (a < 0 || isNaN(a)) {
1800
+ const e = { instancePath: t + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1801
+ null === r ? r = [e] : r.push(e), i++;
1802
+ }
1803
+ }
1804
+ else {
1805
+ const e = { instancePath: t + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1806
+ null === r ? r = [e] : r.push(e), i++;
1807
+ }
1808
+ if (h = h || u === i, h)
1809
+ i = c, null !== r && (c ? r.length = c : r = null);
1810
+ else {
1811
+ const e = { instancePath: t + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1812
+ null === r ? r = [e] : r.push(e), i++;
1813
+ }
1814
+ if (m === i && (o = !0, l = 0), !o) {
1815
+ const e = { instancePath: t + "/minSize", schemaPath: "#/properties/minSize/oneOf", keyword: "oneOf", params: { passingSchemas: l }, message: "must match exactly one schema in oneOf" };
1816
+ return null === r ? r = [e] : r.push(e), i++, L.errors = r, !1;
1817
+ }
1818
+ i = n, null !== r && (n ? r.length = n : r = null), p = s === i;
1819
+ }
1820
+ else
1821
+ p = !0;
1822
+ }
1823
+ }
1824
+ }
1825
+ }
1826
+ }
1827
+ }
1828
+ } return L.errors = r, 0 === i; }
1829
+ function C(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
1830
+ if (!e || "object" != typeof e || Array.isArray(e))
1831
+ return C.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
1832
+ if (void 0 !== e.chunkIds) {
1833
+ let a = e.chunkIds;
1834
+ const s = i;
1835
+ if ("named" !== a && "deterministic" !== a)
1836
+ return C.errors = [{ instancePath: t + "/chunkIds", schemaPath: "#/properties/chunkIds/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' }], !1;
1837
+ var o = s === i;
1838
+ }
1839
+ else
1840
+ o = !0;
1841
+ if (o) {
1842
+ if (void 0 !== e.minimize) {
1843
+ const a = i;
1844
+ if ("boolean" != typeof e.minimize)
1845
+ return C.errors = [{ instancePath: t + "/minimize", schemaPath: "#/properties/minimize/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
1846
+ o = a === i;
1847
+ }
1848
+ else
1849
+ o = !0;
1850
+ if (o) {
1851
+ if (void 0 !== e.minimizer) {
1852
+ let a = e.minimizer;
1853
+ const s = i;
1854
+ if (i === s) {
1855
+ if (!Array.isArray(a))
1856
+ return C.errors = [{ instancePath: t + "/minimizer", schemaPath: "#/properties/minimizer/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
1857
+ {
1858
+ const e = a.length;
1859
+ for (let s = 0; s < e; s++) {
1860
+ let e = a[s];
1861
+ const n = i, o = i;
1862
+ let m = !1;
1863
+ const p = i;
1864
+ if ("..." !== e) {
1865
+ const e = { instancePath: t + "/minimizer/" + s, schemaPath: "#/properties/minimizer/items/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1866
+ null === r ? r = [e] : r.push(e), i++;
1867
+ }
1868
+ var l = p === i;
1869
+ if (m = m || l, !m) {
1870
+ const a = i;
1871
+ if (i == i)
1872
+ if (e && "object" == typeof e && !Array.isArray(e)) {
1873
+ let a;
1874
+ if (void 0 === e.apply && (a = "apply")) {
1875
+ const e = { instancePath: t + "/minimizer/" + s, schemaPath: "#/definitions/RspackPluginInstance/required", keyword: "required", params: { missingProperty: a }, message: "must have required property '" + a + "'" };
1876
+ null === r ? r = [e] : r.push(e), i++;
1877
+ }
1878
+ else if (void 0 !== e.apply && !(e.apply instanceof Function)) {
1879
+ const e = { instancePath: t + "/minimizer/" + s + "/apply", schemaPath: "#/definitions/RspackPluginInstance/properties/apply/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
1880
+ null === r ? r = [e] : r.push(e), i++;
1881
+ }
1882
+ }
1883
+ else {
1884
+ const e = { instancePath: t + "/minimizer/" + s, schemaPath: "#/definitions/RspackPluginInstance/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1885
+ null === r ? r = [e] : r.push(e), i++;
1886
+ }
1887
+ if (l = a === i, m = m || l, !m) {
1888
+ const a = i;
1889
+ if (!(e instanceof Function)) {
1890
+ const e = { instancePath: t + "/minimizer/" + s, schemaPath: "#/definitions/RspackPluginFunction/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
1891
+ null === r ? r = [e] : r.push(e), i++;
1892
+ }
1893
+ l = a === i, m = m || l;
1894
+ }
1895
+ }
1896
+ if (!m) {
1897
+ const e = { instancePath: t + "/minimizer/" + s, schemaPath: "#/properties/minimizer/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1898
+ return null === r ? r = [e] : r.push(e), i++, C.errors = r, !1;
1899
+ }
1900
+ if (i = o, null !== r && (o ? r.length = o : r = null), n !== i)
1901
+ break;
1902
+ }
1903
+ }
1904
+ }
1905
+ o = s === i;
1906
+ }
1907
+ else
1908
+ o = !0;
1909
+ if (o) {
1910
+ if (void 0 !== e.moduleIds) {
1911
+ let a = e.moduleIds;
1912
+ const s = i;
1913
+ if ("named" !== a && "deterministic" !== a)
1914
+ return C.errors = [{ instancePath: t + "/moduleIds", schemaPath: "#/properties/moduleIds/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' }], !1;
1915
+ o = s === i;
1916
+ }
1917
+ else
1918
+ o = !0;
1919
+ if (o) {
1920
+ if (void 0 !== e.removeAvailableModules) {
1921
+ const a = i;
1922
+ if ("boolean" != typeof e.removeAvailableModules)
1923
+ return C.errors = [{ instancePath: t + "/removeAvailableModules", schemaPath: "#/properties/removeAvailableModules/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
1924
+ o = a === i;
1925
+ }
1926
+ else
1927
+ o = !0;
1928
+ if (o) {
1929
+ if (void 0 !== e.runtimeChunk) {
1930
+ let a = e.runtimeChunk;
1931
+ const s = i, n = i;
1932
+ let l = !1;
1933
+ const c = i;
1934
+ if ("single" !== a && "multiple" !== a) {
1935
+ const e = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
1936
+ null === r ? r = [e] : r.push(e), i++;
1937
+ }
1938
+ var m = c === i;
1939
+ if (l = l || m, !l) {
1940
+ const e = i;
1941
+ if ("boolean" != typeof a) {
1942
+ const e = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1943
+ null === r ? r = [e] : r.push(e), i++;
1944
+ }
1945
+ if (m = e === i, l = l || m, !l) {
1946
+ const e = i;
1947
+ if (i === e)
1948
+ if (a && "object" == typeof a && !Array.isArray(a)) {
1949
+ const e = i;
1950
+ for (const e in a)
1951
+ if ("name" !== e) {
1952
+ const a = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: e }, message: "must NOT have additional properties" };
1953
+ null === r ? r = [a] : r.push(a), i++;
1954
+ break;
1955
+ }
1956
+ if (e === i && void 0 !== a.name) {
1957
+ let e = a.name;
1958
+ const s = i;
1959
+ let n = !1;
1960
+ const o = i;
1961
+ if ("string" != typeof e) {
1962
+ const e = { instancePath: t + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1963
+ null === r ? r = [e] : r.push(e), i++;
1964
+ }
1965
+ var p = o === i;
1966
+ if (n = n || p, !n) {
1967
+ const a = i;
1968
+ if (!(e instanceof Function)) {
1969
+ const e = { instancePath: t + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
1970
+ null === r ? r = [e] : r.push(e), i++;
1971
+ }
1972
+ p = a === i, n = n || p;
1973
+ }
1974
+ if (n)
1975
+ i = s, null !== r && (s ? r.length = s : r = null);
1976
+ else {
1977
+ const e = { instancePath: t + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1978
+ null === r ? r = [e] : r.push(e), i++;
1979
+ }
1980
+ }
1981
+ }
1982
+ else {
1983
+ const e = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1984
+ null === r ? r = [e] : r.push(e), i++;
1985
+ }
1986
+ m = e === i, l = l || m;
1987
+ }
1988
+ }
1989
+ if (!l) {
1990
+ const e = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1991
+ return null === r ? r = [e] : r.push(e), i++, C.errors = r, !1;
1992
+ }
1993
+ i = n, null !== r && (n ? r.length = n : r = null), o = s === i;
1994
+ }
1995
+ else
1996
+ o = !0;
1997
+ if (o) {
1998
+ if (void 0 !== e.sideEffects) {
1999
+ let a = e.sideEffects;
2000
+ const s = i, n = i;
2001
+ let l = !1;
2002
+ const m = i;
2003
+ if ("flag" !== a) {
2004
+ const e = { instancePath: t + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
2005
+ null === r ? r = [e] : r.push(e), i++;
2006
+ }
2007
+ var c = m === i;
2008
+ if (l = l || c, !l) {
2009
+ const e = i;
2010
+ if ("boolean" != typeof a) {
2011
+ const e = { instancePath: t + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2012
+ null === r ? r = [e] : r.push(e), i++;
2013
+ }
2014
+ c = e === i, l = l || c;
2015
+ }
2016
+ if (!l) {
2017
+ const e = { instancePath: t + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2018
+ return null === r ? r = [e] : r.push(e), i++, C.errors = r, !1;
2019
+ }
2020
+ i = n, null !== r && (n ? r.length = n : r = null), o = s === i;
2021
+ }
2022
+ else
2023
+ o = !0;
2024
+ if (o)
2025
+ if (void 0 !== e.splitChunks) {
2026
+ let a = e.splitChunks;
2027
+ const s = i, l = i;
2028
+ let m = !1;
2029
+ const p = i;
2030
+ if (!1 !== a) {
2031
+ const e = { instancePath: t + "/splitChunks", schemaPath: "#/properties/splitChunks/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
2032
+ null === r ? r = [e] : r.push(e), i++;
2033
+ }
2034
+ var h = p === i;
2035
+ if (m = m || h, !m) {
2036
+ const s = i;
2037
+ L(a, { instancePath: t + "/splitChunks", parentData: e, parentDataProperty: "splitChunks", rootData: n }) || (r = null === r ? L.errors : r.concat(L.errors), i = r.length), h = s === i, m = m || h;
2038
+ }
2039
+ if (!m) {
2040
+ const e = { instancePath: t + "/splitChunks", schemaPath: "#/properties/splitChunks/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2041
+ return null === r ? r = [e] : r.push(e), i++, C.errors = r, !1;
2042
+ }
2043
+ i = l, null !== r && (l ? r.length = l : r = null), o = s === i;
2044
+ }
2045
+ else
2046
+ o = !0;
2047
+ }
2048
+ }
2049
+ }
2050
+ }
2051
+ }
2052
+ }
2053
+ } return C.errors = r, 0 === i; }
2054
+ function S(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; if ("string" != typeof e) {
2055
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2056
+ null === r ? r = [e] : r.push(e), i++;
2057
+ } var p = m === i; if (l = l || p, !l) {
2058
+ const a = i;
2059
+ if (i == i)
2060
+ if (e && "object" == typeof e && !Array.isArray(e)) {
2061
+ const a = i;
2062
+ for (const a in e)
2063
+ if ("amd" !== a && "commonjs" !== a && "commonjs2" !== a && "root" !== a) {
2064
+ const e = { instancePath: t, schemaPath: "#/definitions/LibraryCustomUmdCommentObject/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" };
2065
+ null === r ? r = [e] : r.push(e), i++;
2066
+ break;
2067
+ }
2068
+ if (a === i) {
2069
+ if (void 0 !== e.amd) {
2070
+ const a = i;
2071
+ if ("string" != typeof e.amd) {
2072
+ const e = { instancePath: t + "/amd", schemaPath: "#/definitions/LibraryCustomUmdCommentObject/properties/amd/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2073
+ null === r ? r = [e] : r.push(e), i++;
2074
+ }
2075
+ var c = a === i;
2076
+ }
2077
+ else
2078
+ c = !0;
2079
+ if (c) {
2080
+ if (void 0 !== e.commonjs) {
2081
+ const a = i;
2082
+ if ("string" != typeof e.commonjs) {
2083
+ const e = { instancePath: t + "/commonjs", schemaPath: "#/definitions/LibraryCustomUmdCommentObject/properties/commonjs/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2084
+ null === r ? r = [e] : r.push(e), i++;
2085
+ }
2086
+ c = a === i;
2087
+ }
2088
+ else
2089
+ c = !0;
2090
+ if (c) {
2091
+ if (void 0 !== e.commonjs2) {
2092
+ const a = i;
2093
+ if ("string" != typeof e.commonjs2) {
2094
+ const e = { instancePath: t + "/commonjs2", schemaPath: "#/definitions/LibraryCustomUmdCommentObject/properties/commonjs2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2095
+ null === r ? r = [e] : r.push(e), i++;
2096
+ }
2097
+ c = a === i;
2098
+ }
2099
+ else
2100
+ c = !0;
2101
+ if (c)
2102
+ if (void 0 !== e.root) {
2103
+ const a = i;
2104
+ if ("string" != typeof e.root) {
2105
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdCommentObject/properties/root/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2106
+ null === r ? r = [e] : r.push(e), i++;
2107
+ }
2108
+ c = a === i;
2109
+ }
2110
+ else
2111
+ c = !0;
2112
+ }
2113
+ }
2114
+ }
2115
+ }
2116
+ else {
2117
+ const e = { instancePath: t, schemaPath: "#/definitions/LibraryCustomUmdCommentObject/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2118
+ null === r ? r = [e] : r.push(e), i++;
2119
+ }
2120
+ p = a === i, l = l || p;
2121
+ } if (!l) {
2122
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2123
+ return null === r ? r = [e] : r.push(e), i++, S.errors = r, !1;
2124
+ } return i = o, null !== r && (o ? r.length = o : r = null), S.errors = r, 0 === i; }
2125
+ function x(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1, m = null; const p = i, c = i; let h = !1; const u = i; if (i === u)
2126
+ if ("string" == typeof e) {
2127
+ if (e.length < 1) {
2128
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2129
+ null === r ? r = [e] : r.push(e), i++;
2130
+ }
2131
+ }
2132
+ else {
2133
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2134
+ null === r ? r = [e] : r.push(e), i++;
2135
+ } var y = u === i; if (h = h || y, !h) {
2136
+ const a = i;
2137
+ if (!(e instanceof Function)) {
2138
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
2139
+ null === r ? r = [e] : r.push(e), i++;
2140
+ }
2141
+ y = a === i, h = h || y;
2142
+ } if (h)
2143
+ i = c, null !== r && (c ? r.length = c : r = null);
2144
+ else {
2145
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2146
+ null === r ? r = [e] : r.push(e), i++;
2147
+ } if (p === i && (l = !0, m = 0), !l) {
2148
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
2149
+ return null === r ? r = [e] : r.push(e), i++, x.errors = r, !1;
2150
+ } return i = o, null !== r && (o ? r.length = o : r = null), x.errors = r, 0 === i; }
2151
+ function R(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1, m = null; const p = i, c = i; let h = !1; const u = i; if (i === u)
2152
+ if ("string" == typeof e) {
2153
+ if (e.length < 1) {
2154
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2155
+ null === r ? r = [e] : r.push(e), i++;
2156
+ }
2157
+ }
2158
+ else {
2159
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2160
+ null === r ? r = [e] : r.push(e), i++;
2161
+ } var y = u === i; if (h = h || y, !h) {
2162
+ const a = i;
2163
+ if (!(e instanceof Function)) {
2164
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
2165
+ null === r ? r = [e] : r.push(e), i++;
2166
+ }
2167
+ y = a === i, h = h || y;
2168
+ } if (h)
2169
+ i = c, null !== r && (c ? r.length = c : r = null);
2170
+ else {
2171
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2172
+ null === r ? r = [e] : r.push(e), i++;
2173
+ } if (p === i && (l = !0, m = 0), !l) {
2174
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
2175
+ return null === r ? r = [e] : r.push(e), i++, R.errors = r, !1;
2176
+ } return i = o, null !== r && (o ? r.length = o : r = null), R.errors = r, 0 === i; }
2177
+ function T(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1, m = null; const p = i, c = i; let h = !1; const u = i; if (i === u)
2178
+ if ("string" == typeof e) {
2179
+ if (e.length < 1) {
2180
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2181
+ null === r ? r = [e] : r.push(e), i++;
2182
+ }
2183
+ }
2184
+ else {
2185
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2186
+ null === r ? r = [e] : r.push(e), i++;
2187
+ } var y = u === i; if (h = h || y, !h) {
2188
+ const a = i;
2189
+ if (!(e instanceof Function)) {
2190
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
2191
+ null === r ? r = [e] : r.push(e), i++;
2192
+ }
2193
+ y = a === i, h = h || y;
2194
+ } if (h)
2195
+ i = c, null !== r && (c ? r.length = c : r = null);
2196
+ else {
2197
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2198
+ null === r ? r = [e] : r.push(e), i++;
2199
+ } if (p === i && (l = !0, m = 0), !l) {
2200
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
2201
+ return null === r ? r = [e] : r.push(e), i++, T.errors = r, !1;
2202
+ } return i = o, null !== r && (o ? r.length = o : r = null), T.errors = r, 0 === i; }
2203
+ function F(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
2204
+ if (!Array.isArray(e))
2205
+ return F.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
2206
+ {
2207
+ const a = e.length;
2208
+ for (let s = 0; s < a; s++) {
2209
+ let a = e[s];
2210
+ const n = i, l = i;
2211
+ let m = !1;
2212
+ const p = i;
2213
+ if ("var" !== a && "module" !== a && "assign" !== a && "assign-properties" !== a && "this" !== a && "window" !== a && "self" !== a && "global" !== a && "commonjs" !== a && "commonjs2" !== a && "commonjs-module" !== a && "commonjs-static" !== a && "amd" !== a && "amd-require" !== a && "umd" !== a && "umd2" !== a && "jsonp" !== a && "system" !== a) {
2214
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
2215
+ null === r ? r = [e] : r.push(e), i++;
2216
+ }
2217
+ var o = p === i;
2218
+ if (m = m || o, !m) {
2219
+ const e = i;
2220
+ if ("string" != typeof a) {
2221
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2222
+ null === r ? r = [e] : r.push(e), i++;
2223
+ }
2224
+ o = e === i, m = m || o;
2225
+ }
2226
+ if (!m) {
2227
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2228
+ return null === r ? r = [e] : r.push(e), i++, F.errors = r, !1;
2229
+ }
2230
+ if (i = l, null !== r && (l ? r.length = l : r = null), n !== i)
2231
+ break;
2232
+ }
2233
+ }
2234
+ } return F.errors = r, 0 === i; }
2235
+ function z(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1, m = null; const p = i, c = i; let h = !1; const u = i; if (i === u)
2236
+ if ("string" == typeof e) {
2237
+ if (e.length < 1) {
2238
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2239
+ null === r ? r = [e] : r.push(e), i++;
2240
+ }
2241
+ }
2242
+ else {
2243
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2244
+ null === r ? r = [e] : r.push(e), i++;
2245
+ } var y = u === i; if (h = h || y, !h) {
2246
+ const a = i;
2247
+ if (!(e instanceof Function)) {
2248
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
2249
+ null === r ? r = [e] : r.push(e), i++;
2250
+ }
2251
+ y = a === i, h = h || y;
2252
+ } if (h)
2253
+ i = c, null !== r && (c ? r.length = c : r = null);
2254
+ else {
2255
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2256
+ null === r ? r = [e] : r.push(e), i++;
2257
+ } if (p === i && (l = !0, m = 0), !l) {
2258
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
2259
+ return null === r ? r = [e] : r.push(e), i++, z.errors = r, !1;
2260
+ } return i = o, null !== r && (o ? r.length = o : r = null), z.errors = r, 0 === i; }
2261
+ function E(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; if (i === m)
2262
+ if (Array.isArray(e))
2263
+ if (e.length < 1) {
2264
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
2265
+ null === r ? r = [e] : r.push(e), i++;
2266
+ }
2267
+ else {
2268
+ const a = e.length;
2269
+ for (let s = 0; s < a; s++) {
2270
+ let a = e[s];
2271
+ const n = i;
2272
+ if (i === n)
2273
+ if ("string" == typeof a) {
2274
+ if (a.length < 1) {
2275
+ const e = { instancePath: t + "/" + s, schemaPath: "#/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2276
+ null === r ? r = [e] : r.push(e), i++;
2277
+ }
2278
+ }
2279
+ else {
2280
+ const e = { instancePath: t + "/" + s, schemaPath: "#/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2281
+ null === r ? r = [e] : r.push(e), i++;
2282
+ }
2283
+ if (n !== i)
2284
+ break;
2285
+ }
2286
+ }
2287
+ else {
2288
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2289
+ null === r ? r = [e] : r.push(e), i++;
2290
+ } var p = m === i; if (l = l || p, !l) {
2291
+ const a = i;
2292
+ if (i === a)
2293
+ if ("string" == typeof e) {
2294
+ if (e.length < 1) {
2295
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2296
+ null === r ? r = [e] : r.push(e), i++;
2297
+ }
2298
+ }
2299
+ else {
2300
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2301
+ null === r ? r = [e] : r.push(e), i++;
2302
+ }
2303
+ if (p = a === i, l = l || p, !l) {
2304
+ const a = i;
2305
+ if (i == i)
2306
+ if (e && "object" == typeof e && !Array.isArray(e)) {
2307
+ const a = i;
2308
+ for (const a in e)
2309
+ if ("amd" !== a && "commonjs" !== a && "root" !== a) {
2310
+ const e = { instancePath: t, schemaPath: "#/definitions/LibraryCustomUmdObject/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" };
2311
+ null === r ? r = [e] : r.push(e), i++;
2312
+ break;
2313
+ }
2314
+ if (a === i) {
2315
+ if (void 0 !== e.amd) {
2316
+ let a = e.amd;
2317
+ const s = i;
2318
+ if (i === s)
2319
+ if ("string" == typeof a) {
2320
+ if (a.length < 1) {
2321
+ const e = { instancePath: t + "/amd", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/amd/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2322
+ null === r ? r = [e] : r.push(e), i++;
2323
+ }
2324
+ }
2325
+ else {
2326
+ const e = { instancePath: t + "/amd", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/amd/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2327
+ null === r ? r = [e] : r.push(e), i++;
2328
+ }
2329
+ var c = s === i;
2330
+ }
2331
+ else
2332
+ c = !0;
2333
+ if (c) {
2334
+ if (void 0 !== e.commonjs) {
2335
+ let a = e.commonjs;
2336
+ const s = i;
2337
+ if (i === s)
2338
+ if ("string" == typeof a) {
2339
+ if (a.length < 1) {
2340
+ const e = { instancePath: t + "/commonjs", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/commonjs/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2341
+ null === r ? r = [e] : r.push(e), i++;
2342
+ }
2343
+ }
2344
+ else {
2345
+ const e = { instancePath: t + "/commonjs", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/commonjs/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2346
+ null === r ? r = [e] : r.push(e), i++;
2347
+ }
2348
+ c = s === i;
2349
+ }
2350
+ else
2351
+ c = !0;
2352
+ if (c)
2353
+ if (void 0 !== e.root) {
2354
+ let a = e.root;
2355
+ const s = i, n = i;
2356
+ let o = !1;
2357
+ const l = i;
2358
+ if (i === l)
2359
+ if (Array.isArray(a)) {
2360
+ const e = a.length;
2361
+ for (let s = 0; s < e; s++) {
2362
+ let e = a[s];
2363
+ const n = i;
2364
+ if (i === n)
2365
+ if ("string" == typeof e) {
2366
+ if (e.length < 1) {
2367
+ const e = { instancePath: t + "/root/" + s, schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2368
+ null === r ? r = [e] : r.push(e), i++;
2369
+ }
2370
+ }
2371
+ else {
2372
+ const e = { instancePath: t + "/root/" + s, schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2373
+ null === r ? r = [e] : r.push(e), i++;
2374
+ }
2375
+ if (n !== i)
2376
+ break;
2377
+ }
2378
+ }
2379
+ else {
2380
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2381
+ null === r ? r = [e] : r.push(e), i++;
2382
+ }
2383
+ var h = l === i;
2384
+ if (o = o || h, !o) {
2385
+ const e = i;
2386
+ if (i === e)
2387
+ if ("string" == typeof a) {
2388
+ if (a.length < 1) {
2389
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2390
+ null === r ? r = [e] : r.push(e), i++;
2391
+ }
2392
+ }
2393
+ else {
2394
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2395
+ null === r ? r = [e] : r.push(e), i++;
2396
+ }
2397
+ h = e === i, o = o || h;
2398
+ }
2399
+ if (o)
2400
+ i = n, null !== r && (n ? r.length = n : r = null);
2401
+ else {
2402
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2403
+ null === r ? r = [e] : r.push(e), i++;
2404
+ }
2405
+ c = s === i;
2406
+ }
2407
+ else
2408
+ c = !0;
2409
+ }
2410
+ }
2411
+ }
2412
+ else {
2413
+ const e = { instancePath: t, schemaPath: "#/definitions/LibraryCustomUmdObject/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2414
+ null === r ? r = [e] : r.push(e), i++;
2415
+ }
2416
+ p = a === i, l = l || p;
2417
+ }
2418
+ } if (!l) {
2419
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2420
+ return null === r ? r = [e] : r.push(e), i++, E.errors = r, !1;
2421
+ } return i = o, null !== r && (o ? r.length = o : r = null), E.errors = r, 0 === i; }
2422
+ function I(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
2423
+ if (!e || "object" != typeof e || Array.isArray(e))
2424
+ return I.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
2425
+ {
2426
+ let a;
2427
+ if (void 0 === e.type && (a = "type"))
2428
+ return I.errors = [{ instancePath: t, schemaPath: "#/required", keyword: "required", params: { missingProperty: a }, message: "must have required property '" + a + "'" }], !1;
2429
+ {
2430
+ const a = i;
2431
+ for (const a in e)
2432
+ if ("auxiliaryComment" !== a && "export" !== a && "name" !== a && "type" !== a && "umdNamedDefine" !== a)
2433
+ return I.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a }, message: "must NOT have additional properties" }], !1;
2434
+ if (a === i) {
2435
+ if (void 0 !== e.auxiliaryComment) {
2436
+ const a = i;
2437
+ S(e.auxiliaryComment, { instancePath: t + "/auxiliaryComment", parentData: e, parentDataProperty: "auxiliaryComment", rootData: n }) || (r = null === r ? S.errors : r.concat(S.errors), i = r.length);
2438
+ var o = a === i;
2439
+ }
2440
+ else
2441
+ o = !0;
2442
+ if (o) {
2443
+ if (void 0 !== e.export) {
2444
+ let a = e.export;
2445
+ const s = i, n = i;
2446
+ let m = !1;
2447
+ const p = i;
2448
+ if (i === p)
2449
+ if (Array.isArray(a)) {
2450
+ const e = a.length;
2451
+ for (let s = 0; s < e; s++) {
2452
+ let e = a[s];
2453
+ const n = i;
2454
+ if (i === n)
2455
+ if ("string" == typeof e) {
2456
+ if (e.length < 1) {
2457
+ const e = { instancePath: t + "/export/" + s, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2458
+ null === r ? r = [e] : r.push(e), i++;
2459
+ }
2460
+ }
2461
+ else {
2462
+ const e = { instancePath: t + "/export/" + s, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2463
+ null === r ? r = [e] : r.push(e), i++;
2464
+ }
2465
+ if (n !== i)
2466
+ break;
2467
+ }
2468
+ }
2469
+ else {
2470
+ const e = { instancePath: t + "/export", schemaPath: "#/definitions/LibraryExport/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2471
+ null === r ? r = [e] : r.push(e), i++;
2472
+ }
2473
+ var l = p === i;
2474
+ if (m = m || l, !m) {
2475
+ const e = i;
2476
+ if (i === e)
2477
+ if ("string" == typeof a) {
2478
+ if (a.length < 1) {
2479
+ const e = { instancePath: t + "/export", schemaPath: "#/definitions/LibraryExport/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2480
+ null === r ? r = [e] : r.push(e), i++;
2481
+ }
2482
+ }
2483
+ else {
2484
+ const e = { instancePath: t + "/export", schemaPath: "#/definitions/LibraryExport/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2485
+ null === r ? r = [e] : r.push(e), i++;
2486
+ }
2487
+ l = e === i, m = m || l;
2488
+ }
2489
+ if (!m) {
2490
+ const e = { instancePath: t + "/export", schemaPath: "#/definitions/LibraryExport/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2491
+ return null === r ? r = [e] : r.push(e), i++, I.errors = r, !1;
2492
+ }
2493
+ i = n, null !== r && (n ? r.length = n : r = null), o = s === i;
2494
+ }
2495
+ else
2496
+ o = !0;
2497
+ if (o) {
2498
+ if (void 0 !== e.name) {
2499
+ const a = i;
2500
+ E(e.name, { instancePath: t + "/name", parentData: e, parentDataProperty: "name", rootData: n }) || (r = null === r ? E.errors : r.concat(E.errors), i = r.length), o = a === i;
2501
+ }
2502
+ else
2503
+ o = !0;
2504
+ if (o) {
2505
+ if (void 0 !== e.type) {
2506
+ let a = e.type;
2507
+ const s = i, n = i;
2508
+ let l = !1;
2509
+ const p = i;
2510
+ if ("var" !== a && "module" !== a && "assign" !== a && "assign-properties" !== a && "this" !== a && "window" !== a && "self" !== a && "global" !== a && "commonjs" !== a && "commonjs2" !== a && "commonjs-module" !== a && "commonjs-static" !== a && "amd" !== a && "amd-require" !== a && "umd" !== a && "umd2" !== a && "jsonp" !== a && "system" !== a) {
2511
+ const e = { instancePath: t + "/type", schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
2512
+ null === r ? r = [e] : r.push(e), i++;
2513
+ }
2514
+ var m = p === i;
2515
+ if (l = l || m, !l) {
2516
+ const e = i;
2517
+ if ("string" != typeof a) {
2518
+ const e = { instancePath: t + "/type", schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2519
+ null === r ? r = [e] : r.push(e), i++;
2520
+ }
2521
+ m = e === i, l = l || m;
2522
+ }
2523
+ if (!l) {
2524
+ const e = { instancePath: t + "/type", schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2525
+ return null === r ? r = [e] : r.push(e), i++, I.errors = r, !1;
2526
+ }
2527
+ i = n, null !== r && (n ? r.length = n : r = null), o = s === i;
2528
+ }
2529
+ else
2530
+ o = !0;
2531
+ if (o)
2532
+ if (void 0 !== e.umdNamedDefine) {
2533
+ const a = i;
2534
+ if ("boolean" != typeof e.umdNamedDefine)
2535
+ return I.errors = [{ instancePath: t + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
2536
+ o = a === i;
2537
+ }
2538
+ else
2539
+ o = !0;
2540
+ }
2541
+ }
2542
+ }
2543
+ }
2544
+ }
2545
+ }
2546
+ } return I.errors = r, 0 === i; }
2547
+ function N(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; E(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? E.errors : r.concat(E.errors), i = r.length); var p = m === i; if (l = l || p, !l) {
2548
+ const o = i;
2549
+ I(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? I.errors : r.concat(I.errors), i = r.length), p = o === i, l = l || p;
2550
+ } if (!l) {
2551
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2552
+ return null === r ? r = [e] : r.push(e), i++, N.errors = r, !1;
2553
+ } return i = o, null !== r && (o ? r.length = o : r = null), N.errors = r, 0 === i; }
2554
+ function q(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; if ("auto" !== e) {
2555
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
2556
+ null === r ? r = [e] : r.push(e), i++;
2557
+ } var p = m === i; if (l = l || p, !l) {
2558
+ const a = i, s = i;
2559
+ let n = !1;
2560
+ const o = i;
2561
+ if ("string" != typeof e) {
2562
+ const e = { instancePath: t, schemaPath: "#/definitions/RawPublicPath/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2563
+ null === r ? r = [e] : r.push(e), i++;
2564
+ }
2565
+ if (n = n || o === i, n)
2566
+ i = s, null !== r && (s ? r.length = s : r = null);
2567
+ else {
2568
+ const e = { instancePath: t, schemaPath: "#/definitions/RawPublicPath/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2569
+ null === r ? r = [e] : r.push(e), i++;
2570
+ }
2571
+ p = a === i, l = l || p;
2572
+ } if (!l) {
2573
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2574
+ return null === r ? r = [e] : r.push(e), i++, q.errors = r, !1;
2575
+ } return i = o, null !== r && (o ? r.length = o : r = null), q.errors = r, 0 === i; }
2576
+ function G(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
2577
+ if (!e || "object" != typeof e || Array.isArray(e))
2578
+ return G.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
2579
+ if (void 0 !== e.assetModuleFilename) {
2580
+ const a = i, s = i;
2581
+ let n = !1;
2582
+ const l = i;
2583
+ if ("string" != typeof e.assetModuleFilename) {
2584
+ const e = { instancePath: t + "/assetModuleFilename", schemaPath: "#/definitions/AssetModuleFilename/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2585
+ null === r ? r = [e] : r.push(e), i++;
2586
+ }
2587
+ if (n = n || l === i, !n) {
2588
+ const e = { instancePath: t + "/assetModuleFilename", schemaPath: "#/definitions/AssetModuleFilename/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2589
+ return null === r ? r = [e] : r.push(e), i++, G.errors = r, !1;
2590
+ }
2591
+ i = s, null !== r && (s ? r.length = s : r = null);
2592
+ var o = a === i;
2593
+ }
2594
+ else
2595
+ o = !0;
2596
+ if (o) {
2597
+ if (void 0 !== e.auxiliaryComment) {
2598
+ const a = i, s = i;
2599
+ let l = !1, m = null;
2600
+ const p = i;
2601
+ if (S(e.auxiliaryComment, { instancePath: t + "/auxiliaryComment", parentData: e, parentDataProperty: "auxiliaryComment", rootData: n }) || (r = null === r ? S.errors : r.concat(S.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
2602
+ const e = { instancePath: t + "/auxiliaryComment", schemaPath: "#/properties/auxiliaryComment/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
2603
+ return null === r ? r = [e] : r.push(e), i++, G.errors = r, !1;
2604
+ }
2605
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
2606
+ }
2607
+ else
2608
+ o = !0;
2609
+ if (o) {
2610
+ if (void 0 !== e.chunkFilename) {
2611
+ const a = i;
2612
+ x(e.chunkFilename, { instancePath: t + "/chunkFilename", parentData: e, parentDataProperty: "chunkFilename", rootData: n }) || (r = null === r ? x.errors : r.concat(x.errors), i = r.length), o = a === i;
2613
+ }
2614
+ else
2615
+ o = !0;
2616
+ if (o) {
2617
+ if (void 0 !== e.cssChunkFilename) {
2618
+ const a = i;
2619
+ R(e.cssChunkFilename, { instancePath: t + "/cssChunkFilename", parentData: e, parentDataProperty: "cssChunkFilename", rootData: n }) || (r = null === r ? R.errors : r.concat(R.errors), i = r.length), o = a === i;
2620
+ }
2621
+ else
2622
+ o = !0;
2623
+ if (o) {
2624
+ if (void 0 !== e.cssFilename) {
2625
+ const a = i;
2626
+ T(e.cssFilename, { instancePath: t + "/cssFilename", parentData: e, parentDataProperty: "cssFilename", rootData: n }) || (r = null === r ? T.errors : r.concat(T.errors), i = r.length), o = a === i;
2627
+ }
2628
+ else
2629
+ o = !0;
2630
+ if (o) {
2631
+ if (void 0 !== e.enabledLibraryTypes) {
2632
+ const a = i;
2633
+ F(e.enabledLibraryTypes, { instancePath: t + "/enabledLibraryTypes", parentData: e, parentDataProperty: "enabledLibraryTypes", rootData: n }) || (r = null === r ? F.errors : r.concat(F.errors), i = r.length), o = a === i;
2634
+ }
2635
+ else
2636
+ o = !0;
2637
+ if (o) {
2638
+ if (void 0 !== e.filename) {
2639
+ const a = i;
2640
+ z(e.filename, { instancePath: t + "/filename", parentData: e, parentDataProperty: "filename", rootData: n }) || (r = null === r ? z.errors : r.concat(z.errors), i = r.length), o = a === i;
2641
+ }
2642
+ else
2643
+ o = !0;
2644
+ if (o) {
2645
+ if (void 0 !== e.globalObject) {
2646
+ let a = e.globalObject;
2647
+ const s = i;
2648
+ if (i == i) {
2649
+ if ("string" != typeof a)
2650
+ return G.errors = [{ instancePath: t + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
2651
+ if (a.length < 1)
2652
+ return G.errors = [{ instancePath: t + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' }], !1;
2653
+ }
2654
+ o = s === i;
2655
+ }
2656
+ else
2657
+ o = !0;
2658
+ if (o) {
2659
+ if (void 0 !== e.importFunctionName) {
2660
+ const a = i;
2661
+ if ("string" != typeof e.importFunctionName)
2662
+ return G.errors = [{ instancePath: t + "/importFunctionName", schemaPath: "#/definitions/ImportFunctionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
2663
+ o = a === i;
2664
+ }
2665
+ else
2666
+ o = !0;
2667
+ if (o) {
2668
+ if (void 0 !== e.library) {
2669
+ const a = i;
2670
+ N(e.library, { instancePath: t + "/library", parentData: e, parentDataProperty: "library", rootData: n }) || (r = null === r ? N.errors : r.concat(N.errors), i = r.length), o = a === i;
2671
+ }
2672
+ else
2673
+ o = !0;
2674
+ if (o) {
2675
+ if (void 0 !== e.libraryExport) {
2676
+ let a = e.libraryExport;
2677
+ const s = i, n = i;
2678
+ let m = !1, p = null;
2679
+ const c = i, h = i;
2680
+ let u = !1;
2681
+ const y = i;
2682
+ if (i === y)
2683
+ if (Array.isArray(a)) {
2684
+ const e = a.length;
2685
+ for (let s = 0; s < e; s++) {
2686
+ let e = a[s];
2687
+ const n = i;
2688
+ if (i === n)
2689
+ if ("string" == typeof e) {
2690
+ if (e.length < 1) {
2691
+ const e = { instancePath: t + "/libraryExport/" + s, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2692
+ null === r ? r = [e] : r.push(e), i++;
2693
+ }
2694
+ }
2695
+ else {
2696
+ const e = { instancePath: t + "/libraryExport/" + s, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2697
+ null === r ? r = [e] : r.push(e), i++;
2698
+ }
2699
+ if (n !== i)
2700
+ break;
2701
+ }
2702
+ }
2703
+ else {
2704
+ const e = { instancePath: t + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2705
+ null === r ? r = [e] : r.push(e), i++;
2706
+ }
2707
+ var l = y === i;
2708
+ if (u = u || l, !u) {
2709
+ const e = i;
2710
+ if (i === e)
2711
+ if ("string" == typeof a) {
2712
+ if (a.length < 1) {
2713
+ const e = { instancePath: t + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
2714
+ null === r ? r = [e] : r.push(e), i++;
2715
+ }
2716
+ }
2717
+ else {
2718
+ const e = { instancePath: t + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2719
+ null === r ? r = [e] : r.push(e), i++;
2720
+ }
2721
+ l = e === i, u = u || l;
2722
+ }
2723
+ if (u)
2724
+ i = h, null !== r && (h ? r.length = h : r = null);
2725
+ else {
2726
+ const e = { instancePath: t + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2727
+ null === r ? r = [e] : r.push(e), i++;
2728
+ }
2729
+ if (c === i && (m = !0, p = 0), !m) {
2730
+ const e = { instancePath: t + "/libraryExport", schemaPath: "#/properties/libraryExport/oneOf", keyword: "oneOf", params: { passingSchemas: p }, message: "must match exactly one schema in oneOf" };
2731
+ return null === r ? r = [e] : r.push(e), i++, G.errors = r, !1;
2732
+ }
2733
+ i = n, null !== r && (n ? r.length = n : r = null), o = s === i;
2734
+ }
2735
+ else
2736
+ o = !0;
2737
+ if (o) {
2738
+ if (void 0 !== e.libraryTarget) {
2739
+ let a = e.libraryTarget;
2740
+ const s = i, n = i;
2741
+ let l = !1, p = null;
2742
+ const c = i, h = i;
2743
+ let u = !1;
2744
+ const y = i;
2745
+ if ("var" !== a && "module" !== a && "assign" !== a && "assign-properties" !== a && "this" !== a && "window" !== a && "self" !== a && "global" !== a && "commonjs" !== a && "commonjs2" !== a && "commonjs-module" !== a && "commonjs-static" !== a && "amd" !== a && "amd-require" !== a && "umd" !== a && "umd2" !== a && "jsonp" !== a && "system" !== a) {
2746
+ const e = { instancePath: t + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
2747
+ null === r ? r = [e] : r.push(e), i++;
2748
+ }
2749
+ var m = y === i;
2750
+ if (u = u || m, !u) {
2751
+ const e = i;
2752
+ if ("string" != typeof a) {
2753
+ const e = { instancePath: t + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2754
+ null === r ? r = [e] : r.push(e), i++;
2755
+ }
2756
+ m = e === i, u = u || m;
2757
+ }
2758
+ if (u)
2759
+ i = h, null !== r && (h ? r.length = h : r = null);
2760
+ else {
2761
+ const e = { instancePath: t + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2762
+ null === r ? r = [e] : r.push(e), i++;
2763
+ }
2764
+ if (c === i && (l = !0, p = 0), !l) {
2765
+ const e = { instancePath: t + "/libraryTarget", schemaPath: "#/properties/libraryTarget/oneOf", keyword: "oneOf", params: { passingSchemas: p }, message: "must match exactly one schema in oneOf" };
2766
+ return null === r ? r = [e] : r.push(e), i++, G.errors = r, !1;
2767
+ }
2768
+ i = n, null !== r && (n ? r.length = n : r = null), o = s === i;
2769
+ }
2770
+ else
2771
+ o = !0;
2772
+ if (o) {
2773
+ if (void 0 !== e.module) {
2774
+ const a = i;
2775
+ if ("boolean" != typeof e.module)
2776
+ return G.errors = [{ instancePath: t + "/module", schemaPath: "#/definitions/OutputModule/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
2777
+ o = a === i;
2778
+ }
2779
+ else
2780
+ o = !0;
2781
+ if (o) {
2782
+ if (void 0 !== e.path) {
2783
+ const a = i;
2784
+ if ("string" != typeof e.path)
2785
+ return G.errors = [{ instancePath: t + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
2786
+ o = a === i;
2787
+ }
2788
+ else
2789
+ o = !0;
2790
+ if (o) {
2791
+ if (void 0 !== e.publicPath) {
2792
+ const a = i;
2793
+ q(e.publicPath, { instancePath: t + "/publicPath", parentData: e, parentDataProperty: "publicPath", rootData: n }) || (r = null === r ? q.errors : r.concat(q.errors), i = r.length), o = a === i;
2794
+ }
2795
+ else
2796
+ o = !0;
2797
+ if (o) {
2798
+ if (void 0 !== e.strictModuleErrorHandling) {
2799
+ const a = i;
2800
+ if ("boolean" != typeof e.strictModuleErrorHandling)
2801
+ return G.errors = [{ instancePath: t + "/strictModuleErrorHandling", schemaPath: "#/definitions/StrictModuleErrorHandling/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
2802
+ o = a === i;
2803
+ }
2804
+ else
2805
+ o = !0;
2806
+ if (o) {
2807
+ if (void 0 !== e.umdNamedDefine) {
2808
+ const a = i, s = i;
2809
+ let n = !1, l = null;
2810
+ const m = i;
2811
+ if ("boolean" != typeof e.umdNamedDefine) {
2812
+ const e = { instancePath: t + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2813
+ null === r ? r = [e] : r.push(e), i++;
2814
+ }
2815
+ if (m === i && (n = !0, l = 0), !n) {
2816
+ const e = { instancePath: t + "/umdNamedDefine", schemaPath: "#/properties/umdNamedDefine/oneOf", keyword: "oneOf", params: { passingSchemas: l }, message: "must match exactly one schema in oneOf" };
2817
+ return null === r ? r = [e] : r.push(e), i++, G.errors = r, !1;
2818
+ }
2819
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
2820
+ }
2821
+ else
2822
+ o = !0;
2823
+ if (o)
2824
+ if (void 0 !== e.uniqueName) {
2825
+ let a = e.uniqueName;
2826
+ const s = i;
2827
+ if (i == i) {
2828
+ if ("string" != typeof a)
2829
+ return G.errors = [{ instancePath: t + "/uniqueName", schemaPath: "#/definitions/UniqueName/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
2830
+ if (a.length < 1)
2831
+ return G.errors = [{ instancePath: t + "/uniqueName", schemaPath: "#/definitions/UniqueName/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' }], !1;
2832
+ }
2833
+ o = s === i;
2834
+ }
2835
+ else
2836
+ o = !0;
2837
+ }
2838
+ }
2839
+ }
2840
+ }
2841
+ }
2842
+ }
2843
+ }
2844
+ }
2845
+ }
2846
+ }
2847
+ }
2848
+ }
2849
+ }
2850
+ }
2851
+ }
2852
+ }
2853
+ } return G.errors = r, 0 === i; }
2854
+ function U(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; if (0 === i) {
2855
+ if (!Array.isArray(e))
2856
+ return U.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
2857
+ {
2858
+ const a = e.length;
2859
+ for (let s = 0; s < a; s++) {
2860
+ let a = e[s];
2861
+ const n = i, l = i;
2862
+ let m = !1;
2863
+ const p = i;
2864
+ if (i == i)
2865
+ if (a && "object" == typeof a && !Array.isArray(a)) {
2866
+ let e;
2867
+ if (void 0 === a.apply && (e = "apply")) {
2868
+ const a = { instancePath: t + "/" + s, schemaPath: "#/definitions/RspackPluginInstance/required", keyword: "required", params: { missingProperty: e }, message: "must have required property '" + e + "'" };
2869
+ null === r ? r = [a] : r.push(a), i++;
2870
+ }
2871
+ else if (void 0 !== a.apply && !(a.apply instanceof Function)) {
2872
+ const e = { instancePath: t + "/" + s + "/apply", schemaPath: "#/definitions/RspackPluginInstance/properties/apply/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
2873
+ null === r ? r = [e] : r.push(e), i++;
2874
+ }
2875
+ }
2876
+ else {
2877
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/RspackPluginInstance/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2878
+ null === r ? r = [e] : r.push(e), i++;
2879
+ }
2880
+ var o = p === i;
2881
+ if (m = m || o, !m) {
2882
+ const e = i;
2883
+ if (!(a instanceof Function)) {
2884
+ const e = { instancePath: t + "/" + s, schemaPath: "#/definitions/RspackPluginFunction/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
2885
+ null === r ? r = [e] : r.push(e), i++;
2886
+ }
2887
+ o = e === i, m = m || o;
2888
+ }
2889
+ if (!m) {
2890
+ const e = { instancePath: t + "/" + s, schemaPath: "#/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2891
+ return null === r ? r = [e] : r.push(e), i++, U.errors = r, !1;
2892
+ }
2893
+ if (i = l, null !== r && (l ? r.length = l : r = null), n !== i)
2894
+ break;
2895
+ }
2896
+ }
2897
+ } return U.errors = r, 0 === i; }
2898
+ function M(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1, m = null; const p = i; if (g(e, { instancePath: t, parentData: a, parentDataProperty: s, rootData: n }) || (r = null === r ? g.errors : r.concat(g.errors), i = r.length), p === i && (l = !0, m = 0), !l) {
2899
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: m }, message: "must match exactly one schema in oneOf" };
2900
+ return null === r ? r = [e] : r.push(e), i++, M.errors = r, !1;
2901
+ } return i = o, null !== r && (o ? r.length = o : r = null), M.errors = r, 0 === i; }
2902
+ function W(e, { instancePath: t = "", parentData: a, parentDataProperty: s, rootData: n = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const m = i; if ("none" !== e && "errors-only" !== e && "errors-warnings" !== e && "normal" !== e && "verbose" !== e) {
2903
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
2904
+ null === r ? r = [e] : r.push(e), i++;
2905
+ } var p = m === i; if (l = l || p, !l) {
2906
+ const a = i;
2907
+ if ("boolean" != typeof e) {
2908
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2909
+ null === r ? r = [e] : r.push(e), i++;
2910
+ }
2911
+ if (p = a === i, l = l || p, !l) {
2912
+ const a = i;
2913
+ if (i == i)
2914
+ if (e && "object" == typeof e && !Array.isArray(e)) {
2915
+ if (void 0 !== e.all) {
2916
+ const a = i;
2917
+ if ("boolean" != typeof e.all) {
2918
+ const e = { instancePath: t + "/all", schemaPath: "#/definitions/StatsOptions/properties/all/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2919
+ null === r ? r = [e] : r.push(e), i++;
2920
+ }
2921
+ var c = a === i;
2922
+ }
2923
+ else
2924
+ c = !0;
2925
+ if (c) {
2926
+ if (void 0 !== e.assets) {
2927
+ const a = i;
2928
+ if ("boolean" != typeof e.assets) {
2929
+ const e = { instancePath: t + "/assets", schemaPath: "#/definitions/StatsOptions/properties/assets/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2930
+ null === r ? r = [e] : r.push(e), i++;
2931
+ }
2932
+ c = a === i;
2933
+ }
2934
+ else
2935
+ c = !0;
2936
+ if (c) {
2937
+ if (void 0 !== e.chunkGroups) {
2938
+ const a = i;
2939
+ if ("boolean" != typeof e.chunkGroups) {
2940
+ const e = { instancePath: t + "/chunkGroups", schemaPath: "#/definitions/StatsOptions/properties/chunkGroups/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2941
+ null === r ? r = [e] : r.push(e), i++;
2942
+ }
2943
+ c = a === i;
2944
+ }
2945
+ else
2946
+ c = !0;
2947
+ if (c) {
2948
+ if (void 0 !== e.chunks) {
2949
+ const a = i;
2950
+ if ("boolean" != typeof e.chunks) {
2951
+ const e = { instancePath: t + "/chunks", schemaPath: "#/definitions/StatsOptions/properties/chunks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2952
+ null === r ? r = [e] : r.push(e), i++;
2953
+ }
2954
+ c = a === i;
2955
+ }
2956
+ else
2957
+ c = !0;
2958
+ if (c) {
2959
+ if (void 0 !== e.colors) {
2960
+ const a = i;
2961
+ if ("boolean" != typeof e.colors) {
2962
+ const e = { instancePath: t + "/colors", schemaPath: "#/definitions/StatsOptions/properties/colors/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2963
+ null === r ? r = [e] : r.push(e), i++;
2964
+ }
2965
+ c = a === i;
2966
+ }
2967
+ else
2968
+ c = !0;
2969
+ if (c) {
2970
+ if (void 0 !== e.entrypoints) {
2971
+ let a = e.entrypoints;
2972
+ const s = i, n = i;
2973
+ let o = !1;
2974
+ const l = i;
2975
+ if ("auto" !== a) {
2976
+ const e = { instancePath: t + "/entrypoints", schemaPath: "#/definitions/StatsOptions/properties/entrypoints/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
2977
+ null === r ? r = [e] : r.push(e), i++;
2978
+ }
2979
+ var h = l === i;
2980
+ if (o = o || h, !o) {
2981
+ const e = i;
2982
+ if ("boolean" != typeof a) {
2983
+ const e = { instancePath: t + "/entrypoints", schemaPath: "#/definitions/StatsOptions/properties/entrypoints/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2984
+ null === r ? r = [e] : r.push(e), i++;
2985
+ }
2986
+ h = e === i, o = o || h;
2987
+ }
2988
+ if (o)
2989
+ i = n, null !== r && (n ? r.length = n : r = null);
2990
+ else {
2991
+ const e = { instancePath: t + "/entrypoints", schemaPath: "#/definitions/StatsOptions/properties/entrypoints/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2992
+ null === r ? r = [e] : r.push(e), i++;
2993
+ }
2994
+ c = s === i;
2995
+ }
2996
+ else
2997
+ c = !0;
2998
+ if (c) {
2999
+ if (void 0 !== e.errors) {
3000
+ const a = i;
3001
+ if ("boolean" != typeof e.errors) {
3002
+ const e = { instancePath: t + "/errors", schemaPath: "#/definitions/StatsOptions/properties/errors/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3003
+ null === r ? r = [e] : r.push(e), i++;
3004
+ }
3005
+ c = a === i;
3006
+ }
3007
+ else
3008
+ c = !0;
3009
+ if (c) {
3010
+ if (void 0 !== e.errorsCount) {
3011
+ const a = i;
3012
+ if ("boolean" != typeof e.errorsCount) {
3013
+ const e = { instancePath: t + "/errorsCount", schemaPath: "#/definitions/StatsOptions/properties/errorsCount/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3014
+ null === r ? r = [e] : r.push(e), i++;
3015
+ }
3016
+ c = a === i;
3017
+ }
3018
+ else
3019
+ c = !0;
3020
+ if (c) {
3021
+ if (void 0 !== e.hash) {
3022
+ const a = i;
3023
+ if ("boolean" != typeof e.hash) {
3024
+ const e = { instancePath: t + "/hash", schemaPath: "#/definitions/StatsOptions/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3025
+ null === r ? r = [e] : r.push(e), i++;
3026
+ }
3027
+ c = a === i;
3028
+ }
3029
+ else
3030
+ c = !0;
3031
+ if (c) {
3032
+ if (void 0 !== e.modules) {
3033
+ const a = i;
3034
+ if ("boolean" != typeof e.modules) {
3035
+ const e = { instancePath: t + "/modules", schemaPath: "#/definitions/StatsOptions/properties/modules/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3036
+ null === r ? r = [e] : r.push(e), i++;
3037
+ }
3038
+ c = a === i;
3039
+ }
3040
+ else
3041
+ c = !0;
3042
+ if (c) {
3043
+ if (void 0 !== e.preset) {
3044
+ let a = e.preset;
3045
+ const s = i, n = i;
3046
+ let o = !1;
3047
+ const l = i;
3048
+ if ("boolean" != typeof a) {
3049
+ const e = { instancePath: t + "/preset", schemaPath: "#/definitions/StatsOptions/properties/preset/anyOf/0/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3050
+ null === r ? r = [e] : r.push(e), i++;
3051
+ }
3052
+ var u = l === i;
3053
+ if (o = o || u, !o) {
3054
+ const e = i;
3055
+ if ("string" != typeof a) {
3056
+ const e = { instancePath: t + "/preset", schemaPath: "#/definitions/StatsOptions/properties/preset/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3057
+ null === r ? r = [e] : r.push(e), i++;
3058
+ }
3059
+ u = e === i, o = o || u;
3060
+ }
3061
+ if (o)
3062
+ i = n, null !== r && (n ? r.length = n : r = null);
3063
+ else {
3064
+ const e = { instancePath: t + "/preset", schemaPath: "#/definitions/StatsOptions/properties/preset/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3065
+ null === r ? r = [e] : r.push(e), i++;
3066
+ }
3067
+ c = s === i;
3068
+ }
3069
+ else
3070
+ c = !0;
3071
+ if (c) {
3072
+ if (void 0 !== e.publicPath) {
3073
+ const a = i;
3074
+ if ("boolean" != typeof e.publicPath) {
3075
+ const e = { instancePath: t + "/publicPath", schemaPath: "#/definitions/StatsOptions/properties/publicPath/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3076
+ null === r ? r = [e] : r.push(e), i++;
3077
+ }
3078
+ c = a === i;
3079
+ }
3080
+ else
3081
+ c = !0;
3082
+ if (c) {
3083
+ if (void 0 !== e.reasons) {
3084
+ const a = i;
3085
+ if ("boolean" != typeof e.reasons) {
3086
+ const e = { instancePath: t + "/reasons", schemaPath: "#/definitions/StatsOptions/properties/reasons/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3087
+ null === r ? r = [e] : r.push(e), i++;
3088
+ }
3089
+ c = a === i;
3090
+ }
3091
+ else
3092
+ c = !0;
3093
+ if (c) {
3094
+ if (void 0 !== e.warnings) {
3095
+ const a = i;
3096
+ if ("boolean" != typeof e.warnings) {
3097
+ const e = { instancePath: t + "/warnings", schemaPath: "#/definitions/StatsOptions/properties/warnings/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3098
+ null === r ? r = [e] : r.push(e), i++;
3099
+ }
3100
+ c = a === i;
3101
+ }
3102
+ else
3103
+ c = !0;
3104
+ if (c)
3105
+ if (void 0 !== e.warningsCount) {
3106
+ const a = i;
3107
+ if ("boolean" != typeof e.warningsCount) {
3108
+ const e = { instancePath: t + "/warningsCount", schemaPath: "#/definitions/StatsOptions/properties/warningsCount/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3109
+ null === r ? r = [e] : r.push(e), i++;
3110
+ }
3111
+ c = a === i;
3112
+ }
3113
+ else
3114
+ c = !0;
3115
+ }
3116
+ }
3117
+ }
3118
+ }
3119
+ }
3120
+ }
3121
+ }
3122
+ }
3123
+ }
3124
+ }
3125
+ }
3126
+ }
3127
+ }
3128
+ }
3129
+ else {
3130
+ const e = { instancePath: t, schemaPath: "#/definitions/StatsOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3131
+ null === r ? r = [e] : r.push(e), i++;
3132
+ }
3133
+ p = a === i, l = l || p;
3134
+ }
3135
+ } if (!l) {
3136
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3137
+ return null === r ? r = [e] : r.push(e), i++, W.errors = r, !1;
3138
+ } return i = o, null !== r && (o ? r.length = o : r = null), W.errors = r, 0 === i; }
3139
+ function $(t, { instancePath: a = "", parentData: s, parentDataProperty: n, rootData: i = t } = {}) { let l = null, p = 0; if (0 === p) {
3140
+ if (!t || "object" != typeof t || Array.isArray(t))
3141
+ return $.errors = [{ instancePath: a, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
3142
+ if (void 0 !== t.cache) {
3143
+ const e = p;
3144
+ if ("boolean" != typeof t.cache)
3145
+ return $.errors = [{ instancePath: a + "/cache", schemaPath: "#/definitions/CacheOptions/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3146
+ var c = e === p;
3147
+ }
3148
+ else
3149
+ c = !0;
3150
+ if (c) {
3151
+ if (void 0 !== t.context) {
3152
+ const e = p;
3153
+ if ("string" != typeof t.context)
3154
+ return $.errors = [{ instancePath: a + "/context", schemaPath: "#/definitions/Context/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
3155
+ c = e === p;
3156
+ }
3157
+ else
3158
+ c = !0;
3159
+ if (c) {
3160
+ if (void 0 !== t.dependencies) {
3161
+ let e = t.dependencies;
3162
+ const s = p;
3163
+ if (p == p) {
3164
+ if (!Array.isArray(e))
3165
+ return $.errors = [{ instancePath: a + "/dependencies", schemaPath: "#/definitions/Dependencies/type", keyword: "type", params: { type: "array" }, message: "must be array" }], !1;
3166
+ {
3167
+ const t = e.length;
3168
+ for (let s = 0; s < t; s++) {
3169
+ const t = p;
3170
+ if ("string" != typeof e[s])
3171
+ return $.errors = [{ instancePath: a + "/dependencies/" + s, schemaPath: "#/definitions/Dependencies/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
3172
+ if (t !== p)
3173
+ break;
3174
+ }
3175
+ }
3176
+ }
3177
+ c = s === p;
3178
+ }
3179
+ else
3180
+ c = !0;
3181
+ if (c) {
3182
+ if (void 0 !== t.devServer) {
3183
+ let e = t.devServer;
3184
+ const s = p;
3185
+ if (!e || "object" != typeof e || Array.isArray(e))
3186
+ return $.errors = [{ instancePath: a + "/devServer", schemaPath: "#/definitions/DevServer/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
3187
+ c = s === p;
3188
+ }
3189
+ else
3190
+ c = !0;
3191
+ if (c) {
3192
+ if (void 0 !== t.devtool) {
3193
+ let s = t.devtool;
3194
+ const n = p, r = p;
3195
+ let i = !1;
3196
+ const o = p;
3197
+ if (!1 !== s) {
3198
+ const e = { instancePath: a + "/devtool", schemaPath: "#/definitions/DevTool/anyOf/0/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
3199
+ null === l ? l = [e] : l.push(e), p++;
3200
+ }
3201
+ var h = o === p;
3202
+ if (i = i || h, !i) {
3203
+ const t = p;
3204
+ if (p === t)
3205
+ if ("string" == typeof s) {
3206
+ if (!e.test(s)) {
3207
+ const e = { instancePath: a + "/devtool", schemaPath: "#/definitions/DevTool/anyOf/1/pattern", keyword: "pattern", params: { pattern: "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }, message: 'must match pattern "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$"' };
3208
+ null === l ? l = [e] : l.push(e), p++;
3209
+ }
3210
+ }
3211
+ else {
3212
+ const e = { instancePath: a + "/devtool", schemaPath: "#/definitions/DevTool/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3213
+ null === l ? l = [e] : l.push(e), p++;
3214
+ }
3215
+ h = t === p, i = i || h;
3216
+ }
3217
+ if (!i) {
3218
+ const e = { instancePath: a + "/devtool", schemaPath: "#/definitions/DevTool/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3219
+ return null === l ? l = [e] : l.push(e), p++, $.errors = l, !1;
3220
+ }
3221
+ p = r, null !== l && (r ? l.length = r : l = null), c = n === p;
3222
+ }
3223
+ else
3224
+ c = !0;
3225
+ if (c) {
3226
+ if (void 0 !== t.entry) {
3227
+ const e = p;
3228
+ r(t.entry, { instancePath: a + "/entry", parentData: t, parentDataProperty: "entry", rootData: i }) || (l = null === l ? r.errors : l.concat(r.errors), p = l.length), c = e === p;
3229
+ }
3230
+ else
3231
+ c = !0;
3232
+ if (c) {
3233
+ if (void 0 !== t.experiments) {
3234
+ let e = t.experiments;
3235
+ const s = p;
3236
+ if (p == p) {
3237
+ if (!e || "object" != typeof e || Array.isArray(e))
3238
+ return $.errors = [{ instancePath: a + "/experiments", schemaPath: "#/definitions/Experiments/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
3239
+ {
3240
+ const t = p;
3241
+ for (const t in e)
3242
+ if ("incrementalRebuild" !== t && "lazyCompilation" !== t)
3243
+ return $.errors = [{ instancePath: a + "/experiments", schemaPath: "#/definitions/Experiments/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t }, message: "must NOT have additional properties" }], !1;
3244
+ if (t === p) {
3245
+ if (void 0 !== e.incrementalRebuild) {
3246
+ const t = p;
3247
+ if ("boolean" != typeof e.incrementalRebuild)
3248
+ return $.errors = [{ instancePath: a + "/experiments/incrementalRebuild", schemaPath: "#/definitions/Experiments/properties/incrementalRebuild/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3249
+ var u = t === p;
3250
+ }
3251
+ else
3252
+ u = !0;
3253
+ if (u)
3254
+ if (void 0 !== e.lazyCompilation) {
3255
+ const t = p, s = p;
3256
+ let n = !1;
3257
+ const r = p;
3258
+ if ("boolean" != typeof e.lazyCompilation) {
3259
+ const e = { instancePath: a + "/experiments/lazyCompilation", schemaPath: "#/definitions/Experiments/properties/lazyCompilation/anyOf/0/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3260
+ null === l ? l = [e] : l.push(e), p++;
3261
+ }
3262
+ if (n = n || r === p, !n) {
3263
+ const e = { instancePath: a + "/experiments/lazyCompilation", schemaPath: "#/definitions/Experiments/properties/lazyCompilation/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3264
+ return null === l ? l = [e] : l.push(e), p++, $.errors = l, !1;
3265
+ }
3266
+ p = s, null !== l && (s ? l.length = s : l = null), u = t === p;
3267
+ }
3268
+ else
3269
+ u = !0;
3270
+ }
3271
+ }
3272
+ }
3273
+ c = s === p;
3274
+ }
3275
+ else
3276
+ c = !0;
3277
+ if (c) {
3278
+ if (void 0 !== t.externals) {
3279
+ const e = p;
3280
+ o(t.externals, { instancePath: a + "/externals", parentData: t, parentDataProperty: "externals", rootData: i }) || (l = null === l ? o.errors : l.concat(o.errors), p = l.length), c = e === p;
3281
+ }
3282
+ else
3283
+ c = !0;
3284
+ if (c) {
3285
+ if (void 0 !== t.externalsType) {
3286
+ let e = t.externalsType;
3287
+ const s = p;
3288
+ if ("var" !== e && "module" !== e && "assign" !== e && "this" !== e && "window" !== e && "self" !== e && "global" !== e && "commonjs" !== e && "commonjs2" !== e && "commonjs-module" !== e && "commonjs-static" !== e && "amd" !== e && "amd-require" !== e && "umd" !== e && "umd2" !== e && "jsonp" !== e && "system" !== e && "promise" !== e && "import" !== e && "script" !== e && "node-commonjs" !== e)
3289
+ return $.errors = [{ instancePath: a + "/externalsType", schemaPath: "#/definitions/ExternalsType/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' }], !1;
3290
+ c = s === p;
3291
+ }
3292
+ else
3293
+ c = !0;
3294
+ if (c) {
3295
+ if (void 0 !== t.infrastructureLogging) {
3296
+ const e = p;
3297
+ m(t.infrastructureLogging, { instancePath: a + "/infrastructureLogging", parentData: t, parentDataProperty: "infrastructureLogging", rootData: i }) || (l = null === l ? m.errors : l.concat(m.errors), p = l.length), c = e === p;
3298
+ }
3299
+ else
3300
+ c = !0;
3301
+ if (c) {
3302
+ if (void 0 !== t.mode) {
3303
+ let e = t.mode;
3304
+ const s = p;
3305
+ if ("development" !== e && "production" !== e && "none" !== e)
3306
+ return $.errors = [{ instancePath: a + "/mode", schemaPath: "#/definitions/Mode/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' }], !1;
3307
+ c = s === p;
3308
+ }
3309
+ else
3310
+ c = !0;
3311
+ if (c) {
3312
+ if (void 0 !== t.module) {
3313
+ const e = p;
3314
+ j(t.module, { instancePath: a + "/module", parentData: t, parentDataProperty: "module", rootData: i }) || (l = null === l ? j.errors : l.concat(j.errors), p = l.length), c = e === p;
3315
+ }
3316
+ else
3317
+ c = !0;
3318
+ if (c) {
3319
+ if (void 0 !== t.name) {
3320
+ const e = p;
3321
+ if ("string" != typeof t.name)
3322
+ return $.errors = [{ instancePath: a + "/name", schemaPath: "#/definitions/Name/type", keyword: "type", params: { type: "string" }, message: "must be string" }], !1;
3323
+ c = e === p;
3324
+ }
3325
+ else
3326
+ c = !0;
3327
+ if (c) {
3328
+ if (void 0 !== t.node) {
3329
+ const e = p;
3330
+ A(t.node, { instancePath: a + "/node", parentData: t, parentDataProperty: "node", rootData: i }) || (l = null === l ? A.errors : l.concat(A.errors), p = l.length), c = e === p;
3331
+ }
3332
+ else
3333
+ c = !0;
3334
+ if (c) {
3335
+ if (void 0 !== t.optimization) {
3336
+ const e = p;
3337
+ C(t.optimization, { instancePath: a + "/optimization", parentData: t, parentDataProperty: "optimization", rootData: i }) || (l = null === l ? C.errors : l.concat(C.errors), p = l.length), c = e === p;
3338
+ }
3339
+ else
3340
+ c = !0;
3341
+ if (c) {
3342
+ if (void 0 !== t.output) {
3343
+ const e = p;
3344
+ G(t.output, { instancePath: a + "/output", parentData: t, parentDataProperty: "output", rootData: i }) || (l = null === l ? G.errors : l.concat(G.errors), p = l.length), c = e === p;
3345
+ }
3346
+ else
3347
+ c = !0;
3348
+ if (c) {
3349
+ if (void 0 !== t.plugins) {
3350
+ const e = p;
3351
+ U(t.plugins, { instancePath: a + "/plugins", parentData: t, parentDataProperty: "plugins", rootData: i }) || (l = null === l ? U.errors : l.concat(U.errors), p = l.length), c = e === p;
3352
+ }
3353
+ else
3354
+ c = !0;
3355
+ if (c) {
3356
+ if (void 0 !== t.resolve) {
3357
+ const e = p;
3358
+ M(t.resolve, { instancePath: a + "/resolve", parentData: t, parentDataProperty: "resolve", rootData: i }) || (l = null === l ? M.errors : l.concat(M.errors), p = l.length), c = e === p;
3359
+ }
3360
+ else
3361
+ c = !0;
3362
+ if (c) {
3363
+ if (void 0 !== t.snapshot) {
3364
+ let e = t.snapshot;
3365
+ const s = p;
3366
+ if (p == p) {
3367
+ if (!e || "object" != typeof e || Array.isArray(e))
3368
+ return $.errors = [{ instancePath: a + "/snapshot", schemaPath: "#/definitions/SnapshotOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
3369
+ {
3370
+ const t = p;
3371
+ for (const t in e)
3372
+ if ("module" !== t && "resolve" !== t)
3373
+ return $.errors = [{ instancePath: a + "/snapshot", schemaPath: "#/definitions/SnapshotOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t }, message: "must NOT have additional properties" }], !1;
3374
+ if (t === p) {
3375
+ if (void 0 !== e.module) {
3376
+ let t = e.module;
3377
+ const s = p;
3378
+ if (p === s) {
3379
+ if (!t || "object" != typeof t || Array.isArray(t))
3380
+ return $.errors = [{ instancePath: a + "/snapshot/module", schemaPath: "#/definitions/SnapshotOptions/properties/module/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
3381
+ {
3382
+ const e = p;
3383
+ for (const e in t)
3384
+ if ("hash" !== e && "timestamp" !== e)
3385
+ return $.errors = [{ instancePath: a + "/snapshot/module", schemaPath: "#/definitions/SnapshotOptions/properties/module/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: e }, message: "must NOT have additional properties" }], !1;
3386
+ if (e === p) {
3387
+ if (void 0 !== t.hash) {
3388
+ const e = p;
3389
+ if ("boolean" != typeof t.hash)
3390
+ return $.errors = [{ instancePath: a + "/snapshot/module/hash", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3391
+ var y = e === p;
3392
+ }
3393
+ else
3394
+ y = !0;
3395
+ if (y)
3396
+ if (void 0 !== t.timestamp) {
3397
+ const e = p;
3398
+ if ("boolean" != typeof t.timestamp)
3399
+ return $.errors = [{ instancePath: a + "/snapshot/module/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/timestamp/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3400
+ y = e === p;
3401
+ }
3402
+ else
3403
+ y = !0;
3404
+ }
3405
+ }
3406
+ }
3407
+ var f = s === p;
3408
+ }
3409
+ else
3410
+ f = !0;
3411
+ if (f)
3412
+ if (void 0 !== e.resolve) {
3413
+ let t = e.resolve;
3414
+ const s = p;
3415
+ if (p === s) {
3416
+ if (!t || "object" != typeof t || Array.isArray(t))
3417
+ return $.errors = [{ instancePath: a + "/snapshot/resolve", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
3418
+ {
3419
+ const e = p;
3420
+ for (const e in t)
3421
+ if ("hash" !== e && "timestamp" !== e)
3422
+ return $.errors = [{ instancePath: a + "/snapshot/resolve", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: e }, message: "must NOT have additional properties" }], !1;
3423
+ if (e === p) {
3424
+ if (void 0 !== t.hash) {
3425
+ const e = p;
3426
+ if ("boolean" != typeof t.hash)
3427
+ return $.errors = [{ instancePath: a + "/snapshot/resolve/hash", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3428
+ var d = e === p;
3429
+ }
3430
+ else
3431
+ d = !0;
3432
+ if (d)
3433
+ if (void 0 !== t.timestamp) {
3434
+ const e = p;
3435
+ if ("boolean" != typeof t.timestamp)
3436
+ return $.errors = [{ instancePath: a + "/snapshot/resolve/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/timestamp/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3437
+ d = e === p;
3438
+ }
3439
+ else
3440
+ d = !0;
3441
+ }
3442
+ }
3443
+ }
3444
+ f = s === p;
3445
+ }
3446
+ else
3447
+ f = !0;
3448
+ }
3449
+ }
3450
+ }
3451
+ c = s === p;
3452
+ }
3453
+ else
3454
+ c = !0;
3455
+ if (c) {
3456
+ if (void 0 !== t.stats) {
3457
+ const e = p;
3458
+ W(t.stats, { instancePath: a + "/stats", parentData: t, parentDataProperty: "stats", rootData: i }) || (l = null === l ? W.errors : l.concat(W.errors), p = l.length), c = e === p;
3459
+ }
3460
+ else
3461
+ c = !0;
3462
+ if (c) {
3463
+ if (void 0 !== t.target) {
3464
+ let e = t.target;
3465
+ const s = p, n = p;
3466
+ let r = !1;
3467
+ const i = p;
3468
+ if (p === i)
3469
+ if (Array.isArray(e))
3470
+ if (e.length < 1) {
3471
+ const e = { instancePath: a + "/target", schemaPath: "#/definitions/Target/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
3472
+ null === l ? l = [e] : l.push(e), p++;
3473
+ }
3474
+ else {
3475
+ const t = e.length;
3476
+ for (let s = 0; s < t; s++) {
3477
+ let t = e[s];
3478
+ const n = p;
3479
+ if (p === n)
3480
+ if ("string" == typeof t) {
3481
+ if (t.length < 1) {
3482
+ const e = { instancePath: a + "/target/" + s, schemaPath: "#/definitions/Target/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
3483
+ null === l ? l = [e] : l.push(e), p++;
3484
+ }
3485
+ }
3486
+ else {
3487
+ const e = { instancePath: a + "/target/" + s, schemaPath: "#/definitions/Target/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3488
+ null === l ? l = [e] : l.push(e), p++;
3489
+ }
3490
+ if (n !== p)
3491
+ break;
3492
+ }
3493
+ }
3494
+ else {
3495
+ const e = { instancePath: a + "/target", schemaPath: "#/definitions/Target/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
3496
+ null === l ? l = [e] : l.push(e), p++;
3497
+ }
3498
+ var g = i === p;
3499
+ if (r = r || g, !r) {
3500
+ const t = p;
3501
+ if (!1 !== e) {
3502
+ const e = { instancePath: a + "/target", schemaPath: "#/definitions/Target/anyOf/1/enum", keyword: "enum", params: {}, message: 'must pass "enum" keyword validation' };
3503
+ null === l ? l = [e] : l.push(e), p++;
3504
+ }
3505
+ if (g = t === p, r = r || g, !r) {
3506
+ const t = p;
3507
+ if (p === t)
3508
+ if ("string" == typeof e) {
3509
+ if (e.length < 1) {
3510
+ const e = { instancePath: a + "/target", schemaPath: "#/definitions/Target/anyOf/2/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
3511
+ null === l ? l = [e] : l.push(e), p++;
3512
+ }
3513
+ }
3514
+ else {
3515
+ const e = { instancePath: a + "/target", schemaPath: "#/definitions/Target/anyOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3516
+ null === l ? l = [e] : l.push(e), p++;
3517
+ }
3518
+ g = t === p, r = r || g;
3519
+ }
3520
+ }
3521
+ if (!r) {
3522
+ const e = { instancePath: a + "/target", schemaPath: "#/definitions/Target/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3523
+ return null === l ? l = [e] : l.push(e), p++, $.errors = l, !1;
3524
+ }
3525
+ p = n, null !== l && (n ? l.length = n : l = null), c = s === p;
3526
+ }
3527
+ else
3528
+ c = !0;
3529
+ if (c) {
3530
+ if (void 0 !== t.watch) {
3531
+ const e = p;
3532
+ if ("boolean" != typeof t.watch)
3533
+ return $.errors = [{ instancePath: a + "/watch", schemaPath: "#/definitions/Watch/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3534
+ c = e === p;
3535
+ }
3536
+ else
3537
+ c = !0;
3538
+ if (c) {
3539
+ if (void 0 !== t.watchOptions) {
3540
+ let e = t.watchOptions;
3541
+ const s = p;
3542
+ if (p == p) {
3543
+ if (!e || "object" != typeof e || Array.isArray(e))
3544
+ return $.errors = [{ instancePath: a + "/watchOptions", schemaPath: "#/definitions/WatchOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
3545
+ {
3546
+ const t = p;
3547
+ for (const t in e)
3548
+ if ("aggregateTimeout" !== t && "followSymlinks" !== t && "ignored" !== t && "poll" !== t && "stdin" !== t)
3549
+ return $.errors = [{ instancePath: a + "/watchOptions", schemaPath: "#/definitions/WatchOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t }, message: "must NOT have additional properties" }], !1;
3550
+ if (t === p) {
3551
+ if (void 0 !== e.aggregateTimeout) {
3552
+ const t = p;
3553
+ if ("number" != typeof e.aggregateTimeout)
3554
+ return $.errors = [{ instancePath: a + "/watchOptions/aggregateTimeout", schemaPath: "#/definitions/WatchOptions/properties/aggregateTimeout/type", keyword: "type", params: { type: "number" }, message: "must be number" }], !1;
3555
+ var P = t === p;
3556
+ }
3557
+ else
3558
+ P = !0;
3559
+ if (P) {
3560
+ if (void 0 !== e.followSymlinks) {
3561
+ const t = p;
3562
+ if ("boolean" != typeof e.followSymlinks)
3563
+ return $.errors = [{ instancePath: a + "/watchOptions/followSymlinks", schemaPath: "#/definitions/WatchOptions/properties/followSymlinks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3564
+ P = t === p;
3565
+ }
3566
+ else
3567
+ P = !0;
3568
+ if (P) {
3569
+ if (void 0 !== e.ignored) {
3570
+ let t = e.ignored;
3571
+ const s = p, n = p;
3572
+ let r = !1;
3573
+ const i = p;
3574
+ if (p === i)
3575
+ if (Array.isArray(t)) {
3576
+ const e = t.length;
3577
+ for (let s = 0; s < e; s++) {
3578
+ let e = t[s];
3579
+ const n = p;
3580
+ if (p === n)
3581
+ if ("string" == typeof e) {
3582
+ if (e.length < 1) {
3583
+ const e = { instancePath: a + "/watchOptions/ignored/" + s, schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
3584
+ null === l ? l = [e] : l.push(e), p++;
3585
+ }
3586
+ }
3587
+ else {
3588
+ const e = { instancePath: a + "/watchOptions/ignored/" + s, schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3589
+ null === l ? l = [e] : l.push(e), p++;
3590
+ }
3591
+ if (n !== p)
3592
+ break;
3593
+ }
3594
+ }
3595
+ else {
3596
+ const e = { instancePath: a + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
3597
+ null === l ? l = [e] : l.push(e), p++;
3598
+ }
3599
+ var b = i === p;
3600
+ if (r = r || b, !r) {
3601
+ const e = p;
3602
+ if (!(t instanceof RegExp)) {
3603
+ const e = { instancePath: a + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: 'must pass "instanceof" keyword validation' };
3604
+ null === l ? l = [e] : l.push(e), p++;
3605
+ }
3606
+ if (b = e === p, r = r || b, !r) {
3607
+ const e = p;
3608
+ if (p === e)
3609
+ if ("string" == typeof t) {
3610
+ if (t.length < 1) {
3611
+ const e = { instancePath: a + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/2/minLength", keyword: "minLength", params: {}, message: 'must pass "minLength" keyword validation' };
3612
+ null === l ? l = [e] : l.push(e), p++;
3613
+ }
3614
+ }
3615
+ else {
3616
+ const e = { instancePath: a + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3617
+ null === l ? l = [e] : l.push(e), p++;
3618
+ }
3619
+ b = e === p, r = r || b;
3620
+ }
3621
+ }
3622
+ if (!r) {
3623
+ const e = { instancePath: a + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3624
+ return null === l ? l = [e] : l.push(e), p++, $.errors = l, !1;
3625
+ }
3626
+ p = n, null !== l && (n ? l.length = n : l = null), P = s === p;
3627
+ }
3628
+ else
3629
+ P = !0;
3630
+ if (P) {
3631
+ if (void 0 !== e.poll) {
3632
+ let t = e.poll;
3633
+ const s = p, n = p;
3634
+ let r = !1;
3635
+ const i = p;
3636
+ if ("number" != typeof t) {
3637
+ const e = { instancePath: a + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
3638
+ null === l ? l = [e] : l.push(e), p++;
3639
+ }
3640
+ var O = i === p;
3641
+ if (r = r || O, !r) {
3642
+ const e = p;
3643
+ if ("boolean" != typeof t) {
3644
+ const e = { instancePath: a + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3645
+ null === l ? l = [e] : l.push(e), p++;
3646
+ }
3647
+ O = e === p, r = r || O;
3648
+ }
3649
+ if (!r) {
3650
+ const e = { instancePath: a + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3651
+ return null === l ? l = [e] : l.push(e), p++, $.errors = l, !1;
3652
+ }
3653
+ p = n, null !== l && (n ? l.length = n : l = null), P = s === p;
3654
+ }
3655
+ else
3656
+ P = !0;
3657
+ if (P)
3658
+ if (void 0 !== e.stdin) {
3659
+ const t = p;
3660
+ if ("boolean" != typeof e.stdin)
3661
+ return $.errors = [{ instancePath: a + "/watchOptions/stdin", schemaPath: "#/definitions/WatchOptions/properties/stdin/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }], !1;
3662
+ P = t === p;
3663
+ }
3664
+ else
3665
+ P = !0;
3666
+ }
3667
+ }
3668
+ }
3669
+ }
3670
+ }
3671
+ }
3672
+ c = s === p;
3673
+ }
3674
+ else
3675
+ c = !0;
3676
+ if (c)
3677
+ if (void 0 !== t.builtins) {
3678
+ let e = t.builtins;
3679
+ const s = p;
3680
+ if (p === s && (!e || "object" != typeof e || Array.isArray(e)))
3681
+ return $.errors = [{ instancePath: a + "/builtins", schemaPath: "#/properties/builtins/type", keyword: "type", params: { type: "object" }, message: "must be object" }], !1;
3682
+ c = s === p;
3683
+ }
3684
+ else
3685
+ c = !0;
3686
+ }
3687
+ }
3688
+ }
3689
+ }
3690
+ }
3691
+ }
3692
+ }
3693
+ }
3694
+ }
3695
+ }
3696
+ }
3697
+ }
3698
+ }
3699
+ }
3700
+ }
3701
+ }
3702
+ }
3703
+ }
3704
+ }
3705
+ }
3706
+ }
3707
+ }
3708
+ } return $.errors = l, 0 === p; }
3709
+ //# sourceMappingURL=schema.check.js.map