import{FOCUS_AUTO as r}from"../constants.js";import{toArray as t}from"./array.js";import{tabbables as e}from"./tabbables.js";var n=e.join(","),o=n+", [data-focus-guard]",u=function(r,e){return r.reduce((function(r,u){return r.concat(t(u.querySelectorAll(e?o:n)),u.parentNode?t(u.parentNode.querySelectorAll(n)).filter((function(r){return r===u})):[])}),[])},c=function(e){var n=e.querySelectorAll("["+r+"]");return t(n).map((function(r){return u([r])})).reduce((function(r,t){return r.concat(t)}),[])};export{u as getFocusables,c as getParentAutofocusables};
//# sourceMappingURL=tabUtils.js.map
