@module-federation/enhanced 0.0.0-perf-devtools-20260107043700 → 0.0.0-perf-website-code-usage-20260914033703

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 (289) hide show
  1. package/README.md +1 -1
  2. package/dist/CHANGELOG.md +2678 -0
  3. package/dist/README.md +213 -0
  4. package/dist/rstestmigrate.md +140 -0
  5. package/dist/src/_virtual/_rolldown/runtime.js +47 -0
  6. package/dist/src/index.d.ts +22 -18
  7. package/dist/src/index.js +47 -41
  8. package/dist/src/index.js.map +1 -1
  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 -196
  13. package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -1
  14. package/dist/src/lib/container/ContainerEntryDependency.d.ts +25 -23
  15. package/dist/src/lib/container/ContainerEntryDependency.js +37 -39
  16. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  17. package/dist/src/lib/container/ContainerEntryModule.d.ts +104 -79
  18. package/dist/src/lib/container/ContainerEntryModule.js +213 -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 +26 -23
  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 +144 -213
  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 +72 -101
  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 +124 -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 +151 -170
  49. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  50. package/dist/src/lib/container/RemoteModule.d.ts +83 -74
  51. package/dist/src/lib/container/RemoteModule.js +149 -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 -120
  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 +12 -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 +70 -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 +38 -46
  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 -18
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +263 -293
  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/normalizeToPosixPath.d.ts +5 -0
  87. package/dist/src/lib/container/runtime/normalizeToPosixPath.js +20 -0
  88. package/dist/src/lib/container/runtime/normalizeToPosixPath.js.map +1 -0
  89. package/dist/src/lib/container/runtime/utils.d.ts +22 -7
  90. package/dist/src/lib/container/runtime/utils.js +80 -102
  91. package/dist/src/lib/container/runtime/utils.js.map +1 -1
  92. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +15 -10
  93. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +27 -25
  94. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
  95. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +77 -67
  96. package/dist/src/lib/sharing/ConsumeSharedModule.js +190 -214
  97. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  98. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +13 -9
  99. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +308 -472
  100. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  101. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +16 -11
  102. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +108 -123
  103. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  104. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +14 -9
  105. package/dist/src/lib/sharing/ProvideForSharedDependency.js +25 -25
  106. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -1
  107. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +44 -38
  108. package/dist/src/lib/sharing/ProvideSharedDependency.js +72 -74
  109. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  110. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +91 -81
  111. package/dist/src/lib/sharing/ProvideSharedModule.js +177 -181
  112. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  113. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +14 -9
  114. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +19 -25
  115. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  116. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +27 -21
  117. package/dist/src/lib/sharing/ProvideSharedPlugin.js +341 -548
  118. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  119. package/dist/src/lib/sharing/SharePlugin.d.ts +55 -12
  120. package/dist/src/lib/sharing/SharePlugin.js +91 -91
  121. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  122. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
  123. package/dist/src/lib/sharing/ShareRuntimeModule.js +81 -99
  124. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  125. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +11 -7
  126. package/dist/src/lib/sharing/resolveMatchedConfigs.js +58 -71
  127. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  128. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.d.ts +25 -0
  129. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js +85 -0
  130. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js.map +1 -0
  131. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.d.ts +41 -0
  132. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js +227 -0
  133. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js.map +1 -0
  134. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts +26 -0
  135. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js +32 -0
  136. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js.map +1 -0
  137. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.d.ts +32 -0
  138. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js +94 -0
  139. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js.map +1 -0
  140. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.d.ts +31 -0
  141. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js +49 -0
  142. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js.map +1 -0
  143. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.d.ts +22 -0
  144. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js +35 -0
  145. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js.map +1 -0
  146. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.d.ts +87 -0
  147. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js +144 -0
  148. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js.map +1 -0
  149. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.d.ts +16 -0
  150. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js +23 -0
  151. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js.map +1 -0
  152. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.d.ts +23 -0
  153. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js +163 -0
  154. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js.map +1 -0
  155. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.d.ts +22 -0
  156. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js +28 -0
  157. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js.map +1 -0
  158. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.d.ts +20 -0
  159. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js +44 -0
  160. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js.map +1 -0
  161. package/dist/src/lib/sharing/utils.d.ts +27 -23
  162. package/dist/src/lib/sharing/utils.js +224 -366
  163. package/dist/src/lib/sharing/utils.js.map +1 -1
  164. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -7
  165. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +56 -75
  166. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
  167. package/dist/src/lib/startup/StartupHelpers.d.ts +11 -6
  168. package/dist/src/lib/startup/StartupHelpers.js +128 -178
  169. package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
  170. package/dist/src/rspack.d.ts +3 -2
  171. package/dist/src/rspack.js +35 -10
  172. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +8 -4
  173. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -16
  174. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -1
  175. package/dist/src/runtime.d.ts +1 -1
  176. package/dist/src/runtime.js +11 -18
  177. package/dist/src/runtime.mjs +3 -0
  178. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +13 -5
  179. package/dist/src/schemas/container/ContainerPlugin.check.js +767 -1220
  180. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  181. package/dist/src/schemas/container/ContainerPlugin.d.ts +267 -268
  182. package/dist/src/schemas/container/ContainerPlugin.js +269 -361
  183. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  184. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +13 -5
  185. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +335 -443
  186. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  187. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +102 -99
  188. package/dist/src/schemas/container/ContainerReferencePlugin.js +122 -162
  189. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  190. package/dist/src/schemas/container/ExternalsType.check.d.ts +13 -5
  191. package/dist/src/schemas/container/ExternalsType.check.js +36 -62
  192. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  193. package/dist/src/schemas/container/ExternalsType.d.ts +5 -2
  194. package/dist/src/schemas/container/ExternalsType.js +8 -11
  195. package/dist/src/schemas/container/ExternalsType.js.map +1 -1
  196. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3020 -4301
  197. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  198. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +828 -758
  199. package/dist/src/schemas/container/ModuleFederationPlugin.js +788 -993
  200. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  201. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +13 -5
  202. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +568 -739
  203. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  204. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +197 -189
  205. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +212 -233
  206. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  207. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +13 -5
  208. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +598 -775
  209. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  210. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +184 -176
  211. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +196 -224
  212. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  213. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +12 -4
  214. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +285 -482
  215. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  216. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +103 -100
  217. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +104 -126
  218. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  219. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +13 -5
  220. package/dist/src/schemas/sharing/SharePlugin.check.js +749 -794
  221. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  222. package/dist/src/schemas/sharing/SharePlugin.d.ts +245 -205
  223. package/dist/src/schemas/sharing/SharePlugin.js +256 -253
  224. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  225. package/dist/src/utils.d.ts +3 -0
  226. package/dist/src/utils.js +35 -26
  227. package/dist/src/utils.js.map +1 -1
  228. package/dist/src/webpack.d.ts +2 -2
  229. package/dist/src/webpack.js +6 -40
  230. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +9 -7
  231. package/dist/src/wrapper/AsyncBoundaryPlugin.js +13 -17
  232. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -1
  233. package/dist/src/wrapper/BaseWrapperPlugin.d.ts +32 -0
  234. package/dist/src/wrapper/BaseWrapperPlugin.js +43 -0
  235. package/dist/src/wrapper/BaseWrapperPlugin.js.map +1 -0
  236. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +10 -7
  237. package/dist/src/wrapper/ConsumeSharedPlugin.js +13 -17
  238. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -1
  239. package/dist/src/wrapper/ContainerPlugin.d.ts +9 -7
  240. package/dist/src/wrapper/ContainerPlugin.js +13 -17
  241. package/dist/src/wrapper/ContainerPlugin.js.map +1 -1
  242. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +9 -7
  243. package/dist/src/wrapper/ContainerReferencePlugin.js +13 -17
  244. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -1
  245. package/dist/src/wrapper/FederationModulesPlugin.d.ts +18 -10
  246. package/dist/src/wrapper/FederationModulesPlugin.js +20 -21
  247. package/dist/src/wrapper/FederationModulesPlugin.js.map +1 -1
  248. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +11 -8
  249. package/dist/src/wrapper/FederationRuntimePlugin.js +19 -20
  250. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -1
  251. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +8 -5
  252. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +13 -16
  253. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
  254. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +12 -9
  255. package/dist/src/wrapper/ModuleFederationPlugin.js +71 -104
  256. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
  257. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +10 -7
  258. package/dist/src/wrapper/ProvideSharedPlugin.js +13 -17
  259. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -1
  260. package/dist/src/wrapper/SharePlugin.d.ts +10 -7
  261. package/dist/src/wrapper/SharePlugin.js +13 -17
  262. package/dist/src/wrapper/SharePlugin.js.map +1 -1
  263. package/dist/src/wrapper/TreeShakingSharedPlugin.d.ts +10 -0
  264. package/dist/src/wrapper/TreeShakingSharedPlugin.js +15 -0
  265. package/dist/src/wrapper/TreeShakingSharedPlugin.js.map +1 -0
  266. package/package.json +27 -29
  267. package/dist/package.json +0 -110
  268. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
  269. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
  270. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
  271. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
  272. package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
  273. package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -33
  274. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +0 -82
  275. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -96
  276. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -98
  277. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -108
  278. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +0 -20
  279. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +0 -219
  280. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +0 -1
  281. package/dist/src/prefetch.d.ts +0 -2
  282. package/dist/src/prefetch.js +0 -8
  283. package/dist/src/prefetch.js.map +0 -1
  284. package/dist/src/rspack.js.map +0 -1
  285. package/dist/src/runtime.js.map +0 -1
  286. package/dist/src/types/runtime.d.ts +0 -10
  287. package/dist/src/types/runtime.js +0 -3
  288. package/dist/src/types/runtime.js.map +0 -1
  289. package/dist/src/webpack.js.map +0 -1
