import e from "../color/index.js";
import t from "./rgba.js";
//#region ../../node_modules/khroma/dist/methods/mix.js
var n = (n, r, i = 50) => {
	let { r: a, g: o, b: s, a: c } = e.parse(n), { r: l, g: u, b: d, a: f } = e.parse(r), p = i / 100, m = p * 2 - 1, h = c - f, g = ((m * h === -1 ? m : (m + h) / (1 + m * h)) + 1) / 2, _ = 1 - g;
	return t(a * g + l * _, o * g + u * _, s * g + d * _, c * p + f * (1 - p));
};
//#endregion
export { n as default };
