prettier 3.0.0-alpha.7-for-vscode → 3.0.0-alpha.9-for-vscode

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/LICENSE CHANGED
@@ -17,7 +17,7 @@ MIT, ISC, BSD-2-Clause, BSD-3-Clause, 0BSD, Apache-2.0
17
17
 
18
18
  ## Bundled dependencies
19
19
 
20
- ### @angular/compiler@v15.2.7
20
+ ### @angular/compiler@v15.2.8
21
21
 
22
22
  > Angular - the compiler library
23
23
 
@@ -3695,7 +3695,7 @@ Author: typicode
3695
3695
 
3696
3696
  ----------------------------------------
3697
3697
 
3698
- ### postcss@v8.4.22
3698
+ ### postcss@v8.4.23
3699
3699
 
3700
3700
  > Tool for transforming styles with JS plugins
3701
3701
 
package/index.cjs CHANGED
@@ -20714,7 +20714,7 @@ function isNextLineEmpty2(text, startIndex) {
20714
20714
  var doc = __toESM(require("./doc.js"), 1);
20715
20715
 
20716
20716
  // src/main/version.evaluate.cjs
20717
- var version_evaluate_default = "3.0.0-alpha.7-for-vscode";
20717
+ var version_evaluate_default = "3.0.0-alpha.9-for-vscode";
20718
20718
 
20719
20719
  // src/index.js
20720
20720
  function withPlugins(fn, optionsArgumentIndex = 1) {
package/index.mjs CHANGED
@@ -20711,7 +20711,7 @@ function isNextLineEmpty2(text, startIndex) {
20711
20711
  import * as doc from "./doc.mjs";
20712
20712
 
20713
20713
  // src/main/version.evaluate.cjs
20714
- var version_evaluate_default = "3.0.0-alpha.7-for-vscode";
20714
+ var version_evaluate_default = "3.0.0-alpha.9-for-vscode";
20715
20715
 
20716
20716
  // src/index.js
20717
20717
  function withPlugins(fn, optionsArgumentIndex = 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier",
3
- "version": "3.0.0-alpha.7-for-vscode",
3
+ "version": "3.0.0-alpha.9-for-vscode",
4
4
  "description": "Prettier is an opinionated code formatter",
5
5
  "bin": "./bin/prettier.cjs",
6
6
  "repository": "prettier/prettier",
@@ -35,7 +35,7 @@
35
35
  `," "];return vt.split(t,e)},comma(t){return vt.split(t,[","],!0)}};Lo.exports=vt;vt.default=vt});var cr=y((cb,Bo)=>{"use strict";var Mo=ae(),Kf=Ms(),Me=class extends Mo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Kf.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};Bo.exports=Me;Me.default=Me;Mo.registerRule(Me)});var fr=y((fb,Uo)=>{"use strict";var Hf=yt(),Qf=ur(),jf=qe(),Jf=lr(),Xf=Le(),Fo=cr(),$o={empty:!0,space:!0};function Zf(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var Bs=class{constructor(e){this.input=e,this.root=new Xf,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Qf(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let s=new jf;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}emptyRule(e){let s=new Fo;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}other(e){let s=!1,r=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}rule(e){e.pop();let s=new Fo;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}decl(e,s){let r=new Hf;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Zf(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let g=f[l][0];if(p.trim().indexOf("!")===0&&g!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}atrule(e){let s=new Jf;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,n=u[i];n&&n[0]==="space";)n=u[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(s.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(s,"params",u),o&&(e=u[u.length-1],s.source.end=this.getPosition(e[3]||e[2]),this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let s=this.input.fromOffset(e);return{offset:e,line:s.line,column:s.col}}init(e,s){this.current.push(e),e.source={start:this.getPosition(s),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,s,r,n){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;l<a;l+=1)i=r[l],o=i[0],o==="space"&&l===a-1&&!n?c=!1:o==="comment"?(p=r[l-1]?r[l-1][0]:"empty",f=r[l+1]?r[l+1][0]:"empty",!$o[p]&&!$o[f]?u.slice(-1)===","?c=!1:u+=i[1]:c=!1):u+=i[1];if(!c){let l=r.reduce((g,x)=>g+x[1],"");e.raws[s]={value:u,raw:l}}e[s]=u}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n<e.length;n++)r+=e[n][1];return e.splice(s,e.length-s),r}colon(e){let s=0,r,n,i;for(let[o,a]of e.entries()){if(r=a,n=r[0],n==="("&&(s+=1),n===")"&&(s-=1),s===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,s){throw this.input.error("At-rule without name",{offset:s[2]},{offset:s[2]+s[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}};Uo.exports=Bs});var Wo=y(()=>{});var Vo=y((db,zo)=>{var ep="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tp=(t,e=21)=>(s=e)=>{let r="",n=s;for(;n--;)r+=t[Math.random()*t.length|0];return r},rp=(t=21)=>{let e="",s=t;for(;s--;)e+=ep[Math.random()*64|0];return e};zo.exports={nanoid:rp,customAlphabet:tp}});var Fs=y((mb,Yo)=>{Yo.exports=class{}});var Fe=y((gb,Qo)=>{"use strict";var{SourceMapConsumer:sp,SourceMapGenerator:np}=Wo(),{fileURLToPath:Go,pathToFileURL:pr}={},{resolve:Ws,isAbsolute:zs}={},{nanoid:ip}=Vo(),$s=Ps(),Ko=Xt(),op=Fs(),Us=Symbol("fromOffsetCache"),ap=!!(sp&&np),Ho=!!(Ws&&zs),Be=class{constructor(e,s={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,s.from&&(!Ho||/^\w+:\/\//.test(s.from)||zs(s.from)?this.file=s.from:this.file=Ws(s.from)),Ho&&ap){let r=new op(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+ip(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let s,r;if(this[Us])r=this[Us];else{let i=this.css.split(`
36
36
  `);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a<u;a++)r[a]=o,o+=i[a].length+1;this[Us]=r}s=r[r.length-1];let n=0;if(e>=s)n=r.length-1;else{let i=r.length-2,o;for(;n<i;)if(o=n+(i-n>>1),e<r[o])i=o-1;else if(e>=r[o+1])n=o+1;else{n=o;break}}return{line:n+1,col:e-r[n]+1}}error(e,s,r,n={}){let i,o,a;if(s&&typeof s=="object"){let c=s,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,r=p.col}else s=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(s);s=c.line,r=c.col}let u=this.origin(s,r,o,a);return u?i=new Ko(e,u.endLine===void 0?u.line:{line:u.line,column:u.column},u.endLine===void 0?u.column:{line:u.endLine,column:u.endColumn},u.source,u.file,n.plugin):i=new Ko(e,o===void 0?s:{line:s,column:r},o===void 0?r:{line:o,column:a},this.css,this.file,n.plugin),i.input={line:s,column:r,endLine:o,endColumn:a,source:this.css},this.file&&(pr&&(i.input.url=pr(this.file).toString()),i.input.file=this.file),i}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({line:e,column:s});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({line:r,column:n}));let u;zs(o.source)?u=pr(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||pr(this.map.mapFile));let c={url:u.toString(),line:o.line,column:o.column,endLine:a&&a.line,endColumn:a&&a.column};if(u.protocol==="file:")if(Go)c.file=Go(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ws(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Qo.exports=Be;Be.default=Be;$s&&$s.registerInput&&$s.registerInput(Be)});var xt=y((wb,jo)=>{"use strict";var up=ae(),lp=fr(),cp=Fe();function hr(t,e){let s=new cp(t,e),r=new lp(s);try{r.parse()}catch(n){throw n}return r.root}jo.exports=hr;hr.default=hr;up.registerParse(hr)});var Jo=y((vb,Vs)=>{var fp=ur(),pp=Fe();Vs.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(`
37
37
  `))),n=t[1].substring(t[1].indexOf(`
38
- `));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new pp(n),this.tokenizer=fp(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),Vs.exports.isInlineComment.bind(this)(t)}return!1}}});var Zo=y((xb,Xo)=>{Xo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var ta=y((bb,ea)=>{var hp=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,dp=/\.[0-9]/,mp=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&hp.test(e)===!1&&dp.test(e)===!1};ea.exports={isMixinToken:mp}});var sa=y((kb,ra)=>{var yp=ur(),gp=/^url\((.+)\)/;ra.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=yp({css:s});for(t.filename=s.replace(gp,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var aa=y((_b,oa)=>{var na=/:$/,ia=/^:(\s+)?/;oa.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(na.test(e)){let[r]=e.match(na);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(ia.test(s)){let[r]=s.match(ia);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var ca=y((Eb,la)=>{var wp=qe(),vp=fr(),{isInlineComment:xp}=Jo(),{interpolation:ua}=Zo(),{isMixinToken:bp}=ta(),kp=sa(),_p=aa(),Tp=/(!\s*important)$/i;la.exports=class extends vp{constructor(...e){super(...e),this.lastNode=null}atrule(e){ua.bind(this)(e)||(super.atrule(e),kp(this.lastNode),_p(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 s=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new wp,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,P)=>v[0]===")"?P:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>Tp.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){xp.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),ua.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(bp(s)){this.mixin(e);return}super.unknownWord(e)}}});var pa=y((Cb,fa)=>{var Ep=Zt();fa.exports=class extends Ep{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var ha=y((Ob,Ys)=>{var Sp=Fe(),Cp=ca(),Op=pa();Ys.exports={parse(t,e){let s=new Sp(t,e),r=new Cp(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Op(e).stringify(t)},nodeToString(t){let e="";return Ys.exports.stringify(t,s=>{e+=s}),e}}});var Gs=y((Ab,da)=>{da.exports=class{generate(){}}});var dr=y((Pb,ga)=>{"use strict";var Ap=ae(),ma,ya,ve=class extends Ap{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ma(new ya,this,e).stringify()}};ve.registerLazyResult=t=>{ma=t};ve.registerProcessor=t=>{ya=t};ga.exports=ve;ve.default=ve});var Ks=y((Rb,va)=>{"use strict";var wa={};va.exports=function(e){wa[e]||(wa[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Hs=y((Ib,xa)=>{"use strict";var bt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};xa.exports=bt;bt.default=bt});var mr=y((qb,ba)=>{"use strict";var Np=Hs(),kt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new Np(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};ba.exports=kt;kt.default=kt});var Js=y((Lb,Ea)=>{"use strict";var{isClean:H,my:Pp}=Jt(),Rp=Gs(),Ip=pt(),qp=ae(),Dp=dr(),Db=Ks(),ka=mr(),Lp=xt(),Mp=Le(),Bp={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Fp={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},$p={postcssPlugin:!0,prepare:!0,Once:!0},$e=0;function _t(t){return typeof t=="object"&&typeof t.then=="function"}function Ta(t){let e=!1,s=Bp[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,$e,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,$e,s+"Exit"]:[s,s+"Exit"]}function _a(t){let e;return t.type==="document"?e=["Document",$e,"DocumentExit"]:t.type==="root"?e=["Root",$e,"RootExit"]:e=Ta(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Qs(t){return t[H]=!1,t.nodes&&t.nodes.forEach(e=>Qs(e)),t}var js={},Q=class{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=Qs(s);else if(s instanceof Q||s instanceof ka)n=Qs(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Lp;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[Pp]&&qp.rebuild(n)}this.result=new ka(e,n,r),this.helpers={...js,result:this.result,postcss:js},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(_t(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];)e[H]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Ip;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Rp(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[H]=!0;let s=Ta(e);for(let r of s)if(r===$e)e.nodes&&e.each(n=>{n[H]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(_t(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return _t(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let s=this.plugins[e],r=this.runOnRoot(s);if(_t(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];){e[H]=!0;let s=[_a(e)];for(;s.length>0;){let r=this.visitTick(s);if(_t(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Fp[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!$p[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex<n.length){let[o,a]=n[s.visitorIndex];s.visitorIndex+=1,s.visitorIndex===n.length&&(s.visitors=[],s.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(s.iterator!==0){let o=s.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[H]){a[H]=!0,e.push(_a(a));return}s.iterator=0,delete r.indexes[o]}let i=s.events;for(;s.eventIndex<i.length;){let o=i[s.eventIndex];if(s.eventIndex+=1,o===$e){r.nodes&&r.nodes.length&&(r[H]=!0,s.iterator=r.getIterator());return}else if(this.listeners[o]){s.visitors=this.listeners[o];return}}e.pop()}};Q.registerPostcss=t=>{js=t};Ea.exports=Q;Q.default=Q;Mp.registerLazyResult(Q);Dp.registerLazyResult(Q)});var Ca=y((Bb,Sa)=>{"use strict";var Up=Gs(),Wp=pt(),Mb=Ks(),zp=xt(),Vp=mr(),Tt=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Wp;this.result=new Vp(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Up(i,n,this._opts,s);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,s=zp;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};Sa.exports=Tt;Tt.default=Tt});var Aa=y((Fb,Oa)=>{"use strict";var Yp=Ca(),Gp=Js(),Kp=dr(),Hp=Le(),xe=class{constructor(e=[]){this.version="8.4.22",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,s={}){return this.plugins.length===0&&typeof s.parser>"u"&&typeof s.stringifier>"u"&&typeof s.syntax>"u"?new Yp(this,e,s):new Gp(this,e,s)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}};Oa.exports=xe;xe.default=xe;Hp.registerProcessor(xe);Kp.registerProcessor(xe)});var Pa=y(($b,Na)=>{"use strict";var Qp=yt(),jp=Fs(),Jp=qe(),Xp=lr(),Zp=Fe(),eh=Le(),th=cr();function Et(t,e){if(Array.isArray(t))return t.map(n=>Et(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:Zp.prototype};i.map&&(i.map={...i.map,__proto__:jp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>Et(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new eh(r);if(r.type==="decl")return new Qp(r);if(r.type==="rule")return new th(r);if(r.type==="comment")return new Jp(r);if(r.type==="atrule")return new Xp(r);throw new Error("Unknown node type: "+t.type)}Na.exports=Et;Et.default=Et});var yr=y((Ub,Ba)=>{"use strict";var rh=Xt(),Ra=yt(),sh=Js(),nh=ae(),Xs=Aa(),ih=pt(),oh=Pa(),Ia=dr(),ah=Hs(),qa=qe(),Da=lr(),uh=mr(),lh=Fe(),ch=xt(),fh=Ms(),La=cr(),Ma=Le(),ph=dt();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Xs(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
38
+ `));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new pp(n),this.tokenizer=fp(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),Vs.exports.isInlineComment.bind(this)(t)}return!1}}});var Zo=y((xb,Xo)=>{Xo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var ta=y((bb,ea)=>{var hp=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,dp=/\.[0-9]/,mp=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&hp.test(e)===!1&&dp.test(e)===!1};ea.exports={isMixinToken:mp}});var sa=y((kb,ra)=>{var yp=ur(),gp=/^url\((.+)\)/;ra.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=yp({css:s});for(t.filename=s.replace(gp,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var aa=y((_b,oa)=>{var na=/:$/,ia=/^:(\s+)?/;oa.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(na.test(e)){let[r]=e.match(na);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(ia.test(s)){let[r]=s.match(ia);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var ca=y((Eb,la)=>{var wp=qe(),vp=fr(),{isInlineComment:xp}=Jo(),{interpolation:ua}=Zo(),{isMixinToken:bp}=ta(),kp=sa(),_p=aa(),Tp=/(!\s*important)$/i;la.exports=class extends vp{constructor(...e){super(...e),this.lastNode=null}atrule(e){ua.bind(this)(e)||(super.atrule(e),kp(this.lastNode),_p(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 s=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new wp,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,P)=>v[0]===")"?P:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>Tp.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){xp.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),ua.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(bp(s)){this.mixin(e);return}super.unknownWord(e)}}});var pa=y((Cb,fa)=>{var Ep=Zt();fa.exports=class extends Ep{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var ha=y((Ob,Ys)=>{var Sp=Fe(),Cp=ca(),Op=pa();Ys.exports={parse(t,e){let s=new Sp(t,e),r=new Cp(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Op(e).stringify(t)},nodeToString(t){let e="";return Ys.exports.stringify(t,s=>{e+=s}),e}}});var Gs=y((Ab,da)=>{da.exports=class{generate(){}}});var dr=y((Pb,ga)=>{"use strict";var Ap=ae(),ma,ya,ve=class extends Ap{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ma(new ya,this,e).stringify()}};ve.registerLazyResult=t=>{ma=t};ve.registerProcessor=t=>{ya=t};ga.exports=ve;ve.default=ve});var Ks=y((Rb,va)=>{"use strict";var wa={};va.exports=function(e){wa[e]||(wa[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Hs=y((Ib,xa)=>{"use strict";var bt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};xa.exports=bt;bt.default=bt});var mr=y((qb,ba)=>{"use strict";var Np=Hs(),kt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new Np(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};ba.exports=kt;kt.default=kt});var Js=y((Lb,Ea)=>{"use strict";var{isClean:H,my:Pp}=Jt(),Rp=Gs(),Ip=pt(),qp=ae(),Dp=dr(),Db=Ks(),ka=mr(),Lp=xt(),Mp=Le(),Bp={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Fp={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},$p={postcssPlugin:!0,prepare:!0,Once:!0},$e=0;function _t(t){return typeof t=="object"&&typeof t.then=="function"}function Ta(t){let e=!1,s=Bp[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,$e,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,$e,s+"Exit"]:[s,s+"Exit"]}function _a(t){let e;return t.type==="document"?e=["Document",$e,"DocumentExit"]:t.type==="root"?e=["Root",$e,"RootExit"]:e=Ta(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Qs(t){return t[H]=!1,t.nodes&&t.nodes.forEach(e=>Qs(e)),t}var js={},Q=class{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=Qs(s);else if(s instanceof Q||s instanceof ka)n=Qs(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Lp;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[Pp]&&qp.rebuild(n)}this.result=new ka(e,n,r),this.helpers={...js,result:this.result,postcss:js},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(_t(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];)e[H]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Ip;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Rp(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[H]=!0;let s=Ta(e);for(let r of s)if(r===$e)e.nodes&&e.each(n=>{n[H]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(_t(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return _t(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let s=this.plugins[e],r=this.runOnRoot(s);if(_t(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];){e[H]=!0;let s=[_a(e)];for(;s.length>0;){let r=this.visitTick(s);if(_t(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Fp[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!$p[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex<n.length){let[o,a]=n[s.visitorIndex];s.visitorIndex+=1,s.visitorIndex===n.length&&(s.visitors=[],s.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(s.iterator!==0){let o=s.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[H]){a[H]=!0,e.push(_a(a));return}s.iterator=0,delete r.indexes[o]}let i=s.events;for(;s.eventIndex<i.length;){let o=i[s.eventIndex];if(s.eventIndex+=1,o===$e){r.nodes&&r.nodes.length&&(r[H]=!0,s.iterator=r.getIterator());return}else if(this.listeners[o]){s.visitors=this.listeners[o];return}}e.pop()}};Q.registerPostcss=t=>{js=t};Ea.exports=Q;Q.default=Q;Mp.registerLazyResult(Q);Dp.registerLazyResult(Q)});var Ca=y((Bb,Sa)=>{"use strict";var Up=Gs(),Wp=pt(),Mb=Ks(),zp=xt(),Vp=mr(),Tt=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Wp;this.result=new Vp(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Up(i,n,this._opts,s);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,s=zp;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};Sa.exports=Tt;Tt.default=Tt});var Aa=y((Fb,Oa)=>{"use strict";var Yp=Ca(),Gp=Js(),Kp=dr(),Hp=Le(),xe=class{constructor(e=[]){this.version="8.4.23",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,s={}){return this.plugins.length===0&&typeof s.parser>"u"&&typeof s.stringifier>"u"&&typeof s.syntax>"u"?new Yp(this,e,s):new Gp(this,e,s)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}};Oa.exports=xe;xe.default=xe;Hp.registerProcessor(xe);Kp.registerProcessor(xe)});var Pa=y(($b,Na)=>{"use strict";var Qp=yt(),jp=Fs(),Jp=qe(),Xp=lr(),Zp=Fe(),eh=Le(),th=cr();function Et(t,e){if(Array.isArray(t))return t.map(n=>Et(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:Zp.prototype};i.map&&(i.map={...i.map,__proto__:jp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>Et(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new eh(r);if(r.type==="decl")return new Qp(r);if(r.type==="rule")return new th(r);if(r.type==="comment")return new Jp(r);if(r.type==="atrule")return new Xp(r);throw new Error("Unknown node type: "+t.type)}Na.exports=Et;Et.default=Et});var yr=y((Ub,Ba)=>{"use strict";var rh=Xt(),Ra=yt(),sh=Js(),nh=ae(),Xs=Aa(),ih=pt(),oh=Pa(),Ia=dr(),ah=Hs(),qa=qe(),Da=lr(),uh=mr(),lh=Fe(),ch=xt(),fh=Ms(),La=cr(),Ma=Le(),ph=dt();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Xs(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
39
39
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=s(...o);return a.postcssPlugin=e,a.postcssVersion=new Xs().version,a}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,a,u){return k([n(u)]).process(o,a)},n};k.stringify=ih;k.parse=ch;k.fromJSON=oh;k.list=fh;k.comment=t=>new qa(t);k.atRule=t=>new Da(t);k.decl=t=>new Ra(t);k.rule=t=>new La(t);k.root=t=>new Ma(t);k.document=t=>new Ia(t);k.CssSyntaxError=rh;k.Declaration=Ra;k.Container=nh;k.Processor=Xs;k.Document=Ia;k.Comment=qa;k.Warning=ah;k.AtRule=Da;k.Result=uh;k.Input=lh;k.Rule=La;k.Root=Ma;k.Node=ph;sh.registerPostcss(k);Ba.exports=k;k.default=k});var $a=y((Wb,Fa)=>{var{Container:hh}=yr(),Zs=class extends hh{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};Fa.exports=Zs});var Ga=y((zb,Ya)=>{"use strict";var en="'".charCodeAt(0),tn='"'.charCodeAt(0),St="\\".charCodeAt(0),gr="/".charCodeAt(0),rn=`
40
40
  `.charCodeAt(0),wr=" ".charCodeAt(0),sn="\f".charCodeAt(0),nn=" ".charCodeAt(0),on="\r".charCodeAt(0),dh="[".charCodeAt(0),mh="]".charCodeAt(0),Ua="(".charCodeAt(0),Wa=")".charCodeAt(0),vr="{".charCodeAt(0),za="}".charCodeAt(0),yh=";".charCodeAt(0),gh="*".charCodeAt(0),wh=":".charCodeAt(0),vh="@".charCodeAt(0),xh=",".charCodeAt(0),an="#".charCodeAt(0),xr=/[\t\n\f\r "#'()/;[\\\]{}]/g,br=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,bh=/.[\n"'(/\\]/,Va=/[\da-f]/i,kr=/[\n\f\r]/g;Ya.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,a,u,c,f,p,l,g,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(C){throw e.error("Unclosed "+C,h)}function P(){return m.length===0&&h>=x}function W(){let C=1,O=!1,A=!1;for(;C>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),O?!A&&i===O?(O=!1,A=!1):i===St?A=!A:A&&(A=!1):i===en||i===tn?O=i:i===za?C-=1:i===an&&l===vr&&(C+=1)}function j(C){if(m.length)return m.pop();if(h>=x)return;let O=C?C.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case rn:case wr:case nn:case on:case sn:{o=h;do o+=1,i=r.charCodeAt(o);while(i===wr||i===rn||i===nn||i===on||i===sn);g=["space",r.slice(h,o)],h=o-1;break}case dh:case mh:case vr:case za:case wh:case yh:case Wa:{let A=String.fromCharCode(i);g=[A,A,h];break}case xh:{g=["word",",",h,h+1];break}case Ua:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==en&&l!==tn){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===St)f=!f;else if(l===Ua)b+=1;else if(l===Wa&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),g=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||bh.test(u)?g=["(","(",h]:(g=["brackets",u,h,o],h=o);break}case en:case tn:{for(a=i,o=h,f=!1;o<x&&(o++,o===x&&v("string"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),!(!f&&i===a));)i===St?f=!f:f?f=!1:i===an&&l===vr&&W();g=["string",r.slice(h,o+1),h,o],h=o;break}case vh:{xr.lastIndex=h+1,xr.test(r),xr.lastIndex===0?o=r.length-1:o=xr.lastIndex-2,g=["at-word",r.slice(h,o+1),h,o],h=o;break}case St:{for(o=h,c=!0;r.charCodeAt(o+1)===St;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==gr&&i!==wr&&i!==rn&&i!==nn&&i!==on&&i!==sn&&(o+=1,Va.test(r.charAt(o)))){for(;Va.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===wr&&(o+=1)}g=["word",r.slice(h,o+1),h,o],h=o;break}default:l=r.charCodeAt(h+1),i===an&&l===vr?(o=h,W(),u=r.slice(h,o+1),g=["word",u,h,o],h=o):i===gr&&l===gh?(o=r.indexOf("*/",h+2)+1,o===0&&(n||O?o=r.length:v("comment")),g=["comment",r.slice(h,o+1),h,o],h=o):i===gr&&l===gr?(kr.lastIndex=h+1,kr.test(r),kr.lastIndex===0?o=r.length-1:o=kr.lastIndex-2,u=r.slice(h,o+1),g=["comment",u,h,o,"inline"],h=o):(br.lastIndex=h+1,br.test(r),br.lastIndex===0?o=r.length-1:o=br.lastIndex-2,g=["word",r.slice(h,o+1),h,o],d.push(g),h=o);break}return h++,g}function z(C){m.push(C)}return{back:z,nextToken:j,endOfFile:P,position:w}}});var Ha=y((Vb,Ka)=>{var{Comment:kh}=yr(),_h=fr(),Th=$a(),Eh=Ga(),un=class extends _h{createTokenizer(){this.tokenizer=Eh(this.input)}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(`
41
41
  `))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new Th;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={offset:o[3],line:u.line,column:u.col}}else{let u=this.input.fromOffset(o[2]);i.source.end={offset:o[2],line:u.line,column:u.col}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={offset:e[0][2],line:u.line,column:u.col}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}comment(e){if(e[4]==="inline"){let s=new kh;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={offset:e[3],line:r.line,column:r.col};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}};Ka.exports=un});var ja=y((Yb,Qa)=>{var{Input:Sh}=yr(),Ch=Ha();Qa.exports=function(e,s){let r=new Sh(e,s),n=new Ch(r);return n.parse(),n.root}});function Oh(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var Ja,Xa=E(()=>{Ja=Oh});function Ah(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var Za,eu=E(()=>{Za=Ah});function Ph(t){return Nh.has(t)}var Nh,tu,ru=E(()=>{Nh=new Set(["import","use","forward"]);tu=Ph});var Y=y((jb,su)=>{"use strict";var ln=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>ln(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=ln(n)),s[r]=n)}return s};su.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}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(e){e=e||{};let s=ln(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)s[i]===`
@@ -35,7 +35,7 @@ var yc=Object.create;var os=Object.defineProperty;var gc=Object.getOwnPropertyDe
35
35
  `," "];return vt.split(t,e)},comma(t){return vt.split(t,[","],!0)}};Do.exports=vt;vt.default=vt});var lr=y((ub,Mo)=>{"use strict";var Lo=ae(),Vf=Is(),Me=class extends Lo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Vf.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};Mo.exports=Me;Me.default=Me;Lo.registerRule(Me)});var cr=y((lb,$o)=>{"use strict";var Yf=yt(),Gf=ar(),Kf=qe(),Hf=ur(),Qf=Le(),Bo=lr(),Fo={empty:!0,space:!0};function jf(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var qs=class{constructor(e){this.input=e,this.root=new Qf,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Gf(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let s=new Kf;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}emptyRule(e){let s=new Bo;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}other(e){let s=!1,r=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}rule(e){e.pop();let s=new Bo;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}decl(e,s){let r=new Yf;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||jf(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let g=f[l][0];if(p.trim().indexOf("!")===0&&g!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}atrule(e){let s=new Hf;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,n=u[i];n&&n[0]==="space";)n=u[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(s.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(s,"params",u),o&&(e=u[u.length-1],s.source.end=this.getPosition(e[3]||e[2]),this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let s=this.input.fromOffset(e);return{offset:e,line:s.line,column:s.col}}init(e,s){this.current.push(e),e.source={start:this.getPosition(s),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,s,r,n){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;l<a;l+=1)i=r[l],o=i[0],o==="space"&&l===a-1&&!n?c=!1:o==="comment"?(p=r[l-1]?r[l-1][0]:"empty",f=r[l+1]?r[l+1][0]:"empty",!Fo[p]&&!Fo[f]?u.slice(-1)===","?c=!1:u+=i[1]:c=!1):u+=i[1];if(!c){let l=r.reduce((g,x)=>g+x[1],"");e.raws[s]={value:u,raw:l}}e[s]=u}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n<e.length;n++)r+=e[n][1];return e.splice(s,e.length-s),r}colon(e){let s=0,r,n,i;for(let[o,a]of e.entries()){if(r=a,n=r[0],n==="("&&(s+=1),n===")"&&(s-=1),s===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,s){throw this.input.error("At-rule without name",{offset:s[2]},{offset:s[2]+s[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}};$o.exports=qs});var Uo=y(()=>{});var zo=y((pb,Wo)=>{var Jf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Xf=(t,e=21)=>(s=e)=>{let r="",n=s;for(;n--;)r+=t[Math.random()*t.length|0];return r},Zf=(t=21)=>{let e="",s=t;for(;s--;)e+=Jf[Math.random()*64|0];return e};Wo.exports={nanoid:Zf,customAlphabet:Xf}});var Ds=y((hb,Vo)=>{Vo.exports=class{}});var Fe=y((mb,Ho)=>{"use strict";var{SourceMapConsumer:ep,SourceMapGenerator:tp}=Uo(),{fileURLToPath:Yo,pathToFileURL:fr}={},{resolve:Bs,isAbsolute:Fs}={},{nanoid:rp}=zo(),Ls=Cs(),Go=Jt(),sp=Ds(),Ms=Symbol("fromOffsetCache"),np=!!(ep&&tp),Ko=!!(Bs&&Fs),Be=class{constructor(e,s={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,s.from&&(!Ko||/^\w+:\/\//.test(s.from)||Fs(s.from)?this.file=s.from:this.file=Bs(s.from)),Ko&&np){let r=new sp(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+rp(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let s,r;if(this[Ms])r=this[Ms];else{let i=this.css.split(`
36
36
  `);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a<u;a++)r[a]=o,o+=i[a].length+1;this[Ms]=r}s=r[r.length-1];let n=0;if(e>=s)n=r.length-1;else{let i=r.length-2,o;for(;n<i;)if(o=n+(i-n>>1),e<r[o])i=o-1;else if(e>=r[o+1])n=o+1;else{n=o;break}}return{line:n+1,col:e-r[n]+1}}error(e,s,r,n={}){let i,o,a;if(s&&typeof s=="object"){let c=s,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,r=p.col}else s=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(s);s=c.line,r=c.col}let u=this.origin(s,r,o,a);return u?i=new Go(e,u.endLine===void 0?u.line:{line:u.line,column:u.column},u.endLine===void 0?u.column:{line:u.endLine,column:u.endColumn},u.source,u.file,n.plugin):i=new Go(e,o===void 0?s:{line:s,column:r},o===void 0?r:{line:o,column:a},this.css,this.file,n.plugin),i.input={line:s,column:r,endLine:o,endColumn:a,source:this.css},this.file&&(fr&&(i.input.url=fr(this.file).toString()),i.input.file=this.file),i}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({line:e,column:s});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({line:r,column:n}));let u;Fs(o.source)?u=fr(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||fr(this.map.mapFile));let c={url:u.toString(),line:o.line,column:o.column,endLine:a&&a.line,endColumn:a&&a.column};if(u.protocol==="file:")if(Yo)c.file=Yo(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:Bs(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Ho.exports=Be;Be.default=Be;Ls&&Ls.registerInput&&Ls.registerInput(Be)});var xt=y((yb,Qo)=>{"use strict";var ip=ae(),op=cr(),ap=Fe();function pr(t,e){let s=new ap(t,e),r=new op(s);try{r.parse()}catch(n){throw n}return r.root}Qo.exports=pr;pr.default=pr;ip.registerParse(pr)});var jo=y((gb,$s)=>{var up=ar(),lp=Fe();$s.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(`
37
37
  `))),n=t[1].substring(t[1].indexOf(`
38
- `));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new lp(n),this.tokenizer=up(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),$s.exports.isInlineComment.bind(this)(t)}return!1}}});var Xo=y((wb,Jo)=>{Jo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var ea=y((vb,Zo)=>{var cp=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,fp=/\.[0-9]/,pp=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&cp.test(e)===!1&&fp.test(e)===!1};Zo.exports={isMixinToken:pp}});var ra=y((xb,ta)=>{var hp=ar(),dp=/^url\((.+)\)/;ta.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=hp({css:s});for(t.filename=s.replace(dp,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var oa=y((bb,ia)=>{var sa=/:$/,na=/^:(\s+)?/;ia.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(sa.test(e)){let[r]=e.match(sa);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(na.test(s)){let[r]=s.match(na);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var la=y((_b,ua)=>{var mp=qe(),yp=cr(),{isInlineComment:gp}=jo(),{interpolation:aa}=Xo(),{isMixinToken:wp}=ea(),vp=ra(),xp=oa(),bp=/(!\s*important)$/i;ua.exports=class extends yp{constructor(...e){super(...e),this.lastNode=null}atrule(e){aa.bind(this)(e)||(super.atrule(e),vp(this.lastNode),xp(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 s=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new mp,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,P)=>v[0]===")"?P:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>bp.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){gp.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),aa.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(wp(s)){this.mixin(e);return}super.unknownWord(e)}}});var fa=y((Eb,ca)=>{var kp=Xt();ca.exports=class extends kp{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var pa=y((Sb,Us)=>{var _p=Fe(),Tp=la(),Ep=fa();Us.exports={parse(t,e){let s=new _p(t,e),r=new Tp(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Ep(e).stringify(t)},nodeToString(t){let e="";return Us.exports.stringify(t,s=>{e+=s}),e}}});var Ws=y((Cb,ha)=>{ha.exports=class{generate(){}}});var hr=y((Ab,ya)=>{"use strict";var Sp=ae(),da,ma,ve=class extends Sp{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new da(new ma,this,e).stringify()}};ve.registerLazyResult=t=>{da=t};ve.registerProcessor=t=>{ma=t};ya.exports=ve;ve.default=ve});var zs=y((Nb,wa)=>{"use strict";var ga={};wa.exports=function(e){ga[e]||(ga[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Vs=y((Pb,va)=>{"use strict";var bt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};va.exports=bt;bt.default=bt});var dr=y((Rb,xa)=>{"use strict";var Cp=Vs(),kt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new Cp(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};xa.exports=kt;kt.default=kt});var Ks=y((qb,Ta)=>{"use strict";var{isClean:H,my:Op}=jt(),Ap=Ws(),Np=pt(),Pp=ae(),Rp=hr(),Ib=zs(),ba=dr(),Ip=xt(),qp=Le(),Dp={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Lp={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},Mp={postcssPlugin:!0,prepare:!0,Once:!0},$e=0;function _t(t){return typeof t=="object"&&typeof t.then=="function"}function _a(t){let e=!1,s=Dp[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,$e,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,$e,s+"Exit"]:[s,s+"Exit"]}function ka(t){let e;return t.type==="document"?e=["Document",$e,"DocumentExit"]:t.type==="root"?e=["Root",$e,"RootExit"]:e=_a(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Ys(t){return t[H]=!1,t.nodes&&t.nodes.forEach(e=>Ys(e)),t}var Gs={},Q=class{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=Ys(s);else if(s instanceof Q||s instanceof ba)n=Ys(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Ip;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[Op]&&Pp.rebuild(n)}this.result=new ba(e,n,r),this.helpers={...Gs,result:this.result,postcss:Gs},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(_t(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];)e[H]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Np;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Ap(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[H]=!0;let s=_a(e);for(let r of s)if(r===$e)e.nodes&&e.each(n=>{n[H]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(_t(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return _t(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let s=this.plugins[e],r=this.runOnRoot(s);if(_t(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];){e[H]=!0;let s=[ka(e)];for(;s.length>0;){let r=this.visitTick(s);if(_t(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Lp[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Mp[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex<n.length){let[o,a]=n[s.visitorIndex];s.visitorIndex+=1,s.visitorIndex===n.length&&(s.visitors=[],s.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(s.iterator!==0){let o=s.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[H]){a[H]=!0,e.push(ka(a));return}s.iterator=0,delete r.indexes[o]}let i=s.events;for(;s.eventIndex<i.length;){let o=i[s.eventIndex];if(s.eventIndex+=1,o===$e){r.nodes&&r.nodes.length&&(r[H]=!0,s.iterator=r.getIterator());return}else if(this.listeners[o]){s.visitors=this.listeners[o];return}}e.pop()}};Q.registerPostcss=t=>{Gs=t};Ta.exports=Q;Q.default=Q;qp.registerLazyResult(Q);Rp.registerLazyResult(Q)});var Sa=y((Lb,Ea)=>{"use strict";var Bp=Ws(),Fp=pt(),Db=zs(),$p=xt(),Up=dr(),Tt=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Fp;this.result=new Up(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Bp(i,n,this._opts,s);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,s=$p;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};Ea.exports=Tt;Tt.default=Tt});var Oa=y((Mb,Ca)=>{"use strict";var Wp=Sa(),zp=Ks(),Vp=hr(),Yp=Le(),xe=class{constructor(e=[]){this.version="8.4.22",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,s={}){return this.plugins.length===0&&typeof s.parser>"u"&&typeof s.stringifier>"u"&&typeof s.syntax>"u"?new Wp(this,e,s):new zp(this,e,s)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}};Ca.exports=xe;xe.default=xe;Yp.registerProcessor(xe);Vp.registerProcessor(xe)});var Na=y((Bb,Aa)=>{"use strict";var Gp=yt(),Kp=Ds(),Hp=qe(),Qp=ur(),jp=Fe(),Jp=Le(),Xp=lr();function Et(t,e){if(Array.isArray(t))return t.map(n=>Et(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:jp.prototype};i.map&&(i.map={...i.map,__proto__:Kp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>Et(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Jp(r);if(r.type==="decl")return new Gp(r);if(r.type==="rule")return new Xp(r);if(r.type==="comment")return new Hp(r);if(r.type==="atrule")return new Qp(r);throw new Error("Unknown node type: "+t.type)}Aa.exports=Et;Et.default=Et});var mr=y((Fb,Ma)=>{"use strict";var Zp=Jt(),Pa=yt(),eh=Ks(),th=ae(),Hs=Oa(),rh=pt(),sh=Na(),Ra=hr(),nh=Vs(),Ia=qe(),qa=ur(),ih=dr(),oh=Fe(),ah=xt(),uh=Is(),Da=lr(),La=Le(),lh=dt();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Hs(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
38
+ `));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new lp(n),this.tokenizer=up(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),$s.exports.isInlineComment.bind(this)(t)}return!1}}});var Xo=y((wb,Jo)=>{Jo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var ea=y((vb,Zo)=>{var cp=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,fp=/\.[0-9]/,pp=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&cp.test(e)===!1&&fp.test(e)===!1};Zo.exports={isMixinToken:pp}});var ra=y((xb,ta)=>{var hp=ar(),dp=/^url\((.+)\)/;ta.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=hp({css:s});for(t.filename=s.replace(dp,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var oa=y((bb,ia)=>{var sa=/:$/,na=/^:(\s+)?/;ia.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(sa.test(e)){let[r]=e.match(sa);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(na.test(s)){let[r]=s.match(na);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var la=y((_b,ua)=>{var mp=qe(),yp=cr(),{isInlineComment:gp}=jo(),{interpolation:aa}=Xo(),{isMixinToken:wp}=ea(),vp=ra(),xp=oa(),bp=/(!\s*important)$/i;ua.exports=class extends yp{constructor(...e){super(...e),this.lastNode=null}atrule(e){aa.bind(this)(e)||(super.atrule(e),vp(this.lastNode),xp(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 s=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new mp,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,P)=>v[0]===")"?P:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>bp.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){gp.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),aa.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(wp(s)){this.mixin(e);return}super.unknownWord(e)}}});var fa=y((Eb,ca)=>{var kp=Xt();ca.exports=class extends kp{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var pa=y((Sb,Us)=>{var _p=Fe(),Tp=la(),Ep=fa();Us.exports={parse(t,e){let s=new _p(t,e),r=new Tp(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Ep(e).stringify(t)},nodeToString(t){let e="";return Us.exports.stringify(t,s=>{e+=s}),e}}});var Ws=y((Cb,ha)=>{ha.exports=class{generate(){}}});var hr=y((Ab,ya)=>{"use strict";var Sp=ae(),da,ma,ve=class extends Sp{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new da(new ma,this,e).stringify()}};ve.registerLazyResult=t=>{da=t};ve.registerProcessor=t=>{ma=t};ya.exports=ve;ve.default=ve});var zs=y((Nb,wa)=>{"use strict";var ga={};wa.exports=function(e){ga[e]||(ga[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Vs=y((Pb,va)=>{"use strict";var bt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};va.exports=bt;bt.default=bt});var dr=y((Rb,xa)=>{"use strict";var Cp=Vs(),kt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new Cp(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};xa.exports=kt;kt.default=kt});var Ks=y((qb,Ta)=>{"use strict";var{isClean:H,my:Op}=jt(),Ap=Ws(),Np=pt(),Pp=ae(),Rp=hr(),Ib=zs(),ba=dr(),Ip=xt(),qp=Le(),Dp={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Lp={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},Mp={postcssPlugin:!0,prepare:!0,Once:!0},$e=0;function _t(t){return typeof t=="object"&&typeof t.then=="function"}function _a(t){let e=!1,s=Dp[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,$e,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,$e,s+"Exit"]:[s,s+"Exit"]}function ka(t){let e;return t.type==="document"?e=["Document",$e,"DocumentExit"]:t.type==="root"?e=["Root",$e,"RootExit"]:e=_a(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Ys(t){return t[H]=!1,t.nodes&&t.nodes.forEach(e=>Ys(e)),t}var Gs={},Q=class{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=Ys(s);else if(s instanceof Q||s instanceof ba)n=Ys(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Ip;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[Op]&&Pp.rebuild(n)}this.result=new ba(e,n,r),this.helpers={...Gs,result:this.result,postcss:Gs},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(_t(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];)e[H]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Np;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Ap(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[H]=!0;let s=_a(e);for(let r of s)if(r===$e)e.nodes&&e.each(n=>{n[H]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(_t(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return _t(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let s=this.plugins[e],r=this.runOnRoot(s);if(_t(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];){e[H]=!0;let s=[ka(e)];for(;s.length>0;){let r=this.visitTick(s);if(_t(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Lp[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Mp[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex<n.length){let[o,a]=n[s.visitorIndex];s.visitorIndex+=1,s.visitorIndex===n.length&&(s.visitors=[],s.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(s.iterator!==0){let o=s.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[H]){a[H]=!0,e.push(ka(a));return}s.iterator=0,delete r.indexes[o]}let i=s.events;for(;s.eventIndex<i.length;){let o=i[s.eventIndex];if(s.eventIndex+=1,o===$e){r.nodes&&r.nodes.length&&(r[H]=!0,s.iterator=r.getIterator());return}else if(this.listeners[o]){s.visitors=this.listeners[o];return}}e.pop()}};Q.registerPostcss=t=>{Gs=t};Ta.exports=Q;Q.default=Q;qp.registerLazyResult(Q);Rp.registerLazyResult(Q)});var Sa=y((Lb,Ea)=>{"use strict";var Bp=Ws(),Fp=pt(),Db=zs(),$p=xt(),Up=dr(),Tt=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Fp;this.result=new Up(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Bp(i,n,this._opts,s);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,s=$p;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};Ea.exports=Tt;Tt.default=Tt});var Oa=y((Mb,Ca)=>{"use strict";var Wp=Sa(),zp=Ks(),Vp=hr(),Yp=Le(),xe=class{constructor(e=[]){this.version="8.4.23",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,s={}){return this.plugins.length===0&&typeof s.parser>"u"&&typeof s.stringifier>"u"&&typeof s.syntax>"u"?new Wp(this,e,s):new zp(this,e,s)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}};Ca.exports=xe;xe.default=xe;Yp.registerProcessor(xe);Vp.registerProcessor(xe)});var Na=y((Bb,Aa)=>{"use strict";var Gp=yt(),Kp=Ds(),Hp=qe(),Qp=ur(),jp=Fe(),Jp=Le(),Xp=lr();function Et(t,e){if(Array.isArray(t))return t.map(n=>Et(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:jp.prototype};i.map&&(i.map={...i.map,__proto__:Kp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>Et(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Jp(r);if(r.type==="decl")return new Gp(r);if(r.type==="rule")return new Xp(r);if(r.type==="comment")return new Hp(r);if(r.type==="atrule")return new Qp(r);throw new Error("Unknown node type: "+t.type)}Aa.exports=Et;Et.default=Et});var mr=y((Fb,Ma)=>{"use strict";var Zp=Jt(),Pa=yt(),eh=Ks(),th=ae(),Hs=Oa(),rh=pt(),sh=Na(),Ra=hr(),nh=Vs(),Ia=qe(),qa=ur(),ih=dr(),oh=Fe(),ah=xt(),uh=Is(),Da=lr(),La=Le(),lh=dt();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Hs(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
39
39
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=s(...o);return a.postcssPlugin=e,a.postcssVersion=new Hs().version,a}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,a,u){return k([n(u)]).process(o,a)},n};k.stringify=rh;k.parse=ah;k.fromJSON=sh;k.list=uh;k.comment=t=>new Ia(t);k.atRule=t=>new qa(t);k.decl=t=>new Pa(t);k.rule=t=>new Da(t);k.root=t=>new La(t);k.document=t=>new Ra(t);k.CssSyntaxError=Zp;k.Declaration=Pa;k.Container=th;k.Processor=Hs;k.Document=Ra;k.Comment=Ia;k.Warning=nh;k.AtRule=qa;k.Result=ih;k.Input=oh;k.Rule=Da;k.Root=La;k.Node=lh;eh.registerPostcss(k);Ma.exports=k;k.default=k});var Fa=y(($b,Ba)=>{var{Container:ch}=mr(),Qs=class extends ch{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};Ba.exports=Qs});var Ya=y((Ub,Va)=>{"use strict";var js="'".charCodeAt(0),Js='"'.charCodeAt(0),St="\\".charCodeAt(0),yr="/".charCodeAt(0),Xs=`
40
40
  `.charCodeAt(0),gr=" ".charCodeAt(0),Zs="\f".charCodeAt(0),en=" ".charCodeAt(0),tn="\r".charCodeAt(0),fh="[".charCodeAt(0),ph="]".charCodeAt(0),$a="(".charCodeAt(0),Ua=")".charCodeAt(0),wr="{".charCodeAt(0),Wa="}".charCodeAt(0),hh=";".charCodeAt(0),dh="*".charCodeAt(0),mh=":".charCodeAt(0),yh="@".charCodeAt(0),gh=",".charCodeAt(0),rn="#".charCodeAt(0),vr=/[\t\n\f\r "#'()/;[\\\]{}]/g,xr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,wh=/.[\n"'(/\\]/,za=/[\da-f]/i,br=/[\n\f\r]/g;Va.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,a,u,c,f,p,l,g,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(C){throw e.error("Unclosed "+C,h)}function P(){return m.length===0&&h>=x}function W(){let C=1,O=!1,A=!1;for(;C>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),O?!A&&i===O?(O=!1,A=!1):i===St?A=!A:A&&(A=!1):i===js||i===Js?O=i:i===Wa?C-=1:i===rn&&l===wr&&(C+=1)}function j(C){if(m.length)return m.pop();if(h>=x)return;let O=C?C.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case Xs:case gr:case en:case tn:case Zs:{o=h;do o+=1,i=r.charCodeAt(o);while(i===gr||i===Xs||i===en||i===tn||i===Zs);g=["space",r.slice(h,o)],h=o-1;break}case fh:case ph:case wr:case Wa:case mh:case hh:case Ua:{let A=String.fromCharCode(i);g=[A,A,h];break}case gh:{g=["word",",",h,h+1];break}case $a:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==js&&l!==Js){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===St)f=!f;else if(l===$a)b+=1;else if(l===Ua&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),g=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||wh.test(u)?g=["(","(",h]:(g=["brackets",u,h,o],h=o);break}case js:case Js:{for(a=i,o=h,f=!1;o<x&&(o++,o===x&&v("string"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),!(!f&&i===a));)i===St?f=!f:f?f=!1:i===rn&&l===wr&&W();g=["string",r.slice(h,o+1),h,o],h=o;break}case yh:{vr.lastIndex=h+1,vr.test(r),vr.lastIndex===0?o=r.length-1:o=vr.lastIndex-2,g=["at-word",r.slice(h,o+1),h,o],h=o;break}case St:{for(o=h,c=!0;r.charCodeAt(o+1)===St;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==yr&&i!==gr&&i!==Xs&&i!==en&&i!==tn&&i!==Zs&&(o+=1,za.test(r.charAt(o)))){for(;za.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===gr&&(o+=1)}g=["word",r.slice(h,o+1),h,o],h=o;break}default:l=r.charCodeAt(h+1),i===rn&&l===wr?(o=h,W(),u=r.slice(h,o+1),g=["word",u,h,o],h=o):i===yr&&l===dh?(o=r.indexOf("*/",h+2)+1,o===0&&(n||O?o=r.length:v("comment")),g=["comment",r.slice(h,o+1),h,o],h=o):i===yr&&l===yr?(br.lastIndex=h+1,br.test(r),br.lastIndex===0?o=r.length-1:o=br.lastIndex-2,u=r.slice(h,o+1),g=["comment",u,h,o,"inline"],h=o):(xr.lastIndex=h+1,xr.test(r),xr.lastIndex===0?o=r.length-1:o=xr.lastIndex-2,g=["word",r.slice(h,o+1),h,o],d.push(g),h=o);break}return h++,g}function z(C){m.push(C)}return{back:z,nextToken:j,endOfFile:P,position:w}}});var Ka=y((Wb,Ga)=>{var{Comment:vh}=mr(),xh=cr(),bh=Fa(),kh=Ya(),sn=class extends xh{createTokenizer(){this.tokenizer=kh(this.input)}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(`
41
41
  `))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new bh;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={offset:o[3],line:u.line,column:u.col}}else{let u=this.input.fromOffset(o[2]);i.source.end={offset:o[2],line:u.line,column:u.col}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={offset:e[0][2],line:u.line,column:u.col}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}comment(e){if(e[4]==="inline"){let s=new vh;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={offset:e[3],line:r.line,column:r.col};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}};Ga.exports=sn});var Qa=y((zb,Ha)=>{var{Input:_h}=mr(),Th=Ka();Ha.exports=function(e,s){let r=new _h(e,s),n=new Th(r);return n.parse(),n.root}});function Eh(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var ja,Ja=E(()=>{ja=Eh});function Sh(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var Xa,Za=E(()=>{Xa=Sh});function Oh(t){return Ch.has(t)}var Ch,eu,tu=E(()=>{Ch=new Set(["import","use","forward"]);eu=Oh});var Y=y((Hb,ru)=>{"use strict";var nn=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>nn(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=nn(n)),s[r]=n)}return s};ru.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}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(e){e=e||{};let s=nn(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)s[i]===`
package/standalone.js CHANGED
@@ -33,4 +33,4 @@ in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",cate
33
33
  `,f)}return{formatted:F,cursorOffset:l,comments:c.comments}}function ju(e,t,u){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?u:t}function On(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:D}=t;return u=ju(e,u,-1),r=ju(e,r,0),D=ju(e,D,e.length),{...t,cursorOffset:u,rangeStart:r,rangeEnd:D}}function Nn(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:D,endOfLine:n}=On(e,t),i=e.charAt(0)===vn;if(i&&(e=e.slice(1),u--,r--,D--),n==="auto"&&(n=nr(e)),e.includes("\r")){let o=s=>Rt(e.slice(0,Math.max(s,0)),`\r
34
34
  `);u-=o(u),r-=o(r),D-=o(D),e=Dr(e)}return{hasBOM:i,text:e,options:On(e,{...t,cursorOffset:u,rangeStart:r,rangeEnd:D,endOfLine:n})}}async function kn(e,t){let u=await gt(t);return!u.hasPragma||u.hasPragma(e)}async function Yu(e,t){let{hasBOM:u,text:r,options:D}=Nn(e,await le(t));if(D.rangeStart>=D.rangeEnd&&r!==""||D.requirePragma&&!await kn(r,D))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let n;return D.rangeStart>0||D.rangeEnd<r.length?n=await uo(r,D):(!D.requirePragma&&D.insertPragma&&D.printer.insertPragma&&!await kn(r,D)&&(r=D.printer.insertPragma(r)),n=await Tn(r,D)),u&&(n.formatted=vn+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n}async function Pn(e,t,u){let{text:r,options:D}=Nn(e,await le(t)),n=await Ee(r,D);return u&&(u.preprocessForPrint&&(n.ast=await Iu(n.ast,D)),u.massage&&(n.ast=Zr(n.ast,D))),n}async function Rn(e,t){t=await le(t);let u=await Ze(e,t);return Ae(u,t)}async function In(e,t){let u=Er(e),{formatted:r}=await Yu(u,{...t,parser:"__js_expression"});return r}async function Ln(e,t){t=await le(t);let{ast:u}=await Ee(e,t);return Ze(u,t)}async function jn(e,t){return Ae(e,await le(t))}var xt={};ge(xt,{addDanglingComment:()=>ie,addLeadingComment:()=>fe,addTrailingComment:()=>pe,getAlignmentSize:()=>Be,getIndentSize:()=>Mn,getMaxContinuousCount:()=>Yn,getNextNonSpaceNonCommentCharacter:()=>zn,getNextNonSpaceNonCommentCharacterIndex:()=>mo,getStringWidth:()=>je,hasNewline:()=>G,hasNewlineInRange:()=>qn,hasSpaces:()=>$n,isNextLineEmpty:()=>go,isNextLineEmptyAfterIndex:()=>wt,isPreviousLineEmpty:()=>Eo,makeString:()=>Vn,skip:()=>xe,skipEverythingButNewLine:()=>Bt,skipInlineComment:()=>Oe,skipNewline:()=>z,skipSpaces:()=>S,skipToLineEnd:()=>At,skipTrailingComment:()=>ke,skipWhitespace:()=>sn});function no(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let u=t+2;u<e.length;++u)if(e.charAt(u)==="*"&&e.charAt(u+1)==="/")return u+2}return t}var Oe=no;function Do(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Bt(e,t):t}var ke=Do;function io(e,t){let u=null,r=t;for(;r!==u;)u=r,r=S(e,r),r=Oe(e,r),r=ke(e,r),r=z(e,r);return r}var Qe=io;function oo(e,t){let u=null,r=t;for(;r!==u;)u=r,r=At(e,r),r=Oe(e,r),r=S(e,r);return r=ke(e,r),r=z(e,r),r!==!1&&G(e,r)}var wt=oo;function Mu(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function so(e,t){let u=e.match(new RegExp(`(${Mu(t)})+`,"g"));return u===null?0:u.reduce((r,D)=>Math.max(r,D.length/t.length),0)}var Yn=so;function ao(e,t){let u=e.lastIndexOf(`
35
35
  `);return u===-1?0:Be(e.slice(u+1).match(/^[\t ]*/)[0],t)}var Mn=ao;function co(e,t,u){for(let r=t;r<u;++r)if(e.charAt(r)===`
36
- `)return!0;return!1}var qn=co;function lo(e,t,u={}){return S(e,u.backwards?t-1:t,u)!==t}var $n=lo;function fo(e,t){let u=Qe(e,t);return u===!1?"":e.charAt(u)}var zn=fo;function po(e,t,u){let r=t==='"'?"'":'"',n=ae(!1,e,/\\(.)|(["'])/gs,(i,o,s)=>o===r?o:s===t?"\\"+s:s||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(o)?o:"\\"+o));return t+n+t}var Vn=po;function Fo(e,t,u){return Qe(e,u(t))}function mo(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):Fo(...arguments)}function Co(e,t,u){return Xe(e,u(t))}function Eo(e,t){return arguments.length===2||typeof t=="number"?Xe(e,t):Co(...arguments)}function ho(e,t,u){return wt(e,u(t))}function go(e,t){return arguments.length===2||typeof t=="number"?wt(e,t):ho(...arguments)}var Ot={};ge(Ot,{builders:()=>yo,printer:()=>_o,utils:()=>Ao});var yo={join:Ie,line:Dt,softline:ur,hardline:X,literalline:it,group:Nt,conditionalGroup:Xu,fill:nt,lineSuffix:Ne,lineSuffixBoundary:er,cursor:Re,breakParent:_e,ifBreak:Zu,trim:tr,indent:Fe,indentIfBreak:Qu,align:de,addAlignmentToDoc:ot,markAsRoot:Hu,dedentToRoot:Ku,dedent:Ju,hardlineWithoutBreakParent:Pe,literallineWithoutBreakParent:Pt,label:rr,concat:e=>e},_o={printDocToString:Ae},Ao={willBreak:fr,traverseDoc:Te,findInDoc:st,mapDoc:Me,removeLines:dr,stripTrailingHardline:at,replaceEndOfLine:Fr,canBreak:mr};var Gn="3.0.0-alpha.7-for-vscode";function he(e,t=1){return async(...u)=>{let r=u[t]??{},D=r.plugins??[];return u[t]={...r,plugins:Array.isArray(D)?D:Object.values(D)},e(...u)}}var Wn=he(Yu);async function Un(e,t){let{formatted:u}=await Wn(e,{...t,cursorOffset:-1});return u}async function Bo(e,t){return await Un(e,t)===e}var bo=he(ft,0),wo={parse:he(Pn),formatAST:he(Rn),formatDoc:he(In),printToDoc:he(Ln),printDocToString:he(jn)};return Y(xo);});
36
+ `)return!0;return!1}var qn=co;function lo(e,t,u={}){return S(e,u.backwards?t-1:t,u)!==t}var $n=lo;function fo(e,t){let u=Qe(e,t);return u===!1?"":e.charAt(u)}var zn=fo;function po(e,t,u){let r=t==='"'?"'":'"',n=ae(!1,e,/\\(.)|(["'])/gs,(i,o,s)=>o===r?o:s===t?"\\"+s:s||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(o)?o:"\\"+o));return t+n+t}var Vn=po;function Fo(e,t,u){return Qe(e,u(t))}function mo(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):Fo(...arguments)}function Co(e,t,u){return Xe(e,u(t))}function Eo(e,t){return arguments.length===2||typeof t=="number"?Xe(e,t):Co(...arguments)}function ho(e,t,u){return wt(e,u(t))}function go(e,t){return arguments.length===2||typeof t=="number"?wt(e,t):ho(...arguments)}var Ot={};ge(Ot,{builders:()=>yo,printer:()=>_o,utils:()=>Ao});var yo={join:Ie,line:Dt,softline:ur,hardline:X,literalline:it,group:Nt,conditionalGroup:Xu,fill:nt,lineSuffix:Ne,lineSuffixBoundary:er,cursor:Re,breakParent:_e,ifBreak:Zu,trim:tr,indent:Fe,indentIfBreak:Qu,align:de,addAlignmentToDoc:ot,markAsRoot:Hu,dedentToRoot:Ku,dedent:Ju,hardlineWithoutBreakParent:Pe,literallineWithoutBreakParent:Pt,label:rr,concat:e=>e},_o={printDocToString:Ae},Ao={willBreak:fr,traverseDoc:Te,findInDoc:st,mapDoc:Me,removeLines:dr,stripTrailingHardline:at,replaceEndOfLine:Fr,canBreak:mr};var Gn="3.0.0-alpha.9-for-vscode";function he(e,t=1){return async(...u)=>{let r=u[t]??{},D=r.plugins??[];return u[t]={...r,plugins:Array.isArray(D)?D:Object.values(D)},e(...u)}}var Wn=he(Yu);async function Un(e,t){let{formatted:u}=await Wn(e,{...t,cursorOffset:-1});return u}async function Bo(e,t){return await Un(e,t)===e}var bo=he(ft,0),wo={parse:he(Pn),formatAST:he(Rn),formatDoc:he(In),printToDoc:he(Ln),printDocToString:he(jn)};return Y(xo);});
package/standalone.mjs CHANGED
@@ -33,4 +33,4 @@ in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",cate
33
33
  `,f)}return{formatted:F,cursorOffset:l,comments:c.comments}}function Iu(e,t,u){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?u:t}function On(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:D}=t;return u=Iu(e,u,-1),r=Iu(e,r,0),D=Iu(e,D,e.length),{...t,cursorOffset:u,rangeStart:r,rangeEnd:D}}function Nn(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:D,endOfLine:n}=On(e,t),i=e.charAt(0)===vn;if(i&&(e=e.slice(1),u--,r--,D--),n==="auto"&&(n=nr(e)),e.includes("\r")){let o=s=>Nt(e.slice(0,Math.max(s,0)),`\r
34
34
  `);u-=o(u),r-=o(r),D-=o(D),e=Dr(e)}return{hasBOM:i,text:e,options:On(e,{...t,cursorOffset:u,rangeStart:r,rangeEnd:D,endOfLine:n})}}async function kn(e,t){let u=await gt(t);return!u.hasPragma||u.hasPragma(e)}async function Lu(e,t){let{hasBOM:u,text:r,options:D}=Nn(e,await le(t));if(D.rangeStart>=D.rangeEnd&&r!==""||D.requirePragma&&!await kn(r,D))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let n;return D.rangeStart>0||D.rangeEnd<r.length?n=await Qi(r,D):(!D.requirePragma&&D.insertPragma&&D.printer.insertPragma&&!await kn(r,D)&&(r=D.printer.insertPragma(r)),n=await Tn(r,D)),u&&(n.formatted=vn+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n}async function Pn(e,t,u){let{text:r,options:D}=Nn(e,await le(t)),n=await Ee(r,D);return u&&(u.preprocessForPrint&&(n.ast=await Pu(n.ast,D)),u.massage&&(n.ast=Zr(n.ast,D))),n}async function Rn(e,t){t=await le(t);let u=await Ze(e,t);return _e(u,t)}async function In(e,t){let u=Er(e),{formatted:r}=await Lu(u,{...t,parser:"__js_expression"});return r}async function Ln(e,t){t=await le(t);let{ast:u}=await Ee(e,t);return Ze(u,t)}async function jn(e,t){return _e(e,await le(t))}var Yu={};ke(Yu,{addDanglingComment:()=>ie,addLeadingComment:()=>fe,addTrailingComment:()=>pe,getAlignmentSize:()=>Ae,getIndentSize:()=>Mn,getMaxContinuousCount:()=>Yn,getNextNonSpaceNonCommentCharacter:()=>zn,getNextNonSpaceNonCommentCharacterIndex:()=>fo,getStringWidth:()=>je,hasNewline:()=>G,hasNewlineInRange:()=>qn,hasSpaces:()=>$n,isNextLineEmpty:()=>Co,isNextLineEmptyAfterIndex:()=>wt,isPreviousLineEmpty:()=>Fo,makeString:()=>Vn,skip:()=>we,skipEverythingButNewLine:()=>Bt,skipInlineComment:()=>xe,skipNewline:()=>$,skipSpaces:()=>S,skipToLineEnd:()=>At,skipTrailingComment:()=>Oe,skipWhitespace:()=>sn});function to(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let u=t+2;u<e.length;++u)if(e.charAt(u)==="*"&&e.charAt(u+1)==="/")return u+2}return t}var xe=to;function uo(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Bt(e,t):t}var Oe=uo;function ro(e,t){let u=null,r=t;for(;r!==u;)u=r,r=S(e,r),r=xe(e,r),r=Oe(e,r),r=$(e,r);return r}var Qe=ro;function no(e,t){let u=null,r=t;for(;r!==u;)u=r,r=At(e,r),r=xe(e,r),r=S(e,r);return r=Oe(e,r),r=$(e,r),r!==!1&&G(e,r)}var wt=no;function ju(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Do(e,t){let u=e.match(new RegExp(`(${ju(t)})+`,"g"));return u===null?0:u.reduce((r,D)=>Math.max(r,D.length/t.length),0)}var Yn=Do;function io(e,t){let u=e.lastIndexOf(`
35
35
  `);return u===-1?0:Ae(e.slice(u+1).match(/^[\t ]*/)[0],t)}var Mn=io;function oo(e,t,u){for(let r=t;r<u;++r)if(e.charAt(r)===`
36
- `)return!0;return!1}var qn=oo;function so(e,t,u={}){return S(e,u.backwards?t-1:t,u)!==t}var $n=so;function ao(e,t){let u=Qe(e,t);return u===!1?"":e.charAt(u)}var zn=ao;function co(e,t,u){let r=t==='"'?"'":'"',n=ae(!1,e,/\\(.)|(["'])/gs,(i,o,s)=>o===r?o:s===t?"\\"+s:s||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(o)?o:"\\"+o));return t+n+t}var Vn=co;function lo(e,t,u){return Qe(e,u(t))}function fo(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):lo(...arguments)}function po(e,t,u){return Xe(e,u(t))}function Fo(e,t){return arguments.length===2||typeof t=="number"?Xe(e,t):po(...arguments)}function mo(e,t,u){return wt(e,u(t))}function Co(e,t){return arguments.length===2||typeof t=="number"?wt(e,t):mo(...arguments)}var Mu={};ke(Mu,{builders:()=>Eo,printer:()=>ho,utils:()=>go});var Eo={join:Ie,line:Dt,softline:ur,hardline:X,literalline:it,group:vt,conditionalGroup:Xu,fill:nt,lineSuffix:Ne,lineSuffixBoundary:er,cursor:Re,breakParent:ye,ifBreak:Zu,trim:tr,indent:Fe,indentIfBreak:Qu,align:de,addAlignmentToDoc:ot,markAsRoot:Hu,dedentToRoot:Ku,dedent:Ju,hardlineWithoutBreakParent:Pe,literallineWithoutBreakParent:Tt,label:rr,concat:e=>e},ho={printDocToString:_e},go={willBreak:fr,traverseDoc:Te,findInDoc:st,mapDoc:Me,removeLines:dr,stripTrailingHardline:at,replaceEndOfLine:Fr,canBreak:mr};var yo="3.0.0-alpha.7-for-vscode";function he(e,t=1){return async(...u)=>{let r=u[t]??{},D=r.plugins??[];return u[t]={...r,plugins:Array.isArray(D)?D:Object.values(D)},e(...u)}}var _o=he(Lu);async function Ao(e,t){let{formatted:u}=await _o(e,{...t,cursorOffset:-1});return u}async function Ol(e,t){return await Ao(e,t)===e}var kl=he(ft,0),Sl={parse:he(Pn),formatAST:he(Rn),formatDoc:he(In),printToDoc:he(Ln),printDocToString:he(jn)};export{Sl as __debug,Ol as check,Mu as doc,Ao as format,_o as formatWithCursor,kl as getSupportInfo,Yu as util,yo as version};
36
+ `)return!0;return!1}var qn=oo;function so(e,t,u={}){return S(e,u.backwards?t-1:t,u)!==t}var $n=so;function ao(e,t){let u=Qe(e,t);return u===!1?"":e.charAt(u)}var zn=ao;function co(e,t,u){let r=t==='"'?"'":'"',n=ae(!1,e,/\\(.)|(["'])/gs,(i,o,s)=>o===r?o:s===t?"\\"+s:s||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(o)?o:"\\"+o));return t+n+t}var Vn=co;function lo(e,t,u){return Qe(e,u(t))}function fo(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):lo(...arguments)}function po(e,t,u){return Xe(e,u(t))}function Fo(e,t){return arguments.length===2||typeof t=="number"?Xe(e,t):po(...arguments)}function mo(e,t,u){return wt(e,u(t))}function Co(e,t){return arguments.length===2||typeof t=="number"?wt(e,t):mo(...arguments)}var Mu={};ke(Mu,{builders:()=>Eo,printer:()=>ho,utils:()=>go});var Eo={join:Ie,line:Dt,softline:ur,hardline:X,literalline:it,group:vt,conditionalGroup:Xu,fill:nt,lineSuffix:Ne,lineSuffixBoundary:er,cursor:Re,breakParent:ye,ifBreak:Zu,trim:tr,indent:Fe,indentIfBreak:Qu,align:de,addAlignmentToDoc:ot,markAsRoot:Hu,dedentToRoot:Ku,dedent:Ju,hardlineWithoutBreakParent:Pe,literallineWithoutBreakParent:Tt,label:rr,concat:e=>e},ho={printDocToString:_e},go={willBreak:fr,traverseDoc:Te,findInDoc:st,mapDoc:Me,removeLines:dr,stripTrailingHardline:at,replaceEndOfLine:Fr,canBreak:mr};var yo="3.0.0-alpha.9-for-vscode";function he(e,t=1){return async(...u)=>{let r=u[t]??{},D=r.plugins??[];return u[t]={...r,plugins:Array.isArray(D)?D:Object.values(D)},e(...u)}}var _o=he(Lu);async function Ao(e,t){let{formatted:u}=await _o(e,{...t,cursorOffset:-1});return u}async function Ol(e,t){return await Ao(e,t)===e}var kl=he(ft,0),Sl={parse:he(Pn),formatAST:he(Rn),formatDoc:he(In),printToDoc:he(Ln),printDocToString:he(jn)};export{Sl as __debug,Ol as check,Mu as doc,Ao as format,_o as formatWithCursor,kl as getSupportInfo,Yu as util,yo as version};