import{E as f}from"./index.DXvi0yH9.js";import{i as d}from"./keyboard.D4P2wQc7.js";function s({container:e,accept:r,walk:i,enabled:t}){f(()=>{let a=e.value;if(!a||t!==void 0&&!t.value)return;let n=d(e);if(!n)return;let l=Object.assign(o=>r(o),{acceptNode:r}),c=n.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,l,!1);for(;c.nextNode();)i(c.currentNode)})}export{s as i};
