var h=(e,t=0)=>new Promise(a=>{d(e,t,a)}),d=(e,t=0,a)=>{let n,i,r={passive:!0},c=500,u=()=>{n&&n()},s=o=>{(o===void 0||e===o.target)&&(u(),a(o))};return e&&(e.addEventListener("webkitTransitionEnd",s,r),e.addEventListener("transitionend",s,r),i=setTimeout(s,t+c),n=()=>{i!==void 0&&(clearTimeout(i),i=void 0),e.removeEventListener("webkitTransitionEnd",s,r),e.removeEventListener("transitionend",s,r)}),u},p=(e,t)=>{e.componentOnReady?e.componentOnReady().then(a=>t(a)):m(()=>t(e))},y=e=>e.componentOnReady!==void 0,l=(e,t=[])=>{let a={};return t.forEach(n=>{e.hasAttribute(n)&&(e.getAttribute(n)!==null&&(a[n]=e.getAttribute(n)),e.removeAttribute(n))}),a},f=["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"],E=(e,t)=>l(e,f),g=(e,t,a,n)=>e.addEventListener(t,a,n),v=(e,t,a,n)=>e.removeEventListener(t,a,n),w=(e,t=e)=>e.shadowRoot||t,m=e=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(e):typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(e),T=e=>!!e.shadowRoot&&!!e.attachShadow,A=e=>{if(e.focus(),e.classList.contains("ion-focusable")){let t=e.closest("ion-app");t&&t.setFocus([e])}},x=(e,t,a,n,i)=>{{let r=t.querySelector("input.aux-input");r||(r=t.ownerDocument.createElement("input"),r.type="hidden",r.classList.add("aux-input"),t.appendChild(r)),r.disabled=i,r.name=a,r.value=n||""}},L=(e,t,a)=>Math.max(e,Math.min(t,a));var _=e=>{if(e){let t=e.changedTouches;if(t&&t.length>0){let a=t[0];return{x:a.clientX,y:a.clientY}}if(e.pageX!==void 0)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}};var R=(e,t)=>{let a=e._original||e;return{_original:e,emit:b(a.emit.bind(a),t)}},b=(e,t=0)=>{let a;return(...n)=>{clearTimeout(a),a=setTimeout(e,t,...n)}},O=(e,t)=>{if(e??(e={}),t??(t={}),e===t)return!0;let a=Object.keys(e);if(a.length!==Object.keys(t).length)return!1;for(let n of a)if(!(n in t)||e[n]!==t[n])return!1;return!0};export{h as a,p as b,y as c,l as d,E as e,g as f,v as g,w as h,m as i,T as j,A as k,x as l,L as m,_ as n,R as o,O as p};
