How to define active widget with js in a customizer

Found in the source code the answer to my question, maybe someone will come in handy:

jQuery(document).on('expand', function (event) {
        console.log(event.target);
});