@canva/cli
Version:
The official Canva CLI.
11 lines • 1.1 MB
JavaScript
#!/usr/bin/env node
// Copyright 2024 Canva Inc. All Rights Reserved.
import { createRequire } from 'module';const require = createRequire(import.meta.url);
var X_=Object.create;var Ll=Object.defineProperty;var J_=Object.getOwnPropertyDescriptor;var h7=Object.getOwnPropertyNames;var g7=Object.getPrototypeOf,y7=Object.prototype.hasOwnProperty;var Z_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Pl=e=>{throw TypeError(e)};var Q_=(e,t,r)=>t in e?Ll(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var H_=(e,t)=>Ll(e,"name",{value:t,configurable:!0}),V=(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 D7=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),eb=(e,t)=>{for(var r in t)Ll(e,r,{get:t[r],enumerable:!0})},v7=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of h7(t))!y7.call(e,i)&&i!==r&&Ll(e,i,{get:()=>t[i],enumerable:!(n=J_(t,i))||n.enumerable});return e};var mt=(e,t,r)=>(r=e!=null?X_(g7(e)):{},v7(t||!e||!e.__esModule?Ll(r,"default",{value:e,enumerable:!0}):r,e));var no=e=>[,,,X_(e?.[Z_("metadata")]??null)],tb=["class","method","getter","setter","accessor","field","value","get","set"],jf=e=>e!==void 0&&typeof e!="function"?Pl("Function expected"):e,x7=(e,t,r,n,i)=>({kind:tb[e],name:t,metadata:n,addInitializer:o=>r._?Pl("Already initialized"):i.push(jf(o||null))}),Ii=(e,t)=>Q_(t,Z_("metadata"),e[3]),ze=(e,t,r,n)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)t&1?o[i].call(r):n=o[i].call(r,n);return n},Ze=(e,t,r,n,i,o)=>{var s,a,u,l,c,f=t&7,p=!!(t&8),d=!!(t&16),m=f>3?e.length+1:f?p?1:2:0,y=tb[f+5],D=f>3&&(e[m-1]=[]),h=e[m]||(e[m]=[]),g=f&&(!d&&!p&&(i=i.prototype),f<5&&(f>3||!d)&&J_(f<4?i:{get[r](){return K_(this,o)},set[r](x){return Y_(this,o,x)}},r));f?d&&f<4&&H_(o,(f>2?"set ":f>1?"get ":"")+r):H_(i,r);for(var v=n.length-1;v>=0;v--)l=x7(f,r,u={},e[3],h),f&&(l.static=p,l.private=d,c=l.access={has:d?x=>C7(i,x):x=>r in x},f^3&&(c.get=d?x=>(f^1?K_:E7)(x,i,f^4?o:g.get):x=>x[r]),f>2&&(c.set=d?(x,E)=>Y_(x,i,E,f^4?o:g.set):(x,E)=>x[r]=E)),a=(0,n[v])(f?f<4?d?o:g[y]:f>4?void 0:{get:g.get,set:g.set}:i,l),u._=1,f^4||a===void 0?jf(a)&&(f>4?D.unshift(a):f?d?o=a:g[y]=a:i=a):typeof a!="object"||a===null?Pl("Object expected"):(jf(s=a.get)&&(g.get=s),jf(s=a.set)&&(g.set=s),jf(s=a.init)&&D.unshift(s));return f||Ii(e,i),g&&Ll(i,r,g),d?f^4?o:g:i},Xa=(e,t,r)=>Q_(e,typeof t!="symbol"?t+"":t,r),Dv=(e,t,r)=>t.has(e)||Pl("Cannot "+r),C7=(e,t)=>Object(t)!==t?Pl('Cannot use the "in" operator on this value'):e.has(t),K_=(e,t,r)=>(Dv(e,t,"read from private field"),r?r.call(e):t.get(e)),Gr=(e,t,r)=>t.has(e)?Pl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Y_=(e,t,r,n)=>(Dv(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),E7=(e,t,r)=>(Dv(e,t,"access private method"),r);var vv=O((Jde,ib)=>{"use strict";ib.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 Ev=O((Zde,sb)=>{"use strict";var S7=V("os"),ob=V("tty"),Hn=vv(),{env:fr}=process,bs;Hn("no-color")||Hn("no-colors")||Hn("color=false")||Hn("color=never")?bs=0:(Hn("color")||Hn("colors")||Hn("color=true")||Hn("color=always"))&&(bs=1);"FORCE_COLOR"in fr&&(fr.FORCE_COLOR==="true"?bs=1:fr.FORCE_COLOR==="false"?bs=0:bs=fr.FORCE_COLOR.length===0?1:Math.min(parseInt(fr.FORCE_COLOR,10),3));function xv(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Cv(e,t){if(bs===0)return 0;if(Hn("color=16m")||Hn("color=full")||Hn("color=truecolor"))return 3;if(Hn("color=256"))return 2;if(e&&!t&&bs===void 0)return 0;let r=bs||0;if(fr.TERM==="dumb")return r;if(process.platform==="win32"){let n=S7.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in fr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in fr)||fr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in fr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(fr.TEAMCITY_VERSION)?1:0;if(fr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in fr){let n=parseInt((fr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(fr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(fr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(fr.TERM)||"COLORTERM"in fr?1:r}function w7(e){let t=Cv(e,e&&e.isTTY);return xv(t)}sb.exports={supportsColor:w7,stdout:xv(Cv(!0,ob.isatty(1))),stderr:xv(Cv(!0,ob.isatty(2)))}});var lb=O((Qde,ub)=>{"use strict";var _7=Ev(),kl=vv();function ab(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 Sv(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(kl("no-hyperlink")||kl("no-hyperlinks")||kl("hyperlink=false")||kl("hyperlink=never"))return!1;if(kl("hyperlink=true")||kl("hyperlink=always")||"NETLIFY"in t)return!0;if(!_7.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=ab(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=ab(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}ub.exports={supportsHyperlink:Sv,stdout:Sv(process.stdout),stderr:Sv(process.stderr)}});var bb=O((Bme,_b)=>{"use strict";var N7=function(t){return k7(t)&&!R7(t)};function k7(e){return!!e&&typeof e=="object"}function R7(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||j7(e)}var M7=typeof Symbol=="function"&&Symbol.for,B7=M7?Symbol.for("react.element"):60103;function j7(e){return e.$$typeof===B7}function V7(e){return Array.isArray(e)?[]:{}}function Gf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ml(V7(e),e,t):e}function U7(e,t,r){return e.concat(t).map(function(n){return Gf(n,r)})}function $7(e,t){if(!t.customMerge)return Ml;var r=t.customMerge(e);return typeof r=="function"?r:Ml}function G7(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Sb(e){return Object.keys(e).concat(G7(e))}function wb(e,t){try{return t in e}catch{return!1}}function W7(e,t){return wb(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function z7(e,t,r){var n={};return r.isMergeableObject(e)&&Sb(e).forEach(function(i){n[i]=Gf(e[i],r)}),Sb(t).forEach(function(i){W7(e,i)||(wb(e,i)&&r.isMergeableObject(t[i])?n[i]=$7(i,r)(e[i],t[i],r):n[i]=Gf(t[i],r))}),n}function Ml(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||U7,r.isMergeableObject=r.isMergeableObject||N7,r.cloneUnlessOtherwiseSpecified=Gf;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):z7(e,t,r):Gf(t,r)}Ml.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Ml(n,i,r)},{})};var q7=Ml;_b.exports=q7});var wA={};eb(wA,{default:()=>SA});async function SA(e=500){await new Promise(t=>setTimeout(t,e))}var _A=D7(()=>{"use strict"});var PA=O((mve,LA)=>{"use strict";var IG="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";LA.exports=IG});var MA=O((hve,RA)=>{"use strict";var FG=PA();function NA(){}function kA(){}kA.resetWarningCache=NA;RA.exports=function(){function e(n,i,o,s,a,u){if(u!==FG){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:kA,resetWarningCache:NA};return r.PropTypes=r,r}});var jA=O((Dve,BA)=>{BA.exports=MA()();var gve,yve});var UA=O((vve,VA)=>{"use strict";VA.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 Gv=O((xve,GA)=>{var Zf=UA(),$A={};for(let e of Object.keys(Zf))$A[Zf[e]]=e;var Ce={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"]}};GA.exports=Ce;for(let e of Object.keys(Ce)){if(!("channels"in Ce[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ce[e]))throw new Error("missing channel labels property: "+e);if(Ce[e].labels.length!==Ce[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=Ce[e];delete Ce[e].channels,delete Ce[e].labels,Object.defineProperty(Ce[e],"channels",{value:t}),Object.defineProperty(Ce[e],"labels",{value:r})}Ce.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,a,u;o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+o)/2;return o===i?u=0:l<=.5?u=s/(o+i):u=s/(2-o-i),[a,u*100,l*100]};Ce.rgb.hsv=function(e){let t,r,n,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),f=function(p){return(l-p)/6/c+1/2};return c===0?(i=0,o=0):(o=c/l,t=f(s),r=f(a),n=f(u),s===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]};Ce.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=Ce.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]};Ce.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,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function TG(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Ce.rgb.keyword=function(e){let t=$A[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Zf)){let o=Zf[i],s=TG(e,o);s<r&&(r=s,n=i)}return n};Ce.keyword.rgb=function(e){return Zf[e]};Ce.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]};Ce.rgb.lab=function(e){let t=Ce.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),a=200*(n-i);return[o,s,a]};Ce.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 a=2*n-i,u=[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=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,u[l]=s*255;return u};Ce.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,a=n===0?2*i/(o+i):2*r/(n+r);return[t,a*100,s*100]};Ce.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),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};Ce.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 a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,o*100,s*100]};Ce.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),a=1-n;o=6*t-s,(s&1)!==0&&(o=1-o);let u=r+o*(a-r),l,c,f;switch(s){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};Ce.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),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};Ce.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]};Ce.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]};Ce.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 a=o**3,u=i**3,l=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(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]};Ce.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]};Ce.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]};Ce.rgb.ansi16=function(e,t=null){let[r,n,i]=e,o=t===null?Ce.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};Ce.hsv.ansi16=function(e){return Ce.rgb.ansi16(Ce.hsv.rgb(e),e[2])};Ce.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)};Ce.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]};Ce.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]};Ce.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};Ce.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(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};Ce.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,a,u;return s<1?a=o/(1-s):a=0,s<=0?u=0:i===t?u=(r-n)/s%6:i===r?u=2+(n-t)/s:u=4+(t-r)/s,u/=6,u%=1,[u*360,s*100,a*100]};Ce.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]};Ce.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]};Ce.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,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,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]=a,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]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};Ce.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]};Ce.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]};Ce.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]};Ce.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]};Ce.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Ce.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Ce.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Ce.gray.hsl=function(e){return[0,0,e[0]]};Ce.gray.hsv=Ce.gray.hsl;Ce.gray.hwb=function(e){return[0,100,e[0]]};Ce.gray.cmyk=function(e){return[0,0,0,e[0]]};Ce.gray.lab=function(e){return[e[0],0,0]};Ce.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};Ce.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var zA=O((Cve,WA)=>{var th=Gv();function LG(){let e={},t=Object.keys(th);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function PG(e){let t=LG(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(th[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}}return t}function NG(e,t){return function(r){return t(e(r))}}function kG(e,t){let r=[t[e].parent,e],n=th[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=NG(th[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}WA.exports=function(e){let t=PG(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]=kG(s,t))}return r}});var HA=O((Eve,qA)=>{var Wv=Gv(),RG=zA(),$l={},MG=Object.keys(Wv);function BG(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 jG(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}MG.forEach(e=>{$l[e]={},Object.defineProperty($l[e],"channels",{value:Wv[e].channels}),Object.defineProperty($l[e],"labels",{value:Wv[e].labels});let t=RG(e);Object.keys(t).forEach(n=>{let i=t[n];$l[e][n]=jG(i),$l[e][n].raw=BG(i)})});qA.exports=$l});var QA=O((Sve,ZA)=>{"use strict";var KA=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,YA=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},XA=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},rh=e=>e,JA=(e,t,r)=>[e,t,r],Gl=(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})},zv,Wl=(e,t,r,n)=>{zv===void 0&&(zv=HA());let i=n?10:0,o={};for(let[s,a]of Object.entries(zv)){let u=s==="ansi16"?"ansi":s;s===t?o[u]=e(r,i):typeof a=="object"&&(o[u]=e(a[t],i))}return o};function VG(){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",Gl(t.color,"ansi",()=>Wl(KA,"ansi16",rh,!1)),Gl(t.color,"ansi256",()=>Wl(YA,"ansi256",rh,!1)),Gl(t.color,"ansi16m",()=>Wl(XA,"rgb",JA,!1)),Gl(t.bgColor,"ansi",()=>Wl(KA,"ansi16",rh,!0)),Gl(t.bgColor,"ansi256",()=>Wl(YA,"ansi256",rh,!0)),Gl(t.bgColor,"ansi16m",()=>Wl(XA,"rgb",JA,!0)),t}Object.defineProperty(ZA,"exports",{enumerable:!0,get:VG})});var tO=O((wve,eO)=>{"use strict";var UG=(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},$G=(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};eO.exports={stringReplaceAll:UG,stringEncaseCRLFWithFirstIndex:$G}});var sO=O((_ve,oO)=>{"use strict";var GG=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,rO=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,WG=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,zG=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,qG=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function iO(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)):qG.get(e)||e}function HG(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(WG))r.push(i[2].replace(zG,(a,u,l)=>u?iO(u):l));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return r}function KG(e){rO.lastIndex=0;let t=[],r;for(;(r=rO.exec(e))!==null;){let n=r[1];if(r[2]){let i=HG(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function nO(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}oO.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(GG,(o,s,a,u,l,c)=>{if(s)i.push(iO(s));else if(u){let f=i.join("");i=[],n.push(r.length===0?f:nO(e,r)(f)),r.push({inverse:a,styles:KG(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(nO(e,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),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 dO=O((bve,pO)=>{"use strict";var Qf=QA(),{stdout:Hv,stderr:Kv}=Ev(),{stringReplaceAll:YG,stringEncaseCRLFWithFirstIndex:XG}=tO(),{isArray:nh}=Array,uO=["ansi","ansi","ansi256","ansi16m"],zl=Object.create(null),JG=(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=Hv?Hv.level:0;e.level=t.level===void 0?r:t.level},Yv=class{constructor(t){return lO(t)}},lO=e=>{let t={};return JG(t,e),t.template=(...r)=>fO(t.template,...r),Object.setPrototypeOf(t,ih.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Yv,t.template};function ih(e){return lO(e)}for(let[e,t]of Object.entries(Qf))zl[e]={get(){let r=oh(this,Xv(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};zl.visible={get(){let e=oh(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var cO=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of cO)zl[e]={get(){let{level:t}=this;return function(...r){let n=Xv(Qf.color[uO[t]][e](...r),Qf.color.close,this._styler);return oh(this,n,this._isEmpty)}}};for(let e of cO){let t="bg"+e[0].toUpperCase()+e.slice(1);zl[t]={get(){let{level:r}=this;return function(...n){let i=Xv(Qf.bgColor[uO[r]][e](...n),Qf.bgColor.close,this._styler);return oh(this,i,this._isEmpty)}}}}var ZG=Object.defineProperties(()=>{},{...zl,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Xv=(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}},oh=(e,t,r)=>{let n=(...i)=>nh(i[0])&&nh(i[0].raw)?aO(n,fO(n,...i)):aO(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ZG),n._generator=e,n._styler=t,n._isEmpty=r,n},aO=(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=YG(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
`);return o!==-1&&(t=XG(t,i,n,o)),n+t+i},qv,fO=(e,...t)=>{let[r]=t;if(!nh(r)||!nh(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 qv===void 0&&(qv=sO()),qv(e,i.join(""))};Object.defineProperties(ih.prototype,zl);var sh=ih();sh.supportsColor=Hv;sh.stderr=ih({level:Kv?Kv.level:0});sh.stderr.supportsColor=Kv;pO.exports=sh});var mO=O((Jv,Zv)=>{(function(e,t){typeof Jv=="object"&&typeof Zv<"u"?Zv.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(Jv,function(){"use strict";function e(S){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},e(S)}var t=/^\s+/,r=/\s+$/;function n(S,_){if(S=S||"",_=_||{},S instanceof n)return S;if(!(this instanceof n))return new n(S,_);var w=i(S);this._originalInput=S,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=Math.round(100*this._a)/100,this._format=_.format||w.format,this._gradientType=_.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=w.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 _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),w,R,Y,H,Ve,Ye;return w=_.r/255,R=_.g/255,Y=_.b/255,w<=.03928?H=w/12.92:H=Math.pow((w+.055)/1.055,2.4),R<=.03928?Ve=R/12.92:Ve=Math.pow((R+.055)/1.055,2.4),Y<=.03928?Ye=Y/12.92:Ye=Math.pow((Y+.055)/1.055,2.4),.2126*H+.7152*Ve+.0722*Ye},setAlpha:function(_){return this._a=M(_),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var _=u(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=u(this._r,this._g,this._b),w=Math.round(_.h*360),R=Math.round(_.s*100),Y=Math.round(_.v*100);return this._a==1?"hsv("+w+", "+R+"%, "+Y+"%)":"hsva("+w+", "+R+"%, "+Y+"%, "+this._roundA+")"},toHsl:function(){var _=s(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=s(this._r,this._g,this._b),w=Math.round(_.h*360),R=Math.round(_.s*100),Y=Math.round(_.l*100);return this._a==1?"hsl("+w+", "+R+"%, "+Y+"%)":"hsla("+w+", "+R+"%, "+Y+"%, "+this._roundA+")"},toHex:function(_){return c(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return f(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},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(k(this._r,255)*100)+"%",g:Math.round(k(this._g,255)*100)+"%",b:Math.round(k(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(k(this._r,255)*100)+"%, "+Math.round(k(this._g,255)*100)+"%, "+Math.round(k(this._b,255)*100)+"%)":"rgba("+Math.round(k(this._r,255)*100)+"%, "+Math.round(k(this._g,255)*100)+"%, "+Math.round(k(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:T[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var w="#"+p(this._r,this._g,this._b,this._a),R=w,Y=this._gradientType?"GradientType = 1, ":"";if(_){var H=n(_);R="#"+p(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+Y+"startColorstr="+w+",endColorstr="+R+")"},toString:function(_){var w=!!_;_=_||this._format;var R=!1,Y=this._a<1&&this._a>=0,H=!w&&Y&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return H?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(R=this.toRgbString()),_==="prgb"&&(R=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(R=this.toHexString()),_==="hex3"&&(R=this.toHexString(!0)),_==="hex4"&&(R=this.toHex8String(!0)),_==="hex8"&&(R=this.toHex8String()),_==="name"&&(R=this.toName()),_==="hsl"&&(R=this.toHslString()),_==="hsv"&&(R=this.toHsvString()),R||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(_,w){var R=_.apply(null,[this].concat([].slice.call(w)));return this._r=R._r,this._g=R._g,this._b=R._b,this.setAlpha(R._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(_,w){return _.apply(null,[this].concat([].slice.call(w)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(G,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(E,[3])},tetrad:function(){return this._applyCombination(E,[4])}},n.fromRatio=function(S,_){if(e(S)=="object"){var w={};for(var R in S)S.hasOwnProperty(R)&&(R==="a"?w[R]=S[R]:w[R]=oe(S[R]));S=w}return n(S,_)};function i(S){var _={r:0,g:0,b:0},w=1,R=null,Y=null,H=null,Ve=!1,Ye=!1;return typeof S=="string"&&(S=Pe(S)),e(S)=="object"&&(Dr(S.r)&&Dr(S.g)&&Dr(S.b)?(_=o(S.r,S.g,S.b),Ve=!0,Ye=String(S.r).substr(-1)==="%"?"prgb":"rgb"):Dr(S.h)&&Dr(S.s)&&Dr(S.v)?(R=oe(S.s),Y=oe(S.v),_=l(S.h,R,Y),Ve=!0,Ye="hsv"):Dr(S.h)&&Dr(S.s)&&Dr(S.l)&&(R=oe(S.s),H=oe(S.l),_=a(S.h,R,H),Ve=!0,Ye="hsl"),S.hasOwnProperty("a")&&(w=S.a)),w=M(w),{ok:Ve,format:S.format||Ye,r:Math.min(255,Math.max(_.r,0)),g:Math.min(255,Math.max(_.g,0)),b:Math.min(255,Math.max(_.b,0)),a:w}}function o(S,_,w){return{r:k(S,255)*255,g:k(_,255)*255,b:k(w,255)*255}}function s(S,_,w){S=k(S,255),_=k(_,255),w=k(w,255);var R=Math.max(S,_,w),Y=Math.min(S,_,w),H,Ve,Ye=(R+Y)/2;if(R==Y)H=Ve=0;else{var Dt=R-Y;switch(Ve=Ye>.5?Dt/(2-R-Y):Dt/(R+Y),R){case S:H=(_-w)/Dt+(_<w?6:0);break;case _:H=(w-S)/Dt+2;break;case w:H=(S-_)/Dt+4;break}H/=6}return{h:H,s:Ve,l:Ye}}function a(S,_,w){var R,Y,H;S=k(S,360),_=k(_,100),w=k(w,100);function Ve(A,P,X){return X<0&&(X+=1),X>1&&(X-=1),X<1/6?A+(P-A)*6*X:X<1/2?P:X<2/3?A+(P-A)*(2/3-X)*6:A}if(_===0)R=Y=H=w;else{var Ye=w<.5?w*(1+_):w+_-w*_,Dt=2*w-Ye;R=Ve(Dt,Ye,S+1/3),Y=Ve(Dt,Ye,S),H=Ve(Dt,Ye,S-1/3)}return{r:R*255,g:Y*255,b:H*255}}function u(S,_,w){S=k(S,255),_=k(_,255),w=k(w,255);var R=Math.max(S,_,w),Y=Math.min(S,_,w),H,Ve,Ye=R,Dt=R-Y;if(Ve=R===0?0:Dt/R,R==Y)H=0;else{switch(R){case S:H=(_-w)/Dt+(_<w?6:0);break;case _:H=(w-S)/Dt+2;break;case w:H=(S-_)/Dt+4;break}H/=6}return{h:H,s:Ve,v:Ye}}function l(S,_,w){S=k(S,360)*6,_=k(_,100),w=k(w,100);var R=Math.floor(S),Y=S-R,H=w*(1-_),Ve=w*(1-Y*_),Ye=w*(1-(1-Y)*_),Dt=R%6,A=[w,Ve,H,H,Ye,w][Dt],P=[Ye,w,w,Ve,H,H][Dt],X=[H,H,Ye,w,w,Ve][Dt];return{r:A*255,g:P*255,b:X*255}}function c(S,_,w,R){var Y=[ie(Math.round(S).toString(16)),ie(Math.round(_).toString(16)),ie(Math.round(w).toString(16))];return R&&Y[0].charAt(0)==Y[0].charAt(1)&&Y[1].charAt(0)==Y[1].charAt(1)&&Y[2].charAt(0)==Y[2].charAt(1)?Y[0].charAt(0)+Y[1].charAt(0)+Y[2].charAt(0):Y.join("")}function f(S,_,w,R,Y){var H=[ie(Math.round(S).toString(16)),ie(Math.round(_).toString(16)),ie(Math.round(w).toString(16)),ie(Ae(R))];return Y&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function p(S,_,w,R){var Y=[ie(Ae(R)),ie(Math.round(S).toString(16)),ie(Math.round(_).toString(16)),ie(Math.round(w).toString(16))];return Y.join("")}n.equals=function(S,_){return!S||!_?!1:n(S).toRgbString()==n(_).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function d(S,_){_=_===0?0:_||10;var w=n(S).toHsl();return w.s-=_/100,w.s=z(w.s),n(w)}function m(S,_){_=_===0?0:_||10;var w=n(S).toHsl();return w.s+=_/100,w.s=z(w.s),n(w)}function y(S){return n(S).desaturate(100)}function D(S,_){_=_===0?0:_||10;var w=n(S).toHsl();return w.l+=_/100,w.l=z(w.l),n(w)}function h(S,_){_=_===0?0:_||10;var w=n(S).toRgb();return w.r=Math.max(0,Math.min(255,w.r-Math.round(255*-(_/100)))),w.g=Math.max(0,Math.min(255,w.g-Math.round(255*-(_/100)))),w.b=Math.max(0,Math.min(255,w.b-Math.round(255*-(_/100)))),n(w)}function g(S,_){_=_===0?0:_||10;var w=n(S).toHsl();return w.l-=_/100,w.l=z(w.l),n(w)}function v(S,_){var w=n(S).toHsl(),R=(w.h+_)%360;return w.h=R<0?360+R:R,n(w)}function x(S){var _=n(S).toHsl();return _.h=(_.h+180)%360,n(_)}function E(S,_){if(isNaN(_)||_<=0)throw new Error("Argument to polyad must be a positive number");for(var w=n(S).toHsl(),R=[n(S)],Y=360/_,H=1;H<_;H++)R.push(n({h:(w.h+H*Y)%360,s:w.s,l:w.l}));return R}function L(S){var _=n(S).toHsl(),w=_.h;return[n(S),n({h:(w+72)%360,s:_.s,l:_.l}),n({h:(w+216)%360,s:_.s,l:_.l})]}function F(S,_,w){_=_||6,w=w||30;var R=n(S).toHsl(),Y=360/w,H=[n(S)];for(R.h=(R.h-(Y*_>>1)+720)%360;--_;)R.h=(R.h+Y)%360,H.push(n(R));return H}function G(S,_){_=_||6;for(var w=n(S).toHsv(),R=w.h,Y=w.s,H=w.v,Ve=[],Ye=1/_;_--;)Ve.push(n({h:R,s:Y,v:H})),H=(H+Ye)%1;return Ve}n.mix=function(S,_,w){w=w===0?0:w||50;var R=n(S).toRgb(),Y=n(_).toRgb(),H=w/100,Ve={r:(Y.r-R.r)*H+R.r,g:(Y.g-R.g)*H+R.g,b:(Y.b-R.b)*H+R.b,a:(Y.a-R.a)*H+R.a};return n(Ve)},n.readability=function(S,_){var w=n(S),R=n(_);return(Math.max(w.getLuminance(),R.getLuminance())+.05)/(Math.min(w.getLuminance(),R.getLuminance())+.05)},n.isReadable=function(S,_,w){var R=n.readability(S,_),Y,H;switch(H=!1,Y=Bf(w),Y.level+Y.size){case"AAsmall":case"AAAlarge":H=R>=4.5;break;case"AAlarge":H=R>=3;break;case"AAAsmall":H=R>=7;break}return H},n.mostReadable=function(S,_,w){var R=null,Y=0,H,Ve,Ye,Dt;w=w||{},Ve=w.includeFallbackColors,Ye=w.level,Dt=w.size;for(var A=0;A<_.length;A++)H=n.readability(S,_[A]),H>Y&&(Y=H,R=n(_[A]));return n.isReadable(S,R,{level:Ye,size:Dt})||!Ve?R:(w.includeFallbackColors=!1,n.mostReadable(S,["#fff","#000"],w))};var b=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"},T=n.hexNames=I(b);function I(S){var _={};for(var w in S)S.hasOwnProperty(w)&&(_[S[w]]=w);return _}function M(S){return S=parseFloat(S),(isNaN(S)||S<0||S>1)&&(S=1),S}function k(S,_){re(S)&&(S="100%");var w=W(S);return S=Math.min(_,Math.max(0,parseFloat(S))),w&&(S=parseInt(S*_,10)/100),Math.abs(S-_)<1e-6?1:S%_/parseFloat(_)}function z(S){return Math.min(1,Math.max(0,S))}function B(S){return parseInt(S,16)}function re(S){return typeof S=="string"&&S.indexOf(".")!=-1&&parseFloat(S)===1}function W(S){return typeof S=="string"&&S.indexOf("%")!=-1}function ie(S){return S.length==1?"0"+S:""+S}function oe(S){return S<=1&&(S=S*100+"%"),S}function Ae(S){return Math.round(parseFloat(S)*255).toString(16)}function He(S){return B(S)/255}var Tt=function(){var S="[-\\+]?\\d+%?",_="[-\\+]?\\d*\\.\\d+%?",w="(?:"+_+")|(?:"+S+")",R="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",Y="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+Y),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+Y),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+Y),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 Dr(S){return!!Tt.CSS_UNIT.exec(S)}function Pe(S){S=S.replace(t,"").replace(r,"").toLowerCase();var _=!1;if(b[S])S=b[S],_=!0;else if(S=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=Tt.rgb.exec(S))?{r:w[1],g:w[2],b:w[3]}:(w=Tt.rgba.exec(S))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=Tt.hsl.exec(S))?{h:w[1],s:w[2],l:w[3]}:(w=Tt.hsla.exec(S))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=Tt.hsv.exec(S))?{h:w[1],s:w[2],v:w[3]}:(w=Tt.hsva.exec(S))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=Tt.hex8.exec(S))?{r:B(w[1]),g:B(w[2]),b:B(w[3]),a:He(w[4]),format:_?"name":"hex8"}:(w=Tt.hex6.exec(S))?{r:B(w[1]),g:B(w[2]),b:B(w[3]),format:_?"name":"hex"}:(w=Tt.hex4.exec(S))?{r:B(w[1]+""+w[1]),g:B(w[2]+""+w[2]),b:B(w[3]+""+w[3]),a:He(w[4]+""+w[4]),format:_?"name":"hex8"}:(w=Tt.hex3.exec(S))?{r:B(w[1]+""+w[1]),g:B(w[2]+""+w[2]),b:B(w[3]+""+w[3]),format:_?"name":"hex"}:!1}function Bf(S){var _,w;return S=S||{level:"AA",size:"small"},_=(S.level||"AA").toUpperCase(),w=(S.size||"small").toLowerCase(),_!=="AA"&&_!=="AAA"&&(_="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:_,size:w}}return n})});var CO=O((Ave,xO)=>{var ep=mO(),DO={r:256,g:256,b:256,a:1},vO={h:360,s:1,v:1,a:1};function t1(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 r1(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 Qv(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),o=t1(n,i,r),s=[e.color];for(let a=1;a<r;a++){let u=r1(o,n,a,DO);s.push(ep(u))}return s}function hO(e,t,r,n){let i=e.color.toHsv(),o=t.color.toHsv();if(i.s===0||o.s===0)return Qv(e,t,r);let s;if(typeof n=="boolean")s=n;else{let c=i.h<o.h&&o.h-i.h<180||i.h>o.h&&i.h-o.h>180;s=n==="long"&&c||n==="short"&&!c}let a=t1(i,o,r),u=[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,a.h=Math.pow(-1,s?1:0)*Math.abs(l)/r;for(let c=1;c<r;c++){let f=r1(a,i,c,vO);u.push(ep(f))}return u}function gO(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 yO(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,o;for(let u=0,l=e.length;u<l-1;u++)if(t>=e[u].pos&&t<e[u+1].pos){i=e[u],o=e[u+1];break}i||(i=o=e[e.length-1]);let s=t1(i.color[r](),o.color[r](),(o.pos-i.pos)*100),a=r1(s,i.color[r](),(t-i.pos)*100,n);return ep(a)}var e1=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,a)=>{let u=s.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let l=s.color!==void 0;if(!l&&(o||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(o=!l,s={color:l?ep(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:ep(s.color!==void 0?s.color:s),pos:a/(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=gO(this.stops,t),n=[];this.stops.forEach((i,o)=>{i.colorLess&&(i.color=Qv(this.stops[o-1],this.stops[o+1],2)[1])});for(let i=0,o=this.stops.length;i<o-1;i++){let s=Qv(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=gO(this.stops,t),i=[];this.stops.forEach((o,s)=>{o.colorLess&&(o.color=hO(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let o=0,s=this.stops.length;o<s-1;o++){let a=hO(this.stops[o],this.stops[o+1],n[o],r);i.splice(i.length,0,...a)}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 yO(this.stops,t,"toRgb",DO)}hsvAt(t){return yO(this.stops,t,"toHsv",vO)}};xO.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 e1(e)}});var bO=O((Ove,ah)=>{"use strict";var SO=dO(),QG=CO(),EO=/\s/g;function n1(...e){let t=QG.apply(this,e),r=(n,i)=>eW(n?n.toString():"",t,i);return r.multiline=(n,i)=>tW(n?n.toString():"",t,i),r}var wO=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function eW(e,t,r){let n=_O(r),i=Math.max(e.replace(EO,"").length,t.stops.length),o=wO(t,n,i),s="";for(let a of e)s+=a.match(EO)?a:SO.hex(o.shift().toHex())(a);return s}function tW(e,t,r){let n=_O(r),i=e.split(`
`),o=Math.max.apply(null,i.map(u=>u.length).concat([t.stops.length])),s=wO(t,n,o),a=[];for(let u of i){let l=s.slice(0),c="";for(let f of u)c+=SO.hex(l.shift().toHex())(f);a.push(c)}return a.join(`
`)}function _O(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 tp={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"}},