module.exports = "(function(t,s,n){var o=n(5894),e=n(4542);function i(t){t=t||{},this.__stores={},this.__observers={},this.__dispatchId=0,this.__preActions=[],this.__postActions=[]}function r(t,s){return function(){var n=t.indexOf(s);-1!==n&&t.splice(n,1)}}i.prototype.registerStores=function(t){o.forOwn(t,o.bind((function(t,s){this.__stores[s]=new e(s,this,t)}),this))},i.prototype.getStore=function(t){return this.__stores[t]},i.prototype.dispatch=function(t,s){if(__INVARIANT__&&!t)throw new Error(\"Flux: invalid actionType \"+t+s);this.dispatchId++,o.each(this.__preActions,o.bind((function(n){n.call(this,t,s)}),this)),o.forOwn(this.__stores,(function(n){n.__handleAction(t,s)})),o.each(this.__postActions,o.bind((function(n){n.call(this,t,s)}),this)),o.forOwn(this.__stores,o.bind((function(t,s){t.hasChanges()&&this.__observers[s]&&(t.resetChange(),o.each(this.__observers[s],(function(s){s(t)})))}),this))},i.prototype.reset=function(){this.__observers={},o.forOwn(this.__stores,(function(t,s){t.__reset()}))},i.prototype.getState=function(){var t={};return o.forOwn(this.__stores,(function(s,n){t[n]=s.__getState()})),t},i.prototype.onPreAction=function(t){var s=this.__preActions;return s.push(t),r(s,t)},i.prototype.onPostAction=function(t){var s=this.__postActions;return s.push(t),r(s,t)},i.prototype.__addObserver=function(t,s){return this.__observers[t]||(this.__observers[t]=[]),this.__observers[t].push(s),r(this.__observers[t],s)},t.exports={create:function(t){return new i(t)}}})";