import { t as o } from "./vendor/react.js";
import { t as c } from "./clamp.js";
var u = o(), t = "base-ui-disable-scrollbar", b = {
  className: t,
  getElement(e) {
    return /* @__PURE__ */ (0, u.jsx)("style", {
      nonce: e,
      href: t,
      precedence: "base-ui:low",
      children: `.${t}{scrollbar-width:none}.${t}::-webkit-scrollbar{display:none}`
    });
  }
};
function m(e, r) {
  return Math.max(0, e - r);
}
function S(e, r) {
  if (r <= 0) return 0;
  const n = c(e, 0, r), s = n, a = r - n, i = s <= 1, l = a <= 1;
  return i && l ? s <= a ? 0 : r : i ? 0 : l ? r : n;
}
export {
  S as n,
  b as r,
  m as t
};

//# sourceMappingURL=scrollEdges.js.map