UNPKG

aliascss

Version:

AliasCSS is a CSS post processor.

1 lines 211 kB
(()=>{var e={633:e=>{var r=String,t=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};e.exports=t(),e.exports.createColors=t},396:(e,r,t)=>{"use strict";let a=t(793);class i extends a{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,a.registerAtRule(i)},371:(e,r,t)=>{"use strict";let a=t(152);class i extends a{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},793:(e,r,t)=>{"use strict";let a,i,s,o,n=t(371),l=t(238),c=t(152),{isClean:p,my:d}=t(151);function u(e){return e.map((e=>(e.nodes&&(e.nodes=u(e.nodes)),delete e.source,e)))}function g(e){if(e[p]=!1,e.proxyOf.nodes)for(let r of e.proxyOf.nodes)g(r)}class h extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let e=this.normalize(r,this.last);for(let r of e)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r,t,a=this.getIterator();for(;this.indexes[a]<this.proxyOf.nodes.length&&(r=this.indexes[a],t=e(this.proxyOf.nodes[r],r),!1!==t);)this.indexes[a]+=1;return delete this.indexes[a],t}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,r)=>"proxyOf"===r?e:e[r]?"each"===r||"string"==typeof r&&r.startsWith("walk")?(...t)=>e[r](...t.map((e=>"function"==typeof e?(r,t)=>e(r.toProxy(),t):e))):"every"===r||"some"===r?t=>e[r](((e,...r)=>t(e.toProxy(),...r))):"root"===r?()=>e.root().toProxy():"nodes"===r?e.nodes.map((e=>e.toProxy())):"first"===r||"last"===r?e[r].toProxy():e[r]:e[r],set:(e,r,t)=>(e[r]===t||(e[r]=t,"name"!==r&&"params"!==r&&"selector"!==r||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let t,a=this.index(e),i=this.normalize(r,this.proxyOf.nodes[a]).reverse();a=this.index(e);for(let e of i)this.proxyOf.nodes.splice(a+1,0,e);for(let e in this.indexes)t=this.indexes[e],a<t&&(this.indexes[e]=t+i.length);return this.markDirty(),this}insertBefore(e,r){let t,a=this.index(e),i=0===a&&"prepend",s=this.normalize(r,this.proxyOf.nodes[a],i).reverse();a=this.index(e);for(let e of s)this.proxyOf.nodes.splice(a,0,e);for(let e in this.indexes)t=this.indexes[e],a<=t&&(this.indexes[e]=t+s.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=u(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new o(e)];else if(e.name)e=[new a(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new n(e)]}return e.map((e=>(e[d]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[p]&&g(e),e.raws||(e.raws={}),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let r of e){let e=this.normalize(r,this.first,"prepend").reverse();for(let r of e)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let r;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let t in this.indexes)r=this.indexes[t],r>=e&&(this.indexes[t]=r-1);return this.markDirty(),this}replaceValues(e,r,t){return t||(t=r,r={}),this.walkDecls((a=>{r.props&&!r.props.includes(a.prop)||r.fast&&!a.value.includes(r.fast)||(a.value=a.value.replace(e,t))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((r,t)=>{let a;try{a=e(r,t)}catch(e){throw r.addToError(e)}return!1!==a&&r.walk&&(a=r.walk(e)),a}))}walkAtRules(e,r){return r?e instanceof RegExp?this.walk(((t,a)=>{if("atrule"===t.type&&e.test(t.name))return r(t,a)})):this.walk(((t,a)=>{if("atrule"===t.type&&t.name===e)return r(t,a)})):(r=e,this.walk(((e,t)=>{if("atrule"===e.type)return r(e,t)})))}walkComments(e){return this.walk(((r,t)=>{if("comment"===r.type)return e(r,t)}))}walkDecls(e,r){return r?e instanceof RegExp?this.walk(((t,a)=>{if("decl"===t.type&&e.test(t.prop))return r(t,a)})):this.walk(((t,a)=>{if("decl"===t.type&&t.prop===e)return r(t,a)})):(r=e,this.walk(((e,t)=>{if("decl"===e.type)return r(e,t)})))}walkRules(e,r){return r?e instanceof RegExp?this.walk(((t,a)=>{if("rule"===t.type&&e.test(t.selector))return r(t,a)})):this.walk(((t,a)=>{if("rule"===t.type&&t.selector===e)return r(t,a)})):(r=e,this.walk(((e,t)=>{if("rule"===e.type)return r(e,t)})))}}h.registerParse=e=>{i=e},h.registerRule=e=>{o=e},h.registerAtRule=e=>{a=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,n.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[d]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},614:(e,r,t)=>{"use strict";let a=t(633),i=t(746);class s extends Error{constructor(e,r,t,a,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),a&&(this.source=a),o&&(this.plugin=o),void 0!==r&&void 0!==t&&("number"==typeof r?(this.line=r,this.column=t):(this.line=r.line,this.column=r.column,this.endLine=t.line,this.endColumn=t.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;null==e&&(e=a.isColorSupported);let t=e=>e,s=e=>e,o=e=>e;if(e){let{bold:e,gray:r,red:n}=a.createColors(!0);s=r=>e(n(r)),t=e=>r(e),i&&(o=e=>i(e))}let n=r.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,n.length),p=String(c).length;return n.slice(l,c).map(((e,r)=>{let a=l+1+r,i=" "+(" "+a).slice(-p)+" | ";if(a===this.line){if(e.length>160){let r=20,a=Math.max(0,this.column-r),n=Math.max(this.column+r,this.endColumn+r),l=e.slice(a,n),c=t(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,r-1)).replace(/[^\t]/g," ");return s(">")+t(i)+o(l)+"\n "+c+s("^")}let r=t(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+t(i)+o(e)+"\n "+r+s("^")}return" "+t(i)+o(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=s,s.default=s},238:(e,r,t)=>{"use strict";let a=t(152);class i extends a{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}e.exports=i,i.default=i},145:(e,r,t)=>{"use strict";let a,i,s=t(793);class o extends s{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new a(new i,this,e).stringify()}}o.registerLazyResult=e=>{a=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},438:(e,r,t)=>{"use strict";let a=t(396),i=t(371),s=t(238),o=t(106),n=t(878),l=t(644),c=t(534);function p(e,r){if(Array.isArray(e))return e.map((e=>p(e)));let{inputs:t,...d}=e;if(t){r=[];for(let e of t){let t={...e,__proto__:o.prototype};t.map&&(t.map={...t.map,__proto__:n.prototype}),r.push(t)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>p(e,r)))),d.source){let{inputId:e,...t}=d.source;d.source=t,null!=e&&(d.source.input=r[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new s(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new i(d);if("atrule"===d.type)return new a(d);throw new Error("Unknown node type: "+e.type)}e.exports=p,p.default=p},106:(e,r,t)=>{"use strict";let{nanoid:a}=t(42),{isAbsolute:i,resolve:s}=t(197),{SourceMapConsumer:o,SourceMapGenerator:n}=t(866),{fileURLToPath:l,pathToFileURL:c}=t(739),p=t(614),d=t(878),u=t(746),g=Symbol("fromOffsetCache"),h=Boolean(o&&n),m=Boolean(s&&i);class b{get from(){return this.file||this.id}constructor(e,r={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!m||/^\w+:\/\//.test(r.from)||i(r.from)?this.file=r.from:this.file=s(r.from)),m&&h){let e=new d(this.css,r);if(e.text){this.map=e;let r=e.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,t,a={}){let i,s,o;if(r&&"object"==typeof r){let e=r,a=t;if("number"==typeof e.offset){let a=this.fromOffset(e.offset);r=a.line,t=a.col}else r=e.line,t=e.column;if("number"==typeof a.offset){let e=this.fromOffset(a.offset);s=e.line,i=e.col}else s=a.line,i=a.column}else if(!t){let e=this.fromOffset(r);r=e.line,t=e.col}let n=this.origin(r,t,s,i);return o=n?new p(e,void 0===n.endLine?n.line:{column:n.column,line:n.line},void 0===n.endLine?n.column:{column:n.endColumn,line:n.endLine},n.source,n.file,a.plugin):new p(e,void 0===s?r:{column:t,line:r},void 0===s?t:{column:i,line:s},this.css,this.file,a.plugin),o.input={column:t,endColumn:i,endLine:s,line:r,source:this.css},this.file&&(c&&(o.input.url=c(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let r,t;if(this[g])t=this[g];else{let e=this.css.split("\n");t=new Array(e.length);let r=0;for(let a=0,i=e.length;a<i;a++)t[a]=r,r+=e[a].length+1;this[g]=t}r=t[t.length-1];let a=0;if(e>=r)a=t.length-1;else{let r,i=t.length-2;for(;a<i;)if(r=a+(i-a>>1),e<t[r])i=r-1;else{if(!(e>=t[r+1])){a=r;break}a=r+1}}return{col:e-t[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,t,a){if(!this.map)return!1;let s,o,n=this.map.consumer(),p=n.originalPositionFor({column:r,line:e});if(!p.source)return!1;"number"==typeof t&&(s=n.originalPositionFor({column:a,line:t})),o=i(p.source)?c(p.source):new URL(p.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:p.column,endColumn:s&&s.column,endLine:s&&s.line,line:p.line,url:o.toString()};if("file:"===o.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(o)}let u=n.sourceContentFor(p.source);return u&&(d.source=u),d}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])null!=this[r]&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=b,b.default=b,u&&u.registerInput&&u.registerInput(b)},966:(e,r,t)=>{"use strict";let a=t(793),i=t(145),s=t(604),o=t(577),n=t(717),l=t(644),c=t(303),{isClean:p,my:d}=t(151);t(156);const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},g={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function b(e){return"object"==typeof e&&"function"==typeof e.then}function f(e){let r=!1,t=u[e.type];return"decl"===e.type?r=e.prop.toLowerCase():"atrule"===e.type&&(r=e.name.toLowerCase()),r&&e.append?[t,t+"-"+r,m,t+"Exit",t+"Exit-"+r]:r?[t,t+"-"+r,t+"Exit",t+"Exit-"+r]:e.append?[t,m,t+"Exit"]:[t,t+"Exit"]}function v(e){let r;return r="document"===e.type?["Document",m,"DocumentExit"]:"root"===e.type?["Root",m,"RootExit"]:f(e),{eventIndex:0,events:r,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[p]=!1,e.nodes&&e.nodes.forEach((e=>y(e))),e}let x={};class w{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,t){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof w||r instanceof n)i=y(r.root),r.map&&(void 0===t.map&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=r.map);else{let e=o;t.syntax&&(e=t.syntax.parse),t.parser&&(e=t.parser),e.parse&&(e=e.parse);try{i=e(r,t)}catch(e){this.processed=!0,this.error=e}i&&!i[d]&&a.rebuild(i)}else i=y(r);this.result=new n(e,i,t),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let t=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?t.postcssVersion:(e.plugin=t.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,r,t)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([e,t])};for(let r of this.plugins)if("object"==typeof r)for(let t in r){if(!g[t]&&/^[A-Z]/.test(t))throw new Error(`Unknown event ${t} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[t])if("object"==typeof r[t])for(let a in r[t])e(r,"*"===a?t:t+"-"+a.toLowerCase(),r[t][a]);else"function"==typeof r[t]&&e(r,t,r[t])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],t=this.runOnRoot(r);if(b(t))try{await t}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[p];){e[p]=!0;let r=[v(e)];for(;r.length>0;){let e=this.visitTick(r);if(b(e))try{await e}catch(e){let t=r[r.length-1].node;throw this.handleError(e,t)}}}if(this.listeners.OnceExit)for(let[r,t]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let r=e.nodes.map((e=>t(e,this.helpers)));await Promise.all(r)}else await t(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let r=this.result.root.nodes.map((r=>e.Once(r,this.helpers)));return b(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=c;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let t=new s(r,this.result.root,this.result.opts).generate();return this.result.css=t[0],this.result.map=t[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(b(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[p];)e[p]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[t,a]of e){let e;this.result.lastPlugin=t;try{e=a(r,this.helpers)}catch(e){throw this.handleError(e,r.proxyOf)}if("root"!==r.type&&"document"!==r.type&&!r.parent)return!0;if(b(e))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:t,visitors:a}=r;if("root"!==t.type&&"document"!==t.type&&!t.parent)return void e.pop();if(a.length>0&&r.visitorIndex<a.length){let[e,i]=a[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===a.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=e;try{return i(t.toProxy(),this.helpers)}catch(e){throw this.handleError(e,t)}}if(0!==r.iterator){let a,i=r.iterator;for(;a=t.nodes[t.indexes[i]];)if(t.indexes[i]+=1,!a[p])return a[p]=!0,void e.push(v(a));r.iterator=0,delete t.indexes[i]}let i=r.events;for(;r.eventIndex<i.length;){let e=i[r.eventIndex];if(r.eventIndex+=1,e===m)return void(t.nodes&&t.nodes.length&&(t[p]=!0,r.iterator=t.getIterator()));if(this.listeners[e])return void(r.visitors=this.listeners[e])}e.pop()}walkSync(e){e[p]=!0;let r=f(e);for(let t of r)if(t===m)e.nodes&&e.each((e=>{e[p]||this.walkSync(e)}));else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}}w.registerPostcss=e=>{x=e},e.exports=w,w.default=w,l.registerLazyResult(w),i.registerLazyResult(w)},752:e=>{"use strict";let r={comma:e=>r.split(e,[","],!0),space:e=>r.split(e,[" ","\n","\t"]),split(e,r,t){let a=[],i="",s=!1,o=0,n=!1,l="",c=!1;for(let t of e)c?c=!1:"\\"===t?c=!0:n?t===l&&(n=!1):'"'===t||"'"===t?(n=!0,l=t):"("===t?o+=1:")"===t?o>0&&(o-=1):0===o&&r.includes(t)&&(s=!0),s?(""!==i&&a.push(i.trim()),i="",s=!1):i+=t;return(t||""!==i)&&a.push(i.trim()),a}};e.exports=r,r.default=r},604:(e,r,t)=>{"use strict";let{dirname:a,relative:i,resolve:s,sep:o}=t(197),{SourceMapConsumer:n,SourceMapGenerator:l}=t(866),{pathToFileURL:c}=t(739),p=t(106),d=Boolean(n&&l),u=Boolean(a&&s&&i&&o);e.exports=class{constructor(e,r,t,a){this.stringify=e,this.mapOpts=t.map||{},this.root=r,this.opts=t,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r,t=this.toUrl(this.path(e.file)),i=e.root||a(e.file);!1===this.mapOpts.sourcesContent?(r=new n(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(r=>{e+=r})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let e,r,t=1,a=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((o,n,l)=>{if(this.css+=o,n&&"end"!==l&&(s.generated.line=t,s.generated.column=a-1,n.source&&n.source.start?(s.source=this.sourcePath(n),s.original.line=n.source.start.line,s.original.column=n.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),r=o.match(/\n/g),r?(t+=r.length,e=o.lastIndexOf("\n"),a=o.length-e):a+=o.length,n&&"start"!==l){let e=n.parent||{raws:{}};("decl"===n.type||"atrule"===n.type&&!n.nodes)&&n===e.last&&!e.raws.semicolon||(n.source&&n.source.end?(s.source=this.sourcePath(n),s.original.line=n.source.end.line,s.original.column=n.source.end.column-1,s.generated.line=t,s.generated.column=a-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=t,s.generated.column=a-1,this.map.addMapping(s)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let t=this.opts.to?a(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(t=a(s(t,this.mapOpts.annotation)));let o=i(t,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}}));else{let e=new p(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((r=>{if(r.source){let t=r.source.input.from;if(t&&!e[t]){e[t]=!0;let a=this.usesFileUrls?this.toFileUrl(t):this.toUrl(this.path(t));this.map.setSourceContent(a,r.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(c){let r=c(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;"\\"===o&&(e=e.replace(/\\/g,"/"));let t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}},211:(e,r,t)=>{"use strict";let a=t(604),i=t(577);const s=t(717);let o=t(303);t(156);class n{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=i;try{e=r(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,t){let i;r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=t,this._map=void 0;let n=o;this.result=new s(this._processor,i,this._opts),this.result.css=r;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new a(n,i,this._opts,r);if(c.isMap()){let[e,r]=c.generate();e&&(this.result.css=e),r&&(this.result.map=r)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return this.async().then(e,r)}toString(){return this._css}warnings(){return[]}}e.exports=n,n.default=n},152:(e,r,t)=>{"use strict";let a=t(614),i=t(668),s=t(303),{isClean:o,my:n}=t(151);function l(e,r){let t=new e.constructor;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;if("proxyCache"===a)continue;let i=e[a],s=typeof i;"parent"===a&&"object"===s?r&&(t[a]=r):"source"===a?t[a]=i:Array.isArray(i)?t[a]=i.map((e=>l(e,t))):("object"===s&&null!==i&&(i=l(i)),t[a]=i)}return t}function c(e,r){if(r&&void 0!==r.offset)return r.offset;let t=1,a=1,i=0;for(let s=0;s<e.length;s++){if(a===r.line&&t===r.column){i=s;break}"\n"===e[s]?(t=1,a+=1):t+=1}return i}class p{get proxyOf(){return this}constructor(e={}){this.raws={},this[o]=!1,this[n]=!0;for(let r in e)if("nodes"===r){this.nodes=[];for(let t of e[r])"function"==typeof t.clone?this.append(t.clone()):this.append(t)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=l(this);for(let t in e)r[t]=e[t];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:t,start:a}=this.rangeBy(r);return this.source.input.error(e,{column:a.column,line:a.line},{column:t.column,line:t.line},r)}return new a(e)}getProxyProcessor(){return{get:(e,r)=>"proxyOf"===r?e:"root"===r?()=>e.root().toProxy():e[r],set:(e,r,t)=>(e[r]===t||(e[r]=t,"prop"!==r&&"value"!==r&&"name"!==r&&"params"!==r&&"important"!==r&&"text"!==r||e.markDirty()),!0)}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let t="document"in this.source.input?this.source.input.document:this.source.input.css,a=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);-1!==a&&(r=this.positionInside(a))}return r}positionInside(e){let r=this.source.start.column,t=this.source.start.line,a="document"in this.source.input?this.source.input.document:this.source.input.css,i=c(a,this.source.start),s=i+e;for(let e=i;e<s;e++)"\n"===a[e]?(r=1,t+=1):r+=1;return{column:r,line:t}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let r={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){let a="document"in this.source.input?this.source.input.document:this.source.input.css,i=a.slice(c(a,this.source.start),c(a,this.source.end)).indexOf(e.word);-1!==i&&(r=this.positionInside(i),t=this.positionInside(i+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?t={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?t=this.positionInside(e.endIndex):e.index&&(t=this.positionInside(e.index+1));return(t.line<r.line||t.line===r.line&&t.column<=r.column)&&(t={column:r.column+1,line:r.line}),{end:t,start:r}}raw(e,r){return(new i).raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,t=!1;for(let a of e)a===this?t=!0:t?(this.parent.insertAfter(r,a),r=a):this.parent.insertBefore(r,a);t||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,r){let t={},a=null==r;r=r||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let a=this[e];if(Array.isArray(a))t[e]=a.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,r):e));else if("object"==typeof a&&a.toJSON)t[e]=a.toJSON(null,r);else if("source"===e){let s=r.get(a.input);null==s&&(s=i,r.set(a.input,i),i++),t[e]={end:a.end,inputId:s,start:a.start}}else t[e]=a}return a&&(t.inputs=[...r.keys()].map((e=>e.toJSON()))),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let r="";return e(this,(e=>{r+=e})),r}warn(e,r,t){let a={node:this};for(let e in t)a[e]=t[e];return e.warn(r,a)}}e.exports=p,p.default=p},577:(e,r,t)=>{"use strict";let a=t(793),i=t(106),s=t(339);function o(e,r){let t=new i(e,r),a=new s(t);try{a.parse()}catch(e){throw e}return a.root}e.exports=o,o.default=o,a.registerParse(o)},339:(e,r,t)=>{"use strict";let a=t(396),i=t(371),s=t(238),o=t(644),n=t(534),l=t(781);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r,t,i,s=new a;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let o=!1,n=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(r=(e=this.tokenizer.nextToken())[0],"("===r||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length){if(";"===r){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===r){n=!0;break}if("}"===r){if(l.length>0){for(i=l.length-1,t=l[i];t&&"space"===t[0];)t=l[--i];t&&(s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(s.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(s,"params",l),o&&(e=l[l.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),n&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let r=this.colon(e);if(!1===r)return;let t,a=0;for(let i=r-1;i>=0&&(t=e[i],"space"===t[0]||(a+=1,2!==a));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let r,t,a,i=0;for(let[s,o]of e.entries()){if(t=o,a=t[0],"("===a&&(i+=1),")"===a&&(i-=1),0===i&&":"===a){if(r){if("word"===r[0]&&"progid"===r[1])continue;return s}this.doubleColon(t)}r=t}return!1}comment(e){let r=new i;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let t=e[1].slice(2,-2);if(/^\s*$/.test(t))r.text="",r.raws.left=t,r.raws.right="";else{let e=t.match(/^(\s*)([^]*\S)(\s*)$/);r.text=e[2],r.raws.left=e[1],r.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,r){let t=new s;this.init(t,e[0][2]);let a,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),t.source.end=this.getPosition(i[3]||i[2]||function(e){for(let r=e.length-1;r>=0;r--){let t=e[r],a=t[3]||t[2];if(a)return a}}(e)),t.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start=this.getPosition(e[0][2]),t.prop="";e.length;){let r=e[0][0];if(":"===r||"space"===r||"comment"===r)break;t.prop+=e.shift()[1]}for(t.raws.between="";e.length;){if(a=e.shift(),":"===a[0]){t.raws.between+=a[1];break}"word"===a[0]&&/\w/.test(a[1])&&this.unknownWord([a]),t.raws.between+=a[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1));let o,n=[];for(;e.length&&(o=e[0][0],"space"===o||"comment"===o);)n.push(e.shift());this.precheckMissedSemicolon(e);for(let r=e.length-1;r>=0;r--){if(a=e[r],"!important"===a[1].toLowerCase()){t.important=!0;let a=this.stringFrom(e,r);a=this.spacesFromEnd(e)+a," !important"!==a&&(t.raws.important=a);break}if("important"===a[1].toLowerCase()){let a=e.slice(0),i="";for(let e=r;e>0;e--){let r=a[e][0];if(i.trim().startsWith("!")&&"space"!==r)break;i=a.pop()[1]+i}i.trim().startsWith("!")&&(t.important=!0,t.raws.important=i,e=a)}if("space"!==a[0]&&"comment"!==a[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(t.raws.between+=n.map((e=>e[1])).join(""),n=[]),this.raw(t,"value",n.concat(e),r),t.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new n;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&"rule"===r.type&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let r=!1,t=null,a=!1,i=null,s=[],o=e[1].startsWith("--"),n=[],l=e;for(;l;){if(t=l[0],n.push(l),"("===t||"["===t)i||(i=l),s.push("("===t?")":"]");else if(o&&a&&"{"===t)i||(i=l),s.push("}");else if(0===s.length){if(";"===t){if(a)return void this.decl(n,o);break}if("{"===t)return void this.rule(n);if("}"===t){this.tokenizer.back(n.pop()),r=!0;break}":"===t&&(a=!0)}else t===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),s.length>0&&this.unclosedBracket(i),r&&a){if(!o)for(;n.length&&(l=n[n.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(n.pop());this.decl(n,o)}else this.unknownWord(n)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),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)}this.endFile()}precheckMissedSemicolon(){}raw(e,r,t,a){let i,s,o,n,l=t.length,p="",d=!0;for(let e=0;e<l;e+=1)i=t[e],s=i[0],"space"!==s||e!==l-1||a?"comment"===s?(n=t[e-1]?t[e-1][0]:"empty",o=t[e+1]?t[e+1][0]:"empty",c[n]||c[o]||","===p.slice(-1)?d=!1:p+=i[1]):p+=i[1]:d=!1;if(!d){let a=t.reduce(((e,r)=>e+r[1]),"");e.raws[r]={raw:a,value:p}}e[r]=p}rule(e){e.pop();let r=new n;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,t="";for(;e.length&&(r=e[e.length-1][0],"space"===r||"comment"===r);)t=e.pop()[1]+t;return t}spacesAndCommentsFromStart(e){let r,t="";for(;e.length&&(r=e[0][0],"space"===r||"comment"===r);)t+=e.shift()[1];return t}spacesFromEnd(e){let r,t="";for(;e.length&&(r=e[e.length-1][0],"space"===r);)t=e.pop()[1]+t;return t}stringFrom(e,r){let t="";for(let a=r;a<e.length;a++)t+=e[a][1];return e.splice(r,e.length-r),t}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}}},895:(e,r,t)=>{"use strict";let a=t(396),i=t(371),s=t(793),o=t(614),n=t(238),l=t(145),c=t(438),p=t(106),d=t(966),u=t(752),g=t(152),h=t(577),m=t(846),b=t(717),f=t(644),v=t(534),y=t(303),x=t(38);function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new m(e)}w.plugin=function(e,r){let t,a=!1;function i(...t){console&&console.warn&&!a&&(a=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=r(...t);return i.postcssPlugin=e,i.postcssVersion=(new m).version,i}return Object.defineProperty(i,"postcss",{get:()=>(t||(t=i()),t)}),i.process=function(e,r,t){return w([i(t)]).process(e,r)},i},w.stringify=y,w.parse=h,w.fromJSON=c,w.list=u,w.comment=e=>new i(e),w.atRule=e=>new a(e),w.decl=e=>new n(e),w.rule=e=>new v(e),w.root=e=>new f(e),w.document=e=>new l(e),w.CssSyntaxError=o,w.Declaration=n,w.Container=s,w.Processor=m,w.Document=l,w.Comment=i,w.Warning=x,w.AtRule=a,w.Result=b,w.Input=p,w.Rule=v,w.Root=f,w.Node=g,d.registerPostcss(w),e.exports=w,w.default=w},878:(e,r,t)=>{"use strict";let{existsSync:a,readFileSync:i}=t(977),{dirname:s,join:o}=t(197),{SourceMapConsumer:n,SourceMapGenerator:l}=t(866);class c{constructor(e,r){if(!1===r.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let t=r.map?r.map.prev:void 0,a=this.loadMap(r.from,t);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}decodeInline(e){let r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let t=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(t)return a=e.substr(t[0].length),Buffer?Buffer.from(a,"base64").toString():window.atob(a);var a;let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let t=e.lastIndexOf(r.pop()),a=e.indexOf("*/",t);t>-1&&a>-1&&(this.annotation=this.getAnnotationURL(e.substring(t,a)))}loadFile(e){if(this.root=s(e),a(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,r){if(!1===r)return!1;if(r){if("string"==typeof r)return r;if("function"!=typeof r){if(r instanceof n)return l.fromSourceMap(r).toString();if(r instanceof l)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}{let t=r(e);if(t){let e=this.loadFile(t);if(!e)throw new Error("Unable to load previous source map: "+t.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=o(s(e),r)),this.loadFile(r)}}}startWith(e,r){return!!e&&e.substr(0,r.length)===r}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},846:(e,r,t)=>{"use strict";let a=t(145),i=t(966),s=t(211),o=t(644);class n{constructor(e=[]){this.version="8.5.3",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let t of e)if(!0===t.postcss?t=t():t.postcss&&(t=t.postcss),"object"==typeof t&&Array.isArray(t.plugins))r=r.concat(t.plugins);else if("object"==typeof t&&t.postcssPlugin)r.push(t);else if("function"==typeof t)r.push(t);else if("object"!=typeof t||!t.parse&&!t.stringify)throw new Error(t+" is not a PostCSS plugin");return r}process(e,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new i(this,e,r):new s(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=n,n.default=n,o.registerProcessor(n),a.registerProcessor(n)},717:(e,r,t)=>{"use strict";let a=t(38);class i{get content(){return this.css}constructor(e,r,t){this.processor=e,this.messages=[],this.root=r,this.opts=t,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let t=new a(e,r);return this.messages.push(t),t}warnings(){return this.messages.filter((e=>"warning"===e.type))}}e.exports=i,i.default=i},644:(e,r,t)=>{"use strict";let a,i,s=t(793);class o extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,t){let a=super.normalize(e);if(r)if("prepend"===t)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let e of a)e.raws.before=r.raws.before;return a}removeChild(e,r){let t=this.index(e);return!r&&0===t&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[t].raws.before),super.removeChild(e)}toResult(e={}){return new a(new i,this,e).stringify()}}o.registerLazyResult=e=>{a=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o,s.registerRoot(o)},534:(e,r,t)=>{"use strict";let a=t(793),i=t(752);class s extends a{get selectors(){return i.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,t=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=s,s.default=s,a.registerRule(s)},668:e=>{"use strict";const r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,r){let t="@"+e.name,a=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?t+=e.raws.afterName:a&&(t+=" "),e.nodes)this.block(e,t+a);else{let i=(e.raws.between||"")+(r?";":"");this.builder(t+a+i,e)}}beforeAfter(e,r){let t;t="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===r?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let a=e.parent,i=0;for(;a&&"root"!==a.type;)i+=1,a=a.parent;if(t.includes("\n")){let r=this.raw(e,null,"indent");if(r.length)for(let e=0;e<i;e++)t+=r}return t}block(e,r){let t,a=this.raw(e,"between","beforeOpen");this.builder(r+a+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),t=this.raw(e,"after")):t=this.raw(e,"after","emptyBody"),t&&this.builder(t),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&"comment"===e.nodes[r].type;)r-=1;let t=this.raw(e,"semicolon");for(let a=0;a<e.nodes.length;a++){let i=e.nodes[a],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,r!==a||t)}}comment(e){let r=this.raw(e,"left","commentLeft"),t=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+t+"*/",e)}decl(e,r){let t=this.raw(e,"between","colon"),a=e.prop+t+this.rawValue(e,"value");e.important&&(a+=e.raws.important||" !important"),r&&(a+=";"),this.builder(a,e)}document(e){this.body(e)}raw(e,t,a){let i;if(a||(a=t),t&&(i=e.raws[t],void 0!==i))return i;let s=e.parent;if("before"===a){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return r[a];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[a])return o.rawCache[a];if("before"===a||"after"===a)return this.beforeAfter(e,a);{let r="raw"+((n=a)[0].toUpperCase()+n.slice(1));this[r]?i=this[r](o,e):o.walk((e=>{if(i=e.raws[t],void 0!==i)return!1}))}var n;return void 0===i&&(i=r[a]),o.rawCache[a]=i,i}rawBeforeClose(e){let r;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return r=e.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let t;return e.walkComments((e=>{if(void 0!==e.raws.before)return t=e.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),void 0===t?t=this.raw(r,null,"beforeDecl"):t&&(t=t.replace(/\S/g,"")),t}rawBeforeDecl(e,r){let t;return e.walkDecls((e=>{if(void 0!==e.raws.before)return t=e.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),void 0===t?t=this.raw(r,null,"beforeRule"):t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let r;return e.walk((e=>{if("decl"!==e.type&&(r=e.raws.between,void 0!==r))return!1})),r}rawBeforeRule(e){let r;return e.walk((t=>{if(t.nodes&&(t.parent!==e||e.first!==t)&&void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls((e=>{if(void 0!==e.raws.between)return r=e.raws.between.replace(/[^\s:]/g,""),!1})),r}rawEmptyBody(e){let r;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(r=e.raws.after,void 0!==r))return!1})),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk((t=>{let a=t.parent;if(a&&a!==e&&a.parent&&a.parent===e&&void 0!==t.raws.before){let e=t.raws.before.split("\n");return r=e[e.length-1],r=r.replace(/\S/g,""),!1}})),r}rawSemicolon(e){let r;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(r=e.raws.semicolon,void 0!==r))return!1})),r}rawValue(e,r){let t=e[r],a=e.raws[r];return a&&a.value===t?a.raw:t}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}}e.exports=t,t.default=t},303:(e,r,t)=>{"use strict";let a=t(668);function i(e,r){new a(r).stringify(e)}e.exports=i,i.default=i},151:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},781:e=>{"use strict";const r="'".charCodeAt(0),t='"'.charCodeAt(0),a="\\".charCodeAt(0),i="/".charCodeAt(0),s="\n".charCodeAt(0),o=" ".charCodeAt(0),n="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),p="[".charCodeAt(0),d="]".charCodeAt(0),u="(".charCodeAt(0),g=")".charCodeAt(0),h="{".charCodeAt(0),m="}".charCodeAt(0),b=";".charCodeAt(0),f="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),x=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,k=/.[\r\n"'(/\\]/,F=/[\da-f]/i;e.exports=function(e,E={}){let C,D,$,A,B,z,j,O,S,M,_=e.css.valueOf(),L=E.ignoreErrors,P=_.length,I=0,R=[],T=[];function N(r){throw e.error("Unclosed "+r,I)}return{back:function(e){T.push(e)},endOfFile:function(){return 0===T.length&&I>=P},nextToken:function(e){if(T.length)return T.pop();if(I>=P)return;let E=!!e&&e.ignoreUnclosed;switch(C=_.charCodeAt(I),C){case s:case o:case l:case c:case n:A=I;do{A+=1,C=_.charCodeAt(A)}while(C===o||C===s||C===l||C===c||C===n);z=["space",_.slice(I,A)],I=A-1;break;case p:case d:case h:case m:case v:case b:case g:{let e=String.fromCharCode(C);z=[e,e,I];break}case u:if(M=R.length?R.pop()[1]:"",S=_.charCodeAt(I+1),"url"===M&&S!==r&&S!==t&&S!==o&&S!==s&&S!==l&&S!==n&&S!==c){A=I;do{if(j=!1,A=_.indexOf(")",A+1),-1===A){if(L||E){A=I;break}N("bracket")}for(O=A;_.charCodeAt(O-1)===a;)O-=1,j=!j}while(j);z=["brackets",_.slice(I,A+1),I,A],I=A}else A=_.indexOf(")",I+1),D=_.slice(I,A+1),-1===A||k.test(D)?z=["(","(",I]:(z=["brackets",D,I,A],I=A);break;case r:case t:B=C===r?"'":'"',A=I;do{if(j=!1,A=_.indexOf(B,A+1),-1===A){if(L||E){A=I+1;break}N("string")}for(O=A;_.charCodeAt(O-1)===a;)O-=1,j=!j}while(j);z=["string",_.slice(I,A+1),I,A],I=A;break;case y:x.lastIndex=I+1,x.test(_),A=0===x.lastIndex?_.length-1:x.lastIndex-2,z=["at-word",_.slice(I,A+1),I,A],I=A;break;case a:for(A=I,$=!0;_.charCodeAt(A+1)===a;)A+=1,$=!$;if(C=_.charCodeAt(A+1),$&&C!==i&&C!==o&&C!==s&&C!==l&&C!==c&&C!==n&&(A+=1,F.test(_.charAt(A)))){for(;F.test(_.charAt(A+1));)A+=1;_.charCodeAt(A+1)===o&&(A+=1)}z=["word",_.slice(I,A+1),I,A],I=A;break;default:C===i&&_.charCodeAt(I+1)===f?(A=_.indexOf("*/",I+2)+1,0===A&&(L||E?A=_.length:N("comment")),z=["comment",_.slice(I,A+1),I,A],I=A):(w.lastIndex=I+1,w.t