import{K as n}from"./p-4cefd7fe.js";function t(t){return e=>{const{connectedCallback:i,componentDidLoad:o,disconnectedCallback:s}=e;e.connectedCallback=function(){const{keyboardEventListeners:t=[]}=this;return n.register(t),null==i?void 0:i.call(this)},e.componentDidLoad=function(){return this.keyboardEventListeners=t(this),n.register(this.keyboardEventListeners),null==o?void 0:o.call(this)},e.disconnectedCallback=function(){const{keyboardEventListeners:t=[]}=this;return n.deregister(t),null==s?void 0:s.call(this)}}}export{t as I}