@module-federation/enhanced 2.1.0 → 2.2.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 (285) hide show
  1. package/dist/CHANGELOG.md +2357 -0
  2. package/dist/README.md +213 -0
  3. package/dist/rstestmigrate.md +140 -0
  4. package/dist/src/_virtual/_rolldown/runtime.js +47 -0
  5. package/dist/src/index.d.ts +22 -19
  6. package/dist/src/index.js +47 -43
  7. package/dist/src/index.js.map +1 -1
  8. package/dist/src/lib/Constants.d.ts +25 -29
  9. package/dist/src/lib/Constants.js +136 -116
  10. package/dist/src/lib/Constants.js.map +1 -1
  11. package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +20 -16
  12. package/dist/src/lib/container/AsyncBoundaryPlugin.js +137 -200
  13. package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -1
  14. package/dist/src/lib/container/ContainerEntryDependency.d.ts +28 -23
  15. package/dist/src/lib/container/ContainerEntryDependency.js +39 -39
  16. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  17. package/dist/src/lib/container/ContainerEntryModule.d.ts +93 -84
  18. package/dist/src/lib/container/ContainerEntryModule.js +219 -234
  19. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
  20. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -10
  21. package/dist/src/lib/container/ContainerEntryModuleFactory.js +21 -25
  22. package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
  23. package/dist/src/lib/container/ContainerExposedDependency.d.ts +29 -24
  24. package/dist/src/lib/container/ContainerExposedDependency.js +47 -47
  25. package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -1
  26. package/dist/src/lib/container/ContainerPlugin.d.ts +12 -8
  27. package/dist/src/lib/container/ContainerPlugin.js +147 -211
  28. package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
  29. package/dist/src/lib/container/ContainerReferencePlugin.d.ts +16 -12
  30. package/dist/src/lib/container/ContainerReferencePlugin.js +74 -102
  31. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
  32. package/dist/src/lib/container/FallbackDependency.d.ts +24 -19
  33. package/dist/src/lib/container/FallbackDependency.js +46 -44
  34. package/dist/src/lib/container/FallbackDependency.js.map +1 -1
  35. package/dist/src/lib/container/FallbackItemDependency.d.ts +13 -8
  36. package/dist/src/lib/container/FallbackItemDependency.js +24 -24
  37. package/dist/src/lib/container/FallbackItemDependency.js.map +1 -1
  38. package/dist/src/lib/container/FallbackModule.d.ts +82 -71
  39. package/dist/src/lib/container/FallbackModule.js +133 -145
  40. package/dist/src/lib/container/FallbackModule.js.map +1 -1
  41. package/dist/src/lib/container/FallbackModuleFactory.d.ts +15 -10
  42. package/dist/src/lib/container/FallbackModuleFactory.js +20 -24
  43. package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -1
  44. package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +11 -7
  45. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +125 -188
  46. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -1
  47. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +20 -16
  48. package/dist/src/lib/container/ModuleFederationPlugin.js +143 -181
  49. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  50. package/dist/src/lib/container/RemoteModule.d.ts +79 -74
  51. package/dist/src/lib/container/RemoteModule.js +143 -153
  52. package/dist/src/lib/container/RemoteModule.js.map +1 -1
  53. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -7
  54. package/dist/src/lib/container/RemoteRuntimeModule.js +86 -132
  55. package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -1
  56. package/dist/src/lib/container/RemoteToExternalDependency.d.ts +13 -8
  57. package/dist/src/lib/container/RemoteToExternalDependency.js +25 -23
  58. package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -1
  59. package/dist/src/lib/container/constant.d.ts +3 -0
  60. package/dist/src/lib/container/constant.js +11 -14
  61. package/dist/src/lib/container/constant.js.map +1 -1
  62. package/dist/src/lib/container/options.d.ts +7 -3
  63. package/dist/src/lib/container/options.js +51 -69
  64. package/dist/src/lib/container/options.js.map +1 -1
  65. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.d.ts +14 -9
  66. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js +56 -64
  67. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js.map +1 -1
  68. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts +23 -19
  69. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js +71 -101
  70. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js.map +1 -1
  71. package/dist/src/lib/container/runtime/FederationModulesPlugin.d.ts +20 -16
  72. package/dist/src/lib/container/runtime/FederationModulesPlugin.js +55 -47
  73. package/dist/src/lib/container/runtime/FederationModulesPlugin.js.map +1 -1
  74. package/dist/src/lib/container/runtime/FederationRuntimeDependency.d.ts +9 -4
  75. package/dist/src/lib/container/runtime/FederationRuntimeDependency.js +16 -12
  76. package/dist/src/lib/container/runtime/FederationRuntimeDependency.js.map +1 -1
  77. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +16 -11
  78. package/dist/src/lib/container/runtime/FederationRuntimeModule.js +39 -46
  79. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -1
  80. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +31 -20
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +265 -358
  82. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  83. package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +9 -4
  84. package/dist/src/lib/container/runtime/getFederationGlobal.js +43 -41
  85. package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -1
  86. package/dist/src/lib/container/runtime/utils.d.ts +24 -13
  87. package/dist/src/lib/container/runtime/utils.js +83 -101
  88. package/dist/src/lib/container/runtime/utils.js.map +1 -1
  89. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +15 -10
  90. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +27 -25
  91. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
  92. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +77 -68
  93. package/dist/src/lib/sharing/ConsumeSharedModule.js +186 -214
  94. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  95. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +13 -9
  96. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +308 -475
  97. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  98. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +16 -11
  99. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +107 -137
  100. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  101. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +14 -9
  102. package/dist/src/lib/sharing/ProvideForSharedDependency.js +25 -25
  103. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -1
  104. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +44 -39
  105. package/dist/src/lib/sharing/ProvideSharedDependency.js +72 -76
  106. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  107. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +91 -82
  108. package/dist/src/lib/sharing/ProvideSharedModule.js +177 -184
  109. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  110. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +14 -9
  111. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +19 -25
  112. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  113. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +27 -21
  114. package/dist/src/lib/sharing/ProvideSharedPlugin.js +341 -550
  115. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  116. package/dist/src/lib/sharing/SharePlugin.d.ts +53 -49
  117. package/dist/src/lib/sharing/SharePlugin.js +86 -100
  118. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  119. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
  120. package/dist/src/lib/sharing/ShareRuntimeModule.js +81 -103
  121. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  122. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +11 -7
  123. package/dist/src/lib/sharing/resolveMatchedConfigs.js +58 -71
  124. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  125. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.d.ts +18 -14
  126. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js +74 -128
  127. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js.map +1 -1
  128. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.d.ts +39 -34
  129. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js +234 -328
  130. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js.map +1 -1
  131. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts +16 -11
  132. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js +30 -28
  133. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js.map +1 -1
  134. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.d.ts +28 -24
  135. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js +91 -95
  136. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js.map +1 -1
  137. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.d.ts +29 -24
  138. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js +47 -43
  139. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js.map +1 -1
  140. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.d.ts +20 -15
  141. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js +33 -29
  142. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js.map +1 -1
  143. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.d.ts +85 -77
  144. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js +141 -153
  145. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js.map +1 -1
  146. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.d.ts +15 -10
  147. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js +20 -24
  148. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js.map +1 -1
  149. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.d.ts +21 -16
  150. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js +157 -231
  151. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js.map +1 -1
  152. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.d.ts +14 -9
  153. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js +26 -27
  154. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js.map +1 -1
  155. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.d.ts +18 -13
  156. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js +41 -49
  157. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js.map +1 -1
  158. package/dist/src/lib/sharing/utils.d.ts +27 -24
  159. package/dist/src/lib/sharing/utils.js +224 -367
  160. package/dist/src/lib/sharing/utils.js.map +1 -1
  161. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -7
  162. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +56 -75
  163. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
  164. package/dist/src/lib/startup/StartupHelpers.d.ts +11 -6
  165. package/dist/src/lib/startup/StartupHelpers.js +128 -178
  166. package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
  167. package/dist/src/prefetch.d.ts +3 -2
  168. package/dist/src/prefetch.js +17 -8
  169. package/dist/src/rspack.d.ts +3 -2
  170. package/dist/src/rspack.js +35 -11
  171. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +8 -4
  172. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -16
  173. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -1
  174. package/dist/src/runtime.d.ts +1 -1
  175. package/dist/src/runtime.js +11 -18
  176. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +13 -5
  177. package/dist/src/schemas/container/ContainerPlugin.check.js +958 -1218
  178. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  179. package/dist/src/schemas/container/ContainerPlugin.d.ts +271 -268
  180. package/dist/src/schemas/container/ContainerPlugin.js +273 -361
  181. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  182. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +13 -5
  183. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +335 -443
  184. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  185. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +102 -99
  186. package/dist/src/schemas/container/ContainerReferencePlugin.js +122 -162
  187. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  188. package/dist/src/schemas/container/ExternalsType.check.d.ts +13 -5
  189. package/dist/src/schemas/container/ExternalsType.check.js +36 -62
  190. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  191. package/dist/src/schemas/container/ExternalsType.d.ts +5 -2
  192. package/dist/src/schemas/container/ExternalsType.js +8 -11
  193. package/dist/src/schemas/container/ExternalsType.js.map +1 -1
  194. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3001 -4812
  195. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  196. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +819 -814
  197. package/dist/src/schemas/container/ModuleFederationPlugin.js +780 -1053
  198. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  199. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +13 -5
  200. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +568 -768
  201. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  202. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +197 -194
  203. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +212 -238
  204. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  205. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +13 -5
  206. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +598 -804
  207. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  208. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +184 -181
  209. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +196 -229
  210. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  211. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +12 -4
  212. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +285 -482
  213. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  214. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +103 -100
  215. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +104 -126
  216. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  217. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +13 -5
  218. package/dist/src/schemas/sharing/SharePlugin.check.js +749 -965
  219. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  220. package/dist/src/schemas/sharing/SharePlugin.d.ts +245 -242
  221. package/dist/src/schemas/sharing/SharePlugin.js +256 -293
  222. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  223. package/dist/src/utils.d.ts +3 -0
  224. package/dist/src/utils.js +35 -26
  225. package/dist/src/utils.js.map +1 -1
  226. package/dist/src/webpack.d.ts +2 -2
  227. package/dist/src/webpack.js +6 -40
  228. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +9 -4
  229. package/dist/src/wrapper/AsyncBoundaryPlugin.js +12 -11
  230. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -1
  231. package/dist/src/wrapper/BaseWrapperPlugin.d.ts +18 -13
  232. package/dist/src/wrapper/BaseWrapperPlugin.js +39 -39
  233. package/dist/src/wrapper/BaseWrapperPlugin.js.map +1 -1
  234. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +10 -4
  235. package/dist/src/wrapper/ConsumeSharedPlugin.js +12 -11
  236. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -1
  237. package/dist/src/wrapper/ContainerPlugin.d.ts +9 -4
  238. package/dist/src/wrapper/ContainerPlugin.js +12 -11
  239. package/dist/src/wrapper/ContainerPlugin.js.map +1 -1
  240. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +9 -4
  241. package/dist/src/wrapper/ContainerReferencePlugin.js +12 -11
  242. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -1
  243. package/dist/src/wrapper/FederationModulesPlugin.d.ts +18 -10
  244. package/dist/src/wrapper/FederationModulesPlugin.js +19 -19
  245. package/dist/src/wrapper/FederationModulesPlugin.js.map +1 -1
  246. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +11 -6
  247. package/dist/src/wrapper/FederationRuntimePlugin.js +18 -17
  248. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -1
  249. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +8 -3
  250. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +12 -11
  251. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
  252. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +12 -7
  253. package/dist/src/wrapper/ModuleFederationPlugin.js +73 -99
  254. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
  255. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +10 -4
  256. package/dist/src/wrapper/ProvideSharedPlugin.js +12 -11
  257. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -1
  258. package/dist/src/wrapper/SharePlugin.d.ts +10 -4
  259. package/dist/src/wrapper/SharePlugin.js +12 -11
  260. package/dist/src/wrapper/SharePlugin.js.map +1 -1
  261. package/dist/src/wrapper/TreeShakingSharedPlugin.d.ts +9 -4
  262. package/dist/src/wrapper/TreeShakingSharedPlugin.js +12 -11
  263. package/dist/src/wrapper/TreeShakingSharedPlugin.js.map +1 -1
  264. package/package.json +20 -13
  265. package/dist/package.json +0 -110
  266. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
  267. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
  268. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
  269. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
  270. package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
  271. package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -33
  272. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +0 -86
  273. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -100
  274. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -102
  275. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -116
  276. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +0 -20
  277. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +0 -222
  278. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +0 -1
  279. package/dist/src/prefetch.js.map +0 -1
  280. package/dist/src/rspack.js.map +0 -1
  281. package/dist/src/runtime.js.map +0 -1
  282. package/dist/src/types/runtime.d.ts +0 -10
  283. package/dist/src/types/runtime.js +0 -3
  284. package/dist/src/types/runtime.js.map +0 -1
  285. package/dist/src/webpack.js.map +0 -1
