git-truck 0.0.0-04d9aa7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,350 @@
1
+ import{a as vb}from"/build/_shared/chunk-XMAWJ27N.js";import{b as xs}from"/build/_shared/chunk-2EHCKJST.js";import{a as yb,b as xb,c as wb,d as kb,e as N,f as Is,g as Gs,h as Ns,i as Hs,j as qs,k as zs,l as Vs,m as _o,n as Us}from"/build/_shared/chunk-EOMKHWUT.js";import{A as xe,B as Ir,C as $s,D as gi,E as Lt,F as fr,G as Ds,H as js,I as ft,J as tt,K as bi,L as Gr,M as Fs,O as Bs,Q as vi,a as Co,b as hi,c as G,d as Mo,e as ws,f as mi,g as Ao,h as ks,i as Ss,j as Cs,k as To,l as Ms,m as As,n as Ts,o as Ps,p as Ls,q as Os,r as Po,s as Pt,t as _s,u as Es,v as zt,w as _e,x as Lo,y as Rs,z as Oo}from"/build/_shared/chunk-FTSBCPJ3.js";import{b as ne,c as R,d as ee,e as So,f as gs,g as ur,h as bs,k as Br,o as ut,p as vs,q as ys,r as Tt,v as X}from"/build/_shared/chunk-2BPXJFRU.js";var uc=ne((Ax,cc)=>{cc.exports={}});var dc=ne((Tx,fc)=>{fc.exports={}});var bc=ne(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.default=void 0;var Db={sum:function(t){return t.reduce(function(r,o){return r+o})}},jb=Db;Go.default=jb});var No=ne((Gx,vc)=>{function Fb(e){return Object.prototype.toString.call(e).slice(8,-1)}vc.exports=Fb});var Ci=ne((Nx,yc)=>{function Bb(e){return!!e&&typeof e=="object"&&e.constructor===Object}yc.exports=Bb});var Ho=ne((Hx,xc)=>{function Ib(e,t){return Object.prototype.hasOwnProperty.call(e,t)}xc.exports=Ib});var Cc=ne((qx,Sc)=>{var Gb=Ho(),qo,kc;function Nb(){kc=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],qo=!0;for(var e in{toString:null})qo=!1}function Hb(e,t,r){var o,i=0;qo==null&&Nb();for(o in e)if(wc(t,e,o,r)===!1)break;if(qo)for(var l=e.constructor,c=!!l&&e===l.prototype;(o=kc[i++])&&!((o!=="constructor"||!c&&Gb(e,o))&&e[o]!==Object.prototype[o]&&wc(t,e,o,r)===!1););}function wc(e,t,r,o){return e.call(o,t[r],r,t)}Sc.exports=Hb});var Nr=ne((zx,Mc)=>{var qb=Ho(),zb=Cc();function Vb(e,t,r){zb(e,function(o,i){if(qb(e,i))return t.call(r,e[i],i,e)})}Mc.exports=Vb});var Tc=ne((Vx,Ac)=>{var Ub=Nr();function Wb(e,t){for(var r=0,o=arguments.length,i;++r<o;)i=arguments[r],i!=null&&Ub(i,Xb,e);return e}function Xb(e,t){this[t]=e}Ac.exports=Wb});var Lc=ne((Ux,Pc)=>{var Qb=No(),Jb=Ci(),Kb=Tc();function Yb(e){switch(Qb(e)){case"Object":return Zb(e);case"Array":return r0(e);case"RegExp":return e0(e);case"Date":return t0(e);default:return e}}function Zb(e){return Jb(e)?Kb({},e):e}function e0(e){var t="";return t+=e.multiline?"m":"",t+=e.global?"g":"",t+=e.ignoreCase?"i":"",new RegExp(e.source,t)}function t0(e){return new Date(+e)}function r0(e){return e.slice()}Pc.exports=Yb});var _c=ne((Wx,Oc)=>{var o0=Lc(),n0=Nr(),i0=No(),a0=Ci();function Mi(e,t){switch(i0(e)){case"Object":return l0(e,t);case"Array":return s0(e,t);default:return o0(e)}}function l0(e,t){if(a0(e)){var r={};return n0(e,function(o,i){this[i]=Mi(o,t)},r),r}else return t?t(e):e}function s0(e,t){for(var r=[],o=-1,i=e.length,l;++o<i;)r[o]=Mi(e[o],t);return r}Oc.exports=Mi});var zo=ne((Xx,Ec)=>{function c0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}Ec.exports=c0});var Ai=ne((Qx,Rc)=>{var u0=No();function f0(e,t){return u0(e)===t}Rc.exports=f0});var Ti=ne((Jx,$c)=>{var d0=Ai();function p0(e){return d0(e,"Object")}$c.exports=p0});var Vo=ne((Kx,Dc)=>{var h0=Ai(),m0=Array.isArray||function(e){return h0(e,"Array")};Dc.exports=m0});var Fc=ne((Yx,jc)=>{function g0(e){return e}jc.exports=g0});var Ic=ne((Zx,Bc)=>{function b0(e){return function(t){return t[e]}}Bc.exports=b0});var Hc=ne((e2,Nc)=>{var v0=Nr(),Gc=Vo();function y0(e,t){for(var r=-1,o=e.length;++r<o;)if(Pi(e[r],t))return!0;return!1}function x0(e,t){for(var r=-1,o=t.length;++r<o;)if(!y0(e,t[r]))return!1;return!0}function w0(e,t){var r=!0;return v0(t,function(o,i){if(!Pi(e[i],o))return r=!1}),r}function Pi(e,t){return e&&typeof e=="object"&&t&&typeof t=="object"?Gc(e)&&Gc(t)?x0(e,t):w0(e,t):e===t}Nc.exports=Pi});var Li=ne((t2,qc)=>{var k0=Fc(),S0=Ic(),C0=Hc();function M0(e,t){if(e==null)return k0;switch(typeof e){case"function":return typeof t<"u"?function(r,o,i){return e.call(t,r,o,i)}:e;case"object":return function(r){return C0(r,e)};case"string":case"number":return S0(e)}}qc.exports=M0});var Vc=ne((r2,zc)=>{var A0=Nr(),T0=Li();function P0(e,t,r){t=T0(t,r);var o=!0;return A0(e,function(i,l){if(!t(i,l,e))return o=!1,!1}),o}zc.exports=P0});var Jc=ne((o2,Qc)=>{var Xc=Ho(),Uc=Vc(),Wc=Ti(),L0=zo();function O0(e){return function(t,r){return Xc(this,r)&&e(t,this[r])}}function _0(e,t){return Xc(this,t)}function E0(e,t,r){return r=r||L0,!Wc(e)||!Wc(t)?r(e,t):Uc(e,O0(r),t)&&Uc(t,_0,e)}Qc.exports=E0});var Yc=ne((n2,Kc)=>{var R0=Li();function $0(e,t,r){t=R0(t,r);var o=!0;if(e==null)return o;for(var i=-1,l=e.length;++i<l;)if(!t(e[i],i,e)){o=!1;break}return o}Kc.exports=$0});var tu=ne((i2,eu)=>{var D0=zo(),Zc=Vo(),j0=Yc();function F0(e,t,r){return r=r||D0,!Zc(e)||!Zc(t)?r(e,t):e.length!==t.length?!1:j0(e,B0(r),t)}function B0(e){return function(t,r){return r in this&&e(t,this[r])}}eu.exports=F0});var au=ne((a2,iu)=>{var I0=zo(),ru=Ti(),ou=Vo(),G0=Jc(),N0=tu();function nu(e,t,r){r=r||I0;var o=ru(e)&&ru(t),i=!o&&ou(e)&&ou(t);if(!o&&!i)return r(e,t);function l(f,h){return nu(f,h,r)}var c=o?G0:N0;return c(e,t,l)}iu.exports=nu});var lu=ne((Oi,_i)=>{(function(e,t){typeof Oi=="object"&&typeof _i<"u"?_i.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.chroma=t())})(Oi,function(){"use strict";for(var e=function(n,a,s){return a===void 0&&(a=0),s===void 0&&(s=1),n<a?a:n>s?s:n},t=e,r=function(n){n._clipped=!1,n._unclipped=n.slice(0);for(var a=0;a<=3;a++)a<3?((n[a]<0||n[a]>255)&&(n._clipped=!0),n[a]=t(n[a],0,255)):a===3&&(n[a]=t(n[a],0,1));return n},o={},i=0,l=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];i<l.length;i+=1){var c=l[i];o["[object "+c+"]"]=c.toLowerCase()}var f=function(n){return o[Object.prototype.toString.call(n)]||"object"},h=f,m=function(n,a){return a===void 0&&(a=null),n.length>=3?Array.prototype.slice.call(n):h(n[0])=="object"&&a?a.split("").filter(function(s){return n[0][s]!==void 0}).map(function(s){return n[0][s]}):n[0]},v=f,S=function(n){if(n.length<2)return null;var a=n.length-1;return v(n[a])=="string"?n[a].toLowerCase():null},y=Math.PI,b={clip_rgb:r,limit:e,type:f,unpack:m,last:S,PI:y,TWOPI:y*2,PITHIRD:y/3,DEG2RAD:y/180,RAD2DEG:180/y},k={format:{},autodetect:[]},M=b.last,E=b.clip_rgb,D=b.type,B=k,H=function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];var u=this;if(D(a[0])==="object"&&a[0].constructor&&a[0].constructor===this.constructor)return a[0];var p=M(a),g=!1;if(!p){g=!0,B.sorted||(B.autodetect=B.autodetect.sort(function(A,j){return j.p-A.p}),B.sorted=!0);for(var d=0,x=B.autodetect;d<x.length;d+=1){var w=x[d];if(p=w.test.apply(w,a),p)break}}if(B.format[p]){var C=B.format[p].apply(null,g?a:a.slice(0,-1));u._rgb=E(C)}else throw new Error("unknown format: "+a);u._rgb.length===3&&u._rgb.push(1)};H.prototype.toString=function(){return D(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var L=H,W=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(W.Color,[null].concat(n)))};W.Color=L,W.version="2.4.2";var $=W,ie=b.unpack,ae=Math.max,me=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=ie(n,"rgb"),u=s[0],p=s[1],g=s[2];u=u/255,p=p/255,g=g/255;var d=1-ae(u,ae(p,g)),x=d<1?1/(1-d):0,w=(1-u-d)*x,C=(1-p-d)*x,A=(1-g-d)*x;return[w,C,A,d]},fe=me,be=b.unpack,we=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=be(n,"cmyk");var s=n[0],u=n[1],p=n[2],g=n[3],d=n.length>4?n[4]:1;return g===1?[0,0,0,d]:[s>=1?0:255*(1-s)*(1-g),u>=1?0:255*(1-u)*(1-g),p>=1?0:255*(1-p)*(1-g),d]},Re=we,kt=$,lt=L,Er=k,Rr=b.unpack,jn=b.type,Fn=fe;lt.prototype.cmyk=function(){return Fn(this._rgb)},kt.cmyk=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(lt,[null].concat(n,["cmyk"])))},Er.format.cmyk=Re,Er.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Rr(n,"cmyk"),jn(n)==="array"&&n.length===4)return"cmyk"}});var Bn=b.unpack,Gt=b.last,$r=function(n){return Math.round(n*100)/100},ap=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Bn(n,"hsla"),u=Gt(n)||"lsa";return s[0]=$r(s[0]||0),s[1]=$r(s[1]*100)+"%",s[2]=$r(s[2]*100)+"%",u==="hsla"||s.length>3&&s[3]<1?(s[3]=s.length>3?s[3]:1,u="hsla"):s.length=3,u+"("+s.join(",")+")"},lp=ap,sp=b.unpack,cp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=sp(n,"rgba");var s=n[0],u=n[1],p=n[2];s/=255,u/=255,p/=255;var g=Math.min(s,u,p),d=Math.max(s,u,p),x=(d+g)/2,w,C;return d===g?(w=0,C=Number.NaN):w=x<.5?(d-g)/(d+g):(d-g)/(2-d-g),s==d?C=(u-p)/(d-g):u==d?C=2+(p-s)/(d-g):p==d&&(C=4+(s-u)/(d-g)),C*=60,C<0&&(C+=360),n.length>3&&n[3]!==void 0?[C,w,x,n[3]]:[C,w,x]},Ha=cp,up=b.unpack,fp=b.last,dp=lp,pp=Ha,In=Math.round,hp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=up(n,"rgba"),u=fp(n)||"rgb";return u.substr(0,3)=="hsl"?dp(pp(s),u):(s[0]=In(s[0]),s[1]=In(s[1]),s[2]=In(s[2]),(u==="rgba"||s.length>3&&s[3]<1)&&(s[3]=s.length>3?s[3]:1,u="rgba"),u+"("+s.slice(0,u==="rgb"?3:4).join(",")+")")},mp=hp,gp=b.unpack,Gn=Math.round,bp=function(){for(var n,a=[],s=arguments.length;s--;)a[s]=arguments[s];a=gp(a,"hsl");var u=a[0],p=a[1],g=a[2],d,x,w;if(p===0)d=x=w=g*255;else{var C=[0,0,0],A=[0,0,0],j=g<.5?g*(1+p):g+p-g*p,T=2*g-j,I=u/360;C[0]=I+1/3,C[1]=I,C[2]=I-1/3;for(var F=0;F<3;F++)C[F]<0&&(C[F]+=1),C[F]>1&&(C[F]-=1),6*C[F]<1?A[F]=T+(j-T)*6*C[F]:2*C[F]<1?A[F]=j:3*C[F]<2?A[F]=T+(j-T)*(2/3-C[F])*6:A[F]=T;n=[Gn(A[0]*255),Gn(A[1]*255),Gn(A[2]*255)],d=n[0],x=n[1],w=n[2]}return a.length>3?[d,x,w,a[3]]:[d,x,w,1]},qa=bp,za=qa,Va=k,Ua=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Wa=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Xa=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Qa=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ja=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Ka=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ya=Math.round,Za=function(n){n=n.toLowerCase().trim();var a;if(Va.format.named)try{return Va.format.named(n)}catch{}if(a=n.match(Ua)){for(var s=a.slice(1,4),u=0;u<3;u++)s[u]=+s[u];return s[3]=1,s}if(a=n.match(Wa)){for(var p=a.slice(1,5),g=0;g<4;g++)p[g]=+p[g];return p}if(a=n.match(Xa)){for(var d=a.slice(1,4),x=0;x<3;x++)d[x]=Ya(d[x]*2.55);return d[3]=1,d}if(a=n.match(Qa)){for(var w=a.slice(1,5),C=0;C<3;C++)w[C]=Ya(w[C]*2.55);return w[3]=+w[3],w}if(a=n.match(Ja)){var A=a.slice(1,4);A[1]*=.01,A[2]*=.01;var j=za(A);return j[3]=1,j}if(a=n.match(Ka)){var T=a.slice(1,4);T[1]*=.01,T[2]*=.01;var I=za(T);return I[3]=+a[4],I}};Za.test=function(n){return Ua.test(n)||Wa.test(n)||Xa.test(n)||Qa.test(n)||Ja.test(n)||Ka.test(n)};var vp=Za,yp=$,el=L,tl=k,xp=b.type,wp=mp,rl=vp;el.prototype.css=function(n){return wp(this._rgb,n)},yp.css=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(el,[null].concat(n,["css"])))},tl.format.css=rl,tl.autodetect.push({p:5,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&xp(n)==="string"&&rl.test(n))return"css"}});var ol=L,kp=$,Sp=k,Cp=b.unpack;Sp.format.gl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Cp(n,"rgba");return s[0]*=255,s[1]*=255,s[2]*=255,s},kp.gl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ol,[null].concat(n,["gl"])))},ol.prototype.gl=function(){var n=this._rgb;return[n[0]/255,n[1]/255,n[2]/255,n[3]]};var Mp=b.unpack,Ap=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Mp(n,"rgb"),u=s[0],p=s[1],g=s[2],d=Math.min(u,p,g),x=Math.max(u,p,g),w=x-d,C=w*100/255,A=d/(255-w)*100,j;return w===0?j=Number.NaN:(u===x&&(j=(p-g)/w),p===x&&(j=2+(g-u)/w),g===x&&(j=4+(u-p)/w),j*=60,j<0&&(j+=360)),[j,C,A]},Tp=Ap,Pp=b.unpack,Lp=Math.floor,Op=function(){for(var n,a,s,u,p,g,d=[],x=arguments.length;x--;)d[x]=arguments[x];d=Pp(d,"hcg");var w=d[0],C=d[1],A=d[2],j,T,I;A=A*255;var F=C*255;if(C===0)j=T=I=A;else{w===360&&(w=0),w>360&&(w-=360),w<0&&(w+=360),w/=60;var Q=Lp(w),Z=w-Q,re=A*(1-C),le=re+F*(1-Z),Te=re+F*Z,Me=re+F;switch(Q){case 0:n=[Me,Te,re],j=n[0],T=n[1],I=n[2];break;case 1:a=[le,Me,re],j=a[0],T=a[1],I=a[2];break;case 2:s=[re,Me,Te],j=s[0],T=s[1],I=s[2];break;case 3:u=[re,le,Me],j=u[0],T=u[1],I=u[2];break;case 4:p=[Te,re,Me],j=p[0],T=p[1],I=p[2];break;case 5:g=[Me,re,le],j=g[0],T=g[1],I=g[2];break}}return[j,T,I,d.length>3?d[3]:1]},_p=Op,Ep=b.unpack,Rp=b.type,$p=$,nl=L,il=k,Dp=Tp;nl.prototype.hcg=function(){return Dp(this._rgb)},$p.hcg=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(nl,[null].concat(n,["hcg"])))},il.format.hcg=_p,il.autodetect.push({p:1,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Ep(n,"hcg"),Rp(n)==="array"&&n.length===3)return"hcg"}});var jp=b.unpack,Fp=b.last,ho=Math.round,Bp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=jp(n,"rgba"),u=s[0],p=s[1],g=s[2],d=s[3],x=Fp(n)||"auto";d===void 0&&(d=1),x==="auto"&&(x=d<1?"rgba":"rgb"),u=ho(u),p=ho(p),g=ho(g);var w=u<<16|p<<8|g,C="000000"+w.toString(16);C=C.substr(C.length-6);var A="0"+ho(d*255).toString(16);switch(A=A.substr(A.length-2),x.toLowerCase()){case"rgba":return"#"+C+A;case"argb":return"#"+A+C;default:return"#"+C}},al=Bp,Ip=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Gp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Np=function(n){if(n.match(Ip)){(n.length===4||n.length===7)&&(n=n.substr(1)),n.length===3&&(n=n.split(""),n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);var a=parseInt(n,16),s=a>>16,u=a>>8&255,p=a&255;return[s,u,p,1]}if(n.match(Gp)){(n.length===5||n.length===9)&&(n=n.substr(1)),n.length===4&&(n=n.split(""),n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]);var g=parseInt(n,16),d=g>>24&255,x=g>>16&255,w=g>>8&255,C=Math.round((g&255)/255*100)/100;return[d,x,w,C]}throw new Error("unknown hex color: "+n)},ll=Np,Hp=$,sl=L,qp=b.type,cl=k,zp=al;sl.prototype.hex=function(n){return zp(this._rgb,n)},Hp.hex=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(sl,[null].concat(n,["hex"])))},cl.format.hex=ll,cl.autodetect.push({p:4,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&qp(n)==="string"&&[3,4,5,6,7,8,9].indexOf(n.length)>=0)return"hex"}});var Vp=b.unpack,ul=b.TWOPI,Up=Math.min,Wp=Math.sqrt,Xp=Math.acos,Qp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Vp(n,"rgb"),u=s[0],p=s[1],g=s[2];u/=255,p/=255,g/=255;var d,x=Up(u,p,g),w=(u+p+g)/3,C=w>0?1-x/w:0;return C===0?d=NaN:(d=(u-p+(u-g))/2,d/=Wp((u-p)*(u-p)+(u-g)*(p-g)),d=Xp(d),g>p&&(d=ul-d),d/=ul),[d*360,C,w]},Jp=Qp,Kp=b.unpack,Nn=b.limit,er=b.TWOPI,Hn=b.PITHIRD,tr=Math.cos,Yp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Kp(n,"hsi");var s=n[0],u=n[1],p=n[2],g,d,x;return isNaN(s)&&(s=0),isNaN(u)&&(u=0),s>360&&(s-=360),s<0&&(s+=360),s/=360,s<1/3?(x=(1-u)/3,g=(1+u*tr(er*s)/tr(Hn-er*s))/3,d=1-(x+g)):s<2/3?(s-=1/3,g=(1-u)/3,d=(1+u*tr(er*s)/tr(Hn-er*s))/3,x=1-(g+d)):(s-=2/3,d=(1-u)/3,x=(1+u*tr(er*s)/tr(Hn-er*s))/3,g=1-(d+x)),g=Nn(p*g*3),d=Nn(p*d*3),x=Nn(p*x*3),[g*255,d*255,x*255,n.length>3?n[3]:1]},Zp=Yp,eh=b.unpack,th=b.type,rh=$,fl=L,dl=k,oh=Jp;fl.prototype.hsi=function(){return oh(this._rgb)},rh.hsi=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(fl,[null].concat(n,["hsi"])))},dl.format.hsi=Zp,dl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=eh(n,"hsi"),th(n)==="array"&&n.length===3)return"hsi"}});var nh=b.unpack,ih=b.type,ah=$,pl=L,hl=k,lh=Ha;pl.prototype.hsl=function(){return lh(this._rgb)},ah.hsl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(pl,[null].concat(n,["hsl"])))},hl.format.hsl=qa,hl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=nh(n,"hsl"),ih(n)==="array"&&n.length===3)return"hsl"}});var sh=b.unpack,ch=Math.min,uh=Math.max,fh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=sh(n,"rgb");var s=n[0],u=n[1],p=n[2],g=ch(s,u,p),d=uh(s,u,p),x=d-g,w,C,A;return A=d/255,d===0?(w=Number.NaN,C=0):(C=x/d,s===d&&(w=(u-p)/x),u===d&&(w=2+(p-s)/x),p===d&&(w=4+(s-u)/x),w*=60,w<0&&(w+=360)),[w,C,A]},dh=fh,ph=b.unpack,hh=Math.floor,mh=function(){for(var n,a,s,u,p,g,d=[],x=arguments.length;x--;)d[x]=arguments[x];d=ph(d,"hsv");var w=d[0],C=d[1],A=d[2],j,T,I;if(A*=255,C===0)j=T=I=A;else{w===360&&(w=0),w>360&&(w-=360),w<0&&(w+=360),w/=60;var F=hh(w),Q=w-F,Z=A*(1-C),re=A*(1-C*Q),le=A*(1-C*(1-Q));switch(F){case 0:n=[A,le,Z],j=n[0],T=n[1],I=n[2];break;case 1:a=[re,A,Z],j=a[0],T=a[1],I=a[2];break;case 2:s=[Z,A,le],j=s[0],T=s[1],I=s[2];break;case 3:u=[Z,re,A],j=u[0],T=u[1],I=u[2];break;case 4:p=[le,Z,A],j=p[0],T=p[1],I=p[2];break;case 5:g=[A,Z,re],j=g[0],T=g[1],I=g[2];break}}return[j,T,I,d.length>3?d[3]:1]},gh=mh,bh=b.unpack,vh=b.type,yh=$,ml=L,gl=k,xh=dh;ml.prototype.hsv=function(){return xh(this._rgb)},yh.hsv=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ml,[null].concat(n,["hsv"])))},gl.format.hsv=gh,gl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=bh(n,"hsv"),vh(n)==="array"&&n.length===3)return"hsv"}});var mo={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},rr=mo,wh=b.unpack,bl=Math.pow,kh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=wh(n,"rgb"),u=s[0],p=s[1],g=s[2],d=Sh(u,p,g),x=d[0],w=d[1],C=d[2],A=116*w-16;return[A<0?0:A,500*(x-w),200*(w-C)]},qn=function(n){return(n/=255)<=.04045?n/12.92:bl((n+.055)/1.055,2.4)},zn=function(n){return n>rr.t3?bl(n,1/3):n/rr.t2+rr.t0},Sh=function(n,a,s){n=qn(n),a=qn(a),s=qn(s);var u=zn((.4124564*n+.3575761*a+.1804375*s)/rr.Xn),p=zn((.2126729*n+.7151522*a+.072175*s)/rr.Yn),g=zn((.0193339*n+.119192*a+.9503041*s)/rr.Zn);return[u,p,g]},vl=kh,or=mo,Ch=b.unpack,Mh=Math.pow,Ah=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Ch(n,"lab");var s=n[0],u=n[1],p=n[2],g,d,x,w,C,A;return d=(s+16)/116,g=isNaN(u)?d:d+u/500,x=isNaN(p)?d:d-p/200,d=or.Yn*Un(d),g=or.Xn*Un(g),x=or.Zn*Un(x),w=Vn(3.2404542*g-1.5371385*d-.4985314*x),C=Vn(-.969266*g+1.8760108*d+.041556*x),A=Vn(.0556434*g-.2040259*d+1.0572252*x),[w,C,A,n.length>3?n[3]:1]},Vn=function(n){return 255*(n<=.00304?12.92*n:1.055*Mh(n,1/2.4)-.055)},Un=function(n){return n>or.t1?n*n*n:or.t2*(n-or.t0)},yl=Ah,Th=b.unpack,Ph=b.type,Lh=$,xl=L,wl=k,Oh=vl;xl.prototype.lab=function(){return Oh(this._rgb)},Lh.lab=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(xl,[null].concat(n,["lab"])))},wl.format.lab=yl,wl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Th(n,"lab"),Ph(n)==="array"&&n.length===3)return"lab"}});var _h=b.unpack,Eh=b.RAD2DEG,Rh=Math.sqrt,$h=Math.atan2,Dh=Math.round,jh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=_h(n,"lab"),u=s[0],p=s[1],g=s[2],d=Rh(p*p+g*g),x=($h(g,p)*Eh+360)%360;return Dh(d*1e4)===0&&(x=Number.NaN),[u,d,x]},kl=jh,Fh=b.unpack,Bh=vl,Ih=kl,Gh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Fh(n,"rgb"),u=s[0],p=s[1],g=s[2],d=Bh(u,p,g),x=d[0],w=d[1],C=d[2];return Ih(x,w,C)},Nh=Gh,Hh=b.unpack,qh=b.DEG2RAD,zh=Math.sin,Vh=Math.cos,Uh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Hh(n,"lch"),u=s[0],p=s[1],g=s[2];return isNaN(g)&&(g=0),g=g*qh,[u,Vh(g)*p,zh(g)*p]},Sl=Uh,Wh=b.unpack,Xh=Sl,Qh=yl,Jh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Wh(n,"lch");var s=n[0],u=n[1],p=n[2],g=Xh(s,u,p),d=g[0],x=g[1],w=g[2],C=Qh(d,x,w),A=C[0],j=C[1],T=C[2];return[A,j,T,n.length>3?n[3]:1]},Cl=Jh,Kh=b.unpack,Yh=Cl,Zh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Kh(n,"hcl").reverse();return Yh.apply(void 0,s)},em=Zh,tm=b.unpack,rm=b.type,Ml=$,go=L,Wn=k,Al=Nh;go.prototype.lch=function(){return Al(this._rgb)},go.prototype.hcl=function(){return Al(this._rgb).reverse()},Ml.lch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(go,[null].concat(n,["lch"])))},Ml.hcl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(go,[null].concat(n,["hcl"])))},Wn.format.lch=Cl,Wn.format.hcl=em,["lch","hcl"].forEach(function(n){return Wn.autodetect.push({p:2,test:function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];if(a=tm(a,n),rm(a)==="array"&&a.length===3)return n}})});var om={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"},Tl=om,nm=L,Pl=k,im=b.type,Dr=Tl,am=ll,lm=al;nm.prototype.name=function(){for(var n=lm(this._rgb,"rgb"),a=0,s=Object.keys(Dr);a<s.length;a+=1){var u=s[a];if(Dr[u]===n)return u.toLowerCase()}return n},Pl.format.named=function(n){if(n=n.toLowerCase(),Dr[n])return am(Dr[n]);throw new Error("unknown color name: "+n)},Pl.autodetect.push({p:5,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&im(n)==="string"&&Dr[n.toLowerCase()])return"named"}});var sm=b.unpack,cm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=sm(n,"rgb"),u=s[0],p=s[1],g=s[2];return(u<<16)+(p<<8)+g},um=cm,fm=b.type,dm=function(n){if(fm(n)=="number"&&n>=0&&n<=16777215){var a=n>>16,s=n>>8&255,u=n&255;return[a,s,u,1]}throw new Error("unknown num color: "+n)},pm=dm,hm=$,Ll=L,Ol=k,mm=b.type,gm=um;Ll.prototype.num=function(){return gm(this._rgb)},hm.num=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Ll,[null].concat(n,["num"])))},Ol.format.num=pm,Ol.autodetect.push({p:5,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n.length===1&&mm(n[0])==="number"&&n[0]>=0&&n[0]<=16777215)return"num"}});var bm=$,Xn=L,_l=k,El=b.unpack,Rl=b.type,$l=Math.round;Xn.prototype.rgb=function(n){return n===void 0&&(n=!0),n===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map($l)},Xn.prototype.rgba=function(n){return n===void 0&&(n=!0),this._rgb.slice(0,4).map(function(a,s){return s<3?n===!1?a:$l(a):a})},bm.rgb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Xn,[null].concat(n,["rgb"])))},_l.format.rgb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=El(n,"rgba");return s[3]===void 0&&(s[3]=1),s},_l.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=El(n,"rgba"),Rl(n)==="array"&&(n.length===3||n.length===4&&Rl(n[3])=="number"&&n[3]>=0&&n[3]<=1))return"rgb"}});var bo=Math.log,vm=function(n){var a=n/100,s,u,p;return a<66?(s=255,u=a<6?0:-155.25485562709179-.44596950469579133*(u=a-2)+104.49216199393888*bo(u),p=a<20?0:-254.76935184120902+.8274096064007395*(p=a-10)+115.67994401066147*bo(p)):(s=351.97690566805693+.114206453784165*(s=a-55)-40.25366309332127*bo(s),u=325.4494125711974+.07943456536662342*(u=a-50)-28.0852963507957*bo(u),p=255),[s,u,p,1]},Dl=vm,ym=Dl,xm=b.unpack,wm=Math.round,km=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];for(var s=xm(n,"rgb"),u=s[0],p=s[2],g=1e3,d=4e4,x=.4,w;d-g>x;){w=(d+g)*.5;var C=ym(w);C[2]/C[0]>=p/u?d=w:g=w}return wm(w)},Sm=km,Qn=$,vo=L,Jn=k,Cm=Sm;vo.prototype.temp=vo.prototype.kelvin=vo.prototype.temperature=function(){return Cm(this._rgb)},Qn.temp=Qn.kelvin=Qn.temperature=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(vo,[null].concat(n,["temp"])))},Jn.format.temp=Jn.format.kelvin=Jn.format.temperature=Dl;var Mm=b.unpack,Kn=Math.cbrt,Am=Math.pow,Tm=Math.sign,Pm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Mm(n,"rgb"),u=s[0],p=s[1],g=s[2],d=[Yn(u/255),Yn(p/255),Yn(g/255)],x=d[0],w=d[1],C=d[2],A=Kn(.4122214708*x+.5363325363*w+.0514459929*C),j=Kn(.2119034982*x+.6806995451*w+.1073969566*C),T=Kn(.0883024619*x+.2817188376*w+.6299787005*C);return[.2104542553*A+.793617785*j-.0040720468*T,1.9779984951*A-2.428592205*j+.4505937099*T,.0259040371*A+.7827717662*j-.808675766*T]},jl=Pm;function Yn(n){var a=Math.abs(n);return a<.04045?n/12.92:(Tm(n)||1)*Am((a+.055)/1.055,2.4)}var Lm=b.unpack,yo=Math.pow,Om=Math.sign,_m=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Lm(n,"lab");var s=n[0],u=n[1],p=n[2],g=yo(s+.3963377774*u+.2158037573*p,3),d=yo(s-.1055613458*u-.0638541728*p,3),x=yo(s-.0894841775*u-1.291485548*p,3);return[255*Zn(4.0767416621*g-3.3077115913*d+.2309699292*x),255*Zn(-1.2684380046*g+2.6097574011*d-.3413193965*x),255*Zn(-.0041960863*g-.7034186147*d+1.707614701*x),n.length>3?n[3]:1]},Fl=_m;function Zn(n){var a=Math.abs(n);return a>.0031308?(Om(n)||1)*(1.055*yo(a,1/2.4)-.055):n*12.92}var Em=b.unpack,Rm=b.type,$m=$,Bl=L,Il=k,Dm=jl;Bl.prototype.oklab=function(){return Dm(this._rgb)},$m.oklab=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Bl,[null].concat(n,["oklab"])))},Il.format.oklab=Fl,Il.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Em(n,"oklab"),Rm(n)==="array"&&n.length===3)return"oklab"}});var jm=b.unpack,Fm=jl,Bm=kl,Im=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=jm(n,"rgb"),u=s[0],p=s[1],g=s[2],d=Fm(u,p,g),x=d[0],w=d[1],C=d[2];return Bm(x,w,C)},Gm=Im,Nm=b.unpack,Hm=Sl,qm=Fl,zm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Nm(n,"lch");var s=n[0],u=n[1],p=n[2],g=Hm(s,u,p),d=g[0],x=g[1],w=g[2],C=qm(d,x,w),A=C[0],j=C[1],T=C[2];return[A,j,T,n.length>3?n[3]:1]},Vm=zm,Um=b.unpack,Wm=b.type,Xm=$,Gl=L,Nl=k,Qm=Gm;Gl.prototype.oklch=function(){return Qm(this._rgb)},Xm.oklch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Gl,[null].concat(n,["oklch"])))},Nl.format.oklch=Vm,Nl.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Um(n,"oklch"),Wm(n)==="array"&&n.length===3)return"oklch"}});var Hl=L,Jm=b.type;Hl.prototype.alpha=function(n,a){return a===void 0&&(a=!1),n!==void 0&&Jm(n)==="number"?a?(this._rgb[3]=n,this):new Hl([this._rgb[0],this._rgb[1],this._rgb[2],n],"rgb"):this._rgb[3]};var Km=L;Km.prototype.clipped=function(){return this._rgb._clipped||!1};var Nt=L,Ym=mo;Nt.prototype.darken=function(n){n===void 0&&(n=1);var a=this,s=a.lab();return s[0]-=Ym.Kn*n,new Nt(s,"lab").alpha(a.alpha(),!0)},Nt.prototype.brighten=function(n){return n===void 0&&(n=1),this.darken(-n)},Nt.prototype.darker=Nt.prototype.darken,Nt.prototype.brighter=Nt.prototype.brighten;var Zm=L;Zm.prototype.get=function(n){var a=n.split("."),s=a[0],u=a[1],p=this[s]();if(u){var g=s.indexOf(u)-(s.substr(0,2)==="ok"?2:0);if(g>-1)return p[g];throw new Error("unknown channel "+u+" in mode "+s)}else return p};var nr=L,eg=b.type,tg=Math.pow,rg=1e-7,og=20;nr.prototype.luminance=function(n){if(n!==void 0&&eg(n)==="number"){if(n===0)return new nr([0,0,0,this._rgb[3]],"rgb");if(n===1)return new nr([255,255,255,this._rgb[3]],"rgb");var a=this.luminance(),s="rgb",u=og,p=function(d,x){var w=d.interpolate(x,.5,s),C=w.luminance();return Math.abs(n-C)<rg||!u--?w:C>n?p(d,w):p(w,x)},g=(a>n?p(new nr([0,0,0]),this):p(this,new nr([255,255,255]))).rgb();return new nr(g.concat([this._rgb[3]]))}return ng.apply(void 0,this._rgb.slice(0,3))};var ng=function(n,a,s){return n=ei(n),a=ei(a),s=ei(s),.2126*n+.7152*a+.0722*s},ei=function(n){return n/=255,n<=.03928?n/12.92:tg((n+.055)/1.055,2.4)},Ge={},ql=L,zl=b.type,xo=Ge,Vl=function(n,a,s){s===void 0&&(s=.5);for(var u=[],p=arguments.length-3;p-- >0;)u[p]=arguments[p+3];var g=u[0]||"lrgb";if(!xo[g]&&!u.length&&(g=Object.keys(xo)[0]),!xo[g])throw new Error("interpolation mode "+g+" is not defined");return zl(n)!=="object"&&(n=new ql(n)),zl(a)!=="object"&&(a=new ql(a)),xo[g](n,a,s).alpha(n.alpha()+s*(a.alpha()-n.alpha()))},Ul=L,ig=Vl;Ul.prototype.mix=Ul.prototype.interpolate=function(n,a){a===void 0&&(a=.5);for(var s=[],u=arguments.length-2;u-- >0;)s[u]=arguments[u+2];return ig.apply(void 0,[this,n,a].concat(s))};var Wl=L;Wl.prototype.premultiply=function(n){n===void 0&&(n=!1);var a=this._rgb,s=a[3];return n?(this._rgb=[a[0]*s,a[1]*s,a[2]*s,s],this):new Wl([a[0]*s,a[1]*s,a[2]*s,s],"rgb")};var ti=L,ag=mo;ti.prototype.saturate=function(n){n===void 0&&(n=1);var a=this,s=a.lch();return s[1]+=ag.Kn*n,s[1]<0&&(s[1]=0),new ti(s,"lch").alpha(a.alpha(),!0)},ti.prototype.desaturate=function(n){return n===void 0&&(n=1),this.saturate(-n)};var Xl=L,Ql=b.type;Xl.prototype.set=function(n,a,s){s===void 0&&(s=!1);var u=n.split("."),p=u[0],g=u[1],d=this[p]();if(g){var x=p.indexOf(g)-(p.substr(0,2)==="ok"?2:0);if(x>-1){if(Ql(a)=="string")switch(a.charAt(0)){case"+":d[x]+=+a;break;case"-":d[x]+=+a;break;case"*":d[x]*=+a.substr(1);break;case"/":d[x]/=+a.substr(1);break;default:d[x]=+a}else if(Ql(a)==="number")d[x]=a;else throw new Error("unsupported value for Color.set");var w=new Xl(d,p);return s?(this._rgb=w._rgb,this):w}throw new Error("unknown channel "+g+" in mode "+p)}else return d};var lg=L,sg=function(n,a,s){var u=n._rgb,p=a._rgb;return new lg(u[0]+s*(p[0]-u[0]),u[1]+s*(p[1]-u[1]),u[2]+s*(p[2]-u[2]),"rgb")};Ge.rgb=sg;var cg=L,ri=Math.sqrt,ir=Math.pow,ug=function(n,a,s){var u=n._rgb,p=u[0],g=u[1],d=u[2],x=a._rgb,w=x[0],C=x[1],A=x[2];return new cg(ri(ir(p,2)*(1-s)+ir(w,2)*s),ri(ir(g,2)*(1-s)+ir(C,2)*s),ri(ir(d,2)*(1-s)+ir(A,2)*s),"rgb")};Ge.lrgb=ug;var fg=L,dg=function(n,a,s){var u=n.lab(),p=a.lab();return new fg(u[0]+s*(p[0]-u[0]),u[1]+s*(p[1]-u[1]),u[2]+s*(p[2]-u[2]),"lab")};Ge.lab=dg;var Jl=L,ar=function(n,a,s,u){var p,g,d,x;u==="hsl"?(d=n.hsl(),x=a.hsl()):u==="hsv"?(d=n.hsv(),x=a.hsv()):u==="hcg"?(d=n.hcg(),x=a.hcg()):u==="hsi"?(d=n.hsi(),x=a.hsi()):u==="lch"||u==="hcl"?(u="hcl",d=n.hcl(),x=a.hcl()):u==="oklch"&&(d=n.oklch().reverse(),x=a.oklch().reverse());var w,C,A,j,T,I;(u.substr(0,1)==="h"||u==="oklch")&&(p=d,w=p[0],A=p[1],T=p[2],g=x,C=g[0],j=g[1],I=g[2]);var F,Q,Z,re;return!isNaN(w)&&!isNaN(C)?(C>w&&C-w>180?re=C-(w+360):C<w&&w-C>180?re=C+360-w:re=C-w,Q=w+s*re):isNaN(w)?isNaN(C)?Q=Number.NaN:(Q=C,(T==1||T==0)&&u!="hsv"&&(F=j)):(Q=w,(I==1||I==0)&&u!="hsv"&&(F=A)),F===void 0&&(F=A+s*(j-A)),Z=T+s*(I-T),u==="oklch"?new Jl([Z,F,Q],u):new Jl([Q,F,Z],u)},pg=ar,Kl=function(n,a,s){return pg(n,a,s,"lch")};Ge.lch=Kl,Ge.hcl=Kl;var hg=L,mg=function(n,a,s){var u=n.num(),p=a.num();return new hg(u+s*(p-u),"num")};Ge.num=mg;var gg=ar,bg=function(n,a,s){return gg(n,a,s,"hcg")};Ge.hcg=bg;var vg=ar,yg=function(n,a,s){return vg(n,a,s,"hsi")};Ge.hsi=yg;var xg=ar,wg=function(n,a,s){return xg(n,a,s,"hsl")};Ge.hsl=wg;var kg=ar,Sg=function(n,a,s){return kg(n,a,s,"hsv")};Ge.hsv=Sg;var Cg=L,Mg=function(n,a,s){var u=n.oklab(),p=a.oklab();return new Cg(u[0]+s*(p[0]-u[0]),u[1]+s*(p[1]-u[1]),u[2]+s*(p[2]-u[2]),"oklab")};Ge.oklab=Mg;var Ag=ar,Tg=function(n,a,s){return Ag(n,a,s,"oklch")};Ge.oklch=Tg;var oi=L,Pg=b.clip_rgb,ni=Math.pow,ii=Math.sqrt,ai=Math.PI,Yl=Math.cos,Zl=Math.sin,Lg=Math.atan2,Og=function(n,a,s){a===void 0&&(a="lrgb"),s===void 0&&(s=null);var u=n.length;s||(s=Array.from(new Array(u)).map(function(){return 1}));var p=u/s.reduce(function(Q,Z){return Q+Z});if(s.forEach(function(Q,Z){s[Z]*=p}),n=n.map(function(Q){return new oi(Q)}),a==="lrgb")return _g(n,s);for(var g=n.shift(),d=g.get(a),x=[],w=0,C=0,A=0;A<d.length;A++)if(d[A]=(d[A]||0)*s[0],x.push(isNaN(d[A])?0:s[0]),a.charAt(A)==="h"&&!isNaN(d[A])){var j=d[A]/180*ai;w+=Yl(j)*s[0],C+=Zl(j)*s[0]}var T=g.alpha()*s[0];n.forEach(function(Q,Z){var re=Q.get(a);T+=Q.alpha()*s[Z+1];for(var le=0;le<d.length;le++)if(!isNaN(re[le]))if(x[le]+=s[Z+1],a.charAt(le)==="h"){var Te=re[le]/180*ai;w+=Yl(Te)*s[Z+1],C+=Zl(Te)*s[Z+1]}else d[le]+=re[le]*s[Z+1]});for(var I=0;I<d.length;I++)if(a.charAt(I)==="h"){for(var F=Lg(C/x[I],w/x[I])/ai*180;F<0;)F+=360;for(;F>=360;)F-=360;d[I]=F}else d[I]=d[I]/x[I];return T/=u,new oi(d,a).alpha(T>.99999?1:T,!0)},_g=function(n,a){for(var s=n.length,u=[0,0,0,0],p=0;p<n.length;p++){var g=n[p],d=a[p]/s,x=g._rgb;u[0]+=ni(x[0],2)*d,u[1]+=ni(x[1],2)*d,u[2]+=ni(x[2],2)*d,u[3]+=x[3]*d}return u[0]=ii(u[0]),u[1]=ii(u[1]),u[2]=ii(u[2]),u[3]>.9999999&&(u[3]=1),new oi(Pg(u))},We=$,lr=b.type,Eg=Math.pow,li=function(n){var a="rgb",s=We("#ccc"),u=0,p=[0,1],g=[],d=[0,0],x=!1,w=[],C=!1,A=0,j=1,T=!1,I={},F=!0,Q=1,Z=function(P){if(P=P||["#fff","#000"],P&&lr(P)==="string"&&We.brewer&&We.brewer[P.toLowerCase()]&&(P=We.brewer[P.toLowerCase()]),lr(P)==="array"){P.length===1&&(P=[P[0],P[0]]),P=P.slice(0);for(var q=0;q<P.length;q++)P[q]=We(P[q]);g.length=0;for(var K=0;K<P.length;K++)g.push(K/(P.length-1))}return Fe(),w=P},re=function(P){if(x!=null){for(var q=x.length-1,K=0;K<q&&P>=x[K];)K++;return K-1}return 0},le=function(P){return P},Te=function(P){return P},Me=function(P,q){var K,J;if(q==null&&(q=!1),isNaN(P)||P===null)return s;if(q)J=P;else if(x&&x.length>2){var Pe=re(P);J=Pe/(x.length-2)}else j!==A?J=(P-A)/(j-A):J=1;J=Te(J),q||(J=le(J)),Q!==1&&(J=Eg(J,Q)),J=d[0]+J*(1-d[0]-d[1]),J=Math.min(1,Math.max(0,J));var pe=Math.floor(J*1e4);if(F&&I[pe])K=I[pe];else{if(lr(w)==="array")for(var oe=0;oe<g.length;oe++){var se=g[oe];if(J<=se){K=w[oe];break}if(J>=se&&oe===g.length-1){K=w[oe];break}if(J>se&&J<g[oe+1]){J=(J-se)/(g[oe+1]-se),K=We.interpolate(w[oe],w[oe+1],J,a);break}}else lr(w)==="function"&&(K=w(J));F&&(I[pe]=K)}return K},Fe=function(){return I={}};Z(n);var te=function(P){var q=We(Me(P));return C&&q[C]?q[C]():q};return te.classes=function(P){if(P!=null){if(lr(P)==="array")x=P,p=[P[0],P[P.length-1]];else{var q=We.analyze(p);P===0?x=[q.min,q.max]:x=We.limits(q,"e",P)}return te}return x},te.domain=function(P){if(!arguments.length)return p;A=P[0],j=P[P.length-1],g=[];var q=w.length;if(P.length===q&&A!==j)for(var K=0,J=Array.from(P);K<J.length;K+=1){var Pe=J[K];g.push((Pe-A)/(j-A))}else{for(var pe=0;pe<q;pe++)g.push(pe/(q-1));if(P.length>2){var oe=P.map(function(ce,ue){return ue/(P.length-1)}),se=P.map(function(ce){return(ce-A)/(j-A)});se.every(function(ce,ue){return oe[ue]===ce})||(Te=function(ce){if(ce<=0||ce>=1)return ce;for(var ue=0;ce>=se[ue+1];)ue++;var Qe=(ce-se[ue])/(se[ue+1]-se[ue]),Mt=oe[ue]+Qe*(oe[ue+1]-oe[ue]);return Mt})}}return p=[A,j],te},te.mode=function(P){return arguments.length?(a=P,Fe(),te):a},te.range=function(P,q){return Z(P),te},te.out=function(P){return C=P,te},te.spread=function(P){return arguments.length?(u=P,te):u},te.correctLightness=function(P){return P==null&&(P=!0),T=P,Fe(),T?le=function(q){for(var K=Me(0,!0).lab()[0],J=Me(1,!0).lab()[0],Pe=K>J,pe=Me(q,!0).lab()[0],oe=K+(J-K)*q,se=pe-oe,ce=0,ue=1,Qe=20;Math.abs(se)>.01&&Qe-- >0;)(function(){return Pe&&(se*=-1),se<0?(ce=q,q+=(ue-q)*.5):(ue=q,q+=(ce-q)*.5),pe=Me(q,!0).lab()[0],se=pe-oe})();return q}:le=function(q){return q},te},te.padding=function(P){return P!=null?(lr(P)==="number"&&(P=[P,P]),d=P,te):d},te.colors=function(P,q){arguments.length<2&&(q="hex");var K=[];if(arguments.length===0)K=w.slice(0);else if(P===1)K=[te(.5)];else if(P>1){var J=p[0],Pe=p[1]-J;K=Rg(0,P,!1).map(function(ue){return te(J+ue/(P-1)*Pe)})}else{n=[];var pe=[];if(x&&x.length>2)for(var oe=1,se=x.length,ce=1<=se;ce?oe<se:oe>se;ce?oe++:oe--)pe.push((x[oe-1]+x[oe])*.5);else pe=p;K=pe.map(function(ue){return te(ue)})}return We[q]&&(K=K.map(function(ue){return ue[q]()})),K},te.cache=function(P){return P!=null?(F=P,te):F},te.gamma=function(P){return P!=null?(Q=P,te):Q},te.nodata=function(P){return P!=null?(s=We(P),te):s},te};function Rg(n,a,s){for(var u=[],p=n<a,g=s?p?a+1:a-1:a,d=n;p?d<g:d>g;p?d++:d--)u.push(d);return u}var jr=L,$g=li,Dg=function(n){for(var a=[1,1],s=1;s<n;s++){for(var u=[1],p=1;p<=a.length;p++)u[p]=(a[p]||0)+a[p-1];a=u}return a},jg=function(n){var a,s,u,p,g,d,x;if(n=n.map(function(T){return new jr(T)}),n.length===2)a=n.map(function(T){return T.lab()}),g=a[0],d=a[1],p=function(T){var I=[0,1,2].map(function(F){return g[F]+T*(d[F]-g[F])});return new jr(I,"lab")};else if(n.length===3)s=n.map(function(T){return T.lab()}),g=s[0],d=s[1],x=s[2],p=function(T){var I=[0,1,2].map(function(F){return(1-T)*(1-T)*g[F]+2*(1-T)*T*d[F]+T*T*x[F]});return new jr(I,"lab")};else if(n.length===4){var w;u=n.map(function(T){return T.lab()}),g=u[0],d=u[1],x=u[2],w=u[3],p=function(T){var I=[0,1,2].map(function(F){return(1-T)*(1-T)*(1-T)*g[F]+3*(1-T)*(1-T)*T*d[F]+3*(1-T)*T*T*x[F]+T*T*T*w[F]});return new jr(I,"lab")}}else if(n.length>=5){var C,A,j;C=n.map(function(T){return T.lab()}),j=n.length-1,A=Dg(j),p=function(T){var I=1-T,F=[0,1,2].map(function(Q){return C.reduce(function(Z,re,le){return Z+A[le]*Math.pow(I,j-le)*Math.pow(T,le)*re[Q]},0)});return new jr(F,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return p},Fg=function(n){var a=jg(n);return a.scale=function(){return $g(a)},a},si=$,Xe=function(n,a,s){if(!Xe[s])throw new Error("unknown blend mode "+s);return Xe[s](n,a)},St=function(n){return function(a,s){var u=si(s).rgb(),p=si(a).rgb();return si.rgb(n(u,p))}},Ct=function(n){return function(a,s){var u=[];return u[0]=n(a[0],s[0]),u[1]=n(a[1],s[1]),u[2]=n(a[2],s[2]),u}},Bg=function(n){return n},Ig=function(n,a){return n*a/255},Gg=function(n,a){return n>a?a:n},Ng=function(n,a){return n>a?n:a},Hg=function(n,a){return 255*(1-(1-n/255)*(1-a/255))},qg=function(n,a){return a<128?2*n*a/255:255*(1-2*(1-n/255)*(1-a/255))},zg=function(n,a){return 255*(1-(1-a/255)/(n/255))},Vg=function(n,a){return n===255?255:(n=255*(a/255)/(1-n/255),n>255?255:n)};Xe.normal=St(Ct(Bg)),Xe.multiply=St(Ct(Ig)),Xe.screen=St(Ct(Hg)),Xe.overlay=St(Ct(qg)),Xe.darken=St(Ct(Gg)),Xe.lighten=St(Ct(Ng)),Xe.dodge=St(Ct(Vg)),Xe.burn=St(Ct(zg));for(var Ug=Xe,ci=b.type,Wg=b.clip_rgb,Xg=b.TWOPI,Qg=Math.pow,Jg=Math.sin,Kg=Math.cos,es=$,Yg=function(n,a,s,u,p){n===void 0&&(n=300),a===void 0&&(a=-1.5),s===void 0&&(s=1),u===void 0&&(u=1),p===void 0&&(p=[0,1]);var g=0,d;ci(p)==="array"?d=p[1]-p[0]:(d=0,p=[p,p]);var x=function(w){var C=Xg*((n+120)/360+a*w),A=Qg(p[0]+d*w,u),j=g!==0?s[0]+w*g:s,T=j*A*(1-A)/2,I=Kg(C),F=Jg(C),Q=A+T*(-.14861*I+1.78277*F),Z=A+T*(-.29227*I-.90649*F),re=A+T*(1.97294*I);return es(Wg([Q*255,Z*255,re*255,1]))};return x.start=function(w){return w==null?n:(n=w,x)},x.rotations=function(w){return w==null?a:(a=w,x)},x.gamma=function(w){return w==null?u:(u=w,x)},x.hue=function(w){return w==null?s:(s=w,ci(s)==="array"?(g=s[1]-s[0],g===0&&(s=s[1])):g=0,x)},x.lightness=function(w){return w==null?p:(ci(w)==="array"?(p=w,d=w[1]-w[0]):(p=[w,w],d=0),x)},x.scale=function(){return es.scale(x)},x.hue(s),x},Zg=L,eb="0123456789abcdef",tb=Math.floor,rb=Math.random,ob=function(){for(var n="#",a=0;a<6;a++)n+=eb.charAt(tb(rb()*16));return new Zg(n,"hex")},ui=f,ts=Math.log,nb=Math.pow,ib=Math.floor,ab=Math.abs,rs=function(n,a){a===void 0&&(a=null);var s={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return ui(n)==="object"&&(n=Object.values(n)),n.forEach(function(u){a&&ui(u)==="object"&&(u=u[a]),u!=null&&!isNaN(u)&&(s.values.push(u),s.sum+=u,u<s.min&&(s.min=u),u>s.max&&(s.max=u),s.count+=1)}),s.domain=[s.min,s.max],s.limits=function(u,p){return os(s,u,p)},s},os=function(n,a,s){a===void 0&&(a="equal"),s===void 0&&(s=7),ui(n)=="array"&&(n=rs(n));var u=n.min,p=n.max,g=n.values.sort(function(di,pi){return di-pi});if(s===1)return[u,p];var d=[];if(a.substr(0,1)==="c"&&(d.push(u),d.push(p)),a.substr(0,1)==="e"){d.push(u);for(var x=1;x<s;x++)d.push(u+x/s*(p-u));d.push(p)}else if(a.substr(0,1)==="l"){if(u<=0)throw new Error("Logarithmic scales are only possible for values > 0");var w=Math.LOG10E*ts(u),C=Math.LOG10E*ts(p);d.push(u);for(var A=1;A<s;A++)d.push(nb(10,w+A/s*(C-w)));d.push(p)}else if(a.substr(0,1)==="q"){d.push(u);for(var j=1;j<s;j++){var T=(g.length-1)*j/s,I=ib(T);if(I===T)d.push(g[I]);else{var F=T-I;d.push(g[I]*(1-F)+g[I+1]*F)}}d.push(p)}else if(a.substr(0,1)==="k"){var Q,Z=g.length,re=new Array(Z),le=new Array(s),Te=!0,Me=0,Fe=null;Fe=[],Fe.push(u);for(var te=1;te<s;te++)Fe.push(u+te/s*(p-u));for(Fe.push(p);Te;){for(var P=0;P<s;P++)le[P]=0;for(var q=0;q<Z;q++)for(var K=g[q],J=Number.MAX_VALUE,Pe=void 0,pe=0;pe<s;pe++){var oe=ab(Fe[pe]-K);oe<J&&(J=oe,Pe=pe),le[Pe]++,re[q]=Pe}for(var se=new Array(s),ce=0;ce<s;ce++)se[ce]=null;for(var ue=0;ue<Z;ue++)Q=re[ue],se[Q]===null?se[Q]=g[ue]:se[Q]+=g[ue];for(var Qe=0;Qe<s;Qe++)se[Qe]*=1/le[Qe];Te=!1;for(var Mt=0;Mt<s;Mt++)if(se[Mt]!==Fe[Mt]){Te=!0;break}Fe=se,Me++,Me>200&&(Te=!1)}for(var At={},sr=0;sr<s;sr++)At[sr]=[];for(var cr=0;cr<Z;cr++)Q=re[cr],At[Q].push(g[cr]);for(var ct=[],Ht=0;Ht<s;Ht++)ct.push(At[Ht][0]),ct.push(At[Ht][At[Ht].length-1]);ct=ct.sort(function(di,pi){return di-pi}),d.push(ct[0]);for(var Fr=1;Fr<ct.length;Fr+=2){var qt=ct[Fr];!isNaN(qt)&&d.indexOf(qt)===-1&&d.push(qt)}}return d},ns={analyze:rs,limits:os},is=L,lb=function(n,a){n=new is(n),a=new is(a);var s=n.luminance(),u=a.luminance();return s>u?(s+.05)/(u+.05):(u+.05)/(s+.05)},as=L,st=Math.sqrt,ke=Math.pow,sb=Math.min,cb=Math.max,ls=Math.atan2,ss=Math.abs,wo=Math.cos,cs=Math.sin,ub=Math.exp,us=Math.PI,fb=function(n,a,s,u,p){s===void 0&&(s=1),u===void 0&&(u=1),p===void 0&&(p=1);var g=function(qt){return 360*qt/(2*us)},d=function(qt){return 2*us*qt/360};n=new as(n),a=new as(a);var x=Array.from(n.lab()),w=x[0],C=x[1],A=x[2],j=Array.from(a.lab()),T=j[0],I=j[1],F=j[2],Q=(w+T)/2,Z=st(ke(C,2)+ke(A,2)),re=st(ke(I,2)+ke(F,2)),le=(Z+re)/2,Te=.5*(1-st(ke(le,7)/(ke(le,7)+ke(25,7)))),Me=C*(1+Te),Fe=I*(1+Te),te=st(ke(Me,2)+ke(A,2)),P=st(ke(Fe,2)+ke(F,2)),q=(te+P)/2,K=g(ls(A,Me)),J=g(ls(F,Fe)),Pe=K>=0?K:K+360,pe=J>=0?J:J+360,oe=ss(Pe-pe)>180?(Pe+pe+360)/2:(Pe+pe)/2,se=1-.17*wo(d(oe-30))+.24*wo(d(2*oe))+.32*wo(d(3*oe+6))-.2*wo(d(4*oe-63)),ce=pe-Pe;ce=ss(ce)<=180?ce:pe<=Pe?ce+360:ce-360,ce=2*st(te*P)*cs(d(ce)/2);var ue=T-w,Qe=P-te,Mt=1+.015*ke(Q-50,2)/st(20+ke(Q-50,2)),At=1+.045*q,sr=1+.015*q*se,cr=30*ub(-ke((oe-275)/25,2)),ct=2*st(ke(q,7)/(ke(q,7)+ke(25,7))),Ht=-ct*cs(2*d(cr)),Fr=st(ke(ue/(s*Mt),2)+ke(Qe/(u*At),2)+ke(ce/(p*sr),2)+Ht*(Qe/(u*At))*(ce/(p*sr)));return cb(0,sb(100,Fr))},fs=L,db=function(n,a,s){s===void 0&&(s="lab"),n=new fs(n),a=new fs(a);var u=n.get(s),p=a.get(s),g=0;for(var d in u){var x=(u[d]||0)-(p[d]||0);g+=x*x}return Math.sqrt(g)},pb=L,hb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];try{return new(Function.prototype.bind.apply(pb,[null].concat(n))),!0}catch{return!1}},ds=$,ps=li,mb={cool:function(){return ps([ds.hsl(180,1,.9),ds.hsl(250,.7,.4)])},hot:function(){return ps(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ko={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},fi=0,hs=Object.keys(ko);fi<hs.length;fi+=1){var ms=hs[fi];ko[ms.toLowerCase()]=ko[ms]}var gb=ko,Ce=$;Ce.average=Og,Ce.bezier=Fg,Ce.blend=Ug,Ce.cubehelix=Yg,Ce.mix=Ce.interpolate=Vl,Ce.random=ob,Ce.scale=li,Ce.analyze=ns.analyze,Ce.contrast=lb,Ce.deltaE=fb,Ce.distance=db,Ce.limits=ns.limits,Ce.valid=hb,Ce.scales=mb,Ce.colors=Tl,Ce.brewer=gb;var bb=Ce;return bb})});var fu=ne(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=void 0;var Ei=Wo(bc()),Ri=Wo(_c()),H0=Wo(au()),Uo=Wo(lu());function Wo(e){return e&&e.__esModule?e:{default:e}}function q0(e){if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(e=z0(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(h){throw h},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1,c;return{s:function(){o=e[Symbol.iterator]()},n:function(){var h=o.next();return i=h.done,h},e:function(h){l=!0,c=h},f:function(){try{!i&&o.return!=null&&o.return()}finally{if(l)throw c}}}}function z0(e,t){if(!!e){if(typeof e=="string")return su(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return su(e,t)}}function su(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function cu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}return r}function V0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cu(Object(r),!0).forEach(function(o){U0(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cu(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function U0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W0={count:5,hueMin:0,hueMax:360,chromaMin:0,chromaMax:100,lightMin:0,lightMax:100,quality:50,samples:800},uu=function(t,r){for(var o=Number.MAX_SAFE_INTEGER,i=0,l=0;l<t.length;l+=1){var c=t[l],f=Math.sqrt(Math.pow(Math.abs(c[0]-r[0]),2)+Math.pow(Math.abs(c[1]-r[1]),2)+Math.pow(Math.abs(c[2]-r[2]),2));f<o&&(o=f,i=l)}return i},X0=function(t,r){var o=Uo.default.lab(t),i=o.hcl(),l=o.rgb(),c=Uo.default.rgb(l).lab(),f=2;return i[0]>=r.hueMin&&i[0]<=r.hueMax&&i[1]>=r.chromaMin&&i[1]<=r.chromaMax&&i[2]>=r.lightMin&&i[2]<=r.lightMax&&c[0]>=t[0]-f&&c[0]<=t[0]+f&&c[1]>=t[1]-f&&c[1]<=t[1]+f&&c[2]>=t[2]-f&&c[2]<=t[2]+f},Q0=function(t){for(var r=t.slice(0),o=[r.shift()];r.length>0;){for(var i=o[o.length-1],l=0,c=Number.MIN_SAFE_INTEGER,f=0;f<r.length;f+=1){var h=Math.sqrt(Math.pow(Math.abs(i[0]-r[f][0]),2)+Math.pow(Math.abs(i[1]-r[f][1]),2)+Math.pow(Math.abs(i[2]-r[f][2]),2));h>c&&(c=h,l=f)}o.push(r.splice(l,1)[0])}return o},J0=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=V0({},W0,{},t);if(r.count<=0)return[];r.samples<r.count*3&&(r.samples=Math.ceil(r.count*3));var o=[],i=[],l=new Set,c=Math.ceil(Math.cbrt(r.samples)),f=(r.hueMax-r.hueMin)/c,h=(r.chromaMax-r.chromaMin)/c,m=(r.lightMax-r.lightMin)/c;if(f<=0)throw new Error("hueMax must be greater than hueMin!");if(h<=0)throw new Error("chromaMax must be greater than chromaMin!");if(m<=0)throw new Error("lightMax must be greater than lightMin!");for(var v=r.hueMin+f/2;v<=r.hueMax;v+=f)for(var S=r.chromaMin+h/2;S<=r.chromaMax;S+=h)for(var y=r.lightMin+m/2;y<=r.lightMax;y+=m){var b=Uo.default.hcl(v,S,y).lab();X0(b,r)&&l.add(b.toString())}if(l=Array.from(l),l=l.map(function(Gt){return Gt.split(",").map(function($r){return parseFloat($r)})}),l.length<r.count)throw new Error("Not enough samples to generate palette, increase sample count.");for(var k=Math.floor(l.length/r.count),M=0;M<l.length&&(o.push(l[M]),i.push([]),!(o.length>=r.count));M+=k);for(var E=1;E<=r.quality;E+=1){for(var D=(0,Ri.default)(i),B=(0,Ri.default)(l),H=0;H<o.length;H+=1){var L=uu(B,o[H]);D[H].push(B[L]),B.splice(L,1)}for(var W=0;W<B.length;W+=1){var $=l[W],ie=uu(o,$);D[ie].push(l[W])}for(var ae=(0,Ri.default)(o),me=0;me<D.length;me+=1){var fe=D[me],be=fe.length,we=[],Re=[],kt=[],lt=q0(fe),Er;try{for(lt.s();!(Er=lt.n()).done;){var Rr=Er.value;we.push(Rr[0]),Re.push(Rr[1]),kt.push(Rr[2])}}catch(Gt){lt.e(Gt)}finally{lt.f()}var jn=Ei.default.sum(we)/be,Fn=Ei.default.sum(Re)/be,Bn=Ei.default.sum(kt)/be;o[me]=[jn,Fn,Bn]}if((0,H0.default)(ae,o))break}return o=Q0(o),o.map(function(Gt){return Uo.default.lab(Gt)})},K0=J0;Xo.default=K0});var pu=ne((c2,Z0)=>{Z0.exports={abap:["abap"],"ags script":["asc","ash"],ampl:["ampl"],antlr:["g4"],apl:["apl","dyalog"],asp:["asp","asax","ascx","ashx","asmx","aspx","axd"],ats:["dats","hats","sats"],actionscript:["as"],ada:["adb","ada","ads"],agda:["agda"],alloy:["als"],apacheconf:["apacheconf"],apex:["cls"],applescript:["applescript","scpt"],arc:["arc"],arduino:["ino"],asciidoc:["asciidoc","adoc","asc"],aspectj:["aj"],assembly:["asm","a51","nasm"],augeas:["aug"],autohotkey:["ahk","ahkl"],autoit:["au3"],awk:["awk","auk","gawk","mawk","nawk"],batchfile:["bat","cmd"],befunge:["befunge"],bison:["y"],bitbake:["bb"],blitzbasic:["bb","decls"],blitzmax:["bmx"],bluespec:["bsv"],boo:["boo"],brainfuck:["b","bf"],brightscript:["brs"],bro:["bro"],c:["c","cats","h","idc","w"],"c#":["cs","cshtml","csx"],"c++":["cpp","c++","cc","cp","cxx","h","h++","hh","hpp","hxx","inl","ipp","tcc","tpp"],"c-objdump":["c-objdump"],"c2hs haskell":["chs"],clips:["clp"],cmake:["cmake","cmake.in"],cobol:["cob","cbl","ccp","cobol","cpy"],css:["css"],"cap'n proto":["capnp"],cartocss:["mss"],ceylon:["ceylon"],chapel:["chpl"],chuck:["ck"],cirru:["cirru"],clarion:["clw"],clean:["icl","dcl"],clojure:["clj","boot","cl2","cljc","cljs","cljs.hl","cljscm","cljx","hic"],coffeescript:["coffee","_coffee","cjsx","cson","iced"],coldfusion:["cfm","cfml"],"coldfusion cfc":["cfc"],"common lisp":["lisp","asd","cl","lsp","ny","podsl"],"component pascal":["cp","cps"],cool:["cl"],coq:["coq","v"],"cpp-objdump":["cppobjdump","c++-objdump","c++objdump","cpp-objdump","cxx-objdump"],creole:["creole"],crystal:["cr"],cucumber:["feature"],cuda:["cu","cuh"],cycript:["cy"],cython:["pyx","pxd","pxi"],d:["d","di"],"d-objdump":["d-objdump"],"digital command language":["com"],dm:["dm"],dtrace:["d"],"darcs patch":["darcspatch","dpatch"],dart:["dart"],diff:["diff","patch"],dockerfile:["dockerfile"],dogescript:["djs"],dylan:["dylan","dyl","intr","lid"],e:["E"],ecl:["ecl","eclxml"],eagle:["sch","brd"],"ecere projects":["epj"],eiffel:["e"],elixir:["ex","exs"],elm:["elm"],"emacs lisp":["el","emacs","emacs.desktop"],emberscript:["em","emberscript"],erlang:["erl","es","escript","hrl"],"f#":["fs","fsi","fsx"],flux:["fx","flux"],fortran:["f90","f","f03","f08","f77","f95","for","fpp"],factor:["factor"],fancy:["fy","fancypack"],fantom:["fan"],filterscript:["fs"],formatted:["for"],forth:["fth","4th","f","for","forth","fr","frt","fs"],frege:["fr"],"g-code":["g","gco","gcode"],gams:["gms"],gap:["g","gap","gd","gi","tst"],gas:["s"],gdscript:["gd"],glsl:["glsl","fp","frag","frg","fs","fshader","geo","geom","glslv","gshader","shader","vert","vrx","vshader"],"game maker language":["gml"],genshi:["kid"],"gentoo ebuild":["ebuild"],"gentoo eclass":["eclass"],"gettext catalog":["po","pot"],glyph:["glf"],gnuplot:["gp","gnu","gnuplot","plot","plt"],go:["go"],golo:["golo"],gosu:["gs","gst","gsx","vark"],grace:["grace"],gradle:["gradle"],"grammatical framework":["gf"],"graph modeling language":["gml"],"graphviz (dot)":["dot","gv"],groff:["man","1","2","3","4","5","6","7"],groovy:["groovy","grt","gtpl","gvy"],"groovy server pages":["gsp"],html:["html","htm","html.hl","st","xht","xhtml"],"html+django":["mustache","jinja"],"html+erb":["erb","erb.deface"],"html+php":["phtml"],http:["http"],hack:["hh","php"],haml:["haml","haml.deface"],handlebars:["handlebars","hbs"],harbour:["hb"],haskell:["hs","hsc"],haxe:["hx","hxsl"],hy:["hy"],idl:["pro","dlm"],"igor pro":["ipf"],ini:["ini","cfg","prefs","pro","properties"],"irc log":["irclog","weechatlog"],idris:["idr","lidr"],"inform 7":["ni","i7x"],"inno setup":["iss"],io:["io"],ioke:["ik"],isabelle:["thy"],j:["ijs"],jflex:["flex","jflex"],json:["json","lock"],json5:["json5"],jsonld:["jsonld"],jsoniq:["jq"],jade:["jade"],jasmin:["j"],java:["java"],"java server pages":["jsp"],javascript:["js","_js","bones","es6","frag","gs","jake","jsb","jsfl","jsm","jss","jsx","njs","pac","sjs","ssjs","sublime-build","sublime-commands","sublime-completions","sublime-keymap","sublime-macro","sublime-menu","sublime-mousemap","sublime-project","sublime-settings","sublime-theme","sublime-workspace","sublime_metrics","sublime_session","xsjs","xsjslib"],julia:["jl"],krl:["krl"],kicad:["sch"],kit:["kit"],kotlin:["kt","ktm","kts"],lfe:["lfe"],llvm:["ll"],lolcode:["lol"],lsl:["lsl"],labview:["lvproj"],lasso:["lasso","las","lasso8","lasso9","ldml"],latte:["latte"],lean:["lean","hlean"],less:["less"],lilypond:["ly","ily"],limbo:["b","m"],"linker script":["ld","lds"],liquid:["liquid"],"literate agda":["lagda"],"literate coffeescript":["litcoffee"],"literate haskell":["lhs"],livescript:["ls","_ls"],logos:["xm","x","xi"],logtalk:["lgt","logtalk"],lookml:["lookml"],loomscript:["ls"],lua:["lua","fcgi","nse","pd_lua","rbxs","wlua"],m:["mumps","m"],mtml:["mtml"],muf:["muf","m"],makefile:["mak","d","mk"],mako:["mako","mao"],markdown:["md","markdown","mkd","mkdn","mkdown","ron"],mask:["mask"],mathematica:["mathematica","cdf","m","ma","nb","nbp","wl","wlt"],matlab:["matlab","m"],max:["maxpat","maxhelp","maxproj","mxt","pat"],mediawiki:["mediawiki"],mercury:["m","moo"],minid:["minid"],mirah:["druby","duby","mir","mirah"],modelica:["mo"],"module management system":["mms","mmk"],monkey:["monkey"],moocode:["moo"],moonscript:["moon"],myghty:["myt"],nl:["nl"],nsis:["nsi","nsh"],nemerle:["n"],netlinx:["axs","axi"],"netlinx+erb":["axs.erb","axi.erb"],netlogo:["nlogo"],newlisp:["nl","lisp","lsp"],nginx:["nginxconf"],nimrod:["nim","nimrod"],ninja:["ninja"],nit:["nit"],nix:["nix"],nu:["nu"],numpy:["numpy","numpyw","numsc"],ocaml:["ml","eliom","eliomi","ml4","mli","mll","mly"],objdump:["objdump"],"objective-c":["m","h"],"objective-c++":["mm"],"objective-j":["j","sj"],omgrofl:["omgrofl"],opa:["opa"],opal:["opal"],opencl:["cl","opencl"],"openedge abl":["p","cls"],openscad:["scad"],org:["org"],ox:["ox","oxh","oxo"],oxygene:["oxygene"],oz:["oz"],pawn:["pwn"],php:["php","aw","ctp","fcgi","php3","php4","php5","phpt"],plsql:["pls","pkb","pks","plb","plsql","sql"],plpgsql:["sql"],pan:["pan"],papyrus:["psc"],parrot:["parrot"],"parrot assembly":["pasm"],"parrot internal representation":["pir"],pascal:["pas","dfm","dpr","lpr","pp"],perl:["pl","cgi","fcgi","perl","ph","plx","pm","pod","psgi","t"],perl6:["6pl","6pm","nqp","p6","p6l","p6m","pl","pl6","pm","pm6","t"],piglatin:["pig"],pike:["pike","pmod"],pod:["pod"],pogoscript:["pogo"],postscript:["ps","eps"],powershell:["ps1","psd1","psm1"],processing:["pde"],prolog:["pl","ecl","pro","prolog"],"propeller spin":["spin"],"protocol buffer":["proto"],"public key":["asc","pub"],puppet:["pp"],"pure data":["pd"],purebasic:["pb","pbi"],purescript:["purs"],python:["py","cgi","fcgi","gyp","lmi","pyde","pyp","pyt","pyw","tac","wsgi","xpy"],"python traceback":["pytb"],qml:["qml"],qmake:["pro","pri"],r:["r","rd","rsx"],raml:["raml"],rdoc:["rdoc"],realbasic:["rbbas","rbfrm","rbmnu","rbres","rbtbar","rbuistate"],rhtml:["rhtml"],rmarkdown:["rmd"],racket:["rkt","rktd","rktl","scrbl"],"ragel in ruby host":["rl"],"raw token data":["raw"],rebol:["reb","r","r2","r3","rebol"],red:["red","reds"],redcode:["cw"],renderscript:["rs","rsh"],robotframework:["robot"],rouge:["rg"],ruby:["rb","builder","fcgi","gemspec","god","irbrc","jbuilder","mspec","pluginspec","podspec","rabl","rake","rbuild","rbw","rbx","ru","ruby","thor","watchr"],rust:["rs"],sas:["sas"],scss:["scss"],sparql:["sparql","rq"],sqf:["sqf","hqf"],sql:["sql","cql","ddl","prc","tab","udf","viw"],sqlpl:["sql","db2"],ston:["ston"],svg:["svg"],sage:["sage","sagews"],saltstack:["sls"],sass:["sass"],scala:["scala","sbt","sc"],scaml:["scaml"],scheme:["scm","sld","sls","sps","ss"],scilab:["sci","sce","tst"],self:["self"],shell:["sh","bash","bats","cgi","command","fcgi","ksh","tmux","tool","zsh"],shellsession:["sh-session"],shen:["shen"],slash:["sl"],slim:["slim"],smalltalk:["st","cs"],smarty:["tpl"],sourcepawn:["sp","sma"],squirrel:["nut"],"standard ml":["ML","fun","sig","sml"],stata:["do","ado","doh","ihlp","mata","matah","sthlp"],stylus:["styl"],supercollider:["scd","sc"],swift:["swift"],systemverilog:["sv","svh","vh"],toml:["toml"],txl:["txl"],tcl:["tcl","adp","tm"],tcsh:["tcsh","csh"],tex:["tex","aux","bbx","bib","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],tea:["tea"],text:["txt","fr"],textile:["textile"],thrift:["thrift"],turing:["t","tu"],turtle:["ttl"],twig:["twig"],typescript:["ts"],"unified parallel c":["upc"],unrealscript:["uc"],vcl:["vcl"],vhdl:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],vala:["vala","vapi"],verilog:["v","veo"],viml:["vim"],"visual basic":["vb","bas","cls","frm","frx","vba","vbhtml","vbs"],volt:["volt"],"web ontology language":["owl"],webidl:["webidl"],xc:["xc"],xml:["xml","ant","axml","ccxml","clixml","cproject","csproj","ct","dita","ditamap","ditaval","dll.config","filters","fsproj","fxml","glade","grxml","ivy","jelly","kml","launch","mm","mxml","nproj","nuspec","odd","osm","plist","pluginspec","ps1xml","psc1","pt","rdf","rss","scxml","srdf","storyboard","stTheme","sublime-snippet","targets","tmCommand","tml","tmLanguage","tmPreferences","tmSnippet","tmTheme","ts","ui","urdf","vbproj","vcxproj","vxml","wsdl","wsf","wxi","wxl","wxs","x3d","xacro","xaml","xib","xlf","xliff","xmi","xml.dist","xsd","xul","zcml"],xproc:["xpl","xproc"],xquery:["xquery","xq","xql","xqm","xqy"],xs:["xs"],xslt:["xslt","xsl"],xojo:["xojo_code","xojo_menu","xojo_report","xojo_script","xojo_toolbar","xojo_window"],xtend:["xtend"],yaml:["yml","reek","rviz","yaml"],zephir:["zep"],zimpl:["zimpl","zmpl","zpl"],desktop:["desktop","desktop.in"],ec:["ec","eh"],edn:["edn"],fish:["fish"],mupad:["mu"],nesc:["nc"],ooc:["ooc"],restructuredtext:["rst","rest"],wisp:["wisp"],xbase:["prg"]}});var hu=ne((u2,ev)=>{ev.exports={"1":["groff"],"2":["groff"],"3":["groff"],"4":["groff"],"5":["groff"],"6":["groff"],"7":["groff"],abap:["abap"],asc:["ags script","asciidoc","public key"],ash:["ags script"],ampl:["ampl"],g4:["antlr"],apl:["apl"],dyalog:["apl"],asp:["asp"],asax:["asp"],ascx:["asp"],ashx:["asp"],asmx:["asp"],aspx:["asp"],axd:["asp"],dats:["ats"],hats:["ats"],sats:["ats"],as:["actionscript"],adb:["ada"],ada:["ada"],ads:["ada"],agda:["agda"],als:["alloy"],apacheconf:["apacheconf"],cls:["apex","openedge abl","tex","visual basic"],applescript:["applescript"],scpt:["applescript"],arc:["arc"],ino:["arduino"],asciidoc:["asciidoc"],adoc:["asciidoc"],aj:["aspectj"],asm:["assembly"],a51:["assembly"],nasm:["assembly"],aug:["augeas"],ahk:["autohotkey"],ahkl:["autohotkey"],au3:["autoit"],awk:["awk"],auk:["awk"],gawk:["awk"],mawk:["awk"],nawk:["awk"],bat:["batchfile"],cmd:["batchfile"],befunge:["befunge"],y:["bison"],bb:["bitbake","blitzbasic"],decls:["blitzbasic"],bmx:["blitzmax"],bsv:["bluespec"],boo:["boo"],b:["brainfuck","limbo"],bf:["brainfuck"],brs:["brightscript"],bro:["bro"],c:["c"],cats:["c"],h:["c","c++","objective-c"],idc:["c"],w:["c"],cs:["c#","smalltalk"],cshtml:["c#"],csx:["c#"],cpp:["c++"],"c++":["c++"],cc:["c++"],cp:["c++","component pascal"],cxx:["c++"],"h++":["c++"],hh:["c++","hack"],hpp:["c++"],hxx:["c++"],inl:["c++"],ipp:["c++"],tcc:["c++"],tpp:["c++"],"c-objdump":["c-objdump"],chs:["c2hs haskell"],clp:["clips"],cmake:["cmake"],"cmake.in":["cmake"],cob:["cobol"],cbl:["cobol"],ccp:["cobol"],cobol:["cobol"],cpy:["cobol"],css:["css"],capnp:["cap'n proto"],mss:["cartocss"],ceylon:["ceylon"],chpl:["chapel"],ck:["chuck"],cirru:["cirru"],clw:["clarion"],icl:["clean"],dcl:["clean"],clj:["clojure"],boot:["clojure"],cl2:["clojure"],cljc:["clojure"],cljs:["clojure"],"cljs.hl":["clojure"],cljscm:["clojure"],cljx:["clojure"],hic:["clojure"],coffee:["coffeescript"],_coffee:["coffeescript"],cjsx:["coffeescript"],cson:["coffeescript"],iced:["coffeescript"],cfm:["coldfusion"],cfml:["coldfusion"],cfc:["coldfusion cfc"],lisp:["common lisp","newlisp"],asd:["common lisp"],cl:["common lisp","cool","opencl"],lsp:["common lisp","newlisp"],ny:["common lisp"],podsl:["common lisp"],cps:["component pascal"],coq:["coq"],v:["coq","verilog"],cppobjdump:["cpp-objdump"],"c++-objdump":["cpp-objdump"],"c++objdump":["cpp-objdump"],"cpp-objdump":["cpp-objdump"],"cxx-objdump":["cpp-objdump"],creole:["creole"],cr:["crystal"],feature:["cucumber"],cu:["cuda"],cuh:["cuda"],cy:["cycript"],pyx:["cython"],pxd:["cython"],pxi:["cython"],d:["d","dtrace","makefile"],di:["d"],"d-objdump":["d-objdump"],com:["digital command language"],dm:["dm"],darcspatch:["darcs patch"],dpatch:["darcs patch"],dart:["dart"],diff:["diff"],patch:["diff"],dockerfile:["dockerfile"],djs:["dogescript"],dylan:["dylan"],dyl:["dylan"],intr:["dylan"],lid:["dylan"],E:["e"],ecl:["ecl","prolog"],eclxml:["ecl"],sch:["eagle","kicad"],brd:["eagle"],epj:["ecere projects"],e:["eiffel"],ex:["elixir"],exs:["elixir"],elm:["elm"],el:["emacs lisp"],emacs:["emacs lisp"],"emacs.desktop":["emacs lisp"],em:["emberscript"],emberscript:["emberscript"],erl:["erlang"],es:["erlang"],escript:["erlang"],hrl:["erlang"],fs:["f#","filterscript","forth","glsl"],fsi:["f#"],fsx:["f#"],fx:["flux"],flux:["flux"],f90:["fortran"],f:["fortran","forth"],f03:["fortran"],f08:["fortran"],f77:["fortran"],f95:["fortran"],for:["fortran","formatted","forth"],fpp:["fortran"],factor:["factor"],fy:["fancy"],fancypack:["fancy"],fan:["fantom"],fth:["forth"],"4th":["forth"],forth:["forth"],fr:["forth","frege","text"],frt:["forth"],g:["g-code","gap"],gco:["g-code"],gcode:["g-code"],gms:["gams"],gap:["gap"],gd:["gap","gdscript"],gi:["gap"],tst:["gap","scilab"],s:["gas"],glsl:["glsl"],fp:["glsl"],frag:["glsl","javascript"],frg:["glsl"],fshader:["glsl"],geo:["glsl"],geom:["glsl"],glslv:["glsl"],gshader:["glsl"],shader:["glsl"],vert:["glsl"],vrx:["glsl"],vshader:["glsl"],gml:["game maker language","graph modeling language"],kid:["genshi"],ebuild:["gentoo ebuild"],eclass:["gentoo eclass"],po:["gettext catalog"],pot:["gettext catalog"],glf:["glyph"],gp:["gnuplot"],gnu:["gnuplot"],gnuplot:["gnuplot"],plot:["gnuplot"],plt:["gnuplot"],go:["go"],golo:["golo"],gs:["gosu","javascript"],gst:["gosu"],gsx:["gosu"],vark:["gosu"],grace:["grace"],gradle:["gradle"],gf:["grammatical framework"],dot:["graphviz (dot)"],gv:["graphviz (dot)"],man:["groff"],groovy:["groovy"],grt:["groovy"],gtpl:["groovy"],gvy:["groovy"],gsp:["groovy server pages"],html:["html"],htm:["html"],"html.hl":["html"],st:["html","smalltalk"],xht:["html"],xhtml:["html"],mustache:["html+django"],jinja:["html+django"],erb:["html+erb"],"erb.deface":["html+erb"],phtml:["html+php"],http:["http"],php:["hack","php"],haml:["haml"],"haml.deface":["haml"],handlebars:["handlebars"],hbs:["handlebars"],hb:["harbour"],hs:["haskell"],hsc:["haskell"],hx:["haxe"],hxsl:["haxe"],hy:["hy"],pro:["idl","ini","prolog","qmake"],dlm:["idl"],ipf:["igor pro"],ini:["ini"],cfg:["ini"],prefs:["ini"],properties:["ini"],irclog:["irc log"],weechatlog:["irc log"],idr:["idris"],lidr:["idris"],ni:["inform 7"],i7x:["inform 7"],iss:["inno setup"],io:["io"],ik:["ioke"],thy:["isabelle"],ijs:["j"],flex:["jflex"],jflex:["jflex"],json:["json"],lock:["json"],json5:["json5"],jsonld:["jsonld"],jq:["jsoniq"],jade:["jade"],j:["jasmin","objective-j"],java:["java"],jsp:["java server pages"],js:["javascript"],_js:["javascript"],bones:["javascript"],es6:["javascript"],jake:["javascript"],jsb:["javascript"],jsfl:["javascript"],jsm:["javascript"],jss:["javascript"],jsx:["javascript"],njs:["javascript"],pac:["javascript"],sjs:["javascript"],ssjs:["javascript"],"sublime-build":["javascript"],"sublime-commands":["javascript"],"sublime-completions":["javascript"],"sublime-keymap":["javascript"],"sublime-macro":["javascript"],"sublime-menu":["javascript"],"sublime-mousemap":["javascript"],"sublime-project":["javascript"],"sublime-settings":["javascript"],"sublime-theme":["javascript"],"sublime-workspace":["javascript"],sublime_metrics:["javascript"],sublime_session:["javascript"],xsjs:["javascript"],xsjslib:["javascript"],jl:["julia"],krl:["krl"],kit:["kit"],kt:["kotlin"],ktm:["kotlin"],kts:["kotlin"],lfe:["lfe"],ll:["llvm"],lol:["lolcode"],lsl:["lsl"],lvproj:["labview"],lasso:["lasso"],las:["lasso"],lasso8:["lasso"],lasso9:["lasso"],ldml:["lasso"],latte:["latte"],lean:["lean"],hlean:["lean"],less:["less"],ly:["lilypond"],ily:["lilypond"],m:["limbo","m","muf","mathematica","matlab","mercury","objective-c"],ld:["linker script"],lds:["linker script"],liquid:["liquid"],lagda:["literate agda"],litcoffee:["literate coffeescript"],lhs:["literate haskell"],ls:["livescript","loomscript"],_ls:["livescript"],xm:["logos"],x:["logos"],xi:["logos"],lgt:["logtalk"],logtalk:["logtalk"],lookml:["lookml"],lua:["lua"],fcgi:["lua","php","perl","python","ruby","shell"],nse:["lua"],pd_lua:["lua"],rbxs:["lua"],wlua:["lua"],mumps:["m"],mtml:["mtml"],muf:["muf"],mak:["makefile"],mk:["makefile"],mako:["mako"],mao:["mako"],md:["markdown"],markdown:["markdown"],mkd:["markdown"],mkdn:["markdown"],mkdown:["markdown"],ron:["markdown"],mask:["mask"],mathematica:["mathematica"],cdf:["mathematica"],ma:["mathematica"],nb:["mathematica"],nbp:["mathematica"],wl:["mathematica"],wlt:["mathematica"],matlab:["matlab"],maxpat:["max"],maxhelp:["max"],maxproj:["max"],mxt:["max"],pat:["max"],mediawiki:["mediawiki"],moo:["mercury","moocode"],minid:["minid"],druby:["mirah"],duby:["mirah"],mir:["mirah"],mirah:["mirah"],mo:["modelica"],mms:["module management system"],mmk:["module management system"],monkey:["monkey"],moon:["moonscript"],myt:["myghty"],nl:["nl","newlisp"],nsi:["nsis"],nsh:["nsis"],n:["nemerle"],axs:["netlinx"],axi:["netlinx"],"axs.erb":["netlinx+erb"],"axi.erb":["netlinx+erb"],nlogo:["netlogo"],nginxconf:["nginx"],nim:["nimrod"],nimrod:["nimrod"],ninja:["ninja"],nit:["nit"],nix:["nix"],nu:["nu"],numpy:["numpy"],numpyw:["numpy"],numsc:["numpy"],ml:["ocaml"],eliom:["ocaml"],eliomi:["ocaml"],ml4:["ocaml"],mli:["ocaml"],mll:["ocaml"],mly:["ocaml"],objdump:["objdump"],mm:["objective-c++","xml"],sj:["objective-j"],omgrofl:["omgrofl"],opa:["opa"],opal:["opal"],opencl:["opencl"],p:["openedge abl"],scad:["openscad"],org:["org"],ox:["ox"],oxh:["ox"],oxo:["ox"],oxygene:["oxygene"],oz:["oz"],pwn:["pawn"],aw:["php"],ctp:["php"],php3:["php"],php4:["php"],php5:["php"],phpt:["php"],pls:["plsql"],pkb:["plsql"],pks:["plsql"],plb:["plsql"],plsql:["plsql"],sql:["plsql","plpgsql","sql","sqlpl"],pan:["pan"],psc:["papyrus"],parrot:["parrot"],pasm:["parrot assembly"],pir:["parrot internal representation"],pas:["pascal"],dfm:["pascal"],dpr:["pascal"],lpr:["pascal"],pp:["pascal","puppet"],pl:["perl","perl6","prolog"],cgi:["perl","python","shell"],perl:["perl"],ph:["perl"],plx:["perl"],pm:["perl","perl6"],pod:["perl","pod"],psgi:["perl"],t:["perl","perl6","turing"],"6pl":["perl6"],"6pm":["perl6"],nqp:["perl6"],p6:["perl6"],p6l:["perl6"],p6m:["perl6"],pl6:["perl6"],pm6:["perl6"],pig:["piglatin"],pike:["pike"],pmod:["pike"],pogo:["pogoscript"],ps:["postscript"],eps:["postscript"],ps1:["powershell"],psd1:["powershell"],psm1:["powershell"],pde:["processing"],prolog:["prolog"],spin:["propeller spin"],proto:["protocol buffer"],pub:["public key"],pd:["pure data"],pb:["purebasic"],pbi:["purebasic"],purs:["purescript"],py:["python"],gyp:["python"],lmi:["python"],pyde:["python"],pyp:["python"],pyt:["python"],pyw:["python"],tac:["python"],wsgi:["python"],xpy:["python"],pytb:["python traceback"],qml:["qml"],pri:["qmake"],r:["r","rebol"],rd:["r"],rsx:["r"],raml:["raml"],rdoc:["rdoc"],rbbas:["realbasic"],rbfrm:["realbasic"],rbmnu:["realbasic"],rbres:["realbasic"],rbtbar:["realbasic"],rbuistate:["realbasic"],rhtml:["rhtml"],rmd:["rmarkdown"],rkt:["racket"],rktd:["racket"],rktl:["racket"],scrbl:["racket"],rl:["ragel in ruby host"],raw:["raw token data"],reb:["rebol"],r2:["rebol"],r3:["rebol"],rebol:["rebol"],red:["red"],reds:["red"],cw:["redcode"],rs:["renderscript","rust"],rsh:["renderscript"],robot:["robotframework"],rg:["rouge"],rb:["ruby"],builder:["ruby"],gemspec:["ruby"],god:["ruby"],irbrc:["ruby"],jbuilder:["ruby"],mspec:["ruby"],pluginspec:["ruby","xml"],podspec:["ruby"],rabl:["ruby"],rake:["ruby"],rbuild:["ruby"],rbw:["ruby"],rbx:["ruby"],ru:["ruby"],ruby:["ruby"],thor:["ruby"],watchr:["ruby"],sas:["sas"],scss:["scss"],sparql:["sparql"],rq:["sparql"],sqf:["sqf"],hqf:["sqf"],cql:["sql"],ddl:["sql"],prc:["sql"],tab:["sql"],udf:["sql"],viw:["sql"],db2:["sqlpl"],ston:["ston"],svg:["svg"],sage:["sage"],sagews:["sage"],sls:["saltstack","scheme"],sass:["sass"],scala:["scala"],sbt:["scala"],sc:["scala","supercollider"],scaml:["scaml"],scm:["scheme"],sld:["scheme"],sps:["scheme"],ss:["scheme"],sci:["scilab"],sce:["scilab"],self:["self"],sh:["shell"],bash:["shell"],bats:["shell"],command:["shell"],ksh:["shell"],tmux:["shell"],tool:["shell"],zsh:["shell"],"sh-session":["shellsession"],shen:["shen"],sl:["slash"],slim:["slim"],tpl:["smarty"],sp:["sourcepawn"],sma:["sourcepawn"],nut:["squirrel"],ML:["standard ml"],fun:["standard ml"],sig:["standard ml"],sml:["standard ml"],do:["stata"],ado:["stata"],doh:["stata"],ihlp:["stata"],mata:["stata"],matah:["stata"],sthlp:["stata"],styl:["stylus"],scd:["supercollider"],swift:["swift"],sv:["systemverilog"],svh:["systemverilog"],vh:["systemverilog"],toml:["toml"],txl:["txl"],tcl:["tcl"],adp:["tcl"],tm:["tcl"],tcsh:["tcsh"],csh:["tcsh"],tex:["tex"],aux:["tex"],bbx:["tex"],bib:["tex"],cbx:["tex"],dtx:["tex"],ins:["tex"],lbx:["tex"],ltx:["tex"],mkii:["tex"],mkiv:["tex"],mkvi:["tex"],sty:["tex"],toc:["tex"],tea:["tea"],txt:["text"],textile:["textile"],thrift:["thrift"],tu:["turing"],ttl:["turtle"],twig:["twig"],ts:["typescript","xml"],upc:["unified parallel c"],uc:["unrealscript"],vcl:["vcl"],vhdl:["vhdl"],vhd:["vhdl"],vhf:["vhdl"],vhi:["vhdl"],vho:["vhdl"],vhs:["vhdl"],vht:["vhdl"],vhw:["vhdl"],vala:["vala"],vapi:["vala"],veo:["verilog"],vim:["viml"],vb:["visual basic"],bas:["visual basic"],frm:["visual basic"],frx:["visual basic"],vba:["visual basic"],vbhtml:["visual basic"],vbs:["visual basic"],volt:["volt"],owl:["web ontology language"],webidl:["webidl"],xc:["xc"],xml:["xml"],ant:["xml"],axml:["xml"],ccxml:["xml"],clixml:["xml"],cproject:["xml"],csproj:["xml"],ct:["xml"],dita:["xml"],ditamap:["xml"],ditaval:["xml"],"dll.config":["xml"],filters:["xml"],fsproj:["xml"],fxml:["xml"],glade:["xml"],grxml:["xml"],ivy:["xml"],jelly:["xml"],kml:["xml"],launch:["xml"],mxml:["xml"],nproj:["xml"],nuspec:["xml"],odd:["xml"],osm:["xml"],plist:["xml"],ps1xml:["xml"],psc1:["xml"],pt:["xml"],rdf:["xml"],rss:["xml"],scxml:["xml"],srdf:["xml"],storyboard:["xml"],stTheme:["xml"],"sublime-snippet":["xml"],targets:["xml"],tmCommand:["xml"],tml:["xml"],tmLanguage:["xml"],tmPreferences:["xml"],tmSnippet:["xml"],tmTheme:["xml"],ui:["xml"],urdf:["xml"],vbproj:["xml"],vcxproj:["xml"],vxml:["xml"],wsdl:["xml"],wsf:["xml"],wxi:["xml"],wxl:["xml"],wxs:["xml"],x3d:["xml"],xacro:["xml"],xaml:["xml"],xib:["xml"],xlf:["xml"],xliff:["xml"],xmi:["xml"],"xml.dist":["xml"],xsd:["xml"],xul:["xml"],zcml:["xml"],xpl:["xproc"],xproc:["xproc"],xquery:["xquery"],xq:["xquery"],xql:["xquery"],xqm:["xquery"],xqy:["xquery"],xs:["xs"],xslt:["xslt"],xsl:["xslt"],xojo_code:["xojo"],xojo_menu:["xojo"],xojo_report:["xojo"],xojo_script:["xojo"],xojo_toolbar:["xojo"],xojo_window:["xojo"],xtend:["xtend"],yml:["yaml"],reek:["yaml"],rviz:["yaml"],yaml:["yaml"],zep:["zephir"],zimpl:["zimpl"],zmpl:["zimpl"],zpl:["zimpl"],desktop:["desktop"],"desktop.in":["desktop"],ec:["ec"],eh:["ec"],edn:["edn"],fish:["fish"],mu:["mupad"],nc:["nesc"],ooc:["ooc"],rst:["restructuredtext"],rest:["restructuredtext"],wisp:["wisp"],prg:["xbase"]}});var bu=ne((f2,gu)=>{"use strict";function Wt(){var e={};return e.extensions||(e.extensions=pu()),e.languages||(e.languages=hu()),e}Wt.extensions=function(t){t=mu(t);var r=Wt().languages,o=Wt().extensions;return o[t]||o[r[t]]||[t]};Wt.languages=function(t){t=mu(t);var r=Wt().languages,o=Wt().extensions;return r[t]||r[o[t]]||[t]};function mu(e){return e.charAt(0)==="."&&(e=e.slice(1)),e.toLowerCase()}gu.exports=Wt});var Ca=ne(it=>{"use strict";var Iy=it&&it.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),Gy=it&&it.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ny=it&&it.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Iy(t,e,r);return Gy(t,e),t};Object.defineProperty(it,"__esModule",{value:!0});it.useWindowSize=void 0;var Yf=Ny(ee());function Zf(){return{height:window.innerHeight,width:window.innerWidth}}function Hy(){var e=Yf.useState(Zf()),t=e[0],r=e[1];return Yf.useLayoutEffect(function(){function o(){r(Zf())}return window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[]),t}it.useWindowSize=Hy});var td=ne(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.useBreakpoints=Tr.useBreakpoint=void 0;var ed=Ca();function qy(e){var t=(0,ed.useWindowSize)().width;return t<e}Tr.useBreakpoint=qy;function zy(e){var t=(0,ed.useWindowSize)().width;return e.map(function(r){return t<r})}Tr.useBreakpoints=zy});var rd=ne(Ue=>{"use strict";var Ma=Ue&&Ue.__assign||function(){return Ma=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ma.apply(this,arguments)},Vy=Ue&&Ue.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),Uy=Ue&&Ue.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Wy=Ue&&Ue.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Vy(t,e,r);return Uy(t,e),t};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.useComponentSize=void 0;var On=Wy(ee());function Xy(){var e=On.useState({height:0,width:0}),t=e[0],r=e[1],o=On.useRef(),i=On.useCallback(function(){if(!!o.current){var l=o.current.offsetHeight,c=o.current.offsetWidth;(l!==t.height||c!==t.width)&&r({height:l,width:c})}},[t.height,t.width]);return On.useLayoutEffect(function(){if(!(!o||!o.current)){var l=new ResizeObserver(i);return l.observe(o.current),function(){return l.disconnect()}}},[o,i]),Ma({ref:o},t)}Ue.useComponentSize=Xy});var od=ne(vt=>{"use strict";var Qy=vt&&vt.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),Aa=vt&&vt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Qy(t,e,r)};Object.defineProperty(vt,"__esModule",{value:!0});Aa(td(),vt);Aa(rd(),vt);Aa(Ca(),vt)});yb();var rp=R(ee());var Ws=function(){};function Eo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Ro(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Xs=typeof window<"u";var Qs=R(ee()),Sb=function(e,t){return typeof t=="boolean"?t:!e},Cb=function(e){return(0,Qs.useReducer)(Sb,e)},Js=Cb;var Vt=Js;var Ks=R(ee());var Je=R(ee());function yi(e,t){t===void 0&&(t=0);var r=(0,Je.useRef)(!1),o=(0,Je.useRef)(),i=(0,Je.useRef)(e),l=(0,Je.useCallback)(function(){return r.current},[]),c=(0,Je.useCallback)(function(){r.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout(function(){r.current=!0,i.current()},t)},[t]),f=(0,Je.useCallback)(function(){r.current=null,o.current&&clearTimeout(o.current)},[]);return(0,Je.useEffect)(function(){i.current=e},[e]),(0,Je.useEffect)(function(){return c(),f},[t]),[l,f,c]}function $o(e,t,r){t===void 0&&(t=0),r===void 0&&(r=[]);var o=yi(e,t),i=o[0],l=o[1],c=o[2];return(0,Ks.useEffect)(c,r),[i,l]}var Ys=R(ee()),Mb=function(e){(0,Ys.useEffect)(e,[])},Zs=Mb;var rc=R(ee());var Ab=Xs?window:null,ec=function(e){return!!e.addEventListener},tc=function(e){return!!e.on},Tb=function(e,t,r,o){r===void 0&&(r=Ab),(0,rc.useEffect)(function(){if(!!t&&!!r)return ec(r)?Eo(r,e,t,o):tc(r)&&r.on(e,t,o),function(){ec(r)?Ro(r,e,t,o):tc(r)&&r.off(e,t,o)}},[e,t,r,JSON.stringify(o)])},oc=Tb;var nc=R(ee());var Pb=function(e){return typeof e=="function"?e:typeof e=="string"?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},Lb=function(e,t,r,o){t===void 0&&(t=Ws),r===void 0&&(r={}),o===void 0&&(o=[e]);var i=r.event,l=i===void 0?"keydown":i,c=r.target,f=r.options,h=(0,nc.useMemo)(function(){var m=Pb(e),v=function(S){if(m(S))return t(S)};return v},o);oc(l,h,c,f)},xi=Lb;var sc=R(ee());var dr=R(ee());var ic=R(ee());var Ob=function(e){var t=(0,ic.useRef)(e);t.current=e,Zs(function(){return function(){return t.current()}})},ac=Ob;var _b=function(e){var t=(0,dr.useRef)(0),r=(0,dr.useState)(e),o=r[0],i=r[1],l=(0,dr.useCallback)(function(c){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(c)})},[]);return ac(function(){cancelAnimationFrame(t.current)}),[o,l]},lc=_b;var Eb=function(e){var t=lc({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),r=t[0],o=t[1];return(0,sc.useEffect)(function(){var i=function(l){if(e&&e.current){var c=e.current.getBoundingClientRect(),f=c.left,h=c.top,m=c.width,v=c.height,S=f+window.pageXOffset,y=h+window.pageYOffset,b=l.pageX-S,k=l.pageY-y;o({docX:l.pageX,docY:l.pageY,posX:S,posY:y,elX:b,elY:k,elH:v,elW:m})}};return Eo(document,"mousemove",i),function(){Ro(document,"mousemove",i)}},[e]),r},wi=Eb;var Na=R(uc()),Q1=R(xb()),J1=R(wb()),K1=R(kb()),op=R(dc());var Xt=R(ee());var pc=R(ee());var Ut=R(X());function Do(e){return e.show?(0,Ut.jsx)(Ut.Fragment,{children:e.items.map(t=>{let[r,o]=t,i=Math.round(o*100);return(0,Ut.jsxs)(pc.Fragment,{children:[(0,Ut.jsx)(ft,{title:r,grow:!0,children:r}),(0,Ut.jsxs)(tt,{children:[i===0?"<1":i,"%"]})]},r+o)})}):null}var $b=R(X()),Rb=G.span`
3
+ white-space: pre;
4
+ font-size: 0.7em;
5
+ font-weight: 500;
6
+ opacity: 0.7;
7
+ &:hover {
8
+ cursor: pointer;
9
+ }
10
+ `;function hc(e){return e.show?(0,$b.jsxs)(Rb,{onClick:e.toggle,children:["+ ",e.items.length," more"]}):null}var jo=R(X());function mc({relative:e=!1,collapse:t,toggle:r}){return(0,jo.jsx)(gc,{relative:e,collapse:t,onClick:r,up:!1,children:(0,jo.jsx)(mi,{display:"inline-block",height:"1.5rem"})})}function Fo({relative:e=!1,collapse:t,toggle:r}){return(0,jo.jsx)(gc,{relative:e,collapse:t,onClick:r,up:!0,children:(0,jo.jsx)(mi,{display:"inline-block",height:"1.5rem"})})}var gc=G.button`
11
+ ${({relative:e,up:t})=>e?"":Co`
12
+ position: absolute;
13
+ right: var(--unit);
14
+ ${t?Co`
15
+ bottom: var(--unit);
16
+ `:Co`
17
+ top: var(--unit);
18
+ `}
19
+ `}
20
+
21
+ border: none;
22
+ background-color: rgba(0, 0, 0, 0);
23
+ transition-duration: 0.4s;
24
+ color: grey;
25
+ transform-origin: 50% 55%;
26
+ transform: ${e=>e.collapse!==e.up?"rotate(180deg)":"none"};
27
+ font-size: large;
28
+ &:hover {
29
+ color: #606060;
30
+ cursor: pointer;
31
+ }
32
+ `;var Bo=R(ee()),ki=(0,Bo.createContext)(null);function rt(){let e=(0,Bo.useContext)(ki);if(!e)throw new Error("useClickedObject must be used within a ClickedObjectProvider");return e}var Io=R(ee()),Si=(0,Io.createContext)(void 0);function Ee(){let e=(0,Io.useContext)(Si);if(!e)throw new Error("useData must be used within a DataContext");return e}var en=R(ee());var Lu=R(fu());var du={"1C Enterprise":{color:"#814CCC",url:"https://github.com/trending?l=1C-Enterprise"},"2-Dimensional Array":{color:"#38761D",url:"https://github.com/trending?l=2-Dimensional-Array"},"4D":{color:"#004289",url:"https://github.com/trending?l=4D"},ABAP:{color:"#E8274B",url:"https://github.com/trending?l=ABAP"},"ABAP CDS":{color:"#555e25",url:"https://github.com/trending?l=ABAP-CDS"},ActionScript:{color:"#882B0F",url:"https://github.com/trending?l=ActionScript"},Ada:{color:"#02f88c",url:"https://github.com/trending?l=Ada"},"Adblock Filter List":{color:"#800000",url:"https://github.com/trending?l=Adblock-Filter-List"},"Adobe Font Metrics":{color:"#fa0f00",url:"https://github.com/trending?l=Adobe-Font-Metrics"},Agda:{color:"#315665",url:"https://github.com/trending?l=Agda"},"AGS Script":{color:"#B9D9FF",url:"https://github.com/trending?l=AGS-Script"},AIDL:{color:"#34EB6B",url:"https://github.com/trending?l=AIDL"},AL:{color:"#3AA2B5",url:"https://github.com/trending?l=AL"},Alloy:{color:"#64C800",url:"https://github.com/trending?l=Alloy"},"Alpine Abuild":{color:"#0D597F",url:"https://github.com/trending?l=Alpine-Abuild"},"Altium Designer":{color:"#A89663",url:"https://github.com/trending?l=Altium-Designer"},AMPL:{color:"#E6EFBB",url:"https://github.com/trending?l=AMPL"},AngelScript:{color:"#C7D7DC",url:"https://github.com/trending?l=AngelScript"},"Ant Build System":{color:"#A9157E",url:"https://github.com/trending?l=Ant-Build-System"},Antlers:{color:"#ff269e",url:"https://github.com/trending?l=Antlers"},ANTLR:{color:"#9DC3FF",url:"https://github.com/trending?l=ANTLR"},ApacheConf:{color:"#d12127",url:"https://github.com/trending?l=ApacheConf"},Apex:{color:"#1797c0",url:"https://github.com/trending?l=Apex"},"API Blueprint":{color:"#2ACCA8",url:"https://github.com/trending?l=API-Blueprint"},APL:{color:"#5A8164",url:"https://github.com/trending?l=APL"},"Apollo Guidance Computer":{color:"#0B3D91",url:"https://github.com/trending?l=Apollo-Guidance-Computer"},AppleScript:{color:"#101F1F",url:"https://github.com/trending?l=AppleScript"},Arc:{color:"#aa2afe",url:"https://github.com/trending?l=Arc"},AsciiDoc:{color:"#73a0c5",url:"https://github.com/trending?l=AsciiDoc"},ASL:{color:null,url:"https://github.com/trending?l=ASL"},"ASP.NET":{color:"#9400ff",url:"https://github.com/trending?l=ASP.NET"},AspectJ:{color:"#a957b0",url:"https://github.com/trending?l=AspectJ"},Assembly:{color:"#6E4C13",url:"https://github.com/trending?l=Assembly"},Astro:{color:"#ff5a03",url:"https://github.com/trending?l=Astro"},Asymptote:{color:"#ff0000",url:"https://github.com/trending?l=Asymptote"},ATS:{color:"#1ac620",url:"https://github.com/trending?l=ATS"},Augeas:{color:"#9CC134",url:"https://github.com/trending?l=Augeas"},AutoHotkey:{color:"#6594b9",url:"https://github.com/trending?l=AutoHotkey"},AutoIt:{color:"#1C3552",url:"https://github.com/trending?l=AutoIt"},"Avro IDL":{color:"#0040FF",url:"https://github.com/trending?l=Avro-IDL"},Awk:{color:"#c30e9b",url:"https://github.com/trending?l=Awk"},Ballerina:{color:"#FF5000",url:"https://github.com/trending?l=Ballerina"},BASIC:{color:"#ff0000",url:"https://github.com/trending?l=BASIC"},Batchfile:{color:"#C1F12E",url:"https://github.com/trending?l=Batchfile"},Beef:{color:"#a52f4e",url:"https://github.com/trending?l=Beef"},Befunge:{color:null,url:"https://github.com/trending?l=Befunge"},Berry:{color:"#15A13C",url:"https://github.com/trending?l=Berry"},BibTeX:{color:"#778899",url:"https://github.com/trending?l=BibTeX"},Bicep:{color:"#519aba",url:"https://github.com/trending?l=Bicep"},Bikeshed:{color:"#5562ac",url:"https://github.com/trending?l=Bikeshed"},Bison:{color:"#6A463F",url:"https://github.com/trending?l=Bison"},BitBake:{color:"#00bce4",url:"https://github.com/trending?l=BitBake"},Blade:{color:"#f7523f",url:"https://github.com/trending?l=Blade"},BlitzBasic:{color:"#00FFAE",url:"https://github.com/trending?l=BlitzBasic"},BlitzMax:{color:"#cd6400",url:"https://github.com/trending?l=BlitzMax"},Bluespec:{color:"#12223c",url:"https://github.com/trending?l=Bluespec"},Boo:{color:"#d4bec1",url:"https://github.com/trending?l=Boo"},Boogie:{color:"#c80fa0",url:"https://github.com/trending?l=Boogie"},Brainfuck:{color:"#2F2530",url:"https://github.com/trending?l=Brainfuck"},BrighterScript:{color:"#66AABB",url:"https://github.com/trending?l=BrighterScript"},Brightscript:{color:"#662D91",url:"https://github.com/trending?l=Brightscript"},Browserslist:{color:"#ffd539",url:"https://github.com/trending?l=Browserslist"},C:{color:"#555555",url:"https://github.com/trending?l=C"},"C#":{color:"#178600",url:"https://github.com/trending?l=Csharp"},"C++":{color:"#f34b7d",url:"https://github.com/trending?l=C++"},"C2hs Haskell":{color:null,url:"https://github.com/trending?l=C2hs-Haskell"},"Cabal Config":{color:"#483465",url:"https://github.com/trending?l=Cabal-Config"},Cadence:{color:"#00ef8b",url:"https://github.com/trending?l=Cadence"},Cairo:{color:"#ff4a48",url:"https://github.com/trending?l=Cairo"},CameLIGO:{color:"#3be133",url:"https://github.com/trending?l=CameLIGO"},"CAP CDS":{color:"#0092d1",url:"https://github.com/trending?l=CAP-CDS"},"Cap'n Proto":{color:"#c42727",url:"https://github.com/trending?l=Cap'n-Proto"},CartoCSS:{color:null,url:"https://github.com/trending?l=CartoCSS"},Ceylon:{color:"#dfa535",url:"https://github.com/trending?l=Ceylon"},Chapel:{color:"#8dc63f",url:"https://github.com/trending?l=Chapel"},Charity:{color:null,url:"https://github.com/trending?l=Charity"},ChucK:{color:"#3f8000",url:"https://github.com/trending?l=ChucK"},Cirru:{color:"#ccccff",url:"https://github.com/trending?l=Cirru"},Clarion:{color:"#db901e",url:"https://github.com/trending?l=Clarion"},Clarity:{color:"#5546ff",url:"https://github.com/trending?l=Clarity"},"Classic ASP":{color:"#6a40fd",url:"https://github.com/trending?l=Classic-ASP"},Clean:{color:"#3F85AF",url:"https://github.com/trending?l=Clean"},Click:{color:"#E4E6F3",url:"https://github.com/trending?l=Click"},CLIPS:{color:"#00A300",url:"https://github.com/trending?l=CLIPS"},Clojure:{color:"#db5855",url:"https://github.com/trending?l=Clojure"},"Closure Templates":{color:"#0d948f",url:"https://github.com/trending?l=Closure-Templates"},"Cloud Firestore Security Rules":{color:"#FFA000",url:"https://github.com/trending?l=Cloud-Firestore-Security-Rules"},CMake:{color:"#DA3434",url:"https://github.com/trending?l=CMake"},COBOL:{color:null,url:"https://github.com/trending?l=COBOL"},CodeQL:{color:"#140f46",url:"https://github.com/trending?l=CodeQL"},CoffeeScript:{color:"#244776",url:"https://github.com/trending?l=CoffeeScript"},ColdFusion:{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion"},"ColdFusion CFC":{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion-CFC"},COLLADA:{color:"#F1A42B",url:"https://github.com/trending?l=COLLADA"},"Common Lisp":{color:"#3fb68b",url:"https://github.com/trending?l=Common-Lisp"},"Common Workflow Language":{color:"#B5314C",url:"https://github.com/trending?l=Common-Workflow-Language"},"Component Pascal":{color:"#B0CE4E",url:"https://github.com/trending?l=Component-Pascal"},Cool:{color:null,url:"https://github.com/trending?l=Cool"},Coq:{color:"#d0b68c",url:"https://github.com/trending?l=Coq"},Crystal:{color:"#000100",url:"https://github.com/trending?l=Crystal"},CSON:{color:"#244776",url:"https://github.com/trending?l=CSON"},Csound:{color:"#1a1a1a",url:"https://github.com/trending?l=Csound"},"Csound Document":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Document"},"Csound Score":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Score"},CSS:{color:"#563d7c",url:"https://github.com/trending?l=CSS"},CSV:{color:"#237346",url:"https://github.com/trending?l=CSV"},Cuda:{color:"#3A4E3A",url:"https://github.com/trending?l=Cuda"},CUE:{color:"#5886E1",url:"https://github.com/trending?l=CUE"},Curry:{color:"#531242",url:"https://github.com/trending?l=Curry"},CWeb:{color:"#00007a",url:"https://github.com/trending?l=CWeb"},Cycript:{color:null,url:"https://github.com/trending?l=Cycript"},Cython:{color:"#fedf5b",url:"https://github.com/trending?l=Cython"},D:{color:"#ba595e",url:"https://github.com/trending?l=D"},Dafny:{color:"#FFEC25",url:"https://github.com/trending?l=Dafny"},"Darcs Patch":{color:"#8eff23",url:"https://github.com/trending?l=Darcs-Patch"},Dart:{color:"#00B4AB",url:"https://github.com/trending?l=Dart"},DataWeave:{color:"#003a52",url:"https://github.com/trending?l=DataWeave"},"Debian Package Control File":{color:"#D70751",url:"https://github.com/trending?l=Debian-Package-Control-File"},DenizenScript:{color:"#FBEE96",url:"https://github.com/trending?l=DenizenScript"},Dhall:{color:"#dfafff",url:"https://github.com/trending?l=Dhall"},"DIGITAL Command Language":{color:null,url:"https://github.com/trending?l=DIGITAL-Command-Language"},"DirectX 3D File":{color:"#aace60",url:"https://github.com/trending?l=DirectX-3D-File"},DM:{color:"#447265",url:"https://github.com/trending?l=DM"},Dockerfile:{color:"#384d54",url:"https://github.com/trending?l=Dockerfile"},Dogescript:{color:"#cca760",url:"https://github.com/trending?l=Dogescript"},DTrace:{color:null,url:"https://github.com/trending?l=DTrace"},Dylan:{color:"#6c616e",url:"https://github.com/trending?l=Dylan"},E:{color:"#ccce35",url:"https://github.com/trending?l=E"},Earthly:{color:"#2af0ff",url:"https://github.com/trending?l=Earthly"},Easybuild:{color:"#069406",url:"https://github.com/trending?l=Easybuild"},eC:{color:"#913960",url:"https://github.com/trending?l=eC"},"Ecere Projects":{color:"#913960",url:"https://github.com/trending?l=Ecere-Projects"},ECL:{color:"#8a1267",url:"https://github.com/trending?l=ECL"},ECLiPSe:{color:"#001d9d",url:"https://github.com/trending?l=ECLiPSe"},EditorConfig:{color:"#fff1f2",url:"https://github.com/trending?l=EditorConfig"},Eiffel:{color:"#4d6977",url:"https://github.com/trending?l=Eiffel"},EJS:{color:"#a91e50",url:"https://github.com/trending?l=EJS"},Elixir:{color:"#6e4a7e",url:"https://github.com/trending?l=Elixir"},Elm:{color:"#60B5CC",url:"https://github.com/trending?l=Elm"},Elvish:{color:"#55BB55",url:"https://github.com/trending?l=Elvish"},"Emacs Lisp":{color:"#c065db",url:"https://github.com/trending?l=Emacs-Lisp"},EmberScript:{color:"#FFF4F3",url:"https://github.com/trending?l=EmberScript"},EQ:{color:"#a78649",url:"https://github.com/trending?l=EQ"},Erlang:{color:"#B83998",url:"https://github.com/trending?l=Erlang"},Euphoria:{color:"#FF790B",url:"https://github.com/trending?l=Euphoria"},"F#":{color:"#b845fc",url:"https://github.com/trending?l=Fsharp"},"F*":{color:"#572e30",url:"https://github.com/trending?l=F*"},Factor:{color:"#636746",url:"https://github.com/trending?l=Factor"},Fancy:{color:"#7b9db4",url:"https://github.com/trending?l=Fancy"},Fantom:{color:"#14253c",url:"https://github.com/trending?l=Fantom"},Faust:{color:"#c37240",url:"https://github.com/trending?l=Faust"},Fennel:{color:"#fff3d7",url:"https://github.com/trending?l=Fennel"},"FIGlet Font":{color:"#FFDDBB",url:"https://github.com/trending?l=FIGlet-Font"},"Filebench WML":{color:"#F6B900",url:"https://github.com/trending?l=Filebench-WML"},Filterscript:{color:null,url:"https://github.com/trending?l=Filterscript"},fish:{color:"#4aae47",url:"https://github.com/trending?l=fish"},Fluent:{color:"#ffcc33",url:"https://github.com/trending?l=Fluent"},FLUX:{color:"#88ccff",url:"https://github.com/trending?l=FLUX"},Forth:{color:"#341708",url:"https://github.com/trending?l=Forth"},Fortran:{color:"#4d41b1",url:"https://github.com/trending?l=Fortran"},"Fortran Free Form":{color:"#4d41b1",url:"https://github.com/trending?l=Fortran-Free-Form"},FreeBasic:{color:"#867db1",url:"https://github.com/trending?l=FreeBasic"},FreeMarker:{color:"#0050b2",url:"https://github.com/trending?l=FreeMarker"},Frege:{color:"#00cafe",url:"https://github.com/trending?l=Frege"},Futhark:{color:"#5f021f",url:"https://github.com/trending?l=Futhark"},"G-code":{color:"#D08CF2",url:"https://github.com/trending?l=G-code"},"Game Maker Language":{color:"#71b417",url:"https://github.com/trending?l=Game-Maker-Language"},GAML:{color:"#FFC766",url:"https://github.com/trending?l=GAML"},GAMS:{color:"#f49a22",url:"https://github.com/trending?l=GAMS"},GAP:{color:"#0000cc",url:"https://github.com/trending?l=GAP"},"GCC Machine Description":{color:"#FFCFAB",url:"https://github.com/trending?l=GCC-Machine-Description"},GDB:{color:null,url:"https://github.com/trending?l=GDB"},GDScript:{color:"#355570",url:"https://github.com/trending?l=GDScript"},GEDCOM:{color:"#003058",url:"https://github.com/trending?l=GEDCOM"},"Gemfile.lock":{color:"#701516",url:"https://github.com/trending?l=Gemfile.lock"},Gemini:{color:"#ff6900",url:"https://github.com/trending?l=Gemini"},Genero:{color:"#63408e",url:"https://github.com/trending?l=Genero"},"Genero Forms":{color:"#d8df39",url:"https://github.com/trending?l=Genero-Forms"},Genie:{color:"#fb855d",url:"https://github.com/trending?l=Genie"},Genshi:{color:"#951531",url:"https://github.com/trending?l=Genshi"},"Gentoo Ebuild":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Ebuild"},"Gentoo Eclass":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Eclass"},"Gerber Image":{color:"#d20b00",url:"https://github.com/trending?l=Gerber-Image"},Gherkin:{color:"#5B2063",url:"https://github.com/trending?l=Gherkin"},"Git Attributes":{color:"#F44D27",url:"https://github.com/trending?l=Git-Attributes"},"Git Config":{color:"#F44D27",url:"https://github.com/trending?l=Git-Config"},"Git Revision List":{color:"#F44D27",url:"https://github.com/trending?l=Git-Revision-List"},Gleam:{color:"#ffaff3",url:"https://github.com/trending?l=Gleam"},GLSL:{color:"#5686a5",url:"https://github.com/trending?l=GLSL"},Glyph:{color:"#c1ac7f",url:"https://github.com/trending?l=Glyph"},Gnuplot:{color:"#f0a9f0",url:"https://github.com/trending?l=Gnuplot"},Go:{color:"#00ADD8",url:"https://github.com/trending?l=Go"},"Go Checksums":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Checksums"},"Go Module":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Module"},Golo:{color:"#88562A",url:"https://github.com/trending?l=Golo"},Gosu:{color:"#82937f",url:"https://github.com/trending?l=Gosu"},Grace:{color:"#615f8b",url:"https://github.com/trending?l=Grace"},Gradle:{color:"#02303a",url:"https://github.com/trending?l=Gradle"},"Grammatical Framework":{color:"#ff0000",url:"https://github.com/trending?l=Grammatical-Framework"},GraphQL:{color:"#e10098",url:"https://github.com/trending?l=GraphQL"},"Graphviz (DOT)":{color:"#2596be",url:"https://github.com/trending?l=Graphviz-(DOT)"},Groovy:{color:"#4298b8",url:"https://github.com/trending?l=Groovy"},"Groovy Server Pages":{color:"#4298b8",url:"https://github.com/trending?l=Groovy-Server-Pages"},GSC:{color:"#FF6800",url:"https://github.com/trending?l=GSC"},Hack:{color:"#878787",url:"https://github.com/trending?l=Hack"},Haml:{color:"#ece2a9",url:"https://github.com/trending?l=Haml"},Handlebars:{color:"#f7931e",url:"https://github.com/trending?l=Handlebars"},HAProxy:{color:"#106da9",url:"https://github.com/trending?l=HAProxy"},Harbour:{color:"#0e60e3",url:"https://github.com/trending?l=Harbour"},Haskell:{color:"#5e5086",url:"https://github.com/trending?l=Haskell"},Haxe:{color:"#df7900",url:"https://github.com/trending?l=Haxe"},HCL:{color:null,url:"https://github.com/trending?l=HCL"},HiveQL:{color:"#dce200",url:"https://github.com/trending?l=HiveQL"},HLSL:{color:"#aace60",url:"https://github.com/trending?l=HLSL"},HOCON:{color:"#9ff8ee",url:"https://github.com/trending?l=HOCON"},HolyC:{color:"#ffefaf",url:"https://github.com/trending?l=HolyC"},hoon:{color:"#00b171",url:"https://github.com/trending?l=hoon"},HTML:{color:"#e34c26",url:"https://github.com/trending?l=HTML"},"HTML+ECR":{color:"#2e1052",url:"https://github.com/trending?l=HTML+ECR"},"HTML+EEX":{color:"#6e4a7e",url:"https://github.com/trending?l=HTML+EEX"},"HTML+ERB":{color:"#701516",url:"https://github.com/trending?l=HTML+ERB"},"HTML+PHP":{color:"#4f5d95",url:"https://github.com/trending?l=HTML+PHP"},"HTML+Razor":{color:"#512be4",url:"https://github.com/trending?l=HTML+Razor"},HTTP:{color:"#005C9C",url:"https://github.com/trending?l=HTTP"},HXML:{color:"#f68712",url:"https://github.com/trending?l=HXML"},Hy:{color:"#7790B2",url:"https://github.com/trending?l=Hy"},HyPhy:{color:null,url:"https://github.com/trending?l=HyPhy"},IDL:{color:"#a3522f",url:"https://github.com/trending?l=IDL"},Idris:{color:"#b30000",url:"https://github.com/trending?l=Idris"},"Ignore List":{color:"#000000",url:"https://github.com/trending?l=Ignore-List"},"IGOR Pro":{color:"#0000cc",url:"https://github.com/trending?l=IGOR-Pro"},"ImageJ Macro":{color:"#99AAFF",url:"https://github.com/trending?l=ImageJ-Macro"},"Inform 7":{color:null,url:"https://github.com/trending?l=Inform-7"},INI:{color:"#d1dbe0",url:"https://github.com/trending?l=INI"},"Inno Setup":{color:"#264b99",url:"https://github.com/trending?l=Inno-Setup"},Io:{color:"#a9188d",url:"https://github.com/trending?l=Io"},Ioke:{color:"#078193",url:"https://github.com/trending?l=Ioke"},Isabelle:{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle"},"Isabelle ROOT":{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle-ROOT"},J:{color:"#9EEDFF",url:"https://github.com/trending?l=J"},Janet:{color:"#0886a5",url:"https://github.com/trending?l=Janet"},"JAR Manifest":{color:"#b07219",url:"https://github.com/trending?l=JAR-Manifest"},Jasmin:{color:"#d03600",url:"https://github.com/trending?l=Jasmin"},Java:{color:"#b07219",url:"https://github.com/trending?l=Java"},"Java Properties":{color:"#2A6277",url:"https://github.com/trending?l=Java-Properties"},"Java Server Pages":{color:"#2A6277",url:"https://github.com/trending?l=Java-Server-Pages"},JavaScript:{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript"},"JavaScript+ERB":{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript+ERB"},"Jest Snapshot":{color:"#15c213",url:"https://github.com/trending?l=Jest-Snapshot"},"JetBrains MPS":{color:"#21D789",url:"https://github.com/trending?l=JetBrains-MPS"},JFlex:{color:"#DBCA00",url:"https://github.com/trending?l=JFlex"},Jinja:{color:"#a52a22",url:"https://github.com/trending?l=Jinja"},Jison:{color:"#56b3cb",url:"https://github.com/trending?l=Jison"},"Jison Lex":{color:"#56b3cb",url:"https://github.com/trending?l=Jison-Lex"},Jolie:{color:"#843179",url:"https://github.com/trending?l=Jolie"},jq:{color:"#c7254e",url:"https://github.com/trending?l=jq"},JSON:{color:"#292929",url:"https://github.com/trending?l=JSON"},"JSON with Comments":{color:"#292929",url:"https://github.com/trending?l=JSON-with-Comments"},JSON5:{color:"#267CB9",url:"https://github.com/trending?l=JSON5"},JSONiq:{color:"#40d47e",url:"https://github.com/trending?l=JSONiq"},JSONLD:{color:"#0c479c",url:"https://github.com/trending?l=JSONLD"},Jsonnet:{color:"#0064bd",url:"https://github.com/trending?l=Jsonnet"},Julia:{color:"#a270ba",url:"https://github.com/trending?l=Julia"},"Jupyter Notebook":{color:"#DA5B0B",url:"https://github.com/trending?l=Jupyter-Notebook"},"Kaitai Struct":{color:"#773b37",url:"https://github.com/trending?l=Kaitai-Struct"},KakouneScript:{color:"#6f8042",url:"https://github.com/trending?l=KakouneScript"},"KiCad Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Layout"},"KiCad Legacy Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Legacy-Layout"},"KiCad Schematic":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Schematic"},Kotlin:{color:"#A97BFF",url:"https://github.com/trending?l=Kotlin"},KRL:{color:"#28430A",url:"https://github.com/trending?l=KRL"},kvlang:{color:"#1da6e0",url:"https://github.com/trending?l=kvlang"},LabVIEW:{color:"#fede06",url:"https://github.com/trending?l=LabVIEW"},Lark:{color:"#2980B9",url:"https://github.com/trending?l=Lark"},Lasso:{color:"#999999",url:"https://github.com/trending?l=Lasso"},Latte:{color:"#f2a542",url:"https://github.com/trending?l=Latte"},Lean:{color:null,url:"https://github.com/trending?l=Lean"},Less:{color:"#1d365d",url:"https://github.com/trending?l=Less"},Lex:{color:"#DBCA00",url:"https://github.com/trending?l=Lex"},LFE:{color:"#4C3023",url:"https://github.com/trending?l=LFE"},LigoLANG:{color:"#0e74ff",url:"https://github.com/trending?l=LigoLANG"},LilyPond:{color:"#9ccc7c",url:"https://github.com/trending?l=LilyPond"},Limbo:{color:null,url:"https://github.com/trending?l=Limbo"},Liquid:{color:"#67b8de",url:"https://github.com/trending?l=Liquid"},"Literate Agda":{color:"#315665",url:"https://github.com/trending?l=Literate-Agda"},"Literate CoffeeScript":{color:"#244776",url:"https://github.com/trending?l=Literate-CoffeeScript"},"Literate Haskell":{color:"#5e5086",url:"https://github.com/trending?l=Literate-Haskell"},LiveScript:{color:"#499886",url:"https://github.com/trending?l=LiveScript"},LLVM:{color:"#185619",url:"https://github.com/trending?l=LLVM"},Logos:{color:null,url:"https://github.com/trending?l=Logos"},Logtalk:{color:"#295b9a",url:"https://github.com/trending?l=Logtalk"},LOLCODE:{color:"#cc9900",url:"https://github.com/trending?l=LOLCODE"},LookML:{color:"#652B81",url:"https://github.com/trending?l=LookML"},LoomScript:{color:null,url:"https://github.com/trending?l=LoomScript"},LSL:{color:"#3d9970",url:"https://github.com/trending?l=LSL"},Lua:{color:"#000080",url:"https://github.com/trending?l=Lua"},M:{color:null,url:"https://github.com/trending?l=M"},M4:{color:null,url:"https://github.com/trending?l=M4"},M4Sugar:{color:null,url:"https://github.com/trending?l=M4Sugar"},Macaulay2:{color:"#d8ffff",url:"https://github.com/trending?l=Macaulay2"},Makefile:{color:"#427819",url:"https://github.com/trending?l=Makefile"},Mako:{color:"#7e858d",url:"https://github.com/trending?l=Mako"},Markdown:{color:"#083fa1",url:"https://github.com/trending?l=Markdown"},Marko:{color:"#42bff2",url:"https://github.com/trending?l=Marko"},Mask:{color:"#f97732",url:"https://github.com/trending?l=Mask"},Mathematica:{color:"#dd1100",url:"https://github.com/trending?l=Mathematica"},MATLAB:{color:"#e16737",url:"https://github.com/trending?l=MATLAB"},Max:{color:"#c4a79c",url:"https://github.com/trending?l=Max"},MAXScript:{color:"#00a6a6",url:"https://github.com/trending?l=MAXScript"},mcfunction:{color:"#E22837",url:"https://github.com/trending?l=mcfunction"},Mercury:{color:"#ff2b2b",url:"https://github.com/trending?l=Mercury"},Meson:{color:"#007800",url:"https://github.com/trending?l=Meson"},Metal:{color:"#8f14e9",url:"https://github.com/trending?l=Metal"},MiniD:{color:null,url:"https://github.com/trending?l=MiniD"},MiniYAML:{color:"#ff1111",url:"https://github.com/trending?l=MiniYAML"},Mint:{color:"#02b046",url:"https://github.com/trending?l=Mint"},Mirah:{color:"#c7a938",url:"https://github.com/trending?l=Mirah"},"mIRC Script":{color:"#3d57c3",url:"https://github.com/trending?l=mIRC-Script"},MLIR:{color:"#5EC8DB",url:"https://github.com/trending?l=MLIR"},Modelica:{color:"#de1d31",url:"https://github.com/trending?l=Modelica"},"Modula-2":{color:"#10253f",url:"https://github.com/trending?l=Modula-2"},"Modula-3":{color:"#223388",url:"https://github.com/trending?l=Modula-3"},"Module Management System":{color:null,url:"https://github.com/trending?l=Module-Management-System"},Monkey:{color:null,url:"https://github.com/trending?l=Monkey"},"Monkey C":{color:"#8D6747",url:"https://github.com/trending?l=Monkey-C"},Moocode:{color:null,url:"https://github.com/trending?l=Moocode"},MoonScript:{color:"#ff4585",url:"https://github.com/trending?l=MoonScript"},Motoko:{color:"#fbb03b",url:"https://github.com/trending?l=Motoko"},"Motorola 68K Assembly":{color:"#005daa",url:"https://github.com/trending?l=Motorola-68K-Assembly"},Move:{color:"#4a137a",url:"https://github.com/trending?l=Move"},MQL4:{color:"#62A8D6",url:"https://github.com/trending?l=MQL4"},MQL5:{color:"#4A76B8",url:"https://github.com/trending?l=MQL5"},MTML:{color:"#b7e1f4",url:"https://github.com/trending?l=MTML"},MUF:{color:null,url:"https://github.com/trending?l=MUF"},mupad:{color:"#244963",url:"https://github.com/trending?l=mupad"},Mustache:{color:"#724b3b",url:"https://github.com/trending?l=Mustache"},Myghty:{color:null,url:"https://github.com/trending?l=Myghty"},nanorc:{color:"#2d004d",url:"https://github.com/trending?l=nanorc"},Nasal:{color:"#1d2c4e",url:"https://github.com/trending?l=Nasal"},NASL:{color:null,url:"https://github.com/trending?l=NASL"},NCL:{color:"#28431f",url:"https://github.com/trending?l=NCL"},Nearley:{color:"#990000",url:"https://github.com/trending?l=Nearley"},Nemerle:{color:"#3d3c6e",url:"https://github.com/trending?l=Nemerle"},nesC:{color:"#94B0C7",url:"https://github.com/trending?l=nesC"},NetLinx:{color:"#0aa0ff",url:"https://github.com/trending?l=NetLinx"},"NetLinx+ERB":{color:"#747faa",url:"https://github.com/trending?l=NetLinx+ERB"},NetLogo:{color:"#ff6375",url:"https://github.com/trending?l=NetLogo"},NewLisp:{color:"#87AED7",url:"https://github.com/trending?l=NewLisp"},Nextflow:{color:"#3ac486",url:"https://github.com/trending?l=Nextflow"},Nginx:{color:"#009639",url:"https://github.com/trending?l=Nginx"},Nim:{color:"#ffc200",url:"https://github.com/trending?l=Nim"},Nit:{color:"#009917",url:"https://github.com/trending?l=Nit"},Nix:{color:"#7e7eff",url:"https://github.com/trending?l=Nix"},"NPM Config":{color:"#cb3837",url:"https://github.com/trending?l=NPM-Config"},NSIS:{color:null,url:"https://github.com/trending?l=NSIS"},Nu:{color:"#c9df40",url:"https://github.com/trending?l=Nu"},NumPy:{color:"#9C8AF9",url:"https://github.com/trending?l=NumPy"},Nunjucks:{color:"#3d8137",url:"https://github.com/trending?l=Nunjucks"},NWScript:{color:"#111522",url:"https://github.com/trending?l=NWScript"},"Objective-C":{color:"#438eff",url:"https://github.com/trending?l=Objective-C"},"Objective-C++":{color:"#6866fb",url:"https://github.com/trending?l=Objective-C++"},"Objective-J":{color:"#ff0c5a",url:"https://github.com/trending?l=Objective-J"},ObjectScript:{color:"#424893",url:"https://github.com/trending?l=ObjectScript"},OCaml:{color:"#3be133",url:"https://github.com/trending?l=OCaml"},Odin:{color:"#60AFFE",url:"https://github.com/trending?l=Odin"},Omgrofl:{color:"#cabbff",url:"https://github.com/trending?l=Omgrofl"},ooc:{color:"#b0b77e",url:"https://github.com/trending?l=ooc"},Opa:{color:null,url:"https://github.com/trending?l=Opa"},Opal:{color:"#f7ede0",url:"https://github.com/trending?l=Opal"},"Open Policy Agent":{color:"#7d9199",url:"https://github.com/trending?l=Open-Policy-Agent"},OpenCL:{color:"#ed2e2d",url:"https://github.com/trending?l=OpenCL"},"OpenEdge ABL":{color:"#5ce600",url:"https://github.com/trending?l=OpenEdge-ABL"},OpenQASM:{color:"#AA70FF",url:"https://github.com/trending?l=OpenQASM"},"OpenRC runscript":{color:null,url:"https://github.com/trending?l=OpenRC-runscript"},OpenSCAD:{color:"#e5cd45",url:"https://github.com/trending?l=OpenSCAD"},Org:{color:"#77aa99",url:"https://github.com/trending?l=Org"},Ox:{color:null,url:"https://github.com/trending?l=Ox"},Oxygene:{color:"#cdd0e3",url:"https://github.com/trending?l=Oxygene"},Oz:{color:"#fab738",url:"https://github.com/trending?l=Oz"},P4:{color:"#7055b5",url:"https://github.com/trending?l=P4"},Pan:{color:"#cc0000",url:"https://github.com/trending?l=Pan"},Papyrus:{color:"#6600cc",url:"https://github.com/trending?l=Papyrus"},Parrot:{color:"#f3ca0a",url:"https://github.com/trending?l=Parrot"},"Parrot Assembly":{color:null,url:"https://github.com/trending?l=Parrot-Assembly"},"Parrot Internal Representation":{color:null,url:"https://github.com/trending?l=Parrot-Internal-Representation"},Pascal:{color:"#E3F171",url:"https://github.com/trending?l=Pascal"},Pawn:{color:"#dbb284",url:"https://github.com/trending?l=Pawn"},"PEG.js":{color:"#234d6b",url:"https://github.com/trending?l=PEG.js"},Pep8:{color:"#C76F5B",url:"https://github.com/trending?l=Pep8"},Perl:{color:"#0298c3",url:"https://github.com/trending?l=Perl"},PHP:{color:"#4F5D95",url:"https://github.com/trending?l=PHP"},PicoLisp:{color:"#6067af",url:"https://github.com/trending?l=PicoLisp"},PigLatin:{color:"#fcd7de",url:"https://github.com/trending?l=PigLatin"},Pike:{color:"#005390",url:"https://github.com/trending?l=Pike"},PLpgSQL:{color:"#336790",url:"https://github.com/trending?l=PLpgSQL"},PLSQL:{color:"#dad8d8",url:"https://github.com/trending?l=PLSQL"},PogoScript:{color:"#d80074",url:"https://github.com/trending?l=PogoScript"},Pony:{color:null,url:"https://github.com/trending?l=Pony"},Portugol:{color:"#f8bd00",url:"https://github.com/trending?l=Portugol"},PostCSS:{color:"#dc3a0c",url:"https://github.com/trending?l=PostCSS"},PostScript:{color:"#da291c",url:"https://github.com/trending?l=PostScript"},"POV-Ray SDL":{color:"#6bac65",url:"https://github.com/trending?l=POV-Ray-SDL"},PowerBuilder:{color:"#8f0f8d",url:"https://github.com/trending?l=PowerBuilder"},PowerShell:{color:"#012456",url:"https://github.com/trending?l=PowerShell"},Prisma:{color:"#0c344b",url:"https://github.com/trending?l=Prisma"},Processing:{color:"#0096D8",url:"https://github.com/trending?l=Processing"},Procfile:{color:"#3B2F63",url:"https://github.com/trending?l=Procfile"},Prolog:{color:"#74283c",url:"https://github.com/trending?l=Prolog"},Promela:{color:"#de0000",url:"https://github.com/trending?l=Promela"},"Propeller Spin":{color:"#7fa2a7",url:"https://github.com/trending?l=Propeller-Spin"},Pug:{color:"#a86454",url:"https://github.com/trending?l=Pug"},Puppet:{color:"#302B6D",url:"https://github.com/trending?l=Puppet"},PureBasic:{color:"#5a6986",url:"https://github.com/trending?l=PureBasic"},PureScript:{color:"#1D222D",url:"https://github.com/trending?l=PureScript"},Python:{color:"#3572A5",url:"https://github.com/trending?l=Python"},"Python console":{color:"#3572A5",url:"https://github.com/trending?l=Python-console"},"Python traceback":{color:"#3572A5",url:"https://github.com/trending?l=Python-traceback"},q:{color:"#0040cd",url:"https://github.com/trending?l=q"},"Q#":{color:"#fed659",url:"https://github.com/trending?l=Qsharp"},QMake:{color:null,url:"https://github.com/trending?l=QMake"},QML:{color:"#44a51c",url:"https://github.com/trending?l=QML"},"Qt Script":{color:"#00b841",url:"https://github.com/trending?l=Qt-Script"},Quake:{color:"#882233",url:"https://github.com/trending?l=Quake"},R:{color:"#198CE7",url:"https://github.com/trending?l=R"},Racket:{color:"#3c5caa",url:"https://github.com/trending?l=Racket"},Ragel:{color:"#9d5200",url:"https://github.com/trending?l=Ragel"},Raku:{color:"#0000fb",url:"https://github.com/trending?l=Raku"},RAML:{color:"#77d9fb",url:"https://github.com/trending?l=RAML"},Rascal:{color:"#fffaa0",url:"https://github.com/trending?l=Rascal"},RDoc:{color:"#701516",url:"https://github.com/trending?l=RDoc"},REALbasic:{color:null,url:"https://github.com/trending?l=REALbasic"},Reason:{color:"#ff5847",url:"https://github.com/trending?l=Reason"},ReasonLIGO:{color:"#ff5847",url:"https://github.com/trending?l=ReasonLIGO"},Rebol:{color:"#358a5b",url:"https://github.com/trending?l=Rebol"},"Record Jar":{color:"#0673ba",url:"https://github.com/trending?l=Record-Jar"},Red:{color:"#f50000",url:"https://github.com/trending?l=Red"},Redcode:{color:null,url:"https://github.com/trending?l=Redcode"},"Regular Expression":{color:"#009a00",url:"https://github.com/trending?l=Regular-Expression"},"Ren'Py":{color:"#ff7f7f",url:"https://github.com/trending?l=Ren'Py"},RenderScript:{color:null,url:"https://github.com/trending?l=RenderScript"},ReScript:{color:"#ed5051",url:"https://github.com/trending?l=ReScript"},reStructuredText:{color:"#141414",url:"https://github.com/trending?l=reStructuredText"},REXX:{color:"#d90e09",url:"https://github.com/trending?l=REXX"},Ring:{color:"#2D54CB",url:"https://github.com/trending?l=Ring"},Riot:{color:"#A71E49",url:"https://github.com/trending?l=Riot"},RMarkdown:{color:"#198ce7",url:"https://github.com/trending?l=RMarkdown"},RobotFramework:{color:"#00c0b5",url:"https://github.com/trending?l=RobotFramework"},Roff:{color:"#ecdebe",url:"https://github.com/trending?l=Roff"},"Roff Manpage":{color:"#ecdebe",url:"https://github.com/trending?l=Roff-Manpage"},Rouge:{color:"#cc0088",url:"https://github.com/trending?l=Rouge"},"RouterOS Script":{color:"#DE3941",url:"https://github.com/trending?l=RouterOS-Script"},RPC:{color:null,url:"https://github.com/trending?l=RPC"},RPGLE:{color:"#2BDE21",url:"https://github.com/trending?l=RPGLE"},Ruby:{color:"#701516",url:"https://github.com/trending?l=Ruby"},RUNOFF:{color:"#665a4e",url:"https://github.com/trending?l=RUNOFF"},Rust:{color:"#dea584",url:"https://github.com/trending?l=Rust"},Sage:{color:null,url:"https://github.com/trending?l=Sage"},SaltStack:{color:"#646464",url:"https://github.com/trending?l=SaltStack"},SAS:{color:"#B34936",url:"https://github.com/trending?l=SAS"},Sass:{color:"#a53b70",url:"https://github.com/trending?l=Sass"},Scala:{color:"#c22d40",url:"https://github.com/trending?l=Scala"},Scaml:{color:"#bd181a",url:"https://github.com/trending?l=Scaml"},Scheme:{color:"#1e4aec",url:"https://github.com/trending?l=Scheme"},Scilab:{color:"#ca0f21",url:"https://github.com/trending?l=Scilab"},SCSS:{color:"#c6538c",url:"https://github.com/trending?l=SCSS"},sed:{color:"#64b970",url:"https://github.com/trending?l=sed"},Self:{color:"#0579aa",url:"https://github.com/trending?l=Self"},ShaderLab:{color:"#222c37",url:"https://github.com/trending?l=ShaderLab"},Shell:{color:"#89e051",url:"https://github.com/trending?l=Shell"},"ShellCheck Config":{color:"#cecfcb",url:"https://github.com/trending?l=ShellCheck-Config"},ShellSession:{color:null,url:"https://github.com/trending?l=ShellSession"},Shen:{color:"#120F14",url:"https://github.com/trending?l=Shen"},Sieve:{color:null,url:"https://github.com/trending?l=Sieve"},Singularity:{color:"#64E6AD",url:"https://github.com/trending?l=Singularity"},Slash:{color:"#007eff",url:"https://github.com/trending?l=Slash"},Slice:{color:"#003fa2",url:"https://github.com/trending?l=Slice"},Slim:{color:"#2b2b2b",url:"https://github.com/trending?l=Slim"},Smali:{color:null,url:"https://github.com/trending?l=Smali"},Smalltalk:{color:"#596706",url:"https://github.com/trending?l=Smalltalk"},Smarty:{color:"#f0c040",url:"https://github.com/trending?l=Smarty"},SmPL:{color:"#c94949",url:"https://github.com/trending?l=SmPL"},SMT:{color:null,url:"https://github.com/trending?l=SMT"},Solidity:{color:"#AA6746",url:"https://github.com/trending?l=Solidity"},SourcePawn:{color:"#f69e1d",url:"https://github.com/trending?l=SourcePawn"},SPARQL:{color:"#0C4597",url:"https://github.com/trending?l=SPARQL"},SQF:{color:"#3F3F3F",url:"https://github.com/trending?l=SQF"},SQL:{color:"#e38c00",url:"https://github.com/trending?l=SQL"},SQLPL:{color:"#e38c00",url:"https://github.com/trending?l=SQLPL"},Squirrel:{color:"#800000",url:"https://github.com/trending?l=Squirrel"},"SRecode Template":{color:"#348a34",url:"https://github.com/trending?l=SRecode-Template"},Stan:{color:"#b2011d",url:"https://github.com/trending?l=Stan"},"Standard ML":{color:"#dc566d",url:"https://github.com/trending?l=Standard-ML"},Starlark:{color:"#76d275",url:"https://github.com/trending?l=Starlark"},Stata:{color:"#1a5f91",url:"https://github.com/trending?l=Stata"},STL:{color:"#373b5e",url:"https://github.com/trending?l=STL"},StringTemplate:{color:"#3fb34f",url:"https://github.com/trending?l=StringTemplate"},Stylus:{color:"#ff6347",url:"https://github.com/trending?l=Stylus"},"SubRip Text":{color:"#9e0101",url:"https://github.com/trending?l=SubRip-Text"},SugarSS:{color:"#2fcc9f",url:"https://github.com/trending?l=SugarSS"},SuperCollider:{color:"#46390b",url:"https://github.com/trending?l=SuperCollider"},Svelte:{color:"#ff3e00",url:"https://github.com/trending?l=Svelte"},SVG:{color:"#ff9900",url:"https://github.com/trending?l=SVG"},Swift:{color:"#F05138",url:"https://github.com/trending?l=Swift"},SWIG:{color:null,url:"https://github.com/trending?l=SWIG"},SystemVerilog:{color:"#DAE1C2",url:"https://github.com/trending?l=SystemVerilog"},Talon:{color:"#333333",url:"https://github.com/trending?l=Talon"},Tcl:{color:"#e4cc98",url:"https://github.com/trending?l=Tcl"},Tcsh:{color:null,url:"https://github.com/trending?l=Tcsh"},Terra:{color:"#00004c",url:"https://github.com/trending?l=Terra"},TeX:{color:"#3D6117",url:"https://github.com/trending?l=TeX"},Textile:{color:"#ffe7ac",url:"https://github.com/trending?l=Textile"},"TextMate Properties":{color:"#df66e4",url:"https://github.com/trending?l=TextMate-Properties"},Thrift:{color:"#D12127",url:"https://github.com/trending?l=Thrift"},"TI Program":{color:"#A0AA87",url:"https://github.com/trending?l=TI-Program"},TLA:{color:"#4b0079",url:"https://github.com/trending?l=TLA"},TOML:{color:"#9c4221",url:"https://github.com/trending?l=TOML"},TSQL:{color:"#e38c00",url:"https://github.com/trending?l=TSQL"},TSV:{color:"#237346",url:"https://github.com/trending?l=TSV"},TSX:{color:"#3178c6",url:"https://github.com/trending?l=TSX"},Turing:{color:"#cf142b",url:"https://github.com/trending?l=Turing"},Twig:{color:"#c1d026",url:"https://github.com/trending?l=Twig"},TXL:{color:"#0178b8",url:"https://github.com/trending?l=TXL"},TypeScript:{color:"#3178c6",url:"https://github.com/trending?l=TypeScript"},"Unified Parallel C":{color:"#4e3617",url:"https://github.com/trending?l=Unified-Parallel-C"},"Unity3D Asset":{color:"#222c37",url:"https://github.com/trending?l=Unity3D-Asset"},"Unix Assembly":{color:null,url:"https://github.com/trending?l=Unix-Assembly"},Uno:{color:"#9933cc",url:"https://github.com/trending?l=Uno"},UnrealScript:{color:"#a54c4d",url:"https://github.com/trending?l=UnrealScript"},UrWeb:{color:"#ccccee",url:"https://github.com/trending?l=UrWeb"},V:{color:"#4f87c4",url:"https://github.com/trending?l=V"},Vala:{color:"#a56de2",url:"https://github.com/trending?l=Vala"},"Valve Data Format":{color:"#f26025",url:"https://github.com/trending?l=Valve-Data-Format"},VBA:{color:"#867db1",url:"https://github.com/trending?l=VBA"},VBScript:{color:"#15dcdc",url:"https://github.com/trending?l=VBScript"},VCL:{color:"#148AA8",url:"https://github.com/trending?l=VCL"},"Velocity Template Language":{color:"#507cff",url:"https://github.com/trending?l=Velocity-Template-Language"},Verilog:{color:"#b2b7f8",url:"https://github.com/trending?l=Verilog"},VHDL:{color:"#adb2cb",url:"https://github.com/trending?l=VHDL"},"Vim Help File":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Help-File"},"Vim Script":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Script"},"Vim Snippet":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Snippet"},"Visual Basic .NET":{color:"#945db7",url:"https://github.com/trending?l=Visual-Basic-.NET"},Volt:{color:"#1F1F1F",url:"https://github.com/trending?l=Volt"},Vue:{color:"#41b883",url:"https://github.com/trending?l=Vue"},Vyper:{color:"#2980b9",url:"https://github.com/trending?l=Vyper"},wdl:{color:"#42f1f4",url:"https://github.com/trending?l=wdl"},"Web Ontology Language":{color:"#5b70bd",url:"https://github.com/trending?l=Web-Ontology-Language"},WebAssembly:{color:"#04133b",url:"https://github.com/trending?l=WebAssembly"},WebIDL:{color:null,url:"https://github.com/trending?l=WebIDL"},Whiley:{color:"#d5c397",url:"https://github.com/trending?l=Whiley"},Wikitext:{color:"#fc5757",url:"https://github.com/trending?l=Wikitext"},"Windows Registry Entries":{color:"#52d5ff",url:"https://github.com/trending?l=Windows-Registry-Entries"},wisp:{color:"#7582D1",url:"https://github.com/trending?l=wisp"},"Witcher Script":{color:"#ff0000",url:"https://github.com/trending?l=Witcher-Script"},Wollok:{color:"#a23738",url:"https://github.com/trending?l=Wollok"},"World of Warcraft Addon Data":{color:"#f7e43f",url:"https://github.com/trending?l=World-of-Warcraft-Addon-Data"},Wren:{color:"#383838",url:"https://github.com/trending?l=Wren"},X10:{color:"#4B6BEF",url:"https://github.com/trending?l=X10"},xBase:{color:"#403a40",url:"https://github.com/trending?l=xBase"},XC:{color:"#99DA07",url:"https://github.com/trending?l=XC"},XML:{color:"#0060ac",url:"https://github.com/trending?l=XML"},"XML Property List":{color:"#0060ac",url:"https://github.com/trending?l=XML-Property-List"},Xojo:{color:"#81bd41",url:"https://github.com/trending?l=Xojo"},Xonsh:{color:"#285EEF",url:"https://github.com/trending?l=Xonsh"},XProc:{color:null,url:"https://github.com/trending?l=XProc"},XQuery:{color:"#5232e7",url:"https://github.com/trending?l=XQuery"},XS:{color:null,url:"https://github.com/trending?l=XS"},XSLT:{color:"#EB8CEB",url:"https://github.com/trending?l=XSLT"},Xtend:{color:"#24255d",url:"https://github.com/trending?l=Xtend"},Yacc:{color:"#4B6C4B",url:"https://github.com/trending?l=Yacc"},YAML:{color:"#cb171e",url:"https://github.com/trending?l=YAML"},YARA:{color:"#220000",url:"https://github.com/trending?l=YARA"},YASnippet:{color:"#32AB90",url:"https://github.com/trending?l=YASnippet"},Yul:{color:"#794932",url:"https://github.com/trending?l=Yul"},ZAP:{color:"#0d665e",url:"https://github.com/trending?l=ZAP"},Zeek:{color:null,url:"https://github.com/trending?l=Zeek"},ZenScript:{color:"#00BCD1",url:"https://github.com/trending?l=ZenScript"},Zephir:{color:"#118f9e",url:"https://github.com/trending?l=Zephir"},Zig:{color:"#ec915c",url:"https://github.com/trending?l=Zig"},ZIL:{color:"#dc75e5",url:"https://github.com/trending?l=ZIL"},Zimpl:{color:"#d67711",url:"https://github.com/trending?l=Zimpl"}};var vu=R(bu()),yu=new Map;for(let[e,t]of Object.entries(du))yu.set(e.toLowerCase(),{...t,lang:e});function xu(e){let t=vu.default.languages(e.toLowerCase()),r=[];if(!t)return null;let o=null;for(let i of t){let l=yu.get(i);if(l){o=l,r.push(o.lang);break}}return o?o.color:null}var Qo=class{constructor(t,r,o,i){this.scale=(i-o)/(r-t),this.offset=t*this.scale-o,this.target_max=i,this.target_min=o}translate(t){return t*this.scale-this.offset}inverseTranslate(t){return this.target_max-this.translate(t)+this.target_min}};var wu=R(ee());var ve=R(X()),Jo=3,Ke=class{constructor(t,r){this.color=t;this.weight=r}add(t){this.weight+=t}};function ku({metricCache:e}){let[t,r]=(0,wu.useState)(!0),o=Array.from(e.legend).sort(([,i],[,l])=>i.weight<l.weight?1:i.weight>l.weight?-1:0);return o.length===0?null:o.length<=Jo+1?(0,ve.jsx)($i,{show:!0,items:o}):(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)($i,{show:!0,items:o.slice(0,Jo)}),(0,ve.jsx)($i,{show:!t,items:o.slice(Jo)}),(0,ve.jsx)(rv,{show:t,items:o.slice(Jo),toggle:()=>r(!t)}),(0,ve.jsx)(Fo,{collapse:t,toggle:()=>r(!t)})]})}function $i(e){return e.show?(0,ve.jsx)(ve.Fragment,{children:e.items.map(t=>{let[r,o]=t;return(0,ve.jsxs)("div",{children:[(0,ve.jsxs)(gi,{children:[(0,ve.jsx)(Lt,{dotColor:o.color}),(0,ve.jsx)(N,{horizontal:!0}),(0,ve.jsx)(fr,{children:r})]}),(0,ve.jsx)(N,{})]},r)})}):null}var tv=G.div`
33
+ width: fit-content;
34
+ &:hover {
35
+ cursor: pointer;
36
+ }
37
+ `;function rv(e){return e.show?(0,ve.jsx)(tv,{children:(0,ve.jsxs)(gi,{onClick:e.toggle,children:[e.items.slice(0,14).map(([t,r],o)=>{let i=o===0?0:-10;return(0,ve.jsx)(Lt,{dotColor:r.color,style:{marginLeft:i}},`dot${t}`)}),(0,ve.jsx)(N,{horizontal:!0}),(0,ve.jsxs)(fr,{children:[e.items.length," more"]})]})}):null}function Su(e,t){var l;let r=e.name.substring(e.name.lastIndexOf(".")+1),o=xu(r),i=t.legend;o?(i.has(r)?(l=i.get(r))==null||l.add(1):i.set(r,new Ke(o,1)),t.colormap.set(e.path,o)):(i.has("Other")||i.set("Other",new Ke("grey",0)),t.colormap.set(e.path,"grey"))}function Cu(e,t,r){var m,v;let o="red",i="hsl(210, 38%, 85%)",l="teal",c=(v=(m=e.unionedAuthors)==null?void 0:m[r])!=null?v:{},f=0;for(let[,S]of Object.entries(c))f+=S;let h=t.legend;if(f===0){h.set("No authors",new Ke(l,0)),t.colormap.set(e.path,l);return}if(!c)throw Error("No unioned authors found");switch(Object.keys(c).length){case 1:h.set("Single author",new Ke(o,2)),t.colormap.set(e.path,o);return;default:h.set("Multiple authors",new Ke(i,1)),t.colormap.set(e.path,i);return}}var Ko=class{constructor(t,r){this.min_lightness=50;this.max_lightness=95;this.translater=new Qo(t,r,this.min_lightness,this.max_lightness)}getColor(t){return`hsl(20,100%,${this.translater.inverseTranslate(t)}%)`}setColor(t,r){r.colormap.set(t.path,this.getColor(t.noCommits))}};function Mu(e){return[{epoch:0,text:Gs(e*1e3),color:"#cff2ff"},{epoch:86400,text:"+1d",color:"#c6dbef"},{epoch:604800,text:"+1w",color:"#9ecae1"},{epoch:2629743,text:"+1m",color:"#6baed6"},{epoch:31556926,text:"+1y",color:"#4292c6"},{epoch:31556926*2,text:"+2y",color:"#2171b5"},{epoch:31556926*4,text:"+4y",color:"#084594"}]}function Yo(e,t,r){let o=t-r,i=0;for(;i<e.length-1;){if(o<e[i+1].epoch)return i;i++}return i}function Au(e,t,r,o){var m,v,S,y;let i=(m=t.unionedAuthors)==null?void 0:m[o],l;try{if(!i||(l=Object.entries(i).sort(([b,k],[M,E])=>{if(k===0||E===0||!b||!M)throw Error;return k<E?1:k>E?-1:0}),!l[0]))throw Error}catch{return}let[c]=l[0],f=r.legend,h=(v=e.get(c))!=null?v:"grey";if(r.colormap.set(t.path,h),(S=t.dominantAuthor)==null||S.set(o,l[0]),f.has(c)){(y=f.get(c))==null||y.add(1);return}f.set(c,new Ke(h,1))}var Zo=class{constructor(t){this.min_lightness=50;this.max_lighness=90;this.step=t<=1?1:this.step=(this.max_lighness-this.min_lightness)/Math.floor(Math.log2(t))}getColor(t){let r=Math.floor(Math.log2(t));return`hsl(0,75%,${this.min_lightness+r*this.step}%)`}setColor(t,r){var o,i;r.colormap.set(t.path,this.getColor(Object.entries((i=(o=t.unionedAuthors)==null?void 0:o.HISTORICAL)!=null?i:[]).length))}};var Ou={HISTORICAL:"Complete history",BLAME:"Newest version"},pr={FILE_EXTENSION:"File extension",MOST_COMMITS:"Number of commits",LAST_CHANGED:"Last changed",SINGLE_AUTHOR:"Single author",TOP_CONTRIBUTOR:"Top contributor",TRUCK_FACTOR:"Truck factor"};function _u(e){let t=ov(e.authors);return[{HISTORICAL:Pu(e.commit.tree,Tu(e,"HISTORICAL",t)),BLAME:Pu(e.commit.tree,Tu(e,"BLAME",t))},t]}function Eu(e,t){switch(e){case"FILE_EXTENSION":return"Where are different types of files located?";case"MOST_COMMITS":return"Which files have had the most commits, throughout the repository's history?";case"LAST_CHANGED":return"How long ago did the files change?";case"SINGLE_AUTHOR":return t==="HISTORICAL"?"Which files are authored by only one person, throughout the repository's history?":"Which files are authored by only one person, in the newest version?";case"TOP_CONTRIBUTOR":return t==="HISTORICAL"?"Which person has made the most line-changes to a file, throughout the repository's history?":"Which person has made the most line-changes to a file, in the newest version?";case"TRUCK_FACTOR":return"How many have contributed to a file?";default:throw new Error("Uknown metric type: "+e)}}function Ru(e){switch(e){case"FILE_EXTENSION":case"TOP_CONTRIBUTOR":case"SINGLE_AUTHOR":return"POINT";case"MOST_COMMITS":return"GRADIENT";case"LAST_CHANGED":case"TRUCK_FACTOR":return"SEGMENTS";default:throw new Error("Uknown metric type: "+e)}}function ov(e){let t={};for(let l of Object.keys(e))t[l]=0;let r=(0,Lu.default)({count:e.length}),o=0,i=new Map;for(let l of e){let c=r[o++].rgb(!0),f=`rgb(${c[0]},${c[1]},${c[2]})`;i.set(l,f)}return i}function Tu(e,t,r){let o=e.commit,i=new Ko(o.minNoCommits,o.maxNoCommits),l=new Zo(e.authorsUnion.length);return[["FILE_EXTENSION",(c,f)=>{f.legend||(f.legend=new Map),Su(c,f)}],["SINGLE_AUTHOR",(c,f)=>{f.legend||(f.legend=new Map),Cu(c,f,t)}],["MOST_COMMITS",(c,f)=>{f.legend||(f.legend=[`${o.minNoCommits}`,`${o.maxNoCommits}`,void 0,void 0,i.getColor(o.minNoCommits),i.getColor(o.maxNoCommits)]),i.setColor(c,f)}],["LAST_CHANGED",(c,f)=>{var v,S;let h=e.commit.newestLatestChangeEpoch,m=Mu(h);f.legend||(f.legend=[Yo(m,h,e.commit.oldestLatestChangeEpoch)+1,y=>m[y].text,y=>m[y].color,y=>{var b,k;return(k=Yo(m,h,(b=y.lastChangeEpoch)!=null?b:0))!=null?k:-1}]),f.colormap.set(c.path,m[(S=Yo(m,h,(v=c.lastChangeEpoch)!=null?v:0))!=null?S:-1].color)}],["TOP_CONTRIBUTOR",(c,f)=>{c.dominantAuthor||(c.dominantAuthor=new Map),f.legend||(f.legend=new Map),Au(r,c,f,t)}],["TRUCK_FACTOR",(c,f)=>{f.legend||(f.legend=[Math.floor(Math.log2(e.authorsUnion.length))+1,h=>`${Math.pow(2,h)}`,h=>`hsl(0,75%,${50+h*(40/(Math.floor(Math.log2(e.authorsUnion.length))+1))}%)`,h=>{var m,v;return Math.floor(Math.log2(Object.entries((v=(m=h.unionedAuthors)==null?void 0:m.HISTORICAL)!=null?v:[]).length))}]),l.setColor(c,f)}]]}function Pu(e,t){let r=new Map;return $u(e,t,r),r}function $u(e,t,r){var o;for(let i of e.children)switch(i.type){case"tree":$u(i,t,r);break;case"blob":for(let[l,c]of t)r.has(l)||r.set(l,{legend:void 0,colormap:new Map}),c(i,(o=r.get(l))!=null?o:{legend:void 0,colormap:new Map});break}}var Di={BUBBLE_CHART:"Bubble chart",TREE_MAP:"Tree map"},ji=(0,en.createContext)(void 0);function $e(){let e=(0,en.useContext)(ji);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e}function Ot(){return{metricType:Object.keys(pr)[0],chartType:Object.keys(Di)[0],authorshipType:Object.keys(Ou)[0],animationsEnabled:!0,setChartType:()=>{throw new Error("No chartTypeSetter provided")},setMetricType:()=>{throw new Error("No metricTypeSetter provided")},setAuthorshipType:()=>{throw new Error("No AuthorshipTypeSetter provided")},setAnimationsEnabled:()=>{throw new Error("No animationsEnabledSetter provided")}}}var tn=R(ee()),Fi=(0,tn.createContext)(void 0);function ot(){let e=(0,tn.useContext)(Fi);if(!e)throw new Error("useSearch must be used within a PathProvider");return e}var Fu={},Du=new WeakMap,ju={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]},Bi=class{constructor(t,r){r=Object.assign({units:"metric",precision:1,locale:void 0},Fu,r),Du.set(this,r),Object.assign(ju,r.customUnits);let o=t<0?"-":"";t=Math.abs(t);let i=ju[r.units];if(i){let l=i.find(c=>t>=c.from&&t<c.to);if(l){let c=new Intl.NumberFormat(r.locale,{style:"decimal",minimumFractionDigits:r.precision,maximumFractionDigits:r.precision}),f=l.from===0?o+t:o+c.format(t/l.from);this.value=f,this.unit=l.unit,this.long=l.long}else this.value=o+t,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${r.units}`)}toString(){let t=Du.get(this);return t.toStringFn?t.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function Bu(e,t){return new Bi(e,t)}Bu.defaultOptions=function(e){Fu=e};var Iu=Bu;gs();var Hr=R(ee());var rn=Hr.forwardRef(function(e,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return Hr.createElement(Mo,So({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),Hr.createElement("path",{fillRule:"evenodd",d:"M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1-1.06 1.06L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0z"}))});rn.displayName="ArrowUp";gs();var qr=R(ee());var hr=qr.forwardRef(function(e,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return qr.createElement(Mo,So({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),qr.createElement("path",{fillRule:"evenodd",d:"M.143 2.31a.75.75 0 0 1 1.047-.167l14.5 10.5a.75.75 0 1 1-.88 1.214l-2.248-1.628C11.346 13.19 9.792 14 8 14c-1.981 0-3.67-.992-4.933-2.078C1.797 10.832.88 9.577.43 8.9a1.618 1.618 0 0 1 0-1.797c.353-.533.995-1.42 1.868-2.305L.31 3.357A.75.75 0 0 1 .143 2.31zm3.386 3.378a14.21 14.21 0 0 0-1.85 2.244.12.12 0 0 0-.022.068c0 .021.006.045.022.068.412.621 1.242 1.75 2.366 2.717C5.175 11.758 6.527 12.5 8 12.5c1.195 0 2.31-.488 3.29-1.191L9.063 9.695A2 2 0 0 1 6.058 7.52l-2.53-1.832zM8 3.5c-.516 0-1.017.09-1.499.251a.75.75 0 1 1-.473-1.423A6.23 6.23 0 0 1 8 2c1.981 0 3.67.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.619 1.619 0 0 1 0 1.798c-.11.166-.248.365-.41.587a.75.75 0 1 1-1.21-.887c.148-.201.272-.382.371-.53a.119.119 0 0 0 0-.137c-.412-.621-1.242-1.75-2.366-2.717C10.825 4.242 9.473 3.5 8 3.5z"}))});hr.displayName="EyeClosed";var O=R(X());function nv(e){let t=e.lastIndexOf("/"),r=e.lastIndexOf("\\");return t!==-1?e.slice(0,t):r!==-1?e.slice(0,r):e}function qu(e){var y;let{setClickedObject:t,clickedObject:r}=rt(),o=ur(),{authorshipType:i}=$e(),{state:l}=Tt(),{setPath:c,path:f}=ot(),{analyzerData:h}=Ee(),m=(0,Xt.useRef)(!1);if((0,Xt.useEffect)(()=>{m.current&&(t(null),m.current=!1)},[r,t,l]),(0,Xt.useEffect)(()=>{t(b=>iv(h.commit.tree,b))},[h,t]),!r)return null;let v=r.type==="blob",S=qs(r.name.split("."));return(0,O.jsxs)(xe,{children:[(0,O.jsx)(Oo,{onClick:()=>t(null)}),(0,O.jsx)(Po,{title:r.name,children:r.name}),(0,O.jsx)(N,{xl:!0}),(0,O.jsxs)(hv,{children:[v?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(fv,{size:r.sizeInBytes,isBinary:r.isBinary}),(0,O.jsx)(lv,{clickedBlob:r}),(0,O.jsx)(sv,{clickedBlob:r})]}):(0,O.jsx)(av,{clickedTree:r}),(0,O.jsx)(cv,{path:r.path})]}),(0,O.jsx)(N,{}),v?(0,O.jsx)(Gu,{authors:(y=r.unionedAuthors)==null?void 0:y[i]}):(0,O.jsx)(Gu,{authors:gv(r,i)}),(0,O.jsx)(N,{xl:!0}),(0,O.jsxs)(_e,{onClick:e.showUnionAuthorsModal,children:[(0,O.jsx)(To,{display:"inline-block",height:"1rem"}),"Merge duplicate users"]}),(0,O.jsx)(N,{}),v?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(ut,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:r.path}),(0,O.jsxs)(_e,{type:"submit",disabled:l!=="idle",onClick:()=>{m.current=!0},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),"Hide this file"]})]}),r.name.includes(".")?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(N,{}),(0,O.jsxs)(ut,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:`*.${S}`}),(0,O.jsxs)(_e,{type:"submit",disabled:l!=="idle",onClick:()=>{m.current=!0},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),(0,O.jsxs)("span",{children:["Hide .",S," files"]})]})]})]}):null,(0,O.jsx)(N,{}),(0,O.jsxs)(ut,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"open",value:r.path}),(0,O.jsxs)(_e,{disabled:l!=="idle",children:[(0,O.jsx)(Cs,{display:"inline-block",height:"1rem"}),"Open file"]})]})]}):(0,O.jsxs)(ut,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:r.path}),(0,O.jsxs)(_e,{type:"submit",disabled:l!=="idle",onClick:()=>{m.current=!0,c(nv(f))},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),"Hide this folder"]})]})]})}function iv(e,t){if(t===null)return null;let r=e,o=t.path.split("/");for(let i=0;i<o.length;i++)for(let l of r.children){if(l.hash===t.hash)return l;if(l.type==="tree"){let c=l.name.split("/");if(c[0]===o[i]){r=l,i+=c.length-1;break}}}return r}function av(e){let t=e.clickedTree.children.filter(o=>o.type==="tree").length,r=e.clickedTree.children.length-t;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{grow:!0,children:"Files"}),(0,O.jsx)(tt,{children:r}),(0,O.jsx)(ft,{grow:!0,children:"Folders"}),(0,O.jsx)(tt,{children:t})]})}function lv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{grow:!0,children:"Commits"}),(0,O.jsx)(tt,{children:e.clickedBlob.noCommits>0?e.clickedBlob.noCommits:0})]})}function sv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{grow:!0,children:"Last changed"}),(0,O.jsx)(tt,{children:Is(e.clickedBlob.lastChangeEpoch)})]})}function cv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{children:"Located at"}),(0,O.jsx)(tt,{title:e.path,children:e.path})]})}var uv=G.span`
38
+ opacity: 0.5;
39
+ `;function fv(e){var r;let t=Iu((r=e.size)!=null?r:0);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{grow:!0,children:"Size"}),(0,O.jsxs)(tt,{children:[t.value," ",t.unit," ",(0,O.jsx)(uv,{children:e.isBinary?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("br",{}),"(binary file)"]}):null})]})]})}var dv=G.div`
40
+ display: flex;
41
+ flex-direction: row;
42
+ justify-content: space-between;
43
+ `,on=2;function Gu(e){let[t,r]=(0,Xt.useState)(!0),o=Object.entries(pv(e.authors)).sort((i,l)=>i[1]<l[1]?1:-1);return o.length<=on+1?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Nu,{children:"Author distribution"}),(0,O.jsx)(N,{}),(0,O.jsx)(Hu,{children:o.length>0&&!mv(e.authors)?(0,O.jsx)(Do,{show:!0,items:o}):(0,O.jsx)("p",{children:"No authors found"})})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(dv,{children:[(0,O.jsx)(Nu,{children:"Author distribution"}),(0,O.jsx)(mc,{relative:!0,collapse:t,toggle:()=>r(!t)})]}),(0,O.jsx)(N,{xs:!0}),(0,O.jsxs)(Hu,{children:[(0,O.jsx)(Do,{show:!0,items:o.slice(0,on)}),(0,O.jsx)(Do,{show:!t,items:o.slice(on)}),(0,O.jsx)(N,{}),(0,O.jsx)(hc,{show:t,items:o.slice(on),toggle:()=>r(!t)})]})]})}function pv(e){if(!e)throw Error("unionedAuthors is undefined");let t=Object.values(e).reduce((o,i)=>o+i,0);return Object.entries(e).reduce((o,[i,l])=>{let c=l/t;return{...o,[i]:c}},{})}var Nu=G.h3`
44
+ font-size: calc(var(--unit) * 2);
45
+ padding-top: calc(var(--unit));
46
+ padding-bottom: calc(var(--unit) * 0.5);
47
+ font-size: 1.1em;
48
+ `,Hu=G.div`
49
+ display: grid;
50
+ grid-template-columns: 1fr auto;
51
+ gap: calc(0.5 * var(--unit)) calc(var(--unit) * 3);
52
+ & > ${tt} {
53
+ text-align: right;
54
+ }
55
+ `,hv=G.div`
56
+ display: grid;
57
+ grid-template-columns: auto 1fr;
58
+ gap: var(--unit) calc(var(--unit) * 3);
59
+ `;function mv(e){if(!e)return!0;let t=Object.entries(e);for(let[,r]of t)if(r>0)return!1;return!0}function gv(e,t){let r={};o(e);function o(i){var l,c;for(let f of i.children)if(f.type==="blob"){let h=(l=f.unionedAuthors)==null?void 0:l[t];if(!h)throw Error("No unioned authors");for(let[m,v]of Object.entries(h))r[m]=((c=r[m])!=null?c:0)+v}else f.type==="tree"&&o(f)}return r}var zr=R(ee());var ge=R(X()),bv="Git Truck",vv="Analyzing | Git Truck";function zu(){var h,m;let{analyzerData:e,repo:t}=Ee(),r=Tt(),o=ur(),i=bs(),[l,c]=(0,zr.useState)(!1);(0,zr.useEffect)(()=>{document.title=l?vv:bv},[l]);let f=v=>{c(!0),i(["",t.name,v].join("/"))};return(0,zr.useEffect)(()=>{r.state==="idle"&&c(!1)},[r.state]),(0,ge.jsxs)(xe,{children:[(0,ge.jsx)(Bs,{children:(0,ge.jsxs)(xv,{to:"..",title:"See all repositories",children:[(0,ge.jsx)(Ao,{display:"inline-block",height:"1rem"}),(0,ge.jsx)(yv,{children:"See more repositories"})]})}),(0,ge.jsx)(N,{}),(0,ge.jsx)(Po,{children:t.name}),(0,ge.jsx)(N,{}),(0,ge.jsx)(Us,{disabled:l,onChange:v=>f(v.target.value),defaultValue:e.branch,headGroups:t.refs,analyzedHeads:t.analyzedHeads},t.currentHead),(0,ge.jsx)(N,{}),(0,ge.jsx)("strong",{children:"Analyzed: "}),(0,ge.jsx)("span",{children:Ns(e.lastRunEpoch)}),(0,ge.jsx)(N,{}),(0,ge.jsx)("strong",{children:"As of commit: "}),(0,ge.jsx)("span",{title:(h=e.commit.message)!=null?h:"No commit message",children:e.commit.hash.slice(0,7)}),(0,ge.jsx)(N,{}),(0,ge.jsx)("strong",{children:"Files analyzed: "}),(0,ge.jsx)("span",{children:(m=e.commit.fileCount)!=null?m:0}),(0,ge.jsx)(N,{xl:!0}),(0,ge.jsxs)(ut,{method:"post",action:o.pathname,onSubmit:()=>{c(!0)},children:[(0,ge.jsx)("input",{type:"hidden",name:"refresh",value:"true"}),(0,ge.jsxs)(_e,{disabled:r.state!=="idle",children:[(0,ge.jsx)(As,{display:"inline-block",height:"1rem"}),l?"Analyzing...":"Reanalyze"]})]})]})}var yv=G.p`
60
+ margin-left: var(--unit);
61
+ `,xv=G(Br)`
62
+ display: inline-flex;
63
+ margin-right: var(--unit);
64
+ text-decoration: none;
65
+ color: hsl(0, 0%, 60%);
66
+ font-size: 0.9em;
67
+ align-items: center;
68
+ &:hover {
69
+ color: hsl(0, 0%, 20%);
70
+ }
71
+ `;var Ne=R(X()),wv=G.div`
72
+ display: grid;
73
+ grid-template-columns: auto 1fr;
74
+ gap: var(--unit);
75
+ margin-top: calc(var(--unit) * 0.5);
76
+ align-items: center;
77
+ `,kv=G(ut)`
78
+ width: calc(2 * var(--unit));
79
+ `,Sv=G(Lo)`
80
+ & > #eye {
81
+ display: none;
82
+ }
83
+ & > #eyeslash {
84
+ opacity: 0.5;
85
+ }
86
+ &:hover > #eye {
87
+ display: block;
88
+ }
89
+ &:hover > #eyeslash {
90
+ display: none;
91
+ }
92
+ `;function Cv(e){if(!e.includes("/"))return e;let t=e.split("/");return t[t.length-1]}function Vu(){let e=ur(),[t,r]=Vt(!1),o=Tt(),{analyzerData:i}=Ee();return(0,Ne.jsxs)(xe,{children:[(0,Ne.jsxs)(Pt,{children:["Hidden files (",i.hiddenFiles.length,")"]}),(0,Ne.jsx)(N,{}),(0,Ne.jsx)(Fo,{collapse:t,toggle:()=>r(!t)}),t?null:(0,Ne.jsx)("div",{children:i.hiddenFiles.map(l=>(0,Ne.jsxs)(wv,{title:l,children:[(0,Ne.jsxs)(kv,{method:"post",action:e.pathname,children:[(0,Ne.jsx)("input",{type:"hidden",name:"unignore",value:l}),(0,Ne.jsxs)(Sv,{title:"Show file",disabled:o.state!=="idle",children:[(0,Ne.jsx)(Ls,{display:"inline-block",height:"1rem",id:"eyeslash"}),(0,Ne.jsx)(Ps,{display:"inline-block",height:"1rem",id:"eye"})]})]}),(0,Ne.jsx)(Es,{children:Cv(l)})]},l))})]})}var nn=R(ee()),Ii=(0,nn.createContext)(void 0);function dt(){let e=(0,nn.useContext)(Ii);if(!e)throw new Error("useMetrics must be used within a MetricsContext");return e}var mr="red";var ye=R(X());function Uu({metricCache:e}){let[t,r,o,i]=e.legend,l=100/t,c=!1,f=0,{clickedObject:h}=rt();return(h==null?void 0:h.type)=="blob"&&(c=!0,f=l/2+l*i(h)),(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)("div",{style:{display:"flex",flexDirection:"row"},children:[...Array(t).fill(1)].map((m,v)=>t>=4?(0,ye.jsx)(Av,{width:l,color:o(v),text:r(v),top:v%2===0},`legend-${v}`):(0,ye.jsx)(Tv,{width:l,color:o(v),text:r(v)},`legend-${v}`))}),(0,ye.jsx)(Mv,{visible:c,position:f,height:t>=4?50:10,children:"\u25B2"})]})}var Mv=G.i`
93
+ display: ${({visible:e})=>e?"initital":"none"};
94
+ transition: 500ms;
95
+ position: relative;
96
+ bottom: ${({height:e})=>`${e}px`};
97
+ left: calc(${({position:e})=>e}% - ${7}px);
98
+ filter: drop-shadow(0px -2px 0px #fff);
99
+ `;function Av({width:e,color:t,text:r,top:o}){return o?(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"40px"}})]}):(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"32px"}}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-7px"},children:"\\"}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-4px"},children:r})]})}function Tv({width:e,color:t,text:r}){return(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}})]})}var pt=R(X());function Wu({metricCache:e}){var v,S;let[t,r,o,i,l,c]=e.legend,{clickedObject:f}=rt(),h=Gi((S=e.colormap.get((v=f==null?void 0:f.path)!=null?v:""))!=null?S:""),m=-1;if(h!==-1){let y=Gi(l),b=Gi(c);m=(h-y)/(b-y)}return(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsxs)(js,{children:[(0,pt.jsx)(fr,{title:o,children:t}),(0,pt.jsx)(fr,{title:i,children:r})]}),(0,pt.jsx)(Ds,{min:l,max:c}),(0,pt.jsx)(Pv,{visible:m!==-1,position:m,children:"\u25B2"})]})}function Gi(e){var i,l;let r=(i=/%,((?:\d|\.)+?)%\)/gm.exec(e))==null?void 0:i.entries();return r==null||r.next(),parseFloat((l=r==null?void 0:r.next().value[1])!=null?l:"-1")}var Pv=G.i`
100
+ display: ${({visible:e})=>e?"initital":"none"};
101
+ transition: 500ms;
102
+ position: relative;
103
+ bottom: 11px;
104
+ left: calc(${({position:e})=>e*100}% - ${7}px);
105
+ filter: drop-shadow(0px -2px 0px #fff);
106
+ `;var Le=R(X()),Lv=G(xe)`
107
+ position: sticky;
108
+ bottom: 0;
109
+ `;function Xu(e){var c;let{metricType:t,authorshipType:r}=$e(),[o]=dt(),i=(c=o[r].get(t))!=null?c:void 0;if(i===void 0)return null;let l=(0,Le.jsx)(Le.Fragment,{});switch(Ru(t)){case"POINT":l=(0,Le.jsx)(ku,{metricCache:i});break;case"GRADIENT":l=(0,Le.jsx)(Wu,{metricCache:i});break;case"SEGMENTS":l=(0,Le.jsx)(Uu,{metricCache:i});break}return(0,Le.jsxs)(Lv,{children:[(0,Le.jsx)(Pt,{children:pr[t]}),(0,Le.jsx)(N,{}),(0,Le.jsx)(zt,{children:Eu(t,r)}),(0,Le.jsx)(N,{lg:!0}),t==="TOP_CONTRIBUTOR"||t==="SINGLE_AUTHOR"?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)(_e,{onClick:e.showUnionAuthorsModal,children:[(0,Le.jsx)(To,{display:"inline-block",height:"1rem"}),"Merge duplicate users"]}),(0,Le.jsx)(N,{lg:!0})]}):null,l]})}var Hi=Ur(),z=e=>Vr(e,Hi),qi=Ur();z.write=e=>Vr(e,qi);var an=Ur();z.onStart=e=>Vr(e,an);var zi=Ur();z.onFrame=e=>Vr(e,zi);var Vi=Ur();z.onFinish=e=>Vr(e,Vi);var br=[];z.setTimeout=(e,t)=>{let r=z.now()+t,o=()=>{let l=br.findIndex(c=>c.cancel==o);~l&&br.splice(l,1),Et-=~l?1:0},i={time:r,handler:e,cancel:o};return br.splice(Qu(r),0,i),Et+=1,Ju(),i};var Qu=e=>~(~br.findIndex(t=>t.time>e)||~br.length);z.cancel=e=>{an.delete(e),zi.delete(e),Vi.delete(e),Hi.delete(e),qi.delete(e)};z.sync=e=>{Ni=!0,z.batchedUpdates(e),Ni=!1};z.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function o(...i){t=i,z.onStart(r)}return o.handler=e,o.cancel=()=>{an.delete(r),t=null},o};var Ui=typeof window<"u"?window.requestAnimationFrame:()=>{};z.use=e=>Ui=e;z.now=typeof performance<"u"?()=>performance.now():Date.now;z.batchedUpdates=e=>e();z.catch=console.error;z.frameLoop="always";z.advance=()=>{z.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Yu()};var _t=-1,Et=0,Ni=!1;function Vr(e,t){Ni?(t.delete(e),e(0)):(t.add(e),Ju())}function Ju(){_t<0&&(_t=0,z.frameLoop!=="demand"&&Ui(Ku))}function Ov(){_t=-1}function Ku(){~_t&&(Ui(Ku),z.batchedUpdates(Yu))}function Yu(){let e=_t;_t=z.now();let t=Qu(_t);if(t&&(Zu(br.splice(0,t),r=>r.handler()),Et-=t),!Et){Ov();return}an.flush(),Hi.flush(e?Math.min(64,_t-e):16.667),zi.flush(),qi.flush(),Vi.flush()}function Ur(){let e=new Set,t=e;return{add(r){Et+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return Et-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,Et-=t.size,Zu(t,o=>o(r)&&e.add(o)),Et+=e.size,t=e)}}}function Zu(e,t){e.forEach(r=>{try{t(r)}catch(o){z.catch(o)}})}var Be=R(ee());function fn(){}var af=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),_={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function nt(e,t){if(_.arr(e)){if(!_.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var Y=(e,t)=>e.forEach(t);function He(e,t,r){if(_.arr(e)){for(let o=0;o<e.length;o++)t.call(r,e[o],`${o}`);return}for(let o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o)}var De=e=>_.und(e)?[]:_.arr(e)?e:[e];function wr(e,t){if(e.size){let r=Array.from(e);e.clear(),Y(r,t)}}var kr=(e,...t)=>wr(e,r=>r(...t)),Yi=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Zi,lf,Rt=null,sf=!1,ea=fn,_v=e=>{e.to&&(lf=e.to),e.now&&(z.now=e.now),e.colors!==void 0&&(Rt=e.colors),e.skipAnimation!=null&&(sf=e.skipAnimation),e.createStringInterpolator&&(Zi=e.createStringInterpolator),e.requestAnimationFrame&&z.use(e.requestAnimationFrame),e.batchedUpdates&&(z.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ea=e.willAdvance),e.frameLoop&&(z.frameLoop=e.frameLoop)},qe=Object.freeze({__proto__:null,get createStringInterpolator(){return Zi},get to(){return lf},get colors(){return Rt},get skipAnimation(){return sf},get willAdvance(){return ea},assign:_v}),Wr=new Set,ze=[],Wi=[],cn=0,Sr={get idle(){return!Wr.size&&!ze.length},start(e){cn>e.priority?(Wr.add(e),z.onStart(Ev)):(cf(e),z(Ji))},advance:Ji,sort(e){if(cn)z.onFrame(()=>Sr.sort(e));else{let t=ze.indexOf(e);~t&&(ze.splice(t,1),uf(e))}},clear(){ze=[],Wr.clear()}};function Ev(){Wr.forEach(cf),Wr.clear(),z(Ji)}function cf(e){ze.includes(e)||uf(e)}function uf(e){ze.splice(Rv(ze,t=>t.priority>e.priority),0,e)}function Ji(e){let t=Wi;for(let r=0;r<ze.length;r++){let o=ze[r];cn=o.priority,o.idle||(ea(o),o.advance(e),o.idle||t.push(o))}return cn=0,Wi=ze,Wi.length=0,ze=t,ze.length>0}function Rv(e,t){let r=e.findIndex(t);return r<0?e.length:r}var ff={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ye="[-+]?\\d*\\.?\\d+",un=Ye+"%";function dn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var $v=new RegExp("rgb"+dn(Ye,Ye,Ye)),Dv=new RegExp("rgba"+dn(Ye,Ye,Ye,Ye)),jv=new RegExp("hsl"+dn(Ye,un,un)),Fv=new RegExp("hsla"+dn(Ye,un,un,Ye)),Bv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Iv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Gv=/^#([0-9a-fA-F]{6})$/,Nv=/^#([0-9a-fA-F]{8})$/;function Hv(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Gv.exec(e))?parseInt(t[1]+"ff",16)>>>0:Rt&&Rt[e]!==void 0?Rt[e]:(t=$v.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|255)>>>0:(t=Dv.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|rf(t[4]))>>>0:(t=Bv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Nv.exec(e))?parseInt(t[1],16)>>>0:(t=Iv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=jv.exec(e))?(ef(tf(t[1]),ln(t[2]),ln(t[3]))|255)>>>0:(t=Fv.exec(e))?(ef(tf(t[1]),ln(t[2]),ln(t[3]))|rf(t[4]))>>>0:null}function Xi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ef(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,i=2*r-o,l=Xi(i,o,e+1/3),c=Xi(i,o,e),f=Xi(i,o,e-1/3);return Math.round(l*255)<<24|Math.round(c*255)<<16|Math.round(f*255)<<8}function vr(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function tf(e){return(parseFloat(e)%360+360)%360/360}function rf(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ln(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function of(e){let t=Hv(e);if(t===null)return e;t=t||0;let r=(t&4278190080)>>>24,o=(t&16711680)>>>16,i=(t&65280)>>>8,l=(t&255)/255;return`rgba(${r}, ${o}, ${i}, ${l})`}var $t=(e,t,r)=>{if(_.fun(e))return e;if(_.arr(e))return $t({range:e,output:t,extrapolate:r});if(_.str(e.output[0]))return Zi(e);let o=e,i=o.output,l=o.range||[0,1],c=o.extrapolateLeft||o.extrapolate||"extend",f=o.extrapolateRight||o.extrapolate||"extend",h=o.easing||(m=>m);return m=>{let v=zv(m,l);return qv(m,l[v],l[v+1],i[v],i[v+1],h,c,f,o.map)}};function qv(e,t,r,o,i,l,c,f,h){let m=h?h(e):e;if(m<t){if(c==="identity")return m;c==="clamp"&&(m=t)}if(m>r){if(f==="identity")return m;f==="clamp"&&(m=r)}return o===i?o:t===r?e<=t?o:i:(t===-1/0?m=-m:r===1/0?m=m-t:m=(m-t)/(r-t),m=l(m),o===-1/0?m=-m:i===1/0?m=m+o:m=m*(i-o)+o,m)}function zv(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ki.apply(this,arguments)}var yr=Symbol.for("FluidValue.get"),Qt=Symbol.for("FluidValue.observers"),je=e=>Boolean(e&&e[yr]),Oe=e=>e&&e[yr]?e[yr]():e,ta=e=>e[Qt]||null;function Vv(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Jt(e,t){let r=e[Qt];r&&r.forEach(o=>{Vv(o,t)})}var xr=class{constructor(t){if(this[yr]=void 0,this[Qt]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");Uv(this,t)}},Uv=(e,t)=>df(e,yr,t);function ht(e,t){if(e[yr]){let r=e[Qt];r||df(e,Qt,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Dt(e,t){let r=e[Qt];if(r&&r.has(t)){let o=r.size-1;o?r.delete(t):e[Qt]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var df=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),sn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,nf=new RegExp(`(${sn.source})(%|[a-z]+)`,"i"),Xv=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,pn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,pf=e=>{let[t,r]=Qv(e);if(!t||Yi())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(r&&r.startsWith("--")){let i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&pn.test(r))return pf(r);if(r)return r}return e},Qv=e=>{let t=pn.exec(e);if(!t)return[,];let[,r,o]=t;return[r,o]},Qi,Jv=(e,t,r,o,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(o)}, ${i})`,hn=e=>{Qi||(Qi=Rt?new RegExp(`(${Object.keys(Rt).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(l=>Oe(l).replace(pn,pf).replace(Wv,of).replace(Qi,of)),r=t.map(l=>l.match(sn).map(Number)),i=r[0].map((l,c)=>r.map(f=>{if(!(c in f))throw Error('The arity of each "output" value must be equal');return f[c]})).map(l=>$t(Ki({},e,{output:l})));return l=>{var c;let f=!nf.test(t[0])&&((c=t.find(m=>nf.test(m)))==null?void 0:c.replace(sn,"")),h=0;return t[0].replace(sn,()=>`${i[h++](l)}${f||""}`).replace(Xv,Jv)}},ra="react-spring: ",hf=e=>{let t=e,r=!1;if(typeof t!="function")throw new TypeError(`${ra}once requires a function parameter`);return(...o)=>{r||(t(...o),r=!0)}},Kv=hf(console.warn);function mf(){Kv(`${ra}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Yv=hf(console.warn);function gf(){Yv(`${ra}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Cr(e){return _.str(e)&&(e[0]=="#"||/\d/.test(e)||!Yi()&&pn.test(e)||e in(Rt||{}))}var Mr=Yi()?Be.useEffect:Be.useLayoutEffect,Zv=()=>{let e=(0,Be.useRef)(!1);return Mr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function mn(){let e=(0,Be.useState)()[1],t=Zv();return()=>{t.current&&e(Math.random())}}function bf(e,t){let[r]=(0,Be.useState)(()=>({inputs:t,result:e()})),o=(0,Be.useRef)(),i=o.current,l=i;return l?Boolean(t&&l.inputs&&ey(t,l.inputs))||(l={inputs:t,result:e()}):l=r,(0,Be.useEffect)(()=>{o.current=l,i==r&&(r.inputs=r.result=void 0)},[l]),l.result}function ey(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var gn=e=>(0,Be.useEffect)(e,ty),ty=[];function oa(e){let t=(0,Be.useRef)();return(0,Be.useEffect)(()=>{t.current=e}),t.current}var io=R(ee()),Ve=R(ee());var wf=R(ee()),mt=R(ee()),Xr=Symbol.for("Animated:node"),ry=e=>!!e&&e[Xr]===e,Ze=e=>e&&e[Xr],xn=(e,t)=>af(e,Xr,t),Jr=e=>e&&e[Xr]&&e[Xr].getPayload(),bn=class{constructor(){this.payload=void 0,xn(this,this)}getPayload(){return this.payload||[]}},gt=class extends bn{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,_.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new gt(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,r){return _.num(t)&&(this.lastPosition=t,r&&(t=Math.round(t/r)*r,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,_.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},bt=class extends gt{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=$t({output:[t,t]})}static create(t){return new bt(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(_.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=$t({output:[this.getValue(),t]})),this._value=0,super.reset()}},vn={dependencies:null},Kt=class extends bn{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let r={};return He(this.source,(o,i)=>{ry(o)?r[i]=o.getValue(t):je(o)?r[i]=Oe(o):t||(r[i]=o)}),r}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Y(this.payload,t=>t.reset())}_makePayload(t){if(t){let r=new Set;return He(t,this._addToPayload,r),Array.from(r)}}_addToPayload(t){vn.dependencies&&je(t)&&vn.dependencies.add(t);let r=Jr(t);r&&Y(r,o=>this.add(o))}},Qr=class extends Kt{constructor(t){super(t)}static create(t){return new Qr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let r=this.getPayload();return t.length==r.length?r.map((o,i)=>o.setValue(t[i])).some(Boolean):(super.setValue(t.map(oy)),!0)}};function oy(e){return(Cr(e)?bt:gt).create(e)}function wn(e){let t=Ze(e);return t?t.constructor:_.arr(e)?Qr:Cr(e)?bt:gt}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},yn.apply(this,arguments)}var vf=(e,t)=>{let r=!_.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,mt.forwardRef)((o,i)=>{let l=(0,mt.useRef)(null),c=r&&(0,mt.useCallback)(k=>{l.current=iy(i,k)},[i]),[f,h]=ny(o,t),m=mn(),v=()=>{let k=l.current;if(r&&!k)return;(k?t.applyAnimatedValues(k,f.getValue(!0)):!1)===!1&&m()},S=new na(v,h),y=(0,mt.useRef)();Mr(()=>(y.current=S,Y(h,k=>ht(k,S)),()=>{y.current&&(Y(y.current.deps,k=>Dt(k,y.current)),z.cancel(y.current.update))})),(0,mt.useEffect)(v,[]),gn(()=>()=>{let k=y.current;Y(k.deps,M=>Dt(M,k))});let b=t.getComponentProps(f.getValue());return wf.createElement(e,yn({},b,{ref:c}))})},na=class{constructor(t,r){this.update=t,this.deps=r}eventObserved(t){t.type=="change"&&z.write(this.update)}};function ny(e,t){let r=new Set;return vn.dependencies=r,e.style&&(e=yn({},e,{style:t.createAnimatedStyle(e.style)})),e=new Kt(e),vn.dependencies=null,[e,r]}function iy(e,t){return e&&(_.fun(e)?e(t):e.current=t),t}var yf=Symbol.for("AnimatedComponent"),kf=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new Kt(i),getComponentProps:o=i=>i}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:o},l=c=>{let f=xf(c)||"Anonymous";return _.str(c)?c=l[c]||(l[c]=vf(c,i)):c=c[yf]||(c[yf]=vf(c,i)),c.displayName=`Animated(${f})`,c};return He(e,(c,f)=>{_.arr(e)&&(f=xf(c)),l[f]=l(c)}),{animated:l}},xf=e=>_.str(e)?e:e&&_.str(e.displayName)?e.displayName:_.fun(e)&&e.name||null;function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ae.apply(this,arguments)}function Yt(e,...t){return _.fun(e)?e(...t):e}var eo=(e,t)=>e===!0||!!(t&&e&&(_.fun(e)?e(t):De(e).includes(t))),Df=(e,t)=>_.obj(e)?t&&e[t]:e,jf=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,ay=e=>e,va=(e,t=ay)=>{let r=ly;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));let o={};for(let i of r){let l=t(e[i],i);_.und(l)||(o[i]=l)}return o},ly=["config","onProps","onStart","onChange","onPause","onResume","onRest"],sy={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function cy(e){let t={},r=0;if(He(e,(o,i)=>{sy[i]||(t[i]=o,r++)}),r)return t}function Ff(e){let t=cy(e);if(t){let r={to:t};return He(e,(o,i)=>i in t||(r[i]=o)),r}return Ae({},e)}function to(e){return e=Oe(e),_.arr(e)?e.map(to):Cr(e)?qe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function uy(e){for(let t in e)return!0;return!1}function la(e){return _.fun(e)||_.arr(e)&&_.obj(e[0])}function fy(e,t){var r;(r=e.ref)==null||r.delete(e),t?.delete(e)}function dy(e,t){if(t&&e.ref!==t){var r;(r=e.ref)==null||r.delete(e),t.add(e),e.ref=t}}var py={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Cn=1.70158,kn=Cn*1.525,Sf=Cn+1,Cf=2*Math.PI/3,Mf=2*Math.PI/4.5,Sn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,hy={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Sf*e*e*e-Cn*e*e,easeOutBack:e=>1+Sf*Math.pow(e-1,3)+Cn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((kn+1)*2*e-kn)/2:(Math.pow(2*e-2,2)*((kn+1)*(e*2-2)+kn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Cf),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Cf)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Mf))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Mf)/2+1,easeInBounce:e=>1-Sn(1-e),easeOutBounce:Sn,easeInOutBounce:e=>e<.5?(1-Sn(1-2*e))/2:(1+Sn(2*e-1))/2},sa=Ae({},py.default,{mass:1,damping:1,easing:hy.linear,clamp:!1}),ca=class{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,sa)}};function my(e,t,r){r&&(r=Ae({},r),Af(r,t),t=Ae({},r,t)),Af(e,t),Object.assign(e,t);for(let c in sa)e[c]==null&&(e[c]=sa[c]);let{mass:o,frequency:i,damping:l}=e;return _.und(i)||(i<.01&&(i=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/i,2)*o,e.friction=4*Math.PI*l*o/i),e}function Af(e,t){if(!_.und(t.decay))e.duration=void 0;else{let r=!_.und(t.tension)||!_.und(t.friction);(r||!_.und(t.frequency)||!_.und(t.damping)||!_.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var Tf=[],ua=class{constructor(){this.changed=!1,this.values=Tf,this.toValues=null,this.fromValues=Tf,this.to=void 0,this.from=void 0,this.config=new ca,this.immediate=!1}};function Bf(e,{key:t,props:r,defaultProps:o,state:i,actions:l}){return new Promise((c,f)=>{var h;let m,v,S=eo((h=r.cancel)!=null?h:o?.cancel,t);if(S)k();else{_.und(r.pause)||(i.paused=eo(r.pause,t));let M=o?.pause;M!==!0&&(M=i.paused||eo(M,t)),m=Yt(r.delay||0,t),M?(i.resumeQueue.add(b),l.pause()):(l.resume(),b())}function y(){i.resumeQueue.add(b),i.timeouts.delete(v),v.cancel(),m=v.time-z.now()}function b(){m>0&&!qe.skipAnimation?(i.delayed=!0,v=z.setTimeout(k,m),i.pauseQueue.add(y),i.timeouts.add(v)):k()}function k(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(y),i.timeouts.delete(v),e<=(i.cancelId||0)&&(S=!0);try{l.start(Ae({},r,{callId:e,cancel:S}),c)}catch(M){f(M)}}})}var ya=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?Ar(e.get()):t.every(r=>r.noop)?If(e.get()):et(e.get(),t.every(r=>r.finished)),If=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),et=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Ar=e=>({value:e,cancelled:!0,finished:!1});function Gf(e,t,r,o){let{callId:i,parentId:l,onRest:c}=t,{asyncTo:f,promise:h}=r;return!l&&e===f&&!t.reset?h:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;let m=va(t,(E,D)=>D==="onRest"?void 0:E),v,S,y=new Promise((E,D)=>(v=E,S=D)),b=E=>{let D=i<=(r.cancelId||0)&&Ar(o)||i!==r.asyncId&&et(o,!1);if(D)throw E.result=D,S(E),E},k=(E,D)=>{let B=new Mn,H=new An;return(async()=>{if(qe.skipAnimation)throw ro(r),H.result=et(o,!1),S(H),H;b(B);let L=_.obj(E)?Ae({},E):Ae({},D,{to:E});L.parentId=i,He(m,($,ie)=>{_.und(L[ie])&&(L[ie]=$)});let W=await o.start(L);return b(B),r.paused&&await new Promise($=>{r.resumeQueue.add($)}),W})()},M;if(qe.skipAnimation)return ro(r),et(o,!1);try{let E;_.arr(e)?E=(async D=>{for(let B of D)await k(B)})(e):E=Promise.resolve(e(k,o.stop.bind(o))),await Promise.all([E.then(v),y]),M=et(o.get(),!0,!1)}catch(E){if(E instanceof Mn)M=E.result;else if(E instanceof An)M=E.result;else throw E}finally{i==r.asyncId&&(r.asyncId=l,r.asyncTo=l?f:void 0,r.promise=l?h:void 0)}return _.fun(c)&&z.batchedUpdates(()=>{c(M,o,o.item)}),M})()}function ro(e,t){wr(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Mn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}},An=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},fa=e=>e instanceof oo,gy=1,oo=class extends xr{constructor(...t){super(...t),this.id=gy++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){let t=Ze(this);return t&&t.getValue()}to(...t){return qe.to(this,t)}interpolate(...t){return mf(),qe.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,r=!1){Jt(this,{type:"change",parent:this,value:t,idle:r})}_onPriorityChange(t){this.idle||Sr.sort(this),Jt(this,{type:"priority",parent:this,priority:t})}},Zt=Symbol.for("SpringPhase"),Nf=1,da=2,pa=4,ia=e=>(e[Zt]&Nf)>0,jt=e=>(e[Zt]&da)>0,Kr=e=>(e[Zt]&pa)>0,Pf=(e,t)=>t?e[Zt]|=da|Nf:e[Zt]&=~da,Lf=(e,t)=>t?e[Zt]|=pa:e[Zt]&=~pa,ha=class extends oo{constructor(t,r){if(super(),this.key=void 0,this.animation=new ua,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!_.und(t)||!_.und(r)){let o=_.obj(t)?Ae({},t):Ae({},r,{from:t});_.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(jt(this)||this._state.asyncTo)||Kr(this)}get goal(){return Oe(this.animation.to)}get velocity(){let t=Ze(this);return t instanceof gt?t.lastVelocity||0:t.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return ia(this)}get isAnimating(){return jt(this)}get isPaused(){return Kr(this)}get isDelayed(){return this._state.delayed}advance(t){let r=!0,o=!1,i=this.animation,{config:l,toValues:c}=i,f=Jr(i.to);!f&&je(i.to)&&(c=De(Oe(i.to))),i.values.forEach((v,S)=>{if(v.done)return;let y=v.constructor==bt?1:f?f[S].lastPosition:c[S],b=i.immediate,k=y;if(!b){if(k=v.lastPosition,l.tension<=0){v.done=!0;return}let M=v.elapsedTime+=t,E=i.fromValues[S],D=v.v0!=null?v.v0:v.v0=_.arr(l.velocity)?l.velocity[S]:l.velocity,B,H=l.precision||(E==y?.005:Math.min(1,Math.abs(y-E)*.001));if(_.und(l.duration))if(l.decay){let L=l.decay===!0?.998:l.decay,W=Math.exp(-(1-L)*M);k=E+D/(1-L)*(1-W),b=Math.abs(v.lastPosition-k)<=H,B=D*W}else{B=v.lastVelocity==null?D:v.lastVelocity;let L=l.restVelocity||H/10,W=l.clamp?0:l.bounce,$=!_.und(W),ie=E==y?v.v0>0:E<y,ae,me=!1,fe=1,be=Math.ceil(t/fe);for(let we=0;we<be&&(ae=Math.abs(B)>L,!(!ae&&(b=Math.abs(y-k)<=H,b)));++we){$&&(me=k==y||k>y==ie,me&&(B=-B*W,k=y));let Re=-l.tension*1e-6*(k-y),kt=-l.friction*.001*B,lt=(Re+kt)/l.mass;B=B+lt*fe,k=k+B*fe}}else{let L=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,v.durationProgress>0&&(v.elapsedTime=l.duration*v.durationProgress,M=v.elapsedTime+=t)),L=(l.progress||0)+M/this._memoizedDuration,L=L>1?1:L<0?0:L,v.durationProgress=L),k=E+l.easing(L)*(y-E),B=(k-v.lastPosition)/t,b=L==1}v.lastVelocity=B,Number.isNaN(k)&&(console.warn("Got NaN while animating:",this),b=!0)}f&&!f[S].done&&(b=!1),b?v.done=!0:r=!1,v.setValue(k,l.round)&&(o=!0)});let h=Ze(this),m=h.getValue();if(r){let v=Oe(i.to);(m!==v||o)&&!l.decay?(h.setValue(v),this._onChange(v)):o&&l.decay&&this._onChange(m),this._stop()}else o&&this._onChange(m)}set(t){return z.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(jt(this)){let{to:t,config:r}=this.animation;z.batchedUpdates(()=>{this._onStart(),r.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,r){let o;return _.und(t)?(o=this.queue||[],this.queue=[]):o=[_.obj(t)?t:Ae({},r,{to:t})],Promise.all(o.map(i=>this._update(i))).then(i=>ya(this,i))}stop(t){let{to:r}=this.animation;return this._focus(this.get()),ro(this._state,t&&this._lastCallId),z.batchedUpdates(()=>this._stop(r,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){let r=this.key||"",{to:o,from:i}=t;o=_.obj(o)?o[r]:o,(o==null||la(o))&&(o=void 0),i=_.obj(i)?i[r]:i,i==null&&(i=void 0);let l={to:o,from:i};return ia(this)||(t.reverse&&([o,i]=[i,o]),i=Oe(i),_.und(i)?Ze(this)||this._set(o):this._set(i)),l}_update(t,r){let o=Ae({},t),{key:i,defaultProps:l}=this;o.default&&Object.assign(l,va(o,(h,m)=>/^on/.test(m)?Df(h,i):h)),_f(this,o,"onProps"),Zr(this,"onProps",o,this);let c=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let f=this._state;return Bf(++this._lastCallId,{key:i,props:o,defaultProps:l,state:f,actions:{pause:()=>{Kr(this)||(Lf(this,!0),kr(f.pauseQueue),Zr(this,"onPause",et(this,Yr(this,this.animation.to)),this))},resume:()=>{Kr(this)&&(Lf(this,!1),jt(this)&&this._resume(),kr(f.resumeQueue),Zr(this,"onResume",et(this,Yr(this,this.animation.to)),this))},start:this._merge.bind(this,c)}}).then(h=>{if(o.loop&&h.finished&&!(r&&h.noop)){let m=Hf(o);if(m)return this._update(m,!0)}return h})}_merge(t,r,o){if(r.cancel)return this.stop(!0),o(Ar(this));let i=!_.und(t.to),l=!_.und(t.from);if(i||l)if(r.callId>this._lastToId)this._lastToId=r.callId;else return o(Ar(this));let{key:c,defaultProps:f,animation:h}=this,{to:m,from:v}=h,{to:S=m,from:y=v}=t;l&&!i&&(!r.default||_.und(S))&&(S=y),r.reverse&&([S,y]=[y,S]);let b=!nt(y,v);b&&(h.from=y),y=Oe(y);let k=!nt(S,m);k&&this._focus(S);let M=la(r.to),{config:E}=h,{decay:D,velocity:B}=E;(i||l)&&(E.velocity=0),r.config&&!M&&my(E,Yt(r.config,c),r.config!==f.config?Yt(f.config,c):void 0);let H=Ze(this);if(!H||_.und(S))return o(et(this,!0));let L=_.und(r.reset)?l&&!r.default:!_.und(y)&&eo(r.reset,c),W=L?y:this.get(),$=to(S),ie=_.num($)||_.arr($)||Cr($),ae=!M&&(!ie||eo(f.immediate||r.immediate,c));if(k){let we=wn(S);if(we!==H.constructor)if(ae)H=this._set($);else throw Error(`Cannot animate between ${H.constructor.name} and ${we.name}, as the "to" prop suggests`)}let me=H.constructor,fe=je(S),be=!1;if(!fe){let we=L||!ia(this)&&b;(k||we)&&(be=nt(to(W),$),fe=!be),(!nt(h.immediate,ae)&&!ae||!nt(E.decay,D)||!nt(E.velocity,B))&&(fe=!0)}if(be&&jt(this)&&(h.changed&&!L?fe=!0:fe||this._stop(m)),!M&&((fe||je(m))&&(h.values=H.getPayload(),h.toValues=je(S)?null:me==bt?[1]:De($)),h.immediate!=ae&&(h.immediate=ae,!ae&&!L&&this._set(m)),fe)){let{onRest:we}=h;Y(vy,kt=>_f(this,r,kt));let Re=et(this,Yr(this,m));kr(this._pendingCalls,Re),this._pendingCalls.add(o),h.changed&&z.batchedUpdates(()=>{h.changed=!L,we?.(Re,this),L?Yt(f.onRest,Re):h.onStart==null||h.onStart(Re,this)})}L&&this._set(W),M?o(Gf(r.to,r,this._state,this)):fe?this._start():jt(this)&&!k?this._pendingCalls.add(o):o(If(W))}_focus(t){let r=this.animation;t!==r.to&&(ta(this)&&this._detach(),r.to=t,ta(this)&&this._attach())}_attach(){let t=0,{to:r}=this.animation;je(r)&&(ht(r,this),fa(r)&&(t=r.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;je(t)&&Dt(t,this)}_set(t,r=!0){let o=Oe(t);if(!_.und(o)){let i=Ze(this);if(!i||!nt(o,i.getValue())){let l=wn(o);!i||i.constructor!=l?xn(this,l.create(o)):i.setValue(o),i&&z.batchedUpdates(()=>{this._onChange(o,r)})}}return Ze(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,Zr(this,"onStart",et(this,Yr(this,t.to)),this))}_onChange(t,r){r||(this._onStart(),Yt(this.animation.onChange,t,this)),Yt(this.defaultProps.onChange,t,this),super._onChange(t,r)}_start(){let t=this.animation;Ze(this).reset(Oe(t.to)),t.immediate||(t.fromValues=t.values.map(r=>r.lastPosition)),jt(this)||(Pf(this,!0),Kr(this)||this._resume())}_resume(){qe.skipAnimation?this.finish():Sr.start(this)}_stop(t,r){if(jt(this)){Pf(this,!1);let o=this.animation;Y(o.values,l=>{l.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),Jt(this,{type:"idle",parent:this});let i=r?Ar(this.get()):et(this.get(),Yr(this,t??o.to));kr(this._pendingCalls,i),o.changed&&(o.changed=!1,Zr(this,"onRest",i,this))}}};function Yr(e,t){let r=to(t),o=to(e.get());return nt(o,r)}function Hf(e,t=e.loop,r=e.to){let o=Yt(t);if(o){let i=o!==!0&&Ff(o),l=(i||e).reverse,c=!i||i.reset;return no(Ae({},e,{loop:t,default:!1,pause:void 0,to:!l||la(r)?r:void 0,from:c?e.from:void 0,reset:c},i))}}function no(e){let{to:t,from:r}=e=Ff(e),o=new Set;return _.obj(t)&&Of(t,o),_.obj(r)&&Of(r,o),e.keys=o.size?Array.from(o):null,e}function by(e){let t=no(e);return _.und(t.default)&&(t.default=va(t)),t}function Of(e,t){He(e,(r,o)=>r!=null&&t.add(o))}var vy=["onStart","onRest","onChange","onPause","onResume"];function _f(e,t,r){e.animation[r]=t[r]!==jf(t,r)?Df(t[r],e.key):void 0}function Zr(e,t,...r){var o,i,l,c;(o=(i=e.animation)[t])==null||o.call(i,...r),(l=(c=e.defaultProps)[t])==null||l.call(c,...r)}var yy=["onStart","onChange","onRest"],xy=1,ma=class{constructor(t,r){this.id=xy++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),r&&(this._flush=r),t&&this.start(Ae({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){let t={};return this.each((r,o)=>t[o]=r.get()),t}set(t){for(let r in t){let o=t[r];_.und(o)||this.springs[r].set(o)}}update(t){return t&&this.queue.push(no(t)),this}start(t){let{queue:r}=this;return t?r=De(t).map(no):this.queue=[],this._flush?this._flush(this,r):(Wf(this,r),ga(this,r))}stop(t,r){if(t!==!!t&&(r=t),r){let o=this.springs;Y(De(r),i=>o[i].stop(!!t))}else ro(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(_.und(t))this.start({pause:!0});else{let r=this.springs;Y(De(t),o=>r[o].pause())}return this}resume(t){if(_.und(t))this.start({pause:!1});else{let r=this.springs;Y(De(t),o=>r[o].resume())}return this}each(t){He(this.springs,t)}_onFrame(){let{onStart:t,onChange:r,onRest:o}=this._events,i=this._active.size>0,l=this._changed.size>0;(i&&!this._started||l&&!this._started)&&(this._started=!0,wr(t,([h,m])=>{m.value=this.get(),h(m,this,this._item)}));let c=!i&&this._started,f=l||c&&o.size?this.get():null;l&&r.size&&wr(r,([h,m])=>{m.value=f,h(m,this,this._item)}),c&&(this._started=!1,wr(o,([h,m])=>{m.value=f,h(m,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;z.onFrame(this._onFrame)}};function ga(e,t){return Promise.all(t.map(r=>qf(e,r))).then(r=>ya(e,r))}async function qf(e,t,r){let{keys:o,to:i,from:l,loop:c,onRest:f,onResolve:h}=t,m=_.obj(t.default)&&t.default;c&&(t.loop=!1),i===!1&&(t.to=null),l===!1&&(t.from=null);let v=_.arr(i)||_.fun(i)?i:void 0;v?(t.to=void 0,t.onRest=void 0,m&&(m.onRest=void 0)):Y(yy,M=>{let E=t[M];if(_.fun(E)){let D=e._events[M];t[M]=({finished:B,cancelled:H})=>{let L=D.get(E);L?(B||(L.finished=!1),H&&(L.cancelled=!0)):D.set(E,{value:null,finished:B||!1,cancelled:H||!1})},m&&(m[M]=t[M])}});let S=e._state;t.pause===!S.paused?(S.paused=t.pause,kr(t.pause?S.pauseQueue:S.resumeQueue)):S.paused&&(t.pause=!0);let y=(o||Object.keys(e.springs)).map(M=>e.springs[M].start(t)),b=t.cancel===!0||jf(t,"cancel")===!0;(v||b&&S.asyncId)&&y.push(Bf(++e._lastAsyncId,{props:t,state:S,actions:{pause:fn,resume:fn,start(M,E){b?(ro(S,e._lastAsyncId),E(Ar(e))):(M.onRest=f,E(Gf(v,M,S,e)))}}})),S.paused&&await new Promise(M=>{S.resumeQueue.add(M)});let k=ya(e,await Promise.all(y));if(c&&k.finished&&!(r&&k.noop)){let M=Hf(t,c,i);if(M)return Wf(e,[M]),qf(e,M,!0)}return h&&z.batchedUpdates(()=>h(k,e,e.item)),k}function Ef(e,t){let r=Ae({},e.springs);return t&&Y(De(t),o=>{_.und(o.keys)&&(o=no(o)),_.obj(o.to)||(o=Ae({},o,{to:void 0})),Uf(r,o,i=>Vf(i))}),zf(e,r),r}function zf(e,t){He(t,(r,o)=>{e.springs[o]||(e.springs[o]=r,ht(r,e))})}function Vf(e,t){let r=new ha;return r.key=e,t&&ht(r,t),r}function Uf(e,t,r){t.keys&&Y(t.keys,o=>{(e[o]||(e[o]=r(o)))._prepareNode(t)})}function Wf(e,t){Y(t,r=>{Uf(e.springs,r,o=>Vf(o,e))})}function wy(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var ky=["children"],Pn=e=>{let{children:t}=e,r=wy(e,ky),o=(0,Ve.useContext)(Tn),i=r.pause||!!o.pause,l=r.immediate||!!o.immediate;r=bf(()=>({pause:i,immediate:l}),[i,l]);let{Provider:c}=Tn;return io.createElement(c,{value:r},t)},Tn=Sy(Pn,{});Pn.Provider=Tn.Provider;Pn.Consumer=Tn.Consumer;function Sy(e,t){return Object.assign(e,io.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Cy=()=>{let e=[],t=function(i){gf();let l=[];return Y(e,(c,f)=>{if(_.und(i))l.push(c.start());else{let h=r(i,c,f);h&&l.push(c.start(h))}}),l};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){let i=e.indexOf(o);~i&&e.splice(i,1)},t.pause=function(){return Y(e,o=>o.pause(...arguments)),this},t.resume=function(){return Y(e,o=>o.resume(...arguments)),this},t.set=function(o){Y(e,i=>i.set(o))},t.start=function(o){let i=[];return Y(e,(l,c)=>{if(_.und(o))i.push(l.start());else{let f=this._getProps(o,l,c);f&&i.push(l.start(f))}}),i},t.stop=function(){return Y(e,o=>o.stop(...arguments)),this},t.update=function(o){return Y(e,(i,l)=>i.update(this._getProps(o,i,l))),this};let r=function(i,l,c){return _.fun(i)?i(c,l):i};return t._getProps=r,t};function My(e,t,r){let o=_.fun(t)&&t;o&&!r&&(r=[]);let i=(0,Ve.useMemo)(()=>o||arguments.length==3?Cy():void 0,[]),l=(0,Ve.useRef)(0),c=mn(),f=(0,Ve.useMemo)(()=>({ctrls:[],queue:[],flush(D,B){let H=Ef(D,B);return l.current>0&&!f.queue.length&&!Object.keys(H).some(W=>!D.springs[W])?ga(D,B):new Promise(W=>{zf(D,H),f.queue.push(()=>{W(ga(D,B))}),c()})}}),[]),h=(0,Ve.useRef)([...f.ctrls]),m=[],v=oa(e)||0;(0,Ve.useMemo)(()=>{Y(h.current.slice(e,v),D=>{fy(D,i),D.stop(!0)}),h.current.length=e,S(v,e)},[e]),(0,Ve.useMemo)(()=>{S(0,Math.min(v,e))},r);function S(D,B){for(let H=D;H<B;H++){let L=h.current[H]||(h.current[H]=new ma(null,f.flush)),W=o?o(H,L):t[H];W&&(m[H]=by(W))}}let y=h.current.map((D,B)=>Ef(D,m[B])),b=(0,Ve.useContext)(Pn),k=oa(b),M=b!==k&&uy(b);Mr(()=>{l.current++,f.ctrls=h.current;let{queue:D}=f;D.length&&(f.queue=[],Y(D,B=>B())),Y(h.current,(B,H)=>{i?.add(B),M&&B.start({default:b});let L=m[H];L&&(dy(B,L.ref),B.ref?B.queue.push(L):B.start(L))})}),gn(()=>()=>{Y(f.ctrls,D=>D.stop(!0))});let E=y.map(D=>Ae({},D));return i?[E,i]:E}function Xf(e,t){let r=_.fun(e),[[o],i]=My(1,r?e:[e],r?t||[]:t);return r||arguments.length==2?[o,i]:o}var Rf;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Rf||(Rf={}));var ba=class extends oo{constructor(t,r){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=$t(...r);let o=this._get(),i=wn(o);xn(this,i.create(o))}advance(t){let r=this._get(),o=this.get();nt(r,o)||(Ze(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&$f(this._active)&&aa(this)}_get(){let t=_.arr(this.source)?this.source.map(Oe):De(Oe(this.source));return this.calc(...t)}_start(){this.idle&&!$f(this._active)&&(this.idle=!1,Y(Jr(this),t=>{t.done=!1}),qe.skipAnimation?(z.batchedUpdates(()=>this.advance()),aa(this)):Sr.start(this))}_attach(){let t=1;Y(De(this.source),r=>{je(r)&&ht(r,this),fa(r)&&(r.idle||this._active.add(r),t=Math.max(t,r.priority+1))}),this.priority=t,this._start()}_detach(){Y(De(this.source),t=>{je(t)&&Dt(t,this)}),this._active.clear(),aa(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=De(this.source).reduce((r,o)=>Math.max(r,(fa(o)?o.priority:0)+1),0))}};function Ay(e){return e.idle!==!1}function $f(e){return!e.size||Array.from(e).every(Ay)}function aa(e){e.idle||(e.idle=!0,Y(Jr(e),t=>{t.done=!0}),Jt(e,{type:"idle",parent:e}))}qe.assign({createStringInterpolator:hn,to:(e,t)=>new ba(e,t)});var g5=Sr.advance;var Jf=R(vb());function Sa(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ty=["style","children","scrollTop","scrollLeft"],Kf=/^--/;function Py(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Kf.test(e)&&!(ao.hasOwnProperty(e)&&ao[e])?t+"px":(""+t).trim()}var Qf={};function Ly(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:i,children:l,scrollTop:c,scrollLeft:f}=o,h=Sa(o,Ty),m=Object.values(h),v=Object.keys(h).map(S=>r||e.hasAttribute(S)?S:Qf[S]||(Qf[S]=S.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));l!==void 0&&(e.textContent=l);for(let S in i)if(i.hasOwnProperty(S)){let y=Py(S,i[S]);Kf.test(S)?e.style.setProperty(S,y):e.style[S]=y}v.forEach((S,y)=>{e.setAttribute(S,m[y])}),c!==void 0&&(e.scrollTop=c),f!==void 0&&(e.scrollLeft=f)}var ao={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oy=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),_y=["Webkit","Ms","Moz","O"];ao=Object.keys(ao).reduce((e,t)=>(_y.forEach(r=>e[Oy(r,t)]=e[t]),e),ao);var Ey=["x","y","z"],Ry=/^(matrix|translate|scale|rotate|skew)/,$y=/^(translate)/,Dy=/^(rotate|skew)/,xa=(e,t)=>_.num(e)&&e!==0?e+t:e,Ln=(e,t)=>_.arr(e)?e.every(r=>Ln(r,t)):_.num(e)?e===t:parseFloat(e)===t,wa=class extends Kt{constructor(t){let{x:r,y:o,z:i}=t,l=Sa(t,Ey),c=[],f=[];(r||o||i)&&(c.push([r||0,o||0,i||0]),f.push(h=>[`translate3d(${h.map(m=>xa(m,"px")).join(",")})`,Ln(h,0)])),He(l,(h,m)=>{if(m==="transform")c.push([h||""]),f.push(v=>[v,v===""]);else if(Ry.test(m)){if(delete l[m],_.und(h))return;let v=$y.test(m)?"px":Dy.test(m)?"deg":"";c.push(De(h)),f.push(m==="rotate3d"?([S,y,b,k])=>[`rotate3d(${S},${y},${b},${xa(k,v)})`,Ln(k,0)]:S=>[`${m}(${S.map(y=>xa(y,v)).join(",")})`,Ln(S,m.startsWith("scale")?1:0)])}}),c.length&&(l.transform=new ka(c,f)),super(l)}},ka=class extends xr{constructor(t,r){super(),this._value=null,this.inputs=t,this.transforms=r}get(){return this._value||(this._value=this._get())}_get(){let t="",r=!0;return Y(this.inputs,(o,i)=>{let l=Oe(o[0]),[c,f]=this.transforms[i](_.arr(l)?l:o.map(Oe));t+=" "+c,r=r&&f}),r?"none":t}observerAdded(t){t==1&&Y(this.inputs,r=>Y(r,o=>je(o)&&ht(o,this)))}observerRemoved(t){t==0&&Y(this.inputs,r=>Y(r,o=>je(o)&&Dt(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Jt(this,t)}},jy=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Fy=["scrollTop","scrollLeft"];qe.assign({batchedUpdates:Jf.unstable_batchedUpdates,createStringInterpolator:hn,colors:ff});var By=kf(jy,{applyAnimatedValues:Ly,createAnimatedStyle:e=>new wa(e),getComponentProps:e=>Sa(e,Fy)}),lo=By.animated;var _n=R(ee());var nd=R(od());function id(){let{ref:e,width:t,height:r}=(0,nd.useComponentSize)();return(0,_n.useMemo)(()=>[e,{width:t,height:r}],[e,t,r])}function ad(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function so(e){let{animationsEnabled:t}=$e(),[r,o]=Vt(!0);return(0,_n.useEffect)(()=>{setTimeout(()=>o(!1),0)},[o]),Xf({...typeof e=="object"?e:{},immediate:r||!t})}function Jy(e){var t=0,r=e.children,o=r&&r.length;if(!o)t=1;else for(;--o>=0;)t+=r[o].value;e.value=t}function ld(){return this.eachAfter(Jy)}function sd(e,t){let r=-1;for(let o of this)e.call(t,o,++r,this);return this}function cd(e,t){for(var r=this,o=[r],i,l,c=-1;r=o.pop();)if(e.call(t,r,++c,this),i=r.children)for(l=i.length-1;l>=0;--l)o.push(i[l]);return this}function ud(e,t){for(var r=this,o=[r],i=[],l,c,f,h=-1;r=o.pop();)if(i.push(r),l=r.children)for(c=0,f=l.length;c<f;++c)o.push(l[c]);for(;r=i.pop();)e.call(t,r,++h,this);return this}function fd(e,t){let r=-1;for(let o of this)if(e.call(t,o,++r,this))return o}function dd(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,o=t.children,i=o&&o.length;--i>=0;)r+=o[i].value;t.value=r})}function pd(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function hd(e){for(var t=this,r=Ky(t,e),o=[t];t!==r;)t=t.parent,o.push(t);for(var i=o.length;e!==r;)o.splice(i,0,e),e=e.parent;return o}function Ky(e,t){if(e===t)return e;var r=e.ancestors(),o=t.ancestors(),i=null;for(e=r.pop(),t=o.pop();e===t;)i=e,e=r.pop(),t=o.pop();return i}function md(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function gd(){return Array.from(this)}function bd(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function vd(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*yd(){var e=this,t,r=[e],o,i,l;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,o=e.children)for(i=0,l=o.length;i<l;++i)r.push(o[i]);while(r.length)}function Pr(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=e1)):t===void 0&&(t=Zy);for(var r=new co(e),o,i=[r],l,c,f,h;o=i.pop();)if((c=t(o.data))&&(h=(c=Array.from(c)).length))for(o.children=c,f=h-1;f>=0;--f)i.push(l=c[f]=new co(c[f])),l.parent=o,l.depth=o.depth+1;return r.eachBefore(r1)}function Yy(){return Pr(this).eachBefore(t1)}function Zy(e){return e.children}function e1(e){return Array.isArray(e)?e[1]:null}function t1(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function r1(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function co(e){this.data=e,this.depth=this.height=0,this.parent=null}co.prototype=Pr.prototype={constructor:co,count:ld,each:sd,eachAfter:ud,eachBefore:cd,find:fd,sum:dd,sort:pd,path:hd,ancestors:md,descendants:gd,leaves:bd,links:vd,copy:Yy,[Symbol.iterator]:yd};function xd(e){return e==null?null:Ta(e)}function Ta(e){if(typeof e!="function")throw new Error;return e}function yt(){return 0}function Ft(e){return function(){return e}}function wd(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function kd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Sd(e,t){let r=e.length,o,i;for(;r;)i=t()*r--|0,o=e[r],e[r]=e[i],e[i]=o;return e}function Cd(e,t){for(var r=0,o=(e=Sd(Array.from(e),t)).length,i=[],l,c;r<o;)l=e[r],c&&Md(c,l)?++r:(c=n1(i=o1(i,l)),r=0);return c}function o1(e,t){var r,o;if(Pa(t,e))return[t];for(r=0;r<e.length;++r)if(En(t,e[r])&&Pa(uo(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(o=r+1;o<e.length;++o)if(En(uo(e[r],e[o]),t)&&En(uo(e[r],t),e[o])&&En(uo(e[o],t),e[r])&&Pa(Ad(e[r],e[o],t),e))return[e[r],e[o],t];throw new Error}function En(e,t){var r=e.r-t.r,o=t.x-e.x,i=t.y-e.y;return r<0||r*r<o*o+i*i}function Md(e,t){var r=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,o=t.x-e.x,i=t.y-e.y;return r>0&&r*r>o*o+i*i}function Pa(e,t){for(var r=0;r<t.length;++r)if(!Md(e,t[r]))return!1;return!0}function n1(e){switch(e.length){case 1:return i1(e[0]);case 2:return uo(e[0],e[1]);case 3:return Ad(e[0],e[1],e[2])}}function i1(e){return{x:e.x,y:e.y,r:e.r}}function uo(e,t){var r=e.x,o=e.y,i=e.r,l=t.x,c=t.y,f=t.r,h=l-r,m=c-o,v=f-i,S=Math.sqrt(h*h+m*m);return{x:(r+l+h/S*v)/2,y:(o+c+m/S*v)/2,r:(S+i+f)/2}}function Ad(e,t,r){var o=e.x,i=e.y,l=e.r,c=t.x,f=t.y,h=t.r,m=r.x,v=r.y,S=r.r,y=o-c,b=o-m,k=i-f,M=i-v,E=h-l,D=S-l,B=o*o+i*i-l*l,H=B-c*c-f*f+h*h,L=B-m*m-v*v+S*S,W=b*k-y*M,$=(k*L-M*H)/(W*2)-o,ie=(M*E-k*D)/W,ae=(b*H-y*L)/(W*2)-i,me=(y*D-b*E)/W,fe=ie*ie+me*me-1,be=2*(l+$*ie+ae*me),we=$*$+ae*ae-l*l,Re=-(Math.abs(fe)>1e-6?(be+Math.sqrt(be*be-4*fe*we))/(2*fe):we/be);return{x:o+$+ie*Re,y:i+ae+me*Re,r:Re}}function Td(e,t,r){var o=e.x-t.x,i,l,c=e.y-t.y,f,h,m=o*o+c*c;m?(l=t.r+r.r,l*=l,h=e.r+r.r,h*=h,l>h?(i=(m+h-l)/(2*m),f=Math.sqrt(Math.max(0,h/m-i*i)),r.x=e.x-i*o-f*c,r.y=e.y-i*c+f*o):(i=(m+l-h)/(2*m),f=Math.sqrt(Math.max(0,l/m-i*i)),r.x=t.x+i*o-f*c,r.y=t.y+i*c+f*o)):(r.x=t.x+r.r,r.y=t.y)}function Pd(e,t){var r=e.r+t.r-1e-6,o=t.x-e.x,i=t.y-e.y;return r>0&&r*r>o*o+i*i}function Ld(e){var t=e._,r=e.next._,o=t.r+r.r,i=(t.x*r.r+r.x*t.r)/o,l=(t.y*r.r+r.y*t.r)/o;return i*i+l*l}function Rn(e){this._=e,this.next=null,this.previous=null}function Od(e,t){if(!(l=(e=kd(e)).length))return 0;var r,o,i,l,c,f,h,m,v,S,y;if(r=e[0],r.x=0,r.y=0,!(l>1))return r.r;if(o=e[1],r.x=-o.r,o.x=r.r,o.y=0,!(l>2))return r.r+o.r;Td(o,r,i=e[2]),r=new Rn(r),o=new Rn(o),i=new Rn(i),r.next=i.previous=o,o.next=r.previous=i,i.next=o.previous=r;e:for(h=3;h<l;++h){Td(r._,o._,i=e[h]),i=new Rn(i),m=o.next,v=r.previous,S=o._.r,y=r._.r;do if(S<=y){if(Pd(m._,i._)){o=m,r.next=o,o.previous=r,--h;continue e}S+=m._.r,m=m.next}else{if(Pd(v._,i._)){r=v,r.next=o,o.previous=r,--h;continue e}y+=v._.r,v=v.previous}while(m!==v.next);for(i.previous=r,i.next=o,r.next=o.previous=o=i,c=Ld(r);(i=i.next)!==o;)(f=Ld(i))<c&&(r=i,c=f);o=r.next}for(r=[o._],i=o;(i=i.next)!==o;)r.push(i._);for(i=Cd(r,t),h=0;h<l;++h)r=e[h],r.x-=i.x,r.y-=i.y;return i.r}function a1(e){return Math.sqrt(e.value)}function Oa(){var e=null,t=1,r=1,o=yt;function i(l){let c=wd();return l.x=t/2,l.y=r/2,e?l.eachBefore(_d(e)).eachAfter(La(o,.5,c)).eachBefore(Ed(1)):l.eachBefore(_d(a1)).eachAfter(La(yt,1,c)).eachAfter(La(o,l.r/Math.min(t,r),c)).eachBefore(Ed(Math.min(t,r)/(2*l.r))),l}return i.radius=function(l){return arguments.length?(e=xd(l),i):e},i.size=function(l){return arguments.length?(t=+l[0],r=+l[1],i):[t,r]},i.padding=function(l){return arguments.length?(o=typeof l=="function"?l:Ft(+l),i):o},i}function _d(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function La(e,t,r){return function(o){if(i=o.children){var i,l,c=i.length,f=e(o)*t||0,h;if(f)for(l=0;l<c;++l)i[l].r+=f;if(h=Od(i,r),f)for(l=0;l<c;++l)i[l].r-=f;o.r=h+f}}}function Ed(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function Rd(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function $d(e,t,r,o,i){for(var l=e.children,c,f=-1,h=l.length,m=e.value&&(o-t)/e.value;++f<h;)c=l[f],c.y0=r,c.y1=i,c.x0=t,c.x1=t+=c.value*m}function Dd(e,t,r,o,i){for(var l=e.children,c,f=-1,h=l.length,m=e.value&&(i-r)/e.value;++f<h;)c=l[f],c.x0=t,c.x1=o,c.y0=r,c.y1=r+=c.value*m}var l1=(1+Math.sqrt(5))/2;function s1(e,t,r,o,i,l){for(var c=[],f=t.children,h,m,v=0,S=0,y=f.length,b,k,M=t.value,E,D,B,H,L,W,$;v<y;){b=i-r,k=l-o;do E=f[S++].value;while(!E&&S<y);for(D=B=E,W=Math.max(k/b,b/k)/(M*e),$=E*E*W,L=Math.max(B/$,$/D);S<y;++S){if(E+=m=f[S].value,m<D&&(D=m),m>B&&(B=m),$=E*E*W,H=Math.max(B/$,$/D),H>L){E-=m;break}L=H}c.push(h={value:E,dice:b<k,children:f.slice(v,S)}),h.dice?$d(h,r,o,i,M?o+=k*E/M:l):Dd(h,r,o,M?r+=b*E/M:i,l),M-=E,v=S}return c}var jd=function e(t){function r(o,i,l,c,f){s1(t,o,i,l,c,f)}return r.ratio=function(o){return e((o=+o)>1?o:1)},r}(l1);function _a(){var e=jd,t=!1,r=1,o=1,i=[0],l=yt,c=yt,f=yt,h=yt,m=yt;function v(y){return y.x0=y.y0=0,y.x1=r,y.y1=o,y.eachBefore(S),i=[0],t&&y.eachBefore(Rd),y}function S(y){var b=i[y.depth],k=y.x0+b,M=y.y0+b,E=y.x1-b,D=y.y1-b;E<k&&(k=E=(k+E)/2),D<M&&(M=D=(M+D)/2),y.x0=k,y.y0=M,y.x1=E,y.y1=D,y.children&&(b=i[y.depth+1]=l(y)/2,k+=m(y)-b,M+=c(y)-b,E-=f(y)-b,D-=h(y)-b,E<k&&(k=E=(k+E)/2),D<M&&(M=D=(M+D)/2),e(y,k,M,E,D))}return v.round=function(y){return arguments.length?(t=!!y,v):t},v.size=function(y){return arguments.length?(r=+y[0],o=+y[1],v):[r,o]},v.tile=function(y){return arguments.length?(e=Ta(y),v):e},v.padding=function(y){return arguments.length?v.paddingInner(y).paddingOuter(y):v.paddingInner()},v.paddingInner=function(y){return arguments.length?(l=typeof y=="function"?y:Ft(+y),v):l},v.paddingOuter=function(y){return arguments.length?v.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):v.paddingTop()},v.paddingTop=function(y){return arguments.length?(c=typeof y=="function"?y:Ft(+y),v):c},v.paddingRight=function(y){return arguments.length?(f=typeof y=="function"?y:Ft(+y),v):f},v.paddingBottom=function(y){return arguments.length?(h=typeof y=="function"?y:Ft(+y),v):h},v.paddingLeft=function(y){return arguments.length?(m=typeof y=="function"?y:Ft(+y),v):m},v}var Bt=R(ee());var Ea=hi`
110
+ 0% { stroke-width: 1px; stroke-opacity: 0%; }
111
+ 50% { stroke-opacity: 50% }
112
+ 99% { stroke-width: 5px; stroke-opacity: 0%; }
113
+ 100% { stroke-width: 1px; stroke-opacity: 0%; }
114
+ `,Fd=hi`
115
+ 0% { opacity: 100% }
116
+ 50% { opacity: 50% }
117
+ 100% { opacity: 100% }
118
+ `;var fo=R(ee());var de=R(X()),c1=G(xe)`
119
+ padding: calc(0.5 * var(--unit)) var(--unit);
120
+ min-width: 0;
121
+ width: max-content;
122
+ position: absolute;
123
+ top: 0px;
124
+ left: 0px;
125
+ will-change: transform visibility;
126
+ display: flex;
127
+ border-radius: calc(2 * var(--unit));
128
+ align-items: center;
129
+
130
+ pointer-events: none;
131
+ visibility: ${({visible:e})=>e?"visible":"hidden"};
132
+ `,u1=G.div`
133
+ position: absolute;
134
+ inset: 0;
135
+ pointer-events: none;
136
+ overflow: hidden;
137
+ `;function Bd({hoveredBlob:e}){let t=(0,fo.useRef)(null),{metricType:r,authorshipType:o}=$e(),i=(0,fo.useRef)(document.documentElement),l=wi(i),c=ad("--unit"),f=c?Number(c.replace("px","")):0,[h]=dt(),m=(0,fo.useMemo)(()=>{var D,B,H;if(!e)return null;let M=(B=(D=h[o])==null?void 0:D.get(r))==null?void 0:B.colormap;return(H=M==null?void 0:M.get(e.path))!=null?H:"grey"},[e,h,r,o]),v=t.current?t.current.getBoundingClientRect().width:0,S=Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--side-panel-width-units"))||0,y=l.docX+v<window.innerWidth-S*f,b=e!==null,k={transform:"none"};return b&&(y?k.transform=`translate(calc(var(--unit) + ${l.docX}px), calc(var(--unit) + ${l.docY}px))`:k.transform=`translate(calc(var(--unit) * -1 + ${l.docX}px - 100%), calc(var(--unit) + ${l.docY}px))`),(0,de.jsx)(u1,{children:(0,de.jsxs)(c1,{ref:t,right:y,visible:b,style:k,children:[m?(0,de.jsx)(Lt,{dotColor:m}):null,(0,de.jsx)(N,{horizontal:!0}),(0,de.jsx)(Pt,{children:e==null?void 0:e.name}),(0,de.jsx)(N,{horizontal:!0}),(0,de.jsx)(f1,{metric:r,hoveredBlob:e,authorshipType:o})]})})}function f1(e){var t,r,o,i,l,c,f,h,m,v,S;switch(e.metric){case"MOST_COMMITS":let y=(t=e.hoveredBlob)==null?void 0:t.noCommits;return y?(0,de.jsxs)(de.Fragment,{children:[y," commit",y>1?(0,de.jsx)(de.Fragment,{children:"s"}):null]}):null;case"LAST_CHANGED":let b=(r=e.hoveredBlob)==null?void 0:r.lastChangeEpoch;return b?(0,de.jsx)(de.Fragment,{children:Hs(b)}):null;case"SINGLE_AUTHOR":let k=e.hoveredBlob?Object.entries((l=(i=(o=e.hoveredBlob)==null?void 0:o.unionedAuthors)==null?void 0:i[e.authorshipType])!=null?l:[]):[];switch(k.length){case 0:return null;case 1:return(0,de.jsxs)(de.Fragment,{children:[k[0][0]," is the only author"]});default:return(0,de.jsxs)(de.Fragment,{children:[k.length," authors"]})}case"TOP_CONTRIBUTOR":let M=(h=(f=(c=e.hoveredBlob)==null?void 0:c.dominantAuthor)==null?void 0:f.get(e.authorshipType))!=null?h:void 0;return M?(0,de.jsx)(de.Fragment,{children:M[0]}):null;case"TRUCK_FACTOR":let E=Object.entries((S=(v=(m=e.hoveredBlob)==null?void 0:m.unionedAuthors)==null?void 0:v.HISTORICAL)!=null?S:[]).length;switch(E){case 0:return null;case 1:return(0,de.jsx)(de.Fragment,{children:"1 author"});default:return(0,de.jsxs)(de.Fragment,{children:[E," authors"]})}return(0,de.jsx)(de.Fragment,{});default:return null}}var he=R(X()),p1=G.svg`
138
+ display: grid;
139
+ place-items: center;
140
+ padding: ${e=>qd(e.chartType)}px;
141
+ width: 100%;
142
+ height: 100%;
143
+ `;function Hd(e){let[t,r]=(0,Bt.useState)(null),{analyzerData:o}=Ee(),{chartType:i}=$e(),{path:l}=ot(),{clickedObject:c,setClickedObject:f}=rt(),{setPath:h}=ot(),m=(0,Bt.useMemo)(()=>k1(o.commit,C1(e.size,i),i,l),[i,o.commit,e.size,l]);(0,Bt.useEffect)(()=>r(null),[i,o.commit,e.size]);let v=S=>A1(S.data)?{onClick:()=>f(S.data),onMouseOver:()=>r(S.data),onMouseOut:()=>r(null)}:{onClick:()=>{f(S.data),h(S.data.path)},onMouseOver:()=>r(null),onMouseOut:()=>r(null)};return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(p1,{chartType:i,xmlns:"http://www.w3.org/2000/svg",viewBox:`0 ${-14} ${e.size.width} ${e.size.height}`,children:m==null?void 0:m.descendants().map((S,y)=>(0,he.jsx)(h1,{blink:(c==null?void 0:c.path)===S.data.path,...v(S),children:(0,he.jsx)(m1,{isRoot:y===0,d:S})},`${i}${S.data.path}`))}),typeof document!="undefined"?(0,he.jsx)(Bd,{hoveredBlob:t}):null]})}var h1=G.g`
144
+ animation-name: ${e=>e.blink?Fd:"none"};
145
+ animation-duration: 2s;
146
+ animation-iteration-count: infinite;
147
+ `,m1=(0,Bt.memo)(function({d:t,isRoot:r}){var h,m,v,S;let{chartType:o}=$e(),i=M1(t.data),{path:l}=ot(),c=t.data.name;if(r){let y=l.split("/"),b=c.split("/"),k=0,M=0;for(;k<y.length&&M<b.length;)y[k]!==b[M]?k++:(k++,M++);c=b.slice(M-1).join("/")}switch(o){case"BUBBLE_CHART":let y=t;return f(k=>y.r*Math.PI<k.length*7),(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(g1,{d:y,isSearchMatch:(h=t.data.isSearchResult)!=null?h:!1}),i?(0,he.jsx)(x1,{d:y,displayText:c,isSearchMatch:(m=t.data.isSearchResult)!=null?m:!1}):null]});case"TREE_MAP":let b=t;return f(k=>b.x1-b.x0<c.length*7,k=>b.y1-b.y0<14),(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(v1,{d:b,isSearchMatch:(v=t.data.isSearchResult)!=null?v:!1}),i?(0,he.jsx)(w1,{d:b,displayText:c,isSearchMatch:(S=t.data.isSearchResult)!=null?S:!1}):null]});default:throw Error("Unknown chart type")}function f(y,b){y(c)&&(c=c.replace(/\/.+\//gm,"/.../"),y(c)&&(i=!1)),b&&b(c)&&(c=c.replace(/\/.+\//gm,"/.../"),b(c)&&(i=!1))}});function g1({d:e,isSearchMatch:t}){var c,f;let[r]=dt(),{metricType:o,authorshipType:i}=$e(),l=so({cx:e.x,cy:e.y,r:Math.max(e.r-1,0),stroke:t?mr:"transparent",strokeWidth:"1px",fill:(f=(c=r[i].get(o))==null?void 0:c.colormap.get(e.data.path))!=null?f:"grey"});return(0,he.jsx)(b1,{pulse:t,...l,className:e.data.type})}var b1=G(lo.circle)`
148
+ animation-name: ${e=>e.pulse?Ea:"none"};
149
+ animation-duration: 1.5s;
150
+ animation-iteration-count: infinite;
151
+ animation-timing-function: ease-in-out;
152
+ `;function v1({d:e,isSearchMatch:t}){var c,f;let[r]=dt(),{metricType:o,authorshipType:i}=$e(),l=so({x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,stroke:t?mr:"transparent",strokeWidth:"1px",fill:e.data.type==="blob"?(f=(c=r[i].get(o))==null?void 0:c.colormap.get(e.data.path))!=null?f:"grey":"transparent"});return(0,he.jsx)(y1,{pulse:t,...l,className:e.data.type})}var y1=G(lo.rect)`
153
+ animation-name: ${e=>e.pulse?Ea:"none"};
154
+ animation-duration: 1.5s;
155
+ animation-iteration-count: infinite;
156
+ animation-timing-function: ease-in-out;
157
+ `;function x1({d:e,displayText:t,isSearchMatch:r}){let o=so({d:S1(e.x,e.y,e.r+0)});return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(lo.path,{...o,id:e.data.path,className:"name-path"}),(0,he.jsx)($a,{style:{stroke:"var(--global-bg-color)"},strokeWidth:"7",strokeLinecap:"round",children:(0,he.jsx)("textPath",{fill:r?mr:"#333",className:"object-name",startOffset:"50%",dominantBaseline:"central",textAnchor:"middle",xlinkHref:`#${e.data.path}`,children:t})}),(0,he.jsx)($a,{children:(0,he.jsx)("textPath",{fill:r?mr:"#333",className:"object-name",startOffset:"50%",dominantBaseline:"central",textAnchor:"middle",xlinkHref:`#${e.data.path}`,children:t})})]})}function w1({d:e,displayText:t,isSearchMatch:r}){let o=so({x:e.x0+4,y:e.y0+12,fill:r?mr:"#333"});return(0,he.jsx)($a,{...o,className:"object-name",children:t})}function k1(e,t,r,o){let l=e.tree,c=o.substring(e.tree.name.length+1).split("/");for(let m=0;m<c.length;m++)for(let v of l.children)if(v.type==="tree"){let S=v.name.split("/");if(S[0]===c[m]){l=v,m+=S.length-1;break}}let h=Pr(l).sum(m=>{let v=m.sizeInBytes;return v||1}).sort((m,v)=>v.value!==void 0&&m.value!==void 0?v.value-m.value:0);switch(r){case"TREE_MAP":let v=_a().size([t.width,t.height]).paddingInner(2).paddingOuter(4).paddingTop(17)(h);return Ra(v,b=>{let k=b;return b.data.type==="blob"&&k.x0>=1&&k.y0>=1||b.data.type==="tree"}),v;case"BUBBLE_CHART":let y=Oa().size([t.width,t.height]).padding(10)(h);return Ra(y,b=>{let k=b;return b.data.type==="blob"&&k.r>=1||b.data.type==="tree"}),y;default:throw Error("Invalid chart type")}}function Ra(e,t){var r,o,i,l;e.children=(r=e.children)==null?void 0:r.filter(c=>t(c));for(let c of(o=e.children)!=null?o:[])((l=(i=c.children)==null?void 0:i.length)!=null?l:0)>0&&Ra(c,t)}function S1(e,t,r){return`M${e},${t}
158
+ m0,${r}
159
+ a${r},${r} 0 1,1 0,${-r*2}
160
+ a${r},${r} 0 1,1 0,${r*2}`}function C1(e,t){let r=qd(t);return{height:e.height-r*2,width:e.width-r*2}}function qd(e){switch(e){case"BUBBLE_CHART":return 10;case"TREE_MAP":return 17;default:throw new Error("Chart type is invalid")}}var M1=e=>e.type==="tree",A1=e=>e.type==="blob",$a=G(lo.text)`
161
+ pointer-events: none;
162
+ `;var Se=R(X()),Da=G.main`
163
+ display: grid;
164
+ grid-template-rows: auto 1fr;
165
+ overflow: hidden;
166
+ min-width: 100px;
167
+ height: 100%;
168
+ `,T1=G.div`
169
+ display: grid;
170
+ grid-auto-flow: column;
171
+ align-items: center;
172
+ justify-content: space-between;
173
+ margin: var(--unit);
174
+ `,P1=G.div`
175
+ height: 1.5em;
176
+ & > * {
177
+ margin: 0 calc(var(--unit) * 0.5);
178
+ }
179
+ `,L1=G.button`
180
+ background: none;
181
+ border: none;
182
+ font-family: inherit;
183
+ font-weight: inherit;
184
+ font-size: inherit;
185
+ color: hsl(210, 10%, 50%);
186
+ cursor: pointer;
187
+ &:hover {
188
+ color: #8080ff;
189
+ text-decoration-color: #8080ff;
190
+ }
191
+ `,zd=G.span`
192
+ color: hsl(210, 10%, 30%);
193
+ cursor: default;
194
+ `,O1=G.div`
195
+ display: grid;
196
+ place-items: center;
197
+ overflow: hidden;
198
+ `;function Vd({fullscreenState:[e,t]}){let[r,o]=id(),{path:i,setPath:l}=ot(),{repo:c}=Ee(),f=i,h=[];for(let m=0;m<8&&f!=="";m++){let v=f.lastIndexOf("/");h.push([f.substring(v+1),f]),f=f.substring(0,v)}return f!==""&&(h=h.slice(0,h.length-1),h.push(["...",""]),h.push([c.name,c.name])),(0,Se.jsxs)(Da,{children:[(0,Se.jsxs)(T1,{children:[(0,Se.jsx)(P1,{children:h.length>1?h.reverse().map(([m,v],S)=>v===""||S===h.length-1?v===""?(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(zd,{children:m},v),(0,Se.jsx)("span",{children:"\u203A"})]}):(0,Se.jsx)(zd,{children:m},v):(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(L1,{onClick:()=>l(v),children:m},v),(0,Se.jsx)("span",{children:"\u203A"})]})):null}),(0,Se.jsx)(_1,{onClick:()=>t(m=>!m),children:e?(0,Se.jsx)(ws,{display:"inline-block",height:"1.5em"}):(0,Se.jsx)(ks,{display:"inline-block",height:"1.5em"})})]}),(0,Se.jsx)(O1,{ref:r,children:(0,Se.jsx)(Hd,{size:o})})]})}var _1=G.button`
199
+ background: none;
200
+ border: none;
201
+ margin: 0;
202
+ padding: 0;
203
+ color: var(--button-text-color);
204
+ cursor: pointer;
205
+
206
+ &:hover {
207
+ border-radius: calc(0.75 * var(--unit));
208
+ background-color: white;
209
+ color: var(--text-color);
210
+ }
211
+ `;var at=R(ee());var E1=typeof window<"u"?at.default.useLayoutEffect:()=>{},Ud=new Map;function Lr(e){let[t,r]=(0,at.useState)(e),o=(0,at.useRef)(null),i=xs(t),l=(0,at.useCallback)(c=>{o.current=c},[]);return Ud.set(i,l),E1(()=>{let c=i;return()=>{Ud.delete(c)}},[i]),(0,at.useEffect)(()=>{let c=o.current;c&&(o.current=null,r(c))}),i}var po=new Map,Wd=new Set;function Xd(){if(typeof window>"u")return;let e=r=>{let o=po.get(r.target);o||(o=new Set,po.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{let o=po.get(r.target);if(!!o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),po.delete(r.target)),po.size===0)){for(let i of Wd)i();Wd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Xd():document.addEventListener("DOMContentLoaded",Xd));var yS=typeof window<"u"&&window.visualViewport;var Or=R(X());function ja(e){let t=Lr(),r=Object.entries(e.enum);return(0,Or.jsxs)("div",{style:e.hidden?{display:"none"}:{},children:[(0,Or.jsx)(Ir,{htmlFor:t,children:e.label}),(0,Or.jsx)(N,{xs:!0}),(0,Or.jsx)(Fs,{id:t,onChange:o=>e.onChange(o.target.value),children:r.map(([o,i])=>(0,Or.jsx)("option",{value:o,children:i},i))})]})}var xt=R(X()),R1=G.input`
212
+ margin: var(--unit);
213
+ `;function Qd(){let{animationsEnabled:e,setAnimationsEnabled:t,setMetricType:r,setChartType:o}=$e();return(0,xt.jsxs)(xe,{children:[(0,xt.jsx)(ja,{label:"Chart type",enum:Di,onChange:i=>o(i)}),(0,xt.jsx)(N,{}),(0,xt.jsx)(ja,{label:"Metric",enum:pr,onChange:i=>r(i)}),(0,xt.jsx)(N,{}),(0,xt.jsxs)("label",{children:[(0,xt.jsx)(R1,{type:"checkbox",checked:e,onChange:i=>t(i.target.checked)}),(0,xt.jsx)("span",{children:"Enable animations"})]})]})}var wt=R(ee());var $n=R(ee()),Fa=(0,$n.createContext)(void 0);function Jd(){let e=(0,$n.useContext)(Fa);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e}var _r=R(X());function Kd({children:e,data:t}){let[r,o]=(0,wt.useState)(null),[i,l]=(0,wt.useState)(""),[c,f]=(0,wt.useState)([]),[h,m]=(0,wt.useState)(t.repo.name),[v,S]=(0,wt.useState)(null),y=(0,wt.useMemo)(()=>_u(t.analyzerData),[t]),b=(0,wt.useMemo)(()=>({...Ot(),...r,setMetricType:k=>o(M=>({...M!=null?M:Ot(),metricType:k})),setChartType:k=>o(M=>({...M!=null?M:Ot(),chartType:k})),setAuthorshipType:k=>o(M=>({...M!=null?M:Ot(),authorshipType:k})),setHoveredBlob:k=>o(M=>({...M!=null?M:Ot(),hoveredBlob:k})),setClickedObject:k=>o(M=>({...M!=null?M:Ot(),clickedObject:k})),setAnimationsEnabled:k=>o(M=>({...M!=null?M:Ot(),animationsEnabled:k}))}),[r]);return(0,_r.jsx)(Si.Provider,{value:t,children:(0,_r.jsx)(Ii.Provider,{value:y,children:(0,_r.jsx)(ji.Provider,{value:b,children:(0,_r.jsx)(Fa.Provider,{value:{searchText:i,setSearchText:l,searchResults:c,setSearchResults:f},children:(0,_r.jsx)(Fi.Provider,{value:{path:h,setPath:m},children:(0,_r.jsx)(ki.Provider,{value:{clickedObject:v,setClickedObject:S},children:e})})})})})})}var It=R(ee());var Ie=R(X()),$1=G(xe)`
214
+ display: flex;
215
+ flex-direction: column;
216
+ `;function D1(e,t){let r=[];function o(i){for(let l of i.children)l.name.toLowerCase().includes(t.toLowerCase())&&t?(r.push(l),l.isSearchResult=!0):l.isSearchResult=!1,l.type==="tree"&&o(l)}return o(e),r}function Ba(){let e=(0,It.useRef)(null),{searchText:t,setSearchText:r,searchResults:o,setSearchResults:i}=Jd(),[l,c]=(0,It.useState)(""),f=Lr(),{analyzerData:h}=Ee(),{setPath:m}=ot(),{setClickedObject:v}=rt();function S(b){if(v(b),b.type==="tree")m(b.path);else{let k=Vs(b.path);m(zs(b.path.split(k)).join(k))}}function y(){r(l),i(D1(h.commit.tree,l))}return $o(()=>y(),200,[l]),(0,It.useEffect)(()=>{let b=k=>{var M;k.ctrlKey&&k.key==="f"&&(k.preventDefault(),(M=e.current)==null||M.focus())};return document.body.addEventListener("keydown",b),()=>{document.body.removeEventListener("keydown",b)}},[]),(0,Ie.jsxs)($1,{children:[(0,Ie.jsx)($s,{ref:e,id:f,value:l,type:"search",placeholder:"Search for a file or folder...",onChange:b=>{c(b.target.value)}}),t.length>0?(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsxs)(zt,{children:[o.length," results"]}),o.length>0?(0,Ie.jsx)(N,{}):null]}):null,o.map(b=>(0,Ie.jsxs)(It.Fragment,{children:[(0,Ie.jsxs)(Rs,{title:b.path,value:b.path,onClick:()=>S(b),children:[b.type==="tree"?(0,Ie.jsx)(Ao,{display:"inline-block",height:"1rem"}):(0,Ie.jsx)(Ts,{display:"inline-block",height:"1rem"}),(0,Ie.jsx)("span",{children:b.name})]}),(0,Ie.jsx)(N,{xs:!0})]},b.path))]})}var j1=R(X()),Dn=G.aside`
217
+ overflow-y: auto;
218
+ display: flex;
219
+ flex-direction: column;
220
+ `;function Ia(e){return(0,j1.jsx)(Dn,{children:e.children})}var Zd=R(ee());var V=R(X());function ep({visible:e,onClose:t}){var W;let{repo:r,analyzerData:o,truckConfig:i}=Ee(),l=vs(),{authors:c}=o,f=(W=i.unionedAuthors)!=null?W:[],[h,m]=(0,Zd.useState)([]),v=f.reduce(($,ie)=>[...$,...ie],[]).sort(Ga);function S($){let ie=f.filter((me,fe)=>fe!==$),ae=new FormData;ae.append("unionedAuthors",JSON.stringify(ie)),l(ae,{action:`/${_o(r.name,r.currentHead)}`,method:"post"})}function y(){if(h.length===0)return;let $=new FormData;$.append("unionedAuthors",JSON.stringify([...f,h])),l($,{action:`/${_o(r.name,r.currentHead)}`,method:"post"}),m([])}function b($,ie){let ae=f.map((fe,be)=>be===ie?[$,...fe.filter(we=>we!==$)]:fe),me=new FormData;me.append("unionedAuthors",JSON.stringify(ae)),l(me,{action:`/${_o(r.name,r.currentHead)}`,method:"post"})}let k=Tt(),M=k.state!=="idle",[,E]=dt(),D=c.filter($=>!v.includes($)).slice(0).sort(Ga);function B($){$.target===$.currentTarget&&t()}xi("Escape",t);let H=$=>{var ie;return(ie=E.get($))!=null?ie:"#333"};if(!e)return null;return(0,V.jsx)(B1,{onClick:B,children:(0,V.jsxs)(I1,{children:[(0,V.jsx)(G1,{children:(0,V.jsx)(N1,{children:"Merge duplicate users"})}),(0,V.jsx)(N,{xl:!0}),(0,V.jsx)("h3",{children:"Ungrouped users"}),(0,V.jsx)(N,{sm:!0}),(0,V.jsx)("p",{children:D.length===0?"All detected users have been grouped":"Select the users that you know are the same person"}),(0,V.jsx)(N,{xl:!0}),(0,V.jsx)(q1,{children:D.map($=>(0,V.jsx)(F1,{checked:h.includes($),onChange:ie=>{let ae=ie.target.checked?[...h,$]:h.filter(me=>me!==$);m(ae)},children:(0,V.jsxs)(Yd,{children:[(0,V.jsx)(Lt,{dotColor:H($)}),(0,V.jsx)(N,{horizontal:!0}),$]})},$))}),(0,V.jsx)(N,{xl:!0}),D.length>0?(0,V.jsx)(vi,{children:(0,V.jsxs)(_e,{onClick:y,title:"Merge the selected users",disabled:M||h.length===0,children:[(0,V.jsx)(Ss,{display:"inline-block",height:"1rem"}),"Merge"]})}):null,(0,V.jsx)(N,{}),(0,V.jsx)("h3",{children:"Grouped users"}),(0,V.jsx)(N,{sm:!0}),(0,V.jsx)(H1,{children:f.length===0?(0,V.jsx)("p",{children:"There are no grouped users"}):f.map(($,ie)=>{let ae=$[0],me=k.state!=="idle",fe=H(ae);return(0,V.jsxs)(z1,{children:[(0,V.jsxs)(Yd,{children:[(0,V.jsx)(Lt,{dotColor:fe}),(0,V.jsx)(N,{horizontal:!0}),(0,V.jsx)("b",{children:ae})]}),(0,V.jsx)(N,{}),$.slice(1).sort(Ga).map(be=>(0,V.jsx)(L,{alias:be,onClick:()=>b(be,ie),disabled:me},be)),(0,V.jsx)(Gr,{}),(0,V.jsxs)(vi,{children:[(0,V.jsx)(Gr,{}),(0,V.jsx)(_e,{onClick:()=>S(ie),title:"Unmerge this group",disabled:me,children:"Unmerge"})]})]},ie)})}),(0,V.jsx)(Oo,{onClick:t})]})});function L({alias:$,onClick:ie,disabled:ae}){return(0,V.jsx)(U1,{children:(0,V.jsx)("div",{children:(0,V.jsxs)(V1,{disabled:ae,onClick:ie,title:"Make display name for this group",children:[(0,V.jsx)(rn,{display:"inline-block",height:"1rem"}),(0,V.jsx)(Ir,{children:$})]})})},$)}}function F1({children:e,checked:t,onChange:r}){let o=Lr();return(0,V.jsxs)(W1,{children:[(0,V.jsx)(X1,{checked:t,onChange:r,id:o}),(0,V.jsx)(Ir,{htmlFor:o,children:e})]})}var Ga=(e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()),B1=G.div`
221
+ position: fixed;
222
+ inset: 0;
223
+ padding: calc(4 * var(--unit));
224
+ background-color: hsla(0, 0%, 0%, 0.5);
225
+ `,I1=G(xe)`
226
+ position: relative;
227
+ margin: auto;
228
+ max-width: 1000px;
229
+ max-height: 100%;
230
+ overflow: hidden;
231
+ display: flex;
232
+ flex-direction: column;
233
+ `,G1=G.div``,N1=G.h2``,H1=G.div`
234
+ display: grid;
235
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
236
+ grid-gap: var(--unit);
237
+ `,q1=G.div`
238
+ overflow-y: auto;
239
+ `,z1=G(xe)`
240
+ margin: 0;
241
+ display: flex;
242
+ flex-direction: column;
243
+ `,Yd=G.div`
244
+ display: inline-flex;
245
+ flex-direction: row;
246
+ place-items: center;
247
+ line-height: 100%;
248
+ margin: 0px;
249
+ `,V1=G(Lo)`
250
+ grid-auto-flow: column;
251
+ & > svg {
252
+ opacity: 0;
253
+ }
254
+ &:hover > svg {
255
+ opacity: 1;
256
+ }
257
+ `,U1=G.div`
258
+ display: flex;
259
+ `,W1=G.div``,X1=G.input.attrs({type:"checkbox"})``;var U=R(X());var Y1=({error:e})=>(console.error(e.message),console.error(e.stack),(0,U.jsxs)(ip,{isFullscreen:!1,children:[(0,U.jsx)("div",{}),(0,U.jsxs)(xe,{children:[(0,U.jsx)("h1",{children:"An error occured!"}),(0,U.jsx)("p",{children:"See console for more infomation."}),(0,U.jsx)(bi,{children:e.stack}),(0,U.jsx)("div",{children:(0,U.jsx)(Br,{to:".",children:"Retry"})}),(0,U.jsx)("div",{children:(0,U.jsx)(Br,{to:"..",children:"Go back"})})]})]}));function tp(e){window.open(e,"_blank")}function Z1(){return(0,U.jsxs)(xe,{children:[(0,U.jsxs)(_s,{children:[(0,U.jsx)(Ms,{display:"inline-block",height:"1rem"}),(0,U.jsx)(Pt,{children:"Help improve Git Truck"})]}),(0,U.jsx)(N,{xl:!0}),(0,U.jsx)(_e,{onClick:()=>tp("https://docs.google.com/forms/d/e/1FAIpQLSclLnUCPb0wLZx5RulQLaI_N_4wjNkd6z7YLkA3BzNVFjfiEg/viewform?usp=sf_link"),children:"Answer questionnaire"}),(0,U.jsx)(N,{}),(0,U.jsx)(_e,{onClick:()=>tp("https://github.com/git-truck/git-truck/issues/new?template=user-issue.md"),children:"Open an issue"})]})}function ex(){let{gitTruckInfo:e}=Ee();return(0,U.jsxs)(xe,{children:[(0,U.jsxs)("p",{children:["Update available: ",e.latestVersion]}),(0,U.jsxs)(zt,{children:["Currently installed: ",e.version]}),(0,U.jsxs)(zt,{children:["To update, close application and run: ",(0,U.jsx)(bi,{inline:!0,children:"npx git-truck@latest"})]})]})}function np(){let e=ys(),{analyzerData:t,gitTruckInfo:r}=e,[o,i]=(0,rp.useState)(!1),[l,c]=Vt(!1),f=()=>c(!0);return t?(0,U.jsxs)(Kd,{data:e,children:[(0,U.jsxs)(ip,{isFullscreen:o,children:[(0,U.jsxs)(Ia,{children:[(0,U.jsx)(zu,{}),(0,U.jsx)(Z1,{}),(0,U.jsx)(Qd,{}),(0,U.jsx)(Ba,{}),(0,U.jsx)(N,{})]}),typeof document!="undefined"?(0,U.jsx)(Vd,{fullscreenState:[o,i]}):(0,U.jsx)("div",{}),(0,U.jsxs)(Ia,{children:[r.latestVersion&&Os(r.latestVersion,r.version)===1?(0,U.jsx)(ex,{}):null,t.hiddenFiles.length>0?(0,U.jsx)(Vu,{}):null,(0,U.jsx)(qu,{showUnionAuthorsModal:f}),(0,U.jsx)(Gr,{}),(0,U.jsx)(Xu,{showUnionAuthorsModal:f})]})]}),(0,U.jsx)(ep,{visible:l,onClose:()=>{c(!1)}})]}):null}var ip=G.div`
260
+ height: 100vh;
261
+ display: grid;
262
+ transition: 0.5s;
263
+ grid-template-areas: "left main right";
264
+ grid-template-columns: ${e=>e.isFullscreen?"0px 1fr 0px":"var(--side-panel-width) 1fr var(--side-panel-width)"};
265
+ grid-template-rows: 1fr;
266
+
267
+ & > ${Da} {
268
+ grid-area: main;
269
+ }
270
+
271
+ & > ${Dn}:first-of-type() {
272
+ grid-area: left;
273
+ }
274
+
275
+ & > ${Dn}:last-of-type() {
276
+ grid-area: right;
277
+ }
278
+
279
+ @media (max-width: 660px) {
280
+ height: auto;
281
+ grid-template-areas:
282
+ "main"
283
+ "left"
284
+ "right";
285
+ grid-template-columns: none;
286
+ grid-template-rows: ${e=>e.isFullscreen?"100vh auto auto":"50vh auto auto"};
287
+ }
288
+ `;export{Y1 as ErrorBoundary,np as default};
289
+ /*!
290
+ * lang-map <https://github.com/jonschlinkert/lang-map>
291
+ *
292
+ * Copyright (c) 2014-2015, Jon Schlinkert.
293
+ * Licensed under the MIT license.
294
+ */
295
+ /**
296
+ * chroma.js - JavaScript library for color conversions
297
+ *
298
+ * Copyright (c) 2011-2019, Gregor Aisch
299
+ * All rights reserved.
300
+ *
301
+ * Redistribution and use in source and binary forms, with or without
302
+ * modification, are permitted provided that the following conditions are met:
303
+ *
304
+ * 1. Redistributions of source code must retain the above copyright notice, this
305
+ * list of conditions and the following disclaimer.
306
+ *
307
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
308
+ * this list of conditions and the following disclaimer in the documentation
309
+ * and/or other materials provided with the distribution.
310
+ *
311
+ * 3. The name Gregor Aisch may not be used to endorse or promote products
312
+ * derived from this software without specific prior written permission.
313
+ *
314
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
315
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
316
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
317
+ * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
318
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
319
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
320
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
321
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
322
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
323
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
324
+ *
325
+ * -------------------------------------------------------
326
+ *
327
+ * chroma.js includes colors from colorbrewer2.org, which are released under
328
+ * the following license:
329
+ *
330
+ * Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
331
+ * and The Pennsylvania State University.
332
+ *
333
+ * Licensed under the Apache License, Version 2.0 (the "License");
334
+ * you may not use this file except in compliance with the License.
335
+ * You may obtain a copy of the License at
336
+ * http://www.apache.org/licenses/LICENSE-2.0
337
+ *
338
+ * Unless required by applicable law or agreed to in writing,
339
+ * software distributed under the License is distributed on an
340
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
341
+ * either express or implied. See the License for the specific
342
+ * language governing permissions and limitations under the License.
343
+ *
344
+ * ------------------------------------------------------
345
+ *
346
+ * Named colors are taken from X11 Color Names.
347
+ * http://www.w3.org/TR/css3-color/#svg-color
348
+ *
349
+ * @preserve
350
+ */