var d = function(t, e, f, l, a) {
  var o = a.clientWidth, u = a.clientHeight, c = typeof t.pageX == "number" ? t.pageX : t.touches[0].pageX, p = typeof t.pageY == "number" ? t.pageY : t.touches[0].pageY, n = c - (a.getBoundingClientRect().left + window.pageXOffset), g = p - (a.getBoundingClientRect().top + window.pageYOffset);
  if (f === "vertical") {
    var r = void 0;
    if (g < 0 ? r = 0 : g > u ? r = 1 : r = Math.round(g * 100 / u) / 100, e.a !== r)
      return {
        h: e.h,
        s: e.s,
        l: e.l,
        a: r,
        source: "rgb"
      };
  } else {
    var i = void 0;
    if (n < 0 ? i = 0 : n > o ? i = 1 : i = Math.round(n * 100 / o) / 100, l !== i)
      return {
        h: e.h,
        s: e.s,
        l: e.l,
        a: i,
        source: "rgb"
      };
  }
  return null;
};
export {
  d as calculateChange
};
//# sourceMappingURL=alpha.js.map
