/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */
const n=(n,e=0)=>new Promise((r=>{t(n,e,r)})),t=(n,t=0,e)=>{let r,i;const o={passive:!0},s=()=>{r&&r()},a=t=>{void 0!==t&&n!==t.target||(s(),e(t))};return n&&(n.addEventListener("webkitTransitionEnd",a,o),n.addEventListener("transitionend",a,o),i=setTimeout(a,t+500),r=()=>{i&&(clearTimeout(i),i=void 0),n.removeEventListener("webkitTransitionEnd",a,o),n.removeEventListener("transitionend",a,o)}),s},e=(n,t)=>{n.componentOnReady?n.componentOnReady().then((n=>t(n))):a((()=>t(n)))},r=(n,t=[])=>{const e={};return t.forEach((t=>{n.hasAttribute(t)&&(null!==n.getAttribute(t)&&(e[t]=n.getAttribute(t)),n.removeAttribute(t))})),e},i=(n,t,e,r)=>{if("undefined"!=typeof window){const i=window,o=i&&i.Ionic&&i.Ionic.config;if(o){const i=o.get("_ael");if(i)return i(n,t,e,r);if(o._ael)return o._ael(n,t,e,r)}}return n.addEventListener(t,e,r)},o=(n,t,e,r)=>{if("undefined"!=typeof window){const i=window,o=i&&i.Ionic&&i.Ionic.config;if(o){const i=o.get("_rel");if(i)return i(n,t,e,r);if(o._rel)return o._rel(n,t,e,r)}}return n.removeEventListener(t,e,r)},s=(n,t=n)=>n.shadowRoot||t,a=n=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(n):"function"==typeof requestAnimationFrame?requestAnimationFrame(n):setTimeout(n),u=n=>!!n.shadowRoot&&!!n.attachShadow,l=n=>{const t=n.closest("ion-item");return t?t.querySelector("ion-label"):null},f=n=>{if(n.focus(),n.classList.contains("ion-focusable")){const t=n.closest("ion-app");t&&t.setFocus([n])}},c=(n,t)=>{let e;const r=n.getAttribute("aria-labelledby"),i=n.id;let o=null!==r&&""!==r.trim()?r:t+"-lbl",s=null!==r&&""!==r.trim()?document.getElementById(r):l(n);return s?(null===r&&(s.id=o),e=s.textContent,s.setAttribute("aria-hidden","true")):""!==i.trim()&&(s=document.querySelector(`label[for="${i}"]`),s&&(""!==s.id?o=s.id:s.id=o=`${i}-lbl`,e=s.textContent)),{label:s,labelId:o,labelText:e}},d=(n,t,e,r,i)=>{if(n||u(t)){let n=t.querySelector("input.aux-input");n||(n=t.ownerDocument.createElement("input"),n.type="hidden",n.classList.add("aux-input"),t.appendChild(n)),n.disabled=i,n.name=e,n.value=r||""}},m=(n,t,e)=>Math.max(n,Math.min(t,e)),b=(n,t)=>{if(!n){const n="ASSERT: "+t;throw console.error(n),new Error(n)}},w=n=>n.timeStamp||Date.now(),p=n=>{if(n){const t=n.changedTouches;if(t&&t.length>0){const n=t[0];return{x:n.clientX,y:n.clientY}}if(void 0!==n.pageX)return{x:n.pageX,y:n.pageY}}return{x:0,y:0}},_=n=>{const t="rtl"===document.dir;switch(n){case"start":return t;case"end":return!t;default:throw new Error(`"${n}" is not a valid value for [side]. Use "start" or "end" instead.`)}},y=(n,t)=>{const e=n._original||n;return{_original:n,emit:T(e.emit.bind(e),t)}},T=(n,t=0)=>{let e;return(...r)=>{clearTimeout(e),e=setTimeout(n,t,...r)}},h=(n,t)=>{if(null!=n||(n={}),null!=t||(t={}),n===t)return!0;const e=Object.keys(n);if(e.length!==Object.keys(t).length)return!1;for(const r of e){if(!(r in t))return!1;if(n[r]!==t[r])return!1}return!0};export{i as a,o as b,e as c,y as d,f as e,l as f,s as g,u as h,r as i,d as j,m as k,_ as l,b as m,c as n,T as o,p,w as q,a as r,h as s,n as t}