       setForm?.addEventListener('submit', (e) => {
                e.preventDefault();
                handleSet().catch(dbg.error);
            });
        };

        function getFormValues(selector) {
            /** @type {HTMLFormElement | null} */
            const form = document.querySelector(selector);
            if (!form) throw new Error('form not found');
            const formData = new FormData(form)
            const formEntries = Array.from(formData);
            return Object.fromEntries(