1"use strict";(()=>{var qe=Object.create,Bt=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Dt=Object.getOwnPropertyNames,Re=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty,Ie=(q,R)=>function(){try{return R||(0,q[Dt(q)[0]])((R={exports:{}}).exports,R),R.exports}catch(I){throw R=0,I}},Se=(q,R,D,I)=>{if(R&&typeof R=="object"||typeof R=="function")for(let Y of Dt(R))!Ge.call(q,Y)&&Y!==D&&Bt(q,Y,{get:()=>R[Y],enumerable:!(I=Le(R,Y))||I.enumerable});return q},Be=(q,R,D)=>(D=q!=null?qe(Re(q)):{},Se(R||!q||!q.__esModule?Bt(D,"default",{value:q,enumerable:!0}):D,q)),De=Ie({"vendor/assets/javascripts/chroma.min.js"(q,R){"use strict";(function(D,I){typeof q=="object"&&typeof R<"u"?R.exports=I():typeof define=="function"&&define.amd?define(I):D.chroma=I()})(q,function(){"use strict";for(var D=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t<e?e:n<t?n:t},I={},Y=0,at=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];Y<at.length;Y+=1){var ct=at[Y];I["[object "+ct+"]"]=ct.toLowerCase()}var V=function(t){return I[Object.prototype.toString.call(t)]||"object"},ft=Math.PI,b={clip_rgb:function(t){t._clipped=!1,t._unclipped=t.slice(0);for(var e=0;e<=3;e++)e<3?((t[e]<0||255<t[e])&&(t._clipped=!0),t[e]=D(t[e],0,255)):e===3&&(t[e]=D(t[e],0,1));return t},limit:D,type:V,unpack:function(t,e){return e===void 0&&(e=null),3<=t.length?Array.prototype.slice.call(t):V(t[0])=="object"&&e?e.split("").filter(function(n){return t[0][n]!==void 0}).map(function(n){return t[0][n]}):t[0]},last:function(t){if(t.length<2)return null;var e=t.length-1;return V(t[e])=="string"?t[e].toLowerCase():null},PI:ft,TWOPI:2*ft,PITHIRD:ft/3,DEG2RAD:ft/180,RAD2DEG:180/ft},w={format:{},autodetect:[]},ze=b.last,Te=b.clip_rgb,zt=b.type,Tt=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(zt(t[0])==="object"&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];var n=ze(t),r=!1;if(!n){r=!0,w.sorted||(w.autodetect=w.autodetect.sort(function(c,i){return i.p-c.p}),w.sorted=!0);for(var f=0,u=w.autodetect;f<u.length;f+=1){var a=u[f];if(n=a.test.apply(a,t))break}}if(!w.format[n])throw new Error("unknown format: "+t);var o=w.format[n].apply(null,r?t:t.slice(0,-1));this._rgb=Te(o),this._rgb.length===3&&this._rgb.push(1)};Tt.prototype.toString=function(){return zt(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var h=Tt,it=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(it.Color,[null].concat(t)))};it.Color=h,it.version="2.1.0";var m=it,$e=b.unpack,$t=Math.max,Ue=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=$e(t,"rgb"),r=n[0],f=n[1],u=n[2],a=1-$t(r/=255,$t(f/=255,u/=255)),o=a<1?1/(1-a):0;return[(1-r-a)*o,(1-f-a)*o,(1-u-a)*o,a]},Ve=b.unpack,We=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=Ve(t,"cmyk"))[0],r=t[1],f=t[2],u=t[3],a=4<t.length?t[4]:1;return u===1?[0,0,0,a]:[1<=n?0:255*(1-n)*(1-u),1<=r?0:255*(1-r)*(1-u),1<=f?0:255*(1-f)*(1-u),a]},Xe=b.unpack,He=b.type;h.prototype.cmyk=function(){return Ue(this._rgb)},m.cmyk=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["cmyk"])))},w.format.cmyk=We,w.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=Xe(t,"cmyk"),He(t)==="array"&&t.length===4)return"cmyk"}});var Je=b.unpack,Ke=b.last,pt=function(t){return Math.round(100*t)/100},Qe=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Je(t,"hsla"),r=Ke(t)||"lsa";return n[0]=pt(n[0]||0),n[1]=pt(100*n[1])+"%",n[2]=pt(100*n[2])+"%",r==="hsla"||3<n.length&&n[3]<1?(n[3]=3<n.length?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},Ze=b.unpack,Ut=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=Ze(t,"rgba"))[0],r=t[1],f=t[2];n/=255,r/=255,f/=255;var u,a,o=Math.min(n,r,f),c=Math.max(n,r,f),i=(c+o)/2;return c===o?(u=0,a=Number.NaN):u=i<.5?(c-o)/(c+o):(c-o)/(2-c-o),n==c?a=(r-f)/(c-o):r==c?a=2+(f-n)/(c-o):f==c&&(a=4+(n-r)/(c-o)),(a*=60)<0&&(a+=360),3<t.length&&t[3]!==void 0?[a,u,i,t[3]]:[a,u,i]},tn=b.unpack,en=b.last,mt=Math.round,nn=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tn(t,"rgba"),r=en(t)||"rgb";return r.substr(0,3)=="hsl"?Qe(Ut(n),r):(n[0]=mt(n[0]),n[1]=mt(n[1]),n[2]=mt(n[2]),(r==="rgba"||3<n.length&&n[3]<1)&&(n[3]=3<n.length?n[3]:1,r="rgba"),r+"("+n.slice(0,r==="rgb"?3:4).join(",")+")")},rn=b.unpack,vt=Math.round,yt=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r,f,u,a=(e=rn(e,"hsl"))[0],o=e[1],c=e[2];if(o===0)r=f=u=255*c;else{var i=[0,0,0],d=[0,0,0],l=c<.5?c*(1+o):c+o-c*o,p=2*c-l,g=a/360;i[0]=g+1/3,i[1]=g,i[2]=g-1/3;for(var v=0;v<3;v++)i[v]<0&&(i[v]+=1),1<i[v]&&(i[v]-=1),6*i[v]<1?d[v]=p+6*(l-p)*i[v]:2*i[v]<1?d[v]=l:3*i[v]<2?d[v]=p+(l-p)*(2/3-i[v])*6:d[v]=p;r=(t=[vt(255*d[0]),vt(255*d[1]),vt(255*d[2])])[0],f=t[1],u=t[2]}return 3<e.length?[r,f,u,e[3]]:[r,f,u,1]},Vt=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Wt=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Xt=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Ht=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Jt=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Kt=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Qt=Math.round,Zt=function(t){var e;if(t=t.toLowerCase().trim(),w.format.named)try{return w.format.named(t)}catch{}if(e=t.match(Vt)){for(var n=e.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(e=t.match(Wt)){for(var f=e.slice(1,5),u=0;u<4;u++)f[u]=+f[u];return f}if(e=t.match(Xt)){for(var a=e.slice(1,4),o=0;o<3;o++)a[o]=Qt(2.55*a[o]);return a[3]=1,a}if(e=t.match(Ht)){for(var c=e.slice(1,5),i=0;i<3;i++)c[i]=Qt(2.55*c[i]);return c[3]=+c[3],c}if(e=t.match(Jt)){var d=e.slice(1,4);d[1]*=.01,d[2]*=.01;var l=yt(d);return l[3]=1,l}if(e=t.match(Kt)){var p=e.slice(1,4);p[1]*=.01,p[2]*=.01;var g=yt(p);return g[3]=+e[4],g}};Zt.test=function(t){return Vt.test(t)||Wt.test(t)||Xt.test(t)||Ht.test(t)||Jt.test(t)||Kt.test(t)};var te=Zt,an=b.type;h.prototype.css=function(t){return nn(this._rgb,t)},m.css=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["css"])))},w.format.css=te,w.autodetect.push({p:5,test:function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];if(!e.length&&an(t)==="string"&&te.test(t))return"css"}});var fn=b.unpack;w.format.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=fn(t,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},m.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["gl"])))},h.prototype.gl=function(){var t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};var un=b.unpack,on=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r=un(t,"rgb"),f=r[0],u=r[1],a=r[2],o=Math.min(f,u,a),c=Math.max(f,u,a),i=c-o,d=100*i/255,l=o/(255-i)*100;return i===0?n=Number.NaN:(f===c&&(n=(u-a)/i),u===c&&(n=2+(a-f)/i),a===c&&(n=4+(f-u)/i),(n*=60)<0&&(n+=360)),[n,d,l]},cn=b.unpack,sn=Math.floor,ln=function(){for(var t,e,n,r,f,u,a=[],o=arguments.length;o--;)a[o]=arguments[o];var c,i,d,l=(a=cn(a,"hcg"))[0],p=a[1],g=a[2];g*=255;var v=255*p;if(p===0)c=i=d=g;else{l===360&&(l=0),360<l&&(l-=360),l<0&&(l+=360);var x=sn(l/=60),_=l-x,A=g*(1-p),O=A+v*(1-_),F=A+v*_,G=A+v;switch(x){case 0:c=(t=[G,F,A])[0],i=t[1],d=t[2];break;case 1:c=(e=[O,G,A])[0],i=e[1],d=e[2];break;case 2:c=(n=[A,G,F])[0],i=n[1],d=n[2];break;case 3:c=(r=[A,O,G])[0],i=r[1],d=r[2];break;case 4:c=(f=[F,A,G])[0],i=f[1],d=f[2];break;case 5:c=(u=[G,A,O])[0],i=u[1],d=u[2]}}return[c,i,d,3<a.length?a[3]:1]},hn=b.unpack,dn=b.type;h.prototype.hcg=function(){return on(this._rgb)},m.hcg=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["hcg"])))},w.format.hcg=ln,w.autodetect.push({p:1,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=hn(t,"hcg"),dn(t)==="array"&&t.length===3)return"hcg"}});var gn=b.unpack,bn=b.last,st=Math.round,ee=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=gn(t,"rgba"),r=n[0],f=n[1],u=n[2],a=n[3],o=bn(t)||"auto";a===void 0&&(a=1),o==="auto"&&(o=a<1?"rgba":"rgb");var c="000000"+((r=st(r))<<16|(f=st(f))<<8|(u=st(u))).toString(16);c=c.substr(c.length-6);var i="0"+st(255*a).toString(16);switch(i=i.substr(i.length-2),o.toLowerCase()){case"rgba":return"#"+c+i;case"argb":return"#"+i+c;default:return"#"+c}},pn=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,mn=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ne=function(t){if(t.match(pn)){t.length!==4&&t.length!==7||(t=t.substr(1)),t.length===3&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(mn)){t.length!==5&&t.length!==9||(t=t.substr(1)),t.length===4&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var n=parseInt(t,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+t)},vn=b.type;h.prototype.hex=function(t){return ee(this._rgb,t)},m.hex=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["hex"])))},w.format.hex=ne,w.autodetect.push({p:4,test:function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];if(!e.length&&vn(t)==="string"&&0<=[3,4,5,6,7,8,9].indexOf(t.length))return"hex"}});var yn=b.unpack,re=b.TWOPI,wn=Math.min,kn=Math.sqrt,_n=Math.acos,Mn=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r=yn(t,"rgb"),f=r[0],u=r[1],a=r[2],o=wn(f/=255,u/=255,a/=255),c=(f+u+a)/3,i=0<c?1-o/c:0;return i===0?n=NaN:(n=(f-u+(f-a))/2,n/=kn((f-u)*(f-u)+(f-a)*(u-a)),n=_n(n),u<a&&(n=re-n),n/=re),[360*n,i,c]},Nn=b.unpack,wt=b.limit,K=b.TWOPI,kt=b.PITHIRD,Q=Math.cos,Pn=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,f,u=(t=Nn(t,"hsi"))[0],a=t[1],o=t[2];return isNaN(u)&&(u=0),isNaN(a)&&(a=0),360<u&&(u-=360),u<0&&(u+=360),(u/=360)<1/3?r=1-((f=(1-a)/3)+(n=(1+a*Q(K*u)/Q(kt-K*u))/3)):u<2/3?f=1-((n=(1-a)/3)+(r=(1+a*Q(K*(u-=1/3))/Q(kt-K*u))/3)):n=1-((r=(1-a)/3)+(f=(1+a*Q(K*(u-=2/3))/Q(kt-K*u))/3)),[255*(n=wt(o*n*3)),255*(r=wt(o*r*3)),255*(f=wt(o*f*3)),3<t.length?t[3]:1]},xn=b.unpack,An=b.type;h.prototype.hsi=function(){return Mn(this._rgb)},m.hsi=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["hsi"])))},w.format.hsi=Pn,w.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=xn(t,"hsi"),An(t)==="array"&&t.length===3)return"hsi"}});var On=b.unpack,En=b.type;h.prototype.hsl=function(){return Ut(this._rgb)},m.hsl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["hsl"])))},w.format.hsl=yt,w.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=On(t,"hsl"),En(t)==="array"&&t.length===3)return"hsl"}});var jn=b.unpack,Cn=Math.min,Fn=Math.max,qn=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,f,u=(t=jn(t,"rgb"))[0],a=t[1],o=t[2],c=Cn(u,a,o),i=Fn(u,a,o),d=i-c;return f=i/255,i===0?(n=Number.NaN,r=0):(r=d/i,u===i&&(n=(a-o)/d),a===i&&(n=2+(o-u)/d),o===i&&(n=4+(u-a)/d),(n*=60)<0&&(n+=360)),[n,r,f]},Ln=b.unpack,Rn=Math.floor,Gn=function(){for(var t,e,n,r,f,u,a=[],o=arguments.length;o--;)a[o]=arguments[o];var c,i,d,l=(a=Ln(a,"hsv"))[0],p=a[1],g=a[2];if(g*=255,p===0)c=i=d=g;else{l===360&&(l=0),360<l&&(l-=360),l<0&&(l+=360);var v=Rn(l/=60),x=l-v,_=g*(1-p),A=g*(1-p*x),O=g*(1-p*(1-x));switch(v){case 0:c=(t=[g,O,_])[0],i=t[1],d=t[2];break;case 1:c=(e=[A,g,_])[0],i=e[1],d=e[2];break;case 2:c=(n=[_,g,O])[0],i=n[1],d=n[2];break;case 3:c=(r=[_,A,g])[0],i=r[1],d=r[2];break;case 4:c=(f=[O,_,g])[0],i=f[1],d=f[2];break;case 5:c=(u=[g,_,A])[0],i=u[1],d=u[2]}}return[c,i,d,3<a.length?a[3]:1]},In=b.unpack,Sn=b.type;h.prototype.hsv=function(){return qn(this._rgb)},m.hsv=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["hsv"])))},w.format.hsv=Gn,w.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=In(t,"hsv"),Sn(t)==="array"&&t.length===3)return"hsv"}});var ae=18,fe=.95047,ue=1,oe=1.08883,ce=.137931034,Bn=.206896552,ie=.12841855,Dn=.008856452,Yn=b.unpack,se=Math.pow,_t=function(t){return(t/=255)<=.04045?t/12.92:se((t+.055)/1.055,2.4)},Mt=function(t){return Dn<t?se(t,1/3):t/ie+ce},zn=function(t,e,n){return t=_t(t),e=_t(e),n=_t(n),[Mt((.4124564*t+.3575761*e+.1804375*n)/fe),Mt((.2126729*t+.7151522*e+.072175*n)/ue),Mt((.0193339*t+.119192*e+.9503041*n)/oe)
1]},le=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Yn(t,"rgb"),r=n[0],f=n[1],u=n[2],a=zn(r,f,u),o=a[0],c=a[1],i=116*c-16;return[i<0?0:i,500*(o-c),200*(c-a[2])]},Tn=b.unpack,$n=Math.pow,Nt=function(t){return 255*(t<=.00304?12.92*t:1.055*$n(t,1/2.4)-.055)},Pt=function(t){return Bn<t?t*t*t:ie*(t-ce)},he=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,f,u=(t=Tn(t,"lab"))[0],a=t[1],o=t[2];return r=(u+16)/116,n=isNaN(a)?r:r+a/500,f=isNaN(o)?r:r-o/200,r=ue*Pt(r),n=fe*Pt(n),f=oe*Pt(f),[Nt(3.2404542*n-1.5371385*r-.4985314*f),Nt(-.969266*n+1.8760108*r+.041556*f),Nt(.0556434*n-.2040259*r+1.0572252*f),3<t.length?t[3]:1]},Un=b.unpack,Vn=b.type;h.prototype.lab=function(){return le(this._rgb)},m.lab=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["lab"])))},w.format.lab=he,w.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=Un(t,"lab"),Vn(t)==="array"&&t.length===3)return"lab"}});var Wn=b.unpack,Xn=b.RAD2DEG,Hn=Math.sqrt,Jn=Math.atan2,Kn=Math.round,Qn=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Wn(t,"lab"),r=n[0],f=n[1],u=n[2],a=Hn(f*f+u*u),o=(Jn(u,f)*Xn+360)%360;return Kn(1e4*a)===0&&(o=Number.NaN),[r,a,o]},Zn=b.unpack,de=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Zn(t,"rgb"),r=n[0],f=n[1],u=n[2],a=le(r,f,u),o=a[0],c=a[1],i=a[2];return Qn(o,c,i)},tr=b.unpack,er=b.DEG2RAD,nr=Math.sin,rr=Math.cos,ar=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=tr(t,"lch"),r=n[0],f=n[1],u=n[2];return isNaN(u)&&(u=0),[r,rr(u*=er)*f,nr(u)*f]},fr=b.unpack,ge=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=fr(t,"lch"))[0],r=t[1],f=t[2],u=ar(n,r,f),a=u[0],o=u[1],c=u[2],i=he(a,o,c);return[i[0],i[1],i[2],3<t.length?t[3]:1]},ur=b.unpack,or=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ur(t,"hcl").reverse();return ge.apply(void 0,n)},cr=b.unpack,ir=b.type;h.prototype.lch=function(){return de(this._rgb)},h.prototype.hcl=function(){return de(this._rgb).reverse()},m.lch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["lch"])))},m.hcl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["hcl"])))},w.format.lch=ge,w.format.hcl=or,["lch","hcl"].forEach(function(t){return w.autodetect.push({p:2,test:function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(e=cr(e,t),ir(e)==="array"&&e.length===3)return t}})});var Z={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",s
1almon:"#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"},sr=b.type;h.prototype.name=function(){for(var t=ee(this._rgb,"rgb"),e=0,n=Object.keys(Z);e<n.length;e+=1){var r=n[e];if(Z[r]===t)return r.toLowerCase()}return t},w.format.named=function(t){if(t=t.toLowerCase(),Z[t])return ne(Z[t]);throw new Error("unknown color name: "+t)},w.autodetect.push({p:5,test:function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];if(!e.length&&sr(t)==="string"&&Z[t.toLowerCase()])return"named"}});var lr=b.unpack,hr=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=lr(t,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},dr=b.type,gr=function(t){if(dr(t)=="number"&&0<=t&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw new Error("unknown num color: "+t)},br=b.type;h.prototype.num=function(){return hr(this._rgb)},m.num=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["num"])))},w.format.num=gr,w.autodetect.push({p:5,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t.length===1&&br(t[0])==="number"&&0<=t[0]&&t[0]<=16777215)return"num"}});var be=b.unpack,pe=b.type,me=Math.round;h.prototype.rgb=function(t){return t===void 0&&(t=!0),t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(me)},h.prototype.rgba=function(t){return t===void 0&&(t=!0),this._rgb.slice(0,4).map(function(e,n){return n<3?t===!1?e:me(e):e})},m.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["rgb"])))},w.format.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=be(t,"rgba");return n[3]===void 0&&(n[3]=1),n},w.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=be(t,"rgba"),pe(t)==="array"&&(t.length===3||t.length===4&&pe(t[3])=="number"&&0<=t[3]&&t[3]<=1))return"rgb"}});var lt=Math.log,ve=function(t){var e,n,r,f=t/100;return r=f<66?(e=255,n=-155.25485562709179-.44596950469579133*(n=f-2)+104.49216199393888*lt(n),f<20?0:.8274096064007395*(r=f-10)-254.76935184120902+115.67994401066147*lt(r)):(e=351.97690566805693+.114206453784165*(e=f-55)-40.25366309332127*lt(e),n=325.4494125711974+.07943456536662342*(n=f-50)-28.0852963507957*lt(n),255),[e,n,r,1]},pr=b.unpack,mr=Math.round,vr=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n,r=pr(t,"rgb"),f=r[0],u=r[2],a=1e3,o=4e4;.4<o-a;){var c=ve(n=.5*(o+a));c[2]/c[0]>=u/f?o=n:a=n}return mr(n)};h.prototype.temp=h.prototype.kelvin=h.prototype.temperature=function(){return vr(this._rgb)},m.temp=m.kelvin=m.temperature=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h,[null].concat(t,["temp"])))},w.format.temp=w.format.kelvin=w.format.temperature=ve;var yr=b.type;h.prototype.alpha=function(t,e){return e===void 0&&(e=!1),t!==void 0&&yr(t)==="number"?e?(this._rgb[3]=t,this):new h([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},h.prototype.clipped=function(){return this._rgb._clipped||!1},h.prototype.darken=function(t){t===void 0&&(t=1);var e=this.lab();return e[0]-=ae*t,new h(e,"lab").alpha(this.alpha(),!0)},h.prototype.brighten=function(t){return t===void 0&&(t=1),this.darken(-t)},h.prototype.darker=h.prototype.darken,h.prototype.brighter=h.prototype.brighten,h.prototype.get=function(t){var e=t.split("."),n=e[0],r=e[1],f=this[n]();if(r){var u=n.indexOf(r);if(-1<u)return f[u];throw new Error("unknown channel "+r+" in mode "+n)}return f};var wr=b.type,kr=Math.pow;h.prototype.luminance=function(t){if(t===void 0||wr(t)!=="number")return _r.apply(void 0,this._rgb.slice(0,3));if(t===0)return new h([0,0,0,this._rgb[3]],"rgb");if(t===1)return new h([255,255,255,this._rgb[3]],"rgb");var e=this.luminance(),n=20,r=function(u,a){var o=u.interpolate(a,.5,"rgb"),c=o.luminance();return Math.abs(t-c)<1e-7||!n--?o:t<c?r(u,o):r(o,a)},f=(t<e?r(new h([0,0,0]),this):r(this,new h([255,255,255]))).rgb();return new h(f.concat([this._rgb[3]]))};var _r=function(t,e,n){return .2126*(t=xt(t))+.7152*(e=xt(e))+.0722*(n=xt(n))},xt=function(t){return(t/=255)<=.03928?t/12.92:kr((t+.055)/1.055,2.4)},S={},ye=b.type,we=function(t,e,n){n===void 0&&(n=.5);for(var r=[],f=arguments.length-3;0<f--;)r[f]=arguments[f+3];var u=r[0]||"lrgb";if(S[u]||r.length||(u=Object.keys(S)[0]),!S[u])throw new Error("interpolation mode "+u+" is not defined");return ye(t)!=="object"&&(t=new h(t)),ye(e)!=="object"&&(e=new h(e)),S[u](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};h.prototype.mix=h.prototype.interpolate=function(t,e){e===void 0&&(e=.5);for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];return we.apply(void 0,[this,t,e].concat(n))},h.prototype.premultiply=function(t){t===void 0&&(t=!1);var e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new h([e[0]*n,e[1]*n,e[2]*n,n],"rgb")},h.prototype.saturate=function(t){t===void 0&&(t=1);var e=this.lch();return e[1]+=ae*t,e[1]<0&&(e[1]=0),new h(e,"lch").alpha(this.alpha(),!0)},h.prototype.desaturate=function(t){return t===void 0&&(t=1),this.saturate(-t)};var ke=b.type;h.prototype.set=function(t,e,n){n===void 0&&(n=!1);var r=t.split("."),f=r[0],u=r[1],a=this[f]();if(u){var o=f.indexOf(u);
1if(-1<o){if(ke(e)=="string")switch(e.charAt(0)){case"+":case"-":a[o]+=+e;break;case"*":a[o]*=+e.substr(1);break;case"/":a[o]/=+e.substr(1);break;default:a[o]=+e}else{if(ke(e)!=="number")throw new Error("unsupported value for Color.set");a[o]=e}var c=new h(a,f);return n?(this._rgb=c._rgb,this):c}throw new Error("unknown channel "+u+" in mode "+f)}return a},S.rgb=function(t,e,n){var r=t._rgb,f=e._rgb;return new h(r[0]+n*(f[0]-r[0]),r[1]+n*(f[1]-r[1]),r[2]+n*(f[2]-r[2]),"rgb")};var At=Math.sqrt,tt=Math.pow;S.lrgb=function(t,e,n){var r=t._rgb,f=r[0],u=r[1],a=r[2],o=e._rgb,c=o[0],i=o[1],d=o[2];return new h(At(tt(f,2)*(1-n)+tt(c,2)*n),At(tt(u,2)*(1-n)+tt(i,2)*n),At(tt(a,2)*(1-n)+tt(d,2)*n),"rgb")},S.lab=function(t,e,n){var r=t.lab(),f=e.lab();return new h(r[0]+n*(f[0]-r[0]),r[1]+n*(f[1]-r[1]),r[2]+n*(f[2]-r[2]),"lab")};var ut=function(t,e,n,r){var f,u,a,o,c,i,d,l,p,g,v,x;return r==="hsl"?(a=t.hsl(),o=e.hsl()):r==="hsv"?(a=t.hsv(),o=e.hsv()):r==="hcg"?(a=t.hcg(),o=e.hcg()):r==="hsi"?(a=t.hsi(),o=e.hsi()):r!=="lch"&&r!=="hcl"||(r="hcl",a=t.hcl(),o=e.hcl()),r.substr(0,1)==="h"&&(c=(f=a)[0],d=f[1],p=f[2],i=(u=o)[0],l=u[1],g=u[2]),isNaN(c)||isNaN(i)?isNaN(c)?isNaN(i)?x=Number.NaN:(x=i,p!=1&&p!=0||r=="hsv"||(v=l)):(x=c,g!=1&&g!=0||r=="hsv"||(v=d)):x=c+n*(c<i&&180<i-c?i-(c+360):i<c&&180<c-i?i+360-c:i-c),v===void 0&&(v=d+n*(l-d)),new h([x,v,p+n*(g-p)],r)},_e=function(t,e,n){return ut(t,e,n,"lch")};S.lch=_e,S.hcl=_e,S.num=function(t,e,n){var r=t.num(),f=e.num();return new h(r+n*(f-r),"num")},S.hcg=function(t,e,n){return ut(t,e,n,"hcg")},S.hsi=function(t,e,n){return ut(t,e,n,"hsi")},S.hsl=function(t,e,n){return ut(t,e,n,"hsl")},S.hsv=function(t,e,n){return ut(t,e,n,"hsv")};var Mr=b.clip_rgb,Ot=Math.pow,Et=Math.sqrt,jt=Math.PI,Me=Math.cos,Ne=Math.sin,Nr=Math.atan2,Pr=function(t,e){for(var n=t.length,r=[0,0,0,0],f=0;f<t.length;f++){var u=t[f],a=e[f]/n,o=u._rgb;r[0]+=Ot(o[0],2)*a,r[1]+=Ot(o[1],2)*a,r[2]+=Ot(o[2],2)*a,r[3]+=o[3]*a}return r[0]=Et(r[0]),r[1]=Et(r[1]),r[2]=Et(r[2]),.9999999<r[3]&&(r[3]=1),new h(Mr(r))},et=b.type,xr=Math.pow,ht=function(t){var e="rgb",n=m("#ccc"),r=0,f=[0,1],u=[],a=[0,0],o=!1,c=[],i=!1,d=0,l=1,p=!1,g={},v=!0,x=1,_=function(s){if((s=s||["#fff","#000"])&&et(s)==="string"&&m.brewer&&m.brewer[s.toLowerCase()]&&(s=m.brewer[s.toLowerCase()]),et(s)==="array"){s.length===1&&(s=[s[0],s[0]]),s=s.slice(0);for(var y=0;y<s.length;y++)s[y]=m(s[y]);for(var M=u.length=0;M<s.length;M++)u.push(M/(s.length-1))}return G(),c=s},A=function(s){return s},O=function(s){return s},F=function(s,y){var M,N;if(y==null&&(y=!1),isNaN(s)||s===null)return n;y?N=s:N=o&&2<o.length?(function(L){if(o==null)return 0;for(var j=o.length-1,P=0;P<j&&L>=o[P];)P++;return P-1})(s)/(o.length-2):l!==d?(s-d)/(l-d):1,N=O(N),y||(N=A(N)),x!==1&&(N=xr(N,x)),N=a[0]+N*(1-a[0]-a[1]),N=Math.min(1,Math.max(0,N));var z=Math.floor(1e4*N);if(v&&g[z])M=g[z];else{if(et(c)==="array")for(var E=0;E<u.length;E++){var C=u[E];if(N<=C){M=c[E];break}if(C<=N&&E===u.length-1){M=c[E];break}if(C<N&&N<u[E+1]){N=(N-C)/(u[E+1]-C),M=m.interpolate(c[E],c[E+1],N,e);break}}else et(c)==="function"&&(M=c(N));v&&(g[z]=M)}return M},G=function(){return g={}};_(t);var k=function(s){var y=m(F(s));return i&&y[i]?y[i]():y};return k.classes=function(s){if(s==null)return o;if(et(s)==="array")f=[(o=s)[0],s[s.length-1]];else{var y=m.analyze(f);o=s===0?[y.min,y.max]:m.limits(y,"e",s)}return k},k.domain=function(s){if(!arguments.length)return f;d=s[0],l=s[s.length-1],u=[];var y=c.length;if(s.length===y&&d!==l)for(var M=0,N=Array.from(s);M<N.length;M+=1){var z=N[M];u.push((z-d)/(l-d))}else{for(var E=0;E<y;E++)u.push(E/(y-1));if(2<s.length){var C=s.map(function(j,P){return P/(s.length-1)}),L=s.map(function(j){return(j-d)/(l-d)});L.every(function(j,P){return C[P]===j})||(O=function(j){if(j<=0||1<=j)return j;for(var P=0;j>=L[P+1];)P++;var B=(j-L[P])/(L[P+1]-L[P]);return C[P]+B*(C[P+1]-C[P])})}}return f=[d,l],k},k.mode=function(s){return arguments.length?(e=s,G(),k):e},k.range=function(s,y){return _(s),k},k.out=function(s){return i=s,k},k.spread=function(s){return arguments.length?(r=s,k):r},k.correctLightness=function(s){return s==null&&(s=!0),p=s,G(),A=p?function(y){for(var M=F(0,!0).lab()[0],N=F(1,!0).lab()[0],z=N<M,E=F(y,!0).lab()[0],C=M+(N-M)*y,L=E-C,j=0,P=1,B=20;.01<Math.abs(L)&&0<B--;)z&&(L*=-1),y+=L<0?.5*(P-(j=y)):.5*(j-(P=y)),E=F(y,!0).lab()[0],L=E-C;return y}:function(y){return y},k},k.padding=function(s){return s!=null?(et(s)==="number"&&(s=[s,s]),a=s,k):a},k.colors=function(s,y){arguments.length<2&&(y="hex");var M=[];if(arguments.length===0)M=c.slice(0);else if(s===1)M=[k(.5)];else if(1<s){var N=f[0],z=f[1]-N;M=(function(P,B,nt){for(var H=[],U=P<B,rt=nt?U?B+1:B-1:B,$=P;U?$<rt:rt<$;U?$++:$--)H.push($);return H})(0,s,!1).map(function(P){return k(N+P/(s-1)*z)})}else{t=[];var E=[];if(o&&2<o.length)for(var C=1,L=o.length,j=1<=L;j?C<L:L<C;j?C++:C--)E.push(.5*(o[C-1]+o[C]));else E=f;M=E.map(function(P){return k(P)})}return m[y]&&(M=M.map(function(P){return P[y]()})),M},k.cache=function(s){return s!=null?(v=s,k):v},k.gamma=function(s){return s!=null?(x=s,k):x},k.nodata=function(s){return s!=null?(n=m(s),k):n},k},Ct=function(t){var e,n,r,f,u,a,o;if((t=t.map(function(l){return new h(l)})).length===2)e=t.map(function(l){return l.lab()}),u=e[0],a=e[1],f=function(l){var p=[0,1,2].map(function(g){return u[g]+l*(a[g]-u[g])});return new h(p,"lab")};else if(t.length===3)n=t.map(function(l){return l.lab()}),u=n[0],a=n[1],o=n[2],f=function(l){var p=[0,1,2].map(function(g){return(1-l)*(1-l)*u[g]+2*(1-l)*l*a[g]+l*l*o[g]});return new h(p,"lab")};else if(t.length===4){var c;r=t.map(function(l){return l.lab()}),u=r[0],a=r[1],o=r[2],c=r[3],f=function(l){var p=[0,1,2].map(function(g){return(1-l)*(1-l)*(1-l)*u[g]+3*(1-l)*(1-l)*l*a[g]+3*(1-l)*l*l*o[g]+l*l*l*c[g]});return new h(p,"lab")}}else if(t.length===5){var i=Ct(t.slice(0,3)),d=Ct(t.slice(2,5));f=function(l){return l<.5?i(2*l):d(2*(l-.5))}}return f},T=function(t,e,n){if(!T[n])throw new Error("unknown blend mode "+n);return T[n](t,e)},W=function(t){return function(e,n){var r=m(n).rgb(),f=m(e).rgb();return m.rgb(t(r,f))}},X=function(t){return function(e,n){var r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r}};T.normal=W(X(function(t){return t})),T.multiply=W(X(function(t,e){return t*e/255})),T.screen=W(X(function(t,e){return 255*(1-(1-t/255)*(1-e/255))})),T.overlay=W(X(function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))})),T.darken=W(X(function(t,e){return e<t?e:t})),T.lighten=W(X(function(t,e){return e<t?t:e})),T.dodge=W(X(function(t,e){return t===255||255<(t=e/255*255/(1-t/255))?255:t})),T.burn=W(X(function(t,e){return 255*(1-(1-e/255)/(t/255))}));for(var Ar=T,Ft=b.type,Or=b.clip_rgb,Er=b.TWOPI,jr=Math.pow,Cr=Math.sin,Fr=Math.cos,qr=Math.floor,Lr=Math.random,Pe=Math.log,Rr=Math.pow,Gr=Math.floor,Ir=Math.abs,xe=function(t,e){e===void 0&&(e=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return V(t)==="object"&&(t=Object.values(t)),t.forEach(function(r){e&&V(r)==="object"&&(r=r[e]),r==null||isNaN(r)||(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)}),n.domain=[n.min,n.max],n.limits=function(r,f){return Ae(n,r,f)},n},Ae=function(t,e,n){e===void 0&&(e="equal"),n===void 0&&(n=7),V(t)=="array"&&(t=xe(t));var r=t.min,f=t.max,u=t.values.sort(function(It,St){return It-St});if(n===1)return[r,f];var a=[];if(e.substr(0,1)==="c"&&(a.push(r),a.push(f)),e.substr(0,1)==="e"){a.push(r);for(var o=1;o<n;o++)a.push(r+o/n*(f-r));a.push(f)}else if(e.substr(0,1)==="l"){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");var c=Math.LOG10E*Pe(r),i=Math.LOG10E*Pe(f);a.push(r);for(var d=1;d<n;d++)a.push(Rr(10,c+d/n*(i-c)));a.push(f)}else if(e.substr(0,1)==="q"){a.push(r);for(var l=1;l<n;l++){var p=(u.length-1)*l/n,g=Gr(p);if(g===p)a.push(u[g]);else{var v=p-g;a.push(u[g]*(1-v)+u[g+1]*v)}}a.push(f)}else if(e.substr(0,1)==="k"){var x,_=u.length,A=new Array(_),O=new Array(n),F=!0,G=0,k=null;(k=[]).push(r);for(var s=1;s<n;s++)k.push(r+s/n*(f-r));for(k.push(f);F;){for(var y=0;y<n;y++)O[y]=0;for(var M=0;M<_;M++)for(var N=u[M],z=Number.MAX_VALUE,E=void 0,C=0;C<n;C++){var L=Ir(k[C]-N);L<z&&(z=L,E=C),O[E]++,A[M]=E}for(var j=new Array(n),P=0;P<n;P++)j[P]=null;for(var B=0;B<_;B++)j[x=A[B]]===null?j[x]=u[B]:j[x]+=u[B];for(var nt=0;nt<n;nt++)j[nt]*=1/O[nt];F=!1;for(var H=0;H<n;H++)if(j[H]!==k[H]){F=!0;break}k=j,200<++G&&(F=!1)}for(var U={},rt=0;rt<n;rt++)U[rt]=[];for(var $=0;$<_;$++)U[x=A[$]].push(u[$]);for(var J=[],ot=0;ot<n;ot++)J.push(U[ot][0]),J.push(U[ot][U[ot].length-1]);J=J.sort(function(It,St){return It-St}),a.push(J[0]);for(var Rt=1;Rt<J.length;Rt+=2){var Gt=J[Rt];isNaN(Gt)||a.indexOf(Gt)!==-1||a.push(Gt)}}return a},Oe={analyze:xe,limits:Ae},dt=Math.sqrt,Sr=Math.atan2,Ee=Math.abs,je=Math.cos,qt=Math.PI,Br={cool:function(){return ht([m.hsl(180,1,.9),m.hsl(250,.7,.4)])},hot:function(){return ht(["#000","#f00","#ff0","#fff"]).mode("rgb")}},gt={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"]},Lt=0,Ce=Object.keys(gt);Lt<Ce.length;Lt+=1){var Fe=Ce[Lt];gt[Fe.toLowerCase()]=gt[Fe]}var Dr=gt;return m.average=function(t,e,n){e===void 0&&(e="lrgb"),n===void 0&&(n=null);var r=t.length;n||(n=Array.from(new Array(r)).map(function(){return 1}));var f=r/n.reduce(function(x,_){return x+_});if(n.forEach(function(x,_){n[_]*=f}),t=t.map(function(x){return new h(x)}),e==="lrgb")return Pr(t,n);for(var u=t.shift(),a=u.get(e),o=[],c=0,i=0,d=0;d<a.length;d++)if(a[d]=(a[d]||0)*n[0],o.push(isNaN(a[d])?0:n[0]),e.charAt(d)==="h"&&!isNaN(a[d])){var l=a[d]/180*jt;c+=Me(l)*n[0],i+=Ne(l)*n[0]}var p=u.alpha()*n[0];t.forEach(function(x,_){var A=x.get(e);p+=x.alpha()*n[_+1];for(var O=0;O<a.length;O++)if(!isNaN(A[O]))if(o[O]+=n[_+1],e.charAt(O)==="h"){var F=A[O]/180*jt;c+=Me(F)*n[_+1],i+=Ne(F)*n[_+1]}else a[O]+=A[O]*n[_+1]});for(var g=0;g<a.length;g++)if(e.charAt(g)==="h"){for(var v=Nr(i/o[g],c/o[g])/jt*180;v<0;)v+=360;for(;360<=v;)v-=360;a[g]=v}else a[g]=a[g]/o[g];return p/=r,new h(a,e).alpha(.99999<p?1:p,!0)},m.bezier=function(t){var e=Ct(t);return e.scale=function(){return ht(e)},e},m.blend=Ar,m.cubehelix=function(t,e,n,r,f){t===void 0&&(t=300),e===void 0&&(e=-1.5),n===void 0&&(n=1),r===void 0&&(r=1),f===void 0&&(f=[0,1]);var u,a=0;Ft(f)==="array"?u=f[1]-f[0]:(u=0,f=[f,f]);var o=function(c){var i=Er*((t+120)/360+e*c),d=jr(f[0]+u*c,r),l=(a!==0?n[0]+c*a:n)*d*(1-d)/2,p=Fr(i),g=Cr(i);return m(Or([255*(d+l*(-.14861*p+1.78277*g)),255*(d+l*(-.29227*p-.90649*g)),255*(d+l*(1.97294*p)),1]))};return o.start=function(c){return c==null?t:(t=c,o)},o.rotations=function(c){return c==null?e:(e=c,o)},o.gamma=function(c){return c==null?r:(r=c,o)},o.hue=function(c){return c==null?n:(Ft(n=c)==="array"?(a=n[1]-n[0])==0&&(n=n[1]):a=0,o)},o.lightness=function(c){return c==null?f:(u=Ft(c)==="array"?(f=c)[1]-c[0]:(f=[c,c],0),o)},o.scale=function(){return m.scale(o)},o.hue(n),o},m.mix=m.interpolate=we,m.random=function(){for(var t="#",e=0;e<6;e++)t+="0123456789abcdef".charAt(qr(16*Lr()));return new h(t,"hex")},m.scale=ht,m.analyze=Oe.analyze,m.contrast=function(t,e){t=new h(t),e=new h(e);var n=t.luminance(),r=e.luminance();return r<n?(n+.05)/(r+.05):(r+.05)/(n+.05)},m.deltaE=function(t,e,n,r){n===void 0&&(n=1),r===void 0&&(r=1),t=new h(t),e=new h(e);for(var f=Array.from(t.lab()),u=f[0],a=f[1],o=f[2],c=Array.from(e.lab()),i=c[0],d=c[1],l=c[2],p=dt(a*a+o*o),g=dt(d*d+l*l),v=u<16?.511:.040975*u/(1+.01765*u),x=.0638*p/(1+.0131*p)+.638,_=p<1e-6?0:180*Sr(o,a)/qt;_<0;)_+=360;for(;360<=_;)_-=360;
1var A=164<=_&&_<=345?.56+Ee(.2*je(qt*(_+168)/180)):.36+Ee(.4*je(qt*(_+35)/180)),O=p*p*p*p,F=dt(O/(O+1900)),G=x*(F*A+1-F),k=p-g,s=a-d,y=o-l,M=(u-i)/(n*v),N=k/(r*x);return dt(M*M+N*N+(s*s+y*y-k*k)/(G*G))},m.distance=function(t,e,n){n===void 0&&(n="lab"),t=new h(t),e=new h(e);var r=t.get(n),f=e.get(n),u=0;for(var a in r){var o=(r[a]||0)-(f[a]||0);u+=o*o}return Math.sqrt(u)},m.limits=Oe.limits,m.valid=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];try{return new(Function.prototype.bind.apply(h,[null].concat(t))),!0}catch{return!1}},m.scales=Br,m.colors=Z,m.brewer=Dr,m})}}),bt=Be(De());function Ye(){const I=document.querySelector('script[src*="/calculation"]').getAttribute("color")||"rgba(219, 70, 21, 1)",Y=(0,bt.default)(I),at=Y.alpha(.25),ct=bt.default.contrast(I,"#ffffff")<4.28,V=bt.default.contrast(at,"#ffffff")<4.28;this.setColors=function(){window.top.document.addEventListener("DOMContentLoaded",function(){document.documentElement.style.setProperty("--main-color",Yt(Y.rgba())),document.documentElement.style.setProperty("--main-light-color",Yt(at.rgba())),document.documentElement.style.setProperty("--main-text-color",ct?"#000":"#fff"),document.documentElement.style.setProperty("--main-light-text-color",V?"#fff":"#000")})}}function Yt(q){return"rgba("+q+")"}new Ye().setColors()})();/** 2 * chroma.js - JavaScript library for color conversions 3 * 4 * Copyright (c) 2011-2019, Gregor Aisch 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: 9 * 10 * 1. Redistributions of source code must retain the above copyright notice, this 11 * list of conditions and the following disclaimer. 12 * 13 * 2. Redistributions in binary form must reproduce the above copyright notice, 14 * this list of conditions and the following disclaimer in the documentation 15 * and/or other materials provided with the distribution. 16 * 17 * 3. The name Gregor Aisch may not be used to endorse or promote products 18 * derived from this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23 * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 24 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 25 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 29 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * ------------------------------------------------------- 32 * 33 * chroma.js includes colors from colorbrewer2.org, which are released under 34 * the following license: 35 * 36 * Copyright (c) 2002 Cynthia Brewer, Mark Harrower, 37 * and The Pennsylvania State University. 38 * 39 * Licensed under the Apache License, Version 2.0 (the "License"); 40 * you may not use this file except in compliance with the License. 41 * You may obtain a copy of the License at 42 * http://www.apache.org/licenses/LICENSE-2.0 43 * 44 * Unless required by applicable law or agreed to in writing, 45 * software distributed under the License is distributed on an 46 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 47 * either express or implied. See the License for the specific 48 * language governing permissions and limitations under the License. 49 * 50 * ------------------------------------------------------ 51 * 52 * Named colors are taken from X11 Color Names. 53 * http://www.w3.org/TR/css3-color/#svg-color 54 * 55 * @preserve 56 */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.