deciphony-renderer 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/assets/assets/msSymbols/1_active.svg +7 -0
  2. package/dist/assets/assets/msSymbols/2_active.svg +7 -0
  3. package/dist/assets/assets/msSymbols/3_active.svg +7 -0
  4. package/dist/assets/assets/msSymbols/4_active.svg +7 -0
  5. package/dist/assets/assets/msSymbols/5_active.svg +7 -0
  6. package/dist/assets/assets/msSymbols/6_active.svg +7 -0
  7. package/dist/assets/assets/msSymbols/7_active.svg +7 -0
  8. package/dist/assets/assets/msSymbols/altoClef.svg +9 -11
  9. package/dist/assets/assets/msSymbols/altoClef_active.svg +18 -0
  10. package/dist/assets/assets/msSymbols/bar-numberNotation_active.svg +5 -0
  11. package/dist/assets/assets/msSymbols/bar-standardStaff_active.svg +7 -0
  12. package/dist/assets/assets/msSymbols/barlineEndRepeatSign.svg +11 -9
  13. package/dist/assets/assets/msSymbols/barlineEndRepeatSign_active.svg +14 -0
  14. package/dist/assets/assets/msSymbols/barlineFinal.svg +6 -7
  15. package/dist/assets/assets/msSymbols/barlineFinal_active.svg +9 -0
  16. package/dist/assets/assets/msSymbols/barlineReverseFinal.svg +7 -7
  17. package/dist/assets/assets/msSymbols/barlineReverseFinal_active.svg +10 -0
  18. package/dist/assets/assets/msSymbols/barlineSingle_active.svg +3 -0
  19. package/dist/assets/assets/msSymbols/barlineStartRepeatSign.svg +11 -7
  20. package/dist/assets/assets/msSymbols/barlineStartRepeatSign_active.svg +14 -0
  21. package/dist/assets/assets/msSymbols/bassClef.svg +6 -41
  22. package/dist/assets/assets/msSymbols/bassClef_active.svg +11 -0
  23. package/dist/assets/assets/msSymbols/chronaxieIncreasingLine_active.svg +3 -0
  24. package/dist/assets/assets/msSymbols/doubleFlat.svg +15 -0
  25. package/dist/assets/assets/msSymbols/doubleFlat_active.svg +15 -0
  26. package/dist/assets/assets/msSymbols/doubleSharp.svg +16 -0
  27. package/dist/assets/assets/msSymbols/doubleSharp_active.svg +16 -0
  28. package/dist/assets/assets/msSymbols/flat.svg +7 -9
  29. package/dist/assets/assets/msSymbols/flat_active.svg +9 -0
  30. package/dist/assets/assets/msSymbols/nature.svg +6 -8
  31. package/dist/assets/assets/msSymbols/nature_active.svg +8 -0
  32. package/dist/assets/assets/msSymbols/noteHead1.svg +6 -0
  33. package/dist/assets/assets/msSymbols/noteHead1_active.svg +6 -0
  34. package/dist/assets/assets/msSymbols/noteHead2.svg +20 -0
  35. package/dist/assets/assets/msSymbols/noteHead2_active.svg +20 -0
  36. package/dist/assets/assets/msSymbols/noteHead4.svg +8 -0
  37. package/dist/assets/assets/msSymbols/noteHead4_active.svg +8 -0
  38. package/dist/assets/assets/msSymbols/noteStem_active.svg +5 -0
  39. package/dist/assets/assets/msSymbols/noteTail128.svg +17 -0
  40. package/dist/assets/assets/msSymbols/noteTail128_active.svg +17 -0
  41. package/dist/assets/assets/msSymbols/noteTail16.svg +11 -0
  42. package/dist/assets/assets/msSymbols/noteTail16_active.svg +11 -0
  43. package/dist/assets/assets/msSymbols/noteTail256.svg +16 -0
  44. package/dist/assets/assets/msSymbols/noteTail256_active.svg +16 -0
  45. package/dist/assets/assets/msSymbols/noteTail32.svg +11 -0
  46. package/dist/assets/assets/msSymbols/noteTail32_active.svg +11 -0
  47. package/dist/assets/assets/msSymbols/noteTail64.svg +12 -0
  48. package/dist/assets/assets/msSymbols/noteTail64_active.svg +12 -0
  49. package/dist/assets/assets/msSymbols/noteTail8.svg +8 -0
  50. package/dist/assets/assets/msSymbols/noteTail8_active.svg +8 -0
  51. package/dist/assets/assets/msSymbols/rest1.svg +3 -0
  52. package/dist/assets/assets/msSymbols/rest128.svg +5 -0
  53. package/dist/assets/assets/msSymbols/rest128_active.svg +5 -0
  54. package/dist/assets/assets/msSymbols/rest16.svg +5 -0
  55. package/dist/assets/assets/msSymbols/rest16_active.svg +5 -0
  56. package/dist/assets/assets/msSymbols/rest1_active.svg +3 -0
  57. package/dist/assets/assets/msSymbols/rest2.svg +3 -0
  58. package/dist/assets/assets/msSymbols/rest256.svg +5 -0
  59. package/dist/assets/assets/msSymbols/rest256_active.svg +5 -0
  60. package/dist/assets/assets/msSymbols/rest2_active.svg +3 -0
  61. package/dist/assets/assets/msSymbols/rest32.svg +5 -0
  62. package/dist/assets/assets/msSymbols/rest32_active.svg +5 -0
  63. package/dist/assets/assets/msSymbols/rest4.svg +5 -0
  64. package/dist/assets/assets/msSymbols/rest4_active.svg +5 -0
  65. package/dist/assets/assets/msSymbols/rest64.svg +5 -0
  66. package/dist/assets/assets/msSymbols/rest64_active.svg +5 -0
  67. package/dist/assets/assets/msSymbols/rest8.svg +5 -0
  68. package/dist/assets/assets/msSymbols/rest8_active.svg +5 -0
  69. package/dist/assets/assets/msSymbols/sharp.svg +8 -8
  70. package/dist/assets/assets/msSymbols/sharp_active.svg +10 -0
  71. package/dist/assets/assets/msSymbols/trebleClef.svg +6 -14
  72. package/dist/assets/assets/msSymbols/trebleClef_active.svg +13 -0
  73. package/dist/components/clef.d.ts +1 -1
  74. package/dist/components/dragbox/bezier3DragBox.d.ts +170 -0
  75. package/dist/components/dragbox/rectDragBox.d.ts +114 -0
  76. package/dist/components/keySignature.d.ts +3 -3
  77. package/dist/components/measureContainer.d.ts +4 -4
  78. package/dist/components/msSymbol.d.ts +8 -12
  79. package/dist/components/msSymbolContainer.d.ts +5 -9
  80. package/dist/components/msSymbolSlot.d.ts +12 -20
  81. package/dist/components/noteTail.d.ts +6 -10
  82. package/dist/components/slur.d.ts +97 -2
  83. package/dist/components/spanSymbol.d.ts +1 -1
  84. package/dist/components/timeSignature.d.ts +1 -1
  85. package/dist/components/virtualSymbolContainer.d.ts +1 -1
  86. package/dist/components/volta.d.ts +57 -2
  87. package/dist/composables/useSkin.d.ts +9 -0
  88. package/dist/deciphony-renderer.css +1 -1
  89. package/dist/enum.d.ts +7 -0
  90. package/dist/index.cjs.js +11 -5
  91. package/dist/index.d.ts +1 -1
  92. package/dist/index.es.js +2731 -2170
  93. package/dist/musicScore.d.ts +13 -3
  94. package/dist/types.d.ts +27 -2
  95. package/dist/utils/eventUtil.d.ts +1 -2
  96. package/dist/utils/geometryUtil.d.ts +1 -2
  97. package/dist/utils/heightUtil.d.ts +1 -1
  98. package/dist/utils/leftUtil.d.ts +1 -1
  99. package/dist/utils/spanSymbolUtil.d.ts +4 -0
  100. package/dist/utils/topUtil.d.ts +12 -0
  101. package/dist/utils/widthUtil.d.ts +2 -2
  102. package/package.json +4 -2
  103. package/dist/assets/assets/msSymbols/defaultSymbol.svg +0 -0
  104. package/dist/assets/assets/msSymbols/noteHeadHalf.svg +0 -14
  105. package/dist/assets/assets/msSymbols/noteHeadQuarter.svg +0 -14
  106. package/dist/assets/assets/msSymbols/noteHeadWhole.svg +0 -12
  107. package/dist/assets/assets/msSymbols/noteTailOneDown.svg +0 -13
  108. package/dist/assets/assets/msSymbols/noteTailOneUp.svg +0 -10
  109. package/dist/assets/assets/msSymbols/noteTailTwoDown.svg +0 -14
  110. package/dist/assets/assets/msSymbols/noteTailTwoUp.svg +0 -14
  111. package/dist/assets/assets/msSymbols/restEighth.svg +0 -40
  112. package/dist/assets/assets/msSymbols/restHalf.svg +0 -36
  113. package/dist/assets/assets/msSymbols/restQuarter.svg +0 -38
  114. package/dist/assets/assets/msSymbols/restSixteenth.svg +0 -46
  115. package/dist/assets/assets/msSymbols/restSixtyFourth.svg +0 -45
  116. package/dist/assets/assets/msSymbols/restThirtySecond.svg +0 -45
  117. package/dist/assets/assets/msSymbols/restWhole.svg +0 -8
  118. package/dist/components/rectDragShell.d.ts +0 -29
  119. package/dist/utils/bottomUtil.d.ts +0 -11
package/dist/index.cjs.js CHANGED
@@ -1,6 +1,12 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),on="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='500'%20height='80'%3e%3cline%20x1='0'%20y1='0'%20x2='500'%20y2='000'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='20'%20x2='500'%20y2='20'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='40'%20x2='500'%20y2='40'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='60'%20x2='500'%20y2='60'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='80'%20x2='500'%20y2='80'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3c/svg%3e",rn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='500'%20height='80'%3e%3cline%20x1='0'%20y1='0'%20x2='500'%20y2='000'%20stroke='white'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='80'%20x2='500'%20y2='80'%20stroke='white'%20stroke-width='1'%3e%3c/line%3e%3c/svg%3e";var ee=(e=>(e[e.MultipStaves=1]="MultipStaves",e[e.SingleStaff=2]="SingleStaff",e[e.Measure=3]="Measure",e[e.SpanSymbol=4]="SpanSymbol",e[e.MsSymbolContainer=5]="MsSymbolContainer",e[e.MsSymbol=6]="MsSymbol",e))(ee||{}),jt=(e=>(e.Line="line",e.Space="space",e))(jt||{}),Wt=(e=>(e.Lower="lower",e.Main="main",e.Upper="upper",e))(Wt||{}),$=(e=>(e[e.Treble=1]="Treble",e[e.MezzoSoprano=2]="MezzoSoprano",e[e.Alto=3]="Alto",e[e.Tenor=4]="Tenor",e[e.BaritoneF=5]="BaritoneF",e[e.BaritoneC=6]="BaritoneC",e[e.Bass=7]="Bass",e[e.Subbass=8]="Subbass",e))($||{}),Ft=(e=>(e.Cb="Cb",e.Gb="Gb",e.Db="Db",e.Ab="Ab",e.Eb="Eb",e.Bb="Bb",e.F="F",e.C="C",e.G="G",e.D="D",e.A="A",e.E="E",e.B="B",e["F#"]="F#",e["C#"]="C#",e))(Ft||{}),le=(e=>(e[e.DO=1]="DO",e[e.RE=2]="RE",e[e.MI=3]="MI",e[e.FA=4]="FA",e[e.SOL=5]="SOL",e[e.LA=6]="LA",e[e.TI=7]="TI",e))(le||{}),ye=(e=>(e.None="",e.Natural="&",e.Sharp="#",e.Flat="b",e.DoubleSharp="##",e.DoubleFlat="bb",e))(ye||{}),D=(e=>(e[e.whole=1]="whole",e[e.half=2]="half",e[e.quarter=4]="quarter",e[e.eighth=8]="eighth",e[e.sixteenth=16]="sixteenth",e[e.thirtySecond=32]="thirtySecond",e[e.sixtyFourth=64]="sixtyFourth",e))(D||{}),b=(e=>(e.NoteHead="noteHead",e.NoteStem="noteStem",e.NoteTail="noteTail",e.NoteNumber="noteNumber",e.ChronaxieReducingLine="chronaxieReducingLine",e.ChronaxieIncreasingLine="chronaxieIncreasingLine",e.NoteDot="noteDot",e.Rest="rest",e.Slur="slur",e.Tie="tie",e.DurationDot="durationDot",e.Accidental="accidental",e.Tuplet="tuplet",e.Clef="clef",e.Clef_f="clef_f",e.KeySignature="keySignature",e.TimeSignature="timeSignature",e.BarLine="barLine",e.BarLine_f="barLine_f",e))(b||{}),E=(e=>(e[e.standardStaff=1]="standardStaff",e[e.numberNotation=2]="numberNotation",e[e.rhythmNotation=3]="rhythmNotation",e[e.percussion=4]="percussion",e))(E||{}),Ce=(e=>(e[e.volta=1]="volta",e[e.slur=2]="slur",e[e.tie=3]="tie",e))(Ce||{}),Fe=(e=>(e[e.frontFixed=1]="frontFixed",e[e.rearFixed=2]="rearFixed",e[e.variable=3]="variable",e[e.span=4]="span",e))(Fe||{}),J=(e=>(e[e.single=1]="single",e[e.final=2]="final",e[e.reverseFinal=3]="reverseFinal",e[e.startRepeatSign=4]="startRepeatSign",e[e.endRepeatSign=5]="endRepeatSign",e))(J||{}),re=(e=>(e[e.normal=1]="normal",e[e.edit=2]="edit",e))(re||{}),ue=(e=>(e[e.note=1]="note",e[e.rest=2]="rest",e))(ue||{});const an=r.defineComponent({__name:"measure",props:{measure:{type:Object,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},width:{type:Number,default:400},height:{type:Number,default:80},componentWidth:{type:Number,default:1e3},componentHeight:{type:Number,default:800},strokeWidth:{type:Number,default:1},musicScore:{type:Object,default:{}}},emits:["measureMouseDown"],setup(e,{emit:t}){const n=e,o=r.computed(()=>({width:"100%",display:"grid","grid-template-rows":"1fr","grid-template-columns":"1fr"})),i=r.computed(()=>{const d={width:n.width+"px",height:n.height+"px","background-color":"black",background:n.measure.options.highlight?n.measure.options.highlightColor:n.measure.options.color,pointerEvents:"none"};switch(n.musicScore.showMode){case E.standardStaff:{d.mask=`url("${on}") no-repeat center`,d["mask-size"]="100% 100%";break}case E.numberNotation:{d.mask=`url("${rn}") no-repeat center`,d["mask-size"]="100% 100%";break}}return d}),a=t;function l(d){a("measureMouseDown",d,n.measure)}return(d,u)=>(r.openBlock(),r.createElementBlock("div",{class:"measure",style:r.normalizeStyle(o.value),onMousedown:r.withModifiers(l,["self"])},[r.createElementVNode("div",{style:r.normalizeStyle(i.value)},null,4)],36))}}),X=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},sn=X(an,[["__scopeId","data-v-45ed8482"]]);var de;(function(e){e[e.MultipStaves=1]="MultipStaves",e[e.SingleStaff=2]="SingleStaff",e[e.Measure=3]="Measure",e[e.SpanSymbol=4]="SpanSymbol",e[e.MsSymbolContainer=5]="MsSymbolContainer",e[e.MsSymbol=6]="MsSymbol"})(de||(de={}));var F;(function(e){e.Line="line",e.Space="space"})(F||(F={}));var M;(function(e){e.Lower="lower",e.Main="main",e.Upper="upper"})(M||(M={}));var L;(function(e){e[e.Treble=1]="Treble",e[e.MezzoSoprano=2]="MezzoSoprano",e[e.Alto=3]="Alto",e[e.Tenor=4]="Tenor",e[e.BaritoneF=5]="BaritoneF",e[e.BaritoneC=6]="BaritoneC",e[e.Bass=7]="Bass",e[e.Subbass=8]="Subbass"})(L||(L={}));var S;(function(e){e.Cb="Cb",e.Gb="Gb",e.Db="Db",e.Ab="Ab",e.Eb="Eb",e.Bb="Bb",e.F="F",e.C="C",e.G="G",e.D="D",e.A="A",e.E="E",e.B="B",e["F#"]="F#",e["C#"]="C#"})(S||(S={}));var A;(function(e){e[e.DO=1]="DO",e[e.RE=2]="RE",e[e.MI=3]="MI",e[e.FA=4]="FA",e[e.SOL=5]="SOL",e[e.LA=6]="LA",e[e.TI=7]="TI"})(A||(A={}));var T;(function(e){e.C="C",e.D="D",e.E="E",e.F="F",e.G="G",e.A="A",e.B="B"})(T||(T={}));var f;(function(e){e.None="",e.Natural="&",e.Sharp="#",e.Flat="b",e.DoubleSharp="##",e.DoubleFlat="bb"})(f||(f={}));var ft;(function(e){e.None="",e.Single=".",e.Double="..",e.Triple="..."})(ft||(ft={}));var x;(function(e){e[e.whole=1]="whole",e[e.half=2]="half",e[e.quarter=4]="quarter",e[e.eighth=8]="eighth",e[e.sixteenth=16]="sixteenth",e[e.thirtySecond=32]="thirtySecond",e[e.sixtyFourth=64]="sixtyFourth"})(x||(x={}));var h;(function(e){e.NoteHead="noteHead",e.NoteStem="noteStem",e.NoteTail="noteTail",e.NoteNumber="noteNumber",e.ChronaxieReducingLine="chronaxieReducingLine",e.ChronaxieIncreasingLine="chronaxieIncreasingLine",e.NoteDot="noteDot",e.Rest="rest",e.Slur="slur",e.Tie="tie",e.DurationDot="durationDot",e.Accidental="accidental",e.Tuplet="tuplet",e.Clef="clef",e.Clef_f="clef_f",e.KeySignature="keySignature",e.TimeSignature="timeSignature",e.BarLine="barLine",e.BarLine_f="barLine_f"})(h||(h={}));var Ne;(function(e){e[e.standardStaff=1]="standardStaff",e[e.numberNotation=2]="numberNotation",e[e.rhythmNotation=3]="rhythmNotation",e[e.percussion=4]="percussion"})(Ne||(Ne={}));var z;(function(e){e[e.singleMeasure=1]="singleMeasure",e[e.multipleMeasure=2]="multipleMeasure"})(z||(z={}));var ht;(function(e){e[e.volta=1]="volta",e[e.slur=2]="slur",e[e.tie=3]="tie"})(ht||(ht={}));var pt;(function(e){e[e.msSymbol=1]="msSymbol",e[e.measure=2]="measure",e[e.singleStaff=3]="singleStaff",e[e.multipleStaves=4]="multipleStaves"})(pt||(pt={}));var O;(function(e){e[e.frontFixed=1]="frontFixed",e[e.rearFixed=2]="rearFixed",e[e.variable=3]="variable",e[e.span=4]="span"})(O||(O={}));var P;(function(e){e[e.single=1]="single",e[e.final=2]="final",e[e.reverseFinal=3]="reverseFinal",e[e.startRepeatSign=4]="startRepeatSign",e[e.endRepeatSign=5]="endRepeatSign"})(P||(P={}));var yt;(function(e){e[e.highlight=1]="highlight"})(yt||(yt={}));var St;(function(e){e[e.normal=1]="normal",e[e.edit=2]="edit"})(St||(St={}));var bt;(function(e){e[e.note=1]="note",e[e.rest=2]="rest"})(bt||(bt={}));var Qe;(function(e){e[e.left=1]="left"})(Qe||(Qe={}));function ln(e){return e>=x.eighth}function cn(e){return e!==x.whole}function zt(e,t){let n=f.None;if(!e.msSymbolArray)return{accidental:n,measureAccidental:f.None};const o=W(e.index,t),i=o.msSymbolContainer,a=o.measure,l=o.singleStaff,d=a==null?void 0:a.index.measureIndex,u=i==null?void 0:i.index.msSymbolContainerIndex;if(!i||!a||!l||u==null||d==null)return console.error("索引数据查找出错,获取符号的谱号失败"),{accidental:n,measureAccidental:f.None};let c=f.None;for(let s=d;s>=0;s--){const m=l.measureArray[s];if(s===d)for(let g=u;g>=0;g--){const y=m.msSymbolContainerArray[g].msSymbolArray[0];if(h.Accidental===y.type){c=y.accidental;break}}else for(let g=m.msSymbolContainerArray.length-1;g>=0;g--){const y=m.msSymbolContainerArray[g].msSymbolArray[0];if(h.Accidental===y.type){c=y.accidental;break}}}for(let s of e.msSymbolArray)if(s.type===h.Accidental)return n=s.accidental,{accidental:n,measureAccidental:c};return{accidental:n,measureAccidental:c}}function Tt(e,t){const n=W(e.index,t),o=n.msSymbolContainer,i=n.measure,a=n.singleStaff,l=i==null?void 0:i.index.measureIndex,d=o==null?void 0:o.index.msSymbolContainerIndex;if(!o||!i||!a||d==null||l==null)return console.error("索引数据查找出错,获取符号的谱号失败"),S.C;for(let u=l;u>=0;u--){const c=a.measureArray[u];if(u===l)for(let s=d;s>=0;s--){const g=c.msSymbolContainerArray[s].msSymbolArray[0];if(h.KeySignature===g.type)return g.keySignature}else for(let s=c.msSymbolContainerArray.length-1;s>=0;s--){const g=c.msSymbolContainerArray[s].msSymbolArray[0];if(h.KeySignature===g.type)return g.keySignature}}return S.C}function nt(e,t){const n=W(e.index,t),o=n.msSymbolContainer,i=n.measure,a=n.singleStaff,l=i==null?void 0:i.index.measureIndex,d=o==null?void 0:o.index.msSymbolContainerIndex;if(!o||!i||!a||d==null||l==null)return console.error("索引数据查找出错,获取符号的谱号失败"),L.Treble;for(let u=l;u>=0;u--){const c=a.measureArray[u];if(u===l)for(let s=d;s>=0;s--){const g=c.msSymbolContainerArray[s].msSymbolArray[0];if(h.Clef===g.type||h.Clef_f===g.type)return g.clef}else for(let s=c.msSymbolContainerArray.length-1;s>=0;s--){const g=c.msSymbolContainerArray[s].msSymbolArray[0];if(h.Clef===g.type||h.Clef_f===g.type)return g.clef}}return L.Treble}function un(e,{level:t="symbol",order:n="asc",callback:o}){const i=l=>n==="asc"?[...Array(l).keys()]:[...Array(l).keys()].reverse(),a=e.multipleStavesArray;for(const l of i(a.length)){const d=a[l];if(t==="multipleStaves"){if(o({multipleStavesIndex:l,singleStaffIndex:-1,measureIndex:-1,multipleStaves:d}))return;continue}for(const u of i(d.singleStaffArray.length)){const c=d.singleStaffArray[u];if(t==="singleStaff"){if(o({multipleStavesIndex:l,singleStaffIndex:u,measureIndex:-1,multipleStaves:d,singleStaff:c}))return;continue}for(const s of i(c.measureArray.length)){const m=c.measureArray[s];if(t==="measure"){if(o({multipleStavesIndex:l,singleStaffIndex:u,measureIndex:s,multipleStaves:d,singleStaff:c,measure:m}))return;continue}for(const g of i(m.msSymbolContainerArray.length)){const p=m.msSymbolContainerArray[g];if(t==="container"){if(o({multipleStavesIndex:l,singleStaffIndex:u,measureIndex:s,msSymbolContainerIndex:g,multipleStaves:d,singleStaff:c,measure:m,msSymbolContainer:p}))return;continue}for(const y of i(p.msSymbolArray.length)){const v=p.msSymbolArray[y];if(o({multipleStavesIndex:l,singleStaffIndex:u,measureIndex:s,msSymbolContainerIndex:g,msSymbolIndex:y,multipleStaves:d,singleStaff:c,measure:m,msSymbolContainer:p,msSymbol:v}))return}}}}}}function dn(e,t,n,o){if(t.multipleStavesIndex==null||e.multipleStavesIndex==null||e.measureIndex==null||t.measureIndex==null||e.singleStaffIndex==null)return console.error("索引元素有误,无法正确执行traverseMeasure");const i=e.singleStaffIndex,a=W(e,n),l=W(t,n),d=a.singleStaff;l.singleStaff;const u=a.multipleStaves,c=l.multipleStaves;if(u===c){if(d==null||u==null)return console.error("索引元素有误,无法正确执行traverseMeasure");for(let s=e.measureIndex;s<=t.measureIndex;s++){const m=d.measureArray[s];o(m,d,u)}}else for(let s=e.multipleStavesIndex;s<=t.multipleStavesIndex;s++){const m=n.multipleStavesArray[s],g=m.singleStaffArray[i];if(u===m)for(let p=e.measureIndex;p<g.measureArray.length;p++){const y=g.measureArray[p];o(y,g,m)}else if(u!==m&&c!==m)for(let p=0;p<g.measureArray.length;p++){const y=g.measureArray[p];o(y,g,m)}else if(c===m&&u!==c)for(let p=0;p<t.measureIndex;p++){const y=g.measureArray[p];o(y,g,m)}}}function mn(e){e.multipleStavesArray.forEach((t,n)=>{t.index={multipleStavesIndex:n,singleStaffIndex:-1,measureIndex:-1,msSymbolContainerIndex:-1,msSymbolIndex:-1},gn(t)})}function gn(e){const t=e.index.multipleStavesIndex;if(t==null)return console.error("数据有误,复谱表索引生成失败");e.singleStaffArray.forEach((n,o)=>{n.index={multipleStavesIndex:t,singleStaffIndex:o,measureIndex:-1,msSymbolContainerIndex:-1,msSymbolIndex:-1},Ot(n)})}function Ot(e){const t=e.index.singleStaffIndex,n=e.index.multipleStavesIndex;if(n==null||t==null)return console.error("数据有误,单谱表索引生成失败");e.measureArray.forEach((o,i)=>{o.index={multipleStavesIndex:n,singleStaffIndex:t,measureIndex:i,msSymbolContainerIndex:-1,msSymbolIndex:-1},ze(o)})}function ze(e){const t=e.index.singleStaffIndex,n=e.index.multipleStavesIndex,o=e.index.measureIndex;if(n==null||t==null||o==null)return console.error("数据有误,符号容器索引生成失败");e.msSymbolContainerArray.forEach((i,a)=>{i.index={multipleStavesIndex:n,singleStaffIndex:t,measureIndex:o,msSymbolContainerIndex:a,msSymbolIndex:-1},Xe(i)})}function Xe(e){const t=e.index.singleStaffIndex,n=e.index.multipleStavesIndex,o=e.index.measureIndex,i=e.index.msSymbolContainerIndex;if(n==null||t==null||o==null||i==null)return console.error("数据有误,符号索引生成失败");e.msSymbolArray.forEach((a,l)=>{const d={multipleStavesIndex:n,singleStaffIndex:t,measureIndex:o,msSymbolContainerIndex:i,msSymbolIndex:l};a.index=d,ot(a)})}function ot(e,t){let n=null;n=e,n.msSymbolArray.forEach((o,i)=>{o.index=n.index,o.msSymbolArray.length>0&&ot(o)})}function fn(e){const t=e.map;for(let n=0;n<e.multipleStavesArray.length;n++){const o=e.multipleStavesArray[n];t[o.id]=o;for(let i=0;i<o.singleStaffArray.length;i++){const a=o.singleStaffArray[i];t[a.id]=a;for(let l=0;l<a.measureArray.length;l++){const d=a.measureArray[l];t[d.id]=d;for(let u=0;u<d.msSymbolContainerArray.length;u++){const c=d.msSymbolContainerArray[u];t[c.id]=c;for(let s=0;s<c.msSymbolArray.length;s++){const m=c.msSymbolArray[s];t[m.id]=m}}}}}}function V(e){if(e.region===M.Main)return(e.index-1)*2+(e.type===F.Space?1:0);if(e.region===M.Lower)return-(e.index*2)+(e.type===F.Space?1:0);if(e.region===M.Upper)return 8+e.index*2+(e.type===F.Space?1:0);throw new Error("Invalid StaffRegion")}function Ke(e){if(e>=0&&e<=9){const t=e%2===0?F.Line:F.Space,n=Math.floor(e/2)+1,o=Math.floor(e/2)+1;return{region:M.Main,type:t,index:t===F.Line?n:o}}if(e<0){const t=Math.abs(e),n=t%2===0?F.Line:F.Space,o=Math.floor((t+1)/2);return{region:M.Lower,type:n,index:o}}if(e>=10){const t=e-10,n=t%2===0?F.Line:F.Space,o=Math.floor(t/2)+1;return{region:M.Upper,type:n,index:o}}throw new Error("Invalid index for StaffRegion")}function vt(e){return typeof e=="number"?e<=3?"up":"down":V(e)<=3?"up":"down"}function je(e,t){const n=t[e];if(n)return n;console.warn("此id元素不存在")}function W(e,t){const n={multipleStaves:null,singleStaff:null,measure:null,msSymbolContainer:null,msSymbol:null};if(e.multipleStavesIndex!==-1){const o=t.multipleStavesArray[e.multipleStavesIndex];if(n.multipleStaves=o,e.singleStaffIndex!==-1){const i=o.singleStaffArray[e.singleStaffIndex];if(n.singleStaff=i,e.measureIndex!==-1){const a=i.measureArray[e.measureIndex];if(n.measure=a,e.msSymbolContainerIndex!==-1){const l=a.msSymbolContainerArray[e.msSymbolContainerIndex];n.msSymbolContainer=l,e.msSymbolIndex!==-1&&(n.msSymbol=l.msSymbolArray[e.msSymbolIndex])}}}}return n}function hn(e,t){const n=new Set;return e.bindingEndId.forEach(o=>{n.add(o)}),e.bindingStartId.forEach(o=>{n.add(o)}),e.msSymbolContainerArray.forEach((o,i)=>{o.msSymbolArray.forEach((a,l)=>{a.bindingEndId.forEach(d=>{n.add(d)}),a.bindingStartId.forEach(d=>{n.add(d)})})}),n}function rt(e,t){let n=new Set;return e.measureArray.forEach(o=>{const i=hn(o);n=new Set([...n,...i])}),n}function it(e,t){t.spanSymbolArray.forEach(n=>{e.has(n.id)&&(n.vueKey=Date.now())})}function De(e,t){const n=W(e.index,t).msSymbol;return n||(console.error("获取主符号失败"),e)}function Be(e,t){const n=[];return e===-1?[]:(t.msSymbolContainerArray.forEach(o=>{o.msSymbolArray.forEach(i=>{if(i.type===h.NoteHead&&i.beamId===e){const a={beamId:i.beamId,note:i,region:i.region,chronaxie:i.chronaxie};n.push(a)}})}),n)}function Pt(e,t){e.id=t.id,e.bindingEndId=t.bindingEndId,e.bindingStartId=t.bindingStartId}function G(e={}){const t={id:Math.random()*Date.now()+1,msTypeName:de.MsSymbol,index:{multipleStavesIndex:-1,singleStaffIndex:-1,measureIndex:-1,msSymbolContainerIndex:-1,msSymbolIndex:-1},options:{highlight:!1,highlightColor:"red",color:"black"},bindingStartId:[],bindingEndId:[],msSymbolArray:[],vueKey:Math.random()*Date.now()};switch(e.type){case h.NoteHead:{const n=e.region||{region:M.Main,type:F.Line,index:1};if(!e.chronaxie||![x.whole].includes(e.chronaxie)){const o=G({type:h.NoteStem,direction:vt(V(n))});t.msSymbolArray.push(o)}if(e.chronaxie&&![x.whole,x.half,x.quarter].includes(e.chronaxie)){const o=G({type:h.NoteTail,chronaxie:e.chronaxie||x.quarter,direction:vt(n)});t.msSymbolArray.push(o)}return{...t,beamId:-1,type:h.NoteHead,region:n,chronaxie:e.chronaxie||x.quarter}}case h.NoteDot:return{...t,type:h.NoteDot,octave:e.octave??4};case h.NoteNumber:{e.chronaxie&&[x.whole,x.half].includes(e.chronaxie)&&(console.error("noteNumber的时值最大为四分音符"),e.chronaxie=x.quarter);const n={...t,type:h.NoteNumber,solmization:e.solmization||A.DO,chronaxie:e.chronaxie||x.quarter,octave:e.octave??4,beamId:-1};if(e.chronaxie&&![x.quarter].includes(e.chronaxie)){const o=G({type:h.ChronaxieReducingLine,chronaxie:e.chronaxie});t.msSymbolArray.push(o)}return n}case h.ChronaxieIncreasingLine:return{...t,type:h.ChronaxieIncreasingLine};case h.ChronaxieReducingLine:return{...t,type:h.ChronaxieReducingLine,chronaxie:e.chronaxie??x.eighth};case h.Rest:return{...t,type:h.Rest,chronaxie:e.chronaxie||x.quarter};case h.BarLine:{const n=e.barLineType??P.single;return P.endRepeatSign===n||P.startRepeatSign===n?{...t,type:h.BarLine,barLineType:n,loopCount:2}:{...t,type:h.BarLine,barLineType:n}}case h.BarLine_f:{const n=e.barLineType??P.single;return P.endRepeatSign===n||P.startRepeatSign===n?{...t,type:h.BarLine_f,barLineType:n,loopCount:2}:{...t,type:h.BarLine_f,barLineType:n}}case h.NoteStem:return{...t,direction:e.direction||"up",type:h.NoteStem};case h.NoteTail:return{...t,type:h.NoteTail,chronaxie:e.chronaxie||x.quarter,beamType:Qe.left,direction:e.direction||"up"};case h.Clef_f:return{...t,type:h.Clef_f,clef:e.clef||L.Treble};case h.Clef:return{...t,type:h.Clef,clef:e.clef||L.Treble};case h.KeySignature:return{...t,type:h.KeySignature,keySignature:e.keySignature||S.C};case h.TimeSignature:return{...t,type:h.TimeSignature,timeSignature:e.timeSignature||{beat:1,chronaxie:4}};case h.Accidental:return{...t,type:h.Accidental,accidental:e.accidental||f.Sharp};default:return console.error("type不被识别,符号模版返回noteHead"),{...t,type:h.NoteHead,region:e.region||{region:M.Main,type:F.Line,index:1},chronaxie:e.chronaxie||x.quarter,beamId:-1}}}function Te(e={}){return{id:Math.random()*Date.now()+2,msSymbolArray:[],type:e.type||O.variable,index:{multipleStavesIndex:-1,singleStaffIndex:-1,measureIndex:-1,msSymbolContainerIndex:-1,msSymbolIndex:-1},bindingStartId:[],bindingEndId:[],options:{highlight:!1,highlightColor:"red",color:"black"},vueKey:Math.random()*Date.now(),msTypeName:de.MsSymbolContainer}}function at(e,t){t.map[e.id]=e}function st(e,t){t.map[e]&&delete t.map[e]}function Se(e,t,n){t.msSymbolArray.push(e),ot(t),at(e,n)}function be(e,t,n,o="after"){if(t.msTypeName===de.MsSymbol){if(typeof o=="number"){console.error("以符号为定位元素添加符号时,position只可以传after或before");return}const l=W(t.index,n).msSymbolContainer,d=W(t.index,n).msSymbol;if(!l)return console.error("符号容器不存在,符号添加失败");if(!d)return console.error("符号不存在,符号添加失败");const u=l.msSymbolArray,c=u.findIndex(s=>s===d);o==="before"?u.splice(c,0,e):u.splice(c+1,0,e),Xe(l)}else if(t.msTypeName===de.MsSymbolContainer){const l=t;if(!l)return console.error("小节不存在,符号容器添加失败");const d=l.msSymbolArray;if(o===-1||typeof o=="string")d.push(e);else if(o>=0&&o<=d.length)d.splice(o,0,e);else{console.error("索引有误,符号添加失败");return}Xe(l)}if(at(e,n),!("index"in t))return console.error("当前选中对象缺少index,符号添加失败");const i=W(t.index,n).singleStaff;if(!i)return console.error("单谱表查找出错,符号添加失败");Ot(i);const a=rt(i);it(a,n)}function ce(e,t,n,o="after"){if(t.msTypeName===de.MsSymbolContainer){if(typeof o=="number"){console.error("以符号容器为定位元素添加符号容器时,position只可以传after或before");return}const i=W(t.index,n).measure,a=W(t.index,n).msSymbolContainer;if(!i)return console.error("小节不存在,符号容器添加失败");if(!a)return console.error("符号容器不存在,符号容器添加失败");const l=i.msSymbolContainerArray,d=l.findIndex(u=>u===a);o==="before"?l.splice(d,0,e):l.splice(d+1,0,e),ze(i)}else if(t.msTypeName===de.Measure){const i=t;if(!i)return console.error("小节不存在,符号容器添加失败");const a=i.msSymbolContainerArray;if(o===-1||typeof o=="string")a.push(e);else if(o>=0&&o<=a.length)a.splice(o,0,e);else{console.error("索引有误,符号容器添加失败");return}ze(i)}at(e,n)}function pn(e,t){const n=W(e.index,t),o=n.measure,i=n.singleStaff;if(!o||!i)return console.error("索引数据出错,符号容器移除失败");const a=o.msSymbolContainerArray,l=a.findIndex(u=>u===e);if(l===-1)return console.error("找不到目标符号容器");a.splice(l,1),st(e.id,t),ze(o),Sn(e,t);const d=rt(i);it(d,t)}function yn(e,t){for(let n=t.spanSymbolArray.length-1;n>=0;n--){const o=t.spanSymbolArray[n];(e.bindingStartId.includes(o.id)||e.bindingEndId.includes(o.id))&&(Gt(o,t),st(o.id,t))}}function Sn(e,t){e.msSymbolArray.forEach(n=>{yn(n,t)});for(let n=t.spanSymbolArray.length-1;n>=0;n--){const o=t.spanSymbolArray[n];(e.bindingStartId.includes(o.id)||e.bindingEndId.includes(o.id))&&(Gt(o,t),st(o.id,t))}}function Gt(e,t){const n=t.spanSymbolArray.indexOf(e),o=e.startTargetId,i=e.endTargetId;t.spanSymbolArray.splice(n,1);const a=e.id,l=t.map[o];l&&"bindingStartId"in l&&l.bindingStartId.indexOf(a)!==-1&&l.bindingStartId.splice(n,1);const d=t.map[i];d&&"bindingEndId"in d&&d.bindingEndId.indexOf(a)!==-1&&d.bindingEndId.splice(n,1)}function Je(e,t){t.direction=e,t.vueKey=Math.random()*Date.now()}function _e(e,t){t.direction=e,t.vueKey=Math.random()*Date.now()}function bn(e,t,n){const o=[];let i="up",a=4,l=!1;for(const d in t.msSymbolContainerArray){const u=t.msSymbolContainerArray[d];for(const c in u.msSymbolArray){const s=u.msSymbolArray[c];if(s.type===h.NoteHead&&![x.whole,x.half,x.quarter].includes(s.chronaxie)){const m=Math.abs(V(s.region)-4),g=Math.abs(a-4);m>g&&(a=V(s.region));const p=s.msSymbolArray.find(v=>v.type===h.NoteStem),y=s.msSymbolArray.find(v=>v.type===h.NoteTail);y&&p&&s.beamId===e&&(o.push({noteStem:p,noteTail:y}),l=!0)}else if(l)break}}i=a>=3?"down":"up";for(const d in o){const u=o[d].noteStem,c=o[d].noteTail;Je(i,u),_e(i,c)}}T.C,f.None,T.C,f.Sharp,T.D,f.None,T.D,f.Sharp,T.E,f.None,T.F,f.None,T.F,f.Sharp,T.G,f.None,T.G,f.Sharp,T.A,f.None,T.A,f.Sharp,T.B,f.None;const vn={[S.Cb]:59,[S.Gb]:66,[S.Db]:61,[S.Ab]:68,[S.Eb]:63,[S.Bb]:70,[S.F]:65,[S.C]:60,[S.G]:67,[S.D]:62,[S.A]:69,[S.E]:64,[S.B]:71,"F#":66,"C#":61};function xn(e,t,n,o){const i=vn[n];let l={[A.DO]:0,[A.RE]:2,[A.MI]:4,[A.FA]:5,[A.SOL]:7,[A.LA]:9,[A.TI]:11}[e];switch(t){case f.Sharp:l+=1;break;case f.Flat:l-=1;break;case f.DoubleSharp:l+=2;break;case f.DoubleFlat:l-=2;break;case f.None:break}return i+(o-4)*12+l}f.Natural,f.Sharp,f.Flat;f.Natural,f.Flat,f.Sharp;function wn(e,t,n=f.Sharp){const o=["C","D","E","F","G","A","B"],i={0:["C",f.None],1:["C",f.Sharp],2:["D",f.None],3:["D",f.Sharp],4:["E",f.None],5:["F",f.None],6:["F",f.Sharp],7:["G",f.None],8:["G",f.Sharp],9:["A",f.None],10:["A",f.Sharp],11:["B",f.None]},a={0:["C",f.None],1:["D",f.Flat],2:["D",f.None],3:["E",f.Flat],4:["E",f.None],5:["F",f.None],6:["G",f.Flat],7:["G",f.None],8:["A",f.Flat],9:["A",f.None],10:["B",f.Flat],11:["B",f.None]},l=n===f.Sharp?i:a,d=(e%12+12)%12,[u,c]=l[d],s=Math.floor(e/12)-1,m=o.indexOf(u),g=s*7+m;function p(H,Q){const ie=o.indexOf(H);return Q*7+ie}const y={[L.Treble]:{diatonic:p("G",4),staffStep:2},[L.MezzoSoprano]:{diatonic:p("C",4),staffStep:2},[L.Alto]:{diatonic:p("C",4),staffStep:4},[L.Tenor]:{diatonic:p("C",4),staffStep:6},[L.BaritoneF]:{diatonic:p("F",3),staffStep:4},[L.BaritoneC]:{diatonic:p("C",4),staffStep:8},[L.Bass]:{diatonic:p("F",3),staffStep:6},[L.Subbass]:{diatonic:p("F",2),staffStep:6}},v=y[t]??y[L.Treble],k=g-v.diatonic+v.staffStep;let w,N,C;if(k>=0&&k<=8)w=M.Main,k%2===0?(N=F.Line,C=Math.floor(k/2)+1):(N=F.Space,C=Math.floor((k+1)/2));else if(k<0){w=M.Lower;const H=-k;H%2===1?(N=F.Space,C=Math.floor((H+1)/2)):(N=F.Line,C=H/2)}else{w=M.Upper;const H=k-8;H%2===1?(N=F.Space,C=Math.floor((H+1)/2)):(N=F.Line,C=H/2)}return{staffRegion:{region:w,type:N,index:C},accidental:c}}const In={[L.Treble]:{[M.Main]:64,[M.Upper]:79,[M.Lower]:62},[L.MezzoSoprano]:{[M.Main]:57,[M.Upper]:72,[M.Lower]:55},[L.Alto]:{[M.Main]:53,[M.Upper]:69,[M.Lower]:52},[L.Tenor]:{[M.Main]:50,[M.Upper]:65,[M.Lower]:48},[L.BaritoneF]:{[M.Main]:47,[M.Upper]:62,[M.Lower]:45},[L.BaritoneC]:{[M.Main]:53,[M.Upper]:62,[M.Lower]:52},[L.Bass]:{[M.Main]:43,[M.Upper]:60,[M.Lower]:41},[L.Subbass]:{[M.Main]:28,[M.Upper]:43,[M.Lower]:26}},Mn=[2,2,1,2,2,2,1],Cn={0:0,2:1,4:2,5:3,7:4,9:5,11:6};function kn(e,t){return t=(t%e.length+e.length)%e.length,e.slice(t).concat(e.slice(0,t))}function An(e,t,n){const o=In[n];if(!o||typeof o[M.Main]!="number")throw new Error(`No clef mapping for clef ${n}. please add clefMidiMap entry.`);const i=o[M.Main],{region:a,type:l,index:d}=e;if(d<1)throw new Error("StaffRegion.index should be >= 1");let u;if(a===M.Main)u=(d-1)*2+(l===F.Space?1:0);else if(a===M.Upper)u=8+(d-1)*2+(l===F.Space?1:2);else if(a===M.Lower)u=-((d-1)*2+(l===F.Space?1:2));else throw new Error("Unknown StaffRegionEnum: "+a);const c=(i%12+12)%12;let s=Cn[c];s===void 0&&(s=0);const m=kn(Mn,s);let g=0;if(u>0)for(let y=0;y<u;y++)g+=m[y%m.length];else if(u<0){const y=Math.abs(u);for(let v=0;v<y;v++)(m.length-1-v)%m.length,g-=m[(m.length-1-v%7)%m.length]}let p=0;switch(t){case f.Sharp:p=1;break;case f.Flat:p=-1;break;case f.DoubleSharp:p=2;break;case f.DoubleFlat:p=-2;break;default:p=0}return i+g+p}f.Natural,f.Sharp,f.Flat;f.Natural,f.Flat,f.Sharp;const Nn={[S.Cb]:59,[S.Gb]:66,[S.Db]:61,[S.Ab]:68,[S.Eb]:63,[S.Bb]:70,[S.F]:65,[S.C]:60,[S.G]:67,[S.D]:62,[S.A]:69,[S.E]:64,[S.B]:71,"F#":66,"C#":61},Ln={0:{sharp:{solmization:A.DO,accidental:f.None},flat:{solmization:A.DO,accidental:f.None}},1:{sharp:{solmization:A.DO,accidental:f.Sharp},flat:{solmization:A.RE,accidental:f.Flat}},2:{sharp:{solmization:A.RE,accidental:f.None},flat:{solmization:A.RE,accidental:f.None}},3:{sharp:{solmization:A.RE,accidental:f.Sharp},flat:{solmization:A.MI,accidental:f.Flat}},4:{sharp:{solmization:A.MI,accidental:f.None},flat:{solmization:A.MI,accidental:f.None}},5:{sharp:{solmization:A.FA,accidental:f.None},flat:{solmization:A.FA,accidental:f.None}},6:{sharp:{solmization:A.FA,accidental:f.Sharp},flat:{solmization:A.SOL,accidental:f.Flat}},7:{sharp:{solmization:A.SOL,accidental:f.None},flat:{solmization:A.SOL,accidental:f.None}},8:{sharp:{solmization:A.SOL,accidental:f.Sharp},flat:{solmization:A.LA,accidental:f.Flat}},9:{sharp:{solmization:A.LA,accidental:f.None},flat:{solmization:A.LA,accidental:f.None}},10:{sharp:{solmization:A.LA,accidental:f.Sharp},flat:{solmization:A.TI,accidental:f.Flat}},11:{sharp:{solmization:A.TI,accidental:f.None},flat:{solmization:A.TI,accidental:f.None}}};function Dn(e,t,n=f.Sharp){const o=Nn[t],i=e-o,a=(i%12+12)%12,l=Math.floor(i/12)+4,d=Ln[a],u=n===f.Sharp?d.sharp:d.flat;return{solmization:u.solmization,accidental:u.accidental,octave:l}}function Bn(e){e.showMode=Ne.numberNotation;for(let t=0;t<e.multipleStavesArray.length;t++){const n=e.multipleStavesArray[t];for(let o=0;o<n.singleStaffArray.length;o++){const i=n.singleStaffArray[o];for(let a=0;a<i.measureArray.length;a++){const l=i.measureArray[a];for(let d=0;d<l.msSymbolContainerArray.length;d++){const u=l.msSymbolContainerArray[d];for(let c=0;c<u.msSymbolArray.length;c++){const s=u.msSymbolArray[c];if(s.type===h.NoteHead){const m=G({type:h.NoteNumber,chronaxie:x.quarter});Pt(m,s);const{accidental:g,measureAccidental:p}=zt(s,e);let y=g;p&&y===f.Natural&&(y=p);const v=nt(s,e),k=Tt(s,e),w=An(s.region,y,v),N=Dn(w,k);if(m.solmization=N.solmization,m.octave=N.octave,m.msSymbolArray=[],[x.whole,x.half,x.quarter].includes(s.chronaxie)||(m.chronaxie=s.chronaxie),u.msSymbolArray.splice(c,1),be(m,u,e,c),N.octave!==4){const C=G({type:h.NoteDot,octave:N.octave});Se(C,m,e)}if(![x.whole,x.half,x.quarter].includes(m.chronaxie)){const C=G({type:h.ChronaxieReducingLine,chronaxie:m.chronaxie});Se(C,m,e)}if(N.accidental){const C=G({type:h.Accidental,accidental:N.accidental});Se(C,m,e)}}if(s.type===h.NoteHead){if(s.chronaxie===x.whole){for(let m=0;m<3;m++){const g=G({type:h.ChronaxieIncreasingLine}),p=Te({type:O.variable});ce(p,u,e,"after"),be(g,p,e,"after")}d+=3}else if(s.chronaxie===x.half){const m=G({type:h.ChronaxieIncreasingLine}),g=Te({type:O.variable});ce(g,u,e,"after"),be(m,g,e,"after"),d+=1}}}}}}}}function Hn(e){var t;for(let n=0;n<e.multipleStavesArray.length;n++){const o=e.multipleStavesArray[n];for(let i=0;i<o.singleStaffArray.length;i++){const a=o.singleStaffArray[i];for(let l=0;l<a.measureArray.length;l++){const d=a.measureArray[l];for(let u=0;u<d.msSymbolContainerArray.length;u++){const c=d.msSymbolContainerArray[u];for(let s=0;s<c.msSymbolArray.length;s++){const m=c.msSymbolArray[s];if(m.type===h.ChronaxieIncreasingLine){pn(c,e),u--;continue}if(m.type===h.NoteNumber){const g=G({type:h.NoteHead});Pt(g,m);const{accidental:p,measureAccidental:y}=zt(m,e);let v=p;y&&v===f.Natural&&(v=y);const k=nt(m,e),w=Tt(m,e),N=xn(m.solmization,v,w,m.octave),C=wn(N,k);if(g.region=C.staffRegion,g.vueKey=Date.now(),g.msSymbolArray=[],m.chronaxie===x.quarter){let B=0;for(let H=u+1;H<d.msSymbolContainerArray.length&&((t=d.msSymbolContainerArray[H])==null?void 0:t.msSymbolArray[0]).type===h.ChronaxieIncreasingLine;H++)B++;B===0?g.chronaxie=x.quarter:B===1?g.chronaxie=x.half:B===3&&(g.chronaxie=x.whole)}else g.chronaxie=m.chronaxie;if(c.msSymbolArray.splice(s,1),be(g,c,e,s),C.accidental){const B=G({type:h.Accidental,accidental:C.accidental});Se(B,g,e)}if(cn(g.chronaxie)){const B=G({type:h.NoteStem});B.index=g.index,Se(B,g,e)}if(ln(g.chronaxie)){const B=G({type:h.NoteTail,chronaxie:g.chronaxie});Se(B,g,e)}}}}}}}e.showMode=Ne.standardStaff}L.Treble+"",L.MezzoSoprano+"",L.Alto+"",L.Tenor+"",L.BaritoneF+"",L.BaritoneC+"",L.Bass+"",L.Subbass+"";f.Natural,f.Sharp,f.Flat;f.Natural,f.Flat,f.Sharp;T.C+"",T.D+"",T.E+"",T.F+"",T.G+"",T.A+"",T.B+"";f.None+"",f.Sharp+"",f.Flat+"",f.DoubleFlat+"",f.DoubleSharp+"";const Rn={[S.Cb]:11,[S.Gb]:6,[S.Db]:1,[S.Ab]:8,[S.Eb]:3,[S.Bb]:10,[S.F]:5,[S.C]:0,[S.G]:7,[S.D]:2,[S.A]:9,[S.E]:4,[S.B]:11,[S["F#"]]:6,[S["C#"]]:1},q={[h.NoteHead]:{containerType:O.variable,aspectRatio:1,widthRatioConstant:1,category:z.singleMeasure,heightMultiplier:.25,space:{top:0,bottom:0,left:0,right:0}},[h.NoteNumber]:{containerType:O.variable,aspectRatio:1,widthRatioConstant:1,category:z.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[h.NoteDot]:{aspectRatio:{0:1/.7,1:1/.5,2:1/.3,3:1/.1,5:1/.1,6:1/.3,7:1/.5,8:1/.7},category:z.singleMeasure,widthRatioConstant:0,heightMultiplier:{0:.7,1:.5,2:.3,3:.1,5:.1,6:.3,7:.5,8:.7},space:{top:.1,bottom:.1,left:0,right:0}},[h.ChronaxieIncreasingLine]:{containerType:O.variable,aspectRatio:5,widthRatioConstant:1,category:z.singleMeasure,heightMultiplier:.1,space:{top:0,bottom:0,left:0,right:0}},[h.ChronaxieReducingLine]:{aspectRatio:{[x.eighth]:1/.1,[x.sixteenth]:1/.15,[x.thirtySecond]:1/.2,[x.sixtyFourth]:1/.25},category:z.singleMeasure,widthRatioConstant:0,heightMultiplier:{[x.eighth]:.1,[x.sixteenth]:.15,[x.thirtySecond]:.2,[x.sixtyFourth]:.25},space:{top:0,bottom:.1,left:0,right:0}},[h.NoteStem]:{aspectRatio:.05,category:z.singleMeasure,widthRatioConstant:0,heightMultiplier:.75,space:{top:0,bottom:0,left:0,right:0}},[h.NoteTail]:{aspectRatio:{[x.eighth]:.5,[x.sixteenth]:.5},category:z.singleMeasure,widthRatioConstant:0,heightMultiplier:.5,space:{top:0,bottom:0,left:0,right:0}},[h.Rest]:{containerType:O.variable,aspectRatio:.25,widthRatioConstant:1,category:z.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[h.Slur]:{category:z.multipleMeasure,space:{top:0,bottom:0,left:0,right:0}},[h.Tie]:{category:z.multipleMeasure,space:{top:0,bottom:0,left:0,right:0}},[h.DurationDot]:{aspectRatio:1,category:z.singleMeasure,widthRatioConstant:.5,heightMultiplier:.1,space:{top:0,bottom:0,left:0,right:0}},[h.Accidental]:{aspectRatio:1,category:z.singleMeasure,widthRatioConstant:.5,heightMultiplier:.4,space:{top:0,bottom:0,left:0,right:0}},[h.Tuplet]:{category:z.multipleMeasure,space:{top:0,bottom:0,left:0,right:0}},[h.Clef]:{containerType:O.rearFixed,aspectRatio:.6,category:z.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[h.Clef_f]:{containerType:O.frontFixed,aspectRatio:.6,category:z.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[h.TimeSignature]:{containerType:O.frontFixed,aspectRatio:.6,category:z.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[h.KeySignature]:{containerType:O.frontFixed,aspectRatio:{[S.Cb]:.4*7,[S.Gb]:.4*6,[S.Db]:.4*5,[S.Ab]:.4*4,[S.Eb]:.4*3,[S.Bb]:.4*2,[S.F]:.4,[S.C]:0,[S.G]:.4,[S.D]:.4*2,[S.A]:.4*3,[S.E]:.4*4,[S.B]:.4*5,[S["F#"]]:.4*6,[S["C#"]]:.4*7},category:z.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[h.BarLine]:{containerType:O.rearFixed,aspectRatio:{[P.single]:1/50,[P.final]:2/5,[P.reverseFinal]:2/5,[P.startRepeatSign]:3/5,[P.endRepeatSign]:3/5},category:z.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[h.BarLine_f]:{containerType:O.frontFixed,aspectRatio:{[P.single]:1/400,[P.final]:2/5,[P.reverseFinal]:2/5,[P.startRepeatSign]:3/5,[P.endRepeatSign]:3/5},category:z.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}}};function qt(e){let t=0;const n=q[e.type];if(!n)return console.error("符号没有匹配到正确的information",e),t;if("widthRatioConstant"in n&&(t+=n.widthRatioConstant),e.msSymbolArray)for(let o=0;o<e.msSymbolArray.length;o++){const i=e.msSymbolArray[o],a=q[i.type];if(!n)return console.error("子符号没有匹配到正确的information",i),t;"widthRatioConstant"in a&&(t+=a.widthRatioConstant)}return t}function lt(e){let t=0;if(e.msSymbolArray)for(let n=0;n<e.msSymbolArray.length;n++){const o=e.msSymbolArray[n],i=qt(o);t<i&&(t=i)}return t}function me(e,t){let n=0;for(let o=0;o<e.msSymbolContainerArray.length;o++){const i=e.msSymbolContainerArray[o];if(t&&i===t)return n;n+=lt(i)}return n===0?1:n}function Vt(e,t,n){let o=0;for(let i=0;i<e.measureArray.length;i++){const a=e.measureArray[i];o+=me(a,n)}return o}const jn=Object.freeze(Object.defineProperty({__proto__:null,getWidthConstantInMeasure:me,getWidthConstantInMsSymbol:qt,getWidthConstantInMsSymbolContainer:lt,getWidthConstantInSingleStaff:Vt},Symbol.toStringTag,{value:"Module"}));function Wn(e){const t=q[e.type];if("aspectRatio"in t&&typeof t.aspectRatio=="object"){if(e.type===b.KeySignature)return t.aspectRatio[e.keySignature];if(e.type===b.BarLine||e.type===b.BarLine_f)return t.aspectRatio[e.barLineType];if(e.type===b.NoteTail)return t.aspectRatio[e.chronaxie];if(e.type===b.NoteDot)return t.aspectRatio[e.octave];if(e.type===b.ChronaxieReducingLine)return t.aspectRatio[e.chronaxie]}return console.error("符号有误或符号不是复合aspectRatio类型"),0}function fe(e){if(!(e!=null&&e.type))return console.error("缺少符号传参,宽高比获取失败"),1;const t=q[e.type];return"aspectRatio"in t&&typeof t.aspectRatio=="number"?t.aspectRatio:"aspectRatio"in t&&typeof t.aspectRatio=="object"?Wn(e):(console.error("未找到符号对应宽高比"),1)}function Fn(e){const t=q[e.type];if("heightMultiplier"in t&&typeof t.heightMultiplier=="object"){if(e.type===b.ChronaxieReducingLine)return t.heightMultiplier[e.chronaxie];if(e.type===b.NoteDot)return t.heightMultiplier[e.octave]}return console.error("符号有误或符号不是复合heightMultiplier类型"),0}function Ge(e){if(!(e!=null&&e.type))return console.error("缺少符号传参,高度乘数获取失败"),1;const t=q[e.type];return"heightMultiplier"in t&&typeof t.heightMultiplier=="number"?t.heightMultiplier:"heightMultiplier"in t&&typeof t.heightMultiplier=="object"?Fn(e):1}function ke(e,t){const n=q[e.type],o=t.measureHeight;return{top:n.space.top*o,bottom:n.space.bottom*o,left:n.space.left*o,right:n.space.right*o}}const zn=Object.freeze(Object.defineProperty({__proto__:null,getHeightMultiplier:Ge,getMsSymbolAspectRatio:fe,getSpace:ke},Symbol.toStringTag,{value:"Module"}));function ct(e,t){return t*((V(e)-1)*2)/16}function ut(e,t){const n=W(e.index,t).msSymbol,o=t.measureHeight;switch(e==null?void 0:e.type){case h.NoteStem:return e.direction==="up"?o/8:-Z(e,t)+o/8;case h.NoteTail:{te(e,t);const i=n==null?void 0:n.msSymbolArray.find(u=>u.type===h.NoteStem);if(!i)return console.error("找不到符杠,符尾bottom计算失败"),0;const a=o*1/8,l=Z(e,t),d=Z(i,t);return e.direction==="up"?d-l+a:-d+a}case h.NoteDot:{q[h.NoteDot];const i=ke(e,t).bottom,a=ke(e,t).top,l=De(e,t);let d=0;const u=l.msSymbolArray.find(s=>s.type===h.ChronaxieReducingLine);let c=0;return u&&(c=ke(u,t).bottom,d=Z(u,t)),[0,1,2,3].includes(e.octave)?-Z(e,t)-i-d-c:[5,6,7,8].includes(e.octave)?o+a:0}case h.ChronaxieIncreasingLine:{const l=q[h.ChronaxieIncreasingLine].heightMultiplier*o;return o/2-l/2}case h.ChronaxieReducingLine:{q[h.ChronaxieReducingLine];const i=Ge(e),a=ke(e,t).bottom;return-(i*o)-a}default:return 0}}function te(e,t){var i;if(!e)return 0;const n=t.measureHeight,o=(i=W(e.index,t))==null?void 0:i.msSymbol;switch(o.type){case h.NoteHead:{if(!o||t.showMode===Ne.numberNotation)return 0;const a=o.region;return ct(a,n)}default:return 0}}function Ut(e,t,n=!0){let o=0;t.measureHeight;for(let i of e.msSymbolArray){const a=te(i,t),l=Z(i,t),d=a+l;n?o=Math.max(d,o):o=Math.max(a,o)}return o}function $t(e,t){let n=1e4;for(let o of e.msSymbolArray){const i=te(o,t);n=Math.min(i,n)}return n}function Oe(e,t,n=!0){let o=0;for(let i of e.msSymbolContainerArray){const a=Ut(i,t,n);o=Math.max(a,o)}return o}function Zt(e,t){let n=1e4;for(let o of e.msSymbolContainerArray){const i=$t(o,t);n=Math.min(i,n)}return n}function Tn(e,t,n=!0){let o=0;for(let i of e.measureArray){const a=Oe(i,t,n);o=Math.max(a,o)}return o}function On(e,t){let n=1e4;for(let o of e.measureArray){const i=Zt(o,t);n=Math.min(i,n)}return n}function Ye(e,t,n){let o=0;return un(t,{level:"multipleStaves",order:"asc",callback:({multipleStaves:i})=>{if(!i)return!0;o+=i.multipleStavesPaddingTop;for(let a of i.singleStaffArray){o+=a.singleStaffPaddingTop+t.measureHeight;for(let l of a.measureArray)if(l===e)return!0;o+=a.singleStaffPaddingBottom+a.singleStaffMarginBottom}return o+=i.multipleStavesPaddingBottom+i.multipleStavesMarginBottom,!1}}),n-o}const Pn=Object.freeze(Object.defineProperty({__proto__:null,getMaxMsSymbolBottomInMeasure:Oe,getMaxMsSymbolBottomInMsSymbolContainer:Ut,getMaxMsSymbolBottomInSingleStaff:Tn,getMeasureBottomToMusicScore:Ye,getMinMsSymbolBottomInMeasure:Zt,getMinMsSymbolBottomInMsSymbolContainer:$t,getMinMsSymbolBottomInSingleStaff:On,getMsSymbolBottomToSlot:ut,getSlotBottomToMeasure:te,staffRegionToBottom:ct},Symbol.toStringTag,{value:"Module"}));function Qt(e,t){const n=W(e.index,t).msSymbol,o=q[e==null?void 0:e.type],i=t.measureHeight;let a=0;if("heightMultiplier"in o){const c=o.heightMultiplier;a=i*c}const l=i*1/8,d=W(n.index,t).measure;if(!d)return console.error("索引找不到measure,符杠height计算失败"),0;const u=Be(n.beamId,d);if(n.beamId===-1||!u||u.length===0){const c=te(e,t);return e.direction==="up"?Math.max(a,Math.abs(c)+a-l):Math.max(a,Math.abs(c)-i+a+l)}else{const c=te(e,t);if(e.direction==="up"){const s=u.reduce((g,p)=>{const y=g,v=p.note;return V(y.region)<V(v.region)?p.note:g},u[0].note),m=te(s,t);return V(s.region)>0?s===n?a:-c+m+a:-c-l+a}else{const s=u.reduce((g,p)=>{const y=g,v=p.note;return V(y.region)>V(v.region)?v:g},u[0].note),m=te(s,t);return V(s.region)<8?s===n?a:c-m+a:c-i+l+a}}}function Z(e,t){q[e==null?void 0:e.type];const n=t.measureHeight,o=Ge(e);switch(e.type){case b.NoteStem:return Qt(e,t);default:return n*o}}const Gn=Object.freeze(Object.defineProperty({__proto__:null,getMsSymbolHeight:Z,getNoteStemHeight:Qt},Symbol.toStringTag,{value:"Module"}));function Ae(e,t){let n=0;for(let o=0;o<e.msSymbolArray.length;o++){const i=e.msSymbolArray[o],a=q[i.type];let l=0;"aspectRatio"in a&&typeof a.aspectRatio=="number"?l+=a.aspectRatio*t:"aspectRatio"in a&&typeof a.aspectRatio=="object"?i.type===h.KeySignature?l+=a.aspectRatio[i.keySignature]*t:(i.type===h.BarLine||i.type===h.BarLine_f)&&(l+=a.aspectRatio[i.barLineType]*t):console.error("符号的svg宽高比不存在"),n<l&&(n=l)}return n}function ne(e,t,n,o,i){const a=o.measureHeight;if(!e||!t)return console.error("缺少必要的参数,坐标计算出错"),0;let l=0;const d=e.type;if([O.frontFixed,O.rearFixed].includes(d))l=Ae(e,a);else{const u=_(t,a),c=me(t),s=lt(e);l=(ge(t,n,o,i)-u)/c*s}return l}function ge(e,t,n,o){const i=Vt(t,n.showMode),a=me(e),l=Xt(t,n.measureHeight,n.showMode),d=_(e,n.measureHeight),u=t.measureArray.length,c=o-l,s=c/i*n.widthDynamicRatio,m=c*(1-n.widthDynamicRatio)/u;return s*a+d+m}function _(e,t,n="all",o){let i=0;for(let a=0;a<e.msSymbolContainerArray.length;a++){const l=e.msSymbolContainerArray[a];if(o&&o===l)return i;const d=l.type;(n==="all"&&[O.frontFixed,O.rearFixed].includes(d)||n==="front"&&[O.frontFixed].includes(d)||n==="rear"&&[O.rearFixed].includes(d))&&(i+=Ae(l,t))}return i}function Xt(e,t,n,o="all",i){let a=0;return e.measureArray.forEach(l=>{a+=_(l,t,o,i)}),a}function dt(e,t,n,o,i,a,l){const d=fe(e),u=Z(e,a),c=Be(t.beamId,o);return c.length>1?t.id===c[0].note.id||t.id===c[c.length-1].note.id?ne(n,o,i,a,l)/2:ne(n,o,i,a,l):u*d}function ve(e,t,n,o,i,a){const l=i.measureHeight,d=fe(e),u=Ge(e),c=Z(e,i);switch(e==null?void 0:e.type){case h.NoteStem:return l*u*d;case h.NoteTail:{const s=W(e.index,i).msSymbol;return s?dt(e,s,t,n,o,i,a):(console.error("音符头索引失败,符尾宽度计算失败"),c*d)}default:return c*d}}function Le(e,t,n=!1){const o=n?e:De(e,t),i=fe(o);return Z(o,t)*i}const qn=Object.freeze(Object.defineProperty({__proto__:null,getMeasureWidth:ge,getMsSymbolContainerWidth:ne,getMsSymbolSlotWidth:Le,getMsSymbolWidth:ve,getNoteTailWidth:dt,getWidthFixedContainerWidth:Ae,getWidthFixedContainerWidthSumInMeasure:_,getWidthFixedContainerWidthSumInSingleStaff:Xt},Symbol.toStringTag,{value:"Module"})),Vn=["onMousedown"],Un=["onMousedown"],$n=r.defineComponent({__name:"measureContainer",props:{musicScore:{type:Object,default:{}},disabled:{type:Boolean,default:!0},width:{type:Number,default:1e3},height:{type:Number,default:800}},emits:["singleStaffMouseDown","multipleStavesMouseDown"],setup(e,{emit:t}){const n=e,o=t,i=r.computed(()=>u=>({"grid-template-rows":`repeat(${u.singleStaffArray.length},1fr)`,"padding-top":u.multipleStavesPaddingTop+"px","padding-bottom":u.multipleStavesPaddingBottom+"px","margin-bottom":u.multipleStavesMarginBottom+"px","pointer-events":n.disabled?"none":"auto",outline:"1px solid "+(u.options.highlight?u.options.highlightColor:u.options.color)})),a=r.computed(()=>(u,c)=>({"grid-template-columns":`repeat(${u.measureArray.length},1fr)`,"padding-top":u.singleStaffPaddingTop+"px","padding-bottom":u.singleStaffPaddingBottom+"px","margin-bottom":u.singleStaffMarginBottom+"px","pointer-events":n.disabled?"none":"auto",outline:"1px solid "+(u.options.highlight?u.options.highlightColor:u.options.color)})),l=r.computed(()=>(u,c,s)=>ge(u,c,n.musicScore,n.width)),d=r.computed(()=>(u,c,s)=>{let m={};return m.height=n.musicScore.measureHeight+"px",m.width=l.value(u,c,s)+"px",m.pointerEvents=n.disabled?"none":"auto",m});return(u,c)=>(r.openBlock(),r.createElementBlock("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.musicScore.multipleStavesArray,(s,m)=>(r.openBlock(),r.createElementBlock("div",{key:"multipleStaves"+m,style:r.normalizeStyle(i.value(s)),onMousedown:r.withModifiers(g=>o("multipleStavesMouseDown",g,s),["self"]),class:"multipleStaves"},[r.renderSlot(u.$slots,"multipleStaves",{},void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.singleStaffArray,(g,p)=>(r.openBlock(),r.createElementBlock("div",{key:"singleStaff"+p,style:r.normalizeStyle(a.value(g,s)),onMousedown:r.withModifiers(y=>o("singleStaffMouseDown",y,g),["self"]),class:"singleStaff"},[r.renderSlot(u.$slots,"singleStaff",{},void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(g.measureArray,(y,v)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(d.value(y,g,s)),class:"measureSlot",key:"measure"+v},[r.renderSlot(u.$slots,"default",{measure:y,measureIndex:v,singleStaff:g,singleStaffIndex:p,multipleStaves:s,multipleStavesIndex:m,measureWidth:l.value(y,g,s)},void 0,!0)],4))),128))],44,Un))),128))],44,Vn))),128))]))}}),Ue=X($n,[["__scopeId","data-v-98818cac"]]),Kt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20width='100'%20height='100'%3e%3cdefs%3e%3cmask%20id='hollowEllipseMask'%3e%3c!--%20背景为黑色(不可见),要保留的区域为白色(可见)%20--%3e%3crect%20width='100%25'%20height='100%25'%20fill='black'/%3e%3cellipse%20cx='50'%20cy='50'%20rx='50'%20ry='37.36'%20fill='white'/%3e%3cellipse%20cx='50'%20cy='50'%20rx='40'%20ry='27.36'%20fill='black'/%3e%3c/mask%3e%3c/defs%3e%3crect%20width='100%25'%20height='100%25'%20fill='black'%20mask='url(%23hollowEllipseMask)'/%3e%3c/svg%3e",Zn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20width='100'%20height='100'%3e%3cdefs%3e%3cmask%20id='hollowSlantedEllipseMask'%3e%3crect%20width='100%25'%20height='100%25'%20fill='black'/%3e%3c!--%20外椭圆,稍微倾斜%20--%3e%3cellipse%20cx='50'%20cy='50'%20rx='45'%20ry='32'%20fill='white'%20transform='rotate(-15%2050%2050)'/%3e%3c!--%20内椭圆,用于挖空%20--%3e%3cellipse%20cx='50'%20cy='50'%20rx='35'%20ry='22'%20fill='black'%20transform='rotate(-15%2050%2050)'/%3e%3c/mask%3e%3c/defs%3e%3c!--%20使用蒙版绘制一个斜切空心音符头%20--%3e%3crect%20width='100%25'%20height='100%25'%20fill='black'%20mask='url(%23hollowSlantedEllipseMask)'/%3e%3c/svg%3e",xt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20width='100'%20height='100'%3e%3cdefs%3e%3cmask%20id='hollowSlantedEllipseMask'%3e%3crect%20width='100%25'%20height='100%25'%20fill='black'/%3e%3c!--%20外椭圆,稍微倾斜%20--%3e%3cellipse%20cx='50'%20cy='50'%20rx='45'%20ry='32'%20fill='white'%20transform='rotate(-15%2050%2050)'/%3e%3c!--%20内椭圆,用于挖空%20--%3e%3c!--%20%3cellipse%20cx='50'%20cy='50'%20rx='35'%20ry='22'%20fill='black'%20transform='rotate(-15%2050%2050)'/%3e--%3e%3c/mask%3e%3c/defs%3e%3c!--%20使用蒙版绘制一个斜切空心音符头%20--%3e%3crect%20width='100%25'%20height='100%25'%20fill='black'%20mask='url(%23hollowSlantedEllipseMask)'/%3e%3c/svg%3e",wt="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+MTwvdGV4dD4NCjwvc3ZnPg0K",Qn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+MjwvdGV4dD4NCjwvc3ZnPg0K",Xn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+MzwvdGV4dD4NCjwvc3ZnPg0K",Kn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+NDwvdGV4dD4NCjwvc3ZnPg0K",Jn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+NTwvdGV4dD4NCjwvc3ZnPg0K",_n="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+NjwvdGV4dD4NCjwvc3ZnPg0K",Yn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+NzwvdGV4dD4NCjwvc3ZnPg0K",It="data:image/svg+xml,%3csvg%20viewBox='0%200%20100%20100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='50'%20/%3e%3c/svg%3e",Mt="data:image/svg+xml,%3csvg%20viewBox='0%200%20100%20300'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='250'%20r='50'%20/%3e%3c/svg%3e",En="data:image/svg+xml,%3csvg%20viewBox='0%200%20100%20500'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='250'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='450'%20r='50'%20/%3e%3c/svg%3e",Ct="data:image/svg+xml,%3csvg%20viewBox='0%200%20100%20700'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='250'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='450'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='650'%20r='50'%20/%3e%3c/svg%3e",$e="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20210%20210'%20style='enable-background:new%200%200%20210%20210;'%20xml:space='preserve'%3e%3cpolygon%20id='XMLID_830_'%20points='210,60%200,60%200,90%2030,90%2030,150%20180,150%20180,90%20210,90%20'/%3e%3c/svg%3e",eo="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20210%20210'%20style='enable-background:new%200%200%20210%20210;'%20xml:space='preserve'%3e%3cpolygon%20id='XMLID_819_'%20points='180,120%20180,60%2030,60%2030,120%200,120%200,150%20210,150%20210,120%20'/%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e",kt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20275.734%20275.734'%20style='enable-background:new%200%200%20275.734%20275.734;'%20xml:space='preserve'%3e%3cpath%20id='XMLID_831_'%20d='M149.83,130.355l42.148-41.852L103.474,0L82.261,21.213l42.143,42.143l-42.143,41.857l52.543,52.543%20c-25.63,6.826-44.571,30.229-44.571,57.979c0,33.084,26.916,60,60,60v-30c-16.542,0-30-13.457-30-30c0-16.541,13.458-30,30-30%20c7.948,0,15.438,3.078,21.089,8.664l0.063-0.063l0.877,0.877L193.474,174L149.83,130.355z'/%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e",to="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20180%20180'%20style='enable-background:new%200%200%20180%20180;'%20xml:space='preserve'%3e%3cg%20id='XMLID_19_'%3e%3cpath%20id='XMLID_833_'%20d='M119.771,30l-7.279,16.325C107.142,54.543,97.898,60,87.381,60c-5.458,0-10.575-1.472-14.988-4.029%20C81.351,50.781,87.381,41.099,87.381,30c0-16.569-13.43-30-30-30c-16.569,0-30,13.431-30,30c0,0.519,0.013,1.034,0.039,1.546%20C28.246,63.917,54.815,90,87.381,90c1.945,0,3.866-0.102,5.764-0.284L52.888,180h32.847l66.884-150H119.771z'/%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e",no="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20360%20360'%20style='enable-background:new%200%200%20360%20360;'%20xml:space='preserve'%3e%3cg%20id='XMLID_18_'%3e%3cpath%20id='XMLID_835_'%20d='M249.901,30l-6.545,14.678C238.211,53.806,228.456,60,217.251,60c-5.457,0-10.574-1.472-14.988-4.029%20c8.958-5.189,14.988-14.872,14.988-25.971c0-16.569-13.43-30-30-30c-16.569,0-30,13.431-30,30c0,0.519,0.014,1.034,0.039,1.546%20C158.116,63.917,184.686,90,217.251,90c2.038,0,4.05-0.112,6.036-0.312l-20.467,45.9c-5.27,8.626-14.741,14.411-25.569,14.411%20c-5.457,0-10.574-1.472-14.988-4.029c8.958-5.189,14.988-14.872,14.988-25.971c0-16.569-13.43-30-30-30c-16.569,0-30,13.431-30,30%20c0,0.519,0.014,1.034,0.039,1.546c0.826,32.37,27.395,58.454,59.961,58.454c1.989,0,3.956-0.099,5.896-0.29l-20.787,46.617%20C157.01,234.544,147.768,240,137.251,240c-5.457,0-10.574-1.472-14.988-4.029c8.958-5.189,14.988-14.872,14.988-25.971%20c0-16.569-13.43-30-30-30c-16.569,0-30,13.431-30,30c0,0.519,0.014,1.034,0.039,1.546C78.116,243.917,104.686,270,137.251,270%20c1.943,0,3.865-0.098,5.762-0.28L102.758,360h32.848L282.749,30H249.901z'/%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e",oo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='100'%3e%3c!--%20音符杆%20--%3e%3cline%20x1='5'%20y1='0'%20x2='5'%20y2='100'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Ee="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20395%20395'%20style='enable-background:new%200%200%20395%20395;'%20xml:space='preserve'%3e%3cpath%20id='XMLID_905_'%20d='M272.833,80h30l-45-80l-45,80h30v47.358l-90,22.714V90h-30v67.645l-30.666,7.739v60l30.666-7.739v52.478%20l-30.666,7.739v60l30.666-7.739V395h30v-72.449l90-22.714V365h30v-72.734l29.334-7.403v-60l-29.334,7.403v-52.479l29.334-7.403v-60%20l-29.334,7.403V80z%20M242.833,239.837l-90,22.714v-52.479l90-22.714V239.837z'/%3e%3c/svg%3e",et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20270%20270'%20style='enable-background:new%200%200%20270%20270;'%20xml:space='preserve'%3e%3cpath%20id='XMLID_920_'%20d='M174.642,156.642c-10.662-17.767-29.276-25.48-48.578-20.137c-2.379,0.659-4.681,1.507-6.901,2.507V0h-30%20v270h30c5.88-4.736,21.586-18.098,35.412-34.425C172.578,214.313,190.674,183.359,174.642,156.642z%20M131.944,215.875%20c-4.175,4.955-8.586,9.608-12.782,13.75V185c0-10.037,7.682-17.581,14.91-19.584c6.258-1.733,11.115,0.446,14.846,6.661%20C151.41,176.231,154.746,188.814,131.944,215.875z'/%3e%3c/svg%3e",ro="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20270%20270'%20style='enable-background:new%200%200%20270%20270;'%20xml:space='preserve'%3e%3cg%20id='XMLID_14_'%3e%3cpath%20id='XMLID_906_'%20d='M90,60V0H60v240l120-30v60h30V30L90,60z%20M180,150l-90,22.5V120l90-22.5V150z'/%3e%3c/g%3e%3c/svg%3e",At="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='800'%3e%3crect%20width='100'%20height='800'/%3e%3c/svg%3e",Nt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='500'%3e%3cstyle%3e%3c/style%3e%3cg%3e%3cline%20x1='50'%20x2='50'%20y1='0'%20y2='500'%20stroke-width='50'%20class='line'%20stroke='black'/%3e%3cline%20x1='150'%20x2='150'%20y1='0'%20y2='500'%20stroke-width='100'%20class='line'%20stroke='black'/%3e%3c/g%3e%3c/svg%3e",Lt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='500'%3e%3cstyle%3e%3c/style%3e%3cg%3e%3cline%20x1='150'%20x2='150'%20y1='0'%20y2='500'%20stroke-width='50'%20class='line'%20stroke='black'/%3e%3cline%20x1='50'%20x2='50'%20y1='0'%20y2='500'%20stroke-width='100'%20class='line'%20stroke='black'/%3e%3c/g%3e%3c/svg%3e",Dt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='500'%3e%3cg%3e%3ccircle%20cx='240'%20cy='180'%20r='30'%20fill='black'/%3e%3ccircle%20cx='240'%20cy='320'%20r='30'%20fill='black'/%3e%3cline%20x1='150'%20x2='150'%20y1='0'%20y2='500'%20stroke-width='50'%20class='line'%20stroke='black'/%3e%3cline%20x1='50'%20x2='50'%20y1='0'%20y2='500'%20stroke-width='100'%20class='line'%20stroke='black'/%3e%3c/g%3e%3c/svg%3e",Bt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='500'%3e%3cstyle%3e%3c/style%3e%3cg%3e%3ccircle%20cx='60'%20cy='180'%20r='30'%20fill='black'/%3e%3ccircle%20cx='60'%20cy='320'%20r='30'%20fill='black'/%3e%3cline%20x1='150'%20x2='150'%20y1='0'%20y2='500'%20stroke-width='50'%20class='line'%20stroke='black'/%3e%3cline%20x1='250'%20x2='250'%20y1='0'%20y2='500'%20stroke-width='100'%20class='line'%20stroke='black'/%3e%3c/g%3e%3c/svg%3e",io="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='30'%20height='50'%20viewBox='0%200%2025.8%2025.8'%20style='enable-background:new%200%200%2025.8%2025.8;'%20xml:space='preserve'%3e%3cg%20transform='translate(12.9,%2012.9)%20scale(1.67)%20translate(-12.9,%20-12.9)'%3e%3cpath%20style='fill:%23030104;'%20d='M16.681,13.4c-0.7-0.8-1.7-1.3-2.9-1.2c-0.1-0.2-0.5-2.2-0.5-2.2s1.4-2.1,1.7-2.5%20c1.5-2.4,1.6-4.3,0.7-6.2c-0.3-0.7-1.1-1.3-1.9-1.3c-0.6,0-1.1,0.5-1.4,1.1c-1,1.7-1,4.9-0.5,7.1c0,0-0.5,0.5-1,1.1%20c-1,1.1-2.1,2.3-2.5,3.9c-0.5,1.8-0.1,3.5,1,4.8c1.2,1.5,3,2.2,5.2,2c0.4,1.9,0.7,3.1,0.1,4.2c-0.2,0.4-0.6,0.8-1.3,0.8%20c-0.2,0-0.3,0-0.5-0.1c0.6-0.3,1.1-0.9,1.1-1.6c0-1-0.8-1.8-1.8-1.8c-1.7,0.1-1.8,1.8-1.8,1.8c0,0.6,0.2,1.2,0.6,1.6%20c0.5,0.5,1.3,0.9,2.2,0.9c1.1,0,2.2-0.4,2.6-2c0.4-1.3-0.3-3.4-0.4-4.1c1.1-0.5,2.1-2,2.2-3C17.781,15.6,17.381,14.3,16.681,13.4z%20M13.481,2.3c0.1-0.2,0.3-0.3,0.5-0.3c0.1,0,0.3,0.1,0.4,0.2c0.4,0.2,0.5,0.6,0.5,1.2c-0.1,1.5-1.4,3.3-2.1,3.9%20C12.481,5.9,12.681,3.3,13.481,2.3z%20M10.581,18c-0.7-0.7-1-1.7-0.9-2.7c0.2-1.6,1.3-2.9,2.2-3.9c0.2-0.2,0.4-0.4,0.5-0.6%20c0.1,0.5,0.4,1.3,0.5,1.7c-1.2,0.5-1.9,2.1-1.8,3.4c0,0.6,0.2,1,0.5,1.4c0.1,0.1,0.2,0.2,0.3,0.2s0.3-0.1,0.3-0.2l0,0%20c0.1-0.1,0.1-0.3,0-0.4s-0.1-0.2-0.1-0.4c-0.1-0.9,0.5-1.6,1.2-1.9c0.1,0.6,0.8,3.7,0.9,4.4C12.881,19.4,11.481,19,10.581,18z%20M15.081,18.6c-0.2-0.7-0.3-1.5-0.5-2.4c-0.1-0.6-0.2-1.3-0.4-1.9c1.3,0,1.7,1.1,1.8,1.5C16.281,16.9,15.981,18,15.081,18.6z'/%3e%3c/g%3e%3c/svg%3e",ao="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='30'%20height='50'%20viewBox='0%200%20285%20285'%20xml:space='preserve'%3e%3cg%20id='XMLID_516_'%20transform='translate(0,%20142.5)%20scale(1,1.8)%20translate(0,%20-142.5)%20'%3e%3crect%20id='XMLID_517_'%20y='7.5'%20width='60'%20height='270'/%3e%3crect%20id='XMLID_518_'%20x='90'%20y='7.5'%20width='30'%20height='270'/%3e%3cpath%20id='XMLID_519_'%20d='M225,157.428v-29.855c33.084,0,60-26.916,60-60c0-33.084-26.916-60-60-60%20c-31.424,0-57.18,23.901-59.779,54.892c-0.02,0.158-0.173,1.825-0.173,2.515c0,0.031,0.005,0.06,0.005,0.091%20c-0.001,0.024-0.004,0.047-0.005,0.071l0.009,0.001c0.088,10.97,9,19.837,19.991,19.837c11.046,0,20-8.954,20-20%20c0-5.252-2.041-10.017-5.353-13.586c5.326-8.344,14.666-13.821,25.305-13.821c16.542,0,30,13.458,30,30c0,16.542-13.458,30-30,30%20V82.5l-75,60l75,60v-15.072c16.542,0,30,13.458,30,29.999c0,16.542-13.458,30.001-30,30.001c-10.639,0-19.979-5.477-25.305-13.821%20c3.312-3.569,5.353-8.333,5.353-13.586c0-11.046-8.954-20-20-20c-10.991,0-19.903,8.868-19.991,19.837l-0.009,0.001%20c0.001,0.024,0.004,0.047,0.005,0.071c0,0.031-0.005,0.06-0.005,0.091c0,0.69,0.153,2.357,0.173,2.515%20c2.6,30.991,28.355,54.892,59.779,54.892c33.084,0,60-26.916,60-60.001C285,184.343,258.084,157.428,225,157.428z'/%3e%3c/g%3e%3c/svg%3e",so="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='30'%20height='50'%20viewBox='0%200%20270%20270'%20style='enable-background:new%200%200%20270%20270;'%20xml:space='preserve'%3e%3cg%20id='XMLID_520_'%20transform='translate(135,%20135)%20scale(1.2,1.7)%20translate(-135,%20-135)'%3e%3cpath%20id='XMLID_521_'%20d='M95,0C46.286,0,20,35.035,20,68c0,16.393,5.134,30.499,14.848,40.794C44.851,119.396,58.736,125,75,125%20c16.569,0,30-13.431,30-30S91.569,65,75,65c-9.828,0-18.551,4.726-24.023,12.028C50.234,73.834,50,70.676,50,68%20c0-18.884,15.457-38,45-38c37.664,0,65,35.748,65,85c0,47.058-20.573,76.48-37.831,92.875C100.995,227.991,72.146,240,45,240v30%20c35.164,0,70.822-14.716,97.831-40.375C173.248,200.729,190,160.02,190,115c0-31.97-9.544-61.113-26.874-82.062%20C145.554,11.698,121.36,0,95,0z'/%3e%3ccircle%20id='XMLID_522_'%20cx='235'%20cy='60'%20r='15'/%3e%3ccircle%20id='XMLID_523_'%20cx='235'%20cy='120'%20r='15'/%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e",lo=r.defineComponent({__name:"clef",props:{clef:{type:Object,required:!0},musicScore:{required:!0,type:Object}},setup(e){const t=e,n=r.computed(()=>{let o="";return t.clef.clef===$.Treble?o=io:t.clef.clef===$.Alto?o=ao:t.clef.clef===$.Bass&&(o=so),{mask:`url("${o}") center center / 100% 100% no-repeat`}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(n.value)},null,4))}}),co={class:"keySignature"},uo=r.defineComponent({__name:"keySignature",props:{keySignature:{type:Object,required:!0},slotWidth:{type:Number,default:50},measureHeight:{type:Number,default:60},musicScore:{type:Object,default:{}}},setup(e){const t=e,n=r.computed(()=>t.keySignature?nt(t.keySignature,t.musicScore):$.Treble),o=r.computed(()=>{const s={Cb:{type:"flat",count:7},Gb:{type:"flat",count:6},Db:{type:"flat",count:5},Ab:{type:"flat",count:4},Eb:{type:"flat",count:3},Bb:{type:"flat",count:2},F:{type:"flat",count:1},C:{type:"none",count:0},G:{type:"sharp",count:1},D:{type:"sharp",count:2},A:{type:"sharp",count:3},E:{type:"sharp",count:4},B:{type:"sharp",count:5},"F#":{type:"sharp",count:6},"C#":{type:"sharp",count:7}};return t.keySignature.type===b.KeySignature?s[t.keySignature.keySignature]:(console.error("keySignature出错,没有keySignature属性",t.keySignature),s[Ft.C])}),i=r.computed(()=>o.value.type==="sharp"?Ee:et),a=r.computed(()=>t.measureHeight/8),l={[$.Treble]:[6,3.5,5,2.5,4,2,3],[$.Bass]:[3,.5,2,-.5,1,-1,0],[$.Alto]:[4.5,2,3.5,1,2.5,0,1.5]},d={[$.Treble]:[5,8,4,7,3,6,2],[$.Bass]:[6,3.5,5,2.5,4,2,3],[$.Alto]:[2,4.5,1,3.5,0,2.5,-.5]},u=r.computed(()=>o.value.type==="sharp"?(l[n.value]||l[$.Treble]).slice(0,o.value.count).map(m=>m*a.value):o.value.type==="flat"?(d[n.value]||d[$.Treble]).slice(0,o.value.count).map(m=>m*a.value):[]),c=r.computed(()=>{const s=t.measureHeight*.5,m=t.measureHeight*.4;return(g,p)=>({width:s+"px",height:s+"px",position:"absolute",pointerEvents:"none",left:`${g*m}px`,top:`${t.measureHeight-p-s/2}px`,backgroundColor:t.keySignature.options.highlight?t.keySignature.options.highlightColor:t.keySignature.options.color,maskImage:`url("${i.value}")`,WebkitMaskImage:`url("${i.value}")`,maskRepeat:"no-repeat",WebkitMaskRepeat:"no-repeat",maskSize:"contain",WebkitMaskSize:"contain",maskPosition:"center",WebkitMaskPosition:"center"})});return(s,m)=>(r.openBlock(),r.createElementBlock("div",co,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(g,p)=>(r.openBlock(),r.createElementBlock("div",{key:p,class:"symbol",style:r.normalizeStyle(c.value(p,g))},null,4))),128))]))}}),mo=X(uo,[["__scopeId","data-v-2bd67863"]]),go=r.defineComponent({__name:"timeSignature",props:{timeSignature:{type:Object,required:!0},measureHeight:{type:Number,default:60}},setup(e){const t=e,n=r.computed(()=>({fontSize:t.measureHeight/3+"px",userSelect:"none",color:t.timeSignature.options.highlight?t.timeSignature.options.highlightColor:t.timeSignature.options.color}));return(o,i)=>e.timeSignature&&e.timeSignature.type===r.unref(b).TimeSignature?(r.openBlock(),r.createElementBlock("div",{key:0,class:"timeSignature",style:r.normalizeStyle(n.value)},[r.createElementVNode("div",null,r.toDisplayString(e.timeSignature.timeSignature.beat),1),r.createElementVNode("div",null,r.toDisplayString(e.timeSignature.timeSignature.chronaxie),1)],4)):r.createCommentVNode("",!0)}}),fo=X(go,[["__scopeId","data-v-08c2b53d"]]);function We(e,t,n){const o=W(e.index,t);if(o.singleStaff==null)return console.error("没有单谱表信息,无法计算小节left"),0;let i=0;for(let a of o.singleStaff.measureArray){if(a===e)return i;i+=ge(a,o.singleStaff,t,n)}return i}function Jt(e,t,n,o,i,a,l,d,u){const c=a.measureHeight;if(!n||!o||!i)return console.error("数据索引有误,符尾left计算出错"),0;const s=ve(e,n,o,i,a,u),m=Be(t.beamId,o),g=q[b.NoteStem];if(!("aspectRatio"in g)||typeof g.aspectRatio!="number")return console.error("符杠aspectRatio获取失败,符尾left计算出错"),0;if(m.length>1)return t.id===m[0].note.id?e.direction==="up"?l:0:t.id===m[m.length-1].note.id?e.direction==="up"?-s+l:-s:-qe(t,n,o,i,a,l,u);if(e.direction==="up")return l;{const p=q[b.NoteStem];if(!("aspectRatio"in p)||typeof p.aspectRatio!="number")return console.error("符杠aspectRatio获取失败,符杠left计算出错"),0;const y=p.heightMultiplier;return c*y*p.aspectRatio}}function mt(e,t,n,o,i,a,l,d,u=!1){const c=u?e:De(e,i),s=Le(e,i),m=ve(e,t,n,o,i,d);switch(e==null?void 0:e.type){case b.NoteHead:return 0;case b.NoteStem:return e.direction==="up"?s-m:0;case b.NoteTail:return c.type!==b.NoteHead?(console.error("找不到音符头,符尾left计算出错"),0):Jt(e,c,t,n,o,i,s,l,d);case b.Accidental:return-m;case b.NoteDot:{const g=ve(e,t,n,o,i,d);return s/2-g/2}}return 0}function qe(e,t,n,o,i,a,l,d=!1){const u=d?e:De(e,i),c=ne(t,n,o,i,l);switch(i.measureHeight,u==null?void 0:u.type){case b.NoteHead:return c/2-a/2;case b.NoteNumber:return c/2-a/2;case b.Rest:return c/2-a/2;case b.ChronaxieIncreasingLine:return c/2-a/2}return 0}function gt(e,t,n,o,i){const a=o.measureHeight;if(!e||!t||!n)return console.error("缺少必要的参数,坐标计算出错"),0;let l=0;const d=e.type;if([Fe.frontFixed].includes(d))l=_(t,a,"front",e);else if([Fe.rearFixed].includes(d))l=i-_(t,a)+_(t,a,"all",e);else{const u=_(t,a),c=me(t),s=me(t,e),m=_(t,a,"front");l=(i-u)/c*s+m}return l}function tt(e,t,n,o,i,a,l,d,u=!1){const c=u?e:De(e,i),s=qe(c,t,n,o,i,a,d),m=gt(t,n,o,i,l);return s+m}const ho=Object.freeze(Object.defineProperty({__proto__:null,getContainerLeftToMeasure:gt,getMeasureLeftToMusicScore:We,getMsSymbolLeftToSlot:mt,getNoteTailLeftToSlot:Jt,getSlotLeftToContainer:qe,getSlotLeftToMeasure:tt},Symbol.toStringTag,{value:"Module"})),po="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='200'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M%200%200%20L%200%2040%20L%20100%20200%20L%20100%20180%20Z%20'%20fill='black'/%3e%3c/svg%3e",yo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='200'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M%200%200%20L%200%2040%20L%20100%20120%20L%20100%20100%20M%200%2080%20L%200%20120%20L%20100%20200%20L%20100%20180%20Z%20'%20fill='black'/%3e%3c/svg%3e",So="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='200'%3e%3c!--%20音符尾%20--%3e%3cg%3e%3cpath%20d='%20M%200%20200%20L%200%20160%20L%20100%200%20L%20100%200%20Z%20'%20fill='black'/%3e%3c/g%3e%3c/svg%3e",bo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='200'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M%200%20200%20L%200%20160%20L%20100%2080%20L%20100%20100%20M%200%20120%20L%200%2080%20L%20100%200%20L%20100%2020%20Z%20'%20fill='black'/%3e%3c/svg%3e",vo=r.defineComponent({__name:"noteTail",props:{noteTail:{type:Object,required:!0},noteHead:{type:Object,required:!0},preContainer:{type:Object,required:!0},nextContainer:{type:Object,required:!0},msSymbolContainer:{type:Object,required:!0},measure:{type:Object,required:!0},singleStaff:{type:Object,required:!0},musicScore:{type:Object,required:!0},parentMsSymbol:{type:Object},slotLeft:{type:Number,required:!0},measureWidth:{type:Number,required:!0},componentWidth:{type:Number,required:!0}},setup(e){const t=e,n=r.computed(()=>Be(t.noteHead.beamId,t.measure));r.computed(()=>fe(t.noteTail));const o=r.computed(()=>{var s;switch((s=t.noteTail)==null?void 0:s.chronaxie){case D.eighth:return 1;case D.sixteenth:return 2}return 0}),i=r.computed(()=>Z(t.noteTail,t.musicScore)),a=r.computed(()=>t.noteTail.type===b.NoteTail&&t.nextContainer?dt(t.noteTail,t.noteHead,t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth):ve(t.noteTail,t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)),l=r.computed(()=>{var m;const s={width:`${a.value}px`,height:`${i.value}px`,display:"flex",flexDirection:((m=t.noteTail)==null?void 0:m.direction)==="up"?"column":"column-reverse",position:"absolute",left:d.value+"px",bottom:u.value+"px",background:t.noteTail.options.highlight?t.noteTail.options.highlightColor:t.noteTail.options.color};return c.value&&n.value.length<2?s.mask=`url("${c.value}") center center / cover no-repeat`:s.background="transparent",s}),d=r.computed(()=>mt(t.noteTail,t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.slotLeft,t.measureWidth,t.componentWidth)),u=r.computed(()=>ut(t.noteTail,t.musicScore)),c=r.computed(()=>{const s=W(t.noteTail.index,t.musicScore).msSymbol;if(s&&"chronaxie"in s&&V(s.region)<=3)switch(t.noteTail.chronaxie){case D.eighth:return po;case D.sixteenth:return yo;default:return""}else switch(t.noteTail.chronaxie){case D.eighth:return So;case D.sixteenth:return bo;default:return""}});return(s,m)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(l.value)},[n.value.length>1?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(o.value*2-1,(g,p)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({backgroundColor:p%2===0?"black":"transparent",height:i.value/5+"px",width:"100%"})},null,4))),256)):r.createCommentVNode("",!0)],4))}}),xo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='10'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",wo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='10'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Io="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='30'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='25'%20x2='100'%20y2='25'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Mo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='50'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='25'%20x2='100'%20y2='25'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='45'%20x2='100'%20y2='45'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Co="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='70'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='25'%20x2='100'%20y2='25'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='45'%20x2='100'%20y2='45'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='65'%20x2='100'%20y2='65'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",ko=r.defineComponent({__name:"msSymbol",props:{msSymbol:{type:Object,required:!0},msSymbolContainer:{type:Object,required:!0},preContainer:{type:Object,required:!0},nextContainer:{type:Object,required:!0},measure:{type:Object,required:!0},measureWidth:{type:Number,required:!0},singleStaff:{type:Object,required:!0},musicScore:{type:Object,required:!0},containerWidth:{type:Number,required:!0},isMain:{type:Boolean,default:!1},measureHeight:{type:Number,required:!0},parentMsSymbol:{type:Object},slotWidth:{type:Number,required:!0},slotBottom:{type:Number,required:!0},slotLeft:{type:Number,required:!0},componentWidth:{type:Number,required:!0},componentHeight:{type:Number,required:!0}},emits:["msSymbolMouseDown","msSymbolMouseUp"],setup(e,{expose:t,emit:n}){const o=e;r.watch(()=>{var k;return(k=o.msSymbol)==null?void 0:k.vueKey},()=>{i()});function i(){var k,w,N,C,B,H,Q;switch((k=o.msSymbol)==null?void 0:k.type){case b.NoteHead:switch((w=o.msSymbol)==null?void 0:w.chronaxie){case D.whole:return Kt;case D.half:return Zn;case D.quarter:return xt;default:return xt}case b.Rest:switch((N=o.msSymbol)==null?void 0:N.chronaxie){case D.whole:return $e;case D.half:return eo;case D.quarter:return kt;case D.eighth:return to;case D.sixteenth:return no;case D.thirtySecond:return $e;case D.sixtyFourth:return $e;default:return kt}case b.NoteStem:return oo;case b.NoteTail:return"";case b.Clef:return"";case b.Clef_f:return"";case b.BarLine:{switch((C=o.msSymbol)==null?void 0:C.barLineType){case J.single:return At;case J.final:return Nt;case J.reverseFinal:return Lt;case J.startRepeatSign:return Dt;case J.endRepeatSign:return Bt}return""}case b.BarLine_f:{switch((B=o.msSymbol)==null?void 0:B.barLineType){case J.single:return At;case J.final:return Nt;case J.reverseFinal:return Lt;case J.startRepeatSign:return Dt;case J.endRepeatSign:return Bt}return console.error("未知的小节线类型",o.msSymbol),""}case b.KeySignature:return"";case b.TimeSignature:return"";case b.Accidental:{switch((H=o.msSymbol)==null?void 0:H.accidental){case ye.Sharp:return Ee;case ye.Flat:return et;case ye.Natural:return ro;case ye.DoubleSharp:return Ee;case ye.DoubleFlat:return et}return console.error("未知的变音符号",o.msSymbol),""}case b.NoteNumber:switch((Q=o.msSymbol)==null?void 0:Q.solmization){case le.DO:return wt;case le.RE:return Qn;case le.MI:return Xn;case le.FA:return Kn;case le.SOL:return Jn;case le.LA:return _n;case le.TI:return Yn;default:return wt}case b.NoteDot:switch(o.msSymbol.octave){case 1:return Ct;case 2:return Mt;case 3:return It;case 5:return It;case 6:return Mt;case 7:return En;case 8:return Ct;default:return""}case b.ChronaxieReducingLine:switch(o.msSymbol.chronaxie){case D.eighth:return wo;case D.sixteenth:return Io;case D.thirtySecond:return Mo;case D.sixtyFourth:return Co;default:return""}case b.ChronaxieIncreasingLine:return xo;default:return console.error("未知的符号类别",o.msSymbol),""}}const a=r.computed(()=>i()),l=r.ref(null),d=r.computed(()=>fe(o.msSymbol)),u=r.computed(()=>Z(o.msSymbol,o.musicScore)),c=r.computed(()=>ve(o.msSymbol,o.msSymbolContainer,o.measure,o.singleStaff,o.musicScore,o.componentWidth)),s=r.computed(()=>mt(o.msSymbol,o.msSymbolContainer,o.measure,o.singleStaff,o.musicScore,o.slotLeft,o.measureWidth,o.componentWidth)),m=r.computed(()=>ut(o.msSymbol,o.musicScore)),g=r.computed(()=>{var w;const k={width:`${c.value}px`,height:`${u.value}px`,position:"absolute",pointerEvents:"auto",left:s.value+"px",bottom:m.value+"px",background:o.msSymbol.options.highlight?o.msSymbol.options.highlightColor:o.msSymbol.options.color};return(w=o.msSymbol)!=null&&w.type&&[b.KeySignature,b.TimeSignature,b.NoteTail].includes(o.msSymbol.type)&&(k.background="unset"),a.value&&(k.mask=`url("${a.value}") no-repeat center`,k["mask-size"]="100% 100%"),k}),p=n;function y(k){p("msSymbolMouseDown",k,o.msSymbol)}function v(k){p("msSymbolMouseUp",k,o.msSymbol)}return r.onMounted(()=>{}),t({aspectRatio:d}),(k,w)=>{var N,C,B,H,Q,ie;return((N=e.msSymbol)==null?void 0:N.type)===r.unref(b).Clef||((C=e.msSymbol)==null?void 0:C.type)===r.unref(b).Clef_f&&"clef"in e.msSymbol?r.withDirectives((r.openBlock(),r.createBlock(lo,{key:0,clef:e.msSymbol,onMouseup:r.withModifiers(v,["self"]),onMousedown:r.withModifiers(y,["self"]),musicScore:e.musicScore,style:r.normalizeStyle(g.value)},null,8,["clef","musicScore","style"])),[[r.vShow,e.musicScore.showMode===r.unref(E).standardStaff]]):((B=e.msSymbol)==null?void 0:B.type)===r.unref(b).KeySignature?r.withDirectives((r.openBlock(),r.createBlock(mo,{key:1,"measure-height":e.measureHeight,slotWidth:e.slotWidth,onMouseup:r.withModifiers(v,["self"]),onMousedown:r.withModifiers(y,["self"]),musicScore:e.musicScore,style:r.normalizeStyle(g.value),keySignature:e.msSymbol},null,8,["measure-height","slotWidth","musicScore","style","keySignature"])),[[r.vShow,e.musicScore.showMode===r.unref(E).standardStaff]]):((H=e.msSymbol)==null?void 0:H.type)===r.unref(b).TimeSignature?r.withDirectives((r.openBlock(),r.createBlock(fo,{key:2,style:r.normalizeStyle(g.value),onMouseup:r.withModifiers(v,["self"]),onMousedown:r.withModifiers(y,["self"]),"time-signature":e.msSymbol,"measure-height":e.measureHeight},null,8,["style","time-signature","measure-height"])),[[r.vShow,e.musicScore.showMode===r.unref(E).standardStaff]]):((Q=e.msSymbol)==null?void 0:Q.type)===r.unref(b).NoteTail?r.withDirectives((r.openBlock(),r.createBlock(vo,{key:3,"ms-symbol-container":e.msSymbolContainer,"pre-container":e.preContainer,"next-container":e.nextContainer,"measure-width":e.measureWidth,"single-staff":e.singleStaff,"slot-left":e.slotLeft,"component-width":e.componentWidth,noteTail:e.msSymbol,noteHead:e.parentMsSymbol,measure:e.measure,musicScore:e.musicScore},null,8,["ms-symbol-container","pre-container","next-container","measure-width","single-staff","slot-left","component-width","noteTail","noteHead","measure","musicScore"])),[[r.vShow,e.musicScore.showMode===r.unref(E).standardStaff]]):((ie=e.msSymbol)==null?void 0:ie.type)===r.unref(b).NoteStem?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:4,ref_key:"msSymbolRef",ref:l,class:"msSymbol",style:r.normalizeStyle(g.value),onMouseup:r.withModifiers(v,["self"]),onMousedown:r.withModifiers(y,["self"])},null,36)),[[r.vShow,e.musicScore.showMode===r.unref(E).standardStaff]]):(r.openBlock(),r.createElementBlock("div",{key:5,ref_key:"msSymbolRef",ref:l,class:"msSymbol",style:r.normalizeStyle(g.value),onMouseup:r.withModifiers(v,["self"]),onMousedown:r.withModifiers(y,["self"])},null,36))}}}),Ht=X(ko,[["__scopeId","data-v-5b6eb544"]]),Ao=r.defineComponent({__name:"msSymbolSlot",props:{msSymbol:{type:Object,required:!0},msSymbolContainer:{type:Object,required:!0},preContainer:{type:Object,required:!0},nextContainer:{type:Object,required:!0},containerWidth:{type:Number,default:60,required:!0},measureHeight:{type:Number,default:60,required:!0},measure:{type:Object,required:!0},measureWidth:{type:Number,default:200,required:!0},componentWidth:{type:Number,default:1e3},componentHeight:{type:Number,default:800},singleStaff:{type:Object,required:!0},multipleStaves:{type:Object,required:!0},musicScore:{type:Object,default:{}}},emits:["msSymbolMouseDown","msSymbolMouseUp"],setup(e,{emit:t}){const n=e,o=r.computed(()=>!n.msSymbol||!n.measure||!n.singleStaff?(console.error("缺少必要的参数,坐标计算出错"),{}):{left:a.value+"px",height:n.measureHeight+"px",width:i.value+"px",bottom:l.value+"px",pointEvents:" none"});r.computed(()=>fe(n.msSymbol)),r.computed(()=>Z(n.msSymbol,n.musicScore));const i=r.computed(()=>Le(n.msSymbol,n.musicScore)),a=r.computed(()=>qe(n.msSymbol,n.msSymbolContainer,n.measure,n.singleStaff,n.musicScore,i.value,n.componentWidth)),l=r.computed(()=>te(n.msSymbol,n.musicScore)),d=t;return(u,c)=>{var s;return r.openBlock(),r.createElementBlock("div",{class:"msSymbolSlot p-stackItem",style:r.normalizeStyle(o.value)},[e.msSymbol?(r.openBlock(),r.createBlock(Ht,{key:0,ref:"mainMsSymbolRef",measureHeight:e.measureHeight,msSymbolContainer:n.msSymbolContainer,preContainer:n.preContainer,nextContainer:n.nextContainer,"slot-width":i.value,slotBottom:l.value,"slot-left":a.value,containerWidth:e.containerWidth,"measure-width":e.measureWidth,isMain:!0,componentWidth:e.componentWidth,componentHeight:e.componentHeight,measure:e.measure,"single-staff":e.singleStaff,musicScore:n.musicScore,onMsSymbolMouseDown:c[0]||(c[0]=(m,g)=>d("msSymbolMouseDown",m,g)),onMsSymbolMouseUp:c[1]||(c[1]=(m,g)=>d("msSymbolMouseUp",m,g)),"ms-symbol":e.msSymbol},null,8,["measureHeight","msSymbolContainer","preContainer","nextContainer","slot-width","slotBottom","slot-left","containerWidth","measure-width","componentWidth","componentHeight","measure","single-staff","musicScore","ms-symbol"])):r.createCommentVNode("",!0),(s=e.msSymbol)!=null&&s.msSymbolArray?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.msSymbol.msSymbolArray,m=>(r.openBlock(),r.createBlock(Ht,{measureHeight:e.measureHeight,msSymbolContainer:n.msSymbolContainer,preContainer:n.preContainer,nextContainer:n.nextContainer,containerWidth:e.containerWidth,"measure-width":e.measureWidth,isMain:!1,slotBottom:l.value,measure:e.measure,"single-staff":e.singleStaff,"slot-width":i.value,"slot-left":a.value,"parent-ms-symbol":e.msSymbol,componentWidth:e.componentWidth,onMsSymbolMouseDown:c[2]||(c[2]=(g,p)=>d("msSymbolMouseDown",g,p)),onMsSymbolMouseUp:c[3]||(c[3]=(g,p)=>d("msSymbolMouseUp",g,p)),componentHeight:e.componentHeight,musicScore:n.musicScore,"ms-symbol":m},null,8,["measureHeight","msSymbolContainer","preContainer","nextContainer","containerWidth","measure-width","slotBottom","measure","single-staff","slot-width","slot-left","parent-ms-symbol","componentWidth","componentHeight","musicScore","ms-symbol"]))),256)):r.createCommentVNode("",!0)],4)}}}),No=X(Ao,[["__scopeId","data-v-501cb6ae"]]),Lo=r.defineComponent({__name:"msSymbolContainer",props:{msSymbolContainer:{type:Object,required:!0},preContainer:{type:Object,required:!0},nextContainer:{type:Object,required:!0},measureHeight:{type:Number,required:!0},measure:{type:Object,required:!0},measureWidth:{type:Number,required:!0},componentWidth:{type:Number,required:!0},componentHeight:{type:Number,required:!0},singleStaff:{type:Object,required:!0},multipleStaves:{type:Object,required:!0},musicScore:{type:Object,required:!0}},emits:["msSymbolMouseDown","msSymbolMouseUp"],setup(e,{emit:t}){const n=e,o=r.computed(()=>!n.msSymbolContainer||!n.measure||!n.singleStaff?(console.error("缺少必要的参数,坐标计算出错"),{}):{left:a.value+"px",height:n.measureHeight+"px",width:i.value+"px",bottom:"0px",pointerEvents:"none"}),i=r.computed(()=>ne(n.msSymbolContainer,n.measure,n.singleStaff,n.musicScore,n.componentWidth)),a=r.computed(()=>gt(n.msSymbolContainer,n.measure,n.singleStaff,n.musicScore,n.measureWidth)),l=t;return(d,u)=>{var c;return r.openBlock(),r.createElementBlock("div",{class:"msSymbolContainer",style:r.normalizeStyle(o.value)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList((c=e.msSymbolContainer)==null?void 0:c.msSymbolArray,s=>(r.openBlock(),r.createBlock(No,{msSymbol:s,msSymbolContainer:n.msSymbolContainer,preContainer:n.preContainer,nextContainer:n.nextContainer,measure:n.measure,measureWidth:n.measureWidth,singleStaff:n.singleStaff,containerWidth:i.value,componentWidth:e.componentWidth,componentHeight:e.componentHeight,onMsSymbolMouseDown:(m,g)=>l("msSymbolMouseDown",m,g),onMsSymbolMouseUp:(m,g)=>l("msSymbolMouseUp",m,g),multipleStaves:n.multipleStaves,musicScore:n.musicScore,measureHeight:n.measureHeight},null,8,["msSymbol","msSymbolContainer","preContainer","nextContainer","measure","measureWidth","singleStaff","containerWidth","componentWidth","componentHeight","onMsSymbolMouseDown","onMsSymbolMouseUp","multipleStaves","musicScore","measureHeight"]))),256))],4)}}}),Do=X(Lo,[["__scopeId","data-v-a10cc562"]]),Bo=r.defineComponent({__name:"rectDragShell",props:{rect:{required:!0,type:Object}},setup(e){const t=e,n=r.ref({left:t.rect.left,top:t.rect.top,width:t.rect.width,height:t.rect.height}),o=r.ref(!1),i=r.ref(null);function a(u,c){c.stopPropagation(),c.preventDefault(),o.value=!0,i.value=u,window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}function l(u){if(!o.value||!i.value)return;const{clientX:c,clientY:s}=u;switch(i.value){case"tl":n.value.width+=n.value.left-c,n.value.height+=n.value.top-s,n.value.left=c,n.value.top=s;break;case"tr":n.value.width=c-n.value.left,n.value.height+=n.value.top-s,n.value.top=s;break;case"bl":n.value.width+=n.value.left-c,n.value.left=c,n.value.height=s-n.value.top;break;case"br":n.value.width=c-n.value.left,n.value.height=s-n.value.top;break}}function d(){o.value=!1,i.value=null,window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)}return(u,c)=>(r.openBlock(),r.createElementBlock("div",{class:"resizable-box",style:r.normalizeStyle({position:"absolute",left:n.value.left+"px",top:n.value.top+"px",width:n.value.width+"px",height:n.value.height+"px"})},[r.renderSlot(u.$slots,"default",{},void 0,!0),r.createElementVNode("div",{class:"drag-point top-left",onMousedown:c[0]||(c[0]=s=>a("tl",s))},null,32),r.createElementVNode("div",{class:"drag-point top-right",onMousedown:c[1]||(c[1]=s=>a("tr",s))},null,32),r.createElementVNode("div",{class:"drag-point bottom-left",onMousedown:c[2]||(c[2]=s=>a("bl",s))},null,32),r.createElementVNode("div",{class:"drag-point bottom-right",onMousedown:c[3]||(c[3]=s=>a("br",s))},null,32)],4))}}),Rt=X(Bo,[["__scopeId","data-v-5a499cb9"]]),Ho=r.defineComponent({__name:"volta",props:{volta:{type:Object,required:!0}},setup(e){const t=r.computed(()=>({width:"100%",height:"100%"}));return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"volta",style:r.normalizeStyle(t.value)},o[0]||(o[0]=[r.createElementVNode("div",null,"1,2,3",-1)]),4))}}),Ro=X(Ho,[["__scopeId","data-v-71eea7f6"]]),jo={class:"slur"},Wo={class:"slur-svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},Fo=["d"],zo=r.defineComponent({__name:"slur",props:{slur:{type:Object,required:!0}},setup(e){const t=r.computed(()=>`
2
- M 0,50
3
- Q 50,-30 100,50
4
- Q 50,0 0,50
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue");var ke=(e=>(e[e.Treble=1]="Treble",e[e.MezzoSoprano=2]="MezzoSoprano",e[e.Alto=3]="Alto",e[e.Tenor=4]="Tenor",e[e.BaritoneF=5]="BaritoneF",e[e.BaritoneC=6]="BaritoneC",e[e.Bass=7]="Bass",e[e.Subbass=8]="Subbass",e))(ke||{}),Pe=(e=>(e[e.standardStaff=1]="standardStaff",e[e.numberNotation=2]="numberNotation",e[e.rhythmNotation=3]="rhythmNotation",e[e.percussion=4]="percussion",e))(Pe||{});const Rt=["src"],Tt=r.defineComponent({__name:"measure",props:{measure:{type:Object,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},width:{type:Number,default:400},height:{type:Number,default:80},componentWidth:{type:Number,default:1e3},componentHeight:{type:Number,default:800},strokeWidth:{type:Number,default:1},musicScore:{type:Object,default:{}}},emits:["measureMouseDown"],setup(e,{emit:t}){const n=e,{svgSkin:o,isOriginSkin:i}=r.inject("skin"),a=r.computed(()=>({width:"100%",display:"grid","grid-template-rows":"1fr","grid-template-columns":"1fr"})),l=r.computed(()=>{var d,h;switch(n.musicScore.showMode){case Pe.standardStaff:return(d=n.measure)!=null&&d.options.highlight?o.value.active_bar_standardStaff.url:o.value.bar_standardStaff.url;case Pe.numberNotation:return(h=n.measure)!=null&&h.options.highlight?o.value.active_bar_numberNotation.url:o.value.bar_numberNotation.url}return""}),c=r.computed(()=>{var h,u,f;return console.log("chicken"),{width:n.width+"px",height:n.height+"px","background-color":(h=n.measure)!=null&&h.options.highlight?(u=n.measure)==null?void 0:u.options.highlightColor:(f=n.measure)==null?void 0:f.options.color,mask:`url("${l.value}") no-repeat center`,"mask-size":"100% 100%",pointerEvents:"none"}}),s=t;function m(d){s("measureMouseDown",d,n.measure)}return(d,h)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(a.value),class:"measure",onMousedown:r.withModifiers(m,["self"])},[r.unref(i)?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(c.value)},null,4)):(r.openBlock(),r.createElementBlock("img",{key:1,src:l.value,style:r.normalizeStyle(c.value)},null,12,Rt))],36))}}),G=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},jt=G(Tt,[["__scopeId","data-v-9f0fceab"]]);var O;(function(e){e[e.MultipStaves=1]="MultipStaves",e[e.SingleStaff=2]="SingleStaff",e[e.Measure=3]="Measure",e[e.SpanSymbol=4]="SpanSymbol",e[e.MsSymbolContainer=5]="MsSymbolContainer",e[e.MsSymbol=6]="MsSymbol"})(O||(O={}));var T;(function(e){e.Line="line",e.Space="space"})(T||(T={}));var M;(function(e){e.Lower="lower",e.Main="main",e.Upper="upper"})(M||(M={}));var S;(function(e){e[e.Treble=1]="Treble",e[e.MezzoSoprano=2]="MezzoSoprano",e[e.Alto=3]="Alto",e[e.Tenor=4]="Tenor",e[e.BaritoneF=5]="BaritoneF",e[e.BaritoneC=6]="BaritoneC",e[e.Bass=7]="Bass",e[e.Subbass=8]="Subbass"})(S||(S={}));var w;(function(e){e.Cb="Cb",e.Gb="Gb",e.Db="Db",e.Ab="Ab",e.Eb="Eb",e.Bb="Bb",e.F="F",e.C="C",e.G="G",e.D="D",e.A="A",e.E="E",e.B="B",e["F#"]="F#",e["C#"]="C#"})(w||(w={}));var L;(function(e){e[e.DO=1]="DO",e[e.RE=2]="RE",e[e.MI=3]="MI",e[e.FA=4]="FA",e[e.SOL=5]="SOL",e[e.LA=6]="LA",e[e.TI=7]="TI"})(L||(L={}));var z;(function(e){e.C="C",e.D="D",e.E="E",e.F="F",e.G="G",e.A="A",e.B="B"})(z||(z={}));var p;(function(e){e.None="",e.Natural="&",e.Sharp="#",e.Flat="b",e.DoubleSharp="##",e.DoubleFlat="bb"})(p||(p={}));var it;(function(e){e.None="",e.Single=".",e.Double="..",e.Triple="..."})(it||(it={}));var v;(function(e){e[e.whole=1]="whole",e[e.half=2]="half",e[e.quarter=4]="quarter",e[e.eighth=8]="eighth",e[e.sixteenth=16]="sixteenth",e[e.thirtySecond=32]="thirtySecond",e[e.sixtyFourth=64]="sixtyFourth",e[e.oneTwentyEighth=128]="oneTwentyEighth",e[e.twoFiftySixth=256]="twoFiftySixth"})(v||(v={}));var g;(function(e){e.NoteHead="noteHead",e.NoteStem="noteStem",e.NoteTail="noteTail",e.NoteNumber="noteNumber",e.ChronaxieReducingLine="chronaxieReducingLine",e.ChronaxieIncreasingLine="chronaxieIncreasingLine",e.NoteDot="noteDot",e.Rest="rest",e.Slur="slur",e.Tie="tie",e.DurationDot="durationDot",e.Accidental="accidental",e.Tuplet="tuplet",e.Clef="clef",e.Clef_f="clef_f",e.KeySignature="keySignature",e.TimeSignature="timeSignature",e.BarLine="barLine",e.BarLine_f="barLine_f"})(g||(g={}));var U;(function(e){e[e.standardStaff=1]="standardStaff",e[e.numberNotation=2]="numberNotation",e[e.rhythmNotation=3]="rhythmNotation",e[e.percussion=4]="percussion"})(U||(U={}));var P;(function(e){e[e.singleMeasure=1]="singleMeasure",e[e.multipleMeasure=2]="multipleMeasure"})(P||(P={}));var me;(function(e){e[e.volta=1]="volta",e[e.slur=2]="slur",e[e.tie=3]="tie"})(me||(me={}));var at;(function(e){e[e.msSymbol=1]="msSymbol",e[e.measure=2]="measure",e[e.singleStaff=3]="singleStaff",e[e.multipleStaves=4]="multipleStaves"})(at||(at={}));var R;(function(e){e[e.frontFixed=1]="frontFixed",e[e.rearFixed=2]="rearFixed",e[e.variable=3]="variable",e[e.span=4]="span"})(R||(R={}));var N;(function(e){e[e.single=1]="single",e[e.final=2]="final",e[e.reverseFinal=3]="reverseFinal",e[e.startRepeatSign=4]="startRepeatSign",e[e.endRepeatSign=5]="endRepeatSign"})(N||(N={}));var lt;(function(e){e[e.highlight=1]="highlight"})(lt||(lt={}));var Y;(function(e){e[e.normal=1]="normal",e[e.edit=2]="edit"})(Y||(Y={}));var te;(function(e){e[e.note=1]="note",e[e.rest=2]="rest"})(te||(te={}));var ze;(function(e){e[e.left=1]="left"})(ze||(ze={}));function Pt(e){return e>=v.eighth}function zt(e){return e!==v.whole}function ut(e,t){let n=p.None;if(!e.msSymbolArray)return{accidental:n,measureAccidental:p.None};const o=j(e.index,t),i=o.msSymbolContainer,a=o.measure,l=o.singleStaff,c=a==null?void 0:a.index.measureIndex,s=i==null?void 0:i.index.msSymbolContainerIndex;if(!i||!a||!l||s==null||c==null)return console.error("索引数据查找出错,获取符号的谱号失败"),{accidental:n,measureAccidental:p.None};let m=p.None;for(let d=c;d>=0;d--){const h=l.measureArray[d];if(d===c)for(let u=s;u>=0;u--){const y=h.msSymbolContainerArray[u].msSymbolArray[0];if(g.Accidental===y.type){m=y.accidental;break}}else for(let u=h.msSymbolContainerArray.length-1;u>=0;u--){const y=h.msSymbolContainerArray[u].msSymbolArray[0];if(g.Accidental===y.type){m=y.accidental;break}}}for(let d of e.msSymbolArray)if(d.type===g.Accidental)return n=d.accidental,{accidental:n,measureAccidental:m};return{accidental:n,measureAccidental:m}}function dt(e,t){const n=j(e.index,t),o=n.msSymbolContainer,i=n.measure,a=n.singleStaff,l=i==null?void 0:i.index.measureIndex,c=o==null?void 0:o.index.msSymbolContainerIndex;if(!o||!i||!a||c==null||l==null)return console.error("索引数据查找出错,获取符号的谱号失败"),w.C;for(let s=l;s>=0;s--){const m=a.measureArray[s];if(s===l)for(let d=c;d>=0;d--){const u=m.msSymbolContainerArray[d].msSymbolArray[0];if(g.KeySignature===u.type)return u.keySignature}else for(let d=m.msSymbolContainerArray.length-1;d>=0;d--){const u=m.msSymbolContainerArray[d].msSymbolArray[0];if(g.KeySignature===u.type)return u.keySignature}}return w.C}function Qe(e,t){const n=j(e.index,t),o=n.msSymbolContainer,i=n.measure,a=n.singleStaff,l=i==null?void 0:i.index.measureIndex,c=o==null?void 0:o.index.msSymbolContainerIndex;if(!o||!i||!a||c==null||l==null)return console.error("索引数据查找出错,获取符号的谱号失败"),S.Treble;for(let s=l;s>=0;s--){const m=a.measureArray[s];if(s===l)for(let d=c;d>=0;d--){const u=m.msSymbolContainerArray[d].msSymbolArray[0];if(g.Clef===u.type||g.Clef_f===u.type)return u.clef}else for(let d=m.msSymbolContainerArray.length-1;d>=0;d--){const u=m.msSymbolContainerArray[d].msSymbolArray[0];if(g.Clef===u.type||g.Clef_f===u.type)return u.clef}}return S.Treble}function Wt(e,{level:t="symbol",order:n="asc",callback:o}){const i=l=>n==="asc"?[...Array(l).keys()]:[...Array(l).keys()].reverse(),a=e.multipleStavesArray;for(const l of i(a.length)){const c=a[l];if(t==="multipleStaves"){if(o({multipleStavesIndex:l,singleStaffIndex:-1,measureIndex:-1,multipleStaves:c}))return;continue}for(const s of i(c.singleStaffArray.length)){const m=c.singleStaffArray[s];if(t==="singleStaff"){if(o({multipleStavesIndex:l,singleStaffIndex:s,measureIndex:-1,multipleStaves:c,singleStaff:m}))return;continue}for(const d of i(m.measureArray.length)){const h=m.measureArray[d];if(t==="measure"){if(o({multipleStavesIndex:l,singleStaffIndex:s,measureIndex:d,multipleStaves:c,singleStaff:m,measure:h}))return;continue}for(const u of i(h.msSymbolContainerArray.length)){const f=h.msSymbolContainerArray[u];if(t==="container"){if(o({multipleStavesIndex:l,singleStaffIndex:s,measureIndex:d,msSymbolContainerIndex:u,multipleStaves:c,singleStaff:m,measure:h,msSymbolContainer:f}))return;continue}for(const y of i(f.msSymbolArray.length)){const b=f.msSymbolArray[y];if(o({multipleStavesIndex:l,singleStaffIndex:s,measureIndex:d,msSymbolContainerIndex:u,msSymbolIndex:y,multipleStaves:c,singleStaff:m,measure:h,msSymbolContainer:f,msSymbol:b}))return}}}}}}function Ft(e,t,n,o){if(t.multipleStavesIndex==null||e.multipleStavesIndex==null||e.measureIndex==null||t.measureIndex==null||e.singleStaffIndex==null)return console.error("索引元素有误,无法正确执行traverseMeasure");const i=e.singleStaffIndex,a=j(e,n),l=j(t,n),c=a.singleStaff;l.singleStaff;const s=a.multipleStaves,m=l.multipleStaves;if(s===m){if(c==null||s==null)return console.error("索引元素有误,无法正确执行traverseMeasure");for(let d=e.measureIndex;d<=t.measureIndex;d++){const h=c.measureArray[d];o(h,c,s)}}else for(let d=e.multipleStavesIndex;d<=t.multipleStavesIndex;d++){const h=n.multipleStavesArray[d],u=h.singleStaffArray[i];if(s===h)for(let f=e.measureIndex;f<u.measureArray.length;f++){const y=u.measureArray[f];o(y,u,h)}else if(s!==h&&m!==h)for(let f=0;f<u.measureArray.length;f++){const y=u.measureArray[f];o(y,u,h)}else if(m===h&&s!==m)for(let f=0;f<t.measureIndex;f++){const y=u.measureArray[f];o(y,u,h)}}}function Vt(e){e.multipleStavesArray.forEach((t,n)=>{t.index={multipleStavesIndex:n,singleStaffIndex:-1,measureIndex:-1,msSymbolContainerIndex:-1,msSymbolIndex:-1},Zt(t)})}function Zt(e){const t=e.index.multipleStavesIndex;if(t==null)return console.error("数据有误,复谱表索引生成失败");e.singleStaffArray.forEach((n,o)=>{n.index={multipleStavesIndex:t,singleStaffIndex:o,measureIndex:-1,msSymbolContainerIndex:-1,msSymbolIndex:-1},mt(n)})}function mt(e){const t=e.index.singleStaffIndex,n=e.index.multipleStavesIndex;if(n==null||t==null)return console.error("数据有误,单谱表索引生成失败");e.measureArray.forEach((o,i)=>{o.index={multipleStavesIndex:n,singleStaffIndex:t,measureIndex:i,msSymbolContainerIndex:-1,msSymbolIndex:-1},Le(o)})}function Le(e){const t=e.index.singleStaffIndex,n=e.index.multipleStavesIndex,o=e.index.measureIndex;if(n==null||t==null||o==null)return console.error("数据有误,符号容器索引生成失败");e.msSymbolContainerArray.forEach((i,a)=>{i.index={multipleStavesIndex:n,singleStaffIndex:t,measureIndex:o,msSymbolContainerIndex:a,msSymbolIndex:-1},We(i)})}function We(e){const t=e.index.singleStaffIndex,n=e.index.multipleStavesIndex,o=e.index.measureIndex,i=e.index.msSymbolContainerIndex;if(n==null||t==null||o==null||i==null)return console.error("数据有误,符号索引生成失败");e.msSymbolArray.forEach((a,l)=>{const c={multipleStavesIndex:n,singleStaffIndex:t,measureIndex:o,msSymbolContainerIndex:i,msSymbolIndex:l};a.index=c,qe(a)})}function qe(e,t){let n=null;n=e,n.msSymbolArray.forEach((o,i)=>{o.index=n.index,o.msSymbolArray.length>0&&qe(o)})}function Ot(e){const t=e.map;for(let n=0;n<e.multipleStavesArray.length;n++){const o=e.multipleStavesArray[n];t[o.id]=o;for(let i=0;i<o.singleStaffArray.length;i++){const a=o.singleStaffArray[i];t[a.id]=a;for(let l=0;l<a.measureArray.length;l++){const c=a.measureArray[l];t[c.id]=c;for(let s=0;s<c.msSymbolContainerArray.length;s++){const m=c.msSymbolContainerArray[s];t[m.id]=m;for(let d=0;d<m.msSymbolArray.length;d++){const h=m.msSymbolArray[d];t[h.id]=h}}}}}}function Q(e){if(e.region===M.Main)return(e.index-1)*2+(e.type===T.Space?1:0);if(e.region===M.Lower)return-(e.index*2)+(e.type===T.Space?1:0);if(e.region===M.Upper)return 8+e.index*2+(e.type===T.Space?1:0);throw new Error("Invalid StaffRegion")}function Fe(e){if(e>=0&&e<=9){const t=e%2===0?T.Line:T.Space,n=Math.floor(e/2)+1,o=Math.floor(e/2)+1;return{region:M.Main,type:t,index:t===T.Line?n:o}}if(e<0){const t=Math.abs(e),n=t%2===0?T.Line:T.Space,o=Math.floor((t+1)/2);return{region:M.Lower,type:n,index:o}}if(e>=10){const t=e-10,n=t%2===0?T.Line:T.Space,o=Math.floor(t/2)+1;return{region:M.Upper,type:n,index:o}}throw new Error("Invalid index for StaffRegion")}function st(e){return typeof e=="number"?e<=3?"up":"down":Q(e)<=3?"up":"down"}function Ae(e,t){const n=t[e];if(n)return n;console.warn("此id元素不存在")}function j(e,t){const n={multipleStaves:null,singleStaff:null,measure:null,msSymbolContainer:null,msSymbol:null};if(e.multipleStavesIndex!==-1){const o=t.multipleStavesArray[e.multipleStavesIndex];if(n.multipleStaves=o,e.singleStaffIndex!==-1){const i=o.singleStaffArray[e.singleStaffIndex];if(n.singleStaff=i,e.measureIndex!==-1){const a=i.measureArray[e.measureIndex];if(n.measure=a,e.msSymbolContainerIndex!==-1){const l=a.msSymbolContainerArray[e.msSymbolContainerIndex];n.msSymbolContainer=l,e.msSymbolIndex!==-1&&(n.msSymbol=l.msSymbolArray[e.msSymbolIndex])}}}}return n}function Qt(e,t){const n=new Set;return e.bindingEndId.forEach(o=>{n.add(o)}),e.bindingStartId.forEach(o=>{n.add(o)}),e.msSymbolContainerArray.forEach((o,i)=>{o.msSymbolArray.forEach((a,l)=>{a.bindingEndId.forEach(c=>{n.add(c)}),a.bindingStartId.forEach(c=>{n.add(c)})})}),n}function Ue(e,t){let n=new Set;return e.measureArray.forEach(o=>{const i=Qt(o);n=new Set([...n,...i])}),n}function Ge(e,t){t.spanSymbolArray.forEach(n=>{e.has(n.id)&&(n.vueKey=Date.now())})}function xe(e,t){const n=j(e.index,t).msSymbol;return n||(console.error("获取主符号失败"),e)}function we(e,t){const n=[];return e===-1?[]:(t.msSymbolContainerArray.forEach(o=>{o.msSymbolArray.forEach(i=>{if(i.type===g.NoteHead&&i.beamId===e){const a={beamId:i.beamId,note:i,region:i.region,chronaxie:i.chronaxie};n.push(a)}})}),n)}function gt(e,t){e.id=t.id,e.bindingEndId=t.bindingEndId,e.bindingStartId=t.bindingStartId}function qt(e,t,n,o){if(!e||!t||!n)return;const i=e.index,a=t.index;Ut(i,a)>0;const l=n.multipleStavesArray,c=Math.min(i.multipleStavesIndex,a.multipleStavesIndex),s=Math.max(i.multipleStavesIndex,a.multipleStavesIndex);for(let m=c;m<=s;m++){const h=l[m].singleStaffArray,u=m===i.multipleStavesIndex?i.singleStaffIndex:0,f=m===a.multipleStavesIndex?a.singleStaffIndex:h.length-1;for(let y=u;y<=f;y++){const I=h[y].measureArray,A=m===i.multipleStavesIndex&&y===i.singleStaffIndex?i.measureIndex:0,x=m===a.multipleStavesIndex&&y===a.singleStaffIndex?a.measureIndex:I.length-1;for(let k=A;k<=x;k++){const _=I[k].msSymbolContainerArray,W=m===i.multipleStavesIndex&&y===i.singleStaffIndex&&k===i.measureIndex?i.msSymbolContainerIndex:0,V=m===a.multipleStavesIndex&&y===a.singleStaffIndex&&k===a.measureIndex?a.msSymbolContainerIndex:_.length-1;for(let q=W;q<=V;q++){const oe=_[q];o(oe)}}}}}function Ut(e,t){return e.multipleStavesIndex!==t.multipleStavesIndex?e.multipleStavesIndex-t.multipleStavesIndex:e.singleStaffIndex!==t.singleStaffIndex?e.singleStaffIndex-t.singleStaffIndex:e.measureIndex!==t.measureIndex?e.measureIndex-t.measureIndex:e.msSymbolContainerIndex-t.msSymbolContainerIndex}function F(e={}){const t={id:Math.random()*Date.now()+1,msTypeName:O.MsSymbol,index:{multipleStavesIndex:-1,singleStaffIndex:-1,measureIndex:-1,msSymbolContainerIndex:-1,msSymbolIndex:-1},options:{highlight:!1,highlightColor:"red",color:"black"},bindingStartId:[],bindingEndId:[],msSymbolArray:[],vueKey:Math.random()*Date.now()};switch(e.type){case g.NoteHead:{const n=e.region||{region:M.Main,type:T.Line,index:1};if(!e.chronaxie||![v.whole].includes(e.chronaxie)){const o=F({type:g.NoteStem,direction:st(Q(n))});t.msSymbolArray.push(o)}if(e.chronaxie&&![v.whole,v.half,v.quarter].includes(e.chronaxie)){const o=F({type:g.NoteTail,chronaxie:e.chronaxie||v.quarter,direction:st(n)});t.msSymbolArray.push(o)}return{...t,beamId:-1,type:g.NoteHead,region:n,chronaxie:e.chronaxie||v.quarter}}case g.NoteDot:return{...t,type:g.NoteDot,octave:e.octave??4};case g.NoteNumber:{e.chronaxie&&[v.whole,v.half].includes(e.chronaxie)&&(console.error("noteNumber的时值最大为四分音符"),e.chronaxie=v.quarter);const n={...t,type:g.NoteNumber,solmization:e.solmization||L.DO,chronaxie:e.chronaxie||v.quarter,octave:e.octave??4,beamId:-1};if(e.chronaxie&&![v.quarter].includes(e.chronaxie)){const o=F({type:g.ChronaxieReducingLine,chronaxie:e.chronaxie});t.msSymbolArray.push(o)}return n}case g.ChronaxieIncreasingLine:return{...t,type:g.ChronaxieIncreasingLine};case g.ChronaxieReducingLine:return{...t,type:g.ChronaxieReducingLine,chronaxie:e.chronaxie??v.eighth};case g.Rest:return{...t,type:g.Rest,chronaxie:e.chronaxie||v.quarter};case g.BarLine:{const n=e.barLineType??N.single;return N.endRepeatSign===n||N.startRepeatSign===n?{...t,type:g.BarLine,barLineType:n,loopCount:2}:{...t,type:g.BarLine,barLineType:n}}case g.BarLine_f:{const n=e.barLineType??N.single;return N.endRepeatSign===n||N.startRepeatSign===n?{...t,type:g.BarLine_f,barLineType:n,loopCount:2}:{...t,type:g.BarLine_f,barLineType:n}}case g.NoteStem:return{...t,direction:e.direction||"up",type:g.NoteStem};case g.NoteTail:return{...t,type:g.NoteTail,chronaxie:e.chronaxie||v.quarter,beamType:ze.left,direction:e.direction||"up"};case g.Clef_f:return{...t,type:g.Clef_f,clef:e.clef||S.Treble};case g.Clef:return{...t,type:g.Clef,clef:e.clef||S.Treble};case g.KeySignature:return{...t,type:g.KeySignature,keySignature:e.keySignature||w.C};case g.TimeSignature:return{...t,type:g.TimeSignature,timeSignature:e.timeSignature||{beat:1,chronaxie:4}};case g.Accidental:return{...t,type:g.Accidental,accidental:e.accidental||p.Sharp};default:return console.error("type不被识别,符号模版返回noteHead"),{...t,type:g.NoteHead,region:e.region||{region:M.Main,type:T.Line,index:1},chronaxie:e.chronaxie||v.quarter,beamId:-1}}}function _e(e={}){return{id:Math.random()*Date.now()+2,msSymbolArray:[],type:e.type||R.variable,index:{multipleStavesIndex:-1,singleStaffIndex:-1,measureIndex:-1,msSymbolContainerIndex:-1,msSymbolIndex:-1},bindingStartId:[],bindingEndId:[],options:{highlight:!1,highlightColor:"red",color:"transparent"},vueKey:Math.random()*Date.now(),msTypeName:O.MsSymbolContainer}}function $e(e,t){t.map[e.id]=e}function Ke(e,t){t.map[e]&&delete t.map[e]}function ge(e,t,n){t.msSymbolArray.push(e),qe(t),$e(e,n)}function he(e,t,n,o="after"){if(t.msTypeName===O.MsSymbol){if(typeof o=="number"){console.error("以符号为定位元素添加符号时,position只可以传after或before");return}const l=j(t.index,n).msSymbolContainer,c=j(t.index,n).msSymbol;if(!l)return console.error("符号容器不存在,符号添加失败");if(!c)return console.error("符号不存在,符号添加失败");const s=l.msSymbolArray,m=s.findIndex(d=>d===c);o==="before"?s.splice(m,0,e):s.splice(m+1,0,e),We(l)}else if(t.msTypeName===O.MsSymbolContainer){const l=t;if(!l)return console.error("小节不存在,符号容器添加失败");const c=l.msSymbolArray;if(o===-1||typeof o=="string")c.push(e);else if(o>=0&&o<=c.length)c.splice(o,0,e);else{console.error("索引有误,符号添加失败");return}We(l)}if($e(e,n),!("index"in t))return console.error("当前选中对象缺少index,符号添加失败");const i=j(t.index,n).singleStaff;if(!i)return console.error("单谱表查找出错,符号添加失败");mt(i);const a=Ue(i);Ge(a,n)}function ie(e,t,n,o="after"){if(t.msTypeName===O.MsSymbolContainer){if(typeof o=="number"){console.error("以符号容器为定位元素添加符号容器时,position只可以传after或before");return}const i=j(t.index,n).measure,a=j(t.index,n).msSymbolContainer;if(!i)return console.error("小节不存在,符号容器添加失败");if(!a)return console.error("符号容器不存在,符号容器添加失败");const l=i.msSymbolContainerArray,c=l.findIndex(s=>s===a);o==="before"?l.splice(c,0,e):l.splice(c+1,0,e),Le(i)}else if(t.msTypeName===O.Measure){const i=t;if(!i)return console.error("小节不存在,符号容器添加失败");const a=i.msSymbolContainerArray;if(o===-1||typeof o=="string")a.push(e);else if(o>=0&&o<=a.length)a.splice(o,0,e);else{console.error("索引有误,符号容器添加失败");return}Le(i)}$e(e,n)}function Gt(e,t){const n=j(e.index,t),o=n.measure,i=n.singleStaff;if(!o||!i)return console.error("索引数据出错,符号容器移除失败");const a=o.msSymbolContainerArray,l=a.findIndex(s=>s===e);if(l===-1)return console.error("找不到目标符号容器");a.splice(l,1),Ke(e.id,t),Le(o),Kt(e,t);const c=Ue(i);Ge(c,t)}function $t(e,t){for(let n=t.spanSymbolArray.length-1;n>=0;n--){const o=t.spanSymbolArray[n];(e.bindingStartId.includes(o.id)||e.bindingEndId.includes(o.id))&&(ht(o,t),Ke(o.id,t))}}function Kt(e,t){e.msSymbolArray.forEach(n=>{$t(n,t)});for(let n=t.spanSymbolArray.length-1;n>=0;n--){const o=t.spanSymbolArray[n];(e.bindingStartId.includes(o.id)||e.bindingEndId.includes(o.id))&&(ht(o,t),Ke(o.id,t))}}function ht(e,t){const n=t.spanSymbolArray.indexOf(e),o=e.startTargetId,i=e.endTargetId;t.spanSymbolArray.splice(n,1);const a=e.id,l=t.map[o];l&&"bindingStartId"in l&&l.bindingStartId.indexOf(a)!==-1&&l.bindingStartId.splice(n,1);const c=t.map[i];c&&"bindingEndId"in c&&c.bindingEndId.indexOf(a)!==-1&&c.bindingEndId.splice(n,1)}function Ve(e,t){t.direction=e,t.vueKey=Math.random()*Date.now()}function Ze(e,t){t.direction=e,t.vueKey=Math.random()*Date.now()}function Xt(e,t,n){const o=[];let i="up",a=4,l=!1;for(const c in t.msSymbolContainerArray){const s=t.msSymbolContainerArray[c];for(const m in s.msSymbolArray){const d=s.msSymbolArray[m];if(d.type===g.NoteHead&&![v.whole,v.half,v.quarter].includes(d.chronaxie)){const h=Math.abs(Q(d.region)-4),u=Math.abs(a-4);h>u&&(a=Q(d.region));const f=d.msSymbolArray.find(b=>b.type===g.NoteStem),y=d.msSymbolArray.find(b=>b.type===g.NoteTail);y&&f&&d.beamId===e&&(o.push({noteStem:f,noteTail:y}),l=!0)}else if(l)break}}i=a>=3?"down":"up";for(const c in o){const s=o[c].noteStem,m=o[c].noteTail;Ve(i,s),Ze(i,m)}}z.C,p.None,z.C,p.Sharp,z.D,p.None,z.D,p.Sharp,z.E,p.None,z.F,p.None,z.F,p.Sharp,z.G,p.None,z.G,p.Sharp,z.A,p.None,z.A,p.Sharp,z.B,p.None;const Jt={[w.Cb]:59,[w.Gb]:66,[w.Db]:61,[w.Ab]:68,[w.Eb]:63,[w.Bb]:70,[w.F]:65,[w.C]:60,[w.G]:67,[w.D]:62,[w.A]:69,[w.E]:64,[w.B]:71,"F#":66,"C#":61};function Et(e,t,n,o){const i=Jt[n];let l={[L.DO]:0,[L.RE]:2,[L.MI]:4,[L.FA]:5,[L.SOL]:7,[L.LA]:9,[L.TI]:11}[e];switch(t){case p.Sharp:l+=1;break;case p.Flat:l-=1;break;case p.DoubleSharp:l+=2;break;case p.DoubleFlat:l-=2;break;case p.None:break}return i+(o-4)*12+l}p.Natural,p.Sharp,p.Flat;p.Natural,p.Flat,p.Sharp;function Yt(e,t,n=p.Sharp){const o=["C","D","E","F","G","A","B"],i={0:["C",p.None],1:["C",p.Sharp],2:["D",p.None],3:["D",p.Sharp],4:["E",p.None],5:["F",p.None],6:["F",p.Sharp],7:["G",p.None],8:["G",p.Sharp],9:["A",p.None],10:["A",p.Sharp],11:["B",p.None]},a={0:["C",p.None],1:["D",p.Flat],2:["D",p.None],3:["E",p.Flat],4:["E",p.None],5:["F",p.None],6:["G",p.Flat],7:["G",p.None],8:["A",p.Flat],9:["A",p.None],10:["B",p.Flat],11:["B",p.None]},l=n===p.Sharp?i:a,c=(e%12+12)%12,[s,m]=l[c],d=Math.floor(e/12)-1,h=o.indexOf(s),u=d*7+h;function f(_,W){const V=o.indexOf(_);return W*7+V}const y={[S.Treble]:{diatonic:f("G",4),staffStep:2},[S.MezzoSoprano]:{diatonic:f("C",4),staffStep:2},[S.Alto]:{diatonic:f("C",4),staffStep:4},[S.Tenor]:{diatonic:f("C",4),staffStep:6},[S.BaritoneF]:{diatonic:f("F",3),staffStep:4},[S.BaritoneC]:{diatonic:f("C",4),staffStep:8},[S.Bass]:{diatonic:f("F",3),staffStep:6},[S.Subbass]:{diatonic:f("F",2),staffStep:6}},b=y[t]??y[S.Treble],I=u-b.diatonic+b.staffStep;let A,x,k;if(I>=0&&I<=8)A=M.Main,I%2===0?(x=T.Line,k=Math.floor(I/2)+1):(x=T.Space,k=Math.floor((I+1)/2));else if(I<0){A=M.Lower;const _=-I;_%2===1?(x=T.Space,k=Math.floor((_+1)/2)):(x=T.Line,k=_/2)}else{A=M.Upper;const _=I-8;_%2===1?(x=T.Space,k=Math.floor((_+1)/2)):(x=T.Line,k=_/2)}return{staffRegion:{region:A,type:x,index:k},accidental:m}}const e0={[S.Treble]:{[M.Main]:64,[M.Upper]:79,[M.Lower]:62},[S.MezzoSoprano]:{[M.Main]:57,[M.Upper]:72,[M.Lower]:55},[S.Alto]:{[M.Main]:53,[M.Upper]:69,[M.Lower]:52},[S.Tenor]:{[M.Main]:50,[M.Upper]:65,[M.Lower]:48},[S.BaritoneF]:{[M.Main]:47,[M.Upper]:62,[M.Lower]:45},[S.BaritoneC]:{[M.Main]:53,[M.Upper]:62,[M.Lower]:52},[S.Bass]:{[M.Main]:43,[M.Upper]:60,[M.Lower]:41},[S.Subbass]:{[M.Main]:28,[M.Upper]:43,[M.Lower]:26}},t0=[2,2,1,2,2,2,1],n0={0:0,2:1,4:2,5:3,7:4,9:5,11:6};function o0(e,t){return t=(t%e.length+e.length)%e.length,e.slice(t).concat(e.slice(0,t))}function r0(e,t,n){const o=e0[n];if(!o||typeof o[M.Main]!="number")throw new Error(`No clef mapping for clef ${n}. please add clefMidiMap entry.`);const i=o[M.Main],{region:a,type:l,index:c}=e;if(c<1)throw new Error("StaffRegion.index should be >= 1");let s;if(a===M.Main)s=(c-1)*2+(l===T.Space?1:0);else if(a===M.Upper)s=8+(c-1)*2+(l===T.Space?1:2);else if(a===M.Lower)s=-((c-1)*2+(l===T.Space?1:2));else throw new Error("Unknown StaffRegionEnum: "+a);const m=(i%12+12)%12;let d=n0[m];d===void 0&&(d=0);const h=o0(t0,d);let u=0;if(s>0)for(let y=0;y<s;y++)u+=h[y%h.length];else if(s<0){const y=Math.abs(s);for(let b=0;b<y;b++)(h.length-1-b)%h.length,u-=h[(h.length-1-b%7)%h.length]}let f=0;switch(t){case p.Sharp:f=1;break;case p.Flat:f=-1;break;case p.DoubleSharp:f=2;break;case p.DoubleFlat:f=-2;break;default:f=0}return i+u+f}p.Natural,p.Sharp,p.Flat;p.Natural,p.Flat,p.Sharp;const i0={[w.Cb]:59,[w.Gb]:66,[w.Db]:61,[w.Ab]:68,[w.Eb]:63,[w.Bb]:70,[w.F]:65,[w.C]:60,[w.G]:67,[w.D]:62,[w.A]:69,[w.E]:64,[w.B]:71,"F#":66,"C#":61},a0={0:{sharp:{solmization:L.DO,accidental:p.None},flat:{solmization:L.DO,accidental:p.None}},1:{sharp:{solmization:L.DO,accidental:p.Sharp},flat:{solmization:L.RE,accidental:p.Flat}},2:{sharp:{solmization:L.RE,accidental:p.None},flat:{solmization:L.RE,accidental:p.None}},3:{sharp:{solmization:L.RE,accidental:p.Sharp},flat:{solmization:L.MI,accidental:p.Flat}},4:{sharp:{solmization:L.MI,accidental:p.None},flat:{solmization:L.MI,accidental:p.None}},5:{sharp:{solmization:L.FA,accidental:p.None},flat:{solmization:L.FA,accidental:p.None}},6:{sharp:{solmization:L.FA,accidental:p.Sharp},flat:{solmization:L.SOL,accidental:p.Flat}},7:{sharp:{solmization:L.SOL,accidental:p.None},flat:{solmization:L.SOL,accidental:p.None}},8:{sharp:{solmization:L.SOL,accidental:p.Sharp},flat:{solmization:L.LA,accidental:p.Flat}},9:{sharp:{solmization:L.LA,accidental:p.None},flat:{solmization:L.LA,accidental:p.None}},10:{sharp:{solmization:L.LA,accidental:p.Sharp},flat:{solmization:L.TI,accidental:p.Flat}},11:{sharp:{solmization:L.TI,accidental:p.None},flat:{solmization:L.TI,accidental:p.None}}};function l0(e,t,n=p.Sharp){const o=i0[t],i=e-o,a=(i%12+12)%12,l=Math.floor(i/12)+4,c=a0[a],s=n===p.Sharp?c.sharp:c.flat;return{solmization:s.solmization,accidental:s.accidental,octave:l}}function s0(e){e.showMode=U.numberNotation;for(let t=0;t<e.multipleStavesArray.length;t++){const n=e.multipleStavesArray[t];for(let o=0;o<n.singleStaffArray.length;o++){const i=n.singleStaffArray[o];for(let a=0;a<i.measureArray.length;a++){const l=i.measureArray[a];for(let c=0;c<l.msSymbolContainerArray.length;c++){const s=l.msSymbolContainerArray[c];for(let m=0;m<s.msSymbolArray.length;m++){const d=s.msSymbolArray[m];if(d.type===g.NoteHead){const h=F({type:g.NoteNumber,chronaxie:v.quarter});gt(h,d);const{accidental:u,measureAccidental:f}=ut(d,e);let y=u;f&&y===p.Natural&&(y=f);const b=Qe(d,e),I=dt(d,e),A=r0(d.region,y,b),x=l0(A,I);if(h.solmization=x.solmization,h.octave=x.octave,h.msSymbolArray=[],[v.whole,v.half,v.quarter].includes(d.chronaxie)||(h.chronaxie=d.chronaxie),s.msSymbolArray.splice(m,1),he(h,s,e,m),x.octave!==4){const k=F({type:g.NoteDot,octave:x.octave});ge(k,h,e)}if(![v.whole,v.half,v.quarter].includes(h.chronaxie)){const k=F({type:g.ChronaxieReducingLine,chronaxie:h.chronaxie});ge(k,h,e)}if(x.accidental){const k=F({type:g.Accidental,accidental:x.accidental});ge(k,h,e)}}if(d.type===g.NoteHead){if(d.chronaxie===v.whole){for(let h=0;h<3;h++){const u=F({type:g.ChronaxieIncreasingLine}),f=_e({type:R.variable});ie(f,s,e,"after"),he(u,f,e,"after")}c+=3}else if(d.chronaxie===v.half){const h=F({type:g.ChronaxieIncreasingLine}),u=_e({type:R.variable});ie(u,s,e,"after"),he(h,u,e,"after"),c+=1}}}}}}}}function c0(e){var t;for(let n=0;n<e.multipleStavesArray.length;n++){const o=e.multipleStavesArray[n];for(let i=0;i<o.singleStaffArray.length;i++){const a=o.singleStaffArray[i];for(let l=0;l<a.measureArray.length;l++){const c=a.measureArray[l];for(let s=0;s<c.msSymbolContainerArray.length;s++){const m=c.msSymbolContainerArray[s];for(let d=0;d<m.msSymbolArray.length;d++){const h=m.msSymbolArray[d];if(h.type===g.ChronaxieIncreasingLine){Gt(m,e),s--;continue}if(h.type===g.NoteNumber){const u=F({type:g.NoteHead});gt(u,h);const{accidental:f,measureAccidental:y}=ut(h,e);let b=f;y&&b===p.Natural&&(b=y);const I=Qe(h,e),A=dt(h,e),x=Et(h.solmization,b,A,h.octave),k=Yt(x,I);if(u.region=k.staffRegion,u.vueKey=Date.now(),u.msSymbolArray=[],h.chronaxie===v.quarter){let B=0;for(let _=s+1;_<c.msSymbolContainerArray.length&&((t=c.msSymbolContainerArray[_])==null?void 0:t.msSymbolArray[0]).type===g.ChronaxieIncreasingLine;_++)B++;B===0?u.chronaxie=v.quarter:B===1?u.chronaxie=v.half:B===3&&(u.chronaxie=v.whole)}else u.chronaxie=h.chronaxie;if(m.msSymbolArray.splice(d,1),he(u,m,e,d),k.accidental){const B=F({type:g.Accidental,accidental:k.accidental});ge(B,u,e)}if(zt(u.chronaxie)){const B=F({type:g.NoteStem});B.index=u.index,ge(B,u,e)}if(Pt(u.chronaxie)){const B=F({type:g.NoteTail,chronaxie:u.chronaxie});ge(B,u,e)}}}}}}}e.showMode=U.standardStaff}S.Treble+"",S.MezzoSoprano+"",S.Alto+"",S.Tenor+"",S.BaritoneF+"",S.BaritoneC+"",S.Bass+"",S.Subbass+"";p.Natural,p.Sharp,p.Flat;p.Natural,p.Flat,p.Sharp;function u0(e,t=p.Sharp){const n=e%12,o=Math.floor(e/12)-1,a=(t===p.Sharp?["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"]:["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"])[n];return{letter:a[0],accidental:a[1]??"",octave:o}}console.log(u0(12));z.C+"",z.D+"",z.E+"",z.F+"",z.G+"",z.A+"",z.B+"";p.None+"",p.Sharp+"",p.Flat+"",p.DoubleFlat+"",p.DoubleSharp+"";const d0={[w.Cb]:11,[w.Gb]:6,[w.Db]:1,[w.Ab]:8,[w.Eb]:3,[w.Bb]:10,[w.F]:5,[w.C]:0,[w.G]:7,[w.D]:2,[w.A]:9,[w.E]:4,[w.B]:11,[w["F#"]]:6,[w["C#"]]:1},Z={[g.NoteHead]:{containerType:R.variable,aspectRatio:1,widthRatioConstant:1,category:P.singleMeasure,heightMultiplier:.25,space:{top:0,bottom:0,left:0,right:0}},[g.NoteNumber]:{containerType:R.variable,aspectRatio:1,widthRatioConstant:1,category:P.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[g.NoteDot]:{aspectRatio:{0:1/.7,1:1/.5,2:1/.3,3:1/.1,5:1/.1,6:1/.3,7:1/.5,8:1/.7},category:P.singleMeasure,widthRatioConstant:0,heightMultiplier:{0:.7,1:.5,2:.3,3:.1,5:.1,6:.3,7:.5,8:.7},space:{top:.1,bottom:.1,left:0,right:0}},[g.ChronaxieIncreasingLine]:{containerType:R.variable,aspectRatio:5,widthRatioConstant:1,category:P.singleMeasure,heightMultiplier:.1,space:{top:0,bottom:0,left:0,right:0}},[g.ChronaxieReducingLine]:{aspectRatio:{[v.eighth]:1/.1,[v.sixteenth]:1/.15,[v.thirtySecond]:1/.2,[v.sixtyFourth]:1/.25},category:P.singleMeasure,widthRatioConstant:0,heightMultiplier:{[v.eighth]:.1,[v.sixteenth]:.15,[v.thirtySecond]:.2,[v.sixtyFourth]:.25},space:{top:0,bottom:.1,left:0,right:0}},[g.NoteStem]:{aspectRatio:.05,category:P.singleMeasure,widthRatioConstant:0,heightMultiplier:.75,space:{top:0,bottom:0,left:0,right:0}},[g.NoteTail]:{aspectRatio:{[v.eighth]:4/10,[v.sixteenth]:4/10,[v.thirtySecond]:4/15,[v.sixtyFourth]:4/15,[v.oneTwentyEighth]:4/15,[v.twoFiftySixth]:4/20},category:P.singleMeasure,widthRatioConstant:0,heightMultiplier:.5,space:{top:0,bottom:0,left:0,right:0}},[g.Rest]:{containerType:R.variable,aspectRatio:{[v.whole]:2,[v.half]:2,[v.quarter]:4/10,[v.eighth]:1/2,[v.sixteenth]:1/2,[v.thirtySecond]:5/12,[v.sixtyFourth]:5/14,[v.oneTwentyEighth]:5/14,[v.twoFiftySixth]:5/14},widthRatioConstant:1,category:P.singleMeasure,heightMultiplier:{[v.whole]:1/8,[v.half]:1/8,[v.quarter]:.75,[v.eighth]:.5,[v.sixteenth]:3/4,[v.thirtySecond]:1,[v.sixtyFourth]:5/4,[v.oneTwentyEighth]:6/4,[v.twoFiftySixth]:7/4},space:{top:0,bottom:0,left:0,right:0}},[g.Slur]:{category:P.multipleMeasure,space:{top:0,bottom:0,left:0,right:0}},[g.Tie]:{category:P.multipleMeasure,space:{top:0,bottom:0,left:0,right:0}},[g.DurationDot]:{aspectRatio:1,category:P.singleMeasure,widthRatioConstant:.5,heightMultiplier:.1,space:{top:0,bottom:0,left:0,right:0}},[g.Accidental]:{aspectRatio:{[p.None]:0,[p.Natural]:1/3,[p.Flat]:1/3,[p.Sharp]:1/3,[p.DoubleFlat]:2/3,[p.DoubleSharp]:2/3},category:P.singleMeasure,widthRatioConstant:.5,heightMultiplier:.4,space:{top:0,bottom:0,left:0,right:0}},[g.Tuplet]:{category:P.multipleMeasure,space:{top:0,bottom:0,left:0,right:0}},[g.Clef]:{containerType:R.rearFixed,aspectRatio:{[S.Treble]:.6,[S.Alto]:.5,[S.Bass]:1,[S.BaritoneC]:.5,[S.Tenor]:.5,[S.BaritoneF]:.5,[S.MezzoSoprano]:.5,[S.Subbass]:.5},category:P.singleMeasure,heightMultiplier:{[S.Treble]:5/4,[S.Alto]:3/4,[S.Bass]:3/4,[S.BaritoneC]:3/4,[S.Tenor]:3/4,[S.BaritoneF]:3/4,[S.MezzoSoprano]:3/4,[S.Subbass]:3/4},space:{top:0,bottom:0,left:0,right:0}},[g.Clef_f]:{containerType:R.frontFixed,aspectRatio:{[S.Treble]:.6,[S.Alto]:.5,[S.Bass]:1,[S.BaritoneC]:.5,[S.Tenor]:.5,[S.BaritoneF]:.5,[S.MezzoSoprano]:.5,[S.Subbass]:.5},category:P.singleMeasure,heightMultiplier:{[S.Treble]:6/4,[S.Alto]:1,[S.Bass]:1,[S.BaritoneC]:1,[S.Tenor]:1,[S.BaritoneF]:1,[S.MezzoSoprano]:1,[S.Subbass]:1},space:{top:0,bottom:0,left:0,right:0}},[g.TimeSignature]:{containerType:R.frontFixed,aspectRatio:.6,category:P.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[g.KeySignature]:{containerType:R.frontFixed,aspectRatio:{[w.Cb]:.3*7,[w.Gb]:.3*6,[w.Db]:.3*5,[w.Ab]:.3*4,[w.Eb]:.3*3,[w.Bb]:.3*2,[w.F]:.3,[w.C]:0,[w.G]:.3,[w.D]:.3*2,[w.A]:.3*3,[w.E]:.3*4,[w.B]:.3*5,[w["F#"]]:.3*6,[w["C#"]]:.3*7},category:P.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[g.BarLine]:{containerType:R.rearFixed,aspectRatio:{[N.single]:1/50,[N.final]:13/40,[N.reverseFinal]:13/40,[N.startRepeatSign]:13/40,[N.endRepeatSign]:13/40},category:P.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}},[g.BarLine_f]:{containerType:R.frontFixed,aspectRatio:{[N.single]:1/50,[N.final]:13/40,[N.reverseFinal]:13/40,[N.startRepeatSign]:13/40,[N.endRepeatSign]:13/40},category:P.singleMeasure,heightMultiplier:1,space:{top:0,bottom:0,left:0,right:0}}};function ft(e){let t=0;const n=Z[e.type];if(!n)return console.error("符号没有匹配到正确的information",e),t;if("widthRatioConstant"in n&&(t+=n.widthRatioConstant),e.msSymbolArray)for(let o=0;o<e.msSymbolArray.length;o++){const i=e.msSymbolArray[o],a=Z[i.type];if(!n)return console.error("子符号没有匹配到正确的information",i),t;"widthRatioConstant"in a&&(t+=a.widthRatioConstant)}return t}function Xe(e){let t=0;if(e.msSymbolArray)for(let n=0;n<e.msSymbolArray.length;n++){const o=e.msSymbolArray[n],i=ft(o);t<i&&(t=i)}return t}function le(e,t){let n=0;for(let o=0;o<e.msSymbolContainerArray.length;o++){const i=e.msSymbolContainerArray[o];if(t&&i===t)return n;n+=Xe(i)}return n===0?1:n}function pt(e,t,n){let o=0;for(let i=0;i<e.measureArray.length;i++){const a=e.measureArray[i];o+=le(a,n)}return o}const m0=Object.freeze(Object.defineProperty({__proto__:null,getWidthConstantInMeasure:le,getWidthConstantInMsSymbol:ft,getWidthConstantInMsSymbolContainer:Xe,getWidthConstantInSingleStaff:pt},Symbol.toStringTag,{value:"Module"}));function g0(e){const t=Z[e.type];if("aspectRatio"in t&&typeof t.aspectRatio=="object"){if(e.type===g.KeySignature)return t.aspectRatio[e.keySignature];if(e.type===g.BarLine||e.type===g.BarLine_f)return t.aspectRatio[e.barLineType];if(e.type===g.NoteTail)return t.aspectRatio[e.chronaxie];if(e.type===g.NoteDot)return t.aspectRatio[e.octave];if(e.type===g.ChronaxieReducingLine)return t.aspectRatio[e.chronaxie];if(e.type===g.Clef||e.type===g.Clef_f)return t.aspectRatio[e.clef];if(e.type===g.Accidental)return t.aspectRatio[e.accidental];if(e.type===g.Rest)return t.aspectRatio[e.chronaxie]}return console.error("符号有误或符号不是复合aspectRatio类型"),0}function ue(e){if(!(e!=null&&e.type))return console.error("缺少符号传参,宽高比获取失败"),1;const t=Z[e.type];return"aspectRatio"in t&&typeof t.aspectRatio=="number"?t.aspectRatio:"aspectRatio"in t&&typeof t.aspectRatio=="object"?g0(e):(console.error("未找到符号对应宽高比"),1)}function h0(e){const t=Z[e.type];if("heightMultiplier"in t&&typeof t.heightMultiplier=="object"){if(e.type===g.ChronaxieReducingLine)return t.heightMultiplier[e.chronaxie];if(e.type===g.NoteDot)return t.heightMultiplier[e.octave];if(e.type===g.Rest)return t.heightMultiplier[e.chronaxie];if(e.type===g.Clef_f||e.type===g.Clef)return t.heightMultiplier[e.clef]}return console.error("符号有误或符号不是复合heightMultiplier类型"),0}function De(e){if(!(e!=null&&e.type))return console.error("缺少符号传参,高度乘数获取失败"),1;const t=Z[e.type];return"heightMultiplier"in t&&typeof t.heightMultiplier=="number"?t.heightMultiplier:"heightMultiplier"in t&&typeof t.heightMultiplier=="object"?h0(e):1}function ve(e,t){const n=Z[e.type],o=t.measureHeight;return{top:n.space.top*o,bottom:n.space.bottom*o,left:n.space.left*o,right:n.space.right*o}}const f0=Object.freeze(Object.defineProperty({__proto__:null,getHeightMultiplier:De,getMsSymbolAspectRatio:ue,getSpace:ve},Symbol.toStringTag,{value:"Module"}));function Je(e,t){return t*((7-Q(e))*2)/16}function He(e,t){const n=j(e.index,t).msSymbol,o=t.measureHeight;switch(e==null?void 0:e.type){case g.NoteStem:return e.direction==="up"?-$(e,t)+o/8:o/8;case g.Rest:switch(e.chronaxie){case v.whole:return o/4;case v.half:return o*3/8;case v.quarter:return o*1/8;case v.eighth:return o*2/8;case v.sixteenth:return o*2/8;case v.thirtySecond:return 0;case v.sixtyFourth:return 0;case v.oneTwentyEighth:return 0;case v.twoFiftySixth:return 0;default:return 0}case g.NoteTail:{ne(e,t);const i=n==null?void 0:n.msSymbolArray.find(s=>s.type===g.NoteStem);if(!i)return console.error("找不到符杠,符尾bottom计算失败"),o;const a=o*1/8,l=$(e,t),c=$(i,t);return e.direction==="up"?-c+a:c+a-l}case g.NoteDot:{Z[g.NoteDot];const i=ve(e,t).bottom,a=ve(e,t).top,l=xe(e,t);let c=0;const s=l.msSymbolArray.find(d=>d.type===g.ChronaxieReducingLine);let m=0;if(s&&(m=ve(s,t).bottom,c=$(s,t)),[0,1,2,3].includes(e.octave)){const d=$(e,t);return o-(-d-i-c-m)}else if([5,6,7,8].includes(e.octave))return a;return o}case g.ChronaxieIncreasingLine:{const l=Z[g.ChronaxieIncreasingLine].heightMultiplier*o;return o+-(o/2-l/2)}case g.ChronaxieReducingLine:{Z[g.ChronaxieReducingLine];const i=De(e),a=ve(e,t).bottom,l=i*o;return o-(-l-a)}case g.Clef:switch(e.clef){case S.Treble:return-o*1/8;case S.Alto:return o*1/8;case S.Bass:return o*1/8;default:return o*1/8}case g.Clef_f:switch(e.clef){case S.Treble:return-o*2/8;case S.Alto:return 0;case S.Bass:return 0;default:return 0}default:return 0}}function ne(e,t){var i;if(!e)return 0;const n=t.measureHeight,o=(i=j(e.index,t))==null?void 0:i.msSymbol;switch(o.type){case g.NoteHead:{if(!o||t.showMode===U.numberNotation)return 0;const a=o.region;return Je(a,n)}default:return 0}}function yt(e,t,n=!0){let o=0;t.measureHeight;for(let i of e.msSymbolArray){const a=ne(i,t);n?o=Math.max(a,o):o=Math.max(a,o)}return o}function Ee(e,t){let n=1e4;for(let o of e.msSymbolArray){const i=ne(o,t);let a=0;if(o.msSymbolArray)for(let l of o.msSymbolArray)a=Math.min(a,He(l,t));n=Math.min(i+a,n)}return n}function vt(e,t,n){let o=1e4;return qt(e,t,n,i=>{const a=Ee(i,n);o=Math.min(o,a)}),o}function St(e,t,n=!0){let o=0;for(let i of e.msSymbolContainerArray){const a=yt(i,t,n);o=Math.max(a,o)}return o}function Ye(e,t){let n=1e4;for(let o of e.msSymbolContainerArray){const i=Ee(o,t);n=Math.min(i,n)}return n}function p0(e,t,n=!0){let o=0;for(let i of e.measureArray){const a=St(i,t,n);o=Math.max(a,o)}return o}function y0(e,t){let n=1e4;for(let o of e.measureArray){const i=Ye(o,t);n=Math.min(i,n)}return n}function et(e,t,n){let o=0;return Wt(t,{level:"multipleStaves",order:"asc",callback:({multipleStaves:i})=>{if(!i)return!0;o+=i.multipleStavesPaddingTop;for(let a of i.singleStaffArray){o+=a.singleStaffPaddingTop;for(let l of a.measureArray)if(l===e)return!0;o+=a.singleStaffPaddingBottom+a.singleStaffMarginBottom+t.measureHeight}return o+=i.multipleStavesPaddingBottom+i.multipleStavesMarginBottom,!1}}),o}const v0=Object.freeze(Object.defineProperty({__proto__:null,getMaxMsSymbolTopInMeasure:St,getMaxMsSymbolTopInMsSymbolContainer:yt,getMaxMsSymbolTopInSingleStaff:p0,getMeasureTopToMusicScore:et,getMinMsSymbolTopBetweenMsSymbolContainer:vt,getMinMsSymbolTopInMeasure:Ye,getMinMsSymbolTopInMsSymbolContainer:Ee,getMinMsSymbolTopInSingleStaff:y0,getMsSymbolTopToSlot:He,getSlotTopToMeasure:ne,staffRegionToTop:Je},Symbol.toStringTag,{value:"Module"}));function bt(e,t){const n=j(e.index,t).msSymbol,o=Z[e==null?void 0:e.type],i=t.measureHeight;let a=0;if("heightMultiplier"in o){const m=o.heightMultiplier;a=i*m}const l=i*1/8,c=j(n.index,t).measure;if(!c)return console.error("索引找不到measure,符杠height计算失败"),0;const s=we(n.beamId,c);if(n.beamId===-1||!s||s.length===0){const m=ne(e,t);return e.direction==="up"?Math.max(a,Math.abs(m)-(i-a)+l):Math.max(a,Math.abs(m)+a-l)}else{const m=ne(e,t);if(e.direction==="up"){const d=s.reduce((u,f)=>{const y=u,b=f.note;return Q(y.region)<Q(b.region)?f.note:u},s[0].note),h=ne(d,t);return Q(d.region)>0?d===n?a:Math.abs(m)-i+Math.abs(h-i)+a:Math.abs(m)-i+l+a}else{const d=s.reduce((u,f)=>{const y=u,b=f.note;return Q(y.region)>Q(b.region)?b:u},s[0].note),h=ne(d,t);return Q(d.region)<8?d===n?a:Math.abs(m)+h+a:Math.abs(m)-l+a}}}function $(e,t){Z[e==null?void 0:e.type];const n=t.measureHeight,o=De(e);switch(e.type){case g.NoteStem:return bt(e,t);default:return n*o}}const S0=Object.freeze(Object.defineProperty({__proto__:null,getMsSymbolHeight:$,getNoteStemHeight:bt},Symbol.toStringTag,{value:"Module"}));function Se(e,t){let n=0;for(let o=0;o<e.msSymbolArray.length;o++){const i=e.msSymbolArray[o],a=Z[i.type];let l=0;"aspectRatio"in a&&typeof a.aspectRatio=="number"?l+=a.aspectRatio*t:"aspectRatio"in a&&typeof a.aspectRatio=="object"?i.type===g.KeySignature?l+=a.aspectRatio[i.keySignature]*t:i.type===g.BarLine||i.type===g.BarLine_f?l+=a.aspectRatio[i.barLineType]*t:(i.type===g.Clef||i.type===g.Clef_f)&&(l+=a.aspectRatio[i.clef]*t):console.error("符号的svg宽高比不存在"),n<l&&(n=l)}return n}function E(e,t,n,o,i){const a=o.measureHeight;if(!e||!t)return console.error("缺少必要的参数,坐标计算出错"),0;let l=0;const c=e.type;if([R.frontFixed,R.rearFixed].includes(c))l=Se(e,a);else{const s=J(t,a),m=le(t),d=Xe(e);l=(se(t,n,o,i)-s)/m*d}return l}function se(e,t,n,o){const i=pt(t,n.showMode),a=le(e),l=xt(t,n.measureHeight),c=J(e,n.measureHeight),s=t.measureArray.length,m=o-l,d=m/i*n.widthDynamicRatio,h=m*(1-n.widthDynamicRatio)/s;return d*a+c+h}function J(e,t,n="all",o){let i=0;for(let a=0;a<e.msSymbolContainerArray.length;a++){const l=e.msSymbolContainerArray[a];if(o&&o===l)return i;const c=l.type;(n==="all"&&[R.frontFixed,R.rearFixed].includes(c)||n==="front"&&[R.frontFixed].includes(c)||n==="rear"&&[R.rearFixed].includes(c))&&(i+=Se(l,t))}return i}function xt(e,t,n="all",o){let i=0;return e.measureArray.forEach(a=>{i+=J(a,t,n,o)}),i}function tt(e,t,n,o,i,a,l){const c=ue(e),s=$(e,a),m=we(t.beamId,o);return m.length>1?t.id===m[0].note.id||t.id===m[m.length-1].note.id?E(n,o,i,a,l)/2:E(n,o,i,a,l):s*c}function fe(e,t,n,o,i,a){const l=i.measureHeight,c=ue(e),s=De(e),m=$(e,i);switch(e==null?void 0:e.type){case g.NoteStem:return l*s*c;case g.NoteTail:{const d=j(e.index,i).msSymbol;return d?tt(e,d,t,n,o,i,a):(console.error("音符头索引失败,符尾宽度计算失败"),m*c)}default:return m*c}}function be(e,t,n=!1){const o=n?e:xe(e,t),i=ue(o);return $(o,t)*i}const b0=Object.freeze(Object.defineProperty({__proto__:null,getMeasureWidth:se,getMsSymbolContainerWidth:E,getMsSymbolSlotWidth:be,getMsSymbolWidth:fe,getNoteTailWidth:tt,getWidthFixedContainerWidth:Se,getWidthFixedContainerWidthSumInMeasure:J,getWidthFixedContainerWidthSumInSingleStaff:xt},Symbol.toStringTag,{value:"Module"})),x0=["onMousedown"],w0=["onMousedown"],C0=r.defineComponent({__name:"measureContainer",props:{musicScore:{type:Object,default:{}},disabled:{type:Boolean,default:!0},width:{type:Number,default:1e3},height:{type:Number,default:800}},emits:["singleStaffMouseDown","multipleStavesMouseDown"],setup(e,{emit:t}){const n=e,o=t,i=r.computed(()=>s=>({"grid-template-rows":`repeat(${s.singleStaffArray.length},1fr)`,"padding-top":s.multipleStavesPaddingTop+"px","padding-bottom":s.multipleStavesPaddingBottom+"px","margin-bottom":s.multipleStavesMarginBottom+"px","pointer-events":n.disabled?"none":"auto",outline:"1px solid "+(s.options.highlight?s.options.highlightColor:s.options.color)})),a=r.computed(()=>(s,m)=>({"grid-template-columns":`repeat(${s.measureArray.length},1fr)`,"padding-top":s.singleStaffPaddingTop+"px","padding-bottom":s.singleStaffPaddingBottom+"px","margin-bottom":s.singleStaffMarginBottom+"px","pointer-events":n.disabled?"none":"auto",outline:"1px solid "+(s.options.highlight?s.options.highlightColor:s.options.color)})),l=r.computed(()=>(s,m,d)=>se(s,m,n.musicScore,n.width)),c=r.computed(()=>(s,m,d)=>{let h={};return h.height=n.musicScore.measureHeight+"px",h.width=l.value(s,m,d)+"px",h.pointerEvents=n.disabled?"none":"auto",h});return(s,m)=>(r.openBlock(),r.createElementBlock("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.musicScore.multipleStavesArray,(d,h)=>(r.openBlock(),r.createElementBlock("div",{key:"multipleStaves"+h,style:r.normalizeStyle(i.value(d)),class:"multipleStaves",onMousedown:r.withModifiers(u=>o("multipleStavesMouseDown",u,d),["self"])},[r.renderSlot(s.$slots,"multipleStaves",{},void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.singleStaffArray,(u,f)=>(r.openBlock(),r.createElementBlock("div",{key:"singleStaff"+f,style:r.normalizeStyle(a.value(u,d)),class:"singleStaff",onMousedown:r.withModifiers(y=>o("singleStaffMouseDown",y,u),["self"])},[r.renderSlot(s.$slots,"singleStaff",{},void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.measureArray,(y,b)=>(r.openBlock(),r.createElementBlock("div",{key:"measure"+b,style:r.normalizeStyle(c.value(y,u,d)),class:"measureSlot"},[r.renderSlot(s.$slots,"default",{measure:y,measureIndex:b,measureWidth:l.value(y,u,d),multipleStaves:d,multipleStavesIndex:h,singleStaff:u,singleStaffIndex:f},void 0,!0)],4))),128))],44,w0))),128))],44,x0))),128))]))}}),je=G(C0,[["__scopeId","data-v-a1e2844f"]]);function Be(e,t,n){const o=j(e.index,t);if(o.singleStaff==null)return console.error("没有单谱表信息,无法计算小节left"),0;let i=0;for(let a of o.singleStaff.measureArray){if(a===e)return i;i+=se(a,o.singleStaff,t,n)}return i}function wt(e,t,n,o,i,a,l,c,s){const m=a.measureHeight;if(!n||!o||!i)return console.error("数据索引有误,符尾left计算出错"),0;const d=fe(e,n,o,i,a,s),h=we(t.beamId,o),u=Z[g.NoteStem];if(!("aspectRatio"in u)||typeof u.aspectRatio!="number")return console.error("符杠aspectRatio获取失败,符尾left计算出错"),0;if(h.length>1)return t.id===h[0].note.id?e.direction==="up"?l:0:t.id===h[h.length-1].note.id?e.direction==="up"?-d+l:-d:-Re(t,n,o,i,a,l,s);if(e.direction==="up")return l;{const f=Z[g.NoteStem];if(!("aspectRatio"in f)||typeof f.aspectRatio!="number")return console.error("符杠aspectRatio获取失败,符杠left计算出错"),0;const y=f.heightMultiplier;return m*y*f.aspectRatio}}function nt(e,t,n,o,i,a,l,c,s=!1){const m=s?e:xe(e,i),d=be(e,i),h=fe(e,t,n,o,i,c);switch(e==null?void 0:e.type){case g.NoteHead:return 0;case g.NoteStem:return e.direction==="up"?d-h:0;case g.NoteTail:return m.type!==g.NoteHead?(console.error("找不到音符头,符尾left计算出错"),0):wt(e,m,t,n,o,i,d,l,c);case g.Accidental:return-h;case g.NoteDot:{const u=fe(e,t,n,o,i,c);return d/2-u/2}}return 0}function Re(e,t,n,o,i,a,l,c=!1){const s=c?e:xe(e,i),m=E(t,n,o,i,l);switch(i.measureHeight,s==null?void 0:s.type){case g.NoteHead:return m/2-a/2;case g.NoteNumber:return m/2-a/2;case g.Rest:return m/2-a/2;case g.ChronaxieIncreasingLine:return m/2-a/2}return 0}function ot(e,t,n,o,i){const a=o.measureHeight;if(!e||!t||!n)return console.error("缺少必要的参数,坐标计算出错"),0;let l=0;const c=e.type;if([R.frontFixed].includes(c))l=J(t,a,"front",e);else if([R.rearFixed].includes(c))l=i-J(t,a)+J(t,a,"all",e);else{const s=J(t,a),m=le(t),d=le(t,e),h=J(t,a,"front");l=(i-s)/m*d+h}return l}function Oe(e,t,n,o,i,a,l,c,s=!1){const m=s?e:xe(e,i),d=Re(m,t,n,o,i,a,c),h=ot(t,n,o,i,l);return d+h}const I0=Object.freeze(Object.defineProperty({__proto__:null,getContainerLeftToMeasure:ot,getMeasureLeftToMusicScore:Be,getMsSymbolLeftToSlot:nt,getNoteTailLeftToSlot:wt,getSlotLeftToContainer:Re,getSlotLeftToMeasure:Oe},Symbol.toStringTag,{value:"Module"})),M0=["src"],k0=r.defineComponent({__name:"noteTail",props:{noteTail:{type:Object,required:!0},noteHead:{type:Object,required:!0},preContainer:{type:Object},nextContainer:{type:Object},msSymbolContainer:{type:Object,required:!0},measure:{type:Object,required:!0},singleStaff:{type:Object,required:!0},musicScore:{type:Object,required:!0},parentMsSymbol:{type:Object},slotLeft:{type:Number,required:!0},measureWidth:{type:Number,required:!0},componentWidth:{type:Number,required:!0}},setup(e){const t=e,{svgSkin:n,isOriginSkin:o}=r.inject("skin"),i=r.computed(()=>we(t.noteHead.beamId,t.measure));r.computed(()=>ue(t.noteTail));const a=r.computed(()=>{var u;switch((u=t.noteTail)==null?void 0:u.chronaxie){case v.eighth:return 1;case v.sixteenth:return 2}return 0}),l=r.computed(()=>$(t.noteTail,t.musicScore)),c=r.computed(()=>t.noteTail.type===g.NoteTail&&t.nextContainer?tt(t.noteTail,t.noteHead,t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth):fe(t.noteTail,t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)),s=r.computed(()=>{var f,y;const u={width:`${c.value}px`,height:`${l.value}px`,display:"flex",flexDirection:((f=t.noteTail)==null?void 0:f.direction)==="up"?"column":"column-reverse",position:"absolute",left:m.value+"px",top:d.value+"px",background:t.noteTail.options.highlight?t.noteTail.options.highlightColor:t.noteTail.options.color};return h.value&&i.value.length<2?(u.mask=`url("${h.value}") center center / cover no-repeat`,((y=t.noteTail)==null?void 0:y.direction)==="down"&&(u.transform="scaleY(-1)")):u.background="transparent",u}),m=r.computed(()=>nt(t.noteTail,t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.slotLeft,t.measureWidth,t.componentWidth)),d=r.computed(()=>He(t.noteTail,t.musicScore)),h=r.computed(()=>{switch(t.noteTail.chronaxie){case v.eighth:return t.noteTail.options.highlight?n.value.active_noteTail_8.url:n.value.noteTail_8.url;case v.sixteenth:return t.noteTail.options.highlight?n.value.active_noteTail_16.url:n.value.noteTail_16.url;case v.thirtySecond:return t.noteTail.options.highlight?n.value.active_noteTail_32.url:n.value.noteTail_32.url;case v.sixtyFourth:return t.noteTail.options.highlight?n.value.active_noteTail_64.url:n.value.noteTail_64.url;case v.oneTwentyEighth:return t.noteTail.options.highlight?n.value.active_noteTail_128.url:n.value.noteTail_128.url;case v.twoFiftySixth:return t.noteTail.options.highlight?n.value.active_noteTail_256.url:n.value.noteTail_256.url;default:return""}});return(u,f)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(o)?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(s.value)},null,4)):(r.openBlock(),r.createElementBlock("img",{key:1,src:h.value,style:r.normalizeStyle(s.value)},null,12,M0)),i.value.length>1?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:2},r.renderList(a.value*2-1,(y,b)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({backgroundColor:b%2===0?"black":"transparent",height:l.value/5+"px",width:"100%"})},null,4))),256)):r.createCommentVNode("",!0)],64))}}),L0=r.defineComponent({__name:"timeSignature",props:{timeSignature:{type:Object,required:!0},measureHeight:{type:Number,default:60}},setup(e){const t=e,n=r.computed(()=>({fontSize:t.measureHeight/3+"px",userSelect:"none",color:t.timeSignature.options.highlight?t.timeSignature.options.highlightColor:t.timeSignature.options.color}));return(o,i)=>e.timeSignature&&e.timeSignature.type===r.unref(g).TimeSignature?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(n.value),class:"timeSignature"},[r.createElementVNode("div",null,r.toDisplayString(e.timeSignature.timeSignature.beat),1),r.createElementVNode("div",null,r.toDisplayString(e.timeSignature.timeSignature.chronaxie),1)],4)):r.createCommentVNode("",!0)}}),A0=G(L0,[["__scopeId","data-v-74f3a255"]]),_0={key:0,class:"keySignature"},B0={key:1,class:"keySignature"},N0=["src"],D0=r.defineComponent({__name:"keySignature",props:{keySignature:{type:Object,required:!0},slotWidth:{type:Number,default:50},measureHeight:{type:Number,default:60},musicScore:{type:Object,default:{}}},setup(e){const t=e,{svgSkin:n,isOriginSkin:o}=r.inject("skin"),i=r.computed(()=>t.keySignature?Qe(t.keySignature,t.musicScore):S.Treble),a=r.computed(()=>{const u={Cb:{type:"flat",count:7},Gb:{type:"flat",count:6},Db:{type:"flat",count:5},Ab:{type:"flat",count:4},Eb:{type:"flat",count:3},Bb:{type:"flat",count:2},F:{type:"flat",count:1},C:{type:"none",count:0},G:{type:"sharp",count:1},D:{type:"sharp",count:2},A:{type:"sharp",count:3},E:{type:"sharp",count:4},B:{type:"sharp",count:5},"F#":{type:"sharp",count:6},"C#":{type:"sharp",count:7}};return t.keySignature.type===g.KeySignature?u[t.keySignature.keySignature]:(console.error("keySignature出错,没有keySignature属性",t.keySignature),u[w.C])}),l=r.computed(()=>{var u;return(u=t.keySignature)!=null&&u.options.highlight?a.value.type==="sharp"?n.value.active_accidental_sharp.url:n.value.active_accidental_flat.url:a.value.type==="sharp"?n.value.accidental_sharp.url:n.value.accidental_flat.url}),c=r.computed(()=>t.measureHeight/8),s={[S.Treble]:[8,5,9,6,3,7,4],[S.Alto]:[7,4,8,5,2,6,3],[S.Bass]:[6,3,7,4,1,5,2]},m={[S.Treble]:[5,8,4,7,3,6,2],[S.Alto]:[4,7,3,6,2,5,1],[S.Bass]:[3,6,2,5,1,4,0]},d=r.computed(()=>a.value.type==="sharp"?(s[i.value]||s[S.Treble]).slice(0,a.value.count).map(f=>f*c.value):a.value.type==="flat"?(m[i.value]||m[S.Treble]).slice(0,a.value.count).map(f=>f*c.value):[]),h=r.computed(()=>{const u=t.measureHeight*.5,f=t.measureHeight*.25;return(y,b)=>({width:u+"px",height:u+"px",position:"absolute",pointerEvents:"none",left:`${y*f}px`,top:`${t.measureHeight-b-u/2}px`,backgroundColor:t.keySignature.options.highlight?t.keySignature.options.highlightColor:t.keySignature.options.color,maskImage:`url("${l.value}")`,WebkitMaskImage:`url("${l.value}")`,maskRepeat:"no-repeat",WebkitMaskRepeat:"no-repeat",maskSize:"contain",WebkitMaskSize:"contain",maskPosition:"center",WebkitMaskPosition:"center"})});return(u,f)=>r.unref(o)?(r.openBlock(),r.createElementBlock("div",_0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(y,b)=>(r.openBlock(),r.createElementBlock("div",{key:b,style:r.normalizeStyle(h.value(b,y)),class:"symbol"},null,4))),128))])):(r.openBlock(),r.createElementBlock("div",B0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(y,b)=>(r.openBlock(),r.createElementBlock("img",{key:b,src:l.value,style:r.normalizeStyle(h.value(b,y)),class:"symbol"},null,12,N0))),128))]))}}),H0=G(D0,[["__scopeId","data-v-8485dd0d"]]),R0=["src"],T0=r.defineComponent({__name:"clef",props:{clef:{type:Object,required:!0},musicScore:{required:!0,type:Object}},setup(e){const t=e,{svgSkin:n,isOriginSkin:o}=r.inject("skin"),i=r.computed(()=>{let l="";return t.clef.clef===ke.Treble?l=n.value.clef_treble.url:t.clef.clef===ke.Alto?l=n.value.clef_alto.url:t.clef.clef===ke.Bass&&(l=n.value.clef_bass.url),l}),a=r.computed(()=>{var c,s,m;const l={};return o.value&&(l.mask=`url("${i.value}") center center / 100% 100% no-repeat`,l.backgroundColor=(c=t.clef)!=null&&c.options.highlight?(s=t.clef)==null?void 0:s.options.highlightColor:(m=t.clef)==null?void 0:m.options.color),l});return(l,c)=>r.unref(o)?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(a.value),comment:"谱号"},null,4)):(r.openBlock(),r.createElementBlock("img",{key:1,src:i.value,comment:"谱号"},null,8,R0))}}),j0=["src"],P0=["src"],z0=["src"],W0=r.defineComponent({__name:"msSymbol",props:{msSymbol:{type:Object,required:!0},msSymbolContainer:{type:Object,required:!0},preContainer:{type:Object},nextContainer:{type:Object},measure:{type:Object,required:!0},measureWidth:{type:Number,required:!0},singleStaff:{type:Object,required:!0},musicScore:{type:Object,required:!0},containerWidth:{type:Number,required:!0},isMain:{type:Boolean,default:!1},measureHeight:{type:Number,required:!0},parentMsSymbol:{type:Object},slotWidth:{type:Number,required:!0},slotTop:{type:Number,required:!0},slotLeft:{type:Number,required:!0},componentWidth:{type:Number,required:!0},componentHeight:{type:Number,required:!0}},emits:["msSymbolMouseDown","msSymbolMouseUp"],setup(e,{expose:t,emit:n}){const o=e,{svgSkin:i,isOriginSkin:a}=r.inject("skin");r.watch(()=>{var x;return(x=o.msSymbol)==null?void 0:x.vueKey},()=>{l()});function l(){var x,k,B,_,W,V,q;switch((x=o.msSymbol)==null?void 0:x.type){case g.NoteHead:switch((k=o.msSymbol)==null?void 0:k.chronaxie){case v.whole:return o.msSymbol.options.highlight?i.value.active_noteHead_1.url:i.value.noteHead_1.url;case v.half:return o.msSymbol.options.highlight?i.value.active_noteHead_2.url:i.value.noteHead_2.url;case v.quarter:return o.msSymbol.options.highlight?i.value.active_noteHead_4.url:i.value.noteHead_4.url;default:return o.msSymbol.options.highlight?i.value.active_noteHead_4.url:i.value.noteHead_4.url}case g.Rest:switch((B=o.msSymbol)==null?void 0:B.chronaxie){case v.whole:return o.msSymbol.options.highlight?i.value.active_rest_1.url:i.value.rest_1.url;case v.half:return o.msSymbol.options.highlight?i.value.active_rest_2.url:i.value.rest_2.url;case v.quarter:return o.msSymbol.options.highlight?i.value.active_rest_4.url:i.value.rest_4.url;case v.eighth:return o.msSymbol.options.highlight?i.value.active_rest_8.url:i.value.rest_8.url;case v.sixteenth:return o.msSymbol.options.highlight?i.value.active_rest_16.url:i.value.rest_16.url;case v.thirtySecond:return o.msSymbol.options.highlight?i.value.active_rest_32.url:i.value.rest_32.url;case v.sixtyFourth:return o.msSymbol.options.highlight?i.value.active_rest_64.url:i.value.rest_64.url;case v.oneTwentyEighth:return o.msSymbol.options.highlight?i.value.active_rest_128.url:i.value.rest_128.url;case v.twoFiftySixth:return o.msSymbol.options.highlight?i.value.active_rest_256.url:i.value.rest_256.url;default:return o.msSymbol.options.highlight?i.value.active_rest_4.url:i.value.rest_4.url}case g.NoteStem:return o.msSymbol.options.highlight?i.value.active_noteStem.url:i.value.noteStem.url;case g.NoteTail:return"";case g.Clef:return"";case g.Clef_f:return"";case g.BarLine:{switch((_=o.msSymbol)==null?void 0:_.barLineType){case N.single:return o.msSymbol.options.highlight?i.value.active_barline_single.url:i.value.barline_single.url;case N.final:return o.msSymbol.options.highlight?i.value.active_barLine_final.url:i.value.barLine_final.url;case N.reverseFinal:return o.msSymbol.options.highlight?i.value.active_barline_reverseFinal.url:i.value.barline_reverseFinal.url;case N.startRepeatSign:return o.msSymbol.options.highlight?i.value.active_barline_startRepeatSign.url:i.value.barline_startRepeatSign.url;case N.endRepeatSign:return o.msSymbol.options.highlight?i.value.active_barLine_endRepeatSign.url:i.value.barLine_endRepeatSign.url}return""}case g.BarLine_f:{switch((W=o.msSymbol)==null?void 0:W.barLineType){case N.single:return o.msSymbol.options.highlight?i.value.active_barline_single.url:i.value.barline_single.url;case N.final:return o.msSymbol.options.highlight?i.value.activebarLine_final.url:i.value.barLine_final.url;case N.reverseFinal:return o.msSymbol.options.highlight?i.value.active_barline_reverseFinal.url:i.value.barline_reverseFinal.url;case N.startRepeatSign:return o.msSymbol.options.highlight?i.value.active_barline_startRepeatSign.url:i.value.barline_startRepeatSign.url;case N.endRepeatSign:return o.msSymbol.options.highlight?i.value.active_barLine_endRepeatSign.url:i.value.barLine_endRepeatSign.url}return console.error("未知的小节线类型",o.msSymbol),""}case g.KeySignature:return"";case g.TimeSignature:return"";case g.Accidental:{switch((V=o.msSymbol)==null?void 0:V.accidental){case p.Sharp:return o.msSymbol.options.highlight?i.value.active_accidental_sharp.url:i.value.accidental_sharp.url;case p.Flat:return o.msSymbol.options.highlight?i.value.active_accidental_flat.url:i.value.accidental_flat.url;case p.Natural:return o.msSymbol.options.highlight?i.value.active_accidental_nature.url:i.value.accidental_nature.url;case p.DoubleSharp:return o.msSymbol.options.highlight?i.value.active_accidental_doubleSharp.url:i.value.accidental_doubleSharp.url;case p.DoubleFlat:return o.msSymbol.options.highlight?i.value.active_accidental_doubleFlat.url:i.value.accidental_doubleFlat.url}return console.error("未知的变音符号",o.msSymbol),""}case g.NoteNumber:switch((q=o.msSymbol)==null?void 0:q.solmization){case L.DO:return o.msSymbol.options.highlight?i.value.active_number_1.url:i.value.number_1.url;case L.RE:return o.msSymbol.options.highlight?i.value.active_number_2.url:i.value.number_2.url;case L.MI:return o.msSymbol.options.highlight?i.value.active_number_3.url:i.value.number_3.url;case L.FA:return o.msSymbol.options.highlight?i.value.active_number_4.url:i.value.number_4.url;case L.SOL:return o.msSymbol.options.highlight?i.value.active_number_5.url:i.value.number_5.url;case L.LA:return o.msSymbol.options.highlight?i.value.active_number_6.url:i.value.number_6.url;case L.TI:return o.msSymbol.options.highlight?i.value.active_number_7.url:i.value.number_7.url;default:return o.msSymbol.options.highlight?i.value.active_number_1.url:i.value.number_1.url}case g.NoteDot:switch(o.msSymbol.octave){case 0:return i.value.noteDot_4.url;case 1:return i.value.noteDot_3.url;case 2:return i.value.noteDot_2.url;case 3:return i.value.noteDot_1.url;case 5:return i.value.noteDot_1.url;case 6:return i.value.noteDot_2.url;case 7:return i.value.noteDot_3.url;case 8:return i.value.noteDot_4.url;default:return""}case g.ChronaxieReducingLine:switch(o.msSymbol.chronaxie){case v.eighth:return i.value.chronaxieReducingLine_1.url;case v.sixteenth:return i.value.chronaxieReducingLine_2.url;case v.thirtySecond:return i.value.chronaxieReducingLine_3.url;case v.sixtyFourth:return i.value.chronaxieReducingLine_4.url;default:return""}case g.ChronaxieIncreasingLine:return o.msSymbol.options.highlight?i.value.active_chronaxieIncreasingLine.url:i.value.chronaxieIncreasingLine.url;default:return console.error("未知的符号类别",o.msSymbol),""}}const c=r.computed(()=>l()),s=r.ref(null),m=r.computed(()=>ue(o.msSymbol)),d=r.computed(()=>$(o.msSymbol,o.musicScore)),h=r.computed(()=>fe(o.msSymbol,o.msSymbolContainer,o.measure,o.singleStaff,o.musicScore,o.componentWidth)),u=r.computed(()=>nt(o.msSymbol,o.msSymbolContainer,o.measure,o.singleStaff,o.musicScore,o.slotLeft,o.measureWidth,o.componentWidth)),f=r.computed(()=>He(o.msSymbol,o.musicScore)),y=r.computed(()=>{var k;const x={width:`${h.value}px`,height:`${d.value}px`,position:"absolute",pointerEvents:"auto",left:u.value+"px",top:f.value+"px"};return(k=o.msSymbol)!=null&&k.type&&[g.KeySignature,g.TimeSignature,g.NoteTail].includes(o.msSymbol.type)&&(x.background="unset"),c.value&&a&&(x.mask=`url("${c.value}") no-repeat center`,x["mask-size"]="100% 100%",x.backgroundColor=o.msSymbol.options.highlight?o.msSymbol.options.highlightColor:o.msSymbol.options.color),x}),b=n;function I(x){b("msSymbolMouseDown",x,o.msSymbol)}function A(x){b("msSymbolMouseUp",x,o.msSymbol)}return r.onMounted(()=>{}),t({aspectRatio:m}),(x,k)=>{var B,_,W,V,q,oe,de;return((B=e.msSymbol)==null?void 0:B.type)===r.unref(g).Clef||((_=e.msSymbol)==null?void 0:_.type)===r.unref(g).Clef_f&&"clef"in e.msSymbol?r.withDirectives((r.openBlock(),r.createBlock(T0,{key:0,clef:e.msSymbol,musicScore:e.musicScore,style:r.normalizeStyle(y.value),onMouseup:r.withModifiers(A,["self"]),onMousedown:r.withModifiers(I,["self"])},null,8,["clef","musicScore","style"])),[[r.vShow,e.musicScore.showMode===r.unref(U).standardStaff]]):((W=e.msSymbol)==null?void 0:W.type)===r.unref(g).KeySignature?r.withDirectives((r.openBlock(),r.createBlock(H0,{key:1,keySignature:e.msSymbol,"measure-height":e.measureHeight,musicScore:e.musicScore,slotWidth:e.slotWidth,style:r.normalizeStyle(y.value),onMouseup:r.withModifiers(A,["self"]),onMousedown:r.withModifiers(I,["self"])},null,8,["keySignature","measure-height","musicScore","slotWidth","style"])),[[r.vShow,e.musicScore.showMode===r.unref(U).standardStaff]]):((V=e.msSymbol)==null?void 0:V.type)===r.unref(g).TimeSignature?r.withDirectives((r.openBlock(),r.createBlock(A0,{key:2,"measure-height":e.measureHeight,style:r.normalizeStyle(y.value),"time-signature":e.msSymbol,onMouseup:r.withModifiers(A,["self"]),onMousedown:r.withModifiers(I,["self"])},null,8,["measure-height","style","time-signature"])),[[r.vShow,e.musicScore.showMode===r.unref(U).standardStaff]]):((q=e.msSymbol)==null?void 0:q.type)===r.unref(g).NoteTail?r.withDirectives((r.openBlock(),r.createBlock(k0,{key:3,"component-width":e.componentWidth,measure:e.measure,"measure-width":e.measureWidth,"ms-symbol-container":e.msSymbolContainer,musicScore:e.musicScore,"next-container":e.nextContainer?e.nextContainer:null,noteHead:e.parentMsSymbol,noteTail:e.msSymbol,"pre-container":e.preContainer?e.preContainer:null,"single-staff":e.singleStaff,"slot-left":e.slotLeft},null,8,["component-width","measure","measure-width","ms-symbol-container","musicScore","next-container","noteHead","noteTail","pre-container","single-staff","slot-left"])),[[r.vShow,e.musicScore.showMode===r.unref(U).standardStaff]]):((oe=e.msSymbol)==null?void 0:oe.type)===r.unref(g).NoteStem&&r.unref(a)?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:4,ref_key:"msSymbolRef",ref:s,style:r.normalizeStyle(y.value),class:"msSymbol",onMouseup:r.withModifiers(A,["self"]),onMousedown:r.withModifiers(I,["self"])},null,36)),[[r.vShow,e.musicScore.showMode===r.unref(U).standardStaff]]):((de=e.msSymbol)==null?void 0:de.type)===r.unref(g).NoteStem?r.withDirectives((r.openBlock(),r.createElementBlock("img",{key:5,ref_key:"msSymbolRef",ref:s,src:c.value,style:r.normalizeStyle(y.value),class:"msSymbol",onMouseup:r.withModifiers(A,["self"]),onMousedown:r.withModifiers(I,["self"])},null,44,j0)),[[r.vShow,e.musicScore.showMode===r.unref(U).standardStaff]]):r.unref(a)?(r.openBlock(),r.createElementBlock("div",{key:6,ref_key:"msSymbolRef",ref:s,src:c.value,style:r.normalizeStyle(y.value),class:"msSymbol",onMouseup:r.withModifiers(A,["self"]),onMousedown:r.withModifiers(I,["self"])},null,44,P0)):(r.openBlock(),r.createElementBlock("img",{key:7,ref_key:"msSymbolRef",ref:s,src:c.value,style:r.normalizeStyle(y.value),class:"msSymbol",onMouseup:r.withModifiers(A,["self"]),onMousedown:r.withModifiers(I,["self"])},null,44,z0))}}}),ct=G(W0,[["__scopeId","data-v-f2b994c1"]]),F0=r.defineComponent({__name:"msSymbolSlot",props:{msSymbol:{type:Object,required:!0},msSymbolContainer:{type:Object,required:!0},preContainer:{type:Object},nextContainer:{type:Object},containerWidth:{type:Number,default:60,required:!0},measureHeight:{type:Number,default:60,required:!0},measure:{type:Object,required:!0},measureWidth:{type:Number,default:200,required:!0},componentWidth:{type:Number,default:1e3},componentHeight:{type:Number,default:800},singleStaff:{type:Object,required:!0},multipleStaves:{type:Object,required:!0},musicScore:{type:Object,default:{}}},emits:["msSymbolMouseDown","msSymbolMouseUp"],setup(e,{emit:t}){const n=e,o=r.computed(()=>!n.msSymbol||!n.measure||!n.singleStaff?(console.error("缺少必要的参数,坐标计算出错"),{}):{left:a.value+"px",height:n.measureHeight+"px",width:i.value+"px",top:l.value+"px",pointEvents:" none"});r.computed(()=>ue(n.msSymbol)),r.computed(()=>$(n.msSymbol,n.musicScore));const i=r.computed(()=>be(n.msSymbol,n.musicScore)),a=r.computed(()=>Re(n.msSymbol,n.msSymbolContainer,n.measure,n.singleStaff,n.musicScore,i.value,n.componentWidth)),l=r.computed(()=>ne(n.msSymbol,n.musicScore)),c=t;return(s,m)=>{var d;return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(o.value),class:"msSymbolSlot p-stackItem"},[e.msSymbol?(r.openBlock(),r.createBlock(ct,{key:0,ref:"mainMsSymbolRef",componentHeight:e.componentHeight,componentWidth:e.componentWidth,containerWidth:e.containerWidth,isMain:!0,measure:e.measure,"measure-width":e.measureWidth,measureHeight:e.measureHeight,"ms-symbol":e.msSymbol,msSymbolContainer:n.msSymbolContainer,musicScore:n.musicScore,nextContainer:n.nextContainer?n.nextContainer:null,preContainer:n.preContainer?n.preContainer:null,"single-staff":e.singleStaff,"slot-left":a.value,"slot-width":i.value,slotTop:l.value,onMsSymbolMouseDown:m[0]||(m[0]=(h,u)=>c("msSymbolMouseDown",h,u)),onMsSymbolMouseUp:m[1]||(m[1]=(h,u)=>c("msSymbolMouseUp",h,u))},null,8,["componentHeight","componentWidth","containerWidth","measure","measure-width","measureHeight","ms-symbol","msSymbolContainer","musicScore","nextContainer","preContainer","single-staff","slot-left","slot-width","slotTop"])):r.createCommentVNode("",!0),(d=e.msSymbol)!=null&&d.msSymbolArray?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.msSymbol.msSymbolArray,h=>(r.openBlock(),r.createBlock(ct,{componentHeight:e.componentHeight,componentWidth:e.componentWidth,containerWidth:e.containerWidth,isMain:!1,measure:e.measure,"measure-width":e.measureWidth,measureHeight:e.measureHeight,"ms-symbol":h,msSymbolContainer:n.msSymbolContainer,musicScore:n.musicScore,nextContainer:n.nextContainer?n.nextContainer:null,"parent-ms-symbol":e.msSymbol,preContainer:n.preContainer?n.preContainer:null,"single-staff":e.singleStaff,"slot-left":a.value,"slot-top":l.value,"slot-width":i.value,onMsSymbolMouseDown:m[2]||(m[2]=(u,f)=>c("msSymbolMouseDown",u,f)),onMsSymbolMouseUp:m[3]||(m[3]=(u,f)=>c("msSymbolMouseUp",u,f))},null,8,["componentHeight","componentWidth","containerWidth","measure","measure-width","measureHeight","ms-symbol","msSymbolContainer","musicScore","nextContainer","parent-ms-symbol","preContainer","single-staff","slot-left","slot-top","slot-width"]))),256)):r.createCommentVNode("",!0)],4)}}}),V0=G(F0,[["__scopeId","data-v-ad68dc2d"]]),Z0=r.defineComponent({__name:"msSymbolContainer",props:{msSymbolContainer:{type:Object,required:!0},preContainer:{type:Object},nextContainer:{type:Object},measureHeight:{type:Number,required:!0},measure:{type:Object,required:!0},measureWidth:{type:Number,required:!0},componentWidth:{type:Number,required:!0},componentHeight:{type:Number,required:!0},singleStaff:{type:Object,required:!0},multipleStaves:{type:Object,required:!0},musicScore:{type:Object,required:!0}},emits:["msSymbolMouseDown","msSymbolMouseUp"],setup(e,{emit:t}){const n=e,o=r.computed(()=>!n.msSymbolContainer||!n.measure||!n.singleStaff?(console.error("缺少必要的参数,坐标计算出错"),{}):{left:a.value+"px",height:n.measureHeight+"px",width:i.value+"px",bottom:"0px",pointerEvents:"none"}),i=r.computed(()=>E(n.msSymbolContainer,n.measure,n.singleStaff,n.musicScore,n.componentWidth)),a=r.computed(()=>ot(n.msSymbolContainer,n.measure,n.singleStaff,n.musicScore,n.measureWidth)),l=t;return(c,s)=>{var m;return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(o.value),class:"msSymbolContainer"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList((m=e.msSymbolContainer)==null?void 0:m.msSymbolArray,d=>(r.openBlock(),r.createBlock(V0,{componentHeight:e.componentHeight,componentWidth:e.componentWidth,containerWidth:i.value,measure:n.measure,measureHeight:n.measureHeight,measureWidth:n.measureWidth,msSymbol:d,msSymbolContainer:n.msSymbolContainer,multipleStaves:n.multipleStaves,musicScore:n.musicScore,nextContainer:n.nextContainer?n.nextContainer:null,preContainer:n.preContainer?n.preContainer:null,singleStaff:n.singleStaff,onMsSymbolMouseDown:(h,u)=>l("msSymbolMouseDown",h,u),onMsSymbolMouseUp:(h,u)=>l("msSymbolMouseUp",h,u)},null,8,["componentHeight","componentWidth","containerWidth","measure","measureHeight","measureWidth","msSymbol","msSymbolContainer","multipleStaves","musicScore","nextContainer","preContainer","singleStaff","onMsSymbolMouseDown","onMsSymbolMouseUp"]))),256))],4)}}}),O0=G(Z0,[["__scopeId","data-v-8d8f6d46"]]),Q0=["d"],q0=["x","y"],U0=r.defineComponent({__name:"volta",props:{volta:{type:Object,required:!0},position:{type:Object,default:()=>({startPoint:{x:0,y:0},endPoint:{x:0,y:0}})}},setup(e){const t=e,n=r.computed(()=>{var a,l,c,s;return{startPoint:{x:t.position.startPoint.x+((a=t.volta)==null?void 0:a.options.offset.startPoint.x),y:t.position.startPoint.y+((l=t.volta)==null?void 0:l.options.offset.startPoint.y)},endPoint:{x:t.position.endPoint.x+((c=t.volta)==null?void 0:c.options.offset.endPoint.x),y:t.position.endPoint.y+((s=t.volta)==null?void 0:s.options.offset.endPoint.y)}}}),o=r.computed(()=>{const{startPoint:a,endPoint:l}=n.value;a.y;const c=4;return`
2
+ M ${a.x+c} ${l.y-c}
3
+ L ${a.x+c} ${a.y+c}
4
+ L ${l.x-c} ${a.y+c}
5
+ `}),i=r.computed(()=>{const{startPoint:a}=n.value;return{x:a.x+4,y:a.y-10}});return(a,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("path",{d:o.value,fill:"transparent",stroke:"black","stroke-width":"1"},null,8,Q0),r.createElementVNode("text",{x:i.value.x+10,y:i.value.y+20,"dominant-baseline":"hanging","font-size":"12"},r.toDisplayString("1,2,3"),8,q0)],64))}}),G0=G(U0,[["__scopeId","data-v-511c3804"]]),$0=["d"],K0=r.defineComponent({__name:"slur",props:{slur:{type:Object,required:!0},position:{type:Object,default:()=>({startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftSlope:{x:0,y:0},rightSlope:{x:0,y:0}})}},setup(e){const t=e,n=r.computed(()=>{var i,a,l,c,s,m,d,h,u,f,y,b,I,A,x,k,B,_,W,V;return!((l=(a=(i=t.slur)==null?void 0:i.options)==null?void 0:a.offset)!=null&&l.startPoint)||!((m=(s=(c=t.slur)==null?void 0:c.options)==null?void 0:s.offset)!=null&&m.endPoint)||!((u=(h=(d=t.slur)==null?void 0:d.options)==null?void 0:h.offset)!=null&&u.leftSlope)||!((b=(y=(f=t.slur)==null?void 0:f.options)==null?void 0:y.offset)!=null&&b.rightSlope)?{startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftSlope:{x:0,y:0},rightSlope:{x:0,y:0}}:{startPoint:{x:t.position.startPoint.x+((I=t.slur)==null?void 0:I.options.offset.startPoint.x),y:t.position.startPoint.y+((A=t.slur)==null?void 0:A.options.offset.startPoint.y)},endPoint:{x:t.position.endPoint.x+((x=t.slur)==null?void 0:x.options.offset.endPoint.x),y:t.position.endPoint.y+((k=t.slur)==null?void 0:k.options.offset.endPoint.y)},leftSlope:{x:t.position.leftSlope.x+((B=t.slur)==null?void 0:B.options.offset.leftSlope.x),y:t.position.leftSlope.y+((_=t.slur)==null?void 0:_.options.offset.leftSlope.y)},rightSlope:{x:t.position.rightSlope.x+((W=t.slur)==null?void 0:W.options.offset.rightSlope.x),y:t.position.rightSlope.y+((V=t.slur)==null?void 0:V.options.offset.rightSlope.y)}}}),o=r.computed(()=>{const i=n.value.startPoint,a=n.value.endPoint,l=n.value.leftSlope,c=n.value.rightSlope;return`M ${i.x} ${i.y} C ${l.x} ${l.y}, ${c.x} ${c.y}, ${a.x} ${a.y}
6
+ C ${c.x} ${c.y+5}, ${l.x} ${l.y+5}, ${i.x} ${i.y}`});return(i,a)=>(r.openBlock(),r.createElementBlock("path",{d:o.value,class:"slur",fill:"black",stroke:"none","stroke-width":"2"},null,8,$0))}}),X0=G(K0,[["__scopeId","data-v-784581bb"]]),J0=["d"],E0=["cx","cy","r","onPointerdown"],Y0=r.defineComponent({__name:"bezier3DragBox",props:{boxSize:{type:Number,default:10},modelValue:{type:Object,required:!0},position:{type:Object,default:()=>({startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftSlope:{x:0,y:0},rightSlope:{x:0,y:0}})}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t;let i=!1,a="";function l(u){return{x:u.offsetX,y:u.offsetY}}function c(u,f){i=!0,a=f,u.target.setPointerCapture(u.pointerId)}function s(u){if(!i||!a)return;const f=n.modelValue[a],y=l(u),b=n.position[a].x,I=n.position[a].y;f.x=y.x-b,f.y=y.y-I,o("update:modelValue",{...n.modelValue})}function m(u){i=!1,a=""}r.onMounted(()=>{document.addEventListener("pointermove",s),document.addEventListener("pointerup",m)}),r.onBeforeUnmount(()=>{document.removeEventListener("pointermove",s),document.removeEventListener("pointerup",m)});const d=r.computed(()=>({startPoint:{x:n.position.startPoint.x+n.modelValue.startPoint.x,y:n.position.startPoint.y+n.modelValue.startPoint.y},endPoint:{x:n.position.endPoint.x+n.modelValue.endPoint.x,y:n.position.endPoint.y+n.modelValue.endPoint.y},leftSlope:{x:n.position.leftSlope.x+n.modelValue.leftSlope.x,y:n.position.leftSlope.y+n.modelValue.leftSlope.y},rightSlope:{x:n.position.rightSlope.x+n.modelValue.rightSlope.x,y:n.position.rightSlope.y+n.modelValue.rightSlope.y}})),h=r.computed(()=>{const u=d.value.startPoint,f=d.value.endPoint,y=d.value.leftSlope,b=d.value.rightSlope;return Math.min(u.x,f.x),Math.max(u.x,f.x),Math.min(u.y,f.y),Math.max(u.y,f.y),`
7
+ M ${u.x} ${u.y}
8
+ L ${y.x} ${y.y}
9
+ L ${b.x} ${b.y}
10
+ L ${f.x} ${f.y}
5
11
  Z
6
- `.trim());return(n,o)=>(r.openBlock(),r.createElementBlock("div",jo,[(r.openBlock(),r.createElementBlock("svg",Wo,[r.createElementVNode("path",{class:"slur-path",d:t.value},null,8,Fo)]))]))}}),To=X(zo,[["__scopeId","data-v-45a54060"]]),Oo=r.defineComponent({__name:"spanSymbol",props:{spanSymbol:{type:Object,required:!0},musicScore:{type:Object,default:{}},componentWidth:{type:Number,default:1e3},componentHeight:{type:Number,default:800}},emits:["spanSymbolMouseDown","spanSymbolMouseUp"],setup(e,{emit:t}){const n=e;r.inject("msState");function o(c,s,m,g){const p={width:0,left:0,top:0,height:0},y=je(c.startTargetId,s.map),v=je(c.endTargetId,s.map);if(!y||!v)return console.error("获取不到绑定元素",y,v);if(y.msTypeName!==ee.Measure||v.msTypeName!==ee.Measure)return console.error("volta绑定元素错误");if(y.index.multipleStavesIndex!==v.index.multipleStavesIndex){console.error("反复符号绑定小节有误");return}p.left=We(y,s,m),dn(y.index,v.index,s,(k,w,N)=>{p.width+=ge(k,w,s,m);const C=Ye(k,s,g),B=Oe(k,s),H=s.measureHeight;p.top=g-Math.max(s.measureHeight+C,B+C+H)}),p.height=n.musicScore.measureHeight,c.rect=p}function i(c,s,m,g){const p={width:0,left:0,top:0,height:0},y=je(c.startTargetId,s.map),v=je(c.endTargetId,s.map);if(!y||!v)return console.error("获取不到绑定元素",y,v);if(y.msTypeName!==ee.MsSymbol||v.msTypeName!==ee.MsSymbol)return console.error("volta绑定元素错误");if(y.index.multipleStavesIndex!==v.index.multipleStavesIndex){console.error("反复符号绑定小节有误");return}const k=s.measureHeight,w=W(y.index,s),N=w.msSymbolContainer,C=w.measure,B=w.singleStaff;if(!N||!C||!B){console.error("索引数据出错,连音线rect计算失败");return}const H=Le(y,s,!0),Q=ge(C,B,s,m),ie=tt(y,N,C,B,s,H,Q,m),He=We(C,s,m),he=Ye(C,s,g),Ve=Oe(C,s),we=W(v.index,s),Re=we.msSymbolContainer,pe=we.measure,Ie=we.singleStaff;if(!Re||!pe||!Ie){console.error("索引数据出错,连音线rect计算失败");return}const I=Le(v,s,!0),R=ge(pe,Ie,s,m),j=tt(v,Re,pe,Ie,s,I,R,m),Y=We(pe,s,m),U=He+ie+H/2,ae=Y+j+I/2;p.left=U,p.top=g-Math.max(s.measureHeight+he,Ve+he+k),p.width=ae-U,p.height=n.musicScore.measureHeight,c.rect=p}function a(c,s,m,g){switch(c.type){case Ce.volta:{o(c,s,m,g);break}case Ce.slur:{i(c,s,m,g);break}}}const l=t;function d(c){l("spanSymbolMouseDown",c,n.spanSymbol)}function u(c){l("spanSymbolMouseUp",c,n.spanSymbol)}return r.onBeforeMount(()=>{a(n.spanSymbol,n.musicScore,n.componentWidth,n.componentHeight)}),(c,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[e.spanSymbol&&e.spanSymbol.type===r.unref(Ce).volta?(r.openBlock(),r.createBlock(Rt,{key:0,rect:e.spanSymbol.rect},{default:r.withCtx(()=>[r.createVNode(Ro,r.mergeProps({volta:e.spanSymbol},d,u),null,16,["volta"])]),_:1},8,["rect"])):r.createCommentVNode("",!0),e.spanSymbol&&e.spanSymbol.type===r.unref(Ce).slur?(r.openBlock(),r.createBlock(Rt,{key:1,slur:e.spanSymbol,rect:e.spanSymbol.rect},{default:r.withCtx(()=>[r.createVNode(To,r.mergeProps({slur:e.spanSymbol},d,u),null,16,["slur"])]),_:1},8,["slur","rect"])):r.createCommentVNode("",!0)],64))}});function xe(e,t){t.value&&(t.value.options.highlight=!1),e.options.highlight=!0,t.value=e}const oe={startX:0,startY:0,originRegion:{region:Wt.Main,type:jt.Space,index:1}};function _t(e,t,n,o){if(n.value)switch(n.value.msTypeName){case ee.MsSymbol:{const i=n.value;if(i.type===b.NoteHead){e.clientX-oe.startX;const a=e.clientY-oe.startY;if(Math.abs(a)>t/8&&i){const l=Math.floor(a/t*8),d=V(oe.originRegion)-l;i.region,i.region=Ke(d);const u=i.msSymbolArray.find(y=>y.type===b.NoteStem),c=i.msSymbolArray.find(y=>y.type===b.NoteTail),s=W(i.index,o).measure;if(!s){console.error("measure不存在,音符移动事件出错");return}const m=Be(i.beamId,s);if([D.whole,D.half,D.quarter].includes(i.chronaxie)||m.length<2){const y=V(i.region);u&&y>=4&&u.direction!=="down"?Je("down",u):u&&y<4&&u.direction!=="up"&&Je("up",u),c&&y>=4&&c.direction!=="down"?_e("down",c):c&&y<4&&c.direction!=="up"&&_e("up",c)}else{const y=W(i.index,o).measure;y&&bn(i.beamId,y)}const g=W(n.value.index,o).singleStaff;if(!g)return console.error("找不到单谱表,跨小节符号更新失败");const p=rt(g);it(p,o)}}break}}}function Po(e,t,n){if(t.value)switch(t.value.msTypeName){case ee.MsSymbol:{t.value.options.highlight=!1,t.value=null;break}case ee.Measure:}}function Yt(e,t){if(!t.msState.currentSelected.value||t.msState.mode.value!==re.edit||t.msState.currentSelected.value.msTypeName!==ee.Measure)return;const n=t.msState.currentResevedType.value;if(n===ue.note){let o=null;const i=t.msState.reserveMsSymbolMap.value.get(ue.note);i&&"chronaxie"in i&&(o=i.chronaxie);const a=G({type:b.NoteHead,region:t.msSymbolInformation.region,chronaxie:o||D.quarter}),l=Te({});if(["front"].includes(t.virtualSymbolContainerType))l.msSymbolArray.push(a),t.msData.msSymbolContainer?ce(l,t.msData.msSymbolContainer,t.msData.musicScore,"before"):ce(l,t.msData.measure,t.msData.musicScore,"before");else if(["end","middle"].includes(t.virtualSymbolContainerType)){if(l.msSymbolArray.push(a),!t.msData.msSymbolContainer)return console.error("没有作为对照的符号容器,符号容器添加失败");ce(l,t.msData.msSymbolContainer,t.msData.musicScore,"after")}else if(["self"].includes(t.virtualSymbolContainerType)){if(!t.msData.msSymbolContainer)return console.error("没有作为对照的符号容器,符号添加失败");const d=t.msData.msSymbolContainer.msSymbolArray.find(u=>u.type===b.NoteHead&&u.region===a.region);d?Pe(e,t.msState.mode,t.msState.currentSelected,d):be(a,t.msData.msSymbolContainer,t.msData.musicScore,"after")}}else if(n===ue.rest){let o=null;const i=t.msState.reserveMsSymbolMap.value.get(ue.rest);i&&"chronaxie"in i&&(o=i.chronaxie);const a=G({type:b.Rest,chronaxie:o||D.quarter}),l=Te({});if(["front"].includes(t.virtualSymbolContainerType))l.msSymbolArray.push(a),t.msData.msSymbolContainer?ce(l,t.msData.msSymbolContainer,t.msData.musicScore,"before"):ce(l,t.msData.measure,t.msData.musicScore,"before");else if(["end","middle"].includes(t.virtualSymbolContainerType)){if(l.msSymbolArray.push(a),!t.msData.msSymbolContainer)return console.error("没有作为对照的符号容器,符号容器添加失败");ce(l,t.msData.msSymbolContainer,t.msData.musicScore,"after")}else if(["self"].includes(t.virtualSymbolContainerType)){if(!t.msData.msSymbolContainer)return console.error("没有作为对照的符号容器,符号添加失败");const d=t.msData.msSymbolContainer.msSymbolArray.find(u=>u.type===b.Rest);d?Pe(e,t.msState.mode,t.msState.currentSelected,d):be(a,t.msData.msSymbolContainer,t.msData.musicScore,"after")}}}function Et(e,t,n,o){t.value===re.edit&&xe(o,n)}function Go(e,t,n,o){}function Pe(e,t,n,o){o.type===b.NoteHead&&(oe.originRegion=o.region),t.value===re.edit&&xe(o,n)}function qo(e,t,n,o){}function en(e,t,n,o){t.value===re.edit&&xe(o,n)}function tn(e,t,n,o){t.value===re.edit&&xe(o,n)}function nn(e,t,n,o){t.value===re.edit&&xe(o,n)}const Vo=Object.freeze(Object.defineProperty({__proto__:null,eventConstant:oe,handleMouseMoveSelected:_t,handleMouseUpSelected:Po,measureMouseDown:en,msSymbolMouseDown:Pe,msSymbolMouseUp:qo,multipleStavesMouseDown:nn,select:xe,singleStaffMouseDown:tn,spanSymbolMouseDown:Et,spanSymbolMouseUp:Go,virtualSymbolMouseDown:Yt},Symbol.toStringTag,{value:"Module"})),Uo=r.defineComponent({__name:"virtualSymbolContainer",props:{ind:{},msSymbolContainer:{type:Object},measureHeight:{type:Number,default:60,required:!0},type:{type:String,required:!0},measure:{type:Object,required:!0},measureWidth:{type:Number,default:200},componentWidth:{type:Number,default:1e3},componentHeight:{type:Number,default:800},singleStaff:{type:Object,required:!0},multipleStaves:{type:Object,required:!0},musicScore:{type:Object,default:{}}},setup(e){const t=e,n=r.computed(()=>Kt),o=r.computed(()=>({left:a.value+"px",height:t.measureHeight*3+"px",width:i.value+"px",bottom:-t.measureHeight+"px"}));r.computed(()=>0);const i=r.computed(()=>t.measureHeight*.25),a=r.computed(()=>{let w=0;if(t.msSymbolContainer){t.msSymbolContainer.type;const N=_(t.measure,t.measureHeight),C=me(t.measure),B=me(t.measure,t.msSymbolContainer),H=_(t.measure,t.measureHeight,"front");w=(t.measureWidth-N)/C*B+H-i.value/2,["middle"].includes(t.type)?w+=ne(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth):["end"].includes(t.type)?w+=ne(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)*3/4:["front"].includes(t.type)?w+=ne(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)/4:["self"].includes(t.type)&&(w+=ne(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)*2/4)}else w=t.measureWidth/2-i.value/2;return w}),l=r.ref(t.measureHeight);function d(w){const C=w.currentTarget.getBoundingClientRect();l.value=C.height-w.clientY+C.top}const u=r.inject("msState");function c(w){Yt(w,{msState:u,virtualSymbolContainerType:t.type,msData:{musicScore:t.musicScore,msSymbolContainer:t.msSymbolContainer||null,measure:t.measure,singleStaff:t.singleStaff,multipleStaves:t.multipleStaves},msSymbolInformation:{region:Ke(y.value)}})}const s=r.computed(()=>1),m=r.computed(()=>t.measureHeight*.25),g=r.computed(()=>m.value*s.value),p=r.computed(()=>0),y=r.computed(()=>+((l.value-t.measureHeight)/(t.measureHeight/8)).toFixed(0)+1),v=r.computed(()=>ct(Ke(y.value),t.measureHeight)+t.measureHeight),k=r.computed(()=>{const w={width:`${g.value}px`,height:`${m.value}px`,position:"absolute",left:p.value+"px",bottom:v.value+"px",background:"blue"};return n.value&&(w.mask=`url("${n.value}") center center / cover no-repeat`),w});return r.onMounted(()=>{}),(w,N)=>(r.openBlock(),r.createElementBlock("div",{class:"vitrualSymbolContainer",onMousemove:d,onMousedown:c,style:r.normalizeStyle(o.value)},[r.createElementVNode("div",{ref:"vitrualSymbolRef",class:"vitrualSymbol",style:r.normalizeStyle(k.value)},null,4)],36))}}),Ze=X(Uo,[["__scopeId","data-v-04b21654"]]),$o=r.defineComponent({__name:"musicScore",props:{musicScore:{type:Object,required:!0},width:{type:Number,default:1e3},height:{type:Number,default:800},strokeWidth:{type:Number,default:1}},emits:["spanSymbolMouseDown","spanSymbolMouseUp","msSymbolMouseDown","measureMouseDown","singleStaffMouseDown","multipleStavesMouseDown","update:mode","msSymbolMouseUp"],setup(e,{expose:t,emit:n}){const o=e;r.computed(()=>I=>{const R=[];return I.msSymbolContainerArray.forEach(j=>{let Y=!1;for(const U of j.msSymbolArray)if(U.type===b.NoteHead&&(U.chronaxie===D.eighth||U.chronaxie===D.sixteenth)){Y=!0;break}R.push(Y)}),R});const i=r.ref(re.edit),a=r.ref(new Map),l=r.ref(null);function d(){const I=G({type:b.NoteHead,chronaxie:D.quarter}),R=G({type:b.Rest,chronaxie:D.quarter});a.value.set(ue.note,I),a.value.set(ue.rest,R)}function u(I,R){a.value.set(I,R)}function c(I){return a.value.has(I)?a.value.get(I):null}const s=r.ref(ue.note);function m(I){s.value=I}const g=r.computed(()=>I=>I.msSymbolContainerArray.filter(R=>R.type===Fe.variable)),p=n;function y(I,R){Et(I,i,l,R),p("spanSymbolMouseDown")}function v(I,R){p("spanSymbolMouseUp")}function k(I,R){Pe(I,i,l,R),p("msSymbolMouseDown")}function w(I,R){p("msSymbolMouseUp")}function N(I,R){en(I,i,l,R),p("measureMouseDown")}function C(I,R){tn(I,i,l,R),p("singleStaffMouseDown")}function B(I,R){nn(I,i,l,R),p("multipleStavesMouseDown")}function H(I){i.value=I}const Q=r.computed(()=>({width:o.width+"px",height:o.height+"px",overflow:"visible"}));function ie(){o.musicScore&&(mn(o.musicScore),d(),fn(o.musicScore))}r.onBeforeMount(ie);const He=r.ref(null),he=r.ref(!1);function Ve(I){I.preventDefault(),oe.startX=I.clientX,oe.startY=I.clientY,he.value=!0}function we(I){oe.startX=0,oe.startY=0,he.value=!1}function Re(I){var R;he.value&&_t(I,(R=o.musicScore)==null?void 0:R.measureHeight,l,o.musicScore)}function pe(){l.value&&(l.value.options.highlight=!1),l.value=null}function Ie(I){I.showMode===E.standardStaff?Bn(I):I.showMode===E.numberNotation&&Hn(I)}return r.onMounted(()=>{}),r.onUnmounted(()=>{}),r.provide("msState",{mode:i,currentSelected:l,reserveMsSymbolMap:a,currentResevedType:s}),t({changeMode:H,root:He,mode:i,currentSelected:l,currentResevedType:s,setReserveMsSymbol:u,getReserveMsSymbol:c,reserveMsSymbolMap:a,setCurrentResevedType:m,cancelSelect:pe,switchShowMode:Ie}),(I,R)=>(r.openBlock(),r.createElementBlock("div",{class:"musicScore stack",style:r.normalizeStyle(Q.value),ref_key:"musicScoreRef",ref:He,onMousedown:r.withModifiers(Ve,["stop"]),onMousemove:r.withModifiers(Re,["stop"]),onMouseup:r.withModifiers(we,["stop"])},[r.createVNode(Ue,{disabled:!1,musicScore:e.musicScore,class:"stackItem lineLayer",style:r.normalizeStyle({width:e.width+"px",height:e.height+"px"}),onMultipleStavesMouseDown:B,onSingleStaffMouseDown:C,comment:"谱线层1"},{default:r.withCtx(({measure:j,measureIndex:Y,singleStaff:U,multipleStaves:ae,measureWidth:se})=>[(r.openBlock(),r.createBlock(sn,{key:"measure"+Y,strokeWidth:e.strokeWidth,x:Y*se,width:se,height:e.musicScore.measureHeight,musicScore:e.musicScore,componentWidth:e.width,onMeasureMouseDown:N,componentHeight:e.height,measure:j},null,8,["strokeWidth","x","width","height","musicScore","componentWidth","componentHeight","measure"]))]),_:1},8,["musicScore","style"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.musicScore.spanSymbolArray,(j,Y)=>(r.openBlock(),r.createBlock(Oo,{key:j.vueKey,musicScore:e.musicScore,componentWidth:e.width,componentHeight:e.height,onSpanSymbolMouseDown:y,onSpanSymbolMouseUp:v,spanSymbol:j},null,8,["musicScore","componentWidth","componentHeight","spanSymbol"]))),128)),r.createVNode(Ue,{musicScore:e.musicScore,class:"stackItem symbolLayer",style:r.normalizeStyle({width:e.width+"px",height:e.height+"px",pointerEvents:"none"}),comment:"符号层2"},{default:r.withCtx(({measure:j,measureIndex:Y,singleStaff:U,multipleStaves:ae,measureWidth:se})=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(j.msSymbolContainerArray,(Me,K)=>(r.openBlock(),r.createBlock(Do,{msSymbolContainer:Me,nextContainer:j.msSymbolContainerArray.length!==K+1?j.msSymbolContainerArray[K+1]:void 0,preContainer:j.msSymbolContainerArray.length!==0?j.msSymbolContainerArray[K-1]:void 0,measure:j,musicScore:e.musicScore,measureWidth:se,singleStaff:U,multipleStaves:ae,measureHeight:e.musicScore.measureHeight,onMsSymbolMouseDown:k,onMsSymbolMousUp:w,key:"note-symbol"+K,componentWidth:e.width,componentHeight:e.height},null,8,["msSymbolContainer","nextContainer","preContainer","measure","musicScore","measureWidth","singleStaff","multipleStaves","measureHeight","componentWidth","componentHeight"]))),128))]),_:1},8,["musicScore","style"]),r.withDirectives(r.createVNode(Ue,{musicScore:e.musicScore,class:"stackItem symbolLayer",style:r.normalizeStyle({width:e.width+"px",height:e.height+"px",pointerEvents:"none"}),comment:"编辑模式虚拟音符层"},{default:r.withCtx(({measure:j,measureIndex:Y,singleStaff:U,multipleStaves:ae,measureWidth:se})=>[l.value===j?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(Ze,{comment:"第一个变宽容器",msSymbolContainer:g.value(j)[0],measure:j,type:"front",musicScore:e.musicScore,measureWidth:se,singleStaff:U,multipleStaves:ae,measureHeight:e.musicScore.measureHeight,componentWidth:e.width,componentHeight:e.height},null,8,["msSymbolContainer","measure","musicScore","measureWidth","singleStaff","multipleStaves","measureHeight","componentWidth","componentHeight"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(g.value(j),(Me,K)=>(r.openBlock(),r.createBlock(Ze,{msSymbolContainer:Me,measure:j,type:"self",musicScore:e.musicScore,measureWidth:se,ind:K,singleStaff:U,multipleStaves:ae,measureHeight:e.musicScore.measureHeight,key:"virtual-symbol"+K,componentWidth:e.width,componentHeight:e.height},null,8,["msSymbolContainer","measure","musicScore","measureWidth","ind","singleStaff","multipleStaves","measureHeight","componentWidth","componentHeight"]))),128)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(g.value(j),(Me,K)=>(r.openBlock(),r.createBlock(Ze,{msSymbolContainer:Me,measure:j,type:K===g.value(j).length-1?"end":"middle",musicScore:e.musicScore,measureWidth:se,ind:K,singleStaff:U,multipleStaves:ae,measureHeight:e.musicScore.measureHeight,key:"virtual-symbol"+K,componentWidth:e.width,componentHeight:e.height},null,8,["msSymbolContainer","measure","type","musicScore","measureWidth","ind","singleStaff","multipleStaves","measureHeight","componentWidth","componentHeight"]))),128))],64)):r.createCommentVNode("",!0)]),_:1},8,["musicScore","style"]),[[r.vShow,i.value===r.unref(re).edit]])],36))}}),Zo=X($o,[["__scopeId","data-v-54269214"]]);exports.KeySignatureTonicSemitones=Rn;exports.MsSymbolInformationMap=q;exports.bottomUtil=Pn;exports.default=Zo;exports.eventUtil=Vo;exports.geometryUtil=zn;exports.heightUtil=Gn;exports.leftUtil=ho;exports.widthConstantUtil=jn;exports.widthUtil=qn;
12
+ `});return(u,f)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("path",{d:h.value,fill:"transparent",stroke:"black","stroke-dasharray":"4","stroke-width":"1"},null,8,J0),r.renderSlot(u.$slots,"default",{},void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(y,b)=>(r.openBlock(),r.createElementBlock("circle",{key:b,cx:y.x,cy:y.y,r:n.boxSize/2,fill:"white",stroke:"#666","stroke-width":"1",style:{cursor:"grab"},onPointerdown:I=>c(I,b)},null,40,E0))),128))],64))}}),en=G(Y0,[["__scopeId","data-v-1b2a89b1"]]),tn=["d"],nn=["cx","cy","r","onPointerdown"],on=r.defineComponent({__name:"rectDragBox",props:{boxSize:{type:Number,default:10},modelValue:{type:Object,required:!0},position:{type:Object,default:()=>({startPoint:{x:0,y:0},endPoint:{x:0,y:0}})}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t;let i=!1,a="";function l(u){return{x:u.offsetX,y:u.offsetY}}function c(u,f){i=!0,a=f,u.target.setPointerCapture(u.pointerId)}function s(u){if(!i||!a)return;const f=n.modelValue[a],y=l(u),b=n.position[a].x,I=n.position[a].y;f.x=y.x-b,f.y=y.y-I,o("update:modelValue",{...n.modelValue})}function m(){i=!1,a=""}r.onMounted(()=>{document.addEventListener("pointermove",s),document.addEventListener("pointerup",m)}),r.onBeforeUnmount(()=>{document.removeEventListener("pointermove",s),document.removeEventListener("pointerup",m)});const d=r.computed(()=>({startPoint:{x:n.position.startPoint.x+n.modelValue.startPoint.x,y:n.position.startPoint.y+n.modelValue.startPoint.y},endPoint:{x:n.position.endPoint.x+n.modelValue.endPoint.x,y:n.position.endPoint.y+n.modelValue.endPoint.y}})),h=r.computed(()=>{const u=d.value.startPoint,f=d.value.endPoint,y=Math.min(u.x,f.x),b=Math.min(u.y,f.y),I=Math.abs(f.x-u.x),A=Math.abs(f.y-u.y);return`M ${y} ${b} H ${y+I} V ${b+A} H ${y} Z`});return(u,f)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("path",{d:h.value,fill:"transparent",stroke:"black","stroke-dasharray":"4","stroke-width":"1"},null,8,tn),r.renderSlot(u.$slots,"default",{},void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(y,b)=>(r.openBlock(),r.createElementBlock("circle",{key:b,cx:y.x,cy:y.y,r:n.boxSize/2,fill:"white",stroke:"#666","stroke-width":"1",style:{cursor:"grab"},onPointerdown:I=>c(I,b)},null,40,nn))),128))],64))}}),rn=G(on,[["__scopeId","data-v-edd33ee1"]]);function an(e,t,n,o,i){const a=Ae(e.startTargetId,t.map),l=Ae(e.endTargetId,t.map);if(!a||!l)return console.error("获取不到绑定元素",a,l);if(a.msTypeName!==O.Measure||l.msTypeName!==O.Measure)return console.error("volta绑定元素错误");if(a.index.multipleStavesIndex!==l.index.multipleStavesIndex){console.error("反复符号绑定小节有误");return}n.startPoint.x=Be(a,t,o),n.endPoint.x=n.startPoint.x,Ft(a.index,l.index,t,(c,s,m)=>{n.endPoint.x+=se(c,s,t,o);const d=et(c,t),h=Ye(c,t),u=t.measureHeight;n.startPoint.y=Math.min(d,h+d-u)}),n.endPoint.y=n.startPoint.y+t.measureHeight}function ln(e,t,n,o,i){const a=Ae(e.startTargetId,t.map),l=Ae(e.endTargetId,t.map);if(!a||!l)return console.error("获取不到绑定元素",a,l);if(a.msTypeName!==O.MsSymbol||l.msTypeName!==O.MsSymbol)return console.error("volta绑定元素错误");if(a.index.multipleStavesIndex!==l.index.multipleStavesIndex){console.error("反复符号绑定小节有误");return}t.measureHeight;const c=j(a.index,t),s=c.msSymbolContainer,m=c.measure,d=c.singleStaff,h=j(l.index,t),u=h.msSymbolContainer,f=h.measure,y=h.singleStaff;if(!s||!m||!d){console.error("索引数据出错,连音线rect计算失败");return}if(!u||!f||!y){console.error("索引数据出错,连音线rect计算失败");return}const b=be(a,t,!0),I=se(m,d,t,o),A=Oe(a,s,m,d,t,b,I,o),x=Be(m,t,o),k=et(m,t),B=vt(s,u,t),_=be(l,t,!0),W=se(f,y,t,o),V=Oe(l,u,f,y,t,_,W,o),q=Be(f,t,o),oe=x+A+b/2,de=q+V+_/2,Ce=20;n.startPoint.x=oe,n.startPoint.y=B+k-Ce,n.endPoint.x=de,n.endPoint.y=n.startPoint.y;const Ie=20+Ce;n.leftSlope.x=n.startPoint.x,n.leftSlope.y=n.startPoint.y-Ie,n.rightSlope.x=n.endPoint.x,n.rightSlope.y=n.endPoint.y-Ie}const sn=r.defineComponent({__name:"spanSymbol",props:{spanSymbol:{type:Object,required:!0},musicScore:{type:Object,default:{}},componentWidth:{type:Number,default:1e3},componentHeight:{type:Number,default:800}},emits:["spanSymbolMouseDown","spanSymbolMouseUp"],setup(e,{emit:t}){const n=e;r.inject("msState");function o(m,d,h,u){switch(m.type){case me.volta:{an(m,d,s.value,h);break}case me.slur:{ln(m,d,c.value,h);break}}}const i=t;function a(m){i("spanSymbolMouseDown",m,n.spanSymbol)}function l(m){i("spanSymbolMouseUp",m,n.spanSymbol)}r.onBeforeMount(()=>{o(n.spanSymbol,n.musicScore,n.componentWidth,n.componentHeight)});const c=r.ref({startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftSlope:{x:0,y:0},rightSlope:{x:0,y:0}}),s=r.ref({startPoint:{x:0,y:0},endPoint:{x:0,y:0}});return(m,d)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[e.spanSymbol&&e.spanSymbol.type===r.unref(me).slur&&e.spanSymbol.options.offset?(r.openBlock(),r.createBlock(en,{key:0,modelValue:e.spanSymbol.options.offset,"onUpdate:modelValue":d[0]||(d[0]=h=>e.spanSymbol.options.offset=h),position:c.value},{default:r.withCtx(()=>[r.createVNode(X0,{position:c.value,slur:e.spanSymbol,onMousedown:r.withModifiers(a,["self"]),onMouseup:r.withModifiers(l,["self"])},null,8,["position","slur"])]),_:1},8,["modelValue","position"])):r.createCommentVNode("",!0),e.spanSymbol&&e.spanSymbol.type===r.unref(me).volta?(r.openBlock(),r.createBlock(rn,{key:1,modelValue:e.spanSymbol.options.offset,"onUpdate:modelValue":d[1]||(d[1]=h=>e.spanSymbol.options.offset=h),position:s.value},{default:r.withCtx(()=>[r.createVNode(G0,{position:s.value,volta:e.spanSymbol,onMousedown:r.withModifiers(a,["self"]),onMouseup:r.withModifiers(l,["self"])},null,8,["position","volta"])]),_:1},8,["modelValue","position"])):r.createCommentVNode("",!0)],64))}});function pe(e,t){t.value&&(t.value.options.highlight=!1),e.options.highlight=!0,t.value=e}const ae={startX:0,startY:0,originRegion:{region:M.Main,type:T.Space,index:1}};function Ct(e,t,n,o){if(n.value)switch(n.value.msTypeName){case O.MsSymbol:{const i=n.value;if(i.type===g.NoteHead){const a=e.clientY-ae.startY,l=Math.floor(a/t*8),c=Q(ae.originRegion)-l;i.region=Fe(c);const s=i.msSymbolArray.find(y=>y.type===g.NoteStem),m=i.msSymbolArray.find(y=>y.type===g.NoteTail),d=j(i.index,o).measure;if(!d){console.error("measure不存在,音符移动事件出错");return}const h=we(i.beamId,d);if([v.whole,v.half,v.quarter].includes(i.chronaxie)||h.length<2){const y=Q(i.region);s&&y>=4&&s.direction!=="down"?Ve("down",s):s&&y<4&&s.direction!=="up"&&Ve("up",s),m&&y>=4&&m.direction!=="down"?Ze("down",m):m&&y<4&&m.direction!=="up"&&Ze("up",m)}else{const y=j(i.index,o).measure;y&&Xt(i.beamId,y)}const u=j(n.value.index,o).singleStaff;if(!u)return console.error("找不到单谱表,跨小节符号更新失败");const f=Ue(u);Ge(f,o)}break}}}function cn(e,t,n){if(t.value)switch(t.value.msTypeName){case O.MsSymbol:{t.value.options.highlight=!1,t.value=null;break}case O.Measure:}}function It(e,t){if(!t.msState.currentSelected.value||t.msState.mode.value!==Y.edit||t.msState.currentSelected.value.msTypeName!==O.Measure)return;const n=t.msState.currentResevedType.value;if(n===te.note){let o=null;const i=t.msState.reserveMsSymbolMap.value.get(te.note);i&&"chronaxie"in i&&(o=i.chronaxie);const a=F({type:g.NoteHead,region:t.msSymbolInformation.region,chronaxie:o||v.quarter}),l=_e({});if(["front"].includes(t.virtualSymbolContainerType))l.msSymbolArray.push(a),t.msData.msSymbolContainer?ie(l,t.msData.msSymbolContainer,t.msData.musicScore,"before"):ie(l,t.msData.measure,t.msData.musicScore,"before");else if(["end","middle"].includes(t.virtualSymbolContainerType)){if(l.msSymbolArray.push(a),!t.msData.msSymbolContainer)return console.error("没有作为对照的符号容器,符号容器添加失败");ie(l,t.msData.msSymbolContainer,t.msData.musicScore,"after")}else if(["self"].includes(t.virtualSymbolContainerType)){if(!t.msData.msSymbolContainer)return console.error("没有作为对照的符号容器,符号添加失败");const c=t.msData.msSymbolContainer.msSymbolArray.find(s=>s.type===g.NoteHead&&Q(s.region)===Q(a.region));c?Ne(e,t.msState.mode,t.msState.currentSelected,c):he(a,t.msData.msSymbolContainer,t.msData.musicScore,"after")}}else if(n===te.rest){let o=null;const i=t.msState.reserveMsSymbolMap.value.get(te.rest);i&&"chronaxie"in i&&(o=i.chronaxie);const a=F({type:g.Rest,chronaxie:o||v.quarter}),l=_e({});if(["front"].includes(t.virtualSymbolContainerType))l.msSymbolArray.push(a),t.msData.msSymbolContainer?ie(l,t.msData.msSymbolContainer,t.msData.musicScore,"before"):ie(l,t.msData.measure,t.msData.musicScore,"before");else if(["end","middle"].includes(t.virtualSymbolContainerType)){if(l.msSymbolArray.push(a),!t.msData.msSymbolContainer)return console.error("没有作为对照的符号容器,符号容器添加失败");ie(l,t.msData.msSymbolContainer,t.msData.musicScore,"after")}else if(["self"].includes(t.virtualSymbolContainerType)){if(!t.msData.msSymbolContainer)return console.error("没有作为对照的符号容器,符号添加失败");const c=t.msData.msSymbolContainer.msSymbolArray.find(s=>s.type===g.Rest);c?Ne(e,t.msState.mode,t.msState.currentSelected,c):he(a,t.msData.msSymbolContainer,t.msData.musicScore,"after")}}}function Mt(e,t,n,o){t.value===Y.edit&&pe(o,n)}function un(e,t,n,o){}function Ne(e,t,n,o){o.type===g.NoteHead&&(ae.originRegion=o.region),t.value===Y.edit&&pe(o,n)}function dn(e,t,n,o){}function kt(e,t,n,o){t.value===Y.edit&&pe(o,n)}function Lt(e,t,n,o){t.value===Y.edit&&pe(o,n)}function At(e,t,n,o){t.value===Y.edit&&pe(o,n)}const mn=Object.freeze(Object.defineProperty({__proto__:null,eventConstant:ae,handleMouseMoveSelected:Ct,handleMouseUpSelected:cn,measureMouseDown:kt,msSymbolMouseDown:Ne,msSymbolMouseUp:dn,multipleStavesMouseDown:At,select:pe,singleStaffMouseDown:Lt,spanSymbolMouseDown:Mt,spanSymbolMouseUp:un,virtualSymbolMouseDown:It},Symbol.toStringTag,{value:"Module"})),gn=r.defineComponent({__name:"virtualSymbolContainer",props:{ind:{},msSymbolContainer:{type:Object},measureHeight:{type:Number,default:60,required:!0},type:{type:String,required:!0},measure:{type:Object,required:!0},measureWidth:{type:Number,default:200},componentWidth:{type:Number,default:1e3},componentHeight:{type:Number,default:800},singleStaff:{type:Object,required:!0},multipleStaves:{type:Object,required:!0},musicScore:{type:Object,default:{}}},setup(e){const t=e,{svgSkin:n,isOriginSkin:o}=r.inject("skin"),i=r.computed(()=>n.value.noteHead_1.url),a=r.computed(()=>({left:c.value+"px",height:t.measureHeight*3+"px",width:l.value+"px",bottom:-t.measureHeight+"px"}));r.computed(()=>0);const l=r.computed(()=>t.msSymbolContainer?E(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)/3:se(t.measure,t.singleStaff,t.musicScore,t.componentWidth)),c=r.computed(()=>{let x=0;if(t.msSymbolContainer){t.msSymbolContainer.type;const k=J(t.measure,t.measureHeight),B=le(t.measure),_=le(t.measure,t.msSymbolContainer),W=J(t.measure,t.measureHeight,"front");x=(t.measureWidth-k)/B*_+W-l.value/2,["middle"].includes(t.type)?x+=E(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth):["end"].includes(t.type)?x+=E(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)*3/4:["front"].includes(t.type)?x+=E(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)/4:["self"].includes(t.type)&&(x+=E(t.msSymbolContainer,t.measure,t.singleStaff,t.musicScore,t.componentWidth)*2/4)}else x=t.measureWidth/2-l.value/2;return x}),s=r.ref(t.measureHeight);function m(x){const B=x.currentTarget.getBoundingClientRect();s.value=B.height-x.clientY+B.top-t.measureHeight/8}const d=r.inject("msState");function h(x){It(x,{msState:d,virtualSymbolContainerType:t.type,msData:{musicScore:t.musicScore,msSymbolContainer:t.msSymbolContainer||null,measure:t.measure,singleStaff:t.singleStaff,multipleStaves:t.multipleStaves},msSymbolInformation:{region:Fe(b.value)}})}const u=r.computed(()=>1),f=r.computed(()=>t.measureHeight*.25),y=r.computed(()=>f.value*u.value);r.computed(()=>0);const b=r.computed(()=>+((s.value-t.measureHeight)/(t.measureHeight/8)).toFixed(0)+1),I=r.computed(()=>Je(Fe(b.value),t.measureHeight)+t.measureHeight),A=r.computed(()=>{const x={width:`${y.value}px`,height:`${f.value}px`,position:"absolute",left:l.value/2-y.value/2+"px",top:I.value+"px",background:"blue"};return i.value&&(x.mask=`url("${i.value}") center center / cover no-repeat`),x});return r.onMounted(()=>{}),(x,k)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(a.value),class:"vitrualSymbolContainer",onMousedown:h,onMousemove:m},[r.createElementVNode("div",{ref:"vitrualSymbolRef",style:r.normalizeStyle(A.value),class:"vitrualSymbol"},null,4)],36))}}),Me=G(gn,[["__scopeId","data-v-9c8f213c"]]),hn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+MTwvdGV4dD4NCjwvc3ZnPg0K",fn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+MjwvdGV4dD4NCjwvc3ZnPg0K",pn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+MzwvdGV4dD4NCjwvc3ZnPg0K",yn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+NDwvdGV4dD4NCjwvc3ZnPg0K",vn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+NTwvdGV4dD4NCjwvc3ZnPg0K",Sn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+NjwvdGV4dD4NCjwvc3ZnPg0K",bn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJibGFjayI+NzwvdGV4dD4NCjwvc3ZnPg0K",xn="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='30'%20height='60'%20viewBox='0%20-100%20300%20485'%3e%3cg%20id='XMLID_516_'%20transform='translate(0,%20142.5)%20scale(1,1.8)%20translate(0,%20-142.5)%20'%3e%3crect%20id='XMLID_517_'%20y='7.5'%20width='60'%20height='270'/%3e%3crect%20id='XMLID_518_'%20x='90'%20y='7.5'%20width='30'%20height='270'/%3e%3cpath%20id='XMLID_519_'%20d='M225,157.428v-29.855c33.084,0,60-26.916,60-60c0-33.084-26.916-60-60-60%20c-31.424,0-57.18,23.901-59.779,54.892c-0.02,0.158-0.173,1.825-0.173,2.515c0,0.031,0.005,0.06,0.005,0.091%20c-0.001,0.024-0.004,0.047-0.005,0.071l0.009,0.001c0.088,10.97,9,19.837,19.991,19.837c11.046,0,20-8.954,20-20%20c0-5.252-2.041-10.017-5.353-13.586c5.326-8.344,14.666-13.821,25.305-13.821c16.542,0,30,13.458,30,30c0,16.542-13.458,30-30,30%20V82.5l-75,60l75,60v-15.072c16.542,0,30,13.458,30,29.999c0,16.542-13.458,30.001-30,30.001c-10.639,0-19.979-5.477-25.305-13.821%20c3.312-3.569,5.353-8.333,5.353-13.586c0-11.046-8.954-20-20-20c-10.991,0-19.903,8.868-19.991,19.837l-0.009,0.001%20c0.001,0.024,0.004,0.047,0.005,0.071c0,0.031-0.005,0.06-0.005,0.091c0,0.69,0.153,2.357,0.173,2.515%20c2.6,30.991,28.355,54.892,59.779,54.892c33.084,0,60-26.916,60-60.001C285,184.343,258.084,157.428,225,157.428z'/%3e%3c/g%3e%3c/svg%3e",wn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20viewBox='0%200%20110%20108'%20style='enable-background:new%200%200%20270%20270;'%20xml:space='preserve'%3e%3cg%20id='XMLID_520_'%3e%3cpath%20id='Vector'%20d='M102.654%2023.3828C106.677%2023.3828%20109.838%2020.5407%20109.838%2016.9234C109.838%2013.3062%20106.677%2010.4641%20102.654%2010.4641C98.6315%2010.4641%2095.4707%2013.3062%2095.4707%2016.9234C95.4707%2020.5407%2098.4878%2023.3828%20102.654%2023.3828ZM102.654%2042.7608C98.6315%2042.7608%2095.4707%2045.6029%2095.4707%2049.2201C95.4707%2052.8373%2098.6315%2055.6794%20102.654%2055.6794C106.677%2055.6794%20109.838%2052.8373%20109.838%2049.2201C109.838%2045.6029%20106.677%2042.7608%20102.654%2042.7608ZM40.2996%200C21.7656%200%204.9557%2011.756%204.9557%2027.1292C4.9557%2037.2057%2010.8854%2044.9704%2020.0415%2045.732C40.8212%2047.4606%2046.2348%2021.2964%2024.0644%2020.0239C18.1738%2020.0239%2013.5762%2024.1579%2014.0072%2024.1579C13.2888%2024.1579%2013.0015%2023.512%2013.0015%2022.0909C13.0015%2012.9187%2025.7885%204.13397%2037.5698%204.13397C54.0924%204.13397%2064.5806%2016.5359%2064.5806%2033.0718C64.5806%2053.6124%2051.2189%2076.4785%2029.9551%2093.6603C25.7782%2097.0308%2017.2127%20101.693%208.71847%20105.08C7.61003%20105.522%207.94765%20107.002%209.11336%20106.747C39.4552%20100.11%2083.2583%2069.2189%2083.2583%2038.3684C83.1147%2021.0574%2074.3505%20-2.37683e-07%2040.2996%200Z'%20fill='black'/%3e%3c/g%3e%3c/svg%3e",Cn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20width='30'%20height='50'%20viewBox='0%200%2095%20248'%20style='enable-background:new%200%200%2025.8%2025.8;'%20xml:space='preserve'%3e%3cg%3e%3cpath%20id='Vector'%20d='M58.2521%20128.588L52.5358%20100.789C71.9986%2084.2187%2080.9814%2066.5533%2080.9814%2047.2446C80.9814%2032.3181%2075.1289%2016.5699%2063.1519%200C49.6777%2010.9553%2041.9198%2032.7289%2041.9198%2056.1458C41.9198%2064.4992%2043.0086%2072.4417%2044.7779%2080.1104C14.9713%20105.308%200%20128.451%200%20149.676C0%20174.6%2025.5874%20195.278%2053.2163%20195.278C59.341%20195.278%2063.9685%20194.319%2068.1877%20192.265L73.2235%20216.641C76.0308%20232.176%2060.9865%20244.44%2046.4112%20244.44C42.0559%20244.44%2037.8367%20243.344%2034.0258%20241.427C44.0974%20240.331%2051.7192%20234.169%2051.7192%20225.131C51.7192%20217.051%2045.1862%20208.698%2036.7479%20208.698C27.2206%20208.698%2020.6877%20216.093%2020.6877%20225.679C20.6877%20239.099%2031.5759%20248%2044.6418%20248C62.1991%20248%2077.0344%20236.497%2077.0344%20220.064C77.0344%20216.504%2071.5903%20191.991%2071.4542%20191.17C85.4728%20184.322%2095%20172.272%2095%20159.399C94.8431%20138.883%2077.0476%20126.943%2058.2521%20128.588ZM65.4656%2018.7609C71.9195%2018.7609%2074.3123%2029.9375%2074.3123%2034.9199C74.3123%2047.6554%2065.3295%2062.0342%2047.6361%2077.7824C44.0453%2063.3306%2046.2924%2018.7609%2065.4656%2018.7609ZM12.1132%20156.66C12.1132%20139.132%2025.043%20121.056%2049.5415%20102.706L54.9857%20128.998C41.3754%20131.874%2029.8066%20143.514%2029.8066%20156.523C29.8066%20167.616%2037.7006%20175.284%2049.4054%20177.202C42.192%20172.683%2038.6533%20167.068%2038.6533%20160.358C38.6533%20151.32%2047.0917%20144.61%2057.8438%20143.103L67.235%20188.431C45.0494%20200.606%2012.1132%20182.493%2012.1132%20156.66ZM70.5014%20186.65L61.2464%20142.692C73.7567%20141.724%2083.5673%20151.091%2083.5673%20164.055C83.5673%20172.683%2079.0759%20180.214%2070.5014%20186.65Z'%20fill='black'/%3e%3c/g%3e%3c/svg%3e",In="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='500'%20height='80'%3e%3cline%20x1='0'%20y1='0'%20x2='500'%20y2='000'%20stroke='white'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='80'%20x2='500'%20y2='80'%20stroke='white'%20stroke-width='1'%3e%3c/line%3e%3c/svg%3e",Mn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='500'%20height='80'%3e%3cline%20x1='0'%20y1='0'%20x2='500'%20y2='000'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='20'%20x2='500'%20y2='20'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='40'%20x2='500'%20y2='40'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='60'%20x2='500'%20y2='60'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='80'%20x2='500'%20y2='80'%20stroke='black'%20stroke-width='1'%3e%3c/line%3e%3c/svg%3e",kn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20130%20400'%20width='130'%20height='400'%3e%3cg%3e%3c!--%20细线(左)%20--%3e%3cline%20x1='60'%20x2='60'%20y1='0'%20y2='400'%20stroke='black'%20stroke-width='20'/%3e%3c!--%20粗线(右)%20--%3e%3cline%20x1='110'%20x2='110'%20y1='0'%20y2='400'%20stroke='black'%20stroke-width='40'/%3e%3c!--%20左侧两个实心小圆点%20--%3e%3c!--%20五线谱高度200时的点位比例换算到400高度时翻倍%20--%3e%3ccircle%20cx='25'%20cy='150'%20r='12.5'%20fill='black'/%3e%3ccircle%20cx='25'%20cy='250'%20r='12.5'%20fill='black'/%3e%3c/g%3e%3c/svg%3e",Ln="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20130%20400'%20width='130'%20height='400'%3e%3cg%3e%3c!--%20细线(左)%20--%3e%3cline%20x1='60'%20x2='60'%20y1='0'%20y2='400'%20stroke='black'%20stroke-width='20'/%3e%3c!--%20粗线(右)%20--%3e%3cline%20x1='110'%20x2='110'%20y1='0'%20y2='400'%20stroke='black'%20stroke-width='40'/%3e%3c/g%3e%3c/svg%3e",An="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20130%20400'%20width='130'%20height='400'%3e%3cg%20transform='scale(-1,1)%20translate(-130,0)'%3e%3c!--%20细线(左)%20--%3e%3cline%20x1='60'%20x2='60'%20y1='0'%20y2='400'%20stroke='black'%20stroke-width='20'/%3e%3c!--%20粗线(右)%20--%3e%3cline%20x1='110'%20x2='110'%20y1='0'%20y2='400'%20stroke='black'%20stroke-width='40'/%3e%3c/g%3e%3c/svg%3e",_n="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='800'%3e%3crect%20width='100'%20height='800'/%3e%3c/svg%3e",Bn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20130%20400'%20width='130'%20height='400'%3e%3cg%20transform='scale(-1,1)%20translate(-130,0)'%3e%3c!--%20细线(左)%20--%3e%3cline%20x1='60'%20x2='60'%20y1='0'%20y2='400'%20stroke='black'%20stroke-width='20'/%3e%3c!--%20粗线(右)%20--%3e%3cline%20x1='110'%20x2='110'%20y1='0'%20y2='400'%20stroke='black'%20stroke-width='40'/%3e%3c!--%20左侧两个实心小圆点%20--%3e%3c!--%20五线谱高度200时的点位比例换算到400高度时翻倍%20--%3e%3ccircle%20cx='25'%20cy='150'%20r='12.5'%20fill='black'/%3e%3ccircle%20cx='25'%20cy='250'%20r='12.5'%20fill='black'/%3e%3c/g%3e%3c/svg%3e",Nn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='10'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Dn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='10'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Hn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='30'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='25'%20x2='100'%20y2='25'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Rn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='50'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='25'%20x2='100'%20y2='25'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='45'%20x2='100'%20y2='45'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Tn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='70'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='25'%20x2='100'%20y2='25'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='45'%20x2='100'%20y2='45'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3cline%20x1='0'%20y1='65'%20x2='100'%20y2='65'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",jn="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='225'%20height='310'%20viewBox='38%2020%2022.5%2031'%3e%3cpath%20d='M39.6836%2039.941C44.1108%2034.3597%2056.6663%2039.6271%2039.6836%2050.2217M39.6836%2039.941C41.2414%2038.4368%2045.5825%2035.9737%2046.9165%2040.0869C48.1652%2043.937%2043.0033%2048.4515%2039.6836%2050.2217M39.6836%2039.941C43.5534%2036.8878%2046.0949%2037.9243%2046.7436%2039.6271C48.2747%2043.6464%2042.7809%2048.2894%2039.6836%2050.2217M39.6836%2050.2217V20.7969'%20stroke='black'%20fill='transparent'%20stroke-width='1.52124'/%3e%3cg%20transform='translate(11,0)'%3e%3cpath%20d='M39.6836%2039.941C44.1108%2034.3597%2056.6663%2039.6271%2039.6836%2050.2217M39.6836%2039.941C41.2414%2038.4368%2045.5825%2035.9737%2046.9165%2040.0869C48.1652%2043.937%2043.0033%2048.4515%2039.6836%2050.2217M39.6836%2039.941C43.5534%2036.8878%2046.0949%2037.9243%2046.7436%2039.6271C48.2747%2043.6464%2042.7809%2048.2894%2039.6836%2050.2217M39.6836%2050.2217V20.7969'%20stroke='black'%20fill='transparent'%20stroke-width='1.52124'/%3e%3c/g%3e%3c/svg%3e",Pn="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='280'%20height='310'%20viewBox='37%2013%2028%2031'%3e%3crect%20id='Rectangle%201264'%20x='40.1074'%20y='14.6406'%20width='1.48319'%20height='28.5514'%20fill='black'/%3e%3crect%20id='Rectangle%201265'%20x='46.4102'%20y='13.1562'%20width='1.48319'%20height='28.5514'%20fill='black'/%3e%3cpath%20id='Rectangle%201266'%20d='M37.8828%2021.6815L50.1191%2019.0859V23.5355L37.8828%2026.1311V21.6815Z'%20fill='black'/%3e%3cpath%20id='Rectangle%201267'%20d='M37.8828%2033.9237L50.1191%2031.3281V35.7777L37.8828%2038.3733V33.9237Z'%20fill='black'/%3e%3cg%20transform='translate(14,0)'%3e%3crect%20id='Rectangle%201264'%20x='40.1074'%20y='14.6406'%20width='1.48319'%20height='28.5514'%20fill='black'/%3e%3crect%20id='Rectangle%201265'%20x='46.4102'%20y='13.1562'%20width='1.48319'%20height='28.5514'%20fill='black'/%3e%3cpath%20id='Rectangle%201266'%20d='M37.8828%2021.6815L50.1191%2019.0859V23.5355L37.8828%2026.1311V21.6815Z'%20fill='black'/%3e%3cpath%20id='Rectangle%201267'%20d='M37.8828%2033.9237L50.1191%2031.3281V35.7777L37.8828%2038.3733V33.9237Z'%20fill='black'/%3e%3c/g%3e%3c/svg%3e",zn="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='100'%20height='300'%20viewBox='38%2020%2011.5%2031'%3e%3cpath%20d='M39.6836%2039.941C44.1108%2034.3597%2056.6663%2039.6271%2039.6836%2050.2217M39.6836%2039.941C41.2414%2038.4368%2045.5825%2035.9737%2046.9165%2040.0869C48.1652%2043.937%2043.0033%2048.4515%2039.6836%2050.2217M39.6836%2039.941C43.5534%2036.8878%2046.0949%2037.9243%2046.7436%2039.6271C48.2747%2043.6464%2042.7809%2048.2894%2039.6836%2050.2217M39.6836%2050.2217V20.7969'%20stroke='black'%20fill='transparent'%20stroke-width='1.52124'/%3e%3c/svg%3e",Wn="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='100'%20height='300'%20viewBox='37%2013%2014%2031'%3e%3crect%20id='Rectangle%201264'%20x='40.1074'%20y='14.6406'%20width='1.48319'%20height='28.5514'%20fill='black'/%3e%3crect%20id='Rectangle%201265'%20x='46.4102'%20y='13.1562'%20width='1.48319'%20height='28.5514'%20fill='black'/%3e%3cpath%20id='Rectangle%201266'%20d='M37.8828%2021.6815L50.1191%2019.0859V23.5355L37.8828%2026.1311V21.6815Z'%20fill='black'/%3e%3cpath%20id='Rectangle%201267'%20d='M37.8828%2033.9237L50.1191%2031.3281V35.7777L37.8828%2038.3733V33.9237Z'%20fill='black'/%3e%3c/svg%3e",Fn="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='100'%20height='300'%20viewBox='3%2011%2010%2028'%3e%3cpath%20id='natural_1_'%20d='M5.1,23.1v5.1l5.6-1.2v-5L5.1,23.1z%20M12.2,17.8V39h-1.6v-8.3l-7.1,1.5V11h1.6v8.3L12.2,17.8z'/%3e%3c/svg%3e",Vn="data:image/svg+xml,%3csvg%20viewBox='0%200%20100%20100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='50'%20/%3e%3c/svg%3e",Zn="data:image/svg+xml,%3csvg%20viewBox='0%200%20100%20300'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='250'%20r='50'%20/%3e%3c/svg%3e",On="data:image/svg+xml,%3csvg%20viewBox='0%200%20100%20500'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='250'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='450'%20r='50'%20/%3e%3c/svg%3e",Qn="data:image/svg+xml,%3csvg%20viewBox='0%200%20100%20700'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='250'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='450'%20r='50'%20/%3e%3ccircle%20cx='50'%20cy='650'%20r='50'%20/%3e%3c/svg%3e",qn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018.3%2011.7'%20width='100'%20height='100'%3e%3cpath%20id='whole'%20d='M5.7,5C5.9,6.6,6.3,8,7.2,9.1c0.8,1,1.8,1.4,3,1.3c1.7-0.1,2.5-1.2,2.3-3.5c-0.1-1.8-0.6-3.1-1.5-4.1%20c-0.8-1-1.8-1.4-3-1.3C7.2,1.6,6.6,1.9,6.1,2.4C5.8,2.9,5.6,3.8,5.7,5z%20M14.4,1.7c2,0.8,3.2,2.2,3.4,4.2c-0.1,2-1.2,3.4-3.2,4.2%20c-1.9,0.8-3.7,1.1-5.4,1.1c-1.7,0.1-3.5-0.3-5.5-1.1c-2-0.8-3.1-2.2-3.3-4.2c0.1-2,1.2-3.4,3.1-4.2c2-0.8,3.8-1.1,5.4-1.1%20C10.6,0.6,12.4,0.9,14.4,1.7z'/%3e%3c/svg%3e",Un="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%209%207.3'%20width='90'%20height='90'%3e%3cg%20transform='translate(0.01,3.63)%20scale(1.15,1.15)'%3e%3c!--%20外层%20+%20内层路径叠加%20--%3e%3cpath%20fill='black'%20fill-rule='evenodd'%20d='M7.8-0.9c-0.1,1.1-0.7,2-1.7,2.8C5,2.7,3.8,3.1,2.6,3.1%20c-0.8,0-1.4-0.2-1.9-0.6C0.3,2.1,0,1.5,0,0.9%20c0.1-1,0.7-1.9,1.7-2.7c1-0.8,2.1-1.2,3.2-1.3%20c0.9,0,1.6,0.2,2,0.5C7.5-2.2,7.8-1.7,7.8-0.9%20Z%20M6.4-0.8c-0.1,0.8-0.5,1.4-1.2,2%20C4.5,1.8,3.7,2.1,2.9,2.1%20C2.3,2.1,1.9,1.9,1.6,1.6%20C1.3,1.3,1.1,0.9,1.1,0.5%20c0.1-0.7,0.5-1.3,1.1-1.8%20c0.6-0.5,1.4-0.8,2.2-0.9%20c0.6,0,1.1,0.1,1.4,0.4%20C6.1-1.5,6.4-1.2,6.4-0.8Z'/%3e%3c/g%3e%3c/svg%3e",Gn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%209%207.3'%20width='90'%20height='90'%3e%3cg%20transform='translate(0.65,3.63)%20scale(1,1)%20rotate(0)'%3e%3cpath%20stroke='black'%20fill='black'%20d='M7.8-0.9c-0.1,1.1-0.7,2-1.7,2.8C5,2.7,3.8,3.1,2.6,3.1c-0.8,0-1.4-0.2-1.9-0.6C0.3,2.1,0,1.5,0,0.9c0.1-1,0.7-1.9,1.7-2.7c1-0.8,2.1-1.2,3.2-1.3c0.9,0,1.6,0.2,2,0.5C7.5-2.2,7.8-1.7,7.8-0.9'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",$n="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='100'%3e%3c!--%20音符杆%20--%3e%3cline%20x1='5'%20y1='0'%20x2='5'%20y2='100'%20stroke='black'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",Kn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%205.5%2016'%20width='80'%20height='200'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M3.9,15.4c0.5-1.5,1.1-3.8,0.3-5.6C3.5,8.2,2,6.8-0.1,6.1l-0.1,0.8h-0.5V0h0.6l0.3,2c0.3,1,0.6,1.2,1.2,2L2,4.8l2.1,2.6%20c2.3,2.9,1.1,6.4-0.1,8.1C4,15.6,3.8,15.7,3.9,15.4z%20'%20fill='black'/%3e%3c/svg%3e",Xn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%206%2019'%20width='8'%20height='20'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.8,10.3C5.7,8.7,5.2,7.3,4.1,6c-0.7-1-1.7-2-3-3c-0.5-0.5-0.8-1-1-1.5L-0.1,0h-0.6v10h0.5V9.6c1.3,0.4,2.5,1.2,3.3,2%20c0.5,0.5,0.8,1.1,1.1,1.6C5,15.1,4.5,17.1,4,18.6c0,0.1,0.1,0.1,0.1,0.1c0.2-0.3,0.4-0.4,0.6-0.9c0.2-0.4,0.4-0.9,0.5-1.4%20c0.2-0.7,0.3-1.4,0.2-2.1l0,0c0-0.4-0.1-0.8-0.2-1.3C5.7,12.3,5.8,11.1,5.8,10.3z%20M4.1,10.9L3,9.6L2,8.3L1.4,7.5%20c-0.5-0.7-0.9-1-1.2-1.7c0,0-0.1-0.3-0.1-0.4c0,0-0.1-0.7-0.1-1l0,0c1.5,0.8,2.8,1.8,3.8,2.9c0.9,0.9,1.3,1.9,1.6,3%20c0,0.1,0,0.2,0,0.3L5,12.5C4.8,11.9,4.5,11.4,4.1,10.9z%20'%20fill='black'/%3e%3c/svg%3e",Jn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%20-4.5%206.2%2023.5'%20width='8'%20height='30'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.4,12.8c0-0.1,0.1-0.2,0.1-0.3c0.2-0.7,0.3-1.4,0.3-2C5.7,9.7,5.6,9,5.4,8.4c0.3-0.8,0.4-1.7,0.4-2.6%20c-0.1-1.6-0.6-3-1.7-4.3c-0.8-1-1.8-2-3-3C0.6-2,0.3-2.5,0.1-3l-0.2-1.5h-0.6v14.7h0.5V9.7l2.5,1.6C3.3,11.8,4,12.4,4.6,13c0,0,0,0,0,0.1C5.3,14,5.5,16,5.5,16c0,0.6,0,1.1-0.2,1.8l0,0.2c0,0.3-0.1,0.4-0.1,0.6c0,0.1,0.1,0.1,0.1,0.1C5.6,17.9,6,17,6,15.7%20C6,15,5.8,13.6,5.4,12.8z%20M-0.1-0.1c1.5,0.8,2.8,1.7,3.8,2.9c0.8,0.9,1.3,2,1.4,3.4v1.6c-0.2-0.6-0.6-1.1-1-1.6%20c-0.8-0.9-1.8-1.9-3-3c-0.5-0.5-0.8-1-1-1.5l-0.2-1.5V-0.1z%20M5.1,12.2l-0.6-0.8l-0.2-0.2l-0.8-0.9L2.1,9c-0.5-0.5-1-1.1-1.4-2%20C0.2,6.2,0,5.4-0.1,4.5c1.5,0.8,2.8,1.8,3.8,2.9c0.8,1,1.3,2.1,1.5,3.3l-0.1,1.1L5.1,12.2z%20'%20fill='black'/%3e%3c/svg%3e",En="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%20-9%206.5%2029'%20width='80'%20height='300'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.8,3.9c0.3-0.8,0.4-1.7,0.4-2.6C6.1-0.3,5.6-1.7,4.5-3c-0.8-1-1.8-2-3-3C1-6.5,0.7-7,0.5-7.5L-0.2-9h-0.5v19.4H0V9.9%20c0,0,2.6,1,3.3,1.9c0.5,0.5,0.9,1.1,1.1,1.8c0.8,1.8,0.3,3.8-0.2,5.3c-0.1,0.3,0.1,0.2,0.1,0.1c0.8-1.1,1.4-2.6,1.3-4.5l0,0%20c-0.2-2.1-1.8-3.9-1.8-3.9S1.5,8,1.1,7.2C0.9,6.9,0,5,0,4.7h0.4c1.5,0.8,2.8,1.8,3.8,2.9c2.3,2.1,1.1,5.7,1.1,5.7l0.1,0.3%20c1-1.6,0.7-4.4,0.5-5C6.1,7.8,6.2,6.9,6.2,6C6.2,5.3,6,4.6,5.8,3.9z%20M5.5,8c-0.2-0.6-0.6-1.1-1-1.6c-0.8-0.9-1.8-1.9-3-3%20c-0.5-0.5-0.8-1-1-1.5L0,0.1C1.4,0.9,3.1,1.8,4.1,3c0.8,1,1.3,2,1.4,3.4V8z%20M5.5,3.3l-1-1.6c-0.8-1-1.8-2-3-3c-0.5-0.5-0.8-1-1-1.5%20L0-4.6c1.5,0.8,3.1,1.7,4.2,2.9c0.8,0.9,1.3,2,1.4,3.2V3.3z%20'%20fill='black'/%3e%3c/svg%3e",Yn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%20-9.8%206.5%2029'%20width='80'%20height='300'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.7,14.3c0.1-0.4,0.2-0.7,0.3-1.1c0-0.2,0-0.4,0-0.5c0-0.5-0.1-1-0.2-1.6c-0.1-0.4-0.1-0.9,0-1.3C5.9,9.4,5.9,9,5.9,8.6%20c0-0.5-0.1-1.1-0.1-1.7c0-0.3,0-0.6,0-0.9l0.1-0.9c0-0.2,0-0.4,0-0.6c0-0.5-0.1-0.9-0.1-1.5c0-0.3,0-0.6,0-0.9l0.1-1%20c0-0.2,0-0.4,0-0.5c0-0.7-0.1-1.5-0.4-2.4C5.2-2.8,4.7-3.7,4-4.6C3.4-5.5,2.4-6.4,1.3-7.4c-0.5-0.5-0.8-1-1-1.4l-0.5-1h-0.5v21.1%20h0.4v-0.6l2.7,1.7c0.8,0.5,1.4,1,1.9,1.5c0.2,0.2,0.3,0.3,0.5,0.5c0.1,0.2,0.2,0.3,0.3,0.4c0.2,0.4,0.3,0.8,0.4,1.3%20c0,0,0.4,1.2,0,2.2l-0.2,0.4c0,0.1,0.1,0,0.1,0c0.3-0.5,0.4-0.4,0.6-1.2c0.1-0.4,0.1-0.8,0.1-1.2C6.3,15.6,6.1,14.9,5.7,14.3z%20M-0.1-6C1-5.4,2-4.8,2.8-4.1c0.8,0.6,1.5,1.5,2,2.7l0.3,1.1c0,0.1,0.1,0.3,0.1,0.4L5.4,1v0.7C5.1,0.9,4.7,0.1,4.1-0.7%20C3.4-1.5,2.4-2.5,1.3-3.5c-0.5-0.5-0.8-1-1-1.4l-0.4-1V-6z%20M2.8-0.2c0.8,0.6,1.5,1.5,2,2.7l0.3,1.1c0,0.2,0.1,0.3,0.1,0.5l0.2,1v0.6%20C5.1,4.7,4.7,3.9,4.1,3.2C3.4,2.3,2.4,1.3,1.3,0.4c-0.5-0.5-0.9-1-1-1.5l-0.4-1C1-1.5,2-0.9,2.8-0.2z%20M-0.1,1.7C1,2.3,2,3,2.8,3.7%20c0.8,0.6,1.5,1.5,2,2.7l0.3,1.1c0,0.1,0.1,0.3,0.1,0.4l0.2,0.9v0.7C5.1,8.7,4.7,7.9,4.1,7.1C3.4,6.2,2.4,5.3,1.3,4.3%20c-0.5-0.5-0.8-1-1-1.4l-0.4-1.1V1.7z%20M4.6,12.6l-1-1.1l-1.4-1.4C1.7,9.6,1.2,9,0.8,8.2C0.3,7.4,0.1,6.6,0,5.7c1.1,0.6,2,1.2,2.8,1.8%20c0.7,0.6,1.4,1.4,1.9,2.4c0.1,0.2,0.2,0.4,0.2,0.6l0.3,1l0.1,0.4l0.1,0.8v1.1l-0.7-1L4.6,12.6z%20'%20fill='black'/%3e%3c/svg%3e",eo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%20-18%206%2037'%20width='80'%20height='400'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.2,12.7c0.1-0.3,0.2-0.6,0.2-0.9c0.1-0.5,0.2-1,0.2-1.5c-0.1-0.7-0.2-1.4-0.4-2c0.3-0.8,0.4-1.7,0.4-2.6%20c0-0.8-0.2-1.5-0.4-2.1C5.5,2.8,5.6,1.9,5.6,1c0-0.7-0.1-1.4-0.3-2c0.2-0.8,0.3-1.6,0.3-2.5c0-0.6-0.1-1.2-0.3-1.8%20c0.2-0.8,0.3-1.6,0.3-2.4C5.5-9.3,5-10.7,3.9-12c-0.8-1-1.8-2-3-3c-0.5-0.5-0.9-1-1.1-1.5L-0.5-18h-0.4v28h0.5V9.6l0.1,0.1L0.3,10%20l1.8,1.1c0.9,0.5,1.7,1.1,2.2,1.7c0.9,1.1,1,3,1,3c0,0.6-0.1,1.3-0.3,2c0,0-0.1,0.2-0.1,0.3C4.8,18.4,5,18.3,5,18.2%20c0.4-0.6,0.6-0.9,0.8-1.8C6.1,15.4,5.6,13.5,5.2,12.7z%20M3.4-10.7c0.9,1,1.4,2.1,1.5,3.1v1.3L3.8-7.9c-0.8-1-1.8-2-3-3%20c-0.5-0.5-0.8-1-1-1.5l-0.2-1.2C1.1-12.8,2.4-11.9,3.4-10.7z%20M3.4-6.5c0.9,1,1.4,2.1,1.5,3.3l-0.1,1v0.4l-1-1.6c-0.8-1-1.8-2-3-3%20c-0.5-0.5-0.8-1-1-1.5l-0.2-1.5C1.1-8.6,2.4-7.7,3.4-6.5z%20M-0.4-5c1.5,0.8,2.8,1.7,3.8,2.9c0.9,1,1.4,2.1,1.5,3.3V3l-1-1.6%20c-0.8-1-1.8-2-3-3C0.4-2.1,0-2.6-0.2-3.2l-0.2-1.5V-5z%20M-0.4-0.2c1.5,0.8,2.8,1.7,3.8,2.9c0.9,0.9,1.4,2,1.5,3.2v1.7%20C4.7,7,4.3,6.5,3.9,6c-0.8-0.9-1.8-1.9-3-3C0.4,2.5,0,2-0.2,1.5L-0.4,0V-0.2z%20M-0.4,4.4c0.3,0.1,0.5,0.3,0.8,0.4%20c1.2,0.7,2.2,1.5,3,2.5c0.9,1,1.4,2.1,1.5,3.3V12l-0.6-0.8l-1-1.1L1.9,8.8C1.3,8.3,0.8,7.7,0.4,6.9C-0.1,6.1-0.3,5.3-0.4,4.4z%20'%20fill='black'/%3e%3c/svg%3e",to="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%208%204'%20width='80'%20height='40'%20preserveAspectRatio='none'%3e%3crect%20x='0'%20y='0'%20width='8'%20height='4'%20fill='black'/%3e%3c/svg%3e",no="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%208%204'%20width='80'%20height='40'%20preserveAspectRatio='none'%3e%3crect%20x='0'%20y='0'%20width='8'%20height='4'%20fill='black'/%3e%3c/svg%3e",oo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-9.5%207.5%2020'%20width='80'%20height='200'%3e%3cpath%20stroke='black'%20d='M6.2-4.3C4.7-2.6,3.9-1.2,3.8,0.2c0,0.8,0.3,1.6,0.8,2.4l1.6,2.1L5.8,5.1C5.2,4.8,4.6,4.6,4.1,4.6c-0.5,0-0.9,0.2-1.3,0.7C2.4,6.1,2.3,6.8,2.6,7.4c0.3,0.6,0.6,1.1,1,1.4L3.3,9.3L1.2,7.4C0.5,6.7,0.1,5.9,0,4.9c0.1-1.4,0.9-2.1,2.3-2.1c0.5,0,1.2,0.2,1.9,0.6V3.4L0.4-1.5c0.7-0.6,1.3-1.3,1.8-2.1s0.7-1.7,0.6-2.6C2.5-7.3,2-8.1,1.4-8.9h1L6.2-4.3'%3e%3c/path%3e%3c/svg%3e",ro="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.5%20-7%207.5%2012.3'%20width='80'%20height='160'%3e%3cpath%20stroke='black'%20d='M3.3-4.1L3.2-3.8c0.1,0.3,0.3,0.3,0.6,0.2c1-0.4,1.7-1.1,2.1-2h0.4L3.5,4.7H2.6L5-3.4C4.1-2.9,3.3-2.6,2.3-2.5c-0.6,0-1.1-0.2-1.6-0.6C0.4-3.5,0.1-3.9,0.1-4.5c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0,1.3,0.4c0.4,0.3,0.5,0.7,0.6,1.3L3.3-4.1'%3e%3c/path%3e%3c/svg%3e",io="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-5%209.5%2018.5'%20width='90'%20height='180'%3e%3cpath%20stroke='black'%20d='M2.3-1C1.9-1.4,1.6-1.9,1.6-2.5c0-1,0.5-1.6,1.5-1.8C3.6-4.4,4-4.2,4.3-3.9c0.4,0.3,0.6,0.7,0.6,1.3L4.8-2L4.7-1.7c0.1,0.2,0.3,0.3,0.6,0.1C6.3-2,7-2.7,7.5-3.6H8L3.4,12.7H2.6l2.3-8.2C4.1,5.1,3.2,5.4,2.3,5.4c-0.6,0-1.1-0.2-1.6-0.6C0.3,4.5,0,4,0,3.5c0.1-1.1,0.7-1.7,1.8-1.9c0.5,0,0.9,0.2,1.2,0.6c0.3,0.4,0.4,0.8,0.4,1.3L3.2,4.2c0.1,0.1,0.2,0.2,0.3,0.2c0.3,0,0.6-0.1,0.9-0.4l0.8-0.6l1.3-4.7C5.6-0.9,4.8-0.6,3.8-0.5C3.3-0.5,2.8-0.7,2.3-1'%3e%3c/path%3e%3c/svg%3e",ao="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-13%2011%2025'%20width='100'%20height='240'%3e%3cpath%20stroke='black'%20d='M6.5-10L6.4-9.7c0.1,0.3,0.3,0.3,0.6,0.2c0.9-0.4,1.7-1.1,2.2-2h0.4L3.5,10.8H2.6l2.3-8.2C4.1,3.1,3.2,3.4,2.3,3.5c-0.6,0-1.1-0.2-1.6-0.6C0.3,2.6,0,2.1,0,1.5c0.1-1.1,0.7-1.7,1.8-1.9c1,0.1,1.5,0.7,1.6,1.7L3.2,2.3c0.1,0.1,0.2,0.2,0.3,0.1c0.3,0,0.6-0.1,1-0.4l0.8-0.7l1.2-4.7C5.7-2.8,4.8-2.5,3.9-2.5C3.3-2.5,2.8-2.7,2.3-3C1.9-3.4,1.6-3.8,1.6-4.4c0-1.1,0.6-1.7,1.8-1.9c0.5,0,0.9,0.2,1.2,0.6C4.8-5.3,5-4.9,4.9-4.4L4.8-3.7c0.1,0.1,0.2,0.2,0.3,0.2c0.3,0,0.6-0.1,1-0.4l0.8-0.8l1.3-4.7C7.3-8.8,6.5-8.5,5.6-8.5C5-8.5,4.4-8.7,4-9c-0.4-0.4-0.7-0.8-0.7-1.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0.1,1.3,0.4c0.4,0.3,0.6,0.7,0.6,1.3C6.7-10.4,6.6-10.2,6.5-10'%3e%3c/path%3e%3c/svg%3e",lo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-13%2013%2031'%20width='50'%20height='140'%3e%3cpath%20stroke='black'%20d='M7.3-8.5C6.7-8.5,6.2-8.7,5.7-9C5.3-9.4,5-9.9,5-10.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.6,0.7,0.6,1.3L8.3-10L8.2-9.7c0.1,0.3,0.3,0.3,0.6,0.2c1-0.4,1.7-1.1,2.2-2h0.4L3.5,16.8H2.6l2.3-8.2C4.1,9.1,3.2,9.4,2.3,9.5c-0.6,0-1.1-0.2-1.6-0.6S0,8.1,0,7.6c0.1-1.1,0.7-1.7,1.8-1.9c1,0.1,1.5,0.7,1.6,1.7L3.2,8.3c0.1,0.1,0.2,0.2,0.3,0.1c0.3,0,0.6-0.1,0.9-0.4l0.8-0.7l1.3-4.7C5.7,3.2,4.8,3.5,3.9,3.5C3.3,3.5,2.8,3.3,2.3,3C1.9,2.6,1.6,2.2,1.6,1.6c0-1.1,0.6-1.7,1.8-1.9c0.5,0,0.9,0.2,1.2,0.6S5,1.1,5,1.6L4.8,2.3C4.9,2.5,5,2.5,5.1,2.5c0.3,0,0.6-0.1,1-0.4l0.8-0.8l1.3-4.7C7.4-2.8,6.5-2.5,5.6-2.5C5-2.5,4.4-2.7,4-3C3.5-3.4,3.3-3.9,3.3-4.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0.1,1.3,0.4C6.5-5.5,6.7-5,6.7-4.5L6.6-4L6.5-3.7c0.1,0.3,0.3,0.3,0.6,0.2c0.5-0.2,1-0.5,1.5-1.1l1.3-4.7C9.1-8.8,8.2-8.5,7.3-8.5'%3e%3c/path%3e%3c/svg%3e",so="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-19%2015%2037'%20width='50'%20height='140'%3e%3cpath%20stroke='black'%20d='M12.9-17.6L3.5,16.8H2.6l2.2-8.2C4.1,9.1,3.2,9.4,2.3,9.5c-0.6,0-1.1-0.2-1.6-0.6S0,8.1,0,7.5c0.1-1.1,0.7-1.7,1.8-1.9c1,0.1,1.5,0.7,1.6,1.7L3.2,8.3c0.1,0.1,0.2,0.2,0.3,0.2c0.3,0,0.6-0.1,0.9-0.4l0.8-0.7l1.2-4.7C5.6,3.1,4.8,3.4,3.9,3.5c-0.6,0-1.1-0.2-1.6-0.6C1.9,2.6,1.6,2.1,1.6,1.6c0-1.1,0.6-1.7,1.8-1.8c0.5,0,0.9,0.2,1.2,0.6C4.8,0.7,5,1.1,4.9,1.5L4.8,2.3c0.1,0.1,0.2,0.2,0.3,0.1c0.3,0,0.6-0.1,0.9-0.4l0.8-0.8l1.4-4.6C7.3-2.8,6.5-2.5,5.6-2.5C5-2.5,4.4-2.7,4-3C3.5-3.4,3.3-3.9,3.3-4.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0.1,1.3,0.4c0.4,0.3,0.6,0.8,0.6,1.3L6.5-4L6.4-3.7c0.1,0.3,0.3,0.3,0.6,0.2c0.5-0.2,1-0.5,1.5-1.1l1.3-4.7C9-8.8,8.2-8.5,7.2-8.5C6.6-8.5,6.1-8.7,5.7-9C5.2-9.4,5-9.9,5-10.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.5,0.8,0.6,1.3L8.2-10L8.1-9.7c0.1,0.3,0.3,0.3,0.6,0.2c0.6-0.2,1.1-0.6,1.5-1.1l1.2-4.7c-0.8,0.5-1.7,0.8-2.6,0.9c-0.6,0-1.1-0.2-1.6-0.6c-0.5-0.4-0.7-0.8-0.7-1.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.5,0.7,0.6,1.3L9.8-16l-0.1,0.3c0.1,0.3,0.3,0.3,0.6,0.2c0.9-0.4,1.6-1.1,2.1-2H12.9'%3e%3c/path%3e%3c/svg%3e",co="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-19%2016%2042'%20width='50'%20height='140'%3e%3cpath%20stroke='black'%20d='M14.4-17.7L5,16.7l0,0l-1.6,5.7H2.5l1.6-5.7l0,0l0.7-2.5C4,14.7,3.2,15,2.3,15.1c-0.6,0-1.1-0.2-1.6-0.6C0.3,14.2,0,13.7,0,13.1c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0,1.3,0.4C3.1,12,3.3,12.4,3.3,13l-0.1,0.6l-0.1,0.3c0.1,0.3,0.3,0.3,0.6,0.2l1.4-1l1.2-4.5C5.5,9.1,4.7,9.4,3.7,9.5c-0.6,0-1.1-0.2-1.6-0.6C1.8,8.5,1.6,8,1.5,7.4c0.1-1.1,0.7-1.7,1.8-1.9c1,0.1,1.5,0.7,1.6,1.7L4.7,8.1C4.8,8.2,4.9,8.3,5,8.2c0.3,0,0.6-0.1,0.9-0.4l0.8-0.7l1.2-4.7C7.2,3,6.3,3.3,5.4,3.4c-0.6,0-1.1-0.2-1.6-0.6C3.4,2.5,3.2,2,3.2,1.5c0-1.1,0.6-1.7,1.8-1.8c0.5,0,0.9,0.2,1.2,0.6C6.4,0.6,6.5,1,6.5,1.4L6.3,2.2c0.1,0.1,0.2,0.2,0.3,0.2c0.3,0,0.6-0.1,0.9-0.4l0.8-0.8l1.4-4.6C8.9-2.9,8-2.6,7.1-2.6C6.5-2.6,6-2.8,5.5-3.1C5.1-3.5,4.8-4,4.8-4.5c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0,1.3,0.3C8-5.6,8.2-5.2,8.2-4.7L8.1-4.1L8-3.8c0.1,0.3,0.3,0.3,0.6,0.2c0.5-0.2,1-0.5,1.5-1.1l1.3-4.7c-0.8,0.5-1.7,0.8-2.6,0.9c-0.6,0-1.1-0.2-1.6-0.6C6.8-9.5,6.5-10,6.5-10.5c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.5,0.8,0.6,1.3l-0.1,0.5L9.7-9.8c0.1,0.3,0.3,0.3,0.6,0.2c0.6-0.2,1.1-0.6,1.5-1.1l1.2-4.7c-0.8,0.5-1.7,0.8-2.6,0.9c-0.6,0-1.1-0.2-1.6-0.6c-0.5-0.4-0.7-0.8-0.7-1.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.5,0.7,0.6,1.3L11.4-16l-0.1,0.3c0.1,0.3,0.3,0.3,0.6,0.2c0.9-0.4,1.6-1.1,2.1-2h0.4'%3e%3c/path%3e%3c/svg%3e",uo="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJyZWQiPjE8L3RleHQ+DQo8L3N2Zz4NCg==",mo="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJyZWQiPjI8L3RleHQ+DQo8L3N2Zz4NCg==",go="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJyZWQiPjM8L3RleHQ+DQo8L3N2Zz4NCg==",ho="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJyZWQiPjQ8L3RleHQ+DQo8L3N2Zz4NCg==",fo="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJyZWQiPjU8L3RleHQ+DQo8L3N2Zz4NCg==",po="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJyZWQiPjY8L3RleHQ+DQo8L3N2Zz4NCg==",yo="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQogICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICAgd2lkdGg9IjMwIiBoZWlnaHQ9IjUwIg0KICAgICB2aWV3Qm94PSIwIDAgMzAgNTAiPg0KICAgIDwhLS0geSDorr7kuLogMjDvvIzorqnmloflrZfokL3lnKjlj6/op4HojIPlm7QgLS0+DQogICAgPHRleHQgeD0iLTIiIHk9IjQ4IiBmb250LXNpemU9IjcwIiBmaWxsPSJyZWQiPjc8L3RleHQ+DQo8L3N2Zz4NCg==",vo="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='30'%20height='60'%20viewBox='0%20-100%20300%20485'%3e%3cg%20id='XMLID_516_'%20transform='translate(0,%20142.5)%20scale(1,1.8)%20translate(0,%20-142.5)%20'%3e%3crect%20fill='red'%20id='XMLID_517_'%20y='7.5'%20width='60'%20height='270'/%3e%3crect%20fill='red'%20id='XMLID_518_'%20x='90'%20y='7.5'%20width='30'%20height='270'/%3e%3cpath%20fill='red'%20id='XMLID_519_'%20d='M225,157.428v-29.855c33.084,0,60-26.916,60-60c0-33.084-26.916-60-60-60%20c-31.424,0-57.18,23.901-59.779,54.892c-0.02,0.158-0.173,1.825-0.173,2.515c0,0.031,0.005,0.06,0.005,0.091%20c-0.001,0.024-0.004,0.047-0.005,0.071l0.009,0.001c0.088,10.97,9,19.837,19.991,19.837c11.046,0,20-8.954,20-20%20c0-5.252-2.041-10.017-5.353-13.586c5.326-8.344,14.666-13.821,25.305-13.821c16.542,0,30,13.458,30,30c0,16.542-13.458,30-30,30%20V82.5l-75,60l75,60v-15.072c16.542,0,30,13.458,30,29.999c0,16.542-13.458,30.001-30,30.001c-10.639,0-19.979-5.477-25.305-13.821%20c3.312-3.569,5.353-8.333,5.353-13.586c0-11.046-8.954-20-20-20c-10.991,0-19.903,8.868-19.991,19.837l-0.009,0.001%20c0.001,0.024,0.004,0.047,0.005,0.071c0,0.031-0.005,0.06-0.005,0.091c0,0.69,0.153,2.357,0.173,2.515%20c2.6,30.991,28.355,54.892,59.779,54.892c33.084,0,60-26.916,60-60.001C285,184.343,258.084,157.428,225,157.428z'/%3e%3c/g%3e%3c/svg%3e",So="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20viewBox='0%200%20110%20108'%20style='enable-background:new%200%200%20270%20270;'%20xml:space='preserve'%3e%3cg%20id='XMLID_520_'%3e%3cpath%20id='Vector'%20d='M102.654%2023.3828C106.677%2023.3828%20109.838%2020.5407%20109.838%2016.9234C109.838%2013.3062%20106.677%2010.4641%20102.654%2010.4641C98.6315%2010.4641%2095.4707%2013.3062%2095.4707%2016.9234C95.4707%2020.5407%2098.4878%2023.3828%20102.654%2023.3828ZM102.654%2042.7608C98.6315%2042.7608%2095.4707%2045.6029%2095.4707%2049.2201C95.4707%2052.8373%2098.6315%2055.6794%20102.654%2055.6794C106.677%2055.6794%20109.838%2052.8373%20109.838%2049.2201C109.838%2045.6029%20106.677%2042.7608%20102.654%2042.7608ZM40.2996%200C21.7656%200%204.9557%2011.756%204.9557%2027.1292C4.9557%2037.2057%2010.8854%2044.9704%2020.0415%2045.732C40.8212%2047.4606%2046.2348%2021.2964%2024.0644%2020.0239C18.1738%2020.0239%2013.5762%2024.1579%2014.0072%2024.1579C13.2888%2024.1579%2013.0015%2023.512%2013.0015%2022.0909C13.0015%2012.9187%2025.7885%204.13397%2037.5698%204.13397C54.0924%204.13397%2064.5806%2016.5359%2064.5806%2033.0718C64.5806%2053.6124%2051.2189%2076.4785%2029.9551%2093.6603C25.7782%2097.0308%2017.2127%20101.693%208.71847%20105.08C7.61003%20105.522%207.94765%20107.002%209.11336%20106.747C39.4552%20100.11%2083.2583%2069.2189%2083.2583%2038.3684C83.1147%2021.0574%2074.3505%20-2.37683e-07%2040.2996%200Z'%20fill='red'/%3e%3c/g%3e%3c/svg%3e",bo="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20width='30'%20height='50'%20viewBox='0%200%2095%20248'%20style='enable-background:new%200%200%2025.8%2025.8;'%20xml:space='preserve'%3e%3cg%3e%3cpath%20id='Vector'%20d='M58.2521%20128.588L52.5358%20100.789C71.9986%2084.2187%2080.9814%2066.5533%2080.9814%2047.2446C80.9814%2032.3181%2075.1289%2016.5699%2063.1519%200C49.6777%2010.9553%2041.9198%2032.7289%2041.9198%2056.1458C41.9198%2064.4992%2043.0086%2072.4417%2044.7779%2080.1104C14.9713%20105.308%200%20128.451%200%20149.676C0%20174.6%2025.5874%20195.278%2053.2163%20195.278C59.341%20195.278%2063.9685%20194.319%2068.1877%20192.265L73.2235%20216.641C76.0308%20232.176%2060.9865%20244.44%2046.4112%20244.44C42.0559%20244.44%2037.8367%20243.344%2034.0258%20241.427C44.0974%20240.331%2051.7192%20234.169%2051.7192%20225.131C51.7192%20217.051%2045.1862%20208.698%2036.7479%20208.698C27.2206%20208.698%2020.6877%20216.093%2020.6877%20225.679C20.6877%20239.099%2031.5759%20248%2044.6418%20248C62.1991%20248%2077.0344%20236.497%2077.0344%20220.064C77.0344%20216.504%2071.5903%20191.991%2071.4542%20191.17C85.4728%20184.322%2095%20172.272%2095%20159.399C94.8431%20138.883%2077.0476%20126.943%2058.2521%20128.588ZM65.4656%2018.7609C71.9195%2018.7609%2074.3123%2029.9375%2074.3123%2034.9199C74.3123%2047.6554%2065.3295%2062.0342%2047.6361%2077.7824C44.0453%2063.3306%2046.2924%2018.7609%2065.4656%2018.7609ZM12.1132%20156.66C12.1132%20139.132%2025.043%20121.056%2049.5415%20102.706L54.9857%20128.998C41.3754%20131.874%2029.8066%20143.514%2029.8066%20156.523C29.8066%20167.616%2037.7006%20175.284%2049.4054%20177.202C42.192%20172.683%2038.6533%20167.068%2038.6533%20160.358C38.6533%20151.32%2047.0917%20144.61%2057.8438%20143.103L67.235%20188.431C45.0494%20200.606%2012.1132%20182.493%2012.1132%20156.66ZM70.5014%20186.65L61.2464%20142.692C73.7567%20141.724%2083.5673%20151.091%2083.5673%20164.055C83.5673%20172.683%2079.0759%20180.214%2070.5014%20186.65Z'%20fill='red'/%3e%3c/g%3e%3c/svg%3e",xo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='500'%20height='80'%3e%3cline%20x1='0'%20y1='0'%20x2='500'%20y2='000'%20stroke='red'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='80'%20x2='500'%20y2='80'%20stroke='red'%20stroke-width='1'%3e%3c/line%3e%3c/svg%3e",wo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='500'%20height='80'%3e%3cline%20x1='0'%20y1='0'%20x2='500'%20y2='000'%20stroke='red'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='20'%20x2='500'%20y2='20'%20stroke='red'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='40'%20x2='500'%20y2='40'%20stroke='red'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='60'%20x2='500'%20y2='60'%20stroke='red'%20stroke-width='1'%3e%3c/line%3e%3cline%20x1='0'%20y1='80'%20x2='500'%20y2='80'%20stroke='red'%20stroke-width='1'%3e%3c/line%3e%3c/svg%3e",Co="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20130%20400'%20width='130'%20height='400'%3e%3cg%3e%3c!--%20细线(左)%20--%3e%3cline%20x1='60'%20x2='60'%20y1='0'%20y2='400'%20stroke='red'%20stroke-width='20'/%3e%3c!--%20粗线(右)%20--%3e%3cline%20x1='110'%20x2='110'%20y1='0'%20y2='400'%20stroke='red'%20stroke-width='40'/%3e%3c!--%20左侧两个实心小圆点%20--%3e%3c!--%20五线谱高度200时的点位比例换算到400高度时翻倍%20--%3e%3ccircle%20cx='25'%20cy='150'%20r='12.5'%20fill='red'/%3e%3ccircle%20cx='25'%20cy='250'%20r='12.5'%20fill='red'/%3e%3c/g%3e%3c/svg%3e",Io="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20130%20400'%20width='130'%20height='400'%3e%3cg%3e%3c!--%20细线(左)%20--%3e%3cline%20x1='60'%20x2='60'%20y1='0'%20y2='400'%20stroke='red'%20stroke-width='20'/%3e%3c!--%20粗线(右)%20--%3e%3cline%20x1='110'%20x2='110'%20y1='0'%20y2='400'%20stroke='red'%20stroke-width='40'/%3e%3c/g%3e%3c/svg%3e",Mo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20130%20400'%20width='130'%20height='400'%3e%3cg%20transform='scale(-1,1)%20translate(-130,0)'%3e%3c!--%20细线(左)%20--%3e%3cline%20x1='60'%20x2='60'%20y1='0'%20y2='400'%20stroke='red'%20stroke-width='20'/%3e%3c!--%20粗线(右)%20--%3e%3cline%20x1='110'%20x2='110'%20y1='0'%20y2='400'%20stroke='red'%20stroke-width='40'/%3e%3c/g%3e%3c/svg%3e",ko="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='800'%3e%3crect%20fill='red'%20width='100'%20height='800'/%3e%3c/svg%3e",Lo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20130%20400'%20width='130'%20height='400'%3e%3cg%20transform='scale(-1,1)%20translate(-130,0)'%3e%3c!--%20细线(左)%20--%3e%3cline%20x1='60'%20x2='60'%20y1='0'%20y2='400'%20stroke='red'%20stroke-width='20'/%3e%3c!--%20粗线(右)%20--%3e%3cline%20x1='110'%20x2='110'%20y1='0'%20y2='400'%20stroke='red'%20stroke-width='40'/%3e%3c!--%20左侧两个实心小圆点%20--%3e%3c!--%20五线谱高度200时的点位比例换算到400高度时翻倍%20--%3e%3ccircle%20cx='25'%20cy='150'%20r='12.5'%20fill='red'/%3e%3ccircle%20cx='25'%20cy='250'%20r='12.5'%20fill='red'/%3e%3c/g%3e%3c/svg%3e",Ao="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='10'%3e%3cline%20x1='0'%20y1='5'%20x2='100'%20y2='5'%20stroke='red'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",_o="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='225'%20height='310'%20viewBox='38%2020%2022.5%2031'%3e%3cpath%20d='M39.6836%2039.941C44.1108%2034.3597%2056.6663%2039.6271%2039.6836%2050.2217M39.6836%2039.941C41.2414%2038.4368%2045.5825%2035.9737%2046.9165%2040.0869C48.1652%2043.937%2043.0033%2048.4515%2039.6836%2050.2217M39.6836%2039.941C43.5534%2036.8878%2046.0949%2037.9243%2046.7436%2039.6271C48.2747%2043.6464%2042.7809%2048.2894%2039.6836%2050.2217M39.6836%2050.2217V20.7969'%20stroke='red'%20fill='transparent'%20stroke-width='1.52124'/%3e%3cg%20transform='translate(11,0)'%3e%3cpath%20d='M39.6836%2039.941C44.1108%2034.3597%2056.6663%2039.6271%2039.6836%2050.2217M39.6836%2039.941C41.2414%2038.4368%2045.5825%2035.9737%2046.9165%2040.0869C48.1652%2043.937%2043.0033%2048.4515%2039.6836%2050.2217M39.6836%2039.941C43.5534%2036.8878%2046.0949%2037.9243%2046.7436%2039.6271C48.2747%2043.6464%2042.7809%2048.2894%2039.6836%2050.2217M39.6836%2050.2217V20.7969'%20stroke='red'%20fill='transparent'%20stroke-width='1.52124'/%3e%3c/g%3e%3c/svg%3e",Bo="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='280'%20height='310'%20viewBox='37%2013%2028%2031'%3e%3crect%20id='Rectangle%201264'%20x='40.1074'%20y='14.6406'%20width='1.48319'%20height='28.5514'%20fill='red'/%3e%3crect%20id='Rectangle%201265'%20x='46.4102'%20y='13.1562'%20width='1.48319'%20height='28.5514'%20fill='red'/%3e%3cpath%20id='Rectangle%201266'%20d='M37.8828%2021.6815L50.1191%2019.0859V23.5355L37.8828%2026.1311V21.6815Z'%20fill='red'/%3e%3cpath%20id='Rectangle%201267'%20d='M37.8828%2033.9237L50.1191%2031.3281V35.7777L37.8828%2038.3733V33.9237Z'%20fill='red'/%3e%3cg%20transform='translate(14,0)'%3e%3crect%20id='Rectangle%201264'%20x='40.1074'%20y='14.6406'%20width='1.48319'%20height='28.5514'%20fill='red'/%3e%3crect%20id='Rectangle%201265'%20x='46.4102'%20y='13.1562'%20width='1.48319'%20height='28.5514'%20fill='red'/%3e%3cpath%20id='Rectangle%201266'%20d='M37.8828%2021.6815L50.1191%2019.0859V23.5355L37.8828%2026.1311V21.6815Z'%20fill='red'/%3e%3cpath%20id='Rectangle%201267'%20d='M37.8828%2033.9237L50.1191%2031.3281V35.7777L37.8828%2038.3733V33.9237Z'%20fill='red'/%3e%3c/g%3e%3c/svg%3e",No="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='100'%20height='300'%20viewBox='38%2020%2011.5%2031'%3e%3cpath%20d='M39.6836%2039.941C44.1108%2034.3597%2056.6663%2039.6271%2039.6836%2050.2217M39.6836%2039.941C41.2414%2038.4368%2045.5825%2035.9737%2046.9165%2040.0869C48.1652%2043.937%2043.0033%2048.4515%2039.6836%2050.2217M39.6836%2039.941C43.5534%2036.8878%2046.0949%2037.9243%2046.7436%2039.6271C48.2747%2043.6464%2042.7809%2048.2894%2039.6836%2050.2217M39.6836%2050.2217V20.7969'%20stroke='red'%20fill='transparent'%20stroke-width='1.52124'/%3e%3c/svg%3e",Do="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='100'%20height='300'%20viewBox='37%2013%2014%2031'%3e%3crect%20id='Rectangle%201264'%20x='40.1074'%20y='14.6406'%20width='1.48319'%20height='28.5514'%20fill='red'/%3e%3crect%20id='Rectangle%201265'%20x='46.4102'%20y='13.1562'%20width='1.48319'%20height='28.5514'%20fill='red'/%3e%3cpath%20id='Rectangle%201266'%20d='M37.8828%2021.6815L50.1191%2019.0859V23.5355L37.8828%2026.1311V21.6815Z'%20fill='red'/%3e%3cpath%20id='Rectangle%201267'%20d='M37.8828%2033.9237L50.1191%2031.3281V35.7777L37.8828%2038.3733V33.9237Z'%20fill='red'/%3e%3c/svg%3e",Ho="data:image/svg+xml,%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20width='100'%20height='300'%20viewBox='3%2011%2010%2028'%3e%3cpath%20id='natural_1_'%20fill='red'%20d='M5.1,23.1v5.1l5.6-1.2v-5L5.1,23.1z%20M12.2,17.8V39h-1.6v-8.3l-7.1,1.5V11h1.6v8.3L12.2,17.8z'/%3e%3c/svg%3e",Ro="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018.3%2011.7'%20width='100'%20height='100'%3e%3cpath%20fill='red'%20id='whole'%20d='M5.7,5C5.9,6.6,6.3,8,7.2,9.1c0.8,1,1.8,1.4,3,1.3c1.7-0.1,2.5-1.2,2.3-3.5c-0.1-1.8-0.6-3.1-1.5-4.1%20c-0.8-1-1.8-1.4-3-1.3C7.2,1.6,6.6,1.9,6.1,2.4C5.8,2.9,5.6,3.8,5.7,5z%20M14.4,1.7c2,0.8,3.2,2.2,3.4,4.2c-0.1,2-1.2,3.4-3.2,4.2%20c-1.9,0.8-3.7,1.1-5.4,1.1c-1.7,0.1-3.5-0.3-5.5-1.1c-2-0.8-3.1-2.2-3.3-4.2c0.1-2,1.2-3.4,3.1-4.2c2-0.8,3.8-1.1,5.4-1.1%20C10.6,0.6,12.4,0.9,14.4,1.7z'/%3e%3c/svg%3e",To="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%209%207.3'%20width='90'%20height='90'%3e%3cg%20transform='translate(0.01,3.63)%20scale(1.15,1.15)'%3e%3c!--%20外层%20+%20内层路径叠加%20--%3e%3cpath%20fill='red'%20fill-rule='evenodd'%20d='M7.8-0.9c-0.1,1.1-0.7,2-1.7,2.8C5,2.7,3.8,3.1,2.6,3.1%20c-0.8,0-1.4-0.2-1.9-0.6C0.3,2.1,0,1.5,0,0.9%20c0.1-1,0.7-1.9,1.7-2.7c1-0.8,2.1-1.2,3.2-1.3%20c0.9,0,1.6,0.2,2,0.5C7.5-2.2,7.8-1.7,7.8-0.9%20Z%20M6.4-0.8c-0.1,0.8-0.5,1.4-1.2,2%20C4.5,1.8,3.7,2.1,2.9,2.1%20C2.3,2.1,1.9,1.9,1.6,1.6%20C1.3,1.3,1.1,0.9,1.1,0.5%20c0.1-0.7,0.5-1.3,1.1-1.8%20c0.6-0.5,1.4-0.8,2.2-0.9%20c0.6,0,1.1,0.1,1.4,0.4%20C6.1-1.5,6.4-1.2,6.4-0.8Z'/%3e%3c/g%3e%3c/svg%3e",jo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%209%207.3'%20width='90'%20height='90'%3e%3cg%20transform='translate(0.65,3.63)%20scale(1,1)%20rotate(0)'%3e%3cpath%20stroke='red'%20fill='red'%20d='M7.8-0.9c-0.1,1.1-0.7,2-1.7,2.8C5,2.7,3.8,3.1,2.6,3.1c-0.8,0-1.4-0.2-1.9-0.6C0.3,2.1,0,1.5,0,0.9c0.1-1,0.7-1.9,1.7-2.7c1-0.8,2.1-1.2,3.2-1.3c0.9,0,1.6,0.2,2,0.5C7.5-2.2,7.8-1.7,7.8-0.9'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Po="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='100'%3e%3c!--%20音符杆%20--%3e%3cline%20x1='5'%20y1='0'%20x2='5'%20y2='100'%20stroke='red'%20stroke-width='10'%3e%3c/line%3e%3c/svg%3e",zo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%205.5%2016'%20width='80'%20height='200'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M3.9,15.4c0.5-1.5,1.1-3.8,0.3-5.6C3.5,8.2,2,6.8-0.1,6.1l-0.1,0.8h-0.5V0h0.6l0.3,2c0.3,1,0.6,1.2,1.2,2L2,4.8l2.1,2.6%20c2.3,2.9,1.1,6.4-0.1,8.1C4,15.6,3.8,15.7,3.9,15.4z%20'%20fill='red'/%3e%3c/svg%3e",Wo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%206%2019'%20width='8'%20height='20'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.8,10.3C5.7,8.7,5.2,7.3,4.1,6c-0.7-1-1.7-2-3-3c-0.5-0.5-0.8-1-1-1.5L-0.1,0h-0.6v10h0.5V9.6c1.3,0.4,2.5,1.2,3.3,2%20c0.5,0.5,0.8,1.1,1.1,1.6C5,15.1,4.5,17.1,4,18.6c0,0.1,0.1,0.1,0.1,0.1c0.2-0.3,0.4-0.4,0.6-0.9c0.2-0.4,0.4-0.9,0.5-1.4%20c0.2-0.7,0.3-1.4,0.2-2.1l0,0c0-0.4-0.1-0.8-0.2-1.3C5.7,12.3,5.8,11.1,5.8,10.3z%20M4.1,10.9L3,9.6L2,8.3L1.4,7.5%20c-0.5-0.7-0.9-1-1.2-1.7c0,0-0.1-0.3-0.1-0.4c0,0-0.1-0.7-0.1-1l0,0c1.5,0.8,2.8,1.8,3.8,2.9c0.9,0.9,1.3,1.9,1.6,3%20c0,0.1,0,0.2,0,0.3L5,12.5C4.8,11.9,4.5,11.4,4.1,10.9z%20'%20fill='red'/%3e%3c/svg%3e",Fo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%20-4.5%206.2%2023.5'%20width='8'%20height='30'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.4,12.8c0-0.1,0.1-0.2,0.1-0.3c0.2-0.7,0.3-1.4,0.3-2C5.7,9.7,5.6,9,5.4,8.4c0.3-0.8,0.4-1.7,0.4-2.6%20c-0.1-1.6-0.6-3-1.7-4.3c-0.8-1-1.8-2-3-3C0.6-2,0.3-2.5,0.1-3l-0.2-1.5h-0.6v14.7h0.5V9.7l2.5,1.6C3.3,11.8,4,12.4,4.6,13c0,0,0,0,0,0.1C5.3,14,5.5,16,5.5,16c0,0.6,0,1.1-0.2,1.8l0,0.2c0,0.3-0.1,0.4-0.1,0.6c0,0.1,0.1,0.1,0.1,0.1C5.6,17.9,6,17,6,15.7%20C6,15,5.8,13.6,5.4,12.8z%20M-0.1-0.1c1.5,0.8,2.8,1.7,3.8,2.9c0.8,0.9,1.3,2,1.4,3.4v1.6c-0.2-0.6-0.6-1.1-1-1.6%20c-0.8-0.9-1.8-1.9-3-3c-0.5-0.5-0.8-1-1-1.5l-0.2-1.5V-0.1z%20M5.1,12.2l-0.6-0.8l-0.2-0.2l-0.8-0.9L2.1,9c-0.5-0.5-1-1.1-1.4-2%20C0.2,6.2,0,5.4-0.1,4.5c1.5,0.8,2.8,1.8,3.8,2.9c0.8,1,1.3,2.1,1.5,3.3l-0.1,1.1L5.1,12.2z%20'%20fill='red'/%3e%3c/svg%3e",Vo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%20-9%206.5%2029'%20width='80'%20height='300'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.8,3.9c0.3-0.8,0.4-1.7,0.4-2.6C6.1-0.3,5.6-1.7,4.5-3c-0.8-1-1.8-2-3-3C1-6.5,0.7-7,0.5-7.5L-0.2-9h-0.5v19.4H0V9.9%20c0,0,2.6,1,3.3,1.9c0.5,0.5,0.9,1.1,1.1,1.8c0.8,1.8,0.3,3.8-0.2,5.3c-0.1,0.3,0.1,0.2,0.1,0.1c0.8-1.1,1.4-2.6,1.3-4.5l0,0%20c-0.2-2.1-1.8-3.9-1.8-3.9S1.5,8,1.1,7.2C0.9,6.9,0,5,0,4.7h0.4c1.5,0.8,2.8,1.8,3.8,2.9c2.3,2.1,1.1,5.7,1.1,5.7l0.1,0.3%20c1-1.6,0.7-4.4,0.5-5C6.1,7.8,6.2,6.9,6.2,6C6.2,5.3,6,4.6,5.8,3.9z%20M5.5,8c-0.2-0.6-0.6-1.1-1-1.6c-0.8-0.9-1.8-1.9-3-3%20c-0.5-0.5-0.8-1-1-1.5L0,0.1C1.4,0.9,3.1,1.8,4.1,3c0.8,1,1.3,2,1.4,3.4V8z%20M5.5,3.3l-1-1.6c-0.8-1-1.8-2-3-3c-0.5-0.5-0.8-1-1-1.5%20L0-4.6c1.5,0.8,3.1,1.7,4.2,2.9c0.8,0.9,1.3,2,1.4,3.2V3.3z%20'%20fill='red'/%3e%3c/svg%3e",Zo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%20-9.8%206.5%2029'%20width='80'%20height='300'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.7,14.3c0.1-0.4,0.2-0.7,0.3-1.1c0-0.2,0-0.4,0-0.5c0-0.5-0.1-1-0.2-1.6c-0.1-0.4-0.1-0.9,0-1.3C5.9,9.4,5.9,9,5.9,8.6%20c0-0.5-0.1-1.1-0.1-1.7c0-0.3,0-0.6,0-0.9l0.1-0.9c0-0.2,0-0.4,0-0.6c0-0.5-0.1-0.9-0.1-1.5c0-0.3,0-0.6,0-0.9l0.1-1%20c0-0.2,0-0.4,0-0.5c0-0.7-0.1-1.5-0.4-2.4C5.2-2.8,4.7-3.7,4-4.6C3.4-5.5,2.4-6.4,1.3-7.4c-0.5-0.5-0.8-1-1-1.4l-0.5-1h-0.5v21.1%20h0.4v-0.6l2.7,1.7c0.8,0.5,1.4,1,1.9,1.5c0.2,0.2,0.3,0.3,0.5,0.5c0.1,0.2,0.2,0.3,0.3,0.4c0.2,0.4,0.3,0.8,0.4,1.3%20c0,0,0.4,1.2,0,2.2l-0.2,0.4c0,0.1,0.1,0,0.1,0c0.3-0.5,0.4-0.4,0.6-1.2c0.1-0.4,0.1-0.8,0.1-1.2C6.3,15.6,6.1,14.9,5.7,14.3z%20M-0.1-6C1-5.4,2-4.8,2.8-4.1c0.8,0.6,1.5,1.5,2,2.7l0.3,1.1c0,0.1,0.1,0.3,0.1,0.4L5.4,1v0.7C5.1,0.9,4.7,0.1,4.1-0.7%20C3.4-1.5,2.4-2.5,1.3-3.5c-0.5-0.5-0.8-1-1-1.4l-0.4-1V-6z%20M2.8-0.2c0.8,0.6,1.5,1.5,2,2.7l0.3,1.1c0,0.2,0.1,0.3,0.1,0.5l0.2,1v0.6%20C5.1,4.7,4.7,3.9,4.1,3.2C3.4,2.3,2.4,1.3,1.3,0.4c-0.5-0.5-0.9-1-1-1.5l-0.4-1C1-1.5,2-0.9,2.8-0.2z%20M-0.1,1.7C1,2.3,2,3,2.8,3.7%20c0.8,0.6,1.5,1.5,2,2.7l0.3,1.1c0,0.1,0.1,0.3,0.1,0.4l0.2,0.9v0.7C5.1,8.7,4.7,7.9,4.1,7.1C3.4,6.2,2.4,5.3,1.3,4.3%20c-0.5-0.5-0.8-1-1-1.4l-0.4-1.1V1.7z%20M4.6,12.6l-1-1.1l-1.4-1.4C1.7,9.6,1.2,9,0.8,8.2C0.3,7.4,0.1,6.6,0,5.7c1.1,0.6,2,1.2,2.8,1.8%20c0.7,0.6,1.4,1.4,1.9,2.4c0.1,0.2,0.2,0.4,0.2,0.6l0.3,1l0.1,0.4l0.1,0.8v1.1l-0.7-1L4.6,12.6z%20'%20fill='red'/%3e%3c/svg%3e",Oo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%20-18%206%2037'%20width='80'%20height='400'%3e%3c!--%20音符尾%20--%3e%3cpath%20d='%20M5.2,12.7c0.1-0.3,0.2-0.6,0.2-0.9c0.1-0.5,0.2-1,0.2-1.5c-0.1-0.7-0.2-1.4-0.4-2c0.3-0.8,0.4-1.7,0.4-2.6%20c0-0.8-0.2-1.5-0.4-2.1C5.5,2.8,5.6,1.9,5.6,1c0-0.7-0.1-1.4-0.3-2c0.2-0.8,0.3-1.6,0.3-2.5c0-0.6-0.1-1.2-0.3-1.8%20c0.2-0.8,0.3-1.6,0.3-2.4C5.5-9.3,5-10.7,3.9-12c-0.8-1-1.8-2-3-3c-0.5-0.5-0.9-1-1.1-1.5L-0.5-18h-0.4v28h0.5V9.6l0.1,0.1L0.3,10%20l1.8,1.1c0.9,0.5,1.7,1.1,2.2,1.7c0.9,1.1,1,3,1,3c0,0.6-0.1,1.3-0.3,2c0,0-0.1,0.2-0.1,0.3C4.8,18.4,5,18.3,5,18.2%20c0.4-0.6,0.6-0.9,0.8-1.8C6.1,15.4,5.6,13.5,5.2,12.7z%20M3.4-10.7c0.9,1,1.4,2.1,1.5,3.1v1.3L3.8-7.9c-0.8-1-1.8-2-3-3%20c-0.5-0.5-0.8-1-1-1.5l-0.2-1.2C1.1-12.8,2.4-11.9,3.4-10.7z%20M3.4-6.5c0.9,1,1.4,2.1,1.5,3.3l-0.1,1v0.4l-1-1.6c-0.8-1-1.8-2-3-3%20c-0.5-0.5-0.8-1-1-1.5l-0.2-1.5C1.1-8.6,2.4-7.7,3.4-6.5z%20M-0.4-5c1.5,0.8,2.8,1.7,3.8,2.9c0.9,1,1.4,2.1,1.5,3.3V3l-1-1.6%20c-0.8-1-1.8-2-3-3C0.4-2.1,0-2.6-0.2-3.2l-0.2-1.5V-5z%20M-0.4-0.2c1.5,0.8,2.8,1.7,3.8,2.9c0.9,0.9,1.4,2,1.5,3.2v1.7%20C4.7,7,4.3,6.5,3.9,6c-0.8-0.9-1.8-1.9-3-3C0.4,2.5,0,2-0.2,1.5L-0.4,0V-0.2z%20M-0.4,4.4c0.3,0.1,0.5,0.3,0.8,0.4%20c1.2,0.7,2.2,1.5,3,2.5c0.9,1,1.4,2.1,1.5,3.3V12l-0.6-0.8l-1-1.1L1.9,8.8C1.3,8.3,0.8,7.7,0.4,6.9C-0.1,6.1-0.3,5.3-0.4,4.4z%20'%20fill='red'/%3e%3c/svg%3e",Qo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%208%204'%20width='80'%20height='40'%20preserveAspectRatio='none'%3e%3crect%20x='0'%20y='0'%20width='8'%20height='4'%20fill='red'/%3e%3c/svg%3e",qo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%208%204'%20width='80'%20height='40'%20preserveAspectRatio='none'%3e%3crect%20x='0'%20y='0'%20width='8'%20height='4'%20fill='red'/%3e%3c/svg%3e",Uo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-9.5%207.5%2020'%20width='80'%20height='200'%3e%3cpath%20stroke='red'%20fill='red'%20d='M6.2-4.3C4.7-2.6,3.9-1.2,3.8,0.2c0,0.8,0.3,1.6,0.8,2.4l1.6,2.1L5.8,5.1C5.2,4.8,4.6,4.6,4.1,4.6c-0.5,0-0.9,0.2-1.3,0.7C2.4,6.1,2.3,6.8,2.6,7.4c0.3,0.6,0.6,1.1,1,1.4L3.3,9.3L1.2,7.4C0.5,6.7,0.1,5.9,0,4.9c0.1-1.4,0.9-2.1,2.3-2.1c0.5,0,1.2,0.2,1.9,0.6V3.4L0.4-1.5c0.7-0.6,1.3-1.3,1.8-2.1s0.7-1.7,0.6-2.6C2.5-7.3,2-8.1,1.4-8.9h1L6.2-4.3'%3e%3c/path%3e%3c/svg%3e",Go="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.5%20-7%207.5%2012.3'%20width='80'%20height='160'%3e%3cpath%20stroke='red'%20fill='red'%20d='M3.3-4.1L3.2-3.8c0.1,0.3,0.3,0.3,0.6,0.2c1-0.4,1.7-1.1,2.1-2h0.4L3.5,4.7H2.6L5-3.4C4.1-2.9,3.3-2.6,2.3-2.5c-0.6,0-1.1-0.2-1.6-0.6C0.4-3.5,0.1-3.9,0.1-4.5c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0,1.3,0.4c0.4,0.3,0.5,0.7,0.6,1.3L3.3-4.1'%3e%3c/path%3e%3c/svg%3e",$o="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-5%209.5%2018.5'%20width='90'%20height='180'%3e%3cpath%20stroke='red'%20fill='red'%20d='M2.3-1C1.9-1.4,1.6-1.9,1.6-2.5c0-1,0.5-1.6,1.5-1.8C3.6-4.4,4-4.2,4.3-3.9c0.4,0.3,0.6,0.7,0.6,1.3L4.8-2L4.7-1.7c0.1,0.2,0.3,0.3,0.6,0.1C6.3-2,7-2.7,7.5-3.6H8L3.4,12.7H2.6l2.3-8.2C4.1,5.1,3.2,5.4,2.3,5.4c-0.6,0-1.1-0.2-1.6-0.6C0.3,4.5,0,4,0,3.5c0.1-1.1,0.7-1.7,1.8-1.9c0.5,0,0.9,0.2,1.2,0.6c0.3,0.4,0.4,0.8,0.4,1.3L3.2,4.2c0.1,0.1,0.2,0.2,0.3,0.2c0.3,0,0.6-0.1,0.9-0.4l0.8-0.6l1.3-4.7C5.6-0.9,4.8-0.6,3.8-0.5C3.3-0.5,2.8-0.7,2.3-1'%3e%3c/path%3e%3c/svg%3e",Ko="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-13%2011%2025'%20width='100'%20height='240'%3e%3cpath%20stroke='red'%20fill='red'%20d='M6.5-10L6.4-9.7c0.1,0.3,0.3,0.3,0.6,0.2c0.9-0.4,1.7-1.1,2.2-2h0.4L3.5,10.8H2.6l2.3-8.2C4.1,3.1,3.2,3.4,2.3,3.5c-0.6,0-1.1-0.2-1.6-0.6C0.3,2.6,0,2.1,0,1.5c0.1-1.1,0.7-1.7,1.8-1.9c1,0.1,1.5,0.7,1.6,1.7L3.2,2.3c0.1,0.1,0.2,0.2,0.3,0.1c0.3,0,0.6-0.1,1-0.4l0.8-0.7l1.2-4.7C5.7-2.8,4.8-2.5,3.9-2.5C3.3-2.5,2.8-2.7,2.3-3C1.9-3.4,1.6-3.8,1.6-4.4c0-1.1,0.6-1.7,1.8-1.9c0.5,0,0.9,0.2,1.2,0.6C4.8-5.3,5-4.9,4.9-4.4L4.8-3.7c0.1,0.1,0.2,0.2,0.3,0.2c0.3,0,0.6-0.1,1-0.4l0.8-0.8l1.3-4.7C7.3-8.8,6.5-8.5,5.6-8.5C5-8.5,4.4-8.7,4-9c-0.4-0.4-0.7-0.8-0.7-1.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0.1,1.3,0.4c0.4,0.3,0.6,0.7,0.6,1.3C6.7-10.4,6.6-10.2,6.5-10'%3e%3c/path%3e%3c/svg%3e",Xo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-13%2013%2031'%20width='50'%20height='140'%3e%3cpath%20stroke='red'%20fill='red'%20d='M7.3-8.5C6.7-8.5,6.2-8.7,5.7-9C5.3-9.4,5-9.9,5-10.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.6,0.7,0.6,1.3L8.3-10L8.2-9.7c0.1,0.3,0.3,0.3,0.6,0.2c1-0.4,1.7-1.1,2.2-2h0.4L3.5,16.8H2.6l2.3-8.2C4.1,9.1,3.2,9.4,2.3,9.5c-0.6,0-1.1-0.2-1.6-0.6S0,8.1,0,7.6c0.1-1.1,0.7-1.7,1.8-1.9c1,0.1,1.5,0.7,1.6,1.7L3.2,8.3c0.1,0.1,0.2,0.2,0.3,0.1c0.3,0,0.6-0.1,0.9-0.4l0.8-0.7l1.3-4.7C5.7,3.2,4.8,3.5,3.9,3.5C3.3,3.5,2.8,3.3,2.3,3C1.9,2.6,1.6,2.2,1.6,1.6c0-1.1,0.6-1.7,1.8-1.9c0.5,0,0.9,0.2,1.2,0.6S5,1.1,5,1.6L4.8,2.3C4.9,2.5,5,2.5,5.1,2.5c0.3,0,0.6-0.1,1-0.4l0.8-0.8l1.3-4.7C7.4-2.8,6.5-2.5,5.6-2.5C5-2.5,4.4-2.7,4-3C3.5-3.4,3.3-3.9,3.3-4.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0.1,1.3,0.4C6.5-5.5,6.7-5,6.7-4.5L6.6-4L6.5-3.7c0.1,0.3,0.3,0.3,0.6,0.2c0.5-0.2,1-0.5,1.5-1.1l1.3-4.7C9.1-8.8,8.2-8.5,7.3-8.5'%3e%3c/path%3e%3c/svg%3e",Jo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-19%2015%2037'%20width='50'%20height='140'%3e%3cpath%20stroke='red'%20fill='red'%20d='M12.9-17.6L3.5,16.8H2.6l2.2-8.2C4.1,9.1,3.2,9.4,2.3,9.5c-0.6,0-1.1-0.2-1.6-0.6S0,8.1,0,7.5c0.1-1.1,0.7-1.7,1.8-1.9c1,0.1,1.5,0.7,1.6,1.7L3.2,8.3c0.1,0.1,0.2,0.2,0.3,0.2c0.3,0,0.6-0.1,0.9-0.4l0.8-0.7l1.2-4.7C5.6,3.1,4.8,3.4,3.9,3.5c-0.6,0-1.1-0.2-1.6-0.6C1.9,2.6,1.6,2.1,1.6,1.6c0-1.1,0.6-1.7,1.8-1.8c0.5,0,0.9,0.2,1.2,0.6C4.8,0.7,5,1.1,4.9,1.5L4.8,2.3c0.1,0.1,0.2,0.2,0.3,0.1c0.3,0,0.6-0.1,0.9-0.4l0.8-0.8l1.4-4.6C7.3-2.8,6.5-2.5,5.6-2.5C5-2.5,4.4-2.7,4-3C3.5-3.4,3.3-3.9,3.3-4.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0.1,1.3,0.4c0.4,0.3,0.6,0.8,0.6,1.3L6.5-4L6.4-3.7c0.1,0.3,0.3,0.3,0.6,0.2c0.5-0.2,1-0.5,1.5-1.1l1.3-4.7C9-8.8,8.2-8.5,7.2-8.5C6.6-8.5,6.1-8.7,5.7-9C5.2-9.4,5-9.9,5-10.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.5,0.8,0.6,1.3L8.2-10L8.1-9.7c0.1,0.3,0.3,0.3,0.6,0.2c0.6-0.2,1.1-0.6,1.5-1.1l1.2-4.7c-0.8,0.5-1.7,0.8-2.6,0.9c-0.6,0-1.1-0.2-1.6-0.6c-0.5-0.4-0.7-0.8-0.7-1.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.5,0.7,0.6,1.3L9.8-16l-0.1,0.3c0.1,0.3,0.3,0.3,0.6,0.2c0.9-0.4,1.6-1.1,2.1-2H12.9'%3e%3c/path%3e%3c/svg%3e",Eo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='-0.7%20-19%2016%2042'%20width='50'%20height='140'%3e%3cpath%20stroke='red'%20fill='red'%20d='M14.4-17.7L5,16.7l0,0l-1.6,5.7H2.5l1.6-5.7l0,0l0.7-2.5C4,14.7,3.2,15,2.3,15.1c-0.6,0-1.1-0.2-1.6-0.6C0.3,14.2,0,13.7,0,13.1c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0,1.3,0.4C3.1,12,3.3,12.4,3.3,13l-0.1,0.6l-0.1,0.3c0.1,0.3,0.3,0.3,0.6,0.2l1.4-1l1.2-4.5C5.5,9.1,4.7,9.4,3.7,9.5c-0.6,0-1.1-0.2-1.6-0.6C1.8,8.5,1.6,8,1.5,7.4c0.1-1.1,0.7-1.7,1.8-1.9c1,0.1,1.5,0.7,1.6,1.7L4.7,8.1C4.8,8.2,4.9,8.3,5,8.2c0.3,0,0.6-0.1,0.9-0.4l0.8-0.7l1.2-4.7C7.2,3,6.3,3.3,5.4,3.4c-0.6,0-1.1-0.2-1.6-0.6C3.4,2.5,3.2,2,3.2,1.5c0-1.1,0.6-1.7,1.8-1.8c0.5,0,0.9,0.2,1.2,0.6C6.4,0.6,6.5,1,6.5,1.4L6.3,2.2c0.1,0.1,0.2,0.2,0.3,0.2c0.3,0,0.6-0.1,0.9-0.4l0.8-0.8l1.4-4.6C8.9-2.9,8-2.6,7.1-2.6C6.5-2.6,6-2.8,5.5-3.1C5.1-3.5,4.8-4,4.8-4.5c0-1,0.5-1.6,1.5-1.8c0.5-0.1,0.9,0,1.3,0.3C8-5.6,8.2-5.2,8.2-4.7L8.1-4.1L8-3.8c0.1,0.3,0.3,0.3,0.6,0.2c0.5-0.2,1-0.5,1.5-1.1l1.3-4.7c-0.8,0.5-1.7,0.8-2.6,0.9c-0.6,0-1.1-0.2-1.6-0.6C6.8-9.5,6.5-10,6.5-10.5c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.5,0.8,0.6,1.3l-0.1,0.5L9.7-9.8c0.1,0.3,0.3,0.3,0.6,0.2c0.6-0.2,1.1-0.6,1.5-1.1l1.2-4.7c-0.8,0.5-1.7,0.8-2.6,0.9c-0.6,0-1.1-0.2-1.6-0.6c-0.5-0.4-0.7-0.8-0.7-1.4c0-1,0.5-1.6,1.5-1.8c0.5-0.1,1,0.1,1.3,0.4c0.4,0.3,0.5,0.7,0.6,1.3L11.4-16l-0.1,0.3c0.1,0.3,0.3,0.3,0.6,0.2c0.9-0.4,1.6-1.1,2.1-2h0.4'%3e%3c/path%3e%3c/svg%3e";function Yo(){const e=r.ref({skinKey:{url:"origin"},number_1:{url:hn},number_2:{url:fn},number_3:{url:pn},number_4:{url:yn},number_5:{url:vn},number_6:{url:Sn},number_7:{url:bn},clef_alto:{url:xn},clef_bass:{url:wn},clef_treble:{url:Cn},bar_numberNotation:{url:In},bar_standardStaff:{url:Mn},barLine_endRepeatSign:{url:kn},barLine_final:{url:Ln},barline_reverseFinal:{url:An},barline_single:{url:_n},barline_startRepeatSign:{url:Bn},chronaxieIncreasingLine:{url:Nn},chronaxieReducingLine_1:{url:Dn},chronaxieReducingLine_2:{url:Hn},chronaxieReducingLine_3:{url:Rn},chronaxieReducingLine_4:{url:Tn},accidental_doubleFlat:{url:jn},accidental_doubleSharp:{url:Pn},accidental_flat:{url:zn},accidental_sharp:{url:Wn},accidental_nature:{url:Fn},noteDot_1:{url:Vn},noteDot_2:{url:Zn},noteDot_3:{url:On},noteDot_4:{url:Qn},noteHead_1:{url:qn},noteHead_2:{url:Un},noteHead_4:{url:Gn},noteStem:{url:$n},noteTail_8:{url:Kn},noteTail_16:{url:Xn},noteTail_32:{url:Jn},noteTail_64:{url:En},noteTail_128:{url:Yn},noteTail_256:{url:eo},rest_1:{url:to},rest_2:{url:no},rest_4:{url:oo},rest_8:{url:ro},rest_16:{url:io},rest_32:{url:ao},rest_64:{url:lo},rest_128:{url:so},rest_256:{url:co},active_number_1:{url:uo},active_number_2:{url:mo},active_number_3:{url:go},active_number_4:{url:ho},active_number_5:{url:fo},active_number_6:{url:po},active_number_7:{url:yo},active_clef_alto:{url:vo},active_clef_bass:{url:So},active_clef_treble:{url:bo},active_bar_numberNotation:{url:xo},active_bar_standardStaff:{url:wo},active_barLine_endRepeatSign:{url:Co},active_barLine_final:{url:Io},active_barline_reverseFinal:{url:Mo},active_barline_single:{url:ko},active_barline_startRepeatSign:{url:Lo},active_chronaxieIncreasingLine:{url:Ao},active_accidental_doubleFlat:{url:_o},active_accidental_doubleSharp:{url:Bo},active_accidental_flat:{url:No},active_accidental_sharp:{url:Do},active_accidental_nature:{url:Ho},active_noteHead_1:{url:Ro},active_noteHead_2:{url:To},active_noteHead_4:{url:jo},active_noteStem:{url:Po},active_noteTail_8:{url:zo},active_noteTail_16:{url:Wo},active_noteTail_32:{url:Fo},active_noteTail_64:{url:Vo},active_noteTail_128:{url:Zo},active_noteTail_256:{url:Oo},active_rest_1:{url:Qo},active_rest_2:{url:qo},active_rest_4:{url:Uo},active_rest_8:{url:Go},active_rest_16:{url:$o},active_rest_32:{url:Ko},active_rest_64:{url:Xo},active_rest_128:{url:Jo},active_rest_256:{url:Eo}});function t(){o.value=e.value}const n=r.computed(()=>{var i;return((i=o.value.skinKey)==null?void 0:i.url)==="origin"}),o=r.ref(e.value);return{svgSkin:o,isOriginSkin:n,resetSkin:t}}const er=["height","viewBox","width"],tr=r.defineComponent({__name:"musicScore",props:{musicScore:{type:Object,required:!0},width:{type:Number,default:1e3},height:{type:Number,default:800},strokeWidth:{type:Number,default:1},styleMap:{type:Array}},emits:["spanSymbolMouseDown","spanSymbolMouseUp","msSymbolMouseDown","measureMouseDown","singleStaffMouseDown","multipleStavesMouseDown","update:mode","msSymbolMouseUp"],setup(e,{expose:t,emit:n}){const o=e,{isOriginSkin:i,svgSkin:a,resetSkin:l}=Yo();function c(C){a.value=C}const s=r.computed(()=>{var C,D;return(D=(C=a.value)==null?void 0:C.skinKey)==null?void 0:D.url});r.computed(()=>C=>{const D=[];return C.msSymbolContainerArray.forEach(H=>{let re=!1;for(const K of H.msSymbolArray)if(K.type===g.NoteHead&&(K.chronaxie===v.eighth||K.chronaxie===v.sixteenth)){re=!0;break}D.push(re)}),D});const m=r.ref(Y.edit),d=r.ref(new Map),h=r.ref(null);function u(){const C=F({type:g.NoteHead,chronaxie:v.quarter}),D=F({type:g.Rest,chronaxie:v.quarter});d.value.set(te.note,C),d.value.set(te.rest,D)}function f(C,D){d.value.set(C,D)}function y(C){return d.value.has(C)?d.value.get(C):null}const b=r.ref(te.note);function I(C){b.value=C}const A=r.computed(()=>C=>C.msSymbolContainerArray.filter(D=>D.type===R.variable)),x=n;function k(C,D){Mt(C,m,h,D),x("spanSymbolMouseDown")}function B(C,D){x("spanSymbolMouseUp")}function _(C,D){Ne(C,m,h,D),x("msSymbolMouseDown")}function W(C,D){x("msSymbolMouseUp")}function V(C,D){kt(C,m,h,D),x("measureMouseDown")}function q(C,D){Lt(C,m,h,D),x("singleStaffMouseDown")}function oe(C,D){At(C,m,h,D),x("multipleStavesMouseDown")}function de(C){m.value=C}const Ce=r.computed(()=>({width:o.width+"px",height:o.height+"px",overflow:"visible"}));r.ref({});function Ie(){o.musicScore&&(Vt(o.musicScore),u(),Ot(o.musicScore))}r.onBeforeMount(Ie);const rt=r.ref(null),Te=r.ref(!1);function _t(C){C.preventDefault(),ae.startX=C.clientX,ae.startY=C.clientY,Te.value=!0}function Bt(C){ae.startX=0,ae.startY=0,Te.value=!1}function Nt(C){var D;Te.value&&Ct(C,(D=o.musicScore)==null?void 0:D.measureHeight,h,o.musicScore)}function Dt(){h.value&&(h.value.options.highlight=!1),h.value=null}function Ht(C){C.showMode===U.standardStaff?s0(C):C.showMode===U.numberNotation&&c0(C)}return r.onMounted(()=>{}),r.onUnmounted(()=>{}),r.provide("msState",{mode:m,currentSelected:h,reserveMsSymbolMap:d,currentResevedType:b}),r.provide("skin",{svgSkin:a,isOriginSkin:i}),t({changeMode:de,root:rt,mode:m,currentSelected:h,currentResevedType:b,setReserveMsSymbol:f,getReserveMsSymbol:y,reserveMsSymbolMap:d,setCurrentResevedType:I,cancelSelect:Dt,switchShowMode:Ht,setSkin:c,resetSkin:l,skinKey:s}),(C,D)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"musicScoreRef",ref:rt,style:r.normalizeStyle(Ce.value),class:"musicScore stack",onMousedown:r.withModifiers(_t,["stop"]),onMousemove:r.withModifiers(Nt,["stop"]),onMouseup:r.withModifiers(Bt,["stop"])},[r.createVNode(je,{disabled:!1,musicScore:e.musicScore,style:r.normalizeStyle({width:e.width+"px",height:e.height+"px"}),class:"stackItem lineLayer",comment:"谱线层1",onMultipleStavesMouseDown:oe,onSingleStaffMouseDown:q},{default:r.withCtx(({measure:H,measureIndex:re,singleStaff:K,multipleStaves:ce,measureWidth:ee})=>[(r.openBlock(),r.createBlock(jt,{key:"measure"+re,componentHeight:e.height,componentWidth:e.width,height:e.musicScore.measureHeight,measure:H,musicScore:e.musicScore,strokeWidth:e.strokeWidth,width:ee,x:re*ee,onMeasureMouseDown:V},null,8,["componentHeight","componentWidth","height","measure","musicScore","strokeWidth","width","x"]))]),_:1},8,["musicScore","style"]),(r.openBlock(),r.createElementBlock("svg",{height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,width:e.width,class:"stackItem spanSymbolLayer",comment:"跨小节符号层",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.musicScore.spanSymbolArray,(H,re)=>(r.openBlock(),r.createBlock(sn,{key:H.vueKey,componentHeight:e.height,componentWidth:e.width,musicScore:e.musicScore,spanSymbol:H,onSpanSymbolMouseUp:B,onSpanSymbolMouseDown:k},null,8,["componentHeight","componentWidth","musicScore","spanSymbol"]))),128))],8,er)),r.createVNode(je,{musicScore:e.musicScore,style:r.normalizeStyle({width:e.width+"px",height:e.height+"px",pointerEvents:"none"}),class:"stackItem symbolLayer",comment:"符号层2"},{default:r.withCtx(({measure:H,measureIndex:re,singleStaff:K,multipleStaves:ce,measureWidth:ee})=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H.msSymbolContainerArray,(ye,X)=>(r.openBlock(),r.createBlock(O0,{key:"ms-symbol-container"+X,componentHeight:e.height,componentWidth:e.width,measure:H,measureHeight:e.musicScore.measureHeight,measureWidth:ee,msSymbolContainer:ye,multipleStaves:ce,musicScore:e.musicScore,nextContainer:H.msSymbolContainerArray.length!==X+1?H.msSymbolContainerArray[X+1]:null,preContainer:H.msSymbolContainerArray.length!==0?H.msSymbolContainerArray[X-1]:null,singleStaff:K,onMsSymbolMousUp:W,onMsSymbolMouseDown:_},null,8,["componentHeight","componentWidth","measure","measureHeight","measureWidth","msSymbolContainer","multipleStaves","musicScore","nextContainer","preContainer","singleStaff"]))),128))]),_:1},8,["musicScore","style"]),r.withDirectives(r.createVNode(je,{musicScore:e.musicScore,style:r.normalizeStyle({width:e.width+"px",height:e.height+"px",pointerEvents:"none"}),class:"stackItem symbolLayer",comment:"编辑模式虚拟音符层"},{default:r.withCtx(({measure:H,measureIndex:re,singleStaff:K,multipleStaves:ce,measureWidth:ee})=>[h.value===H?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[A.value(H).length?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(Me,{key:0,componentHeight:e.height,componentWidth:e.width,measure:H,measureHeight:e.musicScore.measureHeight,measureWidth:ee,multipleStaves:ce,musicScore:e.musicScore,singleStaff:K,comment:"小节无变宽符号时的虚拟音符容器",type:"front"},null,8,["componentHeight","componentWidth","measure","measureHeight","measureWidth","multipleStaves","musicScore","singleStaff"])),r.createVNode(Me,{componentHeight:e.height,componentWidth:e.width,measure:H,measureHeight:e.musicScore.measureHeight,measureWidth:ee,msSymbolContainer:A.value(H)[0],multipleStaves:ce,musicScore:e.musicScore,singleStaff:K,comment:"第一个变宽容器",type:"front"},null,8,["componentHeight","componentWidth","measure","measureHeight","measureWidth","msSymbolContainer","multipleStaves","musicScore","singleStaff"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(A.value(H),(ye,X)=>(r.openBlock(),r.createBlock(Me,{key:"virtual-symbol"+X,componentHeight:e.height,componentWidth:e.width,ind:X,measure:H,measureHeight:e.musicScore.measureHeight,measureWidth:ee,msSymbolContainer:ye,multipleStaves:ce,musicScore:e.musicScore,singleStaff:K,type:"self"},null,8,["componentHeight","componentWidth","ind","measure","measureHeight","measureWidth","msSymbolContainer","multipleStaves","musicScore","singleStaff"]))),128)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(A.value(H),(ye,X)=>(r.openBlock(),r.createBlock(Me,{key:"virtual-symbol"+X,componentHeight:e.height,componentWidth:e.width,ind:X,measure:H,measureHeight:e.musicScore.measureHeight,measureWidth:ee,msSymbolContainer:ye,multipleStaves:ce,musicScore:e.musicScore,singleStaff:K,type:X===A.value(H).length-1?"end":"middle"},null,8,["componentHeight","componentWidth","ind","measure","measureHeight","measureWidth","msSymbolContainer","multipleStaves","musicScore","singleStaff","type"]))),128))],64)):r.createCommentVNode("",!0)]),_:1},8,["musicScore","style"]),[[r.vShow,m.value===r.unref(Y).edit]])],36))}}),nr=G(tr,[["__scopeId","data-v-88ce0663"]]);exports.KeySignatureTonicSemitones=d0;exports.MsSymbolInformationMap=Z;exports.bottomUtil=v0;exports.default=nr;exports.eventUtil=mn;exports.geometryUtil=f0;exports.heightUtil=S0;exports.leftUtil=I0;exports.widthConstantUtil=m0;exports.widthUtil=b0;