git-truck 0.0.0-3e8160c6

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 fb}from"/build/_shared/chunk-Y7FU7OLJ.js";import{b as is}from"/build/_shared/chunk-FSZBSYJE.js";import{a as db,b as rr,c as Ss,d as Ms,f as As,g as hb,h as pb,i as mb,j as V,k as Ts,l as Ps,m as $s,n as Ls,o as _s,p as Os,q as Es,r as bo,s as js}from"/build/_shared/chunk-WARMAH7N.js";import{A as ge,B as Ar,C as ys,D as Zn,E as bt,F as tr,G as xs,H as ws,I as rt,J as Ue,K as ei,L as Tr,M as ks,O as Cs,Q as ti,a as uo,b as Kn,c as q,d as co,e as as,f as Yn,g as fo,h as ls,i as ss,j as us,k as ho,l as cs,m as fs,n as ds,o as hs,p as ps,q as ms,r as po,s as gt,t as gs,u as bs,v as Ft,w as Me,x as mo,y as vs,z as go}from"/build/_shared/chunk-4LCJRRXI.js";import{b as ne,c as ee,d as s,e as b,g as he,h as so,i as ts,k as er,l as rs,n as Mr,r as tt,s as os,t as ns,u as mt}from"/build/_shared/chunk-YDCVFN7Q.js";var Fs=ne((UM,Ds)=>{b();Ds.exports={}});var Is=ne((WM,Bs)=>{b();Bs.exports={}});var zs=ne(ko=>{"use strict";b();Object.defineProperty(ko,"__esModule",{value:!0});ko.default=void 0;var bb={sum:function(t){return t.reduce(function(r,o){return r+o})}},vb=bb;ko.default=vb});var Co=ne((i7,Vs)=>{b();function yb(e){return Object.prototype.toString.call(e).slice(8,-1)}Vs.exports=yb});var ni=ne((a7,Us)=>{b();function xb(e){return!!e&&typeof e=="object"&&e.constructor===Object}Us.exports=xb});var So=ne((l7,Ws)=>{b();function wb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Ws.exports=wb});var Js=ne((s7,Xs)=>{b();var kb=So(),Mo,Qs;function Cb(){Qs=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Mo=!0;for(var e in{toString:null})Mo=!1}function Sb(e,t,r){var o,i=0;Mo==null&&Cb();for(o in e)if(Rs(t,e,o,r)===!1)break;if(Mo)for(var u=e.constructor,f=!!u&&e===u.prototype;(o=Qs[i++])&&!((o!=="constructor"||!f&&kb(e,o))&&e[o]!==Object.prototype[o]&&Rs(t,e,o,r)===!1););}function Rs(e,t,r,o){return e.call(o,t[r],r,t)}Xs.exports=Sb});var Pr=ne((u7,Ks)=>{b();var Mb=So(),Ab=Js();function Tb(e,t,r){Ab(e,function(o,i){if(Mb(e,i))return t.call(r,e[i],i,e)})}Ks.exports=Tb});var Zs=ne((c7,Ys)=>{b();var Pb=Pr();function $b(e,t){for(var r=0,o=arguments.length,i;++r<o;)i=arguments[r],i!=null&&Pb(i,Lb,e);return e}function Lb(e,t){this[t]=e}Ys.exports=$b});var tu=ne((f7,eu)=>{b();var _b=Co(),Ob=ni(),Eb=Zs();function jb(e){switch(_b(e)){case"Object":return Db(e);case"Array":return Ib(e);case"RegExp":return Fb(e);case"Date":return Bb(e);default:return e}}function Db(e){return Ob(e)?Eb({},e):e}function Fb(e){var t="";return t+=e.multiline?"m":"",t+=e.global?"g":"",t+=e.ignoreCase?"i":"",new RegExp(e.source,t)}function Bb(e){return new Date(+e)}function Ib(e){return e.slice()}eu.exports=jb});var ou=ne((d7,ru)=>{b();var Nb=tu(),Gb=Pr(),Hb=Co(),qb=ni();function ii(e,t){switch(Hb(e)){case"Object":return zb(e,t);case"Array":return Vb(e,t);default:return Nb(e)}}function zb(e,t){if(qb(e)){var r={};return Gb(e,function(o,i){this[i]=ii(o,t)},r),r}else return t?t(e):e}function Vb(e,t){for(var r=[],o=-1,i=e.length,u;++o<i;)r[o]=ii(e[o],t);return r}ru.exports=ii});var Ao=ne((h7,nu)=>{b();function Ub(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}nu.exports=Ub});var ai=ne((p7,iu)=>{b();var Wb=Co();function Rb(e,t){return Wb(e)===t}iu.exports=Rb});var li=ne((m7,au)=>{b();var Qb=ai();function Xb(e){return Qb(e,"Object")}au.exports=Xb});var To=ne((g7,lu)=>{b();var Jb=ai(),Kb=Array.isArray||function(e){return Jb(e,"Array")};lu.exports=Kb});var uu=ne((b7,su)=>{b();function Yb(e){return e}su.exports=Yb});var fu=ne((v7,cu)=>{b();function Zb(e){return function(t){return t[e]}}cu.exports=Zb});var pu=ne((y7,hu)=>{b();var e0=Pr(),du=To();function t0(e,t){for(var r=-1,o=e.length;++r<o;)if(si(e[r],t))return!0;return!1}function r0(e,t){for(var r=-1,o=t.length;++r<o;)if(!t0(e,t[r]))return!1;return!0}function o0(e,t){var r=!0;return e0(t,function(o,i){if(!si(e[i],o))return r=!1}),r}function si(e,t){return e&&typeof e=="object"&&t&&typeof t=="object"?du(e)&&du(t)?r0(e,t):o0(e,t):e===t}hu.exports=si});var ui=ne((x7,mu)=>{b();var n0=uu(),i0=fu(),a0=pu();function l0(e,t){if(e==null)return n0;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 a0(r,e)};case"string":case"number":return i0(e)}}mu.exports=l0});var bu=ne((w7,gu)=>{b();var s0=Pr(),u0=ui();function c0(e,t,r){t=u0(t,r);var o=!0;return s0(e,function(i,u){if(!t(i,u,e))return o=!1,!1}),o}gu.exports=c0});var ku=ne((k7,wu)=>{b();var xu=So(),vu=bu(),yu=li(),f0=Ao();function d0(e){return function(t,r){return xu(this,r)&&e(t,this[r])}}function h0(e,t){return xu(this,t)}function p0(e,t,r){return r=r||f0,!yu(e)||!yu(t)?r(e,t):vu(e,d0(r),t)&&vu(t,h0,e)}wu.exports=p0});var Su=ne((C7,Cu)=>{b();var m0=ui();function g0(e,t,r){t=m0(t,r);var o=!0;if(e==null)return o;for(var i=-1,u=e.length;++i<u;)if(!t(e[i],i,e)){o=!1;break}return o}Cu.exports=g0});var Tu=ne((S7,Au)=>{b();var b0=Ao(),Mu=To(),v0=Su();function y0(e,t,r){return r=r||b0,!Mu(e)||!Mu(t)?r(e,t):e.length!==t.length?!1:v0(e,x0(r),t)}function x0(e){return function(t,r){return r in this&&e(t,this[r])}}Au.exports=y0});var Ou=ne((M7,_u)=>{b();var w0=Ao(),Pu=li(),$u=To(),k0=ku(),C0=Tu();function Lu(e,t,r){r=r||w0;var o=Pu(e)&&Pu(t),i=!o&&$u(e)&&$u(t);if(!o&&!i)return r(e,t);function u(d,p){return Lu(d,p,r)}var f=o?k0:C0;return f(e,t,u)}_u.exports=Lu});var Eu=ne((ci,fi)=>{b();(function(e,t){typeof ci=="object"&&typeof fi<"u"?fi.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.chroma=t())})(ci,function(){"use strict";for(var e=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n<l?l:n>c?c:n},t=e,r=function(n){n._clipped=!1,n._unclipped=n.slice(0);for(var l=0;l<=3;l++)l<3?((n[l]<0||n[l]>255)&&(n._clipped=!0),n[l]=t(n[l],0,255)):l===3&&(n[l]=t(n[l],0,1));return n},o={},i=0,u=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];i<u.length;i+=1){var f=u[i];o["[object "+f+"]"]=f.toLowerCase()}var d=function(n){return o[Object.prototype.toString.call(n)]||"object"},p=d,m=function(n,l){return l===void 0&&(l=null),n.length>=3?Array.prototype.slice.call(n):p(n[0])=="object"&&l?l.split("").filter(function(c){return n[0][c]!==void 0}).map(function(c){return n[0][c]}):n[0]},w=d,A=function(n){if(n.length<2)return null;var l=n.length-1;return w(n[l])=="string"?n[l].toLowerCase():null},k=Math.PI,y={clip_rgb:r,limit:e,type:d,unpack:m,last:A,PI:k,TWOPI:k*2,PITHIRD:k/3,DEG2RAD:k/180,RAD2DEG:180/k},M={format:{},autodetect:[]},T=y.last,$=y.clip_rgb,F=y.type,I=M,H=function(){for(var l=[],c=arguments.length;c--;)l[c]=arguments[c];var h=this;if(F(l[0])==="object"&&l[0].constructor&&l[0].constructor===this.constructor)return l[0];var v=T(l),x=!1;if(!v){x=!0,I.sorted||(I.autodetect=I.autodetect.sort(function(L,B){return B.p-L.p}),I.sorted=!0);for(var g=0,C=I.autodetect;g<C.length;g+=1){var S=C[g];if(v=S.test.apply(S,l),v)break}}if(I.format[v]){var P=I.format[v].apply(null,x?l:l.slice(0,-1));h._rgb=$(P)}else throw new Error("unknown format: "+l);h._rgb.length===3&&h._rgb.push(1)};H.prototype.toString=function(){return F(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var j=H,J=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(J.Color,[null].concat(n)))};J.Color=j,J.version="2.4.2";var D=J,z=y.unpack,R=Math.max,le=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=z(n,"rgb"),h=c[0],v=c[1],x=c[2];h=h/255,v=v/255,x=x/255;var g=1-R(h,R(v,x)),C=g<1?1/(1-g):0,S=(1-h-g)*C,P=(1-v-g)*C,L=(1-x-g)*C;return[S,P,L,g]},fe=le,me=y.unpack,be=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];n=me(n,"cmyk");var c=n[0],h=n[1],v=n[2],x=n[3],g=n.length>4?n[4]:1;return x===1?[0,0,0,g]:[c>=1?0:255*(1-c)*(1-x),h>=1?0:255*(1-h)*(1-x),v>=1?0:255*(1-v)*(1-x),g]},Te=be,ct=D,Ye=j,yr=M,xr=y.unpack,yn=y.type,xn=fe;Ye.prototype.cmyk=function(){return xn(this._rgb)},ct.cmyk=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(Ye,[null].concat(n,["cmyk"])))},yr.format.cmyk=Te,yr.autodetect.push({p:2,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=xr(n,"cmyk"),yn(n)==="array"&&n.length===4)return"cmyk"}});var wn=y.unpack,Ot=y.last,wr=function(n){return Math.round(n*100)/100},Zd=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=wn(n,"hsla"),h=Ot(n)||"lsa";return c[0]=wr(c[0]||0),c[1]=wr(c[1]*100)+"%",c[2]=wr(c[2]*100)+"%",h==="hsla"||c.length>3&&c[3]<1?(c[3]=c.length>3?c[3]:1,h="hsla"):c.length=3,h+"("+c.join(",")+")"},eh=Zd,th=y.unpack,rh=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];n=th(n,"rgba");var c=n[0],h=n[1],v=n[2];c/=255,h/=255,v/=255;var x=Math.min(c,h,v),g=Math.max(c,h,v),C=(g+x)/2,S,P;return g===x?(S=0,P=Number.NaN):S=C<.5?(g-x)/(g+x):(g-x)/(2-g-x),c==g?P=(h-v)/(g-x):h==g?P=2+(v-c)/(g-x):v==g&&(P=4+(c-h)/(g-x)),P*=60,P<0&&(P+=360),n.length>3&&n[3]!==void 0?[P,S,C,n[3]]:[P,S,C]},Ta=rh,oh=y.unpack,nh=y.last,ih=eh,ah=Ta,kn=Math.round,lh=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=oh(n,"rgba"),h=nh(n)||"rgb";return h.substr(0,3)=="hsl"?ih(ah(c),h):(c[0]=kn(c[0]),c[1]=kn(c[1]),c[2]=kn(c[2]),(h==="rgba"||c.length>3&&c[3]<1)&&(c[3]=c.length>3?c[3]:1,h="rgba"),h+"("+c.slice(0,h==="rgb"?3:4).join(",")+")")},sh=lh,uh=y.unpack,Cn=Math.round,ch=function(){for(var n,l=[],c=arguments.length;c--;)l[c]=arguments[c];l=uh(l,"hsl");var h=l[0],v=l[1],x=l[2],g,C,S;if(v===0)g=C=S=x*255;else{var P=[0,0,0],L=[0,0,0],B=x<.5?x*(1+v):x+v-x*v,_=2*x-B,G=h/360;P[0]=G+1/3,P[1]=G,P[2]=G-1/3;for(var N=0;N<3;N++)P[N]<0&&(P[N]+=1),P[N]>1&&(P[N]-=1),6*P[N]<1?L[N]=_+(B-_)*6*P[N]:2*P[N]<1?L[N]=B:3*P[N]<2?L[N]=_+(B-_)*(2/3-P[N])*6:L[N]=_;n=[Cn(L[0]*255),Cn(L[1]*255),Cn(L[2]*255)],g=n[0],C=n[1],S=n[2]}return l.length>3?[g,C,S,l[3]]:[g,C,S,1]},Pa=ch,$a=Pa,La=M,_a=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Oa=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Ea=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,ja=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Da=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Fa=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ba=Math.round,Ia=function(n){n=n.toLowerCase().trim();var l;if(La.format.named)try{return La.format.named(n)}catch{}if(l=n.match(_a)){for(var c=l.slice(1,4),h=0;h<3;h++)c[h]=+c[h];return c[3]=1,c}if(l=n.match(Oa)){for(var v=l.slice(1,5),x=0;x<4;x++)v[x]=+v[x];return v}if(l=n.match(Ea)){for(var g=l.slice(1,4),C=0;C<3;C++)g[C]=Ba(g[C]*2.55);return g[3]=1,g}if(l=n.match(ja)){for(var S=l.slice(1,5),P=0;P<3;P++)S[P]=Ba(S[P]*2.55);return S[3]=+S[3],S}if(l=n.match(Da)){var L=l.slice(1,4);L[1]*=.01,L[2]*=.01;var B=$a(L);return B[3]=1,B}if(l=n.match(Fa)){var _=l.slice(1,4);_[1]*=.01,_[2]*=.01;var G=$a(_);return G[3]=+l[4],G}};Ia.test=function(n){return _a.test(n)||Oa.test(n)||Ea.test(n)||ja.test(n)||Da.test(n)||Fa.test(n)};var fh=Ia,dh=D,Na=j,Ga=M,hh=y.type,ph=sh,Ha=fh;Na.prototype.css=function(n){return ph(this._rgb,n)},dh.css=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(Na,[null].concat(n,["css"])))},Ga.format.css=Ha,Ga.autodetect.push({p:5,test:function(n){for(var l=[],c=arguments.length-1;c-- >0;)l[c]=arguments[c+1];if(!l.length&&hh(n)==="string"&&Ha.test(n))return"css"}});var qa=j,mh=D,gh=M,bh=y.unpack;gh.format.gl=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=bh(n,"rgba");return c[0]*=255,c[1]*=255,c[2]*=255,c},mh.gl=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(qa,[null].concat(n,["gl"])))},qa.prototype.gl=function(){var n=this._rgb;return[n[0]/255,n[1]/255,n[2]/255,n[3]]};var vh=y.unpack,yh=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=vh(n,"rgb"),h=c[0],v=c[1],x=c[2],g=Math.min(h,v,x),C=Math.max(h,v,x),S=C-g,P=S*100/255,L=g/(255-S)*100,B;return S===0?B=Number.NaN:(h===C&&(B=(v-x)/S),v===C&&(B=2+(x-h)/S),x===C&&(B=4+(h-v)/S),B*=60,B<0&&(B+=360)),[B,P,L]},xh=yh,wh=y.unpack,kh=Math.floor,Ch=function(){for(var n,l,c,h,v,x,g=[],C=arguments.length;C--;)g[C]=arguments[C];g=wh(g,"hcg");var S=g[0],P=g[1],L=g[2],B,_,G;L=L*255;var N=P*255;if(P===0)B=_=G=L;else{S===360&&(S=0),S>360&&(S-=360),S<0&&(S+=360),S/=60;var Q=kh(S),Z=S-Q,re=L*(1-P),se=re+N*(1-Z),ke=re+N*Z,xe=re+N;switch(Q){case 0:n=[xe,ke,re],B=n[0],_=n[1],G=n[2];break;case 1:l=[se,xe,re],B=l[0],_=l[1],G=l[2];break;case 2:c=[re,xe,ke],B=c[0],_=c[1],G=c[2];break;case 3:h=[re,se,xe],B=h[0],_=h[1],G=h[2];break;case 4:v=[ke,re,xe],B=v[0],_=v[1],G=v[2];break;case 5:x=[xe,re,se],B=x[0],_=x[1],G=x[2];break}}return[B,_,G,g.length>3?g[3]:1]},Sh=Ch,Mh=y.unpack,Ah=y.type,Th=D,za=j,Va=M,Ph=xh;za.prototype.hcg=function(){return Ph(this._rgb)},Th.hcg=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(za,[null].concat(n,["hcg"])))},Va.format.hcg=Sh,Va.autodetect.push({p:1,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=Mh(n,"hcg"),Ah(n)==="array"&&n.length===3)return"hcg"}});var $h=y.unpack,Lh=y.last,Zr=Math.round,_h=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=$h(n,"rgba"),h=c[0],v=c[1],x=c[2],g=c[3],C=Lh(n)||"auto";g===void 0&&(g=1),C==="auto"&&(C=g<1?"rgba":"rgb"),h=Zr(h),v=Zr(v),x=Zr(x);var S=h<<16|v<<8|x,P="000000"+S.toString(16);P=P.substr(P.length-6);var L="0"+Zr(g*255).toString(16);switch(L=L.substr(L.length-2),C.toLowerCase()){case"rgba":return"#"+P+L;case"argb":return"#"+L+P;default:return"#"+P}},Ua=_h,Oh=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Eh=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,jh=function(n){if(n.match(Oh)){(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 l=parseInt(n,16),c=l>>16,h=l>>8&255,v=l&255;return[c,h,v,1]}if(n.match(Eh)){(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 x=parseInt(n,16),g=x>>24&255,C=x>>16&255,S=x>>8&255,P=Math.round((x&255)/255*100)/100;return[g,C,S,P]}throw new Error("unknown hex color: "+n)},Wa=jh,Dh=D,Ra=j,Fh=y.type,Qa=M,Bh=Ua;Ra.prototype.hex=function(n){return Bh(this._rgb,n)},Dh.hex=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(Ra,[null].concat(n,["hex"])))},Qa.format.hex=Wa,Qa.autodetect.push({p:4,test:function(n){for(var l=[],c=arguments.length-1;c-- >0;)l[c]=arguments[c+1];if(!l.length&&Fh(n)==="string"&&[3,4,5,6,7,8,9].indexOf(n.length)>=0)return"hex"}});var Ih=y.unpack,Xa=y.TWOPI,Nh=Math.min,Gh=Math.sqrt,Hh=Math.acos,qh=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=Ih(n,"rgb"),h=c[0],v=c[1],x=c[2];h/=255,v/=255,x/=255;var g,C=Nh(h,v,x),S=(h+v+x)/3,P=S>0?1-C/S:0;return P===0?g=NaN:(g=(h-v+(h-x))/2,g/=Gh((h-v)*(h-v)+(h-x)*(v-x)),g=Hh(g),x>v&&(g=Xa-g),g/=Xa),[g*360,P,S]},zh=qh,Vh=y.unpack,Sn=y.limit,Vt=y.TWOPI,Mn=y.PITHIRD,Ut=Math.cos,Uh=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];n=Vh(n,"hsi");var c=n[0],h=n[1],v=n[2],x,g,C;return isNaN(c)&&(c=0),isNaN(h)&&(h=0),c>360&&(c-=360),c<0&&(c+=360),c/=360,c<1/3?(C=(1-h)/3,x=(1+h*Ut(Vt*c)/Ut(Mn-Vt*c))/3,g=1-(C+x)):c<2/3?(c-=1/3,x=(1-h)/3,g=(1+h*Ut(Vt*c)/Ut(Mn-Vt*c))/3,C=1-(x+g)):(c-=2/3,g=(1-h)/3,C=(1+h*Ut(Vt*c)/Ut(Mn-Vt*c))/3,x=1-(g+C)),x=Sn(v*x*3),g=Sn(v*g*3),C=Sn(v*C*3),[x*255,g*255,C*255,n.length>3?n[3]:1]},Wh=Uh,Rh=y.unpack,Qh=y.type,Xh=D,Ja=j,Ka=M,Jh=zh;Ja.prototype.hsi=function(){return Jh(this._rgb)},Xh.hsi=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(Ja,[null].concat(n,["hsi"])))},Ka.format.hsi=Wh,Ka.autodetect.push({p:2,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=Rh(n,"hsi"),Qh(n)==="array"&&n.length===3)return"hsi"}});var Kh=y.unpack,Yh=y.type,Zh=D,Ya=j,Za=M,ep=Ta;Ya.prototype.hsl=function(){return ep(this._rgb)},Zh.hsl=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(Ya,[null].concat(n,["hsl"])))},Za.format.hsl=Pa,Za.autodetect.push({p:2,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=Kh(n,"hsl"),Yh(n)==="array"&&n.length===3)return"hsl"}});var tp=y.unpack,rp=Math.min,op=Math.max,np=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];n=tp(n,"rgb");var c=n[0],h=n[1],v=n[2],x=rp(c,h,v),g=op(c,h,v),C=g-x,S,P,L;return L=g/255,g===0?(S=Number.NaN,P=0):(P=C/g,c===g&&(S=(h-v)/C),h===g&&(S=2+(v-c)/C),v===g&&(S=4+(c-h)/C),S*=60,S<0&&(S+=360)),[S,P,L]},ip=np,ap=y.unpack,lp=Math.floor,sp=function(){for(var n,l,c,h,v,x,g=[],C=arguments.length;C--;)g[C]=arguments[C];g=ap(g,"hsv");var S=g[0],P=g[1],L=g[2],B,_,G;if(L*=255,P===0)B=_=G=L;else{S===360&&(S=0),S>360&&(S-=360),S<0&&(S+=360),S/=60;var N=lp(S),Q=S-N,Z=L*(1-P),re=L*(1-P*Q),se=L*(1-P*(1-Q));switch(N){case 0:n=[L,se,Z],B=n[0],_=n[1],G=n[2];break;case 1:l=[re,L,Z],B=l[0],_=l[1],G=l[2];break;case 2:c=[Z,L,se],B=c[0],_=c[1],G=c[2];break;case 3:h=[Z,re,L],B=h[0],_=h[1],G=h[2];break;case 4:v=[se,Z,L],B=v[0],_=v[1],G=v[2];break;case 5:x=[L,Z,re],B=x[0],_=x[1],G=x[2];break}}return[B,_,G,g.length>3?g[3]:1]},up=sp,cp=y.unpack,fp=y.type,dp=D,el=j,tl=M,hp=ip;el.prototype.hsv=function(){return hp(this._rgb)},dp.hsv=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(el,[null].concat(n,["hsv"])))},tl.format.hsv=up,tl.autodetect.push({p:2,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=cp(n,"hsv"),fp(n)==="array"&&n.length===3)return"hsv"}});var eo={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Wt=eo,pp=y.unpack,rl=Math.pow,mp=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=pp(n,"rgb"),h=c[0],v=c[1],x=c[2],g=gp(h,v,x),C=g[0],S=g[1],P=g[2],L=116*S-16;return[L<0?0:L,500*(C-S),200*(S-P)]},An=function(n){return(n/=255)<=.04045?n/12.92:rl((n+.055)/1.055,2.4)},Tn=function(n){return n>Wt.t3?rl(n,1/3):n/Wt.t2+Wt.t0},gp=function(n,l,c){n=An(n),l=An(l),c=An(c);var h=Tn((.4124564*n+.3575761*l+.1804375*c)/Wt.Xn),v=Tn((.2126729*n+.7151522*l+.072175*c)/Wt.Yn),x=Tn((.0193339*n+.119192*l+.9503041*c)/Wt.Zn);return[h,v,x]},ol=mp,Rt=eo,bp=y.unpack,vp=Math.pow,yp=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];n=bp(n,"lab");var c=n[0],h=n[1],v=n[2],x,g,C,S,P,L;return g=(c+16)/116,x=isNaN(h)?g:g+h/500,C=isNaN(v)?g:g-v/200,g=Rt.Yn*$n(g),x=Rt.Xn*$n(x),C=Rt.Zn*$n(C),S=Pn(3.2404542*x-1.5371385*g-.4985314*C),P=Pn(-.969266*x+1.8760108*g+.041556*C),L=Pn(.0556434*x-.2040259*g+1.0572252*C),[S,P,L,n.length>3?n[3]:1]},Pn=function(n){return 255*(n<=.00304?12.92*n:1.055*vp(n,1/2.4)-.055)},$n=function(n){return n>Rt.t1?n*n*n:Rt.t2*(n-Rt.t0)},nl=yp,xp=y.unpack,wp=y.type,kp=D,il=j,al=M,Cp=ol;il.prototype.lab=function(){return Cp(this._rgb)},kp.lab=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(il,[null].concat(n,["lab"])))},al.format.lab=nl,al.autodetect.push({p:2,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=xp(n,"lab"),wp(n)==="array"&&n.length===3)return"lab"}});var Sp=y.unpack,Mp=y.RAD2DEG,Ap=Math.sqrt,Tp=Math.atan2,Pp=Math.round,$p=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=Sp(n,"lab"),h=c[0],v=c[1],x=c[2],g=Ap(v*v+x*x),C=(Tp(x,v)*Mp+360)%360;return Pp(g*1e4)===0&&(C=Number.NaN),[h,g,C]},ll=$p,Lp=y.unpack,_p=ol,Op=ll,Ep=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=Lp(n,"rgb"),h=c[0],v=c[1],x=c[2],g=_p(h,v,x),C=g[0],S=g[1],P=g[2];return Op(C,S,P)},jp=Ep,Dp=y.unpack,Fp=y.DEG2RAD,Bp=Math.sin,Ip=Math.cos,Np=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=Dp(n,"lch"),h=c[0],v=c[1],x=c[2];return isNaN(x)&&(x=0),x=x*Fp,[h,Ip(x)*v,Bp(x)*v]},sl=Np,Gp=y.unpack,Hp=sl,qp=nl,zp=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];n=Gp(n,"lch");var c=n[0],h=n[1],v=n[2],x=Hp(c,h,v),g=x[0],C=x[1],S=x[2],P=qp(g,C,S),L=P[0],B=P[1],_=P[2];return[L,B,_,n.length>3?n[3]:1]},ul=zp,Vp=y.unpack,Up=ul,Wp=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=Vp(n,"hcl").reverse();return Up.apply(void 0,c)},Rp=Wp,Qp=y.unpack,Xp=y.type,cl=D,to=j,Ln=M,fl=jp;to.prototype.lch=function(){return fl(this._rgb)},to.prototype.hcl=function(){return fl(this._rgb).reverse()},cl.lch=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(to,[null].concat(n,["lch"])))},cl.hcl=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(to,[null].concat(n,["hcl"])))},Ln.format.lch=ul,Ln.format.hcl=Rp,["lch","hcl"].forEach(function(n){return Ln.autodetect.push({p:2,test:function(){for(var l=[],c=arguments.length;c--;)l[c]=arguments[c];if(l=Qp(l,n),Xp(l)==="array"&&l.length===3)return n}})});var Jp={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"},dl=Jp,Kp=j,hl=M,Yp=y.type,kr=dl,Zp=Wa,em=Ua;Kp.prototype.name=function(){for(var n=em(this._rgb,"rgb"),l=0,c=Object.keys(kr);l<c.length;l+=1){var h=c[l];if(kr[h]===n)return h.toLowerCase()}return n},hl.format.named=function(n){if(n=n.toLowerCase(),kr[n])return Zp(kr[n]);throw new Error("unknown color name: "+n)},hl.autodetect.push({p:5,test:function(n){for(var l=[],c=arguments.length-1;c-- >0;)l[c]=arguments[c+1];if(!l.length&&Yp(n)==="string"&&kr[n.toLowerCase()])return"named"}});var tm=y.unpack,rm=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=tm(n,"rgb"),h=c[0],v=c[1],x=c[2];return(h<<16)+(v<<8)+x},om=rm,nm=y.type,im=function(n){if(nm(n)=="number"&&n>=0&&n<=16777215){var l=n>>16,c=n>>8&255,h=n&255;return[l,c,h,1]}throw new Error("unknown num color: "+n)},am=im,lm=D,pl=j,ml=M,sm=y.type,um=om;pl.prototype.num=function(){return um(this._rgb)},lm.num=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(pl,[null].concat(n,["num"])))},ml.format.num=am,ml.autodetect.push({p:5,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n.length===1&&sm(n[0])==="number"&&n[0]>=0&&n[0]<=16777215)return"num"}});var cm=D,_n=j,gl=M,bl=y.unpack,vl=y.type,yl=Math.round;_n.prototype.rgb=function(n){return n===void 0&&(n=!0),n===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(yl)},_n.prototype.rgba=function(n){return n===void 0&&(n=!0),this._rgb.slice(0,4).map(function(l,c){return c<3?n===!1?l:yl(l):l})},cm.rgb=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(_n,[null].concat(n,["rgb"])))},gl.format.rgb=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=bl(n,"rgba");return c[3]===void 0&&(c[3]=1),c},gl.autodetect.push({p:3,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=bl(n,"rgba"),vl(n)==="array"&&(n.length===3||n.length===4&&vl(n[3])=="number"&&n[3]>=0&&n[3]<=1))return"rgb"}});var ro=Math.log,fm=function(n){var l=n/100,c,h,v;return l<66?(c=255,h=l<6?0:-155.25485562709179-.44596950469579133*(h=l-2)+104.49216199393888*ro(h),v=l<20?0:-254.76935184120902+.8274096064007395*(v=l-10)+115.67994401066147*ro(v)):(c=351.97690566805693+.114206453784165*(c=l-55)-40.25366309332127*ro(c),h=325.4494125711974+.07943456536662342*(h=l-50)-28.0852963507957*ro(h),v=255),[c,h,v,1]},xl=fm,dm=xl,hm=y.unpack,pm=Math.round,mm=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];for(var c=hm(n,"rgb"),h=c[0],v=c[2],x=1e3,g=4e4,C=.4,S;g-x>C;){S=(g+x)*.5;var P=dm(S);P[2]/P[0]>=v/h?g=S:x=S}return pm(S)},gm=mm,On=D,oo=j,En=M,bm=gm;oo.prototype.temp=oo.prototype.kelvin=oo.prototype.temperature=function(){return bm(this._rgb)},On.temp=On.kelvin=On.temperature=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(oo,[null].concat(n,["temp"])))},En.format.temp=En.format.kelvin=En.format.temperature=xl;var vm=y.unpack,jn=Math.cbrt,ym=Math.pow,xm=Math.sign,wm=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=vm(n,"rgb"),h=c[0],v=c[1],x=c[2],g=[Dn(h/255),Dn(v/255),Dn(x/255)],C=g[0],S=g[1],P=g[2],L=jn(.4122214708*C+.5363325363*S+.0514459929*P),B=jn(.2119034982*C+.6806995451*S+.1073969566*P),_=jn(.0883024619*C+.2817188376*S+.6299787005*P);return[.2104542553*L+.793617785*B-.0040720468*_,1.9779984951*L-2.428592205*B+.4505937099*_,.0259040371*L+.7827717662*B-.808675766*_]},wl=wm;function Dn(n){var l=Math.abs(n);return l<.04045?n/12.92:(xm(n)||1)*ym((l+.055)/1.055,2.4)}var km=y.unpack,no=Math.pow,Cm=Math.sign,Sm=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];n=km(n,"lab");var c=n[0],h=n[1],v=n[2],x=no(c+.3963377774*h+.2158037573*v,3),g=no(c-.1055613458*h-.0638541728*v,3),C=no(c-.0894841775*h-1.291485548*v,3);return[255*Fn(4.0767416621*x-3.3077115913*g+.2309699292*C),255*Fn(-1.2684380046*x+2.6097574011*g-.3413193965*C),255*Fn(-.0041960863*x-.7034186147*g+1.707614701*C),n.length>3?n[3]:1]},kl=Sm;function Fn(n){var l=Math.abs(n);return l>.0031308?(Cm(n)||1)*(1.055*no(l,1/2.4)-.055):n*12.92}var Mm=y.unpack,Am=y.type,Tm=D,Cl=j,Sl=M,Pm=wl;Cl.prototype.oklab=function(){return Pm(this._rgb)},Tm.oklab=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(Cl,[null].concat(n,["oklab"])))},Sl.format.oklab=kl,Sl.autodetect.push({p:3,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=Mm(n,"oklab"),Am(n)==="array"&&n.length===3)return"oklab"}});var $m=y.unpack,Lm=wl,_m=ll,Om=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];var c=$m(n,"rgb"),h=c[0],v=c[1],x=c[2],g=Lm(h,v,x),C=g[0],S=g[1],P=g[2];return _m(C,S,P)},Em=Om,jm=y.unpack,Dm=sl,Fm=kl,Bm=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];n=jm(n,"lch");var c=n[0],h=n[1],v=n[2],x=Dm(c,h,v),g=x[0],C=x[1],S=x[2],P=Fm(g,C,S),L=P[0],B=P[1],_=P[2];return[L,B,_,n.length>3?n[3]:1]},Im=Bm,Nm=y.unpack,Gm=y.type,Hm=D,Ml=j,Al=M,qm=Em;Ml.prototype.oklch=function(){return qm(this._rgb)},Hm.oklch=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];return new(Function.prototype.bind.apply(Ml,[null].concat(n,["oklch"])))},Al.format.oklch=Im,Al.autodetect.push({p:3,test:function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];if(n=Nm(n,"oklch"),Gm(n)==="array"&&n.length===3)return"oklch"}});var Tl=j,zm=y.type;Tl.prototype.alpha=function(n,l){return l===void 0&&(l=!1),n!==void 0&&zm(n)==="number"?l?(this._rgb[3]=n,this):new Tl([this._rgb[0],this._rgb[1],this._rgb[2],n],"rgb"):this._rgb[3]};var Vm=j;Vm.prototype.clipped=function(){return this._rgb._clipped||!1};var Et=j,Um=eo;Et.prototype.darken=function(n){n===void 0&&(n=1);var l=this,c=l.lab();return c[0]-=Um.Kn*n,new Et(c,"lab").alpha(l.alpha(),!0)},Et.prototype.brighten=function(n){return n===void 0&&(n=1),this.darken(-n)},Et.prototype.darker=Et.prototype.darken,Et.prototype.brighter=Et.prototype.brighten;var Wm=j;Wm.prototype.get=function(n){var l=n.split("."),c=l[0],h=l[1],v=this[c]();if(h){var x=c.indexOf(h)-(c.substr(0,2)==="ok"?2:0);if(x>-1)return v[x];throw new Error("unknown channel "+h+" in mode "+c)}else return v};var Qt=j,Rm=y.type,Qm=Math.pow,Xm=1e-7,Jm=20;Qt.prototype.luminance=function(n){if(n!==void 0&&Rm(n)==="number"){if(n===0)return new Qt([0,0,0,this._rgb[3]],"rgb");if(n===1)return new Qt([255,255,255,this._rgb[3]],"rgb");var l=this.luminance(),c="rgb",h=Jm,v=function(g,C){var S=g.interpolate(C,.5,c),P=S.luminance();return Math.abs(n-P)<Xm||!h--?S:P>n?v(g,S):v(S,C)},x=(l>n?v(new Qt([0,0,0]),this):v(this,new Qt([255,255,255]))).rgb();return new Qt(x.concat([this._rgb[3]]))}return Km.apply(void 0,this._rgb.slice(0,3))};var Km=function(n,l,c){return n=Bn(n),l=Bn(l),c=Bn(c),.2126*n+.7152*l+.0722*c},Bn=function(n){return n/=255,n<=.03928?n/12.92:Qm((n+.055)/1.055,2.4)},Oe={},Pl=j,$l=y.type,io=Oe,Ll=function(n,l,c){c===void 0&&(c=.5);for(var h=[],v=arguments.length-3;v-- >0;)h[v]=arguments[v+3];var x=h[0]||"lrgb";if(!io[x]&&!h.length&&(x=Object.keys(io)[0]),!io[x])throw new Error("interpolation mode "+x+" is not defined");return $l(n)!=="object"&&(n=new Pl(n)),$l(l)!=="object"&&(l=new Pl(l)),io[x](n,l,c).alpha(n.alpha()+c*(l.alpha()-n.alpha()))},_l=j,Ym=Ll;_l.prototype.mix=_l.prototype.interpolate=function(n,l){l===void 0&&(l=.5);for(var c=[],h=arguments.length-2;h-- >0;)c[h]=arguments[h+2];return Ym.apply(void 0,[this,n,l].concat(c))};var Ol=j;Ol.prototype.premultiply=function(n){n===void 0&&(n=!1);var l=this._rgb,c=l[3];return n?(this._rgb=[l[0]*c,l[1]*c,l[2]*c,c],this):new Ol([l[0]*c,l[1]*c,l[2]*c,c],"rgb")};var In=j,Zm=eo;In.prototype.saturate=function(n){n===void 0&&(n=1);var l=this,c=l.lch();return c[1]+=Zm.Kn*n,c[1]<0&&(c[1]=0),new In(c,"lch").alpha(l.alpha(),!0)},In.prototype.desaturate=function(n){return n===void 0&&(n=1),this.saturate(-n)};var El=j,jl=y.type;El.prototype.set=function(n,l,c){c===void 0&&(c=!1);var h=n.split("."),v=h[0],x=h[1],g=this[v]();if(x){var C=v.indexOf(x)-(v.substr(0,2)==="ok"?2:0);if(C>-1){if(jl(l)=="string")switch(l.charAt(0)){case"+":g[C]+=+l;break;case"-":g[C]+=+l;break;case"*":g[C]*=+l.substr(1);break;case"/":g[C]/=+l.substr(1);break;default:g[C]=+l}else if(jl(l)==="number")g[C]=l;else throw new Error("unsupported value for Color.set");var S=new El(g,v);return c?(this._rgb=S._rgb,this):S}throw new Error("unknown channel "+x+" in mode "+v)}else return g};var eg=j,tg=function(n,l,c){var h=n._rgb,v=l._rgb;return new eg(h[0]+c*(v[0]-h[0]),h[1]+c*(v[1]-h[1]),h[2]+c*(v[2]-h[2]),"rgb")};Oe.rgb=tg;var rg=j,Nn=Math.sqrt,Xt=Math.pow,og=function(n,l,c){var h=n._rgb,v=h[0],x=h[1],g=h[2],C=l._rgb,S=C[0],P=C[1],L=C[2];return new rg(Nn(Xt(v,2)*(1-c)+Xt(S,2)*c),Nn(Xt(x,2)*(1-c)+Xt(P,2)*c),Nn(Xt(g,2)*(1-c)+Xt(L,2)*c),"rgb")};Oe.lrgb=og;var ng=j,ig=function(n,l,c){var h=n.lab(),v=l.lab();return new ng(h[0]+c*(v[0]-h[0]),h[1]+c*(v[1]-h[1]),h[2]+c*(v[2]-h[2]),"lab")};Oe.lab=ig;var Dl=j,Jt=function(n,l,c,h){var v,x,g,C;h==="hsl"?(g=n.hsl(),C=l.hsl()):h==="hsv"?(g=n.hsv(),C=l.hsv()):h==="hcg"?(g=n.hcg(),C=l.hcg()):h==="hsi"?(g=n.hsi(),C=l.hsi()):h==="lch"||h==="hcl"?(h="hcl",g=n.hcl(),C=l.hcl()):h==="oklch"&&(g=n.oklch().reverse(),C=l.oklch().reverse());var S,P,L,B,_,G;(h.substr(0,1)==="h"||h==="oklch")&&(v=g,S=v[0],L=v[1],_=v[2],x=C,P=x[0],B=x[1],G=x[2]);var N,Q,Z,re;return!isNaN(S)&&!isNaN(P)?(P>S&&P-S>180?re=P-(S+360):P<S&&S-P>180?re=P+360-S:re=P-S,Q=S+c*re):isNaN(S)?isNaN(P)?Q=Number.NaN:(Q=P,(_==1||_==0)&&h!="hsv"&&(N=B)):(Q=S,(G==1||G==0)&&h!="hsv"&&(N=L)),N===void 0&&(N=L+c*(B-L)),Z=_+c*(G-_),h==="oklch"?new Dl([Z,N,Q],h):new Dl([Q,N,Z],h)},ag=Jt,Fl=function(n,l,c){return ag(n,l,c,"lch")};Oe.lch=Fl,Oe.hcl=Fl;var lg=j,sg=function(n,l,c){var h=n.num(),v=l.num();return new lg(h+c*(v-h),"num")};Oe.num=sg;var ug=Jt,cg=function(n,l,c){return ug(n,l,c,"hcg")};Oe.hcg=cg;var fg=Jt,dg=function(n,l,c){return fg(n,l,c,"hsi")};Oe.hsi=dg;var hg=Jt,pg=function(n,l,c){return hg(n,l,c,"hsl")};Oe.hsl=pg;var mg=Jt,gg=function(n,l,c){return mg(n,l,c,"hsv")};Oe.hsv=gg;var bg=j,vg=function(n,l,c){var h=n.oklab(),v=l.oklab();return new bg(h[0]+c*(v[0]-h[0]),h[1]+c*(v[1]-h[1]),h[2]+c*(v[2]-h[2]),"oklab")};Oe.oklab=vg;var yg=Jt,xg=function(n,l,c){return yg(n,l,c,"oklch")};Oe.oklch=xg;var Gn=j,wg=y.clip_rgb,Hn=Math.pow,qn=Math.sqrt,zn=Math.PI,Bl=Math.cos,Il=Math.sin,kg=Math.atan2,Cg=function(n,l,c){l===void 0&&(l="lrgb"),c===void 0&&(c=null);var h=n.length;c||(c=Array.from(new Array(h)).map(function(){return 1}));var v=h/c.reduce(function(Q,Z){return Q+Z});if(c.forEach(function(Q,Z){c[Z]*=v}),n=n.map(function(Q){return new Gn(Q)}),l==="lrgb")return Sg(n,c);for(var x=n.shift(),g=x.get(l),C=[],S=0,P=0,L=0;L<g.length;L++)if(g[L]=(g[L]||0)*c[0],C.push(isNaN(g[L])?0:c[0]),l.charAt(L)==="h"&&!isNaN(g[L])){var B=g[L]/180*zn;S+=Bl(B)*c[0],P+=Il(B)*c[0]}var _=x.alpha()*c[0];n.forEach(function(Q,Z){var re=Q.get(l);_+=Q.alpha()*c[Z+1];for(var se=0;se<g.length;se++)if(!isNaN(re[se]))if(C[se]+=c[Z+1],l.charAt(se)==="h"){var ke=re[se]/180*zn;S+=Bl(ke)*c[Z+1],P+=Il(ke)*c[Z+1]}else g[se]+=re[se]*c[Z+1]});for(var G=0;G<g.length;G++)if(l.charAt(G)==="h"){for(var N=kg(P/C[G],S/C[G])/zn*180;N<0;)N+=360;for(;N>=360;)N-=360;g[G]=N}else g[G]=g[G]/C[G];return _/=h,new Gn(g,l).alpha(_>.99999?1:_,!0)},Sg=function(n,l){for(var c=n.length,h=[0,0,0,0],v=0;v<n.length;v++){var x=n[v],g=l[v]/c,C=x._rgb;h[0]+=Hn(C[0],2)*g,h[1]+=Hn(C[1],2)*g,h[2]+=Hn(C[2],2)*g,h[3]+=C[3]*g}return h[0]=qn(h[0]),h[1]=qn(h[1]),h[2]=qn(h[2]),h[3]>.9999999&&(h[3]=1),new Gn(wg(h))},Ie=D,Kt=y.type,Mg=Math.pow,Vn=function(n){var l="rgb",c=Ie("#ccc"),h=0,v=[0,1],x=[],g=[0,0],C=!1,S=[],P=!1,L=0,B=1,_=!1,G={},N=!0,Q=1,Z=function(O){if(O=O||["#fff","#000"],O&&Kt(O)==="string"&&Ie.brewer&&Ie.brewer[O.toLowerCase()]&&(O=Ie.brewer[O.toLowerCase()]),Kt(O)==="array"){O.length===1&&(O=[O[0],O[0]]),O=O.slice(0);for(var U=0;U<O.length;U++)O[U]=Ie(O[U]);x.length=0;for(var K=0;K<O.length;K++)x.push(K/(O.length-1))}return _e(),S=O},re=function(O){if(C!=null){for(var U=C.length-1,K=0;K<U&&O>=C[K];)K++;return K-1}return 0},se=function(O){return O},ke=function(O){return O},xe=function(O,U){var K,X;if(U==null&&(U=!1),isNaN(O)||O===null)return c;if(U)X=O;else if(C&&C.length>2){var Ce=re(O);X=Ce/(C.length-2)}else B!==L?X=(O-L)/(B-L):X=1;X=ke(X),U||(X=se(X)),Q!==1&&(X=Mg(X,Q)),X=g[0]+X*(1-g[0]-g[1]),X=Math.min(1,Math.max(0,X));var pe=Math.floor(X*1e4);if(N&&G[pe])K=G[pe];else{if(Kt(S)==="array")for(var oe=0;oe<x.length;oe++){var ue=x[oe];if(X<=ue){K=S[oe];break}if(X>=ue&&oe===x.length-1){K=S[oe];break}if(X>ue&&X<x[oe+1]){X=(X-ue)/(x[oe+1]-ue),K=Ie.interpolate(S[oe],S[oe+1],X,l);break}}else Kt(S)==="function"&&(K=S(X));N&&(G[pe]=K)}return K},_e=function(){return G={}};Z(n);var te=function(O){var U=Ie(xe(O));return P&&U[P]?U[P]():U};return te.classes=function(O){if(O!=null){if(Kt(O)==="array")C=O,v=[O[0],O[O.length-1]];else{var U=Ie.analyze(v);O===0?C=[U.min,U.max]:C=Ie.limits(U,"e",O)}return te}return C},te.domain=function(O){if(!arguments.length)return v;L=O[0],B=O[O.length-1],x=[];var U=S.length;if(O.length===U&&L!==B)for(var K=0,X=Array.from(O);K<X.length;K+=1){var Ce=X[K];x.push((Ce-L)/(B-L))}else{for(var pe=0;pe<U;pe++)x.push(pe/(U-1));if(O.length>2){var oe=O.map(function(ce,de){return de/(O.length-1)}),ue=O.map(function(ce){return(ce-L)/(B-L)});ue.every(function(ce,de){return oe[de]===ce})||(ke=function(ce){if(ce<=0||ce>=1)return ce;for(var de=0;ce>=ue[de+1];)de++;var Ge=(ce-ue[de])/(ue[de+1]-ue[de]),ht=oe[de]+Ge*(oe[de+1]-oe[de]);return ht})}}return v=[L,B],te},te.mode=function(O){return arguments.length?(l=O,_e(),te):l},te.range=function(O,U){return Z(O),te},te.out=function(O){return P=O,te},te.spread=function(O){return arguments.length?(h=O,te):h},te.correctLightness=function(O){return O==null&&(O=!0),_=O,_e(),_?se=function(U){for(var K=xe(0,!0).lab()[0],X=xe(1,!0).lab()[0],Ce=K>X,pe=xe(U,!0).lab()[0],oe=K+(X-K)*U,ue=pe-oe,ce=0,de=1,Ge=20;Math.abs(ue)>.01&&Ge-- >0;)(function(){return Ce&&(ue*=-1),ue<0?(ce=U,U+=(de-U)*.5):(de=U,U+=(ce-U)*.5),pe=xe(U,!0).lab()[0],ue=pe-oe})();return U}:se=function(U){return U},te},te.padding=function(O){return O!=null?(Kt(O)==="number"&&(O=[O,O]),g=O,te):g},te.colors=function(O,U){arguments.length<2&&(U="hex");var K=[];if(arguments.length===0)K=S.slice(0);else if(O===1)K=[te(.5)];else if(O>1){var X=v[0],Ce=v[1]-X;K=Ag(0,O,!1).map(function(de){return te(X+de/(O-1)*Ce)})}else{n=[];var pe=[];if(C&&C.length>2)for(var oe=1,ue=C.length,ce=1<=ue;ce?oe<ue:oe>ue;ce?oe++:oe--)pe.push((C[oe-1]+C[oe])*.5);else pe=v;K=pe.map(function(de){return te(de)})}return Ie[U]&&(K=K.map(function(de){return de[U]()})),K},te.cache=function(O){return O!=null?(N=O,te):N},te.gamma=function(O){return O!=null?(Q=O,te):Q},te.nodata=function(O){return O!=null?(c=Ie(O),te):c},te};function Ag(n,l,c){for(var h=[],v=n<l,x=c?v?l+1:l-1:l,g=n;v?g<x:g>x;v?g++:g--)h.push(g);return h}var Cr=j,Tg=Vn,Pg=function(n){for(var l=[1,1],c=1;c<n;c++){for(var h=[1],v=1;v<=l.length;v++)h[v]=(l[v]||0)+l[v-1];l=h}return l},$g=function(n){var l,c,h,v,x,g,C;if(n=n.map(function(_){return new Cr(_)}),n.length===2)l=n.map(function(_){return _.lab()}),x=l[0],g=l[1],v=function(_){var G=[0,1,2].map(function(N){return x[N]+_*(g[N]-x[N])});return new Cr(G,"lab")};else if(n.length===3)c=n.map(function(_){return _.lab()}),x=c[0],g=c[1],C=c[2],v=function(_){var G=[0,1,2].map(function(N){return(1-_)*(1-_)*x[N]+2*(1-_)*_*g[N]+_*_*C[N]});return new Cr(G,"lab")};else if(n.length===4){var S;h=n.map(function(_){return _.lab()}),x=h[0],g=h[1],C=h[2],S=h[3],v=function(_){var G=[0,1,2].map(function(N){return(1-_)*(1-_)*(1-_)*x[N]+3*(1-_)*(1-_)*_*g[N]+3*(1-_)*_*_*C[N]+_*_*_*S[N]});return new Cr(G,"lab")}}else if(n.length>=5){var P,L,B;P=n.map(function(_){return _.lab()}),B=n.length-1,L=Pg(B),v=function(_){var G=1-_,N=[0,1,2].map(function(Q){return P.reduce(function(Z,re,se){return Z+L[se]*Math.pow(G,B-se)*Math.pow(_,se)*re[Q]},0)});return new Cr(N,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return v},Lg=function(n){var l=$g(n);return l.scale=function(){return Tg(l)},l},Un=D,Ne=function(n,l,c){if(!Ne[c])throw new Error("unknown blend mode "+c);return Ne[c](n,l)},ft=function(n){return function(l,c){var h=Un(c).rgb(),v=Un(l).rgb();return Un.rgb(n(h,v))}},dt=function(n){return function(l,c){var h=[];return h[0]=n(l[0],c[0]),h[1]=n(l[1],c[1]),h[2]=n(l[2],c[2]),h}},_g=function(n){return n},Og=function(n,l){return n*l/255},Eg=function(n,l){return n>l?l:n},jg=function(n,l){return n>l?n:l},Dg=function(n,l){return 255*(1-(1-n/255)*(1-l/255))},Fg=function(n,l){return l<128?2*n*l/255:255*(1-2*(1-n/255)*(1-l/255))},Bg=function(n,l){return 255*(1-(1-l/255)/(n/255))},Ig=function(n,l){return n===255?255:(n=255*(l/255)/(1-n/255),n>255?255:n)};Ne.normal=ft(dt(_g)),Ne.multiply=ft(dt(Og)),Ne.screen=ft(dt(Dg)),Ne.overlay=ft(dt(Fg)),Ne.darken=ft(dt(Eg)),Ne.lighten=ft(dt(jg)),Ne.dodge=ft(dt(Ig)),Ne.burn=ft(dt(Bg));for(var Ng=Ne,Wn=y.type,Gg=y.clip_rgb,Hg=y.TWOPI,qg=Math.pow,zg=Math.sin,Vg=Math.cos,Nl=D,Ug=function(n,l,c,h,v){n===void 0&&(n=300),l===void 0&&(l=-1.5),c===void 0&&(c=1),h===void 0&&(h=1),v===void 0&&(v=[0,1]);var x=0,g;Wn(v)==="array"?g=v[1]-v[0]:(g=0,v=[v,v]);var C=function(S){var P=Hg*((n+120)/360+l*S),L=qg(v[0]+g*S,h),B=x!==0?c[0]+S*x:c,_=B*L*(1-L)/2,G=Vg(P),N=zg(P),Q=L+_*(-.14861*G+1.78277*N),Z=L+_*(-.29227*G-.90649*N),re=L+_*(1.97294*G);return Nl(Gg([Q*255,Z*255,re*255,1]))};return C.start=function(S){return S==null?n:(n=S,C)},C.rotations=function(S){return S==null?l:(l=S,C)},C.gamma=function(S){return S==null?h:(h=S,C)},C.hue=function(S){return S==null?c:(c=S,Wn(c)==="array"?(x=c[1]-c[0],x===0&&(c=c[1])):x=0,C)},C.lightness=function(S){return S==null?v:(Wn(S)==="array"?(v=S,g=S[1]-S[0]):(v=[S,S],g=0),C)},C.scale=function(){return Nl.scale(C)},C.hue(c),C},Wg=j,Rg="0123456789abcdef",Qg=Math.floor,Xg=Math.random,Jg=function(){for(var n="#",l=0;l<6;l++)n+=Rg.charAt(Qg(Xg()*16));return new Wg(n,"hex")},Rn=d,Gl=Math.log,Kg=Math.pow,Yg=Math.floor,Zg=Math.abs,Hl=function(n,l){l===void 0&&(l=null);var c={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Rn(n)==="object"&&(n=Object.values(n)),n.forEach(function(h){l&&Rn(h)==="object"&&(h=h[l]),h!=null&&!isNaN(h)&&(c.values.push(h),c.sum+=h,h<c.min&&(c.min=h),h>c.max&&(c.max=h),c.count+=1)}),c.domain=[c.min,c.max],c.limits=function(h,v){return ql(c,h,v)},c},ql=function(n,l,c){l===void 0&&(l="equal"),c===void 0&&(c=7),Rn(n)=="array"&&(n=Hl(n));var h=n.min,v=n.max,x=n.values.sort(function(Xn,Jn){return Xn-Jn});if(c===1)return[h,v];var g=[];if(l.substr(0,1)==="c"&&(g.push(h),g.push(v)),l.substr(0,1)==="e"){g.push(h);for(var C=1;C<c;C++)g.push(h+C/c*(v-h));g.push(v)}else if(l.substr(0,1)==="l"){if(h<=0)throw new Error("Logarithmic scales are only possible for values > 0");var S=Math.LOG10E*Gl(h),P=Math.LOG10E*Gl(v);g.push(h);for(var L=1;L<c;L++)g.push(Kg(10,S+L/c*(P-S)));g.push(v)}else if(l.substr(0,1)==="q"){g.push(h);for(var B=1;B<c;B++){var _=(x.length-1)*B/c,G=Yg(_);if(G===_)g.push(x[G]);else{var N=_-G;g.push(x[G]*(1-N)+x[G+1]*N)}}g.push(v)}else if(l.substr(0,1)==="k"){var Q,Z=x.length,re=new Array(Z),se=new Array(c),ke=!0,xe=0,_e=null;_e=[],_e.push(h);for(var te=1;te<c;te++)_e.push(h+te/c*(v-h));for(_e.push(v);ke;){for(var O=0;O<c;O++)se[O]=0;for(var U=0;U<Z;U++)for(var K=x[U],X=Number.MAX_VALUE,Ce=void 0,pe=0;pe<c;pe++){var oe=Zg(_e[pe]-K);oe<X&&(X=oe,Ce=pe),se[Ce]++,re[U]=Ce}for(var ue=new Array(c),ce=0;ce<c;ce++)ue[ce]=null;for(var de=0;de<Z;de++)Q=re[de],ue[Q]===null?ue[Q]=x[de]:ue[Q]+=x[de];for(var Ge=0;Ge<c;Ge++)ue[Ge]*=1/se[Ge];ke=!1;for(var ht=0;ht<c;ht++)if(ue[ht]!==_e[ht]){ke=!0;break}_e=ue,xe++,xe>200&&(ke=!1)}for(var pt={},Yt=0;Yt<c;Yt++)pt[Yt]=[];for(var Zt=0;Zt<Z;Zt++)Q=re[Zt],pt[Q].push(x[Zt]);for(var et=[],jt=0;jt<c;jt++)et.push(pt[jt][0]),et.push(pt[jt][pt[jt].length-1]);et=et.sort(function(Xn,Jn){return Xn-Jn}),g.push(et[0]);for(var Sr=1;Sr<et.length;Sr+=2){var Dt=et[Sr];!isNaN(Dt)&&g.indexOf(Dt)===-1&&g.push(Dt)}}return g},zl={analyze:Hl,limits:ql},Vl=j,eb=function(n,l){n=new Vl(n),l=new Vl(l);var c=n.luminance(),h=l.luminance();return c>h?(c+.05)/(h+.05):(h+.05)/(c+.05)},Ul=j,Ze=Math.sqrt,ve=Math.pow,tb=Math.min,rb=Math.max,Wl=Math.atan2,Rl=Math.abs,ao=Math.cos,Ql=Math.sin,ob=Math.exp,Xl=Math.PI,nb=function(n,l,c,h,v){c===void 0&&(c=1),h===void 0&&(h=1),v===void 0&&(v=1);var x=function(Dt){return 360*Dt/(2*Xl)},g=function(Dt){return 2*Xl*Dt/360};n=new Ul(n),l=new Ul(l);var C=Array.from(n.lab()),S=C[0],P=C[1],L=C[2],B=Array.from(l.lab()),_=B[0],G=B[1],N=B[2],Q=(S+_)/2,Z=Ze(ve(P,2)+ve(L,2)),re=Ze(ve(G,2)+ve(N,2)),se=(Z+re)/2,ke=.5*(1-Ze(ve(se,7)/(ve(se,7)+ve(25,7)))),xe=P*(1+ke),_e=G*(1+ke),te=Ze(ve(xe,2)+ve(L,2)),O=Ze(ve(_e,2)+ve(N,2)),U=(te+O)/2,K=x(Wl(L,xe)),X=x(Wl(N,_e)),Ce=K>=0?K:K+360,pe=X>=0?X:X+360,oe=Rl(Ce-pe)>180?(Ce+pe+360)/2:(Ce+pe)/2,ue=1-.17*ao(g(oe-30))+.24*ao(g(2*oe))+.32*ao(g(3*oe+6))-.2*ao(g(4*oe-63)),ce=pe-Ce;ce=Rl(ce)<=180?ce:pe<=Ce?ce+360:ce-360,ce=2*Ze(te*O)*Ql(g(ce)/2);var de=_-S,Ge=O-te,ht=1+.015*ve(Q-50,2)/Ze(20+ve(Q-50,2)),pt=1+.045*U,Yt=1+.015*U*ue,Zt=30*ob(-ve((oe-275)/25,2)),et=2*Ze(ve(U,7)/(ve(U,7)+ve(25,7))),jt=-et*Ql(2*g(Zt)),Sr=Ze(ve(de/(c*ht),2)+ve(Ge/(h*pt),2)+ve(ce/(v*Yt),2)+jt*(Ge/(h*pt))*(ce/(v*Yt)));return rb(0,tb(100,Sr))},Jl=j,ib=function(n,l,c){c===void 0&&(c="lab"),n=new Jl(n),l=new Jl(l);var h=n.get(c),v=l.get(c),x=0;for(var g in h){var C=(h[g]||0)-(v[g]||0);x+=C*C}return Math.sqrt(x)},ab=j,lb=function(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];try{return new(Function.prototype.bind.apply(ab,[null].concat(n))),!0}catch{return!1}},Kl=D,Yl=Vn,sb={cool:function(){return Yl([Kl.hsl(180,1,.9),Kl.hsl(250,.7,.4)])},hot:function(){return Yl(["#000","#f00","#ff0","#fff"]).mode("rgb")}},lo={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"]},Qn=0,Zl=Object.keys(lo);Qn<Zl.length;Qn+=1){var es=Zl[Qn];lo[es.toLowerCase()]=lo[es]}var ub=lo,ye=D;ye.average=Cg,ye.bezier=Lg,ye.blend=Ng,ye.cubehelix=Ug,ye.mix=ye.interpolate=Ll,ye.random=Jg,ye.scale=Vn,ye.analyze=zl.analyze,ye.contrast=eb,ye.deltaE=nb,ye.distance=ib,ye.limits=zl.limits,ye.valid=lb,ye.scales=sb,ye.colors=dl,ye.brewer=ub;var cb=ye;return cb})});var Bu=ne(Lo=>{"use strict";b();Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=void 0;var di=$o(zs()),hi=$o(ou()),S0=$o(Ou()),Po=$o(Eu());function $o(e){return e&&e.__esModule?e:{default:e}}function M0(e){if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(e=A0(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(p){throw p},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,u=!1,f;return{s:function(){o=e[Symbol.iterator]()},n:function(){var p=o.next();return i=p.done,p},e:function(p){u=!0,f=p},f:function(){try{!i&&o.return!=null&&o.return()}finally{if(u)throw f}}}}function A0(e,t){if(!!e){if(typeof e=="string")return ju(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 ju(e,t)}}function ju(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 Du(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 T0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Du(Object(r),!0).forEach(function(o){P0(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Du(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function P0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $0={count:5,hueMin:0,hueMax:360,chromaMin:0,chromaMax:100,lightMin:0,lightMax:100,quality:50,samples:800},Fu=function(t,r){for(var o=Number.MAX_SAFE_INTEGER,i=0,u=0;u<t.length;u+=1){var f=t[u],d=Math.sqrt(Math.pow(Math.abs(f[0]-r[0]),2)+Math.pow(Math.abs(f[1]-r[1]),2)+Math.pow(Math.abs(f[2]-r[2]),2));d<o&&(o=d,i=u)}return i},L0=function(t,r){var o=Po.default.lab(t),i=o.hcl(),u=o.rgb(),f=Po.default.rgb(u).lab(),d=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&&f[0]>=t[0]-d&&f[0]<=t[0]+d&&f[1]>=t[1]-d&&f[1]<=t[1]+d&&f[2]>=t[2]-d&&f[2]<=t[2]+d},_0=function(t){for(var r=t.slice(0),o=[r.shift()];r.length>0;){for(var i=o[o.length-1],u=0,f=Number.MIN_SAFE_INTEGER,d=0;d<r.length;d+=1){var p=Math.sqrt(Math.pow(Math.abs(i[0]-r[d][0]),2)+Math.pow(Math.abs(i[1]-r[d][1]),2)+Math.pow(Math.abs(i[2]-r[d][2]),2));p>f&&(f=p,u=d)}o.push(r.splice(u,1)[0])}return o},O0=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=T0({},$0,{},t);if(r.count<=0)return[];r.samples<r.count*3&&(r.samples=Math.ceil(r.count*3));var o=[],i=[],u=new Set,f=Math.ceil(Math.cbrt(r.samples)),d=(r.hueMax-r.hueMin)/f,p=(r.chromaMax-r.chromaMin)/f,m=(r.lightMax-r.lightMin)/f;if(d<=0)throw new Error("hueMax must be greater than hueMin!");if(p<=0)throw new Error("chromaMax must be greater than chromaMin!");if(m<=0)throw new Error("lightMax must be greater than lightMin!");for(var w=r.hueMin+d/2;w<=r.hueMax;w+=d)for(var A=r.chromaMin+p/2;A<=r.chromaMax;A+=p)for(var k=r.lightMin+m/2;k<=r.lightMax;k+=m){var y=Po.default.hcl(w,A,k).lab();L0(y,r)&&u.add(y.toString())}if(u=Array.from(u),u=u.map(function(Ot){return Ot.split(",").map(function(wr){return parseFloat(wr)})}),u.length<r.count)throw new Error("Not enough samples to generate palette, increase sample count.");for(var M=Math.floor(u.length/r.count),T=0;T<u.length&&(o.push(u[T]),i.push([]),!(o.length>=r.count));T+=M);for(var $=1;$<=r.quality;$+=1){for(var F=(0,hi.default)(i),I=(0,hi.default)(u),H=0;H<o.length;H+=1){var j=Fu(I,o[H]);F[H].push(I[j]),I.splice(j,1)}for(var J=0;J<I.length;J+=1){var D=u[J],z=Fu(o,D);F[z].push(u[J])}for(var R=(0,hi.default)(o),le=0;le<F.length;le+=1){var fe=F[le],me=fe.length,be=[],Te=[],ct=[],Ye=M0(fe),yr;try{for(Ye.s();!(yr=Ye.n()).done;){var xr=yr.value;be.push(xr[0]),Te.push(xr[1]),ct.push(xr[2])}}catch(Ot){Ye.e(Ot)}finally{Ye.f()}var yn=di.default.sum(be)/me,xn=di.default.sum(Te)/me,wn=di.default.sum(ct)/me;o[le]=[yn,xn,wn]}if((0,S0.default)(R,o))break}return o=_0(o),o.map(function(Ot){return Po.default.lab(Ot)})},E0=O0;Lo.default=E0});var Nu=ne((P7,RS)=>{RS.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 Gu=ne(($7,QS)=>{QS.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 zu=ne((L7,qu)=>{"use strict";b();function Bt(){var e={};return e.extensions||(e.extensions=Nu()),e.languages||(e.languages=Gu()),e}Bt.extensions=function(t){t=Hu(t);var r=Bt().languages,o=Bt().extensions;return o[t]||o[r[t]]||[t]};Bt.languages=function(t){t=Hu(t);var r=Bt().languages,o=Bt().extensions;return r[t]||r[o[t]]||[t]};function Hu(e){return e.charAt(0)==="."&&(e=e.slice(1)),e.toLowerCase()}qu.exports=Bt});var ea=ne(Je=>{"use strict";b();var E6=Je&&Je.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),j6=Je&&Je.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),D6=Je&&Je.__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)&&E6(t,e,r);return j6(t,e),t};Object.defineProperty(Je,"__esModule",{value:!0});Je.useWindowSize=void 0;var Df=D6(he());function Ff(){return{height:window.innerHeight,width:window.innerWidth}}function F6(){var e=Df.useState(Ff()),t=e[0],r=e[1];return Df.useLayoutEffect(function(){function o(){r(Ff())}return window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[]),t}Je.useWindowSize=F6});var If=ne(gr=>{"use strict";b();Object.defineProperty(gr,"__esModule",{value:!0});gr.useBreakpoints=gr.useBreakpoint=void 0;var Bf=ea();function B6(e){var t=(0,Bf.useWindowSize)().width;return t<e}gr.useBreakpoint=B6;function I6(e){var t=(0,Bf.useWindowSize)().width;return e.map(function(r){return t<r})}gr.useBreakpoints=I6});var Nf=ne(Be=>{"use strict";b();var ta=Be&&Be.__assign||function(){return ta=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},ta.apply(this,arguments)},N6=Be&&Be.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),G6=Be&&Be.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),H6=Be&&Be.__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)&&N6(t,e,r);return G6(t,e),t};Object.defineProperty(Be,"__esModule",{value:!0});Be.useComponentSize=void 0;var un=H6(he());function q6(){var e=un.useState({height:0,width:0}),t=e[0],r=e[1],o=un.useRef(),i=un.useCallback(function(){if(!!o.current){var u=o.current.offsetHeight,f=o.current.offsetWidth;(u!==t.height||f!==t.width)&&r({height:u,width:f})}},[t.height,t.width]);return un.useLayoutEffect(function(){if(!(!o||!o.current)){var u=new ResizeObserver(i);return u.observe(o.current),function(){return u.disconnect()}}},[o,i]),ta({ref:o},t)}Be.useComponentSize=q6});var Gf=ne(at=>{"use strict";b();var z6=at&&at.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),ra=at&&at.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&z6(t,e,r)};Object.defineProperty(at,"__esModule",{value:!0});ra(If(),at);ra(Nf(),at);ra(ea(),at)});b();b();db();var Xd=ee(he());var Aa=ee(Fs()),NM=ee(hb()),GM=ee(pb()),HM=ee(mb()),Jd=ee(Is());b();var It=ee(he());b();var Ns=ee(he());function vo(e){return e.show?s.createElement(s.Fragment,null,e.items.map(t=>{let[r,o]=t,i=Math.round(o*100);return s.createElement(Ns.Fragment,{key:r+o},s.createElement(rt,{title:r,grow:!0},r),s.createElement(Ue,null,i===0?"<1":i,"%"))})):null}b();var gb=q.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 Gs(e){return e.show?s.createElement(gb,{onClick:e.toggle},"+ ",e.items.length," more"):null}b();function Hs({relative:e=!1,collapse:t,toggle:r}){return s.createElement(qs,{relative:e,collapse:t,onClick:r,up:!1},s.createElement(Yn,{display:"inline-block",height:"1.5rem"}))}function yo({relative:e=!1,collapse:t,toggle:r}){return s.createElement(qs,{relative:e,collapse:t,onClick:r,up:!0},s.createElement(Yn,{display:"inline-block",height:"1.5rem"}))}var qs=q.button`
11
+ ${({relative:e,up:t})=>e?"":uo`
12
+ position: absolute;
13
+ right: var(--unit);
14
+ ${t?uo`
15
+ bottom: var(--unit);
16
+ `:uo`
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
+ `;b();var xo=ee(he()),ri=(0,xo.createContext)(null);function We(){let e=(0,xo.useContext)(ri);if(!e)throw new Error("useClickedObject must be used within a ClickedObjectProvider");return e}b();var wo=ee(he()),oi=(0,wo.createContext)(void 0);function Ae(){let e=(0,wo.useContext)(oi);if(!e)throw new Error("useData must be used within a DataContext");return e}b();var Eo=ee(he());b();var tc=ee(Bu());b();b();var j0={color:"#814CCC",url:"https://github.com/trending?l=1C-Enterprise"},D0={color:"#38761D",url:"https://github.com/trending?l=2-Dimensional-Array"},F0={color:"#004289",url:"https://github.com/trending?l=4D"},B0={color:"#E8274B",url:"https://github.com/trending?l=ABAP"},I0={color:"#555e25",url:"https://github.com/trending?l=ABAP-CDS"},N0={color:"#882B0F",url:"https://github.com/trending?l=ActionScript"},G0={color:"#02f88c",url:"https://github.com/trending?l=Ada"},H0={color:"#fa0f00",url:"https://github.com/trending?l=Adobe-Font-Metrics"},q0={color:"#315665",url:"https://github.com/trending?l=Agda"},z0={color:"#B9D9FF",url:"https://github.com/trending?l=AGS-Script"},V0={color:"#34EB6B",url:"https://github.com/trending?l=AIDL"},U0={color:"#3AA2B5",url:"https://github.com/trending?l=AL"},W0={color:"#64C800",url:"https://github.com/trending?l=Alloy"},R0={color:"#0D597F",url:"https://github.com/trending?l=Alpine-Abuild"},Q0={color:"#A89663",url:"https://github.com/trending?l=Altium-Designer"},X0={color:"#E6EFBB",url:"https://github.com/trending?l=AMPL"},J0={color:"#C7D7DC",url:"https://github.com/trending?l=AngelScript"},K0={color:"#A9157E",url:"https://github.com/trending?l=Ant-Build-System"},Y0={color:"#9DC3FF",url:"https://github.com/trending?l=ANTLR"},Z0={color:"#d12127",url:"https://github.com/trending?l=ApacheConf"},ev={color:"#1797c0",url:"https://github.com/trending?l=Apex"},tv={color:"#2ACCA8",url:"https://github.com/trending?l=API-Blueprint"},rv={color:"#5A8164",url:"https://github.com/trending?l=APL"},ov={color:"#0B3D91",url:"https://github.com/trending?l=Apollo-Guidance-Computer"},nv={color:"#101F1F",url:"https://github.com/trending?l=AppleScript"},iv={color:"#aa2afe",url:"https://github.com/trending?l=Arc"},av={color:"#73a0c5",url:"https://github.com/trending?l=AsciiDoc"},lv={color:null,url:"https://github.com/trending?l=ASL"},sv={color:"#9400ff",url:"https://github.com/trending?l=ASP.NET"},uv={color:"#a957b0",url:"https://github.com/trending?l=AspectJ"},cv={color:"#6E4C13",url:"https://github.com/trending?l=Assembly"},fv={color:"#ff5a03",url:"https://github.com/trending?l=Astro"},dv={color:"#ff0000",url:"https://github.com/trending?l=Asymptote"},hv={color:"#1ac620",url:"https://github.com/trending?l=ATS"},pv={color:"#9CC134",url:"https://github.com/trending?l=Augeas"},mv={color:"#6594b9",url:"https://github.com/trending?l=AutoHotkey"},gv={color:"#1C3552",url:"https://github.com/trending?l=AutoIt"},bv={color:"#0040FF",url:"https://github.com/trending?l=Avro-IDL"},vv={color:"#c30e9b",url:"https://github.com/trending?l=Awk"},yv={color:"#FF5000",url:"https://github.com/trending?l=Ballerina"},xv={color:"#ff0000",url:"https://github.com/trending?l=BASIC"},wv={color:"#C1F12E",url:"https://github.com/trending?l=Batchfile"},kv={color:"#a52f4e",url:"https://github.com/trending?l=Beef"},Cv={color:null,url:"https://github.com/trending?l=Befunge"},Sv={color:"#778899",url:"https://github.com/trending?l=BibTeX"},Mv={color:"#519aba",url:"https://github.com/trending?l=Bicep"},Av={color:"#6A463F",url:"https://github.com/trending?l=Bison"},Tv={color:"#00bce4",url:"https://github.com/trending?l=BitBake"},Pv={color:"#f7523f",url:"https://github.com/trending?l=Blade"},$v={color:"#00FFAE",url:"https://github.com/trending?l=BlitzBasic"},Lv={color:"#cd6400",url:"https://github.com/trending?l=BlitzMax"},_v={color:"#12223c",url:"https://github.com/trending?l=Bluespec"},Ov={color:"#d4bec1",url:"https://github.com/trending?l=Boo"},Ev={color:"#c80fa0",url:"https://github.com/trending?l=Boogie"},jv={color:"#2F2530",url:"https://github.com/trending?l=Brainfuck"},Dv={color:"#662D91",url:"https://github.com/trending?l=Brightscript"},Fv={color:"#ffd539",url:"https://github.com/trending?l=Browserslist"},Bv={color:"#555555",url:"https://github.com/trending?l=C"},Iv={color:"#178600",url:"https://github.com/trending?l=Csharp"},Nv={color:"#f34b7d",url:"https://github.com/trending?l=C++"},Gv={color:null,url:"https://github.com/trending?l=C2hs-Haskell"},Hv={color:"#483465",url:"https://github.com/trending?l=Cabal-Config"},qv={color:"#ff4a48",url:"https://github.com/trending?l=Cairo"},zv={color:"#c42727",url:"https://github.com/trending?l=Cap'n-Proto"},Vv={color:null,url:"https://github.com/trending?l=CartoCSS"},Uv={color:"#dfa535",url:"https://github.com/trending?l=Ceylon"},Wv={color:"#8dc63f",url:"https://github.com/trending?l=Chapel"},Rv={color:null,url:"https://github.com/trending?l=Charity"},Qv={color:"#3f8000",url:"https://github.com/trending?l=ChucK"},Xv={color:"#ccccff",url:"https://github.com/trending?l=Cirru"},Jv={color:"#db901e",url:"https://github.com/trending?l=Clarion"},Kv={color:"#5546ff",url:"https://github.com/trending?l=Clarity"},Yv={color:"#6a40fd",url:"https://github.com/trending?l=Classic-ASP"},Zv={color:"#3F85AF",url:"https://github.com/trending?l=Clean"},ey={color:"#E4E6F3",url:"https://github.com/trending?l=Click"},ty={color:"#00A300",url:"https://github.com/trending?l=CLIPS"},ry={color:"#db5855",url:"https://github.com/trending?l=Clojure"},oy={color:"#0d948f",url:"https://github.com/trending?l=Closure-Templates"},ny={color:"#FFA000",url:"https://github.com/trending?l=Cloud-Firestore-Security-Rules"},iy={color:"#DA3434",url:"https://github.com/trending?l=CMake"},ay={color:null,url:"https://github.com/trending?l=COBOL"},ly={color:"#140f46",url:"https://github.com/trending?l=CodeQL"},sy={color:"#244776",url:"https://github.com/trending?l=CoffeeScript"},uy={color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion"},cy={color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion-CFC"},fy={color:"#F1A42B",url:"https://github.com/trending?l=COLLADA"},dy={color:"#3fb68b",url:"https://github.com/trending?l=Common-Lisp"},hy={color:"#B5314C",url:"https://github.com/trending?l=Common-Workflow-Language"},py={color:"#B0CE4E",url:"https://github.com/trending?l=Component-Pascal"},my={color:null,url:"https://github.com/trending?l=Cool"},gy={color:"#d0b68c",url:"https://github.com/trending?l=Coq"},by={color:"#000100",url:"https://github.com/trending?l=Crystal"},vy={color:"#244776",url:"https://github.com/trending?l=CSON"},yy={color:"#1a1a1a",url:"https://github.com/trending?l=Csound"},xy={color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Document"},wy={color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Score"},ky={color:"#563d7c",url:"https://github.com/trending?l=CSS"},Cy={color:"#237346",url:"https://github.com/trending?l=CSV"},Sy={color:"#3A4E3A",url:"https://github.com/trending?l=Cuda"},My={color:"#5886E1",url:"https://github.com/trending?l=CUE"},Ay={color:"#531242",url:"https://github.com/trending?l=Curry"},Ty={color:"#00007a",url:"https://github.com/trending?l=CWeb"},Py={color:null,url:"https://github.com/trending?l=Cycript"},$y={color:"#fedf5b",url:"https://github.com/trending?l=Cython"},Ly={color:"#ba595e",url:"https://github.com/trending?l=D"},_y={color:"#FFEC25",url:"https://github.com/trending?l=Dafny"},Oy={color:"#8eff23",url:"https://github.com/trending?l=Darcs-Patch"},Ey={color:"#00B4AB",url:"https://github.com/trending?l=Dart"},jy={color:"#003a52",url:"https://github.com/trending?l=DataWeave"},Dy={color:"#D70751",url:"https://github.com/trending?l=Debian-Package-Control-File"},Fy={color:"#FBEE96",url:"https://github.com/trending?l=DenizenScript"},By={color:"#dfafff",url:"https://github.com/trending?l=Dhall"},Iy={color:null,url:"https://github.com/trending?l=DIGITAL-Command-Language"},Ny={color:"#aace60",url:"https://github.com/trending?l=DirectX-3D-File"},Gy={color:"#447265",url:"https://github.com/trending?l=DM"},Hy={color:"#384d54",url:"https://github.com/trending?l=Dockerfile"},qy={color:"#cca760",url:"https://github.com/trending?l=Dogescript"},zy={color:null,url:"https://github.com/trending?l=DTrace"},Vy={color:"#6c616e",url:"https://github.com/trending?l=Dylan"},Uy={color:"#ccce35",url:"https://github.com/trending?l=E"},Wy={color:"#2af0ff",url:"https://github.com/trending?l=Earthly"},Ry={color:"#069406",url:"https://github.com/trending?l=Easybuild"},Qy={color:"#913960",url:"https://github.com/trending?l=eC"},Xy={color:"#913960",url:"https://github.com/trending?l=Ecere-Projects"},Jy={color:"#8a1267",url:"https://github.com/trending?l=ECL"},Ky={color:"#001d9d",url:"https://github.com/trending?l=ECLiPSe"},Yy={color:"#fff1f2",url:"https://github.com/trending?l=EditorConfig"},Zy={color:"#4d6977",url:"https://github.com/trending?l=Eiffel"},e1={color:"#a91e50",url:"https://github.com/trending?l=EJS"},t1={color:"#6e4a7e",url:"https://github.com/trending?l=Elixir"},r1={color:"#60B5CC",url:"https://github.com/trending?l=Elm"},o1={color:"#c065db",url:"https://github.com/trending?l=Emacs-Lisp"},n1={color:"#FFF4F3",url:"https://github.com/trending?l=EmberScript"},i1={color:"#a78649",url:"https://github.com/trending?l=EQ"},a1={color:"#B83998",url:"https://github.com/trending?l=Erlang"},l1={color:"#FF790B",url:"https://github.com/trending?l=Euphoria"},s1={color:"#b845fc",url:"https://github.com/trending?l=Fsharp"},u1={color:"#572e30",url:"https://github.com/trending?l=F*"},c1={color:"#636746",url:"https://github.com/trending?l=Factor"},f1={color:"#7b9db4",url:"https://github.com/trending?l=Fancy"},d1={color:"#14253c",url:"https://github.com/trending?l=Fantom"},h1={color:"#c37240",url:"https://github.com/trending?l=Faust"},p1={color:"#fff3d7",url:"https://github.com/trending?l=Fennel"},m1={color:"#FFDDBB",url:"https://github.com/trending?l=FIGlet-Font"},g1={color:"#F6B900",url:"https://github.com/trending?l=Filebench-WML"},b1={color:null,url:"https://github.com/trending?l=Filterscript"},v1={color:"#4aae47",url:"https://github.com/trending?l=fish"},y1={color:"#ffcc33",url:"https://github.com/trending?l=Fluent"},x1={color:"#88ccff",url:"https://github.com/trending?l=FLUX"},w1={color:"#341708",url:"https://github.com/trending?l=Forth"},k1={color:"#4d41b1",url:"https://github.com/trending?l=Fortran"},C1={color:"#4d41b1",url:"https://github.com/trending?l=Fortran-Free-Form"},S1={color:"#867db1",url:"https://github.com/trending?l=FreeBasic"},M1={color:"#0050b2",url:"https://github.com/trending?l=FreeMarker"},A1={color:"#00cafe",url:"https://github.com/trending?l=Frege"},T1={color:"#5f021f",url:"https://github.com/trending?l=Futhark"},P1={color:"#D08CF2",url:"https://github.com/trending?l=G-code"},$1={color:"#71b417",url:"https://github.com/trending?l=Game-Maker-Language"},L1={color:"#FFC766",url:"https://github.com/trending?l=GAML"},_1={color:"#f49a22",url:"https://github.com/trending?l=GAMS"},O1={color:"#0000cc",url:"https://github.com/trending?l=GAP"},E1={color:"#FFCFAB",url:"https://github.com/trending?l=GCC-Machine-Description"},j1={color:null,url:"https://github.com/trending?l=GDB"},D1={color:"#355570",url:"https://github.com/trending?l=GDScript"},F1={color:"#003058",url:"https://github.com/trending?l=GEDCOM"},B1={color:"#701516",url:"https://github.com/trending?l=Gemfile.lock"},I1={color:"#fb855d",url:"https://github.com/trending?l=Genie"},N1={color:"#951531",url:"https://github.com/trending?l=Genshi"},G1={color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Ebuild"},H1={color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Eclass"},q1={color:"#d20b00",url:"https://github.com/trending?l=Gerber-Image"},z1={color:"#5B2063",url:"https://github.com/trending?l=Gherkin"},V1={color:"#F44D27",url:"https://github.com/trending?l=Git-Attributes"},U1={color:"#F44D27",url:"https://github.com/trending?l=Git-Config"},W1={color:"#ffaff3",url:"https://github.com/trending?l=Gleam"},R1={color:"#5686a5",url:"https://github.com/trending?l=GLSL"},Q1={color:"#c1ac7f",url:"https://github.com/trending?l=Glyph"},X1={color:"#f0a9f0",url:"https://github.com/trending?l=Gnuplot"},J1={color:"#00ADD8",url:"https://github.com/trending?l=Go"},K1={color:"#00ADD8",url:"https://github.com/trending?l=Go-Checksums"},Y1={color:"#00ADD8",url:"https://github.com/trending?l=Go-Module"},Z1={color:"#88562A",url:"https://github.com/trending?l=Golo"},ex={color:"#82937f",url:"https://github.com/trending?l=Gosu"},tx={color:"#615f8b",url:"https://github.com/trending?l=Grace"},rx={color:"#02303a",url:"https://github.com/trending?l=Gradle"},ox={color:"#ff0000",url:"https://github.com/trending?l=Grammatical-Framework"},nx={color:"#e10098",url:"https://github.com/trending?l=GraphQL"},ix={color:"#2596be",url:"https://github.com/trending?l=Graphviz-(DOT)"},ax={color:"#4298b8",url:"https://github.com/trending?l=Groovy"},lx={color:"#4298b8",url:"https://github.com/trending?l=Groovy-Server-Pages"},sx={color:"#FF6800",url:"https://github.com/trending?l=GSC"},ux={color:"#878787",url:"https://github.com/trending?l=Hack"},cx={color:"#ece2a9",url:"https://github.com/trending?l=Haml"},fx={color:"#f7931e",url:"https://github.com/trending?l=Handlebars"},dx={color:"#106da9",url:"https://github.com/trending?l=HAProxy"},hx={color:"#0e60e3",url:"https://github.com/trending?l=Harbour"},px={color:"#5e5086",url:"https://github.com/trending?l=Haskell"},mx={color:"#df7900",url:"https://github.com/trending?l=Haxe"},gx={color:null,url:"https://github.com/trending?l=HCL"},bx={color:"#dce200",url:"https://github.com/trending?l=HiveQL"},vx={color:"#aace60",url:"https://github.com/trending?l=HLSL"},yx={color:"#ffefaf",url:"https://github.com/trending?l=HolyC"},xx={color:"#00b171",url:"https://github.com/trending?l=hoon"},wx={color:"#e34c26",url:"https://github.com/trending?l=HTML"},kx={color:"#2e1052",url:"https://github.com/trending?l=HTML+ECR"},Cx={color:"#6e4a7e",url:"https://github.com/trending?l=HTML+EEX"},Sx={color:"#701516",url:"https://github.com/trending?l=HTML+ERB"},Mx={color:"#4f5d95",url:"https://github.com/trending?l=HTML+PHP"},Ax={color:"#512be4",url:"https://github.com/trending?l=HTML+Razor"},Tx={color:"#005C9C",url:"https://github.com/trending?l=HTTP"},Px={color:"#f68712",url:"https://github.com/trending?l=HXML"},$x={color:"#7790B2",url:"https://github.com/trending?l=Hy"},Lx={color:null,url:"https://github.com/trending?l=HyPhy"},_x={color:"#a3522f",url:"https://github.com/trending?l=IDL"},Ox={color:"#b30000",url:"https://github.com/trending?l=Idris"},Ex={color:"#000000",url:"https://github.com/trending?l=Ignore-List"},jx={color:"#0000cc",url:"https://github.com/trending?l=IGOR-Pro"},Dx={color:"#99AAFF",url:"https://github.com/trending?l=ImageJ-Macro"},Fx={color:null,url:"https://github.com/trending?l=Inform-7"},Bx={color:"#d1dbe0",url:"https://github.com/trending?l=INI"},Ix={color:"#264b99",url:"https://github.com/trending?l=Inno-Setup"},Nx={color:"#a9188d",url:"https://github.com/trending?l=Io"},Gx={color:"#078193",url:"https://github.com/trending?l=Ioke"},Hx={color:"#FEFE00",url:"https://github.com/trending?l=Isabelle"},qx={color:"#FEFE00",url:"https://github.com/trending?l=Isabelle-ROOT"},zx={color:"#9EEDFF",url:"https://github.com/trending?l=J"},Vx={color:"#0886a5",url:"https://github.com/trending?l=Janet"},Ux={color:"#b07219",url:"https://github.com/trending?l=JAR-Manifest"},Wx={color:"#d03600",url:"https://github.com/trending?l=Jasmin"},Rx={color:"#b07219",url:"https://github.com/trending?l=Java"},Qx={color:"#2A6277",url:"https://github.com/trending?l=Java-Properties"},Xx={color:"#2A6277",url:"https://github.com/trending?l=Java-Server-Pages"},Jx={color:"#f1e05a",url:"https://github.com/trending?l=JavaScript"},Kx={color:"#f1e05a",url:"https://github.com/trending?l=JavaScript+ERB"},Yx={color:"#15c213",url:"https://github.com/trending?l=Jest-Snapshot"},Zx={color:"#DBCA00",url:"https://github.com/trending?l=JFlex"},e2={color:"#a52a22",url:"https://github.com/trending?l=Jinja"},t2={color:"#56b3cb",url:"https://github.com/trending?l=Jison"},r2={color:"#56b3cb",url:"https://github.com/trending?l=Jison-Lex"},o2={color:"#843179",url:"https://github.com/trending?l=Jolie"},n2={color:"#c7254e",url:"https://github.com/trending?l=jq"},i2={color:"#292929",url:"https://github.com/trending?l=JSON"},a2={color:"#292929",url:"https://github.com/trending?l=JSON-with-Comments"},l2={color:"#267CB9",url:"https://github.com/trending?l=JSON5"},s2={color:"#40d47e",url:"https://github.com/trending?l=JSONiq"},u2={color:"#0c479c",url:"https://github.com/trending?l=JSONLD"},c2={color:"#0064bd",url:"https://github.com/trending?l=Jsonnet"},f2={color:"#a270ba",url:"https://github.com/trending?l=Julia"},d2={color:"#DA5B0B",url:"https://github.com/trending?l=Jupyter-Notebook"},h2={color:"#773b37",url:"https://github.com/trending?l=Kaitai-Struct"},p2={color:"#6f8042",url:"https://github.com/trending?l=KakouneScript"},m2={color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Layout"},g2={color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Legacy-Layout"},b2={color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Schematic"},v2={color:"#A97BFF",url:"https://github.com/trending?l=Kotlin"},y2={color:"#28430A",url:"https://github.com/trending?l=KRL"},x2={color:"#1da6e0",url:"https://github.com/trending?l=kvlang"},w2={color:"#fede06",url:"https://github.com/trending?l=LabVIEW"},k2={color:"#2980B9",url:"https://github.com/trending?l=Lark"},C2={color:"#999999",url:"https://github.com/trending?l=Lasso"},S2={color:"#f2a542",url:"https://github.com/trending?l=Latte"},M2={color:null,url:"https://github.com/trending?l=Lean"},A2={color:"#1d365d",url:"https://github.com/trending?l=Less"},T2={color:"#DBCA00",url:"https://github.com/trending?l=Lex"},P2={color:"#4C3023",url:"https://github.com/trending?l=LFE"},$2={color:"#9ccc7c",url:"https://github.com/trending?l=LilyPond"},L2={color:null,url:"https://github.com/trending?l=Limbo"},_2={color:"#67b8de",url:"https://github.com/trending?l=Liquid"},O2={color:"#315665",url:"https://github.com/trending?l=Literate-Agda"},E2={color:"#244776",url:"https://github.com/trending?l=Literate-CoffeeScript"},j2={color:"#5e5086",url:"https://github.com/trending?l=Literate-Haskell"},D2={color:"#499886",url:"https://github.com/trending?l=LiveScript"},F2={color:"#185619",url:"https://github.com/trending?l=LLVM"},B2={color:null,url:"https://github.com/trending?l=Logos"},I2={color:"#295b9a",url:"https://github.com/trending?l=Logtalk"},N2={color:"#cc9900",url:"https://github.com/trending?l=LOLCODE"},G2={color:"#652B81",url:"https://github.com/trending?l=LookML"},H2={color:null,url:"https://github.com/trending?l=LoomScript"},q2={color:"#3d9970",url:"https://github.com/trending?l=LSL"},z2={color:"#000080",url:"https://github.com/trending?l=Lua"},V2={color:null,url:"https://github.com/trending?l=M"},U2={color:null,url:"https://github.com/trending?l=M4"},W2={color:null,url:"https://github.com/trending?l=M4Sugar"},R2={color:"#d8ffff",url:"https://github.com/trending?l=Macaulay2"},Q2={color:"#427819",url:"https://github.com/trending?l=Makefile"},X2={color:"#7e858d",url:"https://github.com/trending?l=Mako"},J2={color:"#083fa1",url:"https://github.com/trending?l=Markdown"},K2={color:"#42bff2",url:"https://github.com/trending?l=Marko"},Y2={color:"#f97732",url:"https://github.com/trending?l=Mask"},Z2={color:"#dd1100",url:"https://github.com/trending?l=Mathematica"},ew={color:"#e16737",url:"https://github.com/trending?l=MATLAB"},tw={color:"#c4a79c",url:"https://github.com/trending?l=Max"},rw={color:"#00a6a6",url:"https://github.com/trending?l=MAXScript"},ow={color:"#E22837",url:"https://github.com/trending?l=mcfunction"},nw={color:"#ff2b2b",url:"https://github.com/trending?l=Mercury"},iw={color:"#007800",url:"https://github.com/trending?l=Meson"},aw={color:"#8f14e9",url:"https://github.com/trending?l=Metal"},lw={color:null,url:"https://github.com/trending?l=MiniD"},sw={color:"#ff1111",url:"https://github.com/trending?l=MiniYAML"},uw={color:"#02b046",url:"https://github.com/trending?l=Mint"},cw={color:"#c7a938",url:"https://github.com/trending?l=Mirah"},fw={color:"#3d57c3",url:"https://github.com/trending?l=mIRC-Script"},dw={color:"#5EC8DB",url:"https://github.com/trending?l=MLIR"},hw={color:"#de1d31",url:"https://github.com/trending?l=Modelica"},pw={color:"#10253f",url:"https://github.com/trending?l=Modula-2"},mw={color:"#223388",url:"https://github.com/trending?l=Modula-3"},gw={color:null,url:"https://github.com/trending?l=Module-Management-System"},bw={color:null,url:"https://github.com/trending?l=Monkey"},vw={color:null,url:"https://github.com/trending?l=Moocode"},yw={color:"#ff4585",url:"https://github.com/trending?l=MoonScript"},xw={color:"#fbb03b",url:"https://github.com/trending?l=Motoko"},ww={color:"#005daa",url:"https://github.com/trending?l=Motorola-68K-Assembly"},kw={color:"#62A8D6",url:"https://github.com/trending?l=MQL4"},Cw={color:"#4A76B8",url:"https://github.com/trending?l=MQL5"},Sw={color:"#b7e1f4",url:"https://github.com/trending?l=MTML"},Mw={color:null,url:"https://github.com/trending?l=MUF"},Aw={color:"#244963",url:"https://github.com/trending?l=mupad"},Tw={color:"#724b3b",url:"https://github.com/trending?l=Mustache"},Pw={color:null,url:"https://github.com/trending?l=Myghty"},$w={color:"#2d004d",url:"https://github.com/trending?l=nanorc"},Lw={color:null,url:"https://github.com/trending?l=NASL"},_w={color:"#28431f",url:"https://github.com/trending?l=NCL"},Ow={color:"#990000",url:"https://github.com/trending?l=Nearley"},Ew={color:"#3d3c6e",url:"https://github.com/trending?l=Nemerle"},jw={color:"#94B0C7",url:"https://github.com/trending?l=nesC"},Dw={color:"#0aa0ff",url:"https://github.com/trending?l=NetLinx"},Fw={color:"#747faa",url:"https://github.com/trending?l=NetLinx+ERB"},Bw={color:"#ff6375",url:"https://github.com/trending?l=NetLogo"},Iw={color:"#87AED7",url:"https://github.com/trending?l=NewLisp"},Nw={color:"#3ac486",url:"https://github.com/trending?l=Nextflow"},Gw={color:"#009639",url:"https://github.com/trending?l=Nginx"},Hw={color:"#ffc200",url:"https://github.com/trending?l=Nim"},qw={color:"#009917",url:"https://github.com/trending?l=Nit"},zw={color:"#7e7eff",url:"https://github.com/trending?l=Nix"},Vw={color:"#cb3837",url:"https://github.com/trending?l=NPM-Config"},Uw={color:null,url:"https://github.com/trending?l=NSIS"},Ww={color:"#c9df40",url:"https://github.com/trending?l=Nu"},Rw={color:"#9C8AF9",url:"https://github.com/trending?l=NumPy"},Qw={color:"#3d8137",url:"https://github.com/trending?l=Nunjucks"},Xw={color:"#111522",url:"https://github.com/trending?l=NWScript"},Jw={color:"#438eff",url:"https://github.com/trending?l=Objective-C"},Kw={color:"#6866fb",url:"https://github.com/trending?l=Objective-C++"},Yw={color:"#ff0c5a",url:"https://github.com/trending?l=Objective-J"},Zw={color:"#424893",url:"https://github.com/trending?l=ObjectScript"},e5={color:"#3be133",url:"https://github.com/trending?l=OCaml"},t5={color:"#60AFFE",url:"https://github.com/trending?l=Odin"},r5={color:"#cabbff",url:"https://github.com/trending?l=Omgrofl"},o5={color:"#b0b77e",url:"https://github.com/trending?l=ooc"},n5={color:null,url:"https://github.com/trending?l=Opa"},i5={color:"#f7ede0",url:"https://github.com/trending?l=Opal"},a5={color:"#7d9199",url:"https://github.com/trending?l=Open-Policy-Agent"},l5={color:"#ed2e2d",url:"https://github.com/trending?l=OpenCL"},s5={color:"#5ce600",url:"https://github.com/trending?l=OpenEdge-ABL"},u5={color:"#AA70FF",url:"https://github.com/trending?l=OpenQASM"},c5={color:null,url:"https://github.com/trending?l=OpenRC-runscript"},f5={color:"#e5cd45",url:"https://github.com/trending?l=OpenSCAD"},d5={color:"#77aa99",url:"https://github.com/trending?l=Org"},h5={color:null,url:"https://github.com/trending?l=Ox"},p5={color:"#cdd0e3",url:"https://github.com/trending?l=Oxygene"},m5={color:"#fab738",url:"https://github.com/trending?l=Oz"},g5={color:"#7055b5",url:"https://github.com/trending?l=P4"},b5={color:"#cc0000",url:"https://github.com/trending?l=Pan"},v5={color:"#6600cc",url:"https://github.com/trending?l=Papyrus"},y5={color:"#f3ca0a",url:"https://github.com/trending?l=Parrot"},x5={color:null,url:"https://github.com/trending?l=Parrot-Assembly"},w5={color:null,url:"https://github.com/trending?l=Parrot-Internal-Representation"},k5={color:"#E3F171",url:"https://github.com/trending?l=Pascal"},C5={color:"#dbb284",url:"https://github.com/trending?l=Pawn"},S5={color:"#234d6b",url:"https://github.com/trending?l=PEG.js"},M5={color:"#C76F5B",url:"https://github.com/trending?l=Pep8"},A5={color:"#0298c3",url:"https://github.com/trending?l=Perl"},T5={color:"#4F5D95",url:"https://github.com/trending?l=PHP"},P5={color:"#6067af",url:"https://github.com/trending?l=PicoLisp"},$5={color:"#fcd7de",url:"https://github.com/trending?l=PigLatin"},L5={color:"#005390",url:"https://github.com/trending?l=Pike"},_5={color:"#336790",url:"https://github.com/trending?l=PLpgSQL"},O5={color:"#dad8d8",url:"https://github.com/trending?l=PLSQL"},E5={color:"#d80074",url:"https://github.com/trending?l=PogoScript"},j5={color:null,url:"https://github.com/trending?l=Pony"},D5={color:"#dc3a0c",url:"https://github.com/trending?l=PostCSS"},F5={color:"#da291c",url:"https://github.com/trending?l=PostScript"},B5={color:"#6bac65",url:"https://github.com/trending?l=POV-Ray-SDL"},I5={color:"#8f0f8d",url:"https://github.com/trending?l=PowerBuilder"},N5={color:"#012456",url:"https://github.com/trending?l=PowerShell"},G5={color:"#0c344b",url:"https://github.com/trending?l=Prisma"},H5={color:"#0096D8",url:"https://github.com/trending?l=Processing"},q5={color:"#3B2F63",url:"https://github.com/trending?l=Procfile"},z5={color:"#74283c",url:"https://github.com/trending?l=Prolog"},V5={color:"#de0000",url:"https://github.com/trending?l=Promela"},U5={color:"#7fa2a7",url:"https://github.com/trending?l=Propeller-Spin"},W5={color:"#a86454",url:"https://github.com/trending?l=Pug"},R5={color:"#302B6D",url:"https://github.com/trending?l=Puppet"},Q5={color:"#5a6986",url:"https://github.com/trending?l=PureBasic"},X5={color:"#1D222D",url:"https://github.com/trending?l=PureScript"},J5={color:"#3572A5",url:"https://github.com/trending?l=Python"},K5={color:"#3572A5",url:"https://github.com/trending?l=Python-console"},Y5={color:"#3572A5",url:"https://github.com/trending?l=Python-traceback"},Z5={color:"#0040cd",url:"https://github.com/trending?l=q"},ek={color:"#fed659",url:"https://github.com/trending?l=Qsharp"},tk={color:null,url:"https://github.com/trending?l=QMake"},rk={color:"#44a51c",url:"https://github.com/trending?l=QML"},ok={color:"#00b841",url:"https://github.com/trending?l=Qt-Script"},nk={color:"#882233",url:"https://github.com/trending?l=Quake"},ik={color:"#198CE7",url:"https://github.com/trending?l=R"},ak={color:"#3c5caa",url:"https://github.com/trending?l=Racket"},lk={color:"#9d5200",url:"https://github.com/trending?l=Ragel"},sk={color:"#0000fb",url:"https://github.com/trending?l=Raku"},uk={color:"#77d9fb",url:"https://github.com/trending?l=RAML"},ck={color:"#fffaa0",url:"https://github.com/trending?l=Rascal"},fk={color:"#701516",url:"https://github.com/trending?l=RDoc"},dk={color:null,url:"https://github.com/trending?l=REALbasic"},hk={color:"#ff5847",url:"https://github.com/trending?l=Reason"},pk={color:"#358a5b",url:"https://github.com/trending?l=Rebol"},mk={color:"#0673ba",url:"https://github.com/trending?l=Record-Jar"},gk={color:"#f50000",url:"https://github.com/trending?l=Red"},bk={color:null,url:"https://github.com/trending?l=Redcode"},vk={color:"#009a00",url:"https://github.com/trending?l=Regular-Expression"},yk={color:"#ff7f7f",url:"https://github.com/trending?l=Ren'Py"},xk={color:null,url:"https://github.com/trending?l=RenderScript"},wk={color:"#ed5051",url:"https://github.com/trending?l=ReScript"},kk={color:"#141414",url:"https://github.com/trending?l=reStructuredText"},Ck={color:"#d90e09",url:"https://github.com/trending?l=REXX"},Sk={color:"#2D54CB",url:"https://github.com/trending?l=Ring"},Mk={color:"#A71E49",url:"https://github.com/trending?l=Riot"},Ak={color:"#198ce7",url:"https://github.com/trending?l=RMarkdown"},Tk={color:"#00c0b5",url:"https://github.com/trending?l=RobotFramework"},Pk={color:"#ecdebe",url:"https://github.com/trending?l=Roff"},$k={color:"#ecdebe",url:"https://github.com/trending?l=Roff-Manpage"},Lk={color:"#cc0088",url:"https://github.com/trending?l=Rouge"},_k={color:null,url:"https://github.com/trending?l=RPC"},Ok={color:"#2BDE21",url:"https://github.com/trending?l=RPGLE"},Ek={color:"#701516",url:"https://github.com/trending?l=Ruby"},jk={color:"#665a4e",url:"https://github.com/trending?l=RUNOFF"},Dk={color:"#dea584",url:"https://github.com/trending?l=Rust"},Fk={color:null,url:"https://github.com/trending?l=Sage"},Bk={color:"#646464",url:"https://github.com/trending?l=SaltStack"},Ik={color:"#B34936",url:"https://github.com/trending?l=SAS"},Nk={color:"#a53b70",url:"https://github.com/trending?l=Sass"},Gk={color:"#c22d40",url:"https://github.com/trending?l=Scala"},Hk={color:"#bd181a",url:"https://github.com/trending?l=Scaml"},qk={color:"#1e4aec",url:"https://github.com/trending?l=Scheme"},zk={color:"#ca0f21",url:"https://github.com/trending?l=Scilab"},Vk={color:"#c6538c",url:"https://github.com/trending?l=SCSS"},Uk={color:"#64b970",url:"https://github.com/trending?l=sed"},Wk={color:"#0579aa",url:"https://github.com/trending?l=Self"},Rk={color:"#222c37",url:"https://github.com/trending?l=ShaderLab"},Qk={color:"#89e051",url:"https://github.com/trending?l=Shell"},Xk={color:"#cecfcb",url:"https://github.com/trending?l=ShellCheck-Config"},Jk={color:null,url:"https://github.com/trending?l=ShellSession"},Kk={color:"#120F14",url:"https://github.com/trending?l=Shen"},Yk={color:null,url:"https://github.com/trending?l=Sieve"},Zk={color:"#64E6AD",url:"https://github.com/trending?l=Singularity"},eC={color:"#007eff",url:"https://github.com/trending?l=Slash"},tC={color:"#003fa2",url:"https://github.com/trending?l=Slice"},rC={color:"#2b2b2b",url:"https://github.com/trending?l=Slim"},oC={color:null,url:"https://github.com/trending?l=Smali"},nC={color:"#596706",url:"https://github.com/trending?l=Smalltalk"},iC={color:"#f0c040",url:"https://github.com/trending?l=Smarty"},aC={color:"#c94949",url:"https://github.com/trending?l=SmPL"},lC={color:null,url:"https://github.com/trending?l=SMT"},sC={color:"#AA6746",url:"https://github.com/trending?l=Solidity"},uC={color:"#f69e1d",url:"https://github.com/trending?l=SourcePawn"},cC={color:"#0C4597",url:"https://github.com/trending?l=SPARQL"},fC={color:"#3F3F3F",url:"https://github.com/trending?l=SQF"},dC={color:"#e38c00",url:"https://github.com/trending?l=SQL"},hC={color:"#e38c00",url:"https://github.com/trending?l=SQLPL"},pC={color:"#800000",url:"https://github.com/trending?l=Squirrel"},mC={color:"#348a34",url:"https://github.com/trending?l=SRecode-Template"},gC={color:"#b2011d",url:"https://github.com/trending?l=Stan"},bC={color:"#dc566d",url:"https://github.com/trending?l=Standard-ML"},vC={color:"#76d275",url:"https://github.com/trending?l=Starlark"},yC={color:"#1a5f91",url:"https://github.com/trending?l=Stata"},xC={color:"#3fb34f",url:"https://github.com/trending?l=StringTemplate"},wC={color:"#ff6347",url:"https://github.com/trending?l=Stylus"},kC={color:"#9e0101",url:"https://github.com/trending?l=SubRip-Text"},CC={color:"#2fcc9f",url:"https://github.com/trending?l=SugarSS"},SC={color:"#46390b",url:"https://github.com/trending?l=SuperCollider"},MC={color:"#ff3e00",url:"https://github.com/trending?l=Svelte"},AC={color:"#ff9900",url:"https://github.com/trending?l=SVG"},TC={color:"#F05138",url:"https://github.com/trending?l=Swift"},PC={color:null,url:"https://github.com/trending?l=SWIG"},$C={color:"#DAE1C2",url:"https://github.com/trending?l=SystemVerilog"},LC={color:"#e4cc98",url:"https://github.com/trending?l=Tcl"},_C={color:null,url:"https://github.com/trending?l=Tcsh"},OC={color:"#00004c",url:"https://github.com/trending?l=Terra"},EC={color:"#3D6117",url:"https://github.com/trending?l=TeX"},jC={color:"#ffe7ac",url:"https://github.com/trending?l=Textile"},DC={color:"#df66e4",url:"https://github.com/trending?l=TextMate-Properties"},FC={color:"#D12127",url:"https://github.com/trending?l=Thrift"},BC={color:"#A0AA87",url:"https://github.com/trending?l=TI-Program"},IC={color:"#4b0079",url:"https://github.com/trending?l=TLA"},NC={color:"#9c4221",url:"https://github.com/trending?l=TOML"},GC={color:"#e38c00",url:"https://github.com/trending?l=TSQL"},HC={color:"#237346",url:"https://github.com/trending?l=TSV"},qC={color:"#2b7489",url:"https://github.com/trending?l=TSX"},zC={color:"#cf142b",url:"https://github.com/trending?l=Turing"},VC={color:"#c1d026",url:"https://github.com/trending?l=Twig"},UC={color:"#0178b8",url:"https://github.com/trending?l=TXL"},WC={color:"#2b7489",url:"https://github.com/trending?l=TypeScript"},RC={color:"#4e3617",url:"https://github.com/trending?l=Unified-Parallel-C"},QC={color:"#222c37",url:"https://github.com/trending?l=Unity3D-Asset"},XC={color:null,url:"https://github.com/trending?l=Unix-Assembly"},JC={color:"#9933cc",url:"https://github.com/trending?l=Uno"},KC={color:"#a54c4d",url:"https://github.com/trending?l=UnrealScript"},YC={color:"#ccccee",url:"https://github.com/trending?l=UrWeb"},ZC={color:"#4f87c4",url:"https://github.com/trending?l=V"},eS={color:"#fbe5cd",url:"https://github.com/trending?l=Vala"},tS={color:"#f26025",url:"https://github.com/trending?l=Valve-Data-Format"},rS={color:"#867db1",url:"https://github.com/trending?l=VBA"},oS={color:"#15dcdc",url:"https://github.com/trending?l=VBScript"},nS={color:"#148AA8",url:"https://github.com/trending?l=VCL"},iS={color:"#b2b7f8",url:"https://github.com/trending?l=Verilog"},aS={color:"#adb2cb",url:"https://github.com/trending?l=VHDL"},lS={color:"#199f4b",url:"https://github.com/trending?l=Vim-Help-File"},sS={color:"#199f4b",url:"https://github.com/trending?l=Vim-Script"},uS={color:"#199f4b",url:"https://github.com/trending?l=Vim-Snippet"},cS={color:"#945db7",url:"https://github.com/trending?l=Visual-Basic-.NET"},fS={color:"#1F1F1F",url:"https://github.com/trending?l=Volt"},dS={color:"#41b883",url:"https://github.com/trending?l=Vue"},hS={color:"#2980b9",url:"https://github.com/trending?l=Vyper"},pS={color:"#42f1f4",url:"https://github.com/trending?l=wdl"},mS={color:"#5b70bd",url:"https://github.com/trending?l=Web-Ontology-Language"},gS={color:"#04133b",url:"https://github.com/trending?l=WebAssembly"},bS={color:null,url:"https://github.com/trending?l=WebIDL"},vS={color:"#fc5757",url:"https://github.com/trending?l=Wikitext"},yS={color:"#52d5ff",url:"https://github.com/trending?l=Windows-Registry-Entries"},xS={color:"#7582D1",url:"https://github.com/trending?l=wisp"},wS={color:"#ff0000",url:"https://github.com/trending?l=Witcher-Script"},kS={color:"#a23738",url:"https://github.com/trending?l=Wollok"},CS={color:"#f7e43f",url:"https://github.com/trending?l=World-of-Warcraft-Addon-Data"},SS={color:"#4B6BEF",url:"https://github.com/trending?l=X10"},MS={color:"#403a40",url:"https://github.com/trending?l=xBase"},AS={color:"#99DA07",url:"https://github.com/trending?l=XC"},TS={color:"#0060ac",url:"https://github.com/trending?l=XML"},PS={color:"#0060ac",url:"https://github.com/trending?l=XML-Property-List"},$S={color:"#81bd41",url:"https://github.com/trending?l=Xojo"},LS={color:"#285EEF",url:"https://github.com/trending?l=Xonsh"},_S={color:null,url:"https://github.com/trending?l=XProc"},OS={color:"#5232e7",url:"https://github.com/trending?l=XQuery"},ES={color:null,url:"https://github.com/trending?l=XS"},jS={color:"#EB8CEB",url:"https://github.com/trending?l=XSLT"},DS={color:"#24255d",url:"https://github.com/trending?l=Xtend"},FS={color:"#4B6C4B",url:"https://github.com/trending?l=Yacc"},BS={color:"#cb171e",url:"https://github.com/trending?l=YAML"},IS={color:"#220000",url:"https://github.com/trending?l=YARA"},NS={color:"#32AB90",url:"https://github.com/trending?l=YASnippet"},GS={color:"#0d665e",url:"https://github.com/trending?l=ZAP"},HS={color:null,url:"https://github.com/trending?l=Zeek"},qS={color:"#00BCD1",url:"https://github.com/trending?l=ZenScript"},zS={color:"#118f9e",url:"https://github.com/trending?l=Zephir"},VS={color:"#ec915c",url:"https://github.com/trending?l=Zig"},US={color:"#dc75e5",url:"https://github.com/trending?l=ZIL"},WS={color:"#d67711",url:"https://github.com/trending?l=Zimpl"},Iu={"1C Enterprise":j0,"2-Dimensional Array":D0,"4D":F0,ABAP:B0,"ABAP CDS":I0,ActionScript:N0,Ada:G0,"Adobe Font Metrics":H0,Agda:q0,"AGS Script":z0,AIDL:V0,AL:U0,Alloy:W0,"Alpine Abuild":R0,"Altium Designer":Q0,AMPL:X0,AngelScript:J0,"Ant Build System":K0,ANTLR:Y0,ApacheConf:Z0,Apex:ev,"API Blueprint":tv,APL:rv,"Apollo Guidance Computer":ov,AppleScript:nv,Arc:iv,AsciiDoc:av,ASL:lv,"ASP.NET":sv,AspectJ:uv,Assembly:cv,Astro:fv,Asymptote:dv,ATS:hv,Augeas:pv,AutoHotkey:mv,AutoIt:gv,"Avro IDL":bv,Awk:vv,Ballerina:yv,BASIC:xv,Batchfile:wv,Beef:kv,Befunge:Cv,BibTeX:Sv,Bicep:Mv,Bison:Av,BitBake:Tv,Blade:Pv,BlitzBasic:$v,BlitzMax:Lv,Bluespec:_v,Boo:Ov,Boogie:Ev,Brainfuck:jv,Brightscript:Dv,Browserslist:Fv,C:Bv,"C#":Iv,"C++":Nv,"C2hs Haskell":Gv,"Cabal Config":Hv,Cairo:qv,"Cap'n Proto":zv,CartoCSS:Vv,Ceylon:Uv,Chapel:Wv,Charity:Rv,ChucK:Qv,Cirru:Xv,Clarion:Jv,Clarity:Kv,"Classic ASP":Yv,Clean:Zv,Click:ey,CLIPS:ty,Clojure:ry,"Closure Templates":oy,"Cloud Firestore Security Rules":ny,CMake:iy,COBOL:ay,CodeQL:ly,CoffeeScript:sy,ColdFusion:uy,"ColdFusion CFC":cy,COLLADA:fy,"Common Lisp":dy,"Common Workflow Language":hy,"Component Pascal":py,Cool:my,Coq:gy,Crystal:by,CSON:vy,Csound:yy,"Csound Document":xy,"Csound Score":wy,CSS:ky,CSV:Cy,Cuda:Sy,CUE:My,Curry:Ay,CWeb:Ty,Cycript:Py,Cython:$y,D:Ly,Dafny:_y,"Darcs Patch":Oy,Dart:Ey,DataWeave:jy,"Debian Package Control File":Dy,DenizenScript:Fy,Dhall:By,"DIGITAL Command Language":Iy,"DirectX 3D File":Ny,DM:Gy,Dockerfile:Hy,Dogescript:qy,DTrace:zy,Dylan:Vy,E:Uy,Earthly:Wy,Easybuild:Ry,eC:Qy,"Ecere Projects":Xy,ECL:Jy,ECLiPSe:Ky,EditorConfig:Yy,Eiffel:Zy,EJS:e1,Elixir:t1,Elm:r1,"Emacs Lisp":o1,EmberScript:n1,EQ:i1,Erlang:a1,Euphoria:l1,"F#":s1,"F*":u1,Factor:c1,Fancy:f1,Fantom:d1,Faust:h1,Fennel:p1,"FIGlet Font":m1,"Filebench WML":g1,Filterscript:b1,fish:v1,Fluent:y1,FLUX:x1,Forth:w1,Fortran:k1,"Fortran Free Form":C1,FreeBasic:S1,FreeMarker:M1,Frege:A1,Futhark:T1,"G-code":P1,"Game Maker Language":$1,GAML:L1,GAMS:_1,GAP:O1,"GCC Machine Description":E1,GDB:j1,GDScript:D1,GEDCOM:F1,"Gemfile.lock":B1,Genie:I1,Genshi:N1,"Gentoo Ebuild":G1,"Gentoo Eclass":H1,"Gerber Image":q1,Gherkin:z1,"Git Attributes":V1,"Git Config":U1,Gleam:W1,GLSL:R1,Glyph:Q1,Gnuplot:X1,Go:J1,"Go Checksums":K1,"Go Module":Y1,Golo:Z1,Gosu:ex,Grace:tx,Gradle:rx,"Grammatical Framework":ox,GraphQL:nx,"Graphviz (DOT)":ix,Groovy:ax,"Groovy Server Pages":lx,GSC:sx,Hack:ux,Haml:cx,Handlebars:fx,HAProxy:dx,Harbour:hx,Haskell:px,Haxe:mx,HCL:gx,HiveQL:bx,HLSL:vx,HolyC:yx,hoon:xx,HTML:wx,"HTML+ECR":kx,"HTML+EEX":Cx,"HTML+ERB":Sx,"HTML+PHP":Mx,"HTML+Razor":Ax,HTTP:Tx,HXML:Px,Hy:$x,HyPhy:Lx,IDL:_x,Idris:Ox,"Ignore List":Ex,"IGOR Pro":jx,"ImageJ Macro":Dx,"Inform 7":Fx,INI:Bx,"Inno Setup":Ix,Io:Nx,Ioke:Gx,Isabelle:Hx,"Isabelle ROOT":qx,J:zx,Janet:Vx,"JAR Manifest":Ux,Jasmin:Wx,Java:Rx,"Java Properties":Qx,"Java Server Pages":Xx,JavaScript:Jx,"JavaScript+ERB":Kx,"Jest Snapshot":Yx,JFlex:Zx,Jinja:e2,Jison:t2,"Jison Lex":r2,Jolie:o2,jq:n2,JSON:i2,"JSON with Comments":a2,JSON5:l2,JSONiq:s2,JSONLD:u2,Jsonnet:c2,Julia:f2,"Jupyter Notebook":d2,"Kaitai Struct":h2,KakouneScript:p2,"KiCad Layout":m2,"KiCad Legacy Layout":g2,"KiCad Schematic":b2,Kotlin:v2,KRL:y2,kvlang:x2,LabVIEW:w2,Lark:k2,Lasso:C2,Latte:S2,Lean:M2,Less:A2,Lex:T2,LFE:P2,LilyPond:$2,Limbo:L2,Liquid:_2,"Literate Agda":O2,"Literate CoffeeScript":E2,"Literate Haskell":j2,LiveScript:D2,LLVM:F2,Logos:B2,Logtalk:I2,LOLCODE:N2,LookML:G2,LoomScript:H2,LSL:q2,Lua:z2,M:V2,M4:U2,M4Sugar:W2,Macaulay2:R2,Makefile:Q2,Mako:X2,Markdown:J2,Marko:K2,Mask:Y2,Mathematica:Z2,MATLAB:ew,Max:tw,MAXScript:rw,mcfunction:ow,Mercury:nw,Meson:iw,Metal:aw,MiniD:lw,MiniYAML:sw,Mint:uw,Mirah:cw,"mIRC Script":fw,MLIR:dw,Modelica:hw,"Modula-2":pw,"Modula-3":mw,"Module Management System":gw,Monkey:bw,Moocode:vw,MoonScript:yw,Motoko:xw,"Motorola 68K Assembly":ww,MQL4:kw,MQL5:Cw,MTML:Sw,MUF:Mw,mupad:Aw,Mustache:Tw,Myghty:Pw,nanorc:$w,NASL:Lw,NCL:_w,Nearley:Ow,Nemerle:Ew,nesC:jw,NetLinx:Dw,"NetLinx+ERB":Fw,NetLogo:Bw,NewLisp:Iw,Nextflow:Nw,Nginx:Gw,Nim:Hw,Nit:qw,Nix:zw,"NPM Config":Vw,NSIS:Uw,Nu:Ww,NumPy:Rw,Nunjucks:Qw,NWScript:Xw,"Objective-C":Jw,"Objective-C++":Kw,"Objective-J":Yw,ObjectScript:Zw,OCaml:e5,Odin:t5,Omgrofl:r5,ooc:o5,Opa:n5,Opal:i5,"Open Policy Agent":a5,OpenCL:l5,"OpenEdge ABL":s5,OpenQASM:u5,"OpenRC runscript":c5,OpenSCAD:f5,Org:d5,Ox:h5,Oxygene:p5,Oz:m5,P4:g5,Pan:b5,Papyrus:v5,Parrot:y5,"Parrot Assembly":x5,"Parrot Internal Representation":w5,Pascal:k5,Pawn:C5,"PEG.js":S5,Pep8:M5,Perl:A5,PHP:T5,PicoLisp:P5,PigLatin:$5,Pike:L5,PLpgSQL:_5,PLSQL:O5,PogoScript:E5,Pony:j5,PostCSS:D5,PostScript:F5,"POV-Ray SDL":B5,PowerBuilder:I5,PowerShell:N5,Prisma:G5,Processing:H5,Procfile:q5,Prolog:z5,Promela:V5,"Propeller Spin":U5,Pug:W5,Puppet:R5,PureBasic:Q5,PureScript:X5,Python:J5,"Python console":K5,"Python traceback":Y5,q:Z5,"Q#":ek,QMake:tk,QML:rk,"Qt Script":ok,Quake:nk,R:ik,Racket:ak,Ragel:lk,Raku:sk,RAML:uk,Rascal:ck,RDoc:fk,REALbasic:dk,Reason:hk,Rebol:pk,"Record Jar":mk,Red:gk,Redcode:bk,"Regular Expression":vk,"Ren'Py":yk,RenderScript:xk,ReScript:wk,reStructuredText:kk,REXX:Ck,Ring:Sk,Riot:Mk,RMarkdown:Ak,RobotFramework:Tk,Roff:Pk,"Roff Manpage":$k,Rouge:Lk,RPC:_k,RPGLE:Ok,Ruby:Ek,RUNOFF:jk,Rust:Dk,Sage:Fk,SaltStack:Bk,SAS:Ik,Sass:Nk,Scala:Gk,Scaml:Hk,Scheme:qk,Scilab:zk,SCSS:Vk,sed:Uk,Self:Wk,ShaderLab:Rk,Shell:Qk,"ShellCheck Config":Xk,ShellSession:Jk,Shen:Kk,Sieve:Yk,Singularity:Zk,Slash:eC,Slice:tC,Slim:rC,Smali:oC,Smalltalk:nC,Smarty:iC,SmPL:aC,SMT:lC,Solidity:sC,SourcePawn:uC,SPARQL:cC,SQF:fC,SQL:dC,SQLPL:hC,Squirrel:pC,"SRecode Template":mC,Stan:gC,"Standard ML":bC,Starlark:vC,Stata:yC,StringTemplate:xC,Stylus:wC,"SubRip Text":kC,SugarSS:CC,SuperCollider:SC,Svelte:MC,SVG:AC,Swift:TC,SWIG:PC,SystemVerilog:$C,Tcl:LC,Tcsh:_C,Terra:OC,TeX:EC,Textile:jC,"TextMate Properties":DC,Thrift:FC,"TI Program":BC,TLA:IC,TOML:NC,TSQL:GC,TSV:HC,TSX:qC,Turing:zC,Twig:VC,TXL:UC,TypeScript:WC,"Unified Parallel C":RC,"Unity3D Asset":QC,"Unix Assembly":XC,Uno:JC,UnrealScript:KC,UrWeb:YC,V:ZC,Vala:eS,"Valve Data Format":tS,VBA:rS,VBScript:oS,VCL:nS,Verilog:iS,VHDL:aS,"Vim Help File":lS,"Vim Script":sS,"Vim Snippet":uS,"Visual Basic .NET":cS,Volt:fS,Vue:dS,Vyper:hS,wdl:pS,"Web Ontology Language":mS,WebAssembly:gS,WebIDL:bS,Wikitext:vS,"Windows Registry Entries":yS,wisp:xS,"Witcher Script":wS,Wollok:kS,"World of Warcraft Addon Data":CS,X10:SS,xBase:MS,XC:AS,XML:TS,"XML Property List":PS,Xojo:$S,Xonsh:LS,XProc:_S,XQuery:OS,XS:ES,XSLT:jS,Xtend:DS,Yacc:FS,YAML:BS,YARA:IS,YASnippet:NS,ZAP:GS,Zeek:HS,ZenScript:qS,Zephir:zS,Zig:VS,ZIL:US,Zimpl:WS};var Vu=ee(zu()),Uu=new Map;for(let[e,t]of Object.entries(Iu))Uu.set(e.toLowerCase(),{...t,lang:e});function Wu(e){let t=Vu.default.languages(e.toLowerCase()),r=[];if(!t)return null;let o=null;for(let i of t){let u=Uu.get(i);if(u){o=u,r.push(o.lang);break}}return o?o.color:null}var pi=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}};b();var Ru=ee(he());var _o=3,Re=class{constructor(t,r){this.color=t;this.weight=r}add(t){this.weight+=t}};function Qu({metricCache:e}){let[t,r]=(0,Ru.useState)(!0),o=Array.from(e.legend).sort(([,i],[,u])=>i.weight<u.weight?1:i.weight>u.weight?-1:0);return o.length===0?null:o.length<=_o+1?s.createElement(mi,{show:!0,items:o}):s.createElement(s.Fragment,null,s.createElement(mi,{show:!0,items:o.slice(0,_o)}),s.createElement(mi,{show:!t,items:o.slice(_o)}),s.createElement(JS,{show:t,items:o.slice(_o),toggle:()=>r(!t)}),s.createElement(yo,{collapse:t,toggle:()=>r(!t)}))}function mi(e){return e.show?s.createElement(s.Fragment,null,e.items.map(t=>{let[r,o]=t;return s.createElement("div",{key:r},s.createElement(Zn,null,s.createElement(bt,{dotColor:o.color}),s.createElement(V,{horizontal:!0}),s.createElement(tr,null,r)),s.createElement(V,null))})):null}var XS=q.div`
33
+ width: fit-content;
34
+ &:hover {
35
+ cursor: pointer;
36
+ }
37
+ `;function JS(e){return e.show?s.createElement(XS,null,s.createElement(Zn,{onClick:e.toggle},e.items.slice(0,14).map(([t,r],o)=>{let i=o===0?0:-10;return s.createElement(bt,{key:`dot${t}`,dotColor:r.color,style:{marginLeft:i}})}),s.createElement(V,{horizontal:!0}),s.createElement(tr,null,e.items.length," more"))):null}function Xu(e,t){var u;let r=e.name.substring(e.name.lastIndexOf(".")+1),o=Wu(r),i=t.legend;o?(i.has(r)?(u=i.get(r))==null||u.add(1):i.set(r,new Re(o,1)),t.colormap.set(e.path,o)):(i.has("Other")||i.set("Other",new Re("grey",0)),t.colormap.set(e.path,"grey"))}b();function Ju(e,t,r){var m,w;let o="red",i="hsl(210, 38%, 85%)",u="teal",f=(w=(m=e.unionedAuthors)==null?void 0:m[r])!=null?w:{},d=0;for(let[,A]of Object.entries(f))d+=A;let p=t.legend;if(d===0){p.set("No authors",new Re(u,0)),t.colormap.set(e.path,u);return}if(!f)throw Error("No unioned authors found");switch(Object.keys(f).length){case 1:p.set("Single author",new Re(o,2)),t.colormap.set(e.path,o);return;default:p.set("Multiple authors",new Re(i,1)),t.colormap.set(e.path,i);return}}b();var gi=class{constructor(t,r){this.min_lightness=50;this.max_lightness=95;this.translater=new pi(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))}};b();function Ku(e){return[{epoch:0,text:Ps(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 Oo(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}b();function Yu(e,t,r,o){var m,w,A,k;let i=(m=t.unionedAuthors)==null?void 0:m[o],u;try{if(!i||(u=Object.entries(i).sort(([y,M],[T,$])=>{if(M===0||$===0||!y||!T)throw Error;return M<$?1:M>$?-1:0}),!u[0]))throw Error}catch{return}let[f]=u[0],d=r.legend,p=(w=e.get(f))!=null?w:"grey";if(r.colormap.set(t.path,p),(A=t.dominantAuthor)==null||A.set(o,u[0]),d.has(f)){(k=d.get(f))==null||k.add(1);return}d.set(f,new Re(p,1))}b();var bi=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 rc={HISTORICAL:"Complete history",BLAME:"Newest version"},or={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 oc(e){let t=KS(e.authors);return[{HISTORICAL:ec(e.commit.tree,Zu(e,"HISTORICAL",t)),BLAME:ec(e.commit.tree,Zu(e,"BLAME",t))},t]}function nc(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 ic(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 KS(e){let t={};for(let u of Object.keys(e))t[u]=0;let r=(0,tc.default)({count:e.length}),o=0,i=new Map;for(let u of e){let f=r[o++].rgb(!0),d=`rgb(${f[0]},${f[1]},${f[2]})`;i.set(u,d)}return i}function ac(e){let t=Number.MAX_VALUE,r=Number.MIN_VALUE;return e.children.forEach(o=>{if(o.type=="blob")o.noCommits>r&&(r=o.noCommits),o.noCommits<t&&(t=o.noCommits);else if(o.type=="tree"){let[i,u]=ac(o);u>r&&(r=u),i<t&&(t=i)}}),[t,r]}function Zu(e,t,r){let o=e.commit,[i,u]=ac(o.tree),f=new gi(i,u),d=new bi(e.authorsUnion.length);return[["FILE_EXTENSION",(p,m)=>{m.legend||(m.legend=new Map),Xu(p,m)}],["SINGLE_AUTHOR",(p,m)=>{m.legend||(m.legend=new Map),Ju(p,m,t)}],["MOST_COMMITS",(p,m)=>{m.legend||(m.legend=[`${i}`,`${u}`,void 0,void 0,f.getColor(i),f.getColor(u)]),f.setColor(p,m)}],["LAST_CHANGED",(p,m)=>{var k,y;let w=e.commit.newestLatestChangeEpoch,A=Ku(w);m.legend||(m.legend=[Oo(A,w,e.commit.oldestLatestChangeEpoch)+1,M=>A[M].text,M=>A[M].color,M=>{var T,$;return($=Oo(A,w,(T=M.lastChangeEpoch)!=null?T:0))!=null?$:-1}]),m.colormap.set(p.path,A[(y=Oo(A,w,(k=p.lastChangeEpoch)!=null?k:0))!=null?y:-1].color)}],["TOP_CONTRIBUTOR",(p,m)=>{p.dominantAuthor||(p.dominantAuthor=new Map),m.legend||(m.legend=new Map),Yu(r,p,m,t)}],["TRUCK_FACTOR",(p,m)=>{m.legend||(m.legend=[Math.floor(Math.log2(e.authorsUnion.length))+1,w=>`${Math.pow(2,w)}`,w=>`hsl(0,75%,${50+w*(40/(Math.floor(Math.log2(e.authorsUnion.length))+1))}%)`,w=>{var A,k;return Math.floor(Math.log2(Object.entries((k=(A=w.unionedAuthors)==null?void 0:A.HISTORICAL)!=null?k:[]).length))}]),d.setColor(p,m)}]]}function ec(e,t){let r=new Map;return lc(e,t,r),r}function lc(e,t,r){var o;for(let i of e.children)switch(i.type){case"tree":lc(i,t,r);break;case"blob":for(let[u,f]of t)r.has(u)||r.set(u,{legend:void 0,colormap:new Map}),f(i,(o=r.get(u))!=null?o:{legend:void 0,colormap:new Map});break}}var vi={BUBBLE_CHART:"Bubble chart",TREE_MAP:"Tree map"},yi=(0,Eo.createContext)(void 0);function Pe(){let e=(0,Eo.useContext)(yi);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e}function vt(){return{metricType:Object.keys(or)[0],chartType:Object.keys(vi)[0],authorshipType:Object.keys(rc)[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")}}}b();var jo=ee(he()),xi=(0,jo.createContext)(void 0);function Qe(){let e=(0,jo.useContext)(xi);if(!e)throw new Error("useSearch must be used within a PathProvider");return e}b();var cc={},sc=new WeakMap,uc={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"}]},fc=class{constructor(t,r){r=Object.assign({units:"metric",precision:1,locale:void 0},cc,r),sc.set(this,r),Object.assign(uc,r.customUnits);let o=t<0?"-":"";t=Math.abs(t);let i=uc[r.units];if(i){let u=i.find(f=>t>=f.from&&t<f.to);if(u){let f=new Intl.NumberFormat(r.locale,{style:"decimal",minimumFractionDigits:r.precision,maximumFractionDigits:r.precision}),d=u.from===0?o+t:o+f.format(t/u.from);this.value=d,this.unit=u.unit,this.long=u.long}else this.value=o+t,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${r.units}`)}toString(){let t=sc.get(this);return t.toStringFn?t.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function dc(e,t){return new fc(e,t)}dc.defaultOptions=function(e){cc=e};var hc=dc;b();b();ts();var $r=ee(he());var Do=$r.forwardRef(function(e,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return $r.createElement(co,so({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),$r.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"}))});Do.displayName="ArrowUp";b();ts();var Lr=ee(he());var nr=Lr.forwardRef(function(e,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return Lr.createElement(co,so({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),Lr.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"}))});nr.displayName="EyeClosed";function YS(e){let t=e.lastIndexOf("/"),r=e.lastIndexOf("\\");return t!==-1?e.slice(0,t):r!==-1?e.slice(0,r):e}function bc(e){var k;let{setClickedObject:t,clickedObject:r}=We(),o=er(),{authorshipType:i}=Pe(),{state:u}=mt(),{setPath:f,path:d}=Qe(),{analyzerData:p}=Ae(),m=(0,It.useRef)(!1);if((0,It.useEffect)(()=>{m.current&&(t(null),m.current=!1)},[r,t,u]),(0,It.useEffect)(()=>{t(y=>ZS(p.commit.tree,y))},[p,t]),!r)return null;let w=r.type==="blob",A=_s(r.name.split("."));return s.createElement(ge,null,s.createElement(go,{onClick:()=>t(null)}),s.createElement(po,{title:r.name},r.name),s.createElement(V,{xl:!0}),s.createElement(s3,null,w?s.createElement(s.Fragment,null,s.createElement(i3,{size:r.sizeInBytes,isBinary:r.isBinary}),s.createElement(t3,{clickedBlob:r}),s.createElement(r3,{clickedBlob:r})):s.createElement(e3,{clickedTree:r}),s.createElement(o3,{path:r.path})),s.createElement(V,null),w?s.createElement(pc,{authors:(k=r.unionedAuthors)==null?void 0:k[i]}):s.createElement(pc,{authors:c3(r,i)}),s.createElement(V,{xl:!0}),s.createElement(Me,{onClick:e.showUnionAuthorsModal},s.createElement(ho,{display:"inline-block",height:"1rem"}),"Merge duplicate users"),s.createElement(V,null),w?s.createElement(s.Fragment,null,s.createElement(tt,{method:"post",action:o.pathname},s.createElement("input",{type:"hidden",name:"ignore",value:r.path}),s.createElement(Me,{type:"submit",disabled:u!=="idle",onClick:()=>{m.current=!0}},s.createElement(nr,{display:"inline-block",height:"1rem"}),"Hide this file")),r.name.includes(".")?s.createElement(s.Fragment,null,s.createElement(V,null),s.createElement(tt,{method:"post",action:o.pathname},s.createElement("input",{type:"hidden",name:"ignore",value:`*.${A}`}),s.createElement(Me,{type:"submit",disabled:u!=="idle",onClick:()=>{m.current=!0}},s.createElement(nr,{display:"inline-block",height:"1rem"}),s.createElement("span",null,"Hide .",A," files")))):null,s.createElement(V,null),s.createElement(tt,{method:"post",action:o.pathname},s.createElement("input",{type:"hidden",name:"open",value:r.path}),s.createElement(Me,{disabled:u!=="idle"},s.createElement(us,{display:"inline-block",height:"1rem"}),"Open file"))):s.createElement(tt,{method:"post",action:o.pathname},s.createElement("input",{type:"hidden",name:"ignore",value:r.path}),s.createElement(Me,{type:"submit",disabled:u!=="idle",onClick:()=>{m.current=!0,f(YS(d))}},s.createElement(nr,{display:"inline-block",height:"1rem"}),"Hide this folder")))}function ZS(e,t){if(t===null)return null;let r=e,o=t.path.split("/");for(let i=0;i<o.length;i++)for(let u of r.children){if(u.hash===t.hash)return u;if(u.type==="tree"){let f=u.name.split("/");if(f[0]===o[i]){r=u,i+=f.length-1;break}}}return r}function e3(e){let t=e.clickedTree.children.filter(o=>o.type==="tree").length,r=e.clickedTree.children.length-t;return s.createElement(s.Fragment,null,s.createElement(rt,{grow:!0},"Files"),s.createElement(Ue,null,r),s.createElement(rt,{grow:!0},"Folders"),s.createElement(Ue,null,t))}function t3(e){return s.createElement(s.Fragment,null,s.createElement(rt,{grow:!0},"Commits"),s.createElement(Ue,null,e.clickedBlob.noCommits>0?e.clickedBlob.noCommits:0))}function r3(e){return s.createElement(s.Fragment,null,s.createElement(rt,{grow:!0},"Last changed"),s.createElement(Ue,null,Ts(e.clickedBlob.lastChangeEpoch)))}function o3(e){return s.createElement(s.Fragment,null,s.createElement(rt,null,"Located at"),s.createElement(Ue,{title:e.path},e.path))}var n3=q.span`
38
+ opacity: 0.5;
39
+ `;function i3(e){var r;let t=hc((r=e.size)!=null?r:0);return s.createElement(s.Fragment,null,s.createElement(rt,{grow:!0},"Size"),s.createElement(Ue,null,t.value," ",t.unit," ",s.createElement(n3,null,e.isBinary?s.createElement(s.Fragment,null,s.createElement("br",null),"(binary file)"):null)))}var a3=q.div`
40
+ display: flex;
41
+ flex-direction: row;
42
+ justify-content: space-between;
43
+ `,Fo=2;function pc(e){let[t,r]=(0,It.useState)(!0),o=Object.entries(l3(e.authors)).sort((i,u)=>i[1]<u[1]?1:-1);return o.length<=Fo+1?s.createElement(s.Fragment,null,s.createElement(mc,null,"Author distribution"),s.createElement(V,null),s.createElement(gc,null,o.length>0&&!u3(e.authors)?s.createElement(vo,{show:!0,items:o}):s.createElement("p",null,"No authors found"))):s.createElement(s.Fragment,null,s.createElement(a3,null,s.createElement(mc,null,"Author distribution"),s.createElement(Hs,{relative:!0,collapse:t,toggle:()=>r(!t)})),s.createElement(V,{xs:!0}),s.createElement(gc,null,s.createElement(vo,{show:!0,items:o.slice(0,Fo)}),s.createElement(vo,{show:!t,items:o.slice(Fo)}),s.createElement(V,null),s.createElement(Gs,{show:t,items:o.slice(Fo),toggle:()=>r(!t)})))}function l3(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,u])=>{let f=u/t;return{...o,[i]:f}},{})}var mc=q.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
+ `,gc=q.div`
49
+ display: grid;
50
+ grid-template-columns: 1fr auto;
51
+ gap: calc(0.5 * var(--unit)) calc(var(--unit) * 3);
52
+ & > ${Ue} {
53
+ text-align: right;
54
+ }
55
+ `,s3=q.div`
56
+ display: grid;
57
+ grid-template-columns: auto 1fr;
58
+ gap: var(--unit) calc(var(--unit) * 3);
59
+ `;function u3(e){if(!e)return!0;let t=Object.entries(e);for(let[,r]of t)if(r>0)return!1;return!0}function c3(e,t){let r={};o(e);function o(i){var u,f;for(let d of i.children)if(d.type==="blob"){let p=(u=d.unionedAuthors)==null?void 0:u[t];if(!p)throw Error("No unioned authors");for(let[m,w]of Object.entries(p))r[m]=((f=r[m])!=null?f:0)+w}else d.type==="tree"&&o(d)}return r}b();var _r=ee(he());var f3="Git Truck",d3="Analyzing | Git Truck";function vc(){var p,m;let{analyzerData:e,repo:t}=Ae(),r=mt(),o=er(),i=rs(),[u,f]=(0,_r.useState)(!1);(0,_r.useEffect)(()=>{document.title=u?d3:f3},[u]);let d=w=>{f(!0),i(["",t.name,w].join("/"))};return(0,_r.useEffect)(()=>{r.state==="idle"&&f(!1)},[r.state]),s.createElement(ge,null,s.createElement(Cs,null,s.createElement(p3,{to:"..",title:"See all repositories"},s.createElement(fo,{display:"inline-block",height:"1rem"}),s.createElement(h3,null,"See more repositories"))),s.createElement(V,null),s.createElement(po,null,t.name),s.createElement(V,null),s.createElement(js,{key:t.currentHead,disabled:u,onChange:w=>d(w.target.value),defaultValue:e.branch,headGroups:t.refs,analyzedHeads:t.analyzedHeads}),s.createElement(V,null),s.createElement("strong",null,"Analyzed: "),s.createElement("span",null,$s(e.lastRunEpoch)),s.createElement(V,null),s.createElement("strong",null,"As of commit: "),s.createElement("span",{title:(p=e.commit.message)!=null?p:"No commit message"},e.commit.hash.slice(0,7)),s.createElement(V,null),s.createElement("strong",null,"Files analyzed: "),s.createElement("span",null,(m=e.commit.fileCount)!=null?m:0),s.createElement(V,{xl:!0}),s.createElement(tt,{method:"post",action:o.pathname,onSubmit:()=>{f(!0)}},s.createElement("input",{type:"hidden",name:"refresh",value:"true"}),s.createElement(Me,{disabled:r.state!=="idle"},s.createElement(fs,{display:"inline-block",height:"1rem"}),u?"Analyzing...":"Reanalyze")))}var h3=q.p`
60
+ margin-left: var(--unit);
61
+ `,p3=q(Mr)`
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
+ `;b();var m3=q.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
+ `,g3=q(tt)`
78
+ width: calc(2 * var(--unit));
79
+ `,b3=q(mo)`
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 v3(e){if(!e.includes("/"))return e;let t=e.split("/");return t[t.length-1]}function yc(){let e=er(),[t,r]=rr(!1),o=mt(),{analyzerData:i}=Ae();return s.createElement(ge,null,s.createElement(gt,null,"Hidden files (",i.hiddenFiles.length,")"),s.createElement(V,null),s.createElement(yo,{collapse:t,toggle:()=>r(!t)}),t?null:s.createElement("div",null,i.hiddenFiles.map(u=>s.createElement(m3,{key:u,title:u},s.createElement(g3,{method:"post",action:e.pathname},s.createElement("input",{type:"hidden",name:"unignore",value:u}),s.createElement(b3,{title:"Show file",disabled:o.state!=="idle"},s.createElement(ps,{display:"inline-block",height:"1rem",id:"eyeslash"}),s.createElement(hs,{display:"inline-block",height:"1rem",id:"eye"}))),s.createElement(bs,null,v3(u))))))}b();b();var Bo=ee(he()),wi=(0,Bo.createContext)(void 0);function ot(){let e=(0,Bo.useContext)(wi);if(!e)throw new Error("useMetrics must be used within a MetricsContext");return e}b();b();var ir="red";function xc({metricCache:e}){let[t,r,o,i]=e.legend,u=100/t,f=!1,d=0,{clickedObject:p}=We();return(p==null?void 0:p.type)=="blob"&&(f=!0,d=u/2+u*i(p)),s.createElement(s.Fragment,null,s.createElement("div",{style:{display:"flex",flexDirection:"row"}},[...Array(t).fill(1)].map((m,w)=>t>=4?s.createElement(x3,{key:`legend-${w}`,width:u,color:o(w),text:r(w),top:w%2===0}):s.createElement(w3,{key:`legend-${w}`,width:u,color:o(w),text:r(w)}))),s.createElement(y3,{visible:f,position:d,height:t>=4?50:10},"\u25B2"))}var y3=q.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 x3({width:e,color:t,text:r,top:o}){return o?s.createElement("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`}},s.createElement("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"}},r),s.createElement("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"}},"/"),s.createElement("div",{style:{backgroundColor:t,height:"20px"}}),s.createElement("div",{style:{textAlign:"left",height:"40px"}})):s.createElement("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`}},s.createElement("div",{style:{textAlign:"left",height:"32px"}}),s.createElement("div",{style:{backgroundColor:t,height:"20px"}}),s.createElement("div",{style:{textAlign:"left",height:"20px",marginTop:"-7px"}},"\\"),s.createElement("div",{style:{textAlign:"left",height:"20px",marginTop:"-4px"}},r))}function w3({width:e,color:t,text:r}){return s.createElement("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`}},s.createElement("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"}},r),s.createElement("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"}},"/"),s.createElement("div",{style:{backgroundColor:t,height:"20px"}}))}b();function wc({metricCache:e}){var w,A;let[t,r,o,i,u,f]=e.legend,{clickedObject:d}=We(),p=ki((A=e.colormap.get((w=d==null?void 0:d.path)!=null?w:""))!=null?A:""),m=-1;if(p!==-1){let k=ki(u),y=ki(f);m=(p-k)/(y-k)}return s.createElement(s.Fragment,null,s.createElement(ws,null,s.createElement(tr,{title:o},t),s.createElement(tr,{title:i},r)),s.createElement(xs,{min:u,max:f}),s.createElement(k3,{visible:m!==-1,position:m},"\u25B2"))}function ki(e){var i,u;let r=(i=/%,((?:\d|\.)+?)%\)/gm.exec(e))==null?void 0:i.entries();return r==null||r.next(),parseFloat((u=r==null?void 0:r.next().value[1])!=null?u:"-1")}var k3=q.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 C3=q(ge)`
107
+ position: sticky;
108
+ bottom: 0;
109
+ `;function kc(e){var f;let{metricType:t,authorshipType:r}=Pe(),[o]=ot(),i=(f=o[r].get(t))!=null?f:void 0;if(i===void 0)return null;let u=s.createElement(s.Fragment,null);switch(ic(t)){case"POINT":u=s.createElement(Qu,{metricCache:i});break;case"GRADIENT":u=s.createElement(wc,{metricCache:i});break;case"SEGMENTS":u=s.createElement(xc,{metricCache:i});break}return s.createElement(C3,null,s.createElement(gt,null,or[t]),s.createElement(V,null),s.createElement(Ft,null,nc(t,r)),s.createElement(V,{lg:!0}),t==="TOP_CONTRIBUTOR"||t==="SINGLE_AUTHOR"?s.createElement(s.Fragment,null,s.createElement(Me,{onClick:e.showUnionAuthorsModal},s.createElement(ho,{display:"inline-block",height:"1rem"}),"Merge duplicate users"),s.createElement(V,{lg:!0})):null,u)}b();b();b();b();b();b();var Si=Er(),W=e=>Or(e,Si),Mi=Er();W.write=e=>Or(e,Mi);var Io=Er();W.onStart=e=>Or(e,Io);var Ai=Er();W.onFrame=e=>Or(e,Ai);var Ti=Er();W.onFinish=e=>Or(e,Ti);var lr=[];W.setTimeout=(e,t)=>{let r=W.now()+t,o=()=>{let u=lr.findIndex(f=>f.cancel==o);~u&&lr.splice(u,1),xt-=~u?1:0},i={time:r,handler:e,cancel:o};return lr.splice(Cc(r),0,i),xt+=1,Sc(),i};var Cc=e=>~(~lr.findIndex(t=>t.time>e)||~lr.length);W.cancel=e=>{Io.delete(e),Ai.delete(e),Si.delete(e),Mi.delete(e),Ti.delete(e)};W.sync=e=>{Ci=!0,W.batchedUpdates(e),Ci=!1};W.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function o(...i){t=i,W.onStart(r)}return o.handler=e,o.cancel=()=>{Io.delete(r),t=null},o};var Pi=typeof window<"u"?window.requestAnimationFrame:()=>{};W.use=e=>Pi=e;W.now=typeof performance<"u"?()=>performance.now():Date.now;W.batchedUpdates=e=>e();W.catch=console.error;W.frameLoop="always";W.advance=()=>{W.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ac()};var yt=-1,xt=0,Ci=!1;function Or(e,t){Ci?(t.delete(e),e(0)):(t.add(e),Sc())}function Sc(){yt<0&&(yt=0,W.frameLoop!=="demand"&&Pi(Mc))}function S3(){yt=-1}function Mc(){~yt&&(Pi(Mc),W.batchedUpdates(Ac))}function Ac(){let e=yt;yt=W.now();let t=Cc(yt);t&&(Tc(lr.splice(0,t),r=>r.handler()),xt-=t),Io.flush(),Si.flush(e?Math.min(64,yt-e):16.667),Ai.flush(),Mi.flush(),Ti.flush(),xt||S3()}function Er(){let e=new Set,t=e;return{add(r){xt+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return xt-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,xt-=t.size,Tc(t,o=>o(r)&&e.add(o)),xt+=e.size,t=e)}}}function Tc(e,t){e.forEach(r=>{try{t(r)}catch(o){W.catch(o)}})}var zo=ee(he()),qe=ee(he());function Vo(){}var Ec=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),E={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 Xe(e,t){if(E.arr(e)){if(!E.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 Ee(e,t,r){if(E.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 $e=e=>E.und(e)?[]:E.arr(e)?e:[e];function cr(e,t){if(e.size){let r=Array.from(e);e.clear(),Y(r,t)}}var fr=(e,...t)=>cr(e,r=>r(...t)),jc=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ji,Dc,wt=null,Fc=!1,Di=Vo,M3=e=>{e.to&&(Dc=e.to),e.now&&(W.now=e.now),e.colors!==void 0&&(wt=e.colors),e.skipAnimation!=null&&(Fc=e.skipAnimation),e.createStringInterpolator&&(ji=e.createStringInterpolator),e.requestAnimationFrame&&W.use(e.requestAnimationFrame),e.batchedUpdates&&(W.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Di=e.willAdvance),e.frameLoop&&(W.frameLoop=e.frameLoop)},je=Object.freeze({__proto__:null,get createStringInterpolator(){return ji},get to(){return Dc},get colors(){return wt},get skipAnimation(){return Fc},get willAdvance(){return Di},assign:M3}),jr=new Set,De=[],$i=[],Ho=0,dr={get idle(){return!jr.size&&!De.length},start(e){Ho>e.priority?(jr.add(e),W.onStart(A3)):(Bc(e),W(Oi))},advance:Oi,sort(e){if(Ho)W.onFrame(()=>dr.sort(e));else{let t=De.indexOf(e);~t&&(De.splice(t,1),Ic(e))}},clear(){De=[],jr.clear()}};function A3(){jr.forEach(Bc),jr.clear(),W(Oi)}function Bc(e){De.includes(e)||Ic(e)}function Ic(e){De.splice(T3(De,t=>t.priority>e.priority),0,e)}function Oi(e){let t=$i;for(let r=0;r<De.length;r++){let o=De[r];Ho=o.priority,o.idle||(Di(o),o.advance(e),o.idle||t.push(o))}return Ho=0,$i=De,$i.length=0,De=t,De.length>0}function T3(e,t){let r=e.findIndex(t);return r<0?e.length:r}var Nc={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},He="[-+]?\\d*\\.?\\d+",qo=He+"%";function Uo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var P3=new RegExp("rgb"+Uo(He,He,He)),$3=new RegExp("rgba"+Uo(He,He,He,He)),L3=new RegExp("hsl"+Uo(He,qo,qo)),_3=new RegExp("hsla"+Uo(He,qo,qo,He)),O3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,E3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,j3=/^#([0-9a-fA-F]{6})$/,D3=/^#([0-9a-fA-F]{8})$/;function F3(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=j3.exec(e))?parseInt(t[1]+"ff",16)>>>0:wt&&wt[e]!==void 0?wt[e]:(t=P3.exec(e))?(sr(t[1])<<24|sr(t[2])<<16|sr(t[3])<<8|255)>>>0:(t=$3.exec(e))?(sr(t[1])<<24|sr(t[2])<<16|sr(t[3])<<8|Lc(t[4]))>>>0:(t=O3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=D3.exec(e))?parseInt(t[1],16)>>>0:(t=E3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=L3.exec(e))?(Pc($c(t[1]),No(t[2]),No(t[3]))|255)>>>0:(t=_3.exec(e))?(Pc($c(t[1]),No(t[2]),No(t[3]))|Lc(t[4]))>>>0:null}function Li(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 Pc(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,i=2*r-o,u=Li(i,o,e+1/3),f=Li(i,o,e),d=Li(i,o,e-1/3);return Math.round(u*255)<<24|Math.round(f*255)<<16|Math.round(d*255)<<8}function sr(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function $c(e){return(parseFloat(e)%360+360)%360/360}function Lc(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function No(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function _c(e){let t=F3(e);if(t===null)return e;t=t||0;let r=(t&4278190080)>>>24,o=(t&16711680)>>>16,i=(t&65280)>>>8,u=(t&255)/255;return`rgba(${r}, ${o}, ${i}, ${u})`}var kt=(e,t,r)=>{if(E.fun(e))return e;if(E.arr(e))return kt({range:e,output:t,extrapolate:r});if(E.str(e.output[0]))return ji(e);let o=e,i=o.output,u=o.range||[0,1],f=o.extrapolateLeft||o.extrapolate||"extend",d=o.extrapolateRight||o.extrapolate||"extend",p=o.easing||(m=>m);return m=>{let w=I3(m,u);return B3(m,u[w],u[w+1],i[w],i[w+1],p,f,d,o.map)}};function B3(e,t,r,o,i,u,f,d,p){let m=p?p(e):e;if(m<t){if(f==="identity")return m;f==="clamp"&&(m=t)}if(m>r){if(d==="identity")return m;d==="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=u(m),o===-1/0?m=-m:i===1/0?m=m+o:m=m*(i-o)+o,m)}function I3(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function Ei(){return Ei=Object.assign||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},Ei.apply(this,arguments)}var ur=Symbol.for("FluidValue.get"),Nt=Symbol.for("FluidValue.observers"),Le=e=>Boolean(e&&e[ur]),Se=e=>e&&e[ur]?e[ur]():e,Fi=e=>e[Nt]||null;function N3(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Gt(e,t){let r=e[Nt];r&&r.forEach(o=>{N3(o,t)})}var Dr=class{constructor(t){if(this[ur]=void 0,this[Nt]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");G3(this,t)}},G3=(e,t)=>Gc(e,ur,t);function nt(e,t){if(e[ur]){let r=e[Nt];r||Gc(e,Nt,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Ct(e,t){let r=e[Nt];if(r&&r.has(t)){let o=r.size-1;o?r.delete(t):e[Nt]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var Gc=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Go=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,H3=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oc=new RegExp(`(${Go.source})(%|[a-z]+)`,"i"),q3=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Hc=e=>{let[t,r]=z3(e);if(!t||jc())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&&Wo.test(r))return Hc(r);if(r)return r}return e},z3=e=>{let t=Wo.exec(e);if(!t)return[,];let[,r,o]=t;return[r,o]},_i,V3=(e,t,r,o,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(o)}, ${i})`,Ro=e=>{_i||(_i=wt?new RegExp(`(${Object.keys(wt).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(u=>Se(u).replace(Wo,Hc).replace(H3,_c).replace(_i,_c)),r=t.map(u=>u.match(Go).map(Number)),i=r[0].map((u,f)=>r.map(d=>{if(!(f in d))throw Error('The arity of each "output" value must be equal');return d[f]})).map(u=>kt(Ei({},e,{output:u})));return u=>{var f;let d=!Oc.test(t[0])&&((f=t.find(m=>Oc.test(m)))==null?void 0:f.replace(Go,"")),p=0;return t[0].replace(Go,()=>`${i[p++](u)}${d||""}`).replace(q3,V3)}},Bi="react-spring: ",qc=e=>{let t=e,r=!1;if(typeof t!="function")throw new TypeError(`${Bi}once requires a function parameter`);return(...o)=>{r||(t(...o),r=!0)}},U3=qc(console.warn);function zc(){U3(`${Bi}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var W3=qc(console.warn);function Vc(){W3(`${Bi}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 hr(e){return E.str(e)&&(e[0]=="#"||/\d/.test(e)||!jc()&&Wo.test(e)||e in(wt||{}))}var Fr=e=>(0,qe.useEffect)(e,R3),R3=[];function Qo(){let e=(0,qe.useState)()[1],t=(0,qe.useState)(Q3)[0];return Fr(t.unmount),()=>{t.current&&e({})}}function Q3(){let e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function Uc(e,t){let[r]=(0,qe.useState)(()=>({inputs:t,result:e()})),o=(0,qe.useRef)(),i=o.current,u=i;return u?Boolean(t&&u.inputs&&X3(t,u.inputs))||(u={inputs:t,result:e()}):u=r,(0,qe.useEffect)(()=>{o.current=u,i==r&&(r.inputs=r.result=void 0)},[u]),u.result}function X3(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}function Ii(e){let t=(0,qe.useRef)();return(0,qe.useEffect)(()=>{t.current=e}),t.current}var Xo=typeof window<"u"&&window.document&&window.document.createElement?zo.useLayoutEffect:zo.useEffect;var Wr=ee(he()),Fe=ee(he());b();var Xc=ee(he()),it=ee(he()),Br=Symbol.for("Animated:node"),J3=e=>!!e&&e[Br]===e,ze=e=>e&&e[Br],Yo=(e,t)=>Ec(e,Br,t),Ir=e=>e&&e[Br]&&e[Br].getPayload(),Ni=class{constructor(){this.payload=void 0,Yo(this,this)}getPayload(){return this.payload||[]}},St=class extends Ni{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,E.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new St(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,r){return E.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,E.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Mt=class extends St{constructor(t){super(0);this._string=null,this._toString=void 0,this._toString=kt({output:[t,t]})}static create(t){return new Mt(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(E.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=kt({output:[this.getValue(),t]})),this._value=0,super.reset()}},Jo={dependencies:null},pr=class extends Ni{constructor(t){super();this.source=t,this.setValue(t)}getValue(t){let r={};return Ee(this.source,(o,i)=>{J3(o)?r[i]=o.getValue(t):Le(o)?r[i]=Se(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 Ee(t,this._addToPayload,r),Array.from(r)}}_addToPayload(t){Jo.dependencies&&Le(t)&&Jo.dependencies.add(t);let r=Ir(t);r&&Y(r,o=>this.add(o))}},Zo=class extends pr{constructor(t){super(t)}static create(t){return new Zo(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(K3)),!0)}};function K3(e){return(hr(e)?Mt:St).create(e)}function en(e){let t=ze(e);return t?t.constructor:E.arr(e)?Zo:hr(e)?Mt:St}function Ko(){return Ko=Object.assign||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},Ko.apply(this,arguments)}var Wc=(e,t)=>{let r=!E.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,it.forwardRef)((o,i)=>{let u=(0,it.useRef)(null),f=r&&(0,it.useCallback)(M=>{u.current=Z3(i,M)},[i]),[d,p]=Y3(o,t),m=Qo(),w=()=>{let M=u.current;if(r&&!M)return;(M?t.applyAnimatedValues(M,d.getValue(!0)):!1)===!1&&m()},A=new Jc(w,p),k=(0,it.useRef)();Xo(()=>{let M=k.current;k.current=A,Y(p,T=>nt(T,A)),M&&(Y(M.deps,T=>Ct(T,M)),W.cancel(M.update))}),(0,it.useEffect)(w,[]),Fr(()=>()=>{let M=k.current;Y(M.deps,T=>Ct(T,M))});let y=t.getComponentProps(d.getValue());return Xc.createElement(e,Ko({},y,{ref:f}))})},Jc=class{constructor(t,r){this.update=t,this.deps=r}eventObserved(t){t.type=="change"&&W.write(this.update)}};function Y3(e,t){let r=new Set;return Jo.dependencies=r,e.style&&(e=Ko({},e,{style:t.createAnimatedStyle(e.style)})),e=new pr(e),Jo.dependencies=null,[e,r]}function Z3(e,t){return e&&(E.fun(e)?e(t):e.current=t),t}var Rc=Symbol.for("AnimatedComponent"),Kc=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new pr(i),getComponentProps:o=i=>i}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:o},u=f=>{let d=Qc(f)||"Anonymous";return E.str(f)?f=u[f]||(u[f]=Wc(f,i)):f=f[Rc]||(f[Rc]=Wc(f,i)),f.displayName=`Animated(${d})`,f};return Ee(e,(f,d)=>{E.arr(e)&&(d=Qc(f)),u[d]=u(f)}),{animated:u}},Qc=e=>E.str(e)?e:e&&E.str(e.displayName)?e.displayName:E.fun(e)&&e.name||null;b();b();function we(){return we=Object.assign||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},we.apply(this,arguments)}function Ht(e,...t){return E.fun(e)?e(...t):e}var qr=(e,t)=>e===!0||!!(t&&e&&(E.fun(e)?e(t):$e(e).includes(t))),ff=(e,t)=>E.obj(e)?t&&e[t]:e,df=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,e6=e=>e,Ji=(e,t=e6)=>{let r=t6;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));let o={};for(let i of r){let u=t(e[i],i);E.und(u)||(o[i]=u)}return o},t6=["config","onProps","onStart","onChange","onPause","onResume","onRest"],r6={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 o6(e){let t={},r=0;if(Ee(e,(o,i)=>{r6[i]||(t[i]=o,r++)}),r)return t}function hf(e){let t=o6(e);if(t){let r={to:t};return Ee(e,(o,i)=>i in t||(r[i]=o)),r}return we({},e)}function zr(e){return e=Se(e),E.arr(e)?e.map(zr):hr(e)?je.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function n6(e){for(let t in e)return!0;return!1}function qi(e){return E.fun(e)||E.arr(e)&&E.obj(e[0])}function i6(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function a6(e,t){if(t&&e.ref!==t){var r;(r=e.ref)==null||r.delete(e),t.add(e),e.ref=t}}var l6={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}},on=1.70158,tn=on*1.525,Yc=on+1,Zc=2*Math.PI/3,ef=2*Math.PI/4.5,rn=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,s6={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=>Yc*e*e*e-on*e*e,easeOutBack:e=>1+Yc*Math.pow(e-1,3)+on*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((tn+1)*2*e-tn)/2:(Math.pow(2*e-2,2)*((tn+1)*(e*2-2)+tn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Zc),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Zc)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ef))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ef)/2+1,easeInBounce:e=>1-rn(1-e),easeOutBounce:rn,easeInOutBounce:e=>e<.5?(1-rn(1-2*e))/2:(1+rn(2*e-1))/2},zi=we({},l6.default,{mass:1,damping:1,easing:s6.linear,clamp:!1}),pf=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,zi)}};function u6(e,t,r){r&&(r=we({},r),tf(r,t),t=we({},r,t)),tf(e,t),Object.assign(e,t);for(let f in zi)e[f]==null&&(e[f]=zi[f]);let{mass:o,frequency:i,damping:u}=e;return E.und(i)||(i<.01&&(i=.01),u<0&&(u=0),e.tension=Math.pow(2*Math.PI/i,2)*o,e.friction=4*Math.PI*u*o/i),e}function tf(e,t){if(!E.und(t.decay))e.duration=void 0;else{let r=!E.und(t.tension)||!E.und(t.friction);(r||!E.und(t.frequency)||!E.und(t.damping)||!E.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var rf=[],mf=class{constructor(){this.changed=!1,this.values=rf,this.toValues=null,this.fromValues=rf,this.to=void 0,this.from=void 0,this.config=new pf,this.immediate=!1}};function gf(e,{key:t,props:r,defaultProps:o,state:i,actions:u}){return new Promise((f,d)=>{var p;let m,w,A=qr((p=r.cancel)!=null?p:o==null?void 0:o.cancel,t);if(A)M();else{E.und(r.pause)||(i.paused=qr(r.pause,t));let T=o==null?void 0:o.pause;T!==!0&&(T=i.paused||qr(T,t)),m=Ht(r.delay||0,t),T?(i.resumeQueue.add(y),u.pause()):(u.resume(),y())}function k(){i.resumeQueue.add(y),i.timeouts.delete(w),w.cancel(),m=w.time-W.now()}function y(){m>0&&!je.skipAnimation?(i.delayed=!0,w=W.setTimeout(M,m),i.pauseQueue.add(k),i.timeouts.add(w)):M()}function M(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(k),i.timeouts.delete(w),e<=(i.cancelId||0)&&(A=!0);try{u.start(we({},r,{callId:e,cancel:A}),f)}catch(T){d(T)}}})}var Ki=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?mr(e.get()):t.every(r=>r.noop)?bf(e.get()):Ve(e.get(),t.every(r=>r.finished)),bf=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ve=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),mr=e=>({value:e,cancelled:!0,finished:!1});function vf(e,t,r,o){let{callId:i,parentId:u,onRest:f}=t,{asyncTo:d,promise:p}=r;return!u&&e===d&&!t.reset?p:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;let m=Ji(t,($,F)=>F==="onRest"?void 0:$),w,A,k=new Promise(($,F)=>(w=$,A=F)),y=$=>{let F=i<=(r.cancelId||0)&&mr(o)||i!==r.asyncId&&Ve(o,!1);if(F)throw $.result=F,A($),$},M=($,F)=>{let I=new Vi,H=new Ui;return(async()=>{if(je.skipAnimation)throw Vr(r),H.result=Ve(o,!1),A(H),H;y(I);let j=E.obj($)?we({},$):we({},F,{to:$});j.parentId=i,Ee(m,(D,z)=>{E.und(j[z])&&(j[z]=D)});let J=await o.start(j);return y(I),r.paused&&await new Promise(D=>{r.resumeQueue.add(D)}),J})()},T;if(je.skipAnimation)return Vr(r),Ve(o,!1);try{let $;E.arr(e)?$=(async F=>{for(let I of F)await M(I)})(e):$=Promise.resolve(e(M,o.stop.bind(o))),await Promise.all([$.then(w),k]),T=Ve(o.get(),!0,!1)}catch($){if($ instanceof Vi)T=$.result;else if($ instanceof Ui)T=$.result;else throw $}finally{i==r.asyncId&&(r.asyncId=u,r.asyncTo=u?d:void 0,r.promise=u?p:void 0)}return E.fun(f)&&W.batchedUpdates(()=>{f(T,o,o.item)}),T})()}function Vr(e,t){cr(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Vi=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}},Ui=class extends Error{constructor(){super("SkipAnimationSignal");this.result=void 0}},Wi=e=>e instanceof an,c6=1,an=class extends Dr{constructor(...t){super(...t);this.id=c6++,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 je.to(this,t)}interpolate(...t){return zc(),je.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){Gt(this,{type:"change",parent:this,value:t,idle:r})}_onPriorityChange(t){this.idle||dr.sort(this),Gt(this,{type:"priority",parent:this,priority:t})}},qt=Symbol.for("SpringPhase"),yf=1,Ri=2,Qi=4,Gi=e=>(e[qt]&yf)>0,At=e=>(e[qt]&Ri)>0,Nr=e=>(e[qt]&Qi)>0,of=(e,t)=>t?e[qt]|=Ri|yf:e[qt]&=~Ri,nf=(e,t)=>t?e[qt]|=Qi:e[qt]&=~Qi,xf=class extends an{constructor(t,r){super();if(this.key=void 0,this.animation=new mf,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,!E.und(t)||!E.und(r)){let o=E.obj(t)?we({},t):we({},r,{from:t});E.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(At(this)||this._state.asyncTo)||Nr(this)}get goal(){return Se(this.animation.to)}get velocity(){let t=ze(this);return t instanceof St?t.lastVelocity||0:t.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return Gi(this)}get isAnimating(){return At(this)}get isPaused(){return Nr(this)}get isDelayed(){return this._state.delayed}advance(t){let r=!0,o=!1,i=this.animation,{config:u,toValues:f}=i,d=Ir(i.to);!d&&Le(i.to)&&(f=$e(Se(i.to))),i.values.forEach((w,A)=>{if(w.done)return;let k=w.constructor==Mt?1:d?d[A].lastPosition:f[A],y=i.immediate,M=k;if(!y){if(M=w.lastPosition,u.tension<=0){w.done=!0;return}let T=w.elapsedTime+=t,$=i.fromValues[A],F=w.v0!=null?w.v0:w.v0=E.arr(u.velocity)?u.velocity[A]:u.velocity,I;if(E.und(u.duration))if(u.decay){let H=u.decay===!0?.998:u.decay,j=Math.exp(-(1-H)*T);M=$+F/(1-H)*(1-j),y=Math.abs(w.lastPosition-M)<.1,I=F*j}else{I=w.lastVelocity==null?F:w.lastVelocity;let H=u.precision||($==k?.005:Math.min(1,Math.abs(k-$)*.001)),j=u.restVelocity||H/10,J=u.clamp?0:u.bounce,D=!E.und(J),z=$==k?w.v0>0:$<k,R,le=!1,fe=1,me=Math.ceil(t/fe);for(let be=0;be<me&&(R=Math.abs(I)>j,!(!R&&(y=Math.abs(k-M)<=H,y)));++be){D&&(le=M==k||M>k==z,le&&(I=-I*J,M=k));let Te=-u.tension*1e-6*(M-k),ct=-u.friction*.001*I,Ye=(Te+ct)/u.mass;I=I+Ye*fe,M=M+I*fe}}else{let H=1;u.duration>0&&(this._memoizedDuration!==u.duration&&(this._memoizedDuration=u.duration,w.durationProgress>0&&(w.elapsedTime=u.duration*w.durationProgress,T=w.elapsedTime+=t)),H=(u.progress||0)+T/this._memoizedDuration,H=H>1?1:H<0?0:H,w.durationProgress=H),M=$+u.easing(H)*(k-$),I=(M-w.lastPosition)/t,y=H==1}w.lastVelocity=I,Number.isNaN(M)&&(console.warn("Got NaN while animating:",this),y=!0)}d&&!d[A].done&&(y=!1),y?w.done=!0:r=!1,w.setValue(M,u.round)&&(o=!0)});let p=ze(this),m=p.getValue();if(r){let w=Se(i.to);(m!==w||o)&&!u.decay?(p.setValue(w),this._onChange(w)):o&&u.decay&&this._onChange(m),this._stop()}else o&&this._onChange(m)}set(t){return W.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(At(this)){let{to:t,config:r}=this.animation;W.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 E.und(t)?(o=this.queue||[],this.queue=[]):o=[E.obj(t)?t:we({},r,{to:t})],Promise.all(o.map(i=>this._update(i))).then(i=>Ki(this,i))}stop(t){let{to:r}=this.animation;return this._focus(this.get()),Vr(this._state,t&&this._lastCallId),W.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=E.obj(o)?o[r]:o,(o==null||qi(o))&&(o=void 0),i=E.obj(i)?i[r]:i,i==null&&(i=void 0);let u={to:o,from:i};return Gi(this)||(t.reverse&&([o,i]=[i,o]),i=Se(i),E.und(i)?ze(this)||this._set(o):this._set(i)),u}_update(t,r){let o=we({},t),{key:i,defaultProps:u}=this;o.default&&Object.assign(u,Ji(o,(p,m)=>/^on/.test(m)?ff(p,i):p)),lf(this,o,"onProps"),Hr(this,"onProps",o,this);let f=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 d=this._state;return gf(++this._lastCallId,{key:i,props:o,defaultProps:u,state:d,actions:{pause:()=>{Nr(this)||(nf(this,!0),fr(d.pauseQueue),Hr(this,"onPause",Ve(this,Gr(this,this.animation.to)),this))},resume:()=>{Nr(this)&&(nf(this,!1),At(this)&&this._resume(),fr(d.resumeQueue),Hr(this,"onResume",Ve(this,Gr(this,this.animation.to)),this))},start:this._merge.bind(this,f)}}).then(p=>{if(o.loop&&p.finished&&!(r&&p.noop)){let m=wf(o);if(m)return this._update(m,!0)}return p})}_merge(t,r,o){if(r.cancel)return this.stop(!0),o(mr(this));let i=!E.und(t.to),u=!E.und(t.from);if(i||u)if(r.callId>this._lastToId)this._lastToId=r.callId;else return o(mr(this));let{key:f,defaultProps:d,animation:p}=this,{to:m,from:w}=p,{to:A=m,from:k=w}=t;u&&!i&&(!r.default||E.und(A))&&(A=k),r.reverse&&([A,k]=[k,A]);let y=!Xe(k,w);y&&(p.from=k),k=Se(k);let M=!Xe(A,m);M&&this._focus(A);let T=qi(r.to),{config:$}=p,{decay:F,velocity:I}=$;(i||u)&&($.velocity=0),r.config&&!T&&u6($,Ht(r.config,f),r.config!==d.config?Ht(d.config,f):void 0);let H=ze(this);if(!H||E.und(A))return o(Ve(this,!0));let j=E.und(r.reset)?u&&!r.default:!E.und(k)&&qr(r.reset,f),J=j?k:this.get(),D=zr(A),z=E.num(D)||E.arr(D)||hr(D),R=!T&&(!z||qr(d.immediate||r.immediate,f));if(M){let be=en(A);if(be!==H.constructor)if(R)H=this._set(D);else throw Error(`Cannot animate between ${H.constructor.name} and ${be.name}, as the "to" prop suggests`)}let le=H.constructor,fe=Le(A),me=!1;if(!fe){let be=j||!Gi(this)&&y;(M||be)&&(me=Xe(zr(J),D),fe=!me),(!Xe(p.immediate,R)&&!R||!Xe($.decay,F)||!Xe($.velocity,I))&&(fe=!0)}if(me&&At(this)&&(p.changed&&!j?fe=!0:fe||this._stop(m)),!T&&((fe||Le(m))&&(p.values=H.getPayload(),p.toValues=Le(A)?null:le==Mt?[1]:$e(D)),p.immediate!=R&&(p.immediate=R,!R&&!j&&this._set(m)),fe)){let{onRest:be}=p;Y(d6,ct=>lf(this,r,ct));let Te=Ve(this,Gr(this,m));fr(this._pendingCalls,Te),this._pendingCalls.add(o),p.changed&&W.batchedUpdates(()=>{p.changed=!j,be==null||be(Te,this),j?Ht(d.onRest,Te):p.onStart==null||p.onStart(Te,this)})}j&&this._set(J),T?o(vf(r.to,r,this._state,this)):fe?this._start():At(this)&&!M?this._pendingCalls.add(o):o(bf(J))}_focus(t){let r=this.animation;t!==r.to&&(Fi(this)&&this._detach(),r.to=t,Fi(this)&&this._attach())}_attach(){let t=0,{to:r}=this.animation;Le(r)&&(nt(r,this),Wi(r)&&(t=r.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;Le(t)&&Ct(t,this)}_set(t,r=!0){let o=Se(t);if(!E.und(o)){let i=ze(this);if(!i||!Xe(o,i.getValue())){let u=en(o);!i||i.constructor!=u?Yo(this,u.create(o)):i.setValue(o),i&&W.batchedUpdates(()=>{this._onChange(o,r)})}}return ze(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,Hr(this,"onStart",Ve(this,Gr(this,t.to)),this))}_onChange(t,r){r||(this._onStart(),Ht(this.animation.onChange,t,this)),Ht(this.defaultProps.onChange,t,this),super._onChange(t,r)}_start(){let t=this.animation;ze(this).reset(Se(t.to)),t.immediate||(t.fromValues=t.values.map(r=>r.lastPosition)),At(this)||(of(this,!0),Nr(this)||this._resume())}_resume(){je.skipAnimation?this.finish():dr.start(this)}_stop(t,r){if(At(this)){of(this,!1);let o=this.animation;Y(o.values,u=>{u.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),Gt(this,{type:"idle",parent:this});let i=r?mr(this.get()):Ve(this.get(),Gr(this,t??o.to));fr(this._pendingCalls,i),o.changed&&(o.changed=!1,Hr(this,"onRest",i,this))}}};function Gr(e,t){let r=zr(t),o=zr(e.get());return Xe(o,r)}function wf(e,t=e.loop,r=e.to){let o=Ht(t);if(o){let i=o!==!0&&hf(o),u=(i||e).reverse,f=!i||i.reset;return Ur(we({},e,{loop:t,default:!1,pause:void 0,to:!u||qi(r)?r:void 0,from:f?e.from:void 0,reset:f},i))}}function Ur(e){let{to:t,from:r}=e=hf(e),o=new Set;return E.obj(t)&&af(t,o),E.obj(r)&&af(r,o),e.keys=o.size?Array.from(o):null,e}function f6(e){let t=Ur(e);return E.und(t.default)&&(t.default=Ji(t)),t}function af(e,t){Ee(e,(r,o)=>r!=null&&t.add(o))}var d6=["onStart","onRest","onChange","onPause","onResume"];function lf(e,t,r){e.animation[r]=t[r]!==df(t,r)?ff(t[r],e.key):void 0}function Hr(e,t,...r){var o,i,u,f;(o=(i=e.animation)[t])==null||o.call(i,...r),(u=(f=e.defaultProps)[t])==null||u.call(f,...r)}var h6=["onStart","onChange","onRest"],p6=1,kf=class{constructor(t,r){this.id=p6++,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(we({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];E.und(o)||this.springs[r].set(o)}}update(t){return t&&this.queue.push(Ur(t)),this}start(t){let{queue:r}=this;return t?r=$e(t).map(Ur):this.queue=[],this._flush?this._flush(this,r):(Tf(this,r),Xi(this,r))}stop(t,r){if(t!==!!t&&(r=t),r){let o=this.springs;Y($e(r),i=>o[i].stop(!!t))}else Vr(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(E.und(t))this.start({pause:!0});else{let r=this.springs;Y($e(t),o=>r[o].pause())}return this}resume(t){if(E.und(t))this.start({pause:!1});else{let r=this.springs;Y($e(t),o=>r[o].resume())}return this}each(t){Ee(this.springs,t)}_onFrame(){let{onStart:t,onChange:r,onRest:o}=this._events,i=this._active.size>0,u=this._changed.size>0;(i&&!this._started||u&&!this._started)&&(this._started=!0,cr(t,([p,m])=>{m.value=this.get(),p(m,this,this._item)}));let f=!i&&this._started,d=u||f&&o.size?this.get():null;u&&r.size&&cr(r,([p,m])=>{m.value=d,p(m,this,this._item)}),f&&(this._started=!1,cr(o,([p,m])=>{m.value=d,p(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;W.onFrame(this._onFrame)}};function Xi(e,t){return Promise.all(t.map(r=>Cf(e,r))).then(r=>Ki(e,r))}async function Cf(e,t,r){let{keys:o,to:i,from:u,loop:f,onRest:d,onResolve:p}=t,m=E.obj(t.default)&&t.default;f&&(t.loop=!1),i===!1&&(t.to=null),u===!1&&(t.from=null);let w=E.arr(i)||E.fun(i)?i:void 0;w?(t.to=void 0,t.onRest=void 0,m&&(m.onRest=void 0)):Y(h6,T=>{let $=t[T];if(E.fun($)){let F=e._events[T];t[T]=({finished:I,cancelled:H})=>{let j=F.get($);j?(I||(j.finished=!1),H&&(j.cancelled=!0)):F.set($,{value:null,finished:I||!1,cancelled:H||!1})},m&&(m[T]=t[T])}});let A=e._state;t.pause===!A.paused?(A.paused=t.pause,fr(t.pause?A.pauseQueue:A.resumeQueue)):A.paused&&(t.pause=!0);let k=(o||Object.keys(e.springs)).map(T=>e.springs[T].start(t)),y=t.cancel===!0||df(t,"cancel")===!0;(w||y&&A.asyncId)&&k.push(gf(++e._lastAsyncId,{props:t,state:A,actions:{pause:Vo,resume:Vo,start(T,$){y?(Vr(A,e._lastAsyncId),$(mr(e))):(T.onRest=d,$(vf(w,T,A,e)))}}})),A.paused&&await new Promise(T=>{A.resumeQueue.add(T)});let M=Ki(e,await Promise.all(k));if(f&&M.finished&&!(r&&M.noop)){let T=wf(t,f,i);if(T)return Tf(e,[T]),Cf(e,T,!0)}return p&&W.batchedUpdates(()=>p(M,e,e.item)),M}function sf(e,t){let r=we({},e.springs);return t&&Y($e(t),o=>{E.und(o.keys)&&(o=Ur(o)),E.obj(o.to)||(o=we({},o,{to:void 0})),Af(r,o,i=>Mf(i))}),Sf(e,r),r}function Sf(e,t){Ee(t,(r,o)=>{e.springs[o]||(e.springs[o]=r,nt(r,e))})}function Mf(e,t){let r=new xf;return r.key=e,t&&nt(r,t),r}function Af(e,t,r){t.keys&&Y(t.keys,o=>{(e[o]||(e[o]=r(o)))._prepareNode(t)})}function Tf(e,t){Y(t,r=>{Af(e.springs,r,o=>Mf(o,e))})}function m6(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,u;for(u=0;u<o.length;u++)i=o[u],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var g6=["children"],ln=e=>{let{children:t}=e,r=m6(e,g6),o=(0,Fe.useContext)(nn),i=r.pause||!!o.pause,u=r.immediate||!!o.immediate;r=Uc(()=>({pause:i,immediate:u}),[i,u]);let{Provider:f}=nn;return Wr.createElement(f,{value:r},t)},nn=b6(ln,{});ln.Provider=nn.Provider;ln.Consumer=nn.Consumer;function b6(e,t){return Object.assign(e,Wr.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var v6=()=>{let e=[],t=function(i){Vc();let u=[];return Y(e,(f,d)=>{if(E.und(i))u.push(f.start());else{let p=r(i,f,d);p&&u.push(f.start(p))}}),u};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,(u,f)=>{if(E.und(o))i.push(u.start());else{let d=this._getProps(o,u,f);d&&i.push(u.start(d))}}),i},t.stop=function(){return Y(e,o=>o.stop(...arguments)),this},t.update=function(o){return Y(e,(i,u)=>i.update(this._getProps(o,i,u))),this};let r=function(i,u,f){return E.fun(i)?i(f,u):i};return t._getProps=r,t};function y6(e,t,r){let o=E.fun(t)&&t;o&&!r&&(r=[]);let i=(0,Fe.useMemo)(()=>o||arguments.length==3?v6():void 0,[]),u=(0,Fe.useRef)(0),f=Qo(),d=(0,Fe.useMemo)(()=>({ctrls:[],queue:[],flush(F,I){let H=sf(F,I);return u.current>0&&!d.queue.length&&!Object.keys(H).some(J=>!F.springs[J])?Xi(F,I):new Promise(J=>{Sf(F,H),d.queue.push(()=>{J(Xi(F,I))}),f()})}}),[]),p=(0,Fe.useRef)([...d.ctrls]),m=[],w=Ii(e)||0;(0,Fe.useMemo)(()=>{Y(p.current.slice(e,w),F=>{i6(F,i),F.stop(!0)}),p.current.length=e,A(w,e)},[e]),(0,Fe.useMemo)(()=>{A(0,Math.min(w,e))},r);function A(F,I){for(let H=F;H<I;H++){let j=p.current[H]||(p.current[H]=new kf(null,d.flush)),J=o?o(H,j):t[H];J&&(m[H]=f6(J))}}let k=p.current.map((F,I)=>sf(F,m[I])),y=(0,Fe.useContext)(ln),M=Ii(y),T=y!==M&&n6(y);Xo(()=>{u.current++,d.ctrls=p.current;let{queue:F}=d;F.length&&(d.queue=[],Y(F,I=>I())),Y(p.current,(I,H)=>{i==null||i.add(I),T&&I.start({default:y});let j=m[H];j&&(a6(I,j.ref),I.ref?I.queue.push(j):I.start(j))})}),Fr(()=>()=>{Y(d.ctrls,F=>F.stop(!0))});let $=k.map(F=>we({},F));return i?[$,i]:$}function Pf(e,t){let r=E.fun(e),[[o],i]=y6(1,r?e:[e],r?t||[]:t);return r||arguments.length==2?[o,i]:o}var uf;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(uf||(uf={}));var $f=class extends an{constructor(t,r){super();this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=kt(...r);let o=this._get(),i=en(o);Yo(this,i.create(o))}advance(t){let r=this._get(),o=this.get();Xe(r,o)||(ze(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&cf(this._active)&&Hi(this)}_get(){let t=E.arr(this.source)?this.source.map(Se):$e(Se(this.source));return this.calc(...t)}_start(){this.idle&&!cf(this._active)&&(this.idle=!1,Y(Ir(this),t=>{t.done=!1}),je.skipAnimation?(W.batchedUpdates(()=>this.advance()),Hi(this)):dr.start(this))}_attach(){let t=1;Y($e(this.source),r=>{Le(r)&&nt(r,this),Wi(r)&&(r.idle||this._active.add(r),t=Math.max(t,r.priority+1))}),this.priority=t,this._start()}_detach(){Y($e(this.source),t=>{Le(t)&&Ct(t,this)}),this._active.clear(),Hi(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=$e(this.source).reduce((r,o)=>Math.max(r,(Wi(o)?o.priority:0)+1),0))}};function x6(e){return e.idle!==!1}function cf(e){return!e.size||Array.from(e).every(x6)}function Hi(e){e.idle||(e.idle=!0,Y(Ir(e),t=>{t.done=!0}),Gt(e,{type:"idle",parent:e}))}je.assign({createStringInterpolator:Ro,to:(e,t)=>new $f(e,t)});var jA=dr.advance;var _f=ee(fb());function Zi(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,u;for(u=0;u<o.length;u++)i=o[u],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var w6=["style","children","scrollTop","scrollLeft"],Of=/^--/;function k6(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Of.test(e)&&!(Rr.hasOwnProperty(e)&&Rr[e])?t+"px":(""+t).trim()}var Lf={};function C6(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:u,scrollTop:f,scrollLeft:d}=o,p=Zi(o,w6),m=Object.values(p),w=Object.keys(p).map(A=>r||e.hasAttribute(A)?A:Lf[A]||(Lf[A]=A.replace(/([A-Z])/g,k=>"-"+k.toLowerCase())));u!==void 0&&(e.textContent=u);for(let A in i)if(i.hasOwnProperty(A)){let k=k6(A,i[A]);Of.test(A)?e.style.setProperty(A,k):e.style[A]=k}w.forEach((A,k)=>{e.setAttribute(A,m[k])}),f!==void 0&&(e.scrollTop=f),d!==void 0&&(e.scrollLeft=d)}var Rr={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},S6=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),M6=["Webkit","Ms","Moz","O"];Rr=Object.keys(Rr).reduce((e,t)=>(M6.forEach(r=>e[S6(r,t)]=e[t]),e),Rr);var A6=["x","y","z"],T6=/^(matrix|translate|scale|rotate|skew)/,P6=/^(translate)/,$6=/^(rotate|skew)/,Yi=(e,t)=>E.num(e)&&e!==0?e+t:e,sn=(e,t)=>E.arr(e)?e.every(r=>sn(r,t)):E.num(e)?e===t:parseFloat(e)===t,Ef=class extends pr{constructor(t){let{x:r,y:o,z:i}=t,u=Zi(t,A6),f=[],d=[];(r||o||i)&&(f.push([r||0,o||0,i||0]),d.push(p=>[`translate3d(${p.map(m=>Yi(m,"px")).join(",")})`,sn(p,0)])),Ee(u,(p,m)=>{if(m==="transform")f.push([p||""]),d.push(w=>[w,w===""]);else if(T6.test(m)){if(delete u[m],E.und(p))return;let w=P6.test(m)?"px":$6.test(m)?"deg":"";f.push($e(p)),d.push(m==="rotate3d"?([A,k,y,M])=>[`rotate3d(${A},${k},${y},${Yi(M,w)})`,sn(M,0)]:A=>[`${m}(${A.map(k=>Yi(k,w)).join(",")})`,sn(A,m.startsWith("scale")?1:0)])}}),f.length&&(u.transform=new jf(f,d));super(u)}},jf=class extends Dr{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 u=Se(o[0]),[f,d]=this.transforms[i](E.arr(u)?u:o.map(Se));t+=" "+f,r=r&&d}),r?"none":t}observerAdded(t){t==1&&Y(this.inputs,r=>Y(r,o=>Le(o)&&nt(o,this)))}observerRemoved(t){t==0&&Y(this.inputs,r=>Y(r,o=>Le(o)&&Ct(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Gt(this,t)}},L6=["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"],_6=["scrollTop","scrollLeft"];je.assign({batchedUpdates:_f.unstable_batchedUpdates,createStringInterpolator:Ro,colors:Nc});var O6=Kc(L6,{applyAnimatedValues:C6,createAnimatedStyle:e=>new Ef(e),getComponentProps:e=>Zi(e,_6)}),Qr=O6.animated;var cn=ee(he());var Hf=ee(Gf());function qf(){let{ref:e,width:t,height:r}=(0,Hf.useComponentSize)();return(0,cn.useMemo)(()=>[e,{width:t,height:r}],[e,t,r])}function zf(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function Xr(e){let{animationsEnabled:t}=Pe(),[r,o]=rr(!0);return(0,cn.useEffect)(()=>{setTimeout(()=>o(!1),0)},[o]),Pf({...typeof e=="object"?e:{},immediate:r||!t})}b();b();b();b();function V6(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 Vf(){return this.eachAfter(V6)}b();function Uf(e,t){let r=-1;for(let o of this)e.call(t,o,++r,this);return this}b();function Wf(e,t){for(var r=this,o=[r],i,u,f=-1;r=o.pop();)if(e.call(t,r,++f,this),i=r.children)for(u=i.length-1;u>=0;--u)o.push(i[u]);return this}b();function Rf(e,t){for(var r=this,o=[r],i=[],u,f,d,p=-1;r=o.pop();)if(i.push(r),u=r.children)for(f=0,d=u.length;f<d;++f)o.push(u[f]);for(;r=i.pop();)e.call(t,r,++p,this);return this}b();function Qf(e,t){let r=-1;for(let o of this)if(e.call(t,o,++r,this))return o}b();function Xf(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})}b();function Jf(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}b();function Kf(e){for(var t=this,r=U6(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 U6(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}b();function Yf(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}b();function Zf(){return Array.from(this)}b();function ed(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}b();function td(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}b();function*rd(){var e=this,t,r=[e],o,i,u;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,o=e.children)for(i=0,u=o.length;i<u;++i)r.push(o[i]);while(r.length)}function br(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Q6)):t===void 0&&(t=R6);for(var r=new Jr(e),o,i=[r],u,f,d,p;o=i.pop();)if((f=t(o.data))&&(p=(f=Array.from(f)).length))for(o.children=f,d=p-1;d>=0;--d)i.push(u=f[d]=new Jr(f[d])),u.parent=o,u.depth=o.depth+1;return r.eachBefore(J6)}function W6(){return br(this).eachBefore(X6)}function R6(e){return e.children}function Q6(e){return Array.isArray(e)?e[1]:null}function X6(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function J6(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Jr(e){this.data=e,this.depth=this.height=0,this.parent=null}Jr.prototype=br.prototype={constructor:Jr,count:Vf,each:Uf,eachAfter:Rf,eachBefore:Wf,find:Qf,sum:Xf,sort:Jf,path:Kf,ancestors:Yf,descendants:Zf,leaves:ed,links:td,copy:W6,[Symbol.iterator]:rd};b();b();b();function od(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function nd(e){for(var t=e.length,r,o;t;)o=Math.random()*t--|0,r=e[t],e[t]=e[o],e[o]=r;return e}b();function id(e){for(var t=0,r=(e=nd(Array.from(e))).length,o=[],i,u;t<r;)i=e[t],u&&ad(u,i)?++t:(u=Y6(o=K6(o,i)),t=0);return u}function K6(e,t){var r,o;if(oa(t,e))return[t];for(r=0;r<e.length;++r)if(fn(t,e[r])&&oa(Kr(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(fn(Kr(e[r],e[o]),t)&&fn(Kr(e[r],t),e[o])&&fn(Kr(e[o],t),e[r])&&oa(ld(e[r],e[o],t),e))return[e[r],e[o],t];throw new Error}function fn(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 ad(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 oa(e,t){for(var r=0;r<t.length;++r)if(!ad(e,t[r]))return!1;return!0}function Y6(e){switch(e.length){case 1:return Z6(e[0]);case 2:return Kr(e[0],e[1]);case 3:return ld(e[0],e[1],e[2])}}function Z6(e){return{x:e.x,y:e.y,r:e.r}}function Kr(e,t){var r=e.x,o=e.y,i=e.r,u=t.x,f=t.y,d=t.r,p=u-r,m=f-o,w=d-i,A=Math.sqrt(p*p+m*m);return{x:(r+u+p/A*w)/2,y:(o+f+m/A*w)/2,r:(A+i+d)/2}}function ld(e,t,r){var o=e.x,i=e.y,u=e.r,f=t.x,d=t.y,p=t.r,m=r.x,w=r.y,A=r.r,k=o-f,y=o-m,M=i-d,T=i-w,$=p-u,F=A-u,I=o*o+i*i-u*u,H=I-f*f-d*d+p*p,j=I-m*m-w*w+A*A,J=y*M-k*T,D=(M*j-T*H)/(J*2)-o,z=(T*$-M*F)/J,R=(y*H-k*j)/(J*2)-i,le=(k*F-y*$)/J,fe=z*z+le*le-1,me=2*(u+D*z+R*le),be=D*D+R*R-u*u,Te=-(fe?(me+Math.sqrt(me*me-4*fe*be))/(2*fe):be/me);return{x:o+D+z*Te,y:i+R+le*Te,r:Te}}function sd(e,t,r){var o=e.x-t.x,i,u,f=e.y-t.y,d,p,m=o*o+f*f;m?(u=t.r+r.r,u*=u,p=e.r+r.r,p*=p,u>p?(i=(m+p-u)/(2*m),d=Math.sqrt(Math.max(0,p/m-i*i)),r.x=e.x-i*o-d*f,r.y=e.y-i*f+d*o):(i=(m+u-p)/(2*m),d=Math.sqrt(Math.max(0,u/m-i*i)),r.x=t.x+i*o-d*f,r.y=t.y+i*f+d*o)):(r.x=t.x+r.r,r.y=t.y)}function ud(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 cd(e){var t=e._,r=e.next._,o=t.r+r.r,i=(t.x*r.r+r.x*t.r)/o,u=(t.y*r.r+r.y*t.r)/o;return i*i+u*u}function dn(e){this._=e,this.next=null,this.previous=null}function fd(e){if(!(i=(e=od(e)).length))return 0;var t,r,o,i,u,f,d,p,m,w,A;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;sd(r,t,o=e[2]),t=new dn(t),r=new dn(r),o=new dn(o),t.next=o.previous=r,r.next=t.previous=o,o.next=r.previous=t;e:for(d=3;d<i;++d){sd(t._,r._,o=e[d]),o=new dn(o),p=r.next,m=t.previous,w=r._.r,A=t._.r;do if(w<=A){if(ud(p._,o._)){r=p,t.next=r,r.previous=t,--d;continue e}w+=p._.r,p=p.next}else{if(ud(m._,o._)){t=m,t.next=r,r.previous=t,--d;continue e}A+=m._.r,m=m.previous}while(p!==m.next);for(o.previous=t,o.next=r,t.next=r.previous=r=o,u=cd(t);(o=o.next)!==r;)(f=cd(o))<u&&(t=o,u=f);r=t.next}for(t=[r._],o=r;(o=o.next)!==r;)t.push(o._);for(o=id(t),d=0;d<i;++d)t=e[d],t.x-=o.x,t.y-=o.y;return o.r}b();function dd(e){return e==null?null:na(e)}function na(e){if(typeof e!="function")throw new Error;return e}b();function lt(){return 0}function Tt(e){return function(){return e}}function e4(e){return Math.sqrt(e.value)}function aa(){var e=null,t=1,r=1,o=lt;function i(u){return u.x=t/2,u.y=r/2,e?u.eachBefore(hd(e)).eachAfter(ia(o,.5)).eachBefore(pd(1)):u.eachBefore(hd(e4)).eachAfter(ia(lt,1)).eachAfter(ia(o,u.r/Math.min(t,r))).eachBefore(pd(Math.min(t,r)/(2*u.r))),u}return i.radius=function(u){return arguments.length?(e=dd(u),i):e},i.size=function(u){return arguments.length?(t=+u[0],r=+u[1],i):[t,r]},i.padding=function(u){return arguments.length?(o=typeof u=="function"?u:Tt(+u),i):o},i}function hd(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function ia(e,t){return function(r){if(o=r.children){var o,i,u=o.length,f=e(r)*t||0,d;if(f)for(i=0;i<u;++i)o[i].r+=f;if(d=fd(o),f)for(i=0;i<u;++i)o[i].r-=f;r.r=d+f}}}function pd(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)}}b();function md(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)}b();function gd(e,t,r,o,i){for(var u=e.children,f,d=-1,p=u.length,m=e.value&&(o-t)/e.value;++d<p;)f=u[d],f.y0=r,f.y1=i,f.x0=t,f.x1=t+=f.value*m}b();b();b();function bd(e,t,r,o,i){for(var u=e.children,f,d=-1,p=u.length,m=e.value&&(i-r)/e.value;++d<p;)f=u[d],f.x0=t,f.x1=o,f.y0=r,f.y1=r+=f.value*m}var t4=(1+Math.sqrt(5))/2;function r4(e,t,r,o,i,u){for(var f=[],d=t.children,p,m,w=0,A=0,k=d.length,y,M,T=t.value,$,F,I,H,j,J,D;w<k;){y=i-r,M=u-o;do $=d[A++].value;while(!$&&A<k);for(F=I=$,J=Math.max(M/y,y/M)/(T*e),D=$*$*J,j=Math.max(I/D,D/F);A<k;++A){if($+=m=d[A].value,m<F&&(F=m),m>I&&(I=m),D=$*$*J,H=Math.max(I/D,D/F),H>j){$-=m;break}j=H}f.push(p={value:$,dice:y<M,children:d.slice(w,A)}),p.dice?gd(p,r,o,i,T?o+=M*$/T:u):bd(p,r,o,T?r+=y*$/T:i,u),T-=$,w=A}return f}var vd=function e(t){function r(o,i,u,f,d){r4(t,o,i,u,f,d)}return r.ratio=function(o){return e((o=+o)>1?o:1)},r}(t4);function la(){var e=vd,t=!1,r=1,o=1,i=[0],u=lt,f=lt,d=lt,p=lt,m=lt;function w(k){return k.x0=k.y0=0,k.x1=r,k.y1=o,k.eachBefore(A),i=[0],t&&k.eachBefore(md),k}function A(k){var y=i[k.depth],M=k.x0+y,T=k.y0+y,$=k.x1-y,F=k.y1-y;$<M&&(M=$=(M+$)/2),F<T&&(T=F=(T+F)/2),k.x0=M,k.y0=T,k.x1=$,k.y1=F,k.children&&(y=i[k.depth+1]=u(k)/2,M+=m(k)-y,T+=f(k)-y,$-=d(k)-y,F-=p(k)-y,$<M&&(M=$=(M+$)/2),F<T&&(T=F=(T+F)/2),e(k,M,T,$,F))}return w.round=function(k){return arguments.length?(t=!!k,w):t},w.size=function(k){return arguments.length?(r=+k[0],o=+k[1],w):[r,o]},w.tile=function(k){return arguments.length?(e=na(k),w):e},w.padding=function(k){return arguments.length?w.paddingInner(k).paddingOuter(k):w.paddingInner()},w.paddingInner=function(k){return arguments.length?(u=typeof k=="function"?k:Tt(+k),w):u},w.paddingOuter=function(k){return arguments.length?w.paddingTop(k).paddingRight(k).paddingBottom(k).paddingLeft(k):w.paddingTop()},w.paddingTop=function(k){return arguments.length?(f=typeof k=="function"?k:Tt(+k),w):f},w.paddingRight=function(k){return arguments.length?(d=typeof k=="function"?k:Tt(+k),w):d},w.paddingBottom=function(k){return arguments.length?(p=typeof k=="function"?k:Tt(+k),w):p},w.paddingLeft=function(k){return arguments.length?(m=typeof k=="function"?k:Tt(+k),w):m},w}var Pt=ee(he());b();var sa=Kn`
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
+ `,yd=Kn`
115
+ 0% { opacity: 100% }
116
+ 50% { opacity: 50% }
117
+ 100% { opacity: 100% }
118
+ `;b();var Yr=ee(he());var o4=q(ge)`
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
+ `,n4=q.div`
133
+ position: absolute;
134
+ inset: 0;
135
+ pointer-events: none;
136
+ overflow: hidden;
137
+ `;function xd({hoveredBlob:e}){let t=(0,Yr.useRef)(null),{metricType:r,authorshipType:o}=Pe(),i=(0,Yr.useRef)(document.documentElement),u=As(i),f=zf("--unit"),d=f?Number(f.replace("px","")):0,[p]=ot(),m=(0,Yr.useMemo)(()=>{var F,I,H;if(!e)return null;let T=(I=(F=p[o])==null?void 0:F.get(r))==null?void 0:I.colormap;return(H=T==null?void 0:T.get(e.path))!=null?H:"grey"},[e,p,r,o]),w=t.current?t.current.getBoundingClientRect().width:0,A=Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--side-panel-width-units"))||0,k=u.docX+w<window.innerWidth-A*d,y=e!==null,M={transform:"none"};return y&&(k?M.transform=`translate(calc(var(--unit) + ${u.docX}px), calc(var(--unit) + ${u.docY}px))`:M.transform=`translate(calc(var(--unit) * -1 + ${u.docX}px - 100%), calc(var(--unit) + ${u.docY}px))`),s.createElement(n4,null,s.createElement(o4,{ref:t,right:k,visible:y,style:M},m?s.createElement(bt,{dotColor:m}):null,s.createElement(V,{horizontal:!0}),s.createElement(gt,null,e==null?void 0:e.name),s.createElement(V,{horizontal:!0}),s.createElement(i4,{metric:r,hoveredBlob:e,authorshipType:o})))}function i4(e){var t,r,o,i,u,f,d,p,m,w,A;switch(e.metric){case"MOST_COMMITS":let k=(t=e.hoveredBlob)==null?void 0:t.noCommits;return k?s.createElement(s.Fragment,null,k," commit",k>1?s.createElement(s.Fragment,null,"s"):null):null;case"LAST_CHANGED":let y=(r=e.hoveredBlob)==null?void 0:r.lastChangeEpoch;return y?s.createElement(s.Fragment,null,Ls(y)):null;case"SINGLE_AUTHOR":let M=e.hoveredBlob?Object.entries((u=(i=(o=e.hoveredBlob)==null?void 0:o.unionedAuthors)==null?void 0:i[e.authorshipType])!=null?u:[]):[];switch(M.length){case 0:return null;case 1:return s.createElement(s.Fragment,null,M[0][0]," is the only author");default:return s.createElement(s.Fragment,null,M.length," authors")}case"TOP_CONTRIBUTOR":let T=(p=(d=(f=e.hoveredBlob)==null?void 0:f.dominantAuthor)==null?void 0:d.get(e.authorshipType))!=null?p:void 0;return T?s.createElement(s.Fragment,null,T[0]):null;case"TRUCK_FACTOR":let $=Object.entries((A=(w=(m=e.hoveredBlob)==null?void 0:m.unionedAuthors)==null?void 0:w.HISTORICAL)!=null?A:[]).length;switch($){case 0:return null;case 1:return s.createElement(s.Fragment,null,"1 author");default:return s.createElement(s.Fragment,null,$," authors")}return s.createElement(s.Fragment,null);default:return null}}var l4=q.svg`
138
+ display: grid;
139
+ place-items: center;
140
+ padding: ${e=>Md(e.chartType)}px;
141
+ width: 100%;
142
+ height: 100%;
143
+ `;function Sd(e){let[t,r]=(0,Pt.useState)(null),{analyzerData:o}=Ae(),{chartType:i}=Pe(),{path:u}=Qe(),{clickedObject:f,setClickedObject:d}=We(),{setPath:p}=Qe(),m=(0,Pt.useMemo)(()=>g4(o.commit,v4(e.size,i),i,u),[i,o.commit,e.size,u]);(0,Pt.useEffect)(()=>r(null),[i,o.commit,e.size]);let w=A=>x4(A.data)?{onClick:()=>d(A.data),onMouseOver:()=>r(A.data),onMouseOut:()=>r(null)}:{onClick:()=>{d(A.data),p(A.data.path)},onMouseOver:()=>r(null),onMouseOut:()=>r(null)};return s.createElement(s.Fragment,null,s.createElement(l4,{chartType:i,xmlns:"http://www.w3.org/2000/svg",viewBox:`0 ${-14} ${e.size.width} ${e.size.height}`},m==null?void 0:m.descendants().map((A,k)=>s.createElement(s4,{blink:(f==null?void 0:f.path)===A.data.path,key:`${i}${A.data.path}`,...w(A)},s.createElement(u4,{isRoot:k===0,d:A})))),typeof document!="undefined"?s.createElement(xd,{hoveredBlob:t}):null)}var s4=q.g`
144
+ animation-name: ${e=>e.blink?yd:"none"};
145
+ animation-duration: 2s;
146
+ animation-iteration-count: infinite;
147
+ `,u4=(0,Pt.memo)(function({d:t,isRoot:r}){var p,m,w,A;let{chartType:o}=Pe(),i=y4(t.data),{path:u}=Qe(),f=t.data.name;if(r){let k=u.split("/"),y=f.split("/"),M=0,T=0;for(;M<k.length&&T<y.length;)k[M]!==y[T]?M++:(M++,T++);f=y.slice(T-1).join("/")}switch(o){case"BUBBLE_CHART":let k=t;return d(M=>k.r*Math.PI<M.length*7),s.createElement(s.Fragment,null,s.createElement(c4,{d:k,isSearchMatch:(p=t.data.isSearchResult)!=null?p:!1}),i?s.createElement(p4,{d:k,displayText:f,isSearchMatch:(m=t.data.isSearchResult)!=null?m:!1}):null);case"TREE_MAP":let y=t;return d(M=>y.x1-y.x0<f.length*7,M=>y.y1-y.y0<14),s.createElement(s.Fragment,null,s.createElement(d4,{d:y,isSearchMatch:(w=t.data.isSearchResult)!=null?w:!1}),i?s.createElement(m4,{d:y,displayText:f,isSearchMatch:(A=t.data.isSearchResult)!=null?A:!1}):null);default:throw Error("Unknown chart type")}function d(k,y){k(f)&&(f=f.replace(/\/.+\//gm,"/.../"),k(f)&&(i=!1)),y&&y(f)&&(f=f.replace(/\/.+\//gm,"/.../"),y(f)&&(i=!1))}});function c4({d:e,isSearchMatch:t}){var f,d;let[r]=ot(),{metricType:o,authorshipType:i}=Pe(),u=Xr({cx:e.x,cy:e.y,r:Math.max(e.r-1,0),stroke:t?ir:"transparent",strokeWidth:"1px",fill:(d=(f=r[i].get(o))==null?void 0:f.colormap.get(e.data.path))!=null?d:"grey"});return s.createElement(f4,{pulse:t,...u,className:e.data.type})}var f4=q(Qr.circle)`
148
+ animation-name: ${e=>e.pulse?sa:"none"};
149
+ animation-duration: 1.5s;
150
+ animation-iteration-count: infinite;
151
+ animation-timing-function: ease-in-out;
152
+ `;function d4({d:e,isSearchMatch:t}){var f,d;let[r]=ot(),{metricType:o,authorshipType:i}=Pe(),u=Xr({x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,stroke:t?ir:"transparent",strokeWidth:"1px",fill:e.data.type==="blob"?(d=(f=r[i].get(o))==null?void 0:f.colormap.get(e.data.path))!=null?d:"grey":"transparent"});return s.createElement(h4,{pulse:t,...u,className:e.data.type})}var h4=q(Qr.rect)`
153
+ animation-name: ${e=>e.pulse?sa:"none"};
154
+ animation-duration: 1.5s;
155
+ animation-iteration-count: infinite;
156
+ animation-timing-function: ease-in-out;
157
+ `;function p4({d:e,displayText:t,isSearchMatch:r}){let o=Xr({d:b4(e.x,e.y,e.r+0)});return s.createElement(s.Fragment,null,s.createElement(Qr.path,{...o,id:e.data.path,className:"name-path"}),s.createElement(ca,{style:{stroke:"var(--global-bg-color)"},strokeWidth:"7",strokeLinecap:"round"},s.createElement("textPath",{fill:r?ir:"#333",className:"object-name",startOffset:"50%",dominantBaseline:"central",textAnchor:"middle",xlinkHref:`#${e.data.path}`},t)),s.createElement(ca,null,s.createElement("textPath",{fill:r?ir:"#333",className:"object-name",startOffset:"50%",dominantBaseline:"central",textAnchor:"middle",xlinkHref:`#${e.data.path}`},t)))}function m4({d:e,displayText:t,isSearchMatch:r}){let o=Xr({x:e.x0+4,y:e.y0+12,fill:r?ir:"#333"});return s.createElement(ca,{...o,className:"object-name"},t)}function g4(e,t,r,o){let u=e.tree,f=o.substring(e.tree.name.length+1).split("/");for(let m=0;m<f.length;m++)for(let w of u.children)if(w.type==="tree"){let A=w.name.split("/");if(A[0]===f[m]){u=w,m+=A.length-1;break}}let p=br(u).sum(m=>{let w=m.sizeInBytes;return w||1}).sort((m,w)=>w.value!==void 0&&m.value!==void 0?w.value-m.value:0);switch(r){case"TREE_MAP":let w=la().size([t.width,t.height]).paddingInner(2).paddingOuter(4).paddingTop(17)(p);return ua(w,y=>{let M=y;return y.data.type==="blob"&&M.x0>=1&&M.y0>=1||y.data.type==="tree"}),w;case"BUBBLE_CHART":let k=aa().size([t.width,t.height]).padding(10)(p);return ua(k,y=>{let M=y;return y.data.type==="blob"&&M.r>=1||y.data.type==="tree"}),k;default:throw Error("Invalid chart type")}}function ua(e,t){var r,o,i,u;e.children=(r=e.children)==null?void 0:r.filter(f=>t(f));for(let f of(o=e.children)!=null?o:[])((u=(i=f.children)==null?void 0:i.length)!=null?u:0)>0&&ua(f,t)}function b4(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 v4(e,t){let r=Md(t);return{height:e.height-r*2,width:e.width-r*2}}function Md(e){switch(e){case"BUBBLE_CHART":return 10;case"TREE_MAP":return 17;default:throw new Error("Chart type is invalid")}}var y4=e=>e.type==="tree",x4=e=>e.type==="blob",ca=q(Qr.text)`
161
+ pointer-events: none;
162
+ `;var fa=q.main`
163
+ display: grid;
164
+ grid-template-rows: auto 1fr;
165
+ overflow: hidden;
166
+ min-width: 100px;
167
+ height: 100%;
168
+ `,w4=q.div`
169
+ display: grid;
170
+ grid-auto-flow: column;
171
+ align-items: center;
172
+ justify-content: space-between;
173
+ margin: var(--unit);
174
+ `,k4=q.div`
175
+ height: 1.5em;
176
+ & > * {
177
+ margin: 0 calc(var(--unit) * 0.5);
178
+ }
179
+ `,C4=q.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
+ `,Ad=q.span`
192
+ color: hsl(210, 10%, 30%);
193
+ cursor: default;
194
+ `,S4=q.div`
195
+ display: grid;
196
+ place-items: center;
197
+ overflow: hidden;
198
+ `;function Td({fullscreenState:[e,t]}){let[r,o]=qf(),{path:i,setPath:u}=Qe(),{repo:f}=Ae(),d=i,p=[];for(let m=0;m<8&&d!=="";m++){let w=d.lastIndexOf("/");p.push([d.substring(w+1),d]),d=d.substring(0,w)}return d!==""&&(p=p.slice(0,p.length-1),p.push(["...",""]),p.push([f.name,f.name])),s.createElement(fa,null,s.createElement(w4,null,s.createElement(k4,null,p.length>1?p.reverse().map(([m,w],A)=>w===""||A===p.length-1?w===""?s.createElement(s.Fragment,null,s.createElement(Ad,{key:w},m),s.createElement("span",null,"\u203A")):s.createElement(Ad,{key:w},m):s.createElement(s.Fragment,null,s.createElement(C4,{key:w,onClick:()=>u(w)},m),s.createElement("span",null,"\u203A"))):null),s.createElement(M4,{onClick:()=>t(m=>!m)},e?s.createElement(as,{display:"inline-block",height:"1.5em"}):s.createElement(ls,{display:"inline-block",height:"1.5em"}))),s.createElement(S4,{ref:r},s.createElement(Sd,{size:o})))}var M4=q.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
+ `;b();b();b();var ie=ee(he());b();function Pd(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Pd(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function $d(){for(var e=0,t,r,o="";e<arguments.length;)(t=arguments[e++])&&(r=Pd(t))&&(o&&(o+=" "),o+=r);return o}b();var zt=ee(he());function hn(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var A4={};hn(A4,"useControlledState",()=>T4);function T4(e,t,r){let[o,i]=(0,zt.useState)(e||t),u=(0,zt.useRef)(e!==void 0),f=u.current,d=e!==void 0,p=(0,zt.useRef)(o);f!==d&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}.`),u.current=d;let m=(0,zt.useCallback)((w,...A)=>{let k=(y,...M)=>{r&&(Object.is(p.current,y)||r(y,...M)),d||(p.current=y)};typeof w=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((M,...T)=>{let $=w(d?p.current:M,...T);return k($,...A),d?M:$})):(d||i(w),k(w,...A))},[d,r]);return d?p.current=e:e=o,[e,m]}var da={};hn(da,"clamp",()=>ha);hn(da,"snapValueToStep",()=>pa);hn(da,"toFixedNumber",()=>P4);function ha(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function pa(e,t,r,o){let i=(e-(isNaN(t)?0:t))%o,u=Math.abs(i)*2>=o?e+Math.sign(i)*(o-Math.abs(i)):e-i;isNaN(t)?!isNaN(r)&&u>r&&(u=Math.floor(r/o)*o):u<t?u=t:!isNaN(r)&&u>r&&(u=t+Math.floor((r-t)/o)*o);let f=o.toString(),d=f.indexOf("."),p=d>=0?f.length-d:0;if(p>0){let m=Math.pow(10,p);u=Math.round(u*m)/m}return u}function P4(e,t,r=10){let o=Math.pow(r,t);return Math.round(e*o)/o}function ae(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var ba={};ae(ba,"useId",()=>st);ae(ba,"mergeIds",()=>Ed);ae(ba,"useSlotId",()=>L4);var $4={};ae($4,"useLayoutEffect",()=>$t);var $t=typeof window<"u"?ie.default.useLayoutEffect:()=>{},gn=new Map;function st(e){let t=(0,ie.useRef)(!0);t.current=!0;let[r,o]=(0,ie.useState)(e),i=(0,ie.useRef)(null),u=is(r),f=d=>{t.current?i.current=d:o(d)};return gn.set(u,f),$t(()=>{t.current=!1},[f]),$t(()=>{let d=u;return()=>{gn.delete(d)}},[u]),(0,ie.useEffect)(()=>{let d=i.current;d&&(o(d),i.current=null)},[o,f]),u}function Ed(e,t){if(e===t)return e;let r=gn.get(e);if(r)return r(t),t;let o=gn.get(t);return o?(o(e),e):t}function L4(e=[]){let t=st(),[r,o]=Hd(t),i=(0,ie.useCallback)(()=>{o(function*(){yield t,yield document.getElementById(t)?t:null})},[t,o]);return $t(i,[t,i,...e]),r}var _4={};ae(_4,"chain",()=>jd);function jd(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var O4={};ae(O4,"mergeProps",()=>E4);function E4(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let i in o){let u=t[i],f=o[i];typeof u=="function"&&typeof f=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=jd(u,f):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof f=="string"?t[i]=$d(u,f):i==="id"&&u&&f?t.id=Ed(u,f):t[i]=f!==void 0?f:u}}return t}var j4={};ae(j4,"filterDOMProps",()=>I4);var D4=new Set(["id"]),F4=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),B4=/^(data-.*)$/;function I4(e,t={}){let{labelable:r,propNames:o}=t,i={};for(let u in e)Object.prototype.hasOwnProperty.call(e,u)&&(D4.has(u)||r&&F4.has(u)||(o==null?void 0:o.has(u))||B4.test(u))&&(i[u]=e[u]);return i}var N4={};ae(N4,"focusWithoutScrolling",()=>G4);function G4(e){if(H4())e.focus({preventScroll:!0});else{let t=q4(e);e.focus(),z4(t)}}var pn=null;function H4(){if(pn==null){pn=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return pn=!0,!0}})}catch{}}return pn}function q4(e){for(var t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}function z4(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}var V4={};ae(V4,"getOffset",()=>Dd);function Dd(e,t,r="horizontal"){let o=e.getBoundingClientRect();return t?r==="horizontal"?o.right:o.bottom:r==="horizontal"?o.left:o.top}var Fd={};ae(Fd,"clamp",()=>ha);ae(Fd,"snapValueToStep",()=>pa);var U4={};ae(U4,"runAfterTransition",()=>W4);var vr=new Map,ga=new Set;function Ld(){if(typeof window>"u")return;let e=r=>{let o=vr.get(r.target);o||(o=new Set,vr.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{let o=vr.get(r.target);if(!!o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),vr.delete(r.target)),vr.size===0)){for(let i of ga)i();ga.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Ld():document.addEventListener("DOMContentLoaded",Ld));function W4(e){requestAnimationFrame(()=>{vr.size===0?e():ga.add(e)})}var R4={};ae(R4,"useDrag1D",()=>Q4);var mn=[];function Q4(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:r,orientation:o,onHover:i,onDrag:u,onPositionChange:f,onIncrement:d,onDecrement:p,onIncrementToMax:m,onDecrementToMin:w,onCollapseToggle:A}=e,k=z=>o==="horizontal"?z.clientX:z.clientY,y=z=>{let R=Dd(t.current,r,o),le=k(z);return r?R-le:le-R},M=(0,ie.useRef)(!1),T=(0,ie.useRef)(0),$=(0,ie.useRef)({onPositionChange:f,onDrag:u});$.current.onDrag=u,$.current.onPositionChange=f;let F=z=>{z.preventDefault();let R=y(z);M.current||(M.current=!0,$.current.onDrag&&$.current.onDrag(!0),$.current.onPositionChange&&$.current.onPositionChange(R)),T.current!==R&&(T.current=R,f&&f(R))},I=z=>{let R=z.target;M.current=!1;let le=y(z);$.current.onDrag&&$.current.onDrag(!1),$.current.onPositionChange&&$.current.onPositionChange(le),mn.splice(mn.indexOf(R),1),window.removeEventListener("mouseup",I,!1),window.removeEventListener("mousemove",F,!1)};return{onMouseDown:z=>{let R=z.currentTarget;mn.some(le=>R.contains(le))||(mn.push(R),window.addEventListener("mousemove",F,!1),window.addEventListener("mouseup",I,!1))},onMouseEnter:()=>{i&&i(!0)},onMouseOut:()=>{i&&i(!1)},onKeyDown:z=>{switch(z.key){case"Left":case"ArrowLeft":o==="horizontal"&&(z.preventDefault(),p&&!r?p():d&&r&&d());break;case"Up":case"ArrowUp":o==="vertical"&&(z.preventDefault(),p&&!r?p():d&&r&&d());break;case"Right":case"ArrowRight":o==="horizontal"&&(z.preventDefault(),d&&!r?d():p&&r&&p());break;case"Down":case"ArrowDown":o==="vertical"&&(z.preventDefault(),d&&!r?d():p&&r&&p());break;case"Home":z.preventDefault(),w&&w();break;case"End":z.preventDefault(),m&&m();break;case"Enter":z.preventDefault(),A&&A();break}}}}var X4={};ae(X4,"useGlobalListeners",()=>J4);function J4(){let e=(0,ie.useRef)(new Map),t=(0,ie.useCallback)((i,u,f,d)=>{let p=(d==null?void 0:d.once)?(...m)=>{e.current.delete(f),f(...m)}:f;e.current.set(f,{type:u,eventTarget:i,fn:p,options:d}),i.addEventListener(u,f,d)},[]),r=(0,ie.useCallback)((i,u,f,d)=>{var p;let m=((p=e.current.get(f))===null||p===void 0?void 0:p.fn)||f;i.removeEventListener(u,m,d),e.current.delete(f)},[]),o=(0,ie.useCallback)(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return(0,ie.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}var K4={};ae(K4,"useLabels",()=>Y4);function Y4(e,t){let{id:r,"aria-label":o,"aria-labelledby":i}=e;return r=st(r),i&&o?i=[...new Set([...i.trim().split(/\s+/),r])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!o&&!i&&t&&(o=t),{id:r,"aria-label":o,"aria-labelledby":i}}var Z4={};ae(Z4,"useObjectRef",()=>eM);function eM(e){let t=(0,ie.useRef)();return $t(()=>{!e||(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}var tM={};ae(tM,"useUpdateEffect",()=>rM);function rM(e,t){let r=(0,ie.useRef)(!0);(0,ie.useEffect)(()=>{r.current?r.current=!1:e()},t)}var oM={};ae(oM,"useResizeObserver",()=>iM);function nM(){return typeof window.ResizeObserver<"u"}function iM(e){let{ref:t,onResize:r}=e;(0,ie.useEffect)(()=>{let o=t==null?void 0:t.current;if(!!o)if(nM()){let i=new window.ResizeObserver(u=>{!u.length||r()});return i.observe(o),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t])}var aM={};ae(aM,"useSyncRef",()=>lM);function lM(e,t){$t(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}var sM={};ae(sM,"getScrollParent",()=>uM);function uM(e){for(;e&&!cM(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function cM(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}var fM={};ae(fM,"useViewportSize",()=>dM);var Ke=typeof window<"u"&&window.visualViewport;function dM(){let[e,t]=(0,ie.useState)(()=>_d());return(0,ie.useEffect)(()=>{let r=()=>{t(o=>{let i=_d();return i.width===o.width&&i.height===o.height?o:i})};return Ke?Ke.addEventListener("resize",r):window.addEventListener("resize",r),()=>{Ke?Ke.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),e}function _d(){return{width:(Ke==null?void 0:Ke.width)||window.innerWidth,height:(Ke==null?void 0:Ke.height)||window.innerHeight}}var hM={};ae(hM,"useDescription",()=>mM);var pM=0,ma=new Map;function mM(e){let[t,r]=(0,ie.useState)(null);return $t(()=>{if(!e)return;let o=ma.get(e);if(o)r(o.element.id);else{let i=`react-aria-description-${pM++}`;r(i);let u=document.createElement("div");u.id=i,u.style.display="none",u.textContent=e,document.body.appendChild(u),o={refCount:0,element:u},ma.set(e,o)}return o.refCount++,()=>{--o.refCount===0&&(o.element.remove(),ma.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var Lt={};ae(Lt,"isMac",()=>xa);ae(Lt,"isIPhone",()=>Bd);ae(Lt,"isIPad",()=>Id);ae(Lt,"isIOS",()=>Nd);ae(Lt,"isAppleDevice",()=>gM);ae(Lt,"isWebKit",()=>bM);ae(Lt,"isChrome",()=>Gd);ae(Lt,"isAndroid",()=>vM);function va(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ya(e){return typeof window<"u"&&window.navigator!=null?e.test((window.navigator.userAgentData||window.navigator).platform):!1}function xa(){return ya(/^Mac/i)}function Bd(){return ya(/^iPhone/i)}function Id(){return ya(/^iPad/i)||xa()&&navigator.maxTouchPoints>1}function Nd(){return Bd()||Id()}function gM(){return xa()||Nd()}function bM(){return va(/AppleWebKit/i)&&!Gd()}function Gd(){return va(/Chrome/i)}function vM(){return va(/Android/i)}var yM={};ae(yM,"useEvent",()=>xM);function xM(e,t,r,o){let i=(0,ie.useRef)(r);i.current=r;let u=r==null;(0,ie.useEffect)(()=>{if(u)return;let f=e.current,d=p=>i.current.call(this,p);return f.addEventListener(t,d,o),()=>{f.removeEventListener(t,d,o)}},[e,t,o,u])}var wM={};ae(wM,"useValueEffect",()=>Hd);function Hd(e){let[t,r]=(0,ie.useState)(e),o=(0,ie.useRef)(t),i=(0,ie.useRef)(null);o.current=t;let u=(0,ie.useRef)(null);u.current=()=>{let d=i.current.next();if(d.done){i.current=null;return}t===d.value?u.current():r(d.value)},$t(()=>{i.current&&u.current()});let f=(0,ie.useCallback)(d=>{i.current=d(o.current),u.current()},[i,u]);return[t,f]}var kM={};ae(kM,"scrollIntoView",()=>CM);function CM(e,t){let r=Od(e,t,"left"),o=Od(e,t,"top"),i=t.offsetWidth,u=t.offsetHeight,f=e.scrollLeft,d=e.scrollTop,p=f+e.offsetWidth,m=d+e.offsetHeight;r<=f?f=r:r+i>p&&(f+=r+i-p),o<=d?d=o:o+u>m&&(d+=o+u-m),e.scrollLeft=f,e.scrollTop=d}function Od(e,t,r){let o=r==="left"?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[o];break}t=t.offsetParent}return i}function wa(e){let t=st(),r=Object.entries(e.enum);return s.createElement("div",{style:e.hidden?{display:"none"}:{}},s.createElement(Ar,{htmlFor:t},e.label),s.createElement(V,{xs:!0}),s.createElement(ks,{id:t,onChange:o=>e.onChange(o.target.value)},r.map(([o,i])=>s.createElement("option",{key:i,value:o},i))))}var SM=q.input`
212
+ margin: var(--unit);
213
+ `;function qd(){let{animationsEnabled:e,setAnimationsEnabled:t,setMetricType:r,setChartType:o}=Pe();return s.createElement(ge,null,s.createElement(wa,{label:"Chart type",enum:vi,onChange:i=>o(i)}),s.createElement(V,null),s.createElement(wa,{label:"Metric",enum:or,onChange:i=>r(i)}),s.createElement(V,null),s.createElement("label",null,s.createElement(SM,{type:"checkbox",checked:e,onChange:i=>t(i.target.checked)}),s.createElement("span",null,"Enable animations")))}b();var ut=ee(he());b();var bn=ee(he()),ka=(0,bn.createContext)(void 0);function zd(){let e=(0,bn.useContext)(ka);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e}function Vd({children:e,data:t}){let[r,o]=(0,ut.useState)(null),[i,u]=(0,ut.useState)(""),[f,d]=(0,ut.useState)([]),[p,m]=(0,ut.useState)(t.repo.name),[w,A]=(0,ut.useState)(null),k=(0,ut.useMemo)(()=>oc(t.analyzerData),[t]),y=(0,ut.useMemo)(()=>({...vt(),...r,setMetricType:M=>o(T=>({...T!=null?T:vt(),metricType:M})),setChartType:M=>o(T=>({...T!=null?T:vt(),chartType:M})),setAuthorshipType:M=>o(T=>({...T!=null?T:vt(),authorshipType:M})),setHoveredBlob:M=>o(T=>({...T!=null?T:vt(),hoveredBlob:M})),setClickedObject:M=>o(T=>({...T!=null?T:vt(),clickedObject:M})),setAnimationsEnabled:M=>o(T=>({...T!=null?T:vt(),animationsEnabled:M}))}),[r]);return s.createElement(oi.Provider,{value:t},s.createElement(wi.Provider,{value:k},s.createElement(yi.Provider,{value:y},s.createElement(ka.Provider,{value:{searchText:i,setSearchText:u,searchResults:f,setSearchResults:d}},s.createElement(xi.Provider,{value:{path:p,setPath:m}},s.createElement(ri.Provider,{value:{clickedObject:w,setClickedObject:A}},e))))))}b();var _t=ee(he());var MM=q(ge)`
214
+ display: flex;
215
+ flex-direction: column;
216
+ `;function AM(e,t){let r=[];function o(i){for(let u of i.children)u.name.toLowerCase().includes(t.toLowerCase())&&t?(r.push(u),u.isSearchResult=!0):u.isSearchResult=!1,u.type==="tree"&&o(u)}return o(e),r}function Ca(){let e=(0,_t.useRef)(null),{searchText:t,setSearchText:r,searchResults:o,setSearchResults:i}=zd(),[u,f]=(0,_t.useState)(""),d=st(),{analyzerData:p}=Ae(),{setPath:m}=Qe(),{setClickedObject:w}=We();function A(y){if(w(y),y.type==="tree")m(y.path);else{let M=Es(y.path);m(Os(y.path.split(M)).join(M))}}function k(){r(u),i(AM(p.commit.tree,u))}return Ss(()=>k(),200,[u]),(0,_t.useEffect)(()=>{let y=M=>{var T;M.ctrlKey&&M.key==="f"&&(M.preventDefault(),(T=e.current)==null||T.focus())};return document.body.addEventListener("keydown",y),()=>{document.body.removeEventListener("keydown",y)}},[]),s.createElement(MM,null,s.createElement(ys,{ref:e,id:d,value:u,type:"search",placeholder:"Search for a file or folder...",onChange:y=>{f(y.target.value)}}),t.length>0?s.createElement(s.Fragment,null,s.createElement(Ft,null,o.length," results"),o.length>0?s.createElement(V,null):null):null,o.map(y=>s.createElement(_t.Fragment,{key:y.path},s.createElement(vs,{title:y.path,value:y.path,onClick:()=>A(y)},y.type==="tree"?s.createElement(fo,{display:"inline-block",height:"1rem"}):s.createElement(ds,{display:"inline-block",height:"1rem"}),s.createElement("span",null,y.name)),s.createElement(V,{xs:!0}))))}b();var vn=q.aside`
217
+ overflow-y: auto;
218
+ display: flex;
219
+ flex-direction: column;
220
+ `;function Sa(e){return s.createElement(vn,null,e.children)}b();var Wd=ee(he());function Rd({visible:e,onClose:t}){var J;let{repo:r,analyzerData:o,truckConfig:i}=Ae(),u=os(),{authors:f}=o,d=(J=i.unionedAuthors)!=null?J:[],[p,m]=(0,Wd.useState)([]),w=d.reduce((D,z)=>[...D,...z],[]).sort(Ma);function A(D){let z=d.filter((le,fe)=>fe!==D),R=new FormData;R.append("unionedAuthors",JSON.stringify(z)),u(R,{action:`/${bo(r.name,r.currentHead)}`,method:"post"})}function k(){if(p.length===0)return;let D=new FormData;D.append("unionedAuthors",JSON.stringify([...d,p])),u(D,{action:`/${bo(r.name,r.currentHead)}`,method:"post"}),m([])}function y(D,z){let R=d.map((fe,me)=>me===z?[D,...fe.filter(be=>be!==D)]:fe),le=new FormData;le.append("unionedAuthors",JSON.stringify(R)),u(le,{action:`/${bo(r.name,r.currentHead)}`,method:"post"})}let M=mt(),T=M.state!=="idle",[,$]=ot(),F=f.filter(D=>!w.includes(D)).slice(0).sort(Ma);function I(D){D.target===D.currentTarget&&t()}Ms("Escape",t);let H=D=>{var z;return(z=$.get(D))!=null?z:"#333"};if(!e)return null;return s.createElement(PM,{onClick:I},s.createElement($M,null,s.createElement(LM,null,s.createElement(_M,null,"Merge duplicate users")),s.createElement(V,{xl:!0}),s.createElement("h3",null,"Ungrouped users"),s.createElement(V,{sm:!0}),s.createElement("p",null,F.length===0?"All detected users have been grouped":"Select the users that you know are the same person"),s.createElement(V,{xl:!0}),s.createElement(EM,null,F.map(D=>s.createElement(TM,{key:D,checked:p.includes(D),onChange:z=>{let R=z.target.checked?[...p,D]:p.filter(le=>le!==D);m(R)}},s.createElement(Ud,null,s.createElement(bt,{dotColor:H(D)}),s.createElement(V,{horizontal:!0}),D)))),s.createElement(V,{xl:!0}),F.length>0?s.createElement(ti,null,s.createElement(Me,{onClick:k,title:"Merge the selected users",disabled:T||p.length===0},s.createElement(ss,{display:"inline-block",height:"1rem"}),"Merge")):null,s.createElement(V,null),s.createElement("h3",null,"Grouped users"),s.createElement(V,{sm:!0}),s.createElement(OM,null,d.length===0?s.createElement("p",null,"There are no grouped users"):d.map((D,z)=>{let R=D[0],le=M.state!=="idle",fe=H(R);return s.createElement(jM,{key:z},s.createElement(Ud,null,s.createElement(bt,{dotColor:fe}),s.createElement(V,{horizontal:!0}),s.createElement("b",null,R)),s.createElement(V,null),D.slice(1).sort(Ma).map(me=>s.createElement(j,{key:me,alias:me,onClick:()=>y(me,z),disabled:le})),s.createElement(Tr,null),s.createElement(ti,null,s.createElement(Tr,null),s.createElement(Me,{onClick:()=>A(z),title:"Unmerge this group",disabled:le},"Unmerge")))})),s.createElement(go,{onClick:t})));function j({alias:D,onClick:z,disabled:R}){return s.createElement(FM,{key:D},s.createElement("div",null,s.createElement(DM,{disabled:R,onClick:z,title:"Make display name for this group"},s.createElement(Do,{display:"inline-block",height:"1rem"}),s.createElement(Ar,null,D))))}}function TM({children:e,checked:t,onChange:r}){let o=st();return s.createElement(BM,null,s.createElement(IM,{checked:t,onChange:r,id:o}),s.createElement(Ar,{htmlFor:o},e))}var Ma=(e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()),PM=q.div`
221
+ position: fixed;
222
+ inset: 0;
223
+ padding: calc(4 * var(--unit));
224
+ background-color: hsla(0, 0%, 0%, 0.5);
225
+ `,$M=q(ge)`
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
+ `,LM=q.div``,_M=q.h2``,OM=q.div`
234
+ display: grid;
235
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
236
+ grid-gap: var(--unit);
237
+ `,EM=q.div`
238
+ overflow-y: auto;
239
+ `,jM=q(ge)`
240
+ margin: 0;
241
+ display: flex;
242
+ flex-direction: column;
243
+ `,Ud=q.div`
244
+ display: inline-flex;
245
+ flex-direction: row;
246
+ place-items: center;
247
+ line-height: 100%;
248
+ margin: 0px;
249
+ `,DM=q(mo)`
250
+ grid-auto-flow: column;
251
+ & > svg {
252
+ opacity: 0;
253
+ }
254
+ &:hover > svg {
255
+ opacity: 1;
256
+ }
257
+ `,FM=q.div`
258
+ display: flex;
259
+ `,BM=q.div``,IM=q.input.attrs({type:"checkbox"})``;var qM=({error:e})=>(console.error(e.message),console.error(e.stack),s.createElement(Yd,{isFullscreen:!1},s.createElement("div",null),s.createElement(ge,null,s.createElement("h1",null,"An error occured!"),s.createElement("p",null,"See console for more infomation."),s.createElement(ei,null,e.stack),s.createElement("div",null,s.createElement(Mr,{to:"."},"Retry")),s.createElement("div",null,s.createElement(Mr,{to:".."},"Go back")))));function Qd(e){window.open(e,"_blank")}function zM(){return s.createElement(ge,null,s.createElement(gs,null,s.createElement(cs,{display:"inline-block",height:"1rem"}),s.createElement(gt,null,"Help improve Git Truck")),s.createElement(V,{xl:!0}),s.createElement(Me,{onClick:()=>Qd("https://docs.google.com/forms/d/e/1FAIpQLSclLnUCPb0wLZx5RulQLaI_N_4wjNkd6z7YLkA3BzNVFjfiEg/viewform?usp=sf_link")},"Answer questionnaire"),s.createElement(V,null),s.createElement(Me,{onClick:()=>Qd("https://github.com/git-truck/git-truck/issues/new?template=user-issue.md")},"Open an issue"))}function VM(){let{gitTruckInfo:e}=Ae();return s.createElement(ge,null,s.createElement("p",null,"Update available: ",e.latestVersion),s.createElement(Ft,null,"Currently installed: ",e.version),s.createElement(Ft,null,"To update, close application and run: ",s.createElement(ei,{inline:!0},"npx git-truck@latest")))}function Kd(){let e=ns(),{analyzerData:t,gitTruckInfo:r}=e,[o,i]=(0,Xd.useState)(!1),[u,f]=rr(!1),d=()=>f(!0);return t?s.createElement(Vd,{data:e},s.createElement(Yd,{isFullscreen:o},s.createElement(Sa,null,s.createElement(vc,null),s.createElement(zM,null),s.createElement(qd,null),s.createElement(Ca,null),s.createElement(V,null)),typeof document!="undefined"?s.createElement(Td,{fullscreenState:[o,i]}):s.createElement("div",null),s.createElement(Sa,null,r.latestVersion&&ms(r.latestVersion,r.version)===1?s.createElement(VM,null):null,t.hiddenFiles.length>0?s.createElement(yc,null):null,s.createElement(bc,{showUnionAuthorsModal:d}),s.createElement(Tr,null),s.createElement(kc,{showUnionAuthorsModal:d}))),s.createElement(Rd,{visible:u,onClose:()=>{f(!1)}})):null}var Yd=q.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
+ & > ${fa} {
268
+ grid-area: main;
269
+ }
270
+
271
+ & > ${vn}:first-of-type() {
272
+ grid-area: left;
273
+ }
274
+
275
+ & > ${vn}: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{qM as ErrorBoundary,Kd 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
+ */