webpack 5.112.0 → 5.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/webpack.js +13 -7
- package/lib/Compilation.js +152 -60
- package/lib/Compiler.js +12 -25
- package/lib/asset/AssetBytesGenerator.js +14 -6
- package/lib/asset/AssetBytesParser.js +10 -8
- package/lib/asset/AssetGenerator.js +36 -48
- package/lib/asset/AssetModule.js +11 -0
- package/lib/asset/AssetModulesPlugin.js +5 -4
- package/lib/asset/AssetParser.js +8 -8
- package/lib/asset/AssetSourceGenerator.js +16 -8
- package/lib/asset/AssetSourceParser.js +10 -8
- package/lib/asset/WebManifestGenerator.js +11 -6
- package/lib/asset/WebManifestParser.js +3 -3
- package/lib/async-modules/AsyncModuleHelpers.js +8 -2
- package/lib/async-modules/InferAsyncModulesPlugin.js +7 -2
- package/lib/cache/CacheFacade.js +1 -1
- package/lib/cache/PackFileCacheStrategy.js +6 -10
- package/lib/cache/ResolverCachePlugin.js +58 -8
- package/lib/config/WebpackOptionsApply.js +8 -28
- package/lib/config/cli.js +9 -6
- package/lib/config/defaults.js +24 -13
- package/lib/config/getClaimedAssetTypes.js +2 -2
- package/lib/config/target.js +1 -1
- package/lib/context/ContextModule.js +1 -1
- package/lib/context/ContextModuleFactory.js +1 -1
- package/lib/context/ContextReplacementPlugin.js +3 -9
- package/lib/css/CssGenerator.js +40 -37
- package/lib/css/CssModule.js +10 -0
- package/lib/css/CssModulesPlugin.js +2 -2
- package/lib/css/CssParser.js +33 -32
- package/lib/css/conventions.js +1 -1
- package/lib/css/data.js +224 -219
- package/lib/css/syntax-parser.js +1159 -298
- package/lib/css/syntax-printer.js +90 -35
- package/lib/debug/ProfilingPlugin.js +65 -43
- package/lib/define/DefinePlugin.js +10 -15
- package/lib/define/DotenvPlugin.js +10 -6
- package/lib/define/EnvironmentPlugin.js +4 -2
- package/lib/dependencies/amd/AMDDefineDependencyParserPlugin.js +1 -2
- package/lib/dependencies/amd/AMDRequireDependenciesBlockParserPlugin.js +4 -1
- package/lib/dependencies/commonjs/CommonJsExportRequireDependency.js +1 -4
- package/lib/dependencies/commonjs/CommonJsExportsParserPlugin.js +18 -33
- package/lib/dependencies/commonjs/CommonJsImportsParserPlugin.js +1 -3
- package/lib/dependencies/commonjs/CommonJsObjectExportDependency.js +4 -4
- package/lib/dependencies/commonjs/CommonJsPlugin.js +2 -5
- package/lib/dependencies/commonjs/RequireEnsureDependenciesBlockParserPlugin.js +4 -1
- package/lib/dependencies/context/ImportMetaContextDependencyParserPlugin.js +1 -2
- package/lib/dependencies/context/ImportMetaGlobDependencyParserPlugin.js +4 -7
- package/lib/dependencies/context/ImportMetaGlobHelpers.js +8 -10
- package/lib/dependencies/core/CachedConstDependency.js +9 -6
- package/lib/dependencies/css/CssIcssExportDependency.js +6 -7
- package/lib/dependencies/css/CssIcssImportDependency.js +1 -3
- package/lib/dependencies/css/CssUrlDependency.js +2 -6
- package/lib/dependencies/esm/ESMDetectionParserPlugin.js +2 -4
- package/lib/dependencies/esm/ESMExportExpressionDependency.js +2 -2
- package/lib/dependencies/esm/ESMExportImportedSpecifierDependency.js +16 -18
- package/lib/dependencies/esm/ESMExportSpecifierDependency.js +20 -3
- package/lib/dependencies/esm/ESMExports.js +2 -10
- package/lib/dependencies/esm/ESMImportDependency.js +17 -2
- package/lib/dependencies/esm/ESMImportDependencyParserPlugin.js +6 -17
- package/lib/dependencies/esm/ESMImportGuard.js +11 -23
- package/lib/dependencies/esm/ESMImportSideEffectDependency.js +1 -1
- package/lib/dependencies/esm/ESMImportSpecifierDependency.js +4 -1
- package/lib/dependencies/esm/ESMLiveExportDependency.js +311 -0
- package/lib/dependencies/esm/ESMLiveExportParserPlugin.js +862 -0
- package/lib/dependencies/esm/ESMModulesPlugin.js +1 -3
- package/lib/dependencies/esm/TopLevelAwaitDependency.js +1 -8
- package/lib/dependencies/helpers/DynamicExports.js +4 -6
- package/lib/dependencies/html/HtmlEntryDependency.js +5 -14
- package/lib/dependencies/html/HtmlInlineHtmlDependency.js +1 -4
- package/lib/dependencies/html/HtmlInlineScriptDependency.js +2 -6
- package/lib/dependencies/html/HtmlInlineStyleDependency.js +1 -4
- package/lib/dependencies/import/ImportParserPlugin.js +3 -6
- package/lib/dependencies/import-meta/ImportMetaPlugin.js +4 -6
- package/lib/dependencies/url/URLParserPlugin.js +1 -1
- package/lib/dependencies/worker/WorkerAndWorkletPlugin.js +51 -20
- package/lib/devtool/ModuleFilenameHelpers.js +1 -1
- package/lib/devtool/SourceMapDevToolPlugin.js +1 -1
- package/lib/dll/DelegatedModule.js +3 -3
- package/lib/dll/DllModule.js +3 -1
- package/lib/dll/DllReferencePlugin.js +1 -4
- package/lib/errors/AbstractMethodError.js +1 -1
- package/lib/errors/ErrorHelpers.js +2 -1
- package/lib/errors/HookWebpackError.js +2 -1
- package/lib/errors/JSONParseError.js +4 -4
- package/lib/errors/WebpackError.js +3 -2
- package/lib/esm/ModuleChunkFormatPlugin.js +36 -1
- package/lib/externals/ExternalModule.js +12 -9
- package/lib/externals/ExternalModuleFactoryPlugin.js +1 -2
- package/lib/externals/ExternalsPlugin.js +1 -1
- package/lib/fs/FileSystemInfo.js +4 -4
- package/lib/graph/AsyncDependenciesBlock.js +1 -1
- package/lib/graph/ChunkGraph.js +5 -0
- package/lib/graph/Dependency.js +8 -2
- package/lib/graph/ExportsInfo.js +1 -1
- package/lib/graph/ModuleGraph.js +14 -3
- package/lib/graph/buildChunkGraph.js +17 -19
- package/lib/graph/findGraphRoots.js +1 -1
- package/lib/hmr/HotModuleReplacement.runtime.js +10 -9
- package/lib/hmr/HotModuleReplacementPlugin.js +5 -11
- package/lib/hmr/JavascriptHotModuleReplacement.runtime.js +16 -19
- package/lib/hmr/LazyCompilationPlugin.js +1 -7
- package/lib/html/HtmlGenerator.js +25 -17
- package/lib/html/HtmlModule.js +11 -1
- package/lib/html/HtmlModulesPlugin.js +12 -11
- package/lib/html/HtmlParser.js +10 -9
- package/lib/html/builtinEmbeddedRenderer.js +31 -33
- package/lib/html/data.js +42 -21
- package/lib/html/htmlMinify.js +4 -1
- package/lib/html/syntax-parser.js +34 -35
- package/lib/html/syntax-printer.js +2 -3
- package/lib/html/xmlMinify.js +4 -1
- package/lib/ids/HashedModuleIdsPlugin.js +1 -1
- package/lib/index.js +13 -12
- package/lib/javascript/APIPlugin.js +7 -13
- package/lib/javascript/BasicEvaluatedExpression.js +5 -5
- package/lib/javascript/CommonJsChunkFormatPlugin.js +2 -7
- package/lib/javascript/ConstPlugin.js +1 -1
- package/lib/javascript/JavascriptGenerator.js +16 -11
- package/lib/javascript/JavascriptMetaInfoPlugin.js +3 -15
- package/lib/javascript/JavascriptModule.js +10 -0
- package/lib/javascript/JavascriptModulesPlugin.js +2 -4
- package/lib/javascript/JavascriptParser.js +99 -11
- package/lib/javascript/ScopeAnalyzer.js +183 -107
- package/lib/javascript/UseStrictPlugin.js +2 -5
- package/lib/javascript/jsMinify.js +1 -1
- package/lib/javascript/regexp.js +2 -2
- package/lib/javascript/syntax-parser.js +2114 -1506
- package/lib/javascript/syntax-printer-data.js +167 -1
- package/lib/javascript/syntax-printer.js +9554 -2782
- package/lib/json/JsonGenerator.js +15 -7
- package/lib/json/JsonModule.js +11 -0
- package/lib/json/JsonParser.js +7 -6
- package/lib/library/AssignLibraryPlugin.js +1 -1
- package/lib/library/JsonpLibraryPlugin.js +1 -1
- package/lib/library/ModuleLibraryPlugin.js +399 -23
- package/lib/loaders/LoaderRunner.js +76 -38
- package/lib/loaders/loadLoader.js +16 -10
- package/lib/module/Generator.js +17 -9
- package/lib/module/Module.js +2 -2
- package/lib/module/NormalModule.js +7 -5
- package/lib/module/NormalModuleFactory.js +11 -17
- package/lib/module/Parser.js +9 -2
- package/lib/module/extractSourceMap.js +69 -18
- package/lib/module/findCaseMismatch.js +2 -2
- package/lib/node/ExternalModuleInitFragment.js +2 -2
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +4 -12
- package/lib/node/ReadFileCompileWasmPlugin.js +2 -6
- package/lib/node/nodeConsole.js +4 -3
- package/lib/optimize/CircularModulesPlugin.js +1 -1
- package/lib/optimize/ConcatenatedModule.js +2 -6
- package/lib/optimize/FlagDependencyExportsPlugin.js +6 -11
- package/lib/optimize/FlagDependencyUsagePlugin.js +28 -3
- package/lib/optimize/InlineExports.js +4 -7
- package/lib/optimize/LazyBarrels.js +41 -5
- package/lib/optimize/ModuleConcatenationPlugin.js +8 -10
- package/lib/optimize/RealContentHashPlugin.js +2 -6
- package/lib/optimize/SideEffectsFlagPlugin.js +7 -21
- package/lib/optimize/SplitChunksPlugin.js +11 -24
- package/lib/optimize/TupleQueue.js +1 -1
- package/lib/output/CleanPlugin.js +3 -1
- package/lib/output/CopyPlugin.js +3 -4
- package/lib/performance/EvalUsagePlugin.js +1 -3
- package/lib/performance/HotspotsPlugin.js +33 -9
- package/lib/performance/PureAnnotationsPlugin.js +16 -10
- package/lib/performance/TopLevelThisPlugin.js +17 -9
- package/lib/prefetch/ResourceHintPlugin.js +1 -1
- package/lib/provide/ProvidedDependency.js +36 -4
- package/lib/rules/BasicEffectRulePlugin.js +1 -1
- package/lib/rules/RuleSetCompiler.js +15 -5
- package/lib/rules/UseEffectRulePlugin.js +1 -3
- package/lib/runtime/AsyncModuleRuntimeModule.js +7 -1
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +1 -5
- package/lib/runtime/RuntimeGlobals.js +6 -0
- package/lib/runtime/RuntimePlugin.js +2 -0
- package/lib/schemes/HttpUriPlugin.js +1 -2
- package/lib/schemes/VirtualUrlPlugin.js +3 -1
- package/lib/serialization/AggregateErrorSerializer.js +3 -3
- package/lib/serialization/BinaryMiddleware.js +4 -1
- package/lib/serialization/ErrorObjectSerializer.js +2 -5
- package/lib/serialization/ObjectMiddleware.js +17 -15
- package/lib/serialization/PlainObjectSerializer.js +3 -7
- package/lib/serialization/Serializer.js +21 -11
- package/lib/serialization/SerializerMiddleware.js +8 -6
- package/lib/stats/DefaultStatsFactoryPlugin.js +35 -35
- package/lib/stats/DefaultStatsPresetPlugin.js +2 -6
- package/lib/stats/DefaultStatsPrinterPlugin.js +12 -11
- package/lib/stats/StatsFactory.js +194 -24
- package/lib/stats/StatsPrinter.js +126 -13
- package/lib/template/DependencyTemplate.js +1 -1
- package/lib/template/RuntimeTemplate.js +13 -32
- package/lib/template/Template.js +1 -1
- package/lib/util/SourceProcessor.js +98 -15
- package/lib/util/WeakTupleMap.js +10 -4
- package/lib/util/cleverMerge.js +61 -33
- package/lib/util/comparators.js +9 -5
- package/lib/util/dataURL.js +2 -0
- package/lib/util/deprecation.js +4 -3
- package/lib/util/globUtils.js +1 -4
- package/lib/util/internalSerializables.js +2 -0
- package/lib/util/makeSerializable.js +6 -4
- package/lib/util/memoize.js +1 -1
- package/lib/util/parseJson.js +2 -2
- package/lib/util/serialization.js +31 -27
- package/lib/wasm/AsyncWasmModule.js +12 -2
- package/lib/wasm/AsyncWebAssemblyGenerator.js +12 -4
- package/lib/wasm/AsyncWebAssemblyJavascriptGenerator.js +13 -5
- package/lib/wasm/AsyncWebAssemblyParser.js +7 -5
- package/lib/wasm/UniversalCompileAsyncWasmPlugin.js +2 -6
- package/lib/wasm-sync/SyncWasmModule.js +16 -1
- package/lib/wasm-sync/WebAssemblyGenerator.js +15 -10
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +13 -5
- package/lib/wasm-sync/WebAssemblyParser.js +10 -12
- package/lib/web/FetchCompileAsyncWasmPlugin.js +4 -12
- package/lib/web/FetchCompileWasmPlugin.js +2 -6
- package/package.json +16 -18
- package/schemas/WebpackOptions.check.js +3 -3
- package/schemas/WebpackOptions.json +2 -2
- package/schemas/plugins/BannerPlugin.check.js +3 -3
- package/schemas/plugins/HtmlGeneratorOptions.check.js +3 -3
- package/schemas/plugins/HtmlParserOptions.check.js +3 -3
- package/schemas/plugins/IgnorePlugin.check.js +3 -3
- package/schemas/plugins/LoaderOptionsPlugin.check.js +3 -3
- package/schemas/plugins/ManifestPlugin.check.js +3 -3
- package/schemas/plugins/ProgressPlugin.check.js +3 -3
- package/schemas/plugins/SSRManifestPlugin.check.js +3 -3
- package/schemas/plugins/SourceMapDevToolPlugin.check.js +3 -3
- package/schemas/plugins/WatchIgnorePlugin.check.js +3 -3
- package/schemas/plugins/asset/AssetGeneratorOptions.check.js +3 -3
- package/schemas/plugins/asset/AssetInlineGeneratorOptions.check.js +3 -3
- package/schemas/plugins/asset/AssetParserOptions.check.js +3 -3
- package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js +3 -3
- package/schemas/plugins/container/ContainerPlugin.check.js +3 -3
- package/schemas/plugins/container/ContainerReferencePlugin.check.js +3 -3
- package/schemas/plugins/container/ExternalsType.check.js +3 -3
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +3 -3
- package/schemas/plugins/css/CssAutoOrModuleParserOptions.check.js +3 -3
- package/schemas/plugins/css/CssGeneratorOptions.check.js +3 -3
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +3 -3
- package/schemas/plugins/css/CssModuleParserOptions.check.js +3 -3
- package/schemas/plugins/css/CssParserOptions.check.js +3 -3
- package/schemas/plugins/debug/ProfilingPlugin.check.js +3 -3
- package/schemas/plugins/define/DotenvPluginOptions.check.js +7 -0
- package/schemas/plugins/define/DotenvPluginOptions.json +3 -0
- package/schemas/plugins/dll/DllPlugin.check.js +3 -3
- package/schemas/plugins/dll/DllReferencePlugin.check.js +3 -3
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.js +3 -3
- package/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.js +3 -3
- package/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.js +3 -3
- package/schemas/plugins/json/JsonModulesPluginGenerator.check.js +3 -3
- package/schemas/plugins/json/JsonModulesPluginParser.check.js +3 -3
- package/schemas/plugins/optimize/AggressiveSplittingPlugin.check.js +3 -3
- package/schemas/plugins/optimize/LimitChunkCountPlugin.check.js +3 -3
- package/schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.js +3 -3
- package/schemas/plugins/optimize/MinChunkSizePlugin.check.js +3 -3
- package/schemas/plugins/output/CleanOptions.check.js +7 -0
- package/schemas/plugins/output/CleanOptions.json +3 -0
- package/schemas/plugins/schemes/HttpUriPlugin.check.js +3 -3
- package/schemas/plugins/schemes/VirtualUrlPlugin.check.js +3 -3
- package/schemas/plugins/sharing/ConsumeSharedPlugin.check.js +3 -3
- package/schemas/plugins/sharing/ProvideSharedPlugin.check.js +3 -3
- package/schemas/plugins/sharing/SharePlugin.check.js +3 -3
- package/types.d.ts +1482 -358
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
/*
|
|
3
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
4
5
|
* DO NOT MODIFY BY HAND.
|
|
5
|
-
* Run `yarn fix:special` to update
|
|
6
6
|
*/
|
|
7
|
-
const r=/^(?:file:(?=\/))?(?:[A-Za-z]:[\\/]|\\\\|\/)/i;function t(r,{instancePath:e="",parentData:n,parentDataProperty:s,rootData:a=r}={}){if(!Array.isArray(r))return t.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let n=0;n<e;n++){let e=r[n];const s=0;if("string"!=typeof e)return t.errors=[{params:{type:"string"}}],!1;if(e.length<1)return t.errors=[{params:{}}],!1;if(0!==s)break}}return t.errors=null,!0}function e(r,{instancePath:n="",parentData:s,parentDataProperty:a,rootData:o=r}={}){let i=null,l=0;if(0===l){if(!r||"object"!=typeof r||Array.isArray(r))return e.errors=[{params:{type:"object"}}],!1;{let s;if(void 0===r.import&&(s="import"))return e.errors=[{params:{missingProperty:s}}],!1;{const s=l;for(const t in r)if("import"!==t&&"name"!==t)return e.errors=[{params:{additionalProperty:t}}],!1;if(s===l){if(void 0!==r.import){let s=r.import;const a=l,u=l;let c=!1;const m=l;if(l==l)if("string"==typeof s){if(s.length<1){const r={params:{}};null===i?i=[r]:i.push(r),l++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),l++}var p=m===l;if(c=c||p,!c){const e=l;t(s,{instancePath:n+"/import",parentData:r,parentDataProperty:"import",rootData:o})||(i=null===i?t.errors:i.concat(t.errors),l=i.length),p=e===l,c=c||p}if(!c){const r={params:{}};return null===i?i=[r]:i.push(r),l++,e.errors=i,!1}l=u,null!==i&&(u?i.length=u:i=null);var f=a===l}else f=!0;if(f)if(void 0!==r.name){const t=l;if("string"!=typeof r.name)return e.errors=[{params:{type:"string"}}],!1;f=t===l}else f=!0}}}}return e.errors=i,0===l}function n(r,{instancePath:s="",parentData:a,parentDataProperty:o,rootData:i=r}={}){let l=null,p=0;if(0===p){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;for(const a in r){let o=r[a];const u=p,c=p;let m=!1;const y=p;e(o,{instancePath:s+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:a,rootData:i})||(l=null===l?e.errors:l.concat(e.errors),p=l.length);var f=y===p;if(m=m||f,!m){const e=p;if(p==p)if("string"==typeof o){if(o.length<1){const r={params:{}};null===l?l=[r]:l.push(r),p++}}else{const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}if(f=e===p,m=m||f,!m){const e=p;t(o,{instancePath:s+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:a,rootData:i})||(l=null===l?t.errors:l.concat(t.errors),p=l.length),f=e===p,m=m||f}}if(!m){const r={params:{}};return null===l?l=[r]:l.push(r),p++,n.errors=l,!1}if(p=c,null!==l&&(c?l.length=c:l=null),u!==p)break}}return n.errors=l,0===p}function s(r,{instancePath:t="",parentData:e,parentDataProperty:a,rootData:o=r}={}){let i=null,l=0;const p=l;let f=!1;const u=l;if(l===u)if(Array.isArray(r)){const e=r.length;for(let s=0;s<e;s++){let e=r[s];const a=l,p=l;let f=!1;const u=l;if(l==l)if("string"==typeof e){if(e.length<1){const r={params:{}};null===i?i=[r]:i.push(r),l++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),l++}var c=u===l;if(f=f||c,!f){const a=l;n(e,{instancePath:t+"/"+s,parentData:r,parentDataProperty:s,rootData:o})||(i=null===i?n.errors:i.concat(n.errors),l=i.length),c=a===l,f=f||c}if(f)l=p,null!==i&&(p?i.length=p:i=null);else{const r={params:{}};null===i?i=[r]:i.push(r),l++}if(a!==l)break}}else{const r={params:{type:"array"}};null===i?i=[r]:i.push(r),l++}var m=u===l;if(f=f||m,!f){const s=l;n(r,{instancePath:t,parentData:e,parentDataProperty:a,rootData:o})||(i=null===i?n.errors:i.concat(n.errors),l=i.length),m=s===l,f=f||m}if(!f){const r={params:{}};return null===i?i=[r]:i.push(r),l++,s.errors=i,!1}return l=p,null!==i&&(p?i.length=p:i=null),s.errors=i,0===l}function a(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:s=r}={}){let o=null,i=0;const l=i;let p=!1;const f=i;if("string"!=typeof r){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),i++}var u=f===i;if(p=p||u,!p){const t=i;if(i==i)if(r&&"object"==typeof r&&!Array.isArray(r)){const t=i;for(const t in r)if("amd"!==t&&"commonjs"!==t&&"commonjs2"!==t&&"root"!==t){const r={params:{additionalProperty:t}};null===o?o=[r]:o.push(r),i++;break}if(t===i){if(void 0!==r.amd){const t=i;if("string"!=typeof r.amd){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),i++}var c=t===i}else c=!0;if(c){if(void 0!==r.commonjs){const t=i;if("string"!=typeof r.commonjs){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),i++}c=t===i}else c=!0;if(c){if(void 0!==r.commonjs2){const t=i;if("string"!=typeof r.commonjs2){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),i++}c=t===i}else c=!0;if(c)if(void 0!==r.root){const t=i;if("string"!=typeof r.root){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),i++}c=t===i}else c=!0}}}}else{const r={params:{type:"object"}};null===o?o=[r]:o.push(r),i++}u=t===i,p=p||u}if(!p){const r={params:{}};return null===o?o=[r]:o.push(r),i++,a.errors=o,!1}return i=l,null!==o&&(l?o.length=l:o=null),a.errors=o,0===i}function o(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:s=r}={}){let a=null,i=0;const l=i;let p=!1;const f=i;if(i===f)if(Array.isArray(r))if(r.length<1){const r={params:{limit:1}};null===a?a=[r]:a.push(r),i++}else{const t=r.length;for(let e=0;e<t;e++){let t=r[e];const n=i;if(i===n)if("string"==typeof t){if(t.length<1){const r={params:{}};null===a?a=[r]:a.push(r),i++}}else{const r={params:{type:"string"}};null===a?a=[r]:a.push(r),i++}if(n!==i)break}}else{const r={params:{type:"array"}};null===a?a=[r]:a.push(r),i++}var u=f===i;if(p=p||u,!p){const t=i;if(i===t)if("string"==typeof r){if(r.length<1){const r={params:{}};null===a?a=[r]:a.push(r),i++}}else{const r={params:{type:"string"}};null===a?a=[r]:a.push(r),i++}if(u=t===i,p=p||u,!p){const t=i;if(i==i)if(r&&"object"==typeof r&&!Array.isArray(r)){const t=i;for(const t in r)if("amd"!==t&&"commonjs"!==t&&"root"!==t){const r={params:{additionalProperty:t}};null===a?a=[r]:a.push(r),i++;break}if(t===i){if(void 0!==r.amd){let t=r.amd;const e=i;if(i===e)if("string"==typeof t){if(t.length<1){const r={params:{}};null===a?a=[r]:a.push(r),i++}}else{const r={params:{type:"string"}};null===a?a=[r]:a.push(r),i++}var c=e===i}else c=!0;if(c){if(void 0!==r.commonjs){let t=r.commonjs;const e=i;if(i===e)if("string"==typeof t){if(t.length<1){const r={params:{}};null===a?a=[r]:a.push(r),i++}}else{const r={params:{type:"string"}};null===a?a=[r]:a.push(r),i++}c=e===i}else c=!0;if(c)if(void 0!==r.root){let t=r.root;const e=i,n=i;let s=!1;const o=i;if(i===o)if(Array.isArray(t)){const r=t.length;for(let e=0;e<r;e++){let r=t[e];const n=i;if(i===n)if("string"==typeof r){if(r.length<1){const r={params:{}};null===a?a=[r]:a.push(r),i++}}else{const r={params:{type:"string"}};null===a?a=[r]:a.push(r),i++}if(n!==i)break}}else{const r={params:{type:"array"}};null===a?a=[r]:a.push(r),i++}var m=o===i;if(s=s||m,!s){const r=i;if(i===r)if("string"==typeof t){if(t.length<1){const r={params:{}};null===a?a=[r]:a.push(r),i++}}else{const r={params:{type:"string"}};null===a?a=[r]:a.push(r),i++}m=r===i,s=s||m}if(s)i=n,null!==a&&(n?a.length=n:a=null);else{const r={params:{}};null===a?a=[r]:a.push(r),i++}c=e===i}else c=!0}}}else{const r={params:{type:"object"}};null===a?a=[r]:a.push(r),i++}u=t===i,p=p||u}}if(!p){const r={params:{}};return null===a?a=[r]:a.push(r),i++,o.errors=a,!1}return i=l,null!==a&&(l?a.length=l:a=null),o.errors=a,0===i}module.exports=p,module.exports.default=p;const i=new RegExp("^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$","u");function l(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:s=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{let e;if(void 0===r.type&&(e="type"))return l.errors=[{params:{missingProperty:e}}],!1;{const e=f;for(const t in r)if("amdContainer"!==t&&"auxiliaryComment"!==t&&"entryExports"!==t&&"export"!==t&&"name"!==t&&"type"!==t&&"umdAmdContainer"!==t&&"umdNamedDefine"!==t)return l.errors=[{params:{additionalProperty:t}}],!1;if(e===f){if(void 0!==r.amdContainer){let t=r.amdContainer;const e=f;if(f==f){if("string"!=typeof t)return l.errors=[{params:{type:"string"}}],!1;if(t.length<1)return l.errors=[{params:{}}],!1}var u=e===f}else u=!0;if(u){if(void 0!==r.auxiliaryComment){const e=f;a(r.auxiliaryComment,{instancePath:t+"/auxiliaryComment",parentData:r,parentDataProperty:"auxiliaryComment",rootData:s})||(p=null===p?a.errors:p.concat(a.errors),f=p.length),u=e===f}else u=!0;if(u){if(void 0!==r.entryExports){let t=r.entryExports;const e=f;if("last"!==t&&"all"!==t)return l.errors=[{params:{}}],!1;u=e===f}else u=!0;if(u){if(void 0!==r.export){let t=r.export;const e=f,n=f;let s=!1;const a=f;if(f===a)if(Array.isArray(t)){const r=t.length;for(let e=0;e<r;e++){let r=t[e];const n=f;if(f===n)if("string"==typeof r){if(r.length<1){const r={params:{}};null===p?p=[r]:p.push(r),f++}}else{const r={params:{type:"string"}};null===p?p=[r]:p.push(r),f++}if(n!==f)break}}else{const r={params:{type:"array"}};null===p?p=[r]:p.push(r),f++}var c=a===f;if(s=s||c,!s){const r=f;if(f===r)if("string"==typeof t){if(t.length<1){const r={params:{}};null===p?p=[r]:p.push(r),f++}}else{const r={params:{type:"string"}};null===p?p=[r]:p.push(r),f++}c=r===f,s=s||c}if(!s){const r={params:{}};return null===p?p=[r]:p.push(r),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),u=e===f}else u=!0;if(u){if(void 0!==r.name){const e=f;o(r.name,{instancePath:t+"/name",parentData:r,parentDataProperty:"name",rootData:s})||(p=null===p?o.errors:p.concat(o.errors),f=p.length),u=e===f}else u=!0;if(u){if(void 0!==r.type){let t=r.type;const e=f,n=f;let s=!1;const a=f;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){const r={params:{}};null===p?p=[r]:p.push(r),f++}var m=a===f;if(s=s||m,!s){const r=f;if("string"!=typeof t){const r={params:{type:"string"}};null===p?p=[r]:p.push(r),f++}m=r===f,s=s||m}if(!s){const r={params:{}};return null===p?p=[r]:p.push(r),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),u=e===f}else u=!0;if(u){if(void 0!==r.umdAmdContainer){let t=r.umdAmdContainer;const e=f;if(f==f){if("string"!=typeof t)return l.errors=[{params:{type:"string"}}],!1;if(!i.test(t))return l.errors=[{params:{pattern:"^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$"}}],!1;if(t.length<1)return l.errors=[{params:{}}],!1}u=e===f}else u=!0;if(u)if(void 0!==r.umdNamedDefine){const t=f;if("boolean"!=typeof r.umdNamedDefine)return l.errors=[{params:{type:"boolean"}}],!1;u=t===f}else u=!0}}}}}}}}}}return l.errors=p,0===f}function p(t,{instancePath:e="",parentData:n,parentDataProperty:a,rootData:o=t}={}){let i=null,f=0;if(0===f){if(!t||"object"!=typeof t||Array.isArray(t))return p.errors=[{params:{type:"object"}}],!1;{let n;if(void 0===t.name&&(n="name")||void 0===t.exposes&&(n="exposes"))return p.errors=[{params:{missingProperty:n}}],!1;{const n=f;for(const r in t)if("exposes"!==r&&"filename"!==r&&"library"!==r&&"name"!==r&&"runtime"!==r&&"shareScope"!==r)return p.errors=[{params:{additionalProperty:r}}],!1;if(n===f){if(void 0!==t.exposes){const r=f;s(t.exposes,{instancePath:e+"/exposes",parentData:t,parentDataProperty:"exposes",rootData:o})||(i=null===i?s.errors:i.concat(s.errors),f=i.length);var u=r===f}else u=!0;if(u){if(void 0!==t.filename){let e=t.filename;const n=f;if(f===n){if("string"!=typeof e)return p.errors=[{params:{type:"string"}}],!1;if(e.includes("!")||!1!==r.test(e))return p.errors=[{params:{}}],!1;if(e.length<1)return p.errors=[{params:{}}],!1}u=n===f}else u=!0;if(u){if(void 0!==t.library){const r=f;l(t.library,{instancePath:e+"/library",parentData:t,parentDataProperty:"library",rootData:o})||(i=null===i?l.errors:i.concat(l.errors),f=i.length),u=r===f}else u=!0;if(u){if(void 0!==t.name){let r=t.name;const e=f;if(f===e){if("string"!=typeof r)return p.errors=[{params:{type:"string"}}],!1;if(r.length<1)return p.errors=[{params:{}}],!1}u=e===f}else u=!0;if(u){if(void 0!==t.runtime){let r=t.runtime;const e=f,n=f;let s=!1;const a=f;if(!1!==r){const r={params:{}};null===i?i=[r]:i.push(r),f++}var c=a===f;if(s=s||c,!s){const t=f;if(f===t)if("string"==typeof r){if(r.length<1){const r={params:{}};null===i?i=[r]:i.push(r),f++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),f++}c=t===f,s=s||c}if(!s){const r={params:{}};return null===i?i=[r]:i.push(r),f++,p.errors=i,!1}f=n,null!==i&&(n?i.length=n:i=null),u=e===f}else u=!0;if(u)if(void 0!==t.shareScope){let r=t.shareScope;const e=f;if(f===e){if("string"!=typeof r)return p.errors=[{params:{type:"string"}}],!1;if(r.length<1)return p.errors=[{params:{}}],!1}u=e===f}else u=!0}}}}}}}}return p.errors=i,0===f}
|
|
7
|
+
"use strict";module.exports=c,module.exports.default=c;let r={anyOf:[{enum:[!1]},{type:"string",minLength:1}]},t=function(r){let t=r.length,e,n=0,s=0;for(;s<t;)n++,(e=r.charCodeAt(s++))>=55296&&e<=56319&&s<t&&(64512&(e=r.charCodeAt(s)))==56320&&s++;return n};function e(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return e.errors=[{params:{type:"array"}}],!1;{let n=r.length;for(let s=0;s<n;s++){let n=r[s];if("string"!=typeof n)return e.errors=[{params:{type:"string"}}],!1;if(t(n)<1)return e.errors=[{params:{limit:1}}],!1}}return e.errors=null,!0}function n(r,{instancePath:s="",parentData,parentDataProperty,rootData=r}={}){let a=null,o=0;if(o===0){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;{let p;if(r.import===void 0&&(p="import"))return n.errors=[{params:{missingProperty:p}}],!1;{let p=o;for(let t in r)if("import"!==t&&"name"!==t)return n.errors=[{params:{additionalProperty:t}}],!1;if(p===o){if(r.import!==void 0){let p=r.import,f=o,u=o,m=!1,c=o;if(o==o)if("string"==typeof p){if(t(p)<1){let r={params:{limit:1}};a===null?a=[r]:a.push(r),o++}}else{let r={params:{type:"string"}};a===null?a=[r]:a.push(r),o++}var i=c===o;if(!(m=m||i)){let t=o;e(p,{instancePath:s+"/import",parentData:r,parentDataProperty:"import",rootData})||(o=(a=a===null?e.errors:a.concat(e.errors)).length),i=t===o,m=m||i}if(!m){let r={params:{}};return a===null?a=[r]:a.push(r),o++,n.errors=a,!1}o=u,a!==null&&(u?a.length=u:a=null);var l=f===o}else l=!0;if(l)if(r.name!==void 0){if("string"!=typeof r.name)return n.errors=[{params:{type:"string"}}],!1;l=o===o}else l=!0}}}}return n.errors=a,o===0}function s(r,{instancePath:a="",parentData,parentDataProperty,rootData=r}={}){let o=null,i=0;if(i===0){if(!r||"object"!=typeof r||Array.isArray(r))return s.errors=[{params:{type:"object"}}],!1;for(let p in r){let f=r[p],u=i,m=i,c=!1,y=i;n(f,{instancePath:a+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:p,rootData})||(i=(o=o===null?n.errors:o.concat(n.errors)).length);var l=y===i;if(!(c=c||l)){let n=i;if(i==i)if("string"==typeof f){if(t(f)<1){let r={params:{limit:1}};o===null?o=[r]:o.push(r),i++}}else{let r={params:{type:"string"}};o===null?o=[r]:o.push(r),i++}if(l=n===i,!(c=c||l)){let t=i;e(f,{instancePath:a+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:p,rootData})||(i=(o=o===null?e.errors:o.concat(e.errors)).length),l=t===i,c=c||l}}if(!c){let r={params:{}};return o===null?o=[r]:o.push(r),i++,s.errors=o,!1}if(i=m,o!==null&&(m?o.length=m:o=null),u!==i)break}}return s.errors=o,i===0}function a(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let n=null,o=0,i=o,l=!1,p=o;if(o===p)if(Array.isArray(r)){let a=r.length;for(let i=0;i<a;i++){let a=r[i],l=o,p=o,u=!1,m=o;if(o==o)if("string"==typeof a){if(t(a)<1){let r={params:{limit:1}};n===null?n=[r]:n.push(r),o++}}else{let r={params:{type:"string"}};n===null?n=[r]:n.push(r),o++}var f=m===o;if(!(u=u||f)){let t=o;s(a,{instancePath:e+"/"+i,parentData:r,parentDataProperty:i,rootData})||(o=(n=n===null?s.errors:n.concat(s.errors)).length),f=t===o,u=u||f}if(u)o=p,n!==null&&(p?n.length=p:n=null);else{let r={params:{}};n===null?n=[r]:n.push(r),o++}if(l!==o)break}}else{let r={params:{type:"array"}};n===null?n=[r]:n.push(r),o++}var u=p===o;if(!(l=l||u)){let t=o;s(r,{instancePath:e,parentData,parentDataProperty,rootData})||(o=(n=n===null?s.errors:n.concat(s.errors)).length),u=t===o,l=l||u}if(!l){let r={params:{}};return n===null?n=[r]:n.push(r),o++,a.errors=n,!1}return o=i,n!==null&&(i?n.length=i:n=null),a.errors=n,o===0}let o={enum:["last","all"]},i={anyOf:[{enum:["var","module","assign","assign-properties","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","umd","umd2","jsonp","system"]},{type:"string"}]};function l(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let t=null,e=0,n=e,s=!1,a=e;if("string"!=typeof r){let r={params:{type:"string"}};t===null?t=[r]:t.push(r),e++}var o=a===e;if(!(s=s||o)){let n=e;if(e==e)if(r&&"object"==typeof r&&!Array.isArray(r)){let n=e;for(let n in r)if("amd"!==n&&"commonjs"!==n&&"commonjs2"!==n&&"root"!==n){let r={params:{additionalProperty:n}};t===null?t=[r]:t.push(r),e++;break}if(n===e){if(r.amd!==void 0){let n=e;if("string"!=typeof r.amd){let r={params:{type:"string"}};t===null?t=[r]:t.push(r),e++}var i=n===e}else i=!0;if(i){if(r.commonjs!==void 0){let n=e;if("string"!=typeof r.commonjs){let r={params:{type:"string"}};t===null?t=[r]:t.push(r),e++}i=n===e}else i=!0;if(i){if(r.commonjs2!==void 0){let n=e;if("string"!=typeof r.commonjs2){let r={params:{type:"string"}};t===null?t=[r]:t.push(r),e++}i=n===e}else i=!0;if(i)if(r.root!==void 0){let n=e;if("string"!=typeof r.root){let r={params:{type:"string"}};t===null?t=[r]:t.push(r),e++}i=n===e}else i=!0}}}}else{let r={params:{type:"object"}};t===null?t=[r]:t.push(r),e++}o=n===e,s=s||o}if(!s){let r={params:{}};return t===null?t=[r]:t.push(r),e++,l.errors=t,!1}return e=n,t!==null&&(n?t.length=n:t=null),l.errors=t,e===0}function p(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,n=0,s=n,a=!1,o=n;if(n===o)if(Array.isArray(r))if(r.length<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),n++}else{let s=r.length;for(let a=0;a<s;a++){let s=r[a],o=n;if(n===o)if("string"==typeof s){if(t(s)<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),n++}}else{let r={params:{type:"string"}};e===null?e=[r]:e.push(r),n++}if(o!==n)break}}else{let r={params:{type:"array"}};e===null?e=[r]:e.push(r),n++}var i=o===n;if(!(a=a||i)){let s=n;if(n===s)if("string"==typeof r){if(t(r)<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),n++}}else{let r={params:{type:"string"}};e===null?e=[r]:e.push(r),n++}if(i=s===n,!(a=a||i)){let s=n;if(n==n)if(r&&"object"==typeof r&&!Array.isArray(r)){let s=n;for(let t in r)if("amd"!==t&&"commonjs"!==t&&"root"!==t){let r={params:{additionalProperty:t}};e===null?e=[r]:e.push(r),n++;break}if(s===n){if(r.amd!==void 0){let s=r.amd,a=n;if(n===a)if("string"==typeof s){if(t(s)<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),n++}}else{let r={params:{type:"string"}};e===null?e=[r]:e.push(r),n++}var l=a===n}else l=!0;if(l){if(r.commonjs!==void 0){let s=r.commonjs,a=n;if(n===a)if("string"==typeof s){if(t(s)<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),n++}}else{let r={params:{type:"string"}};e===null?e=[r]:e.push(r),n++}l=a===n}else l=!0;if(l)if(r.root!==void 0){let s=r.root,a=n,o=n,i=!1,p=n;if(n===p)if(Array.isArray(s)){let r=s.length;for(let a=0;a<r;a++){let r=s[a],o=n;if(n===o)if("string"==typeof r){if(t(r)<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),n++}}else{let r={params:{type:"string"}};e===null?e=[r]:e.push(r),n++}if(o!==n)break}}else{let r={params:{type:"array"}};e===null?e=[r]:e.push(r),n++}var f=p===n;if(!(i=i||f)){let r=n;if(n===r)if("string"==typeof s){if(t(s)<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),n++}}else{let r={params:{type:"string"}};e===null?e=[r]:e.push(r),n++}f=r===n,i=i||f}if(i)n=o,e!==null&&(o?e.length=o:e=null);else{let r={params:{}};e===null?e=[r]:e.push(r),n++}l=a===n}else l=!0}}}else{let r={params:{type:"object"}};e===null?e=[r]:e.push(r),n++}i=s===n,a=a||i}}if(!a){let r={params:{}};return e===null?e=[r]:e.push(r),n++,p.errors=e,!1}return n=s,e!==null&&(s?e.length=s:e=null),p.errors=e,n===0}let f=RegExp("^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$","u");function u(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let n=null,s=0;if(s===0){if(!r||"object"!=typeof r||Array.isArray(r))return u.errors=[{params:{type:"object"}}],!1;{let y;if(r.type===void 0&&(y="type"))return u.errors=[{params:{missingProperty:y}}],!1;{let y=s;for(let t in r)if("amdContainer"!==t&&"auxiliaryComment"!==t&&"entryExports"!==t&&"export"!==t&&"name"!==t&&"type"!==t&&"umdAmdContainer"!==t&&"umdNamedDefine"!==t)return u.errors=[{params:{additionalProperty:t}}],!1;if(y===s){if(r.amdContainer!==void 0){let e=r.amdContainer;if(s==s){if("string"!=typeof e)return u.errors=[{params:{type:"string"}}],!1;if(t(e)<1)return u.errors=[{params:{limit:1}}],!1}var a=s===s}else a=!0;if(a){if(r.auxiliaryComment!==void 0){let t=s;l(r.auxiliaryComment,{instancePath:e+"/auxiliaryComment",parentData:r,parentDataProperty:"auxiliaryComment",rootData})||(s=(n=n===null?l.errors:n.concat(l.errors)).length),a=t===s}else a=!0;if(a){if(r.entryExports!==void 0){let t=r.entryExports;if("last"!==t&&"all"!==t)return u.errors=[{params:{allowedValues:o.enum}}],!1;a=s===s}else a=!0;if(a){if(r.export!==void 0){let e=r.export,o=s,i=s,l=!1,p=s;if(s===p)if(Array.isArray(e)){let r=e.length;for(let a=0;a<r;a++){let r=e[a],o=s;if(s===o)if("string"==typeof r){if(t(r)<1){let r={params:{limit:1}};n===null?n=[r]:n.push(r),s++}}else{let r={params:{type:"string"}};n===null?n=[r]:n.push(r),s++}if(o!==s)break}}else{let r={params:{type:"array"}};n===null?n=[r]:n.push(r),s++}var m=p===s;if(!(l=l||m)){let r=s;if(s===r)if("string"==typeof e){if(t(e)<1){let r={params:{limit:1}};n===null?n=[r]:n.push(r),s++}}else{let r={params:{type:"string"}};n===null?n=[r]:n.push(r),s++}m=r===s,l=l||m}if(!l){let r={params:{}};return n===null?n=[r]:n.push(r),s++,u.errors=n,!1}s=i,n!==null&&(i?n.length=i:n=null),a=o===s}else a=!0;if(a){if(r.name!==void 0){let t=s;p(r.name,{instancePath:e+"/name",parentData:r,parentDataProperty:"name",rootData})||(s=(n=n===null?p.errors:n.concat(p.errors)).length),a=t===s}else a=!0;if(a){if(r.type!==void 0){let t=r.type,e=s,o=s,l=!1,p=s;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){let r={params:{allowedValues:i.anyOf[0].enum}};n===null?n=[r]:n.push(r),s++}var c=p===s;if(!(l=l||c)){let r=s;if("string"!=typeof t){let r={params:{type:"string"}};n===null?n=[r]:n.push(r),s++}c=r===s,l=l||c}if(!l){let r={params:{}};return n===null?n=[r]:n.push(r),s++,u.errors=n,!1}s=o,n!==null&&(o?n.length=o:n=null),a=e===s}else a=!0;if(a){if(r.umdAmdContainer!==void 0){let e=r.umdAmdContainer;if(s==s){if("string"!=typeof e)return u.errors=[{params:{type:"string"}}],!1;if(t(e)<1)return u.errors=[{params:{limit:1}}],!1;if(!f.test(e))return u.errors=[{params:{pattern:"^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$"}}],!1}a=s===s}else a=!0;if(a)if(r.umdNamedDefine!==void 0){if("boolean"!=typeof r.umdNamedDefine)return u.errors=[{params:{type:"boolean"}}],!1;a=s===s}else a=!0}}}}}}}}}}return u.errors=n,s===0}let m=/^(?:file:(?=\/))?(?:[A-Za-z]:(\\|\/)|\\\\|\/)/i;function c(e,{instancePath:n="",parentData,parentDataProperty,rootData=e}={}){let s=null,o=0;if(o===0){if(!e||"object"!=typeof e||Array.isArray(e))return c.errors=[{params:{type:"object"}}],!1;{let p;if(e.name===void 0&&(p="name")||e.exposes===void 0&&(p="exposes"))return c.errors=[{params:{missingProperty:p}}],!1;{let p=o;for(let r in e)if("exposes"!==r&&"filename"!==r&&"library"!==r&&"name"!==r&&"runtime"!==r&&"shareScope"!==r)return c.errors=[{params:{additionalProperty:r}}],!1;if(p===o){if(e.exposes!==void 0){let r=o;a(e.exposes,{instancePath:n+"/exposes",parentData:e,parentDataProperty:"exposes",rootData})||(o=(s=s===null?a.errors:s.concat(a.errors)).length);var i=r===o}else i=!0;if(i){if(e.filename!==void 0){let r=e.filename,n=o;if(o===n){if("string"!=typeof r)return c.errors=[{params:{type:"string"}}],!1;if(t(r)<1)return c.errors=[{params:{limit:1}}],!1;if(r.includes("!")||!1!==m.test(r))return c.errors=[{params:{}}],!1}i=n===o}else i=!0;if(i){if(e.library!==void 0){let r=o;u(e.library,{instancePath:n+"/library",parentData:e,parentDataProperty:"library",rootData})||(o=(s=s===null?u.errors:s.concat(u.errors)).length),i=r===o}else i=!0;if(i){if(e.name!==void 0){let r=e.name,n=o;if(o===n){if("string"!=typeof r)return c.errors=[{params:{type:"string"}}],!1;if(t(r)<1)return c.errors=[{params:{limit:1}}],!1}i=n===o}else i=!0;if(i){if(e.runtime!==void 0){let n=e.runtime,a=o,p=o,f=!1,u=o;if(!1!==n){let t={params:{allowedValues:r.anyOf[0].enum}};s===null?s=[t]:s.push(t),o++}var l=u===o;if(!(f=f||l)){let r=o;if(o===r)if("string"==typeof n){if(t(n)<1){let r={params:{limit:1}};s===null?s=[r]:s.push(r),o++}}else{let r={params:{type:"string"}};s===null?s=[r]:s.push(r),o++}l=r===o,f=f||l}if(!f){let r={params:{}};return s===null?s=[r]:s.push(r),o++,c.errors=s,!1}o=p,s!==null&&(p?s.length=p:s=null),i=a===o}else i=!0;if(i)if(e.shareScope!==void 0){let r=e.shareScope,n=o;if(o===n){if("string"!=typeof r)return c.errors=[{params:{type:"string"}}],!1;if(t(r)<1)return c.errors=[{params:{limit:1}}],!1}i=n===o}else i=!0}}}}}}}}return c.errors=s,o===0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
/*
|
|
3
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
4
5
|
* DO NOT MODIFY BY HAND.
|
|
5
|
-
* Run `yarn fix:special` to update
|
|
6
6
|
*/
|
|
7
|
-
"use strict";function r(t,{instancePath
|
|
7
|
+
"use strict";module.exports=o,module.exports.default=o;let r={enum:["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","amd-async","umd","umd2","jsonp","system","promise","import","module-import","script","node-commonjs","asset","asset-url","css-import","css-url"]},t=function(r){let t=r.length,e,a=0,s=0;for(;s<t;)a++,(e=r.charCodeAt(s++))>=55296&&e<=56319&&s<t&&(64512&(e=r.charCodeAt(s)))==56320&&s++;return a};function e(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return e.errors=[{params:{type:"array"}}],!1;{let a=r.length;for(let s=0;s<a;s++){let a=r[s];if("string"!=typeof a)return e.errors=[{params:{type:"string"}}],!1;if(t(a)<1)return e.errors=[{params:{limit:1}}],!1}}return e.errors=null,!0}function a(r,{instancePath:s="",parentData,parentDataProperty,rootData=r}={}){let n=null,o=0;if(o===0){if(!r||"object"!=typeof r||Array.isArray(r))return a.errors=[{params:{type:"object"}}],!1;{let p;if(r.external===void 0&&(p="external"))return a.errors=[{params:{missingProperty:p}}],!1;{let p=o;for(let t in r)if("external"!==t&&"shareScope"!==t)return a.errors=[{params:{additionalProperty:t}}],!1;if(p===o){if(r.external!==void 0){let p=r.external,c=o,u=o,m=!1,f=o;if(o==o)if("string"==typeof p){if(t(p)<1){let r={params:{limit:1}};n===null?n=[r]:n.push(r),o++}}else{let r={params:{type:"string"}};n===null?n=[r]:n.push(r),o++}var l=f===o;if(!(m=m||l)){let t=o;e(p,{instancePath:s+"/external",parentData:r,parentDataProperty:"external",rootData})||(o=(n=n===null?e.errors:n.concat(e.errors)).length),l=t===o,m=m||l}if(!m){let r={params:{}};return n===null?n=[r]:n.push(r),o++,a.errors=n,!1}o=u,n!==null&&(u?n.length=u:n=null);var i=c===o}else i=!0;if(i)if(r.shareScope!==void 0){let e=r.shareScope,s=o;if(o===s){if("string"!=typeof e)return a.errors=[{params:{type:"string"}}],!1;if(t(e)<1)return a.errors=[{params:{limit:1}}],!1}i=s===o}else i=!0}}}}return a.errors=n,o===0}function s(r,{instancePath:n="",parentData,parentDataProperty,rootData=r}={}){let o=null,l=0;if(l===0){if(!r||"object"!=typeof r||Array.isArray(r))return s.errors=[{params:{type:"object"}}],!1;for(let p in r){let c=r[p],u=l,m=l,f=!1,y=l;a(c,{instancePath:n+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:p,rootData})||(l=(o=o===null?a.errors:o.concat(a.errors)).length);var i=y===l;if(!(f=f||i)){let a=l;if(l==l)if("string"==typeof c){if(t(c)<1){let r={params:{limit:1}};o===null?o=[r]:o.push(r),l++}}else{let r={params:{type:"string"}};o===null?o=[r]:o.push(r),l++}if(i=a===l,!(f=f||i)){let t=l;e(c,{instancePath:n+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:p,rootData})||(l=(o=o===null?e.errors:o.concat(e.errors)).length),i=t===l,f=f||i}}if(!f){let r={params:{}};return o===null?o=[r]:o.push(r),l++,s.errors=o,!1}if(l=m,o!==null&&(m?o.length=m:o=null),u!==l)break}}return s.errors=o,l===0}function n(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let a=null,o=0,l=o,i=!1,p=o;if(o===p)if(Array.isArray(r)){let n=r.length;for(let l=0;l<n;l++){let n=r[l],i=o,p=o,u=!1,m=o;if(o==o)if("string"==typeof n){if(t(n)<1){let r={params:{limit:1}};a===null?a=[r]:a.push(r),o++}}else{let r={params:{type:"string"}};a===null?a=[r]:a.push(r),o++}var c=m===o;if(!(u=u||c)){let t=o;s(n,{instancePath:e+"/"+l,parentData:r,parentDataProperty:l,rootData})||(o=(a=a===null?s.errors:a.concat(s.errors)).length),c=t===o,u=u||c}if(u)o=p,a!==null&&(p?a.length=p:a=null);else{let r={params:{}};a===null?a=[r]:a.push(r),o++}if(i!==o)break}}else{let r={params:{type:"array"}};a===null?a=[r]:a.push(r),o++}var u=p===o;if(!(i=i||u)){let t=o;s(r,{instancePath:e,parentData,parentDataProperty,rootData})||(o=(a=a===null?s.errors:a.concat(s.errors)).length),u=t===o,i=i||u}if(!i){let r={params:{}};return a===null?a=[r]:a.push(r),o++,n.errors=a,!1}return o=l,a!==null&&(l?a.length=l:a=null),n.errors=a,o===0}function o(e,{instancePath:a="",parentData,parentDataProperty,rootData=e}={}){let s=null,l=0;if(l===0){if(!e||"object"!=typeof e||Array.isArray(e))return o.errors=[{params:{type:"object"}}],!1;{let p;if(e.remoteType===void 0&&(p="remoteType")||e.remotes===void 0&&(p="remotes"))return o.errors=[{params:{missingProperty:p}}],!1;{let p=l;for(let r in e)if("remoteType"!==r&&"remotes"!==r&&"shareScope"!==r)return o.errors=[{params:{additionalProperty:r}}],!1;if(p===l){if(e.remoteType!==void 0){let t=e.remoteType,a=l,n=l,p=!1,c=null,u=l;if("var"!==t&&"module"!==t&&"assign"!==t&&"this"!==t&&"window"!==t&&"self"!==t&&"global"!==t&&"commonjs"!==t&&"commonjs2"!==t&&"commonjs-module"!==t&&"commonjs-static"!==t&&"amd"!==t&&"amd-require"!==t&&"amd-async"!==t&&"umd"!==t&&"umd2"!==t&&"jsonp"!==t&&"system"!==t&&"promise"!==t&&"import"!==t&&"module-import"!==t&&"script"!==t&&"node-commonjs"!==t&&"asset"!==t&&"asset-url"!==t&&"css-import"!==t&&"css-url"!==t){let t={params:{allowedValues:r.enum}};s===null?s=[t]:s.push(t),l++}if(u===l&&(p=!0,c=0),!p){let r={params:{passingSchemas:c}};return s===null?s=[r]:s.push(r),l++,o.errors=s,!1}l=n,s!==null&&(n?s.length=n:s=null);var i=a===l}else i=!0;if(i){if(e.remotes!==void 0){let r=l;n(e.remotes,{instancePath:a+"/remotes",parentData:e,parentDataProperty:"remotes",rootData})||(l=(s=s===null?n.errors:s.concat(n.errors)).length),i=r===l}else i=!0;if(i)if(e.shareScope!==void 0){let r=e.shareScope,a=l;if(l===a){if("string"!=typeof r)return o.errors=[{params:{type:"string"}}],!1;if(t(r)<1)return o.errors=[{params:{limit:1}}],!1}i=a===l}else i=!0}}}}}return o.errors=s,l===0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
/*
|
|
3
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
4
5
|
* DO NOT MODIFY BY HAND.
|
|
5
|
-
* Run `yarn fix:special` to update
|
|
6
6
|
*/
|
|
7
|
-
"use strict";function
|
|
7
|
+
"use strict";module.exports=o,module.exports.default=o;let s={enum:["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","amd-async","umd","umd2","jsonp","system","promise","import","module-import","script","node-commonjs","asset","asset-url","css-import","css-url"]};function o(m,{instancePath="",parentData,parentDataProperty,rootData=m}={}){return"var"!==m&&"module"!==m&&"assign"!==m&&"this"!==m&&"window"!==m&&"self"!==m&&"global"!==m&&"commonjs"!==m&&"commonjs2"!==m&&"commonjs-module"!==m&&"commonjs-static"!==m&&"amd"!==m&&"amd-require"!==m&&"amd-async"!==m&&"umd"!==m&&"umd2"!==m&&"jsonp"!==m&&"system"!==m&&"promise"!==m&&"import"!==m&&"module-import"!==m&&"script"!==m&&"node-commonjs"!==m&&"asset"!==m&&"asset-url"!==m&&"css-import"!==m&&"css-url"!==m?(o.errors=[{params:{allowedValues:s.enum}}],!1):(o.errors=null,!0)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
/*
|
|
3
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
4
5
|
* DO NOT MODIFY BY HAND.
|
|
5
|
-
* Run `yarn fix:special` to update
|
|
6
6
|
*/
|
|
7
|
-
const e=/^(?:file:(?=\/))?(?:[A-Za-z]:[\\/]|\\\\|\/)/i;module.exports=b,module.exports.default=b;const r={definitions:{AmdContainer:{type:"string",minLength:1},AuxiliaryComment:{anyOf:[{type:"string"},{$ref:"#/definitions/LibraryCustomUmdCommentObject"}]},EntryRuntime:{anyOf:[{enum:[!1]},{type:"string",minLength:1}]},Exposes:{anyOf:[{type:"array",items:{anyOf:[{$ref:"#/definitions/ExposesItem"},{$ref:"#/definitions/ExposesObject"}]}},{$ref:"#/definitions/ExposesObject"}]},ExposesConfig:{type:"object",additionalProperties:!1,properties:{import:{anyOf:[{$ref:"#/definitions/ExposesItem"},{$ref:"#/definitions/ExposesItems"}]},name:{type:"string"}},required:["import"]},ExposesItem:{type:"string",minLength:1},ExposesItems:{type:"array",items:{$ref:"#/definitions/ExposesItem"}},ExposesObject:{type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/ExposesConfig"},{$ref:"#/definitions/ExposesItem"},{$ref:"#/definitions/ExposesItems"}]}},ExternalsType:{enum:["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","amd-async","umd","umd2","jsonp","system","promise","import","module-import","script","node-commonjs","asset","asset-url","css-import","css-url"]},LibraryCustomUmdCommentObject:{type:"object",additionalProperties:!1,properties:{amd:{type:"string"},commonjs:{type:"string"},commonjs2:{type:"string"},root:{type:"string"}}},LibraryCustomUmdObject:{type:"object",additionalProperties:!1,properties:{amd:{type:"string",minLength:1},commonjs:{type:"string",minLength:1},root:{anyOf:[{type:"array",items:{type:"string",minLength:1}},{type:"string",minLength:1}]}}},LibraryEntryExports:{enum:["last","all"]},LibraryExport:{anyOf:[{type:"array",items:{type:"string",minLength:1}},{type:"string",minLength:1}]},LibraryName:{anyOf:[{type:"array",items:{type:"string",minLength:1},minItems:1},{type:"string",minLength:1},{$ref:"#/definitions/LibraryCustomUmdObject"}]},LibraryOptions:{type:"object",additionalProperties:!1,properties:{amdContainer:{$ref:"#/definitions/AmdContainer"},auxiliaryComment:{$ref:"#/definitions/AuxiliaryComment"},entryExports:{$ref:"#/definitions/LibraryEntryExports"},export:{$ref:"#/definitions/LibraryExport"},name:{$ref:"#/definitions/LibraryName"},type:{$ref:"#/definitions/LibraryType"},umdAmdContainer:{$ref:"#/definitions/UmdAmdContainer"},umdNamedDefine:{$ref:"#/definitions/UmdNamedDefine"}},required:["type"]},LibraryType:{anyOf:[{enum:["var","module","assign","assign-properties","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","umd","umd2","jsonp","system"]},{type:"string"}]},Remotes:{anyOf:[{type:"array",items:{anyOf:[{$ref:"#/definitions/RemotesItem"},{$ref:"#/definitions/RemotesObject"}]}},{$ref:"#/definitions/RemotesObject"}]},RemotesConfig:{type:"object",additionalProperties:!1,properties:{external:{anyOf:[{$ref:"#/definitions/RemotesItem"},{$ref:"#/definitions/RemotesItems"}]},shareScope:{type:"string",minLength:1}},required:["external"]},RemotesItem:{type:"string",minLength:1},RemotesItems:{type:"array",items:{$ref:"#/definitions/RemotesItem"}},RemotesObject:{type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/RemotesConfig"},{$ref:"#/definitions/RemotesItem"},{$ref:"#/definitions/RemotesItems"}]}},Shared:{anyOf:[{type:"array",items:{anyOf:[{$ref:"#/definitions/SharedItem"},{$ref:"#/definitions/SharedObject"}]}},{$ref:"#/definitions/SharedObject"}]},SharedConfig:{type:"object",additionalProperties:!1,properties:{eager:{type:"boolean"},exclude:{$ref:"#/definitions/SharedModuleFilter"},import:{anyOf:[{enum:[!1]},{$ref:"#/definitions/SharedItem"}]},include:{$ref:"#/definitions/SharedModuleFilter"},packageName:{type:"string",minLength:1},requiredVersion:{anyOf:[{enum:[!1]},{type:"string"}]},shareKey:{type:"string",minLength:1},shareScope:{type:"string",minLength:1},singleton:{type:"boolean"},strictVersion:{type:"boolean"},version:{anyOf:[{enum:[!1]},{type:"string"}]}}},SharedItem:{type:"string",minLength:1},SharedModuleFilter:{type:"object",additionalProperties:!1,properties:{request:{anyOf:[{instanceof:"RegExp"},{type:"string",minLength:1}]},version:{type:"string",minLength:1}}},SharedObject:{type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/SharedConfig"},{$ref:"#/definitions/SharedItem"}]}},UmdAmdContainer:{type:"string",minLength:1,pattern:"^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$"},UmdNamedDefine:{type:"boolean"}},type:"object",additionalProperties:!1,properties:{exposes:{$ref:"#/definitions/Exposes"},filename:{type:"string",absolutePath:!1},library:{$ref:"#/definitions/LibraryOptions"},name:{type:"string"},remoteType:{oneOf:[{$ref:"#/definitions/ExternalsType"}]},remotes:{$ref:"#/definitions/Remotes"},runtime:{$ref:"#/definitions/EntryRuntime"},shareScope:{type:"string",minLength:1},shared:{$ref:"#/definitions/Shared"}}},t=Object.prototype.hasOwnProperty;function n(e,{instancePath:r="",parentData:t,parentDataProperty:s,rootData:a=e}={}){if(!Array.isArray(e))return n.errors=[{params:{type:"array"}}],!1;{const r=e.length;for(let t=0;t<r;t++){let r=e[t];const s=0;if("string"!=typeof r)return n.errors=[{params:{type:"string"}}],!1;if(r.length<1)return n.errors=[{params:{}}],!1;if(0!==s)break}}return n.errors=null,!0}function s(e,{instancePath:r="",parentData:t,parentDataProperty:a,rootData:o=e}={}){let i=null,l=0;if(0===l){if(!e||"object"!=typeof e||Array.isArray(e))return s.errors=[{params:{type:"object"}}],!1;{let t;if(void 0===e.import&&(t="import"))return s.errors=[{params:{missingProperty:t}}],!1;{const t=l;for(const r in e)if("import"!==r&&"name"!==r)return s.errors=[{params:{additionalProperty:r}}],!1;if(t===l){if(void 0!==e.import){let t=e.import;const a=l,u=l;let c=!1;const m=l;if(l==l)if("string"==typeof t){if(t.length<1){const e={params:{}};null===i?i=[e]:i.push(e),l++}}else{const e={params:{type:"string"}};null===i?i=[e]:i.push(e),l++}var p=m===l;if(c=c||p,!c){const s=l;n(t,{instancePath:r+"/import",parentData:e,parentDataProperty:"import",rootData:o})||(i=null===i?n.errors:i.concat(n.errors),l=i.length),p=s===l,c=c||p}if(!c){const e={params:{}};return null===i?i=[e]:i.push(e),l++,s.errors=i,!1}l=u,null!==i&&(u?i.length=u:i=null);var f=a===l}else f=!0;if(f)if(void 0!==e.name){const r=l;if("string"!=typeof e.name)return s.errors=[{params:{type:"string"}}],!1;f=r===l}else f=!0}}}}return s.errors=i,0===l}function a(e,{instancePath:r="",parentData:t,parentDataProperty:o,rootData:i=e}={}){let l=null,p=0;if(0===p){if(!e||"object"!=typeof e||Array.isArray(e))return a.errors=[{params:{type:"object"}}],!1;for(const t in e){let o=e[t];const u=p,c=p;let m=!1;const y=p;s(o,{instancePath:r+"/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:t,rootData:i})||(l=null===l?s.errors:l.concat(s.errors),p=l.length);var f=y===p;if(m=m||f,!m){const s=p;if(p==p)if("string"==typeof o){if(o.length<1){const e={params:{}};null===l?l=[e]:l.push(e),p++}}else{const e={params:{type:"string"}};null===l?l=[e]:l.push(e),p++}if(f=s===p,m=m||f,!m){const s=p;n(o,{instancePath:r+"/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:t,rootData:i})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),f=s===p,m=m||f}}if(!m){const e={params:{}};return null===l?l=[e]:l.push(e),p++,a.errors=l,!1}if(p=c,null!==l&&(c?l.length=c:l=null),u!==p)break}}return a.errors=l,0===p}function o(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let i=null,l=0;const p=l;let f=!1;const u=l;if(l===u)if(Array.isArray(e)){const t=e.length;for(let n=0;n<t;n++){let t=e[n];const o=l,p=l;let f=!1;const u=l;if(l==l)if("string"==typeof t){if(t.length<1){const e={params:{}};null===i?i=[e]:i.push(e),l++}}else{const e={params:{type:"string"}};null===i?i=[e]:i.push(e),l++}var c=u===l;if(f=f||c,!f){const o=l;a(t,{instancePath:r+"/"+n,parentData:e,parentDataProperty:n,rootData:s})||(i=null===i?a.errors:i.concat(a.errors),l=i.length),c=o===l,f=f||c}if(f)l=p,null!==i&&(p?i.length=p:i=null);else{const e={params:{}};null===i?i=[e]:i.push(e),l++}if(o!==l)break}}else{const e={params:{type:"array"}};null===i?i=[e]:i.push(e),l++}var m=u===l;if(f=f||m,!f){const o=l;a(e,{instancePath:r,parentData:t,parentDataProperty:n,rootData:s})||(i=null===i?a.errors:i.concat(a.errors),l=i.length),m=o===l,f=f||m}if(!f){const e={params:{}};return null===i?i=[e]:i.push(e),l++,o.errors=i,!1}return l=p,null!==i&&(p?i.length=p:i=null),o.errors=i,0===l}function i(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let a=null,o=0;const l=o;let p=!1;const f=o;if("string"!=typeof e){const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}var u=f===o;if(p=p||u,!p){const r=o;if(o==o)if(e&&"object"==typeof e&&!Array.isArray(e)){const r=o;for(const r in e)if("amd"!==r&&"commonjs"!==r&&"commonjs2"!==r&&"root"!==r){const e={params:{additionalProperty:r}};null===a?a=[e]:a.push(e),o++;break}if(r===o){if(void 0!==e.amd){const r=o;if("string"!=typeof e.amd){const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}var c=r===o}else c=!0;if(c){if(void 0!==e.commonjs){const r=o;if("string"!=typeof e.commonjs){const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}c=r===o}else c=!0;if(c){if(void 0!==e.commonjs2){const r=o;if("string"!=typeof e.commonjs2){const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}c=r===o}else c=!0;if(c)if(void 0!==e.root){const r=o;if("string"!=typeof e.root){const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}c=r===o}else c=!0}}}}else{const e={params:{type:"object"}};null===a?a=[e]:a.push(e),o++}u=r===o,p=p||u}if(!p){const e={params:{}};return null===a?a=[e]:a.push(e),o++,i.errors=a,!1}return o=l,null!==a&&(l?a.length=l:a=null),i.errors=a,0===o}function l(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let a=null,o=0;const i=o;let p=!1;const f=o;if(o===f)if(Array.isArray(e))if(e.length<1){const e={params:{limit:1}};null===a?a=[e]:a.push(e),o++}else{const r=e.length;for(let t=0;t<r;t++){let r=e[t];const n=o;if(o===n)if("string"==typeof r){if(r.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}if(n!==o)break}}else{const e={params:{type:"array"}};null===a?a=[e]:a.push(e),o++}var u=f===o;if(p=p||u,!p){const r=o;if(o===r)if("string"==typeof e){if(e.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}if(u=r===o,p=p||u,!p){const r=o;if(o==o)if(e&&"object"==typeof e&&!Array.isArray(e)){const r=o;for(const r in e)if("amd"!==r&&"commonjs"!==r&&"root"!==r){const e={params:{additionalProperty:r}};null===a?a=[e]:a.push(e),o++;break}if(r===o){if(void 0!==e.amd){let r=e.amd;const t=o;if(o===t)if("string"==typeof r){if(r.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}var c=t===o}else c=!0;if(c){if(void 0!==e.commonjs){let r=e.commonjs;const t=o;if(o===t)if("string"==typeof r){if(r.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}c=t===o}else c=!0;if(c)if(void 0!==e.root){let r=e.root;const t=o,n=o;let s=!1;const i=o;if(o===i)if(Array.isArray(r)){const e=r.length;for(let t=0;t<e;t++){let e=r[t];const n=o;if(o===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}if(n!==o)break}}else{const e={params:{type:"array"}};null===a?a=[e]:a.push(e),o++}var m=i===o;if(s=s||m,!s){const e=o;if(o===e)if("string"==typeof r){if(r.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}m=e===o,s=s||m}if(s)o=n,null!==a&&(n?a.length=n:a=null);else{const e={params:{}};null===a?a=[e]:a.push(e),o++}c=t===o}else c=!0}}}else{const e={params:{type:"object"}};null===a?a=[e]:a.push(e),o++}u=r===o,p=p||u}}if(!p){const e={params:{}};return null===a?a=[e]:a.push(e),o++,l.errors=a,!1}return o=i,null!==a&&(i?a.length=i:a=null),l.errors=a,0===o}const p=new RegExp("^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$","u");function f(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let a=null,o=0;if(0===o){if(!e||"object"!=typeof e||Array.isArray(e))return f.errors=[{params:{type:"object"}}],!1;{let t;if(void 0===e.type&&(t="type"))return f.errors=[{params:{missingProperty:t}}],!1;{const t=o;for(const r in e)if("amdContainer"!==r&&"auxiliaryComment"!==r&&"entryExports"!==r&&"export"!==r&&"name"!==r&&"type"!==r&&"umdAmdContainer"!==r&&"umdNamedDefine"!==r)return f.errors=[{params:{additionalProperty:r}}],!1;if(t===o){if(void 0!==e.amdContainer){let r=e.amdContainer;const t=o;if(o==o){if("string"!=typeof r)return f.errors=[{params:{type:"string"}}],!1;if(r.length<1)return f.errors=[{params:{}}],!1}var u=t===o}else u=!0;if(u){if(void 0!==e.auxiliaryComment){const t=o;i(e.auxiliaryComment,{instancePath:r+"/auxiliaryComment",parentData:e,parentDataProperty:"auxiliaryComment",rootData:s})||(a=null===a?i.errors:a.concat(i.errors),o=a.length),u=t===o}else u=!0;if(u){if(void 0!==e.entryExports){let r=e.entryExports;const t=o;if("last"!==r&&"all"!==r)return f.errors=[{params:{}}],!1;u=t===o}else u=!0;if(u){if(void 0!==e.export){let r=e.export;const t=o,n=o;let s=!1;const i=o;if(o===i)if(Array.isArray(r)){const e=r.length;for(let t=0;t<e;t++){let e=r[t];const n=o;if(o===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}if(n!==o)break}}else{const e={params:{type:"array"}};null===a?a=[e]:a.push(e),o++}var c=i===o;if(s=s||c,!s){const e=o;if(o===e)if("string"==typeof r){if(r.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}c=e===o,s=s||c}if(!s){const e={params:{}};return null===a?a=[e]:a.push(e),o++,f.errors=a,!1}o=n,null!==a&&(n?a.length=n:a=null),u=t===o}else u=!0;if(u){if(void 0!==e.name){const t=o;l(e.name,{instancePath:r+"/name",parentData:e,parentDataProperty:"name",rootData:s})||(a=null===a?l.errors:a.concat(l.errors),o=a.length),u=t===o}else u=!0;if(u){if(void 0!==e.type){let r=e.type;const t=o,n=o;let s=!1;const i=o;if("var"!==r&&"module"!==r&&"assign"!==r&&"assign-properties"!==r&&"this"!==r&&"window"!==r&&"self"!==r&&"global"!==r&&"commonjs"!==r&&"commonjs2"!==r&&"commonjs-module"!==r&&"commonjs-static"!==r&&"amd"!==r&&"amd-require"!==r&&"umd"!==r&&"umd2"!==r&&"jsonp"!==r&&"system"!==r){const e={params:{}};null===a?a=[e]:a.push(e),o++}var m=i===o;if(s=s||m,!s){const e=o;if("string"!=typeof r){const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}m=e===o,s=s||m}if(!s){const e={params:{}};return null===a?a=[e]:a.push(e),o++,f.errors=a,!1}o=n,null!==a&&(n?a.length=n:a=null),u=t===o}else u=!0;if(u){if(void 0!==e.umdAmdContainer){let r=e.umdAmdContainer;const t=o;if(o==o){if("string"!=typeof r)return f.errors=[{params:{type:"string"}}],!1;if(!p.test(r))return f.errors=[{params:{pattern:"^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$"}}],!1;if(r.length<1)return f.errors=[{params:{}}],!1}u=t===o}else u=!0;if(u)if(void 0!==e.umdNamedDefine){const r=o;if("boolean"!=typeof e.umdNamedDefine)return f.errors=[{params:{type:"boolean"}}],!1;u=r===o}else u=!0}}}}}}}}}}return f.errors=a,0===o}function u(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){if(!Array.isArray(e))return u.errors=[{params:{type:"array"}}],!1;{const r=e.length;for(let t=0;t<r;t++){let r=e[t];const n=0;if("string"!=typeof r)return u.errors=[{params:{type:"string"}}],!1;if(r.length<1)return u.errors=[{params:{}}],!1;if(0!==n)break}}return u.errors=null,!0}function c(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let a=null,o=0;if(0===o){if(!e||"object"!=typeof e||Array.isArray(e))return c.errors=[{params:{type:"object"}}],!1;{let t;if(void 0===e.external&&(t="external"))return c.errors=[{params:{missingProperty:t}}],!1;{const t=o;for(const r in e)if("external"!==r&&"shareScope"!==r)return c.errors=[{params:{additionalProperty:r}}],!1;if(t===o){if(void 0!==e.external){let t=e.external;const n=o,p=o;let f=!1;const m=o;if(o==o)if("string"==typeof t){if(t.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}var i=m===o;if(f=f||i,!f){const n=o;u(t,{instancePath:r+"/external",parentData:e,parentDataProperty:"external",rootData:s})||(a=null===a?u.errors:a.concat(u.errors),o=a.length),i=n===o,f=f||i}if(!f){const e={params:{}};return null===a?a=[e]:a.push(e),o++,c.errors=a,!1}o=p,null!==a&&(p?a.length=p:a=null);var l=n===o}else l=!0;if(l)if(void 0!==e.shareScope){let r=e.shareScope;const t=o;if(o===t){if("string"!=typeof r)return c.errors=[{params:{type:"string"}}],!1;if(r.length<1)return c.errors=[{params:{}}],!1}l=t===o}else l=!0}}}}return c.errors=a,0===o}function m(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let a=null,o=0;if(0===o){if(!e||"object"!=typeof e||Array.isArray(e))return m.errors=[{params:{type:"object"}}],!1;for(const t in e){let n=e[t];const l=o,p=o;let f=!1;const y=o;c(n,{instancePath:r+"/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:t,rootData:s})||(a=null===a?c.errors:a.concat(c.errors),o=a.length);var i=y===o;if(f=f||i,!f){const l=o;if(o==o)if("string"==typeof n){if(n.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}if(i=l===o,f=f||i,!f){const l=o;u(n,{instancePath:r+"/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:t,rootData:s})||(a=null===a?u.errors:a.concat(u.errors),o=a.length),i=l===o,f=f||i}}if(!f){const e={params:{}};return null===a?a=[e]:a.push(e),o++,m.errors=a,!1}if(o=p,null!==a&&(p?a.length=p:a=null),l!==o)break}}return m.errors=a,0===o}function y(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let a=null,o=0;const i=o;let l=!1;const p=o;if(o===p)if(Array.isArray(e)){const t=e.length;for(let n=0;n<t;n++){let t=e[n];const i=o,l=o;let p=!1;const u=o;if(o==o)if("string"==typeof t){if(t.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}var f=u===o;if(p=p||f,!p){const i=o;m(t,{instancePath:r+"/"+n,parentData:e,parentDataProperty:n,rootData:s})||(a=null===a?m.errors:a.concat(m.errors),o=a.length),f=i===o,p=p||f}if(p)o=l,null!==a&&(l?a.length=l:a=null);else{const e={params:{}};null===a?a=[e]:a.push(e),o++}if(i!==o)break}}else{const e={params:{type:"array"}};null===a?a=[e]:a.push(e),o++}var u=p===o;if(l=l||u,!l){const i=o;m(e,{instancePath:r,parentData:t,parentDataProperty:n,rootData:s})||(a=null===a?m.errors:a.concat(m.errors),o=a.length),u=i===o,l=l||u}if(!l){const e={params:{}};return null===a?a=[e]:a.push(e),o++,y.errors=a,!1}return o=i,null!==a&&(i?a.length=i:a=null),y.errors=a,0===o}const h={type:"object",additionalProperties:!1,properties:{eager:{type:"boolean"},exclude:{$ref:"#/definitions/SharedModuleFilter"},import:{anyOf:[{enum:[!1]},{$ref:"#/definitions/SharedItem"}]},include:{$ref:"#/definitions/SharedModuleFilter"},packageName:{type:"string",minLength:1},requiredVersion:{anyOf:[{enum:[!1]},{type:"string"}]},shareKey:{type:"string",minLength:1},shareScope:{type:"string",minLength:1},singleton:{type:"boolean"},strictVersion:{type:"boolean"},version:{anyOf:[{enum:[!1]},{type:"string"}]}}};function g(e,{instancePath:r="",parentData:n,parentDataProperty:s,rootData:a=e}={}){let o=null,i=0;if(0===i){if(!e||"object"!=typeof e||Array.isArray(e))return g.errors=[{params:{type:"object"}}],!1;{const r=i;for(const r in e)if(!t.call(h.properties,r))return g.errors=[{params:{additionalProperty:r}}],!1;if(r===i){if(void 0!==e.eager){const r=i;if("boolean"!=typeof e.eager)return g.errors=[{params:{type:"boolean"}}],!1;var l=r===i}else l=!0;if(l){if(void 0!==e.exclude){let r=e.exclude;const t=i;if(i==i){if(!r||"object"!=typeof r||Array.isArray(r))return g.errors=[{params:{type:"object"}}],!1;{const e=i;for(const e in r)if("request"!==e&&"version"!==e)return g.errors=[{params:{additionalProperty:e}}],!1;if(e===i){if(void 0!==r.request){let e=r.request;const t=i,n=i;let s=!1;const a=i;if(!(e instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),i++}var p=a===i;if(s=s||p,!s){const r=i;if(i===r)if("string"==typeof e){if(e.length<1){const e={params:{}};null===o?o=[e]:o.push(e),i++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),i++}p=r===i,s=s||p}if(!s){const e={params:{}};return null===o?o=[e]:o.push(e),i++,g.errors=o,!1}i=n,null!==o&&(n?o.length=n:o=null);var f=t===i}else f=!0;if(f)if(void 0!==r.version){let e=r.version;const t=i;if(i===t){if("string"!=typeof e)return g.errors=[{params:{type:"string"}}],!1;if(e.length<1)return g.errors=[{params:{}}],!1}f=t===i}else f=!0}}}l=t===i}else l=!0;if(l){if(void 0!==e.import){let r=e.import;const t=i,n=i;let s=!1;const a=i;if(!1!==r){const e={params:{}};null===o?o=[e]:o.push(e),i++}var u=a===i;if(s=s||u,!s){const e=i;if(i==i)if("string"==typeof r){if(r.length<1){const e={params:{}};null===o?o=[e]:o.push(e),i++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),i++}u=e===i,s=s||u}if(!s){const e={params:{}};return null===o?o=[e]:o.push(e),i++,g.errors=o,!1}i=n,null!==o&&(n?o.length=n:o=null),l=t===i}else l=!0;if(l){if(void 0!==e.include){let r=e.include;const t=i;if(i==i){if(!r||"object"!=typeof r||Array.isArray(r))return g.errors=[{params:{type:"object"}}],!1;{const e=i;for(const e in r)if("request"!==e&&"version"!==e)return g.errors=[{params:{additionalProperty:e}}],!1;if(e===i){if(void 0!==r.request){let e=r.request;const t=i,n=i;let s=!1;const a=i;if(!(e instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),i++}var c=a===i;if(s=s||c,!s){const r=i;if(i===r)if("string"==typeof e){if(e.length<1){const e={params:{}};null===o?o=[e]:o.push(e),i++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),i++}c=r===i,s=s||c}if(!s){const e={params:{}};return null===o?o=[e]:o.push(e),i++,g.errors=o,!1}i=n,null!==o&&(n?o.length=n:o=null);var m=t===i}else m=!0;if(m)if(void 0!==r.version){let e=r.version;const t=i;if(i===t){if("string"!=typeof e)return g.errors=[{params:{type:"string"}}],!1;if(e.length<1)return g.errors=[{params:{}}],!1}m=t===i}else m=!0}}}l=t===i}else l=!0;if(l){if(void 0!==e.packageName){let r=e.packageName;const t=i;if(i===t){if("string"!=typeof r)return g.errors=[{params:{type:"string"}}],!1;if(r.length<1)return g.errors=[{params:{}}],!1}l=t===i}else l=!0;if(l){if(void 0!==e.requiredVersion){let r=e.requiredVersion;const t=i,n=i;let s=!1;const a=i;if(!1!==r){const e={params:{}};null===o?o=[e]:o.push(e),i++}var y=a===i;if(s=s||y,!s){const e=i;if("string"!=typeof r){const e={params:{type:"string"}};null===o?o=[e]:o.push(e),i++}y=e===i,s=s||y}if(!s){const e={params:{}};return null===o?o=[e]:o.push(e),i++,g.errors=o,!1}i=n,null!==o&&(n?o.length=n:o=null),l=t===i}else l=!0;if(l){if(void 0!==e.shareKey){let r=e.shareKey;const t=i;if(i===t){if("string"!=typeof r)return g.errors=[{params:{type:"string"}}],!1;if(r.length<1)return g.errors=[{params:{}}],!1}l=t===i}else l=!0;if(l){if(void 0!==e.shareScope){let r=e.shareScope;const t=i;if(i===t){if("string"!=typeof r)return g.errors=[{params:{type:"string"}}],!1;if(r.length<1)return g.errors=[{params:{}}],!1}l=t===i}else l=!0;if(l){if(void 0!==e.singleton){const r=i;if("boolean"!=typeof e.singleton)return g.errors=[{params:{type:"boolean"}}],!1;l=r===i}else l=!0;if(l){if(void 0!==e.strictVersion){const r=i;if("boolean"!=typeof e.strictVersion)return g.errors=[{params:{type:"boolean"}}],!1;l=r===i}else l=!0;if(l)if(void 0!==e.version){let r=e.version;const t=i,n=i;let s=!1;const a=i;if(!1!==r){const e={params:{}};null===o?o=[e]:o.push(e),i++}var d=a===i;if(s=s||d,!s){const e=i;if("string"!=typeof r){const e={params:{type:"string"}};null===o?o=[e]:o.push(e),i++}d=e===i,s=s||d}if(!s){const e={params:{}};return null===o?o=[e]:o.push(e),i++,g.errors=o,!1}i=n,null!==o&&(n?o.length=n:o=null),l=t===i}else l=!0}}}}}}}}}}}}return g.errors=o,0===i}function d(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let a=null,o=0;if(0===o){if(!e||"object"!=typeof e||Array.isArray(e))return d.errors=[{params:{type:"object"}}],!1;for(const t in e){let n=e[t];const l=o,p=o;let f=!1;const u=o;g(n,{instancePath:r+"/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:t,rootData:s})||(a=null===a?g.errors:a.concat(g.errors),o=a.length);var i=u===o;if(f=f||i,!f){const e=o;if(o==o)if("string"==typeof n){if(n.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}i=e===o,f=f||i}if(!f){const e={params:{}};return null===a?a=[e]:a.push(e),o++,d.errors=a,!1}if(o=p,null!==a&&(p?a.length=p:a=null),l!==o)break}}return d.errors=a,0===o}function D(e,{instancePath:r="",parentData:t,parentDataProperty:n,rootData:s=e}={}){let a=null,o=0;const i=o;let l=!1;const p=o;if(o===p)if(Array.isArray(e)){const t=e.length;for(let n=0;n<t;n++){let t=e[n];const i=o,l=o;let p=!1;const u=o;if(o==o)if("string"==typeof t){if(t.length<1){const e={params:{}};null===a?a=[e]:a.push(e),o++}}else{const e={params:{type:"string"}};null===a?a=[e]:a.push(e),o++}var f=u===o;if(p=p||f,!p){const i=o;d(t,{instancePath:r+"/"+n,parentData:e,parentDataProperty:n,rootData:s})||(a=null===a?d.errors:a.concat(d.errors),o=a.length),f=i===o,p=p||f}if(p)o=l,null!==a&&(l?a.length=l:a=null);else{const e={params:{}};null===a?a=[e]:a.push(e),o++}if(i!==o)break}}else{const e={params:{type:"array"}};null===a?a=[e]:a.push(e),o++}var u=p===o;if(l=l||u,!l){const i=o;d(e,{instancePath:r,parentData:t,parentDataProperty:n,rootData:s})||(a=null===a?d.errors:a.concat(d.errors),o=a.length),u=i===o,l=l||u}if(!l){const e={params:{}};return null===a?a=[e]:a.push(e),o++,D.errors=a,!1}return o=i,null!==a&&(i?a.length=i:a=null),D.errors=a,0===o}function b(n,{instancePath:s="",parentData:a,parentDataProperty:i,rootData:l=n}={}){let p=null,u=0;if(0===u){if(!n||"object"!=typeof n||Array.isArray(n))return b.errors=[{params:{type:"object"}}],!1;{const a=u;for(const e in n)if(!t.call(r.properties,e))return b.errors=[{params:{additionalProperty:e}}],!1;if(a===u){if(void 0!==n.exposes){const e=u;o(n.exposes,{instancePath:s+"/exposes",parentData:n,parentDataProperty:"exposes",rootData:l})||(p=null===p?o.errors:p.concat(o.errors),u=p.length);var c=e===u}else c=!0;if(c){if(void 0!==n.filename){let r=n.filename;const t=u;if(u===t){if("string"!=typeof r)return b.errors=[{params:{type:"string"}}],!1;if(r.includes("!")||!1!==e.test(r))return b.errors=[{params:{}}],!1}c=t===u}else c=!0;if(c){if(void 0!==n.library){const e=u;f(n.library,{instancePath:s+"/library",parentData:n,parentDataProperty:"library",rootData:l})||(p=null===p?f.errors:p.concat(f.errors),u=p.length),c=e===u}else c=!0;if(c){if(void 0!==n.name){const e=u;if("string"!=typeof n.name)return b.errors=[{params:{type:"string"}}],!1;c=e===u}else c=!0;if(c){if(void 0!==n.remoteType){let e=n.remoteType;const r=u,t=u;let s=!1,a=null;const o=u;if("var"!==e&&"module"!==e&&"assign"!==e&&"this"!==e&&"window"!==e&&"self"!==e&&"global"!==e&&"commonjs"!==e&&"commonjs2"!==e&&"commonjs-module"!==e&&"commonjs-static"!==e&&"amd"!==e&&"amd-require"!==e&&"amd-async"!==e&&"umd"!==e&&"umd2"!==e&&"jsonp"!==e&&"system"!==e&&"promise"!==e&&"import"!==e&&"module-import"!==e&&"script"!==e&&"node-commonjs"!==e&&"asset"!==e&&"asset-url"!==e&&"css-import"!==e&&"css-url"!==e){const e={params:{}};null===p?p=[e]:p.push(e),u++}if(o===u&&(s=!0,a=0),!s){const e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),u++,b.errors=p,!1}u=t,null!==p&&(t?p.length=t:p=null),c=r===u}else c=!0;if(c){if(void 0!==n.remotes){const e=u;y(n.remotes,{instancePath:s+"/remotes",parentData:n,parentDataProperty:"remotes",rootData:l})||(p=null===p?y.errors:p.concat(y.errors),u=p.length),c=e===u}else c=!0;if(c){if(void 0!==n.runtime){let e=n.runtime;const r=u,t=u;let s=!1;const a=u;if(!1!==e){const e={params:{}};null===p?p=[e]:p.push(e),u++}var m=a===u;if(s=s||m,!s){const r=u;if(u===r)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),u++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),u++}m=r===u,s=s||m}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),u++,b.errors=p,!1}u=t,null!==p&&(t?p.length=t:p=null),c=r===u}else c=!0;if(c){if(void 0!==n.shareScope){let e=n.shareScope;const r=u;if(u===r){if("string"!=typeof e)return b.errors=[{params:{type:"string"}}],!1;if(e.length<1)return b.errors=[{params:{}}],!1}c=r===u}else c=!0;if(c)if(void 0!==n.shared){const e=u;D(n.shared,{instancePath:s+"/shared",parentData:n,parentDataProperty:"shared",rootData:l})||(p=null===p?D.errors:p.concat(D.errors),u=p.length),c=e===u}else c=!0}}}}}}}}}}return b.errors=p,0===u}
|
|
7
|
+
"use strict";module.exports=x,module.exports.default=x;let e={definitions:{AmdContainer:{type:"string",minLength:1},AuxiliaryComment:{anyOf:[{type:"string"},{$ref:"#/definitions/LibraryCustomUmdCommentObject"}]},EntryRuntime:{anyOf:[{enum:[!1]},{type:"string",minLength:1}]},Exposes:{anyOf:[{type:"array",items:{anyOf:[{$ref:"#/definitions/ExposesItem"},{$ref:"#/definitions/ExposesObject"}]}},{$ref:"#/definitions/ExposesObject"}]},ExposesConfig:{type:"object",additionalProperties:!1,properties:{import:{anyOf:[{$ref:"#/definitions/ExposesItem"},{$ref:"#/definitions/ExposesItems"}]},name:{type:"string"}},required:["import"]},ExposesItem:{type:"string",minLength:1},ExposesItems:{type:"array",items:{$ref:"#/definitions/ExposesItem"}},ExposesObject:{type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/ExposesConfig"},{$ref:"#/definitions/ExposesItem"},{$ref:"#/definitions/ExposesItems"}]}},ExternalsType:{enum:["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","amd-async","umd","umd2","jsonp","system","promise","import","module-import","script","node-commonjs","asset","asset-url","css-import","css-url"]},LibraryCustomUmdCommentObject:{type:"object",additionalProperties:!1,properties:{amd:{type:"string"},commonjs:{type:"string"},commonjs2:{type:"string"},root:{type:"string"}}},LibraryCustomUmdObject:{type:"object",additionalProperties:!1,properties:{amd:{type:"string",minLength:1},commonjs:{type:"string",minLength:1},root:{anyOf:[{type:"array",items:{type:"string",minLength:1}},{type:"string",minLength:1}]}}},LibraryEntryExports:{enum:["last","all"]},LibraryExport:{anyOf:[{type:"array",items:{type:"string",minLength:1}},{type:"string",minLength:1}]},LibraryName:{anyOf:[{type:"array",items:{type:"string",minLength:1},minItems:1},{type:"string",minLength:1},{$ref:"#/definitions/LibraryCustomUmdObject"}]},LibraryOptions:{type:"object",additionalProperties:!1,properties:{amdContainer:{$ref:"#/definitions/AmdContainer"},auxiliaryComment:{$ref:"#/definitions/AuxiliaryComment"},entryExports:{$ref:"#/definitions/LibraryEntryExports"},export:{$ref:"#/definitions/LibraryExport"},name:{$ref:"#/definitions/LibraryName"},type:{$ref:"#/definitions/LibraryType"},umdAmdContainer:{$ref:"#/definitions/UmdAmdContainer"},umdNamedDefine:{$ref:"#/definitions/UmdNamedDefine"}},required:["type"]},LibraryType:{anyOf:[{enum:["var","module","assign","assign-properties","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","umd","umd2","jsonp","system"]},{type:"string"}]},Remotes:{anyOf:[{type:"array",items:{anyOf:[{$ref:"#/definitions/RemotesItem"},{$ref:"#/definitions/RemotesObject"}]}},{$ref:"#/definitions/RemotesObject"}]},RemotesConfig:{type:"object",additionalProperties:!1,properties:{external:{anyOf:[{$ref:"#/definitions/RemotesItem"},{$ref:"#/definitions/RemotesItems"}]},shareScope:{type:"string",minLength:1}},required:["external"]},RemotesItem:{type:"string",minLength:1},RemotesItems:{type:"array",items:{$ref:"#/definitions/RemotesItem"}},RemotesObject:{type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/RemotesConfig"},{$ref:"#/definitions/RemotesItem"},{$ref:"#/definitions/RemotesItems"}]}},Shared:{anyOf:[{type:"array",items:{anyOf:[{$ref:"#/definitions/SharedItem"},{$ref:"#/definitions/SharedObject"}]}},{$ref:"#/definitions/SharedObject"}]},SharedConfig:{type:"object",additionalProperties:!1,properties:{eager:{type:"boolean"},exclude:{$ref:"#/definitions/SharedModuleFilter"},import:{anyOf:[{enum:[!1]},{$ref:"#/definitions/SharedItem"}]},include:{$ref:"#/definitions/SharedModuleFilter"},packageName:{type:"string",minLength:1},requiredVersion:{anyOf:[{enum:[!1]},{type:"string"}]},shareKey:{type:"string",minLength:1},shareScope:{type:"string",minLength:1},singleton:{type:"boolean"},strictVersion:{type:"boolean"},version:{anyOf:[{enum:[!1]},{type:"string"}]}}},SharedItem:{type:"string",minLength:1},SharedModuleFilter:{type:"object",additionalProperties:!1,properties:{request:{anyOf:[{instanceof:"RegExp"},{type:"string",minLength:1}]},version:{type:"string",minLength:1}}},SharedObject:{type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/SharedConfig"},{$ref:"#/definitions/SharedItem"}]}},UmdAmdContainer:{type:"string",minLength:1,pattern:"^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$"},UmdNamedDefine:{type:"boolean"}},type:"object",additionalProperties:!1,properties:{exposes:{$ref:"#/definitions/Exposes"},filename:{type:"string",absolutePath:!1},library:{$ref:"#/definitions/LibraryOptions"},name:{type:"string"},remoteType:{oneOf:[{$ref:"#/definitions/ExternalsType"}]},remotes:{$ref:"#/definitions/Remotes"},runtime:{$ref:"#/definitions/EntryRuntime"},shareScope:{type:"string",minLength:1},shared:{$ref:"#/definitions/Shared"}},$id:"ModuleFederationPlugin.json"},r={enum:["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","amd-async","umd","umd2","jsonp","system","promise","import","module-import","script","node-commonjs","asset","asset-url","css-import","css-url"]},t={anyOf:[{enum:[!1]},{type:"string",minLength:1}]},n=Object.prototype.hasOwnProperty,s=function(e){let r=e.length,t,n=0,s=0;for(;s<r;)n++,(t=e.charCodeAt(s++))>=55296&&t<=56319&&s<r&&(64512&(t=e.charCodeAt(s)))==56320&&s++;return n};function a(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){if(!Array.isArray(e))return a.errors=[{params:{type:"array"}}],!1;{let r=e.length;for(let t=0;t<r;t++){let r=e[t];if("string"!=typeof r)return a.errors=[{params:{type:"string"}}],!1;if(s(r)<1)return a.errors=[{params:{limit:1}}],!1}}return a.errors=null,!0}function o(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;if(n===0){if(!e||"object"!=typeof e||Array.isArray(e))return o.errors=[{params:{type:"object"}}],!1;{let p;if(e.import===void 0&&(p="import"))return o.errors=[{params:{missingProperty:p}}],!1;{let p=n;for(let r in e)if("import"!==r&&"name"!==r)return o.errors=[{params:{additionalProperty:r}}],!1;if(p===n){if(e.import!==void 0){let p=e.import,f=n,m=n,u=!1,c=n;if(n==n)if("string"==typeof p){if(s(p)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}var i=c===n;if(!(u=u||i)){let s=n;a(p,{instancePath:r+"/import",parentData:e,parentDataProperty:"import",rootData})||(n=(t=t===null?a.errors:t.concat(a.errors)).length),i=s===n,u=u||i}if(!u){let e={params:{}};return t===null?t=[e]:t.push(e),n++,o.errors=t,!1}n=m,t!==null&&(m?t.length=m:t=null);var l=f===n}else l=!0;if(l)if(e.name!==void 0){if("string"!=typeof e.name)return o.errors=[{params:{type:"string"}}],!1;l=n===n}else l=!0}}}}return o.errors=t,n===0}function i(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;if(n===0){if(!e||"object"!=typeof e||Array.isArray(e))return i.errors=[{params:{type:"object"}}],!1;for(let p in e){let f=e[p],m=n,u=n,c=!1,y=n;o(f,{instancePath:r+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData})||(n=(t=t===null?o.errors:t.concat(o.errors)).length);var l=y===n;if(!(c=c||l)){let o=n;if(n==n)if("string"==typeof f){if(s(f)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}if(l=o===n,!(c=c||l)){let s=n;a(f,{instancePath:r+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData})||(n=(t=t===null?a.errors:t.concat(a.errors)).length),l=s===n,c=c||l}}if(!c){let e={params:{}};return t===null?t=[e]:t.push(e),n++,i.errors=t,!1}if(n=u,t!==null&&(u?t.length=u:t=null),m!==n)break}}return i.errors=t,n===0}function l(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0,a=n,o=!1,p=n;if(n===p)if(Array.isArray(e)){let a=e.length;for(let o=0;o<a;o++){let a=e[o],l=n,p=n,m=!1,u=n;if(n==n)if("string"==typeof a){if(s(a)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}var f=u===n;if(!(m=m||f)){let s=n;i(a,{instancePath:r+"/"+o,parentData:e,parentDataProperty:o,rootData})||(n=(t=t===null?i.errors:t.concat(i.errors)).length),f=s===n,m=m||f}if(m)n=p,t!==null&&(p?t.length=p:t=null);else{let e={params:{}};t===null?t=[e]:t.push(e),n++}if(l!==n)break}}else{let e={params:{type:"array"}};t===null?t=[e]:t.push(e),n++}var m=p===n;if(!(o=o||m)){let s=n;i(e,{instancePath:r,parentData,parentDataProperty,rootData})||(n=(t=t===null?i.errors:t.concat(i.errors)).length),m=s===n,o=o||m}if(!o){let e={params:{}};return t===null?t=[e]:t.push(e),n++,l.errors=t,!1}return n=a,t!==null&&(a?t.length=a:t=null),l.errors=t,n===0}let p={enum:["last","all"]},f={anyOf:[{enum:["var","module","assign","assign-properties","this","window","self","global","commonjs","commonjs2","commonjs-module","commonjs-static","amd","amd-require","umd","umd2","jsonp","system"]},{type:"string"}]};function m(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){let r=null,t=0,n=t,s=!1,a=t;if("string"!=typeof e){let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}var o=a===t;if(!(s=s||o)){let n=t;if(t==t)if(e&&"object"==typeof e&&!Array.isArray(e)){let n=t;for(let n in e)if("amd"!==n&&"commonjs"!==n&&"commonjs2"!==n&&"root"!==n){let e={params:{additionalProperty:n}};r===null?r=[e]:r.push(e),t++;break}if(n===t){if(e.amd!==void 0){let n=t;if("string"!=typeof e.amd){let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}var i=n===t}else i=!0;if(i){if(e.commonjs!==void 0){let n=t;if("string"!=typeof e.commonjs){let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}i=n===t}else i=!0;if(i){if(e.commonjs2!==void 0){let n=t;if("string"!=typeof e.commonjs2){let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}i=n===t}else i=!0;if(i)if(e.root!==void 0){let n=t;if("string"!=typeof e.root){let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}i=n===t}else i=!0}}}}else{let e={params:{type:"object"}};r===null?r=[e]:r.push(e),t++}o=n===t,s=s||o}if(!s){let e={params:{}};return r===null?r=[e]:r.push(e),t++,m.errors=r,!1}return t=n,r!==null&&(n?r.length=n:r=null),m.errors=r,t===0}function u(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){let r=null,t=0,n=t,a=!1,o=t;if(t===o)if(Array.isArray(e))if(e.length<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}else{let n=e.length;for(let a=0;a<n;a++){let n=e[a],o=t;if(t===o)if("string"==typeof n){if(s(n)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}if(o!==t)break}}else{let e={params:{type:"array"}};r===null?r=[e]:r.push(e),t++}var i=o===t;if(!(a=a||i)){let n=t;if(t===n)if("string"==typeof e){if(s(e)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}if(i=n===t,!(a=a||i)){let n=t;if(t==t)if(e&&"object"==typeof e&&!Array.isArray(e)){let n=t;for(let n in e)if("amd"!==n&&"commonjs"!==n&&"root"!==n){let e={params:{additionalProperty:n}};r===null?r=[e]:r.push(e),t++;break}if(n===t){if(e.amd!==void 0){let n=e.amd,a=t;if(t===a)if("string"==typeof n){if(s(n)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}var l=a===t}else l=!0;if(l){if(e.commonjs!==void 0){let n=e.commonjs,a=t;if(t===a)if("string"==typeof n){if(s(n)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}l=a===t}else l=!0;if(l)if(e.root!==void 0){let n=e.root,a=t,o=t,i=!1,f=t;if(t===f)if(Array.isArray(n)){let e=n.length;for(let a=0;a<e;a++){let e=n[a],o=t;if(t===o)if("string"==typeof e){if(s(e)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}if(o!==t)break}}else{let e={params:{type:"array"}};r===null?r=[e]:r.push(e),t++}var p=f===t;if(!(i=i||p)){let e=t;if(t===e)if("string"==typeof n){if(s(n)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}p=e===t,i=i||p}if(i)t=o,r!==null&&(o?r.length=o:r=null);else{let e={params:{}};r===null?r=[e]:r.push(e),t++}l=a===t}else l=!0}}}else{let e={params:{type:"object"}};r===null?r=[e]:r.push(e),t++}i=n===t,a=a||i}}if(!a){let e={params:{}};return r===null?r=[e]:r.push(e),t++,u.errors=r,!1}return t=n,r!==null&&(n?r.length=n:r=null),u.errors=r,t===0}let c=RegExp("^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$","u");function y(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;if(n===0){if(!e||"object"!=typeof e||Array.isArray(e))return y.errors=[{params:{type:"object"}}],!1;{let l;if(e.type===void 0&&(l="type"))return y.errors=[{params:{missingProperty:l}}],!1;{let l=n;for(let r in e)if("amdContainer"!==r&&"auxiliaryComment"!==r&&"entryExports"!==r&&"export"!==r&&"name"!==r&&"type"!==r&&"umdAmdContainer"!==r&&"umdNamedDefine"!==r)return y.errors=[{params:{additionalProperty:r}}],!1;if(l===n){if(e.amdContainer!==void 0){let r=e.amdContainer;if(n==n){if("string"!=typeof r)return y.errors=[{params:{type:"string"}}],!1;if(s(r)<1)return y.errors=[{params:{limit:1}}],!1}var a=n===n}else a=!0;if(a){if(e.auxiliaryComment!==void 0){let s=n;m(e.auxiliaryComment,{instancePath:r+"/auxiliaryComment",parentData:e,parentDataProperty:"auxiliaryComment",rootData})||(n=(t=t===null?m.errors:t.concat(m.errors)).length),a=s===n}else a=!0;if(a){if(e.entryExports!==void 0){let r=e.entryExports;if("last"!==r&&"all"!==r)return y.errors=[{params:{allowedValues:p.enum}}],!1;a=n===n}else a=!0;if(a){if(e.export!==void 0){let r=e.export,i=n,l=n,p=!1,f=n;if(n===f)if(Array.isArray(r)){let e=r.length;for(let a=0;a<e;a++){let e=r[a],o=n;if(n===o)if("string"==typeof e){if(s(e)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}if(o!==n)break}}else{let e={params:{type:"array"}};t===null?t=[e]:t.push(e),n++}var o=f===n;if(!(p=p||o)){let e=n;if(n===e)if("string"==typeof r){if(s(r)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}o=e===n,p=p||o}if(!p){let e={params:{}};return t===null?t=[e]:t.push(e),n++,y.errors=t,!1}n=l,t!==null&&(l?t.length=l:t=null),a=i===n}else a=!0;if(a){if(e.name!==void 0){let s=n;u(e.name,{instancePath:r+"/name",parentData:e,parentDataProperty:"name",rootData})||(n=(t=t===null?u.errors:t.concat(u.errors)).length),a=s===n}else a=!0;if(a){if(e.type!==void 0){let r=e.type,s=n,o=n,l=!1,p=n;if("var"!==r&&"module"!==r&&"assign"!==r&&"assign-properties"!==r&&"this"!==r&&"window"!==r&&"self"!==r&&"global"!==r&&"commonjs"!==r&&"commonjs2"!==r&&"commonjs-module"!==r&&"commonjs-static"!==r&&"amd"!==r&&"amd-require"!==r&&"umd"!==r&&"umd2"!==r&&"jsonp"!==r&&"system"!==r){let e={params:{allowedValues:f.anyOf[0].enum}};t===null?t=[e]:t.push(e),n++}var i=p===n;if(!(l=l||i)){let e=n;if("string"!=typeof r){let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}i=e===n,l=l||i}if(!l){let e={params:{}};return t===null?t=[e]:t.push(e),n++,y.errors=t,!1}n=o,t!==null&&(o?t.length=o:t=null),a=s===n}else a=!0;if(a){if(e.umdAmdContainer!==void 0){let r=e.umdAmdContainer;if(n==n){if("string"!=typeof r)return y.errors=[{params:{type:"string"}}],!1;if(s(r)<1)return y.errors=[{params:{limit:1}}],!1;if(!c.test(r))return y.errors=[{params:{pattern:"^[A-Za-z_$][A-Za-z0-9_$]*(\\.[A-Za-z_$][A-Za-z0-9_$]*)*$"}}],!1}a=n===n}else a=!0;if(a)if(e.umdNamedDefine!==void 0){if("boolean"!=typeof e.umdNamedDefine)return y.errors=[{params:{type:"boolean"}}],!1;a=n===n}else a=!0}}}}}}}}}}return y.errors=t,n===0}function d(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){if(!Array.isArray(e))return d.errors=[{params:{type:"array"}}],!1;{let r=e.length;for(let t=0;t<r;t++){let r=e[t];if("string"!=typeof r)return d.errors=[{params:{type:"string"}}],!1;if(s(r)<1)return d.errors=[{params:{limit:1}}],!1}}return d.errors=null,!0}function g(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;if(n===0){if(!e||"object"!=typeof e||Array.isArray(e))return g.errors=[{params:{type:"object"}}],!1;{let i;if(e.external===void 0&&(i="external"))return g.errors=[{params:{missingProperty:i}}],!1;{let i=n;for(let r in e)if("external"!==r&&"shareScope"!==r)return g.errors=[{params:{additionalProperty:r}}],!1;if(i===n){if(e.external!==void 0){let i=e.external,l=n,p=n,f=!1,m=n;if(n==n)if("string"==typeof i){if(s(i)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}var a=m===n;if(!(f=f||a)){let s=n;d(i,{instancePath:r+"/external",parentData:e,parentDataProperty:"external",rootData})||(n=(t=t===null?d.errors:t.concat(d.errors)).length),a=s===n,f=f||a}if(!f){let e={params:{}};return t===null?t=[e]:t.push(e),n++,g.errors=t,!1}n=p,t!==null&&(p?t.length=p:t=null);var o=l===n}else o=!0;if(o)if(e.shareScope!==void 0){let r=e.shareScope,t=n;if(n===t){if("string"!=typeof r)return g.errors=[{params:{type:"string"}}],!1;if(s(r)<1)return g.errors=[{params:{limit:1}}],!1}o=t===n}else o=!0}}}}return g.errors=t,n===0}function h(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;if(n===0){if(!e||"object"!=typeof e||Array.isArray(e))return h.errors=[{params:{type:"object"}}],!1;for(let o in e){let i=e[o],l=n,p=n,f=!1,m=n;g(i,{instancePath:r+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:o,rootData})||(n=(t=t===null?g.errors:t.concat(g.errors)).length);var a=m===n;if(!(f=f||a)){let l=n;if(n==n)if("string"==typeof i){if(s(i)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}if(a=l===n,!(f=f||a)){let s=n;d(i,{instancePath:r+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:o,rootData})||(n=(t=t===null?d.errors:t.concat(d.errors)).length),a=s===n,f=f||a}}if(!f){let e={params:{}};return t===null?t=[e]:t.push(e),n++,h.errors=t,!1}if(n=p,t!==null&&(p?t.length=p:t=null),l!==n)break}}return h.errors=t,n===0}function D(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0,a=n,o=!1,i=n;if(n===i)if(Array.isArray(e)){let a=e.length;for(let o=0;o<a;o++){let a=e[o],i=n,p=n,f=!1,m=n;if(n==n)if("string"==typeof a){if(s(a)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}var l=m===n;if(!(f=f||l)){let s=n;h(a,{instancePath:r+"/"+o,parentData:e,parentDataProperty:o,rootData})||(n=(t=t===null?h.errors:t.concat(h.errors)).length),l=s===n,f=f||l}if(f)n=p,t!==null&&(p?t.length=p:t=null);else{let e={params:{}};t===null?t=[e]:t.push(e),n++}if(i!==n)break}}else{let e={params:{type:"array"}};t===null?t=[e]:t.push(e),n++}var p=i===n;if(!(o=o||p)){let s=n;h(e,{instancePath:r,parentData,parentDataProperty,rootData})||(n=(t=t===null?h.errors:t.concat(h.errors)).length),p=s===n,o=o||p}if(!o){let e={params:{}};return t===null?t=[e]:t.push(e),n++,D.errors=t,!1}return n=a,t!==null&&(a?t.length=a:t=null),D.errors=t,n===0}let b={type:"object",additionalProperties:!1,properties:{eager:{type:"boolean"},exclude:{$ref:"#/definitions/SharedModuleFilter"},import:{anyOf:[{enum:[!1]},{$ref:"#/definitions/SharedItem"}]},include:{$ref:"#/definitions/SharedModuleFilter"},packageName:{type:"string",minLength:1},requiredVersion:{anyOf:[{enum:[!1]},{type:"string"}]},shareKey:{type:"string",minLength:1},shareScope:{type:"string",minLength:1},singleton:{type:"boolean"},strictVersion:{type:"boolean"},version:{anyOf:[{enum:[!1]},{type:"string"}]}}};function j(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){let r=null,t=0;if(t===0){if(!e||"object"!=typeof e||Array.isArray(e))return j.errors=[{params:{type:"object"}}],!1;{let c=t;for(let r in e)if(!n.call(b.properties,r))return j.errors=[{params:{additionalProperty:r}}],!1;if(c===t){if(e.eager!==void 0){if("boolean"!=typeof e.eager)return j.errors=[{params:{type:"boolean"}}],!1;var a=t===t}else a=!0;if(a){if(e.exclude!==void 0){let n=e.exclude,l=t;if(t==t){if(!n||"object"!=typeof n||Array.isArray(n))return j.errors=[{params:{type:"object"}}],!1;{let e=t;for(let e in n)if("request"!==e&&"version"!==e)return j.errors=[{params:{additionalProperty:e}}],!1;if(e===t){if(n.request!==void 0){let e=n.request,a=t,l=t,p=!1,f=t;if(!(e instanceof RegExp)){let e={params:{}};r===null?r=[e]:r.push(e),t++}var o=f===t;if(!(p=p||o)){let n=t;if(t===n)if("string"==typeof e){if(s(e)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}o=n===t,p=p||o}if(!p){let e={params:{}};return r===null?r=[e]:r.push(e),t++,j.errors=r,!1}t=l,r!==null&&(l?r.length=l:r=null);var i=a===t}else i=!0;if(i)if(n.version!==void 0){let e=n.version,r=t;if(t===r){if("string"!=typeof e)return j.errors=[{params:{type:"string"}}],!1;if(s(e)<1)return j.errors=[{params:{limit:1}}],!1}i=r===t}else i=!0}}}a=l===t}else a=!0;if(a){if(e.import!==void 0){let n=e.import,o=t,i=t,p=!1,f=t;if(!1!==n){let e={params:{allowedValues:b.properties.import.anyOf[0].enum}};r===null?r=[e]:r.push(e),t++}var l=f===t;if(!(p=p||l)){let e=t;if(t==t)if("string"==typeof n){if(s(n)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}l=e===t,p=p||l}if(!p){let e={params:{}};return r===null?r=[e]:r.push(e),t++,j.errors=r,!1}t=i,r!==null&&(i?r.length=i:r=null),a=o===t}else a=!0;if(a){if(e.include!==void 0){let n=e.include,o=t;if(t==t){if(!n||"object"!=typeof n||Array.isArray(n))return j.errors=[{params:{type:"object"}}],!1;{let e=t;for(let e in n)if("request"!==e&&"version"!==e)return j.errors=[{params:{additionalProperty:e}}],!1;if(e===t){if(n.request!==void 0){let e=n.request,a=t,o=t,i=!1,l=t;if(!(e instanceof RegExp)){let e={params:{}};r===null?r=[e]:r.push(e),t++}var p=l===t;if(!(i=i||p)){let n=t;if(t===n)if("string"==typeof e){if(s(e)<1){let e={params:{limit:1}};r===null?r=[e]:r.push(e),t++}}else{let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}p=n===t,i=i||p}if(!i){let e={params:{}};return r===null?r=[e]:r.push(e),t++,j.errors=r,!1}t=o,r!==null&&(o?r.length=o:r=null);var f=a===t}else f=!0;if(f)if(n.version!==void 0){let e=n.version,r=t;if(t===r){if("string"!=typeof e)return j.errors=[{params:{type:"string"}}],!1;if(s(e)<1)return j.errors=[{params:{limit:1}}],!1}f=r===t}else f=!0}}}a=o===t}else a=!0;if(a){if(e.packageName!==void 0){let r=e.packageName,n=t;if(t===n){if("string"!=typeof r)return j.errors=[{params:{type:"string"}}],!1;if(s(r)<1)return j.errors=[{params:{limit:1}}],!1}a=n===t}else a=!0;if(a){if(e.requiredVersion!==void 0){let n=e.requiredVersion,s=t,o=t,i=!1,l=t;if(!1!==n){let e={params:{allowedValues:b.properties.requiredVersion.anyOf[0].enum}};r===null?r=[e]:r.push(e),t++}var m=l===t;if(!(i=i||m)){let e=t;if("string"!=typeof n){let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}m=e===t,i=i||m}if(!i){let e={params:{}};return r===null?r=[e]:r.push(e),t++,j.errors=r,!1}t=o,r!==null&&(o?r.length=o:r=null),a=s===t}else a=!0;if(a){if(e.shareKey!==void 0){let r=e.shareKey,n=t;if(t===n){if("string"!=typeof r)return j.errors=[{params:{type:"string"}}],!1;if(s(r)<1)return j.errors=[{params:{limit:1}}],!1}a=n===t}else a=!0;if(a){if(e.shareScope!==void 0){let r=e.shareScope,n=t;if(t===n){if("string"!=typeof r)return j.errors=[{params:{type:"string"}}],!1;if(s(r)<1)return j.errors=[{params:{limit:1}}],!1}a=n===t}else a=!0;if(a){if(e.singleton!==void 0){if("boolean"!=typeof e.singleton)return j.errors=[{params:{type:"boolean"}}],!1;a=t===t}else a=!0;if(a){if(e.strictVersion!==void 0){if("boolean"!=typeof e.strictVersion)return j.errors=[{params:{type:"boolean"}}],!1;a=t===t}else a=!0;if(a)if(e.version!==void 0){let n=e.version,s=t,o=t,i=!1,l=t;if(!1!==n){let e={params:{allowedValues:b.properties.version.anyOf[0].enum}};r===null?r=[e]:r.push(e),t++}var u=l===t;if(!(i=i||u)){let e=t;if("string"!=typeof n){let e={params:{type:"string"}};r===null?r=[e]:r.push(e),t++}u=e===t,i=i||u}if(!i){let e={params:{}};return r===null?r=[e]:r.push(e),t++,j.errors=r,!1}t=o,r!==null&&(o?r.length=o:r=null),a=s===t}else a=!0}}}}}}}}}}}}return j.errors=r,t===0}function v(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;if(n===0){if(!e||"object"!=typeof e||Array.isArray(e))return v.errors=[{params:{type:"object"}}],!1;for(let o in e){let i=e[o],l=n,p=n,f=!1,m=n;j(i,{instancePath:r+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:o,rootData})||(n=(t=t===null?j.errors:t.concat(j.errors)).length);var a=m===n;if(!(f=f||a)){let e=n;if(n==n)if("string"==typeof i){if(s(i)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}a=e===n,f=f||a}if(!f){let e={params:{}};return t===null?t=[e]:t.push(e),n++,v.errors=t,!1}if(n=p,t!==null&&(p?t.length=p:t=null),l!==n)break}}return v.errors=t,n===0}function P(e,{instancePath:r="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0,a=n,o=!1,i=n;if(n===i)if(Array.isArray(e)){let a=e.length;for(let o=0;o<a;o++){let a=e[o],i=n,p=n,f=!1,m=n;if(n==n)if("string"==typeof a){if(s(a)<1){let e={params:{limit:1}};t===null?t=[e]:t.push(e),n++}}else{let e={params:{type:"string"}};t===null?t=[e]:t.push(e),n++}var l=m===n;if(!(f=f||l)){let s=n;v(a,{instancePath:r+"/"+o,parentData:e,parentDataProperty:o,rootData})||(n=(t=t===null?v.errors:t.concat(v.errors)).length),l=s===n,f=f||l}if(f)n=p,t!==null&&(p?t.length=p:t=null);else{let e={params:{}};t===null?t=[e]:t.push(e),n++}if(i!==n)break}}else{let e={params:{type:"array"}};t===null?t=[e]:t.push(e),n++}var p=i===n;if(!(o=o||p)){let s=n;v(e,{instancePath:r,parentData,parentDataProperty,rootData})||(n=(t=t===null?v.errors:t.concat(v.errors)).length),p=s===n,o=o||p}if(!o){let e={params:{}};return t===null?t=[e]:t.push(e),n++,P.errors=t,!1}return n=a,t!==null&&(a?t.length=a:t=null),P.errors=t,n===0}let A=/^(?:file:(?=\/))?(?:[A-Za-z]:(\\|\/)|\\\\|\/)/i;function x(a,{instancePath:o="",parentData,parentDataProperty,rootData=a}={}){let i=null,p=0;if(p===0){if(!a||"object"!=typeof a||Array.isArray(a))return x.errors=[{params:{type:"object"}}],!1;{let u=p;for(let r in a)if(!n.call(e.properties,r))return x.errors=[{params:{additionalProperty:r}}],!1;if(u===p){if(a.exposes!==void 0){let e=p;l(a.exposes,{instancePath:o+"/exposes",parentData:a,parentDataProperty:"exposes",rootData})||(p=(i=i===null?l.errors:i.concat(l.errors)).length);var f=e===p}else f=!0;if(f){if(a.filename!==void 0){let e=a.filename,r=p;if(p===r){if("string"!=typeof e)return x.errors=[{params:{type:"string"}}],!1;if(e.includes("!")||!1!==A.test(e))return x.errors=[{params:{}}],!1}f=r===p}else f=!0;if(f){if(a.library!==void 0){let e=p;y(a.library,{instancePath:o+"/library",parentData:a,parentDataProperty:"library",rootData})||(p=(i=i===null?y.errors:i.concat(y.errors)).length),f=e===p}else f=!0;if(f){if(a.name!==void 0){if("string"!=typeof a.name)return x.errors=[{params:{type:"string"}}],!1;f=p===p}else f=!0;if(f){if(a.remoteType!==void 0){let e=a.remoteType,t=p,n=p,s=!1,o=null,l=p;if("var"!==e&&"module"!==e&&"assign"!==e&&"this"!==e&&"window"!==e&&"self"!==e&&"global"!==e&&"commonjs"!==e&&"commonjs2"!==e&&"commonjs-module"!==e&&"commonjs-static"!==e&&"amd"!==e&&"amd-require"!==e&&"amd-async"!==e&&"umd"!==e&&"umd2"!==e&&"jsonp"!==e&&"system"!==e&&"promise"!==e&&"import"!==e&&"module-import"!==e&&"script"!==e&&"node-commonjs"!==e&&"asset"!==e&&"asset-url"!==e&&"css-import"!==e&&"css-url"!==e){let e={params:{allowedValues:r.enum}};i===null?i=[e]:i.push(e),p++}if(l===p&&(s=!0,o=0),!s){let e={params:{passingSchemas:o}};return i===null?i=[e]:i.push(e),p++,x.errors=i,!1}p=n,i!==null&&(n?i.length=n:i=null),f=t===p}else f=!0;if(f){if(a.remotes!==void 0){let e=p;D(a.remotes,{instancePath:o+"/remotes",parentData:a,parentDataProperty:"remotes",rootData})||(p=(i=i===null?D.errors:i.concat(D.errors)).length),f=e===p}else f=!0;if(f){if(a.runtime!==void 0){let e=a.runtime,r=p,n=p,o=!1,l=p;if(!1!==e){let e={params:{allowedValues:t.anyOf[0].enum}};i===null?i=[e]:i.push(e),p++}var m=l===p;if(!(o=o||m)){let r=p;if(p===r)if("string"==typeof e){if(s(e)<1){let e={params:{limit:1}};i===null?i=[e]:i.push(e),p++}}else{let e={params:{type:"string"}};i===null?i=[e]:i.push(e),p++}m=r===p,o=o||m}if(!o){let e={params:{}};return i===null?i=[e]:i.push(e),p++,x.errors=i,!1}p=n,i!==null&&(n?i.length=n:i=null),f=r===p}else f=!0;if(f){if(a.shareScope!==void 0){let e=a.shareScope,r=p;if(p===r){if("string"!=typeof e)return x.errors=[{params:{type:"string"}}],!1;if(s(e)<1)return x.errors=[{params:{limit:1}}],!1}f=r===p}else f=!0;if(f)if(a.shared!==void 0){let e=p;P(a.shared,{instancePath:o+"/shared",parentData:a,parentDataProperty:"shared",rootData})||(p=(i=i===null?P.errors:i.concat(P.errors)).length),f=e===p}else f=!0}}}}}}}}}}return x.errors=i,p===0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
/*
|
|
3
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
4
5
|
* DO NOT MODIFY BY HAND.
|
|
5
|
-
* Run `yarn fix:special` to update
|
|
6
6
|
*/
|
|
7
|
-
"use strict";module.exports=c,module.exports.default=c;const r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},pure:{$ref:"#/definitions/CssParserPure"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},t=Object.prototype.hasOwnProperty,e={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},o={validate:i};function n(r,{instancePath:t="",parentData:e,parentDataProperty:a,rootData:s=r}={}){let i=null,l=0;if(0===l){if(!Array.isArray(r))return n.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let a=0;a<e;a++){const e=l,p=l;let f=!1,c=null;const u=l;if(o.validate(r[a],{instancePath:t+"/"+a,parentData:r,parentDataProperty:a,rootData:s})||(i=null===i?o.validate.errors:i.concat(o.validate.errors),l=i.length),u===l&&(f=!0,c=0),!f){const r={params:{passingSchemas:c}};return null===i?i=[r]:i.push(r),l++,n.errors=i,!1}if(l=p,null!==i&&(p?i.length=p:i=null),e!==l)break}}}return n.errors=i,0===l}function a(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){if(!Array.isArray(r))return a.errors=[{params:{type:"array"}}],!1;{const t=r.length;for(let e=0;e<t;e++){let t=r[e];const o=0;if("string"!=typeof t)return a.errors=[{params:{type:"string"}}],!1;if(t.length<1)return a.errors=[{params:{}}],!1;if(0!==o)break}}return a.errors=null,!0}function s(r,{instancePath:t="",parentData:e,parentDataProperty:i,rootData:l=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return s.errors=[{params:{type:"object"}}],!1;{const e=f;for(const t in r)if("and"!==t&&"glob"!==t&&"not"!==t&&"or"!==t)return s.errors=[{params:{additionalProperty:t}}],!1;if(e===f){if(void 0!==r.and){const e=f,o=f;let a=!1,i=null;const u=f;if(n(r.and,{instancePath:t+"/and",parentData:r,parentDataProperty:"and",rootData:l})||(p=null===p?n.errors:p.concat(n.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=o,null!==p&&(o?p.length=o:p=null);var c=e===f}else c=!0;if(c){if(void 0!==r.glob){let e=r.glob;const o=f,n=f;let i=!1;const d=f;if(f==f)if("string"==typeof e){if(e.length<1){const r={params:{}};null===p?p=[r]:p.push(r),f++}}else{const r={params:{type:"string"}};null===p?p=[r]:p.push(r),f++}var u=d===f;if(i=i||u,!i){const o=f;a(e,{instancePath:t+"/glob",parentData:r,parentDataProperty:"glob",rootData:l})||(p=null===p?a.errors:p.concat(a.errors),f=p.length),u=o===f,i=i||u}if(!i){const r={params:{}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),c=o===f}else c=!0;if(c){if(void 0!==r.not){const e=f,n=f;let a=!1,i=null;const u=f;if(o.validate(r.not,{instancePath:t+"/not",parentData:r,parentDataProperty:"not",rootData:l})||(p=null===p?o.validate.errors:p.concat(o.validate.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),c=e===f}else c=!0;if(c)if(void 0!==r.or){const e=f,o=f;let a=!1,i=null;const u=f;if(n(r.or,{instancePath:t+"/or",parentData:r,parentDataProperty:"or",rootData:l})||(p=null===p?n.errors:p.concat(n.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=o,null!==p&&(o?p.length=o:p=null),c=e===f}else c=!0}}}}}return s.errors=p,0===f}function i(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:a=r}={}){let l=null,p=0;const f=p;let c=!1;const u=p;if(!(r instanceof RegExp)){const r={params:{}};null===l?l=[r]:l.push(r),p++}var d=u===p;if(c=c||d,!c){const i=p;if("string"!=typeof r){const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}if(d=i===p,c=c||d,!c){const i=p;if(!(r instanceof Function)){const r={params:{}};null===l?l=[r]:l.push(r),p++}if(d=i===p,c=c||d,!c){const i=p;if(s(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:a})||(l=null===l?s.errors:l.concat(s.errors),p=l.length),d=i===p,c=c||d,!c){const s=p;n(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:a})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),d=s===p,c=c||d}}}}if(!c){const r={params:{}};return null===l?l=[r]:l.push(r),p++,i.errors=l,!1}return p=f,null!==l&&(f?l.length=f:l=null),i.errors=l,0===p}function l(r,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{const n=f;for(const o in r)if(!t.call(e.properties,o))return l.errors=[{params:{additionalProperty:o}}],!1;if(n===f){if(void 0!==r.as){const t=f;if("string"!=typeof r.as)return l.errors=[{params:{type:"string"}}],!1;var c=t===f}else c=!0;if(c){if(void 0!==r.exclude){const t=f;i(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c){if(void 0!==r.fetchPriority){let t=r.fetchPriority;const e=f;if("low"!==t&&"high"!==t&&"auto"!==t&&!1!==t)return l.errors=[{params:{}}],!1;c=e===f}else c=!0;if(c){if(void 0!==r.include){const t=f;i(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c){if(void 0!==r.media){const t=f;if("string"!=typeof r.media)return l.errors=[{params:{type:"string"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.prefetch){const t=f;if("boolean"!=typeof r.prefetch)return l.errors=[{params:{type:"boolean"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.preload){const t=f;if("boolean"!=typeof r.preload)return l.errors=[{params:{type:"boolean"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.test){const t=f;i(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c)if(void 0!==r.type){const t=f;if("string"!=typeof r.type)return l.errors=[{params:{type:"string"}}],!1;c=t===f}else c=!0}}}}}}}}}}return l.errors=p,0===f}function p(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;if(0===s){if(!Array.isArray(r))return p.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let o=0;o<e;o++){const e=s;if(l(r[o],{instancePath:t+"/"+o,parentData:r,parentDataProperty:o,rootData:n})||(a=null===a?l.errors:a.concat(l.errors),s=a.length),e!==s)break}}}return p.errors=a,0===s}function f(e,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=e}={}){let i=null,l=0;if(0===l){if(!e||"object"!=typeof e||Array.isArray(e))return f.errors=[{params:{type:"object"}}],!1;{const n=l;for(const o in e)if(!t.call(r.properties,o))return f.errors=[{params:{additionalProperty:o}}],!1;if(n===l){if(void 0!==e.animation){const r=l;if("boolean"!=typeof e.animation)return f.errors=[{params:{type:"boolean"}}],!1;var c=r===l}else c=!0;if(c){if(void 0!==e.as){let r=e.as;const t=l;if("stylesheet"!==r&&"block-contents"!==r)return f.errors=[{params:{}}],!1;c=t===l}else c=!0;if(c){if(void 0!==e.container){const r=l;if("boolean"!=typeof e.container)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customIdents){const r=l;if("boolean"!=typeof e.customIdents)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customMedia){const r=l;if("boolean"!=typeof e.customMedia)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customSelectors){const r=l;if("boolean"!=typeof e.customSelectors)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.dashedIdents){const r=l;if("boolean"!=typeof e.dashedIdents)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.exportType){let r=e.exportType;const t=l;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return f.errors=[{params:{}}],!1;c=t===l}else c=!0;if(c){if(void 0!==e.fontPreload){const r=l;if("boolean"!=typeof e.fontPreload)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.function){const r=l;if("boolean"!=typeof e.function)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.grid){const r=l;if("boolean"!=typeof e.grid)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.import){const r=l;if("boolean"!=typeof e.import)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.namedExports){const r=l;if("boolean"!=typeof e.namedExports)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.pure){const r=l;if("boolean"!=typeof e.pure)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.url){const r=l;if("boolean"!=typeof e.url)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c)if(void 0!==e.urlHints){const r=l;p(e.urlHints,{instancePath:o+"/urlHints",parentData:e,parentDataProperty:"urlHints",rootData:s})||(i=null===i?p.errors:i.concat(p.errors),l=i.length),c=r===l}else c=!0}}}}}}}}}}}}}}}}}return f.errors=i,0===l}function c(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;return f(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:n})||(a=null===a?f.errors:a.concat(f.errors),s=a.length),c.errors=a,0===s}
|
|
7
|
+
"use strict";module.exports=y,module.exports.default=y;let r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},pure:{$ref:"#/definitions/CssParserPure"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},e={enum:["stylesheet","block-contents"]},t={enum:["link","text","css-style-sheet","style"]},a=Object.prototype.hasOwnProperty,o={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},n={validate:f};function s(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return s.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let i=0;i<o;i++){let o=a,l=a,p=!1,f=null,u=a;if(n.validate(r[i],{instancePath:e+"/"+i,parentData:r,parentDataProperty:i,rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(p=!0,f=0),!p){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,s.errors=t,!1}if(a=l,t!==null&&(l?t.length=l:t=null),o!==a)break}}}return s.errors=t,a===0}let i=function(r){let e=r.length,t,a=0,o=0;for(;o<e;)a++,(t=r.charCodeAt(o++))>=55296&&t<=56319&&o<e&&(64512&(t=r.charCodeAt(o)))==56320&&o++;return a};function l(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{let e=r.length;for(let t=0;t<e;t++){let e=r[t];if("string"!=typeof e)return l.errors=[{params:{type:"string"}}],!1;if(i(e)<1)return l.errors=[{params:{limit:1}}],!1}}return l.errors=null,!0}function p(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!r||"object"!=typeof r||Array.isArray(r))return p.errors=[{params:{type:"object"}}],!1;{let u=a;for(let e in r)if("and"!==e&&"glob"!==e&&"not"!==e&&"or"!==e)return p.errors=[{params:{additionalProperty:e}}],!1;if(u===a){if(r.and!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.and,{instancePath:e+"/and",parentData:r,parentDataProperty:"and",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null);var o=n===a}else o=!0;if(o){if(r.glob!==void 0){let n=r.glob,s=a,u=a,c=!1,d=a;if(a==a)if("string"==typeof n){if(i(n)<1){let r={params:{limit:1}};t===null?t=[r]:t.push(r),a++}}else{let r={params:{type:"string"}};t===null?t=[r]:t.push(r),a++}var f=d===a;if(!(c=c||f)){let o=a;l(n,{instancePath:e+"/glob",parentData:r,parentDataProperty:"glob",rootData})||(a=(t=t===null?l.errors:t.concat(l.errors)).length),f=o===a,c=c||f}if(!c){let r={params:{}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=u,t!==null&&(u?t.length=u:t=null),o=s===a}else o=!0;if(o){if(r.not!==void 0){let s=a,i=a,l=!1,f=null,u=a;if(n.validate(r.not,{instancePath:e+"/not",parentData:r,parentDataProperty:"not",rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=s===a}else o=!0;if(o)if(r.or!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.or,{instancePath:e+"/or",parentData:r,parentDataProperty:"or",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=n===a}else o=!0}}}}}return p.errors=t,a===0}function f(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0,a=t,o=!1,n=t;if(!(r instanceof RegExp)){let r={params:{}};e===null?e=[r]:e.push(r),t++}var i=n===t;if(!(o=o||i)){let a=t;if("string"!=typeof r){let r={params:{type:"string"}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(!(r instanceof Function)){let r={params:{}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(p(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?p.errors:e.concat(p.errors)).length),i=a===t,!(o=o||i)){let a=t;s(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?s.errors:e.concat(s.errors)).length),i=a===t,o=o||i}}}}if(!o){let r={params:{}};return e===null?e=[r]:e.push(r),t++,f.errors=e,!1}return t=a,e!==null&&(a?e.length=a:e=null),f.errors=e,t===0}function u(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,n=0;if(n===0){if(!r||"object"!=typeof r||Array.isArray(r))return u.errors=[{params:{type:"object"}}],!1;{let i=n;for(let e in r)if(!a.call(o.properties,e))return u.errors=[{params:{additionalProperty:e}}],!1;if(i===n){if(r.as!==void 0){if("string"!=typeof r.as)return u.errors=[{params:{type:"string"}}],!1;var s=n===n}else s=!0;if(s){if(r.exclude!==void 0){let a=n;f(r.exclude,{instancePath:e+"/exclude",parentData:r,parentDataProperty:"exclude",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.fetchPriority!==void 0){let e=r.fetchPriority;if("low"!==e&&"high"!==e&&"auto"!==e&&!1!==e)return u.errors=[{params:{allowedValues:o.properties.fetchPriority.enum}}],!1;s=n===n}else s=!0;if(s){if(r.include!==void 0){let a=n;f(r.include,{instancePath:e+"/include",parentData:r,parentDataProperty:"include",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.media!==void 0){if("string"!=typeof r.media)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0;if(s){if(r.prefetch!==void 0){if("boolean"!=typeof r.prefetch)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.preload!==void 0){if("boolean"!=typeof r.preload)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.test!==void 0){let a=n;f(r.test,{instancePath:e+"/test",parentData:r,parentDataProperty:"test",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s)if(r.type!==void 0){if("string"!=typeof r.type)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0}}}}}}}}}}return u.errors=t,n===0}function c(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return c.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let n=0;n<o;n++){let o=a;if(u(r[n],{instancePath:e+"/"+n,parentData:r,parentDataProperty:n,rootData})||(a=(t=t===null?u.errors:t.concat(u.errors)).length),o!==a)break}}}return c.errors=t,a===0}function d(o,{instancePath:n="",parentData,parentDataProperty,rootData=o}={}){let s=null,i=0;if(i===0){if(!o||"object"!=typeof o||Array.isArray(o))return d.errors=[{params:{type:"object"}}],!1;{let p=i;for(let e in o)if(!a.call(r.properties,e))return d.errors=[{params:{additionalProperty:e}}],!1;if(p===i){if(o.animation!==void 0){if("boolean"!=typeof o.animation)return d.errors=[{params:{type:"boolean"}}],!1;var l=i===i}else l=!0;if(l){if(o.as!==void 0){let r=o.as;if("stylesheet"!==r&&"block-contents"!==r)return d.errors=[{params:{allowedValues:e.enum}}],!1;l=i===i}else l=!0;if(l){if(o.container!==void 0){if("boolean"!=typeof o.container)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customIdents!==void 0){if("boolean"!=typeof o.customIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customMedia!==void 0){if("boolean"!=typeof o.customMedia)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customSelectors!==void 0){if("boolean"!=typeof o.customSelectors)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.dashedIdents!==void 0){if("boolean"!=typeof o.dashedIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.exportType!==void 0){let r=o.exportType;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return d.errors=[{params:{allowedValues:t.enum}}],!1;l=i===i}else l=!0;if(l){if(o.fontPreload!==void 0){if("boolean"!=typeof o.fontPreload)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.function!==void 0){if("boolean"!=typeof o.function)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.grid!==void 0){if("boolean"!=typeof o.grid)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.import!==void 0){if("boolean"!=typeof o.import)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.namedExports!==void 0){if("boolean"!=typeof o.namedExports)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.pure!==void 0){if("boolean"!=typeof o.pure)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.url!==void 0){if("boolean"!=typeof o.url)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l)if(o.urlHints!==void 0){let r=i;c(o.urlHints,{instancePath:n+"/urlHints",parentData:o,parentDataProperty:"urlHints",rootData})||(i=(s=s===null?c.errors:s.concat(c.errors)).length),l=r===i}else l=!0}}}}}}}}}}}}}}}}}return d.errors=s,i===0}function y(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0;return d(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?d.errors:e.concat(d.errors)).length),y.errors=e,t===0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
/*
|
|
3
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
4
5
|
* DO NOT MODIFY BY HAND.
|
|
5
|
-
* Run `yarn fix:special` to update
|
|
6
6
|
*/
|
|
7
|
-
"use strict";function r(e,{instancePath
|
|
7
|
+
"use strict";function r(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;for(let t in e)if("esModule"!==t&&"exportsOnly"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(e.esModule!==void 0){if("boolean"!=typeof e.esModule)return r.errors=[{params:{type:"boolean"}}],!1;var t=!0}else t=!0;if(t)if(e.exportsOnly!==void 0){if("boolean"!=typeof e.exportsOnly)return r.errors=[{params:{type:"boolean"}}],!1;t=!0}else t=!0;return r.errors=null,!0}function e(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){let a=null,o=0;return r(t,{instancePath,parentData,parentDataProperty,rootData})||(o=(a=a===null?r.errors:a.concat(r.errors)).length),e.errors=a,o===0}module.exports=e,module.exports.default=e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
/*
|
|
3
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
4
5
|
* DO NOT MODIFY BY HAND.
|
|
5
|
-
* Run `yarn fix:special` to update
|
|
6
6
|
*/
|
|
7
|
-
"use strict";module.exports=
|
|
7
|
+
"use strict";module.exports=a,module.exports.default=a;let e={type:"object",additionalProperties:!1,properties:{esModule:{$ref:"#/definitions/CssGeneratorEsModule"},exportType:{$ref:"#/definitions/CssParserExportType"},exportsConvention:{$ref:"#/definitions/CssGeneratorExportsConvention"},exportsOnly:{$ref:"#/definitions/CssGeneratorExportsOnly"},localIdentHashDigest:{$ref:"#/definitions/HashDigest"},localIdentHashDigestLength:{$ref:"#/definitions/HashDigestLength"},localIdentHashFunction:{$ref:"#/definitions/HashFunction"},localIdentHashSalt:{$ref:"#/definitions/HashSalt"},localIdentName:{$ref:"#/definitions/CssGeneratorLocalIdentName"}}},t={enum:["link","text","css-style-sheet","style"]},n={anyOf:[{enum:["as-is","camel-case","camel-case-only","dashes","dashes-only"]},{instanceof:"Function"}]},s=Object.prototype.hasOwnProperty,r=function(e){let t=e.length,n,s=0,r=0;for(;r<t;)s++,(n=e.charCodeAt(r++))>=55296&&n<=56319&&r<t&&(64512&(n=e.charCodeAt(r)))==56320&&r++;return s};function o(a,{instancePath="",parentData,parentDataProperty,rootData=a}={}){let l=null,i=0;if(i===0){if(!a||"object"!=typeof a||Array.isArray(a))return o.errors=[{params:{type:"object"}}],!1;{let d=i;for(let t in a)if(!s.call(e.properties,t))return o.errors=[{params:{additionalProperty:t}}],!1;if(d===i){if(a.esModule!==void 0){if("boolean"!=typeof a.esModule)return o.errors=[{params:{type:"boolean"}}],!1;var p=i===i}else p=!0;if(p){if(a.exportType!==void 0){let e=a.exportType;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return o.errors=[{params:{allowedValues:t.enum}}],!1;p=i===i}else p=!0;if(p){if(a.exportsConvention!==void 0){let e=a.exportsConvention,t=i,s=i,r=!1,c=i;if("as-is"!==e&&"camel-case"!==e&&"camel-case-only"!==e&&"dashes"!==e&&"dashes-only"!==e){let e={params:{allowedValues:n.anyOf[0].enum}};l===null?l=[e]:l.push(e),i++}var f=c===i;if(!(r=r||f)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}f=t===i,r=r||f}if(!r){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=s,l!==null&&(s?l.length=s:l=null),p=t===i}else p=!0;if(p){if(a.exportsOnly!==void 0){if("boolean"!=typeof a.exportsOnly)return o.errors=[{params:{type:"boolean"}}],!1;p=i===i}else p=!0;if(p){if(a.localIdentHashDigest!==void 0){if("string"!=typeof a.localIdentHashDigest)return o.errors=[{params:{type:"string"}}],!1;p=i===i}else p=!0;if(p){if(a.localIdentHashDigestLength!==void 0){let e=a.localIdentHashDigestLength;if(i==i){if("number"!=typeof e)return o.errors=[{params:{type:"number"}}],!1;if(e<1||isNaN(e))return o.errors=[{params:{comparison:">=",limit:1}}],!1}p=i===i}else p=!0;if(p){if(a.localIdentHashFunction!==void 0){let e=a.localIdentHashFunction,t=i,n=i,s=!1,f=i;if(i===f)if("string"==typeof e){if(r(e)<1){let e={params:{limit:1}};l===null?l=[e]:l.push(e),i++}}else{let e={params:{type:"string"}};l===null?l=[e]:l.push(e),i++}var c=f===i;if(!(s=s||c)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}c=t===i,s=s||c}if(!s){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=n,l!==null&&(n?l.length=n:l=null),p=t===i}else p=!0;if(p){if(a.localIdentHashSalt!==void 0){let e=a.localIdentHashSalt;if(i==i){if("string"!=typeof e)return o.errors=[{params:{type:"string"}}],!1;if(r(e)<1)return o.errors=[{params:{limit:1}}],!1}p=i===i}else p=!0;if(p)if(a.localIdentName!==void 0){let e=a.localIdentName,t=i,n=i,s=!1,r=i;if("string"!=typeof e){let e={params:{type:"string"}};l===null?l=[e]:l.push(e),i++}var u=r===i;if(!(s=s||u)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}u=t===i,s=s||u}if(!s){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=n,l!==null&&(n?l.length=n:l=null),p=t===i}else p=!0}}}}}}}}}}return o.errors=l,i===0}function a(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;return o(e,{instancePath,parentData,parentDataProperty,rootData})||(n=(t=t===null?o.errors:t.concat(o.errors)).length),a.errors=t,n===0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
/*
|
|
3
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
4
5
|
* DO NOT MODIFY BY HAND.
|
|
5
|
-
* Run `yarn fix:special` to update
|
|
6
6
|
*/
|
|
7
|
-
"use strict";module.exports=c,module.exports.default=c;const r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},t=Object.prototype.hasOwnProperty,e={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},o={validate:i};function n(r,{instancePath:t="",parentData:e,parentDataProperty:a,rootData:s=r}={}){let i=null,l=0;if(0===l){if(!Array.isArray(r))return n.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let a=0;a<e;a++){const e=l,p=l;let f=!1,c=null;const u=l;if(o.validate(r[a],{instancePath:t+"/"+a,parentData:r,parentDataProperty:a,rootData:s})||(i=null===i?o.validate.errors:i.concat(o.validate.errors),l=i.length),u===l&&(f=!0,c=0),!f){const r={params:{passingSchemas:c}};return null===i?i=[r]:i.push(r),l++,n.errors=i,!1}if(l=p,null!==i&&(p?i.length=p:i=null),e!==l)break}}}return n.errors=i,0===l}function a(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){if(!Array.isArray(r))return a.errors=[{params:{type:"array"}}],!1;{const t=r.length;for(let e=0;e<t;e++){let t=r[e];const o=0;if("string"!=typeof t)return a.errors=[{params:{type:"string"}}],!1;if(t.length<1)return a.errors=[{params:{}}],!1;if(0!==o)break}}return a.errors=null,!0}function s(r,{instancePath:t="",parentData:e,parentDataProperty:i,rootData:l=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return s.errors=[{params:{type:"object"}}],!1;{const e=f;for(const t in r)if("and"!==t&&"glob"!==t&&"not"!==t&&"or"!==t)return s.errors=[{params:{additionalProperty:t}}],!1;if(e===f){if(void 0!==r.and){const e=f,o=f;let a=!1,i=null;const u=f;if(n(r.and,{instancePath:t+"/and",parentData:r,parentDataProperty:"and",rootData:l})||(p=null===p?n.errors:p.concat(n.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=o,null!==p&&(o?p.length=o:p=null);var c=e===f}else c=!0;if(c){if(void 0!==r.glob){let e=r.glob;const o=f,n=f;let i=!1;const d=f;if(f==f)if("string"==typeof e){if(e.length<1){const r={params:{}};null===p?p=[r]:p.push(r),f++}}else{const r={params:{type:"string"}};null===p?p=[r]:p.push(r),f++}var u=d===f;if(i=i||u,!i){const o=f;a(e,{instancePath:t+"/glob",parentData:r,parentDataProperty:"glob",rootData:l})||(p=null===p?a.errors:p.concat(a.errors),f=p.length),u=o===f,i=i||u}if(!i){const r={params:{}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),c=o===f}else c=!0;if(c){if(void 0!==r.not){const e=f,n=f;let a=!1,i=null;const u=f;if(o.validate(r.not,{instancePath:t+"/not",parentData:r,parentDataProperty:"not",rootData:l})||(p=null===p?o.validate.errors:p.concat(o.validate.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),c=e===f}else c=!0;if(c)if(void 0!==r.or){const e=f,o=f;let a=!1,i=null;const u=f;if(n(r.or,{instancePath:t+"/or",parentData:r,parentDataProperty:"or",rootData:l})||(p=null===p?n.errors:p.concat(n.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=o,null!==p&&(o?p.length=o:p=null),c=e===f}else c=!0}}}}}return s.errors=p,0===f}function i(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:a=r}={}){let l=null,p=0;const f=p;let c=!1;const u=p;if(!(r instanceof RegExp)){const r={params:{}};null===l?l=[r]:l.push(r),p++}var d=u===p;if(c=c||d,!c){const i=p;if("string"!=typeof r){const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}if(d=i===p,c=c||d,!c){const i=p;if(!(r instanceof Function)){const r={params:{}};null===l?l=[r]:l.push(r),p++}if(d=i===p,c=c||d,!c){const i=p;if(s(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:a})||(l=null===l?s.errors:l.concat(s.errors),p=l.length),d=i===p,c=c||d,!c){const s=p;n(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:a})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),d=s===p,c=c||d}}}}if(!c){const r={params:{}};return null===l?l=[r]:l.push(r),p++,i.errors=l,!1}return p=f,null!==l&&(f?l.length=f:l=null),i.errors=l,0===p}function l(r,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{const n=f;for(const o in r)if(!t.call(e.properties,o))return l.errors=[{params:{additionalProperty:o}}],!1;if(n===f){if(void 0!==r.as){const t=f;if("string"!=typeof r.as)return l.errors=[{params:{type:"string"}}],!1;var c=t===f}else c=!0;if(c){if(void 0!==r.exclude){const t=f;i(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c){if(void 0!==r.fetchPriority){let t=r.fetchPriority;const e=f;if("low"!==t&&"high"!==t&&"auto"!==t&&!1!==t)return l.errors=[{params:{}}],!1;c=e===f}else c=!0;if(c){if(void 0!==r.include){const t=f;i(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c){if(void 0!==r.media){const t=f;if("string"!=typeof r.media)return l.errors=[{params:{type:"string"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.prefetch){const t=f;if("boolean"!=typeof r.prefetch)return l.errors=[{params:{type:"boolean"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.preload){const t=f;if("boolean"!=typeof r.preload)return l.errors=[{params:{type:"boolean"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.test){const t=f;i(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c)if(void 0!==r.type){const t=f;if("string"!=typeof r.type)return l.errors=[{params:{type:"string"}}],!1;c=t===f}else c=!0}}}}}}}}}}return l.errors=p,0===f}function p(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;if(0===s){if(!Array.isArray(r))return p.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let o=0;o<e;o++){const e=s;if(l(r[o],{instancePath:t+"/"+o,parentData:r,parentDataProperty:o,rootData:n})||(a=null===a?l.errors:a.concat(l.errors),s=a.length),e!==s)break}}}return p.errors=a,0===s}function f(e,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=e}={}){let i=null,l=0;if(0===l){if(!e||"object"!=typeof e||Array.isArray(e))return f.errors=[{params:{type:"object"}}],!1;{const n=l;for(const o in e)if(!t.call(r.properties,o))return f.errors=[{params:{additionalProperty:o}}],!1;if(n===l){if(void 0!==e.animation){const r=l;if("boolean"!=typeof e.animation)return f.errors=[{params:{type:"boolean"}}],!1;var c=r===l}else c=!0;if(c){if(void 0!==e.as){let r=e.as;const t=l;if("stylesheet"!==r&&"block-contents"!==r)return f.errors=[{params:{}}],!1;c=t===l}else c=!0;if(c){if(void 0!==e.container){const r=l;if("boolean"!=typeof e.container)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customIdents){const r=l;if("boolean"!=typeof e.customIdents)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customMedia){const r=l;if("boolean"!=typeof e.customMedia)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customSelectors){const r=l;if("boolean"!=typeof e.customSelectors)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.dashedIdents){const r=l;if("boolean"!=typeof e.dashedIdents)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.exportType){let r=e.exportType;const t=l;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return f.errors=[{params:{}}],!1;c=t===l}else c=!0;if(c){if(void 0!==e.fontPreload){const r=l;if("boolean"!=typeof e.fontPreload)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.function){const r=l;if("boolean"!=typeof e.function)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.grid){const r=l;if("boolean"!=typeof e.grid)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.import){const r=l;if("boolean"!=typeof e.import)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.namedExports){const r=l;if("boolean"!=typeof e.namedExports)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.url){const r=l;if("boolean"!=typeof e.url)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c)if(void 0!==e.urlHints){const r=l;p(e.urlHints,{instancePath:o+"/urlHints",parentData:e,parentDataProperty:"urlHints",rootData:s})||(i=null===i?p.errors:i.concat(p.errors),l=i.length),c=r===l}else c=!0}}}}}}}}}}}}}}}}return f.errors=i,0===l}function c(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;return f(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:n})||(a=null===a?f.errors:a.concat(f.errors),s=a.length),c.errors=a,0===s}
|
|
7
|
+
"use strict";module.exports=y,module.exports.default=y;let r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},e={enum:["stylesheet","block-contents"]},t={enum:["link","text","css-style-sheet","style"]},a=Object.prototype.hasOwnProperty,o={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},n={validate:f};function s(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return s.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let i=0;i<o;i++){let o=a,l=a,p=!1,f=null,u=a;if(n.validate(r[i],{instancePath:e+"/"+i,parentData:r,parentDataProperty:i,rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(p=!0,f=0),!p){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,s.errors=t,!1}if(a=l,t!==null&&(l?t.length=l:t=null),o!==a)break}}}return s.errors=t,a===0}let i=function(r){let e=r.length,t,a=0,o=0;for(;o<e;)a++,(t=r.charCodeAt(o++))>=55296&&t<=56319&&o<e&&(64512&(t=r.charCodeAt(o)))==56320&&o++;return a};function l(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{let e=r.length;for(let t=0;t<e;t++){let e=r[t];if("string"!=typeof e)return l.errors=[{params:{type:"string"}}],!1;if(i(e)<1)return l.errors=[{params:{limit:1}}],!1}}return l.errors=null,!0}function p(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!r||"object"!=typeof r||Array.isArray(r))return p.errors=[{params:{type:"object"}}],!1;{let u=a;for(let e in r)if("and"!==e&&"glob"!==e&&"not"!==e&&"or"!==e)return p.errors=[{params:{additionalProperty:e}}],!1;if(u===a){if(r.and!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.and,{instancePath:e+"/and",parentData:r,parentDataProperty:"and",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null);var o=n===a}else o=!0;if(o){if(r.glob!==void 0){let n=r.glob,s=a,u=a,c=!1,d=a;if(a==a)if("string"==typeof n){if(i(n)<1){let r={params:{limit:1}};t===null?t=[r]:t.push(r),a++}}else{let r={params:{type:"string"}};t===null?t=[r]:t.push(r),a++}var f=d===a;if(!(c=c||f)){let o=a;l(n,{instancePath:e+"/glob",parentData:r,parentDataProperty:"glob",rootData})||(a=(t=t===null?l.errors:t.concat(l.errors)).length),f=o===a,c=c||f}if(!c){let r={params:{}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=u,t!==null&&(u?t.length=u:t=null),o=s===a}else o=!0;if(o){if(r.not!==void 0){let s=a,i=a,l=!1,f=null,u=a;if(n.validate(r.not,{instancePath:e+"/not",parentData:r,parentDataProperty:"not",rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=s===a}else o=!0;if(o)if(r.or!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.or,{instancePath:e+"/or",parentData:r,parentDataProperty:"or",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=n===a}else o=!0}}}}}return p.errors=t,a===0}function f(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0,a=t,o=!1,n=t;if(!(r instanceof RegExp)){let r={params:{}};e===null?e=[r]:e.push(r),t++}var i=n===t;if(!(o=o||i)){let a=t;if("string"!=typeof r){let r={params:{type:"string"}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(!(r instanceof Function)){let r={params:{}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(p(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?p.errors:e.concat(p.errors)).length),i=a===t,!(o=o||i)){let a=t;s(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?s.errors:e.concat(s.errors)).length),i=a===t,o=o||i}}}}if(!o){let r={params:{}};return e===null?e=[r]:e.push(r),t++,f.errors=e,!1}return t=a,e!==null&&(a?e.length=a:e=null),f.errors=e,t===0}function u(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,n=0;if(n===0){if(!r||"object"!=typeof r||Array.isArray(r))return u.errors=[{params:{type:"object"}}],!1;{let i=n;for(let e in r)if(!a.call(o.properties,e))return u.errors=[{params:{additionalProperty:e}}],!1;if(i===n){if(r.as!==void 0){if("string"!=typeof r.as)return u.errors=[{params:{type:"string"}}],!1;var s=n===n}else s=!0;if(s){if(r.exclude!==void 0){let a=n;f(r.exclude,{instancePath:e+"/exclude",parentData:r,parentDataProperty:"exclude",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.fetchPriority!==void 0){let e=r.fetchPriority;if("low"!==e&&"high"!==e&&"auto"!==e&&!1!==e)return u.errors=[{params:{allowedValues:o.properties.fetchPriority.enum}}],!1;s=n===n}else s=!0;if(s){if(r.include!==void 0){let a=n;f(r.include,{instancePath:e+"/include",parentData:r,parentDataProperty:"include",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.media!==void 0){if("string"!=typeof r.media)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0;if(s){if(r.prefetch!==void 0){if("boolean"!=typeof r.prefetch)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.preload!==void 0){if("boolean"!=typeof r.preload)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.test!==void 0){let a=n;f(r.test,{instancePath:e+"/test",parentData:r,parentDataProperty:"test",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s)if(r.type!==void 0){if("string"!=typeof r.type)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0}}}}}}}}}}return u.errors=t,n===0}function c(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return c.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let n=0;n<o;n++){let o=a;if(u(r[n],{instancePath:e+"/"+n,parentData:r,parentDataProperty:n,rootData})||(a=(t=t===null?u.errors:t.concat(u.errors)).length),o!==a)break}}}return c.errors=t,a===0}function d(o,{instancePath:n="",parentData,parentDataProperty,rootData=o}={}){let s=null,i=0;if(i===0){if(!o||"object"!=typeof o||Array.isArray(o))return d.errors=[{params:{type:"object"}}],!1;{let p=i;for(let e in o)if(!a.call(r.properties,e))return d.errors=[{params:{additionalProperty:e}}],!1;if(p===i){if(o.animation!==void 0){if("boolean"!=typeof o.animation)return d.errors=[{params:{type:"boolean"}}],!1;var l=i===i}else l=!0;if(l){if(o.as!==void 0){let r=o.as;if("stylesheet"!==r&&"block-contents"!==r)return d.errors=[{params:{allowedValues:e.enum}}],!1;l=i===i}else l=!0;if(l){if(o.container!==void 0){if("boolean"!=typeof o.container)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customIdents!==void 0){if("boolean"!=typeof o.customIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customMedia!==void 0){if("boolean"!=typeof o.customMedia)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customSelectors!==void 0){if("boolean"!=typeof o.customSelectors)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.dashedIdents!==void 0){if("boolean"!=typeof o.dashedIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.exportType!==void 0){let r=o.exportType;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return d.errors=[{params:{allowedValues:t.enum}}],!1;l=i===i}else l=!0;if(l){if(o.fontPreload!==void 0){if("boolean"!=typeof o.fontPreload)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.function!==void 0){if("boolean"!=typeof o.function)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.grid!==void 0){if("boolean"!=typeof o.grid)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.import!==void 0){if("boolean"!=typeof o.import)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.namedExports!==void 0){if("boolean"!=typeof o.namedExports)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.url!==void 0){if("boolean"!=typeof o.url)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l)if(o.urlHints!==void 0){let r=i;c(o.urlHints,{instancePath:n+"/urlHints",parentData:o,parentDataProperty:"urlHints",rootData})||(i=(s=s===null?c.errors:s.concat(c.errors)).length),l=r===i}else l=!0}}}}}}}}}}}}}}}}return d.errors=s,i===0}function y(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0;return d(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?d.errors:e.concat(d.errors)).length),y.errors=e,t===0}
|