git-truck 1.2.0 → 1.2.2
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.
- package/README.md +15 -18
- package/build/index.js +199 -177
- package/cli.js +8 -4
- package/package.json +1 -1
- package/public/build/_shared/chunk-CWCEXXYS.js +1 -0
- package/public/build/_shared/{chunk-7N2WUEGE.js → chunk-Y7QOL3BF.js} +7 -3
- package/public/build/{manifest-C3317511.js → manifest-170B0F78.js} +1 -1
- package/public/build/{root-JP3CV4WY.js → root-4FO5NL4Q.js} +1 -1
- package/public/build/routes/{$repo.$-QBHUPVJP.js → $repo.$-5L6E3AFW.js} +34 -34
- package/public/build/routes/{index-UFMJKIDU.js → index-YLUZZH4I.js} +1 -1
- package/public/build/_shared/chunk-YLJSRSGG.js +0 -1
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import{a as kb}from"/build/_shared/chunk-XMAWJ27N.js";import{b as ks}from"/build/_shared/chunk-2EHCKJST.js";import{a as Sb,b as Cb,c as Mb,d as Ab,e as G,f as Gs,g as Hs,h as zs,i as qs,j as Vs,k as Us,l as Ws,m as Oo,n as Xs}from"/build/_shared/chunk-YLJSRSGG.js";import{A as xe,B as Ir,C as Ds,D as gi,E as Lt,F as fr,G as Fs,H as Bs,I as ft,J as tt,K as bi,L as Nr,M as Is,O as Ns,Q as vi,a as Co,b as hi,c as N,d as Mo,e as Ss,f as mi,g as Ao,h as Cs,i as Ms,j as As,k as To,l as Ts,m as _s,n as Ls,o as Ps,p as Os,q as Es,r as _o,s as _t,t as Rs,u as $s,v as qt,w as Oe,x as Lo,y as js,z as Po}from"/build/_shared/chunk-7N2WUEGE.js";import{b as ne,c as R,d as ee,e as So,f as vs,g as ur,h as ys,k as Br,o as ut,p as xs,q as ws,r as Tt,v as X}from"/build/_shared/chunk-2BPXJFRU.js";var pc=ne((z1,dc)=>{dc.exports={}});var mc=ne((q1,hc)=>{hc.exports={}});var xc=ne(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.default=void 0;var Gb={sum:function(t){return t.reduce(function(r,o){return r+o})}},Hb=Gb;No.default=Hb});var Go=ne((t2,wc)=>{function zb(e){return Object.prototype.toString.call(e).slice(8,-1)}wc.exports=zb});var Ai=ne((r2,kc)=>{function qb(e){return!!e&&typeof e=="object"&&e.constructor===Object}kc.exports=qb});var Ho=ne((o2,Sc)=>{function Vb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Sc.exports=Vb});var Tc=ne((n2,Ac)=>{var Ub=Ho(),zo,Mc;function Wb(){Mc=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],zo=!0;for(var e in{toString:null})zo=!1}function Xb(e,t,r){var o,i=0;zo==null&&Wb();for(o in e)if(Cc(t,e,o,r)===!1)break;if(zo)for(var l=e.constructor,c=!!l&&e===l.prototype;(o=Mc[i++])&&!((o!=="constructor"||!c&&Ub(e,o))&&e[o]!==Object.prototype[o]&&Cc(t,e,o,r)===!1););}function Cc(e,t,r,o){return e.call(o,t[r],r,t)}Ac.exports=Xb});var Gr=ne((i2,_c)=>{var Qb=Ho(),Jb=Tc();function Kb(e,t,r){Jb(e,function(o,i){if(Qb(e,i))return t.call(r,e[i],i,e)})}_c.exports=Kb});var Pc=ne((a2,Lc)=>{var Yb=Gr();function Zb(e,t){for(var r=0,o=arguments.length,i;++r<o;)i=arguments[r],i!=null&&Yb(i,e0,e);return e}function e0(e,t){this[t]=e}Lc.exports=Zb});var Ec=ne((l2,Oc)=>{var t0=Go(),r0=Ai(),o0=Pc();function n0(e){switch(t0(e)){case"Object":return i0(e);case"Array":return s0(e);case"RegExp":return a0(e);case"Date":return l0(e);default:return e}}function i0(e){return r0(e)?o0({},e):e}function a0(e){var t="";return t+=e.multiline?"m":"",t+=e.global?"g":"",t+=e.ignoreCase?"i":"",new RegExp(e.source,t)}function l0(e){return new Date(+e)}function s0(e){return e.slice()}Oc.exports=n0});var $c=ne((s2,Rc)=>{var c0=Ec(),u0=Gr(),f0=Go(),d0=Ai();function Ti(e,t){switch(f0(e)){case"Object":return p0(e,t);case"Array":return h0(e,t);default:return c0(e)}}function p0(e,t){if(d0(e)){var r={};return u0(e,function(o,i){this[i]=Ti(o,t)},r),r}else return t?t(e):e}function h0(e,t){for(var r=[],o=-1,i=e.length,l;++o<i;)r[o]=Ti(e[o],t);return r}Rc.exports=Ti});var qo=ne((c2,jc)=>{function m0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}jc.exports=m0});var _i=ne((u2,Dc)=>{var g0=Go();function b0(e,t){return g0(e)===t}Dc.exports=b0});var Li=ne((f2,Fc)=>{var v0=_i();function y0(e){return v0(e,"Object")}Fc.exports=y0});var Vo=ne((d2,Bc)=>{var x0=_i(),w0=Array.isArray||function(e){return x0(e,"Array")};Bc.exports=w0});var Nc=ne((p2,Ic)=>{function k0(e){return e}Ic.exports=k0});var Hc=ne((h2,Gc)=>{function S0(e){return function(t){return t[e]}}Gc.exports=S0});var Vc=ne((m2,qc)=>{var C0=Gr(),zc=Vo();function M0(e,t){for(var r=-1,o=e.length;++r<o;)if(Pi(e[r],t))return!0;return!1}function A0(e,t){for(var r=-1,o=t.length;++r<o;)if(!M0(e,t[r]))return!1;return!0}function T0(e,t){var r=!0;return C0(t,function(o,i){if(!Pi(e[i],o))return r=!1}),r}function Pi(e,t){return e&&typeof e=="object"&&t&&typeof t=="object"?zc(e)&&zc(t)?A0(e,t):T0(e,t):e===t}qc.exports=Pi});var Oi=ne((g2,Uc)=>{var _0=Nc(),L0=Hc(),P0=Vc();function O0(e,t){if(e==null)return _0;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 P0(r,e)};case"string":case"number":return L0(e)}}Uc.exports=O0});var Xc=ne((b2,Wc)=>{var E0=Gr(),R0=Oi();function $0(e,t,r){t=R0(t,r);var o=!0;return E0(e,function(i,l){if(!t(i,l,e))return o=!1,!1}),o}Wc.exports=$0});var Zc=ne((v2,Yc)=>{var Kc=Ho(),Qc=Xc(),Jc=Li(),j0=qo();function D0(e){return function(t,r){return Kc(this,r)&&e(t,this[r])}}function F0(e,t){return Kc(this,t)}function B0(e,t,r){return r=r||j0,!Jc(e)||!Jc(t)?r(e,t):Qc(e,D0(r),t)&&Qc(t,F0,e)}Yc.exports=B0});var tu=ne((y2,eu)=>{var I0=Oi();function N0(e,t,r){t=I0(t,r);var o=!0;if(e==null)return o;for(var i=-1,l=e.length;++i<l;)if(!t(e[i],i,e)){o=!1;break}return o}eu.exports=N0});var nu=ne((x2,ou)=>{var G0=qo(),ru=Vo(),H0=tu();function z0(e,t,r){return r=r||G0,!ru(e)||!ru(t)?r(e,t):e.length!==t.length?!1:H0(e,q0(r),t)}function q0(e){return function(t,r){return r in this&&e(t,this[r])}}ou.exports=z0});var cu=ne((w2,su)=>{var V0=qo(),iu=Li(),au=Vo(),U0=Zc(),W0=nu();function lu(e,t,r){r=r||V0;var o=iu(e)&&iu(t),i=!o&&au(e)&&au(t);if(!o&&!i)return r(e,t);function l(f,h){return lu(f,h,r)}var c=o?U0:W0;return c(e,t,l)}su.exports=lu});var uu=ne((Ei,Ri)=>{(function(e,t){typeof Ei=="object"&&typeof Ri<"u"?Ri.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.chroma=t())})(Ei,function(){"use strict";for(var e=function(n,a,s){return a===void 0&&(a=0),s===void 0&&(s=1),n<a?a:n>s?s:n},t=e,r=function(n){n._clipped=!1,n._unclipped=n.slice(0);for(var a=0;a<=3;a++)a<3?((n[a]<0||n[a]>255)&&(n._clipped=!0),n[a]=t(n[a],0,255)):a===3&&(n[a]=t(n[a],0,1));return n},o={},i=0,l=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];i<l.length;i+=1){var c=l[i];o["[object "+c+"]"]=c.toLowerCase()}var f=function(n){return o[Object.prototype.toString.call(n)]||"object"},h=f,p=function(n,a){return a===void 0&&(a=null),n.length>=3?Array.prototype.slice.call(n):h(n[0])=="object"&&a?a.split("").filter(function(s){return n[0][s]!==void 0}).map(function(s){return n[0][s]}):n[0]},g=f,k=function(n){if(n.length<2)return null;var a=n.length-1;return g(n[a])=="string"?n[a].toLowerCase():null},y=Math.PI,v={clip_rgb:r,limit:e,type:f,unpack:p,last:k,PI:y,TWOPI:y*2,PITHIRD:y/3,DEG2RAD:y/180,RAD2DEG:180/y},S={format:{},autodetect:[]},M=v.last,P=v.clip_rgb,j=v.type,B=S,H=function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];var u=this;if(j(a[0])==="object"&&a[0].constructor&&a[0].constructor===this.constructor)return a[0];var m=M(a),b=!1;if(!m){b=!0,B.sorted||(B.autodetect=B.autodetect.sort(function(A,D){return D.p-A.p}),B.sorted=!0);for(var d=0,x=B.autodetect;d<x.length;d+=1){var w=x[d];if(m=w.test.apply(w,a),m)break}}if(B.format[m]){var C=B.format[m].apply(null,b?a:a.slice(0,-1));u._rgb=P(C)}else throw new Error("unknown format: "+a);u._rgb.length===3&&u._rgb.push(1)};H.prototype.toString=function(){return j(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var L=H,W=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(W.Color,[null].concat(n)))};W.Color=L,W.version="2.4.2";var $=W,ie=v.unpack,ae=Math.max,me=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=ie(n,"rgb"),u=s[0],m=s[1],b=s[2];u=u/255,m=m/255,b=b/255;var d=1-ae(u,ae(m,b)),x=d<1?1/(1-d):0,w=(1-u-d)*x,C=(1-m-d)*x,A=(1-b-d)*x;return[w,C,A,d]},fe=me,be=v.unpack,we=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=be(n,"cmyk");var s=n[0],u=n[1],m=n[2],b=n[3],d=n.length>4?n[4]:1;return b===1?[0,0,0,d]:[s>=1?0:255*(1-s)*(1-b),u>=1?0:255*(1-u)*(1-b),m>=1?0:255*(1-m)*(1-b),d]},Re=we,kt=$,lt=L,Er=S,Rr=v.unpack,Dn=v.type,Fn=fe;lt.prototype.cmyk=function(){return Fn(this._rgb)},kt.cmyk=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(lt,[null].concat(n,["cmyk"])))},Er.format.cmyk=Re,Er.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Rr(n,"cmyk"),Dn(n)==="array"&&n.length===4)return"cmyk"}});var Bn=v.unpack,Nt=v.last,$r=function(n){return Math.round(n*100)/100},up=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Bn(n,"hsla"),u=Nt(n)||"lsa";return s[0]=$r(s[0]||0),s[1]=$r(s[1]*100)+"%",s[2]=$r(s[2]*100)+"%",u==="hsla"||s.length>3&&s[3]<1?(s[3]=s.length>3?s[3]:1,u="hsla"):s.length=3,u+"("+s.join(",")+")"},fp=up,dp=v.unpack,pp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=dp(n,"rgba");var s=n[0],u=n[1],m=n[2];s/=255,u/=255,m/=255;var b=Math.min(s,u,m),d=Math.max(s,u,m),x=(d+b)/2,w,C;return d===b?(w=0,C=Number.NaN):w=x<.5?(d-b)/(d+b):(d-b)/(2-d-b),s==d?C=(u-m)/(d-b):u==d?C=2+(m-s)/(d-b):m==d&&(C=4+(s-u)/(d-b)),C*=60,C<0&&(C+=360),n.length>3&&n[3]!==void 0?[C,w,x,n[3]]:[C,w,x]},qa=pp,hp=v.unpack,mp=v.last,gp=fp,bp=qa,In=Math.round,vp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=hp(n,"rgba"),u=mp(n)||"rgb";return u.substr(0,3)=="hsl"?gp(bp(s),u):(s[0]=In(s[0]),s[1]=In(s[1]),s[2]=In(s[2]),(u==="rgba"||s.length>3&&s[3]<1)&&(s[3]=s.length>3?s[3]:1,u="rgba"),u+"("+s.slice(0,u==="rgb"?3:4).join(",")+")")},yp=vp,xp=v.unpack,Nn=Math.round,wp=function(){for(var n,a=[],s=arguments.length;s--;)a[s]=arguments[s];a=xp(a,"hsl");var u=a[0],m=a[1],b=a[2],d,x,w;if(m===0)d=x=w=b*255;else{var C=[0,0,0],A=[0,0,0],D=b<.5?b*(1+m):b+m-b*m,T=2*b-D,I=u/360;C[0]=I+1/3,C[1]=I,C[2]=I-1/3;for(var F=0;F<3;F++)C[F]<0&&(C[F]+=1),C[F]>1&&(C[F]-=1),6*C[F]<1?A[F]=T+(D-T)*6*C[F]:2*C[F]<1?A[F]=D:3*C[F]<2?A[F]=T+(D-T)*(2/3-C[F])*6:A[F]=T;n=[Nn(A[0]*255),Nn(A[1]*255),Nn(A[2]*255)],d=n[0],x=n[1],w=n[2]}return a.length>3?[d,x,w,a[3]]:[d,x,w,1]},Va=wp,Ua=Va,Wa=S,Xa=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Qa=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Ja=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Ka=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ya=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Za=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,el=Math.round,tl=function(n){n=n.toLowerCase().trim();var a;if(Wa.format.named)try{return Wa.format.named(n)}catch{}if(a=n.match(Xa)){for(var s=a.slice(1,4),u=0;u<3;u++)s[u]=+s[u];return s[3]=1,s}if(a=n.match(Qa)){for(var m=a.slice(1,5),b=0;b<4;b++)m[b]=+m[b];return m}if(a=n.match(Ja)){for(var d=a.slice(1,4),x=0;x<3;x++)d[x]=el(d[x]*2.55);return d[3]=1,d}if(a=n.match(Ka)){for(var w=a.slice(1,5),C=0;C<3;C++)w[C]=el(w[C]*2.55);return w[3]=+w[3],w}if(a=n.match(Ya)){var A=a.slice(1,4);A[1]*=.01,A[2]*=.01;var D=Ua(A);return D[3]=1,D}if(a=n.match(Za)){var T=a.slice(1,4);T[1]*=.01,T[2]*=.01;var I=Ua(T);return I[3]=+a[4],I}};tl.test=function(n){return Xa.test(n)||Qa.test(n)||Ja.test(n)||Ka.test(n)||Ya.test(n)||Za.test(n)};var kp=tl,Sp=$,rl=L,ol=S,Cp=v.type,Mp=yp,nl=kp;rl.prototype.css=function(n){return Mp(this._rgb,n)},Sp.css=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(rl,[null].concat(n,["css"])))},ol.format.css=nl,ol.autodetect.push({p:5,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&Cp(n)==="string"&&nl.test(n))return"css"}});var il=L,Ap=$,Tp=S,_p=v.unpack;Tp.format.gl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=_p(n,"rgba");return s[0]*=255,s[1]*=255,s[2]*=255,s},Ap.gl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(il,[null].concat(n,["gl"])))},il.prototype.gl=function(){var n=this._rgb;return[n[0]/255,n[1]/255,n[2]/255,n[3]]};var Lp=v.unpack,Pp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Lp(n,"rgb"),u=s[0],m=s[1],b=s[2],d=Math.min(u,m,b),x=Math.max(u,m,b),w=x-d,C=w*100/255,A=d/(255-w)*100,D;return w===0?D=Number.NaN:(u===x&&(D=(m-b)/w),m===x&&(D=2+(b-u)/w),b===x&&(D=4+(u-m)/w),D*=60,D<0&&(D+=360)),[D,C,A]},Op=Pp,Ep=v.unpack,Rp=Math.floor,$p=function(){for(var n,a,s,u,m,b,d=[],x=arguments.length;x--;)d[x]=arguments[x];d=Ep(d,"hcg");var w=d[0],C=d[1],A=d[2],D,T,I;A=A*255;var F=C*255;if(C===0)D=T=I=A;else{w===360&&(w=0),w>360&&(w-=360),w<0&&(w+=360),w/=60;var Q=Rp(w),Z=w-Q,re=A*(1-C),le=re+F*(1-Z),Te=re+F*Z,Me=re+F;switch(Q){case 0:n=[Me,Te,re],D=n[0],T=n[1],I=n[2];break;case 1:a=[le,Me,re],D=a[0],T=a[1],I=a[2];break;case 2:s=[re,Me,Te],D=s[0],T=s[1],I=s[2];break;case 3:u=[re,le,Me],D=u[0],T=u[1],I=u[2];break;case 4:m=[Te,re,Me],D=m[0],T=m[1],I=m[2];break;case 5:b=[Me,re,le],D=b[0],T=b[1],I=b[2];break}}return[D,T,I,d.length>3?d[3]:1]},jp=$p,Dp=v.unpack,Fp=v.type,Bp=$,al=L,ll=S,Ip=Op;al.prototype.hcg=function(){return Ip(this._rgb)},Bp.hcg=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(al,[null].concat(n,["hcg"])))},ll.format.hcg=jp,ll.autodetect.push({p:1,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Dp(n,"hcg"),Fp(n)==="array"&&n.length===3)return"hcg"}});var Np=v.unpack,Gp=v.last,ho=Math.round,Hp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Np(n,"rgba"),u=s[0],m=s[1],b=s[2],d=s[3],x=Gp(n)||"auto";d===void 0&&(d=1),x==="auto"&&(x=d<1?"rgba":"rgb"),u=ho(u),m=ho(m),b=ho(b);var w=u<<16|m<<8|b,C="000000"+w.toString(16);C=C.substr(C.length-6);var A="0"+ho(d*255).toString(16);switch(A=A.substr(A.length-2),x.toLowerCase()){case"rgba":return"#"+C+A;case"argb":return"#"+A+C;default:return"#"+C}},sl=Hp,zp=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,qp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Vp=function(n){if(n.match(zp)){(n.length===4||n.length===7)&&(n=n.substr(1)),n.length===3&&(n=n.split(""),n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);var a=parseInt(n,16),s=a>>16,u=a>>8&255,m=a&255;return[s,u,m,1]}if(n.match(qp)){(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 b=parseInt(n,16),d=b>>24&255,x=b>>16&255,w=b>>8&255,C=Math.round((b&255)/255*100)/100;return[d,x,w,C]}throw new Error("unknown hex color: "+n)},cl=Vp,Up=$,ul=L,Wp=v.type,fl=S,Xp=sl;ul.prototype.hex=function(n){return Xp(this._rgb,n)},Up.hex=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ul,[null].concat(n,["hex"])))},fl.format.hex=cl,fl.autodetect.push({p:4,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&Wp(n)==="string"&&[3,4,5,6,7,8,9].indexOf(n.length)>=0)return"hex"}});var Qp=v.unpack,dl=v.TWOPI,Jp=Math.min,Kp=Math.sqrt,Yp=Math.acos,Zp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Qp(n,"rgb"),u=s[0],m=s[1],b=s[2];u/=255,m/=255,b/=255;var d,x=Jp(u,m,b),w=(u+m+b)/3,C=w>0?1-x/w:0;return C===0?d=NaN:(d=(u-m+(u-b))/2,d/=Kp((u-m)*(u-m)+(u-b)*(m-b)),d=Yp(d),b>m&&(d=dl-d),d/=dl),[d*360,C,w]},eh=Zp,th=v.unpack,Gn=v.limit,er=v.TWOPI,Hn=v.PITHIRD,tr=Math.cos,rh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=th(n,"hsi");var s=n[0],u=n[1],m=n[2],b,d,x;return isNaN(s)&&(s=0),isNaN(u)&&(u=0),s>360&&(s-=360),s<0&&(s+=360),s/=360,s<1/3?(x=(1-u)/3,b=(1+u*tr(er*s)/tr(Hn-er*s))/3,d=1-(x+b)):s<2/3?(s-=1/3,b=(1-u)/3,d=(1+u*tr(er*s)/tr(Hn-er*s))/3,x=1-(b+d)):(s-=2/3,d=(1-u)/3,x=(1+u*tr(er*s)/tr(Hn-er*s))/3,b=1-(d+x)),b=Gn(m*b*3),d=Gn(m*d*3),x=Gn(m*x*3),[b*255,d*255,x*255,n.length>3?n[3]:1]},oh=rh,nh=v.unpack,ih=v.type,ah=$,pl=L,hl=S,lh=eh;pl.prototype.hsi=function(){return lh(this._rgb)},ah.hsi=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(pl,[null].concat(n,["hsi"])))},hl.format.hsi=oh,hl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=nh(n,"hsi"),ih(n)==="array"&&n.length===3)return"hsi"}});var sh=v.unpack,ch=v.type,uh=$,ml=L,gl=S,fh=qa;ml.prototype.hsl=function(){return fh(this._rgb)},uh.hsl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ml,[null].concat(n,["hsl"])))},gl.format.hsl=Va,gl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=sh(n,"hsl"),ch(n)==="array"&&n.length===3)return"hsl"}});var dh=v.unpack,ph=Math.min,hh=Math.max,mh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=dh(n,"rgb");var s=n[0],u=n[1],m=n[2],b=ph(s,u,m),d=hh(s,u,m),x=d-b,w,C,A;return A=d/255,d===0?(w=Number.NaN,C=0):(C=x/d,s===d&&(w=(u-m)/x),u===d&&(w=2+(m-s)/x),m===d&&(w=4+(s-u)/x),w*=60,w<0&&(w+=360)),[w,C,A]},gh=mh,bh=v.unpack,vh=Math.floor,yh=function(){for(var n,a,s,u,m,b,d=[],x=arguments.length;x--;)d[x]=arguments[x];d=bh(d,"hsv");var w=d[0],C=d[1],A=d[2],D,T,I;if(A*=255,C===0)D=T=I=A;else{w===360&&(w=0),w>360&&(w-=360),w<0&&(w+=360),w/=60;var F=vh(w),Q=w-F,Z=A*(1-C),re=A*(1-C*Q),le=A*(1-C*(1-Q));switch(F){case 0:n=[A,le,Z],D=n[0],T=n[1],I=n[2];break;case 1:a=[re,A,Z],D=a[0],T=a[1],I=a[2];break;case 2:s=[Z,A,le],D=s[0],T=s[1],I=s[2];break;case 3:u=[Z,re,A],D=u[0],T=u[1],I=u[2];break;case 4:m=[le,Z,A],D=m[0],T=m[1],I=m[2];break;case 5:b=[A,Z,re],D=b[0],T=b[1],I=b[2];break}}return[D,T,I,d.length>3?d[3]:1]},xh=yh,wh=v.unpack,kh=v.type,Sh=$,bl=L,vl=S,Ch=gh;bl.prototype.hsv=function(){return Ch(this._rgb)},Sh.hsv=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(bl,[null].concat(n,["hsv"])))},vl.format.hsv=xh,vl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=wh(n,"hsv"),kh(n)==="array"&&n.length===3)return"hsv"}});var mo={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},rr=mo,Mh=v.unpack,yl=Math.pow,Ah=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Mh(n,"rgb"),u=s[0],m=s[1],b=s[2],d=Th(u,m,b),x=d[0],w=d[1],C=d[2],A=116*w-16;return[A<0?0:A,500*(x-w),200*(w-C)]},zn=function(n){return(n/=255)<=.04045?n/12.92:yl((n+.055)/1.055,2.4)},qn=function(n){return n>rr.t3?yl(n,1/3):n/rr.t2+rr.t0},Th=function(n,a,s){n=zn(n),a=zn(a),s=zn(s);var u=qn((.4124564*n+.3575761*a+.1804375*s)/rr.Xn),m=qn((.2126729*n+.7151522*a+.072175*s)/rr.Yn),b=qn((.0193339*n+.119192*a+.9503041*s)/rr.Zn);return[u,m,b]},xl=Ah,or=mo,_h=v.unpack,Lh=Math.pow,Ph=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=_h(n,"lab");var s=n[0],u=n[1],m=n[2],b,d,x,w,C,A;return d=(s+16)/116,b=isNaN(u)?d:d+u/500,x=isNaN(m)?d:d-m/200,d=or.Yn*Un(d),b=or.Xn*Un(b),x=or.Zn*Un(x),w=Vn(3.2404542*b-1.5371385*d-.4985314*x),C=Vn(-.969266*b+1.8760108*d+.041556*x),A=Vn(.0556434*b-.2040259*d+1.0572252*x),[w,C,A,n.length>3?n[3]:1]},Vn=function(n){return 255*(n<=.00304?12.92*n:1.055*Lh(n,1/2.4)-.055)},Un=function(n){return n>or.t1?n*n*n:or.t2*(n-or.t0)},wl=Ph,Oh=v.unpack,Eh=v.type,Rh=$,kl=L,Sl=S,$h=xl;kl.prototype.lab=function(){return $h(this._rgb)},Rh.lab=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(kl,[null].concat(n,["lab"])))},Sl.format.lab=wl,Sl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Oh(n,"lab"),Eh(n)==="array"&&n.length===3)return"lab"}});var jh=v.unpack,Dh=v.RAD2DEG,Fh=Math.sqrt,Bh=Math.atan2,Ih=Math.round,Nh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=jh(n,"lab"),u=s[0],m=s[1],b=s[2],d=Fh(m*m+b*b),x=(Bh(b,m)*Dh+360)%360;return Ih(d*1e4)===0&&(x=Number.NaN),[u,d,x]},Cl=Nh,Gh=v.unpack,Hh=xl,zh=Cl,qh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Gh(n,"rgb"),u=s[0],m=s[1],b=s[2],d=Hh(u,m,b),x=d[0],w=d[1],C=d[2];return zh(x,w,C)},Vh=qh,Uh=v.unpack,Wh=v.DEG2RAD,Xh=Math.sin,Qh=Math.cos,Jh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Uh(n,"lch"),u=s[0],m=s[1],b=s[2];return isNaN(b)&&(b=0),b=b*Wh,[u,Qh(b)*m,Xh(b)*m]},Ml=Jh,Kh=v.unpack,Yh=Ml,Zh=wl,em=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Kh(n,"lch");var s=n[0],u=n[1],m=n[2],b=Yh(s,u,m),d=b[0],x=b[1],w=b[2],C=Zh(d,x,w),A=C[0],D=C[1],T=C[2];return[A,D,T,n.length>3?n[3]:1]},Al=em,tm=v.unpack,rm=Al,om=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=tm(n,"hcl").reverse();return rm.apply(void 0,s)},nm=om,im=v.unpack,am=v.type,Tl=$,go=L,Wn=S,_l=Vh;go.prototype.lch=function(){return _l(this._rgb)},go.prototype.hcl=function(){return _l(this._rgb).reverse()},Tl.lch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(go,[null].concat(n,["lch"])))},Tl.hcl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(go,[null].concat(n,["hcl"])))},Wn.format.lch=Al,Wn.format.hcl=nm,["lch","hcl"].forEach(function(n){return Wn.autodetect.push({p:2,test:function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];if(a=im(a,n),am(a)==="array"&&a.length===3)return n}})});var lm={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"},Ll=lm,sm=L,Pl=S,cm=v.type,jr=Ll,um=cl,fm=sl;sm.prototype.name=function(){for(var n=fm(this._rgb,"rgb"),a=0,s=Object.keys(jr);a<s.length;a+=1){var u=s[a];if(jr[u]===n)return u.toLowerCase()}return n},Pl.format.named=function(n){if(n=n.toLowerCase(),jr[n])return um(jr[n]);throw new Error("unknown color name: "+n)},Pl.autodetect.push({p:5,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&cm(n)==="string"&&jr[n.toLowerCase()])return"named"}});var dm=v.unpack,pm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=dm(n,"rgb"),u=s[0],m=s[1],b=s[2];return(u<<16)+(m<<8)+b},hm=pm,mm=v.type,gm=function(n){if(mm(n)=="number"&&n>=0&&n<=16777215){var a=n>>16,s=n>>8&255,u=n&255;return[a,s,u,1]}throw new Error("unknown num color: "+n)},bm=gm,vm=$,Ol=L,El=S,ym=v.type,xm=hm;Ol.prototype.num=function(){return xm(this._rgb)},vm.num=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Ol,[null].concat(n,["num"])))},El.format.num=bm,El.autodetect.push({p:5,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n.length===1&&ym(n[0])==="number"&&n[0]>=0&&n[0]<=16777215)return"num"}});var wm=$,Xn=L,Rl=S,$l=v.unpack,jl=v.type,Dl=Math.round;Xn.prototype.rgb=function(n){return n===void 0&&(n=!0),n===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Dl)},Xn.prototype.rgba=function(n){return n===void 0&&(n=!0),this._rgb.slice(0,4).map(function(a,s){return s<3?n===!1?a:Dl(a):a})},wm.rgb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Xn,[null].concat(n,["rgb"])))},Rl.format.rgb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=$l(n,"rgba");return s[3]===void 0&&(s[3]=1),s},Rl.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=$l(n,"rgba"),jl(n)==="array"&&(n.length===3||n.length===4&&jl(n[3])=="number"&&n[3]>=0&&n[3]<=1))return"rgb"}});var bo=Math.log,km=function(n){var a=n/100,s,u,m;return a<66?(s=255,u=a<6?0:-155.25485562709179-.44596950469579133*(u=a-2)+104.49216199393888*bo(u),m=a<20?0:-254.76935184120902+.8274096064007395*(m=a-10)+115.67994401066147*bo(m)):(s=351.97690566805693+.114206453784165*(s=a-55)-40.25366309332127*bo(s),u=325.4494125711974+.07943456536662342*(u=a-50)-28.0852963507957*bo(u),m=255),[s,u,m,1]},Fl=km,Sm=Fl,Cm=v.unpack,Mm=Math.round,Am=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];for(var s=Cm(n,"rgb"),u=s[0],m=s[2],b=1e3,d=4e4,x=.4,w;d-b>x;){w=(d+b)*.5;var C=Sm(w);C[2]/C[0]>=m/u?d=w:b=w}return Mm(w)},Tm=Am,Qn=$,vo=L,Jn=S,_m=Tm;vo.prototype.temp=vo.prototype.kelvin=vo.prototype.temperature=function(){return _m(this._rgb)},Qn.temp=Qn.kelvin=Qn.temperature=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(vo,[null].concat(n,["temp"])))},Jn.format.temp=Jn.format.kelvin=Jn.format.temperature=Fl;var Lm=v.unpack,Kn=Math.cbrt,Pm=Math.pow,Om=Math.sign,Em=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Lm(n,"rgb"),u=s[0],m=s[1],b=s[2],d=[Yn(u/255),Yn(m/255),Yn(b/255)],x=d[0],w=d[1],C=d[2],A=Kn(.4122214708*x+.5363325363*w+.0514459929*C),D=Kn(.2119034982*x+.6806995451*w+.1073969566*C),T=Kn(.0883024619*x+.2817188376*w+.6299787005*C);return[.2104542553*A+.793617785*D-.0040720468*T,1.9779984951*A-2.428592205*D+.4505937099*T,.0259040371*A+.7827717662*D-.808675766*T]},Bl=Em;function Yn(n){var a=Math.abs(n);return a<.04045?n/12.92:(Om(n)||1)*Pm((a+.055)/1.055,2.4)}var Rm=v.unpack,yo=Math.pow,$m=Math.sign,jm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Rm(n,"lab");var s=n[0],u=n[1],m=n[2],b=yo(s+.3963377774*u+.2158037573*m,3),d=yo(s-.1055613458*u-.0638541728*m,3),x=yo(s-.0894841775*u-1.291485548*m,3);return[255*Zn(4.0767416621*b-3.3077115913*d+.2309699292*x),255*Zn(-1.2684380046*b+2.6097574011*d-.3413193965*x),255*Zn(-.0041960863*b-.7034186147*d+1.707614701*x),n.length>3?n[3]:1]},Il=jm;function Zn(n){var a=Math.abs(n);return a>.0031308?($m(n)||1)*(1.055*yo(a,1/2.4)-.055):n*12.92}var Dm=v.unpack,Fm=v.type,Bm=$,Nl=L,Gl=S,Im=Bl;Nl.prototype.oklab=function(){return Im(this._rgb)},Bm.oklab=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Nl,[null].concat(n,["oklab"])))},Gl.format.oklab=Il,Gl.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Dm(n,"oklab"),Fm(n)==="array"&&n.length===3)return"oklab"}});var Nm=v.unpack,Gm=Bl,Hm=Cl,zm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Nm(n,"rgb"),u=s[0],m=s[1],b=s[2],d=Gm(u,m,b),x=d[0],w=d[1],C=d[2];return Hm(x,w,C)},qm=zm,Vm=v.unpack,Um=Ml,Wm=Il,Xm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Vm(n,"lch");var s=n[0],u=n[1],m=n[2],b=Um(s,u,m),d=b[0],x=b[1],w=b[2],C=Wm(d,x,w),A=C[0],D=C[1],T=C[2];return[A,D,T,n.length>3?n[3]:1]},Qm=Xm,Jm=v.unpack,Km=v.type,Ym=$,Hl=L,zl=S,Zm=qm;Hl.prototype.oklch=function(){return Zm(this._rgb)},Ym.oklch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Hl,[null].concat(n,["oklch"])))},zl.format.oklch=Qm,zl.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Jm(n,"oklch"),Km(n)==="array"&&n.length===3)return"oklch"}});var ql=L,eg=v.type;ql.prototype.alpha=function(n,a){return a===void 0&&(a=!1),n!==void 0&&eg(n)==="number"?a?(this._rgb[3]=n,this):new ql([this._rgb[0],this._rgb[1],this._rgb[2],n],"rgb"):this._rgb[3]};var tg=L;tg.prototype.clipped=function(){return this._rgb._clipped||!1};var Gt=L,rg=mo;Gt.prototype.darken=function(n){n===void 0&&(n=1);var a=this,s=a.lab();return s[0]-=rg.Kn*n,new Gt(s,"lab").alpha(a.alpha(),!0)},Gt.prototype.brighten=function(n){return n===void 0&&(n=1),this.darken(-n)},Gt.prototype.darker=Gt.prototype.darken,Gt.prototype.brighter=Gt.prototype.brighten;var og=L;og.prototype.get=function(n){var a=n.split("."),s=a[0],u=a[1],m=this[s]();if(u){var b=s.indexOf(u)-(s.substr(0,2)==="ok"?2:0);if(b>-1)return m[b];throw new Error("unknown channel "+u+" in mode "+s)}else return m};var nr=L,ng=v.type,ig=Math.pow,ag=1e-7,lg=20;nr.prototype.luminance=function(n){if(n!==void 0&&ng(n)==="number"){if(n===0)return new nr([0,0,0,this._rgb[3]],"rgb");if(n===1)return new nr([255,255,255,this._rgb[3]],"rgb");var a=this.luminance(),s="rgb",u=lg,m=function(d,x){var w=d.interpolate(x,.5,s),C=w.luminance();return Math.abs(n-C)<ag||!u--?w:C>n?m(d,w):m(w,x)},b=(a>n?m(new nr([0,0,0]),this):m(this,new nr([255,255,255]))).rgb();return new nr(b.concat([this._rgb[3]]))}return sg.apply(void 0,this._rgb.slice(0,3))};var sg=function(n,a,s){return n=ei(n),a=ei(a),s=ei(s),.2126*n+.7152*a+.0722*s},ei=function(n){return n/=255,n<=.03928?n/12.92:ig((n+.055)/1.055,2.4)},Ne={},Vl=L,Ul=v.type,xo=Ne,Wl=function(n,a,s){s===void 0&&(s=.5);for(var u=[],m=arguments.length-3;m-- >0;)u[m]=arguments[m+3];var b=u[0]||"lrgb";if(!xo[b]&&!u.length&&(b=Object.keys(xo)[0]),!xo[b])throw new Error("interpolation mode "+b+" is not defined");return Ul(n)!=="object"&&(n=new Vl(n)),Ul(a)!=="object"&&(a=new Vl(a)),xo[b](n,a,s).alpha(n.alpha()+s*(a.alpha()-n.alpha()))},Xl=L,cg=Wl;Xl.prototype.mix=Xl.prototype.interpolate=function(n,a){a===void 0&&(a=.5);for(var s=[],u=arguments.length-2;u-- >0;)s[u]=arguments[u+2];return cg.apply(void 0,[this,n,a].concat(s))};var Ql=L;Ql.prototype.premultiply=function(n){n===void 0&&(n=!1);var a=this._rgb,s=a[3];return n?(this._rgb=[a[0]*s,a[1]*s,a[2]*s,s],this):new Ql([a[0]*s,a[1]*s,a[2]*s,s],"rgb")};var ti=L,ug=mo;ti.prototype.saturate=function(n){n===void 0&&(n=1);var a=this,s=a.lch();return s[1]+=ug.Kn*n,s[1]<0&&(s[1]=0),new ti(s,"lch").alpha(a.alpha(),!0)},ti.prototype.desaturate=function(n){return n===void 0&&(n=1),this.saturate(-n)};var Jl=L,Kl=v.type;Jl.prototype.set=function(n,a,s){s===void 0&&(s=!1);var u=n.split("."),m=u[0],b=u[1],d=this[m]();if(b){var x=m.indexOf(b)-(m.substr(0,2)==="ok"?2:0);if(x>-1){if(Kl(a)=="string")switch(a.charAt(0)){case"+":d[x]+=+a;break;case"-":d[x]+=+a;break;case"*":d[x]*=+a.substr(1);break;case"/":d[x]/=+a.substr(1);break;default:d[x]=+a}else if(Kl(a)==="number")d[x]=a;else throw new Error("unsupported value for Color.set");var w=new Jl(d,m);return s?(this._rgb=w._rgb,this):w}throw new Error("unknown channel "+b+" in mode "+m)}else return d};var fg=L,dg=function(n,a,s){var u=n._rgb,m=a._rgb;return new fg(u[0]+s*(m[0]-u[0]),u[1]+s*(m[1]-u[1]),u[2]+s*(m[2]-u[2]),"rgb")};Ne.rgb=dg;var pg=L,ri=Math.sqrt,ir=Math.pow,hg=function(n,a,s){var u=n._rgb,m=u[0],b=u[1],d=u[2],x=a._rgb,w=x[0],C=x[1],A=x[2];return new pg(ri(ir(m,2)*(1-s)+ir(w,2)*s),ri(ir(b,2)*(1-s)+ir(C,2)*s),ri(ir(d,2)*(1-s)+ir(A,2)*s),"rgb")};Ne.lrgb=hg;var mg=L,gg=function(n,a,s){var u=n.lab(),m=a.lab();return new mg(u[0]+s*(m[0]-u[0]),u[1]+s*(m[1]-u[1]),u[2]+s*(m[2]-u[2]),"lab")};Ne.lab=gg;var Yl=L,ar=function(n,a,s,u){var m,b,d,x;u==="hsl"?(d=n.hsl(),x=a.hsl()):u==="hsv"?(d=n.hsv(),x=a.hsv()):u==="hcg"?(d=n.hcg(),x=a.hcg()):u==="hsi"?(d=n.hsi(),x=a.hsi()):u==="lch"||u==="hcl"?(u="hcl",d=n.hcl(),x=a.hcl()):u==="oklch"&&(d=n.oklch().reverse(),x=a.oklch().reverse());var w,C,A,D,T,I;(u.substr(0,1)==="h"||u==="oklch")&&(m=d,w=m[0],A=m[1],T=m[2],b=x,C=b[0],D=b[1],I=b[2]);var F,Q,Z,re;return!isNaN(w)&&!isNaN(C)?(C>w&&C-w>180?re=C-(w+360):C<w&&w-C>180?re=C+360-w:re=C-w,Q=w+s*re):isNaN(w)?isNaN(C)?Q=Number.NaN:(Q=C,(T==1||T==0)&&u!="hsv"&&(F=D)):(Q=w,(I==1||I==0)&&u!="hsv"&&(F=A)),F===void 0&&(F=A+s*(D-A)),Z=T+s*(I-T),u==="oklch"?new Yl([Z,F,Q],u):new Yl([Q,F,Z],u)},bg=ar,Zl=function(n,a,s){return bg(n,a,s,"lch")};Ne.lch=Zl,Ne.hcl=Zl;var vg=L,yg=function(n,a,s){var u=n.num(),m=a.num();return new vg(u+s*(m-u),"num")};Ne.num=yg;var xg=ar,wg=function(n,a,s){return xg(n,a,s,"hcg")};Ne.hcg=wg;var kg=ar,Sg=function(n,a,s){return kg(n,a,s,"hsi")};Ne.hsi=Sg;var Cg=ar,Mg=function(n,a,s){return Cg(n,a,s,"hsl")};Ne.hsl=Mg;var Ag=ar,Tg=function(n,a,s){return Ag(n,a,s,"hsv")};Ne.hsv=Tg;var _g=L,Lg=function(n,a,s){var u=n.oklab(),m=a.oklab();return new _g(u[0]+s*(m[0]-u[0]),u[1]+s*(m[1]-u[1]),u[2]+s*(m[2]-u[2]),"oklab")};Ne.oklab=Lg;var Pg=ar,Og=function(n,a,s){return Pg(n,a,s,"oklch")};Ne.oklch=Og;var oi=L,Eg=v.clip_rgb,ni=Math.pow,ii=Math.sqrt,ai=Math.PI,es=Math.cos,ts=Math.sin,Rg=Math.atan2,$g=function(n,a,s){a===void 0&&(a="lrgb"),s===void 0&&(s=null);var u=n.length;s||(s=Array.from(new Array(u)).map(function(){return 1}));var m=u/s.reduce(function(Q,Z){return Q+Z});if(s.forEach(function(Q,Z){s[Z]*=m}),n=n.map(function(Q){return new oi(Q)}),a==="lrgb")return jg(n,s);for(var b=n.shift(),d=b.get(a),x=[],w=0,C=0,A=0;A<d.length;A++)if(d[A]=(d[A]||0)*s[0],x.push(isNaN(d[A])?0:s[0]),a.charAt(A)==="h"&&!isNaN(d[A])){var D=d[A]/180*ai;w+=es(D)*s[0],C+=ts(D)*s[0]}var T=b.alpha()*s[0];n.forEach(function(Q,Z){var re=Q.get(a);T+=Q.alpha()*s[Z+1];for(var le=0;le<d.length;le++)if(!isNaN(re[le]))if(x[le]+=s[Z+1],a.charAt(le)==="h"){var Te=re[le]/180*ai;w+=es(Te)*s[Z+1],C+=ts(Te)*s[Z+1]}else d[le]+=re[le]*s[Z+1]});for(var I=0;I<d.length;I++)if(a.charAt(I)==="h"){for(var F=Rg(C/x[I],w/x[I])/ai*180;F<0;)F+=360;for(;F>=360;)F-=360;d[I]=F}else d[I]=d[I]/x[I];return T/=u,new oi(d,a).alpha(T>.99999?1:T,!0)},jg=function(n,a){for(var s=n.length,u=[0,0,0,0],m=0;m<n.length;m++){var b=n[m],d=a[m]/s,x=b._rgb;u[0]+=ni(x[0],2)*d,u[1]+=ni(x[1],2)*d,u[2]+=ni(x[2],2)*d,u[3]+=x[3]*d}return u[0]=ii(u[0]),u[1]=ii(u[1]),u[2]=ii(u[2]),u[3]>.9999999&&(u[3]=1),new oi(Eg(u))},We=$,lr=v.type,Dg=Math.pow,li=function(n){var a="rgb",s=We("#ccc"),u=0,m=[0,1],b=[],d=[0,0],x=!1,w=[],C=!1,A=0,D=1,T=!1,I={},F=!0,Q=1,Z=function(_){if(_=_||["#fff","#000"],_&&lr(_)==="string"&&We.brewer&&We.brewer[_.toLowerCase()]&&(_=We.brewer[_.toLowerCase()]),lr(_)==="array"){_.length===1&&(_=[_[0],_[0]]),_=_.slice(0);for(var z=0;z<_.length;z++)_[z]=We(_[z]);b.length=0;for(var K=0;K<_.length;K++)b.push(K/(_.length-1))}return Fe(),w=_},re=function(_){if(x!=null){for(var z=x.length-1,K=0;K<z&&_>=x[K];)K++;return K-1}return 0},le=function(_){return _},Te=function(_){return _},Me=function(_,z){var K,J;if(z==null&&(z=!1),isNaN(_)||_===null)return s;if(z)J=_;else if(x&&x.length>2){var _e=re(_);J=_e/(x.length-2)}else D!==A?J=(_-A)/(D-A):J=1;J=Te(J),z||(J=le(J)),Q!==1&&(J=Dg(J,Q)),J=d[0]+J*(1-d[0]-d[1]),J=Math.min(1,Math.max(0,J));var pe=Math.floor(J*1e4);if(F&&I[pe])K=I[pe];else{if(lr(w)==="array")for(var oe=0;oe<b.length;oe++){var se=b[oe];if(J<=se){K=w[oe];break}if(J>=se&&oe===b.length-1){K=w[oe];break}if(J>se&&J<b[oe+1]){J=(J-se)/(b[oe+1]-se),K=We.interpolate(w[oe],w[oe+1],J,a);break}}else lr(w)==="function"&&(K=w(J));F&&(I[pe]=K)}return K},Fe=function(){return I={}};Z(n);var te=function(_){var z=We(Me(_));return C&&z[C]?z[C]():z};return te.classes=function(_){if(_!=null){if(lr(_)==="array")x=_,m=[_[0],_[_.length-1]];else{var z=We.analyze(m);_===0?x=[z.min,z.max]:x=We.limits(z,"e",_)}return te}return x},te.domain=function(_){if(!arguments.length)return m;A=_[0],D=_[_.length-1],b=[];var z=w.length;if(_.length===z&&A!==D)for(var K=0,J=Array.from(_);K<J.length;K+=1){var _e=J[K];b.push((_e-A)/(D-A))}else{for(var pe=0;pe<z;pe++)b.push(pe/(z-1));if(_.length>2){var oe=_.map(function(ce,ue){return ue/(_.length-1)}),se=_.map(function(ce){return(ce-A)/(D-A)});se.every(function(ce,ue){return oe[ue]===ce})||(Te=function(ce){if(ce<=0||ce>=1)return ce;for(var ue=0;ce>=se[ue+1];)ue++;var Qe=(ce-se[ue])/(se[ue+1]-se[ue]),Mt=oe[ue]+Qe*(oe[ue+1]-oe[ue]);return Mt})}}return m=[A,D],te},te.mode=function(_){return arguments.length?(a=_,Fe(),te):a},te.range=function(_,z){return Z(_),te},te.out=function(_){return C=_,te},te.spread=function(_){return arguments.length?(u=_,te):u},te.correctLightness=function(_){return _==null&&(_=!0),T=_,Fe(),T?le=function(z){for(var K=Me(0,!0).lab()[0],J=Me(1,!0).lab()[0],_e=K>J,pe=Me(z,!0).lab()[0],oe=K+(J-K)*z,se=pe-oe,ce=0,ue=1,Qe=20;Math.abs(se)>.01&&Qe-- >0;)(function(){return _e&&(se*=-1),se<0?(ce=z,z+=(ue-z)*.5):(ue=z,z+=(ce-z)*.5),pe=Me(z,!0).lab()[0],se=pe-oe})();return z}:le=function(z){return z},te},te.padding=function(_){return _!=null?(lr(_)==="number"&&(_=[_,_]),d=_,te):d},te.colors=function(_,z){arguments.length<2&&(z="hex");var K=[];if(arguments.length===0)K=w.slice(0);else if(_===1)K=[te(.5)];else if(_>1){var J=m[0],_e=m[1]-J;K=Fg(0,_,!1).map(function(ue){return te(J+ue/(_-1)*_e)})}else{n=[];var pe=[];if(x&&x.length>2)for(var oe=1,se=x.length,ce=1<=se;ce?oe<se:oe>se;ce?oe++:oe--)pe.push((x[oe-1]+x[oe])*.5);else pe=m;K=pe.map(function(ue){return te(ue)})}return We[z]&&(K=K.map(function(ue){return ue[z]()})),K},te.cache=function(_){return _!=null?(F=_,te):F},te.gamma=function(_){return _!=null?(Q=_,te):Q},te.nodata=function(_){return _!=null?(s=We(_),te):s},te};function Fg(n,a,s){for(var u=[],m=n<a,b=s?m?a+1:a-1:a,d=n;m?d<b:d>b;m?d++:d--)u.push(d);return u}var Dr=L,Bg=li,Ig=function(n){for(var a=[1,1],s=1;s<n;s++){for(var u=[1],m=1;m<=a.length;m++)u[m]=(a[m]||0)+a[m-1];a=u}return a},Ng=function(n){var a,s,u,m,b,d,x;if(n=n.map(function(T){return new Dr(T)}),n.length===2)a=n.map(function(T){return T.lab()}),b=a[0],d=a[1],m=function(T){var I=[0,1,2].map(function(F){return b[F]+T*(d[F]-b[F])});return new Dr(I,"lab")};else if(n.length===3)s=n.map(function(T){return T.lab()}),b=s[0],d=s[1],x=s[2],m=function(T){var I=[0,1,2].map(function(F){return(1-T)*(1-T)*b[F]+2*(1-T)*T*d[F]+T*T*x[F]});return new Dr(I,"lab")};else if(n.length===4){var w;u=n.map(function(T){return T.lab()}),b=u[0],d=u[1],x=u[2],w=u[3],m=function(T){var I=[0,1,2].map(function(F){return(1-T)*(1-T)*(1-T)*b[F]+3*(1-T)*(1-T)*T*d[F]+3*(1-T)*T*T*x[F]+T*T*T*w[F]});return new Dr(I,"lab")}}else if(n.length>=5){var C,A,D;C=n.map(function(T){return T.lab()}),D=n.length-1,A=Ig(D),m=function(T){var I=1-T,F=[0,1,2].map(function(Q){return C.reduce(function(Z,re,le){return Z+A[le]*Math.pow(I,D-le)*Math.pow(T,le)*re[Q]},0)});return new Dr(F,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return m},Gg=function(n){var a=Ng(n);return a.scale=function(){return Bg(a)},a},si=$,Xe=function(n,a,s){if(!Xe[s])throw new Error("unknown blend mode "+s);return Xe[s](n,a)},St=function(n){return function(a,s){var u=si(s).rgb(),m=si(a).rgb();return si.rgb(n(u,m))}},Ct=function(n){return function(a,s){var u=[];return u[0]=n(a[0],s[0]),u[1]=n(a[1],s[1]),u[2]=n(a[2],s[2]),u}},Hg=function(n){return n},zg=function(n,a){return n*a/255},qg=function(n,a){return n>a?a:n},Vg=function(n,a){return n>a?n:a},Ug=function(n,a){return 255*(1-(1-n/255)*(1-a/255))},Wg=function(n,a){return a<128?2*n*a/255:255*(1-2*(1-n/255)*(1-a/255))},Xg=function(n,a){return 255*(1-(1-a/255)/(n/255))},Qg=function(n,a){return n===255?255:(n=255*(a/255)/(1-n/255),n>255?255:n)};Xe.normal=St(Ct(Hg)),Xe.multiply=St(Ct(zg)),Xe.screen=St(Ct(Ug)),Xe.overlay=St(Ct(Wg)),Xe.darken=St(Ct(qg)),Xe.lighten=St(Ct(Vg)),Xe.dodge=St(Ct(Qg)),Xe.burn=St(Ct(Xg));for(var Jg=Xe,ci=v.type,Kg=v.clip_rgb,Yg=v.TWOPI,Zg=Math.pow,eb=Math.sin,tb=Math.cos,rs=$,rb=function(n,a,s,u,m){n===void 0&&(n=300),a===void 0&&(a=-1.5),s===void 0&&(s=1),u===void 0&&(u=1),m===void 0&&(m=[0,1]);var b=0,d;ci(m)==="array"?d=m[1]-m[0]:(d=0,m=[m,m]);var x=function(w){var C=Yg*((n+120)/360+a*w),A=Zg(m[0]+d*w,u),D=b!==0?s[0]+w*b:s,T=D*A*(1-A)/2,I=tb(C),F=eb(C),Q=A+T*(-.14861*I+1.78277*F),Z=A+T*(-.29227*I-.90649*F),re=A+T*(1.97294*I);return rs(Kg([Q*255,Z*255,re*255,1]))};return x.start=function(w){return w==null?n:(n=w,x)},x.rotations=function(w){return w==null?a:(a=w,x)},x.gamma=function(w){return w==null?u:(u=w,x)},x.hue=function(w){return w==null?s:(s=w,ci(s)==="array"?(b=s[1]-s[0],b===0&&(s=s[1])):b=0,x)},x.lightness=function(w){return w==null?m:(ci(w)==="array"?(m=w,d=w[1]-w[0]):(m=[w,w],d=0),x)},x.scale=function(){return rs.scale(x)},x.hue(s),x},ob=L,nb="0123456789abcdef",ib=Math.floor,ab=Math.random,lb=function(){for(var n="#",a=0;a<6;a++)n+=nb.charAt(ib(ab()*16));return new ob(n,"hex")},ui=f,os=Math.log,sb=Math.pow,cb=Math.floor,ub=Math.abs,ns=function(n,a){a===void 0&&(a=null);var s={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return ui(n)==="object"&&(n=Object.values(n)),n.forEach(function(u){a&&ui(u)==="object"&&(u=u[a]),u!=null&&!isNaN(u)&&(s.values.push(u),s.sum+=u,u<s.min&&(s.min=u),u>s.max&&(s.max=u),s.count+=1)}),s.domain=[s.min,s.max],s.limits=function(u,m){return is(s,u,m)},s},is=function(n,a,s){a===void 0&&(a="equal"),s===void 0&&(s=7),ui(n)=="array"&&(n=ns(n));var u=n.min,m=n.max,b=n.values.sort(function(di,pi){return di-pi});if(s===1)return[u,m];var d=[];if(a.substr(0,1)==="c"&&(d.push(u),d.push(m)),a.substr(0,1)==="e"){d.push(u);for(var x=1;x<s;x++)d.push(u+x/s*(m-u));d.push(m)}else if(a.substr(0,1)==="l"){if(u<=0)throw new Error("Logarithmic scales are only possible for values > 0");var w=Math.LOG10E*os(u),C=Math.LOG10E*os(m);d.push(u);for(var A=1;A<s;A++)d.push(sb(10,w+A/s*(C-w)));d.push(m)}else if(a.substr(0,1)==="q"){d.push(u);for(var D=1;D<s;D++){var T=(b.length-1)*D/s,I=cb(T);if(I===T)d.push(b[I]);else{var F=T-I;d.push(b[I]*(1-F)+b[I+1]*F)}}d.push(m)}else if(a.substr(0,1)==="k"){var Q,Z=b.length,re=new Array(Z),le=new Array(s),Te=!0,Me=0,Fe=null;Fe=[],Fe.push(u);for(var te=1;te<s;te++)Fe.push(u+te/s*(m-u));for(Fe.push(m);Te;){for(var _=0;_<s;_++)le[_]=0;for(var z=0;z<Z;z++)for(var K=b[z],J=Number.MAX_VALUE,_e=void 0,pe=0;pe<s;pe++){var oe=ub(Fe[pe]-K);oe<J&&(J=oe,_e=pe),le[_e]++,re[z]=_e}for(var se=new Array(s),ce=0;ce<s;ce++)se[ce]=null;for(var ue=0;ue<Z;ue++)Q=re[ue],se[Q]===null?se[Q]=b[ue]:se[Q]+=b[ue];for(var Qe=0;Qe<s;Qe++)se[Qe]*=1/le[Qe];Te=!1;for(var Mt=0;Mt<s;Mt++)if(se[Mt]!==Fe[Mt]){Te=!0;break}Fe=se,Me++,Me>200&&(Te=!1)}for(var At={},sr=0;sr<s;sr++)At[sr]=[];for(var cr=0;cr<Z;cr++)Q=re[cr],At[Q].push(b[cr]);for(var ct=[],Ht=0;Ht<s;Ht++)ct.push(At[Ht][0]),ct.push(At[Ht][At[Ht].length-1]);ct=ct.sort(function(di,pi){return di-pi}),d.push(ct[0]);for(var Fr=1;Fr<ct.length;Fr+=2){var zt=ct[Fr];!isNaN(zt)&&d.indexOf(zt)===-1&&d.push(zt)}}return d},as={analyze:ns,limits:is},ls=L,fb=function(n,a){n=new ls(n),a=new ls(a);var s=n.luminance(),u=a.luminance();return s>u?(s+.05)/(u+.05):(u+.05)/(s+.05)},ss=L,st=Math.sqrt,ke=Math.pow,db=Math.min,pb=Math.max,cs=Math.atan2,us=Math.abs,wo=Math.cos,fs=Math.sin,hb=Math.exp,ds=Math.PI,mb=function(n,a,s,u,m){s===void 0&&(s=1),u===void 0&&(u=1),m===void 0&&(m=1);var b=function(zt){return 360*zt/(2*ds)},d=function(zt){return 2*ds*zt/360};n=new ss(n),a=new ss(a);var x=Array.from(n.lab()),w=x[0],C=x[1],A=x[2],D=Array.from(a.lab()),T=D[0],I=D[1],F=D[2],Q=(w+T)/2,Z=st(ke(C,2)+ke(A,2)),re=st(ke(I,2)+ke(F,2)),le=(Z+re)/2,Te=.5*(1-st(ke(le,7)/(ke(le,7)+ke(25,7)))),Me=C*(1+Te),Fe=I*(1+Te),te=st(ke(Me,2)+ke(A,2)),_=st(ke(Fe,2)+ke(F,2)),z=(te+_)/2,K=b(cs(A,Me)),J=b(cs(F,Fe)),_e=K>=0?K:K+360,pe=J>=0?J:J+360,oe=us(_e-pe)>180?(_e+pe+360)/2:(_e+pe)/2,se=1-.17*wo(d(oe-30))+.24*wo(d(2*oe))+.32*wo(d(3*oe+6))-.2*wo(d(4*oe-63)),ce=pe-_e;ce=us(ce)<=180?ce:pe<=_e?ce+360:ce-360,ce=2*st(te*_)*fs(d(ce)/2);var ue=T-w,Qe=_-te,Mt=1+.015*ke(Q-50,2)/st(20+ke(Q-50,2)),At=1+.045*z,sr=1+.015*z*se,cr=30*hb(-ke((oe-275)/25,2)),ct=2*st(ke(z,7)/(ke(z,7)+ke(25,7))),Ht=-ct*fs(2*d(cr)),Fr=st(ke(ue/(s*Mt),2)+ke(Qe/(u*At),2)+ke(ce/(m*sr),2)+Ht*(Qe/(u*At))*(ce/(m*sr)));return pb(0,db(100,Fr))},ps=L,gb=function(n,a,s){s===void 0&&(s="lab"),n=new ps(n),a=new ps(a);var u=n.get(s),m=a.get(s),b=0;for(var d in u){var x=(u[d]||0)-(m[d]||0);b+=x*x}return Math.sqrt(b)},bb=L,vb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];try{return new(Function.prototype.bind.apply(bb,[null].concat(n))),!0}catch{return!1}},hs=$,ms=li,yb={cool:function(){return ms([hs.hsl(180,1,.9),hs.hsl(250,.7,.4)])},hot:function(){return ms(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ko={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},fi=0,gs=Object.keys(ko);fi<gs.length;fi+=1){var bs=gs[fi];ko[bs.toLowerCase()]=ko[bs]}var xb=ko,Ce=$;Ce.average=$g,Ce.bezier=Gg,Ce.blend=Jg,Ce.cubehelix=rb,Ce.mix=Ce.interpolate=Wl,Ce.random=lb,Ce.scale=li,Ce.analyze=as.analyze,Ce.contrast=fb,Ce.deltaE=mb,Ce.distance=gb,Ce.limits=as.limits,Ce.valid=vb,Ce.scales=yb,Ce.colors=Ll,Ce.brewer=xb;var wb=Ce;return wb})});var hu=ne(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=void 0;var $i=Wo(xc()),ji=Wo($c()),X0=Wo(cu()),Uo=Wo(uu());function Wo(e){return e&&e.__esModule?e:{default:e}}function Q0(e){if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(e=J0(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(h){throw h},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1,c;return{s:function(){o=e[Symbol.iterator]()},n:function(){var h=o.next();return i=h.done,h},e:function(h){l=!0,c=h},f:function(){try{!i&&o.return!=null&&o.return()}finally{if(l)throw c}}}}function J0(e,t){if(!!e){if(typeof e=="string")return fu(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 fu(e,t)}}function fu(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 K0(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){Y0(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 Y0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Z0={count:5,hueMin:0,hueMax:360,chromaMin:0,chromaMax:100,lightMin:0,lightMax:100,quality:50,samples:800},pu=function(t,r){for(var o=Number.MAX_SAFE_INTEGER,i=0,l=0;l<t.length;l+=1){var c=t[l],f=Math.sqrt(Math.pow(Math.abs(c[0]-r[0]),2)+Math.pow(Math.abs(c[1]-r[1]),2)+Math.pow(Math.abs(c[2]-r[2]),2));f<o&&(o=f,i=l)}return i},ev=function(t,r){var o=Uo.default.lab(t),i=o.hcl(),l=o.rgb(),c=Uo.default.rgb(l).lab(),f=2;return i[0]>=r.hueMin&&i[0]<=r.hueMax&&i[1]>=r.chromaMin&&i[1]<=r.chromaMax&&i[2]>=r.lightMin&&i[2]<=r.lightMax&&c[0]>=t[0]-f&&c[0]<=t[0]+f&&c[1]>=t[1]-f&&c[1]<=t[1]+f&&c[2]>=t[2]-f&&c[2]<=t[2]+f},tv=function(t){for(var r=t.slice(0),o=[r.shift()];r.length>0;){for(var i=o[o.length-1],l=0,c=Number.MIN_SAFE_INTEGER,f=0;f<r.length;f+=1){var h=Math.sqrt(Math.pow(Math.abs(i[0]-r[f][0]),2)+Math.pow(Math.abs(i[1]-r[f][1]),2)+Math.pow(Math.abs(i[2]-r[f][2]),2));h>c&&(c=h,l=f)}o.push(r.splice(l,1)[0])}return o},rv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=K0({},Z0,{},t);if(r.count<=0)return[];r.samples<r.count*3&&(r.samples=Math.ceil(r.count*3));var o=[],i=[],l=new Set,c=Math.ceil(Math.cbrt(r.samples)),f=(r.hueMax-r.hueMin)/c,h=(r.chromaMax-r.chromaMin)/c,p=(r.lightMax-r.lightMin)/c;if(f<=0)throw new Error("hueMax must be greater than hueMin!");if(h<=0)throw new Error("chromaMax must be greater than chromaMin!");if(p<=0)throw new Error("lightMax must be greater than lightMin!");for(var g=r.hueMin+f/2;g<=r.hueMax;g+=f)for(var k=r.chromaMin+h/2;k<=r.chromaMax;k+=h)for(var y=r.lightMin+p/2;y<=r.lightMax;y+=p){var v=Uo.default.hcl(g,k,y).lab();ev(v,r)&&l.add(v.toString())}if(l=Array.from(l),l=l.map(function(Nt){return Nt.split(",").map(function($r){return parseFloat($r)})}),l.length<r.count)throw new Error("Not enough samples to generate palette, increase sample count.");for(var S=Math.floor(l.length/r.count),M=0;M<l.length&&(o.push(l[M]),i.push([]),!(o.length>=r.count));M+=S);for(var P=1;P<=r.quality;P+=1){for(var j=(0,ji.default)(i),B=(0,ji.default)(l),H=0;H<o.length;H+=1){var L=pu(B,o[H]);j[H].push(B[L]),B.splice(L,1)}for(var W=0;W<B.length;W+=1){var $=l[W],ie=pu(o,$);j[ie].push(l[W])}for(var ae=(0,ji.default)(o),me=0;me<j.length;me+=1){var fe=j[me],be=fe.length,we=[],Re=[],kt=[],lt=Q0(fe),Er;try{for(lt.s();!(Er=lt.n()).done;){var Rr=Er.value;we.push(Rr[0]),Re.push(Rr[1]),kt.push(Rr[2])}}catch(Nt){lt.e(Nt)}finally{lt.f()}var Dn=$i.default.sum(we)/be,Fn=$i.default.sum(Re)/be,Bn=$i.default.sum(kt)/be;o[me]=[Dn,Fn,Bn]}if((0,X0.default)(ae,o))break}return o=tv(o),o.map(function(Nt){return Uo.default.lab(Nt)})},ov=rv;Xo.default=ov});var gu=ne((C2,iv)=>{iv.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 bu=ne((M2,av)=>{av.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 xu=ne((A2,yu)=>{"use strict";function Wt(){var e={};return e.extensions||(e.extensions=gu()),e.languages||(e.languages=bu()),e}Wt.extensions=function(t){t=vu(t);var r=Wt().languages,o=Wt().extensions;return o[t]||o[r[t]]||[t]};Wt.languages=function(t){t=vu(t);var r=Wt().languages,o=Wt().extensions;return r[t]||r[o[t]]||[t]};function vu(e){return e.charAt(0)==="."&&(e=e.slice(1)),e.toLowerCase()}yu.exports=Wt});var Aa=ne(it=>{"use strict";var Vy=it&&it.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),Uy=it&&it.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Wy=it&&it.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Vy(t,e,r);return Uy(t,e),t};Object.defineProperty(it,"__esModule",{value:!0});it.useWindowSize=void 0;var rd=Wy(ee());function od(){return{height:window.innerHeight,width:window.innerWidth}}function Xy(){var e=rd.useState(od()),t=e[0],r=e[1];return rd.useLayoutEffect(function(){function o(){r(od())}return window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[]),t}it.useWindowSize=Xy});var id=ne(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.useBreakpoints=Tr.useBreakpoint=void 0;var nd=Aa();function Qy(e){var t=(0,nd.useWindowSize)().width;return t<e}Tr.useBreakpoint=Qy;function Jy(e){var t=(0,nd.useWindowSize)().width;return e.map(function(r){return t<r})}Tr.useBreakpoints=Jy});var ad=ne(Ue=>{"use strict";var Ta=Ue&&Ue.__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)},Ky=Ue&&Ue.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),Yy=Ue&&Ue.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Zy=Ue&&Ue.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Ky(t,e,r);return Yy(t,e),t};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.useComponentSize=void 0;var Pn=Zy(ee());function ex(){var e=Pn.useState({height:0,width:0}),t=e[0],r=e[1],o=Pn.useRef(),i=Pn.useCallback(function(){if(!!o.current){var l=o.current.offsetHeight,c=o.current.offsetWidth;(l!==t.height||c!==t.width)&&r({height:l,width:c})}},[t.height,t.width]);return Pn.useLayoutEffect(function(){if(!(!o||!o.current)){var l=new ResizeObserver(i);return l.observe(o.current),function(){return l.disconnect()}}},[o,i]),Ta({ref:o},t)}Ue.useComponentSize=ex});var ld=ne(vt=>{"use strict";var tx=vt&&vt.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),_a=vt&&vt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&tx(t,e,r)};Object.defineProperty(vt,"__esModule",{value:!0});_a(id(),vt);_a(ad(),vt);_a(Aa(),vt)});Sb();var ap=R(ee());var Qs=function(){};function Eo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Ro(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Js=typeof window<"u";var Ks=R(ee()),Tb=function(e,t){return typeof t=="boolean"?t:!e},_b=function(e){return(0,Ks.useReducer)(Tb,e)},Ys=_b;var Vt=Ys;var Zs=R(ee());var Je=R(ee());function yi(e,t){t===void 0&&(t=0);var r=(0,Je.useRef)(!1),o=(0,Je.useRef)(),i=(0,Je.useRef)(e),l=(0,Je.useCallback)(function(){return r.current},[]),c=(0,Je.useCallback)(function(){r.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout(function(){r.current=!0,i.current()},t)},[t]),f=(0,Je.useCallback)(function(){r.current=null,o.current&&clearTimeout(o.current)},[]);return(0,Je.useEffect)(function(){i.current=e},[e]),(0,Je.useEffect)(function(){return c(),f},[t]),[l,f,c]}function $o(e,t,r){t===void 0&&(t=0),r===void 0&&(r=[]);var o=yi(e,t),i=o[0],l=o[1],c=o[2];return(0,Zs.useEffect)(c,r),[i,l]}var ec=R(ee()),Lb=function(e){(0,ec.useEffect)(e,[])},tc=Lb;var nc=R(ee());var Pb=Js?window:null,rc=function(e){return!!e.addEventListener},oc=function(e){return!!e.on},Ob=function(e,t,r,o){r===void 0&&(r=Pb),(0,nc.useEffect)(function(){if(!!t&&!!r)return rc(r)?Eo(r,e,t,o):oc(r)&&r.on(e,t,o),function(){rc(r)?Ro(r,e,t,o):oc(r)&&r.off(e,t,o)}},[e,t,r,JSON.stringify(o)])},ic=Ob;var ac=R(ee());var Eb=function(e){return typeof e=="function"?e:typeof e=="string"?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},Rb=function(e,t,r,o){t===void 0&&(t=Qs),r===void 0&&(r={}),o===void 0&&(o=[e]);var i=r.event,l=i===void 0?"keydown":i,c=r.target,f=r.options,h=(0,ac.useMemo)(function(){var p=Eb(e),g=function(k){if(p(k))return t(k)};return g},o);ic(l,h,c,f)},xi=Rb;var uc=R(ee());var dr=R(ee());var lc=R(ee());var $b=function(e){var t=(0,lc.useRef)(e);t.current=e,tc(function(){return function(){return t.current()}})},sc=$b;var jb=function(e){var t=(0,dr.useRef)(0),r=(0,dr.useState)(e),o=r[0],i=r[1],l=(0,dr.useCallback)(function(c){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(c)})},[]);return sc(function(){cancelAnimationFrame(t.current)}),[o,l]},cc=jb;var Db=function(e){var t=cc({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),r=t[0],o=t[1];return(0,uc.useEffect)(function(){var i=function(l){if(e&&e.current){var c=e.current.getBoundingClientRect(),f=c.left,h=c.top,p=c.width,g=c.height,k=f+window.pageXOffset,y=h+window.pageYOffset,v=l.pageX-k,S=l.pageY-y;o({docX:l.pageX,docY:l.pageY,posX:k,posY:y,elX:v,elY:S,elH:g,elW:p})}};return Eo(document,"mousemove",i),function(){Ro(document,"mousemove",i)}},[e]),r},wi=Db;function ki(e,t){for(let o of Object.keys(t))r(e,o.split("."),t[o]);return e;function r(o,i,l,c=0){let f=i[c];if(c<i.length-1){r(o[f],i,l,c+1);return}let h=o[f];switch(l){case"date":o[f]=new Date(h);break;case"set":o[f]=new Set(h);break;case"map":o[f]=new Map(Object.entries(h));break;case"regexp":let p=/^\/(.*)\/([dgimsuy]*)$/.exec(h);if(p)o[f]=new RegExp(p[1],p[2]);else throw new Error(`Invalid regexp: ${h}`);break;case"bigint":o[f]=BigInt(h);break;case"undefined":o[f]=void 0;break;case"infinity":o[f]=Number.POSITIVE_INFINITY;break;case"-infinity":o[f]=Number.NEGATIVE_INFINITY;break;case"nan":o[f]=NaN;break;case"error":let g=new Error(h.message);g.name=h.name,g.stack=h.stack,o[f]=g;break}}}function Si(){let e=ws();return fc(e)}function fc(e){if(!e)return e;if(e.__obj__)return e.__meta__?ki(e.__obj__,e.__meta__):e.__obj__;if(e.__meta__){let t=e.__meta__;return delete e.__meta__,ki(e,t)}return e}var za=R(pc()),t1=R(Cb()),r1=R(Mb()),o1=R(Ab()),lp=R(mc());var Xt=R(ee());var gc=R(ee());var Ut=R(X());function jo(e){return e.show?(0,Ut.jsx)(Ut.Fragment,{children:e.items.map(t=>{let[r,o]=t,i=Math.round(o*100);return(0,Ut.jsxs)(gc.Fragment,{children:[(0,Ut.jsx)(ft,{title:r,grow:!0,children:r}),(0,Ut.jsxs)(tt,{children:[i===0?"<1":i,"%"]})]},r+o)})}):null}var Nb=R(X()),Ib=N.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 bc(e){return e.show?(0,Nb.jsxs)(Ib,{onClick:e.toggle,children:["+ ",e.items.length," more"]}):null}var Do=R(X());function vc({relative:e=!1,collapse:t,toggle:r}){return(0,Do.jsx)(yc,{relative:e,collapse:t,onClick:r,up:!1,children:(0,Do.jsx)(mi,{display:"inline-block",height:"1.5rem"})})}function Fo({relative:e=!1,collapse:t,toggle:r}){return(0,Do.jsx)(yc,{relative:e,collapse:t,onClick:r,up:!0,children:(0,Do.jsx)(mi,{display:"inline-block",height:"1.5rem"})})}var yc=N.button`
|
|
1
|
+
import{a as kb}from"/build/_shared/chunk-XMAWJ27N.js";import{b as ks}from"/build/_shared/chunk-2EHCKJST.js";import{a as Sb,b as Cb,c as Mb,d as Ab,e as G,f as Gs,g as Hs,h as zs,i as qs,j as Vs,k as Us,l as Ws,m as Oo,n as Xs}from"/build/_shared/chunk-CWCEXXYS.js";import{A as xe,B as Ir,C as Ds,D as gi,E as ot,F as Ot,G as Fs,H as Bs,I as ht,J as nt,K as bi,L as Nr,M as Is,O as Ns,Q as vi,a as Co,b as hi,c as N,d as Mo,e as Ss,f as mi,g as Ao,h as Cs,i as Ms,j as As,k as To,l as Ts,m as Ls,n as _s,o as Ps,p as Os,q as Es,r as Lo,s as Pt,t as Rs,u as $s,v as Ut,w as Ee,x as _o,y as js,z as Po}from"/build/_shared/chunk-Y7QOL3BF.js";import{b as ne,c as R,d as ee,e as So,f as vs,g as fr,h as ys,k as Br,o as pt,p as xs,q as ws,r as _t,v as X}from"/build/_shared/chunk-2BPXJFRU.js";var pc=ne((z1,dc)=>{dc.exports={}});var mc=ne((q1,hc)=>{hc.exports={}});var gc=ne(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=void 0;var Ib={sum:function(t){return t.reduce(function(r,o){return r+o})}},Nb=Ib;Do.default=Nb});var Fo=ne((W1,bc)=>{function Gb(e){return Object.prototype.toString.call(e).slice(8,-1)}bc.exports=Gb});var Mi=ne((X1,vc)=>{function Hb(e){return!!e&&typeof e=="object"&&e.constructor===Object}vc.exports=Hb});var Bo=ne((Q1,yc)=>{function zb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}yc.exports=zb});var Sc=ne((J1,kc)=>{var qb=Bo(),Io,wc;function Vb(){wc=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Io=!0;for(var e in{toString:null})Io=!1}function Ub(e,t,r){var o,i=0;Io==null&&Vb();for(o in e)if(xc(t,e,o,r)===!1)break;if(Io)for(var l=e.constructor,c=!!l&&e===l.prototype;(o=wc[i++])&&!((o!=="constructor"||!c&&qb(e,o))&&e[o]!==Object.prototype[o]&&xc(t,e,o,r)===!1););}function xc(e,t,r,o){return e.call(o,t[r],r,t)}kc.exports=Ub});var Gr=ne((K1,Cc)=>{var Wb=Bo(),Xb=Sc();function Qb(e,t,r){Xb(e,function(o,i){if(Wb(e,i))return t.call(r,e[i],i,e)})}Cc.exports=Qb});var Ac=ne((Y1,Mc)=>{var Jb=Gr();function Kb(e,t){for(var r=0,o=arguments.length,i;++r<o;)i=arguments[r],i!=null&&Jb(i,Yb,e);return e}function Yb(e,t){this[t]=e}Mc.exports=Kb});var Lc=ne((Z1,Tc)=>{var Zb=Fo(),e0=Mi(),t0=Ac();function r0(e){switch(Zb(e)){case"Object":return o0(e);case"Array":return a0(e);case"RegExp":return n0(e);case"Date":return i0(e);default:return e}}function o0(e){return e0(e)?t0({},e):e}function n0(e){var t="";return t+=e.multiline?"m":"",t+=e.global?"g":"",t+=e.ignoreCase?"i":"",new RegExp(e.source,t)}function i0(e){return new Date(+e)}function a0(e){return e.slice()}Tc.exports=r0});var Pc=ne((e2,_c)=>{var l0=Lc(),s0=Gr(),c0=Fo(),u0=Mi();function Ai(e,t){switch(c0(e)){case"Object":return f0(e,t);case"Array":return d0(e,t);default:return l0(e)}}function f0(e,t){if(u0(e)){var r={};return s0(e,function(o,i){this[i]=Ai(o,t)},r),r}else return t?t(e):e}function d0(e,t){for(var r=[],o=-1,i=e.length,l;++o<i;)r[o]=Ai(e[o],t);return r}_c.exports=Ai});var No=ne((t2,Oc)=>{function p0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}Oc.exports=p0});var Ti=ne((r2,Ec)=>{var h0=Fo();function m0(e,t){return h0(e)===t}Ec.exports=m0});var Li=ne((o2,Rc)=>{var g0=Ti();function b0(e){return g0(e,"Object")}Rc.exports=b0});var Go=ne((n2,$c)=>{var v0=Ti(),y0=Array.isArray||function(e){return v0(e,"Array")};$c.exports=y0});var Dc=ne((i2,jc)=>{function x0(e){return e}jc.exports=x0});var Bc=ne((a2,Fc)=>{function w0(e){return function(t){return t[e]}}Fc.exports=w0});var Gc=ne((l2,Nc)=>{var k0=Gr(),Ic=Go();function S0(e,t){for(var r=-1,o=e.length;++r<o;)if(_i(e[r],t))return!0;return!1}function C0(e,t){for(var r=-1,o=t.length;++r<o;)if(!S0(e,t[r]))return!1;return!0}function M0(e,t){var r=!0;return k0(t,function(o,i){if(!_i(e[i],o))return r=!1}),r}function _i(e,t){return e&&typeof e=="object"&&t&&typeof t=="object"?Ic(e)&&Ic(t)?C0(e,t):M0(e,t):e===t}Nc.exports=_i});var Pi=ne((s2,Hc)=>{var A0=Dc(),T0=Bc(),L0=Gc();function _0(e,t){if(e==null)return A0;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 L0(r,e)};case"string":case"number":return T0(e)}}Hc.exports=_0});var qc=ne((c2,zc)=>{var P0=Gr(),O0=Pi();function E0(e,t,r){t=O0(t,r);var o=!0;return P0(e,function(i,l){if(!t(i,l,e))return o=!1,!1}),o}zc.exports=E0});var Qc=ne((u2,Xc)=>{var Wc=Bo(),Vc=qc(),Uc=Li(),R0=No();function $0(e){return function(t,r){return Wc(this,r)&&e(t,this[r])}}function j0(e,t){return Wc(this,t)}function D0(e,t,r){return r=r||R0,!Uc(e)||!Uc(t)?r(e,t):Vc(e,$0(r),t)&&Vc(t,j0,e)}Xc.exports=D0});var Kc=ne((f2,Jc)=>{var F0=Pi();function B0(e,t,r){t=F0(t,r);var o=!0;if(e==null)return o;for(var i=-1,l=e.length;++i<l;)if(!t(e[i],i,e)){o=!1;break}return o}Jc.exports=B0});var eu=ne((d2,Zc)=>{var I0=No(),Yc=Go(),N0=Kc();function G0(e,t,r){return r=r||I0,!Yc(e)||!Yc(t)?r(e,t):e.length!==t.length?!1:N0(e,H0(r),t)}function H0(e){return function(t,r){return r in this&&e(t,this[r])}}Zc.exports=G0});var iu=ne((p2,nu)=>{var z0=No(),tu=Li(),ru=Go(),q0=Qc(),V0=eu();function ou(e,t,r){r=r||z0;var o=tu(e)&&tu(t),i=!o&&ru(e)&&ru(t);if(!o&&!i)return r(e,t);function l(f,h){return ou(f,h,r)}var c=o?q0:V0;return c(e,t,l)}nu.exports=ou});var au=ne((Oi,Ei)=>{(function(e,t){typeof Oi=="object"&&typeof Ei<"u"?Ei.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.chroma=t())})(Oi,function(){"use strict";for(var e=function(n,a,s){return a===void 0&&(a=0),s===void 0&&(s=1),n<a?a:n>s?s:n},t=e,r=function(n){n._clipped=!1,n._unclipped=n.slice(0);for(var a=0;a<=3;a++)a<3?((n[a]<0||n[a]>255)&&(n._clipped=!0),n[a]=t(n[a],0,255)):a===3&&(n[a]=t(n[a],0,1));return n},o={},i=0,l=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];i<l.length;i+=1){var c=l[i];o["[object "+c+"]"]=c.toLowerCase()}var f=function(n){return o[Object.prototype.toString.call(n)]||"object"},h=f,p=function(n,a){return a===void 0&&(a=null),n.length>=3?Array.prototype.slice.call(n):h(n[0])=="object"&&a?a.split("").filter(function(s){return n[0][s]!==void 0}).map(function(s){return n[0][s]}):n[0]},g=f,k=function(n){if(n.length<2)return null;var a=n.length-1;return g(n[a])=="string"?n[a].toLowerCase():null},y=Math.PI,v={clip_rgb:r,limit:e,type:f,unpack:p,last:k,PI:y,TWOPI:y*2,PITHIRD:y/3,DEG2RAD:y/180,RAD2DEG:180/y},S={format:{},autodetect:[]},M=v.last,P=v.clip_rgb,j=v.type,B=S,H=function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];var u=this;if(j(a[0])==="object"&&a[0].constructor&&a[0].constructor===this.constructor)return a[0];var m=M(a),b=!1;if(!m){b=!0,B.sorted||(B.autodetect=B.autodetect.sort(function(A,D){return D.p-A.p}),B.sorted=!0);for(var d=0,x=B.autodetect;d<x.length;d+=1){var w=x[d];if(m=w.test.apply(w,a),m)break}}if(B.format[m]){var C=B.format[m].apply(null,b?a:a.slice(0,-1));u._rgb=P(C)}else throw new Error("unknown format: "+a);u._rgb.length===3&&u._rgb.push(1)};H.prototype.toString=function(){return j(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var _=H,W=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(W.Color,[null].concat(n)))};W.Color=_,W.version="2.4.2";var $=W,ie=v.unpack,ae=Math.max,me=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=ie(n,"rgb"),u=s[0],m=s[1],b=s[2];u=u/255,m=m/255,b=b/255;var d=1-ae(u,ae(m,b)),x=d<1?1/(1-d):0,w=(1-u-d)*x,C=(1-m-d)*x,A=(1-b-d)*x;return[w,C,A,d]},fe=me,be=v.unpack,we=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=be(n,"cmyk");var s=n[0],u=n[1],m=n[2],b=n[3],d=n.length>4?n[4]:1;return b===1?[0,0,0,d]:[s>=1?0:255*(1-s)*(1-b),u>=1?0:255*(1-u)*(1-b),m>=1?0:255*(1-m)*(1-b),d]},$e=we,Ct=$,ut=_,Er=S,Rr=v.unpack,Dn=v.type,Fn=fe;ut.prototype.cmyk=function(){return Fn(this._rgb)},Ct.cmyk=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ut,[null].concat(n,["cmyk"])))},Er.format.cmyk=$e,Er.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Rr(n,"cmyk"),Dn(n)==="array"&&n.length===4)return"cmyk"}});var Bn=v.unpack,Ht=v.last,$r=function(n){return Math.round(n*100)/100},up=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Bn(n,"hsla"),u=Ht(n)||"lsa";return s[0]=$r(s[0]||0),s[1]=$r(s[1]*100)+"%",s[2]=$r(s[2]*100)+"%",u==="hsla"||s.length>3&&s[3]<1?(s[3]=s.length>3?s[3]:1,u="hsla"):s.length=3,u+"("+s.join(",")+")"},fp=up,dp=v.unpack,pp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=dp(n,"rgba");var s=n[0],u=n[1],m=n[2];s/=255,u/=255,m/=255;var b=Math.min(s,u,m),d=Math.max(s,u,m),x=(d+b)/2,w,C;return d===b?(w=0,C=Number.NaN):w=x<.5?(d-b)/(d+b):(d-b)/(2-d-b),s==d?C=(u-m)/(d-b):u==d?C=2+(m-s)/(d-b):m==d&&(C=4+(s-u)/(d-b)),C*=60,C<0&&(C+=360),n.length>3&&n[3]!==void 0?[C,w,x,n[3]]:[C,w,x]},qa=pp,hp=v.unpack,mp=v.last,gp=fp,bp=qa,In=Math.round,vp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=hp(n,"rgba"),u=mp(n)||"rgb";return u.substr(0,3)=="hsl"?gp(bp(s),u):(s[0]=In(s[0]),s[1]=In(s[1]),s[2]=In(s[2]),(u==="rgba"||s.length>3&&s[3]<1)&&(s[3]=s.length>3?s[3]:1,u="rgba"),u+"("+s.slice(0,u==="rgb"?3:4).join(",")+")")},yp=vp,xp=v.unpack,Nn=Math.round,wp=function(){for(var n,a=[],s=arguments.length;s--;)a[s]=arguments[s];a=xp(a,"hsl");var u=a[0],m=a[1],b=a[2],d,x,w;if(m===0)d=x=w=b*255;else{var C=[0,0,0],A=[0,0,0],D=b<.5?b*(1+m):b+m-b*m,T=2*b-D,I=u/360;C[0]=I+1/3,C[1]=I,C[2]=I-1/3;for(var F=0;F<3;F++)C[F]<0&&(C[F]+=1),C[F]>1&&(C[F]-=1),6*C[F]<1?A[F]=T+(D-T)*6*C[F]:2*C[F]<1?A[F]=D:3*C[F]<2?A[F]=T+(D-T)*(2/3-C[F])*6:A[F]=T;n=[Nn(A[0]*255),Nn(A[1]*255),Nn(A[2]*255)],d=n[0],x=n[1],w=n[2]}return a.length>3?[d,x,w,a[3]]:[d,x,w,1]},Va=wp,Ua=Va,Wa=S,Xa=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Qa=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Ja=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Ka=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ya=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Za=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,el=Math.round,tl=function(n){n=n.toLowerCase().trim();var a;if(Wa.format.named)try{return Wa.format.named(n)}catch{}if(a=n.match(Xa)){for(var s=a.slice(1,4),u=0;u<3;u++)s[u]=+s[u];return s[3]=1,s}if(a=n.match(Qa)){for(var m=a.slice(1,5),b=0;b<4;b++)m[b]=+m[b];return m}if(a=n.match(Ja)){for(var d=a.slice(1,4),x=0;x<3;x++)d[x]=el(d[x]*2.55);return d[3]=1,d}if(a=n.match(Ka)){for(var w=a.slice(1,5),C=0;C<3;C++)w[C]=el(w[C]*2.55);return w[3]=+w[3],w}if(a=n.match(Ya)){var A=a.slice(1,4);A[1]*=.01,A[2]*=.01;var D=Ua(A);return D[3]=1,D}if(a=n.match(Za)){var T=a.slice(1,4);T[1]*=.01,T[2]*=.01;var I=Ua(T);return I[3]=+a[4],I}};tl.test=function(n){return Xa.test(n)||Qa.test(n)||Ja.test(n)||Ka.test(n)||Ya.test(n)||Za.test(n)};var kp=tl,Sp=$,rl=_,ol=S,Cp=v.type,Mp=yp,nl=kp;rl.prototype.css=function(n){return Mp(this._rgb,n)},Sp.css=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(rl,[null].concat(n,["css"])))},ol.format.css=nl,ol.autodetect.push({p:5,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&Cp(n)==="string"&&nl.test(n))return"css"}});var il=_,Ap=$,Tp=S,Lp=v.unpack;Tp.format.gl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Lp(n,"rgba");return s[0]*=255,s[1]*=255,s[2]*=255,s},Ap.gl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(il,[null].concat(n,["gl"])))},il.prototype.gl=function(){var n=this._rgb;return[n[0]/255,n[1]/255,n[2]/255,n[3]]};var _p=v.unpack,Pp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=_p(n,"rgb"),u=s[0],m=s[1],b=s[2],d=Math.min(u,m,b),x=Math.max(u,m,b),w=x-d,C=w*100/255,A=d/(255-w)*100,D;return w===0?D=Number.NaN:(u===x&&(D=(m-b)/w),m===x&&(D=2+(b-u)/w),b===x&&(D=4+(u-m)/w),D*=60,D<0&&(D+=360)),[D,C,A]},Op=Pp,Ep=v.unpack,Rp=Math.floor,$p=function(){for(var n,a,s,u,m,b,d=[],x=arguments.length;x--;)d[x]=arguments[x];d=Ep(d,"hcg");var w=d[0],C=d[1],A=d[2],D,T,I;A=A*255;var F=C*255;if(C===0)D=T=I=A;else{w===360&&(w=0),w>360&&(w-=360),w<0&&(w+=360),w/=60;var Q=Rp(w),Z=w-Q,re=A*(1-C),le=re+F*(1-Z),Te=re+F*Z,Me=re+F;switch(Q){case 0:n=[Me,Te,re],D=n[0],T=n[1],I=n[2];break;case 1:a=[le,Me,re],D=a[0],T=a[1],I=a[2];break;case 2:s=[re,Me,Te],D=s[0],T=s[1],I=s[2];break;case 3:u=[re,le,Me],D=u[0],T=u[1],I=u[2];break;case 4:m=[Te,re,Me],D=m[0],T=m[1],I=m[2];break;case 5:b=[Me,re,le],D=b[0],T=b[1],I=b[2];break}}return[D,T,I,d.length>3?d[3]:1]},jp=$p,Dp=v.unpack,Fp=v.type,Bp=$,al=_,ll=S,Ip=Op;al.prototype.hcg=function(){return Ip(this._rgb)},Bp.hcg=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(al,[null].concat(n,["hcg"])))},ll.format.hcg=jp,ll.autodetect.push({p:1,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Dp(n,"hcg"),Fp(n)==="array"&&n.length===3)return"hcg"}});var Np=v.unpack,Gp=v.last,ho=Math.round,Hp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Np(n,"rgba"),u=s[0],m=s[1],b=s[2],d=s[3],x=Gp(n)||"auto";d===void 0&&(d=1),x==="auto"&&(x=d<1?"rgba":"rgb"),u=ho(u),m=ho(m),b=ho(b);var w=u<<16|m<<8|b,C="000000"+w.toString(16);C=C.substr(C.length-6);var A="0"+ho(d*255).toString(16);switch(A=A.substr(A.length-2),x.toLowerCase()){case"rgba":return"#"+C+A;case"argb":return"#"+A+C;default:return"#"+C}},sl=Hp,zp=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,qp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Vp=function(n){if(n.match(zp)){(n.length===4||n.length===7)&&(n=n.substr(1)),n.length===3&&(n=n.split(""),n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);var a=parseInt(n,16),s=a>>16,u=a>>8&255,m=a&255;return[s,u,m,1]}if(n.match(qp)){(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 b=parseInt(n,16),d=b>>24&255,x=b>>16&255,w=b>>8&255,C=Math.round((b&255)/255*100)/100;return[d,x,w,C]}throw new Error("unknown hex color: "+n)},cl=Vp,Up=$,ul=_,Wp=v.type,fl=S,Xp=sl;ul.prototype.hex=function(n){return Xp(this._rgb,n)},Up.hex=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ul,[null].concat(n,["hex"])))},fl.format.hex=cl,fl.autodetect.push({p:4,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&Wp(n)==="string"&&[3,4,5,6,7,8,9].indexOf(n.length)>=0)return"hex"}});var Qp=v.unpack,dl=v.TWOPI,Jp=Math.min,Kp=Math.sqrt,Yp=Math.acos,Zp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Qp(n,"rgb"),u=s[0],m=s[1],b=s[2];u/=255,m/=255,b/=255;var d,x=Jp(u,m,b),w=(u+m+b)/3,C=w>0?1-x/w:0;return C===0?d=NaN:(d=(u-m+(u-b))/2,d/=Kp((u-m)*(u-m)+(u-b)*(m-b)),d=Yp(d),b>m&&(d=dl-d),d/=dl),[d*360,C,w]},eh=Zp,th=v.unpack,Gn=v.limit,tr=v.TWOPI,Hn=v.PITHIRD,rr=Math.cos,rh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=th(n,"hsi");var s=n[0],u=n[1],m=n[2],b,d,x;return isNaN(s)&&(s=0),isNaN(u)&&(u=0),s>360&&(s-=360),s<0&&(s+=360),s/=360,s<1/3?(x=(1-u)/3,b=(1+u*rr(tr*s)/rr(Hn-tr*s))/3,d=1-(x+b)):s<2/3?(s-=1/3,b=(1-u)/3,d=(1+u*rr(tr*s)/rr(Hn-tr*s))/3,x=1-(b+d)):(s-=2/3,d=(1-u)/3,x=(1+u*rr(tr*s)/rr(Hn-tr*s))/3,b=1-(d+x)),b=Gn(m*b*3),d=Gn(m*d*3),x=Gn(m*x*3),[b*255,d*255,x*255,n.length>3?n[3]:1]},oh=rh,nh=v.unpack,ih=v.type,ah=$,pl=_,hl=S,lh=eh;pl.prototype.hsi=function(){return lh(this._rgb)},ah.hsi=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(pl,[null].concat(n,["hsi"])))},hl.format.hsi=oh,hl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=nh(n,"hsi"),ih(n)==="array"&&n.length===3)return"hsi"}});var sh=v.unpack,ch=v.type,uh=$,ml=_,gl=S,fh=qa;ml.prototype.hsl=function(){return fh(this._rgb)},uh.hsl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ml,[null].concat(n,["hsl"])))},gl.format.hsl=Va,gl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=sh(n,"hsl"),ch(n)==="array"&&n.length===3)return"hsl"}});var dh=v.unpack,ph=Math.min,hh=Math.max,mh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=dh(n,"rgb");var s=n[0],u=n[1],m=n[2],b=ph(s,u,m),d=hh(s,u,m),x=d-b,w,C,A;return A=d/255,d===0?(w=Number.NaN,C=0):(C=x/d,s===d&&(w=(u-m)/x),u===d&&(w=2+(m-s)/x),m===d&&(w=4+(s-u)/x),w*=60,w<0&&(w+=360)),[w,C,A]},gh=mh,bh=v.unpack,vh=Math.floor,yh=function(){for(var n,a,s,u,m,b,d=[],x=arguments.length;x--;)d[x]=arguments[x];d=bh(d,"hsv");var w=d[0],C=d[1],A=d[2],D,T,I;if(A*=255,C===0)D=T=I=A;else{w===360&&(w=0),w>360&&(w-=360),w<0&&(w+=360),w/=60;var F=vh(w),Q=w-F,Z=A*(1-C),re=A*(1-C*Q),le=A*(1-C*(1-Q));switch(F){case 0:n=[A,le,Z],D=n[0],T=n[1],I=n[2];break;case 1:a=[re,A,Z],D=a[0],T=a[1],I=a[2];break;case 2:s=[Z,A,le],D=s[0],T=s[1],I=s[2];break;case 3:u=[Z,re,A],D=u[0],T=u[1],I=u[2];break;case 4:m=[le,Z,A],D=m[0],T=m[1],I=m[2];break;case 5:b=[A,Z,re],D=b[0],T=b[1],I=b[2];break}}return[D,T,I,d.length>3?d[3]:1]},xh=yh,wh=v.unpack,kh=v.type,Sh=$,bl=_,vl=S,Ch=gh;bl.prototype.hsv=function(){return Ch(this._rgb)},Sh.hsv=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(bl,[null].concat(n,["hsv"])))},vl.format.hsv=xh,vl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=wh(n,"hsv"),kh(n)==="array"&&n.length===3)return"hsv"}});var mo={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},or=mo,Mh=v.unpack,yl=Math.pow,Ah=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Mh(n,"rgb"),u=s[0],m=s[1],b=s[2],d=Th(u,m,b),x=d[0],w=d[1],C=d[2],A=116*w-16;return[A<0?0:A,500*(x-w),200*(w-C)]},zn=function(n){return(n/=255)<=.04045?n/12.92:yl((n+.055)/1.055,2.4)},qn=function(n){return n>or.t3?yl(n,1/3):n/or.t2+or.t0},Th=function(n,a,s){n=zn(n),a=zn(a),s=zn(s);var u=qn((.4124564*n+.3575761*a+.1804375*s)/or.Xn),m=qn((.2126729*n+.7151522*a+.072175*s)/or.Yn),b=qn((.0193339*n+.119192*a+.9503041*s)/or.Zn);return[u,m,b]},xl=Ah,nr=mo,Lh=v.unpack,_h=Math.pow,Ph=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Lh(n,"lab");var s=n[0],u=n[1],m=n[2],b,d,x,w,C,A;return d=(s+16)/116,b=isNaN(u)?d:d+u/500,x=isNaN(m)?d:d-m/200,d=nr.Yn*Un(d),b=nr.Xn*Un(b),x=nr.Zn*Un(x),w=Vn(3.2404542*b-1.5371385*d-.4985314*x),C=Vn(-.969266*b+1.8760108*d+.041556*x),A=Vn(.0556434*b-.2040259*d+1.0572252*x),[w,C,A,n.length>3?n[3]:1]},Vn=function(n){return 255*(n<=.00304?12.92*n:1.055*_h(n,1/2.4)-.055)},Un=function(n){return n>nr.t1?n*n*n:nr.t2*(n-nr.t0)},wl=Ph,Oh=v.unpack,Eh=v.type,Rh=$,kl=_,Sl=S,$h=xl;kl.prototype.lab=function(){return $h(this._rgb)},Rh.lab=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(kl,[null].concat(n,["lab"])))},Sl.format.lab=wl,Sl.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Oh(n,"lab"),Eh(n)==="array"&&n.length===3)return"lab"}});var jh=v.unpack,Dh=v.RAD2DEG,Fh=Math.sqrt,Bh=Math.atan2,Ih=Math.round,Nh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=jh(n,"lab"),u=s[0],m=s[1],b=s[2],d=Fh(m*m+b*b),x=(Bh(b,m)*Dh+360)%360;return Ih(d*1e4)===0&&(x=Number.NaN),[u,d,x]},Cl=Nh,Gh=v.unpack,Hh=xl,zh=Cl,qh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Gh(n,"rgb"),u=s[0],m=s[1],b=s[2],d=Hh(u,m,b),x=d[0],w=d[1],C=d[2];return zh(x,w,C)},Vh=qh,Uh=v.unpack,Wh=v.DEG2RAD,Xh=Math.sin,Qh=Math.cos,Jh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Uh(n,"lch"),u=s[0],m=s[1],b=s[2];return isNaN(b)&&(b=0),b=b*Wh,[u,Qh(b)*m,Xh(b)*m]},Ml=Jh,Kh=v.unpack,Yh=Ml,Zh=wl,em=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Kh(n,"lch");var s=n[0],u=n[1],m=n[2],b=Yh(s,u,m),d=b[0],x=b[1],w=b[2],C=Zh(d,x,w),A=C[0],D=C[1],T=C[2];return[A,D,T,n.length>3?n[3]:1]},Al=em,tm=v.unpack,rm=Al,om=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=tm(n,"hcl").reverse();return rm.apply(void 0,s)},nm=om,im=v.unpack,am=v.type,Tl=$,go=_,Wn=S,Ll=Vh;go.prototype.lch=function(){return Ll(this._rgb)},go.prototype.hcl=function(){return Ll(this._rgb).reverse()},Tl.lch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(go,[null].concat(n,["lch"])))},Tl.hcl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(go,[null].concat(n,["hcl"])))},Wn.format.lch=Al,Wn.format.hcl=nm,["lch","hcl"].forEach(function(n){return Wn.autodetect.push({p:2,test:function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];if(a=im(a,n),am(a)==="array"&&a.length===3)return n}})});var lm={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"},_l=lm,sm=_,Pl=S,cm=v.type,jr=_l,um=cl,fm=sl;sm.prototype.name=function(){for(var n=fm(this._rgb,"rgb"),a=0,s=Object.keys(jr);a<s.length;a+=1){var u=s[a];if(jr[u]===n)return u.toLowerCase()}return n},Pl.format.named=function(n){if(n=n.toLowerCase(),jr[n])return um(jr[n]);throw new Error("unknown color name: "+n)},Pl.autodetect.push({p:5,test:function(n){for(var a=[],s=arguments.length-1;s-- >0;)a[s]=arguments[s+1];if(!a.length&&cm(n)==="string"&&jr[n.toLowerCase()])return"named"}});var dm=v.unpack,pm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=dm(n,"rgb"),u=s[0],m=s[1],b=s[2];return(u<<16)+(m<<8)+b},hm=pm,mm=v.type,gm=function(n){if(mm(n)=="number"&&n>=0&&n<=16777215){var a=n>>16,s=n>>8&255,u=n&255;return[a,s,u,1]}throw new Error("unknown num color: "+n)},bm=gm,vm=$,Ol=_,El=S,ym=v.type,xm=hm;Ol.prototype.num=function(){return xm(this._rgb)},vm.num=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Ol,[null].concat(n,["num"])))},El.format.num=bm,El.autodetect.push({p:5,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n.length===1&&ym(n[0])==="number"&&n[0]>=0&&n[0]<=16777215)return"num"}});var wm=$,Xn=_,Rl=S,$l=v.unpack,jl=v.type,Dl=Math.round;Xn.prototype.rgb=function(n){return n===void 0&&(n=!0),n===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Dl)},Xn.prototype.rgba=function(n){return n===void 0&&(n=!0),this._rgb.slice(0,4).map(function(a,s){return s<3?n===!1?a:Dl(a):a})},wm.rgb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Xn,[null].concat(n,["rgb"])))},Rl.format.rgb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=$l(n,"rgba");return s[3]===void 0&&(s[3]=1),s},Rl.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=$l(n,"rgba"),jl(n)==="array"&&(n.length===3||n.length===4&&jl(n[3])=="number"&&n[3]>=0&&n[3]<=1))return"rgb"}});var bo=Math.log,km=function(n){var a=n/100,s,u,m;return a<66?(s=255,u=a<6?0:-155.25485562709179-.44596950469579133*(u=a-2)+104.49216199393888*bo(u),m=a<20?0:-254.76935184120902+.8274096064007395*(m=a-10)+115.67994401066147*bo(m)):(s=351.97690566805693+.114206453784165*(s=a-55)-40.25366309332127*bo(s),u=325.4494125711974+.07943456536662342*(u=a-50)-28.0852963507957*bo(u),m=255),[s,u,m,1]},Fl=km,Sm=Fl,Cm=v.unpack,Mm=Math.round,Am=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];for(var s=Cm(n,"rgb"),u=s[0],m=s[2],b=1e3,d=4e4,x=.4,w;d-b>x;){w=(d+b)*.5;var C=Sm(w);C[2]/C[0]>=m/u?d=w:b=w}return Mm(w)},Tm=Am,Qn=$,vo=_,Jn=S,Lm=Tm;vo.prototype.temp=vo.prototype.kelvin=vo.prototype.temperature=function(){return Lm(this._rgb)},Qn.temp=Qn.kelvin=Qn.temperature=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(vo,[null].concat(n,["temp"])))},Jn.format.temp=Jn.format.kelvin=Jn.format.temperature=Fl;var _m=v.unpack,Kn=Math.cbrt,Pm=Math.pow,Om=Math.sign,Em=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=_m(n,"rgb"),u=s[0],m=s[1],b=s[2],d=[Yn(u/255),Yn(m/255),Yn(b/255)],x=d[0],w=d[1],C=d[2],A=Kn(.4122214708*x+.5363325363*w+.0514459929*C),D=Kn(.2119034982*x+.6806995451*w+.1073969566*C),T=Kn(.0883024619*x+.2817188376*w+.6299787005*C);return[.2104542553*A+.793617785*D-.0040720468*T,1.9779984951*A-2.428592205*D+.4505937099*T,.0259040371*A+.7827717662*D-.808675766*T]},Bl=Em;function Yn(n){var a=Math.abs(n);return a<.04045?n/12.92:(Om(n)||1)*Pm((a+.055)/1.055,2.4)}var Rm=v.unpack,yo=Math.pow,$m=Math.sign,jm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Rm(n,"lab");var s=n[0],u=n[1],m=n[2],b=yo(s+.3963377774*u+.2158037573*m,3),d=yo(s-.1055613458*u-.0638541728*m,3),x=yo(s-.0894841775*u-1.291485548*m,3);return[255*Zn(4.0767416621*b-3.3077115913*d+.2309699292*x),255*Zn(-1.2684380046*b+2.6097574011*d-.3413193965*x),255*Zn(-.0041960863*b-.7034186147*d+1.707614701*x),n.length>3?n[3]:1]},Il=jm;function Zn(n){var a=Math.abs(n);return a>.0031308?($m(n)||1)*(1.055*yo(a,1/2.4)-.055):n*12.92}var Dm=v.unpack,Fm=v.type,Bm=$,Nl=_,Gl=S,Im=Bl;Nl.prototype.oklab=function(){return Im(this._rgb)},Bm.oklab=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Nl,[null].concat(n,["oklab"])))},Gl.format.oklab=Il,Gl.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Dm(n,"oklab"),Fm(n)==="array"&&n.length===3)return"oklab"}});var Nm=v.unpack,Gm=Bl,Hm=Cl,zm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=Nm(n,"rgb"),u=s[0],m=s[1],b=s[2],d=Gm(u,m,b),x=d[0],w=d[1],C=d[2];return Hm(x,w,C)},qm=zm,Vm=v.unpack,Um=Ml,Wm=Il,Xm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Vm(n,"lch");var s=n[0],u=n[1],m=n[2],b=Um(s,u,m),d=b[0],x=b[1],w=b[2],C=Wm(d,x,w),A=C[0],D=C[1],T=C[2];return[A,D,T,n.length>3?n[3]:1]},Qm=Xm,Jm=v.unpack,Km=v.type,Ym=$,Hl=_,zl=S,Zm=qm;Hl.prototype.oklch=function(){return Zm(this._rgb)},Ym.oklch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Hl,[null].concat(n,["oklch"])))},zl.format.oklch=Qm,zl.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Jm(n,"oklch"),Km(n)==="array"&&n.length===3)return"oklch"}});var ql=_,eg=v.type;ql.prototype.alpha=function(n,a){return a===void 0&&(a=!1),n!==void 0&&eg(n)==="number"?a?(this._rgb[3]=n,this):new ql([this._rgb[0],this._rgb[1],this._rgb[2],n],"rgb"):this._rgb[3]};var tg=_;tg.prototype.clipped=function(){return this._rgb._clipped||!1};var zt=_,rg=mo;zt.prototype.darken=function(n){n===void 0&&(n=1);var a=this,s=a.lab();return s[0]-=rg.Kn*n,new zt(s,"lab").alpha(a.alpha(),!0)},zt.prototype.brighten=function(n){return n===void 0&&(n=1),this.darken(-n)},zt.prototype.darker=zt.prototype.darken,zt.prototype.brighter=zt.prototype.brighten;var og=_;og.prototype.get=function(n){var a=n.split("."),s=a[0],u=a[1],m=this[s]();if(u){var b=s.indexOf(u)-(s.substr(0,2)==="ok"?2:0);if(b>-1)return m[b];throw new Error("unknown channel "+u+" in mode "+s)}else return m};var ir=_,ng=v.type,ig=Math.pow,ag=1e-7,lg=20;ir.prototype.luminance=function(n){if(n!==void 0&&ng(n)==="number"){if(n===0)return new ir([0,0,0,this._rgb[3]],"rgb");if(n===1)return new ir([255,255,255,this._rgb[3]],"rgb");var a=this.luminance(),s="rgb",u=lg,m=function(d,x){var w=d.interpolate(x,.5,s),C=w.luminance();return Math.abs(n-C)<ag||!u--?w:C>n?m(d,w):m(w,x)},b=(a>n?m(new ir([0,0,0]),this):m(this,new ir([255,255,255]))).rgb();return new ir(b.concat([this._rgb[3]]))}return sg.apply(void 0,this._rgb.slice(0,3))};var sg=function(n,a,s){return n=ei(n),a=ei(a),s=ei(s),.2126*n+.7152*a+.0722*s},ei=function(n){return n/=255,n<=.03928?n/12.92:ig((n+.055)/1.055,2.4)},Ne={},Vl=_,Ul=v.type,xo=Ne,Wl=function(n,a,s){s===void 0&&(s=.5);for(var u=[],m=arguments.length-3;m-- >0;)u[m]=arguments[m+3];var b=u[0]||"lrgb";if(!xo[b]&&!u.length&&(b=Object.keys(xo)[0]),!xo[b])throw new Error("interpolation mode "+b+" is not defined");return Ul(n)!=="object"&&(n=new Vl(n)),Ul(a)!=="object"&&(a=new Vl(a)),xo[b](n,a,s).alpha(n.alpha()+s*(a.alpha()-n.alpha()))},Xl=_,cg=Wl;Xl.prototype.mix=Xl.prototype.interpolate=function(n,a){a===void 0&&(a=.5);for(var s=[],u=arguments.length-2;u-- >0;)s[u]=arguments[u+2];return cg.apply(void 0,[this,n,a].concat(s))};var Ql=_;Ql.prototype.premultiply=function(n){n===void 0&&(n=!1);var a=this._rgb,s=a[3];return n?(this._rgb=[a[0]*s,a[1]*s,a[2]*s,s],this):new Ql([a[0]*s,a[1]*s,a[2]*s,s],"rgb")};var ti=_,ug=mo;ti.prototype.saturate=function(n){n===void 0&&(n=1);var a=this,s=a.lch();return s[1]+=ug.Kn*n,s[1]<0&&(s[1]=0),new ti(s,"lch").alpha(a.alpha(),!0)},ti.prototype.desaturate=function(n){return n===void 0&&(n=1),this.saturate(-n)};var Jl=_,Kl=v.type;Jl.prototype.set=function(n,a,s){s===void 0&&(s=!1);var u=n.split("."),m=u[0],b=u[1],d=this[m]();if(b){var x=m.indexOf(b)-(m.substr(0,2)==="ok"?2:0);if(x>-1){if(Kl(a)=="string")switch(a.charAt(0)){case"+":d[x]+=+a;break;case"-":d[x]+=+a;break;case"*":d[x]*=+a.substr(1);break;case"/":d[x]/=+a.substr(1);break;default:d[x]=+a}else if(Kl(a)==="number")d[x]=a;else throw new Error("unsupported value for Color.set");var w=new Jl(d,m);return s?(this._rgb=w._rgb,this):w}throw new Error("unknown channel "+b+" in mode "+m)}else return d};var fg=_,dg=function(n,a,s){var u=n._rgb,m=a._rgb;return new fg(u[0]+s*(m[0]-u[0]),u[1]+s*(m[1]-u[1]),u[2]+s*(m[2]-u[2]),"rgb")};Ne.rgb=dg;var pg=_,ri=Math.sqrt,ar=Math.pow,hg=function(n,a,s){var u=n._rgb,m=u[0],b=u[1],d=u[2],x=a._rgb,w=x[0],C=x[1],A=x[2];return new pg(ri(ar(m,2)*(1-s)+ar(w,2)*s),ri(ar(b,2)*(1-s)+ar(C,2)*s),ri(ar(d,2)*(1-s)+ar(A,2)*s),"rgb")};Ne.lrgb=hg;var mg=_,gg=function(n,a,s){var u=n.lab(),m=a.lab();return new mg(u[0]+s*(m[0]-u[0]),u[1]+s*(m[1]-u[1]),u[2]+s*(m[2]-u[2]),"lab")};Ne.lab=gg;var Yl=_,lr=function(n,a,s,u){var m,b,d,x;u==="hsl"?(d=n.hsl(),x=a.hsl()):u==="hsv"?(d=n.hsv(),x=a.hsv()):u==="hcg"?(d=n.hcg(),x=a.hcg()):u==="hsi"?(d=n.hsi(),x=a.hsi()):u==="lch"||u==="hcl"?(u="hcl",d=n.hcl(),x=a.hcl()):u==="oklch"&&(d=n.oklch().reverse(),x=a.oklch().reverse());var w,C,A,D,T,I;(u.substr(0,1)==="h"||u==="oklch")&&(m=d,w=m[0],A=m[1],T=m[2],b=x,C=b[0],D=b[1],I=b[2]);var F,Q,Z,re;return!isNaN(w)&&!isNaN(C)?(C>w&&C-w>180?re=C-(w+360):C<w&&w-C>180?re=C+360-w:re=C-w,Q=w+s*re):isNaN(w)?isNaN(C)?Q=Number.NaN:(Q=C,(T==1||T==0)&&u!="hsv"&&(F=D)):(Q=w,(I==1||I==0)&&u!="hsv"&&(F=A)),F===void 0&&(F=A+s*(D-A)),Z=T+s*(I-T),u==="oklch"?new Yl([Z,F,Q],u):new Yl([Q,F,Z],u)},bg=lr,Zl=function(n,a,s){return bg(n,a,s,"lch")};Ne.lch=Zl,Ne.hcl=Zl;var vg=_,yg=function(n,a,s){var u=n.num(),m=a.num();return new vg(u+s*(m-u),"num")};Ne.num=yg;var xg=lr,wg=function(n,a,s){return xg(n,a,s,"hcg")};Ne.hcg=wg;var kg=lr,Sg=function(n,a,s){return kg(n,a,s,"hsi")};Ne.hsi=Sg;var Cg=lr,Mg=function(n,a,s){return Cg(n,a,s,"hsl")};Ne.hsl=Mg;var Ag=lr,Tg=function(n,a,s){return Ag(n,a,s,"hsv")};Ne.hsv=Tg;var Lg=_,_g=function(n,a,s){var u=n.oklab(),m=a.oklab();return new Lg(u[0]+s*(m[0]-u[0]),u[1]+s*(m[1]-u[1]),u[2]+s*(m[2]-u[2]),"oklab")};Ne.oklab=_g;var Pg=lr,Og=function(n,a,s){return Pg(n,a,s,"oklch")};Ne.oklch=Og;var oi=_,Eg=v.clip_rgb,ni=Math.pow,ii=Math.sqrt,ai=Math.PI,es=Math.cos,ts=Math.sin,Rg=Math.atan2,$g=function(n,a,s){a===void 0&&(a="lrgb"),s===void 0&&(s=null);var u=n.length;s||(s=Array.from(new Array(u)).map(function(){return 1}));var m=u/s.reduce(function(Q,Z){return Q+Z});if(s.forEach(function(Q,Z){s[Z]*=m}),n=n.map(function(Q){return new oi(Q)}),a==="lrgb")return jg(n,s);for(var b=n.shift(),d=b.get(a),x=[],w=0,C=0,A=0;A<d.length;A++)if(d[A]=(d[A]||0)*s[0],x.push(isNaN(d[A])?0:s[0]),a.charAt(A)==="h"&&!isNaN(d[A])){var D=d[A]/180*ai;w+=es(D)*s[0],C+=ts(D)*s[0]}var T=b.alpha()*s[0];n.forEach(function(Q,Z){var re=Q.get(a);T+=Q.alpha()*s[Z+1];for(var le=0;le<d.length;le++)if(!isNaN(re[le]))if(x[le]+=s[Z+1],a.charAt(le)==="h"){var Te=re[le]/180*ai;w+=es(Te)*s[Z+1],C+=ts(Te)*s[Z+1]}else d[le]+=re[le]*s[Z+1]});for(var I=0;I<d.length;I++)if(a.charAt(I)==="h"){for(var F=Rg(C/x[I],w/x[I])/ai*180;F<0;)F+=360;for(;F>=360;)F-=360;d[I]=F}else d[I]=d[I]/x[I];return T/=u,new oi(d,a).alpha(T>.99999?1:T,!0)},jg=function(n,a){for(var s=n.length,u=[0,0,0,0],m=0;m<n.length;m++){var b=n[m],d=a[m]/s,x=b._rgb;u[0]+=ni(x[0],2)*d,u[1]+=ni(x[1],2)*d,u[2]+=ni(x[2],2)*d,u[3]+=x[3]*d}return u[0]=ii(u[0]),u[1]=ii(u[1]),u[2]=ii(u[2]),u[3]>.9999999&&(u[3]=1),new oi(Eg(u))},Xe=$,sr=v.type,Dg=Math.pow,li=function(n){var a="rgb",s=Xe("#ccc"),u=0,m=[0,1],b=[],d=[0,0],x=!1,w=[],C=!1,A=0,D=1,T=!1,I={},F=!0,Q=1,Z=function(L){if(L=L||["#fff","#000"],L&&sr(L)==="string"&&Xe.brewer&&Xe.brewer[L.toLowerCase()]&&(L=Xe.brewer[L.toLowerCase()]),sr(L)==="array"){L.length===1&&(L=[L[0],L[0]]),L=L.slice(0);for(var z=0;z<L.length;z++)L[z]=Xe(L[z]);b.length=0;for(var K=0;K<L.length;K++)b.push(K/(L.length-1))}return Fe(),w=L},re=function(L){if(x!=null){for(var z=x.length-1,K=0;K<z&&L>=x[K];)K++;return K-1}return 0},le=function(L){return L},Te=function(L){return L},Me=function(L,z){var K,J;if(z==null&&(z=!1),isNaN(L)||L===null)return s;if(z)J=L;else if(x&&x.length>2){var Le=re(L);J=Le/(x.length-2)}else D!==A?J=(L-A)/(D-A):J=1;J=Te(J),z||(J=le(J)),Q!==1&&(J=Dg(J,Q)),J=d[0]+J*(1-d[0]-d[1]),J=Math.min(1,Math.max(0,J));var pe=Math.floor(J*1e4);if(F&&I[pe])K=I[pe];else{if(sr(w)==="array")for(var oe=0;oe<b.length;oe++){var se=b[oe];if(J<=se){K=w[oe];break}if(J>=se&&oe===b.length-1){K=w[oe];break}if(J>se&&J<b[oe+1]){J=(J-se)/(b[oe+1]-se),K=Xe.interpolate(w[oe],w[oe+1],J,a);break}}else sr(w)==="function"&&(K=w(J));F&&(I[pe]=K)}return K},Fe=function(){return I={}};Z(n);var te=function(L){var z=Xe(Me(L));return C&&z[C]?z[C]():z};return te.classes=function(L){if(L!=null){if(sr(L)==="array")x=L,m=[L[0],L[L.length-1]];else{var z=Xe.analyze(m);L===0?x=[z.min,z.max]:x=Xe.limits(z,"e",L)}return te}return x},te.domain=function(L){if(!arguments.length)return m;A=L[0],D=L[L.length-1],b=[];var z=w.length;if(L.length===z&&A!==D)for(var K=0,J=Array.from(L);K<J.length;K+=1){var Le=J[K];b.push((Le-A)/(D-A))}else{for(var pe=0;pe<z;pe++)b.push(pe/(z-1));if(L.length>2){var oe=L.map(function(ce,ue){return ue/(L.length-1)}),se=L.map(function(ce){return(ce-A)/(D-A)});se.every(function(ce,ue){return oe[ue]===ce})||(Te=function(ce){if(ce<=0||ce>=1)return ce;for(var ue=0;ce>=se[ue+1];)ue++;var Je=(ce-se[ue])/(se[ue+1]-se[ue]),Tt=oe[ue]+Je*(oe[ue+1]-oe[ue]);return Tt})}}return m=[A,D],te},te.mode=function(L){return arguments.length?(a=L,Fe(),te):a},te.range=function(L,z){return Z(L),te},te.out=function(L){return C=L,te},te.spread=function(L){return arguments.length?(u=L,te):u},te.correctLightness=function(L){return L==null&&(L=!0),T=L,Fe(),T?le=function(z){for(var K=Me(0,!0).lab()[0],J=Me(1,!0).lab()[0],Le=K>J,pe=Me(z,!0).lab()[0],oe=K+(J-K)*z,se=pe-oe,ce=0,ue=1,Je=20;Math.abs(se)>.01&&Je-- >0;)(function(){return Le&&(se*=-1),se<0?(ce=z,z+=(ue-z)*.5):(ue=z,z+=(ce-z)*.5),pe=Me(z,!0).lab()[0],se=pe-oe})();return z}:le=function(z){return z},te},te.padding=function(L){return L!=null?(sr(L)==="number"&&(L=[L,L]),d=L,te):d},te.colors=function(L,z){arguments.length<2&&(z="hex");var K=[];if(arguments.length===0)K=w.slice(0);else if(L===1)K=[te(.5)];else if(L>1){var J=m[0],Le=m[1]-J;K=Fg(0,L,!1).map(function(ue){return te(J+ue/(L-1)*Le)})}else{n=[];var pe=[];if(x&&x.length>2)for(var oe=1,se=x.length,ce=1<=se;ce?oe<se:oe>se;ce?oe++:oe--)pe.push((x[oe-1]+x[oe])*.5);else pe=m;K=pe.map(function(ue){return te(ue)})}return Xe[z]&&(K=K.map(function(ue){return ue[z]()})),K},te.cache=function(L){return L!=null?(F=L,te):F},te.gamma=function(L){return L!=null?(Q=L,te):Q},te.nodata=function(L){return L!=null?(s=Xe(L),te):s},te};function Fg(n,a,s){for(var u=[],m=n<a,b=s?m?a+1:a-1:a,d=n;m?d<b:d>b;m?d++:d--)u.push(d);return u}var Dr=_,Bg=li,Ig=function(n){for(var a=[1,1],s=1;s<n;s++){for(var u=[1],m=1;m<=a.length;m++)u[m]=(a[m]||0)+a[m-1];a=u}return a},Ng=function(n){var a,s,u,m,b,d,x;if(n=n.map(function(T){return new Dr(T)}),n.length===2)a=n.map(function(T){return T.lab()}),b=a[0],d=a[1],m=function(T){var I=[0,1,2].map(function(F){return b[F]+T*(d[F]-b[F])});return new Dr(I,"lab")};else if(n.length===3)s=n.map(function(T){return T.lab()}),b=s[0],d=s[1],x=s[2],m=function(T){var I=[0,1,2].map(function(F){return(1-T)*(1-T)*b[F]+2*(1-T)*T*d[F]+T*T*x[F]});return new Dr(I,"lab")};else if(n.length===4){var w;u=n.map(function(T){return T.lab()}),b=u[0],d=u[1],x=u[2],w=u[3],m=function(T){var I=[0,1,2].map(function(F){return(1-T)*(1-T)*(1-T)*b[F]+3*(1-T)*(1-T)*T*d[F]+3*(1-T)*T*T*x[F]+T*T*T*w[F]});return new Dr(I,"lab")}}else if(n.length>=5){var C,A,D;C=n.map(function(T){return T.lab()}),D=n.length-1,A=Ig(D),m=function(T){var I=1-T,F=[0,1,2].map(function(Q){return C.reduce(function(Z,re,le){return Z+A[le]*Math.pow(I,D-le)*Math.pow(T,le)*re[Q]},0)});return new Dr(F,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return m},Gg=function(n){var a=Ng(n);return a.scale=function(){return Bg(a)},a},si=$,Qe=function(n,a,s){if(!Qe[s])throw new Error("unknown blend mode "+s);return Qe[s](n,a)},Mt=function(n){return function(a,s){var u=si(s).rgb(),m=si(a).rgb();return si.rgb(n(u,m))}},At=function(n){return function(a,s){var u=[];return u[0]=n(a[0],s[0]),u[1]=n(a[1],s[1]),u[2]=n(a[2],s[2]),u}},Hg=function(n){return n},zg=function(n,a){return n*a/255},qg=function(n,a){return n>a?a:n},Vg=function(n,a){return n>a?n:a},Ug=function(n,a){return 255*(1-(1-n/255)*(1-a/255))},Wg=function(n,a){return a<128?2*n*a/255:255*(1-2*(1-n/255)*(1-a/255))},Xg=function(n,a){return 255*(1-(1-a/255)/(n/255))},Qg=function(n,a){return n===255?255:(n=255*(a/255)/(1-n/255),n>255?255:n)};Qe.normal=Mt(At(Hg)),Qe.multiply=Mt(At(zg)),Qe.screen=Mt(At(Ug)),Qe.overlay=Mt(At(Wg)),Qe.darken=Mt(At(qg)),Qe.lighten=Mt(At(Vg)),Qe.dodge=Mt(At(Qg)),Qe.burn=Mt(At(Xg));for(var Jg=Qe,ci=v.type,Kg=v.clip_rgb,Yg=v.TWOPI,Zg=Math.pow,eb=Math.sin,tb=Math.cos,rs=$,rb=function(n,a,s,u,m){n===void 0&&(n=300),a===void 0&&(a=-1.5),s===void 0&&(s=1),u===void 0&&(u=1),m===void 0&&(m=[0,1]);var b=0,d;ci(m)==="array"?d=m[1]-m[0]:(d=0,m=[m,m]);var x=function(w){var C=Yg*((n+120)/360+a*w),A=Zg(m[0]+d*w,u),D=b!==0?s[0]+w*b:s,T=D*A*(1-A)/2,I=tb(C),F=eb(C),Q=A+T*(-.14861*I+1.78277*F),Z=A+T*(-.29227*I-.90649*F),re=A+T*(1.97294*I);return rs(Kg([Q*255,Z*255,re*255,1]))};return x.start=function(w){return w==null?n:(n=w,x)},x.rotations=function(w){return w==null?a:(a=w,x)},x.gamma=function(w){return w==null?u:(u=w,x)},x.hue=function(w){return w==null?s:(s=w,ci(s)==="array"?(b=s[1]-s[0],b===0&&(s=s[1])):b=0,x)},x.lightness=function(w){return w==null?m:(ci(w)==="array"?(m=w,d=w[1]-w[0]):(m=[w,w],d=0),x)},x.scale=function(){return rs.scale(x)},x.hue(s),x},ob=_,nb="0123456789abcdef",ib=Math.floor,ab=Math.random,lb=function(){for(var n="#",a=0;a<6;a++)n+=nb.charAt(ib(ab()*16));return new ob(n,"hex")},ui=f,os=Math.log,sb=Math.pow,cb=Math.floor,ub=Math.abs,ns=function(n,a){a===void 0&&(a=null);var s={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return ui(n)==="object"&&(n=Object.values(n)),n.forEach(function(u){a&&ui(u)==="object"&&(u=u[a]),u!=null&&!isNaN(u)&&(s.values.push(u),s.sum+=u,u<s.min&&(s.min=u),u>s.max&&(s.max=u),s.count+=1)}),s.domain=[s.min,s.max],s.limits=function(u,m){return is(s,u,m)},s},is=function(n,a,s){a===void 0&&(a="equal"),s===void 0&&(s=7),ui(n)=="array"&&(n=ns(n));var u=n.min,m=n.max,b=n.values.sort(function(di,pi){return di-pi});if(s===1)return[u,m];var d=[];if(a.substr(0,1)==="c"&&(d.push(u),d.push(m)),a.substr(0,1)==="e"){d.push(u);for(var x=1;x<s;x++)d.push(u+x/s*(m-u));d.push(m)}else if(a.substr(0,1)==="l"){if(u<=0)throw new Error("Logarithmic scales are only possible for values > 0");var w=Math.LOG10E*os(u),C=Math.LOG10E*os(m);d.push(u);for(var A=1;A<s;A++)d.push(sb(10,w+A/s*(C-w)));d.push(m)}else if(a.substr(0,1)==="q"){d.push(u);for(var D=1;D<s;D++){var T=(b.length-1)*D/s,I=cb(T);if(I===T)d.push(b[I]);else{var F=T-I;d.push(b[I]*(1-F)+b[I+1]*F)}}d.push(m)}else if(a.substr(0,1)==="k"){var Q,Z=b.length,re=new Array(Z),le=new Array(s),Te=!0,Me=0,Fe=null;Fe=[],Fe.push(u);for(var te=1;te<s;te++)Fe.push(u+te/s*(m-u));for(Fe.push(m);Te;){for(var L=0;L<s;L++)le[L]=0;for(var z=0;z<Z;z++)for(var K=b[z],J=Number.MAX_VALUE,Le=void 0,pe=0;pe<s;pe++){var oe=ub(Fe[pe]-K);oe<J&&(J=oe,Le=pe),le[Le]++,re[z]=Le}for(var se=new Array(s),ce=0;ce<s;ce++)se[ce]=null;for(var ue=0;ue<Z;ue++)Q=re[ue],se[Q]===null?se[Q]=b[ue]:se[Q]+=b[ue];for(var Je=0;Je<s;Je++)se[Je]*=1/le[Je];Te=!1;for(var Tt=0;Tt<s;Tt++)if(se[Tt]!==Fe[Tt]){Te=!0;break}Fe=se,Me++,Me>200&&(Te=!1)}for(var Lt={},cr=0;cr<s;cr++)Lt[cr]=[];for(var ur=0;ur<Z;ur++)Q=re[ur],Lt[Q].push(b[ur]);for(var dt=[],qt=0;qt<s;qt++)dt.push(Lt[qt][0]),dt.push(Lt[qt][Lt[qt].length-1]);dt=dt.sort(function(di,pi){return di-pi}),d.push(dt[0]);for(var Fr=1;Fr<dt.length;Fr+=2){var Vt=dt[Fr];!isNaN(Vt)&&d.indexOf(Vt)===-1&&d.push(Vt)}}return d},as={analyze:ns,limits:is},ls=_,fb=function(n,a){n=new ls(n),a=new ls(a);var s=n.luminance(),u=a.luminance();return s>u?(s+.05)/(u+.05):(u+.05)/(s+.05)},ss=_,ft=Math.sqrt,ke=Math.pow,db=Math.min,pb=Math.max,cs=Math.atan2,us=Math.abs,wo=Math.cos,fs=Math.sin,hb=Math.exp,ds=Math.PI,mb=function(n,a,s,u,m){s===void 0&&(s=1),u===void 0&&(u=1),m===void 0&&(m=1);var b=function(Vt){return 360*Vt/(2*ds)},d=function(Vt){return 2*ds*Vt/360};n=new ss(n),a=new ss(a);var x=Array.from(n.lab()),w=x[0],C=x[1],A=x[2],D=Array.from(a.lab()),T=D[0],I=D[1],F=D[2],Q=(w+T)/2,Z=ft(ke(C,2)+ke(A,2)),re=ft(ke(I,2)+ke(F,2)),le=(Z+re)/2,Te=.5*(1-ft(ke(le,7)/(ke(le,7)+ke(25,7)))),Me=C*(1+Te),Fe=I*(1+Te),te=ft(ke(Me,2)+ke(A,2)),L=ft(ke(Fe,2)+ke(F,2)),z=(te+L)/2,K=b(cs(A,Me)),J=b(cs(F,Fe)),Le=K>=0?K:K+360,pe=J>=0?J:J+360,oe=us(Le-pe)>180?(Le+pe+360)/2:(Le+pe)/2,se=1-.17*wo(d(oe-30))+.24*wo(d(2*oe))+.32*wo(d(3*oe+6))-.2*wo(d(4*oe-63)),ce=pe-Le;ce=us(ce)<=180?ce:pe<=Le?ce+360:ce-360,ce=2*ft(te*L)*fs(d(ce)/2);var ue=T-w,Je=L-te,Tt=1+.015*ke(Q-50,2)/ft(20+ke(Q-50,2)),Lt=1+.045*z,cr=1+.015*z*se,ur=30*hb(-ke((oe-275)/25,2)),dt=2*ft(ke(z,7)/(ke(z,7)+ke(25,7))),qt=-dt*fs(2*d(ur)),Fr=ft(ke(ue/(s*Tt),2)+ke(Je/(u*Lt),2)+ke(ce/(m*cr),2)+qt*(Je/(u*Lt))*(ce/(m*cr)));return pb(0,db(100,Fr))},ps=_,gb=function(n,a,s){s===void 0&&(s="lab"),n=new ps(n),a=new ps(a);var u=n.get(s),m=a.get(s),b=0;for(var d in u){var x=(u[d]||0)-(m[d]||0);b+=x*x}return Math.sqrt(b)},bb=_,vb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];try{return new(Function.prototype.bind.apply(bb,[null].concat(n))),!0}catch{return!1}},hs=$,ms=li,yb={cool:function(){return ms([hs.hsl(180,1,.9),hs.hsl(250,.7,.4)])},hot:function(){return ms(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ko={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},fi=0,gs=Object.keys(ko);fi<gs.length;fi+=1){var bs=gs[fi];ko[bs.toLowerCase()]=ko[bs]}var xb=ko,Ce=$;Ce.average=$g,Ce.bezier=Gg,Ce.blend=Jg,Ce.cubehelix=rb,Ce.mix=Ce.interpolate=Wl,Ce.random=lb,Ce.scale=li,Ce.analyze=as.analyze,Ce.contrast=fb,Ce.deltaE=mb,Ce.distance=gb,Ce.limits=as.limits,Ce.valid=vb,Ce.scales=yb,Ce.colors=_l,Ce.brewer=xb;var wb=Ce;return wb})});var uu=ne(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.default=void 0;var Ri=zo(gc()),$i=zo(Pc()),U0=zo(iu()),Ho=zo(au());function zo(e){return e&&e.__esModule?e:{default:e}}function W0(e){if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(e=X0(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(h){throw h},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1,c;return{s:function(){o=e[Symbol.iterator]()},n:function(){var h=o.next();return i=h.done,h},e:function(h){l=!0,c=h},f:function(){try{!i&&o.return!=null&&o.return()}finally{if(l)throw c}}}}function X0(e,t){if(!!e){if(typeof e=="string")return lu(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 lu(e,t)}}function lu(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 su(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 Q0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?su(Object(r),!0).forEach(function(o){J0(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):su(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function J0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var K0={count:5,hueMin:0,hueMax:360,chromaMin:0,chromaMax:100,lightMin:0,lightMax:100,quality:50,samples:800},cu=function(t,r){for(var o=Number.MAX_SAFE_INTEGER,i=0,l=0;l<t.length;l+=1){var c=t[l],f=Math.sqrt(Math.pow(Math.abs(c[0]-r[0]),2)+Math.pow(Math.abs(c[1]-r[1]),2)+Math.pow(Math.abs(c[2]-r[2]),2));f<o&&(o=f,i=l)}return i},Y0=function(t,r){var o=Ho.default.lab(t),i=o.hcl(),l=o.rgb(),c=Ho.default.rgb(l).lab(),f=2;return i[0]>=r.hueMin&&i[0]<=r.hueMax&&i[1]>=r.chromaMin&&i[1]<=r.chromaMax&&i[2]>=r.lightMin&&i[2]<=r.lightMax&&c[0]>=t[0]-f&&c[0]<=t[0]+f&&c[1]>=t[1]-f&&c[1]<=t[1]+f&&c[2]>=t[2]-f&&c[2]<=t[2]+f},Z0=function(t){for(var r=t.slice(0),o=[r.shift()];r.length>0;){for(var i=o[o.length-1],l=0,c=Number.MIN_SAFE_INTEGER,f=0;f<r.length;f+=1){var h=Math.sqrt(Math.pow(Math.abs(i[0]-r[f][0]),2)+Math.pow(Math.abs(i[1]-r[f][1]),2)+Math.pow(Math.abs(i[2]-r[f][2]),2));h>c&&(c=h,l=f)}o.push(r.splice(l,1)[0])}return o},ev=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Q0({},K0,{},t);if(r.count<=0)return[];r.samples<r.count*3&&(r.samples=Math.ceil(r.count*3));var o=[],i=[],l=new Set,c=Math.ceil(Math.cbrt(r.samples)),f=(r.hueMax-r.hueMin)/c,h=(r.chromaMax-r.chromaMin)/c,p=(r.lightMax-r.lightMin)/c;if(f<=0)throw new Error("hueMax must be greater than hueMin!");if(h<=0)throw new Error("chromaMax must be greater than chromaMin!");if(p<=0)throw new Error("lightMax must be greater than lightMin!");for(var g=r.hueMin+f/2;g<=r.hueMax;g+=f)for(var k=r.chromaMin+h/2;k<=r.chromaMax;k+=h)for(var y=r.lightMin+p/2;y<=r.lightMax;y+=p){var v=Ho.default.hcl(g,k,y).lab();Y0(v,r)&&l.add(v.toString())}if(l=Array.from(l),l=l.map(function(Ht){return Ht.split(",").map(function($r){return parseFloat($r)})}),l.length<r.count)throw new Error("Not enough samples to generate palette, increase sample count.");for(var S=Math.floor(l.length/r.count),M=0;M<l.length&&(o.push(l[M]),i.push([]),!(o.length>=r.count));M+=S);for(var P=1;P<=r.quality;P+=1){for(var j=(0,$i.default)(i),B=(0,$i.default)(l),H=0;H<o.length;H+=1){var _=cu(B,o[H]);j[H].push(B[_]),B.splice(_,1)}for(var W=0;W<B.length;W+=1){var $=l[W],ie=cu(o,$);j[ie].push(l[W])}for(var ae=(0,$i.default)(o),me=0;me<j.length;me+=1){var fe=j[me],be=fe.length,we=[],$e=[],Ct=[],ut=W0(fe),Er;try{for(ut.s();!(Er=ut.n()).done;){var Rr=Er.value;we.push(Rr[0]),$e.push(Rr[1]),Ct.push(Rr[2])}}catch(Ht){ut.e(Ht)}finally{ut.f()}var Dn=Ri.default.sum(we)/be,Fn=Ri.default.sum($e)/be,Bn=Ri.default.sum(Ct)/be;o[me]=[Dn,Fn,Bn]}if((0,U0.default)(ae,o))break}return o=Z0(o),o.map(function(Ht){return Ho.default.lab(Ht)})},tv=ev;qo.default=tv});var du=ne((g2,ov)=>{ov.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 pu=ne((b2,nv)=>{nv.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 gu=ne((v2,mu)=>{"use strict";function Xt(){var e={};return e.extensions||(e.extensions=du()),e.languages||(e.languages=pu()),e}Xt.extensions=function(t){t=hu(t);var r=Xt().languages,o=Xt().extensions;return o[t]||o[r[t]]||[t]};Xt.languages=function(t){t=hu(t);var r=Xt().languages,o=Xt().extensions;return r[t]||r[o[t]]||[t]};function hu(e){return e.charAt(0)==="."&&(e=e.slice(1)),e.toLowerCase()}mu.exports=Xt});var Aa=ne(st=>{"use strict";var Vy=st&&st.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),Uy=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Wy=st&&st.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Vy(t,e,r);return Uy(t,e),t};Object.defineProperty(st,"__esModule",{value:!0});st.useWindowSize=void 0;var rd=Wy(ee());function od(){return{height:window.innerHeight,width:window.innerWidth}}function Xy(){var e=rd.useState(od()),t=e[0],r=e[1];return rd.useLayoutEffect(function(){function o(){r(od())}return window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[]),t}st.useWindowSize=Xy});var id=ne(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.useBreakpoints=Tr.useBreakpoint=void 0;var nd=Aa();function Qy(e){var t=(0,nd.useWindowSize)().width;return t<e}Tr.useBreakpoint=Qy;function Jy(e){var t=(0,nd.useWindowSize)().width;return e.map(function(r){return t<r})}Tr.useBreakpoints=Jy});var ad=ne(We=>{"use strict";var Ta=We&&We.__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)},Ky=We&&We.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),Yy=We&&We.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Zy=We&&We.__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)&&Ky(t,e,r);return Yy(t,e),t};Object.defineProperty(We,"__esModule",{value:!0});We.useComponentSize=void 0;var Pn=Zy(ee());function ex(){var e=Pn.useState({height:0,width:0}),t=e[0],r=e[1],o=Pn.useRef(),i=Pn.useCallback(function(){if(!!o.current){var l=o.current.offsetHeight,c=o.current.offsetWidth;(l!==t.height||c!==t.width)&&r({height:l,width:c})}},[t.height,t.width]);return Pn.useLayoutEffect(function(){if(!(!o||!o.current)){var l=new ResizeObserver(i);return l.observe(o.current),function(){return l.disconnect()}}},[o,i]),Ta({ref:o},t)}We.useComponentSize=ex});var ld=ne(xt=>{"use strict";var tx=xt&&xt.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),La=xt&&xt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&tx(t,e,r)};Object.defineProperty(xt,"__esModule",{value:!0});La(id(),xt);La(ad(),xt);La(Aa(),xt)});Sb();var ap=R(ee());var Qs=function(){};function Eo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Ro(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Js=typeof window<"u";var Ks=R(ee()),Tb=function(e,t){return typeof t=="boolean"?t:!e},Lb=function(e){return(0,Ks.useReducer)(Tb,e)},Ys=Lb;var Wt=Ys;var Zs=R(ee());var Ke=R(ee());function yi(e,t){t===void 0&&(t=0);var r=(0,Ke.useRef)(!1),o=(0,Ke.useRef)(),i=(0,Ke.useRef)(e),l=(0,Ke.useCallback)(function(){return r.current},[]),c=(0,Ke.useCallback)(function(){r.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout(function(){r.current=!0,i.current()},t)},[t]),f=(0,Ke.useCallback)(function(){r.current=null,o.current&&clearTimeout(o.current)},[]);return(0,Ke.useEffect)(function(){i.current=e},[e]),(0,Ke.useEffect)(function(){return c(),f},[t]),[l,f,c]}function $o(e,t,r){t===void 0&&(t=0),r===void 0&&(r=[]);var o=yi(e,t),i=o[0],l=o[1],c=o[2];return(0,Zs.useEffect)(c,r),[i,l]}var ec=R(ee()),_b=function(e){(0,ec.useEffect)(e,[])},tc=_b;var nc=R(ee());var Pb=Js?window:null,rc=function(e){return!!e.addEventListener},oc=function(e){return!!e.on},Ob=function(e,t,r,o){r===void 0&&(r=Pb),(0,nc.useEffect)(function(){if(!!t&&!!r)return rc(r)?Eo(r,e,t,o):oc(r)&&r.on(e,t,o),function(){rc(r)?Ro(r,e,t,o):oc(r)&&r.off(e,t,o)}},[e,t,r,JSON.stringify(o)])},ic=Ob;var ac=R(ee());var Eb=function(e){return typeof e=="function"?e:typeof e=="string"?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},Rb=function(e,t,r,o){t===void 0&&(t=Qs),r===void 0&&(r={}),o===void 0&&(o=[e]);var i=r.event,l=i===void 0?"keydown":i,c=r.target,f=r.options,h=(0,ac.useMemo)(function(){var p=Eb(e),g=function(k){if(p(k))return t(k)};return g},o);ic(l,h,c,f)},xi=Rb;var uc=R(ee());var dr=R(ee());var lc=R(ee());var $b=function(e){var t=(0,lc.useRef)(e);t.current=e,tc(function(){return function(){return t.current()}})},sc=$b;var jb=function(e){var t=(0,dr.useRef)(0),r=(0,dr.useState)(e),o=r[0],i=r[1],l=(0,dr.useCallback)(function(c){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(c)})},[]);return sc(function(){cancelAnimationFrame(t.current)}),[o,l]},cc=jb;var Db=function(e){var t=cc({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),r=t[0],o=t[1];return(0,uc.useEffect)(function(){var i=function(l){if(e&&e.current){var c=e.current.getBoundingClientRect(),f=c.left,h=c.top,p=c.width,g=c.height,k=f+window.pageXOffset,y=h+window.pageYOffset,v=l.pageX-k,S=l.pageY-y;o({docX:l.pageX,docY:l.pageY,posX:k,posY:y,elX:v,elY:S,elH:g,elW:p})}};return Eo(document,"mousemove",i),function(){Ro(document,"mousemove",i)}},[e]),r},wi=Db;function ki(e,t){for(let o of Object.keys(t))r(e,o.split("."),t[o]);return e;function r(o,i,l,c=0){let f=i[c];if(c<i.length-1){r(o[f],i,l,c+1);return}let h=o[f];switch(l){case"date":o[f]=new Date(h);break;case"set":o[f]=new Set(h);break;case"map":o[f]=new Map(Object.entries(h));break;case"regexp":let p=/^\/(.*)\/([dgimsuy]*)$/.exec(h);if(p)o[f]=new RegExp(p[1],p[2]);else throw new Error(`Invalid regexp: ${h}`);break;case"bigint":o[f]=BigInt(h);break;case"undefined":o[f]=void 0;break;case"infinity":o[f]=Number.POSITIVE_INFINITY;break;case"-infinity":o[f]=Number.NEGATIVE_INFINITY;break;case"nan":o[f]=NaN;break;case"error":let g=new Error(h.message);g.name=h.name,g.stack=h.stack,o[f]=g;break}}}function Si(){let e=ws();return fc(e)}function fc(e){if(!e)return e;if(e.__obj__)return e.__meta__?ki(e.__obj__,e.__meta__):e.__obj__;if(e.__meta__){let t=e.__meta__;return delete e.__meta__,ki(e,t)}return e}var za=R(pc()),t1=R(Cb()),r1=R(Mb()),o1=R(Ab()),lp=R(mc());var Qt=R(ee());var Fu=R(ee());var jo=R(ee()),Ci=(0,jo.createContext)(void 0);function Ye(){let e=(0,jo.useContext)(Ci);if(!e)throw new Error("useMetrics must be used within a MetricsContext");return e}var Yo=R(ee());var Pu=R(uu());var fu={"1C Enterprise":{color:"#814CCC",url:"https://github.com/trending?l=1C-Enterprise"},"2-Dimensional Array":{color:"#38761D",url:"https://github.com/trending?l=2-Dimensional-Array"},"4D":{color:"#004289",url:"https://github.com/trending?l=4D"},ABAP:{color:"#E8274B",url:"https://github.com/trending?l=ABAP"},"ABAP CDS":{color:"#555e25",url:"https://github.com/trending?l=ABAP-CDS"},ActionScript:{color:"#882B0F",url:"https://github.com/trending?l=ActionScript"},Ada:{color:"#02f88c",url:"https://github.com/trending?l=Ada"},"Adblock Filter List":{color:"#800000",url:"https://github.com/trending?l=Adblock-Filter-List"},"Adobe Font Metrics":{color:"#fa0f00",url:"https://github.com/trending?l=Adobe-Font-Metrics"},Agda:{color:"#315665",url:"https://github.com/trending?l=Agda"},"AGS Script":{color:"#B9D9FF",url:"https://github.com/trending?l=AGS-Script"},AIDL:{color:"#34EB6B",url:"https://github.com/trending?l=AIDL"},AL:{color:"#3AA2B5",url:"https://github.com/trending?l=AL"},Alloy:{color:"#64C800",url:"https://github.com/trending?l=Alloy"},"Alpine Abuild":{color:"#0D597F",url:"https://github.com/trending?l=Alpine-Abuild"},"Altium Designer":{color:"#A89663",url:"https://github.com/trending?l=Altium-Designer"},AMPL:{color:"#E6EFBB",url:"https://github.com/trending?l=AMPL"},AngelScript:{color:"#C7D7DC",url:"https://github.com/trending?l=AngelScript"},"Ant Build System":{color:"#A9157E",url:"https://github.com/trending?l=Ant-Build-System"},Antlers:{color:"#ff269e",url:"https://github.com/trending?l=Antlers"},ANTLR:{color:"#9DC3FF",url:"https://github.com/trending?l=ANTLR"},ApacheConf:{color:"#d12127",url:"https://github.com/trending?l=ApacheConf"},Apex:{color:"#1797c0",url:"https://github.com/trending?l=Apex"},"API Blueprint":{color:"#2ACCA8",url:"https://github.com/trending?l=API-Blueprint"},APL:{color:"#5A8164",url:"https://github.com/trending?l=APL"},"Apollo Guidance Computer":{color:"#0B3D91",url:"https://github.com/trending?l=Apollo-Guidance-Computer"},AppleScript:{color:"#101F1F",url:"https://github.com/trending?l=AppleScript"},Arc:{color:"#aa2afe",url:"https://github.com/trending?l=Arc"},AsciiDoc:{color:"#73a0c5",url:"https://github.com/trending?l=AsciiDoc"},ASL:{color:null,url:"https://github.com/trending?l=ASL"},"ASP.NET":{color:"#9400ff",url:"https://github.com/trending?l=ASP.NET"},AspectJ:{color:"#a957b0",url:"https://github.com/trending?l=AspectJ"},Assembly:{color:"#6E4C13",url:"https://github.com/trending?l=Assembly"},Astro:{color:"#ff5a03",url:"https://github.com/trending?l=Astro"},Asymptote:{color:"#ff0000",url:"https://github.com/trending?l=Asymptote"},ATS:{color:"#1ac620",url:"https://github.com/trending?l=ATS"},Augeas:{color:"#9CC134",url:"https://github.com/trending?l=Augeas"},AutoHotkey:{color:"#6594b9",url:"https://github.com/trending?l=AutoHotkey"},AutoIt:{color:"#1C3552",url:"https://github.com/trending?l=AutoIt"},"Avro IDL":{color:"#0040FF",url:"https://github.com/trending?l=Avro-IDL"},Awk:{color:"#c30e9b",url:"https://github.com/trending?l=Awk"},Ballerina:{color:"#FF5000",url:"https://github.com/trending?l=Ballerina"},BASIC:{color:"#ff0000",url:"https://github.com/trending?l=BASIC"},Batchfile:{color:"#C1F12E",url:"https://github.com/trending?l=Batchfile"},Beef:{color:"#a52f4e",url:"https://github.com/trending?l=Beef"},Befunge:{color:null,url:"https://github.com/trending?l=Befunge"},Berry:{color:"#15A13C",url:"https://github.com/trending?l=Berry"},BibTeX:{color:"#778899",url:"https://github.com/trending?l=BibTeX"},Bicep:{color:"#519aba",url:"https://github.com/trending?l=Bicep"},Bikeshed:{color:"#5562ac",url:"https://github.com/trending?l=Bikeshed"},Bison:{color:"#6A463F",url:"https://github.com/trending?l=Bison"},BitBake:{color:"#00bce4",url:"https://github.com/trending?l=BitBake"},Blade:{color:"#f7523f",url:"https://github.com/trending?l=Blade"},BlitzBasic:{color:"#00FFAE",url:"https://github.com/trending?l=BlitzBasic"},BlitzMax:{color:"#cd6400",url:"https://github.com/trending?l=BlitzMax"},Bluespec:{color:"#12223c",url:"https://github.com/trending?l=Bluespec"},Boo:{color:"#d4bec1",url:"https://github.com/trending?l=Boo"},Boogie:{color:"#c80fa0",url:"https://github.com/trending?l=Boogie"},Brainfuck:{color:"#2F2530",url:"https://github.com/trending?l=Brainfuck"},BrighterScript:{color:"#66AABB",url:"https://github.com/trending?l=BrighterScript"},Brightscript:{color:"#662D91",url:"https://github.com/trending?l=Brightscript"},Browserslist:{color:"#ffd539",url:"https://github.com/trending?l=Browserslist"},C:{color:"#555555",url:"https://github.com/trending?l=C"},"C#":{color:"#178600",url:"https://github.com/trending?l=Csharp"},"C++":{color:"#f34b7d",url:"https://github.com/trending?l=C++"},"C2hs Haskell":{color:null,url:"https://github.com/trending?l=C2hs-Haskell"},"Cabal Config":{color:"#483465",url:"https://github.com/trending?l=Cabal-Config"},Cadence:{color:"#00ef8b",url:"https://github.com/trending?l=Cadence"},Cairo:{color:"#ff4a48",url:"https://github.com/trending?l=Cairo"},CameLIGO:{color:"#3be133",url:"https://github.com/trending?l=CameLIGO"},"CAP CDS":{color:"#0092d1",url:"https://github.com/trending?l=CAP-CDS"},"Cap'n Proto":{color:"#c42727",url:"https://github.com/trending?l=Cap'n-Proto"},CartoCSS:{color:null,url:"https://github.com/trending?l=CartoCSS"},Ceylon:{color:"#dfa535",url:"https://github.com/trending?l=Ceylon"},Chapel:{color:"#8dc63f",url:"https://github.com/trending?l=Chapel"},Charity:{color:null,url:"https://github.com/trending?l=Charity"},ChucK:{color:"#3f8000",url:"https://github.com/trending?l=ChucK"},Cirru:{color:"#ccccff",url:"https://github.com/trending?l=Cirru"},Clarion:{color:"#db901e",url:"https://github.com/trending?l=Clarion"},Clarity:{color:"#5546ff",url:"https://github.com/trending?l=Clarity"},"Classic ASP":{color:"#6a40fd",url:"https://github.com/trending?l=Classic-ASP"},Clean:{color:"#3F85AF",url:"https://github.com/trending?l=Clean"},Click:{color:"#E4E6F3",url:"https://github.com/trending?l=Click"},CLIPS:{color:"#00A300",url:"https://github.com/trending?l=CLIPS"},Clojure:{color:"#db5855",url:"https://github.com/trending?l=Clojure"},"Closure Templates":{color:"#0d948f",url:"https://github.com/trending?l=Closure-Templates"},"Cloud Firestore Security Rules":{color:"#FFA000",url:"https://github.com/trending?l=Cloud-Firestore-Security-Rules"},CMake:{color:"#DA3434",url:"https://github.com/trending?l=CMake"},COBOL:{color:null,url:"https://github.com/trending?l=COBOL"},CodeQL:{color:"#140f46",url:"https://github.com/trending?l=CodeQL"},CoffeeScript:{color:"#244776",url:"https://github.com/trending?l=CoffeeScript"},ColdFusion:{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion"},"ColdFusion CFC":{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion-CFC"},COLLADA:{color:"#F1A42B",url:"https://github.com/trending?l=COLLADA"},"Common Lisp":{color:"#3fb68b",url:"https://github.com/trending?l=Common-Lisp"},"Common Workflow Language":{color:"#B5314C",url:"https://github.com/trending?l=Common-Workflow-Language"},"Component Pascal":{color:"#B0CE4E",url:"https://github.com/trending?l=Component-Pascal"},Cool:{color:null,url:"https://github.com/trending?l=Cool"},Coq:{color:"#d0b68c",url:"https://github.com/trending?l=Coq"},Crystal:{color:"#000100",url:"https://github.com/trending?l=Crystal"},CSON:{color:"#244776",url:"https://github.com/trending?l=CSON"},Csound:{color:"#1a1a1a",url:"https://github.com/trending?l=Csound"},"Csound Document":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Document"},"Csound Score":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Score"},CSS:{color:"#563d7c",url:"https://github.com/trending?l=CSS"},CSV:{color:"#237346",url:"https://github.com/trending?l=CSV"},Cuda:{color:"#3A4E3A",url:"https://github.com/trending?l=Cuda"},CUE:{color:"#5886E1",url:"https://github.com/trending?l=CUE"},Curry:{color:"#531242",url:"https://github.com/trending?l=Curry"},CWeb:{color:"#00007a",url:"https://github.com/trending?l=CWeb"},Cycript:{color:null,url:"https://github.com/trending?l=Cycript"},Cython:{color:"#fedf5b",url:"https://github.com/trending?l=Cython"},D:{color:"#ba595e",url:"https://github.com/trending?l=D"},Dafny:{color:"#FFEC25",url:"https://github.com/trending?l=Dafny"},"Darcs Patch":{color:"#8eff23",url:"https://github.com/trending?l=Darcs-Patch"},Dart:{color:"#00B4AB",url:"https://github.com/trending?l=Dart"},DataWeave:{color:"#003a52",url:"https://github.com/trending?l=DataWeave"},"Debian Package Control File":{color:"#D70751",url:"https://github.com/trending?l=Debian-Package-Control-File"},DenizenScript:{color:"#FBEE96",url:"https://github.com/trending?l=DenizenScript"},Dhall:{color:"#dfafff",url:"https://github.com/trending?l=Dhall"},"DIGITAL Command Language":{color:null,url:"https://github.com/trending?l=DIGITAL-Command-Language"},"DirectX 3D File":{color:"#aace60",url:"https://github.com/trending?l=DirectX-3D-File"},DM:{color:"#447265",url:"https://github.com/trending?l=DM"},Dockerfile:{color:"#384d54",url:"https://github.com/trending?l=Dockerfile"},Dogescript:{color:"#cca760",url:"https://github.com/trending?l=Dogescript"},DTrace:{color:null,url:"https://github.com/trending?l=DTrace"},Dylan:{color:"#6c616e",url:"https://github.com/trending?l=Dylan"},E:{color:"#ccce35",url:"https://github.com/trending?l=E"},Earthly:{color:"#2af0ff",url:"https://github.com/trending?l=Earthly"},Easybuild:{color:"#069406",url:"https://github.com/trending?l=Easybuild"},eC:{color:"#913960",url:"https://github.com/trending?l=eC"},"Ecere Projects":{color:"#913960",url:"https://github.com/trending?l=Ecere-Projects"},ECL:{color:"#8a1267",url:"https://github.com/trending?l=ECL"},ECLiPSe:{color:"#001d9d",url:"https://github.com/trending?l=ECLiPSe"},EditorConfig:{color:"#fff1f2",url:"https://github.com/trending?l=EditorConfig"},Eiffel:{color:"#4d6977",url:"https://github.com/trending?l=Eiffel"},EJS:{color:"#a91e50",url:"https://github.com/trending?l=EJS"},Elixir:{color:"#6e4a7e",url:"https://github.com/trending?l=Elixir"},Elm:{color:"#60B5CC",url:"https://github.com/trending?l=Elm"},Elvish:{color:"#55BB55",url:"https://github.com/trending?l=Elvish"},"Emacs Lisp":{color:"#c065db",url:"https://github.com/trending?l=Emacs-Lisp"},EmberScript:{color:"#FFF4F3",url:"https://github.com/trending?l=EmberScript"},EQ:{color:"#a78649",url:"https://github.com/trending?l=EQ"},Erlang:{color:"#B83998",url:"https://github.com/trending?l=Erlang"},Euphoria:{color:"#FF790B",url:"https://github.com/trending?l=Euphoria"},"F#":{color:"#b845fc",url:"https://github.com/trending?l=Fsharp"},"F*":{color:"#572e30",url:"https://github.com/trending?l=F*"},Factor:{color:"#636746",url:"https://github.com/trending?l=Factor"},Fancy:{color:"#7b9db4",url:"https://github.com/trending?l=Fancy"},Fantom:{color:"#14253c",url:"https://github.com/trending?l=Fantom"},Faust:{color:"#c37240",url:"https://github.com/trending?l=Faust"},Fennel:{color:"#fff3d7",url:"https://github.com/trending?l=Fennel"},"FIGlet Font":{color:"#FFDDBB",url:"https://github.com/trending?l=FIGlet-Font"},"Filebench WML":{color:"#F6B900",url:"https://github.com/trending?l=Filebench-WML"},Filterscript:{color:null,url:"https://github.com/trending?l=Filterscript"},fish:{color:"#4aae47",url:"https://github.com/trending?l=fish"},Fluent:{color:"#ffcc33",url:"https://github.com/trending?l=Fluent"},FLUX:{color:"#88ccff",url:"https://github.com/trending?l=FLUX"},Forth:{color:"#341708",url:"https://github.com/trending?l=Forth"},Fortran:{color:"#4d41b1",url:"https://github.com/trending?l=Fortran"},"Fortran Free Form":{color:"#4d41b1",url:"https://github.com/trending?l=Fortran-Free-Form"},FreeBasic:{color:"#867db1",url:"https://github.com/trending?l=FreeBasic"},FreeMarker:{color:"#0050b2",url:"https://github.com/trending?l=FreeMarker"},Frege:{color:"#00cafe",url:"https://github.com/trending?l=Frege"},Futhark:{color:"#5f021f",url:"https://github.com/trending?l=Futhark"},"G-code":{color:"#D08CF2",url:"https://github.com/trending?l=G-code"},"Game Maker Language":{color:"#71b417",url:"https://github.com/trending?l=Game-Maker-Language"},GAML:{color:"#FFC766",url:"https://github.com/trending?l=GAML"},GAMS:{color:"#f49a22",url:"https://github.com/trending?l=GAMS"},GAP:{color:"#0000cc",url:"https://github.com/trending?l=GAP"},"GCC Machine Description":{color:"#FFCFAB",url:"https://github.com/trending?l=GCC-Machine-Description"},GDB:{color:null,url:"https://github.com/trending?l=GDB"},GDScript:{color:"#355570",url:"https://github.com/trending?l=GDScript"},GEDCOM:{color:"#003058",url:"https://github.com/trending?l=GEDCOM"},"Gemfile.lock":{color:"#701516",url:"https://github.com/trending?l=Gemfile.lock"},Gemini:{color:"#ff6900",url:"https://github.com/trending?l=Gemini"},Genero:{color:"#63408e",url:"https://github.com/trending?l=Genero"},"Genero Forms":{color:"#d8df39",url:"https://github.com/trending?l=Genero-Forms"},Genie:{color:"#fb855d",url:"https://github.com/trending?l=Genie"},Genshi:{color:"#951531",url:"https://github.com/trending?l=Genshi"},"Gentoo Ebuild":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Ebuild"},"Gentoo Eclass":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Eclass"},"Gerber Image":{color:"#d20b00",url:"https://github.com/trending?l=Gerber-Image"},Gherkin:{color:"#5B2063",url:"https://github.com/trending?l=Gherkin"},"Git Attributes":{color:"#F44D27",url:"https://github.com/trending?l=Git-Attributes"},"Git Config":{color:"#F44D27",url:"https://github.com/trending?l=Git-Config"},"Git Revision List":{color:"#F44D27",url:"https://github.com/trending?l=Git-Revision-List"},Gleam:{color:"#ffaff3",url:"https://github.com/trending?l=Gleam"},GLSL:{color:"#5686a5",url:"https://github.com/trending?l=GLSL"},Glyph:{color:"#c1ac7f",url:"https://github.com/trending?l=Glyph"},Gnuplot:{color:"#f0a9f0",url:"https://github.com/trending?l=Gnuplot"},Go:{color:"#00ADD8",url:"https://github.com/trending?l=Go"},"Go Checksums":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Checksums"},"Go Module":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Module"},Golo:{color:"#88562A",url:"https://github.com/trending?l=Golo"},Gosu:{color:"#82937f",url:"https://github.com/trending?l=Gosu"},Grace:{color:"#615f8b",url:"https://github.com/trending?l=Grace"},Gradle:{color:"#02303a",url:"https://github.com/trending?l=Gradle"},"Grammatical Framework":{color:"#ff0000",url:"https://github.com/trending?l=Grammatical-Framework"},GraphQL:{color:"#e10098",url:"https://github.com/trending?l=GraphQL"},"Graphviz (DOT)":{color:"#2596be",url:"https://github.com/trending?l=Graphviz-(DOT)"},Groovy:{color:"#4298b8",url:"https://github.com/trending?l=Groovy"},"Groovy Server Pages":{color:"#4298b8",url:"https://github.com/trending?l=Groovy-Server-Pages"},GSC:{color:"#FF6800",url:"https://github.com/trending?l=GSC"},Hack:{color:"#878787",url:"https://github.com/trending?l=Hack"},Haml:{color:"#ece2a9",url:"https://github.com/trending?l=Haml"},Handlebars:{color:"#f7931e",url:"https://github.com/trending?l=Handlebars"},HAProxy:{color:"#106da9",url:"https://github.com/trending?l=HAProxy"},Harbour:{color:"#0e60e3",url:"https://github.com/trending?l=Harbour"},Haskell:{color:"#5e5086",url:"https://github.com/trending?l=Haskell"},Haxe:{color:"#df7900",url:"https://github.com/trending?l=Haxe"},HCL:{color:null,url:"https://github.com/trending?l=HCL"},HiveQL:{color:"#dce200",url:"https://github.com/trending?l=HiveQL"},HLSL:{color:"#aace60",url:"https://github.com/trending?l=HLSL"},HOCON:{color:"#9ff8ee",url:"https://github.com/trending?l=HOCON"},HolyC:{color:"#ffefaf",url:"https://github.com/trending?l=HolyC"},hoon:{color:"#00b171",url:"https://github.com/trending?l=hoon"},HTML:{color:"#e34c26",url:"https://github.com/trending?l=HTML"},"HTML+ECR":{color:"#2e1052",url:"https://github.com/trending?l=HTML+ECR"},"HTML+EEX":{color:"#6e4a7e",url:"https://github.com/trending?l=HTML+EEX"},"HTML+ERB":{color:"#701516",url:"https://github.com/trending?l=HTML+ERB"},"HTML+PHP":{color:"#4f5d95",url:"https://github.com/trending?l=HTML+PHP"},"HTML+Razor":{color:"#512be4",url:"https://github.com/trending?l=HTML+Razor"},HTTP:{color:"#005C9C",url:"https://github.com/trending?l=HTTP"},HXML:{color:"#f68712",url:"https://github.com/trending?l=HXML"},Hy:{color:"#7790B2",url:"https://github.com/trending?l=Hy"},HyPhy:{color:null,url:"https://github.com/trending?l=HyPhy"},IDL:{color:"#a3522f",url:"https://github.com/trending?l=IDL"},Idris:{color:"#b30000",url:"https://github.com/trending?l=Idris"},"Ignore List":{color:"#000000",url:"https://github.com/trending?l=Ignore-List"},"IGOR Pro":{color:"#0000cc",url:"https://github.com/trending?l=IGOR-Pro"},"ImageJ Macro":{color:"#99AAFF",url:"https://github.com/trending?l=ImageJ-Macro"},"Inform 7":{color:null,url:"https://github.com/trending?l=Inform-7"},INI:{color:"#d1dbe0",url:"https://github.com/trending?l=INI"},"Inno Setup":{color:"#264b99",url:"https://github.com/trending?l=Inno-Setup"},Io:{color:"#a9188d",url:"https://github.com/trending?l=Io"},Ioke:{color:"#078193",url:"https://github.com/trending?l=Ioke"},Isabelle:{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle"},"Isabelle ROOT":{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle-ROOT"},J:{color:"#9EEDFF",url:"https://github.com/trending?l=J"},Janet:{color:"#0886a5",url:"https://github.com/trending?l=Janet"},"JAR Manifest":{color:"#b07219",url:"https://github.com/trending?l=JAR-Manifest"},Jasmin:{color:"#d03600",url:"https://github.com/trending?l=Jasmin"},Java:{color:"#b07219",url:"https://github.com/trending?l=Java"},"Java Properties":{color:"#2A6277",url:"https://github.com/trending?l=Java-Properties"},"Java Server Pages":{color:"#2A6277",url:"https://github.com/trending?l=Java-Server-Pages"},JavaScript:{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript"},"JavaScript+ERB":{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript+ERB"},"Jest Snapshot":{color:"#15c213",url:"https://github.com/trending?l=Jest-Snapshot"},"JetBrains MPS":{color:"#21D789",url:"https://github.com/trending?l=JetBrains-MPS"},JFlex:{color:"#DBCA00",url:"https://github.com/trending?l=JFlex"},Jinja:{color:"#a52a22",url:"https://github.com/trending?l=Jinja"},Jison:{color:"#56b3cb",url:"https://github.com/trending?l=Jison"},"Jison Lex":{color:"#56b3cb",url:"https://github.com/trending?l=Jison-Lex"},Jolie:{color:"#843179",url:"https://github.com/trending?l=Jolie"},jq:{color:"#c7254e",url:"https://github.com/trending?l=jq"},JSON:{color:"#292929",url:"https://github.com/trending?l=JSON"},"JSON with Comments":{color:"#292929",url:"https://github.com/trending?l=JSON-with-Comments"},JSON5:{color:"#267CB9",url:"https://github.com/trending?l=JSON5"},JSONiq:{color:"#40d47e",url:"https://github.com/trending?l=JSONiq"},JSONLD:{color:"#0c479c",url:"https://github.com/trending?l=JSONLD"},Jsonnet:{color:"#0064bd",url:"https://github.com/trending?l=Jsonnet"},Julia:{color:"#a270ba",url:"https://github.com/trending?l=Julia"},"Jupyter Notebook":{color:"#DA5B0B",url:"https://github.com/trending?l=Jupyter-Notebook"},"Kaitai Struct":{color:"#773b37",url:"https://github.com/trending?l=Kaitai-Struct"},KakouneScript:{color:"#6f8042",url:"https://github.com/trending?l=KakouneScript"},"KiCad Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Layout"},"KiCad Legacy Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Legacy-Layout"},"KiCad Schematic":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Schematic"},Kotlin:{color:"#A97BFF",url:"https://github.com/trending?l=Kotlin"},KRL:{color:"#28430A",url:"https://github.com/trending?l=KRL"},kvlang:{color:"#1da6e0",url:"https://github.com/trending?l=kvlang"},LabVIEW:{color:"#fede06",url:"https://github.com/trending?l=LabVIEW"},Lark:{color:"#2980B9",url:"https://github.com/trending?l=Lark"},Lasso:{color:"#999999",url:"https://github.com/trending?l=Lasso"},Latte:{color:"#f2a542",url:"https://github.com/trending?l=Latte"},Lean:{color:null,url:"https://github.com/trending?l=Lean"},Less:{color:"#1d365d",url:"https://github.com/trending?l=Less"},Lex:{color:"#DBCA00",url:"https://github.com/trending?l=Lex"},LFE:{color:"#4C3023",url:"https://github.com/trending?l=LFE"},LigoLANG:{color:"#0e74ff",url:"https://github.com/trending?l=LigoLANG"},LilyPond:{color:"#9ccc7c",url:"https://github.com/trending?l=LilyPond"},Limbo:{color:null,url:"https://github.com/trending?l=Limbo"},Liquid:{color:"#67b8de",url:"https://github.com/trending?l=Liquid"},"Literate Agda":{color:"#315665",url:"https://github.com/trending?l=Literate-Agda"},"Literate CoffeeScript":{color:"#244776",url:"https://github.com/trending?l=Literate-CoffeeScript"},"Literate Haskell":{color:"#5e5086",url:"https://github.com/trending?l=Literate-Haskell"},LiveScript:{color:"#499886",url:"https://github.com/trending?l=LiveScript"},LLVM:{color:"#185619",url:"https://github.com/trending?l=LLVM"},Logos:{color:null,url:"https://github.com/trending?l=Logos"},Logtalk:{color:"#295b9a",url:"https://github.com/trending?l=Logtalk"},LOLCODE:{color:"#cc9900",url:"https://github.com/trending?l=LOLCODE"},LookML:{color:"#652B81",url:"https://github.com/trending?l=LookML"},LoomScript:{color:null,url:"https://github.com/trending?l=LoomScript"},LSL:{color:"#3d9970",url:"https://github.com/trending?l=LSL"},Lua:{color:"#000080",url:"https://github.com/trending?l=Lua"},M:{color:null,url:"https://github.com/trending?l=M"},M4:{color:null,url:"https://github.com/trending?l=M4"},M4Sugar:{color:null,url:"https://github.com/trending?l=M4Sugar"},Macaulay2:{color:"#d8ffff",url:"https://github.com/trending?l=Macaulay2"},Makefile:{color:"#427819",url:"https://github.com/trending?l=Makefile"},Mako:{color:"#7e858d",url:"https://github.com/trending?l=Mako"},Markdown:{color:"#083fa1",url:"https://github.com/trending?l=Markdown"},Marko:{color:"#42bff2",url:"https://github.com/trending?l=Marko"},Mask:{color:"#f97732",url:"https://github.com/trending?l=Mask"},Mathematica:{color:"#dd1100",url:"https://github.com/trending?l=Mathematica"},MATLAB:{color:"#e16737",url:"https://github.com/trending?l=MATLAB"},Max:{color:"#c4a79c",url:"https://github.com/trending?l=Max"},MAXScript:{color:"#00a6a6",url:"https://github.com/trending?l=MAXScript"},mcfunction:{color:"#E22837",url:"https://github.com/trending?l=mcfunction"},Mercury:{color:"#ff2b2b",url:"https://github.com/trending?l=Mercury"},Meson:{color:"#007800",url:"https://github.com/trending?l=Meson"},Metal:{color:"#8f14e9",url:"https://github.com/trending?l=Metal"},MiniD:{color:null,url:"https://github.com/trending?l=MiniD"},MiniYAML:{color:"#ff1111",url:"https://github.com/trending?l=MiniYAML"},Mint:{color:"#02b046",url:"https://github.com/trending?l=Mint"},Mirah:{color:"#c7a938",url:"https://github.com/trending?l=Mirah"},"mIRC Script":{color:"#3d57c3",url:"https://github.com/trending?l=mIRC-Script"},MLIR:{color:"#5EC8DB",url:"https://github.com/trending?l=MLIR"},Modelica:{color:"#de1d31",url:"https://github.com/trending?l=Modelica"},"Modula-2":{color:"#10253f",url:"https://github.com/trending?l=Modula-2"},"Modula-3":{color:"#223388",url:"https://github.com/trending?l=Modula-3"},"Module Management System":{color:null,url:"https://github.com/trending?l=Module-Management-System"},Monkey:{color:null,url:"https://github.com/trending?l=Monkey"},"Monkey C":{color:"#8D6747",url:"https://github.com/trending?l=Monkey-C"},Moocode:{color:null,url:"https://github.com/trending?l=Moocode"},MoonScript:{color:"#ff4585",url:"https://github.com/trending?l=MoonScript"},Motoko:{color:"#fbb03b",url:"https://github.com/trending?l=Motoko"},"Motorola 68K Assembly":{color:"#005daa",url:"https://github.com/trending?l=Motorola-68K-Assembly"},Move:{color:"#4a137a",url:"https://github.com/trending?l=Move"},MQL4:{color:"#62A8D6",url:"https://github.com/trending?l=MQL4"},MQL5:{color:"#4A76B8",url:"https://github.com/trending?l=MQL5"},MTML:{color:"#b7e1f4",url:"https://github.com/trending?l=MTML"},MUF:{color:null,url:"https://github.com/trending?l=MUF"},mupad:{color:"#244963",url:"https://github.com/trending?l=mupad"},Mustache:{color:"#724b3b",url:"https://github.com/trending?l=Mustache"},Myghty:{color:null,url:"https://github.com/trending?l=Myghty"},nanorc:{color:"#2d004d",url:"https://github.com/trending?l=nanorc"},Nasal:{color:"#1d2c4e",url:"https://github.com/trending?l=Nasal"},NASL:{color:null,url:"https://github.com/trending?l=NASL"},NCL:{color:"#28431f",url:"https://github.com/trending?l=NCL"},Nearley:{color:"#990000",url:"https://github.com/trending?l=Nearley"},Nemerle:{color:"#3d3c6e",url:"https://github.com/trending?l=Nemerle"},nesC:{color:"#94B0C7",url:"https://github.com/trending?l=nesC"},NetLinx:{color:"#0aa0ff",url:"https://github.com/trending?l=NetLinx"},"NetLinx+ERB":{color:"#747faa",url:"https://github.com/trending?l=NetLinx+ERB"},NetLogo:{color:"#ff6375",url:"https://github.com/trending?l=NetLogo"},NewLisp:{color:"#87AED7",url:"https://github.com/trending?l=NewLisp"},Nextflow:{color:"#3ac486",url:"https://github.com/trending?l=Nextflow"},Nginx:{color:"#009639",url:"https://github.com/trending?l=Nginx"},Nim:{color:"#ffc200",url:"https://github.com/trending?l=Nim"},Nit:{color:"#009917",url:"https://github.com/trending?l=Nit"},Nix:{color:"#7e7eff",url:"https://github.com/trending?l=Nix"},"NPM Config":{color:"#cb3837",url:"https://github.com/trending?l=NPM-Config"},NSIS:{color:null,url:"https://github.com/trending?l=NSIS"},Nu:{color:"#c9df40",url:"https://github.com/trending?l=Nu"},NumPy:{color:"#9C8AF9",url:"https://github.com/trending?l=NumPy"},Nunjucks:{color:"#3d8137",url:"https://github.com/trending?l=Nunjucks"},NWScript:{color:"#111522",url:"https://github.com/trending?l=NWScript"},"Objective-C":{color:"#438eff",url:"https://github.com/trending?l=Objective-C"},"Objective-C++":{color:"#6866fb",url:"https://github.com/trending?l=Objective-C++"},"Objective-J":{color:"#ff0c5a",url:"https://github.com/trending?l=Objective-J"},ObjectScript:{color:"#424893",url:"https://github.com/trending?l=ObjectScript"},OCaml:{color:"#3be133",url:"https://github.com/trending?l=OCaml"},Odin:{color:"#60AFFE",url:"https://github.com/trending?l=Odin"},Omgrofl:{color:"#cabbff",url:"https://github.com/trending?l=Omgrofl"},ooc:{color:"#b0b77e",url:"https://github.com/trending?l=ooc"},Opa:{color:null,url:"https://github.com/trending?l=Opa"},Opal:{color:"#f7ede0",url:"https://github.com/trending?l=Opal"},"Open Policy Agent":{color:"#7d9199",url:"https://github.com/trending?l=Open-Policy-Agent"},OpenCL:{color:"#ed2e2d",url:"https://github.com/trending?l=OpenCL"},"OpenEdge ABL":{color:"#5ce600",url:"https://github.com/trending?l=OpenEdge-ABL"},OpenQASM:{color:"#AA70FF",url:"https://github.com/trending?l=OpenQASM"},"OpenRC runscript":{color:null,url:"https://github.com/trending?l=OpenRC-runscript"},OpenSCAD:{color:"#e5cd45",url:"https://github.com/trending?l=OpenSCAD"},Org:{color:"#77aa99",url:"https://github.com/trending?l=Org"},Ox:{color:null,url:"https://github.com/trending?l=Ox"},Oxygene:{color:"#cdd0e3",url:"https://github.com/trending?l=Oxygene"},Oz:{color:"#fab738",url:"https://github.com/trending?l=Oz"},P4:{color:"#7055b5",url:"https://github.com/trending?l=P4"},Pan:{color:"#cc0000",url:"https://github.com/trending?l=Pan"},Papyrus:{color:"#6600cc",url:"https://github.com/trending?l=Papyrus"},Parrot:{color:"#f3ca0a",url:"https://github.com/trending?l=Parrot"},"Parrot Assembly":{color:null,url:"https://github.com/trending?l=Parrot-Assembly"},"Parrot Internal Representation":{color:null,url:"https://github.com/trending?l=Parrot-Internal-Representation"},Pascal:{color:"#E3F171",url:"https://github.com/trending?l=Pascal"},Pawn:{color:"#dbb284",url:"https://github.com/trending?l=Pawn"},"PEG.js":{color:"#234d6b",url:"https://github.com/trending?l=PEG.js"},Pep8:{color:"#C76F5B",url:"https://github.com/trending?l=Pep8"},Perl:{color:"#0298c3",url:"https://github.com/trending?l=Perl"},PHP:{color:"#4F5D95",url:"https://github.com/trending?l=PHP"},PicoLisp:{color:"#6067af",url:"https://github.com/trending?l=PicoLisp"},PigLatin:{color:"#fcd7de",url:"https://github.com/trending?l=PigLatin"},Pike:{color:"#005390",url:"https://github.com/trending?l=Pike"},PLpgSQL:{color:"#336790",url:"https://github.com/trending?l=PLpgSQL"},PLSQL:{color:"#dad8d8",url:"https://github.com/trending?l=PLSQL"},PogoScript:{color:"#d80074",url:"https://github.com/trending?l=PogoScript"},Pony:{color:null,url:"https://github.com/trending?l=Pony"},Portugol:{color:"#f8bd00",url:"https://github.com/trending?l=Portugol"},PostCSS:{color:"#dc3a0c",url:"https://github.com/trending?l=PostCSS"},PostScript:{color:"#da291c",url:"https://github.com/trending?l=PostScript"},"POV-Ray SDL":{color:"#6bac65",url:"https://github.com/trending?l=POV-Ray-SDL"},PowerBuilder:{color:"#8f0f8d",url:"https://github.com/trending?l=PowerBuilder"},PowerShell:{color:"#012456",url:"https://github.com/trending?l=PowerShell"},Prisma:{color:"#0c344b",url:"https://github.com/trending?l=Prisma"},Processing:{color:"#0096D8",url:"https://github.com/trending?l=Processing"},Procfile:{color:"#3B2F63",url:"https://github.com/trending?l=Procfile"},Prolog:{color:"#74283c",url:"https://github.com/trending?l=Prolog"},Promela:{color:"#de0000",url:"https://github.com/trending?l=Promela"},"Propeller Spin":{color:"#7fa2a7",url:"https://github.com/trending?l=Propeller-Spin"},Pug:{color:"#a86454",url:"https://github.com/trending?l=Pug"},Puppet:{color:"#302B6D",url:"https://github.com/trending?l=Puppet"},PureBasic:{color:"#5a6986",url:"https://github.com/trending?l=PureBasic"},PureScript:{color:"#1D222D",url:"https://github.com/trending?l=PureScript"},Python:{color:"#3572A5",url:"https://github.com/trending?l=Python"},"Python console":{color:"#3572A5",url:"https://github.com/trending?l=Python-console"},"Python traceback":{color:"#3572A5",url:"https://github.com/trending?l=Python-traceback"},q:{color:"#0040cd",url:"https://github.com/trending?l=q"},"Q#":{color:"#fed659",url:"https://github.com/trending?l=Qsharp"},QMake:{color:null,url:"https://github.com/trending?l=QMake"},QML:{color:"#44a51c",url:"https://github.com/trending?l=QML"},"Qt Script":{color:"#00b841",url:"https://github.com/trending?l=Qt-Script"},Quake:{color:"#882233",url:"https://github.com/trending?l=Quake"},R:{color:"#198CE7",url:"https://github.com/trending?l=R"},Racket:{color:"#3c5caa",url:"https://github.com/trending?l=Racket"},Ragel:{color:"#9d5200",url:"https://github.com/trending?l=Ragel"},Raku:{color:"#0000fb",url:"https://github.com/trending?l=Raku"},RAML:{color:"#77d9fb",url:"https://github.com/trending?l=RAML"},Rascal:{color:"#fffaa0",url:"https://github.com/trending?l=Rascal"},RDoc:{color:"#701516",url:"https://github.com/trending?l=RDoc"},REALbasic:{color:null,url:"https://github.com/trending?l=REALbasic"},Reason:{color:"#ff5847",url:"https://github.com/trending?l=Reason"},ReasonLIGO:{color:"#ff5847",url:"https://github.com/trending?l=ReasonLIGO"},Rebol:{color:"#358a5b",url:"https://github.com/trending?l=Rebol"},"Record Jar":{color:"#0673ba",url:"https://github.com/trending?l=Record-Jar"},Red:{color:"#f50000",url:"https://github.com/trending?l=Red"},Redcode:{color:null,url:"https://github.com/trending?l=Redcode"},"Regular Expression":{color:"#009a00",url:"https://github.com/trending?l=Regular-Expression"},"Ren'Py":{color:"#ff7f7f",url:"https://github.com/trending?l=Ren'Py"},RenderScript:{color:null,url:"https://github.com/trending?l=RenderScript"},ReScript:{color:"#ed5051",url:"https://github.com/trending?l=ReScript"},reStructuredText:{color:"#141414",url:"https://github.com/trending?l=reStructuredText"},REXX:{color:"#d90e09",url:"https://github.com/trending?l=REXX"},Ring:{color:"#2D54CB",url:"https://github.com/trending?l=Ring"},Riot:{color:"#A71E49",url:"https://github.com/trending?l=Riot"},RMarkdown:{color:"#198ce7",url:"https://github.com/trending?l=RMarkdown"},RobotFramework:{color:"#00c0b5",url:"https://github.com/trending?l=RobotFramework"},Roff:{color:"#ecdebe",url:"https://github.com/trending?l=Roff"},"Roff Manpage":{color:"#ecdebe",url:"https://github.com/trending?l=Roff-Manpage"},Rouge:{color:"#cc0088",url:"https://github.com/trending?l=Rouge"},"RouterOS Script":{color:"#DE3941",url:"https://github.com/trending?l=RouterOS-Script"},RPC:{color:null,url:"https://github.com/trending?l=RPC"},RPGLE:{color:"#2BDE21",url:"https://github.com/trending?l=RPGLE"},Ruby:{color:"#701516",url:"https://github.com/trending?l=Ruby"},RUNOFF:{color:"#665a4e",url:"https://github.com/trending?l=RUNOFF"},Rust:{color:"#dea584",url:"https://github.com/trending?l=Rust"},Sage:{color:null,url:"https://github.com/trending?l=Sage"},SaltStack:{color:"#646464",url:"https://github.com/trending?l=SaltStack"},SAS:{color:"#B34936",url:"https://github.com/trending?l=SAS"},Sass:{color:"#a53b70",url:"https://github.com/trending?l=Sass"},Scala:{color:"#c22d40",url:"https://github.com/trending?l=Scala"},Scaml:{color:"#bd181a",url:"https://github.com/trending?l=Scaml"},Scheme:{color:"#1e4aec",url:"https://github.com/trending?l=Scheme"},Scilab:{color:"#ca0f21",url:"https://github.com/trending?l=Scilab"},SCSS:{color:"#c6538c",url:"https://github.com/trending?l=SCSS"},sed:{color:"#64b970",url:"https://github.com/trending?l=sed"},Self:{color:"#0579aa",url:"https://github.com/trending?l=Self"},ShaderLab:{color:"#222c37",url:"https://github.com/trending?l=ShaderLab"},Shell:{color:"#89e051",url:"https://github.com/trending?l=Shell"},"ShellCheck Config":{color:"#cecfcb",url:"https://github.com/trending?l=ShellCheck-Config"},ShellSession:{color:null,url:"https://github.com/trending?l=ShellSession"},Shen:{color:"#120F14",url:"https://github.com/trending?l=Shen"},Sieve:{color:null,url:"https://github.com/trending?l=Sieve"},Singularity:{color:"#64E6AD",url:"https://github.com/trending?l=Singularity"},Slash:{color:"#007eff",url:"https://github.com/trending?l=Slash"},Slice:{color:"#003fa2",url:"https://github.com/trending?l=Slice"},Slim:{color:"#2b2b2b",url:"https://github.com/trending?l=Slim"},Smali:{color:null,url:"https://github.com/trending?l=Smali"},Smalltalk:{color:"#596706",url:"https://github.com/trending?l=Smalltalk"},Smarty:{color:"#f0c040",url:"https://github.com/trending?l=Smarty"},SmPL:{color:"#c94949",url:"https://github.com/trending?l=SmPL"},SMT:{color:null,url:"https://github.com/trending?l=SMT"},Solidity:{color:"#AA6746",url:"https://github.com/trending?l=Solidity"},SourcePawn:{color:"#f69e1d",url:"https://github.com/trending?l=SourcePawn"},SPARQL:{color:"#0C4597",url:"https://github.com/trending?l=SPARQL"},SQF:{color:"#3F3F3F",url:"https://github.com/trending?l=SQF"},SQL:{color:"#e38c00",url:"https://github.com/trending?l=SQL"},SQLPL:{color:"#e38c00",url:"https://github.com/trending?l=SQLPL"},Squirrel:{color:"#800000",url:"https://github.com/trending?l=Squirrel"},"SRecode Template":{color:"#348a34",url:"https://github.com/trending?l=SRecode-Template"},Stan:{color:"#b2011d",url:"https://github.com/trending?l=Stan"},"Standard ML":{color:"#dc566d",url:"https://github.com/trending?l=Standard-ML"},Starlark:{color:"#76d275",url:"https://github.com/trending?l=Starlark"},Stata:{color:"#1a5f91",url:"https://github.com/trending?l=Stata"},STL:{color:"#373b5e",url:"https://github.com/trending?l=STL"},StringTemplate:{color:"#3fb34f",url:"https://github.com/trending?l=StringTemplate"},Stylus:{color:"#ff6347",url:"https://github.com/trending?l=Stylus"},"SubRip Text":{color:"#9e0101",url:"https://github.com/trending?l=SubRip-Text"},SugarSS:{color:"#2fcc9f",url:"https://github.com/trending?l=SugarSS"},SuperCollider:{color:"#46390b",url:"https://github.com/trending?l=SuperCollider"},Svelte:{color:"#ff3e00",url:"https://github.com/trending?l=Svelte"},SVG:{color:"#ff9900",url:"https://github.com/trending?l=SVG"},Swift:{color:"#F05138",url:"https://github.com/trending?l=Swift"},SWIG:{color:null,url:"https://github.com/trending?l=SWIG"},SystemVerilog:{color:"#DAE1C2",url:"https://github.com/trending?l=SystemVerilog"},Talon:{color:"#333333",url:"https://github.com/trending?l=Talon"},Tcl:{color:"#e4cc98",url:"https://github.com/trending?l=Tcl"},Tcsh:{color:null,url:"https://github.com/trending?l=Tcsh"},Terra:{color:"#00004c",url:"https://github.com/trending?l=Terra"},TeX:{color:"#3D6117",url:"https://github.com/trending?l=TeX"},Textile:{color:"#ffe7ac",url:"https://github.com/trending?l=Textile"},"TextMate Properties":{color:"#df66e4",url:"https://github.com/trending?l=TextMate-Properties"},Thrift:{color:"#D12127",url:"https://github.com/trending?l=Thrift"},"TI Program":{color:"#A0AA87",url:"https://github.com/trending?l=TI-Program"},TLA:{color:"#4b0079",url:"https://github.com/trending?l=TLA"},TOML:{color:"#9c4221",url:"https://github.com/trending?l=TOML"},TSQL:{color:"#e38c00",url:"https://github.com/trending?l=TSQL"},TSV:{color:"#237346",url:"https://github.com/trending?l=TSV"},TSX:{color:"#3178c6",url:"https://github.com/trending?l=TSX"},Turing:{color:"#cf142b",url:"https://github.com/trending?l=Turing"},Twig:{color:"#c1d026",url:"https://github.com/trending?l=Twig"},TXL:{color:"#0178b8",url:"https://github.com/trending?l=TXL"},TypeScript:{color:"#3178c6",url:"https://github.com/trending?l=TypeScript"},"Unified Parallel C":{color:"#4e3617",url:"https://github.com/trending?l=Unified-Parallel-C"},"Unity3D Asset":{color:"#222c37",url:"https://github.com/trending?l=Unity3D-Asset"},"Unix Assembly":{color:null,url:"https://github.com/trending?l=Unix-Assembly"},Uno:{color:"#9933cc",url:"https://github.com/trending?l=Uno"},UnrealScript:{color:"#a54c4d",url:"https://github.com/trending?l=UnrealScript"},UrWeb:{color:"#ccccee",url:"https://github.com/trending?l=UrWeb"},V:{color:"#4f87c4",url:"https://github.com/trending?l=V"},Vala:{color:"#a56de2",url:"https://github.com/trending?l=Vala"},"Valve Data Format":{color:"#f26025",url:"https://github.com/trending?l=Valve-Data-Format"},VBA:{color:"#867db1",url:"https://github.com/trending?l=VBA"},VBScript:{color:"#15dcdc",url:"https://github.com/trending?l=VBScript"},VCL:{color:"#148AA8",url:"https://github.com/trending?l=VCL"},"Velocity Template Language":{color:"#507cff",url:"https://github.com/trending?l=Velocity-Template-Language"},Verilog:{color:"#b2b7f8",url:"https://github.com/trending?l=Verilog"},VHDL:{color:"#adb2cb",url:"https://github.com/trending?l=VHDL"},"Vim Help File":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Help-File"},"Vim Script":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Script"},"Vim Snippet":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Snippet"},"Visual Basic .NET":{color:"#945db7",url:"https://github.com/trending?l=Visual-Basic-.NET"},Volt:{color:"#1F1F1F",url:"https://github.com/trending?l=Volt"},Vue:{color:"#41b883",url:"https://github.com/trending?l=Vue"},Vyper:{color:"#2980b9",url:"https://github.com/trending?l=Vyper"},wdl:{color:"#42f1f4",url:"https://github.com/trending?l=wdl"},"Web Ontology Language":{color:"#5b70bd",url:"https://github.com/trending?l=Web-Ontology-Language"},WebAssembly:{color:"#04133b",url:"https://github.com/trending?l=WebAssembly"},WebIDL:{color:null,url:"https://github.com/trending?l=WebIDL"},Whiley:{color:"#d5c397",url:"https://github.com/trending?l=Whiley"},Wikitext:{color:"#fc5757",url:"https://github.com/trending?l=Wikitext"},"Windows Registry Entries":{color:"#52d5ff",url:"https://github.com/trending?l=Windows-Registry-Entries"},wisp:{color:"#7582D1",url:"https://github.com/trending?l=wisp"},"Witcher Script":{color:"#ff0000",url:"https://github.com/trending?l=Witcher-Script"},Wollok:{color:"#a23738",url:"https://github.com/trending?l=Wollok"},"World of Warcraft Addon Data":{color:"#f7e43f",url:"https://github.com/trending?l=World-of-Warcraft-Addon-Data"},Wren:{color:"#383838",url:"https://github.com/trending?l=Wren"},X10:{color:"#4B6BEF",url:"https://github.com/trending?l=X10"},xBase:{color:"#403a40",url:"https://github.com/trending?l=xBase"},XC:{color:"#99DA07",url:"https://github.com/trending?l=XC"},XML:{color:"#0060ac",url:"https://github.com/trending?l=XML"},"XML Property List":{color:"#0060ac",url:"https://github.com/trending?l=XML-Property-List"},Xojo:{color:"#81bd41",url:"https://github.com/trending?l=Xojo"},Xonsh:{color:"#285EEF",url:"https://github.com/trending?l=Xonsh"},XProc:{color:null,url:"https://github.com/trending?l=XProc"},XQuery:{color:"#5232e7",url:"https://github.com/trending?l=XQuery"},XS:{color:null,url:"https://github.com/trending?l=XS"},XSLT:{color:"#EB8CEB",url:"https://github.com/trending?l=XSLT"},Xtend:{color:"#24255d",url:"https://github.com/trending?l=Xtend"},Yacc:{color:"#4B6C4B",url:"https://github.com/trending?l=Yacc"},YAML:{color:"#cb171e",url:"https://github.com/trending?l=YAML"},YARA:{color:"#220000",url:"https://github.com/trending?l=YARA"},YASnippet:{color:"#32AB90",url:"https://github.com/trending?l=YASnippet"},Yul:{color:"#794932",url:"https://github.com/trending?l=Yul"},ZAP:{color:"#0d665e",url:"https://github.com/trending?l=ZAP"},Zeek:{color:null,url:"https://github.com/trending?l=Zeek"},ZenScript:{color:"#00BCD1",url:"https://github.com/trending?l=ZenScript"},Zephir:{color:"#118f9e",url:"https://github.com/trending?l=Zephir"},Zig:{color:"#ec915c",url:"https://github.com/trending?l=Zig"},ZIL:{color:"#dc75e5",url:"https://github.com/trending?l=ZIL"},Zimpl:{color:"#d67711",url:"https://github.com/trending?l=Zimpl"}};var bu=R(gu()),vu=new Map;for(let[e,t]of Object.entries(fu))vu.set(e.toLowerCase(),{...t,lang:e});function yu(e){let t=bu.default.languages(e.toLowerCase()),r=[];if(!t)return null;let o=null;for(let i of t){let l=vu.get(i);if(l){o=l,r.push(o.lang);break}}return o?o.color:null}var Vo=class{constructor(t,r,o,i){this.scale=(i-o)/(r-t),this.offset=t*this.scale-o,this.target_max=i,this.target_min=o}translate(t){return t*this.scale-this.offset}inverseTranslate(t){return this.target_max-this.translate(t)+this.target_min}};var ku=R(ee());var Uo=R(X());function xu({relative:e=!1,collapse:t,toggle:r}){return(0,Uo.jsx)(wu,{relative:e,collapse:t,onClick:r,up:!1,children:(0,Uo.jsx)(mi,{display:"inline-block",height:"1.5rem"})})}function Wo({relative:e=!1,collapse:t,toggle:r}){return(0,Uo.jsx)(wu,{relative:e,collapse:t,onClick:r,up:!0,children:(0,Uo.jsx)(mi,{display:"inline-block",height:"1.5rem"})})}var wu=N.button`
|
|
11
3
|
${({relative:e,up:t})=>e?"":Co`
|
|
12
4
|
position: absolute;
|
|
13
5
|
right: var(--unit);
|
|
@@ -29,18 +21,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
29
21
|
color: #606060;
|
|
30
22
|
cursor: pointer;
|
|
31
23
|
}
|
|
32
|
-
`;var Bo=R(ee()),Ci=(0,Bo.createContext)(null);function rt(){let e=(0,Bo.useContext)(Ci);if(!e)throw new Error("useClickedObject must be used within a ClickedObjectProvider");return e}var Io=R(ee()),Mi=(0,Io.createContext)(void 0);function Ee(){let e=(0,Io.useContext)(Mi);if(!e)throw new Error("useData must be used within a DataContext");return e}var en=R(ee());var Eu=R(hu());var mu={"1C Enterprise":{color:"#814CCC",url:"https://github.com/trending?l=1C-Enterprise"},"2-Dimensional Array":{color:"#38761D",url:"https://github.com/trending?l=2-Dimensional-Array"},"4D":{color:"#004289",url:"https://github.com/trending?l=4D"},ABAP:{color:"#E8274B",url:"https://github.com/trending?l=ABAP"},"ABAP CDS":{color:"#555e25",url:"https://github.com/trending?l=ABAP-CDS"},ActionScript:{color:"#882B0F",url:"https://github.com/trending?l=ActionScript"},Ada:{color:"#02f88c",url:"https://github.com/trending?l=Ada"},"Adblock Filter List":{color:"#800000",url:"https://github.com/trending?l=Adblock-Filter-List"},"Adobe Font Metrics":{color:"#fa0f00",url:"https://github.com/trending?l=Adobe-Font-Metrics"},Agda:{color:"#315665",url:"https://github.com/trending?l=Agda"},"AGS Script":{color:"#B9D9FF",url:"https://github.com/trending?l=AGS-Script"},AIDL:{color:"#34EB6B",url:"https://github.com/trending?l=AIDL"},AL:{color:"#3AA2B5",url:"https://github.com/trending?l=AL"},Alloy:{color:"#64C800",url:"https://github.com/trending?l=Alloy"},"Alpine Abuild":{color:"#0D597F",url:"https://github.com/trending?l=Alpine-Abuild"},"Altium Designer":{color:"#A89663",url:"https://github.com/trending?l=Altium-Designer"},AMPL:{color:"#E6EFBB",url:"https://github.com/trending?l=AMPL"},AngelScript:{color:"#C7D7DC",url:"https://github.com/trending?l=AngelScript"},"Ant Build System":{color:"#A9157E",url:"https://github.com/trending?l=Ant-Build-System"},Antlers:{color:"#ff269e",url:"https://github.com/trending?l=Antlers"},ANTLR:{color:"#9DC3FF",url:"https://github.com/trending?l=ANTLR"},ApacheConf:{color:"#d12127",url:"https://github.com/trending?l=ApacheConf"},Apex:{color:"#1797c0",url:"https://github.com/trending?l=Apex"},"API Blueprint":{color:"#2ACCA8",url:"https://github.com/trending?l=API-Blueprint"},APL:{color:"#5A8164",url:"https://github.com/trending?l=APL"},"Apollo Guidance Computer":{color:"#0B3D91",url:"https://github.com/trending?l=Apollo-Guidance-Computer"},AppleScript:{color:"#101F1F",url:"https://github.com/trending?l=AppleScript"},Arc:{color:"#aa2afe",url:"https://github.com/trending?l=Arc"},AsciiDoc:{color:"#73a0c5",url:"https://github.com/trending?l=AsciiDoc"},ASL:{color:null,url:"https://github.com/trending?l=ASL"},"ASP.NET":{color:"#9400ff",url:"https://github.com/trending?l=ASP.NET"},AspectJ:{color:"#a957b0",url:"https://github.com/trending?l=AspectJ"},Assembly:{color:"#6E4C13",url:"https://github.com/trending?l=Assembly"},Astro:{color:"#ff5a03",url:"https://github.com/trending?l=Astro"},Asymptote:{color:"#ff0000",url:"https://github.com/trending?l=Asymptote"},ATS:{color:"#1ac620",url:"https://github.com/trending?l=ATS"},Augeas:{color:"#9CC134",url:"https://github.com/trending?l=Augeas"},AutoHotkey:{color:"#6594b9",url:"https://github.com/trending?l=AutoHotkey"},AutoIt:{color:"#1C3552",url:"https://github.com/trending?l=AutoIt"},"Avro IDL":{color:"#0040FF",url:"https://github.com/trending?l=Avro-IDL"},Awk:{color:"#c30e9b",url:"https://github.com/trending?l=Awk"},Ballerina:{color:"#FF5000",url:"https://github.com/trending?l=Ballerina"},BASIC:{color:"#ff0000",url:"https://github.com/trending?l=BASIC"},Batchfile:{color:"#C1F12E",url:"https://github.com/trending?l=Batchfile"},Beef:{color:"#a52f4e",url:"https://github.com/trending?l=Beef"},Befunge:{color:null,url:"https://github.com/trending?l=Befunge"},Berry:{color:"#15A13C",url:"https://github.com/trending?l=Berry"},BibTeX:{color:"#778899",url:"https://github.com/trending?l=BibTeX"},Bicep:{color:"#519aba",url:"https://github.com/trending?l=Bicep"},Bikeshed:{color:"#5562ac",url:"https://github.com/trending?l=Bikeshed"},Bison:{color:"#6A463F",url:"https://github.com/trending?l=Bison"},BitBake:{color:"#00bce4",url:"https://github.com/trending?l=BitBake"},Blade:{color:"#f7523f",url:"https://github.com/trending?l=Blade"},BlitzBasic:{color:"#00FFAE",url:"https://github.com/trending?l=BlitzBasic"},BlitzMax:{color:"#cd6400",url:"https://github.com/trending?l=BlitzMax"},Bluespec:{color:"#12223c",url:"https://github.com/trending?l=Bluespec"},Boo:{color:"#d4bec1",url:"https://github.com/trending?l=Boo"},Boogie:{color:"#c80fa0",url:"https://github.com/trending?l=Boogie"},Brainfuck:{color:"#2F2530",url:"https://github.com/trending?l=Brainfuck"},BrighterScript:{color:"#66AABB",url:"https://github.com/trending?l=BrighterScript"},Brightscript:{color:"#662D91",url:"https://github.com/trending?l=Brightscript"},Browserslist:{color:"#ffd539",url:"https://github.com/trending?l=Browserslist"},C:{color:"#555555",url:"https://github.com/trending?l=C"},"C#":{color:"#178600",url:"https://github.com/trending?l=Csharp"},"C++":{color:"#f34b7d",url:"https://github.com/trending?l=C++"},"C2hs Haskell":{color:null,url:"https://github.com/trending?l=C2hs-Haskell"},"Cabal Config":{color:"#483465",url:"https://github.com/trending?l=Cabal-Config"},Cadence:{color:"#00ef8b",url:"https://github.com/trending?l=Cadence"},Cairo:{color:"#ff4a48",url:"https://github.com/trending?l=Cairo"},CameLIGO:{color:"#3be133",url:"https://github.com/trending?l=CameLIGO"},"CAP CDS":{color:"#0092d1",url:"https://github.com/trending?l=CAP-CDS"},"Cap'n Proto":{color:"#c42727",url:"https://github.com/trending?l=Cap'n-Proto"},CartoCSS:{color:null,url:"https://github.com/trending?l=CartoCSS"},Ceylon:{color:"#dfa535",url:"https://github.com/trending?l=Ceylon"},Chapel:{color:"#8dc63f",url:"https://github.com/trending?l=Chapel"},Charity:{color:null,url:"https://github.com/trending?l=Charity"},ChucK:{color:"#3f8000",url:"https://github.com/trending?l=ChucK"},Cirru:{color:"#ccccff",url:"https://github.com/trending?l=Cirru"},Clarion:{color:"#db901e",url:"https://github.com/trending?l=Clarion"},Clarity:{color:"#5546ff",url:"https://github.com/trending?l=Clarity"},"Classic ASP":{color:"#6a40fd",url:"https://github.com/trending?l=Classic-ASP"},Clean:{color:"#3F85AF",url:"https://github.com/trending?l=Clean"},Click:{color:"#E4E6F3",url:"https://github.com/trending?l=Click"},CLIPS:{color:"#00A300",url:"https://github.com/trending?l=CLIPS"},Clojure:{color:"#db5855",url:"https://github.com/trending?l=Clojure"},"Closure Templates":{color:"#0d948f",url:"https://github.com/trending?l=Closure-Templates"},"Cloud Firestore Security Rules":{color:"#FFA000",url:"https://github.com/trending?l=Cloud-Firestore-Security-Rules"},CMake:{color:"#DA3434",url:"https://github.com/trending?l=CMake"},COBOL:{color:null,url:"https://github.com/trending?l=COBOL"},CodeQL:{color:"#140f46",url:"https://github.com/trending?l=CodeQL"},CoffeeScript:{color:"#244776",url:"https://github.com/trending?l=CoffeeScript"},ColdFusion:{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion"},"ColdFusion CFC":{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion-CFC"},COLLADA:{color:"#F1A42B",url:"https://github.com/trending?l=COLLADA"},"Common Lisp":{color:"#3fb68b",url:"https://github.com/trending?l=Common-Lisp"},"Common Workflow Language":{color:"#B5314C",url:"https://github.com/trending?l=Common-Workflow-Language"},"Component Pascal":{color:"#B0CE4E",url:"https://github.com/trending?l=Component-Pascal"},Cool:{color:null,url:"https://github.com/trending?l=Cool"},Coq:{color:"#d0b68c",url:"https://github.com/trending?l=Coq"},Crystal:{color:"#000100",url:"https://github.com/trending?l=Crystal"},CSON:{color:"#244776",url:"https://github.com/trending?l=CSON"},Csound:{color:"#1a1a1a",url:"https://github.com/trending?l=Csound"},"Csound Document":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Document"},"Csound Score":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Score"},CSS:{color:"#563d7c",url:"https://github.com/trending?l=CSS"},CSV:{color:"#237346",url:"https://github.com/trending?l=CSV"},Cuda:{color:"#3A4E3A",url:"https://github.com/trending?l=Cuda"},CUE:{color:"#5886E1",url:"https://github.com/trending?l=CUE"},Curry:{color:"#531242",url:"https://github.com/trending?l=Curry"},CWeb:{color:"#00007a",url:"https://github.com/trending?l=CWeb"},Cycript:{color:null,url:"https://github.com/trending?l=Cycript"},Cython:{color:"#fedf5b",url:"https://github.com/trending?l=Cython"},D:{color:"#ba595e",url:"https://github.com/trending?l=D"},Dafny:{color:"#FFEC25",url:"https://github.com/trending?l=Dafny"},"Darcs Patch":{color:"#8eff23",url:"https://github.com/trending?l=Darcs-Patch"},Dart:{color:"#00B4AB",url:"https://github.com/trending?l=Dart"},DataWeave:{color:"#003a52",url:"https://github.com/trending?l=DataWeave"},"Debian Package Control File":{color:"#D70751",url:"https://github.com/trending?l=Debian-Package-Control-File"},DenizenScript:{color:"#FBEE96",url:"https://github.com/trending?l=DenizenScript"},Dhall:{color:"#dfafff",url:"https://github.com/trending?l=Dhall"},"DIGITAL Command Language":{color:null,url:"https://github.com/trending?l=DIGITAL-Command-Language"},"DirectX 3D File":{color:"#aace60",url:"https://github.com/trending?l=DirectX-3D-File"},DM:{color:"#447265",url:"https://github.com/trending?l=DM"},Dockerfile:{color:"#384d54",url:"https://github.com/trending?l=Dockerfile"},Dogescript:{color:"#cca760",url:"https://github.com/trending?l=Dogescript"},DTrace:{color:null,url:"https://github.com/trending?l=DTrace"},Dylan:{color:"#6c616e",url:"https://github.com/trending?l=Dylan"},E:{color:"#ccce35",url:"https://github.com/trending?l=E"},Earthly:{color:"#2af0ff",url:"https://github.com/trending?l=Earthly"},Easybuild:{color:"#069406",url:"https://github.com/trending?l=Easybuild"},eC:{color:"#913960",url:"https://github.com/trending?l=eC"},"Ecere Projects":{color:"#913960",url:"https://github.com/trending?l=Ecere-Projects"},ECL:{color:"#8a1267",url:"https://github.com/trending?l=ECL"},ECLiPSe:{color:"#001d9d",url:"https://github.com/trending?l=ECLiPSe"},EditorConfig:{color:"#fff1f2",url:"https://github.com/trending?l=EditorConfig"},Eiffel:{color:"#4d6977",url:"https://github.com/trending?l=Eiffel"},EJS:{color:"#a91e50",url:"https://github.com/trending?l=EJS"},Elixir:{color:"#6e4a7e",url:"https://github.com/trending?l=Elixir"},Elm:{color:"#60B5CC",url:"https://github.com/trending?l=Elm"},Elvish:{color:"#55BB55",url:"https://github.com/trending?l=Elvish"},"Emacs Lisp":{color:"#c065db",url:"https://github.com/trending?l=Emacs-Lisp"},EmberScript:{color:"#FFF4F3",url:"https://github.com/trending?l=EmberScript"},EQ:{color:"#a78649",url:"https://github.com/trending?l=EQ"},Erlang:{color:"#B83998",url:"https://github.com/trending?l=Erlang"},Euphoria:{color:"#FF790B",url:"https://github.com/trending?l=Euphoria"},"F#":{color:"#b845fc",url:"https://github.com/trending?l=Fsharp"},"F*":{color:"#572e30",url:"https://github.com/trending?l=F*"},Factor:{color:"#636746",url:"https://github.com/trending?l=Factor"},Fancy:{color:"#7b9db4",url:"https://github.com/trending?l=Fancy"},Fantom:{color:"#14253c",url:"https://github.com/trending?l=Fantom"},Faust:{color:"#c37240",url:"https://github.com/trending?l=Faust"},Fennel:{color:"#fff3d7",url:"https://github.com/trending?l=Fennel"},"FIGlet Font":{color:"#FFDDBB",url:"https://github.com/trending?l=FIGlet-Font"},"Filebench WML":{color:"#F6B900",url:"https://github.com/trending?l=Filebench-WML"},Filterscript:{color:null,url:"https://github.com/trending?l=Filterscript"},fish:{color:"#4aae47",url:"https://github.com/trending?l=fish"},Fluent:{color:"#ffcc33",url:"https://github.com/trending?l=Fluent"},FLUX:{color:"#88ccff",url:"https://github.com/trending?l=FLUX"},Forth:{color:"#341708",url:"https://github.com/trending?l=Forth"},Fortran:{color:"#4d41b1",url:"https://github.com/trending?l=Fortran"},"Fortran Free Form":{color:"#4d41b1",url:"https://github.com/trending?l=Fortran-Free-Form"},FreeBasic:{color:"#867db1",url:"https://github.com/trending?l=FreeBasic"},FreeMarker:{color:"#0050b2",url:"https://github.com/trending?l=FreeMarker"},Frege:{color:"#00cafe",url:"https://github.com/trending?l=Frege"},Futhark:{color:"#5f021f",url:"https://github.com/trending?l=Futhark"},"G-code":{color:"#D08CF2",url:"https://github.com/trending?l=G-code"},"Game Maker Language":{color:"#71b417",url:"https://github.com/trending?l=Game-Maker-Language"},GAML:{color:"#FFC766",url:"https://github.com/trending?l=GAML"},GAMS:{color:"#f49a22",url:"https://github.com/trending?l=GAMS"},GAP:{color:"#0000cc",url:"https://github.com/trending?l=GAP"},"GCC Machine Description":{color:"#FFCFAB",url:"https://github.com/trending?l=GCC-Machine-Description"},GDB:{color:null,url:"https://github.com/trending?l=GDB"},GDScript:{color:"#355570",url:"https://github.com/trending?l=GDScript"},GEDCOM:{color:"#003058",url:"https://github.com/trending?l=GEDCOM"},"Gemfile.lock":{color:"#701516",url:"https://github.com/trending?l=Gemfile.lock"},Gemini:{color:"#ff6900",url:"https://github.com/trending?l=Gemini"},Genero:{color:"#63408e",url:"https://github.com/trending?l=Genero"},"Genero Forms":{color:"#d8df39",url:"https://github.com/trending?l=Genero-Forms"},Genie:{color:"#fb855d",url:"https://github.com/trending?l=Genie"},Genshi:{color:"#951531",url:"https://github.com/trending?l=Genshi"},"Gentoo Ebuild":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Ebuild"},"Gentoo Eclass":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Eclass"},"Gerber Image":{color:"#d20b00",url:"https://github.com/trending?l=Gerber-Image"},Gherkin:{color:"#5B2063",url:"https://github.com/trending?l=Gherkin"},"Git Attributes":{color:"#F44D27",url:"https://github.com/trending?l=Git-Attributes"},"Git Config":{color:"#F44D27",url:"https://github.com/trending?l=Git-Config"},"Git Revision List":{color:"#F44D27",url:"https://github.com/trending?l=Git-Revision-List"},Gleam:{color:"#ffaff3",url:"https://github.com/trending?l=Gleam"},GLSL:{color:"#5686a5",url:"https://github.com/trending?l=GLSL"},Glyph:{color:"#c1ac7f",url:"https://github.com/trending?l=Glyph"},Gnuplot:{color:"#f0a9f0",url:"https://github.com/trending?l=Gnuplot"},Go:{color:"#00ADD8",url:"https://github.com/trending?l=Go"},"Go Checksums":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Checksums"},"Go Module":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Module"},Golo:{color:"#88562A",url:"https://github.com/trending?l=Golo"},Gosu:{color:"#82937f",url:"https://github.com/trending?l=Gosu"},Grace:{color:"#615f8b",url:"https://github.com/trending?l=Grace"},Gradle:{color:"#02303a",url:"https://github.com/trending?l=Gradle"},"Grammatical Framework":{color:"#ff0000",url:"https://github.com/trending?l=Grammatical-Framework"},GraphQL:{color:"#e10098",url:"https://github.com/trending?l=GraphQL"},"Graphviz (DOT)":{color:"#2596be",url:"https://github.com/trending?l=Graphviz-(DOT)"},Groovy:{color:"#4298b8",url:"https://github.com/trending?l=Groovy"},"Groovy Server Pages":{color:"#4298b8",url:"https://github.com/trending?l=Groovy-Server-Pages"},GSC:{color:"#FF6800",url:"https://github.com/trending?l=GSC"},Hack:{color:"#878787",url:"https://github.com/trending?l=Hack"},Haml:{color:"#ece2a9",url:"https://github.com/trending?l=Haml"},Handlebars:{color:"#f7931e",url:"https://github.com/trending?l=Handlebars"},HAProxy:{color:"#106da9",url:"https://github.com/trending?l=HAProxy"},Harbour:{color:"#0e60e3",url:"https://github.com/trending?l=Harbour"},Haskell:{color:"#5e5086",url:"https://github.com/trending?l=Haskell"},Haxe:{color:"#df7900",url:"https://github.com/trending?l=Haxe"},HCL:{color:null,url:"https://github.com/trending?l=HCL"},HiveQL:{color:"#dce200",url:"https://github.com/trending?l=HiveQL"},HLSL:{color:"#aace60",url:"https://github.com/trending?l=HLSL"},HOCON:{color:"#9ff8ee",url:"https://github.com/trending?l=HOCON"},HolyC:{color:"#ffefaf",url:"https://github.com/trending?l=HolyC"},hoon:{color:"#00b171",url:"https://github.com/trending?l=hoon"},HTML:{color:"#e34c26",url:"https://github.com/trending?l=HTML"},"HTML+ECR":{color:"#2e1052",url:"https://github.com/trending?l=HTML+ECR"},"HTML+EEX":{color:"#6e4a7e",url:"https://github.com/trending?l=HTML+EEX"},"HTML+ERB":{color:"#701516",url:"https://github.com/trending?l=HTML+ERB"},"HTML+PHP":{color:"#4f5d95",url:"https://github.com/trending?l=HTML+PHP"},"HTML+Razor":{color:"#512be4",url:"https://github.com/trending?l=HTML+Razor"},HTTP:{color:"#005C9C",url:"https://github.com/trending?l=HTTP"},HXML:{color:"#f68712",url:"https://github.com/trending?l=HXML"},Hy:{color:"#7790B2",url:"https://github.com/trending?l=Hy"},HyPhy:{color:null,url:"https://github.com/trending?l=HyPhy"},IDL:{color:"#a3522f",url:"https://github.com/trending?l=IDL"},Idris:{color:"#b30000",url:"https://github.com/trending?l=Idris"},"Ignore List":{color:"#000000",url:"https://github.com/trending?l=Ignore-List"},"IGOR Pro":{color:"#0000cc",url:"https://github.com/trending?l=IGOR-Pro"},"ImageJ Macro":{color:"#99AAFF",url:"https://github.com/trending?l=ImageJ-Macro"},"Inform 7":{color:null,url:"https://github.com/trending?l=Inform-7"},INI:{color:"#d1dbe0",url:"https://github.com/trending?l=INI"},"Inno Setup":{color:"#264b99",url:"https://github.com/trending?l=Inno-Setup"},Io:{color:"#a9188d",url:"https://github.com/trending?l=Io"},Ioke:{color:"#078193",url:"https://github.com/trending?l=Ioke"},Isabelle:{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle"},"Isabelle ROOT":{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle-ROOT"},J:{color:"#9EEDFF",url:"https://github.com/trending?l=J"},Janet:{color:"#0886a5",url:"https://github.com/trending?l=Janet"},"JAR Manifest":{color:"#b07219",url:"https://github.com/trending?l=JAR-Manifest"},Jasmin:{color:"#d03600",url:"https://github.com/trending?l=Jasmin"},Java:{color:"#b07219",url:"https://github.com/trending?l=Java"},"Java Properties":{color:"#2A6277",url:"https://github.com/trending?l=Java-Properties"},"Java Server Pages":{color:"#2A6277",url:"https://github.com/trending?l=Java-Server-Pages"},JavaScript:{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript"},"JavaScript+ERB":{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript+ERB"},"Jest Snapshot":{color:"#15c213",url:"https://github.com/trending?l=Jest-Snapshot"},"JetBrains MPS":{color:"#21D789",url:"https://github.com/trending?l=JetBrains-MPS"},JFlex:{color:"#DBCA00",url:"https://github.com/trending?l=JFlex"},Jinja:{color:"#a52a22",url:"https://github.com/trending?l=Jinja"},Jison:{color:"#56b3cb",url:"https://github.com/trending?l=Jison"},"Jison Lex":{color:"#56b3cb",url:"https://github.com/trending?l=Jison-Lex"},Jolie:{color:"#843179",url:"https://github.com/trending?l=Jolie"},jq:{color:"#c7254e",url:"https://github.com/trending?l=jq"},JSON:{color:"#292929",url:"https://github.com/trending?l=JSON"},"JSON with Comments":{color:"#292929",url:"https://github.com/trending?l=JSON-with-Comments"},JSON5:{color:"#267CB9",url:"https://github.com/trending?l=JSON5"},JSONiq:{color:"#40d47e",url:"https://github.com/trending?l=JSONiq"},JSONLD:{color:"#0c479c",url:"https://github.com/trending?l=JSONLD"},Jsonnet:{color:"#0064bd",url:"https://github.com/trending?l=Jsonnet"},Julia:{color:"#a270ba",url:"https://github.com/trending?l=Julia"},"Jupyter Notebook":{color:"#DA5B0B",url:"https://github.com/trending?l=Jupyter-Notebook"},"Kaitai Struct":{color:"#773b37",url:"https://github.com/trending?l=Kaitai-Struct"},KakouneScript:{color:"#6f8042",url:"https://github.com/trending?l=KakouneScript"},"KiCad Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Layout"},"KiCad Legacy Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Legacy-Layout"},"KiCad Schematic":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Schematic"},Kotlin:{color:"#A97BFF",url:"https://github.com/trending?l=Kotlin"},KRL:{color:"#28430A",url:"https://github.com/trending?l=KRL"},kvlang:{color:"#1da6e0",url:"https://github.com/trending?l=kvlang"},LabVIEW:{color:"#fede06",url:"https://github.com/trending?l=LabVIEW"},Lark:{color:"#2980B9",url:"https://github.com/trending?l=Lark"},Lasso:{color:"#999999",url:"https://github.com/trending?l=Lasso"},Latte:{color:"#f2a542",url:"https://github.com/trending?l=Latte"},Lean:{color:null,url:"https://github.com/trending?l=Lean"},Less:{color:"#1d365d",url:"https://github.com/trending?l=Less"},Lex:{color:"#DBCA00",url:"https://github.com/trending?l=Lex"},LFE:{color:"#4C3023",url:"https://github.com/trending?l=LFE"},LigoLANG:{color:"#0e74ff",url:"https://github.com/trending?l=LigoLANG"},LilyPond:{color:"#9ccc7c",url:"https://github.com/trending?l=LilyPond"},Limbo:{color:null,url:"https://github.com/trending?l=Limbo"},Liquid:{color:"#67b8de",url:"https://github.com/trending?l=Liquid"},"Literate Agda":{color:"#315665",url:"https://github.com/trending?l=Literate-Agda"},"Literate CoffeeScript":{color:"#244776",url:"https://github.com/trending?l=Literate-CoffeeScript"},"Literate Haskell":{color:"#5e5086",url:"https://github.com/trending?l=Literate-Haskell"},LiveScript:{color:"#499886",url:"https://github.com/trending?l=LiveScript"},LLVM:{color:"#185619",url:"https://github.com/trending?l=LLVM"},Logos:{color:null,url:"https://github.com/trending?l=Logos"},Logtalk:{color:"#295b9a",url:"https://github.com/trending?l=Logtalk"},LOLCODE:{color:"#cc9900",url:"https://github.com/trending?l=LOLCODE"},LookML:{color:"#652B81",url:"https://github.com/trending?l=LookML"},LoomScript:{color:null,url:"https://github.com/trending?l=LoomScript"},LSL:{color:"#3d9970",url:"https://github.com/trending?l=LSL"},Lua:{color:"#000080",url:"https://github.com/trending?l=Lua"},M:{color:null,url:"https://github.com/trending?l=M"},M4:{color:null,url:"https://github.com/trending?l=M4"},M4Sugar:{color:null,url:"https://github.com/trending?l=M4Sugar"},Macaulay2:{color:"#d8ffff",url:"https://github.com/trending?l=Macaulay2"},Makefile:{color:"#427819",url:"https://github.com/trending?l=Makefile"},Mako:{color:"#7e858d",url:"https://github.com/trending?l=Mako"},Markdown:{color:"#083fa1",url:"https://github.com/trending?l=Markdown"},Marko:{color:"#42bff2",url:"https://github.com/trending?l=Marko"},Mask:{color:"#f97732",url:"https://github.com/trending?l=Mask"},Mathematica:{color:"#dd1100",url:"https://github.com/trending?l=Mathematica"},MATLAB:{color:"#e16737",url:"https://github.com/trending?l=MATLAB"},Max:{color:"#c4a79c",url:"https://github.com/trending?l=Max"},MAXScript:{color:"#00a6a6",url:"https://github.com/trending?l=MAXScript"},mcfunction:{color:"#E22837",url:"https://github.com/trending?l=mcfunction"},Mercury:{color:"#ff2b2b",url:"https://github.com/trending?l=Mercury"},Meson:{color:"#007800",url:"https://github.com/trending?l=Meson"},Metal:{color:"#8f14e9",url:"https://github.com/trending?l=Metal"},MiniD:{color:null,url:"https://github.com/trending?l=MiniD"},MiniYAML:{color:"#ff1111",url:"https://github.com/trending?l=MiniYAML"},Mint:{color:"#02b046",url:"https://github.com/trending?l=Mint"},Mirah:{color:"#c7a938",url:"https://github.com/trending?l=Mirah"},"mIRC Script":{color:"#3d57c3",url:"https://github.com/trending?l=mIRC-Script"},MLIR:{color:"#5EC8DB",url:"https://github.com/trending?l=MLIR"},Modelica:{color:"#de1d31",url:"https://github.com/trending?l=Modelica"},"Modula-2":{color:"#10253f",url:"https://github.com/trending?l=Modula-2"},"Modula-3":{color:"#223388",url:"https://github.com/trending?l=Modula-3"},"Module Management System":{color:null,url:"https://github.com/trending?l=Module-Management-System"},Monkey:{color:null,url:"https://github.com/trending?l=Monkey"},"Monkey C":{color:"#8D6747",url:"https://github.com/trending?l=Monkey-C"},Moocode:{color:null,url:"https://github.com/trending?l=Moocode"},MoonScript:{color:"#ff4585",url:"https://github.com/trending?l=MoonScript"},Motoko:{color:"#fbb03b",url:"https://github.com/trending?l=Motoko"},"Motorola 68K Assembly":{color:"#005daa",url:"https://github.com/trending?l=Motorola-68K-Assembly"},Move:{color:"#4a137a",url:"https://github.com/trending?l=Move"},MQL4:{color:"#62A8D6",url:"https://github.com/trending?l=MQL4"},MQL5:{color:"#4A76B8",url:"https://github.com/trending?l=MQL5"},MTML:{color:"#b7e1f4",url:"https://github.com/trending?l=MTML"},MUF:{color:null,url:"https://github.com/trending?l=MUF"},mupad:{color:"#244963",url:"https://github.com/trending?l=mupad"},Mustache:{color:"#724b3b",url:"https://github.com/trending?l=Mustache"},Myghty:{color:null,url:"https://github.com/trending?l=Myghty"},nanorc:{color:"#2d004d",url:"https://github.com/trending?l=nanorc"},Nasal:{color:"#1d2c4e",url:"https://github.com/trending?l=Nasal"},NASL:{color:null,url:"https://github.com/trending?l=NASL"},NCL:{color:"#28431f",url:"https://github.com/trending?l=NCL"},Nearley:{color:"#990000",url:"https://github.com/trending?l=Nearley"},Nemerle:{color:"#3d3c6e",url:"https://github.com/trending?l=Nemerle"},nesC:{color:"#94B0C7",url:"https://github.com/trending?l=nesC"},NetLinx:{color:"#0aa0ff",url:"https://github.com/trending?l=NetLinx"},"NetLinx+ERB":{color:"#747faa",url:"https://github.com/trending?l=NetLinx+ERB"},NetLogo:{color:"#ff6375",url:"https://github.com/trending?l=NetLogo"},NewLisp:{color:"#87AED7",url:"https://github.com/trending?l=NewLisp"},Nextflow:{color:"#3ac486",url:"https://github.com/trending?l=Nextflow"},Nginx:{color:"#009639",url:"https://github.com/trending?l=Nginx"},Nim:{color:"#ffc200",url:"https://github.com/trending?l=Nim"},Nit:{color:"#009917",url:"https://github.com/trending?l=Nit"},Nix:{color:"#7e7eff",url:"https://github.com/trending?l=Nix"},"NPM Config":{color:"#cb3837",url:"https://github.com/trending?l=NPM-Config"},NSIS:{color:null,url:"https://github.com/trending?l=NSIS"},Nu:{color:"#c9df40",url:"https://github.com/trending?l=Nu"},NumPy:{color:"#9C8AF9",url:"https://github.com/trending?l=NumPy"},Nunjucks:{color:"#3d8137",url:"https://github.com/trending?l=Nunjucks"},NWScript:{color:"#111522",url:"https://github.com/trending?l=NWScript"},"Objective-C":{color:"#438eff",url:"https://github.com/trending?l=Objective-C"},"Objective-C++":{color:"#6866fb",url:"https://github.com/trending?l=Objective-C++"},"Objective-J":{color:"#ff0c5a",url:"https://github.com/trending?l=Objective-J"},ObjectScript:{color:"#424893",url:"https://github.com/trending?l=ObjectScript"},OCaml:{color:"#3be133",url:"https://github.com/trending?l=OCaml"},Odin:{color:"#60AFFE",url:"https://github.com/trending?l=Odin"},Omgrofl:{color:"#cabbff",url:"https://github.com/trending?l=Omgrofl"},ooc:{color:"#b0b77e",url:"https://github.com/trending?l=ooc"},Opa:{color:null,url:"https://github.com/trending?l=Opa"},Opal:{color:"#f7ede0",url:"https://github.com/trending?l=Opal"},"Open Policy Agent":{color:"#7d9199",url:"https://github.com/trending?l=Open-Policy-Agent"},OpenCL:{color:"#ed2e2d",url:"https://github.com/trending?l=OpenCL"},"OpenEdge ABL":{color:"#5ce600",url:"https://github.com/trending?l=OpenEdge-ABL"},OpenQASM:{color:"#AA70FF",url:"https://github.com/trending?l=OpenQASM"},"OpenRC runscript":{color:null,url:"https://github.com/trending?l=OpenRC-runscript"},OpenSCAD:{color:"#e5cd45",url:"https://github.com/trending?l=OpenSCAD"},Org:{color:"#77aa99",url:"https://github.com/trending?l=Org"},Ox:{color:null,url:"https://github.com/trending?l=Ox"},Oxygene:{color:"#cdd0e3",url:"https://github.com/trending?l=Oxygene"},Oz:{color:"#fab738",url:"https://github.com/trending?l=Oz"},P4:{color:"#7055b5",url:"https://github.com/trending?l=P4"},Pan:{color:"#cc0000",url:"https://github.com/trending?l=Pan"},Papyrus:{color:"#6600cc",url:"https://github.com/trending?l=Papyrus"},Parrot:{color:"#f3ca0a",url:"https://github.com/trending?l=Parrot"},"Parrot Assembly":{color:null,url:"https://github.com/trending?l=Parrot-Assembly"},"Parrot Internal Representation":{color:null,url:"https://github.com/trending?l=Parrot-Internal-Representation"},Pascal:{color:"#E3F171",url:"https://github.com/trending?l=Pascal"},Pawn:{color:"#dbb284",url:"https://github.com/trending?l=Pawn"},"PEG.js":{color:"#234d6b",url:"https://github.com/trending?l=PEG.js"},Pep8:{color:"#C76F5B",url:"https://github.com/trending?l=Pep8"},Perl:{color:"#0298c3",url:"https://github.com/trending?l=Perl"},PHP:{color:"#4F5D95",url:"https://github.com/trending?l=PHP"},PicoLisp:{color:"#6067af",url:"https://github.com/trending?l=PicoLisp"},PigLatin:{color:"#fcd7de",url:"https://github.com/trending?l=PigLatin"},Pike:{color:"#005390",url:"https://github.com/trending?l=Pike"},PLpgSQL:{color:"#336790",url:"https://github.com/trending?l=PLpgSQL"},PLSQL:{color:"#dad8d8",url:"https://github.com/trending?l=PLSQL"},PogoScript:{color:"#d80074",url:"https://github.com/trending?l=PogoScript"},Pony:{color:null,url:"https://github.com/trending?l=Pony"},Portugol:{color:"#f8bd00",url:"https://github.com/trending?l=Portugol"},PostCSS:{color:"#dc3a0c",url:"https://github.com/trending?l=PostCSS"},PostScript:{color:"#da291c",url:"https://github.com/trending?l=PostScript"},"POV-Ray SDL":{color:"#6bac65",url:"https://github.com/trending?l=POV-Ray-SDL"},PowerBuilder:{color:"#8f0f8d",url:"https://github.com/trending?l=PowerBuilder"},PowerShell:{color:"#012456",url:"https://github.com/trending?l=PowerShell"},Prisma:{color:"#0c344b",url:"https://github.com/trending?l=Prisma"},Processing:{color:"#0096D8",url:"https://github.com/trending?l=Processing"},Procfile:{color:"#3B2F63",url:"https://github.com/trending?l=Procfile"},Prolog:{color:"#74283c",url:"https://github.com/trending?l=Prolog"},Promela:{color:"#de0000",url:"https://github.com/trending?l=Promela"},"Propeller Spin":{color:"#7fa2a7",url:"https://github.com/trending?l=Propeller-Spin"},Pug:{color:"#a86454",url:"https://github.com/trending?l=Pug"},Puppet:{color:"#302B6D",url:"https://github.com/trending?l=Puppet"},PureBasic:{color:"#5a6986",url:"https://github.com/trending?l=PureBasic"},PureScript:{color:"#1D222D",url:"https://github.com/trending?l=PureScript"},Python:{color:"#3572A5",url:"https://github.com/trending?l=Python"},"Python console":{color:"#3572A5",url:"https://github.com/trending?l=Python-console"},"Python traceback":{color:"#3572A5",url:"https://github.com/trending?l=Python-traceback"},q:{color:"#0040cd",url:"https://github.com/trending?l=q"},"Q#":{color:"#fed659",url:"https://github.com/trending?l=Qsharp"},QMake:{color:null,url:"https://github.com/trending?l=QMake"},QML:{color:"#44a51c",url:"https://github.com/trending?l=QML"},"Qt Script":{color:"#00b841",url:"https://github.com/trending?l=Qt-Script"},Quake:{color:"#882233",url:"https://github.com/trending?l=Quake"},R:{color:"#198CE7",url:"https://github.com/trending?l=R"},Racket:{color:"#3c5caa",url:"https://github.com/trending?l=Racket"},Ragel:{color:"#9d5200",url:"https://github.com/trending?l=Ragel"},Raku:{color:"#0000fb",url:"https://github.com/trending?l=Raku"},RAML:{color:"#77d9fb",url:"https://github.com/trending?l=RAML"},Rascal:{color:"#fffaa0",url:"https://github.com/trending?l=Rascal"},RDoc:{color:"#701516",url:"https://github.com/trending?l=RDoc"},REALbasic:{color:null,url:"https://github.com/trending?l=REALbasic"},Reason:{color:"#ff5847",url:"https://github.com/trending?l=Reason"},ReasonLIGO:{color:"#ff5847",url:"https://github.com/trending?l=ReasonLIGO"},Rebol:{color:"#358a5b",url:"https://github.com/trending?l=Rebol"},"Record Jar":{color:"#0673ba",url:"https://github.com/trending?l=Record-Jar"},Red:{color:"#f50000",url:"https://github.com/trending?l=Red"},Redcode:{color:null,url:"https://github.com/trending?l=Redcode"},"Regular Expression":{color:"#009a00",url:"https://github.com/trending?l=Regular-Expression"},"Ren'Py":{color:"#ff7f7f",url:"https://github.com/trending?l=Ren'Py"},RenderScript:{color:null,url:"https://github.com/trending?l=RenderScript"},ReScript:{color:"#ed5051",url:"https://github.com/trending?l=ReScript"},reStructuredText:{color:"#141414",url:"https://github.com/trending?l=reStructuredText"},REXX:{color:"#d90e09",url:"https://github.com/trending?l=REXX"},Ring:{color:"#2D54CB",url:"https://github.com/trending?l=Ring"},Riot:{color:"#A71E49",url:"https://github.com/trending?l=Riot"},RMarkdown:{color:"#198ce7",url:"https://github.com/trending?l=RMarkdown"},RobotFramework:{color:"#00c0b5",url:"https://github.com/trending?l=RobotFramework"},Roff:{color:"#ecdebe",url:"https://github.com/trending?l=Roff"},"Roff Manpage":{color:"#ecdebe",url:"https://github.com/trending?l=Roff-Manpage"},Rouge:{color:"#cc0088",url:"https://github.com/trending?l=Rouge"},"RouterOS Script":{color:"#DE3941",url:"https://github.com/trending?l=RouterOS-Script"},RPC:{color:null,url:"https://github.com/trending?l=RPC"},RPGLE:{color:"#2BDE21",url:"https://github.com/trending?l=RPGLE"},Ruby:{color:"#701516",url:"https://github.com/trending?l=Ruby"},RUNOFF:{color:"#665a4e",url:"https://github.com/trending?l=RUNOFF"},Rust:{color:"#dea584",url:"https://github.com/trending?l=Rust"},Sage:{color:null,url:"https://github.com/trending?l=Sage"},SaltStack:{color:"#646464",url:"https://github.com/trending?l=SaltStack"},SAS:{color:"#B34936",url:"https://github.com/trending?l=SAS"},Sass:{color:"#a53b70",url:"https://github.com/trending?l=Sass"},Scala:{color:"#c22d40",url:"https://github.com/trending?l=Scala"},Scaml:{color:"#bd181a",url:"https://github.com/trending?l=Scaml"},Scheme:{color:"#1e4aec",url:"https://github.com/trending?l=Scheme"},Scilab:{color:"#ca0f21",url:"https://github.com/trending?l=Scilab"},SCSS:{color:"#c6538c",url:"https://github.com/trending?l=SCSS"},sed:{color:"#64b970",url:"https://github.com/trending?l=sed"},Self:{color:"#0579aa",url:"https://github.com/trending?l=Self"},ShaderLab:{color:"#222c37",url:"https://github.com/trending?l=ShaderLab"},Shell:{color:"#89e051",url:"https://github.com/trending?l=Shell"},"ShellCheck Config":{color:"#cecfcb",url:"https://github.com/trending?l=ShellCheck-Config"},ShellSession:{color:null,url:"https://github.com/trending?l=ShellSession"},Shen:{color:"#120F14",url:"https://github.com/trending?l=Shen"},Sieve:{color:null,url:"https://github.com/trending?l=Sieve"},Singularity:{color:"#64E6AD",url:"https://github.com/trending?l=Singularity"},Slash:{color:"#007eff",url:"https://github.com/trending?l=Slash"},Slice:{color:"#003fa2",url:"https://github.com/trending?l=Slice"},Slim:{color:"#2b2b2b",url:"https://github.com/trending?l=Slim"},Smali:{color:null,url:"https://github.com/trending?l=Smali"},Smalltalk:{color:"#596706",url:"https://github.com/trending?l=Smalltalk"},Smarty:{color:"#f0c040",url:"https://github.com/trending?l=Smarty"},SmPL:{color:"#c94949",url:"https://github.com/trending?l=SmPL"},SMT:{color:null,url:"https://github.com/trending?l=SMT"},Solidity:{color:"#AA6746",url:"https://github.com/trending?l=Solidity"},SourcePawn:{color:"#f69e1d",url:"https://github.com/trending?l=SourcePawn"},SPARQL:{color:"#0C4597",url:"https://github.com/trending?l=SPARQL"},SQF:{color:"#3F3F3F",url:"https://github.com/trending?l=SQF"},SQL:{color:"#e38c00",url:"https://github.com/trending?l=SQL"},SQLPL:{color:"#e38c00",url:"https://github.com/trending?l=SQLPL"},Squirrel:{color:"#800000",url:"https://github.com/trending?l=Squirrel"},"SRecode Template":{color:"#348a34",url:"https://github.com/trending?l=SRecode-Template"},Stan:{color:"#b2011d",url:"https://github.com/trending?l=Stan"},"Standard ML":{color:"#dc566d",url:"https://github.com/trending?l=Standard-ML"},Starlark:{color:"#76d275",url:"https://github.com/trending?l=Starlark"},Stata:{color:"#1a5f91",url:"https://github.com/trending?l=Stata"},STL:{color:"#373b5e",url:"https://github.com/trending?l=STL"},StringTemplate:{color:"#3fb34f",url:"https://github.com/trending?l=StringTemplate"},Stylus:{color:"#ff6347",url:"https://github.com/trending?l=Stylus"},"SubRip Text":{color:"#9e0101",url:"https://github.com/trending?l=SubRip-Text"},SugarSS:{color:"#2fcc9f",url:"https://github.com/trending?l=SugarSS"},SuperCollider:{color:"#46390b",url:"https://github.com/trending?l=SuperCollider"},Svelte:{color:"#ff3e00",url:"https://github.com/trending?l=Svelte"},SVG:{color:"#ff9900",url:"https://github.com/trending?l=SVG"},Swift:{color:"#F05138",url:"https://github.com/trending?l=Swift"},SWIG:{color:null,url:"https://github.com/trending?l=SWIG"},SystemVerilog:{color:"#DAE1C2",url:"https://github.com/trending?l=SystemVerilog"},Talon:{color:"#333333",url:"https://github.com/trending?l=Talon"},Tcl:{color:"#e4cc98",url:"https://github.com/trending?l=Tcl"},Tcsh:{color:null,url:"https://github.com/trending?l=Tcsh"},Terra:{color:"#00004c",url:"https://github.com/trending?l=Terra"},TeX:{color:"#3D6117",url:"https://github.com/trending?l=TeX"},Textile:{color:"#ffe7ac",url:"https://github.com/trending?l=Textile"},"TextMate Properties":{color:"#df66e4",url:"https://github.com/trending?l=TextMate-Properties"},Thrift:{color:"#D12127",url:"https://github.com/trending?l=Thrift"},"TI Program":{color:"#A0AA87",url:"https://github.com/trending?l=TI-Program"},TLA:{color:"#4b0079",url:"https://github.com/trending?l=TLA"},TOML:{color:"#9c4221",url:"https://github.com/trending?l=TOML"},TSQL:{color:"#e38c00",url:"https://github.com/trending?l=TSQL"},TSV:{color:"#237346",url:"https://github.com/trending?l=TSV"},TSX:{color:"#3178c6",url:"https://github.com/trending?l=TSX"},Turing:{color:"#cf142b",url:"https://github.com/trending?l=Turing"},Twig:{color:"#c1d026",url:"https://github.com/trending?l=Twig"},TXL:{color:"#0178b8",url:"https://github.com/trending?l=TXL"},TypeScript:{color:"#3178c6",url:"https://github.com/trending?l=TypeScript"},"Unified Parallel C":{color:"#4e3617",url:"https://github.com/trending?l=Unified-Parallel-C"},"Unity3D Asset":{color:"#222c37",url:"https://github.com/trending?l=Unity3D-Asset"},"Unix Assembly":{color:null,url:"https://github.com/trending?l=Unix-Assembly"},Uno:{color:"#9933cc",url:"https://github.com/trending?l=Uno"},UnrealScript:{color:"#a54c4d",url:"https://github.com/trending?l=UnrealScript"},UrWeb:{color:"#ccccee",url:"https://github.com/trending?l=UrWeb"},V:{color:"#4f87c4",url:"https://github.com/trending?l=V"},Vala:{color:"#a56de2",url:"https://github.com/trending?l=Vala"},"Valve Data Format":{color:"#f26025",url:"https://github.com/trending?l=Valve-Data-Format"},VBA:{color:"#867db1",url:"https://github.com/trending?l=VBA"},VBScript:{color:"#15dcdc",url:"https://github.com/trending?l=VBScript"},VCL:{color:"#148AA8",url:"https://github.com/trending?l=VCL"},"Velocity Template Language":{color:"#507cff",url:"https://github.com/trending?l=Velocity-Template-Language"},Verilog:{color:"#b2b7f8",url:"https://github.com/trending?l=Verilog"},VHDL:{color:"#adb2cb",url:"https://github.com/trending?l=VHDL"},"Vim Help File":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Help-File"},"Vim Script":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Script"},"Vim Snippet":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Snippet"},"Visual Basic .NET":{color:"#945db7",url:"https://github.com/trending?l=Visual-Basic-.NET"},Volt:{color:"#1F1F1F",url:"https://github.com/trending?l=Volt"},Vue:{color:"#41b883",url:"https://github.com/trending?l=Vue"},Vyper:{color:"#2980b9",url:"https://github.com/trending?l=Vyper"},wdl:{color:"#42f1f4",url:"https://github.com/trending?l=wdl"},"Web Ontology Language":{color:"#5b70bd",url:"https://github.com/trending?l=Web-Ontology-Language"},WebAssembly:{color:"#04133b",url:"https://github.com/trending?l=WebAssembly"},WebIDL:{color:null,url:"https://github.com/trending?l=WebIDL"},Whiley:{color:"#d5c397",url:"https://github.com/trending?l=Whiley"},Wikitext:{color:"#fc5757",url:"https://github.com/trending?l=Wikitext"},"Windows Registry Entries":{color:"#52d5ff",url:"https://github.com/trending?l=Windows-Registry-Entries"},wisp:{color:"#7582D1",url:"https://github.com/trending?l=wisp"},"Witcher Script":{color:"#ff0000",url:"https://github.com/trending?l=Witcher-Script"},Wollok:{color:"#a23738",url:"https://github.com/trending?l=Wollok"},"World of Warcraft Addon Data":{color:"#f7e43f",url:"https://github.com/trending?l=World-of-Warcraft-Addon-Data"},Wren:{color:"#383838",url:"https://github.com/trending?l=Wren"},X10:{color:"#4B6BEF",url:"https://github.com/trending?l=X10"},xBase:{color:"#403a40",url:"https://github.com/trending?l=xBase"},XC:{color:"#99DA07",url:"https://github.com/trending?l=XC"},XML:{color:"#0060ac",url:"https://github.com/trending?l=XML"},"XML Property List":{color:"#0060ac",url:"https://github.com/trending?l=XML-Property-List"},Xojo:{color:"#81bd41",url:"https://github.com/trending?l=Xojo"},Xonsh:{color:"#285EEF",url:"https://github.com/trending?l=Xonsh"},XProc:{color:null,url:"https://github.com/trending?l=XProc"},XQuery:{color:"#5232e7",url:"https://github.com/trending?l=XQuery"},XS:{color:null,url:"https://github.com/trending?l=XS"},XSLT:{color:"#EB8CEB",url:"https://github.com/trending?l=XSLT"},Xtend:{color:"#24255d",url:"https://github.com/trending?l=Xtend"},Yacc:{color:"#4B6C4B",url:"https://github.com/trending?l=Yacc"},YAML:{color:"#cb171e",url:"https://github.com/trending?l=YAML"},YARA:{color:"#220000",url:"https://github.com/trending?l=YARA"},YASnippet:{color:"#32AB90",url:"https://github.com/trending?l=YASnippet"},Yul:{color:"#794932",url:"https://github.com/trending?l=Yul"},ZAP:{color:"#0d665e",url:"https://github.com/trending?l=ZAP"},Zeek:{color:null,url:"https://github.com/trending?l=Zeek"},ZenScript:{color:"#00BCD1",url:"https://github.com/trending?l=ZenScript"},Zephir:{color:"#118f9e",url:"https://github.com/trending?l=Zephir"},Zig:{color:"#ec915c",url:"https://github.com/trending?l=Zig"},ZIL:{color:"#dc75e5",url:"https://github.com/trending?l=ZIL"},Zimpl:{color:"#d67711",url:"https://github.com/trending?l=Zimpl"}};var wu=R(xu()),ku=new Map;for(let[e,t]of Object.entries(mu))ku.set(e.toLowerCase(),{...t,lang:e});function Su(e){let t=wu.default.languages(e.toLowerCase()),r=[];if(!t)return null;let o=null;for(let i of t){let l=ku.get(i);if(l){o=l,r.push(o.lang);break}}return o?o.color:null}var Qo=class{constructor(t,r,o,i){this.scale=(i-o)/(r-t),this.offset=t*this.scale-o,this.target_max=i,this.target_min=o}translate(t){return t*this.scale-this.offset}inverseTranslate(t){return this.target_max-this.translate(t)+this.target_min}};var Cu=R(ee());var ve=R(X()),Jo=3,Ke=class{constructor(t,r){this.color=t;this.weight=r}add(t){this.weight+=t}};function Mu({metricCache:e}){let[t,r]=(0,Cu.useState)(!0),o=Array.from(e.legend).sort(([,i],[,l])=>i.weight<l.weight?1:i.weight>l.weight?-1:0);return o.length===0?null:o.length<=Jo+1?(0,ve.jsx)(Di,{show:!0,items:o}):(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(Di,{show:!0,items:o.slice(0,Jo)}),(0,ve.jsx)(Di,{show:!t,items:o.slice(Jo)}),(0,ve.jsx)(sv,{show:t,items:o.slice(Jo),toggle:()=>r(!t)}),(0,ve.jsx)(Fo,{collapse:t,toggle:()=>r(!t)})]})}function Di(e){return e.show?(0,ve.jsx)(ve.Fragment,{children:e.items.map(t=>{let[r,o]=t;return(0,ve.jsxs)("div",{children:[(0,ve.jsxs)(gi,{children:[(0,ve.jsx)(Lt,{dotColor:o.color}),(0,ve.jsx)(G,{horizontal:!0}),(0,ve.jsx)(fr,{children:r})]}),(0,ve.jsx)(G,{})]},r)})}):null}var lv=N.div`
|
|
24
|
+
`;var ve=R(X()),Xo=3,Ze=class{constructor(t,r){this.color=t;this.weight=r}add(t){this.weight+=t}};function Su({metricCache:e}){let[t,r]=(0,ku.useState)(!0),o=Array.from(e.legend).sort(([,i],[,l])=>i.weight<l.weight?1:i.weight>l.weight?-1:0);return o.length===0?null:o.length<=Xo+1?(0,ve.jsx)(ji,{show:!0,items:o}):(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(ji,{show:!0,items:o.slice(0,Xo)}),(0,ve.jsx)(ji,{show:!t,items:o.slice(Xo)}),(0,ve.jsx)(av,{show:t,items:o.slice(Xo),toggle:()=>r(!t)}),(0,ve.jsx)(Wo,{collapse:t,toggle:()=>r(!t)})]})}function ji(e){return e.show?(0,ve.jsx)(ve.Fragment,{children:e.items.map(t=>{let[r,o]=t;return(0,ve.jsxs)("div",{children:[(0,ve.jsxs)(gi,{children:[(0,ve.jsx)(ot,{dotColor:o.color}),(0,ve.jsx)(G,{horizontal:!0}),(0,ve.jsx)(Ot,{children:r})]}),(0,ve.jsx)(G,{})]},r)})}):null}var iv=N.div`
|
|
33
25
|
width: fit-content;
|
|
34
26
|
&:hover {
|
|
35
27
|
cursor: pointer;
|
|
36
28
|
}
|
|
37
|
-
`;function sv(e){return e.show?(0,ve.jsx)(lv,{children:(0,ve.jsxs)(gi,{onClick:e.toggle,children:[e.items.slice(0,14).map(([t,r],o)=>{let i=o===0?0:-10;return(0,ve.jsx)(Lt,{dotColor:r.color,style:{marginLeft:i}},`dot${t}`)}),(0,ve.jsx)(G,{horizontal:!0}),(0,ve.jsxs)(fr,{children:[e.items.length," more"]})]})}):null}function Au(e,t){var l;let r=e.name.substring(e.name.lastIndexOf(".")+1),o=Su(r),i=t.legend;o?(i.has(r)?(l=i.get(r))==null||l.add(1):i.set(r,new Ke(o,1)),t.colormap.set(e.path,o)):(i.has("Other")||i.set("Other",new Ke("grey",0)),t.colormap.set(e.path,"grey"))}function Tu(e,t,r){var p,g;let o="red",i="hsl(210, 38%, 85%)",l="teal",c=(g=(p=e.unionedAuthors)==null?void 0:p[r])!=null?g:{},f=0;for(let[,k]of Object.entries(c))f+=k;let h=t.legend;if(f===0){h.set("No authors",new Ke(l,0)),t.colormap.set(e.path,l);return}if(!c)throw Error("No unioned authors found");switch(Object.keys(c).length){case 1:h.set("Single author",new Ke(o,2)),t.colormap.set(e.path,o);return;default:h.set("Multiple authors",new Ke(i,1)),t.colormap.set(e.path,i);return}}var Ko=class{constructor(t,r){this.min_lightness=50;this.max_lightness=95;this.translater=new Qo(t,r,this.min_lightness,this.max_lightness)}getColor(t){return`hsl(20,100%,${this.translater.inverseTranslate(t)}%)`}setColor(t,r){r.colormap.set(t.path,this.getColor(t.noCommits))}};function _u(e){return[{epoch:0,text:Hs(e*1e3),color:"#cff2ff"},{epoch:86400,text:"+1d",color:"#c6dbef"},{epoch:604800,text:"+1w",color:"#9ecae1"},{epoch:2629743,text:"+1m",color:"#6baed6"},{epoch:31556926,text:"+1y",color:"#4292c6"},{epoch:31556926*2,text:"+2y",color:"#2171b5"},{epoch:31556926*4,text:"+4y",color:"#084594"}]}function Yo(e,t,r){let o=t-r,i=0;for(;i<e.length-1;){if(o<e[i+1].epoch)return i;i++}return i}function Lu(e,t,r,o){var p,g,k,y;let i=(p=t.unionedAuthors)==null?void 0:p[o],l;try{if(!i||(l=Object.entries(i).sort(([v,S],[M,P])=>{if(S===0||P===0||!v||!M)throw Error;return S<P?1:S>P?-1:0}),!l[0]))throw Error}catch{return}let[c]=l[0],f=r.legend,h=(g=e.get(c))!=null?g:"grey";if(r.colormap.set(t.path,h),(k=t.dominantAuthor)==null||k.set(o,l[0]),f.has(c)){(y=f.get(c))==null||y.add(1);return}f.set(c,new Ke(h,1))}var Zo=class{constructor(t){this.min_lightness=50;this.max_lighness=90;this.step=t<=1?1:this.step=(this.max_lighness-this.min_lightness)/Math.floor(Math.log2(t))}getColor(t){let r=Math.floor(Math.log2(t));return`hsl(0,75%,${this.min_lightness+r*this.step}%)`}setColor(t,r){var o,i;r.colormap.set(t.path,this.getColor(Object.entries((i=(o=t.unionedAuthors)==null?void 0:o.HISTORICAL)!=null?i:[]).length))}};var Ru={HISTORICAL:"Complete history",BLAME:"Newest version"},pr={FILE_EXTENSION:"File extension",MOST_COMMITS:"Number of commits",LAST_CHANGED:"Last changed",SINGLE_AUTHOR:"Single author",TOP_CONTRIBUTOR:"Top contributor",TRUCK_FACTOR:"Truck factor"};function $u(e){let t=cv(e.authors);return[{HISTORICAL:Ou(e.commit.tree,Pu(e,"HISTORICAL",t)),BLAME:Ou(e.commit.tree,Pu(e,"BLAME",t))},t]}function ju(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 Du(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 cv(e){let t={};for(let l of Object.keys(e))t[l]=0;let r=(0,Eu.default)({count:e.length}),o=0,i=new Map;for(let l of e){let c=r[o++].rgb(!0),f=`rgb(${c[0]},${c[1]},${c[2]})`;i.set(l,f)}return i}function Fu(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,l]=Fu(o);l>r&&(r=l),i<t&&(t=i)}}),[t,r]}function Pu(e,t,r){let o=e.commit,[i,l]=Fu(o.tree),c=new Ko(i,l),f=new Zo(e.authorsUnion.length);return[["FILE_EXTENSION",(h,p)=>{p.legend||(p.legend=new Map),Au(h,p)}],["SINGLE_AUTHOR",(h,p)=>{p.legend||(p.legend=new Map),Tu(h,p,t)}],["MOST_COMMITS",(h,p)=>{p.legend||(p.legend=[`${i}`,`${l}`,void 0,void 0,c.getColor(i),c.getColor(l)]),c.setColor(h,p)}],["LAST_CHANGED",(h,p)=>{var y,v;let g=e.commit.newestLatestChangeEpoch,k=_u(g);p.legend||(p.legend=[Yo(k,g,e.commit.oldestLatestChangeEpoch)+1,S=>k[S].text,S=>k[S].color,S=>{var M,P;return(P=Yo(k,g,(M=S.lastChangeEpoch)!=null?M:0))!=null?P:-1}]),p.colormap.set(h.path,k[(v=Yo(k,g,(y=h.lastChangeEpoch)!=null?y:0))!=null?v:-1].color)}],["TOP_CONTRIBUTOR",(h,p)=>{h.dominantAuthor||(h.dominantAuthor=new Map),p.legend||(p.legend=new Map),Lu(r,h,p,t)}],["TRUCK_FACTOR",(h,p)=>{p.legend||(p.legend=[Math.floor(Math.log2(e.authorsUnion.length))+1,g=>`${Math.pow(2,g)}`,g=>`hsl(0,75%,${50+g*(40/(Math.floor(Math.log2(e.authorsUnion.length))+1))}%)`,g=>{var k,y;return Math.floor(Math.log2(Object.entries((y=(k=g.unionedAuthors)==null?void 0:k.HISTORICAL)!=null?y:[]).length))}]),f.setColor(h,p)}]]}function Ou(e,t){let r=new Map;return Bu(e,t,r),r}function Bu(e,t,r){var o;for(let i of e.children)switch(i.type){case"tree":Bu(i,t,r);break;case"blob":for(let[l,c]of t)r.has(l)||r.set(l,{legend:void 0,colormap:new Map}),c(i,(o=r.get(l))!=null?o:{legend:void 0,colormap:new Map});break}}var Fi={BUBBLE_CHART:"Bubble chart",TREE_MAP:"Tree map"},Bi=(0,en.createContext)(void 0);function $e(){let e=(0,en.useContext)(Bi);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e}function Pt(){return{metricType:Object.keys(pr)[0],chartType:Object.keys(Fi)[0],authorshipType:Object.keys(Ru)[0],animationsEnabled:!0,setChartType:()=>{throw new Error("No chartTypeSetter provided")},setMetricType:()=>{throw new Error("No metricTypeSetter provided")},setAuthorshipType:()=>{throw new Error("No AuthorshipTypeSetter provided")},setAnimationsEnabled:()=>{throw new Error("No animationsEnabledSetter provided")}}}var tn=R(ee()),Ii=(0,tn.createContext)(void 0);function ot(){let e=(0,tn.useContext)(Ii);if(!e)throw new Error("useSearch must be used within a PathProvider");return e}var Gu={},Iu=new WeakMap,Nu={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"}]},Ni=class{constructor(t,r){r=Object.assign({units:"metric",precision:1,locale:void 0},Gu,r),Iu.set(this,r),Object.assign(Nu,r.customUnits);let o=t<0?"-":"";t=Math.abs(t);let i=Nu[r.units];if(i){let l=i.find(c=>t>=c.from&&t<c.to);if(l){let c=new Intl.NumberFormat(r.locale,{style:"decimal",minimumFractionDigits:r.precision,maximumFractionDigits:r.precision}),f=l.from===0?o+t:o+c.format(t/l.from);this.value=f,this.unit=l.unit,this.long=l.long}else this.value=o+t,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${r.units}`)}toString(){let t=Iu.get(this);return t.toStringFn?t.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function Hu(e,t){return new Ni(e,t)}Hu.defaultOptions=function(e){Gu=e};var zu=Hu;vs();var Hr=R(ee());var rn=Hr.forwardRef(function(e,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return Hr.createElement(Mo,So({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),Hr.createElement("path",{fillRule:"evenodd",d:"M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1-1.06 1.06L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0z"}))});rn.displayName="ArrowUp";vs();var zr=R(ee());var hr=zr.forwardRef(function(e,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return zr.createElement(Mo,So({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),zr.createElement("path",{fillRule:"evenodd",d:"M.143 2.31a.75.75 0 0 1 1.047-.167l14.5 10.5a.75.75 0 1 1-.88 1.214l-2.248-1.628C11.346 13.19 9.792 14 8 14c-1.981 0-3.67-.992-4.933-2.078C1.797 10.832.88 9.577.43 8.9a1.618 1.618 0 0 1 0-1.797c.353-.533.995-1.42 1.868-2.305L.31 3.357A.75.75 0 0 1 .143 2.31zm3.386 3.378a14.21 14.21 0 0 0-1.85 2.244.12.12 0 0 0-.022.068c0 .021.006.045.022.068.412.621 1.242 1.75 2.366 2.717C5.175 11.758 6.527 12.5 8 12.5c1.195 0 2.31-.488 3.29-1.191L9.063 9.695A2 2 0 0 1 6.058 7.52l-2.53-1.832zM8 3.5c-.516 0-1.017.09-1.499.251a.75.75 0 1 1-.473-1.423A6.23 6.23 0 0 1 8 2c1.981 0 3.67.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.619 1.619 0 0 1 0 1.798c-.11.166-.248.365-.41.587a.75.75 0 1 1-1.21-.887c.148-.201.272-.382.371-.53a.119.119 0 0 0 0-.137c-.412-.621-1.242-1.75-2.366-2.717C10.825 4.242 9.473 3.5 8 3.5z"}))});hr.displayName="EyeClosed";var O=R(X());function uv(e){let t=e.lastIndexOf("/"),r=e.lastIndexOf("\\");return t!==-1?e.slice(0,t):r!==-1?e.slice(0,r):e}function Wu(e){var y;let{setClickedObject:t,clickedObject:r}=rt(),o=ur(),{authorshipType:i}=$e(),{state:l}=Tt(),{setPath:c,path:f}=ot(),{analyzerData:h}=Ee(),p=(0,Xt.useRef)(!1);if((0,Xt.useEffect)(()=>{p.current&&(t(null),p.current=!1)},[r,t,l]),(0,Xt.useEffect)(()=>{t(v=>fv(h.commit.tree,v))},[h,t]),!r)return null;let g=r.type==="blob",k=Vs(r.name.split("."));return(0,O.jsxs)(xe,{children:[(0,O.jsx)(Po,{onClick:()=>t(null)}),(0,O.jsx)(_o,{title:r.name,children:r.name}),(0,O.jsx)(G,{xl:!0}),(0,O.jsxs)(xv,{children:[g?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(bv,{size:r.sizeInBytes,isBinary:r.isBinary}),(0,O.jsx)(pv,{clickedBlob:r}),(0,O.jsx)(hv,{clickedBlob:r})]}):(0,O.jsx)(dv,{clickedTree:r}),(0,O.jsx)(mv,{path:r.path})]}),(0,O.jsx)(G,{}),g?(0,O.jsx)(qu,{authors:(y=r.unionedAuthors)==null?void 0:y[i]}):(0,O.jsx)(qu,{authors:kv(r,i)}),(0,O.jsx)(G,{xl:!0}),(0,O.jsxs)(Oe,{onClick:e.showUnionAuthorsModal,children:[(0,O.jsx)(To,{display:"inline-block",height:"1rem"}),"Merge duplicate users"]}),(0,O.jsx)(G,{}),g?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(ut,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:r.path}),(0,O.jsxs)(Oe,{type:"submit",disabled:l!=="idle",onClick:()=>{p.current=!0},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),"Hide this file"]})]}),r.name.includes(".")?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(G,{}),(0,O.jsxs)(ut,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:`*.${k}`}),(0,O.jsxs)(Oe,{type:"submit",disabled:l!=="idle",onClick:()=>{p.current=!0},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),(0,O.jsxs)("span",{children:["Hide .",k," files"]})]})]})]}):null,(0,O.jsx)(G,{}),(0,O.jsxs)(ut,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"open",value:r.path}),(0,O.jsxs)(Oe,{disabled:l!=="idle",children:[(0,O.jsx)(As,{display:"inline-block",height:"1rem"}),"Open file"]})]})]}):(0,O.jsxs)(ut,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:r.path}),(0,O.jsxs)(Oe,{type:"submit",disabled:l!=="idle",onClick:()=>{p.current=!0,c(uv(f))},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),"Hide this folder"]})]})]})}function fv(e,t){if(t===null)return null;let r=e,o=t.path.split("/");for(let i=0;i<o.length;i++)for(let l of r.children){if(l.hash===t.hash)return l;if(l.type==="tree"){let c=l.name.split("/");if(c[0]===o[i]){r=l,i+=c.length-1;break}}}return r}function dv(e){let t=e.clickedTree.children.filter(o=>o.type==="tree").length,r=e.clickedTree.children.length-t;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{grow:!0,children:"Files"}),(0,O.jsx)(tt,{children:r}),(0,O.jsx)(ft,{grow:!0,children:"Folders"}),(0,O.jsx)(tt,{children:t})]})}function pv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{grow:!0,children:"Commits"}),(0,O.jsx)(tt,{children:e.clickedBlob.noCommits>0?e.clickedBlob.noCommits:0})]})}function hv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{grow:!0,children:"Last changed"}),(0,O.jsx)(tt,{children:Gs(e.clickedBlob.lastChangeEpoch)})]})}function mv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ft,{children:"Located at"}),(0,O.jsx)(tt,{title:e.path,children:e.path})]})}var gv=N.span`
|
|
29
|
+
`;function av(e){return e.show?(0,ve.jsx)(iv,{children:(0,ve.jsxs)(gi,{onClick:e.toggle,children:[e.items.slice(0,14).map(([t,r],o)=>{let i=o===0?0:-10;return(0,ve.jsx)(ot,{dotColor:r.color,style:{marginLeft:i}},`dot${t}`)}),(0,ve.jsx)(G,{horizontal:!0}),(0,ve.jsxs)(Ot,{children:[e.items.length," more"]})]})}):null}function Cu(e,t){var l;let r=e.name.substring(e.name.lastIndexOf(".")+1),o=yu(r),i=t.legend;o?(i.has(r)?(l=i.get(r))==null||l.add(1):i.set(r,new Ze(o,1)),t.colormap.set(e.path,o)):(i.has("Other")||i.set("Other",new Ze("grey",0)),t.colormap.set(e.path,"grey"))}function Mu(e,t,r){var p,g;let o="red",i="hsl(210, 38%, 85%)",l="teal",c=(g=(p=e.unionedAuthors)==null?void 0:p[r])!=null?g:{},f=0;for(let[,k]of Object.entries(c))f+=k;let h=t.legend;if(f===0){h.set("No authors",new Ze(l,0)),t.colormap.set(e.path,l);return}if(!c)throw Error("No unioned authors found");switch(Object.keys(c).length){case 1:h.set("Single author",new Ze(o,2)),t.colormap.set(e.path,o);return;default:h.set("Multiple authors",new Ze(i,1)),t.colormap.set(e.path,i);return}}var Qo=class{constructor(t,r){this.min_lightness=50;this.max_lightness=95;this.translater=new Vo(t,r,this.min_lightness,this.max_lightness)}getColor(t){return`hsl(20,100%,${this.translater.inverseTranslate(t)}%)`}setColor(t,r){r.colormap.set(t.path,this.getColor(t.noCommits))}};function Au(e){return[{epoch:0,text:Hs(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 Jo(e,t,r){let o=t-r,i=0;for(;i<e.length-1;){if(o<e[i+1].epoch)return i;i++}return i}function Tu(e,t,r,o){var p,g,k,y;let i=(p=t.unionedAuthors)==null?void 0:p[o],l;try{if(!i||(l=Object.entries(i).sort(([v,S],[M,P])=>{if(S===0||P===0||!v||!M)throw Error;return S<P?1:S>P?-1:0}),!l[0]))throw Error}catch{return}let[c]=l[0],f=r.legend,h=(g=e.get(c))!=null?g:"grey";if(r.colormap.set(t.path,h),(k=t.dominantAuthor)==null||k.set(o,l[0]),f.has(c)){(y=f.get(c))==null||y.add(1);return}f.set(c,new Ze(h,1))}var Ko=class{constructor(t){this.min_lightness=50;this.max_lighness=90;this.step=t<=1?1:this.step=(this.max_lighness-this.min_lightness)/Math.floor(Math.log2(t))}getColor(t){let r=Math.floor(Math.log2(t));return`hsl(0,75%,${this.min_lightness+r*this.step}%)`}setColor(t,r){var o,i;r.colormap.set(t.path,this.getColor(Object.entries((i=(o=t.unionedAuthors)==null?void 0:o.HISTORICAL)!=null?i:[]).length))}};var Ou={HISTORICAL:"Complete history",BLAME:"Newest version"},pr={FILE_EXTENSION:"File extension",MOST_COMMITS:"Number of commits",LAST_CHANGED:"Last changed",SINGLE_AUTHOR:"Single author",TOP_CONTRIBUTOR:"Top contributor",TRUCK_FACTOR:"Truck factor"};function Eu(e){let t=lv(e.authors);return[{HISTORICAL:_u(e.commit.tree,Lu(e,"HISTORICAL",t)),BLAME:_u(e.commit.tree,Lu(e,"BLAME",t))},t]}function Ru(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 $u(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 lv(e){let t={};for(let l of Object.keys(e))t[l]=0;let r=(0,Pu.default)({count:e.length}),o=0,i=new Map;for(let l of e){let c=r[o++].rgb(!0),f=`rgb(${c[0]},${c[1]},${c[2]})`;i.set(l,f)}return i}function ju(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,l]=ju(o);l>r&&(r=l),i<t&&(t=i)}}),[t,r]}function Lu(e,t,r){let o=e.commit,[i,l]=ju(o.tree),c=new Qo(i,l),f=new Ko(e.authorsUnion.length);return[["FILE_EXTENSION",(h,p)=>{p.legend||(p.legend=new Map),Cu(h,p)}],["SINGLE_AUTHOR",(h,p)=>{p.legend||(p.legend=new Map),Mu(h,p,t)}],["MOST_COMMITS",(h,p)=>{p.legend||(p.legend=[`${i}`,`${l}`,void 0,void 0,c.getColor(i),c.getColor(l)]),c.setColor(h,p)}],["LAST_CHANGED",(h,p)=>{var y,v;let g=e.commit.newestLatestChangeEpoch,k=Au(g);p.legend||(p.legend=[Jo(k,g,e.commit.oldestLatestChangeEpoch)+1,S=>k[S].text,S=>k[S].color,S=>{var M,P;return(P=Jo(k,g,(M=S.lastChangeEpoch)!=null?M:0))!=null?P:-1}]),p.colormap.set(h.path,k[(v=Jo(k,g,(y=h.lastChangeEpoch)!=null?y:0))!=null?v:-1].color)}],["TOP_CONTRIBUTOR",(h,p)=>{h.dominantAuthor||(h.dominantAuthor=new Map),p.legend||(p.legend=new Map),Tu(r,h,p,t)}],["TRUCK_FACTOR",(h,p)=>{p.legend||(p.legend=[Math.floor(Math.log2(e.authorsUnion.length))+1,g=>`${Math.pow(2,g)}`,g=>`hsl(0,75%,${50+g*(40/(Math.floor(Math.log2(e.authorsUnion.length))+1))}%)`,g=>{var k,y;return Math.floor(Math.log2(Object.entries((y=(k=g.unionedAuthors)==null?void 0:k.HISTORICAL)!=null?y:[]).length))}]),f.setColor(h,p)}]]}function _u(e,t){let r=new Map;return Du(e,t,r),r}function Du(e,t,r){var o;for(let i of e.children)switch(i.type){case"tree":Du(i,t,r);break;case"blob":for(let[l,c]of t)r.has(l)||r.set(l,{legend:void 0,colormap:new Map}),c(i,(o=r.get(l))!=null?o:{legend:void 0,colormap:new Map});break}}var Di={BUBBLE_CHART:"Bubble chart",TREE_MAP:"Tree map"},Fi=(0,Yo.createContext)(void 0);function _e(){let e=(0,Yo.useContext)(Fi);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e}function Et(){return{metricType:Object.keys(pr)[0],chartType:Object.keys(Di)[0],authorshipType:Object.keys(Ou)[0],animationsEnabled:!0,setChartType:()=>{throw new Error("No chartTypeSetter provided")},setMetricType:()=>{throw new Error("No metricTypeSetter provided")},setAuthorshipType:()=>{throw new Error("No AuthorshipTypeSetter provided")},setAnimationsEnabled:()=>{throw new Error("No animationsEnabledSetter provided")}}}var qe=R(X());function Zo(e){let[,t]=Ye(),{metricType:r}=_e();return e.show?(0,qe.jsx)(qe.Fragment,{children:e.items.map(o=>{var f;let[i,l]=o,c=Math.round(l*100);return(0,qe.jsxs)(Fu.Fragment,{children:[(0,qe.jsxs)(ht,{title:i,grow:!0,children:[r=="TOP_CONTRIBUTOR"?(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)(ot,{dotColor:(f=t.get(i))!=null?f:"white"}),(0,qe.jsx)(G,{horizontal:!0})]}):null,(0,qe.jsx)(Ot,{style:{opacity:.7},children:i})]}),(0,qe.jsxs)(nt,{children:[c===0?"<1":c,"%"]})]},i+l)})}):null}var cv=R(X()),sv=N.span`
|
|
30
|
+
white-space: pre;
|
|
31
|
+
font-size: 0.7em;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
opacity: 0.7;
|
|
34
|
+
&:hover {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
`;function Bu(e){return e.show?(0,cv.jsxs)(sv,{onClick:e.toggle,children:["+ ",e.items.length," more"]}):null}var en=R(ee()),Bi=(0,en.createContext)(null);function it(){let e=(0,en.useContext)(Bi);if(!e)throw new Error("useClickedObject must be used within a ClickedObjectProvider");return e}var tn=R(ee()),Ii=(0,tn.createContext)(void 0);function Re(){let e=(0,tn.useContext)(Ii);if(!e)throw new Error("useData must be used within a DataContext");return e}var rn=R(ee()),Ni=(0,rn.createContext)(void 0);function at(){let e=(0,rn.useContext)(Ni);if(!e)throw new Error("useSearch must be used within a PathProvider");return e}var Gu={},Iu=new WeakMap,Nu={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"}]},Gi=class{constructor(t,r){r=Object.assign({units:"metric",precision:1,locale:void 0},Gu,r),Iu.set(this,r),Object.assign(Nu,r.customUnits);let o=t<0?"-":"";t=Math.abs(t);let i=Nu[r.units];if(i){let l=i.find(c=>t>=c.from&&t<c.to);if(l){let c=new Intl.NumberFormat(r.locale,{style:"decimal",minimumFractionDigits:r.precision,maximumFractionDigits:r.precision}),f=l.from===0?o+t:o+c.format(t/l.from);this.value=f,this.unit=l.unit,this.long=l.long}else this.value=o+t,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${r.units}`)}toString(){let t=Iu.get(this);return t.toStringFn?t.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function Hu(e,t){return new Gi(e,t)}Hu.defaultOptions=function(e){Gu=e};var zu=Hu;vs();var Hr=R(ee());var on=Hr.forwardRef(function(e,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return Hr.createElement(Mo,So({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),Hr.createElement("path",{fillRule:"evenodd",d:"M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1-1.06 1.06L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0z"}))});on.displayName="ArrowUp";vs();var zr=R(ee());var hr=zr.forwardRef(function(e,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return zr.createElement(Mo,So({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),zr.createElement("path",{fillRule:"evenodd",d:"M.143 2.31a.75.75 0 0 1 1.047-.167l14.5 10.5a.75.75 0 1 1-.88 1.214l-2.248-1.628C11.346 13.19 9.792 14 8 14c-1.981 0-3.67-.992-4.933-2.078C1.797 10.832.88 9.577.43 8.9a1.618 1.618 0 0 1 0-1.797c.353-.533.995-1.42 1.868-2.305L.31 3.357A.75.75 0 0 1 .143 2.31zm3.386 3.378a14.21 14.21 0 0 0-1.85 2.244.12.12 0 0 0-.022.068c0 .021.006.045.022.068.412.621 1.242 1.75 2.366 2.717C5.175 11.758 6.527 12.5 8 12.5c1.195 0 2.31-.488 3.29-1.191L9.063 9.695A2 2 0 0 1 6.058 7.52l-2.53-1.832zM8 3.5c-.516 0-1.017.09-1.499.251a.75.75 0 1 1-.473-1.423A6.23 6.23 0 0 1 8 2c1.981 0 3.67.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.619 1.619 0 0 1 0 1.798c-.11.166-.248.365-.41.587a.75.75 0 1 1-1.21-.887c.148-.201.272-.382.371-.53a.119.119 0 0 0 0-.137c-.412-.621-1.242-1.75-2.366-2.717C10.825 4.242 9.473 3.5 8 3.5z"}))});hr.displayName="EyeClosed";var O=R(X());function uv(e){let t=e.lastIndexOf("/"),r=e.lastIndexOf("\\");return t!==-1?e.slice(0,t):r!==-1?e.slice(0,r):e}function Wu(e){var y;let{setClickedObject:t,clickedObject:r}=it(),o=fr(),{authorshipType:i}=_e(),{state:l}=_t(),{setPath:c,path:f}=at(),{analyzerData:h}=Re(),p=(0,Qt.useRef)(!1);if((0,Qt.useEffect)(()=>{p.current&&(t(null),p.current=!1)},[r,t,l]),(0,Qt.useEffect)(()=>{t(v=>fv(h.commit.tree,v))},[h,t]),!r)return null;let g=r.type==="blob",k=Vs(r.name.split("."));return(0,O.jsxs)(xe,{children:[(0,O.jsx)(Po,{onClick:()=>t(null)}),(0,O.jsx)(Lo,{title:r.name,children:r.name}),(0,O.jsx)(G,{xl:!0}),(0,O.jsxs)(xv,{children:[g?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(bv,{size:r.sizeInBytes,isBinary:r.isBinary}),(0,O.jsx)(pv,{clickedBlob:r}),(0,O.jsx)(hv,{clickedBlob:r})]}):(0,O.jsx)(dv,{clickedTree:r}),(0,O.jsx)(mv,{path:r.path})]}),(0,O.jsx)(G,{}),g?(0,O.jsx)(qu,{authors:(y=r.unionedAuthors)==null?void 0:y[i]}):(0,O.jsx)(qu,{authors:kv(r,i)}),(0,O.jsx)(G,{xl:!0}),(0,O.jsxs)(Ee,{onClick:e.showUnionAuthorsModal,children:[(0,O.jsx)(To,{display:"inline-block",height:"1rem"}),"Merge duplicate users"]}),(0,O.jsx)(G,{}),g?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(pt,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:r.path}),(0,O.jsxs)(Ee,{type:"submit",disabled:l!=="idle",onClick:()=>{p.current=!0},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),"Hide this file"]})]}),r.name.includes(".")?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(G,{}),(0,O.jsxs)(pt,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:`*.${k}`}),(0,O.jsxs)(Ee,{type:"submit",disabled:l!=="idle",onClick:()=>{p.current=!0},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),(0,O.jsxs)("span",{children:["Hide .",k," files"]})]})]})]}):null,(0,O.jsx)(G,{}),(0,O.jsxs)(pt,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"open",value:r.path}),(0,O.jsxs)(Ee,{disabled:l!=="idle",children:[(0,O.jsx)(As,{display:"inline-block",height:"1rem"}),"Open file"]})]})]}):(0,O.jsxs)(pt,{method:"post",action:o.pathname,children:[(0,O.jsx)("input",{type:"hidden",name:"ignore",value:r.path}),(0,O.jsxs)(Ee,{type:"submit",disabled:l!=="idle",onClick:()=>{p.current=!0,c(uv(f))},children:[(0,O.jsx)(hr,{display:"inline-block",height:"1rem"}),"Hide this folder"]})]})]})}function fv(e,t){if(t===null)return null;let r=e,o=t.path.split("/");for(let i=0;i<o.length;i++)for(let l of r.children){if(l.hash===t.hash)return l;if(l.type==="tree"){let c=l.name.split("/");if(c[0]===o[i]){r=l,i+=c.length-1;break}}}return r}function dv(e){let t=e.clickedTree.children.filter(o=>o.type==="tree").length,r=e.clickedTree.children.length-t;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ht,{grow:!0,children:"Files"}),(0,O.jsx)(nt,{children:r}),(0,O.jsx)(ht,{grow:!0,children:"Folders"}),(0,O.jsx)(nt,{children:t})]})}function pv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ht,{grow:!0,children:"Commits"}),(0,O.jsx)(nt,{children:e.clickedBlob.noCommits>0?e.clickedBlob.noCommits:0})]})}function hv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ht,{grow:!0,children:"Last changed"}),(0,O.jsx)(nt,{children:Gs(e.clickedBlob.lastChangeEpoch)})]})}function mv(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ht,{children:"Located at"}),(0,O.jsx)(nt,{title:e.path,children:e.path})]})}var gv=N.span`
|
|
38
38
|
opacity: 0.5;
|
|
39
|
-
`;function bv(e){var r;let t=zu((r=e.size)!=null?r:0);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(
|
|
39
|
+
`;function bv(e){var r;let t=zu((r=e.size)!=null?r:0);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ht,{grow:!0,children:"Size"}),(0,O.jsxs)(nt,{children:[t.value," ",t.unit," ",(0,O.jsx)(gv,{children:e.isBinary?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("br",{}),"(binary file)"]}):null})]})]})}var vv=N.div`
|
|
40
40
|
display: flex;
|
|
41
41
|
flex-direction: row;
|
|
42
42
|
justify-content: space-between;
|
|
43
|
-
`,
|
|
43
|
+
`,nn=2;function qu(e){let[t,r]=(0,Qt.useState)(!0),o=Object.entries(yv(e.authors)).sort((i,l)=>i[1]<l[1]?1:-1);return o.length<=nn+1?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Vu,{children:"Author distribution"}),(0,O.jsx)(G,{}),(0,O.jsx)(Uu,{children:o.length>0&&!wv(e.authors)?(0,O.jsx)(Zo,{show:!0,items:o}):(0,O.jsx)("p",{children:"No authors found"})})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(vv,{children:[(0,O.jsx)(Vu,{children:"Author distribution"}),(0,O.jsx)(xu,{relative:!0,collapse:t,toggle:()=>r(!t)})]}),(0,O.jsx)(G,{xs:!0}),(0,O.jsxs)(Uu,{children:[(0,O.jsx)(Zo,{show:!0,items:o.slice(0,nn)}),(0,O.jsx)(Zo,{show:!t,items:o.slice(nn)}),(0,O.jsx)(G,{}),(0,O.jsx)(Bu,{show:t,items:o.slice(nn),toggle:()=>r(!t)})]})]})}function yv(e){if(!e)throw Error("unionedAuthors is undefined");let t=Object.values(e).reduce((o,i)=>o+i,0);return Object.entries(e).reduce((o,[i,l])=>{let c=l/t;return{...o,[i]:c}},{})}var Vu=N.h3`
|
|
44
44
|
font-size: calc(var(--unit) * 2);
|
|
45
45
|
padding-top: calc(var(--unit));
|
|
46
46
|
padding-bottom: calc(var(--unit) * 0.5);
|
|
@@ -49,14 +49,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
49
49
|
display: grid;
|
|
50
50
|
grid-template-columns: 1fr auto;
|
|
51
51
|
gap: calc(0.5 * var(--unit)) calc(var(--unit) * 3);
|
|
52
|
-
& > ${
|
|
52
|
+
& > ${nt} {
|
|
53
53
|
text-align: right;
|
|
54
54
|
}
|
|
55
55
|
`,xv=N.div`
|
|
56
56
|
display: grid;
|
|
57
57
|
grid-template-columns: auto 1fr;
|
|
58
58
|
gap: var(--unit) calc(var(--unit) * 3);
|
|
59
|
-
`;function wv(e){if(!e)return!0;let t=Object.entries(e);for(let[,r]of t)if(r>0)return!1;return!0}function kv(e,t){let r={};o(e);function o(i){var l,c;for(let f of i.children)if(f.type==="blob"){let h=(l=f.unionedAuthors)==null?void 0:l[t];if(!h)throw Error("No unioned authors");for(let[p,g]of Object.entries(h))r[p]=((c=r[p])!=null?c:0)+g}else f.type==="tree"&&o(f)}return r}var qr=R(ee());var ge=R(X()),Sv="Git Truck",Cv="Analyzing | Git Truck";function Xu(){var h,p;let{analyzerData:e,repo:t}=
|
|
59
|
+
`;function wv(e){if(!e)return!0;let t=Object.entries(e);for(let[,r]of t)if(r>0)return!1;return!0}function kv(e,t){let r={};o(e);function o(i){var l,c;for(let f of i.children)if(f.type==="blob"){let h=(l=f.unionedAuthors)==null?void 0:l[t];if(!h)throw Error("No unioned authors");for(let[p,g]of Object.entries(h))r[p]=((c=r[p])!=null?c:0)+g}else f.type==="tree"&&o(f)}return r}var qr=R(ee());var ge=R(X()),Sv="Git Truck",Cv="Analyzing | Git Truck";function Xu(){var h,p;let{analyzerData:e,repo:t}=Re(),r=_t(),o=fr(),i=ys(),[l,c]=(0,qr.useState)(!1);(0,qr.useEffect)(()=>{document.title=l?Cv:Sv},[l]);let f=g=>{c(!0),i(["",t.name,g].join("/"))};return(0,qr.useEffect)(()=>{r.state==="idle"&&c(!1)},[r.state]),(0,ge.jsxs)(xe,{children:[(0,ge.jsx)(Ns,{children:(0,ge.jsxs)(Av,{to:"..",title:"See all repositories",children:[(0,ge.jsx)(Ao,{display:"inline-block",height:"1rem"}),(0,ge.jsx)(Mv,{children:"See more repositories"})]})}),(0,ge.jsx)(G,{}),(0,ge.jsx)(Lo,{children:t.name}),(0,ge.jsx)(G,{}),(0,ge.jsx)(Xs,{disabled:l,onChange:g=>f(g.target.value),defaultValue:e.branch,headGroups:t.refs,analyzedHeads:t.analyzedHeads},t.currentHead),(0,ge.jsx)(G,{}),(0,ge.jsx)("strong",{children:"Analyzed: "}),(0,ge.jsx)("span",{children:zs(e.lastRunEpoch)}),(0,ge.jsx)(G,{}),(0,ge.jsx)("strong",{children:"As of commit: "}),(0,ge.jsx)("span",{title:(h=e.commit.message)!=null?h:"No commit message",children:e.commit.hash.slice(0,7)}),(0,ge.jsx)(G,{}),(0,ge.jsx)("strong",{children:"Files analyzed: "}),(0,ge.jsx)("span",{children:(p=e.commit.fileCount)!=null?p:0}),(0,ge.jsx)(G,{xl:!0}),(0,ge.jsxs)(pt,{method:"post",action:o.pathname,onSubmit:()=>{c(!0)},children:[(0,ge.jsx)("input",{type:"hidden",name:"refresh",value:"true"}),(0,ge.jsxs)(Ee,{disabled:r.state!=="idle",children:[(0,ge.jsx)(Ls,{display:"inline-block",height:"1rem"}),l?"Analyzing...":"Reanalyze"]})]})]})}var Mv=N.p`
|
|
60
60
|
margin-left: var(--unit);
|
|
61
61
|
`,Av=N(Br)`
|
|
62
62
|
display: inline-flex;
|
|
@@ -74,9 +74,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
74
74
|
gap: var(--unit);
|
|
75
75
|
margin-top: calc(var(--unit) * 0.5);
|
|
76
76
|
align-items: center;
|
|
77
|
-
`,
|
|
77
|
+
`,Lv=N(pt)`
|
|
78
78
|
width: calc(2 * var(--unit));
|
|
79
|
-
`,
|
|
79
|
+
`,_v=N(_o)`
|
|
80
80
|
& > #eye {
|
|
81
81
|
display: none;
|
|
82
82
|
}
|
|
@@ -89,24 +89,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
89
89
|
&:hover > #eyeslash {
|
|
90
90
|
display: none;
|
|
91
91
|
}
|
|
92
|
-
`;function Pv(e){if(!e.includes("/"))return e;let t=e.split("/");return t[t.length-1]}function Qu(){let e=
|
|
92
|
+
`;function Pv(e){if(!e.includes("/"))return e;let t=e.split("/");return t[t.length-1]}function Qu(){let e=fr(),[t,r]=Wt(!1),o=_t(),{analyzerData:i}=Re();return(0,Ge.jsxs)(xe,{children:[(0,Ge.jsxs)(Pt,{children:["Hidden files (",i.hiddenFiles.length,")"]}),(0,Ge.jsx)(G,{}),(0,Ge.jsx)(Wo,{collapse:t,toggle:()=>r(!t)}),t?null:(0,Ge.jsx)("div",{children:i.hiddenFiles.map(l=>(0,Ge.jsxs)(Tv,{title:l,children:[(0,Ge.jsxs)(Lv,{method:"post",action:e.pathname,children:[(0,Ge.jsx)("input",{type:"hidden",name:"unignore",value:l}),(0,Ge.jsxs)(_v,{title:"Show file",disabled:o.state!=="idle",children:[(0,Ge.jsx)(Os,{display:"inline-block",height:"1rem",id:"eyeslash"}),(0,Ge.jsx)(Ps,{display:"inline-block",height:"1rem",id:"eye"})]})]}),(0,Ge.jsx)($s,{children:Pv(l)})]},l))})]})}var mr="red";var ye=R(X());function Ju({metricCache:e}){let[t,r,o,i]=e.legend,l=100/t,c=!1,f=0,{clickedObject:h}=it();return(h==null?void 0:h.type)=="blob"&&(c=!0,f=l/2+l*i(h)),(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)("div",{style:{display:"flex",flexDirection:"row"},children:[...Array(t).fill(1)].map((p,g)=>t>=4?(0,ye.jsx)(Ev,{width:l,color:o(g),text:r(g),top:g%2===0},`legend-${g}`):(0,ye.jsx)(Rv,{width:l,color:o(g),text:r(g)},`legend-${g}`))}),(0,ye.jsx)(Ov,{visible:c,position:f,height:t>=4?50:10,children:"\u25B2"})]})}var Ov=N.i`
|
|
93
93
|
display: ${({visible:e})=>e?"initital":"none"};
|
|
94
94
|
transition: 500ms;
|
|
95
95
|
position: relative;
|
|
96
96
|
bottom: ${({height:e})=>`${e}px`};
|
|
97
97
|
left: calc(${({position:e})=>e}% - ${7}px);
|
|
98
98
|
filter: drop-shadow(0px -2px 0px #fff);
|
|
99
|
-
`;function Ev({width:e,color:t,text:r,top:o}){return o?(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"40px"}})]}):(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"32px"}}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-7px"},children:"\\"}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-4px"},children:r})]})}function Rv({width:e,color:t,text:r}){return(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}})]})}var
|
|
99
|
+
`;function Ev({width:e,color:t,text:r,top:o}){return o?(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"40px"}})]}):(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"32px"}}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-7px"},children:"\\"}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-4px"},children:r})]})}function Rv({width:e,color:t,text:r}){return(0,ye.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,ye.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,ye.jsx)("div",{style:{backgroundColor:t,height:"20px"}})]})}var mt=R(X());function Ku({metricCache:e}){var g,k;let[t,r,o,i,l,c]=e.legend,{clickedObject:f}=it(),h=Hi((k=e.colormap.get((g=f==null?void 0:f.path)!=null?g:""))!=null?k:""),p=-1;if(h!==-1){let y=Hi(l),v=Hi(c);p=(h-y)/(v-y)}return(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsxs)(Bs,{children:[(0,mt.jsx)(Ot,{title:o,children:t}),(0,mt.jsx)(Ot,{title:i,children:r})]}),(0,mt.jsx)(Fs,{min:l,max:c}),(0,mt.jsx)($v,{visible:p!==-1,position:p,children:"\u25B2"})]})}function Hi(e){var i,l;let r=(i=/%,((?:\d|\.)+?)%\)/gm.exec(e))==null?void 0:i.entries();return r==null||r.next(),parseFloat((l=r==null?void 0:r.next().value[1])!=null?l:"-1")}var $v=N.i`
|
|
100
100
|
display: ${({visible:e})=>e?"initital":"none"};
|
|
101
101
|
transition: 500ms;
|
|
102
102
|
position: relative;
|
|
103
103
|
bottom: 11px;
|
|
104
104
|
left: calc(${({position:e})=>e*100}% - ${7}px);
|
|
105
105
|
filter: drop-shadow(0px -2px 0px #fff);
|
|
106
|
-
`;var
|
|
106
|
+
`;var Pe=R(X()),jv=N(xe)`
|
|
107
107
|
position: sticky;
|
|
108
108
|
bottom: 0;
|
|
109
|
-
`;function Yu(e){var c;let{metricType:t,authorshipType:r}=$e(),[o]=dt(),i=(c=o[r].get(t))!=null?c:void 0;if(i===void 0)return null;let l=(0,Le.jsx)(Le.Fragment,{});switch(Du(t)){case"POINT":l=(0,Le.jsx)(Mu,{metricCache:i});break;case"GRADIENT":l=(0,Le.jsx)(Ku,{metricCache:i});break;case"SEGMENTS":l=(0,Le.jsx)(Ju,{metricCache:i});break}return(0,Le.jsxs)(jv,{children:[(0,Le.jsx)(_t,{children:pr[t]}),(0,Le.jsx)(G,{}),(0,Le.jsx)(qt,{children:ju(t,r)}),(0,Le.jsx)(G,{lg:!0}),t==="TOP_CONTRIBUTOR"||t==="SINGLE_AUTHOR"?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)(Oe,{onClick:e.showUnionAuthorsModal,children:[(0,Le.jsx)(To,{display:"inline-block",height:"1rem"}),"Merge duplicate users"]}),(0,Le.jsx)(G,{lg:!0})]}):null,l]})}var qi=Ur(),q=e=>Vr(e,qi),Vi=Ur();q.write=e=>Vr(e,Vi);var an=Ur();q.onStart=e=>Vr(e,an);var Ui=Ur();q.onFrame=e=>Vr(e,Ui);var Wi=Ur();q.onFinish=e=>Vr(e,Wi);var br=[];q.setTimeout=(e,t)=>{let r=q.now()+t,o=()=>{let l=br.findIndex(c=>c.cancel==o);~l&&br.splice(l,1),Et-=~l?1:0},i={time:r,handler:e,cancel:o};return br.splice(Zu(r),0,i),Et+=1,ef(),i};var Zu=e=>~(~br.findIndex(t=>t.time>e)||~br.length);q.cancel=e=>{an.delete(e),Ui.delete(e),Wi.delete(e),qi.delete(e),Vi.delete(e)};q.sync=e=>{zi=!0,q.batchedUpdates(e),zi=!1};q.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function o(...i){t=i,q.onStart(r)}return o.handler=e,o.cancel=()=>{an.delete(r),t=null},o};var Xi=typeof window<"u"?window.requestAnimationFrame:()=>{};q.use=e=>Xi=e;q.now=typeof performance<"u"?()=>performance.now():Date.now;q.batchedUpdates=e=>e();q.catch=console.error;q.frameLoop="always";q.advance=()=>{q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):rf()};var Ot=-1,Et=0,zi=!1;function Vr(e,t){zi?(t.delete(e),e(0)):(t.add(e),ef())}function ef(){Ot<0&&(Ot=0,q.frameLoop!=="demand"&&Xi(tf))}function Dv(){Ot=-1}function tf(){~Ot&&(Xi(tf),q.batchedUpdates(rf))}function rf(){let e=Ot;Ot=q.now();let t=Zu(Ot);if(t&&(of(br.splice(0,t),r=>r.handler()),Et-=t),!Et){Dv();return}an.flush(),qi.flush(e?Math.min(64,Ot-e):16.667),Ui.flush(),Vi.flush(),Wi.flush()}function Ur(){let e=new Set,t=e;return{add(r){Et+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return Et-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,Et-=t.size,of(t,o=>o(r)&&e.add(o)),Et+=e.size,t=e)}}}function of(e,t){e.forEach(r=>{try{t(r)}catch(o){q.catch(o)}})}var Be=R(ee());function fn(){}var uf=(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 nt(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 He(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 je=e=>E.und(e)?[]:E.arr(e)?e:[e];function wr(e,t){if(e.size){let r=Array.from(e);e.clear(),Y(r,t)}}var kr=(e,...t)=>wr(e,r=>r(...t)),ea=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ta,ff,Rt=null,df=!1,ra=fn,Fv=e=>{e.to&&(ff=e.to),e.now&&(q.now=e.now),e.colors!==void 0&&(Rt=e.colors),e.skipAnimation!=null&&(df=e.skipAnimation),e.createStringInterpolator&&(ta=e.createStringInterpolator),e.requestAnimationFrame&&q.use(e.requestAnimationFrame),e.batchedUpdates&&(q.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ra=e.willAdvance),e.frameLoop&&(q.frameLoop=e.frameLoop)},ze=Object.freeze({__proto__:null,get createStringInterpolator(){return ta},get to(){return ff},get colors(){return Rt},get skipAnimation(){return df},get willAdvance(){return ra},assign:Fv}),Wr=new Set,qe=[],Qi=[],cn=0,Sr={get idle(){return!Wr.size&&!qe.length},start(e){cn>e.priority?(Wr.add(e),q.onStart(Bv)):(pf(e),q(Yi))},advance:Yi,sort(e){if(cn)q.onFrame(()=>Sr.sort(e));else{let t=qe.indexOf(e);~t&&(qe.splice(t,1),hf(e))}},clear(){qe=[],Wr.clear()}};function Bv(){Wr.forEach(pf),Wr.clear(),q(Yi)}function pf(e){qe.includes(e)||hf(e)}function hf(e){qe.splice(Iv(qe,t=>t.priority>e.priority),0,e)}function Yi(e){let t=Qi;for(let r=0;r<qe.length;r++){let o=qe[r];cn=o.priority,o.idle||(ra(o),o.advance(e),o.idle||t.push(o))}return cn=0,Qi=qe,Qi.length=0,qe=t,qe.length>0}function Iv(e,t){let r=e.findIndex(t);return r<0?e.length:r}var mf={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ye="[-+]?\\d*\\.?\\d+",un=Ye+"%";function dn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Nv=new RegExp("rgb"+dn(Ye,Ye,Ye)),Gv=new RegExp("rgba"+dn(Ye,Ye,Ye,Ye)),Hv=new RegExp("hsl"+dn(Ye,un,un)),zv=new RegExp("hsla"+dn(Ye,un,un,Ye)),qv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Uv=/^#([0-9a-fA-F]{6})$/,Wv=/^#([0-9a-fA-F]{8})$/;function Xv(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Uv.exec(e))?parseInt(t[1]+"ff",16)>>>0:Rt&&Rt[e]!==void 0?Rt[e]:(t=Nv.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|255)>>>0:(t=Gv.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|lf(t[4]))>>>0:(t=qv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Wv.exec(e))?parseInt(t[1],16)>>>0:(t=Vv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Hv.exec(e))?(nf(af(t[1]),ln(t[2]),ln(t[3]))|255)>>>0:(t=zv.exec(e))?(nf(af(t[1]),ln(t[2]),ln(t[3]))|lf(t[4]))>>>0:null}function Ji(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 nf(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,i=2*r-o,l=Ji(i,o,e+1/3),c=Ji(i,o,e),f=Ji(i,o,e-1/3);return Math.round(l*255)<<24|Math.round(c*255)<<16|Math.round(f*255)<<8}function vr(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function af(e){return(parseFloat(e)%360+360)%360/360}function lf(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ln(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function sf(e){let t=Xv(e);if(t===null)return e;t=t||0;let r=(t&4278190080)>>>24,o=(t&16711680)>>>16,i=(t&65280)>>>8,l=(t&255)/255;return`rgba(${r}, ${o}, ${i}, ${l})`}var $t=(e,t,r)=>{if(E.fun(e))return e;if(E.arr(e))return $t({range:e,output:t,extrapolate:r});if(E.str(e.output[0]))return ta(e);let o=e,i=o.output,l=o.range||[0,1],c=o.extrapolateLeft||o.extrapolate||"extend",f=o.extrapolateRight||o.extrapolate||"extend",h=o.easing||(p=>p);return p=>{let g=Jv(p,l);return Qv(p,l[g],l[g+1],i[g],i[g+1],h,c,f,o.map)}};function Qv(e,t,r,o,i,l,c,f,h){let p=h?h(e):e;if(p<t){if(c==="identity")return p;c==="clamp"&&(p=t)}if(p>r){if(f==="identity")return p;f==="clamp"&&(p=r)}return o===i?o:t===r?e<=t?o:i:(t===-1/0?p=-p:r===1/0?p=p-t:p=(p-t)/(r-t),p=l(p),o===-1/0?p=-p:i===1/0?p=p+o:p=p*(i-o)+o,p)}function Jv(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Zi.apply(this,arguments)}var yr=Symbol.for("FluidValue.get"),Qt=Symbol.for("FluidValue.observers"),De=e=>Boolean(e&&e[yr]),Pe=e=>e&&e[yr]?e[yr]():e,oa=e=>e[Qt]||null;function Kv(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Jt(e,t){let r=e[Qt];r&&r.forEach(o=>{Kv(o,t)})}var xr=class{constructor(t){if(this[yr]=void 0,this[Qt]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");Yv(this,t)}},Yv=(e,t)=>gf(e,yr,t);function ht(e,t){if(e[yr]){let r=e[Qt];r||gf(e,Qt,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function jt(e,t){let r=e[Qt];if(r&&r.has(t)){let o=r.size-1;o?r.delete(t):e[Qt]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var gf=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),sn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Zv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,cf=new RegExp(`(${sn.source})(%|[a-z]+)`,"i"),ey=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,pn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,bf=e=>{let[t,r]=ty(e);if(!t||ea())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(r&&r.startsWith("--")){let i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&pn.test(r))return bf(r);if(r)return r}return e},ty=e=>{let t=pn.exec(e);if(!t)return[,];let[,r,o]=t;return[r,o]},Ki,ry=(e,t,r,o,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(o)}, ${i})`,hn=e=>{Ki||(Ki=Rt?new RegExp(`(${Object.keys(Rt).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(l=>Pe(l).replace(pn,bf).replace(Zv,sf).replace(Ki,sf)),r=t.map(l=>l.match(sn).map(Number)),i=r[0].map((l,c)=>r.map(f=>{if(!(c in f))throw Error('The arity of each "output" value must be equal');return f[c]})).map(l=>$t(Zi({},e,{output:l})));return l=>{var c;let f=!cf.test(t[0])&&((c=t.find(p=>cf.test(p)))==null?void 0:c.replace(sn,"")),h=0;return t[0].replace(sn,()=>`${i[h++](l)}${f||""}`).replace(ey,ry)}},na="react-spring: ",vf=e=>{let t=e,r=!1;if(typeof t!="function")throw new TypeError(`${na}once requires a function parameter`);return(...o)=>{r||(t(...o),r=!0)}},oy=vf(console.warn);function yf(){oy(`${na}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var ny=vf(console.warn);function xf(){ny(`${na}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Cr(e){return E.str(e)&&(e[0]=="#"||/\d/.test(e)||!ea()&&pn.test(e)||e in(Rt||{}))}var Mr=ea()?Be.useEffect:Be.useLayoutEffect,iy=()=>{let e=(0,Be.useRef)(!1);return Mr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function mn(){let e=(0,Be.useState)()[1],t=iy();return()=>{t.current&&e(Math.random())}}function wf(e,t){let[r]=(0,Be.useState)(()=>({inputs:t,result:e()})),o=(0,Be.useRef)(),i=o.current,l=i;return l?Boolean(t&&l.inputs&&ay(t,l.inputs))||(l={inputs:t,result:e()}):l=r,(0,Be.useEffect)(()=>{o.current=l,i==r&&(r.inputs=r.result=void 0)},[l]),l.result}function ay(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var gn=e=>(0,Be.useEffect)(e,ly),ly=[];function ia(e){let t=(0,Be.useRef)();return(0,Be.useEffect)(()=>{t.current=e}),t.current}var io=R(ee()),Ve=R(ee());var Mf=R(ee()),mt=R(ee()),Xr=Symbol.for("Animated:node"),sy=e=>!!e&&e[Xr]===e,Ze=e=>e&&e[Xr],xn=(e,t)=>uf(e,Xr,t),Jr=e=>e&&e[Xr]&&e[Xr].getPayload(),bn=class{constructor(){this.payload=void 0,xn(this,this)}getPayload(){return this.payload||[]}},gt=class extends bn{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,E.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new gt(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,r){return 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)}},bt=class extends gt{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=$t({output:[t,t]})}static create(t){return new bt(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(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=$t({output:[this.getValue(),t]})),this._value=0,super.reset()}},vn={dependencies:null},Kt=class extends bn{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let r={};return He(this.source,(o,i)=>{sy(o)?r[i]=o.getValue(t):De(o)?r[i]=Pe(o):t||(r[i]=o)}),r}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Y(this.payload,t=>t.reset())}_makePayload(t){if(t){let r=new Set;return He(t,this._addToPayload,r),Array.from(r)}}_addToPayload(t){vn.dependencies&&De(t)&&vn.dependencies.add(t);let r=Jr(t);r&&Y(r,o=>this.add(o))}},Qr=class extends Kt{constructor(t){super(t)}static create(t){return new Qr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let r=this.getPayload();return t.length==r.length?r.map((o,i)=>o.setValue(t[i])).some(Boolean):(super.setValue(t.map(cy)),!0)}};function cy(e){return(Cr(e)?bt:gt).create(e)}function wn(e){let t=Ze(e);return t?t.constructor:E.arr(e)?Qr:Cr(e)?bt:gt}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},yn.apply(this,arguments)}var kf=(e,t)=>{let r=!E.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,mt.forwardRef)((o,i)=>{let l=(0,mt.useRef)(null),c=r&&(0,mt.useCallback)(S=>{l.current=fy(i,S)},[i]),[f,h]=uy(o,t),p=mn(),g=()=>{let S=l.current;if(r&&!S)return;(S?t.applyAnimatedValues(S,f.getValue(!0)):!1)===!1&&p()},k=new aa(g,h),y=(0,mt.useRef)();Mr(()=>(y.current=k,Y(h,S=>ht(S,k)),()=>{y.current&&(Y(y.current.deps,S=>jt(S,y.current)),q.cancel(y.current.update))})),(0,mt.useEffect)(g,[]),gn(()=>()=>{let S=y.current;Y(S.deps,M=>jt(M,S))});let v=t.getComponentProps(f.getValue());return Mf.createElement(e,yn({},v,{ref:c}))})},aa=class{constructor(t,r){this.update=t,this.deps=r}eventObserved(t){t.type=="change"&&q.write(this.update)}};function uy(e,t){let r=new Set;return vn.dependencies=r,e.style&&(e=yn({},e,{style:t.createAnimatedStyle(e.style)})),e=new Kt(e),vn.dependencies=null,[e,r]}function fy(e,t){return e&&(E.fun(e)?e(t):e.current=t),t}var Sf=Symbol.for("AnimatedComponent"),Af=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new Kt(i),getComponentProps:o=i=>i}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:o},l=c=>{let f=Cf(c)||"Anonymous";return E.str(c)?c=l[c]||(l[c]=kf(c,i)):c=c[Sf]||(c[Sf]=kf(c,i)),c.displayName=`Animated(${f})`,c};return He(e,(c,f)=>{E.arr(e)&&(f=Cf(c)),l[f]=l(c)}),{animated:l}},Cf=e=>E.str(e)?e:e&&E.str(e.displayName)?e.displayName:E.fun(e)&&e.name||null;function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ae.apply(this,arguments)}function Yt(e,...t){return E.fun(e)?e(...t):e}var eo=(e,t)=>e===!0||!!(t&&e&&(E.fun(e)?e(t):je(e).includes(t))),If=(e,t)=>E.obj(e)?t&&e[t]:e,Nf=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,dy=e=>e,xa=(e,t=dy)=>{let r=py;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));let o={};for(let i of r){let l=t(e[i],i);E.und(l)||(o[i]=l)}return o},py=["config","onProps","onStart","onChange","onPause","onResume","onRest"],hy={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 my(e){let t={},r=0;if(He(e,(o,i)=>{hy[i]||(t[i]=o,r++)}),r)return t}function Gf(e){let t=my(e);if(t){let r={to:t};return He(e,(o,i)=>i in t||(r[i]=o)),r}return Ae({},e)}function to(e){return e=Pe(e),E.arr(e)?e.map(to):Cr(e)?ze.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function gy(e){for(let t in e)return!0;return!1}function ca(e){return E.fun(e)||E.arr(e)&&E.obj(e[0])}function by(e,t){var r;(r=e.ref)==null||r.delete(e),t?.delete(e)}function vy(e,t){if(t&&e.ref!==t){var r;(r=e.ref)==null||r.delete(e),t.add(e),e.ref=t}}var yy={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Cn=1.70158,kn=Cn*1.525,Tf=Cn+1,_f=2*Math.PI/3,Lf=2*Math.PI/4.5,Sn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,xy={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=>Tf*e*e*e-Cn*e*e,easeOutBack:e=>1+Tf*Math.pow(e-1,3)+Cn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((kn+1)*2*e-kn)/2:(Math.pow(2*e-2,2)*((kn+1)*(e*2-2)+kn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*_f),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*_f)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Lf))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Lf)/2+1,easeInBounce:e=>1-Sn(1-e),easeOutBounce:Sn,easeInOutBounce:e=>e<.5?(1-Sn(1-2*e))/2:(1+Sn(2*e-1))/2},ua=Ae({},yy.default,{mass:1,damping:1,easing:xy.linear,clamp:!1}),fa=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,ua)}};function wy(e,t,r){r&&(r=Ae({},r),Pf(r,t),t=Ae({},r,t)),Pf(e,t),Object.assign(e,t);for(let c in ua)e[c]==null&&(e[c]=ua[c]);let{mass:o,frequency:i,damping:l}=e;return E.und(i)||(i<.01&&(i=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/i,2)*o,e.friction=4*Math.PI*l*o/i),e}function Pf(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 Of=[],da=class{constructor(){this.changed=!1,this.values=Of,this.toValues=null,this.fromValues=Of,this.to=void 0,this.from=void 0,this.config=new fa,this.immediate=!1}};function Hf(e,{key:t,props:r,defaultProps:o,state:i,actions:l}){return new Promise((c,f)=>{var h;let p,g,k=eo((h=r.cancel)!=null?h:o?.cancel,t);if(k)S();else{E.und(r.pause)||(i.paused=eo(r.pause,t));let M=o?.pause;M!==!0&&(M=i.paused||eo(M,t)),p=Yt(r.delay||0,t),M?(i.resumeQueue.add(v),l.pause()):(l.resume(),v())}function y(){i.resumeQueue.add(v),i.timeouts.delete(g),g.cancel(),p=g.time-q.now()}function v(){p>0&&!ze.skipAnimation?(i.delayed=!0,g=q.setTimeout(S,p),i.pauseQueue.add(y),i.timeouts.add(g)):S()}function S(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(y),i.timeouts.delete(g),e<=(i.cancelId||0)&&(k=!0);try{l.start(Ae({},r,{callId:e,cancel:k}),c)}catch(M){f(M)}}})}var wa=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?Ar(e.get()):t.every(r=>r.noop)?zf(e.get()):et(e.get(),t.every(r=>r.finished)),zf=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),et=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Ar=e=>({value:e,cancelled:!0,finished:!1});function qf(e,t,r,o){let{callId:i,parentId:l,onRest:c}=t,{asyncTo:f,promise:h}=r;return!l&&e===f&&!t.reset?h:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;let p=xa(t,(P,j)=>j==="onRest"?void 0:P),g,k,y=new Promise((P,j)=>(g=P,k=j)),v=P=>{let j=i<=(r.cancelId||0)&&Ar(o)||i!==r.asyncId&&et(o,!1);if(j)throw P.result=j,k(P),P},S=(P,j)=>{let B=new Mn,H=new An;return(async()=>{if(ze.skipAnimation)throw ro(r),H.result=et(o,!1),k(H),H;v(B);let L=E.obj(P)?Ae({},P):Ae({},j,{to:P});L.parentId=i,He(p,($,ie)=>{E.und(L[ie])&&(L[ie]=$)});let W=await o.start(L);return v(B),r.paused&&await new Promise($=>{r.resumeQueue.add($)}),W})()},M;if(ze.skipAnimation)return ro(r),et(o,!1);try{let P;E.arr(e)?P=(async j=>{for(let B of j)await S(B)})(e):P=Promise.resolve(e(S,o.stop.bind(o))),await Promise.all([P.then(g),y]),M=et(o.get(),!0,!1)}catch(P){if(P instanceof Mn)M=P.result;else if(P instanceof An)M=P.result;else throw P}finally{i==r.asyncId&&(r.asyncId=l,r.asyncTo=l?f:void 0,r.promise=l?h:void 0)}return E.fun(c)&&q.batchedUpdates(()=>{c(M,o,o.item)}),M})()}function ro(e,t){wr(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Mn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}},An=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},pa=e=>e instanceof oo,ky=1,oo=class extends xr{constructor(...t){super(...t),this.id=ky++,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 ze.to(this,t)}interpolate(...t){return yf(),ze.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,r=!1){Jt(this,{type:"change",parent:this,value:t,idle:r})}_onPriorityChange(t){this.idle||Sr.sort(this),Jt(this,{type:"priority",parent:this,priority:t})}},Zt=Symbol.for("SpringPhase"),Vf=1,ha=2,ma=4,la=e=>(e[Zt]&Vf)>0,Dt=e=>(e[Zt]&ha)>0,Kr=e=>(e[Zt]&ma)>0,Ef=(e,t)=>t?e[Zt]|=ha|Vf:e[Zt]&=~ha,Rf=(e,t)=>t?e[Zt]|=ma:e[Zt]&=~ma,ga=class extends oo{constructor(t,r){if(super(),this.key=void 0,this.animation=new da,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)?Ae({},t):Ae({},r,{from:t});E.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(Dt(this)||this._state.asyncTo)||Kr(this)}get goal(){return Pe(this.animation.to)}get velocity(){let t=Ze(this);return t instanceof gt?t.lastVelocity||0:t.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return la(this)}get isAnimating(){return Dt(this)}get isPaused(){return Kr(this)}get isDelayed(){return this._state.delayed}advance(t){let r=!0,o=!1,i=this.animation,{config:l,toValues:c}=i,f=Jr(i.to);!f&&De(i.to)&&(c=je(Pe(i.to))),i.values.forEach((g,k)=>{if(g.done)return;let y=g.constructor==bt?1:f?f[k].lastPosition:c[k],v=i.immediate,S=y;if(!v){if(S=g.lastPosition,l.tension<=0){g.done=!0;return}let M=g.elapsedTime+=t,P=i.fromValues[k],j=g.v0!=null?g.v0:g.v0=E.arr(l.velocity)?l.velocity[k]:l.velocity,B,H=l.precision||(P==y?.005:Math.min(1,Math.abs(y-P)*.001));if(E.und(l.duration))if(l.decay){let L=l.decay===!0?.998:l.decay,W=Math.exp(-(1-L)*M);S=P+j/(1-L)*(1-W),v=Math.abs(g.lastPosition-S)<=H,B=j*W}else{B=g.lastVelocity==null?j:g.lastVelocity;let L=l.restVelocity||H/10,W=l.clamp?0:l.bounce,$=!E.und(W),ie=P==y?g.v0>0:P<y,ae,me=!1,fe=1,be=Math.ceil(t/fe);for(let we=0;we<be&&(ae=Math.abs(B)>L,!(!ae&&(v=Math.abs(y-S)<=H,v)));++we){$&&(me=S==y||S>y==ie,me&&(B=-B*W,S=y));let Re=-l.tension*1e-6*(S-y),kt=-l.friction*.001*B,lt=(Re+kt)/l.mass;B=B+lt*fe,S=S+B*fe}}else{let L=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,g.durationProgress>0&&(g.elapsedTime=l.duration*g.durationProgress,M=g.elapsedTime+=t)),L=(l.progress||0)+M/this._memoizedDuration,L=L>1?1:L<0?0:L,g.durationProgress=L),S=P+l.easing(L)*(y-P),B=(S-g.lastPosition)/t,v=L==1}g.lastVelocity=B,Number.isNaN(S)&&(console.warn("Got NaN while animating:",this),v=!0)}f&&!f[k].done&&(v=!1),v?g.done=!0:r=!1,g.setValue(S,l.round)&&(o=!0)});let h=Ze(this),p=h.getValue();if(r){let g=Pe(i.to);(p!==g||o)&&!l.decay?(h.setValue(g),this._onChange(g)):o&&l.decay&&this._onChange(p),this._stop()}else o&&this._onChange(p)}set(t){return q.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Dt(this)){let{to:t,config:r}=this.animation;q.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:Ae({},r,{to:t})],Promise.all(o.map(i=>this._update(i))).then(i=>wa(this,i))}stop(t){let{to:r}=this.animation;return this._focus(this.get()),ro(this._state,t&&this._lastCallId),q.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||ca(o))&&(o=void 0),i=E.obj(i)?i[r]:i,i==null&&(i=void 0);let l={to:o,from:i};return la(this)||(t.reverse&&([o,i]=[i,o]),i=Pe(i),E.und(i)?Ze(this)||this._set(o):this._set(i)),l}_update(t,r){let o=Ae({},t),{key:i,defaultProps:l}=this;o.default&&Object.assign(l,xa(o,(h,p)=>/^on/.test(p)?If(h,i):h)),jf(this,o,"onProps"),Zr(this,"onProps",o,this);let c=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let f=this._state;return Hf(++this._lastCallId,{key:i,props:o,defaultProps:l,state:f,actions:{pause:()=>{Kr(this)||(Rf(this,!0),kr(f.pauseQueue),Zr(this,"onPause",et(this,Yr(this,this.animation.to)),this))},resume:()=>{Kr(this)&&(Rf(this,!1),Dt(this)&&this._resume(),kr(f.resumeQueue),Zr(this,"onResume",et(this,Yr(this,this.animation.to)),this))},start:this._merge.bind(this,c)}}).then(h=>{if(o.loop&&h.finished&&!(r&&h.noop)){let p=Uf(o);if(p)return this._update(p,!0)}return h})}_merge(t,r,o){if(r.cancel)return this.stop(!0),o(Ar(this));let i=!E.und(t.to),l=!E.und(t.from);if(i||l)if(r.callId>this._lastToId)this._lastToId=r.callId;else return o(Ar(this));let{key:c,defaultProps:f,animation:h}=this,{to:p,from:g}=h,{to:k=p,from:y=g}=t;l&&!i&&(!r.default||E.und(k))&&(k=y),r.reverse&&([k,y]=[y,k]);let v=!nt(y,g);v&&(h.from=y),y=Pe(y);let S=!nt(k,p);S&&this._focus(k);let M=ca(r.to),{config:P}=h,{decay:j,velocity:B}=P;(i||l)&&(P.velocity=0),r.config&&!M&&wy(P,Yt(r.config,c),r.config!==f.config?Yt(f.config,c):void 0);let H=Ze(this);if(!H||E.und(k))return o(et(this,!0));let L=E.und(r.reset)?l&&!r.default:!E.und(y)&&eo(r.reset,c),W=L?y:this.get(),$=to(k),ie=E.num($)||E.arr($)||Cr($),ae=!M&&(!ie||eo(f.immediate||r.immediate,c));if(S){let we=wn(k);if(we!==H.constructor)if(ae)H=this._set($);else throw Error(`Cannot animate between ${H.constructor.name} and ${we.name}, as the "to" prop suggests`)}let me=H.constructor,fe=De(k),be=!1;if(!fe){let we=L||!la(this)&&v;(S||we)&&(be=nt(to(W),$),fe=!be),(!nt(h.immediate,ae)&&!ae||!nt(P.decay,j)||!nt(P.velocity,B))&&(fe=!0)}if(be&&Dt(this)&&(h.changed&&!L?fe=!0:fe||this._stop(p)),!M&&((fe||De(p))&&(h.values=H.getPayload(),h.toValues=De(k)?null:me==bt?[1]:je($)),h.immediate!=ae&&(h.immediate=ae,!ae&&!L&&this._set(p)),fe)){let{onRest:we}=h;Y(Cy,kt=>jf(this,r,kt));let Re=et(this,Yr(this,p));kr(this._pendingCalls,Re),this._pendingCalls.add(o),h.changed&&q.batchedUpdates(()=>{h.changed=!L,we?.(Re,this),L?Yt(f.onRest,Re):h.onStart==null||h.onStart(Re,this)})}L&&this._set(W),M?o(qf(r.to,r,this._state,this)):fe?this._start():Dt(this)&&!S?this._pendingCalls.add(o):o(zf(W))}_focus(t){let r=this.animation;t!==r.to&&(oa(this)&&this._detach(),r.to=t,oa(this)&&this._attach())}_attach(){let t=0,{to:r}=this.animation;De(r)&&(ht(r,this),pa(r)&&(t=r.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;De(t)&&jt(t,this)}_set(t,r=!0){let o=Pe(t);if(!E.und(o)){let i=Ze(this);if(!i||!nt(o,i.getValue())){let l=wn(o);!i||i.constructor!=l?xn(this,l.create(o)):i.setValue(o),i&&q.batchedUpdates(()=>{this._onChange(o,r)})}}return Ze(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,Zr(this,"onStart",et(this,Yr(this,t.to)),this))}_onChange(t,r){r||(this._onStart(),Yt(this.animation.onChange,t,this)),Yt(this.defaultProps.onChange,t,this),super._onChange(t,r)}_start(){let t=this.animation;Ze(this).reset(Pe(t.to)),t.immediate||(t.fromValues=t.values.map(r=>r.lastPosition)),Dt(this)||(Ef(this,!0),Kr(this)||this._resume())}_resume(){ze.skipAnimation?this.finish():Sr.start(this)}_stop(t,r){if(Dt(this)){Ef(this,!1);let o=this.animation;Y(o.values,l=>{l.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),Jt(this,{type:"idle",parent:this});let i=r?Ar(this.get()):et(this.get(),Yr(this,t??o.to));kr(this._pendingCalls,i),o.changed&&(o.changed=!1,Zr(this,"onRest",i,this))}}};function Yr(e,t){let r=to(t),o=to(e.get());return nt(o,r)}function Uf(e,t=e.loop,r=e.to){let o=Yt(t);if(o){let i=o!==!0&&Gf(o),l=(i||e).reverse,c=!i||i.reset;return no(Ae({},e,{loop:t,default:!1,pause:void 0,to:!l||ca(r)?r:void 0,from:c?e.from:void 0,reset:c},i))}}function no(e){let{to:t,from:r}=e=Gf(e),o=new Set;return E.obj(t)&&$f(t,o),E.obj(r)&&$f(r,o),e.keys=o.size?Array.from(o):null,e}function Sy(e){let t=no(e);return E.und(t.default)&&(t.default=xa(t)),t}function $f(e,t){He(e,(r,o)=>r!=null&&t.add(o))}var Cy=["onStart","onRest","onChange","onPause","onResume"];function jf(e,t,r){e.animation[r]=t[r]!==Nf(t,r)?If(t[r],e.key):void 0}function Zr(e,t,...r){var o,i,l,c;(o=(i=e.animation)[t])==null||o.call(i,...r),(l=(c=e.defaultProps)[t])==null||l.call(c,...r)}var My=["onStart","onChange","onRest"],Ay=1,ba=class{constructor(t,r){this.id=Ay++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),r&&(this._flush=r),t&&this.start(Ae({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){let t={};return this.each((r,o)=>t[o]=r.get()),t}set(t){for(let r in t){let o=t[r];E.und(o)||this.springs[r].set(o)}}update(t){return t&&this.queue.push(no(t)),this}start(t){let{queue:r}=this;return t?r=je(t).map(no):this.queue=[],this._flush?this._flush(this,r):(Kf(this,r),va(this,r))}stop(t,r){if(t!==!!t&&(r=t),r){let o=this.springs;Y(je(r),i=>o[i].stop(!!t))}else ro(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(je(t),o=>r[o].pause())}return this}resume(t){if(E.und(t))this.start({pause:!1});else{let r=this.springs;Y(je(t),o=>r[o].resume())}return this}each(t){He(this.springs,t)}_onFrame(){let{onStart:t,onChange:r,onRest:o}=this._events,i=this._active.size>0,l=this._changed.size>0;(i&&!this._started||l&&!this._started)&&(this._started=!0,wr(t,([h,p])=>{p.value=this.get(),h(p,this,this._item)}));let c=!i&&this._started,f=l||c&&o.size?this.get():null;l&&r.size&&wr(r,([h,p])=>{p.value=f,h(p,this,this._item)}),c&&(this._started=!1,wr(o,([h,p])=>{p.value=f,h(p,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;q.onFrame(this._onFrame)}};function va(e,t){return Promise.all(t.map(r=>Wf(e,r))).then(r=>wa(e,r))}async function Wf(e,t,r){let{keys:o,to:i,from:l,loop:c,onRest:f,onResolve:h}=t,p=E.obj(t.default)&&t.default;c&&(t.loop=!1),i===!1&&(t.to=null),l===!1&&(t.from=null);let g=E.arr(i)||E.fun(i)?i:void 0;g?(t.to=void 0,t.onRest=void 0,p&&(p.onRest=void 0)):Y(My,M=>{let P=t[M];if(E.fun(P)){let j=e._events[M];t[M]=({finished:B,cancelled:H})=>{let L=j.get(P);L?(B||(L.finished=!1),H&&(L.cancelled=!0)):j.set(P,{value:null,finished:B||!1,cancelled:H||!1})},p&&(p[M]=t[M])}});let k=e._state;t.pause===!k.paused?(k.paused=t.pause,kr(t.pause?k.pauseQueue:k.resumeQueue)):k.paused&&(t.pause=!0);let y=(o||Object.keys(e.springs)).map(M=>e.springs[M].start(t)),v=t.cancel===!0||Nf(t,"cancel")===!0;(g||v&&k.asyncId)&&y.push(Hf(++e._lastAsyncId,{props:t,state:k,actions:{pause:fn,resume:fn,start(M,P){v?(ro(k,e._lastAsyncId),P(Ar(e))):(M.onRest=f,P(qf(g,M,k,e)))}}})),k.paused&&await new Promise(M=>{k.resumeQueue.add(M)});let S=wa(e,await Promise.all(y));if(c&&S.finished&&!(r&&S.noop)){let M=Uf(t,c,i);if(M)return Kf(e,[M]),Wf(e,M,!0)}return h&&q.batchedUpdates(()=>h(S,e,e.item)),S}function Df(e,t){let r=Ae({},e.springs);return t&&Y(je(t),o=>{E.und(o.keys)&&(o=no(o)),E.obj(o.to)||(o=Ae({},o,{to:void 0})),Jf(r,o,i=>Qf(i))}),Xf(e,r),r}function Xf(e,t){He(t,(r,o)=>{e.springs[o]||(e.springs[o]=r,ht(r,e))})}function Qf(e,t){let r=new ga;return r.key=e,t&&ht(r,t),r}function Jf(e,t,r){t.keys&&Y(t.keys,o=>{(e[o]||(e[o]=r(o)))._prepareNode(t)})}function Kf(e,t){Y(t,r=>{Jf(e.springs,r,o=>Qf(o,e))})}function Ty(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var _y=["children"],_n=e=>{let{children:t}=e,r=Ty(e,_y),o=(0,Ve.useContext)(Tn),i=r.pause||!!o.pause,l=r.immediate||!!o.immediate;r=wf(()=>({pause:i,immediate:l}),[i,l]);let{Provider:c}=Tn;return io.createElement(c,{value:r},t)},Tn=Ly(_n,{});_n.Provider=Tn.Provider;_n.Consumer=Tn.Consumer;function Ly(e,t){return Object.assign(e,io.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Py=()=>{let e=[],t=function(i){xf();let l=[];return Y(e,(c,f)=>{if(E.und(i))l.push(c.start());else{let h=r(i,c,f);h&&l.push(c.start(h))}}),l};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){let i=e.indexOf(o);~i&&e.splice(i,1)},t.pause=function(){return Y(e,o=>o.pause(...arguments)),this},t.resume=function(){return Y(e,o=>o.resume(...arguments)),this},t.set=function(o){Y(e,i=>i.set(o))},t.start=function(o){let i=[];return Y(e,(l,c)=>{if(E.und(o))i.push(l.start());else{let f=this._getProps(o,l,c);f&&i.push(l.start(f))}}),i},t.stop=function(){return Y(e,o=>o.stop(...arguments)),this},t.update=function(o){return Y(e,(i,l)=>i.update(this._getProps(o,i,l))),this};let r=function(i,l,c){return E.fun(i)?i(c,l):i};return t._getProps=r,t};function Oy(e,t,r){let o=E.fun(t)&&t;o&&!r&&(r=[]);let i=(0,Ve.useMemo)(()=>o||arguments.length==3?Py():void 0,[]),l=(0,Ve.useRef)(0),c=mn(),f=(0,Ve.useMemo)(()=>({ctrls:[],queue:[],flush(j,B){let H=Df(j,B);return l.current>0&&!f.queue.length&&!Object.keys(H).some(W=>!j.springs[W])?va(j,B):new Promise(W=>{Xf(j,H),f.queue.push(()=>{W(va(j,B))}),c()})}}),[]),h=(0,Ve.useRef)([...f.ctrls]),p=[],g=ia(e)||0;(0,Ve.useMemo)(()=>{Y(h.current.slice(e,g),j=>{by(j,i),j.stop(!0)}),h.current.length=e,k(g,e)},[e]),(0,Ve.useMemo)(()=>{k(0,Math.min(g,e))},r);function k(j,B){for(let H=j;H<B;H++){let L=h.current[H]||(h.current[H]=new ba(null,f.flush)),W=o?o(H,L):t[H];W&&(p[H]=Sy(W))}}let y=h.current.map((j,B)=>Df(j,p[B])),v=(0,Ve.useContext)(_n),S=ia(v),M=v!==S&&gy(v);Mr(()=>{l.current++,f.ctrls=h.current;let{queue:j}=f;j.length&&(f.queue=[],Y(j,B=>B())),Y(h.current,(B,H)=>{i?.add(B),M&&B.start({default:v});let L=p[H];L&&(vy(B,L.ref),B.ref?B.queue.push(L):B.start(L))})}),gn(()=>()=>{Y(f.ctrls,j=>j.stop(!0))});let P=y.map(j=>Ae({},j));return i?[P,i]:P}function Yf(e,t){let r=E.fun(e),[[o],i]=Oy(1,r?e:[e],r?t||[]:t);return r||arguments.length==2?[o,i]:o}var Ff;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Ff||(Ff={}));var ya=class extends oo{constructor(t,r){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=$t(...r);let o=this._get(),i=wn(o);xn(this,i.create(o))}advance(t){let r=this._get(),o=this.get();nt(r,o)||(Ze(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&Bf(this._active)&&sa(this)}_get(){let t=E.arr(this.source)?this.source.map(Pe):je(Pe(this.source));return this.calc(...t)}_start(){this.idle&&!Bf(this._active)&&(this.idle=!1,Y(Jr(this),t=>{t.done=!1}),ze.skipAnimation?(q.batchedUpdates(()=>this.advance()),sa(this)):Sr.start(this))}_attach(){let t=1;Y(je(this.source),r=>{De(r)&&ht(r,this),pa(r)&&(r.idle||this._active.add(r),t=Math.max(t,r.priority+1))}),this.priority=t,this._start()}_detach(){Y(je(this.source),t=>{De(t)&&jt(t,this)}),this._active.clear(),sa(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=je(this.source).reduce((r,o)=>Math.max(r,(pa(o)?o.priority:0)+1),0))}};function Ey(e){return e.idle!==!1}function Bf(e){return!e.size||Array.from(e).every(Ey)}function sa(e){e.idle||(e.idle=!0,Y(Jr(e),t=>{t.done=!0}),Jt(e,{type:"idle",parent:e}))}ze.assign({createStringInterpolator:hn,to:(e,t)=>new ya(e,t)});var S5=Sr.advance;var ed=R(kb());function Ma(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ry=["style","children","scrollTop","scrollLeft"],td=/^--/;function $y(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!td.test(e)&&!(ao.hasOwnProperty(e)&&ao[e])?t+"px":(""+t).trim()}var Zf={};function jy(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:i,children:l,scrollTop:c,scrollLeft:f}=o,h=Ma(o,Ry),p=Object.values(h),g=Object.keys(h).map(k=>r||e.hasAttribute(k)?k:Zf[k]||(Zf[k]=k.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));l!==void 0&&(e.textContent=l);for(let k in i)if(i.hasOwnProperty(k)){let y=$y(k,i[k]);td.test(k)?e.style.setProperty(k,y):e.style[k]=y}g.forEach((k,y)=>{e.setAttribute(k,p[y])}),c!==void 0&&(e.scrollTop=c),f!==void 0&&(e.scrollLeft=f)}var ao={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dy=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Fy=["Webkit","Ms","Moz","O"];ao=Object.keys(ao).reduce((e,t)=>(Fy.forEach(r=>e[Dy(r,t)]=e[t]),e),ao);var By=["x","y","z"],Iy=/^(matrix|translate|scale|rotate|skew)/,Ny=/^(translate)/,Gy=/^(rotate|skew)/,ka=(e,t)=>E.num(e)&&e!==0?e+t:e,Ln=(e,t)=>E.arr(e)?e.every(r=>Ln(r,t)):E.num(e)?e===t:parseFloat(e)===t,Sa=class extends Kt{constructor(t){let{x:r,y:o,z:i}=t,l=Ma(t,By),c=[],f=[];(r||o||i)&&(c.push([r||0,o||0,i||0]),f.push(h=>[`translate3d(${h.map(p=>ka(p,"px")).join(",")})`,Ln(h,0)])),He(l,(h,p)=>{if(p==="transform")c.push([h||""]),f.push(g=>[g,g===""]);else if(Iy.test(p)){if(delete l[p],E.und(h))return;let g=Ny.test(p)?"px":Gy.test(p)?"deg":"";c.push(je(h)),f.push(p==="rotate3d"?([k,y,v,S])=>[`rotate3d(${k},${y},${v},${ka(S,g)})`,Ln(S,0)]:k=>[`${p}(${k.map(y=>ka(y,g)).join(",")})`,Ln(k,p.startsWith("scale")?1:0)])}}),c.length&&(l.transform=new Ca(c,f)),super(l)}},Ca=class extends xr{constructor(t,r){super(),this._value=null,this.inputs=t,this.transforms=r}get(){return this._value||(this._value=this._get())}_get(){let t="",r=!0;return Y(this.inputs,(o,i)=>{let l=Pe(o[0]),[c,f]=this.transforms[i](E.arr(l)?l:o.map(Pe));t+=" "+c,r=r&&f}),r?"none":t}observerAdded(t){t==1&&Y(this.inputs,r=>Y(r,o=>De(o)&&ht(o,this)))}observerRemoved(t){t==0&&Y(this.inputs,r=>Y(r,o=>De(o)&&jt(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Jt(this,t)}},Hy=["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"],zy=["scrollTop","scrollLeft"];ze.assign({batchedUpdates:ed.unstable_batchedUpdates,createStringInterpolator:hn,colors:mf});var qy=Af(Hy,{applyAnimatedValues:jy,createAnimatedStyle:e=>new Sa(e),getComponentProps:e=>Ma(e,zy)}),lo=qy.animated;var On=R(ee());var sd=R(ld());function cd(){let{ref:e,width:t,height:r}=(0,sd.useComponentSize)();return(0,On.useMemo)(()=>[e,{width:t,height:r}],[e,t,r])}function ud(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function so(e){let{animationsEnabled:t}=$e(),[r,o]=Vt(!0);return(0,On.useEffect)(()=>{setTimeout(()=>o(!1),0)},[o]),Yf({...typeof e=="object"?e:{},immediate:r||!t})}function rx(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 fd(){return this.eachAfter(rx)}function dd(e,t){let r=-1;for(let o of this)e.call(t,o,++r,this);return this}function pd(e,t){for(var r=this,o=[r],i,l,c=-1;r=o.pop();)if(e.call(t,r,++c,this),i=r.children)for(l=i.length-1;l>=0;--l)o.push(i[l]);return this}function hd(e,t){for(var r=this,o=[r],i=[],l,c,f,h=-1;r=o.pop();)if(i.push(r),l=r.children)for(c=0,f=l.length;c<f;++c)o.push(l[c]);for(;r=i.pop();)e.call(t,r,++h,this);return this}function md(e,t){let r=-1;for(let o of this)if(e.call(t,o,++r,this))return o}function gd(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,o=t.children,i=o&&o.length;--i>=0;)r+=o[i].value;t.value=r})}function bd(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function vd(e){for(var t=this,r=ox(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 ox(e,t){if(e===t)return e;var r=e.ancestors(),o=t.ancestors(),i=null;for(e=r.pop(),t=o.pop();e===t;)i=e,e=r.pop(),t=o.pop();return i}function yd(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function xd(){return Array.from(this)}function wd(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function kd(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*Sd(){var e=this,t,r=[e],o,i,l;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,o=e.children)for(i=0,l=o.length;i<l;++i)r.push(o[i]);while(r.length)}function _r(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=ax)):t===void 0&&(t=ix);for(var r=new co(e),o,i=[r],l,c,f,h;o=i.pop();)if((c=t(o.data))&&(h=(c=Array.from(c)).length))for(o.children=c,f=h-1;f>=0;--f)i.push(l=c[f]=new co(c[f])),l.parent=o,l.depth=o.depth+1;return r.eachBefore(sx)}function nx(){return _r(this).eachBefore(lx)}function ix(e){return e.children}function ax(e){return Array.isArray(e)?e[1]:null}function lx(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function sx(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function co(e){this.data=e,this.depth=this.height=0,this.parent=null}co.prototype=_r.prototype={constructor:co,count:fd,each:dd,eachAfter:hd,eachBefore:pd,find:md,sum:gd,sort:bd,path:vd,ancestors:yd,descendants:xd,leaves:wd,links:kd,copy:nx,[Symbol.iterator]:Sd};function Cd(e){return e==null?null:La(e)}function La(e){if(typeof e!="function")throw new Error;return e}function yt(){return 0}function Ft(e){return function(){return e}}function Md(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function Ad(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Td(e,t){let r=e.length,o,i;for(;r;)i=t()*r--|0,o=e[r],e[r]=e[i],e[i]=o;return e}function _d(e,t){for(var r=0,o=(e=Td(Array.from(e),t)).length,i=[],l,c;r<o;)l=e[r],c&&Ld(c,l)?++r:(c=ux(i=cx(i,l)),r=0);return c}function cx(e,t){var r,o;if(Pa(t,e))return[t];for(r=0;r<e.length;++r)if(En(t,e[r])&&Pa(uo(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(o=r+1;o<e.length;++o)if(En(uo(e[r],e[o]),t)&&En(uo(e[r],t),e[o])&&En(uo(e[o],t),e[r])&&Pa(Pd(e[r],e[o],t),e))return[e[r],e[o],t];throw new Error}function En(e,t){var r=e.r-t.r,o=t.x-e.x,i=t.y-e.y;return r<0||r*r<o*o+i*i}function Ld(e,t){var r=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,o=t.x-e.x,i=t.y-e.y;return r>0&&r*r>o*o+i*i}function Pa(e,t){for(var r=0;r<t.length;++r)if(!Ld(e,t[r]))return!1;return!0}function ux(e){switch(e.length){case 1:return fx(e[0]);case 2:return uo(e[0],e[1]);case 3:return Pd(e[0],e[1],e[2])}}function fx(e){return{x:e.x,y:e.y,r:e.r}}function uo(e,t){var r=e.x,o=e.y,i=e.r,l=t.x,c=t.y,f=t.r,h=l-r,p=c-o,g=f-i,k=Math.sqrt(h*h+p*p);return{x:(r+l+h/k*g)/2,y:(o+c+p/k*g)/2,r:(k+i+f)/2}}function Pd(e,t,r){var o=e.x,i=e.y,l=e.r,c=t.x,f=t.y,h=t.r,p=r.x,g=r.y,k=r.r,y=o-c,v=o-p,S=i-f,M=i-g,P=h-l,j=k-l,B=o*o+i*i-l*l,H=B-c*c-f*f+h*h,L=B-p*p-g*g+k*k,W=v*S-y*M,$=(S*L-M*H)/(W*2)-o,ie=(M*P-S*j)/W,ae=(v*H-y*L)/(W*2)-i,me=(y*j-v*P)/W,fe=ie*ie+me*me-1,be=2*(l+$*ie+ae*me),we=$*$+ae*ae-l*l,Re=-(Math.abs(fe)>1e-6?(be+Math.sqrt(be*be-4*fe*we))/(2*fe):we/be);return{x:o+$+ie*Re,y:i+ae+me*Re,r:Re}}function Od(e,t,r){var o=e.x-t.x,i,l,c=e.y-t.y,f,h,p=o*o+c*c;p?(l=t.r+r.r,l*=l,h=e.r+r.r,h*=h,l>h?(i=(p+h-l)/(2*p),f=Math.sqrt(Math.max(0,h/p-i*i)),r.x=e.x-i*o-f*c,r.y=e.y-i*c+f*o):(i=(p+l-h)/(2*p),f=Math.sqrt(Math.max(0,l/p-i*i)),r.x=t.x+i*o-f*c,r.y=t.y+i*c+f*o)):(r.x=t.x+r.r,r.y=t.y)}function Ed(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 Rd(e){var t=e._,r=e.next._,o=t.r+r.r,i=(t.x*r.r+r.x*t.r)/o,l=(t.y*r.r+r.y*t.r)/o;return i*i+l*l}function Rn(e){this._=e,this.next=null,this.previous=null}function $d(e,t){if(!(l=(e=Ad(e)).length))return 0;var r,o,i,l,c,f,h,p,g,k,y;if(r=e[0],r.x=0,r.y=0,!(l>1))return r.r;if(o=e[1],r.x=-o.r,o.x=r.r,o.y=0,!(l>2))return r.r+o.r;Od(o,r,i=e[2]),r=new Rn(r),o=new Rn(o),i=new Rn(i),r.next=i.previous=o,o.next=r.previous=i,i.next=o.previous=r;e:for(h=3;h<l;++h){Od(r._,o._,i=e[h]),i=new Rn(i),p=o.next,g=r.previous,k=o._.r,y=r._.r;do if(k<=y){if(Ed(p._,i._)){o=p,r.next=o,o.previous=r,--h;continue e}k+=p._.r,p=p.next}else{if(Ed(g._,i._)){r=g,r.next=o,o.previous=r,--h;continue e}y+=g._.r,g=g.previous}while(p!==g.next);for(i.previous=r,i.next=o,r.next=o.previous=o=i,c=Rd(r);(i=i.next)!==o;)(f=Rd(i))<c&&(r=i,c=f);o=r.next}for(r=[o._],i=o;(i=i.next)!==o;)r.push(i._);for(i=_d(r,t),h=0;h<l;++h)r=e[h],r.x-=i.x,r.y-=i.y;return i.r}function dx(e){return Math.sqrt(e.value)}function Ea(){var e=null,t=1,r=1,o=yt;function i(l){let c=Md();return l.x=t/2,l.y=r/2,e?l.eachBefore(jd(e)).eachAfter(Oa(o,.5,c)).eachBefore(Dd(1)):l.eachBefore(jd(dx)).eachAfter(Oa(yt,1,c)).eachAfter(Oa(o,l.r/Math.min(t,r),c)).eachBefore(Dd(Math.min(t,r)/(2*l.r))),l}return i.radius=function(l){return arguments.length?(e=Cd(l),i):e},i.size=function(l){return arguments.length?(t=+l[0],r=+l[1],i):[t,r]},i.padding=function(l){return arguments.length?(o=typeof l=="function"?l:Ft(+l),i):o},i}function jd(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Oa(e,t,r){return function(o){if(i=o.children){var i,l,c=i.length,f=e(o)*t||0,h;if(f)for(l=0;l<c;++l)i[l].r+=f;if(h=$d(i,r),f)for(l=0;l<c;++l)i[l].r-=f;o.r=h+f}}}function Dd(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function Fd(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Bd(e,t,r,o,i){for(var l=e.children,c,f=-1,h=l.length,p=e.value&&(o-t)/e.value;++f<h;)c=l[f],c.y0=r,c.y1=i,c.x0=t,c.x1=t+=c.value*p}function Id(e,t,r,o,i){for(var l=e.children,c,f=-1,h=l.length,p=e.value&&(i-r)/e.value;++f<h;)c=l[f],c.x0=t,c.x1=o,c.y0=r,c.y1=r+=c.value*p}var px=(1+Math.sqrt(5))/2;function hx(e,t,r,o,i,l){for(var c=[],f=t.children,h,p,g=0,k=0,y=f.length,v,S,M=t.value,P,j,B,H,L,W,$;g<y;){v=i-r,S=l-o;do P=f[k++].value;while(!P&&k<y);for(j=B=P,W=Math.max(S/v,v/S)/(M*e),$=P*P*W,L=Math.max(B/$,$/j);k<y;++k){if(P+=p=f[k].value,p<j&&(j=p),p>B&&(B=p),$=P*P*W,H=Math.max(B/$,$/j),H>L){P-=p;break}L=H}c.push(h={value:P,dice:v<S,children:f.slice(g,k)}),h.dice?Bd(h,r,o,i,M?o+=S*P/M:l):Id(h,r,o,M?r+=v*P/M:i,l),M-=P,g=k}return c}var Nd=function e(t){function r(o,i,l,c,f){hx(t,o,i,l,c,f)}return r.ratio=function(o){return e((o=+o)>1?o:1)},r}(px);function Ra(){var e=Nd,t=!1,r=1,o=1,i=[0],l=yt,c=yt,f=yt,h=yt,p=yt;function g(y){return y.x0=y.y0=0,y.x1=r,y.y1=o,y.eachBefore(k),i=[0],t&&y.eachBefore(Fd),y}function k(y){var v=i[y.depth],S=y.x0+v,M=y.y0+v,P=y.x1-v,j=y.y1-v;P<S&&(S=P=(S+P)/2),j<M&&(M=j=(M+j)/2),y.x0=S,y.y0=M,y.x1=P,y.y1=j,y.children&&(v=i[y.depth+1]=l(y)/2,S+=p(y)-v,M+=c(y)-v,P-=f(y)-v,j-=h(y)-v,P<S&&(S=P=(S+P)/2),j<M&&(M=j=(M+j)/2),e(y,S,M,P,j))}return g.round=function(y){return arguments.length?(t=!!y,g):t},g.size=function(y){return arguments.length?(r=+y[0],o=+y[1],g):[r,o]},g.tile=function(y){return arguments.length?(e=La(y),g):e},g.padding=function(y){return arguments.length?g.paddingInner(y).paddingOuter(y):g.paddingInner()},g.paddingInner=function(y){return arguments.length?(l=typeof y=="function"?y:Ft(+y),g):l},g.paddingOuter=function(y){return arguments.length?g.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):g.paddingTop()},g.paddingTop=function(y){return arguments.length?(c=typeof y=="function"?y:Ft(+y),g):c},g.paddingRight=function(y){return arguments.length?(f=typeof y=="function"?y:Ft(+y),g):f},g.paddingBottom=function(y){return arguments.length?(h=typeof y=="function"?y:Ft(+y),g):h},g.paddingLeft=function(y){return arguments.length?(p=typeof y=="function"?y:Ft(+y),g):p},g}var Bt=R(ee());var $a=hi`
|
|
109
|
+
`;function Yu(e){var c;let{metricType:t,authorshipType:r}=_e(),[o]=Ye(),i=(c=o[r].get(t))!=null?c:void 0;if(i===void 0)return null;let l=(0,Pe.jsx)(Pe.Fragment,{});switch($u(t)){case"POINT":l=(0,Pe.jsx)(Su,{metricCache:i});break;case"GRADIENT":l=(0,Pe.jsx)(Ku,{metricCache:i});break;case"SEGMENTS":l=(0,Pe.jsx)(Ju,{metricCache:i});break}return(0,Pe.jsxs)(jv,{children:[(0,Pe.jsx)(Pt,{children:pr[t]}),(0,Pe.jsx)(G,{}),(0,Pe.jsx)(Ut,{children:Ru(t,r)}),(0,Pe.jsx)(G,{lg:!0}),t==="TOP_CONTRIBUTOR"||t==="SINGLE_AUTHOR"?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)(Ee,{onClick:e.showUnionAuthorsModal,children:[(0,Pe.jsx)(To,{display:"inline-block",height:"1rem"}),"Merge duplicate users"]}),(0,Pe.jsx)(G,{lg:!0})]}):null,l]})}var qi=Ur(),q=e=>Vr(e,qi),Vi=Ur();q.write=e=>Vr(e,Vi);var an=Ur();q.onStart=e=>Vr(e,an);var Ui=Ur();q.onFrame=e=>Vr(e,Ui);var Wi=Ur();q.onFinish=e=>Vr(e,Wi);var br=[];q.setTimeout=(e,t)=>{let r=q.now()+t,o=()=>{let l=br.findIndex(c=>c.cancel==o);~l&&br.splice(l,1),$t-=~l?1:0},i={time:r,handler:e,cancel:o};return br.splice(Zu(r),0,i),$t+=1,ef(),i};var Zu=e=>~(~br.findIndex(t=>t.time>e)||~br.length);q.cancel=e=>{an.delete(e),Ui.delete(e),Wi.delete(e),qi.delete(e),Vi.delete(e)};q.sync=e=>{zi=!0,q.batchedUpdates(e),zi=!1};q.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function o(...i){t=i,q.onStart(r)}return o.handler=e,o.cancel=()=>{an.delete(r),t=null},o};var Xi=typeof window<"u"?window.requestAnimationFrame:()=>{};q.use=e=>Xi=e;q.now=typeof performance<"u"?()=>performance.now():Date.now;q.batchedUpdates=e=>e();q.catch=console.error;q.frameLoop="always";q.advance=()=>{q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):rf()};var Rt=-1,$t=0,zi=!1;function Vr(e,t){zi?(t.delete(e),e(0)):(t.add(e),ef())}function ef(){Rt<0&&(Rt=0,q.frameLoop!=="demand"&&Xi(tf))}function Dv(){Rt=-1}function tf(){~Rt&&(Xi(tf),q.batchedUpdates(rf))}function rf(){let e=Rt;Rt=q.now();let t=Zu(Rt);if(t&&(of(br.splice(0,t),r=>r.handler()),$t-=t),!$t){Dv();return}an.flush(),qi.flush(e?Math.min(64,Rt-e):16.667),Ui.flush(),Vi.flush(),Wi.flush()}function Ur(){let e=new Set,t=e;return{add(r){$t+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return $t-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,$t-=t.size,of(t,o=>o(r)&&e.add(o)),$t+=e.size,t=e)}}}function of(e,t){e.forEach(r=>{try{t(r)}catch(o){q.catch(o)}})}var Be=R(ee());function fn(){}var uf=(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 lt(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 He(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 je=e=>E.und(e)?[]:E.arr(e)?e:[e];function wr(e,t){if(e.size){let r=Array.from(e);e.clear(),Y(r,t)}}var kr=(e,...t)=>wr(e,r=>r(...t)),ea=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ta,ff,jt=null,df=!1,ra=fn,Fv=e=>{e.to&&(ff=e.to),e.now&&(q.now=e.now),e.colors!==void 0&&(jt=e.colors),e.skipAnimation!=null&&(df=e.skipAnimation),e.createStringInterpolator&&(ta=e.createStringInterpolator),e.requestAnimationFrame&&q.use(e.requestAnimationFrame),e.batchedUpdates&&(q.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ra=e.willAdvance),e.frameLoop&&(q.frameLoop=e.frameLoop)},ze=Object.freeze({__proto__:null,get createStringInterpolator(){return ta},get to(){return ff},get colors(){return jt},get skipAnimation(){return df},get willAdvance(){return ra},assign:Fv}),Wr=new Set,Ve=[],Qi=[],cn=0,Sr={get idle(){return!Wr.size&&!Ve.length},start(e){cn>e.priority?(Wr.add(e),q.onStart(Bv)):(pf(e),q(Yi))},advance:Yi,sort(e){if(cn)q.onFrame(()=>Sr.sort(e));else{let t=Ve.indexOf(e);~t&&(Ve.splice(t,1),hf(e))}},clear(){Ve=[],Wr.clear()}};function Bv(){Wr.forEach(pf),Wr.clear(),q(Yi)}function pf(e){Ve.includes(e)||hf(e)}function hf(e){Ve.splice(Iv(Ve,t=>t.priority>e.priority),0,e)}function Yi(e){let t=Qi;for(let r=0;r<Ve.length;r++){let o=Ve[r];cn=o.priority,o.idle||(ra(o),o.advance(e),o.idle||t.push(o))}return cn=0,Qi=Ve,Qi.length=0,Ve=t,Ve.length>0}function Iv(e,t){let r=e.findIndex(t);return r<0?e.length:r}var mf={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},et="[-+]?\\d*\\.?\\d+",un=et+"%";function dn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Nv=new RegExp("rgb"+dn(et,et,et)),Gv=new RegExp("rgba"+dn(et,et,et,et)),Hv=new RegExp("hsl"+dn(et,un,un)),zv=new RegExp("hsla"+dn(et,un,un,et)),qv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Uv=/^#([0-9a-fA-F]{6})$/,Wv=/^#([0-9a-fA-F]{8})$/;function Xv(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Uv.exec(e))?parseInt(t[1]+"ff",16)>>>0:jt&&jt[e]!==void 0?jt[e]:(t=Nv.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|255)>>>0:(t=Gv.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|lf(t[4]))>>>0:(t=qv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Wv.exec(e))?parseInt(t[1],16)>>>0:(t=Vv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Hv.exec(e))?(nf(af(t[1]),ln(t[2]),ln(t[3]))|255)>>>0:(t=zv.exec(e))?(nf(af(t[1]),ln(t[2]),ln(t[3]))|lf(t[4]))>>>0:null}function Ji(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 nf(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,i=2*r-o,l=Ji(i,o,e+1/3),c=Ji(i,o,e),f=Ji(i,o,e-1/3);return Math.round(l*255)<<24|Math.round(c*255)<<16|Math.round(f*255)<<8}function vr(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function af(e){return(parseFloat(e)%360+360)%360/360}function lf(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ln(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function sf(e){let t=Xv(e);if(t===null)return e;t=t||0;let r=(t&4278190080)>>>24,o=(t&16711680)>>>16,i=(t&65280)>>>8,l=(t&255)/255;return`rgba(${r}, ${o}, ${i}, ${l})`}var Dt=(e,t,r)=>{if(E.fun(e))return e;if(E.arr(e))return Dt({range:e,output:t,extrapolate:r});if(E.str(e.output[0]))return ta(e);let o=e,i=o.output,l=o.range||[0,1],c=o.extrapolateLeft||o.extrapolate||"extend",f=o.extrapolateRight||o.extrapolate||"extend",h=o.easing||(p=>p);return p=>{let g=Jv(p,l);return Qv(p,l[g],l[g+1],i[g],i[g+1],h,c,f,o.map)}};function Qv(e,t,r,o,i,l,c,f,h){let p=h?h(e):e;if(p<t){if(c==="identity")return p;c==="clamp"&&(p=t)}if(p>r){if(f==="identity")return p;f==="clamp"&&(p=r)}return o===i?o:t===r?e<=t?o:i:(t===-1/0?p=-p:r===1/0?p=p-t:p=(p-t)/(r-t),p=l(p),o===-1/0?p=-p:i===1/0?p=p+o:p=p*(i-o)+o,p)}function Jv(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Zi.apply(this,arguments)}var yr=Symbol.for("FluidValue.get"),Jt=Symbol.for("FluidValue.observers"),De=e=>Boolean(e&&e[yr]),Oe=e=>e&&e[yr]?e[yr]():e,oa=e=>e[Jt]||null;function Kv(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Kt(e,t){let r=e[Jt];r&&r.forEach(o=>{Kv(o,t)})}var xr=class{constructor(t){if(this[yr]=void 0,this[Jt]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");Yv(this,t)}},Yv=(e,t)=>gf(e,yr,t);function gt(e,t){if(e[yr]){let r=e[Jt];r||gf(e,Jt,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Ft(e,t){let r=e[Jt];if(r&&r.has(t)){let o=r.size-1;o?r.delete(t):e[Jt]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var gf=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),sn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Zv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,cf=new RegExp(`(${sn.source})(%|[a-z]+)`,"i"),ey=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,pn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,bf=e=>{let[t,r]=ty(e);if(!t||ea())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(r&&r.startsWith("--")){let i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&pn.test(r))return bf(r);if(r)return r}return e},ty=e=>{let t=pn.exec(e);if(!t)return[,];let[,r,o]=t;return[r,o]},Ki,ry=(e,t,r,o,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(o)}, ${i})`,hn=e=>{Ki||(Ki=jt?new RegExp(`(${Object.keys(jt).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(l=>Oe(l).replace(pn,bf).replace(Zv,sf).replace(Ki,sf)),r=t.map(l=>l.match(sn).map(Number)),i=r[0].map((l,c)=>r.map(f=>{if(!(c in f))throw Error('The arity of each "output" value must be equal');return f[c]})).map(l=>Dt(Zi({},e,{output:l})));return l=>{var c;let f=!cf.test(t[0])&&((c=t.find(p=>cf.test(p)))==null?void 0:c.replace(sn,"")),h=0;return t[0].replace(sn,()=>`${i[h++](l)}${f||""}`).replace(ey,ry)}},na="react-spring: ",vf=e=>{let t=e,r=!1;if(typeof t!="function")throw new TypeError(`${na}once requires a function parameter`);return(...o)=>{r||(t(...o),r=!0)}},oy=vf(console.warn);function yf(){oy(`${na}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var ny=vf(console.warn);function xf(){ny(`${na}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Cr(e){return E.str(e)&&(e[0]=="#"||/\d/.test(e)||!ea()&&pn.test(e)||e in(jt||{}))}var Mr=ea()?Be.useEffect:Be.useLayoutEffect,iy=()=>{let e=(0,Be.useRef)(!1);return Mr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function mn(){let e=(0,Be.useState)()[1],t=iy();return()=>{t.current&&e(Math.random())}}function wf(e,t){let[r]=(0,Be.useState)(()=>({inputs:t,result:e()})),o=(0,Be.useRef)(),i=o.current,l=i;return l?Boolean(t&&l.inputs&&ay(t,l.inputs))||(l={inputs:t,result:e()}):l=r,(0,Be.useEffect)(()=>{o.current=l,i==r&&(r.inputs=r.result=void 0)},[l]),l.result}function ay(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var gn=e=>(0,Be.useEffect)(e,ly),ly=[];function ia(e){let t=(0,Be.useRef)();return(0,Be.useEffect)(()=>{t.current=e}),t.current}var io=R(ee()),Ue=R(ee());var Mf=R(ee()),bt=R(ee()),Xr=Symbol.for("Animated:node"),sy=e=>!!e&&e[Xr]===e,tt=e=>e&&e[Xr],xn=(e,t)=>uf(e,Xr,t),Jr=e=>e&&e[Xr]&&e[Xr].getPayload(),bn=class{constructor(){this.payload=void 0,xn(this,this)}getPayload(){return this.payload||[]}},vt=class extends bn{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,E.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new vt(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)}},yt=class extends vt{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Dt({output:[t,t]})}static create(t){return new yt(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=Dt({output:[this.getValue(),t]})),this._value=0,super.reset()}},vn={dependencies:null},Yt=class extends bn{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let r={};return He(this.source,(o,i)=>{sy(o)?r[i]=o.getValue(t):De(o)?r[i]=Oe(o):t||(r[i]=o)}),r}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Y(this.payload,t=>t.reset())}_makePayload(t){if(t){let r=new Set;return He(t,this._addToPayload,r),Array.from(r)}}_addToPayload(t){vn.dependencies&&De(t)&&vn.dependencies.add(t);let r=Jr(t);r&&Y(r,o=>this.add(o))}},Qr=class extends Yt{constructor(t){super(t)}static create(t){return new Qr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let r=this.getPayload();return t.length==r.length?r.map((o,i)=>o.setValue(t[i])).some(Boolean):(super.setValue(t.map(cy)),!0)}};function cy(e){return(Cr(e)?yt:vt).create(e)}function wn(e){let t=tt(e);return t?t.constructor:E.arr(e)?Qr:Cr(e)?yt:vt}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},yn.apply(this,arguments)}var kf=(e,t)=>{let r=!E.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,bt.forwardRef)((o,i)=>{let l=(0,bt.useRef)(null),c=r&&(0,bt.useCallback)(S=>{l.current=fy(i,S)},[i]),[f,h]=uy(o,t),p=mn(),g=()=>{let S=l.current;if(r&&!S)return;(S?t.applyAnimatedValues(S,f.getValue(!0)):!1)===!1&&p()},k=new aa(g,h),y=(0,bt.useRef)();Mr(()=>(y.current=k,Y(h,S=>gt(S,k)),()=>{y.current&&(Y(y.current.deps,S=>Ft(S,y.current)),q.cancel(y.current.update))})),(0,bt.useEffect)(g,[]),gn(()=>()=>{let S=y.current;Y(S.deps,M=>Ft(M,S))});let v=t.getComponentProps(f.getValue());return Mf.createElement(e,yn({},v,{ref:c}))})},aa=class{constructor(t,r){this.update=t,this.deps=r}eventObserved(t){t.type=="change"&&q.write(this.update)}};function uy(e,t){let r=new Set;return vn.dependencies=r,e.style&&(e=yn({},e,{style:t.createAnimatedStyle(e.style)})),e=new Yt(e),vn.dependencies=null,[e,r]}function fy(e,t){return e&&(E.fun(e)?e(t):e.current=t),t}var Sf=Symbol.for("AnimatedComponent"),Af=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new Yt(i),getComponentProps:o=i=>i}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:o},l=c=>{let f=Cf(c)||"Anonymous";return E.str(c)?c=l[c]||(l[c]=kf(c,i)):c=c[Sf]||(c[Sf]=kf(c,i)),c.displayName=`Animated(${f})`,c};return He(e,(c,f)=>{E.arr(e)&&(f=Cf(c)),l[f]=l(c)}),{animated:l}},Cf=e=>E.str(e)?e:e&&E.str(e.displayName)?e.displayName:E.fun(e)&&e.name||null;function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ae.apply(this,arguments)}function Zt(e,...t){return E.fun(e)?e(...t):e}var eo=(e,t)=>e===!0||!!(t&&e&&(E.fun(e)?e(t):je(e).includes(t))),If=(e,t)=>E.obj(e)?t&&e[t]:e,Nf=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,dy=e=>e,xa=(e,t=dy)=>{let r=py;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));let o={};for(let i of r){let l=t(e[i],i);E.und(l)||(o[i]=l)}return o},py=["config","onProps","onStart","onChange","onPause","onResume","onRest"],hy={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 my(e){let t={},r=0;if(He(e,(o,i)=>{hy[i]||(t[i]=o,r++)}),r)return t}function Gf(e){let t=my(e);if(t){let r={to:t};return He(e,(o,i)=>i in t||(r[i]=o)),r}return Ae({},e)}function to(e){return e=Oe(e),E.arr(e)?e.map(to):Cr(e)?ze.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function gy(e){for(let t in e)return!0;return!1}function ca(e){return E.fun(e)||E.arr(e)&&E.obj(e[0])}function by(e,t){var r;(r=e.ref)==null||r.delete(e),t?.delete(e)}function vy(e,t){if(t&&e.ref!==t){var r;(r=e.ref)==null||r.delete(e),t.add(e),e.ref=t}}var yy={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Cn=1.70158,kn=Cn*1.525,Tf=Cn+1,Lf=2*Math.PI/3,_f=2*Math.PI/4.5,Sn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,xy={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=>Tf*e*e*e-Cn*e*e,easeOutBack:e=>1+Tf*Math.pow(e-1,3)+Cn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((kn+1)*2*e-kn)/2:(Math.pow(2*e-2,2)*((kn+1)*(e*2-2)+kn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Lf),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Lf)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*_f))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*_f)/2+1,easeInBounce:e=>1-Sn(1-e),easeOutBounce:Sn,easeInOutBounce:e=>e<.5?(1-Sn(1-2*e))/2:(1+Sn(2*e-1))/2},ua=Ae({},yy.default,{mass:1,damping:1,easing:xy.linear,clamp:!1}),fa=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,ua)}};function wy(e,t,r){r&&(r=Ae({},r),Pf(r,t),t=Ae({},r,t)),Pf(e,t),Object.assign(e,t);for(let c in ua)e[c]==null&&(e[c]=ua[c]);let{mass:o,frequency:i,damping:l}=e;return E.und(i)||(i<.01&&(i=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/i,2)*o,e.friction=4*Math.PI*l*o/i),e}function Pf(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 Of=[],da=class{constructor(){this.changed=!1,this.values=Of,this.toValues=null,this.fromValues=Of,this.to=void 0,this.from=void 0,this.config=new fa,this.immediate=!1}};function Hf(e,{key:t,props:r,defaultProps:o,state:i,actions:l}){return new Promise((c,f)=>{var h;let p,g,k=eo((h=r.cancel)!=null?h:o?.cancel,t);if(k)S();else{E.und(r.pause)||(i.paused=eo(r.pause,t));let M=o?.pause;M!==!0&&(M=i.paused||eo(M,t)),p=Zt(r.delay||0,t),M?(i.resumeQueue.add(v),l.pause()):(l.resume(),v())}function y(){i.resumeQueue.add(v),i.timeouts.delete(g),g.cancel(),p=g.time-q.now()}function v(){p>0&&!ze.skipAnimation?(i.delayed=!0,g=q.setTimeout(S,p),i.pauseQueue.add(y),i.timeouts.add(g)):S()}function S(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(y),i.timeouts.delete(g),e<=(i.cancelId||0)&&(k=!0);try{l.start(Ae({},r,{callId:e,cancel:k}),c)}catch(M){f(M)}}})}var wa=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?Ar(e.get()):t.every(r=>r.noop)?zf(e.get()):rt(e.get(),t.every(r=>r.finished)),zf=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),rt=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Ar=e=>({value:e,cancelled:!0,finished:!1});function qf(e,t,r,o){let{callId:i,parentId:l,onRest:c}=t,{asyncTo:f,promise:h}=r;return!l&&e===f&&!t.reset?h:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;let p=xa(t,(P,j)=>j==="onRest"?void 0:P),g,k,y=new Promise((P,j)=>(g=P,k=j)),v=P=>{let j=i<=(r.cancelId||0)&&Ar(o)||i!==r.asyncId&&rt(o,!1);if(j)throw P.result=j,k(P),P},S=(P,j)=>{let B=new Mn,H=new An;return(async()=>{if(ze.skipAnimation)throw ro(r),H.result=rt(o,!1),k(H),H;v(B);let _=E.obj(P)?Ae({},P):Ae({},j,{to:P});_.parentId=i,He(p,($,ie)=>{E.und(_[ie])&&(_[ie]=$)});let W=await o.start(_);return v(B),r.paused&&await new Promise($=>{r.resumeQueue.add($)}),W})()},M;if(ze.skipAnimation)return ro(r),rt(o,!1);try{let P;E.arr(e)?P=(async j=>{for(let B of j)await S(B)})(e):P=Promise.resolve(e(S,o.stop.bind(o))),await Promise.all([P.then(g),y]),M=rt(o.get(),!0,!1)}catch(P){if(P instanceof Mn)M=P.result;else if(P instanceof An)M=P.result;else throw P}finally{i==r.asyncId&&(r.asyncId=l,r.asyncTo=l?f:void 0,r.promise=l?h:void 0)}return E.fun(c)&&q.batchedUpdates(()=>{c(M,o,o.item)}),M})()}function ro(e,t){wr(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Mn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}},An=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},pa=e=>e instanceof oo,ky=1,oo=class extends xr{constructor(...t){super(...t),this.id=ky++,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=tt(this);return t&&t.getValue()}to(...t){return ze.to(this,t)}interpolate(...t){return yf(),ze.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){Kt(this,{type:"change",parent:this,value:t,idle:r})}_onPriorityChange(t){this.idle||Sr.sort(this),Kt(this,{type:"priority",parent:this,priority:t})}},er=Symbol.for("SpringPhase"),Vf=1,ha=2,ma=4,la=e=>(e[er]&Vf)>0,Bt=e=>(e[er]&ha)>0,Kr=e=>(e[er]&ma)>0,Ef=(e,t)=>t?e[er]|=ha|Vf:e[er]&=~ha,Rf=(e,t)=>t?e[er]|=ma:e[er]&=~ma,ga=class extends oo{constructor(t,r){if(super(),this.key=void 0,this.animation=new da,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)?Ae({},t):Ae({},r,{from:t});E.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(Bt(this)||this._state.asyncTo)||Kr(this)}get goal(){return Oe(this.animation.to)}get velocity(){let t=tt(this);return t instanceof vt?t.lastVelocity||0:t.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return la(this)}get isAnimating(){return Bt(this)}get isPaused(){return Kr(this)}get isDelayed(){return this._state.delayed}advance(t){let r=!0,o=!1,i=this.animation,{config:l,toValues:c}=i,f=Jr(i.to);!f&&De(i.to)&&(c=je(Oe(i.to))),i.values.forEach((g,k)=>{if(g.done)return;let y=g.constructor==yt?1:f?f[k].lastPosition:c[k],v=i.immediate,S=y;if(!v){if(S=g.lastPosition,l.tension<=0){g.done=!0;return}let M=g.elapsedTime+=t,P=i.fromValues[k],j=g.v0!=null?g.v0:g.v0=E.arr(l.velocity)?l.velocity[k]:l.velocity,B,H=l.precision||(P==y?.005:Math.min(1,Math.abs(y-P)*.001));if(E.und(l.duration))if(l.decay){let _=l.decay===!0?.998:l.decay,W=Math.exp(-(1-_)*M);S=P+j/(1-_)*(1-W),v=Math.abs(g.lastPosition-S)<=H,B=j*W}else{B=g.lastVelocity==null?j:g.lastVelocity;let _=l.restVelocity||H/10,W=l.clamp?0:l.bounce,$=!E.und(W),ie=P==y?g.v0>0:P<y,ae,me=!1,fe=1,be=Math.ceil(t/fe);for(let we=0;we<be&&(ae=Math.abs(B)>_,!(!ae&&(v=Math.abs(y-S)<=H,v)));++we){$&&(me=S==y||S>y==ie,me&&(B=-B*W,S=y));let $e=-l.tension*1e-6*(S-y),Ct=-l.friction*.001*B,ut=($e+Ct)/l.mass;B=B+ut*fe,S=S+B*fe}}else{let _=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,g.durationProgress>0&&(g.elapsedTime=l.duration*g.durationProgress,M=g.elapsedTime+=t)),_=(l.progress||0)+M/this._memoizedDuration,_=_>1?1:_<0?0:_,g.durationProgress=_),S=P+l.easing(_)*(y-P),B=(S-g.lastPosition)/t,v=_==1}g.lastVelocity=B,Number.isNaN(S)&&(console.warn("Got NaN while animating:",this),v=!0)}f&&!f[k].done&&(v=!1),v?g.done=!0:r=!1,g.setValue(S,l.round)&&(o=!0)});let h=tt(this),p=h.getValue();if(r){let g=Oe(i.to);(p!==g||o)&&!l.decay?(h.setValue(g),this._onChange(g)):o&&l.decay&&this._onChange(p),this._stop()}else o&&this._onChange(p)}set(t){return q.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Bt(this)){let{to:t,config:r}=this.animation;q.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:Ae({},r,{to:t})],Promise.all(o.map(i=>this._update(i))).then(i=>wa(this,i))}stop(t){let{to:r}=this.animation;return this._focus(this.get()),ro(this._state,t&&this._lastCallId),q.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||ca(o))&&(o=void 0),i=E.obj(i)?i[r]:i,i==null&&(i=void 0);let l={to:o,from:i};return la(this)||(t.reverse&&([o,i]=[i,o]),i=Oe(i),E.und(i)?tt(this)||this._set(o):this._set(i)),l}_update(t,r){let o=Ae({},t),{key:i,defaultProps:l}=this;o.default&&Object.assign(l,xa(o,(h,p)=>/^on/.test(p)?If(h,i):h)),jf(this,o,"onProps"),Zr(this,"onProps",o,this);let c=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let f=this._state;return Hf(++this._lastCallId,{key:i,props:o,defaultProps:l,state:f,actions:{pause:()=>{Kr(this)||(Rf(this,!0),kr(f.pauseQueue),Zr(this,"onPause",rt(this,Yr(this,this.animation.to)),this))},resume:()=>{Kr(this)&&(Rf(this,!1),Bt(this)&&this._resume(),kr(f.resumeQueue),Zr(this,"onResume",rt(this,Yr(this,this.animation.to)),this))},start:this._merge.bind(this,c)}}).then(h=>{if(o.loop&&h.finished&&!(r&&h.noop)){let p=Uf(o);if(p)return this._update(p,!0)}return h})}_merge(t,r,o){if(r.cancel)return this.stop(!0),o(Ar(this));let i=!E.und(t.to),l=!E.und(t.from);if(i||l)if(r.callId>this._lastToId)this._lastToId=r.callId;else return o(Ar(this));let{key:c,defaultProps:f,animation:h}=this,{to:p,from:g}=h,{to:k=p,from:y=g}=t;l&&!i&&(!r.default||E.und(k))&&(k=y),r.reverse&&([k,y]=[y,k]);let v=!lt(y,g);v&&(h.from=y),y=Oe(y);let S=!lt(k,p);S&&this._focus(k);let M=ca(r.to),{config:P}=h,{decay:j,velocity:B}=P;(i||l)&&(P.velocity=0),r.config&&!M&&wy(P,Zt(r.config,c),r.config!==f.config?Zt(f.config,c):void 0);let H=tt(this);if(!H||E.und(k))return o(rt(this,!0));let _=E.und(r.reset)?l&&!r.default:!E.und(y)&&eo(r.reset,c),W=_?y:this.get(),$=to(k),ie=E.num($)||E.arr($)||Cr($),ae=!M&&(!ie||eo(f.immediate||r.immediate,c));if(S){let we=wn(k);if(we!==H.constructor)if(ae)H=this._set($);else throw Error(`Cannot animate between ${H.constructor.name} and ${we.name}, as the "to" prop suggests`)}let me=H.constructor,fe=De(k),be=!1;if(!fe){let we=_||!la(this)&&v;(S||we)&&(be=lt(to(W),$),fe=!be),(!lt(h.immediate,ae)&&!ae||!lt(P.decay,j)||!lt(P.velocity,B))&&(fe=!0)}if(be&&Bt(this)&&(h.changed&&!_?fe=!0:fe||this._stop(p)),!M&&((fe||De(p))&&(h.values=H.getPayload(),h.toValues=De(k)?null:me==yt?[1]:je($)),h.immediate!=ae&&(h.immediate=ae,!ae&&!_&&this._set(p)),fe)){let{onRest:we}=h;Y(Cy,Ct=>jf(this,r,Ct));let $e=rt(this,Yr(this,p));kr(this._pendingCalls,$e),this._pendingCalls.add(o),h.changed&&q.batchedUpdates(()=>{h.changed=!_,we?.($e,this),_?Zt(f.onRest,$e):h.onStart==null||h.onStart($e,this)})}_&&this._set(W),M?o(qf(r.to,r,this._state,this)):fe?this._start():Bt(this)&&!S?this._pendingCalls.add(o):o(zf(W))}_focus(t){let r=this.animation;t!==r.to&&(oa(this)&&this._detach(),r.to=t,oa(this)&&this._attach())}_attach(){let t=0,{to:r}=this.animation;De(r)&&(gt(r,this),pa(r)&&(t=r.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;De(t)&&Ft(t,this)}_set(t,r=!0){let o=Oe(t);if(!E.und(o)){let i=tt(this);if(!i||!lt(o,i.getValue())){let l=wn(o);!i||i.constructor!=l?xn(this,l.create(o)):i.setValue(o),i&&q.batchedUpdates(()=>{this._onChange(o,r)})}}return tt(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,Zr(this,"onStart",rt(this,Yr(this,t.to)),this))}_onChange(t,r){r||(this._onStart(),Zt(this.animation.onChange,t,this)),Zt(this.defaultProps.onChange,t,this),super._onChange(t,r)}_start(){let t=this.animation;tt(this).reset(Oe(t.to)),t.immediate||(t.fromValues=t.values.map(r=>r.lastPosition)),Bt(this)||(Ef(this,!0),Kr(this)||this._resume())}_resume(){ze.skipAnimation?this.finish():Sr.start(this)}_stop(t,r){if(Bt(this)){Ef(this,!1);let o=this.animation;Y(o.values,l=>{l.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),Kt(this,{type:"idle",parent:this});let i=r?Ar(this.get()):rt(this.get(),Yr(this,t??o.to));kr(this._pendingCalls,i),o.changed&&(o.changed=!1,Zr(this,"onRest",i,this))}}};function Yr(e,t){let r=to(t),o=to(e.get());return lt(o,r)}function Uf(e,t=e.loop,r=e.to){let o=Zt(t);if(o){let i=o!==!0&&Gf(o),l=(i||e).reverse,c=!i||i.reset;return no(Ae({},e,{loop:t,default:!1,pause:void 0,to:!l||ca(r)?r:void 0,from:c?e.from:void 0,reset:c},i))}}function no(e){let{to:t,from:r}=e=Gf(e),o=new Set;return E.obj(t)&&$f(t,o),E.obj(r)&&$f(r,o),e.keys=o.size?Array.from(o):null,e}function Sy(e){let t=no(e);return E.und(t.default)&&(t.default=xa(t)),t}function $f(e,t){He(e,(r,o)=>r!=null&&t.add(o))}var Cy=["onStart","onRest","onChange","onPause","onResume"];function jf(e,t,r){e.animation[r]=t[r]!==Nf(t,r)?If(t[r],e.key):void 0}function Zr(e,t,...r){var o,i,l,c;(o=(i=e.animation)[t])==null||o.call(i,...r),(l=(c=e.defaultProps)[t])==null||l.call(c,...r)}var My=["onStart","onChange","onRest"],Ay=1,ba=class{constructor(t,r){this.id=Ay++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),r&&(this._flush=r),t&&this.start(Ae({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){let t={};return this.each((r,o)=>t[o]=r.get()),t}set(t){for(let r in t){let o=t[r];E.und(o)||this.springs[r].set(o)}}update(t){return t&&this.queue.push(no(t)),this}start(t){let{queue:r}=this;return t?r=je(t).map(no):this.queue=[],this._flush?this._flush(this,r):(Kf(this,r),va(this,r))}stop(t,r){if(t!==!!t&&(r=t),r){let o=this.springs;Y(je(r),i=>o[i].stop(!!t))}else ro(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(je(t),o=>r[o].pause())}return this}resume(t){if(E.und(t))this.start({pause:!1});else{let r=this.springs;Y(je(t),o=>r[o].resume())}return this}each(t){He(this.springs,t)}_onFrame(){let{onStart:t,onChange:r,onRest:o}=this._events,i=this._active.size>0,l=this._changed.size>0;(i&&!this._started||l&&!this._started)&&(this._started=!0,wr(t,([h,p])=>{p.value=this.get(),h(p,this,this._item)}));let c=!i&&this._started,f=l||c&&o.size?this.get():null;l&&r.size&&wr(r,([h,p])=>{p.value=f,h(p,this,this._item)}),c&&(this._started=!1,wr(o,([h,p])=>{p.value=f,h(p,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;q.onFrame(this._onFrame)}};function va(e,t){return Promise.all(t.map(r=>Wf(e,r))).then(r=>wa(e,r))}async function Wf(e,t,r){let{keys:o,to:i,from:l,loop:c,onRest:f,onResolve:h}=t,p=E.obj(t.default)&&t.default;c&&(t.loop=!1),i===!1&&(t.to=null),l===!1&&(t.from=null);let g=E.arr(i)||E.fun(i)?i:void 0;g?(t.to=void 0,t.onRest=void 0,p&&(p.onRest=void 0)):Y(My,M=>{let P=t[M];if(E.fun(P)){let j=e._events[M];t[M]=({finished:B,cancelled:H})=>{let _=j.get(P);_?(B||(_.finished=!1),H&&(_.cancelled=!0)):j.set(P,{value:null,finished:B||!1,cancelled:H||!1})},p&&(p[M]=t[M])}});let k=e._state;t.pause===!k.paused?(k.paused=t.pause,kr(t.pause?k.pauseQueue:k.resumeQueue)):k.paused&&(t.pause=!0);let y=(o||Object.keys(e.springs)).map(M=>e.springs[M].start(t)),v=t.cancel===!0||Nf(t,"cancel")===!0;(g||v&&k.asyncId)&&y.push(Hf(++e._lastAsyncId,{props:t,state:k,actions:{pause:fn,resume:fn,start(M,P){v?(ro(k,e._lastAsyncId),P(Ar(e))):(M.onRest=f,P(qf(g,M,k,e)))}}})),k.paused&&await new Promise(M=>{k.resumeQueue.add(M)});let S=wa(e,await Promise.all(y));if(c&&S.finished&&!(r&&S.noop)){let M=Uf(t,c,i);if(M)return Kf(e,[M]),Wf(e,M,!0)}return h&&q.batchedUpdates(()=>h(S,e,e.item)),S}function Df(e,t){let r=Ae({},e.springs);return t&&Y(je(t),o=>{E.und(o.keys)&&(o=no(o)),E.obj(o.to)||(o=Ae({},o,{to:void 0})),Jf(r,o,i=>Qf(i))}),Xf(e,r),r}function Xf(e,t){He(t,(r,o)=>{e.springs[o]||(e.springs[o]=r,gt(r,e))})}function Qf(e,t){let r=new ga;return r.key=e,t&>(r,t),r}function Jf(e,t,r){t.keys&&Y(t.keys,o=>{(e[o]||(e[o]=r(o)))._prepareNode(t)})}function Kf(e,t){Y(t,r=>{Jf(e.springs,r,o=>Qf(o,e))})}function Ty(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ly=["children"],Ln=e=>{let{children:t}=e,r=Ty(e,Ly),o=(0,Ue.useContext)(Tn),i=r.pause||!!o.pause,l=r.immediate||!!o.immediate;r=wf(()=>({pause:i,immediate:l}),[i,l]);let{Provider:c}=Tn;return io.createElement(c,{value:r},t)},Tn=_y(Ln,{});Ln.Provider=Tn.Provider;Ln.Consumer=Tn.Consumer;function _y(e,t){return Object.assign(e,io.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Py=()=>{let e=[],t=function(i){xf();let l=[];return Y(e,(c,f)=>{if(E.und(i))l.push(c.start());else{let h=r(i,c,f);h&&l.push(c.start(h))}}),l};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){let i=e.indexOf(o);~i&&e.splice(i,1)},t.pause=function(){return Y(e,o=>o.pause(...arguments)),this},t.resume=function(){return Y(e,o=>o.resume(...arguments)),this},t.set=function(o){Y(e,i=>i.set(o))},t.start=function(o){let i=[];return Y(e,(l,c)=>{if(E.und(o))i.push(l.start());else{let f=this._getProps(o,l,c);f&&i.push(l.start(f))}}),i},t.stop=function(){return Y(e,o=>o.stop(...arguments)),this},t.update=function(o){return Y(e,(i,l)=>i.update(this._getProps(o,i,l))),this};let r=function(i,l,c){return E.fun(i)?i(c,l):i};return t._getProps=r,t};function Oy(e,t,r){let o=E.fun(t)&&t;o&&!r&&(r=[]);let i=(0,Ue.useMemo)(()=>o||arguments.length==3?Py():void 0,[]),l=(0,Ue.useRef)(0),c=mn(),f=(0,Ue.useMemo)(()=>({ctrls:[],queue:[],flush(j,B){let H=Df(j,B);return l.current>0&&!f.queue.length&&!Object.keys(H).some(W=>!j.springs[W])?va(j,B):new Promise(W=>{Xf(j,H),f.queue.push(()=>{W(va(j,B))}),c()})}}),[]),h=(0,Ue.useRef)([...f.ctrls]),p=[],g=ia(e)||0;(0,Ue.useMemo)(()=>{Y(h.current.slice(e,g),j=>{by(j,i),j.stop(!0)}),h.current.length=e,k(g,e)},[e]),(0,Ue.useMemo)(()=>{k(0,Math.min(g,e))},r);function k(j,B){for(let H=j;H<B;H++){let _=h.current[H]||(h.current[H]=new ba(null,f.flush)),W=o?o(H,_):t[H];W&&(p[H]=Sy(W))}}let y=h.current.map((j,B)=>Df(j,p[B])),v=(0,Ue.useContext)(Ln),S=ia(v),M=v!==S&&gy(v);Mr(()=>{l.current++,f.ctrls=h.current;let{queue:j}=f;j.length&&(f.queue=[],Y(j,B=>B())),Y(h.current,(B,H)=>{i?.add(B),M&&B.start({default:v});let _=p[H];_&&(vy(B,_.ref),B.ref?B.queue.push(_):B.start(_))})}),gn(()=>()=>{Y(f.ctrls,j=>j.stop(!0))});let P=y.map(j=>Ae({},j));return i?[P,i]:P}function Yf(e,t){let r=E.fun(e),[[o],i]=Oy(1,r?e:[e],r?t||[]:t);return r||arguments.length==2?[o,i]:o}var Ff;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Ff||(Ff={}));var ya=class extends oo{constructor(t,r){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Dt(...r);let o=this._get(),i=wn(o);xn(this,i.create(o))}advance(t){let r=this._get(),o=this.get();lt(r,o)||(tt(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&Bf(this._active)&&sa(this)}_get(){let t=E.arr(this.source)?this.source.map(Oe):je(Oe(this.source));return this.calc(...t)}_start(){this.idle&&!Bf(this._active)&&(this.idle=!1,Y(Jr(this),t=>{t.done=!1}),ze.skipAnimation?(q.batchedUpdates(()=>this.advance()),sa(this)):Sr.start(this))}_attach(){let t=1;Y(je(this.source),r=>{De(r)&>(r,this),pa(r)&&(r.idle||this._active.add(r),t=Math.max(t,r.priority+1))}),this.priority=t,this._start()}_detach(){Y(je(this.source),t=>{De(t)&&Ft(t,this)}),this._active.clear(),sa(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=je(this.source).reduce((r,o)=>Math.max(r,(pa(o)?o.priority:0)+1),0))}};function Ey(e){return e.idle!==!1}function Bf(e){return!e.size||Array.from(e).every(Ey)}function sa(e){e.idle||(e.idle=!0,Y(Jr(e),t=>{t.done=!0}),Kt(e,{type:"idle",parent:e}))}ze.assign({createStringInterpolator:hn,to:(e,t)=>new ya(e,t)});var A5=Sr.advance;var ed=R(kb());function Ma(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ry=["style","children","scrollTop","scrollLeft"],td=/^--/;function $y(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!td.test(e)&&!(ao.hasOwnProperty(e)&&ao[e])?t+"px":(""+t).trim()}var Zf={};function jy(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:i,children:l,scrollTop:c,scrollLeft:f}=o,h=Ma(o,Ry),p=Object.values(h),g=Object.keys(h).map(k=>r||e.hasAttribute(k)?k:Zf[k]||(Zf[k]=k.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));l!==void 0&&(e.textContent=l);for(let k in i)if(i.hasOwnProperty(k)){let y=$y(k,i[k]);td.test(k)?e.style.setProperty(k,y):e.style[k]=y}g.forEach((k,y)=>{e.setAttribute(k,p[y])}),c!==void 0&&(e.scrollTop=c),f!==void 0&&(e.scrollLeft=f)}var ao={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dy=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Fy=["Webkit","Ms","Moz","O"];ao=Object.keys(ao).reduce((e,t)=>(Fy.forEach(r=>e[Dy(r,t)]=e[t]),e),ao);var By=["x","y","z"],Iy=/^(matrix|translate|scale|rotate|skew)/,Ny=/^(translate)/,Gy=/^(rotate|skew)/,ka=(e,t)=>E.num(e)&&e!==0?e+t:e,_n=(e,t)=>E.arr(e)?e.every(r=>_n(r,t)):E.num(e)?e===t:parseFloat(e)===t,Sa=class extends Yt{constructor(t){let{x:r,y:o,z:i}=t,l=Ma(t,By),c=[],f=[];(r||o||i)&&(c.push([r||0,o||0,i||0]),f.push(h=>[`translate3d(${h.map(p=>ka(p,"px")).join(",")})`,_n(h,0)])),He(l,(h,p)=>{if(p==="transform")c.push([h||""]),f.push(g=>[g,g===""]);else if(Iy.test(p)){if(delete l[p],E.und(h))return;let g=Ny.test(p)?"px":Gy.test(p)?"deg":"";c.push(je(h)),f.push(p==="rotate3d"?([k,y,v,S])=>[`rotate3d(${k},${y},${v},${ka(S,g)})`,_n(S,0)]:k=>[`${p}(${k.map(y=>ka(y,g)).join(",")})`,_n(k,p.startsWith("scale")?1:0)])}}),c.length&&(l.transform=new Ca(c,f)),super(l)}},Ca=class extends xr{constructor(t,r){super(),this._value=null,this.inputs=t,this.transforms=r}get(){return this._value||(this._value=this._get())}_get(){let t="",r=!0;return Y(this.inputs,(o,i)=>{let l=Oe(o[0]),[c,f]=this.transforms[i](E.arr(l)?l:o.map(Oe));t+=" "+c,r=r&&f}),r?"none":t}observerAdded(t){t==1&&Y(this.inputs,r=>Y(r,o=>De(o)&>(o,this)))}observerRemoved(t){t==0&&Y(this.inputs,r=>Y(r,o=>De(o)&&Ft(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Kt(this,t)}},Hy=["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"],zy=["scrollTop","scrollLeft"];ze.assign({batchedUpdates:ed.unstable_batchedUpdates,createStringInterpolator:hn,colors:mf});var qy=Af(Hy,{applyAnimatedValues:jy,createAnimatedStyle:e=>new Sa(e),getComponentProps:e=>Ma(e,zy)}),lo=qy.animated;var On=R(ee());var sd=R(ld());function cd(){let{ref:e,width:t,height:r}=(0,sd.useComponentSize)();return(0,On.useMemo)(()=>[e,{width:t,height:r}],[e,t,r])}function ud(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function so(e){let{animationsEnabled:t}=_e(),[r,o]=Wt(!0);return(0,On.useEffect)(()=>{setTimeout(()=>o(!1),0)},[o]),Yf({...typeof e=="object"?e:{},immediate:r||!t})}function rx(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 fd(){return this.eachAfter(rx)}function dd(e,t){let r=-1;for(let o of this)e.call(t,o,++r,this);return this}function pd(e,t){for(var r=this,o=[r],i,l,c=-1;r=o.pop();)if(e.call(t,r,++c,this),i=r.children)for(l=i.length-1;l>=0;--l)o.push(i[l]);return this}function hd(e,t){for(var r=this,o=[r],i=[],l,c,f,h=-1;r=o.pop();)if(i.push(r),l=r.children)for(c=0,f=l.length;c<f;++c)o.push(l[c]);for(;r=i.pop();)e.call(t,r,++h,this);return this}function md(e,t){let r=-1;for(let o of this)if(e.call(t,o,++r,this))return o}function gd(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,o=t.children,i=o&&o.length;--i>=0;)r+=o[i].value;t.value=r})}function bd(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function vd(e){for(var t=this,r=ox(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 ox(e,t){if(e===t)return e;var r=e.ancestors(),o=t.ancestors(),i=null;for(e=r.pop(),t=o.pop();e===t;)i=e,e=r.pop(),t=o.pop();return i}function yd(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function xd(){return Array.from(this)}function wd(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function kd(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*Sd(){var e=this,t,r=[e],o,i,l;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,o=e.children)for(i=0,l=o.length;i<l;++i)r.push(o[i]);while(r.length)}function Lr(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=ax)):t===void 0&&(t=ix);for(var r=new co(e),o,i=[r],l,c,f,h;o=i.pop();)if((c=t(o.data))&&(h=(c=Array.from(c)).length))for(o.children=c,f=h-1;f>=0;--f)i.push(l=c[f]=new co(c[f])),l.parent=o,l.depth=o.depth+1;return r.eachBefore(sx)}function nx(){return Lr(this).eachBefore(lx)}function ix(e){return e.children}function ax(e){return Array.isArray(e)?e[1]:null}function lx(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function sx(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function co(e){this.data=e,this.depth=this.height=0,this.parent=null}co.prototype=Lr.prototype={constructor:co,count:fd,each:dd,eachAfter:hd,eachBefore:pd,find:md,sum:gd,sort:bd,path:vd,ancestors:yd,descendants:xd,leaves:wd,links:kd,copy:nx,[Symbol.iterator]:Sd};function Cd(e){return e==null?null:_a(e)}function _a(e){if(typeof e!="function")throw new Error;return e}function wt(){return 0}function It(e){return function(){return e}}function Md(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function Ad(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Td(e,t){let r=e.length,o,i;for(;r;)i=t()*r--|0,o=e[r],e[r]=e[i],e[i]=o;return e}function Ld(e,t){for(var r=0,o=(e=Td(Array.from(e),t)).length,i=[],l,c;r<o;)l=e[r],c&&_d(c,l)?++r:(c=ux(i=cx(i,l)),r=0);return c}function cx(e,t){var r,o;if(Pa(t,e))return[t];for(r=0;r<e.length;++r)if(En(t,e[r])&&Pa(uo(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(o=r+1;o<e.length;++o)if(En(uo(e[r],e[o]),t)&&En(uo(e[r],t),e[o])&&En(uo(e[o],t),e[r])&&Pa(Pd(e[r],e[o],t),e))return[e[r],e[o],t];throw new Error}function En(e,t){var r=e.r-t.r,o=t.x-e.x,i=t.y-e.y;return r<0||r*r<o*o+i*i}function _d(e,t){var r=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,o=t.x-e.x,i=t.y-e.y;return r>0&&r*r>o*o+i*i}function Pa(e,t){for(var r=0;r<t.length;++r)if(!_d(e,t[r]))return!1;return!0}function ux(e){switch(e.length){case 1:return fx(e[0]);case 2:return uo(e[0],e[1]);case 3:return Pd(e[0],e[1],e[2])}}function fx(e){return{x:e.x,y:e.y,r:e.r}}function uo(e,t){var r=e.x,o=e.y,i=e.r,l=t.x,c=t.y,f=t.r,h=l-r,p=c-o,g=f-i,k=Math.sqrt(h*h+p*p);return{x:(r+l+h/k*g)/2,y:(o+c+p/k*g)/2,r:(k+i+f)/2}}function Pd(e,t,r){var o=e.x,i=e.y,l=e.r,c=t.x,f=t.y,h=t.r,p=r.x,g=r.y,k=r.r,y=o-c,v=o-p,S=i-f,M=i-g,P=h-l,j=k-l,B=o*o+i*i-l*l,H=B-c*c-f*f+h*h,_=B-p*p-g*g+k*k,W=v*S-y*M,$=(S*_-M*H)/(W*2)-o,ie=(M*P-S*j)/W,ae=(v*H-y*_)/(W*2)-i,me=(y*j-v*P)/W,fe=ie*ie+me*me-1,be=2*(l+$*ie+ae*me),we=$*$+ae*ae-l*l,$e=-(Math.abs(fe)>1e-6?(be+Math.sqrt(be*be-4*fe*we))/(2*fe):we/be);return{x:o+$+ie*$e,y:i+ae+me*$e,r:$e}}function Od(e,t,r){var o=e.x-t.x,i,l,c=e.y-t.y,f,h,p=o*o+c*c;p?(l=t.r+r.r,l*=l,h=e.r+r.r,h*=h,l>h?(i=(p+h-l)/(2*p),f=Math.sqrt(Math.max(0,h/p-i*i)),r.x=e.x-i*o-f*c,r.y=e.y-i*c+f*o):(i=(p+l-h)/(2*p),f=Math.sqrt(Math.max(0,l/p-i*i)),r.x=t.x+i*o-f*c,r.y=t.y+i*c+f*o)):(r.x=t.x+r.r,r.y=t.y)}function Ed(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 Rd(e){var t=e._,r=e.next._,o=t.r+r.r,i=(t.x*r.r+r.x*t.r)/o,l=(t.y*r.r+r.y*t.r)/o;return i*i+l*l}function Rn(e){this._=e,this.next=null,this.previous=null}function $d(e,t){if(!(l=(e=Ad(e)).length))return 0;var r,o,i,l,c,f,h,p,g,k,y;if(r=e[0],r.x=0,r.y=0,!(l>1))return r.r;if(o=e[1],r.x=-o.r,o.x=r.r,o.y=0,!(l>2))return r.r+o.r;Od(o,r,i=e[2]),r=new Rn(r),o=new Rn(o),i=new Rn(i),r.next=i.previous=o,o.next=r.previous=i,i.next=o.previous=r;e:for(h=3;h<l;++h){Od(r._,o._,i=e[h]),i=new Rn(i),p=o.next,g=r.previous,k=o._.r,y=r._.r;do if(k<=y){if(Ed(p._,i._)){o=p,r.next=o,o.previous=r,--h;continue e}k+=p._.r,p=p.next}else{if(Ed(g._,i._)){r=g,r.next=o,o.previous=r,--h;continue e}y+=g._.r,g=g.previous}while(p!==g.next);for(i.previous=r,i.next=o,r.next=o.previous=o=i,c=Rd(r);(i=i.next)!==o;)(f=Rd(i))<c&&(r=i,c=f);o=r.next}for(r=[o._],i=o;(i=i.next)!==o;)r.push(i._);for(i=Ld(r,t),h=0;h<l;++h)r=e[h],r.x-=i.x,r.y-=i.y;return i.r}function dx(e){return Math.sqrt(e.value)}function Ea(){var e=null,t=1,r=1,o=wt;function i(l){let c=Md();return l.x=t/2,l.y=r/2,e?l.eachBefore(jd(e)).eachAfter(Oa(o,.5,c)).eachBefore(Dd(1)):l.eachBefore(jd(dx)).eachAfter(Oa(wt,1,c)).eachAfter(Oa(o,l.r/Math.min(t,r),c)).eachBefore(Dd(Math.min(t,r)/(2*l.r))),l}return i.radius=function(l){return arguments.length?(e=Cd(l),i):e},i.size=function(l){return arguments.length?(t=+l[0],r=+l[1],i):[t,r]},i.padding=function(l){return arguments.length?(o=typeof l=="function"?l:It(+l),i):o},i}function jd(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Oa(e,t,r){return function(o){if(i=o.children){var i,l,c=i.length,f=e(o)*t||0,h;if(f)for(l=0;l<c;++l)i[l].r+=f;if(h=$d(i,r),f)for(l=0;l<c;++l)i[l].r-=f;o.r=h+f}}}function Dd(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function Fd(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Bd(e,t,r,o,i){for(var l=e.children,c,f=-1,h=l.length,p=e.value&&(o-t)/e.value;++f<h;)c=l[f],c.y0=r,c.y1=i,c.x0=t,c.x1=t+=c.value*p}function Id(e,t,r,o,i){for(var l=e.children,c,f=-1,h=l.length,p=e.value&&(i-r)/e.value;++f<h;)c=l[f],c.x0=t,c.x1=o,c.y0=r,c.y1=r+=c.value*p}var px=(1+Math.sqrt(5))/2;function hx(e,t,r,o,i,l){for(var c=[],f=t.children,h,p,g=0,k=0,y=f.length,v,S,M=t.value,P,j,B,H,_,W,$;g<y;){v=i-r,S=l-o;do P=f[k++].value;while(!P&&k<y);for(j=B=P,W=Math.max(S/v,v/S)/(M*e),$=P*P*W,_=Math.max(B/$,$/j);k<y;++k){if(P+=p=f[k].value,p<j&&(j=p),p>B&&(B=p),$=P*P*W,H=Math.max(B/$,$/j),H>_){P-=p;break}_=H}c.push(h={value:P,dice:v<S,children:f.slice(g,k)}),h.dice?Bd(h,r,o,i,M?o+=S*P/M:l):Id(h,r,o,M?r+=v*P/M:i,l),M-=P,g=k}return c}var Nd=function e(t){function r(o,i,l,c,f){hx(t,o,i,l,c,f)}return r.ratio=function(o){return e((o=+o)>1?o:1)},r}(px);function Ra(){var e=Nd,t=!1,r=1,o=1,i=[0],l=wt,c=wt,f=wt,h=wt,p=wt;function g(y){return y.x0=y.y0=0,y.x1=r,y.y1=o,y.eachBefore(k),i=[0],t&&y.eachBefore(Fd),y}function k(y){var v=i[y.depth],S=y.x0+v,M=y.y0+v,P=y.x1-v,j=y.y1-v;P<S&&(S=P=(S+P)/2),j<M&&(M=j=(M+j)/2),y.x0=S,y.y0=M,y.x1=P,y.y1=j,y.children&&(v=i[y.depth+1]=l(y)/2,S+=p(y)-v,M+=c(y)-v,P-=f(y)-v,j-=h(y)-v,P<S&&(S=P=(S+P)/2),j<M&&(M=j=(M+j)/2),e(y,S,M,P,j))}return g.round=function(y){return arguments.length?(t=!!y,g):t},g.size=function(y){return arguments.length?(r=+y[0],o=+y[1],g):[r,o]},g.tile=function(y){return arguments.length?(e=_a(y),g):e},g.padding=function(y){return arguments.length?g.paddingInner(y).paddingOuter(y):g.paddingInner()},g.paddingInner=function(y){return arguments.length?(l=typeof y=="function"?y:It(+y),g):l},g.paddingOuter=function(y){return arguments.length?g.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):g.paddingTop()},g.paddingTop=function(y){return arguments.length?(c=typeof y=="function"?y:It(+y),g):c},g.paddingRight=function(y){return arguments.length?(f=typeof y=="function"?y:It(+y),g):f},g.paddingBottom=function(y){return arguments.length?(h=typeof y=="function"?y:It(+y),g):h},g.paddingLeft=function(y){return arguments.length?(p=typeof y=="function"?y:It(+y),g):p},g}var Nt=R(ee());var $a=hi`
|
|
110
110
|
0% { stroke-width: 1px; stroke-opacity: 0%; }
|
|
111
111
|
50% { stroke-opacity: 50% }
|
|
112
112
|
99% { stroke-width: 5px; stroke-opacity: 0%; }
|
|
@@ -134,27 +134,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
134
134
|
inset: 0;
|
|
135
135
|
pointer-events: none;
|
|
136
136
|
overflow: hidden;
|
|
137
|
-
`;function Hd({hoveredBlob:e}){let t=(0,fo.useRef)(null),{metricType:r,authorshipType:o}
|
|
137
|
+
`;function Hd({hoveredBlob:e}){let t=(0,fo.useRef)(null),{metricType:r,authorshipType:o}=_e(),i=(0,fo.useRef)(document.documentElement),l=wi(i),c=ud("--unit"),f=c?Number(c.replace("px","")):0,[h]=Ye(),p=(0,fo.useMemo)(()=>{var j,B,H;if(!e)return null;let M=(B=(j=h[o])==null?void 0:j.get(r))==null?void 0:B.colormap;return(H=M==null?void 0:M.get(e.path))!=null?H:"grey"},[e,h,r,o]),g=t.current?t.current.getBoundingClientRect().width:0,k=Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--side-panel-width-units"))||0,y=l.docX+g<window.innerWidth-k*f,v=e!==null,S={transform:"none"};return v&&(y?S.transform=`translate(calc(var(--unit) + ${l.docX}px), calc(var(--unit) + ${l.docY}px))`:S.transform=`translate(calc(var(--unit) * -1 + ${l.docX}px - 100%), calc(var(--unit) + ${l.docY}px))`),(0,de.jsx)(gx,{children:(0,de.jsxs)(mx,{ref:t,right:y,visible:v,style:S,children:[p?(0,de.jsx)(ot,{dotColor:p}):null,(0,de.jsx)(G,{horizontal:!0}),(0,de.jsx)(Pt,{children:e==null?void 0:e.name}),(0,de.jsx)(G,{horizontal:!0}),(0,de.jsx)(bx,{metric:r,hoveredBlob:e,authorshipType:o})]})})}function bx(e){var t,r,o,i,l,c,f,h,p,g,k;switch(e.metric){case"MOST_COMMITS":let y=(t=e.hoveredBlob)==null?void 0:t.noCommits;return y?(0,de.jsxs)(de.Fragment,{children:[y," commit",y>1?(0,de.jsx)(de.Fragment,{children:"s"}):null]}):null;case"LAST_CHANGED":let v=(r=e.hoveredBlob)==null?void 0:r.lastChangeEpoch;return v?(0,de.jsx)(de.Fragment,{children:qs(v)}):null;case"SINGLE_AUTHOR":let S=e.hoveredBlob?Object.entries((l=(i=(o=e.hoveredBlob)==null?void 0:o.unionedAuthors)==null?void 0:i[e.authorshipType])!=null?l:[]):[];switch(S.length){case 0:return null;case 1:return(0,de.jsxs)(de.Fragment,{children:[S[0][0]," is the only author"]});default:return(0,de.jsxs)(de.Fragment,{children:[S.length," authors"]})}case"TOP_CONTRIBUTOR":let M=(h=(f=(c=e.hoveredBlob)==null?void 0:c.dominantAuthor)==null?void 0:f.get(e.authorshipType))!=null?h:void 0;return M?(0,de.jsx)(de.Fragment,{children:M[0]}):null;case"TRUCK_FACTOR":let P=Object.entries((k=(g=(p=e.hoveredBlob)==null?void 0:p.unionedAuthors)==null?void 0:g.HISTORICAL)!=null?k:[]).length;switch(P){case 0:return null;case 1:return(0,de.jsx)(de.Fragment,{children:"1 author"});default:return(0,de.jsxs)(de.Fragment,{children:[P," authors"]})}return(0,de.jsx)(de.Fragment,{});default:return null}}var he=R(X()),yx=N.svg`
|
|
138
138
|
display: grid;
|
|
139
139
|
place-items: center;
|
|
140
140
|
padding: ${e=>Wd(e.chartType)}px;
|
|
141
141
|
width: 100%;
|
|
142
142
|
height: 100%;
|
|
143
|
-
`;function Ud(e){let[t,r]=(0,
|
|
143
|
+
`;function Ud(e){let[t,r]=(0,Nt.useState)(null),{analyzerData:o}=Re(),{chartType:i}=_e(),{path:l}=at(),{clickedObject:c,setClickedObject:f}=it(),{setPath:h}=at(),p=(0,Nt.useMemo)(()=>Lx(o.commit,Px(e.size,i),i,l),[i,o.commit,e.size,l]);(0,Nt.useEffect)(()=>r(null),[i,o.commit,e.size]);let g=k=>Ex(k.data)?{onClick:()=>f(k.data),onMouseOver:()=>r(k.data),onMouseOut:()=>r(null)}:{onClick:()=>{f(k.data),h(k.data.path)},onMouseOver:()=>r(null),onMouseOut:()=>r(null)};return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(yx,{chartType:i,xmlns:"http://www.w3.org/2000/svg",viewBox:`0 ${-14} ${e.size.width} ${e.size.height}`,children:p==null?void 0:p.descendants().map((k,y)=>(0,he.jsx)(xx,{blink:(c==null?void 0:c.path)===k.data.path,...g(k),children:(0,he.jsx)(wx,{isRoot:y===0,d:k})},`${i}${k.data.path}`))}),typeof document!="undefined"?(0,he.jsx)(Hd,{hoveredBlob:t}):null]})}var xx=N.g`
|
|
144
144
|
animation-name: ${e=>e.blink?Gd:"none"};
|
|
145
145
|
animation-duration: 2s;
|
|
146
146
|
animation-iteration-count: infinite;
|
|
147
|
-
`,wx=(0,
|
|
147
|
+
`,wx=(0,Nt.memo)(function({d:t,isRoot:r}){var h,p,g,k;let{chartType:o}=_e(),i=Ox(t.data),{path:l}=at(),c=t.data.name;if(r){let y=l.split("/"),v=c.split("/"),S=0,M=0;for(;S<y.length&&M<v.length;)y[S]!==v[M]?S++:(S++,M++);c=v.slice(M-1).join("/")}switch(o){case"BUBBLE_CHART":let y=t;return f(S=>y.r*Math.PI<S.length*7),(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(kx,{d:y,isSearchMatch:(h=t.data.isSearchResult)!=null?h:!1}),i?(0,he.jsx)(Ax,{d:y,displayText:c,isSearchMatch:(p=t.data.isSearchResult)!=null?p:!1}):null]});case"TREE_MAP":let v=t;return f(S=>v.x1-v.x0<c.length*7,S=>v.y1-v.y0<14),(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(Cx,{d:v,isSearchMatch:(g=t.data.isSearchResult)!=null?g:!1}),i?(0,he.jsx)(Tx,{d:v,displayText:c,isSearchMatch:(k=t.data.isSearchResult)!=null?k:!1}):null]});default:throw Error("Unknown chart type")}function f(y,v){y(c)&&(c=c.replace(/\/.+\//gm,"/.../"),y(c)&&(i=!1)),v&&v(c)&&(c=c.replace(/\/.+\//gm,"/.../"),v(c)&&(i=!1))}});function kx({d:e,isSearchMatch:t}){var c,f;let[r]=Ye(),{metricType:o,authorshipType:i}=_e(),l=so({cx:e.x,cy:e.y,r:Math.max(e.r-1,0),stroke:t?mr:"transparent",strokeWidth:"1px",fill:(f=(c=r[i].get(o))==null?void 0:c.colormap.get(e.data.path))!=null?f:"grey"});return(0,he.jsx)(Sx,{pulse:t,...l,className:e.data.type})}var Sx=N(lo.circle)`
|
|
148
148
|
animation-name: ${e=>e.pulse?$a:"none"};
|
|
149
149
|
animation-duration: 1.5s;
|
|
150
150
|
animation-iteration-count: infinite;
|
|
151
151
|
animation-timing-function: ease-in-out;
|
|
152
|
-
`;function Cx({d:e,isSearchMatch:t}){var c,f;let[r]=
|
|
152
|
+
`;function Cx({d:e,isSearchMatch:t}){var c,f;let[r]=Ye(),{metricType:o,authorshipType:i}=_e(),l=so({x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,stroke:t?mr:"transparent",strokeWidth:"1px",fill:e.data.type==="blob"?(f=(c=r[i].get(o))==null?void 0:c.colormap.get(e.data.path))!=null?f:"grey":"transparent"});return(0,he.jsx)(Mx,{pulse:t,...l,className:e.data.type})}var Mx=N(lo.rect)`
|
|
153
153
|
animation-name: ${e=>e.pulse?$a:"none"};
|
|
154
154
|
animation-duration: 1.5s;
|
|
155
155
|
animation-iteration-count: infinite;
|
|
156
156
|
animation-timing-function: ease-in-out;
|
|
157
|
-
`;function Ax({d:e,displayText:t,isSearchMatch:r}){let o=so({d:
|
|
157
|
+
`;function Ax({d:e,displayText:t,isSearchMatch:r}){let o=so({d:_x(e.x,e.y,e.r+0)});return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(lo.path,{...o,id:e.data.path,className:"name-path"}),(0,he.jsx)(Da,{style:{stroke:"var(--global-bg-color)"},strokeWidth:"7",strokeLinecap:"round",children:(0,he.jsx)("textPath",{fill:r?mr:"#333",className:"object-name",startOffset:"50%",dominantBaseline:"central",textAnchor:"middle",xlinkHref:`#${e.data.path}`,children:t})}),(0,he.jsx)(Da,{children:(0,he.jsx)("textPath",{fill:r?mr:"#333",className:"object-name",startOffset:"50%",dominantBaseline:"central",textAnchor:"middle",xlinkHref:`#${e.data.path}`,children:t})})]})}function Tx({d:e,displayText:t,isSearchMatch:r}){let o=so({x:e.x0+4,y:e.y0+12,fill:r?mr:"#333"});return(0,he.jsx)(Da,{...o,className:"object-name",children:t})}function Lx(e,t,r,o){let l=e.tree,c=o.substring(e.tree.name.length+1).split("/");for(let p=0;p<c.length;p++)for(let g of l.children)if(g.type==="tree"){let k=g.name.split("/");if(k[0]===c[p]){l=g,p+=k.length-1;break}}let h=Lr(l).sum(p=>{let g=p.sizeInBytes;return g||1}).sort((p,g)=>g.value!==void 0&&p.value!==void 0?g.value-p.value:0);switch(r){case"TREE_MAP":let g=Ra().size([t.width,t.height]).paddingInner(2).paddingOuter(4).paddingTop(17)(h);return ja(g,v=>{let S=v;return v.data.type==="blob"&&S.x0>=1&&S.y0>=1||v.data.type==="tree"}),g;case"BUBBLE_CHART":let y=Ea().size([t.width,t.height]).padding(10)(h);return ja(y,v=>{let S=v;return v.data.type==="blob"&&S.r>=1||v.data.type==="tree"}),y;default:throw Error("Invalid chart type")}}function ja(e,t){var r,o,i,l;e.children=(r=e.children)==null?void 0:r.filter(c=>t(c));for(let c of(o=e.children)!=null?o:[])((l=(i=c.children)==null?void 0:i.length)!=null?l:0)>0&&ja(c,t)}function _x(e,t,r){return`M${e},${t}
|
|
158
158
|
m0,${r}
|
|
159
159
|
a${r},${r} 0 1,1 0,${-r*2}
|
|
160
160
|
a${r},${r} 0 1,1 0,${r*2}`}function Px(e,t){let r=Wd(t);return{height:e.height-r*2,width:e.width-r*2}}function Wd(e){switch(e){case"BUBBLE_CHART":return 10;case"TREE_MAP":return 17;default:throw new Error("Chart type is invalid")}}var Ox=e=>e.type==="tree",Ex=e=>e.type==="blob",Da=N(lo.text)`
|
|
@@ -195,7 +195,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
195
195
|
display: grid;
|
|
196
196
|
place-items: center;
|
|
197
197
|
overflow: hidden;
|
|
198
|
-
`;function Qd({fullscreenState:[e,t]}){let[r,o]=cd(),{path:i,setPath:l}=
|
|
198
|
+
`;function Qd({fullscreenState:[e,t]}){let[r,o]=cd(),{path:i,setPath:l}=at(),{repo:c}=Re(),f=i,h=[];for(let p=0;p<8&&f!=="";p++){let g=f.lastIndexOf("/");h.push([f.substring(g+1),f]),f=f.substring(0,g)}return f!==""&&(h=h.slice(0,h.length-1),h.push(["...",""]),h.push([c.name,c.name])),(0,Se.jsxs)(Fa,{children:[(0,Se.jsxs)(Rx,{children:[(0,Se.jsx)($x,{children:h.length>1?h.reverse().map(([p,g],k)=>g===""||k===h.length-1?g===""?(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(Xd,{children:p},g),(0,Se.jsx)("span",{children:"\u203A"})]}):(0,Se.jsx)(Xd,{children:p},g):(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(jx,{onClick:()=>l(g),children:p},g),(0,Se.jsx)("span",{children:"\u203A"})]})):null}),(0,Se.jsx)(Fx,{onClick:()=>t(p=>!p),children:e?(0,Se.jsx)(Ss,{display:"inline-block",height:"1.5em"}):(0,Se.jsx)(Cs,{display:"inline-block",height:"1.5em"})})]}),(0,Se.jsx)(Dx,{ref:r,children:(0,Se.jsx)(Ud,{size:o})})]})}var Fx=N.button`
|
|
199
199
|
background: none;
|
|
200
200
|
border: none;
|
|
201
201
|
margin: 0;
|
|
@@ -208,16 +208,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
208
208
|
background-color: white;
|
|
209
209
|
color: var(--text-color);
|
|
210
210
|
}
|
|
211
|
-
`;var
|
|
211
|
+
`;var ct=R(ee());var Bx=typeof window<"u"?ct.default.useLayoutEffect:()=>{},Jd=new Map;function _r(e){let[t,r]=(0,ct.useState)(e),o=(0,ct.useRef)(null),i=ks(t),l=(0,ct.useCallback)(c=>{o.current=c},[]);return Jd.set(i,l),Bx(()=>{let c=i;return()=>{Jd.delete(c)}},[i]),(0,ct.useEffect)(()=>{let c=o.current;c&&(o.current=null,r(c))}),i}var po=new Map,Kd=new Set;function Yd(){if(typeof window>"u")return;let e=r=>{let o=po.get(r.target);o||(o=new Set,po.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{let o=po.get(r.target);if(!!o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),po.delete(r.target)),po.size===0)){for(let i of Kd)i();Kd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Yd():document.addEventListener("DOMContentLoaded",Yd));var TS=typeof window<"u"&&window.visualViewport;var Pr=R(X());function Ba(e){let t=_r(),r=Object.entries(e.enum);return(0,Pr.jsxs)("div",{style:e.hidden?{display:"none"}:{},children:[(0,Pr.jsx)(Ir,{htmlFor:t,children:e.label}),(0,Pr.jsx)(G,{xs:!0}),(0,Pr.jsx)(Is,{id:t,onChange:o=>e.onChange(o.target.value),children:r.map(([o,i])=>(0,Pr.jsx)("option",{value:o,children:i},i))})]})}var kt=R(X()),Ix=N.input`
|
|
212
212
|
margin: var(--unit);
|
|
213
|
-
`;function Zd(){let{animationsEnabled:e,setAnimationsEnabled:t,setMetricType:r,setChartType:o}
|
|
213
|
+
`;function Zd(){let{animationsEnabled:e,setAnimationsEnabled:t,setMetricType:r,setChartType:o}=_e();return(0,kt.jsxs)(xe,{children:[(0,kt.jsx)(Ba,{label:"Chart type",enum:Di,onChange:i=>o(i)}),(0,kt.jsx)(G,{}),(0,kt.jsx)(Ba,{label:"Metric",enum:pr,onChange:i=>r(i)}),(0,kt.jsx)(G,{}),(0,kt.jsxs)("label",{children:[(0,kt.jsx)(Ix,{type:"checkbox",checked:e,onChange:i=>t(i.target.checked)}),(0,kt.jsx)("span",{children:"Enable animations"})]})]})}var St=R(ee());var $n=R(ee()),Ia=(0,$n.createContext)(void 0);function ep(){let e=(0,$n.useContext)(Ia);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e}var Or=R(X());function tp({children:e,data:t}){let[r,o]=(0,St.useState)(null),[i,l]=(0,St.useState)(""),[c,f]=(0,St.useState)([]),[h,p]=(0,St.useState)(t.repo.name),[g,k]=(0,St.useState)(null),y=(0,St.useMemo)(()=>Eu(t.analyzerData),[t]),v=(0,St.useMemo)(()=>({...Et(),...r,setMetricType:S=>o(M=>({...M!=null?M:Et(),metricType:S})),setChartType:S=>o(M=>({...M!=null?M:Et(),chartType:S})),setAuthorshipType:S=>o(M=>({...M!=null?M:Et(),authorshipType:S})),setHoveredBlob:S=>o(M=>({...M!=null?M:Et(),hoveredBlob:S})),setClickedObject:S=>o(M=>({...M!=null?M:Et(),clickedObject:S})),setAnimationsEnabled:S=>o(M=>({...M!=null?M:Et(),animationsEnabled:S}))}),[r]);return(0,Or.jsx)(Ii.Provider,{value:t,children:(0,Or.jsx)(Ci.Provider,{value:y,children:(0,Or.jsx)(Fi.Provider,{value:v,children:(0,Or.jsx)(Ia.Provider,{value:{searchText:i,setSearchText:l,searchResults:c,setSearchResults:f},children:(0,Or.jsx)(Ni.Provider,{value:{path:h,setPath:p},children:(0,Or.jsx)(Bi.Provider,{value:{clickedObject:g,setClickedObject:k},children:e})})})})})})}var Gt=R(ee());var Ie=R(X()),Nx=N(xe)`
|
|
214
214
|
display: flex;
|
|
215
215
|
flex-direction: column;
|
|
216
|
-
`;function Gx(e,t){let r=[];function o(i){for(let l of i.children)l.name.toLowerCase().includes(t.toLowerCase())&&t?(r.push(l),l.isSearchResult=!0):l.isSearchResult=!1,l.type==="tree"&&o(l)}return o(e),r}function Na(){let e=(0,
|
|
216
|
+
`;function Gx(e,t){let r=[];function o(i){for(let l of i.children)l.name.toLowerCase().includes(t.toLowerCase())&&t?(r.push(l),l.isSearchResult=!0):l.isSearchResult=!1,l.type==="tree"&&o(l)}return o(e),r}function Na(){let e=(0,Gt.useRef)(null),{searchText:t,setSearchText:r,searchResults:o,setSearchResults:i}=ep(),[l,c]=(0,Gt.useState)(""),f=_r(),{analyzerData:h}=Re(),{setPath:p}=at(),{setClickedObject:g}=it();function k(v){if(g(v),v.type==="tree")p(v.path);else{let S=Ws(v.path);p(Us(v.path.split(S)).join(S))}}function y(){r(l),i(Gx(h.commit.tree,l))}return $o(()=>y(),200,[l]),(0,Gt.useEffect)(()=>{let v=S=>{var M;S.ctrlKey&&S.key==="f"&&(S.preventDefault(),(M=e.current)==null||M.focus())};return document.body.addEventListener("keydown",v),()=>{document.body.removeEventListener("keydown",v)}},[]),(0,Ie.jsxs)(Nx,{children:[(0,Ie.jsx)(Ds,{ref:e,id:f,value:l,type:"search",placeholder:"Search for a file or folder...",onChange:v=>{c(v.target.value)}}),t.length>0?(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsxs)(Ut,{children:[o.length," results"]}),o.length>0?(0,Ie.jsx)(G,{}):null]}):null,o.map(v=>(0,Ie.jsxs)(Gt.Fragment,{children:[(0,Ie.jsxs)(js,{title:v.path,value:v.path,onClick:()=>k(v),children:[v.type==="tree"?(0,Ie.jsx)(Ao,{display:"inline-block",height:"1rem"}):(0,Ie.jsx)(_s,{display:"inline-block",height:"1rem"}),(0,Ie.jsx)("span",{children:v.name})]}),(0,Ie.jsx)(G,{xs:!0})]},v.path))]})}var Hx=R(X()),jn=N.aside`
|
|
217
217
|
overflow-y: auto;
|
|
218
218
|
display: flex;
|
|
219
219
|
flex-direction: column;
|
|
220
|
-
`;function Ga(e){return(0,Hx.jsx)(jn,{children:e.children})}var op=R(ee());var V=R(X());function np({visible:e,onClose:t}){var W;let{repo:r,analyzerData:o,truckConfig:i}=
|
|
220
|
+
`;function Ga(e){return(0,Hx.jsx)(jn,{children:e.children})}var op=R(ee());var V=R(X());function np({visible:e,onClose:t}){var W;let{repo:r,analyzerData:o,truckConfig:i}=Re(),l=xs(),{authors:c}=o,f=(W=i.unionedAuthors)!=null?W:[],[h,p]=(0,op.useState)([]),g=f.reduce(($,ie)=>[...$,...ie],[]).sort(Ha);function k($){let ie=f.filter((me,fe)=>fe!==$),ae=new FormData;ae.append("unionedAuthors",JSON.stringify(ie)),l(ae,{action:`/${Oo(r.name,r.currentHead)}`,method:"post"})}function y(){if(h.length===0)return;let $=new FormData;$.append("unionedAuthors",JSON.stringify([...f,h])),l($,{action:`/${Oo(r.name,r.currentHead)}`,method:"post"}),p([])}function v($,ie){let ae=f.map((fe,be)=>be===ie?[$,...fe.filter(we=>we!==$)]:fe),me=new FormData;me.append("unionedAuthors",JSON.stringify(ae)),l(me,{action:`/${Oo(r.name,r.currentHead)}`,method:"post"})}let S=_t(),M=S.state!=="idle",[,P]=Ye(),j=c.filter($=>!g.includes($)).slice(0).sort(Ha);function B($){$.target===$.currentTarget&&t()}xi("Escape",t);let H=$=>{var ie;return(ie=P.get($))!=null?ie:"#333"};if(!e)return null;return(0,V.jsx)(qx,{onClick:B,children:(0,V.jsxs)(Vx,{children:[(0,V.jsx)(Ux,{children:(0,V.jsx)(Wx,{children:"Merge duplicate users"})}),(0,V.jsx)(G,{xl:!0}),(0,V.jsx)("h3",{children:"Ungrouped users"}),(0,V.jsx)(G,{sm:!0}),(0,V.jsx)("p",{children:j.length===0?"All detected users have been grouped":"Select the users that you know are the same person"}),(0,V.jsx)(G,{xl:!0}),(0,V.jsx)(Qx,{children:j.map($=>(0,V.jsx)(zx,{checked:h.includes($),onChange:ie=>{let ae=ie.target.checked?[...h,$]:h.filter(me=>me!==$);p(ae)},children:(0,V.jsxs)(rp,{children:[(0,V.jsx)(ot,{dotColor:H($)}),(0,V.jsx)(G,{horizontal:!0}),$]})},$))}),(0,V.jsx)(G,{xl:!0}),j.length>0?(0,V.jsx)(vi,{children:(0,V.jsxs)(Ee,{onClick:y,title:"Merge the selected users",disabled:M||h.length===0,children:[(0,V.jsx)(Ms,{display:"inline-block",height:"1rem"}),"Merge"]})}):null,(0,V.jsx)(G,{}),(0,V.jsx)("h3",{children:"Grouped users"}),(0,V.jsx)(G,{sm:!0}),(0,V.jsx)(Xx,{children:f.length===0?(0,V.jsx)("p",{children:"There are no grouped users"}):f.map(($,ie)=>{let ae=$[0],me=S.state!=="idle",fe=H(ae);return(0,V.jsxs)(Jx,{children:[(0,V.jsxs)(rp,{children:[(0,V.jsx)(ot,{dotColor:fe}),(0,V.jsx)(G,{horizontal:!0}),(0,V.jsx)("b",{children:ae})]}),(0,V.jsx)(G,{}),$.slice(1).sort(Ha).map(be=>(0,V.jsx)(_,{alias:be,onClick:()=>v(be,ie),disabled:me},be)),(0,V.jsx)(Nr,{}),(0,V.jsxs)(vi,{children:[(0,V.jsx)(Nr,{}),(0,V.jsx)(Ee,{onClick:()=>k(ie),title:"Unmerge this group",disabled:me,children:"Unmerge"})]})]},ie)})}),(0,V.jsx)(Po,{onClick:t})]})});function _({alias:$,onClick:ie,disabled:ae}){return(0,V.jsx)(Yx,{children:(0,V.jsx)("div",{children:(0,V.jsxs)(Kx,{disabled:ae,onClick:ie,title:"Make display name for this group",children:[(0,V.jsx)(on,{display:"inline-block",height:"1rem"}),(0,V.jsx)(Ir,{children:$})]})})},$)}}function zx({children:e,checked:t,onChange:r}){let o=_r();return(0,V.jsxs)(Zx,{children:[(0,V.jsx)(e1,{checked:t,onChange:r,id:o}),(0,V.jsx)(Ir,{htmlFor:o,children:e})]})}var Ha=(e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()),qx=N.div`
|
|
221
221
|
position: fixed;
|
|
222
222
|
inset: 0;
|
|
223
223
|
padding: calc(4 * var(--unit));
|
|
@@ -246,7 +246,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
246
246
|
place-items: center;
|
|
247
247
|
line-height: 100%;
|
|
248
248
|
margin: 0px;
|
|
249
|
-
`,Kx=N(
|
|
249
|
+
`,Kx=N(_o)`
|
|
250
250
|
grid-auto-flow: column;
|
|
251
251
|
& > svg {
|
|
252
252
|
opacity: 0;
|
|
@@ -256,7 +256,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
256
256
|
}
|
|
257
257
|
`,Yx=N.div`
|
|
258
258
|
display: flex;
|
|
259
|
-
`,Zx=N.div``,e1=N.input.attrs({type:"checkbox"})``;var U=R(X());var n1=({error:e})=>(console.error(e.message),console.error(e.stack),(0,U.jsxs)(cp,{isFullscreen:!1,children:[(0,U.jsx)("div",{}),(0,U.jsxs)(xe,{children:[(0,U.jsx)("h1",{children:"An error occured!"}),(0,U.jsx)("p",{children:"See console for more infomation."}),(0,U.jsx)(bi,{children:e.stack}),(0,U.jsx)("div",{children:(0,U.jsx)(Br,{to:".",children:"Retry"})}),(0,U.jsx)("div",{children:(0,U.jsx)(Br,{to:"..",children:"Go back"})})]})]}));function ip(e){window.open(e,"_blank")}function i1(){return(0,U.jsxs)(xe,{children:[(0,U.jsxs)(Rs,{children:[(0,U.jsx)(Ts,{display:"inline-block",height:"1rem"}),(0,U.jsx)(
|
|
259
|
+
`,Zx=N.div``,e1=N.input.attrs({type:"checkbox"})``;var U=R(X());var n1=({error:e})=>(console.error(e.message),console.error(e.stack),(0,U.jsxs)(cp,{isFullscreen:!1,children:[(0,U.jsx)("div",{}),(0,U.jsxs)(xe,{children:[(0,U.jsx)("h1",{children:"An error occured!"}),(0,U.jsx)("p",{children:"See console for more infomation."}),(0,U.jsx)(bi,{children:e.stack}),(0,U.jsx)("div",{children:(0,U.jsx)(Br,{to:".",children:"Retry"})}),(0,U.jsx)("div",{children:(0,U.jsx)(Br,{to:"..",children:"Go back"})})]})]}));function ip(e){window.open(e,"_blank")}function i1(){return(0,U.jsxs)(xe,{children:[(0,U.jsxs)(Rs,{children:[(0,U.jsx)(Ts,{display:"inline-block",height:"1rem"}),(0,U.jsx)(Pt,{children:"Help improve Git Truck"})]}),(0,U.jsx)(G,{xl:!0}),(0,U.jsx)(Ee,{onClick:()=>ip("https://docs.google.com/forms/d/e/1FAIpQLSclLnUCPb0wLZx5RulQLaI_N_4wjNkd6z7YLkA3BzNVFjfiEg/viewform?usp=sf_link"),children:"Answer questionnaire"}),(0,U.jsx)(G,{}),(0,U.jsx)(Ee,{onClick:()=>ip("https://github.com/git-truck/git-truck/issues/new?template=user-issue.md"),children:"Open an issue"})]})}function a1(){let{gitTruckInfo:e}=Re();return(0,U.jsxs)(xe,{children:[(0,U.jsxs)("p",{children:["Update available: ",e.latestVersion]}),(0,U.jsxs)(Ut,{children:["Currently installed: ",e.version]}),(0,U.jsxs)(Ut,{children:["To update, close application and run: ",(0,U.jsx)(bi,{inline:!0,children:"npx git-truck@latest"})]})]})}function sp(){let e=Si(),{analyzerData:t,gitTruckInfo:r}=e,[o,i]=(0,ap.useState)(!1),[l,c]=Wt(!1),f=()=>c(!0);return t?(0,U.jsxs)(tp,{data:e,children:[(0,U.jsxs)(cp,{isFullscreen:o,children:[(0,U.jsxs)(Ga,{children:[(0,U.jsx)(Xu,{}),(0,U.jsx)(i1,{}),(0,U.jsx)(Zd,{}),(0,U.jsx)(Na,{}),(0,U.jsx)(G,{})]}),typeof document!="undefined"?(0,U.jsx)(Qd,{fullscreenState:[o,i]}):(0,U.jsx)("div",{}),(0,U.jsxs)(Ga,{children:[r.latestVersion&&Es(r.latestVersion,r.version)===1?(0,U.jsx)(a1,{}):null,t.hiddenFiles.length>0?(0,U.jsx)(Qu,{}):null,(0,U.jsx)(Wu,{showUnionAuthorsModal:f}),(0,U.jsx)(Nr,{}),(0,U.jsx)(Yu,{showUnionAuthorsModal:f})]})]}),(0,U.jsx)(np,{visible:l,onClose:()=>{c(!1)}})]}):null}var cp=N.div`
|
|
260
260
|
height: 100vh;
|
|
261
261
|
display: grid;
|
|
262
262
|
transition: 0.5s;
|