From cca5061416e150cb49349bbf9d059f1fae64b9ee Mon Sep 17 00:00:00 2001 From: Ludovico Fischer Date: Mon, 28 Sep 2020 14:10:57 +0200 Subject: [PATCH] Update to postcss-loader 4.0.2. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - postcss-loader 4.0 improves compatibility with webpack 5. - the 4.0.2 release notes also mention improved PostCSS 8 compatibility (see issue vercel/next.js#17242) - postcss-loader by default now detects external PostCss configs and merges them with loader options, so I have disabled this to preserve Next’s current behaviour. For example, Next accepts JSON configs with comments, but postcss-loader fails to load them. - passing an `ident` field to the postcss-loader options triggers a schema validation error, so when patching the loader configuration, I try to detect the `postcssOptions` field instead. --- .../config/blocks/css/loaders/global.ts | 3 +- .../config/blocks/css/loaders/modules.ts | 3 +- .../blocks/css/overrideCssConfiguration.ts | 4 +-- packages/next/compiled/postcss-loader/LICENSE | 34 +++++++++---------- packages/next/compiled/postcss-loader/cjs.js | 1 + .../next/compiled/postcss-loader/index.js | 1 - .../next/compiled/postcss-loader/package.json | 2 +- packages/next/package.json | 2 +- yarn.lock | 29 +++++++++++++++- 9 files changed, 52 insertions(+), 27 deletions(-) create mode 100644 packages/next/compiled/postcss-loader/cjs.js delete mode 100644 packages/next/compiled/postcss-loader/index.js diff --git a/packages/next/build/webpack/config/blocks/css/loaders/global.ts b/packages/next/build/webpack/config/blocks/css/loaders/global.ts index fd708dc981bdb..f9041ac387b5c 100644 --- a/packages/next/build/webpack/config/blocks/css/loaders/global.ts +++ b/packages/next/build/webpack/config/blocks/css/loaders/global.ts @@ -36,8 +36,7 @@ export function getGlobalCssLoader( loaders.push({ loader: require.resolve('next/dist/compiled/postcss-loader'), options: { - ident: '__nextjs_postcss', - plugins: postCssPlugins, + postcssOptions: { plugins: postCssPlugins, config: false }, sourceMap: true, }, }) diff --git a/packages/next/build/webpack/config/blocks/css/loaders/modules.ts b/packages/next/build/webpack/config/blocks/css/loaders/modules.ts index f6dda1a83c382..1c232a3ed791f 100644 --- a/packages/next/build/webpack/config/blocks/css/loaders/modules.ts +++ b/packages/next/build/webpack/config/blocks/css/loaders/modules.ts @@ -52,8 +52,7 @@ export function getCssModuleLoader( loaders.push({ loader: require.resolve('next/dist/compiled/postcss-loader'), options: { - ident: '__nextjs_postcss', - plugins: postCssPlugins, + postcssOptions: { plugins: postCssPlugins, config: false }, sourceMap: true, }, }) diff --git a/packages/next/build/webpack/config/blocks/css/overrideCssConfiguration.ts b/packages/next/build/webpack/config/blocks/css/overrideCssConfiguration.ts index ee27408a356f4..4ed0ffa6fdfea 100644 --- a/packages/next/build/webpack/config/blocks/css/overrideCssConfiguration.ts +++ b/packages/next/build/webpack/config/blocks/css/overrideCssConfiguration.ts @@ -12,9 +12,9 @@ export async function __overrideCssConfiguration( if ( rule.options && typeof rule.options === 'object' && - rule.options['ident'] === '__nextjs_postcss' + typeof rule.options.postcssOptions === 'object' ) { - rule.options.plugins = postCssPlugins + rule.options.postcssOptions.plugins = postCssPlugins } else if (Array.isArray(rule.oneOf)) { rule.oneOf.forEach(patch) } else if (Array.isArray(rule.use)) { diff --git a/packages/next/compiled/postcss-loader/LICENSE b/packages/next/compiled/postcss-loader/LICENSE index c6bb2fc6ee830..3d5fa7325883a 100644 --- a/packages/next/compiled/postcss-loader/LICENSE +++ b/packages/next/compiled/postcss-loader/LICENSE @@ -1,20 +1,20 @@ -License (MIT) +Copyright JS Foundation and other contributors -Copyright 2017 Andrey Sitnik +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: -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 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. +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. \ No newline at end of file diff --git a/packages/next/compiled/postcss-loader/cjs.js b/packages/next/compiled/postcss-loader/cjs.js new file mode 100644 index 0000000000000..13f5619dfe4b2 --- /dev/null +++ b/packages/next/compiled/postcss-loader/cjs.js @@ -0,0 +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 f=r.column;let l=Math.max(o-(s+1),0);let h=Math.min(t.length,c+i);if(o===-1){l=0}if(c===-1){h=t.length}const D=c-o;const d={};if(D){for(let e=0;e<=D;e++){const u=e+o;if(!a){d[u]=true}else if(e===0){const e=t[u-1].length;d[u]=[a,e-a+1]}else if(e===D){d[u]=[0,f]}else{const n=t[u-e].length;d[u]=[0,n]}}}else{if(a===f){if(a){d[o]=[a,0]}else{d[o]=true}}else{d[o]=[a,f-a]}}return{start:l,end:h,markerLines:d}}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:f,end:l,markerLines:h}=getMarkerLines(t,c,u);const D=t.start&&typeof t.start.column==="number";const d=String(l).length;const p=r?(0,n.default)(e,u):e;let A=p.split(s).slice(f,l).map((e,t)=>{const n=f+1+t;const r=` ${n}`.slice(-d);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(d+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";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(233));var r=_interopRequireDefault(u(798));var s=_interopRequireDefault(u(880));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function cloneNode(e,t){var u=new e.constructor;for(var n in e){if(!e.hasOwnProperty(n))continue;var r=e[n];var s=typeof r;if(n==="parent"&&s==="object"){if(t)u[n]=t}else if(n==="source"){u[n]=r}else if(r instanceof Array){u[n]=r.map(function(e){return cloneNode(e,u)})}else{if(s==="object"&&r!==null)r=cloneNode(r);u[n]=r}}return u}var i=function(){function Node(e){if(e===void 0){e={}}this.raws={};if(process.env.NODE_ENV!=="production"){if(typeof e!=="object"&&typeof e!=="undefined"){throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(e))}}for(var t in e){this[t]=e[t]}}var e=Node.prototype;e.error=function error(e,t){if(t===void 0){t={}}if(this.source){var u=this.positionBy(t);return this.source.input.error(e,u.line,u.column,t)}return new n.default(e)};e.warn=function warn(e,t,u){var n={node:this};for(var r in u){n[r]=u[r]}return e.warn(t,n)};e.remove=function remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this};e.toString=function toString(e){if(e===void 0){e=s.default}if(e.stringify)e=e.stringify;var t="";e(this,function(e){t+=e});return t};e.clone=function clone(e){if(e===void 0){e={}}var t=cloneNode(this);for(var u in e){t[u]=e[u]}return t};e.cloneBefore=function cloneBefore(e){if(e===void 0){e={}}var t=this.clone(e);this.parent.insertBefore(this,t);return t};e.cloneAfter=function cloneAfter(e){if(e===void 0){e={}}var t=this.clone(e);this.parent.insertAfter(this,t);return t};e.replaceWith=function replaceWith(){if(this.parent){for(var e=arguments.length,t=new Array(e),u=0;u{t=t||process.argv;const u=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(u+e);const r=t.indexOf("--");return n!==-1&&(r===-1?true:n=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";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(241));var r=_interopRequireDefault(u(277));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s=function(){function MapGenerator(e,t,u){this.stringify=e;this.mapOpts=u.map||{};this.root=t;this.opts=u}var e=MapGenerator.prototype;e.isMap=function isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}return this.previous().length>0};e.previous=function previous(){var e=this;if(!this.previousMaps){this.previousMaps=[];this.root.walk(function(t){if(t.source&&t.source.input.map){var u=t.source.input.map;if(e.previousMaps.indexOf(u)===-1){e.previousMaps.push(u)}}})}return this.previousMaps};e.isInline=function isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}var e=this.mapOpts.annotation;if(typeof e!=="undefined"&&e!==true){return false}if(this.previous().length){return this.previous().some(function(e){return e.inline})}return true};e.isSourcesContent=function isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(function(e){return e.withContent()})}return true};e.clearAnnotation=function clearAnnotation(){if(this.mapOpts.annotation===false)return;var e;for(var 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)}}};e.setSourcesContent=function setSourcesContent(){var e=this;var t={};this.root.walk(function(u){if(u.source){var n=u.source.input.from;if(n&&!t[n]){t[n]=true;var r=e.relative(n);e.map.setSourceContent(r,u.source.input.css)}}})};e.applyPrevMaps=function applyPrevMaps(){for(var e=this.previous(),t=Array.isArray(e),u=0,e=t?e:e[Symbol.iterator]();;){var s;if(t){if(u>=e.length)break;s=e[u++]}else{u=e.next();if(u.done)break;s=u.value}var i=s;var o=this.relative(i.file);var a=i.root||r.default.dirname(i.file);var c=void 0;if(this.mapOpts.sourcesContent===false){c=new n.default.SourceMapConsumer(i.text);if(c.sourcesContent){c.sourcesContent=c.sourcesContent.map(function(){return null})}}else{c=i.consumer()}this.map.applySourceMap(c,o,this.relative(a))}};e.isAnnotation=function isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some(function(e){return e.annotation})}return true};e.toBase64=function toBase64(e){if(Buffer){return Buffer.from(e).toString("base64")}return window.btoa(unescape(encodeURIComponent(e)))};e.addAnnotation=function addAnnotation(){var 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{e=this.outputFile()+".map"}var t="\n";if(this.css.indexOf("\r\n")!==-1)t="\r\n";this.css+=t+"/*# sourceMappingURL="+e+" */"};e.outputFile=function outputFile(){if(this.opts.to){return this.relative(this.opts.to)}if(this.opts.from){return this.relative(this.opts.from)}return"to.css"};e.generateMap=function 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]};e.relative=function relative(e){if(e.indexOf("<")===0)return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?r.default.dirname(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){t=r.default.dirname(r.default.resolve(t,this.mapOpts.annotation))}e=r.default.relative(t,e);if(r.default.sep==="\\"){return e.replace(/\\/g,"/")}return e};e.sourcePath=function sourcePath(e){if(this.mapOpts.from){return this.mapOpts.from}return this.relative(e.source.input.from)};e.generateString=function generateString(){var e=this;this.css="";this.map=new n.default.SourceMapGenerator({file:this.outputFile()});var t=1;var u=1;var r,s;this.stringify(this.root,function(n,i,o){e.css+=n;if(i&&o!=="end"){if(i.source&&i.source.start){e.map.addMapping({source:e.sourcePath(i),generated:{line:t,column:u-1},original:{line:i.source.start.line,column:i.source.start.column-1}})}else{e.map.addMapping({source:"",original:{line:1,column:0},generated:{line:t,column:u-1}})}}r=n.match(/\n/g);if(r){t+=r.length;s=n.lastIndexOf("\n");u=n.length-s}else{u+=n.length}if(i&&o!=="start"){var a=i.parent||{raws:{}};if(i.type!=="decl"||i!==a.last||a.raws.semicolon){if(i.source&&i.source.end){e.map.addMapping({source:e.sourcePath(i),generated:{line:t,column:u-2},original:{line:i.source.end.line,column:i.source.end.column-1}})}else{e.map.addMapping({source:"",original:{line:1,column:0},generated:{line:t,column:u-1}})}}}})};e.generate=function generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}var e="";this.stringify(this.root,function(t){e+=t});return[e]};return MapGenerator}();var i=s;t.default=i;e.exports=t.default},54:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(277));var r=_interopRequireDefault(u(233));var s=_interopRequireDefault(u(560));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;u"}if(this.map)this.map.file=this.from}var e=Input.prototype;e.error=function error(e,t,u,n){if(n===void 0){n={}}var s;var i=this.origin(t,u);if(i){s=new r.default(e,i.line,i.column,i.source,i.file,n.plugin)}else{s=new r.default(e,t,u,this.css,this.file,n.plugin)}s.input={line:t,column:u,source:this.css};if(this.file)s.input.file=this.file;return s};e.origin=function origin(e,t){if(!this.map)return false;var u=this.map.consumer();var n=u.originalPositionFor({line:e,column:t});if(!n.source)return false;var r={file:this.mapResolve(n.source),line:n.line,column:n.column};var s=u.sourceContentFor(n.source);if(s)r.source=s;return r};e.mapResolve=function mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return n.default.resolve(this.map.consumer().sourceRoot||".",e)};_createClass(Input,[{key:"from",get:function get(){return this.file||this.id}}]);return Input}();var a=o;t.default=a;e.exports=t.default},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 f=c==="#";const l=[];let h=null;while(c==="\n"||c==="#"){if(c==="#"){const e=n.Node.endOfLine(r,a+1);l.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"&&l.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(l.length)Array.prototype.push.apply(this.props,l);a=this.node.range.end}else{if(f){const e=l[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 f=n.Node.endOfWhiteSpace(r,s)===a;let l=false;while(c){while(c==="\n"||c==="#"){if(f&&c==="\n"&&!l){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];f=true}if(!c){break}if(a!==s+o&&(f||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:f,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];f=false;l=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;f=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 f=this.type===n.Type.BLOCK_FOLDED;let l=true;let h="";let D="";let d=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,t){"use strict";t.__esModule=true;t.default=warnOnce;var u={};function warnOnce(e){if(u[e])return;u[e]=true;if(typeof console!=="undefined"&&console.warn){console.warn(e)}}e.exports=t.default},134:function(e){e.exports=require("schema-utils")},149:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(990));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=function(e){_inheritsLoose(AtRule,e);function AtRule(t){var u;u=e.call(this,t)||this;u.type="atrule";return u}var t=AtRule.prototype;t.append=function append(){var t;if(!this.nodes)this.nodes=[];for(var u=arguments.length,n=new Array(u),r=0;r=u.length)break;s=u[r++]}else{r=u.next();if(r.done)break;s=r.value}var i=s;if(i.postcss)i=i.postcss;if(typeof i==="object"&&Array.isArray(i.plugins)){t=t.concat(i.plugins)}else if(typeof i==="function"){t.push(i)}else if(typeof i==="object"&&(i.parse||i.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(i+" is not a PostCSS plugin")}}return t};return Processor}();var s=r;t.default=s;e.exports=t.default},191:function(e){"use strict";class Warning extends Error{constructor(e){super(e);const{text:t,line:u,column:n}=e;this.name="Warning";this.message=`${this.name}\n\n`;if(typeof u!=="undefined"){this.message+=`(${u}:${n}) `}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 f=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 f(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";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(573));var r=_interopRequireDefault(u(736));var s=_interopRequireDefault(u(958));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _assertThisInitialized(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function _wrapNativeSuper(e){var t=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(e){if(e===null||!_isNativeFunction(e))return e;if(typeof e!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(e))return t.get(e);t.set(e,Wrapper)}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,e)};return _wrapNativeSuper(e)}function isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}function _construct(e,t,u){if(isNativeReflectConstruct()){_construct=Reflect.construct}else{_construct=function _construct(e,t,u){var n=[null];n.push.apply(n,t);var r=Function.bind.apply(e,n);var s=new r;if(u)_setPrototypeOf(s,u.prototype);return s}}return _construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}function _getPrototypeOf(e){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)};return _getPrototypeOf(e)}var i=function(e){_inheritsLoose(CssSyntaxError,e);function CssSyntaxError(t,u,n,r,s,i){var o;o=e.call(this,t)||this;o.name="CssSyntaxError";o.reason=t;if(s){o.file=s}if(r){o.source=r}if(i){o.plugin=i}if(typeof u!=="undefined"&&typeof n!=="undefined"){o.line=u;o.column=n}o.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(_assertThisInitialized(o),CssSyntaxError)}return o}var t=CssSyntaxError.prototype;t.setMessage=function 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};t.showSourceCode=function showSourceCode(e){var t=this;if(!this.source)return"";var u=this.source;if(s.default){if(typeof e==="undefined")e=n.default.stdout;if(e)u=(0,s.default)(u)}var i=u.split(/\r?\n/);var o=Math.max(this.line-3,0);var a=Math.min(this.line+2,i.length);var c=String(a).length;function mark(t){if(e&&r.default.red){return r.default.red.bold(t)}return t}function aside(t){if(e&&r.default.gray){return r.default.gray(t)}return t}return i.slice(o,a).map(function(e,u){var n=o+1+u;var r=" "+(" "+n).slice(-c)+" | ";if(n===t.line){var s=aside(r.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return mark(">")+aside(r)+e+"\n "+s+mark("^")}return" "+aside(r)+e}).join("\n")};t.toString=function toString(){var e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e};return CssSyntaxError}(_wrapNativeSuper(Error));var o=i;t.default=o;e.exports=t.default},241:function(e){e.exports=require("next/dist/compiled/source-map")},249:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(7));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=function(e){_inheritsLoose(Declaration,e);function Declaration(t){var u;u=e.call(this,t)||this;u.type="decl";return u}return Declaration}(n.default);var s=r;t.default=s;e.exports=t.default},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";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(249));var r=_interopRequireDefault(u(622));var s=_interopRequireDefault(u(374));var i=_interopRequireDefault(u(149));var o=_interopRequireDefault(u(847));var a=_interopRequireDefault(u(301));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var c=function(){function Parser(e){this.input=e;this.root=new o.default;this.current=this.root;this.spaces="";this.semicolon=false;this.createTokenizer();this.root.source={input:e,start:{line:1,column:1}}}var e=Parser.prototype;e.createTokenizer=function createTokenizer(){this.tokenizer=(0,r.default)(this.input)};e.parse=function parse(){var 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()};e.comment=function comment(e){var t=new s.default;this.init(t,e[2],e[3]);t.source.end={line:e[4],column:e[5]};var u=e[1].slice(2,-2);if(/^\s*$/.test(u)){t.text="";t.raws.left=u;t.raws.right=""}else{var n=u.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=n[2];t.raws.left=n[1];t.raws.right=n[3]}};e.emptyRule=function emptyRule(e){var t=new a.default;this.init(t,e[2],e[3]);t.selector="";t.raws.between="";this.current=t};e.other=function other(e){var t=false;var u=null;var n=false;var r=null;var s=[];var i=[];var o=e;while(o){u=o[0];i.push(o);if(u==="("||u==="["){if(!r)r=o;s.push(u==="("?")":"]")}else if(s.length===0){if(u===";"){if(n){this.decl(i);return}else{break}}else if(u==="{"){this.rule(i);return}else if(u==="}"){this.tokenizer.back(i.pop());t=true;break}else if(u===":"){n=true}}else if(u===s[s.length-1]){s.pop();if(s.length===0)r=null}o=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(s.length>0)this.unclosedBracket(r);if(t&&n){while(i.length){o=i[i.length-1][0];if(o!=="space"&&o!=="comment")break;this.tokenizer.back(i.pop())}this.decl(i)}else{this.unknownWord(i)}};e.rule=function rule(e){e.pop();var t=new a.default;this.init(t,e[0][2],e[0][3]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t};e.decl=function decl(e){var t=new n.default;this.init(t);var u=e[e.length-1];if(u[0]===";"){this.semicolon=true;e.pop()}if(u[4]){t.source.end={line:u[4],column:u[5]}}else{t.source.end={line:u[2],column:u[3]}}while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);t.raws.before+=e.shift()[1]}t.source.start={line:e[0][2],column:e[0][3]};t.prop="";while(e.length){var r=e[0][0];if(r===":"||r==="space"||r==="comment"){break}t.prop+=e.shift()[1]}t.raws.between="";var s;while(e.length){s=e.shift();if(s[0]===":"){t.raws.between+=s[1];break}else{if(s[0]==="word"&&/\w/.test(s[1])){this.unknownWord([s])}t.raws.between+=s[1]}}if(t.prop[0]==="_"||t.prop[0]==="*"){t.raws.before+=t.prop[0];t.prop=t.prop.slice(1)}t.raws.between+=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(var i=e.length-1;i>0;i--){s=e[i];if(s[1].toLowerCase()==="!important"){t.important=true;var o=this.stringFrom(e,i);o=this.spacesFromEnd(e)+o;if(o!==" !important")t.raws.important=o;break}else if(s[1].toLowerCase()==="important"){var a=e.slice(0);var c="";for(var f=i;f>0;f--){var l=a[f][0];if(c.trim().indexOf("!")===0&&l!=="space"){break}c=a.pop()[1]+c}if(c.trim().indexOf("!")===0){t.important=true;t.raws.important=c;e=a}}if(s[0]!=="space"&&s[0]!=="comment"){break}}this.raw(t,"value",e);if(t.value.indexOf(":")!==-1)this.checkMissedSemicolon(e)};e.atrule=function atrule(e){var t=new i.default;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2],e[3]);var u;var n;var r=false;var s=false;var o=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();if(e[0]===";"){t.source.end={line:e[2],column:e[3]};this.semicolon=true;break}else if(e[0]==="{"){s=true;break}else if(e[0]==="}"){if(o.length>0){n=o.length-1;u=o[n];while(u&&u[0]==="space"){u=o[--n]}if(u){t.source.end={line:u[4],column:u[5]}}}this.end(e);break}else{o.push(e)}if(this.tokenizer.endOfFile()){r=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(o);if(o.length){t.raws.afterName=this.spacesAndCommentsFromStart(o);this.raw(t,"params",o);if(r){e=o[o.length-1];t.source.end={line:e[4],column:e[5]};this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(s){t.nodes=[];this.current=t}};e.end=function 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={line:e[2],column:e[3]};this.current=this.current.parent}else{this.unexpectedClose(e)}};e.endFile=function 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};e.freeSemicolon=function freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];if(t&&t.type==="rule"&&!t.raws.ownSemicolon){t.raws.ownSemicolon=this.spaces;this.spaces=""}}};e.init=function init(e,t,u){this.current.push(e);e.source={start:{line:t,column:u},input:this.input};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false};e.raw=function raw(e,t,u){var n,r;var s=u.length;var i="";var o=true;var a,c;var f=/^([.|#])?([\w])+/i;for(var l=0;l=0;r--){n=e[r];if(n[0]!=="space"){u+=1;if(u===2)break}}throw this.input.error("Missed semicolon",n[2],n[3])};return Parser}();t.default=c;e.exports=t.default},301:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(990));var r=_interopRequireDefault(u(430));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;utoJSON(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:f}=e;const l=this.type===n.Type.FLOW_MAP||this.type===n.Type.FLOW_SEQ||e.inFlow;if(l)s+=c;const h=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:s,inFlow:l,type:null});let D=false;let d=false;const p=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(l&&(!D&&u.spaceBefore||u.commentBefore||u.comment||u.key&&(u.key.commentBefore||u.key.comment)||u.value&&(u.value.commentBefore||u.value.comment)))d=true}D=false;let i=f(u,e,()=>r=null,()=>D=true);if(l&&!d&&i.includes("\n"))d=true;if(l&&ne.str);if(d||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=p.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 f=!i&&(!o||c||o instanceof Collection||o.type===n.Type.BLOCK_FOLDED||o.type===n.Type.BLOCK_LITERAL);const{doc:l,indent:h,indentStep:D,stringify:d}=e;e=Object.assign({},e,{implicitKey:!f,indent:h+D});let p=false;let A=d(o,e,()=>c=null,()=>p=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(p&&!c&&u)u();return e.inFlow?A:`? ${A}`}A=f?`? ${A}\n${h}:`:`${A}:`;if(this.comment){A=addComment(A,e.indent,this.comment);if(t)t()}let C="";let g=null;if(a instanceof Node){if(a.spaceBefore)C="\n";if(a.commentBefore){const t=a.commentBefore.replace(/^/gm,`${e.indent}#`);C+=`\n${t}`}g=a.comment}else if(a&&typeof a==="object"){a=l.schema.createNode(a,true)}e.implicitKey=false;if(!f&&!this.comment&&a instanceof Scalar)e.indentAtStart=A.length+1;p=false;if(!s&&r>=2&&!e.inFlow&&!f&&a instanceof YAMLSeq&&a.type!==n.Type.FLOW_SEQ&&!a.tag&&!l.anchors.getName(a)){e.indent=e.indent.substr(2)}const F=d(a,e,()=>g=null,()=>p=true);let E=" ";if(C||this.comment){E=`${C}\n${e.indent}`}else if(!f&&a instanceof Collection){const t=F[0]==="["||F[0]==="{";if(!t||F.includes("\n"))E=`\n${e.indent}`}if(p&&!g&&u)u();return addComment(A+E+F,e.indent,g)}}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 f={asBigInt:false};const l={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 d="block";const p="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 f={};let l=r-(typeof n==="number"?n:t.length);let h=undefined;let D=undefined;let C=false;let g=-1;if(u===d){g=A(e,g);if(g!==-1)l=g+a}for(let t;t=e[g+=1];){if(u===p&&t==="\\"){switch(e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}}if(t==="\n"){if(u===d)g=A(e,g);l=g+a;h=undefined}else{if(t===" "&&D&&D!==" "&&D!=="\n"&&D!=="\t"){const t=e[g+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")h=g}if(g>=l){if(h){c.push(h);l=h+a;h=undefined}else if(u===p){while(D===" "||D==="\t"){D=t;t=e[g+=1];C=true}c.push(g-2);f[g-2]=true;l=g-2+a;h=undefined}else{C=true}}}D=t}if(C&&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 g=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||(g(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 f+"\n";let l="";let D="";u=u.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");if(t===-1){f+="-"}else if(u===e||t!==e.length-1){f+="+";if(i)i()}D=e.replace(/\n$/,"");return""}).replace(/^[\n ]*/,e=>{if(e.indexOf(" ")!==-1)f+=a;const t=e.match(/ +$/);if(t){l=e.slice(0,-t[0].length);return t[0]}else{l=e;return""}});if(D)D=D.replace(/\n+(?!\n|$)/g,`$&${o}`);if(l)l=l.replace(/\n+/g,`$&${o}`);if(e){f+=" #"+e.replace(/ ?[\r\n]+/g," ");if(s)s()}if(!u)return`${f}${a}\n${o}${D}`;if(c){u=u.replace(/\n+/g,`$&${o}`);return`${f}\n${o}${l}${u}${D}`}u=u.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);const p=foldFlowLines(`${l}${u}${D}`,o,d,h.fold);return`${f}\n${o}${p}`}function plainString(e,t,u,r){const{comment:s,type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:f,inFlow:l}=t;if(c&&/[\n[\]{},]/.test(o)||l&&/[[\]{},]/.test(o)){return doubleQuotedString(o,t)}if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||l||o.indexOf("\n")===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?singleQuotedString(o,t):doubleQuotedString(o,t):blockString(e,t,u,r)}if(!c&&!l&&i!==n.Type.PLAIN&&o.indexOf("\n")!==-1){return blockString(e,t,u,r)}if(f===""&&g(o)){t.forceBlockIndent=true;return blockString(e,t,u,r)}const h=o.replace(/\n+/g,`$&\n${f}`);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 d=c?h:foldFlowLines(h,f,D,C(t));if(s&&!l&&(d.indexOf("\n")!==-1||s.indexOf("\n")!==-1)){if(u)u();return addCommentBefore(d,f,s)}return d}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 f=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 l=f(a);if(l===null){l=f(s);if(l===null)throw new Error(`Unsupported default string type ${s}`)}return l}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},374:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(7));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=function(e){_inheritsLoose(Comment,e);function Comment(t){var u;u=e.call(this,t)||this;u.type="comment";return u}return Comment}(n.default);var s=r;t.default=s;e.exports=t.default},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 f=_interopRequireDefault(u(851));var l=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)(f.default,h,{name:"PostCSS Loader",baseDataPath:"options"});const D=this.async();const d=typeof h.postcssOptions==="undefined"||typeof h.postcssOptions.config==="undefined"?true:h.postcssOptions.config;let p;if(d){try{p=await(0,l.loadConfig)(this,d)}catch(e){D(e);return}}const A=typeof h.sourceMap!=="undefined"?h.sourceMap:this.sourceMap;const{plugins:C,processOptions:g}=(0,l.getPostcssOptions)(this,p,h.postcssOptions);if(A){g.map={inline:false,annotation:false,...g.map}}if(t&&g.map){g.map.prev=(0,l.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,l.exec)(e,this)}let E;try{E=await(0,s.default)(C).process(F||e,g)}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,l.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,t){"use strict";t.__esModule=true;t.default=void 0;var u={split:function split(e,t,u){var n=[];var r="";var split=false;var s=0;var i=false;var o=false;for(var a=0;a0)s-=1}else if(s===0){if(t.indexOf(c)!==-1)split=true}if(split){if(r!=="")n.push(r.trim());r="";split=false}else{r+=c}}if(u||r!=="")n.push(r.trim());return n},space:function space(e){var t=[" ","\n","\t"];return u.split(e,t)},comma:function comma(e){return u.split(e,[","],true)}};var n=u;t.default=n;e.exports=t.default},439:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(294));var r=_interopRequireDefault(u(54));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e,t){var u=new r.default(e,t);var s=new n.default(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}var s=parse;t.default=s;e.exports=t.default},444:function(e){e.exports={name:"postcss",version:"7.0.32",description:"Tool for transforming styles with JS plugins",engines:{node:">=6.0.0"},keywords:["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],funding:{type:"tidelift",url:"https://tidelift.com/funding/github/npm/postcss"},author:"Andrey Sitnik ",license:"MIT",homepage:"https://postcss.org/",repository:"postcss/postcss",dependencies:{chalk:"^2.4.2","source-map":"^0.6.1","supports-color":"^6.1.0"},main:"lib/postcss",types:"lib/postcss.d.ts",husky:{hooks:{"pre-commit":"lint-staged"}},browser:{"./lib/terminal-highlight":false,"supports-color":false,chalk:false,fs:false},browserslist:["last 2 version","not dead","not Explorer 11","not ExplorerMobile 11","node 6"]}},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 f=e=>typeof e==="bigint"||Number.isInteger(e);const l=(e,t,u)=>r.intOptions.asBigInt?BigInt(e):parseInt(t,u);function intStringify(e,t,u){const{value:n}=e;if(f(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 d={identify:e=>f(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>l(e,t,8),options:r.intOptions,stringify:e=>intStringify(e,8,"0o")};const p={identify:f,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>l(e,e,10),options:r.intOptions,stringify:r.stringifyNumber};const A={identify:e=>f(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>l(e,t,16),options:r.intOptions,stringify:e=>intStringify(e,16,"0x")};const C={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 g={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,d,p,A,C,g,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 v=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(v(n)){const e=n.toString(t);return n<0?"-"+u+e.substr(1):u+e}return r.stringifyNumber(e)}const S=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:v,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:v,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:v,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:v,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 b={core:E,failsafe:c,json:y,yaml11:S};const O={binary:s.binary,bool:D,float:F,floatExp:g,floatNaN:C,floatTime:s.floatTime,int:p,intHex:A,intOct:d,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:f}=u;if(t&&t.startsWith("!!"))t=n+t.slice(2);let l=findTagObject(e,t,c.tags);if(!l){if(typeof e.toJSON==="function")e=e.toJSON();if(typeof e!=="object")return f?new r.Scalar(e):e;l=e instanceof Map?i:e[Symbol.iterator]?o:i}if(s){s(l);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=l.createNode?l.createNode(u.schema,e,u):f?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 M=(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?M:n||null;if(!e&&r)s.warnOptionDeprecation("tags","customTags");this.tags=getSchemaTags(b,O,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))},552: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=typeof e.constructor==="function"?new e.constructor:Object.create(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);t0)};e.startWith=function startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t};e.getAnnotationURL=function getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()};e.loadAnnotation=function loadAnnotation(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//gm);if(t&&t.length>0){var u=t[t.length-1];if(u){this.annotation=this.getAnnotationURL(u)}}};e.decodeInline=function decodeInline(e){var t=/^data:application\/json;charset=utf-?8;base64,/;var u=/^data:application\/json;base64,/;var n="data:application/json,";if(this.startWith(e,n)){return decodeURIComponent(e.substr(n.length))}if(t.test(e)||u.test(e)){return fromBase64(e.substr(RegExp.lastMatch.length))}var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)};e.loadMap=function loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){var u=t(e);if(u&&s.default.existsSync&&s.default.existsSync(u)){return s.default.readFileSync(u,"utf-8").toString().trim()}else{throw new Error("Unable to load previous source map: "+u.toString())}}else if(t instanceof n.default.SourceMapConsumer){return n.default.SourceMapGenerator.fromSourceMap(t).toString()}else if(t instanceof n.default.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){var i=this.annotation;if(e)i=r.default.join(r.default.dirname(e),i);this.root=r.default.dirname(i);if(s.default.existsSync&&s.default.existsSync(i)){return s.default.readFileSync(i,"utf-8").toString().trim()}else{return false}}};e.isMap=function isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"};return PreviousMap}();var o=i;t.default=o;e.exports=t.default},573:function(e,t,u){"use strict";const n=u(87);const r=u(21);const{env:s}=process;let i;if(r("no-color")||r("no-colors")||r("color=false")||r("color=never")){i=0}else if(r("color")||r("colors")||r("color=true")||r("color=always")){i=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR===true||s.FORCE_COLOR==="true"){i=1}else if(s.FORCE_COLOR===false||s.FORCE_COLOR==="false"){i=0}else{i=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===0){return 0}if(r("color=16m")||r("color=full")||r("color=truecolor")){return 3}if(r("color=256")){return 2}if(e&&!e.isTTY&&i===undefined){return 0}const t=i||0;if(s.TERM==="dumb"){return t}if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},585:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(893));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;un(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,t){"use strict";t.__esModule=true;t.default=tokenizer;var u="'".charCodeAt(0);var n='"'.charCodeAt(0);var r="\\".charCodeAt(0);var s="/".charCodeAt(0);var i="\n".charCodeAt(0);var o=" ".charCodeAt(0);var a="\f".charCodeAt(0);var c="\t".charCodeAt(0);var f="\r".charCodeAt(0);var l="[".charCodeAt(0);var h="]".charCodeAt(0);var D="(".charCodeAt(0);var d=")".charCodeAt(0);var p="{".charCodeAt(0);var A="}".charCodeAt(0);var C=";".charCodeAt(0);var g="*".charCodeAt(0);var F=":".charCodeAt(0);var E="@".charCodeAt(0);var w=/[ \n\t\r\f{}()'"\\;/[\]#]/g;var B=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g;var y=/.[\\/("'\n]/;var m=/[a-f0-9]/i;function tokenizer(e,t){if(t===void 0){t={}}var v=e.css.valueOf();var S=t.ignoreErrors;var b,O,M,N,R,T,L;var $,x,I,P,_,Y,j;var W=v.length;var q=-1;var U=1;var J=0;var Q=[];var z=[];function position(){return J}function unclosed(t){throw e.error("Unclosed "+t,U,J-q)}function endOfFile(){return z.length===0&&J>=W}function nextToken(e){if(z.length)return z.pop();if(J>=W)return;var t=e?e.ignoreUnclosed:false;b=v.charCodeAt(J);if(b===i||b===a||b===f&&v.charCodeAt(J+1)!==i){q=J;U+=1}switch(b){case i:case o:case c:case f:case a:O=J;do{O+=1;b=v.charCodeAt(O);if(b===i){q=O;U+=1}}while(b===o||b===i||b===c||b===f||b===a);j=["space",v.slice(J,O)];J=O-1;break;case l:case h:case p:case A:case F:case C:case d:var G=String.fromCharCode(b);j=[G,G,U,J-q];break;case D:_=Q.length?Q.pop()[1]:"";Y=v.charCodeAt(J+1);if(_==="url"&&Y!==u&&Y!==n&&Y!==o&&Y!==i&&Y!==c&&Y!==a&&Y!==f){O=J;do{I=false;O=v.indexOf(")",O+1);if(O===-1){if(S||t){O=J;break}else{unclosed("bracket")}}P=O;while(v.charCodeAt(P-1)===r){P-=1;I=!I}}while(I);j=["brackets",v.slice(J,O+1),U,J-q,U,O-q];J=O}else{O=v.indexOf(")",J+1);T=v.slice(J,O+1);if(O===-1||y.test(T)){j=["(","(",U,J-q]}else{j=["brackets",T,U,J-q,U,O-q];J=O}}break;case u:case n:M=b===u?"'":'"';O=J;do{I=false;O=v.indexOf(M,O+1);if(O===-1){if(S||t){O=J+1;break}else{unclosed("string")}}P=O;while(v.charCodeAt(P-1)===r){P-=1;I=!I}}while(I);T=v.slice(J,O+1);N=T.split("\n");R=N.length-1;if(R>0){$=U+R;x=O-N[R].length}else{$=U;x=q}j=["string",v.slice(J,O+1),U,J-q,$,O-x];q=x;U=$;J=O;break;case E:w.lastIndex=J+1;w.test(v);if(w.lastIndex===0){O=v.length-1}else{O=w.lastIndex-2}j=["at-word",v.slice(J,O+1),U,J-q,U,O-q];J=O;break;case r:O=J;L=true;while(v.charCodeAt(O+1)===r){O+=1;L=!L}b=v.charCodeAt(O+1);if(L&&b!==s&&b!==o&&b!==i&&b!==c&&b!==f&&b!==a){O+=1;if(m.test(v.charAt(O))){while(m.test(v.charAt(O+1))){O+=1}if(v.charCodeAt(O+1)===o){O+=1}}}j=["word",v.slice(J,O+1),U,J-q,U,O-q];J=O;break;default:if(b===s&&v.charCodeAt(J+1)===g){O=v.indexOf("*/",J+2)+1;if(O===0){if(S||t){O=v.length}else{unclosed("comment")}}T=v.slice(J,O+1);N=T.split("\n");R=N.length-1;if(R>0){$=U+R;x=O-N[R].length}else{$=U;x=q}j=["comment",T,U,J-q,$,O-x];q=x;U=$;J=O}else{B.lastIndex=J+1;B.test(v);if(B.lastIndex===0){O=v.length-1}else{O=B.lastIndex-2}j=["word",v.slice(J,O+1),U,J-q,U,O-q];Q.push(j);J=O}break}J++;return j}function back(e){z.push(e)}return{back:back,nextToken:nextToken,endOfFile:endOfFile,position:position}}e.exports=t.default},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 f=({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 l={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:f};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:f};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 f=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;f-=6e4*e}return new Date(f)},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 d={};function warnOptionDeprecation(e,t){if(!d[e]&&shouldWarn(true)){d[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=l;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(552);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&&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 f={from:r,to:r,map:false,...a,...c};if(typeof f.parser==="string"){try{f.parser=require(f.parser)}catch(t){e.emitError(new Error(`Loading PostCSS "${f.parser}" parser failed: ${t.message}\n\n(@${r})`))}}if(typeof f.stringifier==="string"){try{f.stringifier=require(f.stringifier)}catch(t){e.emitError(new Error(`Loading PostCSS "${f.stringifier}" stringifier failed: ${t.message}\n\n(@${r})`))}}if(typeof f.syntax==="string"){try{f.syntax=require(f.syntax)}catch(t){e.emitError(new Error(`Loading PostCSS "${f.syntax}" syntax failed: ${t.message}\n\n(@${r})`))}}if(f.map===true){f.map={inline:true}}return{plugins:o,processOptions:f}}const c=/^[a-z]:[/\\]|^\\\\/i;const f=/^[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 f.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";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(52));var r=_interopRequireDefault(u(880));var s=_interopRequireDefault(u(112));var i=_interopRequireDefault(u(585));var o=_interopRequireDefault(u(439));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;uparseInt(i[1])){console.error("Unknown error from PostCSS plugin. Your current PostCSS "+"version is "+r+", but "+u+" uses "+n+". Perhaps this is the source of the error below.")}}}}catch(e){if(console&&console.error)console.error(e)}};e.asyncTick=function asyncTick(e,t){var u=this;if(this.plugin>=this.processor.plugins.length){this.processed=true;return e()}try{var n=this.processor.plugins[this.plugin];var r=this.run(n);this.plugin+=1;if(isPromise(r)){r.then(function(){u.asyncTick(e,t)}).catch(function(e){u.handleError(e,n);u.processed=true;t(e)})}else{this.asyncTick(e,t)}}catch(e){this.processed=true;t(e)}};e.async=function async(){var e=this;if(this.processed){return new Promise(function(t,u){if(e.error){u(e.error)}else{t(e.stringify())}})}if(this.processing){return this.processing}this.processing=new Promise(function(t,u){if(e.error)return u(e.error);e.plugin=0;e.asyncTick(t,u)}).then(function(){e.processed=true;return e.stringify()});return this.processing};e.sync=function sync(){if(this.processed)return this.result;this.processed=true;if(this.processing){throw new Error("Use process(css).then(cb) to work with async plugins")}if(this.error)throw this.error;for(var e=this.result.processor.plugins,t=Array.isArray(e),u=0,e=t?e:e[Symbol.iterator]();;){var n;if(t){if(u>=e.length)break;n=e[u++]}else{u=e.next();if(u.done)break;n=u.value}var r=n;var s=this.run(r);if(isPromise(s)){throw new Error("Use process(css).then(cb) to work with async plugins")}}return this.result};e.run=function run(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){this.handleError(t,e);throw t}};e.stringify=function stringify(){if(this.stringified)return this.result;this.stringified=true;this.sync();var e=this.result.opts;var t=r.default;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;var u=new n.default(t,this.result.root,this.result.opts);var s=u.generate();this.result.css=s[0];this.result.map=s[1];return this.result};_createClass(LazyResult,[{key:"processor",get:function get(){return this.result.processor}},{key:"opts",get:function get(){return this.result.opts}},{key:"css",get:function get(){return this.stringify().css}},{key:"content",get:function get(){return this.stringify().content}},{key:"map",get:function get(){return this.stringify().map}},{key:"root",get:function get(){return this.sync().root}},{key:"messages",get:function get(){return this.sync().messages}}]);return LazyResult}();var c=a;t.default=c;e.exports=t.default},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,t){"use strict";t.__esModule=true;t.default=void 0;var u={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)}var n=function(){function Stringifier(e){this.builder=e}var e=Stringifier.prototype;e.stringify=function stringify(e,t){this[e.type](e,t)};e.root=function root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)};e.comment=function comment(e){var t=this.raw(e,"left","commentLeft");var u=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+u+"*/",e)};e.decl=function decl(e,t){var u=this.raw(e,"between","colon");var n=e.prop+u+this.rawValue(e,"value");if(e.important){n+=e.raws.important||" !important"}if(t)n+=";";this.builder(n,e)};e.rule=function rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}};e.atrule=function atrule(e,t){var u="@"+e.name;var 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{var r=(e.raws.between||"")+(t?";":"");this.builder(u+n+r,e)}};e.body=function body(e){var t=e.nodes.length-1;while(t>0){if(e.nodes[t].type!=="comment")break;t-=1}var u=this.raw(e,"semicolon");for(var n=0;n0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.indexOf("\n")!==-1){t=t.replace(/[^\n]+$/,"")}return false}}});if(t)t=t.replace(/[^\s]/g,"");return t};e.rawBeforeOpen=function rawBeforeOpen(e){var t;e.walk(function(e){if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}});return t};e.rawColon=function rawColon(e){var t;e.walkDecls(function(e){if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}});return t};e.beforeAfter=function beforeAfter(e,t){var 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")}var n=e.parent;var r=0;while(n&&n.type!=="root"){r+=1;n=n.parent}if(u.indexOf("\n")!==-1){var s=this.raw(e,null,"indent");if(s.length){for(var i=0;i=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}})()},847:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(990));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=function(e){_inheritsLoose(Root,e);function Root(t){var u;u=e.call(this,t)||this;u.type="root";if(!u.nodes)u.nodes=[];return u}var t=Root.prototype;t.removeChild=function removeChild(t,u){var n=this.index(t);if(!u&&n===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[n].raws.before}return e.prototype.removeChild.call(this,t)};t.normalize=function normalize(t,u,n){var r=e.prototype.normalize.call(this,t);if(u){if(n==="prepend"){if(this.nodes.length>1){u.raws.before=this.nodes[1].raws.before}else{delete u.raws.before}}else if(this.first!==u){for(var s=r,i=Array.isArray(s),o=0,s=i?s:s[Symbol.iterator]();;){var a;if(i){if(o>=s.length)break;a=s[o++]}else{o=s.next();if(o.done)break;a=o.value}var c=a;c.raws.before=u.raws.before}}}return r};t.toResult=function toResult(e){if(e===void 0){e={}}var t=u(698);var n=u(184);var r=new t(new n,this,e);return r.stringify()};return Root}(n.default);var s=r;t.default=s;e.exports=t.default},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";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(798));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringify(e,t){var u=new n.default(t);u.stringify(e)}var r=stringify;t.default=r;e.exports=t.default},893:function(e,t){"use strict";t.__esModule=true;t.default=void 0;var u=function(){function Warning(e,t){if(t===void 0){t={}}this.type="warning";this.text=e;if(t.node&&t.node.source){var u=t.node.positionBy(t);this.line=u.line;this.column=u.column}for(var n in t){this[n]=t[n]}}var e=Warning.prototype;e.toString=function 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};return Warning}();var n=u;t.default=n;e.exports=t.default},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}}},918:function(e,t){"use strict";t.__esModule=true;t.default=void 0;var u={prefix:function prefix(e){var t=e.match(/^(-\w+-)/);if(t){return t[0]}return""},unprefixed:function unprefixed(e){return e.replace(/^-\w+-/,"")}};var n=u;t.default=n;e.exports=t.default},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}=e;this.name="SyntaxError";this.message=`${this.name}\n\n`;if(typeof t!=="undefined"){this.message+=`(${t}:${u}) `}this.message+=`${n}`;const r=e.showSourceCode();if(r){this.message+=`\n\n${r}\n`}this.stack=false}}e.exports=SyntaxError},958:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(736));var r=_interopRequireDefault(u(622));var s=_interopRequireDefault(u(54));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i={brackets:n.default.cyan,"at-word":n.default.cyan,comment:n.default.gray,string:n.default.green,class:n.default.yellow,call:n.default.cyan,hash:n.default.magenta,"(":n.default.cyan,")":n.default.cyan,"{":n.default.yellow,"}":n.default.yellow,"[":n.default.yellow,"]":n.default.yellow,":":n.default.yellow,";":n.default.yellow};function getTokenType(e,t){var u=e[0],n=e[1];if(u==="word"){if(n[0]==="."){return"class"}if(n[0]==="#"){return"hash"}}if(!t.endOfFile()){var r=t.nextToken();t.back(r);if(r[0]==="brackets"||r[0]==="(")return"call"}return u}function terminalHighlight(e){var t=(0,r.default)(new s.default(e),{ignoreErrors:true});var u="";var n=function _loop(){var e=t.nextToken();var n=i[getTokenType(e,t)];if(n){u+=e[1].split(/\r?\n/).map(function(e){return n(e)}).join("\n")}else{u+=e[1]}};while(!t.endOfFile()){n()}return u}var o=terminalHighlight;t.default=o;e.exports=t.default},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";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(249));var r=_interopRequireDefault(u(374));var s=_interopRequireDefault(u(7));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;u=o.length)break;f=o[c++]}else{c=o.next();if(c.done)break;f=c.value}var l=f;this.nodes.push(l)}}return this};t.prepend=function prepend(){for(var e=arguments.length,t=new Array(e),u=0;u=n.length)break;i=n[s++]}else{s=n.next();if(s.done)break;i=s.value}var o=i;var a=this.normalize(o,this.first,"prepend").reverse();for(var c=a,f=Array.isArray(c),l=0,c=f?c:c[Symbol.iterator]();;){var h;if(f){if(l>=c.length)break;h=c[l++]}else{l=c.next();if(l.done)break;h=l.value}var D=h;this.nodes.unshift(D)}for(var d in this.indexes){this.indexes[d]=this.indexes[d]+a.length}}return this};t.cleanRaws=function cleanRaws(t){e.prototype.cleanRaws.call(this,t);if(this.nodes){for(var u=this.nodes,n=Array.isArray(u),r=0,u=n?u:u[Symbol.iterator]();;){var s;if(n){if(r>=u.length)break;s=u[r++]}else{r=u.next();if(r.done)break;s=r.value}var i=s;i.cleanRaws(t)}}};t.insertBefore=function insertBefore(e,t){e=this.index(e);var u=e===0?"prepend":false;var n=this.normalize(t,this.nodes[e],u).reverse();for(var r=n,s=Array.isArray(r),i=0,r=s?r:r[Symbol.iterator]();;){var o;if(s){if(i>=r.length)break;o=r[i++]}else{i=r.next();if(i.done)break;o=i.value}var a=o;this.nodes.splice(e,0,a)}var c;for(var f in this.indexes){c=this.indexes[f];if(e<=c){this.indexes[f]=c+n.length}}return this};t.insertAfter=function insertAfter(e,t){e=this.index(e);var u=this.normalize(t,this.nodes[e]).reverse();for(var n=u,r=Array.isArray(n),s=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(s>=n.length)break;i=n[s++]}else{s=n.next();if(s.done)break;i=s.value}var o=i;this.nodes.splice(e+1,0,o)}var a;for(var c in this.indexes){a=this.indexes[c];if(e=e){this.indexes[u]=t-1}}return this};t.removeAll=function removeAll(){for(var e=this.nodes,t=Array.isArray(e),u=0,e=t?e:e[Symbol.iterator]();;){var n;if(t){if(u>=e.length)break;n=e[u++]}else{u=e.next();if(u.done)break;n=u.value}var r=n;r.parent=undefined}this.nodes=[];return this};t.replaceValues=function replaceValues(e,t,u){if(!u){u=t;t={}}this.walkDecls(function(n){if(t.props&&t.props.indexOf(n.prop)===-1)return;if(t.fast&&n.value.indexOf(t.fast)===-1)return;n.value=n.value.replace(e,u)});return this};t.every=function every(e){return this.nodes.every(e)};t.some=function some(e){return this.nodes.some(e)};t.index=function index(e){if(typeof e==="number"){return e}return this.nodes.indexOf(e)};t.normalize=function normalize(e,t){var s=this;if(typeof e==="string"){var i=u(439);e=cleanSource(i(e).nodes)}else if(Array.isArray(e)){e=e.slice(0);for(var o=e,a=Array.isArray(o),c=0,o=a?o:o[Symbol.iterator]();;){var f;if(a){if(c>=o.length)break;f=o[c++]}else{c=o.next();if(c.done)break;f=c.value}var l=f;if(l.parent)l.parent.removeChild(l,"ignore")}}else if(e.type==="root"){e=e.nodes.slice(0);for(var h=e,D=Array.isArray(h),d=0,h=D?h:h[Symbol.iterator]();;){var p;if(D){if(d>=h.length)break;p=h[d++]}else{d=h.next();if(d.done)break;p=d.value}var A=p;if(A.parent)A.parent.removeChild(A,"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 n.default(e)]}else if(e.selector){var C=u(301);e=[new C(e)]}else if(e.name){var g=u(149);e=[new g(e)]}else if(e.text){e=[new r.default(e)]}else{throw new Error("Unknown node type in node creation")}var F=e.map(function(e){if(e.parent)e.parent.removeChild(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=s;return e});return F};_createClass(Container,[{key:"first",get:function get(){if(!this.nodes)return undefined;return this.nodes[0]}},{key:"last",get:function get(){if(!this.nodes)return undefined;return this.nodes[this.nodes.length-1]}}]);return Container}(s.default);var o=i;t.default=o;e.exports=t.default}},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/postcss-loader/index.js b/packages/next/compiled/postcss-loader/index.js deleted file mode 100644 index 11fd827d18fc0..0000000000000 --- a/packages/next/compiled/postcss-loader/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports=function(r,n){"use strict";var e={};function __webpack_require__(n){if(e[n]){return e[n].exports}var i=e[n]={i:n,l:false,exports:{}};r[n].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(904)}return startup()}({1:function(r){class Warning extends Error{constructor(r){super(r);const{text:n,line:e,column:i}=r;this.name="Warning";this.message=`${this.name}\n\n`;if(typeof e!=="undefined"){this.message+=`(${e}:${i}) `}this.message+=`${n}`;this.stack=false}}r.exports=Warning},9:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(594));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function _defineProperties(r,n){for(var e=0;e"}if(this.map)this.map.file=this.from}var r=Input.prototype;r.error=function error(r,n,e,i){if(i===void 0){i={}}var t;var s=this.origin(n,e);if(s){t=new o.default(r,s.line,s.column,s.source,s.file,i.plugin)}else{t=new o.default(r,n,e,this.css,this.file,i.plugin)}t.input={line:n,column:e,source:this.css};if(this.file)t.input.file=this.file;return t};r.origin=function origin(r,n){if(!this.map)return false;var e=this.map.consumer();var i=e.originalPositionFor({line:r,column:n});if(!i.source)return false;var o={file:this.mapResolve(i.source),line:i.line,column:i.column};var t=e.sourceContentFor(i.source);if(t)o.source=t;return o};r.mapResolve=function mapResolve(r){if(/^\w+:\/\//.test(r)){return r}return i.default.resolve(this.map.consumer().sourceRoot||".",r)};_createClass(Input,[{key:"from",get:function get(){return this.file||this.id}}]);return Input}();var f=u;n.default=f;r.exports=n.default},17:function(r){"use strict";function getPropertyByPath(r,n){if(typeof n==="string"&&r.hasOwnProperty(n)){return r[n]}const e=typeof n==="string"?n.split("."):n;return e.reduce((r,n)=>{if(r===undefined){return r}return r[n]},r)}r.exports=getPropertyByPath},20:function(r,n,e){"use strict";const i=e(614);r.exports=(r=>i(process.cwd(),r));r.exports.silent=(r=>i.silent(process.cwd(),r))},21:function(r){"use strict";r.exports=((r,n)=>{n=n||process.argv;const e=r.startsWith("-")?"":r.length===1?"-":"--";const i=n.indexOf(e+r);const o=n.indexOf("--");return i!==-1&&(o===-1?true:i=0&&r.splice instanceof Function}},41:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(643));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}var o=function(){function Processor(r){if(r===void 0){r=[]}this.version="7.0.27";this.plugins=this.normalize(r)}var r=Processor.prototype;r.use=function use(r){this.plugins=this.plugins.concat(this.normalize([r]));return this};r.process=function(r){function process(n){return r.apply(this,arguments)}process.toString=function(){return r.toString()};return process}(function(r,n){if(n===void 0){n={}}if(this.plugins.length===0&&n.parser===n.stringifier){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 i.default(this,r,n)});r.normalize=function normalize(r){var n=[];for(var e=r,i=Array.isArray(e),o=0,e=i?e:e[Symbol.iterator]();;){var t;if(i){if(o>=e.length)break;t=e[o++]}else{o=e.next();if(o.done)break;t=o.value}var s=t;if(s.postcss)s=s.postcss;if(typeof s==="object"&&Array.isArray(s.plugins)){n=n.concat(s.plugins)}else if(typeof s==="function"){n.push(s)}else if(typeof s==="object"&&(s.parse||s.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(s+" is not a PostCSS plugin")}}return n};return Processor}();var t=o;n.default=t;r.exports=n.default},47:function(r,n,e){"use strict";const i=e(302);r.exports=(()=>i().getFileName())},49:function(r,n,e){"use strict";var i=e(890);r.exports=new i({include:[e(467)],implicit:[e(270),e(381),e(214),e(661)]})},55:function(r,n,e){"use strict";const i=e(20);const o=(r,n,e)=>{try{if(n===null||n===undefined||Object.keys(n).length===0){return i(r)}else{return i(r)(n)}}catch(r){throw new Error(`Loading PostCSS Plugin failed: ${r.message}\n\n(@${e})`)}};const t=(r,n)=>{let e=[];if(Array.isArray(r.plugins)){e=r.plugins.filter(Boolean)}else{e=Object.keys(r.plugins).filter(n=>{return r.plugins[n]!==false?n:""}).map(e=>{return o(e,r.plugins[e],n)})}if(e.length&&e.length>0){e.forEach((r,e)=>{if(r.postcss){r=r.postcss}if(r.default){r=r.default}if(!(typeof r==="object"&&Array.isArray(r.plugins)||typeof r==="function")){throw new TypeError(`Invalid PostCSS Plugin found at: plugins[${e}]\n\n(@${n})`)}})}return e};r.exports=t},62:function(r,n,e){"use strict";var i=e(304);r.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})},66:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(563));var o=_interopRequireDefault(e(564));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function _defineProperties(r,n){for(var e=0;e1){this.nodes[1].raws.before=this.nodes[i].raws.before}return r.prototype.removeChild.call(this,n)};n.normalize=function normalize(n,e,i){var o=r.prototype.normalize.call(this,n);if(e){if(i==="prepend"){if(this.nodes.length>1){e.raws.before=this.nodes[1].raws.before}else{delete e.raws.before}}else if(this.first!==e){for(var t=o,s=Array.isArray(t),u=0,t=s?t:t[Symbol.iterator]();;){var f;if(s){if(u>=t.length)break;f=t[u++]}else{u=t.next();if(u.done)break;f=u.value}var c=f;c.raws.before=e.raws.before}}}return o};n.toResult=function toResult(r){if(r===void 0){r={}}var n=e(643);var i=e(41);var o=new n(new i,this,r);return o.stringify()};return Root}(i.default);var t=o;n.default=t;r.exports=n.default},98:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(689));var o=_interopRequireDefault(e(16));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r,n){var e=new o.default(r,n);var t=new i.default(e);try{t.parse()}catch(r){if(process.env.NODE_ENV!=="production"){if(r.name==="CssSyntaxError"&&n&&n.from){if(/\.scss$/i.test(n.from)){r.message+="\nYou tried to parse SCSS with "+"the standard CSS parser; "+"try again with the postcss-scss parser"}else if(/\.sass/i.test(n.from)){r.message+="\nYou tried to parse Sass with "+"the standard CSS parser; "+"try again with the postcss-sass parser"}else if(/\.less$/i.test(n.from)){r.message+="\nYou tried to parse Less with "+"the standard CSS parser; "+"try again with the postcss-less parser"}}}throw r}return t.root}var t=parse;n.default=t;r.exports=n.default},111:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(531));var o=_interopRequireDefault(e(226));var t=_interopRequireDefault(e(326));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function cloneNode(r,n){var e=new r.constructor;for(var i in r){if(!r.hasOwnProperty(i))continue;var o=r[i];var t=typeof o;if(i==="parent"&&t==="object"){if(n)e[i]=n}else if(i==="source"){e[i]=o}else if(o instanceof Array){e[i]=o.map(function(r){return cloneNode(r,e)})}else{if(t==="object"&&o!==null)o=cloneNode(o);e[i]=o}}return e}var s=function(){function Node(r){if(r===void 0){r={}}this.raws={};if(process.env.NODE_ENV!=="production"){if(typeof r!=="object"&&typeof r!=="undefined"){throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(r))}}for(var n in r){this[n]=r[n]}}var r=Node.prototype;r.error=function error(r,n){if(n===void 0){n={}}if(this.source){var e=this.positionBy(n);return this.source.input.error(r,e.line,e.column,n)}return new i.default(r)};r.warn=function warn(r,n,e){var i={node:this};for(var o in e){i[o]=e[o]}return r.warn(n,i)};r.remove=function remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this};r.toString=function toString(r){if(r===void 0){r=t.default}if(r.stringify)r=r.stringify;var n="";r(this,function(r){n+=r});return n};r.clone=function clone(r){if(r===void 0){r={}}var n=cloneNode(this);for(var e in r){n[e]=r[e]}return n};r.cloneBefore=function cloneBefore(r){if(r===void 0){r={}}var n=this.clone(r);this.parent.insertBefore(this,n);return n};r.cloneAfter=function cloneAfter(r){if(r===void 0){r={}}var n=this.clone(r);this.parent.insertAfter(this,n);return n};r.replaceWith=function replaceWith(){if(this.parent){for(var r=arguments.length,n=new Array(r),e=0;e3)return false;if(n[n.length-i.length-1]!=="/")return false}return true}function constructJavascriptRegExp(r){var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];n=n.slice(1,n.length-i.length-1)}return new RegExp(n,i)}function representJavascriptRegExp(r){var n="/"+r.source+"/";if(r.global)n+="g";if(r.multiline)n+="m";if(r.ignoreCase)n+="i";return n}function isRegExp(r){return Object.prototype.toString.call(r)==="[object RegExp]"}r.exports=new i("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},134:function(r){r.exports=require("schema-utils")},192:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(111));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function _inheritsLoose(r,n){r.prototype=Object.create(n.prototype);r.prototype.constructor=r;r.__proto__=n}var o=function(r){_inheritsLoose(Declaration,r);function Declaration(n){var e;e=r.call(this,n)||this;e.type="decl";return e}return Declaration}(i.default);var t=o;n.default=t;r.exports=n.default},202:function(r,n,e){"use strict";var i;try{var o=require;i=o("esprima")}catch(r){if(typeof window!=="undefined")i=window.esprima}var t=e(304);function resolveJavascriptFunction(r){if(r===null)return false;try{var n="("+r+")",e=i.parse(n,{range:true});if(e.type!=="Program"||e.body.length!==1||e.body[0].type!=="ExpressionStatement"||e.body[0].expression.type!=="ArrowFunctionExpression"&&e.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(r){return false}}function constructJavascriptFunction(r){var n="("+r+")",e=i.parse(n,{range:true}),o=[],t;if(e.type!=="Program"||e.body.length!==1||e.body[0].type!=="ExpressionStatement"||e.body[0].expression.type!=="ArrowFunctionExpression"&&e.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}e.body[0].expression.params.forEach(function(r){o.push(r.name)});t=e.body[0].expression.body.range;if(e.body[0].expression.body.type==="BlockStatement"){return new Function(o,n.slice(t[0]+1,t[1]-1))}return new Function(o,"return "+n.slice(t[0],t[1]))}function representJavascriptFunction(r){return r.toString()}function isFunction(r){return Object.prototype.toString.call(r)==="[object Function]"}r.exports=new t("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},214:function(r,n,e){"use strict";var i=e(340);var o=e(304);function isHexCode(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function isOctCode(r){return 48<=r&&r<=55}function isDecCode(r){return 48<=r&&r<=57}function resolveYamlInteger(r){if(r===null)return false;var n=r.length,e=0,i=false,o;if(!n)return false;o=r[e];if(o==="-"||o==="+"){o=r[++e]}if(o==="0"){if(e+1===n)return true;o=r[++e];if(o==="b"){e++;for(;e=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0"+r.toString(8):"-0"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},222:function(r,n){"use strict";n.__esModule=true;n.default=tokenizer;var e="'".charCodeAt(0);var i='"'.charCodeAt(0);var o="\\".charCodeAt(0);var t="/".charCodeAt(0);var s="\n".charCodeAt(0);var u=" ".charCodeAt(0);var f="\f".charCodeAt(0);var c="\t".charCodeAt(0);var l="\r".charCodeAt(0);var a="[".charCodeAt(0);var p="]".charCodeAt(0);var h="(".charCodeAt(0);var d=")".charCodeAt(0);var g="{".charCodeAt(0);var v="}".charCodeAt(0);var w=";".charCodeAt(0);var m="*".charCodeAt(0);var S=":".charCodeAt(0);var b="@".charCodeAt(0);var y=/[ \n\t\r\f{}()'"\\;/[\]#]/g;var A=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g;var O=/.[\\/("'\n]/;var C=/[a-f0-9]/i;function tokenizer(r,n){if(n===void 0){n={}}var E=r.css.valueOf();var D=n.ignoreErrors;var F,M,R,j,q,x,Y;var P,W,B,$,L,J,k;var U=E.length;var z=-1;var V=1;var T=0;var I=[];var Z=[];function position(){return T}function unclosed(n){throw r.error("Unclosed "+n,V,T-z)}function endOfFile(){return Z.length===0&&T>=U}function nextToken(r){if(Z.length)return Z.pop();if(T>=U)return;var n=r?r.ignoreUnclosed:false;F=E.charCodeAt(T);if(F===s||F===f||F===l&&E.charCodeAt(T+1)!==s){z=T;V+=1}switch(F){case s:case u:case c:case l:case f:M=T;do{M+=1;F=E.charCodeAt(M);if(F===s){z=M;V+=1}}while(F===u||F===s||F===c||F===l||F===f);k=["space",E.slice(T,M)];T=M-1;break;case a:case p:case g:case v:case S:case w:case d:var Q=String.fromCharCode(F);k=[Q,Q,V,T-z];break;case h:L=I.length?I.pop()[1]:"";J=E.charCodeAt(T+1);if(L==="url"&&J!==e&&J!==i&&J!==u&&J!==s&&J!==c&&J!==f&&J!==l){M=T;do{B=false;M=E.indexOf(")",M+1);if(M===-1){if(D||n){M=T;break}else{unclosed("bracket")}}$=M;while(E.charCodeAt($-1)===o){$-=1;B=!B}}while(B);k=["brackets",E.slice(T,M+1),V,T-z,V,M-z];T=M}else{M=E.indexOf(")",T+1);x=E.slice(T,M+1);if(M===-1||O.test(x)){k=["(","(",V,T-z]}else{k=["brackets",x,V,T-z,V,M-z];T=M}}break;case e:case i:R=F===e?"'":'"';M=T;do{B=false;M=E.indexOf(R,M+1);if(M===-1){if(D||n){M=T+1;break}else{unclosed("string")}}$=M;while(E.charCodeAt($-1)===o){$-=1;B=!B}}while(B);x=E.slice(T,M+1);j=x.split("\n");q=j.length-1;if(q>0){P=V+q;W=M-j[q].length}else{P=V;W=z}k=["string",E.slice(T,M+1),V,T-z,P,M-W];z=W;V=P;T=M;break;case b:y.lastIndex=T+1;y.test(E);if(y.lastIndex===0){M=E.length-1}else{M=y.lastIndex-2}k=["at-word",E.slice(T,M+1),V,T-z,V,M-z];T=M;break;case o:M=T;Y=true;while(E.charCodeAt(M+1)===o){M+=1;Y=!Y}F=E.charCodeAt(M+1);if(Y&&F!==t&&F!==u&&F!==s&&F!==c&&F!==l&&F!==f){M+=1;if(C.test(E.charAt(M))){while(C.test(E.charAt(M+1))){M+=1}if(E.charCodeAt(M+1)===u){M+=1}}}k=["word",E.slice(T,M+1),V,T-z,V,M-z];T=M;break;default:if(F===t&&E.charCodeAt(T+1)===m){M=E.indexOf("*/",T+2)+1;if(M===0){if(D||n){M=E.length}else{unclosed("comment")}}x=E.slice(T,M+1);j=x.split("\n");q=j.length-1;if(q>0){P=V+q;W=M-j[q].length}else{P=V;W=z}k=["comment",x,V,T-z,P,M-W];z=W;V=P;T=M}else{A.lastIndex=T+1;A.test(E);if(A.lastIndex===0){M=E.length-1}else{M=A.lastIndex-2}k=["word",E.slice(T,M+1),V,T-z,V,M-z];I.push(k);T=M}break}T++;return k}function back(r){Z.push(r)}return{back:back,nextToken:nextToken,endOfFile:endOfFile,position:position}}r.exports=n.default},226:function(r,n){"use strict";n.__esModule=true;n.default=void 0;var e={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:false};function capitalize(r){return r[0].toUpperCase()+r.slice(1)}var i=function(){function Stringifier(r){this.builder=r}var r=Stringifier.prototype;r.stringify=function stringify(r,n){this[r.type](r,n)};r.root=function root(r){this.body(r);if(r.raws.after)this.builder(r.raws.after)};r.comment=function comment(r){var n=this.raw(r,"left","commentLeft");var e=this.raw(r,"right","commentRight");this.builder("/*"+n+r.text+e+"*/",r)};r.decl=function decl(r,n){var e=this.raw(r,"between","colon");var i=r.prop+e+this.rawValue(r,"value");if(r.important){i+=r.raws.important||" !important"}if(n)i+=";";this.builder(i,r)};r.rule=function rule(r){this.block(r,this.rawValue(r,"selector"));if(r.raws.ownSemicolon){this.builder(r.raws.ownSemicolon,r,"end")}};r.atrule=function atrule(r,n){var e="@"+r.name;var i=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName!=="undefined"){e+=r.raws.afterName}else if(i){e+=" "}if(r.nodes){this.block(r,e+i)}else{var o=(r.raws.between||"")+(n?";":"");this.builder(e+i+o,r)}};r.body=function body(r){var n=r.nodes.length-1;while(n>0){if(r.nodes[n].type!=="comment")break;n-=1}var e=this.raw(r,"semicolon");for(var i=0;i0){if(typeof r.raws.after!=="undefined"){n=r.raws.after;if(n.indexOf("\n")!==-1){n=n.replace(/[^\n]+$/,"")}return false}}});if(n)n=n.replace(/[^\s]/g,"");return n};r.rawBeforeOpen=function rawBeforeOpen(r){var n;r.walk(function(r){if(r.type!=="decl"){n=r.raws.between;if(typeof n!=="undefined")return false}});return n};r.rawColon=function rawColon(r){var n;r.walkDecls(function(r){if(typeof r.raws.between!=="undefined"){n=r.raws.between.replace(/[^\s:]/g,"");return false}});return n};r.beforeAfter=function beforeAfter(r,n){var e;if(r.type==="decl"){e=this.raw(r,null,"beforeDecl")}else if(r.type==="comment"){e=this.raw(r,null,"beforeComment")}else if(n==="before"){e=this.raw(r,null,"beforeRule")}else{e=this.raw(r,null,"beforeClose")}var i=r.parent;var o=0;while(i&&i.type!=="root"){o+=1;i=i.parent}if(e.indexOf("\n")!==-1){var t=this.raw(r,null,"indent");if(t.length){for(var s=0;s{if(typeof n==="string"){e=n;n=null}try{try{return JSON.parse(r,n)}catch(e){o(r,n);throw e}}catch(r){r.message=r.message.replace(/\n/g,"");const n=new t(r);if(e){n.fileName=e}throw n}})},261:function(r,n,e){"use strict";const i=e(747);function readFile(r,n){n=n||{};const e=n.throwNotFound||false;return new Promise((n,o)=>{i.readFile(r,"utf8",(r,i)=>{if(r&&r.code==="ENOENT"&&!e){return n(null)}if(r)return o(r);n(i)})})}readFile.sync=function readFileSync(r,n){n=n||{};const e=n.throwNotFound||false;try{return i.readFileSync(r,"utf8")}catch(r){if(r.code==="ENOENT"&&!e){return null}throw r}};r.exports=readFile},270:function(r,n,e){"use strict";var i=e(304);function resolveYamlNull(r){if(r===null)return true;var n=r.length;return n===1&&r==="~"||n===4&&(r==="null"||r==="Null"||r==="NULL")}function constructYamlNull(){return null}function isNull(r){return r===null}r.exports=new i("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},274:function(r,n){"use strict";n.__esModule=true;n.default=void 0;var e={prefix:function prefix(r){var n=r.match(/^(-\w+-)/);if(n){return n[0]}return""},unprefixed:function unprefixed(r){return r.replace(/^-\w+-/,"")}};var i=e;n.default=i;r.exports=n.default},277:function(r,n,e){"use strict";var i=e(304);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var n,e=r;for(n in e){if(o.call(e,n)){if(e[n]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}r.exports=new i("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},282:function(r){r.exports=require("module")},297:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(192));var o=_interopRequireDefault(e(41));var t=_interopRequireDefault(e(326));var s=_interopRequireDefault(e(365));var u=_interopRequireDefault(e(88));var f=_interopRequireDefault(e(274));var c=_interopRequireDefault(e(98));var l=_interopRequireDefault(e(564));var a=_interopRequireDefault(e(66));var p=_interopRequireDefault(e(92));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function postcss(){for(var r=arguments.length,n=new Array(r),e=0;e{const r=i();let n;for(let e=0;e0};r.previous=function previous(){var r=this;if(!this.previousMaps){this.previousMaps=[];this.root.walk(function(n){if(n.source&&n.source.input.map){var e=n.source.input.map;if(r.previousMaps.indexOf(e)===-1){r.previousMaps.push(e)}}})}return this.previousMaps};r.isInline=function isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}var r=this.mapOpts.annotation;if(typeof r!=="undefined"&&r!==true){return false}if(this.previous().length){return this.previous().some(function(r){return r.inline})}return true};r.isSourcesContent=function isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(function(r){return r.withContent()})}return true};r.clearAnnotation=function clearAnnotation(){if(this.mapOpts.annotation===false)return;var r;for(var n=this.root.nodes.length-1;n>=0;n--){r=this.root.nodes[n];if(r.type!=="comment")continue;if(r.text.indexOf("# sourceMappingURL=")===0){this.root.removeChild(n)}}};r.setSourcesContent=function setSourcesContent(){var r=this;var n={};this.root.walk(function(e){if(e.source){var i=e.source.input.from;if(i&&!n[i]){n[i]=true;var o=r.relative(i);r.map.setSourceContent(o,e.source.input.css)}}})};r.applyPrevMaps=function applyPrevMaps(){for(var r=this.previous(),n=Array.isArray(r),e=0,r=n?r:r[Symbol.iterator]();;){var t;if(n){if(e>=r.length)break;t=r[e++]}else{e=r.next();if(e.done)break;t=e.value}var s=t;var u=this.relative(s.file);var f=s.root||o.default.dirname(s.file);var c=void 0;if(this.mapOpts.sourcesContent===false){c=new i.default.SourceMapConsumer(s.text);if(c.sourcesContent){c.sourcesContent=c.sourcesContent.map(function(){return null})}}else{c=s.consumer()}this.map.applySourceMap(c,u,this.relative(f))}};r.isAnnotation=function isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some(function(r){return r.annotation})}return true};r.toBase64=function toBase64(r){if(Buffer){return Buffer.from(r).toString("base64")}return window.btoa(unescape(encodeURIComponent(r)))};r.addAnnotation=function addAnnotation(){var r;if(this.isInline()){r="data:application/json;base64,"+this.toBase64(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){r=this.mapOpts.annotation}else{r=this.outputFile()+".map"}var n="\n";if(this.css.indexOf("\r\n")!==-1)n="\r\n";this.css+=n+"/*# sourceMappingURL="+r+" */"};r.outputFile=function outputFile(){if(this.opts.to){return this.relative(this.opts.to)}if(this.opts.from){return this.relative(this.opts.from)}return"to.css"};r.generateMap=function 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]};r.relative=function relative(r){if(r.indexOf("<")===0)return r;if(/^\w+:\/\//.test(r))return r;var n=this.opts.to?o.default.dirname(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){n=o.default.dirname(o.default.resolve(n,this.mapOpts.annotation))}r=o.default.relative(n,r);if(o.default.sep==="\\"){return r.replace(/\\/g,"/")}return r};r.sourcePath=function sourcePath(r){if(this.mapOpts.from){return this.mapOpts.from}return this.relative(r.source.input.from)};r.generateString=function generateString(){var r=this;this.css="";this.map=new i.default.SourceMapGenerator({file:this.outputFile()});var n=1;var e=1;var o,t;this.stringify(this.root,function(i,s,u){r.css+=i;if(s&&u!=="end"){if(s.source&&s.source.start){r.map.addMapping({source:r.sourcePath(s),generated:{line:n,column:e-1},original:{line:s.source.start.line,column:s.source.start.column-1}})}else{r.map.addMapping({source:"",original:{line:1,column:0},generated:{line:n,column:e-1}})}}o=i.match(/\n/g);if(o){n+=o.length;t=i.lastIndexOf("\n");e=i.length-t}else{e+=i.length}if(s&&u!=="start"){var f=s.parent||{raws:{}};if(s.type!=="decl"||s!==f.last||f.raws.semicolon){if(s.source&&s.source.end){r.map.addMapping({source:r.sourcePath(s),generated:{line:n,column:e-2},original:{line:s.source.end.line,column:s.source.end.column-1}})}else{r.map.addMapping({source:"",original:{line:1,column:0},generated:{line:n,column:e-1}})}}}})};r.generate=function generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}var r="";this.stringify(this.root,function(n){r+=n});return[r]};return MapGenerator}();var s=t;n.default=s;r.exports=n.default},420:function(r,n,e){"use strict";const i=e(622);const o=e(995);function getDirectory(r){return new Promise((n,e)=>{return o(r,(o,t)=>{if(o){return e(o)}return n(t?r:i.dirname(r))})})}getDirectory.sync=function getDirectorySync(r){return o.sync(r)?r:i.dirname(r)};r.exports=getDirectory},426:function(r,n,e){"use strict";var i=e(610);var o=e(630);function deprecated(r){return function(){throw new Error("Function "+r+" is deprecated and cannot be used.")}}r.exports.Type=e(304);r.exports.Schema=e(890);r.exports.FAILSAFE_SCHEMA=e(467);r.exports.JSON_SCHEMA=e(49);r.exports.CORE_SCHEMA=e(251);r.exports.DEFAULT_SAFE_SCHEMA=e(801);r.exports.DEFAULT_FULL_SCHEMA=e(928);r.exports.load=i.load;r.exports.loadAll=i.loadAll;r.exports.safeLoad=i.safeLoad;r.exports.safeLoadAll=i.safeLoadAll;r.exports.dump=o.dump;r.exports.safeDump=o.safeDump;r.exports.YAMLException=e(893);r.exports.MINIMAL_SCHEMA=e(467);r.exports.SAFE_SCHEMA=e(801);r.exports.DEFAULT_SCHEMA=e(928);r.exports.scan=deprecated("scan");r.exports.parse=deprecated("parse");r.exports.compose=deprecated("compose");r.exports.addConstructor=deprecated("addConstructor")},438:function(r,n,e){"use strict";const i=e(87);const o=e(581);const t=e(557);r.exports=cosmiconfig;function cosmiconfig(r,n){n=n||{};const e={packageProp:r,searchPlaces:["package.json",`.${r}rc`,`.${r}rc.json`,`.${r}rc.yaml`,`.${r}rc.yml`,`.${r}rc.js`,`${r}.config.js`],ignoreEmptySearchPlaces:true,stopDir:i.homedir(),cache:true,transform:identity};const t=Object.assign({},e,n,{loaders:normalizeLoaders(n.loaders)});return o(t)}cosmiconfig.loadJs=t.loadJs;cosmiconfig.loadJson=t.loadJson;cosmiconfig.loadYaml=t.loadYaml;function normalizeLoaders(r){const n={".js":{sync:t.loadJs,async:t.loadJs},".json":{sync:t.loadJson,async:t.loadJson},".yaml":{sync:t.loadYaml,async:t.loadYaml},".yml":{sync:t.loadYaml,async:t.loadYaml},noExt:{sync:t.loadYaml,async:t.loadYaml}};if(!r){return n}return Object.keys(r).reduce((n,e)=>{const i=r&&r[e];if(typeof i==="function"){n[e]={sync:i,async:i}}else{n[e]=i}return n},n)}function identity(r){return r}},455:function(r,n,e){"use strict";const i=e(622).resolve;const o=e(438);const t=e(652);const s=e(55);const u=(r,n)=>{let e=n.filepath||"";let i=n.config||{};if(typeof i==="function"){i=i(r)}else{i=Object.assign({},i,r)}if(!i.plugins){i.plugins=[]}return{plugins:s(i,e),options:t(i,e),file:e}};const f=r=>{r=Object.assign({cwd:process.cwd(),env:process.env.NODE_ENV},r);if(!r.env){process.env.NODE_ENV="development"}return r};const c=(r,n,e)=>{r=f(r);n=n?i(n):process.cwd();return o("postcss",e).search(n).then(e=>{if(!e){throw new Error(`No PostCSS Config found in: ${n}`)}return u(r,e)})};c.sync=((r,n,e)=>{r=f(r);n=n?i(n):process.cwd();const t=o("postcss",e).searchSync(n);if(!t){throw new Error(`No PostCSS Config found in: ${n}`)}return u(r,t)});r.exports=c},467:function(r,n,e){"use strict";var i=e(890);r.exports=new i({explicit:[e(571),e(965),e(62)]})},531:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(573));var o=_interopRequireDefault(e(736));var t=_interopRequireDefault(e(363));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function _assertThisInitialized(r){if(r===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return r}function _inheritsLoose(r,n){r.prototype=Object.create(n.prototype);r.prototype.constructor=r;r.__proto__=n}function _wrapNativeSuper(r){var n=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(r){if(r===null||!_isNativeFunction(r))return r;if(typeof r!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof n!=="undefined"){if(n.has(r))return n.get(r);n.set(r,Wrapper)}function Wrapper(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(r.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,r)};return _wrapNativeSuper(r)}function isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(r){return false}}function _construct(r,n,e){if(isNativeReflectConstruct()){_construct=Reflect.construct}else{_construct=function _construct(r,n,e){var i=[null];i.push.apply(i,n);var o=Function.bind.apply(r,i);var t=new o;if(e)_setPrototypeOf(t,e.prototype);return t}}return _construct.apply(null,arguments)}function _isNativeFunction(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function _setPrototypeOf(r,n){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,n){r.__proto__=n;return r};return _setPrototypeOf(r,n)}function _getPrototypeOf(r){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)};return _getPrototypeOf(r)}var s=function(r){_inheritsLoose(CssSyntaxError,r);function CssSyntaxError(n,e,i,o,t,s){var u;u=r.call(this,n)||this;u.name="CssSyntaxError";u.reason=n;if(t){u.file=t}if(o){u.source=o}if(s){u.plugin=s}if(typeof e!=="undefined"&&typeof i!=="undefined"){u.line=e;u.column=i}u.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(_assertThisInitialized(u),CssSyntaxError)}return u}var n=CssSyntaxError.prototype;n.setMessage=function 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};n.showSourceCode=function showSourceCode(r){var n=this;if(!this.source)return"";var e=this.source;if(t.default){if(typeof r==="undefined")r=i.default.stdout;if(r)e=(0,t.default)(e)}var s=e.split(/\r?\n/);var u=Math.max(this.line-3,0);var f=Math.min(this.line+2,s.length);var c=String(f).length;function mark(n){if(r&&o.default.red){return o.default.red.bold(n)}return n}function aside(n){if(r&&o.default.gray){return o.default.gray(n)}return n}return s.slice(u,f).map(function(r,e){var i=u+1+e;var o=" "+(" "+i).slice(-c)+" | ";if(i===n.line){var t=aside(o.replace(/\d/g," "))+r.slice(0,n.column-1).replace(/[^\t]/g," ");return mark(">")+aside(o)+r+"\n "+t+mark("^")}return" "+aside(o)+r}).join("\n")};n.toString=function toString(){var r=this.showSourceCode();if(r){r="\n\n"+r+"\n"}return this.name+": "+this.message+r};return CssSyntaxError}(_wrapNativeSuper(Error));var u=s;n.default=u;r.exports=n.default},557:function(r,n,e){"use strict";const i=e(258);const o=e(561);const t=e(606);function loadJs(r){const n=t(r);return n}function loadJson(r,n){try{return i(n)}catch(n){n.message=`JSON Error in ${r}:\n${n.message}`;throw n}}function loadYaml(r,n){return o.safeLoad(n,{filename:r})}r.exports={loadJs:loadJs,loadJson:loadJson,loadYaml:loadYaml}},561:function(r,n,e){"use strict";var i=e(426);r.exports=i},563:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(192));var o=_interopRequireDefault(e(365));var t=_interopRequireDefault(e(111));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function _defineProperties(r,n){for(var e=0;e=u.length)break;l=u[c++]}else{c=u.next();if(c.done)break;l=c.value}var a=l;this.nodes.push(a)}}return this};n.prepend=function prepend(){for(var r=arguments.length,n=new Array(r),e=0;e=i.length)break;s=i[t++]}else{t=i.next();if(t.done)break;s=t.value}var u=s;var f=this.normalize(u,this.first,"prepend").reverse();for(var c=f,l=Array.isArray(c),a=0,c=l?c:c[Symbol.iterator]();;){var p;if(l){if(a>=c.length)break;p=c[a++]}else{a=c.next();if(a.done)break;p=a.value}var h=p;this.nodes.unshift(h)}for(var d in this.indexes){this.indexes[d]=this.indexes[d]+f.length}}return this};n.cleanRaws=function cleanRaws(n){r.prototype.cleanRaws.call(this,n);if(this.nodes){for(var e=this.nodes,i=Array.isArray(e),o=0,e=i?e:e[Symbol.iterator]();;){var t;if(i){if(o>=e.length)break;t=e[o++]}else{o=e.next();if(o.done)break;t=o.value}var s=t;s.cleanRaws(n)}}};n.insertBefore=function insertBefore(r,n){r=this.index(r);var e=r===0?"prepend":false;var i=this.normalize(n,this.nodes[r],e).reverse();for(var o=i,t=Array.isArray(o),s=0,o=t?o:o[Symbol.iterator]();;){var u;if(t){if(s>=o.length)break;u=o[s++]}else{s=o.next();if(s.done)break;u=s.value}var f=u;this.nodes.splice(r,0,f)}var c;for(var l in this.indexes){c=this.indexes[l];if(r<=c){this.indexes[l]=c+i.length}}return this};n.insertAfter=function insertAfter(r,n){r=this.index(r);var e=this.normalize(n,this.nodes[r]).reverse();for(var i=e,o=Array.isArray(i),t=0,i=o?i:i[Symbol.iterator]();;){var s;if(o){if(t>=i.length)break;s=i[t++]}else{t=i.next();if(t.done)break;s=t.value}var u=s;this.nodes.splice(r+1,0,u)}var f;for(var c in this.indexes){f=this.indexes[c];if(r=r){this.indexes[e]=n-1}}return this};n.removeAll=function removeAll(){for(var r=this.nodes,n=Array.isArray(r),e=0,r=n?r:r[Symbol.iterator]();;){var i;if(n){if(e>=r.length)break;i=r[e++]}else{e=r.next();if(e.done)break;i=e.value}var o=i;o.parent=undefined}this.nodes=[];return this};n.replaceValues=function replaceValues(r,n,e){if(!e){e=n;n={}}this.walkDecls(function(i){if(n.props&&n.props.indexOf(i.prop)===-1)return;if(n.fast&&i.value.indexOf(n.fast)===-1)return;i.value=i.value.replace(r,e)});return this};n.every=function every(r){return this.nodes.every(r)};n.some=function some(r){return this.nodes.some(r)};n.index=function index(r){if(typeof r==="number"){return r}return this.nodes.indexOf(r)};n.normalize=function normalize(r,n){var t=this;if(typeof r==="string"){var s=e(98);r=cleanSource(s(r).nodes)}else if(Array.isArray(r)){r=r.slice(0);for(var u=r,f=Array.isArray(u),c=0,u=f?u:u[Symbol.iterator]();;){var l;if(f){if(c>=u.length)break;l=u[c++]}else{c=u.next();if(c.done)break;l=c.value}var a=l;if(a.parent)a.parent.removeChild(a,"ignore")}}else if(r.type==="root"){r=r.nodes.slice(0);for(var p=r,h=Array.isArray(p),d=0,p=h?p:p[Symbol.iterator]();;){var g;if(h){if(d>=p.length)break;g=p[d++]}else{d=p.next();if(d.done)break;g=d.value}var v=g;if(v.parent)v.parent.removeChild(v,"ignore")}}else if(r.type){r=[r]}else if(r.prop){if(typeof r.value==="undefined"){throw new Error("Value field is missed in node creation")}else if(typeof r.value!=="string"){r.value=String(r.value)}r=[new i.default(r)]}else if(r.selector){var w=e(66);r=[new w(r)]}else if(r.name){var m=e(88);r=[new m(r)]}else if(r.text){r=[new o.default(r)]}else{throw new Error("Unknown node type in node creation")}var S=r.map(function(r){if(r.parent)r.parent.removeChild(r);if(typeof r.raws.before==="undefined"){if(n&&typeof n.raws.before!=="undefined"){r.raws.before=n.raws.before.replace(/[^\s]/g,"")}}r.parent=t;return r});return S};_createClass(Container,[{key:"first",get:function get(){if(!this.nodes)return undefined;return this.nodes[0]}},{key:"last",get:function get(){if(!this.nodes)return undefined;return this.nodes[this.nodes.length-1]}}]);return Container}(t.default);var u=s;n.default=u;r.exports=n.default},564:function(r,n){"use strict";n.__esModule=true;n.default=void 0;var e={split:function split(r,n,e){var i=[];var o="";var split=false;var t=0;var s=false;var u=false;for(var f=0;f0)t-=1}else if(t===0){if(n.indexOf(c)!==-1)split=true}if(split){if(o!=="")i.push(o.trim());o="";split=false}else{o+=c}}if(e||o!=="")i.push(o.trim());return i},space:function space(r){var n=[" ","\n","\t"];return e.split(r,n)},comma:function comma(r){return e.split(r,[","],true)}};var i=e;n.default=i;r.exports=n.default},571:function(r,n,e){"use strict";var i=e(304);r.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})},573:function(r,n,e){"use strict";const i=e(87);const o=e(21);const{env:t}=process;let s;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){s=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){s=1}if("FORCE_COLOR"in t){if(t.FORCE_COLOR===true||t.FORCE_COLOR==="true"){s=1}else if(t.FORCE_COLOR===false||t.FORCE_COLOR==="false"){s=0}else{s=t.FORCE_COLOR.length===0?1:Math.min(parseInt(t.FORCE_COLOR,10),3)}}function translateLevel(r){if(r===0){return false}return{level:r,hasBasic:true,has256:r>=2,has16m:r>=3}}function supportsColor(r){if(s===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(r&&!r.isTTY&&s===undefined){return 0}const n=s||0;if(t.TERM==="dumb"){return n}if(process.platform==="win32"){const r=i.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586){return Number(r[2])>=14931?3:2}return 1}if("CI"in t){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in t)||t.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in t){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(t.TEAMCITY_VERSION)?1:0}if(t.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in t){const r=parseInt((t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(t.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(t.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(t.TERM)){return 1}if("COLORTERM"in t){return 1}return n}function getSupportLevel(r){const n=supportsColor(r);return translateLevel(n)}r.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},581:function(r,n,e){"use strict";const i=e(622);const o=e(557);const t=e(261);const s=e(389);const u=e(420);const f=e(17);const c="sync";class Explorer{constructor(r){this.loadCache=r.cache?new Map:null;this.loadSyncCache=r.cache?new Map:null;this.searchCache=r.cache?new Map:null;this.searchSyncCache=r.cache?new Map:null;this.config=r;this.validateConfig()}clearLoadCache(){if(this.loadCache){this.loadCache.clear()}if(this.loadSyncCache){this.loadSyncCache.clear()}}clearSearchCache(){if(this.searchCache){this.searchCache.clear()}if(this.searchSyncCache){this.searchSyncCache.clear()}}clearCaches(){this.clearLoadCache();this.clearSearchCache()}validateConfig(){const r=this.config;r.searchPlaces.forEach(n=>{const e=i.extname(n)||"noExt";const o=r.loaders[e];if(!o){throw new Error(`No loader specified for ${getExtensionDescription(n)}, so searchPlaces item "${n}" is invalid`)}})}search(r){r=r||process.cwd();return u(r).then(r=>{return this.searchFromDirectory(r)})}searchFromDirectory(r){const n=i.resolve(process.cwd(),r);const e=()=>{return this.searchDirectory(n).then(r=>{const e=this.nextDirectoryToSearch(n,r);if(e){return this.searchFromDirectory(e)}return this.config.transform(r)})};if(this.searchCache){return s(this.searchCache,n,e)}return e()}searchSync(r){r=r||process.cwd();const n=u.sync(r);return this.searchFromDirectorySync(n)}searchFromDirectorySync(r){const n=i.resolve(process.cwd(),r);const e=()=>{const r=this.searchDirectorySync(n);const e=this.nextDirectoryToSearch(n,r);if(e){return this.searchFromDirectorySync(e)}return this.config.transform(r)};if(this.searchSyncCache){return s(this.searchSyncCache,n,e)}return e()}searchDirectory(r){return this.config.searchPlaces.reduce((n,e)=>{return n.then(n=>{if(this.shouldSearchStopWithResult(n)){return n}return this.loadSearchPlace(r,e)})},Promise.resolve(null))}searchDirectorySync(r){let n=null;for(const e of this.config.searchPlaces){n=this.loadSearchPlaceSync(r,e);if(this.shouldSearchStopWithResult(n))break}return n}shouldSearchStopWithResult(r){if(r===null)return false;if(r.isEmpty&&this.config.ignoreEmptySearchPlaces)return false;return true}loadSearchPlace(r,n){const e=i.join(r,n);return t(e).then(r=>{return this.createCosmiconfigResult(e,r)})}loadSearchPlaceSync(r,n){const e=i.join(r,n);const o=t.sync(e);return this.createCosmiconfigResultSync(e,o)}nextDirectoryToSearch(r,n){if(this.shouldSearchStopWithResult(n)){return null}const e=nextDirUp(r);if(e===r||r===this.config.stopDir){return null}return e}loadPackageProp(r,n){const e=o.loadJson(r,n);const i=f(e,this.config.packageProp);return i||null}getLoaderEntryForFile(r){if(i.basename(r)==="package.json"){const r=this.loadPackageProp.bind(this);return{sync:r,async:r}}const n=i.extname(r)||"noExt";return this.config.loaders[n]||{}}getSyncLoaderForFile(r){const n=this.getLoaderEntryForFile(r);if(!n.sync){throw new Error(`No sync loader specified for ${getExtensionDescription(r)}`)}return n.sync}getAsyncLoaderForFile(r){const n=this.getLoaderEntryForFile(r);const e=n.async||n.sync;if(!e){throw new Error(`No async loader specified for ${getExtensionDescription(r)}`)}return e}loadFileContent(r,n,e){if(e===null){return null}if(e.trim()===""){return undefined}const i=r===c?this.getSyncLoaderForFile(n):this.getAsyncLoaderForFile(n);return i(n,e)}loadedContentToCosmiconfigResult(r,n){if(n===null){return null}if(n===undefined){return{filepath:r,config:undefined,isEmpty:true}}return{config:n,filepath:r}}createCosmiconfigResult(r,n){return Promise.resolve().then(()=>{return this.loadFileContent("async",r,n)}).then(n=>{return this.loadedContentToCosmiconfigResult(r,n)})}createCosmiconfigResultSync(r,n){const e=this.loadFileContent("sync",r,n);return this.loadedContentToCosmiconfigResult(r,e)}validateFilePath(r){if(!r){throw new Error("load and loadSync must pass a non-empty string")}}load(r){return Promise.resolve().then(()=>{this.validateFilePath(r);const n=i.resolve(process.cwd(),r);return s(this.loadCache,n,()=>{return t(n,{throwNotFound:true}).then(r=>{return this.createCosmiconfigResult(n,r)}).then(this.config.transform)})})}loadSync(r){this.validateFilePath(r);const n=i.resolve(process.cwd(),r);return s(this.loadSyncCache,n,()=>{const r=t.sync(n,{throwNotFound:true});const e=this.createCosmiconfigResultSync(n,r);return this.config.transform(e)})}}r.exports=function createExplorer(r){const n=new Explorer(r);return{search:n.search.bind(n),searchSync:n.searchSync.bind(n),load:n.load.bind(n),loadSync:n.loadSync.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}};function nextDirUp(r){return i.dirname(r)}function getExtensionDescription(r){const n=i.extname(r);return n?`extension "${n}"`:"files without extensions"}},587:function(r,n,e){"use strict";var i=e(304);function resolveYamlMerge(r){return r==="<<"||r===null}r.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},594:function(r,n){"use strict";n.__esModule=true;n.default=void 0;var e=function(){function Warning(r,n){if(n===void 0){n={}}this.type="warning";this.text=r;if(n.node&&n.node.source){var e=n.node.positionBy(n);this.line=e.line;this.column=e.column}for(var i in n){this[i]=n[i]}}var r=Warning.prototype;r.toString=function 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};return Warning}();var i=e;n.default=i;r.exports=n.default},606:function(r,n,e){"use strict";const i=e(622);const o=e(660);const t=e(47);r.exports=(r=>{if(typeof r!=="string"){throw new TypeError("Expected a string")}const n=o(i.dirname(t()),r);if(require.cache[n]&&require.cache[n].parent){let r=require.cache[n].parent.children.length;while(r--){if(require.cache[n].parent.children[r].id===n){require.cache[n].parent.children.splice(r,1)}}}delete require.cache[n];return require(n)})},610:function(r,n,e){"use strict";var i=e(340);var o=e(893);var t=e(615);var s=e(801);var u=e(928);var f=Object.prototype.hasOwnProperty;var c=1;var l=2;var a=3;var p=4;var h=1;var d=2;var g=3;var v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var w=/[\x85\u2028\u2029]/;var m=/[,\[\]\{\}]/;var S=/^(?:!|!!|![a-z\-]+!)$/i;var b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(r){return Object.prototype.toString.call(r)}function is_EOL(r){return r===10||r===13}function is_WHITE_SPACE(r){return r===9||r===32}function is_WS_OR_EOL(r){return r===9||r===32||r===10||r===13}function is_FLOW_INDICATOR(r){return r===44||r===91||r===93||r===123||r===125}function fromHexCode(r){var n;if(48<=r&&r<=57){return r-48}n=r|32;if(97<=n&&n<=102){return n-97+10}return-1}function escapedHexLen(r){if(r===120){return 2}if(r===117){return 4}if(r===85){return 8}return 0}function fromDecimalCode(r){if(48<=r&&r<=57){return r-48}return-1}function simpleEscapeSequence(r){return r===48?"\0":r===97?"":r===98?"\b":r===116?"\t":r===9?"\t":r===110?"\n":r===118?"\v":r===102?"\f":r===114?"\r":r===101?"":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"…":r===95?" ":r===76?"\u2028":r===80?"\u2029":""}function charFromCodepoint(r){if(r<=65535){return String.fromCharCode(r)}return String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}var y=new Array(256);var A=new Array(256);for(var O=0;O<256;O++){y[O]=simpleEscapeSequence(O)?1:0;A[O]=simpleEscapeSequence(O)}function State(r,n){this.input=r;this.filename=n["filename"]||null;this.schema=n["schema"]||u;this.onWarning=n["onWarning"]||null;this.legacy=n["legacy"]||false;this.json=n["json"]||false;this.listener=n["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=r.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(r,n){return new o(n,new t(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function throwError(r,n){throw generateError(r,n)}function throwWarning(r,n){if(r.onWarning){r.onWarning.call(null,generateError(r,n))}}var C={YAML:function handleYamlDirective(r,n,e){var i,o,t;if(r.version!==null){throwError(r,"duplication of %YAML directive")}if(e.length!==1){throwError(r,"YAML directive accepts exactly one argument")}i=/^([0-9]+)\.([0-9]+)$/.exec(e[0]);if(i===null){throwError(r,"ill-formed argument of the YAML directive")}o=parseInt(i[1],10);t=parseInt(i[2],10);if(o!==1){throwError(r,"unacceptable YAML version of the document")}r.version=e[0];r.checkLineBreaks=t<2;if(t!==1&&t!==2){throwWarning(r,"unsupported YAML version of the document")}},TAG:function handleTagDirective(r,n,e){var i,o;if(e.length!==2){throwError(r,"TAG directive accepts exactly two arguments")}i=e[0];o=e[1];if(!S.test(i)){throwError(r,"ill-formed tag handle (first argument) of the TAG directive")}if(f.call(r.tagMap,i)){throwError(r,'there is a previously declared suffix for "'+i+'" tag handle')}if(!b.test(o)){throwError(r,"ill-formed tag prefix (second argument) of the TAG directive")}r.tagMap[i]=o}};function captureSegment(r,n,e,i){var o,t,s,u;if(n1){r.result+=i.repeat("\n",n-1)}}function readPlainScalar(r,n,e){var i,o,t,s,u,f,c,l,a=r.kind,p=r.result,h;h=r.input.charCodeAt(r.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){o=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(o)||e&&is_FLOW_INDICATOR(o)){return false}}r.kind="scalar";r.result="";t=s=r.position;u=false;while(h!==0){if(h===58){o=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(o)||e&&is_FLOW_INDICATOR(o)){break}}else if(h===35){i=r.input.charCodeAt(r.position-1);if(is_WS_OR_EOL(i)){break}}else if(r.position===r.lineStart&&testDocumentSeparator(r)||e&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){f=r.line;c=r.lineStart;l=r.lineIndent;skipSeparationSpace(r,false,-1);if(r.lineIndent>=n){u=true;h=r.input.charCodeAt(r.position);continue}else{r.position=s;r.line=f;r.lineStart=c;r.lineIndent=l;break}}if(u){captureSegment(r,t,s,false);writeFoldedLines(r,r.line-f);t=s=r.position;u=false}if(!is_WHITE_SPACE(h)){s=r.position+1}h=r.input.charCodeAt(++r.position)}captureSegment(r,t,s,false);if(r.result){return true}r.kind=a;r.result=p;return false}function readSingleQuotedScalar(r,n){var e,i,o;e=r.input.charCodeAt(r.position);if(e!==39){return false}r.kind="scalar";r.result="";r.position++;i=o=r.position;while((e=r.input.charCodeAt(r.position))!==0){if(e===39){captureSegment(r,i,r.position,true);e=r.input.charCodeAt(++r.position);if(e===39){i=r.position;r.position++;o=r.position}else{return true}}else if(is_EOL(e)){captureSegment(r,i,o,true);writeFoldedLines(r,skipSeparationSpace(r,false,n));i=o=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a single quoted scalar")}else{r.position++;o=r.position}}throwError(r,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(r,n){var e,i,o,t,s,u;u=r.input.charCodeAt(r.position);if(u!==34){return false}r.kind="scalar";r.result="";r.position++;e=i=r.position;while((u=r.input.charCodeAt(r.position))!==0){if(u===34){captureSegment(r,e,r.position,true);r.position++;return true}else if(u===92){captureSegment(r,e,r.position,true);u=r.input.charCodeAt(++r.position);if(is_EOL(u)){skipSeparationSpace(r,false,n)}else if(u<256&&y[u]){r.result+=A[u];r.position++}else if((s=escapedHexLen(u))>0){o=s;t=0;for(;o>0;o--){u=r.input.charCodeAt(++r.position);if((s=fromHexCode(u))>=0){t=(t<<4)+s}else{throwError(r,"expected hexadecimal character")}}r.result+=charFromCodepoint(t);r.position++}else{throwError(r,"unknown escape sequence")}e=i=r.position}else if(is_EOL(u)){captureSegment(r,e,i,true);writeFoldedLines(r,skipSeparationSpace(r,false,n));e=i=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a double quoted scalar")}else{r.position++;i=r.position}}throwError(r,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(r,n){var e=true,i,o=r.tag,t,s=r.anchor,u,f,l,a,p,h={},d,g,v,w;w=r.input.charCodeAt(r.position);if(w===91){f=93;p=false;t=[]}else if(w===123){f=125;p=true;t={}}else{return false}if(r.anchor!==null){r.anchorMap[r.anchor]=t}w=r.input.charCodeAt(++r.position);while(w!==0){skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if(w===f){r.position++;r.tag=o;r.anchor=s;r.kind=p?"mapping":"sequence";r.result=t;return true}else if(!e){throwError(r,"missed comma between flow collection entries")}g=d=v=null;l=a=false;if(w===63){u=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(u)){l=a=true;r.position++;skipSeparationSpace(r,true,n)}}i=r.line;composeNode(r,n,c,false,true);g=r.tag;d=r.result;skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if((a||r.line===i)&&w===58){l=true;w=r.input.charCodeAt(++r.position);skipSeparationSpace(r,true,n);composeNode(r,n,c,false,true);v=r.result}if(p){storeMappingPair(r,t,h,g,d,v)}else if(l){t.push(storeMappingPair(r,null,h,g,d,v))}else{t.push(d)}skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if(w===44){e=true;w=r.input.charCodeAt(++r.position)}else{e=false}}throwError(r,"unexpected end of the stream within a flow collection")}function readBlockScalar(r,n){var e,o,t=h,s=false,u=false,f=n,c=0,l=false,a,p;p=r.input.charCodeAt(r.position);if(p===124){o=false}else if(p===62){o=true}else{return false}r.kind="scalar";r.result="";while(p!==0){p=r.input.charCodeAt(++r.position);if(p===43||p===45){if(h===t){t=p===43?g:d}else{throwError(r,"repeat of a chomping mode identifier")}}else if((a=fromDecimalCode(p))>=0){if(a===0){throwError(r,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!u){f=n+a-1;u=true}else{throwError(r,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=r.input.charCodeAt(++r.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=r.input.charCodeAt(++r.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(r);r.lineIndent=0;p=r.input.charCodeAt(r.position);while((!u||r.lineIndentf){f=r.lineIndent}if(is_EOL(p)){c++;continue}if(r.lineIndentn)&&f!==0){throwError(r,"bad indentation of a sequence entry")}else if(r.lineIndentn){if(composeNode(r,n,p,true,o)){if(v){d=r.result}else{g=r.result}}if(!v){storeMappingPair(r,c,a,h,d,g,t,s);h=d=g=null}skipSeparationSpace(r,true,-1);m=r.input.charCodeAt(r.position)}if(r.lineIndent>n&&m!==0){throwError(r,"bad indentation of a mapping entry")}else if(r.lineIndentn){h=1}else if(r.lineIndent===n){h=0}else if(r.lineIndentn){h=1}else if(r.lineIndent===n){h=0}else if(r.lineIndent tag; it should be "'+m.kind+'", not "'+r.kind+'"')}if(!m.resolve(r.result)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=m.construct(r.result);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}else{throwError(r,"unknown tag !<"+r.tag+">")}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||g}function readDocument(r){var n=r.position,e,i,o,t=false,s;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap={};r.anchorMap={};while((s=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);s=r.input.charCodeAt(r.position);if(r.lineIndent>0||s!==37){break}t=true;s=r.input.charCodeAt(++r.position);e=r.position;while(s!==0&&!is_WS_OR_EOL(s)){s=r.input.charCodeAt(++r.position)}i=r.input.slice(e,r.position);o=[];if(i.length<1){throwError(r,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=r.input.charCodeAt(++r.position)}if(s===35){do{s=r.input.charCodeAt(++r.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;e=r.position;while(s!==0&&!is_WS_OR_EOL(s)){s=r.input.charCodeAt(++r.position)}o.push(r.input.slice(e,r.position))}if(s!==0)readLineBreak(r);if(f.call(C,i)){C[i](r,i,o)}else{throwWarning(r,'unknown document directive "'+i+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(t){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,p,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&w.test(r.input.slice(n,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.positionrequire(i(r,n)));r.exports.silent=((r,n)=>{try{return require(i(r,n))}catch(r){return null}})},615:function(r,n,e){"use strict";var i=e(340);function Mark(r,n,e,i,o){this.name=r;this.buffer=n;this.position=e;this.line=i;this.column=o}Mark.prototype.getSnippet=function getSnippet(r,n){var e,o,t,s,u;if(!this.buffer)return null;r=r||4;n=n||75;e="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>n/2-1){e=" ... ";o+=5;break}}t="";s=this.position;while(sn/2-1){t=" ... ";s-=5;break}}u=this.buffer.slice(o,s);return i.repeat(" ",r)+e+u+t+"\n"+i.repeat(" ",r+this.position-o+e.length)+"^"};Mark.prototype.toString=function toString(r){var n,e="";if(this.name){e+='in "'+this.name+'" '}e+="at line "+(this.line+1)+", column "+(this.column+1);if(!r){n=this.getSnippet();if(n){e+=":\n"+n}}return e};r.exports=Mark},618:function(r,n,e){"use strict";var i=e(304);var o=Object.prototype.hasOwnProperty;var t=Object.prototype.toString;function resolveYamlOmap(r){if(r===null)return true;var n=[],e,i,s,u,f,c=r;for(e=0,i=c.length;ei&&r[a+1]!==" ";a=t}}else if(!isPrintable(s)){return $}p=p&&isPlainSafe(s)}f=f||c&&(t-a-1>i&&r[a+1]!==" ")}if(!u&&!f){return p&&!o(r)?Y:P}if(e>9&&needIndentIndicator(r)){return $}return f?B:W}function writeScalar(r,n,e,i){r.dump=function(){if(n.length===0){return"''"}if(!r.noCompatMode&&x.indexOf(n)!==-1){return"'"+n+"'"}var t=r.indent*Math.max(1,e);var s=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-t);var u=i||r.flowLevel>-1&&e>=r.flowLevel;function testAmbiguity(n){return testImplicitResolving(r,n)}switch(chooseScalarStyle(n,u,r.indent,s,testAmbiguity)){case Y:return n;case P:return"'"+n.replace(/'/g,"''")+"'";case W:return"|"+blockHeader(n,r.indent)+dropEndingNewline(indentString(n,t));case B:return">"+blockHeader(n,r.indent)+dropEndingNewline(indentString(foldString(n,s),t));case $:return'"'+escapeString(n,s)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(r,n){var e=needIndentIndicator(r)?String(n):"";var i=r[r.length-1]==="\n";var o=i&&(r[r.length-2]==="\n"||r==="\n");var t=o?"+":i?"":"-";return e+t+"\n"}function dropEndingNewline(r){return r[r.length-1]==="\n"?r.slice(0,-1):r}function foldString(r,n){var e=/(\n+)([^\n]*)/g;var i=function(){var i=r.indexOf("\n");i=i!==-1?i:r.length;e.lastIndex=i;return foldLine(r.slice(0,i),n)}();var o=r[0]==="\n"||r[0]===" ";var t;var s;while(s=e.exec(r)){var u=s[1],f=s[2];t=f[0]===" ";i+=u+(!o&&!t&&f!==""?"\n":"")+foldLine(f,n);o=t}return i}function foldLine(r,n){if(r===""||r[0]===" ")return r;var e=/ [^ ]/g;var i;var o=0,t,s=0,u=0;var f="";while(i=e.exec(r)){u=i.index;if(u-o>n){t=s>o?s:u;f+="\n"+r.slice(o,t);o=t+1}s=u}f+="\n";if(r.length-o>n&&s>o){f+=r.slice(o,s)+"\n"+r.slice(s+1)}else{f+=r.slice(o)}return f.slice(1)}function escapeString(r){var n="";var e,i;var o;for(var t=0;t=55296&&e<=56319){i=r.charCodeAt(t+1);if(i>=56320&&i<=57343){n+=encodeHex((e-55296)*1024+i-56320+65536);t++;continue}}o=q[e];n+=!o&&isPrintable(e)?r[t]:o||encodeHex(e)}return n}function writeFlowSequence(r,n,e){var i="",o=r.tag,t,s;for(t=0,s=e.length;t1024)l+="? ";l+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" ");if(!writeNode(r,n,c,false,false)){continue}l+=r.dump;i+=l}r.tag=o;r.dump="{"+i+"}"}function writeBlockMapping(r,n,e,i){var t="",s=r.tag,u=Object.keys(e),f,c,a,p,h,d;if(r.sortKeys===true){u.sort()}else if(typeof r.sortKeys==="function"){u.sort(r.sortKeys)}else if(r.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(f=0,c=u.length;f1024;if(h){if(r.dump&&l===r.dump.charCodeAt(0)){d+="?"}else{d+="? "}}d+=r.dump;if(h){d+=generateNextLine(r,n)}if(!writeNode(r,n+1,p,true,h)){continue}if(r.dump&&l===r.dump.charCodeAt(0)){d+=":"}else{d+=": "}d+=r.dump;t+=d}r.tag=s;r.dump=t||"{}"}function detectType(r,n,e){var i,t,s,c,l,a;t=e?r.explicitTypes:r.implicitTypes;for(s=0,c=t.length;s tag resolver accepts not "'+a+'" style')}r.dump=i}return true}}return false}function writeNode(r,n,e,i,t,s){r.tag=null;r.dump=e;if(!detectType(r,e,false)){detectType(r,e,true)}var f=u.call(r.dump);if(i){i=r.flowLevel<0||r.flowLevel>n}var c=f==="[object Object]"||f==="[object Array]",l,a;if(c){l=r.duplicates.indexOf(e);a=l!==-1}if(r.tag!==null&&r.tag!=="?"||a||r.indent!==2&&n>0){t=false}if(a&&r.usedDuplicates[l]){r.dump="*ref_"+l}else{if(c&&a&&!r.usedDuplicates[l]){r.usedDuplicates[l]=true}if(f==="[object Object]"){if(i&&Object.keys(r.dump).length!==0){writeBlockMapping(r,n,r.dump,t);if(a){r.dump="&ref_"+l+r.dump}}else{writeFlowMapping(r,n,r.dump);if(a){r.dump="&ref_"+l+" "+r.dump}}}else if(f==="[object Array]"){var p=r.noArrayIndent&&n>0?n-1:n;if(i&&r.dump.length!==0){writeBlockSequence(r,p,r.dump,t);if(a){r.dump="&ref_"+l+r.dump}}else{writeFlowSequence(r,p,r.dump);if(a){r.dump="&ref_"+l+" "+r.dump}}}else if(f==="[object String]"){if(r.tag!=="?"){writeScalar(r,r.dump,n,s)}}else{if(r.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+f)}if(r.tag!==null&&r.tag!=="?"){r.dump="!<"+r.tag+"> "+r.dump}}return true}function getDuplicateReferences(r,n){var e=[],i=[],o,t;inspectNode(r,e,i);for(o=0,t=i.length;oparseInt(s[1])){console.error("Unknown error from PostCSS plugin. Your current PostCSS "+"version is "+o+", but "+e+" uses "+i+". Perhaps this is the source of the error below.")}}}}catch(r){if(console&&console.error)console.error(r)}};r.asyncTick=function asyncTick(r,n){var e=this;if(this.plugin>=this.processor.plugins.length){this.processed=true;return r()}try{var i=this.processor.plugins[this.plugin];var o=this.run(i);this.plugin+=1;if(isPromise(o)){o.then(function(){e.asyncTick(r,n)}).catch(function(r){e.handleError(r,i);e.processed=true;n(r)})}else{this.asyncTick(r,n)}}catch(r){this.processed=true;n(r)}};r.async=function async(){var r=this;if(this.processed){return new Promise(function(n,e){if(r.error){e(r.error)}else{n(r.stringify())}})}if(this.processing){return this.processing}this.processing=new Promise(function(n,e){if(r.error)return e(r.error);r.plugin=0;r.asyncTick(n,e)}).then(function(){r.processed=true;return r.stringify()});return this.processing};r.sync=function sync(){if(this.processed)return this.result;this.processed=true;if(this.processing){throw new Error("Use process(css).then(cb) to work with async plugins")}if(this.error)throw this.error;for(var r=this.result.processor.plugins,n=Array.isArray(r),e=0,r=n?r:r[Symbol.iterator]();;){var i;if(n){if(e>=r.length)break;i=r[e++]}else{e=r.next();if(e.done)break;i=e.value}var o=i;var t=this.run(o);if(isPromise(t)){throw new Error("Use process(css).then(cb) to work with async plugins")}}return this.result};r.run=function run(r){this.result.lastPlugin=r;try{return r(this.result.root,this.result)}catch(n){this.handleError(n,r);throw n}};r.stringify=function stringify(){if(this.stringified)return this.result;this.stringified=true;this.sync();var r=this.result.opts;var n=o.default;if(r.syntax)n=r.syntax.stringify;if(r.stringifier)n=r.stringifier;if(n.stringify)n=n.stringify;var e=new i.default(n,this.result.root,this.result.opts);var t=e.generate();this.result.css=t[0];this.result.map=t[1];return this.result};_createClass(LazyResult,[{key:"processor",get:function get(){return this.result.processor}},{key:"opts",get:function get(){return this.result.opts}},{key:"css",get:function get(){return this.stringify().css}},{key:"content",get:function get(){return this.stringify().content}},{key:"map",get:function get(){return this.stringify().map}},{key:"root",get:function get(){return this.sync().root}},{key:"messages",get:function get(){return this.sync().messages}}]);return LazyResult}();var c=f;n.default=c;r.exports=n.default},652:function(r,n,e){"use strict";const i=e(20);const o=(r,n)=>{if(r.parser&&typeof r.parser==="string"){try{r.parser=i(r.parser)}catch(r){throw new Error(`Loading PostCSS Parser failed: ${r.message}\n\n(@${n})`)}}if(r.syntax&&typeof r.syntax==="string"){try{r.syntax=i(r.syntax)}catch(r){throw new Error(`Loading PostCSS Syntax failed: ${r.message}\n\n(@${n})`)}}if(r.stringifier&&typeof r.stringifier==="string"){try{r.stringifier=i(r.stringifier)}catch(r){throw new Error(`Loading PostCSS Stringifier failed: ${r.message}\n\n(@${n})`)}}if(r.plugins){delete r.plugins}return r};r.exports=o},660:function(r,n,e){"use strict";const i=e(622);const o=e(282);const t=(r,n,e)=>{if(typeof r!=="string"){throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof r}\``)}if(typeof n!=="string"){throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof n}\``)}r=i.resolve(r);const t=i.join(r,"noop.js");const s=()=>o._resolveFilename(n,{id:t,filename:t,paths:o._nodeModulePaths(r)});if(e){try{return s()}catch(r){return null}}return s()};r.exports=((r,n)=>t(r,n));r.exports.silent=((r,n)=>t(r,n,true))},661:function(r,n,e){"use strict";var i=e(340);var o=e(304);var t=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(r){if(r===null)return false;if(!t.test(r)||r[r.length-1]==="_"){return false}return true}function constructYamlFloat(r){var n,e,i,o;n=r.replace(/_/g,"").toLowerCase();e=n[0]==="-"?-1:1;o=[];if("+-".indexOf(n[0])>=0){n=n.slice(1)}if(n===".inf"){return e===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(n===".nan"){return NaN}else if(n.indexOf(":")>=0){n.split(":").forEach(function(r){o.unshift(parseFloat(r,10))});n=0;i=1;o.forEach(function(r){n+=r*i;i*=60});return e*n}return e*parseFloat(n,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(r,n){var e;if(isNaN(r)){switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===r){switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===r){switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(i.isNegativeZero(r)){return"-0.0"}e=r.toString(10);return s.test(e)?e.replace("e",".e"):e}function isFloat(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||i.isNegativeZero(r))}r.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},669:function(r){r.exports=require("util")},689:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(192));var o=_interopRequireDefault(e(222));var t=_interopRequireDefault(e(365));var s=_interopRequireDefault(e(88));var u=_interopRequireDefault(e(92));var f=_interopRequireDefault(e(66));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}var c=function(){function Parser(r){this.input=r;this.root=new u.default;this.current=this.root;this.spaces="";this.semicolon=false;this.createTokenizer();this.root.source={input:r,start:{line:1,column:1}}}var r=Parser.prototype;r.createTokenizer=function createTokenizer(){this.tokenizer=(0,o.default)(this.input)};r.parse=function parse(){var r;while(!this.tokenizer.endOfFile()){r=this.tokenizer.nextToken();switch(r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}}this.endFile()};r.comment=function comment(r){var n=new t.default;this.init(n,r[2],r[3]);n.source.end={line:r[4],column:r[5]};var e=r[1].slice(2,-2);if(/^\s*$/.test(e)){n.text="";n.raws.left=e;n.raws.right=""}else{var i=e.match(/^(\s*)([^]*[^\s])(\s*)$/);n.text=i[2];n.raws.left=i[1];n.raws.right=i[3]}};r.emptyRule=function emptyRule(r){var n=new f.default;this.init(n,r[2],r[3]);n.selector="";n.raws.between="";this.current=n};r.other=function other(r){var n=false;var e=null;var i=false;var o=null;var t=[];var s=[];var u=r;while(u){e=u[0];s.push(u);if(e==="("||e==="["){if(!o)o=u;t.push(e==="("?")":"]")}else if(t.length===0){if(e===";"){if(i){this.decl(s);return}else{break}}else if(e==="{"){this.rule(s);return}else if(e==="}"){this.tokenizer.back(s.pop());n=true;break}else if(e===":"){i=true}}else if(e===t[t.length-1]){t.pop();if(t.length===0)o=null}u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())n=true;if(t.length>0)this.unclosedBracket(o);if(n&&i){while(s.length){u=s[s.length-1][0];if(u!=="space"&&u!=="comment")break;this.tokenizer.back(s.pop())}this.decl(s)}else{this.unknownWord(s)}};r.rule=function rule(r){r.pop();var n=new f.default;this.init(n,r[0][2],r[0][3]);n.raws.between=this.spacesAndCommentsFromEnd(r);this.raw(n,"selector",r);this.current=n};r.decl=function decl(r){var n=new i.default;this.init(n);var e=r[r.length-1];if(e[0]===";"){this.semicolon=true;r.pop()}if(e[4]){n.source.end={line:e[4],column:e[5]}}else{n.source.end={line:e[2],column:e[3]}}while(r[0][0]!=="word"){if(r.length===1)this.unknownWord(r);n.raws.before+=r.shift()[1]}n.source.start={line:r[0][2],column:r[0][3]};n.prop="";while(r.length){var o=r[0][0];if(o===":"||o==="space"||o==="comment"){break}n.prop+=r.shift()[1]}n.raws.between="";var t;while(r.length){t=r.shift();if(t[0]===":"){n.raws.between+=t[1];break}else{if(t[0]==="word"&&/\w/.test(t[1])){this.unknownWord([t])}n.raws.between+=t[1]}}if(n.prop[0]==="_"||n.prop[0]==="*"){n.raws.before+=n.prop[0];n.prop=n.prop.slice(1)}n.raws.between+=this.spacesAndCommentsFromStart(r);this.precheckMissedSemicolon(r);for(var s=r.length-1;s>0;s--){t=r[s];if(t[1].toLowerCase()==="!important"){n.important=true;var u=this.stringFrom(r,s);u=this.spacesFromEnd(r)+u;if(u!==" !important")n.raws.important=u;break}else if(t[1].toLowerCase()==="important"){var f=r.slice(0);var c="";for(var l=s;l>0;l--){var a=f[l][0];if(c.trim().indexOf("!")===0&&a!=="space"){break}c=f.pop()[1]+c}if(c.trim().indexOf("!")===0){n.important=true;n.raws.important=c;r=f}}if(t[0]!=="space"&&t[0]!=="comment"){break}}this.raw(n,"value",r);if(n.value.indexOf(":")!==-1)this.checkMissedSemicolon(r)};r.atrule=function atrule(r){var n=new s.default;n.name=r[1].slice(1);if(n.name===""){this.unnamedAtrule(n,r)}this.init(n,r[2],r[3]);var e;var i;var o=false;var t=false;var u=[];while(!this.tokenizer.endOfFile()){r=this.tokenizer.nextToken();if(r[0]===";"){n.source.end={line:r[2],column:r[3]};this.semicolon=true;break}else if(r[0]==="{"){t=true;break}else if(r[0]==="}"){if(u.length>0){i=u.length-1;e=u[i];while(e&&e[0]==="space"){e=u[--i]}if(e){n.source.end={line:e[4],column:e[5]}}}this.end(r);break}else{u.push(r)}if(this.tokenizer.endOfFile()){o=true;break}}n.raws.between=this.spacesAndCommentsFromEnd(u);if(u.length){n.raws.afterName=this.spacesAndCommentsFromStart(u);this.raw(n,"params",u);if(o){r=u[u.length-1];n.source.end={line:r[4],column:r[5]};this.spaces=n.raws.between;n.raws.between=""}}else{n.raws.afterName="";n.params=""}if(t){n.nodes=[];this.current=n}};r.end=function end(r){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={line:r[2],column:r[3]};this.current=this.current.parent}else{this.unexpectedClose(r)}};r.endFile=function 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};r.freeSemicolon=function freeSemicolon(r){this.spaces+=r[1];if(this.current.nodes){var n=this.current.nodes[this.current.nodes.length-1];if(n&&n.type==="rule"&&!n.raws.ownSemicolon){n.raws.ownSemicolon=this.spaces;this.spaces=""}}};r.init=function init(r,n,e){this.current.push(r);r.source={start:{line:n,column:e},input:this.input};r.raws.before=this.spaces;this.spaces="";if(r.type!=="comment")this.semicolon=false};r.raw=function raw(r,n,e){var i,o;var t=e.length;var s="";var u=true;var f,c;var l=/^([.|#])?([\w])+/i;for(var a=0;a=0;o--){i=r[o];if(i[0]!=="space"){e+=1;if(e===2)break}}throw this.input.error("Missed semicolon",i[2],i[3])};return Parser}();n.default=c;r.exports=n.default},710:function(r){r.exports=require("loader-utils")},736:function(r){r.exports=require("next/dist/compiled/chalk")},747:function(r){r.exports=require("fs")},768:function(r){"use strict";r.exports=(()=>{const r=Error.prepareStackTrace;Error.prepareStackTrace=((r,n)=>n);const n=(new Error).stack.slice(1);Error.prepareStackTrace=r;return n})},769:function(r,n,e){"use strict";var i=e(304);var o=Object.prototype.toString;function resolveYamlPairs(r){if(r===null)return true;var n,e,i,t,s,u=r;s=new Array(u.length);for(n=0,e=u.length;n=r.length?r.length:o+e;n.message+=` while parsing near '${i===0?"":"..."}${r.slice(i,t)}${t===r.length?"":"..."}'`}else{n.message+=` while parsing '${r.slice(0,e*2)}'`}throw n}}},904:function(r,n,e){const i=e(622);const{getOptions:o}=e(710);const t=e(134);const s=e(297);const u=e(455);const f=e(1);const c=e(612);const l=e(953);function loader(r,n,a){const p=Object.assign({},o(this));t(e(780),p,"PostCSS Loader");const h=this.async();const d=this.resourcePath;const g=p.sourceMap;Promise.resolve().then(()=>{const r=Object.keys(p).filter(r=>{switch(r){case"ident":case"config":case"sourceMap":return;default:return r}}).length;if(r){return l.call(this,p)}const n={path:i.dirname(d),ctx:{file:{extname:i.extname(d),dirname:i.dirname(d),basename:i.basename(d)},options:{}}};if(p.config){if(p.config.path){n.path=i.resolve(p.config.path)}if(p.config.ctx){n.ctx.options=p.config.ctx}}n.ctx.webpack=this;return u(n.ctx,n.path)}).then(e=>{if(!e){e={}}if(e.file){this.addDependency(e.file)}if(e.options.to){delete e.options.to}if(e.options.from){delete e.options.from}let o=e.plugins||[];let t=Object.assign({from:d,map:g?g==="inline"?{inline:true,annotation:false}:{inline:false,annotation:false}:false},e.options);if(t.parser==="postcss-js"){r=this.exec(r,this.resource)}if(typeof t.parser==="string"){t.parser=require(t.parser)}if(typeof t.syntax==="string"){t.syntax=require(t.syntax)}if(typeof t.stringifier==="string"){t.stringifier=require(t.stringifier)}if(e.exec){r=this.exec(r,this.resource)}if(g&&typeof n==="string"){n=JSON.parse(n)}if(g&&n){t.map.prev=n}return s(o).process(r,t).then(r=>{let{css:n,map:e,root:o,processor:t,messages:s}=r;r.warnings().forEach(r=>{this.emitWarning(new f(r))});s.forEach(r=>{if(r.type==="dependency"){this.addDependency(r.file)}});e=e?e.toJSON():null;if(e){e.file=i.resolve(e.file);e.sources=e.sources.map(r=>i.resolve(r))}if(!a){a={}}const u={type:"postcss",version:t.version,root:o};a.ast=u;a.messages=s;if(this.loaderIndex===0){h(null,`module.exports = ${JSON.stringify(n)}`,e);return null}h(null,n,e,a);return null})}).catch(r=>{if(r.file){this.addDependency(r.file)}return r.name==="CssSyntaxError"?h(new c(r)):h(r)})}r.exports=loader},913:function(r,n,e){"use strict";n.__esModule=true;n.default=void 0;var i=_interopRequireDefault(e(241));var o=_interopRequireDefault(e(622));var t=_interopRequireDefault(e(747));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function fromBase64(r){if(Buffer){return Buffer.from(r,"base64").toString()}else{return window.atob(r)}}var s=function(){function PreviousMap(r,n){this.loadAnnotation(r);this.inline=this.startWith(this.annotation,"data:");var e=n.map?n.map.prev:undefined;var i=this.loadMap(n.from,e);if(i)this.text=i}var r=PreviousMap.prototype;r.consumer=function consumer(){if(!this.consumerCache){this.consumerCache=new i.default.SourceMapConsumer(this.text)}return this.consumerCache};r.withContent=function withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)};r.startWith=function startWith(r,n){if(!r)return false;return r.substr(0,n.length)===n};r.loadAnnotation=function loadAnnotation(r){var n=r.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);if(n)this.annotation=n[1].trim()};r.decodeInline=function decodeInline(r){var n=/^data:application\/json;charset=utf-?8;base64,/;var e=/^data:application\/json;base64,/;var i="data:application/json,";if(this.startWith(r,i)){return decodeURIComponent(r.substr(i.length))}if(n.test(r)||e.test(r)){return fromBase64(r.substr(RegExp.lastMatch.length))}var o=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)};r.loadMap=function loadMap(r,n){if(n===false)return false;if(n){if(typeof n==="string"){return n}else if(typeof n==="function"){var e=n(r);if(e&&t.default.existsSync&&t.default.existsSync(e)){return t.default.readFileSync(e,"utf-8").toString().trim()}else{throw new Error("Unable to load previous source map: "+e.toString())}}else if(n instanceof i.default.SourceMapConsumer){return i.default.SourceMapGenerator.fromSourceMap(n).toString()}else if(n instanceof i.default.SourceMapGenerator){return n.toString()}else if(this.isMap(n)){return JSON.stringify(n)}else{throw new Error("Unsupported previous source map format: "+n.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){var s=this.annotation;if(r)s=o.default.join(o.default.dirname(r),s);this.root=o.default.dirname(s);if(t.default.existsSync&&t.default.existsSync(s)){return t.default.readFileSync(s,"utf-8").toString().trim()}else{return false}}};r.isMap=function isMap(r){if(typeof r!=="object")return false;return typeof r.mappings==="string"||typeof r._mappings==="string"};return PreviousMap}();var u=s;n.default=u;r.exports=n.default},928:function(r,n,e){"use strict";var i=e(890);r.exports=i.DEFAULT=new i({include:[e(801)],explicit:[e(334),e(130),e(202)]})},934:function(r,n,e){"use strict";var i=e(669);var o=e(28);var t=function errorEx(r,n){if(!r||r.constructor!==String){n=r||{};r=Error.name}var e=function ErrorEXError(i){if(!this){return new ErrorEXError(i)}i=i instanceof Error?i.message:i||this.message;Error.call(this,i);Error.captureStackTrace(this,e);this.name=r;Object.defineProperty(this,"message",{configurable:true,enumerable:false,get:function(){var r=i.split(/\r?\n/g);for(var e in n){if(!n.hasOwnProperty(e)){continue}var t=n[e];if("message"in t){r=t.message(this[e],r)||r;if(!o(r)){r=[r]}}}return r.join("\n")},set:function(r){i=r}});var t=null;var s=Object.getOwnPropertyDescriptor(this,"stack");var u=s.get;var f=s.value;delete s.value;delete s.writable;s.set=function(r){t=r};s.get=function(){var r=(t||(u?u.call(this):f)).split(/\r?\n+/g);if(!t){r[0]=this.name+": "+this.message}var e=1;for(var i in n){if(!n.hasOwnProperty(i)){continue}var o=n[i];if("line"in o){var s=o.line(this[i]);if(s){r.splice(e++,0," "+s)}}if("stack"in o){o.stack(this[i],r)}}return r.join("\n")};Object.defineProperty(this,"stack",s)};if(Object.setPrototypeOf){Object.setPrototypeOf(e.prototype,Error.prototype);Object.setPrototypeOf(e,Error)}else{i.inherits(e,Error)}return e};t.append=function(r,n){return{message:function(e,i){e=e||n;if(e){i[0]+=" "+r.replace("%s",e.toString())}return i}}};t.line=function(r,n){return{line:function(e){e=e||n;if(e){return r.replace("%s",e.toString())}return null}}};r.exports=t},940:function(r,n,e){"use strict";var i;try{var o=require;i=o("buffer").Buffer}catch(r){}var t=e(304);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(r){if(r===null)return false;var n,e,i=0,o=r.length,t=s;for(e=0;e64)continue;if(n<0)return false;i+=6}return i%8===0}function constructYamlBinary(r){var n,e,o=r.replace(/[\r\n=]/g,""),t=o.length,u=s,f=0,c=[];for(n=0;n>16&255);c.push(f>>8&255);c.push(f&255)}f=f<<6|u.indexOf(o.charAt(n))}e=t%4*6;if(e===0){c.push(f>>16&255);c.push(f>>8&255);c.push(f&255)}else if(e===18){c.push(f>>10&255);c.push(f>>2&255)}else if(e===12){c.push(f>>4&255)}if(i){return i.from?i.from(c):new i(c)}return c}function representYamlBinary(r){var n="",e=0,i,o,t=r.length,u=s;for(i=0;i>18&63];n+=u[e>>12&63];n+=u[e>>6&63];n+=u[e&63]}e=(e<<8)+r[i]}o=t%3;if(o===0){n+=u[e>>18&63];n+=u[e>>12&63];n+=u[e>>6&63];n+=u[e&63]}else if(o===2){n+=u[e>>10&63];n+=u[e>>4&63];n+=u[e<<2&63];n+=u[64]}else if(o===1){n+=u[e>>2&63];n+=u[e<<4&63];n+=u[64];n+=u[64]}return n}function isBinary(r){return i&&i.isBuffer(r)}r.exports=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},953:function(r){function parseOptions({exec:r,parser:n,syntax:e,stringifier:i,plugins:o}){if(typeof o==="function"){o=o.call(this,this)}if(typeof o==="undefined"){o=[]}else if(!Array.isArray(o)){o=[o]}const t={};t.parser=n;t.syntax=e;t.stringifier=i;return Promise.resolve({options:t,plugins:o,exec:r})}r.exports=parseOptions},965:function(r,n,e){"use strict";var i=e(304);r.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})},995:function(r,n,e){"use strict";var i=e(747);function isDirectory(r,n){if(typeof n!=="function"){throw new Error("expected a callback function")}if(typeof r!=="string"){n(new Error("expected filepath to be a string"));return}i.stat(r,function(r,e){if(r){if(r.code==="ENOENT"){n(null,false);return}n(r);return}n(null,e.isDirectory())})}isDirectory.sync=function isDirectorySync(r){if(typeof r!=="string"){throw new Error("expected filepath to be a string")}try{var n=i.statSync(r);return n.isDirectory()}catch(r){if(r.code==="ENOENT"){return false}else{throw r}}return false};r.exports=isDirectory}}); \ No newline at end of file diff --git a/packages/next/compiled/postcss-loader/package.json b/packages/next/compiled/postcss-loader/package.json index 738c301691051..072c1ea5aeb66 100644 --- a/packages/next/compiled/postcss-loader/package.json +++ b/packages/next/compiled/postcss-loader/package.json @@ -1 +1 @@ -{"name":"postcss-loader","main":"index.js","author":"Andrey Sitnik ","license":"MIT"} +{"name":"postcss-loader","main":"cjs.js","author":"Andrey Sitnik ","license":"MIT"} diff --git a/packages/next/package.json b/packages/next/package.json index 0d1b9352b2ac8..061e5b46f22e3 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -194,7 +194,7 @@ "ora": "4.0.4", "path-to-regexp": "6.1.0", "postcss-flexbugs-fixes": "4.2.1", - "postcss-loader": "3.0.0", + "postcss-loader": "4.0.2", "postcss-preset-env": "6.7.0", "raw-body": "2.4.1", "recast": "0.18.5", diff --git a/yarn.lock b/yarn.lock index 30c492a6a51f7..3d7bec1e60ac5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5723,6 +5723,17 @@ cosmiconfig@^6.0.0: path-type "^4.0.0" yaml "^1.7.2" +cosmiconfig@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3" + integrity sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA== + dependencies: + "@types/parse-json" "^4.0.0" + import-fresh "^3.2.1" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.10.0" + coveralls@3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.3.tgz#83b1c64aea1c6afa69beaf50b55ac1bc4d13e2b8" @@ -8609,7 +8620,7 @@ import-fresh@^2.0.0: caller-path "^2.0.0" resolve-from "^3.0.0" -import-fresh@^3.0.0, import-fresh@^3.1.0: +import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66" dependencies: @@ -12873,6 +12884,17 @@ postcss-loader@3.0.0: postcss-load-config "^2.0.0" schema-utils "^1.0.0" +postcss-loader@4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-4.0.2.tgz#b9e55a6126ee67bb7b94bbfcbf1aa24c69f11229" + integrity sha512-u7Qoa6GSPIeg9/hHbNnXspzuD5jjCIWKgk1fJ/gGJPS0uaj6Whk2zjXhDAiHZyYSrDmIzUQk7GgwRF22eRIQGQ== + dependencies: + cosmiconfig "^7.0.0" + klona "^2.0.3" + loader-utils "^2.0.0" + schema-utils "^2.7.1" + semver "^7.3.2" + postcss-logical@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/postcss-logical/-/postcss-logical-3.0.0.tgz#2495d0f8b82e9f262725f75f9401b34e7b45d5b5" @@ -17140,6 +17162,11 @@ yallist@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" +yaml@^1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e" + integrity sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg== + yaml@^1.7.2: version "1.9.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.9.2.tgz#f0cfa865f003ab707663e4f04b3956957ea564ed"