import m from "../../utils/type.js";
import i from "../../utils/unpack.js";
import p from "../../chroma.js";
import o from "../../Color.js";
import r from "../input.js";
import e from "./lab2rgb.js";
import a from "./rgb2lab.js";
import { setLabWhitePoint as b, getLabWhitePoint as n } from "./lab-constants.js";
o.prototype.lab = function() {
  return a(this._rgb);
};
const f = (...t) => new o(...t, "lab");
Object.assign(p, { lab: f, getLabWhitePoint: n, setLabWhitePoint: b });
r.format.lab = e;
r.autodetect.push({
  p: 2,
  test: (...t) => {
    if (t = i(t, "lab"), m(t) === "array" && t.length === 3)
      return "lab";
  }
});
export {
  n as getLabWhitePoint,
  f as lab,
  b as setLabWhitePoint
};
//# sourceMappingURL=index.js.map
