diff --git a/assets/js/home.js b/assets/js/home.js index a23d9a1..0eed012 100644 --- a/assets/js/home.js +++ b/assets/js/home.js @@ -1,2 +1,2 @@ /*! For license information please see home.js.LICENSE.txt */ -(()=>{var e={768:function(e){e.exports=function(){"use strict";for(var e=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),er?r:e},t=e,r={},n=0,a=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n255)&&(e._clipped=!0),e[r]=t(e[r],0,255)):3===r&&(e[r]=t(e[r],0,1));return e},limit:e,type:c,unpack:function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==f(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==u(e[t])?e[t].toLowerCase():null},PI:i,TWOPI:2*i,PITHIRD:i/3,DEG2RAD:i/180,RAD2DEG:180/i},s={format:{},autodetect:[]},d=l.last,h=l.clip_rgb,p=l.type,b=s,v=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=this;if("object"===p(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var n=d(e),a=!1;if(!n){a=!0,b.sorted||(b.autodetect=b.autodetect.sort((function(e,t){return t.p-e.p})),b.sorted=!0);for(var o=0,c=b.autodetect;o4?e[4]:1;return 1===o?[0,0,0,c]:[r>=1?0:255*(1-r)*(1-o),n>=1?0:255*(1-n)*(1-o),a>=1?0:255*(1-a)*(1-o),c]},_=y,N=g,I=s,A=l.unpack,L=l.type,P=x;N.prototype.cmyk=function(){return P(this._rgb)},_.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(N,[null].concat(e,["cmyk"])))},I.format.cmyk=E,I.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=A(e,"cmyk"),"array"===L(e)&&4===e.length)return"cmyk"}});var C=l.unpack,S=l.last,O=function(e){return Math.round(100*e)/100},q=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=C(e,"hsla"),n=S(e)||"lsa";return r[0]=O(r[0]||0),r[1]=O(100*r[1])+"%",r[2]=O(100*r[2])+"%","hsla"===n||r.length>3&&r[3]<1?(r[3]=r.length>3?r[3]:1,n="hsla"):r.length=3,n+"("+r.join(",")+")"},R=l.unpack,j=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=(e=R(e,"rgba"))[0],n=e[1],a=e[2];r/=255,n/=255,a/=255;var o,c,f=Math.min(r,n,a),u=Math.max(r,n,a),i=(u+f)/2;return u===f?(o=0,c=Number.NaN):o=i<.5?(u-f)/(u+f):(u-f)/(2-u-f),r==u?c=(n-a)/(u-f):n==u?c=2+(a-r)/(u-f):a==u&&(c=4+(r-n)/(u-f)),(c*=60)<0&&(c+=360),e.length>3&&void 0!==e[3]?[c,o,i,e[3]]:[c,o,i]},D=l.unpack,F=l.last,B=q,G=j,H=Math.round,Y=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=D(e,"rgba"),n=F(e)||"rgb";return"hsl"==n.substr(0,3)?B(G(r),n):(r[0]=H(r[0]),r[1]=H(r[1]),r[2]=H(r[2]),("rgba"===n||r.length>3&&r[3]<1)&&(r[3]=r.length>3?r[3]:1,n="rgba"),n+"("+r.slice(0,"rgb"===n?3:4).join(",")+")")},T=l.unpack,V=Math.round,z=function(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,a,o,c=(t=T(t,"hsl"))[0],f=t[1],u=t[2];if(0===f)n=a=o=255*u;else{var i=[0,0,0],l=[0,0,0],s=u<.5?u*(1+f):u+f-u*f,d=2*u-s,h=c/360;i[0]=h+1/3,i[1]=h,i[2]=h-1/3;for(var p=0;p<3;p++)i[p]<0&&(i[p]+=1),i[p]>1&&(i[p]-=1),6*i[p]<1?l[p]=d+6*(s-d)*i[p]:2*i[p]<1?l[p]=s:3*i[p]<2?l[p]=d+(s-d)*(2/3-i[p])*6:l[p]=d;n=(e=[V(255*l[0]),V(255*l[1]),V(255*l[2])])[0],a=e[1],o=e[2]}return t.length>3?[n,a,o,t[3]]:[n,a,o,1]},X=z,$=s,W=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,K=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,U=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Z=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,J=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Q=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ee=Math.round,te=function(e){var t;if(e=e.toLowerCase().trim(),$.format.named)try{return $.format.named(e)}catch(e){}if(t=e.match(W)){for(var r=t.slice(1,4),n=0;n<3;n++)r[n]=+r[n];return r[3]=1,r}if(t=e.match(K)){for(var a=t.slice(1,5),o=0;o<4;o++)a[o]=+a[o];return a}if(t=e.match(U)){for(var c=t.slice(1,4),f=0;f<3;f++)c[f]=ee(2.55*c[f]);return c[3]=1,c}if(t=e.match(Z)){for(var u=t.slice(1,5),i=0;i<3;i++)u[i]=ee(2.55*u[i]);return u[3]=+u[3],u}if(t=e.match(J)){var l=t.slice(1,4);l[1]*=.01,l[2]*=.01;var s=X(l);return s[3]=1,s}if(t=e.match(Q)){var d=t.slice(1,4);d[1]*=.01,d[2]*=.01;var h=X(d);return h[3]=+t[4],h}};te.test=function(e){return W.test(e)||K.test(e)||U.test(e)||Z.test(e)||J.test(e)||Q.test(e)};var re=y,ne=g,ae=s,oe=l.type,ce=Y,fe=te;ne.prototype.css=function(e){return ce(this._rgb,e)},re.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ne,[null].concat(e,["css"])))},ae.format.css=fe,ae.autodetect.push({p:5,test:function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];if(!t.length&&"string"===oe(e)&&fe.test(e))return"css"}});var ue=g,ie=y,le=l.unpack;s.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=le(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r},ie.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ue,[null].concat(e,["gl"])))},ue.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var se=l.unpack,de=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n=se(e,"rgb"),a=n[0],o=n[1],c=n[2],f=Math.min(a,o,c),u=Math.max(a,o,c),i=u-f,l=100*i/255,s=f/(255-i)*100;return 0===i?r=Number.NaN:(a===u&&(r=(o-c)/i),o===u&&(r=2+(c-a)/i),c===u&&(r=4+(a-o)/i),(r*=60)<0&&(r+=360)),[r,l,s]},he=l.unpack,pe=Math.floor,be=function(){for(var e,t,r,n,a,o,c=[],f=arguments.length;f--;)c[f]=arguments[f];var u,i,l,s=(c=he(c,"hcg"))[0],d=c[1],h=c[2];h*=255;var p=255*d;if(0===d)u=i=l=h;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);var b=pe(s/=60),v=s-b,g=h*(1-d),m=g+p*(1-v),y=g+p*v,k=g+p;switch(b){case 0:u=(e=[k,y,g])[0],i=e[1],l=e[2];break;case 1:u=(t=[m,k,g])[0],i=t[1],l=t[2];break;case 2:u=(r=[g,k,y])[0],i=r[1],l=r[2];break;case 3:u=(n=[g,m,k])[0],i=n[1],l=n[2];break;case 4:u=(a=[y,g,k])[0],i=a[1],l=a[2];break;case 5:u=(o=[k,g,m])[0],i=o[1],l=o[2]}}return[u,i,l,c.length>3?c[3]:1]},ve=l.unpack,ge=l.type,me=y,ye=g,ke=s,we=de;ye.prototype.hcg=function(){return we(this._rgb)},me.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ye,[null].concat(e,["hcg"])))},ke.format.hcg=be,ke.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ve(e,"hcg"),"array"===ge(e)&&3===e.length)return"hcg"}});var xe=l.unpack,Me=l.last,Ee=Math.round,_e=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=xe(e,"rgba"),n=r[0],a=r[1],o=r[2],c=r[3],f=Me(e)||"auto";void 0===c&&(c=1),"auto"===f&&(f=c<1?"rgba":"rgb");var u="000000"+((n=Ee(n))<<16|(a=Ee(a))<<8|(o=Ee(o))).toString(16);u=u.substr(u.length-6);var i="0"+Ee(255*c).toString(16);switch(i=i.substr(i.length-2),f.toLowerCase()){case"rgba":return"#"+u+i;case"argb":return"#"+i+u;default:return"#"+u}},Ne=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ie=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ae=function(e){if(e.match(Ne)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(Ie)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var r=parseInt(e,16);return[r>>24&255,r>>16&255,r>>8&255,Math.round((255&r)/255*100)/100]}throw new Error("unknown hex color: "+e)},Le=y,Pe=g,Ce=l.type,Se=s,Oe=_e;Pe.prototype.hex=function(e){return Oe(this._rgb,e)},Le.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Pe,[null].concat(e,["hex"])))},Se.format.hex=Ae,Se.autodetect.push({p:4,test:function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];if(!t.length&&"string"===Ce(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var qe=l.unpack,Re=l.TWOPI,je=Math.min,De=Math.sqrt,Fe=Math.acos,Be=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n=qe(e,"rgb"),a=n[0],o=n[1],c=n[2],f=je(a/=255,o/=255,c/=255),u=(a+o+c)/3,i=u>0?1-f/u:0;return 0===i?r=NaN:(r=(a-o+(a-c))/2,r/=De((a-o)*(a-o)+(a-c)*(o-c)),r=Fe(r),c>o&&(r=Re-r),r/=Re),[360*r,i,u]},Ge=l.unpack,He=l.limit,Ye=l.TWOPI,Te=l.PITHIRD,Ve=Math.cos,ze=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n,a,o=(e=Ge(e,"hsi"))[0],c=e[1],f=e[2];return isNaN(o)&&(o=0),isNaN(c)&&(c=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?n=1-((a=(1-c)/3)+(r=(1+c*Ve(Ye*o)/Ve(Te-Ye*o))/3)):o<2/3?a=1-((r=(1-c)/3)+(n=(1+c*Ve(Ye*(o-=1/3))/Ve(Te-Ye*o))/3)):r=1-((n=(1-c)/3)+(a=(1+c*Ve(Ye*(o-=2/3))/Ve(Te-Ye*o))/3)),[255*(r=He(f*r*3)),255*(n=He(f*n*3)),255*(a=He(f*a*3)),e.length>3?e[3]:1]},Xe=l.unpack,$e=l.type,We=y,Ke=g,Ue=s,Ze=Be;Ke.prototype.hsi=function(){return Ze(this._rgb)},We.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Ke,[null].concat(e,["hsi"])))},Ue.format.hsi=ze,Ue.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Xe(e,"hsi"),"array"===$e(e)&&3===e.length)return"hsi"}});var Je=l.unpack,Qe=l.type,et=y,tt=g,rt=s,nt=j;tt.prototype.hsl=function(){return nt(this._rgb)},et.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(tt,[null].concat(e,["hsl"])))},rt.format.hsl=z,rt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Je(e,"hsl"),"array"===Qe(e)&&3===e.length)return"hsl"}});var at=l.unpack,ot=Math.min,ct=Math.max,ft=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n,a,o=(e=at(e,"rgb"))[0],c=e[1],f=e[2],u=ot(o,c,f),i=ct(o,c,f),l=i-u;return a=i/255,0===i?(r=Number.NaN,n=0):(n=l/i,o===i&&(r=(c-f)/l),c===i&&(r=2+(f-o)/l),f===i&&(r=4+(o-c)/l),(r*=60)<0&&(r+=360)),[r,n,a]},ut=l.unpack,it=Math.floor,lt=function(){for(var e,t,r,n,a,o,c=[],f=arguments.length;f--;)c[f]=arguments[f];var u,i,l,s=(c=ut(c,"hsv"))[0],d=c[1],h=c[2];if(h*=255,0===d)u=i=l=h;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);var p=it(s/=60),b=s-p,v=h*(1-d),g=h*(1-d*b),m=h*(1-d*(1-b));switch(p){case 0:u=(e=[h,m,v])[0],i=e[1],l=e[2];break;case 1:u=(t=[g,h,v])[0],i=t[1],l=t[2];break;case 2:u=(r=[v,h,m])[0],i=r[1],l=r[2];break;case 3:u=(n=[v,g,h])[0],i=n[1],l=n[2];break;case 4:u=(a=[m,v,h])[0],i=a[1],l=a[2];break;case 5:u=(o=[h,v,g])[0],i=o[1],l=o[2]}}return[u,i,l,c.length>3?c[3]:1]},st=l.unpack,dt=l.type,ht=y,pt=g,bt=s,vt=ft;pt.prototype.hsv=function(){return vt(this._rgb)},ht.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(pt,[null].concat(e,["hsv"])))},bt.format.hsv=lt,bt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=st(e,"hsv"),"array"===dt(e)&&3===e.length)return"hsv"}});var gt={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},mt=gt,yt=l.unpack,kt=Math.pow,wt=function(e){return(e/=255)<=.04045?e/12.92:kt((e+.055)/1.055,2.4)},xt=function(e){return e>mt.t3?kt(e,1/3):e/mt.t2+mt.t0},Mt=function(e,t,r){return e=wt(e),t=wt(t),r=wt(r),[xt((.4124564*e+.3575761*t+.1804375*r)/mt.Xn),xt((.2126729*e+.7151522*t+.072175*r)/mt.Yn),xt((.0193339*e+.119192*t+.9503041*r)/mt.Zn)]},Et=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=yt(e,"rgb"),n=r[0],a=r[1],o=r[2],c=Mt(n,a,o),f=c[0],u=c[1],i=116*u-16;return[i<0?0:i,500*(f-u),200*(u-c[2])]},_t=gt,Nt=l.unpack,It=Math.pow,At=function(e){return 255*(e<=.00304?12.92*e:1.055*It(e,1/2.4)-.055)},Lt=function(e){return e>_t.t1?e*e*e:_t.t2*(e-_t.t0)},Pt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n,a,o=(e=Nt(e,"lab"))[0],c=e[1],f=e[2];return n=(o+16)/116,r=isNaN(c)?n:n+c/500,a=isNaN(f)?n:n-f/200,n=_t.Yn*Lt(n),r=_t.Xn*Lt(r),a=_t.Zn*Lt(a),[At(3.2404542*r-1.5371385*n-.4985314*a),At(-.969266*r+1.8760108*n+.041556*a),At(.0556434*r-.2040259*n+1.0572252*a),e.length>3?e[3]:1]},Ct=l.unpack,St=l.type,Ot=y,qt=g,Rt=s,jt=Et;qt.prototype.lab=function(){return jt(this._rgb)},Ot.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(qt,[null].concat(e,["lab"])))},Rt.format.lab=Pt,Rt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ct(e,"lab"),"array"===St(e)&&3===e.length)return"lab"}});var Dt=l.unpack,Ft=l.RAD2DEG,Bt=Math.sqrt,Gt=Math.atan2,Ht=Math.round,Yt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Dt(e,"lab"),n=r[0],a=r[1],o=r[2],c=Bt(a*a+o*o),f=(Gt(o,a)*Ft+360)%360;return 0===Ht(1e4*c)&&(f=Number.NaN),[n,c,f]},Tt=l.unpack,Vt=Et,zt=Yt,Xt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Tt(e,"rgb"),n=r[0],a=r[1],o=r[2],c=Vt(n,a,o),f=c[0],u=c[1],i=c[2];return zt(f,u,i)},$t=l.unpack,Wt=l.DEG2RAD,Kt=Math.sin,Ut=Math.cos,Zt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=$t(e,"lch"),n=r[0],a=r[1],o=r[2];return isNaN(o)&&(o=0),[n,Ut(o*=Wt)*a,Kt(o)*a]},Jt=l.unpack,Qt=Zt,er=Pt,tr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=(e=Jt(e,"lch"))[0],n=e[1],a=e[2],o=Qt(r,n,a),c=o[0],f=o[1],u=o[2],i=er(c,f,u);return[i[0],i[1],i[2],e.length>3?e[3]:1]},rr=l.unpack,nr=tr,ar=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=rr(e,"hcl").reverse();return nr.apply(void 0,r)},or=l.unpack,cr=l.type,fr=y,ur=g,ir=s,lr=Xt;ur.prototype.lch=function(){return lr(this._rgb)},ur.prototype.hcl=function(){return lr(this._rgb).reverse()},fr.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ur,[null].concat(e,["lch"])))},fr.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ur,[null].concat(e,["hcl"])))},ir.format.lch=tr,ir.format.hcl=ar,["lch","hcl"].forEach((function(e){return ir.autodetect.push({p:2,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=or(t,e),"array"===cr(t)&&3===t.length)return e}})}));var sr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},dr=s,hr=l.type,pr=sr,br=Ae,vr=_e;g.prototype.name=function(){for(var e=vr(this._rgb,"rgb"),t=0,r=Object.keys(pr);t0;)t[r]=arguments[r+1];if(!t.length&&"string"===hr(e)&&pr[e.toLowerCase()])return"named"}});var gr=l.unpack,mr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=gr(e,"rgb");return(r[0]<<16)+(r[1]<<8)+r[2]},yr=l.type,kr=y,wr=g,xr=s,Mr=l.type,Er=mr;wr.prototype.num=function(){return Er(this._rgb)},kr.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(wr,[null].concat(e,["num"])))},xr.format.num=function(e){if("number"==yr(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},xr.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===Mr(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var _r=y,Nr=g,Ir=s,Ar=l.unpack,Lr=l.type,Pr=Math.round;Nr.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Pr)},Nr.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,r){return r<3?!1===e?t:Pr(t):t}))},_r.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Nr,[null].concat(e,["rgb"])))},Ir.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Ar(e,"rgba");return void 0===r[3]&&(r[3]=1),r},Ir.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ar(e,"rgba"),"array"===Lr(e)&&(3===e.length||4===e.length&&"number"==Lr(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var Cr=Math.log,Sr=function(e){var t,r,n,a=e/100;return a<66?(t=255,r=a<6?0:-155.25485562709179-.44596950469579133*(r=a-2)+104.49216199393888*Cr(r),n=a<20?0:.8274096064007395*(n=a-10)-254.76935184120902+115.67994401066147*Cr(n)):(t=351.97690566805693+.114206453784165*(t=a-55)-40.25366309332127*Cr(t),r=325.4494125711974+.07943456536662342*(r=a-50)-28.0852963507957*Cr(r),n=255),[t,r,n,1]},Or=Sr,qr=l.unpack,Rr=Math.round,jr=y,Dr=g,Fr=s,Br=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r,n=qr(e,"rgb"),a=n[0],o=n[2],c=1e3,f=4e4;f-c>.4;){var u=Or(r=.5*(f+c));u[2]/u[0]>=o/a?f=r:c=r}return Rr(r)};Dr.prototype.temp=Dr.prototype.kelvin=Dr.prototype.temperature=function(){return Br(this._rgb)},jr.temp=jr.kelvin=jr.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Dr,[null].concat(e,["temp"])))},Fr.format.temp=Fr.format.kelvin=Fr.format.temperature=Sr;var Gr=l.unpack,Hr=Math.cbrt,Yr=Math.pow,Tr=Math.sign,Vr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Gr(e,"rgb"),n=r[0],a=r[1],o=r[2],c=[zr(n/255),zr(a/255),zr(o/255)],f=c[0],u=c[1],i=c[2],l=Hr(.4122214708*f+.5363325363*u+.0514459929*i),s=Hr(.2119034982*f+.6806995451*u+.1073969566*i),d=Hr(.0883024619*f+.2817188376*u+.6299787005*i);return[.2104542553*l+.793617785*s-.0040720468*d,1.9779984951*l-2.428592205*s+.4505937099*d,.0259040371*l+.7827717662*s-.808675766*d]};function zr(e){var t=Math.abs(e);return t<.04045?e/12.92:(Tr(e)||1)*Yr((t+.055)/1.055,2.4)}var Xr=l.unpack,$r=Math.pow,Wr=Math.sign,Kr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=(e=Xr(e,"lab"))[0],n=e[1],a=e[2],o=$r(r+.3963377774*n+.2158037573*a,3),c=$r(r-.1055613458*n-.0638541728*a,3),f=$r(r-.0894841775*n-1.291485548*a,3);return[255*Ur(4.0767416621*o-3.3077115913*c+.2309699292*f),255*Ur(-1.2684380046*o+2.6097574011*c-.3413193965*f),255*Ur(-.0041960863*o-.7034186147*c+1.707614701*f),e.length>3?e[3]:1]};function Ur(e){var t=Math.abs(e);return t>.0031308?(Wr(e)||1)*(1.055*$r(t,1/2.4)-.055):12.92*e}var Zr=l.unpack,Jr=l.type,Qr=y,en=g,tn=s,rn=Vr;en.prototype.oklab=function(){return rn(this._rgb)},Qr.oklab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(en,[null].concat(e,["oklab"])))},tn.format.oklab=Kr,tn.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Zr(e,"oklab"),"array"===Jr(e)&&3===e.length)return"oklab"}});var nn=l.unpack,an=Vr,on=Yt,cn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=nn(e,"rgb"),n=r[0],a=r[1],o=r[2],c=an(n,a,o),f=c[0],u=c[1],i=c[2];return on(f,u,i)},fn=l.unpack,un=Zt,ln=Kr,sn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=(e=fn(e,"lch"))[0],n=e[1],a=e[2],o=un(r,n,a),c=o[0],f=o[1],u=o[2],i=ln(c,f,u);return[i[0],i[1],i[2],e.length>3?e[3]:1]},dn=l.unpack,hn=l.type,pn=y,bn=g,vn=s,gn=cn;bn.prototype.oklch=function(){return gn(this._rgb)},pn.oklch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(bn,[null].concat(e,["oklch"])))},vn.format.oklch=sn,vn.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=dn(e,"oklch"),"array"===hn(e)&&3===e.length)return"oklch"}});var mn=g,yn=l.type;mn.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===yn(e)?t?(this._rgb[3]=e,this):new mn([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},g.prototype.clipped=function(){return this._rgb._clipped||!1};var kn=g,wn=gt;kn.prototype.darken=function(e){void 0===e&&(e=1);var t=this.lab();return t[0]-=wn.Kn*e,new kn(t,"lab").alpha(this.alpha(),!0)},kn.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},kn.prototype.darker=kn.prototype.darken,kn.prototype.brighter=kn.prototype.brighten,g.prototype.get=function(e){var t=e.split("."),r=t[0],n=t[1],a=this[r]();if(n){var o=r.indexOf(n)-("ok"===r.substr(0,2)?2:0);if(o>-1)return a[o];throw new Error("unknown channel "+n+" in mode "+r)}return a};var xn=g,Mn=l.type,En=Math.pow;xn.prototype.luminance=function(e){if(void 0!==e&&"number"===Mn(e)){if(0===e)return new xn([0,0,0,this._rgb[3]],"rgb");if(1===e)return new xn([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),r=20,n=function(t,a){var o=t.interpolate(a,.5,"rgb"),c=o.luminance();return Math.abs(e-c)<1e-7||!r--?o:c>e?n(t,o):n(o,a)},a=(t>e?n(new xn([0,0,0]),this):n(this,new xn([255,255,255]))).rgb();return new xn(a.concat([this._rgb[3]]))}return _n.apply(void 0,this._rgb.slice(0,3))};var _n=function(e,t,r){return.2126*(e=Nn(e))+.7152*(t=Nn(t))+.0722*Nn(r)},Nn=function(e){return(e/=255)<=.03928?e/12.92:En((e+.055)/1.055,2.4)},In={},An=g,Ln=l.type,Pn=In,Cn=function(e,t,r){void 0===r&&(r=.5);for(var n=[],a=arguments.length-3;a-- >0;)n[a]=arguments[a+3];var o=n[0]||"lrgb";if(Pn[o]||n.length||(o=Object.keys(Pn)[0]),!Pn[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==Ln(e)&&(e=new An(e)),"object"!==Ln(t)&&(t=new An(t)),Pn[o](e,t,r).alpha(e.alpha()+r*(t.alpha()-e.alpha()))},Sn=g,On=Cn;Sn.prototype.mix=Sn.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return On.apply(void 0,[this,e,t].concat(r))};var qn=g;qn.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,r=t[3];return e?(this._rgb=[t[0]*r,t[1]*r,t[2]*r,r],this):new qn([t[0]*r,t[1]*r,t[2]*r,r],"rgb")};var Rn=g,jn=gt;Rn.prototype.saturate=function(e){void 0===e&&(e=1);var t=this.lch();return t[1]+=jn.Kn*e,t[1]<0&&(t[1]=0),new Rn(t,"lch").alpha(this.alpha(),!0)},Rn.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var Dn=g,Fn=l.type;Dn.prototype.set=function(e,t,r){void 0===r&&(r=!1);var n=e.split("."),a=n[0],o=n[1],c=this[a]();if(o){var f=a.indexOf(o)-("ok"===a.substr(0,2)?2:0);if(f>-1){if("string"==Fn(t))switch(t.charAt(0)){case"+":case"-":c[f]+=+t;break;case"*":c[f]*=+t.substr(1);break;case"/":c[f]/=+t.substr(1);break;default:c[f]=+t}else{if("number"!==Fn(t))throw new Error("unsupported value for Color.set");c[f]=t}var u=new Dn(c,a);return r?(this._rgb=u._rgb,this):u}throw new Error("unknown channel "+o+" in mode "+a)}return c};var Bn=g;In.rgb=function(e,t,r){var n=e._rgb,a=t._rgb;return new Bn(n[0]+r*(a[0]-n[0]),n[1]+r*(a[1]-n[1]),n[2]+r*(a[2]-n[2]),"rgb")};var Gn=g,Hn=Math.sqrt,Yn=Math.pow;In.lrgb=function(e,t,r){var n=e._rgb,a=n[0],o=n[1],c=n[2],f=t._rgb,u=f[0],i=f[1],l=f[2];return new Gn(Hn(Yn(a,2)*(1-r)+Yn(u,2)*r),Hn(Yn(o,2)*(1-r)+Yn(i,2)*r),Hn(Yn(c,2)*(1-r)+Yn(l,2)*r),"rgb")};var Tn=g;In.lab=function(e,t,r){var n=e.lab(),a=t.lab();return new Tn(n[0]+r*(a[0]-n[0]),n[1]+r*(a[1]-n[1]),n[2]+r*(a[2]-n[2]),"lab")};var Vn=g,zn=function(e,t,r,n){var a,o,c,f,u,i,l,s,d,h,p,b,v;return"hsl"===n?(c=e.hsl(),f=t.hsl()):"hsv"===n?(c=e.hsv(),f=t.hsv()):"hcg"===n?(c=e.hcg(),f=t.hcg()):"hsi"===n?(c=e.hsi(),f=t.hsi()):"lch"===n||"hcl"===n?(n="hcl",c=e.hcl(),f=t.hcl()):"oklch"===n&&(c=e.oklch().reverse(),f=t.oklch().reverse()),"h"!==n.substr(0,1)&&"oklch"!==n||(u=(a=c)[0],l=a[1],d=a[2],i=(o=f)[0],s=o[1],h=o[2]),isNaN(u)||isNaN(i)?isNaN(u)?isNaN(i)?b=Number.NaN:(b=i,1!=d&&0!=d||"hsv"==n||(p=s)):(b=u,1!=h&&0!=h||"hsv"==n||(p=l)):b=u+r*(i>u&&i-u>180?i-(u+360):i180?i+360-u:i-u),void 0===p&&(p=l+r*(s-l)),v=d+r*(h-d),new Vn("oklch"===n?[v,p,b]:[b,p,v],n)},Xn=zn,$n=function(e,t,r){return Xn(e,t,r,"lch")};In.lch=$n,In.hcl=$n;var Wn=g;In.num=function(e,t,r){var n=e.num(),a=t.num();return new Wn(n+r*(a-n),"num")};var Kn=zn;In.hcg=function(e,t,r){return Kn(e,t,r,"hcg")};var Un=zn;In.hsi=function(e,t,r){return Un(e,t,r,"hsi")};var Zn=zn;In.hsl=function(e,t,r){return Zn(e,t,r,"hsl")};var Jn=zn;In.hsv=function(e,t,r){return Jn(e,t,r,"hsv")};var Qn=g;In.oklab=function(e,t,r){var n=e.oklab(),a=t.oklab();return new Qn(n[0]+r*(a[0]-n[0]),n[1]+r*(a[1]-n[1]),n[2]+r*(a[2]-n[2]),"oklab")};var ea=zn;In.oklch=function(e,t,r){return ea(e,t,r,"oklch")};var ta=g,ra=l.clip_rgb,na=Math.pow,aa=Math.sqrt,oa=Math.PI,ca=Math.cos,fa=Math.sin,ua=Math.atan2,ia=function(e,t){for(var r=e.length,n=[0,0,0,0],a=0;a.9999999&&(n[3]=1),new ta(ra(n))},la=y,sa=l.type,da=Math.pow,ha=function(e){var t="rgb",r=la("#ccc"),n=0,a=[0,1],o=[],c=[0,0],f=!1,u=[],i=!1,l=0,s=1,d=!1,h={},p=!0,b=1,v=function(e){if((e=e||["#fff","#000"])&&"string"===sa(e)&&la.brewer&&la.brewer[e.toLowerCase()]&&(e=la.brewer[e.toLowerCase()]),"array"===sa(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t2?function(e){if(null!=f){for(var t=f.length-1,r=0;r=f[r];)r++;return r-1}return 0}(e)/(f.length-2):s!==l?(e-l)/(s-l):1,i=m(i),n||(i=g(i)),1!==b&&(i=da(i,b)),i=c[0]+i*(1-c[0]-c[1]),i=Math.min(1,Math.max(0,i));var d=Math.floor(1e4*i);if(p&&h[d])a=h[d];else{if("array"===sa(u))for(var v=0;v=y&&v===o.length-1){a=u[v];break}if(i>y&&i2){var i=e.map((function(t,r){return r/(e.length-1)})),d=e.map((function(e){return(e-l)/(s-l)}));d.every((function(e,t){return i[t]===e}))||(m=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=d[t+1];)t++;var r=(e-d[t])/(d[t+1]-d[t]);return i[t]+r*(i[t+1]-i[t])})}}return a=[l,s],w},w.mode=function(e){return arguments.length?(t=e,k(),w):t},w.range=function(e,t){return v(e),w},w.out=function(e){return i=e,w},w.spread=function(e){return arguments.length?(n=e,w):n},w.correctLightness=function(e){return null==e&&(e=!0),d=e,k(),g=d?function(e){for(var t=y(0,!0).lab()[0],r=y(1,!0).lab()[0],n=t>r,a=y(e,!0).lab()[0],o=t+(r-t)*e,c=a-o,f=0,u=1,i=20;Math.abs(c)>.01&&i-- >0;)n&&(c*=-1),c<0?(f=e,e+=.5*(u-e)):(u=e,e+=.5*(f-e)),c=(a=y(e,!0).lab()[0])-o;return e}:function(e){return e},w},w.padding=function(e){return null!=e?("number"===sa(e)&&(e=[e,e]),c=e,w):c},w.colors=function(t,r){arguments.length<2&&(r="hex");var n=[];if(0===arguments.length)n=u.slice(0);else if(1===t)n=[w(.5)];else if(t>1){var o=a[0],c=a[1]-o;n=function(e,t,r){for(var n=[],a=eo;a?c++:c--)n.push(c);return n}(0,t,!1).map((function(e){return w(o+e/(t-1)*c)}))}else{e=[];var i=[];if(f&&f.length>2)for(var l=1,s=f.length,d=1<=s;d?ls;d?l++:l--)i.push(.5*(f[l-1]+f[l]));else i=a;n=i.map((function(e){return w(e)}))}return la[r]&&(n=n.map((function(e){return e[r]()}))),n},w.cache=function(e){return null!=e?(p=e,w):p},w.gamma=function(e){return null!=e?(b=e,w):b},w.nodata=function(e){return null!=e?(r=la(e),w):r},w};var pa=g,ba=ha,va=y,ga=function(e,t,r){if(!ga[r])throw new Error("unknown blend mode "+r);return ga[r](e,t)},ma=function(e){return function(t,r){var n=va(r).rgb(),a=va(t).rgb();return va.rgb(e(n,a))}},ya=function(e){return function(t,r){var n=[];return n[0]=e(t[0],r[0]),n[1]=e(t[1],r[1]),n[2]=e(t[2],r[2]),n}};ga.normal=ma(ya((function(e){return e}))),ga.multiply=ma(ya((function(e,t){return e*t/255}))),ga.screen=ma(ya((function(e,t){return 255*(1-(1-e/255)*(1-t/255))}))),ga.overlay=ma(ya((function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))}))),ga.darken=ma(ya((function(e,t){return e>t?t:e}))),ga.lighten=ma(ya((function(e,t){return e>t?e:t}))),ga.dodge=ma(ya((function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e}))),ga.burn=ma(ya((function(e,t){return 255*(1-(1-t/255)/(e/255))})));for(var ka=ga,wa=l.type,xa=l.clip_rgb,Ma=l.TWOPI,Ea=Math.pow,_a=Math.sin,Na=Math.cos,Ia=y,Aa=g,La=Math.floor,Pa=Math.random,Ca=c,Sa=Math.log,Oa=Math.pow,qa=Math.floor,Ra=Math.abs,ja=function(e,t){void 0===t&&(t=null);var r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===Ca(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===Ca(e)&&(e=e[t]),null==e||isNaN(e)||(r.values.push(e),r.sum+=e,er.max&&(r.max=e),r.count+=1)})),r.domain=[r.min,r.max],r.limits=function(e,t){return Da(r,e,t)},r},Da=function(e,t,r){void 0===t&&(t="equal"),void 0===r&&(r=7),"array"==Ca(e)&&(e=ja(e));var n=e.min,a=e.max,o=e.values.sort((function(e,t){return e-t}));if(1===r)return[n,a];var c=[];if("c"===t.substr(0,1)&&(c.push(n),c.push(a)),"e"===t.substr(0,1)){c.push(n);for(var f=1;f 0");var u=Math.LOG10E*Sa(n),i=Math.LOG10E*Sa(a);c.push(n);for(var l=1;l200&&(y=!1)}for(var R={},j=0;j=360;)p-=360;c[h]=p}else c[h]=c[h]/f[h];return d/=n,new ta(c,t).alpha(d>.99999?1:d,!0)},fo.bezier=function(e){var t=function(e){var t,r,n,a,o,c,f;if(2===(e=e.map((function(e){return new pa(e)}))).length)t=e.map((function(e){return e.lab()})),o=t[0],c=t[1],a=function(e){var t=[0,1,2].map((function(t){return o[t]+e*(c[t]-o[t])}));return new pa(t,"lab")};else if(3===e.length)r=e.map((function(e){return e.lab()})),o=r[0],c=r[1],f=r[2],a=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*o[t]+2*(1-e)*e*c[t]+e*e*f[t]}));return new pa(t,"lab")};else if(4===e.length){var u;n=e.map((function(e){return e.lab()})),o=n[0],c=n[1],f=n[2],u=n[3],a=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*(1-e)*o[t]+3*(1-e)*(1-e)*e*c[t]+3*(1-e)*e*e*f[t]+e*e*e*u[t]}));return new pa(t,"lab")}}else{if(!(e.length>=5))throw new RangeError("No point in running bezier with only one color.");var i,l,s;i=e.map((function(e){return e.lab()})),s=e.length-1,l=function(e){for(var t=[1,1],r=1;rn?(r+.05)/(n+.05):(n+.05)/(r+.05)},fo.deltaE=function(e,t,r,n,a){void 0===r&&(r=1),void 0===n&&(n=1),void 0===a&&(a=1);var o=function(e){return 360*e/(2*Ua)},c=function(e){return 2*Ua*e/360};e=new Ga(e),t=new Ga(t);var f=Array.from(e.lab()),u=f[0],i=f[1],l=f[2],s=Array.from(t.lab()),d=s[0],h=s[1],p=s[2],b=(u+d)/2,v=(Ha(Ya(i,2)+Ya(l,2))+Ha(Ya(h,2)+Ya(p,2)))/2,g=.5*(1-Ha(Ya(v,7)/(Ya(v,7)+Ya(25,7)))),m=i*(1+g),y=h*(1+g),k=Ha(Ya(m,2)+Ya(l,2)),w=Ha(Ya(y,2)+Ya(p,2)),x=(k+w)/2,M=o(za(l,m)),E=o(za(p,y)),_=M>=0?M:M+360,N=E>=0?E:E+360,I=Xa(_-N)>180?(_+N+360)/2:(_+N)/2,A=1-.17*$a(c(I-30))+.24*$a(c(2*I))+.32*$a(c(3*I+6))-.2*$a(c(4*I-63)),L=N-_;L=Xa(L)<=180?L:N<=_?L+360:L-360,L=2*Ha(k*w)*Wa(c(L)/2);var P=d-u,C=w-k,S=1+.015*Ya(b-50,2)/Ha(20+Ya(b-50,2)),O=1+.045*x,q=1+.015*x*A,R=30*Ka(-Ya((I-275)/25,2)),j=-2*Ha(Ya(x,7)/(Ya(x,7)+Ya(25,7)))*Wa(2*c(R)),D=Ha(Ya(P/(r*S),2)+Ya(C/(n*O),2)+Ya(L/(a*q),2)+j*(C/(n*O))*(L/(a*q)));return Va(0,Ta(100,D))},fo.distance=function(e,t,r){void 0===r&&(r="lab"),e=new Za(e),t=new Za(t);var n=e.get(r),a=t.get(r),o=0;for(var c in n){var f=(n[c]||0)-(a[c]||0);o+=f*f}return Math.sqrt(o)},fo.limits=Fa.limits,fo.valid=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(Ja,[null].concat(e))),!0}catch(e){return!1}},fo.scales=to,fo.colors=sr,fo.brewer=co,fo}()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";document.querySelector(".prompt"),document.querySelector("html");document.addEventListener("keydown",(function(e){"/"===e.key&&(e.preventDefault(),history.pushState(null,"","console"))}));var e,t=r(768),n=r.n(t),a=function(e){try{if(!c(e))return!1;var t=f(n()(e)),r=u(t),a=o(t),d=i(r)?"underline":"none";return l(t,r,a,d),s(t,r,a,d),!0}catch(e){return console.error(e),!1}},o=function(e){return e.luminance()<.95?e.brighten(.5):e.darken(.05)},c=function(e){return n().valid(e)},f=function(e){var t=e.luminance();t<.15?e=e.luminance(.15):t>.85&&(e=e.luminance(.85));var r=e.get("hsl.s");return e.set("hsl.s",Math.min(r,.85))},u=function(e){if(0===e.get("hsl.s")){var t=["#00796b","#00acc1","#1976d2","#2196f3"];return n()(t[Math.floor(Math.random()*t.length)]).set("hsl.s",1)}var r=e.set("hsl.s",1);if(r.set("hsl.l",.5),n().contrast(r,e)>=1.75)return r;for(var a=1;a<=20;a++){var o=r.set("hsl.l",r.get("hsl.l")+.05*a);if(n().contrast(o,e)>=1.75)return o}return r},i=function(e){return e.get("hsl.s")<.2},l=function(e,t,r,n){localStorage.setItem("ACCENT_COLOR",h(e)),localStorage.setItem("LINK_COLOR",h(t)),localStorage.setItem("LINK_COLOR_HOVER",h(r)),localStorage.setItem("LINK_DECORATION",n)},s=function(e,t,r,n){document.documentElement.style.setProperty("--accent-color-base",d(e)),document.documentElement.style.setProperty("--accent-color-link",h(t)),document.documentElement.style.setProperty("--accent-color-link-hover",h(r)),document.documentElement.style.setProperty("--link-decoration",n)},d=function(e){return e.rgb().join(", ")},h=function(e){return"rgb("+e.rgb().join(", ")+")"},p=function(e){var t,r=e[0];if(r.startsWith("PS1=")){var n=r.slice(4).trim();return document.querySelectorAll(".system-prompt").forEach((function(e){e.textContent=n})),t=n,localStorage.setItem("PS1",t),"Prompt character changed to ".concat(n)}return"Invalid export command. Usage: export PS1=$"},b=function(e){var t=e.join(" ").trim();return a(t)?"Accent changed to ".concat(t):"Invalid color. Please provide: #000000, rgb(0, 0, 0) or any valid css color."},v=function(){var e=Math.floor(Math.random()*y.length);return y[e]},g={clear:{execute:function(e){for(var t=document.querySelector(".stdout-log");null==t?void 0:t.firstChild;)t.removeChild(t.firstChild);return"Console cleared"},description:"Clears the terminal screen",flags:{}},echo:{execute:function(e){return t=e.join(" "),(r=document.createElement("div")).classList.add("oval"),r.innerText=t,r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.zIndex="500",r.style.left="50px",r.style.top="50px",document.body.appendChild(r),r.classList.add("oval-animate"),r.addEventListener("animationend",(function(){document.body.removeChild(r)})),"Echo effect triggered for ".concat(e.join(" "));var t,r},description:"Prints back the input received",flags:{}},help:{execute:function(e){for(var t="Available commands:\n",r=0,n=Object.entries(g);r")},description:"Shows help information about all commands",flags:{}},bgcolor:{execute:b,description:"Changes the background color",flags:{}},export:{execute:p,description:"Exports a variable",flags:{}},restore:{execute:function(e){var t=localStorage.getItem("PS1");t&&p(["PS1="+t]);var r=localStorage.getItem("ACCENT_COLOR");return r&&b([r]),"Restored terminal settings"},description:"Restores terminal settings",flags:{}}},m={cd:{execute:v},rm:{execute:v},sudo:{execute:v},mv:{execute:v},chmod:{execute:v},chown:{execute:v},mkdir:{execute:v},ls:{execute:v},cat:{execute:v},ps:{execute:v},top:{execute:v},vi:{execute:v},nano:{execute:v},exit:{execute:v},man:{execute:v},grep:{execute:v},find:{execute:v},ping:{execute:v},pwd:{execute:v},df:{execute:v},du:{execute:v},curl:{execute:v},wget:{execute:v},ifconfig:{execute:v}},y=["Nice try, but this isn't a real terminal!","Did you really think that would work?","You must think you're pretty clever, huh?","I'm sorry, Dave. I'm afraid I can't do that."];function k(e){var t,r,n=e.split(" ");!function(e,t){var r=document.querySelector(".tab-panels").querySelector(".stdout-log"),n=document.createElement("li");n.innerHTML='\n
\n
\n '.concat(e,'\n
').concat(t,"
\n
\n
\n "),r.insertBefore(n,r.firstChild)}(e,(t=n[0],r=n.slice(1),t in m?m[t].execute(r):t in g?g[t].execute(r):"Command not found: ".concat(t)).replace(/\n/g,"
"))}new(function(){function e(e,t){this.commandHistory=[],this.historyIndex=-1,this.terminal=e,this.prompt=e.querySelector(".prompt"),this.mirrorElement=e.querySelector(".input-mirror"),this.handleCommand=t,this.initialize()}return e.prototype.initialize=function(){var e=this;this.prompt.addEventListener("keydown",(function(t){"Enter"===t.key&&e.prompt.value.trim()?(t.preventDefault(),e.commandHistory.push(e.prompt.value.trim()),e.historyIndex=e.commandHistory.length,e.handleCommand(e.prompt.value.trim()),e.createRipple(),e.setPromptValue("")):"ArrowUp"===t.key?(t.preventDefault(),e.historyIndex>0&&(e.historyIndex--,e.setPromptValue(e.commandHistory[e.historyIndex]))):"ArrowDown"===t.key&&(t.preventDefault(),e.historyIndex{var e={768:function(e){e.exports=function(){"use strict";for(var e=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),er?r:e},t=e,r={},n=0,a=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n255)&&(e._clipped=!0),e[r]=t(e[r],0,255)):3===r&&(e[r]=t(e[r],0,1));return e},limit:e,type:c,unpack:function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==f(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==u(e[t])?e[t].toLowerCase():null},PI:i,TWOPI:2*i,PITHIRD:i/3,DEG2RAD:i/180,RAD2DEG:180/i},s={format:{},autodetect:[]},d=l.last,h=l.clip_rgb,p=l.type,b=s,v=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=this;if("object"===p(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var n=d(e),a=!1;if(!n){a=!0,b.sorted||(b.autodetect=b.autodetect.sort((function(e,t){return t.p-e.p})),b.sorted=!0);for(var o=0,c=b.autodetect;o4?e[4]:1;return 1===o?[0,0,0,c]:[r>=1?0:255*(1-r)*(1-o),n>=1?0:255*(1-n)*(1-o),a>=1?0:255*(1-a)*(1-o),c]},_=y,N=g,I=s,A=l.unpack,L=l.type,P=M;N.prototype.cmyk=function(){return P(this._rgb)},_.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(N,[null].concat(e,["cmyk"])))},I.format.cmyk=E,I.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=A(e,"cmyk"),"array"===L(e)&&4===e.length)return"cmyk"}});var C=l.unpack,S=l.last,O=function(e){return Math.round(100*e)/100},q=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=C(e,"hsla"),n=S(e)||"lsa";return r[0]=O(r[0]||0),r[1]=O(100*r[1])+"%",r[2]=O(100*r[2])+"%","hsla"===n||r.length>3&&r[3]<1?(r[3]=r.length>3?r[3]:1,n="hsla"):r.length=3,n+"("+r.join(",")+")"},R=l.unpack,j=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=(e=R(e,"rgba"))[0],n=e[1],a=e[2];r/=255,n/=255,a/=255;var o,c,f=Math.min(r,n,a),u=Math.max(r,n,a),i=(u+f)/2;return u===f?(o=0,c=Number.NaN):o=i<.5?(u-f)/(u+f):(u-f)/(2-u-f),r==u?c=(n-a)/(u-f):n==u?c=2+(a-r)/(u-f):a==u&&(c=4+(r-n)/(u-f)),(c*=60)<0&&(c+=360),e.length>3&&void 0!==e[3]?[c,o,i,e[3]]:[c,o,i]},D=l.unpack,F=l.last,B=q,G=j,H=Math.round,Y=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=D(e,"rgba"),n=F(e)||"rgb";return"hsl"==n.substr(0,3)?B(G(r),n):(r[0]=H(r[0]),r[1]=H(r[1]),r[2]=H(r[2]),("rgba"===n||r.length>3&&r[3]<1)&&(r[3]=r.length>3?r[3]:1,n="rgba"),n+"("+r.slice(0,"rgb"===n?3:4).join(",")+")")},T=l.unpack,V=Math.round,z=function(){for(var e,t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,a,o,c=(t=T(t,"hsl"))[0],f=t[1],u=t[2];if(0===f)n=a=o=255*u;else{var i=[0,0,0],l=[0,0,0],s=u<.5?u*(1+f):u+f-u*f,d=2*u-s,h=c/360;i[0]=h+1/3,i[1]=h,i[2]=h-1/3;for(var p=0;p<3;p++)i[p]<0&&(i[p]+=1),i[p]>1&&(i[p]-=1),6*i[p]<1?l[p]=d+6*(s-d)*i[p]:2*i[p]<1?l[p]=s:3*i[p]<2?l[p]=d+(s-d)*(2/3-i[p])*6:l[p]=d;n=(e=[V(255*l[0]),V(255*l[1]),V(255*l[2])])[0],a=e[1],o=e[2]}return t.length>3?[n,a,o,t[3]]:[n,a,o,1]},X=z,$=s,W=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,K=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,U=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Z=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,J=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Q=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ee=Math.round,te=function(e){var t;if(e=e.toLowerCase().trim(),$.format.named)try{return $.format.named(e)}catch(e){}if(t=e.match(W)){for(var r=t.slice(1,4),n=0;n<3;n++)r[n]=+r[n];return r[3]=1,r}if(t=e.match(K)){for(var a=t.slice(1,5),o=0;o<4;o++)a[o]=+a[o];return a}if(t=e.match(U)){for(var c=t.slice(1,4),f=0;f<3;f++)c[f]=ee(2.55*c[f]);return c[3]=1,c}if(t=e.match(Z)){for(var u=t.slice(1,5),i=0;i<3;i++)u[i]=ee(2.55*u[i]);return u[3]=+u[3],u}if(t=e.match(J)){var l=t.slice(1,4);l[1]*=.01,l[2]*=.01;var s=X(l);return s[3]=1,s}if(t=e.match(Q)){var d=t.slice(1,4);d[1]*=.01,d[2]*=.01;var h=X(d);return h[3]=+t[4],h}};te.test=function(e){return W.test(e)||K.test(e)||U.test(e)||Z.test(e)||J.test(e)||Q.test(e)};var re=y,ne=g,ae=s,oe=l.type,ce=Y,fe=te;ne.prototype.css=function(e){return ce(this._rgb,e)},re.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ne,[null].concat(e,["css"])))},ae.format.css=fe,ae.autodetect.push({p:5,test:function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];if(!t.length&&"string"===oe(e)&&fe.test(e))return"css"}});var ue=g,ie=y,le=l.unpack;s.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=le(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r},ie.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ue,[null].concat(e,["gl"])))},ue.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var se=l.unpack,de=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n=se(e,"rgb"),a=n[0],o=n[1],c=n[2],f=Math.min(a,o,c),u=Math.max(a,o,c),i=u-f,l=100*i/255,s=f/(255-i)*100;return 0===i?r=Number.NaN:(a===u&&(r=(o-c)/i),o===u&&(r=2+(c-a)/i),c===u&&(r=4+(a-o)/i),(r*=60)<0&&(r+=360)),[r,l,s]},he=l.unpack,pe=Math.floor,be=function(){for(var e,t,r,n,a,o,c=[],f=arguments.length;f--;)c[f]=arguments[f];var u,i,l,s=(c=he(c,"hcg"))[0],d=c[1],h=c[2];h*=255;var p=255*d;if(0===d)u=i=l=h;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);var b=pe(s/=60),v=s-b,g=h*(1-d),m=g+p*(1-v),y=g+p*v,k=g+p;switch(b){case 0:u=(e=[k,y,g])[0],i=e[1],l=e[2];break;case 1:u=(t=[m,k,g])[0],i=t[1],l=t[2];break;case 2:u=(r=[g,k,y])[0],i=r[1],l=r[2];break;case 3:u=(n=[g,m,k])[0],i=n[1],l=n[2];break;case 4:u=(a=[y,g,k])[0],i=a[1],l=a[2];break;case 5:u=(o=[k,g,m])[0],i=o[1],l=o[2]}}return[u,i,l,c.length>3?c[3]:1]},ve=l.unpack,ge=l.type,me=y,ye=g,ke=s,we=de;ye.prototype.hcg=function(){return we(this._rgb)},me.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ye,[null].concat(e,["hcg"])))},ke.format.hcg=be,ke.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ve(e,"hcg"),"array"===ge(e)&&3===e.length)return"hcg"}});var Me=l.unpack,xe=l.last,Ee=Math.round,_e=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Me(e,"rgba"),n=r[0],a=r[1],o=r[2],c=r[3],f=xe(e)||"auto";void 0===c&&(c=1),"auto"===f&&(f=c<1?"rgba":"rgb");var u="000000"+((n=Ee(n))<<16|(a=Ee(a))<<8|(o=Ee(o))).toString(16);u=u.substr(u.length-6);var i="0"+Ee(255*c).toString(16);switch(i=i.substr(i.length-2),f.toLowerCase()){case"rgba":return"#"+u+i;case"argb":return"#"+i+u;default:return"#"+u}},Ne=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ie=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ae=function(e){if(e.match(Ne)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(Ie)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var r=parseInt(e,16);return[r>>24&255,r>>16&255,r>>8&255,Math.round((255&r)/255*100)/100]}throw new Error("unknown hex color: "+e)},Le=y,Pe=g,Ce=l.type,Se=s,Oe=_e;Pe.prototype.hex=function(e){return Oe(this._rgb,e)},Le.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Pe,[null].concat(e,["hex"])))},Se.format.hex=Ae,Se.autodetect.push({p:4,test:function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];if(!t.length&&"string"===Ce(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var qe=l.unpack,Re=l.TWOPI,je=Math.min,De=Math.sqrt,Fe=Math.acos,Be=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n=qe(e,"rgb"),a=n[0],o=n[1],c=n[2],f=je(a/=255,o/=255,c/=255),u=(a+o+c)/3,i=u>0?1-f/u:0;return 0===i?r=NaN:(r=(a-o+(a-c))/2,r/=De((a-o)*(a-o)+(a-c)*(o-c)),r=Fe(r),c>o&&(r=Re-r),r/=Re),[360*r,i,u]},Ge=l.unpack,He=l.limit,Ye=l.TWOPI,Te=l.PITHIRD,Ve=Math.cos,ze=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n,a,o=(e=Ge(e,"hsi"))[0],c=e[1],f=e[2];return isNaN(o)&&(o=0),isNaN(c)&&(c=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?n=1-((a=(1-c)/3)+(r=(1+c*Ve(Ye*o)/Ve(Te-Ye*o))/3)):o<2/3?a=1-((r=(1-c)/3)+(n=(1+c*Ve(Ye*(o-=1/3))/Ve(Te-Ye*o))/3)):r=1-((n=(1-c)/3)+(a=(1+c*Ve(Ye*(o-=2/3))/Ve(Te-Ye*o))/3)),[255*(r=He(f*r*3)),255*(n=He(f*n*3)),255*(a=He(f*a*3)),e.length>3?e[3]:1]},Xe=l.unpack,$e=l.type,We=y,Ke=g,Ue=s,Ze=Be;Ke.prototype.hsi=function(){return Ze(this._rgb)},We.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Ke,[null].concat(e,["hsi"])))},Ue.format.hsi=ze,Ue.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Xe(e,"hsi"),"array"===$e(e)&&3===e.length)return"hsi"}});var Je=l.unpack,Qe=l.type,et=y,tt=g,rt=s,nt=j;tt.prototype.hsl=function(){return nt(this._rgb)},et.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(tt,[null].concat(e,["hsl"])))},rt.format.hsl=z,rt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Je(e,"hsl"),"array"===Qe(e)&&3===e.length)return"hsl"}});var at=l.unpack,ot=Math.min,ct=Math.max,ft=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n,a,o=(e=at(e,"rgb"))[0],c=e[1],f=e[2],u=ot(o,c,f),i=ct(o,c,f),l=i-u;return a=i/255,0===i?(r=Number.NaN,n=0):(n=l/i,o===i&&(r=(c-f)/l),c===i&&(r=2+(f-o)/l),f===i&&(r=4+(o-c)/l),(r*=60)<0&&(r+=360)),[r,n,a]},ut=l.unpack,it=Math.floor,lt=function(){for(var e,t,r,n,a,o,c=[],f=arguments.length;f--;)c[f]=arguments[f];var u,i,l,s=(c=ut(c,"hsv"))[0],d=c[1],h=c[2];if(h*=255,0===d)u=i=l=h;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);var p=it(s/=60),b=s-p,v=h*(1-d),g=h*(1-d*b),m=h*(1-d*(1-b));switch(p){case 0:u=(e=[h,m,v])[0],i=e[1],l=e[2];break;case 1:u=(t=[g,h,v])[0],i=t[1],l=t[2];break;case 2:u=(r=[v,h,m])[0],i=r[1],l=r[2];break;case 3:u=(n=[v,g,h])[0],i=n[1],l=n[2];break;case 4:u=(a=[m,v,h])[0],i=a[1],l=a[2];break;case 5:u=(o=[h,v,g])[0],i=o[1],l=o[2]}}return[u,i,l,c.length>3?c[3]:1]},st=l.unpack,dt=l.type,ht=y,pt=g,bt=s,vt=ft;pt.prototype.hsv=function(){return vt(this._rgb)},ht.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(pt,[null].concat(e,["hsv"])))},bt.format.hsv=lt,bt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=st(e,"hsv"),"array"===dt(e)&&3===e.length)return"hsv"}});var gt={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},mt=gt,yt=l.unpack,kt=Math.pow,wt=function(e){return(e/=255)<=.04045?e/12.92:kt((e+.055)/1.055,2.4)},Mt=function(e){return e>mt.t3?kt(e,1/3):e/mt.t2+mt.t0},xt=function(e,t,r){return e=wt(e),t=wt(t),r=wt(r),[Mt((.4124564*e+.3575761*t+.1804375*r)/mt.Xn),Mt((.2126729*e+.7151522*t+.072175*r)/mt.Yn),Mt((.0193339*e+.119192*t+.9503041*r)/mt.Zn)]},Et=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=yt(e,"rgb"),n=r[0],a=r[1],o=r[2],c=xt(n,a,o),f=c[0],u=c[1],i=116*u-16;return[i<0?0:i,500*(f-u),200*(u-c[2])]},_t=gt,Nt=l.unpack,It=Math.pow,At=function(e){return 255*(e<=.00304?12.92*e:1.055*It(e,1/2.4)-.055)},Lt=function(e){return e>_t.t1?e*e*e:_t.t2*(e-_t.t0)},Pt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r,n,a,o=(e=Nt(e,"lab"))[0],c=e[1],f=e[2];return n=(o+16)/116,r=isNaN(c)?n:n+c/500,a=isNaN(f)?n:n-f/200,n=_t.Yn*Lt(n),r=_t.Xn*Lt(r),a=_t.Zn*Lt(a),[At(3.2404542*r-1.5371385*n-.4985314*a),At(-.969266*r+1.8760108*n+.041556*a),At(.0556434*r-.2040259*n+1.0572252*a),e.length>3?e[3]:1]},Ct=l.unpack,St=l.type,Ot=y,qt=g,Rt=s,jt=Et;qt.prototype.lab=function(){return jt(this._rgb)},Ot.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(qt,[null].concat(e,["lab"])))},Rt.format.lab=Pt,Rt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ct(e,"lab"),"array"===St(e)&&3===e.length)return"lab"}});var Dt=l.unpack,Ft=l.RAD2DEG,Bt=Math.sqrt,Gt=Math.atan2,Ht=Math.round,Yt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Dt(e,"lab"),n=r[0],a=r[1],o=r[2],c=Bt(a*a+o*o),f=(Gt(o,a)*Ft+360)%360;return 0===Ht(1e4*c)&&(f=Number.NaN),[n,c,f]},Tt=l.unpack,Vt=Et,zt=Yt,Xt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Tt(e,"rgb"),n=r[0],a=r[1],o=r[2],c=Vt(n,a,o),f=c[0],u=c[1],i=c[2];return zt(f,u,i)},$t=l.unpack,Wt=l.DEG2RAD,Kt=Math.sin,Ut=Math.cos,Zt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=$t(e,"lch"),n=r[0],a=r[1],o=r[2];return isNaN(o)&&(o=0),[n,Ut(o*=Wt)*a,Kt(o)*a]},Jt=l.unpack,Qt=Zt,er=Pt,tr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=(e=Jt(e,"lch"))[0],n=e[1],a=e[2],o=Qt(r,n,a),c=o[0],f=o[1],u=o[2],i=er(c,f,u);return[i[0],i[1],i[2],e.length>3?e[3]:1]},rr=l.unpack,nr=tr,ar=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=rr(e,"hcl").reverse();return nr.apply(void 0,r)},or=l.unpack,cr=l.type,fr=y,ur=g,ir=s,lr=Xt;ur.prototype.lch=function(){return lr(this._rgb)},ur.prototype.hcl=function(){return lr(this._rgb).reverse()},fr.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ur,[null].concat(e,["lch"])))},fr.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ur,[null].concat(e,["hcl"])))},ir.format.lch=tr,ir.format.hcl=ar,["lch","hcl"].forEach((function(e){return ir.autodetect.push({p:2,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=or(t,e),"array"===cr(t)&&3===t.length)return e}})}));var sr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},dr=s,hr=l.type,pr=sr,br=Ae,vr=_e;g.prototype.name=function(){for(var e=vr(this._rgb,"rgb"),t=0,r=Object.keys(pr);t0;)t[r]=arguments[r+1];if(!t.length&&"string"===hr(e)&&pr[e.toLowerCase()])return"named"}});var gr=l.unpack,mr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=gr(e,"rgb");return(r[0]<<16)+(r[1]<<8)+r[2]},yr=l.type,kr=y,wr=g,Mr=s,xr=l.type,Er=mr;wr.prototype.num=function(){return Er(this._rgb)},kr.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(wr,[null].concat(e,["num"])))},Mr.format.num=function(e){if("number"==yr(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},Mr.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===xr(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var _r=y,Nr=g,Ir=s,Ar=l.unpack,Lr=l.type,Pr=Math.round;Nr.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Pr)},Nr.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,r){return r<3?!1===e?t:Pr(t):t}))},_r.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Nr,[null].concat(e,["rgb"])))},Ir.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Ar(e,"rgba");return void 0===r[3]&&(r[3]=1),r},Ir.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ar(e,"rgba"),"array"===Lr(e)&&(3===e.length||4===e.length&&"number"==Lr(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var Cr=Math.log,Sr=function(e){var t,r,n,a=e/100;return a<66?(t=255,r=a<6?0:-155.25485562709179-.44596950469579133*(r=a-2)+104.49216199393888*Cr(r),n=a<20?0:.8274096064007395*(n=a-10)-254.76935184120902+115.67994401066147*Cr(n)):(t=351.97690566805693+.114206453784165*(t=a-55)-40.25366309332127*Cr(t),r=325.4494125711974+.07943456536662342*(r=a-50)-28.0852963507957*Cr(r),n=255),[t,r,n,1]},Or=Sr,qr=l.unpack,Rr=Math.round,jr=y,Dr=g,Fr=s,Br=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r,n=qr(e,"rgb"),a=n[0],o=n[2],c=1e3,f=4e4;f-c>.4;){var u=Or(r=.5*(f+c));u[2]/u[0]>=o/a?f=r:c=r}return Rr(r)};Dr.prototype.temp=Dr.prototype.kelvin=Dr.prototype.temperature=function(){return Br(this._rgb)},jr.temp=jr.kelvin=jr.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Dr,[null].concat(e,["temp"])))},Fr.format.temp=Fr.format.kelvin=Fr.format.temperature=Sr;var Gr=l.unpack,Hr=Math.cbrt,Yr=Math.pow,Tr=Math.sign,Vr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=Gr(e,"rgb"),n=r[0],a=r[1],o=r[2],c=[zr(n/255),zr(a/255),zr(o/255)],f=c[0],u=c[1],i=c[2],l=Hr(.4122214708*f+.5363325363*u+.0514459929*i),s=Hr(.2119034982*f+.6806995451*u+.1073969566*i),d=Hr(.0883024619*f+.2817188376*u+.6299787005*i);return[.2104542553*l+.793617785*s-.0040720468*d,1.9779984951*l-2.428592205*s+.4505937099*d,.0259040371*l+.7827717662*s-.808675766*d]};function zr(e){var t=Math.abs(e);return t<.04045?e/12.92:(Tr(e)||1)*Yr((t+.055)/1.055,2.4)}var Xr=l.unpack,$r=Math.pow,Wr=Math.sign,Kr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=(e=Xr(e,"lab"))[0],n=e[1],a=e[2],o=$r(r+.3963377774*n+.2158037573*a,3),c=$r(r-.1055613458*n-.0638541728*a,3),f=$r(r-.0894841775*n-1.291485548*a,3);return[255*Ur(4.0767416621*o-3.3077115913*c+.2309699292*f),255*Ur(-1.2684380046*o+2.6097574011*c-.3413193965*f),255*Ur(-.0041960863*o-.7034186147*c+1.707614701*f),e.length>3?e[3]:1]};function Ur(e){var t=Math.abs(e);return t>.0031308?(Wr(e)||1)*(1.055*$r(t,1/2.4)-.055):12.92*e}var Zr=l.unpack,Jr=l.type,Qr=y,en=g,tn=s,rn=Vr;en.prototype.oklab=function(){return rn(this._rgb)},Qr.oklab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(en,[null].concat(e,["oklab"])))},tn.format.oklab=Kr,tn.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Zr(e,"oklab"),"array"===Jr(e)&&3===e.length)return"oklab"}});var nn=l.unpack,an=Vr,on=Yt,cn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=nn(e,"rgb"),n=r[0],a=r[1],o=r[2],c=an(n,a,o),f=c[0],u=c[1],i=c[2];return on(f,u,i)},fn=l.unpack,un=Zt,ln=Kr,sn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=(e=fn(e,"lch"))[0],n=e[1],a=e[2],o=un(r,n,a),c=o[0],f=o[1],u=o[2],i=ln(c,f,u);return[i[0],i[1],i[2],e.length>3?e[3]:1]},dn=l.unpack,hn=l.type,pn=y,bn=g,vn=s,gn=cn;bn.prototype.oklch=function(){return gn(this._rgb)},pn.oklch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(bn,[null].concat(e,["oklch"])))},vn.format.oklch=sn,vn.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=dn(e,"oklch"),"array"===hn(e)&&3===e.length)return"oklch"}});var mn=g,yn=l.type;mn.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===yn(e)?t?(this._rgb[3]=e,this):new mn([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},g.prototype.clipped=function(){return this._rgb._clipped||!1};var kn=g,wn=gt;kn.prototype.darken=function(e){void 0===e&&(e=1);var t=this.lab();return t[0]-=wn.Kn*e,new kn(t,"lab").alpha(this.alpha(),!0)},kn.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},kn.prototype.darker=kn.prototype.darken,kn.prototype.brighter=kn.prototype.brighten,g.prototype.get=function(e){var t=e.split("."),r=t[0],n=t[1],a=this[r]();if(n){var o=r.indexOf(n)-("ok"===r.substr(0,2)?2:0);if(o>-1)return a[o];throw new Error("unknown channel "+n+" in mode "+r)}return a};var Mn=g,xn=l.type,En=Math.pow;Mn.prototype.luminance=function(e){if(void 0!==e&&"number"===xn(e)){if(0===e)return new Mn([0,0,0,this._rgb[3]],"rgb");if(1===e)return new Mn([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),r=20,n=function(t,a){var o=t.interpolate(a,.5,"rgb"),c=o.luminance();return Math.abs(e-c)<1e-7||!r--?o:c>e?n(t,o):n(o,a)},a=(t>e?n(new Mn([0,0,0]),this):n(this,new Mn([255,255,255]))).rgb();return new Mn(a.concat([this._rgb[3]]))}return _n.apply(void 0,this._rgb.slice(0,3))};var _n=function(e,t,r){return.2126*(e=Nn(e))+.7152*(t=Nn(t))+.0722*Nn(r)},Nn=function(e){return(e/=255)<=.03928?e/12.92:En((e+.055)/1.055,2.4)},In={},An=g,Ln=l.type,Pn=In,Cn=function(e,t,r){void 0===r&&(r=.5);for(var n=[],a=arguments.length-3;a-- >0;)n[a]=arguments[a+3];var o=n[0]||"lrgb";if(Pn[o]||n.length||(o=Object.keys(Pn)[0]),!Pn[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==Ln(e)&&(e=new An(e)),"object"!==Ln(t)&&(t=new An(t)),Pn[o](e,t,r).alpha(e.alpha()+r*(t.alpha()-e.alpha()))},Sn=g,On=Cn;Sn.prototype.mix=Sn.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return On.apply(void 0,[this,e,t].concat(r))};var qn=g;qn.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,r=t[3];return e?(this._rgb=[t[0]*r,t[1]*r,t[2]*r,r],this):new qn([t[0]*r,t[1]*r,t[2]*r,r],"rgb")};var Rn=g,jn=gt;Rn.prototype.saturate=function(e){void 0===e&&(e=1);var t=this.lch();return t[1]+=jn.Kn*e,t[1]<0&&(t[1]=0),new Rn(t,"lch").alpha(this.alpha(),!0)},Rn.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var Dn=g,Fn=l.type;Dn.prototype.set=function(e,t,r){void 0===r&&(r=!1);var n=e.split("."),a=n[0],o=n[1],c=this[a]();if(o){var f=a.indexOf(o)-("ok"===a.substr(0,2)?2:0);if(f>-1){if("string"==Fn(t))switch(t.charAt(0)){case"+":case"-":c[f]+=+t;break;case"*":c[f]*=+t.substr(1);break;case"/":c[f]/=+t.substr(1);break;default:c[f]=+t}else{if("number"!==Fn(t))throw new Error("unsupported value for Color.set");c[f]=t}var u=new Dn(c,a);return r?(this._rgb=u._rgb,this):u}throw new Error("unknown channel "+o+" in mode "+a)}return c};var Bn=g;In.rgb=function(e,t,r){var n=e._rgb,a=t._rgb;return new Bn(n[0]+r*(a[0]-n[0]),n[1]+r*(a[1]-n[1]),n[2]+r*(a[2]-n[2]),"rgb")};var Gn=g,Hn=Math.sqrt,Yn=Math.pow;In.lrgb=function(e,t,r){var n=e._rgb,a=n[0],o=n[1],c=n[2],f=t._rgb,u=f[0],i=f[1],l=f[2];return new Gn(Hn(Yn(a,2)*(1-r)+Yn(u,2)*r),Hn(Yn(o,2)*(1-r)+Yn(i,2)*r),Hn(Yn(c,2)*(1-r)+Yn(l,2)*r),"rgb")};var Tn=g;In.lab=function(e,t,r){var n=e.lab(),a=t.lab();return new Tn(n[0]+r*(a[0]-n[0]),n[1]+r*(a[1]-n[1]),n[2]+r*(a[2]-n[2]),"lab")};var Vn=g,zn=function(e,t,r,n){var a,o,c,f,u,i,l,s,d,h,p,b,v;return"hsl"===n?(c=e.hsl(),f=t.hsl()):"hsv"===n?(c=e.hsv(),f=t.hsv()):"hcg"===n?(c=e.hcg(),f=t.hcg()):"hsi"===n?(c=e.hsi(),f=t.hsi()):"lch"===n||"hcl"===n?(n="hcl",c=e.hcl(),f=t.hcl()):"oklch"===n&&(c=e.oklch().reverse(),f=t.oklch().reverse()),"h"!==n.substr(0,1)&&"oklch"!==n||(u=(a=c)[0],l=a[1],d=a[2],i=(o=f)[0],s=o[1],h=o[2]),isNaN(u)||isNaN(i)?isNaN(u)?isNaN(i)?b=Number.NaN:(b=i,1!=d&&0!=d||"hsv"==n||(p=s)):(b=u,1!=h&&0!=h||"hsv"==n||(p=l)):b=u+r*(i>u&&i-u>180?i-(u+360):i180?i+360-u:i-u),void 0===p&&(p=l+r*(s-l)),v=d+r*(h-d),new Vn("oklch"===n?[v,p,b]:[b,p,v],n)},Xn=zn,$n=function(e,t,r){return Xn(e,t,r,"lch")};In.lch=$n,In.hcl=$n;var Wn=g;In.num=function(e,t,r){var n=e.num(),a=t.num();return new Wn(n+r*(a-n),"num")};var Kn=zn;In.hcg=function(e,t,r){return Kn(e,t,r,"hcg")};var Un=zn;In.hsi=function(e,t,r){return Un(e,t,r,"hsi")};var Zn=zn;In.hsl=function(e,t,r){return Zn(e,t,r,"hsl")};var Jn=zn;In.hsv=function(e,t,r){return Jn(e,t,r,"hsv")};var Qn=g;In.oklab=function(e,t,r){var n=e.oklab(),a=t.oklab();return new Qn(n[0]+r*(a[0]-n[0]),n[1]+r*(a[1]-n[1]),n[2]+r*(a[2]-n[2]),"oklab")};var ea=zn;In.oklch=function(e,t,r){return ea(e,t,r,"oklch")};var ta=g,ra=l.clip_rgb,na=Math.pow,aa=Math.sqrt,oa=Math.PI,ca=Math.cos,fa=Math.sin,ua=Math.atan2,ia=function(e,t){for(var r=e.length,n=[0,0,0,0],a=0;a.9999999&&(n[3]=1),new ta(ra(n))},la=y,sa=l.type,da=Math.pow,ha=function(e){var t="rgb",r=la("#ccc"),n=0,a=[0,1],o=[],c=[0,0],f=!1,u=[],i=!1,l=0,s=1,d=!1,h={},p=!0,b=1,v=function(e){if((e=e||["#fff","#000"])&&"string"===sa(e)&&la.brewer&&la.brewer[e.toLowerCase()]&&(e=la.brewer[e.toLowerCase()]),"array"===sa(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t2?function(e){if(null!=f){for(var t=f.length-1,r=0;r=f[r];)r++;return r-1}return 0}(e)/(f.length-2):s!==l?(e-l)/(s-l):1,i=m(i),n||(i=g(i)),1!==b&&(i=da(i,b)),i=c[0]+i*(1-c[0]-c[1]),i=Math.min(1,Math.max(0,i));var d=Math.floor(1e4*i);if(p&&h[d])a=h[d];else{if("array"===sa(u))for(var v=0;v=y&&v===o.length-1){a=u[v];break}if(i>y&&i2){var i=e.map((function(t,r){return r/(e.length-1)})),d=e.map((function(e){return(e-l)/(s-l)}));d.every((function(e,t){return i[t]===e}))||(m=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=d[t+1];)t++;var r=(e-d[t])/(d[t+1]-d[t]);return i[t]+r*(i[t+1]-i[t])})}}return a=[l,s],w},w.mode=function(e){return arguments.length?(t=e,k(),w):t},w.range=function(e,t){return v(e),w},w.out=function(e){return i=e,w},w.spread=function(e){return arguments.length?(n=e,w):n},w.correctLightness=function(e){return null==e&&(e=!0),d=e,k(),g=d?function(e){for(var t=y(0,!0).lab()[0],r=y(1,!0).lab()[0],n=t>r,a=y(e,!0).lab()[0],o=t+(r-t)*e,c=a-o,f=0,u=1,i=20;Math.abs(c)>.01&&i-- >0;)n&&(c*=-1),c<0?(f=e,e+=.5*(u-e)):(u=e,e+=.5*(f-e)),c=(a=y(e,!0).lab()[0])-o;return e}:function(e){return e},w},w.padding=function(e){return null!=e?("number"===sa(e)&&(e=[e,e]),c=e,w):c},w.colors=function(t,r){arguments.length<2&&(r="hex");var n=[];if(0===arguments.length)n=u.slice(0);else if(1===t)n=[w(.5)];else if(t>1){var o=a[0],c=a[1]-o;n=function(e,t,r){for(var n=[],a=eo;a?c++:c--)n.push(c);return n}(0,t,!1).map((function(e){return w(o+e/(t-1)*c)}))}else{e=[];var i=[];if(f&&f.length>2)for(var l=1,s=f.length,d=1<=s;d?ls;d?l++:l--)i.push(.5*(f[l-1]+f[l]));else i=a;n=i.map((function(e){return w(e)}))}return la[r]&&(n=n.map((function(e){return e[r]()}))),n},w.cache=function(e){return null!=e?(p=e,w):p},w.gamma=function(e){return null!=e?(b=e,w):b},w.nodata=function(e){return null!=e?(r=la(e),w):r},w};var pa=g,ba=ha,va=y,ga=function(e,t,r){if(!ga[r])throw new Error("unknown blend mode "+r);return ga[r](e,t)},ma=function(e){return function(t,r){var n=va(r).rgb(),a=va(t).rgb();return va.rgb(e(n,a))}},ya=function(e){return function(t,r){var n=[];return n[0]=e(t[0],r[0]),n[1]=e(t[1],r[1]),n[2]=e(t[2],r[2]),n}};ga.normal=ma(ya((function(e){return e}))),ga.multiply=ma(ya((function(e,t){return e*t/255}))),ga.screen=ma(ya((function(e,t){return 255*(1-(1-e/255)*(1-t/255))}))),ga.overlay=ma(ya((function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))}))),ga.darken=ma(ya((function(e,t){return e>t?t:e}))),ga.lighten=ma(ya((function(e,t){return e>t?e:t}))),ga.dodge=ma(ya((function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e}))),ga.burn=ma(ya((function(e,t){return 255*(1-(1-t/255)/(e/255))})));for(var ka=ga,wa=l.type,Ma=l.clip_rgb,xa=l.TWOPI,Ea=Math.pow,_a=Math.sin,Na=Math.cos,Ia=y,Aa=g,La=Math.floor,Pa=Math.random,Ca=c,Sa=Math.log,Oa=Math.pow,qa=Math.floor,Ra=Math.abs,ja=function(e,t){void 0===t&&(t=null);var r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===Ca(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===Ca(e)&&(e=e[t]),null==e||isNaN(e)||(r.values.push(e),r.sum+=e,er.max&&(r.max=e),r.count+=1)})),r.domain=[r.min,r.max],r.limits=function(e,t){return Da(r,e,t)},r},Da=function(e,t,r){void 0===t&&(t="equal"),void 0===r&&(r=7),"array"==Ca(e)&&(e=ja(e));var n=e.min,a=e.max,o=e.values.sort((function(e,t){return e-t}));if(1===r)return[n,a];var c=[];if("c"===t.substr(0,1)&&(c.push(n),c.push(a)),"e"===t.substr(0,1)){c.push(n);for(var f=1;f 0");var u=Math.LOG10E*Sa(n),i=Math.LOG10E*Sa(a);c.push(n);for(var l=1;l200&&(y=!1)}for(var R={},j=0;j=360;)p-=360;c[h]=p}else c[h]=c[h]/f[h];return d/=n,new ta(c,t).alpha(d>.99999?1:d,!0)},fo.bezier=function(e){var t=function(e){var t,r,n,a,o,c,f;if(2===(e=e.map((function(e){return new pa(e)}))).length)t=e.map((function(e){return e.lab()})),o=t[0],c=t[1],a=function(e){var t=[0,1,2].map((function(t){return o[t]+e*(c[t]-o[t])}));return new pa(t,"lab")};else if(3===e.length)r=e.map((function(e){return e.lab()})),o=r[0],c=r[1],f=r[2],a=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*o[t]+2*(1-e)*e*c[t]+e*e*f[t]}));return new pa(t,"lab")};else if(4===e.length){var u;n=e.map((function(e){return e.lab()})),o=n[0],c=n[1],f=n[2],u=n[3],a=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*(1-e)*o[t]+3*(1-e)*(1-e)*e*c[t]+3*(1-e)*e*e*f[t]+e*e*e*u[t]}));return new pa(t,"lab")}}else{if(!(e.length>=5))throw new RangeError("No point in running bezier with only one color.");var i,l,s;i=e.map((function(e){return e.lab()})),s=e.length-1,l=function(e){for(var t=[1,1],r=1;rn?(r+.05)/(n+.05):(n+.05)/(r+.05)},fo.deltaE=function(e,t,r,n,a){void 0===r&&(r=1),void 0===n&&(n=1),void 0===a&&(a=1);var o=function(e){return 360*e/(2*Ua)},c=function(e){return 2*Ua*e/360};e=new Ga(e),t=new Ga(t);var f=Array.from(e.lab()),u=f[0],i=f[1],l=f[2],s=Array.from(t.lab()),d=s[0],h=s[1],p=s[2],b=(u+d)/2,v=(Ha(Ya(i,2)+Ya(l,2))+Ha(Ya(h,2)+Ya(p,2)))/2,g=.5*(1-Ha(Ya(v,7)/(Ya(v,7)+Ya(25,7)))),m=i*(1+g),y=h*(1+g),k=Ha(Ya(m,2)+Ya(l,2)),w=Ha(Ya(y,2)+Ya(p,2)),M=(k+w)/2,x=o(za(l,m)),E=o(za(p,y)),_=x>=0?x:x+360,N=E>=0?E:E+360,I=Xa(_-N)>180?(_+N+360)/2:(_+N)/2,A=1-.17*$a(c(I-30))+.24*$a(c(2*I))+.32*$a(c(3*I+6))-.2*$a(c(4*I-63)),L=N-_;L=Xa(L)<=180?L:N<=_?L+360:L-360,L=2*Ha(k*w)*Wa(c(L)/2);var P=d-u,C=w-k,S=1+.015*Ya(b-50,2)/Ha(20+Ya(b-50,2)),O=1+.045*M,q=1+.015*M*A,R=30*Ka(-Ya((I-275)/25,2)),j=-2*Ha(Ya(M,7)/(Ya(M,7)+Ya(25,7)))*Wa(2*c(R)),D=Ha(Ya(P/(r*S),2)+Ya(C/(n*O),2)+Ya(L/(a*q),2)+j*(C/(n*O))*(L/(a*q)));return Va(0,Ta(100,D))},fo.distance=function(e,t,r){void 0===r&&(r="lab"),e=new Za(e),t=new Za(t);var n=e.get(r),a=t.get(r),o=0;for(var c in n){var f=(n[c]||0)-(a[c]||0);o+=f*f}return Math.sqrt(o)},fo.limits=Fa.limits,fo.valid=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(Ja,[null].concat(e))),!0}catch(e){return!1}},fo.scales=to,fo.colors=sr,fo.brewer=co,fo}()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";document.querySelector(".prompt"),document.querySelector("html");document.addEventListener("keydown",(function(e){"/"===e.key&&(e.preventDefault(),history.pushState(null,"","console"))}));var e,t=r(768),n=r.n(t),a=function(e){try{if(!c(e))return!1;var t=f(n()(e)),r=u(t),a=o(t),d=i(r)?"underline":"none";return l(t,r,a,d),s(t,r,a,d),!0}catch(e){return console.error(e),!1}},o=function(e){return e.luminance()<.95?e.brighten(.5):e.darken(.05)},c=function(e){return n().valid(e)},f=function(e){var t=e.luminance();t<.15?e=e.luminance(.15):t>.85&&(e=e.luminance(.85));var r=e.get("hsl.s");return e.set("hsl.s",Math.min(r,.85))},u=function(e){if(0===e.get("hsl.s")){var t=["#00796b","#00acc1","#1976d2","#2196f3"];return n()(t[Math.floor(Math.random()*t.length)]).set("hsl.s",1)}var r=e.set("hsl.s",1);if(r.set("hsl.l",.5),n().contrast(r,e)>=1.75)return r;for(var a=1;a<=20;a++){var o=r.set("hsl.l",r.get("hsl.l")+.05*a);if(n().contrast(o,e)>=1.75)return o}return r},i=function(e){return e.get("hsl.s")<.2},l=function(e,t,r,n){localStorage.setItem("ACCENT_COLOR",h(e)),localStorage.setItem("LINK_COLOR",h(t)),localStorage.setItem("LINK_COLOR_HOVER",h(r)),localStorage.setItem("LINK_DECORATION",n)},s=function(e,t,r,n){document.documentElement.style.setProperty("--accent-color-base",d(e)),document.documentElement.style.setProperty("--accent-color-link",h(t)),document.documentElement.style.setProperty("--accent-color-link-hover",h(r)),document.documentElement.style.setProperty("--link-decoration",n)},d=function(e){return e.rgb().join(", ")},h=function(e){return"rgb("+e.rgb().join(", ")+")"},p=function(e){var t,r=e[0];if(r.startsWith("PS1=")){var n=r.slice(4).trim();return document.querySelectorAll(".system-prompt").forEach((function(e){e.textContent=n})),t=n,localStorage.setItem("PS1",t),"Prompt character changed to ".concat(n)}return"Invalid export command. Usage: export PS1=$"},b=function(e){var t=e.join(" ").trim();return a(t)?"Accent changed to ".concat(t):"Invalid color. Please provide: #000000, rgb(0, 0, 0) or any valid css color."},v=function(){var e=Math.floor(Math.random()*y.length);return y[e]},g={clear:{execute:function(e){for(var t=document.querySelector(".stdout-log");null==t?void 0:t.firstChild;)t.removeChild(t.firstChild);return"Console cleared"},description:"Clears the terminal screen",flags:{}},echo:{execute:function(e){return t=e.join(" "),(r=document.createElement("div")).classList.add("oval"),r.innerText=t,r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.zIndex="500",r.style.left="50px",r.style.top="50px",document.body.appendChild(r),r.classList.add("oval-animate"),r.addEventListener("animationend",(function(){document.body.removeChild(r)})),"Echo effect triggered for ".concat(e.join(" "));var t,r},description:"Prints back the input received",flags:{}},help:{execute:function(e){for(var t="Available commands:\n",r=0,n=Object.entries(g);r")},description:"Shows help information about all commands",flags:{}},bgcolor:{execute:b,description:"Changes the background color",flags:{}},export:{execute:p,description:"Exports a variable",flags:{}},restore:{execute:function(e){var t=localStorage.getItem("PS1");t&&p(["PS1="+t]);var r=localStorage.getItem("ACCENT_COLOR");return r&&b([r]),"Restored terminal settings"},description:"Restores terminal settings",flags:{}}},m={cd:{execute:v},rm:{execute:v},sudo:{execute:v},mv:{execute:v},chmod:{execute:v},chown:{execute:v},mkdir:{execute:v},ls:{execute:v},cat:{execute:v},ps:{execute:v},top:{execute:v},vi:{execute:v},nano:{execute:v},exit:{execute:v},man:{execute:v},grep:{execute:v},find:{execute:v},ping:{execute:v},pwd:{execute:v},df:{execute:v},du:{execute:v},curl:{execute:v},wget:{execute:v},ifconfig:{execute:v}},y=["Nice try, but this isn't a real terminal!","Did you really think that would work?","You must think you're pretty clever, huh?","I'm sorry, Dave. I'm afraid I can't do that."];function k(e){var t,r,n=e.split(" ");!function(e,t){var r=document.querySelector(".tab-panels").querySelector(".stdout-log"),n=document.createElement("li");n.innerHTML='\n
\n
\n '.concat(e,'\n
').concat(t,"
\n
\n
\n "),r.insertBefore(n,r.firstChild)}(e,(t=n[0],r=n.slice(1),t in m?m[t].execute(r):t in g?g[t].execute(r):"Command not found: ".concat(t)).replace(/\n/g,"
"))}new(function(){function e(e,t){this.commandHistory=[],this.historyIndex=-1,this.terminal=e,this.prompt=e.querySelector(".prompt"),this.mirrorElement=e.querySelector(".input-mirror"),this.handleCommand=t,this.initialize()}return e.prototype.initialize=function(){var e=this;this.prompt.addEventListener("keydown",(function(t){"Enter"===t.key&&e.prompt.value.trim()?(t.preventDefault(),e.commandHistory.push(e.prompt.value.trim()),e.historyIndex=e.commandHistory.length,e.handleCommand(e.prompt.value.trim()),e.createRipple(),e.setPromptValue("")):"ArrowUp"===t.key?(t.preventDefault(),e.historyIndex>0&&(e.historyIndex--,e.setPromptValue(e.commandHistory[e.historyIndex]))):"ArrowDown"===t.key&&(t.preventDefault(),e.historyIndex