import l, { hue as e } from "./color.js";
import { hcl as h } from "../../../../d3-color@3.1.0/node_modules/d3-color/src/lab.js";
function r(n) {
  return function(c, o) {
    var p = n((c = h(c)).h, (o = h(o)).h), u = l(c.c, o.c), f = l(c.l, o.l), m = l(c.opacity, o.opacity);
    return function(i) {
      return c.h = p(i), c.c = u(i), c.l = f(i), c.opacity = m(i), c + "";
    };
  };
}
const g = r(e);
export {
  g as default
};
