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