@umijs/lint
Version:
1 lines • 78.4 kB
JavaScript
(function(){var e={328:function(e,t,r){let n=r(224);let i=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||n.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env);let formatter=(e,t,r=e)=>n=>{let i=""+n;let o=i.indexOf(t,e.length);return~o?e+replaceClose(i,t,r,o)+t:e+i+t};let replaceClose=(e,t,r,n)=>{let i=e.substring(0,n)+r;let o=e.substring(n+t.length);let s=o.indexOf(t);return~s?i+replaceClose(o,t,r,s):i+o};let createColors=(e=i)=>({isColorSupported:e,reset:e?e=>`[0m${e}[0m`:String,bold:e?formatter("[1m","[22m","[22m[1m"):String,dim:e?formatter("[2m","[22m","[22m[2m"):String,italic:e?formatter("[3m","[23m"):String,underline:e?formatter("[4m","[24m"):String,inverse:e?formatter("[7m","[27m"):String,hidden:e?formatter("[8m","[28m"):String,strikethrough:e?formatter("[9m","[29m"):String,black:e?formatter("[30m","[39m"):String,red:e?formatter("[31m","[39m"):String,green:e?formatter("[32m","[39m"):String,yellow:e?formatter("[33m","[39m"):String,blue:e?formatter("[34m","[39m"):String,magenta:e?formatter("[35m","[39m"):String,cyan:e?formatter("[36m","[39m"):String,white:e?formatter("[37m","[39m"):String,gray:e?formatter("[90m","[39m"):String,bgBlack:e?formatter("[40m","[49m"):String,bgRed:e?formatter("[41m","[49m"):String,bgGreen:e?formatter("[42m","[49m"):String,bgYellow:e?formatter("[43m","[49m"):String,bgBlue:e?formatter("[44m","[49m"):String,bgMagenta:e?formatter("[45m","[49m"):String,bgCyan:e?formatter("[46m","[49m"):String,bgWhite:e?formatter("[47m","[49m"):String});e.exports=createColors();e.exports.createColors=createColors},880:function(e,t,r){const n=r(570);const i=r(108);const{isInlineComment:o}=r(958);const{interpolation:s}=r(150);const{isMixinToken:a}=r(624);const l=r(154);const u=r(782);const c=/(!\s*important)$/i;e.exports=class LessParser extends i{constructor(...e){super(...e);this.lastNode=null}atrule(e){if(s.bind(this)(e)){return}super.atrule(e);l(this.lastNode);u(this.lastNode)}decl(...e){super.decl(...e);const t=/extend\(.+\)/i;if(t.test(this.lastNode.value)){this.lastNode.extend=true}}each(e){e[0][1]=` ${e[0][1]}`;const t=e.findIndex((e=>e[0]==="("));const r=e.reverse().find((e=>e[0]===")"));const n=e.reverse().indexOf(r);const i=e.splice(t,n);const o=i.map((e=>e[1])).join("");for(const t of e.reverse()){this.tokenizer.back(t)}this.atrule(this.tokenizer.nextToken());this.lastNode.function=true;this.lastNode.params=o}init(e,t,r){super.init(e,t,r);this.lastNode=e}inlineComment(e){const t=new n;const r=e[1].slice(2);this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);t.inline=true;t.raws.begin="//";if(/^\s*$/.test(r)){t.text="";t.raws.left=r;t.raws.right=""}else{const e=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=e}}mixin(e){const[t]=e;const r=t[1].slice(0,1);const n=e.findIndex((e=>e[0]==="brackets"));const i=e.findIndex((e=>e[0]==="("));let o="";if((n<0||n>3)&&i>0){const t=e.reduce(((e,t,r)=>t[0]===")"?r:e));const r=e.slice(i,t+i);const n=r.map((e=>e[1])).join("");const[o]=e.slice(i);const s=[o[2],o[3]];const[a]=e.slice(t,t+1);const l=[a[2],a[3]];const u=["brackets",n].concat(s,l);const c=e.slice(0,i);const f=e.slice(t+1);e=c;e.push(u);e=e.concat(f)}const s=[];for(const t of e){if(t[1]==="!"||s.length){s.push(t)}if(t[1]==="important"){break}}if(s.length){const[t]=s;const r=e.indexOf(t);const n=s[s.length-1];const i=[t[2],t[3]];const o=[n[4],n[5]];const a=s.map((e=>e[1])).join("");const l=["word",a].concat(i,o);e.splice(r,s.length,l)}const a=e.findIndex((e=>c.test(e[1])));if(a>0){[,o]=e[a];e.splice(a,1)}for(const t of e.reverse()){this.tokenizer.back(t)}this.atrule(this.tokenizer.nextToken());this.lastNode.mixin=true;this.lastNode.raws.identifier=r;if(o){this.lastNode.important=true;this.lastNode.raws.important=o}}other(e){if(!o.bind(this)(e)){super.other(e)}}rule(e){const t=e[e.length-1];const r=e[e.length-2];if(r[0]==="at-word"&&t[0]==="{"){this.tokenizer.back(t);if(s.bind(this)(r)){const t=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([t]);for(const t of e.reverse()){this.tokenizer.back(t)}return}}super.rule(e);const n=/:extend\(.+\)/i;if(n.test(this.lastNode.selector)){this.lastNode.extend=true}}unknownWord(e){const[t]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(a(t)){this.mixin(e);return}super.unknownWord(e)}}},291:function(e,t,r){const n=r(476);e.exports=class LessStringifier extends n{atrule(e,t){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,t);return}const r=e.function?"":e.raws.identifier||"@";let n=`${r}${e.name}`;let i=e.params?this.rawValue(e,"params"):"";const o=e.raws.important||"";if(e.variable){i=e.value}if(typeof e.raws.afterName!=="undefined"){n+=e.raws.afterName}else if(i){n+=" "}if(e.nodes){this.block(e,n+i+o)}else{const r=(e.raws.between||"")+o+(t?";":"");this.builder(n+i+r,e)}}comment(e){if(e.inline){const t=this.raw(e,"left","commentLeft");const r=this.raw(e,"right","commentRight");this.builder(`//${t}${e.text}${r}`,e)}else{super.comment(e)}}}},829:function(e,t,r){const n=r(698);const i=r(880);const o=r(291);e.exports={parse(e,t){const r=new n(e,t);const o=new i(r);o.parse();o.root.walk((e=>{const t=r.css.lastIndexOf(e.source.input.css);if(t===0){return}if(t+e.source.input.css.length!==r.css.length){throw new Error("Invalid state detected in postcss-less")}const n=t+e.source.start.offset;const i=r.fromOffset(t+e.source.start.offset);e.source.start={offset:n,line:i.line,column:i.col};if(e.source.end){const n=t+e.source.end.offset;const i=r.fromOffset(t+e.source.end.offset);e.source.end={offset:n,line:i.line,column:i.col}}}));return o.root},stringify(e,t){const r=new o(t);r.stringify(e)},nodeToString(t){let r="";e.exports.stringify(t,(e=>{r+=e}));return r}}},154:function(e,t,r){const n=r(249);const i=/^url\((.+)\)/;e.exports=e=>{const{name:t,params:r=""}=e;if(t==="import"&&r.length){e.import=true;const t=n({css:r});e.filename=r.replace(i,"$1");while(!t.endOfFile()){const[n,i]=t.nextToken();if(n==="word"&&i==="url"){return}else if(n==="brackets"){e.options=i;e.filename=r.replace(i,"").trim();break}}}}},958:function(e,t,r){const n=r(249);const i=r(698);e.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){const e=t;const r=[];let o;let s;while(t){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){r.push(t[1].substring(0,t[1].indexOf("\n")));s=t[1].substring(t[1].indexOf("\n"));const e=this.input.css.valueOf().substring(this.tokenizer.position());s+=e;o=t[3]+e.length-s.length}else{this.tokenizer.back(t)}break}r.push(t[1]);o=t[2];t=this.tokenizer.nextToken({ignoreUnclosed:true})}const a=["comment",r.join(""),e[2],o];this.inlineComment(a);if(s){this.input=new i(s);this.tokenizer=n(this.input)}return true}else if(t[1]==="/"){const r=this.tokenizer.nextToken({ignoreUnclosed:true});if(r[0]==="comment"&&/^\/\*/.test(r[1])){r[0]="word";r[1]=r[1].slice(1);t[1]="//";this.tokenizer.back(r);return e.exports.isInlineComment.bind(this)(t)}}return false}}},150:function(e){e.exports={interpolation(e){const t=[e,this.tokenizer.nextToken()];const r=["word","}"];if(t[0][1].length>1||t[1][0]!=="{"){this.tokenizer.back(t[1]);return false}e=this.tokenizer.nextToken();while(e&&r.includes(e[0])){t.push(e);e=this.tokenizer.nextToken()}const n=t.map((e=>e[1]));const[i]=t;const o=t.pop();const s=["word",n.join(""),i[2],o[2]];this.tokenizer.back(e);this.tokenizer.back(s);return true}}},624:function(e){const t=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/;const r=/\.[0-9]/;const isMixinToken=e=>{const[,n]=e;const[i]=n;return(i==="."||i==="#")&&t.test(n)===false&&r.test(n)===false};e.exports={isMixinToken:isMixinToken}},782:function(e){const t=/:$/;const r=/^:(\s+)?/;e.exports=e=>{const{name:n,params:i=""}=e;if(e.name.slice(-1)!==":"){return}if(t.test(n)){const[r]=n.match(t);e.name=n.replace(r,"");e.raws.afterName=r+(e.raws.afterName||"");e.variable=true;e.value=e.params}if(r.test(i)){const[t]=i.match(r);e.value=i.replace(t,"");e.raws.afterName=(e.raws.afterName||"")+t;e.variable=true}}},206:function(e,t,r){"use strict";let n=r(609);class AtRule extends n{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=AtRule;AtRule.default=AtRule;n.registerAtRule(AtRule)},570:function(e,t,r){"use strict";let n=r(180);class Comment extends n{constructor(e){super(e);this.type="comment"}}e.exports=Comment;Comment.default=Comment},609:function(e,t,r){"use strict";let{isClean:n,my:i}=r(134);let o=r(324);let s=r(570);let a=r(180);let l,u,c;function cleanSource(e){return e.map((e=>{if(e.nodes)e.nodes=cleanSource(e.nodes);delete e.source;return e}))}function markDirtyUp(e){e[n]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){markDirtyUp(t)}}}class Container extends a{push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let r,n;while(this.indexes[t]<this.proxyOf.nodes.length){r=this.indexes[t];n=e(this.proxyOf.nodes[r],r);if(n===false)break;this.indexes[t]+=1}delete this.indexes[t];return n}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}if(n!==false&&t.walk){n=t.walk(e)}return n}))}walkDecls(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="decl"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,n)=>{if(r.type==="decl"&&e.test(r.prop)){return t(r,n)}}))}return this.walk(((r,n)=>{if(r.type==="decl"&&r.prop===e){return t(r,n)}}))}walkRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="rule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,n)=>{if(r.type==="rule"&&e.test(r.selector)){return t(r,n)}}))}return this.walk(((r,n)=>{if(r.type==="rule"&&r.selector===e){return t(r,n)}}))}walkAtRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="atrule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,n)=>{if(r.type==="atrule"&&e.test(r.name)){return t(r,n)}}))}return this.walk(((r,n)=>{if(r.type==="atrule"&&r.name===e){return t(r,n)}}))}walkComments(e){return this.walk(((t,r)=>{if(t.type==="comment"){return e(t,r)}}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}insertBefore(e,t){e=this.index(e);let r=e===0?"prepend":false;let n=this.normalize(t,this.proxyOf.nodes[e],r).reverse();for(let t of n)this.proxyOf.nodes.splice(e,0,t);let i;for(let t in this.indexes){i=this.indexes[t];if(e<=i){this.indexes[t]=i+n.length}}this.markDirty();return this}insertAfter(e,t){e=this.index(e);let r=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of r)this.proxyOf.nodes.splice(e+1,0,t);let n;for(let t in this.indexes){n=this.indexes[t];if(e<n){this.indexes[t]=n+r.length}}this.markDirty();return this}removeChild(e){e=this.index(e);this.proxyOf.nodes[e].parent=undefined;this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}this.markDirty();return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}replaceValues(e,t,r){if(!r){r=t;t={}}this.walkDecls((n=>{if(t.props&&!t.props.includes(n.prop))return;if(t.fast&&!n.value.includes(t.fast))return;n.value=n.value.replace(e,r)}));this.markDirty();return this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if(typeof e==="string"){e=cleanSource(l(e).nodes)}else if(Array.isArray(e)){e=e.slice(0);for(let t of e){if(t.parent)t.parent.removeChild(t,"ignore")}}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let t of e){if(t.parent)t.parent.removeChild(t,"ignore")}}else if(e.type){e=[e]}else if(e.prop){if(typeof e.value==="undefined"){throw new Error("Value field is missed in node creation")}else if(typeof e.value!=="string"){e.value=String(e.value)}e=[new o(e)]}else if(e.selector){e=[new u(e)]}else if(e.name){e=[new c(e)]}else if(e.text){e=[new s(e)]}else{throw new Error("Unknown node type in node creation")}let r=e.map((e=>{if(!e[i])Container.rebuild(e);e=e.proxyOf;if(e.parent)e.parent.removeChild(e);if(e[n])markDirtyUp(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this;return e}));return r}getProxyProcessor(){return{set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true},get(e,t){if(t==="proxyOf"){return e}else if(!e[t]){return e[t]}else if(t==="each"||typeof t==="string"&&t.startsWith("walk")){return(...r)=>e[t](...r.map((e=>{if(typeof e==="function"){return(t,r)=>e(t.toProxy(),r)}else{return e}})))}else if(t==="every"||t==="some"){return r=>e[t](((e,...t)=>r(e.toProxy(),...t)))}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map((e=>e.toProxy()))}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}}}}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let e=this.lastEach;this.indexes[e]=0;return e}}Container.registerParse=e=>{l=e};Container.registerRule=e=>{u=e};Container.registerAtRule=e=>{c=e};e.exports=Container;Container.default=Container;Container.rebuild=e=>{if(e.type==="atrule"){Object.setPrototypeOf(e,c.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,u.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,o.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,s.prototype)}e[i]=true;if(e.nodes){e.nodes.forEach((e=>{Container.rebuild(e)}))}}},173:function(e,t,r){"use strict";let n=r(328);let i=r(59);class CssSyntaxError extends Error{constructor(e,t,r,n,i,o){super(e);this.name="CssSyntaxError";this.reason=e;if(i){this.file=i}if(n){this.source=n}if(o){this.plugin=o}if(typeof t!=="undefined"&&typeof r!=="undefined"){if(typeof t==="number"){this.line=t;this.column=r}else{this.line=t.line;this.column=t.column;this.endLine=r.line;this.endColumn=r.column}}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"<css input>";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=n.isColorSupported;if(i){if(e)t=i(t)}let r=t.split(/\r?\n/);let o=Math.max(this.line-3,0);let s=Math.min(this.line+2,r.length);let a=String(s).length;let l,u;if(e){let{bold:e,red:t,gray:r}=n.createColors(true);l=r=>e(t(r));u=e=>r(e)}else{l=u=e=>e}return r.slice(o,s).map(((e,t)=>{let r=o+1+t;let n=" "+(" "+r).slice(-a)+" | ";if(r===this.line){let t=u(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+u(n)+e+"\n "+t+l("^")}return" "+u(n)+e})).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=CssSyntaxError;CssSyntaxError.default=CssSyntaxError},324:function(e,t,r){"use strict";let n=r(180);class Declaration extends n{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=Declaration;Declaration.default=Declaration},698:function(e,t,r){"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(746);let{fileURLToPath:o,pathToFileURL:s}=r(310);let{resolve:a,isAbsolute:l}=r(17);let{nanoid:u}=r(401);let c=r(59);let f=r(173);let p=r(186);let h=Symbol("fromOffsetCache");let d=Boolean(n&&i);let m=Boolean(a&&l);class Input{constructor(e,t={}){if(e===null||typeof e==="undefined"||typeof e==="object"&&!e.toString){throw new Error(`PostCSS received ${e} instead of CSS string`)}this.css=e.toString();if(this.css[0]==="\ufeff"||this.css[0]===""){this.hasBOM=true;this.css=this.css.slice(1)}else{this.hasBOM=false}if(t.from){if(!m||/^\w+:\/\//.test(t.from)||l(t.from)){this.file=t.from}else{this.file=a(t.from)}}if(m&&d){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;if(!this.file&&t)this.file=this.mapResolve(t)}}if(!this.file){this.id="<input css "+u(6)+">"}if(this.map)this.map.file=this.from}fromOffset(e){let t,r;if(!this[h]){let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,i=e.length;n<i;n++){r[n]=t;t+=e[n].length+1}this[h]=r}else{r=this[h]}t=r[r.length-1];let n=0;if(e>=t){n=r.length-1}else{let t=r.length-2;let i;while(n<t){i=n+(t-n>>1);if(e<r[i]){t=i-1}else if(e>=r[i+1]){n=i+1}else{n=i;break}}}return{line:n+1,col:e-r[n]+1}}error(e,t,r,n={}){let i,o,a;if(t&&typeof t==="object"){let e=t;let n=r;if(typeof t.offset==="number"){let n=this.fromOffset(e.offset);t=n.line;r=n.col}else{t=e.line;r=e.column}if(typeof n.offset==="number"){let e=this.fromOffset(n.offset);o=e.line;a=e.col}else{o=n.line;a=n.column}}else if(!r){let e=this.fromOffset(t);t=e.line;r=e.col}let l=this.origin(t,r,o,a);if(l){i=new f(e,l.endLine===undefined?l.line:{line:l.line,column:l.column},l.endLine===undefined?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,n.plugin)}else{i=new f(e,o===undefined?t:{line:t,column:r},o===undefined?r:{line:o,column:a},this.css,this.file,n.plugin)}i.input={line:t,column:r,endLine:o,endColumn:a,source:this.css};if(this.file){if(s){i.input.url=s(this.file).toString()}i.input.file=this.file}return i}origin(e,t,r,n){if(!this.map)return false;let i=this.map.consumer();let a=i.originalPositionFor({line:e,column:t});if(!a.source)return false;let u;if(typeof r==="number"){u=i.originalPositionFor({line:r,column:n})}let c;if(l(a.source)){c=s(a.source)}else{c=new URL(a.source,this.map.consumer().sourceRoot||s(this.map.mapFile))}let f={url:c.toString(),line:a.line,column:a.column,endLine:u&&u.line,endColumn:u&&u.column};if(c.protocol==="file:"){if(o){f.file=o(c)}else{throw new Error(`file: protocol is not available in this PostCSS build`)}}let p=i.sourceContentFor(a.source);if(p)f.source=p;return f}mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return a(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"]){if(this[t]!=null){e[t]=this[t]}}if(this.map){e.map={...this.map};if(e.map.consumerCache){e.map.consumerCache=undefined}}return e}}e.exports=Input;Input.default=Input;if(c&&c.registerInput){c.registerInput(Input)}},258:function(e){"use strict";let t={split(e,t,r){let n=[];let i="";let o=false;let s=0;let a=false;let l=false;for(let r of e){if(l){l=false}else if(r==="\\"){l=true}else if(a){if(r===a){a=false}}else if(r==='"'||r==="'"){a=r}else if(r==="("){s+=1}else if(r===")"){if(s>0)s-=1}else if(s===0){if(t.includes(r))o=true}if(o){if(i!=="")n.push(i.trim());i="";o=false}else{i+=r}}if(r||i!=="")n.push(i.trim());return n},space(e){let r=[" ","\n","\t"];return t.split(e,r)},comma(e){return t.split(e,[","],true)}};e.exports=t;t.default=t},180:function(e,t,r){"use strict";let{isClean:n,my:i}=r(134);let o=r(173);let s=r(476);let a=r(410);function cloneNode(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)){continue}if(n==="proxyCache")continue;let i=e[n];let o=typeof i;if(n==="parent"&&o==="object"){if(t)r[n]=t}else if(n==="source"){r[n]=i}else if(Array.isArray(i)){r[n]=i.map((e=>cloneNode(e,r)))}else{if(o==="object"&&i!==null)i=cloneNode(i);r[n]=i}}return r}class Node{constructor(e={}){this.raws={};this[n]=false;this[i]=true;for(let t in e){if(t==="nodes"){this.nodes=[];for(let r of e[t]){if(typeof r.clone==="function"){this.append(r.clone())}else{this.append(r)}}}else{this[t]=e[t]}}}error(e,t={}){if(this.source){let{start:r,end:n}=this.rangeBy(t);return this.source.input.error(e,{line:r.line,column:r.column},{line:n.line,column:n.column},t)}return new o(e)}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this}toString(e=a){if(e.stringify)e=e.stringify;let t="";e(this,(e=>{t+=e}));return t}assign(e={}){for(let t in e){this[t]=e[t]}return this}clone(e={}){let t=cloneNode(this);for(let r in e){t[r]=e[r]}return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}replaceWith(...e){if(this.parent){let t=this;let r=false;for(let n of e){if(n===this){r=true}else if(r){this.parent.insertAfter(t,n);t=n}else{this.parent.insertBefore(t,n)}}if(!r){this.remove()}}return this}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){this.parent.insertBefore(this,e);return this}after(e){this.parent.insertAfter(this,e);return this}root(){let e=this;while(e.parent&&e.parent.type!=="document"){e=e.parent}return e}raw(e,t){let r=new s;return r.raw(this,e,t)}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}toJSON(e,t){let r={};let n=t==null;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)){continue}if(e==="parent"||e==="proxyCache")continue;let n=this[e];if(Array.isArray(n)){r[e]=n.map((e=>{if(typeof e==="object"&&e.toJSON){return e.toJSON(null,t)}else{return e}}))}else if(typeof n==="object"&&n.toJSON){r[e]=n.toJSON(null,t)}else if(e==="source"){let o=t.get(n.input);if(o==null){o=i;t.set(n.input,i);i++}r[e]={inputId:o,start:n.start,end:n.end}}else{r[e]=n}}if(n){r.inputs=[...t.keys()].map((e=>e.toJSON()))}return r}positionInside(e){let t=this.toString();let r=this.source.start.column;let n=this.source.start.line;for(let i=0;i<e;i++){if(t[i]==="\n"){r=1;n+=1}else{r+=1}}return{line:n,column:r}}positionBy(e){let t=this.source.start;if(e.index){t=this.positionInside(e.index)}else if(e.word){let r=this.toString().indexOf(e.word);if(r!==-1)t=this.positionInside(r)}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column};let r=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let n=this.toString().indexOf(e.word);if(n!==-1){t=this.positionInside(n);r=this.positionInside(n+e.word.length)}}else{if(e.start){t={line:e.start.line,column:e.start.column}}else if(e.index){t=this.positionInside(e.index)}if(e.end){r={line:e.end.line,column:e.end.column}}else if(e.endIndex){r=this.positionInside(e.endIndex)}else if(e.index){r=this.positionInside(e.index+1)}}if(r.line<t.line||r.line===t.line&&r.column<=t.column){r={line:t.line,column:t.column+1}}return{start:t,end:r}}getProxyProcessor(){return{set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text"){e.markDirty()}return true},get(e,t){if(t==="proxyOf"){return e}else if(t==="root"){return()=>e.root().toProxy()}else{return e[t]}}}}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[n]){this[n]=false;let e=this;while(e=e.parent){e[n]=false}}}get proxyOf(){return this}}e.exports=Node;Node.default=Node},108:function(e,t,r){"use strict";let n=r(324);let i=r(249);let o=r(570);let s=r(206);let a=r(68);let l=r(42);const u={empty:true,space:true};function findLastWithPosition(e){for(let t=e.length-1;t>=0;t--){let r=e[t];let n=r[3]||r[2];if(n)return n}}class Parser{constructor(e){this.input=e;this.root=new a;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}comment(e){let t=new o;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r)){t.text="";t.raws.left=r;t.raws.right=""}else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}other(e){let t=false;let r=null;let n=false;let i=null;let o=[];let s=e[1].startsWith("--");let a=[];let l=e;while(l){r=l[0];a.push(l);if(r==="("||r==="["){if(!i)i=l;o.push(r==="("?")":"]")}else if(s&&n&&r==="{"){if(!i)i=l;o.push("}")}else if(o.length===0){if(r===";"){if(n){this.decl(a,s);return}else{break}}else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop());t=true;break}else if(r===":"){n=true}}else if(r===o[o.length-1]){o.pop();if(o.length===0)i=null}l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(o.length>0)this.unclosedBracket(i);if(t&&n){if(!s){while(a.length){l=a[a.length-1][0];if(l!=="space"&&l!=="comment")break;this.tokenizer.back(a.pop())}}this.decl(a,s)}else{this.unknownWord(a)}}rule(e){e.pop();let t=new l;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}decl(e,t){let r=new n;this.init(r,e[0][2]);let i=e[e.length-1];if(i[0]===";"){this.semicolon=true;e.pop()}r.source.end=this.getPosition(i[3]||i[2]||findLastWithPosition(e));while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);r.raws.before+=e.shift()[1]}r.source.start=this.getPosition(e[0][2]);r.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}r.prop+=e.shift()[1]}r.raws.between="";let o;while(e.length){o=e.shift();if(o[0]===":"){r.raws.between+=o[1];break}else{if(o[0]==="word"&&/\w/.test(o[1])){this.unknownWord([o])}r.raws.between+=o[1]}}if(r.prop[0]==="_"||r.prop[0]==="*"){r.raws.before+=r.prop[0];r.prop=r.prop.slice(1)}let s=[];let a;while(e.length){a=e[0][0];if(a!=="space"&&a!=="comment")break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){o=e[t];if(o[1].toLowerCase()==="!important"){r.important=true;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n;if(n!==" !important")r.raws.important=n;break}else if(o[1].toLowerCase()==="important"){let n=e.slice(0);let i="";for(let e=t;e>0;e--){let t=n[e][0];if(i.trim().indexOf("!")===0&&t!=="space"){break}i=n.pop()[1]+i}if(i.trim().indexOf("!")===0){r.important=true;r.raws.important=i;e=n}}if(o[0]!=="space"&&o[0]!=="comment"){break}}let l=e.some((e=>e[0]!=="space"&&e[0]!=="comment"));if(l){r.raws.between+=s.map((e=>e[1])).join("");s=[]}this.raw(r,"value",s.concat(e),t);if(r.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}atrule(e){let t=new s;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let r;let n;let i;let o=false;let a=false;let l=[];let u=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();r=e[0];if(r==="("||r==="["){u.push(r==="("?")":"]")}else if(r==="{"&&u.length>0){u.push("}")}else if(r===u[u.length-1]){u.pop()}if(u.length===0){if(r===";"){t.source.end=this.getPosition(e[2]);this.semicolon=true;break}else if(r==="{"){a=true;break}else if(r==="}"){if(l.length>0){i=l.length-1;n=l[i];while(n&&n[0]==="space"){n=l[--i]}if(n){t.source.end=this.getPosition(n[3]||n[2])}}this.end(e);break}else{l.push(e)}}else{l.push(e)}if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(l);if(l.length){t.raws.afterName=this.spacesAndCommentsFromStart(l);this.raw(t,"params",l);if(o){e=l[l.length-1];t.source.end=this.getPosition(e[3]||e[2]);this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(a){t.nodes=[];this.current=t}}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e);e.source={start:this.getPosition(t),input:this.input};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}raw(e,t,r,n){let i,o;let s=r.length;let a="";let l=true;let c,f;for(let e=0;e<s;e+=1){i=r[e];o=i[0];if(o==="space"&&e===s-1&&!n){l=false}else if(o==="comment"){f=r[e-1]?r[e-1][0]:"empty";c=r[e+1]?r[e+1][0]:"empty";if(!u[f]&&!u[c]){if(a.slice(-1)===","){l=false}else{a+=i[1]}}else{l=false}}else{a+=i[1]}}if(!l){let n=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:a,raw:n}}e[t]=a}spacesAndCommentsFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t;let r="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++){r+=e[n][1]}e.splice(t,e.length-t);return r}colon(e){let t=0;let r,n,i;for(let[o,s]of e.entries()){r=s;n=r[0];if(n==="("){t+=1}if(n===")"){t-=1}if(t===0&&n===":"){if(!i){this.doubleColon(r)}else if(i[0]==="word"&&i[1]==="progid"){continue}else{return o}}i=r}return false}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r=0;let n;for(let i=t-1;i>=0;i--){n=e[i];if(n[0]!=="space"){r+=1;if(r===2)break}}throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}}e.exports=Parser},186:function(e,t,r){"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(746);let{existsSync:o,readFileSync:s}=r(147);let{dirname:a,join:l}=r(17);function fromBase64(e){if(Buffer){return Buffer.from(e,"base64").toString()}else{return window.atob(e)}}class PreviousMap{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e);this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:undefined;let n=this.loadMap(t.from,r);if(!this.mapFile&&t.from){this.mapFile=t.from}if(this.mapFile)this.root=a(this.mapFile);if(n)this.text=n}consumer(){if(!this.consumerCache){this.consumerCache=new n(this.text)}return this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop());let n=e.indexOf("*/",r);if(r>-1&&n>-1){this.annotation=this.getAnnotationURL(e.substring(r,n))}}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/;let r=/^data:application\/json;base64,/;let n=/^data:application\/json;charset=utf-?8,/;let i=/^data:application\/json,/;if(n.test(e)||i.test(e)){return decodeURIComponent(e.substr(RegExp.lastMatch.length))}if(t.test(e)||r.test(e)){return fromBase64(e.substr(RegExp.lastMatch.length))}let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}loadFile(e){this.root=a(e);if(o(e)){this.mapFile=e;return s(e,"utf-8").toString().trim()}}loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){let r=t(e);if(r){let e=this.loadFile(r);if(!e){throw new Error("Unable to load previous source map: "+r.toString())}return e}}else if(t instanceof n){return i.fromSourceMap(t).toString()}else if(t instanceof i){return t.toString()}else if(this.isMap(t)){return JSON.stringify(t)}else{throw new Error("Unsupported previous source map format: "+t.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){let t=this.annotation;if(e)t=l(a(e),t);return this.loadFile(t)}}isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}}e.exports=PreviousMap;PreviousMap.default=PreviousMap},68:function(e,t,r){"use strict";let n=r(609);let i,o;class Root extends n{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[r].raws.before}return super.removeChild(e)}normalize(e,t,r){let n=super.normalize(e);if(t){if(r==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of n){e.raws.before=t.raws.before}}}return n}toResult(e={}){let t=new i(new o,this,e);return t.stringify()}}Root.registerLazyResult=e=>{i=e};Root.registerProcessor=e=>{o=e};e.exports=Root;Root.default=Root},42:function(e,t,r){"use strict";let n=r(609);let i=r(258);class Rule extends n{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=Rule;Rule.default=Rule;n.registerRule(Rule)},476:function(e){"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft");let r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon");let n=e.prop+r+this.rawValue(e,"value");if(e.important){n+=e.raws.important||" !important"}if(t)n+=";";this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}atrule(e,t){let r="@"+e.name;let n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(n){r+=" "}if(e.nodes){this.block(e,r+n)}else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}}body(e){let t=e.nodes.length-1;while(t>0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n];let o=this.raw(i,"before");if(o)this.builder(o);this.stringify(i,t!==n||r)}}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let n;if(e.nodes&&e.nodes.length){this.body(e);n=this.raw(e,"after")}else{n=this.raw(e,"after","emptyBody")}if(n)this.builder(n);this.builder("}",e,"end")}raw(e,r,n){let i;if(!n)n=r;if(r){i=e.raws[r];if(typeof i!=="undefined")return i}let o=e.parent;if(n==="before"){if(!o||o.type==="root"&&o.first===e){return""}if(o&&o.type==="document"){return""}}if(!o)return t[n];let s=e.root();if(!s.rawCache)s.rawCache={};if(typeof s.rawCache[n]!=="undefined"){return s.rawCache[n]}if(n==="before"||n==="after"){return this.beforeAfter(e,n)}else{let t="raw"+capitalize(n);if(this[t]){i=this[t](s,e)}else{s.walk((e=>{i=e.raws[r];if(typeof i!=="undefined")return false}))}}if(typeof i==="undefined")i=t[n];s.rawCache[n]=i;return i}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let n=e.parent;let i=0;while(n&&n.type!=="root"){i+=1;n=n.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e<i;e++)r+=t}}return r}rawValue(e,t){let r=e[t];let n=e.raws[t];if(n&&n.value===r){return n.raw}return r}}e.exports=Stringifier;Stringifier.default=Stringifier},410:function(e,t,r){"use strict";let n=r(476);function stringify(e,t){let r=new n(t);r.stringify(e)}e.exports=stringify;stringify.default=stringify},134:function(e){"use strict";e.exports.isClean=Symbol("isClean");e.exports.my=Symbol("my")},59:function(e,t,r){"use strict";let n=r(328);let i=r(249);let o;function registerInput(e){o=e}const s={brackets:n.cyan,"at-word":n.cyan,comment:n.gray,string:n.green,class:n.yellow,hash:n.magenta,call:n.cyan,"(":n.cyan,")":n.cyan,"{":n.yellow,"}":n.yellow,"[":n.yellow,"]":n.yellow,":":n.yellow,";":n.yellow};function getTokenType([e,t],r){if(e==="word"){if(t[0]==="."){return"class"}if(t[0]==="#"){return"hash"}}if(!r.endOfFile()){let e=r.nextToken();r.back(e);if(e[0]==="brackets"||e[0]==="(")return"call"}return e}function terminalHighlight(e){let t=i(new o(e),{ignoreErrors:true});let r="";while(!t.endOfFile()){let e=t.nextToken();let n=s[getTokenType(e,t)];if(n){r+=e[1].split(/\r?\n/).map((e=>n(e))).join("\n")}else{r+=e[1]}}return r}terminalHighlight.registerInput=registerInput;e.exports=terminalHighlight},249:function(e){"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const n="\\".charCodeAt(0);const i="/".charCodeAt(0);const o="\n".charCodeAt(0);const s=" ".charCodeAt(0);const a="\f".charCodeAt(0);const l="\t".charCodeAt(0);const u="\r".charCodeAt(0);const c="[".charCodeAt(0);const f="]".charCodeAt(0);const p="(".charCodeAt(0);const h=")".charCodeAt(0);const d="{".charCodeAt(0);const m="}".charCodeAt(0);const g=";".charCodeAt(0);const w="*".charCodeAt(0);const y=":".charCodeAt(0);const S="@".charCodeAt(0);const v=/[\t\n\f\r "#'()/;[\\\]{}]/g;const C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const _=/.[\n"'(/\\]/;const b=/[\da-f]/i;e.exports=function tokenizer(e,M={}){let x=e.css.valueOf();let k=M.ignoreErrors;let A,O,L,R,P;let E,N,I,B,G;let F=x.length;let T=0;let U=[];let j=[];function position(){return T}function unclosed(t){throw e.error("Unclosed "+t,T)}function endOfFile(){return j.length===0&&T>=F}function nextToken(e){if(j.length)return j.pop();if(T>=F)return;let M=e?e.ignoreUnclosed:false;A=x.charCodeAt(T);switch(A){case o:case s:case l:case u:case a:{O=T;do{O+=1;A=x.charCodeAt(O)}while(A===s||A===o||A===l||A===u||A===a);G=["space",x.slice(T,O)];T=O-1;break}case c:case f:case d:case m:case y:case g:case h:{let e=String.fromCharCode(A);G=[e,e,T];break}case p:{I=U.length?U.pop()[1]:"";B=x.charCodeAt(T+1);if(I==="url"&&B!==t&&B!==r&&B!==s&&B!==o&&B!==l&&B!==a&&B!==u){O=T;do{E=false;O=x.indexOf(")",O+1);if(O===-1){if(k||M){O=T;break}else{unclosed("bracket")}}N=O;while(x.charCodeAt(N-1)===n){N-=1;E=!E}}while(E);G=["brackets",x.slice(T,O+1),T,O];T=O}else{O=x.indexOf(")",T+1);R=x.slice(T,O+1);if(O===-1||_.test(R)){G=["(","(",T]}else{G=["brackets",R,T,O];T=O}}break}case t:case r:{L=A===t?"'":'"';O=T;do{E=false;O=x.indexOf(L,O+1);if(O===-1){if(k||M){O=T+1;break}else{unclosed("string")}}N=O;while(x.charCodeAt(N-1)===n){N-=1;E=!E}}while(E);G=["string",x.slice(T,O+1),T,O];T=O;break}case S:{v.lastIndex=T+1;v.test(x);if(v.lastIndex===0){O=x.length-1}else{O=v.lastIndex-2}G=["at-word",x.slice(T,O+1),T,O];T=O;break}case n:{O=T;P=true;while(x.charCodeAt(O+1)===n){O+=1;P=!P}A=x.charCodeAt(O+1);if(P&&A!==i&&A!==s&&A!==o&&A!==l&&A!==u&&A!==a){O+=1;if(b.test(x.charAt(O))){while(b.test(x.charAt(O+1))){O+=1}if(x.charCodeAt(O+1)===s){O+=1}}}G=["word",x.slice(T,O+1),T,O];T=O;break}default:{if(A===i&&x.charCodeAt(T+1)===w){O=x.indexOf("*/",T+2)+1;if(O===0){if(k||M){O=x.length}else{unclosed("comment")}}G=["comment",x.slice(T,O+1),T,O];T=O}else{C.lastIndex=T+1;C.test(x);if(C.lastIndex===0){O=x.length-1}else{O=C.lastIndex-2}G=["word",x.slice(T,O+1),T,O];U.push(G);T=O}break}}T++;return G}function back(e){j.push(e)}return{back:back,nextToken:nextToken,endOfFile:endOfFile,position:position}}},840:function(e,t,r){var n=r(524);var i=Object.prototype.hasOwnProperty;var o=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=o?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var r=new ArraySet;for(var n=0,i=e.length;n<i;n++){r.add(e[n],t)}return r};ArraySet.prototype.size=function ArraySet_size(){return o?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(e,t){var r=o?e:n.toSetString(e);var s=o?this.has(e):i.call(this._set,r);var a=this._array.length;if(!s||t){this._array.push(e)}if(!s){if(o){this._set.set(e,a)}else{this._set[r]=a}}};ArraySet.prototype.has=function ArraySet_has(e){if(o){return this._set.has(e)}else{var t=n.toSetString(e);return i.call(this._set,t)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(e){if(o){var t=this._set.get(e);if(t>=0){return t}}else{var r=n.toSetString(e);if(i.call(this._set,r)){return this._set[r]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};t.I=ArraySet},858:function(e,t,r){var n=r(52);var i=5;var o=1<<i;var s=o-1;var a=o;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var t=(e&1)===1;var r=e>>1;return t?-r:r}t.encode=function base64VLQ_encode(e){var t="";var r;var o=toVLQSigned(e);do{r=o&s;o>>>=i;if(o>0){r|=a}t+=n.encode(r)}while(o>0);return t};t.decode=function base64VLQ_decode(e,t,r){var o=e.length;var l=0;var u=0;var c,f;do{if(t>=o){throw new Error("Expected more digits in base 64 VLQ value.")}f=n.decode(e.charCodeAt(t++));if(f===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}c=!!(f&a);f&=s;l=l+(f<<u);u+=i}while(c);r.value=fromVLQSigned(l);r.rest=t}},52:function(e,t){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length){return r[e]}throw new TypeError("Must be between 0 and 63: "+e)};t.decode=function(e){var t=65;var r=90;var n=97;var i=122;var o=48;var s=57;var a=43;var l=47;var u=26;var c=52;if(t<=e&&e<=r){return e-t}if(n<=e&&e<=i){return e-n+u}if(o<=e&&e<=s){return e-o+c}if(e==a){return 62}if(e==l){return 63}return-1}},673:function(e,t){t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,r,n,i,o,s){var a=Math.floor((r-e)/2)+e;var l=o(n,i[a],true);if(l===0){return a}else if(l>0){if(r-a>1){return recursiveSearch(a,r,n,i,o,s)}if(s==t.LEAST_UPPER_BOUND){return r<i.length?r:-1}else{return a}}else{if(a-e>1){return recursiveSearch(e,a,n,i,o,s)}if(s==t.LEAST_UPPER_BOUND){return a}else{return e<0?-1:e}}}t.search=function search(e,r,n,i){if(r.length===0){return-1}var o=recursiveSearch(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(o<0){return-1}while(o-1>=0){if(n(r[o],r[o-1],true)!==0){break}--o}return o}},767:function(e,t,r){var n=r(524);function generatedPositionAfter(e,t){var r=e.generatedLine;var i=t.generatedLine;var o=e.generatedColumn;var s=t.generatedColumn;return i>r||i==r&&s>=o||n.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(n.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},485:function(e,t){function SortTemplate(e){function swap(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,r,n){if(r<n){var i=randomIntInRange(r,n);var o=r-1;swap(e,i,n);var s=e[n];for(var a=r;a<n;a++){if(t(e[a],s,false)<=0){o+=1;swap(e,o,a)}}swap(e,o+1,a);var l=o+1;doQuickSort(e,t,r,l-1);doQuickSort(e,t,l+1,n)}}return doQuickSort}function cloneSort(e){let t=SortTemplate.toString();let r=new Function(`return ${t}`)();return r(e)}let r=new WeakMap;t.U=function(e,t,n=0){let i=r.get(t);if(i===void 0){i=cloneSort(t);r.set(t,i)}i(e,t,n,e.length-1)}},635:function(e,t,r){var n;var i=r(524);var o=r(673);var s=r(840).I;var a=r(858);var l=r(485).U;function SourceMapConsumer(e,t){var r=e;if(typeof e==="string"){r=i.parseSourceMapInput(e)}return r.sections!=null?new IndexedSourceMapConsumer(r,t):new BasicSourceMapConsumer(r,t)}SourceMapConsumer.fromSourceMap=function(e,t){return BasicSourceMapConsumer.fromSourceMap(e,t)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,t){var r=e.charAt(t);return r===";"||r===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,t,r){var n=t||null;var o=r||SourceMapConsumer.GENERATED_ORDER;var s;switch(o){case SourceMapConsumer.GENERATED_ORDER:s=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;var l=e.bind(n);var u=this._names;var c=this._sources;var f=this._sourc