text: (function e(t,n){if(typeof exports==="object"&&typeof module==="object")module.exports=n();else if(typeof define==="function"&&define.amd)define([],n);else if(typeof exports==="object")exports["eventbus"]=n();else t["eventbus"]=n()})(window,function(){return function(e){var t={};function n(i){if(t[i]){return t[i].exports}var r=t[i]={i,l:false,exports:{}};e[i].call(r.exports,r,r.exports,n);r.l=true;return r.exports}n.m=e;n.c=t;n.d=function(e,t,i){if(!n.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:i})}};n.r=function(e){Object.defineProperty(e,"__esModule",{value:true})};n.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};n.d(t,"a",t);return t};n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};n.p="";return n(n.s=2)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,n,i){if(n)e(t.prototype,n);if(i)e(t,i);return t}}();function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var o=function(){function e(){r(this,e);this._options={log:true}}i(e,[{key:"set",value:function e(t,n){this._options[t]=n}},{key:"get",value:function e(t){return this._options[t]}}]);return e}();t.default=new o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,n,i){if(n)e(t.prototype,n);if(i)e(t,i);return t}}();var r=n(0);var o=u(r);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var f=function(){function e(){l(this,e);this.list={}}i(e,[{key:"emit",value:function e(t){var n=this;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};i._name=t;if(this.list[t]){if(o.default.get("log")){console.info(this.list[t].length+" handler"+(this.list[t].length>1?"s":"")+" called on event '"+t+"'")}this.list[t].forEach(function(e){e.handler(i);if(e.once){n.off(t,e.handler)}})}else{if(o.default.get("log")){console.info("0 handlers called on event '"+t+"'")}}}},{key:"on",value:function e(t,n){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(this.list[t]){this.list[t].push({once:i,handler:n})}else{this.list[t]=[];this.list[t].push({once:i,handler:n})}}},{key:"once",value:function e(t,n){this.on(t,n,true)}},{key:"off",value:function e(t,n){if(t!=null){if(n!=null){if(this.list[t]&&this.list[t].filter(function(e){return e.handler===n}).length){var i=this.list[t].filter(function(e){return e.handler===n})[0];var r=this.list[t].indexOf(i);if(r>-1){this.list[t].splice(r,1)}}else{console.warn("Event "+t+" cannot be unsubscribed - does not exist.")}}else{this.list[t]=[]}}else{this.list={}}}}]);return e}();t.default=new f},function(e,t,n){"use strict";var i=n(1);var r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=r.default}])});