const c = (o) => {
  const t = "[data-virtuoso-scroller]";
  let l = null;
  if (l = o.querySelector(t), l) return l;
  if (!l) {
    const s = Array.from(o.querySelectorAll("div"));
    for (const e of s) {
      const r = window.getComputedStyle(e);
      if (r.overflowY === "auto" || r.overflowY === "scroll") {
        l = e;
        break;
      }
    }
  }
  return l || o;
};
export {
  c as findVirtuosoScrollableElement
};
//# sourceMappingURL=virtuoso-dom.js.map
