export class UserActionBroker{valid(e){return["click","hover","mousedown","mouseup","visibility","keypress","keydown","keyup","focusin","focusout"].includes(e)}fire(e,o,r,n,s=!1){r.eventType=o,n.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,cancelable:!0,detail:r})),s&&(n.innerHTML=`<pre>${JSON.stringify(r,null,2)}</pre>`)}}export const UABroker=new UserActionBroker;