@@ -1,1229 +1,969 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validate = void 0;
4
- // @ts-nocheck
5
- /* eslint-disable */
6
- /*
7
- * This file was automatically generated.
8
- * DO NOT MODIFY BY HAND.
9
- */
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.js');
3
+
4
+ //#region src/schemas/container/ContainerPlugin.check.ts
10
5
  const t = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
11
- exports.validate = u;
12
- exports.default = u;
6
+ const validate = u;
7
+ var ContainerPlugin_check_default = u;
13
8
  const e = {
14
- definitions: {
15
- AmdContainer: { type: 'string', minLength: 1 },
16
- AuxiliaryComment: {
17
- anyOf: [
18
- { type: 'string' },
19
- { $ref: '#/definitions/LibraryCustomUmdCommentObject' },
20
- ],
21
- },
22
- EntryRuntime: {
23
- anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }],
24
- },
25
- Exposes: {
26
- anyOf: [
27
- {
28
- type: 'array',
29
- items: {
30
- anyOf: [
31
- { $ref: '#/definitions/ExposesItem' },
32
- { $ref: '#/definitions/ExposesObject' },
33
- ],
34
- },
35
- },
36
- { $ref: '#/definitions/ExposesObject' },
37
- ],
38
- },
39
- ExposesConfig: {
40
- type: 'object',
41
- additionalProperties: !1,
42
- properties: {
43
- import: {
44
- anyOf: [
45
- { $ref: '#/definitions/ExposesItem' },
46
- { $ref: '#/definitions/ExposesItems' },
47
- ],
48
- },
49
- name: { type: 'string' },
50
- },
51
- required: ['import'],
52
- },
53
- ExposesItem: { type: 'string', minLength: 1 },
54
- ExposesItems: {
55
- type: 'array',
56
- items: { $ref: '#/definitions/ExposesItem' },
57
- },
58
- ExposesObject: {
59
- type: 'object',
60
- additionalProperties: {
61
- anyOf: [
62
- { $ref: '#/definitions/ExposesConfig' },
63
- { $ref: '#/definitions/ExposesItem' },
64
- { $ref: '#/definitions/ExposesItems' },
65
- ],
66
- },
67
- },
68
- LibraryCustomUmdCommentObject: {
69
- type: 'object',
70
- additionalProperties: !1,
71
- properties: {
72
- amd: { type: 'string' },
73
- commonjs: { type: 'string' },
74
- commonjs2: { type: 'string' },
75
- root: { type: 'string' },
76
- },
77
- },
78
- LibraryCustomUmdObject: {
79
- type: 'object',
80
- additionalProperties: !1,
81
- properties: {
82
- amd: { type: 'string', minLength: 1 },
83
- commonjs: { type: 'string', minLength: 1 },
84
- root: {
85
- anyOf: [
86
- { type: 'array', items: { type: 'string', minLength: 1 } },
87
- { type: 'string', minLength: 1 },
88
- ],
89
- },
90
- },
91
- },
92
- LibraryExport: {
93
- anyOf: [
94
- { type: 'array', items: { type: 'string', minLength: 1 } },
95
- { type: 'string', minLength: 1 },
96
- ],
97
- },
98
- LibraryName: {
99
- anyOf: [
100
- {
101
- type: 'array',
102
- items: { type: 'string', minLength: 1 },
103
- minItems: 1,
104
- },
105
- { type: 'string', minLength: 1 },
106
- { $ref: '#/definitions/LibraryCustomUmdObject' },
107
- ],
108
- },
109
- LibraryOptions: {
110
- type: 'object',
111
- additionalProperties: !1,
112
- properties: {
113
- amdContainer: { $ref: '#/definitions/AmdContainer' },
114
- auxiliaryComment: { $ref: '#/definitions/AuxiliaryComment' },
115
- export: { $ref: '#/definitions/LibraryExport' },
116
- name: { $ref: '#/definitions/LibraryName' },
117
- type: { $ref: '#/definitions/LibraryType' },
118
- umdNamedDefine: { $ref: '#/definitions/UmdNamedDefine' },
119
- },
120
- required: ['type'],
121
- },
122
- LibraryType: {
123
- anyOf: [
124
- {
125
- enum: [
126
- 'var',
127
- 'module',
128
- 'assign',
129
- 'assign-properties',
130
- 'this',
131
- 'window',
132
- 'self',
133
- 'global',
134
- 'commonjs',
135
- 'commonjs2',
136
- 'commonjs-module',
137
- 'commonjs-static',
138
- 'amd',
139
- 'amd-require',
140
- 'umd',
141
- 'umd2',
142
- 'jsonp',
143
- 'system',
144
- ],
145
- },
146
- { type: 'string' },
147
- ],
148
- },
149
- UmdNamedDefine: { type: 'boolean' },
150
- },
151
- type: 'object',
152
- additionalProperties: !1,
153
- properties: {
154
- exposes: { $ref: '#/definitions/Exposes' },
155
- filename: { type: 'string', absolutePath: !1, minLength: 1 },
156
- library: { $ref: '#/definitions/LibraryOptions' },
157
- name: { type: 'string', minLength: 1 },
158
- runtime: { $ref: '#/definitions/EntryRuntime' },
159
- shareScope: {
160
- anyOf: [
161
- { type: 'string', minLength: 1 },
162
- { type: 'array', items: { type: 'string', minLength: 1 } },
163
- ],
164
- },
165
- experiments: {
166
- type: 'object',
167
- additionalProperties: !1,
168
- properties: {
169
- asyncStartup: { type: 'boolean' },
170
- externalRuntime: { type: 'boolean', default: !1 },
171
- provideExternalRuntime: { type: 'boolean', default: !1 },
172
- },
173
- },
174
- dataPrefetch: { type: 'boolean' },
175
- runtimePlugins: {
176
- type: 'array',
177
- items: {
178
- anyOf: [
179
- { type: 'string' },
180
- {
181
- type: 'array',
182
- items: [{ type: 'string' }, { type: 'object' }],
183
- minItems: 2,
184
- maxItems: 2,
185
- },
186
- ],
187
- },
188
- },
189
- },
190
- required: ['name', 'exposes'],
191
- }, r = { anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }] }, n = Object.prototype.hasOwnProperty;
192
- function s(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: a = t, } = {}) {
193
- if (!Array.isArray(t))
194
- return (s.errors = [{ params: { type: 'array' } }]), !1;
195
- {
196
- const e = t.length;
197
- for (let r = 0; r < e; r++) {
198
- let e = t[r];
199
- const n = 0;
200
- if ('string' != typeof e)
201
- return (s.errors = [{ params: { type: 'string' } }]), !1;
202
- if (e.length < 1)
203
- return (s.errors = [{ params: {} }]), !1;
204
- if (0 !== n)
205
- break;
206
- }
207
- }
208
- return (s.errors = null), !0;
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] }, {
195
+ type: "string",
196
+ minLength: 1
197
+ }] }, n = Object.prototype.hasOwnProperty;
198
+ function s(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: a = t } = {}) {
199
+ if (!Array.isArray(t)) return s.errors = [{ params: { type: "array" } }], !1;
200
+ {
201
+ const e = t.length;
202
+ for (let r = 0; r < e; r++) {
203
+ let e = t[r];
204
+ const n = 0;
205
+ if ("string" != typeof e) return s.errors = [{ params: { type: "string" } }], !1;
206
+ if (e.length < 1) return s.errors = [{ params: {} }], !1;
207
+ if (0 !== n) break;
208
+ }
209
+ }
210
+ return s.errors = null, !0;
209
211
  }
