UNPKG

@canva/create-app

Version:

A command line tool for creating Canva Apps.

11 lines 373 kB
#!/usr/bin/env node // Copyright 2024 Canva Inc. All Rights Reserved. import { createRequire } from 'module';const require = createRequire(import.meta.url); var Og=Object.create;var cs=Object.defineProperty;var Bg=Object.getOwnPropertyDescriptor;var Tg=Object.getOwnPropertyNames;var Ig=Object.getPrototypeOf,Rg=Object.prototype.hasOwnProperty;var ie=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Pg=(e,t)=>()=>(e&&(t=e(e=0)),t);var T=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ng=(e,t)=>{for(var r in t)cs(e,r,{get:t[r],enumerable:!0})},Lg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Tg(t))!Rg.call(e,i)&&i!==r&&cs(e,i,{get:()=>t[i],enumerable:!(n=Bg(t,i))||n.enumerable});return e};var Ke=(e,t,r)=>(r=e!=null?Og(Ig(e)):{},Lg(t||!e||!e.__esModule?cs(r,"default",{value:e,enumerable:!0}):r,e));var $s=T((i3,Bc)=>{"use strict";Bc.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var qs=T((o3,Ic)=>{"use strict";var PE=ie("os"),Tc=ie("tty"),dt=$s(),{env:Me}=process,Ht;dt("no-color")||dt("no-colors")||dt("color=false")||dt("color=never")?Ht=0:(dt("color")||dt("colors")||dt("color=true")||dt("color=always"))&&(Ht=1);"FORCE_COLOR"in Me&&(Me.FORCE_COLOR==="true"?Ht=1:Me.FORCE_COLOR==="false"?Ht=0:Ht=Me.FORCE_COLOR.length===0?1:Math.min(parseInt(Me.FORCE_COLOR,10),3));function ks(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Us(e,t){if(Ht===0)return 0;if(dt("color=16m")||dt("color=full")||dt("color=truecolor"))return 3;if(dt("color=256"))return 2;if(e&&!t&&Ht===void 0)return 0;let r=Ht||0;if(Me.TERM==="dumb")return r;if(process.platform==="win32"){let n=PE.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Me)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Me)||Me.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Me)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Me.TEAMCITY_VERSION)?1:0;if(Me.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Me){let n=parseInt((Me.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Me.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Me.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Me.TERM)||"COLORTERM"in Me?1:r}function NE(e){let t=Us(e,e&&e.isTTY);return ks(t)}Ic.exports={supportsColor:NE,stdout:ks(Us(!0,Tc.isatty(1))),stderr:ks(Us(!0,Tc.isatty(2)))}});var Nc=T((s3,Pc)=>{"use strict";var LE=qs(),qr=$s();function Rc(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function Gs(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(qr("no-hyperlink")||qr("no-hyperlinks")||qr("hyperlink=false")||qr("hyperlink=never"))return!1;if(qr("hyperlink=true")||qr("hyperlink=always")||"NETLIFY"in t)return!0;if(!LE.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Rc(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=Rc(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Pc.exports={supportsHyperlink:Gs,stdout:Gs(process.stdout),stderr:Gs(process.stderr)}});var Hc=T((j3,Wc)=>{"use strict";var zE=function(t){return KE(t)&&!XE(t)};function KE(e){return!!e&&typeof e=="object"}function XE(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ZE(e)}var JE=typeof Symbol=="function"&&Symbol.for,QE=JE?Symbol.for("react.element"):60103;function ZE(e){return e.$$typeof===QE}function eF(e){return Array.isArray(e)?[]:{}}function On(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Gr(eF(e),e,t):e}function tF(e,t,r){return e.concat(t).map(function(n){return On(n,r)})}function rF(e,t){if(!t.customMerge)return Gr;var r=t.customMerge(e);return typeof r=="function"?r:Gr}function nF(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Gc(e){return Object.keys(e).concat(nF(e))}function Vc(e,t){try{return t in e}catch{return!1}}function iF(e,t){return Vc(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function oF(e,t,r){var n={};return r.isMergeableObject(e)&&Gc(e).forEach(function(i){n[i]=On(e[i],r)}),Gc(t).forEach(function(i){iF(e,i)||(Vc(e,i)&&r.isMergeableObject(t[i])?n[i]=rF(i,r)(e[i],t[i],r):n[i]=On(t[i],r))}),n}function Gr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||tF,r.isMergeableObject=r.isMergeableObject||zE,r.cloneUnlessOtherwiseSpecified=On;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):oF(e,t,r):On(t,r)}Gr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Gr(n,i,r)},{})};var sF=Gr;Wc.exports=sF});var Uf={};Ng(Uf,{default:()=>kf});async function kf(e=500){await new Promise(t=>setTimeout(t,e))}var qf=Pg(()=>{"use strict"});var bp=T((cR,Cp)=>{"use strict";var vC="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Cp.exports=vC});var xp=T((fR,_p)=>{"use strict";var _C=bp();function yp(){}function vp(){}vp.resetWarningCache=yp;_p.exports=function(){function e(n,i,o,s,u,c){if(c!==_C){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vp,resetWarningCache:yp};return r.PropTypes=r,r}});var Ap=T((dR,wp)=>{wp.exports=xp()();var pR,hR});var Op=T((DR,Sp)=>{"use strict";Sp.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var _u=T((mR,Tp)=>{var $n=Op(),Bp={};for(let e of Object.keys($n))Bp[$n[e]]=e;var J={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Tp.exports=J;for(let e of Object.keys(J)){if(!("channels"in J[e]))throw new Error("missing channels property: "+e);if(!("labels"in J[e]))throw new Error("missing channel labels property: "+e);if(J[e].labels.length!==J[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=J[e];delete J[e].channels,delete J[e].labels,Object.defineProperty(J[e],"channels",{value:t}),Object.defineProperty(J[e],"labels",{value:r})}J.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i,u,c;o===i?u=0:t===o?u=(r-n)/s:r===o?u=2+(n-t)/s:n===o&&(u=4+(t-r)/s),u=Math.min(u*60,360),u<0&&(u+=360);let l=(i+o)/2;return o===i?c=0:l<=.5?c=s/(o+i):c=s/(2-o-i),[u,c*100,l*100]};J.rgb.hsv=function(e){let t,r,n,i,o,s=e[0]/255,u=e[1]/255,c=e[2]/255,l=Math.max(s,u,c),a=l-Math.min(s,u,c),f=function(h){return(l-h)/6/a+1/2};return a===0?(i=0,o=0):(o=a/l,t=f(s),r=f(u),n=f(c),s===l?i=n-r:u===l?i=1/3+t-n:c===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]};J.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=J.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};J.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,u=(1-n-i)/(1-i)||0;return[o*100,s*100,u*100,i*100]};function xC(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}J.rgb.keyword=function(e){let t=Bp[e];if(t)return t;let r=1/0,n;for(let i of Object.keys($n)){let o=$n[i],s=xC(e,o);s<r&&(r=s,n=i)}return n};J.keyword.rgb=function(e){return $n[e]};J.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};J.rgb.lab=function(e){let t=J.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),u=200*(n-i);return[o,s,u]};J.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let u=2*n-i,c=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?s=u+(i-u)*6*o:2*o<1?s=i:3*o<2?s=u+(i-u)*(2/3-o)*6:s=u,c[l]=s*255;return c};J.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,u=n===0?2*i/(o+i):2*r/(n+r);return[t,u*100,s*100]};J.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),u=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,s];case 1:return[u,n,s];case 2:return[s,n,c];case 3:return[s,u,n];case 4:return[c,s,n];case 5:return[n,s,u]}};J.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let u=(2-r)*i;return o=r*i,o/=u<=1?u:2-u,o=o||0,s/=2,[t,o*100,s*100]};J.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*t),u=1-n;o=6*t-s,s&1&&(o=1-o);let c=r+o*(u-r),l,a,f;switch(s){default:case 6:case 0:l=u,a=c,f=r;break;case 1:l=c,a=u,f=r;break;case 2:l=r,a=u,f=c;break;case 3:l=r,a=c,f=u;break;case 4:l=c,a=r,f=u;break;case 5:l=u,a=r,f=c;break}return[l*255,a*255,f*255]};J.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,u*255]};J.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};J.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(t-r),s=200*(r-n);return[i,o,s]};J.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;let u=o**3,c=i**3,l=s**3;return o=u>.008856?u:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};J.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[t,s,i]};J.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[t,o,s]};J.rgb.ansi16=function(e,t=null){let[r,n,i]=e,o=t===null?J.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};J.hsv.ansi16=function(e){return J.rgb.ansi16(J.hsv.rgb(e),e[2])};J.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};J.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};J.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};J.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};J.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(u=>u+u).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};J.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o,u,c;return s<1?u=o/(1-s):u=0,s<=0?c=0:i===t?c=(r-n)/s%6:i===r?c=2+(n-t)/s:c=4+(t-r)/s,c/=6,c%=1,[c*360,s*100,u*100]};J.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};J.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};J.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=t%1*6,s=o%1,u=1-s,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};J.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};J.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};J.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};J.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};J.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};J.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};J.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};J.gray.hsl=function(e){return[0,0,e[0]]};J.gray.hsv=J.gray.hsl;J.gray.hwb=function(e){return[0,100,e[0]]};J.gray.cmyk=function(e){return[0,0,0,e[0]]};J.gray.lab=function(e){return[e[0],0,0]};J.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};J.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Rp=T((gR,Ip)=>{var co=_u();function wC(){let e={},t=Object.keys(co);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function AC(e){let t=wC(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(co[n]);for(let o=i.length,s=0;s<o;s++){let u=i[s],c=t[u];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(u))}}return t}function SC(e,t){return function(r){return t(e(r))}}function OC(e,t){let r=[t[e].parent,e],n=co[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=SC(co[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Ip.exports=function(e){let t=AC(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){let s=n[o];t[s].parent!==null&&(r[s]=OC(s,t))}return r}});var Np=T((ER,Pp)=>{var xu=_u(),BC=Rp(),Xr={},TC=Object.keys(xu);function IC(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function RC(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}TC.forEach(e=>{Xr[e]={},Object.defineProperty(Xr[e],"channels",{value:xu[e].channels}),Object.defineProperty(Xr[e],"labels",{value:xu[e].labels});let t=BC(e);Object.keys(t).forEach(n=>{let i=t[n];Xr[e][n]=RC(i),Xr[e][n].raw=IC(i)})});Pp.exports=Xr});var Up=T((FR,kp)=>{"use strict";var Lp=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,jp=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Mp=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},fo=e=>e,$p=(e,t,r)=>[e,t,r],Jr=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},wu,Qr=(e,t,r,n)=>{wu===void 0&&(wu=Np());let i=n?10:0,o={};for(let[s,u]of Object.entries(wu)){let c=s==="ansi16"?"ansi":s;s===t?o[c]=e(r,i):typeof u=="object"&&(o[c]=e(u[t],i))}return o};function PC(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Jr(t.color,"ansi",()=>Qr(Lp,"ansi16",fo,!1)),Jr(t.color,"ansi256",()=>Qr(jp,"ansi256",fo,!1)),Jr(t.color,"ansi16m",()=>Qr(Mp,"rgb",$p,!1)),Jr(t.bgColor,"ansi",()=>Qr(Lp,"ansi16",fo,!0)),Jr(t.bgColor,"ansi256",()=>Qr(jp,"ansi256",fo,!0)),Jr(t.bgColor,"ansi16m",()=>Qr(Mp,"rgb",$p,!0)),t}Object.defineProperty(kp,"exports",{enumerable:!0,get:PC})});var Gp=T((CR,qp)=>{"use strict";var NC=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.substr(o),s},LC=(e,t,r,n)=>{let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r `:` `)+r,i=n+1,n=e.indexOf(` `,i)}while(n!==-1);return o+=e.substr(i),o};qp.exports={stringReplaceAll:NC,stringEncaseCRLFWithFirstIndex:LC}});var zp=T((bR,Yp)=>{"use strict";var jC=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Vp=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,MC=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,$C=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,kC=new Map([["n",` `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Hp(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):kC.get(e)||e}function UC(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n){let s=Number(o);if(!Number.isNaN(s))r.push(s);else if(i=o.match(MC))r.push(i[2].replace($C,(u,c,l)=>c?Hp(c):l));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return r}function qC(e){Vp.lastIndex=0;let t=[],r;for(;(r=Vp.exec(e))!==null;){let n=r[1];if(r[2]){let i=UC(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Wp(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let[i,o]of Object.entries(r))if(Array.isArray(o)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=o.length>0?n[i](...o):n[i]}return n}Yp.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(jC,(o,s,u,c,l,a)=>{if(s)i.push(Hp(s));else if(c){let f=i.join("");i=[],n.push(r.length===0?f:Wp(e,r)(f)),r.push({inverse:u,styles:qC(c)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Wp(e,r)(i.join(""))),i=[],r.pop()}else i.push(a)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var th=T((yR,eh)=>{"use strict";var kn=Up(),{stdout:Su,stderr:Ou}=qs(),{stringReplaceAll:GC,stringEncaseCRLFWithFirstIndex:VC}=Gp(),{isArray:po}=Array,Xp=["ansi","ansi","ansi256","ansi16m"],Zr=Object.create(null),WC=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Su?Su.level:0;e.level=t.level===void 0?r:t.level},Bu=class{constructor(t){return Jp(t)}},Jp=e=>{let t={};return WC(t,e),t.template=(...r)=>Zp(t.template,...r),Object.setPrototypeOf(t,ho.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Bu,t.template};function ho(e){return Jp(e)}for(let[e,t]of Object.entries(kn))Zr[e]={get(){let r=Do(this,Tu(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Zr.visible={get(){let e=Do(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Qp=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Qp)Zr[e]={get(){let{level:t}=this;return function(...r){let n=Tu(kn.color[Xp[t]][e](...r),kn.color.close,this._styler);return Do(this,n,this._isEmpty)}}};for(let e of Qp){let t="bg"+e[0].toUpperCase()+e.slice(1);Zr[t]={get(){let{level:r}=this;return function(...n){let i=Tu(kn.bgColor[Xp[r]][e](...n),kn.bgColor.close,this._styler);return Do(this,i,this._isEmpty)}}}}var HC=Object.defineProperties(()=>{},{...Zr,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Tu=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Do=(e,t,r)=>{let n=(...i)=>po(i[0])&&po(i[0].raw)?Kp(n,Zp(n,...i)):Kp(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,HC),n._generator=e,n._styler=t,n._isEmpty=r,n},Kp=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=GC(t,r.close,r.open),r=r.parent;let o=t.indexOf(` `);return o!==-1&&(t=VC(t,i,n,o)),n+t+i},Au,Zp=(e,...t)=>{let[r]=t;if(!po(r)||!po(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let o=1;o<r.length;o++)i.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[o]));return Au===void 0&&(Au=zp()),Au(e,i.join(""))};Object.defineProperties(ho.prototype,Zr);var mo=ho();mo.supportsColor=Su;mo.stderr=ho({level:Ou?Ou.level:0});mo.stderr.supportsColor=Ou;eh.exports=mo});var rh=T((Iu,Ru)=>{(function(e,t){typeof Iu=="object"&&typeof Ru<"u"?Ru.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(Iu,function(){"use strict";function e(D){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},e(D)}var t=/^\s+/,r=/\s+$/;function n(D,g){if(D=D||"",g=g||{},D instanceof n)return D;if(!(this instanceof n))return new n(D,g);var m=i(D);this._originalInput=D,this._r=m.r,this._g=m.g,this._b=m.b,this._a=m.a,this._roundA=Math.round(100*this._a)/100,this._format=g.format||m.format,this._gradientType=g.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=m.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var g=this.toRgb();return(g.r*299+g.g*587+g.b*114)/1e3},getLuminance:function(){var g=this.toRgb(),m,_,P,I,se,ae;return m=g.r/255,_=g.g/255,P=g.b/255,m<=.03928?I=m/12.92:I=Math.pow((m+.055)/1.055,2.4),_<=.03928?se=_/12.92:se=Math.pow((_+.055)/1.055,2.4),P<=.03928?ae=P/12.92:ae=Math.pow((P+.055)/1.055,2.4),.2126*I+.7152*se+.0722*ae},setAlpha:function(g){return this._a=B(g),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var g=c(this._r,this._g,this._b);return{h:g.h*360,s:g.s,v:g.v,a:this._a}},toHsvString:function(){var g=c(this._r,this._g,this._b),m=Math.round(g.h*360),_=Math.round(g.s*100),P=Math.round(g.v*100);return this._a==1?"hsv("+m+", "+_+"%, "+P+"%)":"hsva("+m+", "+_+"%, "+P+"%, "+this._roundA+")"},toHsl:function(){var g=s(this._r,this._g,this._b);return{h:g.h*360,s:g.s,l:g.l,a:this._a}},toHslString:function(){var g=s(this._r,this._g,this._b),m=Math.round(g.h*360),_=Math.round(g.s*100),P=Math.round(g.l*100);return this._a==1?"hsl("+m+", "+_+"%, "+P+"%)":"hsla("+m+", "+_+"%, "+P+"%, "+this._roundA+")"},toHex:function(g){return a(this._r,this._g,this._b,g)},toHexString:function(g){return"#"+this.toHex(g)},toHex8:function(g){return f(this._r,this._g,this._b,this._a,g)},toHex8String:function(g){return"#"+this.toHex8(g)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(w(this._r,255)*100)+"%",g:Math.round(w(this._g,255)*100)+"%",b:Math.round(w(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(w(this._r,255)*100)+"%, "+Math.round(w(this._g,255)*100)+"%, "+Math.round(w(this._b,255)*100)+"%)":"rgba("+Math.round(w(this._r,255)*100)+"%, "+Math.round(w(this._g,255)*100)+"%, "+Math.round(w(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:R[a(this._r,this._g,this._b,!0)]||!1},toFilter:function(g){var m="#"+h(this._r,this._g,this._b,this._a),_=m,P=this._gradientType?"GradientType = 1, ":"";if(g){var I=n(g);_="#"+h(I._r,I._g,I._b,I._a)}return"progid:DXImageTransform.Microsoft.gradient("+P+"startColorstr="+m+",endColorstr="+_+")"},toString:function(g){var m=!!g;g=g||this._format;var _=!1,P=this._a<1&&this._a>=0,I=!m&&P&&(g==="hex"||g==="hex6"||g==="hex3"||g==="hex4"||g==="hex8"||g==="name");return I?g==="name"&&this._a===0?this.toName():this.toRgbString():(g==="rgb"&&(_=this.toRgbString()),g==="prgb"&&(_=this.toPercentageRgbString()),(g==="hex"||g==="hex6")&&(_=this.toHexString()),g==="hex3"&&(_=this.toHexString(!0)),g==="hex4"&&(_=this.toHex8String(!0)),g==="hex8"&&(_=this.toHex8String()),g==="name"&&(_=this.toName()),g==="hsl"&&(_=this.toHslString()),g==="hsv"&&(_=this.toHsvString()),_||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(g,m){var _=g.apply(null,[this].concat([].slice.call(m)));return this._r=_._r,this._g=_._g,this._b=_._b,this.setAlpha(_._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(U,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(C,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(g,m){return g.apply(null,[this].concat([].slice.call(m)))},analogous:function(){return this._applyCombination(ne,arguments)},complement:function(){return this._applyCombination($,arguments)},monochromatic:function(){return this._applyCombination(Se,arguments)},splitcomplement:function(){return this._applyCombination(ge,arguments)},triad:function(){return this._applyCombination(Z,[3])},tetrad:function(){return this._applyCombination(Z,[4])}},n.fromRatio=function(D,g){if(e(D)=="object"){var m={};for(var _ in D)D.hasOwnProperty(_)&&(_==="a"?m[_]=D[_]:m[_]=K(D[_]));D=m}return n(D,g)};function i(D){var g={r:0,g:0,b:0},m=1,_=null,P=null,I=null,se=!1,ae=!1;return typeof D=="string"&&(D=te(D)),e(D)=="object"&&(ke(D.r)&&ke(D.g)&&ke(D.b)?(g=o(D.r,D.g,D.b),se=!0,ae=String(D.r).substr(-1)==="%"?"prgb":"rgb"):ke(D.h)&&ke(D.s)&&ke(D.v)?(_=K(D.s),P=K(D.v),g=l(D.h,_,P),se=!0,ae="hsv"):ke(D.h)&&ke(D.s)&&ke(D.l)&&(_=K(D.s),I=K(D.l),g=u(D.h,_,I),se=!0,ae="hsl"),D.hasOwnProperty("a")&&(m=D.a)),m=B(m),{ok:se,format:D.format||ae,r:Math.min(255,Math.max(g.r,0)),g:Math.min(255,Math.max(g.g,0)),b:Math.min(255,Math.max(g.b,0)),a:m}}function o(D,g,m){return{r:w(D,255)*255,g:w(g,255)*255,b:w(m,255)*255}}function s(D,g,m){D=w(D,255),g=w(g,255),m=w(m,255);var _=Math.max(D,g,m),P=Math.min(D,g,m),I,se,ae=(_+P)/2;if(_==P)I=se=0;else{var Ee=_-P;switch(se=ae>.5?Ee/(2-_-P):Ee/(_+P),_){case D:I=(g-m)/Ee+(g<m?6:0);break;case g:I=(m-D)/Ee+2;break;case m:I=(D-g)/Ee+4;break}I/=6}return{h:I,s:se,l:ae}}function u(D,g,m){var _,P,I;D=w(D,360),g=w(g,100),m=w(m,100);function se(F,b,N){return N<0&&(N+=1),N>1&&(N-=1),N<1/6?F+(b-F)*6*N:N<1/2?b:N<2/3?F+(b-F)*(2/3-N)*6:F}if(g===0)_=P=I=m;else{var ae=m<.5?m*(1+g):m+g-m*g,Ee=2*m-ae;_=se(Ee,ae,D+1/3),P=se(Ee,ae,D),I=se(Ee,ae,D-1/3)}return{r:_*255,g:P*255,b:I*255}}function c(D,g,m){D=w(D,255),g=w(g,255),m=w(m,255);var _=Math.max(D,g,m),P=Math.min(D,g,m),I,se,ae=_,Ee=_-P;if(se=_===0?0:Ee/_,_==P)I=0;else{switch(_){case D:I=(g-m)/Ee+(g<m?6:0);break;case g:I=(m-D)/Ee+2;break;case m:I=(D-g)/Ee+4;break}I/=6}return{h:I,s:se,v:ae}}function l(D,g,m){D=w(D,360)*6,g=w(g,100),m=w(m,100);var _=Math.floor(D),P=D-_,I=m*(1-g),se=m*(1-P*g),ae=m*(1-(1-P)*g),Ee=_%6,F=[m,se,I,I,ae,m][Ee],b=[ae,m,m,se,I,I][Ee],N=[I,I,ae,m,m,se][Ee];return{r:F*255,g:b*255,b:N*255}}function a(D,g,m,_){var P=[H(Math.round(D).toString(16)),H(Math.round(g).toString(16)),H(Math.round(m).toString(16))];return _&&P[0].charAt(0)==P[0].charAt(1)&&P[1].charAt(0)==P[1].charAt(1)&&P[2].charAt(0)==P[2].charAt(1)?P[0].charAt(0)+P[1].charAt(0)+P[2].charAt(0):P.join("")}function f(D,g,m,_,P){var I=[H(Math.round(D).toString(16)),H(Math.round(g).toString(16)),H(Math.round(m).toString(16)),H(he(_))];return P&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)&&I[3].charAt(0)==I[3].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0)+I[3].charAt(0):I.join("")}function h(D,g,m,_){var P=[H(he(_)),H(Math.round(D).toString(16)),H(Math.round(g).toString(16)),H(Math.round(m).toString(16))];return P.join("")}n.equals=function(D,g){return!D||!g?!1:n(D).toRgbString()==n(g).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function p(D,g){g=g===0?0:g||10;var m=n(D).toHsl();return m.s-=g/100,m.s=M(m.s),n(m)}function C(D,g){g=g===0?0:g||10;var m=n(D).toHsl();return m.s+=g/100,m.s=M(m.s),n(m)}function y(D){return n(D).desaturate(100)}function E(D,g){g=g===0?0:g||10;var m=n(D).toHsl();return m.l+=g/100,m.l=M(m.l),n(m)}function O(D,g){g=g===0?0:g||10;var m=n(D).toRgb();return m.r=Math.max(0,Math.min(255,m.r-Math.round(255*-(g/100)))),m.g=Math.max(0,Math.min(255,m.g-Math.round(255*-(g/100)))),m.b=Math.max(0,Math.min(255,m.b-Math.round(255*-(g/100)))),n(m)}function U(D,g){g=g===0?0:g||10;var m=n(D).toHsl();return m.l-=g/100,m.l=M(m.l),n(m)}function k(D,g){var m=n(D).toHsl(),_=(m.h+g)%360;return m.h=_<0?360+_:_,n(m)}function $(D){var g=n(D).toHsl();return g.h=(g.h+180)%360,n(g)}function Z(D,g){if(isNaN(g)||g<=0)throw new Error("Argument to polyad must be a positive number");for(var m=n(D).toHsl(),_=[n(D)],P=360/g,I=1;I<g;I++)_.push(n({h:(m.h+I*P)%360,s:m.s,l:m.l}));return _}function ge(D){var g=n(D).toHsl(),m=g.h;return[n(D),n({h:(m+72)%360,s:g.s,l:g.l}),n({h:(m+216)%360,s:g.s,l:g.l})]}function ne(D,g,m){g=g||6,m=m||30;var _=n(D).toHsl(),P=360/m,I=[n(D)];for(_.h=(_.h-(P*g>>1)+720)%360;--g;)_.h=(_.h+P)%360,I.push(n(_));return I}function Se(D,g){g=g||6;for(var m=n(D).toHsv(),_=m.h,P=m.s,I=m.v,se=[],ae=1/g;g--;)se.push(n({h:_,s:P,v:I})),I=(I+ae)%1;return se}n.mix=function(D,g,m){m=m===0?0:m||50;var _=n(D).toRgb(),P=n(g).toRgb(),I=m/100,se={r:(P.r-_.r)*I+_.r,g:(P.g-_.g)*I+_.g,b:(P.b-_.b)*I+_.b,a:(P.a-_.a)*I+_.a};return n(se)},n.readability=function(D,g){var m=n(D),_=n(g);return(Math.max(m.getLuminance(),_.getLuminance())+.05)/(Math.min(m.getLuminance(),_.getLuminance())+.05)},n.isReadable=function(D,g,m){var _=n.readability(D,g),P,I;switch(I=!1,P=gn(m),P.level+P.size){case"AAsmall":case"AAAlarge":I=_>=4.5;break;case"AAlarge":I=_>=3;break;case"AAAsmall":I=_>=7;break}return I},n.mostReadable=function(D,g,m){var _=null,P=0,I,se,ae,Ee;m=m||{},se=m.includeFallbackColors,ae=m.level,Ee=m.size;for(var F=0;F<g.length;F++)I=n.readability(D,g[F]),I>P&&(P=I,_=n(g[F]));return n.isReadable(D,_,{level:ae,size:Ee})||!se?_:(m.includeFallbackColors=!1,n.mostReadable(D,["#fff","#000"],m))};var S=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=n.hexNames=x(S);function x(D){var g={};for(var m in D)D.hasOwnProperty(m)&&(g[D[m]]=m);return g}function B(D){return D=parseFloat(D),(isNaN(D)||D<0||D>1)&&(D=1),D}function w(D,g){W(D)&&(D="100%");var m=j(D);return D=Math.min(g,Math.max(0,parseFloat(D))),m&&(D=parseInt(D*g,10)/100),Math.abs(D-g)<1e-6?1:D%g/parseFloat(g)}function M(D){return Math.min(1,Math.max(0,D))}function L(D){return parseInt(D,16)}function W(D){return typeof D=="string"&&D.indexOf(".")!=-1&&parseFloat(D)===1}function j(D){return typeof D=="string"&&D.indexOf("%")!=-1}function H(D){return D.length==1?"0"+D:""+D}function K(D){return D<=1&&(D=D*100+"%"),D}function he(D){return Math.round(parseFloat(D)*255).toString(16)}function at(D){return L(D)/255}var Te=function(){var D="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",m="(?:"+g+")|(?:"+D+")",_="[\\s|\\(]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")\\s*\\)?",P="[\\s|\\(]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")\\s*\\)?";return{CSS_UNIT:new RegExp(m),rgb:new RegExp("rgb"+_),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+_),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+_),hsva:new RegExp("hsva"+P),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ke(D){return!!Te.CSS_UNIT.exec(D)}function te(D){D=D.replace(t,"").replace(r,"").toLowerCase();var g=!1;if(S[D])D=S[D],g=!0;else if(D=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var m;return(m=Te.rgb.exec(D))?{r:m[1],g:m[2],b:m[3]}:(m=Te.rgba.exec(D))?{r:m[1],g:m[2],b:m[3],a:m[4]}:(m=Te.hsl.exec(D))?{h:m[1],s:m[2],l:m[3]}:(m=Te.hsla.exec(D))?{h:m[1],s:m[2],l:m[3],a:m[4]}:(m=Te.hsv.exec(D))?{h:m[1],s:m[2],v:m[3]}:(m=Te.hsva.exec(D))?{h:m[1],s:m[2],v:m[3],a:m[4]}:(m=Te.hex8.exec(D))?{r:L(m[1]),g:L(m[2]),b:L(m[3]),a:at(m[4]),format:g?"name":"hex8"}:(m=Te.hex6.exec(D))?{r:L(m[1]),g:L(m[2]),b:L(m[3]),format:g?"name":"hex"}:(m=Te.hex4.exec(D))?{r:L(m[1]+""+m[1]),g:L(m[2]+""+m[2]),b:L(m[3]+""+m[3]),a:at(m[4]+""+m[4]),format:g?"name":"hex8"}:(m=Te.hex3.exec(D))?{r:L(m[1]+""+m[1]),g:L(m[2]+""+m[2]),b:L(m[3]+""+m[3]),format:g?"name":"hex"}:!1}function gn(D){var g,m;return D=D||{level:"AA",size:"small"},g=(D.level||"AA").toUpperCase(),m=(D.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),m!=="small"&&m!=="large"&&(m="small"),{level:g,size:m}}return n})});var lh=T((vR,ah)=>{var Un=rh(),sh={r:256,g:256,b:256,a:1},uh={h:360,s:1,v:1,a:1};function Lu(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function ju(e,t,r,n){let i={};for(let o in t)t.hasOwnProperty(o)&&(i[o]=e[o]*r+t[o],i[o]=i[o]<0?i[o]+n[o]:n[o]!==1?i[o]%n[o]:i[o]);return i}function Pu(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),o=Lu(n,i,r),s=[e.color];for(let u=1;u<r;u++){let c=ju(o,n,u,sh);s.push(Un(c))}return s}function nh(e,t,r,n){let i=e.color.toHsv(),o=t.color.toHsv();if(i.s===0||o.s===0)return Pu(e,t,r);let s;if(typeof n=="boolean")s=n;else{let a=i.h<o.h&&o.h-i.h<180||i.h>o.h&&i.h-o.h>180;s=n==="long"&&a||n==="short"&&!a}let u=Lu(i,o,r),c=[e.color],l;i.h<=o.h&&!s||i.h>=o.h&&s?l=o.h-i.h:s?l=360-o.h+i.h:l=360-i.h+o.h,u.h=Math.pow(-1,s?1:0)*Math.abs(l)/r;for(let a=1;a<r;a++){let f=ju(u,i,a,uh);c.push(Un(f))}return c}function ih(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let o=1;o<r;o++){let s=(t-1)*(e[o].pos-e[o-1].pos);n.push(Math.max(1,Math.round(s)))}let i=1;for(let o=r-1;o--;)i+=n[o];for(;i!==t;)if(i<t){let o=Math.min.apply(null,n);n[n.indexOf(o)]++,i++}else{let o=Math.max.apply(null,n);n[n.indexOf(o)]--,i--}return n}function oh(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,o;for(let c=0,l=e.length;c<l-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){i=e[c],o=e[c+1];break}i||(i=o=e[e.length-1]);let s=Lu(i.color[r](),o.color[r](),(o.pos-i.pos)*100),u=ju(s,i.color[r](),(t-i.pos)*100,n);return Un(u)}var Nu=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,o=!1;this.stops=t.map((s,u)=>{let c=s.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let l=s.color!==void 0;if(!l&&(o||u===0||u===n-1))throw new Error("Cannot define two consecutive position-only stops");if(o=!l,s={color:l?Un(s.color):null,colorLess:!l,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<i)throw new Error("Color stops positions are not ordered");i=s.pos}else s={color:Un(s.color!==void 0?s.color:s),pos:u/(n-1)};return s}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new e(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new e(t.concat(r.reverse()))}rgb(t){let r=ih(this.stops,t),n=[];this.stops.forEach((i,o)=>{i.colorLess&&(i.color=Pu(this.stops[o-1],this.stops[o+1],2)[1])});for(let i=0,o=this.stops.length;i<o-1;i++){let s=Pu(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=ih(this.stops,t),i=[];this.stops.forEach((o,s)=>{o.colorLess&&(o.color=nh(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let o=0,s=this.stops.length;o<s-1;o++){let u=nh(this.stops[o],this.stops[o+1],n[o],r);i.splice(i.length,0,...u)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return oh(this.stops,t,"toRgb",sh)}hsvAt(t){return oh(this.stops,t,"toHsv",uh)}};ah.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new Nu(e)}});var dh=T((_R,go)=>{"use strict";var fh=th(),YC=lh(),ch=/\s/g;function Mu(...e){let t=YC.apply(this,e),r=(n,i)=>zC(n?n.toString():"",t,i);return r.multiline=(n,i)=>KC(n?n.toString():"",t,i),r}var ph=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function zC(e,t,r){let n=hh(r),i=Math.max(e.replace(ch,"").length,t.stops.length),o=ph(t,n,i),s="";for(let u of e)s+=u.match(ch)?u:fh.hex(o.shift().toHex())(u);return s}function KC(e,t,r){let n=hh(r),i=e.split(` `),o=Math.max.apply(null,i.map(c=>c.length).concat([t.stops.length])),s=ph(t,n,o),u=[];for(let c of i){let l=s.slice(0),a="";for(let f of c)a+=fh.hex(l.shift().toHex())(f);u.push(a)}return u.join(` `)}function hh(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var qn={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};go.exports=Mu;for(let e in qn)go.exports[e]=t=>new Mu(qn[e].colors)(t,qn[e].options),go.exports[e].multiline=t=>new Mu(qn[e].colors).multiline(t,qn[e].options)});var Eh=T((MR,gh)=>{var Qt=ie("constants"),nb=process.cwd,Eo=null,ib=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Eo||(Eo=nb.call(process)),Eo};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Gu=process.chdir,process.chdir=function(e){Eo=null,Gu.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Gu));var Gu;gh.exports=ob;function ob(e){Qt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(a,f,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(a,f,h,p){p&&process.nextTick(p)},e.lchownSync=function(){}),ib==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(a){function f(h,p,C){var y=Date.now(),E=0;a(h,p,function O(U){if(U&&(U.code==="EACCES"||U.code==="EPERM"||U.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){e.stat(p,function(k,$){k&&k.code==="ENOENT"?a(h,p,O):C(