import {
  e
} from "./chunk-LE25MNGD.js";
import {
  a
} from "./chunk-6F64OIHP.js";
import {
  __async
} from "./chunk-WDMUDEB6.js";

// node_modules/@ionic/core/components/p-C59ryAuS.js
var t = "ion-content";
var a2 = ".ion-content-scroll-host";
var r = `${t}, ${a2}`;
var e2 = (o) => "ION-CONTENT" === o.tagName;
var i = (s) => __async(null, null, function* () {
  return e2(s) ? (yield new Promise(((t2) => e(s, t2))), s.getScrollElement()) : s;
});
var n = (o) => o.querySelector(a2) || o.querySelector(r);
var f = (o) => o.closest(r);
var m = (o, s) => e2(o) ? o.scrollToTop(s) : Promise.resolve(o.scrollTo({ top: 0, left: 0, behavior: "smooth" }));
var c = (o, s, t2, a3) => e2(o) ? o.scrollByPoint(s, t2, a3) : Promise.resolve(o.scrollBy({ top: t2, left: s, behavior: a3 > 0 ? "smooth" : "auto" }));
var p = (o) => a(o, t);
var h = (o) => {
  if (e2(o)) {
    const s = o.scrollY;
    return o.scrollY = false, s;
  }
  return o.style.setProperty("overflow", "hidden"), true;
};
var l = (o, s) => {
  e2(o) ? o.scrollY = s : o.style.removeProperty("overflow");
};

export {
  t,
  a2 as a,
  e2 as e,
  i,
  n,
  f,
  m,
  c,
  p,
  h,
  l
};
/*! Bundled license information:

@ionic/core/components/p-C59ryAuS.js:
  (*!
   * (C) Ionic http://ionicframework.com - MIT License
   *)
*/
//# sourceMappingURL=chunk-6N3PHHCR.js.map