210
- function a(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: o = t, } = {}) {
211
- let i = null, l = 0;
212
- if (0 === l) {
213
- if (!t || 'object' != typeof t || Array.isArray(t))
214
- return (a.errors = [{ params: { type: 'object' } }]), !1;
215
- {
216
- let r;
217
- if (void 0 === t.import && (r = 'import'))
218
- return (a.errors = [{ params: { missingProperty: r } }]), !1;
219
- {
220
- const r = l;
221
- for (const e in t)
222
- if ('import' !== e && 'name' !== e)
223
- return (a.errors = [{ params: { additionalProperty: e } }]), !1;
224
- if (r === l) {
225
- if (void 0 !== t.import) {
226
- let r = t.import;
227
- const n = l, m = l;
228
- let u = !1;
229
- const c = l;
230
- if (l == l)
231
- if ('string' == typeof r) {
232
- if (r.length < 1) {
233
- const t = { params: {} };
234
- null === i ? (i = [t]) : i.push(t), l++;
235
- }
236
- }
237
- else {
238
- const t = { params: { type: 'string' } };
239
- null === i ? (i = [t]) : i.push(t), l++;
240
- }
241
- var p = c === l;
242
- if (((u = u || p), !u)) {
243
- const n = l;
244
- s(r, {
245
- instancePath: e + '/import',
246
- parentData: t,
247
- parentDataProperty: 'import',
248
- rootData: o,
249
- }) ||
250
- ((i = null === i ? s.errors : i.concat(s.errors)),
251
- (l = i.length)),
252
- (p = n === l),
253
- (u = u || p);
254
- }
255
- if (!u) {
256
- const t = { params: {} };
257
- return (null === i ? (i = [t]) : i.push(t), l++, (a.errors = i), !1);
258
- }
259
- (l = m), null !== i && (m ? (i.length = m) : (i = null));
260
- var f = n === l;
261
- }
262
- else
263
- f = !0;
264
- if (f)
265
- if (void 0 !== t.name) {
266
- const e = l;
267
- if ('string' != typeof t.name)
268
- return (a.errors = [{ params: { type: 'string' } }]), !1;
269
- f = e === l;
270
- }
271
- else
272
- f = !0;
273
- }
274
- }
275
- }
276
- }
277
- return (a.errors = i), 0 === l;
212
+ function a(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: o = t } = {}) {
213
+ let i = null, l = 0;
214
+ if (0 === l) {
215
+ if (!t || "object" != typeof t || Array.isArray(t)) return a.errors = [{ params: { type: "object" } }], !1;
216
+ {
217
+ let r;
218
+ if (void 0 === t.import && (r = "import")) return a.errors = [{ params: { missingProperty: r } }], !1;
219
+ {
220
+ const r = l;
221
+ for (const e in t) if ("import" !== e && "name" !== e) return a.errors = [{ params: { additionalProperty: e } }], !1;
222
+ if (r === l) {
223
+ if (void 0 !== t.import) {
224
+ let r = t.import;
225
+ const n = l, m = l;
226
+ let u = !1;
227
+ const c = l;
228
+ if (l == l) if ("string" == typeof r) {
229
+ if (r.length < 1) {
230
+ const t = { params: {} };
231
+ null === i ? i = [t] : i.push(t), l++;
232
+ }
233
+ } else {
234
+ const t = { params: { type: "string" } };
235
+ null === i ? i = [t] : i.push(t), l++;
236
+ }
237
+ var p = c === l;
238
+ if (u = u || p, !u) {
239
+ const n = l;
240
+ s(r, {
241
+ instancePath: e + "/import",
242
+ parentData: t,
243
+ parentDataProperty: "import",
244
+ rootData: o
245
+ }) || (i = null === i ? s.errors : i.concat(s.errors), l = i.length), p = n === l, u = u || p;
246
+ }
247
+ if (!u) {
248
+ const t = { params: {} };
249
+ return null === i ? i = [t] : i.push(t), l++, a.errors = i, !1;
250
+ }
251
+ l = m, null !== i && (m ? i.length = m : i = null);
252
+ var f = n === l;
253
+ } else f = !0;
254
+ if (f) if (void 0 !== t.name) {
255
+ const e = l;
256
+ if ("string" != typeof t.name) return a.errors = [{ params: { type: "string" } }], !1;
257
+ f = e === l;
258
+ } else f = !0;
259
+ }
260
+ }
261
+ }
262
+ }
263
+ return a.errors = i, 0 === l;
278
264
  }
279
- function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: i = t, } = {}) {
280
- let l = null, p = 0;
281
- if (0 === p) {
282
- if (!t || 'object' != typeof t || Array.isArray(t))
283
- return (o.errors = [{ params: { type: 'object' } }]), !1;
284
- for (const r in t) {
285
- let n = t[r];
286
- const m = p, u = p;
287
- let c = !1;
288
- const y = p;
289
- a(n, {
290
- instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
291
- parentData: t,
292
- parentDataProperty: r,
293
- rootData: i,
294
- }) || ((l = null === l ? a.errors : l.concat(a.errors)), (p = l.length));
295
- var f = y === p;
296
- if (((c = c || f), !c)) {
297
- const a = p;
298
- if (p == p)
299
- if ('string' == typeof n) {
300
- if (n.length < 1) {
301
- const t = { params: {} };
302
- null === l ? (l = [t]) : l.push(t), p++;
303
- }
304
- }
305
- else {
306
- const t = { params: { type: 'string' } };
307
- null === l ? (l = [t]) : l.push(t), p++;
308
- }
309
- if (((f = a === p), (c = c || f), !c)) {
310
- const a = p;
311
- s(n, {
312
- instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
313
- parentData: t,
314
- parentDataProperty: r,
315
- rootData: i,
316
- }) ||
317
- ((l = null === l ? s.errors : l.concat(s.errors)), (p = l.length)),
318
- (f = a === p),
319
- (c = c || f);
320
- }
321
- }
322
- if (!c) {
323
- const t = { params: {} };
324
- return null === l ? (l = [t]) : l.push(t), p++, (o.errors = l), !1;
325
- }
326
- if (((p = u), null !== l && (u ? (l.length = u) : (l = null)), m !== p))
327
- break;
328
- }
329
- }
330
- return (o.errors = l), 0 === p;
265
+ function o(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: i = t } = {}) {
266
+ let l = null, p = 0;
267
+ if (0 === p) {
268
+ if (!t || "object" != typeof t || Array.isArray(t)) return o.errors = [{ params: { type: "object" } }], !1;
269
+ for (const r in t) {
270
+ let n = t[r];
271
+ const m = p, u = p;
272
+ let c = !1;
273
+ const y = p;
274
+ a(n, {
275
+ instancePath: e + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
276
+ parentData: t,
277
+ parentDataProperty: r,
278
+ rootData: i
279
+ }) || (l = null === l ? a.errors : l.concat(a.errors), p = l.length);
280
+ var f = y === p;
281
+ if (c = c || f, !c) {
282
+ const a = p;
283
+ if (p == p) if ("string" == typeof n) {
284
+ if (n.length < 1) {
285
+ const t = { params: {} };
286
+ null === l ? l = [t] : l.push(t), p++;
287
+ }
288
+ } else {
289
+ const t = { params: { type: "string" } };
290
+ null === l ? l = [t] : l.push(t), p++;
291
+ }
292
+ if (f = a === p, c = c || f, !c) {
293
+ const a = p;
294
+ s(n, {
295
+ instancePath: e + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
296
+ parentData: t,
297
+ parentDataProperty: r,
298
+ rootData: i
299
+ }) || (l = null === l ? s.errors : l.concat(s.errors), p = l.length), f = a === p, c = c || f;
300
+ }
301
+ }
302
+ if (!c) {
303
+ const t = { params: {} };
304
+ return null === l ? l = [t] : l.push(t), p++, o.errors = l, !1;
305
+ }
306
+ if (p = u, null !== l && (u ? l.length = u : l = null), m !== p) break;
307
+ }
308
+ }
309
+ return o.errors = l, 0 === p;
331
310
  }
