@mcp-use/cli 4.0.0-beta.1 → 4.0.0-beta.3

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.
Files changed (45) hide show
  1. package/dist/api-5C5J73XS.js +23 -0
  2. package/dist/bin.js +37 -0
  3. package/dist/build-BL3SCD2Q.js +23 -0
  4. package/dist/chunk-4Q7KWFEW.js +65 -0
  5. package/dist/chunk-4WKUTVLA.js +1 -0
  6. package/dist/chunk-7G4TXPP4.js +1 -0
  7. package/dist/chunk-7LRTFWC6.js +205 -0
  8. package/dist/chunk-AMCCKJH2.js +1 -0
  9. package/dist/chunk-HU2QUJ7M.js +1 -0
  10. package/dist/chunk-JAFV3QGS.js +1 -0
  11. package/dist/chunk-LHNHT6HO.js +8 -0
  12. package/dist/chunk-N6R74JIF.js +33 -0
  13. package/dist/chunk-N7BU45K6.js +1 -0
  14. package/dist/chunk-N7GIB7UG.js +2 -0
  15. package/dist/chunk-V2YAB5J5.js +20 -0
  16. package/dist/chunk-YAUVPOKC.js +618 -0
  17. package/dist/chunk-ZELLSKD2.js +1 -0
  18. package/dist/chunk-ZWRDP37E.js +1 -0
  19. package/dist/commands/build.js +5 -0
  20. package/dist/commands/client.js +1 -0
  21. package/dist/commands/deploy.js +1 -0
  22. package/dist/commands/deployments.js +6 -0
  23. package/dist/commands/dev.js +2 -0
  24. package/dist/commands/identity.js +2 -0
  25. package/dist/commands/organizations.js +2 -0
  26. package/dist/commands/screenshot.js +5 -0
  27. package/dist/commands/servers.js +2 -0
  28. package/dist/commands/skills.js +1 -0
  29. package/dist/commands/start.js +4 -0
  30. package/dist/dist-ATUXZA3G.js +1 -0
  31. package/dist/dist-DSLOT2HN.js +139 -0
  32. package/dist/false-AWHO5BNV.js +1 -0
  33. package/dist/jiti-IZ2GHWFT.js +1 -0
  34. package/dist/lexer-DQCqS3nf-TWOGUR6Y.js +3 -0
  35. package/dist/main-25QSIQDF.js +1 -0
  36. package/dist/next-server-shims.js +1 -0
  37. package/dist/node-7FETFLWX.js +1 -0
  38. package/dist/node-bridge-P3XTCFXS.js +1 -0
  39. package/dist/postcss-YNTG32JE.js +33 -0
  40. package/dist/postcss-import-VHSC6LGV.js +5 -0
  41. package/package.json +33 -7
  42. package/types/index.d.ts +1 -0
  43. package/dist/index.d.ts +0 -3
  44. package/dist/index.d.ts.map +0 -1
  45. package/dist/index.js +0 -10
