var c=(e,a)=>{e.componentOnReady?e.componentOnReady().then(r=>a(r)):l(()=>a(e))},u=e=>e.componentOnReady!==void 0,o=(e,a=[])=>{let r={};return a.forEach(t=>{e.hasAttribute(t)&&(e.getAttribute(t)!==null&&(r[t]=e.getAttribute(t)),e.removeAttribute(t))}),r},s=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],m=e=>o(e,s),p=(e,a,r,t)=>e.addEventListener(a,r,t),v=(e,a,r,t)=>e.removeEventListener(a,r,t),b=(e,a=e)=>e.shadowRoot||a,l=e=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(e):typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(e),h=e=>!!e.shadowRoot&&!!e.attachShadow,f=e=>{if(e.focus(),e.classList.contains("ion-focusable")){let a=e.closest("ion-app");a&&a.setFocus([e])}},y=(e,a,r,t,n)=>{{let i=a.querySelector("input.aux-input");i||(i=a.ownerDocument.createElement("input"),i.type="hidden",i.classList.add("aux-input"),a.appendChild(i)),i.disabled=n,i.name=r,i.value=t||""}},w=(e,a,r)=>Math.max(e,Math.min(a,r));var x=e=>{if(e){let a=e.changedTouches;if(a&&a.length>0){let r=a[0];return{x:r.clientX,y:r.clientY}}if(e.pageX!==void 0)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}};var g=(e,a)=>{let r=e._original||e;return{_original:e,emit:d(r.emit.bind(r),a)}},d=(e,a=0)=>{let r;return(...t)=>{clearTimeout(r),r=setTimeout(e,a,...t)}},E=(e,a)=>{if(e!=null||(e={}),a!=null||(a={}),e===a)return!0;let r=Object.keys(e);if(r.length!==Object.keys(a).length)return!1;for(let t of r)if(!(t in a)||e[t]!==a[t])return!1;return!0};export{c as a,u as b,o as c,m as d,p as e,v as f,b as g,l as h,h as i,f as j,y as k,w as l,x as m,g as n,E as o};
