import{c as t}from"./p-7cbdb4ea.js";import{a as o}from"./p-b5cdbd99.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const s="ION-CONTENT";const n="ion-content";const r=".ion-content-scroll-host";const c=`${n}, ${r}`;const e=t=>t&&t.tagName===s;const a=async o=>{if(e(o)){await new Promise((s=>t(o,s)));return o.getScrollElement()}return o};const i=t=>{const o=t.querySelector(r);if(o){return o}return t.querySelector(c)};const u=t=>t.closest(c);const f=(t,o)=>{if(e(t)){const s=t;return s.scrollToTop(o)}return Promise.resolve(t.scrollTo({top:0,left:0,behavior:o>0?"smooth":"auto"}))};const m=(t,o,s,n)=>{if(e(t)){const r=t;return r.scrollByPoint(o,s,n)}return Promise.resolve(t.scrollBy({top:s,left:o,behavior:n>0?"smooth":"auto"}))};const p=t=>o(t,n);export{u as a,m as b,i as f,a as g,p,f as s};
//# sourceMappingURL=p-f8ebb6a3.js.map