@@ -0,0 +1,33 @@
1
+ import{a as Se}from"./chunk-HU2QUJ7M.js";import{a as M,b as m,c as vr}from"./chunk-ZWRDP37E.js";var Oe=m((si,Ce)=>{"use strict";var ne=process||{},Ye=ne.argv||[],ie=ne.env||{},Rr=!(ie.NO_COLOR||Ye.includes("--no-color"))&&(!!ie.FORCE_COLOR||Ye.includes("--color")||ne.platform==="win32"||(ne.stdout||{}).isTTY&&ie.TERM!=="dumb"||!!ie.CI),Pr=(n,e,t=n)=>r=>{let s=""+r,i=s.indexOf(e,n.length);return~i?n+Ir(s,e,t,i)+e:n+s+e},Ir=(n,e,t,r)=>{let s="",i=0;do s+=n.substring(i,r)+t,i=r+e.length,r=n.indexOf(e,i);while(~r);return s+n.substring(i)},Ke=(n=Rr)=>{let e=n?Pr:()=>String;return{isColorSupported:n,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};Ce.exports=Ke();Ce.exports.createColors=Ke});var Ee=m((ii,Ze)=>{"use strict";var oe=/[\t\n\f\r "#'()/;[\\\]{}]/g,le=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Lr=/.[\r\n"'(/\\]/,Xe=/[\da-f]/i;Ze.exports=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,i,l,a,o,f,u,w,c,p,x,b=r.length,h=0,_=[],L=[],se=-1;function Cr(){return h}function xe(q){throw e.error("Unclosed "+q,h)}function Or(){return L.length===0&&h>=b}function Er(q){if(L.length)return L.pop();if(h>=b)return;let be=q?q.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);u=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Qe=String.fromCharCode(i);u=[Qe,Qe,h];break}case 40:{if(x=_.length?_.pop()[1]:"",p=r.charCodeAt(h+1),x==="url"&&p!==39&&p!==34&&p!==32&&p!==10&&p!==9&&p!==12&&p!==13){o=h;do{if(w=!1,o=r.indexOf(")",o+1),o===-1)if(s||be){o=h;break}else xe("bracket");for(c=o;r.charCodeAt(c-1)===92;)c-=1,w=!w}while(w);u=["brackets",r.slice(h,o+1),h,o],h=o}else h<=se?u=["(","(",h]:(o=r.indexOf(")",h+1),l=r.slice(h,o+1),o===-1||Lr.test(l)?(se=o===-1?b:o,u=["(","(",h]):(u=["brackets",l,h,o],h=o));break}case 39:case 34:{f=i===39?"'":'"',o=h;do{if(w=!1,o=r.indexOf(f,o+1),o===-1)if(s||be){o=h+1;break}else xe("string");for(c=o;r.charCodeAt(c-1)===92;)c-=1,w=!w}while(w);u=["string",r.slice(h,o+1),h,o],h=o;break}case 64:{oe.lastIndex=h+1,oe.test(r),oe.lastIndex===0?o=r.length-1:o=oe.lastIndex-2,u=["at-word",r.slice(h,o+1),h,o],h=o;break}case 92:{for(o=h,a=!0;r.charCodeAt(o+1)===92;)o+=1,a=!a;if(i=r.charCodeAt(o+1),a&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(o+=1,Xe.test(r.charAt(o)))){for(;Xe.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===32&&(o+=1)}u=["word",r.slice(h,o+1),h,o],h=o;break}default:{i===47&&r.charCodeAt(h+1)===42?(o=r.indexOf("*/",h+2)+1,o===0&&(s||be?o=r.length:xe("comment")),u=["comment",r.slice(h,o+1),h,o],h=o):(le.lastIndex=h+1,le.test(r),le.lastIndex===0?o=r.length-1:o=le.lastIndex-2,u=["word",r.slice(h,o+1),h,o],_.push(u),h=o);break}}return h++,u}function Ar(q){L.push(q)}return{back:Ar,endOfFile:Or,nextToken:Er,position:Cr}}});var Ae=m((ni,rt)=>{"use strict";var y=Oe(),qr=Ee(),et;function Mr(n){et=n}var kr={";":y.yellow,":":y.yellow,"(":y.cyan,")":y.cyan,"[":y.yellow,"]":y.yellow,"{":y.yellow,"}":y.yellow,"at-word":y.cyan,brackets:y.cyan,call:y.cyan,class:y.yellow,comment:y.gray,hash:y.magenta,string:y.green};function Nr([n,e],t){if(n==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!t.endOfFile()){let r=t.nextToken();if(t.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return n}function tt(n){let e=qr(new et(n),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let r=e.nextToken(),s=kr[Nr(r,e)];s?t+=r[1].split(/\r?\n/).map(i=>s(i)).join(`
2
+ `):t+=r[1]}return t}tt.registerInput=Mr;rt.exports=tt});var ae=m((oi,nt)=>{"use strict";var st=Oe(),it=Ae(),D=class n extends Error{constructor(e,t,r,s,i,l){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),s&&(this.source=s),l&&(this.plugin=l),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=st.isColorSupported);let r=u=>u,s=u=>u,i=u=>u;if(e){let{bold:u,gray:w,red:c}=st.createColors(!0);s=p=>u(c(p)),r=p=>w(p),it&&(i=p=>it(p))}let l=t.split(/\r?\n/),a=Math.max(this.line-3,0),o=Math.min(this.line+2,l.length),f=String(o).length;return l.slice(a,o).map((u,w)=>{let c=a+1+w,p=" "+(" "+c).slice(-f)+" | ";if(c===this.line){if(u.length>160){let b=20,h=Math.max(0,this.column-b),_=Math.max(this.column+b,this.endColumn+b),L=u.slice(h,_),se=r(p.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return s(">")+r(p)+i(L)+`
3
+ `+se+s("^")}let x=r(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+r(p)+i(u)+`
4
+ `+x+s("^")}return" "+r(p)+i(u)}).join(`
5
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
6
+
7
+ `+e+`
8
+ `),this.name+": "+this.message+e}};nt.exports=D;D.default=D});var ve=m((li,lt)=>{"use strict";var Ur=/(<)(\/?style\b)/gi,Tr=/(<)(!--)/g;function E(n){return typeof n!="string"||!n.includes("<")?n:n.replace(Ur,"\\3c $2").replace(Tr,"\\3c $2")}var ot={after:`
9
+ `,beforeClose:`
10
+ `,beforeComment:`
11
+ `,beforeDecl:`
12
+ `,beforeOpen:" ",beforeRule:`
13
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Br(n){return n[0].toUpperCase()+n.slice(1)}var F=class{constructor(e){this.builder=e}atrule(e,t){let r=e.raws,s="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof r.afterName<"u"?s+=r.afterName:i&&(s+=" "),e.nodes)this.block(e,s+i);else{let l=(r.between||"")+(t?";":"");this.builder(E(s+i+l),e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&s.type!=="root";)i+=1,s=s.parent;if(r.includes(`
14
+ `)){let l=this.raw(e,null,"indent");if(l.length)for(let a=0;a<i;a++)r+=l}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(E(t+r)+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(E(s)),this.builder("}",e,"end")}body(e){let t=e.nodes,r=t.length-1;for(;r>0&&t[r].type==="comment";)r-=1;let s=this.raw(e,"semicolon"),i=e.type==="document";for(let l=0;l<t.length;l++){let a=t[l],o=this.raw(a,"before");o&&this.builder(i?o:E(o)),this.stringify(a,r!==l||s)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(E("/*"+t+e.text+r+"*/"),e)}decl(e,t){let r=e.raws,s=this.raw(e,"between","colon"),i=e.prop+s+this.rawValue(e,"value");e.important&&(i+=r.important||" !important"),t&&(i+=";"),this.builder(E(i),e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s<"u"))return s;let i=e.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return ot[r];let l=e.root(),a=l.rawCache||(l.rawCache={});if(typeof a[r]<"u")return a[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let o="raw"+Br(r);this[o]?s=this[o](l,e):l.walk(f=>{if(s=f.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=ot[r]),a[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
15
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
16
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
17
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
18
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
19
+ `);return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,r=e.parent&&e.parent.type==="document";this.builder(r?t:E(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(E(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};lt.exports=F;F.default=F});var z=m((ai,at)=>{"use strict";var _r=ve();function Re(n,e){new _r(e).stringify(n)}at.exports=Re;Re.default=Re});var ue=m((ui,Pe)=>{"use strict";Pe.exports.isClean=Symbol("isClean");Pe.exports.my=Symbol("my")});var H=m((fi,ut)=>{"use strict";var Dr=ae(),Fr=ve(),zr=z(),{isClean:j,my:jr}=ue();function Ie(n,e){let t=new n.constructor;for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r)||r==="proxyCache")continue;let s=n[r],i=typeof s;r==="parent"&&i==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(l=>Ie(l,t)):(i==="object"&&s!==null&&(s=Ie(s)),t[r]=s)}return t}function O(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,s=0;for(let i=0;i<n.length;i++){if(r===e.line&&t===e.column){s=i;break}n[i]===`
20
+ `?(t=1,r+=1):t+=1}return s}var W=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[j]=!1,this[jr]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ie(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new Dr(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[j]=!0}markDirty(){if(this[j]){this[j]=!1;let e=this;for(;e=e.parent;)e[j]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(O(r,this.source.start),O(r,this.source.end)).indexOf(e.word);i!==-1&&(t=this.positionInside(i))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,s="document"in this.source.input?this.source.input.document:this.source.input.css,i=O(s,this.source.start),l=i+e;for(let a=i;a<l;a++)s[a]===`
21
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:l}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:O(t,this.source.start)},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:O(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let l=t.slice(O(t,this.source.start),O(t,this.source.end)).indexOf(e.word);l!==-1&&(r=this.positionInside(l),s=this.positionInside(l+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:O(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line,offset:O(t,e.end)}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line,offset:r.offset+1}),{end:s,start:r}}raw(e,t){return new Fr().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let i=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let a=this[l];if(Array.isArray(a))r[l]=a.map(o=>typeof o=="object"&&o.toJSON?o.toJSON(null,t):o);else if(typeof a=="object"&&a.toJSON)r[l]=a.toJSON(null,t);else if(l==="source"){if(a==null)continue;let o=t.get(a.input);o==null&&(o=i,t.set(a.input,i),i++),r[l]={end:a.end,inputId:o,start:a.start}}else r[l]=a}return s&&(r.inputs=[...t.keys()].map(l=>l.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=zr){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let s={node:this};for(let i in r)s[i]=r[i];return e.warn(t,s)}};ut.exports=W;W.default=W});var $=m((hi,ft)=>{"use strict";var Wr=H(),V=class extends Wr{constructor(e){super(e),this.type="comment"}};ft.exports=V;V.default=V});var J=m((ci,ht)=>{"use strict";var Hr=H(),G=class extends Hr{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};ht.exports=G;G.default=G});var A=m((pi,bt)=>{"use strict";var ct=$(),pt=J(),Vr=H(),{isClean:mt,my:dt}=ue(),Le,gt,wt,qe;function yt(n){return n.map(e=>(e.nodes&&(e.nodes=yt(e.nodes)),delete e.source,e))}function xt(n){if(n[mt]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)xt(e)}var S=class n extends Vr{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(i,l)=>s(i.toProxy(),l):s)):t==="every"||t==="some"?r=>e[t]((s,...i)=>r(s.toProxy(),...i)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let l of s)this.proxyOf.nodes.splice(r+1,0,l);let i;for(let l in this.indexes)i=this.indexes[l],r<i&&(this.indexes[l]=i+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,i=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let a of i)this.proxyOf.nodes.splice(r,0,a);let l;for(let a in this.indexes)l=this.indexes[a],r<=l&&(this.indexes[a]=l+i.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=yt(gt(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new pt(e)]}else if(e.selector||e.selectors)e=[new qe(e)];else if(e.name)e=[new Le(e)];else if(e.text)e=[new ct(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[dt]||n.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[mt]&&xt(s),s.raws||(s.raws={}),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(i){throw t.addToError(i)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}};S.registerParse=n=>{gt=n};S.registerRule=n=>{qe=n};S.registerAtRule=n=>{Le=n};S.registerRoot=n=>{wt=n};bt.exports=S;S.default=S;S.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Le.prototype):n.type==="rule"?Object.setPrototypeOf(n,qe.prototype):n.type==="decl"?Object.setPrototypeOf(n,pt.prototype):n.type==="comment"?Object.setPrototypeOf(n,ct.prototype):n.type==="root"&&Object.setPrototypeOf(n,wt.prototype),n[dt]=!0,n.nodes&&n.nodes.forEach(e=>{S.rebuild(e)})}});var fe=m((mi,Ct)=>{"use strict";var St=A(),k=class extends St{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Ct.exports=k;k.default=k;St.registerAtRule(k)});var he=m((di,At)=>{"use strict";var $r=A(),Ot,Et,P=class extends $r{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ot(new Et,this,e).stringify()}};P.registerLazyResult=n=>{Ot=n};P.registerProcessor=n=>{Et=n};At.exports=P;P.default=P});var Rt=m((gi,vt)=>{"use strict";var Gr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Jr=(n,e=21)=>(t=e)=>{let r="",s=t|0;for(;s--;)r+=n[Math.random()*n.length|0];return r},Qr=(n=21)=>{let e="",t=n|0;for(;t--;)e+=Gr[Math.random()*64|0];return e};vt.exports={nanoid:Qr,customAlphabet:Jr}});var ke=m((wi,Lt)=>{"use strict";var{existsSync:Yr,readFileSync:Kr}=M("fs"),{dirname:Me,join:Xr}=M("path"),{SourceMapConsumer:Pt,SourceMapGenerator:It}=Se();function Zr(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}var Q=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Me(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Pt(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,l=e.match(s)||e.match(i);if(l)return decodeURIComponent(e.substr(l[0].length));let a=e.match(t)||e.match(r);if(a)return Zr(e.substr(a[0].length));let o=e.slice(22);throw o=o.slice(0,o.indexOf(",")),new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e,t,r){if(!(!r&&!this.unsafeMap&&!/\.map$/i.test(e))&&(this.root=Me(e),Yr(e)))return this.mapFile=e,Kr(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r,e,!0);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof Pt)return It.fromSourceMap(t).toString();if(t instanceof It)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;e&&(r=Xr(Me(e),r));let s=this.loadFile(r,e,!1);if(s)try{this.json=JSON.parse(s.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return s}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Lt.exports=Q;Q.default=Q});var Y=m((yi,Ut)=>{"use strict";var{nanoid:es}=Rt(),{isAbsolute:Te,resolve:Be}=M("path"),{SourceMapConsumer:ts,SourceMapGenerator:rs}=Se(),{fileURLToPath:qt,pathToFileURL:ce}=M("url"),Mt=ae(),ss=ke(),Ne=Ae(),Ue=Symbol("lineToIndexCache"),is=!!(ts&&rs),kt=!!(Be&&Te);function Nt(n){if(n[Ue])return n[Ue];let e=n.css.split(`
22
+ `),t=new Array(e.length),r=0;for(let s=0,i=e.length;s<i;s++)t[s]=r,r+=e[s].length+1;return n[Ue]=t,t}var N=class{get from(){return this.file||this.id}constructor(e,t={}){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,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!kt||/^\w+:\/\//.test(t.from)||Te(t.from)?this.file=t.from:this.file=Be(t.from)),kt&&is){let r=new ss(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+es(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let i,l,a,o,f;if(t&&typeof t=="object"){let w=t,c=r;if(typeof w.offset=="number"){o=w.offset;let p=this.fromOffset(o);t=p.line,r=p.col}else t=w.line,r=w.column,o=this.fromLineAndColumn(t,r);if(typeof c.offset=="number"){a=c.offset;let p=this.fromOffset(a);l=p.line,i=p.col}else l=c.line,i=c.column,a=this.fromLineAndColumn(c.line,c.column)}else if(r)o=this.fromLineAndColumn(t,r);else{o=t;let w=this.fromOffset(o);t=w.line,r=w.col}let u=this.origin(t,r,l,i);return u?f=new Mt(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,s.plugin):f=new Mt(e,l===void 0?t:{column:r,line:t},l===void 0?r:{column:i,line:l},this.css,this.file,s.plugin),f.input={column:r,endColumn:i,endLine:l,endOffset:a,line:t,offset:o,source:this.css},this.file&&(ce&&(f.input.url=ce(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,t){return Nt(this)[e-1]+t-1}fromOffset(e){let t=Nt(this),r=t[t.length-1],s=0;if(e>=r)s=t.length-1;else{let i=t.length-2,l;for(;s<i;)if(l=s+(i-s>>1),e<t[l])i=l-1;else if(e>=t[l+1])s=l+1;else{s=l;break}}return{col:e-t[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Be(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let i=this.map.consumer(),l=i.originalPositionFor({column:t,line:e});if(!l.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({column:s,line:r}));let o;Te(l.source)?o=ce(l.source):o=new URL(l.source,this.map.consumer().sourceRoot||ce(this.map.mapFile));let f={column:l.column,endColumn:a&&a.column,endLine:a&&a.line,line:l.line,url:o.toString()};if(o.protocol==="file:")if(qt)f.file=qt(o);else throw new Error("file: protocol is not available in this PostCSS build");let u=i.sourceContentFor(l.source);return u&&(f.source=u),f}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Ut.exports=N;N.default=N;Ne&&Ne.registerInput&&Ne.registerInput(N)});var U=m((xi,Dt)=>{"use strict";var Tt=A(),Bt,_t,v=class extends Tt{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let i of s)i.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Bt(new _t,this,e).stringify()}};v.registerLazyResult=n=>{Bt=n};v.registerProcessor=n=>{_t=n};Dt.exports=v;v.default=v;Tt.registerRoot(v)});var _e=m((bi,Ft)=>{"use strict";var K={comma(n){return K.split(n,[","],!0)},space(n){let e=[" ",`
23
+ `," "];return K.split(n,e)},split(n,e,t){let r=[],s="",i=!1,l=0,a=!1,o="",f=!1;for(let u of n)f?f=!1:u==="\\"?f=!0:a?u===o&&(a=!1):u==='"'||u==="'"?(a=!0,o=u):u==="("?l+=1:u===")"?l>0&&(l-=1):l===0&&e.includes(u)&&(i=!0),i?(s!==""&&r.push(s.trim()),s="",i=!1):s+=u;return(t||s!=="")&&r.push(s.trim()),r}};Ft.exports=K;K.default=K});var pe=m((Si,jt)=>{"use strict";var zt=A(),ns=_e(),T=class extends zt{get selectors(){return ns.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};jt.exports=T;T.default=T;zt.registerRule(T)});var Ht=m((Ci,Wt)=>{"use strict";var os=fe(),ls=$(),as=J(),us=Y(),fs=ke(),hs=U(),cs=pe();function X(n,e){if(Array.isArray(n))return n.map(s=>X(s));let{inputs:t,...r}=n;if(t){e=[];for(let s of t){let i={...s,__proto__:us.prototype};i.map&&(i.map={...i.map,__proto__:fs.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=n.nodes.map(s=>X(s,e))),r.source){let{inputId:s,...i}=r.source;r.source=i,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new hs(r);if(r.type==="decl")return new as(r);if(r.type==="rule")return new cs(r);if(r.type==="comment")return new ls(r);if(r.type==="atrule")return new os(r);throw new Error("Unknown node type: "+n.type)}Wt.exports=X;X.default=X});var Fe=m((Oi,Yt)=>{"use strict";var{dirname:me,relative:$t,resolve:Gt,sep:Jt}=M("path"),{SourceMapConsumer:Qt,SourceMapGenerator:de}=Se(),{pathToFileURL:Vt}=M("url"),ps=Y(),ms=!!(Qt&&de),ds=!!(me&&Gt&&$t&&Jt),De=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
24
+ `;this.css.includes(`\r
25
+ `)&&(t=`\r
26
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||me(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Qt(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;(e=this.css.lastIndexOf("/*#"))!==-1;){let t=this.css.indexOf("*/",e+3);if(t===-1)break;for(;e>0&&this.css[e-1]===`
27
+ `;)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}}generate(){if(this.clearAnnotation(),ds&&ms&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=de.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new de({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new de({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,l;this.stringify(this.root,(a,o,f)=>{if(this.css+=a,o&&f!=="end"&&(s.generated.line=e,s.generated.column=t-1,o.source&&o.source.start?(s.source=this.sourcePath(o),s.original.line=o.source.start.line,s.original.column=o.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),l=a.match(/\n/g),l?(e+=l.length,i=a.lastIndexOf(`
28
+ `),t=a.length-i):t+=a.length,o&&f!=="start"){let u=o.parent||{raws:{}};(!(o.type==="decl"||o.type==="atrule"&&!o.nodes)||o!==u.last||u.raws.semicolon)&&(o.source&&o.source.end?(s.source=this.sourcePath(o),s.original.line=o.source.end.line,s.original.column=o.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?me(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=me(Gt(r,this.mapOpts.annotation)));let s=$t(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new ps(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Vt){let r=Vt(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Jt==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};Yt.exports=De});var er=m((Ei,Zt)=>{"use strict";var gs=fe(),ws=$(),ys=J(),xs=U(),Kt=pe(),bs=Ee(),Xt={empty:!0,space:!0};function Ss(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}function ze(n,e,t){let r="";for(let s=e;s<t;s++)r+=n[s][1];return r}var je=class{constructor(e){this.input=e,this.root=new xs,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new gs;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,i,l=!1,a=!1,o=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(o.length>0){for(i=o.length-1,s=o[i];s&&s[0]==="space";)s=o[--i];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else o.push(e);else o.push(e);if(this.tokenizer.endOfFile()){l=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(t.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(t,"params",o),l&&(e=o[o.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let i=t-1;i>=0&&(s=e[i],!(s[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,i;for(let[l,a]of e.entries()){if(s=a,i=s[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!r)this.doubleColon(s);else{if(r[0]==="word"&&r[1]==="progid")continue;return l}r=s}return!1}comment(e){let t=new ws;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())t.text="",t.raws.left=r,t.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=bs(this.input)}decl(e,t){let r=new ys;this.init(r,e[0][2]);let s=e[e.length-1];s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Ss(e)),r.source.end.offset++;let i=0;for(;e[i][0]!=="word";)i===e.length-1&&this.unknownWord([e[i]]),i++;r.raws.before+=ze(e,0,i),r.source.start=this.getPosition(e[i][2]);let l=i;for(;i<e.length;){let c=e[i][0];if(c===":"||c==="space"||c==="comment")break;i++}r.prop=ze(e,l,i);let a=i,o;for(;i<e.length&&(o=e[i],i++,o[0]!==":");)o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]);r.raws.between=ze(e,a,i),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let f=i;for(;i<e.length;){let c=e[i][0];if(c!=="space"&&c!=="comment")break;i++}let u=e.slice(f,i);e=e.slice(i),this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){r.important=!0;let p=this.stringFrom(e,c);p=this.spacesFromEnd(e)+p,p!==" !important"&&(r.raws.important=p);break}else if(o[1].toLowerCase()==="important"){let p=e.slice(0),x="";for(let b=c;b>0;b--){let h=p[b][0];if(x.trim().startsWith("!")&&h!=="space")break;x=p.pop()[1]+x}x.trim().startsWith("!")&&(r.important=!0,r.raws.important=x,e=p)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=u.map(c=>c[1]).join(""),u=[]),this.raw(r,"value",u.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Kt;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,i=null,l=[],a=e[1].startsWith("--"),o=[],f=e;for(;f;){if(r=f[0],o.push(f),r==="("||r==="[")i||(i=f),l.push(r==="("?")":"]");else if(a&&s&&r==="{")i||(i=f),l.push("}");else if(l.length===0)if(r===";")if(s){this.decl(o,a);return}else break;else if(r==="{"){this.rule(o);return}else if(r==="}"){this.tokenizer.back(o.pop()),t=!0;break}else r===":"&&(s=!0);else r===l[l.length-1]&&(l.pop(),l.length===0&&(i=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),l.length>0&&this.unclosedBracket(i),t&&s){if(!a)for(;o.length&&(f=o[o.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,a)}else this.unknownWord(o)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,l,a=r.length,o="",f=!0,u,w;for(let c=0;c<a;c+=1)i=r[c],l=i[0],l==="space"&&c===a-1&&!s?f=!1:l==="comment"?(w=r[c-1]?r[c-1][0]:"empty",u=r[c+1]?r[c+1][0]:"empty",!Xt[w]&&!Xt[u]?o.slice(-1)===","?f=!1:o+=i[1]:f=!1):o+=i[1];if(!f){let c=r.reduce((p,x)=>p+x[1],"");e.raws[t]={raw:c,value:o}}e[t]=o}rule(e){e.pop();let t=new Kt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};Zt.exports=je});var we=m((Ai,tr)=>{"use strict";var Cs=A(),Os=Y(),Es=er();function ge(n,e){let t=new Os(n,e),r=new Es(t);try{r.parse()}catch(s){throw process.env.NODE_ENV!=="production"&&s.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?s.message+=`
29
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?s.message+=`
30
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(s.message+=`
31
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),s}return r.root}tr.exports=ge;ge.default=ge;Cs.registerParse(ge)});var We=m((vi,rr)=>{"use strict";var Z=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};rr.exports=Z;Z.default=Z});var ye=m((Ri,sr)=>{"use strict";var As=We(),ee=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new As(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};sr.exports=ee;ee.default=ee});var He=m((Pi,nr)=>{"use strict";var ir={};nr.exports=function(e){ir[e]||(ir[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Ge=m((Ii,ur)=>{"use strict";var vs=A(),Rs=he(),Ps=Fe(),Is=we(),or=ye(),Ls=U(),qs=z(),{isClean:C,my:Ms}=ue(),ks=He(),Ns={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Us={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Ts={Once:!0,postcssPlugin:!0,prepare:!0},B=0;function te(n){return typeof n=="object"&&typeof n.then=="function"}function ar(n){let e=!1,t=Ns[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,B,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,B,t+"Exit"]:[t,t+"Exit"]}function lr(n){let e;return n.type==="document"?e=["Document",B,"DocumentExit"]:n.type==="root"?e=["Root",B,"RootExit"]:e=ar(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function Ve(n){return n[C]=!1,n.nodes&&n.nodes.forEach(e=>Ve(e)),n}var $e={},R=class n{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Ve(t);else if(t instanceof n||t instanceof or)s=Ve(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let i=Is;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{s=i(t,r)}catch(l){this.processed=!0,this.error=l}s&&!s[Ms]&&vs.rebuild(s)}this.result=new or(e,s,r),this.helpers={...$e,postcss:$e,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=r.postcssPlugin,e.setMessage();else if(r.postcssVersion&&process.env.NODE_ENV!=="production"){let s=r.postcssPlugin,i=r.postcssVersion,l=this.result.processor.version,a=i.split("."),o=l.split(".");(a[0]!==o[0]||parseInt(a[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+l+", but "+s+" uses "+i+". Perhaps this is the source of the error below.")}}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Us[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Ts[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(te(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[C];){e[C]=!0;let t=[lr(e)];for(;t.length>0;){let r=this.visitTick(t);if(te(r))try{await r}catch(s){let i=t[t.length-1].node;throw this.handleError(s,i)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(i=>r(i,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return te(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=qs;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=this.result.root.source;if(e.map===void 0&&!(r&&r.input&&r.input.map)){let l="";return t(this.result.root,a=>{l+=a}),this.result.css=l,this.result}let i=new Ps(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(te(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[C];)e[C]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||ks("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let i;try{i=s(t,this.helpers)}catch(l){throw this.handleError(l,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(te(i))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[l,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=l;try{return a(r.toProxy(),this.helpers)}catch(o){throw this.handleError(o,r)}}if(t.iterator!==0){let l=t.iterator,a;for(;a=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!a[C]){a[C]=!0,e.push(lr(a));return}t.iterator=0,delete r.indexes[l]}let i=t.events;for(;t.eventIndex<i.length;){let l=i[t.eventIndex];if(t.eventIndex+=1,l===B){r.nodes&&r.nodes.length&&(r[C]=!0,t.iterator=r.getIterator());return}else if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()}walkSync(e){e[C]=!0;let t=ar(e);for(let r of t)if(r===B)e.nodes&&e.each(s=>{s[C]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}};R.registerPostcss=n=>{$e=n};ur.exports=R;R.default=R;Ls.registerLazyResult(R);Rs.registerLazyResult(R)});var hr=m((Li,fr)=>{"use strict";var Bs=Fe(),_s=we(),Ds=ye(),Fs=z(),zs=He(),re=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=_s;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=Fs;this.result=new Ds(this._processor,void 0,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let l=new Bs(s,void 0,this._opts,t);if(l.isMap()){let[a,o]=l.generate();a&&(this.result.css=a),o&&(this.result.map=o)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||zs("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};fr.exports=re;re.default=re});var pr=m((qi,cr)=>{"use strict";var js=he(),Ws=Ge(),Hs=hr(),Vs=U(),I=class{constructor(e=[]){this.version="8.5.15",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(typeof r=="object"&&(r.parse||r.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Hs(this,e,t):new Ws(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};cr.exports=I;I.default=I;Vs.registerProcessor(I);js.registerProcessor(I)});var Sr=m((Mi,br)=>{"use strict";var mr=fe(),dr=$(),$s=A(),Gs=ae(),gr=J(),wr=he(),Js=Ht(),Qs=Y(),Ys=Ge(),Ks=_e(),Xs=H(),Zs=we(),Je=pr(),ei=ye(),yr=U(),xr=pe(),ti=z(),ri=We();function d(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Je(n)}d.plugin=function(e,t){let r=!1;function s(...l){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
32
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
33
+ https://www.w3ctech.com/topic/2226`));let a=t(...l);return a.postcssPlugin=e,a.postcssVersion=new Je().version,a}let i;return Object.defineProperty(s,"postcss",{get(){return i||(i=s()),i}}),s.process=function(l,a,o){return d([s(o)]).process(l,a)},s};d.stringify=ti;d.parse=Zs;d.fromJSON=Js;d.list=Ks;d.comment=n=>new dr(n);d.atRule=n=>new mr(n);d.decl=n=>new gr(n);d.rule=n=>new xr(n);d.root=n=>new yr(n);d.document=n=>new wr(n);d.CssSyntaxError=Gs;d.Declaration=gr;d.Container=$s;d.Processor=Je;d.Document=wr;d.Comment=dr;d.Warning=ri;d.AtRule=mr;d.Result=ei;d.Input=Qs;d.Rule=xr;d.Root=yr;d.Node=Xs;Ys.registerPostcss(d);br.exports=d;d.default=d});var g=vr(Sr(),1),ki=g.default,Ni=g.default.stringify,Ui=g.default.fromJSON,Ti=g.default.plugin,Bi=g.default.parse,_i=g.default.list,Di=g.default.document,Fi=g.default.comment,zi=g.default.atRule,ji=g.default.rule,Wi=g.default.decl,Hi=g.default.root,Vi=g.default.CssSyntaxError,$i=g.default.Declaration,Gi=g.default.Container,Ji=g.default.Processor,Qi=g.default.Document,Yi=g.default.Comment,Ki=g.default.Warning,Xi=g.default.AtRule,Zi=g.default.Result,en=g.default.Input,tn=g.default.Rule,rn=g.default.Root,sn=g.default.Node;export{Xi as AtRule,Yi as Comment,Gi as Container,Vi as CssSyntaxError,$i as Declaration,Qi as Document,en as Input,sn as Node,Ji as Processor,Zi as Result,rn as Root,tn as Rule,Ki as Warning,zi as atRule,Fi as comment,Wi as decl,ki as default,Di as document,Ui as fromJSON,_i as list,Bi as parse,Ti as plugin,Hi as root,ji as rule,Ni as stringify};
@@ -0,0 +1,5 @@
1
+ import{a as E}from"./chunk-4WKUTVLA.js";import{b as _,f as C}from"./chunk-N7GIB7UG.js";import"./chunk-ZWRDP37E.js";var q=_(((I,g)=>{g.exports=function(d,p,u){let f=[];if(typeof d<"u"){let t="layer";d&&(t=`layer(${d})`),f.push(t)}return typeof u<"u"&&f.push(`supports(${u})`),typeof p<"u"&&f.push(p),f.join(" ")}})),L=_(((I,g)=>{let m=q();g.exports=function(p,u){if(!u?.length)return p;u.reverse();let f=u.pop(),t=`${p} ${m(f.layer,f.media,f.supports)}`;for(let e of u)t=`'data:text/css;base64,${Buffer.from(`@import ${t}`).toString("base64")}' ${m(e.layer,e.media,e.supports)}`;return t}})),P=_(((I,g)=>{let m=L();g.exports=function(p,u){let f=p.findIndex(e=>e.type==="import"),t=p.findLastIndex(e=>e.type==="import");p.forEach((e,h)=>{if(e.type==="charset"||e.type==="warning")return;if(e.type==="layer"&&(h<t&&e.conditions?.length||h>f&&h<t)){e.type="import",e.node=e.node.clone({name:"import",params:m(`'data:text/css;base64,${Buffer.from(e.node.toString()).toString("base64")}'`,e.conditions)});return}if(!e.conditions?.length)return;if(e.type==="import"){e.node.params=m(e.fullUri,e.conditions);return}let r,o;e.type==="layer"?(r=[e.node],o=e.node.parent):(r=e.nodes,o=r[0].parent);let a=[];for(let i of e.conditions){if(typeof i.media<"u"){let s=u({name:"media",params:i.media,source:o.source});a.push(s)}if(typeof i.supports<"u"){let s=u({name:"supports",params:`(${i.supports})`,source:o.source});a.push(s)}if(typeof i.layer<"u"){let s=u({name:"layer",params:i.layer,source:o.source});a.push(s)}}let n=a.shift(),c=a.reduce((i,s)=>(i.append(s),s),n);o.insertBefore(r[0],n),r.forEach(i=>{i.parent=void 0}),r[0].raws.before=r[0].raws.before||`
2
+ `,c.append(r),e.type="nodes",e.nodes=[n],delete e.node})}})),k=_(((I,g)=>{g.exports=function(d){d.forEach((p,u)=>{if(u!==0)if(p.parent){let{before:f}=p.parent.node.raws;p.type==="nodes"?p.nodes[0].raws.before=f:p.node.raws.before=f}else p.type==="nodes"&&(p.nodes[0].raws.before=p.nodes[0].raws.before||`
3
+ `)})}})),D=_(((I,g)=>{g.exports=function(d,p){p.nodes=[],d.forEach(u=>{["charset","import","layer"].includes(u.type)?(u.node.parent=void 0,p.append(u.node)):u.type==="nodes"&&u.nodes.forEach(f=>{f.parent=void 0,p.append(f)})})}})),A=_(((I,g)=>{let m=/^data:text\/css(?:;(base64|plain))?,/i,d=/^data:text\/css;base64,/i,p=/^data:text\/css;plain,/i;function u(t){return m.test(t)}function f(t){return d.test(t)?Buffer.from(t.slice(21),"base64").toString():p.test(t)?decodeURIComponent(t.slice(20)):decodeURIComponent(t.slice(14))}g.exports={isValid:u,contents:f}})),M=_(((I,g)=>{let m=E(),{stringify:d}=m;g.exports=function(e,h,r,o){let a=[],n=[],c=!1;return h.each(i=>{let s;i.type==="atrule"?i.name==="import"?s=u(e,i,r,o):i.name==="charset"?s=p(e,i,r,o):i.name==="layer"&&!c&&!i.nodes&&(s=f(e,i,r,o)):i.type!=="comment"&&(c=!0),s?(n.length&&(a.push({type:"nodes",nodes:n,conditions:[...r],from:o}),n=[]),a.push(s)):n.push(i)}),n.length&&a.push({type:"nodes",nodes:n,conditions:[...r],from:o}),a};function p(t,e,h,r){return e.prev()?t.warn("@charset must precede all other statements",{node:e}):{type:"charset",node:e,conditions:[...h],from:r}}function u(t,e,h,r){let o=e.prev();if(o)do{if(o.type==="comment"||o.type==="atrule"&&o.name==="import"){o=o.prev();continue}break}while(o);if(o)do{if(o.type==="comment"||o.type==="atrule"&&(o.name==="charset"||o.name==="layer"&&!o.nodes)){o=o.prev();continue}return t.warn("@import must precede all other statements (besides @charset or empty @layer)",{node:e})}while(o);if(e.nodes)return t.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",{node:e});let a=m(e.params).nodes,n={type:"import",uri:"",fullUri:"",node:e,conditions:[...h],from:r},c,i,s;for(let b=0;b<a.length;b++){let l=a[b];if(!(l.type==="space"||l.type==="comment")){if(l.type==="string"){if(n.uri)return t.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!l.value)return t.warn(`Unable to find uri in '${e.toString()}'`,{node:e});n.uri=l.value,n.fullUri=d(l);continue}if(l.type==="function"&&/^url$/i.test(l.value)){if(n.uri)return t.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!l.nodes?.[0]?.value)return t.warn(`Unable to find uri in '${e.toString()}'`,{node:e});n.uri=l.nodes[0].value,n.fullUri=d(l);continue}if(!n.uri)return t.warn(`Unable to find uri in '${e.toString()}'`,{node:e});if((l.type==="word"||l.type==="function")&&/^layer$/i.test(l.value)){if(typeof c<"u")return t.warn(`Multiple layers in '${e.toString()}'`,{node:e});if(typeof s<"u")return t.warn(`layers must be defined before support conditions in '${e.toString()}'`,{node:e});l.nodes?c=d(l.nodes):c="";continue}if(l.type==="function"&&/^supports$/i.test(l.value)){if(typeof s<"u")return t.warn(`Multiple support conditions in '${e.toString()}'`,{node:e});s=d(l.nodes);continue}i=d(a.slice(b));break}}return n.uri?((typeof i<"u"||typeof c<"u"||typeof s<"u")&&n.conditions.push({layer:c,media:i,supports:s}),n):t.warn(`Unable to find uri in '${e.toString()}'`,{node:e})}function f(t,e,h,r){return{type:"layer",node:e,conditions:[...h],from:r}}})),B=_(((I,g)=>{let m=C("path"),d;g.exports=function(f,t,e,h,r){let{plugins:o}=h,a=m.extname(e),n=[];if(a===".sss"){if(!d)try{d=C("sugarss")}catch{}if(d)return p(r,t,e,o,[d])}return f.opts.syntax?.parse&&n.push(f.opts.syntax.parse),f.opts.parser&&n.push(f.opts.parser),n.push(null),p(r,t,e,o,n)};function p(u,f,t,e,h,r){return r||(r=0),u(e).process(f,{from:t,parser:h[r]}).catch(o=>{if(r++,r===h.length)throw o;return p(u,f,t,e,h,r)})}})),N=_(((I,g)=>{let m=C("path"),d=A(),p=M(),u=B(),f=a=>a,t=q();async function e(a,n,c,i,s,b,l){let S=p(a,n,s,b);for(let y of S)y.type!=="import"||!o(y.uri)||c.filter&&!c.filter(y.uri)||await h(a,y,c,i,l);let $,x=[],w=[];function U(y){if(!$)$=y;else if(y.node.params.toLowerCase()!==$.node.params.toLowerCase())throw y.node.error(`Incompatible @charset statements:
4
+ ${y.node.params} specified in ${y.node.source.input.file}
5
+ ${$.node.params} specified in ${$.node.source.input.file}`)}return S.forEach(y=>{y.type==="charset"?U(y):y.type==="import"?y.children?y.children.forEach((v,F)=>{v.type==="import"||v.type==="layer"?x.push(v):v.type==="charset"?U(v):w.push(v),F===0&&(v.parent=y)}):x.push(y):y.type==="layer"?x.push(y):y.type==="nodes"&&w.push(y)}),$?[$,...x.concat(w)]:x.concat(w)}async function h(a,n,c,i,s){if(d.isValid(n.uri)){n.children=await r(a,n,n.uri,c,i,s);return}else if(d.isValid(n.from.slice(-1)))throw n.node.error(`Unable to import '${n.uri}' from a stylesheet that is embedded in a data url`);let b=n.node,l;b.source?.input?.file&&(l=b.source.input.file);let S=l?m.dirname(b.source.input.file):c.root,$=[await c.resolve(n.uri,S,c,b)].flat(),x=await Promise.all($.map(w=>m.isAbsolute(w)?w:f(w,S,c,b)));x.forEach(w=>{a.messages.push({type:"dependency",plugin:"postcss-import",file:w,parent:l})}),n.children=(await Promise.all(x.map(w=>r(a,n,w,c,i,s)))).flat().filter(w=>!!w)}async function r(a,n,c,i,s,b){let l=n.node,{conditions:S,from:$}=n,x=S.map(v=>t(v.layer,v.media,v.supports)).join(":");if(i.skipDuplicates){if(s.importedFiles[c]?.[x])return;s.importedFiles[c]||(s.importedFiles[c]={}),s.importedFiles[c][x]=!0}if($.includes(c))return;let w=await i.load(c,i);if(w.trim()===""&&i.warnOnEmpty){a.warn(`${c} is empty`,{node:l});return}if(i.skipDuplicates&&s.hashFiles[w]?.[x])return;let U=await u(a,w,c,i,b),y=U.root;return a.messages=a.messages.concat(U.messages),i.skipDuplicates&&(y.some(v=>v.type==="atrule"&&v.name==="import")||(s.hashFiles[w]||(s.hashFiles[w]={}),s.hashFiles[w][x]=!0)),e(a,y,i,s,S,[...$,c],b)}function o(a){if(/^(?:[a-z]+:)?\/\//i.test(a))return!1;try{if(new URL(a,"https://example.com").search)return!1}catch{}return!0}g.exports=e})),O=_(((I,g)=>{let m=C("path"),d=P(),p=k(),u=D(),f=()=>"",t=N(),e=r=>r;function h(r){return r={root:process.cwd(),path:[],skipDuplicates:!0,resolve:e,load:f,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...r},r.root=m.resolve(r.root),typeof r.path=="string"&&(r.path=[r.path]),Array.isArray(r.path)||(r.path=[]),r.path=r.path.map(o=>m.resolve(r.root,o)),{postcssPlugin:"postcss-import",async Once(o,{result:a,atRule:n,postcss:c}){let i={importedFiles:{},hashFiles:{}};if(o.source?.input?.file&&(i.importedFiles[o.source.input.file]={}),r.plugins&&!Array.isArray(r.plugins))throw new Error("plugins option must be an array");let s=await t(a,o,r,i,[],[],c);p(s),d(s,n),u(s,o)}}}h.postcss=!0,g.exports=h})),z=O();export{z as default};
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@mcp-use/cli",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.1",
5
- "description": "Compatibility proxy for the CLI included in mcp-use v2",
4
+ "version": "4.0.0-beta.3",
5
+ "description": "Prebuilt CLI, development server, and build pipeline for mcp-use",
6
6
  "author": "mcp-use, Inc.",
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/mcp-use/mcp-use#readme",
@@ -20,27 +20,53 @@
20
20
  "cli"
21
21
  ],
22
22
  "bin": {
23
- "mcp-use": "./dist/index.js"
23
+ "mcp-use": "./dist/bin.js"
24
+ },
25
+ "exports": {
26
+ ".": {
27
+ "types": "./types/index.d.ts",
28
+ "import": "./dist/bin.js"
29
+ }
24
30
  },
25
31
  "files": [
26
- "dist"
32
+ "dist",
33
+ "types"
27
34
  ],
28
35
  "engines": {
29
36
  "node": ">=22.22.2"
30
37
  },
31
38
  "dependencies": {
32
- "mcp-use": "^2.0.0-beta.12"
39
+ "@tailwindcss/oxide": "4.2.0",
40
+ "lightningcss": "^1.32.0",
41
+ "rolldown": "1.0.3"
42
+ },
43
+ "peerDependencies": {
44
+ "@mcp-use/client": "^2.0.0-alpha.0",
45
+ "@mcp-use/inspector": "^20.0.0-beta.0"
46
+ },
47
+ "peerDependenciesMeta": {
48
+ "@mcp-use/client": {
49
+ "optional": true
50
+ },
51
+ "@mcp-use/inspector": {
52
+ "optional": true
53
+ }
33
54
  },
34
55
  "devDependencies": {
56
+ "@modelcontextprotocol/server": "https://pkg.pr.new/@modelcontextprotocol/server@f60b40179b0f090f6d64248be1312245a160b5ee",
57
+ "@tailwindcss/vite": "^4.2.0",
58
+ "@vitejs/plugin-react": "^6.0.3",
35
59
  "rimraf": "^6.1.3",
60
+ "tailwindcss": "^4.2.0",
36
61
  "tsup": "^8.5.1",
37
- "typescript": "^5.9.3"
62
+ "typescript": "^5.9.3",
63
+ "vite": "^8.0.16"
38
64
  },
39
65
  "publishConfig": {
40
66
  "access": "public"
41
67
  },
42
68
  "scripts": {
43
- "build": "rimraf dist && tsup src/index.ts --format esm --target node22 && tsc --emitDeclarationOnly --declaration",
69
+ "build": "rimraf dist && tsup --config tsup.config.ts && node scripts/verify-package.mjs",
44
70
  "test": "node --test tests/proxy.test.mjs"
45
71
  }
46
72
  }
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // src/index.ts
4
- try {
5
- const frameworkEntry = new URL(import.meta.resolve("mcp-use"));
6
- await import(new URL("./bin.js", frameworkEntry).href);
7
- } catch (error) {
8
- console.error(error instanceof Error ? error.message : String(error));
9
- process.exitCode = 1;
10
- }