/** * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. * Original file: /npm/d3-interpolate@3.0.1/src/index.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ import{rgb as t,color as n,hsl as r,lab as e,hcl as a,cubehelix as o}from"../d3-color@3.1.0/2c0cdfa2.js";function u(t,n,r,e,a){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*r+(1+3*t+3*o-3*u)*e+u*a)/6}function i(t){var n=t.length-1;return function(r){var e=r<=0?r=0:r>=1?(r=1,n-1):Math.floor(r*n),a=t[e],o=t[e+1],i=e>0?t[e-1]:2*a-o,c=e()=>t;function s(t,n){return function(r){return t+r*n}}function f(t,n){var r=n-t;return r?s(t,r>180||r<-180?r-360*Math.round(r/360):r):l(isNaN(t)?n:t)}function h(t){return 1==(t=+t)?p:function(n,r){return r-n?function(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(e){return Math.pow(t+e*n,r)}}(n,r,t):l(isNaN(n)?r:n)}}function p(t,n){var r=n-t;return r?s(t,r):l(isNaN(t)?n:t)}var v=function n(r){var e=h(r);function a(n,r){var a=e((n=t(n)).r,(r=t(r)).r),o=e(n.g,r.g),u=e(n.b,r.b),i=p(n.opacity,r.opacity);return function(t){return n.r=a(t),n.g=o(t),n.b=u(t),n.opacity=i(t),n+""}}return a.gamma=n,a}(1);function g(n){return function(r){var e,a,o=r.length,u=new Array(o),i=new Array(o),c=new Array(o);for(e=0;eo&&(a=n.slice(o,a),i[u]?i[u]+=a:i[++u]=a),(r=r[0])===(e=e[0])?i[u]?i[u]+=e:i[++u]=e:(i[++u]=null,c.push({i:u,x:X(r,e)})),o=Y.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:r.push(a(r)+"rotate(",null,e)-2,x:X(t,n)})):n&&r.push(a(r)+"rotate("+n+e)}(o.rotate,u.rotate,i,c),function(t,n,r,o){t!==n?o.push({i:r.push(a(r)+"skewX(",null,e)-2,x:X(t,n)}):n&&r.push(a(r)+"skewX("+n+e)}(o.skewX,u.skewX,i,c),function(t,n,r,e,o,u){if(t!==r||n!==e){var i=o.push(a(o)+"scale(",null,",",null,")");u.push({i:i-4,x:X(t,r)},{i:i-2,x:X(n,e)})}else 1===r&&1===e||o.push(a(o)+"scale("+r+","+e+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,i,c),o=u=null,function(t){for(var n,r=-1,e=c.length;++r