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