let workingDefaultPrevented=(()=>{let e=document.createEvent("Event");return e.initEvent("foo",!0,!0),e.preventDefault(),e.defaultPrevented})();if(!workingDefaultPrevented){let e=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(e.call(this),Object.defineProperty(this,"defaultPrevented",{get:()=>!0,configurable:!0}))}}let isIE=/Trident/.test(navigator.userAgent);if(!window.Event||isIE&&"function"!=typeof window.Event){let e=window.Event;if(window.Event=(e,t)=>{t=t||{};let n=document.createEvent("Event");return n.initEvent(e,!!t.bubbles,!!t.cancelable),n},e){for(let t in e)window.Event[t]=e[t];window.Event.prototype=e.prototype}}if((!window.CustomEvent||isIE&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=(e,t)=>{t=t||{};let n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.MouseEvent||isIE&&"function"!=typeof window.MouseEvent){let e=window.MouseEvent;if(window.MouseEvent=(e,t)=>{t=t||{};let n=document.createEvent("MouseEvent");return n.initMouseEvent(e,!!t.bubbles,!!t.cancelable,t.view||window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),n},e)for(let t in e)window.MouseEvent[t]=e[t];window.MouseEvent.prototype=e.prototype}export{};