index-legacy.b014a65c.js 35 KB

1
  1. !function(){function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(n)}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},t=Object.prototype,a=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,n,r){return Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{u({},"")}catch(j){u=function(e,n,r){return e[n]=r}}function s(e,n,r,t){var a=n&&n.prototype instanceof f?n:f,i=Object.create(a.prototype),o=new S(t||[]);return i._invoke=function(e,n,r){var t="suspendedStart";return function(a,i){if("executing"===t)throw new Error("Generator is already running");if("completed"===t){if("throw"===a)throw i;return C()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var l=w(o,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===t)throw t="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);t="executing";var c=v(e,n,r);if("normal"===c.type){if(t=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(t="completed",r.method="throw",r.arg=c.arg)}}}(e,r,o),i}function v(e,n,r){try{return{type:"normal",arg:e.call(n,r)}}catch(j){return{type:"throw",arg:j}}}r.wrap=s;var d={};function f(){}function h(){}function g(){}var p={};u(p,o,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==t&&a.call(b,o)&&(p=b);var _=g.prototype=f.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function x(n,r){function t(i,o,l,c){var u=v(n[i],n,o);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==e(d)&&a.call(d,"__await")?r.resolve(d.__await).then((function(e){t("next",e,l,c)}),(function(e){t("throw",e,l,c)})):r.resolve(d).then((function(e){s.value=e,l(s)}),(function(e){return t("throw",e,l,c)}))}c(u.arg)}var i;this._invoke=function(e,n){function a(){return new r((function(r,a){t(e,n,r,a)}))}return i=i?i.then(a,a):a()}}function w(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,w(e,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var t=v(r,e.iterator,n.arg);if("throw"===t.type)return n.method="throw",n.arg=t.arg,n.delegate=null,d;var a=t.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,d):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function k(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function z(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,t=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return t.next=t}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=g,u(_,"constructor",g),u(g,"constructor",h),h.displayName=u(g,c,"GeneratorFunction"),r.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===h||"GeneratorFunction"===(n.displayName||n.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},r.awrap=function(e){return{__await:e}},y(x.prototype),u(x.prototype,l,(function(){return this})),r.AsyncIterator=x,r.async=function(e,n,t,a,i){void 0===i&&(i=Promise);var o=new x(s(e,n,t,a),i);return r.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(_),u(_,c,"Generator"),u(_,o,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var n=[];for(var r in e)n.push(r);return n.reverse(),function r(){for(;n.length;){var t=n.pop();if(t in e)return r.value=t,r.done=!1,r}return r.done=!0,r}},r.values=L,S.prototype={constructor:S,reset:function(e){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(z),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,t){return o.type="throw",o.arg=e,n.next=r,t&&(n.method="next",n.arg=void 0),!!t}for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc<=this.prev&&a.call(t,"finallyLoc")&&this.prev<t.finallyLoc){var i=t;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(o)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),d},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),z(r),d}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var t=r.completion;if("throw"===t.type){var a=t.arg;z(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(e,n,r,t,a,i,o){try{var l=e[i](o),c=l.value}catch(u){return void r(u)}l.done?n(c):Promise.resolve(c).then(t,a)}function t(e){return function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function l(e){r(o,a,i,l,c,"next",e)}function c(e){r(o,a,i,l,c,"throw",e)}l(void 0)}))}}function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var t,a,i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(i.push(t.value),!n||i.length!==n);o=!0);}catch(c){l=!0,a=c}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}(e,n)||o(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,n){if(e){if("string"==typeof e)return l(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,n):void 0}}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var c=document.createElement("style");c.innerHTML='._search_l6le9_1 ._fixed_l6le9_1{position:sticky;top:0;z-index:101}._search_l6le9_1 ._top_l6le9_6{height:1.33333rem;display:flex;align-items:center;padding:0 .42667rem;font-size:.42667rem;font-weight:700;color:#fff;background-color:var(--van-primary-color);overflow:hidden}._search_l6le9_1 ._top_l6le9_6>img{width:.66667rem;height:.66667rem;margin-right:.32rem}._search_l6le9_1 ._top_l6le9_6 ._topBtn_l6le9_22{margin-left:auto;width:1.6rem;height:.69333rem;color:var(--van-primary-color)}._search_l6le9_1 ._tagContent_l6le9_28{padding:.42667rem;display:flex}._search_l6le9_1 ._tagLeft_l6le9_32{font-size:.37333rem;color:#000;white-space:nowrap}._search_l6le9_1 ._tags_l6le9_37{font-size:.37333rem;color:#666}._search_l6le9_1 ._tags_l6le9_37>span{line-height:.53333rem;margin:0 .13333rem}._searchContianer_l6le9_45{padding:0 .42667rem}:root{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: .64rem;--van-cell-vertical-padding: .26667rem;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background-color: var(--van-background-color-light);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-icon-size: .42667rem;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md)}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background-color)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:.02667rem solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__value--alone{color:var(--van-text-color);text-align:left}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}:root{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-gray-7);--van-field-label-margin-right: var(--van-padding-sm);--van-field-input-text-color: var(--van-text-color);--van-field-input-error-text-color: var(--van-danger-color);--van-field-input-disabled-text-color: var(--van-text-color-3);--van-field-placeholder-text-color: var(--van-text-color-3);--van-field-icon-size: .42667rem;--van-field-clear-icon-size: .42667rem;--van-field-clear-icon-color: var(--van-gray-5);--van-field-right-icon-color: var(--van-gray-6);--van-field-error-message-color: var(--van-danger-color);--van-field-error-message-font-size: .32rem;--van-field-text-area-min-height: 1.6rem;--van-field-word-limit-color: var(--van-gray-7);--van-field-word-limit-font-size: var(--van-font-size-sm);--van-field-word-limit-line-height: .42667rem;--van-field-disabled-text-color: var(--van-text-color-3);--van-field-required-mark-color: var(--van-red)}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--required:before{margin-right:.05333rem;color:var(--van-field-required-mark-color);content:"*"}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;user-select:auto}.van-field__control::-webkit-input-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control:read-only{cursor:default}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-webkit-input-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=time],.van-field__control[type=datetime-local]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__clear,.van-field__icon,.van-field__button,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}:root{--van-search-padding: .26667rem var(--van-padding-sm);--van-search-background-color: var(--van-background-color-light);--van-search-content-background-color: var(--van-gray-1);--van-search-input-height: .90667rem;--van-search-label-padding: 0 .13333rem;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background-color)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background-color);border-radius:var(--van-border-radius-sm)}.van-search__content--round{border-radius:var(--van-border-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;padding:.13333rem var(--van-padding-xs) .13333rem 0;background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}._theSearch_14hx5_1 .van-field__left-icon{display:flex;align-items:center;margin-right:.32rem}._searchList_141ai_1 .van-tabs__nav{background:transparent}._searchList_141ai_1 .van-tabs__wrap{position:sticky;top:2.66667rem;z-index:100;background:#f8f8f8}._searchList_141ai_1 ._container_141ai_10{min-height:70vh}._searchAlbum_141ai_13,._searchMusic_141ai_16{padding:.42667rem}\n',document.head.appendChild(c),System.register(["./index-legacy.f22dd48f.js","./index-legacy.c82d35be.js","./index-legacy.a0c48464.js","./logo-1-legacy.33a78a26.js","./index-legacy.19ee0b58.js","./index-legacy.4f9dde41.js","./index-legacy.f7ac15f8.js","./index-legacy.a0b6ef84.js","./request-legacy.a8a65804.js","./index-legacy.eccde058.js","./index-legacy.1656712f.js","./index-legacy.bb93d080.js","./icon-title-legacy.0e304be0.js","./use-tab-status-legacy.c10765f6.js","./index-legacy.ec4734cf.js","./index-legacy.0814cffc.js","./_commonjsHelpers-legacy.c51f5c8d.js"],(function(e){"use strict";var r,o,l,c,u,s,v,d,f,h,g,p,m,b,_,y,x,w,k,z,S,L,C,j,A,E,T,B,q,I,P,M,V,O,N,G,F,H,W,D,U,K,Y,J,Q,X,$,R,Z,ee,ne,re,te,ae;return{setters:[function(e){r=e.p,o=e.d,l=e.c,c=e.f,u=e.n,s=e.m,v=e.j,d=e.k,f=e.r,h=e.Q,g=e.s,p=e.t,m=e.a4,b=e.A,_=e.E,y=e.G,x=e.a5,w=e.w,k=e.V,z=e.P,S=e.X,L=e.u,C=e.W},function(e){j=e.c,A=e.n,E=e.t,T=e.v,B=e.q,q=e.C,I=e.I,P=e.w,M=e.J,V=e.k,O=e.m,N=e.b,G=e.K,F=e.h,H=e.f,W=e.M,D=e.z,U=e.N},function(e){K=e.B},function(e){Y=e.I},function(e){J=e.I,Q=e.T},function(e){X=e.u,$=e.T,R=e.a},function(e){Z=e.T,ee=e.H},function(e){ne=e.H},function(e){re=e.r},function(){},function(e){te=e.L},function(e){ae=e.T},function(){},function(){},function(){},function(){},function(){}],execute:function(){var ie=i(j("cell"),2),oe=ie[0],le=ie[1],ce={icon:String,size:String,title:A,value:A,label:A,center:Boolean,isLink:Boolean,border:E,required:Boolean,iconPrefix:String,valueClass:T,labelClass:T,titleClass:T,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},ue=r({},ce,B),se=o({name:oe,props:ue,setup:function(e,n){var r=n.slots,t=q(),a=function(){if(r.label||c(e.label))return l("div",{class:[le("label"),e.labelClass]},[r.label?r.label():e.label])},i=function(){if(r.title||c(e.title))return l("div",{class:[le("title"),e.titleClass],style:e.titleStyle},[r.title?r.title():l("span",null,[e.title]),a()])},o=function(){var n=r.value||r.default;if(n||c(e.value)){var t=r.title||c(e.title);return l("div",{class:[le("value",{alone:!t}),e.valueClass]},[n?n():l("span",null,[e.value])])}},u=function(){if(r["right-icon"])return r["right-icon"]();if(e.isLink){var n=e.arrowDirection?"arrow-".concat(e.arrowDirection):"arrow";return l(I,{name:n,class:le("right-icon")},null)}};return function(){var n,a,c=e.size,s=e.center,v=e.border,d=e.isLink,f=e.required,h=null!=(n=e.clickable)?n:d,g={center:s,required:f,clickable:h,borderless:!v};return c&&(g[c]=!!c),l("div",{class:le(g),role:h?"button":void 0,tabindex:h?0:void 0,onClick:t},[r.icon?r.icon():e.icon?l(I,{name:e.icon,class:le("left-icon"),classPrefix:e.iconPrefix},null):void 0,i(),o(),u(),null==(a=r.extra)?void 0:a.call(r)])}}}),ve=P(se);function de(e,n){return(!n.required||!function(e){return Array.isArray(e)?!e.length:0!==e&&!e}(e))&&!(n.pattern&&!n.pattern.test(String(e)))}function fe(e,n){var r=n.message;return s(r)?r(e,n):r||""}function he(e){e.target.composing=!0}function ge(e){var n=e.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}function pe(e){return a(e).length}var me=i(j("field"),2),be=me[0],_e=me[1],ye={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:A,formatter:Function,clearIcon:O("clear"),modelValue:N(""),inputAlign:String,placeholder:String,autocomplete:String,errorMessage:String,enterkeyhint:String,clearTrigger:O("focus"),formatTrigger:O("onChange"),error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null}},xe=r({},ce,ye,{rows:A,type:O("text"),rules:Array,autosize:[Boolean,Object],labelWidth:A,labelClass:T,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}}),we=o({name:be,props:xe,emits:["blur","focus","clear","keypress","click-input","end-validate","start-validate","click-left-icon","click-right-icon","update:modelValue"],setup:function(e,n){var r=n.emit,t=n.slots,i=X(),o=d({status:"unvalidated",focused:!1,validateMessage:""}),s=f(),z=f(),S=h(G).parent,L=function(){var n;return String(null!=(n=e.modelValue)?n:"")},C=function(n){return c(e[n])?e[n]:S&&c(S.props[n])?S.props[n]:void 0},j=g((function(){var n=C("readonly");if(e.clearable&&!n){var r=""!==L(),t="always"===e.clearTrigger||"focus"===e.clearTrigger&&o.focused;return r&&t}return!1})),A=g((function(){return z.value&&t.input?z.value():e.modelValue})),E=function(e){return e.reduce((function(e,n){return e.then((function(){if("failed"!==o.status){var e=A.value;return n.formatter&&(e=n.formatter(e,n)),de(e,n)?n.validator?function(e,n){return new Promise((function(r){var t=n.validator(e,n);u(t)?t.then(r):r(t)}))}(e,n).then((function(r){r&&"string"==typeof r?(o.status="failed",o.validateMessage=r):!1===r&&(o.status="failed",o.validateMessage=fe(e,n))})):void 0:(o.status="failed",void(o.validateMessage=fe(e,n)))}}))}),Promise.resolve())},T=function(){o.status="unvalidated",o.validateMessage=""},B=function(){return r("end-validate",{status:o.status})},q=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.rules;return new Promise((function(t){T(),n?(r("start-validate"),E(n).then((function(){"failed"===o.status?(t({name:e.name,message:o.validateMessage}),B()):(o.status="passed",t(),B())}))):t()}))},P=function(n){if(S&&e.rules){var r=S.props.validateTrigger,t=x(r).includes(n),a=e.rules.filter((function(e){return e.trigger?x(e.trigger).includes(n):t}));a.length&&q(a)}},O=function(n){var r=e.maxlength;if(c(r)&&pe(n)>r){var t=L();return t&&pe(t)===+r?t:function(e,n){return a(e).slice(0,n).join("")}(n,+r)}return n},N=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"onChange";if(n=O(n),"number"===e.type||"digit"===e.type){var a="number"===e.type;n=W(n,a,a)}e.formatter&&t===e.formatTrigger&&(n=e.formatter(n)),s.value&&s.value.value!==n&&(s.value.value=n),n!==e.modelValue&&r("update:modelValue",n)},K=function(e){e.target.composing||N(e.target.value)},Y=function(){var e;return null==(e=s.value)?void 0:e.blur()},J=function(){var n=s.value;"textarea"===e.type&&e.autosize&&n&&function(e,n){var r=M();e.style.height="auto";var t=e.scrollHeight;if(v(n)){var a=n.maxHeight,i=n.minHeight;void 0!==a&&(t=Math.min(t,a)),void 0!==i&&(t=Math.max(t,i))}t&&(e.style.height="".concat(t,"px"),V(r))}(n,e.autosize)},Q=function(e){o.focused=!0,r("focus",e),_(J),C("readonly")&&Y()},$=function(e){C("readonly")||(o.focused=!1,N(L(),"onBlur"),r("blur",e),P("onBlur"),_(J),U())},R=function(e){return r("click-input",e)},Z=function(e){return r("click-left-icon",e)},ee=function(e){return r("click-right-icon",e)},ne=function(e){D(e),r("update:modelValue",""),r("clear",e)},re=g((function(){return"boolean"==typeof e.error?e.error:!(!S||!S.props.showError||"failed"!==o.status)||void 0})),te=g((function(){var e=C("labelWidth");if(e)return{width:F(e)}})),ae=function(n){13===n.keyCode&&(S&&S.props.submitOnEnter||"textarea"===e.type||D(n),"search"===e.type&&Y());r("keypress",n)},ie=function(){return e.id||"".concat(i,"-input")},oe=function(){var n=_e("control",[C("inputAlign"),{error:re.value,custom:!!t.input,"min-height":"textarea"===e.type&&!e.autosize}]);if(t.input)return l("div",{class:n,onClick:R},[t.input()]);var r,a={id:ie(),ref:s,name:e.name,rows:void 0!==e.rows?+e.rows:void 0,class:n,disabled:C("disabled"),readonly:C("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,enterkeyhint:e.enterkeyhint,"aria-labelledby":e.label?"".concat(i,"-label"):void 0,onBlur:$,onFocus:Q,onInput:K,onClick:R,onChange:ge,onKeypress:ae,onCompositionend:ge,onCompositionstart:he};return"textarea"===e.type?l("textarea",a,null):l("input",w("number"===(r=e.type)?{type:"text",inputmode:"decimal"}:"digit"===r?{type:"tel",inputmode:"numeric"}:{type:r},a),null)},le=function(){var n=t["right-icon"];if(e.rightIcon||n)return l("div",{class:_e("right-icon"),onClick:ee},[n?n():l(I,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},ce=function(){if(e.showWordLimit&&e.maxlength){var n=pe(L());return l("div",{class:_e("word-limit")},[l("span",{class:_e("word-num")},[n]),k("/"),e.maxlength])}},ue=function(){if(!S||!1!==S.props.showErrorMessage){var n=e.errorMessage||o.validateMessage;if(n){var r=t["error-message"],a=C("errorMessageAlign");return l("div",{class:_e("error-message",a)},[r?r({message:n}):n])}}},se=function(){return[l("div",{class:_e("body")},[oe(),j.value&&l(I,{name:e.clearIcon,class:_e("clear"),onTouchstart:ne},null),le(),t.button&&l("div",{class:_e("button")},[t.button()])]),ce(),ue()]};return H({blur:Y,focus:function(){var e;return null==(e=s.value)?void 0:e.focus()},validate:q,formValue:A,resetValidation:T,getValidationStatus:function(){return o.status}}),p(m,{customValue:z,resetValidation:T,validateWithTrigger:P}),b((function(){return e.modelValue}),(function(){N(L()),T(),P("onChange"),_(J)})),y((function(){N(L(),e.formatTrigger),_(J)})),function(){var n,r,a,o,c=C("disabled"),u=C("labelAlign"),s=(n=C("colon")?":":"",t.label?[t.label(),n]:e.label?l("label",{id:"".concat(i,"-label"),for:ie()},[e.label+n]):void 0),v=function(){var n=t["left-icon"];if(e.leftIcon||n)return l("div",{class:_e("left-icon"),onClick:Z},[n?n():l(I,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])}();return l(ve,{size:e.size,icon:e.leftIcon,class:_e((r={error:re.value,disabled:c},a="label-".concat(u),o=u,a in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o,r)),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:te.value,valueClass:_e("value"),titleClass:[_e("label",[u,{required:e.required}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:v?function(){return v}:null,title:s?function(){return s}:null,value:se,extra:t.extra})}}}),ke=P(we),ze=i(j("search"),3),Se=ze[0],Le=ze[1],Ce=ze[2],je=r({},ye,{label:String,shape:O("square"),leftIcon:O("search"),clearable:E,actionText:String,background:String,showAction:Boolean}),Ae=o({name:Se,props:je,emits:["blur","focus","clear","search","cancel","click-input","click-left-icon","click-right-icon","update:modelValue"],setup:function(e,n){var t=n.emit,a=n.slots,i=n.attrs,o=X(),c=f(),u=function(){a.action||(t("update:modelValue",""),t("cancel"))},s=function(n){13===n.keyCode&&(D(n),t("search",e.modelValue))},v=function(){return e.id||"".concat(o,"-input")},d=function(){if(a.label||e.label)return l("label",{class:Le("label"),for:v()},[a.label?a.label():e.label])},h=function(){if(e.showAction){var n=e.actionText||Ce("cancel");return l("div",{class:Le("action"),role:"button",tabindex:0,onClick:u},[a.action?a.action():n])}},g=function(e){return t("blur",e)},p=function(e){return t("focus",e)},m=function(e){return t("clear",e)},b=function(e){return t("click-input",e)},_=function(e){return t("click-left-icon",e)},y=function(e){return t("click-right-icon",e)},x=Object.keys(ye);return H({focus:function(){var e;return null==(e=c.value)?void 0:e.focus()},blur:function(){var e;return null==(e=c.value)?void 0:e.blur()}}),function(){var n,o;return l("div",{class:Le({"show-action":e.showAction}),style:{background:e.background}},[null==(n=a.left)?void 0:n.call(a),l("div",{class:Le("content",e.shape)},[d(),(o=r({},i,z(e,x),{id:v()}),l(ke,w({ref:c,type:"search",class:Le("field"),border:!1,onBlur:g,onFocus:p,onClear:m,onKeypress:s,"onClick-input":b,"onClick-left-icon":_,"onClick-right-icon":y,"onUpdate:modelValue":function(e){return t("update:modelValue",e)}},o),z(a,["left-icon","right-icon"])))]),h()])}}}),Ee=P(Ae),Te={search:"_search_l6le9_1",fixed:"_fixed_l6le9_1",top:"_top_l6le9_6",topBtn:"_topBtn_l6le9_22",tagContent:"_tagContent_l6le9_28",tagLeft:"_tagLeft_l6le9_32",tags:"_tags_l6le9_37",searchContianer:"_searchContianer_l6le9_45"},Be="_theSearch_14hx5_1",qe=o({name:"TheSearch",props:{keyword:{type:String,default:""}},emits:["search","blur","back"],setup:function(e,n){var r=n.emit,t=f(e.keyword);b((function(){return e.keyword}),(function(e){t.value=e}));var a={"left-icon":function(){return l(I,{name:J,size:20},null)},action:function(){return l("div",{style:{color:"var(--van-primary-color)"},onClick:function(){return r("back")}},[k("返回")])}};return function(){return l("div",{class:Be},[l(Ee,{shape:"round","show-action":!0,modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e},placeholder:"搜索你想练习的曲谱和专辑",onSearch:function(e){return r("search",e)},onClear:function(){return r("search","")},onBlur:function(){return r("blur",t.value)}},a)])}}}),Ie="_searchList_141ai_1",Pe="_container_141ai_10",Me="_searchAlbum_141ai_13",Ve="_searchMusic_141ai_16",Oe=o({name:"searchAlbum",setup:function(){var e=L();b(e,(function(){v.page=1,v.idAndName=e.query.search||"",c.value=!1,u.value="暂无数据",s.value=[]}));var r=i(S(!1),2),a=r[0],o=r[1],c=f(!1),u=f("暂无数据"),s=f([]),v=d({albumStatus:1,page:1,rows:33,idAndName:e.query.search||""}),h=function(){var e=t(n().mark((function e(){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.value){e.next=2;break}return e.abrupt("return");case 2:return o(!0),e.prev=3,e.next=6,re.post("/api-website/open/music/album/list",{data:v});case 6:(r=e.sent).data&&Array.isArray(r.data.rows)&&(s.value=[].concat(s.value,r.data.rows),v.page++,r.data.rows.length||(c.value=!0,u.value=1==r.data.pageNo?"暂无数据":"没有更多了")),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:_((function(){o(!1)}));case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}();return function(){return l("div",{class:Me},[l(te,{loading:a.value,finished:c.value,finishedText:u.value,onLoad:function(){return h()}},{default:function(){return[l(Z,{list:s.value},null)]}})])}}}),Ne=o({name:"searchMusic",setup:function(){var e=L();b(e,(function(){s.page=1,s.idAndName=e.query.search||"",c.value=!1,u.value="暂无数据",v.value=[],h()}));var r=i(S(!1),2),a=r[0],o=r[1],c=f(!1),u=f("暂无数据"),s=d({albumStatus:"PASS",page:1,rows:20,state:1,idAndName:e.query.search||""}),v=f([]),h=function(){var e=t(n().mark((function e(){var r,t;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.value){e.next=2;break}return e.abrupt("return");case 2:return o(!0),e.prev=3,e.next=6,re.post("/api-website/open/music/sheet/list",{data:s});case 6:r=e.sent,(t=r.data)&&Array.isArray(t.rows)&&(v.value=[].concat(v.value,t.rows),s.page++,t.rows.length||(c.value=!0,u.value=1==t.pageNo?"暂无数据":"没有更多了")),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:_((function(){o(!1)}));case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}();return function(){return l("div",{class:Ve},[l(te,{loading:a.value,finished:c.value,finishedText:u.value,onLoad:function(){return h()}},{default:function(){return[l(ae,{list:v.value},null)]}})])}}}),Ge=o({name:"searchList",setup:function(e,n){var r=f("album");return function(){return l("div",{class:Ie},[l($,{shrink:!0,active:r.value,"onUpdate:active":function(e){return r.value=e},color:"var(--van-primary-color)","line-width":"26px",swipeable:!0,animated:!0},{default:function(){return[l(R,{title:"专辑",name:"album"},{default:function(){return[l("div",{class:Pe},[l(Oe,null,null)])]}}),l(R,{title:"曲目",name:"music"},{default:function(){return[l("div",{class:Pe},[l(Ne,null,null)])]}})]}})])}}});e("default",o({name:"Search",setup:function(){var e=L(),r=C(),a=f(e.query.search||"");b(e,(function(){a.value=e.query.search||""}));var i=f([]),o=function(){var e=t(n().mark((function e(){var r,t;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,re.get("/api-website/open/music/sheet/hotTag/MUSIC");case 3:r=e.sent,t=r.data,Array.isArray(t)&&(i.value=t),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();y((function(){o()}));var c=function(e){e?r.replace({path:"/search",query:{search:e}}):a.value=e||""},u=f();return function(){return l("div",{class:Te.search},[l("div",{class:Te.fixed},[l("div",{class:Te.top},[l("img",{class:Te.img,src:Y},null),l("span",null,[k("打开APP看海量热门乐谱")]),l(K,{round:!0,class:Te.topBtn,onClick:function(){var e;return null===(e=u.value)||void 0===e?void 0:e.downLoadApp()}},{default:function(){return[k("打开")]}})]),l(qe,{keyword:a.value,onSearch:function(e){return c(e)},onBlur:function(e){return c(e)},onBack:function(){r.push("/")}},null)]),l("div",{class:Te.tagContent},[l("div",{class:Te.tagLeft},[k("热门搜索:")]),l("div",{class:Te.tags},[i.value.map((function(e){return l("span",{onClick:function(){return c(e.key)}},[e.key])}))])]),a.value&&l(Ge,null,null),l("div",{style:{display:a.value?"none":"block"}},[l("div",{class:Te.searchContianer},[l(ee,null,null)]),l(ne,null,null)]),l(Q,{ref:u},null)])}}}))}}}))}();