module.exports = "(function(e,n,t){function a(e,n){return null!=n&&\"undefined\"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}var o=t(5894),r=t(7358),i=t(8361).J;e.exports={initialize:function(){this.__state={events:[],foreignEvents:{},foreignEventQueues:{}},this.on(r.SET_VISITOR_EVENTS,this.__loadData),this.on(r.SET_FOREIGN_VISITOR_EVENTS,this.__loadForeignEvents),this.on(r.SET_FOREIGN_VISITOR_EVENT_QUEUE,this.__loadForeignEventQueue)},getEvents:function(){return this.__state.events},getForeignEvents:function(){return this.__state.foreignEvents},getForeignEventQueues:function(){return this.__state.foreignEventQueues},__loadData:function(e){if(__INVARIANT__){if(!o.isArray(e))throw new Error(\"payload must be an array\");o.each(e,(function(e,n){if(!a(e,i))throw new Error(\"Error on payload[\"+n+\"]: Each instance of payload must be a behavior.Event instance\")}))}this.__state.events=e,this.emitChange()},__loadForeignEvents:function(e){if(__INVARIANT__){if(!o.isArray(e.value))throw new Error(\"payload must be an array\");o.each(e.value,(function(e,n){if(!a(e,i))throw new Error(\"Error on payload[\"+n+\"]: Each instance of payload must be a behavior.Event instance\")}))}this.__state.foreignEvents[e.key]=e.value},__loadForeignEventQueue:function(e){if(__INVARIANT__){if(!o.isArray(e.value))throw new Error(\"payload must be an array\");o.each(e.value,(function(e,n){if(!a(e,i))throw new Error(\"Error on payload[\"+n+\"]: Each instance of payload must be a behavior.Event instance\")}))}this.__state.foreignEventQueues[e.key]=e.value}}})";