From 27dc2f19b8cac12724fa3322b0a22589d80d5dbb Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Wed, 4 Nov 2020 13:52:49 -0800 Subject: [PATCH] ncc inlining optimizations (#18752) This adds ncc inlining optimizations for the following dependencies: * cacache * schema-utils * find-cache-dir * mkdirp * neo-async * web-vitals The slight increase in output in the reports here is due to the variation of the bundled version of web-vitals. In addition, this moves ast-types to be a devDependencies entry instead of in dependencies as it was before https://github.com/vercel/next.js/pull/14746 as I could not see any production usage (ping @prateekbh). Happy to separate that out into a separate PR if preferred too. --- packages/next/client/performance-relayer.ts | 2 +- packages/next/compiled/babel-loader/index.js | 2 +- packages/next/compiled/cacache/index.js | 1 + packages/next/compiled/cacache/package.json | 1 + packages/next/compiled/cache-loader/cjs.js | 2 +- packages/next/compiled/file-loader/cjs.js | 2 +- packages/next/compiled/find-cache-dir/LICENSE | 9 + .../next/compiled/find-cache-dir/index.js | 1 + .../next/compiled/find-cache-dir/package.json | 1 + packages/next/compiled/mkdirp/LICENSE | 21 ++ packages/next/compiled/mkdirp/index.js | 1 + packages/next/compiled/mkdirp/package.json | 1 + packages/next/compiled/neo-async/LICENSE | 22 ++ packages/next/compiled/neo-async/async.js | 1 + packages/next/compiled/neo-async/package.json | 1 + packages/next/compiled/postcss-loader/cjs.js | 2 +- packages/next/compiled/schema-utils/LICENSE | 20 ++ packages/next/compiled/schema-utils/index.js | 1 + .../next/compiled/schema-utils/package.json | 1 + .../compiled/terser-webpack-plugin/cjs.js | 2 +- packages/next/compiled/web-vitals/LICENSE | 202 ++++++++++++++++++ .../next/compiled/web-vitals/package.json | 1 + .../web-vitals/web-vitals.es5.umd.min.js | 1 + packages/next/package.json | 12 +- packages/next/taskfile.js | 66 +++++- packages/next/types/misc.d.ts | 4 + 26 files changed, 360 insertions(+), 20 deletions(-) create mode 100644 packages/next/compiled/cacache/index.js create mode 100644 packages/next/compiled/cacache/package.json create mode 100644 packages/next/compiled/find-cache-dir/LICENSE create mode 100644 packages/next/compiled/find-cache-dir/index.js create mode 100644 packages/next/compiled/find-cache-dir/package.json create mode 100644 packages/next/compiled/mkdirp/LICENSE create mode 100644 packages/next/compiled/mkdirp/index.js create mode 100644 packages/next/compiled/mkdirp/package.json create mode 100644 packages/next/compiled/neo-async/LICENSE create mode 100644 packages/next/compiled/neo-async/async.js create mode 100644 packages/next/compiled/neo-async/package.json create mode 100644 packages/next/compiled/schema-utils/LICENSE create mode 100644 packages/next/compiled/schema-utils/index.js create mode 100644 packages/next/compiled/schema-utils/package.json create mode 100644 packages/next/compiled/web-vitals/LICENSE create mode 100644 packages/next/compiled/web-vitals/package.json create mode 100644 packages/next/compiled/web-vitals/web-vitals.es5.umd.min.js diff --git a/packages/next/client/performance-relayer.ts b/packages/next/client/performance-relayer.ts index 434e4b8dc77d79..6a19e26ee79bdb 100644 --- a/packages/next/client/performance-relayer.ts +++ b/packages/next/client/performance-relayer.ts @@ -6,7 +6,7 @@ import { getTTFB, Metric, ReportHandler, -} from 'web-vitals' +} from 'next/dist/compiled/web-vitals' const initialHref = location.href let isRegistered = false diff --git a/packages/next/compiled/babel-loader/index.js b/packages/next/compiled/babel-loader/index.js index d3ec2831936ad6..dfc45eef7536d4 100644 --- a/packages/next/compiled/babel-loader/index.js +++ b/packages/next/compiled/babel-loader/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var o=n[t]={i:t,l:false,exports:{}};e[t].call(o.exports,o,o.exports,__webpack_require__);o.l=true;return o.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(385)}return startup()}({6:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}const o=n(671);const i=n(257);const r=n(876);const a=i(o.transform);e.exports=function(){var e=_asyncToGenerator(function*(e,t){let n;try{n=yield a(e,t)}catch(e){throw e.message&&e.codeFrame?new r(e):e}if(!n)return null;const{ast:o,code:i,map:s,metadata:c,sourceType:l}=n;if(s&&(!s.sourcesContent||!s.sourcesContent.length)){s.sourcesContent=[e]}return{ast:o,code:i,map:s,metadata:c,sourceType:l}});return function(t,n){return e.apply(this,arguments)}}();e.exports.version=o.version},87:function(e){e.exports=require("os")},125:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}const o=n(747);const i=n(87);const r=n(622);const a=n(761);const s=n(417);const c=n(841);const l=n(240);const u=n(257);const p=n(6);let f=null;const d=u(o.readFile);const b=u(o.writeFile);const h=u(a.gunzip);const y=u(a.gzip);const m=u(c);const g=function(){var e=_asyncToGenerator(function*(e,t){const n=yield d(e+(t?".gz":""));const o=t?yield h(n):n;return JSON.parse(o.toString())});return function read(t,n){return e.apply(this,arguments)}}();const w=function(){var e=_asyncToGenerator(function*(e,t,n){const o=JSON.stringify(n);const i=t?yield y(o):o;return yield b(e+(t?".gz":""),i)});return function write(t,n,o){return e.apply(this,arguments)}}();const _=function(e,t,n){const o=s.createHash("md4");const i=JSON.stringify({source:e,options:n,identifier:t});o.update(i);return o.digest("hex")+".json"};const x=function(){var e=_asyncToGenerator(function*(e,t){const{source:n,options:o={},cacheIdentifier:a,cacheDirectory:s,cacheCompression:c}=t;const l=r.join(e,_(n,a,o));try{return yield g(l,c)}catch(e){}const u=typeof s!=="string"&&e!==i.tmpdir();try{yield m(e)}catch(e){if(u){return x(i.tmpdir(),t)}throw e}const f=yield p(n,o);try{yield w(l,c,f)}catch(e){if(u){return x(i.tmpdir(),t)}throw e}return f});return function handleCache(t,n){return e.apply(this,arguments)}}();e.exports=function(){var e=_asyncToGenerator(function*(e){let t;if(typeof e.cacheDirectory==="string"){t=e.cacheDirectory}else{if(f===null){f=l({name:"babel-loader"})||i.tmpdir()}t=f}return yield x(t,e)});return function(t){return e.apply(this,arguments)}}()},134:function(e){e.exports=require("schema-utils")},240:function(e){e.exports=require("find-cache-dir")},257:function(e){"use strict";const t=(e,t)=>(function(...n){const o=t.promiseModule;return new o((o,i)=>{if(t.multiArgs){n.push((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();o(e)}}else{o(e)}})}else if(t.errorFirst){n.push((e,t)=>{if(e){i(e)}else{o(t)}})}else{n.push(o)}e.apply(this,n)})});e.exports=((e,n)=>{n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},n);const o=typeof e;if(!(e!==null&&(o==="object"||o==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":o}\``)}const i=e=>{const t=t=>typeof t==="string"?e===t:t.test(e);return n.include?n.include.some(t):!n.exclude.some(t)};let r;if(o==="function"){r=function(...o){return n.excludeMain?e(...o):t(e,n).apply(this,o)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const o in e){const a=e[o];r[o]=typeof a==="function"&&i(o)?t(a,n):a}return r})},357:function(e,t,n){"use strict";const o=n(671);e.exports=function injectCaller(e,t){if(!supportsCallerOption())return e;return Object.assign({},e,{caller:Object.assign({name:"babel-loader",target:t,supportsStaticESM:true,supportsDynamicImport:true,supportsTopLevelAwait:true},e.caller)})};let i=undefined;function supportsCallerOption(){if(i===undefined){try{o.loadPartialConfig({caller:undefined,babelrc:false,configFile:false});i=true}catch(e){i=false}}return i}},385:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}let o;try{o=n(671)}catch(e){if(e.code==="MODULE_NOT_FOUND"){e.message+="\n babel-loader@8 requires Babel 7.x (the package '@babel/core'). "+"If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'."}throw e}if(/^6\./.test(o.version)){throw new Error("\n babel-loader@8 will not work with the '@babel/core@6' bridge package. "+"If you want to use Babel 6.x, install 'babel-loader@7'.")}const{version:i}=n(980);const r=n(125);const a=n(6);const s=n(357);const c=n(453);const{isAbsolute:l}=n(622);const u=n(710);const p=n(134);function subscribe(e,t,n){if(n[e]){n[e](t)}}e.exports=makeLoader();e.exports.custom=makeLoader;function makeLoader(e){const t=e?e(o):undefined;return function(e,n){const o=this.async();loader.call(this,e,n,t).then(e=>o(null,...e),e=>o(e))}}function loader(e,t,n){return _loader.apply(this,arguments)}function _loader(){_loader=_asyncToGenerator(function*(e,t,n){const f=this.resourcePath;let d=u.getOptions(this)||{};p(c,d,{name:"Babel loader"});if(d.customize!=null){if(typeof d.customize!=="string"){throw new Error("Customized loaders must be implemented as standalone modules.")}if(!l(d.customize)){throw new Error("Customized loaders must be passed as absolute paths, since "+"babel-loader has no way to know what they would be relative to.")}if(n){throw new Error("babel-loader's 'customize' option is not available when already "+"using a customized babel-loader wrapper.")}let e=require(d.customize);if(e.__esModule)e=e.default;if(typeof e!=="function"){throw new Error("Custom overrides must be functions.")}n=e(o)}let b;if(n&&n.customOptions){const o=yield n.customOptions.call(this,d,{source:e,map:t});b=o.custom;d=o.loader}if("forceEnv"in d){console.warn("The option `forceEnv` has been removed in favor of `envName` in Babel 7.")}if(typeof d.babelrc==="string"){console.warn("The option `babelrc` should not be set to a string anymore in the babel-loader config. "+"Please update your configuration and set `babelrc` to true or false.\n"+"If you want to specify a specific babel config file to inherit config from "+"please use the `extends` option.\nFor more information about this options see "+"https://babeljs.io/docs/core-packages/#options")}if(Object.prototype.hasOwnProperty.call(d,"sourceMap")&&!Object.prototype.hasOwnProperty.call(d,"sourceMaps")){d=Object.assign({},d,{sourceMaps:d.sourceMap});delete d.sourceMap}const h=Object.assign({},d,{filename:f,inputSourceMap:t||undefined,sourceMaps:d.sourceMaps===undefined?this.sourceMap:d.sourceMaps,sourceFileName:f});delete h.customize;delete h.cacheDirectory;delete h.cacheIdentifier;delete h.cacheCompression;delete h.metadataSubscribers;if(!o.loadPartialConfig){throw new Error(`babel-loader ^8.0.0-beta.3 requires @babel/core@7.0.0-beta.41, but `+`you appear to be using "${o.version}". Either update your `+`@babel/core version, or pin you babel-loader version to 8.0.0-beta.2`)}const y=o.loadPartialConfig(s(h,this.target));if(y){let o=y.options;if(n&&n.config){o=yield n.config.call(this,y,{source:e,map:t,customOptions:b})}if(o.sourceMaps==="inline"){o.sourceMaps=true}const{cacheDirectory:s=null,cacheIdentifier:c=JSON.stringify({options:o,"@babel/core":a.version,"@babel/loader":i}),cacheCompression:l=true,metadataSubscribers:u=[]}=d;let p;if(s){p=yield r({source:e,options:o,transform:a,cacheDirectory:s,cacheIdentifier:c,cacheCompression:l})}else{p=yield a(e,o)}if(typeof y.babelrc==="string"){this.addDependency(y.babelrc)}if(p){if(n&&n.result){p=yield n.result.call(this,p,{source:e,map:t,customOptions:b,config:y,options:o})}const{code:i,map:r,metadata:a}=p;u.forEach(e=>{subscribe(e,a,this)});return[i,r]}}return[e,t]});return _loader.apply(this,arguments)}},417:function(e){e.exports=require("crypto")},453:function(e){e.exports={type:"object",properties:{cacheDirectory:{oneOf:[{type:"boolean"},{type:"string"}],default:false},cacheIdentifier:{type:"string"},cacheCompression:{type:"boolean",default:true},customize:{type:"string",default:null}},additionalProperties:true}},622:function(e){e.exports=require("path")},671:function(e){e.exports=require("@babel/core")},710:function(e){e.exports=require("loader-utils")},747:function(e){e.exports=require("fs")},761:function(e){e.exports=require("zlib")},841:function(e){e.exports=require("mkdirp")},876:function(e){"use strict";const t=/^[^:]+: /;const n=e=>{if(e instanceof SyntaxError){e.name="SyntaxError";e.message=e.message.replace(t,"");e.hideStack=true}else if(e instanceof TypeError){e.name=null;e.message=e.message.replace(t,"");e.hideStack=true}return e};class LoaderError extends Error{constructor(e){super();const{name:t,message:o,codeFrame:i,hideStack:r}=n(e);this.name="BabelLoaderError";this.message=`${t?`${t}: `:""}${o}\n\n${i}\n`;this.hideStack=r;Error.captureStackTrace(this,this.constructor)}}e.exports=LoaderError},980:function(e){e.exports={name:"babel-loader",version:"8.1.0",description:"babel module loader for webpack",files:["lib"],main:"lib/index.js",engines:{node:">= 6.9"},dependencies:{"find-cache-dir":"^2.1.0","loader-utils":"^1.4.0",mkdirp:"^0.5.3",pify:"^4.0.1","schema-utils":"^2.6.5"},peerDependencies:{"@babel/core":"^7.0.0",webpack:">=2"},devDependencies:{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/preset-env":"^7.2.0",ava:"^2.4.0","babel-eslint":"^10.0.1","babel-plugin-istanbul":"^5.1.0","babel-plugin-react-intl":"^4.1.19","cross-env":"^6.0.0",eslint:"^6.5.1","eslint-config-babel":"^9.0.0","eslint-config-prettier":"^6.3.0","eslint-plugin-flowtype":"^4.3.0","eslint-plugin-prettier":"^3.0.0",husky:"^3.0.7","lint-staged":"^9.4.1",nyc:"^14.1.1",prettier:"^1.15.3",react:"^16.0.0","react-intl":"^3.3.2","react-intl-webpack-plugin":"^0.3.0",rimraf:"^3.0.0",webpack:"^4.0.0"},scripts:{clean:"rimraf lib/",build:"babel src/ --out-dir lib/ --copy-files",format:"prettier --write --trailing-comma all 'src/**/*.js' 'test/**/*.test.js' 'test/helpers/*.js' && prettier --write --trailing-comma es5 'scripts/*.js'",lint:"eslint src test",precommit:"lint-staged",prepublish:"yarn run clean && yarn run build",preversion:"yarn run test",test:"yarn run lint && cross-env BABEL_ENV=test yarn run build && yarn run test-only","test-only":"nyc ava"},repository:{type:"git",url:"https://github.com/babel/babel-loader.git"},keywords:["webpack","loader","babel","es6","transpiler","module"],author:"Luis Couto ",license:"MIT",bugs:{url:"https://github.com/babel/babel-loader/issues"},homepage:"https://github.com/babel/babel-loader",nyc:{all:true,include:["src/**/*.js"],reporter:["text","json"],sourceMap:false,instrument:false},ava:{files:["test/**/*.test.js","!test/fixtures/**/*","!test/helpers/**/*"],helpers:["**/helpers/**/*"],sources:["src/**/*.js"]},"lint-staged":{"scripts/*.js":["prettier --trailing-comma es5 --write","git add"],"src/**/*.js":["prettier --trailing-comma all --write","git add"],"test/**/*.test.js":["prettier --trailing-comma all --write","git add"],"test/helpers/*.js":["prettier --trailing-comma all --write","git add"],"package.json":["node ./scripts/yarn-install.js","git add yarn.lock"]}}}}); \ No newline at end of file +module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var o=n[t]={i:t,l:false,exports:{}};e[t].call(o.exports,o,o.exports,__webpack_require__);o.l=true;return o.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(385)}return startup()}({6:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}const o=n(671);const i=n(257);const r=n(876);const a=i(o.transform);e.exports=function(){var e=_asyncToGenerator(function*(e,t){let n;try{n=yield a(e,t)}catch(e){throw e.message&&e.codeFrame?new r(e):e}if(!n)return null;const{ast:o,code:i,map:s,metadata:c,sourceType:l}=n;if(s&&(!s.sourcesContent||!s.sourcesContent.length)){s.sourcesContent=[e]}return{ast:o,code:i,map:s,metadata:c,sourceType:l}});return function(t,n){return e.apply(this,arguments)}}();e.exports.version=o.version},87:function(e){e.exports=require("os")},125:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}const o=n(747);const i=n(87);const r=n(622);const a=n(761);const s=n(417);const c=n(327);const l=n(844);const u=n(257);const p=n(6);let f=null;const d=u(o.readFile);const b=u(o.writeFile);const h=u(a.gunzip);const y=u(a.gzip);const m=u(c);const g=function(){var e=_asyncToGenerator(function*(e,t){const n=yield d(e+(t?".gz":""));const o=t?yield h(n):n;return JSON.parse(o.toString())});return function read(t,n){return e.apply(this,arguments)}}();const w=function(){var e=_asyncToGenerator(function*(e,t,n){const o=JSON.stringify(n);const i=t?yield y(o):o;return yield b(e+(t?".gz":""),i)});return function write(t,n,o){return e.apply(this,arguments)}}();const x=function(e,t,n){const o=s.createHash("md4");const i=JSON.stringify({source:e,options:n,identifier:t});o.update(i);return o.digest("hex")+".json"};const _=function(){var e=_asyncToGenerator(function*(e,t){const{source:n,options:o={},cacheIdentifier:a,cacheDirectory:s,cacheCompression:c}=t;const l=r.join(e,x(n,a,o));try{return yield g(l,c)}catch(e){}const u=typeof s!=="string"&&e!==i.tmpdir();try{yield m(e)}catch(e){if(u){return _(i.tmpdir(),t)}throw e}const f=yield p(n,o);try{yield w(l,c,f)}catch(e){if(u){return _(i.tmpdir(),t)}throw e}return f});return function handleCache(t,n){return e.apply(this,arguments)}}();e.exports=function(){var e=_asyncToGenerator(function*(e){let t;if(typeof e.cacheDirectory==="string"){t=e.cacheDirectory}else{if(f===null){f=l({name:"babel-loader"})||i.tmpdir()}t=f}return yield _(t,e)});return function(t){return e.apply(this,arguments)}}()},225:function(e){e.exports=require("next/dist/compiled/schema-utils")},257:function(e){"use strict";const t=(e,t)=>(function(...n){const o=t.promiseModule;return new o((o,i)=>{if(t.multiArgs){n.push((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();o(e)}}else{o(e)}})}else if(t.errorFirst){n.push((e,t)=>{if(e){i(e)}else{o(t)}})}else{n.push(o)}e.apply(this,n)})});e.exports=((e,n)=>{n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},n);const o=typeof e;if(!(e!==null&&(o==="object"||o==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":o}\``)}const i=e=>{const t=t=>typeof t==="string"?e===t:t.test(e);return n.include?n.include.some(t):!n.exclude.some(t)};let r;if(o==="function"){r=function(...o){return n.excludeMain?e(...o):t(e,n).apply(this,o)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const o in e){const a=e[o];r[o]=typeof a==="function"&&i(o)?t(a,n):a}return r})},327:function(e){e.exports=require("next/dist/compiled/mkdirp")},357:function(e,t,n){"use strict";const o=n(671);e.exports=function injectCaller(e,t){if(!supportsCallerOption())return e;return Object.assign({},e,{caller:Object.assign({name:"babel-loader",target:t,supportsStaticESM:true,supportsDynamicImport:true,supportsTopLevelAwait:true},e.caller)})};let i=undefined;function supportsCallerOption(){if(i===undefined){try{o.loadPartialConfig({caller:undefined,babelrc:false,configFile:false});i=true}catch(e){i=false}}return i}},385:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}let o;try{o=n(671)}catch(e){if(e.code==="MODULE_NOT_FOUND"){e.message+="\n babel-loader@8 requires Babel 7.x (the package '@babel/core'). "+"If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'."}throw e}if(/^6\./.test(o.version)){throw new Error("\n babel-loader@8 will not work with the '@babel/core@6' bridge package. "+"If you want to use Babel 6.x, install 'babel-loader@7'.")}const{version:i}=n(980);const r=n(125);const a=n(6);const s=n(357);const c=n(453);const{isAbsolute:l}=n(622);const u=n(710);const p=n(225);function subscribe(e,t,n){if(n[e]){n[e](t)}}e.exports=makeLoader();e.exports.custom=makeLoader;function makeLoader(e){const t=e?e(o):undefined;return function(e,n){const o=this.async();loader.call(this,e,n,t).then(e=>o(null,...e),e=>o(e))}}function loader(e,t,n){return _loader.apply(this,arguments)}function _loader(){_loader=_asyncToGenerator(function*(e,t,n){const f=this.resourcePath;let d=u.getOptions(this)||{};p(c,d,{name:"Babel loader"});if(d.customize!=null){if(typeof d.customize!=="string"){throw new Error("Customized loaders must be implemented as standalone modules.")}if(!l(d.customize)){throw new Error("Customized loaders must be passed as absolute paths, since "+"babel-loader has no way to know what they would be relative to.")}if(n){throw new Error("babel-loader's 'customize' option is not available when already "+"using a customized babel-loader wrapper.")}let e=require(d.customize);if(e.__esModule)e=e.default;if(typeof e!=="function"){throw new Error("Custom overrides must be functions.")}n=e(o)}let b;if(n&&n.customOptions){const o=yield n.customOptions.call(this,d,{source:e,map:t});b=o.custom;d=o.loader}if("forceEnv"in d){console.warn("The option `forceEnv` has been removed in favor of `envName` in Babel 7.")}if(typeof d.babelrc==="string"){console.warn("The option `babelrc` should not be set to a string anymore in the babel-loader config. "+"Please update your configuration and set `babelrc` to true or false.\n"+"If you want to specify a specific babel config file to inherit config from "+"please use the `extends` option.\nFor more information about this options see "+"https://babeljs.io/docs/core-packages/#options")}if(Object.prototype.hasOwnProperty.call(d,"sourceMap")&&!Object.prototype.hasOwnProperty.call(d,"sourceMaps")){d=Object.assign({},d,{sourceMaps:d.sourceMap});delete d.sourceMap}const h=Object.assign({},d,{filename:f,inputSourceMap:t||undefined,sourceMaps:d.sourceMaps===undefined?this.sourceMap:d.sourceMaps,sourceFileName:f});delete h.customize;delete h.cacheDirectory;delete h.cacheIdentifier;delete h.cacheCompression;delete h.metadataSubscribers;if(!o.loadPartialConfig){throw new Error(`babel-loader ^8.0.0-beta.3 requires @babel/core@7.0.0-beta.41, but `+`you appear to be using "${o.version}". Either update your `+`@babel/core version, or pin you babel-loader version to 8.0.0-beta.2`)}const y=o.loadPartialConfig(s(h,this.target));if(y){let o=y.options;if(n&&n.config){o=yield n.config.call(this,y,{source:e,map:t,customOptions:b})}if(o.sourceMaps==="inline"){o.sourceMaps=true}const{cacheDirectory:s=null,cacheIdentifier:c=JSON.stringify({options:o,"@babel/core":a.version,"@babel/loader":i}),cacheCompression:l=true,metadataSubscribers:u=[]}=d;let p;if(s){p=yield r({source:e,options:o,transform:a,cacheDirectory:s,cacheIdentifier:c,cacheCompression:l})}else{p=yield a(e,o)}if(typeof y.babelrc==="string"){this.addDependency(y.babelrc)}if(p){if(n&&n.result){p=yield n.result.call(this,p,{source:e,map:t,customOptions:b,config:y,options:o})}const{code:i,map:r,metadata:a}=p;u.forEach(e=>{subscribe(e,a,this)});return[i,r]}}return[e,t]});return _loader.apply(this,arguments)}},417:function(e){e.exports=require("crypto")},453:function(e){e.exports={type:"object",properties:{cacheDirectory:{oneOf:[{type:"boolean"},{type:"string"}],default:false},cacheIdentifier:{type:"string"},cacheCompression:{type:"boolean",default:true},customize:{type:"string",default:null}},additionalProperties:true}},622:function(e){e.exports=require("path")},671:function(e){e.exports=require("@babel/core")},710:function(e){e.exports=require("loader-utils")},747:function(e){e.exports=require("fs")},761:function(e){e.exports=require("zlib")},844:function(e){e.exports=require("next/dist/compiled/find-cache-dir")},876:function(e){"use strict";const t=/^[^:]+: /;const n=e=>{if(e instanceof SyntaxError){e.name="SyntaxError";e.message=e.message.replace(t,"");e.hideStack=true}else if(e instanceof TypeError){e.name=null;e.message=e.message.replace(t,"");e.hideStack=true}return e};class LoaderError extends Error{constructor(e){super();const{name:t,message:o,codeFrame:i,hideStack:r}=n(e);this.name="BabelLoaderError";this.message=`${t?`${t}: `:""}${o}\n\n${i}\n`;this.hideStack=r;Error.captureStackTrace(this,this.constructor)}}e.exports=LoaderError},980:function(e){e.exports={name:"babel-loader",version:"8.1.0",description:"babel module loader for webpack",files:["lib"],main:"lib/index.js",engines:{node:">= 6.9"},dependencies:{"find-cache-dir":"^2.1.0","loader-utils":"^1.4.0",mkdirp:"^0.5.3",pify:"^4.0.1","schema-utils":"^2.6.5"},peerDependencies:{"@babel/core":"^7.0.0",webpack:">=2"},devDependencies:{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/preset-env":"^7.2.0",ava:"^2.4.0","babel-eslint":"^10.0.1","babel-plugin-istanbul":"^5.1.0","babel-plugin-react-intl":"^4.1.19","cross-env":"^6.0.0",eslint:"^6.5.1","eslint-config-babel":"^9.0.0","eslint-config-prettier":"^6.3.0","eslint-plugin-flowtype":"^4.3.0","eslint-plugin-prettier":"^3.0.0",husky:"^3.0.7","lint-staged":"^9.4.1",nyc:"^14.1.1",prettier:"^1.15.3",react:"^16.0.0","react-intl":"^3.3.2","react-intl-webpack-plugin":"^0.3.0",rimraf:"^3.0.0",webpack:"^4.0.0"},scripts:{clean:"rimraf lib/",build:"babel src/ --out-dir lib/ --copy-files",format:"prettier --write --trailing-comma all 'src/**/*.js' 'test/**/*.test.js' 'test/helpers/*.js' && prettier --write --trailing-comma es5 'scripts/*.js'",lint:"eslint src test",precommit:"lint-staged",prepublish:"yarn run clean && yarn run build",preversion:"yarn run test",test:"yarn run lint && cross-env BABEL_ENV=test yarn run build && yarn run test-only","test-only":"nyc ava"},repository:{type:"git",url:"https://github.com/babel/babel-loader.git"},keywords:["webpack","loader","babel","es6","transpiler","module"],author:"Luis Couto ",license:"MIT",bugs:{url:"https://github.com/babel/babel-loader/issues"},homepage:"https://github.com/babel/babel-loader",nyc:{all:true,include:["src/**/*.js"],reporter:["text","json"],sourceMap:false,instrument:false},ava:{files:["test/**/*.test.js","!test/fixtures/**/*","!test/helpers/**/*"],helpers:["**/helpers/**/*"],sources:["src/**/*.js"]},"lint-staged":{"scripts/*.js":["prettier --trailing-comma es5 --write","git add"],"src/**/*.js":["prettier --trailing-comma all --write","git add"],"test/**/*.test.js":["prettier --trailing-comma all --write","git add"],"test/helpers/*.js":["prettier --trailing-comma all --write","git add"],"package.json":["node ./scripts/yarn-install.js","git add yarn.lock"]}}}}); \ No newline at end of file diff --git a/packages/next/compiled/cacache/index.js b/packages/next/compiled/cacache/index.js new file mode 100644 index 00000000000000..7f71039e76bcc5 --- /dev/null +++ b/packages/next/compiled/cacache/index.js @@ -0,0 +1 @@ +module.exports=function(t,e){"use strict";var n={};function __webpack_require__(e){if(n[e]){return n[e].exports}var r=n[e]={i:e,l:false,exports:{}};t[e].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(764)}return startup()}({1:function(t,e,n){"use strict";var r;try{throw new Error}catch(t){r=t}var i=n(615);var s=n(26);function Async(){this._customScheduler=false;this._isTickUsed=false;this._lateQueue=new s(16);this._normalQueue=new s(16);this._haveDrainedQueues=false;var t=this;this.drainQueues=function(){t._drainQueues()};this._schedule=i}Async.prototype.setScheduler=function(t){var e=this._schedule;this._schedule=t;this._customScheduler=true;return e};Async.prototype.hasCustomScheduler=function(){return this._customScheduler};Async.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Async.prototype.fatalError=function(t,e){if(e){process.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n");process.exit(2)}else{this.throwLater(t)}};Async.prototype.throwLater=function(t,e){if(arguments.length===1){e=t;t=function(){throw e}}if(typeof setTimeout!=="undefined"){setTimeout(function(){t(e)},0)}else try{this._schedule(function(){t(e)})}catch(t){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}};function AsyncInvokeLater(t,e,n){this._lateQueue.push(t,e,n);this._queueTick()}function AsyncInvoke(t,e,n){this._normalQueue.push(t,e,n);this._queueTick()}function AsyncSettlePromises(t){this._normalQueue._pushOne(t);this._queueTick()}Async.prototype.invokeLater=AsyncInvokeLater;Async.prototype.invoke=AsyncInvoke;Async.prototype.settlePromises=AsyncSettlePromises;function _drainQueue(t){while(t.length()>0){_drainQueueStep(t)}}function _drainQueueStep(t){var e=t.shift();if(typeof e!=="function"){e._settlePromises()}else{var n=t.shift();var r=t.shift();e.call(n,r)}}Async.prototype._drainQueues=function(){_drainQueue(this._normalQueue);this._reset();this._haveDrainedQueues=true;_drainQueue(this._lateQueue)};Async.prototype._queueTick=function(){if(!this._isTickUsed){this._isTickUsed=true;this._schedule(this.drainQueues)}};Async.prototype._reset=function(){this._isTickUsed=false};t.exports=Async;t.exports.firstLineError=r},14:function(t,e,n){"use strict";const r=n(407);t.exports=r.ls;t.exports.stream=r.lsStream},17:function(t){"use strict";t.exports=function(t,e){var n=t.reduce;var r=t.all;function promiseAllThis(){return r(this)}function PromiseMapSeries(t,r){return n(t,r,e,e)}t.prototype.each=function(t){return n(this,t,e,0)._then(promiseAllThis,undefined,undefined,this,undefined)};t.prototype.mapSeries=function(t){return n(this,t,e,e)};t.each=function(t,r){return n(t,r,e,0)._then(promiseAllThis,undefined,undefined,t,undefined)};t.mapSeries=PromiseMapSeries}},26:function(t){"use strict";function arrayMove(t,e,n,r,i){for(var s=0;s10||+s[0]===10&&+s[1]>=12;const a=!o?()=>false:t=>t.mkdir===r.mkdir;const c=!o?()=>false:t=>t.mkdirSync===r.mkdirSync;t.exports={useNative:a,useNativeSync:c}},40:function(t,e,n){"use strict";var r=n(767);t.exports=function(t){if(t){var e=new r(t);return("00000000"+e.result().toString(16)).substr(-8)}else{return(Math.random().toString(16)+"0000000").substr(2,8)}}},44:function(t){"use strict";t.exports=function(t){function returner(){return this.value}function thrower(){throw this.reason}t.prototype["return"]=t.prototype.thenReturn=function(e){if(e instanceof t)e.suppressUnhandledRejections();return this._then(returner,undefined,undefined,{value:e},undefined)};t.prototype["throw"]=t.prototype.thenThrow=function(t){return this._then(thrower,undefined,undefined,{reason:t},undefined)};t.prototype.catchThrow=function(t){if(arguments.length<=1){return this._then(undefined,thrower,undefined,{reason:t},undefined)}else{var e=arguments[1];var n=function(){throw e};return this.caught(t,n)}};t.prototype.catchReturn=function(e){if(arguments.length<=1){if(e instanceof t)e.suppressUnhandledRejections();return this._then(undefined,returner,undefined,{value:e},undefined)}else{var n=arguments[1];if(n instanceof t)n.suppressUnhandledRejections();var r=function(){return n};return this.caught(e,r)}}}},47:function(t){"use strict";t.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)};t.filter=function(t,r,i){return n(t,r,i,e)}}},49:function(t,e,n){"use strict";const r=n(669);const i=n(521);const s=n(969);const o=n(133);const a=n(747);const c=n(530);const u=r.promisify(n(435));const l=n(407);const f=n(622);const h=r.promisify(n(569));const p=n(951);const d=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const y=r.promisify(a.stat);const m=r.promisify(a.truncate);const v=r.promisify(a.writeFile);const g=r.promisify(a.readFile);const _=t=>({concurrency:20,log:{silly(){}},...t});t.exports=verify;function verify(t,e){e=_(e);e.log.silly("verify","verifying cache at",t);const n=[markStartTime,fixPerms,garbageCollect,rebuildIndex,cleanTmp,writeVerifile,markEndTime];return n.reduce((n,r,i)=>{const s=r.name;const o=new Date;return n.then(n=>{return r(t,e).then(t=>{t&&Object.keys(t).forEach(e=>{n[e]=t[e]});const e=new Date;if(!n.runTime){n.runTime={}}n.runTime[s]=e-o;return Promise.resolve(n)})})},Promise.resolve({})).then(n=>{n.runTime.total=n.endTime-n.startTime;e.log.silly("verify","verification finished for",t,"in",`${n.runTime.total}ms`);return n})}function markStartTime(t,e){return Promise.resolve({startTime:new Date})}function markEndTime(t,e){return Promise.resolve({endTime:new Date})}function fixPerms(t,e){e.log.silly("verify","fixing cache permissions");return o.mkdirfix(t,t).then(()=>{return o.chownr(t,t)}).then(()=>null)}function garbageCollect(t,e){e.log.silly("verify","garbage collecting content");const n=l.lsStream(t);const r=new Set;n.on("data",t=>{if(e.filter&&!e.filter(t)){return}r.add(t.integrity.toString())});return new Promise((t,e)=>{n.on("end",t).on("error",e)}).then(()=>{const n=s.contentDir(t);return u(f.join(n,"**"),{follow:false,nodir:true,nosort:true}).then(t=>{return Promise.resolve({verifiedContent:0,reclaimedCount:0,reclaimedSize:0,badContentCount:0,keptSize:0}).then(n=>i(t,t=>{const e=t.split(/[/\\]/);const i=e.slice(e.length-3).join("");const s=e[e.length-4];const o=p.fromHex(i,s);if(r.has(o.toString())){return verifyContent(t,o).then(t=>{if(!t.valid){n.reclaimedCount++;n.badContentCount++;n.reclaimedSize+=t.size}else{n.verifiedContent++;n.keptSize+=t.size}return n})}else{n.reclaimedCount++;return y(t).then(e=>{return h(t).then(()=>{n.reclaimedSize+=e.size;return n})})}},{concurrency:e.concurrency}).then(()=>n))})})}function verifyContent(t,e){return y(t).then(n=>{const r={size:n.size,valid:true};return p.checkStream(new c.ReadStream(t),e).catch(e=>{if(e.code!=="EINTEGRITY"){throw e}return h(t).then(()=>{r.valid=false})}).then(()=>r)}).catch(t=>{if(t.code==="ENOENT"){return{size:0,valid:false}}throw t})}function rebuildIndex(t,e){e.log.silly("verify","rebuilding index");return l.ls(t).then(n=>{const r={missingContent:0,rejectedEntries:0,totalEntries:0};const s={};for(const i in n){if(d(n,i)){const o=l.hashKey(i);const a=n[i];const c=e.filter&&!e.filter(a);c&&r.rejectedEntries++;if(s[o]&&!c){s[o].push(a)}else if(s[o]&&c){}else if(c){s[o]=[];s[o]._path=l.bucketPath(t,i)}else{s[o]=[a];s[o]._path=l.bucketPath(t,i)}}}return i(Object.keys(s),n=>{return rebuildBucket(t,s[n],r,e)},{concurrency:e.concurrency}).then(()=>r)})}function rebuildBucket(t,e,n,r){return m(e._path).then(()=>{return e.reduce((e,r)=>{return e.then(()=>{const e=s(t,r.integrity);return y(e).then(()=>{return l.insert(t,r.key,r.integrity,{metadata:r.metadata,size:r.size}).then(()=>{n.totalEntries++})}).catch(t=>{if(t.code==="ENOENT"){n.rejectedEntries++;n.missingContent++;return}throw t})})},Promise.resolve())})}function cleanTmp(t,e){e.log.silly("verify","cleaning tmp directory");return h(f.join(t,"tmp"))}function writeVerifile(t,e){const n=f.join(t,"_lastverified");e.log.silly("verify","writing verifile to "+n);try{return v(n,""+ +new Date)}finally{o.chownr.sync(t,n)}}t.exports.lastRun=lastRun;function lastRun(t){return g(f.join(t,"_lastverified"),"utf8").then(t=>new Date(+t))}},59:function(t){t.exports=require("assert")},69:function(t,e,n){"use strict";const r=n(357);const i=50*1024*1024;const s=3*60*1e3;const o=new r({max:i,maxAge:s,length:(t,e)=>e.startsWith("key:")?t.data.length:t.length});t.exports.clearMemoized=clearMemoized;function clearMemoized(){const t={};o.forEach((e,n)=>{t[n]=e});o.reset();return t}t.exports.put=put;function put(t,e,n,r){pickMem(r).set(`key:${t}:${e.key}`,{entry:e,data:n});putDigest(t,e.integrity,n,r)}t.exports.put.byDigest=putDigest;function putDigest(t,e,n,r){pickMem(r).set(`digest:${t}:${e}`,n)}t.exports.get=get;function get(t,e,n){return pickMem(n).get(`key:${t}:${e}`)}t.exports.get.byDigest=getDigest;function getDigest(t,e,n){return pickMem(n).get(`digest:${t}:${e}`)}class ObjProxy{constructor(t){this.obj=t}get(t){return this.obj[t]}set(t,e){this.obj[t]=e}}function pickMem(t){if(!t||!t.memoize){return o}else if(t.memoize.get&&t.memoize.set){return t.memoize}else if(typeof t.memoize==="object"){return new ObjProxy(t.memoize)}else{return o}}},87:function(t){t.exports=require("os")},91:function(t){"use strict";t.exports=function(t){var e=t._SomePromiseArray;function any(t){var n=new e(t);var r=n.promise();n.setHowMany(1);n.setUnwrap();n.init();return r}t.any=function(t){return any(t)};t.prototype.any=function(){return any(this)}}},106:function(t,e,n){"use strict";t.exports=function(t,e,r,i){var s=n(325);var o=function(t){return t.then(function(e){return race(e,t)})};function race(n,a){var c=r(n);if(c instanceof t){return o(c)}else{n=s.asArray(n);if(n===null)return i("expecting an array or an iterable object but got "+s.classString(n))}var u=new t(e);if(a!==undefined){u._propagateFrom(a,3)}var l=u._fulfill;var f=u._reject;for(var h=0,p=n.length;h{if(typeof c.uid!=="number"){c.uid=process.getuid();const t=process.setuid;process.setuid=(e=>{c.uid=null;process.setuid=t;return process.setuid(e)})}if(typeof c.gid!=="number"){c.gid=process.getgid();const t=process.setgid;process.setgid=(e=>{c.gid=null;process.setgid=t;return process.setgid(e)})}};t.exports.chownr=fixOwner;function fixOwner(t,e){if(!process.getuid){return Promise.resolve()}u();if(c.uid!==0){return Promise.resolve()}return Promise.resolve(a(t)).then(t=>{const{uid:n,gid:r}=t;if(c.uid===n&&c.gid===r){return}return o("fixOwner: fixing ownership on "+e,()=>i(e,typeof n==="number"?n:c.uid,typeof r==="number"?r:c.gid).catch(t=>{if(t.code==="ENOENT"){return null}throw t}))})}t.exports.chownr.sync=fixOwnerSync;function fixOwnerSync(t,e){if(!process.getuid){return}const{uid:n,gid:r}=a.sync(t);u();if(c.uid!==0){return}if(c.uid===n&&c.gid===r){return}try{i.sync(e,typeof n==="number"?n:c.uid,typeof r==="number"?r:c.gid)}catch(t){if(t.code==="ENOENT"){return null}throw t}}t.exports.mkdirfix=mkdirfix;function mkdirfix(t,e,n){return Promise.resolve(a(t)).then(()=>{return s(e).then(e=>{if(e){return fixOwner(t,e).then(()=>e)}}).catch(n=>{if(n.code==="EEXIST"){return fixOwner(t,e).then(()=>null)}throw n})})}t.exports.mkdirfix.sync=mkdirfixSync;function mkdirfixSync(t,e){try{a.sync(t);const n=s.sync(e);if(n){fixOwnerSync(t,n);return n}}catch(n){if(n.code==="EEXIST"){fixOwnerSync(t,e);return null}else{throw n}}}},144:function(t,e,n){var r=n(961);t.exports=r(once);t.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(t){var e=function(){if(e.called)return e.value;e.called=true;return e.value=t.apply(this,arguments)};e.called=false;return e}function onceStrict(t){var e=function(){if(e.called)throw new Error(e.onceError);e.called=true;return e.value=t.apply(this,arguments)};var n=t.name||"Function wrapped with `once`";e.onceError=n+" shouldn't be called more than once";e.called=false;return e}},151:function(t){"use strict";t.exports=function(t){function PromiseInspection(t){if(t!==undefined){t=t._target();this._bitField=t._bitField;this._settledValueField=t._isFateSealed()?t._settledValue():undefined}else{this._bitField=0;this._settledValueField=undefined}}PromiseInspection.prototype._settledValue=function(){return this._settledValueField};var e=PromiseInspection.prototype.value=function(){if(!this.isFulfilled()){throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n")}return this._settledValue()};var n=PromiseInspection.prototype.error=PromiseInspection.prototype.reason=function(){if(!this.isRejected()){throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n")}return this._settledValue()};var r=PromiseInspection.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0};var i=PromiseInspection.prototype.isRejected=function(){return(this._bitField&16777216)!==0};var s=PromiseInspection.prototype.isPending=function(){return(this._bitField&50397184)===0};var o=PromiseInspection.prototype.isResolved=function(){return(this._bitField&50331648)!==0};PromiseInspection.prototype.isCancelled=function(){return(this._bitField&8454144)!==0};t.prototype.__isCancelled=function(){return(this._bitField&65536)===65536};t.prototype._isCancelled=function(){return this._target().__isCancelled()};t.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0};t.prototype.isPending=function(){return s.call(this._target())};t.prototype.isRejected=function(){return i.call(this._target())};t.prototype.isFulfilled=function(){return r.call(this._target())};t.prototype.isResolved=function(){return o.call(this._target())};t.prototype.value=function(){return e.call(this._target())};t.prototype.reason=function(){var t=this._target();t._unsetRejectionIsUnhandled();return n.call(t)};t.prototype._value=function(){return this._settledValue()};t.prototype._reason=function(){this._unsetRejectionIsUnhandled();return this._settledValue()};t.PromiseInspection=PromiseInspection}},154:function(t,e,n){"use strict";const r=n(407);const i=n(69);const s=n(544);const o=n(274);const{PassThrough:a}=n(782);const c=n(398);const u=t=>({algorithms:["sha512"],...t});t.exports=putData;function putData(t,e,n,o={}){const{memoize:a}=o;o=u(o);return s(t,n,o).then(s=>{return r.insert(t,e,s.integrity,{...o,size:s.size}).then(e=>{if(a){i.put(t,e,n,o)}return s.integrity})})}t.exports.stream=putStream;function putStream(t,e,n={}){const{memoize:l}=n;n=u(n);let f;let h;let p;const d=new c;if(l){const t=(new a).on("collect",t=>{p=t});d.push(t)}const y=s.stream(t,n).on("integrity",t=>{f=t}).on("size",t=>{h=t});d.push(y);d.push(new o({flush(){return r.insert(t,e,f,{...n,size:h}).then(e=>{if(l&&p){i.put(t,e,p,n)}if(f){d.emit("integrity",f)}if(h){d.emit("size",h)}})}}));return d}},155:function(t,e,n){"use strict";t.exports=function(t,e,r,i){var s=t._async;var o=n(558).Warning;var a=n(325);var c=n(164);var u=a.canAttachTrace;var l;var f;var h=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/;var p=/\((?:timers\.js):\d+:\d+\)/;var d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/;var y=null;var m=null;var v=false;var g;var _=!!(a.env("BLUEBIRD_DEBUG")!=0&&(false||a.env("BLUEBIRD_DEBUG")||a.env("NODE_ENV")==="development"));var w=!!(a.env("BLUEBIRD_WARNINGS")!=0&&(_||a.env("BLUEBIRD_WARNINGS")));var b=!!(a.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(_||a.env("BLUEBIRD_LONG_STACK_TRACES")));var S=a.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(w||!!a.env("BLUEBIRD_W_FORGOTTEN_RETURN"));var E;(function(){var e=[];function unhandledRejectionCheck(){for(var t=0;t0};t.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576};t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&~1048576;if(this._isUnhandledRejectionNotified()){this._unsetUnhandledRejectionIsNotified();this._notifyUnhandledRejectionIsHandled()}};t.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0};t.prototype._warn=function(t,e,n){return warn(t,e,n||this)};t.onPossiblyUnhandledRejection=function(e){var n=t._getContext();f=a.contextBind(n,e)};t.onUnhandledRejectionHandled=function(e){var n=t._getContext();l=a.contextBind(n,e)};var k=function(){};t.longStackTraces=function(){if(s.haveItemsQueued()&&!N.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}if(!N.longStackTraces&&longStackTracesIsSupported()){var n=t.prototype._captureStackTrace;var r=t.prototype._attachExtraTrace;var i=t.prototype._dereferenceTrace;N.longStackTraces=true;k=function(){if(s.haveItemsQueued()&&!N.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}t.prototype._captureStackTrace=n;t.prototype._attachExtraTrace=r;t.prototype._dereferenceTrace=i;e.deactivateLongStackTraces();N.longStackTraces=false};t.prototype._captureStackTrace=longStackTracesCaptureStackTrace;t.prototype._attachExtraTrace=longStackTracesAttachExtraTrace;t.prototype._dereferenceTrace=longStackTracesDereferenceTrace;e.activateLongStackTraces()}};t.hasLongStackTraces=function(){return N.longStackTraces&&longStackTracesIsSupported()};var x={unhandledrejection:{before:function(){var t=a.global.onunhandledrejection;a.global.onunhandledrejection=null;return t},after:function(t){a.global.onunhandledrejection=t}},rejectionhandled:{before:function(){var t=a.global.onrejectionhandled;a.global.onrejectionhandled=null;return t},after:function(t){a.global.onrejectionhandled=t}}};var C=function(){var t=function(t,e){if(t){var n;try{n=t.before();return!a.global.dispatchEvent(e)}finally{t.after(n)}}else{return!a.global.dispatchEvent(e)}};try{if(typeof CustomEvent==="function"){var e=new CustomEvent("CustomEvent");a.global.dispatchEvent(e);return function(e,n){e=e.toLowerCase();var r={detail:n,cancelable:true};var i=new CustomEvent(e,r);c.defineProperty(i,"promise",{value:n.promise});c.defineProperty(i,"reason",{value:n.reason});return t(x[e],i)}}else if(typeof Event==="function"){var e=new Event("CustomEvent");a.global.dispatchEvent(e);return function(e,n){e=e.toLowerCase();var r=new Event(e,{cancelable:true});r.detail=n;c.defineProperty(r,"promise",{value:n.promise});c.defineProperty(r,"reason",{value:n.reason});return t(x[e],r)}}else{var e=document.createEvent("CustomEvent");e.initCustomEvent("testingtheevent",false,true,{});a.global.dispatchEvent(e);return function(e,n){e=e.toLowerCase();var r=document.createEvent("CustomEvent");r.initCustomEvent(e,false,true,n);return t(x[e],r)}}}catch(t){}return function(){return false}}();var A=function(){if(a.isNode){return function(){return process.emit.apply(process,arguments)}}else{if(!a.global){return function(){return false}}return function(t){var e="on"+t.toLowerCase();var n=a.global[e];if(!n)return false;n.apply(a.global,[].slice.call(arguments,1));return true}}}();function generatePromiseLifecycleEventObject(t,e){return{promise:e}}var T={promiseCreated:generatePromiseLifecycleEventObject,promiseFulfilled:generatePromiseLifecycleEventObject,promiseRejected:generatePromiseLifecycleEventObject,promiseResolved:generatePromiseLifecycleEventObject,promiseCancelled:generatePromiseLifecycleEventObject,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:generatePromiseLifecycleEventObject};var P=function(t){var e=false;try{e=A.apply(null,arguments)}catch(t){s.throwLater(t);e=true}var n=false;try{n=C(t,T[t].apply(null,arguments))}catch(t){s.throwLater(t);n=true}return n||e};t.config=function(e){e=Object(e);if("longStackTraces"in e){if(e.longStackTraces){t.longStackTraces()}else if(!e.longStackTraces&&t.hasLongStackTraces()){k()}}if("warnings"in e){var n=e.warnings;N.warnings=!!n;S=N.warnings;if(a.isObject(n)){if("wForgottenReturn"in n){S=!!n.wForgottenReturn}}}if("cancellation"in e&&e.cancellation&&!N.cancellation){if(s.haveItemsQueued()){throw new Error("cannot enable cancellation after promises are in use")}t.prototype._clearCancellationData=cancellationClearCancellationData;t.prototype._propagateFrom=cancellationPropagateFrom;t.prototype._onCancel=cancellationOnCancel;t.prototype._setOnCancel=cancellationSetOnCancel;t.prototype._attachCancellationCallback=cancellationAttachCancellationCallback;t.prototype._execute=cancellationExecute;j=cancellationPropagateFrom;N.cancellation=true}if("monitoring"in e){if(e.monitoring&&!N.monitoring){N.monitoring=true;t.prototype._fireEvent=P}else if(!e.monitoring&&N.monitoring){N.monitoring=false;t.prototype._fireEvent=defaultFireEvent}}if("asyncHooks"in e&&a.nodeSupportsAsyncResource){var o=N.asyncHooks;var c=!!e.asyncHooks;if(o!==c){N.asyncHooks=c;if(c){r()}else{i()}}}return t};function defaultFireEvent(){return false}t.prototype._fireEvent=defaultFireEvent;t.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}};t.prototype._onCancel=function(){};t.prototype._setOnCancel=function(t){};t.prototype._attachCancellationCallback=function(t){};t.prototype._captureStackTrace=function(){};t.prototype._attachExtraTrace=function(){};t.prototype._dereferenceTrace=function(){};t.prototype._clearCancellationData=function(){};t.prototype._propagateFrom=function(t,e){};function cancellationExecute(t,e,n){var r=this;try{t(e,n,function(t){if(typeof t!=="function"){throw new TypeError("onCancel must be a function, got: "+a.toString(t))}r._attachCancellationCallback(t)})}catch(t){return t}}function cancellationAttachCancellationCallback(t){if(!this._isCancellable())return this;var e=this._onCancel();if(e!==undefined){if(a.isArray(e)){e.push(t)}else{this._setOnCancel([e,t])}}else{this._setOnCancel(t)}}function cancellationOnCancel(){return this._onCancelField}function cancellationSetOnCancel(t){this._onCancelField=t}function cancellationClearCancellationData(){this._cancellationParent=undefined;this._onCancelField=undefined}function cancellationPropagateFrom(t,e){if((e&1)!==0){this._cancellationParent=t;var n=t._branchesRemainingToCancel;if(n===undefined){n=0}t._branchesRemainingToCancel=n+1}if((e&2)!==0&&t._isBound()){this._setBoundTo(t._boundTo)}}function bindingPropagateFrom(t,e){if((e&2)!==0&&t._isBound()){this._setBoundTo(t._boundTo)}}var j=bindingPropagateFrom;function boundValueFunction(){var e=this._boundTo;if(e!==undefined){if(e instanceof t){if(e.isFulfilled()){return e.value()}else{return undefined}}}return e}function longStackTracesCaptureStackTrace(){this._trace=new CapturedTrace(this._peekContext())}function longStackTracesAttachExtraTrace(t,e){if(u(t)){var n=this._trace;if(n!==undefined){if(e)n=n._parent}if(n!==undefined){n.attachExtraTrace(t)}else if(!t.__stackCleaned__){var r=parseStackAndMessage(t);a.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n"));a.notEnumerableProp(t,"__stackCleaned__",true)}}}function longStackTracesDereferenceTrace(){this._trace=undefined}function checkForgottenReturns(t,e,n,r,i){if(t===undefined&&e!==null&&S){if(i!==undefined&&i._returnedNonUndefined())return;if((r._bitField&65535)===0)return;if(n)n=n+" ";var s="";var o="";if(e._trace){var a=e._trace.stack.split("\n");var c=cleanStack(a);for(var u=c.length-1;u>=0;--u){var l=c[u];if(!p.test(l)){var f=l.match(d);if(f){s="at "+f[1]+":"+f[2]+":"+f[3]+" "}break}}if(c.length>0){var h=c[0];for(var u=0;u0){o="\n"+a[u-1]}break}}}}var y="a promise was created in a "+n+"handler "+s+"but was not returned from it, "+"see http://goo.gl/rRqMUw"+o;r._warn(y,true,e)}}function deprecated(t,e){var n=t+" is deprecated and will be removed in a future version.";if(e)n+=" Use "+e+" instead.";return warn(n)}function warn(e,n,r){if(!N.warnings)return;var i=new o(e);var s;if(n){r._attachExtraTrace(i)}else if(N.longStackTraces&&(s=t._peekContext())){s.attachExtraTrace(i)}else{var a=parseStackAndMessage(i);i.stack=a.message+"\n"+a.stack.join("\n")}if(!P("warning",i)){formatAndLogError(i,"",true)}}function reconstructStack(t,e){for(var n=0;n=0;--a){if(r[a]===s){o=a;break}}for(var a=o;a>=0;--a){var c=r[a];if(e[i]===c){e.pop();i--}else{break}}e=r}}function cleanStack(t){var e=[];for(var n=0;n0&&t.name!="SyntaxError"){e=e.slice(n)}return e}function parseStackAndMessage(t){var e=t.stack;var n=t.toString();e=typeof e==="string"&&e.length>0?stackFramesAsArray(t):[" (No stack trace)"];return{message:n,stack:t.name=="SyntaxError"?e:cleanStack(e)}}function formatAndLogError(t,e,n){if(typeof console!=="undefined"){var r;if(a.isObject(t)){var i=t.stack;r=e+m(i,t)}else{r=e+String(t)}if(typeof g==="function"){g(r,n)}else if(typeof console.log==="function"||typeof console.log==="object"){console.log(r)}}}function fireRejectionEvent(t,e,n,r){var i=false;try{if(typeof e==="function"){i=true;if(t==="rejectionHandled"){e(r)}else{e(n,r)}}}catch(t){s.throwLater(t)}if(t==="unhandledRejection"){if(!P(t,n,r)&&!i){formatAndLogError(n,"Unhandled rejection ")}}else{P(t,r)}}function formatNonError(t){var e;if(typeof t==="function"){e="[function "+(t.name||"anonymous")+"]"}else{e=t&&typeof t.toString==="function"?t.toString():a.toString(t);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(e)){try{var r=JSON.stringify(t);e=r}catch(t){}}if(e.length===0){e="(empty array)"}}return"(<"+snip(e)+">, no stack trace)"}function snip(t){var e=41;if(t.length=s){return}O=function(t){if(h.test(t))return true;var e=parseLineInfo(t);if(e){if(e.fileName===o&&(i<=e.line&&e.line<=s)){return true}}return false}}function CapturedTrace(t){this._parent=t;this._promisesCreated=0;var e=this._length=1+(t===undefined?0:t._length);R(this,CapturedTrace);if(e>32)this.uncycle()}a.inherits(CapturedTrace,Error);e.CapturedTrace=CapturedTrace;CapturedTrace.prototype.uncycle=function(){var t=this._length;if(t<2)return;var e=[];var n={};for(var r=0,i=this;i!==undefined;++r){e.push(i);i=i._parent}t=this._length=r;for(var r=t-1;r>=0;--r){var s=e[r].stack;if(n[s]===undefined){n[s]=r}}for(var r=0;r0){e[a-1]._parent=undefined;e[a-1]._length=1}e[r]._parent=undefined;e[r]._length=1;var c=r>0?e[r-1]:this;if(a=0;--l){e[l]._length=u;u++}return}}};CapturedTrace.prototype.attachExtraTrace=function(t){if(t.__stackCleaned__)return;this.uncycle();var e=parseStackAndMessage(t);var n=e.message;var r=[e.stack];var i=this;while(i!==undefined){r.push(cleanStack(i.stack.split("\n")));i=i._parent}removeCommonRoots(r);removeDuplicateOrEmptyJumps(r);a.notEnumerableProp(t,"stack",reconstructStack(n,r));a.notEnumerableProp(t,"__stackCleaned__",true)};var R=function stackDetection(){var t=/^\s*at\s*/;var e=function(t,e){if(typeof t==="string")return t;if(e.name!==undefined&&e.message!==undefined){return e.toString()}return formatNonError(e)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6;y=t;m=e;var n=Error.captureStackTrace;O=function(t){return h.test(t)};return function(t,e){Error.stackTraceLimit+=6;n(t,e);Error.stackTraceLimit-=6}}var r=new Error;if(typeof r.stack==="string"&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0){y=/@/;m=e;v=true;return function captureStackTrace(t){t.stack=(new Error).stack}}var i;try{throw new Error}catch(t){i="stack"in t}if(!("stack"in r)&&i&&typeof Error.stackTraceLimit==="number"){y=t;m=e;return function captureStackTrace(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6}}m=function(t,e){if(typeof t==="string")return t;if((typeof e==="object"||typeof e==="function")&&e.name!==undefined&&e.message!==undefined){return e.toString()}return formatNonError(e)};return null}([]);if(typeof console!=="undefined"&&typeof console.warn!=="undefined"){g=function(t){console.warn(t)};if(a.isNode&&process.stderr.isTTY){g=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}}else if(!a.isNode&&typeof(new Error).stack==="string"){g=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}}}var N={warnings:w,longStackTraces:false,cancellation:false,monitoring:false,asyncHooks:false};if(b)t.longStackTraces();return{asyncHooks:function(){return N.asyncHooks},longStackTraces:function(){return N.longStackTraces},warnings:function(){return N.warnings},cancellation:function(){return N.cancellation},monitoring:function(){return N.monitoring},propagateFromFunction:function(){return j},boundValueFunction:function(){return boundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:setBounds,warn:warn,deprecated:deprecated,CapturedTrace:CapturedTrace,fireDomEvent:C,fireGlobalEvent:A}}},161:function(t){"use strict";t.exports.disposer=disposer;function disposer(t,e,n){const r=(t,n,r=false)=>{return e(t).then(()=>{if(r){throw n}return n},t=>{throw t})};return t.then(t=>{return Promise.resolve().then(()=>n(t)).then(e=>r(t,e)).catch(e=>r(t,e,true))})}},164:function(t){var e=function(){"use strict";return this===undefined}();if(e){t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:e,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!!(!n||n.writable||n.set)}}}else{var n={}.hasOwnProperty;var r={}.toString;var i={}.constructor.prototype;var s=function(t){var e=[];for(var r in t){if(n.call(t,r)){e.push(r)}}return e};var o=function(t,e){return{value:t[e]}};var a=function(t,e,n){t[e]=n.value;return t};var c=function(t){return t};var u=function(t){try{return Object(t).constructor.prototype}catch(t){return i}};var l=function(t){try{return r.call(t)==="[object Array]"}catch(t){return false}};t.exports={isArray:l,keys:s,names:s,defineProperty:a,getDescriptor:o,freeze:c,getPrototypeOf:u,isES5:e,propertyIsWritable:function(){return true}}}},165:function(t,e,n){"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var e=this;if(!(e instanceof Yallist)){e=new Yallist}e.tail=null;e.head=null;e.length=0;if(t&&typeof t.forEach==="function"){t.forEach(function(t){e.push(t)})}else if(arguments.length>0){for(var n=0,r=arguments.length;n1){n=e}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;r!==null;i++){n=t(n,r.value,i);r=r.next}return n};Yallist.prototype.reduceReverse=function(t,e){var n;var r=this.tail;if(arguments.length>1){n=e}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;r!==null;i--){n=t(n,r.value,i);r=r.prev}return n};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var e=0,n=this.head;n!==null;e++){t[e]=n.value;n=n.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var e=0,n=this.tail;n!==null;e++){t[e]=n.value;n=n.prev}return t};Yallist.prototype.slice=function(t,e){e=e||this.length;if(e<0){e+=this.length}t=t||0;if(t<0){t+=this.length}var n=new Yallist;if(ethis.length){e=this.length}for(var r=0,i=this.head;i!==null&&rthis.length){e=this.length}for(var r=this.length,i=this.tail;i!==null&&r>e;r--){i=i.prev}for(;i!==null&&r>t;r--,i=i.prev){n.push(i.value)}return n};Yallist.prototype.splice=function(t,e,...n){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var r=0,i=this.head;i!==null&&r{return u(t).then(n=>({stat:n,cpath:t,sri:e}))}).then(({stat:t,cpath:e,sri:n})=>{if(typeof r==="number"&&t.size!==r){throw sizeError(r,t.size)}if(t.size>f){return h(e,t.size,n,new c).concat()}return l(e,null).then(t=>{if(!o.checkData(t,n)){throw integrityError(n,e)}return t})})}const h=(t,e,n,r)=>{r.push(new s.ReadStream(t,{size:e,readSize:f}),o.integrityStream({integrity:n,size:e}));return r};t.exports.sync=readSync;function readSync(t,e,n={}){const{size:r}=n;return withContentSriSync(t,e,(t,e)=>{const n=i.readFileSync(t);if(typeof r==="number"&&r!==n.length){throw sizeError(r,n.length)}if(o.checkData(n,e)){return n}throw integrityError(e,t)})}t.exports.stream=readStream;t.exports.readStream=readStream;function readStream(t,e,n={}){const{size:r}=n;const i=new c;withContentSri(t,e,(t,e)=>{return u(t).then(n=>({stat:n,cpath:t,sri:e}))}).then(({stat:t,cpath:e,sri:n})=>{if(typeof r==="number"&&r!==t.size){return i.emit("error",sizeError(r,t.size))}h(e,t.size,n,i)},t=>i.emit("error",t));return i}let p;if(i.copyFile){t.exports.copy=copy;t.exports.copy.sync=copySync;p=r.promisify(i.copyFile)}function copy(t,e,n){return withContentSri(t,e,(t,e)=>{return p(t,n)})}function copySync(t,e,n){return withContentSriSync(t,e,(t,e)=>{return i.copyFileSync(t,n)})}t.exports.hasContent=hasContent;function hasContent(t,e){if(!e){return Promise.resolve(false)}return withContentSri(t,e,(t,e)=>{return u(t).then(t=>({size:t.size,sri:e,stat:t}))}).catch(t=>{if(t.code==="ENOENT"){return false}if(t.code==="EPERM"){if(process.platform!=="win32"){throw t}else{return false}}})}t.exports.hasContent.sync=hasContentSync;function hasContentSync(t,e){if(!e){return false}return withContentSriSync(t,e,(t,e)=>{try{const n=i.lstatSync(t);return{size:n.size,sri:e,stat:n}}catch(t){if(t.code==="ENOENT"){return false}if(t.code==="EPERM"){if(process.platform!=="win32"){throw t}else{return false}}}})}function withContentSri(t,e,n){const r=()=>{const r=o.parse(e);const i=r.pickAlgorithm();const s=r[i];if(s.length<=1){const e=a(t,s[0]);return n(e,s[0])}else{return Promise.all(s.map(e=>{return withContentSri(t,e,n).catch(t=>{if(t.code==="ENOENT"){return Object.assign(new Error("No matching content found for "+r.toString()),{code:"ENOENT"})}return t})})).then(t=>{const e=t.find(t=>!(t instanceof Error));if(e){return e}const n=t.find(t=>t.code==="ENOENT");if(n){throw n}throw t.find(t=>t instanceof Error)})}};return new Promise((t,e)=>{try{r().then(t).catch(e)}catch(t){e(t)}})}function withContentSriSync(t,e,n){const r=o.parse(e);const i=r.pickAlgorithm();const s=r[i];if(s.length<=1){const e=a(t,s[0]);return n(e,s[0])}else{let e=null;for(const r of s){try{return withContentSriSync(t,r,n)}catch(t){e=t}}throw e}}function sizeError(t,e){const n=new Error(`Bad data size: expected inserted data to be ${t} bytes, but got ${e} instead`);n.expected=t;n.found=e;n.code="EBADSIZE";return n}function integrityError(t,e){const n=new Error(`Integrity verification failed for ${t} (${e})`);n.code="EINTEGRITY";n.sri=t;n.path=e;return n}},186:function(t){"use strict";t.exports=function(t,e,n,r){var i=false;var s=function(t,e){this._reject(e)};var o=function(t,e){e.promiseRejectionQueued=true;e.bindingPromise._then(s,s,null,this,t)};var a=function(t,e){if((this._bitField&50397184)===0){this._resolveCallback(e.target)}};var c=function(t,e){if(!e.promiseRejectionQueued)this._reject(t)};t.prototype.bind=function(s){if(!i){i=true;t.prototype._propagateFrom=r.propagateFromFunction();t.prototype._boundValue=r.boundValueFunction()}var u=n(s);var l=new t(e);l._propagateFrom(this,1);var f=this._target();l._setBoundTo(u);if(u instanceof t){var h={promiseRejectionQueued:false,promise:l,target:f,bindingPromise:u};f._then(e,o,undefined,l,h);u._then(a,c,undefined,l,h);l._setOnCancel(u)}else{l._resolveCallback(f)}return l};t.prototype._setBoundTo=function(t){if(t!==undefined){this._bitField=this._bitField|2097152;this._boundTo=t}else{this._bitField=this._bitField&~2097152}};t.prototype._isBound=function(){return(this._bitField&2097152)===2097152};t.bind=function(e,n){return t.resolve(n).bind(e)}}},212:function(t,e,n){try{var r=n(669);if(typeof r.inherits!=="function")throw"";t.exports=r.inherits}catch(e){t.exports=n(223)}},223:function(t){if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype;t.prototype=new n;t.prototype.constructor=t}}}},243:function(t,e,n){"use strict";var r=n(622);var i=n(40);t.exports=function(t,e,n){return r.join(t,(e?e+"-":"")+i(n))}},250:function(t){"use strict";t.exports=((t,e=1,n)=>{n={indent:" ",includeEmptyLines:false,...n};if(typeof t!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``)}if(typeof e!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``)}if(typeof n.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``)}if(e===0){return t}const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(r,n.indent.repeat(e))})},262:function(t,e,n){"use strict";t.exports=function(t){var e=n(325);var r=t._async;var i=e.tryCatch;var s=e.errorObj;function spreadAdapter(t,n){var o=this;if(!e.isArray(t))return successAdapter.call(o,t,n);var a=i(n).apply(o._boundValue(),[null].concat(t));if(a===s){r.throwLater(a.e)}}function successAdapter(t,e){var n=this;var o=n._boundValue();var a=t===undefined?i(e).call(o,null):i(e).call(o,null,t);if(a===s){r.throwLater(a.e)}}function errorAdapter(t,e){var n=this;if(!t){var o=new Error(t+"");o.cause=t;t=o}var a=i(e).call(n._boundValue(),t);if(a===s){r.throwLater(a.e)}}t.prototype.asCallback=t.prototype.nodeify=function(t,e){if(typeof t=="function"){var n=successAdapter;if(e!==undefined&&Object(e).spread){n=spreadAdapter}this._then(n,errorAdapter,undefined,this,t)}return this}}},272:function(t,e,n){"use strict";t.exports=function(t,e,r,i,s){var o=n(325);var a=o.canEvaluate;var c=o.tryCatch;var u=o.errorObj;var l;if(true){if(a){var f=function(t){return new Function("value","holder"," \n 'use strict'; \n holder.pIndex = value; \n holder.checkFulfillment(this); \n ".replace(/Index/g,t))};var h=function(t){return new Function("promise","holder"," \n 'use strict'; \n holder.pIndex = promise; \n ".replace(/Index/g,t))};var p=function(e){var n=new Array(e);for(var r=0;r0&&typeof arguments[n]==="function"){s=arguments[n];if(true){if(n<=8&&a){var c=new t(i);c._captureStackTrace();var u=d[n-1];var f=new u(s);var h=y;for(var p=0;p{this[s]=true;t?super.emit("error",t):super.emit("end")};const r=this[i](n);if(r&&r.then)r.then(()=>n(),t=>n(t))}}t.exports=Flush},277:function(t,e,n){const{dirname:r}=n(622);const i=(t,e,n=undefined)=>{if(n===e)return Promise.resolve();return t.statAsync(e).then(t=>t.isDirectory()?n:undefined,n=>n.code==="ENOENT"?i(t,r(e),e):undefined)};const s=(t,e,n=undefined)=>{if(n===e)return undefined;try{return t.statSync(e).isDirectory()?n:undefined}catch(n){return n.code==="ENOENT"?s(t,r(e),e):undefined}};t.exports={findMade:i,findMadeSync:s}},283:function(t,e,n){const{dirname:r}=n(622);const i=(t,e,n)=>{e.recursive=false;const s=r(t);if(s===t){return e.mkdirAsync(t,e).catch(t=>{if(t.code!=="EISDIR")throw t})}return e.mkdirAsync(t,e).then(()=>n||t,r=>{if(r.code==="ENOENT")return i(s,e).then(n=>i(t,e,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return e.statAsync(t).then(t=>{if(t.isDirectory())return n;else throw r},()=>{throw r})})};const s=(t,e,n)=>{const i=r(t);e.recursive=false;if(i===t){try{return e.mkdirSync(t,e)}catch(t){if(t.code!=="EISDIR")throw t;else return}}try{e.mkdirSync(t,e);return n||t}catch(r){if(r.code==="ENOENT")return s(t,e,s(i,e,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!e.statSync(t).isDirectory())throw r}catch(t){throw r}}};t.exports={mkdirpManual:i,mkdirpManualSync:s}},303:function(t){t.exports=require("async_hooks")},304:function(t){t.exports=require("string_decoder")},311:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},316:function(t,e,n){"use strict";const r=n(614);const i=n(413);const s=n(165);const o=n(304).StringDecoder;const a=Symbol("EOF");const c=Symbol("maybeEmitEnd");const u=Symbol("emittedEnd");const l=Symbol("emittingEnd");const f=Symbol("closed");const h=Symbol("read");const p=Symbol("flush");const d=Symbol("flushChunk");const y=Symbol("encoding");const m=Symbol("decoder");const v=Symbol("flowing");const g=Symbol("paused");const _=Symbol("resume");const w=Symbol("bufferLength");const b=Symbol("bufferPush");const S=Symbol("bufferShift");const E=Symbol("objectMode");const k=Symbol("destroyed");const x=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const C=x&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const A=x&&Symbol.iterator||Symbol("iterator not implemented");const T=t=>t==="end"||t==="finish"||t==="prefinish";const P=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const j=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);t.exports=class Minipass extends i{constructor(t){super();this[v]=false;this[g]=false;this.pipes=new s;this.buffer=new s;this[E]=t&&t.objectMode||false;if(this[E])this[y]=null;else this[y]=t&&t.encoding||null;if(this[y]==="buffer")this[y]=null;this[m]=this[y]?new o(this[y]):null;this[a]=false;this[u]=false;this[l]=false;this[f]=false;this.writable=true;this.readable=true;this[w]=0;this[k]=false}get bufferLength(){return this[w]}get encoding(){return this[y]}set encoding(t){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[y]&&t!==this[y]&&(this[m]&&this[m].lastNeed||this[w]))throw new Error("cannot change encoding");if(this[y]!==t){this[m]=t?new o(t):null;if(this.buffer.length)this.buffer=this.buffer.map(t=>this[m].write(t))}this[y]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[E]}set objectMode(t){this[E]=this[E]||!!t}write(t,e,n){if(this[a])throw new Error("write after end");if(this[k]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof e==="function")n=e,e="utf8";if(!e)e="utf8";if(!this[E]&&!Buffer.isBuffer(t)){if(j(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(P(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(!this.objectMode&&!t.length){const t=this.flowing;if(this[w]!==0)this.emit("readable");if(n)n();return t}if(typeof t==="string"&&!this[E]&&!(e===this[y]&&!this[m].lastNeed)){t=Buffer.from(t,e)}if(Buffer.isBuffer(t)&&this[y])t=this[m].write(t);try{return this.flowing?(this.emit("data",t),this.flowing):(this[b](t),false)}finally{if(this[w]!==0)this.emit("readable");if(n)n()}}read(t){if(this[k])return null;try{if(this[w]===0||t===0||t>this[w])return null;if(this[E])t=null;if(this.buffer.length>1&&!this[E]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[w])])}return this[h](t||null,this.buffer.head.value)}finally{this[c]()}}[h](t,e){if(t===e.length||t===null)this[S]();else{this.buffer.head.value=e.slice(t);e=e.slice(0,t);this[w]-=t}this.emit("data",e);if(!this.buffer.length&&!this[a])this.emit("drain");return e}end(t,e,n){if(typeof t==="function")n=t,t=null;if(typeof e==="function")n=e,e="utf8";if(t)this.write(t,e);if(n)this.once("end",n);this[a]=true;this.writable=false;if(this.flowing||!this[g])this[c]();return this}[_](){if(this[k])return;this[g]=false;this[v]=true;this.emit("resume");if(this.buffer.length)this[p]();else if(this[a])this[c]();else this.emit("drain")}resume(){return this[_]()}pause(){this[v]=false;this[g]=true}get destroyed(){return this[k]}get flowing(){return this[v]}get paused(){return this[g]}[b](t){if(this[E])this[w]+=1;else this[w]+=t.length;return this.buffer.push(t)}[S](){if(this.buffer.length){if(this[E])this[w]-=1;else this[w]-=this.buffer.head.value.length}return this.buffer.shift()}[p](){do{}while(this[d](this[S]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[d](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,e){if(this[k])return;const n=this[u];e=e||{};if(t===process.stdout||t===process.stderr)e.end=false;else e.end=e.end!==false;const r={dest:t,opts:e,ondrain:t=>this[_]()};this.pipes.push(r);t.on("drain",r.ondrain);this[_]();if(n&&r.opts.end)r.dest.end();return t}addListener(t,e){return this.on(t,e)}on(t,e){try{return super.on(t,e)}finally{if(t==="data"&&!this.pipes.length&&!this.flowing)this[_]();else if(T(t)&&this[u]){super.emit(t);this.removeAllListeners(t)}}}get emittedEnd(){return this[u]}[c](){if(!this[l]&&!this[u]&&!this[k]&&this.buffer.length===0&&this[a]){this[l]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[f])this.emit("close");this[l]=false}}emit(t,e){if(t!=="error"&&t!=="close"&&t!==k&&this[k])return;else if(t==="data"){if(!e)return;if(this.pipes.length)this.pipes.forEach(t=>t.dest.write(e)===false&&this.pause())}else if(t==="end"){if(this[u]===true)return;this[u]=true;this.readable=false;if(this[m]){e=this[m].end();if(e){this.pipes.forEach(t=>t.dest.write(e));super.emit("data",e)}}this.pipes.forEach(t=>{t.dest.removeListener("drain",t.ondrain);if(t.opts.end)t.dest.end()})}else if(t==="close"){this[f]=true;if(!this[u]&&!this[k])return}const n=new Array(arguments.length);n[0]=t;n[1]=e;if(arguments.length>2){for(let t=2;t{t.push(e);if(!this[E])t.dataLength+=e.length});return e.then(()=>t)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,e)=>{this.on(k,()=>e(new Error("stream destroyed")));this.on("end",()=>t());this.on("error",t=>e(t))})}[C](){const t=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[a])return Promise.resolve({done:true});let e=null;let n=null;const r=t=>{this.removeListener("data",i);this.removeListener("end",s);n(t)};const i=t=>{this.removeListener("error",r);this.removeListener("end",s);this.pause();e({value:t,done:!!this[a]})};const s=()=>{this.removeListener("error",r);this.removeListener("data",i);e({done:true})};const o=()=>r(new Error("stream destroyed"));return new Promise((t,a)=>{n=a;e=t;this.once(k,o);this.once("error",r);this.once("end",s);this.once("data",i)})};return{next:t}}[A](){const t=()=>{const t=this.read();const e=t===null;return{value:t,done:e}};return{next:t}}destroy(t){if(this[k]){if(t)this.emit("error",t);else this.emit(k);return this}this[k]=true;this.buffer=new s;this[w]=0;if(typeof this.close==="function"&&!this[f])this.close();if(t)this.emit("error",t);else this.emit(k);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof i||t instanceof r&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},325:function(module,__unusedexports,__webpack_require__){"use strict";var es5=__webpack_require__(164);var canEvaluate=typeof navigator=="undefined";var errorObj={e:{}};var tryCatchTarget;var globalObject=typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this!==undefined?this:null;function tryCatcher(){try{var t=tryCatchTarget;tryCatchTarget=null;return t.apply(this,arguments)}catch(t){errorObj.e=t;return errorObj}}function tryCatch(t){tryCatchTarget=t;return tryCatcher}var inherits=function(t,e){var n={}.hasOwnProperty;function T(){this.constructor=t;this.constructor$=e;for(var r in e.prototype){if(n.call(e.prototype,r)&&r.charAt(r.length-1)!=="$"){this[r+"$"]=e.prototype[r]}}}T.prototype=e.prototype;t.prototype=new T;return t.prototype};function isPrimitive(t){return t==null||t===true||t===false||typeof t==="string"||typeof t==="number"}function isObject(t){return typeof t==="function"||typeof t==="object"&&t!==null}function maybeWrapAsError(t){if(!isPrimitive(t))return t;return new Error(safeToString(t))}function withAppended(t,e){var n=t.length;var r=new Array(n+1);var i;for(i=0;i1;var r=e.length>0&&!(e.length===1&&e[0]==="constructor");var i=thisAssignmentPattern.test(t+"")&&es5.names(t).length>0;if(n||r||i){return true}}return false}catch(t){return false}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}ic();ic();return obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(t){return rident.test(t)}function filledRange(t,e,n){var r=new Array(t);for(var i=0;i10||t[0]>0}();ret.nodeSupportsAsyncResource=ret.isNode&&function(){var t=false;try{var e=__webpack_require__(303).AsyncResource;t=typeof e.prototype.runInAsyncScope==="function"}catch(e){t=false}return t}();if(ret.isNode)ret.toFastProperties(process);try{throw new Error}catch(t){ret.lastLineError=t}module.exports=ret},326:function(t){"use strict";t.exports=hashToSegments;function hashToSegments(t){return[t.slice(0,2),t.slice(2,4),t.slice(4)]}},334:function(t,e,n){e.alphasort=alphasort;e.alphasorti=alphasorti;e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var r=n(622);var i=n(938);var s=n(635);var o=i.Minimatch;function alphasorti(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function alphasort(t,e){return t.localeCompare(e)}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var n=t.replace(/(\/\*\*)+$/,"");e=new o(n,{dot:true})}return{matcher:new o(t,{dot:true}),gmatcher:e}}function setopts(t,e,n){if(!n)n={};if(n.matchBase&&-1===e.indexOf("/")){if(n.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!n.silent;t.pattern=e;t.strict=n.strict!==false;t.realpath=!!n.realpath;t.realpathCache=n.realpathCache||Object.create(null);t.follow=!!n.follow;t.dot=!!n.dot;t.mark=!!n.mark;t.nodir=!!n.nodir;if(t.nodir)t.mark=true;t.sync=!!n.sync;t.nounique=!!n.nounique;t.nonull=!!n.nonull;t.nosort=!!n.nosort;t.nocase=!!n.nocase;t.stat=!!n.stat;t.noprocess=!!n.noprocess;t.absolute=!!n.absolute;t.maxLength=n.maxLength||Infinity;t.cache=n.cache||Object.create(null);t.statCache=n.statCache||Object.create(null);t.symlinks=n.symlinks||Object.create(null);setupIgnores(t,n);t.changedCwd=false;var i=process.cwd();if(!ownProp(n,"cwd"))t.cwd=i;else{t.cwd=r.resolve(n.cwd);t.changedCwd=t.cwd!==i}t.root=n.root||r.resolve(t.cwd,"/");t.root=r.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=s(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!n.nomount;n.nonegate=true;n.nocomment=true;t.minimatch=new o(e,n);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var n=e?[]:Object.create(null);for(var r=0,i=t.matches.length;rt.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class AggregateError extends Error{constructor(t){if(!Array.isArray(t)){throw new TypeError(`Expected input to be an Array, got ${typeof t}`)}t=[...t].map(t=>{if(t instanceof Error){return t}if(t!==null&&typeof t==="object"){return Object.assign(new Error(t.message),t)}return new Error(t)});let e=t.map(t=>{return typeof t.stack==="string"?s(i(t.stack)):String(t)}).join("\n");e="\n"+r(e,4);super(e);this.name="AggregateError";Object.defineProperty(this,"_errors",{value:t})}*[Symbol.iterator](){for(const t of this._errors){yield t}}}t.exports=AggregateError},355:function(t,e,n){"use strict";t.exports=function(t,e,r,i,s,o){var a=n(325);var c=a.tryCatch;function ReductionPromiseArray(e,n,r,i){this.constructor$(e);var o=t._getContext();this._fn=a.contextBind(o,n);if(r!==undefined){r=t.resolve(r);r._attachCancellationCallback(this)}this._initialValue=r;this._currentCancellable=null;if(i===s){this._eachValues=Array(this._length)}else if(i===0){this._eachValues=null}else{this._eachValues=undefined}this._promise._captureStackTrace();this._init$(undefined,-5)}a.inherits(ReductionPromiseArray,e);ReductionPromiseArray.prototype._gotAccum=function(t){if(this._eachValues!==undefined&&this._eachValues!==null&&t!==s){this._eachValues.push(t)}};ReductionPromiseArray.prototype._eachComplete=function(t){if(this._eachValues!==null){this._eachValues.push(t)}return this._eachValues};ReductionPromiseArray.prototype._init=function(){};ReductionPromiseArray.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==undefined?this._eachValues:this._initialValue)};ReductionPromiseArray.prototype.shouldCopyValues=function(){return false};ReductionPromiseArray.prototype._resolve=function(t){this._promise._resolveCallback(t);this._values=null};ReductionPromiseArray.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();if(this._isResolved())return;this._resultCancelled$();if(this._currentCancellable instanceof t){this._currentCancellable.cancel()}if(this._initialValue instanceof t){this._initialValue.cancel()}};ReductionPromiseArray.prototype._iterate=function(e){this._values=e;var n;var r;var i=e.length;if(this._initialValue!==undefined){n=this._initialValue;r=0}else{n=t.resolve(e[0]);r=1}this._currentCancellable=n;for(var s=r;s1;class LRUCache{constructor(t){if(typeof t==="number")t={max:t};if(!t)t={};if(t.max&&(typeof t.max!=="number"||t.max<0))throw new TypeError("max must be a non-negative number");const e=this[i]=t.max||Infinity;const n=t.length||d;this[o]=typeof n!=="function"?d:n;this[a]=t.stale||false;if(t.maxAge&&typeof t.maxAge!=="number")throw new TypeError("maxAge must be a number");this[c]=t.maxAge||0;this[u]=t.dispose;this[l]=t.noDisposeOnSet||false;this[p]=t.updateAgeOnGet||false;this.reset()}set max(t){if(typeof t!=="number"||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||Infinity;v(this)}get max(){return this[i]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if(typeof t!=="number")throw new TypeError("maxAge must be a non-negative number");this[c]=t;v(this)}get maxAge(){return this[c]}set lengthCalculator(t){if(typeof t!=="function")t=d;if(t!==this[o]){this[o]=t;this[s]=0;this[f].forEach(t=>{t.length=this[o](t.value,t.key);this[s]+=t.length})}v(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[f].length}rforEach(t,e){e=e||this;for(let n=this[f].tail;n!==null;){const r=n.prev;_(this,t,n,e);n=r}}forEach(t,e){e=e||this;for(let n=this[f].head;n!==null;){const r=n.next;_(this,t,n,e);n=r}}keys(){return this[f].toArray().map(t=>t.key)}values(){return this[f].toArray().map(t=>t.value)}reset(){if(this[u]&&this[f]&&this[f].length){this[f].forEach(t=>this[u](t.key,t.value))}this[h]=new Map;this[f]=new r;this[s]=0}dump(){return this[f].map(t=>m(this,t)?false:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[f]}set(t,e,n){n=n||this[c];if(n&&typeof n!=="number")throw new TypeError("maxAge must be a number");const r=n?Date.now():0;const a=this[o](e,t);if(this[h].has(t)){if(a>this[i]){g(this,this[h].get(t));return false}const o=this[h].get(t);const c=o.value;if(this[u]){if(!this[l])this[u](t,c.value)}c.now=r;c.maxAge=n;c.value=e;this[s]+=a-c.length;c.length=a;this.get(t);v(this);return true}const p=new Entry(t,e,a,r,n);if(p.length>this[i]){if(this[u])this[u](t,e);return false}this[s]+=p.length;this[f].unshift(p);this[h].set(t,this[f].head);v(this);return true}has(t){if(!this[h].has(t))return false;const e=this[h].get(t).value;return!m(this,e)}get(t){return y(this,t,true)}peek(t){return y(this,t,false)}pop(){const t=this[f].tail;if(!t)return null;g(this,t);return t.value}del(t){g(this,this[h].get(t))}load(t){this.reset();const e=Date.now();for(let n=t.length-1;n>=0;n--){const r=t[n];const i=r.e||0;if(i===0)this.set(r.k,r.v);else{const t=i-e;if(t>0){this.set(r.k,r.v,t)}}}}prune(){this[h].forEach((t,e)=>y(this,e,false))}}const y=(t,e,n)=>{const r=t[h].get(e);if(r){const e=r.value;if(m(t,e)){g(t,r);if(!t[a])return undefined}else{if(n){if(t[p])r.value.now=Date.now();t[f].unshiftNode(r)}}return e.value}};const m=(t,e)=>{if(!e||!e.maxAge&&!t[c])return false;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[c]&&n>t[c]};const v=t=>{if(t[s]>t[i]){for(let e=t[f].tail;t[s]>t[i]&&e!==null;){const n=e.prev;g(t,e);e=n}}};const g=(t,e)=>{if(e){const n=e.value;if(t[u])t[u](n.key,n.value);t[s]-=n.length;t[h].delete(n.key);t[f].removeNode(e)}};class Entry{constructor(t,e,n,r,i){this.key=t;this.value=e;this.length=n;this.now=r;this.maxAge=i||0}}const _=(t,e,n,r)=>{let i=n.value;if(m(t,i)){g(t,n);if(!t[a])i=undefined}if(i)e.call(r,i.value,i.key,t)};t.exports=LRUCache},376:function(t,e,n){"use strict";t.exports=function(t,e,r,i,s,o){var a=n(325);var c=n(558).TypeError;var u=n(325).inherits;var l=a.errorObj;var f=a.tryCatch;var h={};function thrower(t){setTimeout(function(){throw t},0)}function castPreservingDisposable(t){var e=r(t);if(e!==t&&typeof t._isDisposable==="function"&&typeof t._getDisposer==="function"&&t._isDisposable()){e._setDisposable(t._getDisposer())}return e}function dispose(e,n){var i=0;var o=e.length;var a=new t(s);function iterator(){if(i>=o)return a._fulfill();var s=castPreservingDisposable(e[i++]);if(s instanceof t&&s._isDisposable()){try{s=r(s._getDisposer().tryDispose(n),e.promise)}catch(t){return thrower(t)}if(s instanceof t){return s._then(iterator,thrower,null,null,null)}}iterator()}iterator();return a}function Disposer(t,e,n){this._data=t;this._promise=e;this._context=n}Disposer.prototype.data=function(){return this._data};Disposer.prototype.promise=function(){return this._promise};Disposer.prototype.resource=function(){if(this.promise().isFulfilled()){return this.promise().value()}return h};Disposer.prototype.tryDispose=function(t){var e=this.resource();var n=this._context;if(n!==undefined)n._pushContext();var r=e!==h?this.doDispose(e,t):null;if(n!==undefined)n._popContext();this._promise._unsetDisposable();this._data=null;return r};Disposer.isDisposer=function(t){return t!=null&&typeof t.resource==="function"&&typeof t.tryDispose==="function"};function FunctionDisposer(t,e,n){this.constructor$(t,e,n)}u(FunctionDisposer,Disposer);FunctionDisposer.prototype.doDispose=function(t,e){var n=this.data();return n.call(t,t,e)};function maybeUnwrapDisposer(t){if(Disposer.isDisposer(t)){this.resources[this.index]._setDisposable(t);return t.promise()}return t}function ResourceList(t){this.length=t;this.promise=null;this[t-1]=null}ResourceList.prototype._resultCancelled=function(){var e=this.length;for(var n=0;n0};t.prototype._getDisposer=function(){return this._disposer};t.prototype._unsetDisposable=function(){this._bitField=this._bitField&~131072;this._disposer=undefined};t.prototype.disposer=function(t){if(typeof t==="function"){return new FunctionDisposer(t,this,i())}throw new c}}},396:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},398:function(t,e,n){const r=n(316);const i=n(614);const s=t=>t&&t instanceof i&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function");const o=Symbol("_head");const a=Symbol("_tail");const c=Symbol("_linkStreams");const u=Symbol("_setHead");const l=Symbol("_setTail");const f=Symbol("_onError");const h=Symbol("_onData");const p=Symbol("_onEnd");const d=Symbol("_onDrain");const y=Symbol("_streams");class Pipeline extends r{constructor(t,...e){if(s(t)){e.unshift(t);t={}}super(t);this[y]=[];if(e.length)this.push(...e)}[c](t){return t.reduce((t,e)=>{t.on("error",t=>e.emit("error",t));t.pipe(e);return e})}push(...t){this[y].push(...t);if(this[a])t.unshift(this[a]);const e=this[c](t);this[l](e);if(!this[o])this[u](t[0])}unshift(...t){this[y].unshift(...t);if(this[o])t.push(this[o]);const e=this[c](t);this[u](t[0]);if(!this[a])this[l](e)}destroy(t){this[y].forEach(t=>typeof t.destroy==="function"&&t.destroy());return super.destroy(t)}[l](t){this[a]=t;t.on("error",e=>this[f](t,e));t.on("data",e=>this[h](t,e));t.on("end",()=>this[p](t));t.on("finish",()=>this[p](t))}[f](t,e){if(t===this[a])this.emit("error",e)}[h](t,e){if(t===this[a])super.write(e)}[p](t){if(t===this[a])super.end()}pause(){super.pause();return this[a]&&this[a].pause&&this[a].pause()}emit(t,...e){if(t==="resume"&&this[a]&&this[a].resume)this[a].resume();return super.emit(t,...e)}[u](t){this[o]=t;t.on("drain",()=>this[d](t))}[d](t){if(t===this[o])this.emit("drain")}write(t,e,n){return this[o].write(t,e,n)}end(t,e,n){this[o].end(t,e,n);return this}}t.exports=Pipeline},401:function(t){"use strict";t.exports=function(t){var e=false;var n=[];t.prototype._promiseCreated=function(){};t.prototype._pushContext=function(){};t.prototype._popContext=function(){return null};t._peekContext=t.prototype._peekContext=function(){};function Context(){this._trace=new Context.CapturedTrace(peekContext())}Context.prototype._pushContext=function(){if(this._trace!==undefined){this._trace._promiseCreated=null;n.push(this._trace)}};Context.prototype._popContext=function(){if(this._trace!==undefined){var t=n.pop();var e=t._promiseCreated;t._promiseCreated=null;return e}return null};function createContext(){if(e)return new Context}function peekContext(){var t=n.length-1;if(t>=0){return n[t]}return undefined}Context.CapturedTrace=null;Context.create=createContext;Context.deactivateLongStackTraces=function(){};Context.activateLongStackTraces=function(){var n=t.prototype._pushContext;var r=t.prototype._popContext;var i=t._peekContext;var s=t.prototype._peekContext;var o=t.prototype._promiseCreated;Context.deactivateLongStackTraces=function(){t.prototype._pushContext=n;t.prototype._popContext=r;t._peekContext=i;t.prototype._peekContext=s;t.prototype._promiseCreated=o;e=false};e=true;t.prototype._pushContext=Context.prototype._pushContext;t.prototype._popContext=Context.prototype._popContext;t._peekContext=t.prototype._peekContext=peekContext;t.prototype._promiseCreated=function(){var t=this._peekContext();if(t&&t._promiseCreated==null)t._promiseCreated=this}};return Context}},407:function(t,e,n){"use strict";const r=n(669);const i=n(417);const s=n(747);const o=n(316);const a=n(622);const c=n(951);const u=n(969);const l=n(133);const f=n(326);const h=n(525)["cache-version"].index;const p=r.promisify(s.appendFile);const d=r.promisify(s.readFile);const y=r.promisify(s.readdir);t.exports.NotFoundError=class NotFoundError extends Error{constructor(t,e){super(`No cache entry for ${e} found in ${t}`);this.code="ENOENT";this.cache=t;this.key=e}};t.exports.insert=insert;function insert(t,e,n,r={}){const{metadata:i,size:s}=r;const o=bucketPath(t,e);const u={key:e,integrity:n&&c.stringify(n),time:Date.now(),size:s,metadata:i};return l.mkdirfix(t,a.dirname(o)).then(()=>{const t=JSON.stringify(u);return p(o,`\n${hashEntry(t)}\t${t}`)}).then(()=>l.chownr(t,o)).catch(t=>{if(t.code==="ENOENT"){return undefined}throw t}).then(()=>{return formatEntry(t,u)})}t.exports.insert.sync=insertSync;function insertSync(t,e,n,r={}){const{metadata:i,size:o}=r;const u=bucketPath(t,e);const f={key:e,integrity:n&&c.stringify(n),time:Date.now(),size:o,metadata:i};l.mkdirfix.sync(t,a.dirname(u));const h=JSON.stringify(f);s.appendFileSync(u,`\n${hashEntry(h)}\t${h}`);try{l.chownr.sync(t,u)}catch(t){if(t.code!=="ENOENT"){throw t}}return formatEntry(t,f)}t.exports.find=find;function find(t,e){const n=bucketPath(t,e);return bucketEntries(n).then(n=>{return n.reduce((n,r)=>{if(r&&r.key===e){return formatEntry(t,r)}else{return n}},null)}).catch(t=>{if(t.code==="ENOENT"){return null}else{throw t}})}t.exports.find.sync=findSync;function findSync(t,e){const n=bucketPath(t,e);try{return bucketEntriesSync(n).reduce((n,r)=>{if(r&&r.key===e){return formatEntry(t,r)}else{return n}},null)}catch(t){if(t.code==="ENOENT"){return null}else{throw t}}}t.exports.delete=del;function del(t,e,n){return insert(t,e,null,n)}t.exports.delete.sync=delSync;function delSync(t,e,n){return insertSync(t,e,null,n)}t.exports.lsStream=lsStream;function lsStream(t){const e=bucketDir(t);const n=new o({objectMode:true});readdirOrEmpty(e).then(r=>Promise.all(r.map(r=>{const i=a.join(e,r);return readdirOrEmpty(i).then(e=>Promise.all(e.map(e=>{const r=a.join(i,e);return readdirOrEmpty(r).then(e=>Promise.all(e.map(e=>{const i=a.join(r,e);return bucketEntries(i).then(t=>t.reduce((t,e)=>{t.set(e.key,e);return t},new Map)).then(e=>{for(const r of e.values()){const e=formatEntry(t,r);if(e){n.write(e)}}}).catch(t=>{if(t.code==="ENOENT"){return undefined}throw t})})))})))}))).then(()=>n.end(),t=>n.emit("error",t));return n}t.exports.ls=ls;function ls(t){return lsStream(t).collect().then(t=>t.reduce((t,e)=>{t[e.key]=e;return t},{}))}function bucketEntries(t,e){return d(t,"utf8").then(t=>_bucketEntries(t,e))}function bucketEntriesSync(t,e){const n=s.readFileSync(t,"utf8");return _bucketEntries(n,e)}function _bucketEntries(t,e){const n=[];t.split("\n").forEach(t=>{if(!t){return}const e=t.split("\t");if(!e[1]||hashEntry(e[1])!==e[0]){return}let r;try{r=JSON.parse(e[1])}catch(t){return}if(r){n.push(r)}});return n}t.exports.bucketDir=bucketDir;function bucketDir(t){return a.join(t,`index-v${h}`)}t.exports.bucketPath=bucketPath;function bucketPath(t,e){const n=hashKey(e);return a.join.apply(a,[bucketDir(t)].concat(f(n)))}t.exports.hashKey=hashKey;function hashKey(t){return hash(t,"sha256")}t.exports.hashEntry=hashEntry;function hashEntry(t){return hash(t,"sha1")}function hash(t,e){return i.createHash(e).update(t).digest("hex")}function formatEntry(t,e){if(!e.integrity){return null}return{key:e.key,integrity:e.integrity,path:u(t,e.integrity),size:e.size,time:e.time,metadata:e.metadata}}function readdirOrEmpty(t){return y(t).catch(t=>{if(t.code==="ENOENT"||t.code==="ENOTDIR"){return[]}throw t})}},413:function(t){t.exports=require("stream")},417:function(t){t.exports=require("crypto")},422:function(t,e,n){"use strict";t.exports=function(t,e,r,i,s){var o=n(325);var a=o.isArray;function toResolutionValue(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}function PromiseArray(n){var r=this._promise=new t(e);if(n instanceof t){r._propagateFrom(n,3);n.suppressUnhandledRejections()}r._setOnCancel(this);this._values=n;this._length=0;this._totalResolved=0;this._init(undefined,-2)}o.inherits(PromiseArray,s);PromiseArray.prototype.length=function(){return this._length};PromiseArray.prototype.promise=function(){return this._promise};PromiseArray.prototype._init=function init(e,n){var s=r(this._values,this._promise);if(s instanceof t){s=s._target();var a=s._bitField;this._values=s;if((a&50397184)===0){this._promise._setAsyncGuaranteed();return s._then(init,this._reject,undefined,this,n)}else if((a&33554432)!==0){s=s._value()}else if((a&16777216)!==0){return this._reject(s._reason())}else{return this._cancel()}}s=o.asArray(s);if(s===null){var c=i("expecting an array or an iterable object but got "+o.classString(s)).reason();this._promise._rejectCallback(c,false);return}if(s.length===0){if(n===-5){this._resolveEmptyArray()}else{this._resolve(toResolutionValue(n))}return}this._iterate(s)};PromiseArray.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n;this._values=this.shouldCopyValues()?new Array(n):this._values;var i=this._promise;var s=false;var o=null;for(var a=0;a=this._length){this._resolve(this._values);return true}return false};PromiseArray.prototype._promiseCancelled=function(){this._cancel();return true};PromiseArray.prototype._promiseRejected=function(t){this._totalResolved++;this._reject(t);return true};PromiseArray.prototype._resultCancelled=function(){if(this._isResolved())return;var e=this._values;this._cancel();if(e instanceof t){e.cancel()}else{for(var n=0;n{if(!l&&!t){throw new s.NotFoundError(e,n)}return a(e,t?n:l.integrity,{integrity:i,size:u}).then(e=>t?e:{data:e,metadata:l.metadata,size:l.size,integrity:l.integrity}).then(i=>{if(c&&t){o.put.byDigest(e,n,i,r)}else if(c){o.put(e,l,i.data,r)}return i})})}t.exports.sync=function get(t,e,n){return getDataSync(false,t,e,n)};t.exports.sync.byDigest=function getByDigest(t,e,n){return getDataSync(true,t,e,n)};function getDataSync(t,e,n,r={}){const{integrity:i,memoize:c,size:u}=r;const l=t?o.get.byDigest(e,n,r):o.get(e,n,r);if(l&&c!==false){return t?l:{metadata:l.entry.metadata,data:l.data,integrity:l.entry.integrity,size:l.entry.size}}const f=!t&&s.find.sync(e,n,r);if(!f&&!t){throw new s.NotFoundError(e,n)}const h=a.sync(e,t?n:f.integrity,{integrity:i,size:u});const p=t?h:{metadata:f.metadata,data:h,size:f.size,integrity:f.integrity};if(c&&t){o.put.byDigest(e,n,p,r)}else if(c){o.put(e,f,p.data,r)}return p}t.exports.stream=getStream;const h=t=>{const e=new c;e.on("newListener",function(e,n){e==="metadata"&&n(t.entry.metadata);e==="integrity"&&n(t.entry.integrity);e==="size"&&n(t.entry.size)});e.end(t.data);return e};function getStream(t,e,n={}){const{memoize:r,size:i}=n;const c=o.get(t,e,n);if(c&&r!==false){return h(c)}const f=new l;s.find(t,e).then(c=>{if(!c){throw new s.NotFoundError(t,e)}f.emit("metadata",c.metadata);f.emit("integrity",c.integrity);f.emit("size",c.size);f.on("newListener",function(t,e){t==="metadata"&&e(c.metadata);t==="integrity"&&e(c.integrity);t==="size"&&e(c.size)});const l=a.readStream(t,c.integrity,{...n,size:typeof i!=="number"?c.size:i});if(r){const e=new u.PassThrough;e.on("collect",e=>o.put(t,c,e,n));f.unshift(e)}f.unshift(l)}).catch(t=>f.emit("error",t));return f}t.exports.stream.byDigest=getStreamDigest;function getStreamDigest(t,e,n={}){const{memoize:r}=n;const i=o.get.byDigest(t,e,n);if(i&&r!==false){const t=new c;t.end(i);return t}else{const i=a.readStream(t,e,n);if(!r){return i}const s=new u.PassThrough;s.on("collect",r=>o.put.byDigest(t,e,r,n));return new l(i,s)}}t.exports.info=info;function info(t,e,n={}){const{memoize:r}=n;const i=o.get(t,e,n);if(i&&r!==false){return Promise.resolve(i.entry)}else{return s.find(t,e)}}t.exports.hasContent=a.hasContent;function cp(t,e,n,r){return copy(false,t,e,n,r)}t.exports.copy=cp;function cpDigest(t,e,n,r){return copy(true,t,e,n,r)}t.exports.copy.byDigest=cpDigest;function copy(t,e,n,r,i={}){if(a.copy){return(t?Promise.resolve(null):s.find(e,n,i)).then(o=>{if(!o&&!t){throw new s.NotFoundError(e,n)}return a.copy(e,t?n:o.integrity,r,i).then(()=>{return t?n:{metadata:o.metadata,size:o.size,integrity:o.integrity}})})}return getData(t,e,n,i).then(e=>{return f(r,t?e:e.data).then(()=>{return t?n:{metadata:e.metadata,size:e.size,integrity:e.integrity}})})}},435:function(t,e,n){t.exports=glob;var r=n(747);var i=n(582);var s=n(938);var o=s.Minimatch;var a=n(212);var c=n(614).EventEmitter;var u=n(622);var l=n(59);var f=n(635);var h=n(446);var p=n(334);var d=p.alphasort;var y=p.alphasorti;var m=p.setopts;var v=p.ownProp;var g=n(471);var _=n(669);var w=p.childrenIgnored;var b=p.isIgnored;var S=n(144);function glob(t,e,n){if(typeof e==="function")n=e,e={};if(!e)e={};if(e.sync){if(n)throw new TypeError("callback provided to sync glob");return h(t,e)}return new Glob(t,e,n)}glob.sync=h;var E=glob.GlobSync=h.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var n=Object.keys(e);var r=n.length;while(r--){t[n[r]]=e[n[r]]}return t}glob.hasMagic=function(t,e){var n=extend({},e);n.noprocess=true;var r=new Glob(t,n);var i=r.minimatch.set;if(!t)return false;if(i.length>1)return true;for(var s=0;sthis.maxLength)return e();if(!this.stat&&v(this.cache,n)){var s=this.cache[n];if(Array.isArray(s))s="DIR";if(!i||s==="DIR")return e(null,s);if(i&&s==="FILE")return e()}var o;var a=this.statCache[n];if(a!==undefined){if(a===false)return e(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return e();else return e(null,c,a)}}var u=this;var l=g("stat\0"+n,lstatcb_);if(l)r.lstat(n,l);function lstatcb_(i,s){if(s&&s.isSymbolicLink()){return r.stat(n,function(r,i){if(r)u._stat2(t,n,null,s,e);else u._stat2(t,n,r,i,e)})}else{u._stat2(t,n,i,s,e)}}};Glob.prototype._stat2=function(t,e,n,r,i){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR")){this.statCache[e]=false;return i()}var s=t.slice(-1)==="/";this.statCache[e]=r;if(e.slice(-1)==="/"&&r&&!r.isDirectory())return i(null,false,r);var o=true;if(r)o=r.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||o;if(s&&o==="FILE")return i();return i(null,o,r)}},446:function(t,e,n){t.exports=globSync;globSync.GlobSync=GlobSync;var r=n(747);var i=n(582);var s=n(938);var o=s.Minimatch;var a=n(435).Glob;var c=n(669);var u=n(622);var l=n(59);var f=n(635);var h=n(334);var p=h.alphasort;var d=h.alphasorti;var y=h.setopts;var m=h.ownProp;var v=h.childrenIgnored;var g=h.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);y(this,t,e);if(this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return false;if(!this.stat&&m(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return i;if(n&&i==="FILE")return false}var s;var o=this.statCache[e];if(!o){var a;try{a=r.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{o=r.statSync(e)}catch(t){o=a}}else{o=a}}this.statCache[e]=o;var i=true;if(o)i=o.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(n&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return h.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return h.makeAbs(this,t)}},452:function(t,e,n){"use strict";t.exports=function(t,e,r,i,s,o){var a=n(558);var c=a.TypeError;var u=n(325);var l=u.errorObj;var f=u.tryCatch;var h=[];function promiseFromYieldHandler(e,n,r){for(var s=0;s512){var i=Object.keys(n);for(var s=0;s<256;++s)delete n[i[s]];n[" size"]=i.length-256}}return r};a=function(t){return f(t,u,i)};c=function(t){return f(t,l,s)}}function ensureMethod(n,r){var i;if(n!=null)i=n[r];if(typeof i!=="function"){var s="Object "+e.classString(n)+" has no method '"+e.toString(r)+"'";throw new t.TypeError(s)}return i}function caller(t){var e=this.pop();var n=ensureMethod(t,e);return n.apply(t,this)}t.prototype.call=function(t){var e=arguments.length;var n=new Array(Math.max(e-1,0));for(var i=1;i10||+s[0]===10&&+s[1]>=12;const a=!o?()=>false:t=>t.mkdir===r.mkdir;const c=!o?()=>false:t=>t.mkdirSync===r.mkdirSync;t.exports={useNative:a,useNativeSync:c}},468:function(t,e,n){"use strict";t.exports=function(t,e,r,i){var s=n(325);var o=s.isObject;var a=n(164);var c;if(typeof Map==="function")c=Map;var u=function(){var t=0;var e=0;function extractEntry(n,r){this[t]=n;this[t+e]=r;t++}return function mapToEntries(n){e=n.size;t=0;var r=new Array(n.size*2);n.forEach(extractEntry,r);return r}}();var l=function(t){var e=new c;var n=t.length/2|0;for(var r=0;r=this._length){var r;if(this._isMap){r=l(this._values)}else{r={};var i=this.length();for(var s=0,o=this.length();s>1};function props(e){var n;var s=r(e);if(!o(s)){return i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}else if(s instanceof t){n=s._then(t.props,undefined,undefined,undefined,undefined)}else{n=new PropertiesPromiseArray(s).promise()}if(s instanceof t){n._propagateFrom(s,2)}return n}t.prototype.props=function(){return props(this)};t.props=function(t){return props(t)}}},471:function(t,e,n){var r=n(961);var i=Object.create(null);var s=n(144);t.exports=r(inflight);function inflight(t,e){if(i[t]){i[t].push(e);return null}else{i[t]=[e];return makeres(t)}}function makeres(t){return s(function RES(){var e=i[t];var n=e.length;var r=slice(arguments);try{for(var s=0;sn){e.splice(0,n);process.nextTick(function(){RES.apply(null,r)})}else{delete i[t]}}})}function slice(t){var e=t.length;var n=[];for(var r=0;r{e.recursive=true;const n=r(t);if(n===t)return e.mkdirAsync(t,e);return i(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(n=>{if(n.code==="ENOENT")return o(t,e);else throw n}))};const u=(t,e)=>{e.recursive=true;const n=r(t);if(n===t)return e.mkdirSync(t,e);const i=s(e,t);try{e.mkdirSync(t,e);return i}catch(n){if(n.code==="ENOENT")return a(t,e);else throw n}};t.exports={mkdirpNative:c,mkdirpNativeSync:u}},499:function(t,e,n){"use strict";const r=n(87);const i=/\s+at.*(?:\(|\s)(.*)\)?/;const s=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;const o=typeof r.homedir==="undefined"?"":r.homedir();t.exports=((t,e)=>{e=Object.assign({pretty:false},e);return t.replace(/\\/g,"/").split("\n").filter(t=>{const e=t.match(i);if(e===null||!e[1]){return true}const n=e[1];if(n.includes(".app/Contents/Resources/electron.asar")||n.includes(".app/Contents/Resources/default_app.asar")){return false}return!s.test(n)}).filter(t=>t.trim()!=="").map(t=>{if(e.pretty){return t.replace(i,(t,e)=>t.replace(e,e.replace(o,"~")))}return t}).join("\n")})},506:function(t,e,n){const{promisify:r}=n(669);const i=n(747);const s=t=>{if(!t)t={mode:511,fs:i};else if(typeof t==="object")t={mode:511,fs:i,...t};else if(typeof t==="number")t={mode:t,fs:i};else if(typeof t==="string")t={mode:parseInt(t,8),fs:i};else throw new TypeError("invalid options argument");t.mkdir=t.mkdir||t.fs.mkdir||i.mkdir;t.mkdirAsync=r(t.mkdir);t.stat=t.stat||t.fs.stat||i.stat;t.statAsync=r(t.stat);t.statSync=t.statSync||t.fs.statSync||i.statSync;t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||i.mkdirSync;return t};t.exports=s},521:function(t,e,n){"use strict";const r=n(336);t.exports=(async(t,e,{concurrency:n=Infinity,stopOnError:i=true}={})=>{return new Promise((s,o)=>{if(typeof e!=="function"){throw new TypeError("Mapper function is required")}if(!((Number.isSafeInteger(n)||n===Infinity)&&n>=1)){throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${n}\` (${typeof n})`)}const a=[];const c=[];const u=t[Symbol.iterator]();let l=false;let f=false;let h=0;let p=0;const d=()=>{if(l){return}const t=u.next();const n=p;p++;if(t.done){f=true;if(h===0){if(!i&&c.length!==0){o(new r(c))}else{s(a)}}return}h++;(async()=>{try{const r=await t.value;a[n]=await e(r,n);h--;d()}catch(t){if(i){l=true;o(t)}else{c.push(t);h--;d()}}})()};for(let t=0;t= 10"}}},530:function(t,e,n){"use strict";const r=n(316);const i=n(614).EventEmitter;const s=n(747);let o=s.writev;if(!o){const t=process.binding("fs");const e=t.FSReqWrap||t.FSReqCallback;o=((n,r,i,s)=>{const o=(t,e)=>s(t,e,r);const a=new e;a.oncomplete=o;t.writeBuffers(n,r,i,a)})}const a=Symbol("_autoClose");const c=Symbol("_close");const u=Symbol("_ended");const l=Symbol("_fd");const f=Symbol("_finished");const h=Symbol("_flags");const p=Symbol("_flush");const d=Symbol("_handleChunk");const y=Symbol("_makeBuf");const m=Symbol("_mode");const v=Symbol("_needDrain");const g=Symbol("_onerror");const _=Symbol("_onopen");const w=Symbol("_onread");const b=Symbol("_onwrite");const S=Symbol("_open");const E=Symbol("_path");const k=Symbol("_pos");const x=Symbol("_queue");const C=Symbol("_read");const A=Symbol("_readSize");const T=Symbol("_reading");const P=Symbol("_remain");const j=Symbol("_size");const O=Symbol("_write");const F=Symbol("_writing");const R=Symbol("_defaultFlag");const N=Symbol("_errored");class ReadStream extends r{constructor(t,e){e=e||{};super(e);this.readable=true;this.writable=false;if(typeof t!=="string")throw new TypeError("path must be a string");this[N]=false;this[l]=typeof e.fd==="number"?e.fd:null;this[E]=t;this[A]=e.readSize||16*1024*1024;this[T]=false;this[j]=typeof e.size==="number"?e.size:Infinity;this[P]=this[j];this[a]=typeof e.autoClose==="boolean"?e.autoClose:true;if(typeof this[l]==="number")this[C]();else this[S]()}get fd(){return this[l]}get path(){return this[E]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[S](){s.open(this[E],"r",(t,e)=>this[_](t,e))}[_](t,e){if(t)this[g](t);else{this[l]=e;this.emit("open",e);this[C]()}}[y](){return Buffer.allocUnsafe(Math.min(this[A],this[P]))}[C](){if(!this[T]){this[T]=true;const t=this[y]();if(t.length===0)return process.nextTick(()=>this[w](null,0,t));s.read(this[l],t,0,t.length,null,(t,e,n)=>this[w](t,e,n))}}[w](t,e,n){this[T]=false;if(t)this[g](t);else if(this[d](e,n))this[C]()}[c](){if(this[a]&&typeof this[l]==="number"){const t=this[l];this[l]=null;s.close(t,t=>t?this.emit("error",t):this.emit("close"))}}[g](t){this[T]=true;this[c]();this.emit("error",t)}[d](t,e){let n=false;this[P]-=t;if(t>0)n=super.write(tthis[_](t,e))}[_](t,e){if(this[R]&&this[h]==="r+"&&t&&t.code==="ENOENT"){this[h]="w";this[S]()}else if(t)this[g](t);else{this[l]=e;this.emit("open",e);this[p]()}}end(t,e){if(t)this.write(t,e);this[u]=true;if(!this[F]&&!this[x].length&&typeof this[l]==="number")this[b](null,0);return this}write(t,e){if(typeof t==="string")t=Buffer.from(t,e);if(this[u]){this.emit("error",new Error("write() after end()"));return false}if(this[l]===null||this[F]||this[x].length){this[x].push(t);this[v]=true;return false}this[F]=true;this[O](t);return true}[O](t){s.write(this[l],t,0,t.length,this[k],(t,e)=>this[b](t,e))}[b](t,e){if(t)this[g](t);else{if(this[k]!==null)this[k]+=e;if(this[x].length)this[p]();else{this[F]=false;if(this[u]&&!this[f]){this[f]=true;this[c]();this.emit("finish")}else if(this[v]){this[v]=false;this.emit("drain")}}}}[p](){if(this[x].length===0){if(this[u])this[b](null,0)}else if(this[x].length===1)this[O](this[x].pop());else{const t=this[x];this[x]=[];o(this[l],t,this[k],(t,e)=>this[b](t,e))}}[c](){if(this[a]&&typeof this[l]==="number"){const t=this[l];this[l]=null;s.close(t,t=>t?this.emit("error",t):this.emit("close"))}}}class WriteStreamSync extends WriteStream{[S](){let t;if(this[R]&&this[h]==="r+"){try{t=s.openSync(this[E],this[h],this[m])}catch(t){if(t.code==="ENOENT"){this[h]="w";return this[S]()}else throw t}}else t=s.openSync(this[E],this[h],this[m]);this[_](null,t)}[c](){if(this[a]&&typeof this[l]==="number"){const t=this[l];this[l]=null;s.closeSync(t);this.emit("close")}}[O](t){let e=true;try{this[b](null,s.writeSync(this[l],t,0,t.length,this[k]));e=false}finally{if(e)try{this[c]()}catch(t){}}}}e.ReadStream=ReadStream;e.ReadStreamSync=ReadStreamSync;e.WriteStream=WriteStream;e.WriteStreamSync=WriteStreamSync},536:function(t,e,n){"use strict";t.exports=function(t,e,r){var i=n(325);var s=t.TimeoutError;function HandleWrapper(t){this.handle=t}HandleWrapper.prototype._resultCancelled=function(){clearTimeout(this.handle)};var o=function(t){return a(+this).thenReturn(t)};var a=t.delay=function(n,i){var s;var a;if(i!==undefined){s=t.resolve(i)._then(o,null,null,n,undefined);if(r.cancellation()&&i instanceof t){s._setOnCancel(i)}}else{s=new t(e);a=setTimeout(function(){s._fulfill()},+n);if(r.cancellation()){s._setOnCancel(new HandleWrapper(a))}s._captureStackTrace()}s._setAsyncGuaranteed();return s};t.prototype.delay=function(t){return a(t,this)};var c=function(t,e,n){var r;if(typeof e!=="string"){if(e instanceof Error){r=e}else{r=new s("operation timed out")}}else{r=new s(e)}i.markAsOriginatingFromRejection(r);t._attachExtraTrace(r);t._reject(r);if(n!=null){n.cancel()}};function successClear(t){clearTimeout(this.handle);return t}function failureClear(t){clearTimeout(this.handle);throw t}t.prototype.timeout=function(t,e){t=+t;var n,i;var s=new HandleWrapper(setTimeout(function timeoutTimeout(){if(n.isPending()){c(n,e,i)}},t));if(r.cancellation()){i=this.then();n=i._then(successClear,failureClear,undefined,s,undefined);n._setOnCancel(s)}else{n=this._then(successClear,failureClear,undefined,s,undefined)}return n}}},544:function(t,e,n){"use strict";const r=n(669);const i=n(969);const s=n(133);const o=n(747);const a=n(762);const c=n(316);const u=n(398);const l=n(274);const f=n(622);const h=r.promisify(n(569));const p=n(951);const d=n(243);const{disposer:y}=n(161);const m=n(530);const v=r.promisify(o.writeFile);t.exports=write;function write(t,e,n={}){const{algorithms:r,size:i,integrity:s}=n;if(r&&r.length>1){throw new Error("opts.algorithms only supports a single algorithm for now")}if(typeof i==="number"&&e.length!==i){return Promise.reject(sizeError(i,e.length))}const o=p.fromData(e,r?{algorithms:r}:{});if(s&&!p.checkData(e,s,n)){return Promise.reject(checksumError(s,o))}return y(makeTmp(t,n),makeTmpDisposer,r=>{return v(r.target,e,{flag:"wx"}).then(()=>moveToDestination(r,t,o,n))}).then(()=>({integrity:o,size:e.length}))}t.exports.stream=writeStream;class CacacheWriteStream extends l{constructor(t,e){super();this.opts=e;this.cache=t;this.inputStream=new c;this.inputStream.on("error",t=>this.emit("error",t));this.inputStream.on("drain",()=>this.emit("drain"));this.handleContentP=null}write(t,e,n){if(!this.handleContentP){this.handleContentP=handleContent(this.inputStream,this.cache,this.opts)}return this.inputStream.write(t,e,n)}flush(t){this.inputStream.end(()=>{if(!this.handleContentP){const e=new Error("Cache input stream was empty");e.code="ENODATA";return Promise.reject(e).catch(t)}this.handleContentP.then(e=>{e.integrity&&this.emit("integrity",e.integrity);e.size!==null&&this.emit("size",e.size);t()},e=>t(e))})}}function writeStream(t,e={}){return new CacacheWriteStream(t,e)}function handleContent(t,e,n){return y(makeTmp(e,n),makeTmpDisposer,r=>{return pipeToTmp(t,e,r.target,n).then(t=>{return moveToDestination(r,e,t.integrity,n).then(()=>t)})})}function pipeToTmp(t,e,n,r){let i;let s;const o=p.integrityStream({integrity:r.integrity,algorithms:r.algorithms,size:r.size});o.on("integrity",t=>{i=t});o.on("size",t=>{s=t});const a=new m.WriteStream(n,{flags:"wx"});const c=new u(t,o,a);return c.promise().then(()=>({integrity:i,size:s})).catch(t=>h(n).then(()=>{throw t}))}function makeTmp(t,e){const n=d(f.join(t,"tmp"),e.tmpPrefix);return s.mkdirfix(t,f.dirname(n)).then(()=>({target:n,moved:false}))}function makeTmpDisposer(t){if(t.moved){return Promise.resolve()}return h(t.target)}function moveToDestination(t,e,n,r){const o=i(e,n);const c=f.dirname(o);return s.mkdirfix(e,c).then(()=>{return a(t.target,o)}).then(()=>{t.moved=true;return s.chownr(e,o)})}function sizeError(t,e){const n=new Error(`Bad data size: expected inserted data to be ${t} bytes, but got ${e} instead`);n.expected=t;n.found=e;n.code="EBADSIZE";return n}function checksumError(t,e){const n=new Error(`Integrity check failed:\n Wanted: ${t}\n Found: ${e}`);n.code="EINTEGRITY";n.expected=t;n.found=e;return n}},558:function(t,e,n){"use strict";var r=n(164);var i=r.freeze;var s=n(325);var o=s.inherits;var a=s.notEnumerableProp;function subError(t,e){function SubError(n){if(!(this instanceof SubError))return new SubError(n);a(this,"message",typeof n==="string"?n:e);a(this,"name",t);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{Error.call(this)}}o(SubError,Error);return SubError}var c,u;var l=subError("Warning","warning");var f=subError("CancellationError","cancellation error");var h=subError("TimeoutError","timeout error");var p=subError("AggregateError","aggregate error");try{c=TypeError;u=RangeError}catch(t){c=subError("TypeError","type error");u=subError("RangeError","range error")}var d=("join pop push shift unshift slice filter forEach some "+"every map indexOf lastIndexOf reduce reduceRight sort reverse").split(" ");for(var y=0;y{const e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(e=>{t[e]=t[e]||s[e];e=e+"Sync";t[e]=t[e]||s[e]});t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||a};const f=(t,e,n)=>{if(typeof e==="function"){n=e;e={}}r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r.equal(typeof n,"function","rimraf: callback function required");r(e,"rimraf: invalid options argument provided");r.equal(typeof e,"object","rimraf: options should be object");l(e);let i=0;let s=null;let a=0;const u=t=>{s=s||t;if(--a===0)n(s)};const f=(t,r)=>{if(t)return n(t);a=r.length;if(a===0)return n();r.forEach(t=>{const n=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&ih(t,e,n),i*100)}if(r.code==="EMFILE"&&ch(t,e,n),c++)}if(r.code==="ENOENT")r=null}c=0;u(r)};h(t,e,n)})};if(e.disableGlob||!o.hasMagic(t))return f(null,[t]);e.lstat(t,(n,r)=>{if(!n)return f(null,[t]);o(t,e.glob,f)})};const h=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.lstat(t,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&u)p(t,e,r,n);if(i&&i.isDirectory())return y(t,e,r,n);e.unlink(t,r=>{if(r){if(r.code==="ENOENT")return n(null);if(r.code==="EPERM")return u?p(t,e,r,n):y(t,e,r,n);if(r.code==="EISDIR")return y(t,e,r,n)}return n(r)})})};const p=(t,e,n,i)=>{r(t);r(e);r(typeof i==="function");e.chmod(t,438,r=>{if(r)i(r.code==="ENOENT"?null:n);else e.stat(t,(r,s)=>{if(r)i(r.code==="ENOENT"?null:n);else if(s.isDirectory())y(t,e,n,i);else e.unlink(t,i)})})};const d=(t,e,n)=>{r(t);r(e);try{e.chmodSync(t,438)}catch(t){if(t.code==="ENOENT")return;else throw n}let i;try{i=e.statSync(t)}catch(t){if(t.code==="ENOENT")return;else throw n}if(i.isDirectory())g(t,e,n);else e.unlinkSync(t)};const y=(t,e,n,i)=>{r(t);r(e);r(typeof i==="function");e.rmdir(t,r=>{if(r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM"))m(t,e,i);else if(r&&r.code==="ENOTDIR")i(n);else i(r)})};const m=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.readdir(t,(r,s)=>{if(r)return n(r);let o=s.length;if(o===0)return e.rmdir(t,n);let a;s.forEach(r=>{f(i.join(t,r),e,r=>{if(a)return;if(r)return n(a=r);if(--o===0)e.rmdir(t,n)})})})};const v=(t,e)=>{e=e||{};l(e);r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r(e,"rimraf: missing options");r.equal(typeof e,"object","rimraf: options should be object");let n;if(e.disableGlob||!o.hasMagic(t)){n=[t]}else{try{e.lstatSync(t);n=[t]}catch(r){n=o.sync(t,e.glob)}}if(!n.length)return;for(let t=0;t{r(t);r(e);try{e.rmdirSync(t)}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")_(t,e)}};const _=(t,e)=>{r(t);r(e);e.readdirSync(t).forEach(n=>v(i.join(t,n),e));const n=u?100:1;let s=0;do{let r=true;try{const i=e.rmdirSync(t,e);r=false;return i}finally{if(++s{e.recursive=true;const n=r(t);if(n===t)return e.mkdirAsync(t,e);return i(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(n=>{if(n.code==="ENOENT")return o(t,e);else throw n}))};const u=(t,e)=>{e.recursive=true;const n=r(t);if(n===t)return e.mkdirSync(t,e);const i=s(e,t);try{e.mkdirSync(t,e);return i}catch(n){if(n.code==="ENOENT")return a(t,e);else throw n}};t.exports={mkdirpNative:c,mkdirpNativeSync:u}},599:function(t,e,n){"use strict";const r=n(669);const i=n(969);const{hasContent:s}=n(185);const o=r.promisify(n(569));t.exports=rm;function rm(t,e){return s(t,e).then(e=>{if(e&&e.sri){return o(i(t,e.sri)).then(()=>true)}else{return false}})}},600:function(t,e,n){"use strict";t.exports=function(t,e){var r=n(325);var i=r.errorObj;var s=r.isObject;function tryConvertToPromise(n,r){if(s(n)){if(n instanceof t)return n;var o=getThen(n);if(o===i){if(r)r._pushContext();var a=t.reject(o.e);if(r)r._popContext();return a}else if(typeof o==="function"){if(isAnyBluebirdPromise(n)){var a=new t(e);n._then(a._fulfill,a._reject,undefined,a,null);return a}return doThenable(n,o,r)}}return n}function doGetThen(t){return t.then}function getThen(t){try{return doGetThen(t)}catch(t){i.e=t;return i}}var o={}.hasOwnProperty;function isAnyBluebirdPromise(t){try{return o.call(t,"_promise0")}catch(t){return false}}function doThenable(n,s,o){var a=new t(e);var c=a;if(o)o._pushContext();a._captureStackTrace();if(o)o._popContext();var u=true;var l=r.tryCatch(s).call(n,resolve,reject);u=false;if(a&&l===i){a._rejectCallback(l.e,true,true);a=null}function resolve(t){if(!a)return;a._resolveCallback(t);a=null}function reject(t){if(!a)return;a._rejectCallback(t,u,true);a=null}return c}return tryConvertToPromise}},605:function(t,e,n){"use strict";t.exports=function(t,e,r){var i=n(325);var s=n(558).RangeError;var o=n(558).AggregateError;var a=i.isArray;var c={};function SomePromiseArray(t){this.constructor$(t);this._howMany=0;this._unwrap=false;this._initialized=false}i.inherits(SomePromiseArray,e);SomePromiseArray.prototype._init=function(){if(!this._initialized){return}if(this._howMany===0){this._resolve([]);return}this._init$(undefined,-5);var t=a(this._values);if(!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()){this._reject(this._getRangeError(this.length()))}};SomePromiseArray.prototype.init=function(){this._initialized=true;this._init()};SomePromiseArray.prototype.setUnwrap=function(){this._unwrap=true};SomePromiseArray.prototype.howMany=function(){return this._howMany};SomePromiseArray.prototype.setHowMany=function(t){this._howMany=t};SomePromiseArray.prototype._promiseFulfilled=function(t){this._addFulfilled(t);if(this._fulfilled()===this.howMany()){this._values.length=this.howMany();if(this.howMany()===1&&this._unwrap){this._resolve(this._values[0])}else{this._resolve(this._values)}return true}return false};SomePromiseArray.prototype._promiseRejected=function(t){this._addRejected(t);return this._checkOutcome()};SomePromiseArray.prototype._promiseCancelled=function(){if(this._values instanceof t||this._values==null){return this._cancel()}this._addRejected(c);return this._checkOutcome()};SomePromiseArray.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var t=new o;for(var e=this.length();e0){this._reject(t)}else{this._cancel()}return true}return false};SomePromiseArray.prototype._fulfilled=function(){return this._totalResolved};SomePromiseArray.prototype._rejected=function(){return this._values.length-this.length()};SomePromiseArray.prototype._addRejected=function(t){this._values.push(t)};SomePromiseArray.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t};SomePromiseArray.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()};SomePromiseArray.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new s(e)};SomePromiseArray.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function some(t,e){if((e|0)!==e||e<0){return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n")}var n=new SomePromiseArray(t);var i=n.promise();n.setHowMany(e);n.init();return i}t.some=function(t,e){return some(t,e)};t.prototype.some=function(t){return some(this,t)};t._SomePromiseArray=SomePromiseArray}},607:function(t,e,n){const r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:i,parse:s}=n(622);const o=t=>{if(/\0/.test(t)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"})}t=i(t);if(r==="win32"){const e=/[*|"<>?:]/;const{root:n}=s(t);if(e.test(t.substr(n.length))){throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}}return t};t.exports=o},612:function(t,e,n){"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var e=this;if(!(e instanceof Yallist)){e=new Yallist}e.tail=null;e.head=null;e.length=0;if(t&&typeof t.forEach==="function"){t.forEach(function(t){e.push(t)})}else if(arguments.length>0){for(var n=0,r=arguments.length;n1){n=e}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;r!==null;i++){n=t(n,r.value,i);r=r.next}return n};Yallist.prototype.reduceReverse=function(t,e){var n;var r=this.tail;if(arguments.length>1){n=e}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;r!==null;i--){n=t(n,r.value,i);r=r.prev}return n};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var e=0,n=this.head;n!==null;e++){t[e]=n.value;n=n.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var e=0,n=this.tail;n!==null;e++){t[e]=n.value;n=n.prev}return t};Yallist.prototype.slice=function(t,e){e=e||this.length;if(e<0){e+=this.length}t=t||0;if(t<0){t+=this.length}var n=new Yallist;if(ethis.length){e=this.length}for(var r=0,i=this.head;i!==null&&rthis.length){e=this.length}for(var r=this.length,i=this.tail;i!==null&&r>e;r--){i=i.prev}for(;i!==null&&r>t;r--,i=i.prev){n.push(i.value)}return n};Yallist.prototype.splice=function(t,e,...n){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var r=0,i=this.head;i!==null&&r{try{await p(t);return true}catch(t){return t.code!=="ENOENT"}};const _=t=>{try{o(t);return true}catch(t){return t.code!=="ENOENT"}};t.exports=(async(t,e,n={})=>{if(!t||!e){throw new TypeError("`source` and `destination` file required")}n={overwrite:true,...n};if(!n.overwrite&&await g(e)){throw new Error(`The destination file exists: ${e}`)}await v(r(e));try{await m(t,e)}catch(n){if(n.code==="EXDEV"){await d(t,e);await y(t)}else{throw n}}});t.exports.sync=((t,e,n={})=>{if(!t||!e){throw new TypeError("`source` and `destination` file required")}n={overwrite:true,...n};if(!n.overwrite&&_(e)){throw new Error(`The destination file exists: ${e}`)}v.sync(r(e));try{h(t,e)}catch(n){if(n.code==="EXDEV"){c(t,e);l(t)}else{throw n}}})},632:function(t,e,n){"use strict";var r;if(typeof Promise!=="undefined")r=Promise;function noConflict(){try{if(Promise===i)Promise=r}catch(t){}return i}var i=n(665)();i.noConflict=noConflict;t.exports=i},635:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var n=e.exec(t);var r=n[1]||"";var i=Boolean(r&&r.charAt(1)!==":");return Boolean(n[2]||i)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},657:function(t,e,n){const r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:i,parse:s}=n(622);const o=t=>{if(/\0/.test(t)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"})}t=i(t);if(r==="win32"){const e=/[*|"<>?:]/;const{root:n}=s(t);if(e.test(t.substr(n.length))){throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}}return t};t.exports=o},663:function(t,e,n){const{dirname:r}=n(622);const i=(t,e,n)=>{e.recursive=false;const s=r(t);if(s===t){return e.mkdirAsync(t,e).catch(t=>{if(t.code!=="EISDIR")throw t})}return e.mkdirAsync(t,e).then(()=>n||t,r=>{if(r.code==="ENOENT")return i(s,e).then(n=>i(t,e,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return e.statAsync(t).then(t=>{if(t.isDirectory())return n;else throw r},()=>{throw r})})};const s=(t,e,n)=>{const i=r(t);e.recursive=false;if(i===t){try{return e.mkdirSync(t,e)}catch(t){if(t.code!=="EISDIR")throw t;else return}}try{e.mkdirSync(t,e);return n||t}catch(r){if(r.code==="ENOENT")return s(t,e,s(i,e,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!e.statSync(t).isDirectory())throw r}catch(t){throw r}}};t.exports={mkdirpManual:i,mkdirpManualSync:s}},665:function(t,e,n){"use strict";t.exports=function(){var e=function(){return new _("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")};var r=function(){return new Promise.PromiseInspection(this._target())};var i=function(t){return Promise.reject(new _(t))};function Proxyable(){}var s={};var o=n(325);o.setReflectHandler(r);var a=function(){var t=process.domain;if(t===undefined){return null}return t};var c=function(){return null};var u=function(){return{domain:a(),async:null}};var l=o.isNode&&o.nodeSupportsAsyncResource?n(303).AsyncResource:null;var f=function(){return{domain:a(),async:new l("Bluebird::Promise")}};var h=o.isNode?u:c;o.notEnumerableProp(Promise,"_getContext",h);var p=function(){h=f;o.notEnumerableProp(Promise,"_getContext",f)};var d=function(){h=u;o.notEnumerableProp(Promise,"_getContext",u)};var y=n(164);var m=n(1);var v=new m;y.defineProperty(Promise,"_async",{value:v});var g=n(558);var _=Promise.TypeError=g.TypeError;Promise.RangeError=g.RangeError;var w=Promise.CancellationError=g.CancellationError;Promise.TimeoutError=g.TimeoutError;Promise.OperationalError=g.OperationalError;Promise.RejectionError=g.OperationalError;Promise.AggregateError=g.AggregateError;var b=function(){};var S={};var E={};var k=n(600)(Promise,b);var x=n(422)(Promise,b,k,i,Proxyable);var C=n(401)(Promise);var A=C.create;var T=n(155)(Promise,C,p,d);var P=T.CapturedTrace;var j=n(865)(Promise,k,E);var O=n(995)(E);var F=n(913);var R=o.errorObj;var N=o.tryCatch;function check(t,e){if(t==null||t.constructor!==Promise){throw new _("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}if(typeof e!=="function"){throw new _("expecting a function but got "+o.classString(e))}}function Promise(t){if(t!==b){check(this,t)}this._bitField=0;this._fulfillmentHandler0=undefined;this._rejectionHandler0=undefined;this._promise0=undefined;this._receiver0=undefined;this._resolveFromExecutor(t);this._promiseCreated();this._fireEvent("promiseCreated",this)}Promise.prototype.toString=function(){return"[object Promise]"};Promise.prototype.caught=Promise.prototype["catch"]=function(t){var e=arguments.length;if(e>1){var n=new Array(e-1),r=0,s;for(s=0;s0&&typeof t!=="function"&&typeof e!=="function"){var n=".then() only accepts functions but was passed: "+o.classString(t);if(arguments.length>1){n+=", "+o.classString(e)}this._warn(n)}return this._then(t,e,undefined,undefined,undefined)};Promise.prototype.done=function(t,e){var n=this._then(t,e,undefined,undefined,undefined);n._setIsFinal()};Promise.prototype.spread=function(t){if(typeof t!=="function"){return i("expecting a function but got "+o.classString(t))}return this.all()._then(t,undefined,undefined,S,undefined)};Promise.prototype.toJSON=function(){var t={isFulfilled:false,isRejected:false,fulfillmentValue:undefined,rejectionReason:undefined};if(this.isFulfilled()){t.fulfillmentValue=this.value();t.isFulfilled=true}else if(this.isRejected()){t.rejectionReason=this.reason();t.isRejected=true}return t};Promise.prototype.all=function(){if(arguments.length>0){this._warn(".all() was passed arguments but it does not take any")}return new x(this).promise()};Promise.prototype.error=function(t){return this.caught(o.originatesFromRejection,t)};Promise.getNewLibraryCopy=t.exports;Promise.is=function(t){return t instanceof Promise};Promise.fromNode=Promise.fromCallback=function(t){var e=new Promise(b);e._captureStackTrace();var n=arguments.length>1?!!Object(arguments[1]).multiArgs:false;var r=N(t)(F(e,n));if(r===R){e._rejectCallback(r.e,true)}if(!e._isFateSealed())e._setAsyncGuaranteed();return e};Promise.all=function(t){return new x(t).promise()};Promise.cast=function(t){var e=k(t);if(!(e instanceof Promise)){e=new Promise(b);e._captureStackTrace();e._setFulfilled();e._rejectionHandler0=t}return e};Promise.resolve=Promise.fulfilled=Promise.cast;Promise.reject=Promise.rejected=function(t){var e=new Promise(b);e._captureStackTrace();e._rejectCallback(t,true);return e};Promise.setScheduler=function(t){if(typeof t!=="function"){throw new _("expecting a function but got "+o.classString(t))}return v.setScheduler(t)};Promise.prototype._then=function(t,e,n,r,i){var s=i!==undefined;var a=s?i:new Promise(b);var c=this._target();var u=c._bitField;if(!s){a._propagateFrom(this,3);a._captureStackTrace();if(r===undefined&&(this._bitField&2097152)!==0){if(!((u&50397184)===0)){r=this._boundValue()}else{r=c===this?undefined:this._boundTo}}this._fireEvent("promiseChained",this,a)}var l=h();if(!((u&50397184)===0)){var f,p,d=c._settlePromiseCtx;if((u&33554432)!==0){p=c._rejectionHandler0;f=t}else if((u&16777216)!==0){p=c._fulfillmentHandler0;f=e;c._unsetRejectionIsUnhandled()}else{d=c._settlePromiseLateCancellationObserver;p=new w("late cancellation observer");c._attachExtraTrace(p);f=e}v.invoke(d,c,{handler:o.contextBind(l,f),promise:a,receiver:r,value:p})}else{c._addCallbacks(t,e,a,r,l)}return a};Promise.prototype._length=function(){return this._bitField&65535};Promise.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0};Promise.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864};Promise.prototype._setLength=function(t){this._bitField=this._bitField&-65536|t&65535};Promise.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432;this._fireEvent("promiseFulfilled",this)};Promise.prototype._setRejected=function(){this._bitField=this._bitField|16777216;this._fireEvent("promiseRejected",this)};Promise.prototype._setFollowing=function(){this._bitField=this._bitField|67108864;this._fireEvent("promiseResolved",this)};Promise.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304};Promise.prototype._isFinal=function(){return(this._bitField&4194304)>0};Promise.prototype._unsetCancelled=function(){this._bitField=this._bitField&~65536};Promise.prototype._setCancelled=function(){this._bitField=this._bitField|65536;this._fireEvent("promiseCancelled",this)};Promise.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608};Promise.prototype._setAsyncGuaranteed=function(){if(v.hasCustomScheduler())return;var t=this._bitField;this._bitField=t|(t&536870912)>>2^134217728};Promise.prototype._setNoAsyncGuarantee=function(){this._bitField=(this._bitField|536870912)&~134217728};Promise.prototype._receiverAt=function(t){var e=t===0?this._receiver0:this[t*4-4+3];if(e===s){return undefined}else if(e===undefined&&this._isBound()){return this._boundValue()}return e};Promise.prototype._promiseAt=function(t){return this[t*4-4+2]};Promise.prototype._fulfillmentHandlerAt=function(t){return this[t*4-4+0]};Promise.prototype._rejectionHandlerAt=function(t){return this[t*4-4+1]};Promise.prototype._boundValue=function(){};Promise.prototype._migrateCallback0=function(t){var e=t._bitField;var n=t._fulfillmentHandler0;var r=t._rejectionHandler0;var i=t._promise0;var o=t._receiverAt(0);if(o===undefined)o=s;this._addCallbacks(n,r,i,o,null)};Promise.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e);var r=t._rejectionHandlerAt(e);var i=t._promiseAt(e);var o=t._receiverAt(e);if(o===undefined)o=s;this._addCallbacks(n,r,i,o,null)};Promise.prototype._addCallbacks=function(t,e,n,r,i){var s=this._length();if(s>=65535-4){s=0;this._setLength(0)}if(s===0){this._promise0=n;this._receiver0=r;if(typeof t==="function"){this._fulfillmentHandler0=o.contextBind(i,t)}if(typeof e==="function"){this._rejectionHandler0=o.contextBind(i,e)}}else{var a=s*4-4;this[a+2]=n;this[a+3]=r;if(typeof t==="function"){this[a+0]=o.contextBind(i,t)}if(typeof e==="function"){this[a+1]=o.contextBind(i,e)}}this._setLength(s+1);return s};Promise.prototype._proxy=function(t,e){this._addCallbacks(undefined,undefined,e,t,null)};Promise.prototype._resolveCallback=function(t,n){if((this._bitField&117506048)!==0)return;if(t===this)return this._rejectCallback(e(),false);var r=k(t,this);if(!(r instanceof Promise))return this._fulfill(t);if(n)this._propagateFrom(r,2);var i=r._target();if(i===this){this._reject(e());return}var s=i._bitField;if((s&50397184)===0){var o=this._length();if(o>0)i._migrateCallback0(this);for(var a=1;a>>16)return;if(t===this){var r=e();this._attachExtraTrace(r);return this._reject(r)}this._setFulfilled();this._rejectionHandler0=t;if((n&65535)>0){if((n&134217728)!==0){this._settlePromises()}else{v.settlePromises(this)}this._dereferenceTrace()}};Promise.prototype._reject=function(t){var e=this._bitField;if((e&117506048)>>>16)return;this._setRejected();this._fulfillmentHandler0=t;if(this._isFinal()){return v.fatalError(t,o.isNode)}if((e&65535)>0){v.settlePromises(this)}else{this._ensurePossibleRejectionHandled()}};Promise.prototype._fulfillPromises=function(t,e){for(var n=1;n0){if((t&16842752)!==0){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t);this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t);this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()};Promise.prototype._settledValue=function(){var t=this._bitField;if((t&33554432)!==0){return this._rejectionHandler0}else if((t&16777216)!==0){return this._fulfillmentHandler0}};if(typeof Symbol!=="undefined"&&Symbol.toStringTag){y.defineProperty(Promise.prototype,Symbol.toStringTag,{get:function(){return"Object"}})}function deferResolve(t){this.promise._resolveCallback(t)}function deferReject(t){this.promise._rejectCallback(t,false)}Promise.defer=Promise.pending=function(){T.deprecated("Promise.defer","new Promise");var t=new Promise(b);return{promise:t,resolve:deferResolve,reject:deferReject}};o.notEnumerableProp(Promise,"_makeSelfResolutionError",e);n(848)(Promise,b,k,i,T);n(186)(Promise,b,k,T);n(827)(Promise,x,i,T);n(44)(Promise);n(151)(Promise);n(272)(Promise,x,k,b,v);Promise.Promise=Promise;Promise.version="3.7.2";n(462)(Promise);n(452)(Promise,i,b,k,Proxyable,T);n(867)(Promise,x,i,k,b,T);n(262)(Promise);n(877)(Promise,b);n(468)(Promise,x,k,i);n(106)(Promise,b,k,i);n(355)(Promise,x,i,k,b,T);n(720)(Promise,x,T);n(605)(Promise,x,i);n(536)(Promise,b,T);n(376)(Promise,i,k,A,b,T);n(91)(Promise);n(17)(Promise,b);n(47)(Promise,b);o.toFastProperties(Promise);o.toFastProperties(Promise.prototype);function fillTypes(t){var e=new Promise(b);e._fulfillmentHandler0=t;e._rejectionHandler0=t;e._promise0=t;e._receiver0=t}fillTypes({a:1});fillTypes({b:2});fillTypes({c:3});fillTypes(1);fillTypes(function(){});fillTypes(undefined);fillTypes(false);fillTypes(new Promise(b));T.setBounds(m.firstLineError,o.lastLineError);return Promise}},669:function(t){t.exports=require("util")},706:function(t,e,n){"use strict";const r=n(669);const i=n(407);const s=n(69);const o=n(622);const a=r.promisify(n(569));const c=n(599);t.exports=entry;t.exports.entry=entry;function entry(t,e){s.clearMemoized();return i.delete(t,e)}t.exports.content=content;function content(t,e){s.clearMemoized();return c(t,e)}t.exports.all=all;function all(t){s.clearMemoized();return a(o.join(t,"*(content-*|index-*)"))}},711:function(t,e,n){const r=new Map;const i=n(747);const{dirname:s,resolve:o}=n(622);const a=t=>new Promise((e,n)=>i.lstat(t,(t,r)=>t?n(t):e(r)));const c=t=>{t=o(t);if(r.has(t))return Promise.resolve(r.get(t));const e=e=>{const{uid:n,gid:i}=e;r.set(t,{uid:n,gid:i});return{uid:n,gid:i}};const n=s(t);const i=n===t?null:e=>{return c(n).then(e=>{r.set(t,e);return e})};return a(t).then(e,i)};const u=t=>{t=o(t);if(r.has(t))return r.get(t);const e=s(t);let n=true;try{const s=i.lstatSync(t);n=false;const{uid:o,gid:a}=s;r.set(t,{uid:o,gid:a});return{uid:o,gid:a}}finally{if(n&&e!==t){const n=u(e);r.set(t,n);return n}}};const l=new Map;t.exports=(t=>{t=o(t);if(l.has(t))return Promise.resolve(l.get(t));const e=c(t).then(e=>{l.delete(t);return e});l.set(t,e);return e});t.exports.sync=u;t.exports.clearCache=(()=>{r.clear();l.clear()})},720:function(t,e,n){"use strict";t.exports=function(t,e,r){var i=t.PromiseInspection;var s=n(325);function SettledPromiseArray(t){this.constructor$(t)}s.inherits(SettledPromiseArray,e);SettledPromiseArray.prototype._promiseResolved=function(t,e){this._values[t]=e;var n=++this._totalResolved;if(n>=this._length){this._resolve(this._values);return true}return false};SettledPromiseArray.prototype._promiseFulfilled=function(t,e){var n=new i;n._bitField=33554432;n._settledValueField=t;return this._promiseResolved(e,n)};SettledPromiseArray.prototype._promiseRejected=function(t,e){var n=new i;n._bitField=16777216;n._settledValueField=t;return this._promiseResolved(e,n)};t.settle=function(t){r.deprecated(".settle()",".reflect()");return new SettledPromiseArray(t).promise()};t.allSettled=function(t){return new SettledPromiseArray(t).promise()};t.prototype.settle=function(){return t.settle(this)}}},747:function(t){t.exports=require("fs")},751:function(t){"use strict";t.exports=balanced;function balanced(t,e,n){if(t instanceof RegExp)t=maybeMatch(t,n);if(e instanceof RegExp)e=maybeMatch(e,n);var r=range(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function maybeMatch(t,e){var n=e.match(t);return n?n[0]:null}balanced.range=range;function range(t,e,n){var r,i,s,o,a;var c=n.indexOf(t);var u=n.indexOf(e,c+1);var l=c;if(c>=0&&u>0){r=[];s=n.length;while(l>=0&&!a){if(l==c){r.push(l);c=n.indexOf(t,l+1)}else if(r.length==1){a=[r.pop(),u]}else{i=r.pop();if(i=0?c:u}if(r.length){a=[s,o]}}return a}},755:function(t,e,n){const r=n(506);const i=n(657);const{mkdirpNative:s,mkdirpNativeSync:o}=n(490);const{mkdirpManual:a,mkdirpManualSync:c}=n(663);const{useNative:u,useNativeSync:l}=n(466);const f=(t,e)=>{t=i(t);e=r(e);return u(e)?s(t,e):a(t,e)};const h=(t,e)=>{t=i(t);e=r(e);return l(e)?o(t,e):c(t,e)};f.sync=h;f.native=((t,e)=>s(i(t),r(e)));f.manual=((t,e)=>a(i(t),r(e)));f.nativeSync=((t,e)=>o(i(t),r(e)));f.manualSync=((t,e)=>c(i(t),r(e)));t.exports=f},762:function(t,e,n){"use strict";const r=n(747);const i=n(669);const s=i.promisify(r.chmod);const o=i.promisify(r.unlink);const a=i.promisify(r.stat);const c=n(630);const u=n(978);t.exports=moveFile;function moveFile(t,e){const n=global.__CACACHE_TEST_FAKE_WINDOWS__||process.platform==="win32";return new Promise((i,s)=>{r.link(t,e,t=>{if(t){if(n&&t.code==="EPERM"){return i()}else if(t.code==="EEXIST"||t.code==="EBUSY"){return i()}else{return s(t)}}else{return i()}})}).then(()=>{return Promise.all([o(t),!n&&s(e,"0444")])}).catch(()=>{return u("cacache-move-file:"+e,()=>{return a(e).catch(n=>{if(n.code!=="ENOENT"){throw n}return c(t,e)})})})}},764:function(t,e,n){"use strict";const r=n(14);const i=n(425);const s=n(154);const o=n(706);const a=n(856);const{clearMemoized:c}=n(69);const u=n(931);t.exports.ls=r;t.exports.ls.stream=r.stream;t.exports.get=i;t.exports.get.byDigest=i.byDigest;t.exports.get.sync=i.sync;t.exports.get.sync.byDigest=i.sync.byDigest;t.exports.get.stream=i.stream;t.exports.get.stream.byDigest=i.stream.byDigest;t.exports.get.copy=i.copy;t.exports.get.copy.byDigest=i.copy.byDigest;t.exports.get.info=i.info;t.exports.get.hasContent=i.hasContent;t.exports.get.hasContent.sync=i.hasContent.sync;t.exports.put=s;t.exports.put.stream=s.stream;t.exports.rm=o.entry;t.exports.rm.all=o.all;t.exports.rm.entry=t.exports.rm;t.exports.rm.content=o.content;t.exports.clearMemoized=c;t.exports.tmp={};t.exports.tmp.mkdir=u.mkdir;t.exports.tmp.withTmp=u.withTmp;t.exports.verify=a;t.exports.verify.lastRun=a.lastRun},767:function(t){(function(){var e;function MurmurHash3(t,n){var r=this instanceof MurmurHash3?this:e;r.reset(n);if(typeof t==="string"&&t.length>0){r.hash(t)}if(r!==this){return r}}MurmurHash3.prototype.hash=function(t){var e,n,r,i,s;s=t.length;this.len+=s;n=this.k1;r=0;switch(this.rem){case 0:n^=s>r?t.charCodeAt(r++)&65535:0;case 1:n^=s>r?(t.charCodeAt(r++)&65535)<<8:0;case 2:n^=s>r?(t.charCodeAt(r++)&65535)<<16:0;case 3:n^=s>r?(t.charCodeAt(r)&255)<<24:0;n^=s>r?(t.charCodeAt(r++)&65280)>>8:0}this.rem=s+this.rem&3;s-=this.rem;if(s>0){e=this.h1;while(1){n=n*11601+(n&65535)*3432906752&4294967295;n=n<<15|n>>>17;n=n*13715+(n&65535)*461832192&4294967295;e^=n;e=e<<13|e>>>19;e=e*5+3864292196&4294967295;if(r>=s){break}n=t.charCodeAt(r++)&65535^(t.charCodeAt(r++)&65535)<<8^(t.charCodeAt(r++)&65535)<<16;i=t.charCodeAt(r++);n^=(i&255)<<24^(i&65280)>>8}n=0;switch(this.rem){case 3:n^=(t.charCodeAt(r+2)&65535)<<16;case 2:n^=(t.charCodeAt(r+1)&65535)<<8;case 1:n^=t.charCodeAt(r)&65535}this.h1=e}this.k1=n;return this};MurmurHash3.prototype.result=function(){var t,e;t=this.k1;e=this.h1;if(t>0){t=t*11601+(t&65535)*3432906752&4294967295;t=t<<15|t>>>17;t=t*13715+(t&65535)*461832192&4294967295;e^=t}e^=this.len;e^=e>>>16;e=e*51819+(e&65535)*2246770688&4294967295;e^=e>>>13;e=e*44597+(e&65535)*3266445312&4294967295;e^=e>>>16;return e>>>0};MurmurHash3.prototype.reset=function(t){this.h1=typeof t==="number"?t:0;this.rem=this.k1=this.len=0;return this};e=new MurmurHash3;if(true){t.exports=MurmurHash3}else{}})()},782:function(t,e,n){const r=n(316);const i=Symbol("_data");const s=Symbol("_length");class Collect extends r{constructor(t){super(t);this[i]=[];this[s]=0}write(t,e,n){if(typeof e==="function")n=e,e="utf8";if(!e)e="utf8";const r=Buffer.isBuffer(t)?t:Buffer.from(t,e);this[i].push(r);this[s]+=r.length;if(n)n();return true}end(t,e,n){if(typeof t==="function")n=t,t=null;if(typeof e==="function")n=e,e="utf8";if(t)this.write(t,e);const r=Buffer.concat(this[i],this[s]);super.write(r);return super.end(n)}}t.exports=Collect;class CollectPassThrough extends r{constructor(t){super(t);this[i]=[];this[s]=0}write(t,e,n){if(typeof e==="function")n=e,e="utf8";if(!e)e="utf8";const r=Buffer.isBuffer(t)?t:Buffer.from(t,e);this[i].push(r);this[s]+=r.length;return super.write(t,e,n)}end(t,e,n){if(typeof t==="function")n=t,t=null;if(typeof e==="function")n=e,e="utf8";if(t)this.write(t,e);const r=Buffer.concat(this[i],this[s]);this.emit("collect",r);return super.end(n)}}t.exports.PassThrough=CollectPassThrough},815:function(t,e,n){const r=n(833);const i=n(607);const{mkdirpNative:s,mkdirpNativeSync:o}=n(585);const{mkdirpManual:a,mkdirpManualSync:c}=n(283);const{useNative:u,useNativeSync:l}=n(32);const f=(t,e)=>{t=i(t);e=r(e);return u(e)?s(t,e):a(t,e)};const h=(t,e)=>{t=i(t);e=r(e);return l(e)?o(t,e):c(t,e)};f.sync=h;f.native=((t,e)=>s(i(t),r(e)));f.manual=((t,e)=>a(i(t),r(e)));f.nativeSync=((t,e)=>o(i(t),r(e)));f.manualSync=((t,e)=>c(i(t),r(e)));t.exports=f},827:function(t,e,n){"use strict";t.exports=function(t,e,r,i){var s=n(325);var o=s.tryCatch;var a=s.errorObj;var c=t._async;t.prototype["break"]=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");var t=this;var e=t;while(t._isCancellable()){if(!t._cancelBy(e)){if(e._isFollowing()){e._followee().cancel()}else{e._cancelBranched()}break}var n=t._cancellationParent;if(n==null||!n._isCancellable()){if(t._isFollowing()){t._followee().cancel()}else{t._cancelBranched()}break}else{if(t._isFollowing())t._followee().cancel();t._setWillBeCancelled();e=t;t=n}}};t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--};t.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===undefined||this._branchesRemainingToCancel<=0};t.prototype._cancelBy=function(t){if(t===this){this._branchesRemainingToCancel=0;this._invokeOnCancel();return true}else{this._branchHasCancelled();if(this._enoughBranchesHaveCancelled()){this._invokeOnCancel();return true}}return false};t.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled()){this._cancel()}};t.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled();c.invoke(this._cancelPromises,this,undefined)};t.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()};t.prototype._unsetOnCancel=function(){this._onCancelField=undefined};t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()};t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()};t.prototype._doInvokeOnCancel=function(t,e){if(s.isArray(t)){for(var n=0;n{if(!t)t={mode:511,fs:i};else if(typeof t==="object")t={mode:511,fs:i,...t};else if(typeof t==="number")t={mode:t,fs:i};else if(typeof t==="string")t={mode:parseInt(t,8),fs:i};else throw new TypeError("invalid options argument");t.mkdir=t.mkdir||t.fs.mkdir||i.mkdir;t.mkdirAsync=r(t.mkdir);t.stat=t.stat||t.fs.stat||i.stat;t.statAsync=r(t.stat);t.statSync=t.statSync||t.fs.statSync||i.statSync;t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||i.mkdirSync;return t};t.exports=s},838:function(t,e,n){const{dirname:r}=n(622);const i=(t,e,n=undefined)=>{if(n===e)return Promise.resolve();return t.statAsync(e).then(t=>t.isDirectory()?n:undefined,n=>n.code==="ENOENT"?i(t,r(e),e):undefined)};const s=(t,e,n=undefined)=>{if(n===e)return undefined;try{return t.statSync(e).isDirectory()?n:undefined}catch(n){return n.code==="ENOENT"?s(t,r(e),e):undefined}};t.exports={findMade:i,findMadeSync:s}},843:function(t,e,n){var r=n(956);var i=n(751);t.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(t){return t.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var n=i("{","}",t);if(!n)return t.split(",");var r=n.pre;var s=n.body;var o=n.post;var a=r.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}e.push.apply(e,a);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var n=[];var s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var u=o||c;var l=s.body.indexOf(",")>=0;if(!u&&!l){if(s.post.match(/,.*\}/)){t=s.pre+"{"+s.body+a+s.post;return expand(t)}return[t]}var f;if(u){f=s.body.split(/\.\./)}else{f=parseCommaParts(s.body);if(f.length===1){f=expand(f[0],false).map(embrace);if(f.length===1){var h=s.post.length?expand(s.post,false):[""];return h.map(function(t){return s.pre+f[0]+t})}}}var p=s.pre;var h=s.post.length?expand(s.post,false):[""];var d;if(u){var y=numeric(f[0]);var m=numeric(f[1]);var v=Math.max(f[0].length,f[1].length);var g=f.length==3?Math.abs(numeric(f[2])):1;var _=lte;var w=m0){var x=new Array(k+1).join("0");if(S<0)E="-"+x+E.slice(1);else E=x+E}}}d.push(E)}}else{d=r(f,function(t){return expand(t,false)})}for(var C=0;C1){s.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1];var l=arguments[2];c=o.isArray(u)?a(n).apply(l,u):a(n).call(l,u)}else{c=a(n)()}var f=r._popContext();s.checkForgottenReturns(c,f,"Promise.try",r);r._resolveFromSyncValue(c);return r};t.prototype._resolveFromSyncValue=function(t){if(t===o.errorObj){this._rejectCallback(t.e,false)}else{this._resolveCallback(t,true)}}}},856:function(t,e,n){"use strict";t.exports=n(49)},865:function(t,e,n){"use strict";t.exports=function(t,e,r){var i=n(325);var s=t.CancellationError;var o=i.errorObj;var a=n(995)(r);function PassThroughHandlerContext(t,e,n){this.promise=t;this.type=e;this.handler=n;this.called=false;this.cancelPromise=null}PassThroughHandlerContext.prototype.isFinallyHandler=function(){return this.type===0};function FinallyHandlerCancelReaction(t){this.finallyHandler=t}FinallyHandlerCancelReaction.prototype._resultCancelled=function(){checkCancel(this.finallyHandler)};function checkCancel(t,e){if(t.cancelPromise!=null){if(arguments.length>1){t.cancelPromise._reject(e)}else{t.cancelPromise._cancel()}t.cancelPromise=null;return true}return false}function succeed(){return finallyHandler.call(this,this.promise._target()._settledValue())}function fail(t){if(checkCancel(this,t))return;o.e=t;return o}function finallyHandler(n){var i=this.promise;var a=this.handler;if(!this.called){this.called=true;var c=this.isFinallyHandler()?a.call(i._boundValue()):a.call(i._boundValue(),n);if(c===r){return c}else if(c!==undefined){i._setReturnedNonUndefined();var u=e(c,i);if(u instanceof t){if(this.cancelPromise!=null){if(u._isCancelled()){var l=new s("late cancellation observer");i._attachExtraTrace(l);o.e=l;return o}else if(u.isPending()){u._attachCancellationCallback(new FinallyHandlerCancelReaction(this))}}return u._then(succeed,fail,undefined,this,undefined)}}}if(i.isRejected()){checkCancel(this);o.e=n;return o}else{checkCancel(this);return n}}t.prototype._passThrough=function(t,e,n,r){if(typeof t!=="function")return this.then();return this._then(n,r,undefined,new PassThroughHandlerContext(this,e,t),undefined)};t.prototype.lastly=t.prototype["finally"]=function(t){return this._passThrough(t,0,finallyHandler,finallyHandler)};t.prototype.tap=function(t){return this._passThrough(t,1,finallyHandler)};t.prototype.tapCatch=function(e){var n=arguments.length;if(n===1){return this._passThrough(e,1,undefined,finallyHandler)}else{var r=new Array(n-1),s=0,o;for(o=0;o=1){this._inFlight--;this._drainQueue();if(this._isResolved())return true}}else{if(l>=1&&this._inFlight>=l){r[n]=e;this._queue.push(n);return false}if(a!==null)a[n]=e;var f=this._promise;var h=this._callback;var p=f._boundValue();f._pushContext();var d=c(h).call(p,e,n,s);var y=f._popContext();o.checkForgottenReturns(d,y,a!==null?"Promise.filter":"Promise.map",f);if(d===u){this._reject(d.e);return true}var m=i(d,this._promise);if(m instanceof t){m=m._target();var v=m._bitField;if((v&50397184)===0){if(l>=1)this._inFlight++;r[n]=m;m._proxy(this,(n+1)*-1);return false}else if((v&33554432)!==0){d=m._value()}else if((v&16777216)!==0){this._reject(m._reason());return true}else{this._cancel();return true}}r[n]=d}var g=++this._totalResolved;if(g>=s){if(a!==null){this._filter(r,a)}else{this._resolve(r)}return true}return false};MappingPromiseArray.prototype._drainQueue=function(){var t=this._queue;var e=this._limit;var n=this._values;while(t.length>0&&this._inFlight=1?o:0;return new MappingPromiseArray(e,n,o,s).promise()}t.prototype.map=function(t,e){return map(this,t,e,null)};t.map=function(t,e,n,r){return map(t,e,n,r)}}},877:function(t,e,n){"use strict";t.exports=function(t,e){var r={};var i=n(325);var s=n(913);var o=i.withAppended;var a=i.maybeWrapAsError;var c=i.canEvaluate;var u=n(558).TypeError;var l="Async";var f={__isPromisified__:true};var h=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"];var p=new RegExp("^(?:"+h.join("|")+")$");var d=function(t){return i.isIdentifier(t)&&t.charAt(0)!=="_"&&t!=="constructor"};function propsFilter(t){return!p.test(t)}function isPromisified(t){try{return t.__isPromisified__===true}catch(t){return false}}function hasPromisified(t,e,n){var r=i.getDataPropertyOrDefault(t,e+n,f);return r?isPromisified(r):false}function checkValid(t,e,n){for(var r=0;r=n;--r){e.push(r)}for(var r=t+1;r<=3;++r){e.push(r)}return e};var g=function(t){return i.filledRange(t,"_arg","")};var _=function(t){return i.filledRange(Math.max(t,3),"_arg","")};var w=function(t){if(typeof t.length==="number"){return Math.max(Math.min(t.length,1023+1),0)}return 0};m=function(n,c,u,l,f,h){var p=Math.max(0,w(l)-1);var d=v(p);var y=typeof n==="string"||c===r;function generateCallForArgumentCount(t){var e=g(t).join(", ");var n=t>0?", ":"";var r;if(y){r="ret = callback.call(this, {{args}}, nodeback); break;\n"}else{r=c===undefined?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n"}return r.replace("{{args}}",e).replace(", ",n)}function generateArgumentSwitchCase(){var t="";for(var e=0;e{return r})}t.exports.withTmp=withTmp;function withTmp(t,e,n){if(!n){n=e;e={}}return c(mktmpdir(t,e),o,n)}t.exports.fix=fixtmpdir;function fixtmpdir(t){return i(t,s.join(t,"tmp"))}},934:function(t,e,n){var r=n(622);var i=process.platform==="win32";var s=n(747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(o){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var a=r.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=r.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var n=t,o={},a={};var l;var f;var h;var p;start();function start(){var e=u.exec(t);l=e[0].length;f=e[0];h=e[0];p="";if(i&&!a[h]){s.lstatSync(h);a[h]=true}}while(l=t.length){if(e)e[o]=t;return n(null,t)}c.lastIndex=f;var r=c.exec(t);d=h;h+=r[0];p=d+r[1];f=c.lastIndex;if(l[p]||e&&e[p]===p){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,p)){return gotResolvedLink(e[p])}return s.lstat(p,gotStat)}function gotStat(t,r){if(t)return n(t);if(!r.isSymbolicLink()){l[p]=true;if(e)e[p]=p;return process.nextTick(LOOP)}if(!i){var o=r.dev.toString(32)+":"+r.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],p)}}s.stat(p,function(t){if(t)return n(t);s.readlink(p,function(t,e){if(!i)a[o]=e;gotTarget(t,e)})})}function gotTarget(t,i,s){if(t)return n(t);var o=r.resolve(d,i);if(e)e[s]=o;gotResolvedLink(o)}function gotResolvedLink(e){t=r.resolve(e,t.slice(f));start()}}},938:function(t,e,n){t.exports=minimatch;minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(622)}catch(t){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=n(843);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var f=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce(function(t,e){t[e]=true;return t},{})}var h=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(n,r,i){return minimatch(n,t,e)}}function ext(t,e){t=t||{};e=e||{};var n={};Object.keys(e).forEach(function(t){n[t]=e[t]});Object.keys(t).forEach(function(e){n[e]=t[e]});return n}minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return minimatch;var e=minimatch;var n=function minimatch(n,r,i){return e.minimatch(n,r,ext(t,i))};n.Minimatch=function Minimatch(n,r){return new e.Minimatch(n,ext(t,r))};return n};Minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return Minimatch;return minimatch.defaults(t).Minimatch};function minimatch(t,e,n){if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!n)n={};if(!n.nocomment&&e.charAt(0)==="#"){return false}if(e.trim()==="")return t==="";return new Minimatch(e,n).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!e)e={};t=t.trim();if(r.sep!=="/"){t=t.split(r.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(e.debug)this.debug=console.error;this.debug(this.pattern,n);n=this.globParts=n.map(function(t){return t.split(h)});this.debug(this.pattern,n);n=n.map(function(t,e,n){return t.map(this.parse,this)},this);this.debug(this.pattern,n);n=n.filter(function(t){return t.indexOf(false)===-1});this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var n=this.options;var r=0;if(n.nonegate)return;for(var i=0,s=t.length;i1024*64){throw new TypeError("pattern is too long")}var n=this.options;if(!n.noglobstar&&t==="**")return i;if(t==="")return"";var r="";var s=!!n.nocase;var u=false;var l=[];var h=[];var d;var y=false;var m=-1;var v=-1;var g=t.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(d){switch(d){case"*":r+=c;s=true;break;case"?":r+=a;s=true;break;default:r+="\\"+d;break}_.debug("clearStateChar %j %j",d,r);d=false}}for(var w=0,b=t.length,S;w-1;P--){var j=h[P];var O=r.slice(0,j.reStart);var F=r.slice(j.reStart,j.reEnd-8);var R=r.slice(j.reEnd-8,j.reEnd);var N=r.slice(j.reEnd);R+=N;var D=O.split("(").length-1;var I=N;for(w=0;w=0;o--){s=t[o];if(s)break}for(o=0;o>> no match, partial?",t,f,e,h);if(f===a)return true}return false}var d;if(typeof u==="string"){if(r.nocase){d=l.toLowerCase()===u.toLowerCase()}else{d=l===u}this.debug("string match",u,l,d)}else{d=l.match(u);this.debug("pattern match",u,l,d)}if(!d)return false}if(s===a&&o===c){return true}else if(s===a){return n}else if(o===c){var y=s===a-1&&t[s]==="";return y}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},941:function(t,e,n){"use strict";const r=n(747);const i=n(622);const s=r.lchown?"lchown":"chown";const o=r.lchownSync?"lchownSync":"chownSync";const a=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const c=(t,e,n)=>{try{return r[o](t,e,n)}catch(t){if(t.code!=="ENOENT")throw t}};const u=(t,e,n)=>{try{return r.chownSync(t,e,n)}catch(t){if(t.code!=="ENOENT")throw t}};const l=a?(t,e,n,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else r.chown(t,e,n,i)}:(t,e,n,r)=>r;const f=a?(t,e,n)=>{try{return c(t,e,n)}catch(r){if(r.code!=="EISDIR")throw r;u(t,e,n)}}:(t,e,n)=>c(t,e,n);const h=process.version;let p=(t,e,n)=>r.readdir(t,e,n);let d=(t,e)=>r.readdirSync(t,e);if(/^v4\./.test(h))p=((t,e,n)=>r.readdir(t,n));const y=(t,e,n,i)=>{r[s](t,e,n,l(t,e,n,t=>{i(t&&t.code!=="ENOENT"?t:null)}))};const m=(t,e,n,s,o)=>{if(typeof e==="string")return r.lstat(i.resolve(t,e),(r,i)=>{if(r)return o(r.code!=="ENOENT"?r:null);i.name=e;m(t,i,n,s,o)});if(e.isDirectory()){v(i.resolve(t,e.name),n,s,r=>{if(r)return o(r);const a=i.resolve(t,e.name);y(a,n,s,o)})}else{const r=i.resolve(t,e.name);y(r,n,s,o)}};const v=(t,e,n,r)=>{p(t,{withFileTypes:true},(i,s)=>{if(i){if(i.code==="ENOENT")return r();else if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return r(i)}if(i||!s.length)return y(t,e,n,r);let o=s.length;let a=null;const c=i=>{if(a)return;if(i)return r(a=i);if(--o===0)return y(t,e,n,r)};s.forEach(r=>m(t,r,e,n,c))})};const g=(t,e,n,s)=>{if(typeof e==="string"){try{const n=r.lstatSync(i.resolve(t,e));n.name=e;e=n}catch(t){if(t.code==="ENOENT")return;else throw t}}if(e.isDirectory())_(i.resolve(t,e.name),n,s);f(i.resolve(t,e.name),n,s)};const _=(t,e,n)=>{let r;try{r=d(t,{withFileTypes:true})}catch(r){if(r.code==="ENOENT")return;else if(r.code==="ENOTDIR"||r.code==="ENOTSUP")return f(t,e,n);else throw r}if(r&&r.length)r.forEach(r=>g(t,r,e,n));return f(t,e,n)};t.exports=v;v.sync=_},951:function(t,e,n){"use strict";const r=n(417);const i=n(316);const s=["sha256","sha384","sha512"];const o=/^[a-z0-9+/]+(?:=?=?)$/i;const a=/^([a-z0-9]+)-([^?]+)([?\S*]*)$/;const c=/^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/;const u=/^[\x21-\x7E]+$/;const l={algorithms:["sha512"],error:false,options:[],pickAlgorithm:getPrioritizedHash,sep:" ",single:false,strict:false};const f=(t={})=>({...l,...t});const h=t=>!t||!t.length?"":`?${t.join("?")}`;const p=Symbol("_onEnd");const d=Symbol("_getOptions");class IntegrityStream extends i{constructor(t){super();this.size=0;this.opts=t;this[d]();const{algorithms:e=l.algorithms}=t;this.algorithms=Array.from(new Set(e.concat(this.algorithm?[this.algorithm]:[])));this.hashes=this.algorithms.map(r.createHash)}[d](){const{integrity:t,size:e,options:n}={...l,...this.opts};this.sri=t?parse(t,this.opts):null;this.expectedSize=e;this.goodSri=this.sri?!!Object.keys(this.sri).length:false;this.algorithm=this.goodSri?this.sri.pickAlgorithm(this.opts):null;this.digests=this.goodSri?this.sri[this.algorithm]:null;this.optString=h(n)}emit(t,e){if(t==="end")this[p]();return super.emit(t,e)}write(t){this.size+=t.length;this.hashes.forEach(e=>e.update(t));return super.write(t)}[p](){if(!this.goodSri){this[d]()}const t=parse(this.hashes.map((t,e)=>{return`${this.algorithms[e]}-${t.digest("base64")}${this.optString}`}).join(" "),this.opts);const e=this.goodSri&&t.match(this.sri,this.opts);if(typeof this.expectedSize==="number"&&this.size!==this.expectedSize){const t=new Error(`stream size mismatch when checking ${this.sri}.\n Wanted: ${this.expectedSize}\n Found: ${this.size}`);t.code="EBADSIZE";t.found=this.size;t.expected=this.expectedSize;t.sri=this.sri;this.emit("error",t)}else if(this.sri&&!e){const e=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${t}. (${this.size} bytes)`);e.code="EINTEGRITY";e.found=t;e.expected=this.digests;e.algorithm=this.algorithm;e.sri=this.sri;this.emit("error",e)}else{this.emit("size",this.size);this.emit("integrity",t);e&&this.emit("verified",e)}}}class Hash{get isHash(){return true}constructor(t,e){e=f(e);const n=!!e.strict;this.source=t.trim();this.digest="";this.algorithm="";this.options=[];const r=this.source.match(n?c:a);if(!r){return}if(n&&!s.some(t=>t===r[1])){return}this.algorithm=r[1];this.digest=r[2];const i=r[3];if(i){this.options=i.slice(1).split("?")}}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(t){t=f(t);if(t.strict){if(!(s.some(t=>t===this.algorithm)&&this.digest.match(o)&&this.options.every(t=>t.match(u)))){return""}}const e=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${e}`}}class Integrity{get isIntegrity(){return true}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(t){t=f(t);let e=t.sep||" ";if(t.strict){e=e.replace(/\S+/g," ")}return Object.keys(this).map(n=>{return this[n].map(e=>{return Hash.prototype.toString.call(e,t)}).filter(t=>t.length).join(e)}).filter(t=>t.length).join(e)}concat(t,e){e=f(e);const n=typeof t==="string"?t:stringify(t,e);return parse(`${this.toString(e)} ${n}`,e)}hexDigest(){return parse(this,{single:true}).hexDigest()}merge(t,e){e=f(e);const n=parse(t,e);for(const t in n){if(this[t]){if(!this[t].find(e=>n[t].find(t=>e.digest===t.digest))){throw new Error("hashes do not match, cannot update integrity")}}else{this[t]=n[t]}}}match(t,e){e=f(e);const n=parse(t,e);const r=n.pickAlgorithm(e);return this[r]&&n[r]&&this[r].find(t=>n[r].find(e=>t.digest===e.digest))||false}pickAlgorithm(t){t=f(t);const e=t.pickAlgorithm;const n=Object.keys(this);return n.reduce((t,n)=>{return e(t,n)||t})}}t.exports.parse=parse;function parse(t,e){if(!t)return null;e=f(e);if(typeof t==="string"){return _parse(t,e)}else if(t.algorithm&&t.digest){const n=new Integrity;n[t.algorithm]=[t];return _parse(stringify(n,e),e)}else{return _parse(stringify(t,e),e)}}function _parse(t,e){if(e.single){return new Hash(t,e)}const n=t.trim().split(/\s+/).reduce((t,n)=>{const r=new Hash(n,e);if(r.algorithm&&r.digest){const e=r.algorithm;if(!t[e]){t[e]=[]}t[e].push(r)}return t},new Integrity);return n.isEmpty()?null:n}t.exports.stringify=stringify;function stringify(t,e){e=f(e);if(t.algorithm&&t.digest){return Hash.prototype.toString.call(t,e)}else if(typeof t==="string"){return stringify(parse(t,e),e)}else{return Integrity.prototype.toString.call(t,e)}}t.exports.fromHex=fromHex;function fromHex(t,e,n){n=f(n);const r=h(n.options);return parse(`${e}-${Buffer.from(t,"hex").toString("base64")}${r}`,n)}t.exports.fromData=fromData;function fromData(t,e){e=f(e);const n=e.algorithms;const i=h(e.options);return n.reduce((n,s)=>{const o=r.createHash(s).update(t).digest("base64");const a=new Hash(`${s}-${o}${i}`,e);if(a.algorithm&&a.digest){const t=a.algorithm;if(!n[t]){n[t]=[]}n[t].push(a)}return n},new Integrity)}t.exports.fromStream=fromStream;function fromStream(t,e){e=f(e);const n=integrityStream(e);return new Promise((e,r)=>{t.pipe(n);t.on("error",r);n.on("error",r);let i;n.on("integrity",t=>{i=t});n.on("end",()=>e(i));n.on("data",()=>{})})}t.exports.checkData=checkData;function checkData(t,e,n){n=f(n);e=parse(e,n);if(!e||!Object.keys(e).length){if(n.error){throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"})}else{return false}}const i=e.pickAlgorithm(n);const s=r.createHash(i).update(t).digest("base64");const o=parse({algorithm:i,digest:s});const a=o.match(e,n);if(a||!n.error){return a}else if(typeof n.size==="number"&&t.length!==n.size){const r=new Error(`data size mismatch when checking ${e}.\n Wanted: ${n.size}\n Found: ${t.length}`);r.code="EBADSIZE";r.found=t.length;r.expected=n.size;r.sri=e;throw r}else{const n=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${o}. (${t.length} bytes)`);n.code="EINTEGRITY";n.found=o;n.expected=e;n.algorithm=i;n.sri=e;throw n}}t.exports.checkStream=checkStream;function checkStream(t,e,n){n=f(n);n.integrity=e;e=parse(e,n);if(!e||!Object.keys(e).length){return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}))}const r=integrityStream(n);return new Promise((e,n)=>{t.pipe(r);t.on("error",n);r.on("error",n);let i;r.on("verified",t=>{i=t});r.on("end",()=>e(i));r.on("data",()=>{})})}t.exports.integrityStream=integrityStream;function integrityStream(t={}){return new IntegrityStream(t)}t.exports.create=createIntegrity;function createIntegrity(t){t=f(t);const e=t.algorithms;const n=h(t.options);const i=e.map(r.createHash);return{update:function(t,e){i.forEach(n=>n.update(t,e));return this},digest:function(r){const s=e.reduce((e,r)=>{const s=i.shift().digest("base64");const o=new Hash(`${r}-${s}${n}`,t);if(o.algorithm&&o.digest){const t=o.algorithm;if(!e[t]){e[t]=[]}e[t].push(o)}return e},new Integrity);return s}}}const y=new Set(r.getHashes());const m=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>y.has(t));function getPrioritizedHash(t,e){return m.indexOf(t.toLowerCase())>=m.indexOf(e.toLowerCase())?t:e}},956:function(t){t.exports=function(t,n){var r=[];for(var i=0;is.relative(e,t)).join("!")}return t.split("!").map(t=>s.resolve(e,t)).join("!")}function roundMs(e,t){return Math.floor(e/t)*t}function loader(...e){const t=Object.assign({},b,l(this));p(m,t,{name:"Cache Loader",baseDataPath:"options"});const{readOnly:n,write:i}=t;if(n){this.callback(null,...e);return}const s=this.async();const{data:c}=this;const a=this.getDependencies().concat(this.loaders.map(e=>e.path));const u=this.getContextDependencies();let d=true;const f=this.fs||r;const h=(e,n)=>{f.stat(e,(r,i)=>{if(r){n(r);return}const s=i.mtime.getTime();if(s/1e3>=Math.floor(c.startTime/1e3)){d=false}n(null,{path:pathWithCacheContext(t.cacheContext,e),mtime:s})})};o.parallel([e=>o.mapLimit(a,20,h,e),e=>o.mapLimit(u,20,h,e)],(n,r)=>{if(n){s(null,...e);return}if(!d){s(null,...e);return}const[o,a]=r;i(c.cacheKey,{remainingRequest:pathWithCacheContext(t.cacheContext,c.remainingRequest),dependencies:o,contextDependencies:a,result:e},()=>{s(null,...e)})})}function pitch(e,t,n){const i=Object.assign({},b,l(this));p(m,i,{name:"Cache Loader (Pitch)",baseDataPath:"options"});const{cacheContext:s,cacheKey:c,compare:a,read:u,readOnly:d,precision:f}=i;const h=this.async();const y=n;y.remainingRequest=e;y.cacheKey=c(i,y.remainingRequest);u(y.cacheKey,(e,t)=>{if(e){h();return}if(pathWithCacheContext(i.cacheContext,t.remainingRequest)!==y.remainingRequest){h();return}const n=this.fs||r;o.each(t.dependencies.concat(t.contextDependencies),(e,t)=>{const r={...e,path:pathWithCacheContext(i.cacheContext,e.path)};n.stat(r.path,(n,i)=>{if(n){t(n);return}if(d){t();return}const s=i;const o=r;if(f>1){["atime","mtime","ctime","birthtime"].forEach(e=>{const t=`${e}Ms`;const n=roundMs(i[t],f);s[t]=n;s[e]=new Date(n)});o.mtime=roundMs(e.mtime,f)}if(a(s,o)!==true){t(true);return}t()})},e=>{if(e){y.startTime=Date.now();h();return}t.dependencies.forEach(e=>this.addDependency(pathWithCacheContext(s,e.path)));t.contextDependencies.forEach(e=>this.addContextDependency(pathWithCacheContext(s,e.path)));h(null,...t.result)})})}function digest(e){return c.createHash("md5").update(e).digest("hex")}const y=new Set;function write(e,t,n){const i=s.dirname(e);const o=d.stringify(t);if(y.has(i)){r.writeFile(e,o,"utf-8",n)}else{a(i,t=>{if(t){n(t);return}y.add(i);r.writeFile(e,o,"utf-8",n)})}}function read(e,t){r.readFile(e,"utf-8",(e,n)=>{if(e){t(e);return}try{const e=d.parse(n);t(null,e)}catch(e){t(e)}})}function cacheKey(e,t){const{cacheIdentifier:n,cacheDirectory:r}=e;const i=digest(`${n}\n${t}`);return s.join(r,`${i}.json`)}function compare(e,t){return e.mtime.getTime()===t.mtime}const g=true;t.raw=g},573:function(e){e.exports={name:"cache-loader",version:"4.1.0",description:"Caches the result of following loaders on disk.",license:"MIT",repository:"webpack-contrib/cache-loader",author:"Tobias Koppers @sokra",homepage:"https://github.com/webpack-contrib/cache-loader",bugs:"https://github.com/webpack-contrib/cache-loader/issues",main:"dist/cjs.js",engines:{node:">= 8.9.0"},scripts:{start:"npm run build -- -w",prebuild:"npm run clean",build:'cross-env NODE_ENV=production babel src -d dist --ignore "src/**/*.test.js" --copy-files',clean:"del-cli dist",commitlint:"commitlint --from=master","lint:prettier":'prettier "{**/*,*}.{js,json,md,yml,css}" --list-different',"lint:js":"eslint --cache src test",lint:'npm-run-all -l -p "lint:**"',prepare:"npm run build",release:"standard-version",security:"npm audit","test:only":"cross-env NODE_ENV=test jest","test:watch":"cross-env NODE_ENV=test jest --watch","test:coverage":'cross-env NODE_ENV=test jest --collectCoverageFrom="src/**/*.js" --coverage',pretest:"npm run lint",test:"cross-env NODE_ENV=test npm run test:coverage",defaults:"webpack-defaults"},files:["dist"],peerDependencies:{webpack:"^4.0.0"},dependencies:{"buffer-json":"^2.0.0","find-cache-dir":"^3.0.0","loader-utils":"^1.2.3",mkdirp:"^0.5.1","neo-async":"^2.6.1","schema-utils":"^2.0.0"},devDependencies:{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@webpack-contrib/defaults":"^5.0.2","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^24.8.0","babel-loader":"^8.0.6","commitlint-azure-pipelines-cli":"^1.0.2","cross-env":"^5.2.0",del:"^5.0.0","del-cli":"^2.0.0",eslint:"^6.0.1","eslint-config-prettier":"^6.0.0","eslint-plugin-import":"^2.18.0","file-loader":"^4.1.0",husky:"^3.0.0",jest:"^24.8.0","jest-junit":"^6.4.0","lint-staged":"^9.2.0","memory-fs":"^0.4.1","normalize-path":"^3.0.0","npm-run-all":"^4.1.5",prettier:"^1.18.2","standard-version":"^6.0.1",uuid:"^3.3.2",webpack:"^4.36.1","webpack-cli":"^3.3.6"},keywords:["webpack"]}},593:function(e,t,n){"use strict";e.exports=n(484)},622:function(e){e.exports=require("path")},710:function(e){e.exports=require("loader-utils")},747:function(e){e.exports=require("fs")},786:function(e){function stringify(e,t){return JSON.stringify(e,replacer,t)}function parse(e){return JSON.parse(e,reviver)}function replacer(e,t){if(isBufferLike(t)){if(isArray(t.data)){if(t.data.length>0){t.data="base64:"+Buffer.from(t.data).toString("base64")}else{t.data=""}}}return t}function reviver(e,t){if(isBufferLike(t)){if(isArray(t.data)){return Buffer.from(t.data)}else if(isString(t.data)){if(t.data.startsWith("base64:")){return Buffer.from(t.data.slice("base64:".length),"base64")}return Buffer.from(t.data)}}return t}function isBufferLike(e){return isObject(e)&&e.type==="Buffer"&&(isArray(e.data)||isString(e.data))}function isArray(e){return Array.isArray(e)}function isString(e){return typeof e==="string"}function isObject(e){return typeof e==="object"&&e!==null}e.exports={stringify:stringify,parse:parse,replacer:replacer,reviver:reviver}},794:function(e){e.exports={type:"object",properties:{cacheContext:{description:"The default cache context in order to generate the cache relatively to a path. By default it will use absolute paths.",type:"string"},cacheKey:{description:"Allows you to override default cache key generator.",instanceof:"Function"},cacheIdentifier:{description:"Provide a cache directory where cache items should be stored (used for default read/write implementation).",type:"string"},cacheDirectory:{description:"Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",type:"string"},compare:{description:"Allows you to override default comparison function between the cached dependency and the one is being read. Return true to use the cached resource.",instanceof:"Function"},precision:{description:"Round mtime by this number of milliseconds both for stats and deps before passing those params to the comparing function.",type:"number"},read:{description:"Allows you to override default read cache data from file.",instanceof:"Function"},readOnly:{description:"Allows you to override default value and make the cache read only (useful for some environments where you don't want the cache to be updated, only read from it).",type:"boolean"},write:{description:"Allows you to override default write cache data to file (e.g. Redis, memcached).",instanceof:"Function"}},additionalProperties:false}},841:function(e){e.exports=require("mkdirp")}}); \ No newline at end of file +module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var r=n[t]={i:t,l:false,exports:{}};e[t].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(593)}return startup()}({87:function(e){e.exports=require("os")},225:function(e){e.exports=require("next/dist/compiled/schema-utils")},327:function(e){e.exports=require("next/dist/compiled/mkdirp")},386:function(e){e.exports=require("next/dist/compiled/neo-async")},417:function(e){e.exports=require("crypto")},484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;t.pitch=pitch;t.raw=void 0;const r=n(747);const i=n(87);const s=n(622);const o=n(386);const c=n(417);const a=n(327);const u=n(844);const d=n(786);const{getOptions:l}=n(710);const p=n(225);const f=n(573);const h=process.env.NODE_ENV||"development";const m=n(794);const b={cacheContext:"",cacheDirectory:u({name:"cache-loader"})||i.tmpdir(),cacheIdentifier:`cache-loader:${f.version} ${h}`,cacheKey:cacheKey,compare:compare,precision:0,read:read,readOnly:false,write:write};function pathWithCacheContext(e,t){if(!e){return t}if(t.includes(e)){return t.split("!").map(t=>s.relative(e,t)).join("!")}return t.split("!").map(t=>s.resolve(e,t)).join("!")}function roundMs(e,t){return Math.floor(e/t)*t}function loader(...e){const t=Object.assign({},b,l(this));p(m,t,{name:"Cache Loader",baseDataPath:"options"});const{readOnly:n,write:i}=t;if(n){this.callback(null,...e);return}const s=this.async();const{data:c}=this;const a=this.getDependencies().concat(this.loaders.map(e=>e.path));const u=this.getContextDependencies();let d=true;const f=this.fs||r;const h=(e,n)=>{f.stat(e,(r,i)=>{if(r){n(r);return}const s=i.mtime.getTime();if(s/1e3>=Math.floor(c.startTime/1e3)){d=false}n(null,{path:pathWithCacheContext(t.cacheContext,e),mtime:s})})};o.parallel([e=>o.mapLimit(a,20,h,e),e=>o.mapLimit(u,20,h,e)],(n,r)=>{if(n){s(null,...e);return}if(!d){s(null,...e);return}const[o,a]=r;i(c.cacheKey,{remainingRequest:pathWithCacheContext(t.cacheContext,c.remainingRequest),dependencies:o,contextDependencies:a,result:e},()=>{s(null,...e)})})}function pitch(e,t,n){const i=Object.assign({},b,l(this));p(m,i,{name:"Cache Loader (Pitch)",baseDataPath:"options"});const{cacheContext:s,cacheKey:c,compare:a,read:u,readOnly:d,precision:f}=i;const h=this.async();const y=n;y.remainingRequest=e;y.cacheKey=c(i,y.remainingRequest);u(y.cacheKey,(e,t)=>{if(e){h();return}if(pathWithCacheContext(i.cacheContext,t.remainingRequest)!==y.remainingRequest){h();return}const n=this.fs||r;o.each(t.dependencies.concat(t.contextDependencies),(e,t)=>{const r={...e,path:pathWithCacheContext(i.cacheContext,e.path)};n.stat(r.path,(n,i)=>{if(n){t(n);return}if(d){t();return}const s=i;const o=r;if(f>1){["atime","mtime","ctime","birthtime"].forEach(e=>{const t=`${e}Ms`;const n=roundMs(i[t],f);s[t]=n;s[e]=new Date(n)});o.mtime=roundMs(e.mtime,f)}if(a(s,o)!==true){t(true);return}t()})},e=>{if(e){y.startTime=Date.now();h();return}t.dependencies.forEach(e=>this.addDependency(pathWithCacheContext(s,e.path)));t.contextDependencies.forEach(e=>this.addContextDependency(pathWithCacheContext(s,e.path)));h(null,...t.result)})})}function digest(e){return c.createHash("md5").update(e).digest("hex")}const y=new Set;function write(e,t,n){const i=s.dirname(e);const o=d.stringify(t);if(y.has(i)){r.writeFile(e,o,"utf-8",n)}else{a(i,t=>{if(t){n(t);return}y.add(i);r.writeFile(e,o,"utf-8",n)})}}function read(e,t){r.readFile(e,"utf-8",(e,n)=>{if(e){t(e);return}try{const e=d.parse(n);t(null,e)}catch(e){t(e)}})}function cacheKey(e,t){const{cacheIdentifier:n,cacheDirectory:r}=e;const i=digest(`${n}\n${t}`);return s.join(r,`${i}.json`)}function compare(e,t){return e.mtime.getTime()===t.mtime}const g=true;t.raw=g},573:function(e){e.exports={name:"cache-loader",version:"4.1.0",description:"Caches the result of following loaders on disk.",license:"MIT",repository:"webpack-contrib/cache-loader",author:"Tobias Koppers @sokra",homepage:"https://github.com/webpack-contrib/cache-loader",bugs:"https://github.com/webpack-contrib/cache-loader/issues",main:"dist/cjs.js",engines:{node:">= 8.9.0"},scripts:{start:"npm run build -- -w",prebuild:"npm run clean",build:'cross-env NODE_ENV=production babel src -d dist --ignore "src/**/*.test.js" --copy-files',clean:"del-cli dist",commitlint:"commitlint --from=master","lint:prettier":'prettier "{**/*,*}.{js,json,md,yml,css}" --list-different',"lint:js":"eslint --cache src test",lint:'npm-run-all -l -p "lint:**"',prepare:"npm run build",release:"standard-version",security:"npm audit","test:only":"cross-env NODE_ENV=test jest","test:watch":"cross-env NODE_ENV=test jest --watch","test:coverage":'cross-env NODE_ENV=test jest --collectCoverageFrom="src/**/*.js" --coverage',pretest:"npm run lint",test:"cross-env NODE_ENV=test npm run test:coverage",defaults:"webpack-defaults"},files:["dist"],peerDependencies:{webpack:"^4.0.0"},dependencies:{"buffer-json":"^2.0.0","find-cache-dir":"^3.0.0","loader-utils":"^1.2.3",mkdirp:"^0.5.1","neo-async":"^2.6.1","schema-utils":"^2.0.0"},devDependencies:{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@webpack-contrib/defaults":"^5.0.2","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^24.8.0","babel-loader":"^8.0.6","commitlint-azure-pipelines-cli":"^1.0.2","cross-env":"^5.2.0",del:"^5.0.0","del-cli":"^2.0.0",eslint:"^6.0.1","eslint-config-prettier":"^6.0.0","eslint-plugin-import":"^2.18.0","file-loader":"^4.1.0",husky:"^3.0.0",jest:"^24.8.0","jest-junit":"^6.4.0","lint-staged":"^9.2.0","memory-fs":"^0.4.1","normalize-path":"^3.0.0","npm-run-all":"^4.1.5",prettier:"^1.18.2","standard-version":"^6.0.1",uuid:"^3.3.2",webpack:"^4.36.1","webpack-cli":"^3.3.6"},keywords:["webpack"]}},593:function(e,t,n){"use strict";e.exports=n(484)},622:function(e){e.exports=require("path")},710:function(e){e.exports=require("loader-utils")},747:function(e){e.exports=require("fs")},786:function(e){function stringify(e,t){return JSON.stringify(e,replacer,t)}function parse(e){return JSON.parse(e,reviver)}function replacer(e,t){if(isBufferLike(t)){if(isArray(t.data)){if(t.data.length>0){t.data="base64:"+Buffer.from(t.data).toString("base64")}else{t.data=""}}}return t}function reviver(e,t){if(isBufferLike(t)){if(isArray(t.data)){return Buffer.from(t.data)}else if(isString(t.data)){if(t.data.startsWith("base64:")){return Buffer.from(t.data.slice("base64:".length),"base64")}return Buffer.from(t.data)}}return t}function isBufferLike(e){return isObject(e)&&e.type==="Buffer"&&(isArray(e.data)||isString(e.data))}function isArray(e){return Array.isArray(e)}function isString(e){return typeof e==="string"}function isObject(e){return typeof e==="object"&&e!==null}e.exports={stringify:stringify,parse:parse,replacer:replacer,reviver:reviver}},794:function(e){e.exports={type:"object",properties:{cacheContext:{description:"The default cache context in order to generate the cache relatively to a path. By default it will use absolute paths.",type:"string"},cacheKey:{description:"Allows you to override default cache key generator.",instanceof:"Function"},cacheIdentifier:{description:"Provide a cache directory where cache items should be stored (used for default read/write implementation).",type:"string"},cacheDirectory:{description:"Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",type:"string"},compare:{description:"Allows you to override default comparison function between the cached dependency and the one is being read. Return true to use the cached resource.",instanceof:"Function"},precision:{description:"Round mtime by this number of milliseconds both for stats and deps before passing those params to the comparing function.",type:"number"},read:{description:"Allows you to override default read cache data from file.",instanceof:"Function"},readOnly:{description:"Allows you to override default value and make the cache read only (useful for some environments where you don't want the cache to be updated, only read from it).",type:"boolean"},write:{description:"Allows you to override default write cache data to file (e.g. Redis, memcached).",instanceof:"Function"}},additionalProperties:false}},844:function(e){e.exports=require("next/dist/compiled/find-cache-dir")}}); \ No newline at end of file diff --git a/packages/next/compiled/file-loader/cjs.js b/packages/next/compiled/file-loader/cjs.js index e85897e9d4c6f3..c745653f09f37a 100644 --- a/packages/next/compiled/file-loader/cjs.js +++ b/packages/next/compiled/file-loader/cjs.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var i={};function __webpack_require__(t){if(i[t]){return i[t].exports}var r=i[t]={i:t,l:false,exports:{}};e[t].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(704)}return startup()}({134:function(e){e.exports=require("schema-utils")},622:function(e){e.exports=require("path")},647:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;t.raw=void 0;var r=_interopRequireDefault(i(622));var o=_interopRequireDefault(i(710));var a=_interopRequireDefault(i(134));var n=_interopRequireDefault(i(838));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function loader(e){const t=o.default.getOptions(this);(0,a.default)(n.default,t,{name:"File Loader",baseDataPath:"options"});const i=t.context||this.rootContext;const s=o.default.interpolateName(this,t.name||"[contenthash].[ext]",{context:i,content:e,regExp:t.regExp});let u=s;if(t.outputPath){if(typeof t.outputPath==="function"){u=t.outputPath(s,this.resourcePath,i)}else{u=r.default.posix.join(t.outputPath,s)}}let p=`__webpack_public_path__ + ${JSON.stringify(u)}`;if(t.publicPath){if(typeof t.publicPath==="function"){p=t.publicPath(s,this.resourcePath,i)}else{p=`${t.publicPath.endsWith("/")?t.publicPath:`${t.publicPath}/`}${s}`}p=JSON.stringify(p)}if(t.postTransformPublicPath){p=t.postTransformPublicPath(p)}if(typeof t.emitFile==="undefined"||t.emitFile){this.emitFile(u,e)}const c=typeof t.esModule!=="undefined"?t.esModule:true;return`${c?"export default":"module.exports ="} ${p};`}const s=true;t.raw=s},704:function(e,t,i){"use strict";const r=i(647);e.exports=r.default;e.exports.raw=r.raw},710:function(e){e.exports=require("loader-utils")},838:function(e){e.exports={additionalProperties:true,properties:{name:{description:"The filename template for the target file(s) (https://github.com/webpack-contrib/file-loader#name).",anyOf:[{type:"string"},{instanceof:"Function"}]},outputPath:{description:"A filesystem path where the target file(s) will be placed (https://github.com/webpack-contrib/file-loader#outputpath).",anyOf:[{type:"string"},{instanceof:"Function"}]},publicPath:{description:"A custom public path for the target file(s) (https://github.com/webpack-contrib/file-loader#publicpath).",anyOf:[{type:"string"},{instanceof:"Function"}]},postTransformPublicPath:{description:"A custom transformation function for post-processing the publicPath (https://github.com/webpack-contrib/file-loader#posttransformpublicpath).",instanceof:"Function"},context:{description:"A custom file context (https://github.com/webpack-contrib/file-loader#context).",type:"string"},emitFile:{description:"Enables/Disables emit files (https://github.com/webpack-contrib/file-loader#emitfile).",type:"boolean"},regExp:{description:"A Regular Expression to one or many parts of the target file path. The capture groups can be reused in the name property using [N] placeholder (https://github.com/webpack-contrib/file-loader#regexp).",anyOf:[{type:"string"},{instanceof:"RegExp"}]},esModule:{description:"By default, file-loader generates JS modules that use the ES modules syntax.",type:"boolean"}},type:"object"}}}); \ No newline at end of file +module.exports=function(e,t){"use strict";var i={};function __webpack_require__(t){if(i[t]){return i[t].exports}var r=i[t]={i:t,l:false,exports:{}};e[t].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(704)}return startup()}({225:function(e){e.exports=require("next/dist/compiled/schema-utils")},622:function(e){e.exports=require("path")},647:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;t.raw=void 0;var r=_interopRequireDefault(i(622));var o=_interopRequireDefault(i(710));var a=_interopRequireDefault(i(225));var n=_interopRequireDefault(i(838));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function loader(e){const t=o.default.getOptions(this);(0,a.default)(n.default,t,{name:"File Loader",baseDataPath:"options"});const i=t.context||this.rootContext;const s=o.default.interpolateName(this,t.name||"[contenthash].[ext]",{context:i,content:e,regExp:t.regExp});let u=s;if(t.outputPath){if(typeof t.outputPath==="function"){u=t.outputPath(s,this.resourcePath,i)}else{u=r.default.posix.join(t.outputPath,s)}}let p=`__webpack_public_path__ + ${JSON.stringify(u)}`;if(t.publicPath){if(typeof t.publicPath==="function"){p=t.publicPath(s,this.resourcePath,i)}else{p=`${t.publicPath.endsWith("/")?t.publicPath:`${t.publicPath}/`}${s}`}p=JSON.stringify(p)}if(t.postTransformPublicPath){p=t.postTransformPublicPath(p)}if(typeof t.emitFile==="undefined"||t.emitFile){this.emitFile(u,e)}const c=typeof t.esModule!=="undefined"?t.esModule:true;return`${c?"export default":"module.exports ="} ${p};`}const s=true;t.raw=s},704:function(e,t,i){"use strict";const r=i(647);e.exports=r.default;e.exports.raw=r.raw},710:function(e){e.exports=require("loader-utils")},838:function(e){e.exports={additionalProperties:true,properties:{name:{description:"The filename template for the target file(s) (https://github.com/webpack-contrib/file-loader#name).",anyOf:[{type:"string"},{instanceof:"Function"}]},outputPath:{description:"A filesystem path where the target file(s) will be placed (https://github.com/webpack-contrib/file-loader#outputpath).",anyOf:[{type:"string"},{instanceof:"Function"}]},publicPath:{description:"A custom public path for the target file(s) (https://github.com/webpack-contrib/file-loader#publicpath).",anyOf:[{type:"string"},{instanceof:"Function"}]},postTransformPublicPath:{description:"A custom transformation function for post-processing the publicPath (https://github.com/webpack-contrib/file-loader#posttransformpublicpath).",instanceof:"Function"},context:{description:"A custom file context (https://github.com/webpack-contrib/file-loader#context).",type:"string"},emitFile:{description:"Enables/Disables emit files (https://github.com/webpack-contrib/file-loader#emitfile).",type:"boolean"},regExp:{description:"A Regular Expression to one or many parts of the target file path. The capture groups can be reused in the name property using [N] placeholder (https://github.com/webpack-contrib/file-loader#regexp).",anyOf:[{type:"string"},{instanceof:"RegExp"}]},esModule:{description:"By default, file-loader generates JS modules that use the ES modules syntax.",type:"boolean"}},type:"object"}}}); \ No newline at end of file diff --git a/packages/next/compiled/find-cache-dir/LICENSE b/packages/next/compiled/find-cache-dir/LICENSE new file mode 100644 index 00000000000000..fa7ceba3eb4a96 --- /dev/null +++ b/packages/next/compiled/find-cache-dir/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/next/compiled/find-cache-dir/index.js b/packages/next/compiled/find-cache-dir/index.js new file mode 100644 index 00000000000000..035f975b9deed3 --- /dev/null +++ b/packages/next/compiled/find-cache-dir/index.js @@ -0,0 +1 @@ +module.exports=function(r,t){"use strict";var e={};function __webpack_require__(t){if(e[t]){return e[t].exports}var n=e[t]={i:t,l:false,exports:{}};r[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(145)}return startup()}({145:function(r,t,e){"use strict";const n=e(622);const o=e(747);const s=e(645);const c=e(474);const i=e(938);const{env:u,cwd:a}=process;const d=r=>{try{o.accessSync(r,o.constants.W_OK);return true}catch(r){return false}};function useDirectory(r,t){if(t.create){i.sync(r)}if(t.thunk){return(...t)=>n.join(r,...t)}return r}function getNodeModuleDirectory(r){const t=n.join(r,"node_modules");if(!d(t)&&(o.existsSync(t)||!d(n.join(r)))){return}return t}r.exports=((r={})=>{if(u.CACHE_DIR&&!["true","false","1","0"].includes(u.CACHE_DIR)){return useDirectory(n.join(u.CACHE_DIR,"find-cache-dir"),r)}let{cwd:t=a()}=r;if(r.files){t=s(t,r.files)}t=c.sync(t);if(!t){return}const e=getNodeModuleDirectory(t);if(!e){return undefined}return useDirectory(n.join(t,"node_modules",".cache",r.name),r)})},442:function(r){r.exports=require("next/dist/compiled/find-up")},474:function(r,t,e){"use strict";const n=e(622);const o=e(442);const s=async r=>{const t=await o("package.json",{cwd:r});return t&&n.dirname(t)};r.exports=s;r.exports.default=s;r.exports.sync=(r=>{const t=o.sync("package.json",{cwd:r});return t&&n.dirname(t)})},519:function(r){r.exports=require("next/dist/compiled/semver")},622:function(r){r.exports=require("path")},645:function(r,t,e){var n=e(622);r.exports=function(r,t){if(t){var e=t.map(function(t){return n.resolve(r,t)})}else{var e=r}var o=e.slice(1).reduce(function(r,t){if(!t.match(/^([A-Za-z]:)?\/|\\/)){throw new Error("relative path without a basedir")}var e=t.split(/\/+|\\+/);for(var n=0;r[n]===e[n]&&n1?o.join("/"):"/"}},669:function(r){r.exports=require("util")},747:function(r){r.exports=require("fs")},938:function(r,t,e){"use strict";const n=e(747);const o=e(622);const{promisify:s}=e(669);const c=e(519);const i=c.satisfies(process.version,">=10.12.0");const u=r=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(r.replace(o.parse(r).root,""));if(t){const t=new Error(`Path contains invalid characters: ${r}`);t.code="EINVAL";throw t}}};const a=r=>{const t={mode:511&~process.umask(),fs:n};return{...t,...r}};const d=r=>{const t=new Error(`operation not permitted, mkdir '${r}'`);t.code="EPERM";t.errno=-4048;t.path=r;t.syscall="mkdir";return t};const f=async(r,t)=>{u(r);t=a(t);const e=s(t.fs.mkdir);const c=s(t.fs.stat);if(i&&t.fs.mkdir===n.mkdir){const n=o.resolve(r);await e(n,{mode:t.mode,recursive:true});return n}const f=async r=>{try{await e(r,t.mode);return r}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(o.dirname(r)===r){throw d(r)}if(t.message.includes("null bytes")){throw t}await f(o.dirname(r));return f(r)}try{const e=await c(r);if(!e.isDirectory()){throw new Error("The path is not a directory")}}catch(r){throw t}return r}};return f(o.resolve(r))};r.exports=f;r.exports.sync=((r,t)=>{u(r);t=a(t);if(i&&t.fs.mkdirSync===n.mkdirSync){const e=o.resolve(r);n.mkdirSync(e,{mode:t.mode,recursive:true});return e}const e=r=>{try{t.fs.mkdirSync(r,t.mode)}catch(n){if(n.code==="EPERM"){throw n}if(n.code==="ENOENT"){if(o.dirname(r)===r){throw d(r)}if(n.message.includes("null bytes")){throw n}e(o.dirname(r));return e(r)}try{if(!t.fs.statSync(r).isDirectory()){throw new Error("The path is not a directory")}}catch(r){throw n}}return r};return e(o.resolve(r))})}}); \ No newline at end of file diff --git a/packages/next/compiled/find-cache-dir/package.json b/packages/next/compiled/find-cache-dir/package.json new file mode 100644 index 00000000000000..adb51bf07b9233 --- /dev/null +++ b/packages/next/compiled/find-cache-dir/package.json @@ -0,0 +1 @@ +{"name":"find-cache-dir","main":"index.js","license":"MIT"} diff --git a/packages/next/compiled/mkdirp/LICENSE b/packages/next/compiled/mkdirp/LICENSE new file mode 100644 index 00000000000000..432d1aeb01df66 --- /dev/null +++ b/packages/next/compiled/mkdirp/LICENSE @@ -0,0 +1,21 @@ +Copyright 2010 James Halliday (mail@substack.net) + +This project is free software released under the MIT/X11 license: + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/packages/next/compiled/mkdirp/index.js b/packages/next/compiled/mkdirp/index.js new file mode 100644 index 00000000000000..db454b8a45acc7 --- /dev/null +++ b/packages/next/compiled/mkdirp/index.js @@ -0,0 +1 @@ +module.exports=function(r,e){"use strict";var i={};function __webpack_require__(e){if(i[e]){return i[e].exports}var t=i[e]={i:e,l:false,exports:{}};r[e].call(t.exports,t,t.exports,__webpack_require__);t.l=true;return t.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(626)}return startup()}({622:function(r){r.exports=require("path")},626:function(r,e,i){var t=i(622);var n=i(747);var u=parseInt("0777",8);r.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(r,e,i,o){if(typeof e==="function"){i=e;e={}}else if(!e||typeof e!=="object"){e={mode:e}}var c=e.mode;var s=e.fs||n;if(c===undefined){c=u&~process.umask()}if(!o)o=null;var a=i||function(){};r=t.resolve(r);s.mkdir(r,c,function(i){if(!i){o=o||r;return a(null,o)}switch(i.code){case"ENOENT":mkdirP(t.dirname(r),e,function(i,t){if(i)a(i,t);else mkdirP(r,e,a,t)});break;default:s.stat(r,function(r,e){if(r||!e.isDirectory())a(i,o);else a(null,o)});break}})}mkdirP.sync=function sync(r,e,i){if(!e||typeof e!=="object"){e={mode:e}}var o=e.mode;var c=e.fs||n;if(o===undefined){o=u&~process.umask()}if(!i)i=null;r=t.resolve(r);try{c.mkdirSync(r,o);i=i||r}catch(n){switch(n.code){case"ENOENT":i=sync(t.dirname(r),e,i);sync(r,e,i);break;default:var s;try{s=c.statSync(r)}catch(r){throw n}if(!s.isDirectory())throw n;break}}return i}},747:function(r){r.exports=require("fs")}}); \ No newline at end of file diff --git a/packages/next/compiled/mkdirp/package.json b/packages/next/compiled/mkdirp/package.json new file mode 100644 index 00000000000000..c60bfb95121000 --- /dev/null +++ b/packages/next/compiled/mkdirp/package.json @@ -0,0 +1 @@ +{"name":"mkdirp","main":"index.js","author":"James Halliday (http://substack.net)","license":"MIT"} diff --git a/packages/next/compiled/neo-async/LICENSE b/packages/next/compiled/neo-async/LICENSE new file mode 100644 index 00000000000000..4ec13d1f4c9ca6 --- /dev/null +++ b/packages/next/compiled/neo-async/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-2018 Suguru Motegi +Based on Async.js, Copyright Caolan McMahon + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/next/compiled/neo-async/async.js b/packages/next/compiled/neo-async/async.js new file mode 100644 index 00000000000000..9ccb5b23394fb3 --- /dev/null +++ b/packages/next/compiled/neo-async/async.js @@ -0,0 +1 @@ +module.exports=function(n,e){"use strict";var f={};function __webpack_require__(e){if(f[e]){return f[e].exports}var r=f[e]={i:e,l:false,exports:{}};n[e].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(634)}return startup()}({634:function(n,e){(function(n,f){"use strict";true?f(e):undefined})(this,function(n){"use strict";var e=function noop(){};var f=function throwError(){throw new Error("Callback was already called.")};var r=5;var t=0;var u="object";var a="function";var l=Array.isArray;var o=Object.keys;var i=Array.prototype.push;var h=typeof Symbol===a&&Symbol.iterator;var y,s,v;createImmediate();var I=createEach(arrayEach,baseEach,symbolEach);var c=createMap(arrayEachIndex,baseEachIndex,symbolEachIndex,true);var p=createMap(arrayEachIndex,baseEachKey,symbolEachKey,false);var g=createFilter(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue,true);var d=createFilterSeries(true);var W=createFilterLimit(true);var m=createFilter(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue,false);var C=createFilterSeries(false);var j=createFilterLimit(false);var b=createDetect(arrayEachValue,baseEachValue,symbolEachValue,true);var K=createDetectSeries(true);var L=createDetectLimit(true);var w=createEvery(arrayEachValue,baseEachValue,symbolEachValue);var A=createEverySeries();var _=createEveryLimit();var O=createPick(arrayEachIndexValue,baseEachKeyValue,symbolEachKeyValue,true);var S=createPickSeries(true);var V=createPickLimit(true);var B=createPick(arrayEachIndexValue,baseEachKeyValue,symbolEachKeyValue,false);var N=createPickSeries(false);var D=createPickLimit(false);var E=createTransform(arrayEachResult,baseEachResult,symbolEachResult);var F=createSortBy(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue);var R=createConcat(arrayEachIndex,baseEachIndex,symbolEachIndex);var q=createGroupBy(arrayEachValue,baseEachValue,symbolEachValue);var Q=createParallel(arrayEachFunc,baseEachFunc);var P=createApplyEach(c);var G=createApplyEach(mapSeries);var M=createLogger("log");var U=createLogger("dir");var $={VERSION:"2.6.1",each:I,eachSeries:eachSeries,eachLimit:eachLimit,forEach:I,forEachSeries:eachSeries,forEachLimit:eachLimit,eachOf:I,eachOfSeries:eachSeries,eachOfLimit:eachLimit,forEachOf:I,forEachOfSeries:eachSeries,forEachOfLimit:eachLimit,map:c,mapSeries:mapSeries,mapLimit:mapLimit,mapValues:p,mapValuesSeries:mapValuesSeries,mapValuesLimit:mapValuesLimit,filter:g,filterSeries:d,filterLimit:W,select:g,selectSeries:d,selectLimit:W,reject:m,rejectSeries:C,rejectLimit:j,detect:b,detectSeries:K,detectLimit:L,find:b,findSeries:K,findLimit:L,pick:O,pickSeries:S,pickLimit:V,omit:B,omitSeries:N,omitLimit:D,reduce:reduce,inject:reduce,foldl:reduce,reduceRight:reduceRight,foldr:reduceRight,transform:E,transformSeries:transformSeries,transformLimit:transformLimit,sortBy:F,sortBySeries:sortBySeries,sortByLimit:sortByLimit,some:some,someSeries:someSeries,someLimit:someLimit,any:some,anySeries:someSeries,anyLimit:someLimit,every:w,everySeries:A,everyLimit:_,all:w,allSeries:A,allLimit:_,concat:R,concatSeries:concatSeries,concatLimit:concatLimit,groupBy:q,groupBySeries:groupBySeries,groupByLimit:groupByLimit,parallel:Q,series:series,parallelLimit:parallelLimit,tryEach:tryEach,waterfall:waterfall,angelFall:angelFall,angelfall:angelFall,whilst:whilst,doWhilst:doWhilst,until:until,doUntil:doUntil,during:during,doDuring:doDuring,forever:forever,compose:compose,seq:seq,applyEach:P,applyEachSeries:G,queue:queue,priorityQueue:priorityQueue,cargo:cargo,auto:auto,autoInject:autoInject,retry:retry,retryable:retryable,iterator:iterator,times:times,timesSeries:timesSeries,timesLimit:timesLimit,race:race,apply:apply,nextTick:s,setImmediate:v,memoize:memoize,unmemoize:unmemoize,ensureAsync:ensureAsync,constant:constant,asyncify:asyncify,wrapSync:asyncify,log:M,dir:U,reflect:reflect,reflectAll:reflectAll,timeout:timeout,createLogger:createLogger,safe:safe,fast:fast};n["default"]=$;baseEachSync($,function(e,f){n[f]=e},o($));function createImmediate(n){var e=function delay(n){var e=slice(arguments,1);setTimeout(function(){n.apply(null,e)})};v=typeof setImmediate===a?setImmediate:e;if(typeof process===u&&typeof process.nextTick===a){y=/^v0.10/.test(process.version)?v:process.nextTick;s=/^v0/.test(process.version)?v:process.nextTick}else{s=y=v}if(n===false){y=function(n){n()}}}function createArray(n){var e=-1;var f=n.length;var r=Array(f);while(++e=e&&n[a]>=r){a--}if(u>a){break}swap(n,t,u++,a--)}return u}function swap(n,e,f,r){var t=n[f];n[f]=n[r];n[r]=t;var u=e[f];e[f]=e[r];e[r]=u}function quickSort(n,e,f,r){if(e===f){return}var t=e;while(++t<=f&&n[e]===n[t]){var u=t-1;if(r[u]>r[t]){var a=r[u];r[u]=r[t];r[t]=a}}if(t>f){return}var l=n[e]>n[t]?e:t;t=partition(n,e,f,n[l],r);quickSort(n,e,t-1,r);quickSort(n,t,f,r)}function makeConcatResult(n){var f=[];arrayEachSync(n,function(n){if(n===e){return}if(l(n)){i.apply(f,n)}else{f.push(n)}});return f}function arrayEach(n,e,f){var r=-1;var t=n.length;if(e.length===3){while(++rs?s:t,W);function arrayIterator(){v=j++;if(vi?i:r,g);function arrayIterator(){if(Wi?i:r,d);function arrayIterator(){s=m++;if(si?i:r,g);function arrayIterator(){s=m++;if(ss?s:t,W);function arrayIterator(){v=C++;if(vs?s:t,W);function arrayIterator(){v=j++;if(vi?i:f,g);function arrayIterator(){s=m++;if(si?i:r,m);function arrayIterator(){if(j=2){i.apply(d,slice(arguments,1))}if(n){t(n,d)}else if(++W===a){p=f;t(null,d)}else if(g){y(p)}else{g=true;p()}g=false}}function concatLimit(n,r,t,a){a=a||e;var i,s,v,I,c,p;var g=false;var d=0;var W=0;if(l(n)){i=n.length;c=t.length===3?arrayIteratorWithIndex:arrayIterator}else if(!n){}else if(h&&n[h]){i=Infinity;p=[];v=n[h]();c=t.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof n===u){var m=o(n);i=m.length;c=t.length===3?objectIteratorWithKey:objectIterator}if(!i||isNaN(r)||r<1){return a(null,[])}p=p||Array(i);timesSync(r>i?i:r,c);function arrayIterator(){if(di?i:r,d);function arrayIterator(){if(ma?a:r,I);function arrayIterator(){i=p++;if(i1){var t=slice(arguments,1);return r.apply(this,t)}else{return r}}}function DLL(){this.head=null;this.tail=null;this.length=0}DLL.prototype._removeLink=function(n){var e=n.prev;var f=n.next;if(e){e.next=f}else{this.head=f}if(f){f.prev=e}else{this.tail=e}n.prev=null;n.next=null;this.length--;return n};DLL.prototype.empty=DLL;DLL.prototype._setInitial=function(n){this.length=1;this.head=this.tail=n};DLL.prototype.insertBefore=function(n,e){e.prev=n.prev;e.next=n;if(n.prev){n.prev.next=e}else{this.head=e}n.prev=e;this.length++};DLL.prototype.unshift=function(n){if(this.head){this.insertBefore(this.head,n)}else{this._setInitial(n)}};DLL.prototype.push=function(n){var e=this.tail;if(e){n.prev=e;n.next=e.next;this.tail=n;e.next=n;this.length++}else{this._setInitial(n)}};DLL.prototype.shift=function(){return this.head&&this._removeLink(this.head)};DLL.prototype.splice=function(n){var e;var f=[];while(n--&&(e=this.shift())){f.push(e)}return f};DLL.prototype.remove=function(n){var e=this.head;while(e){if(n(e)){this._removeLink(e)}e=e.next}return this};function baseQueue(n,r,t,u){if(t===undefined){t=1}else if(isNaN(t)||t<1){throw new Error("Concurrency must not be zero")}var a=0;var o=[];var h,s;var v={_tasks:new DLL,concurrency:t,payload:u,saturated:e,unsaturated:e,buffer:t/4,empty:e,drain:e,error:e,started:false,paused:false,push:push,kill:kill,unshift:unshift,remove:remove,process:n?runQueue:runCargo,length:getLength,running:running,workersList:getWorkersList,idle:idle,pause:pause,resume:resume,_worker:r};return v;function push(n,e){_insert(n,e)}function unshift(n,e){_insert(n,e,true)}function _exec(n){var e={data:n,callback:h};if(s){v._tasks.unshift(e)}else{v._tasks.push(e)}y(v.process)}function _insert(n,f,r){if(f==null){f=e}else if(typeof f!=="function"){throw new Error("task callback must be a function")}v.started=true;var t=l(n)?n:[n];if(n===undefined||!t.length){if(v.idle()){y(v.drain)}return}s=r;h=f;arrayEachSync(t,_exec)}function kill(){v.drain=e;v._tasks.empty()}function _next(n,e){var r=false;return function done(t,u){if(r){f()}r=true;a--;var l;var i=-1;var h=o.length;var y=-1;var s=e.length;var v=arguments.length>2;var I=v&&createArray(arguments);while(++y=i.priority){i=i.next}while(o--){var h={data:u[o],priority:f,callback:t};if(i){r._tasks.insertBefore(i,h)}else{r._tasks.push(h)}y(r.process)}}}function cargo(n,e){return baseQueue(false,n,1,e)}function auto(n,r,t){if(typeof r===a){t=r;r=null}var u=o(n);var i=u.length;var h={};if(i===0){return t(null,h)}var y=0;var s=[];var v=Object.create(null);t=onlyOnce(t||e);r=r||i;baseEachSync(n,iterator,u);proceedQueue();function iterator(n,r){var a,o;if(!l(n)){a=n;o=0;s.push([a,o,done]);return}var I=n.length-1;a=n[I];o=I;if(I===0){s.push([a,o,done]);return}var c=-1;while(++c=n){t(null,u);t=f}else if(a){y(iterate)}else{a=true;iterate()}a=false}}function timesLimit(n,r,t,u){u=u||e;n=+n;if(isNaN(n)||n<1||isNaN(r)||r<1){return u(null,[])}var a=Array(n);var l=false;var o=0;var i=0;timesSync(r>n?n:r,iterate);function iterate(){var e=o++;if(e=n){u(null,a);u=f}else if(l){y(iterate)}else{l=true;iterate()}l=false}}}function race(n,f){f=once(f||e);var r,t;var a=-1;if(l(n)){r=n.length;while(++a2){f=slice(arguments,1)}e(null,{value:f})}}}function reflectAll(n){var e,f;if(l(n)){e=Array(n.length);arrayEachSync(n,iterate)}else if(n&&typeof n===u){f=o(n);e={};baseEachSync(n,iterate,f)}return e;function iterate(n,f){e[f]=reflect(n)}}function createLogger(n){return function(n){var e=slice(arguments,1);e.push(done);n.apply(null,e)};function done(e){if(typeof console===u){if(e){if(console.error){console.error(e)}return}if(console[n]){var f=slice(arguments,1);arrayEachSync(f,function(e){console[n](e)})}}}}function safe(){createImmediate();return n}function fast(){createImmediate(false);return n}})}}); \ No newline at end of file diff --git a/packages/next/compiled/neo-async/package.json b/packages/next/compiled/neo-async/package.json new file mode 100644 index 00000000000000..cba4c2e341471f --- /dev/null +++ b/packages/next/compiled/neo-async/package.json @@ -0,0 +1 @@ +{"name":"neo-async","main":"async.js","license":"MIT"} diff --git a/packages/next/compiled/postcss-loader/cjs.js b/packages/next/compiled/postcss-loader/cjs.js index afc25930cb0201..74e81bfbd7008c 100644 --- a/packages/next/compiled/postcss-loader/cjs.js +++ b/packages/next/compiled/postcss-loader/cjs.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var u={};function __webpack_require__(t){if(u[t]){return u[t].exports}var n=u[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(986)}t(__webpack_require__);return startup()}({0:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t.default=_default;var n=_interopRequireWildcard(u(592));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var u={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var s=n?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(u,r,s)}else{u[r]=e[r]}}}u.default=e;if(t){t.set(e,u)}return u}let r=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const s=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,u){const n=Object.assign({column:0,line:-1},e.start);const r=Object.assign({},n,{},e.end);const{linesAbove:s=2,linesBelow:i=3}=u||{};const o=n.line;const a=n.column;const c=r.line;const l=r.column;let f=Math.max(o-(s+1),0);let h=Math.min(t.length,c+i);if(o===-1){f=0}if(c===-1){h=t.length}const D=c-o;const p={};if(D){for(let e=0;e<=D;e++){const u=e+o;if(!a){p[u]=true}else if(e===0){const e=t[u-1].length;p[u]=[a,e-a+1]}else if(e===D){p[u]=[0,l]}else{const n=t[u-e].length;p[u]=[0,n]}}}else{if(a===l){if(a){p[o]=[a,0]}else{p[o]=true}}else{p[o]=[a,l-a]}}return{start:f,end:h,markerLines:p}}function codeFrameColumns(e,t,u={}){const r=(u.highlightCode||u.forceColor)&&(0,n.shouldHighlight)(u);const i=(0,n.getChalk)(u);const o=getDefs(i);const a=(e,t)=>{return r?e(t):t};const c=e.split(s);const{start:l,end:f,markerLines:h}=getMarkerLines(t,c,u);const D=t.start&&typeof t.start.column==="number";const p=String(f).length;const A=r?(0,n.default)(e,u):e;let d=A.split(s).slice(l,f).map((e,t)=>{const n=l+1+t;const r=` ${n}`.slice(-p);const s=` ${r} | `;const i=h[n];const c=!h[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," ");const r=i[1]||1;t=["\n ",a(o.gutter,s.replace(/\d/g," ")),n,a(o.marker,"^").repeat(r)].join("");if(c&&u.message){t+=" "+a(o.message,u.message)}}return[a(o.marker,">"),a(o.gutter,s),e,t].join("")}else{return` ${a(o.gutter,s)}${e}`}}).join("\n");if(u.message&&!D){d=`${" ".repeat(p+1)}${u.message}\n${d}`}if(r){return i.reset(d)}else{return d}}function _default(e,t,u,n={}){if(!r){r=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}u=Math.max(u,0);const s={start:{column:u,line:t}};return codeFrameColumns(e,s,n)}},7:function(e,t,u){"use strict";let n=u(233);let r=u(798);let{isClean:s}=u(448);let i=u(880);function cloneNode(e,t){let u=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)){continue}if(n==="proxyCache")continue;let r=e[n];let s=typeof r;if(n==="parent"&&s==="object"){if(t)u[n]=t}else if(n==="source"){u[n]=r}else if(Array.isArray(r)){u[n]=r.map(e=>cloneNode(e,u))}else{if(s==="object"&&r!==null)r=cloneNode(r);u[n]=r}}return u}class Node{constructor(e={}){this.raws={};this[s]=false;for(let t in e){if(t==="nodes"){this.nodes=[];for(let u of e[t]){if(typeof u.clone==="function"){this.append(u.clone())}else{this.append(u)}}}else{this[t]=e[t]}}}error(e,t={}){if(this.source){let u=this.positionBy(t);return this.source.input.error(e,u.line,u.column,t)}return new n(e)}warn(e,t,u){let n={node:this};for(let e in u)n[e]=u[e];return e.warn(t,n)}remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this}toString(e=i){if(e.stringify)e=e.stringify;let t="";e(this,e=>{t+=e});return t}clone(e={}){let t=cloneNode(this);for(let u in e){t[u]=e[u]}return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}replaceWith(...e){if(this.parent){let t=this;let u=false;for(let n of e){if(n===this){u=true}else if(u){this.parent.insertAfter(t,n);t=n}else{this.parent.insertBefore(t,n)}}if(!u){this.remove()}}return this}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){this.parent.insertBefore(this,e);return this}after(e){this.parent.insertAfter(this,e);return this}root(){let e=this;while(e.parent)e=e.parent;return e}raw(e,t){let u=new r;return u.raw(this,e,t)}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}toJSON(){let e={};for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t)){continue}if(t==="parent")continue;let u=this[t];if(Array.isArray(u)){e[t]=u.map(e=>{if(typeof e==="object"&&e.toJSON){return e.toJSON()}else{return e}})}else if(typeof u==="object"&&u.toJSON){e[t]=u.toJSON()}else{e[t]=u}}return e}positionInside(e){let t=this.toString();let u=this.source.start.column;let n=this.source.start.line;for(let r=0;re.root().toProxy()}else{return e[t]}}}}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[s]){this[s]=false;let e=this;while(e=e.parent){e[s]=false}}}get proxyOf(){return this}}e.exports=Node},24:function(e,t,u){"use strict";var n=u(669);var r=u(28);var s=function errorEx(e,t){if(!e||e.constructor!==String){t=e||{};e=Error.name}var u=function ErrorEXError(n){if(!this){return new ErrorEXError(n)}n=n instanceof Error?n.message:n||this.message;Error.call(this,n);Error.captureStackTrace(this,u);this.name=e;Object.defineProperty(this,"message",{configurable:true,enumerable:false,get:function(){var e=n.split(/\r?\n/g);for(var u in t){if(!t.hasOwnProperty(u)){continue}var s=t[u];if("message"in s){e=s.message(this[u],e)||e;if(!r(e)){e=[e]}}}return e.join("\n")},set:function(e){n=e}});var s=null;var i=Object.getOwnPropertyDescriptor(this,"stack");var o=i.get;var a=i.value;delete i.value;delete i.writable;i.set=function(e){s=e};i.get=function(){var e=(s||(o?o.call(this):a)).split(/\r?\n+/g);if(!s){e[0]=this.name+": "+this.message}var u=1;for(var n in t){if(!t.hasOwnProperty(n)){continue}var r=t[n];if("line"in r){var i=r.line(this[n]);if(i){e.splice(u++,0," "+i)}}if("stack"in r){r.stack(this[n],e)}}return e.join("\n")};Object.defineProperty(this,"stack",i)};if(Object.setPrototypeOf){Object.setPrototypeOf(u.prototype,Error.prototype);Object.setPrototypeOf(u,Error)}else{n.inherits(u,Error)}return u};s.append=function(e,t){return{message:function(u,n){u=u||t;if(u){n[0]+=" "+e.replace("%s",u.toString())}return n}}};s.line=function(e,t){return{line:function(u){u=u||t;if(u){return e.replace("%s",u.toString())}return null}}};e.exports=s},28:function(e){"use strict";e.exports=function isArrayish(e){if(!e){return false}return e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function}},32:function(e,t,u){"use strict";const n=u(24);const r=u(900);const{default:s}=u(254);const{codeFrameColumns:i}=u(0);const o=n("JSONError",{fileName:n.append("in %s"),codeFrame:n.append("\n\n%s\n")});e.exports=((e,t,u)=>{if(typeof t==="string"){u=t;t=null}try{try{return JSON.parse(e,t)}catch(u){r(e,t);throw u}}catch(t){t.message=t.message.replace(/\n/g,"");const n=t.message.match(/in JSON at position (\d+) while parsing near/);const r=new o(t);if(u){r.fileName=u}if(n&&n.length>0){const t=new s(e);const u=Number(n[1]);const o=t.locationForIndex(u);const a=i(e,{start:{line:o.line+1,column:o.column+1}},{highlightCode:true});r.codeFrame=a}throw r}})},38:function(e){"use strict";const t=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=((e,t)=>t);const t=(new Error).stack.slice(1);Error.prepareStackTrace=e;return t};e.exports=t;e.exports.default=t},40:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExplorerSync=void 0;var n=_interopRequireDefault(u(277));var r=u(594);var s=u(780);var i=u(270);var o=u(898);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ExplorerSync extends r.ExplorerBase{constructor(e){super(e)}searchSync(e=process.cwd()){const t=(0,o.getDirectorySync)(e);const u=this.searchFromDirectorySync(t);return u}searchFromDirectorySync(e){const t=n.default.resolve(process.cwd(),e);const u=()=>{const e=this.searchDirectorySync(t);const u=this.nextDirectoryToSearch(t,e);if(u){return this.searchFromDirectorySync(u)}const n=this.config.transform(e);return n};if(this.searchCache){return(0,i.cacheWrapperSync)(this.searchCache,t,u)}return u()}searchDirectorySync(e){for(const t of this.config.searchPlaces){const u=this.loadSearchPlaceSync(e,t);if(this.shouldSearchStopWithResult(u)===true){return u}}return null}loadSearchPlaceSync(e,t){const u=n.default.join(e,t);const r=(0,s.readFileSync)(u);const i=this.createCosmiconfigResultSync(u,r);return i}loadFileContentSync(e,t){if(t===null){return null}if(t.trim()===""){return undefined}const u=this.getLoaderEntryForFile(e);const n=u(e,t);return n}createCosmiconfigResultSync(e,t){const u=this.loadFileContentSync(e,t);const n=this.loadedContentToCosmiconfigResult(e,u);return n}loadSync(e){this.validateFilePath(e);const t=n.default.resolve(process.cwd(),e);const u=()=>{const e=(0,s.readFileSync)(t,{throwNotFound:true});const u=this.createCosmiconfigResultSync(t,e);const n=this.config.transform(u);return n};if(this.loadCache){return(0,i.cacheWrapperSync)(this.loadCache,t,u)}return u()}}t.ExplorerSync=ExplorerSync},52:function(e,t,u){"use strict";let{dirname:n,resolve:r,relative:s,sep:i}=u(277);let{pathToFileURL:o}=u(835);let a=u(241);class MapGenerator{constructor(e,t,u){this.stringify=e;this.mapOpts=u.map||{};this.root=t;this.opts=u}isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}return this.previous().length>0}previous(){if(!this.previousMaps){this.previousMaps=[];this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t)){this.previousMaps.push(t)}}})}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}let e=this.mapOpts.annotation;if(typeof e!=="undefined"&&e!==true){return false}if(this.previous().length){return this.previous().some(e=>e.inline)}return true}isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(e=>e.withContent())}return true}clearAnnotation(){if(this.mapOpts.annotation===false)return;let e;for(let t=this.root.nodes.length-1;t>=0;t--){e=this.root.nodes[t];if(e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0){this.root.removeChild(t)}}}setSourcesContent(){let e={};this.root.walk(t=>{if(t.source){let u=t.source.input.from;if(u&&!e[u]){e[u]=true;this.map.setSourceContent(this.toUrl(this.path(u)),t.source.input.css)}}})}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file));let u=e.root||n(e.file);let r;if(this.mapOpts.sourcesContent===false){r=new a.SourceMapConsumer(e.text);if(r.sourcesContent){r.sourcesContent=r.sourcesContent.map(()=>null)}}else{r=e.consumer()}this.map.applySourceMap(r,t,this.toUrl(this.path(u)))}}isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some(e=>e.annotation)}return true}toBase64(e){if(Buffer){return Buffer.from(e).toString("base64")}else{return window.btoa(unescape(encodeURIComponent(e)))}}addAnnotation(){let e;if(this.isInline()){e="data:application/json;base64,"+this.toBase64(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){e=this.mapOpts.annotation}else if(typeof this.mapOpts.annotation==="function"){e=this.mapOpts.annotation(this.opts.to,this.root)}else{e=this.outputFile()+".map"}let t="\n";if(this.css.includes("\r\n"))t="\r\n";this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){if(this.opts.to){return this.path(this.opts.to)}if(this.opts.from){return this.path(this.opts.from)}return"to.css"}generateMap(){this.generateString();if(this.isSourcesContent())this.setSourcesContent();if(this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}return[this.css,this.map]}path(e){if(e.indexOf("<")===0)return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?n(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){t=n(r(t,this.mapOpts.annotation))}e=s(t,e);return e}toUrl(e){if(i==="\\"){e=e.replace(/\\/g,"/")}return encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from){return this.toUrl(this.mapOpts.from)}else if(this.mapOpts.absolute){return o(e.source.input.from).toString()}else{return this.toUrl(this.path(e.source.input.from))}}generateString(){this.css="";this.map=new a.SourceMapGenerator({file:this.outputFile()});let e=1;let t=1;let u,n;this.stringify(this.root,(r,s,i)=>{this.css+=r;if(s&&i!=="end"){if(s.source&&s.source.start){this.map.addMapping({source:this.sourcePath(s),generated:{line:e,column:t-1},original:{line:s.source.start.line,column:s.source.start.column-1}})}else{this.map.addMapping({source:"",original:{line:1,column:0},generated:{line:e,column:t-1}})}}u=r.match(/\n/g);if(u){e+=u.length;n=r.lastIndexOf("\n");t=r.length-n}else{t+=r.length}if(s&&i!=="start"){let u=s.parent||{raws:{}};if(s.type!=="decl"||s!==u.last||u.raws.semicolon){if(s.source&&s.source.end){this.map.addMapping({source:this.sourcePath(s),generated:{line:e,column:t-2},original:{line:s.source.end.line,column:s.source.end.column-1}})}else{this.map.addMapping({source:"",original:{line:1,column:0},generated:{line:e,column:t-1}})}}}})}generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}let e="";this.stringify(this.root,t=>{e+=t});return[e]}}e.exports=MapGenerator},54:function(e,t,u){"use strict";let{fileURLToPath:n,pathToFileURL:r}=u(835);let{resolve:s,isAbsolute:i}=u(277);let{nanoid:o}=u(148);let a=u(548);let c=u(958);let l=u(233);let f=u(560);class Input{constructor(e,t={}){if(e===null||typeof e==="undefined"||typeof e==="object"&&!e.toString){throw new Error(`PostCSS received ${e} instead of CSS string`)}this.css=e.toString();if(this.css[0]==="\ufeff"||this.css[0]==="￾"){this.hasBOM=true;this.css=this.css.slice(1)}else{this.hasBOM=false}if(t.from){if(/^\w+:\/\//.test(t.from)||i(t.from)){this.file=t.from}else{this.file=s(t.from)}}let u=new f(this.css,t);if(u.text){this.map=u;let e=u.consumer().file;if(!this.file&&e)this.file=this.mapResolve(e)}if(!this.file){this.id=""}if(this.map)this.map.file=this.from}fromOffset(e){let t=a(this.css);this.fromOffset=(e=>t.fromIndex(e));return this.fromOffset(e)}error(e,t,u,n={}){let s;if(!u){let e=this.fromOffset(t);t=e.line;u=e.col}let i=this.origin(t,u);if(i){s=new l(e,i.line,i.column,i.source,i.file,n.plugin)}else{s=new l(e,t,u,this.css,this.file,n.plugin)}s.input={line:t,column:u,source:this.css};if(this.file){s.input.url=r(this.file).toString();s.input.file=this.file}return s}origin(e,t){if(!this.map)return false;let u=this.map.consumer();let s=u.originalPositionFor({line:e,column:t});if(!s.source)return false;let o;if(i(s.source)){o=r(s.source)}else{o=new URL(s.source,this.map.consumer().sourceRoot||r(this.map.mapFile))}let a={url:o.toString(),line:s.line,column:s.column};if(o.protocol==="file:"){a.file=n(o)}let c=u.sourceContentFor(s.source);if(c)a.source=c;return a}mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return s(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}}e.exports=Input;if(c&&c.registerInput){c.registerInput(Input)}},63:function(e,t,u){"use strict";var n=u(513);class BlankLine extends n.Node{constructor(){super(n.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;this.range=new n.Range(t,t+1);return t+1}}class CollectionItem extends n.Node{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:u,src:r}=e;let{atLineStart:s,lineStart:i}=e;if(!s&&this.type===n.Type.SEQ_ITEM)this.error=new n.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const o=s?t-i:e.indent;let a=n.Node.endOfWhiteSpace(r,t+1);let c=r[a];const l=c==="#";const f=[];let h=null;while(c==="\n"||c==="#"){if(c==="#"){const e=n.Node.endOfLine(r,a+1);f.push(new n.Range(a,e));a=e}else{s=true;i=a+1;const e=n.Node.endOfWhiteSpace(r,i);if(r[e]==="\n"&&f.length===0){h=new BlankLine;i=h.parse({src:r},i)}a=n.Node.endOfIndent(r,i)}c=r[a]}if(n.Node.nextNodeIsIndented(c,a-(i+o),this.type!==n.Type.SEQ_ITEM)){this.node=u({atLineStart:s,inCollection:false,indent:o,lineStart:i,parent:this},a)}else if(c&&i>t+1){a=i-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(f.length)Array.prototype.push.apply(this.props,f);a=this.node.range.end}else{if(l){const e=f[0];this.props.push(e);a=e.end}else{a=n.Node.endOfLine(r,t+1)}}const D=this.node?this.node.valueRange.end:a;this.valueRange=new n.Range(t,D);return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:u,value:r}=this;if(r!=null)return r;const s=t?e.slice(u.start,t.range.start)+String(t):e.slice(u.start,u.end);return n.Node.addStringTerminator(e,u.end,s)}}class Comment extends n.Node{constructor(){super(n.Type.COMMENT)}parse(e,t){this.context=e;const u=this.parseComment(t);this.range=new n.Range(t,u);return u}}function grabCollectionEndComments(e){let t=e;while(t instanceof CollectionItem)t=t.node;if(!(t instanceof Collection))return null;const u=t.items.length;let r=-1;for(let e=u-1;e>=0;--e){const u=t.items[e];if(u.type===n.Type.COMMENT){const{indent:t,lineStart:n}=u.context;if(t>0&&u.range.start>=n+t)break;r=e}else if(u.type===n.Type.BLANK_LINE)r=e;else break}if(r===-1)return null;const s=t.items.splice(r,u-r);const i=s[0].range.start;while(true){t.range.end=i;if(t.valueRange&&t.valueRange.end>i)t.valueRange.end=i;if(t===e)break;t=t.context.parent}return s}class Collection extends n.Node{static nextContentHasIndent(e,t,u){const r=n.Node.endOfLine(e,t)+1;t=n.Node.endOfWhiteSpace(e,r);const s=e[t];if(!s)return false;if(t>=r+u)return true;if(s!=="#"&&s!=="\n")return false;return Collection.nextContentHasIndent(e,t,u)}constructor(e){super(e.type===n.Type.SEQ_ITEM?n.Type.SEQ:n.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:u,src:r}=e;let s=n.Node.startOfLine(r,t);const i=this.items[0];i.context.parent=this;this.valueRange=n.Range.copy(i.valueRange);const o=i.range.start-i.context.lineStart;let a=t;a=n.Node.normalizeOffset(r,a);let c=r[a];let l=n.Node.endOfWhiteSpace(r,s)===a;let f=false;while(c){while(c==="\n"||c==="#"){if(l&&c==="\n"&&!f){const e=new BlankLine;a=e.parse({src:r},a);this.valueRange.end=a;if(a>=r.length){c=null;break}this.items.push(e);a-=1}else if(c==="#"){if(a=r.length){c=null;break}}s=a+1;a=n.Node.endOfIndent(r,s);if(n.Node.atBlank(r,a)){const e=n.Node.endOfWhiteSpace(r,a);const t=r[e];if(!t||t==="\n"||t==="#"){a=e}}c=r[a];l=true}if(!c){break}if(a!==s+o&&(l||c!==":")){if(at)a=s;break}else if(!this.error){const e="All collection items must start at the same column";this.error=new n.YAMLSyntaxError(this,e)}}if(i.type===n.Type.SEQ_ITEM){if(c!=="-"){if(s>t)a=s;break}}else if(c==="-"&&!this.error){const e=r[a+1];if(!e||e==="\n"||e==="\t"||e===" "){const e="A collection cannot be both a mapping and a sequence";this.error=new n.YAMLSyntaxError(this,e)}}const e=u({atLineStart:l,inCollection:true,indent:o,lineStart:s,parent:this},a);if(!e)return a;this.items.push(e);this.valueRange.end=e.valueRange.end;a=n.Node.normalizeOffset(r,e.range.end);c=r[a];l=false;f=e.includesTrailingLines;if(c){let e=a-1;let t=r[e];while(t===" "||t==="\t")t=r[--e];if(t==="\n"){s=e+1;l=true}}const h=grabCollectionEndComments(e);if(h)Array.prototype.push.apply(this.items,h)}return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(u=>{t=u.setOrigRanges(e,t)});return t}toString(){const{context:{src:e},items:t,range:u,value:r}=this;if(r!=null)return r;let s=e.slice(u.start,t[0].range.start)+String(t[0]);for(let e=1;e0){this.contents=this.directives;this.directives=[]}return s}}if(t[s]){this.directivesEndMarker=new n.Range(s,s+3);return s+3}if(r){this.error=new n.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return s}parseContents(e){const{parseNode:t,src:u}=this.context;if(!this.contents)this.contents=[];let r=e;while(u[r-1]==="-")r-=1;let s=n.Node.endOfWhiteSpace(u,e);let i=r===e;this.valueRange=new n.Range(s);while(!n.Node.atDocumentBoundary(u,s,n.Char.DOCUMENT_END)){switch(u[s]){case"\n":if(i){const e=new BlankLine;s=e.parse({src:u},s);if(s{t=u.setOrigRanges(e,t)});if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach(u=>{t=u.setOrigRanges(e,t)});if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:u}=this;if(u!=null)return u;let r=t.join("");if(e.length>0){if(t.length>0||e[0].type===n.Type.COMMENT)r+="---\n";r+=e.join("")}if(r[r.length-1]!=="\n")r+="\n";return r}}class Alias extends n.Node{parse(e,t){this.context=e;const{src:u}=e;let r=n.Node.endOfIdentifier(u,t+1);this.valueRange=new n.Range(t+1,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}const r={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};class BlockValue extends n.Node{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=r.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===r.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:u,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null;let o=s[t-1];while(o==="\n"||o==="\t"||o===" "){t-=1;if(t<=e){if(this.chomping===r.KEEP)break;else return""}if(o==="\n")i=t;o=s[t-1]}let a=t+1;if(i){if(this.chomping===r.KEEP){a=i;t=this.valueRange.end}else{t=i}}const c=u+this.blockIndent;const l=this.type===n.Type.BLOCK_FOLDED;let f=true;let h="";let D="";let p=false;for(let u=e;ua){a=c}}else if(r&&r!=="\n"&&c{if(u instanceof n.Node){t=u.setOrigRanges(e,t)}else if(e.length===0){u.origOffset=u.offset}else{let n=t;while(nu.offset)break;else++n}u.origOffset=u.offset+n;t=n}});return t}toString(){const{context:{src:e},items:t,range:u,value:r}=this;if(r!=null)return r;const s=t.filter(e=>e instanceof n.Node);let i="";let o=u.start;s.forEach(t=>{const u=e.slice(o,t.range.start);o=t.range.end;i+=u+String(t);if(i[i.length-1]==="\n"&&e[o-1]!=="\n"&&e[o]==="\n"){o+=1}});i+=e.slice(o,u.end);return n.Node.addStringTerminator(e,u.end,i)}}class QuoteDouble extends n.Node{static endOfQuote(e,t){let u=e[t];while(u&&u!=='"'){t+=u==="\\"?2:1;u=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:u}=this.valueRange;const{indent:r,src:s}=this.context;if(s[u-1]!=='"')e.push(new n.YAMLSyntaxError(this,'Missing closing "quote'));let i="";for(let o=t+1;oe?s.slice(e,o+1):t}else{i+=t}}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,u){const{src:r}=this.context;const s=r.substr(e,t);const i=s.length===t&&/^[0-9a-fA-F]+$/.test(s);const o=i?parseInt(s,16):NaN;if(isNaN(o)){u.push(new n.YAMLSyntaxError(this,`Invalid escape sequence ${r.substr(e-2,t+2)}`));return r.substr(e-2,t+2)}return String.fromCodePoint(o)}parse(e,t){this.context=e;const{src:u}=e;let r=QuoteDouble.endOfQuote(u,t+1);this.valueRange=new n.Range(t,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}class QuoteSingle extends n.Node{static endOfQuote(e,t){let u=e[t];while(u){if(u==="'"){if(e[t+1]!=="'")break;u=e[t+=2]}else{u=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:u}=this.valueRange;const{indent:r,src:s}=this.context;if(s[u-1]!=="'")e.push(new n.YAMLSyntaxError(this,"Missing closing 'quote"));let i="";for(let o=t+1;oe?s.slice(e,o+1):t}else{i+=t}}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:u}=e;let r=QuoteSingle.endOfQuote(u,t+1);this.valueRange=new n.Range(t,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}function createNewNode(e,t){switch(e){case n.Type.ALIAS:return new Alias(e,t);case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:return new BlockValue(e,t);case n.Type.FLOW_MAP:case n.Type.FLOW_SEQ:return new FlowCollection(e,t);case n.Type.MAP_KEY:case n.Type.MAP_VALUE:case n.Type.SEQ_ITEM:return new CollectionItem(e,t);case n.Type.COMMENT:case n.Type.PLAIN:return new n.PlainValue(e,t);case n.Type.QUOTE_DOUBLE:return new QuoteDouble(e,t);case n.Type.QUOTE_SINGLE:return new QuoteSingle(e,t);default:return null}}class ParseContext{static parseType(e,t,u){switch(e[t]){case"*":return n.Type.ALIAS;case">":return n.Type.BLOCK_FOLDED;case"|":return n.Type.BLOCK_LITERAL;case"{":return n.Type.FLOW_MAP;case"[":return n.Type.FLOW_SEQ;case"?":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.MAP_KEY:n.Type.PLAIN;case":":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.MAP_VALUE:n.Type.PLAIN;case"-":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.SEQ_ITEM:n.Type.PLAIN;case'"':return n.Type.QUOTE_DOUBLE;case"'":return n.Type.QUOTE_SINGLE;default:return n.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:u,inFlow:r,indent:s,lineStart:i,parent:o}={}){n._defineProperty(this,"parseNode",(e,t)=>{if(n.Node.atDocumentBoundary(this.src,t))return null;const u=new ParseContext(this,e);const{props:r,type:s,valueStart:i}=u.parseProps(t);const o=createNewNode(s,r);let a=o.parse(u,i);o.range=new n.Range(t,a);if(a<=t){o.error=new Error(`Node#parse consumed no characters`);o.error.parseEnd=a;o.error.source=o;o.range.end=t+1}if(u.nodeStartsCollection(o)){if(!o.error&&!u.atLineStart&&u.parent.type===n.Type.DOCUMENT){o.error=new n.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new Collection(o);a=e.parse(new ParseContext(u),a);e.range=new n.Range(t,a);return e}return o});this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=u!=null?u:e.inCollection||false;this.inFlow=r!=null?r:e.inFlow||false;this.indent=s!=null?s:e.indent;this.lineStart=i!=null?i:e.lineStart;this.parent=o!=null?o:e.parent||{};this.root=e.root;this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:u,src:r}=this;if(t||u)return false;if(e instanceof CollectionItem)return true;let s=e.range.end;if(r[s]==="\n"||r[s-1]==="\n")return false;s=n.Node.endOfWhiteSpace(r,s);return r[s]===":"}parseProps(e){const{inFlow:t,parent:u,src:r}=this;const s=[];let i=false;e=this.atLineStart?n.Node.endOfIndent(r,e):n.Node.endOfWhiteSpace(r,e);let o=r[e];while(o===n.Char.ANCHOR||o===n.Char.COMMENT||o===n.Char.TAG||o==="\n"){if(o==="\n"){const t=e+1;const s=n.Node.endOfIndent(r,t);const o=s-(t+this.indent);const a=u.type===n.Type.SEQ_ITEM&&u.context.atLineStart;if(!n.Node.nextNodeIsIndented(r[s],o,!a))break;this.atLineStart=true;this.lineStart=t;i=false;e=s}else if(o===n.Char.COMMENT){const t=n.Node.endOfLine(r,e+1);s.push(new n.Range(e,t));e=t}else{let t=n.Node.endOfIdentifier(r,e+1);if(o===n.Char.TAG&&r[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))){t=n.Node.endOfIdentifier(r,t+5)}s.push(new n.Range(e,t));i=true;e=n.Node.endOfWhiteSpace(r,t)}o=r[e]}if(i&&o===":"&&n.Node.atBlank(r,e+1,true))e-=1;const a=ParseContext.parseType(r,e,t);return{props:s,type:a,valueStart:e}}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,(e,u)=>{if(e.length>1)t.push(u);return"\n"})}const u=[];let n=0;do{const t=new Document;const r=new ParseContext({src:e});n=t.parse(r,n);u.push(t)}while(n{if(t.length===0)return false;for(let e=1;eu.join("...\n"));return u}t.parse=parse},87:function(e){e.exports=require("os")},112:function(e){"use strict";let t={};e.exports=function warnOnce(e){if(t[e])return;t[e]=true;if(typeof console!=="undefined"&&console.warn){console.warn(e)}}},134:function(e){e.exports=require("schema-utils")},148:function(e){let t="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";let u=(e,t)=>{return()=>{let u="";let n=t;while(n--){u+=e[Math.random()*e.length|0]}return u}};let n=(e=21)=>{let u="";let n=e;while(n--){u+=t[Math.random()*64|0]}return u};e.exports={nanoid:n,customAlphabet:u}},149:function(e,t,u){"use strict";let n=u(990);class AtRule extends n{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=AtRule;n.registerAtRule(AtRule)},150:function(e,t){function set(e,t,u){if(typeof u.value==="object")u.value=klona(u.value);if(!u.enumerable||u.get||u.set||!u.configurable||!u.writable||t==="__proto__"){Object.defineProperty(e,t,u)}else e[t]=u.value}function klona(e){if(typeof e!=="object")return e;var t=0,u,n,r,s=Object.prototype.toString.call(e);if(s==="[object Object]"){r=Object.create(e.__proto__||null)}else if(s==="[object Array]"){r=Array(e.length)}else if(s==="[object Set]"){r=new Set;e.forEach(function(e){r.add(klona(e))})}else if(s==="[object Map]"){r=new Map;e.forEach(function(e,t){r.set(klona(t),klona(e))})}else if(s==="[object Date]"){r=new Date(+e)}else if(s==="[object RegExp]"){r=new RegExp(e.source,e.flags)}else if(s==="[object DataView]"){r=new e.constructor(klona(e.buffer))}else if(s==="[object ArrayBuffer]"){r=e.slice(0)}else if(s.slice(-6)==="Array]"){r=new e.constructor(e)}if(r){for(n=Object.getOwnPropertySymbols(e);ts=>u?e+(~(s+="").indexOf(t,4)?s.replace(n,r):s)+t:s;const r=(e,t)=>{return n(`[${e}m`,`[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`[${e}m`)};t.options=Object.defineProperty({},"enabled",{get:()=>u,set:e=>u=e});t.reset=r(0,0);t.bold=n("","",/\x1b\[22m/g,"");t.dim=n("","",/\x1b\[22m/g,"");t.italic=r(3,23);t.underline=r(4,24);t.inverse=r(7,27);t.hidden=r(8,28);t.strikethrough=r(9,29);t.black=r(30,39);t.red=r(31,39);t.green=r(32,39);t.yellow=r(33,39);t.blue=r(34,39);t.magenta=r(35,39);t.cyan=r(36,39);t.white=r(37,39);t.gray=r(90,39);t.bgBlack=r(40,49);t.bgRed=r(41,49);t.bgGreen=r(42,49);t.bgYellow=r(43,49);t.bgBlue=r(44,49);t.bgMagenta=r(45,49);t.bgCyan=r(46,49);t.bgWhite=r(47,49);t.blackBright=r(90,39);t.redBright=r(91,39);t.greenBright=r(92,39);t.yellowBright=r(93,39);t.blueBright=r(94,39);t.magentaBright=r(95,39);t.cyanBright=r(96,39);t.whiteBright=r(97,39);t.bgBlackBright=r(100,49);t.bgRedBright=r(101,49);t.bgGreenBright=r(102,49);t.bgYellowBright=r(103,49);t.bgBlueBright=r(104,49);t.bgMagentaBright=r(105,49);t.bgCyanBright=r(106,49);t.bgWhiteBright=r(107,49)},184:function(e,t,u){"use strict";let n=u(698);let r=u(847);class Processor{constructor(e=[]){this.version="8.1.1";this.plugins=this.normalize(e)}use(e){this.plugins=this.plugins.concat(this.normalize([e]));return this}process(e,t={}){if(this.plugins.length===0&&t.parser===t.stringifier&&!t.hideNothingWarning){if(process.env.NODE_ENV!=="production"){if(typeof console!=="undefined"&&console.warn){console.warn("You did not set any plugins, parser, or stringifier. "+"Right now, PostCSS does nothing. Pick plugins for your case "+"on https://www.postcss.parts/ and use them in postcss.config.js.")}}}return new n(this,e,t)}normalize(e){let t=[];for(let u of e){if(u.postcss===true){u=u()}else if(u.postcss){u=u.postcss}if(typeof u==="object"&&Array.isArray(u.plugins)){t=t.concat(u.plugins)}else if(typeof u==="object"&&u.postcssPlugin){t.push(u)}else if(typeof u==="function"){t.push(u)}else if(typeof u==="object"&&(u.parse||u.stringify)){if(process.env.NODE_ENV!=="production"){throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use "+"one of the syntax/parser/stringifier options as outlined "+"in your PostCSS runner documentation.")}}else{throw new Error(u+" is not a PostCSS plugin")}}return t}}e.exports=Processor;r.registerProcessor(Processor)},191:function(e){"use strict";class Warning extends Error{constructor(e){super(e);const{text:t,line:u,column:n,plugin:r}=e;this.name="Warning";this.message=`${this.name}\n\n`;if(typeof u!=="undefined"){this.message+=`(${u}:${n}) `}this.message+=r?`${r}: `:"";this.message+=`${t}`;this.stack=false}}e.exports=Warning},192:function(e,t,u){"use strict";var n=u(513);var r=u(310);var s=u(525);const i={anchorPrefix:"a",customTags:null,indent:2,indentSeq:true,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};const o={get binary(){return r.binaryOptions},set binary(e){Object.assign(r.binaryOptions,e)},get bool(){return r.boolOptions},set bool(e){Object.assign(r.boolOptions,e)},get int(){return r.intOptions},set int(e){Object.assign(r.intOptions,e)},get null(){return r.nullOptions},set null(e){Object.assign(r.nullOptions,e)},get str(){return r.strOptions},set str(e){Object.assign(r.strOptions,e)}};const a={"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:n.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:n.defaultTagPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:n.defaultTagPrefix}]}};function stringifyTag(e,t){if((e.version||e.options.version)==="1.0"){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const u=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return u?`!${u[1]}/${u[2]}`:`!${t.replace(/^tag:/,"")}`}let u=e.tagPrefixes.find(e=>t.indexOf(e.prefix)===0);if(!u){const n=e.getDefaults().tagPrefixes;u=n&&n.find(e=>t.indexOf(e.prefix)===0)}if(!u)return t[0]==="!"?t:`!<${t}>`;const n=t.substr(u.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]);return u.handle+n}function getTagObject(e,t){if(t instanceof r.Alias)return r.Alias;if(t.tag){const u=e.filter(e=>e.tag===t.tag);if(u.length>0)return u.find(e=>e.format===t.format)||u[0]}let u,n;if(t instanceof r.Scalar){n=t.value;const r=e.filter(e=>e.identify&&e.identify(n)||e.class&&n instanceof e.class);u=r.find(e=>e.format===t.format)||r.find(e=>!e.format)}else{n=t;u=e.find(e=>e.nodeClass&&n instanceof e.nodeClass)}if(!u){const e=n&&n.constructor?n.constructor.name:typeof n;throw new Error(`Tag not resolved for ${e} value`)}return u}function stringifyProps(e,t,{anchors:u,doc:n}){const r=[];const s=n.anchors.getName(e);if(s){u[s]=e;r.push(`&${s}`)}if(e.tag){r.push(stringifyTag(n,e.tag))}else if(!t.default){r.push(stringifyTag(n,t.tag))}return r.join(" ")}function stringify(e,t,u,n){const{anchors:s,schema:i}=t.doc;let o;if(!(e instanceof r.Node)){const t={aliasNodes:[],onTagObj:e=>o=e,prevObjects:new Map};e=i.createNode(e,true,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=s.getName(e.source);if(!t){t=s.newName();s.map[t]=e.source}}}if(e instanceof r.Pair)return e.toString(t,u,n);if(!o)o=getTagObject(i.tags,e);const a=stringifyProps(e,o,t);if(a.length>0)t.indentAtStart=(t.indentAtStart||0)+a.length+1;const c=typeof o.stringify==="function"?o.stringify(e,t,u,n):e instanceof r.Scalar?r.stringifyString(e,t,u,n):e.toString(t,u,n);if(!a)return c;return e instanceof r.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}class Anchors{static validAnchorNode(e){return e instanceof r.Scalar||e instanceof r.YAMLSeq||e instanceof r.YAMLMap}constructor(e){n._defineProperty(this,"map",{});this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new r.Alias(e)}createMergePair(...e){const t=new r.Merge;t.value.items=e.map(e=>{if(e instanceof r.Alias){if(e.source instanceof r.YAMLMap)return e}else if(e instanceof r.YAMLMap){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")});return t}getName(e){const{map:t}=this;return Object.keys(t).find(u=>t[u]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let u=1;true;++u){const n=`${e}${u}`;if(!t.includes(n))return n}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved});t.forEach(e=>{e.source=e.source.resolved});delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:u}=this;const n=e&&Object.keys(u).find(t=>u[t]===e);if(n){if(!t){return n}else if(n!==t){delete u[n];u[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}u[t]=e}return t}}const c=(e,t)=>{if(e&&typeof e==="object"){const{tag:u}=e;if(e instanceof r.Collection){if(u)t[u]=true;e.items.forEach(e=>c(e,t))}else if(e instanceof r.Pair){c(e.key,t);c(e.value,t)}else if(e instanceof r.Scalar){if(u)t[u]=true}}return t};const l=e=>Object.keys(c(e,{}));function parseContents(e,t){const u={before:[],after:[]};let s=undefined;let i=false;for(const o of t){if(o.valueRange){if(s!==undefined){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new n.YAMLSyntaxError(o,t));break}const t=r.resolveNode(e,o);if(i){t.spaceBefore=true;i=false}s=t}else if(o.comment!==null){const e=s===undefined?u.before:u.after;e.push(o.comment)}else if(o.type===n.Type.BLANK_LINE){i=true;if(s===undefined&&u.before.length>0&&!e.commentBefore){e.commentBefore=u.before.join("\n");u.before=[]}}}e.contents=s||null;if(!s){e.comment=u.before.concat(u.after).join("\n")||null}else{const t=u.before.join("\n");if(t){const e=s instanceof r.Collection&&s.items[0]?s.items[0]:s;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=u.after.join("\n")||null}}function resolveTagDirective({tagPrefixes:e},t){const[u,r]=t.parameters;if(!u||!r){const e="Insufficient parameters given for %TAG directive";throw new n.YAMLSemanticError(t,e)}if(e.some(e=>e.handle===u)){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new n.YAMLSemanticError(t,e)}return{handle:u,prefix:r}}function resolveYamlDirective(e,t){let[u]=t.parameters;if(t.name==="YAML:1.0")u="1.0";if(!u){const e="Insufficient parameters given for %YAML directive";throw new n.YAMLSemanticError(t,e)}if(!a[u]){const r=e.version||e.options.version;const s=`Document will be parsed as YAML ${r} rather than YAML ${u}`;e.warnings.push(new n.YAMLWarning(t,s))}return u}function parseDirectives(e,t,u){const r=[];let s=false;for(const u of t){const{comment:t,name:i}=u;switch(i){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,u))}catch(t){e.errors.push(t)}s=true;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new n.YAMLSemanticError(u,t))}try{e.version=resolveYamlDirective(e,u)}catch(t){e.errors.push(t)}s=true;break;default:if(i){const t=`YAML only supports %TAG and %YAML directives, and not %${i}`;e.warnings.push(new n.YAMLWarning(u,t))}}if(t)r.push(t)}if(u&&!s&&"1.1"===(e.version||u.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=u.tagPrefixes.map(t);e.version=u.version}e.commentBefore=r.join("\n")||null}function assertCollection(e){if(e instanceof r.Collection)return true;throw new Error("Expected a YAML collection as document contents")}class Document{constructor(e){this.anchors=new Anchors(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}add(e){assertCollection(this.contents);return this.contents.add(e)}addIn(e,t){assertCollection(this.contents);this.contents.addIn(e,t)}delete(e){assertCollection(this.contents);return this.contents.delete(e)}deleteIn(e){if(r.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}assertCollection(this.contents);return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof r.Collection?this.contents.get(e,t):undefined}getIn(e,t){if(r.isEmptyPath(e))return!t&&this.contents instanceof r.Scalar?this.contents.value:this.contents;return this.contents instanceof r.Collection?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof r.Collection?this.contents.has(e):false}hasIn(e){if(r.isEmptyPath(e))return this.contents!==undefined;return this.contents instanceof r.Collection?this.contents.hasIn(e):false}set(e,t){assertCollection(this.contents);this.contents.set(e,t)}setIn(e,t){if(r.isEmptyPath(e))this.contents=t;else{assertCollection(this.contents);this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const u=Object.assign({},this.getDefaults(),this.options);this.schema=new s.Schema(u)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:u=[],contents:r=[],directivesEndMarker:s,error:i,valueRange:o}=e;if(i){if(!i.source)i.source=this;this.errors.push(i)}parseDirectives(this,u,t);if(s)this.directivesEndMarker=true;this.range=o?[o.start,o.end]:null;this.setSchema();this.anchors._cstAliases=[];parseContents(this,r);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof n.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof n.YAMLError)e.makePretty()}return this}listNonDefaultTags(){return l(this.contents).filter(e=>e.indexOf(s.Schema.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const u=this.tagPrefixes.find(t=>t.handle===e);if(u)u.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}}toJSON(e,t){const{keepBlobsInJSON:u,mapAsMap:n,maxAliasCount:s}=this.options;const i=u&&(typeof e!=="string"||!(this.contents instanceof r.Scalar));const o={doc:this,indentStep:" ",keep:i,mapAsMap:i&&!!n,maxAliasCount:s,stringify:stringify};const a=Object.keys(this.anchors.map);if(a.length>0)o.anchors=new Map(a.map(e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]));const c=r.toJSON(this.contents,e,o);if(typeof t==="function"&&o.anchors)for(const{count:e,res:u}of o.anchors.values())t(u,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let u=false;if(this.version){let e="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")e="%YAML:1.0";else if(this.version==="1.1")e="%YAML 1.1"}t.push(e);u=true}const n=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:e,prefix:r})=>{if(n.some(e=>e.indexOf(r)===0)){t.push(`%TAG ${e} ${r}`);u=true}});if(u||this.directivesEndMarker)t.push("---");if(this.commentBefore){if(u||!this.directivesEndMarker)t.unshift("");t.unshift(this.commentBefore.replace(/^/gm,"#"))}const s={anchors:{},doc:this,indent:"",indentStep:" ".repeat(e),stringify:stringify};let i=false;let o=null;if(this.contents){if(this.contents instanceof r.Node){if(this.contents.spaceBefore&&(u||this.directivesEndMarker))t.push("");if(this.contents.commentBefore)t.push(this.contents.commentBefore.replace(/^/gm,"#"));s.forceBlockIndent=!!this.comment;o=this.contents.comment}const e=o?null:()=>i=true;const n=stringify(this.contents,s,()=>o=null,e);t.push(r.addComment(n,"",o))}else if(this.contents!==undefined){t.push(stringify(this.contents,s))}if(this.comment){if((!i||o)&&t[t.length-1]!=="")t.push("");t.push(this.comment.replace(/^/gm,"#"))}return t.join("\n")+"\n"}}n._defineProperty(Document,"defaults",a);t.Document=Document;t.defaultOptions=i;t.scalarOptions=o},208:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPropertyByPath=getPropertyByPath;function getPropertyByPath(e,t){if(typeof t==="string"&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}const u=typeof t==="string"?t.split("."):t;return u.reduce((e,t)=>{if(e===undefined){return e}return e[t]},e)}},233:function(e,t,u){"use strict";let{red:n,bold:r,gray:s,options:i}=u(153);let o=u(958);class CssSyntaxError extends Error{constructor(e,t,u,n,r,s){super(e);this.name="CssSyntaxError";this.reason=e;if(r){this.file=r}if(n){this.source=n}if(s){this.plugin=s}if(typeof t!=="undefined"&&typeof u!=="undefined"){this.line=t;this.column=u}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=i.enabled;if(o){if(e)t=o(t)}let u=t.split(/\r?\n/);let a=Math.max(this.line-3,0);let c=Math.min(this.line+2,u.length);let l=String(c).length;let f,h;if(e){f=(e=>r(n(e)));h=(e=>s(e))}else{f=h=(e=>e)}return u.slice(a,c).map((e,t)=>{let u=a+1+t;let n=" "+(" "+u).slice(-l)+" | ";if(u===this.line){let t=h(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+h(n)+e+"\n "+t+f("^")}return" "+h(n)+e}).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=CssSyntaxError},241:function(e){e.exports=require("next/dist/compiled/source-map")},249:function(e,t,u){"use strict";let n=u(7);class Declaration extends n{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=Declaration},254:function(e,t){"use strict";var u="\n";var n="\r";var r=function(){function LinesAndColumns(e){this.string=e;var t=[0];for(var r=0;rthis.string.length){return null}var t=0;var u=this.offsets;while(u[t+1]<=e){t++}var n=e-u[t];return{line:t,column:n}};LinesAndColumns.prototype.indexForLocation=function(e){var t=e.line,u=e.column;if(t<0||t>=this.offsets.length){return null}if(u<0||u>this.lengthOfLine(t)){return null}return this.offsets[t]+u};LinesAndColumns.prototype.lengthOfLine=function(e){var t=this.offsets[e];var u=e===this.offsets.length-1?this.string.length:this.offsets[e+1];return u-t};return LinesAndColumns}();t.__esModule=true;t["default"]=r},270:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cacheWrapper=cacheWrapper;t.cacheWrapperSync=cacheWrapperSync;async function cacheWrapper(e,t,u){const n=e.get(t);if(n!==undefined){return n}const r=await u();e.set(t,r);return r}function cacheWrapperSync(e,t,u){const n=e.get(t);if(n!==undefined){return n}const r=u();e.set(t,r);return r}},277:function(e){e.exports=require("path")},282:function(e){e.exports=require("module")},294:function(e,t,u){"use strict";let n=u(249);let r=u(622);let s=u(374);let i=u(149);let o=u(847);let a=u(301);class Parser{constructor(e){this.input=e;this.root=new o;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=r(this.input)}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}comment(e){let t=new s;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);let u=e[1].slice(2,-2);if(/^\s*$/.test(u)){t.text="";t.raws.left=u;t.raws.right=""}else{let e=u.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}emptyRule(e){let t=new a;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}other(e){let t=false;let u=null;let n=false;let r=null;let s=[];let i=e[1].startsWith("--");let o=[];let a=e;while(a){u=a[0];o.push(a);if(u==="("||u==="["){if(!r)r=a;s.push(u==="("?")":"]")}else if(i&&n&&u==="{"){if(!r)r=a;s.push("}")}else if(s.length===0){if(u===";"){if(n){this.decl(o,i);return}else{break}}else if(u==="{"){this.rule(o);return}else if(u==="}"){this.tokenizer.back(o.pop());t=true;break}else if(u===":"){n=true}}else if(u===s[s.length-1]){s.pop();if(s.length===0)r=null}a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(s.length>0)this.unclosedBracket(r);if(t&&n){while(o.length){a=o[o.length-1][0];if(a!=="space"&&a!=="comment")break;this.tokenizer.back(o.pop())}this.decl(o,i)}else{this.unknownWord(o)}}rule(e){e.pop();let t=new a;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}decl(e,t){let u=new n;this.init(u,e[0][2]);let r=e[e.length-1];if(r[0]===";"){this.semicolon=true;e.pop()}u.source.end=this.getPosition(r[3]||r[2]);while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);u.raws.before+=e.shift()[1]}u.source.start=this.getPosition(e[0][2]);u.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}u.prop+=e.shift()[1]}u.raws.between="";let s;while(e.length){s=e.shift();if(s[0]===":"){u.raws.between+=s[1];break}else{if(s[0]==="word"&&/\w/.test(s[1])){this.unknownWord([s])}u.raws.between+=s[1]}}if(u.prop[0]==="_"||u.prop[0]==="*"){u.raws.before+=u.prop[0];u.prop=u.prop.slice(1)}let i=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){s=e[t];if(s[1].toLowerCase()==="!important"){u.important=true;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n;if(n!==" !important")u.raws.important=n;break}else if(s[1].toLowerCase()==="important"){let n=e.slice(0);let r="";for(let e=t;e>0;e--){let t=n[e][0];if(r.trim().indexOf("!")===0&&t!=="space"){break}r=n.pop()[1]+r}if(r.trim().indexOf("!")===0){u.important=true;u.raws.important=r;e=n}}if(s[0]!=="space"&&s[0]!=="comment"){break}}let o=e.some(e=>e[0]!=="space"&&e[0]!=="comment");this.raw(u,"value",e);if(o){u.raws.between+=i}else{u.value=i+u.value}if(u.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}atrule(e){let t=new i;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let u;let n;let r;let s=false;let o=false;let a=[];let c=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();u=e[0];if(u==="("||u==="["){c.push(u==="("?")":"]")}else if(u==="{"&&c.length>0){c.push("}")}else if(u===c[c.length-1]){c.pop()}if(c.length===0){if(u===";"){t.source.end=this.getPosition(e[2]);this.semicolon=true;break}else if(u==="{"){o=true;break}else if(u==="}"){if(a.length>0){r=a.length-1;n=a[r];while(n&&n[0]==="space"){n=a[--r]}if(n){t.source.end=this.getPosition(n[3]||n[2])}}this.end(e);break}else{a.push(e)}}else{a.push(e)}if(this.tokenizer.endOfFile()){s=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a);if(a.length){t.raws.afterName=this.spacesAndCommentsFromStart(a);this.raw(t,"params",a);if(s){e=a[a.length-1];t.source.end=this.getPosition(e[3]||e[2]);this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(o){t.nodes=[];this.current=t}}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e);e.source={start:this.getPosition(t),input:this.input};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}raw(e,t,u){let n,r;let s=u.length;let i="";let o=true;let a,c;let l=/^([#.|])?(\w)+/i;for(let t=0;te+t[1],"");e.raws[t]={value:i,raw:n}}e[t]=i}spacesAndCommentsFromEnd(e){let t;let u="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;u=e.pop()[1]+u}return u}spacesAndCommentsFromStart(e){let t;let u="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;u+=e.shift()[1]}return u}spacesFromEnd(e){let t;let u="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;u=e.pop()[1]+u}return u}stringFrom(e,t){let u="";for(let n=t;n=0;r--){n=e[r];if(n[0]!=="space"){u+=1;if(u===2)break}}throw this.input.error("Missed semicolon",n[2])}}e.exports=Parser},301:function(e,t,u){"use strict";let n=u(990);let r=u(430);class Rule extends n{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let u=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(u)}}e.exports=Rule;n.registerRule(Rule)},310:function(e,t,u){"use strict";var n=u(513);function addCommentBefore(e,t,u){if(!u)return e;const n=u.replace(/[\s\S]^/gm,`$&${t}#`);return`#${n}\n${t}${e}`}function addComment(e,t,u){return!u?e:u.indexOf("\n")===-1?`${e} #${u}`:`${e}\n`+u.replace(/^/gm,`${t||""}#`)}class Node{}function toJSON(e,t,u){if(Array.isArray(e))return e.map((e,t)=>toJSON(e,String(t),u));if(e&&typeof e.toJSON==="function"){const n=u&&u.anchors&&u.anchors.get(e);if(n)u.onCreate=(e=>{n.res=e;delete u.onCreate});const r=e.toJSON(t,u);if(n&&u.onCreate)u.onCreate(r);return r}if((!u||!u.keep)&&typeof e==="bigint")return Number(e);return e}class Scalar extends Node{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:toJSON(this.value,e,t)}toString(){return String(this.value)}}function collectionFromPath(e,t,u){let n=u;for(let e=t.length-1;e>=0;--e){const u=t[e];const r=Number.isInteger(u)&&u>=0?[]:{};r[u]=n;n=r}return e.createNode(n,false)}const r=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;class Collection extends Node{constructor(e){super();n._defineProperty(this,"items",[]);this.schema=e}addIn(e,t){if(r(e))this.add(t);else{const[u,...n]=e;const r=this.get(u,true);if(r instanceof Collection)r.addIn(n,t);else if(r===undefined&&this.schema)this.set(u,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${u}. Remaining path: ${n}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const u=this.get(e,true);if(u instanceof Collection)return u.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],u){const n=this.get(e,true);if(t.length===0)return!u&&n instanceof Scalar?n.value:n;else return n instanceof Collection?n.getIn(t,u):undefined}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return false;const t=e.value;return t==null||t instanceof Scalar&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(t.length===0)return this.has(e);const u=this.get(e,true);return u instanceof Collection?u.hasIn(t):false}setIn([e,...t],u){if(t.length===0){this.set(e,u)}else{const n=this.get(e,true);if(n instanceof Collection)n.setIn(t,u);else if(n===undefined&&this.schema)this.set(e,collectionFromPath(this.schema,t,u));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:u,isMap:r,itemIndent:s},i,o){const{indent:a,indentStep:c,stringify:l}=e;const f=this.type===n.Type.FLOW_MAP||this.type===n.Type.FLOW_SEQ||e.inFlow;if(f)s+=c;const h=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:s,inFlow:f,type:null});let D=false;let p=false;const A=this.items.reduce((t,u,n)=>{let r;if(u){if(!D&&u.spaceBefore)t.push({type:"comment",str:""});if(u.commentBefore)u.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:`#${e}`})});if(u.comment)r=u.comment;if(f&&(!D&&u.spaceBefore||u.commentBefore||u.comment||u.key&&(u.key.commentBefore||u.key.comment)||u.value&&(u.value.commentBefore||u.value.comment)))p=true}D=false;let i=l(u,e,()=>r=null,()=>D=true);if(f&&!p&&i.includes("\n"))p=true;if(f&&ne.str);if(p||n.reduce((e,t)=>e+t.length+2,2)>Collection.maxFlowStringSingleLineLength){d=e;for(const e of n){d+=e?`\n${c}${a}${e}`:"\n"}d+=`\n${a}${t}`}else{d=`${e} ${n.join(" ")} ${t}`}}else{const e=A.map(t);d=e.shift();for(const t of e)d+=t?`\n${a}${t}`:"\n"}if(this.comment){d+="\n"+this.comment.replace(/^/gm,`${a}#`);if(i)i()}else if(D&&o)o();return d}}n._defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){let t=e instanceof Scalar?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends Collection{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const u=this.items.splice(t,1);return u.length>0}get(e,t){const u=asItemIndex(e);if(typeof u!=="number")return undefined;const n=this.items[u];return!t&&n instanceof Scalar?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,u)}}const s=(e,t,u)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof Node&&u&&u.doc)return e.toString({anchors:{},doc:u.doc,indent:"",indentStep:u.indentStep,inFlow:true,inStringifyKey:true,stringify:u.stringify});return JSON.stringify(t)};class Pair extends Node{constructor(e,t=null){super();this.key=e;this.value=t;this.type=Pair.Type.PAIR}get commentBefore(){return this.key instanceof Node?this.key.commentBefore:undefined}set commentBefore(e){if(this.key==null)this.key=new Scalar(null);if(this.key instanceof Node)this.key.commentBefore=e;else{const e="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(e)}}addToJSMap(e,t){const u=toJSON(this.key,"",e);if(t instanceof Map){const n=toJSON(this.value,u,e);t.set(u,n)}else if(t instanceof Set){t.add(u)}else{const n=s(this.key,u,e);t[n]=toJSON(this.value,n,e)}return t}toJSON(e,t){const u=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,u)}toString(e,t,u){if(!e||!e.doc)return JSON.stringify(this);const{indent:r,indentSeq:s,simpleKeys:i}=e.doc.options;let{key:o,value:a}=this;let c=o instanceof Node&&o.comment;if(i){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(o instanceof Collection){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}const l=!i&&(!o||c||o instanceof Collection||o.type===n.Type.BLOCK_FOLDED||o.type===n.Type.BLOCK_LITERAL);const{doc:f,indent:h,indentStep:D,stringify:p}=e;e=Object.assign({},e,{implicitKey:!l,indent:h+D});let A=false;let d=p(o,e,()=>c=null,()=>A=true);d=addComment(d,e.indent,c);if(e.allNullValues&&!i){if(this.comment){d=addComment(d,e.indent,this.comment);if(t)t()}else if(A&&!c&&u)u();return e.inFlow?d:`? ${d}`}d=l?`? ${d}\n${h}:`:`${d}:`;if(this.comment){d=addComment(d,e.indent,this.comment);if(t)t()}let g="";let C=null;if(a instanceof Node){if(a.spaceBefore)g="\n";if(a.commentBefore){const t=a.commentBefore.replace(/^/gm,`${e.indent}#`);g+=`\n${t}`}C=a.comment}else if(a&&typeof a==="object"){a=f.schema.createNode(a,true)}e.implicitKey=false;if(!l&&!this.comment&&a instanceof Scalar)e.indentAtStart=d.length+1;A=false;if(!s&&r>=2&&!e.inFlow&&!l&&a instanceof YAMLSeq&&a.type!==n.Type.FLOW_SEQ&&!a.tag&&!f.anchors.getName(a)){e.indent=e.indent.substr(2)}const F=p(a,e,()=>C=null,()=>A=true);let E=" ";if(g||this.comment){E=`${g}\n${e.indent}`}else if(!l&&a instanceof Collection){const t=F[0]==="["||F[0]==="{";if(!t||F.includes("\n"))E=`\n${e.indent}`}if(A&&!C&&u)u();return addComment(d+E+F,e.indent,C)}}n._defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const i=(e,t)=>{if(e instanceof Alias){const u=t.get(e.source);return u.count*u.aliasCount}else if(e instanceof Collection){let u=0;for(const n of e.items){const e=i(n,t);if(e>u)u=e}return u}else if(e instanceof Pair){const u=i(e.key,t);const n=i(e.value,t);return Math.max(u,n)}return 1};class Alias extends Node{static stringify({range:e,source:t},{anchors:u,doc:n,implicitKey:r,inStringifyKey:s}){let i=Object.keys(u).find(e=>u[e]===t);if(!i&&s)i=n.anchors.getName(t)||n.anchors.newName();if(i)return`*${i}${r?" ":""}`;const o=n.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${o} [${e}]`)}constructor(e){super();this.source=e;this.type=n.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return toJSON(this.source,e,t);const{anchors:u,maxAliasCount:r}=t;const s=u.get(this.source);if(!s||s.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new n.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(r>=0){s.count+=1;if(s.aliasCount===0)s.aliasCount=i(this.source,u);if(s.count*s.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new n.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return s.res}toString(e){return Alias.stringify(this,e)}}n._defineProperty(Alias,"default",true);function findPair(e,t){const u=t instanceof Scalar?t.value:t;for(const n of e){if(n instanceof Pair){if(n.key===t||n.key===u)return n;if(n.key&&n.key.value===u)return n}}return undefined}class YAMLMap extends Collection{add(e,t){if(!e)e=new Pair(e);else if(!(e instanceof Pair))e=new Pair(e.key||e,e.value);const u=findPair(this.items,e.key);const n=this.schema&&this.schema.sortMapEntries;if(u){if(t)u.value=e.value;else throw new Error(`Key ${e.key} already set`)}else if(n){const t=this.items.findIndex(t=>n(e,t)<0);if(t===-1)this.items.push(e);else this.items.splice(t,0,e)}else{this.items.push(e)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const u=this.items.splice(this.items.indexOf(t),1);return u.length>0}get(e,t){const u=findPair(this.items,e);const n=u&&u.value;return!t&&n instanceof Scalar?n.value:n}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new Pair(e,t),true)}toJSON(e,t,u){const n=u?new u:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(n);for(const e of this.items)e.addToJSMap(t,n);return n}toString(e,t,u){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof Pair))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,u)}}const o="<<";class Merge extends Pair{constructor(e){if(e instanceof Pair){let t=e.value;if(!(t instanceof YAMLSeq)){t=new YAMLSeq;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new Scalar(o),new YAMLSeq)}this.type=Pair.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:u}of this.value.items){if(!(u instanceof YAMLMap))throw new Error("Merge sources must be maps");const n=u.toJSON(null,e,Map);for(const[e,u]of n){if(t instanceof Map){if(!t.has(e))t.set(e,u)}else if(t instanceof Set){t.add(e)}else{if(!Object.prototype.hasOwnProperty.call(t,e))t[e]=u}}}return t}toString(e,t){const u=this.value;if(u.items.length>1)return super.toString(e,t);this.value=u.items[0];const n=super.toString(e,t);this.value=u;return n}}const a={defaultType:n.Type.BLOCK_LITERAL,lineWidth:76};const c={trueStr:"true",falseStr:"false"};const l={asBigInt:false};const f={nullStr:"null"};const h={defaultType:n.Type.PLAIN,doubleQuoted:{jsonEncoding:false,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,t,u){for(const{format:u,test:n,resolve:r}of t){if(n){const t=e.match(n);if(t){let e=r.apply(null,t);if(!(e instanceof Scalar))e=new Scalar(e);if(u)e.format=u;return e}}}if(u)e=u(e);return new Scalar(e)}const D="flow";const p="block";const A="quoted";const d=(e,t)=>{let u=e[t+1];while(u===" "||u==="\t"){do{u=e[t+=1]}while(u&&u!=="\n");u=e[t+1]}return t};function foldFlowLines(e,t,u,{indentAtStart:n,lineWidth:r=80,minContentWidth:s=20,onFold:i,onOverflow:o}){if(!r||r<0)return e;const a=Math.max(1+s,1+r-t.length);if(e.length<=a)return e;const c=[];const l={};let f=r-(typeof n==="number"?n:t.length);let h=undefined;let D=undefined;let g=false;let C=-1;if(u===p){C=d(e,C);if(C!==-1)f=C+a}for(let t;t=e[C+=1];){if(u===A&&t==="\\"){switch(e[C+1]){case"x":C+=3;break;case"u":C+=5;break;case"U":C+=9;break;default:C+=1}}if(t==="\n"){if(u===p)C=d(e,C);f=C+a;h=undefined}else{if(t===" "&&D&&D!==" "&&D!=="\n"&&D!=="\t"){const t=e[C+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")h=C}if(C>=f){if(h){c.push(h);f=h+a;h=undefined}else if(u===A){while(D===" "||D==="\t"){D=t;t=e[C+=1];g=true}c.push(C-2);l[C-2]=true;f=C-2+a;h=undefined}else{g=true}}}D=t}if(g&&o)o();if(c.length===0)return e;if(i)i();let F=e.slice(0,c[0]);for(let n=0;ne?Object.assign({indentAtStart:e},h.fold):h.fold;const C=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t){const u=e.length;if(u<=t)return false;for(let n=0,r=0;nt)return true;r=n+1;if(u-r<=t)return false}}return true}function doubleQuotedString(e,t){const{implicitKey:u}=t;const{jsonEncoding:n,minMultiLineLength:r}=h.doubleQuoted;const s=JSON.stringify(e);if(n)return s;const i=t.indent||(C(e)?" ":"");let o="";let a=0;for(let e=0,t=s[e];t;t=s[++e]){if(t===" "&&s[e+1]==="\\"&&s[e+2]==="n"){o+=s.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(s[e+1]){case"u":{o+=s.slice(a,e);const t=s.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=s.substr(e,6)}e+=5;a=e+1}break;case"n":if(u||s[e+2]==='"'||s.length";if(!u)return l+"\n";let f="";let D="";u=u.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");if(t===-1){l+="-"}else if(u===e||t!==e.length-1){l+="+";if(i)i()}D=e.replace(/\n$/,"");return""}).replace(/^[\n ]*/,e=>{if(e.indexOf(" ")!==-1)l+=a;const t=e.match(/ +$/);if(t){f=e.slice(0,-t[0].length);return t[0]}else{f=e;return""}});if(D)D=D.replace(/\n+(?!\n|$)/g,`$&${o}`);if(f)f=f.replace(/\n+/g,`$&${o}`);if(e){l+=" #"+e.replace(/ ?[\r\n]+/g," ");if(s)s()}if(!u)return`${l}${a}\n${o}${D}`;if(c){u=u.replace(/\n+/g,`$&${o}`);return`${l}\n${o}${f}${u}${D}`}u=u.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);const A=foldFlowLines(`${f}${u}${D}`,o,p,h.fold);return`${l}\n${o}${A}`}function plainString(e,t,u,r){const{comment:s,type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:l,inFlow:f}=t;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o)){return doubleQuotedString(o,t)}if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||f||o.indexOf("\n")===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?singleQuotedString(o,t):doubleQuotedString(o,t):blockString(e,t,u,r)}if(!c&&!f&&i!==n.Type.PLAIN&&o.indexOf("\n")!==-1){return blockString(e,t,u,r)}if(l===""&&C(o)){t.forceBlockIndent=true;return blockString(e,t,u,r)}const h=o.replace(/\n+/g,`$&\n${l}`);if(a){const{tags:e}=t.doc.schema;const u=resolveScalar(h,e,e.scalarFallback).value;if(typeof u!=="string")return doubleQuotedString(o,t)}const p=c?h:foldFlowLines(h,l,D,g(t));if(s&&!f&&(p.indexOf("\n")!==-1||s.indexOf("\n")!==-1)){if(u)u();return addCommentBefore(p,l,s)}return p}function stringifyString(e,t,u,r){const{defaultType:s}=h;const{implicitKey:i,inFlow:o}=t;let{type:a,value:c}=e;if(typeof c!=="string"){c=String(c);e=Object.assign({},e,{value:c})}const l=s=>{switch(s){case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:return blockString(e,t,u,r);case n.Type.QUOTE_DOUBLE:return doubleQuotedString(c,t);case n.Type.QUOTE_SINGLE:return singleQuotedString(c,t);case n.Type.PLAIN:return plainString(e,t,u,r);default:return null}};if(a!==n.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)){a=n.Type.QUOTE_DOUBLE}else if((i||o)&&(a===n.Type.BLOCK_FOLDED||a===n.Type.BLOCK_LITERAL)){a=n.Type.QUOTE_DOUBLE}let f=l(a);if(f===null){f=l(s);if(f===null)throw new Error(`Unsupported default string type ${s}`)}return f}function stringifyNumber({format:e,minFractionDigits:t,tag:u,value:n}){if(typeof n==="bigint")return String(n);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let r=JSON.stringify(n);if(!e&&t&&(!u||u==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let e=r.indexOf(".");if(e<0){e=r.length;r+="."}let u=t-(r.length-e-1);while(u-- >0)r+="0"}return r}function checkFlowCollectionEnd(e,t){let u,r;switch(t.type){case n.Type.FLOW_MAP:u="}";r="flow map";break;case n.Type.FLOW_SEQ:u="]";r="flow sequence";break;default:e.push(new n.YAMLSemanticError(t,"Not a flow collection!?"));return}let s;for(let e=t.items.length-1;e>=0;--e){const u=t.items[e];if(!u||u.type!==n.Type.COMMENT){s=u;break}}if(s&&s.char!==u){const i=`Expected ${r} to end with ${u}`;let o;if(typeof s.offset==="number"){o=new n.YAMLSemanticError(t,i);o.offset=s.offset+1}else{o=new n.YAMLSemanticError(s,i);if(s.range&&s.range.end)o.offset=s.range.end-s.range.start}e.push(o)}}function checkFlowCommentSpace(e,t){const u=t.context.src[t.range.start-1];if(u!=="\n"&&u!=="\t"&&u!==" "){const u="Comments must be separated from other tokens by white space characters";e.push(new n.YAMLSemanticError(t,u))}}function getLongKeyError(e,t){const u=String(t);const r=u.substr(0,8)+"..."+u.substr(-8);return new n.YAMLSemanticError(e,`The "${r}" key is too long`)}function resolveComments(e,t){for(const{afterKey:u,before:n,comment:r}of t){let t=e.items[n];if(!t){if(r!==undefined){if(e.comment)e.comment+="\n"+r;else e.comment=r}}else{if(u&&t.value)t=t.value;if(r===undefined){if(u||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+r;else t.commentBefore=r}}}}function resolveString(e,t){const u=t.strValue;if(!u)return"";if(typeof u==="string")return u;u.errors.forEach(u=>{if(!u.source)u.source=t;e.errors.push(u)});return u.str}function resolveTagHandle(e,t){const{handle:u,suffix:r}=t.tag;let s=e.tagPrefixes.find(e=>e.handle===u);if(!s){const r=e.getDefaults().tagPrefixes;if(r)s=r.find(e=>e.handle===u);if(!s)throw new n.YAMLSemanticError(t,`The ${u} tag handle is non-default and was not declared.`)}if(!r)throw new n.YAMLSemanticError(t,`The ${u} tag has no suffix.`);if(u==="!"&&(e.version||e.options.version)==="1.0"){if(r[0]==="^"){e.warnings.push(new n.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported"));return r}if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function resolveTagName(e,t){const{tag:u,type:r}=t;let s=false;if(u){const{handle:r,suffix:i,verbatim:o}=u;if(o){if(o!=="!"&&o!=="!!")return o;const u=`Verbatim tags aren't resolved, so ${o} is invalid.`;e.errors.push(new n.YAMLSemanticError(t,u))}else if(r==="!"&&!i){s=true}else{try{return resolveTagHandle(e,t)}catch(t){e.errors.push(t)}}}switch(r){case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:case n.Type.QUOTE_DOUBLE:case n.Type.QUOTE_SINGLE:return n.defaultTags.STR;case n.Type.FLOW_MAP:case n.Type.MAP:return n.defaultTags.MAP;case n.Type.FLOW_SEQ:case n.Type.SEQ:return n.defaultTags.SEQ;case n.Type.PLAIN:return s?n.defaultTags.STR:null;default:return null}}function resolveByTagName(e,t,u){const{tags:n}=e.schema;const r=[];for(const s of n){if(s.tag===u){if(s.test)r.push(s);else{const u=s.resolve(e,t);return u instanceof Collection?u:new Scalar(u)}}}const s=resolveString(e,t);if(typeof s==="string"&&r.length>0)return resolveScalar(s,r,n.scalarFallback);return null}function getFallbackTagName({type:e}){switch(e){case n.Type.FLOW_MAP:case n.Type.MAP:return n.defaultTags.MAP;case n.Type.FLOW_SEQ:case n.Type.SEQ:return n.defaultTags.SEQ;default:return n.defaultTags.STR}}function resolveTag(e,t,u){try{const n=resolveByTagName(e,t,u);if(n){if(u&&t.tag)n.tag=u;return n}}catch(u){if(!u.source)u.source=t;e.errors.push(u);return null}try{const r=getFallbackTagName(t);if(!r)throw new Error(`The tag ${u} is unavailable`);const s=`The tag ${u} is unavailable, falling back to ${r}`;e.warnings.push(new n.YAMLWarning(t,s));const i=resolveByTagName(e,t,r);i.tag=u;return i}catch(u){const r=new n.YAMLReferenceError(t,u.message);r.stack=u.stack;e.errors.push(r);return null}}const F=e=>{if(!e)return false;const{type:t}=e;return t===n.Type.MAP_KEY||t===n.Type.MAP_VALUE||t===n.Type.SEQ_ITEM};function resolveNodeProps(e,t){const u={before:[],after:[]};let r=false;let s=false;const i=F(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:o,end:a}of i){switch(t.context.src[o]){case n.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(o)){const u="Comments must be separated from other tokens by white space characters";e.push(new n.YAMLSemanticError(t,u))}const{header:r,valueRange:s}=t;const i=s&&(o>s.start||r&&o>r.start)?u.after:u.before;i.push(t.context.src.slice(o+1,a));break}case n.Char.ANCHOR:if(r){const u="A node can have at most one anchor";e.push(new n.YAMLSemanticError(t,u))}r=true;break;case n.Char.TAG:if(s){const u="A node can have at most one tag";e.push(new n.YAMLSemanticError(t,u))}s=true;break}}return{comments:u,hasAnchor:r,hasTag:s}}function resolveNodeValue(e,t){const{anchors:u,errors:r,schema:s}=e;if(t.type===n.Type.ALIAS){const e=t.rawValue;const s=u.getNode(e);if(!s){const u=`Aliased anchor not found: ${e}`;r.push(new n.YAMLReferenceError(t,u));return null}const i=new Alias(s);u._cstAliases.push(i);return i}const i=resolveTagName(e,t);if(i)return resolveTag(e,t,i);if(t.type!==n.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;r.push(new n.YAMLSyntaxError(t,e));return null}try{const u=resolveString(e,t);return resolveScalar(u,s.tags,s.tags.scalarFallback)}catch(e){if(!e.source)e.source=t;r.push(e);return null}}function resolveNode(e,t){if(!t)return null;if(t.error)e.errors.push(t.error);const{comments:u,hasAnchor:r,hasTag:s}=resolveNodeProps(e.errors,t);if(r){const{anchors:u}=e;const n=t.anchor;const r=u.getNode(n);if(r)u.map[u.newName(n)]=r;u.map[n]=t}if(t.type===n.Type.ALIAS&&(r||s)){const u="An alias node must not specify any properties";e.errors.push(new n.YAMLSemanticError(t,u))}const i=resolveNodeValue(e,t);if(i){i.range=[t.range.start,t.range.end];if(e.options.keepCstNodes)i.cstNode=t;if(e.options.keepNodeTypes)i.type=t.type;const n=u.before.join("\n");if(n){i.commentBefore=i.commentBefore?`${i.commentBefore}\n${n}`:n}const r=u.after.join("\n");if(r)i.comment=i.comment?`${i.comment}\n${r}`:r}return t.resolved=i}function resolveMap(e,t){if(t.type!==n.Type.MAP&&t.type!==n.Type.FLOW_MAP){const u=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new n.YAMLSyntaxError(t,u));return null}const{comments:u,items:r}=t.type===n.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const s=new YAMLMap;s.items=r;resolveComments(s,u);let i=false;for(let u=0;u{if(e instanceof Alias){const{type:t}=e.source;if(t===n.Type.MAP||t===n.Type.FLOW_MAP)return false;return i="Merge nodes aliases can only point to maps"}return i="Merge nodes can only have Alias nodes as values"});if(i)e.errors.push(new n.YAMLSemanticError(t,i))}else{for(let i=u+1;i{if(r.length===0)return false;const{start:s}=r[0];if(t&&s>t.valueRange.start)return false;if(u[s]!==n.Char.COMMENT)return false;for(let t=e;t0){u=new n.PlainValue(n.Type.PLAIN,[]);u.context={parent:a,src:a.context.src};const e=a.range.start+1;u.range={start:e,end:e};u.valueRange={start:e,end:e};if(typeof a.range.origStart==="number"){const e=a.range.origStart+1;u.range.origStart=u.range.origEnd=e;u.valueRange.origStart=u.valueRange.origEnd=e}}const o=new Pair(s,resolveNode(e,u));resolvePairComment(a,o);r.push(o);if(s&&typeof i==="number"){if(a.range.start>i+1024)e.errors.push(getLongKeyError(t,s))}s=undefined;i=null}break;default:if(s!==undefined)r.push(new Pair(s));s=resolveNode(e,a);i=a.range.start;if(a.error)e.errors.push(a.error);e:for(let u=o+1;;++u){const r=t.items[u];switch(r&&r.type){case n.Type.BLANK_LINE:case n.Type.COMMENT:continue e;case n.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new n.YAMLSemanticError(a,t));break e}}}if(a.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new n.YAMLSemanticError(a,t))}}}if(s!==undefined)r.push(new Pair(s));return{comments:u,items:r}}function resolveFlowMapItems(e,t){const u=[];const r=[];let s=undefined;let i=false;let o="{";for(let a=0;ae instanceof Pair&&e.key instanceof Collection)){const u="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new n.YAMLWarning(t,u))}t.resolved=s;return s}function resolveBlockSeqItems(e,t){const u=[];const r=[];for(let s=0;so+1024)e.errors.push(getLongKeyError(t,i));const{src:r}=c.context;for(let t=o;t{const e=await this.searchDirectory(t);const u=this.nextDirectoryToSearch(t,e);if(u){return this.searchFromDirectory(u)}const n=await this.config.transform(e);return n};if(this.searchCache){return(0,i.cacheWrapper)(this.searchCache,t,u)}return u()}async searchDirectory(e){for await(const t of this.config.searchPlaces){const u=await this.loadSearchPlace(e,t);if(this.shouldSearchStopWithResult(u)===true){return u}}return null}async loadSearchPlace(e,t){const u=n.default.join(e,t);const r=await(0,s.readFile)(u);const i=await this.createCosmiconfigResult(u,r);return i}async loadFileContent(e,t){if(t===null){return null}if(t.trim()===""){return undefined}const u=this.getLoaderEntryForFile(e);const n=await u(e,t);return n}async createCosmiconfigResult(e,t){const u=await this.loadFileContent(e,t);const n=this.loadedContentToCosmiconfigResult(e,u);return n}async load(e){this.validateFilePath(e);const t=n.default.resolve(process.cwd(),e);const u=async()=>{const e=await(0,s.readFile)(t,{throwNotFound:true});const u=await this.createCosmiconfigResult(t,e);const n=await this.config.transform(u);return n};if(this.loadCache){return(0,i.cacheWrapper)(this.loadCache,t,u)}return u()}}t.Explorer=Explorer},370:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},374:function(e,t,u){"use strict";let n=u(7);class Comment extends n{constructor(e){super(e);this.type="comment"}}e.exports=Comment},402:function(e,t,u){"use strict";const n=u(277);const r=u(526);const s=u(964);e.exports=(e=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const t=s(__filename);const u=r(n.dirname(t),e);const i=require.cache[u];if(i&&i.parent){let e=i.parent.children.length;while(e--){if(i.parent.children[e].id===u){i.parent.children.splice(e,1)}}}delete require.cache[u];const o=require.cache[t];return o===undefined?require(u):o.require(u)})},425:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;var n=u(710);var r=_interopRequireDefault(u(134));var s=_interopRequireDefault(u(587));var i=u(519);var o=_interopRequireDefault(u(444));var a=_interopRequireDefault(u(191));var c=_interopRequireDefault(u(934));var l=_interopRequireDefault(u(851));var f=u(693);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function loader(e,t,u){const h=(0,n.getOptions)(this);(0,r.default)(l.default,h,{name:"PostCSS Loader",baseDataPath:"options"});const D=this.async();const p=typeof h.postcssOptions==="undefined"||typeof h.postcssOptions.config==="undefined"?true:h.postcssOptions.config;let A;if(p){try{A=await(0,f.loadConfig)(this,p)}catch(e){D(e);return}}const d=typeof h.sourceMap!=="undefined"?h.sourceMap:this.sourceMap;const{plugins:g,processOptions:C}=(0,f.getPostcssOptions)(this,A,h.postcssOptions);if(d){C.map={inline:false,annotation:false,...C.map}}if(t&&C.map){C.map.prev=(0,f.normalizeSourceMap)(t,this.context)}let F;if(u&&u.ast&&u.ast.type==="postcss"&&(0,i.satisfies)(u.ast.version,`^${o.default.version}`)){({root:F}=u.ast)}if(!F&&h.execute){e=(0,f.exec)(e,this)}let E;try{E=await(0,s.default)(g).process(F||e,C)}catch(e){if(e.file){this.addDependency(e.file)}if(e.name==="CssSyntaxError"){D(new c.default(e))}else{D(e)}return}for(const e of E.warnings()){this.emitWarning(new a.default(e))}for(const e of E.messages){if(e.type==="dependency"){this.addDependency(e.file)}if(e.type==="asset"&&e.content&&e.file){this.emitFile(e.file,e.content,e.sourceMap,e.info)}}let w=E.map?E.map.toJSON():undefined;if(w&&d){w=(0,f.normalizeSourceMapAfterPostcss)(w,this.context)}const B={type:"postcss",version:E.processor.version,root:E.root};D(null,E.css,w,{ast:B})}},430:function(e){"use strict";let t={split(e,t,u){let n=[];let r="";let s=false;let i=0;let o=false;let a=false;for(let u of e){if(o){if(a){a=false}else if(u==="\\"){a=true}else if(u===o){o=false}}else if(u==='"'||u==="'"){o=u}else if(u==="("){i+=1}else if(u===")"){if(i>0)i-=1}else if(i===0){if(t.includes(u))s=true}if(s){if(r!=="")n.push(r.trim());r="";s=false}else{r+=u}}if(u||r!=="")n.push(r.trim());return n},space(e){let u=[" ","\n","\t"];return t.split(e,u)},comma(e){return t.split(e,[","],true)}};e.exports=t},439:function(e,t,u){"use strict";let n=u(294);let r=u(54);let s=u(990);function parse(e,t){let u=new r(e,t);let s=new n(u);try{s.parse()}catch(e){if(process.env.NODE_ENV!=="production"){if(e.name==="CssSyntaxError"&&t&&t.from){if(/\.scss$/i.test(t.from)){e.message+="\nYou tried to parse SCSS with "+"the standard CSS parser; "+"try again with the postcss-scss parser"}else if(/\.sass/i.test(t.from)){e.message+="\nYou tried to parse Sass with "+"the standard CSS parser; "+"try again with the postcss-sass parser"}else if(/\.less$/i.test(t.from)){e.message+="\nYou tried to parse Less with "+"the standard CSS parser; "+"try again with the postcss-less parser"}}}throw e}return s.root}e.exports=parse;s.registerParse(parse)},444:function(e){e.exports={name:"postcss",version:"8.1.1",description:"Tool for transforming styles with JS plugins",engines:{node:"^10 || ^12 || >=14"},exports:{".":{require:"./lib/postcss.js",import:"./lib/postcss.mjs"},"./":"./"},main:"lib/postcss.js",keywords:["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],funding:{type:"opencollective",url:"https://opencollective.com/postcss/"},author:"Andrey Sitnik ",license:"MIT",homepage:"https://postcss.org/",repository:"postcss/postcss",dependencies:{colorette:"^1.2.1","line-column":"^1.0.2",nanoid:"^3.1.12","source-map":"^0.6.1"},browser:{"./lib/terminal-highlight":false,colorette:false,fs:false}}},448:function(e){"use strict";e.exports={isClean:Symbol("isClean")}},471:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cosmiconfig=cosmiconfig;t.cosmiconfigSync=cosmiconfigSync;t.defaultLoaders=void 0;var n=_interopRequireDefault(u(87));var r=u(341);var s=u(40);var i=u(690);var o=u(490);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function cosmiconfig(e,t={}){const u=normalizeOptions(e,t);const n=new r.Explorer(u);return{search:n.search.bind(n),load:n.load.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}function cosmiconfigSync(e,t={}){const u=normalizeOptions(e,t);const n=new s.ExplorerSync(u);return{search:n.searchSync.bind(n),load:n.loadSync.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}const a=Object.freeze({".cjs":i.loaders.loadJs,".js":i.loaders.loadJs,".json":i.loaders.loadJson,".yaml":i.loaders.loadYaml,".yml":i.loaders.loadYaml,noExt:i.loaders.loadYaml});t.defaultLoaders=a;const c=function identity(e){return e};function normalizeOptions(e,t){const u={packageProp:e,searchPlaces:["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.cjs`,`${e}.config.js`,`${e}.config.cjs`],ignoreEmptySearchPlaces:true,stopDir:n.default.homedir(),cache:true,transform:c,loaders:a};const r={...u,...t,loaders:{...u.loaders,...t.loaders}};return r}},490:function(){"use strict"},501:function(e,t,u){"use strict";const{promisify:n}=u(669);const r=u(747);async function isType(e,t,u){if(typeof u!=="string"){throw new TypeError(`Expected a string, got ${typeof u}`)}try{const s=await n(r[e])(u);return s[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,u){if(typeof u!=="string"){throw new TypeError(`Expected a string, got ${typeof u}`)}try{return r[e](u)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isFile=isType.bind(null,"stat","isFile");t.isDirectory=isType.bind(null,"stat","isDirectory");t.isSymlink=isType.bind(null,"lstat","isSymbolicLink");t.isFileSync=isTypeSync.bind(null,"statSync","isFile");t.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");t.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},513:function(e,t){"use strict";const u={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};const n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};const r="tag:yaml.org,2002:";const s={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(e){const t=[0];let u=e.indexOf("\n");while(u!==-1){u+=1;t.push(u);u=e.indexOf("\n",u)}return t}function getSrcInfo(e){let t,u;if(typeof e==="string"){t=findLineStarts(e);u=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;u=e.context.src}}return{lineStarts:t,src:u}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:u,src:n}=getSrcInfo(t);if(!u||!n||e>n.length)return null;for(let t=0;t=1)||e>u.length)return null;const r=u[e-1];let s=u[e];while(s&&s>r&&n[s-1]==="\n")--s;return n.slice(r,s)}function getPrettyContext({start:e,end:t},u,n=80){let r=getLine(e.line,u);if(!r)return null;let{col:s}=e;if(r.length>n){if(s<=n-10){r=r.substr(0,n-1)+"…"}else{const e=Math.round(n/2);if(r.length>s+e)r=r.substr(0,s+e-1)+"…";s-=r.length-n;r="…"+r.substr(1-n)}}let i=1;let o="";if(t){if(t.line===e.line&&s+(t.col-e.col)<=n+1){i=t.col-e.col}else{i=Math.min(r.length+1,n)-s;o="…"}}const a=s>1?" ".repeat(s-1):"";const c="^".repeat(i);return`${r}\n${a}${c}${o}`}class Range{static copy(e){return new Range(e.start,e.end)}constructor(e,t){this.start=e;this.end=t||e}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:u,end:n}=this;if(e.length===0||n<=e[0]){this.origStart=u;this.origEnd=n;return t}let r=t;while(ru)break;else++r}this.origStart=u+r;const s=r;while(r=n)break;else++r}this.origEnd=n+r;return s}}class Node{static addStringTerminator(e,t,u){if(u[u.length-1]==="\n")return u;const n=Node.endOfWhiteSpace(e,t);return n>=e.length||e[n]==="\n"?u+"\n":u}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return true;const s=e[t-1];if(s&&s!=="\n")return false;if(n){if(r!==n)return false}else{if(r!==u.DIRECTIVES_END&&r!==u.DOCUMENT_END)return false}const i=e[t+1];const o=e[t+2];if(i!==r||o!==r)return false;const a=e[t+3];return!a||a==="\n"||a==="\t"||a===" "}static endOfIdentifier(e,t){let u=e[t];const n=u==="<";const r=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(u&&r.indexOf(u)===-1)u=e[t+=1];if(n&&u===">")t+=1;return t}static endOfIndent(e,t){let u=e[t];while(u===" ")u=e[t+=1];return t}static endOfLine(e,t){let u=e[t];while(u&&u!=="\n")u=e[t+=1];return t}static endOfWhiteSpace(e,t){let u=e[t];while(u==="\t"||u===" ")u=e[t+=1];return t}static startOfLine(e,t){let u=e[t-1];if(u==="\n")return t;while(u&&u!=="\n")u=e[t-=1];return t+1}static endOfBlockIndent(e,t,u){const n=Node.endOfIndent(e,u);if(n>u+t){return n}else{const t=Node.endOfWhiteSpace(e,n);const u=e[t];if(!u||u==="\n")return t}return null}static atBlank(e,t,u){const n=e[t];return n==="\n"||n==="\t"||n===" "||u&&!n}static nextNodeIsIndented(e,t,u){if(!e||t<0)return false;if(t>0)return true;return u&&e==="-"}static normalizeOffset(e,t){const u=e[t];return!u?t:u!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,u){let n=0;let r=false;let s="";let i=e[t+1];while(i===" "||i==="\t"||i==="\n"){switch(i){case"\n":n=0;t+=1;s+="\n";break;case"\t":if(n<=u)r=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":n+=1;t+=1;break}i=e[t+1]}if(!s)s=" ";if(i&&n<=u)r=true;return{fold:s,offset:t,error:r}}constructor(e,t,u){Object.defineProperty(this,"context",{value:u||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,u){if(!this.context)return null;const{src:n}=this.context;const r=this.props[e];return r&&n[r.start]===t?n.slice(r.start+(u?1:0),r.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:u}=this.valueRange;return e!==u||Node.atBlank(t,u-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tu.setOrigRange(e,t));return t}toString(){const{context:{src:e},range:t,value:u}=this;if(u!=null)return u;const n=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,n)}}class YAMLError extends Error{constructor(e,t,u){if(!u||!(t instanceof Node))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=u;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new Range(this.offset,this.offset+1);const t=e&&getLinePos(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:u}=this.linePos.start;this.message+=` at line ${t}, column ${u}`;const n=e&&getPrettyContext(this.linePos,e);if(n)this.message+=`:\n\n${n}\n`}delete this.source}}class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}function _defineProperty(e,t,u){if(t in e){Object.defineProperty(e,t,{value:u,enumerable:true,configurable:true,writable:true})}else{e[t]=u}return e}class PlainValue extends Node{static endOfLine(e,t,u){let n=e[t];let r=t;while(n&&n!=="\n"){if(u&&(n==="["||n==="]"||n==="{"||n==="}"||n===","))break;const t=e[r+1];if(n===":"&&(!t||t==="\n"||t==="\t"||t===" "||u&&t===","))break;if((n===" "||n==="\t")&&t==="#")break;r+=1;n=t}return r}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:u}=this.context;let n=u[t-1];while(es?u.slice(s,n+1):e}else{r+=e}}const s=u[e];switch(s){case"\t":{const e="Plain value cannot start with a tab character";const t=[new YAMLSemanticError(this,e)];return{errors:t,str:r}}case"@":case"`":{const e=`Plain value cannot start with reserved character ${s}`;const t=[new YAMLSemanticError(this,e)];return{errors:t,str:r}}default:return r}}parseBlockValue(e){const{indent:t,inFlow:u,src:n}=this.context;let r=e;let s=e;for(let e=n[r];e==="\n";e=n[r]){if(Node.atDocumentBoundary(n,r+1))break;const e=Node.endOfBlockIndent(n,t,r+1);if(e===null||n[e]==="#")break;if(n[e]==="\n"){r=e}else{s=PlainValue.endOfLine(n,e,u);r=s}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=s;return s}parse(e,t){this.context=e;const{inFlow:u,src:n}=e;let r=t;const s=n[r];if(s&&s!=="#"&&s!=="\n"){r=PlainValue.endOfLine(n,t,u)}this.valueRange=new Range(t,r);r=Node.endOfWhiteSpace(n,r);r=this.parseComment(r);if(!this.hasComment||this.valueRange.isEmpty()){r=this.parseBlockValue(r)}return r}}t.Char=u;t.Node=Node;t.PlainValue=PlainValue;t.Range=Range;t.Type=n;t.YAMLError=YAMLError;t.YAMLReferenceError=YAMLReferenceError;t.YAMLSemanticError=YAMLSemanticError;t.YAMLSyntaxError=YAMLSyntaxError;t.YAMLWarning=YAMLWarning;t._defineProperty=_defineProperty;t.defaultTagPrefix=r;t.defaultTags=s},519:function(e){e.exports=require("next/dist/compiled/semver")},521:function(e,t,u){e.exports=u(792).YAML},525:function(e,t,u){"use strict";var n=u(513);var r=u(310);var s=u(626);function createMap(e,t,u){const n=new r.YAMLMap(e);if(t instanceof Map){for(const[r,s]of t)n.items.push(e.createPair(r,s,u))}else if(t&&typeof t==="object"){for(const r of Object.keys(t))n.items.push(e.createPair(r,t[r],u))}if(typeof e.sortMapEntries==="function"){n.items.sort(e.sortMapEntries)}return n}const i={createNode:createMap,default:true,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:r.resolveMap};function createSeq(e,t,u){const n=new r.YAMLSeq(e);if(t&&t[Symbol.iterator]){for(const r of t){const t=e.createNode(r,u.wrapScalars,null,u);n.items.push(t)}}return n}const o={createNode:createSeq,default:true,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:r.resolveSeq};const a={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify(e,t,u,n){t=Object.assign({actualString:true},t);return r.stringifyString(e,t,u,n)},options:r.strOptions};const c=[i,o,a];const l=e=>typeof e==="bigint"||Number.isInteger(e);const f=(e,t,u)=>r.intOptions.asBigInt?BigInt(e):parseInt(t,u);function intStringify(e,t,u){const{value:n}=e;if(l(n)&&n>=0)return u+n.toString(t);return r.stringifyNumber(e)}const h={identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr};const D={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:r.boolOptions,stringify:({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr};const p={identify:e=>l(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>f(e,t,8),options:r.intOptions,stringify:e=>intStringify(e,8,"0o")};const A={identify:l,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>f(e,e,10),options:r.intOptions,stringify:r.stringifyNumber};const d={identify:e=>l(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>f(e,t,16),options:r.intOptions,stringify:e=>intStringify(e,16,"0x")};const g={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const C={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};const F={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,u){const n=t||u;const s=new r.Scalar(parseFloat(e));if(n&&n[n.length-1]==="0")s.minFractionDigits=n.length;return s},stringify:r.stringifyNumber};const E=c.concat([h,D,p,A,d,g,C,F]);const w=e=>typeof e==="bigint"||Number.isInteger(e);const B=({value:e})=>JSON.stringify(e);const y=[i,o,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify:B},{identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:B},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:B},{identify:w,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>r.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>w(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:B}];y.scalarFallback=(e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)});const m=({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr;const S=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve$1(e,t,u){let n=t.replace(/_/g,"");if(r.intOptions.asBigInt){switch(u){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}const t=BigInt(n);return e==="-"?BigInt(-1)*t:t}const s=parseInt(n,u);return e==="-"?-1*s:s}function intStringify$1(e,t,u){const{value:n}=e;if(S(n)){const e=n.toString(t);return n<0?"-"+u+e.substr(1):u+e}return r.stringifyNumber(e)}const b=c.concat([{identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:r.boolOptions,stringify:m},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:r.boolOptions,stringify:m},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,2),stringify:e=>intStringify$1(e,2,"0b")},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,8),stringify:e=>intStringify$1(e,8,"0")},{identify:S,default:true,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,u)=>intResolve$1(t,u,10),stringify:r.stringifyNumber},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,16),stringify:e=>intStringify$1(e,16,"0x")},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const u=new r.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")u.minFractionDigits=e.length}return u},stringify:r.stringifyNumber}],s.binary,s.omap,s.pairs,s.set,s.intTime,s.floatTime,s.timestamp);const O={core:E,failsafe:c,json:y,yaml11:b};const M={binary:s.binary,bool:D,float:F,floatExp:C,floatNaN:g,floatTime:s.floatTime,int:A,intHex:d,intOct:p,intTime:s.intTime,map:i,null:h,omap:s.omap,pairs:s.pairs,seq:o,set:s.set,timestamp:s.timestamp};function findTagObject(e,t,u){if(t){const e=u.filter(e=>e.tag===t);const n=e.find(e=>!e.format)||e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return u.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)}function createNode(e,t,u){if(e instanceof r.Node)return e;const{defaultPrefix:n,onTagObj:s,prevObjects:a,schema:c,wrapScalars:l}=u;if(t&&t.startsWith("!!"))t=n+t.slice(2);let f=findTagObject(e,t,c.tags);if(!f){if(typeof e.toJSON==="function")e=e.toJSON();if(typeof e!=="object")return l?new r.Scalar(e):e;f=e instanceof Map?i:e[Symbol.iterator]?o:i}if(s){s(f);delete u.onTagObj}const h={};if(e&&typeof e==="object"&&a){const t=a.get(e);if(t){const e=new r.Alias(t);u.aliasNodes.push(e);return e}h.value=e;a.set(e,h)}h.node=f.createNode?f.createNode(u.schema,e,u):l?new r.Scalar(e):e;if(t&&h.node instanceof r.Node)h.node.tag=t;return h.node}function getSchemaTags(e,t,u,n){let r=e[n.replace(/\W/g,"")];if(!r){const t=Object.keys(e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${n}"; use one of ${t}`)}if(Array.isArray(u)){for(const e of u)r=r.concat(e)}else if(typeof u==="function"){r=u(r.slice())}for(let e=0;eJSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${u}"; use one of ${e}`)}r[e]=n}}return r}const N=(e,t)=>e.keyt.key?1:0;class Schema{constructor({customTags:e,merge:t,schema:u,sortMapEntries:n,tags:r}){this.merge=!!t;this.name=u;this.sortMapEntries=n===true?N:n||null;if(!e&&r)s.warnOptionDeprecation("tags","customTags");this.tags=getSchemaTags(O,M,e||r,u)}createNode(e,t,u,n){const r={defaultPrefix:Schema.defaultPrefix,schema:this,wrapScalars:t};const s=n?Object.assign(n,r):r;return createNode(e,u,s)}createPair(e,t,u){if(!u)u={wrapScalars:true};const n=this.createNode(e,u.wrapScalars,null,u);const s=this.createNode(t,u.wrapScalars,null,u);return new r.Pair(n,s)}}n._defineProperty(Schema,"defaultPrefix",n.defaultTagPrefix);n._defineProperty(Schema,"defaultTags",n.defaultTags);t.Schema=Schema},526:function(e,t,u){"use strict";const n=u(277);const r=u(282);const s=u(747);const i=(e,t,u)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``)}if(typeof t!=="string"){throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``)}try{e=s.realpathSync(e)}catch(t){if(t.code==="ENOENT"){e=n.resolve(e)}else if(u){return null}else{throw t}}const i=n.join(e,"noop.js");const o=()=>r._resolveFilename(t,{id:i,filename:i,paths:r._nodeModulePaths(e)});if(u){try{return o()}catch(e){return null}}return o()};e.exports=((e,t)=>i(e,t));e.exports.silent=((e,t)=>i(e,t,true))},548:function(e,t,u){"use strict";var n=u(370);var r=u(591);var s=Array.prototype.slice;e.exports=LineColumnFinder;function LineColumnFinder(e,t){if(!(this instanceof LineColumnFinder)){if(typeof t==="number"){return new LineColumnFinder(e).fromIndex(t)}return new LineColumnFinder(e,t)}this.str=e||"";this.lineToIndex=buildLineToIndex(this.str);t=t||{};this.origin=typeof t.origin==="undefined"?1:t.origin}LineColumnFinder.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e)){return null}var t=findLowerIndexInRangeArray(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};LineColumnFinder.prototype.toIndex=function(e,t){if(typeof t==="undefined"){if(n(e)&&e.length>=2){return this.toIndex(e[0],e[1])}if(r(e)&&"line"in e&&("col"in e||"column"in e)){return this.toIndex(e.line,"col"in e?e.col:e.column)}return-1}if(isNaN(e)||isNaN(t)){return-1}e-=this.origin;t-=this.origin;if(e>=0&&t>=0&&e=t[t.length-1]){return t.length-1}var u=0,n=t.length-2,r;while(u>1);if(e=t[r+1]){u=r+1}else{u=r;break}}return u}},560:function(e,t,u){"use strict";let{dirname:n,join:r}=u(277);let s=u(241);let i=u(747);function fromBase64(e){if(Buffer){return Buffer.from(e,"base64").toString()}else{return window.atob(e)}}class PreviousMap{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e);this.inline=this.startWith(this.annotation,"data:");let u=t.map?t.map.prev:undefined;let r=this.loadMap(t.from,u);if(!this.mapFile&&t.from){this.mapFile=t.from}if(this.mapFile)this.root=n(this.mapFile);if(r)this.text=r}consumer(){if(!this.consumerCache){this.consumerCache=new s.SourceMapConsumer(this.text)}return this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t}getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm);if(t&&t.length>0){let e=t[t.length-1];if(e){this.annotation=this.getAnnotationURL(e)}}}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/;let u=/^data:application\/json;base64,/;let n=/^data:application\/json;charset=utf-?8,/;let r=/^data:application\/json,/;if(n.test(e)||r.test(e)){return decodeURIComponent(e.substr(RegExp.lastMatch.length))}if(t.test(e)||u.test(e)){return fromBase64(e.substr(RegExp.lastMatch.length))}let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}loadFile(e){this.root=n(e);if(i.existsSync&&i.existsSync(e)){this.mapFile=e;return i.readFileSync(e,"utf-8").toString().trim()}}loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){let u=t(e);if(u){let e=this.loadFile(u);if(!e){throw new Error("Unable to load previous source map: "+u.toString())}return e}}else if(t instanceof s.SourceMapConsumer){return s.SourceMapGenerator.fromSourceMap(t).toString()}else if(t instanceof s.SourceMapGenerator){return t.toString()}else if(this.isMap(t)){return JSON.stringify(t)}else{throw new Error("Unsupported previous source map format: "+t.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){let t=this.annotation;if(e)t=r(n(e),t);return this.loadFile(t)}}isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}}e.exports=PreviousMap},585:function(e,t,u){"use strict";let n=u(893);class Result{constructor(e,t,u){this.processor=e;this.messages=[];this.root=t;this.opts=u;this.css=undefined;this.map=undefined}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){t.plugin=this.lastPlugin.postcssPlugin}}let u=new n(e,t);this.messages.push(u);return u}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}}e.exports=Result},587:function(e,t,u){"use strict";let n=u(233);let r=u(249);let s=u(698);let i=u(990);let o=u(184);let a=u(880);let c=u(893);let l=u(374);let f=u(149);let h=u(585);let D=u(54);let p=u(439);let A=u(430);let d=u(301);let g=u(847);let C=u(7);function postcss(...e){if(e.length===1&&Array.isArray(e[0])){e=e[0]}return new o(e,postcss)}postcss.plugin=function plugin(e,t){if(console&&console.warn){console.warn("postcss.plugin was deprecated. Migration guide:\n"+"https://evilmartians.com/chronicles/postcss-8-plugin-migration");if(process.env.LANG&&process.env.LANG.startsWith("cn")){console.warn("postcss.plugin 被弃用. 迁移指南:\n"+"https://www.w3ctech.com/topic/2226")}}function creator(...u){let n=t(...u);n.postcssPlugin=e;n.postcssVersion=(new o).version;return n}let u;Object.defineProperty(creator,"postcss",{get(){if(!u)u=creator();return u}});creator.process=function(e,t,u){return postcss([creator(u)]).process(e,t)};return creator};postcss.stringify=a;postcss.parse=p;postcss.list=A;postcss.comment=(e=>new l(e));postcss.atRule=(e=>new f(e));postcss.decl=(e=>new r(e));postcss.rule=(e=>new d(e));postcss.root=(e=>new g(e));postcss.CssSyntaxError=n;postcss.Declaration=r;postcss.Container=i;postcss.Comment=l;postcss.Warning=c;postcss.AtRule=f;postcss.Result=h;postcss.Input=D;postcss.Rule=d;postcss.Root=g;postcss.Node=C;s.registerPostcss(postcss);e.exports=postcss},591:function(e,t,u){"use strict";var n=u(370);e.exports=function isObject(e){return e!=null&&typeof e==="object"&&n(e)===false}},592:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldHighlight=shouldHighlight;t.getChalk=getChalk;t.default=highlight;var n=_interopRequireWildcard(u(968));var r=_interopRequireDefault(u(745));var s=_interopRequireDefault(u(736));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var u={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var s=n?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(u,r,s)}else{u[r]=e[r]}}}u.default=e;if(t){t.set(e,u)}return u}function getDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}const i=/\r\n|[\n\r\u2028\u2029]/;const o=/^[a-z][\w-]*$/i;const a=/^[()[\]{}]$/;function getTokenType(e){const[t,u]=e.slice(-2);const s=(0,n.matchToToken)(e);if(s.type==="name"){if(r.default.keyword.isReservedWordES6(s.value)){return"keyword"}if(o.test(s.value)&&(u[t-1]==="<"||u.substr(t-2,2)=="n(e)).join("\n")}else{return t[0]}})}function shouldHighlight(e){return s.default.supportsColor||e.forceColor}function getChalk(e){let t=s.default;if(e.forceColor){t=new s.default.constructor({enabled:true,level:1})}return t}function highlight(e,t={}){if(shouldHighlight(t)){const u=getChalk(t);const n=getDefs(u);return highlightTokens(n,e)}else{return e}}},594:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtensionDescription=getExtensionDescription;t.ExplorerBase=void 0;var n=_interopRequireDefault(u(277));var r=u(690);var s=u(208);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ExplorerBase{constructor(e){if(e.cache===true){this.loadCache=new Map;this.searchCache=new Map}this.config=e;this.validateConfig()}clearLoadCache(){if(this.loadCache){this.loadCache.clear()}}clearSearchCache(){if(this.searchCache){this.searchCache.clear()}}clearCaches(){this.clearLoadCache();this.clearSearchCache()}validateConfig(){const e=this.config;e.searchPlaces.forEach(t=>{const u=n.default.extname(t)||"noExt";const r=e.loaders[u];if(!r){throw new Error(`No loader specified for ${getExtensionDescription(t)}, so searchPlaces item "${t}" is invalid`)}if(typeof r!=="function"){throw new Error(`loader for ${getExtensionDescription(t)} is not a function (type provided: "${typeof r}"), so searchPlaces item "${t}" is invalid`)}})}shouldSearchStopWithResult(e){if(e===null)return false;if(e.isEmpty&&this.config.ignoreEmptySearchPlaces)return false;return true}nextDirectoryToSearch(e,t){if(this.shouldSearchStopWithResult(t)){return null}const u=nextDirUp(e);if(u===e||e===this.config.stopDir){return null}return u}loadPackageProp(e,t){const u=r.loaders.loadJson(e,t);const n=(0,s.getPropertyByPath)(u,this.config.packageProp);return n||null}getLoaderEntryForFile(e){if(n.default.basename(e)==="package.json"){const e=this.loadPackageProp.bind(this);return e}const t=n.default.extname(e)||"noExt";const u=this.config.loaders[t];if(!u){throw new Error(`No loader specified for ${getExtensionDescription(e)}`)}return u}loadedContentToCosmiconfigResult(e,t){if(t===null){return null}if(t===undefined){return{filepath:e,config:undefined,isEmpty:true}}return{config:t,filepath:e}}validateFilePath(e){if(!e){throw new Error("load must pass a non-empty string")}}}t.ExplorerBase=ExplorerBase;function nextDirUp(e){return n.default.dirname(e)}function getExtensionDescription(e){const t=n.default.extname(e);return t?`extension "${t}"`:"files without extensions"}},622:function(e){"use strict";const t="'".charCodeAt(0);const u='"'.charCodeAt(0);const n="\\".charCodeAt(0);const r="/".charCodeAt(0);const s="\n".charCodeAt(0);const i=" ".charCodeAt(0);const o="\f".charCodeAt(0);const a="\t".charCodeAt(0);const c="\r".charCodeAt(0);const l="[".charCodeAt(0);const f="]".charCodeAt(0);const h="(".charCodeAt(0);const D=")".charCodeAt(0);const p="{".charCodeAt(0);const A="}".charCodeAt(0);const d=";".charCodeAt(0);const g="*".charCodeAt(0);const C=":".charCodeAt(0);const F="@".charCodeAt(0);const E=/[\t\n\f\r "#'()/;[\\\]{}]/g;const w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const B=/.[\n"'(/\\]/;const y=/[\da-f]/i;e.exports=function tokenizer(e,m={}){let S=e.css.valueOf();let b=m.ignoreErrors;let O,M,N,T,L;let x,R,v,_,$;let I=S.length;let P=0;let Y=[];let j=[];function position(){return P}function unclosed(t){throw e.error("Unclosed "+t,P)}function endOfFile(){return j.length===0&&P>=I}function nextToken(e){if(j.length)return j.pop();if(P>=I)return;let m=e?e.ignoreUnclosed:false;O=S.charCodeAt(P);switch(O){case s:case i:case a:case c:case o:{M=P;do{M+=1;O=S.charCodeAt(M)}while(O===i||O===s||O===a||O===c||O===o);$=["space",S.slice(P,M)];P=M-1;break}case l:case f:case p:case A:case C:case d:case D:{let e=String.fromCharCode(O);$=[e,e,P];break}case h:{v=Y.length?Y.pop()[1]:"";_=S.charCodeAt(P+1);if(v==="url"&&_!==t&&_!==u&&_!==i&&_!==s&&_!==a&&_!==o&&_!==c){M=P;do{x=false;M=S.indexOf(")",M+1);if(M===-1){if(b||m){M=P;break}else{unclosed("bracket")}}R=M;while(S.charCodeAt(R-1)===n){R-=1;x=!x}}while(x);$=["brackets",S.slice(P,M+1),P,M];P=M}else{M=S.indexOf(")",P+1);T=S.slice(P,M+1);if(M===-1||B.test(T)){$=["(","(",P]}else{$=["brackets",T,P,M];P=M}}break}case t:case u:{N=O===t?"'":'"';M=P;do{x=false;M=S.indexOf(N,M+1);if(M===-1){if(b||m){M=P+1;break}else{unclosed("string")}}R=M;while(S.charCodeAt(R-1)===n){R-=1;x=!x}}while(x);$=["string",S.slice(P,M+1),P,M];P=M;break}case F:{E.lastIndex=P+1;E.test(S);if(E.lastIndex===0){M=S.length-1}else{M=E.lastIndex-2}$=["at-word",S.slice(P,M+1),P,M];P=M;break}case n:{M=P;L=true;while(S.charCodeAt(M+1)===n){M+=1;L=!L}O=S.charCodeAt(M+1);if(L&&O!==r&&O!==i&&O!==s&&O!==a&&O!==c&&O!==o){M+=1;if(y.test(S.charAt(M))){while(y.test(S.charAt(M+1))){M+=1}if(S.charCodeAt(M+1)===i){M+=1}}}$=["word",S.slice(P,M+1),P,M];P=M;break}default:{if(O===r&&S.charCodeAt(P+1)===g){M=S.indexOf("*/",P+2)+1;if(M===0){if(b||m){M=S.length}else{unclosed("comment")}}$=["comment",S.slice(P,M+1),P,M];P=M}else{w.lastIndex=P+1;w.test(S);if(w.lastIndex===0){M=S.length-1}else{M=w.lastIndex-2}$=["word",S.slice(P,M+1),P,M];Y.push($);P=M}break}}P++;return $}function back(e){j.push(e)}return{back:back,nextToken:nextToken,endOfFile:endOfFile,position:position}}},626:function(e,t,u){"use strict";var n=u(513);var r=u(310);const s={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const u=r.resolveString(e,t);if(typeof Buffer==="function"){return Buffer.from(u,"base64")}else if(typeof atob==="function"){const e=atob(u.replace(/[\n\r]/g,""));const t=new Uint8Array(e.length);for(let u=0;u{let a;if(typeof Buffer==="function"){a=u instanceof Buffer?u.toString("base64"):Buffer.from(u.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t1){const e="Each pair must have its own sequence indicator";throw new n.YAMLSemanticError(t,e)}const e=s.items[0]||new r.Pair;if(s.commentBefore)e.commentBefore=e.commentBefore?`${s.commentBefore}\n${e.commentBefore}`:s.commentBefore;if(s.comment)e.comment=e.comment?`${s.comment}\n${e.comment}`:s.comment;s=e}u.items[e]=s instanceof r.Pair?s:new r.Pair(s)}return u}function createPairs(e,t,u){const n=new r.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";for(const r of t){let t,s;if(Array.isArray(r)){if(r.length===2){t=r[0];s=r[1]}else throw new TypeError(`Expected [key, value] tuple: ${r}`)}else if(r&&r instanceof Object){const e=Object.keys(r);if(e.length===1){t=e[0];s=r[t]}else throw new TypeError(`Expected { key: value } tuple: ${r}`)}else{t=r}const i=e.createPair(t,s,u);n.items.push(i)}return n}const i={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};class YAMLOMap extends r.YAMLSeq{constructor(){super();n._defineProperty(this,"add",r.YAMLMap.prototype.add.bind(this));n._defineProperty(this,"delete",r.YAMLMap.prototype.delete.bind(this));n._defineProperty(this,"get",r.YAMLMap.prototype.get.bind(this));n._defineProperty(this,"has",r.YAMLMap.prototype.has.bind(this));n._defineProperty(this,"set",r.YAMLMap.prototype.set.bind(this));this.tag=YAMLOMap.tag}toJSON(e,t){const u=new Map;if(t&&t.onCreate)t.onCreate(u);for(const e of this.items){let n,s;if(e instanceof r.Pair){n=r.toJSON(e.key,"",t);s=r.toJSON(e.value,n,t)}else{n=r.toJSON(e,"",t)}if(u.has(n))throw new Error("Ordered maps must not include duplicate keys");u.set(n,s)}return u}}n._defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,t){const u=parsePairs(e,t);const s=[];for(const{key:e}of u.items){if(e instanceof r.Scalar){if(s.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new n.YAMLSemanticError(t,e)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,u)}function createOMap(e,t,u){const n=createPairs(e,t,u);const r=new YAMLOMap;r.items=n.items;return r}const o={identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};class YAMLSet extends r.YAMLMap{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof r.Pair?e:new r.Pair(e);const u=r.findPair(this.items,t.key);if(!u)this.items.push(t)}get(e,t){const u=r.findPair(this.items,e);return!t&&u instanceof r.Pair?u.key instanceof r.Scalar?u.key.value:u.key:u}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const u=r.findPair(this.items,e);if(u&&!t){this.items.splice(this.items.indexOf(u),1)}else if(!u&&t){this.items.push(new r.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,u){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,u);else throw new Error("Set items must all have null values")}}n._defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const u=r.resolveMap(e,t);if(!u.hasAllNullValues())throw new n.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,u)}function createSet(e,t,u){const n=new YAMLSet;for(const r of t)n.items.push(e.createPair(r,null,u));return n}const a={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};const c=(e,t)=>{const u=t.split(":").reduce((e,t)=>e*60+Number(t),0);return e==="-"?-u:u};const l=({value:e})=>{if(isNaN(e)||!isFinite(e))return r.stringifyNumber(e);let t="";if(e<0){t="-";e=Math.abs(e)}const u=[e%60];if(e<60){u.unshift(0)}else{e=Math.round((e-u[0])/60);u.unshift(e%60);if(e>=60){e=Math.round((e-u[0])/60);u.unshift(e)}}return t+u.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")};const f={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,u)=>c(t,u.replace(/_/g,"")),stringify:l};const h={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,u)=>c(t,u.replace(/_/g,"")),stringify:l};const D={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:"+"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?"+")$"),resolve:(e,t,u,n,r,s,i,o,a)=>{if(o)o=(o+"00").substr(1,3);let l=Date.UTC(t,u-1,n,r||0,s||0,i||0,o||0);if(a&&a!=="Z"){let e=c(a[0],a.slice(1));if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function shouldWarn(e){const t=typeof process!=="undefined"&&process.env||{};if(e){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS!=="undefined")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!t.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS!=="undefined")return!YAML_SILENCE_WARNINGS;return!t.YAML_SILENCE_WARNINGS}function warn(e,t){if(shouldWarn(false)){const u=typeof process!=="undefined"&&process.emitWarning;if(u)u(e,t);else{console.warn(t?`${t}: ${e}`:e)}}}function warnFileDeprecation(e){if(shouldWarn(true)){const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}const p={};function warnOptionDeprecation(e,t){if(!p[e]&&shouldWarn(true)){p[e]=true;let u=`The option '${e}' will be removed in a future release`;u+=t?`, use '${t}' instead.`:".";warn(u,"DeprecationWarning")}}t.binary=s;t.floatTime=h;t.intTime=f;t.omap=o;t.pairs=i;t.set=a;t.timestamp=D;t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation},669:function(e){e.exports=require("util")},690:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loaders=void 0;let n;const r=function loadJs(e){if(n===undefined){n=u(402)}const t=n(e);return t};let s;const i=function loadJson(e,t){if(s===undefined){s=u(32)}try{const u=s(t);return u}catch(t){t.message=`JSON Error in ${e}:\n${t.message}`;throw t}};let o;const a=function loadYaml(e,t){if(o===undefined){o=u(521)}try{const u=o.parse(t,{prettyErrors:true});return u}catch(t){t.message=`YAML Error in ${e}:\n${t.message}`;throw t}};const c={loadJs:r,loadJson:i,loadYaml:a};t.loaders=c},693:function(e,t,u){"use strict";e=u.nmd(e);Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=loadConfig;t.getPostcssOptions=getPostcssOptions;t.exec=exec;t.normalizeSourceMap=normalizeSourceMap;t.normalizeSourceMapAfterPostcss=normalizeSourceMapAfterPostcss;var n=_interopRequireDefault(u(277));var r=_interopRequireDefault(u(282));var s=u(150);var i=u(471);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=e;const a=(e,t)=>new Promise((u,n)=>{e.stat(t,(e,t)=>{if(e){n(e)}u(t)})});function exec(e,t){const{resource:u,context:n}=t;const s=new r.default(u,o);s.paths=r.default._nodeModulePaths(n);s.filename=u;s._compile(e,u);return s.exports}async function loadConfig(e,t){const u=typeof t==="string"?n.default.resolve(t):n.default.dirname(e.resourcePath);let r;try{r=await a(e.fs,u)}catch(e){throw new Error(`No PostCSS config found in: ${u}`)}const o=(0,i.cosmiconfig)("postcss");let c;try{if(r.isFile()){c=await o.load(u)}else{c=await o.search(u)}}catch(e){throw e}if(!c){return{}}e.addDependency(c.filepath);if(c.isEmpty){return c}if(typeof c.config==="function"){const t={mode:e.mode,file:e.resourcePath,webpackLoaderContext:e};c.config=c.config(t)}c=(0,s.klona)(c);return c}function loadPlugin(e,t,u){try{if(!t||Object.keys(t).length===0){const t=require(e);if(t.default){return t.default}return t}const n=require(e);if(n.default){return n.default(t)}return n(t)}catch(t){throw new Error(`Loading PostCSS "${e}" plugin failed: ${t.message}\n\n(@${u})`)}}function pluginFactory(){const e=new Map;return t=>{if(typeof t==="undefined"){return e}if(Array.isArray(t)){for(const u of t){if(Array.isArray(u)){const[t,n]=u;e.set(t,n)}else if(u&&typeof u==="function"){e.set(u)}else if(u&&Object.keys(u).length===1&&(typeof u[Object.keys(u)[0]]==="object"||typeof u[Object.keys(u)[0]]==="boolean")&&u[Object.keys(u)[0]]!==null){const[t]=Object.keys(u);const n=u[t];if(n===false){e.delete(t)}else{e.set(t,n)}}else if(u){e.set(u)}}}else{const u=Object.entries(t);for(const[t,n]of u){if(n===false){e.delete(t)}else{e.set(t,n)}}}return e}}function getPostcssOptions(e,t={},u={}){const r=e.resourcePath;let i=u;if(typeof i==="function"){i=i(e)}let o=[];try{const u=pluginFactory();if(t.config&&t.config.plugins){u(t.config.plugins)}u(i.plugins);o=[...u()].map(e=>{const[t,u]=e;if(typeof t==="string"){return loadPlugin(t,u,r)}return t})}catch(t){e.emitError(t)}const a=t.config||{};if(a.from){a.from=n.default.resolve(n.default.dirname(t.filepath),a.from)}if(a.to){a.to=n.default.resolve(n.default.dirname(t.filepath),a.to)}delete a.plugins;const c=(0,s.klona)(i);if(c.from){c.from=n.default.resolve(e.rootContext,c.from)}if(c.to){c.to=n.default.resolve(e.rootContext,c.to)}delete c.config;delete c.plugins;const l={from:r,to:r,map:false,...a,...c};if(typeof l.parser==="string"){try{l.parser=require(l.parser)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.parser}" parser failed: ${t.message}\n\n(@${r})`))}}if(typeof l.stringifier==="string"){try{l.stringifier=require(l.stringifier)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.stringifier}" stringifier failed: ${t.message}\n\n(@${r})`))}}if(typeof l.syntax==="string"){try{l.syntax=require(l.syntax)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.syntax}" syntax failed: ${t.message}\n\n(@${r})`))}}if(l.map===true){l.map={inline:true}}return{plugins:o,processOptions:l}}const c=/^[a-z]:[/\\]|^\\\\/i;const l=/^[a-z0-9+\-.]+:/i;function getURLType(e){if(e[0]==="/"){if(e[1]==="/"){return"scheme-relative"}return"path-absolute"}if(c.test(e)){return"path-absolute"}return l.test(e)?"absolute":"path-relative"}function normalizeSourceMap(e,t){let u=e;if(typeof u==="string"){u=JSON.parse(u)}delete u.file;const{sourceRoot:r}=u;delete u.sourceRoot;if(u.sources){u.sources=u.sources.map(e=>{const u=getURLType(e);if(u==="path-relative"||u==="path-absolute"){const s=u==="path-relative"&&r?n.default.resolve(r,n.default.normalize(e)):n.default.normalize(e);return n.default.relative(t,s)}return e})}return u}function normalizeSourceMapAfterPostcss(e,t){const u=e;delete u.file;u.sourceRoot="";u.sources=u.sources.map(e=>{if(e.indexOf("<")===0){return e}const u=getURLType(e);if(u==="path-relative"){return n.default.resolve(t,e)}return e});return u}},698:function(e,t,u){"use strict";let{isClean:n}=u(448);let r=u(52);let s=u(880);let i=u(112);let o=u(585);let a=u(439);let c=u(847);const l={root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"};const f=0;function isPromise(e){return typeof e==="object"&&typeof e.then==="function"}function getEvents(e){let t=false;let u=l[e.type];if(e.type==="decl"){t=e.prop.toLowerCase()}else if(e.type==="atrule"){t=e.name.toLowerCase()}if(t&&e.append){return[u,u+"-"+t,f,u+"Exit",u+"Exit-"+t]}else if(t){return[u,u+"-"+t,u+"Exit",u+"Exit-"+t]}else if(e.append){return[u,f,u+"Exit"]}else{return[u,u+"Exit"]}}function toStack(e){let t;if(e.type==="root"){t=["Root",f,"RootExit"]}else{t=getEvents(e)}return{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function cleanMarks(e){e[n]=false;if(e.nodes)e.nodes.forEach(e=>cleanMarks(e));return e}let h={};class LazyResult{constructor(e,t,u){this.stringified=false;this.processed=false;let n;if(typeof t==="object"&&t!==null&&t.type==="root"){n=cleanMarks(t)}else if(t instanceof LazyResult||t instanceof o){n=cleanMarks(t.root);if(t.map){if(typeof u.map==="undefined")u.map={};if(!u.map.inline)u.map.inline=false;u.map.prev=t.map}}else{let e=a;if(u.syntax)e=u.syntax.parse;if(u.parser)e=u.parser;if(e.parse)e=e.parse;try{n=e(t,u)}catch(e){this.processed=true;this.error=e}}this.result=new o(e,n,u);this.helpers={...h,result:this.result,postcss:h};this.plugins=this.processor.plugins.map(e=>{if(typeof e==="object"&&e.prepare){return{...e,...e.prepare(this.result)}}else{return e}})}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){if(process.env.NODE_ENV!=="production"){if(!("from"in this.opts)){i("Without `from` option PostCSS could generate wrong source map "+"and will not find Browserslist config. Set it to CSS file path "+"or to `undefined` to prevent this warning.")}}return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing){this.processing=this.runAsync()}return this.processing}sync(){if(this.error)throw this.error;if(this.processed)return this.result;this.processed=true;if(this.processing){throw this.getAsyncError()}for(let e of this.plugins){let t=this.runOnRoot(e);if(isPromise(t)){throw this.getAsyncError()}}this.prepareVisitors();if(this.hasListener){let e=this.result.root;while(!e[n]){e[n]=true;this.walkSync(e)}if(this.listeners.OnceExit){this.visitSync(this.listeners.OnceExit,e)}}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true;this.sync();let e=this.result.opts;let t=s;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let u=new r(t,this.result.root,this.result.opts);let n=u.generate();this.result.css=n[0];this.result.map=n[1];return this.result}walkSync(e){e[n]=true;let t=getEvents(e);for(let u of t){if(u===f){if(e.nodes){e.each(e=>{if(!e[n])this.walkSync(e)})}}else{let t=this.listeners[u];if(t){if(this.visitSync(t,e.toProxy()))return}}}}visitSync(e,t){for(let[u,n]of e){this.result.lastPlugin=u;let e;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!=="root"&&!t.parent)return true;if(isPromise(e)){throw this.getAsyncError()}}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){return e.Once(this.result.root,this.helpers)}else if(typeof e==="function"){return e(this.result.root,this.result)}}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let u=this.result.lastPlugin;try{if(t)t.addToError(e);this.error=e;if(e.name==="CssSyntaxError"&&!e.plugin){e.plugin=u.postcssPlugin;e.setMessage()}else if(u.postcssVersion){if(process.env.NODE_ENV!=="production"){let e=u.postcssPlugin;let t=u.postcssVersion;let n=this.result.processor.version;let r=t.split(".");let s=n.split(".");if(r[0]!==s[0]||parseInt(r[1])>parseInt(s[1])){console.error("Unknown error from PostCSS plugin. Your current PostCSS "+"version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}}}catch(e){if(console&&console.error)console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e0){let e=this.visitTick(t);if(isPromise(e)){try{await e}catch(e){let u=t[t.length-1].node;throw this.handleError(e,u)}}}}if(this.listeners.OnceExit){for(let[t,u]of this.listeners.OnceExit){this.result.lastPlugin=t;try{await u(e,this.helpers)}catch(e){throw this.handleError(e)}}}}this.processed=true;return this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,u)=>{if(!this.listeners[t])this.listeners[t]=[];this.listeners[t].push([e,u])};for(let t of this.plugins){if(typeof t==="object"){for(let u of["Root","Declaration","Rule","AtRule","Comment","DeclarationExit","RuleExit","AtRuleExit","CommentExit","RootExit","OnceExit"]){if(typeof t[u]==="object"){for(let n in t[u]){if(n==="*"){e(t,u,t[u][n])}else{e(t,u+"-"+n.toLowerCase(),t[u][n])}}}else if(typeof t[u]==="function"){e(t,u,t[u])}}}}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1];let{node:u,visitors:r}=t;if(u.type!=="root"&&!u.parent){e.pop();return}if(r.length>0&&t.visitorIndex{h=e});e.exports=LazyResult;c.registerLazyResult(LazyResult)},710:function(e){e.exports=require("loader-utils")},736:function(e){e.exports=require("next/dist/compiled/chalk")},745:function(e,t,u){(function(){"use strict";t.ast=u(928);t.code=u(818);t.keyword=u(864)})()},747:function(e){e.exports=require("fs")},780:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readFile=readFile;t.readFileSync=readFileSync;var n=_interopRequireDefault(u(747));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function fsReadFileAsync(e,t){return new Promise((u,r)=>{n.default.readFile(e,t,(e,t)=>{if(e){r(e);return}u(t)})})}async function readFile(e,t={}){const u=t.throwNotFound===true;try{const t=await fsReadFileAsync(e,"utf8");return t}catch(e){if(u===false&&e.code==="ENOENT"){return null}throw e}}function readFileSync(e,t={}){const u=t.throwNotFound===true;try{const t=n.default.readFileSync(e,"utf8");return t}catch(e){if(u===false&&e.code==="ENOENT"){return null}throw e}}},792:function(e,t,u){"use strict";var n=u(513);var r=u(63);u(310);var s=u(192);var i=u(525);var o=u(626);function createNode(e,t=true,u){if(u===undefined&&typeof t==="string"){u=t;t=true}const n=Object.assign({},s.Document.defaults[s.defaultOptions.version],s.defaultOptions);const r=new i.Schema(n);return r.createNode(e,t,u)}class Document extends s.Document{constructor(e){super(Object.assign({},s.defaultOptions,e))}}function parseAllDocuments(e,t){const u=[];let n;for(const s of r.parse(e)){const e=new Document(t);e.parse(s,n);u.push(e);n=e}return u}function parseDocument(e,t){const u=r.parse(e);const s=new Document(t).parse(u[0]);if(u.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new n.YAMLSemanticError(u[1],e))}return s}function parse(e,t){const u=parseDocument(e,t);u.warnings.forEach(e=>o.warn(e));if(u.errors.length>0)throw u.errors[0];return u.toJSON()}function stringify(e,t){const u=new Document(t);u.contents=e;return String(u)}const a={createNode:createNode,defaultOptions:s.defaultOptions,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:r.parse,parseDocument:parseDocument,scalarOptions:s.scalarOptions,stringify:stringify};t.YAML=a},798:function(e){"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}stringify(e,t){this[e.type](e,t)}root(e){this.root=e;this.body(e);if(e.raws.after)this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft");let u=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+u+"*/",e)}decl(e,t){let u=this.raw(e,"between","colon");let n=e.prop+u+this.rawValue(e,"value");if(e.important){n+=e.raws.important||" !important"}if(t)n+=";";this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}atrule(e,t){let u="@"+e.name;let n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){u+=e.raws.afterName}else if(n){u+=" "}if(e.nodes){this.block(e,u+n)}else{let r=(e.raws.between||"")+(t?";":"");this.builder(u+n+r,e)}}body(e){let t=e.nodes.length-1;while(t>0){if(e.nodes[t].type!=="comment")break;t-=1}let u=this.raw(e,"semicolon");for(let n=0;n{r=e.raws[u];if(typeof r!=="undefined")return false})}}if(typeof r==="undefined")r=t[n];i.rawCache[n]=r;return r}rawSemicolon(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}});return t}rawEmptyBody(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}});return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk(u=>{let n=u.parent;if(n&&n!==e&&n.parent&&n.parent===e){if(typeof u.raws.before!=="undefined"){let e=u.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}});return t}rawBeforeComment(e,t){let u;e.walkComments(e=>{if(typeof e.raws.before!=="undefined"){u=e.raws.before;if(u.includes("\n")){u=u.replace(/[^\n]+$/,"")}return false}});if(typeof u==="undefined"){u=this.raw(t,null,"beforeDecl")}else if(u){u=u.replace(/\S/g,"")}return u}rawBeforeDecl(e,t){let u;e.walkDecls(e=>{if(typeof e.raws.before!=="undefined"){u=e.raws.before;if(u.includes("\n")){u=u.replace(/[^\n]+$/,"")}return false}});if(typeof u==="undefined"){u=this.raw(t,null,"beforeRule")}else if(u){u=u.replace(/\S/g,"")}return u}rawBeforeRule(e){let t;e.walk(u=>{if(u.nodes&&(u.parent!==e||e.first!==u)){if(typeof u.raws.before!=="undefined"){t=u.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}});if(t)t=t.replace(/\S/g,"");return t}rawBeforeClose(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}});if(t)t=t.replace(/\S/g,"");return t}rawBeforeOpen(e){let t;e.walk(e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}});return t}rawColon(e){let t;e.walkDecls(e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}});return t}beforeAfter(e,t){let u;if(e.type==="decl"){u=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){u=this.raw(e,null,"beforeComment")}else if(t==="before"){u=this.raw(e,null,"beforeRule")}else{u=this.raw(e,null,"beforeClose")}let n=e.parent;let r=0;while(n&&n.type!=="root"){r+=1;n=n.parent}if(u.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e=48&&e<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isWhiteSpace(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&n.indexOf(e)>=0}function isLineTerminator(e){return e===10||e===13||e===8232||e===8233}function fromCodePoint(e){if(e<=65535){return String.fromCharCode(e)}var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296);var u=String.fromCharCode((e-65536)%1024+56320);return t+u}r=new Array(128);for(i=0;i<128;++i){r[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95}s=new Array(128);for(i=0;i<128;++i){s[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95}function isIdentifierStartES5(e){return e<128?r[e]:u.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES5(e){return e<128?s[e]:u.NonAsciiIdentifierPart.test(fromCodePoint(e))}function isIdentifierStartES6(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES6(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(fromCodePoint(e))}e.exports={isDecimalDigit:isDecimalDigit,isHexDigit:isHexDigit,isOctalDigit:isOctalDigit,isWhiteSpace:isWhiteSpace,isLineTerminator:isLineTerminator,isIdentifierStartES5:isIdentifierStartES5,isIdentifierPartES5:isIdentifierPartES5,isIdentifierStartES6:isIdentifierStartES6,isIdentifierPartES6:isIdentifierPartES6}})()},835:function(e){e.exports=require("url")},847:function(e,t,u){"use strict";let n=u(990);let r,s;class Root extends n{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}removeChild(e,t){let u=this.index(e);if(!t&&u===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[u].raws.before}return super.removeChild(e)}normalize(e,t,u){let n=super.normalize(e);if(t){if(u==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of n){e.raws.before=t.raws.before}}}return n}toResult(e={}){let t=new r(new s,this,e);return t.stringify()}}Root.registerLazyResult=(e=>{r=e});Root.registerProcessor=(e=>{s=e});e.exports=Root},851:function(e){e.exports={type:"object",properties:{postcssOptions:{description:"Options to pass through to `Postcss`.",anyOf:[{type:"object",additionalProperties:true,properties:{config:{description:"Allows to specify PostCSS Config Path (https://github.com/postcss/postcss-loader#config)",anyOf:[{description:"Allows to specify the path to the configuration file",type:"string"},{description:"Enables/Disables autoloading config",type:"boolean"}]}}},{instanceof:"Function"}]},execute:{description:"Enables/Disables PostCSS parser support in 'CSS-in-JS' (https://github.com/postcss/postcss-loader#execute)",type:"boolean"},sourceMap:{description:"Enables/Disables generation of source maps (https://github.com/postcss/postcss-loader#sourcemap)",type:"boolean"}},additionalProperties:false}},864:function(e,t,u){(function(){"use strict";var t=u(818);function isStrictModeReservedWordES6(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return true;default:return false}}function isKeywordES5(e,t){if(!t&&e==="yield"){return false}return isKeywordES6(e,t)}function isKeywordES6(e,t){if(t&&isStrictModeReservedWordES6(e)){return true}switch(e.length){case 2:return e==="if"||e==="in"||e==="do";case 3:return e==="var"||e==="for"||e==="new"||e==="try";case 4:return e==="this"||e==="else"||e==="case"||e==="void"||e==="with"||e==="enum";case 5:return e==="while"||e==="break"||e==="catch"||e==="throw"||e==="const"||e==="yield"||e==="class"||e==="super";case 6:return e==="return"||e==="typeof"||e==="delete"||e==="switch"||e==="export"||e==="import";case 7:return e==="default"||e==="finally"||e==="extends";case 8:return e==="function"||e==="continue"||e==="debugger";case 10:return e==="instanceof";default:return false}}function isReservedWordES5(e,t){return e==="null"||e==="true"||e==="false"||isKeywordES5(e,t)}function isReservedWordES6(e,t){return e==="null"||e==="true"||e==="false"||isKeywordES6(e,t)}function isRestrictedWord(e){return e==="eval"||e==="arguments"}function isIdentifierNameES5(e){var u,n,r;if(e.length===0){return false}r=e.charCodeAt(0);if(!t.isIdentifierStartES5(r)){return false}for(u=1,n=e.length;u=n){return false}s=e.charCodeAt(u);if(!(56320<=s&&s<=57343)){return false}r=decodeUtf16(r,s)}if(!i(r)){return false}i=t.isIdentifierPartES6}return true}function isIdentifierES5(e,t){return isIdentifierNameES5(e)&&!isReservedWordES5(e,t)}function isIdentifierES6(e,t){return isIdentifierNameES6(e)&&!isReservedWordES6(e,t)}e.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:isRestrictedWord,isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:isIdentifierES5,isIdentifierES6:isIdentifierES6}})()},880:function(e,t,u){"use strict";let n=u(798);e.exports=function stringify(e,t){let u=new n(t);u.stringify(e)}},893:function(e){"use strict";class Warning{constructor(e,t={}){this.type="warning";this.text=e;if(t.node&&t.node.source){let e=t.node.positionBy(t);this.line=e.line;this.column=e.column}for(let e in t)this[e]=t[e]}toString(){if(this.node){return this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message}if(this.plugin){return this.plugin+": "+this.text}return this.text}}e.exports=Warning},898:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDirectory=getDirectory;t.getDirectorySync=getDirectorySync;var n=_interopRequireDefault(u(277));var r=u(501);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function getDirectory(e){const t=await(0,r.isDirectory)(e);if(t===true){return e}const u=n.default.dirname(e);return u}function getDirectorySync(e){const t=(0,r.isDirectorySync)(e);if(t===true){return e}const u=n.default.dirname(e);return u}},900:function(e){"use strict";e.exports=parseJson;function parseJson(e,t,u){u=u||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const u="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(u)}const n=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const r=n?+n[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(r!=null){const n=r<=u?0:r-u;const s=r+u>=e.length?e.length:r+u;t.message+=` while parsing near '${n===0?"":"..."}${e.slice(n,s)}${s===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,u*2)}'`}throw t}}},928:function(e){(function(){"use strict";function isExpression(e){if(e==null){return false}switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return true}return false}function isIterationStatement(e){if(e==null){return false}switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return true}return false}function isStatement(e){if(e==null){return false}switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return true}return false}function isSourceElement(e){return isStatement(e)||e!=null&&e.type==="FunctionDeclaration"}function trailingStatement(e){switch(e.type){case"IfStatement":if(e.alternate!=null){return e.alternate}return e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function isProblematicIfStatement(e){var t;if(e.type!=="IfStatement"){return false}if(e.alternate==null){return false}t=e.consequent;do{if(t.type==="IfStatement"){if(t.alternate==null){return true}}t=trailingStatement(t)}while(t);return false}e.exports={isExpression:isExpression,isStatement:isStatement,isIterationStatement:isIterationStatement,isSourceElement:isSourceElement,isProblematicIfStatement:isProblematicIfStatement,trailingStatement:trailingStatement}})()},934:function(e){"use strict";class SyntaxError extends Error{constructor(e){super(e);const{line:t,column:u,reason:n,plugin:r,file:s}=e;this.name="SyntaxError";this.message=`${this.name}\n\n`;if(typeof t!=="undefined"){this.message+=`(${t}:${u}) `}this.message+=r?`${r}: `:"";this.message+=s?`${s} `:" ";this.message+=`${n}`;const i=e.showSourceCode();if(i){this.message+=`\n\n${i}\n`}this.stack=false}}e.exports=SyntaxError},958:function(e,t,u){"use strict";let{cyan:n,gray:r,green:s,yellow:i,magenta:o}=u(153);let a=u(622);let c;function registerInput(e){c=e}const l={brackets:n,"at-word":n,comment:r,string:s,class:i,hash:o,call:n,"(":n,")":n,"{":i,"}":i,"[":i,"]":i,":":i,";":i};function getTokenType([e,t],u){if(e==="word"){if(t[0]==="."){return"class"}if(t[0]==="#"){return"hash"}}if(!u.endOfFile()){let e=u.nextToken();u.back(e);if(e[0]==="brackets"||e[0]==="(")return"call"}return e}function terminalHighlight(e){let t=a(new c(e),{ignoreErrors:true});let u="";while(!t.endOfFile()){let e=t.nextToken();let n=l[getTokenType(e,t)];if(n){u+=e[1].split(/\r?\n/).map(e=>n(e)).join("\n")}else{u+=e[1]}}return u}terminalHighlight.registerInput=registerInput;e.exports=terminalHighlight},964:function(e,t,u){"use strict";const n=u(38);e.exports=(e=>{const t=n();if(!e){return t[2].getFileName()}let u=false;t.shift();for(const n of t){const t=n.getFileName();if(typeof t!=="string"){continue}if(t===e){u=true;continue}if(t==="module.js"){continue}if(u&&t!==e){return t}}})},968:function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},986:function(e,t,u){"use strict";e.exports=u(425).default},990:function(e,t,u){"use strict";let{isClean:n}=u(448);let r=u(249);let s=u(374);let i=u(7);let o,a,c;function cleanSource(e){return e.map(e=>{if(e.nodes)e.nodes=cleanSource(e.nodes);delete e.source;return e})}function markDirtyUp(e){e[n]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){markDirtyUp(t)}}}function rebuild(e){if(e.type==="atrule"){Object.setPrototypeOf(e,c.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,a.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,r.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,s.prototype)}if(e.nodes){e.nodes.forEach(e=>{rebuild(e)})}}class Container extends i{push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let u,n;while(this.indexes[t]{let n;try{n=e(t,u)}catch(e){throw t.addToError(e)}if(n!==false&&t.walk){n=t.walk(e)}return n})}walkDecls(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="decl"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="decl"&&e.test(u.prop)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="decl"&&u.prop===e){return t(u,n)}})}walkRules(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="rule"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="rule"&&e.test(u.selector)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="rule"&&u.selector===e){return t(u,n)}})}walkAtRules(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="atrule"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="atrule"&&e.test(u.name)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="atrule"&&u.name===e){return t(u,n)}})}walkComments(e){return this.walk((t,u)=>{if(t.type==="comment"){return e(t,u)}})}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}insertBefore(e,t){e=this.index(e);let u=e===0?"prepend":false;let n=this.normalize(t,this.proxyOf.nodes[e],u).reverse();for(let t of n)this.proxyOf.nodes.splice(e,0,t);let r;for(let t in this.indexes){r=this.indexes[t];if(e<=r){this.indexes[t]=r+n.length}}this.markDirty();return this}insertAfter(e,t){e=this.index(e);let u=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of u)this.proxyOf.nodes.splice(e+1,0,t);let n;for(let t in this.indexes){n=this.indexes[t];if(e=e){this.indexes[u]=t-1}}this.markDirty();return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}replaceValues(e,t,u){if(!u){u=t;t={}}this.walkDecls(n=>{if(t.props&&!t.props.includes(n.prop))return;if(t.fast&&!n.value.includes(t.fast))return;n.value=n.value.replace(e,u)});this.markDirty();return this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if(typeof e==="string"){e=cleanSource(o(e).nodes)}else if(Array.isArray(e)){e=e.slice(0);for(let t of e){if(t.parent)t.parent.removeChild(t,"ignore")}}else if(e.type==="root"){e=e.nodes.slice(0);for(let t of e){if(t.parent)t.parent.removeChild(t,"ignore")}}else if(e.type){e=[e]}else if(e.prop){if(typeof e.value==="undefined"){throw new Error("Value field is missed in node creation")}else if(typeof e.value!=="string"){e.value=String(e.value)}e=[new r(e)]}else if(e.selector){e=[new a(e)]}else if(e.name){e=[new c(e)]}else if(e.text){e=[new s(e)]}else{throw new Error("Unknown node type in node creation")}let u=e.map(e=>{if(typeof e.markDirty!=="function")rebuild(e);if(e.parent)e.parent.removeChild(e);if(e[n])markDirtyUp(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this;return e});return u}getProxyProcessor(){return{set(e,t,u){if(e[t]===u)return true;e[t]=u;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true},get(e,t){if(t==="proxyOf"){return e}else if(!e[t]){return e[t]}else if(t==="each"||typeof t==="string"&&t.startsWith("walk")){return(...u)=>{return e[t](...u.map(e=>{if(typeof e==="function"){return(t,u)=>e(t.toProxy(),u)}else{return e}}))}}else if(t==="every"||t==="some"){return u=>{return e[t]((e,...t)=>u(e.toProxy(),...t))}}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map(e=>e.toProxy())}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}}}}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let e=this.lastEach;this.indexes[e]=0;return e}}Container.registerParse=(e=>{o=e});Container.registerRule=(e=>{a=e});Container.registerAtRule=(e=>{c=e});e.exports=Container}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file +module.exports=function(e,t){"use strict";var u={};function __webpack_require__(t){if(u[t]){return u[t].exports}var n=u[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(986)}t(__webpack_require__);return startup()}({0:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t.default=_default;var n=_interopRequireWildcard(u(592));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var u={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var s=n?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(u,r,s)}else{u[r]=e[r]}}}u.default=e;if(t){t.set(e,u)}return u}let r=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const s=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,u){const n=Object.assign({column:0,line:-1},e.start);const r=Object.assign({},n,{},e.end);const{linesAbove:s=2,linesBelow:i=3}=u||{};const o=n.line;const a=n.column;const c=r.line;const l=r.column;let f=Math.max(o-(s+1),0);let h=Math.min(t.length,c+i);if(o===-1){f=0}if(c===-1){h=t.length}const D=c-o;const p={};if(D){for(let e=0;e<=D;e++){const u=e+o;if(!a){p[u]=true}else if(e===0){const e=t[u-1].length;p[u]=[a,e-a+1]}else if(e===D){p[u]=[0,l]}else{const n=t[u-e].length;p[u]=[0,n]}}}else{if(a===l){if(a){p[o]=[a,0]}else{p[o]=true}}else{p[o]=[a,l-a]}}return{start:f,end:h,markerLines:p}}function codeFrameColumns(e,t,u={}){const r=(u.highlightCode||u.forceColor)&&(0,n.shouldHighlight)(u);const i=(0,n.getChalk)(u);const o=getDefs(i);const a=(e,t)=>{return r?e(t):t};const c=e.split(s);const{start:l,end:f,markerLines:h}=getMarkerLines(t,c,u);const D=t.start&&typeof t.start.column==="number";const p=String(f).length;const d=r?(0,n.default)(e,u):e;let A=d.split(s).slice(l,f).map((e,t)=>{const n=l+1+t;const r=` ${n}`.slice(-p);const s=` ${r} | `;const i=h[n];const c=!h[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," ");const r=i[1]||1;t=["\n ",a(o.gutter,s.replace(/\d/g," ")),n,a(o.marker,"^").repeat(r)].join("");if(c&&u.message){t+=" "+a(o.message,u.message)}}return[a(o.marker,">"),a(o.gutter,s),e,t].join("")}else{return` ${a(o.gutter,s)}${e}`}}).join("\n");if(u.message&&!D){A=`${" ".repeat(p+1)}${u.message}\n${A}`}if(r){return i.reset(A)}else{return A}}function _default(e,t,u,n={}){if(!r){r=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}u=Math.max(u,0);const s={start:{column:u,line:t}};return codeFrameColumns(e,s,n)}},7:function(e,t,u){"use strict";let n=u(233);let r=u(798);let{isClean:s}=u(448);let i=u(880);function cloneNode(e,t){let u=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)){continue}if(n==="proxyCache")continue;let r=e[n];let s=typeof r;if(n==="parent"&&s==="object"){if(t)u[n]=t}else if(n==="source"){u[n]=r}else if(Array.isArray(r)){u[n]=r.map(e=>cloneNode(e,u))}else{if(s==="object"&&r!==null)r=cloneNode(r);u[n]=r}}return u}class Node{constructor(e={}){this.raws={};this[s]=false;for(let t in e){if(t==="nodes"){this.nodes=[];for(let u of e[t]){if(typeof u.clone==="function"){this.append(u.clone())}else{this.append(u)}}}else{this[t]=e[t]}}}error(e,t={}){if(this.source){let u=this.positionBy(t);return this.source.input.error(e,u.line,u.column,t)}return new n(e)}warn(e,t,u){let n={node:this};for(let e in u)n[e]=u[e];return e.warn(t,n)}remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this}toString(e=i){if(e.stringify)e=e.stringify;let t="";e(this,e=>{t+=e});return t}clone(e={}){let t=cloneNode(this);for(let u in e){t[u]=e[u]}return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}replaceWith(...e){if(this.parent){let t=this;let u=false;for(let n of e){if(n===this){u=true}else if(u){this.parent.insertAfter(t,n);t=n}else{this.parent.insertBefore(t,n)}}if(!u){this.remove()}}return this}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){this.parent.insertBefore(this,e);return this}after(e){this.parent.insertAfter(this,e);return this}root(){let e=this;while(e.parent)e=e.parent;return e}raw(e,t){let u=new r;return u.raw(this,e,t)}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}toJSON(){let e={};for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t)){continue}if(t==="parent")continue;let u=this[t];if(Array.isArray(u)){e[t]=u.map(e=>{if(typeof e==="object"&&e.toJSON){return e.toJSON()}else{return e}})}else if(typeof u==="object"&&u.toJSON){e[t]=u.toJSON()}else{e[t]=u}}return e}positionInside(e){let t=this.toString();let u=this.source.start.column;let n=this.source.start.line;for(let r=0;re.root().toProxy()}else{return e[t]}}}}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[s]){this[s]=false;let e=this;while(e=e.parent){e[s]=false}}}get proxyOf(){return this}}e.exports=Node},24:function(e,t,u){"use strict";var n=u(669);var r=u(28);var s=function errorEx(e,t){if(!e||e.constructor!==String){t=e||{};e=Error.name}var u=function ErrorEXError(n){if(!this){return new ErrorEXError(n)}n=n instanceof Error?n.message:n||this.message;Error.call(this,n);Error.captureStackTrace(this,u);this.name=e;Object.defineProperty(this,"message",{configurable:true,enumerable:false,get:function(){var e=n.split(/\r?\n/g);for(var u in t){if(!t.hasOwnProperty(u)){continue}var s=t[u];if("message"in s){e=s.message(this[u],e)||e;if(!r(e)){e=[e]}}}return e.join("\n")},set:function(e){n=e}});var s=null;var i=Object.getOwnPropertyDescriptor(this,"stack");var o=i.get;var a=i.value;delete i.value;delete i.writable;i.set=function(e){s=e};i.get=function(){var e=(s||(o?o.call(this):a)).split(/\r?\n+/g);if(!s){e[0]=this.name+": "+this.message}var u=1;for(var n in t){if(!t.hasOwnProperty(n)){continue}var r=t[n];if("line"in r){var i=r.line(this[n]);if(i){e.splice(u++,0," "+i)}}if("stack"in r){r.stack(this[n],e)}}return e.join("\n")};Object.defineProperty(this,"stack",i)};if(Object.setPrototypeOf){Object.setPrototypeOf(u.prototype,Error.prototype);Object.setPrototypeOf(u,Error)}else{n.inherits(u,Error)}return u};s.append=function(e,t){return{message:function(u,n){u=u||t;if(u){n[0]+=" "+e.replace("%s",u.toString())}return n}}};s.line=function(e,t){return{line:function(u){u=u||t;if(u){return e.replace("%s",u.toString())}return null}}};e.exports=s},28:function(e){"use strict";e.exports=function isArrayish(e){if(!e){return false}return e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function}},32:function(e,t,u){"use strict";const n=u(24);const r=u(900);const{default:s}=u(254);const{codeFrameColumns:i}=u(0);const o=n("JSONError",{fileName:n.append("in %s"),codeFrame:n.append("\n\n%s\n")});e.exports=((e,t,u)=>{if(typeof t==="string"){u=t;t=null}try{try{return JSON.parse(e,t)}catch(u){r(e,t);throw u}}catch(t){t.message=t.message.replace(/\n/g,"");const n=t.message.match(/in JSON at position (\d+) while parsing near/);const r=new o(t);if(u){r.fileName=u}if(n&&n.length>0){const t=new s(e);const u=Number(n[1]);const o=t.locationForIndex(u);const a=i(e,{start:{line:o.line+1,column:o.column+1}},{highlightCode:true});r.codeFrame=a}throw r}})},38:function(e){"use strict";const t=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=((e,t)=>t);const t=(new Error).stack.slice(1);Error.prepareStackTrace=e;return t};e.exports=t;e.exports.default=t},40:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExplorerSync=void 0;var n=_interopRequireDefault(u(277));var r=u(594);var s=u(780);var i=u(270);var o=u(898);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ExplorerSync extends r.ExplorerBase{constructor(e){super(e)}searchSync(e=process.cwd()){const t=(0,o.getDirectorySync)(e);const u=this.searchFromDirectorySync(t);return u}searchFromDirectorySync(e){const t=n.default.resolve(process.cwd(),e);const u=()=>{const e=this.searchDirectorySync(t);const u=this.nextDirectoryToSearch(t,e);if(u){return this.searchFromDirectorySync(u)}const n=this.config.transform(e);return n};if(this.searchCache){return(0,i.cacheWrapperSync)(this.searchCache,t,u)}return u()}searchDirectorySync(e){for(const t of this.config.searchPlaces){const u=this.loadSearchPlaceSync(e,t);if(this.shouldSearchStopWithResult(u)===true){return u}}return null}loadSearchPlaceSync(e,t){const u=n.default.join(e,t);const r=(0,s.readFileSync)(u);const i=this.createCosmiconfigResultSync(u,r);return i}loadFileContentSync(e,t){if(t===null){return null}if(t.trim()===""){return undefined}const u=this.getLoaderEntryForFile(e);const n=u(e,t);return n}createCosmiconfigResultSync(e,t){const u=this.loadFileContentSync(e,t);const n=this.loadedContentToCosmiconfigResult(e,u);return n}loadSync(e){this.validateFilePath(e);const t=n.default.resolve(process.cwd(),e);const u=()=>{const e=(0,s.readFileSync)(t,{throwNotFound:true});const u=this.createCosmiconfigResultSync(t,e);const n=this.config.transform(u);return n};if(this.loadCache){return(0,i.cacheWrapperSync)(this.loadCache,t,u)}return u()}}t.ExplorerSync=ExplorerSync},52:function(e,t,u){"use strict";let{dirname:n,resolve:r,relative:s,sep:i}=u(277);let{pathToFileURL:o}=u(835);let a=u(241);class MapGenerator{constructor(e,t,u){this.stringify=e;this.mapOpts=u.map||{};this.root=t;this.opts=u}isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}return this.previous().length>0}previous(){if(!this.previousMaps){this.previousMaps=[];this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t)){this.previousMaps.push(t)}}})}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}let e=this.mapOpts.annotation;if(typeof e!=="undefined"&&e!==true){return false}if(this.previous().length){return this.previous().some(e=>e.inline)}return true}isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(e=>e.withContent())}return true}clearAnnotation(){if(this.mapOpts.annotation===false)return;let e;for(let t=this.root.nodes.length-1;t>=0;t--){e=this.root.nodes[t];if(e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0){this.root.removeChild(t)}}}setSourcesContent(){let e={};this.root.walk(t=>{if(t.source){let u=t.source.input.from;if(u&&!e[u]){e[u]=true;this.map.setSourceContent(this.toUrl(this.path(u)),t.source.input.css)}}})}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file));let u=e.root||n(e.file);let r;if(this.mapOpts.sourcesContent===false){r=new a.SourceMapConsumer(e.text);if(r.sourcesContent){r.sourcesContent=r.sourcesContent.map(()=>null)}}else{r=e.consumer()}this.map.applySourceMap(r,t,this.toUrl(this.path(u)))}}isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some(e=>e.annotation)}return true}toBase64(e){if(Buffer){return Buffer.from(e).toString("base64")}else{return window.btoa(unescape(encodeURIComponent(e)))}}addAnnotation(){let e;if(this.isInline()){e="data:application/json;base64,"+this.toBase64(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){e=this.mapOpts.annotation}else if(typeof this.mapOpts.annotation==="function"){e=this.mapOpts.annotation(this.opts.to,this.root)}else{e=this.outputFile()+".map"}let t="\n";if(this.css.includes("\r\n"))t="\r\n";this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){if(this.opts.to){return this.path(this.opts.to)}if(this.opts.from){return this.path(this.opts.from)}return"to.css"}generateMap(){this.generateString();if(this.isSourcesContent())this.setSourcesContent();if(this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}return[this.css,this.map]}path(e){if(e.indexOf("<")===0)return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?n(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){t=n(r(t,this.mapOpts.annotation))}e=s(t,e);return e}toUrl(e){if(i==="\\"){e=e.replace(/\\/g,"/")}return encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from){return this.toUrl(this.mapOpts.from)}else if(this.mapOpts.absolute){return o(e.source.input.from).toString()}else{return this.toUrl(this.path(e.source.input.from))}}generateString(){this.css="";this.map=new a.SourceMapGenerator({file:this.outputFile()});let e=1;let t=1;let u,n;this.stringify(this.root,(r,s,i)=>{this.css+=r;if(s&&i!=="end"){if(s.source&&s.source.start){this.map.addMapping({source:this.sourcePath(s),generated:{line:e,column:t-1},original:{line:s.source.start.line,column:s.source.start.column-1}})}else{this.map.addMapping({source:"",original:{line:1,column:0},generated:{line:e,column:t-1}})}}u=r.match(/\n/g);if(u){e+=u.length;n=r.lastIndexOf("\n");t=r.length-n}else{t+=r.length}if(s&&i!=="start"){let u=s.parent||{raws:{}};if(s.type!=="decl"||s!==u.last||u.raws.semicolon){if(s.source&&s.source.end){this.map.addMapping({source:this.sourcePath(s),generated:{line:e,column:t-2},original:{line:s.source.end.line,column:s.source.end.column-1}})}else{this.map.addMapping({source:"",original:{line:1,column:0},generated:{line:e,column:t-1}})}}}})}generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}let e="";this.stringify(this.root,t=>{e+=t});return[e]}}e.exports=MapGenerator},54:function(e,t,u){"use strict";let{fileURLToPath:n,pathToFileURL:r}=u(835);let{resolve:s,isAbsolute:i}=u(277);let{nanoid:o}=u(148);let a=u(548);let c=u(958);let l=u(233);let f=u(560);class Input{constructor(e,t={}){if(e===null||typeof e==="undefined"||typeof e==="object"&&!e.toString){throw new Error(`PostCSS received ${e} instead of CSS string`)}this.css=e.toString();if(this.css[0]==="\ufeff"||this.css[0]==="￾"){this.hasBOM=true;this.css=this.css.slice(1)}else{this.hasBOM=false}if(t.from){if(/^\w+:\/\//.test(t.from)||i(t.from)){this.file=t.from}else{this.file=s(t.from)}}let u=new f(this.css,t);if(u.text){this.map=u;let e=u.consumer().file;if(!this.file&&e)this.file=this.mapResolve(e)}if(!this.file){this.id=""}if(this.map)this.map.file=this.from}fromOffset(e){let t=a(this.css);this.fromOffset=(e=>t.fromIndex(e));return this.fromOffset(e)}error(e,t,u,n={}){let s;if(!u){let e=this.fromOffset(t);t=e.line;u=e.col}let i=this.origin(t,u);if(i){s=new l(e,i.line,i.column,i.source,i.file,n.plugin)}else{s=new l(e,t,u,this.css,this.file,n.plugin)}s.input={line:t,column:u,source:this.css};if(this.file){s.input.url=r(this.file).toString();s.input.file=this.file}return s}origin(e,t){if(!this.map)return false;let u=this.map.consumer();let s=u.originalPositionFor({line:e,column:t});if(!s.source)return false;let o;if(i(s.source)){o=r(s.source)}else{o=new URL(s.source,this.map.consumer().sourceRoot||r(this.map.mapFile))}let a={url:o.toString(),line:s.line,column:s.column};if(o.protocol==="file:"){a.file=n(o)}let c=u.sourceContentFor(s.source);if(c)a.source=c;return a}mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return s(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}}e.exports=Input;if(c&&c.registerInput){c.registerInput(Input)}},63:function(e,t,u){"use strict";var n=u(513);class BlankLine extends n.Node{constructor(){super(n.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;this.range=new n.Range(t,t+1);return t+1}}class CollectionItem extends n.Node{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:u,src:r}=e;let{atLineStart:s,lineStart:i}=e;if(!s&&this.type===n.Type.SEQ_ITEM)this.error=new n.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const o=s?t-i:e.indent;let a=n.Node.endOfWhiteSpace(r,t+1);let c=r[a];const l=c==="#";const f=[];let h=null;while(c==="\n"||c==="#"){if(c==="#"){const e=n.Node.endOfLine(r,a+1);f.push(new n.Range(a,e));a=e}else{s=true;i=a+1;const e=n.Node.endOfWhiteSpace(r,i);if(r[e]==="\n"&&f.length===0){h=new BlankLine;i=h.parse({src:r},i)}a=n.Node.endOfIndent(r,i)}c=r[a]}if(n.Node.nextNodeIsIndented(c,a-(i+o),this.type!==n.Type.SEQ_ITEM)){this.node=u({atLineStart:s,inCollection:false,indent:o,lineStart:i,parent:this},a)}else if(c&&i>t+1){a=i-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(f.length)Array.prototype.push.apply(this.props,f);a=this.node.range.end}else{if(l){const e=f[0];this.props.push(e);a=e.end}else{a=n.Node.endOfLine(r,t+1)}}const D=this.node?this.node.valueRange.end:a;this.valueRange=new n.Range(t,D);return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:u,value:r}=this;if(r!=null)return r;const s=t?e.slice(u.start,t.range.start)+String(t):e.slice(u.start,u.end);return n.Node.addStringTerminator(e,u.end,s)}}class Comment extends n.Node{constructor(){super(n.Type.COMMENT)}parse(e,t){this.context=e;const u=this.parseComment(t);this.range=new n.Range(t,u);return u}}function grabCollectionEndComments(e){let t=e;while(t instanceof CollectionItem)t=t.node;if(!(t instanceof Collection))return null;const u=t.items.length;let r=-1;for(let e=u-1;e>=0;--e){const u=t.items[e];if(u.type===n.Type.COMMENT){const{indent:t,lineStart:n}=u.context;if(t>0&&u.range.start>=n+t)break;r=e}else if(u.type===n.Type.BLANK_LINE)r=e;else break}if(r===-1)return null;const s=t.items.splice(r,u-r);const i=s[0].range.start;while(true){t.range.end=i;if(t.valueRange&&t.valueRange.end>i)t.valueRange.end=i;if(t===e)break;t=t.context.parent}return s}class Collection extends n.Node{static nextContentHasIndent(e,t,u){const r=n.Node.endOfLine(e,t)+1;t=n.Node.endOfWhiteSpace(e,r);const s=e[t];if(!s)return false;if(t>=r+u)return true;if(s!=="#"&&s!=="\n")return false;return Collection.nextContentHasIndent(e,t,u)}constructor(e){super(e.type===n.Type.SEQ_ITEM?n.Type.SEQ:n.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:u,src:r}=e;let s=n.Node.startOfLine(r,t);const i=this.items[0];i.context.parent=this;this.valueRange=n.Range.copy(i.valueRange);const o=i.range.start-i.context.lineStart;let a=t;a=n.Node.normalizeOffset(r,a);let c=r[a];let l=n.Node.endOfWhiteSpace(r,s)===a;let f=false;while(c){while(c==="\n"||c==="#"){if(l&&c==="\n"&&!f){const e=new BlankLine;a=e.parse({src:r},a);this.valueRange.end=a;if(a>=r.length){c=null;break}this.items.push(e);a-=1}else if(c==="#"){if(a=r.length){c=null;break}}s=a+1;a=n.Node.endOfIndent(r,s);if(n.Node.atBlank(r,a)){const e=n.Node.endOfWhiteSpace(r,a);const t=r[e];if(!t||t==="\n"||t==="#"){a=e}}c=r[a];l=true}if(!c){break}if(a!==s+o&&(l||c!==":")){if(at)a=s;break}else if(!this.error){const e="All collection items must start at the same column";this.error=new n.YAMLSyntaxError(this,e)}}if(i.type===n.Type.SEQ_ITEM){if(c!=="-"){if(s>t)a=s;break}}else if(c==="-"&&!this.error){const e=r[a+1];if(!e||e==="\n"||e==="\t"||e===" "){const e="A collection cannot be both a mapping and a sequence";this.error=new n.YAMLSyntaxError(this,e)}}const e=u({atLineStart:l,inCollection:true,indent:o,lineStart:s,parent:this},a);if(!e)return a;this.items.push(e);this.valueRange.end=e.valueRange.end;a=n.Node.normalizeOffset(r,e.range.end);c=r[a];l=false;f=e.includesTrailingLines;if(c){let e=a-1;let t=r[e];while(t===" "||t==="\t")t=r[--e];if(t==="\n"){s=e+1;l=true}}const h=grabCollectionEndComments(e);if(h)Array.prototype.push.apply(this.items,h)}return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(u=>{t=u.setOrigRanges(e,t)});return t}toString(){const{context:{src:e},items:t,range:u,value:r}=this;if(r!=null)return r;let s=e.slice(u.start,t[0].range.start)+String(t[0]);for(let e=1;e0){this.contents=this.directives;this.directives=[]}return s}}if(t[s]){this.directivesEndMarker=new n.Range(s,s+3);return s+3}if(r){this.error=new n.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return s}parseContents(e){const{parseNode:t,src:u}=this.context;if(!this.contents)this.contents=[];let r=e;while(u[r-1]==="-")r-=1;let s=n.Node.endOfWhiteSpace(u,e);let i=r===e;this.valueRange=new n.Range(s);while(!n.Node.atDocumentBoundary(u,s,n.Char.DOCUMENT_END)){switch(u[s]){case"\n":if(i){const e=new BlankLine;s=e.parse({src:u},s);if(s{t=u.setOrigRanges(e,t)});if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach(u=>{t=u.setOrigRanges(e,t)});if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:u}=this;if(u!=null)return u;let r=t.join("");if(e.length>0){if(t.length>0||e[0].type===n.Type.COMMENT)r+="---\n";r+=e.join("")}if(r[r.length-1]!=="\n")r+="\n";return r}}class Alias extends n.Node{parse(e,t){this.context=e;const{src:u}=e;let r=n.Node.endOfIdentifier(u,t+1);this.valueRange=new n.Range(t+1,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}const r={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};class BlockValue extends n.Node{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=r.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===r.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:u,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null;let o=s[t-1];while(o==="\n"||o==="\t"||o===" "){t-=1;if(t<=e){if(this.chomping===r.KEEP)break;else return""}if(o==="\n")i=t;o=s[t-1]}let a=t+1;if(i){if(this.chomping===r.KEEP){a=i;t=this.valueRange.end}else{t=i}}const c=u+this.blockIndent;const l=this.type===n.Type.BLOCK_FOLDED;let f=true;let h="";let D="";let p=false;for(let u=e;ua){a=c}}else if(r&&r!=="\n"&&c{if(u instanceof n.Node){t=u.setOrigRanges(e,t)}else if(e.length===0){u.origOffset=u.offset}else{let n=t;while(nu.offset)break;else++n}u.origOffset=u.offset+n;t=n}});return t}toString(){const{context:{src:e},items:t,range:u,value:r}=this;if(r!=null)return r;const s=t.filter(e=>e instanceof n.Node);let i="";let o=u.start;s.forEach(t=>{const u=e.slice(o,t.range.start);o=t.range.end;i+=u+String(t);if(i[i.length-1]==="\n"&&e[o-1]!=="\n"&&e[o]==="\n"){o+=1}});i+=e.slice(o,u.end);return n.Node.addStringTerminator(e,u.end,i)}}class QuoteDouble extends n.Node{static endOfQuote(e,t){let u=e[t];while(u&&u!=='"'){t+=u==="\\"?2:1;u=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:u}=this.valueRange;const{indent:r,src:s}=this.context;if(s[u-1]!=='"')e.push(new n.YAMLSyntaxError(this,'Missing closing "quote'));let i="";for(let o=t+1;oe?s.slice(e,o+1):t}else{i+=t}}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,u){const{src:r}=this.context;const s=r.substr(e,t);const i=s.length===t&&/^[0-9a-fA-F]+$/.test(s);const o=i?parseInt(s,16):NaN;if(isNaN(o)){u.push(new n.YAMLSyntaxError(this,`Invalid escape sequence ${r.substr(e-2,t+2)}`));return r.substr(e-2,t+2)}return String.fromCodePoint(o)}parse(e,t){this.context=e;const{src:u}=e;let r=QuoteDouble.endOfQuote(u,t+1);this.valueRange=new n.Range(t,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}class QuoteSingle extends n.Node{static endOfQuote(e,t){let u=e[t];while(u){if(u==="'"){if(e[t+1]!=="'")break;u=e[t+=2]}else{u=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:u}=this.valueRange;const{indent:r,src:s}=this.context;if(s[u-1]!=="'")e.push(new n.YAMLSyntaxError(this,"Missing closing 'quote"));let i="";for(let o=t+1;oe?s.slice(e,o+1):t}else{i+=t}}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:u}=e;let r=QuoteSingle.endOfQuote(u,t+1);this.valueRange=new n.Range(t,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}function createNewNode(e,t){switch(e){case n.Type.ALIAS:return new Alias(e,t);case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:return new BlockValue(e,t);case n.Type.FLOW_MAP:case n.Type.FLOW_SEQ:return new FlowCollection(e,t);case n.Type.MAP_KEY:case n.Type.MAP_VALUE:case n.Type.SEQ_ITEM:return new CollectionItem(e,t);case n.Type.COMMENT:case n.Type.PLAIN:return new n.PlainValue(e,t);case n.Type.QUOTE_DOUBLE:return new QuoteDouble(e,t);case n.Type.QUOTE_SINGLE:return new QuoteSingle(e,t);default:return null}}class ParseContext{static parseType(e,t,u){switch(e[t]){case"*":return n.Type.ALIAS;case">":return n.Type.BLOCK_FOLDED;case"|":return n.Type.BLOCK_LITERAL;case"{":return n.Type.FLOW_MAP;case"[":return n.Type.FLOW_SEQ;case"?":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.MAP_KEY:n.Type.PLAIN;case":":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.MAP_VALUE:n.Type.PLAIN;case"-":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.SEQ_ITEM:n.Type.PLAIN;case'"':return n.Type.QUOTE_DOUBLE;case"'":return n.Type.QUOTE_SINGLE;default:return n.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:u,inFlow:r,indent:s,lineStart:i,parent:o}={}){n._defineProperty(this,"parseNode",(e,t)=>{if(n.Node.atDocumentBoundary(this.src,t))return null;const u=new ParseContext(this,e);const{props:r,type:s,valueStart:i}=u.parseProps(t);const o=createNewNode(s,r);let a=o.parse(u,i);o.range=new n.Range(t,a);if(a<=t){o.error=new Error(`Node#parse consumed no characters`);o.error.parseEnd=a;o.error.source=o;o.range.end=t+1}if(u.nodeStartsCollection(o)){if(!o.error&&!u.atLineStart&&u.parent.type===n.Type.DOCUMENT){o.error=new n.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new Collection(o);a=e.parse(new ParseContext(u),a);e.range=new n.Range(t,a);return e}return o});this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=u!=null?u:e.inCollection||false;this.inFlow=r!=null?r:e.inFlow||false;this.indent=s!=null?s:e.indent;this.lineStart=i!=null?i:e.lineStart;this.parent=o!=null?o:e.parent||{};this.root=e.root;this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:u,src:r}=this;if(t||u)return false;if(e instanceof CollectionItem)return true;let s=e.range.end;if(r[s]==="\n"||r[s-1]==="\n")return false;s=n.Node.endOfWhiteSpace(r,s);return r[s]===":"}parseProps(e){const{inFlow:t,parent:u,src:r}=this;const s=[];let i=false;e=this.atLineStart?n.Node.endOfIndent(r,e):n.Node.endOfWhiteSpace(r,e);let o=r[e];while(o===n.Char.ANCHOR||o===n.Char.COMMENT||o===n.Char.TAG||o==="\n"){if(o==="\n"){const t=e+1;const s=n.Node.endOfIndent(r,t);const o=s-(t+this.indent);const a=u.type===n.Type.SEQ_ITEM&&u.context.atLineStart;if(!n.Node.nextNodeIsIndented(r[s],o,!a))break;this.atLineStart=true;this.lineStart=t;i=false;e=s}else if(o===n.Char.COMMENT){const t=n.Node.endOfLine(r,e+1);s.push(new n.Range(e,t));e=t}else{let t=n.Node.endOfIdentifier(r,e+1);if(o===n.Char.TAG&&r[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))){t=n.Node.endOfIdentifier(r,t+5)}s.push(new n.Range(e,t));i=true;e=n.Node.endOfWhiteSpace(r,t)}o=r[e]}if(i&&o===":"&&n.Node.atBlank(r,e+1,true))e-=1;const a=ParseContext.parseType(r,e,t);return{props:s,type:a,valueStart:e}}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,(e,u)=>{if(e.length>1)t.push(u);return"\n"})}const u=[];let n=0;do{const t=new Document;const r=new ParseContext({src:e});n=t.parse(r,n);u.push(t)}while(n{if(t.length===0)return false;for(let e=1;eu.join("...\n"));return u}t.parse=parse},87:function(e){e.exports=require("os")},112:function(e){"use strict";let t={};e.exports=function warnOnce(e){if(t[e])return;t[e]=true;if(typeof console!=="undefined"&&console.warn){console.warn(e)}}},148:function(e){let t="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";let u=(e,t)=>{return()=>{let u="";let n=t;while(n--){u+=e[Math.random()*e.length|0]}return u}};let n=(e=21)=>{let u="";let n=e;while(n--){u+=t[Math.random()*64|0]}return u};e.exports={nanoid:n,customAlphabet:u}},149:function(e,t,u){"use strict";let n=u(990);class AtRule extends n{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=AtRule;n.registerAtRule(AtRule)},150:function(e,t){function set(e,t,u){if(typeof u.value==="object")u.value=klona(u.value);if(!u.enumerable||u.get||u.set||!u.configurable||!u.writable||t==="__proto__"){Object.defineProperty(e,t,u)}else e[t]=u.value}function klona(e){if(typeof e!=="object")return e;var t=0,u,n,r,s=Object.prototype.toString.call(e);if(s==="[object Object]"){r=Object.create(e.__proto__||null)}else if(s==="[object Array]"){r=Array(e.length)}else if(s==="[object Set]"){r=new Set;e.forEach(function(e){r.add(klona(e))})}else if(s==="[object Map]"){r=new Map;e.forEach(function(e,t){r.set(klona(t),klona(e))})}else if(s==="[object Date]"){r=new Date(+e)}else if(s==="[object RegExp]"){r=new RegExp(e.source,e.flags)}else if(s==="[object DataView]"){r=new e.constructor(klona(e.buffer))}else if(s==="[object ArrayBuffer]"){r=e.slice(0)}else if(s.slice(-6)==="Array]"){r=new e.constructor(e)}if(r){for(n=Object.getOwnPropertySymbols(e);ts=>u?e+(~(s+="").indexOf(t,4)?s.replace(n,r):s)+t:s;const r=(e,t)=>{return n(`[${e}m`,`[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`[${e}m`)};t.options=Object.defineProperty({},"enabled",{get:()=>u,set:e=>u=e});t.reset=r(0,0);t.bold=n("","",/\x1b\[22m/g,"");t.dim=n("","",/\x1b\[22m/g,"");t.italic=r(3,23);t.underline=r(4,24);t.inverse=r(7,27);t.hidden=r(8,28);t.strikethrough=r(9,29);t.black=r(30,39);t.red=r(31,39);t.green=r(32,39);t.yellow=r(33,39);t.blue=r(34,39);t.magenta=r(35,39);t.cyan=r(36,39);t.white=r(37,39);t.gray=r(90,39);t.bgBlack=r(40,49);t.bgRed=r(41,49);t.bgGreen=r(42,49);t.bgYellow=r(43,49);t.bgBlue=r(44,49);t.bgMagenta=r(45,49);t.bgCyan=r(46,49);t.bgWhite=r(47,49);t.blackBright=r(90,39);t.redBright=r(91,39);t.greenBright=r(92,39);t.yellowBright=r(93,39);t.blueBright=r(94,39);t.magentaBright=r(95,39);t.cyanBright=r(96,39);t.whiteBright=r(97,39);t.bgBlackBright=r(100,49);t.bgRedBright=r(101,49);t.bgGreenBright=r(102,49);t.bgYellowBright=r(103,49);t.bgBlueBright=r(104,49);t.bgMagentaBright=r(105,49);t.bgCyanBright=r(106,49);t.bgWhiteBright=r(107,49)},184:function(e,t,u){"use strict";let n=u(698);let r=u(847);class Processor{constructor(e=[]){this.version="8.1.1";this.plugins=this.normalize(e)}use(e){this.plugins=this.plugins.concat(this.normalize([e]));return this}process(e,t={}){if(this.plugins.length===0&&t.parser===t.stringifier&&!t.hideNothingWarning){if(process.env.NODE_ENV!=="production"){if(typeof console!=="undefined"&&console.warn){console.warn("You did not set any plugins, parser, or stringifier. "+"Right now, PostCSS does nothing. Pick plugins for your case "+"on https://www.postcss.parts/ and use them in postcss.config.js.")}}}return new n(this,e,t)}normalize(e){let t=[];for(let u of e){if(u.postcss===true){u=u()}else if(u.postcss){u=u.postcss}if(typeof u==="object"&&Array.isArray(u.plugins)){t=t.concat(u.plugins)}else if(typeof u==="object"&&u.postcssPlugin){t.push(u)}else if(typeof u==="function"){t.push(u)}else if(typeof u==="object"&&(u.parse||u.stringify)){if(process.env.NODE_ENV!=="production"){throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use "+"one of the syntax/parser/stringifier options as outlined "+"in your PostCSS runner documentation.")}}else{throw new Error(u+" is not a PostCSS plugin")}}return t}}e.exports=Processor;r.registerProcessor(Processor)},191:function(e){"use strict";class Warning extends Error{constructor(e){super(e);const{text:t,line:u,column:n,plugin:r}=e;this.name="Warning";this.message=`${this.name}\n\n`;if(typeof u!=="undefined"){this.message+=`(${u}:${n}) `}this.message+=r?`${r}: `:"";this.message+=`${t}`;this.stack=false}}e.exports=Warning},192:function(e,t,u){"use strict";var n=u(513);var r=u(310);var s=u(525);const i={anchorPrefix:"a",customTags:null,indent:2,indentSeq:true,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};const o={get binary(){return r.binaryOptions},set binary(e){Object.assign(r.binaryOptions,e)},get bool(){return r.boolOptions},set bool(e){Object.assign(r.boolOptions,e)},get int(){return r.intOptions},set int(e){Object.assign(r.intOptions,e)},get null(){return r.nullOptions},set null(e){Object.assign(r.nullOptions,e)},get str(){return r.strOptions},set str(e){Object.assign(r.strOptions,e)}};const a={"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:n.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:n.defaultTagPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:n.defaultTagPrefix}]}};function stringifyTag(e,t){if((e.version||e.options.version)==="1.0"){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const u=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return u?`!${u[1]}/${u[2]}`:`!${t.replace(/^tag:/,"")}`}let u=e.tagPrefixes.find(e=>t.indexOf(e.prefix)===0);if(!u){const n=e.getDefaults().tagPrefixes;u=n&&n.find(e=>t.indexOf(e.prefix)===0)}if(!u)return t[0]==="!"?t:`!<${t}>`;const n=t.substr(u.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]);return u.handle+n}function getTagObject(e,t){if(t instanceof r.Alias)return r.Alias;if(t.tag){const u=e.filter(e=>e.tag===t.tag);if(u.length>0)return u.find(e=>e.format===t.format)||u[0]}let u,n;if(t instanceof r.Scalar){n=t.value;const r=e.filter(e=>e.identify&&e.identify(n)||e.class&&n instanceof e.class);u=r.find(e=>e.format===t.format)||r.find(e=>!e.format)}else{n=t;u=e.find(e=>e.nodeClass&&n instanceof e.nodeClass)}if(!u){const e=n&&n.constructor?n.constructor.name:typeof n;throw new Error(`Tag not resolved for ${e} value`)}return u}function stringifyProps(e,t,{anchors:u,doc:n}){const r=[];const s=n.anchors.getName(e);if(s){u[s]=e;r.push(`&${s}`)}if(e.tag){r.push(stringifyTag(n,e.tag))}else if(!t.default){r.push(stringifyTag(n,t.tag))}return r.join(" ")}function stringify(e,t,u,n){const{anchors:s,schema:i}=t.doc;let o;if(!(e instanceof r.Node)){const t={aliasNodes:[],onTagObj:e=>o=e,prevObjects:new Map};e=i.createNode(e,true,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=s.getName(e.source);if(!t){t=s.newName();s.map[t]=e.source}}}if(e instanceof r.Pair)return e.toString(t,u,n);if(!o)o=getTagObject(i.tags,e);const a=stringifyProps(e,o,t);if(a.length>0)t.indentAtStart=(t.indentAtStart||0)+a.length+1;const c=typeof o.stringify==="function"?o.stringify(e,t,u,n):e instanceof r.Scalar?r.stringifyString(e,t,u,n):e.toString(t,u,n);if(!a)return c;return e instanceof r.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}class Anchors{static validAnchorNode(e){return e instanceof r.Scalar||e instanceof r.YAMLSeq||e instanceof r.YAMLMap}constructor(e){n._defineProperty(this,"map",{});this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new r.Alias(e)}createMergePair(...e){const t=new r.Merge;t.value.items=e.map(e=>{if(e instanceof r.Alias){if(e.source instanceof r.YAMLMap)return e}else if(e instanceof r.YAMLMap){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")});return t}getName(e){const{map:t}=this;return Object.keys(t).find(u=>t[u]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let u=1;true;++u){const n=`${e}${u}`;if(!t.includes(n))return n}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved});t.forEach(e=>{e.source=e.source.resolved});delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:u}=this;const n=e&&Object.keys(u).find(t=>u[t]===e);if(n){if(!t){return n}else if(n!==t){delete u[n];u[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}u[t]=e}return t}}const c=(e,t)=>{if(e&&typeof e==="object"){const{tag:u}=e;if(e instanceof r.Collection){if(u)t[u]=true;e.items.forEach(e=>c(e,t))}else if(e instanceof r.Pair){c(e.key,t);c(e.value,t)}else if(e instanceof r.Scalar){if(u)t[u]=true}}return t};const l=e=>Object.keys(c(e,{}));function parseContents(e,t){const u={before:[],after:[]};let s=undefined;let i=false;for(const o of t){if(o.valueRange){if(s!==undefined){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new n.YAMLSyntaxError(o,t));break}const t=r.resolveNode(e,o);if(i){t.spaceBefore=true;i=false}s=t}else if(o.comment!==null){const e=s===undefined?u.before:u.after;e.push(o.comment)}else if(o.type===n.Type.BLANK_LINE){i=true;if(s===undefined&&u.before.length>0&&!e.commentBefore){e.commentBefore=u.before.join("\n");u.before=[]}}}e.contents=s||null;if(!s){e.comment=u.before.concat(u.after).join("\n")||null}else{const t=u.before.join("\n");if(t){const e=s instanceof r.Collection&&s.items[0]?s.items[0]:s;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=u.after.join("\n")||null}}function resolveTagDirective({tagPrefixes:e},t){const[u,r]=t.parameters;if(!u||!r){const e="Insufficient parameters given for %TAG directive";throw new n.YAMLSemanticError(t,e)}if(e.some(e=>e.handle===u)){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new n.YAMLSemanticError(t,e)}return{handle:u,prefix:r}}function resolveYamlDirective(e,t){let[u]=t.parameters;if(t.name==="YAML:1.0")u="1.0";if(!u){const e="Insufficient parameters given for %YAML directive";throw new n.YAMLSemanticError(t,e)}if(!a[u]){const r=e.version||e.options.version;const s=`Document will be parsed as YAML ${r} rather than YAML ${u}`;e.warnings.push(new n.YAMLWarning(t,s))}return u}function parseDirectives(e,t,u){const r=[];let s=false;for(const u of t){const{comment:t,name:i}=u;switch(i){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,u))}catch(t){e.errors.push(t)}s=true;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new n.YAMLSemanticError(u,t))}try{e.version=resolveYamlDirective(e,u)}catch(t){e.errors.push(t)}s=true;break;default:if(i){const t=`YAML only supports %TAG and %YAML directives, and not %${i}`;e.warnings.push(new n.YAMLWarning(u,t))}}if(t)r.push(t)}if(u&&!s&&"1.1"===(e.version||u.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=u.tagPrefixes.map(t);e.version=u.version}e.commentBefore=r.join("\n")||null}function assertCollection(e){if(e instanceof r.Collection)return true;throw new Error("Expected a YAML collection as document contents")}class Document{constructor(e){this.anchors=new Anchors(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}add(e){assertCollection(this.contents);return this.contents.add(e)}addIn(e,t){assertCollection(this.contents);this.contents.addIn(e,t)}delete(e){assertCollection(this.contents);return this.contents.delete(e)}deleteIn(e){if(r.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}assertCollection(this.contents);return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof r.Collection?this.contents.get(e,t):undefined}getIn(e,t){if(r.isEmptyPath(e))return!t&&this.contents instanceof r.Scalar?this.contents.value:this.contents;return this.contents instanceof r.Collection?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof r.Collection?this.contents.has(e):false}hasIn(e){if(r.isEmptyPath(e))return this.contents!==undefined;return this.contents instanceof r.Collection?this.contents.hasIn(e):false}set(e,t){assertCollection(this.contents);this.contents.set(e,t)}setIn(e,t){if(r.isEmptyPath(e))this.contents=t;else{assertCollection(this.contents);this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const u=Object.assign({},this.getDefaults(),this.options);this.schema=new s.Schema(u)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:u=[],contents:r=[],directivesEndMarker:s,error:i,valueRange:o}=e;if(i){if(!i.source)i.source=this;this.errors.push(i)}parseDirectives(this,u,t);if(s)this.directivesEndMarker=true;this.range=o?[o.start,o.end]:null;this.setSchema();this.anchors._cstAliases=[];parseContents(this,r);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof n.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof n.YAMLError)e.makePretty()}return this}listNonDefaultTags(){return l(this.contents).filter(e=>e.indexOf(s.Schema.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const u=this.tagPrefixes.find(t=>t.handle===e);if(u)u.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}}toJSON(e,t){const{keepBlobsInJSON:u,mapAsMap:n,maxAliasCount:s}=this.options;const i=u&&(typeof e!=="string"||!(this.contents instanceof r.Scalar));const o={doc:this,indentStep:" ",keep:i,mapAsMap:i&&!!n,maxAliasCount:s,stringify:stringify};const a=Object.keys(this.anchors.map);if(a.length>0)o.anchors=new Map(a.map(e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]));const c=r.toJSON(this.contents,e,o);if(typeof t==="function"&&o.anchors)for(const{count:e,res:u}of o.anchors.values())t(u,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let u=false;if(this.version){let e="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")e="%YAML:1.0";else if(this.version==="1.1")e="%YAML 1.1"}t.push(e);u=true}const n=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:e,prefix:r})=>{if(n.some(e=>e.indexOf(r)===0)){t.push(`%TAG ${e} ${r}`);u=true}});if(u||this.directivesEndMarker)t.push("---");if(this.commentBefore){if(u||!this.directivesEndMarker)t.unshift("");t.unshift(this.commentBefore.replace(/^/gm,"#"))}const s={anchors:{},doc:this,indent:"",indentStep:" ".repeat(e),stringify:stringify};let i=false;let o=null;if(this.contents){if(this.contents instanceof r.Node){if(this.contents.spaceBefore&&(u||this.directivesEndMarker))t.push("");if(this.contents.commentBefore)t.push(this.contents.commentBefore.replace(/^/gm,"#"));s.forceBlockIndent=!!this.comment;o=this.contents.comment}const e=o?null:()=>i=true;const n=stringify(this.contents,s,()=>o=null,e);t.push(r.addComment(n,"",o))}else if(this.contents!==undefined){t.push(stringify(this.contents,s))}if(this.comment){if((!i||o)&&t[t.length-1]!=="")t.push("");t.push(this.comment.replace(/^/gm,"#"))}return t.join("\n")+"\n"}}n._defineProperty(Document,"defaults",a);t.Document=Document;t.defaultOptions=i;t.scalarOptions=o},208:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPropertyByPath=getPropertyByPath;function getPropertyByPath(e,t){if(typeof t==="string"&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}const u=typeof t==="string"?t.split("."):t;return u.reduce((e,t)=>{if(e===undefined){return e}return e[t]},e)}},225:function(e){e.exports=require("next/dist/compiled/schema-utils")},233:function(e,t,u){"use strict";let{red:n,bold:r,gray:s,options:i}=u(153);let o=u(958);class CssSyntaxError extends Error{constructor(e,t,u,n,r,s){super(e);this.name="CssSyntaxError";this.reason=e;if(r){this.file=r}if(n){this.source=n}if(s){this.plugin=s}if(typeof t!=="undefined"&&typeof u!=="undefined"){this.line=t;this.column=u}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=i.enabled;if(o){if(e)t=o(t)}let u=t.split(/\r?\n/);let a=Math.max(this.line-3,0);let c=Math.min(this.line+2,u.length);let l=String(c).length;let f,h;if(e){f=(e=>r(n(e)));h=(e=>s(e))}else{f=h=(e=>e)}return u.slice(a,c).map((e,t)=>{let u=a+1+t;let n=" "+(" "+u).slice(-l)+" | ";if(u===this.line){let t=h(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+h(n)+e+"\n "+t+f("^")}return" "+h(n)+e}).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=CssSyntaxError},241:function(e){e.exports=require("next/dist/compiled/source-map")},249:function(e,t,u){"use strict";let n=u(7);class Declaration extends n{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=Declaration},254:function(e,t){"use strict";var u="\n";var n="\r";var r=function(){function LinesAndColumns(e){this.string=e;var t=[0];for(var r=0;rthis.string.length){return null}var t=0;var u=this.offsets;while(u[t+1]<=e){t++}var n=e-u[t];return{line:t,column:n}};LinesAndColumns.prototype.indexForLocation=function(e){var t=e.line,u=e.column;if(t<0||t>=this.offsets.length){return null}if(u<0||u>this.lengthOfLine(t)){return null}return this.offsets[t]+u};LinesAndColumns.prototype.lengthOfLine=function(e){var t=this.offsets[e];var u=e===this.offsets.length-1?this.string.length:this.offsets[e+1];return u-t};return LinesAndColumns}();t.__esModule=true;t["default"]=r},270:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cacheWrapper=cacheWrapper;t.cacheWrapperSync=cacheWrapperSync;async function cacheWrapper(e,t,u){const n=e.get(t);if(n!==undefined){return n}const r=await u();e.set(t,r);return r}function cacheWrapperSync(e,t,u){const n=e.get(t);if(n!==undefined){return n}const r=u();e.set(t,r);return r}},277:function(e){e.exports=require("path")},282:function(e){e.exports=require("module")},294:function(e,t,u){"use strict";let n=u(249);let r=u(622);let s=u(374);let i=u(149);let o=u(847);let a=u(301);class Parser{constructor(e){this.input=e;this.root=new o;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=r(this.input)}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}comment(e){let t=new s;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);let u=e[1].slice(2,-2);if(/^\s*$/.test(u)){t.text="";t.raws.left=u;t.raws.right=""}else{let e=u.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}emptyRule(e){let t=new a;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}other(e){let t=false;let u=null;let n=false;let r=null;let s=[];let i=e[1].startsWith("--");let o=[];let a=e;while(a){u=a[0];o.push(a);if(u==="("||u==="["){if(!r)r=a;s.push(u==="("?")":"]")}else if(i&&n&&u==="{"){if(!r)r=a;s.push("}")}else if(s.length===0){if(u===";"){if(n){this.decl(o,i);return}else{break}}else if(u==="{"){this.rule(o);return}else if(u==="}"){this.tokenizer.back(o.pop());t=true;break}else if(u===":"){n=true}}else if(u===s[s.length-1]){s.pop();if(s.length===0)r=null}a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(s.length>0)this.unclosedBracket(r);if(t&&n){while(o.length){a=o[o.length-1][0];if(a!=="space"&&a!=="comment")break;this.tokenizer.back(o.pop())}this.decl(o,i)}else{this.unknownWord(o)}}rule(e){e.pop();let t=new a;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}decl(e,t){let u=new n;this.init(u,e[0][2]);let r=e[e.length-1];if(r[0]===";"){this.semicolon=true;e.pop()}u.source.end=this.getPosition(r[3]||r[2]);while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);u.raws.before+=e.shift()[1]}u.source.start=this.getPosition(e[0][2]);u.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}u.prop+=e.shift()[1]}u.raws.between="";let s;while(e.length){s=e.shift();if(s[0]===":"){u.raws.between+=s[1];break}else{if(s[0]==="word"&&/\w/.test(s[1])){this.unknownWord([s])}u.raws.between+=s[1]}}if(u.prop[0]==="_"||u.prop[0]==="*"){u.raws.before+=u.prop[0];u.prop=u.prop.slice(1)}let i=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){s=e[t];if(s[1].toLowerCase()==="!important"){u.important=true;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n;if(n!==" !important")u.raws.important=n;break}else if(s[1].toLowerCase()==="important"){let n=e.slice(0);let r="";for(let e=t;e>0;e--){let t=n[e][0];if(r.trim().indexOf("!")===0&&t!=="space"){break}r=n.pop()[1]+r}if(r.trim().indexOf("!")===0){u.important=true;u.raws.important=r;e=n}}if(s[0]!=="space"&&s[0]!=="comment"){break}}let o=e.some(e=>e[0]!=="space"&&e[0]!=="comment");this.raw(u,"value",e);if(o){u.raws.between+=i}else{u.value=i+u.value}if(u.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}atrule(e){let t=new i;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let u;let n;let r;let s=false;let o=false;let a=[];let c=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();u=e[0];if(u==="("||u==="["){c.push(u==="("?")":"]")}else if(u==="{"&&c.length>0){c.push("}")}else if(u===c[c.length-1]){c.pop()}if(c.length===0){if(u===";"){t.source.end=this.getPosition(e[2]);this.semicolon=true;break}else if(u==="{"){o=true;break}else if(u==="}"){if(a.length>0){r=a.length-1;n=a[r];while(n&&n[0]==="space"){n=a[--r]}if(n){t.source.end=this.getPosition(n[3]||n[2])}}this.end(e);break}else{a.push(e)}}else{a.push(e)}if(this.tokenizer.endOfFile()){s=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a);if(a.length){t.raws.afterName=this.spacesAndCommentsFromStart(a);this.raw(t,"params",a);if(s){e=a[a.length-1];t.source.end=this.getPosition(e[3]||e[2]);this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(o){t.nodes=[];this.current=t}}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e);e.source={start:this.getPosition(t),input:this.input};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}raw(e,t,u){let n,r;let s=u.length;let i="";let o=true;let a,c;let l=/^([#.|])?(\w)+/i;for(let t=0;te+t[1],"");e.raws[t]={value:i,raw:n}}e[t]=i}spacesAndCommentsFromEnd(e){let t;let u="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;u=e.pop()[1]+u}return u}spacesAndCommentsFromStart(e){let t;let u="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;u+=e.shift()[1]}return u}spacesFromEnd(e){let t;let u="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;u=e.pop()[1]+u}return u}stringFrom(e,t){let u="";for(let n=t;n=0;r--){n=e[r];if(n[0]!=="space"){u+=1;if(u===2)break}}throw this.input.error("Missed semicolon",n[2])}}e.exports=Parser},301:function(e,t,u){"use strict";let n=u(990);let r=u(430);class Rule extends n{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let u=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(u)}}e.exports=Rule;n.registerRule(Rule)},310:function(e,t,u){"use strict";var n=u(513);function addCommentBefore(e,t,u){if(!u)return e;const n=u.replace(/[\s\S]^/gm,`$&${t}#`);return`#${n}\n${t}${e}`}function addComment(e,t,u){return!u?e:u.indexOf("\n")===-1?`${e} #${u}`:`${e}\n`+u.replace(/^/gm,`${t||""}#`)}class Node{}function toJSON(e,t,u){if(Array.isArray(e))return e.map((e,t)=>toJSON(e,String(t),u));if(e&&typeof e.toJSON==="function"){const n=u&&u.anchors&&u.anchors.get(e);if(n)u.onCreate=(e=>{n.res=e;delete u.onCreate});const r=e.toJSON(t,u);if(n&&u.onCreate)u.onCreate(r);return r}if((!u||!u.keep)&&typeof e==="bigint")return Number(e);return e}class Scalar extends Node{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:toJSON(this.value,e,t)}toString(){return String(this.value)}}function collectionFromPath(e,t,u){let n=u;for(let e=t.length-1;e>=0;--e){const u=t[e];const r=Number.isInteger(u)&&u>=0?[]:{};r[u]=n;n=r}return e.createNode(n,false)}const r=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;class Collection extends Node{constructor(e){super();n._defineProperty(this,"items",[]);this.schema=e}addIn(e,t){if(r(e))this.add(t);else{const[u,...n]=e;const r=this.get(u,true);if(r instanceof Collection)r.addIn(n,t);else if(r===undefined&&this.schema)this.set(u,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${u}. Remaining path: ${n}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const u=this.get(e,true);if(u instanceof Collection)return u.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],u){const n=this.get(e,true);if(t.length===0)return!u&&n instanceof Scalar?n.value:n;else return n instanceof Collection?n.getIn(t,u):undefined}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return false;const t=e.value;return t==null||t instanceof Scalar&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(t.length===0)return this.has(e);const u=this.get(e,true);return u instanceof Collection?u.hasIn(t):false}setIn([e,...t],u){if(t.length===0){this.set(e,u)}else{const n=this.get(e,true);if(n instanceof Collection)n.setIn(t,u);else if(n===undefined&&this.schema)this.set(e,collectionFromPath(this.schema,t,u));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:u,isMap:r,itemIndent:s},i,o){const{indent:a,indentStep:c,stringify:l}=e;const f=this.type===n.Type.FLOW_MAP||this.type===n.Type.FLOW_SEQ||e.inFlow;if(f)s+=c;const h=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:s,inFlow:f,type:null});let D=false;let p=false;const d=this.items.reduce((t,u,n)=>{let r;if(u){if(!D&&u.spaceBefore)t.push({type:"comment",str:""});if(u.commentBefore)u.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:`#${e}`})});if(u.comment)r=u.comment;if(f&&(!D&&u.spaceBefore||u.commentBefore||u.comment||u.key&&(u.key.commentBefore||u.key.comment)||u.value&&(u.value.commentBefore||u.value.comment)))p=true}D=false;let i=l(u,e,()=>r=null,()=>D=true);if(f&&!p&&i.includes("\n"))p=true;if(f&&ne.str);if(p||n.reduce((e,t)=>e+t.length+2,2)>Collection.maxFlowStringSingleLineLength){A=e;for(const e of n){A+=e?`\n${c}${a}${e}`:"\n"}A+=`\n${a}${t}`}else{A=`${e} ${n.join(" ")} ${t}`}}else{const e=d.map(t);A=e.shift();for(const t of e)A+=t?`\n${a}${t}`:"\n"}if(this.comment){A+="\n"+this.comment.replace(/^/gm,`${a}#`);if(i)i()}else if(D&&o)o();return A}}n._defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){let t=e instanceof Scalar?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends Collection{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const u=this.items.splice(t,1);return u.length>0}get(e,t){const u=asItemIndex(e);if(typeof u!=="number")return undefined;const n=this.items[u];return!t&&n instanceof Scalar?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,u)}}const s=(e,t,u)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof Node&&u&&u.doc)return e.toString({anchors:{},doc:u.doc,indent:"",indentStep:u.indentStep,inFlow:true,inStringifyKey:true,stringify:u.stringify});return JSON.stringify(t)};class Pair extends Node{constructor(e,t=null){super();this.key=e;this.value=t;this.type=Pair.Type.PAIR}get commentBefore(){return this.key instanceof Node?this.key.commentBefore:undefined}set commentBefore(e){if(this.key==null)this.key=new Scalar(null);if(this.key instanceof Node)this.key.commentBefore=e;else{const e="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(e)}}addToJSMap(e,t){const u=toJSON(this.key,"",e);if(t instanceof Map){const n=toJSON(this.value,u,e);t.set(u,n)}else if(t instanceof Set){t.add(u)}else{const n=s(this.key,u,e);t[n]=toJSON(this.value,n,e)}return t}toJSON(e,t){const u=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,u)}toString(e,t,u){if(!e||!e.doc)return JSON.stringify(this);const{indent:r,indentSeq:s,simpleKeys:i}=e.doc.options;let{key:o,value:a}=this;let c=o instanceof Node&&o.comment;if(i){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(o instanceof Collection){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}const l=!i&&(!o||c||o instanceof Collection||o.type===n.Type.BLOCK_FOLDED||o.type===n.Type.BLOCK_LITERAL);const{doc:f,indent:h,indentStep:D,stringify:p}=e;e=Object.assign({},e,{implicitKey:!l,indent:h+D});let d=false;let A=p(o,e,()=>c=null,()=>d=true);A=addComment(A,e.indent,c);if(e.allNullValues&&!i){if(this.comment){A=addComment(A,e.indent,this.comment);if(t)t()}else if(d&&!c&&u)u();return e.inFlow?A:`? ${A}`}A=l?`? ${A}\n${h}:`:`${A}:`;if(this.comment){A=addComment(A,e.indent,this.comment);if(t)t()}let g="";let C=null;if(a instanceof Node){if(a.spaceBefore)g="\n";if(a.commentBefore){const t=a.commentBefore.replace(/^/gm,`${e.indent}#`);g+=`\n${t}`}C=a.comment}else if(a&&typeof a==="object"){a=f.schema.createNode(a,true)}e.implicitKey=false;if(!l&&!this.comment&&a instanceof Scalar)e.indentAtStart=A.length+1;d=false;if(!s&&r>=2&&!e.inFlow&&!l&&a instanceof YAMLSeq&&a.type!==n.Type.FLOW_SEQ&&!a.tag&&!f.anchors.getName(a)){e.indent=e.indent.substr(2)}const F=p(a,e,()=>C=null,()=>d=true);let E=" ";if(g||this.comment){E=`${g}\n${e.indent}`}else if(!l&&a instanceof Collection){const t=F[0]==="["||F[0]==="{";if(!t||F.includes("\n"))E=`\n${e.indent}`}if(d&&!C&&u)u();return addComment(A+E+F,e.indent,C)}}n._defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const i=(e,t)=>{if(e instanceof Alias){const u=t.get(e.source);return u.count*u.aliasCount}else if(e instanceof Collection){let u=0;for(const n of e.items){const e=i(n,t);if(e>u)u=e}return u}else if(e instanceof Pair){const u=i(e.key,t);const n=i(e.value,t);return Math.max(u,n)}return 1};class Alias extends Node{static stringify({range:e,source:t},{anchors:u,doc:n,implicitKey:r,inStringifyKey:s}){let i=Object.keys(u).find(e=>u[e]===t);if(!i&&s)i=n.anchors.getName(t)||n.anchors.newName();if(i)return`*${i}${r?" ":""}`;const o=n.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${o} [${e}]`)}constructor(e){super();this.source=e;this.type=n.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return toJSON(this.source,e,t);const{anchors:u,maxAliasCount:r}=t;const s=u.get(this.source);if(!s||s.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new n.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(r>=0){s.count+=1;if(s.aliasCount===0)s.aliasCount=i(this.source,u);if(s.count*s.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new n.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return s.res}toString(e){return Alias.stringify(this,e)}}n._defineProperty(Alias,"default",true);function findPair(e,t){const u=t instanceof Scalar?t.value:t;for(const n of e){if(n instanceof Pair){if(n.key===t||n.key===u)return n;if(n.key&&n.key.value===u)return n}}return undefined}class YAMLMap extends Collection{add(e,t){if(!e)e=new Pair(e);else if(!(e instanceof Pair))e=new Pair(e.key||e,e.value);const u=findPair(this.items,e.key);const n=this.schema&&this.schema.sortMapEntries;if(u){if(t)u.value=e.value;else throw new Error(`Key ${e.key} already set`)}else if(n){const t=this.items.findIndex(t=>n(e,t)<0);if(t===-1)this.items.push(e);else this.items.splice(t,0,e)}else{this.items.push(e)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const u=this.items.splice(this.items.indexOf(t),1);return u.length>0}get(e,t){const u=findPair(this.items,e);const n=u&&u.value;return!t&&n instanceof Scalar?n.value:n}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new Pair(e,t),true)}toJSON(e,t,u){const n=u?new u:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(n);for(const e of this.items)e.addToJSMap(t,n);return n}toString(e,t,u){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof Pair))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,u)}}const o="<<";class Merge extends Pair{constructor(e){if(e instanceof Pair){let t=e.value;if(!(t instanceof YAMLSeq)){t=new YAMLSeq;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new Scalar(o),new YAMLSeq)}this.type=Pair.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:u}of this.value.items){if(!(u instanceof YAMLMap))throw new Error("Merge sources must be maps");const n=u.toJSON(null,e,Map);for(const[e,u]of n){if(t instanceof Map){if(!t.has(e))t.set(e,u)}else if(t instanceof Set){t.add(e)}else{if(!Object.prototype.hasOwnProperty.call(t,e))t[e]=u}}}return t}toString(e,t){const u=this.value;if(u.items.length>1)return super.toString(e,t);this.value=u.items[0];const n=super.toString(e,t);this.value=u;return n}}const a={defaultType:n.Type.BLOCK_LITERAL,lineWidth:76};const c={trueStr:"true",falseStr:"false"};const l={asBigInt:false};const f={nullStr:"null"};const h={defaultType:n.Type.PLAIN,doubleQuoted:{jsonEncoding:false,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,t,u){for(const{format:u,test:n,resolve:r}of t){if(n){const t=e.match(n);if(t){let e=r.apply(null,t);if(!(e instanceof Scalar))e=new Scalar(e);if(u)e.format=u;return e}}}if(u)e=u(e);return new Scalar(e)}const D="flow";const p="block";const d="quoted";const A=(e,t)=>{let u=e[t+1];while(u===" "||u==="\t"){do{u=e[t+=1]}while(u&&u!=="\n");u=e[t+1]}return t};function foldFlowLines(e,t,u,{indentAtStart:n,lineWidth:r=80,minContentWidth:s=20,onFold:i,onOverflow:o}){if(!r||r<0)return e;const a=Math.max(1+s,1+r-t.length);if(e.length<=a)return e;const c=[];const l={};let f=r-(typeof n==="number"?n:t.length);let h=undefined;let D=undefined;let g=false;let C=-1;if(u===p){C=A(e,C);if(C!==-1)f=C+a}for(let t;t=e[C+=1];){if(u===d&&t==="\\"){switch(e[C+1]){case"x":C+=3;break;case"u":C+=5;break;case"U":C+=9;break;default:C+=1}}if(t==="\n"){if(u===p)C=A(e,C);f=C+a;h=undefined}else{if(t===" "&&D&&D!==" "&&D!=="\n"&&D!=="\t"){const t=e[C+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")h=C}if(C>=f){if(h){c.push(h);f=h+a;h=undefined}else if(u===d){while(D===" "||D==="\t"){D=t;t=e[C+=1];g=true}c.push(C-2);l[C-2]=true;f=C-2+a;h=undefined}else{g=true}}}D=t}if(g&&o)o();if(c.length===0)return e;if(i)i();let F=e.slice(0,c[0]);for(let n=0;ne?Object.assign({indentAtStart:e},h.fold):h.fold;const C=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t){const u=e.length;if(u<=t)return false;for(let n=0,r=0;nt)return true;r=n+1;if(u-r<=t)return false}}return true}function doubleQuotedString(e,t){const{implicitKey:u}=t;const{jsonEncoding:n,minMultiLineLength:r}=h.doubleQuoted;const s=JSON.stringify(e);if(n)return s;const i=t.indent||(C(e)?" ":"");let o="";let a=0;for(let e=0,t=s[e];t;t=s[++e]){if(t===" "&&s[e+1]==="\\"&&s[e+2]==="n"){o+=s.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(s[e+1]){case"u":{o+=s.slice(a,e);const t=s.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=s.substr(e,6)}e+=5;a=e+1}break;case"n":if(u||s[e+2]==='"'||s.length";if(!u)return l+"\n";let f="";let D="";u=u.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");if(t===-1){l+="-"}else if(u===e||t!==e.length-1){l+="+";if(i)i()}D=e.replace(/\n$/,"");return""}).replace(/^[\n ]*/,e=>{if(e.indexOf(" ")!==-1)l+=a;const t=e.match(/ +$/);if(t){f=e.slice(0,-t[0].length);return t[0]}else{f=e;return""}});if(D)D=D.replace(/\n+(?!\n|$)/g,`$&${o}`);if(f)f=f.replace(/\n+/g,`$&${o}`);if(e){l+=" #"+e.replace(/ ?[\r\n]+/g," ");if(s)s()}if(!u)return`${l}${a}\n${o}${D}`;if(c){u=u.replace(/\n+/g,`$&${o}`);return`${l}\n${o}${f}${u}${D}`}u=u.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);const d=foldFlowLines(`${f}${u}${D}`,o,p,h.fold);return`${l}\n${o}${d}`}function plainString(e,t,u,r){const{comment:s,type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:l,inFlow:f}=t;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o)){return doubleQuotedString(o,t)}if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||f||o.indexOf("\n")===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?singleQuotedString(o,t):doubleQuotedString(o,t):blockString(e,t,u,r)}if(!c&&!f&&i!==n.Type.PLAIN&&o.indexOf("\n")!==-1){return blockString(e,t,u,r)}if(l===""&&C(o)){t.forceBlockIndent=true;return blockString(e,t,u,r)}const h=o.replace(/\n+/g,`$&\n${l}`);if(a){const{tags:e}=t.doc.schema;const u=resolveScalar(h,e,e.scalarFallback).value;if(typeof u!=="string")return doubleQuotedString(o,t)}const p=c?h:foldFlowLines(h,l,D,g(t));if(s&&!f&&(p.indexOf("\n")!==-1||s.indexOf("\n")!==-1)){if(u)u();return addCommentBefore(p,l,s)}return p}function stringifyString(e,t,u,r){const{defaultType:s}=h;const{implicitKey:i,inFlow:o}=t;let{type:a,value:c}=e;if(typeof c!=="string"){c=String(c);e=Object.assign({},e,{value:c})}const l=s=>{switch(s){case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:return blockString(e,t,u,r);case n.Type.QUOTE_DOUBLE:return doubleQuotedString(c,t);case n.Type.QUOTE_SINGLE:return singleQuotedString(c,t);case n.Type.PLAIN:return plainString(e,t,u,r);default:return null}};if(a!==n.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)){a=n.Type.QUOTE_DOUBLE}else if((i||o)&&(a===n.Type.BLOCK_FOLDED||a===n.Type.BLOCK_LITERAL)){a=n.Type.QUOTE_DOUBLE}let f=l(a);if(f===null){f=l(s);if(f===null)throw new Error(`Unsupported default string type ${s}`)}return f}function stringifyNumber({format:e,minFractionDigits:t,tag:u,value:n}){if(typeof n==="bigint")return String(n);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let r=JSON.stringify(n);if(!e&&t&&(!u||u==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let e=r.indexOf(".");if(e<0){e=r.length;r+="."}let u=t-(r.length-e-1);while(u-- >0)r+="0"}return r}function checkFlowCollectionEnd(e,t){let u,r;switch(t.type){case n.Type.FLOW_MAP:u="}";r="flow map";break;case n.Type.FLOW_SEQ:u="]";r="flow sequence";break;default:e.push(new n.YAMLSemanticError(t,"Not a flow collection!?"));return}let s;for(let e=t.items.length-1;e>=0;--e){const u=t.items[e];if(!u||u.type!==n.Type.COMMENT){s=u;break}}if(s&&s.char!==u){const i=`Expected ${r} to end with ${u}`;let o;if(typeof s.offset==="number"){o=new n.YAMLSemanticError(t,i);o.offset=s.offset+1}else{o=new n.YAMLSemanticError(s,i);if(s.range&&s.range.end)o.offset=s.range.end-s.range.start}e.push(o)}}function checkFlowCommentSpace(e,t){const u=t.context.src[t.range.start-1];if(u!=="\n"&&u!=="\t"&&u!==" "){const u="Comments must be separated from other tokens by white space characters";e.push(new n.YAMLSemanticError(t,u))}}function getLongKeyError(e,t){const u=String(t);const r=u.substr(0,8)+"..."+u.substr(-8);return new n.YAMLSemanticError(e,`The "${r}" key is too long`)}function resolveComments(e,t){for(const{afterKey:u,before:n,comment:r}of t){let t=e.items[n];if(!t){if(r!==undefined){if(e.comment)e.comment+="\n"+r;else e.comment=r}}else{if(u&&t.value)t=t.value;if(r===undefined){if(u||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+r;else t.commentBefore=r}}}}function resolveString(e,t){const u=t.strValue;if(!u)return"";if(typeof u==="string")return u;u.errors.forEach(u=>{if(!u.source)u.source=t;e.errors.push(u)});return u.str}function resolveTagHandle(e,t){const{handle:u,suffix:r}=t.tag;let s=e.tagPrefixes.find(e=>e.handle===u);if(!s){const r=e.getDefaults().tagPrefixes;if(r)s=r.find(e=>e.handle===u);if(!s)throw new n.YAMLSemanticError(t,`The ${u} tag handle is non-default and was not declared.`)}if(!r)throw new n.YAMLSemanticError(t,`The ${u} tag has no suffix.`);if(u==="!"&&(e.version||e.options.version)==="1.0"){if(r[0]==="^"){e.warnings.push(new n.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported"));return r}if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function resolveTagName(e,t){const{tag:u,type:r}=t;let s=false;if(u){const{handle:r,suffix:i,verbatim:o}=u;if(o){if(o!=="!"&&o!=="!!")return o;const u=`Verbatim tags aren't resolved, so ${o} is invalid.`;e.errors.push(new n.YAMLSemanticError(t,u))}else if(r==="!"&&!i){s=true}else{try{return resolveTagHandle(e,t)}catch(t){e.errors.push(t)}}}switch(r){case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:case n.Type.QUOTE_DOUBLE:case n.Type.QUOTE_SINGLE:return n.defaultTags.STR;case n.Type.FLOW_MAP:case n.Type.MAP:return n.defaultTags.MAP;case n.Type.FLOW_SEQ:case n.Type.SEQ:return n.defaultTags.SEQ;case n.Type.PLAIN:return s?n.defaultTags.STR:null;default:return null}}function resolveByTagName(e,t,u){const{tags:n}=e.schema;const r=[];for(const s of n){if(s.tag===u){if(s.test)r.push(s);else{const u=s.resolve(e,t);return u instanceof Collection?u:new Scalar(u)}}}const s=resolveString(e,t);if(typeof s==="string"&&r.length>0)return resolveScalar(s,r,n.scalarFallback);return null}function getFallbackTagName({type:e}){switch(e){case n.Type.FLOW_MAP:case n.Type.MAP:return n.defaultTags.MAP;case n.Type.FLOW_SEQ:case n.Type.SEQ:return n.defaultTags.SEQ;default:return n.defaultTags.STR}}function resolveTag(e,t,u){try{const n=resolveByTagName(e,t,u);if(n){if(u&&t.tag)n.tag=u;return n}}catch(u){if(!u.source)u.source=t;e.errors.push(u);return null}try{const r=getFallbackTagName(t);if(!r)throw new Error(`The tag ${u} is unavailable`);const s=`The tag ${u} is unavailable, falling back to ${r}`;e.warnings.push(new n.YAMLWarning(t,s));const i=resolveByTagName(e,t,r);i.tag=u;return i}catch(u){const r=new n.YAMLReferenceError(t,u.message);r.stack=u.stack;e.errors.push(r);return null}}const F=e=>{if(!e)return false;const{type:t}=e;return t===n.Type.MAP_KEY||t===n.Type.MAP_VALUE||t===n.Type.SEQ_ITEM};function resolveNodeProps(e,t){const u={before:[],after:[]};let r=false;let s=false;const i=F(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:o,end:a}of i){switch(t.context.src[o]){case n.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(o)){const u="Comments must be separated from other tokens by white space characters";e.push(new n.YAMLSemanticError(t,u))}const{header:r,valueRange:s}=t;const i=s&&(o>s.start||r&&o>r.start)?u.after:u.before;i.push(t.context.src.slice(o+1,a));break}case n.Char.ANCHOR:if(r){const u="A node can have at most one anchor";e.push(new n.YAMLSemanticError(t,u))}r=true;break;case n.Char.TAG:if(s){const u="A node can have at most one tag";e.push(new n.YAMLSemanticError(t,u))}s=true;break}}return{comments:u,hasAnchor:r,hasTag:s}}function resolveNodeValue(e,t){const{anchors:u,errors:r,schema:s}=e;if(t.type===n.Type.ALIAS){const e=t.rawValue;const s=u.getNode(e);if(!s){const u=`Aliased anchor not found: ${e}`;r.push(new n.YAMLReferenceError(t,u));return null}const i=new Alias(s);u._cstAliases.push(i);return i}const i=resolveTagName(e,t);if(i)return resolveTag(e,t,i);if(t.type!==n.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;r.push(new n.YAMLSyntaxError(t,e));return null}try{const u=resolveString(e,t);return resolveScalar(u,s.tags,s.tags.scalarFallback)}catch(e){if(!e.source)e.source=t;r.push(e);return null}}function resolveNode(e,t){if(!t)return null;if(t.error)e.errors.push(t.error);const{comments:u,hasAnchor:r,hasTag:s}=resolveNodeProps(e.errors,t);if(r){const{anchors:u}=e;const n=t.anchor;const r=u.getNode(n);if(r)u.map[u.newName(n)]=r;u.map[n]=t}if(t.type===n.Type.ALIAS&&(r||s)){const u="An alias node must not specify any properties";e.errors.push(new n.YAMLSemanticError(t,u))}const i=resolveNodeValue(e,t);if(i){i.range=[t.range.start,t.range.end];if(e.options.keepCstNodes)i.cstNode=t;if(e.options.keepNodeTypes)i.type=t.type;const n=u.before.join("\n");if(n){i.commentBefore=i.commentBefore?`${i.commentBefore}\n${n}`:n}const r=u.after.join("\n");if(r)i.comment=i.comment?`${i.comment}\n${r}`:r}return t.resolved=i}function resolveMap(e,t){if(t.type!==n.Type.MAP&&t.type!==n.Type.FLOW_MAP){const u=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new n.YAMLSyntaxError(t,u));return null}const{comments:u,items:r}=t.type===n.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const s=new YAMLMap;s.items=r;resolveComments(s,u);let i=false;for(let u=0;u{if(e instanceof Alias){const{type:t}=e.source;if(t===n.Type.MAP||t===n.Type.FLOW_MAP)return false;return i="Merge nodes aliases can only point to maps"}return i="Merge nodes can only have Alias nodes as values"});if(i)e.errors.push(new n.YAMLSemanticError(t,i))}else{for(let i=u+1;i{if(r.length===0)return false;const{start:s}=r[0];if(t&&s>t.valueRange.start)return false;if(u[s]!==n.Char.COMMENT)return false;for(let t=e;t0){u=new n.PlainValue(n.Type.PLAIN,[]);u.context={parent:a,src:a.context.src};const e=a.range.start+1;u.range={start:e,end:e};u.valueRange={start:e,end:e};if(typeof a.range.origStart==="number"){const e=a.range.origStart+1;u.range.origStart=u.range.origEnd=e;u.valueRange.origStart=u.valueRange.origEnd=e}}const o=new Pair(s,resolveNode(e,u));resolvePairComment(a,o);r.push(o);if(s&&typeof i==="number"){if(a.range.start>i+1024)e.errors.push(getLongKeyError(t,s))}s=undefined;i=null}break;default:if(s!==undefined)r.push(new Pair(s));s=resolveNode(e,a);i=a.range.start;if(a.error)e.errors.push(a.error);e:for(let u=o+1;;++u){const r=t.items[u];switch(r&&r.type){case n.Type.BLANK_LINE:case n.Type.COMMENT:continue e;case n.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new n.YAMLSemanticError(a,t));break e}}}if(a.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new n.YAMLSemanticError(a,t))}}}if(s!==undefined)r.push(new Pair(s));return{comments:u,items:r}}function resolveFlowMapItems(e,t){const u=[];const r=[];let s=undefined;let i=false;let o="{";for(let a=0;ae instanceof Pair&&e.key instanceof Collection)){const u="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new n.YAMLWarning(t,u))}t.resolved=s;return s}function resolveBlockSeqItems(e,t){const u=[];const r=[];for(let s=0;so+1024)e.errors.push(getLongKeyError(t,i));const{src:r}=c.context;for(let t=o;t{const e=await this.searchDirectory(t);const u=this.nextDirectoryToSearch(t,e);if(u){return this.searchFromDirectory(u)}const n=await this.config.transform(e);return n};if(this.searchCache){return(0,i.cacheWrapper)(this.searchCache,t,u)}return u()}async searchDirectory(e){for await(const t of this.config.searchPlaces){const u=await this.loadSearchPlace(e,t);if(this.shouldSearchStopWithResult(u)===true){return u}}return null}async loadSearchPlace(e,t){const u=n.default.join(e,t);const r=await(0,s.readFile)(u);const i=await this.createCosmiconfigResult(u,r);return i}async loadFileContent(e,t){if(t===null){return null}if(t.trim()===""){return undefined}const u=this.getLoaderEntryForFile(e);const n=await u(e,t);return n}async createCosmiconfigResult(e,t){const u=await this.loadFileContent(e,t);const n=this.loadedContentToCosmiconfigResult(e,u);return n}async load(e){this.validateFilePath(e);const t=n.default.resolve(process.cwd(),e);const u=async()=>{const e=await(0,s.readFile)(t,{throwNotFound:true});const u=await this.createCosmiconfigResult(t,e);const n=await this.config.transform(u);return n};if(this.loadCache){return(0,i.cacheWrapper)(this.loadCache,t,u)}return u()}}t.Explorer=Explorer},370:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},374:function(e,t,u){"use strict";let n=u(7);class Comment extends n{constructor(e){super(e);this.type="comment"}}e.exports=Comment},402:function(e,t,u){"use strict";const n=u(277);const r=u(526);const s=u(964);e.exports=(e=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const t=s(__filename);const u=r(n.dirname(t),e);const i=require.cache[u];if(i&&i.parent){let e=i.parent.children.length;while(e--){if(i.parent.children[e].id===u){i.parent.children.splice(e,1)}}}delete require.cache[u];const o=require.cache[t];return o===undefined?require(u):o.require(u)})},425:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;var n=u(710);var r=_interopRequireDefault(u(225));var s=_interopRequireDefault(u(587));var i=u(519);var o=_interopRequireDefault(u(444));var a=_interopRequireDefault(u(191));var c=_interopRequireDefault(u(934));var l=_interopRequireDefault(u(851));var f=u(693);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function loader(e,t,u){const h=(0,n.getOptions)(this);(0,r.default)(l.default,h,{name:"PostCSS Loader",baseDataPath:"options"});const D=this.async();const p=typeof h.postcssOptions==="undefined"||typeof h.postcssOptions.config==="undefined"?true:h.postcssOptions.config;let d;if(p){try{d=await(0,f.loadConfig)(this,p)}catch(e){D(e);return}}const A=typeof h.sourceMap!=="undefined"?h.sourceMap:this.sourceMap;const{plugins:g,processOptions:C}=(0,f.getPostcssOptions)(this,d,h.postcssOptions);if(A){C.map={inline:false,annotation:false,...C.map}}if(t&&C.map){C.map.prev=(0,f.normalizeSourceMap)(t,this.context)}let F;if(u&&u.ast&&u.ast.type==="postcss"&&(0,i.satisfies)(u.ast.version,`^${o.default.version}`)){({root:F}=u.ast)}if(!F&&h.execute){e=(0,f.exec)(e,this)}let E;try{E=await(0,s.default)(g).process(F||e,C)}catch(e){if(e.file){this.addDependency(e.file)}if(e.name==="CssSyntaxError"){D(new c.default(e))}else{D(e)}return}for(const e of E.warnings()){this.emitWarning(new a.default(e))}for(const e of E.messages){if(e.type==="dependency"){this.addDependency(e.file)}if(e.type==="asset"&&e.content&&e.file){this.emitFile(e.file,e.content,e.sourceMap,e.info)}}let w=E.map?E.map.toJSON():undefined;if(w&&A){w=(0,f.normalizeSourceMapAfterPostcss)(w,this.context)}const B={type:"postcss",version:E.processor.version,root:E.root};D(null,E.css,w,{ast:B})}},430:function(e){"use strict";let t={split(e,t,u){let n=[];let r="";let s=false;let i=0;let o=false;let a=false;for(let u of e){if(o){if(a){a=false}else if(u==="\\"){a=true}else if(u===o){o=false}}else if(u==='"'||u==="'"){o=u}else if(u==="("){i+=1}else if(u===")"){if(i>0)i-=1}else if(i===0){if(t.includes(u))s=true}if(s){if(r!=="")n.push(r.trim());r="";s=false}else{r+=u}}if(u||r!=="")n.push(r.trim());return n},space(e){let u=[" ","\n","\t"];return t.split(e,u)},comma(e){return t.split(e,[","],true)}};e.exports=t},439:function(e,t,u){"use strict";let n=u(294);let r=u(54);let s=u(990);function parse(e,t){let u=new r(e,t);let s=new n(u);try{s.parse()}catch(e){if(process.env.NODE_ENV!=="production"){if(e.name==="CssSyntaxError"&&t&&t.from){if(/\.scss$/i.test(t.from)){e.message+="\nYou tried to parse SCSS with "+"the standard CSS parser; "+"try again with the postcss-scss parser"}else if(/\.sass/i.test(t.from)){e.message+="\nYou tried to parse Sass with "+"the standard CSS parser; "+"try again with the postcss-sass parser"}else if(/\.less$/i.test(t.from)){e.message+="\nYou tried to parse Less with "+"the standard CSS parser; "+"try again with the postcss-less parser"}}}throw e}return s.root}e.exports=parse;s.registerParse(parse)},444:function(e){e.exports={name:"postcss",version:"8.1.1",description:"Tool for transforming styles with JS plugins",engines:{node:"^10 || ^12 || >=14"},exports:{".":{require:"./lib/postcss.js",import:"./lib/postcss.mjs"},"./":"./"},main:"lib/postcss.js",keywords:["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],funding:{type:"opencollective",url:"https://opencollective.com/postcss/"},author:"Andrey Sitnik ",license:"MIT",homepage:"https://postcss.org/",repository:"postcss/postcss",dependencies:{colorette:"^1.2.1","line-column":"^1.0.2",nanoid:"^3.1.12","source-map":"^0.6.1"},browser:{"./lib/terminal-highlight":false,colorette:false,fs:false}}},448:function(e){"use strict";e.exports={isClean:Symbol("isClean")}},471:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cosmiconfig=cosmiconfig;t.cosmiconfigSync=cosmiconfigSync;t.defaultLoaders=void 0;var n=_interopRequireDefault(u(87));var r=u(341);var s=u(40);var i=u(690);var o=u(490);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function cosmiconfig(e,t={}){const u=normalizeOptions(e,t);const n=new r.Explorer(u);return{search:n.search.bind(n),load:n.load.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}function cosmiconfigSync(e,t={}){const u=normalizeOptions(e,t);const n=new s.ExplorerSync(u);return{search:n.searchSync.bind(n),load:n.loadSync.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}const a=Object.freeze({".cjs":i.loaders.loadJs,".js":i.loaders.loadJs,".json":i.loaders.loadJson,".yaml":i.loaders.loadYaml,".yml":i.loaders.loadYaml,noExt:i.loaders.loadYaml});t.defaultLoaders=a;const c=function identity(e){return e};function normalizeOptions(e,t){const u={packageProp:e,searchPlaces:["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.cjs`,`${e}.config.js`,`${e}.config.cjs`],ignoreEmptySearchPlaces:true,stopDir:n.default.homedir(),cache:true,transform:c,loaders:a};const r={...u,...t,loaders:{...u.loaders,...t.loaders}};return r}},490:function(){"use strict"},501:function(e,t,u){"use strict";const{promisify:n}=u(669);const r=u(747);async function isType(e,t,u){if(typeof u!=="string"){throw new TypeError(`Expected a string, got ${typeof u}`)}try{const s=await n(r[e])(u);return s[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,u){if(typeof u!=="string"){throw new TypeError(`Expected a string, got ${typeof u}`)}try{return r[e](u)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isFile=isType.bind(null,"stat","isFile");t.isDirectory=isType.bind(null,"stat","isDirectory");t.isSymlink=isType.bind(null,"lstat","isSymbolicLink");t.isFileSync=isTypeSync.bind(null,"statSync","isFile");t.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");t.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},513:function(e,t){"use strict";const u={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};const n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};const r="tag:yaml.org,2002:";const s={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(e){const t=[0];let u=e.indexOf("\n");while(u!==-1){u+=1;t.push(u);u=e.indexOf("\n",u)}return t}function getSrcInfo(e){let t,u;if(typeof e==="string"){t=findLineStarts(e);u=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;u=e.context.src}}return{lineStarts:t,src:u}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:u,src:n}=getSrcInfo(t);if(!u||!n||e>n.length)return null;for(let t=0;t=1)||e>u.length)return null;const r=u[e-1];let s=u[e];while(s&&s>r&&n[s-1]==="\n")--s;return n.slice(r,s)}function getPrettyContext({start:e,end:t},u,n=80){let r=getLine(e.line,u);if(!r)return null;let{col:s}=e;if(r.length>n){if(s<=n-10){r=r.substr(0,n-1)+"…"}else{const e=Math.round(n/2);if(r.length>s+e)r=r.substr(0,s+e-1)+"…";s-=r.length-n;r="…"+r.substr(1-n)}}let i=1;let o="";if(t){if(t.line===e.line&&s+(t.col-e.col)<=n+1){i=t.col-e.col}else{i=Math.min(r.length+1,n)-s;o="…"}}const a=s>1?" ".repeat(s-1):"";const c="^".repeat(i);return`${r}\n${a}${c}${o}`}class Range{static copy(e){return new Range(e.start,e.end)}constructor(e,t){this.start=e;this.end=t||e}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:u,end:n}=this;if(e.length===0||n<=e[0]){this.origStart=u;this.origEnd=n;return t}let r=t;while(ru)break;else++r}this.origStart=u+r;const s=r;while(r=n)break;else++r}this.origEnd=n+r;return s}}class Node{static addStringTerminator(e,t,u){if(u[u.length-1]==="\n")return u;const n=Node.endOfWhiteSpace(e,t);return n>=e.length||e[n]==="\n"?u+"\n":u}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return true;const s=e[t-1];if(s&&s!=="\n")return false;if(n){if(r!==n)return false}else{if(r!==u.DIRECTIVES_END&&r!==u.DOCUMENT_END)return false}const i=e[t+1];const o=e[t+2];if(i!==r||o!==r)return false;const a=e[t+3];return!a||a==="\n"||a==="\t"||a===" "}static endOfIdentifier(e,t){let u=e[t];const n=u==="<";const r=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(u&&r.indexOf(u)===-1)u=e[t+=1];if(n&&u===">")t+=1;return t}static endOfIndent(e,t){let u=e[t];while(u===" ")u=e[t+=1];return t}static endOfLine(e,t){let u=e[t];while(u&&u!=="\n")u=e[t+=1];return t}static endOfWhiteSpace(e,t){let u=e[t];while(u==="\t"||u===" ")u=e[t+=1];return t}static startOfLine(e,t){let u=e[t-1];if(u==="\n")return t;while(u&&u!=="\n")u=e[t-=1];return t+1}static endOfBlockIndent(e,t,u){const n=Node.endOfIndent(e,u);if(n>u+t){return n}else{const t=Node.endOfWhiteSpace(e,n);const u=e[t];if(!u||u==="\n")return t}return null}static atBlank(e,t,u){const n=e[t];return n==="\n"||n==="\t"||n===" "||u&&!n}static nextNodeIsIndented(e,t,u){if(!e||t<0)return false;if(t>0)return true;return u&&e==="-"}static normalizeOffset(e,t){const u=e[t];return!u?t:u!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,u){let n=0;let r=false;let s="";let i=e[t+1];while(i===" "||i==="\t"||i==="\n"){switch(i){case"\n":n=0;t+=1;s+="\n";break;case"\t":if(n<=u)r=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":n+=1;t+=1;break}i=e[t+1]}if(!s)s=" ";if(i&&n<=u)r=true;return{fold:s,offset:t,error:r}}constructor(e,t,u){Object.defineProperty(this,"context",{value:u||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,u){if(!this.context)return null;const{src:n}=this.context;const r=this.props[e];return r&&n[r.start]===t?n.slice(r.start+(u?1:0),r.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:u}=this.valueRange;return e!==u||Node.atBlank(t,u-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tu.setOrigRange(e,t));return t}toString(){const{context:{src:e},range:t,value:u}=this;if(u!=null)return u;const n=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,n)}}class YAMLError extends Error{constructor(e,t,u){if(!u||!(t instanceof Node))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=u;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new Range(this.offset,this.offset+1);const t=e&&getLinePos(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:u}=this.linePos.start;this.message+=` at line ${t}, column ${u}`;const n=e&&getPrettyContext(this.linePos,e);if(n)this.message+=`:\n\n${n}\n`}delete this.source}}class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}function _defineProperty(e,t,u){if(t in e){Object.defineProperty(e,t,{value:u,enumerable:true,configurable:true,writable:true})}else{e[t]=u}return e}class PlainValue extends Node{static endOfLine(e,t,u){let n=e[t];let r=t;while(n&&n!=="\n"){if(u&&(n==="["||n==="]"||n==="{"||n==="}"||n===","))break;const t=e[r+1];if(n===":"&&(!t||t==="\n"||t==="\t"||t===" "||u&&t===","))break;if((n===" "||n==="\t")&&t==="#")break;r+=1;n=t}return r}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:u}=this.context;let n=u[t-1];while(es?u.slice(s,n+1):e}else{r+=e}}const s=u[e];switch(s){case"\t":{const e="Plain value cannot start with a tab character";const t=[new YAMLSemanticError(this,e)];return{errors:t,str:r}}case"@":case"`":{const e=`Plain value cannot start with reserved character ${s}`;const t=[new YAMLSemanticError(this,e)];return{errors:t,str:r}}default:return r}}parseBlockValue(e){const{indent:t,inFlow:u,src:n}=this.context;let r=e;let s=e;for(let e=n[r];e==="\n";e=n[r]){if(Node.atDocumentBoundary(n,r+1))break;const e=Node.endOfBlockIndent(n,t,r+1);if(e===null||n[e]==="#")break;if(n[e]==="\n"){r=e}else{s=PlainValue.endOfLine(n,e,u);r=s}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=s;return s}parse(e,t){this.context=e;const{inFlow:u,src:n}=e;let r=t;const s=n[r];if(s&&s!=="#"&&s!=="\n"){r=PlainValue.endOfLine(n,t,u)}this.valueRange=new Range(t,r);r=Node.endOfWhiteSpace(n,r);r=this.parseComment(r);if(!this.hasComment||this.valueRange.isEmpty()){r=this.parseBlockValue(r)}return r}}t.Char=u;t.Node=Node;t.PlainValue=PlainValue;t.Range=Range;t.Type=n;t.YAMLError=YAMLError;t.YAMLReferenceError=YAMLReferenceError;t.YAMLSemanticError=YAMLSemanticError;t.YAMLSyntaxError=YAMLSyntaxError;t.YAMLWarning=YAMLWarning;t._defineProperty=_defineProperty;t.defaultTagPrefix=r;t.defaultTags=s},519:function(e){e.exports=require("next/dist/compiled/semver")},521:function(e,t,u){e.exports=u(792).YAML},525:function(e,t,u){"use strict";var n=u(513);var r=u(310);var s=u(626);function createMap(e,t,u){const n=new r.YAMLMap(e);if(t instanceof Map){for(const[r,s]of t)n.items.push(e.createPair(r,s,u))}else if(t&&typeof t==="object"){for(const r of Object.keys(t))n.items.push(e.createPair(r,t[r],u))}if(typeof e.sortMapEntries==="function"){n.items.sort(e.sortMapEntries)}return n}const i={createNode:createMap,default:true,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:r.resolveMap};function createSeq(e,t,u){const n=new r.YAMLSeq(e);if(t&&t[Symbol.iterator]){for(const r of t){const t=e.createNode(r,u.wrapScalars,null,u);n.items.push(t)}}return n}const o={createNode:createSeq,default:true,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:r.resolveSeq};const a={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify(e,t,u,n){t=Object.assign({actualString:true},t);return r.stringifyString(e,t,u,n)},options:r.strOptions};const c=[i,o,a];const l=e=>typeof e==="bigint"||Number.isInteger(e);const f=(e,t,u)=>r.intOptions.asBigInt?BigInt(e):parseInt(t,u);function intStringify(e,t,u){const{value:n}=e;if(l(n)&&n>=0)return u+n.toString(t);return r.stringifyNumber(e)}const h={identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr};const D={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:r.boolOptions,stringify:({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr};const p={identify:e=>l(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>f(e,t,8),options:r.intOptions,stringify:e=>intStringify(e,8,"0o")};const d={identify:l,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>f(e,e,10),options:r.intOptions,stringify:r.stringifyNumber};const A={identify:e=>l(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>f(e,t,16),options:r.intOptions,stringify:e=>intStringify(e,16,"0x")};const g={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const C={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};const F={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,u){const n=t||u;const s=new r.Scalar(parseFloat(e));if(n&&n[n.length-1]==="0")s.minFractionDigits=n.length;return s},stringify:r.stringifyNumber};const E=c.concat([h,D,p,d,A,g,C,F]);const w=e=>typeof e==="bigint"||Number.isInteger(e);const B=({value:e})=>JSON.stringify(e);const y=[i,o,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify:B},{identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:B},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:B},{identify:w,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>r.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>w(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:B}];y.scalarFallback=(e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)});const m=({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr;const S=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve$1(e,t,u){let n=t.replace(/_/g,"");if(r.intOptions.asBigInt){switch(u){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}const t=BigInt(n);return e==="-"?BigInt(-1)*t:t}const s=parseInt(n,u);return e==="-"?-1*s:s}function intStringify$1(e,t,u){const{value:n}=e;if(S(n)){const e=n.toString(t);return n<0?"-"+u+e.substr(1):u+e}return r.stringifyNumber(e)}const b=c.concat([{identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:r.boolOptions,stringify:m},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:r.boolOptions,stringify:m},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,2),stringify:e=>intStringify$1(e,2,"0b")},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,8),stringify:e=>intStringify$1(e,8,"0")},{identify:S,default:true,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,u)=>intResolve$1(t,u,10),stringify:r.stringifyNumber},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,16),stringify:e=>intStringify$1(e,16,"0x")},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const u=new r.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")u.minFractionDigits=e.length}return u},stringify:r.stringifyNumber}],s.binary,s.omap,s.pairs,s.set,s.intTime,s.floatTime,s.timestamp);const O={core:E,failsafe:c,json:y,yaml11:b};const M={binary:s.binary,bool:D,float:F,floatExp:C,floatNaN:g,floatTime:s.floatTime,int:d,intHex:A,intOct:p,intTime:s.intTime,map:i,null:h,omap:s.omap,pairs:s.pairs,seq:o,set:s.set,timestamp:s.timestamp};function findTagObject(e,t,u){if(t){const e=u.filter(e=>e.tag===t);const n=e.find(e=>!e.format)||e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return u.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)}function createNode(e,t,u){if(e instanceof r.Node)return e;const{defaultPrefix:n,onTagObj:s,prevObjects:a,schema:c,wrapScalars:l}=u;if(t&&t.startsWith("!!"))t=n+t.slice(2);let f=findTagObject(e,t,c.tags);if(!f){if(typeof e.toJSON==="function")e=e.toJSON();if(typeof e!=="object")return l?new r.Scalar(e):e;f=e instanceof Map?i:e[Symbol.iterator]?o:i}if(s){s(f);delete u.onTagObj}const h={};if(e&&typeof e==="object"&&a){const t=a.get(e);if(t){const e=new r.Alias(t);u.aliasNodes.push(e);return e}h.value=e;a.set(e,h)}h.node=f.createNode?f.createNode(u.schema,e,u):l?new r.Scalar(e):e;if(t&&h.node instanceof r.Node)h.node.tag=t;return h.node}function getSchemaTags(e,t,u,n){let r=e[n.replace(/\W/g,"")];if(!r){const t=Object.keys(e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${n}"; use one of ${t}`)}if(Array.isArray(u)){for(const e of u)r=r.concat(e)}else if(typeof u==="function"){r=u(r.slice())}for(let e=0;eJSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${u}"; use one of ${e}`)}r[e]=n}}return r}const N=(e,t)=>e.keyt.key?1:0;class Schema{constructor({customTags:e,merge:t,schema:u,sortMapEntries:n,tags:r}){this.merge=!!t;this.name=u;this.sortMapEntries=n===true?N:n||null;if(!e&&r)s.warnOptionDeprecation("tags","customTags");this.tags=getSchemaTags(O,M,e||r,u)}createNode(e,t,u,n){const r={defaultPrefix:Schema.defaultPrefix,schema:this,wrapScalars:t};const s=n?Object.assign(n,r):r;return createNode(e,u,s)}createPair(e,t,u){if(!u)u={wrapScalars:true};const n=this.createNode(e,u.wrapScalars,null,u);const s=this.createNode(t,u.wrapScalars,null,u);return new r.Pair(n,s)}}n._defineProperty(Schema,"defaultPrefix",n.defaultTagPrefix);n._defineProperty(Schema,"defaultTags",n.defaultTags);t.Schema=Schema},526:function(e,t,u){"use strict";const n=u(277);const r=u(282);const s=u(747);const i=(e,t,u)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``)}if(typeof t!=="string"){throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``)}try{e=s.realpathSync(e)}catch(t){if(t.code==="ENOENT"){e=n.resolve(e)}else if(u){return null}else{throw t}}const i=n.join(e,"noop.js");const o=()=>r._resolveFilename(t,{id:i,filename:i,paths:r._nodeModulePaths(e)});if(u){try{return o()}catch(e){return null}}return o()};e.exports=((e,t)=>i(e,t));e.exports.silent=((e,t)=>i(e,t,true))},548:function(e,t,u){"use strict";var n=u(370);var r=u(591);var s=Array.prototype.slice;e.exports=LineColumnFinder;function LineColumnFinder(e,t){if(!(this instanceof LineColumnFinder)){if(typeof t==="number"){return new LineColumnFinder(e).fromIndex(t)}return new LineColumnFinder(e,t)}this.str=e||"";this.lineToIndex=buildLineToIndex(this.str);t=t||{};this.origin=typeof t.origin==="undefined"?1:t.origin}LineColumnFinder.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e)){return null}var t=findLowerIndexInRangeArray(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};LineColumnFinder.prototype.toIndex=function(e,t){if(typeof t==="undefined"){if(n(e)&&e.length>=2){return this.toIndex(e[0],e[1])}if(r(e)&&"line"in e&&("col"in e||"column"in e)){return this.toIndex(e.line,"col"in e?e.col:e.column)}return-1}if(isNaN(e)||isNaN(t)){return-1}e-=this.origin;t-=this.origin;if(e>=0&&t>=0&&e=t[t.length-1]){return t.length-1}var u=0,n=t.length-2,r;while(u>1);if(e=t[r+1]){u=r+1}else{u=r;break}}return u}},560:function(e,t,u){"use strict";let{dirname:n,join:r}=u(277);let s=u(241);let i=u(747);function fromBase64(e){if(Buffer){return Buffer.from(e,"base64").toString()}else{return window.atob(e)}}class PreviousMap{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e);this.inline=this.startWith(this.annotation,"data:");let u=t.map?t.map.prev:undefined;let r=this.loadMap(t.from,u);if(!this.mapFile&&t.from){this.mapFile=t.from}if(this.mapFile)this.root=n(this.mapFile);if(r)this.text=r}consumer(){if(!this.consumerCache){this.consumerCache=new s.SourceMapConsumer(this.text)}return this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t}getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm);if(t&&t.length>0){let e=t[t.length-1];if(e){this.annotation=this.getAnnotationURL(e)}}}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/;let u=/^data:application\/json;base64,/;let n=/^data:application\/json;charset=utf-?8,/;let r=/^data:application\/json,/;if(n.test(e)||r.test(e)){return decodeURIComponent(e.substr(RegExp.lastMatch.length))}if(t.test(e)||u.test(e)){return fromBase64(e.substr(RegExp.lastMatch.length))}let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}loadFile(e){this.root=n(e);if(i.existsSync&&i.existsSync(e)){this.mapFile=e;return i.readFileSync(e,"utf-8").toString().trim()}}loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){let u=t(e);if(u){let e=this.loadFile(u);if(!e){throw new Error("Unable to load previous source map: "+u.toString())}return e}}else if(t instanceof s.SourceMapConsumer){return s.SourceMapGenerator.fromSourceMap(t).toString()}else if(t instanceof s.SourceMapGenerator){return t.toString()}else if(this.isMap(t)){return JSON.stringify(t)}else{throw new Error("Unsupported previous source map format: "+t.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){let t=this.annotation;if(e)t=r(n(e),t);return this.loadFile(t)}}isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}}e.exports=PreviousMap},585:function(e,t,u){"use strict";let n=u(893);class Result{constructor(e,t,u){this.processor=e;this.messages=[];this.root=t;this.opts=u;this.css=undefined;this.map=undefined}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){t.plugin=this.lastPlugin.postcssPlugin}}let u=new n(e,t);this.messages.push(u);return u}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}}e.exports=Result},587:function(e,t,u){"use strict";let n=u(233);let r=u(249);let s=u(698);let i=u(990);let o=u(184);let a=u(880);let c=u(893);let l=u(374);let f=u(149);let h=u(585);let D=u(54);let p=u(439);let d=u(430);let A=u(301);let g=u(847);let C=u(7);function postcss(...e){if(e.length===1&&Array.isArray(e[0])){e=e[0]}return new o(e,postcss)}postcss.plugin=function plugin(e,t){if(console&&console.warn){console.warn("postcss.plugin was deprecated. Migration guide:\n"+"https://evilmartians.com/chronicles/postcss-8-plugin-migration");if(process.env.LANG&&process.env.LANG.startsWith("cn")){console.warn("postcss.plugin 被弃用. 迁移指南:\n"+"https://www.w3ctech.com/topic/2226")}}function creator(...u){let n=t(...u);n.postcssPlugin=e;n.postcssVersion=(new o).version;return n}let u;Object.defineProperty(creator,"postcss",{get(){if(!u)u=creator();return u}});creator.process=function(e,t,u){return postcss([creator(u)]).process(e,t)};return creator};postcss.stringify=a;postcss.parse=p;postcss.list=d;postcss.comment=(e=>new l(e));postcss.atRule=(e=>new f(e));postcss.decl=(e=>new r(e));postcss.rule=(e=>new A(e));postcss.root=(e=>new g(e));postcss.CssSyntaxError=n;postcss.Declaration=r;postcss.Container=i;postcss.Comment=l;postcss.Warning=c;postcss.AtRule=f;postcss.Result=h;postcss.Input=D;postcss.Rule=A;postcss.Root=g;postcss.Node=C;s.registerPostcss(postcss);e.exports=postcss},591:function(e,t,u){"use strict";var n=u(370);e.exports=function isObject(e){return e!=null&&typeof e==="object"&&n(e)===false}},592:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldHighlight=shouldHighlight;t.getChalk=getChalk;t.default=highlight;var n=_interopRequireWildcard(u(968));var r=_interopRequireDefault(u(745));var s=_interopRequireDefault(u(736));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var u={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var s=n?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(u,r,s)}else{u[r]=e[r]}}}u.default=e;if(t){t.set(e,u)}return u}function getDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}const i=/\r\n|[\n\r\u2028\u2029]/;const o=/^[a-z][\w-]*$/i;const a=/^[()[\]{}]$/;function getTokenType(e){const[t,u]=e.slice(-2);const s=(0,n.matchToToken)(e);if(s.type==="name"){if(r.default.keyword.isReservedWordES6(s.value)){return"keyword"}if(o.test(s.value)&&(u[t-1]==="<"||u.substr(t-2,2)=="n(e)).join("\n")}else{return t[0]}})}function shouldHighlight(e){return s.default.supportsColor||e.forceColor}function getChalk(e){let t=s.default;if(e.forceColor){t=new s.default.constructor({enabled:true,level:1})}return t}function highlight(e,t={}){if(shouldHighlight(t)){const u=getChalk(t);const n=getDefs(u);return highlightTokens(n,e)}else{return e}}},594:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtensionDescription=getExtensionDescription;t.ExplorerBase=void 0;var n=_interopRequireDefault(u(277));var r=u(690);var s=u(208);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ExplorerBase{constructor(e){if(e.cache===true){this.loadCache=new Map;this.searchCache=new Map}this.config=e;this.validateConfig()}clearLoadCache(){if(this.loadCache){this.loadCache.clear()}}clearSearchCache(){if(this.searchCache){this.searchCache.clear()}}clearCaches(){this.clearLoadCache();this.clearSearchCache()}validateConfig(){const e=this.config;e.searchPlaces.forEach(t=>{const u=n.default.extname(t)||"noExt";const r=e.loaders[u];if(!r){throw new Error(`No loader specified for ${getExtensionDescription(t)}, so searchPlaces item "${t}" is invalid`)}if(typeof r!=="function"){throw new Error(`loader for ${getExtensionDescription(t)} is not a function (type provided: "${typeof r}"), so searchPlaces item "${t}" is invalid`)}})}shouldSearchStopWithResult(e){if(e===null)return false;if(e.isEmpty&&this.config.ignoreEmptySearchPlaces)return false;return true}nextDirectoryToSearch(e,t){if(this.shouldSearchStopWithResult(t)){return null}const u=nextDirUp(e);if(u===e||e===this.config.stopDir){return null}return u}loadPackageProp(e,t){const u=r.loaders.loadJson(e,t);const n=(0,s.getPropertyByPath)(u,this.config.packageProp);return n||null}getLoaderEntryForFile(e){if(n.default.basename(e)==="package.json"){const e=this.loadPackageProp.bind(this);return e}const t=n.default.extname(e)||"noExt";const u=this.config.loaders[t];if(!u){throw new Error(`No loader specified for ${getExtensionDescription(e)}`)}return u}loadedContentToCosmiconfigResult(e,t){if(t===null){return null}if(t===undefined){return{filepath:e,config:undefined,isEmpty:true}}return{config:t,filepath:e}}validateFilePath(e){if(!e){throw new Error("load must pass a non-empty string")}}}t.ExplorerBase=ExplorerBase;function nextDirUp(e){return n.default.dirname(e)}function getExtensionDescription(e){const t=n.default.extname(e);return t?`extension "${t}"`:"files without extensions"}},622:function(e){"use strict";const t="'".charCodeAt(0);const u='"'.charCodeAt(0);const n="\\".charCodeAt(0);const r="/".charCodeAt(0);const s="\n".charCodeAt(0);const i=" ".charCodeAt(0);const o="\f".charCodeAt(0);const a="\t".charCodeAt(0);const c="\r".charCodeAt(0);const l="[".charCodeAt(0);const f="]".charCodeAt(0);const h="(".charCodeAt(0);const D=")".charCodeAt(0);const p="{".charCodeAt(0);const d="}".charCodeAt(0);const A=";".charCodeAt(0);const g="*".charCodeAt(0);const C=":".charCodeAt(0);const F="@".charCodeAt(0);const E=/[\t\n\f\r "#'()/;[\\\]{}]/g;const w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const B=/.[\n"'(/\\]/;const y=/[\da-f]/i;e.exports=function tokenizer(e,m={}){let S=e.css.valueOf();let b=m.ignoreErrors;let O,M,N,T,L;let x,R,v,_,$;let I=S.length;let P=0;let Y=[];let j=[];function position(){return P}function unclosed(t){throw e.error("Unclosed "+t,P)}function endOfFile(){return j.length===0&&P>=I}function nextToken(e){if(j.length)return j.pop();if(P>=I)return;let m=e?e.ignoreUnclosed:false;O=S.charCodeAt(P);switch(O){case s:case i:case a:case c:case o:{M=P;do{M+=1;O=S.charCodeAt(M)}while(O===i||O===s||O===a||O===c||O===o);$=["space",S.slice(P,M)];P=M-1;break}case l:case f:case p:case d:case C:case A:case D:{let e=String.fromCharCode(O);$=[e,e,P];break}case h:{v=Y.length?Y.pop()[1]:"";_=S.charCodeAt(P+1);if(v==="url"&&_!==t&&_!==u&&_!==i&&_!==s&&_!==a&&_!==o&&_!==c){M=P;do{x=false;M=S.indexOf(")",M+1);if(M===-1){if(b||m){M=P;break}else{unclosed("bracket")}}R=M;while(S.charCodeAt(R-1)===n){R-=1;x=!x}}while(x);$=["brackets",S.slice(P,M+1),P,M];P=M}else{M=S.indexOf(")",P+1);T=S.slice(P,M+1);if(M===-1||B.test(T)){$=["(","(",P]}else{$=["brackets",T,P,M];P=M}}break}case t:case u:{N=O===t?"'":'"';M=P;do{x=false;M=S.indexOf(N,M+1);if(M===-1){if(b||m){M=P+1;break}else{unclosed("string")}}R=M;while(S.charCodeAt(R-1)===n){R-=1;x=!x}}while(x);$=["string",S.slice(P,M+1),P,M];P=M;break}case F:{E.lastIndex=P+1;E.test(S);if(E.lastIndex===0){M=S.length-1}else{M=E.lastIndex-2}$=["at-word",S.slice(P,M+1),P,M];P=M;break}case n:{M=P;L=true;while(S.charCodeAt(M+1)===n){M+=1;L=!L}O=S.charCodeAt(M+1);if(L&&O!==r&&O!==i&&O!==s&&O!==a&&O!==c&&O!==o){M+=1;if(y.test(S.charAt(M))){while(y.test(S.charAt(M+1))){M+=1}if(S.charCodeAt(M+1)===i){M+=1}}}$=["word",S.slice(P,M+1),P,M];P=M;break}default:{if(O===r&&S.charCodeAt(P+1)===g){M=S.indexOf("*/",P+2)+1;if(M===0){if(b||m){M=S.length}else{unclosed("comment")}}$=["comment",S.slice(P,M+1),P,M];P=M}else{w.lastIndex=P+1;w.test(S);if(w.lastIndex===0){M=S.length-1}else{M=w.lastIndex-2}$=["word",S.slice(P,M+1),P,M];Y.push($);P=M}break}}P++;return $}function back(e){j.push(e)}return{back:back,nextToken:nextToken,endOfFile:endOfFile,position:position}}},626:function(e,t,u){"use strict";var n=u(513);var r=u(310);const s={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const u=r.resolveString(e,t);if(typeof Buffer==="function"){return Buffer.from(u,"base64")}else if(typeof atob==="function"){const e=atob(u.replace(/[\n\r]/g,""));const t=new Uint8Array(e.length);for(let u=0;u{let a;if(typeof Buffer==="function"){a=u instanceof Buffer?u.toString("base64"):Buffer.from(u.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t1){const e="Each pair must have its own sequence indicator";throw new n.YAMLSemanticError(t,e)}const e=s.items[0]||new r.Pair;if(s.commentBefore)e.commentBefore=e.commentBefore?`${s.commentBefore}\n${e.commentBefore}`:s.commentBefore;if(s.comment)e.comment=e.comment?`${s.comment}\n${e.comment}`:s.comment;s=e}u.items[e]=s instanceof r.Pair?s:new r.Pair(s)}return u}function createPairs(e,t,u){const n=new r.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";for(const r of t){let t,s;if(Array.isArray(r)){if(r.length===2){t=r[0];s=r[1]}else throw new TypeError(`Expected [key, value] tuple: ${r}`)}else if(r&&r instanceof Object){const e=Object.keys(r);if(e.length===1){t=e[0];s=r[t]}else throw new TypeError(`Expected { key: value } tuple: ${r}`)}else{t=r}const i=e.createPair(t,s,u);n.items.push(i)}return n}const i={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};class YAMLOMap extends r.YAMLSeq{constructor(){super();n._defineProperty(this,"add",r.YAMLMap.prototype.add.bind(this));n._defineProperty(this,"delete",r.YAMLMap.prototype.delete.bind(this));n._defineProperty(this,"get",r.YAMLMap.prototype.get.bind(this));n._defineProperty(this,"has",r.YAMLMap.prototype.has.bind(this));n._defineProperty(this,"set",r.YAMLMap.prototype.set.bind(this));this.tag=YAMLOMap.tag}toJSON(e,t){const u=new Map;if(t&&t.onCreate)t.onCreate(u);for(const e of this.items){let n,s;if(e instanceof r.Pair){n=r.toJSON(e.key,"",t);s=r.toJSON(e.value,n,t)}else{n=r.toJSON(e,"",t)}if(u.has(n))throw new Error("Ordered maps must not include duplicate keys");u.set(n,s)}return u}}n._defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,t){const u=parsePairs(e,t);const s=[];for(const{key:e}of u.items){if(e instanceof r.Scalar){if(s.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new n.YAMLSemanticError(t,e)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,u)}function createOMap(e,t,u){const n=createPairs(e,t,u);const r=new YAMLOMap;r.items=n.items;return r}const o={identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};class YAMLSet extends r.YAMLMap{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof r.Pair?e:new r.Pair(e);const u=r.findPair(this.items,t.key);if(!u)this.items.push(t)}get(e,t){const u=r.findPair(this.items,e);return!t&&u instanceof r.Pair?u.key instanceof r.Scalar?u.key.value:u.key:u}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const u=r.findPair(this.items,e);if(u&&!t){this.items.splice(this.items.indexOf(u),1)}else if(!u&&t){this.items.push(new r.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,u){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,u);else throw new Error("Set items must all have null values")}}n._defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const u=r.resolveMap(e,t);if(!u.hasAllNullValues())throw new n.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,u)}function createSet(e,t,u){const n=new YAMLSet;for(const r of t)n.items.push(e.createPair(r,null,u));return n}const a={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};const c=(e,t)=>{const u=t.split(":").reduce((e,t)=>e*60+Number(t),0);return e==="-"?-u:u};const l=({value:e})=>{if(isNaN(e)||!isFinite(e))return r.stringifyNumber(e);let t="";if(e<0){t="-";e=Math.abs(e)}const u=[e%60];if(e<60){u.unshift(0)}else{e=Math.round((e-u[0])/60);u.unshift(e%60);if(e>=60){e=Math.round((e-u[0])/60);u.unshift(e)}}return t+u.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")};const f={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,u)=>c(t,u.replace(/_/g,"")),stringify:l};const h={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,u)=>c(t,u.replace(/_/g,"")),stringify:l};const D={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:"+"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?"+")$"),resolve:(e,t,u,n,r,s,i,o,a)=>{if(o)o=(o+"00").substr(1,3);let l=Date.UTC(t,u-1,n,r||0,s||0,i||0,o||0);if(a&&a!=="Z"){let e=c(a[0],a.slice(1));if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function shouldWarn(e){const t=typeof process!=="undefined"&&process.env||{};if(e){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS!=="undefined")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!t.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS!=="undefined")return!YAML_SILENCE_WARNINGS;return!t.YAML_SILENCE_WARNINGS}function warn(e,t){if(shouldWarn(false)){const u=typeof process!=="undefined"&&process.emitWarning;if(u)u(e,t);else{console.warn(t?`${t}: ${e}`:e)}}}function warnFileDeprecation(e){if(shouldWarn(true)){const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}const p={};function warnOptionDeprecation(e,t){if(!p[e]&&shouldWarn(true)){p[e]=true;let u=`The option '${e}' will be removed in a future release`;u+=t?`, use '${t}' instead.`:".";warn(u,"DeprecationWarning")}}t.binary=s;t.floatTime=h;t.intTime=f;t.omap=o;t.pairs=i;t.set=a;t.timestamp=D;t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation},669:function(e){e.exports=require("util")},690:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loaders=void 0;let n;const r=function loadJs(e){if(n===undefined){n=u(402)}const t=n(e);return t};let s;const i=function loadJson(e,t){if(s===undefined){s=u(32)}try{const u=s(t);return u}catch(t){t.message=`JSON Error in ${e}:\n${t.message}`;throw t}};let o;const a=function loadYaml(e,t){if(o===undefined){o=u(521)}try{const u=o.parse(t,{prettyErrors:true});return u}catch(t){t.message=`YAML Error in ${e}:\n${t.message}`;throw t}};const c={loadJs:r,loadJson:i,loadYaml:a};t.loaders=c},693:function(e,t,u){"use strict";e=u.nmd(e);Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=loadConfig;t.getPostcssOptions=getPostcssOptions;t.exec=exec;t.normalizeSourceMap=normalizeSourceMap;t.normalizeSourceMapAfterPostcss=normalizeSourceMapAfterPostcss;var n=_interopRequireDefault(u(277));var r=_interopRequireDefault(u(282));var s=u(150);var i=u(471);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=e;const a=(e,t)=>new Promise((u,n)=>{e.stat(t,(e,t)=>{if(e){n(e)}u(t)})});function exec(e,t){const{resource:u,context:n}=t;const s=new r.default(u,o);s.paths=r.default._nodeModulePaths(n);s.filename=u;s._compile(e,u);return s.exports}async function loadConfig(e,t){const u=typeof t==="string"?n.default.resolve(t):n.default.dirname(e.resourcePath);let r;try{r=await a(e.fs,u)}catch(e){throw new Error(`No PostCSS config found in: ${u}`)}const o=(0,i.cosmiconfig)("postcss");let c;try{if(r.isFile()){c=await o.load(u)}else{c=await o.search(u)}}catch(e){throw e}if(!c){return{}}e.addDependency(c.filepath);if(c.isEmpty){return c}if(typeof c.config==="function"){const t={mode:e.mode,file:e.resourcePath,webpackLoaderContext:e};c.config=c.config(t)}c=(0,s.klona)(c);return c}function loadPlugin(e,t,u){try{if(!t||Object.keys(t).length===0){const t=require(e);if(t.default){return t.default}return t}const n=require(e);if(n.default){return n.default(t)}return n(t)}catch(t){throw new Error(`Loading PostCSS "${e}" plugin failed: ${t.message}\n\n(@${u})`)}}function pluginFactory(){const e=new Map;return t=>{if(typeof t==="undefined"){return e}if(Array.isArray(t)){for(const u of t){if(Array.isArray(u)){const[t,n]=u;e.set(t,n)}else if(u&&typeof u==="function"){e.set(u)}else if(u&&Object.keys(u).length===1&&(typeof u[Object.keys(u)[0]]==="object"||typeof u[Object.keys(u)[0]]==="boolean")&&u[Object.keys(u)[0]]!==null){const[t]=Object.keys(u);const n=u[t];if(n===false){e.delete(t)}else{e.set(t,n)}}else if(u){e.set(u)}}}else{const u=Object.entries(t);for(const[t,n]of u){if(n===false){e.delete(t)}else{e.set(t,n)}}}return e}}function getPostcssOptions(e,t={},u={}){const r=e.resourcePath;let i=u;if(typeof i==="function"){i=i(e)}let o=[];try{const u=pluginFactory();if(t.config&&t.config.plugins){u(t.config.plugins)}u(i.plugins);o=[...u()].map(e=>{const[t,u]=e;if(typeof t==="string"){return loadPlugin(t,u,r)}return t})}catch(t){e.emitError(t)}const a=t.config||{};if(a.from){a.from=n.default.resolve(n.default.dirname(t.filepath),a.from)}if(a.to){a.to=n.default.resolve(n.default.dirname(t.filepath),a.to)}delete a.plugins;const c=(0,s.klona)(i);if(c.from){c.from=n.default.resolve(e.rootContext,c.from)}if(c.to){c.to=n.default.resolve(e.rootContext,c.to)}delete c.config;delete c.plugins;const l={from:r,to:r,map:false,...a,...c};if(typeof l.parser==="string"){try{l.parser=require(l.parser)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.parser}" parser failed: ${t.message}\n\n(@${r})`))}}if(typeof l.stringifier==="string"){try{l.stringifier=require(l.stringifier)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.stringifier}" stringifier failed: ${t.message}\n\n(@${r})`))}}if(typeof l.syntax==="string"){try{l.syntax=require(l.syntax)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.syntax}" syntax failed: ${t.message}\n\n(@${r})`))}}if(l.map===true){l.map={inline:true}}return{plugins:o,processOptions:l}}const c=/^[a-z]:[/\\]|^\\\\/i;const l=/^[a-z0-9+\-.]+:/i;function getURLType(e){if(e[0]==="/"){if(e[1]==="/"){return"scheme-relative"}return"path-absolute"}if(c.test(e)){return"path-absolute"}return l.test(e)?"absolute":"path-relative"}function normalizeSourceMap(e,t){let u=e;if(typeof u==="string"){u=JSON.parse(u)}delete u.file;const{sourceRoot:r}=u;delete u.sourceRoot;if(u.sources){u.sources=u.sources.map(e=>{const u=getURLType(e);if(u==="path-relative"||u==="path-absolute"){const s=u==="path-relative"&&r?n.default.resolve(r,n.default.normalize(e)):n.default.normalize(e);return n.default.relative(t,s)}return e})}return u}function normalizeSourceMapAfterPostcss(e,t){const u=e;delete u.file;u.sourceRoot="";u.sources=u.sources.map(e=>{if(e.indexOf("<")===0){return e}const u=getURLType(e);if(u==="path-relative"){return n.default.resolve(t,e)}return e});return u}},698:function(e,t,u){"use strict";let{isClean:n}=u(448);let r=u(52);let s=u(880);let i=u(112);let o=u(585);let a=u(439);let c=u(847);const l={root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"};const f=0;function isPromise(e){return typeof e==="object"&&typeof e.then==="function"}function getEvents(e){let t=false;let u=l[e.type];if(e.type==="decl"){t=e.prop.toLowerCase()}else if(e.type==="atrule"){t=e.name.toLowerCase()}if(t&&e.append){return[u,u+"-"+t,f,u+"Exit",u+"Exit-"+t]}else if(t){return[u,u+"-"+t,u+"Exit",u+"Exit-"+t]}else if(e.append){return[u,f,u+"Exit"]}else{return[u,u+"Exit"]}}function toStack(e){let t;if(e.type==="root"){t=["Root",f,"RootExit"]}else{t=getEvents(e)}return{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function cleanMarks(e){e[n]=false;if(e.nodes)e.nodes.forEach(e=>cleanMarks(e));return e}let h={};class LazyResult{constructor(e,t,u){this.stringified=false;this.processed=false;let n;if(typeof t==="object"&&t!==null&&t.type==="root"){n=cleanMarks(t)}else if(t instanceof LazyResult||t instanceof o){n=cleanMarks(t.root);if(t.map){if(typeof u.map==="undefined")u.map={};if(!u.map.inline)u.map.inline=false;u.map.prev=t.map}}else{let e=a;if(u.syntax)e=u.syntax.parse;if(u.parser)e=u.parser;if(e.parse)e=e.parse;try{n=e(t,u)}catch(e){this.processed=true;this.error=e}}this.result=new o(e,n,u);this.helpers={...h,result:this.result,postcss:h};this.plugins=this.processor.plugins.map(e=>{if(typeof e==="object"&&e.prepare){return{...e,...e.prepare(this.result)}}else{return e}})}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){if(process.env.NODE_ENV!=="production"){if(!("from"in this.opts)){i("Without `from` option PostCSS could generate wrong source map "+"and will not find Browserslist config. Set it to CSS file path "+"or to `undefined` to prevent this warning.")}}return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing){this.processing=this.runAsync()}return this.processing}sync(){if(this.error)throw this.error;if(this.processed)return this.result;this.processed=true;if(this.processing){throw this.getAsyncError()}for(let e of this.plugins){let t=this.runOnRoot(e);if(isPromise(t)){throw this.getAsyncError()}}this.prepareVisitors();if(this.hasListener){let e=this.result.root;while(!e[n]){e[n]=true;this.walkSync(e)}if(this.listeners.OnceExit){this.visitSync(this.listeners.OnceExit,e)}}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true;this.sync();let e=this.result.opts;let t=s;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let u=new r(t,this.result.root,this.result.opts);let n=u.generate();this.result.css=n[0];this.result.map=n[1];return this.result}walkSync(e){e[n]=true;let t=getEvents(e);for(let u of t){if(u===f){if(e.nodes){e.each(e=>{if(!e[n])this.walkSync(e)})}}else{let t=this.listeners[u];if(t){if(this.visitSync(t,e.toProxy()))return}}}}visitSync(e,t){for(let[u,n]of e){this.result.lastPlugin=u;let e;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!=="root"&&!t.parent)return true;if(isPromise(e)){throw this.getAsyncError()}}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){return e.Once(this.result.root,this.helpers)}else if(typeof e==="function"){return e(this.result.root,this.result)}}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let u=this.result.lastPlugin;try{if(t)t.addToError(e);this.error=e;if(e.name==="CssSyntaxError"&&!e.plugin){e.plugin=u.postcssPlugin;e.setMessage()}else if(u.postcssVersion){if(process.env.NODE_ENV!=="production"){let e=u.postcssPlugin;let t=u.postcssVersion;let n=this.result.processor.version;let r=t.split(".");let s=n.split(".");if(r[0]!==s[0]||parseInt(r[1])>parseInt(s[1])){console.error("Unknown error from PostCSS plugin. Your current PostCSS "+"version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}}}catch(e){if(console&&console.error)console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e0){let e=this.visitTick(t);if(isPromise(e)){try{await e}catch(e){let u=t[t.length-1].node;throw this.handleError(e,u)}}}}if(this.listeners.OnceExit){for(let[t,u]of this.listeners.OnceExit){this.result.lastPlugin=t;try{await u(e,this.helpers)}catch(e){throw this.handleError(e)}}}}this.processed=true;return this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,u)=>{if(!this.listeners[t])this.listeners[t]=[];this.listeners[t].push([e,u])};for(let t of this.plugins){if(typeof t==="object"){for(let u of["Root","Declaration","Rule","AtRule","Comment","DeclarationExit","RuleExit","AtRuleExit","CommentExit","RootExit","OnceExit"]){if(typeof t[u]==="object"){for(let n in t[u]){if(n==="*"){e(t,u,t[u][n])}else{e(t,u+"-"+n.toLowerCase(),t[u][n])}}}else if(typeof t[u]==="function"){e(t,u,t[u])}}}}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1];let{node:u,visitors:r}=t;if(u.type!=="root"&&!u.parent){e.pop();return}if(r.length>0&&t.visitorIndex{h=e});e.exports=LazyResult;c.registerLazyResult(LazyResult)},710:function(e){e.exports=require("loader-utils")},736:function(e){e.exports=require("next/dist/compiled/chalk")},745:function(e,t,u){(function(){"use strict";t.ast=u(928);t.code=u(818);t.keyword=u(864)})()},747:function(e){e.exports=require("fs")},780:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readFile=readFile;t.readFileSync=readFileSync;var n=_interopRequireDefault(u(747));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function fsReadFileAsync(e,t){return new Promise((u,r)=>{n.default.readFile(e,t,(e,t)=>{if(e){r(e);return}u(t)})})}async function readFile(e,t={}){const u=t.throwNotFound===true;try{const t=await fsReadFileAsync(e,"utf8");return t}catch(e){if(u===false&&e.code==="ENOENT"){return null}throw e}}function readFileSync(e,t={}){const u=t.throwNotFound===true;try{const t=n.default.readFileSync(e,"utf8");return t}catch(e){if(u===false&&e.code==="ENOENT"){return null}throw e}}},792:function(e,t,u){"use strict";var n=u(513);var r=u(63);u(310);var s=u(192);var i=u(525);var o=u(626);function createNode(e,t=true,u){if(u===undefined&&typeof t==="string"){u=t;t=true}const n=Object.assign({},s.Document.defaults[s.defaultOptions.version],s.defaultOptions);const r=new i.Schema(n);return r.createNode(e,t,u)}class Document extends s.Document{constructor(e){super(Object.assign({},s.defaultOptions,e))}}function parseAllDocuments(e,t){const u=[];let n;for(const s of r.parse(e)){const e=new Document(t);e.parse(s,n);u.push(e);n=e}return u}function parseDocument(e,t){const u=r.parse(e);const s=new Document(t).parse(u[0]);if(u.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new n.YAMLSemanticError(u[1],e))}return s}function parse(e,t){const u=parseDocument(e,t);u.warnings.forEach(e=>o.warn(e));if(u.errors.length>0)throw u.errors[0];return u.toJSON()}function stringify(e,t){const u=new Document(t);u.contents=e;return String(u)}const a={createNode:createNode,defaultOptions:s.defaultOptions,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:r.parse,parseDocument:parseDocument,scalarOptions:s.scalarOptions,stringify:stringify};t.YAML=a},798:function(e){"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}stringify(e,t){this[e.type](e,t)}root(e){this.root=e;this.body(e);if(e.raws.after)this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft");let u=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+u+"*/",e)}decl(e,t){let u=this.raw(e,"between","colon");let n=e.prop+u+this.rawValue(e,"value");if(e.important){n+=e.raws.important||" !important"}if(t)n+=";";this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}atrule(e,t){let u="@"+e.name;let n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){u+=e.raws.afterName}else if(n){u+=" "}if(e.nodes){this.block(e,u+n)}else{let r=(e.raws.between||"")+(t?";":"");this.builder(u+n+r,e)}}body(e){let t=e.nodes.length-1;while(t>0){if(e.nodes[t].type!=="comment")break;t-=1}let u=this.raw(e,"semicolon");for(let n=0;n{r=e.raws[u];if(typeof r!=="undefined")return false})}}if(typeof r==="undefined")r=t[n];i.rawCache[n]=r;return r}rawSemicolon(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}});return t}rawEmptyBody(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}});return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk(u=>{let n=u.parent;if(n&&n!==e&&n.parent&&n.parent===e){if(typeof u.raws.before!=="undefined"){let e=u.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}});return t}rawBeforeComment(e,t){let u;e.walkComments(e=>{if(typeof e.raws.before!=="undefined"){u=e.raws.before;if(u.includes("\n")){u=u.replace(/[^\n]+$/,"")}return false}});if(typeof u==="undefined"){u=this.raw(t,null,"beforeDecl")}else if(u){u=u.replace(/\S/g,"")}return u}rawBeforeDecl(e,t){let u;e.walkDecls(e=>{if(typeof e.raws.before!=="undefined"){u=e.raws.before;if(u.includes("\n")){u=u.replace(/[^\n]+$/,"")}return false}});if(typeof u==="undefined"){u=this.raw(t,null,"beforeRule")}else if(u){u=u.replace(/\S/g,"")}return u}rawBeforeRule(e){let t;e.walk(u=>{if(u.nodes&&(u.parent!==e||e.first!==u)){if(typeof u.raws.before!=="undefined"){t=u.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}});if(t)t=t.replace(/\S/g,"");return t}rawBeforeClose(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}});if(t)t=t.replace(/\S/g,"");return t}rawBeforeOpen(e){let t;e.walk(e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}});return t}rawColon(e){let t;e.walkDecls(e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}});return t}beforeAfter(e,t){let u;if(e.type==="decl"){u=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){u=this.raw(e,null,"beforeComment")}else if(t==="before"){u=this.raw(e,null,"beforeRule")}else{u=this.raw(e,null,"beforeClose")}let n=e.parent;let r=0;while(n&&n.type!=="root"){r+=1;n=n.parent}if(u.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e=48&&e<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isWhiteSpace(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&n.indexOf(e)>=0}function isLineTerminator(e){return e===10||e===13||e===8232||e===8233}function fromCodePoint(e){if(e<=65535){return String.fromCharCode(e)}var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296);var u=String.fromCharCode((e-65536)%1024+56320);return t+u}r=new Array(128);for(i=0;i<128;++i){r[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95}s=new Array(128);for(i=0;i<128;++i){s[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95}function isIdentifierStartES5(e){return e<128?r[e]:u.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES5(e){return e<128?s[e]:u.NonAsciiIdentifierPart.test(fromCodePoint(e))}function isIdentifierStartES6(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES6(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(fromCodePoint(e))}e.exports={isDecimalDigit:isDecimalDigit,isHexDigit:isHexDigit,isOctalDigit:isOctalDigit,isWhiteSpace:isWhiteSpace,isLineTerminator:isLineTerminator,isIdentifierStartES5:isIdentifierStartES5,isIdentifierPartES5:isIdentifierPartES5,isIdentifierStartES6:isIdentifierStartES6,isIdentifierPartES6:isIdentifierPartES6}})()},835:function(e){e.exports=require("url")},847:function(e,t,u){"use strict";let n=u(990);let r,s;class Root extends n{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}removeChild(e,t){let u=this.index(e);if(!t&&u===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[u].raws.before}return super.removeChild(e)}normalize(e,t,u){let n=super.normalize(e);if(t){if(u==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of n){e.raws.before=t.raws.before}}}return n}toResult(e={}){let t=new r(new s,this,e);return t.stringify()}}Root.registerLazyResult=(e=>{r=e});Root.registerProcessor=(e=>{s=e});e.exports=Root},851:function(e){e.exports={type:"object",properties:{postcssOptions:{description:"Options to pass through to `Postcss`.",anyOf:[{type:"object",additionalProperties:true,properties:{config:{description:"Allows to specify PostCSS Config Path (https://github.com/postcss/postcss-loader#config)",anyOf:[{description:"Allows to specify the path to the configuration file",type:"string"},{description:"Enables/Disables autoloading config",type:"boolean"}]}}},{instanceof:"Function"}]},execute:{description:"Enables/Disables PostCSS parser support in 'CSS-in-JS' (https://github.com/postcss/postcss-loader#execute)",type:"boolean"},sourceMap:{description:"Enables/Disables generation of source maps (https://github.com/postcss/postcss-loader#sourcemap)",type:"boolean"}},additionalProperties:false}},864:function(e,t,u){(function(){"use strict";var t=u(818);function isStrictModeReservedWordES6(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return true;default:return false}}function isKeywordES5(e,t){if(!t&&e==="yield"){return false}return isKeywordES6(e,t)}function isKeywordES6(e,t){if(t&&isStrictModeReservedWordES6(e)){return true}switch(e.length){case 2:return e==="if"||e==="in"||e==="do";case 3:return e==="var"||e==="for"||e==="new"||e==="try";case 4:return e==="this"||e==="else"||e==="case"||e==="void"||e==="with"||e==="enum";case 5:return e==="while"||e==="break"||e==="catch"||e==="throw"||e==="const"||e==="yield"||e==="class"||e==="super";case 6:return e==="return"||e==="typeof"||e==="delete"||e==="switch"||e==="export"||e==="import";case 7:return e==="default"||e==="finally"||e==="extends";case 8:return e==="function"||e==="continue"||e==="debugger";case 10:return e==="instanceof";default:return false}}function isReservedWordES5(e,t){return e==="null"||e==="true"||e==="false"||isKeywordES5(e,t)}function isReservedWordES6(e,t){return e==="null"||e==="true"||e==="false"||isKeywordES6(e,t)}function isRestrictedWord(e){return e==="eval"||e==="arguments"}function isIdentifierNameES5(e){var u,n,r;if(e.length===0){return false}r=e.charCodeAt(0);if(!t.isIdentifierStartES5(r)){return false}for(u=1,n=e.length;u=n){return false}s=e.charCodeAt(u);if(!(56320<=s&&s<=57343)){return false}r=decodeUtf16(r,s)}if(!i(r)){return false}i=t.isIdentifierPartES6}return true}function isIdentifierES5(e,t){return isIdentifierNameES5(e)&&!isReservedWordES5(e,t)}function isIdentifierES6(e,t){return isIdentifierNameES6(e)&&!isReservedWordES6(e,t)}e.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:isRestrictedWord,isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:isIdentifierES5,isIdentifierES6:isIdentifierES6}})()},880:function(e,t,u){"use strict";let n=u(798);e.exports=function stringify(e,t){let u=new n(t);u.stringify(e)}},893:function(e){"use strict";class Warning{constructor(e,t={}){this.type="warning";this.text=e;if(t.node&&t.node.source){let e=t.node.positionBy(t);this.line=e.line;this.column=e.column}for(let e in t)this[e]=t[e]}toString(){if(this.node){return this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message}if(this.plugin){return this.plugin+": "+this.text}return this.text}}e.exports=Warning},898:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDirectory=getDirectory;t.getDirectorySync=getDirectorySync;var n=_interopRequireDefault(u(277));var r=u(501);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function getDirectory(e){const t=await(0,r.isDirectory)(e);if(t===true){return e}const u=n.default.dirname(e);return u}function getDirectorySync(e){const t=(0,r.isDirectorySync)(e);if(t===true){return e}const u=n.default.dirname(e);return u}},900:function(e){"use strict";e.exports=parseJson;function parseJson(e,t,u){u=u||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const u="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(u)}const n=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const r=n?+n[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(r!=null){const n=r<=u?0:r-u;const s=r+u>=e.length?e.length:r+u;t.message+=` while parsing near '${n===0?"":"..."}${e.slice(n,s)}${s===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,u*2)}'`}throw t}}},928:function(e){(function(){"use strict";function isExpression(e){if(e==null){return false}switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return true}return false}function isIterationStatement(e){if(e==null){return false}switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return true}return false}function isStatement(e){if(e==null){return false}switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return true}return false}function isSourceElement(e){return isStatement(e)||e!=null&&e.type==="FunctionDeclaration"}function trailingStatement(e){switch(e.type){case"IfStatement":if(e.alternate!=null){return e.alternate}return e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function isProblematicIfStatement(e){var t;if(e.type!=="IfStatement"){return false}if(e.alternate==null){return false}t=e.consequent;do{if(t.type==="IfStatement"){if(t.alternate==null){return true}}t=trailingStatement(t)}while(t);return false}e.exports={isExpression:isExpression,isStatement:isStatement,isIterationStatement:isIterationStatement,isSourceElement:isSourceElement,isProblematicIfStatement:isProblematicIfStatement,trailingStatement:trailingStatement}})()},934:function(e){"use strict";class SyntaxError extends Error{constructor(e){super(e);const{line:t,column:u,reason:n,plugin:r,file:s}=e;this.name="SyntaxError";this.message=`${this.name}\n\n`;if(typeof t!=="undefined"){this.message+=`(${t}:${u}) `}this.message+=r?`${r}: `:"";this.message+=s?`${s} `:" ";this.message+=`${n}`;const i=e.showSourceCode();if(i){this.message+=`\n\n${i}\n`}this.stack=false}}e.exports=SyntaxError},958:function(e,t,u){"use strict";let{cyan:n,gray:r,green:s,yellow:i,magenta:o}=u(153);let a=u(622);let c;function registerInput(e){c=e}const l={brackets:n,"at-word":n,comment:r,string:s,class:i,hash:o,call:n,"(":n,")":n,"{":i,"}":i,"[":i,"]":i,":":i,";":i};function getTokenType([e,t],u){if(e==="word"){if(t[0]==="."){return"class"}if(t[0]==="#"){return"hash"}}if(!u.endOfFile()){let e=u.nextToken();u.back(e);if(e[0]==="brackets"||e[0]==="(")return"call"}return e}function terminalHighlight(e){let t=a(new c(e),{ignoreErrors:true});let u="";while(!t.endOfFile()){let e=t.nextToken();let n=l[getTokenType(e,t)];if(n){u+=e[1].split(/\r?\n/).map(e=>n(e)).join("\n")}else{u+=e[1]}}return u}terminalHighlight.registerInput=registerInput;e.exports=terminalHighlight},964:function(e,t,u){"use strict";const n=u(38);e.exports=(e=>{const t=n();if(!e){return t[2].getFileName()}let u=false;t.shift();for(const n of t){const t=n.getFileName();if(typeof t!=="string"){continue}if(t===e){u=true;continue}if(t==="module.js"){continue}if(u&&t!==e){return t}}})},968:function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},986:function(e,t,u){"use strict";e.exports=u(425).default},990:function(e,t,u){"use strict";let{isClean:n}=u(448);let r=u(249);let s=u(374);let i=u(7);let o,a,c;function cleanSource(e){return e.map(e=>{if(e.nodes)e.nodes=cleanSource(e.nodes);delete e.source;return e})}function markDirtyUp(e){e[n]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){markDirtyUp(t)}}}function rebuild(e){if(e.type==="atrule"){Object.setPrototypeOf(e,c.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,a.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,r.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,s.prototype)}if(e.nodes){e.nodes.forEach(e=>{rebuild(e)})}}class Container extends i{push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let u,n;while(this.indexes[t]{let n;try{n=e(t,u)}catch(e){throw t.addToError(e)}if(n!==false&&t.walk){n=t.walk(e)}return n})}walkDecls(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="decl"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="decl"&&e.test(u.prop)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="decl"&&u.prop===e){return t(u,n)}})}walkRules(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="rule"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="rule"&&e.test(u.selector)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="rule"&&u.selector===e){return t(u,n)}})}walkAtRules(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="atrule"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="atrule"&&e.test(u.name)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="atrule"&&u.name===e){return t(u,n)}})}walkComments(e){return this.walk((t,u)=>{if(t.type==="comment"){return e(t,u)}})}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}insertBefore(e,t){e=this.index(e);let u=e===0?"prepend":false;let n=this.normalize(t,this.proxyOf.nodes[e],u).reverse();for(let t of n)this.proxyOf.nodes.splice(e,0,t);let r;for(let t in this.indexes){r=this.indexes[t];if(e<=r){this.indexes[t]=r+n.length}}this.markDirty();return this}insertAfter(e,t){e=this.index(e);let u=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of u)this.proxyOf.nodes.splice(e+1,0,t);let n;for(let t in this.indexes){n=this.indexes[t];if(e=e){this.indexes[u]=t-1}}this.markDirty();return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}replaceValues(e,t,u){if(!u){u=t;t={}}this.walkDecls(n=>{if(t.props&&!t.props.includes(n.prop))return;if(t.fast&&!n.value.includes(t.fast))return;n.value=n.value.replace(e,u)});this.markDirty();return this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if(typeof e==="string"){e=cleanSource(o(e).nodes)}else if(Array.isArray(e)){e=e.slice(0);for(let t of e){if(t.parent)t.parent.removeChild(t,"ignore")}}else if(e.type==="root"){e=e.nodes.slice(0);for(let t of e){if(t.parent)t.parent.removeChild(t,"ignore")}}else if(e.type){e=[e]}else if(e.prop){if(typeof e.value==="undefined"){throw new Error("Value field is missed in node creation")}else if(typeof e.value!=="string"){e.value=String(e.value)}e=[new r(e)]}else if(e.selector){e=[new a(e)]}else if(e.name){e=[new c(e)]}else if(e.text){e=[new s(e)]}else{throw new Error("Unknown node type in node creation")}let u=e.map(e=>{if(typeof e.markDirty!=="function")rebuild(e);if(e.parent)e.parent.removeChild(e);if(e[n])markDirtyUp(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this;return e});return u}getProxyProcessor(){return{set(e,t,u){if(e[t]===u)return true;e[t]=u;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true},get(e,t){if(t==="proxyOf"){return e}else if(!e[t]){return e[t]}else if(t==="each"||typeof t==="string"&&t.startsWith("walk")){return(...u)=>{return e[t](...u.map(e=>{if(typeof e==="function"){return(t,u)=>e(t.toProxy(),u)}else{return e}}))}}else if(t==="every"||t==="some"){return u=>{return e[t]((e,...t)=>u(e.toProxy(),...t))}}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map(e=>e.toProxy())}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}}}}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let e=this.lastEach;this.indexes[e]=0;return e}}Container.registerParse=(e=>{o=e});Container.registerRule=(e=>{a=e});Container.registerAtRule=(e=>{c=e});e.exports=Container}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file diff --git a/packages/next/compiled/schema-utils/LICENSE b/packages/next/compiled/schema-utils/LICENSE new file mode 100644 index 00000000000000..8c11fc7289b754 --- /dev/null +++ b/packages/next/compiled/schema-utils/LICENSE @@ -0,0 +1,20 @@ +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/next/compiled/schema-utils/index.js b/packages/next/compiled/schema-utils/index.js new file mode 100644 index 00000000000000..21541f56fee645 --- /dev/null +++ b/packages/next/compiled/schema-utils/index.js @@ -0,0 +1 @@ +module.exports=function(e,n){"use strict";var f={};function __webpack_require__(n){if(f[n]){return f[n].exports}var s=f[n]={i:n,l:false,exports:{}};e[n].call(s.exports,s,s.exports,__webpack_require__);s.l=true;return s.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(969)}return startup()}({51:function(e,n,f){"use strict";e.exports=f(225)("Minimum")},62:function(e,n,f){"use strict";var s=f(653),l=f(237),v=f(281),r=f(866);var g=f(596);var b=l.ucs2length;var d=f(977);var p=v.Validation;e.exports=compile;function compile(e,n,f,R){var j=this,w=this._opts,F=[undefined],E={},A=[],N={},z=[],a={},x=[];n=n||{schema:e,refVal:F,refs:E};var q=checkCompiling.call(this,e,n,R);var O=this._compilations[q.index];if(q.compiling)return O.callValidate=callValidate;var Q=this._formats;var U=this.RULES;try{var I=localCompile(e,n,f,R);O.validate=I;var c=O.callValidate;if(c){c.schema=I.schema;c.errors=null;c.refs=I.refs;c.refVal=I.refVal;c.root=I.root;c.$async=I.$async;if(w.sourceCode)c.source=I.source}return I}finally{endCompiling.call(this,e,n,R)}function callValidate(){var e=O.validate;var n=e.apply(this,arguments);callValidate.errors=e.errors;return n}function localCompile(e,f,r,R){var N=!f||f&&f.schema==e;if(f.schema!=n.schema)return compile.call(j,e,f,r,R);var a=e.$async===true;var q=g({isTop:true,schema:e,isRoot:N,baseId:R,root:f,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:v.MissingRef,RULES:U,validate:g,util:l,resolve:s,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:w,formats:Q,logger:j.logger,self:j});q=vars(F,refValCode)+vars(A,patternCode)+vars(z,defaultCode)+vars(x,customRuleCode)+q;if(w.processCode)q=w.processCode(q,e);var O;try{var I=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",q);O=I(j,U,Q,n,F,z,x,d,b,p);F[0]=O}catch(e){j.logger.error("Error compiling schema, function code:",q);throw e}O.schema=e;O.errors=null;O.refs=E;O.refVal=F;O.root=N?O:f;if(a)O.$async=true;if(w.sourceCode===true){O.source={code:q,patterns:A,defaults:z}}return O}function resolveRef(e,l,v){l=s.url(e,l);var r=E[l];var g,b;if(r!==undefined){g=F[r];b="refVal["+r+"]";return resolvedRef(g,b)}if(!v&&n.refs){var d=n.refs[l];if(d!==undefined){g=n.refVal[d];b=addLocalRef(l,g);return resolvedRef(g,b)}}b=addLocalRef(l);var p=s.call(j,localCompile,n,l);if(p===undefined){var R=f&&f[l];if(R){p=s.inlineRef(R,w.inlineRefs)?R:compile.call(j,R,n,f,e)}}if(p===undefined){removeLocalRef(l)}else{replaceLocalRef(l,p);return resolvedRef(p,b)}}function addLocalRef(e,n){var f=F.length;F[f]=n;E[e]=f;return"refVal"+f}function removeLocalRef(e){delete E[e]}function replaceLocalRef(e,n){var f=E[e];F[f]=n}function resolvedRef(e,n){return typeof e=="object"||typeof e=="boolean"?{code:n,schema:e,inline:true}:{code:n,$async:e&&!!e.$async}}function usePattern(e){var n=N[e];if(n===undefined){n=N[e]=A.length;A[n]=e}return"pattern"+n}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return l.toQuotedString(e);case"object":if(e===null)return"null";var n=r(e);var f=a[n];if(f===undefined){f=a[n]=z.length;z[f]=e}return"default"+f}}function useCustomRule(e,n,f,s){if(j._opts.validateSchema!==false){var l=e.definition.dependencies;if(l&&!l.every(function(e){return Object.prototype.hasOwnProperty.call(f,e)}))throw new Error("parent schema must have all required keywords: "+l.join(","));var v=e.definition.validateSchema;if(v){var r=v(n);if(!r){var g="keyword schema is invalid: "+j.errorsText(v.errors);if(j._opts.validateSchema=="log")j.logger.error(g);else throw new Error(g)}}}var b=e.definition.compile,d=e.definition.inline,p=e.definition.macro;var R;if(b){R=b.call(j,n,f,s)}else if(p){R=p.call(j,n,f,s);if(w.validateSchema!==false)j.validateSchema(R,true)}else if(d){R=d.call(j,s,e.keyword,n,f)}else{R=e.definition.validate;if(!R)return}if(R===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var F=x.length;x[F]=R;return{code:"customRule"+F,validate:R}}}function checkCompiling(e,n,f){var s=compIndex.call(this,e,n,f);if(s>=0)return{index:s,compiling:true};s=this._compilations.length;this._compilations[s]={schema:e,root:n,baseId:f};return{index:s,compiling:false}}function endCompiling(e,n,f){var s=compIndex.call(this,e,n,f);if(s>=0)this._compilations.splice(s,1)}function compIndex(e,n,f){for(var s=0;s":"<";s+="if ( ";if(j){s+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "}s+=" Object.keys("+R+").length "+F+" "+w+") { ";var p=n;var E=E||[];E.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { limit: "+w+" } ";if(e.opts.messages!==false){s+=" , message: 'should NOT have ";if(n=="maxProperties"){s+="more"}else{s+="fewer"}s+=" than ";if(j){s+="' + "+w+" + '"}else{s+=""+r}s+=" properties' "}if(e.opts.verbose){s+=" , schema: ";if(j){s+="validate.schema"+g}else{s+=""+r}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "}s+=" } "}else{s+=" {} "}var A=s;s=E.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+A+"]); "}else{s+=" validate.errors = ["+A+"]; return false; "}}else{s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(d){s+=" else { "}return s}},83:function(e,n){(function(e,f){true?f(n):undefined})(this,function(e){"use strict";function merge(){for(var e=arguments.length,n=Array(e),f=0;f1){n[0]=n[0].slice(0,-1);var s=n.length-1;for(var l=1;l= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var z=r-g;var a=Math.floor;var x=String.fromCharCode;function error$1(e){throw new RangeError(N[e])}function map(e,n){var f=[];var s=e.length;while(s--){f[s]=n(e[s])}return f}function mapDomain(e,n){var f=e.split("@");var s="";if(f.length>1){s=f[0]+"@";e=f[1]}e=e.replace(A,".");var l=e.split(".");var v=map(l,n).join(".");return s+v}function ucs2decode(e){var n=[];var f=0;var s=e.length;while(f=55296&&l<=56319&&f>1;e+=a(e/n);for(;e>z*b>>1;s+=r){e=a(e/z)}return a(s+(z+1)*e/(e+d))};var I=function decode(e){var n=[];var f=e.length;var s=0;var l=j;var d=R;var p=e.lastIndexOf(w);if(p<0){p=0}for(var F=0;F=128){error$1("not-basic")}n.push(e.charCodeAt(F))}for(var E=p>0?p+1:0;E=f){error$1("invalid-input")}var x=O(e.charCodeAt(E++));if(x>=r||x>a((v-s)/N)){error$1("overflow")}s+=x*N;var q=z<=d?g:z>=d+b?b:z-d;if(xa(v/Q)){error$1("overflow")}N*=Q}var I=n.length+1;d=U(s-A,I,A==0);if(a(s/I)>v-l){error$1("overflow")}l+=a(s/I);s%=I;n.splice(s++,0,l)}return String.fromCodePoint.apply(String,n)};var c=function encode(e){var n=[];e=ucs2decode(e);var f=e.length;var s=j;var l=0;var d=R;var p=true;var F=false;var E=undefined;try{for(var A=e[Symbol.iterator](),N;!(p=(N=A.next()).done);p=true){var z=N.value;if(z<128){n.push(x(z))}}}catch(e){F=true;E=e}finally{try{if(!p&&A.return){A.return()}}finally{if(F){throw E}}}var q=n.length;var O=q;if(q){n.push(w)}while(O=s&&Ca((v-l)/H)){error$1("overflow")}l+=(I-s)*H;s=I;var G=true;var Y=false;var W=undefined;try{for(var X=e[Symbol.iterator](),B;!(G=(B=X.next()).done);G=true){var Z=B.value;if(Zv){error$1("overflow")}if(Z==s){var y=l;for(var D=r;;D+=r){var K=D<=d?g:D>=d+b?b:D-d;if(y>6|192).toString(16).toUpperCase()+"%"+(n&63|128).toString(16).toUpperCase();else f="%"+(n>>12|224).toString(16).toUpperCase()+"%"+(n>>6&63|128).toString(16).toUpperCase()+"%"+(n&63|128).toString(16).toUpperCase();return f}function pctDecChars(e){var n="";var f=0;var s=e.length;while(f=194&&l<224){if(s-f>=6){var v=parseInt(e.substr(f+4,2),16);n+=String.fromCharCode((l&31)<<6|v&63)}else{n+=e.substr(f,6)}f+=6}else if(l>=224){if(s-f>=9){var r=parseInt(e.substr(f+4,2),16);var g=parseInt(e.substr(f+7,2),16);n+=String.fromCharCode((l&15)<<12|(r&63)<<6|g&63)}else{n+=e.substr(f,9)}f+=9}else{n+=e.substr(f,3);f+=3}}return n}function _normalizeComponentEncoding(e,n){function decodeUnreserved(e){var f=pctDecChars(e);return!f.match(n.UNRESERVED)?e:f}if(e.scheme)e.scheme=String(e.scheme).replace(n.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(n.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_USERINFO,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(n.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(n.NOT_HOST,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(n.PCT_ENCODED,decodeUnreserved).replace(e.scheme?n.NOT_PATH:n.NOT_PATH_NOSCHEME,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_QUERY,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_FRAGMENT,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,n){var f=e.match(n.IPV4ADDRESS)||[];var l=s(f,2),v=l[1];if(v){return v.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,n){var f=e.match(n.IPV6ADDRESS)||[];var l=s(f,3),v=l[1],r=l[2];if(v){var g=v.toLowerCase().split("::").reverse(),b=s(g,2),d=b[0],p=b[1];var R=p?p.split(":").map(_stripLeadingZeros):[];var j=d.split(":").map(_stripLeadingZeros);var w=n.IPV4ADDRESS.test(j[j.length-1]);var F=w?7:8;var E=j.length-F;var A=Array(F);for(var N=0;N1){var q=A.slice(0,a.index);var O=A.slice(a.index+a.length);x=q.join(":")+"::"+O.join(":")}else{x=A.join(":")}if(r){x+="%"+r}return x}else{return e}}var C=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var H="".match(/(){0}/)[1]===undefined;function parse(e){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var l={};var v=s.iri!==false?f:n;if(s.reference==="suffix")e=(s.scheme?s.scheme+":":"")+"//"+e;var r=e.match(C);if(r){if(H){l.scheme=r[1];l.userinfo=r[3];l.host=r[4];l.port=parseInt(r[5],10);l.path=r[6]||"";l.query=r[7];l.fragment=r[8];if(isNaN(l.port)){l.port=r[5]}}else{l.scheme=r[1]||undefined;l.userinfo=e.indexOf("@")!==-1?r[3]:undefined;l.host=e.indexOf("//")!==-1?r[4]:undefined;l.port=parseInt(r[5],10);l.path=r[6]||"";l.query=e.indexOf("?")!==-1?r[7]:undefined;l.fragment=e.indexOf("#")!==-1?r[8]:undefined;if(isNaN(l.port)){l.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?r[4]:undefined}}if(l.host){l.host=_normalizeIPv6(_normalizeIPv4(l.host,v),v)}if(l.scheme===undefined&&l.userinfo===undefined&&l.host===undefined&&l.port===undefined&&!l.path&&l.query===undefined){l.reference="same-document"}else if(l.scheme===undefined){l.reference="relative"}else if(l.fragment===undefined){l.reference="absolute"}else{l.reference="uri"}if(s.reference&&s.reference!=="suffix"&&s.reference!==l.reference){l.error=l.error||"URI is not a "+s.reference+" reference."}var g=M[(s.scheme||l.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!g||!g.unicodeSupport)){if(l.host&&(s.domainHost||g&&g.domainHost)){try{l.host=L.toASCII(l.host.replace(v.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){l.error=l.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(l,n)}else{_normalizeComponentEncoding(l,v)}if(g&&g.parse){g.parse(l,s)}}else{l.error=l.error||"URI can not be parsed."}return l}function _recomposeAuthority(e,s){var l=s.iri!==false?f:n;var v=[];if(e.userinfo!==undefined){v.push(e.userinfo);v.push("@")}if(e.host!==undefined){v.push(_normalizeIPv6(_normalizeIPv4(String(e.host),l),l).replace(l.IPV6ADDRESS,function(e,n,f){return"["+n+(f?"%25"+f:"")+"]"}))}if(typeof e.port==="number"){v.push(":");v.push(e.port.toString(10))}return v.length?v.join(""):undefined}var G=/^\.\.?\//;var Y=/^\/\.(\/|$)/;var W=/^\/\.\.(\/|$)/;var X=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var n=[];while(e.length){if(e.match(G)){e=e.replace(G,"")}else if(e.match(Y)){e=e.replace(Y,"/")}else if(e.match(W)){e=e.replace(W,"/");n.pop()}else if(e==="."||e===".."){e=""}else{var f=e.match(X);if(f){var s=f[0];e=e.slice(s.length);n.push(s)}else{throw new Error("Unexpected dot segment condition")}}}return n.join("")}function serialize(e){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var l=s.iri?f:n;var v=[];var r=M[(s.scheme||e.scheme||"").toLowerCase()];if(r&&r.serialize)r.serialize(e,s);if(e.host){if(l.IPV6ADDRESS.test(e.host)){}else if(s.domainHost||r&&r.domainHost){try{e.host=!s.iri?L.toASCII(e.host.replace(l.PCT_ENCODED,pctDecChars).toLowerCase()):L.toUnicode(e.host)}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(!s.iri?"ASCII":"Unicode")+" via punycode: "+n}}}_normalizeComponentEncoding(e,l);if(s.reference!=="suffix"&&e.scheme){v.push(e.scheme);v.push(":")}var g=_recomposeAuthority(e,s);if(g!==undefined){if(s.reference!=="suffix"){v.push("//")}v.push(g);if(e.path&&e.path.charAt(0)!=="/"){v.push("/")}}if(e.path!==undefined){var b=e.path;if(!s.absolutePath&&(!r||!r.absolutePath)){b=removeDotSegments(b)}if(g===undefined){b=b.replace(/^\/\//,"/%2F")}v.push(b)}if(e.query!==undefined){v.push("?");v.push(e.query)}if(e.fragment!==undefined){v.push("#");v.push(e.fragment)}return v.join("")}function resolveComponents(e,n){var f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var s=arguments[3];var l={};if(!s){e=parse(serialize(e,f),f);n=parse(serialize(n,f),f)}f=f||{};if(!f.tolerant&&n.scheme){l.scheme=n.scheme;l.userinfo=n.userinfo;l.host=n.host;l.port=n.port;l.path=removeDotSegments(n.path||"");l.query=n.query}else{if(n.userinfo!==undefined||n.host!==undefined||n.port!==undefined){l.userinfo=n.userinfo;l.host=n.host;l.port=n.port;l.path=removeDotSegments(n.path||"");l.query=n.query}else{if(!n.path){l.path=e.path;if(n.query!==undefined){l.query=n.query}else{l.query=e.query}}else{if(n.path.charAt(0)==="/"){l.path=removeDotSegments(n.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){l.path="/"+n.path}else if(!e.path){l.path=n.path}else{l.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+n.path}l.path=removeDotSegments(l.path)}l.query=n.query}l.userinfo=e.userinfo;l.host=e.host;l.port=e.port}l.scheme=e.scheme}l.fragment=n.fragment;return l}function resolve(e,n,f){var s=assign({scheme:"null"},f);return serialize(resolveComponents(parse(e,s),parse(n,s),s,true),s)}function normalize(e,n){if(typeof e==="string"){e=serialize(parse(e,n),n)}else if(typeOf(e)==="object"){e=parse(serialize(e,n),n)}return e}function equal(e,n,f){if(typeof e==="string"){e=serialize(parse(e,f),f)}else if(typeOf(e)==="object"){e=serialize(e,f)}if(typeof n==="string"){n=serialize(parse(n,f),f)}else if(typeOf(n)==="object"){n=serialize(n,f)}return e===n}function escapeComponent(e,s){return e&&e.toString().replace(!s||!s.iri?n.ESCAPE:f.ESCAPE,pctEncChar)}function unescapeComponent(e,s){return e&&e.toString().replace(!s||!s.iri?n.PCT_ENCODED:f.PCT_ENCODED,pctDecChars)}var B={scheme:"http",domainHost:true,parse:function parse(e,n){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,n){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var Z={scheme:"https",domainHost:B.domainHost,parse:B.parse,serialize:B.serialize};var y={};var D=true;var K="[A-Za-z0-9\\-\\.\\_\\~"+(D?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var m="[0-9A-Fa-f]";var V=subexp(subexp("%[EFef]"+m+"%"+m+m+"%"+m+m)+"|"+subexp("%[89A-Fa-f]"+m+"%"+m+m)+"|"+subexp("%"+m+m));var k="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var h="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var S=merge(h,'[\\"\\\\]');var P="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var i=new RegExp(K,"g");var _=new RegExp(V,"g");var u=new RegExp(merge("[^]",k,"[\\.]",'[\\"]',S),"g");var o=new RegExp(merge("[^]",K,P),"g");var $=o;function decodeUnreserved(e){var n=pctDecChars(e);return!n.match(i)?e:n}var t={scheme:"mailto",parse:function parse$$1(e,n){var f=e;var s=f.to=f.path?f.path.split(","):[];f.path=undefined;if(f.query){var l=false;var v={};var r=f.query.split("&");for(var g=0,b=r.length;g":">="}return n?"<":"<="}static formatRight(e,n,f){if(n===false){return Range.formatLeft(e,!n,!f)}return`should be ${Range.getOperator("right",f)} ${e}`}static formatLeft(e,n,f){if(n===false){return Range.formatRight(e,!n,!f)}return`should be ${Range.getOperator("left",f)} ${e}`}static formatRange(e,n,f,s,l){let v="should be";v+=` ${Range.getOperator(l?"left":"right",l?f:!f)} ${e} `;v+=l?"and":"or";v+=` ${Range.getOperator(l?"right":"left",l?s:!s)} ${n}`;return v}static getRangeValue(e,n){let f=n?Infinity:-Infinity;let s=-1;const l=n?([e])=>e<=f:([e])=>e>=f;for(let n=0;n-1){return e[s]}return[Infinity,true]}constructor(){this._left=[];this._right=[]}left(e,n=false){this._left.push([e,n])}right(e,n=false){this._right.push([e,n])}format(e=true){const[n,f]=Range.getRangeValue(this._left,e);const[s,l]=Range.getRangeValue(this._right,!e);if(!Number.isFinite(n)&&!Number.isFinite(s)){return""}const v=f?n+1:n;const r=l?s-1:s;if(v===r){return`should be ${e?"":"!"}= ${v}`}if(Number.isFinite(n)&&!Number.isFinite(s)){return Range.formatLeft(n,e,f)}if(!Number.isFinite(n)&&Number.isFinite(s)){return Range.formatRight(s,e,l)}return Range.formatRange(n,s,f,l,e)}}e.exports=Range},133:function(e){"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){if(e.length==0)return true;if(e.length==1)return{not:{required:e}};var n=e.map(function(e){return{required:[e]}});return{not:{anyOf:n}}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("prohibited",defFunc.definition);return e}},168:function(e){"use strict";e.exports=function generate_ref(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.errSchemaPath+"/"+n;var b=!e.opts.allErrors;var d="data"+(v||"");var p="valid"+l;var R,j;if(r=="#"||r=="#/"){if(e.isRoot){R=e.async;j="validate"}else{R=e.root.schema.$async===true;j="root.refVal[0]"}}else{var w=e.resolveRef(e.baseId,r,e.isRoot);if(w===undefined){var F=e.MissingRefError.message(e.baseId,r);if(e.opts.missingRefs=="fail"){e.logger.error(F);var E=E||[];E.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(g)+" , params: { ref: '"+e.util.escapeQuotes(r)+"' } ";if(e.opts.messages!==false){s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(r)+"' "}if(e.opts.verbose){s+=" , schema: "+e.util.toQuotedString(r)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}s+=" } "}else{s+=" {} "}var A=s;s=E.pop();if(!e.compositeRule&&b){if(e.async){s+=" throw new ValidationError(["+A+"]); "}else{s+=" validate.errors = ["+A+"]; return false; "}}else{s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(b){s+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(F);if(b){s+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,r,F)}}else if(w.inline){var N=e.util.copy(e);N.level++;var z="valid"+N.level;N.schema=w.schema;N.schemaPath="";N.errSchemaPath=r;var a=e.validate(N).replace(/validate\.schema/g,w.code);s+=" "+a+" ";if(b){s+=" if ("+z+") { "}}else{R=w.$async===true||e.async&&w.$async!==false;j=w.code}}if(j){var E=E||[];E.push(s);s="";if(e.opts.passContext){s+=" "+j+".call(this, "}else{s+=" "+j+"( "}s+=" "+d+", (dataPath || '')";if(e.errorPath!='""'){s+=" + "+e.errorPath}var x=v?"data"+(v-1||""):"parentData",q=v?e.dataPathArr[v]:"parentDataProperty";s+=" , "+x+" , "+q+", rootData) ";var O=s;s=E.pop();if(R){if(!e.async)throw new Error("async schema referenced by sync schema");if(b){s+=" var "+p+"; "}s+=" try { await "+O+"; ";if(b){s+=" "+p+" = true; "}s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(b){s+=" "+p+" = false; "}s+=" } ";if(b){s+=" if ("+p+") { "}}else{s+=" if (!"+O+") { if (vErrors === null) vErrors = "+j+".errors; else vErrors = vErrors.concat("+j+".errors); errors = vErrors.length; } ";if(b){s+=" else { "}}}return s}},171:function(e){"use strict";e.exports=function generate_not(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R="errs__"+l;var j=e.util.copy(e);j.level++;var w="valid"+j.level;if(e.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0:e.util.schemaHasRules(r,e.RULES.all)){j.schema=r;j.schemaPath=g;j.errSchemaPath=b;s+=" var "+R+" = errors; ";var F=e.compositeRule;e.compositeRule=j.compositeRule=true;j.createErrors=false;var E;if(j.opts.allErrors){E=j.opts.allErrors;j.opts.allErrors=false}s+=" "+e.validate(j)+" ";j.createErrors=true;if(E)j.opts.allErrors=E;e.compositeRule=j.compositeRule=F;s+=" if ("+w+") { ";var A=A||[];A.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: 'should NOT be valid' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var N=s;s=A.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+N+"]); "}else{s+=" validate.errors = ["+N+"]; return false; "}}else{s+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { errors = "+R+"; if (vErrors !== null) { if ("+R+") vErrors.length = "+R+"; else vErrors = null; } ";if(e.opts.allErrors){s+=" } "}}else{s+=" var err = ";if(e.createErrors!==false){s+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: 'should NOT be valid' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(d){s+=" if (false) { "}}return s}},174:function(e){"use strict";e.exports=function generate_allOf(e,n,f){var s=" ";var l=e.schema[n];var v=e.schemaPath+e.util.getProperty(n);var r=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b=e.util.copy(e);var d="";b.level++;var p="valid"+b.level;var R=b.baseId,j=true;var w=l;if(w){var F,E=-1,A=w.length-1;while(E0:e.util.schemaHasRules(F,e.RULES.all)){j=false;b.schema=F;b.schemaPath=v+"["+E+"]";b.errSchemaPath=r+"/"+E;s+=" "+e.validate(b)+" ";b.baseId=R;if(g){s+=" if ("+p+") { ";d+="}"}}}}if(g){if(j){s+=" if (true) { "}else{s+=" "+d.slice(0,-1)+" "}}return s}},179:function(e){"use strict";e.exports=function generate_dependencies(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R="errs__"+l;var j=e.util.copy(e);var w="";j.level++;var F="valid"+j.level;var E={},A={},N=e.opts.ownProperties;for(q in r){if(q=="__proto__")continue;var z=r[q];var a=Array.isArray(z)?A:E;a[q]=z}s+="var "+R+" = errors;";var x=e.errorPath;s+="var missing"+l+";";for(var q in A){a=A[q];if(a.length){s+=" if ( "+p+e.util.getProperty(q)+" !== undefined ";if(N){s+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(q)+"') "}if(d){s+=" && ( ";var O=a;if(O){var Q,U=-1,I=O.length-1;while(U0:e.util.schemaHasRules(z,e.RULES.all)){s+=" "+F+" = true; if ( "+p+e.util.getProperty(q)+" !== undefined ";if(N){s+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(q)+"') "}s+=") { ";j.schema=z;j.schemaPath=g+e.util.getProperty(q);j.errSchemaPath=b+"/"+e.util.escapeFragment(q);s+=" "+e.validate(j)+" ";j.baseId=W;s+=" } ";if(d){s+=" if ("+F+") { ";w+="}"}}}if(d){s+=" "+w+" if ("+R+" == errors) {"}return s}},200:function(e){"use strict";var n=["number","integer","string","boolean","null"];e.exports=function defFunc(e){defFunc.definition={type:"array",compile:function(e,n,f){var s=f.util.equal;var l=getScalarKeys(e,n);return function(n){if(n.length>1){for(var f=0;f=0})}},224:function(e,n,f){"use strict";var s=f(900);e.exports=function defFunc(e){if(!e._opts.$data){console.warn("keyword select requires $data option");return e}var n=s.metaSchemaRef(e);var f=[];defFunc.definition={validate:function v(e,n,f){if(f.selectCases===undefined)throw new Error('keyword "selectCases" is absent');var s=getCompiledSchemas(f,false);var l=s.cases[e];if(l===undefined)l=s.default;if(typeof l=="boolean")return l;var r=l(n);if(!r)v.errors=l.errors;return r},$data:true,metaSchema:{type:["string","number","boolean","null"]}};e.addKeyword("select",defFunc.definition);e.addKeyword("selectCases",{compile:function(e,n){var f=getCompiledSchemas(n);for(var s in e)f.cases[s]=compileOrBoolean(e[s]);return function(){return true}},valid:true,metaSchema:{type:"object",additionalProperties:n}});e.addKeyword("selectDefault",{compile:function(e,n){var f=getCompiledSchemas(n);f.default=compileOrBoolean(e);return function(){return true}},valid:true,metaSchema:n});return e;function getCompiledSchemas(e,n){var s;f.some(function(n){if(n.parentSchema===e){s=n;return true}});if(!s&&n!==false){s={parentSchema:e,cases:{},default:true};f.push(s)}return s}function compileOrBoolean(n){return typeof n=="boolean"?n:e.compile(n)}}},225:function(e,n,f){"use strict";var s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i;var l=/t|\s/i;var v={date:compareDate,time:compareTime,"date-time":compareDateTime};var r={type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false};e.exports=function(e){var n="format"+e;return function defFunc(s){defFunc.definition={type:"string",inline:f(788),statements:true,errors:"full",dependencies:["format"],metaSchema:{anyOf:[{type:"string"},r]}};s.addKeyword(n,defFunc.definition);s.addKeyword("formatExclusive"+e,{dependencies:["format"+e],metaSchema:{anyOf:[{type:"boolean"},r]}});extendFormats(s);return s}};function extendFormats(e){var n=e._formats;for(var f in v){var s=n[f];if(typeof s!="object"||s instanceof RegExp||!s.validate)s=n[f]={validate:s};if(!s.compare)s.compare=v[f]}}function compareDate(e,n){if(!(e&&n))return;if(e>n)return 1;if(en)return 1;if(e=n)throw new Error("Cannot access property/index "+s+" levels up, current level is "+n);return f[n-s]}if(s>n)throw new Error("Cannot access data "+s+" levels up, current level is "+n);v="data"+(n-s||"");if(!l)return v}var d=v;var p=l.split("/");for(var R=0;R 1) { ";var F=e.schema.items&&e.schema.items.type,E=Array.isArray(F);if(!F||F=="object"||F=="array"||E&&(F.indexOf("object")>=0||F.indexOf("array")>=0)){s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+R+" = false; break outer; } } } "}else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var A="checkDataType"+(E?"s":"");s+=" if ("+e.util[A](F,"item",e.opts.strictNumbers,true)+") continue; ";if(E){s+=" if (typeof item == 'string') item = '\"' + item; "}s+=" if (typeof itemIndices[item] == 'number') { "+R+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ";if(j){s+=" } "}s+=" if (!"+R+") { ";var N=N||[];N.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){s+=" , schema: ";if(j){s+="validate.schema"+g}else{s+=""+r}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var z=s;s=N.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+z+"]); "}else{s+=" validate.errors = ["+z+"]; return false; "}}else{s+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(d){s+=" else { "}}else{if(d){s+=" if (true) { "}}return s}},268:function(e,n,f){"use strict";var s=f(237);e.exports=SchemaObject;function SchemaObject(e){s.copy(e,this)}},273:function(e){"use strict";e.exports=function defFunc(e){var n={trimLeft:function(e){return e.replace(/^[\s]+/,"")},trimRight:function(e){return e.replace(/[\s]+$/,"")},trim:function(e){return e.trim()},toLowerCase:function(e){return e.toLowerCase()},toUpperCase:function(e){return e.toUpperCase()},toEnumCase:function(e,n){return n.hash[makeHashTableKey(e)]||e}};defFunc.definition={type:"string",errors:false,modifying:true,valid:true,compile:function(e,f){var s;if(e.indexOf("toEnumCase")!==-1){s={hash:{}};if(!f.enum)throw new Error('Missing enum. To use `transform:["toEnumCase"]`, `enum:[...]` is required.');for(var l=f.enum.length;l--;l){var v=f.enum[l];if(typeof v!=="string")continue;var r=makeHashTableKey(v);if(s.hash[r])throw new Error('Invalid enum uniqueness. To use `transform:["toEnumCase"]`, all values must be unique when case insensitive.');s.hash[r]=v}}return function(f,l,v,r){if(!v)return;for(var g=0,b=e.length;gn||f&&e==n)throw new Error("There are no numbers in range")}}},299:function(e){"use strict";e.exports=function generate__limitItems(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p;var R="data"+(v||"");var j=e.opts.$data&&r&&r.$data,w;if(j){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";w="schema"+l}else{w=r}if(!(j||typeof r=="number")){throw new Error(n+" must be number")}var F=n=="maxItems"?">":"<";s+="if ( ";if(j){s+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "}s+=" "+R+".length "+F+" "+w+") { ";var p=n;var E=E||[];E.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { limit: "+w+" } ";if(e.opts.messages!==false){s+=" , message: 'should NOT have ";if(n=="maxItems"){s+="more"}else{s+="fewer"}s+=" than ";if(j){s+="' + "+w+" + '"}else{s+=""+r}s+=" items' "}if(e.opts.verbose){s+=" , schema: ";if(j){s+="validate.schema"+g}else{s+=""+r}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "}s+=" } "}else{s+=" {} "}var A=s;s=E.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+A+"]); "}else{s+=" validate.errors = ["+A+"]; return false; "}}else{s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(d){s+=" else { "}return s}},301:function(e){"use strict";e.exports=function generate__limitLength(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p;var R="data"+(v||"");var j=e.opts.$data&&r&&r.$data,w;if(j){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";w="schema"+l}else{w=r}if(!(j||typeof r=="number")){throw new Error(n+" must be number")}var F=n=="maxLength"?">":"<";s+="if ( ";if(j){s+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "}if(e.opts.unicode===false){s+=" "+R+".length "}else{s+=" ucs2length("+R+") "}s+=" "+F+" "+w+") { ";var p=n;var E=E||[];E.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { limit: "+w+" } ";if(e.opts.messages!==false){s+=" , message: 'should NOT be ";if(n=="maxLength"){s+="longer"}else{s+="shorter"}s+=" than ";if(j){s+="' + "+w+" + '"}else{s+=""+r}s+=" characters' "}if(e.opts.verbose){s+=" , schema: ";if(j){s+="validate.schema"+g}else{s+=""+r}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "}s+=" } "}else{s+=" {} "}var A=s;s=E.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+A+"]); "}else{s+=" validate.errors = ["+A+"]; return false; "}}else{s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(d){s+=" else { "}return s}},318:function(e){"use strict";e.exports=function generate_const(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R="valid"+l;var j=e.opts.$data&&r&&r.$data,w;if(j){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";w="schema"+l}else{w=r}if(!j){s+=" var schema"+l+" = validate.schema"+g+";"}s+="var "+R+" = equal("+p+", schema"+l+"); if (!"+R+") { ";var F=F||[];F.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { allowedValue: schema"+l+" } ";if(e.opts.messages!==false){s+=" , message: 'should be equal to constant' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var E=s;s=F.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+E+"]); "}else{s+=" validate.errors = ["+E+"]; return false; "}}else{s+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" }";if(d){s+=" else { "}return s}},331:function(e,n,f){"use strict";var s=f(641);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:s.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:s.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},348:function(e,n,f){"use strict";const s=f(107);e.exports.stringHints=function stringHints(e,n){const f=[];let s="string";const l={...e};if(!n){const e=l.minLength;const n=l.formatMinimum;const f=l.formatExclusiveMaximum;l.minLength=l.maxLength;l.maxLength=e;l.formatMinimum=l.formatMaximum;l.formatMaximum=n;l.formatExclusiveMaximum=!l.formatExclusiveMinimum;l.formatExclusiveMinimum=!f}if(typeof l.minLength==="number"){if(l.minLength===1){s="non-empty string"}else{const e=Math.max(l.minLength-1,0);f.push(`should be longer than ${e} character${e>1?"s":""}`)}}if(typeof l.maxLength==="number"){if(l.maxLength===0){s="empty string"}else{const e=l.maxLength+1;f.push(`should be shorter than ${e} character${e>1?"s":""}`)}}if(l.pattern){f.push(`should${n?"":" not"} match pattern ${JSON.stringify(l.pattern)}`)}if(l.format){f.push(`should${n?"":" not"} match format ${JSON.stringify(l.format)}`)}if(l.formatMinimum){f.push(`should be ${l.formatExclusiveMinimum?">":">="} ${JSON.stringify(l.formatMinimum)}`)}if(l.formatMaximum){f.push(`should be ${l.formatExclusiveMaximum?"<":"<="} ${JSON.stringify(l.formatMaximum)}`)}return[s].concat(f)};e.exports.numberHints=function numberHints(e,n){const f=[e.type==="integer"?"integer":"number"];const l=new s;if(typeof e.minimum==="number"){l.left(e.minimum)}if(typeof e.exclusiveMinimum==="number"){l.left(e.exclusiveMinimum,true)}if(typeof e.maximum==="number"){l.right(e.maximum)}if(typeof e.exclusiveMaximum==="number"){l.right(e.exclusiveMaximum,true)}const v=l.format(n);if(v){f.push(v)}if(typeof e.multipleOf==="number"){f.push(`should${n?"":" not"} be multiple of ${e.multipleOf}`)}return f}},360:function(e,n,f){"use strict";e.exports={instanceof:f(819),range:f(298),regexp:f(904),typeof:f(989),dynamicDefaults:f(865),allRequired:f(712),anyRequired:f(289),oneRequired:f(257),prohibited:f(133),uniqueItemProperties:f(200),deepProperties:f(852),deepRequired:f(887),formatMinimum:f(51),formatMaximum:f(936),patternRequired:f(732),switch:f(700),select:f(224),transform:f(273)}},369:function(e){"use strict";var n=e.exports=function Cache(){this._cache={}};n.prototype.put=function Cache_put(e,n){this._cache[e]=n};n.prototype.get=function Cache_get(e){return this._cache[e]};n.prototype.del=function Cache_del(e){delete this._cache[e]};n.prototype.clear=function Cache_clear(){this._cache={}}},398:function(e,n,f){"use strict";var s=f(281).MissingRef;e.exports=compileAsync;function compileAsync(e,n,f){var l=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof n=="function"){f=n;n=undefined}var v=loadMetaSchemaOf(e).then(function(){var f=l._addSchema(e,undefined,n);return f.validate||_compileAsync(f)});if(f){v.then(function(e){f(null,e)},f)}return v;function loadMetaSchemaOf(e){var n=e.$schema;return n&&!l.getSchema(n)?compileAsync.call(l,{$ref:n},true):Promise.resolve()}function _compileAsync(e){try{return l._compile(e)}catch(e){if(e instanceof s)return loadMissingSchema(e);throw e}function loadMissingSchema(f){var s=f.missingSchema;if(added(s))throw new Error("Schema "+s+" is loaded but "+f.missingRef+" cannot be resolved");var v=l._loadingSchemas[s];if(!v){v=l._loadingSchemas[s]=l._opts.loadSchema(s);v.then(removePromise,removePromise)}return v.then(function(e){if(!added(s)){return loadMetaSchemaOf(e).then(function(){if(!added(s))l.addSchema(e,s,undefined,n)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete l._loadingSchemas[s]}function added(e){return l._refs[e]||l._schemas[e]}}}}},400:function(e){"use strict";e.exports=function ucs2length(e){var n=0,f=e.length,s=0,l;while(s=55296&&l<=56319&&s0:e.util.schemaHasRules(r,e.RULES.all)){j.schema=r;j.schemaPath=g;j.errSchemaPath=b;var E="key"+l,A="idx"+l,N="i"+l,z="' + "+E+" + '",a=j.dataLevel=e.dataLevel+1,x="data"+a,q="dataProperties"+l,O=e.opts.ownProperties,Q=e.baseId;if(O){s+=" var "+q+" = undefined; "}if(O){s+=" "+q+" = "+q+" || Object.keys("+p+"); for (var "+A+"=0; "+A+"<"+q+".length; "+A+"++) { var "+E+" = "+q+"["+A+"]; "}else{s+=" for (var "+E+" in "+p+") { "}s+=" var startErrs"+l+" = errors; ";var U=E;var I=e.compositeRule;e.compositeRule=j.compositeRule=true;var c=e.validate(j);j.baseId=Q;if(e.util.varOccurences(c,x)<2){s+=" "+e.util.varReplace(c,x,U)+" "}else{s+=" var "+x+" = "+U+"; "+c+" "}e.compositeRule=j.compositeRule=I;s+=" if (!"+F+") { for (var "+N+"=startErrs"+l+"; "+N+"0:e.util.schemaHasRules(q,e.RULES.all)){w.schema=q;w.schemaPath=g+"["+O+"]";w.errSchemaPath=b+"/"+O;s+=" "+e.validate(w)+" ";w.baseId=A}else{s+=" var "+E+" = true; "}if(O){s+=" if ("+E+" && "+N+") { "+R+" = false; "+z+" = ["+z+", "+O+"]; } else { ";F+="}"}s+=" if ("+E+") { "+R+" = "+N+" = true; "+z+" = "+O+"; }"}}e.compositeRule=w.compositeRule=a;s+=""+F+"if (!"+R+") { var err = ";if(e.createErrors!==false){s+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { passingSchemas: "+z+" } ";if(e.opts.messages!==false){s+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}s+="} else { errors = "+j+"; if (vErrors !== null) { if ("+j+") vErrors.length = "+j+"; else vErrors = null; }";if(e.opts.allErrors){s+=" } "}return s}},457:function(e,n,f){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=void 0;const{stringHints:s,numberHints:l}=f(348);const v={type:1,not:1,oneOf:1,anyOf:1,if:1,enum:1,const:1,instanceof:1,required:2,pattern:2,patternRequired:2,format:2,formatMinimum:2,formatMaximum:2,minimum:2,exclusiveMinimum:2,maximum:2,exclusiveMaximum:2,multipleOf:2,uniqueItems:2,contains:2,minLength:2,maxLength:2,minItems:2,maxItems:2,minProperties:2,maxProperties:2,dependencies:2,propertyNames:2,additionalItems:2,additionalProperties:2,absolutePath:2};function filterMax(e,n){const f=e.reduce((e,f)=>Math.max(e,n(f)),0);return e.filter(e=>n(e)===f)}function filterChildren(e){let n=e;n=filterMax(n,e=>e.dataPath?e.dataPath.length:0);n=filterMax(n,e=>v[e.keyword]||2);return n}function findAllChildren(e,n){let f=e.length-1;const s=n=>e[f].schemaPath.indexOf(n)!==0;while(f>-1&&!n.every(s)){if(e[f].keyword==="anyOf"||e[f].keyword==="oneOf"){const n=extractRefs(e[f]);const s=findAllChildren(e.slice(0,f),n.concat(e[f].schemaPath));f=s-1}else{f-=1}}return f+1}function extractRefs(e){const{schema:n}=e;if(!Array.isArray(n)){return[]}return n.map(({$ref:e})=>e).filter(e=>e)}function groupChildrenByFirstChild(e){const n=[];let f=e.length-1;while(f>0){const s=e[f];if(s.keyword==="anyOf"||s.keyword==="oneOf"){const l=extractRefs(s);const v=findAllChildren(e.slice(0,f),l.concat(s.schemaPath));if(v!==f){n.push(Object.assign({},s,{children:e.slice(v,f)}));f=v}else{n.push(s)}}else{n.push(s)}f-=1}if(f===0){n.push(e[f])}return n.reverse()}function indent(e,n){return e.replace(/\n(?!$)/g,`\n${n}`)}function hasNotInSchema(e){return!!e.not}function findFirstTypedSchema(e){if(hasNotInSchema(e)){return findFirstTypedSchema(e.not)}return e}function canApplyNot(e){const n=findFirstTypedSchema(e);return likeNumber(n)||likeInteger(n)||likeString(n)||likeNull(n)||likeBoolean(n)}function isObject(e){return typeof e==="object"&&e!==null}function likeNumber(e){return e.type==="number"||typeof e.minimum!=="undefined"||typeof e.exclusiveMinimum!=="undefined"||typeof e.maximum!=="undefined"||typeof e.exclusiveMaximum!=="undefined"||typeof e.multipleOf!=="undefined"}function likeInteger(e){return e.type==="integer"||typeof e.minimum!=="undefined"||typeof e.exclusiveMinimum!=="undefined"||typeof e.maximum!=="undefined"||typeof e.exclusiveMaximum!=="undefined"||typeof e.multipleOf!=="undefined"}function likeString(e){return e.type==="string"||typeof e.minLength!=="undefined"||typeof e.maxLength!=="undefined"||typeof e.pattern!=="undefined"||typeof e.format!=="undefined"||typeof e.formatMinimum!=="undefined"||typeof e.formatMaximum!=="undefined"}function likeBoolean(e){return e.type==="boolean"}function likeArray(e){return e.type==="array"||typeof e.minItems==="number"||typeof e.maxItems==="number"||typeof e.uniqueItems!=="undefined"||typeof e.items!=="undefined"||typeof e.additionalItems!=="undefined"||typeof e.contains!=="undefined"}function likeObject(e){return e.type==="object"||typeof e.minProperties!=="undefined"||typeof e.maxProperties!=="undefined"||typeof e.required!=="undefined"||typeof e.properties!=="undefined"||typeof e.patternProperties!=="undefined"||typeof e.additionalProperties!=="undefined"||typeof e.dependencies!=="undefined"||typeof e.propertyNames!=="undefined"||typeof e.patternRequired!=="undefined"}function likeNull(e){return e.type==="null"}function getArticle(e){if(/^[aeiou]/i.test(e)){return"an"}return"a"}function getSchemaNonTypes(e){if(!e){return""}if(!e.type){if(likeNumber(e)||likeInteger(e)){return" | should be any non-number"}if(likeString(e)){return" | should be any non-string"}if(likeArray(e)){return" | should be any non-array"}if(likeObject(e)){return" | should be any non-object"}}return""}function formatHints(e){return e.length>0?`(${e.join(", ")})`:""}function getHints(e,n){if(likeNumber(e)||likeInteger(e)){return l(e,n)}else if(likeString(e)){return s(e,n)}return[]}class ValidationError extends Error{constructor(e,n,f={}){super();this.name="ValidationError";this.errors=e;this.schema=n;let s;let l;if(n.title&&(!f.name||!f.baseDataPath)){const e=n.title.match(/^(.+) (.+)$/);if(e){if(!f.name){[,s]=e}if(!f.baseDataPath){[,,l]=e}}}this.headerName=f.name||s||"Object";this.baseDataPath=f.baseDataPath||l||"configuration";this.postFormatter=f.postFormatter||null;const v=`Invalid ${this.baseDataPath} object. ${this.headerName} has been initialized using ${getArticle(this.baseDataPath)} ${this.baseDataPath} object that does not match the API schema.\n`;this.message=`${v}${this.formatValidationErrors(e)}`;Error.captureStackTrace(this,this.constructor)}getSchemaPart(e){const n=e.split("/");let f=this.schema;for(let e=1;e{if(!l){return this.formatSchema(n,s,f)}if(f.includes(n)){return"(recursive)"}return this.formatSchema(n,s,f.concat(e))};if(hasNotInSchema(e)&&!likeObject(e)){if(canApplyNot(e.not)){s=!n;return l(e.not)}const f=!e.not.not;const v=n?"":"non ";s=!n;return f?v+l(e.not):l(e.not)}if(e.instanceof){const{instanceof:n}=e;const f=!Array.isArray(n)?[n]:n;return f.map(e=>e==="Function"?"function":e).join(" | ")}if(e.enum){return e.enum.map(e=>JSON.stringify(e)).join(" | ")}if(typeof e.const!=="undefined"){return JSON.stringify(e.const)}if(e.oneOf){return e.oneOf.map(e=>l(e,true)).join(" | ")}if(e.anyOf){return e.anyOf.map(e=>l(e,true)).join(" | ")}if(e.allOf){return e.allOf.map(e=>l(e,true)).join(" & ")}if(e.if){const{if:n,then:f,else:s}=e;return`${n?`if ${l(n)}`:""}${f?` then ${l(f)}`:""}${s?` else ${l(s)}`:""}`}if(e.$ref){return l(this.getSchemaPart(e.$ref),true)}if(likeNumber(e)||likeInteger(e)){const[f,...s]=getHints(e,n);const l=`${f}${s.length>0?` ${formatHints(s)}`:""}`;return n?l:s.length>0?`non-${f} | ${l}`:`non-${f}`}if(likeString(e)){const[f,...s]=getHints(e,n);const l=`${f}${s.length>0?` ${formatHints(s)}`:""}`;return n?l:l==="string"?"non-string":`non-string | ${l}`}if(likeBoolean(e)){return`${n?"":"non-"}boolean`}if(likeArray(e)){s=true;const n=[];if(typeof e.minItems==="number"){n.push(`should not have fewer than ${e.minItems} item${e.minItems>1?"s":""}`)}if(typeof e.maxItems==="number"){n.push(`should not have more than ${e.maxItems} item${e.maxItems>1?"s":""}`)}if(e.uniqueItems){n.push("should not have duplicate items")}const f=typeof e.additionalItems==="undefined"||Boolean(e.additionalItems);let v="";if(e.items){if(Array.isArray(e.items)&&e.items.length>0){v=`${e.items.map(e=>l(e)).join(", ")}`;if(f){if(e.additionalItems&&isObject(e.additionalItems)&&Object.keys(e.additionalItems).length>0){n.push(`additional items should be ${l(e.additionalItems)}`)}}}else if(e.items&&Object.keys(e.items).length>0){v=`${l(e.items)}`}else{v="any"}}else{v="any"}if(e.contains&&Object.keys(e.contains).length>0){n.push(`should contains at least one ${this.formatSchema(e.contains)} item`)}return`[${v}${f?", ...":""}]${n.length>0?` (${n.join(", ")})`:""}`}if(likeObject(e)){s=true;const n=[];if(typeof e.minProperties==="number"){n.push(`should not have fewer than ${e.minProperties} ${e.minProperties>1?"properties":"property"}`)}if(typeof e.maxProperties==="number"){n.push(`should not have more than ${e.maxProperties} ${e.minProperties&&e.minProperties>1?"properties":"property"}`)}if(e.patternProperties&&Object.keys(e.patternProperties).length>0){const f=Object.keys(e.patternProperties);n.push(`additional property names should match pattern${f.length>1?"s":""} ${f.map(e=>JSON.stringify(e)).join(" | ")}`)}const f=e.properties?Object.keys(e.properties):[];const v=e.required?e.required:[];const r=[...new Set([].concat(v).concat(f))];const g=r.map(e=>{const n=v.includes(e);return`${e}${n?"":"?"}`}).concat(typeof e.additionalProperties==="undefined"||Boolean(e.additionalProperties)?e.additionalProperties&&isObject(e.additionalProperties)?[`: ${l(e.additionalProperties)}`]:["…"]:[]).join(", ");const{dependencies:b,propertyNames:d,patternRequired:p}=e;if(b){Object.keys(b).forEach(e=>{const f=b[e];if(Array.isArray(f)){n.push(`should have ${f.length>1?"properties":"property"} ${f.map(e=>`'${e}'`).join(", ")} when property '${e}' is present`)}else{n.push(`should be valid according to the schema ${l(f)} when property '${e}' is present`)}})}if(d&&Object.keys(d).length>0){n.push(`each property name should match format ${JSON.stringify(e.propertyNames.format)}`)}if(p&&p.length>0){n.push(`should have property matching pattern ${p.map(e=>JSON.stringify(e))}`)}return`object {${g?` ${g} `:""}}${n.length>0?` (${n.join(", ")})`:""}`}if(likeNull(e)){return`${n?"":"non-"}null`}if(Array.isArray(e.type)){return`${e.type.join(" | ")}`}return JSON.stringify(e,null,2)}getSchemaPartText(e,n,f=false,s=true){if(!e){return""}if(Array.isArray(n)){for(let f=0;f ${e.description}`}return l}getSchemaPartDescription(e){if(!e){return""}while(e.$ref){e=this.getSchemaPart(e.$ref)}if(e.description){return`\n-> ${e.description}`}return""}formatValidationError(e){const{keyword:n,dataPath:f}=e;const s=`${this.baseDataPath}${f}`;switch(n){case"type":{const{parentSchema:n,params:f}=e;switch(f.type){case"number":return`${s} should be a ${this.getSchemaPartText(n,false,true)}`;case"integer":return`${s} should be a ${this.getSchemaPartText(n,false,true)}`;case"string":return`${s} should be a ${this.getSchemaPartText(n,false,true)}`;case"boolean":return`${s} should be a ${this.getSchemaPartText(n,false,true)}`;case"array":return`${s} should be an array:\n${this.getSchemaPartText(n)}`;case"object":return`${s} should be an object:\n${this.getSchemaPartText(n)}`;case"null":return`${s} should be a ${this.getSchemaPartText(n,false,true)}`;default:return`${s} should be:\n${this.getSchemaPartText(n)}`}}case"instanceof":{const{parentSchema:n}=e;return`${s} should be an instance of ${this.getSchemaPartText(n,false,true)}`}case"pattern":{const{params:n,parentSchema:f}=e;const{pattern:l}=n;return`${s} should match pattern ${JSON.stringify(l)}${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"format":{const{params:n,parentSchema:f}=e;const{format:l}=n;return`${s} should match format ${JSON.stringify(l)}${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"formatMinimum":case"formatMaximum":{const{params:n,parentSchema:f}=e;const{comparison:l,limit:v}=n;return`${s} should be ${l} ${JSON.stringify(v)}${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"minimum":case"maximum":case"exclusiveMinimum":case"exclusiveMaximum":{const{parentSchema:n,params:f}=e;const{comparison:l,limit:v}=f;const[,...r]=getHints(n,true);if(r.length===0){r.push(`should be ${l} ${v}`)}return`${s} ${r.join(" ")}${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"multipleOf":{const{params:n,parentSchema:f}=e;const{multipleOf:l}=n;return`${s} should be multiple of ${l}${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"patternRequired":{const{params:n,parentSchema:f}=e;const{missingPattern:l}=n;return`${s} should have property matching pattern ${JSON.stringify(l)}${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"minLength":{const{params:n,parentSchema:f}=e;const{limit:l}=n;if(l===1){return`${s} should be an non-empty string${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}const v=l-1;return`${s} should be longer than ${v} character${v>1?"s":""}${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"minItems":{const{params:n,parentSchema:f}=e;const{limit:l}=n;if(l===1){return`${s} should be an non-empty array${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}return`${s} should not have fewer than ${l} items${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"minProperties":{const{params:n,parentSchema:f}=e;const{limit:l}=n;if(l===1){return`${s} should be an non-empty object${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}return`${s} should not have fewer than ${l} properties${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"maxLength":{const{params:n,parentSchema:f}=e;const{limit:l}=n;const v=l+1;return`${s} should be shorter than ${v} character${v>1?"s":""}${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"maxItems":{const{params:n,parentSchema:f}=e;const{limit:l}=n;return`${s} should not have more than ${l} items${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"maxProperties":{const{params:n,parentSchema:f}=e;const{limit:l}=n;return`${s} should not have more than ${l} properties${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"uniqueItems":{const{params:n,parentSchema:f}=e;const{i:l}=n;return`${s} should not contain the item '${e.data[l]}' twice${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"additionalItems":{const{params:n,parentSchema:f}=e;const{limit:l}=n;return`${s} should not have more than ${l} items${getSchemaNonTypes(f)}. These items are valid:\n${this.getSchemaPartText(f)}`}case"contains":{const{parentSchema:n}=e;return`${s} should contains at least one ${this.getSchemaPartText(n,["contains"])} item${getSchemaNonTypes(n)}.`}case"required":{const{parentSchema:n,params:f}=e;const l=f.missingProperty.replace(/^\./,"");const v=n&&Boolean(n.properties&&n.properties[l]);return`${s} misses the property '${l}'${getSchemaNonTypes(n)}.${v?` Should be:\n${this.getSchemaPartText(n,["properties",l])}`:this.getSchemaPartDescription(n)}`}case"additionalProperties":{const{params:n,parentSchema:f}=e;const{additionalProperty:l}=n;return`${s} has an unknown property '${l}'${getSchemaNonTypes(f)}. These properties are valid:\n${this.getSchemaPartText(f)}`}case"dependencies":{const{params:n,parentSchema:f}=e;const{property:l,deps:v}=n;const r=v.split(",").map(e=>`'${e.trim()}'`).join(", ");return`${s} should have properties ${r} when property '${l}' is present${getSchemaNonTypes(f)}.${this.getSchemaPartDescription(f)}`}case"propertyNames":{const{params:n,parentSchema:f,schema:l}=e;const{propertyName:v}=n;return`${s} property name '${v}' is invalid${getSchemaNonTypes(f)}. Property names should be match format ${JSON.stringify(l.format)}.${this.getSchemaPartDescription(f)}`}case"enum":{const{parentSchema:n}=e;if(n&&n.enum&&n.enum.length===1){return`${s} should be ${this.getSchemaPartText(n,false,true)}`}return`${s} should be one of these:\n${this.getSchemaPartText(n)}`}case"const":{const{parentSchema:n}=e;return`${s} should be equal to constant ${this.getSchemaPartText(n,false,true)}`}case"not":{const n=likeObject(e.parentSchema)?`\n${this.getSchemaPartText(e.parentSchema)}`:"";const f=this.getSchemaPartText(e.schema,false,false,false);if(canApplyNot(e.schema)){return`${s} should be any ${f}${n}.`}const{schema:l,parentSchema:v}=e;return`${s} should not be ${this.getSchemaPartText(l,false,true)}${v&&likeObject(v)?`\n${this.getSchemaPartText(v)}`:""}`}case"oneOf":case"anyOf":{const{parentSchema:n,children:f}=e;if(f&&f.length>0){if(e.schema.length===1){const e=f[f.length-1];const s=f.slice(0,f.length-1);return this.formatValidationError(Object.assign({},e,{children:s,parentSchema:Object.assign({},n,e.parentSchema)}))}let l=filterChildren(f);if(l.length===1){return this.formatValidationError(l[0])}l=groupChildrenByFirstChild(l);return`${s} should be one of these:\n${this.getSchemaPartText(n)}\nDetails:\n${l.map(e=>` * ${indent(this.formatValidationError(e)," ")}`).join("\n")}`}return`${s} should be one of these:\n${this.getSchemaPartText(n)}`}case"if":{const{params:n,parentSchema:f}=e;const{failingKeyword:l}=n;return`${s} should match "${l}" schema:\n${this.getSchemaPartText(f,[l])}`}case"absolutePath":{const{message:n,parentSchema:f}=e;return`${s}: ${n}${this.getSchemaPartDescription(f)}`}default:{const{message:n,parentSchema:f}=e;const l=JSON.stringify(e,null,2);return`${s} ${n} (${l}).\n${this.getSchemaPartText(f,false)}`}}}formatValidationErrors(e){return e.map(e=>{let n=this.formatValidationError(e);if(this.postFormatter){n=this.postFormatter(n,e)}return` - ${indent(n," ")}`}).join("\n")}}var r=ValidationError;n.default=r},478:function(e,n,f){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=void 0;var s=_interopRequireDefault(f(635));var l=_interopRequireDefault(f(457));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const v=f(428);const r=f(246);const g=new v({allErrors:true,verbose:true,$data:true});r(g,["instanceof","formatMinimum","formatMaximum","patternRequired"]);(0,s.default)(g);function validate(e,n,f){let s=[];if(Array.isArray(n)){s=Array.from(n,n=>validateObject(e,n));s.forEach((e,n)=>{const f=e=>{e.dataPath=`[${n}]${e.dataPath}`;if(e.children){e.children.forEach(f)}};e.forEach(f)});s=s.reduce((e,n)=>{e.push(...n);return e},[])}else{s=validateObject(e,n)}if(s.length>0){throw new l.default(s,e,f)}}function validateObject(e,n){const f=g.compile(e);const s=f(n);if(s)return[];return f.errors?filterErrors(f.errors):[]}function filterErrors(e){let n=[];for(const f of e){const{dataPath:e}=f;let s=[];n=n.filter(n=>{if(n.dataPath.includes(e)){if(n.children){s=s.concat(n.children.slice(0))}n.children=undefined;s.push(n);return false}return true});if(s.length){f.children=s}n.push(f)}return n}validate.ValidationError=l.default;validate.ValidateError=l.default;var b=validate;n.default=b},481:function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}},493:function(e){"use strict";e.exports=function generate_pattern(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R=e.opts.$data&&r&&r.$data,j;if(R){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";j="schema"+l}else{j=r}var w=R?"(new RegExp("+j+"))":e.usePattern(r);s+="if ( ";if(R){s+=" ("+j+" !== undefined && typeof "+j+" != 'string') || "}s+=" !"+w+".test("+p+") ) { ";var F=F||[];F.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { pattern: ";if(R){s+=""+j}else{s+=""+e.util.toQuotedString(r)}s+=" } ";if(e.opts.messages!==false){s+=" , message: 'should match pattern \"";if(R){s+="' + "+j+" + '"}else{s+=""+e.util.escapeQuotes(r)}s+="\"' "}if(e.opts.verbose){s+=" , schema: ";if(R){s+="validate.schema"+g}else{s+=""+e.util.toQuotedString(r)}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var E=s;s=F.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+E+"]); "}else{s+=" validate.errors = ["+E+"]; return false; "}}else{s+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(d){s+=" else { "}return s}},526:function(e,n,f){"use strict";var s=f(237);var l=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var v=[0,31,28,31,30,31,30,31,31,30,31,30,31];var r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var g=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var b=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var d=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var p=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var R=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var j=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var w=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var F=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var E=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return s.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":p,url:R,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:g,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:j,"json-pointer":w,"json-pointer-uri-fragment":F,"relative-json-pointer":E};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":d,"uri-template":p,url:R,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:g,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:j,"json-pointer":w,"json-pointer-uri-fragment":F,"relative-json-pointer":E};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var n=e.match(l);if(!n)return false;var f=+n[1];var s=+n[2];var r=+n[3];return s>=1&&s<=12&&r>=1&&r<=(s==2&&isLeapYear(f)?29:v[s])}function time(e,n){var f=e.match(r);if(!f)return false;var s=f[1];var l=f[2];var v=f[3];var g=f[5];return(s<=23&&l<=59&&v<=59||s==23&&l==59&&v==60)&&(!n||g)}var A=/t|\s/i;function date_time(e){var n=e.split(A);return n.length==2&&date(n[0])&&time(n[1],true)}var N=/\/|:/;function uri(e){return N.test(e)&&b.test(e)}var z=/[^\\]\\Z/;function regex(e){if(z.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},571:function(e,n,f){"use strict";var s=/^[a-z_$][a-z0-9_$-]*$/i;var l=f(709);var v=f(331);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,n){var f=this.RULES;if(f.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!s.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(n){this.validateKeyword(n,true);var v=n.type;if(Array.isArray(v)){for(var r=0;r{let l=true;const v=s.includes("!");if(v){f.errors=[errorMessage(`The provided value ${JSON.stringify(s)} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.`,n,s)];l=false}const r=e===/^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(s);if(!r){f.errors=[getErrorFor(e,n,s)];l=false}return l};f.errors=[];return f}});return e}var f=addAbsolutePathKeyword;n.default=f},641:function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:true,readOnly:{type:"boolean",default:false},examples:{type:"array",items:true},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:true},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:true,enum:{type:"array",items:true,minItems:1,uniqueItems:true},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:true}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:true}},653:function(e,n,f){"use strict";var s=f(83),l=f(977),v=f(237),r=f(268),g=f(806);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,n,f){var s=this._refs[f];if(typeof s=="string"){if(this._refs[s])s=this._refs[s];else return resolve.call(this,e,n,s)}s=s||this._schemas[f];if(s instanceof r){return inlineRef(s.schema,this._opts.inlineRefs)?s.schema:s.validate||this._compile(s)}var l=resolveSchema.call(this,n,f);var v,g,b;if(l){v=l.schema;n=l.root;b=l.baseId}if(v instanceof r){g=v.validate||e.call(this,v.schema,n,undefined,b)}else if(v!==undefined){g=inlineRef(v,this._opts.inlineRefs)?v:e.call(this,v,n,undefined,b)}return g}function resolveSchema(e,n){var f=s.parse(n),l=_getFullPath(f),v=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||l!==v){var g=normalizeId(l);var b=this._refs[g];if(typeof b=="string"){return resolveRecursive.call(this,e,b,f)}else if(b instanceof r){if(!b.validate)this._compile(b);e=b}else{b=this._schemas[g];if(b instanceof r){if(!b.validate)this._compile(b);if(g==normalizeId(n))return{schema:b,root:e,baseId:v};e=b}else{return}}if(!e.schema)return;v=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,f,v,e.schema,e)}function resolveRecursive(e,n,f){var s=resolveSchema.call(this,e,n);if(s){var l=s.schema;var v=s.baseId;e=s.root;var r=this._getId(l);if(r)v=resolveUrl(v,r);return getJsonPointer.call(this,f,v,l,e)}}var b=v.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,n,f,s){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var l=e.fragment.split("/");for(var r=1;r",a=F?">":"<",p=undefined;if(!(j||typeof r=="number"||r===undefined)){throw new Error(n+" must be number")}if(!(N||A===undefined||typeof A=="number"||typeof A=="boolean")){throw new Error(E+" must be number or boolean")}if(N){var x=e.util.getData(A.$data,v,e.dataPathArr),q="exclusive"+l,O="exclType"+l,Q="exclIsNumber"+l,U="op"+l,I="' + "+U+" + '";s+=" var schemaExcl"+l+" = "+x+"; ";x="schemaExcl"+l;s+=" var "+q+"; var "+O+" = typeof "+x+"; if ("+O+" != 'boolean' && "+O+" != 'undefined' && "+O+" != 'number') { ";var p=E;var c=c||[];c.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(p||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: '"+E+" should be boolean' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "}s+=" } "}else{s+=" {} "}var T=s;s=c.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+T+"]); "}else{s+=" validate.errors = ["+T+"]; return false; "}}else{s+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else if ( ";if(j){s+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "}s+=" "+O+" == 'number' ? ( ("+q+" = "+w+" === undefined || "+x+" "+z+"= "+w+") ? "+R+" "+a+"= "+x+" : "+R+" "+a+" "+w+" ) : ( ("+q+" = "+x+" === true) ? "+R+" "+a+"= "+w+" : "+R+" "+a+" "+w+" ) || "+R+" !== "+R+") { var op"+l+" = "+q+" ? '"+z+"' : '"+z+"='; ";if(r===undefined){p=E;b=e.errSchemaPath+"/"+E;w=x;j=N}}else{var Q=typeof A=="number",I=z;if(Q&&j){var U="'"+I+"'";s+=" if ( ";if(j){s+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "}s+=" ( "+w+" === undefined || "+A+" "+z+"= "+w+" ? "+R+" "+a+"= "+A+" : "+R+" "+a+" "+w+" ) || "+R+" !== "+R+") { "}else{if(Q&&r===undefined){q=true;p=E;b=e.errSchemaPath+"/"+E;w=A;a+="="}else{if(Q)w=Math[F?"min":"max"](A,r);if(A===(Q?w:true)){q=true;p=E;b=e.errSchemaPath+"/"+E;a+="="}else{q=false;I+="="}}var U="'"+I+"'";s+=" if ( ";if(j){s+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "}s+=" "+R+" "+a+" "+w+" || "+R+" !== "+R+") { "}}p=p||n;var c=c||[];c.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(p||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { comparison: "+U+", limit: "+w+", exclusive: "+q+" } ";if(e.opts.messages!==false){s+=" , message: 'should be "+I+" ";if(j){s+="' + "+w}else{s+=""+w+"'"}}if(e.opts.verbose){s+=" , schema: ";if(j){s+="validate.schema"+g}else{s+=""+r}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "}s+=" } "}else{s+=" {} "}var T=s;s=c.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+T+"]); "}else{s+=" validate.errors = ["+T+"]; return false; "}}else{s+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(d){s+=" else { "}return s}},700:function(e,n,f){"use strict";var s=f(900);e.exports=function defFunc(e){if(e.RULES.keywords.switch&&e.RULES.keywords.if)return;var n=s.metaSchemaRef(e);defFunc.definition={inline:f(926),statements:true,errors:"full",metaSchema:{type:"array",items:{required:["then"],properties:{if:n,then:{anyOf:[{type:"boolean"},n]},continue:{type:"boolean"}},additionalProperties:false,dependencies:{continue:["if"]}}}};e.addKeyword("switch",defFunc.definition);return e}},709:function(e){"use strict";e.exports=function generate_custom(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p;var R="data"+(v||"");var j="valid"+l;var w="errs__"+l;var F=e.opts.$data&&r&&r.$data,E;if(F){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";E="schema"+l}else{E=r}var A=this,N="definition"+l,z=A.definition,a="";var x,q,O,Q,U;if(F&&z.$data){U="keywordValidate"+l;var I=z.validateSchema;s+=" var "+N+" = RULES.custom['"+n+"'].definition; var "+U+" = "+N+".validate;"}else{Q=e.useCustomRule(A,r,e.schema,e);if(!Q)return;E="validate.schema"+g;U=Q.code;x=z.compile;q=z.inline;O=z.macro}var c=U+".errors",T="i"+l,J="ruleErr"+l,L=z.async;if(L&&!e.async)throw new Error("async keyword in sync schema");if(!(q||O)){s+=""+c+" = null;"}s+="var "+w+" = errors;var "+j+";";if(F&&z.$data){a+="}";s+=" if ("+E+" === undefined) { "+j+" = true; } else { ";if(I){a+="}";s+=" "+j+" = "+N+".validateSchema("+E+"); if ("+j+") { "}}if(q){if(z.statements){s+=" "+Q.validate+" "}else{s+=" "+j+" = "+Q.validate+"; "}}else if(O){var M=e.util.copy(e);var a="";M.level++;var C="valid"+M.level;M.schema=Q.validate;M.schemaPath="";var H=e.compositeRule;e.compositeRule=M.compositeRule=true;var G=e.validate(M).replace(/validate\.schema/g,U);e.compositeRule=M.compositeRule=H;s+=" "+G}else{var Y=Y||[];Y.push(s);s="";s+=" "+U+".call( ";if(e.opts.passContext){s+="this"}else{s+="self"}if(x||z.schema===false){s+=" , "+R+" "}else{s+=" , "+E+" , "+R+" , validate.schema"+e.schemaPath+" "}s+=" , (dataPath || '')";if(e.errorPath!='""'){s+=" + "+e.errorPath}var W=v?"data"+(v-1||""):"parentData",X=v?e.dataPathArr[v]:"parentDataProperty";s+=" , "+W+" , "+X+" , rootData ) ";var B=s;s=Y.pop();if(z.errors===false){s+=" "+j+" = ";if(L){s+="await "}s+=""+B+"; "}else{if(L){c="customErrors"+l;s+=" var "+c+" = null; try { "+j+" = await "+B+"; } catch (e) { "+j+" = false; if (e instanceof ValidationError) "+c+" = e.errors; else throw e; } "}else{s+=" "+c+" = null; "+j+" = "+B+"; "}}}if(z.modifying){s+=" if ("+W+") "+R+" = "+W+"["+X+"];"}s+=""+a;if(z.valid){if(d){s+=" if (true) { "}}else{s+=" if ( ";if(z.valid===undefined){s+=" !";if(O){s+=""+C}else{s+=""+j}}else{s+=" "+!z.valid+" "}s+=") { ";p=A.keyword;var Y=Y||[];Y.push(s);s="";var Y=Y||[];Y.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { keyword: '"+A.keyword+"' } ";if(e.opts.messages!==false){s+=" , message: 'should pass \""+A.keyword+"\" keyword validation' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "}s+=" } "}else{s+=" {} "}var Z=s;s=Y.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+Z+"]); "}else{s+=" validate.errors = ["+Z+"]; return false; "}}else{s+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var y=s;s=Y.pop();if(q){if(z.errors){if(z.errors!="full"){s+=" for (var "+T+"="+w+"; "+T+"0:e.util.schemaHasRules(I,e.RULES.all)){s+=" "+E+" = true; if ("+p+".length > "+c+") { ";var J=p+"["+c+"]";w.schema=I;w.schemaPath=g+"["+c+"]";w.errSchemaPath=b+"/"+c;w.errorPath=e.util.getPathExpr(e.errorPath,c,e.opts.jsonPointers,true);w.dataPathArr[N]=c;var L=e.validate(w);w.baseId=a;if(e.util.varOccurences(L,z)<2){s+=" "+e.util.varReplace(L,z,J)+" "}else{s+=" var "+z+" = "+J+"; "+L+" "}s+=" } ";if(d){s+=" if ("+E+") { ";F+="}"}}}}if(typeof x=="object"&&(e.opts.strictKeywords?typeof x=="object"&&Object.keys(x).length>0:e.util.schemaHasRules(x,e.RULES.all))){w.schema=x;w.schemaPath=e.schemaPath+".additionalItems";w.errSchemaPath=e.errSchemaPath+"/additionalItems";s+=" "+E+" = true; if ("+p+".length > "+r.length+") { for (var "+A+" = "+r.length+"; "+A+" < "+p+".length; "+A+"++) { ";w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,true);var J=p+"["+A+"]";w.dataPathArr[N]=A;var L=e.validate(w);w.baseId=a;if(e.util.varOccurences(L,z)<2){s+=" "+e.util.varReplace(L,z,J)+" "}else{s+=" var "+z+" = "+J+"; "+L+" "}if(d){s+=" if (!"+E+") break; "}s+=" } } ";if(d){s+=" if ("+E+") { ";F+="}"}}}else if(e.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0:e.util.schemaHasRules(r,e.RULES.all)){w.schema=r;w.schemaPath=g;w.errSchemaPath=b;s+=" for (var "+A+" = "+0+"; "+A+" < "+p+".length; "+A+"++) { ";w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,true);var J=p+"["+A+"]";w.dataPathArr[N]=A;var L=e.validate(w);w.baseId=a;if(e.util.varOccurences(L,z)<2){s+=" "+e.util.varReplace(L,z,J)+" "}else{s+=" var "+z+" = "+J+"; "+L+" "}if(d){s+=" if (!"+E+") break; "}s+=" }"}if(d){s+=" "+F+" if ("+j+" == errors) {"}return s}},732:function(e,n,f){"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",inline:f(725),statements:true,errors:"full",metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:true}};e.addKeyword("patternRequired",defFunc.definition);return e}},744:function(e){"use strict";e.exports=function generate_required(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R="valid"+l;var j=e.opts.$data&&r&&r.$data,w;if(j){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";w="schema"+l}else{w=r}var F="schema"+l;if(!j){if(r.length0:e.util.schemaHasRules(x,e.RULES.all)))){E[E.length]=N}}}}else{var E=r}}if(j||E.length){var q=e.errorPath,O=j||E.length>=e.opts.loopRequired,Q=e.opts.ownProperties;if(d){s+=" var missing"+l+"; ";if(O){if(!j){s+=" var "+F+" = validate.schema"+g+"; "}var U="i"+l,I="schema"+l+"["+U+"]",c="' + "+I+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(q,I,e.opts.jsonPointers)}s+=" var "+R+" = true; ";if(j){s+=" if (schema"+l+" === undefined) "+R+" = true; else if (!Array.isArray(schema"+l+")) "+R+" = false; else {"}s+=" for (var "+U+" = 0; "+U+" < "+F+".length; "+U+"++) { "+R+" = "+p+"["+F+"["+U+"]] !== undefined ";if(Q){s+=" && Object.prototype.hasOwnProperty.call("+p+", "+F+"["+U+"]) "}s+="; if (!"+R+") break; } ";if(j){s+=" } "}s+=" if (!"+R+") { ";var T=T||[];T.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { missingProperty: '"+c+"' } ";if(e.opts.messages!==false){s+=" , message: '";if(e.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+c+"\\'"}s+="' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var J=s;s=T.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+J+"]); "}else{s+=" validate.errors = ["+J+"]; return false; "}}else{s+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { "}else{s+=" if ( ";var L=E;if(L){var M,U=-1,C=L.length-1;while(U8){s+=" || validate.schema"+g+".hasOwnProperty("+E+") "}else{var G=x;if(G){var Y,W=-1,X=G.length-1;while(W0:e.util.schemaHasRules(t,e.RULES.all)){var ee=e.util.getProperty(Y),P=p+ee,ne=_&&t.default!==undefined;j.schema=t;j.schemaPath=g+ee;j.errSchemaPath=b+"/"+e.util.escapeFragment(Y);j.errorPath=e.util.getPath(e.errorPath,Y,e.opts.jsonPointers);j.dataPathArr[N]=e.util.toQuotedString(Y);var i=e.validate(j);j.baseId=M;if(e.util.varOccurences(i,z)<2){i=e.util.varReplace(i,z,P);var fe=P}else{var fe=z;s+=" var "+z+" = "+P+"; "}if(ne){s+=" "+i+" "}else{if(H&&H[Y]){s+=" if ( "+fe+" === undefined ";if(L){s+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(Y)+"') "}s+=") { "+F+" = false; ";var K=e.errorPath,V=b,se=e.util.escapeQuotes(Y);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(K,Y,e.opts.jsonPointers)}b=e.errSchemaPath+"/required";var k=k||[];k.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { missingProperty: '"+se+"' } ";if(e.opts.messages!==false){s+=" , message: '";if(e.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+se+"\\'"}s+="' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var h=s;s=k.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+h+"]); "}else{s+=" validate.errors = ["+h+"]; return false; "}}else{s+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}b=V;e.errorPath=K;s+=" } else { "}else{if(d){s+=" if ( "+fe+" === undefined ";if(L){s+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(Y)+"') "}s+=") { "+F+" = true; } else { "}else{s+=" if ("+fe+" !== undefined ";if(L){s+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(Y)+"') "}s+=" ) { "}}s+=" "+i+" } "}}if(d){s+=" if ("+F+") { ";w+="}"}}}}if(O.length){var le=O;if(le){var Z,ve=-1,re=le.length-1;while(ve0:e.util.schemaHasRules(t,e.RULES.all)){j.schema=t;j.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(Z);j.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(Z);if(L){s+=" "+a+" = "+a+" || Object.keys("+p+"); for (var "+A+"=0; "+A+"<"+a+".length; "+A+"++) { var "+E+" = "+a+"["+A+"]; "}else{s+=" for (var "+E+" in "+p+") { "}s+=" if ("+e.usePattern(Z)+".test("+E+")) { ";j.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var P=p+"["+E+"]";j.dataPathArr[N]=E;var i=e.validate(j);j.baseId=M;if(e.util.varOccurences(i,z)<2){s+=" "+e.util.varReplace(i,z,P)+" "}else{s+=" var "+z+" = "+P+"; "+i+" "}if(d){s+=" if (!"+F+") break; "}s+=" } ";if(d){s+=" else "+F+" = true; "}s+=" } ";if(d){s+=" if ("+F+") { ";w+="}"}}}}}if(d){s+=" "+w+" if ("+R+" == errors) {"}return s}},788:function(e){"use strict";e.exports=function generate__formatLimit(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p;var R="data"+(v||"");var j="valid"+l;s+="var "+j+" = undefined;";if(e.opts.format===false){s+=" "+j+" = true; ";return s}var w=e.schema.format,F=e.opts.$data&&w.$data,E="";if(F){var A=e.util.getData(w.$data,v,e.dataPathArr),N="format"+l,z="compare"+l;s+=" var "+N+" = formats["+A+"] , "+z+" = "+N+" && "+N+".compare;"}else{var N=e.formats[w];if(!(N&&N.compare)){s+=" "+j+" = true; ";return s}var z="formats"+e.util.getProperty(w)+".compare"}var a=n=="formatMaximum",x="formatExclusive"+(a?"Maximum":"Minimum"),q=e.schema[x],O=e.opts.$data&&q&&q.$data,Q=a?"<":">",U="result"+l;var I=e.opts.$data&&r&&r.$data,c;if(I){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";c="schema"+l}else{c=r}if(O){var T=e.util.getData(q.$data,v,e.dataPathArr),J="exclusive"+l,L="op"+l,M="' + "+L+" + '";s+=" var schemaExcl"+l+" = "+T+"; ";T="schemaExcl"+l;s+=" if (typeof "+T+" != 'boolean' && "+T+" !== undefined) { "+j+" = false; ";var p=x;var C=C||[];C.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(p||"_formatExclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: '"+x+" should be boolean' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "}s+=" } "}else{s+=" {} "}var H=s;s=C.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+H+"]); "}else{s+=" validate.errors = ["+H+"]; return false; "}}else{s+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(d){E+="}";s+=" else { "}if(I){s+=" if ("+c+" === undefined) "+j+" = true; else if (typeof "+c+" != 'string') "+j+" = false; else { ";E+="}"}if(F){s+=" if (!"+z+") "+j+" = true; else { ";E+="}"}s+=" var "+U+" = "+z+"("+R+", ";if(I){s+=""+c}else{s+=""+e.util.toQuotedString(r)}s+=" ); if ("+U+" === undefined) "+j+" = false; var "+J+" = "+T+" === true; if ("+j+" === undefined) { "+j+" = "+J+" ? "+U+" "+Q+" 0 : "+U+" "+Q+"= 0; } if (!"+j+") var op"+l+" = "+J+" ? '"+Q+"' : '"+Q+"=';"}else{var J=q===true,M=Q;if(!J)M+="=";var L="'"+M+"'";if(I){s+=" if ("+c+" === undefined) "+j+" = true; else if (typeof "+c+" != 'string') "+j+" = false; else { ";E+="}"}if(F){s+=" if (!"+z+") "+j+" = true; else { ";E+="}"}s+=" var "+U+" = "+z+"("+R+", ";if(I){s+=""+c}else{s+=""+e.util.toQuotedString(r)}s+=" ); if ("+U+" === undefined) "+j+" = false; if ("+j+" === undefined) "+j+" = "+U+" "+Q;if(!J){s+="="}s+=" 0;"}s+=""+E+"if (!"+j+") { ";var p=n;var C=C||[];C.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(p||"_formatLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { comparison: "+L+", limit: ";if(I){s+=""+c}else{s+=""+e.util.toQuotedString(r)}s+=" , exclusive: "+J+" } ";if(e.opts.messages!==false){s+=" , message: 'should be "+M+' "';if(I){s+="' + "+c+" + '"}else{s+=""+e.util.escapeQuotes(r)}s+="\"' "}if(e.opts.verbose){s+=" , schema: ";if(I){s+="validate.schema"+g}else{s+=""+e.util.toQuotedString(r)}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "}s+=" } "}else{s+=" {} "}var H=s;s=C.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+H+"]); "}else{s+=" validate.errors = ["+H+"]; return false; "}}else{s+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="}";return s}},804:function(e){"use strict";e.exports=function generate_comment(e,n,f){var s=" ";var l=e.schema[n];var v=e.errSchemaPath+"/"+n;var r=!e.opts.allErrors;var g=e.util.toQuotedString(l);if(e.opts.$comment===true){s+=" console.log("+g+");"}else if(typeof e.opts.$comment=="function"){s+=" self._opts.$comment("+g+", "+e.util.toQuotedString(v)+", validate.root.schema);"}return s}},805:function(e){"use strict";e.exports=function generate_multipleOf(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R=e.opts.$data&&r&&r.$data,j;if(R){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";j="schema"+l}else{j=r}if(!(R||typeof r=="number")){throw new Error(n+" must be number")}s+="var division"+l+";if (";if(R){s+=" "+j+" !== undefined && ( typeof "+j+" != 'number' || "}s+=" (division"+l+" = "+p+" / "+j+", ";if(e.opts.multipleOfPrecision){s+=" Math.abs(Math.round(division"+l+") - division"+l+") > 1e-"+e.opts.multipleOfPrecision+" "}else{s+=" division"+l+" !== parseInt(division"+l+") "}s+=" ) ";if(R){s+=" ) "}s+=" ) { ";var w=w||[];w.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { multipleOf: "+j+" } ";if(e.opts.messages!==false){s+=" , message: 'should be multiple of ";if(R){s+="' + "+j}else{s+=""+j+"'"}}if(e.opts.verbose){s+=" , schema: ";if(R){s+="validate.schema"+g}else{s+=""+r}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var F=s;s=w.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+F+"]); "}else{s+=" validate.errors = ["+F+"]; return false; "}}else{s+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(d){s+=" else { "}return s}},806:function(e){"use strict";var n=e.exports=function(e,n,f){if(typeof n=="function"){f=n;n={}}f=n.cb||f;var s=typeof f=="function"?f:f.pre||function(){};var l=f.post||function(){};_traverse(n,s,l,e,"",e)};n.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};n.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};n.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};n.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,f,s,l,v,r,g,b,d,p){if(l&&typeof l=="object"&&!Array.isArray(l)){f(l,v,r,g,b,d,p);for(var R in l){var j=l[R];if(Array.isArray(j)){if(R in n.arrayKeywords){for(var w=0;w0:e.util.schemaHasRules(n,e.RULES.all)});if(A){var N=w.baseId;s+=" var "+j+" = errors; var "+R+" = false; ";var z=e.compositeRule;e.compositeRule=w.compositeRule=true;var a=r;if(a){var x,q=-1,O=a.length-1;while(q=0){if(d){s+=" if (true) { "}return s}else{throw new Error('unknown format "'+r+'" is used in schema at path "'+e.errSchemaPath+'"')}}var A=typeof E=="object"&&!(E instanceof RegExp)&&E.validate;var N=A&&E.type||"string";if(A){var z=E.async===true;E=E.validate}if(N!=f){if(d){s+=" if (true) { "}return s}if(z){if(!e.async)throw new Error("async format in sync schema");var a="formats"+e.util.getProperty(r)+".validate";s+=" if (!(await "+a+"("+p+"))) { "}else{s+=" if (! ";var a="formats"+e.util.getProperty(r);if(A)a+=".validate";if(typeof E=="function"){s+=" "+a+"("+p+") "}else{s+=" "+a+".test("+p+") "}s+=") { "}}var x=x||[];x.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { format: ";if(R){s+=""+j}else{s+=""+e.util.toQuotedString(r)}s+=" } ";if(e.opts.messages!==false){s+=" , message: 'should match format \"";if(R){s+="' + "+j+" + '"}else{s+=""+e.util.escapeQuotes(r)}s+="\"' "}if(e.opts.verbose){s+=" , schema: ";if(R){s+="validate.schema"+g}else{s+=""+e.util.toQuotedString(r)}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var q=s;s=x.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+q+"]); "}else{s+=" validate.errors = ["+q+"]; return false; "}}else{s+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(d){s+=" else { "}return s}},900:function(e){"use strict";e.exports={metaSchemaRef:metaSchemaRef};var n="http://json-schema.org/draft-07/schema";function metaSchemaRef(e){var f=e._opts.defaultMeta;if(typeof f=="string")return{$ref:f};if(e.getSchema(n))return{$ref:n};console.warn("meta schema not defined");return{}}},904:function(e){"use strict";e.exports=function defFunc(e){defFunc.definition={type:"string",inline:function(e,n,f){return getRegExp()+".test(data"+(e.dataLevel||"")+")";function getRegExp(){try{if(typeof f=="object")return new RegExp(f.pattern,f.flags);var e=f.match(/^\/(.*)\/([gimuy]*)$/);if(e)return new RegExp(e[1],e[2]);throw new Error("cannot parse string into RegExp")}catch(e){console.error("regular expression",f,"is invalid");throw e}}},metaSchema:{type:["string","object"],properties:{pattern:{type:"string"},flags:{type:"string"}},required:["pattern"],additionalProperties:false}};e.addKeyword("regexp",defFunc.definition);return e}},926:function(e){"use strict";e.exports=function generate_switch(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R="valid"+l;var j="errs__"+l;var w=e.util.copy(e);var F="";w.level++;var E="valid"+w.level;var A="ifPassed"+e.level,N=w.baseId,z;s+="var "+A+";";var a=r;if(a){var x,q=-1,O=a.length-1;while(q0:e.util.schemaHasRules(x.if,e.RULES.all))){s+=" var "+j+" = errors; ";var Q=e.compositeRule;e.compositeRule=w.compositeRule=true;w.createErrors=false;w.schema=x.if;w.schemaPath=g+"["+q+"].if";w.errSchemaPath=b+"/"+q+"/if";s+=" "+e.validate(w)+" ";w.baseId=N;w.createErrors=true;e.compositeRule=w.compositeRule=Q;s+=" "+A+" = "+E+"; if ("+A+") { ";if(typeof x.then=="boolean"){if(x.then===false){var U=U||[];U.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"switch"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { caseIndex: "+q+" } ";if(e.opts.messages!==false){s+=" , message: 'should pass \"switch\" keyword validation' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var I=s;s=U.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+I+"]); "}else{s+=" validate.errors = ["+I+"]; return false; "}}else{s+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}s+=" var "+E+" = "+x.then+"; "}else{w.schema=x.then;w.schemaPath=g+"["+q+"].then";w.errSchemaPath=b+"/"+q+"/then";s+=" "+e.validate(w)+" ";w.baseId=N}s+=" } else { errors = "+j+"; if (vErrors !== null) { if ("+j+") vErrors.length = "+j+"; else vErrors = null; } } "}else{s+=" "+A+" = true; ";if(typeof x.then=="boolean"){if(x.then===false){var U=U||[];U.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"switch"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { caseIndex: "+q+" } ";if(e.opts.messages!==false){s+=" , message: 'should pass \"switch\" keyword validation' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var I=s;s=U.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+I+"]); "}else{s+=" validate.errors = ["+I+"]; return false; "}}else{s+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}s+=" var "+E+" = "+x.then+"; "}else{w.schema=x.then;w.schemaPath=g+"["+q+"].then";w.errSchemaPath=b+"/"+q+"/then";s+=" "+e.validate(w)+" ";w.baseId=N}}z=x.continue}}s+=""+F+"var "+R+" = "+E+";";return s}},936:function(e,n,f){"use strict";e.exports=f(225)("Maximum")},940:function(e){"use strict";e.exports=function generate_enum(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R="valid"+l;var j=e.opts.$data&&r&&r.$data,w;if(j){s+=" var schema"+l+" = "+e.util.getData(r.$data,v,e.dataPathArr)+"; ";w="schema"+l}else{w=r}var F="i"+l,E="schema"+l;if(!j){s+=" var "+E+" = validate.schema"+g+";"}s+="var "+R+";";if(j){s+=" if (schema"+l+" === undefined) "+R+" = true; else if (!Array.isArray(schema"+l+")) "+R+" = false; else {"}s+=""+R+" = false;for (var "+F+"=0; "+F+"<"+E+".length; "+F+"++) if (equal("+p+", "+E+"["+F+"])) { "+R+" = true; break; }";if(j){s+=" } "}s+=" if (!"+R+") { ";var A=A||[];A.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { allowedValues: schema"+l+" } ";if(e.opts.messages!==false){s+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var N=s;s=A.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+N+"]); "}else{s+=" validate.errors = ["+N+"]; return false; "}}else{s+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" }";if(d){s+=" else { "}return s}},947:function(e,n,f){"use strict";e.exports={$ref:f(168),allOf:f(174),anyOf:f(824),$comment:f(804),const:f(318),contains:f(974),dependencies:f(179),enum:f(940),format:f(898),if:f(952),items:f(731),maximum:f(681),minimum:f(681),maxItems:f(299),minItems:f(299),maxLength:f(301),minLength:f(301),maxProperties:f(66),minProperties:f(66),multipleOf:f(805),not:f(171),oneOf:f(452),pattern:f(493),properties:f(783),propertyNames:f(406),required:f(744),uniqueItems:f(266),validate:f(596)}},952:function(e){"use strict";e.exports=function generate_if(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R="valid"+l;var j="errs__"+l;var w=e.util.copy(e);w.level++;var F="valid"+w.level;var E=e.schema["then"],A=e.schema["else"],N=E!==undefined&&(e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0:e.util.schemaHasRules(E,e.RULES.all)),z=A!==undefined&&(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0:e.util.schemaHasRules(A,e.RULES.all)),a=w.baseId;if(N||z){var x;w.createErrors=false;w.schema=r;w.schemaPath=g;w.errSchemaPath=b;s+=" var "+j+" = errors; var "+R+" = true; ";var q=e.compositeRule;e.compositeRule=w.compositeRule=true;s+=" "+e.validate(w)+" ";w.baseId=a;w.createErrors=true;s+=" errors = "+j+"; if (vErrors !== null) { if ("+j+") vErrors.length = "+j+"; else vErrors = null; } ";e.compositeRule=w.compositeRule=q;if(N){s+=" if ("+F+") { ";w.schema=e.schema["then"];w.schemaPath=e.schemaPath+".then";w.errSchemaPath=e.errSchemaPath+"/then";s+=" "+e.validate(w)+" ";w.baseId=a;s+=" "+R+" = "+F+"; ";if(N&&z){x="ifClause"+l;s+=" var "+x+" = 'then'; "}else{x="'then'"}s+=" } ";if(z){s+=" else { "}}else{s+=" if (!"+F+") { "}if(z){w.schema=e.schema["else"];w.schemaPath=e.schemaPath+".else";w.errSchemaPath=e.errSchemaPath+"/else";s+=" "+e.validate(w)+" ";w.baseId=a;s+=" "+R+" = "+F+"; ";if(N&&z){x="ifClause"+l;s+=" var "+x+" = 'else'; "}else{x="'else'"}s+=" } "}s+=" if (!"+R+") { var err = ";if(e.createErrors!==false){s+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: { failingKeyword: "+x+" } ";if(e.opts.messages!==false){s+=" , message: 'should match \"' + "+x+" + '\" schema' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}s+=" } ";if(d){s+=" else { "}}else{if(d){s+=" if (true) { "}}return s}},969:function(e,n,f){"use strict";const s=f(478);e.exports=s.default},974:function(e){"use strict";e.exports=function generate_contains(e,n,f){var s=" ";var l=e.level;var v=e.dataLevel;var r=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var d=!e.opts.allErrors;var p="data"+(v||"");var R="valid"+l;var j="errs__"+l;var w=e.util.copy(e);var F="";w.level++;var E="valid"+w.level;var A="i"+l,N=w.dataLevel=e.dataLevel+1,z="data"+N,a=e.baseId,x=e.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0:e.util.schemaHasRules(r,e.RULES.all);s+="var "+j+" = errors;var "+R+";";if(x){var q=e.compositeRule;e.compositeRule=w.compositeRule=true;w.schema=r;w.schemaPath=g;w.errSchemaPath=b;s+=" var "+E+" = false; for (var "+A+" = 0; "+A+" < "+p+".length; "+A+"++) { ";w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,true);var O=p+"["+A+"]";w.dataPathArr[N]=A;var Q=e.validate(w);w.baseId=a;if(e.util.varOccurences(Q,z)<2){s+=" "+e.util.varReplace(Q,z,O)+" "}else{s+=" var "+z+" = "+O+"; "+Q+" "}s+=" if ("+E+") break; } ";e.compositeRule=w.compositeRule=q;s+=" "+F+" if (!"+E+") {"}else{s+=" if ("+p+".length == 0) {"}var U=U||[];U.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: 'should contain a valid item' "}if(e.opts.verbose){s+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var I=s;s=U.pop();if(!e.compositeRule&&d){if(e.async){s+=" throw new ValidationError(["+I+"]); "}else{s+=" validate.errors = ["+I+"]; return false; "}}else{s+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { ";if(x){s+=" errors = "+j+"; if (vErrors !== null) { if ("+j+") vErrors.length = "+j+"; else vErrors = null; } "}if(e.opts.allErrors){s+=" } "}return s}},977:function(e){"use strict";e.exports=function equal(e,n){if(e===n)return true;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return false;var f,s,l;if(Array.isArray(e)){f=e.length;if(f!=n.length)return false;for(s=f;s--!==0;)if(!equal(e[s],n[s]))return false;return true}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();l=Object.keys(e);f=l.length;if(f!==Object.keys(n).length)return false;for(s=f;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[s]))return false;for(s=f;s--!==0;){var v=l[s];if(!equal(e[v],n[v]))return false}return true}return e!==e&&n!==n}},989:function(e){"use strict";var n=["undefined","string","number","object","function","boolean","symbol"];e.exports=function defFunc(e){defFunc.definition={inline:function(e,n,f){var s="data"+(e.dataLevel||"");if(typeof f=="string")return"typeof "+s+' == "'+f+'"';f="validate.schema"+e.schemaPath+"."+n;return f+".indexOf(typeof "+s+") >= 0"},metaSchema:{anyOf:[{type:"string",enum:n},{type:"array",items:{type:"string",enum:n}}]}};e.addKeyword("typeof",defFunc.definition);return e}}}); \ No newline at end of file diff --git a/packages/next/compiled/schema-utils/package.json b/packages/next/compiled/schema-utils/package.json new file mode 100644 index 00000000000000..7e59cb8bf75b9e --- /dev/null +++ b/packages/next/compiled/schema-utils/package.json @@ -0,0 +1 @@ +{"name":"schema-utils","main":"index.js","author":"webpack Contrib (https://github.com/webpack-contrib)","license":"MIT"} diff --git a/packages/next/compiled/terser-webpack-plugin/cjs.js b/packages/next/compiled/terser-webpack-plugin/cjs.js index 4fdac738d0648e..bef0c58297de78 100644 --- a/packages/next/compiled/terser-webpack-plugin/cjs.js +++ b/packages/next/compiled/terser-webpack-plugin/cjs.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var s={};function __webpack_require__(t){if(s[t]){return s[t].exports}var n=s[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(470)}t(__webpack_require__);return startup()}({43:function(e,t,s){"use strict";const n=s(446);class AsyncDependencyToInitialChunkError extends n{constructor(e,t,s){super(`It's not allowed to load an initial chunk on demand. The chunk name "${e}" is already used by an entrypoint.`);this.name="AsyncDependencyToInitialChunkError";this.module=t;this.loc=s;Error.captureStackTrace(this,this.constructor)}}e.exports=AsyncDependencyToInitialChunkError},46:function(e,t,s){e.exports=s(417).randomBytes},48:function(e,t,s){"use strict";const n=s(966);e.exports=class RuntimeTemplate{constructor(e,t){this.outputOptions=e||{};this.requestShortener=t}comment({request:e,chunkName:t,chunkReason:s,message:r,exportName:o}){let i;if(this.outputOptions.pathinfo){i=[r,e,t,s].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}else{i=[r,t,s].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}if(!i)return"";if(this.outputOptions.pathinfo){return n.toComment(i)+" "}else{return n.toNormalComment(i)+" "}}throwMissingModuleErrorFunction({request:e}){const t=`Cannot find module '${e}'`;return`function webpackMissingModule() { var e = new Error(${JSON.stringify(t)}); e.code = 'MODULE_NOT_FOUND'; throw e; }`}missingModule({request:e}){return`!(${this.throwMissingModuleErrorFunction({request:e})}())`}missingModuleStatement({request:e}){return`${this.missingModule({request:e})};\n`}missingModulePromise({request:e}){return`Promise.resolve().then(${this.throwMissingModuleErrorFunction({request:e})})`}moduleId({module:e,request:t}){if(!e){return this.missingModule({request:t})}if(e.id===null){throw new Error(`RuntimeTemplate.moduleId(): Module ${e.identifier()} has no id. This should not happen.`)}return`${this.comment({request:t})}${JSON.stringify(e.id)}`}moduleRaw({module:e,request:t}){if(!e){return this.missingModule({request:t})}return`__webpack_require__(${this.moduleId({module:e,request:t})})`}moduleExports({module:e,request:t}){return this.moduleRaw({module:e,request:t})}moduleNamespace({module:e,request:t,strict:s}){if(!e){return this.missingModule({request:t})}const n=this.moduleId({module:e,request:t});const r=e.buildMeta&&e.buildMeta.exportsType;if(r==="namespace"){const s=this.moduleRaw({module:e,request:t});return s}else if(r==="named"){return`__webpack_require__.t(${n}, 3)`}else if(s){return`__webpack_require__.t(${n}, 1)`}else{return`__webpack_require__.t(${n}, 7)`}}moduleNamespacePromise({block:e,module:t,request:s,message:n,strict:r,weak:o}){if(!t){return this.missingModulePromise({request:s})}if(t.id===null){throw new Error(`RuntimeTemplate.moduleNamespacePromise(): Module ${t.identifier()} has no id. This should not happen.`)}const i=this.blockPromise({block:e,message:n});let a;let l=JSON.stringify(t.id);const u=this.comment({request:s});let c="";if(o){if(l.length>8){c+=`var id = ${l}; `;l="id"}c+=`if(!__webpack_require__.m[${l}]) { var e = new Error("Module '" + ${l} + "' is not available (weak dependency)"); e.code = 'MODULE_NOT_FOUND'; throw e; } `}const d=this.moduleId({module:t,request:s});const h=t.buildMeta&&t.buildMeta.exportsType;if(h==="namespace"){if(c){const e=this.moduleRaw({module:t,request:s});a=`function() { ${c}return ${e}; }`}else{a=`__webpack_require__.bind(null, ${u}${l})`}}else if(h==="named"){if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 3); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 3)`}}else if(r){if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 1); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 1)`}}else{if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 7); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 7)`}}return`${i||"Promise.resolve()"}.then(${a})`}importStatement({update:e,module:t,request:s,importVar:n,originModule:r}){if(!t){return this.missingModuleStatement({request:s})}const o=this.moduleId({module:t,request:s});const i=e?"":"var ";const a=t.buildMeta&&t.buildMeta.exportsType;let l=`/* harmony import */ ${i}${n} = __webpack_require__(${o});\n`;if(!a&&!r.buildMeta.strictHarmonyModule){l+=`/* harmony import */ ${i}${n}_default = /*#__PURE__*/__webpack_require__.n(${n});\n`}if(a==="named"){if(Array.isArray(t.buildMeta.providedExports)){l+=`${i}${n}_namespace = /*#__PURE__*/__webpack_require__.t(${o}, 1);\n`}else{l+=`${i}${n}_namespace = /*#__PURE__*/__webpack_require__.t(${o});\n`}}return l}exportFromImport({module:e,request:t,exportName:s,originModule:r,asiSafe:o,isCall:i,callContext:a,importVar:l}){if(!e){return this.missingModule({request:t})}const u=e.buildMeta&&e.buildMeta.exportsType;if(!u){if(s==="default"){if(!r.buildMeta.strictHarmonyModule){if(i){return`${l}_default()`}else if(o){return`(${l}_default())`}else{return`${l}_default.a`}}else{return l}}else if(r.buildMeta.strictHarmonyModule){if(s){return"/* non-default import from non-esm module */undefined"}else{return`/*#__PURE__*/__webpack_require__.t(${l})`}}}if(u==="named"){if(s==="default"){return l}else if(!s){return`${l}_namespace`}}if(s){const t=e.isUsed(s);if(!t){const e=n.toNormalComment(`unused export ${s}`);return`${e} undefined`}const r=t!==s?n.toNormalComment(s)+" ":"";const u=`${l}[${r}${JSON.stringify(t)}]`;if(i){if(a===false&&o){return`(0,${u})`}else if(a===false){return`Object(${u})`}}return u}else{return l}}blockPromise({block:e,message:t}){if(!e||!e.chunkGroup||e.chunkGroup.chunks.length===0){const e=this.comment({message:t});return`Promise.resolve(${e.trim()})`}const s=e.chunkGroup.chunks.filter(e=>!e.hasRuntime()&&e.id!==null);const n=this.comment({message:t,chunkName:e.chunkName,chunkReason:e.chunkReason});if(s.length===1){const e=JSON.stringify(s[0].id);return`__webpack_require__.e(${n}${e})`}else if(s.length>0){const e=e=>`__webpack_require__.e(${JSON.stringify(e.id)})`;return`Promise.all(${n.trim()}[${s.map(e).join(", ")}])`}else{return`Promise.resolve(${n.trim()})`}}onError(){return"__webpack_require__.oe"}defineEsModuleFlagStatement({exportsArgument:e}){return`__webpack_require__.r(${e});\n`}}},51:function(e,t,s){"use strict";const n=s(669);const r=s(554);function Tapable(){this._pluginCompat=new r(["options"]);this._pluginCompat.tap({name:"Tapable camelCase",stage:100},e=>{e.names.add(e.name.replace(/[- ]([a-z])/g,(e,t)=>t.toUpperCase()))});this._pluginCompat.tap({name:"Tapable this.hooks",stage:200},e=>{let t;for(const s of e.names){t=this.hooks[s];if(t!==undefined){break}}if(t!==undefined){const s={name:e.fn.name||"unnamed compat plugin",stage:e.stage||0};if(e.async)t.tapAsync(s,e.fn);else t.tap(s,e.fn);return true}})}e.exports=Tapable;Tapable.addCompatLayer=function addCompatLayer(e){Tapable.call(e);e.plugin=Tapable.prototype.plugin;e.apply=Tapable.prototype.apply};Tapable.prototype.plugin=n.deprecate(function plugin(e,t){if(Array.isArray(e)){e.forEach(function(e){this.plugin(e,t)},this);return}const s=this._pluginCompat.call({name:e,fn:t,names:new Set([e])});if(!s){throw new Error(`Plugin could not be registered at '${e}'. Hook was not found.\n`+"BREAKING CHANGE: There need to exist a hook at 'this.hooks'. "+"To create a compatibility layer for this hook, hook into 'this._pluginCompat'.")}},"Tapable.plugin is deprecated. Use new API on `.hooks` instead");Tapable.prototype.apply=n.deprecate(function apply(){for(var e=0;ee(s)+r(true),onDone:t})}}const o=new AsyncParallelHookCodeFactory;class AsyncParallelHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncParallelHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncParallelHook},102:function(e,t){"use strict";const s="LOADER_EXECUTION";const n="WEBPACK_OPTIONS";t.cutOffByFlag=((e,t)=>{e=e.split("\n");for(let s=0;st.cutOffByFlag(e,s));t.cutOffWebpackOptions=(e=>t.cutOffByFlag(e,n));t.cutOffMultilineMessage=((e,t)=>{e=e.split("\n");t=t.split("\n");return e.reduce((e,s,n)=>s.includes(t[n])?e:e.concat(s),[]).join("\n")});t.cutOffMessage=((e,t)=>{const s=e.indexOf("\n");if(s===-1){return e===t?"":e}else{const n=e.substr(0,s);return n===t?e.substr(s+1):e}});t.cleanUp=((e,s)=>{e=t.cutOffLoaderExecution(e);e=t.cutOffMessage(e,s);return e});t.cleanUpWebpackOptions=((e,s)=>{e=t.cutOffWebpackOptions(e);e=t.cutOffMultilineMessage(e,s);return e})},122:function(e,t){"use strict";const s=t;s.formatSize=(e=>{if(typeof e!=="number"||Number.isNaN(e)===true){return"unknown size"}if(e<=0){return"0 bytes"}const t=["bytes","KiB","MiB","GiB"];const s=Math.floor(Math.log(e)/Math.log(1024));return`${+(e/Math.pow(1024,s)).toPrecision(3)} ${t[s]}`})},134:function(e){e.exports=require("schema-utils")},140:function(e,t,s){"use strict";const n=s(622);const r=/\\/g;const o=/[-[\]{}()*+?.,\\^$|#\s]/g;const i=/[/\\]$/;const a=/^!|!$/g;const l=/\/index.js(!|\?|\(query\))/g;const u=/!=!/;const c=e=>{return e.replace(r,"/")};const d=e=>{const t=e.replace(o,"\\$&");return new RegExp(`(^|!)${t}`,"g")};class RequestShortener{constructor(e){e=c(e);if(i.test(e)){e=e.substr(0,e.length-1)}if(e){this.currentDirectoryRegExp=d(e)}const t=n.dirname(e);const s=i.test(t);const r=s?t.substr(0,t.length-1):t;if(r&&r!==e){this.parentDirectoryRegExp=d(`${r}/`)}if(__dirname.length>=2){const e=c(n.join(__dirname,".."));const t=this.currentDirectoryRegExp&&this.currentDirectoryRegExp.test(e);this.buildinsAsModule=t;this.buildinsRegExp=d(e)}this.cache=new Map}shorten(e){if(!e)return e;const t=this.cache.get(e);if(t!==undefined){return t}let s=c(e);if(this.buildinsAsModule&&this.buildinsRegExp){s=s.replace(this.buildinsRegExp,"!(webpack)")}if(this.currentDirectoryRegExp){s=s.replace(this.currentDirectoryRegExp,"!.")}if(this.parentDirectoryRegExp){s=s.replace(this.parentDirectoryRegExp,"!../")}if(!this.buildinsAsModule&&this.buildinsRegExp){s=s.replace(this.buildinsRegExp,"!(webpack)")}s=s.replace(l,"$1");s=s.replace(a,"");s=s.replace(u," = ");this.cache.set(e,s);return s}}e.exports=RequestShortener},155:function(e){e.exports={name:"webpack",version:"4.44.1",author:"Tobias Koppers @sokra",description:"Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",license:"MIT",dependencies:{"@webassemblyjs/ast":"1.9.0","@webassemblyjs/helper-module-context":"1.9.0","@webassemblyjs/wasm-edit":"1.9.0","@webassemblyjs/wasm-parser":"1.9.0",acorn:"^6.4.1",ajv:"^6.10.2","ajv-keywords":"^3.4.1","chrome-trace-event":"^1.0.2","enhanced-resolve":"^4.3.0","eslint-scope":"^4.0.3","json-parse-better-errors":"^1.0.2","loader-runner":"^2.4.0","loader-utils":"^1.2.3","memory-fs":"^0.4.1",micromatch:"^3.1.10",mkdirp:"^0.5.3","neo-async":"^2.6.1","node-libs-browser":"^2.2.1","schema-utils":"^1.0.0",tapable:"^1.1.3","terser-webpack-plugin":"^1.4.3",watchpack:"^1.7.4","webpack-sources":"^1.4.1"},peerDependenciesMeta:{"webpack-cli":{optional:true},"webpack-command":{optional:true}},devDependencies:{"@babel/core":"^7.7.2","@types/node":"^10.12.21","@types/tapable":"^1.0.1","@types/webpack-sources":"^0.1.4","@yarnpkg/lockfile":"^1.1.0","babel-loader":"^8.0.6",benchmark:"^2.1.1","bundle-loader":"~0.5.0","coffee-loader":"^0.9.0",coffeescript:"^2.3.2",coveralls:"^3.0.2","css-loader":"^2.1.0","es6-promise-polyfill":"^1.1.1",eslint:"^5.8.0","eslint-config-prettier":"^4.0.0","eslint-plugin-jest":"^22.2.2","eslint-plugin-jsdoc":"^15.3.2","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0",express:"~4.16.4","file-loader":"^3.0.1",glob:"^7.1.3",husky:"^1.1.3","i18n-webpack-plugin":"^1.0.0",istanbul:"^0.4.5",jest:"^24.9.0","jest-junit":"^8.0.0","json-loader":"^0.5.7","json-schema-to-typescript":"^6.0.1",less:"^3.9.0","less-loader":"^4.0.3","lint-staged":"^8.0.4",lodash:"^4.17.4",prettier:"^1.14.3",pug:"^2.0.4","pug-loader":"^2.4.0","raw-loader":"^1.0.0",react:"^16.8.0","react-dom":"^16.8.0",rimraf:"^2.6.2","script-loader":"~0.7.0","simple-git":"^1.65.0","strip-ansi":"^5.2.0","style-loader":"^0.23.1",typescript:"^3.0.0-rc","url-loader":"^1.1.2","val-loader":"^1.0.2","vm-browserify":"~1.1.0","wast-loader":"^1.5.5","webpack-dev-middleware":"^3.5.1","webassembly-feature":"1.3.0","worker-loader":"^2.0.0",xxhashjs:"^0.2.1"},engines:{node:">=6.11.5"},repository:{type:"git",url:"https://github.com/webpack/webpack.git"},funding:{type:"opencollective",url:"https://opencollective.com/webpack"},homepage:"https://github.com/webpack/webpack",main:"lib/webpack.js",web:"lib/webpack.web.js",bin:"./bin/webpack.js",files:["lib/","bin/","buildin/","declarations/","hot/","web_modules/","schemas/","SECURITY.md"],scripts:{setup:"node ./setup/setup.js",test:"node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest","test:update-snapshots":"yarn jest -u","test:integration":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.test.js"',"test:basic":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js"',"test:unit":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.unittest.js"',"travis:integration":"yarn cover:integration --ci $JEST","travis:basic":"yarn cover:basic --ci $JEST","travis:lintunit":"yarn lint && yarn cover:unit --ci $JEST","travis:benchmark":"yarn benchmark --ci","appveyor:integration":"yarn cover:integration --ci %JEST%","appveyor:unit":"yarn cover:unit --ci %JEST%","appveyor:benchmark":"yarn benchmark --ci","build:examples":"cd examples && node buildAll.js",pretest:"yarn lint",prelint:"yarn setup",lint:"yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint","code-lint":"eslint . --ext '.js' --cache","type-lint":"tsc --pretty","special-lint":"node tooling/inherit-types && node tooling/format-schemas && node tooling/compile-to-definitions","special-lint-fix":"node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/compile-to-definitions --write",fix:"yarn code-lint --fix && yarn special-lint-fix",pretty:'prettier --loglevel warn --write "*.{ts,js,json,yml,yaml}" "{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.{js,json}" "test/*.js" "test/helpers/*.js" "test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js" "examples/**/webpack.config.js"',"jest-lint":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.lint.js" --no-verbose',benchmark:'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.benchmark.js" --runInBand',cover:"yarn cover:all && yarn cover:report","cover:all":"node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --coverage","cover:basic":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js" --coverage',"cover:integration":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.test.js" --coverage',"cover:unit":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.unittest.js" --coverage',"cover:report":"istanbul report"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{"*.js|{lib,setup,bin,hot,buildin,tooling,schemas}/**/*.js|test/*.js|{test,examples}/**/webpack.config.js}":["eslint --cache"]},jest:{forceExit:true,setupFilesAfterEnv:["/test/setupTestFramework.js"],testMatch:["/test/*.test.js","/test/*.unittest.js"],watchPathIgnorePatterns:["/.git","/node_modules","/test/js","/test/browsertest/js","/test/fixtures/temp-cache-fixture","/test/fixtures/temp-","/benchmark","/examples/*/dist","/coverage","/.eslintcache"],modulePathIgnorePatterns:["/.git","/node_modules/webpack/node_modules","/test/js","/test/browsertest/js","/test/fixtures/temp-cache-fixture","/test/fixtures/temp-","/benchmark","/examples/*/dist","/coverage","/.eslintcache"],transformIgnorePatterns:[""],coverageDirectory:"/coverage",coveragePathIgnorePatterns:["\\.runtime\\.js$","/test","/schemas","/node_modules"],testEnvironment:"node",coverageReporters:["json"]}}},157:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesWaterfallHookCodeFactory extends r{content({onError:e,onResult:t,onDone:s}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onResult:(e,t,s)=>{let n="";n+=`if(${t} !== undefined) {\n`;n+=`${this._args[0]} = ${t};\n`;n+=`}\n`;n+=s();return n},onDone:()=>t(this._args[0])})}}const o=new AsyncSeriesWaterfallHookCodeFactory;class AsyncSeriesWaterfallHook extends n{constructor(e){super(e);if(e.length<1)throw new Error("Waterfall hooks must have at least one argument")}compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesWaterfallHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesWaterfallHook},174:function(e,t,s){"use strict";const n=s(773);class Entrypoint extends n{constructor(e){super(e);this.runtimeChunk=undefined}isInitial(){return true}setRuntimeChunk(e){this.runtimeChunk=e}getRuntimeChunk(){return this.runtimeChunk||this.chunks[0]}replaceChunk(e,t){if(this.runtimeChunk===e)this.runtimeChunk=t;return super.replaceChunk(e,t)}}e.exports=Entrypoint},207:function(e,t,s){"use strict";const n=s(446);class ChunkRenderError extends n{constructor(e,t,s){super();this.name="ChunkRenderError";this.error=s;this.message=s.message;this.details=s.stack;this.file=t;this.chunk=e;Error.captureStackTrace(this,this.constructor)}}e.exports=ChunkRenderError},216:function(e,t,s){"use strict";const{Tapable:n,SyncWaterfallHook:r,SyncHook:o}=s(75);e.exports=class ModuleTemplate extends n{constructor(e,t){super();this.runtimeTemplate=e;this.type=t;this.hooks={content:new r(["source","module","options","dependencyTemplates"]),module:new r(["source","module","options","dependencyTemplates"]),render:new r(["source","module","options","dependencyTemplates"]),package:new r(["source","module","options","dependencyTemplates"]),hash:new o(["hash"])}}render(e,t,s){try{const n=e.source(t,this.runtimeTemplate,this.type);const r=this.hooks.content.call(n,e,s,t);const o=this.hooks.module.call(r,e,s,t);const i=this.hooks.render.call(o,e,s,t);return this.hooks.package.call(i,e,s,t)}catch(t){t.message=`${e.identifier()}\n${t.message}`;throw t}}updateHash(e){e.update("1");this.hooks.hash.call(e)}}},225:function(e,t){"use strict";const s=Object.freeze({error:"error",warn:"warn",info:"info",log:"log",debug:"debug",trace:"trace",group:"group",groupCollapsed:"groupCollapsed",groupEnd:"groupEnd",profile:"profile",profileEnd:"profileEnd",time:"time",clear:"clear",status:"status"});t.LogType=s;const n=Symbol("webpack logger raw log method");const r=Symbol("webpack logger times");class WebpackLogger{constructor(e){this[n]=e}error(...e){this[n](s.error,e)}warn(...e){this[n](s.warn,e)}info(...e){this[n](s.info,e)}log(...e){this[n](s.log,e)}debug(...e){this[n](s.debug,e)}assert(e,...t){if(!e){this[n](s.error,t)}}trace(){this[n](s.trace,["Trace"])}clear(){this[n](s.clear)}status(...e){this[n](s.status,e)}group(...e){this[n](s.group,e)}groupCollapsed(...e){this[n](s.groupCollapsed,e)}groupEnd(...e){this[n](s.groupEnd,e)}profile(e){this[n](s.profile,[e])}profileEnd(e){this[n](s.profileEnd,[e])}time(e){this[r]=this[r]||new Map;this[r].set(e,process.hrtime())}timeLog(e){const t=this[r]&&this[r].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeLog()`)}const o=process.hrtime(t);this[n](s.time,[e,...o])}timeEnd(e){const t=this[r]&&this[r].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeEnd()`)}const o=process.hrtime(t);this[r].delete(e);this[n](s.time,[e,...o])}}t.Logger=WebpackLogger},230:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncParallelBailHookCodeFactory extends r{content({onError:e,onResult:t,onDone:s}){let n="";n+=`var _results = new Array(${this.options.taps.length});\n`;n+="var _checkDone = () => {\n";n+="for(var i = 0; i < _results.length; i++) {\n";n+="var item = _results[i];\n";n+="if(item === undefined) return false;\n";n+="if(item.result !== undefined) {\n";n+=t("item.result");n+="return true;\n";n+="}\n";n+="if(item.error) {\n";n+=e("item.error");n+="return true;\n";n+="}\n";n+="}\n";n+="return false;\n";n+="}\n";n+=this.callTapsParallel({onError:(e,t,s,n)=>{let r="";r+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {\n`;r+=n(true);r+="} else {\n";r+=s();r+="}\n";return r},onResult:(e,t,s,n)=>{let r="";r+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {\n`;r+=n(true);r+="} else {\n";r+=s();r+="}\n";return r},onTap:(e,t,s,n)=>{let r="";if(e>0){r+=`if(${e} >= _results.length) {\n`;r+=s();r+="} else {\n"}r+=t();if(e>0)r+="}\n";return r},onDone:s});return n}}const o=new AsyncParallelBailHookCodeFactory;class AsyncParallelBailHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncParallelBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncParallelBailHook},240:function(e){e.exports=require("find-cache-dir")},241:function(e){e.exports=require("next/dist/compiled/source-map")},335:function(e,t){const s=(e,t)=>{if(e.pushChunk(t)){t.addGroup(e)}};const n=(e,t)=>{if(e.addChild(t)){t.addParent(e)}};const r=(e,t)=>{if(t.addChunk(e)){e.addModule(t)}};const o=(e,t)=>{e.removeModule(t);t.removeChunk(e)};const i=(e,t)=>{if(t.addBlock(e)){e.chunkGroup=t}};t.connectChunkGroupAndChunk=s;t.connectChunkGroupParentAndChild=n;t.connectChunkAndModule=r;t.disconnectChunkAndModule=o;t.connectDependenciesBlockAndChunkGroup=i},343:function(e){e.exports=require("neo-async")},354:function(e,t,s){"use strict";const n=s(521);const r=s(533);class SyncLoopHookCodeFactory extends r{content({onError:e,onDone:t,rethrowIfPossible:s}){return this.callTapsLooping({onError:(t,s)=>e(s),onDone:t,rethrowIfPossible:s})}}const o=new SyncLoopHookCodeFactory;class SyncLoopHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncLoopHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncLoopHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncLoopHook},367:function(e){"use strict";const t=e=>{if(e===null)return"";if(typeof e==="string")return e;if(typeof e==="number")return`${e}`;if(typeof e==="object"){if("line"in e&&"column"in e){return`${e.line}:${e.column}`}else if("line"in e){return`${e.line}:?`}else if("index"in e){return`+${e.index}`}else{return""}}return""};const s=e=>{if(e===null)return"";if(typeof e==="string")return e;if(typeof e==="number")return`${e}`;if(typeof e==="object"){if("start"in e&&e.start&&"end"in e&&e.end){if(typeof e.start==="object"&&typeof e.start.line==="number"&&typeof e.end==="object"&&typeof e.end.line==="number"&&typeof e.end.column==="number"&&e.start.line===e.end.line){return`${t(e.start)}-${e.end.column}`}else{return`${t(e.start)}-${t(e.end)}`}}if("start"in e&&e.start){return t(e.start)}if("name"in e&&"index"in e){return`${e.name}[${e.index}]`}if("name"in e){return e.name}return t(e)}return""};e.exports=s},393:function(e){"use strict";class Semaphore{constructor(e){this.available=e;this.waiters=[];this._continue=this._continue.bind(this)}acquire(e){if(this.available>0){this.available--;e()}else{this.waiters.push(e)}}release(){this.available++;if(this.waiters.length>0){process.nextTick(this._continue)}}_continue(){if(this.available>0){if(this.waiters.length>0){this.available--;const e=this.waiters.pop();e()}}}}e.exports=Semaphore},408:function(e,t,s){"use strict";const n=s(966);const r=s(591);const{Tapable:o,SyncWaterfallHook:i,SyncHook:a}=s(75);e.exports=class HotUpdateChunkTemplate extends o{constructor(e){super();this.outputOptions=e||{};this.hooks={modules:new i(["source","modules","removedModules","moduleTemplate","dependencyTemplates"]),render:new i(["source","modules","removedModules","hash","id","moduleTemplate","dependencyTemplates"]),hash:new a(["hash"])}}render(e,t,s,o,i,a){const l=new r;l.id=e;l.setModules(t);l.removedModules=s;const u=n.renderChunkModules(l,e=>typeof e.source==="function",i,a);const c=this.hooks.modules.call(u,t,s,i,a);const d=this.hooks.render.call(c,t,s,o,e,i,a);return d}updateHash(e){e.update("HotUpdateChunkTemplate");e.update("1");this.hooks.hash.call(e)}}},417:function(e){e.exports=require("crypto")},432:function(e){e.exports=require("webpack/lib/RequestShortener")},442:function(e,t,s){"use strict";const n=s(521);const r=s(533);class SyncHookCodeFactory extends r{content({onError:e,onDone:t,rethrowIfPossible:s}){return this.callTapsSeries({onError:(t,s)=>e(s),onDone:t,rethrowIfPossible:s})}}const o=new SyncHookCodeFactory;class SyncHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncHook},446:function(e,t,s){"use strict";const n=s(669).inspect.custom;class WebpackError extends Error{constructor(e){super(e);this.details=undefined;this.missing=undefined;this.origin=undefined;this.dependencies=undefined;this.module=undefined;Error.captureStackTrace(this,this.constructor)}[n](){return this.stack+(this.details?`\n${this.details}`:"")}}e.exports=WebpackError},463:function(e){"use strict";e.exports=((e,t)=>{if(typeof e==="string"){if(typeof t==="string"){if(et)return 1;return 0}else if(typeof t==="object"){return 1}else{return 0}}else if(typeof e==="object"){if(typeof t==="string"){return-1}else if(typeof t==="object"){if("start"in e&&"start"in t){const s=e.start;const n=t.start;if(s.linen.line)return 1;if(s.columnn.column)return 1}if("name"in e&&"name"in t){if(e.namet.name)return 1}if("index"in e&&"index"in t){if(e.indext.index)return 1}return 0}else{return 0}}})},464:function(e,t,s){"use strict";const n=s(521);class MultiHook{constructor(e){this.hooks=e}tap(e,t){for(const s of this.hooks){s.tap(e,t)}}tapAsync(e,t){for(const s of this.hooks){s.tapAsync(e,t)}}tapPromise(e,t){for(const s of this.hooks){s.tapPromise(e,t)}}isUsed(){for(const e of this.hooks){if(e.isUsed())return true}return false}intercept(e){for(const t of this.hooks){t.intercept(e)}}withOptions(e){return new MultiHook(this.hooks.map(t=>t.withOptions(e)))}}e.exports=MultiHook},470:function(e,t,s){"use strict";const n=s(589);e.exports=n.default},475:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Cache{constructor(e,t){this.cache=e.getCache("TerserWebpackPlugin")}isEnabled(){return true}async get(e){e.cacheIdent=e.cacheIdent||`${e.name}`;e.cacheETag=e.cacheETag||this.cache.getLazyHashedEtag(e.assetSource);return this.cache.getPromise(e.cacheIdent,e.cacheETag)}async store(e,t){return this.cache.storePromise(e.cacheIdent,e.cacheETag,t)}}t.default=Cache},486:function(e,t,s){"use strict";const n=s(847);const r=1e3;class Hash{update(e,t){throw new n}digest(e){throw new n}}t.Hash=Hash;class BulkUpdateDecorator extends Hash{constructor(e){super();this.hash=e;this.buffer=""}update(e,t){if(t!==undefined||typeof e!=="string"||e.length>r){if(this.buffer.length>0){this.hash.update(this.buffer);this.buffer=""}this.hash.update(e,t)}else{this.buffer+=e;if(this.buffer.length>r){this.hash.update(this.buffer);this.buffer=""}}return this}digest(e){if(this.buffer.length>0){this.hash.update(this.buffer)}var t=this.hash.digest(e);return typeof t==="string"?t:t.toString()}}class DebugHash extends Hash{constructor(){super();this.string=""}update(e,t){if(typeof e!=="string")e=e.toString("utf-8");this.string+=e;return this}digest(e){return this.string.replace(/[^a-z0-9]+/gi,e=>Buffer.from(e).toString("hex"))}}e.exports=(e=>{if(typeof e==="function"){return new BulkUpdateDecorator(new e)}switch(e){case"debug":return new DebugHash;default:return new BulkUpdateDecorator(s(417).createHash(e))}})},496:function(e){"use strict";class DependencyReference{constructor(e,t,s=false,n=NaN){this.module=e;this.importedNames=t;this.weak=!!s;this.order=n}static sort(e){const t=new WeakMap;let s=0;for(const n of e){t.set(n,s++)}return e.sort((e,s)=>{const n=e.order;const r=s.order;if(isNaN(n)){if(!isNaN(r)){return 1}}else{if(isNaN(r)){return-1}if(n!==r){return n-r}}const o=t.get(e);const i=t.get(s);return o-i})}}e.exports=DependencyReference},499:function(e){"use strict";class HookMap{constructor(e){this._map=new Map;this._factory=e;this._interceptors=[]}get(e){return this._map.get(e)}for(e){const t=this.get(e);if(t!==undefined){return t}let s=this._factory(e);const n=this._interceptors;for(let t=0;tt},e))}tap(e,t,s){return this.for(e).tap(t,s)}tapAsync(e,t,s){return this.for(e).tapAsync(t,s)}tapPromise(e,t,s){return this.for(e).tapPromise(t,s)}}e.exports=HookMap},503:function(e,t,s){"use strict";const{ConcatSource:n,OriginalSource:r,PrefixSource:o,RawSource:i}=s(745);const{Tapable:a,SyncWaterfallHook:l,SyncHook:u,SyncBailHook:c}=s(75);const d=s(966);e.exports=class MainTemplate extends a{constructor(e){super();this.outputOptions=e||{};this.hooks={renderManifest:new l(["result","options"]),modules:new l(["modules","chunk","hash","moduleTemplate","dependencyTemplates"]),moduleObj:new l(["source","chunk","hash","moduleIdExpression"]),requireEnsure:new l(["source","chunk","hash","chunkIdExpression"]),bootstrap:new l(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),localVars:new l(["source","chunk","hash"]),require:new l(["source","chunk","hash"]),requireExtensions:new l(["source","chunk","hash"]),beforeStartup:new l(["source","chunk","hash"]),startup:new l(["source","chunk","hash"]),afterStartup:new l(["source","chunk","hash"]),render:new l(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),renderWithEntry:new l(["source","chunk","hash"]),moduleRequire:new l(["source","chunk","hash","moduleIdExpression"]),addModule:new l(["source","chunk","hash","moduleIdExpression","moduleExpression"]),currentHash:new l(["source","requestedLength"]),assetPath:new l(["path","options","assetInfo"]),hash:new u(["hash"]),hashForChunk:new u(["hash","chunk"]),globalHashPaths:new l(["paths"]),globalHash:new c(["chunk","paths"]),hotBootstrap:new l(["source","chunk","hash"])};this.hooks.startup.tap("MainTemplate",(e,t,s)=>{const n=[];if(t.entryModule){n.push("// Load entry module and return exports");n.push(`return ${this.renderRequireFunctionForModule(s,t,JSON.stringify(t.entryModule.id))}(${this.requireFn}.s = ${JSON.stringify(t.entryModule.id)});`)}return d.asString(n)});this.hooks.render.tap("MainTemplate",(e,t,s,r,a)=>{const l=new n;l.add("/******/ (function(modules) { // webpackBootstrap\n");l.add(new o("/******/",e));l.add("/******/ })\n");l.add("/************************************************************************/\n");l.add("/******/ (");l.add(this.hooks.modules.call(new i(""),t,s,r,a));l.add(")");return l});this.hooks.localVars.tap("MainTemplate",(e,t,s)=>{return d.asString([e,"// The module cache","var installedModules = {};"])});this.hooks.require.tap("MainTemplate",(t,s,n)=>{return d.asString([t,"// Check if module is in cache","if(installedModules[moduleId]) {",d.indent("return installedModules[moduleId].exports;"),"}","// Create a new module (and put it into the cache)","var module = installedModules[moduleId] = {",d.indent(this.hooks.moduleObj.call("",s,n,"moduleId")),"};","",d.asString(e.strictModuleExceptionHandling?["// Execute the module function","var threw = true;","try {",d.indent([`modules[moduleId].call(module.exports, module, module.exports, ${this.renderRequireFunctionForModule(n,s,"moduleId")});`,"threw = false;"]),"} finally {",d.indent(["if(threw) delete installedModules[moduleId];"]),"}"]:["// Execute the module function",`modules[moduleId].call(module.exports, module, module.exports, ${this.renderRequireFunctionForModule(n,s,"moduleId")});`]),"","// Flag the module as loaded","module.l = true;","","// Return the exports of the module","return module.exports;"])});this.hooks.moduleObj.tap("MainTemplate",(e,t,s,n)=>{return d.asString(["i: moduleId,","l: false,","exports: {}"])});this.hooks.requireExtensions.tap("MainTemplate",(e,t,s)=>{const n=[];const r=t.getChunkMaps();if(Object.keys(r.hash).length){n.push("// This file contains only the entry chunk.");n.push("// The chunk loading function for additional chunks");n.push(`${this.requireFn}.e = function requireEnsure(chunkId) {`);n.push(d.indent("var promises = [];"));n.push(d.indent(this.hooks.requireEnsure.call("",t,s,"chunkId")));n.push(d.indent("return Promise.all(promises);"));n.push("};")}else if(t.hasModuleInGraph(e=>e.blocks.some(e=>e.chunkGroup&&e.chunkGroup.chunks.length>0))){n.push("// The chunk loading function for additional chunks");n.push("// Since all referenced chunks are already included");n.push("// in this file, this function is empty here.");n.push(`${this.requireFn}.e = function requireEnsure() {`);n.push(d.indent("return Promise.resolve();"));n.push("};")}n.push("");n.push("// expose the modules object (__webpack_modules__)");n.push(`${this.requireFn}.m = modules;`);n.push("");n.push("// expose the module cache");n.push(`${this.requireFn}.c = installedModules;`);n.push("");n.push("// define getter function for harmony exports");n.push(`${this.requireFn}.d = function(exports, name, getter) {`);n.push(d.indent([`if(!${this.requireFn}.o(exports, name)) {`,d.indent(["Object.defineProperty(exports, name, { enumerable: true, get: getter });"]),"}"]));n.push("};");n.push("");n.push("// define __esModule on exports");n.push(`${this.requireFn}.r = function(exports) {`);n.push(d.indent(["if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {",d.indent(["Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });"]),"}","Object.defineProperty(exports, '__esModule', { value: true });"]));n.push("};");n.push("");n.push("// create a fake namespace object");n.push("// mode & 1: value is a module id, require it");n.push("// mode & 2: merge all properties of value into the ns");n.push("// mode & 4: return value when already ns object");n.push("// mode & 8|1: behave like require");n.push(`${this.requireFn}.t = function(value, mode) {`);n.push(d.indent([`if(mode & 1) value = ${this.requireFn}(value);`,`if(mode & 8) return value;`,"if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;","var ns = Object.create(null);",`${this.requireFn}.r(ns);`,"Object.defineProperty(ns, 'default', { enumerable: true, value: value });","if(mode & 2 && typeof value != 'string') for(var key in value) "+`${this.requireFn}.d(ns, key, function(key) { `+"return value[key]; "+"}.bind(null, key));","return ns;"]));n.push("};");n.push("");n.push("// getDefaultExport function for compatibility with non-harmony modules");n.push(this.requireFn+".n = function(module) {");n.push(d.indent(["var getter = module && module.__esModule ?",d.indent(["function getDefault() { return module['default']; } :","function getModuleExports() { return module; };"]),`${this.requireFn}.d(getter, 'a', getter);`,"return getter;"]));n.push("};");n.push("");n.push("// Object.prototype.hasOwnProperty.call");n.push(`${this.requireFn}.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };`);const o=this.getPublicPath({hash:s});n.push("");n.push("// __webpack_public_path__");n.push(`${this.requireFn}.p = ${JSON.stringify(o)};`);return d.asString(n)});this.requireFn="__webpack_require__"}getRenderManifest(e){const t=[];this.hooks.renderManifest.call(t,e);return t}renderBootstrap(e,t,s,n){const r=[];r.push(this.hooks.bootstrap.call("",t,e,s,n));r.push(this.hooks.localVars.call("",t,e));r.push("");r.push("// The require function");r.push(`function ${this.requireFn}(moduleId) {`);r.push(d.indent(this.hooks.require.call("",t,e)));r.push("}");r.push("");r.push(d.asString(this.hooks.requireExtensions.call("",t,e)));r.push("");r.push(d.asString(this.hooks.beforeStartup.call("",t,e)));const o=d.asString(this.hooks.afterStartup.call("",t,e));if(o){r.push("var startupResult = (function() {")}r.push(d.asString(this.hooks.startup.call("",t,e)));if(o){r.push("})();");r.push(o);r.push("return startupResult;")}return r}render(e,t,s,o){const i=this.renderBootstrap(e,t,s,o);let a=this.hooks.render.call(new r(d.prefix(i," \t")+"\n","webpack/bootstrap"),t,e,s,o);if(t.hasEntryModule()){a=this.hooks.renderWithEntry.call(a,t,e)}if(!a){throw new Error("Compiler error: MainTemplate plugin 'render' should return something")}t.rendered=true;return new n(a,";")}renderRequireFunctionForModule(e,t,s){return this.hooks.moduleRequire.call(this.requireFn,t,e,s)}renderAddModule(e,t,s,n){return this.hooks.addModule.call(`modules[${s}] = ${n};`,t,e,s,n)}renderCurrentHashCode(e,t){t=t||Infinity;return this.hooks.currentHash.call(JSON.stringify(e.substr(0,t)),t)}getPublicPath(e){return this.hooks.assetPath.call(this.outputOptions.publicPath||"",e)}getAssetPath(e,t){return this.hooks.assetPath.call(e,t)}getAssetPathWithInfo(e,t){const s={};const n=this.hooks.assetPath.call(e,t,s);return{path:n,info:s}}updateHash(e){e.update("maintemplate");e.update("3");this.hooks.hash.call(e)}updateHashForChunk(e,t,s,n){this.updateHash(e);this.hooks.hashForChunk.call(e,t);for(const r of this.renderBootstrap("0000",t,s,n)){e.update(r)}}useChunkHash(e){const t=this.hooks.globalHashPaths.call([]);return!this.hooks.globalHash.call(e,t)}}},510:function(e,t,s){"use strict";const n=s(43);const r=s(335);const o=(e,t)=>{return t.size-e.size};const i=e=>{const t=new Map;const s=t=>{const s=e.getDependencyReference(r,t);if(!s){return}const n=s.module;if(!n){return}if(s.weak){return}a.add(n)};const n=e=>{l.push(e);i.push(e)};let r;let o;let i;let a;let l;for(const u of e.modules){i=[u];r=u;while(i.length>0){o=i.pop();a=new Set;l=[];if(o.variables){for(const e of o.variables){for(const t of e.dependencies)s(t)}}if(o.dependencies){for(const e of o.dependencies)s(e)}if(o.blocks){for(const e of o.blocks)n(e)}const e={modules:a,blocks:l};t.set(o,e)}}return t};const a=(e,t,s,r,a,l)=>{const u=e.getLogger("webpack.buildChunkGraph.visitModules");const{namedChunkGroups:c}=e;u.time("prepare");const d=i(e);const h=new Map;for(const e of t){h.set(e,{index:0,index2:0})}let f=0;let p=0;const m=new Map;const g=0;const y=1;const k=2;const b=3;const w=(e,t)=>{for(const s of t.chunks){const n=s.entryModule;e.push({action:y,block:n,module:n,chunk:s,chunkGroup:t})}s.set(t,{chunkGroup:t,minAvailableModules:new Set,minAvailableModulesOwned:true,availableModulesToBeMerged:[],skippedItems:[],resultingAvailableModules:undefined,children:undefined});return e};let _=t.reduce(w,[]).reverse();const v=new Map;const x=new Set;let $=[];u.timeEnd("prepare");let E;let M;let O;let A;let S;let C;const j=t=>{let s=m.get(t);if(s===undefined){s=c.get(t.chunkName);if(s&&s.isInitial()){e.errors.push(new n(t.chunkName,E,t.loc));s=O}else{s=e.addChunkInGroup(t.groupOptions||t.chunkName,E,t.loc,t.request);h.set(s,{index:0,index2:0});m.set(t,s);l.add(s)}}else{if(s.addOptions)s.addOptions(t.groupOptions);s.addOrigin(E,t.loc,t.request)}let o=r.get(O);if(!o)r.set(O,o=[]);o.push({block:t,chunkGroup:s});let i=v.get(O);if(i===undefined){i=new Set;v.set(O,i)}i.add(s);$.push({action:k,block:t,module:E,chunk:s.chunks[0],chunkGroup:s})};while(_.length){u.time("visiting");while(_.length){const e=_.pop();E=e.module;A=e.block;M=e.chunk;if(O!==e.chunkGroup){O=e.chunkGroup;const t=s.get(O);S=t.minAvailableModules;C=t.skippedItems}switch(e.action){case g:{if(S.has(E)){C.push(e);break}if(M.addModule(E)){E.addChunk(M)}else{break}}case y:{if(O!==undefined){const e=O.getModuleIndex(E);if(e===undefined){O.setModuleIndex(E,h.get(O).index++)}}if(E.index===null){E.index=f++}_.push({action:b,block:A,module:E,chunk:M,chunkGroup:O})}case k:{const e=d.get(A);const t=[];const s=[];for(const n of e.modules){if(M.containsModule(n)){continue}if(S.has(n)){t.push({action:g,block:n,module:n,chunk:M,chunkGroup:O});continue}s.push({action:g,block:n,module:n,chunk:M,chunkGroup:O})}for(let e=t.length-1;e>=0;e--){C.push(t[e])}for(let e=s.length-1;e>=0;e--){_.push(s[e])}for(const t of e.blocks)j(t);if(e.blocks.length>0&&E!==A){a.add(A)}break}case b:{if(O!==undefined){const e=O.getModuleIndex2(E);if(e===undefined){O.setModuleIndex2(E,h.get(O).index2++)}}if(E.index2===null){E.index2=p++}break}}}u.timeEnd("visiting");while(v.size>0){u.time("calculating available modules");for(const[e,t]of v){const n=s.get(e);let r=n.minAvailableModules;const o=new Set(r);for(const t of e.chunks){for(const e of t.modulesIterable){o.add(e)}}n.resultingAvailableModules=o;if(n.children===undefined){n.children=t}else{for(const e of t){n.children.add(e)}}for(const e of t){let t=s.get(e);if(t===undefined){t={chunkGroup:e,minAvailableModules:undefined,minAvailableModulesOwned:undefined,availableModulesToBeMerged:[],skippedItems:[],resultingAvailableModules:undefined,children:undefined};s.set(e,t)}t.availableModulesToBeMerged.push(o);x.add(t)}}v.clear();u.timeEnd("calculating available modules");if(x.size>0){u.time("merging available modules");for(const e of x){const t=e.availableModulesToBeMerged;let s=e.minAvailableModules;if(t.length>1){t.sort(o)}let n=false;for(const r of t){if(s===undefined){s=r;e.minAvailableModules=s;e.minAvailableModulesOwned=false;n=true}else{if(e.minAvailableModulesOwned){for(const e of s){if(!r.has(e)){s.delete(e);n=true}}}else{for(const t of s){if(!r.has(t)){const o=new Set;const i=s[Symbol.iterator]();let a;while(!(a=i.next()).done){const e=a.value;if(e===t)break;o.add(e)}while(!(a=i.next()).done){const e=a.value;if(r.has(e)){o.add(e)}}s=o;e.minAvailableModulesOwned=true;e.minAvailableModules=o;if(O===e.chunkGroup){S=s}n=true;break}}}}}t.length=0;if(!n)continue;for(const t of e.skippedItems){_.push(t)}e.skippedItems.length=0;if(e.children!==undefined){const t=e.chunkGroup;for(const s of e.children){let e=v.get(t);if(e===undefined){e=new Set;v.set(t,e)}e.add(s)}}}x.clear();u.timeEnd("merging available modules")}}if(_.length===0){const e=_;_=$.reverse();$=e}}};const l=(e,t,s)=>{let n;const o=(e,t)=>{for(const s of e.chunks){for(const e of s.modulesIterable){if(!t.has(e))return false}}return true};const i=t=>{const s=t.chunkGroup;if(e.has(t.block))return true;if(o(s,n)){return false}return true};for(const[e,o]of t){if(o.length===0)continue;const t=s.get(e);n=t.resultingAvailableModules;for(let t=0;t{for(const s of t){if(s.getNumberOfParents()===0){for(const t of s.chunks){const s=e.chunks.indexOf(t);if(s>=0)e.chunks.splice(s,1);t.remove("unconnected")}s.remove("unconnected")}}};const c=(e,t)=>{const s=new Map;const n=new Set;const r=new Map;const o=new Set;a(e,t,r,s,o,n);l(o,s,r);u(e,n)};e.exports=c},521:function(e){"use strict";class Hook{constructor(e){if(!Array.isArray(e))e=[];this._args=e;this.taps=[];this.interceptors=[];this.call=this._call;this.promise=this._promise;this.callAsync=this._callAsync;this._x=undefined}compile(e){throw new Error("Abstract: should be overriden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}tap(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tap(options: Object, fn: function)");e=Object.assign({type:"sync",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tap");e=this._runRegisterInterceptors(e);this._insert(e)}tapAsync(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapAsync(options: Object, fn: function)");e=Object.assign({type:"async",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapAsync");e=this._runRegisterInterceptors(e);this._insert(e)}tapPromise(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapPromise(options: Object, fn: function)");e=Object.assign({type:"promise",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapPromise");e=this._runRegisterInterceptors(e);this._insert(e)}_runRegisterInterceptors(e){for(const t of this.interceptors){if(t.register){const s=t.register(e);if(s!==undefined)e=s}}return e}withOptions(e){const t=t=>Object.assign({},e,typeof t==="string"?{name:t}:t);e=Object.assign({},e,this._withOptions);const s=this._withOptionsBase||this;const n=Object.create(s);n.tapAsync=((e,n)=>s.tapAsync(t(e),n)),n.tap=((e,n)=>s.tap(t(e),n));n.tapPromise=((e,n)=>s.tapPromise(t(e),n));n._withOptions=e;n._withOptionsBase=s;return n}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){this._resetCompilation();this.interceptors.push(Object.assign({},e));if(e.register){for(let t=0;t0){n--;const e=this.taps[n];this.taps[n+1]=e;const r=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0){continue}}if(r>s){continue}n++;break}this.taps[n]=e}}function createCompileDelegate(e,t){return function lazyCompileHook(...s){this[e]=this._createCall(t);return this[e](...s)}}Object.defineProperties(Hook.prototype,{_call:{value:createCompileDelegate("call","sync"),configurable:true,writable:true},_promise:{value:createCompileDelegate("promise","promise"),configurable:true,writable:true},_callAsync:{value:createCompileDelegate("callAsync","async"),configurable:true,writable:true}});e.exports=Hook},533:function(e){"use strict";class HookCodeFactory{constructor(e){this.config=e;this.options=undefined;this._args=undefined}create(e){this.init(e);let t;switch(this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.content({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,resultReturns:true,onDone:()=>"",rethrowIfPossible:true}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.content({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e=false;const s=this.content({onError:t=>{e=true;return`_error(${t});\n`},onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});let n="";n+='"use strict";\n';n+="return new Promise((_resolve, _reject) => {\n";if(e){n+="var _sync = true;\n";n+="function _error(_err) {\n";n+="if(_sync)\n";n+="_resolve(Promise.resolve().then(() => { throw _err; }));\n";n+="else\n";n+="_reject(_err);\n";n+="};\n"}n+=this.header();n+=s;if(e){n+="_sync = false;\n"}n+="});\n";t=new Function(this.args(),n);break}this.deinit();return t}setup(e,t){e._x=t.taps.map(e=>e.fn)}init(e){this.options=e;this._args=e.args.slice()}deinit(){this.options=undefined;this._args=undefined}header(){let e="";if(this.needContext()){e+="var _context = {};\n"}else{e+="var _context;\n"}e+="var _x = this._x;\n";if(this.options.interceptors.length>0){e+="var _taps = this.taps;\n";e+="var _interceptors = this.interceptors;\n"}for(let t=0;t {\n`;else i+=`_err${e} => {\n`;i+=`if(_err${e}) {\n`;i+=t(`_err${e}`);i+="} else {\n";if(s){i+=s(`_result${e}`)}if(n){i+=n()}i+="}\n";i+="}";o+=`_fn${e}(${this.args({before:a.context?"_context":undefined,after:i})});\n`;break;case"promise":o+=`var _hasResult${e} = false;\n`;o+=`var _promise${e} = _fn${e}(${this.args({before:a.context?"_context":undefined})});\n`;o+=`if (!_promise${e} || !_promise${e}.then)\n`;o+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`;o+=`_promise${e}.then(_result${e} => {\n`;o+=`_hasResult${e} = true;\n`;if(s){o+=s(`_result${e}`)}if(n){o+=n()}o+=`}, _err${e} => {\n`;o+=`if(_hasResult${e}) throw _err${e};\n`;o+=t(`_err${e}`);o+="});\n";break}return o}callTapsSeries({onError:e,onResult:t,resultReturns:s,onDone:n,doneReturns:r,rethrowIfPossible:o}){if(this.options.taps.length===0)return n();const i=this.options.taps.findIndex(e=>e.type!=="sync");const a=s||r||false;let l="";let u=n;for(let s=this.options.taps.length-1;s>=0;s--){const r=s;const c=u!==n&&this.options.taps[r].type!=="sync";if(c){l+=`function _next${r}() {\n`;l+=u();l+=`}\n`;u=(()=>`${a?"return ":""}_next${r}();\n`)}const d=u;const h=e=>{if(e)return"";return n()};const f=this.callTap(r,{onError:t=>e(r,t,d,h),onResult:t&&(e=>{return t(r,e,d,h)}),onDone:!t&&d,rethrowIfPossible:o&&(i<0||rf)}l+=u();return l}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:s}){if(this.options.taps.length===0)return t();const n=this.options.taps.every(e=>e.type==="sync");let r="";if(!n){r+="var _looper = () => {\n";r+="var _loopAsync = false;\n"}r+="var _loop;\n";r+="do {\n";r+="_loop = false;\n";for(let e=0;e{let o="";o+=`if(${t} !== undefined) {\n`;o+="_loop = true;\n";if(!n)o+="if(_loopAsync) _looper();\n";o+=r(true);o+=`} else {\n`;o+=s();o+=`}\n`;return o},onDone:t&&(()=>{let e="";e+="if(!_loop) {\n";e+=t();e+="}\n";return e}),rethrowIfPossible:s&&n});r+="} while(_loop);\n";if(!n){r+="_loopAsync = true;\n";r+="};\n";r+="_looper();\n"}return r}callTapsParallel({onError:e,onResult:t,onDone:s,rethrowIfPossible:n,onTap:r=((e,t)=>t())}){if(this.options.taps.length<=1){return this.callTapsSeries({onError:e,onResult:t,onDone:s,rethrowIfPossible:n})}let o="";o+="do {\n";o+=`var _counter = ${this.options.taps.length};\n`;if(s){o+="var _done = () => {\n";o+=s();o+="};\n"}for(let i=0;i{if(s)return"if(--_counter === 0) _done();\n";else return"--_counter;"};const l=e=>{if(e||!s)return"_counter = 0;\n";else return"_counter = 0;\n_done();\n"};o+="if(_counter <= 0) break;\n";o+=r(i,()=>this.callTap(i,{onError:t=>{let s="";s+="if(_counter > 0) {\n";s+=e(i,t,a,l);s+="}\n";return s},onResult:t&&(e=>{let s="";s+="if(_counter > 0) {\n";s+=t(i,e,a,l);s+="}\n";return s}),onDone:!t&&(()=>{return a()}),rethrowIfPossible:n}),a,l)}o+="} while(false);\n";return o}args({before:e,after:t}={}){let s=this._args;if(e)s=[e].concat(s);if(t)s=s.concat(t);if(s.length===0){return""}else{return s.join(", ")}}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}e.exports=HookCodeFactory},542:function(e){"use strict";class SortableSet extends Set{constructor(e,t){super(e);this._sortFn=t;this._lastActiveSortFn=null;this._cache=undefined;this._cacheOrderIndependent=undefined}add(e){this._lastActiveSortFn=null;this._invalidateCache();this._invalidateOrderedCache();super.add(e);return this}delete(e){this._invalidateCache();this._invalidateOrderedCache();return super.delete(e)}clear(){this._invalidateCache();this._invalidateOrderedCache();return super.clear()}sortWith(e){if(this.size<=1||e===this._lastActiveSortFn){return}const t=Array.from(this).sort(e);super.clear();for(let e=0;ee(s),onResult:(e,s,n)=>`if(${s} !== undefined) {\n${t(s)};\n} else {\n${n()}}\n`,resultReturns:s,onDone:n,rethrowIfPossible:r})}}const o=new SyncBailHookCodeFactory;class SyncBailHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncBailHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncBailHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncBailHook},566:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesBailHookCodeFactory extends r{content({onError:e,onResult:t,resultReturns:s,onDone:n}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onResult:(e,s,n)=>`if(${s} !== undefined) {\n${t(s)};\n} else {\n${n()}}\n`,resultReturns:s,onDone:n})}}const o=new AsyncSeriesBailHookCodeFactory;class AsyncSeriesBailHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesBailHook},589:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(s(622));var r=_interopRequireDefault(s(87));var o=s(241);var i=s(745);var a=_interopRequireDefault(s(432));var l=s(78);var u=_interopRequireDefault(s(134));var c=_interopRequireDefault(s(960));var d=_interopRequireDefault(s(751));var h=_interopRequireDefault(s(694));var f=_interopRequireDefault(s(733));var p=_interopRequireDefault(s(641));var m=s(812);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class TerserPlugin{constructor(e={}){(0,u.default)(p.default,e,{name:"Terser Plugin",baseDataPath:"options"});const{minify:t,terserOptions:s={},test:n=/\.m?js(\?.*)?$/i,extractComments:r=true,sourceMap:o,cache:i=true,cacheKeys:a=(e=>e),parallel:l=true,include:c,exclude:d}=e;this.options={test:n,extractComments:r,sourceMap:o,cache:i,cacheKeys:a,parallel:l,include:c,exclude:d,minify:t,terserOptions:s}}static isSourceMap(e){return Boolean(e&&e.version&&e.sources&&Array.isArray(e.sources)&&typeof e.mappings==="string")}static buildError(e,t,s,n){if(e.line){const r=s&&s.originalPositionFor({line:e.line,column:e.col});if(r&&r.source&&n){return new Error(`${t} from Terser\n${e.message} [${n.shorten(r.source)}:${r.line},${r.column}][${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}return new Error(`${t} from Terser\n${e.message} [${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}if(e.stack){return new Error(`${t} from Terser\n${e.stack}`)}return new Error(`${t} from Terser\n${e.message}`)}static isWebpack4(){return l.version[0]==="4"}static getAvailableNumberOfCores(e){const t=r.default.cpus()||{length:1};return e===true?t.length-1:Math.min(Number(e)||0,t.length-1)}static getAsset(e,t){if(e.getAsset){return e.getAsset(t)}if(e.assets[t]){return{name:t,source:e.assets[t],info:{}}}}static emitAsset(e,t,s,n){if(e.emitAsset){e.emitAsset(t,s,n)}e.assets[t]=s}static updateAsset(e,t,s,n){if(e.updateAsset){e.updateAsset(t,s,n)}e.assets[t]=s}*taskGenerator(e,t,r,u){const{info:c,source:h}=TerserPlugin.getAsset(t,u);if(c.minimized){yield false}let f;let p;if(this.options.sourceMap&&h.sourceAndMap){const{source:e,map:s}=h.sourceAndMap();f=e;if(s){if(TerserPlugin.isSourceMap(s)){p=s}else{p=s;t.warnings.push(new Error(`${u} contains invalid source map`))}}}else{f=h.source();p=null}if(Buffer.isBuffer(f)){f=f.toString()}let m=false;if(this.options.extractComments){m=this.options.extractComments.filename||"[file].LICENSE.txt[query]";let e="";let s=u;const n=s.indexOf("?");if(n>=0){e=s.substr(n);s=s.substr(0,n)}const r=s.lastIndexOf("/");const o=r===-1?s:s.substr(r+1);const i={filename:s,basename:o,query:e};m=t.getPath(m,i)}const g=s=>{let{code:l}=s;const{error:d,map:h}=s;const{extractedComments:g}=s;let y=null;if(d&&p&&TerserPlugin.isSourceMap(p)){y=new o.SourceMapConsumer(p)}if(d){t.errors.push(TerserPlugin.buildError(d,u,y,new a.default(e.context)));return}const k=m&&g&&g.length>0;const b=this.options.extractComments.banner!==false;let w;let _;if(k&&b&&l.startsWith("#!")){const e=l.indexOf("\n");_=l.substring(0,e);l=l.substring(e+1)}if(h){w=new i.SourceMapSource(l,u,h,f,p,true)}else{w=new i.RawSource(l)}const v={...c,minimized:true};if(k){let e;v.related={license:m};if(b){e=this.options.extractComments.banner||`For license information please see ${n.default.relative(n.default.dirname(u),m).replace(/\\/g,"/")}`;if(typeof e==="function"){e=e(m)}if(e){w=new i.ConcatSource(_?`${_}\n`:"",`/*! ${e} */\n`,w)}}if(!r[m]){r[m]=new Set}g.forEach(t=>{if(e&&t===`/*! ${e} */`){return}r[m].add(t)});const s=TerserPlugin.getAsset(t,m);if(s){const e=s.source.source();e.replace(/\n$/,"").split("\n\n").forEach(e=>{r[m].add(e)})}}TerserPlugin.updateAsset(t,u,w,v)};const y={name:u,input:f,inputSourceMap:p,commentsFilename:m,extractComments:this.options.extractComments,terserOptions:this.options.terserOptions,minify:this.options.minify,callback:g};if(TerserPlugin.isWebpack4()){const{outputOptions:{hashSalt:e,hashDigest:n,hashDigestLength:r,hashFunction:o}}=t;const i=l.util.createHash(o);if(e){i.update(e)}i.update(f);const a=i.digest(n);if(this.options.cache){const e={terser:d.default.version,"terser-webpack-plugin":s(721).version,"terser-webpack-plugin-options":this.options,nodeVersion:process.version,name:u,contentHash:a.substr(0,r)};y.cacheKeys=this.options.cacheKeys(e,u)}}else{y.assetSource=h}yield y}async runTasks(e,t,n){const r=TerserPlugin.getAvailableNumberOfCores(this.options.parallel);let o=Infinity;let i;if(r>0){const t=Math.min(e.length,r);o=t;i=new f.default(s.ab+"minify.js",{numWorkers:t});const n=i.getStdout();if(n){n.on("data",e=>{return process.stdout.write(e)})}const a=i.getStderr();if(a){a.on("data",e=>{return process.stderr.write(e)})}}const a=(0,h.default)(o);const l=[];for(const s of e){const e=async e=>{let t;try{t=await(i?i.transform((0,c.default)(e)):(0,m.minify)(e))}catch(e){t={error:e}}if(n.isEnabled()&&!t.error){await n.store(e,t)}e.callback(t);return t};l.push(a(async()=>{const r=t(s).next().value;if(!r){return Promise.resolve()}if(n.isEnabled()){let t;try{t=await n.get(r)}catch(t){return e(r)}if(!t){return e(r)}r.callback(t);return Promise.resolve()}return e(r)}))}await Promise.all(l);if(i){await i.end()}}apply(e){const{devtool:t,output:n,plugins:r}=e.options;this.options.sourceMap=typeof this.options.sourceMap==="undefined"?t&&!t.includes("eval")&&!t.includes("cheap")&&(t.includes("source-map")||t.includes("sourcemap"))||r&&r.some(e=>e instanceof l.SourceMapDevToolPlugin&&e.options&&e.options.columns):Boolean(this.options.sourceMap);if(typeof this.options.terserOptions.module==="undefined"&&typeof n.module!=="undefined"){this.options.terserOptions.module=n.module}if(typeof this.options.terserOptions.ecma==="undefined"&&typeof n.ecmaVersion!=="undefined"){this.options.terserOptions.ecma=n.ecmaVersion}const o=l.ModuleFilenameHelpers.matchObject.bind(undefined,this.options);const a=async(t,n)=>{let r;if(TerserPlugin.isWebpack4()){r=[].concat(Array.from(t.additionalChunkAssets||[])).concat(Array.from(n).reduce((e,t)=>e.concat(Array.from(t.files||[])),[])).concat(Object.keys(t.assets)).filter((e,t,s)=>s.indexOf(e)===t).filter(e=>o(e))}else{r=[].concat(Object.keys(n)).filter(e=>o(e))}if(r.length===0){return Promise.resolve()}const a={};const l=this.taskGenerator.bind(this,e,t,a);const u=TerserPlugin.isWebpack4()?s(722).default:s(475).default;const c=new u(t,{cache:this.options.cache});await this.runTasks(r,l,c);Object.keys(a).forEach(e=>{const s=Array.from(a[e]).sort().join("\n\n");TerserPlugin.emitAsset(t,e,new i.RawSource(`${s}\n`))});return Promise.resolve()};const u=this.constructor.name;e.hooks.compilation.tap(u,e=>{if(this.options.sourceMap){e.hooks.buildModule.tap(u,e=>{e.useSourceMap=true})}if(TerserPlugin.isWebpack4()){const{mainTemplate:t,chunkTemplate:s}=e;const n=(0,c.default)({terser:d.default.version,terserOptions:this.options.terserOptions});for(const e of[t,s]){e.hooks.hashForChunk.tap(u,e=>{e.update("TerserPlugin");e.update(n)})}e.hooks.optimizeChunkAssets.tapPromise(u,a.bind(this,e))}else{const t=s(980);const n=l.javascript.JavascriptModulesPlugin.getCompilationHooks(e);const r=(0,c.default)({terser:d.default.version,terserOptions:this.options.terserOptions});n.chunkHash.tap(u,(e,t)=>{t.update("TerserPlugin");t.update(r)});e.hooks.processAssets.tapPromise({name:u,stage:t.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE},a.bind(this,e));e.hooks.statsPrinter.tap(u,e=>{e.hooks.print.for("asset.info.minimized").tap("terser-webpack-plugin",(e,{green:t,formatFlag:s})=>e?t(s("minimized")):undefined)})}})}}var g=TerserPlugin;t.default=g},591:function(e,t,s){"use strict";const n=s(886);class HotUpdateChunk extends n{constructor(){super();this.removedModules=undefined}}e.exports=HotUpdateChunk},622:function(e){e.exports=require("path")},635:function(e){e.exports=require("cacache")},638:function(e,t,s){"use strict";const n=s(446);class EntryModuleNotFoundError extends n{constructor(e){super("Entry module not found: "+e);this.name="EntryModuleNotFoundError";this.details=e.details;this.error=e;Error.captureStackTrace(this,this.constructor)}}e.exports=EntryModuleNotFoundError},641:function(e){e.exports={definitions:{Rule:{description:"Filtering rule as regex or string.",anyOf:[{instanceof:"RegExp",tsType:"RegExp"},{type:"string",minLength:1}]},Rules:{description:"Filtering rules.",anyOf:[{type:"array",items:{description:"A rule condition.",oneOf:[{$ref:"#/definitions/Rule"}]}},{$ref:"#/definitions/Rule"}]}},title:"TerserPluginOptions",type:"object",additionalProperties:false,properties:{test:{description:"Include all modules that pass test assertion.",oneOf:[{$ref:"#/definitions/Rules"}]},include:{description:"Include all modules matching any of these conditions.",oneOf:[{$ref:"#/definitions/Rules"}]},exclude:{description:"Exclude all modules matching any of these conditions.",oneOf:[{$ref:"#/definitions/Rules"}]},cache:{description:"Enable file caching. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",anyOf:[{type:"boolean"},{type:"string"}]},cacheKeys:{description:"Allows you to override default cache keys. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",instanceof:"Function"},parallel:{description:"Use multi-process parallel running to improve the build speed.",anyOf:[{type:"boolean"},{type:"integer"}]},sourceMap:{description:"Enables/Disables generation of source maps.",type:"boolean"},minify:{description:"Allows you to override default minify function.",instanceof:"Function"},terserOptions:{description:"Options for `terser`.",additionalProperties:true,type:"object"},extractComments:{description:"Whether comments shall be extracted to a separate file.",anyOf:[{type:"boolean"},{type:"string"},{instanceof:"RegExp"},{instanceof:"Function"},{additionalProperties:false,properties:{condition:{anyOf:[{type:"boolean"},{type:"string"},{instanceof:"RegExp"},{instanceof:"Function"}]},filename:{anyOf:[{type:"string"},{instanceof:"Function"}]},banner:{anyOf:[{type:"boolean"},{type:"string"},{instanceof:"Function"}]}},type:"object"}]}}}},645:function(e,t,s){"use strict";const n=s(446);class ModuleNotFoundError extends n{constructor(e,t){super("Module not found: "+t);this.name="ModuleNotFoundError";this.details=t.details;this.missing=t.missing;this.module=e;this.error=t;Error.captureStackTrace(this,this.constructor)}}e.exports=ModuleNotFoundError},647:function(e,t,s){"use strict";const n=s(446);e.exports=class ModuleDependencyWarning extends n{constructor(e,t,s){super(t.message);this.name="ModuleDependencyWarning";this.details=t.stack.split("\n").slice(1).join("\n");this.module=e;this.loc=s;this.error=t;this.origin=e.issuer;Error.captureStackTrace(this,this.constructor)}}},656:function(e,t){"use strict";const s=e=>{if(e.length===0)return new Set;if(e.length===1)return new Set(e[0]);let t=Infinity;let s=-1;for(let n=0;n{if(e.sizee(s),onResult:(e,t,s)=>{let n="";n+=`if(${t} !== undefined) {\n`;n+=`${this._args[0]} = ${t};\n`;n+=`}\n`;n+=s();return n},onDone:()=>t(this._args[0]),doneReturns:s,rethrowIfPossible:n})}}const o=new SyncWaterfallHookCodeFactory;class SyncWaterfallHook extends n{constructor(e){super(e);if(e.length<1)throw new Error("Waterfall hooks must have at least one argument")}tapAsync(){throw new Error("tapAsync is not supported on a SyncWaterfallHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncWaterfallHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncWaterfallHook},694:function(e,t,s){"use strict";const n=s(813);const r=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=[];let s=0;const r=()=>{s--;if(t.length>0){t.shift()()}};const o=async(e,t,...o)=>{s++;const i=n(e,...o);t(i);try{await i}catch{}r()};const i=(n,r,...i)=>{t.push(o.bind(null,n,r,...i));(async()=>{await Promise.resolve();if(s0){t.shift()()}})()};const a=(e,...t)=>new Promise(s=>i(e,s,...t));Object.defineProperties(a,{activeCount:{get:()=>s},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}});return a};e.exports=r},696:function(e,t,s){"use strict";const n=s(669);const r=s(463);const o=s(496);class Dependency{constructor(){this.module=null;this.weak=false;this.optional=false;this.loc=undefined}getResourceIdentifier(){return null}getReference(){if(!this.module)return null;return new o(this.module,true,this.weak)}getExports(){return null}getWarnings(){return null}getErrors(){return null}updateHash(e){e.update((this.module&&this.module.id)+"")}disconnect(){this.module=null}}Dependency.compare=n.deprecate((e,t)=>r(e.loc,t.loc),"Dependency.compare is deprecated and will be removed in the next major version");e.exports=Dependency},721:function(e){e.exports={name:"terser-webpack-plugin",version:"4.1.0",description:"Terser plugin for webpack",license:"MIT",repository:"webpack-contrib/terser-webpack-plugin",author:"webpack Contrib Team",homepage:"https://github.com/webpack-contrib/terser-webpack-plugin",bugs:"https://github.com/webpack-contrib/terser-webpack-plugin/issues",funding:{type:"opencollective",url:"https://opencollective.com/webpack"},main:"dist/cjs.js",engines:{node:">= 10.13.0"},scripts:{start:"npm run build -- -w",clean:"del-cli dist",prebuild:"npm run clean",build:"cross-env NODE_ENV=production babel src -d dist --copy-files",commitlint:"commitlint --from=master",security:"npm audit","lint:prettier":"prettier --list-different .","lint:js":"eslint --cache .",lint:'npm-run-all -l -p "lint:**"',"test:only":"cross-env NODE_ENV=test jest","test:watch":"npm run test:only -- --watch","test:coverage":'npm run test:only -- --collectCoverageFrom="src/**/*.js" --coverage',pretest:"npm run lint",test:"npm run test:coverage",prepare:"npm run build",release:"standard-version",defaults:"webpack-defaults"},files:["dist"],peerDependencies:{webpack:"^4.0.0 || ^5.0.0"},dependencies:{cacache:"^15.0.5","find-cache-dir":"^3.3.1","jest-worker":"^26.3.0","p-limit":"^3.0.2","schema-utils":"^2.6.6","serialize-javascript":"^4.0.0","source-map":"^0.6.1",terser:"^5.0.0","webpack-sources":"^1.4.3"},devDependencies:{"@babel/cli":"^7.10.5","@babel/core":"^7.11.1","@babel/preset-env":"^7.11.0","@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.1","@webpack-contrib/defaults":"^6.3.0","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^26.3.0","copy-webpack-plugin":"^6.0.3","cross-env":"^7.0.2",del:"^5.1.0","del-cli":"^3.0.1",eslint:"^7.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.21.2","file-loader":"^6.0.0",husky:"^4.2.5",jest:"^26.3.0","lint-staged":"^10.2.11",memfs:"^3.2.0","npm-run-all":"^4.1.5",prettier:"^2.0.5","standard-version":"^8.0.2","uglify-js":"^3.10.0",webpack:"^4.44.1","worker-loader":"^3.0.1"},keywords:["uglify","uglify-js","uglify-es","terser","webpack","webpack-plugin","minification","compress","compressor","min","minification","minifier","minify","optimize","optimizer"]}},722:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(s(87));var r=_interopRequireDefault(s(635));var o=_interopRequireDefault(s(240));var i=_interopRequireDefault(s(960));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Webpack4Cache{constructor(e,t){this.cacheDir=t.cache===true?Webpack4Cache.getCacheDirectory():t.cache}static getCacheDirectory(){return(0,o.default)({name:"terser-webpack-plugin"})||n.default.tmpdir()}isEnabled(){return Boolean(this.cacheDir)}async get(e){e.cacheIdent=e.cacheIdent||(0,i.default)(e.cacheKeys);const{data:t}=await r.default.get(this.cacheDir,e.cacheIdent);return JSON.parse(t)}async store(e,t){return r.default.put(this.cacheDir,e.cacheIdent,JSON.stringify(t))}}t.default=Webpack4Cache},733:function(e){e.exports=require("jest-worker")},742:function(e,t,s){"use strict";const n=s(696);class ModuleDependency extends n{constructor(e){super();this.request=e;this.userRequest=e}getResourceIdentifier(){return`module${this.request}`}}e.exports=ModuleDependency},743:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesHookCodeFactory extends r{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onDone:t})}}const o=new AsyncSeriesHookCodeFactory;class AsyncSeriesHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesHook},745:function(e){e.exports=require("webpack-sources")},751:function(e){e.exports={name:"terser",description:"JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",homepage:"https://terser.org",author:"Mihai Bazon (http://lisperator.net/)",license:"BSD-2-Clause",version:"5.1.0",engines:{node:">=6.0.0"},maintainers:["Fábio Santos "],repository:"https://github.com/terser/terser",main:"dist/bundle.min.js",type:"module",exports:{".":{import:"./main.js",require:"./dist/bundle.min.js"},"./package":{default:"./package.json"},"./package.json":{default:"./package.json"}},types:"tools/terser.d.ts",bin:{terser:"bin/terser"},files:["bin","dist","lib","tools","LICENSE","README.md","CHANGELOG.md","PATRONS.md","main.js"],dependencies:{commander:"^2.20.0","source-map":"~0.6.1","source-map-support":"~0.5.12"},devDependencies:{"@ls-lint/ls-lint":"^1.9.2",acorn:"^7.4.0",astring:"^1.4.1",eslint:"^7.0.0",eslump:"^2.0.0",esm:"^3.2.25",mocha:"^8.0.0","pre-commit":"^1.2.2",rimraf:"^3.0.0",rollup:"2.0.6",semver:"^7.1.3"},scripts:{test:"node test/compress.js && mocha test/mocha","test:compress":"node test/compress.js","test:mocha":"mocha test/mocha",lint:"eslint lib","lint-fix":"eslint --fix lib","ls-lint":"ls-lint",build:"rimraf dist/bundle* && rollup --config --silent",prepare:"npm run build",postversion:"echo 'Remember to update the changelog!'"},keywords:["uglify","terser","uglify-es","uglify-js","minify","minifier","javascript","ecmascript","es5","es6","es7","es8","es2015","es2016","es2017","async","await"],eslintConfig:{parserOptions:{sourceType:"module",ecmaVersion:"2020"},env:{node:true,browser:true,es2020:true},globals:{describe:false,it:false,require:false,global:false,process:false},rules:{"brace-style":["error","1tbs",{allowSingleLine:true}],quotes:["error","double","avoid-escape"],"no-debugger":"error","no-undef":"error","no-unused-vars":["error",{varsIgnorePattern:"^_$"}],"no-tabs":"error",semi:["error","always"],"no-extra-semi":"error","no-irregular-whitespace":"error","space-before-blocks":["error","always"]}},"pre-commit":["lint-fix","ls-lint","test"]}},773:function(e,t,s){"use strict";const n=s(542);const r=s(463);let o=5e3;const i=e=>Array.from(e);const a=(e,t)=>{if(e.id{const s=e.module?e.module.identifier():"";const n=t.module?t.module.identifier():"";if(sn)return 1;return r(e.loc,t.loc)};class ChunkGroup{constructor(e){if(typeof e==="string"){e={name:e}}else if(!e){e={name:undefined}}this.groupDebugId=o++;this.options=e;this._children=new n(undefined,a);this._parents=new n(undefined,a);this._blocks=new n;this.chunks=[];this.origins=[];this._moduleIndices=new Map;this._moduleIndices2=new Map}addOptions(e){for(const t of Object.keys(e)){if(this.options[t]===undefined){this.options[t]=e[t]}else if(this.options[t]!==e[t]){if(t.endsWith("Order")){this.options[t]=Math.max(this.options[t],e[t])}else{throw new Error(`ChunkGroup.addOptions: No option merge strategy for ${t}`)}}}}get name(){return this.options.name}set name(e){this.options.name=e}get debugId(){return Array.from(this.chunks,e=>e.debugId).join("+")}get id(){return Array.from(this.chunks,e=>e.id).join("+")}unshiftChunk(e){const t=this.chunks.indexOf(e);if(t>0){this.chunks.splice(t,1);this.chunks.unshift(e)}else if(t<0){this.chunks.unshift(e);return true}return false}insertChunk(e,t){const s=this.chunks.indexOf(e);const n=this.chunks.indexOf(t);if(n<0){throw new Error("before chunk not found")}if(s>=0&&s>n){this.chunks.splice(s,1);this.chunks.splice(n,0,e)}else if(s<0){this.chunks.splice(n,0,e);return true}return false}pushChunk(e){const t=this.chunks.indexOf(e);if(t>=0){return false}this.chunks.push(e);return true}replaceChunk(e,t){const s=this.chunks.indexOf(e);if(s<0)return false;const n=this.chunks.indexOf(t);if(n<0){this.chunks[s]=t;return true}if(n=0){this.chunks.splice(t,1);return true}return false}isInitial(){return false}addChild(e){if(this._children.has(e)){return false}this._children.add(e);return true}getChildren(){return this._children.getFromCache(i)}getNumberOfChildren(){return this._children.size}get childrenIterable(){return this._children}removeChild(e){if(!this._children.has(e)){return false}this._children.delete(e);e.removeParent(this);return true}addParent(e){if(!this._parents.has(e)){this._parents.add(e);return true}return false}getParents(){return this._parents.getFromCache(i)}setParents(e){this._parents.clear();for(const t of e){this._parents.add(t)}}getNumberOfParents(){return this._parents.size}hasParent(e){return this._parents.has(e)}get parentsIterable(){return this._parents}removeParent(e){if(this._parents.delete(e)){e.removeChunk(this);return true}return false}getBlocks(){return this._blocks.getFromCache(i)}getNumberOfBlocks(){return this._blocks.size}hasBlock(e){return this._blocks.has(e)}get blocksIterable(){return this._blocks}addBlock(e){if(!this._blocks.has(e)){this._blocks.add(e);return true}return false}addOrigin(e,t,s){this.origins.push({module:e,loc:t,request:s})}containsModule(e){for(const t of this.chunks){if(t.containsModule(e))return true}return false}getFiles(){const e=new Set;for(const t of this.chunks){for(const s of t.files){e.add(s)}}return Array.from(e)}remove(e){for(const e of this._parents){e._children.delete(this);for(const t of this._children){t.addParent(e);e.addChild(t)}}for(const e of this._children){e._parents.delete(this)}for(const e of this._blocks){e.chunkGroup=null}for(const e of this.chunks){e.removeGroup(this)}}sortItems(){this.origins.sort(l);this._parents.sort();this._children.sort()}compareTo(e){if(this.chunks.length>e.chunks.length)return-1;if(this.chunks.length{const s=t.order-e.order;if(s!==0)return s;if(e.group.compareTo){return e.group.compareTo(t.group)}return 0});t[s]=n.map(e=>e.group)}return t}setModuleIndex(e,t){this._moduleIndices.set(e,t)}getModuleIndex(e){return this._moduleIndices.get(e)}setModuleIndex2(e,t){this._moduleIndices2.set(e,t)}getModuleIndex2(e){return this._moduleIndices2.get(e)}checkConstraints(){const e=this;for(const t of e._children){if(!t._parents.has(e)){throw new Error(`checkConstraints: child missing parent ${e.debugId} -> ${t.debugId}`)}}for(const t of e._parents){if(!t._children.has(e)){throw new Error(`checkConstraints: parent missing child ${t.debugId} <- ${e.debugId}`)}}}}e.exports=ChunkGroup},775:function(e){e.exports=require("next/dist/compiled/terser")},788:function(e,t,s){"use strict";const n=s(140);const r=s(122);const o=s(367);const i=s(832);const a=s(463);const{LogType:l}=s(225);const u=(...e)=>{let t=[];t.push(...e);return t.find(e=>e!==undefined)};const c=(e,t)=>{if(typeof e!==typeof t){return typeof et)return 1;return 0};class Stats{constructor(e){this.compilation=e;this.hash=e.hash;this.startTime=undefined;this.endTime=undefined}static filterWarnings(e,t){if(!t){return e}const s=[].concat(t).map(e=>{if(typeof e==="string"){return t=>t.includes(e)}if(e instanceof RegExp){return t=>e.test(t)}if(typeof e==="function"){return e}throw new Error(`Can only filter warnings with Strings or RegExps. (Given: ${e})`)});return e.filter(e=>{return!s.some(t=>t(e))})}formatFilePath(e){const t=/^(\s|\S)*!/;return e.includes("!")?`${e.replace(t,"")} (${e})`:`${e}`}hasWarnings(){return this.compilation.warnings.length>0||this.compilation.children.some(e=>e.getStats().hasWarnings())}hasErrors(){return this.compilation.errors.length>0||this.compilation.children.some(e=>e.getStats().hasErrors())}normalizeFieldKey(e){if(e[0]==="!"){return e.substr(1)}return e}sortOrderRegular(e){if(e[0]==="!"){return false}return true}toJson(e,t){if(typeof e==="boolean"||typeof e==="string"){e=Stats.presetToOptions(e)}else if(!e){e={}}const r=(t,s)=>t!==undefined?t:e.all!==undefined?e.all:s;const d=e=>{if(typeof e==="string"){const t=new RegExp(`[\\\\/]${e.replace(/[-[\]{}()*+?.\\^$|]/g,"\\$&")}([\\\\/]|$|!|\\?)`);return e=>t.test(e)}if(e&&typeof e==="object"&&typeof e.test==="function"){return t=>e.test(t)}if(typeof e==="function"){return e}if(typeof e==="boolean"){return()=>e}};const h=this.compilation;const f=u(e.context,h.compiler.context);const p=h.compiler.context===f?h.requestShortener:new n(f);const m=r(e.performance,true);const g=r(e.hash,true);const y=r(e.env,false);const k=r(e.version,true);const b=r(e.timings,true);const w=r(e.builtAt,true);const _=r(e.assets,true);const v=r(e.entrypoints,true);const x=r(e.chunkGroups,!t);const $=r(e.chunks,!t);const E=r(e.chunkModules,true);const M=r(e.chunkOrigins,!t);const O=r(e.modules,true);const A=r(e.nestedModules,true);const S=r(e.moduleAssets,!t);const C=r(e.depth,!t);const j=r(e.cached,true);const T=r(e.cachedAssets,true);const I=r(e.reasons,!t);const D=r(e.usedExports,!t);const P=r(e.providedExports,!t);const R=r(e.optimizationBailout,!t);const H=r(e.children,true);const z=r(e.source,!t);const q=r(e.moduleTrace,true);const B=r(e.errors,true);const F=r(e.errorDetails,!t);const G=r(e.warnings,true);const N=u(e.warningsFilter,null);const W=r(e.publicPath,!t);const U=r(e.logging,t?"info":true);const L=r(e.loggingTrace,!t);const J=[].concat(u(e.loggingDebug,[])).map(d);const Z=[].concat(u(e.excludeModules,e.exclude,[])).map(d);const K=[].concat(u(e.excludeAssets,[])).map(d);const Q=u(e.maxModules,t?15:Infinity);const X=u(e.modulesSort,"id");const Y=u(e.chunksSort,"id");const V=u(e.assetsSort,"");const ee=r(e.outputPath,!t);if(!j){Z.push((e,t)=>!t.built)}const te=()=>{let e=0;return t=>{if(Z.length>0){const e=p.shorten(t.resource);const s=Z.some(s=>s(e,t));if(s)return false}const s=e{return e=>{if(K.length>0){const t=e.name;const s=K.some(s=>s(t,e));if(s)return false}return T||e.emitted}};const ne=(e,t,s)=>{if(t[e]===null&&s[e]===null)return 0;if(t[e]===null)return 1;if(s[e]===null)return-1;if(t[e]===s[e])return 0;if(typeof t[e]!==typeof s[e])return typeof t[e]{const s=t.reduce((e,t,s)=>{e.set(t,s);return e},new Map);return(t,n)=>{if(e){const s=this.normalizeFieldKey(e);const r=this.sortOrderRegular(e);const o=ne(s,r?t:n,r?n:t);if(o)return o}return s.get(t)-s.get(n)}};const oe=e=>{let t="";if(typeof e==="string"){e={message:e}}if(e.chunk){t+=`chunk ${e.chunk.name||e.chunk.id}${e.chunk.hasRuntime()?" [entry]":e.chunk.canBeInitial()?" [initial]":""}\n`}if(e.file){t+=`${e.file}\n`}if(e.module&&e.module.readableIdentifier&&typeof e.module.readableIdentifier==="function"){t+=this.formatFilePath(e.module.readableIdentifier(p));if(typeof e.loc==="object"){const s=o(e.loc);if(s)t+=` ${s}`}t+="\n"}t+=e.message;if(F&&e.details){t+=`\n${e.details}`}if(F&&e.missing){t+=e.missing.map(e=>`\n[${e}]`).join("")}if(q&&e.origin){t+=`\n @ ${this.formatFilePath(e.origin.readableIdentifier(p))}`;if(typeof e.originLoc==="object"){const s=o(e.originLoc);if(s)t+=` ${s}`}if(e.dependencies){for(const s of e.dependencies){if(!s.loc)continue;if(typeof s.loc==="string")continue;const e=o(s.loc);if(!e)continue;t+=` ${e}`}}let s=e.origin;while(s.issuer){s=s.issuer;t+=`\n @ ${s.readableIdentifier(p)}`}}return t};const ie={errors:h.errors.map(oe),warnings:Stats.filterWarnings(h.warnings.map(oe),N)};Object.defineProperty(ie,"_showWarnings",{value:G,enumerable:false});Object.defineProperty(ie,"_showErrors",{value:B,enumerable:false});if(k){ie.version=s(155).version}if(g)ie.hash=this.hash;if(b&&this.startTime&&this.endTime){ie.time=this.endTime-this.startTime}if(w&&this.endTime){ie.builtAt=this.endTime}if(y&&e._env){ie.env=e._env}if(h.needAdditionalPass){ie.needAdditionalPass=true}if(W){ie.publicPath=this.compilation.mainTemplate.getPublicPath({hash:this.compilation.hash})}if(ee){ie.outputPath=this.compilation.mainTemplate.outputOptions.path}if(_){const e={};const t=h.getAssets().sort((e,t)=>e.name{const r={name:t,size:s.size(),chunks:[],chunkNames:[],info:n,emitted:s.emitted||h.emittedAssets.has(t)};if(m){r.isOverSizeLimit=s.isOverSizeLimit}e[t]=r;return r}).filter(se());ie.filteredAssets=t.length-ie.assets.length;for(const t of h.chunks){for(const s of t.files){if(e[s]){for(const n of t.ids){e[s].chunks.push(n)}if(t.name){e[s].chunkNames.push(t.name);if(ie.assetsByChunkName[t.name]){ie.assetsByChunkName[t.name]=[].concat(ie.assetsByChunkName[t.name]).concat([s])}else{ie.assetsByChunkName[t.name]=s}}}}}ie.assets.sort(re(V,ie.assets))}const ae=e=>{const t={};for(const s of e){const e=s[0];const n=s[1];const r=n.getChildrenByOrders();t[e]={chunks:n.chunks.map(e=>e.id),assets:n.chunks.reduce((e,t)=>e.concat(t.files||[]),[]),children:Object.keys(r).reduce((e,t)=>{const s=r[t];e[t]=s.map(e=>({name:e.name,chunks:e.chunks.map(e=>e.id),assets:e.chunks.reduce((e,t)=>e.concat(t.files||[]),[])}));return e},Object.create(null)),childAssets:Object.keys(r).reduce((e,t)=>{const s=r[t];e[t]=Array.from(s.reduce((e,t)=>{for(const s of t.chunks){for(const t of s.files){e.add(t)}}return e},new Set));return e},Object.create(null))};if(m){t[e].isOverSizeLimit=n.isOverSizeLimit}}return t};if(v){ie.entrypoints=ae(h.entrypoints)}if(x){ie.namedChunkGroups=ae(h.namedChunkGroups)}const le=e=>{const t=[];let s=e;while(s.issuer){t.push(s=s.issuer)}t.reverse();const n={id:e.id,identifier:e.identifier(),name:e.readableIdentifier(p),index:e.index,index2:e.index2,size:e.size(),cacheable:e.buildInfo.cacheable,built:!!e.built,optional:e.optional,prefetched:e.prefetched,chunks:Array.from(e.chunksIterable,e=>e.id),issuer:e.issuer&&e.issuer.identifier(),issuerId:e.issuer&&e.issuer.id,issuerName:e.issuer&&e.issuer.readableIdentifier(p),issuerPath:e.issuer&&t.map(e=>({id:e.id,identifier:e.identifier(),name:e.readableIdentifier(p),profile:e.profile})),profile:e.profile,failed:!!e.error,errors:e.errors?e.errors.length:0,warnings:e.warnings?e.warnings.length:0};if(S){n.assets=Object.keys(e.buildInfo.assets||{})}if(I){n.reasons=e.reasons.sort((e,t)=>{if(e.module&&!t.module)return-1;if(!e.module&&t.module)return 1;if(e.module&&t.module){const s=c(e.module.id,t.module.id);if(s)return s}if(e.dependency&&!t.dependency)return-1;if(!e.dependency&&t.dependency)return 1;if(e.dependency&&t.dependency){const s=a(e.dependency.loc,t.dependency.loc);if(s)return s;if(e.dependency.typet.dependency.type)return 1}return 0}).map(e=>{const t={moduleId:e.module?e.module.id:null,moduleIdentifier:e.module?e.module.identifier():null,module:e.module?e.module.readableIdentifier(p):null,moduleName:e.module?e.module.readableIdentifier(p):null,type:e.dependency?e.dependency.type:null,explanation:e.explanation,userRequest:e.dependency?e.dependency.userRequest:null};if(e.dependency){const s=o(e.dependency.loc);if(s){t.loc=s}}return t})}if(D){if(e.used===true){n.usedExports=e.usedExports}else if(e.used===false){n.usedExports=false}}if(P){n.providedExports=Array.isArray(e.buildMeta.providedExports)?e.buildMeta.providedExports:null}if(R){n.optimizationBailout=e.optimizationBailout.map(e=>{if(typeof e==="function")return e(p);return e})}if(C){n.depth=e.depth}if(A){if(e.modules){const t=e.modules;n.modules=t.sort(re("depth",t)).filter(te()).map(le);n.filteredModules=t.length-n.modules.length;n.modules.sort(re(X,n.modules))}}if(z&&e._source){n.source=e._source.source()}return n};if($){ie.chunks=h.chunks.map(e=>{const t=new Set;const s=new Set;const n=new Set;const r=e.getChildIdsByOrders();for(const r of e.groupsIterable){for(const e of r.parentsIterable){for(const s of e.chunks){t.add(s.id)}}for(const e of r.childrenIterable){for(const t of e.chunks){s.add(t.id)}}for(const t of r.chunks){if(t!==e)n.add(t.id)}}const i={id:e.id,rendered:e.rendered,initial:e.canBeInitial(),entry:e.hasRuntime(),recorded:e.recorded,reason:e.chunkReason,size:e.modulesSize(),names:e.name?[e.name]:[],files:e.files.slice(),hash:e.renderedHash,siblings:Array.from(n).sort(c),parents:Array.from(t).sort(c),children:Array.from(s).sort(c),childrenByOrder:r};if(E){const t=e.getModules();i.modules=t.slice().sort(re("depth",t)).filter(te()).map(le);i.filteredModules=e.getNumberOfModules()-i.modules.length;i.modules.sort(re(X,i.modules))}if(M){i.origins=Array.from(e.groupsIterable,e=>e.origins).reduce((e,t)=>e.concat(t),[]).map(e=>({moduleId:e.module?e.module.id:undefined,module:e.module?e.module.identifier():"",moduleIdentifier:e.module?e.module.identifier():"",moduleName:e.module?e.module.readableIdentifier(p):"",loc:o(e.loc),request:e.request,reasons:e.reasons||[]})).sort((e,t)=>{const s=c(e.moduleId,t.moduleId);if(s)return s;const n=c(e.loc,t.loc);if(n)return n;const r=c(e.request,t.request);if(r)return r;return 0})}return i});ie.chunks.sort(re(Y,ie.chunks))}if(O){ie.modules=h.modules.slice().sort(re("depth",h.modules)).filter(te()).map(le);ie.filteredModules=h.modules.length-ie.modules.length;ie.modules.sort(re(X,ie.modules))}if(U){const e=s(669);ie.logging={};let t;let n=false;switch(U){case"none":t=new Set([]);break;case"error":t=new Set([l.error]);break;case"warn":t=new Set([l.error,l.warn]);break;case"info":t=new Set([l.error,l.warn,l.info]);break;case true:case"log":t=new Set([l.error,l.warn,l.info,l.log,l.group,l.groupEnd,l.groupCollapsed,l.clear]);break;case"verbose":t=new Set([l.error,l.warn,l.info,l.log,l.group,l.groupEnd,l.groupCollapsed,l.profile,l.profileEnd,l.time,l.status,l.clear]);n=true;break}for(const[s,r]of h.logging){const o=J.some(e=>e(s));let a=0;let u=r;if(!o){u=u.filter(e=>{if(!t.has(e.type))return false;if(!n){switch(e.type){case l.groupCollapsed:a++;return a===1;case l.group:if(a>0)a++;return a===0;case l.groupEnd:if(a>0){a--;return false}return true;default:return a===0}}return true})}u=u.map(t=>{let s=undefined;if(t.type===l.time){s=`${t.args[0]}: ${t.args[1]*1e3+t.args[2]/1e6}ms`}else if(t.args&&t.args.length>0){s=e.format(t.args[0],...t.args.slice(1))}return{type:(o||n)&&t.type===l.groupCollapsed?l.group:t.type,message:s,trace:L&&t.trace?t.trace:undefined}});let c=i.makePathsRelative(f,s,h.cache).replace(/\|/g," ");if(c in ie.logging){let e=1;while(`${c}#${e}`in ie.logging){e++}c=`${c}#${e}`}ie.logging[c]={entries:u,filteredEntries:r.length-u.length,debug:o}}}if(H){ie.children=h.children.map((s,n)=>{const r=Stats.getChildOptions(e,n);const o=new Stats(s).toJson(r,t);delete o.hash;delete o.version;if(s.name){o.name=i.makePathsRelative(f,s.name,h.cache)}return o})}return ie}toString(e){if(typeof e==="boolean"||typeof e==="string"){e=Stats.presetToOptions(e)}else if(!e){e={}}const t=u(e.colors,false);const s=this.toJson(e,true);return Stats.jsonToString(s,t)}static jsonToString(e,t){const s=[];const n={bold:"",yellow:"",red:"",green:"",cyan:"",magenta:""};const o=Object.keys(n).reduce((e,r)=>{e[r]=(e=>{if(t){s.push(t===true||t[r]===undefined?n[r]:t[r])}s.push(e);if(t){s.push("")}});return e},{normal:e=>s.push(e)});const i=t=>{let s=[800,400,200,100];if(e.time){s=[e.time/2,e.time/4,e.time/8,e.time/16]}if(ts.push("\n");const u=(e,t,s)=>{return e[t][s].value};const c=(e,t,s)=>{const n=e.length;const r=e[0].length;const i=new Array(r);for(let e=0;ei[s]){i[s]=n.length}}}for(let l=0;l{if(e.isOverSizeLimit){return o.yellow}return t};if(e.hash){o.normal("Hash: ");o.bold(e.hash);a()}if(e.version){o.normal("Version: webpack ");o.bold(e.version);a()}if(typeof e.time==="number"){o.normal("Time: ");o.bold(e.time);o.normal("ms");a()}if(typeof e.builtAt==="number"){const t=new Date(e.builtAt);let s=undefined;try{t.toLocaleTimeString()}catch(e){s="UTC"}o.normal("Built at: ");o.normal(t.toLocaleDateString(undefined,{day:"2-digit",month:"2-digit",year:"numeric",timeZone:s}));o.normal(" ");o.bold(t.toLocaleTimeString(undefined,{timeZone:s}));a()}if(e.env){o.normal("Environment (--env): ");o.bold(JSON.stringify(e.env,null,2));a()}if(e.publicPath){o.normal("PublicPath: ");o.bold(e.publicPath);a()}if(e.assets&&e.assets.length>0){const t=[[{value:"Asset",color:o.bold},{value:"Size",color:o.bold},{value:"Chunks",color:o.bold},{value:"",color:o.bold},{value:"",color:o.bold},{value:"Chunk Names",color:o.bold}]];for(const s of e.assets){t.push([{value:s.name,color:d(s,o.green)},{value:r.formatSize(s.size),color:d(s,o.normal)},{value:s.chunks.join(", "),color:o.bold},{value:[s.emitted&&"[emitted]",s.info.immutable&&"[immutable]",s.info.development&&"[dev]",s.info.hotModuleReplacement&&"[hmr]"].filter(Boolean).join(" "),color:o.green},{value:s.isOverSizeLimit?"[big]":"",color:d(s,o.normal)},{value:s.chunkNames.join(", "),color:o.normal}])}c(t,"rrrlll")}if(e.filteredAssets>0){o.normal(" ");if(e.assets.length>0)o.normal("+ ");o.normal(e.filteredAssets);if(e.assets.length>0)o.normal(" hidden");o.normal(e.filteredAssets!==1?" assets":" asset");a()}const h=(e,t)=>{for(const s of Object.keys(e)){const n=e[s];o.normal(`${t} `);o.bold(s);if(n.isOverSizeLimit){o.normal(" ");o.yellow("[big]")}o.normal(" =");for(const e of n.assets){o.normal(" ");o.green(e)}for(const e of Object.keys(n.childAssets)){const t=n.childAssets[e];if(t&&t.length>0){o.normal(" ");o.magenta(`(${e}:`);for(const e of t){o.normal(" ");o.green(e)}o.magenta(")")}}a()}};if(e.entrypoints){h(e.entrypoints,"Entrypoint")}if(e.namedChunkGroups){let t=e.namedChunkGroups;if(e.entrypoints){t=Object.keys(t).filter(t=>!e.entrypoints[t]).reduce((t,s)=>{t[s]=e.namedChunkGroups[s];return t},{})}h(t,"Chunk Group")}const f={};if(e.modules){for(const t of e.modules){f[`$${t.identifier}`]=t}}else if(e.chunks){for(const t of e.chunks){if(t.modules){for(const e of t.modules){f[`$${e.identifier}`]=e}}}}const p=e=>{o.normal(" ");o.normal(r.formatSize(e.size));if(e.chunks){for(const t of e.chunks){o.normal(" {");o.yellow(t);o.normal("}")}}if(typeof e.depth==="number"){o.normal(` [depth ${e.depth}]`)}if(e.cacheable===false){o.red(" [not cacheable]")}if(e.optional){o.yellow(" [optional]")}if(e.built){o.green(" [built]")}if(e.assets&&e.assets.length){o.magenta(` [${e.assets.length} asset${e.assets.length===1?"":"s"}]`)}if(e.prefetched){o.magenta(" [prefetched]")}if(e.failed)o.red(" [failed]");if(e.warnings){o.yellow(` [${e.warnings} warning${e.warnings===1?"":"s"}]`)}if(e.errors){o.red(` [${e.errors} error${e.errors===1?"":"s"}]`)}};const m=(e,t)=>{if(Array.isArray(e.providedExports)){o.normal(t);if(e.providedExports.length===0){o.cyan("[no exports]")}else{o.cyan(`[exports: ${e.providedExports.join(", ")}]`)}a()}if(e.usedExports!==undefined){if(e.usedExports!==true){o.normal(t);if(e.usedExports===null){o.cyan("[used exports unknown]")}else if(e.usedExports===false){o.cyan("[no exports used]")}else if(Array.isArray(e.usedExports)&&e.usedExports.length===0){o.cyan("[no exports used]")}else if(Array.isArray(e.usedExports)){const t=Array.isArray(e.providedExports)?e.providedExports.length:null;if(t!==null&&t===e.usedExports.length){o.cyan("[all exports used]")}else{o.cyan(`[only some exports used: ${e.usedExports.join(", ")}]`)}}a()}}if(Array.isArray(e.optimizationBailout)){for(const s of e.optimizationBailout){o.normal(t);o.yellow(s);a()}}if(e.reasons){for(const s of e.reasons){o.normal(t);if(s.type){o.normal(s.type);o.normal(" ")}if(s.userRequest){o.cyan(s.userRequest);o.normal(" ")}if(s.moduleId!==null){o.normal("[");o.normal(s.moduleId);o.normal("]")}if(s.module&&s.module!==s.moduleId){o.normal(" ");o.magenta(s.module)}if(s.loc){o.normal(" ");o.normal(s.loc)}if(s.explanation){o.normal(" ");o.cyan(s.explanation)}a()}}if(e.profile){o.normal(t);let s=0;if(e.issuerPath){for(const t of e.issuerPath){o.normal("[");o.normal(t.id);o.normal("] ");if(t.profile){const e=(t.profile.factory||0)+(t.profile.building||0);i(e);s+=e;o.normal(" ")}o.normal("-> ")}}for(const t of Object.keys(e.profile)){o.normal(`${t}:`);const n=e.profile[t];i(n);o.normal(" ");s+=n}o.normal("= ");i(s);a()}if(e.modules){g(e,t+"| ")}};const g=(e,t)=>{if(e.modules){let s=0;for(const t of e.modules){if(typeof t.id==="number"){if(s=10)n+=" ";if(s>=100)n+=" ";if(s>=1e3)n+=" ";for(const r of e.modules){o.normal(t);const e=r.name||r.identifier;if(typeof r.id==="string"||typeof r.id==="number"){if(typeof r.id==="number"){if(r.id<1e3&&s>=1e3)o.normal(" ");if(r.id<100&&s>=100)o.normal(" ");if(r.id<10&&s>=10)o.normal(" ")}else{if(s>=1e3)o.normal(" ");if(s>=100)o.normal(" ");if(s>=10)o.normal(" ")}if(e!==r.id){o.normal("[");o.normal(r.id);o.normal("]");o.normal(" ")}else{o.normal("[");o.bold(r.id);o.normal("]")}}if(e!==r.id){o.bold(e)}p(r);a();m(r,n)}if(e.filteredModules>0){o.normal(t);o.normal(" ");if(e.modules.length>0)o.normal(" + ");o.normal(e.filteredModules);if(e.modules.length>0)o.normal(" hidden");o.normal(e.filteredModules!==1?" modules":" module");a()}}};if(e.chunks){for(const t of e.chunks){o.normal("chunk ");if(t.id<1e3)o.normal(" ");if(t.id<100)o.normal(" ");if(t.id<10)o.normal(" ");o.normal("{");o.yellow(t.id);o.normal("} ");o.green(t.files.join(", "));if(t.names&&t.names.length>0){o.normal(" (");o.normal(t.names.join(", "));o.normal(")")}o.normal(" ");o.normal(r.formatSize(t.size));for(const e of t.parents){o.normal(" <{");o.yellow(e);o.normal("}>")}for(const e of t.siblings){o.normal(" ={");o.yellow(e);o.normal("}=")}for(const e of t.children){o.normal(" >{");o.yellow(e);o.normal("}<")}if(t.childrenByOrder){for(const e of Object.keys(t.childrenByOrder)){const s=t.childrenByOrder[e];o.normal(" ");o.magenta(`(${e}:`);for(const e of s){o.normal(" {");o.yellow(e);o.normal("}")}o.magenta(")")}}if(t.entry){o.yellow(" [entry]")}else if(t.initial){o.yellow(" [initial]")}if(t.rendered){o.green(" [rendered]")}if(t.recorded){o.green(" [recorded]")}if(t.reason){o.yellow(` ${t.reason}`)}a();if(t.origins){for(const e of t.origins){o.normal(" > ");if(e.reasons&&e.reasons.length){o.yellow(e.reasons.join(" "));o.normal(" ")}if(e.request){o.normal(e.request);o.normal(" ")}if(e.module){o.normal("[");o.normal(e.moduleId);o.normal("] ");const t=f[`$${e.module}`];if(t){o.bold(t.name);o.normal(" ")}}if(e.loc){o.normal(e.loc)}a()}}g(t," ")}}g(e,"");if(e.logging){for(const t of Object.keys(e.logging)){const s=e.logging[t];if(s.entries.length>0){a();if(s.debug){o.red("DEBUG ")}o.bold("LOG from "+t);a();let e="";for(const t of s.entries){let s=o.normal;let n=" ";switch(t.type){case l.clear:o.normal(`${e}-------`);a();continue;case l.error:s=o.red;n=" ";break;case l.warn:s=o.yellow;n=" ";break;case l.info:s=o.green;n=" ";break;case l.log:s=o.bold;break;case l.trace:case l.debug:s=o.normal;break;case l.status:s=o.magenta;n=" ";break;case l.profile:s=o.magenta;n="

";break;case l.profileEnd:s=o.magenta;n="

";break;case l.time:s=o.magenta;n=" ";break;case l.group:s=o.cyan;n="<-> ";break;case l.groupCollapsed:s=o.cyan;n="<+> ";break;case l.groupEnd:if(e.length>=2)e=e.slice(0,e.length-2);continue}if(t.message){for(const r of t.message.split("\n")){o.normal(`${e}${n}`);s(r);a()}}if(t.trace){for(const s of t.trace){o.normal(`${e}| ${s}`);a()}}switch(t.type){case l.group:e+=" ";break}}if(s.filteredEntries){o.normal(`+ ${s.filteredEntries} hidden lines`);a()}}}}if(e._showWarnings&&e.warnings){for(const t of e.warnings){a();o.yellow(`WARNING in ${t}`);a()}}if(e._showErrors&&e.errors){for(const t of e.errors){a();o.red(`ERROR in ${t}`);a()}}if(e.children){for(const n of e.children){const e=Stats.jsonToString(n,t);if(e){if(n.name){o.normal("Child ");o.bold(n.name);o.normal(":")}else{o.normal("Child")}a();s.push(" ");s.push(e.replace(/\n/g,"\n "));a()}}}if(e.needAdditionalPass){o.yellow("Compilation needs an additional pass and will compile again.")}while(s[s.length-1]==="\n"){s.pop()}return s.join("")}static presetToOptions(e){const t=typeof e==="string"&&e.toLowerCase()||e||"none";switch(t){case"none":return{all:false};case"verbose":return{entrypoints:true,chunkGroups:true,modules:false,chunks:true,chunkModules:true,chunkOrigins:true,depth:true,env:true,reasons:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:"verbose",exclude:false,maxModules:Infinity};case"detailed":return{entrypoints:true,chunkGroups:true,chunks:true,chunkModules:false,chunkOrigins:true,depth:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:true,exclude:false,maxModules:Infinity};case"minimal":return{all:false,modules:true,maxModules:0,errors:true,warnings:true,logging:"warn"};case"errors-only":return{all:false,errors:true,moduleTrace:true,logging:"error"};case"errors-warnings":return{all:false,errors:true,warnings:true,logging:"warn"};default:return{}}}static getChildOptions(e,t){let s;if(Array.isArray(e.children)){if(t({parse:{...t},compress:typeof s==="boolean"?s:{...s},mangle:n==null?true:typeof n==="boolean"?n:{...n},output:{beautify:false,...o},sourceMap:null,ecma:e,keep_classnames:u,keep_fnames:c,ie8:l,module:r,nameCache:a,safari10:d,toplevel:i});function isObject(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}const o=(e,t,s)=>{const n={};const r=t.output.comments;const{extractComments:o}=e;n.preserve=typeof r!=="undefined"?r:false;if(typeof o==="boolean"&&o){n.extract="some"}else if(typeof o==="string"||o instanceof RegExp){n.extract=o}else if(typeof o==="function"){n.extract=o}else if(isObject(o)){n.extract=typeof o.condition==="boolean"&&o.condition?"some":typeof o.condition!=="undefined"?o.condition:"some"}else{n.preserve=typeof r!=="undefined"?r:"some";n.extract=false}["preserve","extract"].forEach(e=>{let t;let s;switch(typeof n[e]){case"boolean":n[e]=n[e]?()=>true:()=>false;break;case"function":break;case"string":if(n[e]==="all"){n[e]=(()=>true);break}if(n[e]==="some"){n[e]=((e,t)=>{return(t.type==="comment2"||t.type==="comment1")&&/@preserve|@lic|@cc_on|^\**!/i.test(t.value)});break}t=n[e];n[e]=((e,s)=>{return new RegExp(t).test(s.value)});break;default:s=n[e];n[e]=((e,t)=>s.test(t.value))}});return(e,t)=>{if(n.extract(e,t)){const e=t.type==="comment2"?`/*${t.value}*/`:`//${t.value}`;if(!s.includes(e)){s.push(e)}}return n.preserve(e,t)}};async function minify(e){const{name:t,input:s,inputSourceMap:i,minify:a}=e;if(a){return a({[t]:s},i)}const l=r(e.terserOptions);if(i){l.sourceMap={asObject:true}}const u=[];l.output.comments=o(e,l,u);const c=await n({[t]:s},l);return{...c,extractedComments:u}}function transform(s){s=new Function("exports","require","module","__filename","__dirname",`'use strict'\nreturn ${s}`)(t,require,e,__filename,__dirname);return minify(s)}e.exports.minify=minify;e.exports.transform=transform},813:function(e){"use strict";const t=(e,...t)=>new Promise(s=>{s(e(...t))});e.exports=t;e.exports.default=t},832:function(e,t,s){"use strict";const n=s(622);const r=(e,t)=>{if(t.startsWith("./")||t.startsWith("../"))return n.join(e,t);return t};const o=e=>{if(/^\/.*\/$/.test(e)){return false}return/^(?:[a-z]:\\|\/)/i.test(e)};const i=e=>e.replace(/\\/g,"/");const a=(e,t)=>{return t.split(/([|! ])/).map(t=>o(t)?i(n.relative(e,t)):t).join("")};t.makePathsRelative=((e,t,s)=>{if(!s)return a(e,t);const n=s.relativePaths||(s.relativePaths=new Map);let r;let o=n.get(e);if(o===undefined){n.set(e,o=new Map)}else{r=o.get(t)}if(r!==undefined){return r}else{const s=a(e,t);o.set(t,s);return s}});t.contextify=((e,t)=>{return t.split("!").map(t=>{const s=t.split("?",2);if(/^[a-zA-Z]:\\/.test(s[0])){s[0]=n.win32.relative(e,s[0]);if(!/^[a-zA-Z]:\\/.test(s[0])){s[0]=s[0].replace(/\\/g,"/")}}if(/^\//.test(s[0])){s[0]=n.posix.relative(e,s[0])}if(!/^(\.\.\/|\/|[a-zA-Z]:\\)/.test(s[0])){s[0]="./"+s[0]}return s.join("?")}).join("!")});const l=(e,t)=>{return t.split("!").map(t=>r(e,t)).join("!")};t.absolutify=l},847:function(e,t,s){"use strict";const n=s(446);const r=/at ([a-zA-Z0-9_.]*)/;function createMessage(e){return`Abstract method${e?" "+e:""}. Must be overridden.`}function Message(){this.stack=undefined;Error.captureStackTrace(this);const e=this.stack.split("\n")[3].match(r);this.message=e&&e[1]?createMessage(e[1]):createMessage()}class AbstractMethodError extends n{constructor(){super((new Message).message);this.name="AbstractMethodError"}}e.exports=AbstractMethodError},886:function(e,t,s){"use strict";const n=s(669);const r=s(542);const o=s(656).intersect;const i=s(335);const a=s(174);let l=1e3;const u="Chunk.entry was removed. Use hasRuntime()";const c="Chunk.initial was removed. Use canBeInitial/isOnlyInitial()";const d=(e,t)=>{if(e.id{if(e.id{if(e.identifier()>t.identifier())return 1;if(e.identifier(){e.sort();let t="";for(const s of e){t+=s.identifier()+"#"}return t};const m=e=>Array.from(e);const g=e=>{let t=0;for(const s of e){t+=s.size()}return t};class Chunk{constructor(e){this.id=null;this.ids=null;this.debugId=l++;this.name=e;this.preventIntegration=false;this.entryModule=undefined;this._modules=new r(undefined,f);this.filenameTemplate=undefined;this._groups=new r(undefined,h);this.files=[];this.rendered=false;this.hash=undefined;this.contentHash=Object.create(null);this.renderedHash=undefined;this.chunkReason=undefined;this.extraAsync=false;this.removedModules=undefined}get entry(){throw new Error(u)}set entry(e){throw new Error(u)}get initial(){throw new Error(c)}set initial(e){throw new Error(c)}hasRuntime(){for(const e of this._groups){if(e.isInitial()&&e instanceof a&&e.getRuntimeChunk()===this){return true}}return false}canBeInitial(){for(const e of this._groups){if(e.isInitial())return true}return false}isOnlyInitial(){if(this._groups.size<=0)return false;for(const e of this._groups){if(!e.isInitial())return false}return true}hasEntryModule(){return!!this.entryModule}addModule(e){if(!this._modules.has(e)){this._modules.add(e);return true}return false}removeModule(e){if(this._modules.delete(e)){e.removeChunk(this);return true}return false}setModules(e){this._modules=new r(e,f)}getNumberOfModules(){return this._modules.size}get modulesIterable(){return this._modules}addGroup(e){if(this._groups.has(e))return false;this._groups.add(e);return true}removeGroup(e){if(!this._groups.has(e))return false;this._groups.delete(e);return true}isInGroup(e){return this._groups.has(e)}getNumberOfGroups(){return this._groups.size}get groupsIterable(){return this._groups}compareTo(e){if(this.name&&!e.name)return-1;if(!this.name&&e.name)return 1;if(this.namee.name)return 1;if(this._modules.size>e._modules.size)return-1;if(this._modules.sizeo)return 1}}containsModule(e){return this._modules.has(e)}getModules(){return this._modules.getFromCache(m)}getModulesIdent(){return this._modules.getFromUnorderedCache(p)}remove(e){for(const e of Array.from(this._modules)){e.removeChunk(this)}for(const e of this._groups){e.removeChunk(this)}}moveModule(e,t){i.disconnectChunkAndModule(this,e);i.connectChunkAndModule(t,e);e.rewriteChunkInReasons(this,[t])}integrate(e,t){if(!this.canBeIntegrated(e)){return false}if(this.name&&e.name){if(this.hasEntryModule()===e.hasEntryModule()){if(this.name.length!==e.name.length){this.name=this.name.length{const s=new Set(t.groupsIterable);for(const t of s){if(e.isInGroup(t))continue;if(t.isInitial())return false;for(const e of t.parentsIterable){s.add(e)}}return true};const s=this.hasRuntime();const n=e.hasRuntime();if(s!==n){if(s){return t(this,e)}else if(n){return t(e,this)}else{return false}}if(this.hasEntryModule()||e.hasEntryModule()){return false}return true}addMultiplierAndOverhead(e,t){const s=typeof t.chunkOverhead==="number"?t.chunkOverhead:1e4;const n=this.canBeInitial()?t.entryChunkMultiplicator||10:1;return e*n+s}modulesSize(){return this._modules.getFromUnorderedCache(g)}size(e={}){return this.addMultiplierAndOverhead(this.modulesSize(),e)}integratedSize(e,t){if(!this.canBeIntegrated(e)){return false}let s=this.modulesSize();for(const t of e._modules){if(!this._modules.has(t)){s+=t.size()}}return this.addMultiplierAndOverhead(s,t)}sortModules(e){this._modules.sortWith(e||d)}sortItems(){this.sortModules()}getAllAsyncChunks(){const e=new Set;const t=new Set;const s=o(Array.from(this.groupsIterable,e=>new Set(e.chunks)));for(const t of this.groupsIterable){for(const s of t.childrenIterable){e.add(s)}}for(const n of e){for(const e of n.chunks){if(!s.has(e)){t.add(e)}}for(const t of n.childrenIterable){e.add(t)}}return t}getChunkMaps(e){const t=Object.create(null);const s=Object.create(null);const n=Object.create(null);for(const r of this.getAllAsyncChunks()){t[r.id]=e?r.hash:r.renderedHash;for(const e of Object.keys(r.contentHash)){if(!s[e]){s[e]=Object.create(null)}s[e][r.id]=r.contentHash[e]}if(r.name){n[r.id]=r.name}}return{hash:t,contentHash:s,name:n}}getChildIdsByOrders(){const e=new Map;for(const t of this.groupsIterable){if(t.chunks[t.chunks.length-1]===this){for(const s of t.childrenIterable){if(typeof s.options==="object"){for(const t of Object.keys(s.options)){if(t.endsWith("Order")){const n=t.substr(0,t.length-"Order".length);let r=e.get(n);if(r===undefined)e.set(n,r=[]);r.push({order:s.options[t],group:s})}}}}}}const t=Object.create(null);for(const[s,n]of e){n.sort((e,t)=>{const s=t.order-e.order;if(s!==0)return s;if(e.group.compareTo){return e.group.compareTo(t.group)}return 0});t[s]=Array.from(n.reduce((e,t)=>{for(const s of t.group.chunks){e.add(s.id)}return e},new Set))}return t}getChildIdsByOrdersMap(e){const t=Object.create(null);const s=e=>{const s=e.getChildIdsByOrders();for(const n of Object.keys(s)){let r=t[n];if(r===undefined){t[n]=r=Object.create(null)}r[e.id]=s[n]}};if(e){const e=new Set;for(const t of this.groupsIterable){for(const s of t.chunks){e.add(s)}}for(const t of e){s(t)}}for(const e of this.getAllAsyncChunks()){s(e)}return t}getChunkModuleMaps(e){const t=Object.create(null);const s=Object.create(null);for(const n of this.getAllAsyncChunks()){let r;for(const o of n.modulesIterable){if(e(o)){if(r===undefined){r=[];t[n.id]=r}r.push(o.id);s[o.id]=o.renderedHash}}if(r!==undefined){r.sort()}}return{id:t,hash:s}}hasModuleInGraph(e,t){const s=new Set(this.groupsIterable);const n=new Set;for(const r of s){for(const s of r.chunks){if(!n.has(s)){n.add(s);if(!t||t(s)){for(const t of s.modulesIterable){if(e(t)){return true}}}}}for(const e of r.childrenIterable){s.add(e)}}return false}toString(){return`Chunk[${Array.from(this._modules).join()}]`}}Object.defineProperty(Chunk.prototype,"forEachModule",{configurable:false,value:n.deprecate(function(e){this._modules.forEach(e)},"Chunk.forEachModule: Use for(const module of chunk.modulesIterable) instead")});Object.defineProperty(Chunk.prototype,"mapModules",{configurable:false,value:n.deprecate(function(e){return Array.from(this._modules,e)},"Chunk.mapModules: Use Array.from(chunk.modulesIterable, fn) instead")});Object.defineProperty(Chunk.prototype,"chunks",{configurable:false,get(){throw new Error("Chunk.chunks: Use ChunkGroup.getChildren() instead")},set(){throw new Error("Chunk.chunks: Use ChunkGroup.add/removeChild() instead")}});Object.defineProperty(Chunk.prototype,"parents",{configurable:false,get(){throw new Error("Chunk.parents: Use ChunkGroup.getParents() instead")},set(){throw new Error("Chunk.parents: Use ChunkGroup.add/removeParent() instead")}});Object.defineProperty(Chunk.prototype,"blocks",{configurable:false,get(){throw new Error("Chunk.blocks: Use ChunkGroup.getBlocks() instead")},set(){throw new Error("Chunk.blocks: Use ChunkGroup.add/removeBlock() instead")}});Object.defineProperty(Chunk.prototype,"entrypoints",{configurable:false,get(){throw new Error("Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead")},set(){throw new Error("Chunk.entrypoints: Use Chunks.addGroup instead")}});e.exports=Chunk},960:function(e,t,s){"use strict";var n=s(46);var r=16;var o=generateUID();var i=new RegExp('(\\\\)?"@__(F|R|D|M|S|U|I|B)-'+o+'-(\\d+)__@"',"g");var a=/\{\s*\[native code\]\s*\}/g;var l=/function.*?\(/;var u=/.*?=>.*?/;var c=/[<>\/\u2028\u2029]/g;var d=["*","async"];var h={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function escapeUnsafeChars(e){return h[e]}function generateUID(){var e=n(r);var t="";for(var s=0;s0});var r=n.filter(function(e){return d.indexOf(e)===-1});if(r.length>0){return(n.indexOf("async")>-1?"async ":"")+"function"+(n.join("").indexOf("*")>-1?"*":"")+t.substr(s)}return t}if(t.ignoreFunction&&typeof e==="function"){e=undefined}if(e===undefined){return String(e)}var y;if(t.isJSON&&!t.space){y=JSON.stringify(e)}else{y=JSON.stringify(e,t.isJSON?null:replacer,t.space)}if(typeof y!=="string"){return String(y)}if(t.unsafe!==true){y=y.replace(c,escapeUnsafeChars)}if(s.length===0&&n.length===0&&r.length===0&&h.length===0&&f.length===0&&p.length===0&&m.length===0&&g.length===0){return y}return y.replace(i,function(e,o,i,a){if(o){return e}if(i==="D"){return'new Date("'+r[a].toISOString()+'")'}if(i==="R"){return"new RegExp("+serialize(n[a].source)+', "'+n[a].flags+'")'}if(i==="M"){return"new Map("+serialize(Array.from(h[a].entries()),t)+")"}if(i==="S"){return"new Set("+serialize(Array.from(f[a].values()),t)+")"}if(i==="U"){return"undefined"}if(i==="I"){return m[a]}if(i==="B"){return'BigInt("'+g[a]+'")'}var l=s[a];return serializeFunc(l)})}},966:function(e,t,s){const{ConcatSource:n}=s(745);const r=s(591);const o="a".charCodeAt(0);const i="A".charCodeAt(0);const a="z".charCodeAt(0)-o+1;const l=/^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g;const u=/^\t/gm;const c=/\r?\n/g;const d=/^([^a-zA-Z$_])/;const h=/[^a-zA-Z0-9$]+/g;const f=/\*\//g;const p=/[^a-zA-Z0-9_!§$()=\-^°]+/g;const m=/^-|-$/g;const g=(e,t)=>{const s=e.id+"";const n=t.id+"";if(sn)return 1;return 0};class Template{static getFunctionContent(e){return e.toString().replace(l,"").replace(u,"").replace(c,"\n")}static toIdentifier(e){if(typeof e!=="string")return"";return e.replace(d,"_$1").replace(h,"_")}static toComment(e){if(!e)return"";return`/*! ${e.replace(f,"* /")} */`}static toNormalComment(e){if(!e)return"";return`/* ${e.replace(f,"* /")} */`}static toPath(e){if(typeof e!=="string")return"";return e.replace(p,"-").replace(m,"")}static numberToIdentifer(e){if(en.id)s=n.id}if(s<16+(""+s).length){s=0}const n=e.map(e=>(e.id+"").length+2).reduce((e,t)=>e+t,-1);const r=s===0?t:16+(""+s).length+t;return r{return{id:t.id,source:s.render(t,o,{chunk:e})}});if(u&&u.length>0){for(const e of u){c.push({id:e,source:"false"})}}const d=Template.getModulesArrayBounds(c);if(d){const e=d[0];const t=d[1];if(e!==0){a.add(`Array(${e}).concat(`)}a.add("[\n");const s=new Map;for(const e of c){s.set(e.id,e)}for(let n=e;n<=t;n++){const t=s.get(n);if(n!==e){a.add(",\n")}a.add(`/* ${n} */`);if(t){a.add("\n");a.add(t.source)}}a.add("\n"+i+"]");if(e!==0){a.add(")")}}else{a.add("{\n");c.sort(g).forEach((e,t)=>{if(t!==0){a.add(",\n")}a.add(`\n/***/ ${JSON.stringify(e.id)}:\n`);a.add(e.source)});a.add(`\n\n${i}}`)}return a}}e.exports=Template},980:function(e,t,s){"use strict";const n=s(343);const r=s(669);const{CachedSource:o}=s(745);const{Tapable:i,SyncHook:a,SyncBailHook:l,SyncWaterfallHook:u,AsyncSeriesHook:c}=s(75);const d=s(638);const h=s(645);const f=s(647);const p=s(59);const m=s(773);const g=s(886);const y=s(174);const k=s(503);const b=s(55);const w=s(408);const _=s(216);const v=s(48);const x=s(207);const $=s(788);const E=s(393);const M=s(486);const O=s(542);const A=s(335);const S=s(742);const C=s(463);const{Logger:j,LogType:T}=s(225);const I=s(102);const D=s(510);const P=s(446);const R=(e,t)=>{if(typeof e.id!==typeof t.id){return typeof e.idt.id)return 1;return 0};const H=(e,t)=>{if(typeof e.id!==typeof t.id){return typeof e.idt.id)return 1;const s=e.identifier();const n=t.identifier();if(sn)return 1;return 0};const z=(e,t)=>{if(e.indext.index)return 1;const s=e.identifier();const n=t.identifier();if(sn)return 1;return 0};const q=(e,t)=>{if(e.namet.name)return 1;if(e.fullHasht.fullHash)return 1;return 0};const B=(e,t)=>{for(let s=0;s{for(let s=0;s{for(const s of t){e.add(s)}};const N=(e,t)=>{if(e===t)return true;let s=e.source();let n=t.source();if(s===n)return true;if(typeof s==="string"&&typeof n==="string")return false;if(!Buffer.isBuffer(s))s=Buffer.from(s,"utf-8");if(!Buffer.isBuffer(n))n=Buffer.from(n,"utf-8");return s.equals(n)};class Compilation extends i{constructor(e){super();this.hooks={buildModule:new a(["module"]),rebuildModule:new a(["module"]),failedModule:new a(["module","error"]),succeedModule:new a(["module"]),addEntry:new a(["entry","name"]),failedEntry:new a(["entry","name","error"]),succeedEntry:new a(["entry","name","module"]),dependencyReference:new u(["dependencyReference","dependency","module"]),finishModules:new c(["modules"]),finishRebuildingModule:new a(["module"]),unseal:new a([]),seal:new a([]),beforeChunks:new a([]),afterChunks:new a(["chunks"]),optimizeDependenciesBasic:new l(["modules"]),optimizeDependencies:new l(["modules"]),optimizeDependenciesAdvanced:new l(["modules"]),afterOptimizeDependencies:new a(["modules"]),optimize:new a([]),optimizeModulesBasic:new l(["modules"]),optimizeModules:new l(["modules"]),optimizeModulesAdvanced:new l(["modules"]),afterOptimizeModules:new a(["modules"]),optimizeChunksBasic:new l(["chunks","chunkGroups"]),optimizeChunks:new l(["chunks","chunkGroups"]),optimizeChunksAdvanced:new l(["chunks","chunkGroups"]),afterOptimizeChunks:new a(["chunks","chunkGroups"]),optimizeTree:new c(["chunks","modules"]),afterOptimizeTree:new a(["chunks","modules"]),optimizeChunkModulesBasic:new l(["chunks","modules"]),optimizeChunkModules:new l(["chunks","modules"]),optimizeChunkModulesAdvanced:new l(["chunks","modules"]),afterOptimizeChunkModules:new a(["chunks","modules"]),shouldRecord:new l([]),reviveModules:new a(["modules","records"]),optimizeModuleOrder:new a(["modules"]),advancedOptimizeModuleOrder:new a(["modules"]),beforeModuleIds:new a(["modules"]),moduleIds:new a(["modules"]),optimizeModuleIds:new a(["modules"]),afterOptimizeModuleIds:new a(["modules"]),reviveChunks:new a(["chunks","records"]),optimizeChunkOrder:new a(["chunks"]),beforeChunkIds:new a(["chunks"]),optimizeChunkIds:new a(["chunks"]),afterOptimizeChunkIds:new a(["chunks"]),recordModules:new a(["modules","records"]),recordChunks:new a(["chunks","records"]),beforeHash:new a([]),contentHash:new a(["chunk"]),afterHash:new a([]),recordHash:new a(["records"]),record:new a(["compilation","records"]),beforeModuleAssets:new a([]),shouldGenerateChunkAssets:new l([]),beforeChunkAssets:new a([]),additionalChunkAssets:new a(["chunks"]),additionalAssets:new c([]),optimizeChunkAssets:new c(["chunks"]),afterOptimizeChunkAssets:new a(["chunks"]),optimizeAssets:new c(["assets"]),afterOptimizeAssets:new a(["assets"]),needAdditionalSeal:new l([]),afterSeal:new c([]),chunkHash:new a(["chunk","chunkHash"]),moduleAsset:new a(["module","filename"]),chunkAsset:new a(["chunk","filename"]),assetPath:new u(["filename","data"]),needAdditionalPass:new l([]),childCompiler:new a(["childCompiler","compilerName","compilerIndex"]),log:new l(["origin","logEntry"]),normalModuleLoader:new a(["loaderContext","module"]),optimizeExtractedChunksBasic:new l(["chunks"]),optimizeExtractedChunks:new l(["chunks"]),optimizeExtractedChunksAdvanced:new l(["chunks"]),afterOptimizeExtractedChunks:new a(["chunks"])};this._pluginCompat.tap("Compilation",e=>{switch(e.name){case"optimize-tree":case"additional-assets":case"optimize-chunk-assets":case"optimize-assets":case"after-seal":e.async=true;break}});this.name=undefined;this.compiler=e;this.resolverFactory=e.resolverFactory;this.inputFileSystem=e.inputFileSystem;this.requestShortener=e.requestShortener;const t=e.options;this.options=t;this.outputOptions=t&&t.output;this.bail=t&&t.bail;this.profile=t&&t.profile;this.performance=t&&t.performance;this.mainTemplate=new k(this.outputOptions);this.chunkTemplate=new b(this.outputOptions);this.hotUpdateChunkTemplate=new w(this.outputOptions);this.runtimeTemplate=new v(this.outputOptions,this.requestShortener);this.moduleTemplates={javascript:new _(this.runtimeTemplate,"javascript"),webassembly:new _(this.runtimeTemplate,"webassembly")};this.semaphore=new E(t.parallelism||100);this.entries=[];this._preparedEntrypoints=[];this.entrypoints=new Map;this.chunks=[];this.chunkGroups=[];this.namedChunkGroups=new Map;this.namedChunks=new Map;this.modules=[];this._modules=new Map;this.cache=null;this.records=null;this.additionalChunkAssets=[];this.assets={};this.assetsInfo=new Map;this.errors=[];this.warnings=[];this.children=[];this.logging=new Map;this.dependencyFactories=new Map;this.dependencyTemplates=new Map;this.dependencyTemplates.set("hash","");this.childrenCounters={};this.usedChunkIds=null;this.usedModuleIds=null;this.fileTimestamps=undefined;this.contextTimestamps=undefined;this.compilationDependencies=undefined;this._buildingModules=new Map;this._rebuildingModules=new Map;this.emittedAssets=new Set}getStats(){return new $(this)}getLogger(e){if(!e){throw new TypeError("Compilation.getLogger(name) called without a name")}let t;return new j((s,n)=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compilation.getLogger(name) called with a function not returning a name")}}let r;switch(s){case T.warn:case T.error:case T.trace:r=I.cutOffLoaderExecution(new Error("Trace").stack).split("\n").slice(3);break}const o={time:Date.now(),type:s,args:n,trace:r};if(this.hooks.log.call(e,o)===undefined){if(o.type===T.profileEnd){if(typeof console.profileEnd==="function"){console.profileEnd(`[${e}] ${o.args[0]}`)}}if(t===undefined){t=this.logging.get(e);if(t===undefined){t=[];this.logging.set(e,t)}}t.push(o);if(o.type===T.profile){if(typeof console.profile==="function"){console.profile(`[${e}] ${o.args[0]}`)}}}})}addModule(e,t){const s=e.identifier();const n=this._modules.get(s);if(n){return{module:n,issuer:false,build:false,dependencies:false}}const r=(t||"m")+s;if(this.cache&&this.cache[r]){const t=this.cache[r];if(typeof t.updateCacheModule==="function"){t.updateCacheModule(e)}let n=true;if(this.fileTimestamps&&this.contextTimestamps){n=t.needRebuild(this.fileTimestamps,this.contextTimestamps)}if(!n){t.disconnect();this._modules.set(s,t);this.modules.push(t);for(const e of t.errors){this.errors.push(e)}for(const e of t.warnings){this.warnings.push(e)}return{module:t,issuer:true,build:false,dependencies:true}}t.unbuild();e=t}this._modules.set(s,e);if(this.cache){this.cache[r]=e}this.modules.push(e);return{module:e,issuer:true,build:true,dependencies:true}}getModule(e){const t=e.identifier();return this._modules.get(t)}findModule(e){return this._modules.get(e)}waitForBuildingFinished(e,t){let s=this._buildingModules.get(e);if(s){s.push(()=>t())}else{process.nextTick(t)}}buildModule(e,t,s,n,r){let o=this._buildingModules.get(e);if(o){o.push(r);return}this._buildingModules.set(e,o=[r]);const i=t=>{this._buildingModules.delete(e);for(const e of o){e(t)}};this.hooks.buildModule.call(e);e.build(this.options,this,this.resolverFactory.get("normal",e.resolveOptions),this.inputFileSystem,r=>{const o=e.errors;for(let e=0;e{e.set(t,s);return e},new Map);e.dependencies.sort((e,t)=>{const s=C(e.loc,t.loc);if(s)return s;return l.get(e)-l.get(t)});if(r){this.hooks.failedModule.call(e,r);return i(r)}this.hooks.succeedModule.call(e);return i()})}processModuleDependencies(e,t){const s=new Map;const n=e=>{const t=e.getResourceIdentifier();if(t){const n=this.dependencyFactories.get(e.constructor);if(n===undefined){throw new Error(`No module factory available for dependency type: ${e.constructor.name}`)}let r=s.get(n);if(r===undefined){s.set(n,r=new Map)}let o=r.get(t);if(o===undefined)r.set(t,o=[]);o.push(e)}};const r=e=>{if(e.dependencies){F(e.dependencies,n)}if(e.blocks){F(e.blocks,r)}if(e.variables){B(e.variables,n)}};try{r(e)}catch(e){t(e)}const o=[];for(const e of s){for(const t of e[1]){o.push({factory:e[0],dependencies:t[1]})}}this.addModuleDependencies(e,o,this.bail,null,true,t)}addModuleDependencies(e,t,s,r,o,i){const a=this.profile&&Date.now();const l=this.profile&&{};n.forEach(t,(t,n)=>{const i=t.dependencies;const u=t=>{t.origin=e;t.dependencies=i;this.errors.push(t);if(s){n(t)}else{n()}};const c=t=>{t.origin=e;this.warnings.push(t);n()};const d=this.semaphore;d.acquire(()=>{const s=t.factory;s.create({contextInfo:{issuer:e.nameForCondition&&e.nameForCondition(),compiler:this.compiler.name},resolveOptions:e.resolveOptions,context:e.context,dependencies:i},(t,s)=>{let f;const p=()=>{return i.every(e=>e.optional)};const m=e=>{if(p()){return c(e)}else{return u(e)}};if(t){d.release();return m(new h(e,t))}if(!s){d.release();return process.nextTick(n)}if(l){f=Date.now();l.factory=f-a}const g=t=>{for(let n=0;n{if(o&&y.dependencies){this.processModuleDependencies(s,n)}else{return n()}};if(y.issuer){if(l){s.profile=l}s.issuer=e}else{if(this.profile){if(e.profile){const t=Date.now()-a;if(!e.profile.dependencies||t>e.profile.dependencies){e.profile.dependencies=t}}}}if(y.build){this.buildModule(s,p(),e,i,e=>{if(e){d.release();return m(e)}if(l){const e=Date.now();l.building=e-f}d.release();k()})}else{d.release();this.waitForBuildingFinished(s,k)}})})},e=>{if(e){e.stack=e.stack;return i(e)}return process.nextTick(i)})}_addModuleChain(e,t,s,n){const r=this.profile&&Date.now();const o=this.profile&&{};const i=this.bail?e=>{n(e)}:e=>{e.dependencies=[t];this.errors.push(e);n()};if(typeof t!=="object"||t===null||!t.constructor){throw new Error("Parameter 'dependency' must be a Dependency")}const a=t.constructor;const l=this.dependencyFactories.get(a);if(!l){throw new Error(`No dependency factory available for this dependency type: ${t.constructor.name}`)}this.semaphore.acquire(()=>{l.create({contextInfo:{issuer:"",compiler:this.compiler.name},context:e,dependencies:[t]},(e,a)=>{if(e){this.semaphore.release();return i(new d(e))}let l;if(o){l=Date.now();o.factory=l-r}const u=this.addModule(a);a=u.module;s(a);t.module=a;a.addReason(null,t);const c=()=>{if(u.dependencies){this.processModuleDependencies(a,e=>{if(e)return n(e);n(null,a)})}else{return n(null,a)}};if(u.issuer){if(o){a.profile=o}}if(u.build){this.buildModule(a,false,null,null,e=>{if(e){this.semaphore.release();return i(e)}if(o){const e=Date.now();o.building=e-l}this.semaphore.release();c()})}else{this.semaphore.release();this.waitForBuildingFinished(a,c)}})})}addEntry(e,t,s,n){this.hooks.addEntry.call(t,s);const r={name:s,request:null,module:null};if(t instanceof S){r.request=t.request}const o=this._preparedEntrypoints.findIndex(e=>e.name===s);if(o>=0){this._preparedEntrypoints[o]=r}else{this._preparedEntrypoints.push(r)}this._addModuleChain(e,t,e=>{this.entries.push(e)},(e,o)=>{if(e){this.hooks.failedEntry.call(t,s,e);return n(e)}if(o){r.module=o}else{const e=this._preparedEntrypoints.indexOf(r);if(e>=0){this._preparedEntrypoints.splice(e,1)}}this.hooks.succeedEntry.call(t,s,o);return n(null,o)})}prefetch(e,t,s){this._addModuleChain(e,t,e=>{e.prefetched=true},s)}rebuildModule(e,t){let s=this._rebuildingModules.get(e);if(s){s.push(t);return}this._rebuildingModules.set(e,s=[t]);const n=t=>{this._rebuildingModules.delete(e);for(const e of s){e(t)}};this.hooks.rebuildModule.call(e);const r=e.dependencies.slice();const o=e.variables.slice();const i=e.blocks.slice();e.unbuild();this.buildModule(e,false,e,null,t=>{if(t){this.hooks.finishRebuildingModule.call(e);return n(t)}this.processModuleDependencies(e,t=>{if(t)return n(t);this.removeReasonsOfDependencyBlock(e,{dependencies:r,variables:o,blocks:i});this.hooks.finishRebuildingModule.call(e);n()})})}finish(e){const t=this.modules;this.hooks.finishModules.callAsync(t,s=>{if(s)return e(s);for(let e=0;e{if(t){return e(t)}this.hooks.afterOptimizeTree.call(this.chunks,this.modules);while(this.hooks.optimizeChunkModulesBasic.call(this.chunks,this.modules)||this.hooks.optimizeChunkModules.call(this.chunks,this.modules)||this.hooks.optimizeChunkModulesAdvanced.call(this.chunks,this.modules)){}this.hooks.afterOptimizeChunkModules.call(this.chunks,this.modules);const s=this.hooks.shouldRecord.call()!==false;this.hooks.reviveModules.call(this.modules,this.records);this.hooks.optimizeModuleOrder.call(this.modules);this.hooks.advancedOptimizeModuleOrder.call(this.modules);this.hooks.beforeModuleIds.call(this.modules);this.hooks.moduleIds.call(this.modules);this.applyModuleIds();this.hooks.optimizeModuleIds.call(this.modules);this.hooks.afterOptimizeModuleIds.call(this.modules);this.sortItemsWithModuleIds();this.hooks.reviveChunks.call(this.chunks,this.records);this.hooks.optimizeChunkOrder.call(this.chunks);this.hooks.beforeChunkIds.call(this.chunks);this.applyChunkIds();this.hooks.optimizeChunkIds.call(this.chunks);this.hooks.afterOptimizeChunkIds.call(this.chunks);this.sortItemsWithChunkIds();if(s){this.hooks.recordModules.call(this.modules,this.records);this.hooks.recordChunks.call(this.chunks,this.records)}this.hooks.beforeHash.call();this.createHash();this.hooks.afterHash.call();if(s){this.hooks.recordHash.call(this.records)}this.hooks.beforeModuleAssets.call();this.createModuleAssets();if(this.hooks.shouldGenerateChunkAssets.call()!==false){this.hooks.beforeChunkAssets.call();this.createChunkAssets()}this.hooks.additionalChunkAssets.call(this.chunks);this.summarizeDependencies();if(s){this.hooks.record.call(this,this.records)}this.hooks.additionalAssets.callAsync(t=>{if(t){return e(t)}this.hooks.optimizeChunkAssets.callAsync(this.chunks,t=>{if(t){return e(t)}this.hooks.afterOptimizeChunkAssets.call(this.chunks);this.hooks.optimizeAssets.callAsync(this.assets,t=>{if(t){return e(t)}this.hooks.afterOptimizeAssets.call(this.assets);if(this.hooks.needAdditionalSeal.call()){this.unseal();return this.seal(e)}return this.hooks.afterSeal.callAsync(e)})})})})}sortModules(e){e.sort(z)}reportDependencyErrorsAndWarnings(e,t){for(let s=0;s{const n=e.depth;if(typeof n==="number"&&n<=s)return;t.add(e);e.depth=s};const r=e=>{if(e.module){n(e.module)}};const o=e=>{if(e.variables){B(e.variables,r)}if(e.dependencies){F(e.dependencies,r)}if(e.blocks){F(e.blocks,o)}};for(e of t){t.delete(e);s=e.depth;s++;o(e)}}getDependencyReference(e,t){if(typeof t.getReference!=="function")return null;const s=t.getReference();if(!s)return null;return this.hooks.dependencyReference.call(s,t,e)}removeReasonsOfDependencyBlock(e,t){const s=t=>{if(!t.module){return}if(t.module.removeReason(e,t)){for(const e of t.module.chunksIterable){this.patchChunksAfterReasonRemoval(t.module,e)}}};if(t.blocks){F(t.blocks,t=>this.removeReasonsOfDependencyBlock(e,t))}if(t.dependencies){F(t.dependencies,s)}if(t.variables){B(t.variables,s)}}patchChunksAfterReasonRemoval(e,t){if(!e.hasReasons()){this.removeReasonsOfDependencyBlock(e,e)}if(!e.hasReasonForChunk(t)){if(e.removeChunk(t)){this.removeChunkFromDependencies(e,t)}}}removeChunkFromDependencies(e,t){const s=e=>{if(!e.module){return}this.patchChunksAfterReasonRemoval(e.module,t)};const n=e.blocks;for(let t=0;t0){let n=-1;for(const e of s){if(typeof e!=="number"){continue}n=Math.max(n,e)}let r=t=n+1;while(r--){if(!s.has(r)){e.push(r)}}}const r=this.modules;for(let s=0;s0){n.id=e.pop()}else{n.id=t++}}}}applyChunkIds(){const e=new Set;if(this.usedChunkIds){for(const t of this.usedChunkIds){if(typeof t!=="number"){continue}e.add(t)}}const t=this.chunks;for(let s=0;s0){let t=s;while(t--){if(!e.has(t)){n.push(t)}}}for(let e=0;e0){r.id=n.pop()}else{r.id=s++}}if(!r.ids){r.ids=[r.id]}}}sortItemsWithModuleIds(){this.modules.sort(H);const e=this.modules;for(let t=0;te.compareTo(t))}sortItemsWithChunkIds(){for(const e of this.chunkGroups){e.sortItems()}this.chunks.sort(R);for(let e=0;e{const s=`${e.message}`;const n=`${t.message}`;if(s{const s=e.hasRuntime();const n=t.hasRuntime();if(s&&!n)return 1;if(!s&&n)return-1;return R(e,t)});for(let o=0;oe[1].toUpperCase())].call(...t)},"Compilation.applyPlugins is deprecated. Use new API on `.hooks` instead");Object.defineProperty(Compilation.prototype,"moduleTemplate",{configurable:false,get:r.deprecate(function(){return this.moduleTemplates.javascript},"Compilation.moduleTemplate: Use Compilation.moduleTemplates.javascript instead"),set:r.deprecate(function(e){this.moduleTemplates.javascript=e},"Compilation.moduleTemplate: Use Compilation.moduleTemplates.javascript instead.")});e.exports=Compilation}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file +module.exports=function(e,t){"use strict";var s={};function __webpack_require__(t){if(s[t]){return s[t].exports}var n=s[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(470)}t(__webpack_require__);return startup()}({43:function(e,t,s){"use strict";const n=s(446);class AsyncDependencyToInitialChunkError extends n{constructor(e,t,s){super(`It's not allowed to load an initial chunk on demand. The chunk name "${e}" is already used by an entrypoint.`);this.name="AsyncDependencyToInitialChunkError";this.module=t;this.loc=s;Error.captureStackTrace(this,this.constructor)}}e.exports=AsyncDependencyToInitialChunkError},46:function(e,t,s){e.exports=s(417).randomBytes},48:function(e,t,s){"use strict";const n=s(966);e.exports=class RuntimeTemplate{constructor(e,t){this.outputOptions=e||{};this.requestShortener=t}comment({request:e,chunkName:t,chunkReason:s,message:r,exportName:o}){let i;if(this.outputOptions.pathinfo){i=[r,e,t,s].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}else{i=[r,t,s].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}if(!i)return"";if(this.outputOptions.pathinfo){return n.toComment(i)+" "}else{return n.toNormalComment(i)+" "}}throwMissingModuleErrorFunction({request:e}){const t=`Cannot find module '${e}'`;return`function webpackMissingModule() { var e = new Error(${JSON.stringify(t)}); e.code = 'MODULE_NOT_FOUND'; throw e; }`}missingModule({request:e}){return`!(${this.throwMissingModuleErrorFunction({request:e})}())`}missingModuleStatement({request:e}){return`${this.missingModule({request:e})};\n`}missingModulePromise({request:e}){return`Promise.resolve().then(${this.throwMissingModuleErrorFunction({request:e})})`}moduleId({module:e,request:t}){if(!e){return this.missingModule({request:t})}if(e.id===null){throw new Error(`RuntimeTemplate.moduleId(): Module ${e.identifier()} has no id. This should not happen.`)}return`${this.comment({request:t})}${JSON.stringify(e.id)}`}moduleRaw({module:e,request:t}){if(!e){return this.missingModule({request:t})}return`__webpack_require__(${this.moduleId({module:e,request:t})})`}moduleExports({module:e,request:t}){return this.moduleRaw({module:e,request:t})}moduleNamespace({module:e,request:t,strict:s}){if(!e){return this.missingModule({request:t})}const n=this.moduleId({module:e,request:t});const r=e.buildMeta&&e.buildMeta.exportsType;if(r==="namespace"){const s=this.moduleRaw({module:e,request:t});return s}else if(r==="named"){return`__webpack_require__.t(${n}, 3)`}else if(s){return`__webpack_require__.t(${n}, 1)`}else{return`__webpack_require__.t(${n}, 7)`}}moduleNamespacePromise({block:e,module:t,request:s,message:n,strict:r,weak:o}){if(!t){return this.missingModulePromise({request:s})}if(t.id===null){throw new Error(`RuntimeTemplate.moduleNamespacePromise(): Module ${t.identifier()} has no id. This should not happen.`)}const i=this.blockPromise({block:e,message:n});let a;let l=JSON.stringify(t.id);const u=this.comment({request:s});let c="";if(o){if(l.length>8){c+=`var id = ${l}; `;l="id"}c+=`if(!__webpack_require__.m[${l}]) { var e = new Error("Module '" + ${l} + "' is not available (weak dependency)"); e.code = 'MODULE_NOT_FOUND'; throw e; } `}const d=this.moduleId({module:t,request:s});const h=t.buildMeta&&t.buildMeta.exportsType;if(h==="namespace"){if(c){const e=this.moduleRaw({module:t,request:s});a=`function() { ${c}return ${e}; }`}else{a=`__webpack_require__.bind(null, ${u}${l})`}}else if(h==="named"){if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 3); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 3)`}}else if(r){if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 1); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 1)`}}else{if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 7); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 7)`}}return`${i||"Promise.resolve()"}.then(${a})`}importStatement({update:e,module:t,request:s,importVar:n,originModule:r}){if(!t){return this.missingModuleStatement({request:s})}const o=this.moduleId({module:t,request:s});const i=e?"":"var ";const a=t.buildMeta&&t.buildMeta.exportsType;let l=`/* harmony import */ ${i}${n} = __webpack_require__(${o});\n`;if(!a&&!r.buildMeta.strictHarmonyModule){l+=`/* harmony import */ ${i}${n}_default = /*#__PURE__*/__webpack_require__.n(${n});\n`}if(a==="named"){if(Array.isArray(t.buildMeta.providedExports)){l+=`${i}${n}_namespace = /*#__PURE__*/__webpack_require__.t(${o}, 1);\n`}else{l+=`${i}${n}_namespace = /*#__PURE__*/__webpack_require__.t(${o});\n`}}return l}exportFromImport({module:e,request:t,exportName:s,originModule:r,asiSafe:o,isCall:i,callContext:a,importVar:l}){if(!e){return this.missingModule({request:t})}const u=e.buildMeta&&e.buildMeta.exportsType;if(!u){if(s==="default"){if(!r.buildMeta.strictHarmonyModule){if(i){return`${l}_default()`}else if(o){return`(${l}_default())`}else{return`${l}_default.a`}}else{return l}}else if(r.buildMeta.strictHarmonyModule){if(s){return"/* non-default import from non-esm module */undefined"}else{return`/*#__PURE__*/__webpack_require__.t(${l})`}}}if(u==="named"){if(s==="default"){return l}else if(!s){return`${l}_namespace`}}if(s){const t=e.isUsed(s);if(!t){const e=n.toNormalComment(`unused export ${s}`);return`${e} undefined`}const r=t!==s?n.toNormalComment(s)+" ":"";const u=`${l}[${r}${JSON.stringify(t)}]`;if(i){if(a===false&&o){return`(0,${u})`}else if(a===false){return`Object(${u})`}}return u}else{return l}}blockPromise({block:e,message:t}){if(!e||!e.chunkGroup||e.chunkGroup.chunks.length===0){const e=this.comment({message:t});return`Promise.resolve(${e.trim()})`}const s=e.chunkGroup.chunks.filter(e=>!e.hasRuntime()&&e.id!==null);const n=this.comment({message:t,chunkName:e.chunkName,chunkReason:e.chunkReason});if(s.length===1){const e=JSON.stringify(s[0].id);return`__webpack_require__.e(${n}${e})`}else if(s.length>0){const e=e=>`__webpack_require__.e(${JSON.stringify(e.id)})`;return`Promise.all(${n.trim()}[${s.map(e).join(", ")}])`}else{return`Promise.resolve(${n.trim()})`}}onError(){return"__webpack_require__.oe"}defineEsModuleFlagStatement({exportsArgument:e}){return`__webpack_require__.r(${e});\n`}}},51:function(e,t,s){"use strict";const n=s(669);const r=s(554);function Tapable(){this._pluginCompat=new r(["options"]);this._pluginCompat.tap({name:"Tapable camelCase",stage:100},e=>{e.names.add(e.name.replace(/[- ]([a-z])/g,(e,t)=>t.toUpperCase()))});this._pluginCompat.tap({name:"Tapable this.hooks",stage:200},e=>{let t;for(const s of e.names){t=this.hooks[s];if(t!==undefined){break}}if(t!==undefined){const s={name:e.fn.name||"unnamed compat plugin",stage:e.stage||0};if(e.async)t.tapAsync(s,e.fn);else t.tap(s,e.fn);return true}})}e.exports=Tapable;Tapable.addCompatLayer=function addCompatLayer(e){Tapable.call(e);e.plugin=Tapable.prototype.plugin;e.apply=Tapable.prototype.apply};Tapable.prototype.plugin=n.deprecate(function plugin(e,t){if(Array.isArray(e)){e.forEach(function(e){this.plugin(e,t)},this);return}const s=this._pluginCompat.call({name:e,fn:t,names:new Set([e])});if(!s){throw new Error(`Plugin could not be registered at '${e}'. Hook was not found.\n`+"BREAKING CHANGE: There need to exist a hook at 'this.hooks'. "+"To create a compatibility layer for this hook, hook into 'this._pluginCompat'.")}},"Tapable.plugin is deprecated. Use new API on `.hooks` instead");Tapable.prototype.apply=n.deprecate(function apply(){for(var e=0;ee(s)+r(true),onDone:t})}}const o=new AsyncParallelHookCodeFactory;class AsyncParallelHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncParallelHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncParallelHook},102:function(e,t){"use strict";const s="LOADER_EXECUTION";const n="WEBPACK_OPTIONS";t.cutOffByFlag=((e,t)=>{e=e.split("\n");for(let s=0;st.cutOffByFlag(e,s));t.cutOffWebpackOptions=(e=>t.cutOffByFlag(e,n));t.cutOffMultilineMessage=((e,t)=>{e=e.split("\n");t=t.split("\n");return e.reduce((e,s,n)=>s.includes(t[n])?e:e.concat(s),[]).join("\n")});t.cutOffMessage=((e,t)=>{const s=e.indexOf("\n");if(s===-1){return e===t?"":e}else{const n=e.substr(0,s);return n===t?e.substr(s+1):e}});t.cleanUp=((e,s)=>{e=t.cutOffLoaderExecution(e);e=t.cutOffMessage(e,s);return e});t.cleanUpWebpackOptions=((e,s)=>{e=t.cutOffWebpackOptions(e);e=t.cutOffMultilineMessage(e,s);return e})},122:function(e,t){"use strict";const s=t;s.formatSize=(e=>{if(typeof e!=="number"||Number.isNaN(e)===true){return"unknown size"}if(e<=0){return"0 bytes"}const t=["bytes","KiB","MiB","GiB"];const s=Math.floor(Math.log(e)/Math.log(1024));return`${+(e/Math.pow(1024,s)).toPrecision(3)} ${t[s]}`})},140:function(e,t,s){"use strict";const n=s(622);const r=/\\/g;const o=/[-[\]{}()*+?.,\\^$|#\s]/g;const i=/[/\\]$/;const a=/^!|!$/g;const l=/\/index.js(!|\?|\(query\))/g;const u=/!=!/;const c=e=>{return e.replace(r,"/")};const d=e=>{const t=e.replace(o,"\\$&");return new RegExp(`(^|!)${t}`,"g")};class RequestShortener{constructor(e){e=c(e);if(i.test(e)){e=e.substr(0,e.length-1)}if(e){this.currentDirectoryRegExp=d(e)}const t=n.dirname(e);const s=i.test(t);const r=s?t.substr(0,t.length-1):t;if(r&&r!==e){this.parentDirectoryRegExp=d(`${r}/`)}if(__dirname.length>=2){const e=c(n.join(__dirname,".."));const t=this.currentDirectoryRegExp&&this.currentDirectoryRegExp.test(e);this.buildinsAsModule=t;this.buildinsRegExp=d(e)}this.cache=new Map}shorten(e){if(!e)return e;const t=this.cache.get(e);if(t!==undefined){return t}let s=c(e);if(this.buildinsAsModule&&this.buildinsRegExp){s=s.replace(this.buildinsRegExp,"!(webpack)")}if(this.currentDirectoryRegExp){s=s.replace(this.currentDirectoryRegExp,"!.")}if(this.parentDirectoryRegExp){s=s.replace(this.parentDirectoryRegExp,"!../")}if(!this.buildinsAsModule&&this.buildinsRegExp){s=s.replace(this.buildinsRegExp,"!(webpack)")}s=s.replace(l,"$1");s=s.replace(a,"");s=s.replace(u," = ");this.cache.set(e,s);return s}}e.exports=RequestShortener},155:function(e){e.exports={name:"webpack",version:"4.44.1",author:"Tobias Koppers @sokra",description:"Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",license:"MIT",dependencies:{"@webassemblyjs/ast":"1.9.0","@webassemblyjs/helper-module-context":"1.9.0","@webassemblyjs/wasm-edit":"1.9.0","@webassemblyjs/wasm-parser":"1.9.0",acorn:"^6.4.1",ajv:"^6.10.2","ajv-keywords":"^3.4.1","chrome-trace-event":"^1.0.2","enhanced-resolve":"^4.3.0","eslint-scope":"^4.0.3","json-parse-better-errors":"^1.0.2","loader-runner":"^2.4.0","loader-utils":"^1.2.3","memory-fs":"^0.4.1",micromatch:"^3.1.10",mkdirp:"^0.5.3","neo-async":"^2.6.1","node-libs-browser":"^2.2.1","schema-utils":"^1.0.0",tapable:"^1.1.3","terser-webpack-plugin":"^1.4.3",watchpack:"^1.7.4","webpack-sources":"^1.4.1"},peerDependenciesMeta:{"webpack-cli":{optional:true},"webpack-command":{optional:true}},devDependencies:{"@babel/core":"^7.7.2","@types/node":"^10.12.21","@types/tapable":"^1.0.1","@types/webpack-sources":"^0.1.4","@yarnpkg/lockfile":"^1.1.0","babel-loader":"^8.0.6",benchmark:"^2.1.1","bundle-loader":"~0.5.0","coffee-loader":"^0.9.0",coffeescript:"^2.3.2",coveralls:"^3.0.2","css-loader":"^2.1.0","es6-promise-polyfill":"^1.1.1",eslint:"^5.8.0","eslint-config-prettier":"^4.0.0","eslint-plugin-jest":"^22.2.2","eslint-plugin-jsdoc":"^15.3.2","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0",express:"~4.16.4","file-loader":"^3.0.1",glob:"^7.1.3",husky:"^1.1.3","i18n-webpack-plugin":"^1.0.0",istanbul:"^0.4.5",jest:"^24.9.0","jest-junit":"^8.0.0","json-loader":"^0.5.7","json-schema-to-typescript":"^6.0.1",less:"^3.9.0","less-loader":"^4.0.3","lint-staged":"^8.0.4",lodash:"^4.17.4",prettier:"^1.14.3",pug:"^2.0.4","pug-loader":"^2.4.0","raw-loader":"^1.0.0",react:"^16.8.0","react-dom":"^16.8.0",rimraf:"^2.6.2","script-loader":"~0.7.0","simple-git":"^1.65.0","strip-ansi":"^5.2.0","style-loader":"^0.23.1",typescript:"^3.0.0-rc","url-loader":"^1.1.2","val-loader":"^1.0.2","vm-browserify":"~1.1.0","wast-loader":"^1.5.5","webpack-dev-middleware":"^3.5.1","webassembly-feature":"1.3.0","worker-loader":"^2.0.0",xxhashjs:"^0.2.1"},engines:{node:">=6.11.5"},repository:{type:"git",url:"https://github.com/webpack/webpack.git"},funding:{type:"opencollective",url:"https://opencollective.com/webpack"},homepage:"https://github.com/webpack/webpack",main:"lib/webpack.js",web:"lib/webpack.web.js",bin:"./bin/webpack.js",files:["lib/","bin/","buildin/","declarations/","hot/","web_modules/","schemas/","SECURITY.md"],scripts:{setup:"node ./setup/setup.js",test:"node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest","test:update-snapshots":"yarn jest -u","test:integration":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.test.js"',"test:basic":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js"',"test:unit":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.unittest.js"',"travis:integration":"yarn cover:integration --ci $JEST","travis:basic":"yarn cover:basic --ci $JEST","travis:lintunit":"yarn lint && yarn cover:unit --ci $JEST","travis:benchmark":"yarn benchmark --ci","appveyor:integration":"yarn cover:integration --ci %JEST%","appveyor:unit":"yarn cover:unit --ci %JEST%","appveyor:benchmark":"yarn benchmark --ci","build:examples":"cd examples && node buildAll.js",pretest:"yarn lint",prelint:"yarn setup",lint:"yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint","code-lint":"eslint . --ext '.js' --cache","type-lint":"tsc --pretty","special-lint":"node tooling/inherit-types && node tooling/format-schemas && node tooling/compile-to-definitions","special-lint-fix":"node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/compile-to-definitions --write",fix:"yarn code-lint --fix && yarn special-lint-fix",pretty:'prettier --loglevel warn --write "*.{ts,js,json,yml,yaml}" "{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.{js,json}" "test/*.js" "test/helpers/*.js" "test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js" "examples/**/webpack.config.js"',"jest-lint":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.lint.js" --no-verbose',benchmark:'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.benchmark.js" --runInBand',cover:"yarn cover:all && yarn cover:report","cover:all":"node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --coverage","cover:basic":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js" --coverage',"cover:integration":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.test.js" --coverage',"cover:unit":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.unittest.js" --coverage',"cover:report":"istanbul report"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{"*.js|{lib,setup,bin,hot,buildin,tooling,schemas}/**/*.js|test/*.js|{test,examples}/**/webpack.config.js}":["eslint --cache"]},jest:{forceExit:true,setupFilesAfterEnv:["/test/setupTestFramework.js"],testMatch:["/test/*.test.js","/test/*.unittest.js"],watchPathIgnorePatterns:["/.git","/node_modules","/test/js","/test/browsertest/js","/test/fixtures/temp-cache-fixture","/test/fixtures/temp-","/benchmark","/examples/*/dist","/coverage","/.eslintcache"],modulePathIgnorePatterns:["/.git","/node_modules/webpack/node_modules","/test/js","/test/browsertest/js","/test/fixtures/temp-cache-fixture","/test/fixtures/temp-","/benchmark","/examples/*/dist","/coverage","/.eslintcache"],transformIgnorePatterns:[""],coverageDirectory:"/coverage",coveragePathIgnorePatterns:["\\.runtime\\.js$","/test","/schemas","/node_modules"],testEnvironment:"node",coverageReporters:["json"]}}},157:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesWaterfallHookCodeFactory extends r{content({onError:e,onResult:t,onDone:s}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onResult:(e,t,s)=>{let n="";n+=`if(${t} !== undefined) {\n`;n+=`${this._args[0]} = ${t};\n`;n+=`}\n`;n+=s();return n},onDone:()=>t(this._args[0])})}}const o=new AsyncSeriesWaterfallHookCodeFactory;class AsyncSeriesWaterfallHook extends n{constructor(e){super(e);if(e.length<1)throw new Error("Waterfall hooks must have at least one argument")}compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesWaterfallHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesWaterfallHook},174:function(e,t,s){"use strict";const n=s(773);class Entrypoint extends n{constructor(e){super(e);this.runtimeChunk=undefined}isInitial(){return true}setRuntimeChunk(e){this.runtimeChunk=e}getRuntimeChunk(){return this.runtimeChunk||this.chunks[0]}replaceChunk(e,t){if(this.runtimeChunk===e)this.runtimeChunk=t;return super.replaceChunk(e,t)}}e.exports=Entrypoint},207:function(e,t,s){"use strict";const n=s(446);class ChunkRenderError extends n{constructor(e,t,s){super();this.name="ChunkRenderError";this.error=s;this.message=s.message;this.details=s.stack;this.file=t;this.chunk=e;Error.captureStackTrace(this,this.constructor)}}e.exports=ChunkRenderError},216:function(e,t,s){"use strict";const{Tapable:n,SyncWaterfallHook:r,SyncHook:o}=s(75);e.exports=class ModuleTemplate extends n{constructor(e,t){super();this.runtimeTemplate=e;this.type=t;this.hooks={content:new r(["source","module","options","dependencyTemplates"]),module:new r(["source","module","options","dependencyTemplates"]),render:new r(["source","module","options","dependencyTemplates"]),package:new r(["source","module","options","dependencyTemplates"]),hash:new o(["hash"])}}render(e,t,s){try{const n=e.source(t,this.runtimeTemplate,this.type);const r=this.hooks.content.call(n,e,s,t);const o=this.hooks.module.call(r,e,s,t);const i=this.hooks.render.call(o,e,s,t);return this.hooks.package.call(i,e,s,t)}catch(t){t.message=`${e.identifier()}\n${t.message}`;throw t}}updateHash(e){e.update("1");this.hooks.hash.call(e)}}},225:function(e){e.exports=require("next/dist/compiled/schema-utils")},230:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncParallelBailHookCodeFactory extends r{content({onError:e,onResult:t,onDone:s}){let n="";n+=`var _results = new Array(${this.options.taps.length});\n`;n+="var _checkDone = () => {\n";n+="for(var i = 0; i < _results.length; i++) {\n";n+="var item = _results[i];\n";n+="if(item === undefined) return false;\n";n+="if(item.result !== undefined) {\n";n+=t("item.result");n+="return true;\n";n+="}\n";n+="if(item.error) {\n";n+=e("item.error");n+="return true;\n";n+="}\n";n+="}\n";n+="return false;\n";n+="}\n";n+=this.callTapsParallel({onError:(e,t,s,n)=>{let r="";r+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {\n`;r+=n(true);r+="} else {\n";r+=s();r+="}\n";return r},onResult:(e,t,s,n)=>{let r="";r+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {\n`;r+=n(true);r+="} else {\n";r+=s();r+="}\n";return r},onTap:(e,t,s,n)=>{let r="";if(e>0){r+=`if(${e} >= _results.length) {\n`;r+=s();r+="} else {\n"}r+=t();if(e>0)r+="}\n";return r},onDone:s});return n}}const o=new AsyncParallelBailHookCodeFactory;class AsyncParallelBailHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncParallelBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncParallelBailHook},241:function(e){e.exports=require("next/dist/compiled/source-map")},335:function(e,t){const s=(e,t)=>{if(e.pushChunk(t)){t.addGroup(e)}};const n=(e,t)=>{if(e.addChild(t)){t.addParent(e)}};const r=(e,t)=>{if(t.addChunk(e)){e.addModule(t)}};const o=(e,t)=>{e.removeModule(t);t.removeChunk(e)};const i=(e,t)=>{if(t.addBlock(e)){e.chunkGroup=t}};t.connectChunkGroupAndChunk=s;t.connectChunkGroupParentAndChild=n;t.connectChunkAndModule=r;t.disconnectChunkAndModule=o;t.connectDependenciesBlockAndChunkGroup=i},354:function(e,t,s){"use strict";const n=s(521);const r=s(533);class SyncLoopHookCodeFactory extends r{content({onError:e,onDone:t,rethrowIfPossible:s}){return this.callTapsLooping({onError:(t,s)=>e(s),onDone:t,rethrowIfPossible:s})}}const o=new SyncLoopHookCodeFactory;class SyncLoopHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncLoopHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncLoopHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncLoopHook},367:function(e){"use strict";const t=e=>{if(e===null)return"";if(typeof e==="string")return e;if(typeof e==="number")return`${e}`;if(typeof e==="object"){if("line"in e&&"column"in e){return`${e.line}:${e.column}`}else if("line"in e){return`${e.line}:?`}else if("index"in e){return`+${e.index}`}else{return""}}return""};const s=e=>{if(e===null)return"";if(typeof e==="string")return e;if(typeof e==="number")return`${e}`;if(typeof e==="object"){if("start"in e&&e.start&&"end"in e&&e.end){if(typeof e.start==="object"&&typeof e.start.line==="number"&&typeof e.end==="object"&&typeof e.end.line==="number"&&typeof e.end.column==="number"&&e.start.line===e.end.line){return`${t(e.start)}-${e.end.column}`}else{return`${t(e.start)}-${t(e.end)}`}}if("start"in e&&e.start){return t(e.start)}if("name"in e&&"index"in e){return`${e.name}[${e.index}]`}if("name"in e){return e.name}return t(e)}return""};e.exports=s},386:function(e){e.exports=require("next/dist/compiled/neo-async")},393:function(e){"use strict";class Semaphore{constructor(e){this.available=e;this.waiters=[];this._continue=this._continue.bind(this)}acquire(e){if(this.available>0){this.available--;e()}else{this.waiters.push(e)}}release(){this.available++;if(this.waiters.length>0){process.nextTick(this._continue)}}_continue(){if(this.available>0){if(this.waiters.length>0){this.available--;const e=this.waiters.pop();e()}}}}e.exports=Semaphore},408:function(e,t,s){"use strict";const n=s(966);const r=s(591);const{Tapable:o,SyncWaterfallHook:i,SyncHook:a}=s(75);e.exports=class HotUpdateChunkTemplate extends o{constructor(e){super();this.outputOptions=e||{};this.hooks={modules:new i(["source","modules","removedModules","moduleTemplate","dependencyTemplates"]),render:new i(["source","modules","removedModules","hash","id","moduleTemplate","dependencyTemplates"]),hash:new a(["hash"])}}render(e,t,s,o,i,a){const l=new r;l.id=e;l.setModules(t);l.removedModules=s;const u=n.renderChunkModules(l,e=>typeof e.source==="function",i,a);const c=this.hooks.modules.call(u,t,s,i,a);const d=this.hooks.render.call(c,t,s,o,e,i,a);return d}updateHash(e){e.update("HotUpdateChunkTemplate");e.update("1");this.hooks.hash.call(e)}}},417:function(e){e.exports=require("crypto")},432:function(e){e.exports=require("webpack/lib/RequestShortener")},442:function(e,t,s){"use strict";const n=s(521);const r=s(533);class SyncHookCodeFactory extends r{content({onError:e,onDone:t,rethrowIfPossible:s}){return this.callTapsSeries({onError:(t,s)=>e(s),onDone:t,rethrowIfPossible:s})}}const o=new SyncHookCodeFactory;class SyncHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncHook},446:function(e,t,s){"use strict";const n=s(669).inspect.custom;class WebpackError extends Error{constructor(e){super(e);this.details=undefined;this.missing=undefined;this.origin=undefined;this.dependencies=undefined;this.module=undefined;Error.captureStackTrace(this,this.constructor)}[n](){return this.stack+(this.details?`\n${this.details}`:"")}}e.exports=WebpackError},463:function(e){"use strict";e.exports=((e,t)=>{if(typeof e==="string"){if(typeof t==="string"){if(et)return 1;return 0}else if(typeof t==="object"){return 1}else{return 0}}else if(typeof e==="object"){if(typeof t==="string"){return-1}else if(typeof t==="object"){if("start"in e&&"start"in t){const s=e.start;const n=t.start;if(s.linen.line)return 1;if(s.columnn.column)return 1}if("name"in e&&"name"in t){if(e.namet.name)return 1}if("index"in e&&"index"in t){if(e.indext.index)return 1}return 0}else{return 0}}})},464:function(e,t,s){"use strict";const n=s(521);class MultiHook{constructor(e){this.hooks=e}tap(e,t){for(const s of this.hooks){s.tap(e,t)}}tapAsync(e,t){for(const s of this.hooks){s.tapAsync(e,t)}}tapPromise(e,t){for(const s of this.hooks){s.tapPromise(e,t)}}isUsed(){for(const e of this.hooks){if(e.isUsed())return true}return false}intercept(e){for(const t of this.hooks){t.intercept(e)}}withOptions(e){return new MultiHook(this.hooks.map(t=>t.withOptions(e)))}}e.exports=MultiHook},470:function(e,t,s){"use strict";const n=s(589);e.exports=n.default},475:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Cache{constructor(e,t){this.cache=e.getCache("TerserWebpackPlugin")}isEnabled(){return true}async get(e){e.cacheIdent=e.cacheIdent||`${e.name}`;e.cacheETag=e.cacheETag||this.cache.getLazyHashedEtag(e.assetSource);return this.cache.getPromise(e.cacheIdent,e.cacheETag)}async store(e,t){return this.cache.storePromise(e.cacheIdent,e.cacheETag,t)}}t.default=Cache},486:function(e,t,s){"use strict";const n=s(847);const r=1e3;class Hash{update(e,t){throw new n}digest(e){throw new n}}t.Hash=Hash;class BulkUpdateDecorator extends Hash{constructor(e){super();this.hash=e;this.buffer=""}update(e,t){if(t!==undefined||typeof e!=="string"||e.length>r){if(this.buffer.length>0){this.hash.update(this.buffer);this.buffer=""}this.hash.update(e,t)}else{this.buffer+=e;if(this.buffer.length>r){this.hash.update(this.buffer);this.buffer=""}}return this}digest(e){if(this.buffer.length>0){this.hash.update(this.buffer)}var t=this.hash.digest(e);return typeof t==="string"?t:t.toString()}}class DebugHash extends Hash{constructor(){super();this.string=""}update(e,t){if(typeof e!=="string")e=e.toString("utf-8");this.string+=e;return this}digest(e){return this.string.replace(/[^a-z0-9]+/gi,e=>Buffer.from(e).toString("hex"))}}e.exports=(e=>{if(typeof e==="function"){return new BulkUpdateDecorator(new e)}switch(e){case"debug":return new DebugHash;default:return new BulkUpdateDecorator(s(417).createHash(e))}})},496:function(e){"use strict";class DependencyReference{constructor(e,t,s=false,n=NaN){this.module=e;this.importedNames=t;this.weak=!!s;this.order=n}static sort(e){const t=new WeakMap;let s=0;for(const n of e){t.set(n,s++)}return e.sort((e,s)=>{const n=e.order;const r=s.order;if(isNaN(n)){if(!isNaN(r)){return 1}}else{if(isNaN(r)){return-1}if(n!==r){return n-r}}const o=t.get(e);const i=t.get(s);return o-i})}}e.exports=DependencyReference},499:function(e){"use strict";class HookMap{constructor(e){this._map=new Map;this._factory=e;this._interceptors=[]}get(e){return this._map.get(e)}for(e){const t=this.get(e);if(t!==undefined){return t}let s=this._factory(e);const n=this._interceptors;for(let t=0;tt},e))}tap(e,t,s){return this.for(e).tap(t,s)}tapAsync(e,t,s){return this.for(e).tapAsync(t,s)}tapPromise(e,t,s){return this.for(e).tapPromise(t,s)}}e.exports=HookMap},503:function(e,t,s){"use strict";const{ConcatSource:n,OriginalSource:r,PrefixSource:o,RawSource:i}=s(745);const{Tapable:a,SyncWaterfallHook:l,SyncHook:u,SyncBailHook:c}=s(75);const d=s(966);e.exports=class MainTemplate extends a{constructor(e){super();this.outputOptions=e||{};this.hooks={renderManifest:new l(["result","options"]),modules:new l(["modules","chunk","hash","moduleTemplate","dependencyTemplates"]),moduleObj:new l(["source","chunk","hash","moduleIdExpression"]),requireEnsure:new l(["source","chunk","hash","chunkIdExpression"]),bootstrap:new l(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),localVars:new l(["source","chunk","hash"]),require:new l(["source","chunk","hash"]),requireExtensions:new l(["source","chunk","hash"]),beforeStartup:new l(["source","chunk","hash"]),startup:new l(["source","chunk","hash"]),afterStartup:new l(["source","chunk","hash"]),render:new l(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),renderWithEntry:new l(["source","chunk","hash"]),moduleRequire:new l(["source","chunk","hash","moduleIdExpression"]),addModule:new l(["source","chunk","hash","moduleIdExpression","moduleExpression"]),currentHash:new l(["source","requestedLength"]),assetPath:new l(["path","options","assetInfo"]),hash:new u(["hash"]),hashForChunk:new u(["hash","chunk"]),globalHashPaths:new l(["paths"]),globalHash:new c(["chunk","paths"]),hotBootstrap:new l(["source","chunk","hash"])};this.hooks.startup.tap("MainTemplate",(e,t,s)=>{const n=[];if(t.entryModule){n.push("// Load entry module and return exports");n.push(`return ${this.renderRequireFunctionForModule(s,t,JSON.stringify(t.entryModule.id))}(${this.requireFn}.s = ${JSON.stringify(t.entryModule.id)});`)}return d.asString(n)});this.hooks.render.tap("MainTemplate",(e,t,s,r,a)=>{const l=new n;l.add("/******/ (function(modules) { // webpackBootstrap\n");l.add(new o("/******/",e));l.add("/******/ })\n");l.add("/************************************************************************/\n");l.add("/******/ (");l.add(this.hooks.modules.call(new i(""),t,s,r,a));l.add(")");return l});this.hooks.localVars.tap("MainTemplate",(e,t,s)=>{return d.asString([e,"// The module cache","var installedModules = {};"])});this.hooks.require.tap("MainTemplate",(t,s,n)=>{return d.asString([t,"// Check if module is in cache","if(installedModules[moduleId]) {",d.indent("return installedModules[moduleId].exports;"),"}","// Create a new module (and put it into the cache)","var module = installedModules[moduleId] = {",d.indent(this.hooks.moduleObj.call("",s,n,"moduleId")),"};","",d.asString(e.strictModuleExceptionHandling?["// Execute the module function","var threw = true;","try {",d.indent([`modules[moduleId].call(module.exports, module, module.exports, ${this.renderRequireFunctionForModule(n,s,"moduleId")});`,"threw = false;"]),"} finally {",d.indent(["if(threw) delete installedModules[moduleId];"]),"}"]:["// Execute the module function",`modules[moduleId].call(module.exports, module, module.exports, ${this.renderRequireFunctionForModule(n,s,"moduleId")});`]),"","// Flag the module as loaded","module.l = true;","","// Return the exports of the module","return module.exports;"])});this.hooks.moduleObj.tap("MainTemplate",(e,t,s,n)=>{return d.asString(["i: moduleId,","l: false,","exports: {}"])});this.hooks.requireExtensions.tap("MainTemplate",(e,t,s)=>{const n=[];const r=t.getChunkMaps();if(Object.keys(r.hash).length){n.push("// This file contains only the entry chunk.");n.push("// The chunk loading function for additional chunks");n.push(`${this.requireFn}.e = function requireEnsure(chunkId) {`);n.push(d.indent("var promises = [];"));n.push(d.indent(this.hooks.requireEnsure.call("",t,s,"chunkId")));n.push(d.indent("return Promise.all(promises);"));n.push("};")}else if(t.hasModuleInGraph(e=>e.blocks.some(e=>e.chunkGroup&&e.chunkGroup.chunks.length>0))){n.push("// The chunk loading function for additional chunks");n.push("// Since all referenced chunks are already included");n.push("// in this file, this function is empty here.");n.push(`${this.requireFn}.e = function requireEnsure() {`);n.push(d.indent("return Promise.resolve();"));n.push("};")}n.push("");n.push("// expose the modules object (__webpack_modules__)");n.push(`${this.requireFn}.m = modules;`);n.push("");n.push("// expose the module cache");n.push(`${this.requireFn}.c = installedModules;`);n.push("");n.push("// define getter function for harmony exports");n.push(`${this.requireFn}.d = function(exports, name, getter) {`);n.push(d.indent([`if(!${this.requireFn}.o(exports, name)) {`,d.indent(["Object.defineProperty(exports, name, { enumerable: true, get: getter });"]),"}"]));n.push("};");n.push("");n.push("// define __esModule on exports");n.push(`${this.requireFn}.r = function(exports) {`);n.push(d.indent(["if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {",d.indent(["Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });"]),"}","Object.defineProperty(exports, '__esModule', { value: true });"]));n.push("};");n.push("");n.push("// create a fake namespace object");n.push("// mode & 1: value is a module id, require it");n.push("// mode & 2: merge all properties of value into the ns");n.push("// mode & 4: return value when already ns object");n.push("// mode & 8|1: behave like require");n.push(`${this.requireFn}.t = function(value, mode) {`);n.push(d.indent([`if(mode & 1) value = ${this.requireFn}(value);`,`if(mode & 8) return value;`,"if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;","var ns = Object.create(null);",`${this.requireFn}.r(ns);`,"Object.defineProperty(ns, 'default', { enumerable: true, value: value });","if(mode & 2 && typeof value != 'string') for(var key in value) "+`${this.requireFn}.d(ns, key, function(key) { `+"return value[key]; "+"}.bind(null, key));","return ns;"]));n.push("};");n.push("");n.push("// getDefaultExport function for compatibility with non-harmony modules");n.push(this.requireFn+".n = function(module) {");n.push(d.indent(["var getter = module && module.__esModule ?",d.indent(["function getDefault() { return module['default']; } :","function getModuleExports() { return module; };"]),`${this.requireFn}.d(getter, 'a', getter);`,"return getter;"]));n.push("};");n.push("");n.push("// Object.prototype.hasOwnProperty.call");n.push(`${this.requireFn}.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };`);const o=this.getPublicPath({hash:s});n.push("");n.push("// __webpack_public_path__");n.push(`${this.requireFn}.p = ${JSON.stringify(o)};`);return d.asString(n)});this.requireFn="__webpack_require__"}getRenderManifest(e){const t=[];this.hooks.renderManifest.call(t,e);return t}renderBootstrap(e,t,s,n){const r=[];r.push(this.hooks.bootstrap.call("",t,e,s,n));r.push(this.hooks.localVars.call("",t,e));r.push("");r.push("// The require function");r.push(`function ${this.requireFn}(moduleId) {`);r.push(d.indent(this.hooks.require.call("",t,e)));r.push("}");r.push("");r.push(d.asString(this.hooks.requireExtensions.call("",t,e)));r.push("");r.push(d.asString(this.hooks.beforeStartup.call("",t,e)));const o=d.asString(this.hooks.afterStartup.call("",t,e));if(o){r.push("var startupResult = (function() {")}r.push(d.asString(this.hooks.startup.call("",t,e)));if(o){r.push("})();");r.push(o);r.push("return startupResult;")}return r}render(e,t,s,o){const i=this.renderBootstrap(e,t,s,o);let a=this.hooks.render.call(new r(d.prefix(i," \t")+"\n","webpack/bootstrap"),t,e,s,o);if(t.hasEntryModule()){a=this.hooks.renderWithEntry.call(a,t,e)}if(!a){throw new Error("Compiler error: MainTemplate plugin 'render' should return something")}t.rendered=true;return new n(a,";")}renderRequireFunctionForModule(e,t,s){return this.hooks.moduleRequire.call(this.requireFn,t,e,s)}renderAddModule(e,t,s,n){return this.hooks.addModule.call(`modules[${s}] = ${n};`,t,e,s,n)}renderCurrentHashCode(e,t){t=t||Infinity;return this.hooks.currentHash.call(JSON.stringify(e.substr(0,t)),t)}getPublicPath(e){return this.hooks.assetPath.call(this.outputOptions.publicPath||"",e)}getAssetPath(e,t){return this.hooks.assetPath.call(e,t)}getAssetPathWithInfo(e,t){const s={};const n=this.hooks.assetPath.call(e,t,s);return{path:n,info:s}}updateHash(e){e.update("maintemplate");e.update("3");this.hooks.hash.call(e)}updateHashForChunk(e,t,s,n){this.updateHash(e);this.hooks.hashForChunk.call(e,t);for(const r of this.renderBootstrap("0000",t,s,n)){e.update(r)}}useChunkHash(e){const t=this.hooks.globalHashPaths.call([]);return!this.hooks.globalHash.call(e,t)}}},510:function(e,t,s){"use strict";const n=s(43);const r=s(335);const o=(e,t)=>{return t.size-e.size};const i=e=>{const t=new Map;const s=t=>{const s=e.getDependencyReference(r,t);if(!s){return}const n=s.module;if(!n){return}if(s.weak){return}a.add(n)};const n=e=>{l.push(e);i.push(e)};let r;let o;let i;let a;let l;for(const u of e.modules){i=[u];r=u;while(i.length>0){o=i.pop();a=new Set;l=[];if(o.variables){for(const e of o.variables){for(const t of e.dependencies)s(t)}}if(o.dependencies){for(const e of o.dependencies)s(e)}if(o.blocks){for(const e of o.blocks)n(e)}const e={modules:a,blocks:l};t.set(o,e)}}return t};const a=(e,t,s,r,a,l)=>{const u=e.getLogger("webpack.buildChunkGraph.visitModules");const{namedChunkGroups:c}=e;u.time("prepare");const d=i(e);const h=new Map;for(const e of t){h.set(e,{index:0,index2:0})}let f=0;let p=0;const m=new Map;const g=0;const y=1;const k=2;const b=3;const w=(e,t)=>{for(const s of t.chunks){const n=s.entryModule;e.push({action:y,block:n,module:n,chunk:s,chunkGroup:t})}s.set(t,{chunkGroup:t,minAvailableModules:new Set,minAvailableModulesOwned:true,availableModulesToBeMerged:[],skippedItems:[],resultingAvailableModules:undefined,children:undefined});return e};let _=t.reduce(w,[]).reverse();const v=new Map;const x=new Set;let $=[];u.timeEnd("prepare");let E;let M;let O;let A;let S;let C;const j=t=>{let s=m.get(t);if(s===undefined){s=c.get(t.chunkName);if(s&&s.isInitial()){e.errors.push(new n(t.chunkName,E,t.loc));s=O}else{s=e.addChunkInGroup(t.groupOptions||t.chunkName,E,t.loc,t.request);h.set(s,{index:0,index2:0});m.set(t,s);l.add(s)}}else{if(s.addOptions)s.addOptions(t.groupOptions);s.addOrigin(E,t.loc,t.request)}let o=r.get(O);if(!o)r.set(O,o=[]);o.push({block:t,chunkGroup:s});let i=v.get(O);if(i===undefined){i=new Set;v.set(O,i)}i.add(s);$.push({action:k,block:t,module:E,chunk:s.chunks[0],chunkGroup:s})};while(_.length){u.time("visiting");while(_.length){const e=_.pop();E=e.module;A=e.block;M=e.chunk;if(O!==e.chunkGroup){O=e.chunkGroup;const t=s.get(O);S=t.minAvailableModules;C=t.skippedItems}switch(e.action){case g:{if(S.has(E)){C.push(e);break}if(M.addModule(E)){E.addChunk(M)}else{break}}case y:{if(O!==undefined){const e=O.getModuleIndex(E);if(e===undefined){O.setModuleIndex(E,h.get(O).index++)}}if(E.index===null){E.index=f++}_.push({action:b,block:A,module:E,chunk:M,chunkGroup:O})}case k:{const e=d.get(A);const t=[];const s=[];for(const n of e.modules){if(M.containsModule(n)){continue}if(S.has(n)){t.push({action:g,block:n,module:n,chunk:M,chunkGroup:O});continue}s.push({action:g,block:n,module:n,chunk:M,chunkGroup:O})}for(let e=t.length-1;e>=0;e--){C.push(t[e])}for(let e=s.length-1;e>=0;e--){_.push(s[e])}for(const t of e.blocks)j(t);if(e.blocks.length>0&&E!==A){a.add(A)}break}case b:{if(O!==undefined){const e=O.getModuleIndex2(E);if(e===undefined){O.setModuleIndex2(E,h.get(O).index2++)}}if(E.index2===null){E.index2=p++}break}}}u.timeEnd("visiting");while(v.size>0){u.time("calculating available modules");for(const[e,t]of v){const n=s.get(e);let r=n.minAvailableModules;const o=new Set(r);for(const t of e.chunks){for(const e of t.modulesIterable){o.add(e)}}n.resultingAvailableModules=o;if(n.children===undefined){n.children=t}else{for(const e of t){n.children.add(e)}}for(const e of t){let t=s.get(e);if(t===undefined){t={chunkGroup:e,minAvailableModules:undefined,minAvailableModulesOwned:undefined,availableModulesToBeMerged:[],skippedItems:[],resultingAvailableModules:undefined,children:undefined};s.set(e,t)}t.availableModulesToBeMerged.push(o);x.add(t)}}v.clear();u.timeEnd("calculating available modules");if(x.size>0){u.time("merging available modules");for(const e of x){const t=e.availableModulesToBeMerged;let s=e.minAvailableModules;if(t.length>1){t.sort(o)}let n=false;for(const r of t){if(s===undefined){s=r;e.minAvailableModules=s;e.minAvailableModulesOwned=false;n=true}else{if(e.minAvailableModulesOwned){for(const e of s){if(!r.has(e)){s.delete(e);n=true}}}else{for(const t of s){if(!r.has(t)){const o=new Set;const i=s[Symbol.iterator]();let a;while(!(a=i.next()).done){const e=a.value;if(e===t)break;o.add(e)}while(!(a=i.next()).done){const e=a.value;if(r.has(e)){o.add(e)}}s=o;e.minAvailableModulesOwned=true;e.minAvailableModules=o;if(O===e.chunkGroup){S=s}n=true;break}}}}}t.length=0;if(!n)continue;for(const t of e.skippedItems){_.push(t)}e.skippedItems.length=0;if(e.children!==undefined){const t=e.chunkGroup;for(const s of e.children){let e=v.get(t);if(e===undefined){e=new Set;v.set(t,e)}e.add(s)}}}x.clear();u.timeEnd("merging available modules")}}if(_.length===0){const e=_;_=$.reverse();$=e}}};const l=(e,t,s)=>{let n;const o=(e,t)=>{for(const s of e.chunks){for(const e of s.modulesIterable){if(!t.has(e))return false}}return true};const i=t=>{const s=t.chunkGroup;if(e.has(t.block))return true;if(o(s,n)){return false}return true};for(const[e,o]of t){if(o.length===0)continue;const t=s.get(e);n=t.resultingAvailableModules;for(let t=0;t{for(const s of t){if(s.getNumberOfParents()===0){for(const t of s.chunks){const s=e.chunks.indexOf(t);if(s>=0)e.chunks.splice(s,1);t.remove("unconnected")}s.remove("unconnected")}}};const c=(e,t)=>{const s=new Map;const n=new Set;const r=new Map;const o=new Set;a(e,t,r,s,o,n);l(o,s,r);u(e,n)};e.exports=c},521:function(e){"use strict";class Hook{constructor(e){if(!Array.isArray(e))e=[];this._args=e;this.taps=[];this.interceptors=[];this.call=this._call;this.promise=this._promise;this.callAsync=this._callAsync;this._x=undefined}compile(e){throw new Error("Abstract: should be overriden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}tap(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tap(options: Object, fn: function)");e=Object.assign({type:"sync",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tap");e=this._runRegisterInterceptors(e);this._insert(e)}tapAsync(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapAsync(options: Object, fn: function)");e=Object.assign({type:"async",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapAsync");e=this._runRegisterInterceptors(e);this._insert(e)}tapPromise(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapPromise(options: Object, fn: function)");e=Object.assign({type:"promise",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapPromise");e=this._runRegisterInterceptors(e);this._insert(e)}_runRegisterInterceptors(e){for(const t of this.interceptors){if(t.register){const s=t.register(e);if(s!==undefined)e=s}}return e}withOptions(e){const t=t=>Object.assign({},e,typeof t==="string"?{name:t}:t);e=Object.assign({},e,this._withOptions);const s=this._withOptionsBase||this;const n=Object.create(s);n.tapAsync=((e,n)=>s.tapAsync(t(e),n)),n.tap=((e,n)=>s.tap(t(e),n));n.tapPromise=((e,n)=>s.tapPromise(t(e),n));n._withOptions=e;n._withOptionsBase=s;return n}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){this._resetCompilation();this.interceptors.push(Object.assign({},e));if(e.register){for(let t=0;t0){n--;const e=this.taps[n];this.taps[n+1]=e;const r=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0){continue}}if(r>s){continue}n++;break}this.taps[n]=e}}function createCompileDelegate(e,t){return function lazyCompileHook(...s){this[e]=this._createCall(t);return this[e](...s)}}Object.defineProperties(Hook.prototype,{_call:{value:createCompileDelegate("call","sync"),configurable:true,writable:true},_promise:{value:createCompileDelegate("promise","promise"),configurable:true,writable:true},_callAsync:{value:createCompileDelegate("callAsync","async"),configurable:true,writable:true}});e.exports=Hook},533:function(e){"use strict";class HookCodeFactory{constructor(e){this.config=e;this.options=undefined;this._args=undefined}create(e){this.init(e);let t;switch(this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.content({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,resultReturns:true,onDone:()=>"",rethrowIfPossible:true}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.content({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e=false;const s=this.content({onError:t=>{e=true;return`_error(${t});\n`},onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});let n="";n+='"use strict";\n';n+="return new Promise((_resolve, _reject) => {\n";if(e){n+="var _sync = true;\n";n+="function _error(_err) {\n";n+="if(_sync)\n";n+="_resolve(Promise.resolve().then(() => { throw _err; }));\n";n+="else\n";n+="_reject(_err);\n";n+="};\n"}n+=this.header();n+=s;if(e){n+="_sync = false;\n"}n+="});\n";t=new Function(this.args(),n);break}this.deinit();return t}setup(e,t){e._x=t.taps.map(e=>e.fn)}init(e){this.options=e;this._args=e.args.slice()}deinit(){this.options=undefined;this._args=undefined}header(){let e="";if(this.needContext()){e+="var _context = {};\n"}else{e+="var _context;\n"}e+="var _x = this._x;\n";if(this.options.interceptors.length>0){e+="var _taps = this.taps;\n";e+="var _interceptors = this.interceptors;\n"}for(let t=0;t {\n`;else i+=`_err${e} => {\n`;i+=`if(_err${e}) {\n`;i+=t(`_err${e}`);i+="} else {\n";if(s){i+=s(`_result${e}`)}if(n){i+=n()}i+="}\n";i+="}";o+=`_fn${e}(${this.args({before:a.context?"_context":undefined,after:i})});\n`;break;case"promise":o+=`var _hasResult${e} = false;\n`;o+=`var _promise${e} = _fn${e}(${this.args({before:a.context?"_context":undefined})});\n`;o+=`if (!_promise${e} || !_promise${e}.then)\n`;o+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`;o+=`_promise${e}.then(_result${e} => {\n`;o+=`_hasResult${e} = true;\n`;if(s){o+=s(`_result${e}`)}if(n){o+=n()}o+=`}, _err${e} => {\n`;o+=`if(_hasResult${e}) throw _err${e};\n`;o+=t(`_err${e}`);o+="});\n";break}return o}callTapsSeries({onError:e,onResult:t,resultReturns:s,onDone:n,doneReturns:r,rethrowIfPossible:o}){if(this.options.taps.length===0)return n();const i=this.options.taps.findIndex(e=>e.type!=="sync");const a=s||r||false;let l="";let u=n;for(let s=this.options.taps.length-1;s>=0;s--){const r=s;const c=u!==n&&this.options.taps[r].type!=="sync";if(c){l+=`function _next${r}() {\n`;l+=u();l+=`}\n`;u=(()=>`${a?"return ":""}_next${r}();\n`)}const d=u;const h=e=>{if(e)return"";return n()};const f=this.callTap(r,{onError:t=>e(r,t,d,h),onResult:t&&(e=>{return t(r,e,d,h)}),onDone:!t&&d,rethrowIfPossible:o&&(i<0||rf)}l+=u();return l}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:s}){if(this.options.taps.length===0)return t();const n=this.options.taps.every(e=>e.type==="sync");let r="";if(!n){r+="var _looper = () => {\n";r+="var _loopAsync = false;\n"}r+="var _loop;\n";r+="do {\n";r+="_loop = false;\n";for(let e=0;e{let o="";o+=`if(${t} !== undefined) {\n`;o+="_loop = true;\n";if(!n)o+="if(_loopAsync) _looper();\n";o+=r(true);o+=`} else {\n`;o+=s();o+=`}\n`;return o},onDone:t&&(()=>{let e="";e+="if(!_loop) {\n";e+=t();e+="}\n";return e}),rethrowIfPossible:s&&n});r+="} while(_loop);\n";if(!n){r+="_loopAsync = true;\n";r+="};\n";r+="_looper();\n"}return r}callTapsParallel({onError:e,onResult:t,onDone:s,rethrowIfPossible:n,onTap:r=((e,t)=>t())}){if(this.options.taps.length<=1){return this.callTapsSeries({onError:e,onResult:t,onDone:s,rethrowIfPossible:n})}let o="";o+="do {\n";o+=`var _counter = ${this.options.taps.length};\n`;if(s){o+="var _done = () => {\n";o+=s();o+="};\n"}for(let i=0;i{if(s)return"if(--_counter === 0) _done();\n";else return"--_counter;"};const l=e=>{if(e||!s)return"_counter = 0;\n";else return"_counter = 0;\n_done();\n"};o+="if(_counter <= 0) break;\n";o+=r(i,()=>this.callTap(i,{onError:t=>{let s="";s+="if(_counter > 0) {\n";s+=e(i,t,a,l);s+="}\n";return s},onResult:t&&(e=>{let s="";s+="if(_counter > 0) {\n";s+=t(i,e,a,l);s+="}\n";return s}),onDone:!t&&(()=>{return a()}),rethrowIfPossible:n}),a,l)}o+="} while(false);\n";return o}args({before:e,after:t}={}){let s=this._args;if(e)s=[e].concat(s);if(t)s=s.concat(t);if(s.length===0){return""}else{return s.join(", ")}}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}e.exports=HookCodeFactory},542:function(e){"use strict";class SortableSet extends Set{constructor(e,t){super(e);this._sortFn=t;this._lastActiveSortFn=null;this._cache=undefined;this._cacheOrderIndependent=undefined}add(e){this._lastActiveSortFn=null;this._invalidateCache();this._invalidateOrderedCache();super.add(e);return this}delete(e){this._invalidateCache();this._invalidateOrderedCache();return super.delete(e)}clear(){this._invalidateCache();this._invalidateOrderedCache();return super.clear()}sortWith(e){if(this.size<=1||e===this._lastActiveSortFn){return}const t=Array.from(this).sort(e);super.clear();for(let e=0;ee(s),onResult:(e,s,n)=>`if(${s} !== undefined) {\n${t(s)};\n} else {\n${n()}}\n`,resultReturns:s,onDone:n,rethrowIfPossible:r})}}const o=new SyncBailHookCodeFactory;class SyncBailHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncBailHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncBailHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncBailHook},566:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesBailHookCodeFactory extends r{content({onError:e,onResult:t,resultReturns:s,onDone:n}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onResult:(e,s,n)=>`if(${s} !== undefined) {\n${t(s)};\n} else {\n${n()}}\n`,resultReturns:s,onDone:n})}}const o=new AsyncSeriesBailHookCodeFactory;class AsyncSeriesBailHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesBailHook},582:function(e,t){"use strict";const s=Object.freeze({error:"error",warn:"warn",info:"info",log:"log",debug:"debug",trace:"trace",group:"group",groupCollapsed:"groupCollapsed",groupEnd:"groupEnd",profile:"profile",profileEnd:"profileEnd",time:"time",clear:"clear",status:"status"});t.LogType=s;const n=Symbol("webpack logger raw log method");const r=Symbol("webpack logger times");class WebpackLogger{constructor(e){this[n]=e}error(...e){this[n](s.error,e)}warn(...e){this[n](s.warn,e)}info(...e){this[n](s.info,e)}log(...e){this[n](s.log,e)}debug(...e){this[n](s.debug,e)}assert(e,...t){if(!e){this[n](s.error,t)}}trace(){this[n](s.trace,["Trace"])}clear(){this[n](s.clear)}status(...e){this[n](s.status,e)}group(...e){this[n](s.group,e)}groupCollapsed(...e){this[n](s.groupCollapsed,e)}groupEnd(...e){this[n](s.groupEnd,e)}profile(e){this[n](s.profile,[e])}profileEnd(e){this[n](s.profileEnd,[e])}time(e){this[r]=this[r]||new Map;this[r].set(e,process.hrtime())}timeLog(e){const t=this[r]&&this[r].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeLog()`)}const o=process.hrtime(t);this[n](s.time,[e,...o])}timeEnd(e){const t=this[r]&&this[r].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeEnd()`)}const o=process.hrtime(t);this[r].delete(e);this[n](s.time,[e,...o])}}t.Logger=WebpackLogger},589:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(s(622));var r=_interopRequireDefault(s(87));var o=s(241);var i=s(745);var a=_interopRequireDefault(s(432));var l=s(78);var u=_interopRequireDefault(s(225));var c=_interopRequireDefault(s(960));var d=_interopRequireDefault(s(751));var h=_interopRequireDefault(s(694));var f=_interopRequireDefault(s(733));var p=_interopRequireDefault(s(641));var m=s(812);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class TerserPlugin{constructor(e={}){(0,u.default)(p.default,e,{name:"Terser Plugin",baseDataPath:"options"});const{minify:t,terserOptions:s={},test:n=/\.m?js(\?.*)?$/i,extractComments:r=true,sourceMap:o,cache:i=true,cacheKeys:a=(e=>e),parallel:l=true,include:c,exclude:d}=e;this.options={test:n,extractComments:r,sourceMap:o,cache:i,cacheKeys:a,parallel:l,include:c,exclude:d,minify:t,terserOptions:s}}static isSourceMap(e){return Boolean(e&&e.version&&e.sources&&Array.isArray(e.sources)&&typeof e.mappings==="string")}static buildError(e,t,s,n){if(e.line){const r=s&&s.originalPositionFor({line:e.line,column:e.col});if(r&&r.source&&n){return new Error(`${t} from Terser\n${e.message} [${n.shorten(r.source)}:${r.line},${r.column}][${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}return new Error(`${t} from Terser\n${e.message} [${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}if(e.stack){return new Error(`${t} from Terser\n${e.stack}`)}return new Error(`${t} from Terser\n${e.message}`)}static isWebpack4(){return l.version[0]==="4"}static getAvailableNumberOfCores(e){const t=r.default.cpus()||{length:1};return e===true?t.length-1:Math.min(Number(e)||0,t.length-1)}static getAsset(e,t){if(e.getAsset){return e.getAsset(t)}if(e.assets[t]){return{name:t,source:e.assets[t],info:{}}}}static emitAsset(e,t,s,n){if(e.emitAsset){e.emitAsset(t,s,n)}e.assets[t]=s}static updateAsset(e,t,s,n){if(e.updateAsset){e.updateAsset(t,s,n)}e.assets[t]=s}*taskGenerator(e,t,r,u){const{info:c,source:h}=TerserPlugin.getAsset(t,u);if(c.minimized){yield false}let f;let p;if(this.options.sourceMap&&h.sourceAndMap){const{source:e,map:s}=h.sourceAndMap();f=e;if(s){if(TerserPlugin.isSourceMap(s)){p=s}else{p=s;t.warnings.push(new Error(`${u} contains invalid source map`))}}}else{f=h.source();p=null}if(Buffer.isBuffer(f)){f=f.toString()}let m=false;if(this.options.extractComments){m=this.options.extractComments.filename||"[file].LICENSE.txt[query]";let e="";let s=u;const n=s.indexOf("?");if(n>=0){e=s.substr(n);s=s.substr(0,n)}const r=s.lastIndexOf("/");const o=r===-1?s:s.substr(r+1);const i={filename:s,basename:o,query:e};m=t.getPath(m,i)}const g=s=>{let{code:l}=s;const{error:d,map:h}=s;const{extractedComments:g}=s;let y=null;if(d&&p&&TerserPlugin.isSourceMap(p)){y=new o.SourceMapConsumer(p)}if(d){t.errors.push(TerserPlugin.buildError(d,u,y,new a.default(e.context)));return}const k=m&&g&&g.length>0;const b=this.options.extractComments.banner!==false;let w;let _;if(k&&b&&l.startsWith("#!")){const e=l.indexOf("\n");_=l.substring(0,e);l=l.substring(e+1)}if(h){w=new i.SourceMapSource(l,u,h,f,p,true)}else{w=new i.RawSource(l)}const v={...c,minimized:true};if(k){let e;v.related={license:m};if(b){e=this.options.extractComments.banner||`For license information please see ${n.default.relative(n.default.dirname(u),m).replace(/\\/g,"/")}`;if(typeof e==="function"){e=e(m)}if(e){w=new i.ConcatSource(_?`${_}\n`:"",`/*! ${e} */\n`,w)}}if(!r[m]){r[m]=new Set}g.forEach(t=>{if(e&&t===`/*! ${e} */`){return}r[m].add(t)});const s=TerserPlugin.getAsset(t,m);if(s){const e=s.source.source();e.replace(/\n$/,"").split("\n\n").forEach(e=>{r[m].add(e)})}}TerserPlugin.updateAsset(t,u,w,v)};const y={name:u,input:f,inputSourceMap:p,commentsFilename:m,extractComments:this.options.extractComments,terserOptions:this.options.terserOptions,minify:this.options.minify,callback:g};if(TerserPlugin.isWebpack4()){const{outputOptions:{hashSalt:e,hashDigest:n,hashDigestLength:r,hashFunction:o}}=t;const i=l.util.createHash(o);if(e){i.update(e)}i.update(f);const a=i.digest(n);if(this.options.cache){const e={terser:d.default.version,"terser-webpack-plugin":s(721).version,"terser-webpack-plugin-options":this.options,nodeVersion:process.version,name:u,contentHash:a.substr(0,r)};y.cacheKeys=this.options.cacheKeys(e,u)}}else{y.assetSource=h}yield y}async runTasks(e,t,n){const r=TerserPlugin.getAvailableNumberOfCores(this.options.parallel);let o=Infinity;let i;if(r>0){const t=Math.min(e.length,r);o=t;i=new f.default(s.ab+"minify.js",{numWorkers:t});const n=i.getStdout();if(n){n.on("data",e=>{return process.stdout.write(e)})}const a=i.getStderr();if(a){a.on("data",e=>{return process.stderr.write(e)})}}const a=(0,h.default)(o);const l=[];for(const s of e){const e=async e=>{let t;try{t=await(i?i.transform((0,c.default)(e)):(0,m.minify)(e))}catch(e){t={error:e}}if(n.isEnabled()&&!t.error){await n.store(e,t)}e.callback(t);return t};l.push(a(async()=>{const r=t(s).next().value;if(!r){return Promise.resolve()}if(n.isEnabled()){let t;try{t=await n.get(r)}catch(t){return e(r)}if(!t){return e(r)}r.callback(t);return Promise.resolve()}return e(r)}))}await Promise.all(l);if(i){await i.end()}}apply(e){const{devtool:t,output:n,plugins:r}=e.options;this.options.sourceMap=typeof this.options.sourceMap==="undefined"?t&&!t.includes("eval")&&!t.includes("cheap")&&(t.includes("source-map")||t.includes("sourcemap"))||r&&r.some(e=>e instanceof l.SourceMapDevToolPlugin&&e.options&&e.options.columns):Boolean(this.options.sourceMap);if(typeof this.options.terserOptions.module==="undefined"&&typeof n.module!=="undefined"){this.options.terserOptions.module=n.module}if(typeof this.options.terserOptions.ecma==="undefined"&&typeof n.ecmaVersion!=="undefined"){this.options.terserOptions.ecma=n.ecmaVersion}const o=l.ModuleFilenameHelpers.matchObject.bind(undefined,this.options);const a=async(t,n)=>{let r;if(TerserPlugin.isWebpack4()){r=[].concat(Array.from(t.additionalChunkAssets||[])).concat(Array.from(n).reduce((e,t)=>e.concat(Array.from(t.files||[])),[])).concat(Object.keys(t.assets)).filter((e,t,s)=>s.indexOf(e)===t).filter(e=>o(e))}else{r=[].concat(Object.keys(n)).filter(e=>o(e))}if(r.length===0){return Promise.resolve()}const a={};const l=this.taskGenerator.bind(this,e,t,a);const u=TerserPlugin.isWebpack4()?s(722).default:s(475).default;const c=new u(t,{cache:this.options.cache});await this.runTasks(r,l,c);Object.keys(a).forEach(e=>{const s=Array.from(a[e]).sort().join("\n\n");TerserPlugin.emitAsset(t,e,new i.RawSource(`${s}\n`))});return Promise.resolve()};const u=this.constructor.name;e.hooks.compilation.tap(u,e=>{if(this.options.sourceMap){e.hooks.buildModule.tap(u,e=>{e.useSourceMap=true})}if(TerserPlugin.isWebpack4()){const{mainTemplate:t,chunkTemplate:s}=e;const n=(0,c.default)({terser:d.default.version,terserOptions:this.options.terserOptions});for(const e of[t,s]){e.hooks.hashForChunk.tap(u,e=>{e.update("TerserPlugin");e.update(n)})}e.hooks.optimizeChunkAssets.tapPromise(u,a.bind(this,e))}else{const t=s(980);const n=l.javascript.JavascriptModulesPlugin.getCompilationHooks(e);const r=(0,c.default)({terser:d.default.version,terserOptions:this.options.terserOptions});n.chunkHash.tap(u,(e,t)=>{t.update("TerserPlugin");t.update(r)});e.hooks.processAssets.tapPromise({name:u,stage:t.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE},a.bind(this,e));e.hooks.statsPrinter.tap(u,e=>{e.hooks.print.for("asset.info.minimized").tap("terser-webpack-plugin",(e,{green:t,formatFlag:s})=>e?t(s("minimized")):undefined)})}})}}var g=TerserPlugin;t.default=g},591:function(e,t,s){"use strict";const n=s(886);class HotUpdateChunk extends n{constructor(){super();this.removedModules=undefined}}e.exports=HotUpdateChunk},622:function(e){e.exports=require("path")},638:function(e,t,s){"use strict";const n=s(446);class EntryModuleNotFoundError extends n{constructor(e){super("Entry module not found: "+e);this.name="EntryModuleNotFoundError";this.details=e.details;this.error=e;Error.captureStackTrace(this,this.constructor)}}e.exports=EntryModuleNotFoundError},641:function(e){e.exports={definitions:{Rule:{description:"Filtering rule as regex or string.",anyOf:[{instanceof:"RegExp",tsType:"RegExp"},{type:"string",minLength:1}]},Rules:{description:"Filtering rules.",anyOf:[{type:"array",items:{description:"A rule condition.",oneOf:[{$ref:"#/definitions/Rule"}]}},{$ref:"#/definitions/Rule"}]}},title:"TerserPluginOptions",type:"object",additionalProperties:false,properties:{test:{description:"Include all modules that pass test assertion.",oneOf:[{$ref:"#/definitions/Rules"}]},include:{description:"Include all modules matching any of these conditions.",oneOf:[{$ref:"#/definitions/Rules"}]},exclude:{description:"Exclude all modules matching any of these conditions.",oneOf:[{$ref:"#/definitions/Rules"}]},cache:{description:"Enable file caching. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",anyOf:[{type:"boolean"},{type:"string"}]},cacheKeys:{description:"Allows you to override default cache keys. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",instanceof:"Function"},parallel:{description:"Use multi-process parallel running to improve the build speed.",anyOf:[{type:"boolean"},{type:"integer"}]},sourceMap:{description:"Enables/Disables generation of source maps.",type:"boolean"},minify:{description:"Allows you to override default minify function.",instanceof:"Function"},terserOptions:{description:"Options for `terser`.",additionalProperties:true,type:"object"},extractComments:{description:"Whether comments shall be extracted to a separate file.",anyOf:[{type:"boolean"},{type:"string"},{instanceof:"RegExp"},{instanceof:"Function"},{additionalProperties:false,properties:{condition:{anyOf:[{type:"boolean"},{type:"string"},{instanceof:"RegExp"},{instanceof:"Function"}]},filename:{anyOf:[{type:"string"},{instanceof:"Function"}]},banner:{anyOf:[{type:"boolean"},{type:"string"},{instanceof:"Function"}]}},type:"object"}]}}}},645:function(e,t,s){"use strict";const n=s(446);class ModuleNotFoundError extends n{constructor(e,t){super("Module not found: "+t);this.name="ModuleNotFoundError";this.details=t.details;this.missing=t.missing;this.module=e;this.error=t;Error.captureStackTrace(this,this.constructor)}}e.exports=ModuleNotFoundError},647:function(e,t,s){"use strict";const n=s(446);e.exports=class ModuleDependencyWarning extends n{constructor(e,t,s){super(t.message);this.name="ModuleDependencyWarning";this.details=t.stack.split("\n").slice(1).join("\n");this.module=e;this.loc=s;this.error=t;this.origin=e.issuer;Error.captureStackTrace(this,this.constructor)}}},656:function(e,t){"use strict";const s=e=>{if(e.length===0)return new Set;if(e.length===1)return new Set(e[0]);let t=Infinity;let s=-1;for(let n=0;n{if(e.sizee(s),onResult:(e,t,s)=>{let n="";n+=`if(${t} !== undefined) {\n`;n+=`${this._args[0]} = ${t};\n`;n+=`}\n`;n+=s();return n},onDone:()=>t(this._args[0]),doneReturns:s,rethrowIfPossible:n})}}const o=new SyncWaterfallHookCodeFactory;class SyncWaterfallHook extends n{constructor(e){super(e);if(e.length<1)throw new Error("Waterfall hooks must have at least one argument")}tapAsync(){throw new Error("tapAsync is not supported on a SyncWaterfallHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncWaterfallHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncWaterfallHook},694:function(e,t,s){"use strict";const n=s(813);const r=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=[];let s=0;const r=()=>{s--;if(t.length>0){t.shift()()}};const o=async(e,t,...o)=>{s++;const i=n(e,...o);t(i);try{await i}catch{}r()};const i=(n,r,...i)=>{t.push(o.bind(null,n,r,...i));(async()=>{await Promise.resolve();if(s0){t.shift()()}})()};const a=(e,...t)=>new Promise(s=>i(e,s,...t));Object.defineProperties(a,{activeCount:{get:()=>s},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}});return a};e.exports=r},696:function(e,t,s){"use strict";const n=s(669);const r=s(463);const o=s(496);class Dependency{constructor(){this.module=null;this.weak=false;this.optional=false;this.loc=undefined}getResourceIdentifier(){return null}getReference(){if(!this.module)return null;return new o(this.module,true,this.weak)}getExports(){return null}getWarnings(){return null}getErrors(){return null}updateHash(e){e.update((this.module&&this.module.id)+"")}disconnect(){this.module=null}}Dependency.compare=n.deprecate((e,t)=>r(e.loc,t.loc),"Dependency.compare is deprecated and will be removed in the next major version");e.exports=Dependency},721:function(e){e.exports={name:"terser-webpack-plugin",version:"4.1.0",description:"Terser plugin for webpack",license:"MIT",repository:"webpack-contrib/terser-webpack-plugin",author:"webpack Contrib Team",homepage:"https://github.com/webpack-contrib/terser-webpack-plugin",bugs:"https://github.com/webpack-contrib/terser-webpack-plugin/issues",funding:{type:"opencollective",url:"https://opencollective.com/webpack"},main:"dist/cjs.js",engines:{node:">= 10.13.0"},scripts:{start:"npm run build -- -w",clean:"del-cli dist",prebuild:"npm run clean",build:"cross-env NODE_ENV=production babel src -d dist --copy-files",commitlint:"commitlint --from=master",security:"npm audit","lint:prettier":"prettier --list-different .","lint:js":"eslint --cache .",lint:'npm-run-all -l -p "lint:**"',"test:only":"cross-env NODE_ENV=test jest","test:watch":"npm run test:only -- --watch","test:coverage":'npm run test:only -- --collectCoverageFrom="src/**/*.js" --coverage',pretest:"npm run lint",test:"npm run test:coverage",prepare:"npm run build",release:"standard-version",defaults:"webpack-defaults"},files:["dist"],peerDependencies:{webpack:"^4.0.0 || ^5.0.0"},dependencies:{cacache:"^15.0.5","find-cache-dir":"^3.3.1","jest-worker":"^26.3.0","p-limit":"^3.0.2","schema-utils":"^2.6.6","serialize-javascript":"^4.0.0","source-map":"^0.6.1",terser:"^5.0.0","webpack-sources":"^1.4.3"},devDependencies:{"@babel/cli":"^7.10.5","@babel/core":"^7.11.1","@babel/preset-env":"^7.11.0","@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.1","@webpack-contrib/defaults":"^6.3.0","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^26.3.0","copy-webpack-plugin":"^6.0.3","cross-env":"^7.0.2",del:"^5.1.0","del-cli":"^3.0.1",eslint:"^7.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.21.2","file-loader":"^6.0.0",husky:"^4.2.5",jest:"^26.3.0","lint-staged":"^10.2.11",memfs:"^3.2.0","npm-run-all":"^4.1.5",prettier:"^2.0.5","standard-version":"^8.0.2","uglify-js":"^3.10.0",webpack:"^4.44.1","worker-loader":"^3.0.1"},keywords:["uglify","uglify-js","uglify-es","terser","webpack","webpack-plugin","minification","compress","compressor","min","minification","minifier","minify","optimize","optimizer"]}},722:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(s(87));var r=_interopRequireDefault(s(801));var o=_interopRequireDefault(s(844));var i=_interopRequireDefault(s(960));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Webpack4Cache{constructor(e,t){this.cacheDir=t.cache===true?Webpack4Cache.getCacheDirectory():t.cache}static getCacheDirectory(){return(0,o.default)({name:"terser-webpack-plugin"})||n.default.tmpdir()}isEnabled(){return Boolean(this.cacheDir)}async get(e){e.cacheIdent=e.cacheIdent||(0,i.default)(e.cacheKeys);const{data:t}=await r.default.get(this.cacheDir,e.cacheIdent);return JSON.parse(t)}async store(e,t){return r.default.put(this.cacheDir,e.cacheIdent,JSON.stringify(t))}}t.default=Webpack4Cache},733:function(e){e.exports=require("jest-worker")},742:function(e,t,s){"use strict";const n=s(696);class ModuleDependency extends n{constructor(e){super();this.request=e;this.userRequest=e}getResourceIdentifier(){return`module${this.request}`}}e.exports=ModuleDependency},743:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesHookCodeFactory extends r{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onDone:t})}}const o=new AsyncSeriesHookCodeFactory;class AsyncSeriesHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesHook},745:function(e){e.exports=require("webpack-sources")},751:function(e){e.exports={name:"terser",description:"JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",homepage:"https://terser.org",author:"Mihai Bazon (http://lisperator.net/)",license:"BSD-2-Clause",version:"5.1.0",engines:{node:">=6.0.0"},maintainers:["Fábio Santos "],repository:"https://github.com/terser/terser",main:"dist/bundle.min.js",type:"module",exports:{".":{import:"./main.js",require:"./dist/bundle.min.js"},"./package":{default:"./package.json"},"./package.json":{default:"./package.json"}},types:"tools/terser.d.ts",bin:{terser:"bin/terser"},files:["bin","dist","lib","tools","LICENSE","README.md","CHANGELOG.md","PATRONS.md","main.js"],dependencies:{commander:"^2.20.0","source-map":"~0.6.1","source-map-support":"~0.5.12"},devDependencies:{"@ls-lint/ls-lint":"^1.9.2",acorn:"^7.4.0",astring:"^1.4.1",eslint:"^7.0.0",eslump:"^2.0.0",esm:"^3.2.25",mocha:"^8.0.0","pre-commit":"^1.2.2",rimraf:"^3.0.0",rollup:"2.0.6",semver:"^7.1.3"},scripts:{test:"node test/compress.js && mocha test/mocha","test:compress":"node test/compress.js","test:mocha":"mocha test/mocha",lint:"eslint lib","lint-fix":"eslint --fix lib","ls-lint":"ls-lint",build:"rimraf dist/bundle* && rollup --config --silent",prepare:"npm run build",postversion:"echo 'Remember to update the changelog!'"},keywords:["uglify","terser","uglify-es","uglify-js","minify","minifier","javascript","ecmascript","es5","es6","es7","es8","es2015","es2016","es2017","async","await"],eslintConfig:{parserOptions:{sourceType:"module",ecmaVersion:"2020"},env:{node:true,browser:true,es2020:true},globals:{describe:false,it:false,require:false,global:false,process:false},rules:{"brace-style":["error","1tbs",{allowSingleLine:true}],quotes:["error","double","avoid-escape"],"no-debugger":"error","no-undef":"error","no-unused-vars":["error",{varsIgnorePattern:"^_$"}],"no-tabs":"error",semi:["error","always"],"no-extra-semi":"error","no-irregular-whitespace":"error","space-before-blocks":["error","always"]}},"pre-commit":["lint-fix","ls-lint","test"]}},773:function(e,t,s){"use strict";const n=s(542);const r=s(463);let o=5e3;const i=e=>Array.from(e);const a=(e,t)=>{if(e.id{const s=e.module?e.module.identifier():"";const n=t.module?t.module.identifier():"";if(sn)return 1;return r(e.loc,t.loc)};class ChunkGroup{constructor(e){if(typeof e==="string"){e={name:e}}else if(!e){e={name:undefined}}this.groupDebugId=o++;this.options=e;this._children=new n(undefined,a);this._parents=new n(undefined,a);this._blocks=new n;this.chunks=[];this.origins=[];this._moduleIndices=new Map;this._moduleIndices2=new Map}addOptions(e){for(const t of Object.keys(e)){if(this.options[t]===undefined){this.options[t]=e[t]}else if(this.options[t]!==e[t]){if(t.endsWith("Order")){this.options[t]=Math.max(this.options[t],e[t])}else{throw new Error(`ChunkGroup.addOptions: No option merge strategy for ${t}`)}}}}get name(){return this.options.name}set name(e){this.options.name=e}get debugId(){return Array.from(this.chunks,e=>e.debugId).join("+")}get id(){return Array.from(this.chunks,e=>e.id).join("+")}unshiftChunk(e){const t=this.chunks.indexOf(e);if(t>0){this.chunks.splice(t,1);this.chunks.unshift(e)}else if(t<0){this.chunks.unshift(e);return true}return false}insertChunk(e,t){const s=this.chunks.indexOf(e);const n=this.chunks.indexOf(t);if(n<0){throw new Error("before chunk not found")}if(s>=0&&s>n){this.chunks.splice(s,1);this.chunks.splice(n,0,e)}else if(s<0){this.chunks.splice(n,0,e);return true}return false}pushChunk(e){const t=this.chunks.indexOf(e);if(t>=0){return false}this.chunks.push(e);return true}replaceChunk(e,t){const s=this.chunks.indexOf(e);if(s<0)return false;const n=this.chunks.indexOf(t);if(n<0){this.chunks[s]=t;return true}if(n=0){this.chunks.splice(t,1);return true}return false}isInitial(){return false}addChild(e){if(this._children.has(e)){return false}this._children.add(e);return true}getChildren(){return this._children.getFromCache(i)}getNumberOfChildren(){return this._children.size}get childrenIterable(){return this._children}removeChild(e){if(!this._children.has(e)){return false}this._children.delete(e);e.removeParent(this);return true}addParent(e){if(!this._parents.has(e)){this._parents.add(e);return true}return false}getParents(){return this._parents.getFromCache(i)}setParents(e){this._parents.clear();for(const t of e){this._parents.add(t)}}getNumberOfParents(){return this._parents.size}hasParent(e){return this._parents.has(e)}get parentsIterable(){return this._parents}removeParent(e){if(this._parents.delete(e)){e.removeChunk(this);return true}return false}getBlocks(){return this._blocks.getFromCache(i)}getNumberOfBlocks(){return this._blocks.size}hasBlock(e){return this._blocks.has(e)}get blocksIterable(){return this._blocks}addBlock(e){if(!this._blocks.has(e)){this._blocks.add(e);return true}return false}addOrigin(e,t,s){this.origins.push({module:e,loc:t,request:s})}containsModule(e){for(const t of this.chunks){if(t.containsModule(e))return true}return false}getFiles(){const e=new Set;for(const t of this.chunks){for(const s of t.files){e.add(s)}}return Array.from(e)}remove(e){for(const e of this._parents){e._children.delete(this);for(const t of this._children){t.addParent(e);e.addChild(t)}}for(const e of this._children){e._parents.delete(this)}for(const e of this._blocks){e.chunkGroup=null}for(const e of this.chunks){e.removeGroup(this)}}sortItems(){this.origins.sort(l);this._parents.sort();this._children.sort()}compareTo(e){if(this.chunks.length>e.chunks.length)return-1;if(this.chunks.length{const s=t.order-e.order;if(s!==0)return s;if(e.group.compareTo){return e.group.compareTo(t.group)}return 0});t[s]=n.map(e=>e.group)}return t}setModuleIndex(e,t){this._moduleIndices.set(e,t)}getModuleIndex(e){return this._moduleIndices.get(e)}setModuleIndex2(e,t){this._moduleIndices2.set(e,t)}getModuleIndex2(e){return this._moduleIndices2.get(e)}checkConstraints(){const e=this;for(const t of e._children){if(!t._parents.has(e)){throw new Error(`checkConstraints: child missing parent ${e.debugId} -> ${t.debugId}`)}}for(const t of e._parents){if(!t._children.has(e)){throw new Error(`checkConstraints: parent missing child ${t.debugId} <- ${e.debugId}`)}}}}e.exports=ChunkGroup},775:function(e){e.exports=require("next/dist/compiled/terser")},788:function(e,t,s){"use strict";const n=s(140);const r=s(122);const o=s(367);const i=s(832);const a=s(463);const{LogType:l}=s(582);const u=(...e)=>{let t=[];t.push(...e);return t.find(e=>e!==undefined)};const c=(e,t)=>{if(typeof e!==typeof t){return typeof et)return 1;return 0};class Stats{constructor(e){this.compilation=e;this.hash=e.hash;this.startTime=undefined;this.endTime=undefined}static filterWarnings(e,t){if(!t){return e}const s=[].concat(t).map(e=>{if(typeof e==="string"){return t=>t.includes(e)}if(e instanceof RegExp){return t=>e.test(t)}if(typeof e==="function"){return e}throw new Error(`Can only filter warnings with Strings or RegExps. (Given: ${e})`)});return e.filter(e=>{return!s.some(t=>t(e))})}formatFilePath(e){const t=/^(\s|\S)*!/;return e.includes("!")?`${e.replace(t,"")} (${e})`:`${e}`}hasWarnings(){return this.compilation.warnings.length>0||this.compilation.children.some(e=>e.getStats().hasWarnings())}hasErrors(){return this.compilation.errors.length>0||this.compilation.children.some(e=>e.getStats().hasErrors())}normalizeFieldKey(e){if(e[0]==="!"){return e.substr(1)}return e}sortOrderRegular(e){if(e[0]==="!"){return false}return true}toJson(e,t){if(typeof e==="boolean"||typeof e==="string"){e=Stats.presetToOptions(e)}else if(!e){e={}}const r=(t,s)=>t!==undefined?t:e.all!==undefined?e.all:s;const d=e=>{if(typeof e==="string"){const t=new RegExp(`[\\\\/]${e.replace(/[-[\]{}()*+?.\\^$|]/g,"\\$&")}([\\\\/]|$|!|\\?)`);return e=>t.test(e)}if(e&&typeof e==="object"&&typeof e.test==="function"){return t=>e.test(t)}if(typeof e==="function"){return e}if(typeof e==="boolean"){return()=>e}};const h=this.compilation;const f=u(e.context,h.compiler.context);const p=h.compiler.context===f?h.requestShortener:new n(f);const m=r(e.performance,true);const g=r(e.hash,true);const y=r(e.env,false);const k=r(e.version,true);const b=r(e.timings,true);const w=r(e.builtAt,true);const _=r(e.assets,true);const v=r(e.entrypoints,true);const x=r(e.chunkGroups,!t);const $=r(e.chunks,!t);const E=r(e.chunkModules,true);const M=r(e.chunkOrigins,!t);const O=r(e.modules,true);const A=r(e.nestedModules,true);const S=r(e.moduleAssets,!t);const C=r(e.depth,!t);const j=r(e.cached,true);const T=r(e.cachedAssets,true);const I=r(e.reasons,!t);const D=r(e.usedExports,!t);const P=r(e.providedExports,!t);const R=r(e.optimizationBailout,!t);const H=r(e.children,true);const z=r(e.source,!t);const q=r(e.moduleTrace,true);const B=r(e.errors,true);const F=r(e.errorDetails,!t);const G=r(e.warnings,true);const N=u(e.warningsFilter,null);const W=r(e.publicPath,!t);const U=r(e.logging,t?"info":true);const L=r(e.loggingTrace,!t);const J=[].concat(u(e.loggingDebug,[])).map(d);const Z=[].concat(u(e.excludeModules,e.exclude,[])).map(d);const K=[].concat(u(e.excludeAssets,[])).map(d);const Q=u(e.maxModules,t?15:Infinity);const X=u(e.modulesSort,"id");const Y=u(e.chunksSort,"id");const V=u(e.assetsSort,"");const ee=r(e.outputPath,!t);if(!j){Z.push((e,t)=>!t.built)}const te=()=>{let e=0;return t=>{if(Z.length>0){const e=p.shorten(t.resource);const s=Z.some(s=>s(e,t));if(s)return false}const s=e{return e=>{if(K.length>0){const t=e.name;const s=K.some(s=>s(t,e));if(s)return false}return T||e.emitted}};const ne=(e,t,s)=>{if(t[e]===null&&s[e]===null)return 0;if(t[e]===null)return 1;if(s[e]===null)return-1;if(t[e]===s[e])return 0;if(typeof t[e]!==typeof s[e])return typeof t[e]{const s=t.reduce((e,t,s)=>{e.set(t,s);return e},new Map);return(t,n)=>{if(e){const s=this.normalizeFieldKey(e);const r=this.sortOrderRegular(e);const o=ne(s,r?t:n,r?n:t);if(o)return o}return s.get(t)-s.get(n)}};const oe=e=>{let t="";if(typeof e==="string"){e={message:e}}if(e.chunk){t+=`chunk ${e.chunk.name||e.chunk.id}${e.chunk.hasRuntime()?" [entry]":e.chunk.canBeInitial()?" [initial]":""}\n`}if(e.file){t+=`${e.file}\n`}if(e.module&&e.module.readableIdentifier&&typeof e.module.readableIdentifier==="function"){t+=this.formatFilePath(e.module.readableIdentifier(p));if(typeof e.loc==="object"){const s=o(e.loc);if(s)t+=` ${s}`}t+="\n"}t+=e.message;if(F&&e.details){t+=`\n${e.details}`}if(F&&e.missing){t+=e.missing.map(e=>`\n[${e}]`).join("")}if(q&&e.origin){t+=`\n @ ${this.formatFilePath(e.origin.readableIdentifier(p))}`;if(typeof e.originLoc==="object"){const s=o(e.originLoc);if(s)t+=` ${s}`}if(e.dependencies){for(const s of e.dependencies){if(!s.loc)continue;if(typeof s.loc==="string")continue;const e=o(s.loc);if(!e)continue;t+=` ${e}`}}let s=e.origin;while(s.issuer){s=s.issuer;t+=`\n @ ${s.readableIdentifier(p)}`}}return t};const ie={errors:h.errors.map(oe),warnings:Stats.filterWarnings(h.warnings.map(oe),N)};Object.defineProperty(ie,"_showWarnings",{value:G,enumerable:false});Object.defineProperty(ie,"_showErrors",{value:B,enumerable:false});if(k){ie.version=s(155).version}if(g)ie.hash=this.hash;if(b&&this.startTime&&this.endTime){ie.time=this.endTime-this.startTime}if(w&&this.endTime){ie.builtAt=this.endTime}if(y&&e._env){ie.env=e._env}if(h.needAdditionalPass){ie.needAdditionalPass=true}if(W){ie.publicPath=this.compilation.mainTemplate.getPublicPath({hash:this.compilation.hash})}if(ee){ie.outputPath=this.compilation.mainTemplate.outputOptions.path}if(_){const e={};const t=h.getAssets().sort((e,t)=>e.name{const r={name:t,size:s.size(),chunks:[],chunkNames:[],info:n,emitted:s.emitted||h.emittedAssets.has(t)};if(m){r.isOverSizeLimit=s.isOverSizeLimit}e[t]=r;return r}).filter(se());ie.filteredAssets=t.length-ie.assets.length;for(const t of h.chunks){for(const s of t.files){if(e[s]){for(const n of t.ids){e[s].chunks.push(n)}if(t.name){e[s].chunkNames.push(t.name);if(ie.assetsByChunkName[t.name]){ie.assetsByChunkName[t.name]=[].concat(ie.assetsByChunkName[t.name]).concat([s])}else{ie.assetsByChunkName[t.name]=s}}}}}ie.assets.sort(re(V,ie.assets))}const ae=e=>{const t={};for(const s of e){const e=s[0];const n=s[1];const r=n.getChildrenByOrders();t[e]={chunks:n.chunks.map(e=>e.id),assets:n.chunks.reduce((e,t)=>e.concat(t.files||[]),[]),children:Object.keys(r).reduce((e,t)=>{const s=r[t];e[t]=s.map(e=>({name:e.name,chunks:e.chunks.map(e=>e.id),assets:e.chunks.reduce((e,t)=>e.concat(t.files||[]),[])}));return e},Object.create(null)),childAssets:Object.keys(r).reduce((e,t)=>{const s=r[t];e[t]=Array.from(s.reduce((e,t)=>{for(const s of t.chunks){for(const t of s.files){e.add(t)}}return e},new Set));return e},Object.create(null))};if(m){t[e].isOverSizeLimit=n.isOverSizeLimit}}return t};if(v){ie.entrypoints=ae(h.entrypoints)}if(x){ie.namedChunkGroups=ae(h.namedChunkGroups)}const le=e=>{const t=[];let s=e;while(s.issuer){t.push(s=s.issuer)}t.reverse();const n={id:e.id,identifier:e.identifier(),name:e.readableIdentifier(p),index:e.index,index2:e.index2,size:e.size(),cacheable:e.buildInfo.cacheable,built:!!e.built,optional:e.optional,prefetched:e.prefetched,chunks:Array.from(e.chunksIterable,e=>e.id),issuer:e.issuer&&e.issuer.identifier(),issuerId:e.issuer&&e.issuer.id,issuerName:e.issuer&&e.issuer.readableIdentifier(p),issuerPath:e.issuer&&t.map(e=>({id:e.id,identifier:e.identifier(),name:e.readableIdentifier(p),profile:e.profile})),profile:e.profile,failed:!!e.error,errors:e.errors?e.errors.length:0,warnings:e.warnings?e.warnings.length:0};if(S){n.assets=Object.keys(e.buildInfo.assets||{})}if(I){n.reasons=e.reasons.sort((e,t)=>{if(e.module&&!t.module)return-1;if(!e.module&&t.module)return 1;if(e.module&&t.module){const s=c(e.module.id,t.module.id);if(s)return s}if(e.dependency&&!t.dependency)return-1;if(!e.dependency&&t.dependency)return 1;if(e.dependency&&t.dependency){const s=a(e.dependency.loc,t.dependency.loc);if(s)return s;if(e.dependency.typet.dependency.type)return 1}return 0}).map(e=>{const t={moduleId:e.module?e.module.id:null,moduleIdentifier:e.module?e.module.identifier():null,module:e.module?e.module.readableIdentifier(p):null,moduleName:e.module?e.module.readableIdentifier(p):null,type:e.dependency?e.dependency.type:null,explanation:e.explanation,userRequest:e.dependency?e.dependency.userRequest:null};if(e.dependency){const s=o(e.dependency.loc);if(s){t.loc=s}}return t})}if(D){if(e.used===true){n.usedExports=e.usedExports}else if(e.used===false){n.usedExports=false}}if(P){n.providedExports=Array.isArray(e.buildMeta.providedExports)?e.buildMeta.providedExports:null}if(R){n.optimizationBailout=e.optimizationBailout.map(e=>{if(typeof e==="function")return e(p);return e})}if(C){n.depth=e.depth}if(A){if(e.modules){const t=e.modules;n.modules=t.sort(re("depth",t)).filter(te()).map(le);n.filteredModules=t.length-n.modules.length;n.modules.sort(re(X,n.modules))}}if(z&&e._source){n.source=e._source.source()}return n};if($){ie.chunks=h.chunks.map(e=>{const t=new Set;const s=new Set;const n=new Set;const r=e.getChildIdsByOrders();for(const r of e.groupsIterable){for(const e of r.parentsIterable){for(const s of e.chunks){t.add(s.id)}}for(const e of r.childrenIterable){for(const t of e.chunks){s.add(t.id)}}for(const t of r.chunks){if(t!==e)n.add(t.id)}}const i={id:e.id,rendered:e.rendered,initial:e.canBeInitial(),entry:e.hasRuntime(),recorded:e.recorded,reason:e.chunkReason,size:e.modulesSize(),names:e.name?[e.name]:[],files:e.files.slice(),hash:e.renderedHash,siblings:Array.from(n).sort(c),parents:Array.from(t).sort(c),children:Array.from(s).sort(c),childrenByOrder:r};if(E){const t=e.getModules();i.modules=t.slice().sort(re("depth",t)).filter(te()).map(le);i.filteredModules=e.getNumberOfModules()-i.modules.length;i.modules.sort(re(X,i.modules))}if(M){i.origins=Array.from(e.groupsIterable,e=>e.origins).reduce((e,t)=>e.concat(t),[]).map(e=>({moduleId:e.module?e.module.id:undefined,module:e.module?e.module.identifier():"",moduleIdentifier:e.module?e.module.identifier():"",moduleName:e.module?e.module.readableIdentifier(p):"",loc:o(e.loc),request:e.request,reasons:e.reasons||[]})).sort((e,t)=>{const s=c(e.moduleId,t.moduleId);if(s)return s;const n=c(e.loc,t.loc);if(n)return n;const r=c(e.request,t.request);if(r)return r;return 0})}return i});ie.chunks.sort(re(Y,ie.chunks))}if(O){ie.modules=h.modules.slice().sort(re("depth",h.modules)).filter(te()).map(le);ie.filteredModules=h.modules.length-ie.modules.length;ie.modules.sort(re(X,ie.modules))}if(U){const e=s(669);ie.logging={};let t;let n=false;switch(U){case"none":t=new Set([]);break;case"error":t=new Set([l.error]);break;case"warn":t=new Set([l.error,l.warn]);break;case"info":t=new Set([l.error,l.warn,l.info]);break;case true:case"log":t=new Set([l.error,l.warn,l.info,l.log,l.group,l.groupEnd,l.groupCollapsed,l.clear]);break;case"verbose":t=new Set([l.error,l.warn,l.info,l.log,l.group,l.groupEnd,l.groupCollapsed,l.profile,l.profileEnd,l.time,l.status,l.clear]);n=true;break}for(const[s,r]of h.logging){const o=J.some(e=>e(s));let a=0;let u=r;if(!o){u=u.filter(e=>{if(!t.has(e.type))return false;if(!n){switch(e.type){case l.groupCollapsed:a++;return a===1;case l.group:if(a>0)a++;return a===0;case l.groupEnd:if(a>0){a--;return false}return true;default:return a===0}}return true})}u=u.map(t=>{let s=undefined;if(t.type===l.time){s=`${t.args[0]}: ${t.args[1]*1e3+t.args[2]/1e6}ms`}else if(t.args&&t.args.length>0){s=e.format(t.args[0],...t.args.slice(1))}return{type:(o||n)&&t.type===l.groupCollapsed?l.group:t.type,message:s,trace:L&&t.trace?t.trace:undefined}});let c=i.makePathsRelative(f,s,h.cache).replace(/\|/g," ");if(c in ie.logging){let e=1;while(`${c}#${e}`in ie.logging){e++}c=`${c}#${e}`}ie.logging[c]={entries:u,filteredEntries:r.length-u.length,debug:o}}}if(H){ie.children=h.children.map((s,n)=>{const r=Stats.getChildOptions(e,n);const o=new Stats(s).toJson(r,t);delete o.hash;delete o.version;if(s.name){o.name=i.makePathsRelative(f,s.name,h.cache)}return o})}return ie}toString(e){if(typeof e==="boolean"||typeof e==="string"){e=Stats.presetToOptions(e)}else if(!e){e={}}const t=u(e.colors,false);const s=this.toJson(e,true);return Stats.jsonToString(s,t)}static jsonToString(e,t){const s=[];const n={bold:"",yellow:"",red:"",green:"",cyan:"",magenta:""};const o=Object.keys(n).reduce((e,r)=>{e[r]=(e=>{if(t){s.push(t===true||t[r]===undefined?n[r]:t[r])}s.push(e);if(t){s.push("")}});return e},{normal:e=>s.push(e)});const i=t=>{let s=[800,400,200,100];if(e.time){s=[e.time/2,e.time/4,e.time/8,e.time/16]}if(ts.push("\n");const u=(e,t,s)=>{return e[t][s].value};const c=(e,t,s)=>{const n=e.length;const r=e[0].length;const i=new Array(r);for(let e=0;ei[s]){i[s]=n.length}}}for(let l=0;l{if(e.isOverSizeLimit){return o.yellow}return t};if(e.hash){o.normal("Hash: ");o.bold(e.hash);a()}if(e.version){o.normal("Version: webpack ");o.bold(e.version);a()}if(typeof e.time==="number"){o.normal("Time: ");o.bold(e.time);o.normal("ms");a()}if(typeof e.builtAt==="number"){const t=new Date(e.builtAt);let s=undefined;try{t.toLocaleTimeString()}catch(e){s="UTC"}o.normal("Built at: ");o.normal(t.toLocaleDateString(undefined,{day:"2-digit",month:"2-digit",year:"numeric",timeZone:s}));o.normal(" ");o.bold(t.toLocaleTimeString(undefined,{timeZone:s}));a()}if(e.env){o.normal("Environment (--env): ");o.bold(JSON.stringify(e.env,null,2));a()}if(e.publicPath){o.normal("PublicPath: ");o.bold(e.publicPath);a()}if(e.assets&&e.assets.length>0){const t=[[{value:"Asset",color:o.bold},{value:"Size",color:o.bold},{value:"Chunks",color:o.bold},{value:"",color:o.bold},{value:"",color:o.bold},{value:"Chunk Names",color:o.bold}]];for(const s of e.assets){t.push([{value:s.name,color:d(s,o.green)},{value:r.formatSize(s.size),color:d(s,o.normal)},{value:s.chunks.join(", "),color:o.bold},{value:[s.emitted&&"[emitted]",s.info.immutable&&"[immutable]",s.info.development&&"[dev]",s.info.hotModuleReplacement&&"[hmr]"].filter(Boolean).join(" "),color:o.green},{value:s.isOverSizeLimit?"[big]":"",color:d(s,o.normal)},{value:s.chunkNames.join(", "),color:o.normal}])}c(t,"rrrlll")}if(e.filteredAssets>0){o.normal(" ");if(e.assets.length>0)o.normal("+ ");o.normal(e.filteredAssets);if(e.assets.length>0)o.normal(" hidden");o.normal(e.filteredAssets!==1?" assets":" asset");a()}const h=(e,t)=>{for(const s of Object.keys(e)){const n=e[s];o.normal(`${t} `);o.bold(s);if(n.isOverSizeLimit){o.normal(" ");o.yellow("[big]")}o.normal(" =");for(const e of n.assets){o.normal(" ");o.green(e)}for(const e of Object.keys(n.childAssets)){const t=n.childAssets[e];if(t&&t.length>0){o.normal(" ");o.magenta(`(${e}:`);for(const e of t){o.normal(" ");o.green(e)}o.magenta(")")}}a()}};if(e.entrypoints){h(e.entrypoints,"Entrypoint")}if(e.namedChunkGroups){let t=e.namedChunkGroups;if(e.entrypoints){t=Object.keys(t).filter(t=>!e.entrypoints[t]).reduce((t,s)=>{t[s]=e.namedChunkGroups[s];return t},{})}h(t,"Chunk Group")}const f={};if(e.modules){for(const t of e.modules){f[`$${t.identifier}`]=t}}else if(e.chunks){for(const t of e.chunks){if(t.modules){for(const e of t.modules){f[`$${e.identifier}`]=e}}}}const p=e=>{o.normal(" ");o.normal(r.formatSize(e.size));if(e.chunks){for(const t of e.chunks){o.normal(" {");o.yellow(t);o.normal("}")}}if(typeof e.depth==="number"){o.normal(` [depth ${e.depth}]`)}if(e.cacheable===false){o.red(" [not cacheable]")}if(e.optional){o.yellow(" [optional]")}if(e.built){o.green(" [built]")}if(e.assets&&e.assets.length){o.magenta(` [${e.assets.length} asset${e.assets.length===1?"":"s"}]`)}if(e.prefetched){o.magenta(" [prefetched]")}if(e.failed)o.red(" [failed]");if(e.warnings){o.yellow(` [${e.warnings} warning${e.warnings===1?"":"s"}]`)}if(e.errors){o.red(` [${e.errors} error${e.errors===1?"":"s"}]`)}};const m=(e,t)=>{if(Array.isArray(e.providedExports)){o.normal(t);if(e.providedExports.length===0){o.cyan("[no exports]")}else{o.cyan(`[exports: ${e.providedExports.join(", ")}]`)}a()}if(e.usedExports!==undefined){if(e.usedExports!==true){o.normal(t);if(e.usedExports===null){o.cyan("[used exports unknown]")}else if(e.usedExports===false){o.cyan("[no exports used]")}else if(Array.isArray(e.usedExports)&&e.usedExports.length===0){o.cyan("[no exports used]")}else if(Array.isArray(e.usedExports)){const t=Array.isArray(e.providedExports)?e.providedExports.length:null;if(t!==null&&t===e.usedExports.length){o.cyan("[all exports used]")}else{o.cyan(`[only some exports used: ${e.usedExports.join(", ")}]`)}}a()}}if(Array.isArray(e.optimizationBailout)){for(const s of e.optimizationBailout){o.normal(t);o.yellow(s);a()}}if(e.reasons){for(const s of e.reasons){o.normal(t);if(s.type){o.normal(s.type);o.normal(" ")}if(s.userRequest){o.cyan(s.userRequest);o.normal(" ")}if(s.moduleId!==null){o.normal("[");o.normal(s.moduleId);o.normal("]")}if(s.module&&s.module!==s.moduleId){o.normal(" ");o.magenta(s.module)}if(s.loc){o.normal(" ");o.normal(s.loc)}if(s.explanation){o.normal(" ");o.cyan(s.explanation)}a()}}if(e.profile){o.normal(t);let s=0;if(e.issuerPath){for(const t of e.issuerPath){o.normal("[");o.normal(t.id);o.normal("] ");if(t.profile){const e=(t.profile.factory||0)+(t.profile.building||0);i(e);s+=e;o.normal(" ")}o.normal("-> ")}}for(const t of Object.keys(e.profile)){o.normal(`${t}:`);const n=e.profile[t];i(n);o.normal(" ");s+=n}o.normal("= ");i(s);a()}if(e.modules){g(e,t+"| ")}};const g=(e,t)=>{if(e.modules){let s=0;for(const t of e.modules){if(typeof t.id==="number"){if(s=10)n+=" ";if(s>=100)n+=" ";if(s>=1e3)n+=" ";for(const r of e.modules){o.normal(t);const e=r.name||r.identifier;if(typeof r.id==="string"||typeof r.id==="number"){if(typeof r.id==="number"){if(r.id<1e3&&s>=1e3)o.normal(" ");if(r.id<100&&s>=100)o.normal(" ");if(r.id<10&&s>=10)o.normal(" ")}else{if(s>=1e3)o.normal(" ");if(s>=100)o.normal(" ");if(s>=10)o.normal(" ")}if(e!==r.id){o.normal("[");o.normal(r.id);o.normal("]");o.normal(" ")}else{o.normal("[");o.bold(r.id);o.normal("]")}}if(e!==r.id){o.bold(e)}p(r);a();m(r,n)}if(e.filteredModules>0){o.normal(t);o.normal(" ");if(e.modules.length>0)o.normal(" + ");o.normal(e.filteredModules);if(e.modules.length>0)o.normal(" hidden");o.normal(e.filteredModules!==1?" modules":" module");a()}}};if(e.chunks){for(const t of e.chunks){o.normal("chunk ");if(t.id<1e3)o.normal(" ");if(t.id<100)o.normal(" ");if(t.id<10)o.normal(" ");o.normal("{");o.yellow(t.id);o.normal("} ");o.green(t.files.join(", "));if(t.names&&t.names.length>0){o.normal(" (");o.normal(t.names.join(", "));o.normal(")")}o.normal(" ");o.normal(r.formatSize(t.size));for(const e of t.parents){o.normal(" <{");o.yellow(e);o.normal("}>")}for(const e of t.siblings){o.normal(" ={");o.yellow(e);o.normal("}=")}for(const e of t.children){o.normal(" >{");o.yellow(e);o.normal("}<")}if(t.childrenByOrder){for(const e of Object.keys(t.childrenByOrder)){const s=t.childrenByOrder[e];o.normal(" ");o.magenta(`(${e}:`);for(const e of s){o.normal(" {");o.yellow(e);o.normal("}")}o.magenta(")")}}if(t.entry){o.yellow(" [entry]")}else if(t.initial){o.yellow(" [initial]")}if(t.rendered){o.green(" [rendered]")}if(t.recorded){o.green(" [recorded]")}if(t.reason){o.yellow(` ${t.reason}`)}a();if(t.origins){for(const e of t.origins){o.normal(" > ");if(e.reasons&&e.reasons.length){o.yellow(e.reasons.join(" "));o.normal(" ")}if(e.request){o.normal(e.request);o.normal(" ")}if(e.module){o.normal("[");o.normal(e.moduleId);o.normal("] ");const t=f[`$${e.module}`];if(t){o.bold(t.name);o.normal(" ")}}if(e.loc){o.normal(e.loc)}a()}}g(t," ")}}g(e,"");if(e.logging){for(const t of Object.keys(e.logging)){const s=e.logging[t];if(s.entries.length>0){a();if(s.debug){o.red("DEBUG ")}o.bold("LOG from "+t);a();let e="";for(const t of s.entries){let s=o.normal;let n=" ";switch(t.type){case l.clear:o.normal(`${e}-------`);a();continue;case l.error:s=o.red;n=" ";break;case l.warn:s=o.yellow;n=" ";break;case l.info:s=o.green;n=" ";break;case l.log:s=o.bold;break;case l.trace:case l.debug:s=o.normal;break;case l.status:s=o.magenta;n=" ";break;case l.profile:s=o.magenta;n="

";break;case l.profileEnd:s=o.magenta;n="

";break;case l.time:s=o.magenta;n=" ";break;case l.group:s=o.cyan;n="<-> ";break;case l.groupCollapsed:s=o.cyan;n="<+> ";break;case l.groupEnd:if(e.length>=2)e=e.slice(0,e.length-2);continue}if(t.message){for(const r of t.message.split("\n")){o.normal(`${e}${n}`);s(r);a()}}if(t.trace){for(const s of t.trace){o.normal(`${e}| ${s}`);a()}}switch(t.type){case l.group:e+=" ";break}}if(s.filteredEntries){o.normal(`+ ${s.filteredEntries} hidden lines`);a()}}}}if(e._showWarnings&&e.warnings){for(const t of e.warnings){a();o.yellow(`WARNING in ${t}`);a()}}if(e._showErrors&&e.errors){for(const t of e.errors){a();o.red(`ERROR in ${t}`);a()}}if(e.children){for(const n of e.children){const e=Stats.jsonToString(n,t);if(e){if(n.name){o.normal("Child ");o.bold(n.name);o.normal(":")}else{o.normal("Child")}a();s.push(" ");s.push(e.replace(/\n/g,"\n "));a()}}}if(e.needAdditionalPass){o.yellow("Compilation needs an additional pass and will compile again.")}while(s[s.length-1]==="\n"){s.pop()}return s.join("")}static presetToOptions(e){const t=typeof e==="string"&&e.toLowerCase()||e||"none";switch(t){case"none":return{all:false};case"verbose":return{entrypoints:true,chunkGroups:true,modules:false,chunks:true,chunkModules:true,chunkOrigins:true,depth:true,env:true,reasons:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:"verbose",exclude:false,maxModules:Infinity};case"detailed":return{entrypoints:true,chunkGroups:true,chunks:true,chunkModules:false,chunkOrigins:true,depth:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:true,exclude:false,maxModules:Infinity};case"minimal":return{all:false,modules:true,maxModules:0,errors:true,warnings:true,logging:"warn"};case"errors-only":return{all:false,errors:true,moduleTrace:true,logging:"error"};case"errors-warnings":return{all:false,errors:true,warnings:true,logging:"warn"};default:return{}}}static getChildOptions(e,t){let s;if(Array.isArray(e.children)){if(t({parse:{...t},compress:typeof s==="boolean"?s:{...s},mangle:n==null?true:typeof n==="boolean"?n:{...n},output:{beautify:false,...o},sourceMap:null,ecma:e,keep_classnames:u,keep_fnames:c,ie8:l,module:r,nameCache:a,safari10:d,toplevel:i});function isObject(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}const o=(e,t,s)=>{const n={};const r=t.output.comments;const{extractComments:o}=e;n.preserve=typeof r!=="undefined"?r:false;if(typeof o==="boolean"&&o){n.extract="some"}else if(typeof o==="string"||o instanceof RegExp){n.extract=o}else if(typeof o==="function"){n.extract=o}else if(isObject(o)){n.extract=typeof o.condition==="boolean"&&o.condition?"some":typeof o.condition!=="undefined"?o.condition:"some"}else{n.preserve=typeof r!=="undefined"?r:"some";n.extract=false}["preserve","extract"].forEach(e=>{let t;let s;switch(typeof n[e]){case"boolean":n[e]=n[e]?()=>true:()=>false;break;case"function":break;case"string":if(n[e]==="all"){n[e]=(()=>true);break}if(n[e]==="some"){n[e]=((e,t)=>{return(t.type==="comment2"||t.type==="comment1")&&/@preserve|@lic|@cc_on|^\**!/i.test(t.value)});break}t=n[e];n[e]=((e,s)=>{return new RegExp(t).test(s.value)});break;default:s=n[e];n[e]=((e,t)=>s.test(t.value))}});return(e,t)=>{if(n.extract(e,t)){const e=t.type==="comment2"?`/*${t.value}*/`:`//${t.value}`;if(!s.includes(e)){s.push(e)}}return n.preserve(e,t)}};async function minify(e){const{name:t,input:s,inputSourceMap:i,minify:a}=e;if(a){return a({[t]:s},i)}const l=r(e.terserOptions);if(i){l.sourceMap={asObject:true}}const u=[];l.output.comments=o(e,l,u);const c=await n({[t]:s},l);return{...c,extractedComments:u}}function transform(s){s=new Function("exports","require","module","__filename","__dirname",`'use strict'\nreturn ${s}`)(t,require,e,__filename,__dirname);return minify(s)}e.exports.minify=minify;e.exports.transform=transform},813:function(e){"use strict";const t=(e,...t)=>new Promise(s=>{s(e(...t))});e.exports=t;e.exports.default=t},832:function(e,t,s){"use strict";const n=s(622);const r=(e,t)=>{if(t.startsWith("./")||t.startsWith("../"))return n.join(e,t);return t};const o=e=>{if(/^\/.*\/$/.test(e)){return false}return/^(?:[a-z]:\\|\/)/i.test(e)};const i=e=>e.replace(/\\/g,"/");const a=(e,t)=>{return t.split(/([|! ])/).map(t=>o(t)?i(n.relative(e,t)):t).join("")};t.makePathsRelative=((e,t,s)=>{if(!s)return a(e,t);const n=s.relativePaths||(s.relativePaths=new Map);let r;let o=n.get(e);if(o===undefined){n.set(e,o=new Map)}else{r=o.get(t)}if(r!==undefined){return r}else{const s=a(e,t);o.set(t,s);return s}});t.contextify=((e,t)=>{return t.split("!").map(t=>{const s=t.split("?",2);if(/^[a-zA-Z]:\\/.test(s[0])){s[0]=n.win32.relative(e,s[0]);if(!/^[a-zA-Z]:\\/.test(s[0])){s[0]=s[0].replace(/\\/g,"/")}}if(/^\//.test(s[0])){s[0]=n.posix.relative(e,s[0])}if(!/^(\.\.\/|\/|[a-zA-Z]:\\)/.test(s[0])){s[0]="./"+s[0]}return s.join("?")}).join("!")});const l=(e,t)=>{return t.split("!").map(t=>r(e,t)).join("!")};t.absolutify=l},844:function(e){e.exports=require("next/dist/compiled/find-cache-dir")},847:function(e,t,s){"use strict";const n=s(446);const r=/at ([a-zA-Z0-9_.]*)/;function createMessage(e){return`Abstract method${e?" "+e:""}. Must be overridden.`}function Message(){this.stack=undefined;Error.captureStackTrace(this);const e=this.stack.split("\n")[3].match(r);this.message=e&&e[1]?createMessage(e[1]):createMessage()}class AbstractMethodError extends n{constructor(){super((new Message).message);this.name="AbstractMethodError"}}e.exports=AbstractMethodError},886:function(e,t,s){"use strict";const n=s(669);const r=s(542);const o=s(656).intersect;const i=s(335);const a=s(174);let l=1e3;const u="Chunk.entry was removed. Use hasRuntime()";const c="Chunk.initial was removed. Use canBeInitial/isOnlyInitial()";const d=(e,t)=>{if(e.id{if(e.id{if(e.identifier()>t.identifier())return 1;if(e.identifier(){e.sort();let t="";for(const s of e){t+=s.identifier()+"#"}return t};const m=e=>Array.from(e);const g=e=>{let t=0;for(const s of e){t+=s.size()}return t};class Chunk{constructor(e){this.id=null;this.ids=null;this.debugId=l++;this.name=e;this.preventIntegration=false;this.entryModule=undefined;this._modules=new r(undefined,f);this.filenameTemplate=undefined;this._groups=new r(undefined,h);this.files=[];this.rendered=false;this.hash=undefined;this.contentHash=Object.create(null);this.renderedHash=undefined;this.chunkReason=undefined;this.extraAsync=false;this.removedModules=undefined}get entry(){throw new Error(u)}set entry(e){throw new Error(u)}get initial(){throw new Error(c)}set initial(e){throw new Error(c)}hasRuntime(){for(const e of this._groups){if(e.isInitial()&&e instanceof a&&e.getRuntimeChunk()===this){return true}}return false}canBeInitial(){for(const e of this._groups){if(e.isInitial())return true}return false}isOnlyInitial(){if(this._groups.size<=0)return false;for(const e of this._groups){if(!e.isInitial())return false}return true}hasEntryModule(){return!!this.entryModule}addModule(e){if(!this._modules.has(e)){this._modules.add(e);return true}return false}removeModule(e){if(this._modules.delete(e)){e.removeChunk(this);return true}return false}setModules(e){this._modules=new r(e,f)}getNumberOfModules(){return this._modules.size}get modulesIterable(){return this._modules}addGroup(e){if(this._groups.has(e))return false;this._groups.add(e);return true}removeGroup(e){if(!this._groups.has(e))return false;this._groups.delete(e);return true}isInGroup(e){return this._groups.has(e)}getNumberOfGroups(){return this._groups.size}get groupsIterable(){return this._groups}compareTo(e){if(this.name&&!e.name)return-1;if(!this.name&&e.name)return 1;if(this.namee.name)return 1;if(this._modules.size>e._modules.size)return-1;if(this._modules.sizeo)return 1}}containsModule(e){return this._modules.has(e)}getModules(){return this._modules.getFromCache(m)}getModulesIdent(){return this._modules.getFromUnorderedCache(p)}remove(e){for(const e of Array.from(this._modules)){e.removeChunk(this)}for(const e of this._groups){e.removeChunk(this)}}moveModule(e,t){i.disconnectChunkAndModule(this,e);i.connectChunkAndModule(t,e);e.rewriteChunkInReasons(this,[t])}integrate(e,t){if(!this.canBeIntegrated(e)){return false}if(this.name&&e.name){if(this.hasEntryModule()===e.hasEntryModule()){if(this.name.length!==e.name.length){this.name=this.name.length{const s=new Set(t.groupsIterable);for(const t of s){if(e.isInGroup(t))continue;if(t.isInitial())return false;for(const e of t.parentsIterable){s.add(e)}}return true};const s=this.hasRuntime();const n=e.hasRuntime();if(s!==n){if(s){return t(this,e)}else if(n){return t(e,this)}else{return false}}if(this.hasEntryModule()||e.hasEntryModule()){return false}return true}addMultiplierAndOverhead(e,t){const s=typeof t.chunkOverhead==="number"?t.chunkOverhead:1e4;const n=this.canBeInitial()?t.entryChunkMultiplicator||10:1;return e*n+s}modulesSize(){return this._modules.getFromUnorderedCache(g)}size(e={}){return this.addMultiplierAndOverhead(this.modulesSize(),e)}integratedSize(e,t){if(!this.canBeIntegrated(e)){return false}let s=this.modulesSize();for(const t of e._modules){if(!this._modules.has(t)){s+=t.size()}}return this.addMultiplierAndOverhead(s,t)}sortModules(e){this._modules.sortWith(e||d)}sortItems(){this.sortModules()}getAllAsyncChunks(){const e=new Set;const t=new Set;const s=o(Array.from(this.groupsIterable,e=>new Set(e.chunks)));for(const t of this.groupsIterable){for(const s of t.childrenIterable){e.add(s)}}for(const n of e){for(const e of n.chunks){if(!s.has(e)){t.add(e)}}for(const t of n.childrenIterable){e.add(t)}}return t}getChunkMaps(e){const t=Object.create(null);const s=Object.create(null);const n=Object.create(null);for(const r of this.getAllAsyncChunks()){t[r.id]=e?r.hash:r.renderedHash;for(const e of Object.keys(r.contentHash)){if(!s[e]){s[e]=Object.create(null)}s[e][r.id]=r.contentHash[e]}if(r.name){n[r.id]=r.name}}return{hash:t,contentHash:s,name:n}}getChildIdsByOrders(){const e=new Map;for(const t of this.groupsIterable){if(t.chunks[t.chunks.length-1]===this){for(const s of t.childrenIterable){if(typeof s.options==="object"){for(const t of Object.keys(s.options)){if(t.endsWith("Order")){const n=t.substr(0,t.length-"Order".length);let r=e.get(n);if(r===undefined)e.set(n,r=[]);r.push({order:s.options[t],group:s})}}}}}}const t=Object.create(null);for(const[s,n]of e){n.sort((e,t)=>{const s=t.order-e.order;if(s!==0)return s;if(e.group.compareTo){return e.group.compareTo(t.group)}return 0});t[s]=Array.from(n.reduce((e,t)=>{for(const s of t.group.chunks){e.add(s.id)}return e},new Set))}return t}getChildIdsByOrdersMap(e){const t=Object.create(null);const s=e=>{const s=e.getChildIdsByOrders();for(const n of Object.keys(s)){let r=t[n];if(r===undefined){t[n]=r=Object.create(null)}r[e.id]=s[n]}};if(e){const e=new Set;for(const t of this.groupsIterable){for(const s of t.chunks){e.add(s)}}for(const t of e){s(t)}}for(const e of this.getAllAsyncChunks()){s(e)}return t}getChunkModuleMaps(e){const t=Object.create(null);const s=Object.create(null);for(const n of this.getAllAsyncChunks()){let r;for(const o of n.modulesIterable){if(e(o)){if(r===undefined){r=[];t[n.id]=r}r.push(o.id);s[o.id]=o.renderedHash}}if(r!==undefined){r.sort()}}return{id:t,hash:s}}hasModuleInGraph(e,t){const s=new Set(this.groupsIterable);const n=new Set;for(const r of s){for(const s of r.chunks){if(!n.has(s)){n.add(s);if(!t||t(s)){for(const t of s.modulesIterable){if(e(t)){return true}}}}}for(const e of r.childrenIterable){s.add(e)}}return false}toString(){return`Chunk[${Array.from(this._modules).join()}]`}}Object.defineProperty(Chunk.prototype,"forEachModule",{configurable:false,value:n.deprecate(function(e){this._modules.forEach(e)},"Chunk.forEachModule: Use for(const module of chunk.modulesIterable) instead")});Object.defineProperty(Chunk.prototype,"mapModules",{configurable:false,value:n.deprecate(function(e){return Array.from(this._modules,e)},"Chunk.mapModules: Use Array.from(chunk.modulesIterable, fn) instead")});Object.defineProperty(Chunk.prototype,"chunks",{configurable:false,get(){throw new Error("Chunk.chunks: Use ChunkGroup.getChildren() instead")},set(){throw new Error("Chunk.chunks: Use ChunkGroup.add/removeChild() instead")}});Object.defineProperty(Chunk.prototype,"parents",{configurable:false,get(){throw new Error("Chunk.parents: Use ChunkGroup.getParents() instead")},set(){throw new Error("Chunk.parents: Use ChunkGroup.add/removeParent() instead")}});Object.defineProperty(Chunk.prototype,"blocks",{configurable:false,get(){throw new Error("Chunk.blocks: Use ChunkGroup.getBlocks() instead")},set(){throw new Error("Chunk.blocks: Use ChunkGroup.add/removeBlock() instead")}});Object.defineProperty(Chunk.prototype,"entrypoints",{configurable:false,get(){throw new Error("Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead")},set(){throw new Error("Chunk.entrypoints: Use Chunks.addGroup instead")}});e.exports=Chunk},960:function(e,t,s){"use strict";var n=s(46);var r=16;var o=generateUID();var i=new RegExp('(\\\\)?"@__(F|R|D|M|S|U|I|B)-'+o+'-(\\d+)__@"',"g");var a=/\{\s*\[native code\]\s*\}/g;var l=/function.*?\(/;var u=/.*?=>.*?/;var c=/[<>\/\u2028\u2029]/g;var d=["*","async"];var h={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function escapeUnsafeChars(e){return h[e]}function generateUID(){var e=n(r);var t="";for(var s=0;s0});var r=n.filter(function(e){return d.indexOf(e)===-1});if(r.length>0){return(n.indexOf("async")>-1?"async ":"")+"function"+(n.join("").indexOf("*")>-1?"*":"")+t.substr(s)}return t}if(t.ignoreFunction&&typeof e==="function"){e=undefined}if(e===undefined){return String(e)}var y;if(t.isJSON&&!t.space){y=JSON.stringify(e)}else{y=JSON.stringify(e,t.isJSON?null:replacer,t.space)}if(typeof y!=="string"){return String(y)}if(t.unsafe!==true){y=y.replace(c,escapeUnsafeChars)}if(s.length===0&&n.length===0&&r.length===0&&h.length===0&&f.length===0&&p.length===0&&m.length===0&&g.length===0){return y}return y.replace(i,function(e,o,i,a){if(o){return e}if(i==="D"){return'new Date("'+r[a].toISOString()+'")'}if(i==="R"){return"new RegExp("+serialize(n[a].source)+', "'+n[a].flags+'")'}if(i==="M"){return"new Map("+serialize(Array.from(h[a].entries()),t)+")"}if(i==="S"){return"new Set("+serialize(Array.from(f[a].values()),t)+")"}if(i==="U"){return"undefined"}if(i==="I"){return m[a]}if(i==="B"){return'BigInt("'+g[a]+'")'}var l=s[a];return serializeFunc(l)})}},966:function(e,t,s){const{ConcatSource:n}=s(745);const r=s(591);const o="a".charCodeAt(0);const i="A".charCodeAt(0);const a="z".charCodeAt(0)-o+1;const l=/^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g;const u=/^\t/gm;const c=/\r?\n/g;const d=/^([^a-zA-Z$_])/;const h=/[^a-zA-Z0-9$]+/g;const f=/\*\//g;const p=/[^a-zA-Z0-9_!§$()=\-^°]+/g;const m=/^-|-$/g;const g=(e,t)=>{const s=e.id+"";const n=t.id+"";if(sn)return 1;return 0};class Template{static getFunctionContent(e){return e.toString().replace(l,"").replace(u,"").replace(c,"\n")}static toIdentifier(e){if(typeof e!=="string")return"";return e.replace(d,"_$1").replace(h,"_")}static toComment(e){if(!e)return"";return`/*! ${e.replace(f,"* /")} */`}static toNormalComment(e){if(!e)return"";return`/* ${e.replace(f,"* /")} */`}static toPath(e){if(typeof e!=="string")return"";return e.replace(p,"-").replace(m,"")}static numberToIdentifer(e){if(en.id)s=n.id}if(s<16+(""+s).length){s=0}const n=e.map(e=>(e.id+"").length+2).reduce((e,t)=>e+t,-1);const r=s===0?t:16+(""+s).length+t;return r{return{id:t.id,source:s.render(t,o,{chunk:e})}});if(u&&u.length>0){for(const e of u){c.push({id:e,source:"false"})}}const d=Template.getModulesArrayBounds(c);if(d){const e=d[0];const t=d[1];if(e!==0){a.add(`Array(${e}).concat(`)}a.add("[\n");const s=new Map;for(const e of c){s.set(e.id,e)}for(let n=e;n<=t;n++){const t=s.get(n);if(n!==e){a.add(",\n")}a.add(`/* ${n} */`);if(t){a.add("\n");a.add(t.source)}}a.add("\n"+i+"]");if(e!==0){a.add(")")}}else{a.add("{\n");c.sort(g).forEach((e,t)=>{if(t!==0){a.add(",\n")}a.add(`\n/***/ ${JSON.stringify(e.id)}:\n`);a.add(e.source)});a.add(`\n\n${i}}`)}return a}}e.exports=Template},980:function(e,t,s){"use strict";const n=s(386);const r=s(669);const{CachedSource:o}=s(745);const{Tapable:i,SyncHook:a,SyncBailHook:l,SyncWaterfallHook:u,AsyncSeriesHook:c}=s(75);const d=s(638);const h=s(645);const f=s(647);const p=s(59);const m=s(773);const g=s(886);const y=s(174);const k=s(503);const b=s(55);const w=s(408);const _=s(216);const v=s(48);const x=s(207);const $=s(788);const E=s(393);const M=s(486);const O=s(542);const A=s(335);const S=s(742);const C=s(463);const{Logger:j,LogType:T}=s(582);const I=s(102);const D=s(510);const P=s(446);const R=(e,t)=>{if(typeof e.id!==typeof t.id){return typeof e.idt.id)return 1;return 0};const H=(e,t)=>{if(typeof e.id!==typeof t.id){return typeof e.idt.id)return 1;const s=e.identifier();const n=t.identifier();if(sn)return 1;return 0};const z=(e,t)=>{if(e.indext.index)return 1;const s=e.identifier();const n=t.identifier();if(sn)return 1;return 0};const q=(e,t)=>{if(e.namet.name)return 1;if(e.fullHasht.fullHash)return 1;return 0};const B=(e,t)=>{for(let s=0;s{for(let s=0;s{for(const s of t){e.add(s)}};const N=(e,t)=>{if(e===t)return true;let s=e.source();let n=t.source();if(s===n)return true;if(typeof s==="string"&&typeof n==="string")return false;if(!Buffer.isBuffer(s))s=Buffer.from(s,"utf-8");if(!Buffer.isBuffer(n))n=Buffer.from(n,"utf-8");return s.equals(n)};class Compilation extends i{constructor(e){super();this.hooks={buildModule:new a(["module"]),rebuildModule:new a(["module"]),failedModule:new a(["module","error"]),succeedModule:new a(["module"]),addEntry:new a(["entry","name"]),failedEntry:new a(["entry","name","error"]),succeedEntry:new a(["entry","name","module"]),dependencyReference:new u(["dependencyReference","dependency","module"]),finishModules:new c(["modules"]),finishRebuildingModule:new a(["module"]),unseal:new a([]),seal:new a([]),beforeChunks:new a([]),afterChunks:new a(["chunks"]),optimizeDependenciesBasic:new l(["modules"]),optimizeDependencies:new l(["modules"]),optimizeDependenciesAdvanced:new l(["modules"]),afterOptimizeDependencies:new a(["modules"]),optimize:new a([]),optimizeModulesBasic:new l(["modules"]),optimizeModules:new l(["modules"]),optimizeModulesAdvanced:new l(["modules"]),afterOptimizeModules:new a(["modules"]),optimizeChunksBasic:new l(["chunks","chunkGroups"]),optimizeChunks:new l(["chunks","chunkGroups"]),optimizeChunksAdvanced:new l(["chunks","chunkGroups"]),afterOptimizeChunks:new a(["chunks","chunkGroups"]),optimizeTree:new c(["chunks","modules"]),afterOptimizeTree:new a(["chunks","modules"]),optimizeChunkModulesBasic:new l(["chunks","modules"]),optimizeChunkModules:new l(["chunks","modules"]),optimizeChunkModulesAdvanced:new l(["chunks","modules"]),afterOptimizeChunkModules:new a(["chunks","modules"]),shouldRecord:new l([]),reviveModules:new a(["modules","records"]),optimizeModuleOrder:new a(["modules"]),advancedOptimizeModuleOrder:new a(["modules"]),beforeModuleIds:new a(["modules"]),moduleIds:new a(["modules"]),optimizeModuleIds:new a(["modules"]),afterOptimizeModuleIds:new a(["modules"]),reviveChunks:new a(["chunks","records"]),optimizeChunkOrder:new a(["chunks"]),beforeChunkIds:new a(["chunks"]),optimizeChunkIds:new a(["chunks"]),afterOptimizeChunkIds:new a(["chunks"]),recordModules:new a(["modules","records"]),recordChunks:new a(["chunks","records"]),beforeHash:new a([]),contentHash:new a(["chunk"]),afterHash:new a([]),recordHash:new a(["records"]),record:new a(["compilation","records"]),beforeModuleAssets:new a([]),shouldGenerateChunkAssets:new l([]),beforeChunkAssets:new a([]),additionalChunkAssets:new a(["chunks"]),additionalAssets:new c([]),optimizeChunkAssets:new c(["chunks"]),afterOptimizeChunkAssets:new a(["chunks"]),optimizeAssets:new c(["assets"]),afterOptimizeAssets:new a(["assets"]),needAdditionalSeal:new l([]),afterSeal:new c([]),chunkHash:new a(["chunk","chunkHash"]),moduleAsset:new a(["module","filename"]),chunkAsset:new a(["chunk","filename"]),assetPath:new u(["filename","data"]),needAdditionalPass:new l([]),childCompiler:new a(["childCompiler","compilerName","compilerIndex"]),log:new l(["origin","logEntry"]),normalModuleLoader:new a(["loaderContext","module"]),optimizeExtractedChunksBasic:new l(["chunks"]),optimizeExtractedChunks:new l(["chunks"]),optimizeExtractedChunksAdvanced:new l(["chunks"]),afterOptimizeExtractedChunks:new a(["chunks"])};this._pluginCompat.tap("Compilation",e=>{switch(e.name){case"optimize-tree":case"additional-assets":case"optimize-chunk-assets":case"optimize-assets":case"after-seal":e.async=true;break}});this.name=undefined;this.compiler=e;this.resolverFactory=e.resolverFactory;this.inputFileSystem=e.inputFileSystem;this.requestShortener=e.requestShortener;const t=e.options;this.options=t;this.outputOptions=t&&t.output;this.bail=t&&t.bail;this.profile=t&&t.profile;this.performance=t&&t.performance;this.mainTemplate=new k(this.outputOptions);this.chunkTemplate=new b(this.outputOptions);this.hotUpdateChunkTemplate=new w(this.outputOptions);this.runtimeTemplate=new v(this.outputOptions,this.requestShortener);this.moduleTemplates={javascript:new _(this.runtimeTemplate,"javascript"),webassembly:new _(this.runtimeTemplate,"webassembly")};this.semaphore=new E(t.parallelism||100);this.entries=[];this._preparedEntrypoints=[];this.entrypoints=new Map;this.chunks=[];this.chunkGroups=[];this.namedChunkGroups=new Map;this.namedChunks=new Map;this.modules=[];this._modules=new Map;this.cache=null;this.records=null;this.additionalChunkAssets=[];this.assets={};this.assetsInfo=new Map;this.errors=[];this.warnings=[];this.children=[];this.logging=new Map;this.dependencyFactories=new Map;this.dependencyTemplates=new Map;this.dependencyTemplates.set("hash","");this.childrenCounters={};this.usedChunkIds=null;this.usedModuleIds=null;this.fileTimestamps=undefined;this.contextTimestamps=undefined;this.compilationDependencies=undefined;this._buildingModules=new Map;this._rebuildingModules=new Map;this.emittedAssets=new Set}getStats(){return new $(this)}getLogger(e){if(!e){throw new TypeError("Compilation.getLogger(name) called without a name")}let t;return new j((s,n)=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compilation.getLogger(name) called with a function not returning a name")}}let r;switch(s){case T.warn:case T.error:case T.trace:r=I.cutOffLoaderExecution(new Error("Trace").stack).split("\n").slice(3);break}const o={time:Date.now(),type:s,args:n,trace:r};if(this.hooks.log.call(e,o)===undefined){if(o.type===T.profileEnd){if(typeof console.profileEnd==="function"){console.profileEnd(`[${e}] ${o.args[0]}`)}}if(t===undefined){t=this.logging.get(e);if(t===undefined){t=[];this.logging.set(e,t)}}t.push(o);if(o.type===T.profile){if(typeof console.profile==="function"){console.profile(`[${e}] ${o.args[0]}`)}}}})}addModule(e,t){const s=e.identifier();const n=this._modules.get(s);if(n){return{module:n,issuer:false,build:false,dependencies:false}}const r=(t||"m")+s;if(this.cache&&this.cache[r]){const t=this.cache[r];if(typeof t.updateCacheModule==="function"){t.updateCacheModule(e)}let n=true;if(this.fileTimestamps&&this.contextTimestamps){n=t.needRebuild(this.fileTimestamps,this.contextTimestamps)}if(!n){t.disconnect();this._modules.set(s,t);this.modules.push(t);for(const e of t.errors){this.errors.push(e)}for(const e of t.warnings){this.warnings.push(e)}return{module:t,issuer:true,build:false,dependencies:true}}t.unbuild();e=t}this._modules.set(s,e);if(this.cache){this.cache[r]=e}this.modules.push(e);return{module:e,issuer:true,build:true,dependencies:true}}getModule(e){const t=e.identifier();return this._modules.get(t)}findModule(e){return this._modules.get(e)}waitForBuildingFinished(e,t){let s=this._buildingModules.get(e);if(s){s.push(()=>t())}else{process.nextTick(t)}}buildModule(e,t,s,n,r){let o=this._buildingModules.get(e);if(o){o.push(r);return}this._buildingModules.set(e,o=[r]);const i=t=>{this._buildingModules.delete(e);for(const e of o){e(t)}};this.hooks.buildModule.call(e);e.build(this.options,this,this.resolverFactory.get("normal",e.resolveOptions),this.inputFileSystem,r=>{const o=e.errors;for(let e=0;e{e.set(t,s);return e},new Map);e.dependencies.sort((e,t)=>{const s=C(e.loc,t.loc);if(s)return s;return l.get(e)-l.get(t)});if(r){this.hooks.failedModule.call(e,r);return i(r)}this.hooks.succeedModule.call(e);return i()})}processModuleDependencies(e,t){const s=new Map;const n=e=>{const t=e.getResourceIdentifier();if(t){const n=this.dependencyFactories.get(e.constructor);if(n===undefined){throw new Error(`No module factory available for dependency type: ${e.constructor.name}`)}let r=s.get(n);if(r===undefined){s.set(n,r=new Map)}let o=r.get(t);if(o===undefined)r.set(t,o=[]);o.push(e)}};const r=e=>{if(e.dependencies){F(e.dependencies,n)}if(e.blocks){F(e.blocks,r)}if(e.variables){B(e.variables,n)}};try{r(e)}catch(e){t(e)}const o=[];for(const e of s){for(const t of e[1]){o.push({factory:e[0],dependencies:t[1]})}}this.addModuleDependencies(e,o,this.bail,null,true,t)}addModuleDependencies(e,t,s,r,o,i){const a=this.profile&&Date.now();const l=this.profile&&{};n.forEach(t,(t,n)=>{const i=t.dependencies;const u=t=>{t.origin=e;t.dependencies=i;this.errors.push(t);if(s){n(t)}else{n()}};const c=t=>{t.origin=e;this.warnings.push(t);n()};const d=this.semaphore;d.acquire(()=>{const s=t.factory;s.create({contextInfo:{issuer:e.nameForCondition&&e.nameForCondition(),compiler:this.compiler.name},resolveOptions:e.resolveOptions,context:e.context,dependencies:i},(t,s)=>{let f;const p=()=>{return i.every(e=>e.optional)};const m=e=>{if(p()){return c(e)}else{return u(e)}};if(t){d.release();return m(new h(e,t))}if(!s){d.release();return process.nextTick(n)}if(l){f=Date.now();l.factory=f-a}const g=t=>{for(let n=0;n{if(o&&y.dependencies){this.processModuleDependencies(s,n)}else{return n()}};if(y.issuer){if(l){s.profile=l}s.issuer=e}else{if(this.profile){if(e.profile){const t=Date.now()-a;if(!e.profile.dependencies||t>e.profile.dependencies){e.profile.dependencies=t}}}}if(y.build){this.buildModule(s,p(),e,i,e=>{if(e){d.release();return m(e)}if(l){const e=Date.now();l.building=e-f}d.release();k()})}else{d.release();this.waitForBuildingFinished(s,k)}})})},e=>{if(e){e.stack=e.stack;return i(e)}return process.nextTick(i)})}_addModuleChain(e,t,s,n){const r=this.profile&&Date.now();const o=this.profile&&{};const i=this.bail?e=>{n(e)}:e=>{e.dependencies=[t];this.errors.push(e);n()};if(typeof t!=="object"||t===null||!t.constructor){throw new Error("Parameter 'dependency' must be a Dependency")}const a=t.constructor;const l=this.dependencyFactories.get(a);if(!l){throw new Error(`No dependency factory available for this dependency type: ${t.constructor.name}`)}this.semaphore.acquire(()=>{l.create({contextInfo:{issuer:"",compiler:this.compiler.name},context:e,dependencies:[t]},(e,a)=>{if(e){this.semaphore.release();return i(new d(e))}let l;if(o){l=Date.now();o.factory=l-r}const u=this.addModule(a);a=u.module;s(a);t.module=a;a.addReason(null,t);const c=()=>{if(u.dependencies){this.processModuleDependencies(a,e=>{if(e)return n(e);n(null,a)})}else{return n(null,a)}};if(u.issuer){if(o){a.profile=o}}if(u.build){this.buildModule(a,false,null,null,e=>{if(e){this.semaphore.release();return i(e)}if(o){const e=Date.now();o.building=e-l}this.semaphore.release();c()})}else{this.semaphore.release();this.waitForBuildingFinished(a,c)}})})}addEntry(e,t,s,n){this.hooks.addEntry.call(t,s);const r={name:s,request:null,module:null};if(t instanceof S){r.request=t.request}const o=this._preparedEntrypoints.findIndex(e=>e.name===s);if(o>=0){this._preparedEntrypoints[o]=r}else{this._preparedEntrypoints.push(r)}this._addModuleChain(e,t,e=>{this.entries.push(e)},(e,o)=>{if(e){this.hooks.failedEntry.call(t,s,e);return n(e)}if(o){r.module=o}else{const e=this._preparedEntrypoints.indexOf(r);if(e>=0){this._preparedEntrypoints.splice(e,1)}}this.hooks.succeedEntry.call(t,s,o);return n(null,o)})}prefetch(e,t,s){this._addModuleChain(e,t,e=>{e.prefetched=true},s)}rebuildModule(e,t){let s=this._rebuildingModules.get(e);if(s){s.push(t);return}this._rebuildingModules.set(e,s=[t]);const n=t=>{this._rebuildingModules.delete(e);for(const e of s){e(t)}};this.hooks.rebuildModule.call(e);const r=e.dependencies.slice();const o=e.variables.slice();const i=e.blocks.slice();e.unbuild();this.buildModule(e,false,e,null,t=>{if(t){this.hooks.finishRebuildingModule.call(e);return n(t)}this.processModuleDependencies(e,t=>{if(t)return n(t);this.removeReasonsOfDependencyBlock(e,{dependencies:r,variables:o,blocks:i});this.hooks.finishRebuildingModule.call(e);n()})})}finish(e){const t=this.modules;this.hooks.finishModules.callAsync(t,s=>{if(s)return e(s);for(let e=0;e{if(t){return e(t)}this.hooks.afterOptimizeTree.call(this.chunks,this.modules);while(this.hooks.optimizeChunkModulesBasic.call(this.chunks,this.modules)||this.hooks.optimizeChunkModules.call(this.chunks,this.modules)||this.hooks.optimizeChunkModulesAdvanced.call(this.chunks,this.modules)){}this.hooks.afterOptimizeChunkModules.call(this.chunks,this.modules);const s=this.hooks.shouldRecord.call()!==false;this.hooks.reviveModules.call(this.modules,this.records);this.hooks.optimizeModuleOrder.call(this.modules);this.hooks.advancedOptimizeModuleOrder.call(this.modules);this.hooks.beforeModuleIds.call(this.modules);this.hooks.moduleIds.call(this.modules);this.applyModuleIds();this.hooks.optimizeModuleIds.call(this.modules);this.hooks.afterOptimizeModuleIds.call(this.modules);this.sortItemsWithModuleIds();this.hooks.reviveChunks.call(this.chunks,this.records);this.hooks.optimizeChunkOrder.call(this.chunks);this.hooks.beforeChunkIds.call(this.chunks);this.applyChunkIds();this.hooks.optimizeChunkIds.call(this.chunks);this.hooks.afterOptimizeChunkIds.call(this.chunks);this.sortItemsWithChunkIds();if(s){this.hooks.recordModules.call(this.modules,this.records);this.hooks.recordChunks.call(this.chunks,this.records)}this.hooks.beforeHash.call();this.createHash();this.hooks.afterHash.call();if(s){this.hooks.recordHash.call(this.records)}this.hooks.beforeModuleAssets.call();this.createModuleAssets();if(this.hooks.shouldGenerateChunkAssets.call()!==false){this.hooks.beforeChunkAssets.call();this.createChunkAssets()}this.hooks.additionalChunkAssets.call(this.chunks);this.summarizeDependencies();if(s){this.hooks.record.call(this,this.records)}this.hooks.additionalAssets.callAsync(t=>{if(t){return e(t)}this.hooks.optimizeChunkAssets.callAsync(this.chunks,t=>{if(t){return e(t)}this.hooks.afterOptimizeChunkAssets.call(this.chunks);this.hooks.optimizeAssets.callAsync(this.assets,t=>{if(t){return e(t)}this.hooks.afterOptimizeAssets.call(this.assets);if(this.hooks.needAdditionalSeal.call()){this.unseal();return this.seal(e)}return this.hooks.afterSeal.callAsync(e)})})})})}sortModules(e){e.sort(z)}reportDependencyErrorsAndWarnings(e,t){for(let s=0;s{const n=e.depth;if(typeof n==="number"&&n<=s)return;t.add(e);e.depth=s};const r=e=>{if(e.module){n(e.module)}};const o=e=>{if(e.variables){B(e.variables,r)}if(e.dependencies){F(e.dependencies,r)}if(e.blocks){F(e.blocks,o)}};for(e of t){t.delete(e);s=e.depth;s++;o(e)}}getDependencyReference(e,t){if(typeof t.getReference!=="function")return null;const s=t.getReference();if(!s)return null;return this.hooks.dependencyReference.call(s,t,e)}removeReasonsOfDependencyBlock(e,t){const s=t=>{if(!t.module){return}if(t.module.removeReason(e,t)){for(const e of t.module.chunksIterable){this.patchChunksAfterReasonRemoval(t.module,e)}}};if(t.blocks){F(t.blocks,t=>this.removeReasonsOfDependencyBlock(e,t))}if(t.dependencies){F(t.dependencies,s)}if(t.variables){B(t.variables,s)}}patchChunksAfterReasonRemoval(e,t){if(!e.hasReasons()){this.removeReasonsOfDependencyBlock(e,e)}if(!e.hasReasonForChunk(t)){if(e.removeChunk(t)){this.removeChunkFromDependencies(e,t)}}}removeChunkFromDependencies(e,t){const s=e=>{if(!e.module){return}this.patchChunksAfterReasonRemoval(e.module,t)};const n=e.blocks;for(let t=0;t0){let n=-1;for(const e of s){if(typeof e!=="number"){continue}n=Math.max(n,e)}let r=t=n+1;while(r--){if(!s.has(r)){e.push(r)}}}const r=this.modules;for(let s=0;s0){n.id=e.pop()}else{n.id=t++}}}}applyChunkIds(){const e=new Set;if(this.usedChunkIds){for(const t of this.usedChunkIds){if(typeof t!=="number"){continue}e.add(t)}}const t=this.chunks;for(let s=0;s0){let t=s;while(t--){if(!e.has(t)){n.push(t)}}}for(let e=0;e0){r.id=n.pop()}else{r.id=s++}}if(!r.ids){r.ids=[r.id]}}}sortItemsWithModuleIds(){this.modules.sort(H);const e=this.modules;for(let t=0;te.compareTo(t))}sortItemsWithChunkIds(){for(const e of this.chunkGroups){e.sortItems()}this.chunks.sort(R);for(let e=0;e{const s=`${e.message}`;const n=`${t.message}`;if(s{const s=e.hasRuntime();const n=t.hasRuntime();if(s&&!n)return 1;if(!s&&n)return-1;return R(e,t)});for(let o=0;oe[1].toUpperCase())].call(...t)},"Compilation.applyPlugins is deprecated. Use new API on `.hooks` instead");Object.defineProperty(Compilation.prototype,"moduleTemplate",{configurable:false,get:r.deprecate(function(){return this.moduleTemplates.javascript},"Compilation.moduleTemplate: Use Compilation.moduleTemplates.javascript instead"),set:r.deprecate(function(e){this.moduleTemplates.javascript=e},"Compilation.moduleTemplate: Use Compilation.moduleTemplates.javascript instead.")});e.exports=Compilation}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file diff --git a/packages/next/compiled/web-vitals/LICENSE b/packages/next/compiled/web-vitals/LICENSE new file mode 100644 index 00000000000000..618d629b346982 --- /dev/null +++ b/packages/next/compiled/web-vitals/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2020 Google LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/next/compiled/web-vitals/package.json b/packages/next/compiled/web-vitals/package.json new file mode 100644 index 00000000000000..d766f1049fb079 --- /dev/null +++ b/packages/next/compiled/web-vitals/package.json @@ -0,0 +1 @@ +{"name":"web-vitals","main":"web-vitals.es5.umd.min.js","author":{"name":"Philip Walton","email":"philip@philipwalton.com","url":"http://philipwalton.com"},"license":"Apache-2.0"} diff --git a/packages/next/compiled/web-vitals/web-vitals.es5.umd.min.js b/packages/next/compiled/web-vitals/web-vitals.es5.umd.min.js new file mode 100644 index 00000000000000..6a6a348277f8f0 --- /dev/null +++ b/packages/next/compiled/web-vitals/web-vitals.es5.umd.min.js @@ -0,0 +1 @@ +module.exports=function(t,e){"use strict";var n={};function __webpack_require__(e){if(n[e]){return n[e].exports}var i=n[e]={i:e,l:false,exports:{}};t[e].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(231)}return startup()}({231:function(t,e){!function(t,n){true?n(e):undefined}(this,function(t){"use strict";var e,n,i=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:t,value:e,delta:0,entries:[],id:i(),isFinal:!1}},a=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(t){return t.getEntries().map(e)});return n.observe({type:t,buffered:!0}),n}}catch(t){}},o=!1,u=!1,s=function(t){o=!t.persisted},c=function(){addEventListener("pagehide",s),addEventListener("beforeunload",function(){})},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u||(c(),u=!0),addEventListener("visibilitychange",function(e){var n=e.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:n,isUnloading:o})},{capture:!0,once:e})},f=function(t,e,n,i){var r;return function(){n&&e.isFinal&&n.disconnect(),e.value>=0&&(i||e.isFinal||"hidden"===document.visibilityState)&&(e.delta=e.value-(r||0),(e.delta||e.isFinal||void 0===r)&&(t(e),r=e.value))}},l=function(){return void 0===e&&(e="hidden"===document.visibilityState?0:1/0,p(function(t){var n=t.timeStamp;return e=n},!0)),{get timeStamp(){return e}}},d=function(){return n||(n=new Promise(function(t){return["scroll","keydown","pointerdown"].map(function(e){addEventListener(e,t,{once:!0,passive:!0,capture:!0})})})),n};t.getCLS=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r("CLS",0),o=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),e())},u=a("layout-shift",o);u&&(e=f(t,i,u,n),p(function(t){var n=t.isUnloading;u.takeRecords().map(o),n&&(i.isFinal=!0),e()}))},t.getFCP=function(t){var e,n=r("FCP"),i=l(),o=a("paint",function(t){"first-contentful-paint"===t.name&&t.startTime1&&void 0!==arguments[1]&&arguments[1],i=r("LCP"),o=l(),u=function(t){var n=t.startTime;n=10.13.0" diff --git a/packages/next/taskfile.js b/packages/next/taskfile.js index ba1b5fbcbc7f16..36489db275035f 100644 --- a/packages/next/taskfile.js +++ b/packages/next/taskfile.js @@ -38,21 +38,12 @@ const externals = { 'webpack/lib/cache/getLazyHashedEtag': 'webpack/lib/cache/getLazyHashedEtag', 'webpack/lib/RequestShortener': 'webpack/lib/RequestShortener', chokidar: 'chokidar', - // dependents: babel-loader, async-retry, cache-loader, terser-webpack-plugin - 'find-cache-dir': 'find-cache-dir', // dependents: thread-loader 'loader-runner': 'loader-runner', // dependents: thread-loader, babel-loader 'loader-utils': 'loader-utils', - // dependents: babel-loader - mkdirp: 'mkdirp', - // dependents: thread-loader, cache-loader - 'neo-async': 'neo-async', - // dependents: cache-loader, style-loader, file-loader - 'schema-utils': 'schema-utils', // dependents: terser-webpack-plugin 'jest-worker': 'jest-worker', - cacache: 'cacache', } // eslint-disable-next-line camelcase externals['amphtml-validator'] = 'next/dist/compiled/amphtml-validator' @@ -101,6 +92,14 @@ export async function ncc_babel_loader(task, opts) { .target('compiled/babel-loader') } // eslint-disable-next-line camelcase +externals['cacache'] = 'next/dist/compiled/cacache' +export async function ncc_cacache(task, opts) { + await task + .source(opts.src || relative(__dirname, require.resolve('cacache'))) + .ncc({ packageName: 'cacache' }) + .target('compiled/cacache') +} +// eslint-disable-next-line camelcase externals['cache-loader'] = 'next/dist/compiled/cache-loader' export async function ncc_cache_loader(task, opts) { await task @@ -201,6 +200,14 @@ export async function ncc_file_loader(task, opts) { .target('compiled/file-loader') } // eslint-disable-next-line camelcase +externals['find-cache-dir'] = 'next/dist/compiled/find-cache-dir' +export async function ncc_find_cache_dir(task, opts) { + await task + .source(opts.src || relative(__dirname, require.resolve('find-cache-dir'))) + .ncc({ packageName: 'find-cache-dir', externals }) + .target('compiled/find-cache-dir') +} +// eslint-disable-next-line camelcase externals['find-up'] = 'next/dist/compiled/find-up' export async function ncc_find_up(task, opts) { await task @@ -297,6 +304,14 @@ export async function ncc_lru_cache(task, opts) { .target('compiled/lru-cache') } // eslint-disable-next-line camelcase +externals['mkdirp'] = 'next/dist/compiled/mkdirp' +export async function ncc_mkdirp(task, opts) { + await task + .source(opts.src || relative(__dirname, require.resolve('mkdirp'))) + .ncc({ packageName: 'mkdirp', externals }) + .target('compiled/mkdirp') +} +// eslint-disable-next-line camelcase externals['nanoid'] = 'next/dist/compiled/nanoid' export async function ncc_nanoid(task, opts) { await task @@ -305,6 +320,14 @@ export async function ncc_nanoid(task, opts) { .target('compiled/nanoid') } // eslint-disable-next-line camelcase +externals['neo-async'] = 'next/dist/compiled/neo-async' +export async function ncc_neo_async(task, opts) { + await task + .source(opts.src || relative(__dirname, require.resolve('neo-async'))) + .ncc({ packageName: 'neo-async', externals }) + .target('compiled/neo-async') +} +// eslint-disable-next-line camelcase externals['node-fetch'] = 'next/dist/compiled/node-fetch' export async function ncc_node_fetch(task, opts) { await task @@ -376,6 +399,17 @@ export async function ncc_resolve(task, opts) { .target('compiled/resolve') } // eslint-disable-next-line camelcase +externals['schema-utils'] = 'next/dist/compiled/schema-utils' +export async function ncc_schema_utils(task, opts) { + await task + .source(opts.src || relative(__dirname, require.resolve('schema-utils'))) + .ncc({ + packageName: 'schema-utils', + externals, + }) + .target('compiled/schema-utils') +} +// eslint-disable-next-line camelcase externals['send'] = 'next/dist/compiled/send' export async function ncc_send(task, opts) { await task @@ -441,6 +475,14 @@ export async function ncc_unistore(task, opts) { .ncc({ packageName: 'unistore', externals }) .target('compiled/unistore') } +// eslint-disable-next-line camelcase +externals['web-vitals'] = 'next/dist/compiled/web-vitals' +export async function ncc_web_vitals(task, opts) { + await task + .source(opts.src || relative(__dirname, require.resolve('web-vitals'))) + .ncc({ packageName: 'web-vitals', externals }) + .target('compiled/web-vitals') +} externals['terser-webpack-plugin'] = 'next/dist/compiled/terser-webpack-plugin' export async function ncc_terser_webpack_plugin(task, opts) { @@ -495,6 +537,7 @@ export async function ncc(task) { 'ncc_async_retry', 'ncc_async_sema', 'ncc_babel_loader', + 'ncc_cacache', 'ncc_cache_loader', 'ncc_chalk', 'ncc_ci_info', @@ -507,6 +550,7 @@ export async function ncc(task) { 'ncc_escape_string_regexp', 'ncc_etag', 'ncc_file_loader', + 'ncc_find_cache_dir', 'ncc_find_up', 'ncc_fresh', 'ncc_gzip_size', @@ -519,7 +563,9 @@ export async function ncc(task) { 'ncc_jsonwebtoken', 'ncc_lodash_curry', 'ncc_lru_cache', + 'ncc_mkdirp', 'ncc_nanoid', + 'ncc_neo_async', 'ncc_node_fetch', 'ncc_ora', 'ncc_postcss_flexbugs_fixes', @@ -528,6 +574,7 @@ export async function ncc(task) { 'ncc_raw_body', 'ncc_recast', 'ncc_resolve', + 'ncc_schema_utils', 'ncc_send', 'ncc_source_map', 'ncc_string_hash', @@ -536,6 +583,7 @@ export async function ncc(task) { 'ncc_text_table', 'ncc_thread_loader', 'ncc_unistore', + 'ncc_web_vitals', 'ncc_terser_webpack_plugin', 'ncc_comment_json', 'ncc_semver', diff --git a/packages/next/types/misc.d.ts b/packages/next/types/misc.d.ts index bb5d9f77090bf6..215f91c11f7c39 100644 --- a/packages/next/types/misc.d.ts +++ b/packages/next/types/misc.d.ts @@ -197,6 +197,10 @@ declare module 'next/dist/compiled/unistore' { import m from 'unistore' export = m } +declare module 'next/dist/compiled/web-vitals' { + import m from 'web-vitals' + export = m +} declare module 'next/dist/compiled/terser-webpack-plugin' declare module 'next/dist/compiled/comment-json' {