<?php
namespace NeoDrawFull\NeoGlobal; if (!defined("ABSPATH")) { die("neoWP direct access not allowed"); }




\NeoDrawFull\NeoGlobal\add_action_hook("wp_head", "admin_head", function () {
    ?>
    <script>

    const neoFirstInteractionPromiseNeoDrawFull = new Promise((resolve) => {
        const events = ["mousemove", "pointermove", "touchstart", "mousedown", "keydown", "keyup", "click", "wheel"];
        const resolveAndRemoveEventListeners = (evt) => {
            if (!evt.isTrusted) { return; }
            for (const event of events) { window.removeEventListener(event, resolveAndRemoveEventListeners); }
            resolve();
        };
        for (const event of events) { window.addEventListener(event, resolveAndRemoveEventListeners); }
    });
    </script>
<?php });
