import e from"@babel/runtime/helpers/slicedToArray";import r from"../../utils/main.js";var n=["#5F47A4","#9078C8","#DC74FD","#F695B5","#CB4F4F","#896F65","#F3AE96","#EE7850","#DDAE67","#A6CA72","#62893D","#91C9C4","#38818D","#77B5F1","#3F4C99","#919DA4"],t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Math.abs(r.hashCode(e));return n[t%n.length]},i={0:0,24:12,32:14,40:16,48:20,128:64,200:80},o=Object.entries(i).map((function(r){var n=e(r,2),t=n[0],i=n[1];return[Number(t),i]})).sort((function(e,r){return e[0]-r[0]})).map((function(r){var n=e(r,2);return{size:n[0],fontSize:n[1]}})),f=function(e){if(i[e])return i[e];var r=o.findIndex((function(r,n,t){var i=r.size;return e>i&&n<t.length-1&&e<t[n+1].size}));if(r<0)return e<o[0].size?o[0].fontSize:o.slice(-1)[0].fontSize;var n=o[r],t=o[r+1],f=(e-n.size)/(t.size-n.size);return n.fontSize+(t.fontSize-n.fontSize)*f};export{n as ColorsArray,i as SizeToFontSizeMap,t as getColor,f as getFontSize};
//# sourceMappingURL=constants.js.map
