text: var liev=function(e){"use strict";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?n(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var o=function(e){return"string"==typeof e},c=function(e){return"function"==typeof e},i=function(e){return e instanceof HTMLElement},u=function(e,t){return void 0===e?!t.toString().includes(".preventDefault()"):e},a=!1;try{var l=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassive",null,l),window.removeEventListener("testPassive",null,l)}catch(e){}var s=new WeakMap,f=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.once,l=r.element,f=void 0===l?document.documentElement:l,v=r.passive;if(!(o(e)&&o(t)&&c(n)&&i(f)))return console.warn("couldn't detach listener."),!1;var d=u(v,n),p=s.get(f);if(!p)return!1;var b=p[e];if(!b)return!1;var g=b[d];if(!g)return!1;var m=g.findIndex((function(e){return e.selector===t&&e.callback===n&&e.once===a}));return-1!==m&&(1===g.length?(f.removeEventListener(e,g.handler,{passive:d}),delete b[d],!0):(g.splice(m,1),!0))},v=function(e,t,n){var r=function(e,t,n){return function(r){s.get(e)[t][n].forEach((function(o){var c=o.selector,i=o.callback,u=o.once,l=c?r.target.closest(c):r.target;l&&(!n||a&&!r.defaultPrevented||(r.preventDefault=function(){}),i(l,r),u&&f(t,c,i,{once:u,element:e,passive:n}))}))}}(e,t,n);s.get(e)[t][n].handler=r,e.addEventListener(t,r,{passive:n})};return e.emit=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,n=arguments.length>2?arguments[2]:void 0;return!(!i(t)||!o(e))&&(t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n})),!0)},e.off=f,e.on=function(e,n,a){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=l.once,d=l.element,p=void 0===d?document.documentElement:d,b=l.passive;if(!(o(e)&&o(n)&&c(a)&&i(p)))return console.warn("couldn't attach listener."),!1;var g=u(b,a),m=r({selector:n,callback:a},f&&{once:f}),O=s.get(p);if(!O)return s.set(p,t({},e,t({},g,[m]))),v(p,e,g),!0;var h=O[e];if(!h)return O[e]=t({},g,[m]),v(p,e,g),!0;var y=h[g];return y?(y.push(m),!0):(h[g]=[m],v(p,e,g),!0)},e}({});
  