tw-to-css
Version:
Tailwindcss Inline CSS
26 lines (25 loc) • 291 kB
JavaScript
var Ap=Object.create;var gr=Object.defineProperty;var _p=Object.getOwnPropertyDescriptor;var Tp=Object.getOwnPropertyNames;var Pp=Object.getPrototypeOf,Ip=Object.prototype.hasOwnProperty;var dt=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),yr=(t,e)=>{for(var r in e)gr(t,r,{get:e[r],enumerable:!0})},Ia=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Tp(e))!Ip.call(t,i)&&i!==r&&gr(t,i,{get:()=>e[i],enumerable:!(n=_p(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?Ap(Pp(t)):{},Ia(e||!t||!t.__esModule?gr(r,"default",{value:t,enumerable:!0}):r,t)),$e=t=>Ia(gr({},"__esModule",{value:!0}),t);var Ma,Da=dt(()=>{Ma=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal)}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
`});var Fa={};yr(Fa,{default:()=>ht});var ht,vr=dt(()=>{Da();ht={readFileSync:()=>Ma}});var Na=S((mb,La)=>{"use strict";var jn=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||1/0,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(let[r,n]of e)this.onEviction(r,n.value)}_deleteIfExpired(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,r.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,r){if(this._deleteIfExpired(e,r)===!1)return r.value}_getItemValue(e,r){return r.expiry?this._getOrDeleteIfExpired(e,r):r.value}_peek(e,r){let n=r.get(e);return this._getItemValue(e,n)}_set(e,r){this.cache.set(e,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,r){this.oldCache.delete(e),this._set(e,r)}*_entriesAscending(){for(let e of this.oldCache){let[r,n]=e;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield e)}for(let e of this.cache){let[r,n]=e;this._deleteIfExpired(r,n)===!1&&(yield e)}}get(e){if(this.cache.has(e)){let r=this.cache.get(e);return this._getItemValue(e,r)}if(this.oldCache.has(e)){let r=this.oldCache.get(e);if(this._deleteIfExpired(e,r)===!1)return this._moveToRecent(e,r),r.value}}set(e,r,{maxAge:n=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(e)?this.cache.set(e,{value:r,maxAge:n}):this._set(e,{value:r,expiry:n})}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],n=r.length-e;n<0?(this.cache=new Map(r),this.oldCache=new Map,this._size=r.length):(n>0&&this._emitEvictions(r.slice(0,n)),this.oldCache=new Map(r.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache){let[r,n]=e;this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}for(let e of this.oldCache){let[r,n]=e;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let e=[...this.cache];for(let r=e.length-1;r>=0;--r){let n=e[r],[i,a]=n;this._deleteIfExpired(i,a)===!1&&(yield[i,a.value])}e=[...this.oldCache];for(let r=e.length-1;r>=0;--r){let n=e[r],[i,a]=n;this.cache.has(i)||this._deleteIfExpired(i,a)===!1&&(yield[i,a.value])}}*entriesAscending(){for(let[e,r]of this._entriesAscending())yield[e,r.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};La.exports=jn});var Ua={};yr(Ua,{default:()=>Bn});var Bn,Gn=dt(()=>{Bn={yellow:t=>t}});var Yn=S(()=>{});var br=S((bb,Va)=>{"use strict";var ja=(Gn(),$e(Ua)),za=Yn(),Ue=class extends Error{constructor(e,r,n,i,a,s){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),i&&(this.source=i),s&&(this.plugin=s),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ue)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=ja.isColorSupported),za&&e&&(r=za(r));let n=r.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,n.length),s=String(a).length,o,l;if(e){let{bold:u,gray:f,red:p}=ja.createColors(!0);o=c=>u(p(c)),l=c=>f(c)}else o=l=u=>u;return n.slice(i,a).map((u,f)=>{let p=i+1+f,c=" "+(" "+p).slice(-s)+" | ";if(p===this.line){let d=l(c.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+l(c)+u+`
`+d+o("^")}return" "+l(c)+u}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`
`+e+`
`),this.name+": "+this.message+e}};Va.exports=Ue;Ue.default=Ue});var xr=S((xb,Hn)=>{"use strict";Hn.exports.isClean=Symbol("isClean");Hn.exports.my=Symbol("my")});var Qn=S((Sb,Ba)=>{"use strict";var Wa={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Mp(t){return t[0].toUpperCase()+t.slice(1)}var gt=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let a=(e.raws.between||"")+(r?";":"");this.builder(n+i+a,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,a=0;for(;i&&i.type!=="root";)a+=1,i=i.parent;if(n.includes(`
`)){let s=this.raw(e,null,"indent");if(s.length)for(let o=0;o<a;o++)n+=s}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let a=e.nodes[i],s=this.raw(a,"before");s&&this.builder(s),this.stringify(a,r!==i||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),r&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],typeof i<"u"))return i;let a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Wa[n];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[n]<"u")return s.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let o="raw"+Mp(n);this[o]?i=this[o](s,e):s.walk(l=>{if(i=l.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=Wa[n]),s.rawCache[n]=i,i}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let a=n.raws.before.split(`
`);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}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)}};Ba.exports=gt;gt.default=gt});var yt=S((kb,Ga)=>{"use strict";var Fp=Qn();function Jn(t,e){new Fp(e).stringify(t)}Ga.exports=Jn;Jn.default=Jn});var wt=S((Ob,Ya)=>{"use strict";var{isClean:Sr,my:Lp}=xr(),Np=br(),qp=Qn(),$p=yt();function Xn(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],a=typeof i;n==="parent"&&a==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(s=>Xn(s,r)):(a==="object"&&i!==null&&(i=Xn(i)),r[n]=i)}return r}var vt=class{constructor(e={}){this.raws={},this[Sr]=!1,this[Lp]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}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=Xn(this);for(let n in e)r[n]=e[n];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:n,start:i}=this.rangeBy(r);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new Np(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Sr]){this[Sr]=!1;let e=this;for(;e=e.parent;)e[Sr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,r){let n=this.source.start;if(e.index)n=this.positionInside(e.index,r);else if(e.word){r=this.toString();let i=r.indexOf(e.word);i!==-1&&(n=this.positionInside(i,r))}return n}positionInside(e,r){let n=r||this.toString(),i=this.source.start.column,a=this.source.start.line;for(let s=0;s<e;s++)n[s]===`
`?(i=1,a+=1):i+=1;return{column:i,line:a}}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},n=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 i=this.toString(),a=i.indexOf(e.word);a!==-1&&(r=this.positionInside(a,i),n=this.positionInside(a+e.word.length,i))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line}),{end:n,start:r}}raw(e,r){return new qp().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,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},i=r==null;r=r||new Map;let a=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let o=this[s];if(Array.isArray(o))n[s]=o.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,r):l);else if(typeof o=="object"&&o.toJSON)n[s]=o.toJSON(null,r);else if(s==="source"){let l=r.get(o.input);l==null&&(l=a,r.set(o.input,a),a++),n[s]={end:o.end,inputId:l,start:o.start}}else n[s]=o}return i&&(n.inputs=[...r.keys()].map(s=>s.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=$p){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n){let i={node:this};for(let a in n)i[a]=n[a];return e.warn(r,i)}get proxyOf(){return this}};Ya.exports=vt;vt.default=vt});var xt=S((Eb,Ha)=>{"use strict";var Up=wt(),bt=class extends Up{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Ha.exports=bt;bt.default=bt});var kr=S(()=>{});var St={};yr(St,{join:()=>Kn});var Kn,kt=dt(()=>{Kn=()=>""});var Zn={};yr(Zn,{default:()=>jp});var jp,ei=dt(()=>{jp=null});var Ja=S((_b,Qa)=>{var zp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Vp=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},Wp=(t=21)=>{let e="",r=t;for(;r--;)e+=zp[Math.random()*64|0];return e};Qa.exports={nanoid:Wp,customAlphabet:Vp}});var ri=S((Tb,Za)=>{"use strict";var{SourceMapConsumer:Xa,SourceMapGenerator:Ka}=kr(),{existsSync:Bp,readFileSync:Gp}=(vr(),$e(Fa)),{dirname:ti,join:Yp}=(kt(),$e(St));function Hp(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Ot=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=ti(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Xa(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(i.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||n.test(e))return Hp(e.substr(RegExp.lastMatch.length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=ti(e),Bp(e))return this.mapFile=e,Gp(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof Xa)return Ka.fromSourceMap(r).toString();if(r instanceof Ka)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=Yp(ti(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Za.exports=Ot;Ot.default=Ot});var Et=S((Pb,no)=>{"use strict";var{SourceMapConsumer:Qp,SourceMapGenerator:Jp}=kr(),{fileURLToPath:eo,pathToFileURL:Or}=(ei(),$e(Zn)),{isAbsolute:si,resolve:ai}=(kt(),$e(St)),{nanoid:Xp}=Ja(),ni=Yn(),to=br(),Kp=ri(),ii=Symbol("fromOffsetCache"),Zp=Boolean(Qp&&Jp),ro=Boolean(ai&&si),Ye=class{constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!ro||/^\w+:\/\//.test(r.from)||si(r.from)?this.file=r.from:this.file=ai(r.from)),ro&&Zp){let n=new Kp(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Xp(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let a,s,o;if(r&&typeof r=="object"){let u=r,f=n;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);r=p.line,n=p.col}else r=u.line,n=u.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);s=p.line,o=p.col}else s=f.line,o=f.column}else if(!n){let u=this.fromOffset(r);r=u.line,n=u.col}let l=this.origin(r,n,s,o);return l?a=new to(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin):a=new to(e,s===void 0?r:{column:n,line:r},s===void 0?n:{column:o,line:s},this.css,this.file,i.plugin),a.input={column:n,endColumn:o,endLine:s,line:r,source:this.css},this.file&&(Or&&(a.input.url=Or(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let r,n;if(this[ii])n=this[ii];else{let a=this.css.split(`
`);n=new Array(a.length);let s=0;for(let o=0,l=a.length;o<l;o++)n[o]=s,s+=a[o].length+1;this[ii]=n}r=n[n.length-1];let i=0;if(e>=r)i=n.length-1;else{let a=n.length-2,s;for(;i<a;)if(s=i+(a-i>>1),e<n[s])a=s-1;else if(e>=n[s+1])i=s+1;else{i=s;break}}return{col:e-n[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ai(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let a=this.map.consumer(),s=a.originalPositionFor({column:r,line:e});if(!s.source)return!1;let o;typeof n=="number"&&(o=a.originalPositionFor({column:i,line:n}));let l;si(s.source)?l=Or(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||Or(this.map.mapFile));let u={column:s.column,endColumn:o&&o.column,endLine:o&&o.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(eo)u.file=eo(l);else throw new Error("file: protocol is not available in this PostCSS build");let f=a.sourceContentFor(s.source);return f&&(u.source=f),u}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};no.exports=Ye;Ye.default=Ye;ni&&ni.registerInput&&ni.registerInput(Ye)});var li=S((Ib,uo)=>{"use strict";var{SourceMapConsumer:so,SourceMapGenerator:Er}=kr(),{dirname:Cr,relative:ao,resolve:oo,sep:lo}=(kt(),$e(St)),{pathToFileURL:io}=(ei(),$e(Zn)),ed=Et(),td=Boolean(so&&Er),rd=Boolean(Cr&&oo&&ao&&lo),oi=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||Cr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new so(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),rd&&td&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Er.fromSourceMap(e)}else this.map=new Er({file:this.outputFile()}),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 Er({file:this.outputFile()});let e=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},a,s;this.stringify(this.root,(o,l,u)=>{if(this.css+=o,l&&u!=="end"&&(i.generated.line=e,i.generated.column=r-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=o.match(/\n/g),a?(e+=a.length,s=o.lastIndexOf(`
`),r=o.length-s):r+=o.length,l&&u!=="start"){let f=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==f.last||f.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}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||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?Cr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Cr(oo(n,this.mapOpts.annotation)));let i=ao(n,e);return this.memoizedPaths.set(e,i),i}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 ed(this.css,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 n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,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(io){let n=io(e).toString();return this.memoizedFileURLs.set(e,n),n}else 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;lo==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};uo.exports=oi});var At=S((Rb,fo)=>{"use strict";var nd=wt(),Ct=class extends nd{constructor(e){super(e),this.type="comment"}};fo.exports=Ct;Ct.default=Ct});var _e=S((Db,bo)=>{"use strict";var{isClean:co,my:po}=xr(),ho=xt(),mo=At(),id=wt(),go,ui,fi,yo;function vo(t){return t.map(e=>(e.nodes&&(e.nodes=vo(e.nodes)),delete e.source,e))}function wo(t){if(t[co]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)wo(e)}var ae=class extends id{append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}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=this.getIterator(),n,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}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){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(i=>typeof i=="function"?(a,s)=>i(a.toProxy(),s):i)):r==="every"||r==="some"?n=>e[r]((i,...a)=>n(i.toProxy(),...a)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of i)this.proxyOf.nodes.splice(n+1,0,s);let a;for(let s in this.indexes)a=this.indexes[s],n<a&&(this.indexes[s]=a+i.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),i=n===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let o of a)this.proxyOf.nodes.splice(n,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<=s&&(this.indexes[o]=s+a.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=vo(go(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new ho(e)]}else if(e.selector)e=[new ui(e)];else if(e.name)e=[new fi(e)];else if(e.text)e=[new mo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[po]||ae.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[co]&&wo(i),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.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){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(a){throw r.addToError(a)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}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]}};ae.registerParse=t=>{go=t};ae.registerRule=t=>{ui=t};ae.registerAtRule=t=>{fi=t};ae.registerRoot=t=>{yo=t};bo.exports=ae;ae.default=ae;ae.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,fi.prototype):t.type==="rule"?Object.setPrototypeOf(t,ui.prototype):t.type==="decl"?Object.setPrototypeOf(t,ho.prototype):t.type==="comment"?Object.setPrototypeOf(t,mo.prototype):t.type==="root"&&Object.setPrototypeOf(t,yo.prototype),t[po]=!0,t.nodes&&t.nodes.forEach(e=>{ae.rebuild(e)})}});var Ar=S((Mb,ko)=>{"use strict";var sd=_e(),xo,So,je=class extends sd{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new xo(new So,this,e).stringify()}};je.registerLazyResult=t=>{xo=t};je.registerProcessor=t=>{So=t};ko.exports=je;je.default=je});var ci=S((Fb,Eo)=>{"use strict";var Oo={};Eo.exports=function(e){Oo[e]||(Oo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var pi=S((Lb,Co)=>{"use strict";var _t=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Co.exports=_t;_t.default=_t});var _r=S((Nb,Ao)=>{"use strict";var ad=pi(),Tt=class{constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,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 n=new ad(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Ao.exports=Tt;Tt.default=Tt});var Ro=S((qb,Io)=>{"use strict";var di="'".charCodeAt(0),_o='"'.charCodeAt(0),Tr="\\".charCodeAt(0),To="/".charCodeAt(0),Pr=`
`.charCodeAt(0),Pt=" ".charCodeAt(0),Ir="\f".charCodeAt(0),Rr=" ".charCodeAt(0),Dr="\r".charCodeAt(0),od="[".charCodeAt(0),ld="]".charCodeAt(0),ud="(".charCodeAt(0),fd=")".charCodeAt(0),cd="{".charCodeAt(0),pd="}".charCodeAt(0),dd=";".charCodeAt(0),hd="*".charCodeAt(0),md=":".charCodeAt(0),gd="@".charCodeAt(0),Mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yd=/.[\r\n"'(/\\]/,Po=/[\da-f]/i;Io.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,a,s,o,l,u,f,p,c,d,h,y=n.length,m=0,g=[],w=[];function b(){return m}function v(E){throw e.error("Unclosed "+E,m)}function O(){return w.length===0&&m>=y}function x(E){if(w.length)return w.pop();if(m>=y)return;let I=E?E.ignoreUnclosed:!1;switch(a=n.charCodeAt(m),a){case Pr:case Pt:case Rr:case Dr:case Ir:{s=m;do s+=1,a=n.charCodeAt(s);while(a===Pt||a===Pr||a===Rr||a===Dr||a===Ir);h=["space",n.slice(m,s)],m=s-1;break}case od:case ld:case cd:case pd:case md:case dd:case fd:{let F=String.fromCharCode(a);h=[F,F,m];break}case ud:{if(c=g.length?g.pop()[1]:"",d=n.charCodeAt(m+1),c==="url"&&d!==di&&d!==_o&&d!==Pt&&d!==Pr&&d!==Rr&&d!==Ir&&d!==Dr){s=m;do{if(f=!1,s=n.indexOf(")",s+1),s===-1)if(i||I){s=m;break}else v("bracket");for(p=s;n.charCodeAt(p-1)===Tr;)p-=1,f=!f}while(f);h=["brackets",n.slice(m,s+1),m,s],m=s}else s=n.indexOf(")",m+1),l=n.slice(m,s+1),s===-1||yd.test(l)?h=["(","(",m]:(h=["brackets",l,m,s],m=s);break}case di:case _o:{o=a===di?"'":'"',s=m;do{if(f=!1,s=n.indexOf(o,s+1),s===-1)if(i||I){s=m+1;break}else v("string");for(p=s;n.charCodeAt(p-1)===Tr;)p-=1,f=!f}while(f);h=["string",n.slice(m,s+1),m,s],m=s;break}case gd:{Mr.lastIndex=m+1,Mr.test(n),Mr.lastIndex===0?s=n.length-1:s=Mr.lastIndex-2,h=["at-word",n.slice(m,s+1),m,s],m=s;break}case Tr:{for(s=m,u=!0;n.charCodeAt(s+1)===Tr;)s+=1,u=!u;if(a=n.charCodeAt(s+1),u&&a!==To&&a!==Pt&&a!==Pr&&a!==Rr&&a!==Dr&&a!==Ir&&(s+=1,Po.test(n.charAt(s)))){for(;Po.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===Pt&&(s+=1)}h=["word",n.slice(m,s+1),m,s],m=s;break}default:{a===To&&n.charCodeAt(m+1)===hd?(s=n.indexOf("*/",m+2)+1,s===0&&(i||I?s=n.length:v("comment")),h=["comment",n.slice(m,s+1),m,s],m=s):(Fr.lastIndex=m+1,Fr.test(n),Fr.lastIndex===0?s=n.length-1:s=Fr.lastIndex-2,h=["word",n.slice(m,s+1),m,s],g.push(h),m=s);break}}return m++,h}function A(E){w.push(E)}return{back:A,endOfFile:O,nextToken:x,position:b}}});var Lr=S(($b,Mo)=>{"use strict";var Do=_e(),He=class extends Do{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)}};Mo.exports=He;He.default=He;Do.registerAtRule(He)});var Qe=S((Ub,qo)=>{"use strict";var Fo=_e(),Lo,No,Te=class extends Fo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let i=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let a of i)a.raws.before=r.raws.before}return i}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Lo(new No,this,e).stringify()}};Te.registerLazyResult=t=>{Lo=t};Te.registerProcessor=t=>{No=t};qo.exports=Te;Te.default=Te;Fo.registerRoot(Te)});var hi=S((jb,$o)=>{"use strict";var It={comma(t){return It.split(t,[","],!0)},space(t){let e=[" ",`
`," "];return It.split(t,e)},split(t,e,r){let n=[],i="",a=!1,s=0,o=!1,l="",u=!1;for(let f of t)u?u=!1:f==="\\"?u=!0:o?f===l&&(o=!1):f==='"'||f==="'"?(o=!0,l=f):f==="("?s+=1:f===")"?s>0&&(s-=1):s===0&&e.includes(f)&&(a=!0),a?(i!==""&&n.push(i.trim()),i="",a=!1):i+=f;return(r||i!=="")&&n.push(i.trim()),n}};$o.exports=It;It.default=It});var Nr=S((zb,jo)=>{"use strict";var Uo=_e(),vd=hi(),Je=class extends Uo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return vd.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};jo.exports=Je;Je.default=Je;Uo.registerRule(Je)});var Bo=S((Vb,Wo)=>{"use strict";var wd=xt(),bd=Ro(),xd=At(),Sd=Lr(),kd=Qe(),zo=Nr(),Vo={empty:!0,space:!0};function Od(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}var mi=class{constructor(e){this.input=e,this.root=new kd,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new Sd;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,a,s=!1,o=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?u.push(n==="("?")":"]"):n==="{"&&u.length>0?u.push("}"):n===u[u.length-1]&&u.pop(),u.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){o=!0;break}else if(n==="}"){if(l.length>0){for(a=l.length-1,i=l[a];i&&i[0]==="space";)i=l[--a];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),s&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),o&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let a=r-1;a>=0&&(i=e[a],!(i[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,a;for(let[s,o]of e.entries()){if(n=o,i=n[0],i==="("&&(r+=1),i===")"&&(r-=1),r===0&&i===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return s}a=n}return!1}comment(e){let r=new xd;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=bd(this.input)}decl(e,r){let n=new wd;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Od(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(a=e[u],a[1].toLowerCase()==="!important"){n.important=!0;let f=this.stringFrom(e,u);f=this.spacesFromEnd(e)+f,f!==" !important"&&(n.raws.important=f);break}else if(a[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let c=u;c>0;c--){let d=f[c][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=f)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(n.raws.between+=s.map(u=>u[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),r),n.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 zo;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&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}}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="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,a=null,s=[],o=e[1].startsWith("--"),l=[],u=e;for(;u;){if(n=u[0],l.push(u),n==="("||n==="[")a||(a=u),s.push(n==="("?")":"]");else if(o&&i&&n==="{")a||(a=u),s.push("}");else if(s.length===0)if(n===";")if(i){this.decl(l,o);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),r=!0;break}else n===":"&&(i=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(a=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),s.length>0&&this.unclosedBracket(a),r&&i){if(!o)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,i){let a,s,o=n.length,l="",u=!0,f,p;for(let c=0;c<o;c+=1)a=n[c],s=a[0],s==="space"&&c===o-1&&!i?u=!1:s==="comment"?(p=n[c-1]?n[c-1][0]:"empty",f=n[c+1]?n[c+1][0]:"empty",!Vo[p]&&!Vo[f]?l.slice(-1)===","?u=!1:l+=a[1]:u=!1):l+=a[1];if(!u){let c=n.reduce((d,h)=>d+h[1],"");e.raws[r]={raw:c,value:l}}e[r]=l}rule(e){e.pop();let r=new zo;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i<e.length;i++)n+=e[i][1];return e.splice(r,e.length-r),n}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",{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})}};Wo.exports=mi});var $r=S((Wb,Go)=>{"use strict";var Ed=_e(),Cd=Bo(),Ad=Et();function qr(t,e){let r=new Ad(t,e),n=new Cd(r);try{n.parse()}catch(i){throw i}return n.root}Go.exports=qr;qr.default=qr;Ed.registerParse(qr)});var vi=S((Gb,Jo)=>{"use strict";var{isClean:me,my:_d}=xr(),Td=li(),Pd=yt(),Id=_e(),Rd=Ar(),Bb=ci(),Yo=_r(),Dd=$r(),Md=Qe(),Fd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ld={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},Nd={Once:!0,postcssPlugin:!0,prepare:!0},Xe=0;function Rt(t){return typeof t=="object"&&typeof t.then=="function"}function Qo(t){let e=!1,r=Fd[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Xe,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Xe,r+"Exit"]:[r,r+"Exit"]}function Ho(t){let e;return t.type==="document"?e=["Document",Xe,"DocumentExit"]:t.type==="root"?e=["Root",Xe,"RootExit"]:e=Qo(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function gi(t){return t[me]=!1,t.nodes&&t.nodes.forEach(e=>gi(e)),t}var yi={},ge=class{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=gi(r);else if(r instanceof ge||r instanceof Yo)i=gi(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let a=Dd;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{i=a(r,n)}catch(s){this.processed=!0,this.error=s}i&&!i[_d]&&Id.rebuild(i)}this.result=new Yo(e,i,n),this.helpers={...yi,postcss:yi,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}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 n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Ld[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Nd[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}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],n=this.runOnRoot(r);if(Rt(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];){e[me]=!0;let r=[Ho(e)];for(;r.length>0;){let n=this.visitTick(r);if(Rt(n))try{await n}catch(i){let a=r[r.length-1].node;throw this.handleError(i,a)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(a=>n(a,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return