@@ -1,1229 +1,776 @@
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
- */
10
- const t = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
11
- exports.validate = u;
12
- exports.default = u;
13
- 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;
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
5
+ const r = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
6
+ const validate = f;
7
+ var ContainerPlugin_check_default = f;
8
+ const t = { anyOf: [{ enum: [!1] }, {
9
+ type: "string",
10
+ minLength: 1
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;
14
+ {
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;
22
+ }
23
+ }
24
+ return e.errors = null, !0;
209
25
  }
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;
26
+ function n(r, { instancePath: t = "", parentData: s, parentDataProperty: a, rootData: o = r } = {}) {
27
+ let i = null, l = 0;
28
+ if (0 === l) {
29
+ if (!r || "object" != typeof r || Array.isArray(r)) return n.errors = [{ params: { type: "object" } }], !1;
30
+ {
31
+ let s;
32
+ if (void 0 === r.import && (s = "import")) return n.errors = [{ params: { missingProperty: s } }], !1;
33
+ {
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++;
46
+ }
47
+ } else {
48
+ const r = { params: { type: "string" } };
49
+ null === i ? i = [r] : i.push(r), l++;
50
+ }
51
+ var p = m === l;
52
+ if (c = c || p, !c) {
53
+ const n = l;
54
+ e(s, {
55
+ instancePath: t + "/import",
56
+ parentData: r,
57
+ parentDataProperty: "import",
58
+ rootData: o
59
+ }) || (i = null === i ? e.errors : i.concat(e.errors), l = i.length), p = n === l, c = c || p;
60
+ }
61
+ if (!c) {
62
+ const r = { params: {} };
63
+ return null === i ? i = [r] : i.push(r), l++, n.errors = i, !1;
64
+ }
65
+ l = u, null !== i && (u ? i.length = u : i = null);
66
+ var f = a === l;
67
+ } else f = !0;
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;
72
+ } else f = !0;
73
+ }
74
+ }
75
+ }
76
+ }
77
+ return n.errors = i, 0 === l;
278
78
  }
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;
79
+ function s(r, { instancePath: t = "", parentData: a, parentDataProperty: o, rootData: i = r } = {}) {
80
+ let l = null, p = 0;
81
+ if (0 === p) {
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;
87
+ const y = p;
88
+ n(o, {
89
+ instancePath: t + "/" + a.replace(/~/g, "~0").replace(/\//g, "~1"),
90
+ parentData: r,
91
+ parentDataProperty: a,
92
+ rootData: i
93
+ }) || (l = null === l ? n.errors : l.concat(n.errors), p = l.length);
94
+ var f = y === p;
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++;
101
+ }
102
+ } else {
103
+ const r = { params: { type: "string" } };
104
+ null === l ? l = [r] : l.push(r), p++;
105
+ }
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,
112
+ rootData: i
113
+ }) || (l = null === l ? e.errors : l.concat(e.errors), p = l.length), f = n === p, m = m || f;
114
+ }
115
+ }
116
+ if (!m) {
117
+ const r = { params: {} };
118
+ return null === l ? l = [r] : l.push(r), p++, s.errors = l, !1;
119
+ }
120
+ if (p = c, null !== l && (c ? l.length = c : l = null), u !== p) break;
121
+ }
122
+ }
123
+ return s.errors = l, 0 === p;
331
124
  }
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);
125
+ function a(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: o = r } = {}) {
126
+ let i = null, l = 0;
127
+ const p = l;
128
+ let f = !1;
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;
135
+ let f = !1;
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++;
141
+ }
142
+ } else {
143
+ const r = { params: { type: "string" } };
144
+ null === i ? i = [r] : i.push(r), l++;
145
+ }
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,
152
+ parentDataProperty: n,
153
+ rootData: o
154
+ }) || (i = null === i ? s.errors : i.concat(s.errors), l = i.length), c = a === l, f = f || c;
155
+ }
156
+ if (f) l = p, null !== i && (p ? i.length = p : i = null);
157
+ else {
158
+ const r = { params: {} };
159
+ null === i ? i = [r] : i.push(r), l++;
160
+ }
161
+ if (a !== l) break;
162
+ }
163
+ } else {
164
+ const r = { params: { type: "array" } };
165
+ null === i ? i = [r] : i.push(r), l++;
166
+ }
167
+ var m = u === l;
168
+ if (f = f || m, !f) {
169
+ const a = l;
170
+ s(r, {
171
+ instancePath: t,
172
+ parentData: e,
173
+ parentDataProperty: n,
174
+ rootData: o
175
+ }) || (i = null === i ? s.errors : i.concat(s.errors), l = i.length), m = a === l, f = f || m;
176
+ }
177
+ if (!f) {
178
+ const r = { params: {} };
179
+ return null === i ? i = [r] : i.push(r), l++, a.errors = i, !1;
180
+ }
181
+ return l = p, null !== i && (p ? i.length = p : i = null), a.errors = i, 0 === l;
403
182
  }
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);
183
+ const o = { anyOf: [{ enum: [
184
+ "var",
185
+ "module",
186
+ "assign",
187
+ "assign-properties",
188
+ "this",
189
+ "window",
190
+ "self",
191
+ "global",
192
+ "commonjs",
193
+ "commonjs2",
194
+ "commonjs-module",
195
+ "commonjs-static",
196
+ "amd",
197
+ "amd-require",
198
+ "umd",
199
+ "umd2",
200
+ "jsonp",
201
+ "system"
202
+ ] }, { type: "string" }] };
203
+ function i(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: s = r } = {}) {
204
+ let a = null, o = 0;
205
+ const l = o;
206
+ let p = !1;
207
+ const f = o;
208
+ if ("string" != typeof r) {
209
+ const r = { params: { type: "string" } };
210
+ null === a ? a = [r] : a.push(r), o++;
211
+ }
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++;
220
+ break;
221
+ }
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++;
228
+ }
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++;
237
+ }
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++;
246
+ }
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++;
254
+ }
255
+ c = t === o;
256
+ } else c = !0;
257
+ }
258
+ }
259
+ }
260
+ } else {
261
+ const r = { params: { type: "object" } };
262
+ null === a ? a = [r] : a.push(r), o++;
263
+ }
264
+ u = t === o, p = p || u;
265
+ }
266
+ if (!p) {
267
+ const r = { params: {} };
268
+ return null === a ? a = [r] : a.push(r), o++, i.errors = a, !1;
269
+ }
270
+ return o = l, null !== a && (l ? a.length = l : a = null), i.errors = a, 0 === o;
517
271
  }
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);
272
+ function l(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: s = r } = {}) {
273
+ let a = null, o = 0;
274
+ const i = o;
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++;
280
+ } else {
281
+ const t = r.length;
282
+ for (let e = 0; e < t; e++) {
283
+ let t = r[e];
284
+ const n = o;
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++;
289
+ }
290
+ } else {
291
+ const r = { params: { type: "string" } };
292
+ null === a ? a = [r] : a.push(r), o++;
293
+ }
294
+ if (n !== o) break;
295
+ }
296
+ }
297
+ else {
298
+ const r = { params: { type: "array" } };
299
+ null === a ? a = [r] : a.push(r), o++;
300
+ }
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++;
308
+ }
309
+ } else {
310
+ const r = { params: { type: "string" } };
311
+ null === a ? a = [r] : a.push(r), o++;
312
+ }
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++;
320
+ break;
321
+ }
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++;
330
+ }
331
+ } else {
332
+ const r = { params: { type: "string" } };
333
+ null === a ? a = [r] : a.push(r), o++;
334
+ }
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++;
345
+ }
346
+ } else {
347
+ const r = { params: { type: "string" } };
348
+ null === a ? a = [r] : a.push(r), o++;
349
+ }
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;
355
+ let s = !1;
356
+ const i = o;
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];
361
+ const n = o;
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++;
366
+ }
367
+ } else {
368
+ const r = { params: { type: "string" } };
369
+ null === a ? a = [r] : a.push(r), o++;
370
+ }
371
+ if (n !== o) break;
372
+ }
373
+ } else {
374
+ const r = { params: { type: "array" } };
375
+ null === a ? a = [r] : a.push(r), o++;
376
+ }
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++;
384
+ }
385
+ } else {
386
+ const r = { params: { type: "string" } };
387
+ null === a ? a = [r] : a.push(r), o++;
388
+ }
389
+ m = r === o, s = s || m;
390
+ }
391
+ if (s) o = n, null !== a && (n ? a.length = n : a = null);
392
+ else {
393
+ const r = { params: {} };
394
+ null === a ? a = [r] : a.push(r), o++;
395
+ }
396
+ c = e === o;
397
+ } else c = !0;
398
+ }
399
+ }
400
+ } else {
401
+ const r = { params: { type: "object" } };
402
+ null === a ? a = [r] : a.push(r), o++;
403
+ }
404
+ u = t === o, p = p || u;
405
+ }
406
+ }
407
+ if (!p) {
408
+ const r = { params: {} };
409
+ return null === a ? a = [r] : a.push(r), o++, l.errors = a, !1;
410
+ }
411
+ return o = i, null !== a && (i ? a.length = i : a = null), l.errors = a, 0 === o;
691
412
  }
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;
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;
417
+ {
418
+ let e;
419
+ if (void 0 === r.type && (e = "type")) return p.errors = [{ params: { missingProperty: e } }], !1;
420
+ {
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;
430
+ }
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,
439
+ parentDataProperty: "auxiliaryComment",
440
+ rootData: s
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;
447
+ let s = !1;
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++;
458
+ }
459
+ } else {
460
+ const r = { params: { type: "string" } };
461
+ null === a ? a = [r] : a.push(r), f++;
462
+ }
463
+ if (n !== f) break;
464
+ }
465
+ } else {
466
+ const r = { params: { type: "array" } };
467
+ null === a ? a = [r] : a.push(r), f++;
468
+ }
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++;
476
+ }
477
+ } else {
478
+ const r = { params: { type: "string" } };
479
+ null === a ? a = [r] : a.push(r), f++;
480
+ }
481
+ c = r === f, s = s || c;
482
+ }
483
+ if (!s) {
484
+ const r = { params: {} };
485
+ return null === a ? a = [r] : a.push(r), f++, p.errors = a, !1;
486
+ }
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,
495
+ parentDataProperty: "name",
496
+ rootData: s
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;
503
+ let s = !1;
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++;
508
+ }
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++;
515
+ }
516
+ m = r === f, s = s || m;
517
+ }
518
+ if (!s) {
519
+ const r = { params: {} };
520
+ return null === a ? a = [r] : a.push(r), f++, p.errors = a, !1;
521
+ }
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;
529
+ }
530
+ }
531
+ }
532
+ }
533
+ }
534
+ }
535
+ }
536
+ }
537
+ return p.errors = a, 0 === f;
879
538
  }
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;
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;
543
+ {
544
+ let s;
545
+ if (void 0 === e.name && (s = "name") || void 0 === e.exposes && (s = "exposes")) return f.errors = [{ params: { missingProperty: s } }], !1;
546
+ {
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,
555
+ parentDataProperty: "exposes",
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;
568
+ }
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,
577
+ parentDataProperty: "library",
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;
588
+ }
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;
595
+ let a = !1;
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++;
600
+ }
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++;
608
+ }
609
+ } else {
610
+ const r = { params: { type: "string" } };
611
+ null === l ? l = [r] : l.push(r), u++;
612
+ }
613
+ m = t === u, a = a || m;
614
+ }
615
+ if (!a) {
616
+ const r = { params: {} };
617
+ return null === l ? l = [r] : l.push(r), u++, f.errors = l, !1;
618
+ }
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++;
631
+ }
632
+ } else {
633
+ const r = { params: { type: "string" } };
634
+ null === l ? l = [r] : l.push(r), u++;
635
+ }
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++;
648
+ }
649
+ } else {
650
+ const r = { params: { type: "string" } };
651
+ null === l ? l = [r] : l.push(r), u++;
652
+ }
653
+ if (n !== u) break;
654
+ }
655
+ } else {
656
+ const r = { params: { type: "array" } };
657
+ null === l ? l = [r] : l.push(r), u++;
658
+ }
659
+ y = t === u, s = s || y;
660
+ }
661
+ if (!s) {
662
+ const r = { params: {} };
663
+ return null === l ? l = [r] : l.push(r), u++, f.errors = l, !1;
664
+ }
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;
673
+ {
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;
693
+ }
694
+ }
695
+ }
696
+ }
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++;
731
+ }
732
+ var d = r === u;
733
+ }
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;
742
+ }
743
+ }
744
+ else {
745
+ const r = { params: { type: "array" } };
746
+ null === l ? l = [r] : l.push(r), u++;
747
+ }
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;
753
+ }
754
+ if (u = s, null !== l && (s ? l.length = s : l = null), n !== u) break;
755
+ }
756
+ }
757
+ }
758
+ c = t === u;
759
+ } else c = !0;
760
+ }
761
+ }
762
+ }
763
+ }
764
+ }
765
+ }
766
+ }
767
+ }
768
+ }
769
+ }
770
+ return f.errors = l, 0 === u;
1228
771
  }
772
+
773
+ //#endregion
774
+ exports.default = ContainerPlugin_check_default;
775
+ exports.validate = validate;
1229
776
  //# sourceMappingURL=ContainerPlugin.check.js.map