1 |
- !function(){function e(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 t(e){return t="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},t(e)}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;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,a,r=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(c){l=!0,a=c}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return r}(e,t)||o(e,t)||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,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t,n,i,a,r,o){try{var l=e[r](o),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(i,a)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var r=e.apply(t,n);function o(e){c(r,i,a,o,l,"next",e)}function l(e){c(r,i,a,o,l,"throw",e)}o(void 0)}))}}var s=document.createElement("style");s.innerHTML='._popup_17c4a_1{background:transparent;width:3.25333rem;border-radius:.24rem}._wrap_17c4a_6{background:#fff;text-align:center;border-radius:0 0 .24rem .24rem}._image_17c4a_11{width:100%;display:block;margin-bottom:-.10667rem}._title_17c4a_16{font-size:.21333rem;font-weight:500;color:#1a1a1a;line-height:.32rem;padding:.26667rem 0 .08rem}._andTitle_17c4a_23{font-size:13Px}._sub_17c4a_26{font-size:.16rem;font-weight:400;color:gray;margin-bottom:.21333rem}._andSub_17c4a_32{font-size:12Px}._btnWrap_17c4a_35{display:flex;align-items:center;justify-content:space-evenly;padding-bottom:.21333rem}._btn_17c4a_35{width:1.44rem;height:.45333rem;background-color:transparent;border:none;background-size:100% 100%;background-repeat:no-repeat}._cancelBtn_17c4a_49{background-image:url(./assets/no-confirm-btn.5ed39ffd.svg)}._confirmBtn_17c4a_52{background-image:url(./assets/confirm-btn.a36604ec.svg)}._tryoutBtn_17c4a_55{background-image:url(./assets/tryout-btn.891d6395.svg)}._discounts_17c4a_58{position:relative}._discounts_17c4a_58:after{width:.66667rem;height:.21333rem;line-height:.21333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.10667rem .10667rem .10667rem 0;content:"\\4e13\\5c5e\\4f18\\60e0";font-size:.13333rem;color:#fff;top:-.16rem;position:absolute;left:.16rem}._membershipBtn_17c4a_74{background-image:url(./assets/membership-btn.6c4804e5.svg)}._demandBtn_17c4a_77{background-image:url(./assets/demand-btn.56c792ce.svg)}._demandBtnFree_17c4a_80{background-image:url(./assets/demand-btn-free.c8a03b7c.svg)}._earphoneBtn_17c4a_83{background-image:url(./assets/earphone-btn.21b7f499.svg)}._closeBtn_17c4a_86{position:absolute;right:-30Px;top:20Px}._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(./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.8ee08461.js","./base-legacy.8baabb63.js","./index.module-legacy.5fc6f753.js","./index-legacy.2bd92c3e.js","./index-legacy.74817000.js"],(function(n){"use strict";var o,l,c,s,p,d,f,h,v,g,m,b,y,_,w,x,S,k,I,B,P,T,j,D,F,R,C,O,z,N,E,M,A,L,W,J,q,U,K,H,V,Y,G,$,Q,X,Z,ee,te,ne,ie,ae,re,oe,le,ce,ue,se,pe,de,fe,he,ve,ge,me,be,ye,_e,we,xe,Se,ke,Ie,Be,Pe;return{setters:[function(e){o=e.s,l=e.p,c=e.Q,s=e.R,p=e.c,d=e.u,f=e.U,h=e.r,v=e.V,g=e.W,m=e.X,b=e.Y,y=e.B,_=e.Z,w=e._,x=e.$,S=e.a0,k=e.k,I=e.a1,B=e.a2,P=e.a3,T=e.P,j=e.a4,D=e.a5,F=e.a6,R=e.a7,C=e.a8,O=e.a9,z=e.aa,N=e.ab,E=e.ac,M=e.J,A=e.T,L=e.h,W=e.ad,J=e.ae,q=e.af,U=e.b,K=e.ag,H=e.ah,V=e.ai,Y=e.E,G=e.M,$=e.aj,Q=e.ak,X=e.al,Z=e.A,ee=e.g,te=e.am,ne=e.an,ie=e.ao,ae=e.ap,re=e.aq,oe=e.K},function(e){le=e.i,ce=e.w,ue=e.k,se=e.d,pe=e.b,de=e.T,fe=e.j,he=e.F,ve=e.H,ge=e.M,me=e.t,be=e.l,ye=e.o,_e=e.p,we=e.h,xe=e.u,Se=e.x,ke=e.W},function(e){Ie=e.s},function(e){Be=e.T},function(e){Pe=e.S}],execute:function(){var Te=function(e,t){var n=le(!1);return t&&(console.log("曲谱为midi,使用app播放"),n.value=!0,o.midiPlayIniting=!0,l({api:"cloudDestroy"}),l({api:"cloudDetail",content:{midi:t,denominator:s(p.osmd).denominator,numerator:s(p.osmd).numerator,originalSpeed:o.activeDetail.originalSpeed,interval:50,duration:1e3*e}},(function(){o.midiPlayIniting=!1,n.value=!1,t&&c("music")})),p.durationNum=e),{initial:n}},je=function(){var e=le(!0),t=le(!1),n=le(!1);try{var i=d().setting||{};"EVALUATING"===i.mode&&(n.value=!0,e.value=!1,t.value=!0),i.difficulty&&(ue.eva.difficulty=i.difficulty),o.setting=i}catch(a){console.error("设置活动配置失败,请检查传入配置是否正确"),console.error(a)}return{showFingering:e,frozenMode:t,compulsionEvaluating:n}},De=function(){var e=u(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=le(.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)}}(),Fe=se({name:"ButtonsPlayer",setup:function(){var e=r(v(),1)[0],t=function(){o.activeTick>-1||(x(0),S(new Event("ended")))},n=Math.floor(2*Math.PI*16);return function(){var i=p.currentTimeNum/p.durationNum*n;return pe(ve,{to:"body"},{default:function(){var n;return[pe("div",{class:g.player,id:"globalPlayer"},[pe(de,{name:"start",duration:300},{default:function(){var t;return[e.value&&!(null!==(t=m.value)&&void 0!==t&&t.connentLoading)&&b.value&&pe(y,{class:[g.button,g.start],onClick:function(){var e,t;b.value=!1,null===(e=m.value)||void 0===e||null===(t=e.togglePlay)||void 0===t||t.call(e)}},{default:function(){return[fe("开始")]}})]}}),!p.evaluatingStatus&&pe(he,null,[("pause"===p.playState||"suspend"===p.playState)&&p.currentTimeNum>0&&!o.sectionStatus&&pe(y,{class:[g.button,g.fullbtn],onClick:t},{default:function(){return[pe(_,{key:"reset",name:"reset"},null)]}}),pe(y,{class:[g.button,g.fullbtn],style:{marginLeft:"14px"},disabled:(null===(n=o.activeDetail)||void 0===n?void 0:n.isAppPlay)&&o.midiPlayIniting,onClick:function(){w()}},{default:function(){return[pe("div",{class:g.schedule},[pe("div",{class:g.schedule},["play"===p.playState?pe(_,{key:"pause",name:"pause"},null):pe(_,{key:"play",name:"play"},null),p.currentTimeNum>0&&!o.sectionStatus&&pe("svg",{class:g.ring,width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/200/svg"},[pe("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"#D9F5EF","stroke-width":"2","stroke-linecap":"round"},null),pe("circle",{class:g.fillring,cx:"20",cy:"20",r:"16",fill:"none",stroke:"#FFC459","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":i+",10000"},null)])])])]}})])])]}})}}}),Re={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"},Ce=se({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return pe("div",null,[pe("img",{class:Re.image,src:"./assets/microphone.7e50c915.svg"},null),pe("div",{class:Re.wrap},[pe("div",{class:Re.des},[pe("div",{class:Re.title},[fe("开启权限")]),pe("div",{class:Re.sub},[fe("请开启麦克风访问权限")])]),pe("div",{class:Re.btnWrap},[pe(y,{class:k(Re.btn,Re.cancelBtn)},null),pe(y,{class:k(Re.btn,Re.confirmBtn)},null)])])])}}}),Oe=se({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return pe("div",null,[pe("img",{class:Re.image,src:"./assets/camera.ad45a2ea.svg"},null),pe("div",{class:Re.wrap},[pe("div",{class:Re.des},[pe("div",{class:Re.title},[fe("开启权限")]),pe("div",{class:Re.sub},[fe("请开启相机访问权限")])]),pe("div",{class:Re.btnWrap},[pe(y,{class:k(Re.btn,Re.cancelBtn)},null),pe(y,{class:k(Re.btn,Re.confirmBtn)},null)])])])}}}),ze=d(),Ne=se({name:"ColexiuMember",setup:function(){var e=f(),t=function(){delete ze.Authorization,l({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter?"+ge.stringify(i({},ze)),orientation:1}})},n=function(){I.show=!1,x(0),B(0)};return function(){return pe("div",null,[pe("img",{class:Re.image,src:"./assets/membership.78b7ec9a.png"},null),pe("div",{class:Re.wrap},[pe("div",{class:Re.des},[pe("div",{class:Re.title},[fe("请开通会员")]),pe("div",{class:Re.sub},[fe("开通会员后可完整使用该曲目")])]),pe("div",{class:Re.btnWrap},[pe(y,{class:k(Re.btn,Re.tryoutBtn),onClick:n},null),pe(y,{class:k([Re.btn,Re.membershipBtn,a({},Re.discounts,1==ze.discounts)]),onClick:t},null)])])])}}}),Ee="./assets/demand.14944949.svg";le(!1);var Me=d(),Ae=se({name:"ColexiuDemand",setup:function(){var e=f(),t=function(){var t=u(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete Me.Authorization,l({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+ge.stringify(i({orderType:"MUSIC"},Me)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){I.show=!1,x(0),B(0)};return function(){var e;return pe("div",{style:{position:"relative"}},[pe("img",{class:Re.image,src:Ee},null),pe("div",{class:Re.wrap},[pe("div",{class:Re.des},[pe("div",{class:Re.title},[fe("该曲目为点播曲目")]),pe("div",{class:Re.sub},[fe("点播价格 "),pe("span",{style:{color:"#FF4E19"}},[fe("¥"),null===(e=o.activeDetail)||void 0===e?void 0:e.musicPrice]),fe(",点播后可永久使用")])]),pe("div",{class:Re.btnWrap},[pe(y,{class:k(Re.btn,Re.tryoutBtn),onClick:n},null),pe(y,{class:k(Re.btn,Re.demandBtn),onClick:t},null)])])])}}}),Le=se({name:"ColexiuEarphone",setup:function(){return function(){return pe("div",null,[pe("img",{class:Re.image,src:"./assets/earphone.37a59b5d.svg"},null),pe("div",{class:Re.wrap},[pe("div",{class:Re.des},[pe("div",{class:Re.title},[fe("请佩戴耳机")]),pe("div",{class:Re.sub},[fe("佩戴耳机可以保证测评准确率哦~")])]),pe("div",{class:Re.btnWrap},[pe(y,{class:k(Re.btn,Re.earphoneBtn),onClick:function(){I.show=!1}},null)])])])}}});le(!1);var We=d(),Je=se({name:"memberAndDemand",setup:function(){var e=f(),t=function(){var t=u(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete We.Authorization,l({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+ge.stringify(i({orderType:"MUSIC"},We)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){delete We.Authorization,l({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter",orientation:1}})},a=function(){I.show=!1,x(0),B(0)};return function(){var e;return pe("div",{style:{position:"relative"}},[pe("img",{class:Re.closeBtn,src:P,onClick:a},null),pe("img",{class:Re.image,src:Ee},null),pe("div",{class:Re.wrap},[pe("div",{class:Re.des},[pe("div",{class:[Re.title,Re.andTitle]},[fe("该曲目为会员曲目,可以单曲购买哦")]),pe("div",{class:[Re.sub,Re.andSub]},[fe("开通酷乐秀会员海量曲目尽情练习"),pe("br",null,null),fe("单曲点播仅需 "),pe("span",{style:{color:"#FF4E19"}},[fe("¥"),null===(e=o.activeDetail)||void 0===e?void 0:e.musicPrice]),fe(",点播后可永久使用")])]),pe("div",{class:Re.btnWrap},[pe(y,{class:k(Re.btn,Re.membershipBtn),onClick:n},null),pe(y,{class:k(Re.btn,Re.demandBtn),onClick:t},null)])])])}}}),qe=se({name:"ColexiuPermission",setup:function(e,t){return(0,t.expose)({toggle:function(){I.show=!I.show}}),function(){return pe(T,{class:Re.popup,show:I.show,"onUpdate:show":function(e){return I.show=e},teleport:"body",onClosed:function(){x(0)}},{default:function(){return["microphone"===I.active?pe(Ce,null,null):"camera"===I.active?pe(Oe,null,null):"member"===I.active?pe(Ne,null,null):"demand"===I.active?pe(Ae,null,null):"earphone"===I.active?pe(Le,null,null):"memberAndDemand"===I.active?pe(Je,null,null):null]}})}}}),Ue="_container_hiwv0_1",Ke="_changeIndex_hiwv0_6",He=se({name:"fingering",props:{type:{type:String,default:""},fixedKey:{type:Number,default:0},fingeringInfo:{type:Object},loaded:{type:Function,default:function(){}},viewInfo:{type:Object}},setup:function(n,i){var a=i.expose,r=me(n),l=le(null);le(null);var c=le(0),u=le(0);return a({container:l,containerWidth:c}),function(){var i,a,c,s,p,d,f,h,v,g,m,b,y,_,w;if(null===(i=r.viewInfo.value)||void 0===i||!i.activeType)return null;var x,S,I,B,P=(x=null===(a=n.fingeringInfo)||void 0===a?void 0:a.name,S=r.fixedKey.value,"piccolo"===x&&o.times[0]?le(S+12*(1-o.times[0].octaveOffset)):le(S)).value,T=function(e,n){var i=e[n]||e[0]||[];return"number"==typeof i[0]||"string"==typeof i[0]?[i]:"object"===t(i[0])?i:[[]]}(null===(c=r.viewInfo.value)||void 0===c||null===(s=c.activeType)||void 0===s?void 0:s.relationship,P||0),j=[];o.activeNote&&(null===(I=o.activeNote)||void 0===I||I.halfTone1.forEach((function(t){var n,i,a,o=(null===(n=r.viewInfo.value)||void 0===n||null===(i=n.activeType)||void 0===i||null===(a=i.relationship)||void 0===a?void 0:a[t])||[];o=o.map((function(e){return"right"+e})),j.push.apply(j,e(o))})),null===(B=o.activeNote)||void 0===B||B.halfTone2.forEach((function(t){var n,i,a,o=(null===(n=r.viewInfo.value)||void 0===n||null===(i=n.activeType)||void 0===i||null===(a=i.relationship)||void 0===a?void 0:a[t])||[];o=o.map((function(e){return"left"+e})),j.push.apply(j,e(o))})));var D=T[u.value]||[];return pe("div",{ref:l,class:k(null===(p=n.fingeringInfo)||void 0===p?void 0:p.name,Ue),style:{width:"vertical"===(null===(d=n.fingeringInfo)||void 0===d?void 0:d.direction)?null===(f=n.fingeringInfo)||void 0===f?void 0:f.width:"",height:"transverse"===(null===(h=n.fingeringInfo)||void 0===h?void 0:h.direction)?(null===(v=n.fingeringInfo)||void 0===v?void 0:v.height)||"":"100%",display:"flex",paddingLeft:"vertical"===(null===(g=n.fingeringInfo)||void 0===g?void 0:g.direction)?null===(m=n.fingeringInfo)||void 0===m?void 0:m.paddingLeft:"",paddingRight:"vertical"===(null===(b=n.fingeringInfo)||void 0===b?void 0:b.direction)?null===(y=n.fingeringInfo)||void 0===y?void 0:y.paddingRight:""}},[D.includes(0)?pe("span",{style:{position:"absolute",top:".5vh",right:".5vw",color:"rgb(1, 193, 181)",fontWeight:"bold"}},[fe("转调")]):null,pe("div",{style:{width:"100%",height:"100%"},class:j,innerHTML:null===(_=r.viewInfo.value)||void 0===_||null===(w=_.activeType)||void 0===w?void 0:w.json.full2},null),T.length>1?pe("div",{role:"button",onClick:function(){var e=u.value===T.length-1?0:u.value+1;u.value=e},class:["substituteFinger",Ke]},[fe("替指")]):null])}}}),Ve="_fingering_shnq0_1",Ye=["piano"],Ge=le(0),$e=le("hidden"),Qe=function(){var e=u(regeneratorRuntime.mark((function e(t){var n,i,a,r,l,c,u,s,d,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,R(n.name);case 4:if(!(i=e.sent)){e.next=19;break}return a=C(n.name,o.fixedKey),r=O(i,n.name,a.value),e.next=10,z(r.value);case 10:return l=e.sent,c=l.width,u=l.height,s=document.getElementById("colexiu-detail-music-sheet").clientHeight||0,d=p.evaluatingStatus?0:c,f=s/u,Ge.value=s?f*d:d,c&&($e.value="show"),e.abrupt("return",be({width:c,height:u,scale:f,usedFixedKey:a.value,fullsrc:r.value,activeType:i,detail:n}));case 19:e.next=22;break;case 21:$e.value="hidden";case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Xe=se({name:"ColexiuFingering",props:{code:{type:String,default:-1}},setup:function(e){var t=me(e).code,n=le(null),i=le(-1);return ce([t],function(){var e=u(regeneratorRuntime.mark((function e(a,o){var l,c,u,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=r(a,1),c=l[0],u=r(o,1),s=u[0],i.value=F(t.value),c===s){e.next=8;break}return e.next=6,Qe(j[i.value]);case 6:(p=e.sent)&&(n.value=p);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=j[i.value];return pe("div",{class:[Ve,e.name,e.direction,"fingering"],style:{left:"vertical"===e.direction?o.notchHeight/2+"px":""}},[Ye.includes(null==e?void 0:e.name)?pe(He,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:o.fixedKey},null):pe(D,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:o.fixedKey},null)])}}}),Ze="_wrap_1ojzw_1",et=se({name:"productJson",setup:function(e,t){var n=t.expose,i=d();n({autoProduct:function(e){"json"!==i.modeType&&console.log(it.rended,"渲染是否结束")}});var a=function(){var e=u(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({},!0);case 2:A("清除成功"),setTimeout((function(){history.go(0)}),500);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),r=function(){var e=u(regeneratorRuntime.mark((function e(){var t,n,i,a,r,u,s,p,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=!(d.length>0&&void 0!==d[0])||d[0],it.json){e.next=4;break}return a&&A("没有生成json数据,联系开发人员"),e.abrupt("return");case 4:if(it.svg){e.next=7;break}return a&&A("没有生成svg数据,联系开发人员"),e.abrupt("return");case 7:return r=null,a&&(r=A.loading({message:"上传数据中 1/2",duration:0})),u={svg:"",json:""},e.next=12,c("".concat(null===(t=o.activeDetail)||void 0===t?void 0:t.id,".json"),it.json);case 12:return u.json=e.sent,r&&(r.message="上传数据中 2/2"),e.next=16,c("".concat(null===(n=o.activeDetail)||void 0===n?void 0:n.id,".svg"),it.svg);case 16:return u.svg=e.sent,s={musicSheetId:null===(i=o.activeDetail)||void 0===i?void 0:i.id,musicSvg:o.activeDetail.musicSvg,musicJianSvg:o.activeDetail.musicJianSvg,musicFirstSvg:o.activeDetail.musicFirstSvg},"staff"===ue.sett.type?s.musicSvg=JSON.stringify(u):ue.sett.keySignature?s.musicFirstSvg=JSON.stringify(u):s.musicJianSvg=JSON.stringify(u),r&&(r.message="保存数据中"),e.next=22,l(s);case 22:200==(null==(p=e.sent)?void 0:p.code)?r&&(r.message="保存成功"):r&&(r.message="保存失败"),setTimeout((function(){r&&r.close()}),300);case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=u(regeneratorRuntime.mark((function e(t){var n,i,a,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.length>1&&void 0!==r[1]&&r[1]&&(t={musicSheetId:null===(n=o.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&&(o.activeDetail.musicJSON=t.musicJSON,o.activeDetail.musicSvg=t.musicSvg,o.activeDetail.musicJianSvg=t.musicJianSvg,o.activeDetail.musicFirstSvg=t.musicFirstSvg),e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=u(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,L.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 pe(he,null,["json"===i.modeType&&pe("div",{class:Ze},[pe(N,null,{default:function(){return[pe(E,{center:!0,title:"五线谱"},{"right-icon":function(){var e;return null!==(e=o.activeDetail)&&void 0!==e&&e.musicSvg?pe(M,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),pe(E,{center:!0,title:"首调"},{"right-icon":function(){var e;return null!==(e=o.activeDetail)&&void 0!==e&&e.musicJianSvg?pe(M,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),pe(E,{center:!0,title:"固定调"},{"right-icon":function(){var e;return null!==(e=o.activeDetail)&&void 0!==e&&e.musicFirstSvg?pe(M,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),pe(E,{title:"清除缓存数据",clickable:!0,onClick:a},null),pe(E,{title:"保存缓存数据",clickable:!0,onClick:r},null)]}})])])}}}),tt=d(),nt=we(),it=n("musicJSON",be({json:"",svg:"",rended:!1})),at=n("MusicSheetRef",le());n("default",se({name:"Colexiu",setup:function(){var e=xe();console.log("🚀 ~ route",e.query,tt),o.midiPlayIniting=!0;var t=le(!0),n=le(!1),a=le(!1),c=le(""),d=le("init"),f=le(""),h=le({}),v=le({}),g=r(W(e.query.id),2),m=g[0],b=g[1],y=new Z(650,884);ce(m,u(regeneratorRuntime.mark((function e(){var i,l,u,s,p,g,y,_,w,x;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("success"!==m.value||!b.value.xmlFileUrl){e.next=16;break}return D(b.value),v.value=j[F(b.value.code||"")]||{},i=je(),l=i.showFingering,u=i.frozenMode,s=i.compulsionEvaluating,e.next=6,re(l.value?b.value.code:void 0);case 6:p=e.sent,g=r(p,3),y=g[0],_=g[1],w=g[2],d.value=y.value,f.value=_.value,h.value=w.value,o.frozenMode=u.value,a.value=s.value;case 16:if("success"!==m.value||!b.value.xmlFileUrl){e.next=27;break}return e.next=19,oe(b.value.xmlFileUrl,b.value);case 19:if((x=e.sent).value){e.next=26;break}return t.value=!1,n.value=!0,e.abrupt("return");case 26:c.value=x.value;case 27:case"end":return e.stop()}}),e)}))));var _,w,x,S=(_=function(){"vertical"===v.value.direction&&(A("加载中,请稍后..."),setTimeout((function(){at.value.reRender()}),16))},w=300,x=!0,function(){if(!x)return!1;x=!1,setTimeout((function(){_(),x=!0}),w)});ye((function(){window.appName="colexiu",J.on("settingFingeringChange",S),l({api:"setEventTracking",content:{type:"klx_xiaokuAI"}})})),_e((function(){var e,t,n;(J.off("settingFingeringChange",S),"function"==typeof(null===(e=p)||void 0===e||null===(t=e.audiosInstance)||void 0===t?void 0:t.destroy))&&(null===(n=p.audiosInstance)||void 0===n||n.destroy())})),q(),U(),K();var k=le(!1),I=le(),B=function(){var e=u(regeneratorRuntime.mark((function e(n){var i,r,c,u,d,f,h,v,g,m,y,_,w,x,S,B;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.isLoading=!1,l({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),o.initRendered=!0,console.log(tt),console.time("获取数据"),p.osmd=n,o.isSpecialBookCategory=!0,"native"===o.renderType&&(o.times=ee(n)),k.value="json"===tt.modeType||!(null!==(i=o.activeDetail)&&void 0!==i&&i.musicSvg)||!(null!==(r=o.activeDetail)&&void 0!==r&&r.musicJianSvg)||!(null!==(c=o.activeDetail)&&void 0!==c&&c.musicFirstSvg),k.value){h=s(n),v=h.numerator,g=h.denominator;try{it.json=JSON.stringify({musicId:o.activeDetail.id,musicSheetName:encodeURIComponent(o.activeDetail.musicSheetName),osmd:{product:!0,bpm:(null==n||null===(m=n.Sheet)||void 0===m?void 0:m.userStartTempoInBPM)||(null==n?void 0:n.bpm),numerator:v,denominator:g,scoreSize:ue.sett.scoreSize||"middle"},times:o.times}),console.log("生成缓存数据",I.value),it.svg=(null===(y=document.getElementById("osmdSvgPage1"))||void 0===y?void 0:y.outerHTML)||"",Se((function(){var e,t;it.svg=(null===(e=document.getElementById("osmdSvgPage1"))||void 0===e?void 0:e.outerHTML)||"",it.rended=!0,null===(t=I.value)||void 0===t||t.autoProduct()}))}catch(P){console.log(P)}}return console.timeEnd("获取数据"),console.log("🚀 ~ detailState.times",o.times),_=(ke.get("speeds")||{})[tt.id],w=n.bpm||n.Sheet.userStartTempoInBPM,o.activeSpeed=_||w||100,o.baseSpeed=w||100,o.code=(null===(u=b.value)||void 0===u?void 0:u.code)||"",o.activeDetail.originalSpeed=o.baseSpeed,x=(null===(d=o.times[o.times.length-1||0])||void 0===d?void 0:d.endtime)||0,o.isAppPlay&&Te(x,b.value.midiUrl),p.durationNum||(p.durationNum=x),e.next=23,De();case 23:S=e.sent,o.freeRate=S.value,te(b.value.paymentType||b.value.chargeType,b.value.orderStatus),ce((function(){return ue.sett.camera}),(function(e){l(e?{api:"openCamera"}:{api:"closeCamera"})}),{immediate:!0}),ne(o.activeSpeed),((null===(f=o.setting)||void 0===f?void 0:f.resets)||[]).includes("SPEED")&&o.activeDetail&&ne(null===(B=o.activeDetail)||void 0===B?void 0:B.originalSpeed),ie(),t.value=!1;try{ae(o.times)}catch(P){}a.value&&(p.evaluatingStatus=!0,V.value="evaluation");case 33:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=u(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.value=!0,l({api:"cloudLoading",content:{show:!0,type:"fullscreen"}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){window.isLoading=!1,l({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),n.value=!0,t.value=!1},D=function(e){l({api:"cloudAccompanyMessage",content:{accompanyUrl:e.audioFileUrl||e.metronomeUrl||e.url||""}})};return function(){var e=t.value||"loading"===m.value,a=n.value||"error"===m.value,r=v.value,u=r.width,s=r.paddingRight,f=r.paddingLeft,h=r.direction,g="init"!==d.value,_=u||"0px",w=s||"0px",x=f||"0px",S="vertical"===h,k="vertical"===h?"20px":"0px",j="show"===d.value&&ue.sett.fingering&&!p.evaluatingStatus,D="vertical"===h&&j,F=i(i({},S&&{margin:"auto",marginRight:0}),{},{width:v.value&&D?"calc(100% - ".concat(_," - ").concat(w," - ").concat(x," - ").concat(k,")"):""});return pe("div",{class:[Ie.container,ue.sett.eyeProtection&&"eyeProtection",nt.android&&"android"]},[!e&&!a&&pe(H,{class:Ie.buttons},null),pe("div",{id:"colexiu-detail-music-sheet",class:[Ie.musicSheet,{evaluating:p.evaluatingStatus||"follow"===V.value}],style:{paddingLeft:o.isSpecialShapedScreen?o.notchHeight/2+"px":"auto",paddingBottom:j&&v.value.height?v.value.height:"40px",background:ue.sett.camera?"rgba(".concat(ue.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(ue.sett.opacity/100,") !important"):""}},[e&&!a&&pe(Pe,{class:Ie.skeleton,rowWidth:"80%",title:!0,row:3},null),a&&pe(Y,null,null),c.value&&g&&pe(he,null,[pe("h3",{style:{fontSize:"24px",fontWeight:"normal",textAlign:"center",padding:"0 10px",marginTop:"36px",marginBottom:"0px",marginLeft:"auto",width:F.width},class:"van-ellipsis"},[b.value.musicSheetName]),pe(G,{ref:at,style:F,score:c.value,EngravingRules:"multiple"===tt.pageType?{PageFormat:y,DYMusicScoreType:ue.sett.type}:{DYMusicScoreType:ue.sett.type},opotions:{drawTitle:!1,drawComposer:!0,drawLyricist:!1,drawMetronomeMarks:!0,drawMeasureNumbers:!0,autoResize:!1},onStartRender:P,onRenderError:T,onRerender:B,onLoaddingEnd:function(){t.value=!1,window.isLoading=!1,l({api:"cloudLoading",content:{show:!1,type:"fullscreen"}})}},null),j&&pe(Xe,{style:{background:ue.sett.camera?"rgba(".concat(ue.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(ue.sett.opacity/100,")"):"",boxShadow:ue.sett.camera?"none":""},code:b.value.code},null)])]),!e&&!a&&pe(Fe,null,null),pe(Be,{score:c.value},null),pe(qe,null,null),pe($,null,null),pe(Q,null,null),pe(X,null,null),pe(et,{ref:I},null)])}}}))}}}))}();
|