/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import { w as writeTask, d as readTask } from './index-EpnuuCxl.js';

// eslint-disable-next-line no-restricted-imports
function readDOM(task) {
    readTask(task);
}
function writeDOM(task) {
    writeTask(task);
}
function debounceEvent(event, wait) {
    let timer = undefined;
    function debounce(value) {
        window.clearTimeout(timer);
        timer = window.setTimeout(() => event.emit(value), wait);
    }
    return {
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        emit: debounce,
        dispose() {
            window.clearTimeout(timer);
        },
    };
}

export { debounceEvent as d, readDOM as r, writeDOM as w };
//# sourceMappingURL=stencil-CEl7wGvE.js.map

//# sourceMappingURL=stencil-CEl7wGvE.js.map