Spaces:
Running
Running
Commit ·
8c7d858
1
Parent(s): 39cf55e
update: export from starry-refactor 2026-02-21 11:16
Browse files- dist/assets/{Table-7f16007d.js → Table-df466f11.js} +0 -0
- dist/assets/{Tags-bc190257.js → Tags-1c321515.js} +1 -1
- dist/assets/{_setToString-6c0c560b.js → _setToString-5e7d8f22.js} +1 -1
- dist/assets/{button-001dfcce.js → button-3ac51ee9.js} +1 -1
- dist/assets/confirm-0ebf68f1.js +0 -0
- dist/assets/confirm-2a771655.js +0 -0
- dist/assets/{font-78638660.js → font-7fe8a548.js} +1 -1
- dist/assets/{gauge-8e0347a7.js → gauge-890a6eda.js} +1 -1
- dist/assets/{index-06d8da5b.js → index-333c2577.js} +1 -1
- dist/assets/{index-47477506.js → index-3736e53c.js} +1 -1
- dist/assets/{index-2293ea9c.js → index-5014e2af.js} +1 -1
- dist/assets/{index-10340e55.js → index-5da3586d.js} +1 -1
- dist/assets/{index-7e539ef6.js → index-6c11c37f.js} +1 -1
- dist/assets/{index-92489c26.js → index-902b3791.js} +1 -1
- dist/assets/{index-2955973c.js → index-9b68877a.js} +1 -1
- dist/assets/{index-843283db.js → index-b9ab2f3f.js} +1 -1
- dist/assets/{index-92446400.js → index-bcc6e795.js} +1 -1
- dist/assets/{index-9446dfc6.js → index-bda532b4.js} +1 -1
- dist/assets/{index-156661dd.js → index-c03929a6.js} +1 -1
- dist/assets/{index.less_used_.module-f525c36f.js → index.less_used_.module-87602c0c.js} +1 -1
- dist/assets/{jszip.min-1e75c168.js → jszip.min-73ee4b51.js} +1 -1
- dist/assets/{processCompressedAESFile-8d6401c6.js → processCompressedAESFile-07545094.js} +0 -0
- dist/assets/solveStaffGroup.worker-41469644.js +8 -0
- dist/assets/{umi-a7f55986.js → umi-e07d95da.js} +0 -0
- dist/assets/{useAsync-58b75860.js → useAsync-139a6ea8.js} +1 -1
- dist/assets/{useDebounce-15fcfd16.js → useDebounce-f1604c2b.js} +0 -0
- dist/assets/{useIntersection-410a4d5c.js → useIntersection-c0d72ee4.js} +1 -1
- dist/index.html +1 -1
dist/assets/{Table-7f16007d.js → Table-df466f11.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/assets/{Tags-bc190257.js → Tags-1c321515.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{A as L,g as E,V as b,a as J,W as G,X as H,o as X,c as q,f as K,r as T}from"./_setToString-
|
|
|
|
| 1 |
+
import{A as L,g as E,V as b,a as J,W as G,X as H,o as X,c as q,f as K,r as T}from"./_setToString-5e7d8f22.js";import{r as s,_ as U,j as l}from"./umi-e07d95da.js";import{t as W,B as w}from"./button-3ac51ee9.js";import{S as z,T as R,D as F,a as Q}from"./useDebounce-f1604c2b.js";import{i as V,n as _,E as Y}from"./index-5014e2af.js";var Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"};const ee=Z;var te=function(n,r){return s.createElement(L,E(E({},n),{},{ref:r,icon:ee}))},se=s.forwardRef(te);const xe=se;var ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}}]},name:"tag",theme:"outlined"};const re=ae;var ne=function(n,r){return s.createElement(L,E(E({},n),{},{ref:r,icon:re}))},ie=s.forwardRef(ne);const ce=ie;var N=z.Option;function I(a){return a&&a.type&&(a.type.isSelectOption||a.type.isSelectOptGroup)}var le=function(n,r){var C=n.prefixCls,g=n.className,x=n.popupClassName,p=n.dropdownClassName,o=n.children,O=n.dataSource,u=W(o),i;if(u.length===1&&b(u[0])&&!I(u[0])){var f=J(u,1);i=f[0]}var c=i?function(){return i}:void 0,v;return u.length&&I(u[0])?v=o:v=O?O.map(function(d){if(b(d))return d;switch(G(d)){case"string":return s.createElement(N,{key:d,value:d},d);case"object":{var S=d.value;return s.createElement(N,{key:S,value:S},d.text)}default:return}}):[],s.createElement(H,null,function(d){var S=d.getPrefixCls,y=S("select",C);return s.createElement(z,U({ref:r},X(n,["dataSource"]),{prefixCls:y,popupClassName:x||p,className:q("".concat(y,"-auto-complete"),g),mode:z.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:c}),v)})},$=s.forwardRef(le);$.Option=N;const oe=$;var ue=function(a,n,r){if(!V)return[n,_,_];if(!a)throw new Error("useLocalStorage key may not be falsy");var C=r?r.raw?function(i){return i}:r.deserializer:JSON.parse,g=s.useRef(function(i){try{var f=r?r.raw?String:r.serializer:JSON.stringify,c=localStorage.getItem(i);return c!==null?C(c):(n&&localStorage.setItem(i,f(n)),n)}catch{return n}}),x=s.useState(function(){return g.current(a)}),p=x[0],o=x[1];s.useLayoutEffect(function(){return o(g.current(a))},[a]);var O=s.useCallback(function(i){try{var f=typeof i=="function"?i(p):i;if(typeof f>"u")return;var c=void 0;r?r.raw?typeof f=="string"?c=f:c=JSON.stringify(f):r.serializer?c=r.serializer(f):c=JSON.stringify(f):c=JSON.stringify(f),localStorage.setItem(a,c),o(C(c))}catch{}},[a,o]),u=s.useCallback(function(){try{localStorage.removeItem(a),o(void 0)}catch{}},[a,o]);return[p,O,u]};const fe=ue,de=({id:a,tagList:n,onChange:r,preview:C})=>{const[g,x]=s.useState(""),p=s.useRef(null),[o,O]=fe("TAG_PRIORITIES",{}),[u,i]=s.useState(!1),[f,c]=s.useState(null),[v,d]=s.useState(!1),[S,y]=K(async()=>T.get("/api/tags"),[]);s.useLayoutEffect(()=>{var e;u&&((e=p.current)==null||e.focus())},[u]);const h=f||n,A=s.useMemo(()=>{var e;return((e=S.value)==null?void 0:e.filter(t=>!h.some(m=>m.id===t.id)).sort((t,m)=>(o[m.id]||0)-(o[t.id]||0)).filter(t=>t.name.indexOf(g)>-1).map(t=>({value:t.name})))??[]},[h,S.value,o,g]),P=async e=>{const t=await T.post("/api/tags",{data:{name:e}});return{name:e,id:t.id}},B=async(e,t)=>{O({...o,[t]:Date.now()});const m=await T.post(`/api/musicSets/${e}/tags/${t}`);return!!(m!=null&&m.success)},M=async(e,t)=>{const m=await T.delete(`/api/musicSets/${e}/tags/${t}`);return!!(m!=null&&m.success)},D=async()=>{if(!g){i(!1);return}const e=await P(g);if(a&&await B(a,e.id),g&&!h.some(t=>t.id===e.id)){const t=[...h,e];c(t),r&&r(t)}i(!1),x("")},k=async e=>{a&&await M(a,e.id);const t=h.filter(m=>m.id!==e.id);c(t),r&&r(t)},j=s.useCallback(async()=>{await y(),d(!v)},[]);return l.jsxs(l.Fragment,{children:[C?l.jsx("div",{onClick:j,children:h.length?h.map(e=>l.jsx(R,{style:{display:"inline-block",fontSize:"12px",marginRight:"5px",marginBottom:"5px"},children:e.name},e.id)):l.jsx(w,{type:"dashed",icon:l.jsx(Y,{}),size:"small"})}):l.jsx(w,{title:"标签",icon:l.jsx(ce,{}),onClick:j}),l.jsx(F,{title:"标签管理",placement:"right",onClose:()=>d(!1),open:v,mask:!0,style:{marginTop:"64px",height:"calc(100vh - 64px)"},children:l.jsxs("div",{className:"score-tags",children:[l.jsx("div",{className:"list",children:h.map(e=>l.jsx(R,{closable:!0,onClose:()=>k(e),style:{display:"inline-block",marginRight:"5px",marginBottom:"5px"},children:e.name},e.id))}),u&&l.jsx(oe,{ref:p,size:"small",backfill:!0,options:A,style:{width:100},onChange:e=>{x(e)},placeholder:"输入",onBlur:()=>D(),onSelect:()=>{setTimeout(()=>{var e;(e=p.current)==null||e.blur()},0)},onKeyDown:e=>{e.key==="Enter"&&p.current.blur()}}),!u&&l.jsx(w,{className:"site-tag-plus",size:"small",onClick:()=>i(!0),children:l.jsx(Q,{})})]})})]})},Se=de;export{oe as A,xe as P,Se as S,ce as T,fe as u};
|
dist/assets/{_setToString-6c0c560b.js → _setToString-5e7d8f22.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import{r as w,D as fc,E as lc,g as St,c as he,R as xn,e as _n,_ as A,F as dc,i as pc}from"./umi-
|
| 2 |
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return Oi(e)||yc(e,t)||ca(e,t)||Pi()}function mc(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function We(e,t){if(e==null)return{};var r,n,a=mc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var $i={exports:{}};/*!
|
| 3 |
Copyright (c) 2018 Jed Watson.
|
| 4 |
Licensed under the MIT License (MIT), see
|
|
|
|
| 1 |
+
import{r as w,D as fc,E as lc,g as St,c as he,R as xn,e as _n,_ as A,F as dc,i as pc}from"./umi-e07d95da.js";function Mw(){const e=w.useContext(fc);return lc(e),e}var vc=w.createContext({});const sa=vc;function z(e){"@babel/helpers - typeof";return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(e)}function hc(e,t){if(z(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(z(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ei(e){var t=hc(e,"string");return z(t)=="symbol"?t:t+""}function k(e,t,r){return(t=Ei(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qa(Object(r),!0).forEach(function(n){k(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oi(e){if(Array.isArray(e))return e}function yc(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,u=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(d){s=!0,a=d}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}function En(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ca(e,t){if(e){if(typeof e=="string")return En(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?En(e,t):void 0}}function Pi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
| 2 |
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return Oi(e)||yc(e,t)||ca(e,t)||Pi()}function mc(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function We(e,t){if(e==null)return{};var r,n,a=mc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var $i={exports:{}};/*!
|
| 3 |
Copyright (c) 2018 Jed Watson.
|
| 4 |
Licensed under the MIT License (MIT), see
|
dist/assets/{button-001dfcce.js → button-3ac51ee9.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import{R as S,r as i,_ as O}from"./umi-
|
| 2 |
[`.concat(b(""),"-click-animating-without-extra-node='true']::after, .").concat(b(""),`-click-animating-node {
|
| 3 |
--antd-wave-shadow-color: `).concat(r,`;
|
| 4 |
}`),"antd-wave",{csp:n.csp,attachTo:f})}l&&e.appendChild(g),["transition","animation"].forEach(function(m){e.addEventListener("".concat(m,"start"),n.onTransitionStart),e.addEventListener("".concat(m,"end"),n.onTransitionEnd)})}},n.onTransitionStart=function(e){if(!n.destroyed){var r=n.containerRef.current;!e||e.target!==r||n.animationStart||n.resetEffect(r)}},n.onTransitionEnd=function(e){!e||e.animationName!=="fadeEffect"||n.resetEffect(e.target)},n.bindAnimationEvent=function(e){if(!(!e||!e.getAttribute||e.getAttribute("disabled")||e.className.includes("disabled"))){var r=function(c){if(!(c.target.tagName==="INPUT"||Ce(c.target))){n.resetEffect(e);var s=getComputedStyle(e).getPropertyValue("border-top-color")||getComputedStyle(e).getPropertyValue("border-color")||getComputedStyle(e).getPropertyValue("background-color");n.clickWaveTimeoutId=window.setTimeout(function(){return n.onClick(e,s)},0),z.cancel(n.animationStartId),n.animationStart=!0,n.animationStartId=z(function(){n.animationStart=!1},10)}};return e.addEventListener("click",r,!0),{cancel:function(){e.removeEventListener("click",r,!0)}}}},n.renderWave=function(e){var r=e.csp,o=n.props.children;if(n.csp=r,!i.isValidElement(o))return o;var c=n.containerRef;return Be(o)&&(c=Fe(o.ref,n.containerRef)),be(o,{ref:c})},n}return Me(t,[{key:"componentDidMount",value:function(){this.destroyed=!1;var e=this.containerRef.current;!e||e.nodeType!==1||(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,r=this.props.insertExtraNode;return r?"".concat(e(""),"-click-animating"):"".concat(e(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var r=this;if(!(!e||e===this.extraNode||!(e instanceof Element))){var o=this.props.insertExtraNode,c=this.getAttributeName();e.setAttribute(c,"false"),F&&(F.innerHTML=""),o&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach(function(s){e.removeEventListener("".concat(s,"start"),r.onTransitionStart),e.removeEventListener("".concat(s,"end"),r.onTransitionEnd)})}}},{key:"render",value:function(){return i.createElement(Ge,null,this.renderWave)}}]),t}(i.Component);xe.contextType=w;const it=xe;var ot=globalThis&&globalThis.__rest||function(a,t){var n={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&t.indexOf(e)<0&&(n[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(a);r<e.length;r++)t.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(a,e[r])&&(n[e[r]]=a[e[r]]);return n},Ne=i.createContext(void 0),ct=function(t){var n=i.useContext(w),e=n.getPrefixCls,r=n.direction,o=t.prefixCls,c=t.size,s=t.className,l=ot(t,["prefixCls","size","className"]),v=e("btn-group",o),p="";switch(c){case"large":p="lg";break;case"small":p="sm";break}var g=R(v,u(u({},"".concat(v,"-").concat(p),p),"".concat(v,"-rtl"),r==="rtl"),s);return i.createElement(Ne.Provider,{value:c},i.createElement("div",O({},l,{className:g})))};const st=ct;var M=function(){return{width:0,opacity:0,transform:"scale(0)"}},G=function(t){return{width:t.scrollWidth,opacity:1,transform:"scale(1)"}},lt=function(t){var n=t.prefixCls,e=t.loading,r=t.existIcon,o=!!e;return r?S.createElement("span",{className:"".concat(n,"-loading-icon")},S.createElement(pe,null)):S.createElement(He,{visible:o,motionName:"".concat(n,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:M,onAppearActive:G,onEnterStart:M,onEnterActive:G,onLeaveStart:G,onLeaveActive:M},function(c,s){var l=c.className,v=c.style;return S.createElement("span",{className:"".concat(n,"-loading-icon"),style:v,ref:s},S.createElement(pe,{className:l}))})};const ut=lt;var ft=globalThis&&globalThis.__rest||function(a,t){var n={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&t.indexOf(e)<0&&(n[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(a);r<e.length;r++)t.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(a,e[r])&&(n[e[r]]=a[e[r]]);return n},he=/^[\u4e00-\u9fa5]{2}$/,q=he.test.bind(he);function dt(a){return typeof a=="string"}function U(a){return a==="text"||a==="link"}function mt(a,t){if(a!=null){var n=t?" ":"";return typeof a!="string"&&typeof a!="number"&&dt(a.type)&&q(a.props.children)?be(a,{children:a.props.children.split("").join(n)}):typeof a=="string"?q(a)?i.createElement("span",null,a.split("").join(n)):i.createElement("span",null,a):Ke(a)?i.createElement("span",null,a):a}}function vt(a,t){var n=!1,e=[];return i.Children.forEach(a,function(r){var o=Je(r),c=o==="string"||o==="number";if(n&&c){var s=e.length-1,l=e[s];e[s]="".concat(l).concat(r)}else e.push(r);n=c}),i.Children.map(e,function(r){return mt(r,t)})}Q("default","primary","ghost","dashed","link","text");Q("default","circle","round");Q("submit","button","reset");function yt(a){return a==="danger"?{danger:!0}:{type:a}}var pt=function(t,n){var e,r=t.loading,o=r===void 0?!1:r,c=t.prefixCls,s=t.type,l=s===void 0?"default":s,v=t.danger,p=t.shape,g=p===void 0?"default":p,b=t.size,C=t.disabled,x=t.className,f=t.children,m=t.icon,T=t.ghost,I=T===void 0?!1:T,N=t.block,L=N===void 0?!1:N,J=t.htmlType,Ee=J===void 0?"button":J,K=ft(t,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),Se=i.useContext(qe),ke=i.useContext(Qe),A=C??ke,Ie=i.useContext(Ne),_e=i.useState(!!o),Y=ge(_e,2),y=Y[0],Z=Y[1],Te=i.useState(!1),ee=ge(Te,2),W=ee[0],te=ee[1],D=i.useContext(w),Pe=D.getPrefixCls,ne=D.autoInsertSpaceInButton,ae=D.direction,E=n||i.createRef(),re=function(){return i.Children.count(f)===1&&!m&&!U(l)},Oe=function(){if(!(!E||!E.current||ne===!1)){var P=E.current.textContent;re()&&q(P)?W||te(!0):W&&te(!1)}},_=typeof o=="boolean"?o:(o==null?void 0:o.delay)||!0;i.useEffect(function(){var h=null;return typeof _=="number"?h=window.setTimeout(function(){h=null,Z(_)},_):Z(_),function(){h&&(window.clearTimeout(h),h=null)}},[_]),i.useEffect(Oe,[E]);var ie=function(P){var B=t.onClick;if(y||A){P.preventDefault();return}B==null||B(P)},d=Pe("btn",c),oe=ne!==!1,ce=Ye(d,ae),ze=ce.compactSize,we=ce.compactItemClassnames,Re={large:"lg",small:"sm",middle:void 0},se=ze||Ie||b||Se,le=se&&Re[se]||"",$e=y?"loading":m,j=Xe(K,["navigate"]),ue=R(d,(e={},u(u(u(u(u(u(u(u(u(u(e,"".concat(d,"-").concat(g),g!=="default"&&g),"".concat(d,"-").concat(l),l),"".concat(d,"-").concat(le),le),"".concat(d,"-icon-only"),!f&&f!==0&&!!$e),"".concat(d,"-background-ghost"),I&&!U(l)),"".concat(d,"-loading"),y),"".concat(d,"-two-chinese-chars"),W&&oe&&!y),"".concat(d,"-block"),L),"".concat(d,"-dangerous"),!!v),"".concat(d,"-rtl"),ae==="rtl"),u(e,"".concat(d,"-disabled"),j.href!==void 0&&A)),we,x),fe=m&&!y?m:i.createElement(ut,{existIcon:!!m,prefixCls:d,loading:!!y}),de=f||f===0?vt(f,re()&&oe):null;if(j.href!==void 0)return i.createElement("a",O({},j,{className:ue,onClick:ie,ref:E}),fe,de);var me=i.createElement("button",O({},K,{type:Ee,className:ue,onClick:ie,disabled:A,ref:E}),fe,de);return U(l)?me:i.createElement(it,{disabled:!!y},me)},X=i.forwardRef(pt);X.Group=st;X.__ANT_BUTTON=!0;const xt=X;export{xt as B,bt as C,ht as N,it as W,yt as c,H as t,Ye as u};
|
|
|
|
| 1 |
+
import{R as S,r as i,_ as O}from"./umi-e07d95da.js";import{bP as Le,C as w,c as R,b as u,w as V,a1 as Ae,a0 as We,a4 as De,bI as je,aq as Be,a7 as Fe,e as be,$ as Me,X as Ge,a2 as ve,a3 as Ue,bs as Ve,Q as pe,d as He,ak as Q,af as qe,ag as Qe,a as ge,o as Xe,W as Je,bH as Ke}from"./_setToString-5e7d8f22.js";function H(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return S.Children.forEach(a,function(e){e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(H(e)):Le(e)&&e.props?n=n.concat(H(e.props.children,t)):n.push(e))}),n}var ye=globalThis&&globalThis.__rest||function(a,t){var n={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&t.indexOf(e)<0&&(n[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(a);r<e.length;r++)t.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(a,e[r])&&(n[e[r]]=a[e[r]]);return n},$=i.createContext(null),Ye=function(t,n){var e=i.useContext($),r=i.useMemo(function(){if(!e)return"";var o=e.compactDirection,c=e.isFirstItem,s=e.isLastItem,l=o==="vertical"?"-vertical-":"-";return R(u(u(u(u({},"".concat(t,"-compact").concat(l,"item"),!0),"".concat(t,"-compact").concat(l,"first-item"),c),"".concat(t,"-compact").concat(l,"last-item"),s),"".concat(t,"-compact").concat(l,"item-rtl"),n==="rtl"))},[t,n,e]);return{compactSize:e==null?void 0:e.compactSize,compactDirection:e==null?void 0:e.compactDirection,compactItemClassnames:r}},ht=function(t){var n=t.children;return i.createElement($.Provider,{value:null},n)},Ze=function(t){var n=t.children,e=ye(t,["children"]);return i.createElement($.Provider,{value:e},n)},et=function(t){var n=i.useContext(w),e=n.getPrefixCls,r=n.direction,o=t.size,c=o===void 0?"middle":o,s=t.direction,l=t.block,v=t.prefixCls,p=t.className,g=t.children,b=ye(t,["size","direction","block","prefixCls","className","children"]),C=e("space-compact",v),x=R(C,u(u(u({},"".concat(C,"-rtl"),r==="rtl"),"".concat(C,"-block"),l),"".concat(C,"-vertical"),s==="vertical"),p),f=i.useContext($),m=H(g),T=i.useMemo(function(){return m.map(function(I,N){var L=I&&I.key||"".concat(C,"-item-").concat(N);return i.createElement(Ze,{key:L,compactSize:c,compactDirection:s,isFirstItem:N===0&&(!f||(f==null?void 0:f.isFirstItem)),isLastItem:N===m.length-1&&(!f||(f==null?void 0:f.isLastItem))},I)})},[c,m,f]);return m.length===0?null:i.createElement("div",O({className:x},b),T)};const bt=et;var tt=0,k={};function z(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=tt++,e=t;function r(){e-=1,e<=0?(a(),delete k[n]):k[n]=V(r)}return k[n]=V(r),n}z.cancel=function(t){t!==void 0&&(V.cancel(k[t]),delete k[t])};z.ids=k;function nt(a,t,n){return t=ve(t),Ue(a,Ve()?Reflect.construct(t,n||[],ve(a).constructor):t.apply(a,n))}var F;function Ce(a){return!a||a.offsetParent===null||a.hidden}function at(a){return a instanceof Document?a.body:Array.from(a.childNodes).find(function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE})}function rt(a){var t=(a||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}var xe=function(a){Ae(t,a);function t(){var n;return We(this,t),n=nt(this,t,arguments),n.containerRef=i.createRef(),n.animationStart=!1,n.destroyed=!1,n.onClick=function(e,r){var o,c,s=n.props,l=s.insertExtraNode,v=s.disabled;if(!(v||!e||Ce(e)||e.className.includes("-leave"))){n.extraNode=document.createElement("div");var p=De(n),g=p.extraNode,b=n.context.getPrefixCls;g.className="".concat(b(""),"-click-animating-node");var C=n.getAttributeName();if(e.setAttribute(C,"true"),r&&r!=="#fff"&&r!=="#ffffff"&&r!=="rgb(255, 255, 255)"&&r!=="rgba(255, 255, 255, 1)"&&rt(r)&&!/rgba\((?:\d*, ){3}0\)/.test(r)&&r!=="transparent"){g.style.borderColor=r;var x=((o=e.getRootNode)===null||o===void 0?void 0:o.call(e))||e.ownerDocument,f=(c=at(x))!==null&&c!==void 0?c:x;F=je(`
|
| 2 |
[`.concat(b(""),"-click-animating-without-extra-node='true']::after, .").concat(b(""),`-click-animating-node {
|
| 3 |
--antd-wave-shadow-color: `).concat(r,`;
|
| 4 |
}`),"antd-wave",{csp:n.csp,attachTo:f})}l&&e.appendChild(g),["transition","animation"].forEach(function(m){e.addEventListener("".concat(m,"start"),n.onTransitionStart),e.addEventListener("".concat(m,"end"),n.onTransitionEnd)})}},n.onTransitionStart=function(e){if(!n.destroyed){var r=n.containerRef.current;!e||e.target!==r||n.animationStart||n.resetEffect(r)}},n.onTransitionEnd=function(e){!e||e.animationName!=="fadeEffect"||n.resetEffect(e.target)},n.bindAnimationEvent=function(e){if(!(!e||!e.getAttribute||e.getAttribute("disabled")||e.className.includes("disabled"))){var r=function(c){if(!(c.target.tagName==="INPUT"||Ce(c.target))){n.resetEffect(e);var s=getComputedStyle(e).getPropertyValue("border-top-color")||getComputedStyle(e).getPropertyValue("border-color")||getComputedStyle(e).getPropertyValue("background-color");n.clickWaveTimeoutId=window.setTimeout(function(){return n.onClick(e,s)},0),z.cancel(n.animationStartId),n.animationStart=!0,n.animationStartId=z(function(){n.animationStart=!1},10)}};return e.addEventListener("click",r,!0),{cancel:function(){e.removeEventListener("click",r,!0)}}}},n.renderWave=function(e){var r=e.csp,o=n.props.children;if(n.csp=r,!i.isValidElement(o))return o;var c=n.containerRef;return Be(o)&&(c=Fe(o.ref,n.containerRef)),be(o,{ref:c})},n}return Me(t,[{key:"componentDidMount",value:function(){this.destroyed=!1;var e=this.containerRef.current;!e||e.nodeType!==1||(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,r=this.props.insertExtraNode;return r?"".concat(e(""),"-click-animating"):"".concat(e(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var r=this;if(!(!e||e===this.extraNode||!(e instanceof Element))){var o=this.props.insertExtraNode,c=this.getAttributeName();e.setAttribute(c,"false"),F&&(F.innerHTML=""),o&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach(function(s){e.removeEventListener("".concat(s,"start"),r.onTransitionStart),e.removeEventListener("".concat(s,"end"),r.onTransitionEnd)})}}},{key:"render",value:function(){return i.createElement(Ge,null,this.renderWave)}}]),t}(i.Component);xe.contextType=w;const it=xe;var ot=globalThis&&globalThis.__rest||function(a,t){var n={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&t.indexOf(e)<0&&(n[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(a);r<e.length;r++)t.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(a,e[r])&&(n[e[r]]=a[e[r]]);return n},Ne=i.createContext(void 0),ct=function(t){var n=i.useContext(w),e=n.getPrefixCls,r=n.direction,o=t.prefixCls,c=t.size,s=t.className,l=ot(t,["prefixCls","size","className"]),v=e("btn-group",o),p="";switch(c){case"large":p="lg";break;case"small":p="sm";break}var g=R(v,u(u({},"".concat(v,"-").concat(p),p),"".concat(v,"-rtl"),r==="rtl"),s);return i.createElement(Ne.Provider,{value:c},i.createElement("div",O({},l,{className:g})))};const st=ct;var M=function(){return{width:0,opacity:0,transform:"scale(0)"}},G=function(t){return{width:t.scrollWidth,opacity:1,transform:"scale(1)"}},lt=function(t){var n=t.prefixCls,e=t.loading,r=t.existIcon,o=!!e;return r?S.createElement("span",{className:"".concat(n,"-loading-icon")},S.createElement(pe,null)):S.createElement(He,{visible:o,motionName:"".concat(n,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:M,onAppearActive:G,onEnterStart:M,onEnterActive:G,onLeaveStart:G,onLeaveActive:M},function(c,s){var l=c.className,v=c.style;return S.createElement("span",{className:"".concat(n,"-loading-icon"),style:v,ref:s},S.createElement(pe,{className:l}))})};const ut=lt;var ft=globalThis&&globalThis.__rest||function(a,t){var n={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&t.indexOf(e)<0&&(n[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(a);r<e.length;r++)t.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(a,e[r])&&(n[e[r]]=a[e[r]]);return n},he=/^[\u4e00-\u9fa5]{2}$/,q=he.test.bind(he);function dt(a){return typeof a=="string"}function U(a){return a==="text"||a==="link"}function mt(a,t){if(a!=null){var n=t?" ":"";return typeof a!="string"&&typeof a!="number"&&dt(a.type)&&q(a.props.children)?be(a,{children:a.props.children.split("").join(n)}):typeof a=="string"?q(a)?i.createElement("span",null,a.split("").join(n)):i.createElement("span",null,a):Ke(a)?i.createElement("span",null,a):a}}function vt(a,t){var n=!1,e=[];return i.Children.forEach(a,function(r){var o=Je(r),c=o==="string"||o==="number";if(n&&c){var s=e.length-1,l=e[s];e[s]="".concat(l).concat(r)}else e.push(r);n=c}),i.Children.map(e,function(r){return mt(r,t)})}Q("default","primary","ghost","dashed","link","text");Q("default","circle","round");Q("submit","button","reset");function yt(a){return a==="danger"?{danger:!0}:{type:a}}var pt=function(t,n){var e,r=t.loading,o=r===void 0?!1:r,c=t.prefixCls,s=t.type,l=s===void 0?"default":s,v=t.danger,p=t.shape,g=p===void 0?"default":p,b=t.size,C=t.disabled,x=t.className,f=t.children,m=t.icon,T=t.ghost,I=T===void 0?!1:T,N=t.block,L=N===void 0?!1:N,J=t.htmlType,Ee=J===void 0?"button":J,K=ft(t,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),Se=i.useContext(qe),ke=i.useContext(Qe),A=C??ke,Ie=i.useContext(Ne),_e=i.useState(!!o),Y=ge(_e,2),y=Y[0],Z=Y[1],Te=i.useState(!1),ee=ge(Te,2),W=ee[0],te=ee[1],D=i.useContext(w),Pe=D.getPrefixCls,ne=D.autoInsertSpaceInButton,ae=D.direction,E=n||i.createRef(),re=function(){return i.Children.count(f)===1&&!m&&!U(l)},Oe=function(){if(!(!E||!E.current||ne===!1)){var P=E.current.textContent;re()&&q(P)?W||te(!0):W&&te(!1)}},_=typeof o=="boolean"?o:(o==null?void 0:o.delay)||!0;i.useEffect(function(){var h=null;return typeof _=="number"?h=window.setTimeout(function(){h=null,Z(_)},_):Z(_),function(){h&&(window.clearTimeout(h),h=null)}},[_]),i.useEffect(Oe,[E]);var ie=function(P){var B=t.onClick;if(y||A){P.preventDefault();return}B==null||B(P)},d=Pe("btn",c),oe=ne!==!1,ce=Ye(d,ae),ze=ce.compactSize,we=ce.compactItemClassnames,Re={large:"lg",small:"sm",middle:void 0},se=ze||Ie||b||Se,le=se&&Re[se]||"",$e=y?"loading":m,j=Xe(K,["navigate"]),ue=R(d,(e={},u(u(u(u(u(u(u(u(u(u(e,"".concat(d,"-").concat(g),g!=="default"&&g),"".concat(d,"-").concat(l),l),"".concat(d,"-").concat(le),le),"".concat(d,"-icon-only"),!f&&f!==0&&!!$e),"".concat(d,"-background-ghost"),I&&!U(l)),"".concat(d,"-loading"),y),"".concat(d,"-two-chinese-chars"),W&&oe&&!y),"".concat(d,"-block"),L),"".concat(d,"-dangerous"),!!v),"".concat(d,"-rtl"),ae==="rtl"),u(e,"".concat(d,"-disabled"),j.href!==void 0&&A)),we,x),fe=m&&!y?m:i.createElement(ut,{existIcon:!!m,prefixCls:d,loading:!!y}),de=f||f===0?vt(f,re()&&oe):null;if(j.href!==void 0)return i.createElement("a",O({},j,{className:ue,onClick:ie,ref:E}),fe,de);var me=i.createElement("button",O({},K,{type:Ee,className:ue,onClick:ie,disabled:A,ref:E}),fe,de);return U(l)?me:i.createElement(it,{disabled:!!y},me)},X=i.forwardRef(pt);X.Group=st;X.__ANT_BUTTON=!0;const xt=X;export{xt as B,bt as C,ht as N,it as W,yt as c,H as t,Ye as u};
|
dist/assets/confirm-0ebf68f1.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/assets/confirm-2a771655.js
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/assets/{font-78638660.js → font-7fe8a548.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as d,j as e}from"./umi-a7f55986.js";const l={rests:[["rests-0","E000"],["rests-1","E001"],["rests-0o","E002"],["rests-1o","E003"],["rests-M3","E004"],["rests-M2","E005"],["rests-M1","E006"],["rests-M1o","E007"],["rests-2","E008"],["rests-2classical","E009"],["rests-2z","E00A"],["rests-3","E00B"],["rests-4","E00C"],["rests-5","E00D"],["rests-6","E00E"],["rests-7","E00F"],["rests-8","E010"],["rests-9","E011"],["rests-10","E012"],["rests-M3neomensural","E144"],["rests-M2neomensural","E145"],["rests-M1neomensural","E146"],["rests-0neomensural","E147"],["rests-1neomensural","E148"],["rests-2neomensural","E149"],["rests-3neomensural","E14A"],["rests-4neomensural","E14B"],["rests-M3mensural","E14C"],["rests-M2mensural","E14D"],["rests-M1mensural","E14E"],["rests-0mensural","E14F"],["rests-1mensural","E150"],["rests-2mensural","E151"],["rests-3mensural","E152"],["rests-4mensural","E153"]],accidentals:[["accidentals-sharp","E013"],["accidentals-sharp-arrowup","E014"],["accidentals-sharp-arrowdown","E015"],["accidentals-sharp-arrowboth","E016"],["accidentals-sharp-slashslash-stem","E017"],["accidentals-sharp-slashslashslash-stemstem","E018"],["accidentals-sharp-slashslashslash-stem","E019"],["accidentals-sharp-slash-stem","E01A"],["accidentals-sharp-slashslash-stemstemstem","E01B"],["accidentals-doublesharp","E01C"],["accidentals-natural","E01D"],["accidentals-natural-arrowup","E01E"],["accidentals-natural-arrowdown","E01F"],["accidentals-natural-arrowboth","E020"],["accidentals-flat","E021"],["accidentals-flat-arrowup","E022"],["accidentals-flat-arrowdown","E023"],["accidentals-flat-arrowboth","E024"],["accidentals-flat-slash","E025"],["accidentals-flat-slashslash","E026"],["accidentals-mirroredflat-flat","E027"],["accidentals-mirroredflat","E028"],["accidentals-mirroredflat-backslash","E029"],["accidentals-flatflat","E02A"],["accidentals-flatflat-slash","E02B"],["accidentals-rightparen","E02C"],["accidentals-leftparen","E02D"],["accidentals-medicaeaM1","E194"],["accidentals-vaticanaM1","E195"],["accidentals-vaticana0","E196"],["accidentals-mensural1","E197"],["accidentals-mensuralM1","E198"],["accidentals-hufnagelM1","E199"],["accidentals-kievan1","E19A"],["accidentals-kievanM1","E19B"]],arrowheads:[["arrowheads-open-01","E02E"],["arrowheads-open-0M1","E02F"],["arrowheads-open-11","E030"],["arrowheads-open-1M1","E031"],["arrowheads-close-01","E032"],["arrowheads-close-0M1","E033"],["arrowheads-close-11","E034"],["arrowheads-close-1M1","E035"]],dot:[["dot","E036"]],scripts:[["scripts-ufermata","E037"],["scripts-dfermata","E038"],["scripts-uhenzeshortfermata","E039"],["scripts-dhenzeshortfermata","E03A"],["scripts-uhenzelongfermata","E03B"],["scripts-dhenzelongfermata","E03C"],["scripts-ushortfermata","E03D"],["scripts-dshortfermata","E03E"],["scripts-uveryshortfermata","E03F"],["scripts-dveryshortfermata","E040"],["scripts-ulongfermata","E041"],["scripts-dlongfermata","E042"],["scripts-uverylongfermata","E043"],["scripts-dverylongfermata","E044"],["scripts-thumb","E045"],["scripts-sforzato","E046"],["scripts-espr","E047"],["scripts-staccato","E048"],["scripts-ustaccatissimo","E049"],["scripts-dstaccatissimo","E04A"],["scripts-tenuto","E04B"],["scripts-uportato","E04C"],["scripts-dportato","E04D"],["scripts-umarcato","E04E"],["scripts-dmarcato","E04F"],["scripts-open","E050"],["scripts-halfopen","E051"],["scripts-halfopenvertical","E052"],["scripts-stopped","E053"],["scripts-upbow","E054"],["scripts-downbow","E055"],["scripts-reverseturn","E056"],["scripts-turn","E057"],["scripts-slashturn","E058"],["scripts-haydnturn","E059"],["scripts-trill","E05A"],["scripts-upedalheel","E05B"],["scripts-dpedalheel","E05C"],["scripts-upedaltoe","E05D"],["scripts-dpedaltoe","E05E"],["scripts-flageolet","E05F"],["scripts-segno","E060"],["scripts-varsegno","E061"],["scripts-coda","E062"],["scripts-varcoda","E063"],["scripts-rcomma","E064"],["scripts-lcomma","E065"],["scripts-rvarcomma","E066"],["scripts-lvarcomma","E067"],["scripts-arpeggio","E068"],["scripts-trill_element","E069"],["scripts-arpeggio-arrow-M1","E06A"],["scripts-arpeggio-arrow-1","E06B"],["scripts-trillelement","E06C"],["scripts-prall","E06D"],["scripts-mordent","E06E"],["scripts-prallprall","E06F"],["scripts-prallmordent","E070"],["scripts-upprall","E071"],["scripts-upmordent","E072"],["scripts-prallup","E073"],["scripts-downprall","E074"],["scripts-downmordent","E075"],["scripts-pralldown","E076"],["scripts-lineprall","E077"],["scripts-caesura-curved","E078"],["scripts-caesura-straight","E079"],["scripts-tickmark","E07A"],["scripts-snappizzicato","E07B"],["scripts-ictus","E1CA"],["scripts-uaccentus","E1CB"],["scripts-daccentus","E1CC"],["scripts-usemicirculus","E1CD"],["scripts-dsemicirculus","E1CE"],["scripts-circulus","E1CF"],["scripts-augmentum","E1D0"],["scripts-usignumcongruentiae","E1D1"],["scripts-dsignumcongruentiae","E1D2"],["scripts-barline-kievan","E1D3"]],clefs:[["clefs-C","E07C"],["clefs-C_change","E07D"],["clefs-varC","E07E"],["clefs-varC_change","E07F"],["clefs-F","E080"],["clefs-F_change","E081"],["clefs-G","E082"],["clefs-G_change","E083"],["clefs-GG","E084"],["clefs-GG_change","E085"],["clefs-tenorG","E086"],["clefs-tenorG_change","E087"],["clefs-percussion","E088"],["clefs-percussion_change","E089"],["clefs-varpercussion","E08A"],["clefs-varpercussion_change","E08B"],["clefs-tab","E08C"],["clefs-tab_change","E08D"],["clefs-vaticana-do","E154"],["clefs-vaticana-do_change","E155"],["clefs-vaticana-fa","E156"],["clefs-vaticana-fa_change","E157"],["clefs-medicaea-do","E158"],["clefs-medicaea-do_change","E159"],["clefs-medicaea-fa","E15A"],["clefs-medicaea-fa_change","E15B"],["clefs-neomensural-c","E15C"],["clefs-neomensural-c_change","E15D"],["clefs-petrucci-c1","E15E"],["clefs-petrucci-c1_change","E15F"],["clefs-petrucci-c2","E160"],["clefs-petrucci-c2_change","E161"],["clefs-petrucci-c3","E162"],["clefs-petrucci-c3_change","E163"],["clefs-petrucci-c4","E164"],["clefs-petrucci-c4_change","E165"],["clefs-petrucci-c5","E166"],["clefs-petrucci-c5_change","E167"],["clefs-mensural-c","E168"],["clefs-mensural-c_change","E169"],["clefs-blackmensural-c","E16A"],["clefs-blackmensural-c_change","E16B"],["clefs-petrucci-f","E16C"],["clefs-petrucci-f_change","E16D"],["clefs-mensural-f","E16E"],["clefs-mensural-f_change","E16F"],["clefs-petrucci-g","E170"],["clefs-petrucci-g_change","E171"],["clefs-mensural-g","E172"],["clefs-mensural-g_change","E173"],["clefs-hufnagel-do","E174"],["clefs-hufnagel-do_change","E175"],["clefs-hufnagel-fa","E176"],["clefs-hufnagel-fa_change","E177"],["clefs-hufnagel-do-fa","E178"],["clefs-hufnagel-do-fa_change","E179"],["clefs-kievan-do","E17A"],["clefs-kievan-do_change","E17B"]],timesig:[["timesig-C44","E08E"],["timesig-C22","E08F"],["timesig-mensural44","E1B4"],["timesig-mensural22","E1B5"],["timesig-mensural32","E1B6"],["timesig-mensural64","E1B7"],["timesig-mensural94","E1B8"],["timesig-mensural34","E1B9"],["timesig-mensural68","E1BA"],["timesig-mensural98","E1BB"],["timesig-mensural48","E1BC"],["timesig-mensural68alt","E1BD"],["timesig-mensural24","E1BE"],["timesig-neomensural44","E1BF"],["timesig-neomensural22","E1C0"],["timesig-neomensural32","E1C1"],["timesig-neomensural64","E1C2"],["timesig-neomensural94","E1C3"],["timesig-neomensural34","E1C4"],["timesig-neomensural68","E1C5"],["timesig-neomensural98","E1C6"],["timesig-neomensural48","E1C7"],["timesig-neomensural68alt","E1C8"],["timesig-neomensural24","E1C9"]],pedal:[["pedal-star","E090"],["pedal-M","E091"],["pedal--","E092"],["pedal-P","E093"],["pedal-d","E094"],["pedal-e","E095"],["pedal-Ped","E096"]],brackettips:[["brackettips-up","E097"],["brackettips-down","E098"]],accordion:[["accordion-discant","E099"],["accordion-dot","E09A"],["accordion-freebass","E09B"],["accordion-stdbass","E09C"],["accordion-bayanbass","E09D"],["accordion-oldEE","E09E"],["accordion-push","E09F"],["accordion-pull","E0A0"]],ties:[["ties-lyric-short","E0A1"],["ties-lyric-default","E0A2"]],noteheads:[["noteheads-uM2","E0A3"],["noteheads-dM2","E0A4"],["noteheads-sM1","E0A5"],["noteheads-sM1double","E0A6"],["noteheads-s0","E0A7"],["noteheads-s1","E0A8"],["noteheads-s2","E0A9"],["noteheads-s0diamond","E0AA"],["noteheads-s1diamond","E0AB"],["noteheads-s2diamond","E0AC"],["noteheads-s0triangle","E0AD"],["noteheads-d1triangle","E0AE"],["noteheads-u1triangle","E0AF"],["noteheads-u2triangle","E0B0"],["noteheads-d2triangle","E0B1"],["noteheads-s0slash","E0B2"],["noteheads-s1slash","E0B3"],["noteheads-s2slash","E0B4"],["noteheads-s0cross","E0B5"],["noteheads-s1cross","E0B6"],["noteheads-s2cross","E0B7"],["noteheads-s2xcircle","E0B8"],["noteheads-s0do","E0B9"],["noteheads-d1do","E0BA"],["noteheads-u1do","E0BB"],["noteheads-d2do","E0BC"],["noteheads-u2do","E0BD"],["noteheads-s0doThin","E0BE"],["noteheads-d1doThin","E0BF"],["noteheads-u1doThin","E0C0"],["noteheads-d2doThin","E0C1"],["noteheads-u2doThin","E0C2"],["noteheads-s0re","E0C3"],["noteheads-u1re","E0C4"],["noteheads-d1re","E0C5"],["noteheads-u2re","E0C6"],["noteheads-d2re","E0C7"],["noteheads-s0reThin","E0C8"],["noteheads-u1reThin","E0C9"],["noteheads-d1reThin","E0CA"],["noteheads-u2reThin","E0CB"],["noteheads-d2reThin","E0CC"],["noteheads-s0mi","E0CD"],["noteheads-s1mi","E0CE"],["noteheads-s2mi","E0CF"],["noteheads-s0miMirror","E0D0"],["noteheads-s1miMirror","E0D1"],["noteheads-s2miMirror","E0D2"],["noteheads-s0miThin","E0D3"],["noteheads-s1miThin","E0D4"],["noteheads-s2miThin","E0D5"],["noteheads-u0fa","E0D6"],["noteheads-d0fa","E0D7"],["noteheads-u1fa","E0D8"],["noteheads-d1fa","E0D9"],["noteheads-u2fa","E0DA"],["noteheads-d2fa","E0DB"],["noteheads-u0faThin","E0DC"],["noteheads-d0faThin","E0DD"],["noteheads-u1faThin","E0DE"],["noteheads-d1faThin","E0DF"],["noteheads-u2faThin","E0E0"],["noteheads-d2faThin","E0E1"],["noteheads-s0sol","E0E2"],["noteheads-s1sol","E0E3"],["noteheads-s2sol","E0E4"],["noteheads-s0la","E0E5"],["noteheads-s1la","E0E6"],["noteheads-s2la","E0E7"],["noteheads-s0laThin","E0E8"],["noteheads-s1laThin","E0E9"],["noteheads-s2laThin","E0EA"],["noteheads-s0ti","E0EB"],["noteheads-u1ti","E0EC"],["noteheads-d1ti","E0ED"],["noteheads-u2ti","E0EE"],["noteheads-d2ti","E0EF"],["noteheads-s0tiThin","E0F0"],["noteheads-u1tiThin","E0F1"],["noteheads-d1tiThin","E0F2"],["noteheads-u2tiThin","E0F3"],["noteheads-d2tiThin","E0F4"],["noteheads-u0doFunk","E0F5"],["noteheads-d0doFunk","E0F6"],["noteheads-u1doFunk","E0F7"],["noteheads-d1doFunk","E0F8"],["noteheads-u2doFunk","E0F9"],["noteheads-d2doFunk","E0FA"],["noteheads-u0reFunk","E0FB"],["noteheads-d0reFunk","E0FC"],["noteheads-u1reFunk","E0FD"],["noteheads-d1reFunk","E0FE"],["noteheads-u2reFunk","E0FF"],["noteheads-d2reFunk","E100"],["noteheads-u0miFunk","E101"],["noteheads-d0miFunk","E102"],["noteheads-u1miFunk","E103"],["noteheads-d1miFunk","E104"],["noteheads-s2miFunk","E105"],["noteheads-u0faFunk","E106"],["noteheads-d0faFunk","E107"],["noteheads-u1faFunk","E108"],["noteheads-d1faFunk","E109"],["noteheads-u2faFunk","E10A"],["noteheads-d2faFunk","E10B"],["noteheads-s0solFunk","E10C"],["noteheads-s1solFunk","E10D"],["noteheads-s2solFunk","E10E"],["noteheads-s0laFunk","E10F"],["noteheads-s1laFunk","E110"],["noteheads-s2laFunk","E111"],["noteheads-u0tiFunk","E112"],["noteheads-d0tiFunk","E113"],["noteheads-u1tiFunk","E114"],["noteheads-d1tiFunk","E115"],["noteheads-u2tiFunk","E116"],["noteheads-d2tiFunk","E117"],["noteheads-s0doWalker","E118"],["noteheads-u1doWalker","E119"],["noteheads-d1doWalker","E11A"],["noteheads-u2doWalker","E11B"],["noteheads-d2doWalker","E11C"],["noteheads-s0reWalker","E11D"],["noteheads-u1reWalker","E11E"],["noteheads-d1reWalker","E11F"],["noteheads-u2reWalker","E120"],["noteheads-d2reWalker","E121"],["noteheads-s0miWalker","E122"],["noteheads-s1miWalker","E123"],["noteheads-s2miWalker","E124"],["noteheads-s0faWalker","E125"],["noteheads-u1faWalker","E126"],["noteheads-d1faWalker","E127"],["noteheads-u2faWalker","E128"],["noteheads-d2faWalker","E129"],["noteheads-s0laWalker","E12A"],["noteheads-s1laWalker","E12B"],["noteheads-s2laWalker","E12C"],["noteheads-s0tiWalker","E12D"],["noteheads-u1tiWalker","E12E"],["noteheads-d1tiWalker","E12F"],["noteheads-u2tiWalker","E130"],["noteheads-d2tiWalker","E131"],["noteheads-uM3neomensural","E1D6"],["noteheads-dM3neomensural","E1D7"],["noteheads-uM2neomensural","E1D8"],["noteheads-dM2neomensural","E1D9"],["noteheads-sM1neomensural","E1DA"],["noteheads-urM3neomensural","E1DB"],["noteheads-drM3neomensural","E1DC"],["noteheads-urM2neomensural","E1DD"],["noteheads-drM2neomensural","E1DE"],["noteheads-srM1neomensural","E1DF"],["noteheads-s0neomensural","E1E0"],["noteheads-s1neomensural","E1E1"],["noteheads-s2neomensural","E1E2"],["noteheads-s0harmonic","E1E3"],["noteheads-s2harmonic","E1E4"],["noteheads-uM3mensural","E1E5"],["noteheads-dM3mensural","E1E6"],["noteheads-sM3ligmensural","E1E7"],["noteheads-uM2mensural","E1E8"],["noteheads-dM2mensural","E1E9"],["noteheads-sM2ligmensural","E1EA"],["noteheads-sM1mensural","E1EB"],["noteheads-urM3mensural","E1EC"],["noteheads-drM3mensural","E1ED"],["noteheads-srM3ligmensural","E1EE"],["noteheads-urM2mensural","E1EF"],["noteheads-drM2mensural","E1F0"],["noteheads-srM2ligmensural","E1F1"],["noteheads-srM1mensural","E1F2"],["noteheads-uM3semimensural","E1F3"],["noteheads-dM3semimensural","E1F4"],["noteheads-sM3semiligmensural","E1F5"],["noteheads-uM2semimensural","E1F6"],["noteheads-dM2semimensural","E1F7"],["noteheads-sM2semiligmensural","E1F8"],["noteheads-sM1semimensural","E1F9"],["noteheads-urM3semimensural","E1FA"],["noteheads-drM3semimensural","E1FB"],["noteheads-srM3semiligmensural","E1FC"],["noteheads-urM2semimensural","E1FD"],["noteheads-drM2semimensural","E1FE"],["noteheads-srM2semiligmensural","E1FF"],["noteheads-srM1semimensural","E200"],["noteheads-uM3blackmensural","E201"],["noteheads-dM3blackmensural","E202"],["noteheads-sM3blackligmensural","E203"],["noteheads-uM2blackmensural","E204"],["noteheads-dM2blackmensural","E205"],["noteheads-sM2blackligmensural","E206"],["noteheads-sM1blackmensural","E207"],["noteheads-s0mensural","E208"],["noteheads-s1mensural","E209"],["noteheads-s2mensural","E20A"],["noteheads-s0blackmensural","E20B"],["noteheads-s0petrucci","E20C"],["noteheads-s1petrucci","E20D"],["noteheads-s2petrucci","E20E"],["noteheads-s0blackpetrucci","E20F"],["noteheads-s1blackpetrucci","E210"],["noteheads-s2blackpetrucci","E211"],["noteheads-svaticana-punctum","E212"],["noteheads-svaticana-punctum-cavum","E213"],["noteheads-svaticana-linea-punctum","E214"],["noteheads-svaticana-linea-punctum-cavum","E215"],["noteheads-svaticana-inclinatum","E216"],["noteheads-svaticana-lpes","E217"],["noteheads-svaticana-vlpes","E218"],["noteheads-svaticana-upes","E219"],["noteheads-svaticana-vupes","E21A"],["noteheads-svaticana-plica","E21B"],["noteheads-svaticana-vplica","E21C"],["noteheads-svaticana-epiphonus","E21D"],["noteheads-svaticana-vepiphonus","E21E"],["noteheads-svaticana-reverse-plica","E21F"],["noteheads-svaticana-reverse-vplica","E220"],["noteheads-svaticana-inner-cephalicus","E221"],["noteheads-svaticana-cephalicus","E222"],["noteheads-svaticana-quilisma","E223"],["noteheads-ssolesmes-incl-parvum","E224"],["noteheads-ssolesmes-auct-asc","E225"],["noteheads-ssolesmes-auct-desc","E226"],["noteheads-ssolesmes-incl-auctum","E227"],["noteheads-ssolesmes-stropha","E228"],["noteheads-ssolesmes-stropha-aucta","E229"],["noteheads-ssolesmes-oriscus","E22A"],["noteheads-smedicaea-inclinatum","E22B"],["noteheads-smedicaea-punctum","E22C"],["noteheads-smedicaea-rvirga","E22D"],["noteheads-smedicaea-virga","E22E"],["noteheads-shufnagel-punctum","E22F"],["noteheads-shufnagel-virga","E230"],["noteheads-shufnagel-lpes","E231"],["noteheads-sM2kievan","E232"],["noteheads-sM1kievan","E233"],["noteheads-s0kievan","E234"],["noteheads-d2kievan","E235"],["noteheads-u2kievan","E236"],["noteheads-s1kievan","E237"],["noteheads-sr1kievan","E238"],["noteheads-d3kievan","E239"],["noteheads-u3kievan","E23A"]],flags:[["flags-u3","E132"],["flags-u4","E133"],["flags-u5","E134"],["flags-u6","E135"],["flags-u7","E136"],["flags-u8","E137"],["flags-u9","E138"],["flags-u10","E139"],["flags-d3","E13A"],["flags-d4","E13B"],["flags-d5","E13C"],["flags-d6","E13D"],["flags-d7","E13E"],["flags-d8","E13F"],["flags-d9","E140"],["flags-d10","E141"],["flags-ugrace","E142"],["flags-dgrace","E143"],["flags-mensuralu03","E19C"],["flags-mensuralu13","E19D"],["flags-mensuralu23","E19E"],["flags-mensurald03","E19F"],["flags-mensurald13","E1A0"],["flags-mensurald23","E1A1"],["flags-mensuralu04","E1A2"],["flags-mensuralu14","E1A3"],["flags-mensuralu24","E1A4"],["flags-mensurald04","E1A5"],["flags-mensurald14","E1A6"],["flags-mensurald24","E1A7"],["flags-mensuralu05","E1A8"],["flags-mensuralu15","E1A9"],["flags-mensuralu25","E1AA"],["flags-mensurald05","E1AB"],["flags-mensurald15","E1AC"],["flags-mensurald25","E1AD"],["flags-mensuralu06","E1AE"],["flags-mensuralu16","E1AF"],["flags-mensuralu26","E1B0"],["flags-mensurald06","E1B1"],["flags-mensurald16","E1B2"],["flags-mensurald26","E1B3"]],custodes:[["custodes-hufnagel-u0","E17C"],["custodes-hufnagel-u1","E17D"],["custodes-hufnagel-u2","E17E"],["custodes-hufnagel-d0","E17F"],["custodes-hufnagel-d1","E180"],["custodes-hufnagel-d2","E181"],["custodes-medicaea-u0","E182"],["custodes-medicaea-u1","E183"],["custodes-medicaea-u2","E184"],["custodes-medicaea-d0","E185"],["custodes-medicaea-d1","E186"],["custodes-medicaea-d2","E187"],["custodes-vaticana-u0","E188"],["custodes-vaticana-u1","E189"],["custodes-vaticana-u2","E18A"],["custodes-vaticana-d0","E18B"],["custodes-vaticana-d1","E18C"],["custodes-vaticana-d2","E18D"],["custodes-mensural-u0","E18E"],["custodes-mensural-u1","E18F"],["custodes-mensural-u2","E190"],["custodes-mensural-d0","E191"],["custodes-mensural-d1","E192"],["custodes-mensural-d2","E193"]],dots:[["dots-dotvaticana","E1D4"],["dots-dotkievan","E1D5"]]},i={rests:"Rests",accidentals:"Accidentals",arrowheads:"Arrowheads",dot:"Dot",scripts:"Scripts & Articulations",clefs:"Clefs",timesig:"Time Signatures",pedal:"Pedal",brackettips:"Bracket Tips",accordion:"Accordion",ties:"Ties",noteheads:"Noteheads",flags:"Flags",custodes:"Custodes",dots:"Dots"};function f(){const[o,u]=d.useState(!1),[E,h]=d.useState(""),[r,m]=d.useState(40);d.useEffect(()=>{document.fonts.ready.then(()=>{u(document.fonts.check("40px Emmentaler-26"))})},[]);const c=Object.keys(l);return e.jsxs("div",{className:"font-test-page",children:[e.jsxs("div",{className:"font-test-header",children:[e.jsx("h1",{children:"Emmentaler-26 Font Glyphs"}),e.jsxs("div",{className:"font-test-status",children:["Font status: ",e.jsx("span",{className:o?"loaded":"not-loaded",children:o?"Loaded":"Not loaded"}),e.jsxs("span",{className:"glyph-count",children:[Object.values(l).reduce((s,n)=>s+n.length,0)," glyphs"]})]}),e.jsxs("div",{className:"font-test-controls",children:[e.jsx("input",{type:"text",placeholder:"Filter glyphs...",value:E,onChange:s=>h(s.target.value)}),e.jsxs("label",{children:["Size:",e.jsx("input",{type:"range",min:20,max:80,value:r,onChange:s=>m(Number(s.target.value))}),r,"px"]})]}),e.jsx("div",{className:"font-test-toc",children:c.map(s=>e.jsxs("a",{href:`#cat-${s}`,children:[i[s]||s," (",l[s].length,")"]},s))})]}),c.map(s=>{const n=l[s].filter(([a,t])=>!E||a.toLowerCase().includes(E.toLowerCase())||t.toLowerCase().includes(E.toLowerCase()));return n.length===0?null:e.jsxs("div",{id:`cat-${s}`,className:"font-test-category",children:[e.jsxs("h2",{children:[i[s]||s," ",e.jsxs("span",{children:["(",n.length,")"]})]}),e.jsx("div",{className:"glyph-grid",children:n.map(([a,t])=>e.jsxs("div",{className:"glyph-cell",title:a,children:[e.jsx("div",{className:"glyph-render",style:{fontSize:r},children:e.jsx("i",{className:`emmentaler glyph-${a}`})}),e.jsx("div",{className:"glyph-unicode",style:{fontSize:r},children:String.fromCodePoint(parseInt(t,16))}),e.jsx("div",{className:"glyph-name",children:a}),e.jsxs("div",{className:"glyph-code",children:["U+",t]})]},`${a}-${t}`))})]},s)})]})}export{f as default};
|
|
|
|
| 1 |
+
import{r as d,j as e}from"./umi-e07d95da.js";const l={rests:[["rests-0","E000"],["rests-1","E001"],["rests-0o","E002"],["rests-1o","E003"],["rests-M3","E004"],["rests-M2","E005"],["rests-M1","E006"],["rests-M1o","E007"],["rests-2","E008"],["rests-2classical","E009"],["rests-2z","E00A"],["rests-3","E00B"],["rests-4","E00C"],["rests-5","E00D"],["rests-6","E00E"],["rests-7","E00F"],["rests-8","E010"],["rests-9","E011"],["rests-10","E012"],["rests-M3neomensural","E144"],["rests-M2neomensural","E145"],["rests-M1neomensural","E146"],["rests-0neomensural","E147"],["rests-1neomensural","E148"],["rests-2neomensural","E149"],["rests-3neomensural","E14A"],["rests-4neomensural","E14B"],["rests-M3mensural","E14C"],["rests-M2mensural","E14D"],["rests-M1mensural","E14E"],["rests-0mensural","E14F"],["rests-1mensural","E150"],["rests-2mensural","E151"],["rests-3mensural","E152"],["rests-4mensural","E153"]],accidentals:[["accidentals-sharp","E013"],["accidentals-sharp-arrowup","E014"],["accidentals-sharp-arrowdown","E015"],["accidentals-sharp-arrowboth","E016"],["accidentals-sharp-slashslash-stem","E017"],["accidentals-sharp-slashslashslash-stemstem","E018"],["accidentals-sharp-slashslashslash-stem","E019"],["accidentals-sharp-slash-stem","E01A"],["accidentals-sharp-slashslash-stemstemstem","E01B"],["accidentals-doublesharp","E01C"],["accidentals-natural","E01D"],["accidentals-natural-arrowup","E01E"],["accidentals-natural-arrowdown","E01F"],["accidentals-natural-arrowboth","E020"],["accidentals-flat","E021"],["accidentals-flat-arrowup","E022"],["accidentals-flat-arrowdown","E023"],["accidentals-flat-arrowboth","E024"],["accidentals-flat-slash","E025"],["accidentals-flat-slashslash","E026"],["accidentals-mirroredflat-flat","E027"],["accidentals-mirroredflat","E028"],["accidentals-mirroredflat-backslash","E029"],["accidentals-flatflat","E02A"],["accidentals-flatflat-slash","E02B"],["accidentals-rightparen","E02C"],["accidentals-leftparen","E02D"],["accidentals-medicaeaM1","E194"],["accidentals-vaticanaM1","E195"],["accidentals-vaticana0","E196"],["accidentals-mensural1","E197"],["accidentals-mensuralM1","E198"],["accidentals-hufnagelM1","E199"],["accidentals-kievan1","E19A"],["accidentals-kievanM1","E19B"]],arrowheads:[["arrowheads-open-01","E02E"],["arrowheads-open-0M1","E02F"],["arrowheads-open-11","E030"],["arrowheads-open-1M1","E031"],["arrowheads-close-01","E032"],["arrowheads-close-0M1","E033"],["arrowheads-close-11","E034"],["arrowheads-close-1M1","E035"]],dot:[["dot","E036"]],scripts:[["scripts-ufermata","E037"],["scripts-dfermata","E038"],["scripts-uhenzeshortfermata","E039"],["scripts-dhenzeshortfermata","E03A"],["scripts-uhenzelongfermata","E03B"],["scripts-dhenzelongfermata","E03C"],["scripts-ushortfermata","E03D"],["scripts-dshortfermata","E03E"],["scripts-uveryshortfermata","E03F"],["scripts-dveryshortfermata","E040"],["scripts-ulongfermata","E041"],["scripts-dlongfermata","E042"],["scripts-uverylongfermata","E043"],["scripts-dverylongfermata","E044"],["scripts-thumb","E045"],["scripts-sforzato","E046"],["scripts-espr","E047"],["scripts-staccato","E048"],["scripts-ustaccatissimo","E049"],["scripts-dstaccatissimo","E04A"],["scripts-tenuto","E04B"],["scripts-uportato","E04C"],["scripts-dportato","E04D"],["scripts-umarcato","E04E"],["scripts-dmarcato","E04F"],["scripts-open","E050"],["scripts-halfopen","E051"],["scripts-halfopenvertical","E052"],["scripts-stopped","E053"],["scripts-upbow","E054"],["scripts-downbow","E055"],["scripts-reverseturn","E056"],["scripts-turn","E057"],["scripts-slashturn","E058"],["scripts-haydnturn","E059"],["scripts-trill","E05A"],["scripts-upedalheel","E05B"],["scripts-dpedalheel","E05C"],["scripts-upedaltoe","E05D"],["scripts-dpedaltoe","E05E"],["scripts-flageolet","E05F"],["scripts-segno","E060"],["scripts-varsegno","E061"],["scripts-coda","E062"],["scripts-varcoda","E063"],["scripts-rcomma","E064"],["scripts-lcomma","E065"],["scripts-rvarcomma","E066"],["scripts-lvarcomma","E067"],["scripts-arpeggio","E068"],["scripts-trill_element","E069"],["scripts-arpeggio-arrow-M1","E06A"],["scripts-arpeggio-arrow-1","E06B"],["scripts-trillelement","E06C"],["scripts-prall","E06D"],["scripts-mordent","E06E"],["scripts-prallprall","E06F"],["scripts-prallmordent","E070"],["scripts-upprall","E071"],["scripts-upmordent","E072"],["scripts-prallup","E073"],["scripts-downprall","E074"],["scripts-downmordent","E075"],["scripts-pralldown","E076"],["scripts-lineprall","E077"],["scripts-caesura-curved","E078"],["scripts-caesura-straight","E079"],["scripts-tickmark","E07A"],["scripts-snappizzicato","E07B"],["scripts-ictus","E1CA"],["scripts-uaccentus","E1CB"],["scripts-daccentus","E1CC"],["scripts-usemicirculus","E1CD"],["scripts-dsemicirculus","E1CE"],["scripts-circulus","E1CF"],["scripts-augmentum","E1D0"],["scripts-usignumcongruentiae","E1D1"],["scripts-dsignumcongruentiae","E1D2"],["scripts-barline-kievan","E1D3"]],clefs:[["clefs-C","E07C"],["clefs-C_change","E07D"],["clefs-varC","E07E"],["clefs-varC_change","E07F"],["clefs-F","E080"],["clefs-F_change","E081"],["clefs-G","E082"],["clefs-G_change","E083"],["clefs-GG","E084"],["clefs-GG_change","E085"],["clefs-tenorG","E086"],["clefs-tenorG_change","E087"],["clefs-percussion","E088"],["clefs-percussion_change","E089"],["clefs-varpercussion","E08A"],["clefs-varpercussion_change","E08B"],["clefs-tab","E08C"],["clefs-tab_change","E08D"],["clefs-vaticana-do","E154"],["clefs-vaticana-do_change","E155"],["clefs-vaticana-fa","E156"],["clefs-vaticana-fa_change","E157"],["clefs-medicaea-do","E158"],["clefs-medicaea-do_change","E159"],["clefs-medicaea-fa","E15A"],["clefs-medicaea-fa_change","E15B"],["clefs-neomensural-c","E15C"],["clefs-neomensural-c_change","E15D"],["clefs-petrucci-c1","E15E"],["clefs-petrucci-c1_change","E15F"],["clefs-petrucci-c2","E160"],["clefs-petrucci-c2_change","E161"],["clefs-petrucci-c3","E162"],["clefs-petrucci-c3_change","E163"],["clefs-petrucci-c4","E164"],["clefs-petrucci-c4_change","E165"],["clefs-petrucci-c5","E166"],["clefs-petrucci-c5_change","E167"],["clefs-mensural-c","E168"],["clefs-mensural-c_change","E169"],["clefs-blackmensural-c","E16A"],["clefs-blackmensural-c_change","E16B"],["clefs-petrucci-f","E16C"],["clefs-petrucci-f_change","E16D"],["clefs-mensural-f","E16E"],["clefs-mensural-f_change","E16F"],["clefs-petrucci-g","E170"],["clefs-petrucci-g_change","E171"],["clefs-mensural-g","E172"],["clefs-mensural-g_change","E173"],["clefs-hufnagel-do","E174"],["clefs-hufnagel-do_change","E175"],["clefs-hufnagel-fa","E176"],["clefs-hufnagel-fa_change","E177"],["clefs-hufnagel-do-fa","E178"],["clefs-hufnagel-do-fa_change","E179"],["clefs-kievan-do","E17A"],["clefs-kievan-do_change","E17B"]],timesig:[["timesig-C44","E08E"],["timesig-C22","E08F"],["timesig-mensural44","E1B4"],["timesig-mensural22","E1B5"],["timesig-mensural32","E1B6"],["timesig-mensural64","E1B7"],["timesig-mensural94","E1B8"],["timesig-mensural34","E1B9"],["timesig-mensural68","E1BA"],["timesig-mensural98","E1BB"],["timesig-mensural48","E1BC"],["timesig-mensural68alt","E1BD"],["timesig-mensural24","E1BE"],["timesig-neomensural44","E1BF"],["timesig-neomensural22","E1C0"],["timesig-neomensural32","E1C1"],["timesig-neomensural64","E1C2"],["timesig-neomensural94","E1C3"],["timesig-neomensural34","E1C4"],["timesig-neomensural68","E1C5"],["timesig-neomensural98","E1C6"],["timesig-neomensural48","E1C7"],["timesig-neomensural68alt","E1C8"],["timesig-neomensural24","E1C9"]],pedal:[["pedal-star","E090"],["pedal-M","E091"],["pedal--","E092"],["pedal-P","E093"],["pedal-d","E094"],["pedal-e","E095"],["pedal-Ped","E096"]],brackettips:[["brackettips-up","E097"],["brackettips-down","E098"]],accordion:[["accordion-discant","E099"],["accordion-dot","E09A"],["accordion-freebass","E09B"],["accordion-stdbass","E09C"],["accordion-bayanbass","E09D"],["accordion-oldEE","E09E"],["accordion-push","E09F"],["accordion-pull","E0A0"]],ties:[["ties-lyric-short","E0A1"],["ties-lyric-default","E0A2"]],noteheads:[["noteheads-uM2","E0A3"],["noteheads-dM2","E0A4"],["noteheads-sM1","E0A5"],["noteheads-sM1double","E0A6"],["noteheads-s0","E0A7"],["noteheads-s1","E0A8"],["noteheads-s2","E0A9"],["noteheads-s0diamond","E0AA"],["noteheads-s1diamond","E0AB"],["noteheads-s2diamond","E0AC"],["noteheads-s0triangle","E0AD"],["noteheads-d1triangle","E0AE"],["noteheads-u1triangle","E0AF"],["noteheads-u2triangle","E0B0"],["noteheads-d2triangle","E0B1"],["noteheads-s0slash","E0B2"],["noteheads-s1slash","E0B3"],["noteheads-s2slash","E0B4"],["noteheads-s0cross","E0B5"],["noteheads-s1cross","E0B6"],["noteheads-s2cross","E0B7"],["noteheads-s2xcircle","E0B8"],["noteheads-s0do","E0B9"],["noteheads-d1do","E0BA"],["noteheads-u1do","E0BB"],["noteheads-d2do","E0BC"],["noteheads-u2do","E0BD"],["noteheads-s0doThin","E0BE"],["noteheads-d1doThin","E0BF"],["noteheads-u1doThin","E0C0"],["noteheads-d2doThin","E0C1"],["noteheads-u2doThin","E0C2"],["noteheads-s0re","E0C3"],["noteheads-u1re","E0C4"],["noteheads-d1re","E0C5"],["noteheads-u2re","E0C6"],["noteheads-d2re","E0C7"],["noteheads-s0reThin","E0C8"],["noteheads-u1reThin","E0C9"],["noteheads-d1reThin","E0CA"],["noteheads-u2reThin","E0CB"],["noteheads-d2reThin","E0CC"],["noteheads-s0mi","E0CD"],["noteheads-s1mi","E0CE"],["noteheads-s2mi","E0CF"],["noteheads-s0miMirror","E0D0"],["noteheads-s1miMirror","E0D1"],["noteheads-s2miMirror","E0D2"],["noteheads-s0miThin","E0D3"],["noteheads-s1miThin","E0D4"],["noteheads-s2miThin","E0D5"],["noteheads-u0fa","E0D6"],["noteheads-d0fa","E0D7"],["noteheads-u1fa","E0D8"],["noteheads-d1fa","E0D9"],["noteheads-u2fa","E0DA"],["noteheads-d2fa","E0DB"],["noteheads-u0faThin","E0DC"],["noteheads-d0faThin","E0DD"],["noteheads-u1faThin","E0DE"],["noteheads-d1faThin","E0DF"],["noteheads-u2faThin","E0E0"],["noteheads-d2faThin","E0E1"],["noteheads-s0sol","E0E2"],["noteheads-s1sol","E0E3"],["noteheads-s2sol","E0E4"],["noteheads-s0la","E0E5"],["noteheads-s1la","E0E6"],["noteheads-s2la","E0E7"],["noteheads-s0laThin","E0E8"],["noteheads-s1laThin","E0E9"],["noteheads-s2laThin","E0EA"],["noteheads-s0ti","E0EB"],["noteheads-u1ti","E0EC"],["noteheads-d1ti","E0ED"],["noteheads-u2ti","E0EE"],["noteheads-d2ti","E0EF"],["noteheads-s0tiThin","E0F0"],["noteheads-u1tiThin","E0F1"],["noteheads-d1tiThin","E0F2"],["noteheads-u2tiThin","E0F3"],["noteheads-d2tiThin","E0F4"],["noteheads-u0doFunk","E0F5"],["noteheads-d0doFunk","E0F6"],["noteheads-u1doFunk","E0F7"],["noteheads-d1doFunk","E0F8"],["noteheads-u2doFunk","E0F9"],["noteheads-d2doFunk","E0FA"],["noteheads-u0reFunk","E0FB"],["noteheads-d0reFunk","E0FC"],["noteheads-u1reFunk","E0FD"],["noteheads-d1reFunk","E0FE"],["noteheads-u2reFunk","E0FF"],["noteheads-d2reFunk","E100"],["noteheads-u0miFunk","E101"],["noteheads-d0miFunk","E102"],["noteheads-u1miFunk","E103"],["noteheads-d1miFunk","E104"],["noteheads-s2miFunk","E105"],["noteheads-u0faFunk","E106"],["noteheads-d0faFunk","E107"],["noteheads-u1faFunk","E108"],["noteheads-d1faFunk","E109"],["noteheads-u2faFunk","E10A"],["noteheads-d2faFunk","E10B"],["noteheads-s0solFunk","E10C"],["noteheads-s1solFunk","E10D"],["noteheads-s2solFunk","E10E"],["noteheads-s0laFunk","E10F"],["noteheads-s1laFunk","E110"],["noteheads-s2laFunk","E111"],["noteheads-u0tiFunk","E112"],["noteheads-d0tiFunk","E113"],["noteheads-u1tiFunk","E114"],["noteheads-d1tiFunk","E115"],["noteheads-u2tiFunk","E116"],["noteheads-d2tiFunk","E117"],["noteheads-s0doWalker","E118"],["noteheads-u1doWalker","E119"],["noteheads-d1doWalker","E11A"],["noteheads-u2doWalker","E11B"],["noteheads-d2doWalker","E11C"],["noteheads-s0reWalker","E11D"],["noteheads-u1reWalker","E11E"],["noteheads-d1reWalker","E11F"],["noteheads-u2reWalker","E120"],["noteheads-d2reWalker","E121"],["noteheads-s0miWalker","E122"],["noteheads-s1miWalker","E123"],["noteheads-s2miWalker","E124"],["noteheads-s0faWalker","E125"],["noteheads-u1faWalker","E126"],["noteheads-d1faWalker","E127"],["noteheads-u2faWalker","E128"],["noteheads-d2faWalker","E129"],["noteheads-s0laWalker","E12A"],["noteheads-s1laWalker","E12B"],["noteheads-s2laWalker","E12C"],["noteheads-s0tiWalker","E12D"],["noteheads-u1tiWalker","E12E"],["noteheads-d1tiWalker","E12F"],["noteheads-u2tiWalker","E130"],["noteheads-d2tiWalker","E131"],["noteheads-uM3neomensural","E1D6"],["noteheads-dM3neomensural","E1D7"],["noteheads-uM2neomensural","E1D8"],["noteheads-dM2neomensural","E1D9"],["noteheads-sM1neomensural","E1DA"],["noteheads-urM3neomensural","E1DB"],["noteheads-drM3neomensural","E1DC"],["noteheads-urM2neomensural","E1DD"],["noteheads-drM2neomensural","E1DE"],["noteheads-srM1neomensural","E1DF"],["noteheads-s0neomensural","E1E0"],["noteheads-s1neomensural","E1E1"],["noteheads-s2neomensural","E1E2"],["noteheads-s0harmonic","E1E3"],["noteheads-s2harmonic","E1E4"],["noteheads-uM3mensural","E1E5"],["noteheads-dM3mensural","E1E6"],["noteheads-sM3ligmensural","E1E7"],["noteheads-uM2mensural","E1E8"],["noteheads-dM2mensural","E1E9"],["noteheads-sM2ligmensural","E1EA"],["noteheads-sM1mensural","E1EB"],["noteheads-urM3mensural","E1EC"],["noteheads-drM3mensural","E1ED"],["noteheads-srM3ligmensural","E1EE"],["noteheads-urM2mensural","E1EF"],["noteheads-drM2mensural","E1F0"],["noteheads-srM2ligmensural","E1F1"],["noteheads-srM1mensural","E1F2"],["noteheads-uM3semimensural","E1F3"],["noteheads-dM3semimensural","E1F4"],["noteheads-sM3semiligmensural","E1F5"],["noteheads-uM2semimensural","E1F6"],["noteheads-dM2semimensural","E1F7"],["noteheads-sM2semiligmensural","E1F8"],["noteheads-sM1semimensural","E1F9"],["noteheads-urM3semimensural","E1FA"],["noteheads-drM3semimensural","E1FB"],["noteheads-srM3semiligmensural","E1FC"],["noteheads-urM2semimensural","E1FD"],["noteheads-drM2semimensural","E1FE"],["noteheads-srM2semiligmensural","E1FF"],["noteheads-srM1semimensural","E200"],["noteheads-uM3blackmensural","E201"],["noteheads-dM3blackmensural","E202"],["noteheads-sM3blackligmensural","E203"],["noteheads-uM2blackmensural","E204"],["noteheads-dM2blackmensural","E205"],["noteheads-sM2blackligmensural","E206"],["noteheads-sM1blackmensural","E207"],["noteheads-s0mensural","E208"],["noteheads-s1mensural","E209"],["noteheads-s2mensural","E20A"],["noteheads-s0blackmensural","E20B"],["noteheads-s0petrucci","E20C"],["noteheads-s1petrucci","E20D"],["noteheads-s2petrucci","E20E"],["noteheads-s0blackpetrucci","E20F"],["noteheads-s1blackpetrucci","E210"],["noteheads-s2blackpetrucci","E211"],["noteheads-svaticana-punctum","E212"],["noteheads-svaticana-punctum-cavum","E213"],["noteheads-svaticana-linea-punctum","E214"],["noteheads-svaticana-linea-punctum-cavum","E215"],["noteheads-svaticana-inclinatum","E216"],["noteheads-svaticana-lpes","E217"],["noteheads-svaticana-vlpes","E218"],["noteheads-svaticana-upes","E219"],["noteheads-svaticana-vupes","E21A"],["noteheads-svaticana-plica","E21B"],["noteheads-svaticana-vplica","E21C"],["noteheads-svaticana-epiphonus","E21D"],["noteheads-svaticana-vepiphonus","E21E"],["noteheads-svaticana-reverse-plica","E21F"],["noteheads-svaticana-reverse-vplica","E220"],["noteheads-svaticana-inner-cephalicus","E221"],["noteheads-svaticana-cephalicus","E222"],["noteheads-svaticana-quilisma","E223"],["noteheads-ssolesmes-incl-parvum","E224"],["noteheads-ssolesmes-auct-asc","E225"],["noteheads-ssolesmes-auct-desc","E226"],["noteheads-ssolesmes-incl-auctum","E227"],["noteheads-ssolesmes-stropha","E228"],["noteheads-ssolesmes-stropha-aucta","E229"],["noteheads-ssolesmes-oriscus","E22A"],["noteheads-smedicaea-inclinatum","E22B"],["noteheads-smedicaea-punctum","E22C"],["noteheads-smedicaea-rvirga","E22D"],["noteheads-smedicaea-virga","E22E"],["noteheads-shufnagel-punctum","E22F"],["noteheads-shufnagel-virga","E230"],["noteheads-shufnagel-lpes","E231"],["noteheads-sM2kievan","E232"],["noteheads-sM1kievan","E233"],["noteheads-s0kievan","E234"],["noteheads-d2kievan","E235"],["noteheads-u2kievan","E236"],["noteheads-s1kievan","E237"],["noteheads-sr1kievan","E238"],["noteheads-d3kievan","E239"],["noteheads-u3kievan","E23A"]],flags:[["flags-u3","E132"],["flags-u4","E133"],["flags-u5","E134"],["flags-u6","E135"],["flags-u7","E136"],["flags-u8","E137"],["flags-u9","E138"],["flags-u10","E139"],["flags-d3","E13A"],["flags-d4","E13B"],["flags-d5","E13C"],["flags-d6","E13D"],["flags-d7","E13E"],["flags-d8","E13F"],["flags-d9","E140"],["flags-d10","E141"],["flags-ugrace","E142"],["flags-dgrace","E143"],["flags-mensuralu03","E19C"],["flags-mensuralu13","E19D"],["flags-mensuralu23","E19E"],["flags-mensurald03","E19F"],["flags-mensurald13","E1A0"],["flags-mensurald23","E1A1"],["flags-mensuralu04","E1A2"],["flags-mensuralu14","E1A3"],["flags-mensuralu24","E1A4"],["flags-mensurald04","E1A5"],["flags-mensurald14","E1A6"],["flags-mensurald24","E1A7"],["flags-mensuralu05","E1A8"],["flags-mensuralu15","E1A9"],["flags-mensuralu25","E1AA"],["flags-mensurald05","E1AB"],["flags-mensurald15","E1AC"],["flags-mensurald25","E1AD"],["flags-mensuralu06","E1AE"],["flags-mensuralu16","E1AF"],["flags-mensuralu26","E1B0"],["flags-mensurald06","E1B1"],["flags-mensurald16","E1B2"],["flags-mensurald26","E1B3"]],custodes:[["custodes-hufnagel-u0","E17C"],["custodes-hufnagel-u1","E17D"],["custodes-hufnagel-u2","E17E"],["custodes-hufnagel-d0","E17F"],["custodes-hufnagel-d1","E180"],["custodes-hufnagel-d2","E181"],["custodes-medicaea-u0","E182"],["custodes-medicaea-u1","E183"],["custodes-medicaea-u2","E184"],["custodes-medicaea-d0","E185"],["custodes-medicaea-d1","E186"],["custodes-medicaea-d2","E187"],["custodes-vaticana-u0","E188"],["custodes-vaticana-u1","E189"],["custodes-vaticana-u2","E18A"],["custodes-vaticana-d0","E18B"],["custodes-vaticana-d1","E18C"],["custodes-vaticana-d2","E18D"],["custodes-mensural-u0","E18E"],["custodes-mensural-u1","E18F"],["custodes-mensural-u2","E190"],["custodes-mensural-d0","E191"],["custodes-mensural-d1","E192"],["custodes-mensural-d2","E193"]],dots:[["dots-dotvaticana","E1D4"],["dots-dotkievan","E1D5"]]},i={rests:"Rests",accidentals:"Accidentals",arrowheads:"Arrowheads",dot:"Dot",scripts:"Scripts & Articulations",clefs:"Clefs",timesig:"Time Signatures",pedal:"Pedal",brackettips:"Bracket Tips",accordion:"Accordion",ties:"Ties",noteheads:"Noteheads",flags:"Flags",custodes:"Custodes",dots:"Dots"};function f(){const[o,u]=d.useState(!1),[E,h]=d.useState(""),[r,m]=d.useState(40);d.useEffect(()=>{document.fonts.ready.then(()=>{u(document.fonts.check("40px Emmentaler-26"))})},[]);const c=Object.keys(l);return e.jsxs("div",{className:"font-test-page",children:[e.jsxs("div",{className:"font-test-header",children:[e.jsx("h1",{children:"Emmentaler-26 Font Glyphs"}),e.jsxs("div",{className:"font-test-status",children:["Font status: ",e.jsx("span",{className:o?"loaded":"not-loaded",children:o?"Loaded":"Not loaded"}),e.jsxs("span",{className:"glyph-count",children:[Object.values(l).reduce((s,n)=>s+n.length,0)," glyphs"]})]}),e.jsxs("div",{className:"font-test-controls",children:[e.jsx("input",{type:"text",placeholder:"Filter glyphs...",value:E,onChange:s=>h(s.target.value)}),e.jsxs("label",{children:["Size:",e.jsx("input",{type:"range",min:20,max:80,value:r,onChange:s=>m(Number(s.target.value))}),r,"px"]})]}),e.jsx("div",{className:"font-test-toc",children:c.map(s=>e.jsxs("a",{href:`#cat-${s}`,children:[i[s]||s," (",l[s].length,")"]},s))})]}),c.map(s=>{const n=l[s].filter(([a,t])=>!E||a.toLowerCase().includes(E.toLowerCase())||t.toLowerCase().includes(E.toLowerCase()));return n.length===0?null:e.jsxs("div",{id:`cat-${s}`,className:"font-test-category",children:[e.jsxs("h2",{children:[i[s]||s," ",e.jsxs("span",{children:["(",n.length,")"]})]}),e.jsx("div",{className:"glyph-grid",children:n.map(([a,t])=>e.jsxs("div",{className:"glyph-cell",title:a,children:[e.jsx("div",{className:"glyph-render",style:{fontSize:r},children:e.jsx("i",{className:`emmentaler glyph-${a}`})}),e.jsx("div",{className:"glyph-unicode",style:{fontSize:r},children:String.fromCodePoint(parseInt(t,16))}),e.jsx("div",{className:"glyph-name",children:a}),e.jsxs("div",{className:"glyph-code",children:["U+",t]})]},`${a}-${t}`))})]},s)})]})}export{f as default};
|
dist/assets/{gauge-8e0347a7.js → gauge-890a6eda.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as e,j as r}from"./umi-
|
|
|
|
| 1 |
+
import{r as e,j as r}from"./umi-e07d95da.js";import{G as d}from"./gaugeRendererGL-9dc55e03.js";const a=[["source1.png","gauge1.png"],["source2.png","gauge2.png"]];function l(){const n=e.useRef(),t=e.useRef(),s=e.useRef(),[c,o]=e.useState(),[u,g]=e.useState(0);return e.useEffect(()=>{o(new d({source:n.current,gauge:t.current,canvas:s.current}))},[n.current,t.current,s.current]),r.jsxs("div",{children:[r.jsx("img",{ref:n,src:`/test.local/${a[u][0]}`}),r.jsx("img",{ref:t,src:`/test.local/${a[u][1]}`}),r.jsx("canvas",{ref:s}),r.jsx("button",{onClick:()=>g((u+1)%a.length),children:"change"}),r.jsx("button",{onClick:()=>{c.updateMaterial({width:t.current.width}),c.updateGeometry(),c.render()},children:"render"})]})}export{l as default};
|
dist/assets/{index-06d8da5b.js → index-333c2577.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import{g as getDefaultExportFromCjs,c as commonjsGlobal,l as commonjsRequire}from"./umi-
|
| 2 |
* @license
|
| 3 |
* Lodash <https://lodash.com/>
|
| 4 |
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
|
|
| 1 |
+
import{g as getDefaultExportFromCjs,c as commonjsGlobal,l as commonjsRequire}from"./umi-e07d95da.js";import{a_ as _assignValue,bQ as _castPath,aF as _isIndex,aU as isObject_1,aY as _toKey,aV as _baseGet,aW as hasIn_1,aw as _Symbol,aE as isArguments_1,az as isArray_1,ay as _arrayPush,b0 as _overRest,b1 as _setToString,Z as require$$5}from"./_setToString-5e7d8f22.js";var assignValue=_assignValue,castPath$1=_castPath,isIndex=_isIndex,isObject=isObject_1,toKey=_toKey;function baseSet$1(s,n,i,r){if(!isObject(s))return s;n=castPath$1(n,s);for(var a=-1,c=n.length,l=c-1,h=s;h!=null&&++a<c;){var u=toKey(n[a]),p=i;if(u==="__proto__"||u==="constructor"||u==="prototype")return s;if(a!=l){var f=h[u];p=r?r(f,u,h):void 0,p===void 0&&(p=isObject(f)?f:isIndex(n[a+1])?[]:{})}assignValue(h,u,p),h=h[u]}return s}var _baseSet=baseSet$1,baseGet=_baseGet,baseSet=_baseSet,castPath=_castPath;function basePickBy$1(s,n,i){for(var r=-1,a=n.length,c={};++r<a;){var l=n[r],h=baseGet(s,l);i(h,l)&&baseSet(c,castPath(l,s),h)}return c}var _basePickBy=basePickBy$1,basePickBy=_basePickBy,hasIn=hasIn_1;function basePick$1(s,n){return basePickBy(s,n,function(i,r){return hasIn(s,r)})}var _basePick=basePick$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray=isArray_1,spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:void 0;function isFlattenable$1(s){return isArray(s)||isArguments(s)||!!(spreadableSymbol&&s&&s[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$1(s,n,i,r,a){var c=-1,l=s.length;for(i||(i=isFlattenable),a||(a=[]);++c<l;){var h=s[c];n>0&&i(h)?n>1?baseFlatten$1(h,n-1,i,r,a):arrayPush(a,h):r||(a[a.length]=h)}return a}var _baseFlatten=baseFlatten$1,baseFlatten=_baseFlatten;function flatten$1(s){var n=s==null?0:s.length;return n?baseFlatten(s,1):[]}var flatten_1=flatten$1,flatten=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$1(s){return setToString(overRest(s,void 0,flatten),s+"")}var _flatRest=flatRest$1,basePick=_basePick,flatRest=_flatRest,pick=flatRest(function(s,n){return s==null?{}:basePick(s,n)}),pick_1=pick;const pick$1=getDefaultExportFromCjs(pick_1);var musicWidgetsBrowser_umd={exports:{}};(function(s,n){(function(r,a){s.exports=a()})(typeof self<"u"?self:commonjsGlobal,function(){return function(i){var r={};function a(c){if(r[c])return r[c].exports;var l=r[c]={i:c,l:!1,exports:{}};return i[c].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=i,a.c=r,a.d=function(c,l,h){a.o(c,l)||Object.defineProperty(c,l,{enumerable:!0,get:h})},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},a.t=function(c,l){if(l&1&&(c=a(c)),l&8||l&4&&typeof c=="object"&&c&&c.__esModule)return c;var h=Object.create(null);if(a.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:c}),l&2&&typeof c!="string")for(var u in c)a.d(h,u,function(p){return c[p]}.bind(null,u));return h},a.n=function(c){var l=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(l,"a",l),l},a.o=function(c,l){return Object.prototype.hasOwnProperty.call(c,l)},a.p="",a(a.s="fae3")}({"0241":function(i,r,a){const c=a("b37a"),l=a("33e9"),u=800*.24,p=m=>Math.tanh(m/u),f=function(m,T,{softIndexFactor:v=1}={}){T=Number(T);const M=m[T];if(T>0){const O=m[T-1];console.assert(M.start!=null,"note.start is null",M),console.assert(O.start!=null,"lastNote.start is null",O),M.deltaSi=p((M.start-O.start)*v),M.softIndex=O.softIndex+M.deltaSi,console.assert(!Number.isNaN(M.deltaSi),"note.deltaSi is NaN.",M.start,O.start)}else M.softIndex=0,M.deltaSi=0},g=function(m,T,v=c.zero()){m.matches=[];const M=T.pitchMap[m.pitch];if(M)for(const O of M){const k=new c(m,O);v&&k.evaluatePrev(v),m.matches.push(k)}},y=function(m,{softIndexFactor:T=1}={}){for(let v=0;v<m.notes.length;++v)f(m.notes,v,{softIndexFactor:T})},x=async function(m,T,v){const M=new l(m,T);M.resetCursor(-1);for(let O=0;O<T.notes.length;++O)if(M.step(O),await(v&&v(O,M))===Symbol.for("end")){console.log("Navigation interrupted.");return}return M};i.exports={normalizeInterval:p,makeNoteSoftIndex:f,makeMatchNodes:g,genNotationContext:y,runNavigation:x,Navigator:l,Node:c}},"0a40":function(i,r,a){const{Notation:c}=a("ee4f"),l=()=>new Promise(u=>requestAnimationFrame(u));class h{constructor(p,{cacheSpan:f=600,onMidi:g,onPlayFinish:y,onTurnCursor:x}={}){this.cacheSpan=f,this.onMidi=g,this.onPlayFinish=y,this.onTurnCursor=x;let m;p.notes&&Number.isFinite(p.endTime)?m=p:m=c.parseMidi(p),this.notation=m,this.events=m.events,this.isPlaying=!1,this.progressTime=0,this.startTime=performance.now(),this.duration=m.endTime,this.cursorTurnDelta=0,console.assert(m.tempos&&m.tempos.length,"[MidiPlayer] invalid notation, tempos is empty.")}dispose(){this.isPlaying=!1,this.progressTime=0}get progressTicks(){return this.notation.timeToTicks(this.progressTime)}set progressTicks(p){this.progressTime=this.notation.ticksToTime(p),this.onTurnCursor&&this.onTurnCursor(this.progressTime)}async play({nextFrame:p=l}={}){this.progressTime>=this.duration&&(this.progressTime=0);let f=performance.now();this.startTime=f-this.progressTime,this.isPlaying=!0;let g=this.events.findIndex(y=>y.time>=f-this.startTime);for(;this.isPlaying;){for(;g<this.events.length;++g){const y=this.events[g];if(!y||y.time>this.progressTime+this.cacheSpan)break;y.data.type==="channel"&&this.startTime+y.time>=f&&this.onMidi&&this.onMidi(y.data,this.startTime+y.time)}if(await p(),!this.isPlaying)break;if(this.cursorTurnDelta!==0){const y=this.cursorTurnDelta<0;if(this.startTime-=this.cursorTurnDelta,this.cursorTurnDelta=0,y)for(;g>0;--g){const x=this.events[g].time;if(this.startTime+x<f)break}}f=performance.now(),this.progressTime=f-this.startTime,this.progressTime>this.duration&&(this.isPlaying=!1,this.onPlayFinish&&this.onPlayFinish())}}pause(){this.isPlaying=!1}turnCursor(p){this.isPlaying?this.cursorTurnDelta+=p-this.progressTime:this.progressTime=p,this.onTurnCursor&&this.onTurnCursor(p)}}i.exports=h},"2ef0":function(i,r,a){(function(c,l){var h;/**
|
| 2 |
* @license
|
| 3 |
* Lodash <https://lodash.com/>
|
| 4 |
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
dist/assets/{index-47477506.js → index-3736e53c.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import{r as W,j as c,a as We}from"./umi-
|
| 2 |
`+U.showPosition()+`
|
| 3 |
Expecting `+O.join(", ")+", got '"+(this.terminals_[z]||z)+"'":L="Parse error on line "+(P+1)+": Unexpected "+(z==oe?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(L,{text:U.match,token:this.terminals_[z]||z,line:U.yylineno,loc:ce,expected:O})}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+z);switch(J[0]){case 1:g.push(z),y.push(U.yytext),j.push(U.yylloc),g.push(J[1]),z=null,pe=U.yyleng,ae=U.yytext,P=U.yylineno,ce=U.yylloc;break;case 2:if(C=this.productions_[J[1]][1],o.$=y[y.length-C],o._$={first_line:j[j.length-(C||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(C||1)].first_column,last_column:j[j.length-1].last_column},ue&&(o._$.range=[j[j.length-(C||1)].range[0],j[j.length-1].range[1]]),re=this.performAction.apply(o,[ae,pe,P,q.yy,J[1],y,j].concat(ke)),typeof re<"u")return re;C&&(g=g.slice(0,-1*C*2),y=y.slice(0,-1*C),j=j.slice(0,-1*C)),g.push(this.productions_[J[1]][0]),y.push(o.$),j.push(o._$),w=x[g[g.length-2]][g[g.length-1]],g.push(w);break;case 3:return!0}}return!0}};const m=S=>{const u=S.filter(y=>y!=="V"&&y.syllable!=="-");let p=0;for(let y of u)p+=y.ldiv,y.underline=p,p-=y.rdiv,y.grace&&(y.grace=m(y.grace)),y.postGrace&&(y.postGrace=m(y.postGrace)),delete y.ldiv,delete y.rdiv;let g=[];for(let y of u)y.ltuplet&&g.push(y),g.length>0&&!y.ltuplet&&!y.rtuplet&&g.push(y),y.rtuplet&&(g.push(y),g.forEach(j=>{const x=g.length;j.timeWarp={numerator:x-1,denominator:x}}),g=[]),delete y.ltuplet,delete y.rtuplet;return S},T=S=>{if(S.octaves=0,S.dots=0,S.ltuplet=0,S.rtuplet=0,S.decorators){for(let u=0;u<S.decorators.length;u++)switch(S.decorators[u]){case"'":S.octaves+=1;break;case",":S.octaves-=1;break;case".":S.dots+=1;break;case"[":S.ltuplet=1;break;case"]":S.rtuplet=1;break}delete S.decorators}return S.notations&&(S.notations=S.notations.map(u=>u.replace(/[^a-z]/g,""))),S};var R=function(){var S={EOF:1,parseError:function(p,g){if(this.yy.parser)this.yy.parser.parseError(p,g);else throw new Error(p)},setInput:function(u,p){return this.yy=p||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var p=u.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var p=u.length,g=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var j=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===y.length?this.yylloc.first_column:0)+y[y.length-g.length].length-g[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[j[0],j[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
| 4 |
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),p=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
|
|
| 1 |
+
import{r as W,j as c,a as We}from"./umi-e07d95da.js";import{f as Ge,q as ze,b as He,H as Je,R as Ye,e as we,L as Ke,E as Xe,S as ye,c as qe,h as Qe,T as Se,P as Ze,Q as et,g as tt}from"./index-5014e2af.js";import{e as Be,l as st,t as nt,v as rt,B as it,C as at,y as ot,E as lt,S as ct,D as fe,F as ut,G as ht,H as mt,A as dt,s as pt}from"./index.less_used_.module-87602c0c.js";import{S as gt,u as yt,P as ft,a as bt,e as xt}from"./index-bcc6e795.js";import{F as se,M as vt,r as ie,W as kt,H as Ne,I as wt,J as St,m as he}from"./index-333c2577.js";import{S as _t}from"./scheduler-a7fa9c3c.js";import{c as je,u as jt,r as be,n as Ee,P as Mt,m as _e,f as Nt,U as Et,S as Ie,T as Pe,N as It,Y as Pt}from"./_setToString-5e7d8f22.js";import{B as ee}from"./button-3ac51ee9.js";import{S as Ct}from"./index-c03929a6.js";import{u as Ce}from"./useAsync-139a6ea8.js";import"./jszip.min-73ee4b51.js";var ve={},xe=function(){var s=function(S,u,p,g){for(p=p||{},g=S.length;g--;p[S[g]]=u);return p},e=[19,26,29],r=[2,15],t=[1,12],i=[1,10],a=[4,13,19,25,26,29],n=[1,15],l=[4,12,13,19,25,26,29],f=[1,21],k=[1,23],d=[1,22],b=[19,25,26,29],v=[4,12,13,15,19,20,26,29],N=[1,31],F=[1,32],$=[1,33],E=[4,12,13,15,19,20,25,26,27,28,29],H=[25,26,29],V=[15,19,25,26,29],I={trace:function(){},yy:{},symbols_:{error:2,start_symbol:3,EOF:4,measure:5,music_events:6,music_event:7,event:8,music_breath:9,note:10,grace:11,"|":12,"{":13,note_list:14,"}":15,left_divisions:16,pitch:17,right_divisions:18,"<":19,">":20,syllable:21,accidental:22,decorators:23,notations:24,V:25,ACC:26,DECORATOR:27,NOTATION:28,N:29,$accept:0,$end:1},terminals_:{2:"error",4:"EOF",12:"|",13:"{",15:"}",19:"<",20:">",25:"V",26:"ACC",27:"DECORATOR",28:"NOTATION",29:"N"},productions_:[0,[3,1],[3,2],[5,1],[6,1],[6,2],[7,1],[7,1],[8,1],[8,3],[8,3],[11,3],[14,1],[14,2],[10,3],[16,0],[16,2],[18,0],[18,2],[17,1],[17,2],[17,2],[17,2],[17,2],[17,2],[22,1],[22,2],[23,1],[23,2],[24,1],[24,2],[21,1],[9,1]],performAction:function(u,p,g,y,j,x,ae){var P=x.length-1;switch(j){case 1:return null;case 2:return x[P-1];case 3:this.$=m(x[P]);break;case 4:case 12:case 27:case 29:this.$=[x[P]];break;case 5:case 13:case 28:case 30:this.$=[...x[P-1],x[P]];break;case 9:this.$={...x[P],grace:x[P-2]};break;case 10:this.$={...x[P-2],postGrace:x[P]};break;case 11:case 24:this.$=x[P-1];break;case 14:this.$={ldiv:x[P-2],...T(x[P-1]),rdiv:x[P]};break;case 15:case 17:this.$=0;break;case 16:case 18:this.$=x[P-1]+1;break;case 19:this.$={syllable:x[P]};break;case 20:this.$={acc:x[P-1],...x[P]};break;case 21:this.$={...x[P-1],decorators:[...x[P-1].decorators||[],...x[P]]};break;case 22:this.$={...x[P-1],notations:[...x[P-1].notations||[],...x[P]]};break;case 23:case 25:this.$=x[P];break;case 26:this.$=x[P-1]+x[P];break}},table:[s(e,r,{3:1,5:3,6:4,7:5,8:6,9:7,10:8,11:9,16:11,4:[1,2],13:t,25:i}),{1:[3]},{1:[2,1]},{4:[1,13]},s(e,r,{8:6,9:7,10:8,11:9,16:11,7:14,4:[2,3],13:t,25:i}),s(a,[2,4]),s(a,[2,6],{12:n}),s(a,[2,7]),s(l,[2,8]),{12:[1,16]},s(a,[2,32]),{17:17,19:[1,18],21:19,22:20,25:f,26:k,29:d},s(b,r,{16:11,14:24,10:25}),{1:[2,2]},s(a,[2,5]),{11:26,13:t},s(b,r,{10:8,11:9,16:11,8:27,13:t}),s(v,[2,17],{18:28,23:29,24:30,25:N,27:F,28:$}),s(b,[2,16]),s(E,[2,19]),{17:34,21:19,22:20,25:f,26:[1,35],29:d},{17:36,21:19,22:20,25:f,26:k,29:d},s(E,[2,31]),s(H,[2,25]),s(b,r,{16:11,10:38,15:[1,37]}),s(V,[2,12]),s(l,[2,10]),s(a,[2,9],{12:n}),s([4,12,13,15,19,25,26,29],[2,14],{20:[1,39]}),s([4,12,13,15,19,20,25,26,28,29],[2,21],{27:[1,40]}),s([4,12,13,15,19,20,25,26,27,29],[2,22],{28:[1,41]}),s(E,[2,24]),s(E,[2,27]),s(E,[2,29]),s(v,[2,20],{23:29,24:30,25:N,27:F,28:$}),s(H,[2,26]),s(v,[2,23],{23:29,24:30,25:N,27:F,28:$}),s(l,[2,11]),s(V,[2,13]),s([4,12,13,15,19,20,25,26,29],[2,18]),s(E,[2,28]),s(E,[2,30])],defaultActions:{2:[2,1],13:[2,2]},parseError:function(u,p){if(p.recoverable)this.trace(u);else{var g=new Error(u);throw g.hash=p,g}},parse:function(u){var p=this,g=[0],y=[null],j=[],x=this.table,ae="",P=0,pe=0,X=2,oe=1,ke=j.slice.call(arguments,1),U=Object.create(this.lexer),q={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(q.yy[le]=this.yy[le]);U.setInput(u,q.yy),q.yy.lexer=U,q.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var ce=U.yylloc;j.push(ce);var ue=U.options&&U.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ge=function(){var M;return M=U.lex()||oe,typeof M!="number"&&(M=p.symbols_[M]||M),M},z,Q,J,re,o={},_,C,w,O;;){if(Q=g[g.length-1],this.defaultActions[Q]?J=this.defaultActions[Q]:((z===null||typeof z>"u")&&(z=ge()),J=x[Q]&&x[Q][z]),typeof J>"u"||!J.length||!J[0]){var L="";O=[];for(_ in x[Q])this.terminals_[_]&&_>X&&O.push("'"+this.terminals_[_]+"'");U.showPosition?L="Parse error on line "+(P+1)+`:
|
| 2 |
`+U.showPosition()+`
|
| 3 |
Expecting `+O.join(", ")+", got '"+(this.terminals_[z]||z)+"'":L="Parse error on line "+(P+1)+": Unexpected "+(z==oe?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(L,{text:U.match,token:this.terminals_[z]||z,line:U.yylineno,loc:ce,expected:O})}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+z);switch(J[0]){case 1:g.push(z),y.push(U.yytext),j.push(U.yylloc),g.push(J[1]),z=null,pe=U.yyleng,ae=U.yytext,P=U.yylineno,ce=U.yylloc;break;case 2:if(C=this.productions_[J[1]][1],o.$=y[y.length-C],o._$={first_line:j[j.length-(C||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(C||1)].first_column,last_column:j[j.length-1].last_column},ue&&(o._$.range=[j[j.length-(C||1)].range[0],j[j.length-1].range[1]]),re=this.performAction.apply(o,[ae,pe,P,q.yy,J[1],y,j].concat(ke)),typeof re<"u")return re;C&&(g=g.slice(0,-1*C*2),y=y.slice(0,-1*C),j=j.slice(0,-1*C)),g.push(this.productions_[J[1]][0]),y.push(o.$),j.push(o._$),w=x[g[g.length-2]][g[g.length-1]],g.push(w);break;case 3:return!0}}return!0}};const m=S=>{const u=S.filter(y=>y!=="V"&&y.syllable!=="-");let p=0;for(let y of u)p+=y.ldiv,y.underline=p,p-=y.rdiv,y.grace&&(y.grace=m(y.grace)),y.postGrace&&(y.postGrace=m(y.postGrace)),delete y.ldiv,delete y.rdiv;let g=[];for(let y of u)y.ltuplet&&g.push(y),g.length>0&&!y.ltuplet&&!y.rtuplet&&g.push(y),y.rtuplet&&(g.push(y),g.forEach(j=>{const x=g.length;j.timeWarp={numerator:x-1,denominator:x}}),g=[]),delete y.ltuplet,delete y.rtuplet;return S},T=S=>{if(S.octaves=0,S.dots=0,S.ltuplet=0,S.rtuplet=0,S.decorators){for(let u=0;u<S.decorators.length;u++)switch(S.decorators[u]){case"'":S.octaves+=1;break;case",":S.octaves-=1;break;case".":S.dots+=1;break;case"[":S.ltuplet=1;break;case"]":S.rtuplet=1;break}delete S.decorators}return S.notations&&(S.notations=S.notations.map(u=>u.replace(/[^a-z]/g,""))),S};var R=function(){var S={EOF:1,parseError:function(p,g){if(this.yy.parser)this.yy.parser.parseError(p,g);else throw new Error(p)},setInput:function(u,p){return this.yy=p||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var p=u.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var p=u.length,g=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var j=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===y.length?this.yylloc.first_column:0)+y[y.length-g.length].length-g[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[j[0],j[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
| 4 |
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),p=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
dist/assets/{index-2293ea9c.js → index-5014e2af.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import{r as l,o as ss,k as us,u as cs,q as fs,t as Ja,R as X,v as ds,x as vs,y as ms,z as gs,_ as T,e as Gn,d as pa,A as ps,j as xr,B as hs,C as ys,g as Cs}from"./umi-
|
| 2 |
* React Router DOM v6.3.0
|
| 3 |
*
|
| 4 |
* Copyright (c) Remix Software Inc.
|
|
|
|
| 1 |
+
import{r as l,o as ss,k as us,u as cs,q as fs,t as Ja,R as X,v as ds,x as vs,y as ms,z as gs,_ as T,e as Gn,d as pa,A as ps,j as xr,B as hs,C as ys,g as Cs}from"./umi-e07d95da.js";import{A as rt,g as V,a1 as xt,ac as En,a0 as at,$ as it,aq as ha,bE as bs,ae as ya,an as Wn,W as ve,a8 as Nt,bC as Yn,a as H,ad as hn,a5 as me,c as G,w as ke,d as Yt,ab as Ye,bF as Ht,a7 as Sn,aQ as Xt,aR as Ke,b as S,a4 as Y,C as ge,ah as ir,_ as ee,bG as dn,aP as pt,aS as gt,o as ot,ak as wt,V as yn,bH as xs,e as Qe,aa as ws,a2 as Kt,a3 as Ca,bs as ba,ag as xa,bI as co,bJ as Lr,af as wa,aj as fo,X as Es,bK as vo,R as Ss,aN as Ps,bL as Os,bM as Rs,bx as mo,aO as Ns,bv as Ms,bw as _s,bN as Ts,al as go,ap as Fs}from"./_setToString-5e7d8f22.js";import{t as Pn,C as Is,u as Ea,B as Ct,N as Xn,c as Sa}from"./button-3ac51ee9.js";/**
|
| 2 |
* React Router DOM v6.3.0
|
| 3 |
*
|
| 4 |
* Copyright (c) Remix Software Inc.
|
dist/assets/{index-10340e55.js → index-5da3586d.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as x,j as e}from"./umi-a7f55986.js";const h=({layout:n,positions:t,nameDict:c={},...o})=>{const l=x.useMemo(()=>n.groups.filter(s=>t[s.range[0]]&&t[s.range[1]]).map(s=>{const d=t[s.range[0]],r=t[s.range[1]];return{key:s.key,type:s.group.type,level:s.group.level||0,top:d.y-d.radius,bottom:r.y+r.radius,name:c[s.key]}}),[n,t,c]);return e.jsx("g",{...o,className:"staff-brackets",onClick:()=>{debugger},children:l.map(s=>e.jsxs("g",{className:"group",transform:`translate(${s.level*-1.2}, 0)`,children:[s.type===2&&e.jsxs("g",{className:"bracket",children:[e.jsx("rect",{x:"-1.2",y:s.top,width:"0.45",height:s.bottom-s.top}),e.jsx("g",{transform:`translate(-1.2, ${s.top-.21})`,children:e.jsx("path",{transform:"scale(0.0040, -0.0040)",d:"M0 -56v91c0 12 10 21 22 21h43c164 0 281 136 377 272c10 14 32 -1 22 -15c-103 -145 -222 -369 -399 -369h-65z"})}),e.jsx("g",{transform:`translate(-1.2, ${s.bottom+.21})`,children:e.jsx("path",{transform:"scale(0.0040, -0.0040)",d:"M0 56h65c177 0 296 -224 399 -369c10 -14 -12 -29 -22 -15c-96 136 -213 272 -377 272h-43c-12 0 -22 9 -22 21v91z"})})]}),s.type===3&&e.jsxs("g",{className:"square",children:[e.jsx("line",{x1:"-0.9",x2:"-0.9",y1:s.top,y2:s.bottom,strokeWidth:"0.1"}),e.jsx("line",{x1:"-0.9",x2:"0",y1:s.top,y2:s.top,strokeWidth:"0.1"}),e.jsx("line",{x1:"-0.9",x2:"0",y1:s.bottom,y2:s.bottom,strokeWidth:"0.1"})]}),s.type===1&&e.jsx("g",{className:"brace",transform:`translate(-0.2, ${(s.top+s.bottom)/2})`,children:e.jsx("path",{transform:`scale(0.0040, ${-.004*(s.bottom-s.top)/15.1825})`,d:"M-208 -1336c0 312 124 616 124 912c0 156 -36 300 -144 416c0 4 -4 4 -4 8s4 4 4 8c108 116 144 260 144 416c0 296 -124 600 -124 912c0 212 52 420 196 576c16 16 40 -8 24 -24c-108 -120 -144 -264 -144 -420c0 -292 116 -588 116 -896c0 -212 -48 -416 -188 -572c140 -156 188 -360 188 -572c0 -308 -116 -604 -116 -896c0 -156 36 -300 144 -420c16 -16 -8 -40 -24 -24c-144 156 -196 364 -196 576z"})}),s.name&&e.jsx("g",{className:"name",transform:`translate(-2, ${(s.top+s.bottom)/2+1})`,children:e.jsx("text",{fontSize:2,children:s.name})})]},s.key))})};const i=()=>e.jsxs("defs",{className:"score-token-defs",children:[e.jsx("g",{id:"score-token-def-clefs-G",className:"token",children:e.jsx("text",{x:"-1.3",children:""})}),e.jsx("g",{id:"score-token-def-clefs-F",className:"token",children:e.jsx("text",{x:"-1.06",children:""})}),e.jsx("g",{id:"score-token-def-clefs-C",className:"token",children:e.jsx("text",{x:"-1.06",children:""})}),e.jsx("g",{id:"score-token-def-timesig-C44",className:"token",children:e.jsx("text",{x:"-0.9",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-timesig-C22",className:"token",children:e.jsx("text",{x:"-0.9",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-timesig0",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"0"})}),e.jsx("g",{id:"score-token-def-timesig1",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"1"})}),e.jsx("g",{id:"score-token-def-timesig2",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"2"})}),e.jsx("g",{id:"score-token-def-timesig3",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"3"})}),e.jsx("g",{id:"score-token-def-timesig4",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"4"})}),e.jsx("g",{id:"score-token-def-timesig5",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"5"})}),e.jsx("g",{id:"score-token-def-timesig6",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"6"})}),e.jsx("g",{id:"score-token-def-timesig7",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"7"})}),e.jsx("g",{id:"score-token-def-timesig8",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"8"})}),e.jsx("g",{id:"score-token-def-timesig9",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"9"})}),e.jsx("g",{id:"score-token-def-octave-a",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"𝄶---"})}),e.jsx("g",{id:"score-token-def-octave-b",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"𝄷---"})}),e.jsx("g",{id:"score-token-def-octave-0",className:"token",children:e.jsx("text",{x:"-0.7",y:"0.6",className:"plain",children:"┐"})}),e.jsx("g",{id:"score-token-def-octave-8",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"8-----"})}),e.jsx("g",{id:"score-token-def-n0",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"0"})})}),e.jsx("g",{id:"score-token-def-n1",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"1"})})}),e.jsx("g",{id:"score-token-def-n2",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"2"})})}),e.jsx("g",{id:"score-token-def-n3",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"3"})})}),e.jsx("g",{id:"score-token-def-n4",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"4"})})}),e.jsx("g",{id:"score-token-def-n5",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"5"})})}),e.jsx("g",{id:"score-token-def-n6",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"6"})})}),e.jsx("g",{id:"score-token-def-n7",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"7"})})}),e.jsx("g",{id:"score-token-def-n8",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"8"})})}),e.jsx("g",{id:"score-token-def-n9",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"9"})})}),e.jsx("g",{id:"score-token-def-accidentals-sharp",className:"token",children:e.jsx("text",{x:"-0.55",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-doublesharp",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-natural",className:"token",children:e.jsx("text",{x:"-0.3",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-flat",className:"token",children:e.jsx("text",{x:"-0.3",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-flatflat",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsxs("g",{id:"score-token-def-key-sharp",className:"token",children:[e.jsx("text",{x:"-0.55",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsxs("g",{id:"score-token-def-key-natural",className:"token",children:[e.jsx("text",{x:"-0.3",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsxs("g",{id:"score-token-def-key-flat",className:"token",children:[e.jsx("text",{x:"-0.3",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsx("g",{id:"score-token-def-noteheads-s0",className:"token",children:e.jsx("text",{x:"-0.913",children:""})}),e.jsx("g",{id:"score-token-def-noteheads-s1",className:"token",children:e.jsx("text",{x:"-0.632",children:""})}),e.jsx("g",{id:"score-token-def-noteheads-s2",className:"token",children:e.jsx("text",{x:"-0.599",children:""})}),e.jsxs("g",{id:"score-token-def-noteheads-s1-u",className:"token",children:[e.jsx("text",{x:"-1.264",children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"-0.06",y2:"-3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s2-u",className:"token",children:[e.jsx("text",{x:"-1.198",children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"-0.06",y2:"-3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s1-d",className:"token",children:[e.jsx("text",{children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"0.16",y2:"3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s2-d",className:"token",children:[e.jsx("text",{children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"0.16",y2:"3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsx("g",{id:"score-token-def-rests-M1",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-0",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-0o",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-1o",className:"token",children:e.jsx("text",{x:"-0.75",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-rests-2",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-3",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-4",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-5",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-6",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-flags-u3",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u4",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u5",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u6",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u7",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u8",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-slur-begin",className:"token",children:e.jsx("path",{d:"M0 0C0.5 -0.5 1 -0.6 1.5 -0.6L1.5 -0.4C1 -0.4 0.5 -0.4 0 0z"})}),e.jsx("g",{id:"score-token-def-slur-end",className:"token",children:e.jsx("path",{d:"M0 0C-0.5 -0.5 -1 -0.6 -1.5 -0.6L-1.5 -0.4C-1 -0.4 -0.5 -0.4 0 0z"})}),e.jsxs("g",{id:"score-token-def-volta-left",className:"token",children:[e.jsx("text",{x:"-0.25",y:"-0.5",children:""}),e.jsx("text",{x:"-0.25",y:"0.5",children:""}),e.jsx("line",{x1:"-0.5",x2:"-0.5",y1:"-2",y2:"2"})]}),e.jsxs("g",{id:"score-token-def-volta-right",className:"token",children:[e.jsx("text",{x:"-0.25",y:"-0.5",children:""}),e.jsx("text",{x:"-0.25",y:"0.5",children:""}),e.jsx("line",{x1:"0.5",x2:"0.5",y1:"-2",y2:"2"})]}),e.jsxs("g",{id:"score-token-def-bar-terminal",className:"token",children:[e.jsx("rect",{x:"-0.064",y:"-2",width:"0.128",height:"4"}),e.jsx("rect",{x:"0.27",y:"-2",width:"0.4",height:"4"})]}),e.jsxs("g",{id:"score-token-def-bar-segment",className:"token",children:[e.jsx("rect",{x:"-0.359",y:"-2",width:"0.128",height:"4"}),e.jsx("rect",{x:"0.231",y:"-2",width:"0.128",height:"4"})]}),e.jsx("g",{id:"score-token-def-dot",className:"token",children:e.jsx("text",{children:""})}),e.jsxs("g",{id:"score-token-def-dotdot",className:"token",children:[e.jsx("text",{children:""}),e.jsx("text",{x:"0.8",children:""})]}),e.jsx("g",{id:"score-token-def-f",className:"token",children:e.jsx("text",{x:"-0.6",y:"0.5",children:"f"})}),e.jsx("g",{id:"score-token-def-m",className:"token",children:e.jsx("text",{x:"-0.9",y:"0.5",children:"m"})}),e.jsx("g",{id:"score-token-def-n",className:"token",children:e.jsx("text",{x:"-0.9",y:"0.5",children:"n"})}),e.jsx("g",{id:"score-token-def-p",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"p"})}),e.jsx("g",{id:"score-token-def-r",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"r"})}),e.jsx("g",{id:"score-token-def-s",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"s"})}),e.jsx("g",{id:"score-token-def-z",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"z"})}),e.jsx("g",{id:"score-token-def-scripts-ufermata",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-ushortfermata",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-sforzato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-staccato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-ustaccatissimo",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-turn",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-trill",className:"token",children:e.jsx("text",{y:"0.5",children:""})}),e.jsx("g",{id:"score-token-def-scripts-segno",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-coda",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-arpeggio",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:""})}),e.jsx("g",{id:"score-token-def-scripts-prall",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-mordent",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-umarcato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-tenuto",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-uportato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-pedal-star",className:"token",children:e.jsx("text",{x:"-0.78",y:"0.78",children:""})}),e.jsx("g",{id:"score-token-def-pedal-Ped",className:"token",children:e.jsx("text",{x:"-1.6",y:"0.7",children:""})}),e.jsx("g",{id:"score-token-def-BOS",className:"token",children:e.jsx("text",{x:"-3",y:"1.04",children:"▶"})}),e.jsx("g",{id:"score-token-def-BeamLeft",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"├"})}),e.jsx("g",{id:"score-token-def-BeamContinue",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"┼"})}),e.jsx("g",{id:"score-token-def-BeamRight",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"┤"})}),e.jsx("g",{id:"score-token-def-GraceNotehead",className:"token",children:e.jsx("text",{x:"-0.36",className:"s-grace",children:""})})]}),j=x.memo(i);export{h as S,j as a};
|
|
|
|
| 1 |
+
import{r as x,j as e}from"./umi-e07d95da.js";const h=({layout:n,positions:t,nameDict:c={},...o})=>{const l=x.useMemo(()=>n.groups.filter(s=>t[s.range[0]]&&t[s.range[1]]).map(s=>{const d=t[s.range[0]],r=t[s.range[1]];return{key:s.key,type:s.group.type,level:s.group.level||0,top:d.y-d.radius,bottom:r.y+r.radius,name:c[s.key]}}),[n,t,c]);return e.jsx("g",{...o,className:"staff-brackets",onClick:()=>{debugger},children:l.map(s=>e.jsxs("g",{className:"group",transform:`translate(${s.level*-1.2}, 0)`,children:[s.type===2&&e.jsxs("g",{className:"bracket",children:[e.jsx("rect",{x:"-1.2",y:s.top,width:"0.45",height:s.bottom-s.top}),e.jsx("g",{transform:`translate(-1.2, ${s.top-.21})`,children:e.jsx("path",{transform:"scale(0.0040, -0.0040)",d:"M0 -56v91c0 12 10 21 22 21h43c164 0 281 136 377 272c10 14 32 -1 22 -15c-103 -145 -222 -369 -399 -369h-65z"})}),e.jsx("g",{transform:`translate(-1.2, ${s.bottom+.21})`,children:e.jsx("path",{transform:"scale(0.0040, -0.0040)",d:"M0 56h65c177 0 296 -224 399 -369c10 -14 -12 -29 -22 -15c-96 136 -213 272 -377 272h-43c-12 0 -22 9 -22 21v91z"})})]}),s.type===3&&e.jsxs("g",{className:"square",children:[e.jsx("line",{x1:"-0.9",x2:"-0.9",y1:s.top,y2:s.bottom,strokeWidth:"0.1"}),e.jsx("line",{x1:"-0.9",x2:"0",y1:s.top,y2:s.top,strokeWidth:"0.1"}),e.jsx("line",{x1:"-0.9",x2:"0",y1:s.bottom,y2:s.bottom,strokeWidth:"0.1"})]}),s.type===1&&e.jsx("g",{className:"brace",transform:`translate(-0.2, ${(s.top+s.bottom)/2})`,children:e.jsx("path",{transform:`scale(0.0040, ${-.004*(s.bottom-s.top)/15.1825})`,d:"M-208 -1336c0 312 124 616 124 912c0 156 -36 300 -144 416c0 4 -4 4 -4 8s4 4 4 8c108 116 144 260 144 416c0 296 -124 600 -124 912c0 212 52 420 196 576c16 16 40 -8 24 -24c-108 -120 -144 -264 -144 -420c0 -292 116 -588 116 -896c0 -212 -48 -416 -188 -572c140 -156 188 -360 188 -572c0 -308 -116 -604 -116 -896c0 -156 36 -300 144 -420c16 -16 -8 -40 -24 -24c-144 156 -196 364 -196 576z"})}),s.name&&e.jsx("g",{className:"name",transform:`translate(-2, ${(s.top+s.bottom)/2+1})`,children:e.jsx("text",{fontSize:2,children:s.name})})]},s.key))})};const i=()=>e.jsxs("defs",{className:"score-token-defs",children:[e.jsx("g",{id:"score-token-def-clefs-G",className:"token",children:e.jsx("text",{x:"-1.3",children:""})}),e.jsx("g",{id:"score-token-def-clefs-F",className:"token",children:e.jsx("text",{x:"-1.06",children:""})}),e.jsx("g",{id:"score-token-def-clefs-C",className:"token",children:e.jsx("text",{x:"-1.06",children:""})}),e.jsx("g",{id:"score-token-def-timesig-C44",className:"token",children:e.jsx("text",{x:"-0.9",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-timesig-C22",className:"token",children:e.jsx("text",{x:"-0.9",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-timesig0",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"0"})}),e.jsx("g",{id:"score-token-def-timesig1",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"1"})}),e.jsx("g",{id:"score-token-def-timesig2",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"2"})}),e.jsx("g",{id:"score-token-def-timesig3",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"3"})}),e.jsx("g",{id:"score-token-def-timesig4",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"4"})}),e.jsx("g",{id:"score-token-def-timesig5",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"5"})}),e.jsx("g",{id:"score-token-def-timesig6",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"6"})}),e.jsx("g",{id:"score-token-def-timesig7",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"7"})}),e.jsx("g",{id:"score-token-def-timesig8",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"8"})}),e.jsx("g",{id:"score-token-def-timesig9",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"9"})}),e.jsx("g",{id:"score-token-def-octave-a",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"𝄶---"})}),e.jsx("g",{id:"score-token-def-octave-b",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"𝄷---"})}),e.jsx("g",{id:"score-token-def-octave-0",className:"token",children:e.jsx("text",{x:"-0.7",y:"0.6",className:"plain",children:"┐"})}),e.jsx("g",{id:"score-token-def-octave-8",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"8-----"})}),e.jsx("g",{id:"score-token-def-n0",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"0"})})}),e.jsx("g",{id:"score-token-def-n1",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"1"})})}),e.jsx("g",{id:"score-token-def-n2",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"2"})})}),e.jsx("g",{id:"score-token-def-n3",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"3"})})}),e.jsx("g",{id:"score-token-def-n4",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"4"})})}),e.jsx("g",{id:"score-token-def-n5",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"5"})})}),e.jsx("g",{id:"score-token-def-n6",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"6"})})}),e.jsx("g",{id:"score-token-def-n7",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"7"})})}),e.jsx("g",{id:"score-token-def-n8",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"8"})})}),e.jsx("g",{id:"score-token-def-n9",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"9"})})}),e.jsx("g",{id:"score-token-def-accidentals-sharp",className:"token",children:e.jsx("text",{x:"-0.55",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-doublesharp",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-natural",className:"token",children:e.jsx("text",{x:"-0.3",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-flat",className:"token",children:e.jsx("text",{x:"-0.3",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-flatflat",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsxs("g",{id:"score-token-def-key-sharp",className:"token",children:[e.jsx("text",{x:"-0.55",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsxs("g",{id:"score-token-def-key-natural",className:"token",children:[e.jsx("text",{x:"-0.3",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsxs("g",{id:"score-token-def-key-flat",className:"token",children:[e.jsx("text",{x:"-0.3",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsx("g",{id:"score-token-def-noteheads-s0",className:"token",children:e.jsx("text",{x:"-0.913",children:""})}),e.jsx("g",{id:"score-token-def-noteheads-s1",className:"token",children:e.jsx("text",{x:"-0.632",children:""})}),e.jsx("g",{id:"score-token-def-noteheads-s2",className:"token",children:e.jsx("text",{x:"-0.599",children:""})}),e.jsxs("g",{id:"score-token-def-noteheads-s1-u",className:"token",children:[e.jsx("text",{x:"-1.264",children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"-0.06",y2:"-3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s2-u",className:"token",children:[e.jsx("text",{x:"-1.198",children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"-0.06",y2:"-3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s1-d",className:"token",children:[e.jsx("text",{children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"0.16",y2:"3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s2-d",className:"token",children:[e.jsx("text",{children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"0.16",y2:"3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsx("g",{id:"score-token-def-rests-M1",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-0",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-0o",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-1o",className:"token",children:e.jsx("text",{x:"-0.75",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-rests-2",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-3",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-4",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-5",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-6",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-flags-u3",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u4",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u5",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u6",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u7",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u8",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-slur-begin",className:"token",children:e.jsx("path",{d:"M0 0C0.5 -0.5 1 -0.6 1.5 -0.6L1.5 -0.4C1 -0.4 0.5 -0.4 0 0z"})}),e.jsx("g",{id:"score-token-def-slur-end",className:"token",children:e.jsx("path",{d:"M0 0C-0.5 -0.5 -1 -0.6 -1.5 -0.6L-1.5 -0.4C-1 -0.4 -0.5 -0.4 0 0z"})}),e.jsxs("g",{id:"score-token-def-volta-left",className:"token",children:[e.jsx("text",{x:"-0.25",y:"-0.5",children:""}),e.jsx("text",{x:"-0.25",y:"0.5",children:""}),e.jsx("line",{x1:"-0.5",x2:"-0.5",y1:"-2",y2:"2"})]}),e.jsxs("g",{id:"score-token-def-volta-right",className:"token",children:[e.jsx("text",{x:"-0.25",y:"-0.5",children:""}),e.jsx("text",{x:"-0.25",y:"0.5",children:""}),e.jsx("line",{x1:"0.5",x2:"0.5",y1:"-2",y2:"2"})]}),e.jsxs("g",{id:"score-token-def-bar-terminal",className:"token",children:[e.jsx("rect",{x:"-0.064",y:"-2",width:"0.128",height:"4"}),e.jsx("rect",{x:"0.27",y:"-2",width:"0.4",height:"4"})]}),e.jsxs("g",{id:"score-token-def-bar-segment",className:"token",children:[e.jsx("rect",{x:"-0.359",y:"-2",width:"0.128",height:"4"}),e.jsx("rect",{x:"0.231",y:"-2",width:"0.128",height:"4"})]}),e.jsx("g",{id:"score-token-def-dot",className:"token",children:e.jsx("text",{children:""})}),e.jsxs("g",{id:"score-token-def-dotdot",className:"token",children:[e.jsx("text",{children:""}),e.jsx("text",{x:"0.8",children:""})]}),e.jsx("g",{id:"score-token-def-f",className:"token",children:e.jsx("text",{x:"-0.6",y:"0.5",children:"f"})}),e.jsx("g",{id:"score-token-def-m",className:"token",children:e.jsx("text",{x:"-0.9",y:"0.5",children:"m"})}),e.jsx("g",{id:"score-token-def-n",className:"token",children:e.jsx("text",{x:"-0.9",y:"0.5",children:"n"})}),e.jsx("g",{id:"score-token-def-p",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"p"})}),e.jsx("g",{id:"score-token-def-r",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"r"})}),e.jsx("g",{id:"score-token-def-s",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"s"})}),e.jsx("g",{id:"score-token-def-z",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"z"})}),e.jsx("g",{id:"score-token-def-scripts-ufermata",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-ushortfermata",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-sforzato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-staccato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-ustaccatissimo",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-turn",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-trill",className:"token",children:e.jsx("text",{y:"0.5",children:""})}),e.jsx("g",{id:"score-token-def-scripts-segno",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-coda",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-arpeggio",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:""})}),e.jsx("g",{id:"score-token-def-scripts-prall",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-mordent",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-umarcato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-tenuto",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-uportato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-pedal-star",className:"token",children:e.jsx("text",{x:"-0.78",y:"0.78",children:""})}),e.jsx("g",{id:"score-token-def-pedal-Ped",className:"token",children:e.jsx("text",{x:"-1.6",y:"0.7",children:""})}),e.jsx("g",{id:"score-token-def-BOS",className:"token",children:e.jsx("text",{x:"-3",y:"1.04",children:"▶"})}),e.jsx("g",{id:"score-token-def-BeamLeft",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"├"})}),e.jsx("g",{id:"score-token-def-BeamContinue",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"┼"})}),e.jsx("g",{id:"score-token-def-BeamRight",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"┤"})}),e.jsx("g",{id:"score-token-def-GraceNotehead",className:"token",children:e.jsx("text",{x:"-0.36",className:"s-grace",children:""})})]}),j=x.memo(i);export{h as S,j as a};
|
dist/assets/{index-7e539ef6.js → index-6c11c37f.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as A,_ as H,g as Z,u as _,j as i,h as w}from"./umi-a7f55986.js";import{u as G,a as O,q,L as k,P as V,Q as X,b as S,S as W,c as $}from"./index-2293ea9c.js";import{T as ee,S as te,P as R}from"./Tags-bc190257.js";import{w as L,_ as ae,a as ie,C as se,c as Y,b as ne,o as re,d as oe,e as le,u as ce,f as z,r as T,n as U,m as de}from"./_setToString-6c0c560b.js";import{s as ge,V as Ae,g as ue,I as M,D as me,P as he}from"./Table-7f16007d.js";import{B as J}from"./button-001dfcce.js";import{u as Ee}from"./useDebounce-15fcfd16.js";import"./index-156661dd.js";function fe(a){var e,o=function(l){return function(){e=null,a.apply(void 0,ae(l))}},n=function(){if(e==null){for(var l=arguments.length,d=new Array(l),u=0;u<l;u++)d[u]=arguments[u];e=L(o(d))}};return n.cancel=function(){L.cancel(e),e=null},n}var Qe=function(e){var o=e.prefixCls,n=e.rootPrefixCls,h=e.children,l=e.visible,d=A.createElement("div",{className:"".concat(o,"-content")},A.createElement("div",{className:"".concat(o,"-icon")},A.createElement(Ae,null)));return A.createElement(oe,{visible:l,motionName:"".concat(n,"-fade")},function(u){var v=u.className;return le(h||d,function(f){var r=f.className;return{className:Y(v,r)}})})},ve=function(e){var o=G(!1,{value:e.visible}),n=ie(o,2),h=n[0],l=n[1],d=A.createRef(),u=A.useRef(null),v=function(){return d.current&&d.current.ownerDocument?d.current.ownerDocument:window},f=fe(function(E){var x=e.visibilityHeight,C=x===void 0?400:x,I=ue(E.target,!0);l(I>C)}),r=function(){var x=e.target,C=x||v,I=C();u.current=O(I,"scroll",function(b){f(b)}),f({target:I})};A.useEffect(function(){return r(),function(){u.current&&u.current.remove(),f.cancel()}},[e.target]);var B=function(x){var C=e.onClick,I=e.target,b=e.duration,D=b===void 0?450:b;ge(0,{getContainer:I||v,duration:D}),typeof C=="function"&&C(x)},y=A.useContext(se),p=y.getPrefixCls,N=y.direction,j=e.prefixCls,s=e.className,t=s===void 0?"":s,c=p("back-top",j),g=p(),Q=Y(c,ne({},"".concat(c,"-rtl"),N==="rtl"),t),m=re(e,["prefixCls","className","children","visibilityHeight","target","visible"]);return A.createElement("div",H({},m,{className:Q,onClick:B,ref:d}),A.createElement(Qe,{prefixCls:c,rootPrefixCls:g,visible:h},e.children))};const Be=A.memo(ve),ye=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],xe=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Ce=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ie=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],K=(a,e,o)=>{let n=a;return typeof e=="string"||Array.isArray(e)?n=a.toLocaleString(e,o):(e===!0||o!==void 0)&&(n=a.toLocaleString(void 0,o)),n};var Se=(a,e)=>{if(!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);e=Object.assign({bits:!1,binary:!1},e);const o=e.bits?e.binary?Ie:Ce:e.binary?xe:ye;if(e.signed&&a===0)return` 0 ${o[0]}`;const n=a<0,h=n?"-":e.signed?"+":"";n&&(a=-a);let l;if(e.minimumFractionDigits!==void 0&&(l={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(l=Object.assign({maximumFractionDigits:e.maximumFractionDigits},l)),a<1){const f=K(a,e.locale,l);return h+f+" "+o[0]}const d=Math.min(Math.floor(e.binary?Math.log(a)/Math.log(1024):Math.log10(a)/3),o.length-1);a/=Math.pow(e.binary?1024:1e3,d),l||(a=a.toPrecision(3));const u=K(Number(a),e.locale,l),v=o[d];return h+u+" "+v};const pe=Z(Se);const Ne="_title_jd9ry_1",je="_header_jd9ry_4",be="_logo_jd9ry_14",we="_imageFastPreview_jd9ry_18",Te="_list_jd9ry_53",P={title:Ne,header:je,logo:be,imageFastPreview:we,"site-tag-plus":"_site-tag-plus_jd9ry_34","ant-table-row":"_ant-table-row_jd9ry_38","ant-tag":"_ant-tag_jd9ry_44",delete:"_delete_jd9ry_47","score-tags":"_score-tags_jd9ry_50",list:Te},Me=i.jsx("svg",{style:{width:"1.4em",height:"1.4em",margin:"0 10px"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200",children:i.jsx("path",{d:"M960 1024H64a64 64 0 0 1-64-64V64a64 64 0 0 1 64-64h896a64 64 0 0 1 64 64v896a64 64 0 0 1-64 64z m0-896a64 64 0 0 0-64-64H128a64 64 0 0 0-64 64v768a64 64 0 0 0 64 64h768a64 64 0 0 0 64-64V128z m-128 640h-128a64 64 0 0 1 0-128h64V576h-64a64 64 0 0 1 0-128h64V384h-64a64 64 0 0 1 0-128h128a64 64 0 0 1 64 64v384a64 64 0 0 1-64 64z m-320-128a64 64 0 0 1 0 128H384a64 64 0 0 1-64-64V512a64 64 0 0 1 64-64h64V384H384a64 64 0 0 1 0-128h128a64 64 0 0 1 64 64v192a64 64 0 0 1-64 64H448v64h64z m-320 128a64 64 0 0 1-64-64V320a64 64 0 0 1 128 0v384a64 64 0 0 1-64 64z"})}),Je=i.jsxs("svg",{style:{width:"1.5em",height:"1.5em",margin:"0 10px"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200",children:[i.jsx("path",{d:"M428.62 383.7l193.23-45.33v-31.94l-193.23 45.48zM374.7 656c-10.23-8.15-25.15-13.26-41.74-13.26-16.59 0-31.52 5.11-42.02 13.26-8.85 7.19-14.65 16.59-14.65 26.54 0 10.23 5.8 19.63 14.65 26.82 10.5 8.15 25.44 12.99 42.02 12.99 16.59 0 31.51-4.84 41.74-12.99 9.26-7.19 14.93-16.59 14.93-26.82 0.01-9.95-5.67-19.35-14.93-26.54zM607.2 602.65v-0.14c-10.5-8.15-25.44-13.14-42.02-13.14-16.59 0-31.51 4.98-42.02 13.14-8.85 7.05-14.65 16.59-14.65 26.68 0 9.95 5.8 19.49 14.65 26.54 10.52 8.29 25.44 13.26 42.02 13.26 16.59 0 31.52-4.97 42.02-13.26 8.85-6.78 14.38-16.32 14.65-25.99v-0.96c-0.14-9.97-5.8-19.22-14.65-26.13z",fill:"#000000"}),i.jsx("path",{d:"M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.58 448-448S759.42 64 512 64z m148.83 565.19v0.82c-0.28 22.26-11.61 42.3-29.85 56.4-17.14 13.55-40.37 21.56-65.8 21.56s-48.79-8.01-65.93-21.29c-18.39-14.51-29.72-34.69-29.72-57.49 0-22.67 11.34-42.86 29.72-57.23 17.14-13.4 40.35-21.57 65.93-21.57 21.02 0 40.64 5.68 56.67 15.34V362.27l-193.23 45.48V683.64c-0.28 22.13-11.75 42.03-29.87 56.41-17.14 13.26-40.35 21.43-65.79 21.43-25.43 0-48.79-8.17-65.8-21.43-18.51-14.65-29.99-34.69-29.99-57.51 0-22.39 11.48-42.84 29.99-57.23 17.01-13.26 40.37-21.29 65.8-21.29 21 0 40.78 5.53 56.67 15.07V333.94l0.27-0.68v-0.28l0.14-0.27V332.02l0.14-0.28 0.14-0.27v-0.55h0.13l0.14-0.7v-0.28c0.41-0.96 0.98-2.06 1.53-2.9v-0.27l0.27-0.14v-0.28l0.28-0.13 0.13-0.57 0.28-0.27 0.55-0.55v-0.55h0.28l0.13-0.28 0.28-0.27 0.27-0.14v-0.14l0.28-0.27 1.1-0.84v-0.27h0.14l0.41-0.28 0.14-0.27h0.14l0.82-0.84 0.28-0.14 0.27-0.14v-0.13l0.28-0.14 0.82-0.41v-0.14l0.69-0.41h0.14c0.84-0.42 1.66-0.7 2.63-0.98 0.82-0.55 1.78-0.82 2.9-0.82l230.83-54.32c10.23-2.35 20.18 3.6 23.23 13.26v0.28c0.82 2.07 1.1 4.15 1.1 6.49v346.11z",fill:"#000000"})]});function Ye(){var N,j;const a=ce(),e=A.useRef(),[o,n]=A.useState(null),h=A.useRef(null),[l,d]=A.useState([]),[u,v]=z(async()=>await T.get("/api/tags"),[]),f=_(),r=A.useMemo(()=>{try{const s=q.parse(f.search),t=JSON.parse(decodeURIComponent(s.search))||{};return F(t)}catch{return{}}},[f.search]);A.useEffect(()=>{v()},[]);const[B,y]=z(async()=>{var s;try{const t=await T("/api/musicSets",{params:{total:(s=B.value)==null?void 0:s.total,limit:50,offset:0,...r}});return{data:t.rows,success:!0,total:t.count}}catch(t){console.error(t)}return{data:void 0,success:!1}},[r]);Ee(()=>{y()},1e3,[r]);const p=[{title:a.formatMessage({id:"home.column.preview"}),dataIndex:"content",width:54,hideInSearch:!0,render:(s,t,c)=>i.jsx(M,{width:40,height:40,preview:!1,onMouseEnter:()=>{var Q,m;const g=(m=(Q=t.content)==null?void 0:Q.images)==null?void 0:m[0];n(g?{...g,url:U(g.url)}:null)},onMouseLeave:()=>n(null),onClick:()=>{n(null),d(t.content.images.map(g=>U(g.url)))},style:{cursor:"pointer"},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})},{title:a.formatMessage({id:"home.column.name"}),dataIndex:"name",sorter:!0,initialValue:r.search,sortOrder:r.sortedBy==="name"&&r.sortedType?{asc:"ascend",desc:"descend"}[r.sortedType]:null,render:(s,t,c)=>i.jsx(k,{style:{display:"flex"},to:`/${{stave:"playground",simple:"numbered"}[t.type]}/${t.id}`,children:`${t.name||a.formatMessage({id:"common.untitled"})}`})},{title:a.formatMessage({id:"home.column.type"}),dataIndex:"type",width:"6em",sorter:!0,initialValue:r.search,sortOrder:r.sortedBy==="type"&&r.sortedType?{asc:"ascend",desc:"descend"}[r.sortedType]:null,render:(s,t,c)=>({stave:Je,simple:Me})[t.type]},{title:i.jsx(ee,{}),dataIndex:"tagIdList",width:"2em",valueType:"select",filters:!0,hideInSearch:!0,filteredValue:(r==null?void 0:r.tagIdList)||[],valueEnum:()=>{var s;return((s=u.value)==null?void 0:s.reduce((t,c)=>({...t,[c.id]:{text:c.name||" "}}),{}))||{}},render:(s,t,c)=>i.jsx(te,{preview:!0,id:t.id,tagList:t.tagList,onChange:g=>{console.log("tags",g),t.tagList=g}},t.id)},{title:a.formatMessage({id:"home.column.pages"}),render:(s,t)=>{var c,g;return(g=(c=t.content)==null?void 0:c.images)==null?void 0:g.length},width:"4em",align:"center",hideInSearch:!0},{title:a.formatMessage({id:"home.column.size"}),width:"6em",render:(s,t)=>{var c,g,Q;return((c=t.content)==null?void 0:c.images)&&pe((Q=(g=t.content)==null?void 0:g.images)==null?void 0:Q.reduce((m,E)=>m+((E==null?void 0:E.size)??0),0))},align:"center",hideInSearch:!0},{title:a.formatMessage({id:"home.column.lastUpdate"}),width:"12em",dataIndex:"lastUpdateAt",sorter:!0,sortOrder:r.sortedBy==="lastUpdateAt"&&r.sortedType?{asc:"ascend",desc:"descend"}[r.sortedType]:null,hideInSearch:!0},{title:a.formatMessage({id:"home.column.actions"}),width:"4em",hideInSearch:!0,render:(s,t,c)=>[(!t.tagList||!t.tagList.length)&&i.jsx(V,{title:a.formatMessage({id:"home.confirmDelete"}),okText:a.formatMessage({id:"common.confirm"}),cancelText:a.formatMessage({id:"common.cancel"}),icon:i.jsx(X,{}),onConfirm:async()=>{await T.delete(`/api/musicSets/${t.id}`)&&(de.success(a.formatMessage({id:"home.deleteSuccess"})),await y())},children:i.jsx(J,{className:"delete",type:"link",children:i.jsx(me,{})})},"delete")]}];return i.jsxs(S,{children:[i.jsx(S.Header,{className:P.header,children:i.jsxs(W,{children:[i.jsx(k,{className:P.logo,to:"/",children:"STARRY✨"}),i.jsxs(J,{onClick:()=>{w.push("/playground")},children:[i.jsx(R,{}),a.formatMessage({id:"home.createStave"})]}),i.jsxs(J,{onClick:()=>{w.push("/numbered")},children:[i.jsx(R,{}),a.formatMessage({id:"home.createNumbered"})]}),i.jsx($,{})]})}),i.jsx(S,{style:{minHeight:"100vh"},children:i.jsx(S.Content,{style:{padding:"0 50px 50px",marginTop:"104px",width:"unset"},children:i.jsx(he,{loading:B.loading,dataSource:(N=B.value)==null?void 0:N.data,style:{maxWidth:"100em",margin:"0 auto"},actionRef:e,formRef:h,columns:p,search:{filterType:"light"},size:"small",options:{density:!1,reload:y},pagination:{total:(j=B.value)==null?void 0:j.total,pageSize:50,current:+r.offset/+r.limit+1||1},onChange:(s,t,c,g)=>{var E;const Q={ascend:"asc",descend:"desc"}[c.order],m={...r,offset:(s.current-1)*s.pageSize,limit:s.pageSize,tagIdList:t.tagIdList,search:r.search};c.order?(m.sortedBy=c.field,m.sortedType=Q):(m.sortedBy=null,m.sortedType=null),((E=t.tagIdList)==null?void 0:E.length)>0?m.tagIdList=t.tagIdList:m.tagIdList=null,console.log("onChange"),w.push({search:`search=${encodeURIComponent(JSON.stringify(F(m)))}`})},beforeSearchSubmit:s=>{const t={...r,search:s.name};console.log("beforeSearchSubmit",t),w.push({search:Object.values(t).filter(Boolean).length>0?`search=${encodeURIComponent(JSON.stringify(t))}`:""})},rowKey:"id"})})}),i.jsx(S.Footer,{style:{textAlign:"center"},children:a.formatMessage({id:"common.footer"})}),o&&i.jsx("div",{className:P.imageFastPreview,children:i.jsx("img",{src:o.url,style:{objectFit:"contain",objectPosition:"center",maxHeight:"100%",maxWidth:"100%",backgroundColor:"#ffffff",boxShadow:"0 0 10px 0px rgba(0,0,0,0.5)"},alt:""})}),i.jsx(Be,{}),i.jsx(M.PreviewGroup,{preview:{open:l.length>0,destroyOnClose:!0,onOpenChange:s=>{s||d([])}},children:l.map((s,t)=>i.jsx(M,{wrapperStyle:{fontSize:"12px"},height:40,src:s},t))})]})}function F(a){return Object.entries(a).reduce((e,[o,n])=>{var l,d;return(o==="tagIdList"&&((d=(l=n==null?void 0:n.filter)==null?void 0:l.call(n,u=>/^\d+$/.test(String(n))))==null?void 0:d.length)>0||n)&&(e[o]=n),e},{})}export{Ye as default};
|
|
|
|
| 1 |
+
import{r as A,_ as H,g as Z,u as _,j as i,h as w}from"./umi-e07d95da.js";import{u as G,a as O,q,L as k,P as V,Q as X,b as S,S as W,c as $}from"./index-5014e2af.js";import{T as ee,S as te,P as R}from"./Tags-1c321515.js";import{w as L,_ as ae,a as ie,C as se,c as Y,b as ne,o as re,d as oe,e as le,u as ce,f as z,r as T,n as U,m as de}from"./_setToString-5e7d8f22.js";import{s as ge,V as Ae,g as ue,I as M,D as me,P as he}from"./Table-df466f11.js";import{B as J}from"./button-3ac51ee9.js";import{u as Ee}from"./useDebounce-f1604c2b.js";import"./index-c03929a6.js";function fe(a){var e,o=function(l){return function(){e=null,a.apply(void 0,ae(l))}},n=function(){if(e==null){for(var l=arguments.length,d=new Array(l),u=0;u<l;u++)d[u]=arguments[u];e=L(o(d))}};return n.cancel=function(){L.cancel(e),e=null},n}var Qe=function(e){var o=e.prefixCls,n=e.rootPrefixCls,h=e.children,l=e.visible,d=A.createElement("div",{className:"".concat(o,"-content")},A.createElement("div",{className:"".concat(o,"-icon")},A.createElement(Ae,null)));return A.createElement(oe,{visible:l,motionName:"".concat(n,"-fade")},function(u){var v=u.className;return le(h||d,function(f){var r=f.className;return{className:Y(v,r)}})})},ve=function(e){var o=G(!1,{value:e.visible}),n=ie(o,2),h=n[0],l=n[1],d=A.createRef(),u=A.useRef(null),v=function(){return d.current&&d.current.ownerDocument?d.current.ownerDocument:window},f=fe(function(E){var x=e.visibilityHeight,C=x===void 0?400:x,I=ue(E.target,!0);l(I>C)}),r=function(){var x=e.target,C=x||v,I=C();u.current=O(I,"scroll",function(b){f(b)}),f({target:I})};A.useEffect(function(){return r(),function(){u.current&&u.current.remove(),f.cancel()}},[e.target]);var B=function(x){var C=e.onClick,I=e.target,b=e.duration,D=b===void 0?450:b;ge(0,{getContainer:I||v,duration:D}),typeof C=="function"&&C(x)},y=A.useContext(se),p=y.getPrefixCls,N=y.direction,j=e.prefixCls,s=e.className,t=s===void 0?"":s,c=p("back-top",j),g=p(),Q=Y(c,ne({},"".concat(c,"-rtl"),N==="rtl"),t),m=re(e,["prefixCls","className","children","visibilityHeight","target","visible"]);return A.createElement("div",H({},m,{className:Q,onClick:B,ref:d}),A.createElement(Qe,{prefixCls:c,rootPrefixCls:g,visible:h},e.children))};const Be=A.memo(ve),ye=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],xe=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Ce=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ie=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],K=(a,e,o)=>{let n=a;return typeof e=="string"||Array.isArray(e)?n=a.toLocaleString(e,o):(e===!0||o!==void 0)&&(n=a.toLocaleString(void 0,o)),n};var Se=(a,e)=>{if(!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);e=Object.assign({bits:!1,binary:!1},e);const o=e.bits?e.binary?Ie:Ce:e.binary?xe:ye;if(e.signed&&a===0)return` 0 ${o[0]}`;const n=a<0,h=n?"-":e.signed?"+":"";n&&(a=-a);let l;if(e.minimumFractionDigits!==void 0&&(l={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(l=Object.assign({maximumFractionDigits:e.maximumFractionDigits},l)),a<1){const f=K(a,e.locale,l);return h+f+" "+o[0]}const d=Math.min(Math.floor(e.binary?Math.log(a)/Math.log(1024):Math.log10(a)/3),o.length-1);a/=Math.pow(e.binary?1024:1e3,d),l||(a=a.toPrecision(3));const u=K(Number(a),e.locale,l),v=o[d];return h+u+" "+v};const pe=Z(Se);const Ne="_title_jd9ry_1",je="_header_jd9ry_4",be="_logo_jd9ry_14",we="_imageFastPreview_jd9ry_18",Te="_list_jd9ry_53",P={title:Ne,header:je,logo:be,imageFastPreview:we,"site-tag-plus":"_site-tag-plus_jd9ry_34","ant-table-row":"_ant-table-row_jd9ry_38","ant-tag":"_ant-tag_jd9ry_44",delete:"_delete_jd9ry_47","score-tags":"_score-tags_jd9ry_50",list:Te},Me=i.jsx("svg",{style:{width:"1.4em",height:"1.4em",margin:"0 10px"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200",children:i.jsx("path",{d:"M960 1024H64a64 64 0 0 1-64-64V64a64 64 0 0 1 64-64h896a64 64 0 0 1 64 64v896a64 64 0 0 1-64 64z m0-896a64 64 0 0 0-64-64H128a64 64 0 0 0-64 64v768a64 64 0 0 0 64 64h768a64 64 0 0 0 64-64V128z m-128 640h-128a64 64 0 0 1 0-128h64V576h-64a64 64 0 0 1 0-128h64V384h-64a64 64 0 0 1 0-128h128a64 64 0 0 1 64 64v384a64 64 0 0 1-64 64z m-320-128a64 64 0 0 1 0 128H384a64 64 0 0 1-64-64V512a64 64 0 0 1 64-64h64V384H384a64 64 0 0 1 0-128h128a64 64 0 0 1 64 64v192a64 64 0 0 1-64 64H448v64h64z m-320 128a64 64 0 0 1-64-64V320a64 64 0 0 1 128 0v384a64 64 0 0 1-64 64z"})}),Je=i.jsxs("svg",{style:{width:"1.5em",height:"1.5em",margin:"0 10px"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200",children:[i.jsx("path",{d:"M428.62 383.7l193.23-45.33v-31.94l-193.23 45.48zM374.7 656c-10.23-8.15-25.15-13.26-41.74-13.26-16.59 0-31.52 5.11-42.02 13.26-8.85 7.19-14.65 16.59-14.65 26.54 0 10.23 5.8 19.63 14.65 26.82 10.5 8.15 25.44 12.99 42.02 12.99 16.59 0 31.51-4.84 41.74-12.99 9.26-7.19 14.93-16.59 14.93-26.82 0.01-9.95-5.67-19.35-14.93-26.54zM607.2 602.65v-0.14c-10.5-8.15-25.44-13.14-42.02-13.14-16.59 0-31.51 4.98-42.02 13.14-8.85 7.05-14.65 16.59-14.65 26.68 0 9.95 5.8 19.49 14.65 26.54 10.52 8.29 25.44 13.26 42.02 13.26 16.59 0 31.52-4.97 42.02-13.26 8.85-6.78 14.38-16.32 14.65-25.99v-0.96c-0.14-9.97-5.8-19.22-14.65-26.13z",fill:"#000000"}),i.jsx("path",{d:"M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.58 448-448S759.42 64 512 64z m148.83 565.19v0.82c-0.28 22.26-11.61 42.3-29.85 56.4-17.14 13.55-40.37 21.56-65.8 21.56s-48.79-8.01-65.93-21.29c-18.39-14.51-29.72-34.69-29.72-57.49 0-22.67 11.34-42.86 29.72-57.23 17.14-13.4 40.35-21.57 65.93-21.57 21.02 0 40.64 5.68 56.67 15.34V362.27l-193.23 45.48V683.64c-0.28 22.13-11.75 42.03-29.87 56.41-17.14 13.26-40.35 21.43-65.79 21.43-25.43 0-48.79-8.17-65.8-21.43-18.51-14.65-29.99-34.69-29.99-57.51 0-22.39 11.48-42.84 29.99-57.23 17.01-13.26 40.37-21.29 65.8-21.29 21 0 40.78 5.53 56.67 15.07V333.94l0.27-0.68v-0.28l0.14-0.27V332.02l0.14-0.28 0.14-0.27v-0.55h0.13l0.14-0.7v-0.28c0.41-0.96 0.98-2.06 1.53-2.9v-0.27l0.27-0.14v-0.28l0.28-0.13 0.13-0.57 0.28-0.27 0.55-0.55v-0.55h0.28l0.13-0.28 0.28-0.27 0.27-0.14v-0.14l0.28-0.27 1.1-0.84v-0.27h0.14l0.41-0.28 0.14-0.27h0.14l0.82-0.84 0.28-0.14 0.27-0.14v-0.13l0.28-0.14 0.82-0.41v-0.14l0.69-0.41h0.14c0.84-0.42 1.66-0.7 2.63-0.98 0.82-0.55 1.78-0.82 2.9-0.82l230.83-54.32c10.23-2.35 20.18 3.6 23.23 13.26v0.28c0.82 2.07 1.1 4.15 1.1 6.49v346.11z",fill:"#000000"})]});function Ye(){var N,j;const a=ce(),e=A.useRef(),[o,n]=A.useState(null),h=A.useRef(null),[l,d]=A.useState([]),[u,v]=z(async()=>await T.get("/api/tags"),[]),f=_(),r=A.useMemo(()=>{try{const s=q.parse(f.search),t=JSON.parse(decodeURIComponent(s.search))||{};return F(t)}catch{return{}}},[f.search]);A.useEffect(()=>{v()},[]);const[B,y]=z(async()=>{var s;try{const t=await T("/api/musicSets",{params:{total:(s=B.value)==null?void 0:s.total,limit:50,offset:0,...r}});return{data:t.rows,success:!0,total:t.count}}catch(t){console.error(t)}return{data:void 0,success:!1}},[r]);Ee(()=>{y()},1e3,[r]);const p=[{title:a.formatMessage({id:"home.column.preview"}),dataIndex:"content",width:54,hideInSearch:!0,render:(s,t,c)=>i.jsx(M,{width:40,height:40,preview:!1,onMouseEnter:()=>{var Q,m;const g=(m=(Q=t.content)==null?void 0:Q.images)==null?void 0:m[0];n(g?{...g,url:U(g.url)}:null)},onMouseLeave:()=>n(null),onClick:()=>{n(null),d(t.content.images.map(g=>U(g.url)))},style:{cursor:"pointer"},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})},{title:a.formatMessage({id:"home.column.name"}),dataIndex:"name",sorter:!0,initialValue:r.search,sortOrder:r.sortedBy==="name"&&r.sortedType?{asc:"ascend",desc:"descend"}[r.sortedType]:null,render:(s,t,c)=>i.jsx(k,{style:{display:"flex"},to:`/${{stave:"playground",simple:"numbered"}[t.type]}/${t.id}`,children:`${t.name||a.formatMessage({id:"common.untitled"})}`})},{title:a.formatMessage({id:"home.column.type"}),dataIndex:"type",width:"6em",sorter:!0,initialValue:r.search,sortOrder:r.sortedBy==="type"&&r.sortedType?{asc:"ascend",desc:"descend"}[r.sortedType]:null,render:(s,t,c)=>({stave:Je,simple:Me})[t.type]},{title:i.jsx(ee,{}),dataIndex:"tagIdList",width:"2em",valueType:"select",filters:!0,hideInSearch:!0,filteredValue:(r==null?void 0:r.tagIdList)||[],valueEnum:()=>{var s;return((s=u.value)==null?void 0:s.reduce((t,c)=>({...t,[c.id]:{text:c.name||" "}}),{}))||{}},render:(s,t,c)=>i.jsx(te,{preview:!0,id:t.id,tagList:t.tagList,onChange:g=>{console.log("tags",g),t.tagList=g}},t.id)},{title:a.formatMessage({id:"home.column.pages"}),render:(s,t)=>{var c,g;return(g=(c=t.content)==null?void 0:c.images)==null?void 0:g.length},width:"4em",align:"center",hideInSearch:!0},{title:a.formatMessage({id:"home.column.size"}),width:"6em",render:(s,t)=>{var c,g,Q;return((c=t.content)==null?void 0:c.images)&&pe((Q=(g=t.content)==null?void 0:g.images)==null?void 0:Q.reduce((m,E)=>m+((E==null?void 0:E.size)??0),0))},align:"center",hideInSearch:!0},{title:a.formatMessage({id:"home.column.lastUpdate"}),width:"12em",dataIndex:"lastUpdateAt",sorter:!0,sortOrder:r.sortedBy==="lastUpdateAt"&&r.sortedType?{asc:"ascend",desc:"descend"}[r.sortedType]:null,hideInSearch:!0},{title:a.formatMessage({id:"home.column.actions"}),width:"4em",hideInSearch:!0,render:(s,t,c)=>[(!t.tagList||!t.tagList.length)&&i.jsx(V,{title:a.formatMessage({id:"home.confirmDelete"}),okText:a.formatMessage({id:"common.confirm"}),cancelText:a.formatMessage({id:"common.cancel"}),icon:i.jsx(X,{}),onConfirm:async()=>{await T.delete(`/api/musicSets/${t.id}`)&&(de.success(a.formatMessage({id:"home.deleteSuccess"})),await y())},children:i.jsx(J,{className:"delete",type:"link",children:i.jsx(me,{})})},"delete")]}];return i.jsxs(S,{children:[i.jsx(S.Header,{className:P.header,children:i.jsxs(W,{children:[i.jsx(k,{className:P.logo,to:"/",children:"STARRY✨"}),i.jsxs(J,{onClick:()=>{w.push("/playground")},children:[i.jsx(R,{}),a.formatMessage({id:"home.createStave"})]}),i.jsxs(J,{onClick:()=>{w.push("/numbered")},children:[i.jsx(R,{}),a.formatMessage({id:"home.createNumbered"})]}),i.jsx($,{})]})}),i.jsx(S,{style:{minHeight:"100vh"},children:i.jsx(S.Content,{style:{padding:"0 50px 50px",marginTop:"104px",width:"unset"},children:i.jsx(he,{loading:B.loading,dataSource:(N=B.value)==null?void 0:N.data,style:{maxWidth:"100em",margin:"0 auto"},actionRef:e,formRef:h,columns:p,search:{filterType:"light"},size:"small",options:{density:!1,reload:y},pagination:{total:(j=B.value)==null?void 0:j.total,pageSize:50,current:+r.offset/+r.limit+1||1},onChange:(s,t,c,g)=>{var E;const Q={ascend:"asc",descend:"desc"}[c.order],m={...r,offset:(s.current-1)*s.pageSize,limit:s.pageSize,tagIdList:t.tagIdList,search:r.search};c.order?(m.sortedBy=c.field,m.sortedType=Q):(m.sortedBy=null,m.sortedType=null),((E=t.tagIdList)==null?void 0:E.length)>0?m.tagIdList=t.tagIdList:m.tagIdList=null,console.log("onChange"),w.push({search:`search=${encodeURIComponent(JSON.stringify(F(m)))}`})},beforeSearchSubmit:s=>{const t={...r,search:s.name};console.log("beforeSearchSubmit",t),w.push({search:Object.values(t).filter(Boolean).length>0?`search=${encodeURIComponent(JSON.stringify(t))}`:""})},rowKey:"id"})})}),i.jsx(S.Footer,{style:{textAlign:"center"},children:a.formatMessage({id:"common.footer"})}),o&&i.jsx("div",{className:P.imageFastPreview,children:i.jsx("img",{src:o.url,style:{objectFit:"contain",objectPosition:"center",maxHeight:"100%",maxWidth:"100%",backgroundColor:"#ffffff",boxShadow:"0 0 10px 0px rgba(0,0,0,0.5)"},alt:""})}),i.jsx(Be,{}),i.jsx(M.PreviewGroup,{preview:{open:l.length>0,destroyOnClose:!0,onOpenChange:s=>{s||d([])}},children:l.map((s,t)=>i.jsx(M,{wrapperStyle:{fontSize:"12px"},height:40,src:s},t))})]})}function F(a){return Object.entries(a).reduce((e,[o,n])=>{var l,d;return(o==="tagIdList"&&((d=(l=n==null?void 0:n.filter)==null?void 0:l.call(n,u=>/^\d+$/.test(String(n))))==null?void 0:d.length)>0||n)&&(e[o]=n),e},{})}export{Ye as default};
|
dist/assets/{index-92489c26.js → index-902b3791.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as d,j as e,a as _}from"./umi-a7f55986.js";import{T as G,p as q,S as H,a as J,r as U,m as R,L as X,s as K}from"./index-06d8da5b.js";import{S as Q}from"./scheduler-a7fa9c3c.js";import{p as Z}from"./processCompressedAESFile-8d6401c6.js";import{S as ee}from"./index-156661dd.js";import{c as C,t as se,u as V}from"./_setToString-6c0c560b.js";import{u as te}from"./useIntersection-410a4d5c.js";import{u as ne}from"./useAsync-58b75860.js";class re{timer;tasks={};handlers={};constructor(o=Date){this.timer=o}clear(){Object.values(this.handlers).forEach(o=>clearTimeout(o)),this.tasks={},this.handlers={}}getTask(o){const i=Math.max(o-this.timer.now(),0);return this.tasks[o]||(this.tasks[o]=new Promise(c=>{this.handlers[o]=setTimeout(c,i)}).then(()=>{delete this.tasks[o],delete this.handlers[o]})),this.tasks[o]}appendTask(o,i){this.tasks[o]=this.getTask(o).then(i)}}const ce=({translateX:l=0,translateY:o,width:i,additionalLines:c,...f})=>e.jsxs("g",{...f,className:"staff-lines",transform:`translate(${l}, ${o})`,children:[new Array(5).fill(null).map((s,r)=>e.jsx("line",{x1:0,x2:i,y1:r-2,y2:r-2},r)),c&&c.map((s,r)=>e.jsx("g",{children:Array(Math.abs(s.n)).fill(null).map((x,n)=>e.jsx("line",{x1:s.left,x2:s.right,y1:s.n>0?3+n:-3-n,y2:s.n>0?3+n:-3-n},n))},r))]}),ie=d.memo(ce),D=({score:l,page:o,pageIndex:i,system:c,systemIndex:f,staff:s,staffIndex:r,showSource:x})=>{var a;const n=l.pages.reduce((j,g,p)=>p<i?j+g.systems.reduce((m,k,T)=>{var M,$;return m+((($=(M=k.staves[0])==null?void 0:M.measures)==null?void 0:$.length)||0)},0):p===i?j+g.systems.reduce((m,k,T)=>{var M,$;return T<f?m+((($=(M=k.staves[0])==null?void 0:M.measures)==null?void 0:$.length)||0):m},0):j,0);return e.jsx(e.Fragment,{children:e.jsxs("g",{className:C("staff",{moving:!1}),transform:`translate(0, ${s.top})`,children:[e.jsxs("g",{children:[x?null:e.jsx(ie,{translateY:s.staffY,width:c.width,additionalLines:s.additionalLines}),(a=s==null?void 0:s.measures)==null?void 0:a.map((j,g)=>{var p;return e.jsxs("g",{children:[!x&&r===0&&g===0&&e.jsx("text",{x:j.left,y:Math.min(5,s.staffY-3),fontSize:g===0?1.4:.9,fill:"#e65019",children:n+g+1}),e.jsx("g",{transform:`translate(0, ${s.staffY})`,children:e.jsx("g",{className:"tokens",children:(p=j==null?void 0:j.tokens)==null?void 0:p.filter(m=>G.includes(m.type)).map((m,k)=>e.jsx("g",{className:C("token",{}),style:x?{color:"transparent"}:{},transform:`translate(${m.x}, ${m.y})`,id:m.id,onClick:()=>console.log(m),children:e.jsx("use",{xlinkHref:`#score-token-def-${m.typeId}`})},k))})})]},g)})]}),x?null:e.jsx("g",{className:"measure-bars",children:c.measureBars.map((j,g)=>e.jsx("g",{className:C("measure-bar"),transform:`translate(${j}, ${s.staffY-2})`,children:e.jsx("line",{x1:0,x2:0,y1:0,y2:4})},g))})]})})};d.memo(D);const oe=({layout:l,positions:o,nameDict:i={},...c})=>{const f=d.useMemo(()=>l.groups.map(s=>{const r=o[s.range[0]],x=o[s.range[1]];return{key:s.key,type:s.group.type,level:s.group.level||0,top:r.y-r.radius,bottom:x.y+x.radius,name:i[s.key]}}),[l,o,i]);return e.jsx("g",{...c,className:"staff-brackets",onClick:()=>{},children:f.map(s=>e.jsxs("g",{className:"group",transform:`translate(${s.level*-1.2}, 0)`,children:[s.type===2&&e.jsxs("g",{className:"bracket",children:[e.jsx("rect",{x:"-1.2",y:s.top,width:"0.45",height:s.bottom-s.top}),e.jsx("g",{transform:`translate(-1.2, ${s.top-.21})`,children:e.jsx("path",{transform:"scale(0.0040, -0.0040)",d:"M0 -56v91c0 12 10 21 22 21h43c164 0 281 136 377 272c10 14 32 -1 22 -15c-103 -145 -222 -369 -399 -369h-65z"})}),e.jsx("g",{transform:`translate(-1.2, ${s.bottom+.21})`,children:e.jsx("path",{transform:"scale(0.0040, -0.0040)",d:"M0 56h65c177 0 296 -224 399 -369c10 -14 -12 -29 -22 -15c-96 136 -213 272 -377 272h-43c-12 0 -22 9 -22 21v91z"})})]}),s.type===3&&e.jsxs("g",{className:"square",children:[e.jsx("line",{x1:"-0.9",x2:"-0.9",y1:s.top,y2:s.bottom,strokeWidth:"0.1"}),e.jsx("line",{x1:"-0.9",x2:"0",y1:s.top,y2:s.top,strokeWidth:"0.1"}),e.jsx("line",{x1:"-0.9",x2:"0",y1:s.bottom,y2:s.bottom,strokeWidth:"0.1"})]}),s.type===1&&e.jsx("g",{className:"brace",transform:`translate(-0.2, ${(s.top+s.bottom)/2})`,children:e.jsx("path",{transform:`scale(0.0040, ${-.004*(s.bottom-s.top)/15.1825})`,d:"M-208 -1336c0 312 124 616 124 912c0 156 -36 300 -144 416c0 4 -4 4 -4 8s4 4 4 8c108 116 144 260 144 416c0 296 -124 600 -124 912c0 212 52 420 196 576c16 16 40 -8 24 -24c-108 -120 -144 -264 -144 -420c0 -292 116 -588 116 -896c0 -212 -48 -416 -188 -572c140 -156 188 -360 188 -572c0 -308 -116 -604 -116 -896c0 -156 36 -300 144 -420c16 -16 -8 -40 -24 -24c-144 156 -196 364 -196 576z"})}),s.name&&e.jsx("g",{className:"name",transform:`translate(-2, ${(s.top+s.bottom)/2+1})`,children:e.jsx("text",{fontSize:2,children:s.name})})]},s.key))})},le=l=>{var x,n;const{score:o,pageIndex:i,system:c,systemIndex:f,showSource:s}=l;if(c.staves.length===0)return e.jsx("g",{},f);const r=q(o.staffLayoutCode);return e.jsxs("g",{className:C("system",{}),transform:`translate(${c.left}, ${c.top})`,children:[!s&&c.backgroundImage&&!((x=c.staves[0])!=null&&x.backgroundImage)&&!((n=c.staves[0])!=null&&n.maskImage)&&e.jsx("image",{className:"background",href:c.backgroundImage,...c.imagePosition||{}}),!s&&c.staves.length>=2&&e.jsx("line",{className:"connection",x1:0,x2:0,y1:c.connectionLine.top,y2:c.connectionLine.bottom}),!s&&c.staves.map((a,j)=>e.jsxs("g",{className:C("staff"),transform:`translate(0, ${a.top})`,children:[!s&&!a.maskImage&&a.backgroundImage&&e.jsx("image",{className:"background",href:a.backgroundImage,...a.imagePosition||{}}),!s&&a.maskImage&&e.jsx("image",{className:"background",href:a.maskImage,...a.imagePosition||{}})]},"staff-"+j)),c.staves.map((a,j)=>e.jsx(D,{...l,staff:a,staffIndex:j,showSource:s},j)),s?null:e.jsx("g",{className:"measure-bars",children:c.measureBars.map((a,j)=>e.jsx("g",{transform:`translate(${a}, 0)`,children:r.mask(c.staffMask).conjunctions.map((g,p)=>{const m=c.staves[p],k=c.staves[p+1];if(m&&k)return e.jsx("g",{transform:`translate(0, ${m.top+m.staffY+2})`,children:e.jsx("line",{className:C("staff-layout-measure-bar",{dashed:g===1,blank:g===0}),x1:"0",x2:"0",y1:0,y2:k.top+k.staffY-(m.top+m.staffY)-4})},p)})},j))}),s?null:e.jsx(oe,{layout:r.mask(c.staffMask),positions:c.staffPositions,nameDict:!c.prev||c.staffMask!==c.prev.staffMask?o.instrumentDict:{}})]},f)},ae=d.memo(le);const de=()=>e.jsxs("defs",{className:"score-token-defs",children:[e.jsx("g",{id:"score-token-def-clefs-G",className:"token",children:e.jsx("text",{x:"-1.3",children:""})}),e.jsx("g",{id:"score-token-def-clefs-F",className:"token",children:e.jsx("text",{x:"-1.06",children:""})}),e.jsx("g",{id:"score-token-def-clefs-C",className:"token",children:e.jsx("text",{x:"-1.06",children:""})}),e.jsx("g",{id:"score-token-def-timesig-C44",className:"token",children:e.jsx("text",{x:"-0.9",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-timesig-C22",className:"token",children:e.jsx("text",{x:"-0.9",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-timesig0",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"0"})}),e.jsx("g",{id:"score-token-def-timesig1",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"1"})}),e.jsx("g",{id:"score-token-def-timesig2",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"2"})}),e.jsx("g",{id:"score-token-def-timesig3",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"3"})}),e.jsx("g",{id:"score-token-def-timesig4",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"4"})}),e.jsx("g",{id:"score-token-def-timesig5",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"5"})}),e.jsx("g",{id:"score-token-def-timesig6",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"6"})}),e.jsx("g",{id:"score-token-def-timesig7",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"7"})}),e.jsx("g",{id:"score-token-def-timesig8",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"8"})}),e.jsx("g",{id:"score-token-def-timesig9",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"9"})}),e.jsx("g",{id:"score-token-def-octave-a",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"𝄶---"})}),e.jsx("g",{id:"score-token-def-octave-b",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"𝄷---"})}),e.jsx("g",{id:"score-token-def-octave-0",className:"token",children:e.jsx("text",{x:"-0.7",y:"0.6",className:"plain",children:"┐"})}),e.jsx("g",{id:"score-token-def-octave-8",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"8-----"})}),e.jsx("g",{id:"score-token-def-n0",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"0"})})}),e.jsx("g",{id:"score-token-def-n1",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"1"})})}),e.jsx("g",{id:"score-token-def-n2",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"2"})})}),e.jsx("g",{id:"score-token-def-n3",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"3"})})}),e.jsx("g",{id:"score-token-def-n4",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"4"})})}),e.jsx("g",{id:"score-token-def-n5",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"5"})})}),e.jsx("g",{id:"score-token-def-n6",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"6"})})}),e.jsx("g",{id:"score-token-def-n7",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"7"})})}),e.jsx("g",{id:"score-token-def-n8",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"8"})})}),e.jsx("g",{id:"score-token-def-n9",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"9"})})}),e.jsx("g",{id:"score-token-def-accidentals-sharp",className:"token",children:e.jsx("text",{x:"-0.55",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-doublesharp",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-natural",className:"token",children:e.jsx("text",{x:"-0.3",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-flat",className:"token",children:e.jsx("text",{x:"-0.3",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-flatflat",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsxs("g",{id:"score-token-def-key-sharp",className:"token",children:[e.jsx("text",{x:"-0.55",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsxs("g",{id:"score-token-def-key-natural",className:"token",children:[e.jsx("text",{x:"-0.3",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsxs("g",{id:"score-token-def-key-flat",className:"token",children:[e.jsx("text",{x:"-0.3",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsx("g",{id:"score-token-def-noteheads-s0",className:"token",children:e.jsx("text",{x:"-0.913",children:""})}),e.jsx("g",{id:"score-token-def-noteheads-s1",className:"token",children:e.jsx("text",{x:"-0.632",children:""})}),e.jsx("g",{id:"score-token-def-noteheads-s2",className:"token",children:e.jsx("text",{x:"-0.599",children:""})}),e.jsxs("g",{id:"score-token-def-noteheads-s1-u",className:"token",children:[e.jsx("text",{x:"-1.264",children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"-0.06",y2:"-3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s2-u",className:"token",children:[e.jsx("text",{x:"-1.198",children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"-0.06",y2:"-3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s1-d",className:"token",children:[e.jsx("text",{children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"0.16",y2:"3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s2-d",className:"token",children:[e.jsx("text",{children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"0.16",y2:"3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsx("g",{id:"score-token-def-rests-M1",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-0",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-0o",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-1o",className:"token",children:e.jsx("text",{x:"-0.75",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-rests-2",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-3",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-4",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-5",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-6",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-flags-u3",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u4",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u5",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u6",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u7",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u8",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-slur-begin",className:"token",children:e.jsx("path",{d:"M0 0C0.5 -0.5 1 -0.6 1.5 -0.6L1.5 -0.4C1 -0.4 0.5 -0.4 0 0z"})}),e.jsx("g",{id:"score-token-def-slur-end",className:"token",children:e.jsx("path",{d:"M0 0C-0.5 -0.5 -1 -0.6 -1.5 -0.6L-1.5 -0.4C-1 -0.4 -0.5 -0.4 0 0z"})}),e.jsxs("g",{id:"score-token-def-volta-left",className:"token",children:[e.jsx("text",{x:"-0.25",y:"-0.5",children:""}),e.jsx("text",{x:"-0.25",y:"0.5",children:""}),e.jsx("line",{x1:"-0.5",x2:"-0.5",y1:"-2",y2:"2"})]}),e.jsxs("g",{id:"score-token-def-volta-right",className:"token",children:[e.jsx("text",{x:"-0.25",y:"-0.5",children:""}),e.jsx("text",{x:"-0.25",y:"0.5",children:""}),e.jsx("line",{x1:"0.5",x2:"0.5",y1:"-2",y2:"2"})]}),e.jsxs("g",{id:"score-token-def-bar-terminal",className:"token",children:[e.jsx("rect",{x:"-0.064",y:"-2",width:"0.128",height:"4"}),e.jsx("rect",{x:"0.27",y:"-2",width:"0.4",height:"4"})]}),e.jsxs("g",{id:"score-token-def-bar-segment",className:"token",children:[e.jsx("rect",{x:"-0.359",y:"-2",width:"0.128",height:"4"}),e.jsx("rect",{x:"0.231",y:"-2",width:"0.128",height:"4"})]}),e.jsx("g",{id:"score-token-def-dot",className:"token",children:e.jsx("text",{children:""})}),e.jsxs("g",{id:"score-token-def-dotdot",className:"token",children:[e.jsx("text",{children:""}),e.jsx("text",{x:"0.8",children:""})]}),e.jsx("g",{id:"score-token-def-f",className:"token",children:e.jsx("text",{x:"-0.6",y:"0.5",children:"f"})}),e.jsx("g",{id:"score-token-def-m",className:"token",children:e.jsx("text",{x:"-0.9",y:"0.5",children:"m"})}),e.jsx("g",{id:"score-token-def-n",className:"token",children:e.jsx("text",{x:"-0.9",y:"0.5",children:"n"})}),e.jsx("g",{id:"score-token-def-p",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"p"})}),e.jsx("g",{id:"score-token-def-r",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"r"})}),e.jsx("g",{id:"score-token-def-s",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"s"})}),e.jsx("g",{id:"score-token-def-z",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"z"})}),e.jsx("g",{id:"score-token-def-scripts-ufermata",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-ushortfermata",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-sforzato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-staccato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-ustaccatissimo",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-turn",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-trill",className:"token",children:e.jsx("text",{y:"0.5",children:""})}),e.jsx("g",{id:"score-token-def-scripts-segno",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-coda",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-arpeggio",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:""})}),e.jsx("g",{id:"score-token-def-scripts-prall",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-mordent",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-umarcato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-tenuto",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-uportato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-pedal-star",className:"token",children:e.jsx("text",{x:"-0.78",y:"0.78",children:""})}),e.jsx("g",{id:"score-token-def-pedal-Ped",className:"token",children:e.jsx("text",{x:"-1.6",y:"0.7",children:""})}),e.jsx("g",{id:"score-token-def-BOS",className:"token",children:e.jsx("text",{x:"-3",y:"1.04",children:"▶"})}),e.jsx("g",{id:"score-token-def-BeamLeft",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"├"})}),e.jsx("g",{id:"score-token-def-BeamContinue",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"┼"})}),e.jsx("g",{id:"score-token-def-BeamRight",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"┤"})}),e.jsx("g",{id:"score-token-def-GraceNotehead",className:"token",children:e.jsx("text",{x:"-0.36",className:"s-grace",children:""})})]}),xe=d.memo(de),he=({score:l,pageIndex:o,cursorPosition:i,onSeekPosition:c,getPage:f,showSource:s})=>{var B,y,N;const r=d.useRef(null),x=te(r,{root:null,rootMargin:"100px",threshold:.1}),n=l.pages[o],a=d.useRef(null),[j]=d.useState(!1),[g,p]=d.useState(0),m=d.useMemo(()=>{let t=0;if(i){let u=0;for(const[v,b]of l.pages.entries()){if(i.system>=u-1&&i.system<u+b.systems.length){t=+v,t!=g&&p(t);break}u+=b.systems.length}}return t},[i==null?void 0:i.system]);d.useEffect(()=>{a.current&&a.current.scrollIntoView({block:"center",behavior:"smooth"})},[a.current,m]),d.useEffect(()=>{f&&f(g)},[g]);const k=n.source.dimensions.width/n.source.interval,T=n.source.dimensions.height/n.source.interval,M=n.width,$=n.height,[z,A,W,E,O,Y]=n.source.matrix,F=[z,A,W,E,-1/2*z*k+-1/2*W*T+1/2*M+O,-1/2*A*k+-1/2*E*T+1/2*$+Y];return n.systems.length>0?e.jsx("div",{ref:r,children:x!=null&&x.isIntersecting?e.jsxs("svg",{className:C("graph",{}),style:{objectFit:"contain"},viewBox:`0 0 ${n.width} ${n.height}`,children:[e.jsx(xe,{}),s?e.jsx("image",{x:0,y:0,width:k,height:T,href:se(n.source.url,{width:414}),transform:`matrix(${F.join(",")})`}):null,!s||s&&!l.pages.some(t=>t.source.needGauge)?(B=n==null?void 0:n.systems)==null?void 0:B.map((t,u)=>e.jsx(ae,{score:l,page:n,pageIndex:o,system:t,systemIndex:u,showSource:s},u)):null,j&&(n==null?void 0:n.semantics)&&e.jsx("g",{children:(y=n==null?void 0:n.semantics)==null?void 0:y.map((t,u)=>{var v,b,h,w,S;if(t.semantic===H.rect_Text)return e.jsx("g",{transform:`translate(${t.x}, ${t.y}) ${(v=t.extension)!=null&&v.theta?`rotate(${((b=t.extension)==null?void 0:b.theta)*180/Math.PI})`:""}`,color:"rgba(25, 175, 230, 0.6)",children:e.jsxs("text",{dominantBaseline:"hanging",x:0,y:-t.extension.height/2,textAnchor:"middle",style:{fontSize:(h=t.extension)==null?void 0:h.height},children:[(w=t.extension)==null?void 0:w.text,e.jsx("title",{children:((S=t.extension)==null?void 0:S.type)||t.semantic})]})},u)})}),!s&&(n==null?void 0:n.tokens)&&e.jsx("g",{children:(N=n==null?void 0:n.tokens)==null?void 0:N.map((t,u)=>{if(t.type===J.Text)return e.jsx("g",{transform:`translate(${t.x}, ${t.y})`,color:"rgba(25, 175, 230, 0.6)",className:"token",children:e.jsxs("text",{dominantBaseline:"hanging",x:0,y:-t.fontSize/2,textAnchor:"middle",style:{fontSize:t.fontSize},className:C(t.textType),children:[t.text,e.jsx("title",{children:t.textType})]})},u)})}),n.systems.map((t,u)=>{const v=l.pages.slice(0,o).reduce((b,h)=>b+h.systems.length,0)+u;return e.jsxs("g",{className:C("system"),transform:`translate(${t.left}, ${t.top})`,children:[e.jsx("rect",{style:{opacity:0},x:0,y:t.noteRange.top,width:t.width,height:t.noteRange.bottom-t.noteRange.top,onClick:b=>{const h=b.target,w=h.getBoundingClientRect(),S=b.clientX-w.left,L=h.getBBox(),I=S/w.width*L.width;c({system:v,x:I})}}),(i==null?void 0:i.system)===v?e.jsx("line",{ref:a,transform:`translate(${i.x}, 0)`,x1:0,x2:0,y1:t.noteRange.top,y2:t.noteRange.bottom,style:{stroke:"rgb(173 216 230 / 80%)",strokeWidth:1}}):null]},u)})]}):e.jsx("svg",{className:"graph",style:{objectFit:"contain"},viewBox:`0 0 ${n.width} ${n.height}`})}):e.jsx("img",{src:n.source.url,alt:n.source.name,style:{width:"100%"}})},me=d.memo(he),je=({score:l,bpmValue:o})=>{var F,B;const i=V(),c=d.useRef(new re(performance)),[f,s]=d.useState(null),r=d.useRef(null),x=d.useRef(null),[n,a]=d.useState(!1),[j,g]=d.useState(!1),[p,m]=d.useState(o||((F=l==null?void 0:l.spartito)==null?void 0:F.headBPM)),[k,T]=d.useState(!1),[M,$]=d.useState(1),[z,A]=d.useState(!0);d.useEffect(()=>{Number.isFinite(o)&&m(o)},[o]),d.useEffect(()=>(R.MidiAudio.WebAudio.empty()?R.MidiAudio.loadPlugin({soundfontUrl:"/soundfont/",api:"webaudio"}).then(()=>{g(!0),console.debug("Soundfont loaded.")}):g(!0),()=>{r.current&&r.current.dispose()}),[]);const W=d.useCallback(async y=>{(!r.current||!x.current)&&O();const N=r.current.isPlaying;N&&(r.current.pause(),await new Promise(t=>setTimeout(t,0)),document.querySelectorAll(".notePlayOn").forEach(t=>t.classList.remove("notePlayOn"))),r.current.progressTicks=x.current.lookupTick(y),N&&E()},[x.current]),E=()=>{var y,N;!((y=l.systems)!=null&&y.length)||!((N=l.spartito)!=null&&N.regulated)||!j||((!r.current||k)&&(T(!1),O()),r.current?r.current.isPlaying?(r.current.pause(),a(!1)):(r.current.play({nextFrame:()=>(r.current&&x.current&&s(x.current.lookupPosition(r.current.progressTicks)),new Promise(t=>requestAnimationFrame(()=>t())))}),a(!0)):console.log("暂时无法播放"))},O=()=>{const{notation:y,tokenMap:N}=l.spartito.perform(),t=l.getMeasureLayout(),u=t?t.serialize(X.Full):Array(y.measures.length).fill(null).map((h,w)=>w+1),v=y.toPerformingNotationWithEvents(u);v.scaleTempo({headTempo:6e7/p}),x.current=Q.createFromNotation(v,N);const b=r.current?r.current.progressTicks:0;r.current&&r.current.dispose(),r.current=new R.MidiPlayer(v,{cacheSpan:200,onMidi:(h,w)=>{let S=null;switch(h.subtype){case"noteOn":h.channel!=null&&h.noteNumber!=null&&h.velocity!=null&&R.MidiAudio.noteOn(h.channel,h.noteNumber,h.velocity,w),S=()=>{var L;return(L=h==null?void 0:h.ids)==null?void 0:L.map(I=>{const P=document.getElementById(I);P&&P.classList.add("notePlayOn")})};break;case"noteOff":h.channel!=null&&h.noteNumber!=null&&R.MidiAudio.noteOff(h.channel,h.noteNumber,w),S=()=>{var L;return(L=h==null?void 0:h.ids)==null?void 0:L.map(I=>{const P=document.getElementById(I);P&&P.classList.remove("notePlayOn")})};break}S&&c.current.appendTask(w,S)},onPlayFinish(){r.current&&(r.current.progressTicks=0),a(!1)},onTurnCursor(){r.current&&x.current&&s(x.current.lookupPosition(r.current.progressTicks))}}),r.current.progressTicks=b},Y=y=>{$(y+1)};return e.jsx("div",{className:"viewer-page",children:e.jsx("div",{style:{overflowY:"hidden"},children:e.jsxs("div",{className:"score-viewer",children:[(B=l==null?void 0:l.pages)==null?void 0:B.map((y,N)=>e.jsx("div",{className:"viewer-page-container",children:e.jsx(me,{score:l,pageIndex:N,cursorPosition:f,onSeekPosition:W,getPage:t=>Y(t),showSource:!z},N)},N)),e.jsx("div",{className:"checkOriginImg fz26 fw4 fc33",onClick:y=>{r.current&&r.current.pause(),a(!1)},children:i.formatMessage({id:"editor.viewOriginal"})})]})})})},ve=l=>{var r,x;const o=V(),i=_(),[c,f]=d.useState((i==null?void 0:i.id)||((x=(r=l==null?void 0:l.match)==null?void 0:r.params)==null?void 0:x.id));d.useEffect(()=>{i!=null&&i.id&&f(i.id)},[i==null?void 0:i.id]);const s=ne(async()=>{const n=JSON.parse(decodeURIComponent(c)),a=U(await Z(n.url),K);return a.assemble(1),a},[]);return s.loading?e.jsx(ee,{style:{width:"100vw",height:"100vh"},children:o.formatMessage({id:"common.loading"})}):e.jsx(je,{score:s.value})};export{ve as default};
|
|
|
|
| 1 |
+
import{r as d,j as e,a as _}from"./umi-e07d95da.js";import{T as G,p as q,S as H,a as J,r as U,m as R,L as X,s as K}from"./index-333c2577.js";import{S as Q}from"./scheduler-a7fa9c3c.js";import{p as Z}from"./processCompressedAESFile-07545094.js";import{S as ee}from"./index-c03929a6.js";import{c as C,t as se,u as V}from"./_setToString-5e7d8f22.js";import{u as te}from"./useIntersection-c0d72ee4.js";import{u as ne}from"./useAsync-139a6ea8.js";class re{timer;tasks={};handlers={};constructor(o=Date){this.timer=o}clear(){Object.values(this.handlers).forEach(o=>clearTimeout(o)),this.tasks={},this.handlers={}}getTask(o){const i=Math.max(o-this.timer.now(),0);return this.tasks[o]||(this.tasks[o]=new Promise(c=>{this.handlers[o]=setTimeout(c,i)}).then(()=>{delete this.tasks[o],delete this.handlers[o]})),this.tasks[o]}appendTask(o,i){this.tasks[o]=this.getTask(o).then(i)}}const ce=({translateX:l=0,translateY:o,width:i,additionalLines:c,...f})=>e.jsxs("g",{...f,className:"staff-lines",transform:`translate(${l}, ${o})`,children:[new Array(5).fill(null).map((s,r)=>e.jsx("line",{x1:0,x2:i,y1:r-2,y2:r-2},r)),c&&c.map((s,r)=>e.jsx("g",{children:Array(Math.abs(s.n)).fill(null).map((x,n)=>e.jsx("line",{x1:s.left,x2:s.right,y1:s.n>0?3+n:-3-n,y2:s.n>0?3+n:-3-n},n))},r))]}),ie=d.memo(ce),D=({score:l,page:o,pageIndex:i,system:c,systemIndex:f,staff:s,staffIndex:r,showSource:x})=>{var a;const n=l.pages.reduce((j,g,p)=>p<i?j+g.systems.reduce((m,k,T)=>{var M,$;return m+((($=(M=k.staves[0])==null?void 0:M.measures)==null?void 0:$.length)||0)},0):p===i?j+g.systems.reduce((m,k,T)=>{var M,$;return T<f?m+((($=(M=k.staves[0])==null?void 0:M.measures)==null?void 0:$.length)||0):m},0):j,0);return e.jsx(e.Fragment,{children:e.jsxs("g",{className:C("staff",{moving:!1}),transform:`translate(0, ${s.top})`,children:[e.jsxs("g",{children:[x?null:e.jsx(ie,{translateY:s.staffY,width:c.width,additionalLines:s.additionalLines}),(a=s==null?void 0:s.measures)==null?void 0:a.map((j,g)=>{var p;return e.jsxs("g",{children:[!x&&r===0&&g===0&&e.jsx("text",{x:j.left,y:Math.min(5,s.staffY-3),fontSize:g===0?1.4:.9,fill:"#e65019",children:n+g+1}),e.jsx("g",{transform:`translate(0, ${s.staffY})`,children:e.jsx("g",{className:"tokens",children:(p=j==null?void 0:j.tokens)==null?void 0:p.filter(m=>G.includes(m.type)).map((m,k)=>e.jsx("g",{className:C("token",{}),style:x?{color:"transparent"}:{},transform:`translate(${m.x}, ${m.y})`,id:m.id,onClick:()=>console.log(m),children:e.jsx("use",{xlinkHref:`#score-token-def-${m.typeId}`})},k))})})]},g)})]}),x?null:e.jsx("g",{className:"measure-bars",children:c.measureBars.map((j,g)=>e.jsx("g",{className:C("measure-bar"),transform:`translate(${j}, ${s.staffY-2})`,children:e.jsx("line",{x1:0,x2:0,y1:0,y2:4})},g))})]})})};d.memo(D);const oe=({layout:l,positions:o,nameDict:i={},...c})=>{const f=d.useMemo(()=>l.groups.map(s=>{const r=o[s.range[0]],x=o[s.range[1]];return{key:s.key,type:s.group.type,level:s.group.level||0,top:r.y-r.radius,bottom:x.y+x.radius,name:i[s.key]}}),[l,o,i]);return e.jsx("g",{...c,className:"staff-brackets",onClick:()=>{},children:f.map(s=>e.jsxs("g",{className:"group",transform:`translate(${s.level*-1.2}, 0)`,children:[s.type===2&&e.jsxs("g",{className:"bracket",children:[e.jsx("rect",{x:"-1.2",y:s.top,width:"0.45",height:s.bottom-s.top}),e.jsx("g",{transform:`translate(-1.2, ${s.top-.21})`,children:e.jsx("path",{transform:"scale(0.0040, -0.0040)",d:"M0 -56v91c0 12 10 21 22 21h43c164 0 281 136 377 272c10 14 32 -1 22 -15c-103 -145 -222 -369 -399 -369h-65z"})}),e.jsx("g",{transform:`translate(-1.2, ${s.bottom+.21})`,children:e.jsx("path",{transform:"scale(0.0040, -0.0040)",d:"M0 56h65c177 0 296 -224 399 -369c10 -14 -12 -29 -22 -15c-96 136 -213 272 -377 272h-43c-12 0 -22 9 -22 21v91z"})})]}),s.type===3&&e.jsxs("g",{className:"square",children:[e.jsx("line",{x1:"-0.9",x2:"-0.9",y1:s.top,y2:s.bottom,strokeWidth:"0.1"}),e.jsx("line",{x1:"-0.9",x2:"0",y1:s.top,y2:s.top,strokeWidth:"0.1"}),e.jsx("line",{x1:"-0.9",x2:"0",y1:s.bottom,y2:s.bottom,strokeWidth:"0.1"})]}),s.type===1&&e.jsx("g",{className:"brace",transform:`translate(-0.2, ${(s.top+s.bottom)/2})`,children:e.jsx("path",{transform:`scale(0.0040, ${-.004*(s.bottom-s.top)/15.1825})`,d:"M-208 -1336c0 312 124 616 124 912c0 156 -36 300 -144 416c0 4 -4 4 -4 8s4 4 4 8c108 116 144 260 144 416c0 296 -124 600 -124 912c0 212 52 420 196 576c16 16 40 -8 24 -24c-108 -120 -144 -264 -144 -420c0 -292 116 -588 116 -896c0 -212 -48 -416 -188 -572c140 -156 188 -360 188 -572c0 -308 -116 -604 -116 -896c0 -156 36 -300 144 -420c16 -16 -8 -40 -24 -24c-144 156 -196 364 -196 576z"})}),s.name&&e.jsx("g",{className:"name",transform:`translate(-2, ${(s.top+s.bottom)/2+1})`,children:e.jsx("text",{fontSize:2,children:s.name})})]},s.key))})},le=l=>{var x,n;const{score:o,pageIndex:i,system:c,systemIndex:f,showSource:s}=l;if(c.staves.length===0)return e.jsx("g",{},f);const r=q(o.staffLayoutCode);return e.jsxs("g",{className:C("system",{}),transform:`translate(${c.left}, ${c.top})`,children:[!s&&c.backgroundImage&&!((x=c.staves[0])!=null&&x.backgroundImage)&&!((n=c.staves[0])!=null&&n.maskImage)&&e.jsx("image",{className:"background",href:c.backgroundImage,...c.imagePosition||{}}),!s&&c.staves.length>=2&&e.jsx("line",{className:"connection",x1:0,x2:0,y1:c.connectionLine.top,y2:c.connectionLine.bottom}),!s&&c.staves.map((a,j)=>e.jsxs("g",{className:C("staff"),transform:`translate(0, ${a.top})`,children:[!s&&!a.maskImage&&a.backgroundImage&&e.jsx("image",{className:"background",href:a.backgroundImage,...a.imagePosition||{}}),!s&&a.maskImage&&e.jsx("image",{className:"background",href:a.maskImage,...a.imagePosition||{}})]},"staff-"+j)),c.staves.map((a,j)=>e.jsx(D,{...l,staff:a,staffIndex:j,showSource:s},j)),s?null:e.jsx("g",{className:"measure-bars",children:c.measureBars.map((a,j)=>e.jsx("g",{transform:`translate(${a}, 0)`,children:r.mask(c.staffMask).conjunctions.map((g,p)=>{const m=c.staves[p],k=c.staves[p+1];if(m&&k)return e.jsx("g",{transform:`translate(0, ${m.top+m.staffY+2})`,children:e.jsx("line",{className:C("staff-layout-measure-bar",{dashed:g===1,blank:g===0}),x1:"0",x2:"0",y1:0,y2:k.top+k.staffY-(m.top+m.staffY)-4})},p)})},j))}),s?null:e.jsx(oe,{layout:r.mask(c.staffMask),positions:c.staffPositions,nameDict:!c.prev||c.staffMask!==c.prev.staffMask?o.instrumentDict:{}})]},f)},ae=d.memo(le);const de=()=>e.jsxs("defs",{className:"score-token-defs",children:[e.jsx("g",{id:"score-token-def-clefs-G",className:"token",children:e.jsx("text",{x:"-1.3",children:""})}),e.jsx("g",{id:"score-token-def-clefs-F",className:"token",children:e.jsx("text",{x:"-1.06",children:""})}),e.jsx("g",{id:"score-token-def-clefs-C",className:"token",children:e.jsx("text",{x:"-1.06",children:""})}),e.jsx("g",{id:"score-token-def-timesig-C44",className:"token",children:e.jsx("text",{x:"-0.9",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-timesig-C22",className:"token",children:e.jsx("text",{x:"-0.9",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-timesig0",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"0"})}),e.jsx("g",{id:"score-token-def-timesig1",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"1"})}),e.jsx("g",{id:"score-token-def-timesig2",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"2"})}),e.jsx("g",{id:"score-token-def-timesig3",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"3"})}),e.jsx("g",{id:"score-token-def-timesig4",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"4"})}),e.jsx("g",{id:"score-token-def-timesig5",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"5"})}),e.jsx("g",{id:"score-token-def-timesig6",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"6"})}),e.jsx("g",{id:"score-token-def-timesig7",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"7"})}),e.jsx("g",{id:"score-token-def-timesig8",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"8"})}),e.jsx("g",{id:"score-token-def-timesig9",className:"token",children:e.jsx("text",{x:"-0.7",y:"1",children:"9"})}),e.jsx("g",{id:"score-token-def-octave-a",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"𝄶---"})}),e.jsx("g",{id:"score-token-def-octave-b",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"𝄷---"})}),e.jsx("g",{id:"score-token-def-octave-0",className:"token",children:e.jsx("text",{x:"-0.7",y:"0.6",className:"plain",children:"┐"})}),e.jsx("g",{id:"score-token-def-octave-8",className:"token",children:e.jsx("text",{y:"0.5",className:"plain",children:"8-----"})}),e.jsx("g",{id:"score-token-def-n0",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"0"})})}),e.jsx("g",{id:"score-token-def-n1",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"1"})})}),e.jsx("g",{id:"score-token-def-n2",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"2"})})}),e.jsx("g",{id:"score-token-def-n3",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"3"})})}),e.jsx("g",{id:"score-token-def-n4",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"4"})})}),e.jsx("g",{id:"score-token-def-n5",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"5"})})}),e.jsx("g",{id:"score-token-def-n6",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"6"})})}),e.jsx("g",{id:"score-token-def-n7",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"7"})})}),e.jsx("g",{id:"score-token-def-n8",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"8"})})}),e.jsx("g",{id:"score-token-def-n9",className:"token",children:e.jsx("g",{className:"number",children:e.jsx("text",{x:"-0.35",y:"0.5",children:"9"})})}),e.jsx("g",{id:"score-token-def-accidentals-sharp",className:"token",children:e.jsx("text",{x:"-0.55",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-doublesharp",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-natural",className:"token",children:e.jsx("text",{x:"-0.3",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-flat",className:"token",children:e.jsx("text",{x:"-0.3",children:""})}),e.jsx("g",{id:"score-token-def-accidentals-flatflat",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsxs("g",{id:"score-token-def-key-sharp",className:"token",children:[e.jsx("text",{x:"-0.55",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsxs("g",{id:"score-token-def-key-natural",className:"token",children:[e.jsx("text",{x:"-0.3",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsxs("g",{id:"score-token-def-key-flat",className:"token",children:[e.jsx("text",{x:"-0.3",children:""}),e.jsx("line",{x1:"-1",x2:"-1",y1:"-1",y2:"1",stroke:"black",strokeWidth:"0.08"})]}),e.jsx("g",{id:"score-token-def-noteheads-s0",className:"token",children:e.jsx("text",{x:"-0.913",children:""})}),e.jsx("g",{id:"score-token-def-noteheads-s1",className:"token",children:e.jsx("text",{x:"-0.632",children:""})}),e.jsx("g",{id:"score-token-def-noteheads-s2",className:"token",children:e.jsx("text",{x:"-0.599",children:""})}),e.jsxs("g",{id:"score-token-def-noteheads-s1-u",className:"token",children:[e.jsx("text",{x:"-1.264",children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"-0.06",y2:"-3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s2-u",className:"token",children:[e.jsx("text",{x:"-1.198",children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"-0.06",y2:"-3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s1-d",className:"token",children:[e.jsx("text",{children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"0.16",y2:"3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsxs("g",{id:"score-token-def-noteheads-s2-d",className:"token",children:[e.jsx("text",{children:""}),e.jsx("line",{x1:"0",x2:"0",y1:"0.16",y2:"3.5",stroke:"currentColor",strokeWidth:"0.12",strokeLinecap:"round",className:"stem"})]}),e.jsx("g",{id:"score-token-def-rests-M1",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-0",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-0o",className:"token",children:e.jsx("text",{x:"-0.75",y:"-1",children:""})}),e.jsx("g",{id:"score-token-def-rests-1o",className:"token",children:e.jsx("text",{x:"-0.75",y:"0",children:""})}),e.jsx("g",{id:"score-token-def-rests-2",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-3",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-4",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-5",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-rests-6",className:"token",children:e.jsx("text",{x:"-0.5",children:""})}),e.jsx("g",{id:"score-token-def-flags-u3",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u4",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u5",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u6",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u7",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-flags-u8",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-slur-begin",className:"token",children:e.jsx("path",{d:"M0 0C0.5 -0.5 1 -0.6 1.5 -0.6L1.5 -0.4C1 -0.4 0.5 -0.4 0 0z"})}),e.jsx("g",{id:"score-token-def-slur-end",className:"token",children:e.jsx("path",{d:"M0 0C-0.5 -0.5 -1 -0.6 -1.5 -0.6L-1.5 -0.4C-1 -0.4 -0.5 -0.4 0 0z"})}),e.jsxs("g",{id:"score-token-def-volta-left",className:"token",children:[e.jsx("text",{x:"-0.25",y:"-0.5",children:""}),e.jsx("text",{x:"-0.25",y:"0.5",children:""}),e.jsx("line",{x1:"-0.5",x2:"-0.5",y1:"-2",y2:"2"})]}),e.jsxs("g",{id:"score-token-def-volta-right",className:"token",children:[e.jsx("text",{x:"-0.25",y:"-0.5",children:""}),e.jsx("text",{x:"-0.25",y:"0.5",children:""}),e.jsx("line",{x1:"0.5",x2:"0.5",y1:"-2",y2:"2"})]}),e.jsxs("g",{id:"score-token-def-bar-terminal",className:"token",children:[e.jsx("rect",{x:"-0.064",y:"-2",width:"0.128",height:"4"}),e.jsx("rect",{x:"0.27",y:"-2",width:"0.4",height:"4"})]}),e.jsxs("g",{id:"score-token-def-bar-segment",className:"token",children:[e.jsx("rect",{x:"-0.359",y:"-2",width:"0.128",height:"4"}),e.jsx("rect",{x:"0.231",y:"-2",width:"0.128",height:"4"})]}),e.jsx("g",{id:"score-token-def-dot",className:"token",children:e.jsx("text",{children:""})}),e.jsxs("g",{id:"score-token-def-dotdot",className:"token",children:[e.jsx("text",{children:""}),e.jsx("text",{x:"0.8",children:""})]}),e.jsx("g",{id:"score-token-def-f",className:"token",children:e.jsx("text",{x:"-0.6",y:"0.5",children:"f"})}),e.jsx("g",{id:"score-token-def-m",className:"token",children:e.jsx("text",{x:"-0.9",y:"0.5",children:"m"})}),e.jsx("g",{id:"score-token-def-n",className:"token",children:e.jsx("text",{x:"-0.9",y:"0.5",children:"n"})}),e.jsx("g",{id:"score-token-def-p",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"p"})}),e.jsx("g",{id:"score-token-def-r",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"r"})}),e.jsx("g",{id:"score-token-def-s",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"s"})}),e.jsx("g",{id:"score-token-def-z",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:"z"})}),e.jsx("g",{id:"score-token-def-scripts-ufermata",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-ushortfermata",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-sforzato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-staccato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-ustaccatissimo",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-turn",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-trill",className:"token",children:e.jsx("text",{y:"0.5",children:""})}),e.jsx("g",{id:"score-token-def-scripts-segno",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-coda",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-arpeggio",className:"token",children:e.jsx("text",{x:"-0.5",y:"0.5",children:""})}),e.jsx("g",{id:"score-token-def-scripts-prall",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-mordent",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-umarcato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-tenuto",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-scripts-uportato",className:"token",children:e.jsx("text",{children:""})}),e.jsx("g",{id:"score-token-def-pedal-star",className:"token",children:e.jsx("text",{x:"-0.78",y:"0.78",children:""})}),e.jsx("g",{id:"score-token-def-pedal-Ped",className:"token",children:e.jsx("text",{x:"-1.6",y:"0.7",children:""})}),e.jsx("g",{id:"score-token-def-BOS",className:"token",children:e.jsx("text",{x:"-3",y:"1.04",children:"▶"})}),e.jsx("g",{id:"score-token-def-BeamLeft",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"├"})}),e.jsx("g",{id:"score-token-def-BeamContinue",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"┼"})}),e.jsx("g",{id:"score-token-def-BeamRight",className:"token",children:e.jsx("text",{x:"-0.73",y:"0.66",className:"s-beam",children:"┤"})}),e.jsx("g",{id:"score-token-def-GraceNotehead",className:"token",children:e.jsx("text",{x:"-0.36",className:"s-grace",children:""})})]}),xe=d.memo(de),he=({score:l,pageIndex:o,cursorPosition:i,onSeekPosition:c,getPage:f,showSource:s})=>{var B,y,N;const r=d.useRef(null),x=te(r,{root:null,rootMargin:"100px",threshold:.1}),n=l.pages[o],a=d.useRef(null),[j]=d.useState(!1),[g,p]=d.useState(0),m=d.useMemo(()=>{let t=0;if(i){let u=0;for(const[v,b]of l.pages.entries()){if(i.system>=u-1&&i.system<u+b.systems.length){t=+v,t!=g&&p(t);break}u+=b.systems.length}}return t},[i==null?void 0:i.system]);d.useEffect(()=>{a.current&&a.current.scrollIntoView({block:"center",behavior:"smooth"})},[a.current,m]),d.useEffect(()=>{f&&f(g)},[g]);const k=n.source.dimensions.width/n.source.interval,T=n.source.dimensions.height/n.source.interval,M=n.width,$=n.height,[z,A,W,E,O,Y]=n.source.matrix,F=[z,A,W,E,-1/2*z*k+-1/2*W*T+1/2*M+O,-1/2*A*k+-1/2*E*T+1/2*$+Y];return n.systems.length>0?e.jsx("div",{ref:r,children:x!=null&&x.isIntersecting?e.jsxs("svg",{className:C("graph",{}),style:{objectFit:"contain"},viewBox:`0 0 ${n.width} ${n.height}`,children:[e.jsx(xe,{}),s?e.jsx("image",{x:0,y:0,width:k,height:T,href:se(n.source.url,{width:414}),transform:`matrix(${F.join(",")})`}):null,!s||s&&!l.pages.some(t=>t.source.needGauge)?(B=n==null?void 0:n.systems)==null?void 0:B.map((t,u)=>e.jsx(ae,{score:l,page:n,pageIndex:o,system:t,systemIndex:u,showSource:s},u)):null,j&&(n==null?void 0:n.semantics)&&e.jsx("g",{children:(y=n==null?void 0:n.semantics)==null?void 0:y.map((t,u)=>{var v,b,h,w,S;if(t.semantic===H.rect_Text)return e.jsx("g",{transform:`translate(${t.x}, ${t.y}) ${(v=t.extension)!=null&&v.theta?`rotate(${((b=t.extension)==null?void 0:b.theta)*180/Math.PI})`:""}`,color:"rgba(25, 175, 230, 0.6)",children:e.jsxs("text",{dominantBaseline:"hanging",x:0,y:-t.extension.height/2,textAnchor:"middle",style:{fontSize:(h=t.extension)==null?void 0:h.height},children:[(w=t.extension)==null?void 0:w.text,e.jsx("title",{children:((S=t.extension)==null?void 0:S.type)||t.semantic})]})},u)})}),!s&&(n==null?void 0:n.tokens)&&e.jsx("g",{children:(N=n==null?void 0:n.tokens)==null?void 0:N.map((t,u)=>{if(t.type===J.Text)return e.jsx("g",{transform:`translate(${t.x}, ${t.y})`,color:"rgba(25, 175, 230, 0.6)",className:"token",children:e.jsxs("text",{dominantBaseline:"hanging",x:0,y:-t.fontSize/2,textAnchor:"middle",style:{fontSize:t.fontSize},className:C(t.textType),children:[t.text,e.jsx("title",{children:t.textType})]})},u)})}),n.systems.map((t,u)=>{const v=l.pages.slice(0,o).reduce((b,h)=>b+h.systems.length,0)+u;return e.jsxs("g",{className:C("system"),transform:`translate(${t.left}, ${t.top})`,children:[e.jsx("rect",{style:{opacity:0},x:0,y:t.noteRange.top,width:t.width,height:t.noteRange.bottom-t.noteRange.top,onClick:b=>{const h=b.target,w=h.getBoundingClientRect(),S=b.clientX-w.left,L=h.getBBox(),I=S/w.width*L.width;c({system:v,x:I})}}),(i==null?void 0:i.system)===v?e.jsx("line",{ref:a,transform:`translate(${i.x}, 0)`,x1:0,x2:0,y1:t.noteRange.top,y2:t.noteRange.bottom,style:{stroke:"rgb(173 216 230 / 80%)",strokeWidth:1}}):null]},u)})]}):e.jsx("svg",{className:"graph",style:{objectFit:"contain"},viewBox:`0 0 ${n.width} ${n.height}`})}):e.jsx("img",{src:n.source.url,alt:n.source.name,style:{width:"100%"}})},me=d.memo(he),je=({score:l,bpmValue:o})=>{var F,B;const i=V(),c=d.useRef(new re(performance)),[f,s]=d.useState(null),r=d.useRef(null),x=d.useRef(null),[n,a]=d.useState(!1),[j,g]=d.useState(!1),[p,m]=d.useState(o||((F=l==null?void 0:l.spartito)==null?void 0:F.headBPM)),[k,T]=d.useState(!1),[M,$]=d.useState(1),[z,A]=d.useState(!0);d.useEffect(()=>{Number.isFinite(o)&&m(o)},[o]),d.useEffect(()=>(R.MidiAudio.WebAudio.empty()?R.MidiAudio.loadPlugin({soundfontUrl:"/soundfont/",api:"webaudio"}).then(()=>{g(!0),console.debug("Soundfont loaded.")}):g(!0),()=>{r.current&&r.current.dispose()}),[]);const W=d.useCallback(async y=>{(!r.current||!x.current)&&O();const N=r.current.isPlaying;N&&(r.current.pause(),await new Promise(t=>setTimeout(t,0)),document.querySelectorAll(".notePlayOn").forEach(t=>t.classList.remove("notePlayOn"))),r.current.progressTicks=x.current.lookupTick(y),N&&E()},[x.current]),E=()=>{var y,N;!((y=l.systems)!=null&&y.length)||!((N=l.spartito)!=null&&N.regulated)||!j||((!r.current||k)&&(T(!1),O()),r.current?r.current.isPlaying?(r.current.pause(),a(!1)):(r.current.play({nextFrame:()=>(r.current&&x.current&&s(x.current.lookupPosition(r.current.progressTicks)),new Promise(t=>requestAnimationFrame(()=>t())))}),a(!0)):console.log("暂时无法播放"))},O=()=>{const{notation:y,tokenMap:N}=l.spartito.perform(),t=l.getMeasureLayout(),u=t?t.serialize(X.Full):Array(y.measures.length).fill(null).map((h,w)=>w+1),v=y.toPerformingNotationWithEvents(u);v.scaleTempo({headTempo:6e7/p}),x.current=Q.createFromNotation(v,N);const b=r.current?r.current.progressTicks:0;r.current&&r.current.dispose(),r.current=new R.MidiPlayer(v,{cacheSpan:200,onMidi:(h,w)=>{let S=null;switch(h.subtype){case"noteOn":h.channel!=null&&h.noteNumber!=null&&h.velocity!=null&&R.MidiAudio.noteOn(h.channel,h.noteNumber,h.velocity,w),S=()=>{var L;return(L=h==null?void 0:h.ids)==null?void 0:L.map(I=>{const P=document.getElementById(I);P&&P.classList.add("notePlayOn")})};break;case"noteOff":h.channel!=null&&h.noteNumber!=null&&R.MidiAudio.noteOff(h.channel,h.noteNumber,w),S=()=>{var L;return(L=h==null?void 0:h.ids)==null?void 0:L.map(I=>{const P=document.getElementById(I);P&&P.classList.remove("notePlayOn")})};break}S&&c.current.appendTask(w,S)},onPlayFinish(){r.current&&(r.current.progressTicks=0),a(!1)},onTurnCursor(){r.current&&x.current&&s(x.current.lookupPosition(r.current.progressTicks))}}),r.current.progressTicks=b},Y=y=>{$(y+1)};return e.jsx("div",{className:"viewer-page",children:e.jsx("div",{style:{overflowY:"hidden"},children:e.jsxs("div",{className:"score-viewer",children:[(B=l==null?void 0:l.pages)==null?void 0:B.map((y,N)=>e.jsx("div",{className:"viewer-page-container",children:e.jsx(me,{score:l,pageIndex:N,cursorPosition:f,onSeekPosition:W,getPage:t=>Y(t),showSource:!z},N)},N)),e.jsx("div",{className:"checkOriginImg fz26 fw4 fc33",onClick:y=>{r.current&&r.current.pause(),a(!1)},children:i.formatMessage({id:"editor.viewOriginal"})})]})})})},ve=l=>{var r,x;const o=V(),i=_(),[c,f]=d.useState((i==null?void 0:i.id)||((x=(r=l==null?void 0:l.match)==null?void 0:r.params)==null?void 0:x.id));d.useEffect(()=>{i!=null&&i.id&&f(i.id)},[i==null?void 0:i.id]);const s=ne(async()=>{const n=JSON.parse(decodeURIComponent(c)),a=U(await Z(n.url),K);return a.assemble(1),a},[]);return s.loading?e.jsx(ee,{style:{width:"100vw",height:"100vh"},children:o.formatMessage({id:"common.loading"})}):e.jsx(je,{score:s.value})};export{ve as default};
|
dist/assets/{index-2955973c.js → index-9b68877a.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import{r as de,c as ho,g as xo,j as se,R as Qt,_ as Et,b as Cc,d as Mr,e as ap,p as Mo,w as lp,f as cp,i as up,k as hp,a as dp}from"./umi-a7f55986.js";import{W as K1,C as ol,b as Rr,c as dh,E as ai,d as ni,e as ph,a as mt,f as fh,g as pp,h as ji,i as A1,j as fp,G as gp,k as mp,l as vp,n as yp,r as Ur,s as Xr,o as Cp,q as bp,t as ln,u as bc,m as er,v as Is,w as Ip,x as wp,y as Ap,z as Sp,S as sl,A as Ic,T as xp,P as Mp,B as wc,L as Ep,D as zp}from"./index-06d8da5b.js";import{A as Mn,g as Ft,h as kp,i as Nt,j as Ac,p as Lp,r as Hn,m as Un,u as zr,c as vt,k as Tp,l as po,q as wn,s as Rp,v as al,x as ll,y as Hp,z as U1,B as X1,D as Vp,E as _p,F as Np,G as Op,H as Pp,I as Dp,J as $p,K as Bp,L as mr,M as kr,f as gh,N as io,O as Sc,n as ws,P as Fp,Q as xc,R as Wp,S as Gp,T as jp,U as Zp}from"./_setToString-6c0c560b.js";import{r as Kp,u as di,a as mh,b as cl,i as Up,P as ul,c as Xp,I as Mc,d as hl,e as vh,f as Y1,g as dl,h as pl,j as yh,k as fl,l as gl,m as ml,n as Ch,o as bh,p as Ih,q as wh,A as Yp,s as Jp,t as Qp,v as qp,w as ef,x as tf,y as nf,z as As,B as rf,C as of,D as Nn,E as sf,S as af,F as lf,G as cf,H as uf,J as hf}from"./index.less_used_.module-f525c36f.js";import{S as df}from"./scheduler-a7fa9c3c.js";import{t as Ah,c as Pt,S as Sh,d as pf,p as vl,m as oo,i as Ec,n as Ss,P as ff,a as gf,b as mf,e as vf,u as yf,s as Cf,f as bf}from"./index-92446400.js";import{o as J1,d as Q1,i as xh,n as If,S as Jt,T as ha,C as yl,I as Hr,R as q1,e as Sr,M as g1,Q as Mh,f as wf,D as da,P as Af,q as Sf,b as Eh,L as zc,E as xf,c as Mf,g as Ef}from"./index-2293ea9c.js";import{_ as Mi,c as zf,a as kc,g as kf,b as cn,d as _t,i as Lf,r as jo,A as Tf,L as Rf,D as Hf,S as Vf}from"./confirm-2a771655.js";import{u as Lc,S as _f,P as Nf,A as Tc}from"./Tags-bc190257.js";import{G as Of}from"./gaugeRendererGL-9dc55e03.js";import{B as kt}from"./button-001dfcce.js";import{w as Pf,D as pa,P as fa,I as Rc,R as Df,a as zh,S as Zo,u as kh,A as Lh,b as Zi,c as ga,d as $f,F as Ln,e as qn,f as Bf}from"./useDebounce-15fcfd16.js";import{S as S1,d as Ff}from"./index-156661dd.js";import{S as Th,a as Wf}from"./index-10340e55.js";import{p as Gf}from"./processCompressedAESFile-8d6401c6.js";import{d as eo}from"./jszip.min-1e75c168.js";import{u as jf}from"./useIntersection-410a4d5c.js";var Zf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};const Kf=Zf;var Uf=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Kf}))},Xf=de.forwardRef(Uf);const ma=Xf;var Yf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-square",theme:"outlined"};const Jf=Yf;var Qf=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Jf}))},qf=de.forwardRef(Qf);const e4=qf;var t4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"};const n4=t4;var r4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:n4}))},i4=de.forwardRef(r4);const o4=i4;var s4={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};const a4=s4;var l4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:a4}))},c4=de.forwardRef(l4);const u4=c4;var h4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V650h182.9v148zm9.6-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z"}}]},name:"funnel-plot",theme:"outlined"};const d4=h4;var p4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:d4}))},f4=de.forwardRef(p4);const g4=f4;var m4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z"}}]},name:"gateway",theme:"outlined"};const v4=m4;var y4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:v4}))},C4=de.forwardRef(y4);const Rh=C4;var b4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const I4=b4;var w4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:I4}))},A4=de.forwardRef(w4);const Hc=A4;var S4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"};const x4=S4;var M4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:x4}))},E4=de.forwardRef(M4);const Vc=E4;var z4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z"}}]},name:"pause-circle",theme:"filled"};const k4=z4;var L4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:k4}))},T4=de.forwardRef(L4);const R4=T4;var H4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};const V4=H4;var _4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:V4}))},N4=de.forwardRef(_4);const O4=N4;var P4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926.8 397.1l-396-288a31.81 31.81 0 00-37.6 0l-396 288a31.99 31.99 0 00-11.6 35.8l151.3 466a32 32 0 0030.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z"}}]},name:"radar-chart",theme:"outlined"};const D4=P4;var $4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:D4}))},B4=de.forwardRef($4);const Hh=B4;var F4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const W4=F4;var G4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:W4}))},j4=de.forwardRef(G4);const Vh=j4;var Z4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 00288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}}]},name:"scissor",theme:"outlined"};const K4=Z4;var U4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:K4}))},X4=de.forwardRef(U4);const Y4=X4;var J4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0012.6 0l112-141.9c4.1-5.2.4-13-6.3-13z"}}]},name:"sort-ascending",theme:"outlined"};const Q4=J4;var q4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Q4}))},eg=de.forwardRef(q4);const tg=eg;var ng={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const rg=ng;var ig=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:rg}))},og=de.forwardRef(ig);const _c=og;function _h(){var e=de.useRef(!0);return e.current?(e.current=!1,!0):e.current}var sg=function(e,t){var n=_h();de.useEffect(function(){if(!n)return e()},t)};const ag=sg;var lg=function(e){e===void 0&&(e={});var t=de.useState(e),n=t[0],r=t[1],o=de.useCallback(function(s){r(function(i){return Object.assign({},i,s instanceof Function?s(i):s)})},[]);return[n,o]};const cg=lg;var ug=function(e,t){e===void 0&&(e=!0);var n=de.useCallback(function(r){var o=typeof e=="function"?e():!0;if(o)return r.preventDefault(),t&&(r.returnValue=t),t},[e,t]);de.useEffect(function(){if(e)return J1(window,"beforeunload",n),function(){return Q1(window,"beforeunload",n)}},[e,n])};const hg=ug;var dg=function(){var e=kp(),t=cg({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1],o=de.useCallback(function(s){if(e()){var i,d;try{if(typeof s!="string"&&typeof s!="number"){var S=new Error("Cannot copy typeof "+typeof s+" to clipboard, must be a string");r({value:s,error:S,noUserInteraction:!0});return}else if(s===""){var S=new Error("Cannot copy empty string to clipboard.");r({value:s,error:S,noUserInteraction:!0});return}d=s.toString(),i=Pf(d),r({value:d,error:void 0,noUserInteraction:i})}catch(g){r({value:d,error:g,noUserInteraction:i})}}},[]);return[n,o]};const pg=dg;var fg=function(e,t){var n=de.useState(t),r=n[0],o=n[1];return r==null?[e,o]:[r,o]};const gg=fg;var mg=xh?window:null,Nc=function(e){return!!e.addEventListener},Oc=function(e){return!!e.on},vg=function(e,t,n,r){n===void 0&&(n=mg),de.useEffect(function(){if(t&&n)return Nc(n)?J1(n,e,t,r):Oc(n)&&n.on(e,t,r),function(){Nc(n)?Q1(n,e,t,r):Oc(n)&&n.off(e,t,r)}},[e,t,n,JSON.stringify(r)])};const Nh=vg;var yg=function(e){return typeof e=="function"?e:typeof e=="string"?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},Cg=function(e,t,n,r){t===void 0&&(t=If),n===void 0&&(n={}),r===void 0&&(r=[e]);var o=n.event,s=o===void 0?"keydown":o,i=n.target,d=n.options,S=de.useMemo(function(){var g=yg(e),w=function(M){if(g(M))return t(M)};return w},r);Nh(s,S,i,d)};const Ai=Cg;var bg=function(e){var t=de.useState([!1,null]),n=t[0],r=t[1];return Ai(e,function(o){return r([!0,o])},{event:"keydown"},[n]),Ai(e,function(o){return r([!1,o])},{event:"keyup"},[n]),n};const li=bg;var Ig=function(e,t,n,r){r===void 0&&(r=li);var o=r(e),s=o[0],i=o[1];ag(function(){!s&&n?n(i):s&&t&&t(i)},[s])};const Pc=Ig;var wg=function(e,t){de.useEffect(function(){return e&&e(),function(){t&&t()}},[])};const Ag=wg;function va(e){if(e){if(e.tagName==="BODY")return e;if(e.tagName==="IFRAME"){var t=e.contentDocument;return t?t.body:null}else if(!e.offsetParent)return null}else return null;return va(e.offsetParent)}function Dc(e){var t=e||window.event;return t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var $c=xh&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),fi=new Map,Bc=typeof document=="object"?document:void 0,Ko=!1;const Sg=Bc?function(t,n){t===void 0&&(t=!0);var r=de.useRef(Bc.body);n=n||r;var o=function(i){var d=fi.get(i);d?fi.set(i,{counter:d.counter+1,initialOverflow:d.initialOverflow}):(fi.set(i,{counter:1,initialOverflow:i.style.overflow}),$c?Ko||(J1(document,"touchmove",Dc,{passive:!1}),Ko=!0):i.style.overflow="hidden")},s=function(i){var d=fi.get(i);d&&(d.counter===1?(fi.delete(i),$c?(i.ontouchmove=null,Ko&&(Q1(document,"touchmove",Dc),Ko=!1)):i.style.overflow=d.initialOverflow):fi.set(i,{counter:d.counter-1,initialOverflow:d.initialOverflow}))};de.useEffect(function(){var i=va(n.current);i&&(t?o(i):s(i))},[t,n.current]),de.useEffect(function(){var i=va(n.current);if(i)return function(){s(i)}},[])}:function(t,n){};function xg(e,t,n){if(t===void 0&&(t=10),t<1)throw new Error("Capacity has to be greater than 1, got '"+t+"'");var r=_h(),o=de.useState(e),s=o[0],i=o[1],d=de.useRef(n??[]),S=de.useRef(0);r&&(d.current.length?(d.current[d.current.length-1]!==e&&d.current.push(e),d.current.length>t&&(d.current=d.current.slice(d.current.length-t))):d.current.push(e),S.current=d.current.length&&d.current.length-1);var g=de.useCallback(function(M){i(function(R){return M=Kp(M,R),M!==R&&(S.current<d.current.length-1&&(d.current=d.current.slice(0,S.current+1)),S.current=d.current.push(M)-1,d.current.length>t&&(d.current=d.current.slice(d.current.length-t))),M})},[s,t]),w=de.useMemo(function(){return{history:d.current,position:S.current,capacity:t,back:function(M){M===void 0&&(M=1),S.current&&i(function(){return S.current-=Math.min(M,S.current),d.current[S.current]})},forward:function(M){M===void 0&&(M=1),S.current!==d.current.length-1&&i(function(){return S.current=Math.min(S.current+M,d.current.length-1),d.current[S.current]})},go:function(M){M!==S.current&&i(function(){return S.current=M<0?Math.max(d.current.length+M,0):Math.min(d.current.length-1,M),d.current[S.current]})}}},[s]);return[s,g,w]}var Mg=function(e){e===void 0&&(e=new Set);var t=de.useState(e),n=t[0],r=t[1],o=de.useMemo(function(){var i=function(g){return r(function(w){return new Set(Ac(Array.from(w),[g]))})},d=function(g){return r(function(w){return new Set(Array.from(w).filter(function(M){return M!==g}))})},S=function(g){return r(function(w){return w.has(g)?new Set(Array.from(w).filter(function(M){return M!==g})):new Set(Ac(Array.from(w),[g]))})};return{add:i,remove:d,toggle:S,reset:function(){return r(e)},clear:function(){return r(new Set)}}},[r]),s=Nt({has:de.useCallback(function(i){return n.has(i)},[n])},o);return[n,s]};const Eg=Mg;var zg=function(){var e=de.useState(function(){return window.location.hash}),t=e[0],n=e[1],r=de.useCallback(function(){n(window.location.hash)},[]);Ag(function(){J1(window,"hashchange",r)},function(){Q1(window,"hashchange",r)});var o=de.useCallback(function(s){s!==t&&(window.location.hash=s)},[t]);return[t,o]},ya={exports:{}},Fc={},Wc;function kg(){return Wc||(Wc=1),Fc}(function(e,t){(function(n,r){r(t,kg())})(ho,function(n,r){r=r&&r.hasOwnProperty("default")?r.default:r;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},s=function(ze,te){if(!(ze instanceof te))throw new TypeError("Cannot call a class as a function")},i=function(){function ze(te,le){for(var ae=0;ae<le.length;ae++){var he=le[ae];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(te,he.key,he)}}return function(te,le,ae){return le&&ze(te.prototype,le),ae&&ze(te,ae),te}}(),d=function ze(te,le,ae){te===null&&(te=Function.prototype);var he=Object.getOwnPropertyDescriptor(te,le);if(he===void 0){var ie=Object.getPrototypeOf(te);return ie===null?void 0:ze(ie,le,ae)}else{if("value"in he)return he.value;var ue=he.get;return ue===void 0?void 0:ue.call(ae)}},S=function(ze,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof te);ze.prototype=Object.create(te&&te.prototype,{constructor:{value:ze,enumerable:!1,writable:!0,configurable:!0}}),te&&(Object.setPrototypeOf?Object.setPrototypeOf(ze,te):ze.__proto__=te)},g=function(ze,te){if(!ze)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te&&(typeof te=="object"||typeof te=="function")?te:ze},w=function(){function ze(te,le){var ae=[],he=!0,ie=!1,ue=void 0;try{for(var pe=te[Symbol.iterator](),we;!(he=(we=pe.next()).done)&&(ae.push(we.value),!(le&&ae.length===le));he=!0);}catch(Se){ie=!0,ue=Se}finally{try{!he&&pe.return&&pe.return()}finally{if(ie)throw ue}}return ae}return function(te,le){if(Array.isArray(te))return te;if(Symbol.iterator in Object(te))return ze(te,le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),M=function(ze){if(Array.isArray(ze)){for(var te=0,le=Array(ze.length);te<ze.length;te++)le[te]=ze[te];return le}else return Array.from(ze)},R=function(){function ze(te){s(this,ze),this.selfOptions=te||{},this.pipes={}}return i(ze,[{key:"options",value:function(le){return le&&(this.selfOptions=le),this.selfOptions}},{key:"pipe",value:function(le,ae){var he=ae;if(typeof le=="string"){if(typeof he>"u")return this.pipes[le];this.pipes[le]=he}if(le&&le.name){if(he=le,he.processor===this)return he;this.pipes[he.name]=he}return he.processor=this,he}},{key:"process",value:function(le,ae){var he=le;he.options=this.options();for(var ie=ae||le.pipe||"default",ue=void 0,pe=void 0;ie;)typeof he.nextAfterChildren<"u"&&(he.next=he.nextAfterChildren,he.nextAfterChildren=null),typeof ie=="string"&&(ie=this.pipe(ie)),ie.process(he),pe=he,ue=ie,ie=null,he&&he.next&&(he=he.next,ie=pe.nextPipe||he.pipe||ue);return he.hasResult?he.result:void 0}}]),ze}(),V=function(){function ze(te){s(this,ze),this.name=te,this.filters=[]}return i(ze,[{key:"process",value:function(le){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var ae=this.debug,he=this.filters.length,ie=le,ue=0;ue<he;ue++){var pe=this.filters[ue];if(ae&&this.log("filter: "+pe.filterName),pe(ie),(typeof ie>"u"?"undefined":o(ie))==="object"&&ie.exiting){ie.exiting=!1;break}}!ie.next&&this.resultCheck&&this.resultCheck(ie)}},{key:"log",value:function(le){console.log("[jsondiffpatch] "+this.name+" pipe, "+le)}},{key:"append",value:function(){var le;return(le=this.filters).push.apply(le,arguments),this}},{key:"prepend",value:function(){var le;return(le=this.filters).unshift.apply(le,arguments),this}},{key:"indexOf",value:function(le){if(!le)throw new Error("a filter name is required");for(var ae=0;ae<this.filters.length;ae++){var he=this.filters[ae];if(he.filterName===le)return ae}throw new Error("filter not found: "+le)}},{key:"list",value:function(){return this.filters.map(function(le){return le.filterName})}},{key:"after",value:function(le){var ae=this.indexOf(le),he=Array.prototype.slice.call(arguments,1);if(!he.length)throw new Error("a filter is required");return he.unshift(ae+1,0),Array.prototype.splice.apply(this.filters,he),this}},{key:"before",value:function(le){var ae=this.indexOf(le),he=Array.prototype.slice.call(arguments,1);if(!he.length)throw new Error("a filter is required");return he.unshift(ae,0),Array.prototype.splice.apply(this.filters,he),this}},{key:"replace",value:function(le){var ae=this.indexOf(le),he=Array.prototype.slice.call(arguments,1);if(!he.length)throw new Error("a filter is required");return he.unshift(ae,1),Array.prototype.splice.apply(this.filters,he),this}},{key:"remove",value:function(le){var ae=this.indexOf(le);return this.filters.splice(ae,1),this}},{key:"clear",value:function(){return this.filters.length=0,this}},{key:"shouldHaveResult",value:function(le){if(le===!1){this.resultCheck=null;return}if(!this.resultCheck){var ae=this;return this.resultCheck=function(he){if(!he.hasResult){console.log(he);var ie=new Error(ae.name+" failed");throw ie.noResult=!0,ie}},this}}}]),ze}(),_=function(){function ze(){s(this,ze)}return i(ze,[{key:"setResult",value:function(le){return this.result=le,this.hasResult=!0,this}},{key:"exit",value:function(){return this.exiting=!0,this}},{key:"switchTo",value:function(le,ae){return typeof le=="string"||le instanceof V?this.nextPipe=le:(this.next=le,ae&&(this.nextPipe=ae)),this}},{key:"push",value:function(le,ae){return le.parent=this,typeof ae<"u"&&(le.childName=ae),le.root=this.root||this,le.options=le.options||this.options,this.children?(this.children[this.children.length-1].next=le,this.children.push(le)):(this.children=[le],this.nextAfterChildren=this.next||null,this.next=le),le.next=this,this}}]),ze}(),k=typeof Array.isArray=="function"?Array.isArray:function(ze){return ze instanceof Array};function z(ze){var te=/^\/(.*)\/([gimyu]*)$/.exec(ze.toString());return new RegExp(te[1],te[2])}function I(ze){if((typeof ze>"u"?"undefined":o(ze))!=="object")return ze;if(ze===null)return null;if(k(ze))return ze.map(I);if(ze instanceof Date)return new Date(ze.getTime());if(ze instanceof RegExp)return z(ze);var te={};for(var le in ze)Object.prototype.hasOwnProperty.call(ze,le)&&(te[le]=I(ze[le]));return te}var H=function(ze){S(te,ze);function te(le,ae){s(this,te);var he=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return he.left=le,he.right=ae,he.pipe="diff",he}return i(te,[{key:"setResult",value:function(ae){if(this.options.cloneDiffValues&&(typeof ae>"u"?"undefined":o(ae))==="object"){var he=typeof this.options.cloneDiffValues=="function"?this.options.cloneDiffValues:I;o(ae[0])==="object"&&(ae[0]=he(ae[0])),o(ae[1])==="object"&&(ae[1]=he(ae[1]))}return _.prototype.setResult.apply(this,arguments)}}]),te}(_),A=function(ze){S(te,ze);function te(le,ae){s(this,te);var he=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return he.left=le,he.delta=ae,he.pipe="patch",he}return te}(_),x=function(ze){S(te,ze);function te(le){s(this,te);var ae=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return ae.delta=le,ae.pipe="reverse",ae}return te}(_),p=typeof Array.isArray=="function"?Array.isArray:function(ze){return ze instanceof Array},v=function(te){if(te.left===te.right){te.setResult(void 0).exit();return}if(typeof te.left>"u"){if(typeof te.right=="function")throw new Error("functions are not supported");te.setResult([te.right]).exit();return}if(typeof te.right>"u"){te.setResult([te.left,0,0]).exit();return}if(typeof te.left=="function"||typeof te.right=="function")throw new Error("functions are not supported");if(te.leftType=te.left===null?"null":o(te.left),te.rightType=te.right===null?"null":o(te.right),te.leftType!==te.rightType){te.setResult([te.left,te.right]).exit();return}if(te.leftType==="boolean"||te.leftType==="number"){te.setResult([te.left,te.right]).exit();return}if(te.leftType==="object"&&(te.leftIsArray=p(te.left)),te.rightType==="object"&&(te.rightIsArray=p(te.right)),te.leftIsArray!==te.rightIsArray){te.setResult([te.left,te.right]).exit();return}te.left instanceof RegExp&&(te.right instanceof RegExp?te.setResult([te.left.toString(),te.right.toString()]).exit():te.setResult([te.left,te.right]).exit())};v.filterName="trivial";var y=function(te){if(typeof te.delta>"u"){te.setResult(te.left).exit();return}if(te.nested=!p(te.delta),!te.nested){if(te.delta.length===1){te.setResult(te.delta[0]).exit();return}if(te.delta.length===2){if(te.left instanceof RegExp){var le=/^\/(.*)\/([gimyu]+)$/.exec(te.delta[1]);if(le){te.setResult(new RegExp(le[1],le[2])).exit();return}}te.setResult(te.delta[1]).exit();return}te.delta.length===3&&te.delta[2]===0&&te.setResult(void 0).exit()}};y.filterName="trivial";var a=function(te){if(typeof te.delta>"u"){te.setResult(te.delta).exit();return}if(te.nested=!p(te.delta),!te.nested){if(te.delta.length===1){te.setResult([te.delta[0],0,0]).exit();return}if(te.delta.length===2){te.setResult([te.delta[1],te.delta[0]]).exit();return}te.delta.length===3&&te.delta[2]===0&&te.setResult([te.delta[0]]).exit()}};a.filterName="trivial";function h(ze){if(!(!ze||!ze.children)){for(var te=ze.children.length,le=void 0,ae=ze.result,he=0;he<te;he++)le=ze.children[he],!(typeof le.result>"u")&&(ae=ae||{},ae[le.childName]=le.result);ae&&ze.leftIsArray&&(ae._t="a"),ze.setResult(ae).exit()}}h.filterName="collectChildren";function u(ze){if(!(ze.leftIsArray||ze.leftType!=="object")){var te=void 0,le=void 0,ae=ze.options.propertyFilter;for(te in ze.left)Object.prototype.hasOwnProperty.call(ze.left,te)&&(ae&&!ae(te,ze)||(le=new H(ze.left[te],ze.right[te]),ze.push(le,te)));for(te in ze.right)Object.prototype.hasOwnProperty.call(ze.right,te)&&(ae&&!ae(te,ze)||typeof ze.left[te]>"u"&&(le=new H(void 0,ze.right[te]),ze.push(le,te)));if(!ze.children||ze.children.length===0){ze.setResult(void 0).exit();return}ze.exit()}}u.filterName="objects";var b=function(te){if(te.nested&&!te.delta._t){var le=void 0,ae=void 0;for(le in te.delta)ae=new A(te.left[le],te.delta[le]),te.push(ae,le);te.exit()}};b.filterName="objects";var m=function(te){if(!(!te||!te.children)&&!te.delta._t){for(var le=te.children.length,ae=void 0,he=0;he<le;he++)ae=te.children[he],Object.prototype.hasOwnProperty.call(te.left,ae.childName)&&ae.result===void 0?delete te.left[ae.childName]:te.left[ae.childName]!==ae.result&&(te.left[ae.childName]=ae.result);te.setResult(te.left).exit()}};m.filterName="collectChildren";var l=function(te){if(te.nested&&!te.delta._t){var le=void 0,ae=void 0;for(le in te.delta)ae=new x(te.delta[le]),te.push(ae,le);te.exit()}};l.filterName="objects";function c(ze){if(!(!ze||!ze.children)&&!ze.delta._t){for(var te=ze.children.length,le=void 0,ae={},he=0;he<te;he++)le=ze.children[he],ae[le.childName]!==le.result&&(ae[le.childName]=le.result);ze.setResult(ae).exit()}}c.filterName="collectChildren";var f=function(te,le,ae,he){return te[ae]===le[he]},C=function(te,le,ae,he){var ie=te.length,ue=le.length,pe=void 0,we=void 0,Se=[ie+1];for(pe=0;pe<ie+1;pe++)for(Se[pe]=[ue+1],we=0;we<ue+1;we++)Se[pe][we]=0;for(Se.match=ae,pe=1;pe<ie+1;pe++)for(we=1;we<ue+1;we++)ae(te,le,pe-1,we-1,he)?Se[pe][we]=Se[pe-1][we-1]+1:Se[pe][we]=Math.max(Se[pe-1][we],Se[pe][we-1]);return Se},T=function(te,le,ae,he){for(var ie=le.length,ue=ae.length,pe={sequence:[],indices1:[],indices2:[]};ie!==0&&ue!==0;){var we=te.match(le,ae,ie-1,ue-1,he);if(we)pe.sequence.unshift(le[ie-1]),pe.indices1.unshift(ie-1),pe.indices2.unshift(ue-1),--ie,--ue;else{var Se=te[ie][ue-1],Ae=te[ie-1][ue];Se>Ae?--ue:--ie}}return pe},L=function(te,le,ae,he){var ie=he||{},ue=C(te,le,ae||f,ie),pe=T(ue,te,le,ie);return typeof te=="string"&&typeof le=="string"&&(pe.sequence=pe.sequence.join("")),pe},O={get:L},P=3,F=typeof Array.isArray=="function"?Array.isArray:function(ze){return ze instanceof Array},B=typeof Array.prototype.indexOf=="function"?function(ze,te){return ze.indexOf(te)}:function(ze,te){for(var le=ze.length,ae=0;ae<le;ae++)if(ze[ae]===te)return ae;return-1};function W(ze,te,le,ae){for(var he=0;he<le;he++)for(var ie=ze[he],ue=0;ue<ae;ue++){var pe=te[ue];if(he!==ue&&ie===pe)return!0}}function Q(ze,te,le,ae,he){var ie=ze[le],ue=te[ae];if(ie===ue)return!0;if((typeof ie>"u"?"undefined":o(ie))!=="object"||(typeof ue>"u"?"undefined":o(ue))!=="object")return!1;var pe=he.objectHash;if(!pe)return he.matchByPosition&&le===ae;var we=void 0,Se=void 0;return typeof le=="number"?(he.hashCache1=he.hashCache1||[],we=he.hashCache1[le],typeof we>"u"&&(he.hashCache1[le]=we=pe(ie,le))):we=pe(ie),typeof we>"u"||(typeof ae=="number"?(he.hashCache2=he.hashCache2||[],Se=he.hashCache2[ae],typeof Se>"u"&&(he.hashCache2[ae]=Se=pe(ue,ae))):Se=pe(ue),typeof Se>"u")?!1:we===Se}var j=function(te){if(te.leftIsArray){var le={objectHash:te.options&&te.options.objectHash,matchByPosition:te.options&&te.options.matchByPosition},ae=0,he=0,ie=void 0,ue=void 0,pe=void 0,we=te.left,Se=te.right,Ae=we.length,ke=Se.length,Pe=void 0;for(Ae>0&&ke>0&&!le.objectHash&&typeof le.matchByPosition!="boolean"&&(le.matchByPosition=!W(we,Se,Ae,ke));ae<Ae&&ae<ke&&Q(we,Se,ae,ae,le);)ie=ae,Pe=new H(te.left[ie],te.right[ie]),te.push(Pe,ie),ae++;for(;he+ae<Ae&&he+ae<ke&&Q(we,Se,Ae-1-he,ke-1-he,le);)ue=Ae-1-he,pe=ke-1-he,Pe=new H(te.left[ue],te.right[pe]),te.push(Pe,pe),he++;var je=void 0;if(ae+he===Ae){if(Ae===ke){te.setResult(void 0).exit();return}for(je=je||{_t:"a"},ie=ae;ie<ke-he;ie++)je[ie]=[Se[ie]];te.setResult(je).exit();return}if(ae+he===ke){for(je=je||{_t:"a"},ie=ae;ie<Ae-he;ie++)je["_"+ie]=[we[ie],0,0];te.setResult(je).exit();return}delete le.hashCache1,delete le.hashCache2;var nt=we.slice(ae,Ae-he),ot=Se.slice(ae,ke-he),Ee=O.get(nt,ot,Q,le),Ge=[];for(je=je||{_t:"a"},ie=ae;ie<Ae-he;ie++)B(Ee.indices1,ie-ae)<0&&(je["_"+ie]=[we[ie],0,0],Ge.push(ie));var Je=!0;te.options&&te.options.arrays&&te.options.arrays.detectMove===!1&&(Je=!1);var Qe=!1;te.options&&te.options.arrays&&te.options.arrays.includeValueOnMove&&(Qe=!0);var at=Ge.length;for(ie=ae;ie<ke-he;ie++){var At=B(Ee.indices2,ie-ae);if(At<0){var Ct=!1;if(Je&&at>0){for(var dt=0;dt<at;dt++)if(ue=Ge[dt],Q(nt,ot,ue-ae,ie-ae,le)){je["_"+ue].splice(1,2,ie,P),Qe||(je["_"+ue][0]=""),pe=ie,Pe=new H(te.left[ue],te.right[pe]),te.push(Pe,pe),Ge.splice(dt,1),Ct=!0;break}}Ct||(je[ie]=[Se[ie]])}else ue=Ee.indices1[At]+ae,pe=Ee.indices2[At]+ae,Pe=new H(te.left[ue],te.right[pe]),te.push(Pe,pe)}te.setResult(je).exit()}};j.filterName="arrays";var E={numerically:function(te,le){return te-le},numericallyBy:function(te){return function(le,ae){return le[te]-ae[te]}}},Z=function(te){if(te.nested&&te.delta._t==="a"){var le=void 0,ae=void 0,he=te.delta,ie=te.left,ue=[],pe=[],we=[];for(le in he)if(le!=="_t")if(le[0]==="_")if(he[le][2]===0||he[le][2]===P)ue.push(parseInt(le.slice(1),10));else throw new Error("only removal or move can be applied at original array indices,"+(" invalid diff type: "+he[le][2]));else he[le].length===1?pe.push({index:parseInt(le,10),value:he[le][0]}):we.push({index:parseInt(le,10),delta:he[le]});for(ue=ue.sort(E.numerically),le=ue.length-1;le>=0;le--){ae=ue[le];var Se=he["_"+ae],Ae=ie.splice(ae,1)[0];Se[2]===P&&pe.push({index:Se[1],value:Ae})}pe=pe.sort(E.numericallyBy("index"));var ke=pe.length;for(le=0;le<ke;le++){var Pe=pe[le];ie.splice(Pe.index,0,Pe.value)}var je=we.length,nt=void 0;if(je>0)for(le=0;le<je;le++){var ot=we[le];nt=new A(te.left[ot.index],ot.delta),te.push(nt,ot.index)}if(!te.children){te.setResult(te.left).exit();return}te.exit()}};Z.filterName="arrays";var N=function(te){if(!(!te||!te.children)&&te.delta._t==="a"){for(var le=te.children.length,ae=void 0,he=0;he<le;he++)ae=te.children[he],te.left[ae.childName]=ae.result;te.setResult(te.left).exit()}};N.filterName="arraysCollectChildren";var K=function(te){if(!te.nested){te.delta[2]===P&&(te.newName="_"+te.delta[1],te.setResult([te.delta[0],parseInt(te.childName.substr(1),10),P]).exit());return}if(te.delta._t==="a"){var le=void 0,ae=void 0;for(le in te.delta)le!=="_t"&&(ae=new x(te.delta[le]),te.push(ae,le));te.exit()}};K.filterName="arrays";var X=function(te,le,ae){if(typeof le=="string"&&le[0]==="_")return parseInt(le.substr(1),10);if(F(ae)&&ae[2]===0)return"_"+le;var he=+le;for(var ie in te){var ue=te[ie];if(F(ue))if(ue[2]===P){var pe=parseInt(ie.substr(1),10),we=ue[1];if(we===+le)return pe;pe<=he&&we>he?he++:pe>=he&&we<he&&he--}else if(ue[2]===0){var Se=parseInt(ie.substr(1),10);Se<=he&&he++}else ue.length===1&&ie<=he&&he--}return he};function Y(ze){if(!(!ze||!ze.children)&&ze.delta._t==="a"){for(var te=ze.children.length,le=void 0,ae={_t:"a"},he=0;he<te;he++){le=ze.children[he];var ie=le.newName;typeof ie>"u"&&(ie=X(ze.delta,le.childName,le.result)),ae[ie]!==le.result&&(ae[ie]=le.result)}ze.setResult(ae).exit()}}Y.filterName="arraysCollectChildren";var oe=function(te){te.left instanceof Date?(te.right instanceof Date?te.left.getTime()!==te.right.getTime()?te.setResult([te.left,te.right]):te.setResult(void 0):te.setResult([te.left,te.right]),te.exit()):te.right instanceof Date&&te.setResult([te.left,te.right]).exit()};oe.filterName="dates";function ce(ze,te){return te={exports:{}},ze(te,te.exports),te.exports}var re=ce(function(ze){function te(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var le=-1,ae=1,he=0;te.prototype.diff_main=function(ie,ue,pe,we){typeof we>"u"&&(this.Diff_Timeout<=0?we=Number.MAX_VALUE:we=new Date().getTime()+this.Diff_Timeout*1e3);var Se=we;if(ie==null||ue==null)throw new Error("Null input. (diff_main)");if(ie==ue)return ie?[[he,ie]]:[];typeof pe>"u"&&(pe=!0);var Ae=pe,ke=this.diff_commonPrefix(ie,ue),Pe=ie.substring(0,ke);ie=ie.substring(ke),ue=ue.substring(ke),ke=this.diff_commonSuffix(ie,ue);var je=ie.substring(ie.length-ke);ie=ie.substring(0,ie.length-ke),ue=ue.substring(0,ue.length-ke);var nt=this.diff_compute_(ie,ue,Ae,Se);return Pe&&nt.unshift([he,Pe]),je&&nt.push([he,je]),this.diff_cleanupMerge(nt),nt},te.prototype.diff_compute_=function(ie,ue,pe,we){var Se;if(!ie)return[[ae,ue]];if(!ue)return[[le,ie]];var Ae=ie.length>ue.length?ie:ue,ke=ie.length>ue.length?ue:ie,Pe=Ae.indexOf(ke);if(Pe!=-1)return Se=[[ae,Ae.substring(0,Pe)],[he,ke],[ae,Ae.substring(Pe+ke.length)]],ie.length>ue.length&&(Se[0][0]=Se[2][0]=le),Se;if(ke.length==1)return[[le,ie],[ae,ue]];var je=this.diff_halfMatch_(ie,ue);if(je){var nt=je[0],ot=je[1],Ee=je[2],Ge=je[3],Je=je[4],Qe=this.diff_main(nt,Ee,pe,we),at=this.diff_main(ot,Ge,pe,we);return Qe.concat([[he,Je]],at)}return pe&&ie.length>100&&ue.length>100?this.diff_lineMode_(ie,ue,we):this.diff_bisect_(ie,ue,we)},te.prototype.diff_lineMode_=function(ie,ue,pe){var we=this.diff_linesToChars_(ie,ue);ie=we.chars1,ue=we.chars2;var Se=we.lineArray,Ae=this.diff_main(ie,ue,!1,pe);this.diff_charsToLines_(Ae,Se),this.diff_cleanupSemantic(Ae),Ae.push([he,""]);for(var ke=0,Pe=0,je=0,nt="",ot="";ke<Ae.length;){switch(Ae[ke][0]){case ae:je++,ot+=Ae[ke][1];break;case le:Pe++,nt+=Ae[ke][1];break;case he:if(Pe>=1&&je>=1){Ae.splice(ke-Pe-je,Pe+je),ke=ke-Pe-je;for(var we=this.diff_main(nt,ot,!1,pe),Ee=we.length-1;Ee>=0;Ee--)Ae.splice(ke,0,we[Ee]);ke=ke+we.length}je=0,Pe=0,nt="",ot="";break}ke++}return Ae.pop(),Ae},te.prototype.diff_bisect_=function(ie,ue,pe){for(var we=ie.length,Se=ue.length,Ae=Math.ceil((we+Se)/2),ke=Ae,Pe=2*Ae,je=new Array(Pe),nt=new Array(Pe),ot=0;ot<Pe;ot++)je[ot]=-1,nt[ot]=-1;je[ke+1]=0,nt[ke+1]=0;for(var Ee=we-Se,Ge=Ee%2!=0,Je=0,Qe=0,at=0,At=0,Ct=0;Ct<Ae&&!(new Date().getTime()>pe);Ct++){for(var dt=-Ct+Je;dt<=Ct-Qe;dt+=2){var bt=ke+dt,pt;dt==-Ct||dt!=Ct&&je[bt-1]<je[bt+1]?pt=je[bt+1]:pt=je[bt-1]+1;for(var Vt=pt-dt;pt<we&&Vt<Se&&ie.charAt(pt)==ue.charAt(Vt);)pt++,Vt++;if(je[bt]=pt,pt>we)Qe+=2;else if(Vt>Se)Je+=2;else if(Ge){var St=ke+Ee-dt;if(St>=0&&St<Pe&&nt[St]!=-1){var Bt=we-nt[St];if(pt>=Bt)return this.diff_bisectSplit_(ie,ue,pt,Vt,pe)}}}for(var hn=-Ct+at;hn<=Ct-At;hn+=2){var St=ke+hn,Bt;hn==-Ct||hn!=Ct&&nt[St-1]<nt[St+1]?Bt=nt[St+1]:Bt=nt[St-1]+1;for(var sn=Bt-hn;Bt<we&&sn<Se&&ie.charAt(we-Bt-1)==ue.charAt(Se-sn-1);)Bt++,sn++;if(nt[St]=Bt,Bt>we)At+=2;else if(sn>Se)at+=2;else if(!Ge){var bt=ke+Ee-hn;if(bt>=0&&bt<Pe&&je[bt]!=-1){var pt=je[bt],Vt=ke+pt-bt;if(Bt=we-Bt,pt>=Bt)return this.diff_bisectSplit_(ie,ue,pt,Vt,pe)}}}}return[[le,ie],[ae,ue]]},te.prototype.diff_bisectSplit_=function(ie,ue,pe,we,Se){var Ae=ie.substring(0,pe),ke=ue.substring(0,we),Pe=ie.substring(pe),je=ue.substring(we),nt=this.diff_main(Ae,ke,!1,Se),ot=this.diff_main(Pe,je,!1,Se);return nt.concat(ot)},te.prototype.diff_linesToChars_=function(ie,ue){var pe=[],we={};pe[0]="";function Se(Pe){for(var je="",nt=0,ot=-1,Ee=pe.length;ot<Pe.length-1;){ot=Pe.indexOf(`
|
| 2 |
`,nt),ot==-1&&(ot=Pe.length-1);var Ge=Pe.substring(nt,ot+1);nt=ot+1,(we.hasOwnProperty?we.hasOwnProperty(Ge):we[Ge]!==void 0)?je+=String.fromCharCode(we[Ge]):(je+=String.fromCharCode(Ee),we[Ge]=Ee,pe[Ee++]=Ge)}return je}var Ae=Se(ie),ke=Se(ue);return{chars1:Ae,chars2:ke,lineArray:pe}},te.prototype.diff_charsToLines_=function(ie,ue){for(var pe=0;pe<ie.length;pe++){for(var we=ie[pe][1],Se=[],Ae=0;Ae<we.length;Ae++)Se[Ae]=ue[we.charCodeAt(Ae)];ie[pe][1]=Se.join("")}},te.prototype.diff_commonPrefix=function(ie,ue){if(!ie||!ue||ie.charAt(0)!=ue.charAt(0))return 0;for(var pe=0,we=Math.min(ie.length,ue.length),Se=we,Ae=0;pe<Se;)ie.substring(Ae,Se)==ue.substring(Ae,Se)?(pe=Se,Ae=pe):we=Se,Se=Math.floor((we-pe)/2+pe);return Se},te.prototype.diff_commonSuffix=function(ie,ue){if(!ie||!ue||ie.charAt(ie.length-1)!=ue.charAt(ue.length-1))return 0;for(var pe=0,we=Math.min(ie.length,ue.length),Se=we,Ae=0;pe<Se;)ie.substring(ie.length-Se,ie.length-Ae)==ue.substring(ue.length-Se,ue.length-Ae)?(pe=Se,Ae=pe):we=Se,Se=Math.floor((we-pe)/2+pe);return Se},te.prototype.diff_commonOverlap_=function(ie,ue){var pe=ie.length,we=ue.length;if(pe==0||we==0)return 0;pe>we?ie=ie.substring(pe-we):pe<we&&(ue=ue.substring(0,pe));var Se=Math.min(pe,we);if(ie==ue)return Se;for(var Ae=0,ke=1;;){var Pe=ie.substring(Se-ke),je=ue.indexOf(Pe);if(je==-1)return Ae;ke+=je,(je==0||ie.substring(Se-ke)==ue.substring(0,ke))&&(Ae=ke,ke++)}},te.prototype.diff_halfMatch_=function(ie,ue){if(this.Diff_Timeout<=0)return null;var pe=ie.length>ue.length?ie:ue,we=ie.length>ue.length?ue:ie;if(pe.length<4||we.length*2<pe.length)return null;var Se=this;function Ae(Qe,at,At){for(var Ct=Qe.substring(At,At+Math.floor(Qe.length/4)),dt=-1,bt="",pt,Vt,St,Bt;(dt=at.indexOf(Ct,dt+1))!=-1;){var hn=Se.diff_commonPrefix(Qe.substring(At),at.substring(dt)),sn=Se.diff_commonSuffix(Qe.substring(0,At),at.substring(0,dt));bt.length<sn+hn&&(bt=at.substring(dt-sn,dt)+at.substring(dt,dt+hn),pt=Qe.substring(0,At-sn),Vt=Qe.substring(At+hn),St=at.substring(0,dt-sn),Bt=at.substring(dt+hn))}return bt.length*2>=Qe.length?[pt,Vt,St,Bt,bt]:null}var ke=Ae(pe,we,Math.ceil(pe.length/4)),Pe=Ae(pe,we,Math.ceil(pe.length/2)),je;if(!ke&&!Pe)return null;Pe?ke?je=ke[4].length>Pe[4].length?ke:Pe:je=Pe:je=ke;var nt,ot,Ee,Ge;ie.length>ue.length?(nt=je[0],ot=je[1],Ee=je[2],Ge=je[3]):(Ee=je[0],Ge=je[1],nt=je[2],ot=je[3]);var Je=je[4];return[nt,ot,Ee,Ge,Je]},te.prototype.diff_cleanupSemantic=function(ie){for(var ue=!1,pe=[],we=0,Se=null,Ae=0,ke=0,Pe=0,je=0,nt=0;Ae<ie.length;)ie[Ae][0]==he?(pe[we++]=Ae,ke=je,Pe=nt,je=0,nt=0,Se=ie[Ae][1]):(ie[Ae][0]==ae?je+=ie[Ae][1].length:nt+=ie[Ae][1].length,Se&&Se.length<=Math.max(ke,Pe)&&Se.length<=Math.max(je,nt)&&(ie.splice(pe[we-1],0,[le,Se]),ie[pe[we-1]+1][0]=ae,we--,we--,Ae=we>0?pe[we-1]:-1,ke=0,Pe=0,je=0,nt=0,Se=null,ue=!0)),Ae++;for(ue&&this.diff_cleanupMerge(ie),this.diff_cleanupSemanticLossless(ie),Ae=1;Ae<ie.length;){if(ie[Ae-1][0]==le&&ie[Ae][0]==ae){var ot=ie[Ae-1][1],Ee=ie[Ae][1],Ge=this.diff_commonOverlap_(ot,Ee),Je=this.diff_commonOverlap_(Ee,ot);Ge>=Je?(Ge>=ot.length/2||Ge>=Ee.length/2)&&(ie.splice(Ae,0,[he,Ee.substring(0,Ge)]),ie[Ae-1][1]=ot.substring(0,ot.length-Ge),ie[Ae+1][1]=Ee.substring(Ge),Ae++):(Je>=ot.length/2||Je>=Ee.length/2)&&(ie.splice(Ae,0,[he,ot.substring(0,Je)]),ie[Ae-1][0]=ae,ie[Ae-1][1]=Ee.substring(0,Ee.length-Je),ie[Ae+1][0]=le,ie[Ae+1][1]=ot.substring(Je),Ae++),Ae++}Ae++}},te.prototype.diff_cleanupSemanticLossless=function(ie){function ue(Je,Qe){if(!Je||!Qe)return 6;var at=Je.charAt(Je.length-1),At=Qe.charAt(0),Ct=at.match(te.nonAlphaNumericRegex_),dt=At.match(te.nonAlphaNumericRegex_),bt=Ct&&at.match(te.whitespaceRegex_),pt=dt&&At.match(te.whitespaceRegex_),Vt=bt&&at.match(te.linebreakRegex_),St=pt&&At.match(te.linebreakRegex_),Bt=Vt&&Je.match(te.blanklineEndRegex_),hn=St&&Qe.match(te.blanklineStartRegex_);return Bt||hn?5:Vt||St?4:Ct&&!bt&&pt?3:bt||pt?2:Ct||dt?1:0}for(var pe=1;pe<ie.length-1;){if(ie[pe-1][0]==he&&ie[pe+1][0]==he){var we=ie[pe-1][1],Se=ie[pe][1],Ae=ie[pe+1][1],ke=this.diff_commonSuffix(we,Se);if(ke){var Pe=Se.substring(Se.length-ke);we=we.substring(0,we.length-ke),Se=Pe+Se.substring(0,Se.length-ke),Ae=Pe+Ae}for(var je=we,nt=Se,ot=Ae,Ee=ue(we,Se)+ue(Se,Ae);Se.charAt(0)===Ae.charAt(0);){we+=Se.charAt(0),Se=Se.substring(1)+Ae.charAt(0),Ae=Ae.substring(1);var Ge=ue(we,Se)+ue(Se,Ae);Ge>=Ee&&(Ee=Ge,je=we,nt=Se,ot=Ae)}ie[pe-1][1]!=je&&(je?ie[pe-1][1]=je:(ie.splice(pe-1,1),pe--),ie[pe][1]=nt,ot?ie[pe+1][1]=ot:(ie.splice(pe+1,1),pe--))}pe++}},te.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,te.whitespaceRegex_=/\s/,te.linebreakRegex_=/[\r\n]/,te.blanklineEndRegex_=/\n\r?\n$/,te.blanklineStartRegex_=/^\r?\n\r?\n/,te.prototype.diff_cleanupEfficiency=function(ie){for(var ue=!1,pe=[],we=0,Se=null,Ae=0,ke=!1,Pe=!1,je=!1,nt=!1;Ae<ie.length;)ie[Ae][0]==he?(ie[Ae][1].length<this.Diff_EditCost&&(je||nt)?(pe[we++]=Ae,ke=je,Pe=nt,Se=ie[Ae][1]):(we=0,Se=null),je=nt=!1):(ie[Ae][0]==le?nt=!0:je=!0,Se&&(ke&&Pe&&je&&nt||Se.length<this.Diff_EditCost/2&&ke+Pe+je+nt==3)&&(ie.splice(pe[we-1],0,[le,Se]),ie[pe[we-1]+1][0]=ae,we--,Se=null,ke&&Pe?(je=nt=!0,we=0):(we--,Ae=we>0?pe[we-1]:-1,je=nt=!1),ue=!0)),Ae++;ue&&this.diff_cleanupMerge(ie)},te.prototype.diff_cleanupMerge=function(ie){ie.push([he,""]);for(var ue=0,pe=0,we=0,Se="",Ae="",ke;ue<ie.length;)switch(ie[ue][0]){case ae:we++,Ae+=ie[ue][1],ue++;break;case le:pe++,Se+=ie[ue][1],ue++;break;case he:pe+we>1?(pe!==0&&we!==0&&(ke=this.diff_commonPrefix(Ae,Se),ke!==0&&(ue-pe-we>0&&ie[ue-pe-we-1][0]==he?ie[ue-pe-we-1][1]+=Ae.substring(0,ke):(ie.splice(0,0,[he,Ae.substring(0,ke)]),ue++),Ae=Ae.substring(ke),Se=Se.substring(ke)),ke=this.diff_commonSuffix(Ae,Se),ke!==0&&(ie[ue][1]=Ae.substring(Ae.length-ke)+ie[ue][1],Ae=Ae.substring(0,Ae.length-ke),Se=Se.substring(0,Se.length-ke))),pe===0?ie.splice(ue-we,pe+we,[ae,Ae]):we===0?ie.splice(ue-pe,pe+we,[le,Se]):ie.splice(ue-pe-we,pe+we,[le,Se],[ae,Ae]),ue=ue-pe-we+(pe?1:0)+(we?1:0)+1):ue!==0&&ie[ue-1][0]==he?(ie[ue-1][1]+=ie[ue][1],ie.splice(ue,1)):ue++,we=0,pe=0,Se="",Ae="";break}ie[ie.length-1][1]===""&&ie.pop();var Pe=!1;for(ue=1;ue<ie.length-1;)ie[ue-1][0]==he&&ie[ue+1][0]==he&&(ie[ue][1].substring(ie[ue][1].length-ie[ue-1][1].length)==ie[ue-1][1]?(ie[ue][1]=ie[ue-1][1]+ie[ue][1].substring(0,ie[ue][1].length-ie[ue-1][1].length),ie[ue+1][1]=ie[ue-1][1]+ie[ue+1][1],ie.splice(ue-1,1),Pe=!0):ie[ue][1].substring(0,ie[ue+1][1].length)==ie[ue+1][1]&&(ie[ue-1][1]+=ie[ue+1][1],ie[ue][1]=ie[ue][1].substring(ie[ue+1][1].length)+ie[ue+1][1],ie.splice(ue+1,1),Pe=!0)),ue++;Pe&&this.diff_cleanupMerge(ie)},te.prototype.diff_xIndex=function(ie,ue){var pe=0,we=0,Se=0,Ae=0,ke;for(ke=0;ke<ie.length&&(ie[ke][0]!==ae&&(pe+=ie[ke][1].length),ie[ke][0]!==le&&(we+=ie[ke][1].length),!(pe>ue));ke++)Se=pe,Ae=we;return ie.length!=ke&&ie[ke][0]===le?Ae:Ae+(ue-Se)},te.prototype.diff_prettyHtml=function(ie){for(var ue=[],pe=/&/g,we=/</g,Se=/>/g,Ae=/\n/g,ke=0;ke<ie.length;ke++){var Pe=ie[ke][0],je=ie[ke][1],nt=je.replace(pe,"&").replace(we,"<").replace(Se,">").replace(Ae,"¶<br>");switch(Pe){case ae:ue[ke]='<ins style="background:#e6ffe6;">'+nt+"</ins>";break;case le:ue[ke]='<del style="background:#ffe6e6;">'+nt+"</del>";break;case he:ue[ke]="<span>"+nt+"</span>";break}}return ue.join("")},te.prototype.diff_text1=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++)ie[pe][0]!==ae&&(ue[pe]=ie[pe][1]);return ue.join("")},te.prototype.diff_text2=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++)ie[pe][0]!==le&&(ue[pe]=ie[pe][1]);return ue.join("")},te.prototype.diff_levenshtein=function(ie){for(var ue=0,pe=0,we=0,Se=0;Se<ie.length;Se++){var Ae=ie[Se][0],ke=ie[Se][1];switch(Ae){case ae:pe+=ke.length;break;case le:we+=ke.length;break;case he:ue+=Math.max(pe,we),pe=0,we=0;break}}return ue+=Math.max(pe,we),ue},te.prototype.diff_toDelta=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++)switch(ie[pe][0]){case ae:ue[pe]="+"+encodeURI(ie[pe][1]);break;case le:ue[pe]="-"+ie[pe][1].length;break;case he:ue[pe]="="+ie[pe][1].length;break}return ue.join(" ").replace(/%20/g," ")},te.prototype.diff_fromDelta=function(ie,ue){for(var pe=[],we=0,Se=0,Ae=ue.split(/\t/g),ke=0;ke<Ae.length;ke++){var Pe=Ae[ke].substring(1);switch(Ae[ke].charAt(0)){case"+":try{pe[we++]=[ae,decodeURI(Pe)]}catch{throw new Error("Illegal escape in diff_fromDelta: "+Pe)}break;case"-":case"=":var je=parseInt(Pe,10);if(isNaN(je)||je<0)throw new Error("Invalid number in diff_fromDelta: "+Pe);var nt=ie.substring(Se,Se+=je);Ae[ke].charAt(0)=="="?pe[we++]=[he,nt]:pe[we++]=[le,nt];break;default:if(Ae[ke])throw new Error("Invalid diff operation in diff_fromDelta: "+Ae[ke])}}if(Se!=ie.length)throw new Error("Delta length ("+Se+") does not equal source text length ("+ie.length+").");return pe},te.prototype.match_main=function(ie,ue,pe){if(ie==null||ue==null||pe==null)throw new Error("Null input. (match_main)");return pe=Math.max(0,Math.min(pe,ie.length)),ie==ue?0:ie.length?ie.substring(pe,pe+ue.length)==ue?pe:this.match_bitap_(ie,ue,pe):-1},te.prototype.match_bitap_=function(ie,ue,pe){if(ue.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var we=this.match_alphabet_(ue),Se=this;function Ae(pt,Vt){var St=pt/ue.length,Bt=Math.abs(pe-Vt);return Se.Match_Distance?St+Bt/Se.Match_Distance:Bt?1:St}var ke=this.Match_Threshold,Pe=ie.indexOf(ue,pe);Pe!=-1&&(ke=Math.min(Ae(0,Pe),ke),Pe=ie.lastIndexOf(ue,pe+ue.length),Pe!=-1&&(ke=Math.min(Ae(0,Pe),ke)));var je=1<<ue.length-1;Pe=-1;for(var nt,ot,Ee=ue.length+ie.length,Ge,Je=0;Je<ue.length;Je++){for(nt=0,ot=Ee;nt<ot;)Ae(Je,pe+ot)<=ke?nt=ot:Ee=ot,ot=Math.floor((Ee-nt)/2+nt);Ee=ot;var Qe=Math.max(1,pe-ot+1),at=Math.min(pe+ot,ie.length)+ue.length,At=Array(at+2);At[at+1]=(1<<Je)-1;for(var Ct=at;Ct>=Qe;Ct--){var dt=we[ie.charAt(Ct-1)];if(Je===0?At[Ct]=(At[Ct+1]<<1|1)&dt:At[Ct]=(At[Ct+1]<<1|1)&dt|((Ge[Ct+1]|Ge[Ct])<<1|1)|Ge[Ct+1],At[Ct]&je){var bt=Ae(Je,Ct-1);if(bt<=ke)if(ke=bt,Pe=Ct-1,Pe>pe)Qe=Math.max(1,2*pe-Pe);else break}}if(Ae(Je+1,pe)>ke)break;Ge=At}return Pe},te.prototype.match_alphabet_=function(ie){for(var ue={},pe=0;pe<ie.length;pe++)ue[ie.charAt(pe)]=0;for(var pe=0;pe<ie.length;pe++)ue[ie.charAt(pe)]|=1<<ie.length-pe-1;return ue},te.prototype.patch_addContext_=function(ie,ue){if(ue.length!=0){for(var pe=ue.substring(ie.start2,ie.start2+ie.length1),we=0;ue.indexOf(pe)!=ue.lastIndexOf(pe)&&pe.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)we+=this.Patch_Margin,pe=ue.substring(ie.start2-we,ie.start2+ie.length1+we);we+=this.Patch_Margin;var Se=ue.substring(ie.start2-we,ie.start2);Se&&ie.diffs.unshift([he,Se]);var Ae=ue.substring(ie.start2+ie.length1,ie.start2+ie.length1+we);Ae&&ie.diffs.push([he,Ae]),ie.start1-=Se.length,ie.start2-=Se.length,ie.length1+=Se.length+Ae.length,ie.length2+=Se.length+Ae.length}},te.prototype.patch_make=function(ie,ue,pe){var we,Se;if(typeof ie=="string"&&typeof ue=="string"&&typeof pe>"u")we=ie,Se=this.diff_main(we,ue,!0),Se.length>2&&(this.diff_cleanupSemantic(Se),this.diff_cleanupEfficiency(Se));else if(ie&&typeof ie=="object"&&typeof ue>"u"&&typeof pe>"u")Se=ie,we=this.diff_text1(Se);else if(typeof ie=="string"&&ue&&typeof ue=="object"&&typeof pe>"u")we=ie,Se=ue;else if(typeof ie=="string"&&typeof ue=="string"&&pe&&typeof pe=="object")we=ie,Se=pe;else throw new Error("Unknown call format to patch_make.");if(Se.length===0)return[];for(var Ae=[],ke=new te.patch_obj,Pe=0,je=0,nt=0,ot=we,Ee=we,Ge=0;Ge<Se.length;Ge++){var Je=Se[Ge][0],Qe=Se[Ge][1];switch(!Pe&&Je!==he&&(ke.start1=je,ke.start2=nt),Je){case ae:ke.diffs[Pe++]=Se[Ge],ke.length2+=Qe.length,Ee=Ee.substring(0,nt)+Qe+Ee.substring(nt);break;case le:ke.length1+=Qe.length,ke.diffs[Pe++]=Se[Ge],Ee=Ee.substring(0,nt)+Ee.substring(nt+Qe.length);break;case he:Qe.length<=2*this.Patch_Margin&&Pe&&Se.length!=Ge+1?(ke.diffs[Pe++]=Se[Ge],ke.length1+=Qe.length,ke.length2+=Qe.length):Qe.length>=2*this.Patch_Margin&&Pe&&(this.patch_addContext_(ke,ot),Ae.push(ke),ke=new te.patch_obj,Pe=0,ot=Ee,je=nt);break}Je!==ae&&(je+=Qe.length),Je!==le&&(nt+=Qe.length)}return Pe&&(this.patch_addContext_(ke,ot),Ae.push(ke)),Ae},te.prototype.patch_deepCopy=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++){var we=ie[pe],Se=new te.patch_obj;Se.diffs=[];for(var Ae=0;Ae<we.diffs.length;Ae++)Se.diffs[Ae]=we.diffs[Ae].slice();Se.start1=we.start1,Se.start2=we.start2,Se.length1=we.length1,Se.length2=we.length2,ue[pe]=Se}return ue},te.prototype.patch_apply=function(ie,ue){if(ie.length==0)return[ue,[]];ie=this.patch_deepCopy(ie);var pe=this.patch_addPadding(ie);ue=pe+ue+pe,this.patch_splitMax(ie);for(var we=0,Se=[],Ae=0;Ae<ie.length;Ae++){var ke=ie[Ae].start2+we,Pe=this.diff_text1(ie[Ae].diffs),je,nt=-1;if(Pe.length>this.Match_MaxBits?(je=this.match_main(ue,Pe.substring(0,this.Match_MaxBits),ke),je!=-1&&(nt=this.match_main(ue,Pe.substring(Pe.length-this.Match_MaxBits),ke+Pe.length-this.Match_MaxBits),(nt==-1||je>=nt)&&(je=-1))):je=this.match_main(ue,Pe,ke),je==-1)Se[Ae]=!1,we-=ie[Ae].length2-ie[Ae].length1;else{Se[Ae]=!0,we=je-ke;var ot;if(nt==-1?ot=ue.substring(je,je+Pe.length):ot=ue.substring(je,nt+this.Match_MaxBits),Pe==ot)ue=ue.substring(0,je)+this.diff_text2(ie[Ae].diffs)+ue.substring(je+Pe.length);else{var Ee=this.diff_main(Pe,ot,!1);if(Pe.length>this.Match_MaxBits&&this.diff_levenshtein(Ee)/Pe.length>this.Patch_DeleteThreshold)Se[Ae]=!1;else{this.diff_cleanupSemanticLossless(Ee);for(var Ge=0,Je,Qe=0;Qe<ie[Ae].diffs.length;Qe++){var at=ie[Ae].diffs[Qe];at[0]!==he&&(Je=this.diff_xIndex(Ee,Ge)),at[0]===ae?ue=ue.substring(0,je+Je)+at[1]+ue.substring(je+Je):at[0]===le&&(ue=ue.substring(0,je+Je)+ue.substring(je+this.diff_xIndex(Ee,Ge+at[1].length))),at[0]!==le&&(Ge+=at[1].length)}}}}}return ue=ue.substring(pe.length,ue.length-pe.length),[ue,Se]},te.prototype.patch_addPadding=function(ie){for(var ue=this.Patch_Margin,pe="",we=1;we<=ue;we++)pe+=String.fromCharCode(we);for(var we=0;we<ie.length;we++)ie[we].start1+=ue,ie[we].start2+=ue;var Se=ie[0],Ae=Se.diffs;if(Ae.length==0||Ae[0][0]!=he)Ae.unshift([he,pe]),Se.start1-=ue,Se.start2-=ue,Se.length1+=ue,Se.length2+=ue;else if(ue>Ae[0][1].length){var ke=ue-Ae[0][1].length;Ae[0][1]=pe.substring(Ae[0][1].length)+Ae[0][1],Se.start1-=ke,Se.start2-=ke,Se.length1+=ke,Se.length2+=ke}if(Se=ie[ie.length-1],Ae=Se.diffs,Ae.length==0||Ae[Ae.length-1][0]!=he)Ae.push([he,pe]),Se.length1+=ue,Se.length2+=ue;else if(ue>Ae[Ae.length-1][1].length){var ke=ue-Ae[Ae.length-1][1].length;Ae[Ae.length-1][1]+=pe.substring(0,ke),Se.length1+=ke,Se.length2+=ke}return pe},te.prototype.patch_splitMax=function(ie){for(var ue=this.Match_MaxBits,pe=0;pe<ie.length;pe++)if(!(ie[pe].length1<=ue)){var we=ie[pe];ie.splice(pe--,1);for(var Se=we.start1,Ae=we.start2,ke="";we.diffs.length!==0;){var Pe=new te.patch_obj,je=!0;for(Pe.start1=Se-ke.length,Pe.start2=Ae-ke.length,ke!==""&&(Pe.length1=Pe.length2=ke.length,Pe.diffs.push([he,ke]));we.diffs.length!==0&&Pe.length1<ue-this.Patch_Margin;){var nt=we.diffs[0][0],ot=we.diffs[0][1];nt===ae?(Pe.length2+=ot.length,Ae+=ot.length,Pe.diffs.push(we.diffs.shift()),je=!1):nt===le&&Pe.diffs.length==1&&Pe.diffs[0][0]==he&&ot.length>2*ue?(Pe.length1+=ot.length,Se+=ot.length,je=!1,Pe.diffs.push([nt,ot]),we.diffs.shift()):(ot=ot.substring(0,ue-Pe.length1-this.Patch_Margin),Pe.length1+=ot.length,Se+=ot.length,nt===he?(Pe.length2+=ot.length,Ae+=ot.length):je=!1,Pe.diffs.push([nt,ot]),ot==we.diffs[0][1]?we.diffs.shift():we.diffs[0][1]=we.diffs[0][1].substring(ot.length))}ke=this.diff_text2(Pe.diffs),ke=ke.substring(ke.length-this.Patch_Margin);var Ee=this.diff_text1(we.diffs).substring(0,this.Patch_Margin);Ee!==""&&(Pe.length1+=Ee.length,Pe.length2+=Ee.length,Pe.diffs.length!==0&&Pe.diffs[Pe.diffs.length-1][0]===he?Pe.diffs[Pe.diffs.length-1][1]+=Ee:Pe.diffs.push([he,Ee])),je||ie.splice(++pe,0,Pe)}}},te.prototype.patch_toText=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++)ue[pe]=ie[pe];return ue.join("")},te.prototype.patch_fromText=function(ie){var ue=[];if(!ie)return ue;for(var pe=ie.split(`
|
| 3 |
`),we=0,Se=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;we<pe.length;){var Ae=pe[we].match(Se);if(!Ae)throw new Error("Invalid patch string: "+pe[we]);var ke=new te.patch_obj;for(ue.push(ke),ke.start1=parseInt(Ae[1],10),Ae[2]===""?(ke.start1--,ke.length1=1):Ae[2]=="0"?ke.length1=0:(ke.start1--,ke.length1=parseInt(Ae[2],10)),ke.start2=parseInt(Ae[3],10),Ae[4]===""?(ke.start2--,ke.length2=1):Ae[4]=="0"?ke.length2=0:(ke.start2--,ke.length2=parseInt(Ae[4],10)),we++;we<pe.length;){var Pe=pe[we].charAt(0);try{var je=decodeURI(pe[we].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+je)}if(Pe=="-")ke.diffs.push([le,je]);else if(Pe=="+")ke.diffs.push([ae,je]);else if(Pe==" ")ke.diffs.push([he,je]);else{if(Pe=="@")break;if(Pe!=="")throw new Error('Invalid patch mode "'+Pe+'" in: '+je)}we++}}return ue},te.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},te.patch_obj.prototype.toString=function(){var ie,ue;this.length1===0?ie=this.start1+",0":this.length1==1?ie=this.start1+1:ie=this.start1+1+","+this.length1,this.length2===0?ue=this.start2+",0":this.length2==1?ue=this.start2+1:ue=this.start2+1+","+this.length2;for(var pe=["@@ -"+ie+" +"+ue+` @@
|
| 4 |
`],we,Se=0;Se<this.diffs.length;Se++){switch(this.diffs[Se][0]){case ae:we="+";break;case le:we="-";break;case he:we=" ";break}pe[Se+1]=we+encodeURI(this.diffs[Se][1])+`
|
|
|
|
| 1 |
+
import{r as de,c as ho,g as xo,j as se,R as Qt,_ as Et,b as Cc,d as Mr,e as ap,p as Mo,w as lp,f as cp,i as up,k as hp,a as dp}from"./umi-e07d95da.js";import{W as K1,C as ol,b as Rr,c as dh,E as ai,d as ni,e as ph,a as mt,f as fh,g as pp,h as ji,i as A1,j as fp,G as gp,k as mp,l as vp,n as yp,r as Ur,s as Xr,o as Cp,q as bp,t as ln,u as bc,m as er,v as Is,w as Ip,x as wp,y as Ap,z as Sp,S as sl,A as Ic,T as xp,P as Mp,B as wc,L as Ep,D as zp}from"./index-333c2577.js";import{A as Mn,g as Ft,h as kp,i as Nt,j as Ac,p as Lp,r as Hn,m as Un,u as zr,c as vt,k as Tp,l as po,q as wn,s as Rp,v as al,x as ll,y as Hp,z as U1,B as X1,D as Vp,E as _p,F as Np,G as Op,H as Pp,I as Dp,J as $p,K as Bp,L as mr,M as kr,f as gh,N as io,O as Sc,n as ws,P as Fp,Q as xc,R as Wp,S as Gp,T as jp,U as Zp}from"./_setToString-5e7d8f22.js";import{r as Kp,u as di,a as mh,b as cl,i as Up,P as ul,c as Xp,I as Mc,d as hl,e as vh,f as Y1,g as dl,h as pl,j as yh,k as fl,l as gl,m as ml,n as Ch,o as bh,p as Ih,q as wh,A as Yp,s as Jp,t as Qp,v as qp,w as ef,x as tf,y as nf,z as As,B as rf,C as of,D as Nn,E as sf,S as af,F as lf,G as cf,H as uf,J as hf}from"./index.less_used_.module-87602c0c.js";import{S as df}from"./scheduler-a7fa9c3c.js";import{t as Ah,c as Pt,S as Sh,d as pf,p as vl,m as oo,i as Ec,n as Ss,P as ff,a as gf,b as mf,e as vf,u as yf,s as Cf,f as bf}from"./index-bcc6e795.js";import{o as J1,d as Q1,i as xh,n as If,S as Jt,T as ha,C as yl,I as Hr,R as q1,e as Sr,M as g1,Q as Mh,f as wf,D as da,P as Af,q as Sf,b as Eh,L as zc,E as xf,c as Mf,g as Ef}from"./index-5014e2af.js";import{_ as Mi,c as zf,a as kc,g as kf,b as cn,d as _t,i as Lf,r as jo,A as Tf,L as Rf,D as Hf,S as Vf}from"./confirm-0ebf68f1.js";import{u as Lc,S as _f,P as Nf,A as Tc}from"./Tags-1c321515.js";import{G as Of}from"./gaugeRendererGL-9dc55e03.js";import{B as kt}from"./button-3ac51ee9.js";import{w as Pf,D as pa,P as fa,I as Rc,R as Df,a as zh,S as Zo,u as kh,A as Lh,b as Zi,c as ga,d as $f,F as Ln,e as qn,f as Bf}from"./useDebounce-f1604c2b.js";import{S as S1,d as Ff}from"./index-c03929a6.js";import{S as Th,a as Wf}from"./index-5da3586d.js";import{p as Gf}from"./processCompressedAESFile-07545094.js";import{d as eo}from"./jszip.min-73ee4b51.js";import{u as jf}from"./useIntersection-c0d72ee4.js";var Zf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};const Kf=Zf;var Uf=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Kf}))},Xf=de.forwardRef(Uf);const ma=Xf;var Yf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-square",theme:"outlined"};const Jf=Yf;var Qf=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Jf}))},qf=de.forwardRef(Qf);const e4=qf;var t4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"};const n4=t4;var r4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:n4}))},i4=de.forwardRef(r4);const o4=i4;var s4={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};const a4=s4;var l4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:a4}))},c4=de.forwardRef(l4);const u4=c4;var h4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V650h182.9v148zm9.6-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z"}}]},name:"funnel-plot",theme:"outlined"};const d4=h4;var p4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:d4}))},f4=de.forwardRef(p4);const g4=f4;var m4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z"}}]},name:"gateway",theme:"outlined"};const v4=m4;var y4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:v4}))},C4=de.forwardRef(y4);const Rh=C4;var b4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const I4=b4;var w4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:I4}))},A4=de.forwardRef(w4);const Hc=A4;var S4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"};const x4=S4;var M4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:x4}))},E4=de.forwardRef(M4);const Vc=E4;var z4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z"}}]},name:"pause-circle",theme:"filled"};const k4=z4;var L4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:k4}))},T4=de.forwardRef(L4);const R4=T4;var H4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};const V4=H4;var _4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:V4}))},N4=de.forwardRef(_4);const O4=N4;var P4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926.8 397.1l-396-288a31.81 31.81 0 00-37.6 0l-396 288a31.99 31.99 0 00-11.6 35.8l151.3 466a32 32 0 0030.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z"}}]},name:"radar-chart",theme:"outlined"};const D4=P4;var $4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:D4}))},B4=de.forwardRef($4);const Hh=B4;var F4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const W4=F4;var G4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:W4}))},j4=de.forwardRef(G4);const Vh=j4;var Z4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 00288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}}]},name:"scissor",theme:"outlined"};const K4=Z4;var U4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:K4}))},X4=de.forwardRef(U4);const Y4=X4;var J4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0012.6 0l112-141.9c4.1-5.2.4-13-6.3-13z"}}]},name:"sort-ascending",theme:"outlined"};const Q4=J4;var q4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Q4}))},eg=de.forwardRef(q4);const tg=eg;var ng={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const rg=ng;var ig=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:rg}))},og=de.forwardRef(ig);const _c=og;function _h(){var e=de.useRef(!0);return e.current?(e.current=!1,!0):e.current}var sg=function(e,t){var n=_h();de.useEffect(function(){if(!n)return e()},t)};const ag=sg;var lg=function(e){e===void 0&&(e={});var t=de.useState(e),n=t[0],r=t[1],o=de.useCallback(function(s){r(function(i){return Object.assign({},i,s instanceof Function?s(i):s)})},[]);return[n,o]};const cg=lg;var ug=function(e,t){e===void 0&&(e=!0);var n=de.useCallback(function(r){var o=typeof e=="function"?e():!0;if(o)return r.preventDefault(),t&&(r.returnValue=t),t},[e,t]);de.useEffect(function(){if(e)return J1(window,"beforeunload",n),function(){return Q1(window,"beforeunload",n)}},[e,n])};const hg=ug;var dg=function(){var e=kp(),t=cg({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1],o=de.useCallback(function(s){if(e()){var i,d;try{if(typeof s!="string"&&typeof s!="number"){var S=new Error("Cannot copy typeof "+typeof s+" to clipboard, must be a string");r({value:s,error:S,noUserInteraction:!0});return}else if(s===""){var S=new Error("Cannot copy empty string to clipboard.");r({value:s,error:S,noUserInteraction:!0});return}d=s.toString(),i=Pf(d),r({value:d,error:void 0,noUserInteraction:i})}catch(g){r({value:d,error:g,noUserInteraction:i})}}},[]);return[n,o]};const pg=dg;var fg=function(e,t){var n=de.useState(t),r=n[0],o=n[1];return r==null?[e,o]:[r,o]};const gg=fg;var mg=xh?window:null,Nc=function(e){return!!e.addEventListener},Oc=function(e){return!!e.on},vg=function(e,t,n,r){n===void 0&&(n=mg),de.useEffect(function(){if(t&&n)return Nc(n)?J1(n,e,t,r):Oc(n)&&n.on(e,t,r),function(){Nc(n)?Q1(n,e,t,r):Oc(n)&&n.off(e,t,r)}},[e,t,n,JSON.stringify(r)])};const Nh=vg;var yg=function(e){return typeof e=="function"?e:typeof e=="string"?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},Cg=function(e,t,n,r){t===void 0&&(t=If),n===void 0&&(n={}),r===void 0&&(r=[e]);var o=n.event,s=o===void 0?"keydown":o,i=n.target,d=n.options,S=de.useMemo(function(){var g=yg(e),w=function(M){if(g(M))return t(M)};return w},r);Nh(s,S,i,d)};const Ai=Cg;var bg=function(e){var t=de.useState([!1,null]),n=t[0],r=t[1];return Ai(e,function(o){return r([!0,o])},{event:"keydown"},[n]),Ai(e,function(o){return r([!1,o])},{event:"keyup"},[n]),n};const li=bg;var Ig=function(e,t,n,r){r===void 0&&(r=li);var o=r(e),s=o[0],i=o[1];ag(function(){!s&&n?n(i):s&&t&&t(i)},[s])};const Pc=Ig;var wg=function(e,t){de.useEffect(function(){return e&&e(),function(){t&&t()}},[])};const Ag=wg;function va(e){if(e){if(e.tagName==="BODY")return e;if(e.tagName==="IFRAME"){var t=e.contentDocument;return t?t.body:null}else if(!e.offsetParent)return null}else return null;return va(e.offsetParent)}function Dc(e){var t=e||window.event;return t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var $c=xh&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),fi=new Map,Bc=typeof document=="object"?document:void 0,Ko=!1;const Sg=Bc?function(t,n){t===void 0&&(t=!0);var r=de.useRef(Bc.body);n=n||r;var o=function(i){var d=fi.get(i);d?fi.set(i,{counter:d.counter+1,initialOverflow:d.initialOverflow}):(fi.set(i,{counter:1,initialOverflow:i.style.overflow}),$c?Ko||(J1(document,"touchmove",Dc,{passive:!1}),Ko=!0):i.style.overflow="hidden")},s=function(i){var d=fi.get(i);d&&(d.counter===1?(fi.delete(i),$c?(i.ontouchmove=null,Ko&&(Q1(document,"touchmove",Dc),Ko=!1)):i.style.overflow=d.initialOverflow):fi.set(i,{counter:d.counter-1,initialOverflow:d.initialOverflow}))};de.useEffect(function(){var i=va(n.current);i&&(t?o(i):s(i))},[t,n.current]),de.useEffect(function(){var i=va(n.current);if(i)return function(){s(i)}},[])}:function(t,n){};function xg(e,t,n){if(t===void 0&&(t=10),t<1)throw new Error("Capacity has to be greater than 1, got '"+t+"'");var r=_h(),o=de.useState(e),s=o[0],i=o[1],d=de.useRef(n??[]),S=de.useRef(0);r&&(d.current.length?(d.current[d.current.length-1]!==e&&d.current.push(e),d.current.length>t&&(d.current=d.current.slice(d.current.length-t))):d.current.push(e),S.current=d.current.length&&d.current.length-1);var g=de.useCallback(function(M){i(function(R){return M=Kp(M,R),M!==R&&(S.current<d.current.length-1&&(d.current=d.current.slice(0,S.current+1)),S.current=d.current.push(M)-1,d.current.length>t&&(d.current=d.current.slice(d.current.length-t))),M})},[s,t]),w=de.useMemo(function(){return{history:d.current,position:S.current,capacity:t,back:function(M){M===void 0&&(M=1),S.current&&i(function(){return S.current-=Math.min(M,S.current),d.current[S.current]})},forward:function(M){M===void 0&&(M=1),S.current!==d.current.length-1&&i(function(){return S.current=Math.min(S.current+M,d.current.length-1),d.current[S.current]})},go:function(M){M!==S.current&&i(function(){return S.current=M<0?Math.max(d.current.length+M,0):Math.min(d.current.length-1,M),d.current[S.current]})}}},[s]);return[s,g,w]}var Mg=function(e){e===void 0&&(e=new Set);var t=de.useState(e),n=t[0],r=t[1],o=de.useMemo(function(){var i=function(g){return r(function(w){return new Set(Ac(Array.from(w),[g]))})},d=function(g){return r(function(w){return new Set(Array.from(w).filter(function(M){return M!==g}))})},S=function(g){return r(function(w){return w.has(g)?new Set(Array.from(w).filter(function(M){return M!==g})):new Set(Ac(Array.from(w),[g]))})};return{add:i,remove:d,toggle:S,reset:function(){return r(e)},clear:function(){return r(new Set)}}},[r]),s=Nt({has:de.useCallback(function(i){return n.has(i)},[n])},o);return[n,s]};const Eg=Mg;var zg=function(){var e=de.useState(function(){return window.location.hash}),t=e[0],n=e[1],r=de.useCallback(function(){n(window.location.hash)},[]);Ag(function(){J1(window,"hashchange",r)},function(){Q1(window,"hashchange",r)});var o=de.useCallback(function(s){s!==t&&(window.location.hash=s)},[t]);return[t,o]},ya={exports:{}},Fc={},Wc;function kg(){return Wc||(Wc=1),Fc}(function(e,t){(function(n,r){r(t,kg())})(ho,function(n,r){r=r&&r.hasOwnProperty("default")?r.default:r;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},s=function(ze,te){if(!(ze instanceof te))throw new TypeError("Cannot call a class as a function")},i=function(){function ze(te,le){for(var ae=0;ae<le.length;ae++){var he=le[ae];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(te,he.key,he)}}return function(te,le,ae){return le&&ze(te.prototype,le),ae&&ze(te,ae),te}}(),d=function ze(te,le,ae){te===null&&(te=Function.prototype);var he=Object.getOwnPropertyDescriptor(te,le);if(he===void 0){var ie=Object.getPrototypeOf(te);return ie===null?void 0:ze(ie,le,ae)}else{if("value"in he)return he.value;var ue=he.get;return ue===void 0?void 0:ue.call(ae)}},S=function(ze,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof te);ze.prototype=Object.create(te&&te.prototype,{constructor:{value:ze,enumerable:!1,writable:!0,configurable:!0}}),te&&(Object.setPrototypeOf?Object.setPrototypeOf(ze,te):ze.__proto__=te)},g=function(ze,te){if(!ze)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te&&(typeof te=="object"||typeof te=="function")?te:ze},w=function(){function ze(te,le){var ae=[],he=!0,ie=!1,ue=void 0;try{for(var pe=te[Symbol.iterator](),we;!(he=(we=pe.next()).done)&&(ae.push(we.value),!(le&&ae.length===le));he=!0);}catch(Se){ie=!0,ue=Se}finally{try{!he&&pe.return&&pe.return()}finally{if(ie)throw ue}}return ae}return function(te,le){if(Array.isArray(te))return te;if(Symbol.iterator in Object(te))return ze(te,le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),M=function(ze){if(Array.isArray(ze)){for(var te=0,le=Array(ze.length);te<ze.length;te++)le[te]=ze[te];return le}else return Array.from(ze)},R=function(){function ze(te){s(this,ze),this.selfOptions=te||{},this.pipes={}}return i(ze,[{key:"options",value:function(le){return le&&(this.selfOptions=le),this.selfOptions}},{key:"pipe",value:function(le,ae){var he=ae;if(typeof le=="string"){if(typeof he>"u")return this.pipes[le];this.pipes[le]=he}if(le&&le.name){if(he=le,he.processor===this)return he;this.pipes[he.name]=he}return he.processor=this,he}},{key:"process",value:function(le,ae){var he=le;he.options=this.options();for(var ie=ae||le.pipe||"default",ue=void 0,pe=void 0;ie;)typeof he.nextAfterChildren<"u"&&(he.next=he.nextAfterChildren,he.nextAfterChildren=null),typeof ie=="string"&&(ie=this.pipe(ie)),ie.process(he),pe=he,ue=ie,ie=null,he&&he.next&&(he=he.next,ie=pe.nextPipe||he.pipe||ue);return he.hasResult?he.result:void 0}}]),ze}(),V=function(){function ze(te){s(this,ze),this.name=te,this.filters=[]}return i(ze,[{key:"process",value:function(le){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var ae=this.debug,he=this.filters.length,ie=le,ue=0;ue<he;ue++){var pe=this.filters[ue];if(ae&&this.log("filter: "+pe.filterName),pe(ie),(typeof ie>"u"?"undefined":o(ie))==="object"&&ie.exiting){ie.exiting=!1;break}}!ie.next&&this.resultCheck&&this.resultCheck(ie)}},{key:"log",value:function(le){console.log("[jsondiffpatch] "+this.name+" pipe, "+le)}},{key:"append",value:function(){var le;return(le=this.filters).push.apply(le,arguments),this}},{key:"prepend",value:function(){var le;return(le=this.filters).unshift.apply(le,arguments),this}},{key:"indexOf",value:function(le){if(!le)throw new Error("a filter name is required");for(var ae=0;ae<this.filters.length;ae++){var he=this.filters[ae];if(he.filterName===le)return ae}throw new Error("filter not found: "+le)}},{key:"list",value:function(){return this.filters.map(function(le){return le.filterName})}},{key:"after",value:function(le){var ae=this.indexOf(le),he=Array.prototype.slice.call(arguments,1);if(!he.length)throw new Error("a filter is required");return he.unshift(ae+1,0),Array.prototype.splice.apply(this.filters,he),this}},{key:"before",value:function(le){var ae=this.indexOf(le),he=Array.prototype.slice.call(arguments,1);if(!he.length)throw new Error("a filter is required");return he.unshift(ae,0),Array.prototype.splice.apply(this.filters,he),this}},{key:"replace",value:function(le){var ae=this.indexOf(le),he=Array.prototype.slice.call(arguments,1);if(!he.length)throw new Error("a filter is required");return he.unshift(ae,1),Array.prototype.splice.apply(this.filters,he),this}},{key:"remove",value:function(le){var ae=this.indexOf(le);return this.filters.splice(ae,1),this}},{key:"clear",value:function(){return this.filters.length=0,this}},{key:"shouldHaveResult",value:function(le){if(le===!1){this.resultCheck=null;return}if(!this.resultCheck){var ae=this;return this.resultCheck=function(he){if(!he.hasResult){console.log(he);var ie=new Error(ae.name+" failed");throw ie.noResult=!0,ie}},this}}}]),ze}(),_=function(){function ze(){s(this,ze)}return i(ze,[{key:"setResult",value:function(le){return this.result=le,this.hasResult=!0,this}},{key:"exit",value:function(){return this.exiting=!0,this}},{key:"switchTo",value:function(le,ae){return typeof le=="string"||le instanceof V?this.nextPipe=le:(this.next=le,ae&&(this.nextPipe=ae)),this}},{key:"push",value:function(le,ae){return le.parent=this,typeof ae<"u"&&(le.childName=ae),le.root=this.root||this,le.options=le.options||this.options,this.children?(this.children[this.children.length-1].next=le,this.children.push(le)):(this.children=[le],this.nextAfterChildren=this.next||null,this.next=le),le.next=this,this}}]),ze}(),k=typeof Array.isArray=="function"?Array.isArray:function(ze){return ze instanceof Array};function z(ze){var te=/^\/(.*)\/([gimyu]*)$/.exec(ze.toString());return new RegExp(te[1],te[2])}function I(ze){if((typeof ze>"u"?"undefined":o(ze))!=="object")return ze;if(ze===null)return null;if(k(ze))return ze.map(I);if(ze instanceof Date)return new Date(ze.getTime());if(ze instanceof RegExp)return z(ze);var te={};for(var le in ze)Object.prototype.hasOwnProperty.call(ze,le)&&(te[le]=I(ze[le]));return te}var H=function(ze){S(te,ze);function te(le,ae){s(this,te);var he=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return he.left=le,he.right=ae,he.pipe="diff",he}return i(te,[{key:"setResult",value:function(ae){if(this.options.cloneDiffValues&&(typeof ae>"u"?"undefined":o(ae))==="object"){var he=typeof this.options.cloneDiffValues=="function"?this.options.cloneDiffValues:I;o(ae[0])==="object"&&(ae[0]=he(ae[0])),o(ae[1])==="object"&&(ae[1]=he(ae[1]))}return _.prototype.setResult.apply(this,arguments)}}]),te}(_),A=function(ze){S(te,ze);function te(le,ae){s(this,te);var he=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return he.left=le,he.delta=ae,he.pipe="patch",he}return te}(_),x=function(ze){S(te,ze);function te(le){s(this,te);var ae=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return ae.delta=le,ae.pipe="reverse",ae}return te}(_),p=typeof Array.isArray=="function"?Array.isArray:function(ze){return ze instanceof Array},v=function(te){if(te.left===te.right){te.setResult(void 0).exit();return}if(typeof te.left>"u"){if(typeof te.right=="function")throw new Error("functions are not supported");te.setResult([te.right]).exit();return}if(typeof te.right>"u"){te.setResult([te.left,0,0]).exit();return}if(typeof te.left=="function"||typeof te.right=="function")throw new Error("functions are not supported");if(te.leftType=te.left===null?"null":o(te.left),te.rightType=te.right===null?"null":o(te.right),te.leftType!==te.rightType){te.setResult([te.left,te.right]).exit();return}if(te.leftType==="boolean"||te.leftType==="number"){te.setResult([te.left,te.right]).exit();return}if(te.leftType==="object"&&(te.leftIsArray=p(te.left)),te.rightType==="object"&&(te.rightIsArray=p(te.right)),te.leftIsArray!==te.rightIsArray){te.setResult([te.left,te.right]).exit();return}te.left instanceof RegExp&&(te.right instanceof RegExp?te.setResult([te.left.toString(),te.right.toString()]).exit():te.setResult([te.left,te.right]).exit())};v.filterName="trivial";var y=function(te){if(typeof te.delta>"u"){te.setResult(te.left).exit();return}if(te.nested=!p(te.delta),!te.nested){if(te.delta.length===1){te.setResult(te.delta[0]).exit();return}if(te.delta.length===2){if(te.left instanceof RegExp){var le=/^\/(.*)\/([gimyu]+)$/.exec(te.delta[1]);if(le){te.setResult(new RegExp(le[1],le[2])).exit();return}}te.setResult(te.delta[1]).exit();return}te.delta.length===3&&te.delta[2]===0&&te.setResult(void 0).exit()}};y.filterName="trivial";var a=function(te){if(typeof te.delta>"u"){te.setResult(te.delta).exit();return}if(te.nested=!p(te.delta),!te.nested){if(te.delta.length===1){te.setResult([te.delta[0],0,0]).exit();return}if(te.delta.length===2){te.setResult([te.delta[1],te.delta[0]]).exit();return}te.delta.length===3&&te.delta[2]===0&&te.setResult([te.delta[0]]).exit()}};a.filterName="trivial";function h(ze){if(!(!ze||!ze.children)){for(var te=ze.children.length,le=void 0,ae=ze.result,he=0;he<te;he++)le=ze.children[he],!(typeof le.result>"u")&&(ae=ae||{},ae[le.childName]=le.result);ae&&ze.leftIsArray&&(ae._t="a"),ze.setResult(ae).exit()}}h.filterName="collectChildren";function u(ze){if(!(ze.leftIsArray||ze.leftType!=="object")){var te=void 0,le=void 0,ae=ze.options.propertyFilter;for(te in ze.left)Object.prototype.hasOwnProperty.call(ze.left,te)&&(ae&&!ae(te,ze)||(le=new H(ze.left[te],ze.right[te]),ze.push(le,te)));for(te in ze.right)Object.prototype.hasOwnProperty.call(ze.right,te)&&(ae&&!ae(te,ze)||typeof ze.left[te]>"u"&&(le=new H(void 0,ze.right[te]),ze.push(le,te)));if(!ze.children||ze.children.length===0){ze.setResult(void 0).exit();return}ze.exit()}}u.filterName="objects";var b=function(te){if(te.nested&&!te.delta._t){var le=void 0,ae=void 0;for(le in te.delta)ae=new A(te.left[le],te.delta[le]),te.push(ae,le);te.exit()}};b.filterName="objects";var m=function(te){if(!(!te||!te.children)&&!te.delta._t){for(var le=te.children.length,ae=void 0,he=0;he<le;he++)ae=te.children[he],Object.prototype.hasOwnProperty.call(te.left,ae.childName)&&ae.result===void 0?delete te.left[ae.childName]:te.left[ae.childName]!==ae.result&&(te.left[ae.childName]=ae.result);te.setResult(te.left).exit()}};m.filterName="collectChildren";var l=function(te){if(te.nested&&!te.delta._t){var le=void 0,ae=void 0;for(le in te.delta)ae=new x(te.delta[le]),te.push(ae,le);te.exit()}};l.filterName="objects";function c(ze){if(!(!ze||!ze.children)&&!ze.delta._t){for(var te=ze.children.length,le=void 0,ae={},he=0;he<te;he++)le=ze.children[he],ae[le.childName]!==le.result&&(ae[le.childName]=le.result);ze.setResult(ae).exit()}}c.filterName="collectChildren";var f=function(te,le,ae,he){return te[ae]===le[he]},C=function(te,le,ae,he){var ie=te.length,ue=le.length,pe=void 0,we=void 0,Se=[ie+1];for(pe=0;pe<ie+1;pe++)for(Se[pe]=[ue+1],we=0;we<ue+1;we++)Se[pe][we]=0;for(Se.match=ae,pe=1;pe<ie+1;pe++)for(we=1;we<ue+1;we++)ae(te,le,pe-1,we-1,he)?Se[pe][we]=Se[pe-1][we-1]+1:Se[pe][we]=Math.max(Se[pe-1][we],Se[pe][we-1]);return Se},T=function(te,le,ae,he){for(var ie=le.length,ue=ae.length,pe={sequence:[],indices1:[],indices2:[]};ie!==0&&ue!==0;){var we=te.match(le,ae,ie-1,ue-1,he);if(we)pe.sequence.unshift(le[ie-1]),pe.indices1.unshift(ie-1),pe.indices2.unshift(ue-1),--ie,--ue;else{var Se=te[ie][ue-1],Ae=te[ie-1][ue];Se>Ae?--ue:--ie}}return pe},L=function(te,le,ae,he){var ie=he||{},ue=C(te,le,ae||f,ie),pe=T(ue,te,le,ie);return typeof te=="string"&&typeof le=="string"&&(pe.sequence=pe.sequence.join("")),pe},O={get:L},P=3,F=typeof Array.isArray=="function"?Array.isArray:function(ze){return ze instanceof Array},B=typeof Array.prototype.indexOf=="function"?function(ze,te){return ze.indexOf(te)}:function(ze,te){for(var le=ze.length,ae=0;ae<le;ae++)if(ze[ae]===te)return ae;return-1};function W(ze,te,le,ae){for(var he=0;he<le;he++)for(var ie=ze[he],ue=0;ue<ae;ue++){var pe=te[ue];if(he!==ue&&ie===pe)return!0}}function Q(ze,te,le,ae,he){var ie=ze[le],ue=te[ae];if(ie===ue)return!0;if((typeof ie>"u"?"undefined":o(ie))!=="object"||(typeof ue>"u"?"undefined":o(ue))!=="object")return!1;var pe=he.objectHash;if(!pe)return he.matchByPosition&&le===ae;var we=void 0,Se=void 0;return typeof le=="number"?(he.hashCache1=he.hashCache1||[],we=he.hashCache1[le],typeof we>"u"&&(he.hashCache1[le]=we=pe(ie,le))):we=pe(ie),typeof we>"u"||(typeof ae=="number"?(he.hashCache2=he.hashCache2||[],Se=he.hashCache2[ae],typeof Se>"u"&&(he.hashCache2[ae]=Se=pe(ue,ae))):Se=pe(ue),typeof Se>"u")?!1:we===Se}var j=function(te){if(te.leftIsArray){var le={objectHash:te.options&&te.options.objectHash,matchByPosition:te.options&&te.options.matchByPosition},ae=0,he=0,ie=void 0,ue=void 0,pe=void 0,we=te.left,Se=te.right,Ae=we.length,ke=Se.length,Pe=void 0;for(Ae>0&&ke>0&&!le.objectHash&&typeof le.matchByPosition!="boolean"&&(le.matchByPosition=!W(we,Se,Ae,ke));ae<Ae&&ae<ke&&Q(we,Se,ae,ae,le);)ie=ae,Pe=new H(te.left[ie],te.right[ie]),te.push(Pe,ie),ae++;for(;he+ae<Ae&&he+ae<ke&&Q(we,Se,Ae-1-he,ke-1-he,le);)ue=Ae-1-he,pe=ke-1-he,Pe=new H(te.left[ue],te.right[pe]),te.push(Pe,pe),he++;var je=void 0;if(ae+he===Ae){if(Ae===ke){te.setResult(void 0).exit();return}for(je=je||{_t:"a"},ie=ae;ie<ke-he;ie++)je[ie]=[Se[ie]];te.setResult(je).exit();return}if(ae+he===ke){for(je=je||{_t:"a"},ie=ae;ie<Ae-he;ie++)je["_"+ie]=[we[ie],0,0];te.setResult(je).exit();return}delete le.hashCache1,delete le.hashCache2;var nt=we.slice(ae,Ae-he),ot=Se.slice(ae,ke-he),Ee=O.get(nt,ot,Q,le),Ge=[];for(je=je||{_t:"a"},ie=ae;ie<Ae-he;ie++)B(Ee.indices1,ie-ae)<0&&(je["_"+ie]=[we[ie],0,0],Ge.push(ie));var Je=!0;te.options&&te.options.arrays&&te.options.arrays.detectMove===!1&&(Je=!1);var Qe=!1;te.options&&te.options.arrays&&te.options.arrays.includeValueOnMove&&(Qe=!0);var at=Ge.length;for(ie=ae;ie<ke-he;ie++){var At=B(Ee.indices2,ie-ae);if(At<0){var Ct=!1;if(Je&&at>0){for(var dt=0;dt<at;dt++)if(ue=Ge[dt],Q(nt,ot,ue-ae,ie-ae,le)){je["_"+ue].splice(1,2,ie,P),Qe||(je["_"+ue][0]=""),pe=ie,Pe=new H(te.left[ue],te.right[pe]),te.push(Pe,pe),Ge.splice(dt,1),Ct=!0;break}}Ct||(je[ie]=[Se[ie]])}else ue=Ee.indices1[At]+ae,pe=Ee.indices2[At]+ae,Pe=new H(te.left[ue],te.right[pe]),te.push(Pe,pe)}te.setResult(je).exit()}};j.filterName="arrays";var E={numerically:function(te,le){return te-le},numericallyBy:function(te){return function(le,ae){return le[te]-ae[te]}}},Z=function(te){if(te.nested&&te.delta._t==="a"){var le=void 0,ae=void 0,he=te.delta,ie=te.left,ue=[],pe=[],we=[];for(le in he)if(le!=="_t")if(le[0]==="_")if(he[le][2]===0||he[le][2]===P)ue.push(parseInt(le.slice(1),10));else throw new Error("only removal or move can be applied at original array indices,"+(" invalid diff type: "+he[le][2]));else he[le].length===1?pe.push({index:parseInt(le,10),value:he[le][0]}):we.push({index:parseInt(le,10),delta:he[le]});for(ue=ue.sort(E.numerically),le=ue.length-1;le>=0;le--){ae=ue[le];var Se=he["_"+ae],Ae=ie.splice(ae,1)[0];Se[2]===P&&pe.push({index:Se[1],value:Ae})}pe=pe.sort(E.numericallyBy("index"));var ke=pe.length;for(le=0;le<ke;le++){var Pe=pe[le];ie.splice(Pe.index,0,Pe.value)}var je=we.length,nt=void 0;if(je>0)for(le=0;le<je;le++){var ot=we[le];nt=new A(te.left[ot.index],ot.delta),te.push(nt,ot.index)}if(!te.children){te.setResult(te.left).exit();return}te.exit()}};Z.filterName="arrays";var N=function(te){if(!(!te||!te.children)&&te.delta._t==="a"){for(var le=te.children.length,ae=void 0,he=0;he<le;he++)ae=te.children[he],te.left[ae.childName]=ae.result;te.setResult(te.left).exit()}};N.filterName="arraysCollectChildren";var K=function(te){if(!te.nested){te.delta[2]===P&&(te.newName="_"+te.delta[1],te.setResult([te.delta[0],parseInt(te.childName.substr(1),10),P]).exit());return}if(te.delta._t==="a"){var le=void 0,ae=void 0;for(le in te.delta)le!=="_t"&&(ae=new x(te.delta[le]),te.push(ae,le));te.exit()}};K.filterName="arrays";var X=function(te,le,ae){if(typeof le=="string"&&le[0]==="_")return parseInt(le.substr(1),10);if(F(ae)&&ae[2]===0)return"_"+le;var he=+le;for(var ie in te){var ue=te[ie];if(F(ue))if(ue[2]===P){var pe=parseInt(ie.substr(1),10),we=ue[1];if(we===+le)return pe;pe<=he&&we>he?he++:pe>=he&&we<he&&he--}else if(ue[2]===0){var Se=parseInt(ie.substr(1),10);Se<=he&&he++}else ue.length===1&&ie<=he&&he--}return he};function Y(ze){if(!(!ze||!ze.children)&&ze.delta._t==="a"){for(var te=ze.children.length,le=void 0,ae={_t:"a"},he=0;he<te;he++){le=ze.children[he];var ie=le.newName;typeof ie>"u"&&(ie=X(ze.delta,le.childName,le.result)),ae[ie]!==le.result&&(ae[ie]=le.result)}ze.setResult(ae).exit()}}Y.filterName="arraysCollectChildren";var oe=function(te){te.left instanceof Date?(te.right instanceof Date?te.left.getTime()!==te.right.getTime()?te.setResult([te.left,te.right]):te.setResult(void 0):te.setResult([te.left,te.right]),te.exit()):te.right instanceof Date&&te.setResult([te.left,te.right]).exit()};oe.filterName="dates";function ce(ze,te){return te={exports:{}},ze(te,te.exports),te.exports}var re=ce(function(ze){function te(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var le=-1,ae=1,he=0;te.prototype.diff_main=function(ie,ue,pe,we){typeof we>"u"&&(this.Diff_Timeout<=0?we=Number.MAX_VALUE:we=new Date().getTime()+this.Diff_Timeout*1e3);var Se=we;if(ie==null||ue==null)throw new Error("Null input. (diff_main)");if(ie==ue)return ie?[[he,ie]]:[];typeof pe>"u"&&(pe=!0);var Ae=pe,ke=this.diff_commonPrefix(ie,ue),Pe=ie.substring(0,ke);ie=ie.substring(ke),ue=ue.substring(ke),ke=this.diff_commonSuffix(ie,ue);var je=ie.substring(ie.length-ke);ie=ie.substring(0,ie.length-ke),ue=ue.substring(0,ue.length-ke);var nt=this.diff_compute_(ie,ue,Ae,Se);return Pe&&nt.unshift([he,Pe]),je&&nt.push([he,je]),this.diff_cleanupMerge(nt),nt},te.prototype.diff_compute_=function(ie,ue,pe,we){var Se;if(!ie)return[[ae,ue]];if(!ue)return[[le,ie]];var Ae=ie.length>ue.length?ie:ue,ke=ie.length>ue.length?ue:ie,Pe=Ae.indexOf(ke);if(Pe!=-1)return Se=[[ae,Ae.substring(0,Pe)],[he,ke],[ae,Ae.substring(Pe+ke.length)]],ie.length>ue.length&&(Se[0][0]=Se[2][0]=le),Se;if(ke.length==1)return[[le,ie],[ae,ue]];var je=this.diff_halfMatch_(ie,ue);if(je){var nt=je[0],ot=je[1],Ee=je[2],Ge=je[3],Je=je[4],Qe=this.diff_main(nt,Ee,pe,we),at=this.diff_main(ot,Ge,pe,we);return Qe.concat([[he,Je]],at)}return pe&&ie.length>100&&ue.length>100?this.diff_lineMode_(ie,ue,we):this.diff_bisect_(ie,ue,we)},te.prototype.diff_lineMode_=function(ie,ue,pe){var we=this.diff_linesToChars_(ie,ue);ie=we.chars1,ue=we.chars2;var Se=we.lineArray,Ae=this.diff_main(ie,ue,!1,pe);this.diff_charsToLines_(Ae,Se),this.diff_cleanupSemantic(Ae),Ae.push([he,""]);for(var ke=0,Pe=0,je=0,nt="",ot="";ke<Ae.length;){switch(Ae[ke][0]){case ae:je++,ot+=Ae[ke][1];break;case le:Pe++,nt+=Ae[ke][1];break;case he:if(Pe>=1&&je>=1){Ae.splice(ke-Pe-je,Pe+je),ke=ke-Pe-je;for(var we=this.diff_main(nt,ot,!1,pe),Ee=we.length-1;Ee>=0;Ee--)Ae.splice(ke,0,we[Ee]);ke=ke+we.length}je=0,Pe=0,nt="",ot="";break}ke++}return Ae.pop(),Ae},te.prototype.diff_bisect_=function(ie,ue,pe){for(var we=ie.length,Se=ue.length,Ae=Math.ceil((we+Se)/2),ke=Ae,Pe=2*Ae,je=new Array(Pe),nt=new Array(Pe),ot=0;ot<Pe;ot++)je[ot]=-1,nt[ot]=-1;je[ke+1]=0,nt[ke+1]=0;for(var Ee=we-Se,Ge=Ee%2!=0,Je=0,Qe=0,at=0,At=0,Ct=0;Ct<Ae&&!(new Date().getTime()>pe);Ct++){for(var dt=-Ct+Je;dt<=Ct-Qe;dt+=2){var bt=ke+dt,pt;dt==-Ct||dt!=Ct&&je[bt-1]<je[bt+1]?pt=je[bt+1]:pt=je[bt-1]+1;for(var Vt=pt-dt;pt<we&&Vt<Se&&ie.charAt(pt)==ue.charAt(Vt);)pt++,Vt++;if(je[bt]=pt,pt>we)Qe+=2;else if(Vt>Se)Je+=2;else if(Ge){var St=ke+Ee-dt;if(St>=0&&St<Pe&&nt[St]!=-1){var Bt=we-nt[St];if(pt>=Bt)return this.diff_bisectSplit_(ie,ue,pt,Vt,pe)}}}for(var hn=-Ct+at;hn<=Ct-At;hn+=2){var St=ke+hn,Bt;hn==-Ct||hn!=Ct&&nt[St-1]<nt[St+1]?Bt=nt[St+1]:Bt=nt[St-1]+1;for(var sn=Bt-hn;Bt<we&&sn<Se&&ie.charAt(we-Bt-1)==ue.charAt(Se-sn-1);)Bt++,sn++;if(nt[St]=Bt,Bt>we)At+=2;else if(sn>Se)at+=2;else if(!Ge){var bt=ke+Ee-hn;if(bt>=0&&bt<Pe&&je[bt]!=-1){var pt=je[bt],Vt=ke+pt-bt;if(Bt=we-Bt,pt>=Bt)return this.diff_bisectSplit_(ie,ue,pt,Vt,pe)}}}}return[[le,ie],[ae,ue]]},te.prototype.diff_bisectSplit_=function(ie,ue,pe,we,Se){var Ae=ie.substring(0,pe),ke=ue.substring(0,we),Pe=ie.substring(pe),je=ue.substring(we),nt=this.diff_main(Ae,ke,!1,Se),ot=this.diff_main(Pe,je,!1,Se);return nt.concat(ot)},te.prototype.diff_linesToChars_=function(ie,ue){var pe=[],we={};pe[0]="";function Se(Pe){for(var je="",nt=0,ot=-1,Ee=pe.length;ot<Pe.length-1;){ot=Pe.indexOf(`
|
| 2 |
`,nt),ot==-1&&(ot=Pe.length-1);var Ge=Pe.substring(nt,ot+1);nt=ot+1,(we.hasOwnProperty?we.hasOwnProperty(Ge):we[Ge]!==void 0)?je+=String.fromCharCode(we[Ge]):(je+=String.fromCharCode(Ee),we[Ge]=Ee,pe[Ee++]=Ge)}return je}var Ae=Se(ie),ke=Se(ue);return{chars1:Ae,chars2:ke,lineArray:pe}},te.prototype.diff_charsToLines_=function(ie,ue){for(var pe=0;pe<ie.length;pe++){for(var we=ie[pe][1],Se=[],Ae=0;Ae<we.length;Ae++)Se[Ae]=ue[we.charCodeAt(Ae)];ie[pe][1]=Se.join("")}},te.prototype.diff_commonPrefix=function(ie,ue){if(!ie||!ue||ie.charAt(0)!=ue.charAt(0))return 0;for(var pe=0,we=Math.min(ie.length,ue.length),Se=we,Ae=0;pe<Se;)ie.substring(Ae,Se)==ue.substring(Ae,Se)?(pe=Se,Ae=pe):we=Se,Se=Math.floor((we-pe)/2+pe);return Se},te.prototype.diff_commonSuffix=function(ie,ue){if(!ie||!ue||ie.charAt(ie.length-1)!=ue.charAt(ue.length-1))return 0;for(var pe=0,we=Math.min(ie.length,ue.length),Se=we,Ae=0;pe<Se;)ie.substring(ie.length-Se,ie.length-Ae)==ue.substring(ue.length-Se,ue.length-Ae)?(pe=Se,Ae=pe):we=Se,Se=Math.floor((we-pe)/2+pe);return Se},te.prototype.diff_commonOverlap_=function(ie,ue){var pe=ie.length,we=ue.length;if(pe==0||we==0)return 0;pe>we?ie=ie.substring(pe-we):pe<we&&(ue=ue.substring(0,pe));var Se=Math.min(pe,we);if(ie==ue)return Se;for(var Ae=0,ke=1;;){var Pe=ie.substring(Se-ke),je=ue.indexOf(Pe);if(je==-1)return Ae;ke+=je,(je==0||ie.substring(Se-ke)==ue.substring(0,ke))&&(Ae=ke,ke++)}},te.prototype.diff_halfMatch_=function(ie,ue){if(this.Diff_Timeout<=0)return null;var pe=ie.length>ue.length?ie:ue,we=ie.length>ue.length?ue:ie;if(pe.length<4||we.length*2<pe.length)return null;var Se=this;function Ae(Qe,at,At){for(var Ct=Qe.substring(At,At+Math.floor(Qe.length/4)),dt=-1,bt="",pt,Vt,St,Bt;(dt=at.indexOf(Ct,dt+1))!=-1;){var hn=Se.diff_commonPrefix(Qe.substring(At),at.substring(dt)),sn=Se.diff_commonSuffix(Qe.substring(0,At),at.substring(0,dt));bt.length<sn+hn&&(bt=at.substring(dt-sn,dt)+at.substring(dt,dt+hn),pt=Qe.substring(0,At-sn),Vt=Qe.substring(At+hn),St=at.substring(0,dt-sn),Bt=at.substring(dt+hn))}return bt.length*2>=Qe.length?[pt,Vt,St,Bt,bt]:null}var ke=Ae(pe,we,Math.ceil(pe.length/4)),Pe=Ae(pe,we,Math.ceil(pe.length/2)),je;if(!ke&&!Pe)return null;Pe?ke?je=ke[4].length>Pe[4].length?ke:Pe:je=Pe:je=ke;var nt,ot,Ee,Ge;ie.length>ue.length?(nt=je[0],ot=je[1],Ee=je[2],Ge=je[3]):(Ee=je[0],Ge=je[1],nt=je[2],ot=je[3]);var Je=je[4];return[nt,ot,Ee,Ge,Je]},te.prototype.diff_cleanupSemantic=function(ie){for(var ue=!1,pe=[],we=0,Se=null,Ae=0,ke=0,Pe=0,je=0,nt=0;Ae<ie.length;)ie[Ae][0]==he?(pe[we++]=Ae,ke=je,Pe=nt,je=0,nt=0,Se=ie[Ae][1]):(ie[Ae][0]==ae?je+=ie[Ae][1].length:nt+=ie[Ae][1].length,Se&&Se.length<=Math.max(ke,Pe)&&Se.length<=Math.max(je,nt)&&(ie.splice(pe[we-1],0,[le,Se]),ie[pe[we-1]+1][0]=ae,we--,we--,Ae=we>0?pe[we-1]:-1,ke=0,Pe=0,je=0,nt=0,Se=null,ue=!0)),Ae++;for(ue&&this.diff_cleanupMerge(ie),this.diff_cleanupSemanticLossless(ie),Ae=1;Ae<ie.length;){if(ie[Ae-1][0]==le&&ie[Ae][0]==ae){var ot=ie[Ae-1][1],Ee=ie[Ae][1],Ge=this.diff_commonOverlap_(ot,Ee),Je=this.diff_commonOverlap_(Ee,ot);Ge>=Je?(Ge>=ot.length/2||Ge>=Ee.length/2)&&(ie.splice(Ae,0,[he,Ee.substring(0,Ge)]),ie[Ae-1][1]=ot.substring(0,ot.length-Ge),ie[Ae+1][1]=Ee.substring(Ge),Ae++):(Je>=ot.length/2||Je>=Ee.length/2)&&(ie.splice(Ae,0,[he,ot.substring(0,Je)]),ie[Ae-1][0]=ae,ie[Ae-1][1]=Ee.substring(0,Ee.length-Je),ie[Ae+1][0]=le,ie[Ae+1][1]=ot.substring(Je),Ae++),Ae++}Ae++}},te.prototype.diff_cleanupSemanticLossless=function(ie){function ue(Je,Qe){if(!Je||!Qe)return 6;var at=Je.charAt(Je.length-1),At=Qe.charAt(0),Ct=at.match(te.nonAlphaNumericRegex_),dt=At.match(te.nonAlphaNumericRegex_),bt=Ct&&at.match(te.whitespaceRegex_),pt=dt&&At.match(te.whitespaceRegex_),Vt=bt&&at.match(te.linebreakRegex_),St=pt&&At.match(te.linebreakRegex_),Bt=Vt&&Je.match(te.blanklineEndRegex_),hn=St&&Qe.match(te.blanklineStartRegex_);return Bt||hn?5:Vt||St?4:Ct&&!bt&&pt?3:bt||pt?2:Ct||dt?1:0}for(var pe=1;pe<ie.length-1;){if(ie[pe-1][0]==he&&ie[pe+1][0]==he){var we=ie[pe-1][1],Se=ie[pe][1],Ae=ie[pe+1][1],ke=this.diff_commonSuffix(we,Se);if(ke){var Pe=Se.substring(Se.length-ke);we=we.substring(0,we.length-ke),Se=Pe+Se.substring(0,Se.length-ke),Ae=Pe+Ae}for(var je=we,nt=Se,ot=Ae,Ee=ue(we,Se)+ue(Se,Ae);Se.charAt(0)===Ae.charAt(0);){we+=Se.charAt(0),Se=Se.substring(1)+Ae.charAt(0),Ae=Ae.substring(1);var Ge=ue(we,Se)+ue(Se,Ae);Ge>=Ee&&(Ee=Ge,je=we,nt=Se,ot=Ae)}ie[pe-1][1]!=je&&(je?ie[pe-1][1]=je:(ie.splice(pe-1,1),pe--),ie[pe][1]=nt,ot?ie[pe+1][1]=ot:(ie.splice(pe+1,1),pe--))}pe++}},te.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,te.whitespaceRegex_=/\s/,te.linebreakRegex_=/[\r\n]/,te.blanklineEndRegex_=/\n\r?\n$/,te.blanklineStartRegex_=/^\r?\n\r?\n/,te.prototype.diff_cleanupEfficiency=function(ie){for(var ue=!1,pe=[],we=0,Se=null,Ae=0,ke=!1,Pe=!1,je=!1,nt=!1;Ae<ie.length;)ie[Ae][0]==he?(ie[Ae][1].length<this.Diff_EditCost&&(je||nt)?(pe[we++]=Ae,ke=je,Pe=nt,Se=ie[Ae][1]):(we=0,Se=null),je=nt=!1):(ie[Ae][0]==le?nt=!0:je=!0,Se&&(ke&&Pe&&je&&nt||Se.length<this.Diff_EditCost/2&&ke+Pe+je+nt==3)&&(ie.splice(pe[we-1],0,[le,Se]),ie[pe[we-1]+1][0]=ae,we--,Se=null,ke&&Pe?(je=nt=!0,we=0):(we--,Ae=we>0?pe[we-1]:-1,je=nt=!1),ue=!0)),Ae++;ue&&this.diff_cleanupMerge(ie)},te.prototype.diff_cleanupMerge=function(ie){ie.push([he,""]);for(var ue=0,pe=0,we=0,Se="",Ae="",ke;ue<ie.length;)switch(ie[ue][0]){case ae:we++,Ae+=ie[ue][1],ue++;break;case le:pe++,Se+=ie[ue][1],ue++;break;case he:pe+we>1?(pe!==0&&we!==0&&(ke=this.diff_commonPrefix(Ae,Se),ke!==0&&(ue-pe-we>0&&ie[ue-pe-we-1][0]==he?ie[ue-pe-we-1][1]+=Ae.substring(0,ke):(ie.splice(0,0,[he,Ae.substring(0,ke)]),ue++),Ae=Ae.substring(ke),Se=Se.substring(ke)),ke=this.diff_commonSuffix(Ae,Se),ke!==0&&(ie[ue][1]=Ae.substring(Ae.length-ke)+ie[ue][1],Ae=Ae.substring(0,Ae.length-ke),Se=Se.substring(0,Se.length-ke))),pe===0?ie.splice(ue-we,pe+we,[ae,Ae]):we===0?ie.splice(ue-pe,pe+we,[le,Se]):ie.splice(ue-pe-we,pe+we,[le,Se],[ae,Ae]),ue=ue-pe-we+(pe?1:0)+(we?1:0)+1):ue!==0&&ie[ue-1][0]==he?(ie[ue-1][1]+=ie[ue][1],ie.splice(ue,1)):ue++,we=0,pe=0,Se="",Ae="";break}ie[ie.length-1][1]===""&&ie.pop();var Pe=!1;for(ue=1;ue<ie.length-1;)ie[ue-1][0]==he&&ie[ue+1][0]==he&&(ie[ue][1].substring(ie[ue][1].length-ie[ue-1][1].length)==ie[ue-1][1]?(ie[ue][1]=ie[ue-1][1]+ie[ue][1].substring(0,ie[ue][1].length-ie[ue-1][1].length),ie[ue+1][1]=ie[ue-1][1]+ie[ue+1][1],ie.splice(ue-1,1),Pe=!0):ie[ue][1].substring(0,ie[ue+1][1].length)==ie[ue+1][1]&&(ie[ue-1][1]+=ie[ue+1][1],ie[ue][1]=ie[ue][1].substring(ie[ue+1][1].length)+ie[ue+1][1],ie.splice(ue+1,1),Pe=!0)),ue++;Pe&&this.diff_cleanupMerge(ie)},te.prototype.diff_xIndex=function(ie,ue){var pe=0,we=0,Se=0,Ae=0,ke;for(ke=0;ke<ie.length&&(ie[ke][0]!==ae&&(pe+=ie[ke][1].length),ie[ke][0]!==le&&(we+=ie[ke][1].length),!(pe>ue));ke++)Se=pe,Ae=we;return ie.length!=ke&&ie[ke][0]===le?Ae:Ae+(ue-Se)},te.prototype.diff_prettyHtml=function(ie){for(var ue=[],pe=/&/g,we=/</g,Se=/>/g,Ae=/\n/g,ke=0;ke<ie.length;ke++){var Pe=ie[ke][0],je=ie[ke][1],nt=je.replace(pe,"&").replace(we,"<").replace(Se,">").replace(Ae,"¶<br>");switch(Pe){case ae:ue[ke]='<ins style="background:#e6ffe6;">'+nt+"</ins>";break;case le:ue[ke]='<del style="background:#ffe6e6;">'+nt+"</del>";break;case he:ue[ke]="<span>"+nt+"</span>";break}}return ue.join("")},te.prototype.diff_text1=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++)ie[pe][0]!==ae&&(ue[pe]=ie[pe][1]);return ue.join("")},te.prototype.diff_text2=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++)ie[pe][0]!==le&&(ue[pe]=ie[pe][1]);return ue.join("")},te.prototype.diff_levenshtein=function(ie){for(var ue=0,pe=0,we=0,Se=0;Se<ie.length;Se++){var Ae=ie[Se][0],ke=ie[Se][1];switch(Ae){case ae:pe+=ke.length;break;case le:we+=ke.length;break;case he:ue+=Math.max(pe,we),pe=0,we=0;break}}return ue+=Math.max(pe,we),ue},te.prototype.diff_toDelta=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++)switch(ie[pe][0]){case ae:ue[pe]="+"+encodeURI(ie[pe][1]);break;case le:ue[pe]="-"+ie[pe][1].length;break;case he:ue[pe]="="+ie[pe][1].length;break}return ue.join(" ").replace(/%20/g," ")},te.prototype.diff_fromDelta=function(ie,ue){for(var pe=[],we=0,Se=0,Ae=ue.split(/\t/g),ke=0;ke<Ae.length;ke++){var Pe=Ae[ke].substring(1);switch(Ae[ke].charAt(0)){case"+":try{pe[we++]=[ae,decodeURI(Pe)]}catch{throw new Error("Illegal escape in diff_fromDelta: "+Pe)}break;case"-":case"=":var je=parseInt(Pe,10);if(isNaN(je)||je<0)throw new Error("Invalid number in diff_fromDelta: "+Pe);var nt=ie.substring(Se,Se+=je);Ae[ke].charAt(0)=="="?pe[we++]=[he,nt]:pe[we++]=[le,nt];break;default:if(Ae[ke])throw new Error("Invalid diff operation in diff_fromDelta: "+Ae[ke])}}if(Se!=ie.length)throw new Error("Delta length ("+Se+") does not equal source text length ("+ie.length+").");return pe},te.prototype.match_main=function(ie,ue,pe){if(ie==null||ue==null||pe==null)throw new Error("Null input. (match_main)");return pe=Math.max(0,Math.min(pe,ie.length)),ie==ue?0:ie.length?ie.substring(pe,pe+ue.length)==ue?pe:this.match_bitap_(ie,ue,pe):-1},te.prototype.match_bitap_=function(ie,ue,pe){if(ue.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var we=this.match_alphabet_(ue),Se=this;function Ae(pt,Vt){var St=pt/ue.length,Bt=Math.abs(pe-Vt);return Se.Match_Distance?St+Bt/Se.Match_Distance:Bt?1:St}var ke=this.Match_Threshold,Pe=ie.indexOf(ue,pe);Pe!=-1&&(ke=Math.min(Ae(0,Pe),ke),Pe=ie.lastIndexOf(ue,pe+ue.length),Pe!=-1&&(ke=Math.min(Ae(0,Pe),ke)));var je=1<<ue.length-1;Pe=-1;for(var nt,ot,Ee=ue.length+ie.length,Ge,Je=0;Je<ue.length;Je++){for(nt=0,ot=Ee;nt<ot;)Ae(Je,pe+ot)<=ke?nt=ot:Ee=ot,ot=Math.floor((Ee-nt)/2+nt);Ee=ot;var Qe=Math.max(1,pe-ot+1),at=Math.min(pe+ot,ie.length)+ue.length,At=Array(at+2);At[at+1]=(1<<Je)-1;for(var Ct=at;Ct>=Qe;Ct--){var dt=we[ie.charAt(Ct-1)];if(Je===0?At[Ct]=(At[Ct+1]<<1|1)&dt:At[Ct]=(At[Ct+1]<<1|1)&dt|((Ge[Ct+1]|Ge[Ct])<<1|1)|Ge[Ct+1],At[Ct]&je){var bt=Ae(Je,Ct-1);if(bt<=ke)if(ke=bt,Pe=Ct-1,Pe>pe)Qe=Math.max(1,2*pe-Pe);else break}}if(Ae(Je+1,pe)>ke)break;Ge=At}return Pe},te.prototype.match_alphabet_=function(ie){for(var ue={},pe=0;pe<ie.length;pe++)ue[ie.charAt(pe)]=0;for(var pe=0;pe<ie.length;pe++)ue[ie.charAt(pe)]|=1<<ie.length-pe-1;return ue},te.prototype.patch_addContext_=function(ie,ue){if(ue.length!=0){for(var pe=ue.substring(ie.start2,ie.start2+ie.length1),we=0;ue.indexOf(pe)!=ue.lastIndexOf(pe)&&pe.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)we+=this.Patch_Margin,pe=ue.substring(ie.start2-we,ie.start2+ie.length1+we);we+=this.Patch_Margin;var Se=ue.substring(ie.start2-we,ie.start2);Se&&ie.diffs.unshift([he,Se]);var Ae=ue.substring(ie.start2+ie.length1,ie.start2+ie.length1+we);Ae&&ie.diffs.push([he,Ae]),ie.start1-=Se.length,ie.start2-=Se.length,ie.length1+=Se.length+Ae.length,ie.length2+=Se.length+Ae.length}},te.prototype.patch_make=function(ie,ue,pe){var we,Se;if(typeof ie=="string"&&typeof ue=="string"&&typeof pe>"u")we=ie,Se=this.diff_main(we,ue,!0),Se.length>2&&(this.diff_cleanupSemantic(Se),this.diff_cleanupEfficiency(Se));else if(ie&&typeof ie=="object"&&typeof ue>"u"&&typeof pe>"u")Se=ie,we=this.diff_text1(Se);else if(typeof ie=="string"&&ue&&typeof ue=="object"&&typeof pe>"u")we=ie,Se=ue;else if(typeof ie=="string"&&typeof ue=="string"&&pe&&typeof pe=="object")we=ie,Se=pe;else throw new Error("Unknown call format to patch_make.");if(Se.length===0)return[];for(var Ae=[],ke=new te.patch_obj,Pe=0,je=0,nt=0,ot=we,Ee=we,Ge=0;Ge<Se.length;Ge++){var Je=Se[Ge][0],Qe=Se[Ge][1];switch(!Pe&&Je!==he&&(ke.start1=je,ke.start2=nt),Je){case ae:ke.diffs[Pe++]=Se[Ge],ke.length2+=Qe.length,Ee=Ee.substring(0,nt)+Qe+Ee.substring(nt);break;case le:ke.length1+=Qe.length,ke.diffs[Pe++]=Se[Ge],Ee=Ee.substring(0,nt)+Ee.substring(nt+Qe.length);break;case he:Qe.length<=2*this.Patch_Margin&&Pe&&Se.length!=Ge+1?(ke.diffs[Pe++]=Se[Ge],ke.length1+=Qe.length,ke.length2+=Qe.length):Qe.length>=2*this.Patch_Margin&&Pe&&(this.patch_addContext_(ke,ot),Ae.push(ke),ke=new te.patch_obj,Pe=0,ot=Ee,je=nt);break}Je!==ae&&(je+=Qe.length),Je!==le&&(nt+=Qe.length)}return Pe&&(this.patch_addContext_(ke,ot),Ae.push(ke)),Ae},te.prototype.patch_deepCopy=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++){var we=ie[pe],Se=new te.patch_obj;Se.diffs=[];for(var Ae=0;Ae<we.diffs.length;Ae++)Se.diffs[Ae]=we.diffs[Ae].slice();Se.start1=we.start1,Se.start2=we.start2,Se.length1=we.length1,Se.length2=we.length2,ue[pe]=Se}return ue},te.prototype.patch_apply=function(ie,ue){if(ie.length==0)return[ue,[]];ie=this.patch_deepCopy(ie);var pe=this.patch_addPadding(ie);ue=pe+ue+pe,this.patch_splitMax(ie);for(var we=0,Se=[],Ae=0;Ae<ie.length;Ae++){var ke=ie[Ae].start2+we,Pe=this.diff_text1(ie[Ae].diffs),je,nt=-1;if(Pe.length>this.Match_MaxBits?(je=this.match_main(ue,Pe.substring(0,this.Match_MaxBits),ke),je!=-1&&(nt=this.match_main(ue,Pe.substring(Pe.length-this.Match_MaxBits),ke+Pe.length-this.Match_MaxBits),(nt==-1||je>=nt)&&(je=-1))):je=this.match_main(ue,Pe,ke),je==-1)Se[Ae]=!1,we-=ie[Ae].length2-ie[Ae].length1;else{Se[Ae]=!0,we=je-ke;var ot;if(nt==-1?ot=ue.substring(je,je+Pe.length):ot=ue.substring(je,nt+this.Match_MaxBits),Pe==ot)ue=ue.substring(0,je)+this.diff_text2(ie[Ae].diffs)+ue.substring(je+Pe.length);else{var Ee=this.diff_main(Pe,ot,!1);if(Pe.length>this.Match_MaxBits&&this.diff_levenshtein(Ee)/Pe.length>this.Patch_DeleteThreshold)Se[Ae]=!1;else{this.diff_cleanupSemanticLossless(Ee);for(var Ge=0,Je,Qe=0;Qe<ie[Ae].diffs.length;Qe++){var at=ie[Ae].diffs[Qe];at[0]!==he&&(Je=this.diff_xIndex(Ee,Ge)),at[0]===ae?ue=ue.substring(0,je+Je)+at[1]+ue.substring(je+Je):at[0]===le&&(ue=ue.substring(0,je+Je)+ue.substring(je+this.diff_xIndex(Ee,Ge+at[1].length))),at[0]!==le&&(Ge+=at[1].length)}}}}}return ue=ue.substring(pe.length,ue.length-pe.length),[ue,Se]},te.prototype.patch_addPadding=function(ie){for(var ue=this.Patch_Margin,pe="",we=1;we<=ue;we++)pe+=String.fromCharCode(we);for(var we=0;we<ie.length;we++)ie[we].start1+=ue,ie[we].start2+=ue;var Se=ie[0],Ae=Se.diffs;if(Ae.length==0||Ae[0][0]!=he)Ae.unshift([he,pe]),Se.start1-=ue,Se.start2-=ue,Se.length1+=ue,Se.length2+=ue;else if(ue>Ae[0][1].length){var ke=ue-Ae[0][1].length;Ae[0][1]=pe.substring(Ae[0][1].length)+Ae[0][1],Se.start1-=ke,Se.start2-=ke,Se.length1+=ke,Se.length2+=ke}if(Se=ie[ie.length-1],Ae=Se.diffs,Ae.length==0||Ae[Ae.length-1][0]!=he)Ae.push([he,pe]),Se.length1+=ue,Se.length2+=ue;else if(ue>Ae[Ae.length-1][1].length){var ke=ue-Ae[Ae.length-1][1].length;Ae[Ae.length-1][1]+=pe.substring(0,ke),Se.length1+=ke,Se.length2+=ke}return pe},te.prototype.patch_splitMax=function(ie){for(var ue=this.Match_MaxBits,pe=0;pe<ie.length;pe++)if(!(ie[pe].length1<=ue)){var we=ie[pe];ie.splice(pe--,1);for(var Se=we.start1,Ae=we.start2,ke="";we.diffs.length!==0;){var Pe=new te.patch_obj,je=!0;for(Pe.start1=Se-ke.length,Pe.start2=Ae-ke.length,ke!==""&&(Pe.length1=Pe.length2=ke.length,Pe.diffs.push([he,ke]));we.diffs.length!==0&&Pe.length1<ue-this.Patch_Margin;){var nt=we.diffs[0][0],ot=we.diffs[0][1];nt===ae?(Pe.length2+=ot.length,Ae+=ot.length,Pe.diffs.push(we.diffs.shift()),je=!1):nt===le&&Pe.diffs.length==1&&Pe.diffs[0][0]==he&&ot.length>2*ue?(Pe.length1+=ot.length,Se+=ot.length,je=!1,Pe.diffs.push([nt,ot]),we.diffs.shift()):(ot=ot.substring(0,ue-Pe.length1-this.Patch_Margin),Pe.length1+=ot.length,Se+=ot.length,nt===he?(Pe.length2+=ot.length,Ae+=ot.length):je=!1,Pe.diffs.push([nt,ot]),ot==we.diffs[0][1]?we.diffs.shift():we.diffs[0][1]=we.diffs[0][1].substring(ot.length))}ke=this.diff_text2(Pe.diffs),ke=ke.substring(ke.length-this.Patch_Margin);var Ee=this.diff_text1(we.diffs).substring(0,this.Patch_Margin);Ee!==""&&(Pe.length1+=Ee.length,Pe.length2+=Ee.length,Pe.diffs.length!==0&&Pe.diffs[Pe.diffs.length-1][0]===he?Pe.diffs[Pe.diffs.length-1][1]+=Ee:Pe.diffs.push([he,Ee])),je||ie.splice(++pe,0,Pe)}}},te.prototype.patch_toText=function(ie){for(var ue=[],pe=0;pe<ie.length;pe++)ue[pe]=ie[pe];return ue.join("")},te.prototype.patch_fromText=function(ie){var ue=[];if(!ie)return ue;for(var pe=ie.split(`
|
| 3 |
`),we=0,Se=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;we<pe.length;){var Ae=pe[we].match(Se);if(!Ae)throw new Error("Invalid patch string: "+pe[we]);var ke=new te.patch_obj;for(ue.push(ke),ke.start1=parseInt(Ae[1],10),Ae[2]===""?(ke.start1--,ke.length1=1):Ae[2]=="0"?ke.length1=0:(ke.start1--,ke.length1=parseInt(Ae[2],10)),ke.start2=parseInt(Ae[3],10),Ae[4]===""?(ke.start2--,ke.length2=1):Ae[4]=="0"?ke.length2=0:(ke.start2--,ke.length2=parseInt(Ae[4],10)),we++;we<pe.length;){var Pe=pe[we].charAt(0);try{var je=decodeURI(pe[we].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+je)}if(Pe=="-")ke.diffs.push([le,je]);else if(Pe=="+")ke.diffs.push([ae,je]);else if(Pe==" ")ke.diffs.push([he,je]);else{if(Pe=="@")break;if(Pe!=="")throw new Error('Invalid patch mode "'+Pe+'" in: '+je)}we++}}return ue},te.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},te.patch_obj.prototype.toString=function(){var ie,ue;this.length1===0?ie=this.start1+",0":this.length1==1?ie=this.start1+1:ie=this.start1+1+","+this.length1,this.length2===0?ue=this.start2+",0":this.length2==1?ue=this.start2+1:ue=this.start2+1+","+this.length2;for(var pe=["@@ -"+ie+" +"+ue+` @@
|
| 4 |
`],we,Se=0;Se<this.diffs.length;Se++){switch(this.diffs[Se][0]){case ae:we="+";break;case le:we="-";break;case he:we=" ";break}pe[Se+1]=we+encodeURI(this.diffs[Se][1])+`
|
dist/assets/{index-843283db.js → index-b9ab2f3f.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as h,u as te,j as s,h as E}from"./umi-a7f55986.js";import{i as se,q,E as ae,b as I,S as L,L as ne,c as ie,I as oe}from"./index-2293ea9c.js";import{D as M,c as X,a as $,S as re,r as ce,A as le}from"./confirm-2a771655.js";import{r as U,s as H}from"./index-06d8da5b.js";import{A as de,g as W,i as R,M as me,u as Y,f as ue,r as _,m as x,Q as ge,U as P}from"./_setToString-6c0c560b.js";import{p as T}from"./processCompressedAESFile-8d6401c6.js";import{M as fe,P as pe}from"./Table-7f16007d.js";import{B as S}from"./button-001dfcce.js";import{u as he,e as D,R as ye}from"./useDebounce-15fcfd16.js";import{d as C,J as K}from"./jszip.min-1e75c168.js";import{u as xe}from"./useAsync-58b75860.js";import"./index-156661dd.js";var we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"};const Se=we;var je=function(l,d){return h.createElement(de,W(W({},l),{},{ref:d,icon:Se}))},ve=h.forwardRef(je);const _e=ve;var Me=function(a){a===void 0&&(a={});var l=h.useState(a),d=l[0],n=l[1],p=h.useMemo(function(){return{set:function(o,m){n(function(j){var g;return R(R({},j),(g={},g[o]=m,g))})},setAll:function(o){n(o)},remove:function(o){n(function(m){var j=m,g=o;j[g];var v=me(j,[typeof g=="symbol"?g:g+""]);return v})},reset:function(){return n(a)}}},[n]),y=R({get:h.useCallback(function(o){return d[o]},[d])},p);return[d,y]};const Ie=Me;var be=function(a,l,d){if(!se)return[l,function(){}];var n=h.useState(function(){try{var o=sessionStorage.getItem(a);return typeof o!="string"?(sessionStorage.setItem(a,d?String(l):JSON.stringify(l)),l):d?o:JSON.parse(o||"null")}catch{return l}}),p=n[0],y=n[1];return h.useEffect(function(){try{var o=d?String(p):JSON.stringify(p);sessionStorage.setItem(a,o)}catch{}}),[p,y]};const $e=be;const Ce="_title_jd9ry_1",Oe="_header_jd9ry_4",ze="_logo_jd9ry_14",ke="_imageFastPreview_jd9ry_18",Ee="_list_jd9ry_53",G={title:Ce,header:Oe,logo:ze,imageFastPreview:ke,"site-tag-plus":"_site-tag-plus_jd9ry_34","ant-table-row":"_ant-table-row_jd9ry_38","ant-tag":"_ant-tag_jd9ry_44",delete:"_delete_jd9ry_47","score-tags":"_score-tags_jd9ry_50",list:Ee},Re={recognized:"#1890ff",completed:"green",manual:"red",recognizing:"orange"},De=({id:a,env:l})=>{var y;const d=Y(),n=xe(async()=>_(`/torch/musicSet/manage/${a}`,{params:{env:l}}),[]),p=async(o,m)=>{const j=await T(o),g=new Blob([j],{type:"application/json"}),v=P(g,`${m}-id_${a}-${Date.now()}.json`);C(v,`${m}-id_${a}-${Date.now()}.json`,v.type)};return n.loading?null:s.jsxs("div",{children:[n.value.preview?s.jsxs(L,{children:[s.jsx(S,{onClick:()=>p(n.value.preview,"preject"),icon:s.jsx(M,{}),children:"Starry Score"}),s.jsx(S,{onClick:()=>p(n.value.content,"score_json"),icon:s.jsx(M,{}),children:"Find Score"}),s.jsx(S,{onClick:()=>p(n.value.midi,"score_midi"),icon:s.jsx(M,{}),children:"Find MIDI"})]}):s.jsx("div",{children:d.formatMessage({id:"admin.noFiles"})}),n.value?s.jsx("div",{style:{width:"100%"},children:(y=n.value.sources)==null?void 0:y.map(o=>s.jsx("img",{src:o.url,style:{width:"100%"}},o.url))}):null]})};function We(){var F,J;const a=Y(),l=h.useRef(),d=h.useRef(null),[n,p]=$e("admin-env","prod"),[y,o]=Ie(),[m,j]=h.useState([]),g=h.useRef({}),v=te(),u=h.useMemo(()=>{try{const t=q.parse(v.search),e=JSON.parse(decodeURIComponent(t.search))||{};return Q(e)}catch{return{}}},[v.search]),[O,N]=ue(async()=>{try{const t=await _("/torch/musicSet/manage",{params:{limit:50,offset:0,...u,env:n}});return{data:t.rows,success:!0,total:t.count}}catch(t){console.error(t)}return{data:void 0,success:!1}},[u,n]);he(()=>{N()},1e3,[u,n]);const z=(t,e)=>{E.push({pathname:"/playground",search:q.stringify({type:"admin",edit:e?"1":"0",env:n,id:t})})},A=(t,e,i,r=1e3)=>{if(!t.spartito||!t.spartito.regulated)return x.loading({content:a.formatMessage({id:"admin.regulation"},{title:i,pct:0}),key:e}),ce(t,{policy:"equations",quota:r,solutionStore:new le,onProgress:c=>{x.loading({content:a.formatMessage({id:"admin.regulation"},{title:i,pct:c}),key:e}),c===100&&x.destroy(e)}})},B=async t=>{o.set(t.id,!0);const e=await _(`/torch/musicSet/manage/${t.id}`,{params:{env:n}}),i=await T(e.preview),r=U(i,H);await A(r,t.id,t.name);const c=new re({score:r,...r.makeMusicSheet(),workTitle:t.name}).toString();return o.set(t.id,!1),c},Z=async t=>{o.set(t.id,!0);const e=await _(`/torch/musicSet/manage/${t.id}`,{params:{env:n}}),i=await T(e.preview),r=U(i,H),c=_.get("/torch/musicSet/manage/issueMeasure",{params:{env:n,offset:0,limit:1e3,status:[-1],scoreId:t.id}});await A(r,t.id,t.name,100),(await c).rows.forEach(b=>{if(b.status<0){const k=r.spartito.measures.find(ee=>ee.measureIndex===b.measureIndex);k&&(k.events=[],k.voices=[])}}),r.spartito.measures.forEach(b=>r.assignBackgroundForMeasure(b));const w=JSON.stringify(r.spartito);return o.set(t.id,!1),w},V=[{title:"#",render:(t,e,i)=>i,hideInSearch:!0},{title:a.formatMessage({id:"admin.column.name"}),dataIndex:"name",sorter:!0,initialValue:u.search,sortOrder:u.sortedBy==="name"&&u.sortedType?{asc:"ascend",desc:"descend"}[u.sortedType]:null,render:(t,e,i)=>s.jsx("a",{onClick:async()=>{if(x.loading({content:a.formatMessage({id:"common.loadingDetail"}),key:e.id,duration:0}),!(await _(`/torch/musicSet/manage/${e.id}`,{params:{...u,env:n}})).preview){x.destroy(),x.warn(a.formatMessage({id:"common.noPreviewContent"}));return}z(e.id,!1),x.destroy()},children:e.name||s.jsx("span",{style:{color:"#999999"},children:a.formatMessage({id:"common.untitled"})})})},{title:a.formatMessage({id:"admin.column.status"}),dataIndex:"status",valueEnum:{waitUpload:"waitUpload",upload:"upload",recognizing:"recognizing",recognized:"recognized",manual:"manual",completed:"completed",completing:"completing",systemError:"systemError",queue:"queue"},render:(t,e)=>s.jsx("span",{style:{color:Re[e.status]},children:e.status})},{title:a.formatMessage({id:"admin.column.pages"}),render:(t,e)=>{var i;return(i=e.sources)==null?void 0:i.length},width:"4em",align:"center",hideInSearch:!0},{title:a.formatMessage({id:"admin.column.createTime"}),width:"12em",dataIndex:"createTime",sorter:!0,hideInSearch:!0},{title:"id",render:(t,e,i)=>e.id},{title:"userId",dataIndex:"userId",render:(t,e,i)=>e.userId},{title:a.formatMessage({id:"admin.column.quality"}),dataIndex:"quality",render:(t,e)=>Number.isFinite(e.quality)?`${(e.quality*100).toFixed(1)}%`:"N/A"},{title:a.formatMessage({id:"admin.column.actions"}),width:"8em",hideInSearch:!0,render:(t,e,i)=>[s.jsx(fe,{trigger:s.jsx(S,{className:"download",type:"link",icon:s.jsx(_e,{})}),children:s.jsx(De,{id:e.id,env:n})},1),s.jsx(S,{className:"download",type:"link",icon:s.jsx(ae,{}),onClick:async()=>{if(x.loading({content:a.formatMessage({id:"common.loadingDetail"}),key:e.id,duration:0}),!(await _(`/torch/musicSet/manage/${e.id}`,{params:{...u,env:n}})).preview){x.destroy(),x.warn(a.formatMessage({id:"common.noPreviewContent"}));return}z(e.id,!0),x.destroy()}},2),s.jsx(S,{disabled:e.status!=="recognized",icon:y[e.id]?s.jsx(ge,{}):s.jsx(M,{}),onClick:async r=>{if(!await new Promise(w=>{X($.withWarn($.withConfirm({title:a.formatMessage({id:"admin.musicXmlExport.title"}),content:a.formatMessage({id:"admin.musicXmlExport.confirm"}),okText:a.formatMessage({id:"common.confirm"}),cancelText:a.formatMessage({id:"common.cancel"}),onOk:()=>w(!0),onCancel:()=>w(!1)})))}))return;const f=await B(e);C(f,`${e.name}-id_${e.id}-${Date.now()}.xml`,"application/xml")}},3)]}];return s.jsxs(I,{children:[s.jsx(I.Header,{className:G.header,children:s.jsxs(L,{children:[s.jsx(ne,{className:G.logo,to:"/",children:"STARRY✨"}),s.jsx(ie,{})]})}),s.jsx(I,{style:{minHeight:"100vh"},children:s.jsxs(I.Content,{style:{padding:"0 50px 50px",marginTop:"66px",width:"unset"},children:[s.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"center",margin:"10px 0"},children:s.jsxs(L,{size:60,children:[s.jsxs(D.Group,{defaultValue:n,buttonStyle:"solid",onChange:t=>{p(t.target.value),l.current.clearSelected()},children:[s.jsx(D.Button,{value:"prod",children:a.formatMessage({id:"admin.env.prod"})}),s.jsx(D.Button,{value:"test",children:a.formatMessage({id:"admin.env.test"})})]}),s.jsx(S,{icon:s.jsx(ye,{}),onClick:N}),s.jsx(oe,{type:"number",step:1,min:256,style:{width:"8em"},placeholder:"ScoreID to go",onKeyDown:t=>{t.key==="Enter"&&z(t.target.value,!0)}})]})}),s.jsx(pe,{loading:O.loading,dataSource:(F=O.value)==null?void 0:F.data,style:{maxWidth:"100em",margin:"0 auto"},actionRef:l,formRef:d,columns:V,search:{filterType:"light"},size:"small",rowSelection:{onChange:(t,e)=>{j(e)}},pagination:{total:(J=O.value)==null?void 0:J.total,pageSize:50,current:+u.offset/+u.limit+1||1},onChange:(t,e,i,r)=>{var w;const c={ascend:"asc",descend:"desc"}[i.order],f={...u,offset:(t.current-1)*t.pageSize,limit:t.pageSize,tagIdList:e.tagIdList,search:u.search};i.order?(f.sortedBy=i.field,f.sortedType=c):(f.sortedBy=null,f.sortedType=null),((w=e.tagIdList)==null?void 0:w.length)>0?f.tagIdList=e.tagIdList:f.tagIdList=null,console.log("onChange"),E.push({search:`search=${encodeURIComponent(JSON.stringify(Q(f)))}`})},onSubmit:t=>{const e={...Object.fromEntries(Object.entries(u).filter(([i,r])=>!g.current[i])),...t};g.current=t,E.push({search:Object.values(e).filter(Boolean).length>0?`search=${encodeURIComponent(JSON.stringify(e))}`:""})},rowKey:"id",toolBarRender:()=>[s.jsx(S,{disabled:m.length===0,type:"primary",icon:s.jsx(M,{}),onClick:async()=>{if(!await new Promise(c=>{X($.withWarn($.withConfirm({title:a.formatMessage({id:"admin.musicXmlExport.title"}),content:(()=>{const f=m.filter(w=>w.status!=="recognized").length;return a.formatMessage({id:"admin.musicXmlExport.batchConfirm"},{count:m.length,skipped:f>0?a.formatMessage({id:"admin.musicXmlExport.skipped"},{count:f}):""})})(),okText:a.formatMessage({id:"common.confirm"}),cancelText:a.formatMessage({id:"common.cancel"}),onOk:()=>c(!0),onCancel:()=>c(!1)})))}))return;const e=new K;await Promise.all(m.filter(c=>c.status==="recognized").map(async c=>{e.file(`${c.name}-id_${c.id}-${Date.now()}.xml`,await B(c))}));const i=await e.generateAsync({type:"blob"}),r=P(i,`find-omr-pkg-${Date.now()}.zip`);C(r,r.name,r.type)},children:a.formatMessage({id:"admin.batchDownload.musicXml"})},"1"),s.jsx(S,{disabled:m.length===0,type:"primary",icon:s.jsx(M,{}),onClick:async()=>{const t=new K;await Promise.all(m.filter(r=>r.status==="recognized").map(async r=>Promise.race([t.file(`${r.id}.${r.name}-${Date.now()}.spartito.json`,await Z(r)),new Promise(c=>setTimeout(c,3e5))])));const e=await t.generateAsync({type:"blob"}),i=P(e,`StarrySpartito-${Date.now()}.zip`);C(i,i.name,i.type)},children:a.formatMessage({id:"admin.batchDownload.spartito"})},"2")]})]})}),s.jsx(I.Footer,{style:{textAlign:"center"},children:a.formatMessage({id:"common.footer"})})]})}function Q(a){return Object.entries(a).reduce((l,[d,n])=>{var y,o;return(d==="tagIdList"&&((o=(y=n==null?void 0:n.filter)==null?void 0:y.call(n,m=>/^\d+$/.test(String(n))))==null?void 0:o.length)>0||n)&&(l[d]=n),l},{})}export{We as default};
|
|
|
|
| 1 |
+
import{r as h,u as te,j as s,h as E}from"./umi-e07d95da.js";import{i as se,q,E as ae,b as I,S as L,L as ne,c as ie,I as oe}from"./index-5014e2af.js";import{D as M,c as X,a as $,S as re,r as ce,A as le}from"./confirm-0ebf68f1.js";import{r as U,s as H}from"./index-333c2577.js";import{A as de,g as W,i as R,M as me,u as Y,f as ue,r as _,m as x,Q as ge,U as P}from"./_setToString-5e7d8f22.js";import{p as T}from"./processCompressedAESFile-07545094.js";import{M as fe,P as pe}from"./Table-df466f11.js";import{B as S}from"./button-3ac51ee9.js";import{u as he,e as D,R as ye}from"./useDebounce-f1604c2b.js";import{d as C,J as K}from"./jszip.min-73ee4b51.js";import{u as xe}from"./useAsync-139a6ea8.js";import"./index-c03929a6.js";var we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"};const Se=we;var je=function(l,d){return h.createElement(de,W(W({},l),{},{ref:d,icon:Se}))},ve=h.forwardRef(je);const _e=ve;var Me=function(a){a===void 0&&(a={});var l=h.useState(a),d=l[0],n=l[1],p=h.useMemo(function(){return{set:function(o,m){n(function(j){var g;return R(R({},j),(g={},g[o]=m,g))})},setAll:function(o){n(o)},remove:function(o){n(function(m){var j=m,g=o;j[g];var v=me(j,[typeof g=="symbol"?g:g+""]);return v})},reset:function(){return n(a)}}},[n]),y=R({get:h.useCallback(function(o){return d[o]},[d])},p);return[d,y]};const Ie=Me;var be=function(a,l,d){if(!se)return[l,function(){}];var n=h.useState(function(){try{var o=sessionStorage.getItem(a);return typeof o!="string"?(sessionStorage.setItem(a,d?String(l):JSON.stringify(l)),l):d?o:JSON.parse(o||"null")}catch{return l}}),p=n[0],y=n[1];return h.useEffect(function(){try{var o=d?String(p):JSON.stringify(p);sessionStorage.setItem(a,o)}catch{}}),[p,y]};const $e=be;const Ce="_title_jd9ry_1",Oe="_header_jd9ry_4",ze="_logo_jd9ry_14",ke="_imageFastPreview_jd9ry_18",Ee="_list_jd9ry_53",G={title:Ce,header:Oe,logo:ze,imageFastPreview:ke,"site-tag-plus":"_site-tag-plus_jd9ry_34","ant-table-row":"_ant-table-row_jd9ry_38","ant-tag":"_ant-tag_jd9ry_44",delete:"_delete_jd9ry_47","score-tags":"_score-tags_jd9ry_50",list:Ee},Re={recognized:"#1890ff",completed:"green",manual:"red",recognizing:"orange"},De=({id:a,env:l})=>{var y;const d=Y(),n=xe(async()=>_(`/torch/musicSet/manage/${a}`,{params:{env:l}}),[]),p=async(o,m)=>{const j=await T(o),g=new Blob([j],{type:"application/json"}),v=P(g,`${m}-id_${a}-${Date.now()}.json`);C(v,`${m}-id_${a}-${Date.now()}.json`,v.type)};return n.loading?null:s.jsxs("div",{children:[n.value.preview?s.jsxs(L,{children:[s.jsx(S,{onClick:()=>p(n.value.preview,"preject"),icon:s.jsx(M,{}),children:"Starry Score"}),s.jsx(S,{onClick:()=>p(n.value.content,"score_json"),icon:s.jsx(M,{}),children:"Find Score"}),s.jsx(S,{onClick:()=>p(n.value.midi,"score_midi"),icon:s.jsx(M,{}),children:"Find MIDI"})]}):s.jsx("div",{children:d.formatMessage({id:"admin.noFiles"})}),n.value?s.jsx("div",{style:{width:"100%"},children:(y=n.value.sources)==null?void 0:y.map(o=>s.jsx("img",{src:o.url,style:{width:"100%"}},o.url))}):null]})};function We(){var F,J;const a=Y(),l=h.useRef(),d=h.useRef(null),[n,p]=$e("admin-env","prod"),[y,o]=Ie(),[m,j]=h.useState([]),g=h.useRef({}),v=te(),u=h.useMemo(()=>{try{const t=q.parse(v.search),e=JSON.parse(decodeURIComponent(t.search))||{};return Q(e)}catch{return{}}},[v.search]),[O,N]=ue(async()=>{try{const t=await _("/torch/musicSet/manage",{params:{limit:50,offset:0,...u,env:n}});return{data:t.rows,success:!0,total:t.count}}catch(t){console.error(t)}return{data:void 0,success:!1}},[u,n]);he(()=>{N()},1e3,[u,n]);const z=(t,e)=>{E.push({pathname:"/playground",search:q.stringify({type:"admin",edit:e?"1":"0",env:n,id:t})})},A=(t,e,i,r=1e3)=>{if(!t.spartito||!t.spartito.regulated)return x.loading({content:a.formatMessage({id:"admin.regulation"},{title:i,pct:0}),key:e}),ce(t,{policy:"equations",quota:r,solutionStore:new le,onProgress:c=>{x.loading({content:a.formatMessage({id:"admin.regulation"},{title:i,pct:c}),key:e}),c===100&&x.destroy(e)}})},B=async t=>{o.set(t.id,!0);const e=await _(`/torch/musicSet/manage/${t.id}`,{params:{env:n}}),i=await T(e.preview),r=U(i,H);await A(r,t.id,t.name);const c=new re({score:r,...r.makeMusicSheet(),workTitle:t.name}).toString();return o.set(t.id,!1),c},Z=async t=>{o.set(t.id,!0);const e=await _(`/torch/musicSet/manage/${t.id}`,{params:{env:n}}),i=await T(e.preview),r=U(i,H),c=_.get("/torch/musicSet/manage/issueMeasure",{params:{env:n,offset:0,limit:1e3,status:[-1],scoreId:t.id}});await A(r,t.id,t.name,100),(await c).rows.forEach(b=>{if(b.status<0){const k=r.spartito.measures.find(ee=>ee.measureIndex===b.measureIndex);k&&(k.events=[],k.voices=[])}}),r.spartito.measures.forEach(b=>r.assignBackgroundForMeasure(b));const w=JSON.stringify(r.spartito);return o.set(t.id,!1),w},V=[{title:"#",render:(t,e,i)=>i,hideInSearch:!0},{title:a.formatMessage({id:"admin.column.name"}),dataIndex:"name",sorter:!0,initialValue:u.search,sortOrder:u.sortedBy==="name"&&u.sortedType?{asc:"ascend",desc:"descend"}[u.sortedType]:null,render:(t,e,i)=>s.jsx("a",{onClick:async()=>{if(x.loading({content:a.formatMessage({id:"common.loadingDetail"}),key:e.id,duration:0}),!(await _(`/torch/musicSet/manage/${e.id}`,{params:{...u,env:n}})).preview){x.destroy(),x.warn(a.formatMessage({id:"common.noPreviewContent"}));return}z(e.id,!1),x.destroy()},children:e.name||s.jsx("span",{style:{color:"#999999"},children:a.formatMessage({id:"common.untitled"})})})},{title:a.formatMessage({id:"admin.column.status"}),dataIndex:"status",valueEnum:{waitUpload:"waitUpload",upload:"upload",recognizing:"recognizing",recognized:"recognized",manual:"manual",completed:"completed",completing:"completing",systemError:"systemError",queue:"queue"},render:(t,e)=>s.jsx("span",{style:{color:Re[e.status]},children:e.status})},{title:a.formatMessage({id:"admin.column.pages"}),render:(t,e)=>{var i;return(i=e.sources)==null?void 0:i.length},width:"4em",align:"center",hideInSearch:!0},{title:a.formatMessage({id:"admin.column.createTime"}),width:"12em",dataIndex:"createTime",sorter:!0,hideInSearch:!0},{title:"id",render:(t,e,i)=>e.id},{title:"userId",dataIndex:"userId",render:(t,e,i)=>e.userId},{title:a.formatMessage({id:"admin.column.quality"}),dataIndex:"quality",render:(t,e)=>Number.isFinite(e.quality)?`${(e.quality*100).toFixed(1)}%`:"N/A"},{title:a.formatMessage({id:"admin.column.actions"}),width:"8em",hideInSearch:!0,render:(t,e,i)=>[s.jsx(fe,{trigger:s.jsx(S,{className:"download",type:"link",icon:s.jsx(_e,{})}),children:s.jsx(De,{id:e.id,env:n})},1),s.jsx(S,{className:"download",type:"link",icon:s.jsx(ae,{}),onClick:async()=>{if(x.loading({content:a.formatMessage({id:"common.loadingDetail"}),key:e.id,duration:0}),!(await _(`/torch/musicSet/manage/${e.id}`,{params:{...u,env:n}})).preview){x.destroy(),x.warn(a.formatMessage({id:"common.noPreviewContent"}));return}z(e.id,!0),x.destroy()}},2),s.jsx(S,{disabled:e.status!=="recognized",icon:y[e.id]?s.jsx(ge,{}):s.jsx(M,{}),onClick:async r=>{if(!await new Promise(w=>{X($.withWarn($.withConfirm({title:a.formatMessage({id:"admin.musicXmlExport.title"}),content:a.formatMessage({id:"admin.musicXmlExport.confirm"}),okText:a.formatMessage({id:"common.confirm"}),cancelText:a.formatMessage({id:"common.cancel"}),onOk:()=>w(!0),onCancel:()=>w(!1)})))}))return;const f=await B(e);C(f,`${e.name}-id_${e.id}-${Date.now()}.xml`,"application/xml")}},3)]}];return s.jsxs(I,{children:[s.jsx(I.Header,{className:G.header,children:s.jsxs(L,{children:[s.jsx(ne,{className:G.logo,to:"/",children:"STARRY✨"}),s.jsx(ie,{})]})}),s.jsx(I,{style:{minHeight:"100vh"},children:s.jsxs(I.Content,{style:{padding:"0 50px 50px",marginTop:"66px",width:"unset"},children:[s.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"center",margin:"10px 0"},children:s.jsxs(L,{size:60,children:[s.jsxs(D.Group,{defaultValue:n,buttonStyle:"solid",onChange:t=>{p(t.target.value),l.current.clearSelected()},children:[s.jsx(D.Button,{value:"prod",children:a.formatMessage({id:"admin.env.prod"})}),s.jsx(D.Button,{value:"test",children:a.formatMessage({id:"admin.env.test"})})]}),s.jsx(S,{icon:s.jsx(ye,{}),onClick:N}),s.jsx(oe,{type:"number",step:1,min:256,style:{width:"8em"},placeholder:"ScoreID to go",onKeyDown:t=>{t.key==="Enter"&&z(t.target.value,!0)}})]})}),s.jsx(pe,{loading:O.loading,dataSource:(F=O.value)==null?void 0:F.data,style:{maxWidth:"100em",margin:"0 auto"},actionRef:l,formRef:d,columns:V,search:{filterType:"light"},size:"small",rowSelection:{onChange:(t,e)=>{j(e)}},pagination:{total:(J=O.value)==null?void 0:J.total,pageSize:50,current:+u.offset/+u.limit+1||1},onChange:(t,e,i,r)=>{var w;const c={ascend:"asc",descend:"desc"}[i.order],f={...u,offset:(t.current-1)*t.pageSize,limit:t.pageSize,tagIdList:e.tagIdList,search:u.search};i.order?(f.sortedBy=i.field,f.sortedType=c):(f.sortedBy=null,f.sortedType=null),((w=e.tagIdList)==null?void 0:w.length)>0?f.tagIdList=e.tagIdList:f.tagIdList=null,console.log("onChange"),E.push({search:`search=${encodeURIComponent(JSON.stringify(Q(f)))}`})},onSubmit:t=>{const e={...Object.fromEntries(Object.entries(u).filter(([i,r])=>!g.current[i])),...t};g.current=t,E.push({search:Object.values(e).filter(Boolean).length>0?`search=${encodeURIComponent(JSON.stringify(e))}`:""})},rowKey:"id",toolBarRender:()=>[s.jsx(S,{disabled:m.length===0,type:"primary",icon:s.jsx(M,{}),onClick:async()=>{if(!await new Promise(c=>{X($.withWarn($.withConfirm({title:a.formatMessage({id:"admin.musicXmlExport.title"}),content:(()=>{const f=m.filter(w=>w.status!=="recognized").length;return a.formatMessage({id:"admin.musicXmlExport.batchConfirm"},{count:m.length,skipped:f>0?a.formatMessage({id:"admin.musicXmlExport.skipped"},{count:f}):""})})(),okText:a.formatMessage({id:"common.confirm"}),cancelText:a.formatMessage({id:"common.cancel"}),onOk:()=>c(!0),onCancel:()=>c(!1)})))}))return;const e=new K;await Promise.all(m.filter(c=>c.status==="recognized").map(async c=>{e.file(`${c.name}-id_${c.id}-${Date.now()}.xml`,await B(c))}));const i=await e.generateAsync({type:"blob"}),r=P(i,`find-omr-pkg-${Date.now()}.zip`);C(r,r.name,r.type)},children:a.formatMessage({id:"admin.batchDownload.musicXml"})},"1"),s.jsx(S,{disabled:m.length===0,type:"primary",icon:s.jsx(M,{}),onClick:async()=>{const t=new K;await Promise.all(m.filter(r=>r.status==="recognized").map(async r=>Promise.race([t.file(`${r.id}.${r.name}-${Date.now()}.spartito.json`,await Z(r)),new Promise(c=>setTimeout(c,3e5))])));const e=await t.generateAsync({type:"blob"}),i=P(e,`StarrySpartito-${Date.now()}.zip`);C(i,i.name,i.type)},children:a.formatMessage({id:"admin.batchDownload.spartito"})},"2")]})]})}),s.jsx(I.Footer,{style:{textAlign:"center"},children:a.formatMessage({id:"common.footer"})})]})}function Q(a){return Object.entries(a).reduce((l,[d,n])=>{var y,o;return(d==="tagIdList"&&((o=(y=n==null?void 0:n.filter)==null?void 0:y.call(n,m=>/^\d+$/.test(String(n))))==null?void 0:o.length)>0||n)&&(l[d]=n),l},{})}export{We as default};
|
dist/assets/{index-92446400.js → index-bcc6e795.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
import{A as ee,g as U,p as oe,T as ce,Y as le,S as ue,U as fe,a6 as de}from"./_setToString-
|
| 2 |
`),r.title.s={size:h.reduce((l,x)=>l+x.fontSize,0)/h.length});const d=m.filter(l=>l.type===D.Text&&l.textType==="Author"&&l.x>e.pages[0].width/2);d.length>0&&(r.title.composer=d.map(l=>l.text).join(`
|
| 3 |
`),r.title.c={size:d.reduce((l,x)=>l+x.fontSize,0)/d.length})}if(r.page={w:e.pages[0].width,h:e.pages[0].height},r.pages=e.pages.map(i=>{const h=i.source.dimensions.width/i.source.interval,d=i.source.dimensions.height/i.source.interval,[l,x,C,s]=i.source.matrix;return{src:i.source.url,w:h,h:d,x:0,y:0,l1:e.systems.indexOf(i.systems[0]),ls:i.systems.length,matrix:[l,x,C,s,-1/2*l*h+-1/2*d*C+1/2*i.width||0,-1/2*x*h+-1/2*d*s+1/2*i.height||0]}}),r.parts=[],r.lines=[],g){const i=e.staffLayout.partGroups.map(s=>s.range[0]===s.range[1]?[s.range[0]]:s.range),h=e.getTokenMap(),d=[];for(const[s,O]of i.entries()){const E=i.slice(0,s).flat().length,o={measures:[]};e.systems.forEach((a,f)=>{const k=a.staves.slice(),T=i.flat().map(c=>1<<c&a.staffMask?k.shift():null),w=[0,...a.measureBars];for(let c=0;c<a.measureCount;c++){const M=e.spartito.measureIndexMapping[a.headMeasureIndex+c];if(!Number.isFinite(M)){w.length>c+1&&(w[c+1]=w[c]);continue}const N=[];for(const L of O){const z=T[L];z&&N.push(...z.measures[c].getChords().map(A=>({chord:A,staffIndexInPart:L-E})))}let B=0;const v=w[c],R=[];N.forEach(({staffIndexInPart:L,chord:z})=>{const A=[];let j=z.tip?z.tip.x:z.right-z.left/2;z.noteIds.forEach(($,Y)=>{const F=h.get($),u=`n_${i.length>1?s+"_":""}${M}_${B}`;B++,I.set(F.id,u),b.set(F.id,(F.left+F.right)/2-v),S.set(F.id,L+1),A.push({line:-z.ys[Y]*2,id:u,staff:L+1,x:(F.left+F.right)/2-j})}),d[M]=d[M]||[],d[M].push(j-v);const q=e.spartito.measures[a.headMeasureIndex+c].events.filter($=>$.noteIds.some(Y=>z.noteIds.includes(Y)));R.push({elems:A,x:j-v,type:2**z.division,...q.some($=>$.grace)?{grace:{}}:{}})}),o.measures[M]={w:w[c+1]-w[c],staves:O.length,notes:R}}});let y=null;e.spartito.measures.forEach((a,f)=>{const k=e.spartito.measureIndexMapping[f],w=a.contexts.flat().filter(M=>Q.includes(M.tokenType)&&O.includes(M.staff)).map(M=>{const N=i.find(B=>B.includes(M.staff));return{x:M.x,clef:Z(M),staff:N.indexOf(M.staff)+1,tick:M.tick}});w.length>0&&o.measures[k]&&(o.measures[k].clefs=w);const c=a.basics.filter((M,N)=>1<<N&a.staffMask)[0].keySignature;c!==y&&(o.measures[k]&&(o.measures[k].fifths={fifths:c}),y=c)}),o.measures.length>0&&(r.parts[s]=o)}e.systems.forEach((s,O)=>{var M;const E=[],o=s.staves[0],y=s.staves[s.staves.length-1],a=o.top+o.staffY-2,f=y.top+y.staffY-2,k=s.staves.slice(),T=i.flat().map(N=>1<<N&s.staffMask?k.shift():null);let w=null;for(const[N,B]of i.entries()){const v=B.map(u=>T.find(P=>(P==null?void 0:P.index)===u)||null),R=v.map((u,P)=>[P,!u]).filter(u=>u[1]);let L=null;R.length>0&&(L=Object.fromEntries(R.map(u=>[u[0]+1,{hide:u[1]}])));let z=0,A=0;const j=v.filter(u=>!!u);if(j.length>0){const u=j[0],P=j[j.length-1],_=u.top+u.staffY-2,ie=P.top+P.staffY-2;z=_-a,A=ie-_+4}const{list:q,last:$}=v.reduce((u,P,_)=>(u.last===null||P===null?_===0&&z>0?u.list.push(z-4):u.list.push(0):u.list.push(P.top+P.staffY-(u.last.top+u.last.staffY)-4),u.last=P||u.last,u),{last:w,list:[]});w=$;const Y=v.map(u=>{if(u!=null&&u.maskImage){const P=u.imagePosition;return{src:u.maskImage,x:P.x,y:s.top+u.top+P.y-(s.top+u.top+u.staffY-2),w:P.width,h:P.height}}return null}),F=e.spartito.measures[s.headMeasureIndex];E.push({distances:q,imgs:Y,y:z,staves:B.length,parti:N,height:A,...L?{details:L}:{},clef:Object.fromEntries((M=e.spartito.measures[s.headMeasureIndex])==null?void 0:M.contexts.flat().filter(u=>Q.includes(u.tokenType)&&B.includes(u.staff)).map(u=>[u.staff,Z(u)])),fifths:F.basics.filter((u,P)=>1<<P&F.staffMask)[0].keySignature})}const c=s.measureBars.map((N,B)=>e.spartito.measureIndexMapping[s.headMeasureIndex+B]).filter(N=>Number.isFinite(N));r.lines[O]={m1:c[0],m2:c.length>0?c[c.length-1]+1:void 0,x:s.left,y:s.top+a,w:s.measureBars[s.measureBars.length-1],h:f-a+4,lineStaves:E}});const l={0:"default",1:"brace",2:"bracket",3:"square"},x=te(e.staffLayoutCode),C=x.partGroups.map(s=>({sort:s.range[0],part:s})).sort((s,O)=>s.sort-O.sort).map(s=>s.part);r.groups=x.groups.filter(s=>s.group.type!==0).map((s,O)=>({type:l[s.group.type],p1:C.findIndex(E=>E.range.includes(s.range[0])),p2:C.findIndex(E=>E.range.includes(s.range[s.range.length-1]))})).filter(s=>s.type!=="default")}t&&(r.measInfo=t.notation.measures.map((i,h)=>{const d=new Map;return i.notes.forEach(l=>{d.set(l.tick,[...d.get(l.tick)||[],b.get(l.id)])}),Array.from(d.entries()).sort((l,x)=>+l[0]-x[0]).reduce((l,x,C)=>{const s=x[1].find(O=>O>l.last)||x[1][0];return l.list.push(s),l.last=s,l},{last:null,list:[]}).list.filter(Number.isFinite)}));let p;if(t){p={};const i=new Map;let h,d;t.notation.measures.forEach((o,y)=>{const{numerator:a,denominator:f}=o.timeSignature;!p.beats&&!p.beatsUnit&&(p.beats=a,p.beatsUnit=f,h=a,d=f),p.beatInfos=p.beatInfos||[],(h!==a||d!==f)&&(h=a,d=f,p.beatInfos.push({tick:o.tick,beats:a,beatsUnit:f})),p.tempos=p.tempos||[],o.events.forEach(k=>{k.data.type==="meta"&&k.data.subtype==="setTempo"&&p.tempos.push({tick:o.tick,tempo:k.data.microsecondsPerBeat})})}),p.measures=t.notation.measures.reduce((o,y,a)=>{const f=Array.from(new Set(y.notes.map(k=>k.tick))).sort((k,T)=>k-T);return y.notes.forEach(k=>{i.set(k.id,f.indexOf(k.tick))}),o[y.tick]={measure:a,duration:y.duration,note_ticks:f},o},{}),p.measureInfos=t.notation.measures.map((o,y)=>({number:String(y+1),fifths:o.keySignature,beats:o.timeSignature.numerator,beatUnit:o.timeSignature.denominator}));const x=t.notation.toPerformingMIDI(t.notation.measures.map((o,y)=>y+1)).tracks,{partGroups:C}=e.staffLayout;let s=x.map((o,y)=>{const a=C[y].key;let f;switch(a){case"vi":case"vi1":case"vi2":f=40;break;case"viola":f=42;break;case"vo":f=55;break;case"basso":f=71;break;default:f=0;break}return{program:f,channel:y,name:e.instrumentDict[a]??"Piano",track:o}});if(C.some(o=>o.group.grand)){const o=/l\.?h\.?|左手|left hand/i,y=/r\.?h\.?|右手|right hand/i,a=Object.entries(e.instrumentDict).filter(([T,w])=>o.test(w)||y.test(w)).map(([T,w])=>({key:T,hand:o.test(w)?"left":"right"}));let f=null,k;if(a.length===2&&a[0].hand!==a[1].hand){const T=a.find(c=>c.hand==="left"),w=a.find(c=>c.hand==="right");f=[e.staffLayout.staffIds.findIndex(c=>c===(w==null?void 0:w.key)),e.staffLayout.staffIds.findIndex(c=>c===(T==null?void 0:T.key))],k=C.findIndex(c=>c.range[0]<=Math.min(...f)&&c.range[1]>=Math.max(...f))}if(Number.isFinite(k)&&k>-1){const T=s[k],w=[];T.track.forEach(c=>{Number.isFinite(c.staff)&&(w[c.staff]||(w[c.staff]=[]),w[c.staff].push(c)),c.type==="meta"&&w.forEach(M=>{M.push(c)})}),s.splice(k,1,w.filter(Boolean).map(c=>({...T,track:c}))),s=s.flat(),p.rightHandTrack=f[0],p.leftHandTrack=f[1]}else s.sort((T,w)=>T===s[k]?-1:0)}p.tracks=s.map(({program:o,channel:y,name:a})=>({program:o,channel:y,name:a}));const O=s.map(({track:o})=>{const y=new Map;return o.map(a=>{if(a.subtype==="noteOn"&&y.set(a.noteNumber,a),a.subtype==="noteOff"){const f=y.get(a.noteNumber);(f==null?void 0:f.noteNumber)===a.noteNumber&&(f.duration=a.ticks-f.ticks)}return a})}),E=new Map(Object.entries(p.measures).map(([o,y])=>[y.measure,+o]));p.events=O.map((o,y)=>o.filter(a=>a.type==="channel").map(a=>{var k,T;(k=a==null?void 0:a.ids)!=null&&k[0]&&(a.numId=I.get(a.ids[0]));let f=[0,0,0];switch(a.subtype){case"noteOn":f=[144|a.channel,a.noteNumber,a.velocity];break;case"noteOff":f=[128|a.channel,a.noteNumber,a.velocity?a.velocity:0];break;case"noteAftertouch":f=[160|a.channel,a.noteNumber,a.amount];break;case"controller":f=[176|a.channel,a.controllerType,a.value];break;case"programChange":f=[192|a.channel,a.programNumber,0];break;case"channelAftertouch":f=[208|a.channel,a.amount,0];break;case"pitchBend":f=[224|a.channel,a.value&255,a.value>>7&255];break;default:throw new Error("unhandled event subtype:"+a.subtype)}return{...a.subtype==="noteOn"?{id:I.get((T=a==null?void 0:a.ids)==null?void 0:T[0])}:{},tick:a.ticks,channel:a.channel,duration:a.duration,track:y,event:f,elem_ids:a==null?void 0:a.ids.map(w=>I.get(w)),measure:a.measure-1,meas_start_tick:E.get(a.measure-1),staff:S.get(a.ids[0]),note:i.get(a.ids[0])}})).flat(1).sort((o,y)=>{for(const a of["tick","measure","track"])if(o[a]!==y[a])return o[a]-y[a];return 0})}return{scoreJson:r,midiJson:p}}var H={exports:{}};function Pe(e,t){var n=t&&t.cache?t.cache:Be,g=t&&t.serializer?t.serializer:Ne,r=t&&t.strategy?t.strategy:ze;return r(e,{cache:n,serializer:g})}function Oe(e){return e==null||typeof e=="number"||typeof e=="boolean"}function se(e,t,n,g){var r=Oe(g)?g:n(g),I=t.get(r);return typeof I>"u"&&(I=e.call(this,g),t.set(r,I)),I}function ne(e,t,n){var g=Array.prototype.slice.call(arguments,3),r=n(g),I=t.get(r);return typeof I>"u"&&(I=e.apply(this,g),t.set(r,I)),I}function X(e,t,n,g,r){return n.bind(t,e,g,r)}function ze(e,t){var n=e.length===1?se:ne;return X(e,this,n,t.cache.create(),t.serializer)}function Ce(e,t){var n=ne;return X(e,this,n,t.cache.create(),t.serializer)}function Ee(e,t){var n=se;return X(e,this,n,t.cache.create(),t.serializer)}function Ne(){return JSON.stringify(arguments)}function G(){this.cache=Object.create(null)}G.prototype.has=function(e){return e in this.cache};G.prototype.get=function(e){return this.cache[e]};G.prototype.set=function(e,t){this.cache[e]=t};var Be={create:function(){return new G}};H.exports=Pe;H.exports.strategies={variadic:Ce,monadic:Ee};var Fe=H.exports;const Le=pe(Fe),ve=oe(async({file:e,key:t,uploadUrl:n})=>(await ce(e,{key:t,uploadUrl:n}),t),{cacheKey:e=>e[0].key}),je=async e=>Promise.all(e.filter(Boolean).map(async t=>{const n=await ue(t);return await ve({file:t,key:n.key,uploadUrl:n.uploadUrl}),{key:n.key,url:n.url}}));async function We(e){var g;if(typeof e!="string"||e.startsWith("md5"))return null;if(e.startsWith("http")||e.startsWith("/uploads/"))return e;const t=le(e,"file");return t?((g=(await je([t]))[0])==null?void 0:g.url)??null:null}async function De(e){if(typeof e!="string")return null;if(e.startsWith("http")){const t=await(await fetch(e)).blob();return new Promise(n=>{const g=new FileReader;g.onloadend=function(){n(g.result)},g.readAsDataURL(t)})}return e}async function Ve(e){try{return await De(e)}catch(t){return console.warn("toDataUrl error:",t),e}}async function Ke(e){var r,I;const t=e.find(b=>b.name==="index.json");if(!t){console.warn("no index.json file found in package.");return}const n=W(await t.text(),V);n.settings=n.settings||{semanticConfidenceThreshold:1,enabledGauge:!1,pageLayoutMethod:K.ByLines},(I=(r=n.systems)==null?void 0:r.forEach)==null||I.call(r,b=>{var S,m;return(m=(S=b.staves)==null?void 0:S.forEach)==null?void 0:m.call(S,p=>{var i,h;return(h=(i=p.semantics)==null?void 0:i.forEach)==null?void 0:h.call(i,d=>{d.confidence=Number.isFinite(d.confidence)?d.confidence:1})})});const g=(await Promise.all(e.map(async b=>/^[0-9a-f]+\.?(png|gif)$/.test(b.name)?new Promise(S=>{let m=new FileReader;m.readAsDataURL(b),m.onload=function(){S({[b.name]:m.result})}}):{}))).reduce((b,S)=>({...b,...S}),{});return await n.replaceImageKeys(async b=>b&&/^md5:/.test(b)?g[b.replace("md5:","")]:b&&!/^\w+:/.test(b)?g[b]:b),n}async function He(e){var t,n;switch(e.type){case"application/zip":case"application/x-zip-compressed":{const g=await ae.loadAsync(e),r=g.files["index.json"];if(!r){console.warn("no index.json file found in package.");return}const I=await r.async("text"),b=W(I,V);b.settings=b.settings||{semanticConfidenceThreshold:1,enabledGauge:!1,pageLayoutMethod:K.ByLines},(n=(t=b.systems)==null?void 0:t.forEach)==null||n.call(t,m=>{var p,i;return(i=(p=m.staves)==null?void 0:p.forEach)==null?void 0:i.call(p,h=>{var d,l;return(l=(d=h.semantics)==null?void 0:d.forEach)==null?void 0:l.call(d,x=>{x.confidence=Number.isFinite(x.confidence)?x.confidence:1})})});const S=(await Promise.all(Object.keys(g.files).map(async m=>{if(/^[0-9a-f]+\.?(png|gif)$/.test(m)){const p=await g.files[m].async("arraybuffer"),i=new Blob([p],{type:"image/png"});return new Promise(h=>{const d=new FileReader;d.onload=()=>{h({[m]:d.result})},d.readAsDataURL(i)})}}))).reduce((m,p)=>({...m,...p}),{});return await b.replaceImageKeys(async m=>m&&/^md5:/.test(m)?S[m.replace("md5:","")]:m&&!/^\w+:/.test(m)?S[m]:m),b}case"application/json":return new Promise(g=>{const r=new FileReader;r.onload=()=>{g(W(r.result,V))},r.readAsText(e)});default:return console.warn("unsupported file type:",e.type),null}}function Xe(e){return new he({title:(e==null?void 0:e.title)||me().formatMessage({id:"playground.newScore"}),stavesCount:2,paperOptions:{raggedLast:!0,raggedLastBottom:!0},headers:{},instrumentDict:{},settings:{enabledGauge:!1,pageLayoutMethod:K.ByLines,semanticConfidenceThreshold:1}})}function Qe(e,t,n=1){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)<=n}function Ze(e,{modify:t=!1}={}){return!t&&!e.modified?delete e.modified:e.modified=e.modified||t,e.deepCopy()}const et=Le(te);function Ae(e,t){return t(e)?e:e.parentNode?Ae(e.parentNode,t):null}const tt=async e=>{const{scoreJson:t,midiJson:n}=Me(e);async function g(S,{type:m="image/webp",maxHeight:p=1680,quality:i=.8}={}){const h=await new Promise((o,y)=>{const a=new globalThis.Image;a.crossOrigin="anonymous",a.src=S,a.onload=()=>{o(a)},a.onerror=()=>{y(a)}}),{naturalWidth:d,naturalHeight:l}=h;let x=d,C=l;l>=p&&(C=p,x=d*p/l);const s=new globalThis.OffscreenCanvas(x,C),O=s.getContext("2d");O.imageSmoothingEnabled=!0,O.imageSmoothingQuality="high",O.drawImage(h,0,0,x,C);const E=await s.convertToBlob({type:m,quality:i});return{blob:E,md5:de.ArrayBuffer.hash(await E.arrayBuffer()),suffix:m.split("/")[1]}}const r=new ae;r.file("scoreimg_url.json",JSON.stringify(t,null,0)),await Promise.all([...t.pages.map(async S=>{const{blob:m,md5:p,suffix:i}=await g(S.src),h=`${p}.${i}`;S.src=h,await r.file("scoreimgs/"+h,m,{binary:!0,createFolders:!0})}),...t.lines.map(S=>S.lineStaves.map(m=>m.imgs)).flat(2).map(async S=>{const m=S==null?void 0:S.src;if(m){const{blob:p,md5:i,suffix:h}=await g(m),d=`${i}.${h}`;S.src=d,await r.file("scoreimgs/"+d,p,{binary:!0,createFolders:!0})}})]),r.file("scoreimg.json",JSON.stringify(t,null,0)),r.file("scoremidi.json",JSON.stringify(n,null,0));const I=await r.generateAsync({type:"blob"}),b=fe(I,`find-omr-${e.title}-${Date.now()}.zip`);ge(b,b.name,b.type)},re=(e,t)=>Number.isInteger(e)&&Number.isInteger(t)?t===0?e:re(t,e%t):NaN,$e=e=>e.reduce((t,n)=>re(t,n)),at=e=>{const t=e.map(r=>r.mainDuration),n=t.reduce((r,I)=>r+I,0),g=$e(t);return{sum:n,gcdDuration:g}};export{Ge as P,qe as S,Je as a,Ke as b,Ze as c,at as d,He as e,tt as f,Qe as i,Ae as m,Xe as n,et as p,Ve as s,De as t,We as u};
|
|
|
|
| 1 |
+
import{A as ee,g as U,p as oe,T as ce,Y as le,S as ue,U as fe,a6 as de}from"./_setToString-5e7d8f22.js";import{r as J,g as pe,m as me}from"./umi-e07d95da.js";import{a as D,p as te,K as he,P as K,r as W,s as V}from"./index-333c2577.js";import{J as ae,d as ge}from"./jszip.min-73ee4b51.js";var ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};const be=ye;var we=function(t,n){return J.createElement(ee,U(U({},t),{},{ref:n,icon:be}))},ke=J.forwardRef(we);const Je=ke;var xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M442.3 677.6l199.4-156.7a11.3 11.3 0 000-17.7L442.3 346.4c-7.4-5.8-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.7 18.3 8.9z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"play-square",theme:"outlined"};const Se=xe;var Ie=function(t,n){return J.createElement(ee,U(U({},t),{},{ref:n,icon:Se}))},Te=J.forwardRef(Ie);const Ge=Te;class qe{timer;tasks={};handlers={};constructor(t=Date){this.timer=t}clear(){Object.values(this.handlers).forEach(t=>clearTimeout(t)),this.tasks={},this.handlers={}}getTask(t){const n=Math.max(t-this.timer.now(),0);return this.tasks[t]||(this.tasks[t]=new Promise(g=>{this.handlers[t]=setTimeout(g,n)}).then(()=>{delete this.tasks[t],delete this.handlers[t]})),this.tasks[t]}appendTask(t,n){this.tasks[t]=this.getTask(t).then(n)}}const Q=[D.ClefG,D.ClefF,D.ClefC],Z=e=>{let t=null;switch(e.tokenType){case D.ClefG:t="Treble";break;case D.ClefF:t="Bass";break;case D.ClefC:e.y===-1?t="Tenor":t="Alto";break}return t};function Me(e){const t=e.spartito.perform(),n=e.systems.map(i=>i.staves.map(h=>h==null?void 0:h.maskImage)).flat(),g=n.filter(Boolean).length>n.length/2,r={},I=new Map,b=new Map,S=new Map;r.unitSize=e.unitSize,r.title={title:e.title};const m=e.pages[0].tokens;if(Array.isArray(m)&&m.length>0){const[i,...h]=m.filter(l=>l.type===D.Text&&l.textType==="Title").sort((l,x)=>x.fontSize-l.fontSize);i&&(r.title.title=i.text,r.title.t={size:i.fontSize}),(h==null?void 0:h.length)>0&&(h.sort((l,x)=>l.y-x.y),r.title.subtitle=h.map(l=>l.text).join(`
|
| 2 |
`),r.title.s={size:h.reduce((l,x)=>l+x.fontSize,0)/h.length});const d=m.filter(l=>l.type===D.Text&&l.textType==="Author"&&l.x>e.pages[0].width/2);d.length>0&&(r.title.composer=d.map(l=>l.text).join(`
|
| 3 |
`),r.title.c={size:d.reduce((l,x)=>l+x.fontSize,0)/d.length})}if(r.page={w:e.pages[0].width,h:e.pages[0].height},r.pages=e.pages.map(i=>{const h=i.source.dimensions.width/i.source.interval,d=i.source.dimensions.height/i.source.interval,[l,x,C,s]=i.source.matrix;return{src:i.source.url,w:h,h:d,x:0,y:0,l1:e.systems.indexOf(i.systems[0]),ls:i.systems.length,matrix:[l,x,C,s,-1/2*l*h+-1/2*d*C+1/2*i.width||0,-1/2*x*h+-1/2*d*s+1/2*i.height||0]}}),r.parts=[],r.lines=[],g){const i=e.staffLayout.partGroups.map(s=>s.range[0]===s.range[1]?[s.range[0]]:s.range),h=e.getTokenMap(),d=[];for(const[s,O]of i.entries()){const E=i.slice(0,s).flat().length,o={measures:[]};e.systems.forEach((a,f)=>{const k=a.staves.slice(),T=i.flat().map(c=>1<<c&a.staffMask?k.shift():null),w=[0,...a.measureBars];for(let c=0;c<a.measureCount;c++){const M=e.spartito.measureIndexMapping[a.headMeasureIndex+c];if(!Number.isFinite(M)){w.length>c+1&&(w[c+1]=w[c]);continue}const N=[];for(const L of O){const z=T[L];z&&N.push(...z.measures[c].getChords().map(A=>({chord:A,staffIndexInPart:L-E})))}let B=0;const v=w[c],R=[];N.forEach(({staffIndexInPart:L,chord:z})=>{const A=[];let j=z.tip?z.tip.x:z.right-z.left/2;z.noteIds.forEach(($,Y)=>{const F=h.get($),u=`n_${i.length>1?s+"_":""}${M}_${B}`;B++,I.set(F.id,u),b.set(F.id,(F.left+F.right)/2-v),S.set(F.id,L+1),A.push({line:-z.ys[Y]*2,id:u,staff:L+1,x:(F.left+F.right)/2-j})}),d[M]=d[M]||[],d[M].push(j-v);const q=e.spartito.measures[a.headMeasureIndex+c].events.filter($=>$.noteIds.some(Y=>z.noteIds.includes(Y)));R.push({elems:A,x:j-v,type:2**z.division,...q.some($=>$.grace)?{grace:{}}:{}})}),o.measures[M]={w:w[c+1]-w[c],staves:O.length,notes:R}}});let y=null;e.spartito.measures.forEach((a,f)=>{const k=e.spartito.measureIndexMapping[f],w=a.contexts.flat().filter(M=>Q.includes(M.tokenType)&&O.includes(M.staff)).map(M=>{const N=i.find(B=>B.includes(M.staff));return{x:M.x,clef:Z(M),staff:N.indexOf(M.staff)+1,tick:M.tick}});w.length>0&&o.measures[k]&&(o.measures[k].clefs=w);const c=a.basics.filter((M,N)=>1<<N&a.staffMask)[0].keySignature;c!==y&&(o.measures[k]&&(o.measures[k].fifths={fifths:c}),y=c)}),o.measures.length>0&&(r.parts[s]=o)}e.systems.forEach((s,O)=>{var M;const E=[],o=s.staves[0],y=s.staves[s.staves.length-1],a=o.top+o.staffY-2,f=y.top+y.staffY-2,k=s.staves.slice(),T=i.flat().map(N=>1<<N&s.staffMask?k.shift():null);let w=null;for(const[N,B]of i.entries()){const v=B.map(u=>T.find(P=>(P==null?void 0:P.index)===u)||null),R=v.map((u,P)=>[P,!u]).filter(u=>u[1]);let L=null;R.length>0&&(L=Object.fromEntries(R.map(u=>[u[0]+1,{hide:u[1]}])));let z=0,A=0;const j=v.filter(u=>!!u);if(j.length>0){const u=j[0],P=j[j.length-1],_=u.top+u.staffY-2,ie=P.top+P.staffY-2;z=_-a,A=ie-_+4}const{list:q,last:$}=v.reduce((u,P,_)=>(u.last===null||P===null?_===0&&z>0?u.list.push(z-4):u.list.push(0):u.list.push(P.top+P.staffY-(u.last.top+u.last.staffY)-4),u.last=P||u.last,u),{last:w,list:[]});w=$;const Y=v.map(u=>{if(u!=null&&u.maskImage){const P=u.imagePosition;return{src:u.maskImage,x:P.x,y:s.top+u.top+P.y-(s.top+u.top+u.staffY-2),w:P.width,h:P.height}}return null}),F=e.spartito.measures[s.headMeasureIndex];E.push({distances:q,imgs:Y,y:z,staves:B.length,parti:N,height:A,...L?{details:L}:{},clef:Object.fromEntries((M=e.spartito.measures[s.headMeasureIndex])==null?void 0:M.contexts.flat().filter(u=>Q.includes(u.tokenType)&&B.includes(u.staff)).map(u=>[u.staff,Z(u)])),fifths:F.basics.filter((u,P)=>1<<P&F.staffMask)[0].keySignature})}const c=s.measureBars.map((N,B)=>e.spartito.measureIndexMapping[s.headMeasureIndex+B]).filter(N=>Number.isFinite(N));r.lines[O]={m1:c[0],m2:c.length>0?c[c.length-1]+1:void 0,x:s.left,y:s.top+a,w:s.measureBars[s.measureBars.length-1],h:f-a+4,lineStaves:E}});const l={0:"default",1:"brace",2:"bracket",3:"square"},x=te(e.staffLayoutCode),C=x.partGroups.map(s=>({sort:s.range[0],part:s})).sort((s,O)=>s.sort-O.sort).map(s=>s.part);r.groups=x.groups.filter(s=>s.group.type!==0).map((s,O)=>({type:l[s.group.type],p1:C.findIndex(E=>E.range.includes(s.range[0])),p2:C.findIndex(E=>E.range.includes(s.range[s.range.length-1]))})).filter(s=>s.type!=="default")}t&&(r.measInfo=t.notation.measures.map((i,h)=>{const d=new Map;return i.notes.forEach(l=>{d.set(l.tick,[...d.get(l.tick)||[],b.get(l.id)])}),Array.from(d.entries()).sort((l,x)=>+l[0]-x[0]).reduce((l,x,C)=>{const s=x[1].find(O=>O>l.last)||x[1][0];return l.list.push(s),l.last=s,l},{last:null,list:[]}).list.filter(Number.isFinite)}));let p;if(t){p={};const i=new Map;let h,d;t.notation.measures.forEach((o,y)=>{const{numerator:a,denominator:f}=o.timeSignature;!p.beats&&!p.beatsUnit&&(p.beats=a,p.beatsUnit=f,h=a,d=f),p.beatInfos=p.beatInfos||[],(h!==a||d!==f)&&(h=a,d=f,p.beatInfos.push({tick:o.tick,beats:a,beatsUnit:f})),p.tempos=p.tempos||[],o.events.forEach(k=>{k.data.type==="meta"&&k.data.subtype==="setTempo"&&p.tempos.push({tick:o.tick,tempo:k.data.microsecondsPerBeat})})}),p.measures=t.notation.measures.reduce((o,y,a)=>{const f=Array.from(new Set(y.notes.map(k=>k.tick))).sort((k,T)=>k-T);return y.notes.forEach(k=>{i.set(k.id,f.indexOf(k.tick))}),o[y.tick]={measure:a,duration:y.duration,note_ticks:f},o},{}),p.measureInfos=t.notation.measures.map((o,y)=>({number:String(y+1),fifths:o.keySignature,beats:o.timeSignature.numerator,beatUnit:o.timeSignature.denominator}));const x=t.notation.toPerformingMIDI(t.notation.measures.map((o,y)=>y+1)).tracks,{partGroups:C}=e.staffLayout;let s=x.map((o,y)=>{const a=C[y].key;let f;switch(a){case"vi":case"vi1":case"vi2":f=40;break;case"viola":f=42;break;case"vo":f=55;break;case"basso":f=71;break;default:f=0;break}return{program:f,channel:y,name:e.instrumentDict[a]??"Piano",track:o}});if(C.some(o=>o.group.grand)){const o=/l\.?h\.?|左手|left hand/i,y=/r\.?h\.?|右手|right hand/i,a=Object.entries(e.instrumentDict).filter(([T,w])=>o.test(w)||y.test(w)).map(([T,w])=>({key:T,hand:o.test(w)?"left":"right"}));let f=null,k;if(a.length===2&&a[0].hand!==a[1].hand){const T=a.find(c=>c.hand==="left"),w=a.find(c=>c.hand==="right");f=[e.staffLayout.staffIds.findIndex(c=>c===(w==null?void 0:w.key)),e.staffLayout.staffIds.findIndex(c=>c===(T==null?void 0:T.key))],k=C.findIndex(c=>c.range[0]<=Math.min(...f)&&c.range[1]>=Math.max(...f))}if(Number.isFinite(k)&&k>-1){const T=s[k],w=[];T.track.forEach(c=>{Number.isFinite(c.staff)&&(w[c.staff]||(w[c.staff]=[]),w[c.staff].push(c)),c.type==="meta"&&w.forEach(M=>{M.push(c)})}),s.splice(k,1,w.filter(Boolean).map(c=>({...T,track:c}))),s=s.flat(),p.rightHandTrack=f[0],p.leftHandTrack=f[1]}else s.sort((T,w)=>T===s[k]?-1:0)}p.tracks=s.map(({program:o,channel:y,name:a})=>({program:o,channel:y,name:a}));const O=s.map(({track:o})=>{const y=new Map;return o.map(a=>{if(a.subtype==="noteOn"&&y.set(a.noteNumber,a),a.subtype==="noteOff"){const f=y.get(a.noteNumber);(f==null?void 0:f.noteNumber)===a.noteNumber&&(f.duration=a.ticks-f.ticks)}return a})}),E=new Map(Object.entries(p.measures).map(([o,y])=>[y.measure,+o]));p.events=O.map((o,y)=>o.filter(a=>a.type==="channel").map(a=>{var k,T;(k=a==null?void 0:a.ids)!=null&&k[0]&&(a.numId=I.get(a.ids[0]));let f=[0,0,0];switch(a.subtype){case"noteOn":f=[144|a.channel,a.noteNumber,a.velocity];break;case"noteOff":f=[128|a.channel,a.noteNumber,a.velocity?a.velocity:0];break;case"noteAftertouch":f=[160|a.channel,a.noteNumber,a.amount];break;case"controller":f=[176|a.channel,a.controllerType,a.value];break;case"programChange":f=[192|a.channel,a.programNumber,0];break;case"channelAftertouch":f=[208|a.channel,a.amount,0];break;case"pitchBend":f=[224|a.channel,a.value&255,a.value>>7&255];break;default:throw new Error("unhandled event subtype:"+a.subtype)}return{...a.subtype==="noteOn"?{id:I.get((T=a==null?void 0:a.ids)==null?void 0:T[0])}:{},tick:a.ticks,channel:a.channel,duration:a.duration,track:y,event:f,elem_ids:a==null?void 0:a.ids.map(w=>I.get(w)),measure:a.measure-1,meas_start_tick:E.get(a.measure-1),staff:S.get(a.ids[0]),note:i.get(a.ids[0])}})).flat(1).sort((o,y)=>{for(const a of["tick","measure","track"])if(o[a]!==y[a])return o[a]-y[a];return 0})}return{scoreJson:r,midiJson:p}}var H={exports:{}};function Pe(e,t){var n=t&&t.cache?t.cache:Be,g=t&&t.serializer?t.serializer:Ne,r=t&&t.strategy?t.strategy:ze;return r(e,{cache:n,serializer:g})}function Oe(e){return e==null||typeof e=="number"||typeof e=="boolean"}function se(e,t,n,g){var r=Oe(g)?g:n(g),I=t.get(r);return typeof I>"u"&&(I=e.call(this,g),t.set(r,I)),I}function ne(e,t,n){var g=Array.prototype.slice.call(arguments,3),r=n(g),I=t.get(r);return typeof I>"u"&&(I=e.apply(this,g),t.set(r,I)),I}function X(e,t,n,g,r){return n.bind(t,e,g,r)}function ze(e,t){var n=e.length===1?se:ne;return X(e,this,n,t.cache.create(),t.serializer)}function Ce(e,t){var n=ne;return X(e,this,n,t.cache.create(),t.serializer)}function Ee(e,t){var n=se;return X(e,this,n,t.cache.create(),t.serializer)}function Ne(){return JSON.stringify(arguments)}function G(){this.cache=Object.create(null)}G.prototype.has=function(e){return e in this.cache};G.prototype.get=function(e){return this.cache[e]};G.prototype.set=function(e,t){this.cache[e]=t};var Be={create:function(){return new G}};H.exports=Pe;H.exports.strategies={variadic:Ce,monadic:Ee};var Fe=H.exports;const Le=pe(Fe),ve=oe(async({file:e,key:t,uploadUrl:n})=>(await ce(e,{key:t,uploadUrl:n}),t),{cacheKey:e=>e[0].key}),je=async e=>Promise.all(e.filter(Boolean).map(async t=>{const n=await ue(t);return await ve({file:t,key:n.key,uploadUrl:n.uploadUrl}),{key:n.key,url:n.url}}));async function We(e){var g;if(typeof e!="string"||e.startsWith("md5"))return null;if(e.startsWith("http")||e.startsWith("/uploads/"))return e;const t=le(e,"file");return t?((g=(await je([t]))[0])==null?void 0:g.url)??null:null}async function De(e){if(typeof e!="string")return null;if(e.startsWith("http")){const t=await(await fetch(e)).blob();return new Promise(n=>{const g=new FileReader;g.onloadend=function(){n(g.result)},g.readAsDataURL(t)})}return e}async function Ve(e){try{return await De(e)}catch(t){return console.warn("toDataUrl error:",t),e}}async function Ke(e){var r,I;const t=e.find(b=>b.name==="index.json");if(!t){console.warn("no index.json file found in package.");return}const n=W(await t.text(),V);n.settings=n.settings||{semanticConfidenceThreshold:1,enabledGauge:!1,pageLayoutMethod:K.ByLines},(I=(r=n.systems)==null?void 0:r.forEach)==null||I.call(r,b=>{var S,m;return(m=(S=b.staves)==null?void 0:S.forEach)==null?void 0:m.call(S,p=>{var i,h;return(h=(i=p.semantics)==null?void 0:i.forEach)==null?void 0:h.call(i,d=>{d.confidence=Number.isFinite(d.confidence)?d.confidence:1})})});const g=(await Promise.all(e.map(async b=>/^[0-9a-f]+\.?(png|gif)$/.test(b.name)?new Promise(S=>{let m=new FileReader;m.readAsDataURL(b),m.onload=function(){S({[b.name]:m.result})}}):{}))).reduce((b,S)=>({...b,...S}),{});return await n.replaceImageKeys(async b=>b&&/^md5:/.test(b)?g[b.replace("md5:","")]:b&&!/^\w+:/.test(b)?g[b]:b),n}async function He(e){var t,n;switch(e.type){case"application/zip":case"application/x-zip-compressed":{const g=await ae.loadAsync(e),r=g.files["index.json"];if(!r){console.warn("no index.json file found in package.");return}const I=await r.async("text"),b=W(I,V);b.settings=b.settings||{semanticConfidenceThreshold:1,enabledGauge:!1,pageLayoutMethod:K.ByLines},(n=(t=b.systems)==null?void 0:t.forEach)==null||n.call(t,m=>{var p,i;return(i=(p=m.staves)==null?void 0:p.forEach)==null?void 0:i.call(p,h=>{var d,l;return(l=(d=h.semantics)==null?void 0:d.forEach)==null?void 0:l.call(d,x=>{x.confidence=Number.isFinite(x.confidence)?x.confidence:1})})});const S=(await Promise.all(Object.keys(g.files).map(async m=>{if(/^[0-9a-f]+\.?(png|gif)$/.test(m)){const p=await g.files[m].async("arraybuffer"),i=new Blob([p],{type:"image/png"});return new Promise(h=>{const d=new FileReader;d.onload=()=>{h({[m]:d.result})},d.readAsDataURL(i)})}}))).reduce((m,p)=>({...m,...p}),{});return await b.replaceImageKeys(async m=>m&&/^md5:/.test(m)?S[m.replace("md5:","")]:m&&!/^\w+:/.test(m)?S[m]:m),b}case"application/json":return new Promise(g=>{const r=new FileReader;r.onload=()=>{g(W(r.result,V))},r.readAsText(e)});default:return console.warn("unsupported file type:",e.type),null}}function Xe(e){return new he({title:(e==null?void 0:e.title)||me().formatMessage({id:"playground.newScore"}),stavesCount:2,paperOptions:{raggedLast:!0,raggedLastBottom:!0},headers:{},instrumentDict:{},settings:{enabledGauge:!1,pageLayoutMethod:K.ByLines,semanticConfidenceThreshold:1}})}function Qe(e,t,n=1){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)<=n}function Ze(e,{modify:t=!1}={}){return!t&&!e.modified?delete e.modified:e.modified=e.modified||t,e.deepCopy()}const et=Le(te);function Ae(e,t){return t(e)?e:e.parentNode?Ae(e.parentNode,t):null}const tt=async e=>{const{scoreJson:t,midiJson:n}=Me(e);async function g(S,{type:m="image/webp",maxHeight:p=1680,quality:i=.8}={}){const h=await new Promise((o,y)=>{const a=new globalThis.Image;a.crossOrigin="anonymous",a.src=S,a.onload=()=>{o(a)},a.onerror=()=>{y(a)}}),{naturalWidth:d,naturalHeight:l}=h;let x=d,C=l;l>=p&&(C=p,x=d*p/l);const s=new globalThis.OffscreenCanvas(x,C),O=s.getContext("2d");O.imageSmoothingEnabled=!0,O.imageSmoothingQuality="high",O.drawImage(h,0,0,x,C);const E=await s.convertToBlob({type:m,quality:i});return{blob:E,md5:de.ArrayBuffer.hash(await E.arrayBuffer()),suffix:m.split("/")[1]}}const r=new ae;r.file("scoreimg_url.json",JSON.stringify(t,null,0)),await Promise.all([...t.pages.map(async S=>{const{blob:m,md5:p,suffix:i}=await g(S.src),h=`${p}.${i}`;S.src=h,await r.file("scoreimgs/"+h,m,{binary:!0,createFolders:!0})}),...t.lines.map(S=>S.lineStaves.map(m=>m.imgs)).flat(2).map(async S=>{const m=S==null?void 0:S.src;if(m){const{blob:p,md5:i,suffix:h}=await g(m),d=`${i}.${h}`;S.src=d,await r.file("scoreimgs/"+d,p,{binary:!0,createFolders:!0})}})]),r.file("scoreimg.json",JSON.stringify(t,null,0)),r.file("scoremidi.json",JSON.stringify(n,null,0));const I=await r.generateAsync({type:"blob"}),b=fe(I,`find-omr-${e.title}-${Date.now()}.zip`);ge(b,b.name,b.type)},re=(e,t)=>Number.isInteger(e)&&Number.isInteger(t)?t===0?e:re(t,e%t):NaN,$e=e=>e.reduce((t,n)=>re(t,n)),at=e=>{const t=e.map(r=>r.mainDuration),n=t.reduce((r,I)=>r+I,0),g=$e(t);return{sum:n,gcdDuration:g}};export{Ge as P,qe as S,Je as a,Ke as b,Ze as c,at as d,He as e,tt as f,Qe as i,Ae as m,Xe as n,et as p,Ve as s,De as t,We as u};
|
dist/assets/{index-9446dfc6.js → index-bda532b4.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as x,j as e,a as O}from"./umi-
|
|
|
|
| 1 |
+
import{r as x,j as e,a as O}from"./umi-e07d95da.js";import{T as E,S as F,a as V,r as Y,s as z,m as I,L as U}from"./index-333c2577.js";import{S as _}from"./scheduler-a7fa9c3c.js";import{c as S,u as q,r as D,n as W}from"./_setToString-5e7d8f22.js";import{p as G,S as H,a as J,P as X}from"./index-bcc6e795.js";import{B as K}from"./button-3ac51ee9.js";import{S as Q,a as Z}from"./index-5da3586d.js";import{u as ee}from"./useAsync-139a6ea8.js";import"./jszip.min-73ee4b51.js";const te=({translateX:h=0,translateY:y,width:m,additionalLines:s,...o})=>e.jsxs("g",{...o,className:"staff-lines",transform:`translate(${h}, ${y})`,children:[new Array(5).fill(null).map((i,n)=>e.jsx("line",{x1:0,x2:m,y1:n-2,y2:n-2},n)),s&&s.map((i,n)=>e.jsx("g",{children:Array(Math.abs(i.n)).fill(null).map((d,r)=>e.jsx("line",{x1:i.left,x2:i.right,y1:i.n>0?3+r:-3-r,y2:i.n>0?3+r:-3-r},r))},n))]}),se=x.memo(te),C=({score:h,page:y,pageIndex:m,system:s,systemIndex:o,staff:i,staffIndex:n})=>{var d;return e.jsx(e.Fragment,{children:e.jsxs("g",{className:S("staff",{moving:!1}),transform:`translate(0, ${i.top})`,children:[e.jsxs("g",{children:[e.jsx(se,{translateY:i.staffY,width:s.width,additionalLines:i.additionalLines}),(d=i==null?void 0:i.measures)==null?void 0:d.map((r,c)=>{var t;return e.jsxs("g",{children:[n===0&&e.jsx("text",{x:r.left,y:Math.min(5,i.staffY-3),fontSize:c===0?1.4:.9,fill:"#e65019",children:s.headMeasureIndex+c+1}),e.jsx("g",{transform:`translate(0, ${i.staffY})`,children:e.jsx("g",{className:"tokens",children:(t=r==null?void 0:r.tokens)==null?void 0:t.filter(a=>E.includes(a.type)).map((a,l)=>e.jsxs("g",{className:S("token",{}),transform:`translate(${a.x}, ${a.y})`,id:a.id,onClick:()=>console.log(a),children:[a.voice?e.jsxs("title",{children:["voice-",a.voiceIndices.join(",")]}):null,e.jsx("use",{xlinkHref:`#score-token-def-${a.typeId}`})]},l))})})]},c)})]}),e.jsx("g",{className:"measure-bars",children:s.measureBars.map((r,c)=>e.jsx("g",{className:S("measure-bar"),transform:`translate(${r}, ${i.staffY-2})`,children:e.jsx("line",{x1:0,x2:0,y1:0,y2:4})},c))})]})})};x.memo(C);const ne=h=>{var n,d;const{score:y,pageIndex:m,system:s,systemIndex:o}=h;if(s.staves.length===0)return e.jsx("g",{},o);const i=G(y.staffLayoutCode);return e.jsxs("g",{className:S("system",{}),transform:`translate(${s.left}, ${s.top})`,children:[s.backgroundImage&&!((n=s.staves[0])!=null&&n.backgroundImage)&&!((d=s.staves[0])!=null&&d.maskImage)&&e.jsx("image",{className:"background",href:s.backgroundImage,...s.imagePosition||{}}),s.staves.length>=2&&e.jsx("line",{className:"connection",x1:0,x2:0,y1:s.connectionLine.top,y2:s.connectionLine.bottom}),s.staves.map((r,c)=>e.jsxs("g",{className:S("staff"),transform:`translate(0, ${r.top})`,children:[!r.maskImage&&r.backgroundImage&&e.jsx("image",{className:"background",href:r.backgroundImage,...r.imagePosition||{}}),r.maskImage&&e.jsx("image",{className:"background",href:r.maskImage,...r.imagePosition||{}})]},"staff-"+c)),s.staves.map((r,c)=>e.jsx(C,{...h,staff:r,staffIndex:c},c)),e.jsx("g",{className:"measure-bars",children:s.measureBars.map((r,c)=>e.jsx("g",{transform:`translate(${r}, 0)`,children:i.mask(s.staffMask).conjunctions.map((t,a)=>{const l=s.staves[a],f=s.staves[a+1];if(l&&f)return e.jsx("g",{transform:`translate(0, ${l.top+l.staffY+2})`,children:e.jsx("line",{className:S("staff-layout-measure-bar",{dashed:t===1,blank:t===0}),x1:"0",x2:"0",y1:0,y2:f.top+f.staffY-(l.top+l.staffY)-4})},a)})},c))}),e.jsx(Q,{layout:i.mask(s.staffMask),positions:s.staffPositions,nameDict:(!s.prev||s.staffMask!==s.prev.staffMask)&&y.instrumentDict})]},o)},re=x.memo(ne),ae=({score:h,pageIndex:y,cursorPosition:m,onSeekPosition:s})=>{var d,r,c;const o=h.pages[y],i=x.useRef(null);if(!o)return null;const n=x.useMemo(()=>{let t=0;if(m){let a=0;for(const[l,f]of h.pages.entries()){if(m.system>=a-1&&m.system<a+f.systems.length){t=+l;break}a+=f.systems.length}}return t},[m==null?void 0:m.system]);return x.useEffect(()=>{i.current&&i.current.scrollIntoView({block:"center",behavior:"smooth"})},[i.current,n]),e.jsx("div",{children:e.jsxs("svg",{className:S("graph",{}),style:{objectFit:"contain"},viewBox:`0 0 ${o.width} ${o.height}`,children:[e.jsx(Z,{}),(d=o==null?void 0:o.systems)==null?void 0:d.map((t,a)=>e.jsx(re,{score:h,page:o,pageIndex:y,system:t,systemIndex:a},a)),(o==null?void 0:o.semantics)&&e.jsx("g",{children:(r=o==null?void 0:o.semantics)==null?void 0:r.map((t,a)=>{var l,f,j,k,v,g;if(t.semantic===F.rect_Text)return e.jsx("g",{transform:`translate(${t.x}, ${t.y}) ${(l=t.extension)!=null&&l.theta?`rotate(${((f=t.extension)==null?void 0:f.theta)*180/Math.PI})`:""}`,color:"rgba(25, 175, 230, 0.6)",children:e.jsxs("text",{dominantBaseline:"hanging",x:0,y:-((j=t.extension)==null?void 0:j.height)/2,textAnchor:"middle",style:{fontSize:(k=t.extension)==null?void 0:k.height},children:[(v=t.extension)==null?void 0:v.text,e.jsx("title",{children:((g=t.extension)==null?void 0:g.type)||t.semantic})]})},a)})}),(o==null?void 0:o.tokens)&&e.jsx("g",{children:(c=o==null?void 0:o.tokens)==null?void 0:c.map((t,a)=>{if(t.type===V.Text)return e.jsx("g",{transform:`translate(${t.x}, ${t.y})`,color:"rgba(25, 175, 230, 0.6)",className:"token",children:e.jsxs("text",{dominantBaseline:"hanging",x:0,y:-t.fontSize/2,textAnchor:"middle",style:{fontSize:t.fontSize},className:S(t.textType),children:[t.text,e.jsx("title",{children:t.textType})]})},a)})}),o.systems.map((t,a)=>{const l=h.pages.slice(0,y).reduce((f,j)=>f+j.systems.length,0)+a;return e.jsxs("g",{className:S("system"),transform:`translate(${t.left}, ${t.top})`,children:[e.jsx("rect",{style:{opacity:0},x:0,y:t.noteRange.top,width:t.width,height:t.noteRange.bottom-t.noteRange.top,onClick:f=>{const j=f.target,k=j.getBoundingClientRect(),v=f.clientX-k.left,g=j.getBBox(),u=v/k.width*g.width;s({system:l,x:u})}}),(m==null?void 0:m.system)===l?e.jsx("line",{ref:i,transform:`translate(${m.x}, 0)`,x1:0,x2:0,y1:t.noteRange.top,y2:t.noteRange.bottom,style:{stroke:"lightblue",strokeWidth:1}}):null]},a)})]})})},oe=x.memo(ae),ie=h=>{var v;const y=q(),m=O(),s=x.useRef(new H(performance)),[o,i]=x.useState(),n=x.useRef(null),d=x.useRef(null),[r,c]=x.useState(!1),[t,a]=x.useState(!1),l=ee(async()=>{var b,L,w,P;const g=(m==null?void 0:m.id)||((L=(b=h==null?void 0:h.match)==null?void 0:b.params)==null?void 0:L.id),u=await D.get(`/api/musicSets/${g}`);if((w=u==null?void 0:u.content)!=null&&w.scoreURL){const R=await(await fetch(W(u.content.scoreURL))).json(),$=Y(R,z);return $.assemble(((P=$.settings)==null?void 0:P.semanticConfidenceThreshold)??1),$}return u},[]);x.useEffect(()=>{I.MidiAudio.WebAudio.empty()&&I.MidiAudio.loadPlugin({soundfontUrl:"/soundfont/",api:"webaudio"}).then(()=>{a(!0),console.debug("Soundfont loaded.")}),k()},[]);const f=x.useCallback(async g=>{if(!n.current){console.log("please create midi player first");return}const u=n.current.isPlaying;u&&(n.current.pause(),await new Promise(b=>setTimeout(b,0)),document.querySelectorAll(".notePlayOn").forEach(b=>b.classList.remove("notePlayOn"))),n.current.progressTicks=d.current.lookupTick(g),u&&j()},[]),j=()=>{var g;(g=n.current)!=null&&g.isPlaying?(n.current.pause(),c(!1)):(k(),n.current.play({nextFrame:()=>(d.current&&i(d.current.lookupPosition(n.current.progressTicks)),new Promise(u=>requestAnimationFrame(()=>u())))}),c(!0))},k=()=>{var R,$;if(!(($=(R=l.value)==null?void 0:R.systems)!=null&&$.length))return;const{notation:g,tokenMap:u}=l.value.spartito.perform(),b=l.value.getMeasureLayout(),L=b?b.serialize(U.Full):Array(g.measures.length).fill(null).map((p,N)=>N+1),w=g.toPerformingNotationWithEvents(L);Math.round(6e7/w.tempos[0].tempo),d.current=_.createFromNotation(w,u);const P=n.current?n.current.progressTicks:0;n.current&&n.current.dispose(),n.current=new I.MidiPlayer(w,{cacheSpan:200,onMidi:(p,N)=>{let B=null;switch(p.subtype){case"noteOn":I.MidiAudio.noteOn(p.channel,p.noteNumber,p.velocity,N),B=()=>{var M;return(M=p==null?void 0:p.ids)==null?void 0:M.map(A=>{const T=document.getElementById(A);T&&T.classList.add("notePlayOn")})};break;case"noteOff":I.MidiAudio.noteOff(p.channel,p.noteNumber,N),B=()=>{var M;return(M=p==null?void 0:p.ids)==null?void 0:M.map(A=>{const T=document.getElementById(A);T&&T.classList.remove("notePlayOn")})};break}B&&s.current.appendTask(N,B)},onPlayFinish(){n.current&&(n.current.progressTicks=0),c(!1)},onTurnCursor(){n.current&&d.current&&i(d.current.lookupPosition(n.current.progressTicks))}}),n.current.progressTicks=P};return e.jsxs("div",{className:"viewer",children:[e.jsx(K,{style:{position:"fixed",top:"10px",left:"10px"},icon:r?e.jsx(J,{}):e.jsx(X,{}),onClick:j,disabled:!((v=l.value)!=null&&v.spartito)||!t,children:r?y.formatMessage({id:"common.pause"}):y.formatMessage({id:"common.play"})}),!l.loading&&l.value.pages.map((g,u)=>e.jsx(oe,{score:l.value,pageIndex:u,cursorPosition:o,onSeekPosition:f},u))]})},pe=x.memo(ie);export{pe as default};
|
dist/assets/{index-156661dd.js → index-c03929a6.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{g as L,r as c,_ as S}from"./umi-
|
|
|
|
| 1 |
+
import{g as L,r as c,_ as S}from"./umi-e07d95da.js";import{aU as A,bO as M,av as B,ak as U,C as V,a as X,X as H,c as E,b as x,o as q,V as j,e as w}from"./_setToString-5e7d8f22.js";var G=/\s/;function J(e){for(var n=e.length;n--&&G.test(e.charAt(n)););return n}var K=J,Q=K,Y=/^\s+/;function Z(e){return e&&e.slice(0,Q(e)+1).replace(Y,"")}var ee=Z,ne=ee,R=A,te=M,W=0/0,re=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,ie=/^0o[0-7]+$/i,se=parseInt;function ce(e){if(typeof e=="number")return e;if(te(e))return W;if(R(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=R(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=ne(e);var t=ae.test(e);return t||ie.test(e)?se(e.slice(2),t?2:8):re.test(e)?W:+e}var oe=ce,le=B,ue=function(){return le.Date.now()},de=ue,me=A,k=de,z=oe,fe="Expected a function",ve=Math.max,pe=Math.min;function ge(e,n,t){var r,i,o,l,s,u,m=0,h=!1,g=!1,y=!0;if(typeof e!="function")throw new TypeError(fe);n=z(n)||0,me(t)&&(h=!!t.leading,g="maxWait"in t,o=g?ve(z(t.maxWait)||0,n):o,y="trailing"in t?!!t.trailing:y);function C(a){var d=r,p=i;return r=i=void 0,m=a,l=e.apply(p,d),l}function P(a){return m=a,s=setTimeout(b,n),h?C(a):l}function T(a){var d=a-u,p=a-m,_=n-d;return g?pe(_,o-p):_}function N(a){var d=a-u,p=a-m;return u===void 0||d>=n||d<0||g&&p>=o}function b(){var a=k();if(N(a))return I(a);s=setTimeout(b,T(a))}function I(a){return s=void 0,y&&r?C(a):(r=i=void 0,l)}function $(){s!==void 0&&clearTimeout(s),m=0,r=u=i=s=void 0}function f(){return s===void 0?l:I(k())}function v(){var a=k(),d=N(a);if(r=arguments,i=this,u=a,d){if(s===void 0)return P(u);if(g)return clearTimeout(s),s=setTimeout(b,n),C(u)}return s===void 0&&(s=setTimeout(b,n)),l}return v.cancel=$,v.flush=f,v}var Ne=ge;const ye=L(Ne);var be=globalThis&&globalThis.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};U("small","default","large");var O=null;function xe(e,n){var t=n.indicator,r="".concat(e,"-dot");return t===null?null:j(t)?w(t,{className:E(t.props.className,r)}):j(O)?w(O,{className:E(O.props.className,r)}):c.createElement("span",{className:E(r,"".concat(e,"-dot-spin"))},c.createElement("i",{className:"".concat(e,"-dot-item")}),c.createElement("i",{className:"".concat(e,"-dot-item")}),c.createElement("i",{className:"".concat(e,"-dot-item")}),c.createElement("i",{className:"".concat(e,"-dot-item")}))}function Ee(e,n){return!!e&&!!n&&!isNaN(Number(n))}var Ce=function(n){var t=n.spinPrefixCls,r=n.spinning,i=r===void 0?!0:r,o=n.delay,l=n.className,s=n.size,u=s===void 0?"default":s,m=n.tip,h=n.wrapperClassName,g=n.style,y=n.children,C=be(n,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),P=c.useState(function(){return i&&!Ee(i,o)}),T=X(P,2),N=T[0],b=T[1];c.useEffect(function(){var f=ye(function(){b(i)},o);return f(),function(){var v;(v=f==null?void 0:f.cancel)===null||v===void 0||v.call(f)}},[o,i]);var I=function(){return typeof y<"u"},$=function(v){var a=v.direction,d=E(t,x(x(x(x(x({},"".concat(t,"-sm"),u==="small"),"".concat(t,"-lg"),u==="large"),"".concat(t,"-spinning"),N),"".concat(t,"-show-text"),!!m),"".concat(t,"-rtl"),a==="rtl"),l),p=q(C,["indicator","prefixCls"]),_=c.createElement("div",S({},p,{style:g,className:d,"aria-live":"polite","aria-busy":N}),xe(t,n),m?c.createElement("div",{className:"".concat(t,"-text")},m):null);if(I()){var D=E("".concat(t,"-container"),x({},"".concat(t,"-blur"),N));return c.createElement("div",S({},p,{className:E("".concat(t,"-nested-loading"),h)}),N&&c.createElement("div",{key:"loading"},_),c.createElement("div",{className:D,key:"container"},y))}return _};return c.createElement(H,null,$)},F=function(n){var t=n.prefixCls,r=c.useContext(V),i=r.getPrefixCls,o=i("spin",t),l=S(S({},n),{spinPrefixCls:o});return c.createElement(Ce,S({},l))};F.setDefaultIndicator=function(e){O=e};const he=F;export{he as S,Ne as a,ye as d};
|
dist/assets/{index.less_used_.module-f525c36f.js → index.less_used_.module-87602c0c.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import{A as AntdIcon,g as _objectSpread2,j as __spreadArrays,h as useMountedState,c as classNames,Z as require$$5,$ as _createClass,a0 as _classCallCheck,a as _slicedToArray,_ as _toConsumableArray,W as _typeof,b as _defineProperty,a1 as _inherits,a2 as _getPrototypeOf,a3 as _possibleConstructorReturn,a4 as _assertThisInitialized,a5 as _objectWithoutProperties,u as useIntl,Y as base64toFile}from"./_setToString-6c0c560b.js";import{r as reactExports,c as commonjsGlobal,g as getDefaultExportFromCjs,j as jsxRuntimeExports,k as useNavigate,u as useLocation,l as commonjsRequire,P as PropTypes,R as React,_ as _extends}from"./umi-a7f55986.js";import{i as isBrowser$1,o as on,d as off,n as noop,I as Input,S as Space,M as Modal,C as Checkbox,R as Row}from"./index-2293ea9c.js";import{n as newScore}from"./index-92446400.js";import{y as EditableMeasure}from"./index-06d8da5b.js";import{B as Button}from"./button-001dfcce.js";import{S as Spin}from"./index-156661dd.js";var ArrowLeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ArrowLeftOutlinedSvg=ArrowLeftOutlined$2;var ArrowLeftOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:ArrowLeftOutlinedSvg}))},RefIcon$7=reactExports.forwardRef(ArrowLeftOutlined);const ArrowLeftOutlined$1=RefIcon$7;var ArrowRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const ArrowRightOutlinedSvg=ArrowRightOutlined$2;var ArrowRightOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:ArrowRightOutlinedSvg}))},RefIcon$6=reactExports.forwardRef(ArrowRightOutlined);const ArrowRightOutlined$1=RefIcon$6;var FileImageOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-image",theme:"outlined"};const FileImageOutlinedSvg=FileImageOutlined$2;var FileImageOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:FileImageOutlinedSvg}))},RefIcon$5=reactExports.forwardRef(FileImageOutlined);const FileImageOutlined$1=RefIcon$5;var FilePdfOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"};const FilePdfOutlinedSvg=FilePdfOutlined$2;var FilePdfOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:FilePdfOutlinedSvg}))},RefIcon$4=reactExports.forwardRef(FilePdfOutlined);const FilePdfOutlined$1=RefIcon$4;var FormOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};const FormOutlinedSvg=FormOutlined$2;var FormOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:FormOutlinedSvg}))},RefIcon$3=reactExports.forwardRef(FormOutlined);const FormOutlined$1=RefIcon$3;var PlayCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};const PlayCircleOutlinedSvg=PlayCircleOutlined$2;var PlayCircleOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:PlayCircleOutlinedSvg}))},RefIcon$2=reactExports.forwardRef(PlayCircleOutlined);const PlayCircleOutlined$1=RefIcon$2;var SaveOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const SaveOutlinedSvg=SaveOutlined$2;var SaveOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:SaveOutlinedSvg}))},RefIcon$1=reactExports.forwardRef(SaveOutlined);const SaveOutlined$1=RefIcon$1;var StepBackwardOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"};const StepBackwardOutlinedSvg=StepBackwardOutlined$2;var StepBackwardOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:StepBackwardOutlinedSvg}))},RefIcon=reactExports.forwardRef(StepBackwardOutlined);const StepBackwardOutlined$1=RefIcon;var updateReducer=function(o){return(o+1)%1e6};function useUpdate(){var o=reactExports.useReducer(updateReducer,0),n=o[1];return n}function resolveHookState(o,n){return typeof o=="function"?o.length?o(n):o():o}function useGetSet(o){var n=reactExports.useRef(resolveHookState(o)),e=useUpdate();return reactExports.useMemo(function(){return[function(){return n.current},function(t){n.current=resolveHookState(t,n.current),e()}]},[])}function useCounter(o,n,e){o===void 0&&(o=0),n===void 0&&(n=null),e===void 0&&(e=null);var t=resolveHookState(o);typeof t!="number"&&console.error("initialValue has to be a number, got "+typeof o),typeof e=="number"?t=Math.max(t,e):e!==null&&console.error("min has to be a number, got "+typeof e),typeof n=="number"?t=Math.min(t,n):n!==null&&console.error("max has to be a number, got "+typeof n);var a=useGetSet(t),i=a[0],u=a[1];return[i(),reactExports.useMemo(function(){var c=function(y){var A=i(),I=resolveHookState(y,A);A!==I&&(typeof e=="number"&&(I=Math.max(I,e)),typeof n=="number"&&(I=Math.min(I,n)),A!==I&&u(I))};return{get:i,set:c,inc:function(y){y===void 0&&(y=1);var A=resolveHookState(y,i());typeof A!="number"&&console.error("delta has to be a number or function returning a number, got "+typeof A),c(function(I){return I+A})},dec:function(y){y===void 0&&(y=1);var A=resolveHookState(y,i());typeof A!="number"&&console.error("delta has to be a number or function returning a number, got "+typeof A),c(function(I){return I-A})},reset:function(y){y===void 0&&(y=t);var A=resolveHookState(y,i());typeof A!="number"&&console.error("value has to be a number or function returning a number, got "+typeof A),t=A,c(A)}}},[t,e,n])]}var useIsomorphicLayoutEffect=isBrowser$1?reactExports.useLayoutEffect:reactExports.useEffect;const useIsomorphicLayoutEffect$1=useIsomorphicLayoutEffect;var createProcess$1=function(o){return function(n,e){var t=n.getData("text/uri-list");if(t){(o.onUri||noop)(t,e);return}if(n.files&&n.files.length){(o.onFiles||noop)(Array.from(n.files),e);return}if(e.clipboardData){var a=e.clipboardData.getData("text");(o.onText||noop)(a,e);return}}},useDrop=function(o,n){o===void 0&&(o={}),n===void 0&&(n=[]);var e=o.onFiles,t=o.onText,a=o.onUri,i=reactExports.useState(!1),u=i[0],c=i[1],y=reactExports.useCallback(c,[]),A=reactExports.useMemo(function(){return createProcess$1(o)},[e,t,a]);return reactExports.useEffect(function(){var I=function(P){P.preventDefault(),y(!0)},D=function(P){P.preventDefault(),y(!0)},U=function(){y(!1)},w=function(){y(!1)},T=function(P){P.preventDefault(),y(!1),A(P.dataTransfer,P)},O=function(P){A(P.clipboardData,P)};return on(document,"dragover",I),on(document,"dragenter",D),on(document,"dragleave",U),on(document,"dragexit",w),on(document,"drop",T),t&&on(document,"paste",O),function(){off(document,"dragover",I),off(document,"dragenter",D),off(document,"dragleave",U),off(document,"dragexit",w),off(document,"drop",T),off(document,"paste",O)}},__spreadArrays([A],n)),{over:u}};const useDrop$1=useDrop;var createProcess=function(o,n){return function(e,t){var a=e.getData("text/uri-list");if(a){(o.onUri||noop)(a,t);return}if(e.files&&e.files.length){(o.onFiles||noop)(Array.from(e.files),t);return}e.items&&e.items.length&&e.items[0].getAsString(function(i){n&&(o.onText||noop)(i,t)})}},createBond=function(o,n){return{onDragOver:function(e){e.preventDefault()},onDragEnter:function(e){e.preventDefault(),n(!0)},onDragLeave:function(){n(!1)},onDrop:function(e){e.preventDefault(),e.persist(),n(!1),o(e.dataTransfer,e)},onPaste:function(e){e.persist(),o(e.clipboardData,e)}}},useDropArea=function(o){o===void 0&&(o={});var n=o.onFiles,e=o.onText,t=o.onUri,a=useMountedState(),i=reactExports.useState(!1),u=i[0],c=i[1],y=reactExports.useMemo(function(){return createProcess(o,a())},[n,e,t]),A=reactExports.useMemo(function(){return createBond(y,c)},[y,c]);return[A,{over:u}]};const useDropArea$1=useDropArea;var useEffectOnce=function(o){reactExports.useEffect(o,[])};const useEffectOnce$1=useEffectOnce;var useUnmount=function(o){var n=reactExports.useRef(o);n.current=o,useEffectOnce$1(function(){return function(){return n.current()}})};const useUnmount$1=useUnmount;function createGlobalState(o){var n={state:o instanceof Function?o():o,setState:function(e){n.state=resolveHookState(e,n.state),n.setters.forEach(function(t){return t(n.state)})},setters:[]};return function(){var e=reactExports.useState(n.state),t=e[0],a=e[1];return useEffectOnce$1(function(){return function(){n.setters=n.setters.filter(function(i){return i!==a})}}),useIsomorphicLayoutEffect$1(function(){n.setters.includes(a)||n.setters.push(a)}),[t,n.setState]}}var urlJoin$1={exports:{}};(function(o){(function(n,e,t){o.exports?o.exports=t():e[n]=t()})("urljoin",commonjsGlobal,function(){function n(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var a=e.shift();e[0]=a+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var i=0;i<e.length;i++){var u=e[i];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(i>0&&(u=u.replace(/^[\/]+/,"")),i<e.length-1?u=u.replace(/[\/]+$/,""):u=u.replace(/[\/]+$/,"/"),t.push(u))}var c=t.join("/");c=c.replace(/\/(\?|&|#[^!])/g,"$1");var y=c.split("?");return c=y.shift()+(y.length>0?"?":"")+y.join("&"),c}return function(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),n(e)}})})(urlJoin$1);var urlJoinExports=urlJoin$1.exports;const urlJoin=getDefaultExportFromCjs(urlJoinExports),editInput="_editInput_8tstc_1",editIcon="_editIcon_8tstc_9",editIconActive="_editIconActive_8tstc_15",styles$2={editInput,editIcon,editIconActive},EditableContent=({value:o,placeholder:n,defaultValue:e,style:t,onChange:a,...i})=>{const[u,c]=reactExports.useState(!1),[y,A]=reactExports.useState(!1),I=reactExports.useRef();return reactExports.useEffect(()=>{u&&I.current.focus({cursor:"end"})},[u]),jsxRuntimeExports.jsxs("div",{style:{...t,position:"relative",display:"flex",alignItems:"center"},onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:[u?jsxRuntimeExports.jsx(Input,{...i,ref:I,placeholder:n,defaultValue:o,onBlur:D=>{c(!1),a(D)},onKeyUp:D=>{D.key==="Enter"&&(a(D),c(!1))}}):jsxRuntimeExports.jsx("div",{className:styles$2.editInput,children:o||e}),jsxRuntimeExports.jsx(FormOutlined$1,{className:classNames(styles$2.editIcon,{[styles$2.editIconActive]:!u&&y}),onClick:()=>{c(!0)}})]})},EditableContent$1=reactExports.memo(EditableContent);var IssueMeasureStatus=(o=>(o[o.Discard=-1]="Discard",o[o.Solved=0]="Solved",o[o.Issue=1]="Issue",o[o.Fatal=2]="Fatal",o))(IssueMeasureStatus||{});function createGlobalStorage(o,n){const e=localStorage.getItem(o);if(e!==null)try{n=JSON.parse(e)}catch{}const t=createGlobalState(n);return()=>{const[a,i]=t();return[a,u=>{localStorage.setItem(o,JSON.stringify(u)),i(u)}]}}const useGlobalScore=createGlobalState(newScore()),useZoom=createGlobalStorage("__settings_zoom",1),useSemanticVisible=createGlobalStorage("__settings_semantic_visible",!1),useTokenVisible=createGlobalStorage("__settings_token_visible",!0),useStavesImageVisible=createGlobalStorage("__settings_staves_image_visible",!0),useRegulatePolicy=createGlobalStorage("__settings_regulate_policy","equations"),useFakeNotesScope=createGlobalStorage("__settings_fake_notes_scope","patched"),useCursorPosition=createGlobalState(null),usePlayState=createGlobalState(!1),useMode=createGlobalState("edit");createGlobalState(0);const useActivePoints=createGlobalState([]),useCurrentPoint=createGlobalState(null),useShowTrackTplEdit=createGlobalState(!1),useShowTrackTplSelect=createGlobalState(!1),useMarkToolVisible=createGlobalState(!1),useHighlightPoint=createGlobalState(null);createGlobalState(!1);const useVoiceColored=createGlobalState(!1),useTickMap=createGlobalState([]),regulateState={hash:null},ProjectContext=reactExports.createContext({}),useIssueRecords=createGlobalState([]),useIssueMeasure=()=>{const o=useNavigate(),n=useLocation(),e=reactExports.useRef(!1),[t,a]=useIssueRecords(),i=reactExports.useMemo(()=>{var I;const A=(I=n==null?void 0:n.hash)==null?void 0:I.replace("#","");return/\d+/g.test(A)?+A:null},[n==null?void 0:n.hash]),[u,c]=useGlobalScore(),y=reactExports.useMemo(()=>{var U;if(!Number.isFinite(i))return null;const A=u.spartito||u.makeSpartito(),I=(U=A==null?void 0:A.measures)==null?void 0:U.find(w=>w.measureIndex===i),D=t==null?void 0:t.find(w=>w.measureIndex===i);return D?I?(u.assignBackgroundForMeasure(I),{...D,measure:new EditableMeasure(I)}):D:I?(u.assignBackgroundForMeasure(I),{scoreId:null,status:IssueMeasureStatus.Issue,measureIndex:i,lastUpdate:null,measure:new EditableMeasure(I)}):null},[u,t,i]);return[[t,a],[i,A=>{const I=Number.isFinite(A)?`#${A}`:"";o({pathname:n.pathname,search:n.search,hash:I},{replace:!!e.current}),e.current=!0}],y]};var isProduction$1=!0,prefix="Invariant failed";function invariant(o,n){if(!o){if(isProduction$1)throw new Error(prefix);var e=typeof n=="function"?n():n,t=e?"".concat(prefix,": ").concat(e):prefix;throw new Error(t)}}var pdf={exports:{}};(function(module,exports){(function(n,e){module.exports=e()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(o,n,e)=>{function t(F){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(l){return typeof l}:t=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(F)}Object.defineProperty(n,"__esModule",{value:!0}),n.StatTimer=n.RenderingCancelledException=n.PixelsPerInch=n.PageViewport=n.PDFDateString=n.LinkTarget=n.DOMStandardFontDataFactory=n.DOMSVGFactory=n.DOMCanvasFactory=n.DOMCMapReaderFactory=void 0,n.addLinkAttributes=Y,n.deprecated=be,n.getFilenameFromUrl=k,n.getPdfFilenameFromUrl=M,n.getXfaPageViewport=$,n.isDataScheme=E,n.isPdfFile=g,n.isValidFetchUrl=re,n.loadScript=X;var a=c(e(2)),i=e(4),u=e(135);function c(F){return F&&F.__esModule?F:{default:F}}function y(F,p){var l=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!l){if(Array.isArray(F)||(l=A(F))||p&&F&&typeof F.length=="number"){l&&(F=l);var S=0,L=function(){};return{s:L,n:function(){return S>=F.length?{done:!0}:{done:!1,value:F[S++]}},e:function(ge){throw ge},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
| 2 |
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,Q=!1,le;return{s:function(){l=l.call(F)},n:function(){var ge=l.next();return j=ge.done,ge},e:function(ge){Q=!0,le=ge},f:function(){try{!j&&l.return!=null&&l.return()}finally{if(Q)throw le}}}}function A(F,p){if(F){if(typeof F=="string")return I(F,p);var l=Object.prototype.toString.call(F).slice(8,-1);if(l==="Object"&&F.constructor&&(l=F.constructor.name),l==="Map"||l==="Set")return Array.from(F);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return I(F,p)}}function I(F,p){(p==null||p>F.length)&&(p=F.length);for(var l=0,S=new Array(p);l<p;l++)S[l]=F[l];return S}function D(F,p,l,S,L,j,Q){try{var le=F[j](Q),ve=le.value}catch(ge){l(ge);return}le.done?p(ve):Promise.resolve(ve).then(S,L)}function U(F){return function(){var p=this,l=arguments;return new Promise(function(S,L){var j=F.apply(p,l);function Q(ve){D(j,S,L,Q,le,"next",ve)}function le(ve){D(j,S,L,Q,le,"throw",ve)}Q(void 0)})}}function w(F,p){if(!(F instanceof p))throw new TypeError("Cannot call a class as a function")}function T(F,p){for(var l=0;l<p.length;l++){var S=p[l];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(F,S.key,S)}}function O(F,p,l){return p&&T(F.prototype,p),l&&T(F,l),F}function P(F,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(p&&p.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),p&&B(F,p)}function B(F,p){return B=Object.setPrototypeOf||function(S,L){return S.__proto__=L,S},B(F,p)}function R(F){var p=d();return function(){var S=f(F),L;if(p){var j=f(this).constructor;L=Reflect.construct(S,arguments,j)}else L=S.apply(this,arguments);return W(this,L)}}function W(F,p){if(p&&(t(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(F)}function h(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(F){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},f(F)}var b="noopener noreferrer nofollow",m="http://www.w3.org/2000/svg",v={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,i.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};n.PixelsPerInch=v;var _=function(F){P(l,F);var p=R(l);function l(){var S,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=L.ownerDocument,Q=j===void 0?globalThis.document:j;return w(this,l),S=p.call(this),S._document=Q,S}return O(l,[{key:"_createCanvas",value:function(L,j){var Q=this._document.createElement("canvas");return Q.width=L,Q.height=j,Q}}]),l}(u.BaseCanvasFactory);n.DOMCanvasFactory=_;function x(F){return z.apply(this,arguments)}function z(){return z=U(a.default.mark(function F(p){var l,S,L=arguments;return a.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(l=L.length>1&&L[1]!==void 0?L[1]:!1,!re(p,document.baseURI)){Q.next=21;break}return Q.next=4,fetch(p);case 4:if(S=Q.sent,S.ok){Q.next=7;break}throw new Error(S.statusText);case 7:if(!l){Q.next=15;break}return Q.t1=Uint8Array,Q.next=11,S.arrayBuffer();case 11:Q.t2=Q.sent,Q.t0=new Q.t1(Q.t2),Q.next=20;break;case 15:return Q.t3=i.stringToBytes,Q.next=18,S.text();case 18:Q.t4=Q.sent,Q.t0=(0,Q.t3)(Q.t4);case 20:return Q.abrupt("return",Q.t0);case 21:return Q.abrupt("return",new Promise(function(le,ve){var ge=new XMLHttpRequest;ge.open("GET",p,!0),l&&(ge.responseType="arraybuffer"),ge.onreadystatechange=function(){if(ge.readyState===XMLHttpRequest.DONE){if(ge.status===200||ge.status===0){var pe;if(l&&ge.response?pe=new Uint8Array(ge.response):!l&&ge.responseText&&(pe=(0,i.stringToBytes)(ge.responseText)),pe){le(pe);return}}ve(new Error(ge.statusText))}},ge.send(null)}));case 22:case"end":return Q.stop()}},F)})),z.apply(this,arguments)}var N=function(F){P(l,F);var p=R(l);function l(){return w(this,l),p.apply(this,arguments)}return O(l,[{key:"_fetchData",value:function(L,j){return x(L,this.isCompressed).then(function(Q){return{cMapData:Q,compressionType:j}})}}]),l}(u.BaseCMapReaderFactory);n.DOMCMapReaderFactory=N;var V=function(F){P(l,F);var p=R(l);function l(){return w(this,l),p.apply(this,arguments)}return O(l,[{key:"_fetchData",value:function(L){return x(L,!0)}}]),l}(u.BaseStandardFontDataFactory);n.DOMStandardFontDataFactory=V;var ee=function(F){P(l,F);var p=R(l);function l(){return w(this,l),p.apply(this,arguments)}return O(l,[{key:"_createSVG",value:function(L){return document.createElementNS(m,L)}}]),l}(u.BaseSVGFactory);n.DOMSVGFactory=ee;var Z=function(){function F(p){var l=p.viewBox,S=p.scale,L=p.rotation,j=p.offsetX,Q=j===void 0?0:j,le=p.offsetY,ve=le===void 0?0:le,ge=p.dontFlip,pe=ge===void 0?!1:ge;w(this,F),this.viewBox=l,this.scale=S,this.rotation=L,this.offsetX=Q,this.offsetY=ve;var _e=(l[2]+l[0])/2,ke=(l[3]+l[1])/2,Ee,Fe,Ie,We;switch(L%=360,L<0&&(L+=360),L){case 180:Ee=-1,Fe=0,Ie=0,We=1;break;case 90:Ee=0,Fe=1,Ie=1,We=0;break;case 270:Ee=0,Fe=-1,Ie=-1,We=0;break;case 0:Ee=1,Fe=0,Ie=0,We=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}pe&&(Ie=-Ie,We=-We);var je,fe,de,G;Ee===0?(je=Math.abs(ke-l[1])*S+Q,fe=Math.abs(_e-l[0])*S+ve,de=Math.abs(l[3]-l[1])*S,G=Math.abs(l[2]-l[0])*S):(je=Math.abs(_e-l[0])*S+Q,fe=Math.abs(ke-l[1])*S+ve,de=Math.abs(l[2]-l[0])*S,G=Math.abs(l[3]-l[1])*S),this.transform=[Ee*S,Fe*S,Ie*S,We*S,je-Ee*S*_e-Ie*S*ke,fe-Fe*S*_e-We*S*ke],this.width=de,this.height=G}return O(F,[{key:"clone",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=l.scale,L=S===void 0?this.scale:S,j=l.rotation,Q=j===void 0?this.rotation:j,le=l.offsetX,ve=le===void 0?this.offsetX:le,ge=l.offsetY,pe=ge===void 0?this.offsetY:ge,_e=l.dontFlip,ke=_e===void 0?!1:_e;return new F({viewBox:this.viewBox.slice(),scale:L,rotation:Q,offsetX:ve,offsetY:pe,dontFlip:ke})}},{key:"convertToViewportPoint",value:function(l,S){return i.Util.applyTransform([l,S],this.transform)}},{key:"convertToViewportRectangle",value:function(l){var S=i.Util.applyTransform([l[0],l[1]],this.transform),L=i.Util.applyTransform([l[2],l[3]],this.transform);return[S[0],S[1],L[0],L[1]]}},{key:"convertToPdfPoint",value:function(l,S){return i.Util.applyInverseTransform([l,S],this.transform)}}]),F}();n.PageViewport=Z;var ie=function(F){P(l,F);var p=R(l);function l(S,L){var j;return w(this,l),j=p.call(this,S,"RenderingCancelledException"),j.type=L,j}return l}(i.BaseException);n.RenderingCancelledException=ie;var H={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};n.LinkTarget=H;function Y(F){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=p.url,S=p.target,L=p.rel,j=p.enabled,Q=j===void 0?!0:j;(0,i.assert)(l&&typeof l=="string",'addLinkAttributes: A valid "url" parameter must provided.');var le=(0,i.removeNullCharacters)(l);Q?F.href=F.title=le:(F.href="",F.title="Disabled: ".concat(le),F.onclick=function(){return!1});var ve="";switch(S){case H.NONE:break;case H.SELF:ve="_self";break;case H.BLANK:ve="_blank";break;case H.PARENT:ve="_parent";break;case H.TOP:ve="_top";break}F.target=ve,F.rel=typeof L=="string"?L:b}function E(F){for(var p=F.length,l=0;l<p&&F[l].trim()==="";)l++;return F.substring(l,l+5).toLowerCase()==="data:"}function g(F){return typeof F=="string"&&/\.pdf$/i.test(F)}function k(F){var p=F.indexOf("#"),l=F.indexOf("?"),S=Math.min(p>0?p:F.length,l>0?l:F.length);return F.substring(F.lastIndexOf("/",S)+1,S)}function M(F){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof F!="string")return p;if(E(F))return(0,i.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),p;var l=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,S=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,L=l.exec(F),j=S.exec(L[1])||S.exec(L[2])||S.exec(L[3]);if(j&&(j=j[0],j.includes("%")))try{j=S.exec(decodeURIComponent(j))[0]}catch{}return j||p}var q=function(){function F(){w(this,F),this.started=Object.create(null),this.times=[]}return O(F,[{key:"time",value:function(l){l in this.started&&(0,i.warn)("Timer is already running for ".concat(l)),this.started[l]=Date.now()}},{key:"timeEnd",value:function(l){l in this.started||(0,i.warn)("Timer has not been started for ".concat(l)),this.times.push({name:l,start:this.started[l],end:Date.now()}),delete this.started[l]}},{key:"toString",value:function(){var l=[],S=0,L=y(this.times),j;try{for(L.s();!(j=L.n()).done;){var Q=j.value,le=Q.name;le.length>S&&(S=le.length)}}catch(ke){L.e(ke)}finally{L.f()}var ve=y(this.times),ge;try{for(ve.s();!(ge=ve.n()).done;){var pe=ge.value,_e=pe.end-pe.start;l.push("".concat(pe.name.padEnd(S)," ").concat(_e,`ms
|
| 3 |
`))}}catch(ke){ve.e(ke)}finally{ve.f()}return l.join("")}}]),F}();n.StatTimer=q;function re(F,p){try{var l=p?new URL(F,p):new URL(F),S=l.protocol;return S==="http:"||S==="https:"}catch{return!1}}function X(F){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise(function(l,S){var L=document.createElement("script");L.src=F,L.onload=function(j){p&&L.remove(),l(j)},L.onerror=function(){S(new Error("Cannot load script at: ".concat(L.src)))},(document.head||document.documentElement).appendChild(L)})}function be(F){console.log("Deprecated API usage: "+F)}var Pe,we=function(){function F(){w(this,F)}return O(F,null,[{key:"toDateObject",value:function(l){if(!l||!(0,i.isString)(l))return null;Pe||(Pe=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var S=Pe.exec(l);if(!S)return null;var L=parseInt(S[1],10),j=parseInt(S[2],10);j=j>=1&&j<=12?j-1:0;var Q=parseInt(S[3],10);Q=Q>=1&&Q<=31?Q:1;var le=parseInt(S[4],10);le=le>=0&&le<=23?le:0;var ve=parseInt(S[5],10);ve=ve>=0&&ve<=59?ve:0;var ge=parseInt(S[6],10);ge=ge>=0&&ge<=59?ge:0;var pe=S[7]||"Z",_e=parseInt(S[8],10);_e=_e>=0&&_e<=23?_e:0;var ke=parseInt(S[9],10)||0;return ke=ke>=0&&ke<=59?ke:0,pe==="-"?(le+=_e,ve+=ke):pe==="+"&&(le-=_e,ve-=ke),new Date(Date.UTC(L,j,Q,le,ve,ge))}}]),F}();n.PDFDateString=we;function $(F,p){var l=p.scale,S=l===void 0?1:l,L=p.rotation,j=L===void 0?0:L,Q=F.attributes.style,le=Q.width,ve=Q.height,ge=[0,0,parseInt(le),parseInt(ve)];return new Z({viewBox:ge,scale:S,rotation:j})}},(o,n,e)=>{o.exports=e(3)},(o,n,e)=>{o=e.nmd(o);function t(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(i)}var a=function(i){var u=Object.prototype,c=u.hasOwnProperty,y,A=typeof Symbol=="function"?Symbol:{},I=A.iterator||"@@iterator",D=A.asyncIterator||"@@asyncIterator",U=A.toStringTag||"@@toStringTag";function w(g,k,M){return Object.defineProperty(g,k,{value:M,enumerable:!0,configurable:!0,writable:!0}),g[k]}try{w({},"")}catch{w=function(M,q,re){return M[q]=re}}function T(g,k,M,q){var re=k&&k.prototype instanceof d?k:d,X=Object.create(re.prototype),be=new H(q||[]);return X._invoke=V(g,M,be),X}i.wrap=T;function O(g,k,M){try{return{type:"normal",arg:g.call(k,M)}}catch(q){return{type:"throw",arg:q}}}var P="suspendedStart",B="suspendedYield",R="executing",W="completed",h={};function d(){}function f(){}function b(){}var m={};w(m,I,function(){return this});var v=Object.getPrototypeOf,_=v&&v(v(Y([])));_&&_!==u&&c.call(_,I)&&(m=_);var x=b.prototype=d.prototype=Object.create(m);f.prototype=b,w(x,"constructor",b),w(b,"constructor",f),f.displayName=w(b,U,"GeneratorFunction");function z(g){["next","throw","return"].forEach(function(k){w(g,k,function(M){return this._invoke(k,M)})})}i.isGeneratorFunction=function(g){var k=typeof g=="function"&&g.constructor;return k?k===f||(k.displayName||k.name)==="GeneratorFunction":!1},i.mark=function(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,b):(g.__proto__=b,w(g,U,"GeneratorFunction")),g.prototype=Object.create(x),g},i.awrap=function(g){return{__await:g}};function N(g,k){function M(X,be,Pe,we){var $=O(g[X],g,be);if($.type==="throw")we($.arg);else{var F=$.arg,p=F.value;return p&&t(p)==="object"&&c.call(p,"__await")?k.resolve(p.__await).then(function(l){M("next",l,Pe,we)},function(l){M("throw",l,Pe,we)}):k.resolve(p).then(function(l){F.value=l,Pe(F)},function(l){return M("throw",l,Pe,we)})}}var q;function re(X,be){function Pe(){return new k(function(we,$){M(X,be,we,$)})}return q=q?q.then(Pe,Pe):Pe()}this._invoke=re}z(N.prototype),w(N.prototype,D,function(){return this}),i.AsyncIterator=N,i.async=function(g,k,M,q,re){re===void 0&&(re=Promise);var X=new N(T(g,k,M,q),re);return i.isGeneratorFunction(k)?X:X.next().then(function(be){return be.done?be.value:X.next()})};function V(g,k,M){var q=P;return function(X,be){if(q===R)throw new Error("Generator is already running");if(q===W){if(X==="throw")throw be;return E()}for(M.method=X,M.arg=be;;){var Pe=M.delegate;if(Pe){var we=ee(Pe,M);if(we){if(we===h)continue;return we}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(q===P)throw q=W,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);q=R;var $=O(g,k,M);if($.type==="normal"){if(q=M.done?W:B,$.arg===h)continue;return{value:$.arg,done:M.done}}else $.type==="throw"&&(q=W,M.method="throw",M.arg=$.arg)}}}function ee(g,k){var M=g.iterator[k.method];if(M===y){if(k.delegate=null,k.method==="throw"){if(g.iterator.return&&(k.method="return",k.arg=y,ee(g,k),k.method==="throw"))return h;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var q=O(M,g.iterator,k.arg);if(q.type==="throw")return k.method="throw",k.arg=q.arg,k.delegate=null,h;var re=q.arg;if(!re)return k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,h;if(re.done)k[g.resultName]=re.value,k.next=g.nextLoc,k.method!=="return"&&(k.method="next",k.arg=y);else return re;return k.delegate=null,h}z(x),w(x,U,"Generator"),w(x,I,function(){return this}),w(x,"toString",function(){return"[object Generator]"});function Z(g){var k={tryLoc:g[0]};1 in g&&(k.catchLoc=g[1]),2 in g&&(k.finallyLoc=g[2],k.afterLoc=g[3]),this.tryEntries.push(k)}function ie(g){var k=g.completion||{};k.type="normal",delete k.arg,g.completion=k}function H(g){this.tryEntries=[{tryLoc:"root"}],g.forEach(Z,this),this.reset(!0)}i.keys=function(g){var k=[];for(var M in g)k.push(M);return k.reverse(),function q(){for(;k.length;){var re=k.pop();if(re in g)return q.value=re,q.done=!1,q}return q.done=!0,q}};function Y(g){if(g){var k=g[I];if(k)return k.call(g);if(typeof g.next=="function")return g;if(!isNaN(g.length)){var M=-1,q=function re(){for(;++M<g.length;)if(c.call(g,M))return re.value=g[M],re.done=!1,re;return re.value=y,re.done=!0,re};return q.next=q}}return{next:E}}i.values=Y;function E(){return{value:y,done:!0}}return H.prototype={constructor:H,reset:function(k){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(ie),!k)for(var M in this)M.charAt(0)==="t"&&c.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=y)},stop:function(){this.done=!0;var k=this.tryEntries[0],M=k.completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(k){if(this.done)throw k;var M=this;function q($,F){return be.type="throw",be.arg=k,M.next=$,F&&(M.method="next",M.arg=y),!!F}for(var re=this.tryEntries.length-1;re>=0;--re){var X=this.tryEntries[re],be=X.completion;if(X.tryLoc==="root")return q("end");if(X.tryLoc<=this.prev){var Pe=c.call(X,"catchLoc"),we=c.call(X,"finallyLoc");if(Pe&&we){if(this.prev<X.catchLoc)return q(X.catchLoc,!0);if(this.prev<X.finallyLoc)return q(X.finallyLoc)}else if(Pe){if(this.prev<X.catchLoc)return q(X.catchLoc,!0)}else if(we){if(this.prev<X.finallyLoc)return q(X.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(k,M){for(var q=this.tryEntries.length-1;q>=0;--q){var re=this.tryEntries[q];if(re.tryLoc<=this.prev&&c.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var X=re;break}}X&&(k==="break"||k==="continue")&&X.tryLoc<=M&&M<=X.finallyLoc&&(X=null);var be=X?X.completion:{};return be.type=k,be.arg=M,X?(this.method="next",this.next=X.finallyLoc,h):this.complete(be)},complete:function(k,M){if(k.type==="throw")throw k.arg;return k.type==="break"||k.type==="continue"?this.next=k.arg:k.type==="return"?(this.rval=this.arg=k.arg,this.method="return",this.next="end"):k.type==="normal"&&M&&(this.next=M),h},finish:function(k){for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M];if(q.finallyLoc===k)return this.complete(q.completion,q.afterLoc),ie(q),h}},catch:function(k){for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M];if(q.tryLoc===k){var re=q.completion;if(re.type==="throw"){var X=re.arg;ie(q)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(k,M,q){return this.delegate={iterator:Y(k),resultName:M,nextLoc:q},this.method==="next"&&(this.arg=y),h}},i}(t(o)==="object"?o.exports:{});try{regeneratorRuntime=a}catch{(typeof globalThis>"u"?"undefined":t(globalThis))==="object"?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},(o,n,e)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.VerbosityLevel=n.Util=n.UnknownErrorException=n.UnexpectedResponseException=n.UNSUPPORTED_FEATURES=n.TextRenderingMode=n.StreamType=n.RenderingIntentFlag=n.PermissionFlag=n.PasswordResponses=n.PasswordException=n.PageActionEventType=n.OPS=n.MissingPDFException=n.IsLittleEndianCached=n.IsEvalSupportedCached=n.InvalidPDFException=n.ImageKind=n.IDENTITY_MATRIX=n.FormatError=n.FontType=n.FONT_IDENTITY_MATRIX=n.DocumentActionEventType=n.CMapCompressionType=n.BaseException=n.AnnotationType=n.AnnotationStateModelType=n.AnnotationReviewState=n.AnnotationReplyType=n.AnnotationMode=n.AnnotationMarkedState=n.AnnotationFlag=n.AnnotationFieldFlag=n.AnnotationBorderStyleType=n.AnnotationActionEventType=n.AbortException=void 0,n.arrayByteLength=ce,n.arraysToBytes=Se,n.assert=ge,n.bytesToString=J,n.createObjectURL=wt,n.createPromiseCapability=_t,n.createValidAbsoluteUrl=ke,n.escapeString=Qe,n.getModificationDate=Yt,n.getVerbosityLevel=j,n.info=Q,n.isArrayBuffer=Ot,n.isArrayEqual=Ft,n.isAscii=rt,n.isBool=Tt,n.isNum=Xt,n.isSameOrigin=pe,n.isString=xt,n.objectFromMap=Le,n.objectSize=De,n.removeNullCharacters=ne,n.setVerbosityLevel=L,n.shadow=Ee,n.string32=Te,n.stringToBytes=he,n.stringToPDFString=Ye,n.stringToUTF16BEString=it,n.stringToUTF8String=gt,n.unreachable=ve,n.utf8StringToString=ht,n.warn=le,e(5);function t(ue,Re){for(var se=0;se<Re.length;se++){var ye=Re[se];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ue,ye.key,ye)}}function a(ue,Re,se){return Re&&t(ue.prototype,Re),se&&t(ue,se),ue}function i(ue){return y(ue)||c(ue)||T(ue)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
| 4 |
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(ue){if(typeof Symbol<"u"&&ue[Symbol.iterator]!=null||ue["@@iterator"]!=null)return Array.from(ue)}function y(ue){if(Array.isArray(ue))return O(ue)}function A(ue,Re){return U(ue)||D(ue,Re)||T(ue,Re)||I()}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
|
| 1 |
+
import{A as AntdIcon,g as _objectSpread2,j as __spreadArrays,h as useMountedState,c as classNames,Z as require$$5,$ as _createClass,a0 as _classCallCheck,a as _slicedToArray,_ as _toConsumableArray,W as _typeof,b as _defineProperty,a1 as _inherits,a2 as _getPrototypeOf,a3 as _possibleConstructorReturn,a4 as _assertThisInitialized,a5 as _objectWithoutProperties,u as useIntl,Y as base64toFile}from"./_setToString-5e7d8f22.js";import{r as reactExports,c as commonjsGlobal,g as getDefaultExportFromCjs,j as jsxRuntimeExports,k as useNavigate,u as useLocation,l as commonjsRequire,P as PropTypes,R as React,_ as _extends}from"./umi-e07d95da.js";import{i as isBrowser$1,o as on,d as off,n as noop,I as Input,S as Space,M as Modal,C as Checkbox,R as Row}from"./index-5014e2af.js";import{n as newScore}from"./index-bcc6e795.js";import{y as EditableMeasure}from"./index-333c2577.js";import{B as Button}from"./button-3ac51ee9.js";import{S as Spin}from"./index-c03929a6.js";var ArrowLeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ArrowLeftOutlinedSvg=ArrowLeftOutlined$2;var ArrowLeftOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:ArrowLeftOutlinedSvg}))},RefIcon$7=reactExports.forwardRef(ArrowLeftOutlined);const ArrowLeftOutlined$1=RefIcon$7;var ArrowRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const ArrowRightOutlinedSvg=ArrowRightOutlined$2;var ArrowRightOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:ArrowRightOutlinedSvg}))},RefIcon$6=reactExports.forwardRef(ArrowRightOutlined);const ArrowRightOutlined$1=RefIcon$6;var FileImageOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-image",theme:"outlined"};const FileImageOutlinedSvg=FileImageOutlined$2;var FileImageOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:FileImageOutlinedSvg}))},RefIcon$5=reactExports.forwardRef(FileImageOutlined);const FileImageOutlined$1=RefIcon$5;var FilePdfOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"};const FilePdfOutlinedSvg=FilePdfOutlined$2;var FilePdfOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:FilePdfOutlinedSvg}))},RefIcon$4=reactExports.forwardRef(FilePdfOutlined);const FilePdfOutlined$1=RefIcon$4;var FormOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};const FormOutlinedSvg=FormOutlined$2;var FormOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:FormOutlinedSvg}))},RefIcon$3=reactExports.forwardRef(FormOutlined);const FormOutlined$1=RefIcon$3;var PlayCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};const PlayCircleOutlinedSvg=PlayCircleOutlined$2;var PlayCircleOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:PlayCircleOutlinedSvg}))},RefIcon$2=reactExports.forwardRef(PlayCircleOutlined);const PlayCircleOutlined$1=RefIcon$2;var SaveOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const SaveOutlinedSvg=SaveOutlined$2;var SaveOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:SaveOutlinedSvg}))},RefIcon$1=reactExports.forwardRef(SaveOutlined);const SaveOutlined$1=RefIcon$1;var StepBackwardOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"};const StepBackwardOutlinedSvg=StepBackwardOutlined$2;var StepBackwardOutlined=function(n,e){return reactExports.createElement(AntdIcon,_objectSpread2(_objectSpread2({},n),{},{ref:e,icon:StepBackwardOutlinedSvg}))},RefIcon=reactExports.forwardRef(StepBackwardOutlined);const StepBackwardOutlined$1=RefIcon;var updateReducer=function(o){return(o+1)%1e6};function useUpdate(){var o=reactExports.useReducer(updateReducer,0),n=o[1];return n}function resolveHookState(o,n){return typeof o=="function"?o.length?o(n):o():o}function useGetSet(o){var n=reactExports.useRef(resolveHookState(o)),e=useUpdate();return reactExports.useMemo(function(){return[function(){return n.current},function(t){n.current=resolveHookState(t,n.current),e()}]},[])}function useCounter(o,n,e){o===void 0&&(o=0),n===void 0&&(n=null),e===void 0&&(e=null);var t=resolveHookState(o);typeof t!="number"&&console.error("initialValue has to be a number, got "+typeof o),typeof e=="number"?t=Math.max(t,e):e!==null&&console.error("min has to be a number, got "+typeof e),typeof n=="number"?t=Math.min(t,n):n!==null&&console.error("max has to be a number, got "+typeof n);var a=useGetSet(t),i=a[0],u=a[1];return[i(),reactExports.useMemo(function(){var c=function(y){var A=i(),I=resolveHookState(y,A);A!==I&&(typeof e=="number"&&(I=Math.max(I,e)),typeof n=="number"&&(I=Math.min(I,n)),A!==I&&u(I))};return{get:i,set:c,inc:function(y){y===void 0&&(y=1);var A=resolveHookState(y,i());typeof A!="number"&&console.error("delta has to be a number or function returning a number, got "+typeof A),c(function(I){return I+A})},dec:function(y){y===void 0&&(y=1);var A=resolveHookState(y,i());typeof A!="number"&&console.error("delta has to be a number or function returning a number, got "+typeof A),c(function(I){return I-A})},reset:function(y){y===void 0&&(y=t);var A=resolveHookState(y,i());typeof A!="number"&&console.error("value has to be a number or function returning a number, got "+typeof A),t=A,c(A)}}},[t,e,n])]}var useIsomorphicLayoutEffect=isBrowser$1?reactExports.useLayoutEffect:reactExports.useEffect;const useIsomorphicLayoutEffect$1=useIsomorphicLayoutEffect;var createProcess$1=function(o){return function(n,e){var t=n.getData("text/uri-list");if(t){(o.onUri||noop)(t,e);return}if(n.files&&n.files.length){(o.onFiles||noop)(Array.from(n.files),e);return}if(e.clipboardData){var a=e.clipboardData.getData("text");(o.onText||noop)(a,e);return}}},useDrop=function(o,n){o===void 0&&(o={}),n===void 0&&(n=[]);var e=o.onFiles,t=o.onText,a=o.onUri,i=reactExports.useState(!1),u=i[0],c=i[1],y=reactExports.useCallback(c,[]),A=reactExports.useMemo(function(){return createProcess$1(o)},[e,t,a]);return reactExports.useEffect(function(){var I=function(P){P.preventDefault(),y(!0)},D=function(P){P.preventDefault(),y(!0)},U=function(){y(!1)},w=function(){y(!1)},T=function(P){P.preventDefault(),y(!1),A(P.dataTransfer,P)},O=function(P){A(P.clipboardData,P)};return on(document,"dragover",I),on(document,"dragenter",D),on(document,"dragleave",U),on(document,"dragexit",w),on(document,"drop",T),t&&on(document,"paste",O),function(){off(document,"dragover",I),off(document,"dragenter",D),off(document,"dragleave",U),off(document,"dragexit",w),off(document,"drop",T),off(document,"paste",O)}},__spreadArrays([A],n)),{over:u}};const useDrop$1=useDrop;var createProcess=function(o,n){return function(e,t){var a=e.getData("text/uri-list");if(a){(o.onUri||noop)(a,t);return}if(e.files&&e.files.length){(o.onFiles||noop)(Array.from(e.files),t);return}e.items&&e.items.length&&e.items[0].getAsString(function(i){n&&(o.onText||noop)(i,t)})}},createBond=function(o,n){return{onDragOver:function(e){e.preventDefault()},onDragEnter:function(e){e.preventDefault(),n(!0)},onDragLeave:function(){n(!1)},onDrop:function(e){e.preventDefault(),e.persist(),n(!1),o(e.dataTransfer,e)},onPaste:function(e){e.persist(),o(e.clipboardData,e)}}},useDropArea=function(o){o===void 0&&(o={});var n=o.onFiles,e=o.onText,t=o.onUri,a=useMountedState(),i=reactExports.useState(!1),u=i[0],c=i[1],y=reactExports.useMemo(function(){return createProcess(o,a())},[n,e,t]),A=reactExports.useMemo(function(){return createBond(y,c)},[y,c]);return[A,{over:u}]};const useDropArea$1=useDropArea;var useEffectOnce=function(o){reactExports.useEffect(o,[])};const useEffectOnce$1=useEffectOnce;var useUnmount=function(o){var n=reactExports.useRef(o);n.current=o,useEffectOnce$1(function(){return function(){return n.current()}})};const useUnmount$1=useUnmount;function createGlobalState(o){var n={state:o instanceof Function?o():o,setState:function(e){n.state=resolveHookState(e,n.state),n.setters.forEach(function(t){return t(n.state)})},setters:[]};return function(){var e=reactExports.useState(n.state),t=e[0],a=e[1];return useEffectOnce$1(function(){return function(){n.setters=n.setters.filter(function(i){return i!==a})}}),useIsomorphicLayoutEffect$1(function(){n.setters.includes(a)||n.setters.push(a)}),[t,n.setState]}}var urlJoin$1={exports:{}};(function(o){(function(n,e,t){o.exports?o.exports=t():e[n]=t()})("urljoin",commonjsGlobal,function(){function n(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var a=e.shift();e[0]=a+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var i=0;i<e.length;i++){var u=e[i];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(i>0&&(u=u.replace(/^[\/]+/,"")),i<e.length-1?u=u.replace(/[\/]+$/,""):u=u.replace(/[\/]+$/,"/"),t.push(u))}var c=t.join("/");c=c.replace(/\/(\?|&|#[^!])/g,"$1");var y=c.split("?");return c=y.shift()+(y.length>0?"?":"")+y.join("&"),c}return function(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),n(e)}})})(urlJoin$1);var urlJoinExports=urlJoin$1.exports;const urlJoin=getDefaultExportFromCjs(urlJoinExports),editInput="_editInput_8tstc_1",editIcon="_editIcon_8tstc_9",editIconActive="_editIconActive_8tstc_15",styles$2={editInput,editIcon,editIconActive},EditableContent=({value:o,placeholder:n,defaultValue:e,style:t,onChange:a,...i})=>{const[u,c]=reactExports.useState(!1),[y,A]=reactExports.useState(!1),I=reactExports.useRef();return reactExports.useEffect(()=>{u&&I.current.focus({cursor:"end"})},[u]),jsxRuntimeExports.jsxs("div",{style:{...t,position:"relative",display:"flex",alignItems:"center"},onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:[u?jsxRuntimeExports.jsx(Input,{...i,ref:I,placeholder:n,defaultValue:o,onBlur:D=>{c(!1),a(D)},onKeyUp:D=>{D.key==="Enter"&&(a(D),c(!1))}}):jsxRuntimeExports.jsx("div",{className:styles$2.editInput,children:o||e}),jsxRuntimeExports.jsx(FormOutlined$1,{className:classNames(styles$2.editIcon,{[styles$2.editIconActive]:!u&&y}),onClick:()=>{c(!0)}})]})},EditableContent$1=reactExports.memo(EditableContent);var IssueMeasureStatus=(o=>(o[o.Discard=-1]="Discard",o[o.Solved=0]="Solved",o[o.Issue=1]="Issue",o[o.Fatal=2]="Fatal",o))(IssueMeasureStatus||{});function createGlobalStorage(o,n){const e=localStorage.getItem(o);if(e!==null)try{n=JSON.parse(e)}catch{}const t=createGlobalState(n);return()=>{const[a,i]=t();return[a,u=>{localStorage.setItem(o,JSON.stringify(u)),i(u)}]}}const useGlobalScore=createGlobalState(newScore()),useZoom=createGlobalStorage("__settings_zoom",1),useSemanticVisible=createGlobalStorage("__settings_semantic_visible",!1),useTokenVisible=createGlobalStorage("__settings_token_visible",!0),useStavesImageVisible=createGlobalStorage("__settings_staves_image_visible",!0),useRegulatePolicy=createGlobalStorage("__settings_regulate_policy","equations"),useFakeNotesScope=createGlobalStorage("__settings_fake_notes_scope","patched"),useCursorPosition=createGlobalState(null),usePlayState=createGlobalState(!1),useMode=createGlobalState("edit");createGlobalState(0);const useActivePoints=createGlobalState([]),useCurrentPoint=createGlobalState(null),useShowTrackTplEdit=createGlobalState(!1),useShowTrackTplSelect=createGlobalState(!1),useMarkToolVisible=createGlobalState(!1),useHighlightPoint=createGlobalState(null);createGlobalState(!1);const useVoiceColored=createGlobalState(!1),useTickMap=createGlobalState([]),regulateState={hash:null},ProjectContext=reactExports.createContext({}),useIssueRecords=createGlobalState([]),useIssueMeasure=()=>{const o=useNavigate(),n=useLocation(),e=reactExports.useRef(!1),[t,a]=useIssueRecords(),i=reactExports.useMemo(()=>{var I;const A=(I=n==null?void 0:n.hash)==null?void 0:I.replace("#","");return/\d+/g.test(A)?+A:null},[n==null?void 0:n.hash]),[u,c]=useGlobalScore(),y=reactExports.useMemo(()=>{var U;if(!Number.isFinite(i))return null;const A=u.spartito||u.makeSpartito(),I=(U=A==null?void 0:A.measures)==null?void 0:U.find(w=>w.measureIndex===i),D=t==null?void 0:t.find(w=>w.measureIndex===i);return D?I?(u.assignBackgroundForMeasure(I),{...D,measure:new EditableMeasure(I)}):D:I?(u.assignBackgroundForMeasure(I),{scoreId:null,status:IssueMeasureStatus.Issue,measureIndex:i,lastUpdate:null,measure:new EditableMeasure(I)}):null},[u,t,i]);return[[t,a],[i,A=>{const I=Number.isFinite(A)?`#${A}`:"";o({pathname:n.pathname,search:n.search,hash:I},{replace:!!e.current}),e.current=!0}],y]};var isProduction$1=!0,prefix="Invariant failed";function invariant(o,n){if(!o){if(isProduction$1)throw new Error(prefix);var e=typeof n=="function"?n():n,t=e?"".concat(prefix,": ").concat(e):prefix;throw new Error(t)}}var pdf={exports:{}};(function(module,exports){(function(n,e){module.exports=e()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(o,n,e)=>{function t(F){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(l){return typeof l}:t=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(F)}Object.defineProperty(n,"__esModule",{value:!0}),n.StatTimer=n.RenderingCancelledException=n.PixelsPerInch=n.PageViewport=n.PDFDateString=n.LinkTarget=n.DOMStandardFontDataFactory=n.DOMSVGFactory=n.DOMCanvasFactory=n.DOMCMapReaderFactory=void 0,n.addLinkAttributes=Y,n.deprecated=be,n.getFilenameFromUrl=k,n.getPdfFilenameFromUrl=M,n.getXfaPageViewport=$,n.isDataScheme=E,n.isPdfFile=g,n.isValidFetchUrl=re,n.loadScript=X;var a=c(e(2)),i=e(4),u=e(135);function c(F){return F&&F.__esModule?F:{default:F}}function y(F,p){var l=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!l){if(Array.isArray(F)||(l=A(F))||p&&F&&typeof F.length=="number"){l&&(F=l);var S=0,L=function(){};return{s:L,n:function(){return S>=F.length?{done:!0}:{done:!1,value:F[S++]}},e:function(ge){throw ge},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
| 2 |
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,Q=!1,le;return{s:function(){l=l.call(F)},n:function(){var ge=l.next();return j=ge.done,ge},e:function(ge){Q=!0,le=ge},f:function(){try{!j&&l.return!=null&&l.return()}finally{if(Q)throw le}}}}function A(F,p){if(F){if(typeof F=="string")return I(F,p);var l=Object.prototype.toString.call(F).slice(8,-1);if(l==="Object"&&F.constructor&&(l=F.constructor.name),l==="Map"||l==="Set")return Array.from(F);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return I(F,p)}}function I(F,p){(p==null||p>F.length)&&(p=F.length);for(var l=0,S=new Array(p);l<p;l++)S[l]=F[l];return S}function D(F,p,l,S,L,j,Q){try{var le=F[j](Q),ve=le.value}catch(ge){l(ge);return}le.done?p(ve):Promise.resolve(ve).then(S,L)}function U(F){return function(){var p=this,l=arguments;return new Promise(function(S,L){var j=F.apply(p,l);function Q(ve){D(j,S,L,Q,le,"next",ve)}function le(ve){D(j,S,L,Q,le,"throw",ve)}Q(void 0)})}}function w(F,p){if(!(F instanceof p))throw new TypeError("Cannot call a class as a function")}function T(F,p){for(var l=0;l<p.length;l++){var S=p[l];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(F,S.key,S)}}function O(F,p,l){return p&&T(F.prototype,p),l&&T(F,l),F}function P(F,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(p&&p.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),p&&B(F,p)}function B(F,p){return B=Object.setPrototypeOf||function(S,L){return S.__proto__=L,S},B(F,p)}function R(F){var p=d();return function(){var S=f(F),L;if(p){var j=f(this).constructor;L=Reflect.construct(S,arguments,j)}else L=S.apply(this,arguments);return W(this,L)}}function W(F,p){if(p&&(t(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(F)}function h(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(F){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},f(F)}var b="noopener noreferrer nofollow",m="http://www.w3.org/2000/svg",v={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,i.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};n.PixelsPerInch=v;var _=function(F){P(l,F);var p=R(l);function l(){var S,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=L.ownerDocument,Q=j===void 0?globalThis.document:j;return w(this,l),S=p.call(this),S._document=Q,S}return O(l,[{key:"_createCanvas",value:function(L,j){var Q=this._document.createElement("canvas");return Q.width=L,Q.height=j,Q}}]),l}(u.BaseCanvasFactory);n.DOMCanvasFactory=_;function x(F){return z.apply(this,arguments)}function z(){return z=U(a.default.mark(function F(p){var l,S,L=arguments;return a.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(l=L.length>1&&L[1]!==void 0?L[1]:!1,!re(p,document.baseURI)){Q.next=21;break}return Q.next=4,fetch(p);case 4:if(S=Q.sent,S.ok){Q.next=7;break}throw new Error(S.statusText);case 7:if(!l){Q.next=15;break}return Q.t1=Uint8Array,Q.next=11,S.arrayBuffer();case 11:Q.t2=Q.sent,Q.t0=new Q.t1(Q.t2),Q.next=20;break;case 15:return Q.t3=i.stringToBytes,Q.next=18,S.text();case 18:Q.t4=Q.sent,Q.t0=(0,Q.t3)(Q.t4);case 20:return Q.abrupt("return",Q.t0);case 21:return Q.abrupt("return",new Promise(function(le,ve){var ge=new XMLHttpRequest;ge.open("GET",p,!0),l&&(ge.responseType="arraybuffer"),ge.onreadystatechange=function(){if(ge.readyState===XMLHttpRequest.DONE){if(ge.status===200||ge.status===0){var pe;if(l&&ge.response?pe=new Uint8Array(ge.response):!l&&ge.responseText&&(pe=(0,i.stringToBytes)(ge.responseText)),pe){le(pe);return}}ve(new Error(ge.statusText))}},ge.send(null)}));case 22:case"end":return Q.stop()}},F)})),z.apply(this,arguments)}var N=function(F){P(l,F);var p=R(l);function l(){return w(this,l),p.apply(this,arguments)}return O(l,[{key:"_fetchData",value:function(L,j){return x(L,this.isCompressed).then(function(Q){return{cMapData:Q,compressionType:j}})}}]),l}(u.BaseCMapReaderFactory);n.DOMCMapReaderFactory=N;var V=function(F){P(l,F);var p=R(l);function l(){return w(this,l),p.apply(this,arguments)}return O(l,[{key:"_fetchData",value:function(L){return x(L,!0)}}]),l}(u.BaseStandardFontDataFactory);n.DOMStandardFontDataFactory=V;var ee=function(F){P(l,F);var p=R(l);function l(){return w(this,l),p.apply(this,arguments)}return O(l,[{key:"_createSVG",value:function(L){return document.createElementNS(m,L)}}]),l}(u.BaseSVGFactory);n.DOMSVGFactory=ee;var Z=function(){function F(p){var l=p.viewBox,S=p.scale,L=p.rotation,j=p.offsetX,Q=j===void 0?0:j,le=p.offsetY,ve=le===void 0?0:le,ge=p.dontFlip,pe=ge===void 0?!1:ge;w(this,F),this.viewBox=l,this.scale=S,this.rotation=L,this.offsetX=Q,this.offsetY=ve;var _e=(l[2]+l[0])/2,ke=(l[3]+l[1])/2,Ee,Fe,Ie,We;switch(L%=360,L<0&&(L+=360),L){case 180:Ee=-1,Fe=0,Ie=0,We=1;break;case 90:Ee=0,Fe=1,Ie=1,We=0;break;case 270:Ee=0,Fe=-1,Ie=-1,We=0;break;case 0:Ee=1,Fe=0,Ie=0,We=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}pe&&(Ie=-Ie,We=-We);var je,fe,de,G;Ee===0?(je=Math.abs(ke-l[1])*S+Q,fe=Math.abs(_e-l[0])*S+ve,de=Math.abs(l[3]-l[1])*S,G=Math.abs(l[2]-l[0])*S):(je=Math.abs(_e-l[0])*S+Q,fe=Math.abs(ke-l[1])*S+ve,de=Math.abs(l[2]-l[0])*S,G=Math.abs(l[3]-l[1])*S),this.transform=[Ee*S,Fe*S,Ie*S,We*S,je-Ee*S*_e-Ie*S*ke,fe-Fe*S*_e-We*S*ke],this.width=de,this.height=G}return O(F,[{key:"clone",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=l.scale,L=S===void 0?this.scale:S,j=l.rotation,Q=j===void 0?this.rotation:j,le=l.offsetX,ve=le===void 0?this.offsetX:le,ge=l.offsetY,pe=ge===void 0?this.offsetY:ge,_e=l.dontFlip,ke=_e===void 0?!1:_e;return new F({viewBox:this.viewBox.slice(),scale:L,rotation:Q,offsetX:ve,offsetY:pe,dontFlip:ke})}},{key:"convertToViewportPoint",value:function(l,S){return i.Util.applyTransform([l,S],this.transform)}},{key:"convertToViewportRectangle",value:function(l){var S=i.Util.applyTransform([l[0],l[1]],this.transform),L=i.Util.applyTransform([l[2],l[3]],this.transform);return[S[0],S[1],L[0],L[1]]}},{key:"convertToPdfPoint",value:function(l,S){return i.Util.applyInverseTransform([l,S],this.transform)}}]),F}();n.PageViewport=Z;var ie=function(F){P(l,F);var p=R(l);function l(S,L){var j;return w(this,l),j=p.call(this,S,"RenderingCancelledException"),j.type=L,j}return l}(i.BaseException);n.RenderingCancelledException=ie;var H={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};n.LinkTarget=H;function Y(F){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=p.url,S=p.target,L=p.rel,j=p.enabled,Q=j===void 0?!0:j;(0,i.assert)(l&&typeof l=="string",'addLinkAttributes: A valid "url" parameter must provided.');var le=(0,i.removeNullCharacters)(l);Q?F.href=F.title=le:(F.href="",F.title="Disabled: ".concat(le),F.onclick=function(){return!1});var ve="";switch(S){case H.NONE:break;case H.SELF:ve="_self";break;case H.BLANK:ve="_blank";break;case H.PARENT:ve="_parent";break;case H.TOP:ve="_top";break}F.target=ve,F.rel=typeof L=="string"?L:b}function E(F){for(var p=F.length,l=0;l<p&&F[l].trim()==="";)l++;return F.substring(l,l+5).toLowerCase()==="data:"}function g(F){return typeof F=="string"&&/\.pdf$/i.test(F)}function k(F){var p=F.indexOf("#"),l=F.indexOf("?"),S=Math.min(p>0?p:F.length,l>0?l:F.length);return F.substring(F.lastIndexOf("/",S)+1,S)}function M(F){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof F!="string")return p;if(E(F))return(0,i.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),p;var l=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,S=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,L=l.exec(F),j=S.exec(L[1])||S.exec(L[2])||S.exec(L[3]);if(j&&(j=j[0],j.includes("%")))try{j=S.exec(decodeURIComponent(j))[0]}catch{}return j||p}var q=function(){function F(){w(this,F),this.started=Object.create(null),this.times=[]}return O(F,[{key:"time",value:function(l){l in this.started&&(0,i.warn)("Timer is already running for ".concat(l)),this.started[l]=Date.now()}},{key:"timeEnd",value:function(l){l in this.started||(0,i.warn)("Timer has not been started for ".concat(l)),this.times.push({name:l,start:this.started[l],end:Date.now()}),delete this.started[l]}},{key:"toString",value:function(){var l=[],S=0,L=y(this.times),j;try{for(L.s();!(j=L.n()).done;){var Q=j.value,le=Q.name;le.length>S&&(S=le.length)}}catch(ke){L.e(ke)}finally{L.f()}var ve=y(this.times),ge;try{for(ve.s();!(ge=ve.n()).done;){var pe=ge.value,_e=pe.end-pe.start;l.push("".concat(pe.name.padEnd(S)," ").concat(_e,`ms
|
| 3 |
`))}}catch(ke){ve.e(ke)}finally{ve.f()}return l.join("")}}]),F}();n.StatTimer=q;function re(F,p){try{var l=p?new URL(F,p):new URL(F),S=l.protocol;return S==="http:"||S==="https:"}catch{return!1}}function X(F){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise(function(l,S){var L=document.createElement("script");L.src=F,L.onload=function(j){p&&L.remove(),l(j)},L.onerror=function(){S(new Error("Cannot load script at: ".concat(L.src)))},(document.head||document.documentElement).appendChild(L)})}function be(F){console.log("Deprecated API usage: "+F)}var Pe,we=function(){function F(){w(this,F)}return O(F,null,[{key:"toDateObject",value:function(l){if(!l||!(0,i.isString)(l))return null;Pe||(Pe=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var S=Pe.exec(l);if(!S)return null;var L=parseInt(S[1],10),j=parseInt(S[2],10);j=j>=1&&j<=12?j-1:0;var Q=parseInt(S[3],10);Q=Q>=1&&Q<=31?Q:1;var le=parseInt(S[4],10);le=le>=0&&le<=23?le:0;var ve=parseInt(S[5],10);ve=ve>=0&&ve<=59?ve:0;var ge=parseInt(S[6],10);ge=ge>=0&&ge<=59?ge:0;var pe=S[7]||"Z",_e=parseInt(S[8],10);_e=_e>=0&&_e<=23?_e:0;var ke=parseInt(S[9],10)||0;return ke=ke>=0&&ke<=59?ke:0,pe==="-"?(le+=_e,ve+=ke):pe==="+"&&(le-=_e,ve-=ke),new Date(Date.UTC(L,j,Q,le,ve,ge))}}]),F}();n.PDFDateString=we;function $(F,p){var l=p.scale,S=l===void 0?1:l,L=p.rotation,j=L===void 0?0:L,Q=F.attributes.style,le=Q.width,ve=Q.height,ge=[0,0,parseInt(le),parseInt(ve)];return new Z({viewBox:ge,scale:S,rotation:j})}},(o,n,e)=>{o.exports=e(3)},(o,n,e)=>{o=e.nmd(o);function t(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(i)}var a=function(i){var u=Object.prototype,c=u.hasOwnProperty,y,A=typeof Symbol=="function"?Symbol:{},I=A.iterator||"@@iterator",D=A.asyncIterator||"@@asyncIterator",U=A.toStringTag||"@@toStringTag";function w(g,k,M){return Object.defineProperty(g,k,{value:M,enumerable:!0,configurable:!0,writable:!0}),g[k]}try{w({},"")}catch{w=function(M,q,re){return M[q]=re}}function T(g,k,M,q){var re=k&&k.prototype instanceof d?k:d,X=Object.create(re.prototype),be=new H(q||[]);return X._invoke=V(g,M,be),X}i.wrap=T;function O(g,k,M){try{return{type:"normal",arg:g.call(k,M)}}catch(q){return{type:"throw",arg:q}}}var P="suspendedStart",B="suspendedYield",R="executing",W="completed",h={};function d(){}function f(){}function b(){}var m={};w(m,I,function(){return this});var v=Object.getPrototypeOf,_=v&&v(v(Y([])));_&&_!==u&&c.call(_,I)&&(m=_);var x=b.prototype=d.prototype=Object.create(m);f.prototype=b,w(x,"constructor",b),w(b,"constructor",f),f.displayName=w(b,U,"GeneratorFunction");function z(g){["next","throw","return"].forEach(function(k){w(g,k,function(M){return this._invoke(k,M)})})}i.isGeneratorFunction=function(g){var k=typeof g=="function"&&g.constructor;return k?k===f||(k.displayName||k.name)==="GeneratorFunction":!1},i.mark=function(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,b):(g.__proto__=b,w(g,U,"GeneratorFunction")),g.prototype=Object.create(x),g},i.awrap=function(g){return{__await:g}};function N(g,k){function M(X,be,Pe,we){var $=O(g[X],g,be);if($.type==="throw")we($.arg);else{var F=$.arg,p=F.value;return p&&t(p)==="object"&&c.call(p,"__await")?k.resolve(p.__await).then(function(l){M("next",l,Pe,we)},function(l){M("throw",l,Pe,we)}):k.resolve(p).then(function(l){F.value=l,Pe(F)},function(l){return M("throw",l,Pe,we)})}}var q;function re(X,be){function Pe(){return new k(function(we,$){M(X,be,we,$)})}return q=q?q.then(Pe,Pe):Pe()}this._invoke=re}z(N.prototype),w(N.prototype,D,function(){return this}),i.AsyncIterator=N,i.async=function(g,k,M,q,re){re===void 0&&(re=Promise);var X=new N(T(g,k,M,q),re);return i.isGeneratorFunction(k)?X:X.next().then(function(be){return be.done?be.value:X.next()})};function V(g,k,M){var q=P;return function(X,be){if(q===R)throw new Error("Generator is already running");if(q===W){if(X==="throw")throw be;return E()}for(M.method=X,M.arg=be;;){var Pe=M.delegate;if(Pe){var we=ee(Pe,M);if(we){if(we===h)continue;return we}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(q===P)throw q=W,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);q=R;var $=O(g,k,M);if($.type==="normal"){if(q=M.done?W:B,$.arg===h)continue;return{value:$.arg,done:M.done}}else $.type==="throw"&&(q=W,M.method="throw",M.arg=$.arg)}}}function ee(g,k){var M=g.iterator[k.method];if(M===y){if(k.delegate=null,k.method==="throw"){if(g.iterator.return&&(k.method="return",k.arg=y,ee(g,k),k.method==="throw"))return h;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var q=O(M,g.iterator,k.arg);if(q.type==="throw")return k.method="throw",k.arg=q.arg,k.delegate=null,h;var re=q.arg;if(!re)return k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,h;if(re.done)k[g.resultName]=re.value,k.next=g.nextLoc,k.method!=="return"&&(k.method="next",k.arg=y);else return re;return k.delegate=null,h}z(x),w(x,U,"Generator"),w(x,I,function(){return this}),w(x,"toString",function(){return"[object Generator]"});function Z(g){var k={tryLoc:g[0]};1 in g&&(k.catchLoc=g[1]),2 in g&&(k.finallyLoc=g[2],k.afterLoc=g[3]),this.tryEntries.push(k)}function ie(g){var k=g.completion||{};k.type="normal",delete k.arg,g.completion=k}function H(g){this.tryEntries=[{tryLoc:"root"}],g.forEach(Z,this),this.reset(!0)}i.keys=function(g){var k=[];for(var M in g)k.push(M);return k.reverse(),function q(){for(;k.length;){var re=k.pop();if(re in g)return q.value=re,q.done=!1,q}return q.done=!0,q}};function Y(g){if(g){var k=g[I];if(k)return k.call(g);if(typeof g.next=="function")return g;if(!isNaN(g.length)){var M=-1,q=function re(){for(;++M<g.length;)if(c.call(g,M))return re.value=g[M],re.done=!1,re;return re.value=y,re.done=!0,re};return q.next=q}}return{next:E}}i.values=Y;function E(){return{value:y,done:!0}}return H.prototype={constructor:H,reset:function(k){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(ie),!k)for(var M in this)M.charAt(0)==="t"&&c.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=y)},stop:function(){this.done=!0;var k=this.tryEntries[0],M=k.completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(k){if(this.done)throw k;var M=this;function q($,F){return be.type="throw",be.arg=k,M.next=$,F&&(M.method="next",M.arg=y),!!F}for(var re=this.tryEntries.length-1;re>=0;--re){var X=this.tryEntries[re],be=X.completion;if(X.tryLoc==="root")return q("end");if(X.tryLoc<=this.prev){var Pe=c.call(X,"catchLoc"),we=c.call(X,"finallyLoc");if(Pe&&we){if(this.prev<X.catchLoc)return q(X.catchLoc,!0);if(this.prev<X.finallyLoc)return q(X.finallyLoc)}else if(Pe){if(this.prev<X.catchLoc)return q(X.catchLoc,!0)}else if(we){if(this.prev<X.finallyLoc)return q(X.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(k,M){for(var q=this.tryEntries.length-1;q>=0;--q){var re=this.tryEntries[q];if(re.tryLoc<=this.prev&&c.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var X=re;break}}X&&(k==="break"||k==="continue")&&X.tryLoc<=M&&M<=X.finallyLoc&&(X=null);var be=X?X.completion:{};return be.type=k,be.arg=M,X?(this.method="next",this.next=X.finallyLoc,h):this.complete(be)},complete:function(k,M){if(k.type==="throw")throw k.arg;return k.type==="break"||k.type==="continue"?this.next=k.arg:k.type==="return"?(this.rval=this.arg=k.arg,this.method="return",this.next="end"):k.type==="normal"&&M&&(this.next=M),h},finish:function(k){for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M];if(q.finallyLoc===k)return this.complete(q.completion,q.afterLoc),ie(q),h}},catch:function(k){for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M];if(q.tryLoc===k){var re=q.completion;if(re.type==="throw"){var X=re.arg;ie(q)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(k,M,q){return this.delegate={iterator:Y(k),resultName:M,nextLoc:q},this.method==="next"&&(this.arg=y),h}},i}(t(o)==="object"?o.exports:{});try{regeneratorRuntime=a}catch{(typeof globalThis>"u"?"undefined":t(globalThis))==="object"?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},(o,n,e)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.VerbosityLevel=n.Util=n.UnknownErrorException=n.UnexpectedResponseException=n.UNSUPPORTED_FEATURES=n.TextRenderingMode=n.StreamType=n.RenderingIntentFlag=n.PermissionFlag=n.PasswordResponses=n.PasswordException=n.PageActionEventType=n.OPS=n.MissingPDFException=n.IsLittleEndianCached=n.IsEvalSupportedCached=n.InvalidPDFException=n.ImageKind=n.IDENTITY_MATRIX=n.FormatError=n.FontType=n.FONT_IDENTITY_MATRIX=n.DocumentActionEventType=n.CMapCompressionType=n.BaseException=n.AnnotationType=n.AnnotationStateModelType=n.AnnotationReviewState=n.AnnotationReplyType=n.AnnotationMode=n.AnnotationMarkedState=n.AnnotationFlag=n.AnnotationFieldFlag=n.AnnotationBorderStyleType=n.AnnotationActionEventType=n.AbortException=void 0,n.arrayByteLength=ce,n.arraysToBytes=Se,n.assert=ge,n.bytesToString=J,n.createObjectURL=wt,n.createPromiseCapability=_t,n.createValidAbsoluteUrl=ke,n.escapeString=Qe,n.getModificationDate=Yt,n.getVerbosityLevel=j,n.info=Q,n.isArrayBuffer=Ot,n.isArrayEqual=Ft,n.isAscii=rt,n.isBool=Tt,n.isNum=Xt,n.isSameOrigin=pe,n.isString=xt,n.objectFromMap=Le,n.objectSize=De,n.removeNullCharacters=ne,n.setVerbosityLevel=L,n.shadow=Ee,n.string32=Te,n.stringToBytes=he,n.stringToPDFString=Ye,n.stringToUTF16BEString=it,n.stringToUTF8String=gt,n.unreachable=ve,n.utf8StringToString=ht,n.warn=le,e(5);function t(ue,Re){for(var se=0;se<Re.length;se++){var ye=Re[se];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ue,ye.key,ye)}}function a(ue,Re,se){return Re&&t(ue.prototype,Re),se&&t(ue,se),ue}function i(ue){return y(ue)||c(ue)||T(ue)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
| 4 |
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(ue){if(typeof Symbol<"u"&&ue[Symbol.iterator]!=null||ue["@@iterator"]!=null)return Array.from(ue)}function y(ue){if(Array.isArray(ue))return O(ue)}function A(ue,Re){return U(ue)||D(ue,Re)||T(ue,Re)||I()}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
dist/assets/{jszip.min-1e75c168.js → jszip.min-73ee4b51.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import{g as St,c as _t,l as vt}from"./umi-
|
| 2 |
|
| 3 |
Use Save As... to download, then click back to return to this page.`)&&(location.href=E),!0;var O=document.createElement("iframe");document.body.appendChild(O),!P&&/^data:/.test(E)&&(E="data:"+E.replace(/^data:([\w\/\-\+]+)/,n)),O.src=E,setTimeout(function(){document.body.removeChild(O)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(r,d);if(o.URL)T(o.URL.createObjectURL(r),!0);else{if(typeof r=="string"||r.constructor===g)try{return T("data:"+h+";base64,"+o.btoa(r))}catch{return T("data:"+h+","+encodeURIComponent(r))}u=new FileReader,u.onload=function(E){T(this.result)},u.readAsDataURL(r)}return!0}})})(zt);var Bt=zt.exports;const Dt=St(Bt);var Ct={exports:{}};/*!
|
| 4 |
|
|
|
|
| 1 |
+
import{g as St,c as _t,l as vt}from"./umi-e07d95da.js";var zt={exports:{}};(function(yt,Et){(function(b,U){yt.exports=U()})(_t,function(){return function b(U,k,l){var o=window,n="application/octet-stream",h=l||n,m=U,v=!k&&!l&&m,p=document.createElement("a"),g=function(E){return String(E)},i=o.Blob||o.MozBlob||o.WebKitBlob||g,d=k||"download",r,u;if(i=i.call?i.bind(o):Blob,String(this)==="true"&&(m=[m,h],h=m[0],m=m[1]),v&&v.length<2048&&(d=v.split("/").pop().split("?")[0],p.href=v,p.href.indexOf(v)!==-1)){var a=new XMLHttpRequest;return a.open("GET",v,!0),a.responseType="blob",a.onload=function(E){b(E.target.response,d,n)},setTimeout(function(){a.send()},0),a}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(m))if(m.length>1024*1024*1.999&&i!==g)m=x(m),h=m.type||n;else return navigator.msSaveBlob?navigator.msSaveBlob(x(m),d):T(m);else if(/([\x80-\xff])/.test(m)){var c=0,y=new Uint8Array(m.length),S=y.length;for(c;c<S;++c)y[c]=m.charCodeAt(c);m=new i([y],{type:h})}r=m instanceof i?m:new i([m],{type:h});function x(E){var P=E.split(/[:;,]/),O=P[1],W=P[2]=="base64"?atob:decodeURIComponent,Y=W(P.pop()),_=Y.length,B=0,e=new Uint8Array(_);for(B;B<_;++B)e[B]=Y.charCodeAt(B);return new i([e],{type:O})}function T(E,P){if("download"in p)return p.href=E,p.setAttribute("download",d),p.className="download-js-link",p.innerHTML="downloading...",p.style.display="none",document.body.appendChild(p),setTimeout(function(){p.click(),document.body.removeChild(p),P===!0&&setTimeout(function(){o.URL.revokeObjectURL(p.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(E)&&(E="data:"+E.replace(/^data:([\w\/\-\+]+)/,n)),window.open(E)||confirm(`Displaying New Document
|
| 2 |
|
| 3 |
Use Save As... to download, then click back to return to this page.`)&&(location.href=E),!0;var O=document.createElement("iframe");document.body.appendChild(O),!P&&/^data:/.test(E)&&(E="data:"+E.replace(/^data:([\w\/\-\+]+)/,n)),O.src=E,setTimeout(function(){document.body.removeChild(O)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(r,d);if(o.URL)T(o.URL.createObjectURL(r),!0);else{if(typeof r=="string"||r.constructor===g)try{return T("data:"+h+";base64,"+o.btoa(r))}catch{return T("data:"+h+","+encodeURIComponent(r))}u=new FileReader,u.onload=function(E){T(this.result)},u.readAsDataURL(r)}return!0}})})(zt);var Bt=zt.exports;const Dt=St(Bt);var Ct={exports:{}};/*!
|
| 4 |
|
dist/assets/{processCompressedAESFile-8d6401c6.js → processCompressedAESFile-07545094.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/assets/solveStaffGroup.worker-41469644.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(function(){"use strict";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sylvester={};Sylvester.Matrix=function(){},Sylvester.Matrix.create=function(e){var t=new Sylvester.Matrix;return t.setElements(e)},Sylvester.Matrix.I=function(e){for(var t=[],i=e,s;i--;)for(s=e,t[i]=[];s--;)t[i][s]=i===s?1:0;return Sylvester.Matrix.create(t)},Sylvester.Matrix.prototype={dup:function(){return Sylvester.Matrix.create(this.elements)},isSquare:function(){var e=this.elements.length===0?0:this.elements[0].length;return this.elements.length===e},toRightTriangular:function(){if(this.elements.length===0)return Sylvester.Matrix.create([]);var e=this.dup(),t,i=this.elements.length,s,r,o=this.elements[0].length,n;for(s=0;s<i;s++){if(e.elements[s][s]===0){for(r=s+1;r<i;r++)if(e.elements[r][s]!==0){for(t=[],n=0;n<o;n++)t.push(e.elements[s][n]+e.elements[r][n]);e.elements[s]=t;break}}if(e.elements[s][s]!==0)for(r=s+1;r<i;r++){var h=e.elements[r][s]/e.elements[s][s];for(t=[],n=0;n<o;n++)t.push(n<=s?0:e.elements[r][n]-e.elements[s][n]*h);e.elements[r]=t}}return e},determinant:function(){if(this.elements.length===0)return 1;if(!this.isSquare())return null;for(var e=this.toRightTriangular(),t=e.elements[0][0],i=e.elements.length,s=1;s<i;s++)t=t*e.elements[s][s];return t},isSingular:function(){return this.isSquare()&&this.determinant()===0},augment:function(e){if(this.elements.length===0)return this.dup();var t=e.elements||e;typeof t[0][0]>"u"&&(t=Sylvester.Matrix.create(t).elements);var i=this.dup(),s=i.elements[0].length,r=i.elements.length,o=t[0].length,n;if(r!==t.length)return null;for(;r--;)for(n=o;n--;)i.elements[r][s+n]=t[r][n];return i},inverse:function(){if(this.elements.length===0||!this.isSquare()||this.isSingular())return null;for(var e=this.elements.length,t=e,i,s=this.augment(Sylvester.Matrix.I(e)).toRightTriangular(),r=s.elements[0].length,o,n,h,a=[],l;t--;){for(n=[],a[t]=[],h=s.elements[t][t],o=0;o<r;o++)l=s.elements[t][o]/h,n.push(l),o>=e&&a[t].push(l);for(s.elements[t]=n,i=t;i--;){for(n=[],o=0;o<r;o++)n.push(s.elements[i][o]-s.elements[t][o]*s.elements[i][t]);s.elements[i]=n}}return Sylvester.Matrix.create(a)},setElements:function(e){var t,i,s=e.elements||e;if(s[0]&&typeof s[0][0]<"u"){for(t=s.length,this.elements=[];t--;)for(i=s[t].length,this.elements[t]=[];i--;)this.elements[t][i]=s[t][i];return this}var r=s.length;for(this.elements=[],t=0;t<r;t++)this.elements.push([s[t]]);return this}};var matrixInverse=function(e){const t=Sylvester.Matrix.create(e).inverse();return t!==null?t.elements:null},matrixInverse$1=getDefaultExportFromCjs(matrixInverse),sha1={exports:{}};/*
|
| 2 |
+
* [js-sha1]{@link https://github.com/emn178/js-sha1}
|
| 3 |
+
*
|
| 4 |
+
* @version 0.6.0
|
| 5 |
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
| 6 |
+
* @copyright Chen, Yi-Cyuan 2014-2017
|
| 7 |
+
* @license MIT
|
| 8 |
+
*/(function(module){(function(){var root=typeof window=="object"?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS&&(root=commonjsGlobal);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&!0&&module.exports,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(s){return e.create().update(s)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createOutputMethod(i)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if(typeof e=="string")return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(e.length===void 0)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(e){if(!this.finalized){var t=typeof e!="string";t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));for(var i,s=0,r,o=e.length||0,n=this.blocks;s<o;){if(this.hashed&&(this.hashed=!1,n[0]=this.block,n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),t)for(r=this.start;s<o&&r<64;++s)n[r>>2]|=e[s]<<SHIFT[r++&3];else for(r=this.start;s<o&&r<64;++s)i=e.charCodeAt(s),i<128?n[r>>2]|=i<<SHIFT[r++&3]:i<2048?(n[r>>2]|=(192|i>>6)<<SHIFT[r++&3],n[r>>2]|=(128|i&63)<<SHIFT[r++&3]):i<55296||i>=57344?(n[r>>2]|=(224|i>>12)<<SHIFT[r++&3],n[r>>2]|=(128|i>>6&63)<<SHIFT[r++&3],n[r>>2]|=(128|i&63)<<SHIFT[r++&3]):(i=65536+((i&1023)<<10|e.charCodeAt(++s)&1023),n[r>>2]|=(240|i>>18)<<SHIFT[r++&3],n[r>>2]|=(128|i>>12&63)<<SHIFT[r++&3],n[r>>2]|=(128|i>>6&63)<<SHIFT[r++&3],n[r>>2]|=(128|i&63)<<SHIFT[r++&3]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.block=n[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e=this.h0,t=this.h1,i=this.h2,s=this.h3,r=this.h4,o,n,h,a=this.blocks;for(n=16;n<80;++n)h=a[n-3]^a[n-8]^a[n-14]^a[n-16],a[n]=h<<1|h>>>31;for(n=0;n<20;n+=5)o=t&i|~t&s,h=e<<5|e>>>27,r=h+o+r+1518500249+a[n]<<0,t=t<<30|t>>>2,o=e&t|~e&i,h=r<<5|r>>>27,s=h+o+s+1518500249+a[n+1]<<0,e=e<<30|e>>>2,o=r&e|~r&t,h=s<<5|s>>>27,i=h+o+i+1518500249+a[n+2]<<0,r=r<<30|r>>>2,o=s&r|~s&e,h=i<<5|i>>>27,t=h+o+t+1518500249+a[n+3]<<0,s=s<<30|s>>>2,o=i&s|~i&r,h=t<<5|t>>>27,e=h+o+e+1518500249+a[n+4]<<0,i=i<<30|i>>>2;for(;n<40;n+=5)o=t^i^s,h=e<<5|e>>>27,r=h+o+r+1859775393+a[n]<<0,t=t<<30|t>>>2,o=e^t^i,h=r<<5|r>>>27,s=h+o+s+1859775393+a[n+1]<<0,e=e<<30|e>>>2,o=r^e^t,h=s<<5|s>>>27,i=h+o+i+1859775393+a[n+2]<<0,r=r<<30|r>>>2,o=s^r^e,h=i<<5|i>>>27,t=h+o+t+1859775393+a[n+3]<<0,s=s<<30|s>>>2,o=i^s^r,h=t<<5|t>>>27,e=h+o+e+1859775393+a[n+4]<<0,i=i<<30|i>>>2;for(;n<60;n+=5)o=t&i|t&s|i&s,h=e<<5|e>>>27,r=h+o+r-1894007588+a[n]<<0,t=t<<30|t>>>2,o=e&t|e&i|t&i,h=r<<5|r>>>27,s=h+o+s-1894007588+a[n+1]<<0,e=e<<30|e>>>2,o=r&e|r&t|e&t,h=s<<5|s>>>27,i=h+o+i-1894007588+a[n+2]<<0,r=r<<30|r>>>2,o=s&r|s&e|r&e,h=i<<5|i>>>27,t=h+o+t-1894007588+a[n+3]<<0,s=s<<30|s>>>2,o=i&s|i&r|s&r,h=t<<5|t>>>27,e=h+o+e-1894007588+a[n+4]<<0,i=i<<30|i>>>2;for(;n<80;n+=5)o=t^i^s,h=e<<5|e>>>27,r=h+o+r-899497514+a[n]<<0,t=t<<30|t>>>2,o=e^t^i,h=r<<5|r>>>27,s=h+o+s-899497514+a[n+1]<<0,e=e<<30|e>>>2,o=r^e^t,h=s<<5|s>>>27,i=h+o+i-899497514+a[n+2]<<0,r=r<<30|r>>>2,o=s^r^e,h=i<<5|i>>>27,t=h+o+t-899497514+a[n+3]<<0,s=s<<30|s>>>2,o=i^s^r,h=t<<5|t>>>27,e=h+o+e-899497514+a[n+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+i<<0,this.h3=this.h3+s<<0,this.h4=this.h4+r<<0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,i=this.h2,s=this.h3,r=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,i=this.h2,s=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,i>>24&255,i>>16&255,i>>8&255,i&255,s>>24&255,s>>16&255,s>>8&255,s&255,r>>24&255,r>>16&255,r>>8&255,r&255]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var exports=createMethod();COMMON_JS?module.exports=exports:root.sha1=exports})()})(sha1);var SemanticType=(e=>(e.ClefG="ClefG",e.ClefF="ClefF",e.ClefC="ClefC",e.NoteheadS0="NoteheadS0",e.NoteheadS1="NoteheadS1",e.NoteheadS2="NoteheadS2",e.NoteheadS1stemU="NoteheadS1stemU",e.NoteheadS1stemD="NoteheadS1stemD",e.NoteheadS2stemU="NoteheadS2stemU",e.NoteheadS2stemD="NoteheadS2stemD",e.vline_Stem="vline_Stem",e.Flag3="Flag3",e.BeamLeft="BeamLeft",e.BeamContinue="BeamContinue",e.BeamRight="BeamRight",e.TremoloLeft="TremoloLeft",e.TremoloRight="TremoloRight",e.TremoloMiddle="TremoloMiddle",e.Dot="Dot",e.Rest0="Rest0",e.Rest1="Rest1",e.Rest2="Rest2",e.Rest3="Rest3",e.Rest4="Rest4",e.Rest5="Rest5",e.Rest6="Rest6",e.Rest0W="Rest0W",e.RestM1="RestM1",e.AccNatural="AccNatural",e.AccSharp="AccSharp",e.AccDoublesharp="AccDoublesharp",e.AccFlat="AccFlat",e.AccFlatflat="AccFlatflat",e.vline_VoltaLeft="vline_VoltaLeft",e.vline_VoltaRight="vline_VoltaRight",e.VoltaLeft="VoltaLeft",e.VoltaRight="VoltaRight",e.VoltaAlternativeBegin="VoltaAlternativeBegin",e.BarMeasure="BarMeasure",e.vline_BarMeasure="vline_BarMeasure",e.vline_BarTerminal="vline_BarTerminal",e.vline_BarSegment="vline_BarSegment",e.SlurBegin="SlurBegin",e.SlurEnd="SlurEnd",e.TimesigC44="TimesigC44",e.TimesigC22="TimesigC22",e.TimesigZero="TimesigZero",e.TimesigOne="TimesigOne",e.TimesigTwo="TimesigTwo",e.TimesigThree="TimesigThree",e.TimesigFour="TimesigFour",e.TimesigFive="TimesigFive",e.TimesigSix="TimesigSix",e.TimesigSeven="TimesigSeven",e.TimesigEight="TimesigEight",e.TimesigNine="TimesigNine",e.OctaveShift8va="OctaveShift8va",e.OctaveShift8vb="OctaveShift8vb",e.OctaveShift8="OctaveShift8",e.OctaveShift0="OctaveShift0",e.Zero="Zero",e.One="One",e.Two="Two",e.Three="Three",e.Four="Four",e.Five="Five",e.Six="Six",e.Seven="Seven",e.Eight="Eight",e.Nine="Nine",e.f="f",e.p="p",e.m="m",e.n="n",e.r="r",e.s="s",e.z="z",e.CrescendoBegin="CrescendoBegin",e.CrescendoEnd="CrescendoEnd",e.DecrescendoBegin="DecrescendoBegin",e.DecrescendoEnd="DecrescendoEnd",e.ScriptFermata="ScriptFermata",e.ScriptShortFermata="ScriptShortFermata",e.ScriptSforzato="ScriptSforzato",e.ScriptStaccato="ScriptStaccato",e.ScriptStaccatissimo="ScriptStaccatissimo",e.ScriptTurn="ScriptTurn",e.ScriptTrill="ScriptTrill",e.ScriptSegno="ScriptSegno",e.ScriptCoda="ScriptCoda",e.ScriptArpeggio="ScriptArpeggio",e.ScriptPrall="ScriptPrall",e.ScriptMordent="ScriptMordent",e.ScriptMarcato="ScriptMarcato",e.ScriptTenuto="ScriptTenuto",e.ScriptPortato="ScriptPortato",e.PedalStar="PedalStar",e.PedalPed="PedalPed",e.KeyAcc="KeyAcc",e.TempoNotehead="TempoNotehead",e.GraceNotehead="GraceNotehead",e.SignLined="SignLined",e.SignInterval="SignInterval",e.rect_Text="rect_Text",e.rect_Lyric="rect_Lyric",e))(SemanticType||{});const st=SemanticType;st.NoteheadS0,st.NoteheadS1,st.NoteheadS2,st.Zero,st.One,st.Two,st.Three,st.Four,st.Five,st.Six,st.Seven,st.Eight,st.Nine,st.ScriptStaccatissimo,st.TimesigZero,st.TimesigOne,st.TimesigTwo,st.TimesigThree,st.TimesigFour,st.TimesigFive,st.TimesigSix,st.TimesigSeven,st.TimesigEight,st.TimesigNine,st.Rest0,st.Rest1,st.Rest2,st.Rest3,st.Rest4,st.Rest5,st.Rest6,st.Rest0W,st.RestM1,st.SignInterval,st.SignLined,st.BeamLeft,st.BeamContinue,st.BeamRight,st.ClefG,st.ClefF,st.ClefC,st.NoteheadS0,st.NoteheadS1,st.NoteheadS2,st.Dot,st.Rest0,st.Rest1,st.Rest2,st.Rest3,st.Rest4,st.Rest5,st.Rest6,st.RestM1,st.AccNatural,st.AccSharp,st.AccDoublesharp,st.AccFlat,st.AccFlatflat,st.TimesigC44,st.TimesigC22,st.TimesigZero,st.TimesigOne,st.TimesigTwo,st.TimesigThree,st.TimesigFour,st.TimesigFive,st.TimesigSix,st.TimesigSeven,st.TimesigEight,st.TimesigNine,st.One,st.Two,st.Three,st.Four,st.Five,st.OctaveShift8,st.OctaveShift0,st.f,st.p,st.m,st.n,st.r,st.s,st.z,st.ScriptFermata,st.ScriptShortFermata,st.ScriptSforzato,st.ScriptStaccato,st.ScriptStaccatissimo,st.ScriptTurn,st.ScriptTrill,st.ScriptSegno,st.ScriptCoda,st.ScriptArpeggio,st.ScriptPrall,st.ScriptMordent,st.ScriptMarcato,st.ScriptTenuto,st.ScriptPortato,st.PedalStar,st.PedalPed;const roundNumber=(e,t,i=-1/0)=>Math.max(Math.round(e/t)*t,i),gcd=(e,t)=>Number.isInteger(e)&&Number.isInteger(t)?t===0?e:gcd(t,e%t):(console.error("non-integer gcd:",e,t),1),frac=(e,t)=>({numerator:e,denominator:t}),reducedFraction=(e,t)=>{e=Math.round(e),t=Math.round(t);const i=e!==0?gcd(e,t):t;return frac(e/i,t/i)},fractionMul=(e,t)=>t?e*t.numerator/t.denominator:e;class DummyLogger{debug(...t){}group(...t){}groupCollapsed(...t){}groupEnd(){}info(...t){}warn(...t){}assert(...t){}}const EOM=-1,GREAT_NUMBER=1920,DURATION_MULTIPLIER=128*3*5*7*11*13,floatToFrac=e=>{const t=Math.round(e*GREAT_NUMBER);return reducedFraction(t,GREAT_NUMBER)},floatToTimeWarp=e=>e===1?null:floatToFrac(e);class Action{type;e1;e2;constructor(t){Object.assign(this,t)}static P(t){return new Action({type:0,e1:t})}static V(t,i,s=1){return new Action({type:1,e1:s>0?t:i,e2:s>0?i:t})}static H(t,i){return new Action({type:2,e1:t,e2:i})}get id(){switch(this.type){case 0:return this.e1.toString();case 1:return`${this.e1}|${this.e2}`;case 2:return`${this.e1}-${this.e2>=0?this.e2:"."}`}}get events(){return[this.e1,this.e2].filter(Number.isFinite)}}class StageMatrix{matrix;static fromNode(t,i){const s=Array(t.stages.length).fill(null).map(()=>Array(t.stages.length).fill(null).map(()=>new Set));t.actions.filter(l=>l.type===2).forEach(l=>{const u=t.stages.findIndex(d=>d.events.includes(l.e1)),v=t.stages.findIndex(d=>d.events.includes(l.e2));console.assert(u>=0&&v>=0,"invalid stages for H action:",t.id,t.stages,l),s[u][v].add(l.e1)}),s[0][t.stages.length-1].add(0);const r=t.stagedEvents,o=i.matrixH[i.matrixH.length-1].filter((l,u)=>!r.has(u)),n=Math.max(0,Math.max(...o)-.01),h=t.actions.filter(l=>l.type===2),a=Object.keys(i.eventMap).map(Number).filter(l=>!h.find(u=>u.e2===l));return t.stages.forEach(l=>{l.events.forEach(u=>{u>0&&!h.find(d=>d.e1===u)&&i.matrixH[i.matrixH.length-1][u]>=n&&(a.some(d=>i.matrixH[d][u]>0)||s[l.index][t.stages.length-1].add(u))})}),new StageMatrix({matrix:s})}constructor(t){Object.assign(this,t)}pathOf(t,i,s,r=0){if(this.matrix[t][i].size){const o=[...this.matrix[t][i]][r];if(i===s)return[o];for(let n=i+1;n<=s;++n){const h=this.pathOf(i,n,s);if(h)return[o,...h]}}return null}findDoublePath(t,i){const s=[];for(let r=i;r>=t+1;--r)for(let o=0;o<this.matrix[t][r].size;++o){const n=this.pathOf(t,r,i,o);if(n&&(s.push(n),s.length===2))return[s[0],s[1]]}return null}reducePath(t){this.matrix.forEach(i=>i.forEach(s=>t.forEach(r=>s.delete(r))))}toEquations(t){const i=[];for(let s=1;s<this.matrix.length;s++)for(let r=0;r<this.matrix.length-s;r++){const o=r+s;for(;;){const n=this.findDoublePath(r,o);if(n){const[h,a]=n,l=Array(t).fill(0);h.forEach(u=>l[u]=1),a.forEach(u=>l[u]=-1),i.push(l),this.reducePath(h.length>a.length?h:a)}else break}}return i}}class PathNode{logger;parent;action;possibility;children;stages;constraints;constructor(t){Object.assign(this,t),console.assert(this.logger,"logger is null:",t)}get actions(){const t=this.parent?this.parent.actions:[];return this.action?[...t,this.action]:t}get id(){return this.actions.map(i=>i.id).sort().join(" ")}get stagedEvents(){const t=new Set;return this.stages&&this.stages.forEach(i=>i.events.forEach(s=>s>=0&&t.add(s))),t}like(t){return t.split(" ").sort().join(" ")===this.id}constructStages(t){this.stages=[{events:[EOM]}];for(const i of this.actions)switch(i.type){case 0:this.stages.unshift({events:[i.e1]});break;case 1:{const s=this.stages.find(o=>o.events.includes(i.e1)),r=this.stages.find(o=>o.events.includes(i.e2));console.assert(s||r,"invalid V action:",this.stages,i),s&&r?(s.events.push(...r.events),r.events=null,this.stages=this.stages.filter(o=>o.events)):s?r||s.events.push(i.e2):r.events.unshift(i.e1)}break;case 2:{const s=this.stages.find(n=>n.events.includes(i.e1)),r=this.stages.find(n=>n.events.includes(i.e2));console.assert(s||r,"invalid H action:",this.stages,i);const o=n=>{console.assert(t.eventMap[n],"invalid event id:",i.id,n,t.eventMap);const h=t.eventMap[n].x,a=this.stages.find(l=>l.events.some(u=>u>0&&t.eventMap[u].x<=h)&&l.events.some(u=>u>0&&t.eventMap[u].x>=h));if(a)a.events.push(n);else{const l={events:[n]},u=this.stages.findIndex(v=>v.events[0]===EOM||t.eventMap[v.events[0]].x>=h);this.stages.splice(u,0,l)}};s||o(i.e1),r||o(i.e2)}break}this.stages.forEach((i,s)=>i.index=s)}constructConstraints(t){const i=Object.keys(t.eventMap).length,r=StageMatrix.fromNode(this,t).toEquations(i),o=Array(i).fill(null).map((n,h)=>t.eventMap[h].duration);this.constraints=r.map(n=>n.map((h,a)=>h*o[a]))}inbalancesConstraints(t){console.assert(this.constraints,"constraints not constructed.");const i=Object.keys(t.eventMap).length,s=Array(i).fill(!0),r=Array(i).fill(!1),o=[];for(const n of this.constraints){const h=n.reduce((a,l)=>a+l,0);if(h!==0){const a=h<0?n.map(l=>-l):n;if(a[0]>0)continue;o.push(a),a.forEach((l,u)=>{r[u]=r[u]||l<0,l&&(s[u]=l<0||r[u])})}}return this.constraints.forEach(n=>{n.reduce((a,l)=>a+l,0)===0&&!n[0]&&n.some((a,l)=>a&&!s[l])&&(n.forEach((a,l)=>a&&(s[l]=!1)),o.push(n))}),{ones:s,inbalances:o}}solveEquations({ones:t,inbalances:i}){if(!i.length)return t.map(()=>1);const s=t.map((c,g)=>({fixed:c,i:g})).filter(({fixed:c})=>!c).map(({i:c})=>c).filter(c=>i.some(g=>g[c]!==0));if(!s.length)return t.map(()=>1);const r=s.map(c=>Math.abs(i.find(g=>g[c]!==0)[c])),o=new Map;let n=!1;const h=i.map(c=>{const g=c.filter((m,S)=>s.includes(S)),p=-c.reduce((m,S,F)=>m+(s.includes(F)?0:S),0);return{line:g,bias:p}}).filter(({line:c,bias:g})=>{if(c.every(m=>m===0))return!1;const p=c.join(",");return o.has(p)?(n=o.get(p)!==g,!1):(o.set(p,g),!0)});if(n)return null;const a=h.slice(0,s.length),l=h.slice(s.length);if(a.length<s.length){const c=[];for(let g=0;g<s.length-1;++g){const p=g+1,m={line:s.map((S,F)=>F===g?1:F===p?-1:0),bias:0,prior:(r[g]+r[p])/DURATION_MULTIPLIER};a.some(S=>S.line[g]&&S.line[p])&&(m.prior-=10),a.some(S=>S.line.filter(Number).length===1&&(S.line[g]||S.line[p]))&&(m.prior+=1),c.push(m)}c.sort((g,p)=>g.prior-p.prior),a.push(...c.slice(0,s.length-a.length))}const u=a.map(({line:c})=>c),v=a.map(({bias:c})=>c),d=matrixInverse$1(u);if(!d)return this.logger.warn("null invert:",u),null;const x=d.map(c=>c.reduce((g,p,m)=>g+p*v[m],0));if(l.length&&l.some(c=>Math.abs(c.line.reduce((g,p,m)=>g+p*x[m],0))>.001))return null;const f=t.map(()=>1);return s.forEach((c,g)=>f[c]=x[g]),f}optimallySolve(t){const{ones:i,inbalances:s}=this.inbalancesConstraints(t),o=i.map((h,a)=>h?-1:roundNumber(t.eventMap[a].shrinkness,.01)).reduce((h,a,l)=>(a>=0&&(h[a]=h[a]||[],h[a].push(l)),h),{}),n=Object.entries(o).sort((h,a)=>Number(a[0])-Number(h[0])).map(h=>h[1]);for(let h=1;h<n.length;++h){const a=[].concat(...n.slice(0,h)),l=i.map((v,d)=>!a.includes(d)),u=this.solveEquations({ones:l,inbalances:s});if(u&&u.every((v,d)=>v<=1&&v>t.eventMap[d].lowWarp))return u}return this.solveEquations({ones:i,inbalances:s})}isConflicted(t){const{ones:i,inbalances:s}=this.inbalancesConstraints(t);for(const o of s)if(o.reduce((h,a,l)=>h+a*(i[l]||a<=0?1:t.eventMap[l].lowWarp),0)>=0)return o.forEach((h,a)=>{h&&(t.eventTendencies[a]+=h>0?1:-1)}),!0;if(!s.length)return!1;const r=this.solveEquations({ones:i,inbalances:s});return r?!r.every((o,n)=>o>t.eventMap[n].lowWarp&&o<=1):!0}getSolution(t){const i=f=>t.eventMap[f.e2]?t.eventMap[f.e2].x+Math.abs(t.eventMap[f.e2].x-t.eventMap[f.e1].x)*.06:t.eventMap[f.e1].x+1e4,s=this.actions.filter(f=>f.type===2).sort((f,c)=>i(f)-i(c)),r=s.reduce((f,c)=>({...f,[c.e1]:c.e2}),{}),o=new Set([...Object.keys(r)].map(Number));s.forEach(f=>o.delete(f.e2)),this.stages[0].events.forEach(f=>f>0&&o.add(f));let n=[...o].map(f=>{const c=[f];let g=f;for(;r[g]&&(g=r[g],!(g<0||c.includes(g)));)c.push(g);return c});const h=Object.values(t.eventMap).filter(f=>f.id>0).map(f=>({id:f.id,tick:null,endTick:null,tickGroup:null,timeWarp:null})),a=h.filter(f=>n.some(c=>c.includes(f.id))||s.some(c=>[c.e1,c.e2].includes(f.id))).reduce((f,c)=>({...f,[c.id]:c}),{});this.stages.forEach((f,c)=>f.events.forEach(g=>a[g]&&(a[g].tickGroup=c))),this.stages[0].tick=0,this.stages[0].events.forEach(f=>a[f]&&(a[f].tick=0));const l=this.optimallySolve(t);h.forEach(f=>f.timeWarp=floatToTimeWarp(l[f.id]));const u=this.stages.slice(0,this.stages.length-1),v=()=>{if(u.every(c=>Number.isFinite(c.tick)))return!1;let f=!1;return s.forEach(c=>{const g=this.stages.find(m=>m.events.includes(c.e1)),p=this.stages.find(m=>m.events.includes(c.e2));Number.isFinite(g.tick)&&!Number.isFinite(p.tick)&&(p.tick=g.tick+fractionMul(t.eventMap[c.e1].duration,a[c.e1].timeWarp),p.events.forEach(m=>a[m]&&(a[m].tick=p.tick)),f=!0)}),[...s].reverse().forEach(c=>{const g=this.stages.find(m=>m.events.includes(c.e1)),p=this.stages.find(m=>m.events.includes(c.e2));!Number.isFinite(g.tick)&&Number.isFinite(p.tick)&&(g.tick=p.tick-fractionMul(t.eventMap[c.e1].duration,a[c.e1].timeWarp),g.events.forEach(m=>a[m]&&(a[m].tick=g.tick)),f=!0)}),f};for(;v(););console.assert(u.every(f=>Number.isFinite(f.tick)),"stage ticks not all solved:",this.stages,this.id),h.filter(f=>Number.isFinite(f.tick)).forEach(f=>f.endTick=f.tick+fractionMul(t.eventMap[f.id].duration,f.timeWarp));const d=t.eventMap[0].duration;n.forEach(f=>{const c=f.findIndex(g=>a[g].endTick>d);c>=0&&f.splice(c,f.length-c).forEach(p=>{a[p].tick=null,a[p].endTick=null})}),n=n.filter(f=>f.length);const x=Math.max(0,...h.map(f=>f.endTick).filter(Number.isFinite));return this.logger.debug(String.fromCodePoint(127822),this.id,l),{voices:n,events:h,duration:x,actions:this.actions.map(f=>f.id).join(" ")}}deduce(t,i){this.stages||this.constructStages(t);const s=t.actionAccessing.get(this.id)||{times:0};if(++s.times,t.actionAccessing.set(this.id,s),this.constructConstraints(t),this.isConflicted(t))return s.closed=!0,this.logger.info(this.action.id,"❌"),null;if(this.logger.group(this.action&&this.action.id),i.credits>0){if(--i.credits,this.children||this.expand(t),this.children=this.children.filter(r=>!t.actionAccessing.get(r.id)||!t.actionAccessing.get(r.id).closed),this.children.length){const r=o=>o.possibility/((t.actionAccessing.get(o.id)||{times:0}).times+1);this.children.sort((o,n)=>r(n)-r(o));for(const o of this.children){const n=o.deduce(t,i);if(n)return this.logger.groupEnd(),n;if(i.credits<=0)break}}}else this.logger.debug("quota exhausted.");return this.logger.groupEnd(),s.closed=!0,this.getSolution(t)}expand(t){this.constructStages(t);const{eventMap:i,matrixV:s,matrixH:r}=t,o=this.stagedEvents,n=[],h=a=>{if(!this.actions.some(l=>l.id===a.action.id)&&!n.some(l=>l.action.id===a.action.id)){const l=this.stages.find(v=>v.events.includes(a.action.e1)),u=this.stages.find(v=>v.events.includes(a.action.e2));if(l===u||l&&u&&l.index>=u.index)return;if(l&&u){if(a.action.type===1){if(u.index-l.index>1||this.actions.some(v=>l.events.includes(v.e1)&&u.events.includes(v.e2)))return}else if(a.action.type===2&&l.index>u.index)return}if(a.action.type===2&&this.actions.some(v=>v.type===2&&(v.e1===a.action.e1||v.e2===a.action.e2||v.e1===a.action.e2&&v.e2===a.action.e1))||a.action.type===1&&(l&&(a.possibility=Math.min(a.possibility,...l.events.map(v=>s[a.action.e2][v])),a.possibility<=0)||u&&(a.possibility=Math.min(a.possibility,...u.events.map(v=>s[v][a.action.e1])),a.possibility<=0)))return;n.push(a)}};for(const a of o)a<0||(s[a].forEach((l,u)=>{l>0&&a!==u&&h({action:Action.V(u,a),possibility:l})}),s.forEach((l,u)=>{const v=l[a];v>0&&h({action:Action.V(a,u),possibility:v})}),r[a].forEach((l,u)=>{l>0&&h({action:Action.H(u,a),possibility:l})}),r.forEach((l,u)=>{u=u>=Object.keys(i).length?-1:u;const v=l[a];v>0&&h({action:Action.H(a,u),possibility:v})}));if(!n.some(a=>[2,0].includes(a.action.type)||!o.has(a.action.e1)||!o.has(a.action.e2))){this.children=[];return}this.children=n.map(a=>new PathNode({logger:this.logger,parent:this,...a}))}}class Solver{quota;logger;events;matrixH;matrixV;xSpan;eventMap;actionAccessing;pathRoot;constructor(t,{quota:i=1e3,logger:s=new DummyLogger}={}){this.quota=i,this.logger=s;const r={id:0,x:0,confidence:1,shrinkness:t.measureShrinkness,duration:t.expectedDuration,lowWarp:0};this.events=[r,...t.events.map(o=>({id:o.id,x:o.x,confidence:o.confidence,shrinkness:o.shrinkness,staff:o.staff,duration:o.duration,lowWarp:.5}))],this.eventMap=this.events.reduce((o,n)=>({...o,[n.id]:n}),{}),this.matrixH=t.matrixH,this.matrixV=t.matrixV,this.xSpan=t.endX-Math.min(t.endX-1,...t.events.map(o=>o.x)),this.actionAccessing=new Map}solve(){this.pathRoot=new PathNode({logger:this.logger,action:null}),this.pathRoot.children=this.events.slice(1).map(r=>new PathNode({logger:this.logger,parent:this.pathRoot,action:Action.P(r.id),possibility:this.matrixV[r.id].reduce((o,n)=>o+n,0)}));let t=null;this.logger.groupCollapsed("solve");const i=Array(this.events.length).fill(0),s={credits:this.quota,times:0};for(;s.credits>0;){++s.times;const r={eventMap:this.eventMap,matrixH:this.matrixH,matrixV:this.matrixV,actionAccessing:this.actionAccessing,eventTendencies:i},o=this.pathRoot.deduce(r,s);if(o.credits=this.quota-s.credits,o.times=s.times,this.evaluateSolution(o),this.logger.debug("loss:",o.loss),t=!t||o.loss<t.loss?o:t,!t.loss||this.actionAccessing.get("").closed)break}return this.logger.groupEnd(),this.logger.debug("solution",t&&t.loss,t),this.logger.debug("cost:",this.quota-s.credits),this.logger.debug("eventTendencies:",i.map(r=>r/s.times)),t}evaluateSolution(t){t.loss=0;const i=t.events.reduce((d,x)=>({...d,[x.id]:{...x,...this.eventMap[x.id]}}),{}),s=t.events.filter(d=>Number.isFinite(d.tick)).map(d=>i[d.id]),r=s.reduce((d,x)=>(d[x.staff]=d[x.staff]||[],d[x.staff].push(x),d),{});Object.values(r).forEach(d=>{d.sort((f,c)=>f.x-c.x).slice(0,d.length-1).forEach((f,c)=>{d[c+1].tick<f.tick&&(t.loss+=1e3)})});const o=new Map;t.events.forEach(d=>{if((!Number.isFinite(d.tick)||t.voices.every(x=>!x.includes(d.id)))&&(t.loss+=100*i[d.id].confidence),d.timeWarp){const{numerator:x,denominator:f}=d.timeWarp,c=i[d.id].shrinkness;o.set(x,Math.max(o.get(x)||0,1-c)),o.set(f,Math.max(o.get(f)||0,1-c))}});const n=reducedFraction(t.duration,this.eventMap[0].duration);o.set(n.numerator,Math.max(o.get(n.numerator)||0,1-this.eventMap[0].shrinkness)),o.set(n.denominator,Math.max(o.get(n.denominator)||0,1-this.eventMap[0].shrinkness));for(const[d,x]of o.entries())d>1&&(t.loss+=Math.log(d)*x);let h=0,a=0;t.voices.forEach(d=>{console.assert(i[d[0]],"invalid voice:",d,Object.keys(i));const x=Math.abs(i[d[0]].tick),f=i[d[d.length-1]].endTick;h+=Math.max(0,x+t.duration-f);let c=null;d.forEach(g=>{const p=i[g];p.staff!==c&&(c!==null&&++a,c=p.staff)})}),t.loss+=h*10/DURATION_MULTIPLIER,t.loss+=5**a-1;const l=[...s].sort((d,x)=>d.x-x.x),u=l.slice(1).map((d,x)=>{const f=l[x],c=d.x-f.x,g=d.tick-f.tick;return g?(Math.atan2(g/t.duration,c/this.xSpan)*4/Math.PI-1)**2:c/this.xSpan}),v=Math.max(...u,0);t.loss+=v**2,console.assert(t.loss>=0,"Invalid solution loss!!!",t.loss,o,h,a),t.loss<0&&(t.loss=1/0)}}const solveStaffGroup=(e,t)=>e.events.length?new Solver(e,t).solve():{events:[],voices:[],duration:0};self.onmessage=e=>{const{id:t,args:i}=e.data;try{const s=solveStaffGroup(i[0],i[1]);self.postMessage({id:t,result:s})}catch(s){self.postMessage({id:t,error:s.message})}}})();
|
dist/assets/{umi-a7f55986.js → umi-e07d95da.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/assets/{useAsync-58b75860.js → useAsync-139a6ea8.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as c}from"./umi-
|
|
|
|
| 1 |
+
import{r as c}from"./umi-e07d95da.js";import{f}from"./_setToString-5e7d8f22.js";function e(o,r){r===void 0&&(r=[]);var t=f(o,r,{loading:!0}),n=t[0],a=t[1];return c.useEffect(function(){a()},[a]),n}export{e as u};
|
dist/assets/{useDebounce-15fcfd16.js → useDebounce-f1604c2b.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/assets/{useIntersection-410a4d5c.js → useIntersection-c0d72ee4.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{r as u}from"./umi-
|
|
|
|
| 1 |
+
import{r as u}from"./umi-e07d95da.js";var a=function(e,r){var t=u.useState(null),o=t[0],n=t[1];return u.useEffect(function(){if(e.current&&typeof IntersectionObserver=="function"){var s=function(i){n(i[0])},c=new IntersectionObserver(s,r);return c.observe(e.current),function(){n(null),c.disconnect()}}return function(){}},[e.current,r.threshold,r.root,r.rootMargin]),o};const v=a;export{v as u};
|
dist/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
| 7 |
<title>STARRY</title>
|
| 8 |
<script async src="/opencv.js"></script>
|
| 9 |
-
<script type="module" crossorigin src="/assets/umi-
|
| 10 |
<link rel="stylesheet" href="/assets/umi-cc99a795.css">
|
| 11 |
</head>
|
| 12 |
<body>
|
|
|
|
| 6 |
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
| 7 |
<title>STARRY</title>
|
| 8 |
<script async src="/opencv.js"></script>
|
| 9 |
+
<script type="module" crossorigin src="/assets/umi-e07d95da.js"></script>
|
| 10 |
<link rel="stylesheet" href="/assets/umi-cc99a795.css">
|
| 11 |
</head>
|
| 12 |
<body>
|