function Deezer(e){function a(){t=["&#xE101;","bose","PLAY"],n=["&#xE103;","bose","PAUSE"],r=["&#xE10D;","bose","NEXT_TRACK"],i=["&#xE107;","bose","PREV_TRACK"],s=[];var o=funcObj.pageCon.getPageMenuItems("deezer");u.setInits({stopState:t,playState:n,controls:s,menuLevels:o,featureList:e})}function f(e,o){var u=$(o).find("streamType").text();u==="RADIO_TRACKS"?s=[null,t,r]:s=[i,t,r];if(e=="PLAY_STATE"||e=="BUFFERING_STATE")u==="RADIO_TRACKS"?s[1]=n:s[1]=n;return s}function l(e){var t=this,n={type:"tracklistRadio",location:t.getDeezerFlowLocationURL(),isPresetable:!0,itemName:"##TRANS_flow##"},r,i=u.getFeature("requestName");r={source:i.toUpperCase(),sourceAccount:e,objType:"PlaybackRequest",container:n},funcObj.wrkr_tools.getPlaybackRequestForSourceItem(i,r)}function c(){return this.getFeature("apiURL")+"/user/me/flow"}function h(e){var t=this.getFeature("apiURL")+"/user/me?access_token="+e,n=this;$.ajax({url:t,success:function(e){var t=e.email,n=e.id;o[t]===undefined&&(o[t]={}),o[t].id=n},error:function(e,t,n){return console.log("error in Deezer additional setup"),!1}})}function p(e,t){if(isIOS)return"";var n="";switch(e){case"featURL":if(!!t){var r=o[t],i=r.id;n+="ui="+i}break;default:}return n=n.length>0?"?"+n:"",n}function d(e,t,n){var r=[];for(var i=0,s=t.length;i<s;i++)t[i][1]==="visitArtistPage"?parseInt($(n).find("artistID").text())>0&&r.push(t[i]):r.push(t[i]);return r}function v(e,t){return""}var t,n,r,i,s,o={},u=new SourceCommon;u.extend(Deezer),this.getControls=f,this.getCustomContentForSourceItem=l,this.additionalAccountSetup=h,this.getFeatURLQueryParams=p,this.filterMoreButs=d,this.getSecHeader=v,this.getDeezerFlowLocationURL=c,a()};