{"version":3,"file":"index.cjs","sources":["../../../../../../../../../.yarn/berry/cache/chroma-js-npm-3.2.0-d5c39f5077-10c0.zip/node_modules/chroma-js/src/utils/index.js"],"sourcesContent":["const { PI, min, max } = Math;\n\nconst rnd2 = (a) => Math.round(a * 100) / 100;\nconst rnd3 = (a) => Math.round(a * 100) / 100;\n\nexport { default as clip_rgb } from './clip_rgb.js';\nexport { default as limit } from './limit.js';\nexport { default as type } from './type.js';\nexport { default as unpack } from './unpack.js';\nexport { default as last } from './last.js';\n\nconst TWOPI = PI * 2;\nconst PITHIRD = PI / 3;\nconst DEG2RAD = PI / 180;\nconst RAD2DEG = 180 / PI;\n\n/**\n * Reverse the first three elements of an array\n *\n * @param {any[]} arr\n * @returns {any[]}\n */\nfunction reverse3(arr) {\n    return [...arr.slice(0, 3).reverse(), ...arr.slice(3)];\n}\n\nexport { PI, TWOPI, PITHIRD, DEG2RAD, RAD2DEG, min, max, rnd2, rnd3, reverse3 };\n"],"names":[],"mappings":";;;AAAK,MAAC,EAAE,IAAI,KAAK,QAAQ;AAEpB,MAAC,OAAO,CAAC,MAAM,KAAK,MAAM,IAAI,GAAG,IAAI;AACrC,MAAC,OAAO,CAAC,MAAM,KAAK,MAAM,IAAI,GAAG,IAAI;AAQrC,MAAC,QAAQ,KAAK;AACd,MAAC,UAAU,KAAK;AAChB,MAAC,UAAU,KAAK;AAChB,MAAC,UAAU,MAAM;AAQtB,SAAS,SAAS,KAAK;AACnB,SAAO,CAAC,GAAG,IAAI,MAAM,GAAG,CAAC,EAAE,QAAO,GAAI,GAAG,IAAI,MAAM,CAAC,CAAC;AACzD;;;;;;;;;;;;","x_google_ignoreList":[0]}