!function(){function e(t){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(t)}function t(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(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 n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);np{color:#2dc7aa}._item_6tre7_1.active:after{content:"\\5f53\\524d";font-size:.18667rem;color:#2dc7aa;display:inline-block;padding-left:.08rem}._item_6tre7_1 ._tag_6tre7_23{height:.24rem;line-height:.24rem;border-radius:.08rem;text-align:center;display:block;margin-right:.10667rem;--van-tag-plain-background-color: transparent}._item_6tre7_1 ._tag_6tre7_23:after{border-radius:.10667rem}._item_6tre7_1 ._tag_6tre7_23:before{display:none}._item_6tre7_1 ._tag_6tre7_23.VIP{--van-tag-default-color: #cd863e;--van-gray-3: #cd863e}._item_6tre7_1 ._tag_6tre7_23.CHARGE{--van-tag-default-color: #3591ce;--van-gray-3: #3591ce}._item_6tre7_1 ._tag_6tre7_23.FREE{--van-tag-default-color: #01b84f;--van-gray-3: #01b84f}._item_6tre7_1>p{color:#333;font-size:.18667rem;margin:0;line-height:.26667rem;white-space:pre;overflow:hidden;flex:1;text-overflow:ellipsis}._tabs_6tre7_60{height:100vh;display:flex;flex-direction:column;--van-tab-text-color: #999999;--van-tab-active-text-color: #333;--van-tabs-bottom-bar-color: #2dc7aa;--van-tabs-bottom-bar-width: .34667rem;--van-tabs-bottom-bar-height: .05333rem}._tabs_6tre7_60 .van-tabs__line{width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background-color:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}._tabs_6tre7_60 .van-tab>span{color:var(--van-tab-active-text-color)!important}._tabs_6tre7_60 .van-tabs__wrap{height:.88rem!important;position:relative}._tabs_6tre7_60 .van-tabs__wrap:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #e8e8e8;transform:scale(.5);border-bottom-width:.02667rem}._tabs_6tre7_60 .van-tabs__wrap .van-tabs__line{bottom:.5rem!important}._tabs_6tre7_60 .van-tabs__content{height:calc(100vh - .88rem)}._tabs_6tre7_60 .van-tab__pane{height:100%}._list_6tre7_105{padding:.21333rem 0}._tab_6tre7_60{box-sizing:border-box;overflow:hidden;height:100%;overflow-y:auto}._container_hiwv0_1 img{width:100%;margin:auto;display:block}._changeIndex_hiwv0_6{font-size:.16rem;position:absolute;left:.64rem;bottom:.53333rem;z-index:10;width:.4rem;height:.4rem;border-radius:100%;background-color:#01c1b5;line-height:.4rem;text-align:center;color:#fff;box-shadow:0 0 .26667rem rgba(0,0,0,.05)}.transverse ._changeIndex_hiwv0_6{bottom:.26667rem;left:.02667rem}.flute ._changeIndex_hiwv0_6{left:.32rem!important}.piccolo ._changeIndex_hiwv0_6{left:1.5vw;bottom:.53333rem}.clarinet ._changeIndex_hiwv0_6{left:0!important}.horn ._changeIndex_hiwv0_6{left:1vw;top:1vh}.up-bass-horn ._changeIndex_hiwv0_6{left:1vw}.tuba ._changeIndex_hiwv0_6{right:inherit;left:1vw;bottom:.53333rem}.saxophone ._changeIndex_hiwv0_6{left:1vw}.trombone ._changeIndex_hiwv0_6{left:.32rem!important}@keyframes _activeopacity_hiwv0_1{0%{transforopacitym:0}to{opacity:1}}@keyframes _leftrotates_hiwv0_1{0%{transform:rotate(0)}50%{transform:rotate(-10deg)}to{transform:rotate(-10deg)}}@keyframes _rightrotates_hiwv0_1{0%{transform:rotate(0)}50%{transform:rotate(5deg)}to{transform:rotate(5deg)}}.small-drum img[data-index=active]{animation:_activeopacity_hiwv0_1 .2s;animation-delay:.3s;transform-origin:0 0}.small-drum img[data-index=left]{animation:_leftrotates_hiwv0_1 .5s;transform-origin:0 0}.small-drum img[data-index=right]{animation:_rightrotates_hiwv0_1 .5s;transform-origin:0 0}.piccolo{margin-top:0}.piano .right101 #b101,.piano .right102 #b102,.piano .right103 #b103,.piano .right103 #b103,.piano .right104 #b104,.piano .right105 #b105,.piano .right106 #b106,.piano .right107 #b107,.piano .right108 #b108,.piano .right109 #b109,.piano .right110 #b110,.piano .right111 #b111,.piano .right112 #b112,.piano .right113 #b113,.piano .right114 #b114,.piano .right115 #b115,.piano .right116 #b116,.piano .right117 #b117,.piano .right118 #b118,.piano .right119 #b119,.piano .right120 #b120,.piano .right121 #b121,.piano .right122 #b122,.piano .right123 #b123,.piano .right124 #b124,.piano .right125 #b125,.piano .right126 #b126,.piano .right127 #b127,.piano .right128 #b128,.piano .right129 #b129,.piano .right130 #b130,.piano .right131 #b131,.piano .right132 #b132,.piano .right133 #b133,.piano .right134 #b134,.piano .right135 #b135,.piano .right136 #b136,.piano .right137 #b137,.piano .right138 #b138,.piano .right139 #b139,.piano .right140 #b140,.piano .right141 #b141,.piano .right142 #b142,.piano .right143 #b143,.piano .right144 #b144,.piano .right145 #b145,.piano .right146 #b146,.piano .right147 #b147,.piano .right148 #b148,.piano .right149 #b149,.piano .right150 #b150,.piano .right151 #b151,.piano .right152 #b152{fill:#9fb9f9;stroke:#3f6ee0}.piano .right1 #h1>path:first-child,.piano .right2 #h2>path:first-child,.piano .right3 #h3>path:first-child,.piano .right3 #h3>path:first-child,.piano .right4 #h4>path:first-child,.piano .right5 #h5>path:first-child,.piano .right6 #h6>path:first-child,.piano .right7 #h7>path:first-child,.piano .right8 #h8>path:first-child,.piano .right9 #h9>path:first-child,.piano .right10 #h10>path:first-child,.piano .right11 #h11>path:first-child,.piano .right12 #h12>path:first-child,.piano .right13 #h13>path:first-child,.piano .right14 #h14>path:first-child,.piano .right15 #h15>path:first-child,.piano .right16 #h16>path:first-child,.piano .right17 #h17>path:first-child,.piano .right18 #h18>path:first-child,.piano .right19 #h19>path:first-child,.piano .right20 #h20>path:first-child,.piano .right21 #h21>path:first-child,.piano .right22 #h22>path:first-child,.piano .right23 #h23>path:first-child,.piano .right24 #h24>path:first-child,.piano .right25 #h25>path:first-child,.piano .right26 #h26>path:first-child,.piano .right27 #h27>path:first-child,.piano .right28 #h28>path:first-child,.piano .right29 #h29>path:first-child,.piano .right30 #h30>path:first-child,.piano .right31 #h31>path:first-child,.piano .right32 #h32>path:first-child,.piano .right33 #h33>path:first-child,.piano .right34 #h34>path:first-child,.piano .right35 #h35>path:first-child,.piano .right36 #h36>path:first-child{fill:url(#linearGradient-2)}.piano .left101 #b101,.piano .left102 #b102,.piano .left103 #b103,.piano .left103 #b103,.piano .left104 #b104,.piano .left105 #b105,.piano .left106 #b106,.piano .left107 #b107,.piano .left108 #b108,.piano .left109 #b109,.piano .left110 #b110,.piano .left111 #b111,.piano .left112 #b112,.piano .left113 #b113,.piano .left114 #b114,.piano .left115 #b115,.piano .left116 #b116,.piano .left117 #b117,.piano .left118 #b118,.piano .left119 #b119,.piano .left120 #b120,.piano .left121 #b121,.piano .left122 #b122,.piano .left123 #b123,.piano .left124 #b124,.piano .left125 #b125,.piano .left126 #b126,.piano .left127 #b127,.piano .left128 #b128,.piano .left129 #b129,.piano .left130 #b130,.piano .left131 #b131,.piano .left132 #b132,.piano .left133 #b133,.piano .left134 #b134,.piano .left135 #b135,.piano .left136 #b136,.piano .left137 #b137,.piano .left138 #b138,.piano .left139 #b139,.piano .left140 #b140,.piano .left141 #b141,.piano .left142 #b142,.piano .left143 #b143,.piano .left144 #b144,.piano .left145 #b145,.piano .left146 #b146,.piano .left147 #b147,.piano .left148 #b148,.piano .left149 #b149,.piano .left150 #b150,.piano .left151 #b151,.piano .left152 #b152{fill:#ffc046;stroke:#ff6f38}.piano .left1 #h1>path:first-child,.piano .left2 #h2>path:first-child,.piano .left3 #h3>path:first-child,.piano .left3 #h3>path:first-child,.piano .left4 #h4>path:first-child,.piano .left5 #h5>path:first-child,.piano .left6 #h6>path:first-child,.piano .left7 #h7>path:first-child,.piano .left8 #h8>path:first-child,.piano .left9 #h9>path:first-child,.piano .left10 #h10>path:first-child,.piano .left11 #h11>path:first-child,.piano .left12 #h12>path:first-child,.piano .left13 #h13>path:first-child,.piano .left14 #h14>path:first-child,.piano .left15 #h15>path:first-child,.piano .left16 #h16>path:first-child,.piano .left17 #h17>path:first-child,.piano .left18 #h18>path:first-child,.piano .left19 #h19>path:first-child,.piano .left20 #h20>path:first-child,.piano .left21 #h21>path:first-child,.piano .left22 #h22>path:first-child,.piano .left23 #h23>path:first-child,.piano .left24 #h24>path:first-child,.piano .left25 #h25>path:first-child,.piano .left26 #h26>path:first-child,.piano .left27 #h27>path:first-child,.piano .left28 #h28>path:first-child,.piano .left29 #h29>path:first-child,.piano .left30 #h30>path:first-child,.piano .left31 #h31>path:first-child,.piano .left32 #h32>path:first-child,.piano .left33 #h33>path:first-child,.piano .left34 #h34>path:first-child,.piano .left35 #h35>path:first-child,.piano .left36 #h36>path:first-child{fill:url(#linearGradient-3)}.evaluating ._fingering_shnq0_1{box-shadow:0 -.26667rem .26667rem #e2f6f1;background:#E2F6F1}.evaluating ._fingering_shnq0_1.vertical{box-shadow:none!important}.eyeProtection .fingering{box-shadow:0 -.26667rem .26667rem var(--eye-background-color);background:var(--eye-background-color)}.eyeProtection .fingering.vertical{box-shadow:none!important}._fingering_shnq0_1{position:fixed;bottom:0;left:0;right:0;padding:.13333rem;box-sizing:border-box;z-index:999;padding-top:0;box-shadow:0 -.26667rem .26667rem #fff;background:#fff}._fingering_shnq0_1.vertical{box-shadow:none!important}._fingering_shnq0_1.vertical{top:.93333rem;left:0;right:initial}._fingering_shnq0_1.vertical:before{display:none}._fingering_shnq0_1.transverse>div{max-width:60%;margin:auto}._fingering_shnq0_1 .substituteFinger{background:url(/orchestra-music-score/assets/substituteFinger.5d97109d.svg) no-repeat center;background-size:contain;left:0;color:transparent}._wrap_1ojzw_1{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:1000}._wrap_1ojzw_1 .van-cell-group{background-color:rgba(255,255,255,.8)}._wrap_1ojzw_1 .van-cell{padding:10Px 16Px;line-height:14Px;background-color:transparent}._wrapBottom_1ojzw_16{background-color:rgba(255,255,255,.8)}\n',document.head.appendChild(s),System.register(["./index-legacy.cb604905.js","./preload-helper-legacy.36a7d2cc.js","./index-legacy.ffb0cbb3.js","./index-legacy.bcaada90.js","./index-legacy.27c8e2cc.js","./index-legacy.113918ed.js","./index-legacy.a0b3b853.js","./index-legacy.7ccb6fdf.js"],(function(n){"use strict";var r,c,u,s,d,p,f,h,v,g,m,b,_,y,w,x,S,k,I,j,B,P,C,T,R,D,F,L,O,E,M,z,N,A,W,J,q,U,K,H,V,G,Y,$,Q,X,Z,ee,te,ne,ie,ae,re,oe,le,ce,ue,se,de,pe,fe,he,ve,ge,me,be,_e,ye,we,xe,Se,ke,Ie,je,Be,Pe,Ce,Te,Re,De,Fe,Le;return{setters:[function(e){r=e.s,c=e.p,u=e.x,s=e.y,d=e.c,p=e.u,f=e.z,h=e.r,v=e.A,g=e.E,m=e.F,b=e.H,_=e.I,y=e.J,w=e.K,x=e.L,S=e.Q,k=e.k,I=e.R,j=e.U,B=e.V,P=e.P,C=e.W,T=e.X,R=e.Y,D=e.Z,F=e._,L=e.$,O=e.a0,E=e.a1,M=e.a2,z=e.a3,N=e.a4,A=e.a5,W=e.T,J=e.e,q=e.a6,U=e.a7,K=e.a8,H=e.b,V=e.a9,G=e.aa,Y=e.ab,$=e.M,Q=e.ac,X=e.ad,Z=e.q,ee=e.g,te=e.ae,ne=e.af,ie=e.ag,ae=e.ah,re=e.ai,oe=e.v},function(e){le=e.d,ce=e.c,ue=e.T,se=e.i,de=e.w,pe=e.k,fe=e.o,he=e.n,ve=e.j,ge=e.F,me=e.H,be=e.S,_e=e.C,ye=e.t,we=e.q,xe=e.h,Se=e.v,ke=e.W},function(e){Ie=e.t,je=e.c,Be=e.I,Pe=e.w,Ce=e.B},function(e){Te=e.E,Re=e.s},function(e){De=e.L},function(e){Fe=e.T},function(e){Le=e.S},function(){}],execute:function(){var Oe=l(je("tag"),2),Ee=Oe[0],Me=Oe[1],ze=le({name:Ee,props:{size:String,mark:Boolean,show:Ie,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}},emits:["close"],setup:function(e,t){var n=t.slots,i=t.emit,a=function(e){e.stopPropagation(),i("close",e)},r=function(){var t=e.type,i=e.mark,r=e.plain,o=e.round,l=e.size,c=e.closeable,u={mark:i,plain:r,round:o};l&&(u[l]=l);var s=c&&ce(Be,{name:"cross",class:Me("close"),onClick:a},null);return ce("span",{style:e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},class:Me([u,t])},[null==n.default?void 0:n.default(),s])};return function(){return ce(ue,{name:e.closeable?"van-fade":void 0},{default:function(){return[e.show?r():null]}})}}}),Ne=Pe(ze),Ae=function(e,t){var n=se(!1);return t&&(console.log("曲谱为midi,使用app播放"),n.value=!0,r.midiPlayIniting=!0,c({api:"cloudDestroy"}),c({api:"cloudDetail",content:{midi:t,denominator:s(d.osmd).denominator,numerator:s(d.osmd).numerator,originalSpeed:r.activeDetail.originalSpeed,interval:50,duration:1e3*e}},(function(){r.midiPlayIniting=!1,n.value=!1,t&&u("music")})),d.durationNum=e),{initial:n}},We=function(){var e=se(!0),t=se(!1),n=se(!1);try{var i=p().setting||{};"EVALUATING"===i.mode&&(n.value=!0,e.value=!1,t.value=!0),i.difficulty&&(pe.eva.difficulty=i.difficulty),r.setting=i}catch(a){console.error("设置活动配置失败,请检查传入配置是否正确"),console.error(a)}return{showFingering:e,frozenMode:t,compulsionEvaluating:n}},Je=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=se(.1),n=f(),e.prev=2,e.next=5,h.get("/sysParamConfig/queryByParamNameList",{prefix:"teacher"===n?"/api-teacher":"/api-student",params:{paramNames:"music_sheet_free_rate"}});case 5:a=e.sent,t.value=parseFloat((null===(i=a.data)||void 0===i?void 0:i[0].paramValue)||"10")/100,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),qe=le({name:"ButtonsPlayer",setup:function(){var e=l(v(),1)[0],t=function(){r.activeTick>-1||(x(0),S(new Event("ended")))},n=Math.floor(2*Math.PI*16),i=function(e){var t;"setPlayState"===(null==e||null===(t=e.data)||void 0===t?void 0:t.api)&&(console.log("父页面的切换事件",e.data,d.playState),"play"==d.playState&&g())};return fe((function(){window.addEventListener("message",i)})),he((function(){window.removeEventListener("message",i)})),function(){var i=d.currentTimeNum/d.durationNum*n;return ce(me,{to:"body"},{default:function(){var n;return[ce("div",{class:m.player,id:"globalPlayer"},[ce(ue,{name:"start",duration:300},{default:function(){var t;return[e.value&&!(null!==(t=b.value)&&void 0!==t&&t.connentLoading)&&_.value&&ce(Ce,{style:{backgroundImage:"url(".concat(y,")")},class:[m.button,m.start],onClick:function(){var e,t;_.value=!1,null===(e=b.value)||void 0===e||null===(t=e.togglePlay)||void 0===t||t.call(e)}},{default:function(){return[ve("开始")]}})]}}),!d.evaluatingStatus&&ce(ge,null,[("pause"===d.playState||"suspend"===d.playState)&&d.currentTimeNum>0&&!r.sectionStatus&&ce(Ce,{class:[m.button,m.fullbtn],onClick:t},{default:function(){return[ce(w,{key:"reset",name:"reset"},null)]}}),ce(Ce,{class:[m.button,m.fullbtn],style:{marginLeft:"14px"},disabled:(null===(n=r.activeDetail)||void 0===n?void 0:n.isAppPlay)&&r.midiPlayIniting,onClick:function(){g()}},{default:function(){return[ce("div",{class:m.schedule},[ce("div",{class:m.schedule},["play"===d.playState?ce(w,{key:"pause",name:"pause"},null):ce(w,{key:"play",name:"play"},null),d.currentTimeNum>0&&!r.sectionStatus&&ce("svg",{class:m.ring,width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/200/svg"},[ce("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"#D9F5EF","stroke-width":"2","stroke-linecap":"round"},null),ce("circle",{class:m.fillring,cx:"20",cy:"20",r:"16",fill:"none",stroke:"#FFC459","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":i+",10000"},null)])])])]}})])])]}})}}}),Ue={popup:"_popup_17c4a_1",wrap:"_wrap_17c4a_6",image:"_image_17c4a_11",title:"_title_17c4a_16",andTitle:"_andTitle_17c4a_23",sub:"_sub_17c4a_26",andSub:"_andSub_17c4a_32",btnWrap:"_btnWrap_17c4a_35",btn:"_btn_17c4a_35",cancelBtn:"_cancelBtn_17c4a_49",confirmBtn:"_confirmBtn_17c4a_52",tryoutBtn:"_tryoutBtn_17c4a_55",discounts:"_discounts_17c4a_58",membershipBtn:"_membershipBtn_17c4a_74",demandBtn:"_demandBtn_17c4a_77",demandBtnFree:"_demandBtnFree_17c4a_80",earphoneBtn:"_earphoneBtn_17c4a_83",closeBtn:"_closeBtn_17c4a_86"},Ke=le({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return ce("div",null,[ce("img",{class:Ue.image,src:"/orchestra-music-score/assets/microphone.7e50c915.svg"},null),ce("div",{class:Ue.wrap},[ce("div",{class:Ue.des},[ce("div",{class:Ue.title},[ve("开启权限")]),ce("div",{class:Ue.sub},[ve("请开启麦克风访问权限")])]),ce("div",{class:Ue.btnWrap},[ce(Ce,{class:k(Ue.btn,Ue.cancelBtn)},null),ce(Ce,{class:k(Ue.btn,Ue.confirmBtn)},null)])])])}}}),He=le({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return ce("div",null,[ce("img",{class:Ue.image,src:"/orchestra-music-score/assets/camera.ad45a2ea.svg"},null),ce("div",{class:Ue.wrap},[ce("div",{class:Ue.des},[ce("div",{class:Ue.title},[ve("开启权限")]),ce("div",{class:Ue.sub},[ve("请开启相机访问权限")])]),ce("div",{class:Ue.btnWrap},[ce(Ce,{class:k(Ue.btn,Ue.cancelBtn)},null),ce(Ce,{class:k(Ue.btn,Ue.confirmBtn)},null)])])])}}}),Ve=p(),Ge=le({name:"ColexiuMember",setup:function(){var e=f(),t=function(){delete Ve.Authorization,c({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter?"+be.stringify(i({},Ve)),orientation:1}})},n=function(){I.show=!1,x(0),j(0)};return function(){return ce("div",null,[ce("img",{class:Ue.image,src:"/orchestra-music-score/assets/membership.78b7ec9a.png"},null),ce("div",{class:Ue.wrap},[ce("div",{class:Ue.des},[ce("div",{class:Ue.title},[ve("请开通会员")]),ce("div",{class:Ue.sub},[ve("开通会员后可完整使用该曲目")])]),ce("div",{class:Ue.btnWrap},[ce(Ce,{class:k(Ue.btn,Ue.tryoutBtn),onClick:n},null),ce(Ce,{class:k([Ue.btn,Ue.membershipBtn,a({},Ue.discounts,1==Ve.discounts)]),onClick:t},null)])])])}}}),Ye="/orchestra-music-score/assets/demand.14944949.svg";se(!1);var $e=p(),Qe=le({name:"ColexiuDemand",setup:function(){var e=f(),t=function(){var t=o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete $e.Authorization,c({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+be.stringify(i({orderType:"MUSIC"},$e)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){I.show=!1,x(0),j(0)};return function(){var e;return ce("div",{style:{position:"relative"}},[ce("img",{class:Ue.image,src:Ye},null),ce("div",{class:Ue.wrap},[ce("div",{class:Ue.des},[ce("div",{class:Ue.title},[ve("该曲目为点播曲目")]),ce("div",{class:Ue.sub},[ve("点播价格 "),ce("span",{style:{color:"#FF4E19"}},[ve("¥"),null===(e=r.activeDetail)||void 0===e?void 0:e.musicPrice]),ve(",点播后可永久使用")])]),ce("div",{class:Ue.btnWrap},[ce(Ce,{class:k(Ue.btn,Ue.tryoutBtn),onClick:n},null),ce(Ce,{class:k(Ue.btn,Ue.demandBtn),onClick:t},null)])])])}}}),Xe=le({name:"ColexiuEarphone",setup:function(){return function(){return ce("div",null,[ce("img",{class:Ue.image,src:"/orchestra-music-score/assets/earphone.37a59b5d.svg"},null),ce("div",{class:Ue.wrap},[ce("div",{class:Ue.des},[ce("div",{class:Ue.title},[ve("请佩戴耳机")]),ce("div",{class:Ue.sub},[ve("佩戴耳机可以保证测评准确率哦~")])]),ce("div",{class:Ue.btnWrap},[ce(Ce,{class:k(Ue.btn,Ue.earphoneBtn),onClick:function(){I.show=!1}},null)])])])}}});se(!1);var Ze=p(),et=le({name:"memberAndDemand",setup:function(){var e=f(),t=function(){var t=o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete Ze.Authorization,c({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+be.stringify(i({orderType:"MUSIC"},Ze)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){delete Ze.Authorization,c({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter",orientation:1}})},a=function(){I.show=!1,x(0),j(0)};return function(){var e;return ce("div",{style:{position:"relative"}},[ce("img",{class:Ue.closeBtn,src:B,onClick:a},null),ce("img",{class:Ue.image,src:Ye},null),ce("div",{class:Ue.wrap},[ce("div",{class:Ue.des},[ce("div",{class:[Ue.title,Ue.andTitle]},[ve("该曲目为会员曲目,可以单曲购买哦")]),ce("div",{class:[Ue.sub,Ue.andSub]},[ve("开通酷乐秀会员海量曲目尽情练习"),ce("br",null,null),ve("单曲点播仅需 "),ce("span",{style:{color:"#FF4E19"}},[ve("¥"),null===(e=r.activeDetail)||void 0===e?void 0:e.musicPrice]),ve(",点播后可永久使用")])]),ce("div",{class:Ue.btnWrap},[ce(Ce,{class:k(Ue.btn,Ue.membershipBtn),onClick:n},null),ce(Ce,{class:k(Ue.btn,Ue.demandBtn),onClick:t},null)])])])}}}),tt=le({name:"ColexiuPermission",setup:function(e,t){return(0,t.expose)({toggle:function(){I.show=!I.show}}),function(){return ce(P,{class:Ue.popup,show:I.show,"onUpdate:show":function(e){return I.show=e},teleport:"body",onClosed:function(){x(0)}},{default:function(){return["microphone"===I.active?ce(Ke,null,null):"camera"===I.active?ce(He,null,null):"member"===I.active?ce(Ge,null,null):"demand"===I.active?ce(Qe,null,null):"earphone"===I.active?ce(Xe,null,null):"memberAndDemand"===I.active?ce(et,null,null):null]}})}}}),nt="_item_6tre7_1",it="_tag_6tre7_23",at="_tabs_6tre7_60",rt="_list_6tre7_105",ot="_tab_6tre7_60",lt={VIP:"会员",CHARGE:"点播",FREE:"免费"},ct=le({name:"SwitchTag",props:{type:String},setup:function(e){return function(){return ce(Ne,{plain:!0,class:[it,e.type,"van-hairline--surround"]},{default:function(){return[lt[e.type]]}})}}}),ut=le({name:"MusicList-MusicScore-Item",props:{item:{type:Object}},setup:function(e){var t=p(),n=sessionStorage.getItem("behaviorId")||""+(new Date).valueOf();return function(){var a,r,o;return ce("div",{class:[nt,{active:(null===(a=e.item)||void 0===a?void 0:a.id)==t.id}],onClick:function(){return C(),c({api:"cloudDestroy"}),c({api:"cloudLoading",content:{show:!0,type:"fullscreen"}}),void(location.href=location.origin+location.pathname+"?"+be.stringify(i(i({},t),{},{behaviorId:n,id:null===(a=e.item)||void 0===a?void 0:a.id,_t:(new Date).valueOf()})));var a}},[ce("div",{style:{display:"flex"}},[((null===(r=e.item)||void 0===r?void 0:r.paymentType)||"").split(",").map((function(e){return ce(ct,{key:e,type:e},null)}))]),ce("p",null,[null===(o=e.item)||void 0===o?void 0:o.musicSheetName])])}}});var st=le({name:"MusicList-MusicScore-List",props:{list:{type:Array,default:function(){return[]}},url:{type:String,default:""},moreSearch:{type:Object,default:function(){return{}}}},emits:["refresh"],setup:function(e,n){n.emit;var a=se(!1),r=se(!1),l=se(1),c=se([]),u=se(),s=function(){var n=o(regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.url){n.next=2;break}return n.abrupt("return");case 2:return a.value=!0,n.prev=3,n.next=6,h(e.url,{params:i({page:l.value},e.moreSearch)});case 6:o=n.sent,c.value=[].concat(t(c.value),t(o.data.rows)),r.value=o.data.totalPage1?ce("div",{role:"button",onClick:function(){var e=u.value===P.length-1?0:u.value+1;u.value=e},class:["substituteFinger",xt]},[ve("替指")]):null])}}}),kt="_fingering_shnq0_1",It=["piano"],jt=se(0),Bt=se("hidden"),Pt=function(){var e=o(regeneratorRuntime.mark((function e(t){var n,i,a,o,l,c,u,s,p,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=21;break}return e.next=4,O(n.name);case 4:if(!(i=e.sent)){e.next=19;break}return a=E(n.name,r.fixedKey),o=M(i,n.name,a.value),e.next=10,z(o.value);case 10:return l=e.sent,c=l.width,u=l.height,s=document.getElementById("colexiu-detail-music-sheet").clientHeight||0,p=d.evaluatingStatus?0:c,f=s/u,jt.value=s?f*p:p,c&&(Bt.value="show"),e.abrupt("return",we({width:c,height:u,scale:f,usedFixedKey:a.value,fullsrc:o.value,activeType:i,detail:n}));case 19:e.next=22;break;case 21:Bt.value="hidden";case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ct=le({name:"ColexiuFingering",props:{code:{type:String,default:-1}},setup:function(e){var t=ye(e).code,n=se(null),i=se(-1);return de([t],function(){var e=o(regeneratorRuntime.mark((function e(a,r){var o,c,u,s,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=l(a,1),c=o[0],u=l(r,1),s=u[0],i.value=L(t.value),c===s){e.next=8;break}return e.next=6,Pt(D[i.value]);case 6:(d=e.sent)&&(n.value=d);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{immediate:!0,deep:!0}),function(){if(i.value<0||!n.value)return null;var e=D[i.value];return ce("div",{class:[kt,e.name,e.direction,"fingering"],style:{left:"vertical"===e.direction?r.notchHeight/2+"px":""}},[It.includes(null==e?void 0:e.name)?ce(St,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:r.fixedKey},null):ce(F,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:r.fixedKey},null)])}}}),Tt="_wrap_1ojzw_1",Rt=le({name:"productJson",setup:function(e,t){var n=t.expose,i=p();n({autoProduct:function(e){"json"!==i.modeType&&console.log(Lt.rended,"渲染是否结束")}});var a=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c({},!0);case 2:W("清除成功"),setTimeout((function(){history.go(0)}),500);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,i,a,o,l,s,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=!(p.length>0&&void 0!==p[0])||p[0],Lt.json){e.next=4;break}return a&&W("没有生成json数据,联系开发人员"),e.abrupt("return");case 4:if(Lt.svg){e.next=7;break}return a&&W("没有生成svg数据,联系开发人员"),e.abrupt("return");case 7:return o=null,a&&(o=W.loading({message:"上传数据中 1/2",duration:0})),l={svg:"",json:""},e.next=12,u("".concat(null===(t=r.activeDetail)||void 0===t?void 0:t.id,".json"),Lt.json);case 12:return l.json=e.sent,o&&(o.message="上传数据中 2/2"),e.next=16,u("".concat(null===(n=r.activeDetail)||void 0===n?void 0:n.id,".svg"),Lt.svg);case 16:return l.svg=e.sent,s={musicSheetId:null===(i=r.activeDetail)||void 0===i?void 0:i.id,musicSvg:r.activeDetail.musicSvg,musicJianSvg:r.activeDetail.musicJianSvg,musicFirstSvg:r.activeDetail.musicFirstSvg},"staff"===pe.sett.type?s.musicSvg=JSON.stringify(l):pe.sett.keySignature?s.musicFirstSvg=JSON.stringify(l):s.musicJianSvg=JSON.stringify(l),o&&(o.message="保存数据中"),e.next=22,c(s);case 22:200==(null==(d=e.sent)?void 0:d.code)?o&&(o.message="保存成功"):o&&(o.message="保存失败"),setTimeout((function(){o&&o.close()}),300);case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=o(regeneratorRuntime.mark((function e(t){var n,i,a,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o.length>1&&void 0!==o[1]&&o[1]&&(t={musicSheetId:null===(n=r.activeDetail)||void 0===n?void 0:n.id,musicJSON:"",musicSvg:"",musicJianSvg:"",musicFirstSvg:""}),i=f(),e.next=5,h.post("/music/sheet/updateRenderFile",{prefix:"teacher"===i?"/api-teacher":"student"===i?"/api-student":"/api-admin",requestType:"json",data:t});case 5:return 200===(a=e.sent).code&&(r.activeDetail.musicJSON=t.musicJSON,r.activeDetail.musicSvg=t.musicSvg,r.activeDetail.musicJianSvg=t.musicJianSvg,r.activeDetail.musicFirstSvg=t.musicFirstSvg),e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=o(regeneratorRuntime.mark((function e(t,n){var i,a,r,o,l,c,u,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="https://".concat(i="daya",".ks3-cn-beijing.ksyuncs.com/"),r=Date.now()+"_"+t,o={filename:t,bucketName:i,postData:{filename:t,acl:"public-read",key:r,unknowValueField:[]}},e.next=6,h.post("/getUploadSign",{prefix:"/api-admin",requestType:"json",data:o});case 6:for(s in l=e.sent,c=new FormData,u={policy:l.data.policy,signature:l.data.signature,key:r,KSSAccessKeyId:l.data.kssAccessKeyId,acl:"public-read",name:t})c.append(s,u[s]);return c.append("file",new Blob([n])),e.next=13,J.post(a,{data:c});case 13:return e.abrupt("return",a+r);case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){return ce(ge,null,["json"===i.modeType&&ce("div",{class:Tt},[ce(N,null,{default:function(){return[ce(A,{center:!0,title:"五线谱"},{"right-icon":function(){var e;return null!==(e=r.activeDetail)&&void 0!==e&&e.musicSvg?ce(Be,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),ce(A,{center:!0,title:"首调"},{"right-icon":function(){var e;return null!==(e=r.activeDetail)&&void 0!==e&&e.musicJianSvg?ce(Be,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),ce(A,{center:!0,title:"固定调"},{"right-icon":function(){var e;return null!==(e=r.activeDetail)&&void 0!==e&&e.musicFirstSvg?ce(Be,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),ce(A,{title:"清除缓存数据",clickable:!0,onClick:a},null),ce(A,{title:"保存缓存数据",clickable:!0,onClick:l},null)]}})])])}}}),Dt=p(),Ft=xe(),Lt=n("musicJSON",we({json:"",svg:"",rended:!1})),Ot=n("MusicSheetRef",se());n("default",le({name:"Colexiu",setup:function(){r.midiPlayIniting=!0;var e=se(!0),t=se(!1),n=se(!1),a=se(""),u=se("init"),p=se(""),f=se({}),h=se({}),v=l(q(Dt.id),2),g=v[0],m=v[1],b=new Z(650,884);de(g,o(regeneratorRuntime.mark((function i(){var o,c,s,d,v,b,_,y,w,x;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if("success"!==g.value||!m.value.xmlFileUrl){i.next=16;break}return P(m.value),h.value=D[L(m.value.code||"")]||{},o=We(),c=o.showFingering,s=o.frozenMode,d=o.compulsionEvaluating,i.next=6,re(c.value?m.value.code:void 0);case 6:v=i.sent,b=l(v,3),_=b[0],y=b[1],w=b[2],u.value=_.value,p.value=y.value,f.value=w.value,r.frozenMode=s.value,n.value=d.value;case 16:if("success"!==g.value||!m.value.xmlFileUrl){i.next=27;break}return i.next=19,oe(m.value.xmlFileUrl,m.value);case 19:if((x=i.sent).value){i.next=26;break}return e.value=!1,t.value=!0,i.abrupt("return");case 26:a.value=x.value;case 27:case"end":return i.stop()}}),i)}))));var _,y,w,x=(_=function(){"vertical"===h.value.direction&&(W("加载中,请稍后..."),setTimeout((function(){Ot.value.reRender()}),16))},y=300,w=!0,function(){if(!w)return!1;w=!1,setTimeout((function(){_(),w=!0}),y)});fe((function(){window.appName="colexiu",U.on("settingFingeringChange",x),c({api:"setEventTracking",content:{type:"klx_xiaokuAI"}})})),he((function(){var e,t,n;(U.off("settingFingeringChange",x),"function"==typeof(null===(e=d)||void 0===e||null===(t=e.audiosInstance)||void 0===t?void 0:t.destroy))&&(null===(n=d.audiosInstance)||void 0===n||n.destroy())})),K(),H(),V();var S=se(!1),k=se(),I=function(){var t=o(regeneratorRuntime.mark((function t(i){var a,o,l,u,p,f,h,v,g,b,_,y,w,x,I,j;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.isLoading=!1,console.log("onRerender","渲染结束"),c({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),console.log("cloudLoading",!1),r.initRendered=!0,console.log(Dt),console.time("获取数据"),d.osmd=i,r.isSpecialBookCategory=!0,"native"===r.renderType&&(r.times=ee(i)),S.value="json"===Dt.modeType||!(null!==(a=r.activeDetail)&&void 0!==a&&a.musicSvg)||!(null!==(o=r.activeDetail)&&void 0!==o&&o.musicJianSvg)||!(null!==(l=r.activeDetail)&&void 0!==l&&l.musicFirstSvg),S.value){h=s(i),v=h.numerator,g=h.denominator;try{Lt.json=JSON.stringify({musicId:r.activeDetail.id,musicSheetName:encodeURIComponent(r.activeDetail.musicSheetName),osmd:{product:!0,bpm:(null==i||null===(b=i.Sheet)||void 0===b?void 0:b.userStartTempoInBPM)||(null==i?void 0:i.bpm),numerator:v,denominator:g,scoreSize:pe.sett.scoreSize||"middle"},times:r.times}),console.log("生成缓存数据",k.value),Lt.svg=(null===(_=document.getElementById("osmdSvgPage1"))||void 0===_?void 0:_.outerHTML)||"",Se((function(){var e,t;Lt.svg=(null===(e=document.getElementById("osmdSvgPage1"))||void 0===e?void 0:e.outerHTML)||"",Lt.rended=!0,null===(t=k.value)||void 0===t||t.autoProduct()}))}catch(B){console.log(B)}}return console.timeEnd("获取数据"),console.log("🚀 ~ detailState.times",r.times),y=(ke.get("speeds")||{})[Dt.id],w=i.bpm||i.Sheet.userStartTempoInBPM,r.activeSpeed=y||w||100,r.baseSpeed=w||100,r.code=(null===(u=m.value)||void 0===u?void 0:u.code)||"",r.activeDetail.originalSpeed=r.baseSpeed,x=(null===(p=r.times[r.times.length-1||0])||void 0===p?void 0:p.endtime)||0,r.isAppPlay&&Ae(x,m.value.midiUrl),d.durationNum||(d.durationNum=x),t.next=25,Je();case 25:I=t.sent,r.freeRate=I.value,te(m.value.paymentType||m.value.chargeType,m.value.orderStatus),de((function(){return pe.sett.camera}),(function(e){c(e?{api:"openCamera"}:{api:"closeCamera"})}),{immediate:!0}),ne(r.activeSpeed),((null===(f=r.setting)||void 0===f?void 0:f.resets)||[]).includes("SPEED")&&r.activeDetail&&ne(null===(j=r.activeDetail)||void 0===j?void 0:j.originalSpeed),ie(),e.value=!1;try{ae(r.times)}catch(B){}n.value&&(d.evaluatingStatus=!0,Y.value="evaluation");case 35:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),j=function(){var t=o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.value=!0,c({api:"cloudLoading",content:{show:!0,type:"fullscreen"}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),B=function(){window.isLoading=!1,c({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),t.value=!0,e.value=!1},P=function(e){c({api:"cloudAccompanyMessage",content:{accompanyUrl:e.audioFileUrl||e.metronomeUrl||e.url||""}})};return function(){var n=e.value||"loading"===g.value,o=t.value||"error"===g.value,l=h.value,s=l.width,p=l.paddingRight,f=l.paddingLeft,v=l.direction,_="init"!==u.value,y=s||"0px",w=p||"0px",x=f||"0px",S="vertical"===v,P="vertical"===v?"20px":"0px",C="show"===u.value&&pe.sett.fingering&&!d.evaluatingStatus,T="vertical"===v&&C,R=i(i({},S&&{margin:"auto",marginRight:0}),{},{width:h.value&&T?"calc(100% - ".concat(y," - ").concat(w," - ").concat(x," - ").concat(P,")"):""});return ce("div",{class:[Re.container,pe.sett.eyeProtection&&"eyeProtection",Ft.android&&"android"]},[ce(G,{class:Re.buttons},null),ce("div",{id:"colexiu-detail-music-sheet",class:[Re.musicSheet,{evaluating:d.evaluatingStatus||"follow"===Y.value}],style:{paddingLeft:r.isSpecialShapedScreen?r.notchHeight/2+"px":"auto",paddingBottom:C&&h.value.height?h.value.height:"40px",background:pe.sett.camera?"rgba(".concat(pe.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(pe.sett.opacity/100,") !important"):""}},[n&&!o&&ce(Le,{class:Re.skeleton,rowWidth:"80%",title:!0,row:3},null),o&&ce(Te,null,null),a.value&&_&&ce(ge,null,[ce("h3",{style:{fontSize:"24px",fontWeight:"normal",textAlign:"center",padding:"0 10px",marginTop:"36px",marginBottom:"0px",marginLeft:"auto",width:R.width},class:"van-ellipsis"},[m.value.musicSheetName]),ce($,{ref:Ot,style:R,score:a.value,EngravingRules:"multiple"===Dt.pageType?{PageFormat:b,DYMusicScoreType:pe.sett.type}:{DYMusicScoreType:pe.sett.type},opotions:{drawTitle:!1,drawComposer:!0,drawLyricist:!1,drawMetronomeMarks:!0,drawMeasureNumbers:!0,autoResize:!1},onStartRender:j,onRenderError:B,onRerender:I,onLoaddingEnd:function(){e.value=!1,window.isLoading=!1,c({api:"cloudLoading",content:{show:!1,type:"fullscreen"}})}},null),C&&ce(Ct,{style:{background:pe.sett.camera?"rgba(".concat(pe.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(pe.sett.opacity/100,")"):"",boxShadow:pe.sett.camera?"none":""},code:m.value.code},null)])]),!n&&!o&&ce(qe,null,null),ce(Fe,{score:a.value},null),ce(tt,null,null),ce(Q,null,null),ce(X,null,null),ce(yt,null,null),ce(Rt,{ref:k},null)])}}}))}}}))}();