module.exports = "(function(e,t,n){var i=n(5894),a=n(7358),s=n(9133);function u(e,t){return t||(t={}),e?(i.each(e,(function(e){if(!i.isString(e)){if(i.isObject(e)){var n=e.type,a=e.name||\"_\";t[n]||(t[n]={}),t[n][a]=!0}i.isArray(e)&&u(e,t)}})),t):t}e.exports={initialize:function(){this.__state={audiences:{},featuresNeeded:{}},this.on(a.DATA_LOADED,this.__loadData)},__loadData:function(e){i.isEmpty(e.data.audiences)||(i.each(e.data.audiences,i.bind((function(e){s.deepFreeze(e),i.merge(this.__state.featuresNeeded,u(e.conditions)),this.__state.audiences[e.id]=e}),this)),this.emitChange())},getAll:function(){return s.safeReference(i.values(this.__state.audiences))},getFeaturesNeeded:function(e){return s.safeReference(this.__state.featuresNeeded[e]||{})},getAudiencesMap:function(){return s.safeReference(this.__state.audiences)},get:function(e){return s.safeReference(this.__state.audiences[e])},getAudienceName:function(e){return i.find(i.values(this.__state.audiences),{id:e}).name||\"Aud \"+e}}})";