!function(e){functiont(n){if(r[n])returnr[n].exports;varo=r[n]={exports:{},id:n,loaded:!1};returne[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}varn=window.webpackJsonp;window.webpackJsonp=function(r,i){for(vara,s,u=0,c=[];u<r.length;u++)s=r[u],o[s]&&c.push.apply(c,o[s]),o[s]=0;for(aini){varl=i[a];switch(typeofl){case"object":e[a]=function(t){varn=t.slice(1),r=t[0];returnfunction(t,o,i){e[r].apply(this,[t,o,i].concat(n))}}(l);break;case"function":e[a]=l;break;default:e[a]=e[l]}}for(n&&n(r,i);c.length;)c.shift().call(null,t)};varr={},o={0:0};returnt.e=function(e,n){if(0===o[e])returnn.call(null,t);if(void0!==o[e])o[e].push(n);else{o[e]=[n];varr=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.src=t.p+""+e+"."+({}[e]||e)+".js",r.appendChild(i)}},t.m=e,t.c=r,t.p="./",t(0)}(function(e){for(vartine)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeofe[t]){case"function":break;case"object":e[t]=function(t){varn=t.slice(1),r=e[t[0]];returnfunction(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}returne}([function(e,t,n){n(396),n(399),n(630),n(333),n(334),e.exports=n(394)},function(e,t,n){varr=n(7),o=n(41),i=n(24),a=n(28),s=n(51),u="prototype",c=function(e,t,n){varl,f,p,d,h=e&c.F,m=e&c.G,v=e&c.S,y=e&c.P,g=e&c.B,b=m?r:v?r[t]||(r[t]={}):(r[t]||{})[u],_=m?o:o[t]||(o[t]={}),w=_[u]||(_[u]={});m&&(n=t);for(linn)f=!h&&b&&void0!==b[l],p=(f?b:n)[l],d=g&&f?s(p,r):y&&"function"==typeofp?s(Function.call,p):p,b&&a(b,l,p,e&c.U),_[l]!=p&&i(_,l,d),y&&w[l]!=p&&(w[l]=p)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){"use strict";e.exports=n(808)},function(e,t,n){"use strict";functionr(e,t,n,r,o,i,a,s){if(!e){varu;if(void0===t)u=newError("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{varc=[n,r,o,i,a,s],l=0;u=newError(t.replace(/%s/g,function(){returnc[l++]})),u.name="Invariant Violation"}throwu.framesToPop=1,u}}e.exports=r},function(e,t,n){varr=n(9);e.exports=function(e){if(!r(e))throwTypeError(e+" is not an object!");returne}},function(e,t){"use strict";functionn(e){for(vart=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";varo=newError(n);throwo.name="Invariant Violation",o.framesToPop=1,o}e.exports=n},function(e,t,n){"use strict";varr=n(38),o=r;e.exports=o},function(e,t){varn=e.exports="undefined"!=typeofwindow&&window.Math==Math?window:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")();"number"==typeof__g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports=function(e){return"object"==typeofe?null!==e:"function"==typeofe}},function(e,t,n){varr=n(115)("wks"),o=n(74),i=n(7).Symbol,a="function"==typeofi,s=e.exports=function(e){returnr[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=r},function(e,t){"use strict";functionn(e){if(null===e||void0===e)thrownewTypeError("Object.assign cannot be called with null or undefined");returnObject(e)}functionr(){try{if(!Object.assign)return!1;vare=newString("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(vart={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;varr=Object.getOwnPropertyNames(t).map(function(e){returnt[e]});if("0123456789"!==r.join(""))return!1;varo={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}varo=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(varr,a,s=n(e),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(varcinr)o.call(r,c)&&(s[c]=r[c]);i
},ee=function(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t},te="undefined"==typeofe?self:e,ne=functionet(e,t,n,r){varo=Object.getOwnPropertyDescriptor(e,t);if(void0===o){vari=Object.getPrototypeOf(e);null!==i&&et(i,t,n,r)}elseif("value"ino&&o.writable)o.value=n;else{vara=o.set;void0!==a&&a.call(r,n)}returnn},re=function(){functione(e,t){varn=[],r=!0,o=!1,i=void0;try{for(vara,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&s.return&&s.return()}finally{if(o)throwi}}returnn}returnfunction(t,n){if(Array.isArray(t))returnt;if(Symbol.iteratorinObject(t))returne(t,n);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(e,t){if(Array.isArray(e))returne;if(Symbol.iteratorinObject(e)){for(varn,r=[],o=e[Symbol.iterator]();!(n=o.next()).done&&(r.push(n.value),!t||r.length!==t););returnr}thrownewTypeError("Invalid attempt to destructure non-iterable instance")},ie=function(e,t){returnObject.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},ae=function(e,t){returne.raw=t,e},se=function(e,t,n){if(e===n)thrownewReferenceError(t+" is not defined - temporal dead zone");returne},ue={},ce=function(e){returnArray.isArray(e)?e:Array.from(e)},le=function(e){if(Array.isArray(e)){for(vart=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];returnn}returnArray.from(e)},fe=Object.freeze({_typeof:L,jsx:D,asyncToGenerator:U,classCallCheck:B,createClass:q,defineEnumerableProperties:H,defaults:W,defineProperty:z,_extends:$,get:V,inherits:G,_instanceof:K,interopRequireDefault:Y,interopRequireWildcard:X,newArrowCheck:Q,objectDestructuringEmpty:J,objectWithoutProperties:Z,possibleConstructorReturn:ee,selfGlobal:te,set:ne,slicedToArray:re,slicedToArrayLoose:oe,taggedTemplateLiteral:ie,taggedTemplateLiteralLoose:ae,temporalRef:se,temporalUndefined:ue,toArray:ce,toConsumableArray:le,"typeof":L,"extends":$,"instanceof":K}),pe=F.PropTypes.bool,de=F.PropTypes.number,he=F.PropTypes.string,me=F.PropTypes.func,ve=F.PropTypes.object,ye=F.PropTypes.oneOf,ge=F.PropTypes.shape,be={locale:he,formats:ve,messages:ve,defaultLocale:he,defaultFormats:ve},_e={formatDate:me.isRequired,formatTime:me.isRequired,formatRelative:me.isRequired,formatNumber:me.isRequired,formatPlural:me.isRequired,formatMessage:me.isRequired,formatHTMLMessage:me.isRequired},we=ge(fe.extends({},be,_e,{formatters:ve,now:me.isRequired})),Ee={id:he.isRequired,description:he,defaultMessage:he},xe={localeMatcher:ye(["best fit","lookup"]),formatMatcher:ye(["basic","best fit"]),timeZone:he,hour12:pe,weekday:ye(["narrow","short","long"]),era:ye(["narrow","short","long"]),year:ye(["numeric","2-digit"]),month:ye(["numeric","2-digit","narrow","short","long"]),day:ye(["numeric","2-digit"]),hour:ye(["numeric","2-digit"]),minute:ye(["numeric","2-digit"]),second:ye(["numeric","2-digit"]),timeZoneName:ye(["short","long"])},Pe={localeMatcher:ye(["best fit","lookup"]),style:ye(["decimal","currency","percent"]),currency:he,currencyDisplay:ye(["symbol","code","name"]),useGrouping:pe,minimumIntegerDigits:de,minimumFractionDigits:de,maximumFractionDigits:de,minimumSignificantDigits:de,maximumSignificantDigits:de},Te={style:ye(["best fit","numeric"]),units:ye(["second","minute","hour","day","month","year"])},Se={style:ye(["cardinal","ordinal"])},Oe=Object.keys(be),Ce={"&":"&",">":">","<":"<",'"':""","'":"'"},Ae=/[&><"']/g,ke=functiontt(e){vart=arguments.length<=1||void0===arguments[1]?{}:arguments[1];B(this,tt);varn="ordinal"===t.style,r=v(m(e));this.format=function(e){returnr(e,n)}},Me=Object.keys(xe),Fe=Object.keys(Pe),Ne=Object.keys(Te),Ie=Object.keys(Se),Re={second:60,minute:60,hour:24,day:30,month:12},je=Object.freeze({formatDate:b,formatTime:_,formatRelative:w,formatNumber:E,formatPlural:x,formatMessage:P,formatHTMLMessage:T}),Le=Object.keys(be),De=Object.keys(_e),Ue={formats:{},messages:{},defaultLocale:"en",defaultFormats:{}}
}functionf(e,t,n,r){varo=r.mergeIntoEntity,a=void0===o?l:o,s=t.getKey(),u=t.getId(e);n.hasOwnProperty(s)||(n[s]={}),n[s].hasOwnProperty(u)||(n[s][u]={});varc=n[s][u],f=i(e,t,n,r);returna(c,f,s),u}functionp(e,t,n,r){return(0,O.default)(e)&&(0,O.default)(t)?tinstanceofb.default?f(e,t,n,r):tinstanceofw.default?u(e,t,n,r):tinstanceofx.default?c(e,t,n,r):i(e,t,n,r):e}functiond(e,t){returnneww.default(e,t)}functionh(e,t){returnneww.default(e,t)}functionm(e,t){returnnewx.default(e,t)}functionv(e,t){varn=arguments.length<=2||void0===arguments[2]?{}:arguments[2];if(!(0,O.default)(e))thrownewError("Normalize accepts an object or an array as its input.");if(!(0,O.default)(t)||Array.isArray(t))thrownewError("Normalize accepts an object for schema.");varr={},o=p(e,t,r,n);return{entities:r,result:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.Schema=void0;vary=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne};t.arrayOf=d,t.valuesOf=h,t.unionOf=m,t.normalize=v;varg=n(755),b=r(g),_=n(756),w=r(_),E=n(282),x=r(E),P=n(748),T=r(P),S=n(34),O=r(S);t.Schema=b.default},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});varo=n(34),i=r(o),a=n(45),s=r(a),u=n(2),c=r(u),l=n(757),f=r(l),p=n(763),d=r(p),h=n(765),m=r(h),v=n(762),y=r(v),g=functionb(e,t,n){varr=void0,o=void0,i=void0;i=e,Object.isFrozen&&Object.isFrozen(i)&&(o=!0,i=(0,f.default)(i),i.props=(0,f.default)(i.props));vara=(0,m.default)(i.props.styleName||"",n.allowMultiple);returnc.default.isValidElement(i.props.children)?i.props.children=b(c.default.Children.only(i.props.children),t,n):((0,s.default)(i.props.children)||(0,d.default)(i.props.children))&&(i.props.children=c.default.Children.map(i.props.children,function(e){returnc.default.isValidElement(e)?b(e,t,n):e})),a.length&&(r=(0,y.default)(t,a,n.errorWhenNotFound),r&&(i.props.className&&(r=i.props.className+" "+r),i.props.className=r)),deletei.props.styleName,o&&(Object.freeze(i.props),Object.freeze(i)),i};t.default=function(e){vart=arguments.length<=1||void0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void0===arguments[2]?{}:arguments[2];return(0,i.default)(e)?g(e,t,n):e},e.exports=t.default},function(e,t,n){"use strict";e.exports=n(811)},function(e,t,n){"use strict";t.__esModule=!0;varr=n(2);t.default=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},function(e,t){"use strict";functionn(e){"undefined"!=typeofconsole&&"function"==typeofconsole.error&&console.error(e);try{thrownewError(e)}catch(t){}}t.__esModule=!0,t.default=n},function(e,t){"use strict";functionn(e){returnfunction(){for(vart=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return{type:r,payload:{method:e,args:n}}}}Object.defineProperty(t,"__esModule",{value:!0});varr=t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD",o=t.push=n("push"),i=t.replace=n("replace"),a=t.go=n("go"),s=t.goBack=n("goBack"),u=t.goForward=n("goForward");t.routerActions={push:o,replace:i,go:a,goBack:s,goForward:u}},function(e,t){"use strict";functionn(){vare=arguments.length<=0||void0===arguments[0]?i:arguments[0],t=arguments.length<=1||void0===arguments[1]?{}:arguments[1],n=t.type,a=t.payload;returnn===o?r({},e,{locationBeforeTransitions:a}):e}Object.defineProperty(t,"__esModule",{value:!0});varr=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne};t.routerReducer=n;varo=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",i={locationBeforeTransitions:null}},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t){varn={};for(varrine)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);returnn}functioni(e){return0===e.button}functiona(e){return!!(e.metaKey||e.altKey||e.c
functionn(e){vart=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}varr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";varr=n(25),o=n(139),i=n(140),a=function(e,t){if(t){varn=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)returnvoid(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"indocument.documentElement||(a=function(e,t){i(e,o(t))})),e.exports=a},function(e,t){"use strict";functionn(){for(vare=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)returnfunction(e){returne};varr=function(){vare=t[t.length-1],n=t.slice(0,-1);return{v:function(){returnn.reduceRight(function(e,t){returnt(e)},e.apply(void0,arguments))}}}();return"object"==typeofr?r.v:void0}t.__esModule=!0,t.default=n},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t,n){functionr(){y===v&&(y=v.slice())}functioni(){returnm}functions(e){if("function"!=typeofe)thrownewError("Expected listener to be a function.");vart=!0;returnr(),y.push(e),function(){if(t){t=!1,r();varn=y.indexOf(e);y.splice(n,1)}}}functionl(e){if(!(0,a.default)(e))thrownewError("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeofe.type)thrownewError('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)thrownewError("Reducers may not dispatch actions.");try{g=!0,m=h(m,e)}finally{g=!1}for(vart=v=y,n=0;n<t.length;n++)t[n]();returne}functionf(e){if("function"!=typeofe)thrownewError("Expected the nextReducer to be a function.");h=e,l({type:c.INIT})}functionp(){vare,t=s;returne={subscribe:function(e){functionn(){e.next&&e.next(i())}if("object"!=typeofe)thrownewTypeError("Expected the observer to be an object.");n();varr=t(n);return{unsubscribe:r}}},e[u.default]=function(){returnthis},e}vard;if("function"==typeoft&&"undefined"==typeofn&&(n=t,t=void0),"undefined"!=typeofn){if("function"!=typeofn)thrownewError("Expected the enhancer to be a function.");returnn(o)(e,t)}if("function"!=typeofe)thrownewError("Expected the reducer to be a function.");varh=e,m=t,v=[],y=v,g=!1;returnl({type:c.INIT}),d={dispatch:l,subscribe:s,getState:i,replaceReducer:f},d[u.default]=p,d}t.__esModule=!0,t.ActionTypes=void0,t.default=o;vari=n(181),a=r(i),s=n(871),u=r(s),c=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t){"use strict";functionn(e){"undefined"!=typeofconsole&&"function"==typeofconsole.error&&console.error(e);try{thrownewError(e)}catch(t){}}t.__esModule=!0,t.default=n},,,,function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_LIMIT=void0,t.default=function(e,t,n,r){vari=e.rstrip("s"),f=function(e){return(0,o.normalize)(e,{artist:(0,o.arrayOf)(c.artist),album:(0,o.arrayOf)(c.album),song:(0,o.arrayOf)(c.song)},{assignEntity:function(e,t,n){"sessionExpire"==t?deletee.sessionExpire:e[t]=n}})},p=function(e,t,r){varo=e.totalCount;e=f(e);vara=Math.ceil(o/r);return[(0,u.pushEntities)(e.entities,[i]),{type:n,payload:{type:i,result:e.result[i],nPages:a,currentPage:t}}]},d=function(e){returne=f(e),(0,u.pushEntities)(e.entities,[i])},h=function(){return{type:t,payload:{}}},m=function(e){return{type:r,payload:{error:e}}},v=function(t,n,r,o,i,a){varu=arguments.length<=6||void0===arguments[6]?[]:arguments[6],c=(i-1)*l,f={offset:c,limit:a};returno&&(f.filter=o),u&&u.length>0&&(f.include=u),{type:s.CALL_API,payload:{endpoint:t,dispatch:[h,null,m],action:e,auth:r,username:n,extraParams:f}}},y=function(){vare=arguments.length<=0||void0===arguments[0]?{}:arguments[0],t=e.pageNumber,n=void0===t?1:t,r=e.limit,o=void0===r?l:r,i=e.filter,a=void0===i?null:i,s=e.include,u=void0===s?[]:s;returnfunction(e,t){varr=t(),i=r.auth,s=v(i.endpoint,i.username,i.token.token,a,n,o,u);s.payload.dispatch[1]=function(e){returnfunction(t){va
className:"text-center"},c.default.createElement("button",{onClick:function(){returne.props.flushAction()}},c.default.createElement(p.FormattedMessage,b["app.playlist.flushPlaylist"]))),c.default.createElement("h3",null,c.default.createElement(p.FormattedMessage,b["app.playlist.currentSongPlaying"])),c.default.createElement(h.SongsTable,n),c.default.createElement("h3",null,c.default.createElement(p.FormattedMessage,b["app.playlist.fullPlaylist"])),c.default.createElement(h.SongsTable,r))}elset=c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,b["app.playlist.emptyPlaylist"]));returnc.default.createElement("div",null,c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-xs-12"},c.default.createElement("h2",null,c.default.createElement(p.FormattedMessage,b["app.playlist.playlist"])),c.default.createElement("hr",null))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-xs-12"},t)))}}]),t}(u.Component);_.propTypes={playAction:u.PropTypes.func.isRequired,playNextAction:u.PropTypes.func,flushAction:u.PropTypes.func.isRequired,songs:u.PropTypes.instanceOf(f.default.List).isRequired,currentIndex:u.PropTypes.number.isRequired,intl:p.intlShape.isRequired},t.default=(0,p.injectIntl)(_)},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});vars=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(2),c=r(u),l=n(18),f=n(12),p=n(50),d=r(p),h=n(356),m=r(h),v=(0,l.defineMessages)((0,f.messagesMap)(Array.concat([],d.default,m.default))),y=function(e){functiont(){returno(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}returna(t,e),s(t,[{key:"render",value:function(){returnc.default.createElement("div",null,c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-xs-12"},c.default.createElement("h2",null,c.default.createElement(l.FormattedMessage,v["app.settings.settings"])),c.default.createElement("hr",null))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-xs-12"},c.default.createElement("p",null,"TODO"))))}}]),t}(u.Component);y.propTypes={intl:l.intlShape.isRequired},t.default=(0,l.injectIntl)(y)},function(e,t,n){(function(e){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});vars=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(2),c=r(u),l=n(46),f=r(l),p=n(18),d=n(54),h=n(15),m
}];t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});varn=[{id:"app.sidebarLayout.mainNavigationMenu",description:"ARIA label for the main navigation menu",defaultMessage:"Main navigation menu"},{id:"app.sidebarLayout.home",description:"Home",defaultMessage:"Home"},{id:"app.sidebarLayout.settings",description:"Settings",defaultMessage:"Settings"},{id:"app.sidebarLayout.logout",description:"Logout",defaultMessage:"Logout"},{id:"app.sidebarLayout.discover",description:"Discover",defaultMessage:"Discover"},{id:"app.sidebarLayout.browse",description:"Browse",defaultMessage:"Browse"},{id:"app.sidebarLayout.browseArtists",description:"Browse artists",defaultMessage:"Browse artists"},{id:"app.sidebarLayout.browseAlbums",description:"Browse albums",defaultMessage:"Browse albums"},{id:"app.sidebarLayout.browseSongs",description:"Browse songs",defaultMessage:"Browse songs"},{id:"app.sidebarLayout.toggleNavigation",description:"Screen reader description of toggle navigation button",defaultMessage:"Toggle navigation"}];t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.song=t.album=t.artist=void0;varr=n(283),o=t.artist=newr.Schema("artist"),i=t.album=newr.Schema("album"),a=t.song=newr.Schema("song");o.define({albums:(0,r.arrayOf)(i),songs:(0,r.arrayOf)(a)}),i.define({artist:o,tracks:(0,r.arrayOf)(a)}),a.define({artist:o,album:i})},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stateRecord=t.tokenRecord=void0;varo=n(15),i=r(o),a=t.tokenRecord=i.default.Record({token:null,expires:null});t.stateRecord=newi.default.Record({token:newa,username:null,endpoint:null,rememberMe:!1,isAuthenticated:!1,isAuthenticating:!1,error:null,info:null,timerID:null})},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stateRecord=void0;varo=n(15),i=r(o);t.stateRecord=newi.default.Record({isFetching:!1,error:null,refCounts:newi.default.Map({album:newi.default.Map,artist:newi.default.Map,song:newi.default.Map}),entities:newi.default.Map({album:newi.default.Map,artist:newi.default.Map,song:newi.default.Map})})},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stateRecord=void0;varo=n(15),i=r(o);t.stateRecord=newi.default.Record({type:null,result:newi.default.List,currentPage:1,nPages:1})},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stateRecord=void0;varo=n(15),i=r(o);t.stateRecord=newi.default.Record({isPlaying:!1,isRandom:!1,isRepeat:!1,isMute:!1,volume:100,currentIndex:0,playlist:newi.default.List,error:null})},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});vari,a=n(258),s=r(a),u=n(12),c=n(80),l=n(363),f=n(26),p=newl.stateRecord,d=s.default.getJSON("token");d&&(d.expires=newDate(d.expires),p=p.set("token",newl.tokenRecord({token:d.token,expires:newDate(d.expires)})));varh=s.default.get("username");h&&(p=p.set("username",h));varm=s.default.get("endpoint");m&&(p=p.set("endpoint",m)),h&&m&&(p=p.set("rememberMe",!0)),t.default=(0,u.createReducer)(p,(i={},o(i,f.LOGIN_USER_REQUEST,function(){returnnewl.stateRecord({isAuthenticating:!0,info:newc.i18nRecord({id:"app.login.connecting",values:{}})})}),o(i,f.LOGIN_USER_SUCCESS,function(e,t){returnnewl.stateRecord({isAuthenticated:!0,token:newl.tokenRecord(t.token),username:t.username,endpoint:t.endpoint,rememberMe:t.rememberMe,info:newc.i18nRecord({id:"app.login.success",values:{username:t.username}}),timerID:t.timerID})}),o(i,f.LOGIN_USER_FAILURE,function(e,t){returnnewl.stateRecord({error:t.error})}),o(i,f.LOGIN_USER_EXPIRED,function(e,t){returnnewl.stat
}}]),t}(u.Component);t.default=p},function(e,t,n){"use strict";functionr(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);returnt.default=e,t}functiono(e){returne&&e.__esModule?e:{"default":e}}functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functions(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});varu=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(2),l=o(c),f=n(39),p=n(47),d=n(18),h=n(15),m=o(h),v=n(12),y=n(26),g=r(y),b=n(212),_=o(b),w=n(91),E=o(w),x=(0,d.defineMessages)((0,v.messagesMap)(Array.concat([],E.default))),P=function(e){functiont(){returni(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}returns(t,e),u(t,[{key:"componentWillMount",value:function(){vare=parseInt(this.props.location.query.page)||1;this.props.actions.loadPaginatedSongs({pageNumber:e})}},{key:"componentWillReceiveProps",value:function(e){vart=parseInt(this.props.location.query.page)||1,n=parseInt(e.location.query.page)||1;t!=n&&(this.props.actions.clearPaginatedResults(),this.props.actions.loadPaginatedSongs({pageNumber:n}))}},{key:"componentWillUnmount",value:function(){this.props.actions.clearPaginatedResults()}},{key:"render",value:function(){vare=this.props.intl.formatMessage,t=(0,v.buildPaginationObject)(this.props.location,this.props.currentPage,this.props.nPages,this.props.actions.goToPage),n=(0,v.handleErrorI18nObject)(this.props.error,e,x);returnl.default.createElement(_.default,{playAction:this.props.actions.playSong,playNextAction:this.props.actions.pushSong,isFetching:this.props.isFetching,error:n,songs:this.props.songsList,pagination:t})}}]),t}(c.Component);P.propTypes={intl:d.intlShape.isRequired};varT=function(e){vart=newm.default.List;return"song"==e.paginated.type&&e.paginated.result.size>0&&(t=e.paginated.result.map(function(t){varn=e.entities.getIn(["entities","song",t]),r=e.entities.getIn(["entities","artist",n.get("artist")]),o=e.entities.getIn(["entities","album",n.get("album")]);returnn.set("artist",newm.default.Map({id:r.get("id"),name:r.get("name")})).set("album",newm.default.Map({id:o.get("id"),name:o.get("name")}))})),{isFetching:e.entities.isFetching,error:e.entities.error,songsList:t,currentPage:e.paginated.currentPage,nPages:e.paginated.nPages}},S=function(e){return{actions:(0,f.bindActionCreators)(g,e)}};t.default=(0,p.connect)(T,S)((0,d.injectIntl)(P))},function(e,t,n){"use strict";functionr(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);returnt.default=e,t}functiono(e){returne&&e.__esModule?e:{"default":e}}functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functions(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});varu=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0
other:"il y a {0} jours"}}},hour:{displayName:"heure",relativeTime:{future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}}},minute:{displayName:"minute",relativeTime:{future:{one:"dans {0} minute",other:"dans {0} minutes"},past:{one:"il y a {0} minute",other:"il y a {0} minutes"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}}}}},{locale:"fr-BE",parentLocale:"fr"},{locale:"fr-BF",parentLocale:"fr"},{locale:"fr-BI",parentLocale:"fr"},{locale:"fr-BJ",parentLocale:"fr"},{locale:"fr-BL",parentLocale:"fr"},{locale:"fr-CA",parentLocale:"fr",fields:{year:{displayName:"année",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"Dans {0}an",other:"Dans {0}ans"},past:{one:"Il y a {0}an",other:"Il y a {0}ans"}}},month:{displayName:"mois",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} mois",other:"dans {0} mois"},past:{one:"il y a {0} mois",other:"il y a {0} mois"}}},day:{displayName:"jour",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} jour",other:"dans {0} jours"},past:{one:"il y a {0} jour",other:"il y a {0} jours"}}},hour:{displayName:"heure",relativeTime:{future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}}},minute:{displayName:"minute",relativeTime:{future:{one:"Dans {0}minute",other:"Dans {0}minutes"},past:{one:"Il y a {0}minute",other:"Il y a {0}minutes"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}}}}},{locale:"fr-CD",parentLocale:"fr"},{locale:"fr-CF",parentLocale:"fr"},{locale:"fr-CG",parentLocale:"fr"},{locale:"fr-CH",parentLocale:"fr"},{locale:"fr-CI",parentLocale:"fr"},{locale:"fr-CM",parentLocale:"fr"},{locale:"fr-DJ",parentLocale:"fr"},{locale:"fr-DZ",parentLocale:"fr"},{locale:"fr-GA",parentLocale:"fr"},{locale:"fr-GF",parentLocale:"fr"},{locale:"fr-GN",parentLocale:"fr"},{locale:"fr-GP",parentLocale:"fr"},{locale:"fr-GQ",parentLocale:"fr"},{locale:"fr-HT",parentLocale:"fr"},{locale:"fr-KM",parentLocale:"fr"},{locale:"fr-LU",parentLocale:"fr"},{locale:"fr-MA",parentLocale:"fr"},{locale:"fr-MC",parentLocale:"fr"},{locale:"fr-MF",parentLocale:"fr"},{locale:"fr-MG",parentLocale:"fr"},{locale:"fr-ML",parentLocale:"fr"},{locale:"fr-MQ",parentLocale:"fr"},{locale:"fr-MR",parentLocale:"fr"},{locale:"fr-MU",parentLocale:"fr"},{locale:"fr-NC",parentLocale:"fr"},{locale:"fr-NE",parentLocale:"fr"},{locale:"fr-PF",parentLocale:"fr"},{locale:"fr-PM",parentLocale:"fr"},{locale:"fr-RE",parentLocale:"fr"},{locale:"fr-RW",parentLocale:"fr"},{locale:"fr-SC",parentLocale:"fr"},{locale:"fr-SN",parentLocale:"fr"},{locale:"fr-SY",parentLocale:"fr"},{locale:"fr-TD",parentLocale:"fr"},{locale:"fr-TG",parentLocale:"fr"},{locale:"fr-TN",parentLocale:"fr"},{locale:"fr-VU",parentLocale:"fr"},{locale:"fr-WF",parentLocale:"fr"},{locale:"fr-YT",parentLocale:"fr"}];returne})},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void0;vars=n(2),u=n(286),c=r(u),l=n(287),f=(r(l),function(e){functiont(n,r){o(this,t);vara=i(this,e.ca