import{Q as e}from"./vue.runtime.esm-bundler-DAWRyTnP.js";import{_ as t}from"./keyboard-BsJsGVTq.js";function n({container:n,accept:r,walk:i,enabled:a}){e(()=>{let e=n.value;if(!e||a!==void 0&&!a.value)return;let o=t(n);if(!o)return;let s=Object.assign(e=>r(e),{acceptNode:r}),c=o.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;c.nextNode();)i(c.currentNode)})}export{n as t};