@module-federation/enhanced 2.3.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +40 -0
- package/dist/src/lib/container/ContainerEntryDependency.d.ts +1 -4
- package/dist/src/lib/container/ContainerEntryDependency.js +1 -3
- package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModule.d.ts +1 -4
- package/dist/src/lib/container/ContainerEntryModule.js +3 -9
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.js +1 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
- package/dist/src/lib/container/ContainerPlugin.js +3 -4
- package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
- package/dist/src/lib/container/ModuleFederationPlugin.js +0 -2
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +0 -2
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/runtime.mjs +3 -0
- package/dist/src/schemas/container/ContainerPlugin.check.d.ts +7 -7
- package/dist/src/schemas/container/ContainerPlugin.check.js +541 -734
- package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.d.ts +0 -4
- package/dist/src/schemas/container/ContainerPlugin.js +0 -4
- package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +5 -13
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +0 -4
- package/dist/src/schemas/container/ModuleFederationPlugin.js +0 -4
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
- package/package.json +13 -22
- package/dist/src/prefetch.d.ts +0 -3
- package/dist/src/prefetch.js +0 -17
|
@@ -2,371 +2,185 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
2
2
|
const require_runtime = require('../../_virtual/_rolldown/runtime.js');
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/container/ContainerPlugin.check.ts
|
|
5
|
-
const
|
|
6
|
-
const validate =
|
|
7
|
-
var ContainerPlugin_check_default =
|
|
8
|
-
const
|
|
9
|
-
definitions: {
|
|
10
|
-
AmdContainer: {
|
|
11
|
-
type: "string",
|
|
12
|
-
minLength: 1
|
|
13
|
-
},
|
|
14
|
-
AuxiliaryComment: { anyOf: [{ type: "string" }, { $ref: "#/definitions/LibraryCustomUmdCommentObject" }] },
|
|
15
|
-
EntryRuntime: { anyOf: [{ enum: [!1] }, {
|
|
16
|
-
type: "string",
|
|
17
|
-
minLength: 1
|
|
18
|
-
}] },
|
|
19
|
-
Exposes: { anyOf: [{
|
|
20
|
-
type: "array",
|
|
21
|
-
items: { anyOf: [{ $ref: "#/definitions/ExposesItem" }, { $ref: "#/definitions/ExposesObject" }] }
|
|
22
|
-
}, { $ref: "#/definitions/ExposesObject" }] },
|
|
23
|
-
ExposesConfig: {
|
|
24
|
-
type: "object",
|
|
25
|
-
additionalProperties: !1,
|
|
26
|
-
properties: {
|
|
27
|
-
import: { anyOf: [{ $ref: "#/definitions/ExposesItem" }, { $ref: "#/definitions/ExposesItems" }] },
|
|
28
|
-
name: { type: "string" }
|
|
29
|
-
},
|
|
30
|
-
required: ["import"]
|
|
31
|
-
},
|
|
32
|
-
ExposesItem: {
|
|
33
|
-
type: "string",
|
|
34
|
-
minLength: 1
|
|
35
|
-
},
|
|
36
|
-
ExposesItems: {
|
|
37
|
-
type: "array",
|
|
38
|
-
items: { $ref: "#/definitions/ExposesItem" }
|
|
39
|
-
},
|
|
40
|
-
ExposesObject: {
|
|
41
|
-
type: "object",
|
|
42
|
-
additionalProperties: { anyOf: [
|
|
43
|
-
{ $ref: "#/definitions/ExposesConfig" },
|
|
44
|
-
{ $ref: "#/definitions/ExposesItem" },
|
|
45
|
-
{ $ref: "#/definitions/ExposesItems" }
|
|
46
|
-
] }
|
|
47
|
-
},
|
|
48
|
-
LibraryCustomUmdCommentObject: {
|
|
49
|
-
type: "object",
|
|
50
|
-
additionalProperties: !1,
|
|
51
|
-
properties: {
|
|
52
|
-
amd: { type: "string" },
|
|
53
|
-
commonjs: { type: "string" },
|
|
54
|
-
commonjs2: { type: "string" },
|
|
55
|
-
root: { type: "string" }
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
LibraryCustomUmdObject: {
|
|
59
|
-
type: "object",
|
|
60
|
-
additionalProperties: !1,
|
|
61
|
-
properties: {
|
|
62
|
-
amd: {
|
|
63
|
-
type: "string",
|
|
64
|
-
minLength: 1
|
|
65
|
-
},
|
|
66
|
-
commonjs: {
|
|
67
|
-
type: "string",
|
|
68
|
-
minLength: 1
|
|
69
|
-
},
|
|
70
|
-
root: { anyOf: [{
|
|
71
|
-
type: "array",
|
|
72
|
-
items: {
|
|
73
|
-
type: "string",
|
|
74
|
-
minLength: 1
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
type: "string",
|
|
78
|
-
minLength: 1
|
|
79
|
-
}] }
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
LibraryExport: { anyOf: [{
|
|
83
|
-
type: "array",
|
|
84
|
-
items: {
|
|
85
|
-
type: "string",
|
|
86
|
-
minLength: 1
|
|
87
|
-
}
|
|
88
|
-
}, {
|
|
89
|
-
type: "string",
|
|
90
|
-
minLength: 1
|
|
91
|
-
}] },
|
|
92
|
-
LibraryName: { anyOf: [
|
|
93
|
-
{
|
|
94
|
-
type: "array",
|
|
95
|
-
items: {
|
|
96
|
-
type: "string",
|
|
97
|
-
minLength: 1
|
|
98
|
-
},
|
|
99
|
-
minItems: 1
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
type: "string",
|
|
103
|
-
minLength: 1
|
|
104
|
-
},
|
|
105
|
-
{ $ref: "#/definitions/LibraryCustomUmdObject" }
|
|
106
|
-
] },
|
|
107
|
-
LibraryOptions: {
|
|
108
|
-
type: "object",
|
|
109
|
-
additionalProperties: !1,
|
|
110
|
-
properties: {
|
|
111
|
-
amdContainer: { $ref: "#/definitions/AmdContainer" },
|
|
112
|
-
auxiliaryComment: { $ref: "#/definitions/AuxiliaryComment" },
|
|
113
|
-
export: { $ref: "#/definitions/LibraryExport" },
|
|
114
|
-
name: { $ref: "#/definitions/LibraryName" },
|
|
115
|
-
type: { $ref: "#/definitions/LibraryType" },
|
|
116
|
-
umdNamedDefine: { $ref: "#/definitions/UmdNamedDefine" }
|
|
117
|
-
},
|
|
118
|
-
required: ["type"]
|
|
119
|
-
},
|
|
120
|
-
LibraryType: { anyOf: [{ enum: [
|
|
121
|
-
"var",
|
|
122
|
-
"module",
|
|
123
|
-
"assign",
|
|
124
|
-
"assign-properties",
|
|
125
|
-
"this",
|
|
126
|
-
"window",
|
|
127
|
-
"self",
|
|
128
|
-
"global",
|
|
129
|
-
"commonjs",
|
|
130
|
-
"commonjs2",
|
|
131
|
-
"commonjs-module",
|
|
132
|
-
"commonjs-static",
|
|
133
|
-
"amd",
|
|
134
|
-
"amd-require",
|
|
135
|
-
"umd",
|
|
136
|
-
"umd2",
|
|
137
|
-
"jsonp",
|
|
138
|
-
"system"
|
|
139
|
-
] }, { type: "string" }] },
|
|
140
|
-
UmdNamedDefine: { type: "boolean" }
|
|
141
|
-
},
|
|
142
|
-
type: "object",
|
|
143
|
-
additionalProperties: !1,
|
|
144
|
-
properties: {
|
|
145
|
-
exposes: { $ref: "#/definitions/Exposes" },
|
|
146
|
-
filename: {
|
|
147
|
-
type: "string",
|
|
148
|
-
absolutePath: !1,
|
|
149
|
-
minLength: 1
|
|
150
|
-
},
|
|
151
|
-
library: { $ref: "#/definitions/LibraryOptions" },
|
|
152
|
-
name: {
|
|
153
|
-
type: "string",
|
|
154
|
-
minLength: 1
|
|
155
|
-
},
|
|
156
|
-
runtime: { $ref: "#/definitions/EntryRuntime" },
|
|
157
|
-
shareScope: { anyOf: [{
|
|
158
|
-
type: "string",
|
|
159
|
-
minLength: 1
|
|
160
|
-
}, {
|
|
161
|
-
type: "array",
|
|
162
|
-
items: {
|
|
163
|
-
type: "string",
|
|
164
|
-
minLength: 1
|
|
165
|
-
}
|
|
166
|
-
}] },
|
|
167
|
-
experiments: {
|
|
168
|
-
type: "object",
|
|
169
|
-
additionalProperties: !1,
|
|
170
|
-
properties: {
|
|
171
|
-
asyncStartup: { type: "boolean" },
|
|
172
|
-
externalRuntime: {
|
|
173
|
-
type: "boolean",
|
|
174
|
-
default: !1
|
|
175
|
-
},
|
|
176
|
-
provideExternalRuntime: {
|
|
177
|
-
type: "boolean",
|
|
178
|
-
default: !1
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
dataPrefetch: { type: "boolean" },
|
|
183
|
-
runtimePlugins: {
|
|
184
|
-
type: "array",
|
|
185
|
-
items: { anyOf: [{ type: "string" }, {
|
|
186
|
-
type: "array",
|
|
187
|
-
items: [{ type: "string" }, { type: "object" }],
|
|
188
|
-
minItems: 2,
|
|
189
|
-
maxItems: 2
|
|
190
|
-
}] }
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
required: ["name", "exposes"]
|
|
194
|
-
}, r = { anyOf: [{ enum: [!1] }, {
|
|
5
|
+
const r = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
|
|
6
|
+
const validate = f;
|
|
7
|
+
var ContainerPlugin_check_default = f;
|
|
8
|
+
const t = { anyOf: [{ enum: [!1] }, {
|
|
195
9
|
type: "string",
|
|
196
10
|
minLength: 1
|
|
197
|
-
}] }
|
|
198
|
-
function
|
|
199
|
-
if (!Array.isArray(
|
|
11
|
+
}] };
|
|
12
|
+
function e(r, { instancePath: t = "", parentData: n, parentDataProperty: s, rootData: a = r } = {}) {
|
|
13
|
+
if (!Array.isArray(r)) return e.errors = [{ params: { type: "array" } }], !1;
|
|
200
14
|
{
|
|
201
|
-
const
|
|
202
|
-
for (let
|
|
203
|
-
let
|
|
204
|
-
const
|
|
205
|
-
if ("string" != typeof
|
|
206
|
-
if (
|
|
207
|
-
if (0 !==
|
|
15
|
+
const t = r.length;
|
|
16
|
+
for (let n = 0; n < t; n++) {
|
|
17
|
+
let t = r[n];
|
|
18
|
+
const s = 0;
|
|
19
|
+
if ("string" != typeof t) return e.errors = [{ params: { type: "string" } }], !1;
|
|
20
|
+
if (t.length < 1) return e.errors = [{ params: {} }], !1;
|
|
21
|
+
if (0 !== s) break;
|
|
208
22
|
}
|
|
209
23
|
}
|
|
210
|
-
return
|
|
24
|
+
return e.errors = null, !0;
|
|
211
25
|
}
|
|
212
|
-
function
|
|
26
|
+
function n(r, { instancePath: t = "", parentData: s, parentDataProperty: a, rootData: o = r } = {}) {
|
|
213
27
|
let i = null, l = 0;
|
|
214
28
|
if (0 === l) {
|
|
215
|
-
if (!
|
|
29
|
+
if (!r || "object" != typeof r || Array.isArray(r)) return n.errors = [{ params: { type: "object" } }], !1;
|
|
216
30
|
{
|
|
217
|
-
let
|
|
218
|
-
if (void 0 ===
|
|
31
|
+
let s;
|
|
32
|
+
if (void 0 === r.import && (s = "import")) return n.errors = [{ params: { missingProperty: s } }], !1;
|
|
219
33
|
{
|
|
220
|
-
const
|
|
221
|
-
for (const
|
|
222
|
-
if (
|
|
223
|
-
if (void 0 !==
|
|
224
|
-
let
|
|
225
|
-
const
|
|
226
|
-
let
|
|
227
|
-
const
|
|
228
|
-
if (l == l) if ("string" == typeof
|
|
229
|
-
if (
|
|
230
|
-
const
|
|
231
|
-
null === i ? i = [
|
|
34
|
+
const s = l;
|
|
35
|
+
for (const t in r) if ("import" !== t && "name" !== t) return n.errors = [{ params: { additionalProperty: t } }], !1;
|
|
36
|
+
if (s === l) {
|
|
37
|
+
if (void 0 !== r.import) {
|
|
38
|
+
let s = r.import;
|
|
39
|
+
const a = l, u = l;
|
|
40
|
+
let c = !1;
|
|
41
|
+
const m = l;
|
|
42
|
+
if (l == l) if ("string" == typeof s) {
|
|
43
|
+
if (s.length < 1) {
|
|
44
|
+
const r = { params: {} };
|
|
45
|
+
null === i ? i = [r] : i.push(r), l++;
|
|
232
46
|
}
|
|
233
47
|
} else {
|
|
234
|
-
const
|
|
235
|
-
null === i ? i = [
|
|
48
|
+
const r = { params: { type: "string" } };
|
|
49
|
+
null === i ? i = [r] : i.push(r), l++;
|
|
236
50
|
}
|
|
237
|
-
var p =
|
|
238
|
-
if (
|
|
51
|
+
var p = m === l;
|
|
52
|
+
if (c = c || p, !c) {
|
|
239
53
|
const n = l;
|
|
240
|
-
s
|
|
241
|
-
instancePath:
|
|
242
|
-
parentData:
|
|
54
|
+
e(s, {
|
|
55
|
+
instancePath: t + "/import",
|
|
56
|
+
parentData: r,
|
|
243
57
|
parentDataProperty: "import",
|
|
244
58
|
rootData: o
|
|
245
|
-
}) || (i = null === i ?
|
|
59
|
+
}) || (i = null === i ? e.errors : i.concat(e.errors), l = i.length), p = n === l, c = c || p;
|
|
246
60
|
}
|
|
247
|
-
if (!
|
|
248
|
-
const
|
|
249
|
-
return null === i ? i = [
|
|
61
|
+
if (!c) {
|
|
62
|
+
const r = { params: {} };
|
|
63
|
+
return null === i ? i = [r] : i.push(r), l++, n.errors = i, !1;
|
|
250
64
|
}
|
|
251
|
-
l =
|
|
252
|
-
var f =
|
|
65
|
+
l = u, null !== i && (u ? i.length = u : i = null);
|
|
66
|
+
var f = a === l;
|
|
253
67
|
} else f = !0;
|
|
254
|
-
if (f) if (void 0 !==
|
|
255
|
-
const
|
|
256
|
-
if ("string" != typeof
|
|
257
|
-
f =
|
|
68
|
+
if (f) if (void 0 !== r.name) {
|
|
69
|
+
const t = l;
|
|
70
|
+
if ("string" != typeof r.name) return n.errors = [{ params: { type: "string" } }], !1;
|
|
71
|
+
f = t === l;
|
|
258
72
|
} else f = !0;
|
|
259
73
|
}
|
|
260
74
|
}
|
|
261
75
|
}
|
|
262
76
|
}
|
|
263
|
-
return
|
|
77
|
+
return n.errors = i, 0 === l;
|
|
264
78
|
}
|
|
265
|
-
function
|
|
79
|
+
function s(r, { instancePath: t = "", parentData: a, parentDataProperty: o, rootData: i = r } = {}) {
|
|
266
80
|
let l = null, p = 0;
|
|
267
81
|
if (0 === p) {
|
|
268
|
-
if (!
|
|
269
|
-
for (const
|
|
270
|
-
let
|
|
271
|
-
const
|
|
272
|
-
let
|
|
82
|
+
if (!r || "object" != typeof r || Array.isArray(r)) return s.errors = [{ params: { type: "object" } }], !1;
|
|
83
|
+
for (const a in r) {
|
|
84
|
+
let o = r[a];
|
|
85
|
+
const u = p, c = p;
|
|
86
|
+
let m = !1;
|
|
273
87
|
const y = p;
|
|
274
|
-
|
|
275
|
-
instancePath:
|
|
276
|
-
parentData:
|
|
277
|
-
parentDataProperty:
|
|
88
|
+
n(o, {
|
|
89
|
+
instancePath: t + "/" + a.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
90
|
+
parentData: r,
|
|
91
|
+
parentDataProperty: a,
|
|
278
92
|
rootData: i
|
|
279
|
-
}) || (l = null === l ?
|
|
93
|
+
}) || (l = null === l ? n.errors : l.concat(n.errors), p = l.length);
|
|
280
94
|
var f = y === p;
|
|
281
|
-
if (
|
|
282
|
-
const
|
|
283
|
-
if (p == p) if ("string" == typeof
|
|
284
|
-
if (
|
|
285
|
-
const
|
|
286
|
-
null === l ? l = [
|
|
95
|
+
if (m = m || f, !m) {
|
|
96
|
+
const n = p;
|
|
97
|
+
if (p == p) if ("string" == typeof o) {
|
|
98
|
+
if (o.length < 1) {
|
|
99
|
+
const r = { params: {} };
|
|
100
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
287
101
|
}
|
|
288
102
|
} else {
|
|
289
|
-
const
|
|
290
|
-
null === l ? l = [
|
|
103
|
+
const r = { params: { type: "string" } };
|
|
104
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
291
105
|
}
|
|
292
|
-
if (f =
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
instancePath:
|
|
296
|
-
parentData:
|
|
297
|
-
parentDataProperty:
|
|
106
|
+
if (f = n === p, m = m || f, !m) {
|
|
107
|
+
const n = p;
|
|
108
|
+
e(o, {
|
|
109
|
+
instancePath: t + "/" + a.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
110
|
+
parentData: r,
|
|
111
|
+
parentDataProperty: a,
|
|
298
112
|
rootData: i
|
|
299
|
-
}) || (l = null === l ?
|
|
113
|
+
}) || (l = null === l ? e.errors : l.concat(e.errors), p = l.length), f = n === p, m = m || f;
|
|
300
114
|
}
|
|
301
115
|
}
|
|
302
|
-
if (!
|
|
303
|
-
const
|
|
304
|
-
return null === l ? l = [
|
|
116
|
+
if (!m) {
|
|
117
|
+
const r = { params: {} };
|
|
118
|
+
return null === l ? l = [r] : l.push(r), p++, s.errors = l, !1;
|
|
305
119
|
}
|
|
306
|
-
if (p =
|
|
120
|
+
if (p = c, null !== l && (c ? l.length = c : l = null), u !== p) break;
|
|
307
121
|
}
|
|
308
122
|
}
|
|
309
|
-
return
|
|
123
|
+
return s.errors = l, 0 === p;
|
|
310
124
|
}
|
|
311
|
-
function
|
|
312
|
-
let
|
|
125
|
+
function a(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: o = r } = {}) {
|
|
126
|
+
let i = null, l = 0;
|
|
313
127
|
const p = l;
|
|
314
128
|
let f = !1;
|
|
315
|
-
const
|
|
316
|
-
if (l ===
|
|
317
|
-
const
|
|
318
|
-
for (let n = 0; n <
|
|
319
|
-
let
|
|
320
|
-
const
|
|
129
|
+
const u = l;
|
|
130
|
+
if (l === u) if (Array.isArray(r)) {
|
|
131
|
+
const e = r.length;
|
|
132
|
+
for (let n = 0; n < e; n++) {
|
|
133
|
+
let e = r[n];
|
|
134
|
+
const a = l, p = l;
|
|
321
135
|
let f = !1;
|
|
322
|
-
const
|
|
323
|
-
if (l == l) if ("string" == typeof
|
|
324
|
-
if (
|
|
325
|
-
const
|
|
326
|
-
null ===
|
|
136
|
+
const u = l;
|
|
137
|
+
if (l == l) if ("string" == typeof e) {
|
|
138
|
+
if (e.length < 1) {
|
|
139
|
+
const r = { params: {} };
|
|
140
|
+
null === i ? i = [r] : i.push(r), l++;
|
|
327
141
|
}
|
|
328
142
|
} else {
|
|
329
|
-
const
|
|
330
|
-
null ===
|
|
143
|
+
const r = { params: { type: "string" } };
|
|
144
|
+
null === i ? i = [r] : i.push(r), l++;
|
|
331
145
|
}
|
|
332
|
-
var
|
|
333
|
-
if (f = f ||
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
instancePath:
|
|
337
|
-
parentData:
|
|
146
|
+
var c = u === l;
|
|
147
|
+
if (f = f || c, !f) {
|
|
148
|
+
const a = l;
|
|
149
|
+
s(e, {
|
|
150
|
+
instancePath: t + "/" + n,
|
|
151
|
+
parentData: r,
|
|
338
152
|
parentDataProperty: n,
|
|
339
|
-
rootData:
|
|
340
|
-
}) || (
|
|
153
|
+
rootData: o
|
|
154
|
+
}) || (i = null === i ? s.errors : i.concat(s.errors), l = i.length), c = a === l, f = f || c;
|
|
341
155
|
}
|
|
342
|
-
if (f) l = p, null !==
|
|
156
|
+
if (f) l = p, null !== i && (p ? i.length = p : i = null);
|
|
343
157
|
else {
|
|
344
|
-
const
|
|
345
|
-
null ===
|
|
158
|
+
const r = { params: {} };
|
|
159
|
+
null === i ? i = [r] : i.push(r), l++;
|
|
346
160
|
}
|
|
347
|
-
if (
|
|
161
|
+
if (a !== l) break;
|
|
348
162
|
}
|
|
349
163
|
} else {
|
|
350
|
-
const
|
|
351
|
-
null ===
|
|
164
|
+
const r = { params: { type: "array" } };
|
|
165
|
+
null === i ? i = [r] : i.push(r), l++;
|
|
352
166
|
}
|
|
353
|
-
var
|
|
354
|
-
if (f = f ||
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
instancePath:
|
|
358
|
-
parentData:
|
|
167
|
+
var m = u === l;
|
|
168
|
+
if (f = f || m, !f) {
|
|
169
|
+
const a = l;
|
|
170
|
+
s(r, {
|
|
171
|
+
instancePath: t,
|
|
172
|
+
parentData: e,
|
|
359
173
|
parentDataProperty: n,
|
|
360
|
-
rootData:
|
|
361
|
-
}) || (
|
|
174
|
+
rootData: o
|
|
175
|
+
}) || (i = null === i ? s.errors : i.concat(s.errors), l = i.length), m = a === l, f = f || m;
|
|
362
176
|
}
|
|
363
177
|
if (!f) {
|
|
364
|
-
const
|
|
365
|
-
return null ===
|
|
178
|
+
const r = { params: {} };
|
|
179
|
+
return null === i ? i = [r] : i.push(r), l++, a.errors = i, !1;
|
|
366
180
|
}
|
|
367
|
-
return l = p, null !==
|
|
181
|
+
return l = p, null !== i && (p ? i.length = p : i = null), a.errors = i, 0 === l;
|
|
368
182
|
}
|
|
369
|
-
const
|
|
183
|
+
const o = { anyOf: [{ enum: [
|
|
370
184
|
"var",
|
|
371
185
|
"module",
|
|
372
186
|
"assign",
|
|
@@ -386,332 +200,332 @@ const l = { anyOf: [{ enum: [
|
|
|
386
200
|
"jsonp",
|
|
387
201
|
"system"
|
|
388
202
|
] }, { type: "string" }] };
|
|
389
|
-
function
|
|
203
|
+
function i(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: s = r } = {}) {
|
|
390
204
|
let a = null, o = 0;
|
|
391
|
-
const
|
|
392
|
-
let
|
|
205
|
+
const l = o;
|
|
206
|
+
let p = !1;
|
|
393
207
|
const f = o;
|
|
394
|
-
if ("string" != typeof
|
|
395
|
-
const
|
|
396
|
-
null === a ? a = [
|
|
208
|
+
if ("string" != typeof r) {
|
|
209
|
+
const r = { params: { type: "string" } };
|
|
210
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
397
211
|
}
|
|
398
|
-
var
|
|
399
|
-
if (
|
|
400
|
-
const
|
|
401
|
-
if (o == o) if (
|
|
402
|
-
const
|
|
403
|
-
for (const
|
|
404
|
-
const
|
|
405
|
-
null === a ? a = [
|
|
212
|
+
var u = f === o;
|
|
213
|
+
if (p = p || u, !p) {
|
|
214
|
+
const t = o;
|
|
215
|
+
if (o == o) if (r && "object" == typeof r && !Array.isArray(r)) {
|
|
216
|
+
const t = o;
|
|
217
|
+
for (const t in r) if ("amd" !== t && "commonjs" !== t && "commonjs2" !== t && "root" !== t) {
|
|
218
|
+
const r = { params: { additionalProperty: t } };
|
|
219
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
406
220
|
break;
|
|
407
221
|
}
|
|
408
|
-
if (
|
|
409
|
-
if (void 0 !==
|
|
410
|
-
const
|
|
411
|
-
if ("string" != typeof
|
|
412
|
-
const
|
|
413
|
-
null === a ? a = [
|
|
222
|
+
if (t === o) {
|
|
223
|
+
if (void 0 !== r.amd) {
|
|
224
|
+
const t = o;
|
|
225
|
+
if ("string" != typeof r.amd) {
|
|
226
|
+
const r = { params: { type: "string" } };
|
|
227
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
414
228
|
}
|
|
415
|
-
var
|
|
416
|
-
} else
|
|
417
|
-
if (
|
|
418
|
-
if (void 0 !==
|
|
419
|
-
const
|
|
420
|
-
if ("string" != typeof
|
|
421
|
-
const
|
|
422
|
-
null === a ? a = [
|
|
229
|
+
var c = t === o;
|
|
230
|
+
} else c = !0;
|
|
231
|
+
if (c) {
|
|
232
|
+
if (void 0 !== r.commonjs) {
|
|
233
|
+
const t = o;
|
|
234
|
+
if ("string" != typeof r.commonjs) {
|
|
235
|
+
const r = { params: { type: "string" } };
|
|
236
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
423
237
|
}
|
|
424
|
-
|
|
425
|
-
} else
|
|
426
|
-
if (
|
|
427
|
-
if (void 0 !==
|
|
428
|
-
const
|
|
429
|
-
if ("string" != typeof
|
|
430
|
-
const
|
|
431
|
-
null === a ? a = [
|
|
238
|
+
c = t === o;
|
|
239
|
+
} else c = !0;
|
|
240
|
+
if (c) {
|
|
241
|
+
if (void 0 !== r.commonjs2) {
|
|
242
|
+
const t = o;
|
|
243
|
+
if ("string" != typeof r.commonjs2) {
|
|
244
|
+
const r = { params: { type: "string" } };
|
|
245
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
432
246
|
}
|
|
433
|
-
|
|
434
|
-
} else
|
|
435
|
-
if (
|
|
436
|
-
const
|
|
437
|
-
if ("string" != typeof
|
|
438
|
-
const
|
|
439
|
-
null === a ? a = [
|
|
247
|
+
c = t === o;
|
|
248
|
+
} else c = !0;
|
|
249
|
+
if (c) if (void 0 !== r.root) {
|
|
250
|
+
const t = o;
|
|
251
|
+
if ("string" != typeof r.root) {
|
|
252
|
+
const r = { params: { type: "string" } };
|
|
253
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
440
254
|
}
|
|
441
|
-
|
|
442
|
-
} else
|
|
255
|
+
c = t === o;
|
|
256
|
+
} else c = !0;
|
|
443
257
|
}
|
|
444
258
|
}
|
|
445
259
|
}
|
|
446
260
|
} else {
|
|
447
|
-
const
|
|
448
|
-
null === a ? a = [
|
|
261
|
+
const r = { params: { type: "object" } };
|
|
262
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
449
263
|
}
|
|
450
|
-
|
|
264
|
+
u = t === o, p = p || u;
|
|
451
265
|
}
|
|
452
|
-
if (!
|
|
453
|
-
const
|
|
454
|
-
return null === a ? a = [
|
|
266
|
+
if (!p) {
|
|
267
|
+
const r = { params: {} };
|
|
268
|
+
return null === a ? a = [r] : a.push(r), o++, i.errors = a, !1;
|
|
455
269
|
}
|
|
456
|
-
return o =
|
|
270
|
+
return o = l, null !== a && (l ? a.length = l : a = null), i.errors = a, 0 === o;
|
|
457
271
|
}
|
|
458
|
-
function
|
|
272
|
+
function l(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: s = r } = {}) {
|
|
459
273
|
let a = null, o = 0;
|
|
460
274
|
const i = o;
|
|
461
|
-
let
|
|
462
|
-
const
|
|
463
|
-
if (o ===
|
|
464
|
-
const
|
|
465
|
-
null === a ? a = [
|
|
275
|
+
let p = !1;
|
|
276
|
+
const f = o;
|
|
277
|
+
if (o === f) if (Array.isArray(r)) if (r.length < 1) {
|
|
278
|
+
const r = { params: { limit: 1 } };
|
|
279
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
466
280
|
} else {
|
|
467
|
-
const
|
|
468
|
-
for (let
|
|
469
|
-
let
|
|
281
|
+
const t = r.length;
|
|
282
|
+
for (let e = 0; e < t; e++) {
|
|
283
|
+
let t = r[e];
|
|
470
284
|
const n = o;
|
|
471
|
-
if (o === n) if ("string" == typeof
|
|
472
|
-
if (
|
|
473
|
-
const
|
|
474
|
-
null === a ? a = [
|
|
285
|
+
if (o === n) if ("string" == typeof t) {
|
|
286
|
+
if (t.length < 1) {
|
|
287
|
+
const r = { params: {} };
|
|
288
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
475
289
|
}
|
|
476
290
|
} else {
|
|
477
|
-
const
|
|
478
|
-
null === a ? a = [
|
|
291
|
+
const r = { params: { type: "string" } };
|
|
292
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
479
293
|
}
|
|
480
294
|
if (n !== o) break;
|
|
481
295
|
}
|
|
482
296
|
}
|
|
483
297
|
else {
|
|
484
|
-
const
|
|
485
|
-
null === a ? a = [
|
|
298
|
+
const r = { params: { type: "array" } };
|
|
299
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
486
300
|
}
|
|
487
|
-
var
|
|
488
|
-
if (
|
|
489
|
-
const
|
|
490
|
-
if (o ===
|
|
491
|
-
if (
|
|
492
|
-
const
|
|
493
|
-
null === a ? a = [
|
|
301
|
+
var u = f === o;
|
|
302
|
+
if (p = p || u, !p) {
|
|
303
|
+
const t = o;
|
|
304
|
+
if (o === t) if ("string" == typeof r) {
|
|
305
|
+
if (r.length < 1) {
|
|
306
|
+
const r = { params: {} };
|
|
307
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
494
308
|
}
|
|
495
309
|
} else {
|
|
496
|
-
const
|
|
497
|
-
null === a ? a = [
|
|
310
|
+
const r = { params: { type: "string" } };
|
|
311
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
498
312
|
}
|
|
499
|
-
if (
|
|
500
|
-
const
|
|
501
|
-
if (o == o) if (
|
|
502
|
-
const
|
|
503
|
-
for (const
|
|
504
|
-
const
|
|
505
|
-
null === a ? a = [
|
|
313
|
+
if (u = t === o, p = p || u, !p) {
|
|
314
|
+
const t = o;
|
|
315
|
+
if (o == o) if (r && "object" == typeof r && !Array.isArray(r)) {
|
|
316
|
+
const t = o;
|
|
317
|
+
for (const t in r) if ("amd" !== t && "commonjs" !== t && "root" !== t) {
|
|
318
|
+
const r = { params: { additionalProperty: t } };
|
|
319
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
506
320
|
break;
|
|
507
321
|
}
|
|
508
|
-
if (
|
|
509
|
-
if (void 0 !==
|
|
510
|
-
let
|
|
511
|
-
const
|
|
512
|
-
if (o ===
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
null === a ? a = [
|
|
322
|
+
if (t === o) {
|
|
323
|
+
if (void 0 !== r.amd) {
|
|
324
|
+
let t = r.amd;
|
|
325
|
+
const e = o;
|
|
326
|
+
if (o === e) if ("string" == typeof t) {
|
|
327
|
+
if (t.length < 1) {
|
|
328
|
+
const r = { params: {} };
|
|
329
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
516
330
|
}
|
|
517
331
|
} else {
|
|
518
|
-
const
|
|
519
|
-
null === a ? a = [
|
|
332
|
+
const r = { params: { type: "string" } };
|
|
333
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
520
334
|
}
|
|
521
|
-
var
|
|
522
|
-
} else
|
|
523
|
-
if (
|
|
524
|
-
if (void 0 !==
|
|
525
|
-
let
|
|
526
|
-
const
|
|
527
|
-
if (o ===
|
|
528
|
-
if (
|
|
529
|
-
const
|
|
530
|
-
null === a ? a = [
|
|
335
|
+
var c = e === o;
|
|
336
|
+
} else c = !0;
|
|
337
|
+
if (c) {
|
|
338
|
+
if (void 0 !== r.commonjs) {
|
|
339
|
+
let t = r.commonjs;
|
|
340
|
+
const e = o;
|
|
341
|
+
if (o === e) if ("string" == typeof t) {
|
|
342
|
+
if (t.length < 1) {
|
|
343
|
+
const r = { params: {} };
|
|
344
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
531
345
|
}
|
|
532
346
|
} else {
|
|
533
|
-
const
|
|
534
|
-
null === a ? a = [
|
|
347
|
+
const r = { params: { type: "string" } };
|
|
348
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
535
349
|
}
|
|
536
|
-
|
|
537
|
-
} else
|
|
538
|
-
if (
|
|
539
|
-
let
|
|
540
|
-
const
|
|
350
|
+
c = e === o;
|
|
351
|
+
} else c = !0;
|
|
352
|
+
if (c) if (void 0 !== r.root) {
|
|
353
|
+
let t = r.root;
|
|
354
|
+
const e = o, n = o;
|
|
541
355
|
let s = !1;
|
|
542
356
|
const i = o;
|
|
543
|
-
if (o === i) if (Array.isArray(
|
|
544
|
-
const
|
|
545
|
-
for (let
|
|
546
|
-
let
|
|
357
|
+
if (o === i) if (Array.isArray(t)) {
|
|
358
|
+
const r = t.length;
|
|
359
|
+
for (let e = 0; e < r; e++) {
|
|
360
|
+
let r = t[e];
|
|
547
361
|
const n = o;
|
|
548
|
-
if (o === n) if ("string" == typeof
|
|
549
|
-
if (
|
|
550
|
-
const
|
|
551
|
-
null === a ? a = [
|
|
362
|
+
if (o === n) if ("string" == typeof r) {
|
|
363
|
+
if (r.length < 1) {
|
|
364
|
+
const r = { params: {} };
|
|
365
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
552
366
|
}
|
|
553
367
|
} else {
|
|
554
|
-
const
|
|
555
|
-
null === a ? a = [
|
|
368
|
+
const r = { params: { type: "string" } };
|
|
369
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
556
370
|
}
|
|
557
371
|
if (n !== o) break;
|
|
558
372
|
}
|
|
559
373
|
} else {
|
|
560
|
-
const
|
|
561
|
-
null === a ? a = [
|
|
374
|
+
const r = { params: { type: "array" } };
|
|
375
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
562
376
|
}
|
|
563
|
-
var
|
|
564
|
-
if (s = s ||
|
|
565
|
-
const
|
|
566
|
-
if (o ===
|
|
567
|
-
if (
|
|
568
|
-
const
|
|
569
|
-
null === a ? a = [
|
|
377
|
+
var m = i === o;
|
|
378
|
+
if (s = s || m, !s) {
|
|
379
|
+
const r = o;
|
|
380
|
+
if (o === r) if ("string" == typeof t) {
|
|
381
|
+
if (t.length < 1) {
|
|
382
|
+
const r = { params: {} };
|
|
383
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
570
384
|
}
|
|
571
385
|
} else {
|
|
572
|
-
const
|
|
573
|
-
null === a ? a = [
|
|
386
|
+
const r = { params: { type: "string" } };
|
|
387
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
574
388
|
}
|
|
575
|
-
|
|
389
|
+
m = r === o, s = s || m;
|
|
576
390
|
}
|
|
577
391
|
if (s) o = n, null !== a && (n ? a.length = n : a = null);
|
|
578
392
|
else {
|
|
579
|
-
const
|
|
580
|
-
null === a ? a = [
|
|
393
|
+
const r = { params: {} };
|
|
394
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
581
395
|
}
|
|
582
|
-
|
|
583
|
-
} else
|
|
396
|
+
c = e === o;
|
|
397
|
+
} else c = !0;
|
|
584
398
|
}
|
|
585
399
|
}
|
|
586
400
|
} else {
|
|
587
|
-
const
|
|
588
|
-
null === a ? a = [
|
|
401
|
+
const r = { params: { type: "object" } };
|
|
402
|
+
null === a ? a = [r] : a.push(r), o++;
|
|
589
403
|
}
|
|
590
|
-
|
|
404
|
+
u = t === o, p = p || u;
|
|
591
405
|
}
|
|
592
406
|
}
|
|
593
|
-
if (!
|
|
594
|
-
const
|
|
595
|
-
return null === a ? a = [
|
|
407
|
+
if (!p) {
|
|
408
|
+
const r = { params: {} };
|
|
409
|
+
return null === a ? a = [r] : a.push(r), o++, l.errors = a, !1;
|
|
596
410
|
}
|
|
597
|
-
return o = i, null !== a && (i ? a.length = i : a = null),
|
|
411
|
+
return o = i, null !== a && (i ? a.length = i : a = null), l.errors = a, 0 === o;
|
|
598
412
|
}
|
|
599
|
-
function
|
|
600
|
-
let a = null,
|
|
601
|
-
if (0 ===
|
|
602
|
-
if (!
|
|
413
|
+
function p(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: s = r } = {}) {
|
|
414
|
+
let a = null, f = 0;
|
|
415
|
+
if (0 === f) {
|
|
416
|
+
if (!r || "object" != typeof r || Array.isArray(r)) return p.errors = [{ params: { type: "object" } }], !1;
|
|
603
417
|
{
|
|
604
|
-
let
|
|
605
|
-
if (void 0 ===
|
|
418
|
+
let e;
|
|
419
|
+
if (void 0 === r.type && (e = "type")) return p.errors = [{ params: { missingProperty: e } }], !1;
|
|
606
420
|
{
|
|
607
|
-
const
|
|
608
|
-
for (const
|
|
609
|
-
if (
|
|
610
|
-
if (void 0 !==
|
|
611
|
-
let
|
|
612
|
-
const
|
|
613
|
-
if (
|
|
614
|
-
if ("string" != typeof
|
|
615
|
-
if (
|
|
421
|
+
const e = f;
|
|
422
|
+
for (const t in r) if ("amdContainer" !== t && "auxiliaryComment" !== t && "export" !== t && "name" !== t && "type" !== t && "umdNamedDefine" !== t) return p.errors = [{ params: { additionalProperty: t } }], !1;
|
|
423
|
+
if (e === f) {
|
|
424
|
+
if (void 0 !== r.amdContainer) {
|
|
425
|
+
let t = r.amdContainer;
|
|
426
|
+
const e = f;
|
|
427
|
+
if (f == f) {
|
|
428
|
+
if ("string" != typeof t) return p.errors = [{ params: { type: "string" } }], !1;
|
|
429
|
+
if (t.length < 1) return p.errors = [{ params: {} }], !1;
|
|
616
430
|
}
|
|
617
|
-
var
|
|
618
|
-
} else
|
|
619
|
-
if (
|
|
620
|
-
if (void 0 !==
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
instancePath:
|
|
624
|
-
parentData:
|
|
431
|
+
var u = e === f;
|
|
432
|
+
} else u = !0;
|
|
433
|
+
if (u) {
|
|
434
|
+
if (void 0 !== r.auxiliaryComment) {
|
|
435
|
+
const e = f;
|
|
436
|
+
i(r.auxiliaryComment, {
|
|
437
|
+
instancePath: t + "/auxiliaryComment",
|
|
438
|
+
parentData: r,
|
|
625
439
|
parentDataProperty: "auxiliaryComment",
|
|
626
440
|
rootData: s
|
|
627
|
-
}) || (a = null === a ?
|
|
628
|
-
} else
|
|
629
|
-
if (
|
|
630
|
-
if (void 0 !==
|
|
631
|
-
let
|
|
632
|
-
const
|
|
441
|
+
}) || (a = null === a ? i.errors : a.concat(i.errors), f = a.length), u = e === f;
|
|
442
|
+
} else u = !0;
|
|
443
|
+
if (u) {
|
|
444
|
+
if (void 0 !== r.export) {
|
|
445
|
+
let t = r.export;
|
|
446
|
+
const e = f, n = f;
|
|
633
447
|
let s = !1;
|
|
634
|
-
const
|
|
635
|
-
if (
|
|
636
|
-
const
|
|
637
|
-
for (let
|
|
638
|
-
let
|
|
639
|
-
const n =
|
|
640
|
-
if (
|
|
641
|
-
if (
|
|
642
|
-
const
|
|
643
|
-
null === a ? a = [
|
|
448
|
+
const o = f;
|
|
449
|
+
if (f === o) if (Array.isArray(t)) {
|
|
450
|
+
const r = t.length;
|
|
451
|
+
for (let e = 0; e < r; e++) {
|
|
452
|
+
let r = t[e];
|
|
453
|
+
const n = f;
|
|
454
|
+
if (f === n) if ("string" == typeof r) {
|
|
455
|
+
if (r.length < 1) {
|
|
456
|
+
const r = { params: {} };
|
|
457
|
+
null === a ? a = [r] : a.push(r), f++;
|
|
644
458
|
}
|
|
645
459
|
} else {
|
|
646
|
-
const
|
|
647
|
-
null === a ? a = [
|
|
460
|
+
const r = { params: { type: "string" } };
|
|
461
|
+
null === a ? a = [r] : a.push(r), f++;
|
|
648
462
|
}
|
|
649
|
-
if (n !==
|
|
463
|
+
if (n !== f) break;
|
|
650
464
|
}
|
|
651
465
|
} else {
|
|
652
|
-
const
|
|
653
|
-
null === a ? a = [
|
|
466
|
+
const r = { params: { type: "array" } };
|
|
467
|
+
null === a ? a = [r] : a.push(r), f++;
|
|
654
468
|
}
|
|
655
|
-
var
|
|
656
|
-
if (s = s ||
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
659
|
-
if (
|
|
660
|
-
const
|
|
661
|
-
null === a ? a = [
|
|
469
|
+
var c = o === f;
|
|
470
|
+
if (s = s || c, !s) {
|
|
471
|
+
const r = f;
|
|
472
|
+
if (f === r) if ("string" == typeof t) {
|
|
473
|
+
if (t.length < 1) {
|
|
474
|
+
const r = { params: {} };
|
|
475
|
+
null === a ? a = [r] : a.push(r), f++;
|
|
662
476
|
}
|
|
663
477
|
} else {
|
|
664
|
-
const
|
|
665
|
-
null === a ? a = [
|
|
478
|
+
const r = { params: { type: "string" } };
|
|
479
|
+
null === a ? a = [r] : a.push(r), f++;
|
|
666
480
|
}
|
|
667
|
-
|
|
481
|
+
c = r === f, s = s || c;
|
|
668
482
|
}
|
|
669
483
|
if (!s) {
|
|
670
|
-
const
|
|
671
|
-
return null === a ? a = [
|
|
484
|
+
const r = { params: {} };
|
|
485
|
+
return null === a ? a = [r] : a.push(r), f++, p.errors = a, !1;
|
|
672
486
|
}
|
|
673
|
-
|
|
674
|
-
} else
|
|
675
|
-
if (
|
|
676
|
-
if (void 0 !==
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
instancePath:
|
|
680
|
-
parentData:
|
|
487
|
+
f = n, null !== a && (n ? a.length = n : a = null), u = e === f;
|
|
488
|
+
} else u = !0;
|
|
489
|
+
if (u) {
|
|
490
|
+
if (void 0 !== r.name) {
|
|
491
|
+
const e = f;
|
|
492
|
+
l(r.name, {
|
|
493
|
+
instancePath: t + "/name",
|
|
494
|
+
parentData: r,
|
|
681
495
|
parentDataProperty: "name",
|
|
682
496
|
rootData: s
|
|
683
|
-
}) || (a = null === a ?
|
|
684
|
-
} else
|
|
685
|
-
if (
|
|
686
|
-
if (void 0 !==
|
|
687
|
-
let
|
|
688
|
-
const
|
|
497
|
+
}) || (a = null === a ? l.errors : a.concat(l.errors), f = a.length), u = e === f;
|
|
498
|
+
} else u = !0;
|
|
499
|
+
if (u) {
|
|
500
|
+
if (void 0 !== r.type) {
|
|
501
|
+
let t = r.type;
|
|
502
|
+
const e = f, n = f;
|
|
689
503
|
let s = !1;
|
|
690
|
-
const
|
|
691
|
-
if ("var" !==
|
|
692
|
-
const
|
|
693
|
-
null === a ? a = [
|
|
504
|
+
const i = f;
|
|
505
|
+
if ("var" !== t && "module" !== t && "assign" !== t && "assign-properties" !== t && "this" !== t && "window" !== t && "self" !== t && "global" !== t && "commonjs" !== t && "commonjs2" !== t && "commonjs-module" !== t && "commonjs-static" !== t && "amd" !== t && "amd-require" !== t && "umd" !== t && "umd2" !== t && "jsonp" !== t && "system" !== t) {
|
|
506
|
+
const r = { params: { allowedValues: o.anyOf[0].enum } };
|
|
507
|
+
null === a ? a = [r] : a.push(r), f++;
|
|
694
508
|
}
|
|
695
|
-
var
|
|
696
|
-
if (s = s ||
|
|
697
|
-
const
|
|
698
|
-
if ("string" != typeof
|
|
699
|
-
const
|
|
700
|
-
null === a ? a = [
|
|
509
|
+
var m = i === f;
|
|
510
|
+
if (s = s || m, !s) {
|
|
511
|
+
const r = f;
|
|
512
|
+
if ("string" != typeof t) {
|
|
513
|
+
const r = { params: { type: "string" } };
|
|
514
|
+
null === a ? a = [r] : a.push(r), f++;
|
|
701
515
|
}
|
|
702
|
-
|
|
516
|
+
m = r === f, s = s || m;
|
|
703
517
|
}
|
|
704
518
|
if (!s) {
|
|
705
|
-
const
|
|
706
|
-
return null === a ? a = [
|
|
519
|
+
const r = { params: {} };
|
|
520
|
+
return null === a ? a = [r] : a.push(r), f++, p.errors = a, !1;
|
|
707
521
|
}
|
|
708
|
-
|
|
709
|
-
} else
|
|
710
|
-
if (
|
|
711
|
-
const
|
|
712
|
-
if ("boolean" != typeof
|
|
713
|
-
|
|
714
|
-
} else
|
|
522
|
+
f = n, null !== a && (n ? a.length = n : a = null), u = e === f;
|
|
523
|
+
} else u = !0;
|
|
524
|
+
if (u) if (void 0 !== r.umdNamedDefine) {
|
|
525
|
+
const t = f;
|
|
526
|
+
if ("boolean" != typeof r.umdNamedDefine) return p.errors = [{ params: { type: "boolean" } }], !1;
|
|
527
|
+
u = t === f;
|
|
528
|
+
} else u = !0;
|
|
715
529
|
}
|
|
716
530
|
}
|
|
717
531
|
}
|
|
@@ -720,236 +534,229 @@ function m(t, { instancePath: e = "", parentData: r, parentDataProperty: n, root
|
|
|
720
534
|
}
|
|
721
535
|
}
|
|
722
536
|
}
|
|
723
|
-
return
|
|
537
|
+
return p.errors = a, 0 === f;
|
|
724
538
|
}
|
|
725
|
-
function
|
|
726
|
-
let
|
|
727
|
-
if (0 ===
|
|
728
|
-
if (!
|
|
539
|
+
function f(e, { instancePath: n = "", parentData: s, parentDataProperty: o, rootData: i = e } = {}) {
|
|
540
|
+
let l = null, u = 0;
|
|
541
|
+
if (0 === u) {
|
|
542
|
+
if (!e || "object" != typeof e || Array.isArray(e)) return f.errors = [{ params: { type: "object" } }], !1;
|
|
729
543
|
{
|
|
730
|
-
let
|
|
731
|
-
if (void 0 ===
|
|
544
|
+
let s;
|
|
545
|
+
if (void 0 === e.name && (s = "name") || void 0 === e.exposes && (s = "exposes")) return f.errors = [{ params: { missingProperty: s } }], !1;
|
|
732
546
|
{
|
|
733
|
-
const
|
|
734
|
-
for (const
|
|
735
|
-
if (
|
|
736
|
-
if (void 0 !==
|
|
737
|
-
const
|
|
738
|
-
|
|
739
|
-
instancePath:
|
|
740
|
-
parentData:
|
|
547
|
+
const s = u;
|
|
548
|
+
for (const r in e) if ("exposes" !== r && "filename" !== r && "library" !== r && "name" !== r && "runtime" !== r && "shareScope" !== r && "experiments" !== r && "runtimePlugins" !== r) return f.errors = [{ params: { additionalProperty: r } }], !1;
|
|
549
|
+
if (s === u) {
|
|
550
|
+
if (void 0 !== e.exposes) {
|
|
551
|
+
const r = u;
|
|
552
|
+
a(e.exposes, {
|
|
553
|
+
instancePath: n + "/exposes",
|
|
554
|
+
parentData: e,
|
|
741
555
|
parentDataProperty: "exposes",
|
|
742
|
-
rootData:
|
|
743
|
-
}) || (
|
|
744
|
-
var
|
|
745
|
-
} else
|
|
746
|
-
if (
|
|
747
|
-
if (void 0 !==
|
|
748
|
-
let
|
|
749
|
-
const
|
|
750
|
-
if (
|
|
751
|
-
if ("string" != typeof
|
|
752
|
-
if (
|
|
753
|
-
if (
|
|
556
|
+
rootData: i
|
|
557
|
+
}) || (l = null === l ? a.errors : l.concat(a.errors), u = l.length);
|
|
558
|
+
var c = r === u;
|
|
559
|
+
} else c = !0;
|
|
560
|
+
if (c) {
|
|
561
|
+
if (void 0 !== e.filename) {
|
|
562
|
+
let t = e.filename;
|
|
563
|
+
const n = u;
|
|
564
|
+
if (u === n) {
|
|
565
|
+
if ("string" != typeof t) return f.errors = [{ params: { type: "string" } }], !1;
|
|
566
|
+
if (t.length < 1) return f.errors = [{ params: {} }], !1;
|
|
567
|
+
if (t.includes("!") || !1 !== r.test(t)) return f.errors = [{ params: {} }], !1;
|
|
754
568
|
}
|
|
755
|
-
|
|
756
|
-
} else
|
|
757
|
-
if (
|
|
758
|
-
if (void 0 !==
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
instancePath:
|
|
762
|
-
parentData:
|
|
569
|
+
c = n === u;
|
|
570
|
+
} else c = !0;
|
|
571
|
+
if (c) {
|
|
572
|
+
if (void 0 !== e.library) {
|
|
573
|
+
const r = u;
|
|
574
|
+
p(e.library, {
|
|
575
|
+
instancePath: n + "/library",
|
|
576
|
+
parentData: e,
|
|
763
577
|
parentDataProperty: "library",
|
|
764
|
-
rootData:
|
|
765
|
-
}) || (
|
|
766
|
-
} else
|
|
767
|
-
if (
|
|
768
|
-
if (void 0 !==
|
|
769
|
-
let
|
|
770
|
-
const
|
|
771
|
-
if (
|
|
772
|
-
if ("string" != typeof
|
|
773
|
-
if (
|
|
578
|
+
rootData: i
|
|
579
|
+
}) || (l = null === l ? p.errors : l.concat(p.errors), u = l.length), c = r === u;
|
|
580
|
+
} else c = !0;
|
|
581
|
+
if (c) {
|
|
582
|
+
if (void 0 !== e.name) {
|
|
583
|
+
let r = e.name;
|
|
584
|
+
const t = u;
|
|
585
|
+
if (u === t) {
|
|
586
|
+
if ("string" != typeof r) return f.errors = [{ params: { type: "string" } }], !1;
|
|
587
|
+
if (r.length < 1) return f.errors = [{ params: {} }], !1;
|
|
774
588
|
}
|
|
775
|
-
|
|
776
|
-
} else
|
|
777
|
-
if (
|
|
778
|
-
if (void 0 !==
|
|
779
|
-
let
|
|
780
|
-
const
|
|
589
|
+
c = t === u;
|
|
590
|
+
} else c = !0;
|
|
591
|
+
if (c) {
|
|
592
|
+
if (void 0 !== e.runtime) {
|
|
593
|
+
let r = e.runtime;
|
|
594
|
+
const n = u, s = u;
|
|
781
595
|
let a = !1;
|
|
782
|
-
const o =
|
|
783
|
-
if (!1 !==
|
|
784
|
-
const
|
|
785
|
-
null ===
|
|
596
|
+
const o = u;
|
|
597
|
+
if (!1 !== r) {
|
|
598
|
+
const r = { params: { allowedValues: t.anyOf[0].enum } };
|
|
599
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
786
600
|
}
|
|
787
|
-
var
|
|
788
|
-
if (a = a ||
|
|
789
|
-
const
|
|
790
|
-
if (
|
|
791
|
-
if (
|
|
792
|
-
const
|
|
793
|
-
null ===
|
|
601
|
+
var m = o === u;
|
|
602
|
+
if (a = a || m, !a) {
|
|
603
|
+
const t = u;
|
|
604
|
+
if (u === t) if ("string" == typeof r) {
|
|
605
|
+
if (r.length < 1) {
|
|
606
|
+
const r = { params: {} };
|
|
607
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
794
608
|
}
|
|
795
609
|
} else {
|
|
796
|
-
const
|
|
797
|
-
null ===
|
|
610
|
+
const r = { params: { type: "string" } };
|
|
611
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
798
612
|
}
|
|
799
|
-
|
|
613
|
+
m = t === u, a = a || m;
|
|
800
614
|
}
|
|
801
615
|
if (!a) {
|
|
802
|
-
const
|
|
803
|
-
return null ===
|
|
616
|
+
const r = { params: {} };
|
|
617
|
+
return null === l ? l = [r] : l.push(r), u++, f.errors = l, !1;
|
|
804
618
|
}
|
|
805
|
-
|
|
806
|
-
} else
|
|
807
|
-
if (
|
|
808
|
-
if (void 0 !==
|
|
809
|
-
let
|
|
810
|
-
const
|
|
811
|
-
let
|
|
812
|
-
const a =
|
|
813
|
-
if (
|
|
814
|
-
if (
|
|
815
|
-
const
|
|
816
|
-
null ===
|
|
619
|
+
u = s, null !== l && (s ? l.length = s : l = null), c = n === u;
|
|
620
|
+
} else c = !0;
|
|
621
|
+
if (c) {
|
|
622
|
+
if (void 0 !== e.shareScope) {
|
|
623
|
+
let r = e.shareScope;
|
|
624
|
+
const t = u, n = u;
|
|
625
|
+
let s = !1;
|
|
626
|
+
const a = u;
|
|
627
|
+
if (u === a) if ("string" == typeof r) {
|
|
628
|
+
if (r.length < 1) {
|
|
629
|
+
const r = { params: {} };
|
|
630
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
817
631
|
}
|
|
818
632
|
} else {
|
|
819
|
-
const
|
|
820
|
-
null ===
|
|
633
|
+
const r = { params: { type: "string" } };
|
|
634
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
821
635
|
}
|
|
822
|
-
var
|
|
823
|
-
if (
|
|
824
|
-
const
|
|
825
|
-
if (
|
|
826
|
-
const
|
|
827
|
-
for (let
|
|
828
|
-
let
|
|
829
|
-
const n =
|
|
830
|
-
if (
|
|
831
|
-
if (
|
|
832
|
-
const
|
|
833
|
-
null ===
|
|
636
|
+
var y = a === u;
|
|
637
|
+
if (s = s || y, !s) {
|
|
638
|
+
const t = u;
|
|
639
|
+
if (u === t) if (Array.isArray(r)) {
|
|
640
|
+
const t = r.length;
|
|
641
|
+
for (let e = 0; e < t; e++) {
|
|
642
|
+
let t = r[e];
|
|
643
|
+
const n = u;
|
|
644
|
+
if (u === n) if ("string" == typeof t) {
|
|
645
|
+
if (t.length < 1) {
|
|
646
|
+
const r = { params: {} };
|
|
647
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
834
648
|
}
|
|
835
649
|
} else {
|
|
836
|
-
const
|
|
837
|
-
null ===
|
|
650
|
+
const r = { params: { type: "string" } };
|
|
651
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
838
652
|
}
|
|
839
|
-
if (n !==
|
|
653
|
+
if (n !== u) break;
|
|
840
654
|
}
|
|
841
655
|
} else {
|
|
842
|
-
const
|
|
843
|
-
null ===
|
|
656
|
+
const r = { params: { type: "array" } };
|
|
657
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
844
658
|
}
|
|
845
|
-
|
|
659
|
+
y = t === u, s = s || y;
|
|
846
660
|
}
|
|
847
|
-
if (!
|
|
848
|
-
const
|
|
849
|
-
return null ===
|
|
661
|
+
if (!s) {
|
|
662
|
+
const r = { params: {} };
|
|
663
|
+
return null === l ? l = [r] : l.push(r), u++, f.errors = l, !1;
|
|
850
664
|
}
|
|
851
|
-
|
|
852
|
-
} else
|
|
853
|
-
if (
|
|
854
|
-
if (void 0 !==
|
|
855
|
-
let
|
|
856
|
-
const
|
|
857
|
-
if (
|
|
858
|
-
if (!
|
|
665
|
+
u = n, null !== l && (n ? l.length = n : l = null), c = t === u;
|
|
666
|
+
} else c = !0;
|
|
667
|
+
if (c) {
|
|
668
|
+
if (void 0 !== e.experiments) {
|
|
669
|
+
let r = e.experiments;
|
|
670
|
+
const t = u;
|
|
671
|
+
if (u === t) {
|
|
672
|
+
if (!r || "object" != typeof r || Array.isArray(r)) return f.errors = [{ params: { type: "object" } }], !1;
|
|
859
673
|
{
|
|
860
|
-
const
|
|
861
|
-
for (const
|
|
862
|
-
if (
|
|
863
|
-
if (void 0 !==
|
|
864
|
-
const
|
|
865
|
-
if ("boolean" != typeof
|
|
866
|
-
var
|
|
867
|
-
} else
|
|
868
|
-
if (
|
|
869
|
-
if (void 0 !==
|
|
870
|
-
const
|
|
871
|
-
if ("boolean" != typeof
|
|
872
|
-
|
|
873
|
-
} else
|
|
874
|
-
if (
|
|
875
|
-
const
|
|
876
|
-
if ("boolean" != typeof
|
|
877
|
-
|
|
878
|
-
} else
|
|
674
|
+
const t = u;
|
|
675
|
+
for (const t in r) if ("asyncStartup" !== t && "externalRuntime" !== t && "provideExternalRuntime" !== t) return f.errors = [{ params: { additionalProperty: t } }], !1;
|
|
676
|
+
if (t === u) {
|
|
677
|
+
if (void 0 !== r.asyncStartup) {
|
|
678
|
+
const t = u;
|
|
679
|
+
if ("boolean" != typeof r.asyncStartup) return f.errors = [{ params: { type: "boolean" } }], !1;
|
|
680
|
+
var h = t === u;
|
|
681
|
+
} else h = !0;
|
|
682
|
+
if (h) {
|
|
683
|
+
if (void 0 !== r.externalRuntime) {
|
|
684
|
+
const t = u;
|
|
685
|
+
if ("boolean" != typeof r.externalRuntime) return f.errors = [{ params: { type: "boolean" } }], !1;
|
|
686
|
+
h = t === u;
|
|
687
|
+
} else h = !0;
|
|
688
|
+
if (h) if (void 0 !== r.provideExternalRuntime) {
|
|
689
|
+
const t = u;
|
|
690
|
+
if ("boolean" != typeof r.provideExternalRuntime) return f.errors = [{ params: { type: "boolean" } }], !1;
|
|
691
|
+
h = t === u;
|
|
692
|
+
} else h = !0;
|
|
879
693
|
}
|
|
880
694
|
}
|
|
881
695
|
}
|
|
882
696
|
}
|
|
883
|
-
|
|
884
|
-
} else
|
|
885
|
-
if (
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
const t = e.length;
|
|
918
|
-
if (t > 0) {
|
|
919
|
-
const t = c;
|
|
920
|
-
if ("string" != typeof e[0]) {
|
|
921
|
-
const t = { params: { type: "string" } };
|
|
922
|
-
null === f ? f = [t] : f.push(t), c++;
|
|
923
|
-
}
|
|
924
|
-
var j = t === c;
|
|
925
|
-
}
|
|
926
|
-
if (j && t > 1) {
|
|
927
|
-
let t = e[1];
|
|
928
|
-
const r = c;
|
|
929
|
-
if (!t || "object" != typeof t || Array.isArray(t)) {
|
|
930
|
-
const t = { params: { type: "object" } };
|
|
931
|
-
null === f ? f = [t] : f.push(t), c++;
|
|
932
|
-
}
|
|
933
|
-
j = r === c;
|
|
697
|
+
c = t === u;
|
|
698
|
+
} else c = !0;
|
|
699
|
+
if (c) if (void 0 !== e.runtimePlugins) {
|
|
700
|
+
let r = e.runtimePlugins;
|
|
701
|
+
const t = u;
|
|
702
|
+
if (u === t) {
|
|
703
|
+
if (!Array.isArray(r)) return f.errors = [{ params: { type: "array" } }], !1;
|
|
704
|
+
{
|
|
705
|
+
const t = r.length;
|
|
706
|
+
for (let e = 0; e < t; e++) {
|
|
707
|
+
let t = r[e];
|
|
708
|
+
const n = u, s = u;
|
|
709
|
+
let a = !1;
|
|
710
|
+
const o = u;
|
|
711
|
+
if ("string" != typeof t) {
|
|
712
|
+
const r = { params: { type: "string" } };
|
|
713
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
714
|
+
}
|
|
715
|
+
var g = o === u;
|
|
716
|
+
if (a = a || g, !a) {
|
|
717
|
+
const r = u;
|
|
718
|
+
if (u === r) if (Array.isArray(t)) if (t.length > 2) {
|
|
719
|
+
const r = { params: { limit: 2 } };
|
|
720
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
721
|
+
} else if (t.length < 2) {
|
|
722
|
+
const r = { params: { limit: 2 } };
|
|
723
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
724
|
+
} else {
|
|
725
|
+
const r = t.length;
|
|
726
|
+
if (r > 0) {
|
|
727
|
+
const r = u;
|
|
728
|
+
if ("string" != typeof t[0]) {
|
|
729
|
+
const r = { params: { type: "string" } };
|
|
730
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
934
731
|
}
|
|
732
|
+
var d = r === u;
|
|
935
733
|
}
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
734
|
+
if (d && r > 1) {
|
|
735
|
+
let r = t[1];
|
|
736
|
+
const e = u;
|
|
737
|
+
if (!r || "object" != typeof r || Array.isArray(r)) {
|
|
738
|
+
const r = { params: { type: "object" } };
|
|
739
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
740
|
+
}
|
|
741
|
+
d = e === u;
|
|
939
742
|
}
|
|
940
|
-
b = t === c, a = a || b;
|
|
941
743
|
}
|
|
942
|
-
|
|
943
|
-
const
|
|
944
|
-
|
|
744
|
+
else {
|
|
745
|
+
const r = { params: { type: "array" } };
|
|
746
|
+
null === l ? l = [r] : l.push(r), u++;
|
|
945
747
|
}
|
|
946
|
-
|
|
748
|
+
g = r === u, a = a || g;
|
|
749
|
+
}
|
|
750
|
+
if (!a) {
|
|
751
|
+
const r = { params: {} };
|
|
752
|
+
return null === l ? l = [r] : l.push(r), u++, f.errors = l, !1;
|
|
947
753
|
}
|
|
754
|
+
if (u = s, null !== l && (s ? l.length = s : l = null), n !== u) break;
|
|
948
755
|
}
|
|
949
756
|
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
}
|
|
757
|
+
}
|
|
758
|
+
c = t === u;
|
|
759
|
+
} else c = !0;
|
|
953
760
|
}
|
|
954
761
|
}
|
|
955
762
|
}
|
|
@@ -960,7 +767,7 @@ function u(s, { instancePath: a = "", parentData: o, parentDataProperty: l, root
|
|
|
960
767
|
}
|
|
961
768
|
}
|
|
962
769
|
}
|
|
963
|
-
return
|
|
770
|
+
return f.errors = l, 0 === u;
|
|
964
771
|
}
|
|
965
772
|
|
|
966
773
|
//#endregion
|