!function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:"get";if(!e)return"";if("get"===r){var n=localStorage.getItem(e);return n=n?JSON.parse(n):{name:"",id:""}}if("remove"!==r)return localStorage.setItem(e,t),"";localStorage.removeItem(e)}));var o=!1,c=(e("b",function(){var e,r=(e=regeneratorRuntime.mark((function e(r,n){var c,i,s,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=u.length>2&&void 0!==u[2]?u[2]:"POST",e.prev=1,!o){e.next=4;break}return e.abrupt("return",n);case 4:if(o=!0,"POST"!==c){e.next=11;break}return e.next=8,a.post(r,{requestType:n.requestType||"json",data:t({},n.params)});case 8:e.t0=e.sent,e.next=14;break;case 11:return e.next=13,a.get(r,{requestType:n.requestType||"json",params:t({},n.params)});case 13:e.t0=e.sent;case 14:i=e.t0,n.loading=!1,s=i.data||{},n.list=n.list.concat(s.rows||[]),n.finished=s.pageNo>=s.totalPage,n.params.page=s.pageNo+1,n.dataShow=n.list.length>0,e.next=27;break;case 23:e.prev=23,e.t1=e.catch(1),n.dataShow=!1,n.finished=!0;case 27:return o=!1,e.abrupt("return",n);case 29:case"end":return e.stop()}}),e,null,[[1,23]])})),function(){var t=this,r=arguments;return new Promise((function(a,o){var c=e.apply(t,r);function i(e){n(c,a,o,i,s,"next",e)}function s(e){n(c,a,o,i,s,"throw",e)}i(void 0)}))});return function(e,t){return r.apply(this,arguments)}}()),{"专辑":"klx_album","视频课":"klx_videoClass","直播课":"klx_liveClass","老师风采":"klx_talentElegant","热门资讯":"klx_hotInformation","小酷AI功能埋点":"klx_xiaokuAI","我的乐谱":"klx_myMusic","评测记录":"klx_myEvaluation","订单":"klx_myOrder","交易记录":"klx_myTrade","优惠券":"klx_myCoupon","帮助中心":"klx_helpCenter","商品列表":"klx_goods","商品详情":"klx_goodDetail","购买支付":"klx_payment","取消支付":"klx_cancelPayment"});e("u",(function(e){r({api:"setEventTracking",content:{type:c[e]}})}))}}}))}();