332
- function i(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
333
- let a = null, l = 0;
334
- const p = l;
335
- let f = !1;
336
- const m = l;
337
- if (l === m)
338
- if (Array.isArray(t)) {
339
- const r = t.length;
340
- for (let n = 0; n < r; n++) {
341
- let r = t[n];
342
- const i = l, p = l;
343
- let f = !1;
344
- const m = l;
345
- if (l == l)
346
- if ('string' == typeof r) {
347
- if (r.length < 1) {
348
- const t = { params: {} };
349
- null === a ? (a = [t]) : a.push(t), l++;
350
- }
351
- }
352
- else {
353
- const t = { params: { type: 'string' } };
354
- null === a ? (a = [t]) : a.push(t), l++;
355
- }
356
- var u = m === l;
357
- if (((f = f || u), !f)) {
358
- const i = l;
359
- o(r, {
360
- instancePath: e + '/' + n,
361
- parentData: t,
362
- parentDataProperty: n,
363
- rootData: s,
364
- }) ||
365
- ((a = null === a ? o.errors : a.concat(o.errors)), (l = a.length)),
366
- (u = i === l),
367
- (f = f || u);
368
- }
369
- if (f)
370
- (l = p), null !== a && (p ? (a.length = p) : (a = null));
371
- else {
372
- const t = { params: {} };
373
- null === a ? (a = [t]) : a.push(t), l++;
374
- }
375
- if (i !== l)
376
- break;
377
- }
378
- }
379
- else {
380
- const t = { params: { type: 'array' } };
381
- null === a ? (a = [t]) : a.push(t), l++;
382
- }
383
- var c = m === l;
384
- if (((f = f || c), !f)) {
385
- const i = l;
386
- o(t, {
387
- instancePath: e,
388
- parentData: r,
389
- parentDataProperty: n,
390
- rootData: s,
391
- }) || ((a = null === a ? o.errors : a.concat(o.errors)), (l = a.length)),
392
- (c = i === l),
393
- (f = f || c);
394
- }
395
- if (!f) {
396
- const t = { params: {} };
397
- return null === a ? (a = [t]) : a.push(t), l++, (i.errors = a), !1;
398
- }
399
- return ((l = p),
400
- null !== a && (p ? (a.length = p) : (a = null)),
401
- (i.errors = a),
402
- 0 === l);
311
+ function i(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
312
+ let a = null, l = 0;
313
+ const p = l;
314
+ let f = !1;
315
+ const m = l;
316
+ if (l === m) if (Array.isArray(t)) {
317
+ const r = t.length;
318
+ for (let n = 0; n < r; n++) {
319
+ let r = t[n];
320
+ const i = l, p = l;
321
+ let f = !1;
322
+ const m = l;
323
+ if (l == l) if ("string" == typeof r) {
324
+ if (r.length < 1) {
325
+ const t = { params: {} };
326
+ null === a ? a = [t] : a.push(t), l++;
327
+ }
328
+ } else {
329
+ const t = { params: { type: "string" } };
330
+ null === a ? a = [t] : a.push(t), l++;
331
+ }
332
+ var u = m === l;
333
+ if (f = f || u, !f) {
334
+ const i = l;
335
+ o(r, {
336
+ instancePath: e + "/" + n,
337
+ parentData: t,
338
+ parentDataProperty: n,
339
+ rootData: s
340
+ }) || (a = null === a ? o.errors : a.concat(o.errors), l = a.length), u = i === l, f = f || u;
341
+ }
342
+ if (f) l = p, null !== a && (p ? a.length = p : a = null);
343
+ else {
344
+ const t = { params: {} };
345
+ null === a ? a = [t] : a.push(t), l++;
346
+ }
347
+ if (i !== l) break;
348
+ }
349
+ } else {
350
+ const t = { params: { type: "array" } };
351
+ null === a ? a = [t] : a.push(t), l++;
352
+ }
353
+ var c = m === l;
354
+ if (f = f || c, !f) {
355
+ const i = l;
356
+ o(t, {
357
+ instancePath: e,
358
+ parentData: r,
359
+ parentDataProperty: n,
360
+ rootData: s
361
+ }) || (a = null === a ? o.errors : a.concat(o.errors), l = a.length), c = i === l, f = f || c;
362
+ }
363
+ if (!f) {
364
+ const t = { params: {} };
365
+ return null === a ? a = [t] : a.push(t), l++, i.errors = a, !1;
366
+ }
367
+ return l = p, null !== a && (p ? a.length = p : a = null), i.errors = a, 0 === l;
403
368
  }
404
- const l = {
405
- anyOf: [
406
- {
407
- enum: [
408
- 'var',
409
- 'module',
410
- 'assign',
411
- 'assign-properties',
412
- 'this',
413
- 'window',
414
- 'self',
415
- 'global',
416
- 'commonjs',
417
- 'commonjs2',
418
- 'commonjs-module',
419
- 'commonjs-static',
420
- 'amd',
421
- 'amd-require',
422
- 'umd',
423
- 'umd2',
424
- 'jsonp',
425
- 'system',
426
- ],
427
- },
428
- { type: 'string' },
429
- ],
430
- };
431
- function p(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
432
- let a = null, o = 0;
433
- const i = o;
434
- let l = !1;
435
- const f = o;
436
- if ('string' != typeof t) {
437
- const t = { params: { type: 'string' } };
438
- null === a ? (a = [t]) : a.push(t), o++;
439
- }
440
- var m = f === o;
441
- if (((l = l || m), !l)) {
442
- const e = o;
443
- if (o == o)
444
- if (t && 'object' == typeof t && !Array.isArray(t)) {
445
- const e = o;
446
- for (const e in t)
447
- if ('amd' !== e &&
448
- 'commonjs' !== e &&
449
- 'commonjs2' !== e &&
450
- 'root' !== e) {
451
- const t = { params: { additionalProperty: e } };
452
- null === a ? (a = [t]) : a.push(t), o++;
453
- break;
454
- }
455
- if (e === o) {
456
- if (void 0 !== t.amd) {
457
- const e = o;
458
- if ('string' != typeof t.amd) {
459
- const t = { params: { type: 'string' } };
460
- null === a ? (a = [t]) : a.push(t), o++;
461
- }
462
- var u = e === o;
463
- }
464
- else
465
- u = !0;
466
- if (u) {
467
- if (void 0 !== t.commonjs) {
468
- const e = o;
469
- if ('string' != typeof t.commonjs) {
470
- const t = { params: { type: 'string' } };
471
- null === a ? (a = [t]) : a.push(t), o++;
472
- }
473
- u = e === o;
474
- }
475
- else
476
- u = !0;
477
- if (u) {
478
- if (void 0 !== t.commonjs2) {
479
- const e = o;
480
- if ('string' != typeof t.commonjs2) {
481
- const t = { params: { type: 'string' } };
482
- null === a ? (a = [t]) : a.push(t), o++;
483
- }
484
- u = e === o;
485
- }
486
- else
487
- u = !0;
488
- if (u)
489
- if (void 0 !== t.root) {
490
- const e = o;
491
- if ('string' != typeof t.root) {
492
- const t = { params: { type: 'string' } };
493
- null === a ? (a = [t]) : a.push(t), o++;
494
- }
495
- u = e === o;
496
- }
497
- else
498
- u = !0;
499
- }
500
- }
501
- }
502
- }
503
- else {
504
- const t = { params: { type: 'object' } };
505
- null === a ? (a = [t]) : a.push(t), o++;
506
- }
507
- (m = e === o), (l = l || m);
508
- }
509
- if (!l) {
510
- const t = { params: {} };
511
- return null === a ? (a = [t]) : a.push(t), o++, (p.errors = a), !1;
512
- }
513
- return ((o = i),
514
- null !== a && (i ? (a.length = i) : (a = null)),
515
- (p.errors = a),
516
- 0 === o);
369
+ const l = { anyOf: [{ enum: [
370
+ "var",
371
+ "module",
372
+ "assign",
373
+ "assign-properties",
374
+ "this",
375
+ "window",
376
+ "self",
377
+ "global",
378
+ "commonjs",
379
+ "commonjs2",
380
+ "commonjs-module",
381
+ "commonjs-static",
382
+ "amd",
383
+ "amd-require",
384
+ "umd",
385
+ "umd2",
386
+ "jsonp",
387
+ "system"
388
+ ] }, { type: "string" }] };
389
+ function p(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
390
+ let a = null, o = 0;
391
+ const i = o;
392
+ let l = !1;
393
+ const f = o;
394
+ if ("string" != typeof t) {
395
+ const t = { params: { type: "string" } };
396
+ null === a ? a = [t] : a.push(t), o++;
397
+ }
398
+ var m = f === o;
399
+ if (l = l || m, !l) {
400
+ const e = o;
401
+ if (o == o) if (t && "object" == typeof t && !Array.isArray(t)) {
402
+ const e = o;
403
+ for (const e in t) if ("amd" !== e && "commonjs" !== e && "commonjs2" !== e && "root" !== e) {
404
+ const t = { params: { additionalProperty: e } };
405
+ null === a ? a = [t] : a.push(t), o++;
406
+ break;
407
+ }
408
+ if (e === o) {
409
+ if (void 0 !== t.amd) {
410
+ const e = o;
411
+ if ("string" != typeof t.amd) {
412
+ const t = { params: { type: "string" } };
413
+ null === a ? a = [t] : a.push(t), o++;
414
+ }
415
+ var u = e === o;
416
+ } else u = !0;
417
+ if (u) {
418
+ if (void 0 !== t.commonjs) {
419
+ const e = o;
420
+ if ("string" != typeof t.commonjs) {
421
+ const t = { params: { type: "string" } };
422
+ null === a ? a = [t] : a.push(t), o++;
423
+ }
424
+ u = e === o;
425
+ } else u = !0;
426
+ if (u) {
427
+ if (void 0 !== t.commonjs2) {
428
+ const e = o;
429
+ if ("string" != typeof t.commonjs2) {
430
+ const t = { params: { type: "string" } };
431
+ null === a ? a = [t] : a.push(t), o++;
432
+ }
433
+ u = e === o;
434
+ } else u = !0;
435
+ if (u) if (void 0 !== t.root) {
436
+ const e = o;
437
+ if ("string" != typeof t.root) {
438
+ const t = { params: { type: "string" } };
439
+ null === a ? a = [t] : a.push(t), o++;
440
+ }
441
+ u = e === o;
442
+ } else u = !0;
443
+ }
444
+ }
445
+ }
446
+ } else {
447
+ const t = { params: { type: "object" } };
448
+ null === a ? a = [t] : a.push(t), o++;
449
+ }
450
+ m = e === o, l = l || m;
451
+ }
452
+ if (!l) {
453
+ const t = { params: {} };
454
+ return null === a ? a = [t] : a.push(t), o++, p.errors = a, !1;
455
+ }
456
+ return o = i, null !== a && (i ? a.length = i : a = null), p.errors = a, 0 === o;
517
457
  }
518
- function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
519
- let a = null, o = 0;
520
- const i = o;
521
- let l = !1;
522
- const p = o;
523
- if (o === p)
524
- if (Array.isArray(t))
525
- if (t.length < 1) {
526
- const t = { params: { limit: 1 } };
527
- null === a ? (a = [t]) : a.push(t), o++;
528
- }
529
- else {
530
- const e = t.length;
531
- for (let r = 0; r < e; r++) {
532
- let e = t[r];
533
- const n = o;
534
- if (o === n)
535
- if ('string' == typeof e) {
536
- if (e.length < 1) {
537
- const t = { params: {} };
538
- null === a ? (a = [t]) : a.push(t), o++;
539
- }
540
- }
541
- else {
542
- const t = { params: { type: 'string' } };
543
- null === a ? (a = [t]) : a.push(t), o++;
544
- }
545
- if (n !== o)
546
- break;
547
- }
548
- }
549
- else {
550
- const t = { params: { type: 'array' } };
551
- null === a ? (a = [t]) : a.push(t), o++;
552
- }
553
- var m = p === o;
554
- if (((l = l || m), !l)) {
555
- const e = o;
556
- if (o === e)
557
- if ('string' == typeof t) {
558
- if (t.length < 1) {
559
- const t = { params: {} };
560
- null === a ? (a = [t]) : a.push(t), o++;
561
- }
562
- }
563
- else {
564
- const t = { params: { type: 'string' } };
565
- null === a ? (a = [t]) : a.push(t), o++;
566
- }
567
- if (((m = e === o), (l = l || m), !l)) {
568
- const e = o;
569
- if (o == o)
570
- if (t && 'object' == typeof t && !Array.isArray(t)) {
571
- const e = o;
572
- for (const e in t)
573
- if ('amd' !== e && 'commonjs' !== e && 'root' !== e) {
574
- const t = { params: { additionalProperty: e } };
575
- null === a ? (a = [t]) : a.push(t), o++;
576
- break;
577
- }
578
- if (e === o) {
579
- if (void 0 !== t.amd) {
580
- let e = t.amd;
581
- const r = o;
582
- if (o === r)
583
- if ('string' == typeof e) {
584
- if (e.length < 1) {
585
- const t = { params: {} };
586
- null === a ? (a = [t]) : a.push(t), o++;
587
- }
588
- }
589
- else {
590
- const t = { params: { type: 'string' } };
591
- null === a ? (a = [t]) : a.push(t), o++;
592
- }
593
- var u = r === o;
594
- }
595
- else
596
- u = !0;
597
- if (u) {
598
- if (void 0 !== t.commonjs) {
599
- let e = t.commonjs;
600
- const r = o;
601
- if (o === r)
602
- if ('string' == typeof e) {
603
- if (e.length < 1) {
604
- const t = { params: {} };
605
- null === a ? (a = [t]) : a.push(t), o++;
606
- }
607
- }
608
- else {
609
- const t = { params: { type: 'string' } };
610
- null === a ? (a = [t]) : a.push(t), o++;
611
- }
612
- u = r === o;
613
- }
614
- else
615
- u = !0;
616
- if (u)
617
- if (void 0 !== t.root) {
618
- let e = t.root;
619
- const r = o, n = o;
620
- let s = !1;
621
- const i = o;
622
- if (o === i)
623
- if (Array.isArray(e)) {
624
- const t = e.length;
625
- for (let r = 0; r < t; r++) {
626
- let t = e[r];
627
- const n = o;
628
- if (o === n)
629
- if ('string' == typeof t) {
630
- if (t.length < 1) {
631
- const t = { params: {} };
632
- null === a ? (a = [t]) : a.push(t), o++;
633
- }
634
- }
635
- else {
636
- const t = { params: { type: 'string' } };
637
- null === a ? (a = [t]) : a.push(t), o++;
638
- }
639
- if (n !== o)
640
- break;
641
- }
642
- }
643
- else {
644
- const t = { params: { type: 'array' } };
645
- null === a ? (a = [t]) : a.push(t), o++;
646
- }
647
- var c = i === o;
648
- if (((s = s || c), !s)) {
649
- const t = o;
650
- if (o === t)
651
- if ('string' == typeof e) {
652
- if (e.length < 1) {
653
- const t = { params: {} };
654
- null === a ? (a = [t]) : a.push(t), o++;
655
- }
656
- }
657
- else {
658
- const t = { params: { type: 'string' } };
659
- null === a ? (a = [t]) : a.push(t), o++;
660
- }
661
- (c = t === o), (s = s || c);
662
- }
663
- if (s)
664
- (o = n), null !== a && (n ? (a.length = n) : (a = null));
665
- else {
666
- const t = { params: {} };
667
- null === a ? (a = [t]) : a.push(t), o++;
668
- }
669
- u = r === o;
670
- }
671
- else
672
- u = !0;
673
- }
674
- }
675
- }
676
- else {
677
- const t = { params: { type: 'object' } };
678
- null === a ? (a = [t]) : a.push(t), o++;
679
- }
680
- (m = e === o), (l = l || m);
681
- }
682
- }
683
- if (!l) {
684
- const t = { params: {} };
685
- return null === a ? (a = [t]) : a.push(t), o++, (f.errors = a), !1;
686
- }
687
- return ((o = i),
688
- null !== a && (i ? (a.length = i) : (a = null)),
689
- (f.errors = a),
690
- 0 === o);
458
+ function f(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
459
+ let a = null, o = 0;
460
+ const i = o;
461
+ let l = !1;
462
+ const p = o;
463
+ if (o === p) if (Array.isArray(t)) if (t.length < 1) {
464
+ const t = { params: { limit: 1 } };
465
+ null === a ? a = [t] : a.push(t), o++;
466
+ } else {
467
+ const e = t.length;
468
+ for (let r = 0; r < e; r++) {
469
+ let e = t[r];
470
+ const n = o;
471
+ if (o === n) if ("string" == typeof e) {
472
+ if (e.length < 1) {
473
+ const t = { params: {} };
474
+ null === a ? a = [t] : a.push(t), o++;
475
+ }
476
+ } else {
477
+ const t = { params: { type: "string" } };
478
+ null === a ? a = [t] : a.push(t), o++;
479
+ }
480
+ if (n !== o) break;
481
+ }
482
+ }
483
+ else {
484
+ const t = { params: { type: "array" } };
485
+ null === a ? a = [t] : a.push(t), o++;
486
+ }
487
+ var m = p === o;
488
+ if (l = l || m, !l) {
489
+ const e = o;
490
+ if (o === e) if ("string" == typeof t) {
491
+ if (t.length < 1) {
492
+ const t = { params: {} };
493
+ null === a ? a = [t] : a.push(t), o++;
494
+ }
495
+ } else {
496
+ const t = { params: { type: "string" } };
497
+ null === a ? a = [t] : a.push(t), o++;
498
+ }
499
+ if (m = e === o, l = l || m, !l) {
500
+ const e = o;
501
+ if (o == o) if (t && "object" == typeof t && !Array.isArray(t)) {
502
+ const e = o;
503
+ for (const e in t) if ("amd" !== e && "commonjs" !== e && "root" !== e) {
504
+ const t = { params: { additionalProperty: e } };
505
+ null === a ? a = [t] : a.push(t), o++;
506
+ break;
507
+ }
508
+ if (e === o) {
509
+ if (void 0 !== t.amd) {
510
+ let e = t.amd;
511
+ const r = o;
512
+ if (o === r) if ("string" == typeof e) {
513
+ if (e.length < 1) {
514
+ const t = { params: {} };
515
+ null === a ? a = [t] : a.push(t), o++;
516
+ }
517
+ } else {
518
+ const t = { params: { type: "string" } };
519
+ null === a ? a = [t] : a.push(t), o++;
520
+ }
521
+ var u = r === o;
522
+ } else u = !0;
523
+ if (u) {
524
+ if (void 0 !== t.commonjs) {
525
+ let e = t.commonjs;
526
+ const r = o;
527
+ if (o === r) if ("string" == typeof e) {
528
+ if (e.length < 1) {
529
+ const t = { params: {} };
530
+ null === a ? a = [t] : a.push(t), o++;
531
+ }
532
+ } else {
533
+ const t = { params: { type: "string" } };
534
+ null === a ? a = [t] : a.push(t), o++;
535
+ }
536
+ u = r === o;
537
+ } else u = !0;
538
+ if (u) if (void 0 !== t.root) {
539
+ let e = t.root;
540
+ const r = o, n = o;
541
+ let s = !1;
542
+ const i = o;
543
+ if (o === i) if (Array.isArray(e)) {
544
+ const t = e.length;
545
+ for (let r = 0; r < t; r++) {
546
+ let t = e[r];
547
+ const n = o;
548
+ if (o === n) if ("string" == typeof t) {
549
+ if (t.length < 1) {
550
+ const t = { params: {} };
551
+ null === a ? a = [t] : a.push(t), o++;
552
+ }
553
+ } else {
554
+ const t = { params: { type: "string" } };
555
+ null === a ? a = [t] : a.push(t), o++;
556
+ }
557
+ if (n !== o) break;
558
+ }
559
+ } else {
560
+ const t = { params: { type: "array" } };
561
+ null === a ? a = [t] : a.push(t), o++;
562
+ }
563
+ var c = i === o;
564
+ if (s = s || c, !s) {
565
+ const t = o;
566
+ if (o === t) if ("string" == typeof e) {
567
+ if (e.length < 1) {
568
+ const t = { params: {} };
569
+ null === a ? a = [t] : a.push(t), o++;
570
+ }
571
+ } else {
572
+ const t = { params: { type: "string" } };
573
+ null === a ? a = [t] : a.push(t), o++;
574
+ }
575
+ c = t === o, s = s || c;
576
+ }
577
+ if (s) o = n, null !== a && (n ? a.length = n : a = null);
578
+ else {
579
+ const t = { params: {} };
580
+ null === a ? a = [t] : a.push(t), o++;
581
+ }
582
+ u = r === o;
583
+ } else u = !0;
584
+ }
585
+ }
586
+ } else {
587
+ const t = { params: { type: "object" } };
588
+ null === a ? a = [t] : a.push(t), o++;
589
+ }
590
+ m = e === o, l = l || m;
591
+ }
592
+ }
593
+ if (!l) {
594
+ const t = { params: {} };
595
+ return null === a ? a = [t] : a.push(t), o++, f.errors = a, !1;
596
+ }
597
+ return o = i, null !== a && (i ? a.length = i : a = null), f.errors = a, 0 === o;
691
598
  }
692
- function m(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
693
- let a = null, o = 0;
694
- if (0 === o) {
695
- if (!t || 'object' != typeof t || Array.isArray(t))
696
- return (m.errors = [{ params: { type: 'object' } }]), !1;
697
- {
698
- let r;
699
- if (void 0 === t.type && (r = 'type'))
700
- return (m.errors = [{ params: { missingProperty: r } }]), !1;
701
- {
702
- const r = o;
703
- for (const e in t)
704
- if ('amdContainer' !== e &&
705
- 'auxiliaryComment' !== e &&
706
- 'export' !== e &&
707
- 'name' !== e &&
708
- 'type' !== e &&
709
- 'umdNamedDefine' !== e)
710
- return (m.errors = [{ params: { additionalProperty: e } }]), !1;
711
- if (r === o) {
712
- if (void 0 !== t.amdContainer) {
713
- let e = t.amdContainer;
714
- const r = o;
715
- if (o == o) {
716
- if ('string' != typeof e)
717
- return (m.errors = [{ params: { type: 'string' } }]), !1;
718
- if (e.length < 1)
719
- return (m.errors = [{ params: {} }]), !1;
720
- }
721
- var i = r === o;
722
- }
723
- else
724
- i = !0;
725
- if (i) {
726
- if (void 0 !== t.auxiliaryComment) {
727
- const r = o;
728
- p(t.auxiliaryComment, {
729
- instancePath: e + '/auxiliaryComment',
730
- parentData: t,
731
- parentDataProperty: 'auxiliaryComment',
732
- rootData: s,
733
- }) ||
734
- ((a = null === a ? p.errors : a.concat(p.errors)),
735
- (o = a.length)),
736
- (i = r === o);
737
- }
738
- else
739
- i = !0;
740
- if (i) {
741
- if (void 0 !== t.export) {
742
- let e = t.export;
743
- const r = o, n = o;
744
- let s = !1;
745
- const l = o;
746
- if (o === l)
747
- if (Array.isArray(e)) {
748
- const t = e.length;
749
- for (let r = 0; r < t; r++) {
750
- let t = e[r];
751
- const n = o;
752
- if (o === n)
753
- if ('string' == typeof t) {
754
- if (t.length < 1) {
755
- const t = { params: {} };
756
- null === a ? (a = [t]) : a.push(t), o++;
757
- }
758
- }
759
- else {
760
- const t = { params: { type: 'string' } };
761
- null === a ? (a = [t]) : a.push(t), o++;
762
- }
763
- if (n !== o)
764
- break;
765
- }
766
- }
767
- else {
768
- const t = { params: { type: 'array' } };
769
- null === a ? (a = [t]) : a.push(t), o++;
770
- }
771
- var u = l === o;
772
- if (((s = s || u), !s)) {
773
- const t = o;
774
- if (o === t)
775
- if ('string' == typeof e) {
776
- if (e.length < 1) {
777
- const t = { params: {} };
778
- null === a ? (a = [t]) : a.push(t), o++;
779
- }
780
- }
781
- else {
782
- const t = { params: { type: 'string' } };
783
- null === a ? (a = [t]) : a.push(t), o++;
784
- }
785
- (u = t === o), (s = s || u);
786
- }
787
- if (!s) {
788
- const t = { params: {} };
789
- return (null === a ? (a = [t]) : a.push(t), o++, (m.errors = a), !1);
790
- }
791
- (o = n),
792
- null !== a && (n ? (a.length = n) : (a = null)),
793
- (i = r === o);
794
- }
795
- else
796
- i = !0;
797
- if (i) {
798
- if (void 0 !== t.name) {
799
- const r = o;
800
- f(t.name, {
801
- instancePath: e + '/name',
802
- parentData: t,
803
- parentDataProperty: 'name',
804
- rootData: s,
805
- }) ||
806
- ((a = null === a ? f.errors : a.concat(f.errors)),
807
- (o = a.length)),
808
- (i = r === o);
809
- }
810
- else
811
- i = !0;
812
- if (i) {
813
- if (void 0 !== t.type) {
814
- let e = t.type;
815
- const r = o, n = o;
816
- let s = !1;
817
- const p = o;
818
- if ('var' !== e &&
819
- 'module' !== e &&
820
- 'assign' !== e &&
821
- 'assign-properties' !== e &&
822
- 'this' !== e &&
823
- 'window' !== e &&
824
- 'self' !== e &&
825
- 'global' !== e &&
826
- 'commonjs' !== e &&
827
- 'commonjs2' !== e &&
828
- 'commonjs-module' !== e &&
829
- 'commonjs-static' !== e &&
830
- 'amd' !== e &&
831
- 'amd-require' !== e &&
832
- 'umd' !== e &&
833
- 'umd2' !== e &&
834
- 'jsonp' !== e &&
835
- 'system' !== e) {
836
- const t = { params: { allowedValues: l.anyOf[0].enum } };
837
- null === a ? (a = [t]) : a.push(t), o++;
838
- }
839
- var c = p === o;
840
- if (((s = s || c), !s)) {
841
- const t = o;
842
- if ('string' != typeof e) {
843
- const t = { params: { type: 'string' } };
844
- null === a ? (a = [t]) : a.push(t), o++;
845
- }
846
- (c = t === o), (s = s || c);
847
- }
848
- if (!s) {
849
- const t = { params: {} };
850
- return (null === a ? (a = [t]) : a.push(t),
851
- o++,
852
- (m.errors = a),
853
- !1);
854
- }
855
- (o = n),
856
- null !== a && (n ? (a.length = n) : (a = null)),
857
- (i = r === o);
858
- }
859
- else
860
- i = !0;
861
- if (i)
862
- if (void 0 !== t.umdNamedDefine) {
863
- const e = o;
864
- if ('boolean' != typeof t.umdNamedDefine)
865
- return ((m.errors = [{ params: { type: 'boolean' } }]), !1);
866
- i = e === o;
867
- }
868
- else
869
- i = !0;
870
- }
871
- }
872
- }
873
- }
874
- }
875
- }
876
- }
877
- }
878
- return (m.errors = a), 0 === o;
599
+ function m(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
600
+ let a = null, o = 0;
601
+ if (0 === o) {
602
+ if (!t || "object" != typeof t || Array.isArray(t)) return m.errors = [{ params: { type: "object" } }], !1;
603
+ {
604
+ let r;
605
+ if (void 0 === t.type && (r = "type")) return m.errors = [{ params: { missingProperty: r } }], !1;
606
+ {
607
+ const r = o;
608
+ for (const e in t) if ("amdContainer" !== e && "auxiliaryComment" !== e && "export" !== e && "name" !== e && "type" !== e && "umdNamedDefine" !== e) return m.errors = [{ params: { additionalProperty: e } }], !1;
609
+ if (r === o) {
610
+ if (void 0 !== t.amdContainer) {
611
+ let e = t.amdContainer;
612
+ const r = o;
613
+ if (o == o) {
614
+ if ("string" != typeof e) return m.errors = [{ params: { type: "string" } }], !1;
615
+ if (e.length < 1) return m.errors = [{ params: {} }], !1;
616
+ }
617
+ var i = r === o;
618
+ } else i = !0;
619
+ if (i) {
620
+ if (void 0 !== t.auxiliaryComment) {
621
+ const r = o;
622
+ p(t.auxiliaryComment, {
623
+ instancePath: e + "/auxiliaryComment",
624
+ parentData: t,
625
+ parentDataProperty: "auxiliaryComment",
626
+ rootData: s
627
+ }) || (a = null === a ? p.errors : a.concat(p.errors), o = a.length), i = r === o;
628
+ } else i = !0;
629
+ if (i) {
630
+ if (void 0 !== t.export) {
631
+ let e = t.export;
632
+ const r = o, n = o;
633
+ let s = !1;
634
+ const l = o;
635
+ if (o === l) if (Array.isArray(e)) {
636
+ const t = e.length;
637
+ for (let r = 0; r < t; r++) {
638
+ let t = e[r];
639
+ const n = o;
640
+ if (o === n) if ("string" == typeof t) {
641
+ if (t.length < 1) {
642
+ const t = { params: {} };
643
+ null === a ? a = [t] : a.push(t), o++;
644
+ }
645
+ } else {
646
+ const t = { params: { type: "string" } };
647
+ null === a ? a = [t] : a.push(t), o++;
648
+ }
649
+ if (n !== o) break;
650
+ }
651
+ } else {
652
+ const t = { params: { type: "array" } };
653
+ null === a ? a = [t] : a.push(t), o++;
654
+ }
655
+ var u = l === o;
656
+ if (s = s || u, !s) {
657
+ const t = o;
658
+ if (o === t) if ("string" == typeof e) {
659
+ if (e.length < 1) {
660
+ const t = { params: {} };
661
+ null === a ? a = [t] : a.push(t), o++;
662
+ }
663
+ } else {
664
+ const t = { params: { type: "string" } };
665
+ null === a ? a = [t] : a.push(t), o++;
666
+ }
667
+ u = t === o, s = s || u;
668
+ }
669
+ if (!s) {
670
+ const t = { params: {} };
671
+ return null === a ? a = [t] : a.push(t), o++, m.errors = a, !1;
672
+ }
673
+ o = n, null !== a && (n ? a.length = n : a = null), i = r === o;
674
+ } else i = !0;
675
+ if (i) {
676
+ if (void 0 !== t.name) {
677
+ const r = o;
678
+ f(t.name, {
679
+ instancePath: e + "/name",
680
+ parentData: t,
681
+ parentDataProperty: "name",
682
+ rootData: s
683
+ }) || (a = null === a ? f.errors : a.concat(f.errors), o = a.length), i = r === o;
684
+ } else i = !0;
685
+ if (i) {
686
+ if (void 0 !== t.type) {
687
+ let e = t.type;
688
+ const r = o, n = o;
689
+ let s = !1;
690
+ const p = o;
691
+ if ("var" !== e && "module" !== e && "assign" !== e && "assign-properties" !== 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) {
692
+ const t = { params: { allowedValues: l.anyOf[0].enum } };
693
+ null === a ? a = [t] : a.push(t), o++;
694
+ }
695
+ var c = p === o;
696
+ if (s = s || c, !s) {
697
+ const t = o;
698
+ if ("string" != typeof e) {
699
+ const t = { params: { type: "string" } };
700
+ null === a ? a = [t] : a.push(t), o++;
701
+ }
702
+ c = t === o, s = s || c;
703
+ }
704
+ if (!s) {
705
+ const t = { params: {} };
706
+ return null === a ? a = [t] : a.push(t), o++, m.errors = a, !1;
707
+ }
708
+ o = n, null !== a && (n ? a.length = n : a = null), i = r === o;
709
+ } else i = !0;
710
+ if (i) if (void 0 !== t.umdNamedDefine) {
711
+ const e = o;
712
+ if ("boolean" != typeof t.umdNamedDefine) return m.errors = [{ params: { type: "boolean" } }], !1;
713
+ i = e === o;
714
+ } else i = !0;
715
+ }
716
+ }
717
+ }
718
+ }
719
+ }
720
+ }
721
+ }
722
+ }
723
+ return m.errors = a, 0 === o;
879
724
  }
880
- function u(s, { instancePath: a = '', parentData: o, parentDataProperty: l, rootData: p = s, } = {}) {
881
- let f = null, c = 0;
882
- if (0 === c) {
883
- if (!s || 'object' != typeof s || Array.isArray(s))
884
- return (u.errors = [{ params: { type: 'object' } }]), !1;
885
- {
886
- let o;
887
- if ((void 0 === s.name && (o = 'name')) ||
888
- (void 0 === s.exposes && (o = 'exposes')))
889
- return (u.errors = [{ params: { missingProperty: o } }]), !1;
890
- {
891
- const o = c;
892
- for (const t in s)
893
- if (!n.call(e.properties, t))
894
- return (u.errors = [{ params: { additionalProperty: t } }]), !1;
895
- if (o === c) {
896
- if (void 0 !== s.exposes) {
897
- const t = c;
898
- i(s.exposes, {
899
- instancePath: a + '/exposes',
900
- parentData: s,
901
- parentDataProperty: 'exposes',
902
- rootData: p,
903
- }) ||
904
- ((f = null === f ? i.errors : f.concat(i.errors)),
905
- (c = f.length));
906
- var y = t === c;
907
- }
908
- else
909
- y = !0;
910
- if (y) {
911
- if (void 0 !== s.filename) {
912
- let e = s.filename;
913
- const r = c;
914
- if (c === r) {
915
- if ('string' != typeof e)
916
- return (u.errors = [{ params: { type: 'string' } }]), !1;
917
- if (e.length < 1)
918
- return (u.errors = [{ params: {} }]), !1;
919
- if (e.includes('!') || !1 !== t.test(e))
920
- return (u.errors = [{ params: {} }]), !1;
921
- }
922
- y = r === c;
923
- }
924
- else
925
- y = !0;
926
- if (y) {
927
- if (void 0 !== s.library) {
928
- const t = c;
929
- m(s.library, {
930
- instancePath: a + '/library',
931
- parentData: s,
932
- parentDataProperty: 'library',
933
- rootData: p,
934
- }) ||
935
- ((f = null === f ? m.errors : f.concat(m.errors)),
936
- (c = f.length)),
937
- (y = t === c);
938
- }
939
- else
940
- y = !0;
941
- if (y) {
942
- if (void 0 !== s.name) {
943
- let t = s.name;
944
- const e = c;
945
- if (c === e) {
946
- if ('string' != typeof t)
947
- return (u.errors = [{ params: { type: 'string' } }]), !1;
948
- if (t.length < 1)
949
- return (u.errors = [{ params: {} }]), !1;
950
- }
951
- y = e === c;
952
- }
953
- else
954
- y = !0;
955
- if (y) {
956
- if (void 0 !== s.runtime) {
957
- let t = s.runtime;
958
- const e = c, n = c;
959
- let a = !1;
960
- const o = c;
961
- if (!1 !== t) {
962
- const t = { params: { allowedValues: r.anyOf[0].enum } };
963
- null === f ? (f = [t]) : f.push(t), c++;
964
- }
965
- var g = o === c;
966
- if (((a = a || g), !a)) {
967
- const e = c;
968
- if (c === e)
969
- if ('string' == typeof t) {
970
- if (t.length < 1) {
971
- const t = { params: {} };
972
- null === f ? (f = [t]) : f.push(t), c++;
973
- }
974
- }
975
- else {
976
- const t = { params: { type: 'string' } };
977
- null === f ? (f = [t]) : f.push(t), c++;
978
- }
979
- (g = e === c), (a = a || g);
980
- }
981
- if (!a) {
982
- const t = { params: {} };
983
- return (null === f ? (f = [t]) : f.push(t),
984
- c++,
985
- (u.errors = f),
986
- !1);
987
- }
988
- (c = n),
989
- null !== f && (n ? (f.length = n) : (f = null)),
990
- (y = e === c);
991
- }
992
- else
993
- y = !0;
994
- if (y) {
995
- if (void 0 !== s.shareScope) {
996
- let t = s.shareScope;
997
- const e = c, r = c;
998
- let n = !1;
999
- const a = c;
1000
- if (c === a)
1001
- if ('string' == typeof t) {
1002
- if (t.length < 1) {
1003
- const t = { params: {} };
1004
- null === f ? (f = [t]) : f.push(t), c++;
1005
- }
1006
- }
1007
- else {
1008
- const t = { params: { type: 'string' } };
1009
- null === f ? (f = [t]) : f.push(t), c++;
1010
- }
1011
- var h = a === c;
1012
- if (((n = n || h), !n)) {
1013
- const e = c;
1014
- if (c === e)
1015
- if (Array.isArray(t)) {
1016
- const e = t.length;
1017
- for (let r = 0; r < e; r++) {
1018
- let e = t[r];
1019
- const n = c;
1020
- if (c === n)
1021
- if ('string' == typeof e) {
1022
- if (e.length < 1) {
1023
- const t = { params: {} };
1024
- null === f ? (f = [t]) : f.push(t), c++;
1025
- }
1026
- }
1027
- else {
1028
- const t = { params: { type: 'string' } };
1029
- null === f ? (f = [t]) : f.push(t), c++;
1030
- }
1031
- if (n !== c)
1032
- break;
1033
- }
1034
- }
1035
- else {
1036
- const t = { params: { type: 'array' } };
1037
- null === f ? (f = [t]) : f.push(t), c++;
1038
- }
1039
- (h = e === c), (n = n || h);
1040
- }
1041
- if (!n) {
1042
- const t = { params: {} };
1043
- return (null === f ? (f = [t]) : f.push(t),
1044
- c++,
1045
- (u.errors = f),
1046
- !1);
1047
- }
1048
- (c = r),
1049
- null !== f && (r ? (f.length = r) : (f = null)),
1050
- (y = e === c);
1051
- }
1052
- else
1053
- y = !0;
1054
- if (y) {
1055
- if (void 0 !== s.experiments) {
1056
- let t = s.experiments;
1057
- const e = c;
1058
- if (c === e) {
1059
- if (!t || 'object' != typeof t || Array.isArray(t))
1060
- return ((u.errors = [{ params: { type: 'object' } }]), !1);
1061
- {
1062
- const e = c;
1063
- for (const e in t)
1064
- if ('asyncStartup' !== e &&
1065
- 'externalRuntime' !== e &&
1066
- 'provideExternalRuntime' !== e)
1067
- return ((u.errors = [
1068
- { params: { additionalProperty: e } },
1069
- ]),
1070
- !1);
1071
- if (e === c) {
1072
- if (void 0 !== t.asyncStartup) {
1073
- const e = c;
1074
- if ('boolean' != typeof t.asyncStartup)
1075
- return ((u.errors = [
1076
- { params: { type: 'boolean' } },
1077
- ]),
1078
- !1);
1079
- var d = e === c;
1080
- }
1081
- else
1082
- d = !0;
1083
- if (d) {
1084
- if (void 0 !== t.externalRuntime) {
1085
- const e = c;
1086
- if ('boolean' != typeof t.externalRuntime)
1087
- return ((u.errors = [
1088
- { params: { type: 'boolean' } },
1089
- ]),
1090
- !1);
1091
- d = e === c;
1092
- }
1093
- else
1094
- d = !0;
1095
- if (d)
1096
- if (void 0 !== t.provideExternalRuntime) {
1097
- const e = c;
1098
- if ('boolean' !=
1099
- typeof t.provideExternalRuntime)
1100
- return ((u.errors = [
1101
- { params: { type: 'boolean' } },
1102
- ]),
1103
- !1);
1104
- d = e === c;
1105
- }
1106
- else
1107
- d = !0;
1108
- }
1109
- }
1110
- }
1111
- }
1112
- y = e === c;
1113
- }
1114
- else
1115
- y = !0;
1116
- if (y) {
1117
- if (void 0 !== s.dataPrefetch) {
1118
- const t = c;
1119
- if ('boolean' != typeof s.dataPrefetch)
1120
- return ((u.errors = [{ params: { type: 'boolean' } }]), !1);
1121
- y = t === c;
1122
- }
1123
- else
1124
- y = !0;
1125
- if (y)
1126
- if (void 0 !== s.runtimePlugins) {
1127
- let t = s.runtimePlugins;
1128
- const e = c;
1129
- if (c === e) {
1130
- if (!Array.isArray(t))
1131
- return ((u.errors = [{ params: { type: 'array' } }]),
1132
- !1);
1133
- {
1134
- const e = t.length;
1135
- for (let r = 0; r < e; r++) {
1136
- let e = t[r];
1137
- const n = c, s = c;
1138
- let a = !1;
1139
- const o = c;
1140
- if ('string' != typeof e) {
1141
- const t = { params: { type: 'string' } };
1142
- null === f ? (f = [t]) : f.push(t), c++;
1143
- }
1144
- var b = o === c;
1145
- if (((a = a || b), !a)) {
1146
- const t = c;
1147
- if (c === t)
1148
- if (Array.isArray(e))
1149
- if (e.length > 2) {
1150
- const t = { params: { limit: 2 } };
1151
- null === f ? (f = [t]) : f.push(t),
1152
- c++;
1153
- }
1154
- else if (e.length < 2) {
1155
- const t = { params: { limit: 2 } };
1156
- null === f ? (f = [t]) : f.push(t),
1157
- c++;
1158
- }
1159
- else {
1160
- const t = e.length;
1161
- if (t > 0) {
1162
- const t = c;
1163
- if ('string' != typeof e[0]) {
1164
- const t = {
1165
- params: { type: 'string' },
1166
- };
1167
- null === f
1168
- ? (f = [t])
1169
- : f.push(t),
1170
- c++;
1171
- }
1172
- var j = t === c;
1173
- }
1174
- if (j && t > 1) {
1175
- let t = e[1];
1176
- const r = c;
1177
- if (!t ||
1178
- 'object' != typeof t ||
1179
- Array.isArray(t)) {
1180
- const t = {
1181
- params: { type: 'object' },
1182
- };
1183
- null === f
1184
- ? (f = [t])
1185
- : f.push(t),
1186
- c++;
1187
- }
1188
- j = r === c;
1189
- }
1190
- }
1191
- else {
1192
- const t = { params: { type: 'array' } };
1193
- null === f ? (f = [t]) : f.push(t), c++;
1194
- }
1195
- (b = t === c), (a = a || b);
1196
- }
1197
- if (!a) {
1198
- const t = { params: {} };
1199
- return (null === f ? (f = [t]) : f.push(t),
1200
- c++,
1201
- (u.errors = f),
1202
- !1);
1203
- }
1204
- if (((c = s),
1205
- null !== f &&
1206
- (s ? (f.length = s) : (f = null)),
1207
- n !== c))
1208
- break;
1209
- }
1210
- }
1211
- }
1212
- y = e === c;
1213
- }
1214
- else
1215
- y = !0;
1216
- }
1217
- }
1218
- }
1219
- }
1220
- }
1221
- }
1222
- }
1223
- }
1224
- }
1225
- }
1226
- }
1227
- return (u.errors = f), 0 === c;
725
+ function u(s, { instancePath: a = "", parentData: o, parentDataProperty: l, rootData: p = s } = {}) {
726
+ let f = null, c = 0;
727
+ if (0 === c) {
728
+ if (!s || "object" != typeof s || Array.isArray(s)) return u.errors = [{ params: { type: "object" } }], !1;
729
+ {
730
+ let o;
731
+ if (void 0 === s.name && (o = "name") || void 0 === s.exposes && (o = "exposes")) return u.errors = [{ params: { missingProperty: o } }], !1;
732
+ {
733
+ const o = c;
734
+ for (const t in s) if (!n.call(e.properties, t)) return u.errors = [{ params: { additionalProperty: t } }], !1;
735
+ if (o === c) {
736
+ if (void 0 !== s.exposes) {
737
+ const t = c;
738
+ i(s.exposes, {
739
+ instancePath: a + "/exposes",
740
+ parentData: s,
741
+ parentDataProperty: "exposes",
742
+ rootData: p
743
+ }) || (f = null === f ? i.errors : f.concat(i.errors), c = f.length);
744
+ var y = t === c;
745
+ } else y = !0;
746
+ if (y) {
747
+ if (void 0 !== s.filename) {
748
+ let e = s.filename;
749
+ const r = c;
750
+ if (c === r) {
751
+ if ("string" != typeof e) return u.errors = [{ params: { type: "string" } }], !1;
752
+ if (e.length < 1) return u.errors = [{ params: {} }], !1;
753
+ if (e.includes("!") || !1 !== t.test(e)) return u.errors = [{ params: {} }], !1;
754
+ }
755
+ y = r === c;
756
+ } else y = !0;
757
+ if (y) {
758
+ if (void 0 !== s.library) {
759
+ const t = c;
760
+ m(s.library, {
761
+ instancePath: a + "/library",
762
+ parentData: s,
763
+ parentDataProperty: "library",
764
+ rootData: p
765
+ }) || (f = null === f ? m.errors : f.concat(m.errors), c = f.length), y = t === c;
766
+ } else y = !0;
767
+ if (y) {
768
+ if (void 0 !== s.name) {
769
+ let t = s.name;
770
+ const e = c;
771
+ if (c === e) {
772
+ if ("string" != typeof t) return u.errors = [{ params: { type: "string" } }], !1;
773
+ if (t.length < 1) return u.errors = [{ params: {} }], !1;
774
+ }
775
+ y = e === c;
776
+ } else y = !0;
777
+ if (y) {
778
+ if (void 0 !== s.runtime) {
779
+ let t = s.runtime;
780
+ const e = c, n = c;
781
+ let a = !1;
782
+ const o = c;
783
+ if (!1 !== t) {
784
+ const t = { params: { allowedValues: r.anyOf[0].enum } };
785
+ null === f ? f = [t] : f.push(t), c++;
786
+ }
787
+ var g = o === c;
788
+ if (a = a || g, !a) {
789
+ const e = c;
790
+ if (c === e) if ("string" == typeof t) {
791
+ if (t.length < 1) {
792
+ const t = { params: {} };
793
+ null === f ? f = [t] : f.push(t), c++;
794
+ }
795
+ } else {
796
+ const t = { params: { type: "string" } };
797
+ null === f ? f = [t] : f.push(t), c++;
798
+ }
799
+ g = e === c, a = a || g;
800
+ }
801
+ if (!a) {
802
+ const t = { params: {} };
803
+ return null === f ? f = [t] : f.push(t), c++, u.errors = f, !1;
804
+ }
805
+ c = n, null !== f && (n ? f.length = n : f = null), y = e === c;
806
+ } else y = !0;
807
+ if (y) {
808
+ if (void 0 !== s.shareScope) {
809
+ let t = s.shareScope;
810
+ const e = c, r = c;
811
+ let n = !1;
812
+ const a = c;
813
+ if (c === a) if ("string" == typeof t) {
814
+ if (t.length < 1) {
815
+ const t = { params: {} };
816
+ null === f ? f = [t] : f.push(t), c++;
817
+ }
818
+ } else {
819
+ const t = { params: { type: "string" } };
820
+ null === f ? f = [t] : f.push(t), c++;
821
+ }
822
+ var h = a === c;
823
+ if (n = n || h, !n) {
824
+ const e = c;
825
+ if (c === e) if (Array.isArray(t)) {
826
+ const e = t.length;
827
+ for (let r = 0; r < e; r++) {
828
+ let e = t[r];
829
+ const n = c;
830
+ if (c === n) if ("string" == typeof e) {
831
+ if (e.length < 1) {
832
+ const t = { params: {} };
833
+ null === f ? f = [t] : f.push(t), c++;
834
+ }
835
+ } else {
836
+ const t = { params: { type: "string" } };
837
+ null === f ? f = [t] : f.push(t), c++;
838
+ }
839
+ if (n !== c) break;
840
+ }
841
+ } else {
842
+ const t = { params: { type: "array" } };
843
+ null === f ? f = [t] : f.push(t), c++;
844
+ }
845
+ h = e === c, n = n || h;
846
+ }
847
+ if (!n) {
848
+ const t = { params: {} };
849
+ return null === f ? f = [t] : f.push(t), c++, u.errors = f, !1;
850
+ }
851
+ c = r, null !== f && (r ? f.length = r : f = null), y = e === c;
852
+ } else y = !0;
853
+ if (y) {
854
+ if (void 0 !== s.experiments) {
855
+ let t = s.experiments;
856
+ const e = c;
857
+ if (c === e) {
858
+ if (!t || "object" != typeof t || Array.isArray(t)) return u.errors = [{ params: { type: "object" } }], !1;
859
+ {
860
+ const e = c;
861
+ for (const e in t) if ("asyncStartup" !== e && "externalRuntime" !== e && "provideExternalRuntime" !== e) return u.errors = [{ params: { additionalProperty: e } }], !1;
862
+ if (e === c) {
863
+ if (void 0 !== t.asyncStartup) {
864
+ const e = c;
865
+ if ("boolean" != typeof t.asyncStartup) return u.errors = [{ params: { type: "boolean" } }], !1;
866
+ var d = e === c;
867
+ } else d = !0;
868
+ if (d) {
869
+ if (void 0 !== t.externalRuntime) {
870
+ const e = c;
871
+ if ("boolean" != typeof t.externalRuntime) return u.errors = [{ params: { type: "boolean" } }], !1;
872
+ d = e === c;
873
+ } else d = !0;
874
+ if (d) if (void 0 !== t.provideExternalRuntime) {
875
+ const e = c;
876
+ if ("boolean" != typeof t.provideExternalRuntime) return u.errors = [{ params: { type: "boolean" } }], !1;
877
+ d = e === c;
878
+ } else d = !0;
879
+ }
880
+ }
881
+ }
882
+ }
883
+ y = e === c;
884
+ } else y = !0;
885
+ if (y) {
886
+ if (void 0 !== s.dataPrefetch) {
887
+ const t = c;
888
+ if ("boolean" != typeof s.dataPrefetch) return u.errors = [{ params: { type: "boolean" } }], !1;
889
+ y = t === c;
890
+ } else y = !0;
891
+ if (y) if (void 0 !== s.runtimePlugins) {
892
+ let t = s.runtimePlugins;
893
+ const e = c;
894
+ if (c === e) {
895
+ if (!Array.isArray(t)) return u.errors = [{ params: { type: "array" } }], !1;
896
+ {
897
+ const e = t.length;
898
+ for (let r = 0; r < e; r++) {
899
+ let e = t[r];
900
+ const n = c, s = c;
901
+ let a = !1;
902
+ const o = c;
903
+ if ("string" != typeof e) {
904
+ const t = { params: { type: "string" } };
905
+ null === f ? f = [t] : f.push(t), c++;
906
+ }
907
+ var b = o === c;
908
+ if (a = a || b, !a) {
909
+ const t = c;
910
+ if (c === t) if (Array.isArray(e)) if (e.length > 2) {
911
+ const t = { params: { limit: 2 } };
912
+ null === f ? f = [t] : f.push(t), c++;
913
+ } else if (e.length < 2) {
914
+ const t = { params: { limit: 2 } };
915
+ null === f ? f = [t] : f.push(t), c++;
916
+ } else {
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;
934
+ }
935
+ }
936
+ else {
937
+ const t = { params: { type: "array" } };
938
+ null === f ? f = [t] : f.push(t), c++;
939
+ }
940
+ b = t === c, a = a || b;
941
+ }
942
+ if (!a) {
943
+ const t = { params: {} };
944
+ return null === f ? f = [t] : f.push(t), c++, u.errors = f, !1;
945
+ }
946
+ if (c = s, null !== f && (s ? f.length = s : f = null), n !== c) break;
947
+ }
948
+ }
949
+ }
950
+ y = e === c;
951
+ } else y = !0;
952
+ }
953
+ }
954
+ }
955
+ }
956
+ }
957
+ }
958
+ }
959
+ }
960
+ }
961
+ }
962
+ }
963
+ return u.errors = f, 0 === c;
1228
964
  }
965
+
966
+ //#endregion
967
+ exports.default = ContainerPlugin_check_default;
968
+ exports.validate = validate;
1229
969
  //# sourceMappingURL=ContainerPlugin.check.js.map