;(function(){function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}System.register(['./index-legacy.101dd5f6.js'],function(exports){'use strict';var request;return{setters:[function(module){request=module.r;}],execute:function execute(){var SubjectEnum=exports('S',{SEARCH:"music-songbook-subject",ALBUM:"music-album-subject",MUSIC:"music-subject"});var useSubjectId=exports('u',function(key,value){var type=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"get";console.log(key,value,type);if(!key)return"";if(type==="get"){var subject=localStorage.getItem(key);subject=subject?JSON.parse(subject):{name:"",id:""};return subject;}else{localStorage.setItem(key,value);return"";}});var lockLoad=false;var useList=exports('a',/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(url,params){var method,res,result,_args=arguments;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:method=_args.length>2&&_args[2]!==undefined?_args[2]:"POST";_context.prev=1;if(!lockLoad){_context.next=4;break;}return _context.abrupt("return",params);case 4:lockLoad=true;if(!(method==="POST")){_context.next=11;break;}_context.next=8;return request.post(url,{requestType:params.requestType||"json",data:_objectSpread({},params.params)});case 8:_context.t0=_context.sent;_context.next=14;break;case 11:_context.next=13;return request.get(url,{requestType:params.requestType||"json",params:_objectSpread({},params.params)});case 13:_context.t0=_context.sent;case 14:res=_context.t0;params.loading=false;result=res.data||{};params.list=params.list.concat(result.rows||[]);params.finished=result.pageNo>=result.totalPage;params.params.page=result.pageNo+1;params.dataShow=params.list.length>0;_context.next=27;break;case 23:_context.prev=23;_context.t1=_context["catch"](1);params.dataShow=false;params.finished=true;case 27:lockLoad=false;return _context.abrupt("return",params);case 29:case"end":return _context.stop();}}},_callee,null,[[1,23]]);}));return function(_x,_x2){return _ref.apply(this,arguments);};}());}};});})();
