import{a as c}from"./chunk-BJ43HUSB.js";import{g as a}from"./chunk-7NPRN4HX.js";import{k as l}from"./chunk-24IZEI4V.js";var n="ion-content",i=".ion-content-scroll-host",m=`${n}, ${i}`,r=o=>o.tagName==="ION-CONTENT",y=o=>l(null,null,function*(){return r(o)?(yield new Promise(e=>c(o,e)),o.getScrollElement()):o}),h=o=>o.querySelector(i)||o.querySelector(m),v=o=>o.closest(m),u=(o,e)=>r(o)?o.scrollToTop(e):Promise.resolve(o.scrollTo({top:0,left:0,behavior:"smooth"})),P=(o,e,s,t)=>r(o)?o.scrollByPoint(e,s,t):Promise.resolve(o.scrollBy({top:s,left:e,behavior:t>0?"smooth":"auto"})),T=o=>a(o,n),w=o=>{if(r(o)){let e=o.scrollY;return o.scrollY=!1,e}return o.style.setProperty("overflow","hidden"),!0},N=(o,e)=>{r(o)?o.scrollY=e:o.style.removeProperty("overflow")};export{r as a,y as b,h as c,v as d,u as e,P as f,T as g,w as h,N as i};
