UNPKG

webpack

Version:

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

6 lines 9.3 kB
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";module.exports=f,module.exports.default=f;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"}}},e=Object.prototype.hasOwnProperty,t={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:s};function n(r,{instancePath:e="",parentData:t,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 t=r.length;for(let a=0;a<t;a++){const t=l,p=l;let f=!1,c=null;const u=l;if(o.validate(r[a],{instancePath:e+"/"+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),t!==l)break}}}return n.errors=i,0===l}function a(r,{instancePath:e="",parentData:t,parentDataProperty:s,rootData:i=r}={}){let l=null,p=0;if(0===p){if(!r||"object"!=typeof r||Array.isArray(r))return a.errors=[{params:{type:"object"}}],!1;{const t=p;for(const e in r)if("and"!==e&&"not"!==e&&"or"!==e)return a.errors=[{params:{additionalProperty:e}}],!1;if(t===p){if(void 0!==r.and){const t=p,o=p;let s=!1,c=null;const u=p;if(n(r.and,{instancePath:e+"/and",parentData:r,parentDataProperty:"and",rootData:i})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),u===p&&(s=!0,c=0),!s){const r={params:{passingSchemas:c}};return null===l?l=[r]:l.push(r),p++,a.errors=l,!1}p=o,null!==l&&(o?l.length=o:l=null);var f=t===p}else f=!0;if(f){if(void 0!==r.not){const t=p,n=p;let s=!1,c=null;const u=p;if(o.validate(r.not,{instancePath:e+"/not",parentData:r,parentDataProperty:"not",rootData:i})||(l=null===l?o.validate.errors:l.concat(o.validate.errors),p=l.length),u===p&&(s=!0,c=0),!s){const r={params:{passingSchemas:c}};return null===l?l=[r]:l.push(r),p++,a.errors=l,!1}p=n,null!==l&&(n?l.length=n:l=null),f=t===p}else f=!0;if(f)if(void 0!==r.or){const t=p,o=p;let s=!1,c=null;const u=p;if(n(r.or,{instancePath:e+"/or",parentData:r,parentDataProperty:"or",rootData:i})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),u===p&&(s=!0,c=0),!s){const r={params:{passingSchemas:c}};return null===l?l=[r]:l.push(r),p++,a.errors=l,!1}p=o,null!==l&&(o?l.length=o:l=null),f=t===p}else f=!0}}}}return a.errors=l,0===p}function s(r,{instancePath:e="",parentData:t,parentDataProperty:o,rootData:i=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 s=p;if("string"!=typeof r){const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}if(d=s===p,c=c||d,!c){const s=p;if(!(r instanceof Function)){const r={params:{}};null===l?l=[r]:l.push(r),p++}if(d=s===p,c=c||d,!c){const s=p;if(a(r,{instancePath:e,parentData:t,parentDataProperty:o,rootData:i})||(l=null===l?a.errors:l.concat(a.errors),p=l.length),d=s===p,c=c||d,!c){const a=p;n(r,{instancePath:e,parentData:t,parentDataProperty:o,rootData:i})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),d=a===p,c=c||d}}}}if(!c){const r={params:{}};return null===l?l=[r]:l.push(r),p++,s.errors=l,!1}return p=f,null!==l&&(f?l.length=f:l=null),s.errors=l,0===p}function i(r,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:l=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return i.errors=[{params:{type:"object"}}],!1;{const n=f;for(const o in r)if(!e.call(t.properties,o))return i.errors=[{params:{additionalProperty:o}}],!1;if(n===f){if(void 0!==r.as){const e=f;if("string"!=typeof r.as)return i.errors=[{params:{type:"string"}}],!1;var c=e===f}else c=!0;if(c){if(void 0!==r.exclude){const e=f;s(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:l})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),c=e===f}else c=!0;if(c){if(void 0!==r.fetchPriority){let e=r.fetchPriority;const t=f;if("low"!==e&&"high"!==e&&"auto"!==e&&!1!==e)return i.errors=[{params:{}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.include){const e=f;s(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:l})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),c=e===f}else c=!0;if(c){if(void 0!==r.media){const e=f;if("string"!=typeof r.media)return i.errors=[{params:{type:"string"}}],!1;c=e===f}else c=!0;if(c){if(void 0!==r.prefetch){const e=f;if("boolean"!=typeof r.prefetch)return i.errors=[{params:{type:"boolean"}}],!1;c=e===f}else c=!0;if(c){if(void 0!==r.preload){const e=f;if("boolean"!=typeof r.preload)return i.errors=[{params:{type:"boolean"}}],!1;c=e===f}else c=!0;if(c){if(void 0!==r.test){const e=f;s(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:l})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),c=e===f}else c=!0;if(c)if(void 0!==r.type){const e=f;if("string"!=typeof r.type)return i.errors=[{params:{type:"string"}}],!1;c=e===f}else c=!0}}}}}}}}}}return i.errors=p,0===f}function l(r,{instancePath:e="",parentData:t,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;if(0===s){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{const t=r.length;for(let o=0;o<t;o++){const t=s;if(i(r[o],{instancePath:e+"/"+o,parentData:r,parentDataProperty:o,rootData:n})||(a=null===a?i.errors:a.concat(i.errors),s=a.length),t!==s)break}}}return l.errors=a,0===s}function p(t,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=t}={}){let i=null,f=0;if(0===f){if(!t||"object"!=typeof t||Array.isArray(t))return p.errors=[{params:{type:"object"}}],!1;{const n=f;for(const o in t)if(!e.call(r.properties,o))return p.errors=[{params:{additionalProperty:o}}],!1;if(n===f){if(void 0!==t.animation){const r=f;if("boolean"!=typeof t.animation)return p.errors=[{params:{type:"boolean"}}],!1;var c=r===f}else c=!0;if(c){if(void 0!==t.as){let r=t.as;const e=f;if("stylesheet"!==r&&"block-contents"!==r)return p.errors=[{params:{}}],!1;c=e===f}else c=!0;if(c){if(void 0!==t.container){const r=f;if("boolean"!=typeof t.container)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.customIdents){const r=f;if("boolean"!=typeof t.customIdents)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.customMedia){const r=f;if("boolean"!=typeof t.customMedia)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.customSelectors){const r=f;if("boolean"!=typeof t.customSelectors)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.dashedIdents){const r=f;if("boolean"!=typeof t.dashedIdents)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.exportType){let r=t.exportType;const e=f;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return p.errors=[{params:{}}],!1;c=e===f}else c=!0;if(c){if(void 0!==t.fontPreload){const r=f;if("boolean"!=typeof t.fontPreload)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.function){const r=f;if("boolean"!=typeof t.function)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.grid){const r=f;if("boolean"!=typeof t.grid)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.import){const r=f;if("boolean"!=typeof t.import)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.namedExports){const r=f;if("boolean"!=typeof t.namedExports)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c){if(void 0!==t.url){const r=f;if("boolean"!=typeof t.url)return p.errors=[{params:{type:"boolean"}}],!1;c=r===f}else c=!0;if(c)if(void 0!==t.urlHints){const r=f;l(t.urlHints,{instancePath:o+"/urlHints",parentData:t,parentDataProperty:"urlHints",rootData:s})||(i=null===i?l.errors:i.concat(l.errors),f=i.length),c=r===f}else c=!0}}}}}}}}}}}}}}}}return p.errors=i,0===f}function f(r,{instancePath:e="",parentData:t,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;return p(r,{instancePath:e,parentData:t,parentDataProperty:o,rootData:n})||(a=null===a?p.errors:a.concat(p.errors),s=a.length),f.errors=a,0===s}