import{rgb as j,color as O,hsl as T,lab as H,hcl as E,cubehelix as V}from"/-/d3-color@v3.1.0-MWHDMwd2Pvp3NFjvrHgn/dist=es2020,mode=imports,min/optimized/d3-color.js";function _(r,n,e,i,t){var u=r*r,o=u*r;return((1-3*r+3*u-o)*n+(4-6*u+3*o)*e+(1+3*r+3*u-3*o)*i+o*t)/6}function F(r){var n=r.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),t=r[i],u=r[i+1],o=i>0?r[i-1]:2*t-u,a=i()=>r;function Q(r,n){return function(e){return r+e*n}}function cn(r,n,e){return r=Math.pow(r,e),n=Math.pow(n,e)-r,e=1/e,function(i){return Math.pow(r+i*n,e)}}function N(r,n){var e=n-r;return e?Q(r,e>180||e<-180?e-360*Math.round(e/360):e):A(isNaN(r)?n:r)}function ln(r){return(r=+r)===1?p:function(n,e){return e-n?cn(n,e,r):A(isNaN(n)?e:n)}}function p(r,n){var e=n-r;return e?Q(r,e):A(isNaN(r)?n:r)}var q=function r(n){var e=ln(n);function i(t,u){var o=e((t=j(t)).r,(u=j(u)).r),a=e(t.g,u.g),s=e(t.b,u.b),l=p(t.opacity,u.opacity);return function(c){return t.r=o(c),t.g=a(c),t.b=s(c),t.opacity=l(c),t+""}}return i.gamma=r,i}(1);function K(r){return function(n){var e=n.length,i=new Array(e),t=new Array(e),u=new Array(e),o,a;for(o=0;oe&&(u=n.slice(e,u),a[o]?a[o]+=u:a[++o]=u),(i=i[0])===(t=t[0])?a[o]?a[o]+=t:a[++o]=t:(a[++o]=null,s.push({i:o,x:M(i,t)})),e=R.lastIndex;return e180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(t(f)+"rotate(",null,i)-2,x:M(l,c)})):c&&f.push(t(f)+"rotate("+c+i)}function a(l,c,f,h){l!==c?h.push({i:f.push(t(f)+"skewX(",null,i)-2,x:M(l,c)}):c&&f.push(t(f)+"skewX("+c+i)}function s(l,c,f,h,g,m){if(l!==f||c!==h){var v=g.push(t(g)+"scale(",null,",",null,")");m.push({i:v-4,x:M(l,f)},{i:v-2,x:M(c,h)})}else(f!==1||h!==1)&&g.push(t(g)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=r(l),c=r(c),u(l.translateX,l.translateY,c.translateX,c.translateY,f,h),o(l.rotate,c.rotate,f,h),a(l.skewX,c.skewX,f,h),s(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(g){for(var m=-1,v=h.length,w;++m