import{FastColor as e}from"../../../../../@ant-design_fast-color@2.0.6/node_modules/@ant-design/fast-color/es/FastColor.mjs";var t=2,n=.16,r=.05,i=.05,a=.15,o=5,s=4,c=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function l(e,n,r){var i=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-t*n:Math.round(e.h)+t*n:r?Math.round(e.h)+t*n:Math.round(e.h)-t*n;return i<0?i+=360:i>=360&&(i-=360),i}function u(e,t,i){if(e.h===0&&e.s===0)return e.s;var a=i?e.s-n*t:t===s?e.s+n:e.s+r*t;return a>1&&(a=1),i&&t===o&&a>.1&&(a=.1),a<.06&&(a=.06),Math.round(a*100)/100}function d(e,t,n){var r=n?e.v+i*t:e.v-a*t;return r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function f(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],i=new e(t),a=i.toHsv(),f=o;f>0;--f){var p=new e({h:l(a,f,!0),s:u(a,f,!0),v:d(a,f,!0)});r.push(p)}r.push(i);for(var m=1;m<=s;m+=1){var h=new e({h:l(a,m),s:u(a,m),v:d(a,m)});r.push(h)}return n.theme===`dark`?c.map(function(t){var i=t.index,a=t.amount;return new e(n.backgroundColor||`#141414`).mix(r[i],a).toHexString()}):r.map(function(e){return e.toHexString()})}export{f as default};