(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6602],{66602:(p,d,i)=>{i.r(d),i.d(d,{startFocusVisible:()=>h});const u="ion-focused",w=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],h=n=>{let a=[],c=!0;const e=n?n.shadowRoot:document,l=n||document.body,t=o=>{a.forEach(s=>s.classList.remove(u)),o.forEach(s=>s.classList.add(u)),a=o},r=()=>{c=!1,t([])},f=o=>{c=w.includes(o.key),c||t([])},v=o=>{if(c&&void 0!==o.composedPath){const s=o.composedPath().filter(L=>!!L.classList&&L.classList.contains("ion-focusable"));t(s)}},E=()=>{e.activeElement===l&&t([])};return e.addEventListener("keydown",f),e.addEventListener("focusin",v),e.addEventListener("focusout",E),e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),{destroy:()=>{e.removeEventListener("keydown",f),e.removeEventListener("focusin",v),e.removeEventListener("focusout",E),e.removeEventListener("touchstart",r),e.removeEventListener("mousedown",r)},setFocus:t}}}}]);