index-legacy.b1ff349b.js 11 KB

1
  1. !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(O){s=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var i=r&&r.prototype instanceof p?r:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(t,r,e){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return G()}for(e.method=i,e.arg=o;;){var a=e.delegate;if(a){var c=A(a,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=f(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),o}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}e.wrap=l;var h={};function p(){}function m(){}function d(){}var v={};s(v,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(S([])));y&&y!==n&&i.call(y,a)&&(v=y);var b=d.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function w(r,e){function n(o,a,c,u){var s=f(r[o],r,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}}function A(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,A(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var i=n.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function x(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function S(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(i.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:G}}function G(){return{value:void 0,done:!0}}return m.prototype=d,s(b,"constructor",d),s(d,"constructor",m),m.displayName=s(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},_(w.prototype),s(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(b),s(b,u,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=S,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=r,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),x(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var i=n.arg;x(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:S(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(t,r,e,n,i,o,a){try{var c=t[o](a),u=c.value}catch(s){return void e(s)}c.done?r(u):Promise.resolve(u).then(n,i)}var n=document.createElement("style");n.innerHTML="._theMusicGrid_1i7b0_1 .van-grid{margin:0 -.10667rem}._theMusicGrid_1i7b0_1 .van-grid-item{width:calc(100% / 3)}._theMusicGrid_1i7b0_1 .van-grid-item__content{display:block;padding:0 .10667rem;background-color:transparent}._theMusicGrid_1i7b0_1 ._item_1i7b0_12{margin-bottom:.4rem}._theMusicGrid_1i7b0_1 ._item_1i7b0_12 ._title_1i7b0_15{font-size:.37333rem;color:#333;line-height:.53333rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:.05333rem}._theMusicGrid_1i7b0_1 ._item_1i7b0_12 ._des_1i7b0_24{font-size:.32rem;color:#999;line-height:.42667rem}._theMusicGrid_1i7b0_1 ._imgWrap_1i7b0_29{position:relative;height:calc((100vw - 1.28rem) / 3);border-radius:.16rem;overflow:hidden;margin-bottom:.16rem}._theMusicGrid_1i7b0_1 ._imgWrap_1i7b0_29 ._model_1i7b0_36{position:absolute;left:.10667rem;bottom:.10667rem;background:rgba(67,67,67,.6);backdrop-filter:blur(.53333rem);-webkit-backdrop-filter:blur(.53333rem);display:flex;align-items:center;padding:.10667rem .16rem;border-radius:.53333rem;font-size:.32rem;color:#fff;transform:scale(.9)}._theMusicGrid_1i7b0_1 ._imgWrap_1i7b0_29 ._num_1i7b0_51{margin-left:.08rem}\n",document.head.appendChild(n),System.register(["./index-legacy.2693cd05.js","./index-legacy.27a5878b.js","./_commonjsHelpers-legacy.9cbdcf1f.js","./request-legacy.3d297b40.js"],(function(t){"use strict";var n,i,o,a,c,u,s,l,f,h,p,m,d,v;return{setters:[function(t){n=t.d,i=t.c,o=t.b,a=t._,c=t.r,u=t.o,s=t.F,l=t.a},function(t){f=t.G,h=t.a,p=t.T},function(t){m=t.I},function(t){d=t.T,v=t.r}],execute:function(){var g="_theMusicGrid_1i7b0_1",y="_item_1i7b0_12",b="_title_1i7b0_15",_="_des_1i7b0_24",w="_imgWrap_1i7b0_29",A="_model_1i7b0_36",E="_num_1i7b0_51";var x=t("T",n({name:"TheMusicGrid",props:{list:{type:Array,default:function(){return[]}}},emits:["goto"],setup:function(t,r){var e=r.emit;return function(){var r,n;return i("div",{class:g},[i(f,{border:!1,columnNum:3},(n=r=t.list.map((function(t){return i(h,null,{default:function(){return[i("div",{class:y,onClick:function(){return e("goto",t)}},[i("div",{class:w},[i(p,{src:t.albumCoverUrl},null),i("div",{class:A},[i(m,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAkCAYAAADl9UilAAAAAXNSR0IArs4c6QAAA0NJREFUWEfFmDloFlEQx39/xBO8b/EsxAsvEI/eTgtBSOFBPNBGEFTUwkpQEEFEsVExgifRwigKamUTBTGIiIiGiEdhCguvNCqOTPKtrJs93rdfEgc+dr/defP+b/4z8+at6AExswXAMWA58B44IuliLaZVy2Afa2ZTgBZgWMLWVkmXy9rvCWBngHUpAD4C8yT9KAOuJmBmNhl4CvSvTG4xEG57p6QL/wPYYWB7zsRvgBWSflcLrrTHzGwk8AQYUjDpNkm3+xLYLsB/aYuLU/pc0qo+AWZmg4FmYETghBsluX6wlKLSzOqBA4mAz7P1UNKmYFQZNOSON7OhQBMw0ctYIgvj/6NXDtif10vymAySXI+Z2WhgDjAbmFW594JaVr4Ar4FXlavft6XVun+AmdkEYDUwvwJkTBmvVon6F/AOeAncj2LxLzAzczAnAQ/suERUJOdLPg/VS1Kc/H9O0tlOYGbm10vAtCpX6+pZgEqY6hzi8VgXARsPNBZYigI7zVNlQURAogVGdo5GwMYCVzKsh3qkiNpQOw7jWDzGTgNTa1l6D431ZNgSBzYXOBTrFELmSdaxaEzW8xCbHvxNyXKxGNgPDMgJ6iLKirI3Kyv9+VVJ15MB15USXWVjHzAwsGyEeCFEx0HdiKPuNsjMvNLvBQYVFNhQKov0GiXdigPJ3JLMbCawJ6XgFlFVTfa5rWuS7qQZzXSzmc0Adgc0gyFUpek4qHtpLwrbHjNbBmyODc4rsKHZ6HotvvVkrSgE2EpgTVmX5IxrlXSiFmAbgCW9AKxDUtRsdjMf4jFPAG+HsupP3EZeo5gW3wclfas6xsysH3AQ8GtRthW9T1tYg6TWMsDcUzt6gcbI5N2sQ0pRa72wEvhZFEUTFBVQ10uj/Jmkm2U85hm5tBc91i6poQywOmB6FcDaAe/tPCZDxFuc45K6MVJE5XrAu9uibPMvO82SPpjZcP9eUTlRZTkjbu+UpJ9pKZu5MjNzKv34liWfgEeS3iYVzGxUBaBva1kO+C7pfBkq/cPJ2pTm8TPwWFJbEV9mNg7wbc0/WSXlgSQ/tnWTkALrVHoCuAe+Ai8A307S6M3z/iRgUSU0OgDPSD/4psofOwAL6DcUSgQAAAAASUVORK5CYII="},null),i("span",{class:E},[t.albumFavoriteCount,o("人")])])]),i("div",{class:b},[t.albumName]),i("div",{class:_},[o("共"),t.musicSheetCount,o("首")])])]}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!a(n)?r:{default:function(){return[r]}}))])}}}));t("H",n({name:"hotAlbum",setup:function(){var t=l(),n=c([]),o=function(){var t,i=(t=r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,v.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:9}});case 3:(e=t.sent).data&&Array.isArray(e.data.rows)&&(n.value=e.data.rows),t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})),function(){var r=this,n=arguments;return new Promise((function(i,o){var a=t.apply(r,n);function c(t){e(a,i,o,c,u,"next",t)}function u(t){e(a,i,o,c,u,"throw",t)}c(void 0)}))});return function(){return i.apply(this,arguments)}}();return u((function(){o()})),function(){return i(s,null,[i(d,{title:"热门专辑",onMore:function(){t.push({path:"/search"})}},null),i(x,{list:n.value,onGoto:function(r){return t.push({path:"/musicAlum",query:{id:r.id}})}},null)])}}}))}}}))}();