@govbr-ds/playground 5.2.0 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Playground.d.ts.map +1 -1
- package/dist/browser/chunks/babel-PXSNAHUX.js +16 -0
- package/dist/browser/chunks/chunk-6DHFEWGX.js +1 -0
- package/dist/browser/chunks/{chunk-JM73XHPL.js → chunk-7G6EEGZ4.js} +1 -1
- package/dist/{react/chunks/dist-AKMJXMTZ.js → browser/chunks/dist-H5E3DUQZ.js} +1 -1
- package/dist/browser/chunks/{dist-VIVGCYF5.js → dist-HT72W6BH.js} +1 -1
- package/dist/browser/chunks/{dist-KS4J6S7U.js → dist-MALZEIQI.js} +1 -1
- package/dist/browser/chunks/{esm-BWS4JPZG.js → esm-3ZNLC56K.js} +1 -1
- package/dist/browser/chunks/{esm-R75BP3LA.js → esm-6SLZNXJD.js} +1 -1
- package/dist/browser/chunks/estree-EALESNBX.js +44 -0
- package/dist/browser/chunks/html-C5MOHUJO.js +25 -0
- package/dist/browser/chunks/postcss-RXMLIASD.js +62 -0
- package/dist/browser/chunks/standalone-G7AM3SII.js +29 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +24 -24
- package/dist/components/Workbench.d.ts.map +1 -1
- package/dist/core/index.d.ts +2 -3
- package/dist/core/index.d.ts.map +1 -1
- package/dist/library/profile.d.ts +1 -1
- package/dist/react/chunks/babel-PXSNAHUX.js +16 -0
- package/dist/react/chunks/chunk-6DHFEWGX.js +1 -0
- package/dist/{browser/chunks/dist-AKMJXMTZ.js → react/chunks/dist-H5E3DUQZ.js} +1 -1
- package/dist/react/chunks/{dist-VIVGCYF5.js → dist-HT72W6BH.js} +1 -1
- package/dist/react/chunks/{dist-KS4J6S7U.js → dist-MALZEIQI.js} +1 -1
- package/dist/react/chunks/{esm-R75BP3LA.js → esm-6SLZNXJD.js} +1 -1
- package/dist/react/chunks/{esm-WLDNKOOE.js → esm-YAO6K4CU.js} +1 -1
- package/dist/react/chunks/estree-EALESNBX.js +44 -0
- package/dist/react/chunks/html-C5MOHUJO.js +25 -0
- package/dist/react/chunks/postcss-RXMLIASD.js +62 -0
- package/dist/react/chunks/standalone-G7AM3SII.js +29 -0
- package/dist/react/index.js +25 -25
- package/dist/styles.css +80 -53
- package/dist/utils/previewLocale.d.ts +6 -6
- package/dist/utils/previewLocale.d.ts.map +1 -1
- package/docs/configuration.md +13 -13
- package/package.json +7 -7
- package/dist/browser/chunks/babel-TRTEHJWP.js +0 -16
- package/dist/browser/chunks/chunk-Y6SLVHK3.js +0 -1
- package/dist/browser/chunks/estree-UYKKTIFA.js +0 -44
- package/dist/browser/chunks/html-TM3VAO62.js +0 -25
- package/dist/browser/chunks/postcss-JAVHFEUM.js +0 -62
- package/dist/browser/chunks/standalone-IDMVEPER.js +0 -29
- package/dist/react/chunks/babel-TRTEHJWP.js +0 -16
- package/dist/react/chunks/chunk-Y6SLVHK3.js +0 -1
- package/dist/react/chunks/estree-UYKKTIFA.js +0 -44
- package/dist/react/chunks/html-TM3VAO62.js +0 -25
- package/dist/react/chunks/postcss-JAVHFEUM.js +0 -62
- package/dist/react/chunks/standalone-IDMVEPER.js +0 -29
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import"./chunk-6DHFEWGX.js";var _s=Object.create,Pt=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,Cs=Object.getOwnPropertyNames,Es=Object.getPrototypeOf,As=Object.prototype.hasOwnProperty,A=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(n){throw r=0,n}},dr=(e,r)=>{for(var n in r)Pt(e,n,{get:r[n],enumerable:!0})},Is=(e,r,n,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Cs(r))!As.call(e,l)&&l!==n&&Pt(e,l,{get:()=>r[l],enumerable:!(s=Ss(r,l))||s.enumerable});return e},K=(e,r,n)=>(n=e!=null?_s(Es(e)):{},Is(r||!e||!e.__esModule?Pt(n,"default",{value:e,enumerable:!0}):n,e)),js=A((e,r)=>{var n=String,s=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};r.exports=s(),r.exports.createColors=s}),mr=A(()=>{}),Mt=A((e,r)=>{"use strict";var n=js(),s=mr(),l=class yr extends Error{constructor(f,m,w,y,c,t){super(f),this.name="CssSyntaxError",this.reason=f,c&&(this.file=c),y&&(this.source=y),t&&(this.plugin=t),typeof m<"u"&&typeof w<"u"&&(typeof m=="number"?(this.line=m,this.column=w):(this.line=m.line,this.column=m.column,this.endLine=w.line,this.endColumn=w.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,yr)}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(f){if(!this.source)return"";let m=this.source;f==null&&(f=n.isColorSupported);let w=a=>a,y=a=>a,c=a=>a;if(f){let{bold:a,gray:h,red:d}=n.createColors(!0);y=v=>a(d(v)),w=v=>h(v),s&&(c=v=>s(v))}let t=m.split(/\r?\n/),o=Math.max(this.line-3,0),i=Math.min(this.line+2,t.length),u=String(i).length;return t.slice(o,i).map((a,h)=>{let d=o+1+h,v=" "+(" "+d).slice(-u)+" | ";if(d===this.line){if(a.length>160){let x=20,g=Math.max(0,this.column-x),T=Math.max(this.column+x,this.endColumn+x),O=a.slice(g,T),k=w(v.replace(/\d/g," "))+a.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return y(">")+w(v)+c(O)+`
|
|
2
|
+
`+k+y("^")}let b=w(v.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return y(">")+w(v)+c(a)+`
|
|
3
|
+
`+b+y("^")}return" "+w(v)+c(a)}).join(`
|
|
4
|
+
`)}toString(){let f=this.showSourceCode();return f&&(f=`
|
|
5
|
+
|
|
6
|
+
`+f+`
|
|
7
|
+
`),this.name+": "+this.message+f}};r.exports=l,l.default=l}),gr=A((e,r)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/,s={after:`
|
|
8
|
+
`,beforeClose:`
|
|
9
|
+
`,beforeComment:`
|
|
10
|
+
`,beforeDecl:`
|
|
11
|
+
`,beforeOpen:" ",beforeRule:`
|
|
12
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function l(c){return c[0].toUpperCase()+c.slice(1)}function p(c,t){let o="@"+t.name,i=t.params?c.rawValue(t,"params"):"",u=t.raws.afterName;return typeof u>"u"?u=i?" ":"":u===""&&i&&!n.test(i[0])&&(u=" "),o+u+i}function f(c){if(!c.prop.startsWith("--"))return!1;let t=c.raws.before;return typeof t>"u"||!/[^\s;]$/.test(t)}function m(c,t,o){let i=o.nodes,u=i.length-1;for(;u>0&&i[u].type==="comment";)u-=1;let a=c.raw(o,"semicolon"),h=o.type==="document";for(let d=i.length-1;d>=0;d--){let v=i[d],b=u!==d||a;!b&&d<i.length-1&&(v.type==="atrule"&&!v.nodes||v.type==="decl"&&f(v))&&(b=!0),t.push({document:h,node:v,semicolon:b})}}function w(c,t,o,i){let u=c.raw(o,"between","beforeOpen");c.builder(i+u+"{",o,"start");let a=o.nodes&&o.nodes.length,h=()=>{let d=a?c.raw(o,"after"):c.raw(o,"after","emptyBody");d&&c.builder(d),c.builder("}",o,"end"),o.type==="rule"&&o.raws.ownSemicolon&&c.builder(o.raws.ownSemicolon,o,"end")};a?(t.push(h),m(c,t,o)):h()}var y=class vr{constructor(t){this.builder=t}atrule(t,o){let i=p(this,t);if(t.nodes)this.block(t,i);else{let u=(t.raws.between||"")+(o?";":"");this.builder(i+u,t)}}beforeAfter(t,o){let i;t.type==="decl"?i=this.raw(t,null,"beforeDecl"):t.type==="comment"?i=this.raw(t,null,"beforeComment"):o==="before"?i=this.raw(t,null,"beforeRule"):i=this.raw(t,null,"beforeClose");let u=t.parent,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(i.includes(`
|
|
13
|
+
`)){let h=this.raw(t,null,"indent");if(h.length)for(let d=0;d<a;d++)i+=h}return i}block(t,o){let i=this.raw(t,"between","beforeOpen");this.builder(o+i+"{",t,"start");let u;t.nodes&&t.nodes.length?(this.body(t),u=this.raw(t,"after")):u=this.raw(t,"after","emptyBody"),u&&this.builder(u),this.builder("}",t,"end")}body(t){let o=vr.prototype,i=["atrule","block","body","rule","stringify"].every(a=>this[a]===o[a]),u=[];for(m(this,u,t);u.length>0;){let a=u.pop();if(typeof a=="function"){a();continue}let h=a.node,d=this.raw(h,"before");d&&this.builder(d),i&&h.type==="rule"?w(this,u,h,this.rawValue(h,"selector")):i&&h.type==="atrule"&&h.nodes?w(this,u,h,p(this,h)):this.stringify(h,a.semicolon)}}comment(t){let o=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder("/*"+o+t.text+i+"*/",t)}decl(t,o){let i=t.raws,u=this.raw(t,"between","colon"),a=t.prop+u+this.rawValue(t,"value");t.important&&(a+=i.important||" !important"),o&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,o,i){let u;if(i||(i=o),o&&(u=t.raws[o],typeof u<"u"))return u;let a=t.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return s[i];let h=t.root(),d=h.rawCache||(h.rawCache={});if(typeof d[i]<"u")return d[i];if(i==="before"||i==="after")return this.beforeAfter(t,i);{let v="raw"+l(i);this[v]?u=this[v](h,t):h.walk(b=>{if(u=b.raws[o],typeof u<"u")return!1})}return typeof u>"u"&&(u=s[i]),d[i]=u,u}rawBeforeClose(t){let o;return t.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return o=i.raws.after,o.includes(`
|
|
14
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(t,o){let i;return t.walkComments(u=>{if(typeof u.raws.before<"u")return i=u.raws.before,i.includes(`
|
|
15
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(o,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(t,o){let i;return t.walkDecls(u=>{if(typeof u.raws.before<"u")return i=u.raws.before,i.includes(`
|
|
16
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(o,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(t){let o;return t.walk(i=>{if(i.type!=="decl"&&(o=i.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(t){let o;return t.walk(i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&typeof i.raws.before<"u")return o=i.raws.before,o.includes(`
|
|
17
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(t){let o;return t.walkDecls(i=>{if(typeof i.raws.between<"u")return o=i.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(t){let o;return t.walk(i=>{if(i.nodes&&i.nodes.length===0&&(o=i.raws.after,typeof o<"u"))return!1}),o}rawIndent(t){if(t.raws.indent)return t.raws.indent;let o;return t.walk(i=>{let u=i.parent;if(u&&u!==t&&u.parent&&u.parent===t&&typeof i.raws.before<"u"){let a=i.raws.before.split(`
|
|
18
|
+
`);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(t){let o;return t.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(o=i.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(t,o){let i=t[o],u=t.raws[o];return u&&u.value===i?u.raw:i}root(t){!(t.parent&&t.parent.type==="document")&&t.source&&t.source.input.hasBOM&&this.builder("\uFEFF",t,"start"),this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,o){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,o)}};r.exports=y,y.default=y}),et=A((e,r)=>{"use strict";var n=gr(),s=/(<)(\/?style\b)/gi,l=/(<)(!--)/g;function p(y){return y.includes("<")?y.replace(s,"\\3c $2").replace(l,"\\3c $2"):y}function f(y,c,t){let o=[],i=0,u=0;for(let a=0;a<y.length;a+=3){let h=u,d=i+y[a].length;for(;i<d;)c[i]===t[u]?(i+=1,u+=1):(i+=1,u+=4);o.push(t.slice(h,u))}return o}var m=class extends n{escapeHTML(y){let c=this.builder,t,o;if(this.builder=(u,a,h)=>{t?(o+=u,t.push(u,a,h)):u.includes("<")?(o=u,t=[u,a,h]):c(u,a,h)},y(),this.builder=c,!t)return;let i=p(o);if(i===o)for(let u=0;u<t.length;u+=3)c(t[u],t[u+1],t[u+2]);else{let u=f(t,o,i);for(let a=0;a<t.length;a+=3)c(u[a/3],t[a+1],t[a+2])}}root(y){y.parent&&y.parent.type==="document"?(this.escapeHTML(()=>this.body(y)),y.raws.after&&this.builder(y.raws.after)):this.escapeHTML(()=>super.root(y))}};function w(y,c){let t=new m(c);y.type==="root"||y.type==="document"?t.stringify(y):t.escapeHTML(()=>t.stringify(y))}r.exports=w,w.default=w}),tt=A((e,r)=>{"use strict";r.exports.isClean=Symbol("isClean"),r.exports.my=Symbol("my")}),rt=A((e,r)=>{"use strict";var n=Mt(),s=gr(),l=et(),{isClean:p,my:f}=tt();function m(c,t){let o=new c.constructor,i=[[c,o,t]];for(;i.length>0;){let[u,a,h]=i.pop();for(let d in u){if(!Object.prototype.hasOwnProperty.call(u,d)||d==="proxyCache")continue;let v=u[d],b=typeof v;if(d==="parent"&&b==="object")h&&(a[d]=h);else if(d==="source")a[d]=v;else if(Array.isArray(v)){let x=[];a[d]=x;for(let g of v){let T=new g.constructor;x.push(T),i.push([g,T,a])}}else{if(b==="object"&&v!==null){let x=new v.constructor;i.push([v,x,void 0]),v=x}a[d]=v}}}return o}function w(c,t){if(t&&typeof t.offset<"u")return t.offset;let o=1,i=1,u=0;for(let a=0;a<c.length;a++){if(i===t.line&&o===t.column){u=a;break}c[a]===`
|
|
19
|
+
`?(o=1,i+=1):o+=1}return u}var y=class xt{get proxyOf(){return this}constructor(t={}){this.raws={},this[p]=!1,this[f]=!0;for(let o of Object.keys(t))if(o!=="__proto__")if(o==="nodes"){this.nodes=[];for(let i of t[o])typeof i.clone=="function"&&i.parent?this.append(i.clone()):this.append(i)}else this[o]=t[o]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let o=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${o.input.from}:${o.start.line}:${o.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let o in t)this[o]=t[o];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let o=m(this);for(let i in t)o[i]=t[i];return o}cloneAfter(t={}){let o=this.clone(t);return this.parent.insertAfter(this,o),o}cloneBefore(t={}){let o=this.clone(t);return this.parent.insertBefore(this,o),o}error(t,o={}){if(this.source){let{end:i,start:u}=this.rangeBy(o);return this.source.input.error(t,{column:u.column,line:u.line},{column:i.column,line:i.line},o)}return new n(t)}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:o==="root"?()=>t.root().toProxy():t[o]},set(t,o,i){return t[o]===i||(t[o]=i,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&t.markDirty()),!0}}}markClean(){this[p]=!0}markDirty(){if(this[p]){this[p]=!1;let t=this;for(;t=t.parent;)t[p]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:w(o,this.source.start)};if(t.index)i=this.positionInside(t.index);else if(t.word){let u=o.slice(w(o,this.source.start),this.rangeBy().end.offset).indexOf(t.word);u!==-1&&(i=this.positionInside(u))}return i}positionInside(t){let o=this.source.start.column,i=this.source.start.line,u="document"in this.source.input?this.source.input.document:this.source.input.css,a=w(u,this.source.start),h=a+t;for(let d=a;d<h;d++)u[d]===`
|
|
20
|
+
`?(o=1,i+=1):o+=1;return{column:o,line:i,offset:h}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:w(o,this.source.start)},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:w(o,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(t.word){let a=o.slice(w(o,this.source.start),u.offset).indexOf(t.word);a!==-1&&(i=this.positionInside(a),u=this.positionInside(a+t.word.length))}else t.start?i={column:t.start.column,line:t.start.line,offset:w(o,t.start)}:typeof t.index=="number"&&(i=this.positionInside(t.index)),t.end?u={column:t.end.column,line:t.end.line,offset:w(o,t.end)}:typeof t.endIndex=="number"?u=this.positionInside(t.endIndex):typeof t.index=="number"&&(u=this.positionInside(t.index+1));return(u.line<i.line||u.line===i.line&&u.column<=i.column)&&(u={column:i.column+1,line:i.line,offset:i.offset+1}),{end:u,start:i}}raw(t,o){return new s().raw(this,t,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let o=this,i=!1;for(let u of t)u===this?i=!0:i?(this.parent.insertAfter(o,u),o=u):this.parent.insertBefore(o,u);i||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,o){let i=o==null;o=o||new Map;let u=[],a=[[this,u,0]];for(let d=0;d<a.length;d++){let[v,b,x]=a[d],g={};b[x]=g;for(let T in v){if(!Object.prototype.hasOwnProperty.call(v,T)||T==="parent"||T==="proxyCache")continue;let O=v[T];if(Array.isArray(O)){let k=[];g[T]=k;for(let _=0;_<O.length;_++){let C=O[_];typeof C=="object"&&C.toJSON?C.toJSON===xt.prototype.toJSON?a.push([C,k,_]):k[_]=C.toJSON(null,o):k[_]=C}}else if(typeof O=="object"&&O.toJSON)O.toJSON===xt.prototype.toJSON?a.push([O,g,T]):g[T]=O.toJSON(null,o);else if(T==="source"){if(O==null)continue;let k=o.get(O.input);k==null&&(k=o.size,o.set(O.input,k)),g[T]={end:O.end,inputId:k,start:O.start}}else g[T]=O}}let h=u[0];return i&&(h.inputs=[...o.keys()].map(d=>d.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=l){t.stringify&&(t=t.stringify);let o="";return t(this,i=>{o+=i}),o}warn(t,o,i={}){let u={node:this};for(let a in i)u[a]=i[a];return t.warn(o,u)}};r.exports=y,y.default=y}),Be=A((e,r)=>{"use strict";var n=rt(),s=class extends n{constructor(l){super(l),this.type="comment"}};r.exports=s,s.default=s}),st=A((e,r)=>{"use strict";var n=rt(),s=class extends n{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}};r.exports=s,s.default=s}),fe=A((e,r)=>{"use strict";var n=Be(),s=st(),l=rt(),{isClean:p,my:f}=tt(),m,w,y,c;function t(u){let a=u.slice();for(;a.length>0;){let h=a.pop();if(delete h.source,h.nodes){h.nodes=h.nodes.slice();for(let d of h.nodes)a.push(d)}}return u.slice()}function o(u){let a=[u];for(;a.length>0;){let h=a.pop();if(h[p]=!1,h.proxyOf.nodes)for(let d of h.proxyOf.nodes)a.push(d)}}var i=class kt extends l{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(...a){for(let h of a){let d=this.normalize(h,this.last);for(let v of d)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(a){let h=[this];for(;h.length>0;){let d=h.pop();if(d!==this&&d.cleanRaws!==kt.prototype.cleanRaws){d.cleanRaws(a);continue}if(l.prototype.cleanRaws.call(d,a),d.nodes)for(let v of d.nodes)h.push(v)}}each(a){if(!this.proxyOf.nodes)return;let h=this.getIterator(),d,v;for(;this.indexes[h]<this.proxyOf.nodes.length&&(d=this.indexes[h],v=a(this.proxyOf.nodes[d],d),v!==!1);)this.indexes[h]+=1;return delete this.indexes[h],v}every(a){return this.nodes.every(a)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let a=this.lastEach;return this.indexes[a]=0,a}getProxyProcessor(){return{get(a,h){return h==="proxyOf"?a:a[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...d)=>a[h](...d.map(v=>typeof v=="function"?(b,x)=>v(b.toProxy(),x):v)):h==="every"||h==="some"?d=>a[h]((v,...b)=>d(v.toProxy(),...b)):h==="root"?()=>a.root().toProxy():h==="nodes"?a.nodes.map(d=>d.toProxy()):h==="first"||h==="last"?a[h].toProxy():a[h]:a[h]},set(a,h,d){return a[h]===d||(a[h]=d,(h==="name"||h==="params"||h==="selector")&&a.markDirty()),!0}}}index(a){return typeof a=="number"?a:(a.proxyOf&&(a=a.proxyOf),this.proxyOf.nodes.indexOf(a))}insertAfter(a,h){let d=this.index(a),v=this.normalize(h,this.proxyOf.nodes[d]).reverse();d=this.index(a);for(let x of v)this.proxyOf.nodes.splice(d+1,0,x);let b;for(let x in this.indexes)b=this.indexes[x],d<b&&(this.indexes[x]=b+v.length);return this.markDirty(),this}insertBefore(a,h){let d=this.index(a),v=d===0?"prepend":!1,b=this.normalize(h,this.proxyOf.nodes[d],v).reverse();d=this.index(a);for(let g of b)this.proxyOf.nodes.splice(d,0,g);let x;for(let g in this.indexes)x=this.indexes[g],d<=x&&(this.indexes[g]=x+b.length);return this.markDirty(),this}normalize(a,h){if(typeof a=="string")a=t(w(a).nodes);else if(typeof a>"u")a=[];else if(Array.isArray(a)){a=a.slice(0);for(let d of a)d.parent&&d.parent.removeChild(d,"ignore")}else if(a.type==="root"&&this.type!=="document"){a=a.nodes.slice(0);for(let d of a)d.parent&&d.parent.removeChild(d,"ignore")}else if(a.type)a=[a];else if(a.prop){if(typeof a.value>"u")throw new Error("Value field is missed in node creation");typeof a.value!="string"&&(a.value=String(a.value)),a=[new s(a)]}else if(a.selector||a.selectors)a=[new c(a)];else if(a.name)a=[new m(a)];else if(a.text)a=[new n(a)];else throw new Error("Unknown node type in node creation");return a.map(d=>(d[f]||kt.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[p]&&o(d),d.raws||(d.raws={}),typeof d.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(d.raws.before=h.raws.before.replace(/\S/g,"")),d.parent=this.proxyOf,d))}prepend(...a){a=a.reverse();for(let h of a){let d=this.normalize(h,this.first,"prepend").reverse();for(let v of d)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+d.length}return this.markDirty(),this}push(a){return a.parent=this,this.proxyOf.nodes.push(a),this}removeAll(){for(let a of this.proxyOf.nodes)a.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(a){a=this.index(a),this.proxyOf.nodes[a].parent=void 0,this.proxyOf.nodes.splice(a,1);let h;for(let d in this.indexes)h=this.indexes[d],h>=a&&(this.indexes[d]=h-1);return this.markDirty(),this}replaceValues(a,h,d){return d||(d=h,h={}),this.walkDecls(v=>{h.props&&!h.props.includes(v.prop)||h.fast&&!v.value.includes(h.fast)||(v.value=v.value.replace(a,d))}),this.markDirty(),this}some(a){return this.nodes.some(a)}walk(a){if(!this.proxyOf.nodes)return;let h=[{iterator:this.getIterator(),node:this.proxyOf}];for(;h.length>0;){let{iterator:d,node:v}=h[h.length-1],b=v.indexes[d];if(b>=v.proxyOf.nodes.length){delete v.indexes[d],h.pop();let T=h[h.length-1];T&&(T.node.indexes[T.iterator]+=1);continue}let x=v.proxyOf.nodes[b],g;try{g=a(x,b)}catch(T){throw x.addToError(T)}if(g===!1){for(let T of h)delete T.node.indexes[T.iterator];return!1}x.walk&&x.proxyOf.nodes?h.push({iterator:x.getIterator(),node:x}):v.indexes[d]+=1}}walkAtRules(a,h){return h?a instanceof RegExp?this.walk((d,v)=>{if(d.type==="atrule"&&a.test(d.name))return h(d,v)}):this.walk((d,v)=>{if(d.type==="atrule"&&d.name===a)return h(d,v)}):(h=a,this.walk((d,v)=>{if(d.type==="atrule")return h(d,v)}))}walkComments(a){return this.walk((h,d)=>{if(h.type==="comment")return a(h,d)})}walkDecls(a,h){return h?a instanceof RegExp?this.walk((d,v)=>{if(d.type==="decl"&&a.test(d.prop))return h(d,v)}):this.walk((d,v)=>{if(d.type==="decl"&&d.prop===a)return h(d,v)}):(h=a,this.walk((d,v)=>{if(d.type==="decl")return h(d,v)}))}walkRules(a,h){return h?a instanceof RegExp?this.walk((d,v)=>{if(d.type==="rule"&&a.test(d.selector))return h(d,v)}):this.walk((d,v)=>{if(d.type==="rule"&&d.selector===a)return h(d,v)}):(h=a,this.walk((d,v)=>{if(d.type==="rule")return h(d,v)}))}};i.registerParse=u=>{w=u},i.registerRule=u=>{c=u},i.registerAtRule=u=>{m=u},i.registerRoot=u=>{y=u},r.exports=i,i.default=i,i.rebuild=u=>{let a=[u];for(;a.length>0;){let h=a.pop();if(h.type==="atrule"?Object.setPrototypeOf(h,m.prototype):h.type==="rule"?Object.setPrototypeOf(h,c.prototype):h.type==="decl"?Object.setPrototypeOf(h,s.prototype):h.type==="comment"?Object.setPrototypeOf(h,n.prototype):h.type==="root"&&Object.setPrototypeOf(h,y.prototype),h[f]=!0,h.nodes)for(let d of h.nodes)a.push(d)}}}),Ps=A((e,r)=>{var n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",s=(p,f=21)=>(m=f)=>{let w="",y=m|0;for(;y-- >0;)w+=p[Math.random()*p.length|0];return w},l=(p=21)=>{let f="",m=p|0;for(;m-- >0;)f+=n[Math.random()*64|0];return f};r.exports={nanoid:l,customAlphabet:s}}),Ms=A(()=>{}),wr=A((e,r)=>{r.exports=class{}}),qe=A((e,r)=>{"use strict";var{nanoid:n}=Ps(),{isAbsolute:s,resolve:l}={},{SourceMapConsumer:p,SourceMapGenerator:f}=Ms(),{fileURLToPath:m,pathToFileURL:w}={},y=Mt(),c=wr(),t=mr(),o=Symbol("lineToIndexCache"),i=!!(p&&f),u=!!(l&&s);function a(d){if(d[o])return d[o];let v=d.css.split(`
|
|
21
|
+
`),b=new Array(v.length),x=0;for(let g=0,T=v.length;g<T;g++)b[g]=x,x+=v[g].length+1;return d[o]=b,b}var h=class{get from(){return this.file||this.id}constructor(d,v={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!u||/^\w+:\/\//.test(v.from)||s(v.from)?this.file=v.from:this.file=l(v.from)),u&&i){let b=new c(this.css,v);if(b.text){this.map=b;let x=b.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(d,v,b,x={}){let g,T,O,k,_;if(v&&typeof v=="object"){let I=v,P=b;if(typeof I.offset=="number"){k=I.offset;let N=this.fromOffset(k);v=N.line,b=N.col}else v=I.line,b=I.column,k=this.fromLineAndColumn(v,b);if(typeof P.offset=="number"){O=P.offset;let N=this.fromOffset(O);T=N.line,g=N.col}else T=P.line,g=P.column,O=this.fromLineAndColumn(P.line,P.column)}else if(b)k=this.fromLineAndColumn(v,b);else{k=v;let I=this.fromOffset(k);v=I.line,b=I.col}let C=this.origin(v,b,T,g);return C?_=new y(d,C.endLine===void 0?C.line:{column:C.column,line:C.line},C.endLine===void 0?C.column:{column:C.endColumn,line:C.endLine},C.source,C.file,x.plugin):_=new y(d,T===void 0?v:{column:b,line:v},T===void 0?b:{column:g,line:T},this.css,this.file,x.plugin),_.input={column:b,endColumn:g,endLine:T,endOffset:O,line:v,offset:k,source:this.css},this.file&&(w&&(_.input.url=w(this.file).toString()),_.input.file=this.file),_}fromLineAndColumn(d,v){return a(this)[d-1]+v-1}fromOffset(d){let v=a(this),b=v[v.length-1],x=0;if(d>=b)x=v.length-1;else{let g=v.length-2,T;for(;x<g;)if(T=x+(g-x>>1),d<v[T])g=T-1;else if(d>=v[T+1])x=T+1;else{x=T;break}}return{col:d-v[x]+1,line:x+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:l(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,v,b,x){if(!this.map)return!1;let g=this.map.consumer(),T=g.originalPositionFor({column:v-1,line:d});if(!T.source)return!1;let O;if(typeof b=="number"){let I=g.originalPositionFor({column:x-1,line:b});I.source&&(O=I)}let k;s(T.source)?k=w(T.source):k=new URL(T.source,w(this.map.mapFile||l(".")+"/"));let _={column:T.column+1,endColumn:O&&O.column+1,endLine:O&&O.line,line:T.line,url:k.toString()};if(k.protocol==="file:")if(m)_.file=m(k);else throw new Error("file: protocol is not available in this PostCSS build");let C=g.sourceContentFor(T.source);return C&&(_.source=C),_}toJSON(){let d={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(d[v]=this[v]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}};r.exports=h,h.default=h,t&&t.registerInput&&t.registerInput(h)}),Nt=A((e,r)=>{"use strict";var n=fe(),s=class extends n{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}};r.exports=s,s.default=s,n.registerAtRule(s)}),De=A((e,r)=>{"use strict";var n=fe(),s,l,p=class extends n{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,m,w){let y=new Set;for(let t of Array.isArray(f)?f:[f])t&&typeof t=="object"&&!t.parent&&t.raws&&typeof t.raws.before<"u"&&y.add(t.raws);let c=super.normalize(f);if(m){if(w==="prepend")this.nodes.length>1?m.raws.before=this.nodes[1].raws.before:delete m.raws.before;else if(this.first!==m)for(let t of c)y.has(t.raws)||(t.raws.before=m.raws.before)}return c}removeChild(f,m){let w=this.index(f);return!m&&w===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[w].raws.before),super.removeChild(f)}toResult(f={}){return new s(new l,this,f).stringify()}};p.registerLazyResult=f=>{s=f},p.registerProcessor=f=>{l=f},r.exports=p,p.default=p,n.registerRoot(p)}),br=A((e,r)=>{"use strict";var n={comma(s){return n.split(s,[","],!0)},space(s){let l=[" ",`
|
|
22
|
+
`," "];return n.split(s,l)},split(s,l,p){if(typeof s!="string")return[];let f=[],m="",w=!1,y=0,c=!1,t="",o=!1,i=!1;for(let a=0;a<s.length;a++){let h=s[a];if(i){m+=h,h==="*"&&s[a+1]==="/"&&(m+="/",a+=1,i=!1);continue}if(o)o=!1;else if(h==="\\")o=!0;else if(c)h===t&&(c=!1);else if(h==='"'||h==="'")c=!0,t=h;else if(h==="/"&&s[a+1]==="*"){m+="/*",a+=1,i=!0;continue}else h==="("?y+=1:h===")"?y>0&&(y-=1):y===0&&l.includes(h)&&(w=!0);if(w){let d=m.trim();(p||d!=="")&&f.push(d),m="",w=!1}else m+=h}let u=m.trim();return(p||u!=="")&&f.push(u),f}};r.exports=n,n.default=n}),$t=A((e,r)=>{"use strict";var n=fe(),s=br(),l=class extends n{get selectors(){return s.comma(this.selector)}set selectors(p){let f=this.selector?this.selector.match(/,\s*/):null,m=f?f[0]:","+this.raw("between","beforeOpen");this.selector=p.join(m)}constructor(p){super(p),this.type="rule",this.nodes||(this.nodes=[])}};r.exports=l,l.default=l,n.registerRule(l)}),Rt=A((e,r)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,l=/.[\r\n"'(/\\]/,p=/[\da-f]/i;r.exports=function(f,m={}){let w=f.css.valueOf(),y=m.ignoreErrors,c,t,o,i,u,a,h,d,v,b,x=w.length,g=0,T=[],O=[],k=-1;function _(){return g}function C(R){throw f.error("Unclosed "+R,g)}function I(){return O.length===0&&g>=x}function P(R){if(O.length)return O.pop();if(g>=x)return;let $=R?R.ignoreUnclosed:!1;switch(c=w.charCodeAt(g),c){case 10:case 32:case 9:case 13:case 12:{i=g;do i+=1,c=w.charCodeAt(i);while(c===32||c===10||c===9||c===13||c===12);a=["space",w.slice(g,i)],g=i-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let M=String.fromCharCode(c);a=[M,M,g];break}case 40:{if(b=T.length?T.pop()[1]:"",v=w.charCodeAt(g+1),b==="url"&&v!==39&&v!==34&&v!==32&&v!==10&&v!==9&&v!==12&&v!==13){i=g;do{if(h=!1,i=w.indexOf(")",i+1),i===-1)if(y||$){i=g;break}else C("bracket");for(d=i;w.charCodeAt(d-1)===92;)d-=1,h=!h}while(h);a=["brackets",w.slice(g,i+1),g,i],g=i}else g<=k?a=["(","(",g]:(i=w.indexOf(")",g+1),t=w.slice(g,i+1),i===-1||l.test(t)?(k=i===-1?x:i,a=["(","(",g]):(a=["brackets",t,g,i],g=i));break}case 39:case 34:{u=c===39?"'":'"',i=g;do{if(h=!1,i=w.indexOf(u,i+1),i===-1)if(y||$){i=g+1;break}else C("string");for(d=i;w.charCodeAt(d-1)===92;)d-=1,h=!h}while(h);a=["string",w.slice(g,i+1),g,i],g=i;break}case 64:{n.lastIndex=g+1,n.test(w),n.lastIndex===0?i=w.length-1:i=n.lastIndex-2,a=["at-word",w.slice(g,i+1),g,i],g=i;break}case 92:{for(i=g,o=!0;w.charCodeAt(i+1)===92;)i+=1,o=!o;if(c=w.charCodeAt(i+1),o&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(i+=1,p.test(w.charAt(i)))){for(;p.test(w.charAt(i+1));)i+=1;w.charCodeAt(i+1)===32&&(i+=1)}a=["word",w.slice(g,i+1),g,i],g=i;break}default:{c===47&&w.charCodeAt(g+1)===42?(i=w.indexOf("*/",g+2)+1,i===0&&(y||$?i=w.length:C("comment")),a=["comment",w.slice(g,i+1),g,i],g=i):(s.lastIndex=g+1,s.test(w),s.lastIndex===0?i=w.length-1:i=s.lastIndex-2,a=["word",w.slice(g,i+1),g,i],T.push(a),g=i);break}}return g++,a}function N(R){O.push(R)}return{back:N,endOfFile:I,nextToken:P,position:_}}}),Wt=A((e,r)=>{"use strict";var n=Nt(),s=Be(),l=st(),p=De(),f=$t(),m=Rt(),w={empty:!0,space:!0};function y(o){for(let i=o.length-1;i>=0;i--){let u=o[i],a=u[3]||u[2];if(a)return a}}function c(o,i,u){let a="";for(let h=i;h<u;h++)a+=o[h][1];return a}var t=class{constructor(o){this.input=o,this.root=new p,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let i=new n;i.name=o[1].slice(1),i.name===""&&this.unnamedAtrule(i,o),this.init(i,o[2]);let u,a,h,d=!1,v=!1,b=[],x=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),u=o[0],u==="("||u==="["?x.push(u==="("?")":"]"):u==="{"&&x.length>0?x.push("}"):u===x[x.length-1]&&x.pop(),x.length===0)if(u===";"){i.source.end=this.getPosition(o[2]),i.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){v=!0;break}else if(u==="}"){if(b.length>0){for(h=b.length-1,a=b[h];a&&a[0]==="space";)a=b[--h];a&&(i.source.end=this.getPosition(a[3]||a[2]),i.source.end.offset++)}this.end(o);break}else b.push(o);else b.push(o);if(this.tokenizer.endOfFile()){d=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(i.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(i,"params",b),d&&(o=b[b.length-1],i.source.end=this.getPosition(o[3]||o[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),v&&(i.nodes=[],this.current=i)}checkMissedSemicolon(o){let i=this.colon(o);if(i===!1)return;let u=0,a;for(let h=i-1;h>=0&&(a=o[h],!(a[0]!=="space"&&(u+=1,u===2)));h--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(o){let i=0,u,a,h;for(let[d,v]of o.entries()){if(a=v,h=a[0],h==="("&&(i+=1),h===")"&&(i-=1),i===0&&h===":")if(!u)this.doubleColon(a);else{if(u[0]==="word"&&u[1]==="progid")continue;return d}u=a}return!1}comment(o){let i=new s;this.init(i,o[2]),i.source.end=this.getPosition(o[3]||o[2]),i.source.end.offset++;let u=o[1].slice(2,-2);if(!u.trim())i.text="",i.raws.left=u,i.raws.right="";else{let a=u.match(/^(\s*)([^]*\S)(\s*)$/);i.text=a[2],i.raws.left=a[1],i.raws.right=a[3]}}createTokenizer(){this.tokenizer=m(this.input)}decl(o,i){let u=new l;this.init(u,o[0][2]);let a=o[o.length-1];a[0]===";"&&(this.semicolon=!0,o.pop()),u.source.end=this.getPosition(a[3]||a[2]||y(o)),u.source.end.offset++;let h=0;for(;o[h][0]!=="word";)h===o.length-1&&this.unknownWord([o[h]]),h++;u.raws.before+=c(o,0,h),u.source.start=this.getPosition(o[h][2]);let d=h;for(;h<o.length;){let T=o[h][0];if(T===":"||T==="space"||T==="comment")break;h++}u.prop=c(o,d,h);let v=h,b;for(;h<o.length&&(b=o[h],h++,b[0]!==":");)b[0]==="word"&&/\w/.test(b[1])&&this.unknownWord([b]);u.raws.between=c(o,v,h),(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let x=h;for(;h<o.length;){let T=o[h][0];if(T!=="space"&&T!=="comment")break;h++}let g=o.slice(x,h);o=o.slice(h),this.precheckMissedSemicolon(o);for(let T=o.length-1;T>=0;T--){if(b=o[T],b[1].toLowerCase()==="!important"){u.important=!0;let O=this.stringFrom(o,T);O=this.spacesFromEnd(o)+O,O!==" !important"&&(u.raws.important=O);break}else if(b[1].toLowerCase()==="important"){let O=o.slice(0),k="";for(let _=T;_>0;_--){let C=O[_][0];if(k.trim().startsWith("!")&&C!=="space")break;k=O.pop()[1]+k}k.trim().startsWith("!")&&(u.important=!0,u.raws.important=k,o=O)}if(b[0]!=="space"&&b[0]!=="comment")break}o.some(T=>T[0]!=="space"&&T[0]!=="comment")&&(u.raws.between+=g.map(T=>T[1]).join(""),g=[]),this.raw(u,"value",g.concat(o),i),u.value.includes(":")&&!i&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let i=new f;this.init(i,o[2]),i.selector="",i.raws.between="",this.current=i}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(o[2]),i.source.end.offset++)}}getPosition(o){let i=this.input.fromOffset(o);return{column:i.col,line:i.line,offset:o}}init(o,i){this.current.push(o),o.source={input:this.input,start:this.getPosition(i)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let i=!1,u=null,a=!1,h=null,d=[],v=o[1].startsWith("--"),b=[],x=o;for(;x;){if(u=x[0],b.push(x),u==="("||u==="[")h||(h=x),d.push(u==="("?")":"]");else if(v&&a&&u==="{")h||(h=x),d.push("}");else if(d.length===0)if(u===";")if(a){this.decl(b,v);return}else break;else if(u==="{"){this.rule(b);return}else if(u==="}"){this.tokenizer.back(b.pop()),i=!0;break}else u===":"&&(a=!0);else u===d[d.length-1]&&(d.pop(),d.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),d.length>0&&this.unclosedBracket(h),i&&a){if(!v)for(;b.length&&(x=b[b.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,v)}else this.unknownWord(b)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,i,u,a){let h,d,v=u.length,b="",x="",g=!0,T,O;for(let k=0;k<v;k+=1)h=u[k],d=h[0],d==="space"&&k===v-1&&!a?g=!1:d==="comment"?(O=u[k-1]?u[k-1][0]:"empty",T=u[k+1]?u[k+1][0]:"empty",!w[O]&&!w[T]?x===","?g=!1:(b+=h[1],x=h[1].slice(-1)):g=!1):(b+=h[1],x=h[1].slice(-1));if(!g){let k=u.reduce((_,C)=>_+C[1],"");o.raws[i]={raw:k,value:b}}o[i]=b}rule(o){o.pop();let i=new f;this.init(i,o[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(i,"selector",o),this.current=i}spacesAndCommentsFromEnd(o){let i,u="";for(;o.length&&(i=o[o.length-1][0],!(i!=="space"&&i!=="comment"));)u=o.pop()[1]+u;return u}spacesAndCommentsFromStart(o){let i,u="";for(;o.length&&(i=o[0][0],!(i!=="space"&&i!=="comment"));)u+=o.shift()[1];return u}spacesFromEnd(o){let i,u="";for(;o.length&&(i=o[o.length-1][0],i==="space");)u=o.pop()[1]+u;return u}stringFrom(o,i){let u="";for(let a=i;a<o.length;a++)u+=o[a][1];return o.splice(i,o.length-i),u}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word "+o[0][1],{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}};r.exports=t}),nt=A((e,r)=>{"use strict";var n=fe(),s=qe(),l=Wt();function p(f,m){let w=new s(f,m),y=new l(w);try{y.parse()}catch(c){throw c}return y.root}r.exports=p,p.default=p,n.registerParse(p)}),Lt=A((e,r)=>{"use strict";var n=fe(),s,l,p=class extends n{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new s(new l,this,f).stringify()}};p.registerLazyResult=f=>{s=f},p.registerProcessor=f=>{l=f},r.exports=p,p.default=p}),Ns=A((e,r)=>{"use strict";var n=Nt(),s=Be(),l=st(),p=qe(),f=wr(),m=De(),w=$t();function y(o,i){return o.inputs?o.inputs.map(u=>{let a={...u,__proto__:p.prototype};return a.map&&(a.map={...a.map,__proto__:f.prototype}),a}):i}function c(o,i,u){let a={...o};if(delete a.inputs,delete a.nodes,a.source){let{inputId:d,...v}=a.source;a.source=v,d!=null&&(a.source.input=i[d])}let h;if(a.type==="root")h=new m(a);else if(a.type==="decl")h=new l(a);else if(a.type==="rule")h=new w(a);else if(a.type==="comment")h=new s(a);else if(a.type==="atrule")h=new n(a);else throw new Error("Unknown node type: "+o.type);if(u){h.nodes=u;for(let d of u)d.parent=h}return h}function t(o,i){if(Array.isArray(o))return o.map(h=>t(h));let u,a=[{childIndex:0,children:[],inputs:y(o,i),json:o}];for(;a.length>0;){let h=a[a.length-1],d=h.json.nodes;if(d&&h.childIndex<d.length){let b=d[h.childIndex];h.childIndex+=1,a.push({childIndex:0,children:[],inputs:y(b,h.inputs),json:b});continue}a.pop();let v=c(h.json,h.inputs,d?h.children:void 0);a.length>0?a[a.length-1].children.push(v):u=v}return u}r.exports=t,t.default=t}),xr=A((e,r)=>{r.exports=class{generate(){}}}),kr=A((e,r)=>{"use strict";var n=fe(),{my:s}=tt(),l=class{constructor(p,f={}){if(this.type="warning",this.text=p,f.node&&f.node.source){f.node[s]||n.rebuild(f.node);let m=f.node.rangeBy(f);this.line=m.start.line,this.column=m.start.column,this.endLine=m.end.line,this.endColumn=m.end.column}for(let m in f)this[m]=f[m]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,start:this.start,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};r.exports=l,l.default=l}),zt=A((e,r)=>{"use strict";var n=kr(),s=class{get content(){return this.css}constructor(l,p,f){this.processor=l,this.messages=[],this.root=p,this.opts=f,this.css="",this.map=void 0}toString(){return this.css}warn(l,p={}){p.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(p.plugin=this.lastPlugin.postcssPlugin);let f=new n(l,p);return this.messages.push(f),f}warnings(){return this.messages.filter(l=>l.type==="warning")}};r.exports=s,s.default=s}),Or=A((e,r)=>{"use strict";var n={};r.exports=function(s){n[s]||(n[s]=!0,typeof console<"u"&&console.warn&&console.warn(s))}}),Tr=A((e,r)=>{"use strict";var n=fe(),s=Lt(),l=xr(),p=nt(),f=zt(),m=De(),w=et(),{isClean:y,my:c}=tt(),t=Or(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={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},u={Once:!0,postcssPlugin:!0,prepare:!0},a=0;function h(T){return typeof T=="object"&&typeof T.then=="function"}function d(T){let O=!1,k=o[T.type];return T.type==="decl"?O=T.prop.toLowerCase():T.type==="atrule"&&(O=T.name.toLowerCase()),O&&T.append?[k,k+"-"+O,a,k+"Exit",k+"Exit-"+O]:O?[k,k+"-"+O,k+"Exit",k+"Exit-"+O]:T.append?[k,a,k+"Exit"]:[k,k+"Exit"]}function v(T){let O;return T.type==="document"?O=["Document",a,"DocumentExit"]:T.type==="root"?O=["Root",a,"RootExit"]:O=d(T),{eventIndex:0,events:O,iterator:0,node:T,visitorIndex:0,visitors:[]}}function b(T){let O=[T];for(;O.length>0;){let k=O.pop();if(k[y]=!1,k.nodes)for(let _ of k.nodes)O.push(_)}return T}var x={},g=class _r{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(O,k,_){this.stringified=!1,this.processed=!1;let C;if(typeof k=="object"&&k!==null&&(k.type==="root"||k.type==="document"))C=b(k);else if(k instanceof _r||k instanceof f)C=b(k.root),k.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=k.map);else{let I=p;_.syntax&&(I=_.syntax.parse),_.parser&&(I=_.parser),I.parse&&(I=I.parse);try{C=I(k,_)}catch(P){this.processed=!0,this.error=P}C&&!C[c]&&n.rebuild(C)}this.result=new f(O,C,_),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(O){return this.async().catch(O)}finally(O){return this.async().finally(O)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(O,k){let _=this.result.lastPlugin;try{k&&k.addToError(O),this.error=O,O.name==="CssSyntaxError"&&!O.plugin?(O.plugin=_.postcssPlugin,O.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return O}prepareVisitors(){this.listeners={};let O=(k,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([k,C])};for(let k of this.plugins)if(typeof k=="object")for(let _ in k){if(!i[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${k.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[_])if(typeof k[_]=="object")for(let C in k[_])C==="*"?O(k,_,k[_][C]):O(k,_+"-"+C.toLowerCase(),k[_][C]);else typeof k[_]=="function"&&O(k,_,k[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let O=0;O<this.plugins.length;O++){let k=this.plugins[O],_=this.runOnRoot(k);if(h(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let O=this.result.root;for(;!O[y];){O[y]=!0;let k=[v(O)];for(;k.length>0;){let _=this.visitTick(k);if(h(_))try{await _}catch(C){let I=k[k.length-1].node;throw this.handleError(C,I)}}}if(this.listeners.OnceExit)for(let[k,_]of this.listeners.OnceExit){this.result.lastPlugin=k;try{if(O.type==="document"){let C=O.nodes.map(I=>_(I,this.helpers));await Promise.all(C)}else await _(O,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(O){this.result.lastPlugin=O;try{if(typeof O=="object"&&O.Once){if(this.result.root.type==="document"){let k=this.result.root.nodes.map(_=>O.Once(_,this.helpers));return h(k[0])?Promise.all(k):k}return O.Once(this.result.root,this.helpers)}else if(typeof O=="function")return O(this.result.root,this.result)}catch(k){throw this.handleError(k)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let O=this.result.opts,k=w;O.syntax&&(k=O.syntax.stringify),O.stringifier&&(k=O.stringifier),k.stringify&&(k=k.stringify);let _=this.result.root.source;if(O.map===void 0&&!(_&&_.input&&_.input.map)){let I="";return k(this.result.root,P=>{I+=P}),this.result.css=I,this.result}let C=new l(k,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 O of this.plugins){let k=this.runOnRoot(O);if(h(k))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let O=this.result.root;for(;!O[y];)O[y]=!0,this.walkSync(O);if(this.listeners.OnceExit)if(O.type==="document")for(let k of O.nodes)this.visitSync(this.listeners.OnceExit,k);else this.visitSync(this.listeners.OnceExit,O)}return this.result}then(O,k){return this.async().then(O,k)}toString(){return this.css}visitSync(O,k){for(let[_,C]of O){this.result.lastPlugin=_;let I;try{I=C(k,this.helpers)}catch(P){throw this.handleError(P,k.proxyOf)}if(k.type!=="root"&&k.type!=="document"&&!k.parent)return!0;if(h(I))throw this.getAsyncError()}}visitTick(O){let k=O[O.length-1],{node:_,visitors:C}=k;if(_.type!=="root"&&_.type!=="document"&&!_.parent){O.pop();return}if(C.length>0&&k.visitorIndex<C.length){let[P,N]=C[k.visitorIndex];k.visitorIndex+=1,k.visitorIndex===C.length&&(k.visitors=[],k.visitorIndex=0),this.result.lastPlugin=P;try{return N(_.toProxy(),this.helpers)}catch(R){throw this.handleError(R,_)}}if(k.iterator!==0){let P=k.iterator;k.descending&&(k.descending=!1,_.indexes[P]+=1);let N;for(;N=_.nodes[_.indexes[P]];){if(!N[y]){N[y]=!0,k.descending=!0,O.push(v(N));return}_.indexes[P]+=1}k.iterator=0,delete _.indexes[P]}let I=k.events;for(;k.eventIndex<I.length;){let P=I[k.eventIndex];if(k.eventIndex+=1,P===a){_.nodes&&_.nodes.length&&(_[y]=!0,k.iterator=_.getIterator());return}else if(this.listeners[P]){k.visitors=this.listeners[P];return}}O.pop()}walkSync(O){O[y]=!0;let k=[{eventIndex:0,events:d(O),iterator:0,node:O}];for(;k.length>0;){let _=k[k.length-1],C=_.node;if(_.iterator!==0){let I=_.iterator;_.descending&&(_.descending=!1,C.indexes[I]+=1);let P,N=!1;for(;P=C.nodes[C.indexes[I]];){if(!P[y]){P[y]=!0,_.descending=!0,k.push({eventIndex:0,events:d(P),iterator:0,node:P}),N=!0;break}C.indexes[I]+=1}if(N)continue;_.iterator=0,delete C.indexes[I]}if(_.eventIndex<_.events.length){let I=_.events[_.eventIndex];if(_.eventIndex+=1,I===a)C.nodes&&C.nodes.length&&(_.iterator=C.getIterator());else{let P=this.listeners[I];P&&this.visitSync(P,C.toProxy())&&k.pop()}continue}k.pop()}}warnings(){return this.sync().warnings()}};g.registerPostcss=T=>{x=T},r.exports=g,g.default=g,m.registerLazyResult(g),s.registerLazyResult(g)}),$s=A((e,r)=>{"use strict";var n=xr(),s=nt(),l=zt(),p=et(),f=Or(),m=class{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 w,y=s;try{w=y(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=w,w}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(w,y,c){y=y.toString(),this.stringified=!1,this._processor=w,this._css=y,this._opts=c,this._map=void 0;let t=p;this.result=new l(this._processor,void 0,this._opts),this.result.css=y;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let i=new n(t,void 0,this._opts,y);if(i.isMap()){let[u,a]=i.generate();u&&(this.result.css=u),a&&(this.result.map=a)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(w){return this.async().catch(w)}finally(w){return this.async().finally(w)}sync(){if(this.error)throw this.error;return this.result}then(w,y){return this.async().then(w,y)}toString(){return this._css}warnings(){return[]}};r.exports=m,m.default=m}),Rs=A((e,r)=>{"use strict";var n=Lt(),s=Tr(),l=$s(),p=De(),f=class{constructor(m=[]){this.version="8.5.32",this.plugins=this.normalize(m)}normalize(m){let w=[];for(let y of m)if(y.postcss===!0?y=y():y.postcss&&(y=y.postcss),typeof y=="object"&&Array.isArray(y.plugins))w=w.concat(y.plugins);else if(typeof y=="object"&&y.postcssPlugin)w.push(y);else if(typeof y=="function")w.push(y);else if(!(typeof y=="object"&&(y.parse||y.stringify)))throw new Error(y+" is not a PostCSS plugin");return w}process(m,w={}){return!this.plugins.length&&!w.parser&&!w.stringifier&&!w.syntax?new l(this,m,w):new s(this,m,w)}use(m){return this.plugins=this.plugins.concat(this.normalize([m])),this}};r.exports=f,f.default=f,p.registerProcessor(f),n.registerProcessor(f)}),Bt=A((e,r)=>{"use strict";var n=Nt(),s=Be(),l=fe(),p=Mt(),f=st(),m=Lt(),w=Ns(),y=qe(),c=Tr(),t=br(),o=rt(),i=nt(),u=Rs(),a=zt(),h=De(),d=$t(),v=et(),b=kr();function x(...g){return g.length===1&&Array.isArray(g[0])&&(g=g[0]),new u(g)}x.plugin=function(g,T){let O=!1;function k(...C){console&&console.warn&&!O&&(O=!0,console.warn(g+`: postcss.plugin was deprecated. Migration guide:
|
|
23
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let I=T(...C);return I.postcssPlugin=g,I.postcssVersion=new u().version,I}let _;return Object.defineProperty(k,"postcss",{get(){return _||(_=k()),_}}),k.process=function(C,I,P){return x([k(P)]).process(C,I)},k},x.stringify=v,x.parse=i,x.fromJSON=w,x.list=t,x.comment=g=>new s(g),x.atRule=g=>new n(g),x.decl=g=>new f(g),x.rule=g=>new d(g),x.root=g=>new h(g),x.document=g=>new m(g),x.CssSyntaxError=p,x.Declaration=f,x.Container=l,x.Processor=u,x.Document=m,x.Comment=s,x.Warning=b,x.AtRule=n,x.Result=a,x.Input=y,x.Rule=d,x.Root=h,x.Node=o,c.registerPostcss(x),r.exports=x,x.default=x}),Ws=A((e,r)=>{var{Container:n}=Bt(),s=class extends n{constructor(l){super(l),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};r.exports=s}),Ls=A((e,r)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,l=/.[\r\n"'(/\\]/,p=/[\da-f]/i,f=/[\n\f\r]/g;r.exports=function(m,w={}){let y=m.css.valueOf(),c=w.ignoreErrors,t,o,i,u,a,h,d,v,b,x=y.length,g=0,T=[],O=[],k;function _(){return g}function C($){throw m.error("Unclosed "+$,g)}function I(){return O.length===0&&g>=x}function P(){let $=1,M=!1,z=!1;for(;$>0;)o+=1,y.length<=o&&C("interpolation"),t=y.charCodeAt(o),v=y.charCodeAt(o+1),M?!z&&t===M?(M=!1,z=!1):t===92?z=!z:z&&(z=!1):t===39||t===34?M=t:t===125?$-=1:t===35&&v===123&&($+=1)}function N($){if(O.length)return O.pop();if(g>=x)return;let M=$?$.ignoreUnclosed:!1;switch(t=y.charCodeAt(g),t){case 10:case 32:case 9:case 13:case 12:{o=g;do o+=1,t=y.charCodeAt(o);while(t===32||t===10||t===9||t===13||t===12);b=["space",y.slice(g,o)],g=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let z=String.fromCharCode(t);b=[z,z,g];break}case 44:{b=["word",",",g,g+1];break}case 40:{if(d=T.length?T.pop()[1]:"",v=y.charCodeAt(g+1),d==="url"&&v!==39&&v!==34){for(k=1,h=!1,o=g+1;o<=y.length-1;){if(v=y.charCodeAt(o),v===92)h=!h;else if(v===40)k+=1;else if(v===41&&(k-=1,k===0))break;o+=1}u=y.slice(g,o+1),b=["brackets",u,g,o],g=o}else o=y.indexOf(")",g+1),u=y.slice(g,o+1),o===-1||l.test(u)?b=["(","(",g]:(b=["brackets",u,g,o],g=o);break}case 39:case 34:{for(i=t,o=g,h=!1;o<x&&(o++,o===x&&C("string"),t=y.charCodeAt(o),v=y.charCodeAt(o+1),!(!h&&t===i));)t===92?h=!h:h?h=!1:t===35&&v===123&&P();b=["string",y.slice(g,o+1),g,o],g=o;break}case 64:{n.lastIndex=g+1,n.test(y),n.lastIndex===0?o=y.length-1:o=n.lastIndex-2,b=["at-word",y.slice(g,o+1),g,o],g=o;break}case 92:{for(o=g,a=!0;y.charCodeAt(o+1)===92;)o+=1,a=!a;if(t=y.charCodeAt(o+1),a&&t!==47&&t!==32&&t!==10&&t!==9&&t!==13&&t!==12&&(o+=1,p.test(y.charAt(o)))){for(;p.test(y.charAt(o+1));)o+=1;y.charCodeAt(o+1)===32&&(o+=1)}b=["word",y.slice(g,o+1),g,o],g=o;break}default:v=y.charCodeAt(g+1),t===35&&v===123?(o=g,P(),u=y.slice(g,o+1),b=["word",u,g,o],g=o):t===47&&v===42?(o=y.indexOf("*/",g+2)+1,o===0&&(c||M?o=y.length:C("comment")),b=["comment",y.slice(g,o+1),g,o],g=o):t===47&&v===47?(f.lastIndex=g+1,f.test(y),f.lastIndex===0?o=y.length-1:o=f.lastIndex-2,u=y.slice(g,o+1),b=["comment",u,g,o,"inline"],g=o):(s.lastIndex=g+1,s.test(y),s.lastIndex===0?o=y.length-1:o=s.lastIndex-2,b=["word",y.slice(g,o+1),g,o],T.push(b),g=o);break}return g++,b}function R($){O.push($)}return{back:R,endOfFile:I,nextToken:N,position:_}}}),zs=A((e,r)=>{var{Comment:n}=Bt(),s=Wt(),l=Ws(),p=Ls(),f=class extends s{atrule(m){let w=m[1],y=m;for(;!this.tokenizer.endOfFile();){let c=this.tokenizer.nextToken();if(c[0]==="word"&&c[2]===y[3]+1)w+=c[1],y=c;else{this.tokenizer.back(c);break}}super.atrule(["at-word",w,m[2],y[3]])}comment(m){if(m[4]==="inline"){let w=new n;this.init(w,m[2]),w.raws.inline=!0;let y=this.input.fromOffset(m[3]);w.source.end={column:y.col,line:y.line,offset:m[3]+1};let c=m[1].slice(2);if(/^\s*$/.test(c))w.text="",w.raws.left=c,w.raws.right="";else{let t=c.match(/^(\s*)([^]*\S)(\s*)$/),o=t[2].replace(/(\*\/|\/\*)/g,"*//*");w.text=o,w.raws.left=t[1],w.raws.right=t[3],w.raws.text=t[2]}}else super.comment(m)}createTokenizer(){this.tokenizer=p(this.input)}raw(m,w,y,c){if(super.raw(m,w,y,c),m.raws[w]){let t=m.raws[w].raw;m.raws[w].raw=y.reduce((o,i)=>{if(i[0]==="comment"&&i[4]==="inline"){let u=i[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+i[1]},""),t!==m.raws[w].raw&&(m.raws[w].scss=t)}}rule(m){let w=!1,y=0,c="";for(let t of m)if(w)t[0]!=="comment"&&t[0]!=="{"&&(c+=t[1]);else{if(t[0]==="space"&&t[1].includes(`
|
|
24
|
+
`))break;t[0]==="("?y+=1:t[0]===")"?y-=1:y===0&&t[0]===":"&&(w=!0)}if(!w||c.trim()===""||/^[#:A-Za-z-]/.test(c))super.rule(m);else{m.pop();let t=new l;this.init(t,m[0][2]);let o;for(let u=m.length-1;u>=0;u--)if(m[u][0]!=="space"){o=m[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);t.source.end={column:u.col,line:u.line,offset:o[3]+1}}else{let u=this.input.fromOffset(o[2]);t.source.end={column:u.col,line:u.line,offset:o[2]+1}}for(;m[0][0]!=="word";)t.raws.before+=m.shift()[1];if(m[0][2]){let u=this.input.fromOffset(m[0][2]);t.source.start={column:u.col,line:u.line,offset:m[0][2]}}for(t.prop="";m.length;){let u=m[0][0];if(u===":"||u==="space"||u==="comment")break;t.prop+=m.shift()[1]}t.raws.between="";let i;for(;m.length;)if(i=m.shift(),i[0]===":"){t.raws.between+=i[1];break}else t.raws.between+=i[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(m),this.precheckMissedSemicolon(m);for(let u=m.length-1;u>0;u--){if(i=m[u],i[1]==="!important"){t.important=!0;let a=this.stringFrom(m,u);a=this.spacesFromEnd(m)+a,a!==" !important"&&(t.raws.important=a);break}else if(i[1]==="important"){let a=m.slice(0),h="";for(let d=u;d>0;d--){let v=a[d][0];if(h.trim().indexOf("!")===0&&v!=="space")break;h=a.pop()[1]+h}h.trim().indexOf("!")===0&&(t.important=!0,t.raws.important=h,m=a)}if(i[0]!=="space"&&i[0]!=="comment")break}this.raw(t,"value",m),t.value.includes(":")&&this.checkMissedSemicolon(m),this.current=t}}};r.exports=f}),Bs=A((e,r)=>{var{Input:n}=Bt(),s=zs();r.exports=function(l,p){let f=new n(l,p),m=new s(f);return m.parse(),m.root}}),Sr=A(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(n){this.after=n.after,this.before=n.before,this.type=n.type,this.value=n.value,this.sourceIndex=n.sourceIndex}e.default=r}),Cr=A(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Sr(),n=s(r);function s(p){return p&&p.__esModule?p:{default:p}}function l(p){var f=this;this.constructor(p),this.nodes=p.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(m){m.parent=f})}l.prototype=Object.create(n.default.prototype),l.constructor=n.default,l.prototype.walk=function(p,f){for(var m=typeof p=="string"||p instanceof RegExp,w=m?f:p,y=typeof p=="string"?new RegExp(p):p,c=0;c<this.nodes.length;c++){var t=this.nodes[c],o=m?y.test(t.type):!0;if(o&&w&&w(t,c,this.nodes)===!1||t.nodes&&t.walk(p,f)===!1)return!1}return!0},l.prototype.each=function(){for(var p=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],f=0;f<this.nodes.length;f++){var m=this.nodes[f];if(p(m,f,this.nodes)===!1)return!1}return!0},e.default=l}),qs=A(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=f,e.parseMediaQuery=m,e.parseMediaList=w;var r=Sr(),n=p(r),s=Cr(),l=p(s);function p(y){return y&&y.__esModule?y:{default:y}}function f(y){var c=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[{mode:"normal",character:null}],o=[],i=0,u="",a=null,h=null,d=c,v=y;y[0]==="("&&y[y.length-1]===")"&&(v=y.substring(1,y.length-1),d++);for(var b=0;b<v.length;b++){var x=v[b];if((x==="'"||x==='"')&&(t[i].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:x}),i++):t[i].mode==="string"&&t[i].character===x&&v[b-1]!=="\\"&&(t.pop(),i--)),x==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),i++):x==="}"&&(t.pop(),i--),t[i].mode==="normal"&&x===":"){var g=v.substring(b+1);h={type:"value",before:/^(\s*)/.exec(g)[1],after:/(\s*)$/.exec(g)[1],value:g.trim()},h.sourceIndex=h.before.length+b+1+d,a={type:"colon",sourceIndex:b+d,after:h.before,value:":"};break}u+=x}return u={type:"media-feature",before:/^(\s*)/.exec(u)[1],after:/(\s*)$/.exec(u)[1],value:u.trim()},u.sourceIndex=u.before.length+d,o.push(u),a!==null&&(a.before=u.after,o.push(a)),h!==null&&o.push(h),o}function m(y){var c=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],o=0,i=!1,u=void 0;function a(){return{before:"",after:"",value:""}}u=a();for(var h=0;h<y.length;h++){var d=y[h];i?(u.value+=d,(d==="{"||d==="(")&&o++,(d===")"||d==="}")&&o--):d.search(/\s/)!==-1?u.before+=d:(d==="("&&(u.type="media-feature-expression",o++),u.value=d,u.sourceIndex=c+h,i=!0),i&&o===0&&(d===")"||h===y.length-1||y[h+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(u.value)!==-1&&(u.type="keyword"),u.type==="media-feature-expression"&&(u.nodes=f(u.value,u.sourceIndex)),t.push(Array.isArray(u.nodes)?new l.default(u):new n.default(u)),u=a(),i=!1)}for(var v=0;v<t.length;v++)if(u=t[v],v>0&&(t[v-1].after=u.before),u.type===void 0){if(v>0){if(t[v-1].type==="media-feature-expression"){u.type="keyword";continue}if(t[v-1].value==="not"||t[v-1].value==="only"){u.type="media-type";continue}if(t[v-1].value==="and"){u.type="media-feature-expression";continue}t[v-1].type==="media-type"&&(t[v+1]?u.type=t[v+1].type==="media-feature-expression"?"keyword":"media-feature-expression":u.type="media-feature-expression")}if(v===0){if(!t[v+1]){u.type="media-type";continue}if(t[v+1]&&(t[v+1].type==="media-feature-expression"||t[v+1].type==="keyword")){u.type="media-type";continue}if(t[v+2]){if(t[v+2].type==="media-feature-expression"){u.type="media-type",t[v+1].type="keyword";continue}if(t[v+2].type==="keyword"){u.type="keyword",t[v+1].type="media-type";continue}}if(t[v+3]&&t[v+3].type==="media-feature-expression"){u.type="keyword",t[v+1].type="media-type",t[v+2].type="keyword";continue}}}return t}function w(y){var c=[],t=0,o=0,i=/^(\s*)url\s*\(/.exec(y);if(i!==null){for(var u=i[0].length,a=1;a>0;){var h=y[u];h==="("&&a++,h===")"&&a--,u++}c.unshift(new n.default({type:"url",value:y.substring(0,u).trim(),sourceIndex:i[1].length,before:i[1],after:/^(\s*)/.exec(y.substring(u))[1]})),t=u}for(var d=t;d<y.length;d++){var v=y[d];if(v==="("&&o++,v===")"&&o--,o===0&&v===","){var b=y.substring(t,d),x=/^(\s*)/.exec(b)[1];c.push(new l.default({type:"media-query",value:b.trim(),sourceIndex:t+x.length,nodes:m(b,t),before:x,after:/(\s*)$/.exec(b)[1]})),t=d+1}}var g=y.substring(t),T=/^(\s*)/.exec(g)[1];return c.push(new l.default({type:"media-query",value:g.trim(),sourceIndex:t+T.length,nodes:m(g,t),before:T,after:/(\s*)$/.exec(g)[1]})),c}}),Ds=A(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var r=Cr(),n=l(r),s=qs();function l(f){return f&&f.__esModule?f:{default:f}}function p(f){return new n.default({nodes:(0,s.parseMediaList)(f),type:"media-query-list",value:f.trim()})}}),Er=A((e,r)=>{r.exports=function(n,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(n)?n.map(function(p){return p}):n;return l(n,1);function l(p,f){return p.reduce(function(m,w){return Array.isArray(w)&&f<s?m.concat(l(w,f+1)):m.concat(w)},[])}}}),Ar=A((e,r)=>{r.exports=function(n,s){for(var l=-1,p=[];(l=n.indexOf(s,l+1))!==-1;)p.push(l);return p}}),Ir=A((e,r)=>{"use strict";function n(p,f){for(var m=1,w=p.length,y=p[0],c=p[0],t=1;t<w;++t)if(c=y,y=p[t],f(y,c)){if(t===m){m++;continue}p[m++]=y}return p.length=m,p}function s(p){for(var f=1,m=p.length,w=p[0],y=p[0],c=1;c<m;++c,y=w)if(y=w,w=p[c],w!==y){if(c===f){f++;continue}p[f++]=w}return p.length=f,p}function l(p,f,m){return p.length===0?p:f?(m||p.sort(f),n(p,f)):(m||p.sort(),s(p))}r.exports=l}),Se=A((e,r)=>{"use strict";e.__esModule=!0;var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};function s(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}var l=function f(m,w){if((typeof m>"u"?"undefined":n(m))!=="object")return m;var y=new m.constructor;for(var c in m)if(m.hasOwnProperty(c)){var t=m[c],o=typeof t>"u"?"undefined":n(t);c==="parent"&&o==="object"?w&&(y[c]=w):t instanceof Array?y[c]=t.map(function(i){return f(i,y)}):y[c]=f(t,y)}return y},p=(function(){function f(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s(this,f);for(var w in m)this[w]=m[w];var y=m.spaces;y=y===void 0?{}:y;var c=y.before,t=c===void 0?"":c,o=y.after,i=o===void 0?"":o;this.spaces={before:t,after:i}}return f.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},f.prototype.replaceWith=function(){if(this.parent){for(var m in arguments)this.parent.insertBefore(this,arguments[m]);this.remove()}return this},f.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},f.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},f.prototype.clone=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=l(this);for(var y in m)w[y]=m[y];return w},f.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},f})();e.default=p,r.exports=e.default}),G=A(e=>{"use strict";e.__esModule=!0;var r=e.TAG="tag",n=e.STRING="string",s=e.SELECTOR="selector",l=e.ROOT="root",p=e.PSEUDO="pseudo",f=e.NESTING="nesting",m=e.ID="id",w=e.COMMENT="comment",y=e.COMBINATOR="combinator",c=e.CLASS="class",t=e.ATTRIBUTE="attribute",o=e.UNIVERSAL="universal"}),qt=A((e,r)=>{"use strict";e.__esModule=!0;var n=(function(){function i(u,a){for(var h=0;h<a.length;h++){var d=a[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,a,h){return a&&i(u.prototype,a),h&&i(u,h),u}})(),s=Se(),l=w(s),p=G(),f=m(p);function m(i){if(i&&i.__esModule)return i;var u={};if(i!=null)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(u[a]=i[a]);return u.default=i,u}function w(i){return i&&i.__esModule?i:{default:i}}function y(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}function c(i,u){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:i}function t(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);i.prototype=Object.create(u&&u.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(i,u):i.__proto__=u)}var o=(function(i){t(u,i);function u(a){y(this,u);var h=c(this,i.call(this,a));return h.nodes||(h.nodes=[]),h}return u.prototype.append=function(a){return a.parent=this,this.nodes.push(a),this},u.prototype.prepend=function(a){return a.parent=this,this.nodes.unshift(a),this},u.prototype.at=function(a){return this.nodes[a]},u.prototype.index=function(a){return typeof a=="number"?a:this.nodes.indexOf(a)},u.prototype.removeChild=function(a){a=this.index(a),this.at(a).parent=void 0,this.nodes.splice(a,1);var h=void 0;for(var d in this.indexes)h=this.indexes[d],h>=a&&(this.indexes[d]=h-1);return this},u.prototype.removeAll=function(){for(var d=this.nodes,a=Array.isArray(d),h=0,d=a?d:d[Symbol.iterator]();;){var v;if(a){if(h>=d.length)break;v=d[h++]}else{if(h=d.next(),h.done)break;v=h.value}var b=v;b.parent=void 0}return this.nodes=[],this},u.prototype.empty=function(){return this.removeAll()},u.prototype.insertAfter=function(a,h){var d=this.index(a);this.nodes.splice(d+1,0,h);var v=void 0;for(var b in this.indexes)v=this.indexes[b],d<=v&&(this.indexes[b]=v+this.nodes.length);return this},u.prototype.insertBefore=function(a,h){var d=this.index(a);this.nodes.splice(d,0,h);var v=void 0;for(var b in this.indexes)v=this.indexes[b],d<=v&&(this.indexes[b]=v+this.nodes.length);return this},u.prototype.each=function(a){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var h=this.lastEach;if(this.indexes[h]=0,!!this.length){for(var d=void 0,v=void 0;this.indexes[h]<this.length&&(d=this.indexes[h],v=a(this.at(d),d),v!==!1);)this.indexes[h]+=1;if(delete this.indexes[h],v===!1)return!1}},u.prototype.walk=function(a){return this.each(function(h,d){var v=a(h,d);if(v!==!1&&h.length&&(v=h.walk(a)),v===!1)return!1})},u.prototype.walkAttributes=function(a){var h=this;return this.walk(function(d){if(d.type===f.ATTRIBUTE)return a.call(h,d)})},u.prototype.walkClasses=function(a){var h=this;return this.walk(function(d){if(d.type===f.CLASS)return a.call(h,d)})},u.prototype.walkCombinators=function(a){var h=this;return this.walk(function(d){if(d.type===f.COMBINATOR)return a.call(h,d)})},u.prototype.walkComments=function(a){var h=this;return this.walk(function(d){if(d.type===f.COMMENT)return a.call(h,d)})},u.prototype.walkIds=function(a){var h=this;return this.walk(function(d){if(d.type===f.ID)return a.call(h,d)})},u.prototype.walkNesting=function(a){var h=this;return this.walk(function(d){if(d.type===f.NESTING)return a.call(h,d)})},u.prototype.walkPseudos=function(a){var h=this;return this.walk(function(d){if(d.type===f.PSEUDO)return a.call(h,d)})},u.prototype.walkTags=function(a){var h=this;return this.walk(function(d){if(d.type===f.TAG)return a.call(h,d)})},u.prototype.walkUniversals=function(a){var h=this;return this.walk(function(d){if(d.type===f.UNIVERSAL)return a.call(h,d)})},u.prototype.split=function(a){var h=this,d=[];return this.reduce(function(v,b,x){var g=a.call(h,b);return d.push(b),g?(v.push(d),d=[]):x===h.length-1&&v.push(d),v},[])},u.prototype.map=function(a){return this.nodes.map(a)},u.prototype.reduce=function(a,h){return this.nodes.reduce(a,h)},u.prototype.every=function(a){return this.nodes.every(a)},u.prototype.some=function(a){return this.nodes.some(a)},u.prototype.filter=function(a){return this.nodes.filter(a)},u.prototype.sort=function(a){return this.nodes.sort(a)},u.prototype.toString=function(){return this.map(String).join("")},n(u,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),u})(l.default);e.default=o,r.exports=e.default}),Us=A((e,r)=>{"use strict";e.__esModule=!0;var n=qt(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.ROOT,i}return t.prototype.toString=function(){var o=this.reduce(function(i,u){var a=String(u);return a?i+a+",":""},"").slice(0,-1);return this.trailingComma?o+",":o},t})(s.default);e.default=y,r.exports=e.default}),Fs=A((e,r)=>{"use strict";e.__esModule=!0;var n=qt(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.SELECTOR,i}return t})(s.default);e.default=y,r.exports=e.default}),Ue=A((e,r)=>{"use strict";e.__esModule=!0;var n=(function(){function c(t,o){for(var i=0;i<o.length;i++){var u=o[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}return function(t,o,i){return o&&c(t.prototype,o),i&&c(t,i),t}})(),s=Se(),l=p(s);function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(){return f(this,t),m(this,c.apply(this,arguments))}return t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},n(t,[{key:"ns",get:function(){var o=this.namespace;return o?(typeof o=="string"?o:"")+"|":""}}]),t})(l.default);e.default=y,r.exports=e.default}),Vs=A((e,r)=>{"use strict";e.__esModule=!0;var n=Ue(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.CLASS,i}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},t})(s.default);e.default=y,r.exports=e.default}),Js=A((e,r)=>{"use strict";e.__esModule=!0;var n=Se(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.COMMENT,i}return t})(s.default);e.default=y,r.exports=e.default}),Hs=A((e,r)=>{"use strict";e.__esModule=!0;var n=Ue(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.ID,i}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},t})(s.default);e.default=y,r.exports=e.default}),Gs=A((e,r)=>{"use strict";e.__esModule=!0;var n=Ue(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.TAG,i}return t})(s.default);e.default=y,r.exports=e.default}),Qs=A((e,r)=>{"use strict";e.__esModule=!0;var n=Se(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.STRING,i}return t})(s.default);e.default=y,r.exports=e.default}),Ys=A((e,r)=>{"use strict";e.__esModule=!0;var n=qt(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.PSEUDO,i}return t.prototype.toString=function(){var o=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),o,this.spaces.after].join("")},t})(s.default);e.default=y,r.exports=e.default}),Zs=A((e,r)=>{"use strict";e.__esModule=!0;var n=Ue(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.ATTRIBUTE,i.raws={},i}return t.prototype.toString=function(){var o=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&o.push(this.operator),this.value&&o.push(this.value),this.raws.insensitive?o.push(this.raws.insensitive):this.insensitive&&o.push(" i"),o.push("]"),o.concat(this.spaces.after).join("")},t})(s.default);e.default=y,r.exports=e.default}),Ks=A((e,r)=>{"use strict";e.__esModule=!0;var n=Ue(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.UNIVERSAL,i.value="*",i}return t})(s.default);e.default=y,r.exports=e.default}),Xs=A((e,r)=>{"use strict";e.__esModule=!0;var n=Se(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.COMBINATOR,i}return t})(s.default);e.default=y,r.exports=e.default}),en=A((e,r)=>{"use strict";e.__esModule=!0;var n=Se(),s=p(n),l=G();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.NESTING,i.value="&",i}return t})(s.default);e.default=y,r.exports=e.default}),tn=A((e,r)=>{"use strict";e.__esModule=!0,e.default=n;function n(s){return s.sort(function(l,p){return l-p})}r.exports=e.default}),rn=A((e,r)=>{"use strict";e.__esModule=!0,e.default=I;var n=39,s=34,l=92,p=47,f=10,m=32,w=12,y=9,c=13,t=43,o=62,i=126,u=124,a=44,h=40,d=41,v=91,b=93,x=59,g=42,T=58,O=38,k=64,_=/[ \n\t\r\{\(\)'"\\;/]/g,C=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function I(P){for(var N=[],R=P.css.valueOf(),$=void 0,M=void 0,z=void 0,ue=void 0,se=void 0,ne=void 0,ve=void 0,we=void 0,be=void 0,B=void 0,Ee=void 0,mt=R.length,j=-1,S=1,E=0,W=function(L,q){if(P.safe)R+=q,M=R.length-1;else throw P.error("Unclosed "+L,S,E-j,E)};E<mt;){switch($=R.charCodeAt(E),$===f&&(j=E,S+=1),$){case f:case m:case y:case c:case w:M=E;do M+=1,$=R.charCodeAt(M),$===f&&(j=M,S+=1);while($===m||$===f||$===y||$===c||$===w);N.push(["space",R.slice(E,M),S,E-j,E]),E=M-1;break;case t:case o:case i:case u:M=E;do M+=1,$=R.charCodeAt(M);while($===t||$===o||$===i||$===u);N.push(["combinator",R.slice(E,M),S,E-j,E]),E=M-1;break;case g:N.push(["*","*",S,E-j,E]);break;case O:N.push(["&","&",S,E-j,E]);break;case a:N.push([",",",",S,E-j,E]);break;case v:N.push(["[","[",S,E-j,E]);break;case b:N.push(["]","]",S,E-j,E]);break;case T:N.push([":",":",S,E-j,E]);break;case x:N.push([";",";",S,E-j,E]);break;case h:N.push(["(","(",S,E-j,E]);break;case d:N.push([")",")",S,E-j,E]);break;case n:case s:z=$===n?"'":'"',M=E;do for(B=!1,M=R.indexOf(z,M+1),M===-1&&W("quote",z),Ee=M;R.charCodeAt(Ee-1)===l;)Ee-=1,B=!B;while(B);N.push(["string",R.slice(E,M+1),S,E-j,S,M-j,E]),E=M;break;case k:_.lastIndex=E+1,_.test(R),_.lastIndex===0?M=R.length-1:M=_.lastIndex-2,N.push(["at-word",R.slice(E,M+1),S,E-j,S,M-j,E]),E=M;break;case l:for(M=E,ve=!0;R.charCodeAt(M+1)===l;)M+=1,ve=!ve;$=R.charCodeAt(M+1),ve&&$!==p&&$!==m&&$!==f&&$!==y&&$!==c&&$!==w&&(M+=1),N.push(["word",R.slice(E,M+1),S,E-j,S,M-j,E]),E=M;break;default:$===p&&R.charCodeAt(E+1)===g?(M=R.indexOf("*/",E+2)+1,M===0&&W("comment","*/"),ne=R.slice(E,M+1),ue=ne.split(`
|
|
25
|
+
`),se=ue.length-1,se>0?(we=S+se,be=M-ue[se].length):(we=S,be=j),N.push(["comment",ne,S,E-j,we,M-be,E]),j=be,S=we,E=M):(C.lastIndex=E+1,C.test(R),C.lastIndex===0?M=R.length-1:M=C.lastIndex-2,N.push(["word",R.slice(E,M+1),S,E-j,S,M-j,E]),E=M);break}E++}return N}r.exports=e.default}),sn=A((e,r)=>{"use strict";e.__esModule=!0;var n=(function(){function j(S,E){for(var W=0;W<E.length;W++){var L=E[W];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(S,L.key,L)}}return function(S,E,W){return E&&j(S.prototype,E),W&&j(S,W),S}})(),s=Er(),l=B(s),p=Ar(),f=B(p),m=Ir(),w=B(m),y=Us(),c=B(y),t=Fs(),o=B(t),i=Vs(),u=B(i),a=Js(),h=B(a),d=Hs(),v=B(d),b=Gs(),x=B(b),g=Qs(),T=B(g),O=Ys(),k=B(O),_=Zs(),C=B(_),I=Ks(),P=B(I),N=Xs(),R=B(N),$=en(),M=B($),z=tn(),ue=B(z),se=rn(),ne=B(se),ve=G(),we=be(ve);function be(j){if(j&&j.__esModule)return j;var S={};if(j!=null)for(var E in j)Object.prototype.hasOwnProperty.call(j,E)&&(S[E]=j[E]);return S.default=j,S}function B(j){return j&&j.__esModule?j:{default:j}}function Ee(j,S){if(!(j instanceof S))throw new TypeError("Cannot call a class as a function")}var mt=(function(){function j(S){Ee(this,j),this.input=S,this.lossy=S.options.lossless===!1,this.position=0,this.root=new c.default;var E=new o.default;return this.root.append(E),this.current=E,this.lossy?this.tokens=(0,ne.default)({safe:S.safe,css:S.css.trim()}):this.tokens=(0,ne.default)(S),this.loop()}return j.prototype.attribute=function(){var S="",E=void 0,W=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)S+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~S.indexOf("]")&&this.error("Expected a closing square bracket.");var L=S.split(/((?:[*~^$|]?=))([^]*)/),q=L[0].split(/(\|)/g),X={operator:L[1],value:L[2],source:{start:{line:W[2],column:W[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:W[4]};if(q.length>1?(q[0]===""&&(q[0]=!0),X.attribute=this.parseValue(q[2]),X.namespace=this.parseNamespace(q[0])):X.attribute=this.parseValue(L[0]),E=new C.default(X),L[2]){var le=L[2].split(/(\s+i\s*?)$/),ce=le[0].trim();E.value=this.lossy?ce:le[0],le[1]&&(E.insensitive=!0,this.lossy||(E.raws.insensitive=le[1])),E.quoted=ce[0]==="'"||ce[0]==='"',E.raws.unquoted=E.quoted?ce.slice(1,-1):ce}this.newNode(E),this.position++},j.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var S=new R.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(S.spaces.before=this.parseSpace(this.currToken[1]),S.source.start.line=this.nextToken[2],S.source.start.column=this.nextToken[3],S.source.end.column=this.nextToken[3],S.source.end.line=this.nextToken[2],S.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?S.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?S.value=this.currToken[1]:this.currToken[0]==="space"&&(S.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(S)},j.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var S=new o.default;this.current.parent.append(S),this.current=S,this.position++},j.prototype.comment=function(){var S=new h.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(S),this.position++},j.prototype.error=function(S){throw new this.input.error(S)},j.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},j.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},j.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},j.prototype.namespace=function(){var S=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(S);if(this.nextToken[0]==="*")return this.position++,this.universal(S)},j.prototype.nesting=function(){this.newNode(new M.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},j.prototype.parentheses=function(){var S=this.current.last;if(S&&S.type===we.PSEUDO){var E=new o.default,W=this.current;S.append(E),this.current=E;var L=1;for(this.position++;this.position<this.tokens.length&&L;)this.currToken[0]==="("&&L++,this.currToken[0]===")"&&L--,L?this.parse():(E.parent.source.end.line=this.currToken[2],E.parent.source.end.column=this.currToken[3],this.position++);L&&this.error("Expected closing parenthesis."),this.current=W}else{var q=1;for(this.position++,S.value+="(";this.position<this.tokens.length&&q;)this.currToken[0]==="("&&q++,this.currToken[0]===")"&&q--,S.value+=this.parseParenthesisToken(this.currToken),this.position++;q&&this.error("Expected closing parenthesis.")}},j.prototype.pseudo=function(){for(var S=this,E="",W=this.currToken;this.currToken&&this.currToken[0]===":";)E+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var L=void 0;this.splitWord(!1,function(q,X){E+=q,L=new k.default({value:E,source:{start:{line:W[2],column:W[3]},end:{line:S.currToken[4],column:S.currToken[5]}},sourceIndex:W[4]}),S.newNode(L),X>1&&S.nextToken&&S.nextToken[0]==="("&&S.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},j.prototype.space=function(){var S=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(S[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(S[1]),this.position++):this.combinator()},j.prototype.string=function(){var S=this.currToken;this.newNode(new T.default({value:this.currToken[1],source:{start:{line:S[2],column:S[3]},end:{line:S[4],column:S[5]}},sourceIndex:S[6]})),this.position++},j.prototype.universal=function(S){var E=this.nextToken;if(E&&E[1]==="|")return this.position++,this.namespace();this.newNode(new P.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),S),this.position++},j.prototype.splitWord=function(S,E){for(var W=this,L=this.nextToken,q=this.currToken[1];L&&L[0]==="word";){this.position++;var X=this.currToken[1];if(q+=X,X.lastIndexOf("\\")===X.length-1){var le=this.nextToken;le&&le[0]==="space"&&(q+=this.parseSpace(le[1]," "),this.position++)}L=this.nextToken}var ce=(0,f.default)(q,"."),Ve=(0,f.default)(q,"#"),er=(0,f.default)(q,"#{");er.length&&(Ve=Ve.filter(function(pe){return!~er.indexOf(pe)}));var xe=(0,ue.default)((0,w.default)((0,l.default)([[0],ce,Ve])));xe.forEach(function(pe,Ae){var Je=xe[Ae+1]||q.length,He=q.slice(pe,Je);if(Ae===0&&E)return E.call(W,He,xe.length);var Ge=void 0;~ce.indexOf(pe)?Ge=new u.default({value:He.slice(1),source:{start:{line:W.currToken[2],column:W.currToken[3]+pe},end:{line:W.currToken[4],column:W.currToken[3]+(Je-1)}},sourceIndex:W.currToken[6]+xe[Ae]}):~Ve.indexOf(pe)?Ge=new v.default({value:He.slice(1),source:{start:{line:W.currToken[2],column:W.currToken[3]+pe},end:{line:W.currToken[4],column:W.currToken[3]+(Je-1)}},sourceIndex:W.currToken[6]+xe[Ae]}):Ge=new x.default({value:He,source:{start:{line:W.currToken[2],column:W.currToken[3]+pe},end:{line:W.currToken[4],column:W.currToken[3]+(Je-1)}},sourceIndex:W.currToken[6]+xe[Ae]}),W.newNode(Ge,S)}),this.position++},j.prototype.word=function(S){var E=this.nextToken;return E&&E[1]==="|"?(this.position++,this.namespace()):this.splitWord(S)},j.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},j.prototype.parse=function(S){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":S&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},j.prototype.parseNamespace=function(S){if(this.lossy&&typeof S=="string"){var E=S.trim();return E.length?E:!0}return S},j.prototype.parseSpace=function(S,E){return this.lossy?E||"":S},j.prototype.parseValue=function(S){return this.lossy&&S&&typeof S=="string"?S.trim():S},j.prototype.parseParenthesisToken=function(S){return this.lossy?S[0]==="space"?this.parseSpace(S[1]," "):this.parseValue(S[1]):S[1]},j.prototype.newNode=function(S,E){return E&&(S.namespace=this.parseNamespace(E)),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},n(j,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),j})();e.default=mt,r.exports=e.default}),nn=A((e,r)=>{"use strict";e.__esModule=!0;var n=(function(){function w(y,c){for(var t=0;t<c.length;t++){var o=c[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(y,o.key,o)}}return function(y,c,t){return c&&w(y.prototype,c),t&&w(y,t),y}})(),s=sn(),l=p(s);function p(w){return w&&w.__esModule?w:{default:w}}function f(w,y){if(!(w instanceof y))throw new TypeError("Cannot call a class as a function")}var m=(function(){function w(y){return f(this,w),this.func=y||function(){},this}return w.prototype.process=function(y){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=new l.default({css:y,error:function(o){throw new Error(o)},options:c});return this.res=t,this.func(t),this},n(w,[{key:"result",get:function(){return String(this.res)}}]),w})();e.default=m,r.exports=e.default}),re=A((e,r)=>{"use strict";var n=function(s,l){let p=new s.constructor;for(let f in s){if(!s.hasOwnProperty(f))continue;let m=s[f],w=typeof m;f==="parent"&&w==="object"?l&&(p[f]=l):f==="source"?p[f]=m:m instanceof Array?p[f]=m.map(y=>n(y,p)):f!=="before"&&f!=="after"&&f!=="between"&&f!=="semicolon"&&(w==="object"&&m!==null&&(m=n(m)),p[f]=m)}return p};r.exports=class{constructor(s){s=s||{},this.raws={before:"",after:""};for(let l in s)this[l]=s[l]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(s){s=s||{};let l=n(this);for(let p in s)l[p]=s[p];return l}cloneBefore(s){s=s||{};let l=this.clone(s);return this.parent.insertBefore(this,l),l}cloneAfter(s){s=s||{};let l=this.clone(s);return this.parent.insertAfter(this,l),l}replaceWith(){let s=Array.prototype.slice.call(arguments);if(this.parent){for(let l of s)this.parent.insertBefore(this,l);this.remove()}return this}moveTo(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.append(this),this}moveBefore(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertBefore(s,this),this}moveAfter(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertAfter(s,this),this}next(){let s=this.parent.index(this);return this.parent.nodes[s+1]}prev(){let s=this.parent.index(this);return this.parent.nodes[s-1]}toJSON(){let s={};for(let l in this){if(!this.hasOwnProperty(l)||l==="parent")continue;let p=this[l];p instanceof Array?s[l]=p.map(f=>typeof f=="object"&&f.toJSON?f.toJSON():f):typeof p=="object"&&p.toJSON?s[l]=p.toJSON():s[l]=p}return s}root(){let s=this;for(;s.parent;)s=s.parent;return s}cleanRaws(s){delete this.raws.before,delete this.raws.after,s||delete this.raws.between}positionInside(s){let l=this.toString(),p=this.source.start.column,f=this.source.start.line;for(let m=0;m<s;m++)l[m]===`
|
|
26
|
+
`?(p=1,f+=1):p+=1;return{line:f,column:p}}positionBy(s){let l=this.source.start;if(Object(s).index)l=this.positionInside(s.index);else if(Object(s).word){let p=this.toString().indexOf(s.word);p!==-1&&(l=this.positionInside(p))}return l}}}),Y=A((e,r)=>{"use strict";var n=re(),s=class extends n{constructor(l){super(l),this.nodes||(this.nodes=[])}push(l){return l.parent=this,this.nodes.push(l),this}each(l){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach,f,m;if(this.indexes[p]=0,!!this.nodes){for(;this.indexes[p]<this.nodes.length&&(f=this.indexes[p],m=l(this.nodes[f],f),m!==!1);)this.indexes[p]+=1;return delete this.indexes[p],m}}walk(l){return this.each((p,f)=>{let m=l(p,f);return m!==!1&&p.walk&&(m=p.walk(l)),m})}walkType(l,p){if(!l||!p)throw new Error("Parameters {type} and {callback} are required.");let f=typeof l=="function";return this.walk((m,w)=>{if(f&&m instanceof l||!f&&m.type===l)return p.call(this,m,w)})}append(l){return l.parent=this,this.nodes.push(l),this}prepend(l){return l.parent=this,this.nodes.unshift(l),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let p of this.nodes)p.cleanRaws(l)}insertAfter(l,p){let f=this.index(l),m;this.nodes.splice(f+1,0,p);for(let w in this.indexes)m=this.indexes[w],f<=m&&(this.indexes[w]=m+this.nodes.length);return this}insertBefore(l,p){let f=this.index(l),m;this.nodes.splice(f,0,p);for(let w in this.indexes)m=this.indexes[w],f<=m&&(this.indexes[w]=m+this.nodes.length);return this}removeChild(l){l=this.index(l),this.nodes[l].parent=void 0,this.nodes.splice(l,1);let p;for(let f in this.indexes)p=this.indexes[f],p>=l&&(this.indexes[f]=p-1);return this}removeAll(){for(let l of this.nodes)l.parent=void 0;return this.nodes=[],this}every(l){return this.nodes.every(l)}some(l){return this.nodes.some(l)}index(l){return typeof l=="number"?l:this.nodes.indexOf(l)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let l=this.nodes.map(String).join("");return this.value&&(l=this.value+l),this.raws.before&&(l=this.raws.before+l),this.raws.after&&(l+=this.raws.after),l}};s.registerWalker=l=>{let p="walk"+l.name;p.lastIndexOf("s")!==p.length-1&&(p+="s"),!s.prototype[p]&&(s.prototype[p]=function(f){return this.walkType(l,f)})},r.exports=s}),on=A((e,r)=>{"use strict";var n=Y();r.exports=class extends n{constructor(s){super(s),this.type="root"}}}),an=A((e,r)=>{"use strict";var n=Y();r.exports=class extends n{constructor(s){super(s),this.type="value",this.unbalanced=0}}}),un=A((e,r)=>{"use strict";var n=Y(),s=class extends n{constructor(l){super(l),this.type="atword"}toString(){let l=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};n.registerWalker(s),r.exports=s}),ln=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="colon"}};n.registerWalker(l),r.exports=l}),cn=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="comma"}};n.registerWalker(l),r.exports=l}),pn=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="comment",this.inline=Object(p).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};n.registerWalker(l),r.exports=l}),fn=A((e,r)=>{"use strict";var n=Y(),s=class extends n{constructor(l){super(l),this.type="func",this.unbalanced=-1}};n.registerWalker(s),r.exports=s}),hn=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="number",this.unit=Object(p).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};n.registerWalker(l),r.exports=l}),dn=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="operator"}};n.registerWalker(l),r.exports=l}),mn=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="paren",this.parenType=""}};n.registerWalker(l),r.exports=l}),yn=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="string"}toString(){let p=this.quoted?this.raws.quote:"";return[this.raws.before,p,this.value+"",p,this.raws.after].join("")}};n.registerWalker(l),r.exports=l}),gn=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="word"}};n.registerWalker(l),r.exports=l}),vn=A((e,r)=>{"use strict";var n=Y(),s=re(),l=class extends s{constructor(p){super(p),this.type="unicode-range"}};n.registerWalker(l),r.exports=l}),wn=A((e,r)=>{"use strict";var n=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};r.exports=n}),bn=A((e,r)=>{"use strict";var n=/[ \n\t\r\{\(\)'"\\;,/]/g,s=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,l=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,p=/^[a-z0-9]/i,f=/^[a-f0-9?\-]/i,m=wn();r.exports=function(w,y){y=y||{};let c=[],t=w.valueOf(),o=t.length,i=-1,u=1,a=0,h=0,d=null,v,b,x,g,T,O,k,_,C,I,P,N;function R(M){let z=`Unclosed ${M} at line: ${u}, column: ${a-i}, token: ${a}`;throw new m(z)}function $(){let M=`Syntax error at line: ${u}, column: ${a-i}, token: ${a}`;throw new m(M)}for(;a<o;){switch(v=t.charCodeAt(a),v===10&&(i=a,u+=1),v){case 10:case 32:case 9:case 13:case 12:b=a;do b+=1,v=t.charCodeAt(b),v===10&&(i=b,u+=1);while(v===32||v===10||v===9||v===13||v===12);c.push(["space",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break;case 58:b=a+1,c.push(["colon",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break;case 44:b=a+1,c.push(["comma",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break;case 123:c.push(["{","{",u,a-i,u,b-i,a]);break;case 125:c.push(["}","}",u,a-i,u,b-i,a]);break;case 40:h++,d=!d&&h===1&&c.length>0&&c[c.length-1][0]==="word"&&c[c.length-1][1]==="url",c.push(["(","(",u,a-i,u,b-i,a]);break;case 41:h--,d=d&&h>0,c.push([")",")",u,a-i,u,b-i,a]);break;case 39:case 34:x=v===39?"'":'"',b=a;do for(I=!1,b=t.indexOf(x,b+1),b===-1&&R("quote",x),P=b;t.charCodeAt(P-1)===92;)P-=1,I=!I;while(I);c.push(["string",t.slice(a,b+1),u,a-i,u,b-i,a]),a=b;break;case 64:n.lastIndex=a+1,n.test(t),n.lastIndex===0?b=t.length-1:b=n.lastIndex-2,c.push(["atword",t.slice(a,b+1),u,a-i,u,b-i,a]),a=b;break;case 92:b=a,v=t.charCodeAt(b+1),k&&v!==47&&v!==32&&v!==10&&v!==9&&v!==13&&v!==12&&(b+=1),c.push(["word",t.slice(a,b+1),u,a-i,u,b-i,a]),a=b;break;case 43:case 45:case 42:b=a+1,N=t.slice(a+1,b+1);let M=t.slice(a-1,a);if(v===45&&N.charCodeAt(0)===45){b++,c.push(["word",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break}c.push(["operator",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break;default:if(v===47&&(t.charCodeAt(a+1)===42||y.loose&&!d&&t.charCodeAt(a+1)===47)){if(t.charCodeAt(a+1)===42)b=t.indexOf("*/",a+2)+1,b===0&&R("comment","*/");else{let z=t.indexOf(`
|
|
27
|
+
`,a+2);b=z!==-1?z-1:o}O=t.slice(a,b+1),g=O.split(`
|
|
28
|
+
`),T=g.length-1,T>0?(_=u+T,C=b-g[T].length):(_=u,C=i),c.push(["comment",O,u,a-i,_,b-C,a]),i=C,u=_,a=b}else if(v===35&&!p.test(t.slice(a+1,a+2)))b=a+1,c.push(["#",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;else if((v===117||v===85)&&t.charCodeAt(a+1)===43){b=a+2;do b+=1,v=t.charCodeAt(b);while(b<o&&f.test(t.slice(b,b+1)));c.push(["unicoderange",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1}else if(v===47)b=a+1,c.push(["operator",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;else{let z=s;if(v>=48&&v<=57&&(z=l),z.lastIndex=a+1,z.test(t),z.lastIndex===0?b=t.length-1:b=z.lastIndex-2,z===l||v===46){let ue=t.charCodeAt(b),se=t.charCodeAt(b+1),ne=t.charCodeAt(b+2);(ue===101||ue===69)&&(se===45||se===43)&&ne>=48&&ne<=57&&(l.lastIndex=b+2,l.test(t),l.lastIndex===0?b=t.length-1:b=l.lastIndex-2)}c.push(["word",t.slice(a,b+1),u,a-i,u,b-i,a]),a=b}break}a++}return c}}),xn=A((e,r)=>{"use strict";var n=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};r.exports=n}),kn=A((e,r)=>{"use strict";var n=on(),s=an(),l=un(),p=ln(),f=cn(),m=pn(),w=fn(),y=hn(),c=dn(),t=mn(),o=yn(),i=gn(),u=vn(),a=bn(),h=Er(),d=Ar(),v=Ir(),b=xn();function x(g){return g.sort((T,O)=>T-O)}r.exports=class{constructor(g,T){let O={loose:!1};this.cache=[],this.input=g,this.options=Object.assign({},O,T),this.position=0,this.unbalanced=0,this.root=new n;let k=new s;this.root.append(k),this.current=k,this.tokens=a(g,this.options)}parse(){return this.loop()}colon(){let g=this.currToken;this.newNode(new p({value:g[1],source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6]})),this.position++}comma(){let g=this.currToken;this.newNode(new f({value:g[1],source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6]})),this.position++}comment(){let g=!1,T=this.currToken[1].replace(/\/\*|\*\//g,""),O;this.options.loose&&T.startsWith("//")&&(T=T.substring(2),g=!0),O=new m({value:T,inline:g,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(O),this.position++}error(g,T){throw new b(g+` at line: ${T[2]}, column ${T[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let g=this.currToken[1],T;if(g==="+"||g==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return T=new c({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(T)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let g=1,T=this.position+1,O=this.currToken,k;for(;T<this.tokens.length&&g;){let _=this.tokens[T];_[0]==="("&&g++,_[0]===")"&&g--,T++}if(g&&this.error("Expected closing parenthesis",O),k=this.current.last,k&&k.type==="func"&&k.unbalanced<0&&(k.unbalanced=0,this.current=k),this.current.unbalanced++,this.newNode(new t({value:O[1],source:{start:{line:O[2],column:O[3]},end:{line:O[4],column:O[5]}},sourceIndex:O[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let _=this.nextToken,C=this.currToken[1],I={line:this.currToken[2],column:this.currToken[3]};for(;_&&_[0]!==")"&&this.current.unbalanced;)this.position++,C+=this.currToken[1],_=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new i({value:C,source:{start:I,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let g=this.currToken;this.newNode(new t({value:g[1],source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",g),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let g=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=g[1],this.position++):(this.spaces=g[1],this.position++)}unicodeRange(){let g=this.currToken;this.newNode(new u({value:g[1],source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6]})),this.position++}splitWord(){let g=this.nextToken,T=this.currToken[1],O=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,k=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,_,C;if(!k.test(T))for(;g&&g[0]==="word";){this.position++;let I=this.currToken[1];T+=I,g=this.nextToken}_=d(T,"@"),C=x(v(h([[0],_]))),C.forEach((I,P)=>{let N=C[P+1]||T.length,R=T.slice(I,N),$;if(~_.indexOf(I))$=new l({value:R.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(N-1)}},sourceIndex:this.currToken[6]+C[P]});else if(O.test(this.currToken[1])){let M=R.replace(O,"");$=new y({value:R.replace(M,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(N-1)}},sourceIndex:this.currToken[6]+C[P],unit:M})}else $=new(g&&g[0]==="("?w:i)({value:R,source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(N-1)}},sourceIndex:this.currToken[6]+C[P]}),$.type==="word"?($.isHex=/^#(.+)/.test(R),$.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(R)):this.cache.push(this.current);this.newNode($)}),this.position++}string(){let g=this.currToken,T=this.currToken[1],O=/^(\"|\')/,k=O.test(T),_="",C;k&&(_=T.match(O)[0],T=T.slice(1,T.length-1)),C=new o({value:T,source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6],quoted:k}),C.raws.quote=_,this.newNode(C),this.position++}word(){return this.splitWord()}newNode(g){return this.spaces&&(g.raws.before+=this.spaces,this.spaces=""),this.current.append(g)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),On={};dr(On,{languages:()=>Gi,options:()=>Zi,parsers:()=>ys,printers:()=>Ha});var Dt=(e,r)=>(n,s,...l)=>n|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),Tn=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},_n=Dt("replaceAll",function(){if(typeof this=="string")return Tn}),U=_n;function Sn(e){return this[e<0?this.length+e:e]}var Cn=Dt("at",function(){if(Array.isArray(this)||typeof this=="string")return Sn}),me=Cn,En=()=>{},Ce=En,jr="string",Pr="array",Mr="cursor",ot="indent",Ut="align",Nr="trim",it="group",at="fill",ut="if-break",$r="indent-if-break",Ft="line-suffix",Vt="line-suffix-boundary",ge="line",Rr="label",Jt="break-parent",Wr=new Set([Mr,ot,Ut,Nr,it,at,ut,$r,Ft,Vt,ge,Rr,Jt]);function An(e,r,n){if(!e.has(r)){let s=n(r);e.set(r,s)}return e.get(r)}function In(e){if(typeof e=="string")return jr;if(Array.isArray(e))return Pr;if(!e)return;let{type:r}=e;if(Wr.has(r))return r}var Re=In,jn=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Pn(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}',
|
|
29
|
+
Expected it to be 'string' or 'object'.`;if(Re(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let s=jn([...Wr].map(l=>`'${l}'`));return`Unexpected doc.type '${e.type}'.
|
|
30
|
+
Expected it to be ${s}.`}var Mn=class extends Error{name="InvalidDocError";constructor(e){super(Pn(e)),this.doc=e}},Nn=Mn;function Lr(e,r){if(typeof e=="string")return r(e);let n=new Map;return s(e);function s(p){return An(n,p,l)}function l(p){switch(Re(p)){case Pr:return r(p.map(s));case at:return r({...p,parts:p.parts.map(s)});case ut:return r({...p,breakContents:s(p.breakContents),flatContents:s(p.flatContents)});case it:{let{expandedStates:f,contents:m}=p;return f?(f=f.map(s),m=f[0]):m=s(m),r({...p,contents:m,expandedStates:f})}case Ut:case ot:case $r:case Rr:case Ft:return r({...p,contents:s(p.contents)});case jr:case Mr:case Nr:case Vt:case ge:case Jt:return r(p);default:throw new Nn(p)}}}function $n(e){return e.type===ge&&!e.hard?e.soft?"":" ":e.type===ut?e.flatContents:e}function Rn(e){return Lr(e,$n)}function Wn(e,r=Dn){return Lr(e,n=>typeof n=="string"?ae(r,n.split(`
|
|
31
|
+
`)):n)}var ye=Ce,Ht=Ce,Ln=Ce,zn=Ce;function J(e){return ye(e),{type:ot,contents:e}}function Bn(e,r){return zn(e),ye(r),{type:Ut,contents:r,n:e}}function ze(e){return Bn(-1,e)}var lt={type:Jt};function Ke(e){return Ln(e),{type:at,parts:e}}function Q(e,r={}){return ye(e),Ht(r.expandedStates,!0),{type:it,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function zr(e,r="",n={}){return ye(e),r!==""&&ye(r),{type:ut,breakContents:e,flatContents:r,groupId:n.groupId}}function ae(e,r){ye(e),Ht(r);let n=[];for(let s=0;s<r.length;s++)s!==0&&n.push(e),n.push(r[s]);return n}var F={type:ge},H={type:ge,soft:!0},qn={type:ge,hard:!0},D=[qn,lt],Br={type:ge,hard:!0,literal:!0},Dn=[Br,lt];function qr(e){return ye(e),{type:Ft,contents:e}}var Dr={type:Vt};function Un(e){return Array.isArray(e)&&e.length>0}var ct=Un,Ur=Object.freeze({character:"'",codePoint:39}),Fr=Object.freeze({character:'"',codePoint:34}),Fn=Object.freeze({preferred:Ur,alternate:Fr}),Vn=Object.freeze({preferred:Fr,alternate:Ur});function Jn(e,r){let{preferred:n,alternate:s}=r===!0||r==="'"?Fn:Vn,{length:l}=e,p=0,f=0;for(let m=0;m<l;m++){let w=e.charCodeAt(m);w===n.codePoint?p++:w===s.codePoint&&f++}return(p>f?s:n).character}var Hn=/\\(["'\\])|(["'])/g;function Gn(e,r){let n=r==='"'?"'":'"',s=U(0,e,Hn,(l,p,f)=>p?p===n?n:l:f===r?"\\"+f:f);return r+s+r}var Qn=Gn;function Yn(e,r){Ce(/^(?<quote>["']).*\k<quote>$/s.test(e));let n=e.slice(1,-1),s;return r.parser==="json"||r.parser==="jsonc"||r.parser==="json-stringify"||r.parser==="json5"&&r.quoteProps==="preserve"&&!r.singleQuote?s='"':r.__isInHtmlAttribute?s="'":s=Jn(n,r.singleQuote),e.charAt(0)===s?e:Qn(n,s)}var Vr=Yn,Zn=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Kn=Zn;function Jr(){}Jr.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Xn=Jr,Ie=null;function We(e){if(Ie!==null&&typeof Ie.property){let r=Ie;return Ie=We.prototype=null,r}return Ie=We.prototype=e??Object.create(null),new We}var eo=10;for(let e=0;e<=eo;e++)We();function to(e){return We(e)}function ro(e,r="type"){to(e);function n(s){let l=s[r],p=e[l];if(!Array.isArray(p))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:s});return p}return n}var so=ro,ee=[["nodes"],["group"]],no={"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":ee[0],"media-query":ee[0],"media-type":[],"media-feature-expression":ee[0],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":ee[0],"selector-selector":ee[0],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":ee[0],"selector-universal":[],"selector-pseudo":ee[0],"selector-nesting":[],"selector-unknown":[],"value-value":ee[1],"value-root":ee[1],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":ee[1],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},oo=so(no),io=oo;function ao(e,r){let n=0;for(let s=0;s<e.line-1;++s)n=r.indexOf(`
|
|
32
|
+
`,n)+1;return n+e.column}var Hr=ao;function pt(e){return(r,n,s)=>{if(n===!1)return!1;let l=!!s?.backwards,{length:p}=r,f=n;for(;f>=0&&f<p;){let m=r.charAt(f);if(e instanceof RegExp){if(!e.test(m))return f}else if(!e.includes(m))return f;l?f--:f++}return f===-1||f===p?f:!1}}var Ga=pt(/\s/),Gt=pt(" "),uo=pt(",; "),Gr=pt(/[^\n\r]/);function Qr(e,r){let{value:n}=e;return n==="-"||n==="--"||n.charAt(0)!=="-"?r:r-(n.charAt(1)==="-"?2:1)}function Yr(e,r){if(typeof e.source?.start?.offset=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.type==="value-word"?Qr(e,e.sourceIndex):e.sourceIndex;if(e.source?.start)return Hr(e.source.start,r);throw Object.assign(new Error("Can not locate node."),{node:e})}function Ot(e,r){if(e.type==="value-func"&&e.group?.close)return Ot(e.group.close,r);if(e.type==="css-comment"&&e.inline)return Gr(r,e.source.startOffset);if(e.type==="value-paren"&&typeof e.sourceIndex=="number")return e.sourceIndex+(e.value===")"?e.value.length:0);if(typeof e.source?.end?.offset=="number")return e.source.end.offset;if(e.source){if(e.source.end){let n=Hr(e.source.end,r);return e.type==="value-word"?Qr(e,n):n}if(ct(e.nodes))return Ot(me(0,e.nodes,-1),r);if(e.type==="css-atrule"&&typeof e.name=="string")return Yr(e,r)+1+e.name.length+e.raws.afterName.length+e.raws.params.length}return typeof e.sourceIndex=="number"&&typeof e.value=="string"?e.sourceIndex+e.value.length:null}function lo(e,r){Tt(e,r,0,!1)}function Tt(e,r,n,s){if(s&&typeof e.type=="string")e.source??(e.source={}),e.source.startOffset=n,e.source.endOffset=n+r.length;else if(!(typeof e.source?.startOffset=="number"&&typeof e.source?.endOffset=="number")&&(e.source||typeof e.sourceIndex=="number")){e.source??(e.source={});let l=n+r.length;e.source.startOffset=Math.min(Yr(e,r)+n,l);let p=Ot(e,r);e.source.endOffset=typeof p=="number"?Math.min(p+n,l):p}for(let l in e){let p=e[l];if(l==="source"||!p||typeof p!="object")continue;let f=Array.isArray(p)?p:[p];for(let m of f){if(!m||typeof m!="object")continue;let w=co(e,m,n);w?Tt(m,w.text,w.rootOffset,!0):Tt(m,r,n,!1),Xr(m,e)}}ho(e),mo(e)}function co(e,r,n){if(r.type==="value-root"||r.type==="value-unknown")return{rootOffset:Zr(e),text:r.text||r.value||""};if(r.type==="media-query-list"||e.params===r)return{rootOffset:Kr(e),text:e.raws?.params||r.value||""};if(r.type?.startsWith("selector-")){let s=po(e,r);if(typeof s=="string")return{rootOffset:fo(e,r,s,n),text:s}}}function Zr(e){let r=e.source.startOffset;return typeof e.prop=="string"&&(r+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(r+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),e.type!=="css-atrule"&&typeof e.raws?.between=="string"&&(r+=e.raws.between.length),r}function Kr(e){let r=e.source.startOffset;return e.type==="css-atrule"&&typeof e.name=="string"&&(r+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),r}function po(e,r){if(typeof r.raws?.selector=="string")return r.raws.selector;if(e.selector===r){if(e.mixin)return e.raws.identifier+e.name+e.raws.afterName+e.raws.params;if(typeof e.raws?.selector=="string")return e.raws.selector;if(e.customSelector&&typeof e.raws?.params=="string")return e.raws.params.slice(e.customSelector.length).trim();if(typeof e.raws?.params=="string")return e.raws.params;if(e.type==="css-decl"&&typeof e.raws?.value=="string"){let{value:n}=e.raws;return e.extend&&n.startsWith("extend(")?n.slice(7,-1):n}}}function fo(e,r,n,s){return typeof r.sourceIndex=="number"&&typeof r.raws?.selector=="string"?s+r.sourceIndex:e.mixin?e.source.startOffset:typeof e.raws?.selector=="string"?e.source.startOffset+yt(e.raws.selector,n):typeof e.raws?.params=="string"?Kr(e)+yt(e.raws.params,n):e.type==="css-decl"&&typeof e.raws?.value=="string"?Zr(e)+yt(e.raws.value,n):s}function yt(e,r){let n=e.indexOf(r);return n===-1?0:n}function ho(e){var r,n;if(typeof e.type!="string")return;let s=typeof e.source?.startOffset=="number"&&typeof e.source?.endOffset=="number",l=e.source?.start&&e.source.end;if(s&&l)return;let p=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,m,w;for(let y in e){if(y==="source"||y==="raws"||y==="spaces")continue;let c=e[y],t=Array.isArray(c)?c:[c];for(let o of t)!o||typeof o!="object"||typeof o.source?.startOffset!="number"||typeof o.source?.endOffset!="number"||(o.source.startOffset<p&&(p=o.source.startOffset,m=o.source.start),o.source.endOffset>f&&(f=o.source.endOffset,w=o.source.end))}p!==Number.POSITIVE_INFINITY&&(e.source??(e.source={}),s||(e.source.startOffset=p,e.source.endOffset=f),(r=e.source).start??(r.start=m),(n=e.source).end??(n.end=w))}function Xr(e,r){typeof e.type!="string"||e.source||typeof r.source?.startOffset!="number"||typeof r.source?.endOffset!="number"||!yo(e)||(e.source={startOffset:r.source.startOffset,endOffset:r.source.startOffset,start:r.source.start,end:r.source.start})}function mo(e){if(!(typeof e.source?.startOffset!="number"||typeof e.source?.endOffset!="number"))for(let r in e){if(r==="source"||r==="raws"||r==="spaces")continue;let n=e[r],s=Array.isArray(n)?n:[n];for(let l of s)l&&typeof l=="object"&&Xr(l,e)}}function yo(e){return Array.isArray(e.nodes)&&e.nodes.length===0||Array.isArray(e.groups)&&e.groups.length===0}function go(e){let r="initial",n="initial",s,l=!1,p=[];for(let f=0;f<e.length;f++){let m=e[f];switch(r){case"initial":if(m==="'"){r="single-quotes";continue}if(m==='"'){r="double-quotes";continue}if((m==="u"||m==="U")&&e.slice(f,f+4).toLowerCase()==="url("){r="url",f+=3;continue}if(m==="/"){let w=e[f+1];w==="*"?(r="comment-block",f++):w==="/"&&(r="comment-inline",s=f,f++);continue}continue;case"single-quotes":if(m==="'"&&e[f-1]!=="\\"&&(r=n,n="initial"),m===`
|
|
33
|
+
`||m==="\r")return e;continue;case"double-quotes":if(m==='"'&&e[f-1]!=="\\"&&(r=n,n="initial"),m===`
|
|
34
|
+
`||m==="\r")return e;continue;case"url":if(m===")")r="initial";else if(m===`
|
|
35
|
+
`||m==="\r")return e;if(m==="'"){r="single-quotes",n="url";continue}if(m==='"'){r="double-quotes",n="url";continue}continue;case"comment-block":m==="/"&&e[f-1]==="*"&&(r="initial");continue;case"comment-inline":m==='"'||m==="'"||m==="*"?l=!0:(m===`
|
|
36
|
+
`||m==="\r")&&(l&&p.push([s,f]),r="initial",l=!1);continue}}for(let[f,m]of p)e=e.slice(0,f)+U(0,e.slice(f,m),/["'*]/g," ")+e.slice(m);return e}var Z=e=>e.source.startOffset,V=e=>e.source.endOffset,es=Symbol.for("PRETTIER_IS_FRONT_MATTER");function vo(e){return!!e?.[es]}var _t=vo;function wo(e){return U(0,e,/[^\n]/g," ")}var ts=wo,je=3;function bo(e){let r=e.slice(0,je);if(r!=="---"&&r!=="+++")return;let n=e.indexOf(`
|
|
37
|
+
`,je);if(n===-1)return;let s=e.slice(je,n).trim(),l=e.indexOf(`
|
|
38
|
+
${r}`,n),p=s;if(p||(p=r==="+++"?"toml":"yaml"),l===-1&&r==="---"&&p==="yaml"&&(l=e.indexOf(`
|
|
39
|
+
...`,n)),l===-1)return;let f=l+1+je,m=e.charAt(f+1);if(!/\s?/.test(m))return;let w=e.slice(0,f),y;return{language:p,explicitLanguage:s||null,value:e.slice(n+1,l),startDelimiter:r,endDelimiter:w.slice(-je),raw:w,start:{line:1,column:0,index:0},end:{index:w.length,get line(){return y??(y=w.split(`
|
|
40
|
+
`)),y.length},get column(){return y??(y=w.split(`
|
|
41
|
+
`)),me(0,y,-1).length}},[es]:!0}}function xo(e){let r=bo(e);return r?{frontMatter:r,get content(){let{raw:n}=r;return ts(n)+e.slice(n.length)}}:{content:e}}var ft=xo,ko=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function rs(e,r,n){if(e.type==="css-comment"&&n.type==="css-root"&&n.nodes.length>0&&((n.nodes[0]===e||_t(n.nodes[0])&&n.nodes[1]===e)&&(delete r.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||n.type==="css-root"&&me(0,n.nodes,-1)===e))return null;if(e.type==="value-root"&&delete r.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete r.value,e.type==="css-rule"&&(delete r.params,e.extend&&To(e.selector)&&delete r.extend),(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&e.value&&(r.value=Oo(e.value)),e.type==="selector-combinator"&&(r.value=U(0,r.value,/\s+/g," ")),e.type==="media-feature"&&(r.value=U(0,r.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(r.value=r.value.toLowerCase()),e.type==="css-decl"&&(r.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(r.name=e.name.toLowerCase()),e.type==="value-number"&&(r.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(r.value=U(0,r.value,/;$/g,"")),e.type==="selector-attribute"&&(r.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(r.namespace=e.namespace.trim()||!0),e.value)){let{value:s}=r;/\s[a-z]$/i.test(s)&&(r.__prettier_attribute_selector_flag=me(0,s,-1),s=s.slice(0,-1)),s=s.trim(),s=s.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/,"$<value>"),r.value=s,delete r.quoted}if((e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&e.value&&(r.value=U(0,r.value,/([\d+.e-]+)([a-z]*)/gi,(s,l,p)=>{let f=Number(l);return Number.isNaN(f)?s:f+p.toLowerCase()})),e.type==="selector-tag"){let s=r.value.toLowerCase();["from","to"].includes(s)&&(r.value=s)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete r.value,e.type==="selector-unknown"&&delete r.value,e.type==="value-comma_group"){let s=e.groups.findIndex(l=>l.type==="value-number"&&l.unit==="...");s!==-1&&(r.groups[s].unit="",r.groups.splice(s+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(s=>s.type==="value-atword"&&(s.value.endsWith("[")||s.value.endsWith("]"))||s.type==="value-word"&&(s.value.startsWith("]")||s.value.startsWith("["))))return{type:"value-atword",value:e.groups.map(s=>s.value).join("")};if(e.type==="value-func"&&e.value==="if"&&e.group.type==="value-paren_group"&&e.group.groups.length===1&&e.group.groups[0].type==="value-comma_group"){let s=e.group.groups[0].groups,l=r.group.groups[0].groups;for(let p=s.length-1;p>=0;p--){let f=s[p];if(f.type==="value-word"&&typeof f.value=="string"&&f.value.endsWith(";")){if(f.value===";"){s[p-1]?.type==="value-number"&&l.splice(p-1,2,{type:"#node-placeholder"});continue}l[p]={type:"#node-placeholder"}}}}}rs.ignoredProperties=ko;function Oo(e){return U(0,U(0,e,"'",'"'),/\\([^\da-f])/gi,"$1")}function To(e){return e?.nodes?.some(r=>r.nodes?.some(n=>n.type==="selector-pseudo"&&n.value===":extend"))}var _o=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),ss=_o,So=/\*\/$/,Co=/^\/\*\*?/,ns=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Eo=/(^|\s+)\/\/([^\n\r]*)/g,tr=/^(\r?\n)+/,Ao=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,rr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Io=/(\r?\n|^) *\* ?/g,os=[];function jo(e){let r=e.match(ns);return r?r[0].trimStart():""}function Po(e){let r=e.match(ns)?.[0];return r==null?e:e.slice(r.length)}function Mo(e){e=U(0,e.replace(Co,"").replace(So,""),Io,"$1");let r="";for(;r!==e;)r=e,e=U(0,e,Ao,`
|
|
42
|
+
$1 $2
|
|
43
|
+
`);e=e.replace(tr,"").trimEnd();let n=Object.create(null),s=U(0,e,rr,"").replace(tr,"").trimEnd(),l;for(;l=rr.exec(e);){let p=U(0,l[2],Eo,"");if(typeof n[l[1]]=="string"||Array.isArray(n[l[1]])){let f=n[l[1]];n[l[1]]=[...os,...Array.isArray(f)?f:[f],p]}else n[l[1]]=p}return{comments:s,pragmas:n}}function No({comments:e="",pragmas:r={}}){let n=Object.keys(r),s=n.flatMap(p=>sr(p,r[p])).map(p=>` * ${p}
|
|
44
|
+
`).join("");if(!e){if(n.length===0)return"";if(n.length===1&&!Array.isArray(r[n[0]])){let p=r[n[0]];return`/** ${sr(n[0],p)[0]} */`}}let l=e.split(`
|
|
45
|
+
`).map(p=>` * ${p}`).join(`
|
|
46
|
+
`)+`
|
|
47
|
+
`;return`/**
|
|
48
|
+
`+(e?l:"")+(e&&n.length>0?` *
|
|
49
|
+
`:"")+s+" */"}function sr(e,r){return[...os,...Array.isArray(r)?r:[r]].map(n=>`@${e} ${n}`.trim())}var $o=["noformat","noprettier"],Ro=["format","prettier"],Wo="format";function Lo(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(`
|
|
50
|
+
`);return r===-1?e:e.slice(0,r)}var zo=Lo;function Qt(e){let r=zo(e);r&&(e=e.slice(r.length+1));let n=jo(e),{pragmas:s,comments:l}=Mo(n);return{shebang:r,text:e,pragmas:s,comments:l}}function Bo(e){let{pragmas:r}=Qt(e);return Ro.some(n=>ss(r,n))}function qo(e){let{pragmas:r}=Qt(e);return $o.some(n=>ss(r,n))}function Do(e){let{shebang:r,text:n,pragmas:s,comments:l}=Qt(e),p=Po(n),f=No({pragmas:{[Wo]:"",...s},comments:l.trimStart()});return(r?`${r}
|
|
51
|
+
`:"")+f+(p.startsWith(`
|
|
52
|
+
`)?`
|
|
53
|
+
`:`
|
|
54
|
+
|
|
55
|
+
`)+p}var Uo=e=>Bo(ft(e).content),Fo=e=>qo(ft(e).content),Vo=e=>{let{frontMatter:r,content:n}=ft(e);return(r?r.raw+`
|
|
56
|
+
|
|
57
|
+
`:"")+Do(n)},Jo=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Ho(e){return e.findAncestor(r=>r.type==="css-decl")?.prop?.toLowerCase()}var Go=new Set(["initial","inherit","unset","revert"]);function Qo(e){return Go.has(e.toLowerCase())}var Yo=new Set([":nth-child",":nth-last-child",":nth-of-type",":nth-last-of-type"]);function Zo(e){return e?.type==="selector-pseudo"&&Yo.has(e.value.toLowerCase())}function Ko(e,r){return e.findAncestor(n=>n.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(r.toLowerCase())}function Pe(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Me(e,r){return e.findAncestor(n=>n.type==="value-func")?.value?.toLowerCase()===r}function Xo(e){return e.hasAncestor(r=>{if(r.type!=="css-rule")return!1;let n=r.raws?.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))})}function Le(e,r){let n=Array.isArray(r)?r:[r],s=e.findAncestor(l=>l.type==="css-atrule");return s&&n.includes(s.name.toLowerCase())}function ei(e){let{node:r}=e;return r.groups[0]?.value==="url"&&r.groups.length===2&&e.findAncestor(n=>n.type==="css-atrule")?.name==="import"}function ti(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function ri(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function si(e){let{selector:r}=e;return r?typeof r=="string"&&/^@.+:.*$/.test(r)||r.value&&/^@.+:.*$/.test(r.value):!1}function ni(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function nr(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function oi(e){return e.type==="value-word"&&e.value==="in"}function St(e){return e.type==="value-operator"&&e.value==="*"}function Oe(e){return e?.type==="value-operator"&&e.value==="/"}function ie(e){return e.type==="value-operator"&&e.value==="+"}function Te(e){return e.type==="value-operator"&&e.value==="-"}function ii(e){return e.type==="value-operator"&&e.value==="%"}function Xe(e){return St(e)||Oe(e)||ie(e)||Te(e)||ii(e)}function or(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function ir(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function Ct(e,r){return r.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function ar(e){return e.raws?.params&&/^\(\s*\)$/.test(e.raws.params)}function gt(e){return e.name.startsWith("prettier-placeholder")}function ai(e){return e.prop.startsWith("@prettier-placeholder")}function ui(e,r){return e.value==="$$"&&e.type==="value-func"&&r?.type==="value-word"&&!r.raws.before}function li(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function ci(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function oe(e){return e?.raws?.before===""}function is(e){let r=e.findIndex(n=>n.type!=="value-comment");return r===-1?[]:e.slice(r)}function ht(e){return e.type==="value-comma_group"&&e.groups&&is(e.groups)[1]?.type==="value-colon"}function as(e,r){if(r?.type!=="value-paren_group"||!r.open||!ht(e))return!1;let[n,,s]=is(e.groups);return n.type!=="value-paren_group"&&s?.type==="value-paren_group"}function vt(e){return e.type==="value-paren_group"&&e.groups?.[0]&&ht(e.groups[0])}function us(e,r){if(r.parser!=="scss")return!1;let{node:n}=e;if(n.groups.length===0||n.type==="value-paren_group"&&n.open&&n.close&&n.groups.length===1&&n.groups[0].type!=="value-comma_group")return!1;let s=e.parent;if(s&&s.type==="value-func"&&s.value==="if")return!1;let l=e.grandparent;return!vt(n)&&!(l&&vt(l))?!1:e.findAncestor(p=>p.type==="css-decl")?.prop?.startsWith("$")?!0:vt(l)?!s.groups.some(p=>Xe(p)):l.type==="value-func"}function Qe(e){return e.type==="value-comment"&&e.inline}function wt(e){return e.type==="value-word"&&e.value==="#"}function ur(e){return e.type==="value-word"&&e.value==="{"}function bt(e){return e.type==="value-word"&&e.value==="}"}function Ye(e){return["value-word","value-atword"].includes(e.type)}function Et(e){return e?.type==="value-colon"}function pi(e,r){if(!ht(r))return!1;let{groups:n}=r,s=n.indexOf(e);return s===-1?!1:Et(n[s+1])}function fi(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function hi(e){return e.type!=="value-func"?!1:Jo.has(e.value.toLowerCase())}function Ne(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function _e(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function di(e,r){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(n=>n.type!=="value-comma_group"))return!1;if(r.type==="value-comma_group"){let n=r.groups.indexOf(e)-1,s=r.groups[n];if(s?.type==="value-word"&&s.value==="with")return!0}return!1}function Ze(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function mi(e,r,n){let{node:s}=e,l=e.parent,p=e.grandparent,f=Ho(e),m=f&&l.type==="value-value"&&(f==="grid"||f.startsWith("grid-template")),w=e.findAncestor(v=>v.type==="css-atrule"),y=w&&Ct(w,r),c=y&&s.groups.some(nr),t=as(s,l)&&!y,o=s.groups.some(v=>Qe(v)),i=e.map(n,"groups"),u=[""],a=Me(e,"url"),h=!1,d=!1;for(let v=0;v<s.groups.length;++v){let b=s.groups[v-1],x=s.groups[v],g=s.groups[v+1];if(Qe(x)&&!g){u.push([u.pop(),qr([" ",i[v]])]);continue}if(u.push([u.pop(),i[v]]),a){(g&&ie(g)||ie(x))&&u.push([u.pop()," "]);continue}if(Le(e,"forward")&&x.type==="value-word"&&x.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&g.type==="value-operator"&&g.value==="*"||Le(e,"utility")&&x.type==="value-word"&&g&&g.type==="value-operator"&&g.value==="*"||!g||r.parser==="scss"&&g.type==="value-word"&&g.value===";"&&e.match(void 0,(P,N)=>N==="groups"&&P.type==="value-paren_group",(P,N)=>N==="group"&&P.type==="value-func"&&P.value==="if")||x.type==="value-word"&&_e(g)&&V(x)===Z(g))continue;if(x.type==="value-string"&&x.quoted){let P=x.value.lastIndexOf("#{"),N=x.value.lastIndexOf("}");P!==-1&&N!==-1?h=P>N:P!==-1?h=!0:N!==-1&&(h=!1)}if(h||Et(x)||Et(g)||x.type==="value-atword"&&(x.value===""||x.value.endsWith("["))||g.type==="value-word"&&g.value.startsWith("]")||x.value==="~")continue;if(r.parser==="less"){if(g?.type==="value-word"&&g.value==="[")continue;if(x.type==="value-word"&&x.value.endsWith("[")&&(g?.type==="value-atword"||g?.type==="value-word")){Ce(s.groups.some((P,N)=>N>v&&(P.value?.startsWith("]")||P.value?.endsWith("]"))));continue}if((x.type==="value-word"||x.type==="value-atword")&&x.value.endsWith("[$")&&g?.type==="value-atword"||x.type==="value-word"&&x.value==="$"&&(b?.type==="value-word"||b?.type==="value-atword")&&b.value.endsWith("[")&&g?.type==="value-atword")continue}if(x.type!=="value-string"&&x.value&&x.value.includes("\\")&&g&&g.type!=="value-comment"||b?.value&&b.value.indexOf("\\")===b.value.length-1&&x.type==="value-operator"&&x.value==="/"||x.value==="\\"||ui(x,g)||wt(x)||ur(x)||bt(g)||ur(g)&&oe(g)||bt(x)&&oe(g)||x.value==="--"&&wt(g))continue;let T=Xe(x),O=Xe(g);if((T&&wt(g)||O&&bt(x))&&oe(g)||ie(g)&&Me(e,"type")&&oe(g)||!b&&Oe(x)||Me(e,"calc")&&(ie(x)||ie(g)||Te(x)||Te(g))&&oe(g))continue;if(r.parser==="scss"&&T&&x.value==="-"&&g.type==="value-func"&&V(x)!==Z(g)){u.push([u.pop()," "]);continue}let k=s.groups[v+2],_=(ie(x)||Te(x))&&v===0&&(g.type==="value-number"||g.isHex)&&p&&hi(p)&&!oe(g),C=k?.type==="value-func"||k&&Ye(k)||x.type==="value-func"||Ye(x),I=g.type==="value-func"||Ye(g)||b?.type==="value-func"||b&&Ye(b);if(!(!(St(g)||St(x))&&!Me(e,"calc")&&!_&&(Oe(g)&&!C||Oe(x)&&!I||ie(g)&&!C||ie(x)&&!I||Te(g)||Te(x))&&(oe(g)||T&&(!b||b&&Xe(b))))&&!((r.parser==="scss"||r.parser==="less")&&T&&x.value==="-"&&Ze(g)&&V(x)===Z(g.open)&&g.open.value==="(")){if(Qe(x)){if(l.type==="value-paren_group"){u.push(t?D:ze(D),"");continue}u.push(D,"");continue}if(y&&(or(g)||ir(g)||c&&(or(x)||ir(x))||nr(g)||oi(x)||ni(x))){u.push([u.pop()," "]);continue}if(w&&w.name.toLowerCase()==="namespace"){u.push([u.pop()," "]);continue}if(m){x.source&&g.source&&x.source.start.line!==g.source.start.line?(u.push(D,""),d=!0):u.push([u.pop()," "]);continue}if(!(f&&(f==="font"||f.startsWith("--"))&&(Oe(g)&&oe(g)&&lr(x)||Oe(x)&&oe(x)&&lr(b)))){if(O){u.push([u.pop()," "]);continue}if(g?.value!=="..."&&!(_e(x)&&_e(g)&&V(x)===Z(g))){if(_e(x)&&Ze(g)&&V(x)===Z(g.open)){u.push(H,"");continue}if(x.value==="with"&&Ze(g)){u=[[Ke(u)," "]];continue}if(!(x.value?.endsWith("#")&&g.value==="{"&&Ze(g.group))&&!(Qe(g)&&!k)){if(!w&&x.type==="value-comment"&&!x.inline&&s.groups.slice(0,v).every(P=>P.type==="value-comment")){u.push(t?F:ze(F),"");continue}u.push(F,"")}}}}}return o&&u.push([u.pop(),lt]),d&&u.unshift("",D),y?Q(J(u)):ei(e)?Q(Ke(u)):Q(J(Ke(u)))}function lr(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let r=e.value.toLowerCase();return r==="var"||r==="calc"||r==="min"||r==="max"||r==="clamp"||r.startsWith("--")}var yi=mi,gi=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let n=this[r];if(e(n,r,this))return n}},vi=Dt("findLast",function(){if(Array.isArray(this))return gi}),wi=vi;function bi(e,r){if(r===!1)return!1;if(e.charAt(r)==="/"&&e.charAt(r+1)==="*"){for(let n=r+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return r}var ls=bi,cr=e=>e===`
|
|
58
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function xi(e,r,n){if(r===!1)return!1;let s=!!n?.backwards,l=e.charAt(r);if(s){if(e.charAt(r-1)==="\r"&&l===`
|
|
59
|
+
`)return r-2;if(cr(l))return r-1}else{if(l==="\r"&&e.charAt(r+1)===`
|
|
60
|
+
`)return r+2;if(cr(l))return r+1}return r}var Yt=xi;function ki(e,r){return r===!1?!1:e.charAt(r)==="/"&&e.charAt(r+1)==="/"?Gr(e,r):r}var cs=ki;function Oi(e,r){let n=null,s=r;for(;s!==n;)n=s,s=Gt(e,s),s=ls(e,s),s=cs(e,s),s=Yt(e,s);return s}var Ti=Oi;function _i(e,r){let n=Ti(e,r);return n===!1?"":e.charAt(n)}var Si=_i;function Ci(e,r,n={}){let s=Gt(e,n.backwards?r-1:r,n),l=Yt(e,s,n);return s!==l}var ps=Ci;function Ei(e,r){let n=null,s=r;for(;s!==n;)n=s,s=uo(e,s),s=ls(e,s),s=Gt(e,s);return s=cs(e,s),s=Yt(e,s),s!==!1&&ps(e,s)}var fs=Ei;function Ai(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Ii=Ai,At=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function hs(e){let r=e.toLowerCase();return At.has(r)?At.get(r):e}var Zt=/(?<quote>["'])(?:(?!\k<quote>)[^\\]|\\.)*\k<quote>/gs,ji=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/gi,Pi=/[a-z]+/gi,Mi=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/gi,Ni=new RegExp(Zt.source+`|(${Mi.source})?(${ji.source})(${Pi.source})?`,"gi");function te(e,r){return U(0,e,Zt,n=>Vr(n,r))}function $i(e){return U(0,e,Zt,"")}function Ri(e,r){let n=r.singleQuote?"'":'"',s="",l=e.match(/^(?<value>.+?)\s+(?<flag>[a-z])$/i);return l&&({value:e,flag:s}=l.groups),(e.includes('"')||e.includes("'")?e:n+e+n)+(s?` ${s}`:"")}function ke(e){return U(0,e,Ni,(r,n,s,l,p)=>!s&&l&&(p??(p=""),p=p.toLowerCase(),!p||p==="n"||At.has(p))?ds(l)+(p?hs(p):""):r)}function ds(e){return Ii(e).replace(/\.0(?=$|e)/,"")}function Wi(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function Li({node:e,parent:r},n){if(r.type!=="value-paren_group")return!1;let s=e.type==="value-comma_group"?e.groups:[e],l=wi(0,s,p=>p.type!=="value-comment");return l?Si(n.originalText,V(l))===",":!1}function zi(e,r){return(ri(e.grandparent)||r.parser==="scss"&&e.grandparent?.type!=="value-func"&&e.parent.groups.length===1&&!ht(e.parent.groups[0]))&&Li(e,r)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(n=>n.type==="value-comment"))&&Wi(r)&&e.callParent(()=>us(e,r))?zr(","):""}function Bi(e,r,n){let{node:s,parent:l}=e,p=e.map(({node:i})=>typeof i=="string"?i:n(),"groups");if(l&&ti(l)&&(s.groups.length===1||s.groups.length>0&&s.groups[0].type==="value-comma_group"&&s.groups[0].groups.length>0&&s.groups[0].groups[0].type==="value-word"&&s.groups[0].groups[0].value.startsWith("data:")))return[s.open?n("open"):"",ae(",",p),s.close?n("close"):""];if(!s.open){let i=ms(e);Ht(p);let u=Di(ae(",",p),2),a=ae(i?D:F,u);return J(i?[D,a]:Q([qi(e)?H:"",Ke(a)]))}let f=e.map(({node:i,isLast:u,index:a})=>{let h=p[a];as(i,s)&&Re(h)===it&&Re(h.contents)===ot&&Re(h.contents.contents)===at&&(h=Q(ze(h)));let d=[h,u?zi(e,r):","];if(!u&&i.type==="value-comma_group"&&ct(i.groups)){let v=me(0,i.groups,-1);!v.source&&v.close&&(v=v.close),v.source&&fs(r.originalText,V(v))&&d.push(D)}return d},"groups"),m=pi(s,l),w=di(s,l),y=us(e,r),c=w||y&&!m,t=w||m,o=Q([s.open?n("open"):"",J([H,ae(F,f)]),H,Dr,s.close?n("close"):""],{shouldBreak:c});return t?ze(o):o}function ms(e){return e.match(r=>r.type==="value-paren_group"&&!r.open&&r.groups.some(n=>n.type==="value-comma_group"),(r,n)=>n==="group"&&r.type==="value-value",(r,n)=>n==="group"&&r.type==="value-root",(r,n)=>n==="value"&&(r.type==="css-decl"&&!r.prop.startsWith("--")||r.type==="css-atrule"&&r.variable))}function qi(e){return e.match(r=>r.type==="value-paren_group"&&!r.open,(r,n)=>n==="group"&&r.type==="value-value",(r,n)=>n==="group"&&r.type==="value-root",(r,n)=>n==="value"&&r.type==="css-decl")}function Di(e,r){let n=[];for(let s=0;s<e.length;s+=r)n.push(e.slice(s,s+r));return n}function Ui(e,r,n){let s=[];return e.each(()=>{let{node:l,previous:p}=e;if(p?.type==="css-comment"&&p.text.trim()==="prettier-ignore"?s.push(r.originalText.slice(Z(l),V(l))):s.push(n()),e.isLast)return;let{next:f}=e;f.type==="css-comment"&&!ps(r.originalText,Z(f),{backwards:!0})&&!_t(l)||f.type==="css-atrule"&&f.name==="else"&&l.type!=="css-comment"?s.push(" "):(s.push(r.__isHTMLStyleAttribute?F:D),fs(r.originalText,V(l))&&!_t(l)&&s.push(D))},"nodes"),s}var $e=Ui;function Fi(e,r,n){let{node:s,parent:l}=e,{between:p}=s.raws,f=p.trim(),m=f===":",w=p.endsWith(" ")&&m,y=typeof s.value=="string"&&/^ *$/.test(s.value),c=typeof s.value=="string"?s.value:n("value");c=li(s)?Rn(c):c,!m&&Ne(f)&&!e.call(()=>ms(e),"value","group","group")&&(c=J([D,ze(c)]));let t=[U(0,s.raws.before,/[\s;]/g,""),l.type==="css-atrule"&&l.variable||Xo(e)?s.prop:Pe(s.prop)];if(f.startsWith("//")&&t.push(" "),t.push(f),s.extend||y||!w&&s.isNested&&(_e(s.value.group.group)||_e(s.value.group.group.groups?.[0]))||t.push(" "),r.parser==="less"&&s.extend&&s.selector&&t.push(s.selector.nodes.length>1?Q(["extend(",J([H,n("selector")]),H,")"]):["extend(",n("selector"),")"]),t.push(c),s.raws.important){let o=`${y?"":" "}!important`;t.push(s.raws.important.replace(/\s*!\s*important/i,o))}else s.important&&t.push(" !important");return s.raws.scssDefault?t.push(s.raws.scssDefault.replace(/\s*!default/i," !default")):s.scssDefault&&t.push(" !default"),s.raws.scssGlobal?t.push(s.raws.scssGlobal.replace(/\s*!global/i," !global")):s.scssGlobal&&t.push(" !global"),s.nodes?t.push([" {",s.nodes.length>0?J([H,$e(e,r,n)]):"",H,"}"]):ai(s)&&!l.raws.semicolon&&r.originalText[V(s)-1]!==";"||t.push(r.__isHTMLStyleAttribute&&e.isLast?zr(";"):";"),t}function Vi(e,r,n){let{node:s}=e;switch(s.type){case"css-root":{let l=$e(e,r,n),p=s.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[s.frontMatter?[n("frontMatter"),D,s.nodes.length>0?D:""]:"",l,p?` ${p}`:"",s.nodes.length>0?D:""]}case"css-comment":{let l=s.inline||s.raws.inline,p=r.originalText.slice(Z(s),V(s));return l?p.trimEnd():p}case"css-rule":return[n("selector"),s.important?" !important":"",s.nodes?[s.selector?.type==="selector-unknown"&&Ne(s.selector.value)?F:s.selector?" ":"","{",s.nodes.length>0?J([D,$e(e,r,n)]):"",D,"}",si(s)?";":""]:";"];case"css-decl":return Fi(e,r,n);case"css-atrule":{let l=e.parent,p=gt(s)&&!l.raws.semicolon&&r.originalText[V(s)-1]!==";";if(r.parser==="less"){if(s.mixin)return[n("selector"),s.important?" !important":"",p?"":";"];if(s.function)return[s.name,typeof s.params=="string"?s.params:n("params"),p?"":";"];if(s.variable)return["@",s.name,": ",s.value?[n("value"),Dr]:"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",s.nodes.length>0?J([H,$e(e,r,n)]):"",H,"}"]:"",p?"":";"]}let f=s.name==="import"&&s.params?.type==="value-unknown"&&s.params.value.endsWith(";");return["@",ar(s)||s.name.endsWith(":")||gt(s)?s.name:Pe(s.name),s.params?[ar(s)?"":gt(s)?s.raws.afterName===""?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(s.raws.afterName)?[D,D]:/^\s*\n/.test(s.raws.afterName)?D:" ":" ",typeof s.params=="string"?s.params:n("params")]:"",s.selector?J([" ",n("selector")]):"",s.value?Q([" ",n("value"),Ct(s,r)?ci(s)?" ":F:""]):s.name==="else"?" ":"",s.nodes?[Ct(s,r)?"":s.selector&&!s.selector.nodes&&typeof s.selector.value=="string"&&Ne(s.selector.value)||!s.selector&&typeof s.params=="string"&&Ne(s.params)?F:" ","{",s.nodes.length>0?J([H,$e(e,r,n)]):"",H,"}"]:p||f?"":";"]}case"media-query-list":{let l=[];return e.each(({node:p})=>{p.type==="media-query"&&p.value===""||l.push(n())},"nodes"),Q(J(ae(F,l)))}case"media-query":return[ae(" ",e.map(n,"nodes")),e.isLast?"":","];case"media-type":return ke(te(s.value,r));case"media-feature-expression":return s.nodes?["(",...e.map(n,"nodes"),")"]:s.value;case"media-feature":return Pe(te(U(0,s.value,/ +/g," "),r));case"media-colon":return[s.value," "];case"media-value":return ke(te(s.value,r));case"media-keyword":return te(s.value,r);case"media-url":return te(U(0,U(0,s.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),r);case"media-unknown":return s.value;case"selector-root":return Q([Le(e,"custom-selector")?[e.findAncestor(l=>l.type==="css-atrule").customSelector,F]:"",ae([",",Le(e,["extend","custom-selector","nest"])?F:D],e.map(n,"nodes"))]);case"selector-selector":{let l=s.nodes.length>2;return Q((l?J:p=>p)(e.map(n,"nodes")))}case"selector-comment":return s.value;case"selector-string":return te(s.value,r);case"selector-tag":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",e.previous?.type==="selector-nesting"?s.value:ke(Ko(e,s.value)?s.value.toLowerCase():s.value)];case"selector-id":return["#",s.value];case"selector-class":return[".",ke(te(s.value,r))];case"selector-attribute":return["[",s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),s.operator??"",s.value?Wn(Ri(te(s.value.trim(),r),r),Br):"",s.insensitive?" i":"","]"];case"selector-combinator":{if(s.value==="+"||s.value===">"||s.value==="~"||s.value===">>>"){let f=e.parent,m=f.type==="selector-selector"&&f.nodes[0]===s,w=m?"":F,y=m&&s.value==="+"&&Zo(e.grandparent);return[w,s.value,e.isLast||y?"":" "]}let l=s.value.trimStart().startsWith("(")?F:"",p=ke(te(s.value.trim(),r))||F;return[l,p]}case"selector-universal":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[Pe(s.value),ct(s.nodes)?Q(["(",J([H,ae([",",F],e.map(n,"nodes"))]),H,")"]):""];case"selector-nesting":return s.value;case"selector-unknown":{if(e.findAncestor(f=>f.type==="css-rule")?.isScssNestedProperty)return ke(te(Pe(s.value),r));let l=e.parent;if(l.raws?.selector){let f=Z(l),m=f+l.raws.selector.length;return r.originalText.slice(f,m).trim()}let p=e.grandparent;if(l.type==="value-paren_group"&&p?.type==="value-func"&&p.value==="selector"){let f=V(l.open)+1,m=Z(l.close),w=r.originalText.slice(f,m).trim();return Ne(w)?[lt,w]:w}return s.value}case"value-value":case"value-root":return n("group");case"value-comment":{let l=r.originalText.slice(Z(s),V(s));return s.inline?qr(l.trimEnd()):l}case"value-comma_group":return yi(e,r,n);case"value-paren_group":return Bi(e,r,n);case"value-func":return[s.value,Le(e,"supports")&&fi(s)?" ":"",n("group")];case"value-paren":return s.value;case"value-number":return[ds(s.value),hs(s.unit)];case"value-operator":return s.value;case"value-word":return s.isColor&&s.isHex||Qo(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let{previous:l}=e;return Q([s.value,typeof l?.value=="string"&&l.value.endsWith("\\")||Me(e,"url")?"":F])}case"value-string":return Vr(s.raws.quote+s.value+s.raws.quote,r);case"value-atword":return["@",s.value];case"value-unicode-range":return s.value;case"value-unknown":return s.value;default:throw new Kn(s,"PostCSS")}}var Ji={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:Vi,embed:Xn,insertPragma:Vo,massageAstNode:rs,getVisitorKeys:io},Hi=Ji,Gi=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],Qi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Yi={singleQuote:Qi.singleQuote},Zi=Yi,ys={};dr(ys,{css:()=>Fa,less:()=>Va,scss:()=>Ja});var Ki=K(nt(),1),Xi=K(qe(),1),ea=K(Be(),1),ta=K(Wt(),1),ra=K(Rt(),1),sa=K(qe(),1);function gs(e){if(e[0]==="word"&&e[1].slice(0,2)==="//"){let r=e,n=[],s,l;for(;e;){if(/\r?\n/.test(e[1])){if(/['"].*\r?\n/.test(e[1])){n.push(e[1].substring(0,e[1].indexOf(`
|
|
61
|
+
`))),l=e[1].substring(e[1].indexOf(`
|
|
62
|
+
`));let f=this.input.css.valueOf().substring(this.tokenizer.position());l+=f,s=e[3]+f.length-l.length}else this.tokenizer.back(e);break}n.push(e[1]),s=e[2],e=this.tokenizer.nextToken({ignoreUnclosed:!0})}let p=["comment",n.join(""),r[2],s];return this.inlineComment(p),l&&(this.input=new sa.default(l,{from:this.input.file}),this.tokenizer=(0,ra.default)(this.input)),!0}else if(e[1]==="/"){let r=this.tokenizer.nextToken({ignoreUnclosed:!0});if(r[0]==="comment"&&/^\/\*/.test(r[1]))return r[0]="word",r[1]=r[1].slice(1),e[1]="//",this.tokenizer.back(r),gs.bind(this)(e)}return!1}function It(e){let r=[e,this.tokenizer.nextToken()],n=["word","}"];if(r[0][1].length>1||r[1][0]!=="{")return this.tokenizer.back(r[1]),!1;for(e=this.tokenizer.nextToken();e&&n.includes(e[0]);)r.push(e),e=this.tokenizer.nextToken();let s=r.map(m=>m[1]),[l]=r,p=r.pop(),f=["word",s.join(""),l[2],p[2]];return this.tokenizer.back(e),this.tokenizer.back(f),!0}function na(e){let r=[],n=e.tokenizer.nextToken();for(;n&&!(n[0]==="at-word"&&n[1]==="@"&&It.bind(e)(n)&&(n=e.tokenizer.nextToken(),!n)||(r.push(n),n[0]==="{"||n[0]==="}"||n[0]===";"));)n=e.tokenizer.nextToken();for(let s of r.reverse())e.tokenizer.back(s)}var oa=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,ia=/\.[0-9]/,aa=e=>{let[,r]=e,[n]=r;return(n==="."||n==="#")&&oa.test(r)===!1&&ia.test(r)===!1},ua=K(Rt(),1),la=/^url\((.+)\)/;function ca(e){let{name:r,params:n=""}=e;if(r==="import"&&n.length){e.import=!0;let s=(0,ua.default)({css:n});for(e.filename=n.replace(la,"$1");!s.endOfFile();){let[l,p]=s.nextToken();if(l==="word"&&p==="url")return;if(l==="brackets"){e.options=p,e.filename=n.replace(p,"").trim();break}}}}var pr=/:$/,fr=/^:(\s+)?/;function pa(e){let{name:r,params:n=""}=e;if(e.name.slice(-1)===":"){if(pr.test(r)){let[s]=r.match(pr);e.name=r.replace(s,""),e.raws.afterName=s+(e.raws.afterName||""),e.variable=!0,e.value=e.params}if(fr.test(n)){let[s]=n.match(fr);e.value=n.replace(s,""),e.raws.afterName=(e.raws.afterName||"")+s,e.variable=!0}}}var fa=/(!\s*important)$/i,ha=class extends ta.default{constructor(...e){super(...e),this.lastNode=null}atrule(e){It.bind(this)(e)||(na(this),super.atrule(e),ca(this.lastNode),pa(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let r=e.findIndex(p=>p[0]==="("),n=e.reverse().find(p=>p[0]===")"),s=e.reverse().indexOf(n),l=e.splice(r,s).map(p=>p[1]).join("");for(let p of e.reverse())this.tokenizer.back(p);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=l}init(e,r,n){super.init(e,r,n),this.lastNode=e}inlineComment(e){let r=new ea.default,n=e[1].slice(2);if(this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.inline=!0,r.raws.begin="//",/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let s=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,r.raws.left,r.text,r.raws.right]=s}}mixin(e){let[r]=e,n=r[1].slice(0,1),s=e.findIndex(w=>w[0]==="brackets"),l=e.findIndex(w=>w[0]==="("),p="";if((s<0||s>3)&&l>0){let w=e.reduce((d,v,b)=>v[0]===")"?b:d),y=e.slice(l,w+l).map(d=>d[1]).join(""),[c]=e.slice(l),t=[c[2],c[3]],[o]=e.slice(w,w+1),i=[o[2],o[3]],u=["brackets",y].concat(t,i),a=e.slice(0,l),h=e.slice(w+1);e=a,e.push(u),e=e.concat(h)}let f=[];for(let w of e)if((w[1]==="!"||f.length)&&f.push(w),w[1]==="important")break;if(f.length){let[w]=f,y=e.indexOf(w),c=f[f.length-1],t=[w[2],w[3]],o=[c[4],c[5]],i=["word",f.map(u=>u[1]).join("")].concat(t,o);e.splice(y,f.length,i)}let m=e.findIndex(w=>fa.test(w[1]));m>0&&([,p]=e[m],e.splice(m,1));for(let w of e.reverse())this.tokenizer.back(w);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,p&&(this.lastNode.important=!0,this.lastNode.raws.important=p)}other(e){gs.bind(this)(e)||super.other(e)}rule(e){let r=e[e.length-1],n=e[e.length-2];if(n[0]==="at-word"&&r[0]==="{"&&(this.tokenizer.back(r),It.bind(this)(n))){let s=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([s]);for(let l of e.reverse())this.tokenizer.back(l);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[r]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(aa(r)){this.mixin(e);return}super.unknownWord(e)}};function da(e,r){let n=new Xi.default(e,r),s=new ha(n);return s.parse(),s.root.walk(l=>{let p=n.css.lastIndexOf(l.source.input.css);if(p===0)return;if(p+l.source.input.css.length!==n.css.length)throw new Error("Invalid state detected in postcss-less");let f=p+l.source.start.offset,m=n.fromOffset(p+l.source.start.offset);if(l.source.start={column:m.col,line:m.line,offset:f},l.source.end){let w=p+l.source.end.offset,y=n.fromOffset(p+l.source.end.offset);l.source.end={column:y.col,line:y.line,offset:w}}}),s.root}var ma=K(Bs(),1);function ya(e,r){let n=new SyntaxError(e+" ("+r.loc.start.line+":"+r.loc.start.column+")");return Object.assign(n,r)}var ga=ya;function va(e){return e!==null&&typeof e=="object"}var dt=va,wa=K(Ds(),1);function Fe(e,r,n){if(dt(e)){delete e.parent;for(let s in e)Fe(e[s],r,n),s==="type"&&typeof e[s]=="string"&&!e[s].startsWith(r)&&(!n||!n.test(e[s]))&&(e[s]=r+e[s])}return e}function vs(e){if(dt(e)){delete e.parent;for(let r in e)vs(e[r]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var ba=wa.default.default;function xa(e){let r;try{r=ba(e)}catch{return{type:"selector-unknown",value:e}}return Fe(vs(r),"media-")}var ka=xa,Oa=K(nn(),1);function Ta(e){if(/\/[/*]/.test($i(e)))return{type:"selector-unknown",value:e.trim()};let r;try{new Oa.default(n=>{r=n}).process(e)}catch{return{type:"selector-unknown",value:e}}return Fe(r,"selector-")}var de=Ta,_a=K(kn(),1),Sa=e=>{for(;e.parent;)e=e.parent;return e},ws=Sa;function Ca(e){return ws(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Ea=Ca;function Aa(e){if(ct(e)){for(let r=e.length-1;r>0;r--)if(e[r].type==="word"&&e[r].value==="{"&&e[r-1].type==="word"&&e[r-1].value.endsWith("#"))return!0}return!1}var Ia=Aa;function ja(e){return e.some(r=>r.type==="string"||r.type==="func"&&!r.value.endsWith("\\"))}var Pa=ja;function Ma(e,r){return!!(r.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}var Na=Ma,hr=e=>e.type==="paren"&&e.value===")";function $a(e,r){let{nodes:n}=e,s={open:null,close:null,groups:[],type:"paren_group"},l=[s],p=s,f={groups:[],type:"comma_group"},m=[f];for(let w=0;w<n.length;++w){let y=n[w];if(r.parser==="scss"&&y.type==="number"&&y.unit===".."&&y.value.endsWith(".")&&(y.value=y.value.slice(0,-1),y.unit="..."),y.type==="func"&&y.value==="selector"){let c=ws(e).text.slice(y.group.open.sourceIndex+1,y.group.close.sourceIndex),t=de(c);t.sourceIndex=y.group.open.sourceIndex+1,t.raws??(t.raws={}),t.raws.selector=c,y.group.groups=[t]}if(y.type==="func"&&y.value==="url"){let c=y.group?.groups??[],t=[];for(let o=0;o<c.length;o++){let i=c[o];i.type==="comma_group"?t=[...t,...i.groups]:t.push(i)}(Ia(t)||!Pa(t)&&!Na(t[0],r))&&(y.group.groups=[Ea(y)])}if(y.type==="paren"&&y.value==="(")s={open:y,close:null,groups:[],type:"paren_group"},l.push(s),f={groups:[],type:"comma_group"},m.push(f);else if(hr(y)){if(f.groups.length>0&&s.groups.push(f),s.close=y,m.length===1)throw new Error("Unbalanced parenthesis");m.pop(),f=me(0,m,-1),f.groups.push(s),l.pop(),s=me(0,l,-1)}else if(y.type==="comma"){if(w===n.length-3&&n[w+1].type==="comment"&&hr(n[w+2]))continue;s.groups.push(f),f={groups:[],type:"comma_group"},m[m.length-1]=f}else f.groups.push(y)}return f.groups.length>0&&s.groups.push(f),p}function jt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?jt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(jt)}:e}function bs(e,r){if(dt(e))for(let n in e)n!=="parent"&&(bs(e[n],r),n==="nodes"&&(e.type==="atword"&&e.nodes.length===0||(e.group=jt($a(e,r))),delete e[n]));return e}function Ra(e,r){if(r.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let n;try{n=new _a.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}n.text=e;let s=bs(n,r);return Fe(s,"value-",/^selector-/)}var he=Ra,Wa=new Set(["import","use","forward"]);function La(e){return Wa.has(e)}var za=La;function Ba(e,r){return r.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trimEnd().endsWith(":")}var qa=Ba,Da=/(\s*)(!default).*$/,Ua=/(\s*)(!global).*$/;function xs(e,r){if(dt(e)){delete e.parent;for(let p in e)xs(e[p],r);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let p;if(e.value.trimEnd().endsWith("}")){let f=r.originalText.slice(0,e.source.start.offset),m="a".repeat(e.prop.length)+r.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),w=ts(f)+m,y;r.parser==="scss"?y=Ts:r.parser==="less"?y=Os:y=ks;let c;try{c=y(w,{...r})}catch{}c?.nodes?.length===1&&c.nodes[0].type==="css-rule"&&(p=c.nodes[0].nodes)}return p?e.value={type:"css-rule",nodes:p}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let n="";typeof e.selector=="string"&&(n=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(n+=e.raws.between),e.raws.selector=n);let s="";typeof e.value=="string"&&(s=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=s.trim());let l="";if(typeof e.params=="string"&&(l=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(l=e.raws.afterName+l),e.raws.between&&e.raws.between.trim().length>0&&(l+=e.raws.between),l=l.trim(),e.raws.params=l),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?e:e.mixin?(e.selector=he(n,r),e):(qa(e,r)&&(e.isScssNestedProperty=!0),e.selector=de(n),e);if(s.trim().length>0){let p=s.match(Da);p&&(s=s.slice(0,p.index),e.scssDefault=!0,p[0].trim()!=="!default"&&(e.raws.scssDefault=p[0]));let f=s.match(Ua);if(f&&(s=s.slice(0,f.index),e.scssGlobal=!0,f[0].trim()!=="!global"&&(e.raws.scssGlobal=f[0])),s.startsWith("progid:"))return{type:"value-unknown",value:s};e.value=he(s,r)}if(r.parser==="less"&&e.type==="css-decl"&&typeof e.prop=="string"&&/^\s*\+\s*:/.test(e.raws.between)&&(e.prop+="+",e.raws.between=e.raws.between.replace("+","")),r.parser==="less"&&e.type==="css-decl"&&s.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=de(s.slice(7,-1)))),e.type==="css-atrule"){if(r.parser==="less"){if(e.mixin){let p=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=de(p),delete e.params,e}if(e.function)return e}if(r.parser==="css"&&e.name==="custom-selector"){let p=e.params.match(/:--\S+\s+/)[0].trim();return e.customSelector=p,e.selector=de(e.params.slice(p.length).trim()),delete e.params,e}if(r.parser==="less"){if(e.name.includes(":")){e.variable=!0;let p=e.name.split(":");e.name=p[0];let f=p.slice(1).join(":");e.params&&(f+=e.params),e.value=he(f,r)}if(!["page","nest","keyframes"].includes(e.name)&&e.params?.[0]===":"){e.variable=!0;let p=e.params.slice(1);p&&(e.value=he(p,r)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&l.length>0){let{name:p}=e;if(p==="warn"||p==="error")return e.params={type:"media-unknown",value:l},e;if(p==="extend"||p==="nest")return e.selector=de(l),delete e.params,e;if(p==="at-root")return/^\(\s*(?:without|with)\s*:.+\)$/s.test(l)?e.params=he(l,r):(e.selector=de(l),delete e.params),e;let f=p.toLowerCase();return za(f)?(e.import=!0,delete e.filename,e.params=he(l,r),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(p)?(l=l.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),l=l.replace(/^(?!if)([^"'\s(]+)(\s+)\(/,"$1($2"),e.value=he(l,r),delete e.params,e):["media","custom-media"].includes(f)?l.includes("#{")?{type:"media-unknown",value:l}:(e.params=ka(l),e):(e.params=l,e)}}return e}function Kt(e,r,n){let{frontMatter:s,content:l}=ft(r),p;try{p=e(l,{map:!1})}catch(f){let{name:m,reason:w,line:y,column:c}=f;throw typeof y!="number"?f:ga(`${m}: ${w}`,{loc:{start:{line:y,column:c}},cause:f})}return n.originalText=r,p=xs(Fe(p,"css-"),n),lo(p,r),s&&(p.frontMatter={...s,type:"front-matter",source:{startOffset:s.start.index,endOffset:s.end.index}}),p}function ks(e,r={}){return Kt(Ki.default.default,e,r)}function Os(e,r={}){return Kt(n=>da(go(n)),e,r)}function Ts(e,r={}){return Kt(ma.default,e,r)}var Xt={astFormat:"postcss",hasPragma:Uo,hasIgnorePragma:Fo,locStart:Z,locEnd:V},Fa={...Xt,parse:ks},Va={...Xt,parse:Os},Ja={...Xt,parse:Ts},Ha={postcss:Hi};export{On as default,Gi as languages,Zi as options,ys as parsers,Ha as printers};
|