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