function __vite_legacy_guard(){import.meta.url,import("_").catch(()=>1);async function*d(){}}(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const w of document.querySelectorAll('link[rel="modulepreload"]'))C(w);new MutationObserver(w=>{for(const A of w)if(A.type==="childList")for(const S of A.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&C(S)}).observe(document,{childList:!0,subtree:!0});function x(w){const A={};return w.integrity&&(A.integrity=w.integrity),w.referrerPolicy&&(A.referrerPolicy=w.referrerPolicy),w.crossOrigin==="use-credentials"?A.credentials="include":w.crossOrigin==="anonymous"?A.credentials="omit":A.credentials="same-origin",A}function C(w){if(w.ep)return;w.ep=!0;const A=x(w);fetch(w.href,A)}})();const Lato="",FiraCode="",index$1="",common$1="",icon$1="",ripple="",popup="",actionSheet="",ActionSheetSfc="",elevation="",appBar="",AppBarSfc="",avatar="",AvatarSfc="",avatarGroup="",AvatarGroupSfc="",button="",backTop="",BackTopSfc="",badge="",BadgeSfc="",loading$1="",bottomNavigation="",BottomNavigationSfc="",bottomNavigationItem="",BottomNavigationItemSfc="",breadcrumb="",BreadcrumbSfc="",breadcrumbs="",BreadcrumbsSfc="",hoverOverlay="",ButtonSfc="",buttonGroup="",ButtonGroupSfc="",card="",CardSfc="",cell="",CellSfc="",formDetails="",checkbox="",CheckboxSfc="",checkboxGroup="",CheckboxGroupSfc="",chip="",ChipSfc="",col="",ColSfc="",CollapseSfc="",collapseItem="",CollapseItemSfc="",countdown="",CountdownSfc="",counter="",CounterSfc="",datePicker="",DatePickerSfc="",dialog="",DialogSfc="",divider="",DividerSfc="",drag="",DragSfc="",tooltip="",ellipsis="",EllipsisSfc="",fab="",FormSfc="",FormDetailsSfc="",HoverOverlaySfc="",IconSfc="",image="",ImageSfc="",swipe="",swipeItem="",imagePreview="",ImagePreviewSfc="",sticky="",IndexAnchorSfc="",indexBar="",IndexBarSfc="",fieldDecorator="",input="",InputSfc="",link="",LinkSfc="",list="",ListSfc="",LoadingSfc="",loadingBar="",menu="",MenuSfc="",select="",option="",OptionSfc="",overlay$2="",pagination="",PaginationSfc="",paper="",PaperSfc="",picker="",PickerSfc="",progress="",ProgressSfc="",pullRefresh="",PullRefreshSfc="",radio="",RadioSfc="",radioGroup="",RadioGroupSfc="",rate="",RateSfc="",result="",ResultSfc="",row="",RowSfc="",SelectSfc="",skeleton="",SkeletonSfc="",slider="",SliderSfc="",SnackbarSfc="",snackbar="",coreSfc="",space="",step="",StepSfc="",StepsSfc="",StickySfc="",StyleProviderSfc="",SwipeSfc="",SwipeItemSfc="",_switch="",SwitchSfc="",tab="",TabSfc="",tabItem="",TabItemSfc="",table$1="",TableSfc="",tabs="",TabsSfc="",TabsItemsSfc="",timePicker="",TimePickerSfc="",TooltipSfc="",uploader="",UploaderSfc="",theme="";function makeMap(d,b){const x=Object.create(null),C=d.split(",");for(let w=0;w!!x[w.toLowerCase()]:w=>!!x[w]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=d=>onRE.test(d),isModelListener=d=>d.startsWith("onUpdate:"),extend$2=Object.assign,remove$6=(d,b)=>{const x=d.indexOf(b);x>-1&&d.splice(x,1)},hasOwnProperty$f=Object.prototype.hasOwnProperty,hasOwn$2=(d,b)=>hasOwnProperty$f.call(d,b),isArray$9=Array.isArray,isMap$1=d=>toTypeString(d)==="[object Map]",isSet$1=d=>toTypeString(d)==="[object Set]",isFunction$5=d=>typeof d=="function",isString$2=d=>typeof d=="string",isSymbol$2=d=>typeof d=="symbol",isObject$6=d=>d!==null&&typeof d=="object",isPromise$1=d=>isObject$6(d)&&isFunction$5(d.then)&&isFunction$5(d.catch),objectToString$3=Object.prototype.toString,toTypeString=d=>objectToString$3.call(d),toRawType=d=>toTypeString(d).slice(8,-1),isPlainObject$3=d=>toTypeString(d)==="[object Object]",isIntegerKey=d=>isString$2(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=d=>{const b=Object.create(null);return x=>b[x]||(b[x]=d(x))},camelizeRE$1=/-(\w)/g,camelize$1=cacheStringFunction(d=>d.replace(camelizeRE$1,(b,x)=>x?x.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(d=>d.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(d=>d.charAt(0).toUpperCase()+d.slice(1)),toHandlerKey=cacheStringFunction(d=>d?"on".concat(capitalize(d)):""),hasChanged=(d,b)=>!Object.is(d,b),invokeArrayFns=(d,b)=>{for(let x=0;x{Object.defineProperty(d,b,{configurable:!0,enumerable:!1,value:x})},looseToNumber=d=>{const b=parseFloat(d);return isNaN(b)?d:b},toNumber$3=d=>{const b=isString$2(d)?Number(d):NaN;return isNaN(b)?d:b};let _globalThis;const getGlobalThis$1=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(d){if(isArray$9(d)){const b={};for(let x=0;x{if(x){const C=x.split(propertyDelimiterRE);C.length>1&&(b[C[0].trim()]=C[1].trim())}}),b}function normalizeClass(d){let b="";if(isString$2(d))b=d;else if(isArray$9(d))for(let x=0;xisString$2(d)?d:d==null?"":isArray$9(d)||isObject$6(d)&&(d.toString===objectToString$3||!isFunction$5(d.toString))?JSON.stringify(d,replacer$1,2):String(d),replacer$1=(d,b)=>b&&b.__v_isRef?replacer$1(d,b.value):isMap$1(b)?{["Map(".concat(b.size,")")]:[...b.entries()].reduce((x,[C,w])=>(x["".concat(C," =>")]=w,x),{})}:isSet$1(b)?{["Set(".concat(b.size,")")]:[...b.values()]}:isObject$6(b)&&!isArray$9(b)&&!isPlainObject$3(b)?String(b):b;let activeEffectScope;class EffectScope{constructor(b=!1){this.detached=b,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!b&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(b){if(this._active){const x=activeEffectScope;try{return activeEffectScope=this,b()}finally{activeEffectScope=x}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(b){if(this._active){let x,C;for(x=0,C=this.effects.length;x{const b=new Set(d);return b.w=0,b.n=0,b},wasTracked=d=>(d.w&trackOpBit)>0,newTracked=d=>(d.n&trackOpBit)>0,initDepMarkers=({deps:d})=>{if(d.length)for(let b=0;b{const{deps:b}=d;if(b.length){let x=0;for(let C=0;C{(B==="length"||B>=E)&&$.push(P)})}else switch(x!==void 0&&$.push(S.get(x)),b){case"add":isArray$9(d)?isIntegerKey(x)&&$.push(S.get("length")):($.push(S.get(ITERATE_KEY)),isMap$1(d)&&$.push(S.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$9(d)||($.push(S.get(ITERATE_KEY)),isMap$1(d)&&$.push(S.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(d)&&$.push(S.get(ITERATE_KEY));break}if($.length===1)$[0]&&triggerEffects($[0]);else{const E=[];for(const P of $)P&&E.push(...P);triggerEffects(createDep(E))}}function triggerEffects(d,b){const x=isArray$9(d)?d:[...d];for(const C of x)C.computed&&triggerEffect(C);for(const C of x)C.computed||triggerEffect(C)}function triggerEffect(d,b){(d!==activeEffect||d.allowRecurse)&&(d.scheduler?d.scheduler():d.run())}function getDepFromReactive(d,b){var x;return(x=targetMap.get(d))==null?void 0:x.get(b)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(d=>d!=="arguments"&&d!=="caller").map(d=>Symbol[d]).filter(isSymbol$2)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const d={};return["includes","indexOf","lastIndexOf"].forEach(b=>{d[b]=function(...x){const C=toRaw(this);for(let A=0,S=this.length;A{d[b]=function(...x){pauseTracking();const C=toRaw(this)[b].apply(this,x);return resetTracking(),C}}),d}function hasOwnProperty$e(d){const b=toRaw(this);return track(b,"has",d),b.hasOwnProperty(d)}function createGetter(d=!1,b=!1){return function(C,w,A){if(w==="__v_isReactive")return!d;if(w==="__v_isReadonly")return d;if(w==="__v_isShallow")return b;if(w==="__v_raw"&&A===(d?b?shallowReadonlyMap:readonlyMap:b?shallowReactiveMap:reactiveMap).get(C))return C;const S=isArray$9(C);if(!d){if(S&&hasOwn$2(arrayInstrumentations,w))return Reflect.get(arrayInstrumentations,w,A);if(w==="hasOwnProperty")return hasOwnProperty$e}const $=Reflect.get(C,w,A);return(isSymbol$2(w)?builtInSymbols.has(w):isNonTrackableKeys(w))||(d||track(C,"get",w),b)?$:isRef($)?S&&isIntegerKey(w)?$:$.value:isObject$6($)?d?readonly($):reactive($):$}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(d=!1){return function(x,C,w,A){let S=x[C];if(isReadonly(S)&&isRef(S)&&!isRef(w))return!1;if(!d&&(!isShallow(w)&&!isReadonly(w)&&(S=toRaw(S),w=toRaw(w)),!isArray$9(x)&&isRef(S)&&!isRef(w)))return S.value=w,!0;const $=isArray$9(x)&&isIntegerKey(C)?Number(C)d,getProto$1=d=>Reflect.getPrototypeOf(d);function get$2(d,b,x=!1,C=!1){d=d.__v_raw;const w=toRaw(d),A=toRaw(b);x||(b!==A&&track(w,"get",b),track(w,"get",A));const{has:S}=getProto$1(w),$=C?toShallow:x?toReadonly:toReactive;if(S.call(w,b))return $(d.get(b));if(S.call(w,A))return $(d.get(A));d!==w&&d.get(b)}function has$4(d,b=!1){const x=this.__v_raw,C=toRaw(x),w=toRaw(d);return b||(d!==w&&track(C,"has",d),track(C,"has",w)),d===w?x.has(d):x.has(d)||x.has(w)}function size$1(d,b=!1){return d=d.__v_raw,!b&&track(toRaw(d),"iterate",ITERATE_KEY),Reflect.get(d,"size",d)}function add(d){d=toRaw(d);const b=toRaw(this);return getProto$1(b).has.call(b,d)||(b.add(d),trigger$1(b,"add",d,d)),this}function set(d,b){b=toRaw(b);const x=toRaw(this),{has:C,get:w}=getProto$1(x);let A=C.call(x,d);A||(d=toRaw(d),A=C.call(x,d));const S=w.call(x,d);return x.set(d,b),A?hasChanged(b,S)&&trigger$1(x,"set",d,b):trigger$1(x,"add",d,b),this}function deleteEntry(d){const b=toRaw(this),{has:x,get:C}=getProto$1(b);let w=x.call(b,d);w||(d=toRaw(d),w=x.call(b,d)),C&&C.call(b,d);const A=b.delete(d);return w&&trigger$1(b,"delete",d,void 0),A}function clear(){const d=toRaw(this),b=d.size!==0,x=d.clear();return b&&trigger$1(d,"clear",void 0,void 0),x}function createForEach(d,b){return function(C,w){const A=this,S=A.__v_raw,$=toRaw(S),E=b?toShallow:d?toReadonly:toReactive;return!d&&track($,"iterate",ITERATE_KEY),S.forEach((P,B)=>C.call(w,E(P),E(B),A))}}function createIterableMethod(d,b,x){return function(...C){const w=this.__v_raw,A=toRaw(w),S=isMap$1(A),$=d==="entries"||d===Symbol.iterator&&S,E=d==="keys"&&S,P=w[d](...C),B=x?toShallow:b?toReadonly:toReactive;return!b&&track(A,"iterate",E?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:k,done:I}=P.next();return I?{value:k,done:I}:{value:$?[B(k[0]),B(k[1])]:B(k),done:I}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(d){return function(...b){return d==="delete"?!1:this}}function createInstrumentations(){const d={get(A){return get$2(this,A)},get size(){return size$1(this)},has:has$4,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},b={get(A){return get$2(this,A,!1,!0)},get size(){return size$1(this)},has:has$4,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},x={get(A){return get$2(this,A,!0)},get size(){return size$1(this,!0)},has(A){return has$4.call(this,A,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},C={get(A){return get$2(this,A,!0,!0)},get size(){return size$1(this,!0)},has(A){return has$4.call(this,A,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(A=>{d[A]=createIterableMethod(A,!1,!1),x[A]=createIterableMethod(A,!0,!1),b[A]=createIterableMethod(A,!1,!0),C[A]=createIterableMethod(A,!0,!0)}),[d,x,b,C]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(d,b){const x=b?d?shallowReadonlyInstrumentations:shallowInstrumentations:d?readonlyInstrumentations:mutableInstrumentations;return(C,w,A)=>w==="__v_isReactive"?!d:w==="__v_isReadonly"?d:w==="__v_raw"?C:Reflect.get(hasOwn$2(x,w)&&w in C?x:C,w,A)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(d){switch(d){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(d){return d.__v_skip||!Object.isExtensible(d)?0:targetTypeMap(toRawType(d))}function reactive(d){return isReadonly(d)?d:createReactiveObject(d,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(d){return createReactiveObject(d,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(d){return createReactiveObject(d,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(d,b,x,C,w){if(!isObject$6(d)||d.__v_raw&&!(b&&d.__v_isReactive))return d;const A=w.get(d);if(A)return A;const S=getTargetType(d);if(S===0)return d;const $=new Proxy(d,S===2?C:x);return w.set(d,$),$}function isReactive(d){return isReadonly(d)?isReactive(d.__v_raw):!!(d&&d.__v_isReactive)}function isReadonly(d){return!!(d&&d.__v_isReadonly)}function isShallow(d){return!!(d&&d.__v_isShallow)}function isProxy(d){return isReactive(d)||isReadonly(d)}function toRaw(d){const b=d&&d.__v_raw;return b?toRaw(b):d}function markRaw(d){return def(d,"__v_skip",!0),d}const toReactive=d=>isObject$6(d)?reactive(d):d,toReadonly=d=>isObject$6(d)?readonly(d):d;function trackRefValue(d){shouldTrack&&activeEffect&&(d=toRaw(d),trackEffects(d.dep||(d.dep=createDep())))}function triggerRefValue(d,b){d=toRaw(d);const x=d.dep;x&&triggerEffects(x)}function isRef(d){return!!(d&&d.__v_isRef===!0)}function ref(d){return createRef(d,!1)}function shallowRef(d){return createRef(d,!0)}function createRef(d,b){return isRef(d)?d:new RefImpl(d,b)}class RefImpl{constructor(b,x){this.__v_isShallow=x,this.dep=void 0,this.__v_isRef=!0,this._rawValue=x?b:toRaw(b),this._value=x?b:toReactive(b)}get value(){return trackRefValue(this),this._value}set value(b){const x=this.__v_isShallow||isShallow(b)||isReadonly(b);b=x?b:toRaw(b),hasChanged(b,this._rawValue)&&(this._rawValue=b,this._value=x?b:toReactive(b),triggerRefValue(this))}}function unref(d){return isRef(d)?d.value:d}const shallowUnwrapHandlers={get:(d,b,x)=>unref(Reflect.get(d,b,x)),set:(d,b,x,C)=>{const w=d[b];return isRef(w)&&!isRef(x)?(w.value=x,!0):Reflect.set(d,b,x,C)}};function proxyRefs(d){return isReactive(d)?d:new Proxy(d,shallowUnwrapHandlers)}class CustomRefImpl{constructor(b){this.dep=void 0,this.__v_isRef=!0;const{get:x,set:C}=b(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=x,this._set=C}get value(){return this._get()}set value(b){this._set(b)}}function customRef(d){return new CustomRefImpl(d)}function toRefs$1(d){const b=isArray$9(d)?new Array(d.length):{};for(const x in d)b[x]=propertyToRef(d,x);return b}class ObjectRefImpl{constructor(b,x,C){this._object=b,this._key=x,this._defaultValue=C,this.__v_isRef=!0}get value(){const b=this._object[this._key];return b===void 0?this._defaultValue:b}set value(b){this._object[this._key]=b}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(b){this._getter=b,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef$1(d,b,x){return isRef(d)?d:isFunction$5(d)?new GetterRefImpl(d):isObject$6(d)&&arguments.length>1?propertyToRef(d,b,x):ref(d)}function propertyToRef(d,b,x){const C=d[b];return isRef(C)?C:new ObjectRefImpl(d,b,x)}class ComputedRefImpl{constructor(b,x,C,w){this._setter=x,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(b,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!w,this.__v_isReadonly=C}get value(){const b=toRaw(this);return trackRefValue(b),(b._dirty||!b._cacheable)&&(b._dirty=!1,b._value=b.effect.run()),b._value}set value(b){this._setter(b)}}function computed$1(d,b,x=!1){let C,w;const A=isFunction$5(d);return A?(C=d,w=NOOP):(C=d.get,w=d.set),new ComputedRefImpl(C,w,A||!w,x)}function warn$4(d,...b){}function callWithErrorHandling(d,b,x,C){let w;try{w=C?d(...C):d()}catch(A){handleError(A,b,x)}return w}function callWithAsyncErrorHandling(d,b,x,C){if(isFunction$5(d)){const A=callWithErrorHandling(d,b,x,C);return A&&isPromise$1(A)&&A.catch(S=>{handleError(S,b,x)}),A}const w=[];for(let A=0;A>>1;getId(queue$2[C])flushIndex&&queue$2.splice(b,1)}function queuePostFlushCb(d){isArray$9(d)?pendingPostFlushCbs.push(...d):(!activePostFlushCbs||!activePostFlushCbs.includes(d,d.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(d),queueFlush()}function flushPreFlushCbs(d,b=isFlushing?flushIndex+1:0){for(;bgetId(x)-getId(C)),postFlushIndex=0;postFlushIndexd.id==null?1/0:d.id,comparator=(d,b)=>{const x=getId(d)-getId(b);if(x===0){if(d.pre&&!b.pre)return-1;if(b.pre&&!d.pre)return 1}return x};function flushJobs(d){isFlushPending=!1,isFlushing=!0,queue$2.sort(comparator);const b=NOOP;try{for(flushIndex=0;flushIndexisString$2(R)?R.trim():R)),k&&(w=x.map(looseToNumber))}let $,E=C[$=toHandlerKey(b)]||C[$=toHandlerKey(camelize$1(b))];!E&&A&&(E=C[$=toHandlerKey(hyphenate(b))]),E&&callWithAsyncErrorHandling(E,d,6,w);const P=C[$+"Once"];if(P){if(!d.emitted)d.emitted={};else if(d.emitted[$])return;d.emitted[$]=!0,callWithAsyncErrorHandling(P,d,6,w)}}function normalizeEmitsOptions(d,b,x=!1){const C=b.emitsCache,w=C.get(d);if(w!==void 0)return w;const A=d.emits;let S={},$=!1;if(!isFunction$5(d)){const E=P=>{const B=normalizeEmitsOptions(P,b,!0);B&&($=!0,extend$2(S,B))};!x&&b.mixins.length&&b.mixins.forEach(E),d.extends&&E(d.extends),d.mixins&&d.mixins.forEach(E)}return!A&&!$?(isObject$6(d)&&C.set(d,null),null):(isArray$9(A)?A.forEach(E=>S[E]=null):extend$2(S,A),isObject$6(d)&&C.set(d,S),S)}function isEmitListener(d,b){return!d||!isOn(b)?!1:(b=b.slice(2).replace(/Once$/,""),hasOwn$2(d,b[0].toLowerCase()+b.slice(1))||hasOwn$2(d,hyphenate(b))||hasOwn$2(d,b))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(d){const b=currentRenderingInstance;return currentRenderingInstance=d,currentScopeId=d&&d.type.__scopeId||null,b}function withCtx(d,b=currentRenderingInstance,x){if(!b||d._n)return d;const C=(...w)=>{C._d&&setBlockTracking(-1);const A=setCurrentRenderingInstance(b);let S;try{S=d(...w)}finally{setCurrentRenderingInstance(A),C._d&&setBlockTracking(1)}return S};return C._n=!0,C._c=!0,C._d=!0,C}function markAttrsAccessed(){}function renderComponentRoot(d){const{type:b,vnode:x,proxy:C,withProxy:w,props:A,propsOptions:[S],slots:$,attrs:E,emit:P,render:B,renderCache:k,data:I,setupState:R,ctx:F,inheritAttrs:L}=d;let z,V;const U=setCurrentRenderingInstance(d);try{if(x.shapeFlag&4){const W=w||C;z=normalizeVNode(B.call(W,W,k,A,R,I,F)),V=E}else{const W=b;z=normalizeVNode(W.length>1?W(A,{attrs:E,slots:$,emit:P}):W(A,null)),V=b.props?E:getFunctionalFallthrough(E)}}catch(W){blockStack.length=0,handleError(W,d,1),z=createVNode(Comment)}let Q=z;if(V&&L!==!1){const W=Object.keys(V),{shapeFlag:G}=Q;W.length&&G&7&&(S&&W.some(isModelListener)&&(V=filterModelListeners(V,S)),Q=cloneVNode(Q,V))}return x.dirs&&(Q=cloneVNode(Q),Q.dirs=Q.dirs?Q.dirs.concat(x.dirs):x.dirs),x.transition&&(Q.transition=x.transition),z=Q,setCurrentRenderingInstance(U),z}const getFunctionalFallthrough=d=>{let b;for(const x in d)(x==="class"||x==="style"||isOn(x))&&((b||(b={}))[x]=d[x]);return b},filterModelListeners=(d,b)=>{const x={};for(const C in d)(!isModelListener(C)||!(C.slice(9)in b))&&(x[C]=d[C]);return x};function shouldUpdateComponent(d,b,x){const{props:C,children:w,component:A}=d,{props:S,children:$,patchFlag:E}=b,P=A.emitsOptions;if(b.dirs||b.transition)return!0;if(x&&E>=0){if(E&1024)return!0;if(E&16)return C?hasPropsChanged(C,S,P):!!S;if(E&8){const B=b.dynamicProps;for(let k=0;kd.__isSuspense;function queueEffectWithSuspense(d,b){b&&b.pendingBranch?isArray$9(d)?b.effects.push(...d):b.effects.push(d):queuePostFlushCb(d)}function watchEffect(d,b){return doWatch(d,null,b)}const INITIAL_WATCHER_VALUE={};function watch(d,b,x){return doWatch(d,b,x)}function doWatch(d,b,{immediate:x,deep:C,flush:w,onTrack:A,onTrigger:S}=EMPTY_OBJ){var $;const E=getCurrentScope()===(($=currentInstance)==null?void 0:$.scope)?currentInstance:null;let P,B=!1,k=!1;if(isRef(d)?(P=()=>d.value,B=isShallow(d)):isReactive(d)?(P=()=>d,C=!0):isArray$9(d)?(k=!0,B=d.some(W=>isReactive(W)||isShallow(W)),P=()=>d.map(W=>{if(isRef(W))return W.value;if(isReactive(W))return traverse(W);if(isFunction$5(W))return callWithErrorHandling(W,E,2)})):isFunction$5(d)?b?P=()=>callWithErrorHandling(d,E,2):P=()=>{if(!(E&&E.isUnmounted))return I&&I(),callWithAsyncErrorHandling(d,E,3,[R])}:P=NOOP,b&&C){const W=P;P=()=>traverse(W())}let I,R=W=>{I=U.onStop=()=>{callWithErrorHandling(W,E,4)}},F;if(isInSSRComponentSetup)if(R=NOOP,b?x&&callWithAsyncErrorHandling(b,E,3,[P(),k?[]:void 0,R]):P(),w==="sync"){const W=useSSRContext();F=W.__watcherHandles||(W.__watcherHandles=[])}else return NOOP;let L=k?new Array(d.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const z=()=>{if(U.active)if(b){const W=U.run();(C||B||(k?W.some((G,q)=>hasChanged(G,L[q])):hasChanged(W,L)))&&(I&&I(),callWithAsyncErrorHandling(b,E,3,[W,L===INITIAL_WATCHER_VALUE?void 0:k&&L[0]===INITIAL_WATCHER_VALUE?[]:L,R]),L=W)}else U.run()};z.allowRecurse=!!b;let V;w==="sync"?V=z:w==="post"?V=()=>queuePostRenderEffect(z,E&&E.suspense):(z.pre=!0,E&&(z.id=E.uid),V=()=>queueJob(z));const U=new ReactiveEffect(P,V);b?x?z():L=U.run():w==="post"?queuePostRenderEffect(U.run.bind(U),E&&E.suspense):U.run();const Q=()=>{U.stop(),E&&E.scope&&remove$6(E.scope.effects,U)};return F&&F.push(Q),Q}function instanceWatch(d,b,x){const C=this.proxy,w=isString$2(d)?d.includes(".")?createPathGetter(C,d):()=>C[d]:d.bind(C,C);let A;isFunction$5(b)?A=b:(A=b.handler,x=b);const S=currentInstance;setCurrentInstance(this);const $=doWatch(w,A.bind(C),x);return S?setCurrentInstance(S):unsetCurrentInstance(),$}function createPathGetter(d,b){const x=b.split(".");return()=>{let C=d;for(let w=0;w{traverse(x,b)});else if(isPlainObject$3(d))for(const x in d)traverse(d[x],b);return d}function withDirectives(d,b){const x=currentRenderingInstance;if(x===null)return d;const C=getExposeProxy(x)||x.proxy,w=d.dirs||(d.dirs=[]);for(let A=0;A{d.isMounted=!0}),onBeforeUnmount(()=>{d.isUnmounting=!0}),d}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(d,{slots:b}){const x=getCurrentInstance(),C=useTransitionState();let w;return()=>{const A=b.default&&getTransitionRawChildren(b.default(),!0);if(!A||!A.length)return;let S=A[0];if(A.length>1){for(const L of A)if(L.type!==Comment){S=L;break}}const $=toRaw(d),{mode:E}=$;if(C.isLeaving)return emptyPlaceholder(S);const P=getKeepAliveChild(S);if(!P)return emptyPlaceholder(S);const B=resolveTransitionHooks(P,$,C,x);setTransitionHooks(P,B);const k=x.subTree,I=k&&getKeepAliveChild(k);let R=!1;const{getTransitionKey:F}=P.type;if(F){const L=F();w===void 0?w=L:L!==w&&(w=L,R=!0)}if(I&&I.type!==Comment&&(!isSameVNodeType(P,I)||R)){const L=resolveTransitionHooks(I,$,C,x);if(setTransitionHooks(I,L),E==="out-in")return C.isLeaving=!0,L.afterLeave=()=>{C.isLeaving=!1,x.update.active!==!1&&x.update()},emptyPlaceholder(S);E==="in-out"&&P.type!==Comment&&(L.delayLeave=(z,V,U)=>{const Q=getLeavingNodesForType(C,I);Q[String(I.key)]=I,z._leaveCb=()=>{V(),z._leaveCb=void 0,delete B.delayedLeave},B.delayedLeave=U})}return S}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(d,b){const{leavingVNodes:x}=d;let C=x.get(b.type);return C||(C=Object.create(null),x.set(b.type,C)),C}function resolveTransitionHooks(d,b,x,C){const{appear:w,mode:A,persisted:S=!1,onBeforeEnter:$,onEnter:E,onAfterEnter:P,onEnterCancelled:B,onBeforeLeave:k,onLeave:I,onAfterLeave:R,onLeaveCancelled:F,onBeforeAppear:L,onAppear:z,onAfterAppear:V,onAppearCancelled:U}=b,Q=String(d.key),W=getLeavingNodesForType(x,d),G=(X,J)=>{X&&callWithAsyncErrorHandling(X,C,9,J)},q=(X,J)=>{const oe=J[1];G(X,J),isArray$9(X)?X.every(he=>he.length<=1)&&oe():X.length<=1&&oe()},K={mode:A,persisted:S,beforeEnter(X){let J=$;if(!x.isMounted)if(w)J=L||$;else return;X._leaveCb&&X._leaveCb(!0);const oe=W[Q];oe&&isSameVNodeType(d,oe)&&oe.el._leaveCb&&oe.el._leaveCb(),G(J,[X])},enter(X){let J=E,oe=P,he=B;if(!x.isMounted)if(w)J=z||E,oe=V||P,he=U||B;else return;let Z=!1;const ce=X._enterCb=fe=>{Z||(Z=!0,fe?G(he,[X]):G(oe,[X]),K.delayedLeave&&K.delayedLeave(),X._enterCb=void 0)};J?q(J,[X,ce]):ce()},leave(X,J){const oe=String(d.key);if(X._enterCb&&X._enterCb(!0),x.isUnmounting)return J();G(k,[X]);let he=!1;const Z=X._leaveCb=ce=>{he||(he=!0,J(),ce?G(F,[X]):G(R,[X]),X._leaveCb=void 0,W[oe]===d&&delete W[oe])};W[oe]=d,I?q(I,[X,Z]):Z()},clone(X){return resolveTransitionHooks(X,b,x,C)}};return K}function emptyPlaceholder(d){if(isKeepAlive(d))return d=cloneVNode(d),d.children=null,d}function getKeepAliveChild(d){return isKeepAlive(d)?d.children?d.children[0]:void 0:d}function setTransitionHooks(d,b){d.shapeFlag&6&&d.component?setTransitionHooks(d.component.subTree,b):d.shapeFlag&128?(d.ssContent.transition=b.clone(d.ssContent),d.ssFallback.transition=b.clone(d.ssFallback)):d.transition=b}function getTransitionRawChildren(d,b=!1,x){let C=[],w=0;for(let A=0;A1)for(let A=0;Aextend$2({name:d.name},b,{setup:d}))():d}const isAsyncWrapper=d=>!!d.type.__asyncLoader,isKeepAlive=d=>d.type.__isKeepAlive;function onActivated(d,b){registerKeepAliveHook(d,"a",b)}function onDeactivated(d,b){registerKeepAliveHook(d,"da",b)}function registerKeepAliveHook(d,b,x=currentInstance){const C=d.__wdc||(d.__wdc=()=>{let w=x;for(;w;){if(w.isDeactivated)return;w=w.parent}return d()});if(injectHook(b,C,x),x){let w=x.parent;for(;w&&w.parent;)isKeepAlive(w.parent.vnode)&&injectToKeepAliveRoot(C,b,x,w),w=w.parent}}function injectToKeepAliveRoot(d,b,x,C){const w=injectHook(b,d,C,!0);onUnmounted(()=>{remove$6(C[b],w)},x)}function injectHook(d,b,x=currentInstance,C=!1){if(x){const w=x[d]||(x[d]=[]),A=b.__weh||(b.__weh=(...S)=>{if(x.isUnmounted)return;pauseTracking(),setCurrentInstance(x);const $=callWithAsyncErrorHandling(b,x,d,S);return unsetCurrentInstance(),resetTracking(),$});return C?w.unshift(A):w.push(A),A}}const createHook=d=>(b,x=currentInstance)=>(!isInSSRComponentSetup||d==="sp")&&injectHook(d,(...C)=>b(...C),x),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(d,b=currentInstance){injectHook("ec",d,b)}const COMPONENTS="components";function resolveComponent(d,b){return resolveAsset(COMPONENTS,d,!0,b)||d}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(d){return isString$2(d)?resolveAsset(COMPONENTS,d,!1)||d:d||NULL_DYNAMIC_COMPONENT}function resolveAsset(d,b,x=!0,C=!1){const w=currentRenderingInstance||currentInstance;if(w){const A=w.type;if(d===COMPONENTS){const $=getComponentName(A,!1);if($&&($===b||$===camelize$1(b)||$===capitalize(camelize$1(b))))return A}const S=resolve(w[d]||A[d],b)||resolve(w.appContext[d],b);return!S&&C?A:S}}function resolve(d,b){return d&&(d[b]||d[camelize$1(b)]||d[capitalize(camelize$1(b))])}function renderSlot(d,b,x={},C,w){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return b!=="default"&&(x.name=b),createVNode("slot",x,C&&C());let A=d[b];A&&A._c&&(A._d=!1),openBlock();const S=A&&ensureValidVNode$1(A(x)),$=createBlock(Fragment,{key:x.key||S&&S.key||"_".concat(b)},S||(C?C():[]),S&&d._===1?64:-2);return!w&&$.scopeId&&($.slotScopeIds=[$.scopeId+"-s"]),A&&A._c&&(A._d=!0),$}function ensureValidVNode$1(d){return d.some(b=>isVNode(b)?!(b.type===Comment||b.type===Fragment&&!ensureValidVNode$1(b.children)):!0)?d:null}const getPublicInstance=d=>d?isStatefulComponent(d)?getExposeProxy(d)||d.proxy:getPublicInstance(d.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:d=>d,$el:d=>d.vnode.el,$data:d=>d.data,$props:d=>d.props,$attrs:d=>d.attrs,$slots:d=>d.slots,$refs:d=>d.refs,$parent:d=>getPublicInstance(d.parent),$root:d=>getPublicInstance(d.root),$emit:d=>d.emit,$options:d=>resolveMergedOptions(d),$forceUpdate:d=>d.f||(d.f=()=>queueJob(d.update)),$nextTick:d=>d.n||(d.n=nextTick.bind(d.proxy)),$watch:d=>instanceWatch.bind(d)}),hasSetupBinding=(d,b)=>d!==EMPTY_OBJ&&!d.__isScriptSetup&&hasOwn$2(d,b),PublicInstanceProxyHandlers={get({_:d},b){const{ctx:x,setupState:C,data:w,props:A,accessCache:S,type:$,appContext:E}=d;let P;if(b[0]!=="$"){const R=S[b];if(R!==void 0)switch(R){case 1:return C[b];case 2:return w[b];case 4:return x[b];case 3:return A[b]}else{if(hasSetupBinding(C,b))return S[b]=1,C[b];if(w!==EMPTY_OBJ&&hasOwn$2(w,b))return S[b]=2,w[b];if((P=d.propsOptions[0])&&hasOwn$2(P,b))return S[b]=3,A[b];if(x!==EMPTY_OBJ&&hasOwn$2(x,b))return S[b]=4,x[b];shouldCacheAccess&&(S[b]=0)}}const B=publicPropertiesMap[b];let k,I;if(B)return b==="$attrs"&&track(d,"get",b),B(d);if((k=$.__cssModules)&&(k=k[b]))return k;if(x!==EMPTY_OBJ&&hasOwn$2(x,b))return S[b]=4,x[b];if(I=E.config.globalProperties,hasOwn$2(I,b))return I[b]},set({_:d},b,x){const{data:C,setupState:w,ctx:A}=d;return hasSetupBinding(w,b)?(w[b]=x,!0):C!==EMPTY_OBJ&&hasOwn$2(C,b)?(C[b]=x,!0):hasOwn$2(d.props,b)||b[0]==="$"&&b.slice(1)in d?!1:(A[b]=x,!0)},has({_:{data:d,setupState:b,accessCache:x,ctx:C,appContext:w,propsOptions:A}},S){let $;return!!x[S]||d!==EMPTY_OBJ&&hasOwn$2(d,S)||hasSetupBinding(b,S)||($=A[0])&&hasOwn$2($,S)||hasOwn$2(C,S)||hasOwn$2(publicPropertiesMap,S)||hasOwn$2(w.config.globalProperties,S)},defineProperty(d,b,x){return x.get!=null?d._.accessCache[b]=0:hasOwn$2(x,"value")&&this.set(d,b,x.value,null),Reflect.defineProperty(d,b,x)}};function normalizePropsOrEmits(d){return isArray$9(d)?d.reduce((b,x)=>(b[x]=null,b),{}):d}let shouldCacheAccess=!0;function applyOptions(d){const b=resolveMergedOptions(d),x=d.proxy,C=d.ctx;shouldCacheAccess=!1,b.beforeCreate&&callHook$1(b.beforeCreate,d,"bc");const{data:w,computed:A,methods:S,watch:$,provide:E,inject:P,created:B,beforeMount:k,mounted:I,beforeUpdate:R,updated:F,activated:L,deactivated:z,beforeDestroy:V,beforeUnmount:U,destroyed:Q,unmounted:W,render:G,renderTracked:q,renderTriggered:K,errorCaptured:X,serverPrefetch:J,expose:oe,inheritAttrs:he,components:Z,directives:ce,filters:fe}=b;if(P&&resolveInjections(P,C,null),S)for(const te in S){const de=S[te];isFunction$5(de)&&(C[te]=de.bind(x))}if(w){const te=w.call(x,x);isObject$6(te)&&(d.data=reactive(te))}if(shouldCacheAccess=!0,A)for(const te in A){const de=A[te],le=isFunction$5(de)?de.bind(x,x):isFunction$5(de.get)?de.get.bind(x,x):NOOP,be=!isFunction$5(de)&&isFunction$5(de.set)?de.set.bind(x):NOOP,Le=computed({get:le,set:be});Object.defineProperty(C,te,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Qe=>Le.value=Qe})}if($)for(const te in $)createWatcher($[te],C,x,te);if(E){const te=isFunction$5(E)?E.call(x):E;Reflect.ownKeys(te).forEach(de=>{provide(de,te[de])})}B&&callHook$1(B,d,"c");function ne(te,de){isArray$9(de)?de.forEach(le=>te(le.bind(x))):de&&te(de.bind(x))}if(ne(onBeforeMount,k),ne(onMounted,I),ne(onBeforeUpdate,R),ne(onUpdated,F),ne(onActivated,L),ne(onDeactivated,z),ne(onErrorCaptured,X),ne(onRenderTracked,q),ne(onRenderTriggered,K),ne(onBeforeUnmount,U),ne(onUnmounted,W),ne(onServerPrefetch,J),isArray$9(oe))if(oe.length){const te=d.exposed||(d.exposed={});oe.forEach(de=>{Object.defineProperty(te,de,{get:()=>x[de],set:le=>x[de]=le})})}else d.exposed||(d.exposed={});G&&d.render===NOOP&&(d.render=G),he!=null&&(d.inheritAttrs=he),Z&&(d.components=Z),ce&&(d.directives=ce)}function resolveInjections(d,b,x=NOOP){isArray$9(d)&&(d=normalizeInject(d));for(const C in d){const w=d[C];let A;isObject$6(w)?"default"in w?A=inject(w.from||C,w.default,!0):A=inject(w.from||C):A=inject(w),isRef(A)?Object.defineProperty(b,C,{enumerable:!0,configurable:!0,get:()=>A.value,set:S=>A.value=S}):b[C]=A}}function callHook$1(d,b,x){callWithAsyncErrorHandling(isArray$9(d)?d.map(C=>C.bind(b.proxy)):d.bind(b.proxy),b,x)}function createWatcher(d,b,x,C){const w=C.includes(".")?createPathGetter(x,C):()=>x[C];if(isString$2(d)){const A=b[d];isFunction$5(A)&&watch(w,A)}else if(isFunction$5(d))watch(w,d.bind(x));else if(isObject$6(d))if(isArray$9(d))d.forEach(A=>createWatcher(A,b,x,C));else{const A=isFunction$5(d.handler)?d.handler.bind(x):b[d.handler];isFunction$5(A)&&watch(w,A,d)}}function resolveMergedOptions(d){const b=d.type,{mixins:x,extends:C}=b,{mixins:w,optionsCache:A,config:{optionMergeStrategies:S}}=d.appContext,$=A.get(b);let E;return $?E=$:!w.length&&!x&&!C?E=b:(E={},w.length&&w.forEach(P=>mergeOptions$1(E,P,S,!0)),mergeOptions$1(E,b,S)),isObject$6(b)&&A.set(b,E),E}function mergeOptions$1(d,b,x,C=!1){const{mixins:w,extends:A}=b;A&&mergeOptions$1(d,A,x,!0),w&&w.forEach(S=>mergeOptions$1(d,S,x,!0));for(const S in b)if(!(C&&S==="expose")){const $=internalOptionMergeStrats[S]||x&&x[S];d[S]=$?$(d[S],b[S]):b[S]}return d}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(d,b){return b?d?function(){return extend$2(isFunction$5(d)?d.call(this,this):d,isFunction$5(b)?b.call(this,this):b)}:b:d}function mergeInject(d,b){return mergeObjectOptions(normalizeInject(d),normalizeInject(b))}function normalizeInject(d){if(isArray$9(d)){const b={};for(let x=0;x1)return x&&isFunction$5(b)?b.call(C&&C.proxy):b}}function initProps(d,b,x,C=!1){const w={},A={};def(A,InternalObjectKey,1),d.propsDefaults=Object.create(null),setFullProps(d,b,w,A);for(const S in d.propsOptions[0])S in w||(w[S]=void 0);x?d.props=C?w:shallowReactive(w):d.type.props?d.props=w:d.props=A,d.attrs=A}function updateProps(d,b,x,C){const{props:w,attrs:A,vnode:{patchFlag:S}}=d,$=toRaw(w),[E]=d.propsOptions;let P=!1;if((C||S>0)&&!(S&16)){if(S&8){const B=d.vnode.dynamicProps;for(let k=0;k{E=!0;const[I,R]=normalizePropsOptions(k,b,!0);extend$2(S,I),R&&$.push(...R)};!x&&b.mixins.length&&b.mixins.forEach(B),d.extends&&B(d.extends),d.mixins&&d.mixins.forEach(B)}if(!A&&!E)return isObject$6(d)&&C.set(d,EMPTY_ARR),EMPTY_ARR;if(isArray$9(A))for(let B=0;B-1,R[1]=L<0||F-1||hasOwn$2(R,"default"))&&$.push(k)}}}const P=[S,$];return isObject$6(d)&&C.set(d,P),P}function validatePropName(d){return d[0]!=="$"}function getType(d){const b=d&&d.toString().match(/^\s*(function|class) (\w+)/);return b?b[2]:d===null?"null":""}function isSameType(d,b){return getType(d)===getType(b)}function getTypeIndex(d,b){return isArray$9(b)?b.findIndex(x=>isSameType(x,d)):isFunction$5(b)&&isSameType(b,d)?0:-1}const isInternalKey=d=>d[0]==="_"||d==="$stable",normalizeSlotValue=d=>isArray$9(d)?d.map(normalizeVNode):[normalizeVNode(d)],normalizeSlot$1=(d,b,x)=>{if(b._n)return b;const C=withCtx((...w)=>normalizeSlotValue(b(...w)),x);return C._c=!1,C},normalizeObjectSlots=(d,b,x)=>{const C=d._ctx;for(const w in d){if(isInternalKey(w))continue;const A=d[w];if(isFunction$5(A))b[w]=normalizeSlot$1(w,A,C);else if(A!=null){const S=normalizeSlotValue(A);b[w]=()=>S}}},normalizeVNodeSlots=(d,b)=>{const x=normalizeSlotValue(b);d.slots.default=()=>x},initSlots=(d,b)=>{if(d.vnode.shapeFlag&32){const x=b._;x?(d.slots=toRaw(b),def(b,"_",x)):normalizeObjectSlots(b,d.slots={})}else d.slots={},b&&normalizeVNodeSlots(d,b);def(d.slots,InternalObjectKey,1)},updateSlots=(d,b,x)=>{const{vnode:C,slots:w}=d;let A=!0,S=EMPTY_OBJ;if(C.shapeFlag&32){const $=b._;$?x&&$===1?A=!1:(extend$2(w,b),!x&&$===1&&delete w._):(A=!b.$stable,normalizeObjectSlots(b,w)),S=b}else b&&(normalizeVNodeSlots(d,b),S={default:1});if(A)for(const $ in w)!isInternalKey($)&&!($ in S)&&delete w[$]};function setRef(d,b,x,C,w=!1){if(isArray$9(d)){d.forEach((I,R)=>setRef(I,b&&(isArray$9(b)?b[R]:b),x,C,w));return}if(isAsyncWrapper(C)&&!w)return;const A=C.shapeFlag&4?getExposeProxy(C.component)||C.component.proxy:C.el,S=w?null:A,{i:$,r:E}=d,P=b&&b.r,B=$.refs===EMPTY_OBJ?$.refs={}:$.refs,k=$.setupState;if(P!=null&&P!==E&&(isString$2(P)?(B[P]=null,hasOwn$2(k,P)&&(k[P]=null)):isRef(P)&&(P.value=null)),isFunction$5(E))callWithErrorHandling(E,$,12,[S,B]);else{const I=isString$2(E),R=isRef(E);if(I||R){const F=()=>{if(d.f){const L=I?hasOwn$2(k,E)?k[E]:B[E]:E.value;w?isArray$9(L)&&remove$6(L,A):isArray$9(L)?L.includes(A)||L.push(A):I?(B[E]=[A],hasOwn$2(k,E)&&(k[E]=B[E])):(E.value=[A],d.k&&(B[d.k]=E.value))}else I?(B[E]=S,hasOwn$2(k,E)&&(k[E]=S)):R&&(E.value=S,d.k&&(B[d.k]=S))};S?(F.id=-1,queuePostRenderEffect(F,x)):F()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(d){return baseCreateRenderer(d)}function baseCreateRenderer(d,b){const x=getGlobalThis$1();x.__VUE__=!0;const{insert:C,remove:w,patchProp:A,createElement:S,createText:$,createComment:E,setText:P,setElementText:B,parentNode:k,nextSibling:I,setScopeId:R=NOOP,insertStaticContent:F}=d,L=(re,se,Ce,Ne=null,we=null,ge=null,Ee=!1,ke=null,Ae=!!se.dynamicChildren)=>{if(re===se)return;re&&!isSameVNodeType(re,se)&&(Ne=Be(re),Qe(re,we,ge,!0),re=null),se.patchFlag===-2&&(Ae=!1,se.dynamicChildren=null);const{type:ve,ref:De,shapeFlag:We}=se;switch(ve){case Text:z(re,se,Ce,Ne);break;case Comment:V(re,se,Ce,Ne);break;case Static:re==null&&U(se,Ce,Ne,Ee);break;case Fragment:Z(re,se,Ce,Ne,we,ge,Ee,ke,Ae);break;default:We&1?G(re,se,Ce,Ne,we,ge,Ee,ke,Ae):We&6?ce(re,se,Ce,Ne,we,ge,Ee,ke,Ae):(We&64||We&128)&&ve.process(re,se,Ce,Ne,we,ge,Ee,ke,Ae,Fe)}De!=null&&we&&setRef(De,re&&re.ref,ge,se||re,!se)},z=(re,se,Ce,Ne)=>{if(re==null)C(se.el=$(se.children),Ce,Ne);else{const we=se.el=re.el;se.children!==re.children&&P(we,se.children)}},V=(re,se,Ce,Ne)=>{re==null?C(se.el=E(se.children||""),Ce,Ne):se.el=re.el},U=(re,se,Ce,Ne)=>{[re.el,re.anchor]=F(re.children,se,Ce,Ne,re.el,re.anchor)},Q=({el:re,anchor:se},Ce,Ne)=>{let we;for(;re&&re!==se;)we=I(re),C(re,Ce,Ne),re=we;C(se,Ce,Ne)},W=({el:re,anchor:se})=>{let Ce;for(;re&&re!==se;)Ce=I(re),w(re),re=Ce;w(se)},G=(re,se,Ce,Ne,we,ge,Ee,ke,Ae)=>{Ee=Ee||se.type==="svg",re==null?q(se,Ce,Ne,we,ge,Ee,ke,Ae):J(re,se,we,ge,Ee,ke,Ae)},q=(re,se,Ce,Ne,we,ge,Ee,ke)=>{let Ae,ve;const{type:De,props:We,shapeFlag:Ye,transition:Je,dirs:nt}=re;if(Ae=re.el=S(re.type,ge,We&&We.is,We),Ye&8?B(Ae,re.children):Ye&16&&X(re.children,Ae,null,Ne,we,ge&&De!=="foreignObject",Ee,ke),nt&&invokeDirectiveHook(re,null,Ne,"created"),K(Ae,re,re.scopeId,Ee,Ne),We){for(const Ue in We)Ue!=="value"&&!isReservedProp(Ue)&&A(Ae,Ue,null,We[Ue],ge,re.children,Ne,we,it);"value"in We&&A(Ae,"value",null,We.value),(ve=We.onVnodeBeforeMount)&&invokeVNodeHook(ve,Ne,re)}nt&&invokeDirectiveHook(re,null,Ne,"beforeMount");const dt=(!we||we&&!we.pendingBranch)&&Je&&!Je.persisted;dt&&Je.beforeEnter(Ae),C(Ae,se,Ce),((ve=We&&We.onVnodeMounted)||dt||nt)&&queuePostRenderEffect(()=>{ve&&invokeVNodeHook(ve,Ne,re),dt&&Je.enter(Ae),nt&&invokeDirectiveHook(re,null,Ne,"mounted")},we)},K=(re,se,Ce,Ne,we)=>{if(Ce&&R(re,Ce),Ne)for(let ge=0;ge{for(let ve=Ae;ve{const ke=se.el=re.el;let{patchFlag:Ae,dynamicChildren:ve,dirs:De}=se;Ae|=re.patchFlag&16;const We=re.props||EMPTY_OBJ,Ye=se.props||EMPTY_OBJ;let Je;Ce&&toggleRecurse(Ce,!1),(Je=Ye.onVnodeBeforeUpdate)&&invokeVNodeHook(Je,Ce,se,re),De&&invokeDirectiveHook(se,re,Ce,"beforeUpdate"),Ce&&toggleRecurse(Ce,!0);const nt=we&&se.type!=="foreignObject";if(ve?oe(re.dynamicChildren,ve,ke,Ce,Ne,nt,ge):Ee||de(re,se,ke,null,Ce,Ne,nt,ge,!1),Ae>0){if(Ae&16)he(ke,se,We,Ye,Ce,Ne,we);else if(Ae&2&&We.class!==Ye.class&&A(ke,"class",null,Ye.class,we),Ae&4&&A(ke,"style",We.style,Ye.style,we),Ae&8){const dt=se.dynamicProps;for(let Ue=0;Ue{Je&&invokeVNodeHook(Je,Ce,se,re),De&&invokeDirectiveHook(se,re,Ce,"updated")},Ne)},oe=(re,se,Ce,Ne,we,ge,Ee)=>{for(let ke=0;ke{if(Ce!==Ne){if(Ce!==EMPTY_OBJ)for(const ke in Ce)!isReservedProp(ke)&&!(ke in Ne)&&A(re,ke,Ce[ke],null,Ee,se.children,we,ge,it);for(const ke in Ne){if(isReservedProp(ke))continue;const Ae=Ne[ke],ve=Ce[ke];Ae!==ve&&ke!=="value"&&A(re,ke,ve,Ae,Ee,se.children,we,ge,it)}"value"in Ne&&A(re,"value",Ce.value,Ne.value)}},Z=(re,se,Ce,Ne,we,ge,Ee,ke,Ae)=>{const ve=se.el=re?re.el:$(""),De=se.anchor=re?re.anchor:$("");let{patchFlag:We,dynamicChildren:Ye,slotScopeIds:Je}=se;Je&&(ke=ke?ke.concat(Je):Je),re==null?(C(ve,Ce,Ne),C(De,Ce,Ne),X(se.children,Ce,De,we,ge,Ee,ke,Ae)):We>0&&We&64&&Ye&&re.dynamicChildren?(oe(re.dynamicChildren,Ye,Ce,we,ge,Ee,ke),(se.key!=null||we&&se===we.subTree)&&traverseStaticChildren(re,se,!0)):de(re,se,Ce,De,we,ge,Ee,ke,Ae)},ce=(re,se,Ce,Ne,we,ge,Ee,ke,Ae)=>{se.slotScopeIds=ke,re==null?se.shapeFlag&512?we.ctx.activate(se,Ce,Ne,Ee,Ae):fe(se,Ce,Ne,we,ge,Ee,Ae):me(re,se,Ae)},fe=(re,se,Ce,Ne,we,ge,Ee)=>{const ke=re.component=createComponentInstance(re,Ne,we);if(isKeepAlive(re)&&(ke.ctx.renderer=Fe),setupComponent(ke),ke.asyncDep){if(we&&we.registerDep(ke,ne),!re.el){const Ae=ke.subTree=createVNode(Comment);V(null,Ae,se,Ce)}return}ne(ke,re,se,Ce,we,ge,Ee)},me=(re,se,Ce)=>{const Ne=se.component=re.component;if(shouldUpdateComponent(re,se,Ce))if(Ne.asyncDep&&!Ne.asyncResolved){te(Ne,se,Ce);return}else Ne.next=se,invalidateJob(Ne.update),Ne.update();else se.el=re.el,Ne.vnode=se},ne=(re,se,Ce,Ne,we,ge,Ee)=>{const ke=()=>{if(re.isMounted){let{next:De,bu:We,u:Ye,parent:Je,vnode:nt}=re,dt=De,Ue;toggleRecurse(re,!1),De?(De.el=nt.el,te(re,De,Ee)):De=nt,We&&invokeArrayFns(We),(Ue=De.props&&De.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Ue,Je,De,nt),toggleRecurse(re,!0);const lt=renderComponentRoot(re),yt=re.subTree;re.subTree=lt,L(yt,lt,k(yt.el),Be(yt),re,we,ge),De.el=lt.el,dt===null&&updateHOCHostEl(re,lt.el),Ye&&queuePostRenderEffect(Ye,we),(Ue=De.props&&De.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Ue,Je,De,nt),we)}else{let De;const{el:We,props:Ye}=se,{bm:Je,m:nt,parent:dt}=re,Ue=isAsyncWrapper(se);if(toggleRecurse(re,!1),Je&&invokeArrayFns(Je),!Ue&&(De=Ye&&Ye.onVnodeBeforeMount)&&invokeVNodeHook(De,dt,se),toggleRecurse(re,!0),We&&$e){const lt=()=>{re.subTree=renderComponentRoot(re),$e(We,re.subTree,re,we,null)};Ue?se.type.__asyncLoader().then(()=>!re.isUnmounted&<()):lt()}else{const lt=re.subTree=renderComponentRoot(re);L(null,lt,Ce,Ne,re,we,ge),se.el=lt.el}if(nt&&queuePostRenderEffect(nt,we),!Ue&&(De=Ye&&Ye.onVnodeMounted)){const lt=se;queuePostRenderEffect(()=>invokeVNodeHook(De,dt,lt),we)}(se.shapeFlag&256||dt&&isAsyncWrapper(dt.vnode)&&dt.vnode.shapeFlag&256)&&re.a&&queuePostRenderEffect(re.a,we),re.isMounted=!0,se=Ce=Ne=null}},Ae=re.effect=new ReactiveEffect(ke,()=>queueJob(ve),re.scope),ve=re.update=()=>Ae.run();ve.id=re.uid,toggleRecurse(re,!0),ve()},te=(re,se,Ce)=>{se.component=re;const Ne=re.vnode.props;re.vnode=se,re.next=null,updateProps(re,se.props,Ne,Ce),updateSlots(re,se.children,Ce),pauseTracking(),flushPreFlushCbs(),resetTracking()},de=(re,se,Ce,Ne,we,ge,Ee,ke,Ae=!1)=>{const ve=re&&re.children,De=re?re.shapeFlag:0,We=se.children,{patchFlag:Ye,shapeFlag:Je}=se;if(Ye>0){if(Ye&128){be(ve,We,Ce,Ne,we,ge,Ee,ke,Ae);return}else if(Ye&256){le(ve,We,Ce,Ne,we,ge,Ee,ke,Ae);return}}Je&8?(De&16&&it(ve,we,ge),We!==ve&&B(Ce,We)):De&16?Je&16?be(ve,We,Ce,Ne,we,ge,Ee,ke,Ae):it(ve,we,ge,!0):(De&8&&B(Ce,""),Je&16&&X(We,Ce,Ne,we,ge,Ee,ke,Ae))},le=(re,se,Ce,Ne,we,ge,Ee,ke,Ae)=>{re=re||EMPTY_ARR,se=se||EMPTY_ARR;const ve=re.length,De=se.length,We=Math.min(ve,De);let Ye;for(Ye=0;YeDe?it(re,we,ge,!0,!1,We):X(se,Ce,Ne,we,ge,Ee,ke,Ae,We)},be=(re,se,Ce,Ne,we,ge,Ee,ke,Ae)=>{let ve=0;const De=se.length;let We=re.length-1,Ye=De-1;for(;ve<=We&&ve<=Ye;){const Je=re[ve],nt=se[ve]=Ae?cloneIfMounted(se[ve]):normalizeVNode(se[ve]);if(isSameVNodeType(Je,nt))L(Je,nt,Ce,null,we,ge,Ee,ke,Ae);else break;ve++}for(;ve<=We&&ve<=Ye;){const Je=re[We],nt=se[Ye]=Ae?cloneIfMounted(se[Ye]):normalizeVNode(se[Ye]);if(isSameVNodeType(Je,nt))L(Je,nt,Ce,null,we,ge,Ee,ke,Ae);else break;We--,Ye--}if(ve>We){if(ve<=Ye){const Je=Ye+1,nt=JeYe)for(;ve<=We;)Qe(re[ve],we,ge,!0),ve++;else{const Je=ve,nt=ve,dt=new Map;for(ve=nt;ve<=Ye;ve++){const xt=se[ve]=Ae?cloneIfMounted(se[ve]):normalizeVNode(se[ve]);xt.key!=null&&dt.set(xt.key,ve)}let Ue,lt=0;const yt=Ye-nt+1;let $t=!1,Mt=0;const Lt=new Array(yt);for(ve=0;ve=yt){Qe(xt,we,ge,!0);continue}let xe;if(xt.key!=null)xe=dt.get(xt.key);else for(Ue=nt;Ue<=Ye;Ue++)if(Lt[Ue-nt]===0&&isSameVNodeType(xt,se[Ue])){xe=Ue;break}xe===void 0?Qe(xt,we,ge,!0):(Lt[xe-nt]=ve+1,xe>=Mt?Mt=xe:$t=!0,L(xt,se[xe],Ce,null,we,ge,Ee,ke,Ae),lt++)}const At=$t?getSequence(Lt):EMPTY_ARR;for(Ue=At.length-1,ve=yt-1;ve>=0;ve--){const xt=nt+ve,xe=se[xt],ze=xt+1{const{el:ge,type:Ee,transition:ke,children:Ae,shapeFlag:ve}=re;if(ve&6){Le(re.component.subTree,se,Ce,Ne);return}if(ve&128){re.suspense.move(se,Ce,Ne);return}if(ve&64){Ee.move(re,se,Ce,Fe);return}if(Ee===Fragment){C(ge,se,Ce);for(let We=0;Weke.enter(ge),we);else{const{leave:We,delayLeave:Ye,afterLeave:Je}=ke,nt=()=>C(ge,se,Ce),dt=()=>{We(ge,()=>{nt(),Je&&Je()})};Ye?Ye(ge,nt,dt):dt()}else C(ge,se,Ce)},Qe=(re,se,Ce,Ne=!1,we=!1)=>{const{type:ge,props:Ee,ref:ke,children:Ae,dynamicChildren:ve,shapeFlag:De,patchFlag:We,dirs:Ye}=re;if(ke!=null&&setRef(ke,null,Ce,re,!0),De&256){se.ctx.deactivate(re);return}const Je=De&1&&Ye,nt=!isAsyncWrapper(re);let dt;if(nt&&(dt=Ee&&Ee.onVnodeBeforeUnmount)&&invokeVNodeHook(dt,se,re),De&6)ct(re.component,Ce,Ne);else{if(De&128){re.suspense.unmount(Ce,Ne);return}Je&&invokeDirectiveHook(re,null,se,"beforeUnmount"),De&64?re.type.remove(re,se,Ce,we,Fe,Ne):ve&&(ge!==Fragment||We>0&&We&64)?it(ve,se,Ce,!1,!0):(ge===Fragment&&We&384||!we&&De&16)&&it(Ae,se,Ce),Ne&&rt(re)}(nt&&(dt=Ee&&Ee.onVnodeUnmounted)||Je)&&queuePostRenderEffect(()=>{dt&&invokeVNodeHook(dt,se,re),Je&&invokeDirectiveHook(re,null,se,"unmounted")},Ce)},rt=re=>{const{type:se,el:Ce,anchor:Ne,transition:we}=re;if(se===Fragment){ht(Ce,Ne);return}if(se===Static){W(re);return}const ge=()=>{w(Ce),we&&!we.persisted&&we.afterLeave&&we.afterLeave()};if(re.shapeFlag&1&&we&&!we.persisted){const{leave:Ee,delayLeave:ke}=we,Ae=()=>Ee(Ce,ge);ke?ke(re.el,ge,Ae):Ae()}else ge()},ht=(re,se)=>{let Ce;for(;re!==se;)Ce=I(re),w(re),re=Ce;w(se)},ct=(re,se,Ce)=>{const{bum:Ne,scope:we,update:ge,subTree:Ee,um:ke}=re;Ne&&invokeArrayFns(Ne),we.stop(),ge&&(ge.active=!1,Qe(Ee,re,se,Ce)),ke&&queuePostRenderEffect(ke,se),queuePostRenderEffect(()=>{re.isUnmounted=!0},se),se&&se.pendingBranch&&!se.isUnmounted&&re.asyncDep&&!re.asyncResolved&&re.suspenseId===se.pendingId&&(se.deps--,se.deps===0&&se.resolve())},it=(re,se,Ce,Ne=!1,we=!1,ge=0)=>{for(let Ee=ge;Eere.shapeFlag&6?Be(re.component.subTree):re.shapeFlag&128?re.suspense.next():I(re.anchor||re.el),Ie=(re,se,Ce)=>{re==null?se._vnode&&Qe(se._vnode,null,null,!0):L(se._vnode||null,re,se,null,null,null,Ce),flushPreFlushCbs(),flushPostFlushCbs(),se._vnode=re},Fe={p:L,um:Qe,m:Le,r:rt,mt:fe,mc:X,pc:de,pbc:oe,n:Be,o:d};let ie,$e;return b&&([ie,$e]=b(Fe)),{render:Ie,hydrate:ie,createApp:createAppAPI(Ie,ie)}}function toggleRecurse({effect:d,update:b},x){d.allowRecurse=b.allowRecurse=x}function traverseStaticChildren(d,b,x=!1){const C=d.children,w=b.children;if(isArray$9(C)&&isArray$9(w))for(let A=0;A>1,d[x[$]]0&&(b[C]=x[A-1]),x[A]=C)}}for(A=x.length,S=x[A-1];A-- >0;)x[A]=S,S=b[S];return x}const isTeleport=d=>d.__isTeleport,isTeleportDisabled=d=>d&&(d.disabled||d.disabled===""),isTargetSVG=d=>typeof SVGElement<"u"&&d instanceof SVGElement,resolveTarget=(d,b)=>{const x=d&&d.to;return isString$2(x)?b?b(x):null:x},TeleportImpl={__isTeleport:!0,process(d,b,x,C,w,A,S,$,E,P){const{mc:B,pc:k,pbc:I,o:{insert:R,querySelector:F,createText:L,createComment:z}}=P,V=isTeleportDisabled(b.props);let{shapeFlag:U,children:Q,dynamicChildren:W}=b;if(d==null){const G=b.el=L(""),q=b.anchor=L("");R(G,x,C),R(q,x,C);const K=b.target=resolveTarget(b.props,F),X=b.targetAnchor=L("");K&&(R(X,K),S=S||isTargetSVG(K));const J=(oe,he)=>{U&16&&B(Q,oe,he,w,A,S,$,E)};V?J(x,q):K&&J(K,X)}else{b.el=d.el;const G=b.anchor=d.anchor,q=b.target=d.target,K=b.targetAnchor=d.targetAnchor,X=isTeleportDisabled(d.props),J=X?x:q,oe=X?G:K;if(S=S||isTargetSVG(q),W?(I(d.dynamicChildren,W,J,w,A,S,$),traverseStaticChildren(d,b,!0)):E||k(d,b,J,oe,w,A,S,$,!1),V)X||moveTeleport(b,x,G,P,1);else if((b.props&&b.props.to)!==(d.props&&d.props.to)){const he=b.target=resolveTarget(b.props,F);he&&moveTeleport(b,he,null,P,0)}else X&&moveTeleport(b,q,K,P,1)}updateCssVars(b)},remove(d,b,x,C,{um:w,o:{remove:A}},S){const{shapeFlag:$,children:E,anchor:P,targetAnchor:B,target:k,props:I}=d;if(k&&A(B),(S||!isTeleportDisabled(I))&&(A(P),$&16))for(let R=0;R0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(d),d}function createElementBlock(d,b,x,C,w,A){return setupBlock(createBaseVNode(d,b,x,C,w,A,!0))}function createBlock(d,b,x,C,w){return setupBlock(createVNode(d,b,x,C,w,!0))}function isVNode(d){return d?d.__v_isVNode===!0:!1}function isSameVNodeType(d,b){return d.type===b.type&&d.key===b.key}const InternalObjectKey="__vInternal",normalizeKey=({key:d})=>d!=null?d:null,normalizeRef=({ref:d,ref_key:b,ref_for:x})=>(typeof d=="number"&&(d=""+d),d!=null?isString$2(d)||isRef(d)||isFunction$5(d)?{i:currentRenderingInstance,r:d,k:b,f:!!x}:d:null);function createBaseVNode(d,b=null,x=null,C=0,w=null,A=d===Fragment?0:1,S=!1,$=!1){const E={__v_isVNode:!0,__v_skip:!0,type:d,props:b,key:b&&normalizeKey(b),ref:b&&normalizeRef(b),scopeId:currentScopeId,slotScopeIds:null,children:x,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:A,patchFlag:C,dynamicProps:w,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return $?(normalizeChildren(E,x),A&128&&d.normalize(E)):x&&(E.shapeFlag|=isString$2(x)?8:16),isBlockTreeEnabled>0&&!S&¤tBlock&&(E.patchFlag>0||A&6)&&E.patchFlag!==32&¤tBlock.push(E),E}const createVNode=_createVNode;function _createVNode(d,b=null,x=null,C=0,w=null,A=!1){if((!d||d===NULL_DYNAMIC_COMPONENT)&&(d=Comment),isVNode(d)){const $=cloneVNode(d,b,!0);return x&&normalizeChildren($,x),isBlockTreeEnabled>0&&!A&¤tBlock&&($.shapeFlag&6?currentBlock[currentBlock.indexOf(d)]=$:currentBlock.push($)),$.patchFlag|=-2,$}if(isClassComponent(d)&&(d=d.__vccOpts),b){b=guardReactiveProps(b);let{class:$,style:E}=b;$&&!isString$2($)&&(b.class=normalizeClass($)),isObject$6(E)&&(isProxy(E)&&!isArray$9(E)&&(E=extend$2({},E)),b.style=normalizeStyle(E))}const S=isString$2(d)?1:isSuspense(d)?128:isTeleport(d)?64:isObject$6(d)?4:isFunction$5(d)?2:0;return createBaseVNode(d,b,x,C,w,S,A,!0)}function guardReactiveProps(d){return d?isProxy(d)||InternalObjectKey in d?extend$2({},d):d:null}function cloneVNode(d,b,x=!1){const{props:C,ref:w,patchFlag:A,children:S}=d,$=b?mergeProps(C||{},b):C;return{__v_isVNode:!0,__v_skip:!0,type:d.type,props:$,key:$&&normalizeKey($),ref:b&&b.ref?x&&w?isArray$9(w)?w.concat(normalizeRef(b)):[w,normalizeRef(b)]:normalizeRef(b):w,scopeId:d.scopeId,slotScopeIds:d.slotScopeIds,children:S,target:d.target,targetAnchor:d.targetAnchor,staticCount:d.staticCount,shapeFlag:d.shapeFlag,patchFlag:b&&d.type!==Fragment?A===-1?16:A|16:A,dynamicProps:d.dynamicProps,dynamicChildren:d.dynamicChildren,appContext:d.appContext,dirs:d.dirs,transition:d.transition,component:d.component,suspense:d.suspense,ssContent:d.ssContent&&cloneVNode(d.ssContent),ssFallback:d.ssFallback&&cloneVNode(d.ssFallback),el:d.el,anchor:d.anchor,ctx:d.ctx,ce:d.ce}}function createTextVNode(d=" ",b=0){return createVNode(Text,null,d,b)}function normalizeVNode(d){return d==null||typeof d=="boolean"?createVNode(Comment):isArray$9(d)?createVNode(Fragment,null,d.slice()):typeof d=="object"?cloneIfMounted(d):createVNode(Text,null,String(d))}function cloneIfMounted(d){return d.el===null&&d.patchFlag!==-1||d.memo?d:cloneVNode(d)}function normalizeChildren(d,b){let x=0;const{shapeFlag:C}=d;if(b==null)b=null;else if(isArray$9(b))x=16;else if(typeof b=="object")if(C&65){const w=b.default;w&&(w._c&&(w._d=!1),normalizeChildren(d,w()),w._c&&(w._d=!0));return}else{x=32;const w=b._;!w&&!(InternalObjectKey in b)?b._ctx=currentRenderingInstance:w===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?b._=1:(b._=2,d.patchFlag|=1024))}else isFunction$5(b)?(b={default:b,_ctx:currentRenderingInstance},x=32):(b=String(b),C&64?(x=16,b=[createTextVNode(b)]):x=8);d.children=b,d.shapeFlag|=x}function mergeProps(...d){const b={};for(let x=0;xcurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis$1()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis$1()[settersKey]=[]),globalCurrentInstanceSetters.push(d=>currentInstance=d),internalSetCurrentInstance=d=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(b=>b(d)):globalCurrentInstanceSetters[0](d)};const setCurrentInstance=d=>{internalSetCurrentInstance(d),d.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(d){return d.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(d,b=!1){isInSSRComponentSetup=b;const{props:x,children:C}=d.vnode,w=isStatefulComponent(d);initProps(d,x,w,b),initSlots(d,C);const A=w?setupStatefulComponent(d,b):void 0;return isInSSRComponentSetup=!1,A}function setupStatefulComponent(d,b){const x=d.type;d.accessCache=Object.create(null),d.proxy=markRaw(new Proxy(d.ctx,PublicInstanceProxyHandlers));const{setup:C}=x;if(C){const w=d.setupContext=C.length>1?createSetupContext(d):null;setCurrentInstance(d),pauseTracking();const A=callWithErrorHandling(C,d,0,[d.props,w]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(A)){if(A.then(unsetCurrentInstance,unsetCurrentInstance),b)return A.then(S=>{handleSetupResult(d,S,b)}).catch(S=>{handleError(S,d,0)});d.asyncDep=A}else handleSetupResult(d,A,b)}else finishComponentSetup(d,b)}function handleSetupResult(d,b,x){isFunction$5(b)?d.type.__ssrInlineRender?d.ssrRender=b:d.render=b:isObject$6(b)&&(d.setupState=proxyRefs(b)),finishComponentSetup(d,x)}let compile;function finishComponentSetup(d,b,x){const C=d.type;if(!d.render){if(!b&&compile&&!C.render){const w=C.template||resolveMergedOptions(d).template;if(w){const{isCustomElement:A,compilerOptions:S}=d.appContext.config,{delimiters:$,compilerOptions:E}=C,P=extend$2(extend$2({isCustomElement:A,delimiters:$},S),E);C.render=compile(w,P)}}d.render=C.render||NOOP}setCurrentInstance(d),pauseTracking(),applyOptions(d),resetTracking(),unsetCurrentInstance()}function getAttrsProxy(d){return d.attrsProxy||(d.attrsProxy=new Proxy(d.attrs,{get(b,x){return track(d,"get","$attrs"),b[x]}}))}function createSetupContext(d){const b=x=>{d.exposed=x||{}};return{get attrs(){return getAttrsProxy(d)},slots:d.slots,emit:d.emit,expose:b}}function getExposeProxy(d){if(d.exposed)return d.exposeProxy||(d.exposeProxy=new Proxy(proxyRefs(markRaw(d.exposed)),{get(b,x){if(x in b)return b[x];if(x in publicPropertiesMap)return publicPropertiesMap[x](d)},has(b,x){return x in b||x in publicPropertiesMap}}))}function getComponentName(d,b=!0){return isFunction$5(d)?d.displayName||d.name:d.name||b&&d.__name}function isClassComponent(d){return isFunction$5(d)&&"__vccOpts"in d}const computed=(d,b)=>computed$1(d,b,isInSSRComponentSetup);function h$1(d,b,x){const C=arguments.length;return C===2?isObject$6(b)&&!isArray$9(b)?isVNode(b)?createVNode(d,null,[b]):createVNode(d,b):createVNode(d,null,b):(C>3?x=Array.prototype.slice.call(arguments,2):C===3&&isVNode(x)&&(x=[x]),createVNode(d,b,x))}const ssrContextKey$1=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey$1),version$2="3.3.4",svgNS$1="http://www.w3.org/2000/svg",doc$2=typeof document<"u"?document:null,templateContainer=doc$2&&doc$2.createElement("template"),nodeOps={insert:(d,b,x)=>{b.insertBefore(d,x||null)},remove:d=>{const b=d.parentNode;b&&b.removeChild(d)},createElement:(d,b,x,C)=>{const w=b?doc$2.createElementNS(svgNS$1,d):doc$2.createElement(d,x?{is:x}:void 0);return d==="select"&&C&&C.multiple!=null&&w.setAttribute("multiple",C.multiple),w},createText:d=>doc$2.createTextNode(d),createComment:d=>doc$2.createComment(d),setText:(d,b)=>{d.nodeValue=b},setElementText:(d,b)=>{d.textContent=b},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>doc$2.querySelector(d),setScopeId(d,b){d.setAttribute(b,"")},insertStaticContent(d,b,x,C,w,A){const S=x?x.previousSibling:b.lastChild;if(w&&(w===A||w.nextSibling))for(;b.insertBefore(w.cloneNode(!0),x),!(w===A||!(w=w.nextSibling)););else{templateContainer.innerHTML=C?"".concat(d,""):d;const $=templateContainer.content;if(C){const E=$.firstChild;for(;E.firstChild;)$.appendChild(E.firstChild);$.removeChild(E)}b.insertBefore($,x)}return[S?S.nextSibling:b.firstChild,x?x.previousSibling:b.lastChild]}};function patchClass(d,b,x){const C=d._vtc;C&&(b=(b?[b,...C]:[...C]).join(" ")),b==null?d.removeAttribute("class"):x?d.setAttribute("class",b):d.className=b}function patchStyle(d,b,x){const C=d.style,w=isString$2(x);if(x&&!w){if(b&&!isString$2(b))for(const A in b)x[A]==null&&setStyle(C,A,"");for(const A in x)setStyle(C,A,x[A])}else{const A=C.display;w?b!==x&&(C.cssText=x):b&&d.removeAttribute("style"),"_vod"in d&&(C.display=A)}}const importantRE=/\s*!important$/;function setStyle(d,b,x){if(isArray$9(x))x.forEach(C=>setStyle(d,b,C));else if(x==null&&(x=""),b.startsWith("--"))d.setProperty(b,x);else{const C=autoPrefix(d,b);importantRE.test(x)?d.setProperty(hyphenate(C),x.replace(importantRE,""),"important"):d[C]=x}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(d,b){const x=prefixCache[b];if(x)return x;let C=camelize$1(b);if(C!=="filter"&&C in d)return prefixCache[b]=C;C=capitalize(C);for(let w=0;wcachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(d,b){const x=C=>{if(!C._vts)C._vts=Date.now();else if(C._vts<=x.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(C,x.value),b,5,[C])};return x.value=d,x.attached=getNow(),x}function patchStopImmediatePropagation(d,b){if(isArray$9(b)){const x=d.stopImmediatePropagation;return d.stopImmediatePropagation=()=>{x.call(d),d._stopped=!0},b.map(C=>w=>!w._stopped&&C&&C(w))}else return b}const nativeOnRE=/^on[a-z]/,patchProp=(d,b,x,C,w=!1,A,S,$,E)=>{b==="class"?patchClass(d,C,w):b==="style"?patchStyle(d,x,C):isOn(b)?isModelListener(b)||patchEvent(d,b,x,C,S):(b[0]==="."?(b=b.slice(1),!0):b[0]==="^"?(b=b.slice(1),!1):shouldSetAsProp(d,b,C,w))?patchDOMProp(d,b,C,A,S,$,E):(b==="true-value"?d._trueValue=C:b==="false-value"&&(d._falseValue=C),patchAttr(d,b,C,w))};function shouldSetAsProp(d,b,x,C){return C?!!(b==="innerHTML"||b==="textContent"||b in d&&nativeOnRE.test(b)&&isFunction$5(x)):b==="spellcheck"||b==="draggable"||b==="translate"||b==="form"||b==="list"&&d.tagName==="INPUT"||b==="type"&&d.tagName==="TEXTAREA"||nativeOnRE.test(b)&&isString$2(x)?!1:b in d}const TRANSITION="transition",ANIMATION="animation",Transition=(d,{slots:b})=>h$1(BaseTransition,resolveTransitionProps(d),b);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(d,b=[])=>{isArray$9(d)?d.forEach(x=>x(...b)):d&&d(...b)},hasExplicitCallback=d=>d?isArray$9(d)?d.some(b=>b.length>1):d.length>1:!1;function resolveTransitionProps(d){const b={};for(const Z in d)Z in DOMTransitionPropsValidators||(b[Z]=d[Z]);if(d.css===!1)return b;const{name:x="v",type:C,duration:w,enterFromClass:A="".concat(x,"-enter-from"),enterActiveClass:S="".concat(x,"-enter-active"),enterToClass:$="".concat(x,"-enter-to"),appearFromClass:E=A,appearActiveClass:P=S,appearToClass:B=$,leaveFromClass:k="".concat(x,"-leave-from"),leaveActiveClass:I="".concat(x,"-leave-active"),leaveToClass:R="".concat(x,"-leave-to")}=d,F=normalizeDuration(w),L=F&&F[0],z=F&&F[1],{onBeforeEnter:V,onEnter:U,onEnterCancelled:Q,onLeave:W,onLeaveCancelled:G,onBeforeAppear:q=V,onAppear:K=U,onAppearCancelled:X=Q}=b,J=(Z,ce,fe)=>{removeTransitionClass(Z,ce?B:$),removeTransitionClass(Z,ce?P:S),fe&&fe()},oe=(Z,ce)=>{Z._isLeaving=!1,removeTransitionClass(Z,k),removeTransitionClass(Z,R),removeTransitionClass(Z,I),ce&&ce()},he=Z=>(ce,fe)=>{const me=Z?K:U,ne=()=>J(ce,Z,fe);callHook(me,[ce,ne]),nextFrame(()=>{removeTransitionClass(ce,Z?E:A),addTransitionClass(ce,Z?B:$),hasExplicitCallback(me)||whenTransitionEnds(ce,C,L,ne)})};return extend$2(b,{onBeforeEnter(Z){callHook(V,[Z]),addTransitionClass(Z,A),addTransitionClass(Z,S)},onBeforeAppear(Z){callHook(q,[Z]),addTransitionClass(Z,E),addTransitionClass(Z,P)},onEnter:he(!1),onAppear:he(!0),onLeave(Z,ce){Z._isLeaving=!0;const fe=()=>oe(Z,ce);addTransitionClass(Z,k),forceReflow(),addTransitionClass(Z,I),nextFrame(()=>{Z._isLeaving&&(removeTransitionClass(Z,k),addTransitionClass(Z,R),hasExplicitCallback(W)||whenTransitionEnds(Z,C,z,fe))}),callHook(W,[Z,fe])},onEnterCancelled(Z){J(Z,!1),callHook(Q,[Z])},onAppearCancelled(Z){J(Z,!0),callHook(X,[Z])},onLeaveCancelled(Z){oe(Z),callHook(G,[Z])}})}function normalizeDuration(d){if(d==null)return null;if(isObject$6(d))return[NumberOf(d.enter),NumberOf(d.leave)];{const b=NumberOf(d);return[b,b]}}function NumberOf(d){return toNumber$3(d)}function addTransitionClass(d,b){b.split(/\s+/).forEach(x=>x&&d.classList.add(x)),(d._vtc||(d._vtc=new Set)).add(b)}function removeTransitionClass(d,b){b.split(/\s+/).forEach(C=>C&&d.classList.remove(C));const{_vtc:x}=d;x&&(x.delete(b),x.size||(d._vtc=void 0))}function nextFrame(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let endId=0;function whenTransitionEnds(d,b,x,C){const w=d._endId=++endId,A=()=>{w===d._endId&&C()};if(x)return setTimeout(A,x);const{type:S,timeout:$,propCount:E}=getTransitionInfo(d,b);if(!S)return C();const P=S+"end";let B=0;const k=()=>{d.removeEventListener(P,I),A()},I=R=>{R.target===d&&++B>=E&&k()};setTimeout(()=>{B(x[F]||"").split(", "),w=C("".concat(TRANSITION,"Delay")),A=C("".concat(TRANSITION,"Duration")),S=getTimeout(w,A),$=C("".concat(ANIMATION,"Delay")),E=C("".concat(ANIMATION,"Duration")),P=getTimeout($,E);let B=null,k=0,I=0;b===TRANSITION?S>0&&(B=TRANSITION,k=S,I=A.length):b===ANIMATION?P>0&&(B=ANIMATION,k=P,I=E.length):(k=Math.max(S,P),B=k>0?S>P?TRANSITION:ANIMATION:null,I=B?B===TRANSITION?A.length:E.length:0);const R=B===TRANSITION&&/\b(transform|all)(,|$)/.test(C("".concat(TRANSITION,"Property")).toString());return{type:B,timeout:k,propCount:I,hasTransform:R}}function getTimeout(d,b){for(;d.lengthtoMs(x)+toMs(d[C])))}function toMs(d){return Number(d.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(d,{slots:b}){const x=getCurrentInstance(),C=useTransitionState();let w,A;return onUpdated(()=>{if(!w.length)return;const S=d.moveClass||"".concat(d.name||"v","-move");if(!hasCSSTransform(w[0].el,x.vnode.el,S))return;w.forEach(callPendingCbs),w.forEach(recordPosition);const $=w.filter(applyTranslation);forceReflow(),$.forEach(E=>{const P=E.el,B=P.style;addTransitionClass(P,S),B.transform=B.webkitTransform=B.transitionDuration="";const k=P._moveCb=I=>{I&&I.target!==P||(!I||/transform$/.test(I.propertyName))&&(P.removeEventListener("transitionend",k),P._moveCb=null,removeTransitionClass(P,S))};P.addEventListener("transitionend",k)})}),()=>{const S=toRaw(d),$=resolveTransitionProps(S);let E=S.tag||Fragment;w=A,A=b.default?getTransitionRawChildren(b.default()):[];for(let P=0;Pdelete d.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(d){const b=d.el;b._moveCb&&b._moveCb(),b._enterCb&&b._enterCb()}function recordPosition(d){newPositionMap.set(d,d.el.getBoundingClientRect())}function applyTranslation(d){const b=positionMap.get(d),x=newPositionMap.get(d),C=b.left-x.left,w=b.top-x.top;if(C||w){const A=d.el.style;return A.transform=A.webkitTransform="translate(".concat(C,"px,").concat(w,"px)"),A.transitionDuration="0s",d}}function hasCSSTransform(d,b,x){const C=d.cloneNode();d._vtc&&d._vtc.forEach(S=>{S.split(/\s+/).forEach($=>$&&C.classList.remove($))}),x.split(/\s+/).forEach(S=>S&&C.classList.add(S)),C.style.display="none";const w=b.nodeType===1?b:b.parentNode;w.appendChild(C);const{hasTransform:A}=getTransitionInfo(C);return w.removeChild(C),A}const keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(d,b)=>x=>{if(!("key"in x))return;const C=hyphenate(x.key);if(b.some(w=>w===C||keyNames[w]===C))return d(x)},vShow={beforeMount(d,{value:b},{transition:x}){d._vod=d.style.display==="none"?"":d.style.display,x&&b?x.beforeEnter(d):setDisplay(d,b)},mounted(d,{value:b},{transition:x}){x&&b&&x.enter(d)},updated(d,{value:b,oldValue:x},{transition:C}){!b!=!x&&(C?b?(C.beforeEnter(d),setDisplay(d,!0),C.enter(d)):C.leave(d,()=>{setDisplay(d,!1)}):setDisplay(d,b))},beforeUnmount(d,{value:b}){setDisplay(d,b)}};function setDisplay(d,b){d.style.display=b?d._vod:"none"}const rendererOptions=extend$2({patchProp},nodeOps);let renderer$1;function ensureRenderer(){return renderer$1||(renderer$1=createRenderer(rendererOptions))}const createApp=(...d)=>{const b=ensureRenderer().createApp(...d),{mount:x}=b;return b.mount=C=>{const w=normalizeContainer(C);if(!w)return;const A=b._component;!isFunction$5(A)&&!A.render&&!A.template&&(A.template=w.innerHTML),w.innerHTML="";const S=x(w,!1,w instanceof SVGElement);return w instanceof Element&&(w.removeAttribute("v-cloak"),w.setAttribute("data-v-app","")),S},b};function normalizeContainer(d){return isString$2(d)?document.querySelector(d):d}/*! * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT */const isBrowser$3=typeof window<"u";function isESModule(d){return d.__esModule||d[Symbol.toStringTag]==="Module"}const assign$2=Object.assign;function applyToParams(d,b){const x={};for(const C in b){const w=b[C];x[C]=isArray$8(w)?w.map(d):d(w)}return x}const noop$3=()=>{},isArray$8=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=d=>d.replace(TRAILING_SLASH_RE,"");function parseURL(d,b,x="/"){let C,w={},A="",S="";const $=b.indexOf("#");let E=b.indexOf("?");return $=0&&(E=-1),E>-1&&(C=b.slice(0,E),A=b.slice(E+1,$>-1?$:b.length),w=d(A)),$>-1&&(C=C||b.slice(0,$),S=b.slice($,b.length)),C=resolveRelativePath(C!=null?C:b,x),{fullPath:C+(A&&"?")+A+S,path:C,query:w,hash:S}}function stringifyURL(d,b){const x=b.query?d(b.query):"";return b.path+(x&&"?")+x+(b.hash||"")}function stripBase(d,b){return!b||!d.toLowerCase().startsWith(b.toLowerCase())?d:d.slice(b.length)||"/"}function isSameRouteLocation(d,b,x){const C=b.matched.length-1,w=x.matched.length-1;return C>-1&&C===w&&isSameRouteRecord(b.matched[C],x.matched[w])&&isSameRouteLocationParams(b.params,x.params)&&d(b.query)===d(x.query)&&b.hash===x.hash}function isSameRouteRecord(d,b){return(d.aliasOf||d)===(b.aliasOf||b)}function isSameRouteLocationParams(d,b){if(Object.keys(d).length!==Object.keys(b).length)return!1;for(const x in d)if(!isSameRouteLocationParamsValue(d[x],b[x]))return!1;return!0}function isSameRouteLocationParamsValue(d,b){return isArray$8(d)?isEquivalentArray(d,b):isArray$8(b)?isEquivalentArray(b,d):d===b}function isEquivalentArray(d,b){return isArray$8(b)?d.length===b.length&&d.every((x,C)=>x===b[C]):d.length===1&&d[0]===b}function resolveRelativePath(d,b){if(d.startsWith("/"))return d;if(!d)return b;const x=b.split("/"),C=d.split("/"),w=C[C.length-1];(w===".."||w===".")&&C.push("");let A=x.length-1,S,$;for(S=0;S1&&A--;else break;return x.slice(0,A).join("/")+"/"+C.slice(S-(S===C.length?1:0)).join("/")}var NavigationType;(function(d){d.pop="pop",d.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(d){d.back="back",d.forward="forward",d.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(d){if(!d)if(isBrowser$3){const b=document.querySelector("base");d=b&&b.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),removeTrailingSlash(d)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(d,b){return d.replace(BEFORE_HASH_RE,"#")+b}function getElementPosition(d,b){const x=document.documentElement.getBoundingClientRect(),C=d.getBoundingClientRect();return{behavior:b.behavior,left:C.left-x.left-(b.left||0),top:C.top-x.top-(b.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(d){let b;if("el"in d){const x=d.el,C=typeof x=="string"&&x.startsWith("#"),w=typeof x=="string"?C?document.getElementById(x.slice(1)):document.querySelector(x):x;if(!w)return;b=getElementPosition(w,d)}else b=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(b):window.scrollTo(b.left!=null?b.left:window.pageXOffset,b.top!=null?b.top:window.pageYOffset)}function getScrollKey(d,b){return(history.state?history.state.position-b:-1)+d}const scrollPositions=new Map;function saveScrollPosition(d,b){scrollPositions.set(d,b)}function getSavedScrollPosition(d){const b=scrollPositions.get(d);return scrollPositions.delete(d),b}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(d,b){const{pathname:x,search:C,hash:w}=b,A=d.indexOf("#");if(A>-1){let $=w.includes(d.slice(A))?d.slice(A).length:1,E=w.slice($);return E[0]!=="/"&&(E="/"+E),stripBase(E,"")}return stripBase(x,d)+C+w}function useHistoryListeners(d,b,x,C){let w=[],A=[],S=null;const $=({state:I})=>{const R=createCurrentLocation(d,location),F=x.value,L=b.value;let z=0;if(I){if(x.value=R,b.value=I,S&&S===F){S=null;return}z=L?I.position-L.position:0}else C(R);w.forEach(V=>{V(x.value,F,{delta:z,type:NavigationType.pop,direction:z?z>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function E(){S=x.value}function P(I){w.push(I);const R=()=>{const F=w.indexOf(I);F>-1&&w.splice(F,1)};return A.push(R),R}function B(){const{history:I}=window;I.state&&I.replaceState(assign$2({},I.state,{scroll:computeScrollPosition()}),"")}function k(){for(const I of A)I();A=[],window.removeEventListener("popstate",$),window.removeEventListener("beforeunload",B)}return window.addEventListener("popstate",$),window.addEventListener("beforeunload",B,{passive:!0}),{pauseListeners:E,listen:P,destroy:k}}function buildState(d,b,x,C=!1,w=!1){return{back:d,current:b,forward:x,replaced:C,position:window.history.length,scroll:w?computeScrollPosition():null}}function useHistoryStateNavigation(d){const{history:b,location:x}=window,C={value:createCurrentLocation(d,x)},w={value:b.state};w.value||A(C.value,{back:null,current:C.value,forward:null,position:b.length-1,replaced:!0,scroll:null},!0);function A(E,P,B){const k=d.indexOf("#"),I=k>-1?(x.host&&document.querySelector("base")?d:d.slice(k))+E:createBaseLocation()+d+E;try{b[B?"replaceState":"pushState"](P,"",I),w.value=P}catch(R){console.error(R),x[B?"replace":"assign"](I)}}function S(E,P){const B=assign$2({},b.state,buildState(w.value.back,E,w.value.forward,!0),P,{position:w.value.position});A(E,B,!0),C.value=E}function $(E,P){const B=assign$2({},w.value,b.state,{forward:E,scroll:computeScrollPosition()});A(B.current,B,!0);const k=assign$2({},buildState(C.value,E,null),{position:B.position+1},P);A(E,k,!1),C.value=E}return{location:C,state:w,push:$,replace:S}}function createWebHistory(d){d=normalizeBase(d);const b=useHistoryStateNavigation(d),x=useHistoryListeners(d,b.state,b.location,b.replace);function C(A,S=!0){S||x.pauseListeners(),history.go(A)}const w=assign$2({location:"",base:d,go:C,createHref:createHref.bind(null,d)},b,x);return Object.defineProperty(w,"location",{enumerable:!0,get:()=>b.location.value}),Object.defineProperty(w,"state",{enumerable:!0,get:()=>b.state.value}),w}function createWebHashHistory(d){return d=location.host?d||location.pathname+location.search:"",d.includes("#")||(d+="#"),createWebHistory(d)}function isRouteLocation(d){return typeof d=="string"||d&&typeof d=="object"}function isRouteName(d){return typeof d=="string"||typeof d=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(d){d[d.aborted=4]="aborted",d[d.cancelled=8]="cancelled",d[d.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(d,b){return assign$2(new Error,{type:d,[NavigationFailureSymbol]:!0},b)}function isNavigationFailure(d,b){return d instanceof Error&&NavigationFailureSymbol in d&&(b==null||!!(d.type&b))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(d,b){const x=assign$2({},BASE_PATH_PARSER_OPTIONS,b),C=[];let w=x.start?"^":"";const A=[];for(const P of d){const B=P.length?[]:[90];x.strict&&!P.length&&(w+="/");for(let k=0;kb.length?b.length===1&&b[0]===40+40?1:-1:0}function comparePathParserScore(d,b){let x=0;const C=d.score,w=b.score;for(;x0&&b[b.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(d){if(!d)return[[]];if(d==="/")return[[ROOT_TOKEN]];if(!d.startsWith("/"))throw new Error('Invalid path "'.concat(d,'"'));function b(R){throw new Error("ERR (".concat(x,')/"').concat(P,'": ').concat(R))}let x=0,C=x;const w=[];let A;function S(){A&&w.push(A),A=[]}let $=0,E,P="",B="";function k(){P&&(x===0?A.push({type:0,value:P}):x===1||x===2||x===3?(A.length>1&&(E==="*"||E==="+")&&b("A repeatable param (".concat(P,") must be alone in its segment. eg: '/:ids+.")),A.push({type:1,value:P,regexp:B,repeatable:E==="*"||E==="+",optional:E==="*"||E==="?"})):b("Invalid state to consume buffer"),P="")}function I(){P+=E}for(;${S(U)}:noop$3}function S(B){if(isRouteName(B)){const k=C.get(B);k&&(C.delete(B),x.splice(x.indexOf(k),1),k.children.forEach(S),k.alias.forEach(S))}else{const k=x.indexOf(B);k>-1&&(x.splice(k,1),B.record.name&&C.delete(B.record.name),B.children.forEach(S),B.alias.forEach(S))}}function $(){return x}function E(B){let k=0;for(;k=0&&(B.record.path!==x[k].record.path||!isRecordChildOf(B,x[k]));)k++;x.splice(k,0,B),B.record.name&&!isAliasRecord(B)&&C.set(B.record.name,B)}function P(B,k){let I,R={},F,L;if("name"in B&&B.name){if(I=C.get(B.name),!I)throw createRouterError(1,{location:B});L=I.record.name,R=assign$2(paramsFromLocation(k.params,I.keys.filter(U=>!U.optional).map(U=>U.name)),B.params&¶msFromLocation(B.params,I.keys.map(U=>U.name))),F=I.stringify(R)}else if("path"in B)F=B.path,I=x.find(U=>U.re.test(F)),I&&(R=I.parse(F),L=I.record.name);else{if(I=k.name?C.get(k.name):x.find(U=>U.re.test(k.path)),!I)throw createRouterError(1,{location:B,currentLocation:k});L=I.record.name,R=assign$2({},k.params,B.params),F=I.stringify(R)}const z=[];let V=I;for(;V;)z.unshift(V.record),V=V.parent;return{name:L,path:F,params:R,matched:z,meta:mergeMetaFields(z)}}return d.forEach(B=>A(B)),{addRoute:A,resolve:P,removeRoute:S,getRoutes:$,getRecordMatcher:w}}function paramsFromLocation(d,b){const x={};for(const C of b)C in d&&(x[C]=d[C]);return x}function normalizeRouteRecord(d){return{path:d.path,redirect:d.redirect,name:d.name,meta:d.meta||{},aliasOf:void 0,beforeEnter:d.beforeEnter,props:normalizeRecordProps(d),children:d.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in d?d.components||null:d.component&&{default:d.component}}}function normalizeRecordProps(d){const b={},x=d.props||!1;if("component"in d)b.default=x;else for(const C in d.components)b[C]=typeof x=="object"?x[C]:x;return b}function isAliasRecord(d){for(;d;){if(d.record.aliasOf)return!0;d=d.parent}return!1}function mergeMetaFields(d){return d.reduce((b,x)=>assign$2(b,x.meta),{})}function mergeOptions(d,b){const x={};for(const C in d)x[C]=C in b?b[C]:d[C];return x}function isRecordChildOf(d,b){return b.children.some(x=>x===d||isRecordChildOf(d,x))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(d){return encodeURI(""+d).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(d){return commonEncode(d).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(d){return commonEncode(d).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(d){return encodeQueryValue(d).replace(EQUAL_RE,"%3D")}function encodePath(d){return commonEncode(d).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(d){return d==null?"":encodePath(d).replace(SLASH_RE,"%2F")}function decode$4(d){try{return decodeURIComponent(""+d)}catch(b){}return""+d}function parseQuery(d){const b={};if(d===""||d==="?")return b;const C=(d[0]==="?"?d.slice(1):d).split("&");for(let w=0;wA&&encodeQueryValue(A)):[C&&encodeQueryValue(C)]).forEach(A=>{A!==void 0&&(b+=(b.length?"&":"")+x,A!=null&&(b+="="+A))})}return b}function normalizeQuery(d){const b={};for(const x in d){const C=d[x];C!==void 0&&(b[x]=isArray$8(C)?C.map(w=>w==null?null:""+w):C==null?C:""+C)}return b}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let d=[];function b(C){return d.push(C),()=>{const w=d.indexOf(C);w>-1&&d.splice(w,1)}}function x(){d=[]}return{add:b,list:()=>d.slice(),reset:x}}function guardToPromiseFn(d,b,x,C,w){const A=C&&(C.enterCallbacks[w]=C.enterCallbacks[w]||[]);return()=>new Promise((S,$)=>{const E=k=>{k===!1?$(createRouterError(4,{from:x,to:b})):k instanceof Error?$(k):isRouteLocation(k)?$(createRouterError(2,{from:b,to:k})):(A&&C.enterCallbacks[w]===A&&typeof k=="function"&&A.push(k),S())},P=d.call(C&&C.instances[w],b,x,E);let B=Promise.resolve(P);d.length<3&&(B=B.then(E)),B.catch(k=>$(k))})}function extractComponentsGuards(d,b,x,C){const w=[];for(const A of d)for(const S in A.components){let $=A.components[S];if(!(b!=="beforeRouteEnter"&&!A.instances[S]))if(isRouteComponent($)){const P=($.__vccOpts||$)[b];P&&w.push(guardToPromiseFn(P,x,C,A,S))}else{let E=$();w.push(()=>E.then(P=>{if(!P)return Promise.reject(new Error("Couldn't resolve component \"".concat(S,'" at "').concat(A.path,'"')));const B=isESModule(P)?P.default:P;A.components[S]=B;const I=(B.__vccOpts||B)[b];return I&&guardToPromiseFn(I,x,C,A,S)()}))}}return w}function isRouteComponent(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function useLink(d){const b=inject(routerKey),x=inject(routeLocationKey),C=computed(()=>b.resolve(unref(d.to))),w=computed(()=>{const{matched:E}=C.value,{length:P}=E,B=E[P-1],k=x.matched;if(!B||!k.length)return-1;const I=k.findIndex(isSameRouteRecord.bind(null,B));if(I>-1)return I;const R=getOriginalPath(E[P-2]);return P>1&&getOriginalPath(B)===R&&k[k.length-1].path!==R?k.findIndex(isSameRouteRecord.bind(null,E[P-2])):I}),A=computed(()=>w.value>-1&&includesParams(x.params,C.value.params)),S=computed(()=>w.value>-1&&w.value===x.matched.length-1&&isSameRouteLocationParams(x.params,C.value.params));function $(E={}){return guardEvent(E)?b[unref(d.replace)?"replace":"push"](unref(d.to)).catch(noop$3):Promise.resolve()}return{route:C,href:computed(()=>C.value.href),isActive:A,isExactActive:S,navigate:$}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(d,{slots:b}){const x=reactive(useLink(d)),{options:C}=inject(routerKey),w=computed(()=>({[getLinkClass(d.activeClass,C.linkActiveClass,"router-link-active")]:x.isActive,[getLinkClass(d.exactActiveClass,C.linkExactActiveClass,"router-link-exact-active")]:x.isExactActive}));return()=>{const A=b.default&&b.default(x);return d.custom?A:h$1("a",{"aria-current":x.isExactActive?d.ariaCurrentValue:null,href:x.href,onClick:x.navigate,class:w.value},A)}}}),RouterLink=RouterLinkImpl;function guardEvent(d){if(!(d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)&&!d.defaultPrevented&&!(d.button!==void 0&&d.button!==0)){if(d.currentTarget&&d.currentTarget.getAttribute){const b=d.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(b))return}return d.preventDefault&&d.preventDefault(),!0}}function includesParams(d,b){for(const x in b){const C=b[x],w=d[x];if(typeof C=="string"){if(C!==w)return!1}else if(!isArray$8(w)||w.length!==C.length||C.some((A,S)=>A!==w[S]))return!1}return!0}function getOriginalPath(d){return d?d.aliasOf?d.aliasOf.path:d.path:""}const getLinkClass=(d,b,x)=>d!=null?d:b!=null?b:x,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(d,{attrs:b,slots:x}){const C=inject(routerViewLocationKey),w=computed(()=>d.route||C.value),A=inject(viewDepthKey,0),S=computed(()=>{let P=unref(A);const{matched:B}=w.value;let k;for(;(k=B[P])&&!k.components;)P++;return P}),$=computed(()=>w.value.matched[S.value]);provide(viewDepthKey,computed(()=>S.value+1)),provide(matchedRouteKey,$),provide(routerViewLocationKey,w);const E=ref();return watch(()=>[E.value,$.value,d.name],([P,B,k],[I,R,F])=>{B&&(B.instances[k]=P,R&&R!==B&&P&&P===I&&(B.leaveGuards.size||(B.leaveGuards=R.leaveGuards),B.updateGuards.size||(B.updateGuards=R.updateGuards))),P&&B&&(!R||!isSameRouteRecord(B,R)||!I)&&(B.enterCallbacks[k]||[]).forEach(L=>L(P))},{flush:"post"}),()=>{const P=w.value,B=d.name,k=$.value,I=k&&k.components[B];if(!I)return normalizeSlot(x.default,{Component:I,route:P});const R=k.props[B],F=R?R===!0?P.params:typeof R=="function"?R(P):R:null,z=h$1(I,assign$2({},F,b,{onVnodeUnmounted:V=>{V.component.isUnmounted&&(k.instances[B]=null)},ref:E}));return normalizeSlot(x.default,{Component:z,route:P})||z}}});function normalizeSlot(d,b){if(!d)return null;const x=d(b);return x.length===1?x[0]:x}const RouterView=RouterViewImpl;function createRouter(d){const b=createRouterMatcher(d.routes,d),x=d.parseQuery||parseQuery,C=d.stringifyQuery||stringifyQuery,w=d.history,A=useCallbacks(),S=useCallbacks(),$=useCallbacks(),E=shallowRef(START_LOCATION_NORMALIZED);let P=START_LOCATION_NORMALIZED;isBrowser$3&&d.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const B=applyToParams.bind(null,Be=>""+Be),k=applyToParams.bind(null,encodeParam),I=applyToParams.bind(null,decode$4);function R(Be,Ie){let Fe,ie;return isRouteName(Be)?(Fe=b.getRecordMatcher(Be),ie=Ie):ie=Be,b.addRoute(ie,Fe)}function F(Be){const Ie=b.getRecordMatcher(Be);Ie&&b.removeRoute(Ie)}function L(){return b.getRoutes().map(Be=>Be.record)}function z(Be){return!!b.getRecordMatcher(Be)}function V(Be,Ie){if(Ie=assign$2({},Ie||E.value),typeof Be=="string"){const Ce=parseURL(x,Be,Ie.path),Ne=b.resolve({path:Ce.path},Ie),we=w.createHref(Ce.fullPath);return assign$2(Ce,Ne,{params:I(Ne.params),hash:decode$4(Ce.hash),redirectedFrom:void 0,href:we})}let Fe;if("path"in Be)Fe=assign$2({},Be,{path:parseURL(x,Be.path,Ie.path).path});else{const Ce=assign$2({},Be.params);for(const Ne in Ce)Ce[Ne]==null&&delete Ce[Ne];Fe=assign$2({},Be,{params:k(Ce)}),Ie.params=k(Ie.params)}const ie=b.resolve(Fe,Ie),$e=Be.hash||"";ie.params=B(I(ie.params));const re=stringifyURL(C,assign$2({},Be,{hash:encodeHash($e),path:ie.path})),se=w.createHref(re);return assign$2({fullPath:re,hash:$e,query:C===stringifyQuery?normalizeQuery(Be.query):Be.query||{}},ie,{redirectedFrom:void 0,href:se})}function U(Be){return typeof Be=="string"?parseURL(x,Be,E.value.path):assign$2({},Be)}function Q(Be,Ie){if(P!==Be)return createRouterError(8,{from:Ie,to:Be})}function W(Be){return K(Be)}function G(Be){return W(assign$2(U(Be),{replace:!0}))}function q(Be){const Ie=Be.matched[Be.matched.length-1];if(Ie&&Ie.redirect){const{redirect:Fe}=Ie;let ie=typeof Fe=="function"?Fe(Be):Fe;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=U(ie):{path:ie},ie.params={}),assign$2({query:Be.query,hash:Be.hash,params:"path"in ie?{}:Be.params},ie)}}function K(Be,Ie){const Fe=P=V(Be),ie=E.value,$e=Be.state,re=Be.force,se=Be.replace===!0,Ce=q(Fe);if(Ce)return K(assign$2(U(Ce),{state:typeof Ce=="object"?assign$2({},$e,Ce.state):$e,force:re,replace:se}),Ie||Fe);const Ne=Fe;Ne.redirectedFrom=Ie;let we;return!re&&isSameRouteLocation(C,ie,Fe)&&(we=createRouterError(16,{to:Ne,from:ie}),Le(ie,ie,!0,!1)),(we?Promise.resolve(we):oe(Ne,ie)).catch(ge=>isNavigationFailure(ge)?isNavigationFailure(ge,2)?ge:be(ge):de(ge,Ne,ie)).then(ge=>{if(ge){if(isNavigationFailure(ge,2))return K(assign$2({replace:se},U(ge.to),{state:typeof ge.to=="object"?assign$2({},$e,ge.to.state):$e,force:re}),Ie||Ne)}else ge=Z(Ne,ie,!0,se,$e);return he(Ne,ie,ge),ge})}function X(Be,Ie){const Fe=Q(Be,Ie);return Fe?Promise.reject(Fe):Promise.resolve()}function J(Be){const Ie=ht.values().next().value;return Ie&&typeof Ie.runWithContext=="function"?Ie.runWithContext(Be):Be()}function oe(Be,Ie){let Fe;const[ie,$e,re]=extractChangingRecords(Be,Ie);Fe=extractComponentsGuards(ie.reverse(),"beforeRouteLeave",Be,Ie);for(const Ce of ie)Ce.leaveGuards.forEach(Ne=>{Fe.push(guardToPromiseFn(Ne,Be,Ie))});const se=X.bind(null,Be,Ie);return Fe.push(se),it(Fe).then(()=>{Fe=[];for(const Ce of A.list())Fe.push(guardToPromiseFn(Ce,Be,Ie));return Fe.push(se),it(Fe)}).then(()=>{Fe=extractComponentsGuards($e,"beforeRouteUpdate",Be,Ie);for(const Ce of $e)Ce.updateGuards.forEach(Ne=>{Fe.push(guardToPromiseFn(Ne,Be,Ie))});return Fe.push(se),it(Fe)}).then(()=>{Fe=[];for(const Ce of re)if(Ce.beforeEnter)if(isArray$8(Ce.beforeEnter))for(const Ne of Ce.beforeEnter)Fe.push(guardToPromiseFn(Ne,Be,Ie));else Fe.push(guardToPromiseFn(Ce.beforeEnter,Be,Ie));return Fe.push(se),it(Fe)}).then(()=>(Be.matched.forEach(Ce=>Ce.enterCallbacks={}),Fe=extractComponentsGuards(re,"beforeRouteEnter",Be,Ie),Fe.push(se),it(Fe))).then(()=>{Fe=[];for(const Ce of S.list())Fe.push(guardToPromiseFn(Ce,Be,Ie));return Fe.push(se),it(Fe)}).catch(Ce=>isNavigationFailure(Ce,8)?Ce:Promise.reject(Ce))}function he(Be,Ie,Fe){$.list().forEach(ie=>J(()=>ie(Be,Ie,Fe)))}function Z(Be,Ie,Fe,ie,$e){const re=Q(Be,Ie);if(re)return re;const se=Ie===START_LOCATION_NORMALIZED,Ce=isBrowser$3?history.state:{};Fe&&(ie||se?w.replace(Be.fullPath,assign$2({scroll:se&&Ce&&Ce.scroll},$e)):w.push(Be.fullPath,$e)),E.value=Be,Le(Be,Ie,Fe,se),be()}let ce;function fe(){ce||(ce=w.listen((Be,Ie,Fe)=>{if(!ct.listening)return;const ie=V(Be),$e=q(ie);if($e){K(assign$2($e,{replace:!0}),ie).catch(noop$3);return}P=ie;const re=E.value;isBrowser$3&&saveScrollPosition(getScrollKey(re.fullPath,Fe.delta),computeScrollPosition()),oe(ie,re).catch(se=>isNavigationFailure(se,12)?se:isNavigationFailure(se,2)?(K(se.to,ie).then(Ce=>{isNavigationFailure(Ce,20)&&!Fe.delta&&Fe.type===NavigationType.pop&&w.go(-1,!1)}).catch(noop$3),Promise.reject()):(Fe.delta&&w.go(-Fe.delta,!1),de(se,ie,re))).then(se=>{se=se||Z(ie,re,!1),se&&(Fe.delta&&!isNavigationFailure(se,8)?w.go(-Fe.delta,!1):Fe.type===NavigationType.pop&&isNavigationFailure(se,20)&&w.go(-1,!1)),he(ie,re,se)}).catch(noop$3)}))}let me=useCallbacks(),ne=useCallbacks(),te;function de(Be,Ie,Fe){be(Be);const ie=ne.list();return ie.length?ie.forEach($e=>$e(Be,Ie,Fe)):console.error(Be),Promise.reject(Be)}function le(){return te&&E.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Be,Ie)=>{me.add([Be,Ie])})}function be(Be){return te||(te=!Be,fe(),me.list().forEach(([Ie,Fe])=>Be?Fe(Be):Ie()),me.reset()),Be}function Le(Be,Ie,Fe,ie){const{scrollBehavior:$e}=d;if(!isBrowser$3||!$e)return Promise.resolve();const re=!Fe&&getSavedScrollPosition(getScrollKey(Be.fullPath,0))||(ie||!Fe)&&history.state&&history.state.scroll||null;return nextTick().then(()=>$e(Be,Ie,re)).then(se=>se&&scrollToPosition(se)).catch(se=>de(se,Be,Ie))}const Qe=Be=>w.go(Be);let rt;const ht=new Set,ct={currentRoute:E,listening:!0,addRoute:R,removeRoute:F,hasRoute:z,getRoutes:L,resolve:V,options:d,push:W,replace:G,go:Qe,back:()=>Qe(-1),forward:()=>Qe(1),beforeEach:A.add,beforeResolve:S.add,afterEach:$.add,onError:ne.add,isReady:le,install(Be){const Ie=this;Be.component("RouterLink",RouterLink),Be.component("RouterView",RouterView),Be.config.globalProperties.$router=Ie,Object.defineProperty(Be.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(E)}),isBrowser$3&&!rt&&E.value===START_LOCATION_NORMALIZED&&(rt=!0,W(w.location).catch($e=>{}));const Fe={};for(const $e in START_LOCATION_NORMALIZED)Object.defineProperty(Fe,$e,{get:()=>E.value[$e],enumerable:!0});Be.provide(routerKey,Ie),Be.provide(routeLocationKey,shallowReactive(Fe)),Be.provide(routerViewLocationKey,E);const ie=Be.unmount;ht.add(Be),Be.unmount=function(){ht.delete(Be),ht.size<1&&(P=START_LOCATION_NORMALIZED,ce&&ce(),ce=null,E.value=START_LOCATION_NORMALIZED,rt=!1,te=!1),ie()}}};function it(Be){return Be.reduce((Ie,Fe)=>Ie.then(()=>J(Fe)),Promise.resolve())}return ct}function extractChangingRecords(d,b){const x=[],C=[],w=[],A=Math.max(b.matched.length,d.matched.length);for(let S=0;SisSameRouteRecord(P,$))?C.push($):x.push($));const E=d.matched[S];E&&(b.matched.find(P=>isSameRouteRecord(P,E))||w.push(E))}return[x,C,w]}function useRouter(){return inject(routerKey)}function useRoute$1(){return inject(routeLocationKey)}function noop$2(){}const extend$1=Object.assign,inBrowser$3=typeof window<"u",isObject$5=d=>d!==null&&typeof d=="object",isDef=d=>d!=null,isFunction$4=d=>typeof d=="function",isPromise=d=>isObject$5(d)&&isFunction$4(d.then)&&isFunction$4(d.catch),isNumeric=d=>typeof d=="number"||/^\d+(\.\d+)?$/.test(d),isIOS$1=()=>inBrowser$3?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get$1(d,b){const x=b.split(".");let C=d;return x.forEach(w=>{var A;C=isObject$5(C)&&(A=C[w])!=null?A:""}),C}function pick$1(d,b,x){return b.reduce((C,w)=>((!x||d[w]!==void 0)&&(C[w]=d[w]),C),{})}const unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeNumberProp=d=>({type:Number,default:d}),makeStringProp=d=>({type:String,default:d});var inBrowser$2=typeof window<"u",isWindow$1=d=>d===window,makeDOMRect=(d,b)=>({top:0,left:0,right:d,bottom:b,width:d,height:b}),useRect=d=>{const b=unref(d);if(isWindow$1(b)){const x=b.innerWidth,C=b.innerHeight;return makeDOMRect(x,C)}return b!=null&&b.getBoundingClientRect?b.getBoundingClientRect():makeDOMRect(0,0)};function useParent$1(d){const b=inject(d,null);if(b){const x=getCurrentInstance(),{link:C,unlink:w,internalChildren:A}=b;C(x),onUnmounted(()=>w(x));const S=computed(()=>A.indexOf(x));return{parent:b,index:S}}return{parent:null,index:ref(-1)}}function flattenVNodes(d){const b=[],x=C=>{Array.isArray(C)&&C.forEach(w=>{var A;isVNode(w)&&(b.push(w),(A=w.component)!=null&&A.subTree&&(b.push(w.component.subTree),x(w.component.subTree.children)),w.children&&x(w.children))})};return x(d),b}var findVNodeIndex=(d,b)=>{const x=d.indexOf(b);return x===-1?d.findIndex(C=>b.key!==void 0&&b.key!==null&&C.type===b.type&&C.key===b.key):x};function sortChildren(d,b,x){const C=flattenVNodes(d.subTree.children);x.sort((A,S)=>findVNodeIndex(C,A.vnode)-findVNodeIndex(C,S.vnode));const w=x.map(A=>A.proxy);b.sort((A,S)=>{const $=w.indexOf(A),E=w.indexOf(S);return $-E})}function useChildren$1(d){const b=reactive([]),x=reactive([]),C=getCurrentInstance();return{children:b,linkChildren:A=>{provide(d,Object.assign({link:E=>{E.proxy&&(x.push(E),b.push(E.proxy),sortChildren(C,b,x))},unlink:E=>{const P=x.indexOf(E);b.splice(P,1),x.splice(P,1)},children:b,internalChildren:x},A))}}}function onMountedOrActivated(d){let b;onMounted(()=>{d(),nextTick(()=>{b=!0})}),onActivated(()=>{b&&d()})}function useEventListener$2(d,b,x={}){if(!inBrowser$2)return;const{target:C=window,passive:w=!1,capture:A=!1}=x;let S=!1,$;const E=k=>{if(S)return;const I=unref(k);I&&!$&&(I.addEventListener(d,b,{capture:A,passive:w}),$=!0)},P=k=>{if(S)return;const I=unref(k);I&&$&&(I.removeEventListener(d,b,A),$=!1)};onUnmounted(()=>P(C)),onDeactivated(()=>P(C)),onMountedOrActivated(()=>E(C));let B;return isRef(C)&&(B=watch(C,(k,I)=>{P(I),E(k)})),()=>{B==null||B(),P(C),S=!0}}var width,height;function useWindowSize(){if(!width&&(width=ref(0),height=ref(0),inBrowser$2)){const d=()=>{width.value=window.innerWidth,height.value=window.innerHeight};d(),window.addEventListener("resize",d,{passive:!0}),window.addEventListener("orientationchange",d,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser$2?window:void 0;function isElement$2(d){return d.tagName!=="HTML"&&d.tagName!=="BODY"&&d.nodeType===1}function getScrollParent$1(d,b=defaultRoot){let x=d;for(;x&&x!==b&&isElement$2(x);){const{overflowY:C}=window.getComputedStyle(x);if(overflowScrollReg.test(C))return x;x=x.parentNode}return b}var visibility;function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser$2)){const d=()=>{visibility.value=document.hidden?"hidden":"visible"};d(),window.addEventListener("visibilitychange",d)}return visibility}isIOS$1();const stopPropagation=d=>d.stopPropagation();function preventDefault$1(d,b){(typeof d.cancelable!="boolean"||d.cancelable)&&d.preventDefault(),b&&stopPropagation(d)}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(d){if(isDef(d))return isNumeric(d)?"".concat(d,"px"):String(d)}function getSizeStyle(d){if(isDef(d)){if(Array.isArray(d))return{width:addUnit(d[0]),height:addUnit(d[1])};const b=addUnit(d);return{width:b,height:b}}}function getZIndexStyle(d){const b={};return d!==void 0&&(b.zIndex=+d),b}const camelizeRE=/-(\w)/g,camelize=d=>d.replace(camelizeRE,(b,x)=>x.toUpperCase()),{hasOwnProperty:hasOwnProperty$d}=Object.prototype;function assignKey(d,b,x){const C=b[x];isDef(C)&&(!hasOwnProperty$d.call(d,x)||!isObject$5(C)?d[x]=C:d[x]=deepAssign(Object(d[x]),C))}function deepAssign(d,b){return Object.keys(b).forEach(x=>{assignKey(d,b,x)}),d}var stdin_default$d={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(d,b)=>"".concat(d,"年").concat(b,"月"),rangePrompt:d=>"最多选择 ".concat(d," 天")},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:d=>"".concat(d,"折"),condition:d=>"满".concat(d,"元可用")},vanCouponCell:{title:"优惠券",count:d=>"".concat(d,"张可用")},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=ref("zh-CN"),messages=reactive({"zh-CN":stdin_default$d}),Locale={messages(){return messages[lang.value]},use(d,b){lang.value=d,this.add({[d]:b})},add(d={}){deepAssign(messages,d)}};var stdin_default$c=Locale;function createTranslate(d){const b=camelize(d)+".";return(x,...C)=>{const w=stdin_default$c.messages(),A=get$1(w,b+x)||get$1(w,x);return isFunction$4(A)?A(...C):A}}function genBem(d,b){return b?typeof b=="string"?" ".concat(d,"--").concat(b):Array.isArray(b)?b.reduce((x,C)=>x+genBem(d,C),""):Object.keys(b).reduce((x,C)=>x+(b[C]?genBem(d,C):""),""):""}function createBEM(d){return(b,x)=>(b&&typeof b!="string"&&(x=b,b=""),b=b?"".concat(d,"__").concat(b):d,"".concat(b).concat(genBem(b,x)))}function createNamespace$1(d){const b="van-".concat(d);return[b,createBEM(b),createTranslate(b)]}const BORDER="van-hairline",BORDER_TOP="".concat(BORDER,"--top"),BORDER_LEFT="".concat(BORDER,"--left"),BORDER_BOTTOM="".concat(BORDER,"--bottom"),BORDER_SURROUND="".concat(BORDER,"--surround"),HAPTICS_FEEDBACK="van-haptics-feedback",TAP_OFFSET=5;function callInterceptor(d,{args:b=[],done:x,canceled:C}){if(d){const w=d.apply(null,b);isPromise(w)?w.then(A=>{A?x():C&&C()}).catch(noop$2):w?x():C&&C()}else x()}function withInstall$1(d){return d.install=b=>{const{name:x}=d;x&&(b.component(x,d),b.component(camelize("-".concat(x)),d))},d}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(d){const b=inject(POPUP_TOGGLE_KEY,null);b&&watch(b,x=>{x&&d()})}const useHeight=(d,b)=>{const x=ref(),C=()=>{x.value=useRect(d).height};return onMounted(()=>{if(nextTick(C),b)for(let w=1;w<=3;w++)setTimeout(C,100*w)}),onPopupReopen(()=>nextTick(C)),watch([windowWidth,windowHeight],C),x};function usePlaceholder(d,b){const x=useHeight(d,!0);return C=>createVNode("div",{class:b("placeholder"),style:{height:x.value?"".concat(x.value,"px"):void 0}},[C()])}const[name$c,bem$c]=createNamespace$1("action-bar"),ACTION_BAR_KEY=Symbol(name$c),actionBarProps={placeholder:Boolean,safeAreaInsetBottom:truthProp};var stdin_default$b=defineComponent({name:name$c,props:actionBarProps,setup(d,{slots:b}){const x=ref(),C=usePlaceholder(x,bem$c),{linkChildren:w}=useChildren$1(ACTION_BAR_KEY);w();const A=()=>{var S;return createVNode("div",{ref:x,class:[bem$c(),{"van-safe-area-bottom":d.safeAreaInsetBottom}]},[(S=b.default)==null?void 0:S.call(b)])};return()=>d.placeholder?C(A):A()}});const ActionBar=withInstall$1(stdin_default$b);function useExpose(d){const b=getCurrentInstance();b&&extend$1(b.proxy,d)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:d,url:b,replace:x,$router:C}){d&&C?C[x?"replace":"push"](d):b&&(x?location.replace(b):location.href=b)}function useRoute(){const d=getCurrentInstance().proxy;return()=>route(d)}const[name$b,bem$b]=createNamespace$1("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$a=defineComponent({name:name$b,props:badgeProps,setup(d,{slots:b}){const x=()=>{if(b.content)return!0;const{content:$,showZero:E}=d;return isDef($)&&$!==""&&(E||$!==0&&$!=="0")},C=()=>{const{dot:$,max:E,content:P}=d;if(!$&&x())return b.content?b.content():isDef(E)&&isNumeric(P)&&+P>+E?"".concat(E,"+"):P},w=$=>$.startsWith("-")?$.replace("-",""):"-".concat($),A=computed(()=>{const $={background:d.color};if(d.offset){const[E,P]=d.offset,{position:B}=d,[k,I]=B.split("-");b.default?(typeof P=="number"?$[k]=addUnit(k==="top"?P:-P):$[k]=k==="top"?addUnit(P):w(P),typeof E=="number"?$[I]=addUnit(I==="left"?E:-E):$[I]=I==="left"?addUnit(E):w(E)):($.marginTop=addUnit(P),$.marginLeft=addUnit(E))}return $}),S=()=>{if(x()||d.dot)return createVNode("div",{class:bem$b([d.position,{dot:d.dot,fixed:!!b.default}]),style:A.value},[C()])};return()=>{if(b.default){const{tag:$}=d;return createVNode($,{class:bem$b("wrapper")},{default:()=>[b.default(),S()]})}return S()}}});const Badge=withInstall$1(stdin_default$a);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,[name$a,bem$a]=createNamespace$1("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$a),[name$9,bem$9]=createNamespace$1("icon"),isImage=d=>d==null?void 0:d.includes("/"),iconProps$1={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$9=defineComponent({name:name$9,props:iconProps$1,setup(d,{slots:b}){const x=inject(CONFIG_PROVIDER_KEY,null),C=computed(()=>d.classPrefix||(x==null?void 0:x.iconPrefix)||bem$9());return()=>{const{tag:w,dot:A,name:S,size:$,badge:E,color:P}=d,B=isImage(S);return createVNode(Badge,mergeProps({dot:A,tag:w,class:[C.value,B?"":"".concat(C.value,"-").concat(S)],style:{color:P,fontSize:addUnit($)},content:E},d.badgeProps),{default:()=>{var k;return[(k=b.default)==null?void 0:k.call(b),B&&createVNode("img",{class:bem$9("image"),src:S},null)]}})}}});const Icon$1=withInstall$1(stdin_default$9),[name$8,bem$8]=createNamespace$1("loading"),SpinIcon=Array(12).fill(null).map((d,b)=>createVNode("i",{class:bem$8("line",String(b+1))},null)),CircularIcon=createVNode("svg",{class:bem$8("circular"),viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$8=defineComponent({name:name$8,props:loadingProps,setup(d,{slots:b}){const x=computed(()=>extend$1({color:d.color},getSizeStyle(d.size))),C=()=>{const A=d.type==="spinner"?SpinIcon:CircularIcon;return createVNode("span",{class:bem$8("spinner",d.type),style:x.value},[b.icon?b.icon():A])},w=()=>{var A;if(b.default)return createVNode("span",{class:bem$8("text"),style:{fontSize:addUnit(d.textSize),color:(A=d.textColor)!=null?A:d.color}},[b.default()])};return()=>{const{type:A,vertical:S}=d;return createVNode("div",{class:bem$8([A,{vertical:S}]),"aria-live":"polite","aria-busy":!0},[C(),w()])}}});const Loading=withInstall$1(stdin_default$8),[name$7,bem$7]=createNamespace$1("button"),buttonProps$1=extend$1({},routeProps,{tag:makeStringProp("button"),text:String,icon:String,type:makeStringProp("default"),size:makeStringProp("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:makeStringProp("button"),loadingSize:numericProp,loadingText:String,loadingType:String,iconPosition:makeStringProp("left")});var stdin_default$7=defineComponent({name:name$7,props:buttonProps$1,emits:["click"],setup(d,{emit:b,slots:x}){const C=useRoute(),w=()=>x.loading?x.loading():createVNode(Loading,{size:d.loadingSize,type:d.loadingType,class:bem$7("loading")},null),A=()=>{if(d.loading)return w();if(x.icon)return createVNode("div",{class:bem$7("icon")},[x.icon()]);if(d.icon)return createVNode(Icon$1,{name:d.icon,class:bem$7("icon"),classPrefix:d.iconPrefix},null)},S=()=>{let P;if(d.loading?P=d.loadingText:P=x.default?x.default():d.text,P)return createVNode("span",{class:bem$7("text")},[P])},$=()=>{const{color:P,plain:B}=d;if(P){const k={color:B?P:"white"};return B||(k.background=P),P.includes("gradient")?k.border=0:k.borderColor=P,k}},E=P=>{d.loading?preventDefault$1(P):d.disabled||(b("click",P),C())};return()=>{const{tag:P,type:B,size:k,block:I,round:R,plain:F,square:L,loading:z,disabled:V,hairline:U,nativeType:Q,iconPosition:W}=d,G=[bem$7([B,k,{plain:F,block:I,round:R,square:L,loading:z,disabled:V,hairline:U}]),{[BORDER_SURROUND]:U}];return createVNode(P,{type:Q,class:G,style:$(),disabled:V,onClick:E},{default:()=>[createVNode("div",{class:bem$7("content")},[W==="left"&&A(),S(),W==="right"&&A()])]})}}});const Button$1=withInstall$1(stdin_default$7),[name$6,bem$6]=createNamespace$1("action-bar-button"),actionBarButtonProps=extend$1({},routeProps,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var stdin_default$6=defineComponent({name:name$6,props:actionBarButtonProps,setup(d,{slots:b}){const x=useRoute(),{parent:C,index:w}=useParent$1(ACTION_BAR_KEY),A=computed(()=>{if(C){const $=C.children[w.value-1];return!($&&"isButton"in $)}}),S=computed(()=>{if(C){const $=C.children[w.value+1];return!($&&"isButton"in $)}});return useExpose({isButton:!0}),()=>{const{type:$,icon:E,text:P,color:B,loading:k,disabled:I}=d;return createVNode(Button$1,{class:bem$6([$,{last:S.value,first:A.value}]),size:"large",type:$,icon:E,color:B,loading:k,disabled:I,onClick:x},{default:()=>[b.default?b.default():P]})}}});const ActionBarButton=withInstall$1(stdin_default$6),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp},popupSharedPropKeys=Object.keys(popupSharedProps);function getDirection(d,b){return d>b?"horizontal":b>d?"vertical":""}function useTouch(){const d=ref(0),b=ref(0),x=ref(0),C=ref(0),w=ref(0),A=ref(0),S=ref(""),$=ref(!0),E=()=>S.value==="vertical",P=()=>S.value==="horizontal",B=()=>{x.value=0,C.value=0,w.value=0,A.value=0,S.value="",$.value=!0};return{move:R=>{const F=R.touches[0];x.value=(F.clientX<0?0:F.clientX)-d.value,C.value=F.clientY-b.value,w.value=Math.abs(x.value),A.value=Math.abs(C.value);const L=10;(!S.value||w.valueTAP_OFFSET||A.value>TAP_OFFSET)&&($.value=!1)},start:R=>{B(),d.value=R.touches[0].clientX,b.value=R.touches[0].clientY},reset:B,startX:d,startY:b,deltaX:x,deltaY:C,offsetX:w,offsetY:A,direction:S,isVertical:E,isHorizontal:P,isTap:$}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(d,b){const x=useTouch(),C="01",w="10",A=B=>{x.move(B);const k=x.deltaY.value>0?w:C,I=getScrollParent$1(B.target,d.value),{scrollHeight:R,offsetHeight:F,scrollTop:L}=I;let z="11";L===0?z=F>=R?"00":"01":L+F>=R&&(z="10"),z!=="11"&&x.isVertical()&&!(parseInt(z,2)&parseInt(k,2))&&preventDefault$1(B,!0)},S=()=>{document.addEventListener("touchstart",x.start),document.addEventListener("touchmove",A,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},$=()=>{totalLockCount&&(document.removeEventListener("touchstart",x.start),document.removeEventListener("touchmove",A),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},E=()=>b()&&S(),P=()=>b()&&$();onMountedOrActivated(E),onDeactivated(P),onBeforeUnmount(P),watch(b,B=>{B?S():$()})}function useLazyRender(d){const b=ref(!1);return watch(d,x=>{x&&(b.value=x)},{immediate:!0}),x=>()=>b.value?x():null}const[name$5,bem$5]=createNamespace$1("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object};var stdin_default$5=defineComponent({name:name$5,props:overlayProps,setup(d,{slots:b}){const x=ref(),C=useLazyRender(()=>d.show||!d.lazyRender),w=S=>{d.lockScroll&&preventDefault$1(S,!0)},A=C(()=>{var S;const $=extend$1(getZIndexStyle(d.zIndex),d.customStyle);return isDef(d.duration)&&($.animationDuration="".concat(d.duration,"s")),withDirectives(createVNode("div",{ref:x,style:$,class:[bem$5(),d.className]},[(S=b.default)==null?void 0:S.call(b)]),[[vShow,d.show]])});return useEventListener$2("touchmove",w,{target:x}),()=>createVNode(Transition,{name:"van-fade",appear:!0},{default:A})}});const Overlay=withInstall$1(stdin_default$5),popupProps=extend$1({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$4,bem$4]=createNamespace$1("popup");var stdin_default$4=defineComponent({name:name$4,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(d,{emit:b,attrs:x,slots:C}){let w,A;const S=ref(),$=ref(),E=useLazyRender(()=>d.show||!d.lazyRender),P=computed(()=>{const q={zIndex:S.value};if(isDef(d.duration)){const K=d.position==="center"?"animationDuration":"transitionDuration";q[K]="".concat(d.duration,"s")}return q}),B=()=>{w||(w=!0,S.value=d.zIndex!==void 0?+d.zIndex:useGlobalZIndex(),b("open"))},k=()=>{w&&callInterceptor(d.beforeClose,{done(){w=!1,b("close"),b("update:show",!1)}})},I=q=>{b("clickOverlay",q),d.closeOnClickOverlay&&k()},R=()=>{if(d.overlay)return createVNode(Overlay,{show:d.show,class:d.overlayClass,zIndex:S.value,duration:d.duration,customStyle:d.overlayStyle,role:d.closeOnClickOverlay?"button":void 0,tabindex:d.closeOnClickOverlay?0:void 0,onClick:I},{default:C["overlay-content"]})},F=q=>{b("clickCloseIcon",q),k()},L=()=>{if(d.closeable)return createVNode(Icon$1,{role:"button",tabindex:0,name:d.closeIcon,class:[bem$4("close-icon",d.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:d.iconPrefix,onClick:F},null)};let z;const V=()=>{z&&clearTimeout(z),z=setTimeout(()=>{b("opened")})},U=()=>b("closed"),Q=q=>b("keydown",q),W=E(()=>{var q;const{round:K,position:X,safeAreaInsetTop:J,safeAreaInsetBottom:oe}=d;return withDirectives(createVNode("div",mergeProps({ref:$,style:P.value,role:"dialog",tabindex:0,class:[bem$4({round:K,[X]:X}),{"van-safe-area-top":J,"van-safe-area-bottom":oe}],onKeydown:Q},x),[(q=C.default)==null?void 0:q.call(C),L()]),[[vShow,d.show]])}),G=()=>{const{position:q,transition:K,transitionAppear:X}=d,J=q==="center"?"van-fade":"van-popup-slide-".concat(q);return createVNode(Transition,{name:K||J,appear:X,onAfterEnter:V,onAfterLeave:U},{default:W})};return watch(()=>d.show,q=>{q&&!w&&(B(),x.tabindex===0&&nextTick(()=>{var K;(K=$.value)==null||K.focus()})),!q&&w&&(w=!1,b("close"))}),useExpose({popupRef:$}),useLockScroll($,()=>d.show&&d.lockScroll),useEventListener$2("popstate",()=>{d.closeOnPopstate&&(k(),A=!1)}),onMounted(()=>{d.show&&B()}),onActivated(()=>{A&&(b("update:show",!0),A=!1)}),onDeactivated(()=>{d.show&&d.teleport&&(k(),A=!0)}),provide(POPUP_TOGGLE_KEY,()=>d.show),()=>d.teleport?createVNode(Teleport,{to:d.teleport},{default:()=>[R(),G()]}):createVNode(Fragment,null,[R(),G()])}});const Popup=withInstall$1(stdin_default$4);let current=0;function useId(){const d=getCurrentInstance(),{name:b="unknown"}=(d==null?void 0:d.type)||{};return"".concat(b,"-").concat(++current)}let lockCount$1=0;function lockClick(d){d?(lockCount$1||document.body.classList.add("van-toast--unclickable"),lockCount$1++):lockCount$1&&(lockCount$1--,lockCount$1||document.body.classList.remove("van-toast--unclickable"))}const[name$3,bem$3]=createNamespace$1("toast"),popupInheritProps=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay"],toastProps={icon:String,show:Boolean,type:makeStringProp("text"),overlay:Boolean,message:numericProp,iconSize:numericProp,duration:makeNumberProp(2e3),position:makeStringProp("middle"),teleport:[String,Object],wordBreak:String,className:unknownProp,iconPrefix:String,transition:makeStringProp("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:unknownProp,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean};var stdin_default$3=defineComponent({name:name$3,props:toastProps,emits:["update:show"],setup(d,{emit:b,slots:x}){let C,w=!1;const A=()=>{const k=d.show&&d.forbidClick;w!==k&&(w=k,lockClick(w))},S=k=>b("update:show",k),$=()=>{d.closeOnClick&&S(!1)},E=()=>clearTimeout(C),P=()=>{const{icon:k,type:I,iconSize:R,iconPrefix:F,loadingType:L}=d;if(k||I==="success"||I==="fail")return createVNode(Icon$1,{name:k||I,size:R,class:bem$3("icon"),classPrefix:F},null);if(I==="loading")return createVNode(Loading,{class:bem$3("loading"),size:R,type:L},null)},B=()=>{const{type:k,message:I}=d;if(x.message)return createVNode("div",{class:bem$3("text")},[x.message()]);if(isDef(I)&&I!=="")return k==="html"?createVNode("div",{key:0,class:bem$3("text"),innerHTML:String(I)},null):createVNode("div",{class:bem$3("text")},[I])};return watch(()=>[d.show,d.forbidClick],A),watch(()=>[d.show,d.type,d.message,d.duration],()=>{E(),d.show&&d.duration>0&&(C=setTimeout(()=>{S(!1)},d.duration))}),onMounted(A),onUnmounted(A),()=>createVNode(Popup,mergeProps({class:[bem$3([d.position,d.wordBreak==="normal"?"break-normal":d.wordBreak,{[d.type]:!d.icon}]),d.className],lockScroll:!1,onClick:$,onClosed:E,"onUpdate:show":S},pick$1(d,popupInheritProps)),{default:()=>[P(),B()]})}});function usePopupState(){const d=reactive({show:!1}),b=w=>{d.show=w},x=w=>{extend$1(d,w,{transitionAppear:!0}),b(!0)},C=()=>b(!1);return useExpose({open:x,close:C,toggle:b}),{open:x,close:C,state:d,toggle:b}}function mountComponent(d){const b=createApp(d),x=document.createElement("div");return document.body.appendChild(x),{instance:b.mount(x),unmount(){b.unmount(),document.body.removeChild(x)}}}const defaultOptions={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let queue$1=[],allowMultiple=!1,currentOptions$1=extend$1({},defaultOptions);const defaultOptionsMap=new Map;function parseOptions(d){return isObject$5(d)?d:{message:d}}function createInstance(){const{instance:d,unmount:b}=mountComponent({setup(){const x=ref(""),{open:C,state:w,close:A,toggle:S}=usePopupState(),$=()=>{},E=()=>createVNode(stdin_default$3,mergeProps(w,{onClosed:$,"onUpdate:show":S}),null);return watch(x,P=>{w.message=P}),getCurrentInstance().render=E,{open:C,close:A,message:x}}});return d}function getInstance(){if(!queue$1.length||allowMultiple){const d=createInstance();queue$1.push(d)}return queue$1[queue$1.length-1]}function showToast(d={}){if(!inBrowser$3)return{};const b=getInstance(),x=parseOptions(d);return b.open(extend$1({},currentOptions$1,defaultOptionsMap.get(x.type||currentOptions$1.type),x)),b}withInstall$1(stdin_default$3);const[name$2,bem$2]=createNamespace$1("empty"),emptyProps$1={image:makeStringProp("default"),imageSize:[Number,String,Array],description:String};var stdin_default$2=defineComponent({name:name$2,props:emptyProps$1,setup(d,{slots:b}){const x=()=>{const V=b.description?b.description():d.description;if(V)return createVNode("p",{class:bem$2("description")},[V])},C=()=>{if(b.default)return createVNode("div",{class:bem$2("bottom")},[b.default()])},w=useId(),A=V=>"".concat(w,"-").concat(V),S=V=>"url(#".concat(A(V),")"),$=(V,U,Q)=>createVNode("stop",{"stop-color":V,offset:"".concat(U,"%"),"stop-opacity":Q},null),E=(V,U)=>[$(V,0),$(U,100)],P=V=>[createVNode("defs",null,[createVNode("radialGradient",{id:A(V),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[$("#EBEDF0",0),$("#F2F3F5",100,.3)])]),createVNode("ellipse",{fill:S(V),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],B=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:A("a"),x1:"64%",y1:"100%",x2:"64%"},[$("#FFF",0,.5),$("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M36 131V53H16v20H2v58h34z",fill:S("a")},null),createVNode("path",{d:"M123 15h22v14h9v77h-31V15z",fill:S("a")},null)])],k=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:A("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[$("#F2F3F5",0,.3),$("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:S("b")},null),createVNode("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:S("b")},null)])],I=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{id:A(1),x1:"64%",y1:"100%",x2:"64%"},[$("#FFF",0,.5),$("#F2F3F5",100)]),createVNode("linearGradient",{id:A(2),x1:"50%",x2:"50%",y2:"84%"},[$("#EBEDF0",0),$("#DCDEE0",100,0)]),createVNode("linearGradient",{id:A(3),x1:"100%",x2:"100%",y2:"100%"},[E("#EAEDF0","#DCDEE0")]),createVNode("radialGradient",{id:A(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[$("#EBEDF0",0),$("#FFF",100,0)])]),createVNode("g",{fill:"none"},[B(),createVNode("path",{fill:S(4),d:"M0 139h160v21H0z"},null),createVNode("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:S(2)},null),createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[createVNode("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:S(3)},null),createVNode("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:S(3)},null),createVNode("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:S(3)},null),createVNode("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:S(3)},null)]),createVNode("g",{transform:"translate(31 105)"},[createVNode("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),createVNode("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),R=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:A(5)},[E("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:A(6)},[E("#EAEDF1","#DCDEE0")]),createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:A(7)},[E("#EAEDF1","#DCDEE0")])]),B(),k(),createVNode("g",{transform:"translate(36 50)",fill:"none"},[createVNode("g",{transform:"translate(8)"},[createVNode("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),createVNode("rect",{fill:S(5),width:"64",height:"66",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),createVNode("g",{transform:"translate(15 17)",fill:S(6)},[createVNode("rect",{width:"34",height:"6",rx:"1"},null),createVNode("path",{d:"M0 14h34v6H0z"},null),createVNode("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),createVNode("rect",{fill:S(7),y:"61",width:"88",height:"28",rx:"1"},null),createVNode("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),F=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:A(8)},[E("#EAEDF1","#DCDEE0")])]),B(),k(),P("c"),createVNode("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:S(8)},null)]),L=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:A(9)},[E("#EEE","#D8D8D8")]),createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:A(10)},[E("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:A(11)},[E("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:A(12)},[E("#FFF","#F7F8FA")])]),B(),k(),P("d"),createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none"},[createVNode("rect",{fill:S(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),createVNode("rect",{fill:S(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),createVNode("circle",{stroke:S(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),createVNode("circle",{fill:S(12),cx:"27",cy:"27",r:"16"},null),createVNode("path",{d:"M37 7c-8 0-15 5-16 12",stroke:S(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),z=()=>{var V;if(b.image)return b.image();const U={error:F,search:L,network:I,default:R};return((V=U[d.image])==null?void 0:V.call(U))||createVNode("img",{src:d.image},null)};return()=>createVNode("div",{class:bem$2()},[createVNode("div",{class:bem$2("image"),style:getSizeStyle(d.imageSize)},[z()]),x(),C()])}});const Empty=withInstall$1(stdin_default$2),[name$1,bem$1,t$1]=createNamespace$1("dialog"),dialogProps$1=extend$1({},popupSharedProps,{title:String,theme:String,width:numericProp,message:[String,Function],callback:Function,allowHtml:Boolean,className:unknownProp,transition:makeStringProp("van-dialog-bounce"),messageAlign:String,closeOnPopstate:truthProp,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:truthProp,closeOnClickOverlay:Boolean}),popupInheritKeys=[...popupSharedPropKeys,"transition","closeOnPopstate"];var stdin_default$1=defineComponent({name:name$1,props:dialogProps$1,emits:["confirm","cancel","keydown","update:show"],setup(d,{emit:b,slots:x}){const C=ref(),w=reactive({confirm:!1,cancel:!1}),A=V=>b("update:show",V),S=V=>{var U;A(!1),(U=d.callback)==null||U.call(d,V)},$=V=>()=>{d.show&&(b(V),d.beforeClose?(w[V]=!0,callInterceptor(d.beforeClose,{args:[V],done(){S(V),w[V]=!1},canceled(){w[V]=!1}})):S(V))},E=$("cancel"),P=$("confirm"),B=withKeys(V=>{var U,Q;if(V.target!==((Q=(U=C.value)==null?void 0:U.popupRef)==null?void 0:Q.value))return;({Enter:d.showConfirmButton?P:noop$2,Escape:d.showCancelButton?E:noop$2})[V.key](),b("keydown",V)},["enter","esc"]),k=()=>{const V=x.title?x.title():d.title;if(V)return createVNode("div",{class:bem$1("header",{isolated:!d.message&&!x.default})},[V])},I=V=>{const{message:U,allowHtml:Q,messageAlign:W}=d,G=bem$1("message",{"has-title":V,[W]:W}),q=isFunction$4(U)?U():U;return Q&&typeof q=="string"?createVNode("div",{class:G,innerHTML:q},null):createVNode("div",{class:G},[q])},R=()=>{if(x.default)return createVNode("div",{class:bem$1("content")},[x.default()]);const{title:V,message:U,allowHtml:Q}=d;if(U){const W=!!(V||x.title);return createVNode("div",{key:Q?1:0,class:bem$1("content",{isolated:!W})},[I(W)])}},F=()=>createVNode("div",{class:[BORDER_TOP,bem$1("footer")]},[d.showCancelButton&&createVNode(Button$1,{size:"large",text:d.cancelButtonText||t$1("cancel"),class:bem$1("cancel"),style:{color:d.cancelButtonColor},loading:w.cancel,disabled:d.cancelButtonDisabled,onClick:E},null),d.showConfirmButton&&createVNode(Button$1,{size:"large",text:d.confirmButtonText||t$1("confirm"),class:[bem$1("confirm"),{[BORDER_LEFT]:d.showCancelButton}],style:{color:d.confirmButtonColor},loading:w.confirm,disabled:d.confirmButtonDisabled,onClick:P},null)]),L=()=>createVNode(ActionBar,{class:bem$1("footer")},{default:()=>[d.showCancelButton&&createVNode(ActionBarButton,{type:"warning",text:d.cancelButtonText||t$1("cancel"),class:bem$1("cancel"),color:d.cancelButtonColor,loading:w.cancel,disabled:d.cancelButtonDisabled,onClick:E},null),d.showConfirmButton&&createVNode(ActionBarButton,{type:"danger",text:d.confirmButtonText||t$1("confirm"),class:bem$1("confirm"),color:d.confirmButtonColor,loading:w.confirm,disabled:d.confirmButtonDisabled,onClick:P},null)]}),z=()=>x.footer?x.footer():d.theme==="round-button"?L():F();return()=>{const{width:V,title:U,theme:Q,message:W,className:G}=d;return createVNode(Popup,mergeProps({ref:C,role:"dialog",class:[bem$1([Q]),G],style:{width:addUnit(V)},tabindex:0,"aria-labelledby":U||W,onKeydown:B,"onUpdate:show":A},pick$1(d,popupInheritKeys)),{default:()=>[k(),R(),z()]})}}});let instance;const DEFAULT_OPTIONS={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1};let currentOptions=extend$1({},DEFAULT_OPTIONS);function initInstance(){({instance}=mountComponent({setup(){const{state:b,toggle:x}=usePopupState();return()=>createVNode(stdin_default$1,mergeProps(b,{"onUpdate:show":x}),null)}}))}function showDialog(d){return inBrowser$3?new Promise((b,x)=>{instance||initInstance(),instance.open(extend$1({},currentOptions,d,{callback:C=>{(C==="confirm"?b:x)(C)}}))}):Promise.resolve()}const showConfirmDialog=d=>showDialog(extend$1({showCancelButton:!0},d));withInstall$1(stdin_default$1);const[name,bem]=createNamespace$1("nav-bar"),navBarProps={title:String,fixed:Boolean,zIndex:numericProp,border:truthProp,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:truthProp};var stdin_default=defineComponent({name,props:navBarProps,emits:["clickLeft","clickRight"],setup(d,{emit:b,slots:x}){const C=ref(),w=usePlaceholder(C,bem),A=B=>b("clickLeft",B),S=B=>b("clickRight",B),$=()=>x.left?x.left():[d.leftArrow&&createVNode(Icon$1,{class:bem("arrow"),name:"arrow-left"},null),d.leftText&&createVNode("span",{class:bem("text")},[d.leftText])],E=()=>x.right?x.right():createVNode("span",{class:bem("text")},[d.rightText]),P=()=>{const{title:B,fixed:k,border:I,zIndex:R}=d,F=getZIndexStyle(R),L=d.leftArrow||d.leftText||x.left,z=d.rightText||x.right;return createVNode("div",{ref:C,style:F,class:[bem({fixed:k}),{[BORDER_BOTTOM]:I,"van-safe-area-top":d.safeAreaInsetTop}]},[createVNode("div",{class:bem("content")},[L&&createVNode("div",{class:[bem("left"),d.clickable?HAPTICS_FEEDBACK:""],onClick:A},[$()]),createVNode("div",{class:[bem("title"),"van-ellipsis"]},[x.title?x.title():B]),z&&createVNode("div",{class:[bem("right"),d.clickable?HAPTICS_FEEDBACK:""],onClick:S},[E()])])])};return()=>d.fixed&&d.placeholder?w(P):P()}});const NavBar=withInstall$1(stdin_default),TheError=defineComponent({name:"The-error",setup(d,b){return()=>createVNode("div",null,[createVNode(NavBar,{leftArrow:!0,onClickLeft:()=>{}},null),createVNode(Empty,{image:"error",description:"网络开小差,请稍后重试"},{default:()=>[createVNode(Button$1,{type:"primary",size:"small",onClick:()=>history.go(0)},{default:()=>[createTextVNode("重新加载")]})]})])}}),storeData=reactive({status:"init",user:{},platformType:"TEACHER",platformApi:"/edu-app",proxy:"",isApp:!1}),setUserInfo=d=>{storeData.status="login",storeData.user=d||{}},token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(d,b){try{return[decodeURIComponent(d.join(""))]}catch(w){}if(d.length===1)return d;b=b||1;const x=d.slice(0,b),C=d.slice(b);return Array.prototype.concat.call([],decodeComponents(x),decodeComponents(C))}function decode$3(d){try{return decodeURIComponent(d)}catch(b){let x=d.match(singleMatcher)||[];for(let C=1;Cd==null,strictUriEncode=d=>encodeURIComponent(d).replace(/[!'()*]/g,b=>"%".concat(b.charCodeAt(0).toString(16).toUpperCase())),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(d){switch(d.arrayFormat){case"index":return b=>(x,C)=>{const w=x.length;return C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?x:C===null?[...x,[encode$1(b,d),"[",w,"]"].join("")]:[...x,[encode$1(b,d),"[",encode$1(w,d),"]=",encode$1(C,d)].join("")]};case"bracket":return b=>(x,C)=>C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?x:C===null?[...x,[encode$1(b,d),"[]"].join("")]:[...x,[encode$1(b,d),"[]=",encode$1(C,d)].join("")];case"colon-list-separator":return b=>(x,C)=>C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?x:C===null?[...x,[encode$1(b,d),":list="].join("")]:[...x,[encode$1(b,d),":list=",encode$1(C,d)].join("")];case"comma":case"separator":case"bracket-separator":{const b=d.arrayFormat==="bracket-separator"?"[]=":"=";return x=>(C,w)=>w===void 0||d.skipNull&&w===null||d.skipEmptyString&&w===""?C:(w=w===null?"":w,C.length===0?[[encode$1(x,d),b,encode$1(w,d)].join("")]:[[C,encode$1(w,d)].join(d.arrayFormatSeparator)])}default:return b=>(x,C)=>C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?x:C===null?[...x,encode$1(b,d)]:[...x,[encode$1(b,d),"=",encode$1(C,d)].join("")]}}function parserForArrayFormat(d){let b;switch(d.arrayFormat){case"index":return(x,C,w)=>{if(b=/\[(\d*)]$/.exec(x),x=x.replace(/\[\d*]$/,""),!b){w[x]=C;return}w[x]===void 0&&(w[x]={}),w[x][b[1]]=C};case"bracket":return(x,C,w)=>{if(b=/(\[])$/.exec(x),x=x.replace(/\[]$/,""),!b){w[x]=C;return}if(w[x]===void 0){w[x]=[C];return}w[x]=[...w[x],C]};case"colon-list-separator":return(x,C,w)=>{if(b=/(:list)$/.exec(x),x=x.replace(/:list$/,""),!b){w[x]=C;return}if(w[x]===void 0){w[x]=[C];return}w[x]=[...w[x],C]};case"comma":case"separator":return(x,C,w)=>{const A=typeof C=="string"&&C.includes(d.arrayFormatSeparator),S=typeof C=="string"&&!A&&decode$2(C,d).includes(d.arrayFormatSeparator);C=S?decode$2(C,d):C;const $=A||S?C.split(d.arrayFormatSeparator).map(E=>decode$2(E,d)):C===null?C:decode$2(C,d);w[x]=$};case"bracket-separator":return(x,C,w)=>{const A=/(\[])$/.test(x);if(x=x.replace(/\[]$/,""),!A){w[x]=C&&decode$2(C,d);return}const S=C===null?[]:C.split(d.arrayFormatSeparator).map($=>decode$2($,d));if(w[x]===void 0){w[x]=S;return}w[x]=[...w[x],...S]};default:return(x,C,w)=>{if(w[x]===void 0){w[x]=C;return}w[x]=[...[w[x]].flat(),C]}}}function validateArrayFormatSeparator(d){if(typeof d!="string"||d.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode$1(d,b){return b.encode?b.strict?strictUriEncode(d):encodeURIComponent(d):d}function decode$2(d,b){return b.decode?decodeUriComponent(d):d}function keysSorter(d){return Array.isArray(d)?d.sort():typeof d=="object"?keysSorter(Object.keys(d)).sort((b,x)=>Number(b)-Number(x)).map(b=>d[b]):d}function removeHash(d){const b=d.indexOf("#");return b!==-1&&(d=d.slice(0,b)),d}function getHash(d){let b="";const x=d.indexOf("#");return x!==-1&&(b=d.slice(x)),b}function parseValue(d,b){return b.parseNumbers&&!Number.isNaN(Number(d))&&typeof d=="string"&&d.trim()!==""?d=Number(d):b.parseBooleans&&d!==null&&(d.toLowerCase()==="true"||d.toLowerCase()==="false")&&(d=d.toLowerCase()==="true"),d}function extract(d){d=removeHash(d);const b=d.indexOf("?");return b===-1?"":d.slice(b+1)}function parse$3(d,b){b={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...b},validateArrayFormatSeparator(b.arrayFormatSeparator);const x=parserForArrayFormat(b),C=Object.create(null);if(typeof d!="string"||(d=d.trim().replace(/^[?#&]/,""),!d))return C;for(const w of d.split("&")){if(w==="")continue;const A=b.decode?w.replace(/\+/g," "):w;let[S,$]=splitOnFirst(A,"=");S===void 0&&(S=A),$=$===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?$:decode$2($,b),x(decode$2(S,b),$,C)}for(const[w,A]of Object.entries(C))if(typeof A=="object"&&A!==null)for(const[S,$]of Object.entries(A))A[S]=parseValue($,b);else C[w]=parseValue(A,b);return b.sort===!1?C:(b.sort===!0?Object.keys(C).sort():Object.keys(C).sort(b.sort)).reduce((w,A)=>{const S=C[A];return S&&typeof S=="object"&&!Array.isArray(S)?w[A]=keysSorter(S):w[A]=S,w},Object.create(null))}function stringify$2(d,b){if(!d)return"";b={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...b},validateArrayFormatSeparator(b.arrayFormatSeparator);const x=S=>b.skipNull&&isNullOrUndefined(d[S])||b.skipEmptyString&&d[S]==="",C=encoderForArrayFormat(b),w={};for(const[S,$]of Object.entries(d))x(S)||(w[S]=$);const A=Object.keys(w);return b.sort!==!1&&A.sort(b.sort),A.map(S=>{const $=d[S];return $===void 0?"":$===null?encode$1(S,b):Array.isArray($)?$.length===0&&b.arrayFormat==="bracket-separator"?encode$1(S,b)+"[]":$.reduce(C(S),[]).join("&"):encode$1(S,b)+"="+encode$1($,b)}).filter(S=>S.length>0).join("&")}function parseUrl(d,b){var w,A;b={decode:!0,...b};let[x,C]=splitOnFirst(d,"#");return x===void 0&&(x=d),{url:(A=(w=x==null?void 0:x.split("?"))==null?void 0:w[0])!=null?A:"",query:parse$3(extract(d),b),...b&&b.parseFragmentIdentifier&&C?{fragmentIdentifier:decode$2(C,b)}:{}}}function stringifyUrl(d,b){b={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...b};const x=removeHash(d.url).split("?")[0]||"",C=extract(d.url),w={...parse$3(C,{sort:!1}),...d.query};let A=stringify$2(w,b);A&&(A="?".concat(A));let S=getHash(d.url);if(d.fragmentIdentifier){const $=new URL(x);$.hash=d.fragmentIdentifier,S=b[encodeFragmentIdentifier]?$.hash:"#".concat(d.fragmentIdentifier)}return"".concat(x).concat(A).concat(S)}function pick(d,b,x){x={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...x};const{url:C,query:w,fragmentIdentifier:A}=parseUrl(d,x);return stringifyUrl({url:C,query:includeKeys(w,b),fragmentIdentifier:A},x)}function exclude(d,b,x){const C=Array.isArray(b)?w=>!b.includes(w):(w,A)=>!b(w,A);return pick(d,C,x)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse:parse$3,parseUrl,pick,stringify:stringify$2,stringifyUrl},Symbol.toStringTag,{value:"Module"})),getQuery=()=>{let d={};try{d={...queryString.parse(location.search),...queryString.parse(location.hash.split("?")[1])}}catch(b){console.log("解析query错误:",b)}return{...d}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}function getAugmentedNamespace(d){if(d.__esModule)return d;var b=d.default;if(typeof b=="function"){var x=function C(){return this instanceof C?Reflect.construct(b,arguments,this.constructor):b.apply(this,arguments)};x.prototype=b.prototype}else x={};return Object.defineProperty(x,"__esModule",{value:!0}),Object.keys(d).forEach(function(C){var w=Object.getOwnPropertyDescriptor(d,C);Object.defineProperty(x,C,w.get?w:{enumerable:!0,get:function(){return d[C]}})}),x}var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var b={},x=Symbol("test"),C=Object(x);if(typeof x=="string"||Object.prototype.toString.call(x)!=="[object Symbol]"||Object.prototype.toString.call(C)!=="[object Symbol]")return!1;var w=42;b[x]=w;for(x in b)return!1;if(typeof Object.keys=="function"&&Object.keys(b).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(b).length!==0)return!1;var A=Object.getOwnPropertySymbols(b);if(A.length!==1||A[0]!==x||!Object.prototype.propertyIsEnumerable.call(b,x))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(b,x);if(S.value!==w||S.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$2=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(b){var x=this;if(typeof x!="function"||toStr$1.call(x)!==funcType)throw new TypeError(ERROR_MESSAGE+x);for(var C=slice$2.call(arguments,1),w,A=function(){if(this instanceof w){var B=x.apply(this,C.concat(slice$2.call(arguments)));return Object(B)===B?B:this}else return x.apply(b,C.concat(slice$2.call(arguments)))},S=Math.max(0,x.length-C.length),$=[],E=0;E"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto)try{null.error}catch(d){var errorProto=getProto(getProto(d));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function d(b){var x;if(b==="%AsyncFunction%")x=getEvalledConstructor("async function () {}");else if(b==="%GeneratorFunction%")x=getEvalledConstructor("function* () {}");else if(b==="%AsyncGeneratorFunction%")x=getEvalledConstructor("async function* () {}");else if(b==="%AsyncGenerator%"){var C=d("%AsyncGeneratorFunction%");C&&(x=C.prototype)}else if(b==="%AsyncIteratorPrototype%"){var w=d("%AsyncGenerator%");w&&getProto&&(x=getProto(w.prototype))}return INTRINSICS[b]=x,x},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$1=src$1,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName$1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=function(b){var x=$strSlice(b,0,1),C=$strSlice(b,-1);if(x==="%"&&C!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(C==="%"&&x!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var w=[];return $replace$1(b,rePropName$1,function(A,S,$,E){w[w.length]=$?$replace$1(E,reEscapeChar$1,"$1"):S||A}),w},getBaseIntrinsic=function(b,x){var C=b,w;if(hasOwn$1(LEGACY_ALIASES,C)&&(w=LEGACY_ALIASES[C],C="%"+w[0]+"%"),hasOwn$1(INTRINSICS,C)){var A=INTRINSICS[C];if(A===needsEval&&(A=doEval(C)),typeof A>"u"&&!x)throw new $TypeError$1("intrinsic "+b+" exists, but is not available. Please file an issue!");return{alias:w,name:C,value:A}}throw new $SyntaxError("intrinsic "+b+" does not exist!")},getIntrinsic=function(b,x){if(typeof b!="string"||b.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof x!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,b)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var C=stringToPath$2(b),w=C.length>0?C[0]:"",A=getBaseIntrinsic("%"+w+"%",x),S=A.name,$=A.value,E=!1,P=A.alias;P&&(w=P[0],$spliceApply(C,$concat$1([0,1],P)));for(var B=1,k=!0;B=C.length){var L=$gOPD($,I);k=!!L,k&&"get"in L&&!("originalValue"in L.get)?$=L.get:$=$[I]}else k=hasOwn$1($,I),$=$[I];k&&!E&&(INTRINSICS[S]=$)}}return $},callBind$1={exports:{}};(function(d){var b=functionBind,x=getIntrinsic,C=x("%Function.prototype.apply%"),w=x("%Function.prototype.call%"),A=x("%Reflect.apply%",!0)||b.call(w,C),S=x("%Object.getOwnPropertyDescriptor%",!0),$=x("%Object.defineProperty%",!0),E=x("%Math.max%");if($)try{$({},"a",{value:1})}catch(B){$=null}d.exports=function(k){var I=A(b,w,arguments);if(S&&$){var R=S(I,"length");R.configurable&&$(I,"length",{value:1+E(0,k.length-(arguments.length-1))})}return I};var P=function(){return A(b,C,arguments)};$?$(d.exports,"apply",{value:P}):d.exports.apply=P})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(b,x){var C=GetIntrinsic$1(b,!!x);return typeof C=="function"&&$indexOf(b,".prototype.")>-1?callBind(C):C};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString$2=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(d){return d.__proto__}:null);function addNumericSeparator(d,b){if(d===1/0||d===-1/0||d!==d||d&&d>-1e3&&d<1e3||$test.call(/e/,b))return b;var x=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof d=="number"){var C=d<0?-$floor(-d):$floor(d);if(C!==d){var w=String(C),A=$slice.call(b,w.length+1);return $replace.call(w,x,"$&_")+"."+$replace.call($replace.call(A,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(b,x,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$1(inspectCustom)?inspectCustom:null,objectInspect=function d(b,x,C,w){var A=x||{};if(has$3(A,"quoteStyle")&&A.quoteStyle!=="single"&&A.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(A,"maxStringLength")&&(typeof A.maxStringLength=="number"?A.maxStringLength<0&&A.maxStringLength!==1/0:A.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var S=has$3(A,"customInspect")?A.customInspect:!0;if(typeof S!="boolean"&&S!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(A,"indent")&&A.indent!==null&&A.indent!==" "&&!(parseInt(A.indent,10)===A.indent&&A.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(A,"numericSeparator")&&typeof A.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var $=A.numericSeparator;if(typeof b>"u")return"undefined";if(b===null)return"null";if(typeof b=="boolean")return b?"true":"false";if(typeof b=="string")return inspectString(b,A);if(typeof b=="number"){if(b===0)return 1/0/b>0?"0":"-0";var E=String(b);return $?addNumericSeparator(b,E):E}if(typeof b=="bigint"){var P=String(b)+"n";return $?addNumericSeparator(b,P):P}var B=typeof A.depth>"u"?5:A.depth;if(typeof C>"u"&&(C=0),C>=B&&B>0&&typeof b=="object")return isArray$7(b)?"[Array]":"[Object]";var k=getIndent(A,C);if(typeof w>"u")w=[];else if(indexOf(w,b)>=0)return"[Circular]";function I(ce,fe,me){if(fe&&(w=$arrSlice.call(w),w.push(fe)),me){var ne={depth:A.depth};return has$3(A,"quoteStyle")&&(ne.quoteStyle=A.quoteStyle),d(ce,ne,C+1,w)}return d(ce,A,C+1,w)}if(typeof b=="function"&&!isRegExp$1(b)){var R=nameOf(b),F=arrObjKeys(b,I);return"[Function"+(R?": "+R:" (anonymous)")+"]"+(F.length>0?" { "+$join.call(F,", ")+" }":"")}if(isSymbol$1(b)){var L=hasShammedSymbols?$replace.call(String(b),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(b);return typeof b=="object"&&!hasShammedSymbols?markBoxed(L):L}if(isElement$1(b)){for(var z="<"+$toLowerCase.call(String(b.nodeName)),V=b.attributes||[],U=0;U",z}if(isArray$7(b)){if(b.length===0)return"[]";var Q=arrObjKeys(b,I);return k&&!singleLineValues(Q)?"["+indentedJoin(Q,k)+"]":"[ "+$join.call(Q,", ")+" ]"}if(isError(b)){var W=arrObjKeys(b,I);return!("cause"in Error.prototype)&&"cause"in b&&!isEnumerable.call(b,"cause")?"{ ["+String(b)+"] "+$join.call($concat.call("[cause]: "+I(b.cause),W),", ")+" }":W.length===0?"["+String(b)+"]":"{ ["+String(b)+"] "+$join.call(W,", ")+" }"}if(typeof b=="object"&&S){if(inspectSymbol&&typeof b[inspectSymbol]=="function"&&utilInspect)return utilInspect(b,{depth:B-C});if(S!=="symbol"&&typeof b.inspect=="function")return b.inspect()}if(isMap(b)){var G=[];return mapForEach&&mapForEach.call(b,function(ce,fe){G.push(I(fe,b,!0)+" => "+I(ce,b))}),collectionOf("Map",mapSize.call(b),G,k)}if(isSet(b)){var q=[];return setForEach&&setForEach.call(b,function(ce){q.push(I(ce,b))}),collectionOf("Set",setSize.call(b),q,k)}if(isWeakMap(b))return weakCollectionOf("WeakMap");if(isWeakSet(b))return weakCollectionOf("WeakSet");if(isWeakRef(b))return weakCollectionOf("WeakRef");if(isNumber$1(b))return markBoxed(I(Number(b)));if(isBigInt(b))return markBoxed(I(bigIntValueOf.call(b)));if(isBoolean$1(b))return markBoxed(booleanValueOf.call(b));if(isString$1(b))return markBoxed(I(String(b)));if(!isDate$1(b)&&!isRegExp$1(b)){var K=arrObjKeys(b,I),X=gPO?gPO(b)===Object.prototype:b instanceof Object||b.constructor===Object,J=b instanceof Object?"":"null prototype",oe=!X&&toStringTag&&Object(b)===b&&toStringTag in b?$slice.call(toStr(b),8,-1):J?"Object":"",he=X||typeof b.constructor!="function"?"":b.constructor.name?b.constructor.name+" ":"",Z=he+(oe||J?"["+$join.call($concat.call([],oe||[],J||[]),": ")+"] ":"");return K.length===0?Z+"{}":k?Z+"{"+indentedJoin(K,k)+"}":Z+"{ "+$join.call(K,", ")+" }"}return String(b)};function wrapQuotes(d,b,x){var C=(x.quoteStyle||b)==="double"?'"':"'";return C+d+C}function quote(d){return $replace.call(String(d),/"/g,""")}function isArray$7(d){return toStr(d)==="[object Array]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isDate$1(d){return toStr(d)==="[object Date]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isRegExp$1(d){return toStr(d)==="[object RegExp]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isError(d){return toStr(d)==="[object Error]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isString$1(d){return toStr(d)==="[object String]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isNumber$1(d){return toStr(d)==="[object Number]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isBoolean$1(d){return toStr(d)==="[object Boolean]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isSymbol$1(d){if(hasShammedSymbols)return d&&typeof d=="object"&&d instanceof Symbol;if(typeof d=="symbol")return!0;if(!d||typeof d!="object"||!symToString)return!1;try{return symToString.call(d),!0}catch(b){}return!1}function isBigInt(d){if(!d||typeof d!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(d),!0}catch(b){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(d){return d in this};function has$3(d,b){return hasOwn.call(d,b)}function toStr(d){return objectToString$2.call(d)}function nameOf(d){if(d.name)return d.name;var b=$match.call(functionToString.call(d),/^function\s*([\w$]+)/);return b?b[1]:null}function indexOf(d,b){if(d.indexOf)return d.indexOf(b);for(var x=0,C=d.length;xb.maxStringLength){var x=d.length-b.maxStringLength,C="... "+x+" more character"+(x>1?"s":"");return inspectString($slice.call(d,0,b.maxStringLength),b)+C}var w=$replace.call($replace.call(d,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(w,"single",b)}function lowbyte(d){var b=d.charCodeAt(0),x={8:"b",9:"t",10:"n",12:"f",13:"r"}[b];return x?"\\"+x:"\\x"+(b<16?"0":"")+$toUpperCase.call(b.toString(16))}function markBoxed(d){return"Object("+d+")"}function weakCollectionOf(d){return d+" { ? }"}function collectionOf(d,b,x,C){var w=C?indentedJoin(x,C):$join.call(x,", ");return d+" ("+b+") {"+w+"}"}function singleLineValues(d){for(var b=0;b=0)return!1;return!0}function getIndent(d,b){var x;if(d.indent===" ")x=" ";else if(typeof d.indent=="number"&&d.indent>0)x=$join.call(Array(d.indent+1)," ");else return null;return{base:x,prev:$join.call(Array(b+1),x)}}function indentedJoin(d,b){if(d.length===0)return"";var x="\n"+b.prev+b.base;return x+$join.call(d,","+x)+"\n"+b.prev}function arrObjKeys(d,b){var x=isArray$7(d),C=[];if(x){C.length=d.length;for(var w=0;w1;){var x=b.pop(),C=x.obj[x.prop];if(isArray$6(C)){for(var w=[],A=0;A=48&&P<=57||P>=65&&P<=90||P>=97&&P<=122||A===formats$2.RFC1738&&(P===40||P===41)){$+=S.charAt(E);continue}if(P<128){$=$+hexTable[P];continue}if(P<2048){$=$+(hexTable[192|P>>6]+hexTable[128|P&63]);continue}if(P<55296||P>=57344){$=$+(hexTable[224|P>>12]+hexTable[128|P>>6&63]+hexTable[128|P&63]);continue}E+=1,P=65536+((P&1023)<<10|S.charCodeAt(E)&1023),$+=hexTable[240|P>>18]+hexTable[128|P>>12&63]+hexTable[128|P>>6&63]+hexTable[128|P&63]}return $},compact=function(b){for(var x=[{obj:{o:b},prop:"o"}],C=[],w=0;w"u"&&(Q=0)}if(typeof E=="function"?V=E(x,V):V instanceof Date?V=k(V):C==="comma"&&isArray$5(V)&&(V=utils$1.maybeMap(V,function(ne){return ne instanceof Date?k(ne):ne})),V===null){if(A)return $&&!F?$(x,defaults$1.encoder,L,"key",I):x;V=""}if(isNonNullishPrimitive(V)||utils$1.isBuffer(V)){if($){var q=F?x:$(x,defaults$1.encoder,L,"key",I);return[R(q)+"="+R($(V,defaults$1.encoder,L,"value",I))]}return[R(x)+"="+R(String(V))]}var K=[];if(typeof V>"u")return K;var X;if(C==="comma"&&isArray$5(V))F&&$&&(V=utils$1.maybeMap(V,$)),X=[{value:V.length>0?V.join(",")||null:void 0}];else if(isArray$5(E))X=E;else{var J=Object.keys(V);X=P?J.sort(P):J}for(var oe=w&&isArray$5(V)&&V.length===1?x+"[]":x,he=0;he"u"?defaults$1.allowDots:!!b.allowDots,charset:x,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:defaults$1.charsetSentinel,delimiter:typeof b.delimiter>"u"?defaults$1.delimiter:b.delimiter,encode:typeof b.encode=="boolean"?b.encode:defaults$1.encode,encoder:typeof b.encoder=="function"?b.encoder:defaults$1.encoder,encodeValuesOnly:typeof b.encodeValuesOnly=="boolean"?b.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:A,format:C,formatter:w,serializeDate:typeof b.serializeDate=="function"?b.serializeDate:defaults$1.serializeDate,skipNulls:typeof b.skipNulls=="boolean"?b.skipNulls:defaults$1.skipNulls,sort:typeof b.sort=="function"?b.sort:null,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(d,b){var x=d,C=normalizeStringifyOptions(b),w,A;typeof C.filter=="function"?(A=C.filter,x=A("",x)):isArray$5(C.filter)&&(A=C.filter,w=A);var S=[];if(typeof x!="object"||x===null)return"";var $;b&&b.arrayFormat in arrayPrefixGenerators?$=b.arrayFormat:b&&"indices"in b?$=b.indices?"indices":"repeat":$="indices";var E=arrayPrefixGenerators[$];if(b&&"commaRoundTrip"in b&&typeof b.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var P=E==="comma"&&b&&b.commaRoundTrip;w||(w=Object.keys(x)),C.sort&&w.sort(C.sort);for(var B=getSideChannel(),k=0;k0?F+R:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray$4=Array.isArray,defaults={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(d){return d.replace(/&#(\d+);/g,function(b,x){return String.fromCharCode(parseInt(x,10))})},parseArrayValue=function(d,b){return d&&typeof d=="string"&&b.comma&&d.indexOf(",")>-1?d.split(","):d},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(b,x){var C={__proto__:null},w=x.ignoreQueryPrefix?b.replace(/^\?/,""):b,A=x.parameterLimit===1/0?void 0:x.parameterLimit,S=w.split(x.delimiter,A),$=-1,E,P=x.charset;if(x.charsetSentinel)for(E=0;E-1&&(F=isArray$4(F)?[F]:F),has.call(C,R)?C[R]=utils.combine(C[R],F):C[R]=F}return C},parseObject=function(d,b,x,C){for(var w=C?b:parseArrayValue(b,x),A=d.length-1;A>=0;--A){var S,$=d[A];if($==="[]"&&x.parseArrays)S=[].concat(w);else{S=x.plainObjects?Object.create(null):{};var E=$.charAt(0)==="["&&$.charAt($.length-1)==="]"?$.slice(1,-1):$,P=parseInt(E,10);!x.parseArrays&&E===""?S={0:w}:!isNaN(P)&&$!==E&&String(P)===E&&P>=0&&x.parseArrays&&P<=x.arrayLimit?(S=[],S[P]=w):E!=="__proto__"&&(S[E]=w)}w=S}return w},parseKeys=function(b,x,C,w){if(b){var A=C.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,S=/(\[[^[\]]*])/,$=/(\[[^[\]]*])/g,E=C.depth>0&&S.exec(A),P=E?A.slice(0,E.index):A,B=[];if(P){if(!C.plainObjects&&has.call(Object.prototype,P)&&!C.allowPrototypes)return;B.push(P)}for(var k=0;C.depth>0&&(E=$.exec(A))!==null&&k"u"?defaults.charset:b.charset;return{allowDots:typeof b.allowDots>"u"?defaults.allowDots:!!b.allowDots,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:defaults.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:defaults.arrayLimit,charset:x,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:defaults.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:defaults.comma,decoder:typeof b.decoder=="function"?b.decoder:defaults.decoder,delimiter:typeof b.delimiter=="string"||utils.isRegExp(b.delimiter)?b.delimiter:defaults.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:defaults.depth,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:defaults.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:defaults.plainObjects,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:defaults.strictNullHandling}},parse$2=function(d,b){var x=normalizeParseOptions(b);if(d===""||d===null||typeof d>"u")return x.plainObjects?Object.create(null):{};for(var C=typeof d=="string"?parseValues(d,x):d,w=x.plainObjects?Object.create(null):{},A=Object.keys(C),S=0;S-1};function normalizeName(d){if(typeof d!="string"&&(d=String(d)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d)||d==="")throw new TypeError('Invalid character in header field name: "'+d+'"');return d.toLowerCase()}function normalizeValue(d){return typeof d!="string"&&(d=String(d)),d}function iteratorFor(d){var b={next:function(){var x=d.shift();return{done:x===void 0,value:x}}};return support.iterable&&(b[Symbol.iterator]=function(){return b}),b}function Headers(d){this.map={},d instanceof Headers?d.forEach(function(b,x){this.append(x,b)},this):Array.isArray(d)?d.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):d&&Object.getOwnPropertyNames(d).forEach(function(b){this.append(b,d[b])},this)}Headers.prototype.append=function(d,b){d=normalizeName(d),b=normalizeValue(b);var x=this.map[d];this.map[d]=x?x+", "+b:b};Headers.prototype.delete=function(d){delete this.map[normalizeName(d)]};Headers.prototype.get=function(d){return d=normalizeName(d),this.has(d)?this.map[d]:null};Headers.prototype.has=function(d){return this.map.hasOwnProperty(normalizeName(d))};Headers.prototype.set=function(d,b){this.map[normalizeName(d)]=normalizeValue(b)};Headers.prototype.forEach=function(d,b){for(var x in this.map)this.map.hasOwnProperty(x)&&d.call(b,this.map[x],x,this)};Headers.prototype.keys=function(){var d=[];return this.forEach(function(b,x){d.push(x)}),iteratorFor(d)};Headers.prototype.values=function(){var d=[];return this.forEach(function(b){d.push(b)}),iteratorFor(d)};Headers.prototype.entries=function(){var d=[];return this.forEach(function(b,x){d.push([x,b])}),iteratorFor(d)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(d){if(!d._noBody){if(d.bodyUsed)return Promise.reject(new TypeError("Already read"));d.bodyUsed=!0}}function fileReaderReady(d){return new Promise(function(b,x){d.onload=function(){b(d.result)},d.onerror=function(){x(d.error)}})}function readBlobAsArrayBuffer(d){var b=new FileReader,x=fileReaderReady(b);return b.readAsArrayBuffer(d),x}function readBlobAsText(d){var b=new FileReader,x=fileReaderReady(b),C=/charset=([A-Za-z0-9_-]+)/.exec(d.type),w=C?C[1]:"utf-8";return b.readAsText(d,w),x}function readArrayBufferAsText(d){for(var b=new Uint8Array(d),x=new Array(b.length),C=0;C-1?b:d}function Request(d,b){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var x=b.body;if(d instanceof Request){if(d.bodyUsed)throw new TypeError("Already read");this.url=d.url,this.credentials=d.credentials,b.headers||(this.headers=new Headers(d.headers)),this.method=d.method,this.mode=d.mode,this.signal=d.signal,!x&&d._bodyInit!=null&&(x=d._bodyInit,d.bodyUsed=!0)}else this.url=String(d);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new Headers(b.headers)),this.method=normalizeMethod(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in g){var A=new AbortController;return A.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(x),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var C=/([?&])_=[^&]*/;if(C.test(this.url))this.url=this.url.replace(C,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(d){var b=new FormData;return d.trim().split("&").forEach(function(x){if(x){var C=x.split("="),w=C.shift().replace(/\+/g," "),A=C.join("=").replace(/\+/g," ");b.append(decodeURIComponent(w),decodeURIComponent(A))}}),b}function parseHeaders(d){var b=new Headers,x=d.replace(/\r?\n[\t ]+/g," ");return x.split("\r").map(function(C){return C.indexOf("\n")===0?C.substr(1,C.length):C}).forEach(function(C){var w=C.split(":"),A=w.shift().trim();if(A){var S=w.join(":").trim();try{b.append(A,S)}catch($){console.warn("Response "+$.message)}}}),b}Body.call(Request.prototype);function Response(d,b){if(!(this instanceof Response))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new Headers(b.headers),this.url=b.url||"",this._initBody(d)}Body.call(Response.prototype);Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})};Response.error=function(){var d=new Response(null,{status:200,statusText:""});return d.status=0,d.type="error",d};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(d,b){if(redirectStatuses.indexOf(b)===-1)throw new RangeError("Invalid status code");return new Response(null,{status:b,headers:{location:d}})};var DOMException=g.DOMException;try{new DOMException}catch(d){DOMException=function(b,x){this.message=b,this.name=x;var C=Error(b);this.stack=C.stack},DOMException.prototype=Object.create(Error.prototype),DOMException.prototype.constructor=DOMException}function fetch$1(d,b){return new Promise(function(x,C){var w=new Request(d,b);if(w.signal&&w.signal.aborted)return C(new DOMException("Aborted","AbortError"));var A=new XMLHttpRequest;function S(){A.abort()}A.onload=function(){var P={status:A.status,statusText:A.statusText,headers:parseHeaders(A.getAllResponseHeaders()||"")};P.url="responseURL"in A?A.responseURL:P.headers.get("X-Request-URL");var B="response"in A?A.response:A.responseText;setTimeout(function(){x(new Response(B,P))},0)},A.onerror=function(){setTimeout(function(){C(new TypeError("Network request failed"))},0)},A.ontimeout=function(){setTimeout(function(){C(new TypeError("Network request failed"))},0)},A.onabort=function(){setTimeout(function(){C(new DOMException("Aborted","AbortError"))},0)};function $(P){try{return P===""&&g.location.href?g.location.href:P}catch(B){return P}}if(A.open(w.method,$(w.url),!0),w.credentials==="include"?A.withCredentials=!0:w.credentials==="omit"&&(A.withCredentials=!1),"responseType"in A&&(support.blob?A.responseType="blob":support.arrayBuffer&&(A.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof Headers||g.Headers&&b.headers instanceof g.Headers)){var E=[];Object.getOwnPropertyNames(b.headers).forEach(function(P){E.push(normalizeName(P)),A.setRequestHeader(P,normalizeValue(b.headers[P]))}),w.headers.forEach(function(P,B){E.indexOf(B)===-1&&A.setRequestHeader(B,P)})}else w.headers.forEach(function(P,B){A.setRequestHeader(B,P)});w.signal&&(w.signal.addEventListener("abort",S),A.onreadystatechange=function(){A.readyState===4&&w.signal.removeEventListener("abort",S)}),A.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}fetch$1.polyfill=!0;g.fetch||(g.fetch=fetch$1,g.Headers=Headers,g.Request=Request,g.Response=Response);self.fetch.bind(self);function ownKeys(d,b){var x=Object.keys(d);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(d);b&&(C=C.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),x.push.apply(x,C)}return x}function _objectSpread2(d){for(var b=1;b"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(d){return!1}}function _construct(d,b,x){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(w,A,S){var $=[null];$.push.apply($,A);var E=Function.bind.apply(w,$),P=new E;return S&&_setPrototypeOf(P,S.prototype),P},_construct.apply(null,arguments)}function _isNativeFunction(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function _wrapNativeSuper(d){var b=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(C){if(C===null||!_isNativeFunction(C))return C;if(typeof C!="function")throw new TypeError("Super expression must either be null or a function");if(typeof b<"u"){if(b.has(C))return b.get(C);b.set(C,w)}function w(){return _construct(C,arguments,_getPrototypeOf(this).constructor)}return w.prototype=Object.create(C.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(w,C)},_wrapNativeSuper(d)}function _assertThisInitialized(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function _possibleConstructorReturn(d,b){if(b&&(typeof b=="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(d)}function _createSuper(d){var b=_isNativeReflectConstruct();return function(){var C=_getPrototypeOf(d),w;if(b){var A=_getPrototypeOf(this).constructor;w=Reflect.construct(C,arguments,A)}else w=C.apply(this,arguments);return _possibleConstructorReturn(this,w)}}function _toConsumableArray(d){return _arrayWithoutHoles(d)||_iterableToArray(d)||_unsupportedIterableToArray(d)||_nonIterableSpread()}function _arrayWithoutHoles(d){if(Array.isArray(d))return _arrayLikeToArray(d)}function _iterableToArray(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function _unsupportedIterableToArray(d,b){if(d){if(typeof d=="string")return _arrayLikeToArray(d,b);var x=Object.prototype.toString.call(d).slice(8,-1);if(x==="Object"&&d.constructor&&(x=d.constructor.name),x==="Map"||x==="Set")return Array.from(d);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray(d,b)}}function _arrayLikeToArray(d,b){(b==null||b>d.length)&&(b=d.length);for(var x=0,C=new Array(b);x1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},w=!1,A=!1,S=!1;if(typeof C=="number"?(process&&process.env,w=!0,A=!1):_typeof$1(C)==="object"&&C&&(A=C.global||!1,w=C.core||!1,S=C.defaultInstance||!1),A){d.globalMiddlewares.splice(d.globalMiddlewares.length-d.defaultGlobalMiddlewaresLength,0,x);return}if(w){d.coreMiddlewares.splice(d.coreMiddlewares.length-d.defaultCoreMiddlewaresLength,0,x);return}if(S){this.defaultMiddlewares.push(x);return}this.middlewares.push(x)}},{key:"execute",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,C=compose([].concat(_toConsumableArray(this.middlewares),_toConsumableArray(this.defaultMiddlewares),_toConsumableArray(d.globalMiddlewares),_toConsumableArray(d.coreMiddlewares)));return C(x)}}]),d}();Onion.globalMiddlewares=[];Onion.defaultGlobalMiddlewaresLength=0;Onion.coreMiddlewares=[];Onion.defaultCoreMiddlewaresLength=0;var MapCache$1=function(){function d(b){_classCallCheck$1(this,d),this.cache=new Map,this.timer={},this.extendOptions(b)}return _createClass(d,[{key:"extendOptions",value:function(x){this.maxCache=x.maxCache||0}},{key:"get",value:function(x){return this.cache.get(JSON.stringify(x))}},{key:"set",value:function(x,C){var w=this,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var S=_toConsumableArray(this.cache.keys())[0];this.cache.delete(S),this.timer[S]&&clearTimeout(this.timer[S])}var $=JSON.stringify(x);this.cache.set($,C),A>0&&(this.timer[$]=setTimeout(function(){w.cache.delete($),delete w.timer[$]},A))}},{key:"delete",value:function(x){var C=JSON.stringify(x);return delete this.timer[C],this.cache.delete(C)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),d}(),RequestError=function(d){_inherits(x,d);var b=_createSuper(x);function x(C,w){var A,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return _classCallCheck$1(this,x),A=b.call(this,C),A.name="RequestError",A.request=w,A.type=S,A}return x}(_wrapNativeSuper(Error)),ResponseError=function(d){_inherits(x,d);var b=_createSuper(x);function x(C,w,A,S){var $,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return _classCallCheck$1(this,x),$=b.call(this,w||C.statusText),$.name="ResponseError",$.data=A,$.response=C,$.request=S,$.type=E,$}return x}(_wrapNativeSuper(Error));function readerGBK(d){return new Promise(function(b,x){var C=new FileReader;C.onload=function(){b(C.result)},C.onerror=x,C.readAsText(d,"GBK")})}function safeJsonParse(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(d)}catch(w){if(b)throw new ResponseError(x,"JSON.parse fail",d,C,"ParseError")}return d}function timeout2Throw(d,b,x){return new Promise(function(C,w){setTimeout(function(){w(new RequestError(b||"timeout of ".concat(d,"ms exceeded"),x,"Timeout"))},d)})}function cancel2Throw(d){return new Promise(function(b,x){d.cancelToken&&d.cancelToken.promise.then(function(C){x(C)})})}var toString$1=Object.prototype.toString;function getEnv(){var d;return typeof process<"u"&&toString$1.call(process)==="[object process]"&&(d="NODE"),typeof XMLHttpRequest<"u"&&(d="BROWSER"),d}function isArray$3(d){return _typeof$1(d)==="object"&&Object.prototype.toString.call(d)==="[object Array]"}function isURLSearchParams(d){return typeof URLSearchParams<"u"&&d instanceof URLSearchParams}function isDate(d){return _typeof$1(d)==="object"&&Object.prototype.toString.call(d)==="[object Date]"}function isObject$4(d){return d!==null&&_typeof$1(d)==="object"}function forEach2ObjArr(d,b){if(d)if(_typeof$1(d)!=="object"&&(d=[d]),isArray$3(d))for(var x=0;x1&&arguments[1]!==void 0?arguments[1]:{},C=x.prefix,w=x.suffix;return C&&(b="".concat(C).concat(b)),w&&(b="".concat(b).concat(w)),{url:b,options:x}},warnedCoreType=!1;function __defaultValidateCache(d,b){var x=b.method,C=x===void 0?"get":x;return C.toLowerCase()==="get"}function fetchMiddleware(d,b){if(!d)return b();var x=d.req;x=x===void 0?{}:x;var C=x.options,w=C===void 0?{}:C,A=x.url,S=A===void 0?"":A,$=d.cache,E=d.responseInterceptors,P=w.timeout,B=P===void 0?0:P,k=w.timeoutMessage,I=w.__umiRequestCoreType__,R=I===void 0?"normal":I,F=w.useCache,L=F===void 0?!1:F,z=w.method,V=z===void 0?"get":z,U=w.params,Q=w.ttl,W=w.validateCache,G=W===void 0?__defaultValidateCache:W;if(R!=="normal")return process&&process.env,b();var q=fetch;if(!q)throw new Error("Global fetch not exist!");var K=getEnv()==="BROWSER",X=G(S,w)&&L&&K;if(X){var J=$.get({url:S,params:U,method:V});if(J)return J=J.clone(),J.useCache=!0,d.res=J,b()}var oe;return B>0?oe=Promise.race([cancel2Throw(w),q(S,w),timeout2Throw(B,k,d.req)]):oe=Promise.race([cancel2Throw(w),q(S,w)]),E.forEach(function(he){oe=oe.then(function(Z){var ce=typeof Z.clone=="function"?Z.clone():Z;return he(ce,w)})}),oe.then(function(he){if(X&&he.status===200){var Z=he.clone();Z.useCache=!0,$.set({url:S,params:U,method:V},Z,Q)}return d.res=he,b()})}function parseResponseMiddleware(d,b){var x;return b().then(function(){if(d){var C=d.res,w=C===void 0?{}:C,A=d.req,S=A===void 0?{}:A,$=S||{},E=$.options;E=E===void 0?{}:E;var P=E.responseType,B=P===void 0?"json":P,k=E.charset,I=k===void 0?"utf8":k;E.getResponse;var R=E.throwErrIfParseFail,F=R===void 0?!1:R,L=E.parseResponse,z=L===void 0?!0:L;if(z&&!(!w||!w.clone)){if(x=getEnv()==="BROWSER"?w.clone():w,x.useCache=w.useCache||!1,I==="gbk")try{return w.blob().then(readerGBK).then(function(V){return safeJsonParse(V,!1,x,S)})}catch(V){throw new ResponseError(x,V.message,null,S,"ParseError")}else if(B==="json")return w.text().then(function(V){return safeJsonParse(V,F,x,S)});try{return w[B]()}catch(V){throw new ResponseError(x,"responseType not support",null,S,"ParseError")}}}}).then(function(C){if(d){d.res;var w=d.req,A=w===void 0?{}:w,S=A||{},$=S.options;$=$===void 0?{}:$;var E=$.getResponse,P=E===void 0?!1:E;if(x){if(x.status>=200&&x.status<300){if(P){d.res={data:C,response:x};return}d.res=C;return}throw new ResponseError(x,"http error",C,A,"HttpError")}}}).catch(function(C){if(C instanceof RequestError||C instanceof ResponseError)throw C;var w=d.req,A=d.res;throw C.request=C.request||w,C.response=C.response||A,C.type=C.type||C.name,C.data=C.data||void 0,C})}function simplePostMiddleware(d,b){if(!d)return b();var x=d.req;x=x===void 0?{}:x;var C=x.options,w=C===void 0?{}:C,A=w.method,S=A===void 0?"get":A;if(["post","put","patch","delete"].indexOf(S.toLowerCase())===-1)return b();var $=w.requestType,E=$===void 0?"json":$,P=w.data;if(P){var B=Object.prototype.toString.call(P);B==="[object Object]"||B==="[object Array]"?E==="json"?(w.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},w.headers),w.body=JSON.stringify(P)):E==="form"&&(w.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},w.headers),w.body=reqStringify(P)):(w.headers=_objectSpread2({Accept:"application/json"},w.headers),w.body=P)}return d.req.options=w,b()}function paramsSerialize(d,b){var x,C;if(d)if(b)x=b(d);else if(isURLSearchParams(d))x=d.toString();else if(isArray$3(d))C=[],forEach2ObjArr(d,function(A){A===null||typeof A>"u"?C.push(A):C.push(isObject$4(A)?JSON.stringify(A):A)}),x=reqStringify(C);else{C={},forEach2ObjArr(d,function(A,S){var $=A;A===null||typeof A>"u"?C[S]=A:isDate(A)?$=A.toISOString():isArray$3(A)?$=A:isObject$4(A)&&($=JSON.stringify(A)),C[S]=$});var w=reqStringify(C);x=w}return x}function simpleGetMiddleware(d,b){if(!d)return b();var x=d.req;x=x===void 0?{}:x;var C=x.options,w=C===void 0?{}:C,A=w.paramsSerializer,S=w.params,$=d.req;$=$===void 0?{}:$;var E=$.url,P=E===void 0?"":E;w.method=w.method?w.method.toUpperCase():"GET",w.credentials=w.credentials||"same-origin";var B=paramsSerialize(S,A);if(d.req.originUrl=P,B){var k=P.indexOf("?")!==-1?"&":"?";d.req.url="".concat(P).concat(k).concat(B)}return d.req.options=w,b()}var globalMiddlewares=[simplePostMiddleware,simpleGetMiddleware,parseResponseMiddleware],coreMiddlewares=[fetchMiddleware];Onion.globalMiddlewares=globalMiddlewares;Onion.defaultGlobalMiddlewaresLength=globalMiddlewares.length;Onion.coreMiddlewares=coreMiddlewares;Onion.defaultCoreMiddlewaresLength=coreMiddlewares.length;var Core=function(){function d(b){_classCallCheck$1(this,d),this.onion=new Onion([]),this.fetchIndex=0,this.mapCache=new MapCache$1(b),this.initOptions=b,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return _createClass(d,[{key:"use",value:function(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(x,C),this}},{key:"extendOptions",value:function(x){this.initOptions=mergeRequestOptions(this.initOptions,x),this.mapCache.extendOptions(x)}},{key:"dealRequestInterceptors",value:function(x){var C=function(S,$){return S.then(function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.req.url=E.url||x.req.url,x.req.options=E.options||x.req.options,$(x.req.url,x.req.options)})},w=[].concat(_toConsumableArray(d.requestInterceptors),_toConsumableArray(this.instanceRequestInterceptors));return w.reduce(C,Promise.resolve()).then(function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.req.url=A.url||x.req.url,x.req.options=A.options||x.req.options,Promise.resolve()})}},{key:"request",value:function(x,C){var w=this,A=this.onion,S={req:{url:x,options:_objectSpread2(_objectSpread2({},C),{},{url:x})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray(d.responseInterceptors),_toConsumableArray(this.instanceResponseInterceptors))};if(typeof x!="string")throw new Error("url MUST be a string");return new Promise(function($,E){w.dealRequestInterceptors(S).then(function(){return A.execute(S)}).then(function(){$(S.res)}).catch(function(P){var B=S.req.options.errorHandler;if(B)try{var k=B(P);$(k)}catch(I){E(I)}else E(P)})})}}],[{key:"requestUse",value:function(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof x!="function")throw new TypeError("Interceptor must be function!");C.global?d.requestInterceptors.push(x):this.instanceRequestInterceptors.push(x)}},{key:"responseUse",value:function(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof x!="function")throw new TypeError("Interceptor must be function!");C.global?d.responseInterceptors.push(x):this.instanceResponseInterceptors.push(x)}}]),d}();Core.requestInterceptors=[addfix];Core.responseInterceptors=[];function Cancel(d){this.message=d}Cancel.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Cancel.prototype.__CANCEL__=!0;function CancelToken(d){if(typeof d!="function")throw new TypeError("executor must be a function.");var b;this.promise=new Promise(function(w){b=w});var x=this;d(function(w){x.reason||(x.reason=new Cancel(w),b(x.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};CancelToken.source=function(){var b,x=new CancelToken(function(w){b=w});return{token:x,cancel:b}};function isCancel(d){return!!(d&&d.__CANCEL__)}var request$1=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=new Core(b),C=function(S){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=mergeRequestOptions(x.initOptions,$);return x.request(S,E)};C.use=x.use.bind(x),C.fetchIndex=x.fetchIndex,C.interceptors={request:{use:Core.requestUse.bind(x)},response:{use:Core.responseUse.bind(x)}};var w=["get","post","delete","put","patch","head","options","rpc"];return w.forEach(function(A){C[A]=function(S,$){return C(S,_objectSpread2(_objectSpread2({},$),{},{method:A}))}}),C.Cancel=Cancel,C.CancelToken=CancelToken,C.isCancel=isCancel,C.extendOptions=x.extendOptions.bind(x),C.middlewares={instance:x.onion.middlewares,defaultInstance:x.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},C},extend=function(b){return request$1(b)};request$1({parseResponse:!1});request$1({});const whiteUrl=()=>({"/sysMusicScoreCategories/queryTree":"/eduMusicScore/queryTree","/sysMusicScoreAccompaniment/queryPage":queryString.parse(location.search).platform?"/sysMusicScoreAccompaniment/queryPage":"/eduMusicScore/queryPage","/sysMusicScoreAccompaniment/queryPageLimit":"/eduMusicScore/queryPageLimit","/sysMusicScoreAccompaniment/querySubjectIds":"/eduMusicScore/querySubjectIds"});var assign=make_assign(),create$2=make_create(),trim$1=make_trim(),Global$5=typeof window<"u"?window:commonjsGlobal,util$6={assign,create:create$2,trim:trim$1,bind:bind$1,slice:slice$1,each:each$7,map:map$1,pluck:pluck$1,isList:isList$1,isFunction:isFunction$3,isObject:isObject$3,Global:Global$5};function make_assign(){return Object.assign?Object.assign:function(b,x,C,w){for(var A=1;A"u"?null:console;if(d){var b=d.warn?d.warn:d.log;b.apply(d,arguments)}}function createStore(d,b,x){x||(x=""),d&&!isList(d)&&(d=[d]),b&&!isList(b)&&(b=[b]);var C=x?"__storejs_"+x+"_":"",w=x?new RegExp("^"+C):null,A=/^[a-zA-Z0-9_\-]*$/;if(!A.test(x))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var S={_namespacePrefix:C,_namespaceRegexp:w,_testStorage:function(E){try{var P="__storejs__test__";E.write(P,P);var B=E.read(P)===P;return E.remove(P),B}catch(k){return!1}},_assignPluginFnProp:function(E,P){var B=this[P];this[P]=function(){var I=slice(arguments,0),R=this;function F(){if(B)return each$6(arguments,function(z,V){I[V]=z}),B.apply(R,I)}var L=[F].concat(I);return E.apply(R,L)}},_serialize:function(E){return JSON.stringify(E)},_deserialize:function(E,P){if(!E)return P;var B="";try{B=JSON.parse(E)}catch(k){B=E}return B!==void 0?B:P},_addStorage:function(E){this.enabled||this._testStorage(E)&&(this.storage=E,this.enabled=!0)},_addPlugin:function(E){var P=this;if(isList(E)){each$6(E,function(I){P._addPlugin(I)});return}var B=pluck(this.plugins,function(I){return E===I});if(!B){if(this.plugins.push(E),!isFunction$2(E))throw new Error("Plugins must be function values that return objects");var k=E.call(this);if(!isObject$2(k))throw new Error("Plugins must return an object of function properties");each$6(k,function(I,R){if(!isFunction$2(I))throw new Error("Bad plugin property: "+R+" from plugin "+E.name+". Plugins should only return functions.");P._assignPluginFnProp(I,R)})}},addStorage:function(E){_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(E)}},$=create$1(S,storeAPI,{plugins:[]});return $.raw={},each$6($,function(E,P){isFunction$2(E)&&($.raw[P]=bind($,E))}),each$6(d,function(E){$._addStorage(E)}),each$6(b,function(E){$._addPlugin(E)}),$}var util$4=util$6,Global$4=util$4.Global,localStorage_1={name:"localStorage",read:read$5,write:write$5,each:each$5,remove:remove$5,clearAll:clearAll$5};function localStorage$1(){return Global$4.localStorage}function read$5(d){return localStorage$1().getItem(d)}function write$5(d,b){return localStorage$1().setItem(d,b)}function each$5(d){for(var b=localStorage$1().length-1;b>=0;b--){var x=localStorage$1().key(b);d(read$5(x),x)}}function remove$5(d){return localStorage$1().removeItem(d)}function clearAll$5(){return localStorage$1().clear()}var util$3=util$6,Global$3=util$3.Global,oldFFGlobalStorage={name:"oldFF-globalStorage",read:read$4,write:write$4,each:each$4,remove:remove$4,clearAll:clearAll$4},globalStorage=Global$3.globalStorage;function read$4(d){return globalStorage[d]}function write$4(d,b){globalStorage[d]=b}function each$4(d){for(var b=globalStorage.length-1;b>=0;b--){var x=globalStorage.key(b);d(globalStorage[x],x)}}function remove$4(d){return globalStorage.removeItem(d)}function clearAll$4(){each$4(function(d,b){delete globalStorage[d]})}var util$2=util$6,Global$2=util$2.Global,oldIEUserDataStorage={name:"oldIE-userDataStorage",write:write$3,read:read$3,each:each$3,remove:remove$3,clearAll:clearAll$3},storageName="storejs",doc$1=Global$2.document,_withStorageEl=_makeIEStorageElFunction(),disable=(Global$2.navigator?Global$2.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function write$3(d,b){if(!disable){var x=fixKey(d);_withStorageEl(function(C){C.setAttribute(x,b),C.save(storageName)})}}function read$3(d){if(!disable){var b=fixKey(d),x=null;return _withStorageEl(function(C){x=C.getAttribute(b)}),x}}function each$3(d){_withStorageEl(function(b){for(var x=b.XMLDocument.documentElement.attributes,C=x.length-1;C>=0;C--){var w=x[C];d(b.getAttribute(w.name),w.name)}})}function remove$3(d){var b=fixKey(d);_withStorageEl(function(x){x.removeAttribute(b),x.save(storageName)})}function clearAll$3(){_withStorageEl(function(d){var b=d.XMLDocument.documentElement.attributes;d.load(storageName);for(var x=b.length-1;x>=0;x--)d.removeAttribute(b[x].name);d.save(storageName)})}var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function fixKey(d){return d.replace(/^\d/,"___$&").replace(forbiddenCharsRegex,"___")}function _makeIEStorageElFunction(){if(!doc$1||!doc$1.documentElement||!doc$1.documentElement.addBehavior)return null;var d="script",b,x,C;try{x=new ActiveXObject("htmlfile"),x.open(),x.write("<"+d+">document.w=window'),x.close(),b=x.w.frames[0].document,C=b.createElement("div")}catch(w){C=doc$1.createElement("div"),b=doc$1.body}return function(w){var A=[].slice.call(arguments,0);A.unshift(C),b.appendChild(C),C.addBehavior("#default#userData"),C.load(storageName),w.apply(this,A),b.removeChild(C)}}var util$1=util$6,Global$1=util$1.Global,trim=util$1.trim,cookieStorage={name:"cookieStorage",read:read$2,write:write$2,each:each$2,remove:remove$2,clearAll:clearAll$2},doc=Global$1.document;function read$2(d){if(!d||!_has(d))return null;var b="(?:^|.*;\\s*)"+escape(d).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(doc.cookie.replace(new RegExp(b),"$1"))}function each$2(d){for(var b=doc.cookie.split(/; ?/g),x=b.length-1;x>=0;x--)if(trim(b[x])){var C=b[x].split("="),w=unescape(C[0]),A=unescape(C[1]);d(A,w)}}function write$2(d,b){d&&(doc.cookie=escape(d)+"="+escape(b)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function remove$2(d){!d||!_has(d)||(doc.cookie=escape(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function clearAll$2(){each$2(function(d,b){remove$2(b)})}function _has(d){return new RegExp("(?:^|;\\s*)"+escape(d).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(doc.cookie)}var util=util$6,Global=util.Global,sessionStorage_1={name:"sessionStorage",read:read$1,write:write$1,each:each$1,remove:remove$1,clearAll:clearAll$1};function sessionStorage$1(){return Global.sessionStorage}function read$1(d){return sessionStorage$1().getItem(d)}function write$1(d,b){return sessionStorage$1().setItem(d,b)}function each$1(d){for(var b=sessionStorage$1().length-1;b>=0;b--){var x=sessionStorage$1().key(b);d(read$1(x),x)}}function remove$1(d){return sessionStorage$1().removeItem(d)}function clearAll$1(){return sessionStorage$1().clear()}var memoryStorage_1={name:"memoryStorage",read,write,each,remove,clearAll},memoryStorage={};function read(d){return memoryStorage[d]}function write(d,b){memoryStorage[d]=b}function each(d){for(var b in memoryStorage)memoryStorage.hasOwnProperty(b)&&d(memoryStorage[b],b)}function remove(d){delete memoryStorage[d]}function clearAll(d){memoryStorage={}}var all=[localStorage_1,oldFFGlobalStorage,oldIEUserDataStorage,cookieStorage,sessionStorage_1,memoryStorage_1],json2$1={},hasRequiredJson2;function requireJson2(){return hasRequiredJson2||(hasRequiredJson2=1,typeof JSON!="object"&&(JSON={}),function(){var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(d){return d<10?"0"+d:d}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(d){return rx_escapable.lastIndex=0,rx_escapable.test(d)?'"'+d.replace(rx_escapable,function(b){var x=meta[b];return typeof x=="string"?x:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+d+'"'}function str(d,b){var x,C,w,A,S=gap,$,E=b[d];switch(E&&typeof E=="object"&&typeof E.toJSON=="function"&&(E=E.toJSON(d)),typeof rep=="function"&&(E=rep.call(b,d,E)),typeof E){case"string":return quote(E);case"number":return isFinite(E)?String(E):"null";case"boolean":case"null":return String(E);case"object":if(!E)return"null";if(gap+=indent,$=[],Object.prototype.toString.apply(E)==="[object Array]"){for(A=E.length,x=0;x{const d=navigator.userAgent;return{trident:d.indexOf("Trident")>-1,presto:d.indexOf("Presto")>-1,webKit:d.indexOf("AppleWebKit")>-1,gecko:d.indexOf("Gecko")>-1&&d.indexOf("KHTML")==-1,mobile:!!d.match(/AppleWebKit.*Mobile.*/),ios:!!d.match(/Mac OS X/)||/(iPhone|iPad|iPod|iOS)/i.test(d),android:d.indexOf("Android")>-1||d.indexOf("Adr")>-1,iPhone:d.indexOf("ORCHESTRAAPPI")>-1,isApp:d.includes("DAYAAPPA")||d.includes("DAYAAPPI")||d.includes("COLEXIUAPPA")||d.includes("COLEXIUAPPI")||d.includes("ORCHESTRAAPPI")||d.includes("ORCHESTRAAPPA"),isTeacher:d.indexOf("ORCHESTRATEACHER")>-1||d.includes("COLEXIUTEACHER"),isStudent:d.indexOf("ORCHESTRASTUDENT")>-1||d.includes("COLEXIUSTUDENT"),isSchool:d.indexOf("ORCHESTRASCHOOL")>-1,iPad:d.indexOf("iPad")>-1,webApp:d.indexOf("Safari")==-1,weixin:d.indexOf("MicroMessenger")>-1,alipay:d.indexOf("AlipayClient")>-1,huawei:!!d.match(/huawei/i)||!!d.match(/honor/i),xiaomi:!!d.match(/mi\s/i)||!!d.match(/redmi/i)||!!d.match(/mix/i)}},AuthorizationKey="AUTHORIZATION",setToken=d=>{sessionStorage.setItem(AuthorizationKey,d)},getToken=()=>sessionStorage.getItem(AuthorizationKey)||"";function addLight(d,b){const x=parseInt(d,16)+b,C=x>255?255:x;return C.toString(16).length>1?C.toString(16):"0".concat(C.toString(16))}function lighten(d,b){return d=d.indexOf("#")>=0?d.substring(1,d.length):d,b=Math.trunc(255*b/100),"#".concat(addLight(d.substring(0,2),b)).concat(addLight(d.substring(2,4),b)).concat(addLight(d.substring(4,6),b))}function downloadFile(d,b){var x=document.createElement("a");document.body.appendChild(x),x.setAttribute("style","display: none;"),x.href=d,x.download=b||"output.wav",x.click(),window.URL.revokeObjectURL(d),document.body.removeChild(x)}const apiRouter=whiteUrl();browser();const request=extend({requestType:"form",timeout:1e4});request.interceptors.request.use((d,b)=>{const x=storeData.proxy+storeData.platformApi;storeData.platformType==="WEB"&&apiRouter[d]&&(d=apiRouter[d]);const C=getToken(),w={};return C&&(w.Authorization=C),{url:x+d,options:{...b,params:b.params,data:b.data,headers:{...b.headers,...w}}}},{global:!1});request.interceptors.response.use(async(d,b)=>{if(d.status>299||d.status<200){const C=d.statusText+", 状态码"+d.status;throw showToast(C),new Error(C)}const x=await d.clone().json();if(x.code!==200&&x.errCode!==0){const C=x.msg||x.message||"处理失败,请重试";if(x.code===5e3)return x;throw x.code===403||x.code===401||showToast(C),new Error(C)}return x},{global:!1});const studentQueryUserInfo=async()=>await request.get("/student/queryUserInfo"),teacherQueryUserInfo=()=>request.get("/user/getUserInfo"),api_musicSheetCreationSave=d=>request.post("/musicSheetCreation/save",{data:d,requestType:"json"}),api_musicSheetCreationPage=d=>request.post("/musicSheetCreation/page",{data:d,requestType:"json"}),api_musicSheetCreationRemove=d=>request.post("/musicSheetCreation/remove?id="+d),api_musicSheetCreationDetail=d=>request.get("/musicSheetCreation/detail/".concat(d)),api_musicSheetCreationUpdate=d=>request.post("/musicSheetCreation/update",{data:d,requestType:"json"}),api_subjectList=()=>request.post("/subject/list");let onceCbs=[];const paramsMap=new WeakMap;function flushOnceCallbacks(){onceCbs.forEach(d=>d(...paramsMap.get(d))),onceCbs=[]}function beforeNextFrameOnce(d,...b){paramsMap.set(d,b),!onceCbs.includes(d)&&onceCbs.push(d)===1&&requestAnimationFrame(flushOnceCallbacks)}function happensIn(d,b){let{target:x}=d;for(;x;){if(x.dataset&&x.dataset[b]!==void 0)return!0;x=x.parentElement}return!1}function getPreciseEventTarget(d){return d.composedPath()[0]||null}function parseResponsiveProp(d){if(typeof d=="number")return{"":d.toString()};const b={};return d.split(/ +/).forEach(x=>{if(x==="")return;const[C,w]=x.split(":");w===void 0?b[""]=C:b[C]=w}),b}function parseResponsivePropValue(d,b){var x;if(d==null)return;const C=parseResponsiveProp(d);if(b===void 0)return C[""];if(typeof b=="string")return(x=C[b])!==null&&x!==void 0?x:C[""];if(Array.isArray(b)){for(let w=b.length-1;w>=0;--w){const A=b[w];if(A in C)return C[A]}return C[""]}else{let w,A=-1;return Object.keys(C).forEach(S=>{const $=Number(S);!Number.isNaN($)&&b>=$&&$>=A&&(A=$,w=C[S])}),w}}function depx(d){return typeof d=="string"?d.endsWith("px")?Number(d.slice(0,d.length-2)):Number(d):d}function pxfy(d){if(d!=null)return typeof d=="number"?"".concat(d,"px"):d.endsWith("px")?d:"".concat(d,"px")}function getMargin(d,b){const x=d.trim().split(/\s+/g),C={top:x[0]};switch(x.length){case 1:C.right=x[0],C.bottom=x[0],C.left=x[0];break;case 2:C.right=x[1],C.left=x[1],C.bottom=x[0];break;case 3:C.right=x[1],C.bottom=x[2],C.left=x[1];break;case 4:C.right=x[1],C.bottom=x[2],C.left=x[3];break;default:throw new Error("[seemly/getMargin]:"+d+" is not a valid value.")}return b===void 0?C:C[b]}function getGap(d,b){const[x,C]=d.split(" ");return b?b==="row"?x:C:{row:x,col:C||x}}const colors={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},prefix$1="^\\s*",suffix$1="\\s*$",float="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",hex="([0-9A-Fa-f])",dhex="([0-9A-Fa-f]{2})",rgbRegex=new RegExp("".concat(prefix$1,"rgb\\s*\\(").concat(float,",").concat(float,",").concat(float,"\\)").concat(suffix$1)),rgbaRegex=new RegExp("".concat(prefix$1,"rgba\\s*\\(").concat(float,",").concat(float,",").concat(float,",").concat(float,"\\)").concat(suffix$1)),sHexRegex=new RegExp("".concat(prefix$1,"#").concat(hex).concat(hex).concat(hex).concat(suffix$1)),hexRegex=new RegExp("".concat(prefix$1,"#").concat(dhex).concat(dhex).concat(dhex).concat(suffix$1)),sHexaRegex=new RegExp("".concat(prefix$1,"#").concat(hex).concat(hex).concat(hex).concat(hex).concat(suffix$1)),hexaRegex=new RegExp("".concat(prefix$1,"#").concat(dhex).concat(dhex).concat(dhex).concat(dhex).concat(suffix$1));function parseHex(d){return parseInt(d,16)}function rgba(d){try{let b;if(b=hexRegex.exec(d))return[parseHex(b[1]),parseHex(b[2]),parseHex(b[3]),1];if(b=rgbRegex.exec(d))return[roundChannel(b[1]),roundChannel(b[5]),roundChannel(b[9]),1];if(b=rgbaRegex.exec(d))return[roundChannel(b[1]),roundChannel(b[5]),roundChannel(b[9]),roundAlpha(b[13])];if(b=sHexRegex.exec(d))return[parseHex(b[1]+b[1]),parseHex(b[2]+b[2]),parseHex(b[3]+b[3]),1];if(b=hexaRegex.exec(d))return[parseHex(b[1]),parseHex(b[2]),parseHex(b[3]),roundAlpha(parseHex(b[4])/255)];if(b=sHexaRegex.exec(d))return[parseHex(b[1]+b[1]),parseHex(b[2]+b[2]),parseHex(b[3]+b[3]),roundAlpha(parseHex(b[4]+b[4])/255)];if(d in colors)return rgba(colors[d]);throw new Error("[seemly/rgba]: Invalid color value ".concat(d,"."))}catch(b){throw b}}function normalizeAlpha(d){return d>1?1:d<0?0:d}function stringifyRgba(d,b,x,C){return"rgba(".concat(roundChannel(d),", ").concat(roundChannel(b),", ").concat(roundChannel(x),", ").concat(normalizeAlpha(C),")")}function compositeChannel(d,b,x,C,w){return roundChannel((d*b*(1-C)+x*C)/w)}function composite(d,b){Array.isArray(d)||(d=rgba(d)),Array.isArray(b)||(b=rgba(b));const x=d[3],C=b[3],w=roundAlpha(x+C-x*C);return stringifyRgba(compositeChannel(d[0],x,b[0],C,w),compositeChannel(d[1],x,b[1],C,w),compositeChannel(d[2],x,b[2],C,w),w)}function changeColor(d,b){const[x,C,w,A=1]=Array.isArray(d)?d:rgba(d);return b.alpha?stringifyRgba(x,C,w,b.alpha):stringifyRgba(x,C,w,A)}function scaleColor(d,b){const[x,C,w,A=1]=Array.isArray(d)?d:rgba(d),{lightness:S=1,alpha:$=1}=b;return toRgbaString([x*S,C*S,w*S,A*$])}function roundAlpha(d){const b=Math.round(Number(d)*100)/100;return b>1?1:b<0?0:b}function roundChannel(d){const b=Math.round(Number(d));return b>255?255:b<0?0:b}function toRgbaString(d){const[b,x,C]=d;return 3 in d?"rgba(".concat(roundChannel(b),", ").concat(roundChannel(x),", ").concat(roundChannel(C),", ").concat(roundAlpha(d[3]),")"):"rgba(".concat(roundChannel(b),", ").concat(roundChannel(x),", ").concat(roundChannel(C),", 1)")}function createId(d=8){return Math.random().toString(16).slice(2,2+d)}function getSlot$1(d,b="default",x=[]){const w=d.$slots[b];return w===void 0?x:w()}function keep(d,b=[],x){const C={};return b.forEach(w=>{C[w]=d[w]}),Object.assign(C,x)}function omit(d,b=[],x){const C={};return Object.getOwnPropertyNames(d).forEach(A=>{b.includes(A)||(C[A]=d[A])}),Object.assign(C,x)}function flatten$4(d,b=!0,x=[]){return d.forEach(C=>{if(C!==null){if(typeof C!="object"){(typeof C=="string"||typeof C=="number")&&x.push(createTextVNode(String(C)));return}if(Array.isArray(C)){flatten$4(C,b,x);return}if(C.type===Fragment){if(C.children===null)return;Array.isArray(C.children)&&flatten$4(C.children,b,x)}else C.type!==Comment&&x.push(C)}}),x}function call$1(d,...b){if(Array.isArray(d))d.forEach(x=>call$1(x,...b));else return d(...b)}function keysOf(d){return Object.keys(d)}const render$1=(d,...b)=>typeof d=="function"?d(...b):typeof d=="string"?createTextVNode(d):typeof d=="number"?createTextVNode(String(d)):null;function warn$3(d,b){console.error("[naive/".concat(d,"]: ").concat(b))}function throwError(d,b){throw new Error("[naive/".concat(d,"]: ").concat(b))}function getTitleAttribute(d){switch(typeof d){case"string":return d||void 0;case"number":return String(d);default:return}}function getFirstSlotVNode(d,b="default",x=void 0){const C=d[b];if(!C)return warn$3("getFirstSlotVNode","slot[".concat(b,"] is empty")),null;const w=flatten$4(C(x));return w.length===1?w[0]:(warn$3("getFirstSlotVNode","slot[".concat(b,"] should have exactly one child")),null)}function createRefSetter(d){return b=>{b?d.value=b.$el:d.value=null}}function createInjectionKey(d){return d}function ensureValidVNode(d){return d.some(b=>isVNode(b)?!(b.type===Comment||b.type===Fragment&&!ensureValidVNode(b.children)):!0)?d:null}function resolveSlot(d,b){return d&&ensureValidVNode(d())||b()}function resolveSlotWithProps(d,b,x){return d&&ensureValidVNode(d(b))||x(b)}function resolveWrappedSlot(d,b){const x=d&&ensureValidVNode(d());return b(x||null)}function isSlotEmpty(d){return!(d&&ensureValidVNode(d()))}function mergeEventHandlers(d){const b=d.filter(x=>x!==void 0);if(b.length!==0)return b.length===1?b[0]:x=>{d.forEach(C=>{C&&C(x)})}}function isNodeVShowFalse(d){var b;const x=(b=d.dirs)===null||b===void 0?void 0:b.find(({dir:C})=>C===vShow);return!!(x&&x.value===!1)}const Wrapper=defineComponent({render(){var d,b;return(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d)}}),pureNumberRegex=/^(\d|\.)+$/,numberRegex=/(\d|\.)+/;function formatLength(d,{c:b=1,offset:x=0,attachPx:C=!0}={}){if(typeof d=="number"){const w=(d+x)*b;return w===0?"0":"".concat(w,"px")}else if(typeof d=="string")if(pureNumberRegex.test(d)){const w=(Number(d)+x)*b;return C?w===0?"0":"".concat(w,"px"):"".concat(w)}else{const w=numberRegex.exec(d);return w?d.replace(numberRegex,String((Number(w[0])+x)*b)):d}return d}function color2Class(d){return d.replace(/#|\(|\)|,|\s/g,"_")}function ampCount(d){let b=0;for(let x=0;x{let w=ampCount(C);if(w){if(w===1){d.forEach(S=>{x.push(C.replace("&",S))});return}}else{d.forEach(S=>{x.push((S&&S+" ")+C)});return}let A=[C];for(;w--;){const S=[];A.forEach($=>{d.forEach(E=>{S.push($.replace("&",E))})}),A=S}A.forEach(S=>x.push(S))}),x}function resolveSelector(d,b){const x=[];return b.split(separatorRegex).forEach(C=>{d.forEach(w=>{x.push((w&&w+" ")+C)})}),x}function parseSelectorPath(d){let b=[""];return d.forEach(x=>{x=x&&x.trim(),x&&(x.includes("&")?b=resolveSelectorWithAmp(b,x):b=resolveSelector(b,x))}),b.join(", ").replace(extraSpaceRegex," ")}function removeElement(d){if(!d)return;const b=d.parentElement;b&&b.removeChild(d)}function queryElement(d){return document.querySelector('style[cssr-id="'.concat(d,'"]'))}function createElement(d){const b=document.createElement("style");return b.setAttribute("cssr-id",d),b}function isMediaOrSupports(d){return d?/^\s*@(s|m)/.test(d):!1}const kebabRegex=/[A-Z]/g;function kebabCase(d){return d.replace(kebabRegex,b=>"-"+b.toLowerCase())}function unwrapProperty(d,b=" "){return typeof d=="object"&&d!==null?" {\n"+Object.entries(d).map(x=>b+" ".concat(kebabCase(x[0]),": ").concat(x[1],";")).join("\n")+"\n"+b+"}":": ".concat(d,";")}function unwrapProperties(d,b,x){return typeof d=="function"?d({context:b.context,props:x}):d}function createStyle(d,b,x,C){if(!b)return"";const w=unwrapProperties(b,x,C);if(!w)return"";if(typeof w=="string")return"".concat(d," {\n").concat(w,"\n}");const A=Object.keys(w);if(A.length===0)return x.config.keepEmptyBlock?d+" {\n}":"";const S=d?[d+" {"]:[];return A.forEach($=>{const E=w[$];if($==="raw"){S.push("\n"+E+"\n");return}$=kebabCase($),E!=null&&S.push(" ".concat($).concat(unwrapProperty(E)))}),d&&S.push("}"),S.join("\n")}function loopCNodeListWithCallback(d,b,x){d&&d.forEach(C=>{if(Array.isArray(C))loopCNodeListWithCallback(C,b,x);else if(typeof C=="function"){const w=C(b);Array.isArray(w)?loopCNodeListWithCallback(w,b,x):w&&x(w)}else C&&x(C)})}function traverseCNode(d,b,x,C,w,A){const S=d.$;let $="";if(!S||typeof S=="string")isMediaOrSupports(S)?$=S:b.push(S);else if(typeof S=="function"){const B=S({context:C.context,props:w});isMediaOrSupports(B)?$=B:b.push(B)}else if(S.before&&S.before(C.context),!S.$||typeof S.$=="string")isMediaOrSupports(S.$)?$=S.$:b.push(S.$);else if(S.$){const B=S.$({context:C.context,props:w});isMediaOrSupports(B)?$=B:b.push(B)}const E=parseSelectorPath(b),P=createStyle(E,d.props,C,w);$?(x.push("".concat($," {")),A&&P&&A.insertRule("".concat($," {\n").concat(P,"\n}\n"))):(A&&P&&A.insertRule(P),!A&&P.length&&x.push(P)),d.children&&loopCNodeListWithCallback(d.children,{context:C.context,props:w},B=>{if(typeof B=="string"){const k=createStyle(E,{raw:B},C,w);A?A.insertRule(k):x.push(k)}else traverseCNode(B,b,x,C,w,A)}),b.pop(),$&&x.push("}"),S&&S.after&&S.after(C.context)}function render(d,b,x,C=!1){const w=[];return traverseCNode(d,[],w,b,x,C?d.instance.__styleSheet:void 0),C?"":w.join("\n\n")}function murmur2(d){for(var b=0,x,C=0,w=d.length;w>=4;++C,w-=4)x=d.charCodeAt(C)&255|(d.charCodeAt(++C)&255)<<8|(d.charCodeAt(++C)&255)<<16|(d.charCodeAt(++C)&255)<<24,x=(x&65535)*1540483477+((x>>>16)*59797<<16),x^=x>>>24,b=(x&65535)*1540483477+((x>>>16)*59797<<16)^(b&65535)*1540483477+((b>>>16)*59797<<16);switch(w){case 3:b^=(d.charCodeAt(C+2)&255)<<16;case 2:b^=(d.charCodeAt(C+1)&255)<<8;case 1:b^=d.charCodeAt(C)&255,b=(b&65535)*1540483477+((b>>>16)*59797<<16)}return b^=b>>>13,b=(b&65535)*1540483477+((b>>>16)*59797<<16),((b^b>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function unmount(d,b,x){const{els:C}=b;if(x===void 0)C.forEach(removeElement),b.els=[];else{const w=queryElement(x);w&&C.includes(w)&&(removeElement(w),b.els=C.filter(A=>A!==w))}}function addElementToList(d,b){d.push(b)}function mount(d,b,x,C,w,A,S,$,E){if(A&&!E){if(x===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const I=window.__cssrContext;I[x]||(I[x]=!0,render(b,d,C,A));return}let P;if(x===void 0&&(P=b.render(C),x=murmur2(P)),E){E.adapter(x,P!=null?P:b.render(C));return}const B=queryElement(x);if(B!==null&&!S)return B;const k=B!=null?B:createElement(x);if(P===void 0&&(P=b.render(C)),k.textContent=P,B!==null)return B;if($){const I=document.head.querySelector('meta[name="'.concat($,'"]'));if(I)return document.head.insertBefore(k,I),addElementToList(b.els,k),k}return w?document.head.insertBefore(k,document.head.querySelector("style, link")):document.head.appendChild(k),addElementToList(b.els,k),k}function wrappedRender(d){return render(this,this.instance,d)}function wrappedMount(d={}){const{id:b,ssr:x,props:C,head:w=!1,silent:A=!1,force:S=!1,anchorMetaName:$}=d;return mount(this.instance,this,b,C,w,A,S,$,x)}function wrappedUnmount(d={}){const{id:b}=d;unmount(this.instance,this,b)}const createCNode=function(d,b,x,C){return{instance:d,$:b,props:x,children:C,els:[],render:wrappedRender,mount:wrappedMount,unmount:wrappedUnmount}},c$4=function(d,b,x,C){return Array.isArray(b)?createCNode(d,{$:null},null,b):Array.isArray(x)?createCNode(d,b,null,x):Array.isArray(C)?createCNode(d,b,x,C):createCNode(d,b,x,null)};function CssRender(d={}){let b=null;const x={c:(...C)=>c$4(x,...C),use:(C,...w)=>C.install(x,...w),find:queryElement,context:{},config:d,get __styleSheet(){if(!b){const C=document.createElement("style");return document.head.appendChild(C),b=document.styleSheets[document.styleSheets.length-1],b}return b}};return x}function exists(d,b){if(d===void 0)return!1;if(b){const{context:{ids:x}}=b;return x.has(d)}return queryElement(d)!==null}function plugin$1(d){let b=".",x="__",C="--",w;if(d){let F=d.blockPrefix;F&&(b=F),F=d.elementPrefix,F&&(x=F),F=d.modifierPrefix,F&&(C=F)}const A={install(F){w=F.c;const L=F.context;L.bem={},L.bem.b=null,L.bem.els=null}};function S(F){let L,z;return{before(V){L=V.bem.b,z=V.bem.els,V.bem.els=null},after(V){V.bem.b=L,V.bem.els=z},$({context:V,props:U}){return F=typeof F=="string"?F:F({context:V,props:U}),V.bem.b=F,"".concat((U==null?void 0:U.bPrefix)||b).concat(V.bem.b)}}}function $(F){let L;return{before(z){L=z.bem.els},after(z){z.bem.els=L},$({context:z,props:V}){return F=typeof F=="string"?F:F({context:z,props:V}),z.bem.els=F.split(",").map(U=>U.trim()),z.bem.els.map(U=>"".concat((V==null?void 0:V.bPrefix)||b).concat(z.bem.b).concat(x).concat(U)).join(", ")}}}function E(F){return{$({context:L,props:z}){F=typeof F=="string"?F:F({context:L,props:z});const V=F.split(",").map(W=>W.trim());function U(W){return V.map(G=>"&".concat((z==null?void 0:z.bPrefix)||b).concat(L.bem.b).concat(W!==void 0?"".concat(x).concat(W):"").concat(C).concat(G)).join(", ")}const Q=L.bem.els;return Q!==null?U(Q[0]):U()}}}function P(F){return{$({context:L,props:z}){F=typeof F=="string"?F:F({context:L,props:z});const V=L.bem.els;return"&:not(".concat((z==null?void 0:z.bPrefix)||b).concat(L.bem.b).concat(V!==null&&V.length>0?"".concat(x).concat(V[0]):"").concat(C).concat(F,")")}}}return Object.assign(A,{cB:(...F)=>w(S(F[0]),F[1],F[2]),cE:(...F)=>w($(F[0]),F[1],F[2]),cM:(...F)=>w(E(F[0]),F[1],F[2]),cNotM:(...F)=>w(P(F[0]),F[1],F[2])}),A}function createKey(d,b){return d+(b==="default"?"":b.replace(/^[a-z]/,x=>x.toUpperCase()))}createKey("abc","def");const namespace="n",prefix=".".concat(namespace,"-"),elementPrefix="__",modifierPrefix="--",cssr=CssRender(),plugin=plugin$1({blockPrefix:prefix,elementPrefix,modifierPrefix});cssr.use(plugin);const{c:c$3,find}=cssr,{cB,cE,cM,cNotM}=plugin;function insideModal(d){return c$3(({props:{bPrefix:b}})=>"".concat(b||prefix,"modal, ").concat(b||prefix,"drawer"),[d])}function insidePopover(d){return c$3(({props:{bPrefix:b}})=>"".concat(b||prefix,"popover"),[d])}function asModal(d){return c$3(({props:{bPrefix:b}})=>"&".concat(b||prefix,"modal"),d)}const cCB=(...d)=>c$3(">",[cB(...d)]);let _isJsdom;function isJsdom(){return _isJsdom===void 0&&(_isJsdom=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_isJsdom}const isBrowser$2=typeof document<"u"&&typeof window<"u",eventSet=new WeakSet;function markEventEffectPerformed(d){eventSet.add(d)}function eventEffectNotPerformed(d){return!eventSet.has(d)}function useDeferredTrue(d,b,x){if(!b)return d;const C=ref(d.value);let w=null;return watch(d,A=>{w!==null&&window.clearTimeout(w),A===!0?x&&!x.value?C.value=!0:w=window.setTimeout(()=>{C.value=!0},b):C.value=!1}),C}function useFalseUntilTruthy(d){const b=ref(!!d.value);if(b.value)return readonly(b);const x=watch(d,C=>{C&&(b.value=!0,x())});return readonly(b)}function useMemo(d){const b=computed(d),x=ref(b.value);return watch(b,C=>{x.value=C}),typeof d=="function"?x:{__v_isRef:!0,get value(){return x.value},set value(C){d.set(C)}}}function hasInstance(){return getCurrentInstance()!==null}const isBrowser$1=typeof window<"u";let fontsReady,isFontReady;const init=()=>{var d,b;fontsReady=isBrowser$1?(b=(d=document)===null||d===void 0?void 0:d.fonts)===null||b===void 0?void 0:b.ready:void 0,isFontReady=!1,fontsReady!==void 0?fontsReady.then(()=>{isFontReady=!0}):isFontReady=!0};init();function onFontsReady(d){if(isFontReady)return;let b=!1;onMounted(()=>{isFontReady||fontsReady==null||fontsReady.then(()=>{b||d()})}),onBeforeUnmount(()=>{b=!0})}function getEventTarget(d){return d.composedPath()[0]}const traps={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function createTrapHandler(d,b,x){if(d==="mousemoveoutside"){const C=w=>{b.contains(getEventTarget(w))||x(w)};return{mousemove:C,touchstart:C}}else if(d==="clickoutside"){let C=!1;const w=S=>{C=!b.contains(getEventTarget(S))},A=S=>{C&&(b.contains(getEventTarget(S))||x(S))};return{mousedown:w,mouseup:A,touchstart:w,touchend:A}}return console.error("[evtd/create-trap-handler]: name `".concat(d,"` is invalid. This could be a bug of evtd.")),{}}function ensureTrapHandlers(d,b,x){const C=traps[d];let w=C.get(b);w===void 0&&C.set(b,w=new WeakMap);let A=w.get(x);return A===void 0&&w.set(x,A=createTrapHandler(d,b,x)),A}function trapOn(d,b,x,C){if(d==="mousemoveoutside"||d==="clickoutside"){const w=ensureTrapHandlers(d,b,x);return Object.keys(w).forEach(A=>{on(A,document,w[A],C)}),!0}return!1}function trapOff(d,b,x,C){if(d==="mousemoveoutside"||d==="clickoutside"){const w=ensureTrapHandlers(d,b,x);return Object.keys(w).forEach(A=>{off(A,document,w[A],C)}),!0}return!1}function createDelegate(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const d=new WeakMap,b=new WeakMap;function x(){d.set(this,!0)}function C(){d.set(this,!0),b.set(this,!0)}function w(K,X,J){const oe=K[X];return K[X]=function(){return J.apply(K,arguments),oe.apply(K,arguments)},K}function A(K,X){K[X]=Event.prototype[X]}const S=new WeakMap,$=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function E(){var K;return(K=S.get(this))!==null&&K!==void 0?K:null}function P(K,X){$!==void 0&&Object.defineProperty(K,"currentTarget",{configurable:!0,enumerable:!0,get:X!=null?X:$.get})}const B={bubble:{},capture:{}},k={};function I(){const K=function(X){const{type:J,eventPhase:oe,bubbles:he}=X,Z=getEventTarget(X);if(oe===2)return;const ce=oe===1?"capture":"bubble";let fe=Z;const me=[];for(;fe===null&&(fe=window),me.push(fe),fe!==window;)fe=fe.parentNode||null;const ne=B.capture[J],te=B.bubble[J];if(w(X,"stopPropagation",x),w(X,"stopImmediatePropagation",C),P(X,E),ce==="capture"){if(ne===void 0)return;for(let de=me.length-1;de>=0&&!d.has(X);--de){const le=me[de],be=ne.get(le);if(be!==void 0){S.set(X,le);for(const Le of be){if(b.has(X))break;Le(X)}}if(de===0&&!he&&te!==void 0){const Le=te.get(le);if(Le!==void 0)for(const Qe of Le){if(b.has(X))break;Qe(X)}}}}else if(ce==="bubble"){if(te===void 0)return;for(let de=0;deZ(X))};return K.displayName="evtdUnifiedWindowEventHandler",K}const F=I(),L=R();function z(K,X){const J=B[K];return J[X]===void 0&&(J[X]=new Map,window.addEventListener(X,F,K==="capture")),J[X]}function V(K){return k[K]===void 0&&(k[K]=new Set,window.addEventListener(K,L)),k[K]}function U(K,X){let J=K.get(X);return J===void 0&&K.set(X,J=new Set),J}function Q(K,X,J,oe){const he=B[X][J];if(he!==void 0){const Z=he.get(K);if(Z!==void 0&&Z.has(oe))return!0}return!1}function W(K,X){const J=k[K];return!!(J!==void 0&&J.has(X))}function G(K,X,J,oe){let he;if(typeof oe=="object"&&oe.once===!0?he=ne=>{q(K,X,he,oe),J(ne)}:he=J,trapOn(K,X,he,oe))return;const ce=oe===!0||typeof oe=="object"&&oe.capture===!0?"capture":"bubble",fe=z(ce,K),me=U(fe,X);if(me.has(he)||me.add(he),X===window){const ne=V(K);ne.has(he)||ne.add(he)}}function q(K,X,J,oe){if(trapOff(K,X,J,oe))return;const Z=oe===!0||typeof oe=="object"&&oe.capture===!0,ce=Z?"capture":"bubble",fe=z(ce,K),me=U(fe,X);if(X===window&&!Q(X,Z?"bubble":"capture",K,J)&&W(K,J)){const te=k[K];te.delete(J),te.size===0&&(window.removeEventListener(K,L),k[K]=void 0)}me.has(J)&&me.delete(J),me.size===0&&fe.delete(X),fe.size===0&&(window.removeEventListener(K,F,ce==="capture"),B[ce][K]=void 0)}return{on:G,off:q}}const{on,off}=createDelegate(),mousePositionRef=ref(null);function clickHandler(d){if(d.clientX>0||d.clientY>0)mousePositionRef.value={x:d.clientX,y:d.clientY};else{const{target:b}=d;if(b instanceof Element){const{left:x,top:C,width:w,height:A}=b.getBoundingClientRect();x>0||C>0?mousePositionRef.value={x:x+w/2,y:C+A/2}:mousePositionRef.value={x:0,y:0}}else mousePositionRef.value=null}}let usedCount$1=0,managable$1=!0;function useClickPosition(){if(!isBrowser$1)return readonly(ref(null));usedCount$1===0&&on("click",document,clickHandler,!0);const d=()=>{usedCount$1+=1};return managable$1&&(managable$1=hasInstance())?(onBeforeMount(d),onBeforeUnmount(()=>{usedCount$1-=1,usedCount$1===0&&off("click",document,clickHandler,!0)})):d(),readonly(mousePositionRef)}const clickedTimeRef=ref(void 0);let usedCount=0;function handleClick(){clickedTimeRef.value=Date.now()}let managable=!0;function useClicked(d){if(!isBrowser$1)return readonly(ref(!1));const b=ref(!1);let x=null;function C(){x!==null&&window.clearTimeout(x)}function w(){C(),b.value=!0,x=window.setTimeout(()=>{b.value=!1},d)}usedCount===0&&on("click",window,handleClick,!0);const A=()=>{usedCount+=1,on("click",window,w,!0)};return managable&&(managable=hasInstance())?(onBeforeMount(A),onBeforeUnmount(()=>{usedCount-=1,usedCount===0&&off("click",window,handleClick,!0),off("click",window,w,!0),C()})):A(),readonly(b)}function useMergedState(d,b){return watch(d,x=>{x!==void 0&&(b.value=x)}),computed(()=>d.value===void 0?b.value:d.value)}function isMounted(){const d=ref(!1);return onMounted(()=>{d.value=!0}),readonly(d)}function useCompitable(d,b){return computed(()=>{for(const x of b)if(d[x]!==void 0)return d[x];return d[b[b.length-1]]})}const isIos=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function useIsIos(){return isIos}const defaultBreakpointOptions={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function createMediaQuery(d){return"(min-width: ".concat(d,"px)")}const mqlMap={};function useBreakpoints(d=defaultBreakpointOptions){if(!isBrowser$1)return computed(()=>[]);if(typeof window.matchMedia!="function")return computed(()=>[]);const b=ref({}),x=Object.keys(d),C=(w,A)=>{w.matches?b.value[A]=!0:b.value[A]=!1};return x.forEach(w=>{const A=d[w];let S,$;mqlMap[A]===void 0?(S=window.matchMedia(createMediaQuery(A)),S.addEventListener?S.addEventListener("change",E=>{$.forEach(P=>{P(E,w)})}):S.addListener&&S.addListener(E=>{$.forEach(P=>{P(E,w)})}),$=new Set,mqlMap[A]={mql:S,cbs:$}):(S=mqlMap[A].mql,$=mqlMap[A].cbs),$.add(C),S.matches&&$.forEach(E=>{E(S,w)})}),onBeforeUnmount(()=>{x.forEach(w=>{const{cbs:A}=mqlMap[d[w]];A.has(C)&&A.delete(C)})}),computed(()=>{const{value:w}=b;return x.filter(A=>w[A])})}function useKeyboard(d={},b){const x=reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:C,keyup:w}=d,A=E=>{switch(E.key){case"Control":x.ctrl=!0;break;case"Meta":x.command=!0,x.win=!0;break;case"Shift":x.shift=!0;break;case"Tab":x.tab=!0;break}C!==void 0&&Object.keys(C).forEach(P=>{if(P!==E.key)return;const B=C[P];if(typeof B=="function")B(E);else{const{stop:k=!1,prevent:I=!1}=B;k&&E.stopPropagation(),I&&E.preventDefault(),B.handler(E)}})},S=E=>{switch(E.key){case"Control":x.ctrl=!1;break;case"Meta":x.command=!1,x.win=!1;break;case"Shift":x.shift=!1;break;case"Tab":x.tab=!1;break}w!==void 0&&Object.keys(w).forEach(P=>{if(P!==E.key)return;const B=w[P];if(typeof B=="function")B(E);else{const{stop:k=!1,prevent:I=!1}=B;k&&E.stopPropagation(),I&&E.preventDefault(),B.handler(E)}})},$=()=>{(b===void 0||b.value)&&(on("keydown",document,A),on("keyup",document,S)),b!==void 0&&watch(b,E=>{E?(on("keydown",document,A),on("keyup",document,S)):(off("keydown",document,A),off("keyup",document,S))})};return hasInstance()?(onBeforeMount($),onBeforeUnmount(()=>{(b===void 0||b.value)&&(off("keydown",document,A),off("keyup",document,S))})):$(),readonly(x)}const internalSelectionMenuInjectionKey="n-internal-select-menu",internalSelectionMenuBodyInjectionKey="n-internal-select-menu-body",modalBodyInjectionKey="n-modal-body",modalInjectionKey="n-modal",drawerBodyInjectionKey="n-drawer-body",popoverBodyInjectionKey="n-popover-body",teleportDisabled="__disabled__";function useAdjustedTo(d){const b=inject(modalBodyInjectionKey,null),x=inject(drawerBodyInjectionKey,null),C=inject(popoverBodyInjectionKey,null),w=inject(internalSelectionMenuBodyInjectionKey,null),A=ref();if(typeof document<"u"){A.value=document.fullscreenElement;const S=()=>{A.value=document.fullscreenElement};onMounted(()=>{on("fullscreenchange",document,S)}),onBeforeUnmount(()=>{off("fullscreenchange",document,S)})}return useMemo(()=>{var S;const{to:$}=d;return $!==void 0?$===!1?teleportDisabled:$===!0?A.value||"body":$:b!=null&&b.value?(S=b.value.$el)!==null&&S!==void 0?S:b.value:x!=null&&x.value?x.value:C!=null&&C.value?C.value:w!=null&&w.value?w.value:$!=null?$:A.value||"body"})}useAdjustedTo.tdkey=teleportDisabled;useAdjustedTo.propTo={type:[String,Object,Boolean],default:void 0};function getSlot(d,b,x="default"){const C=b[x];if(C===void 0)throw new Error("[vueuc/".concat(d,"]: slot[").concat(x,"] is empty."));return C()}function flatten$3(d,b=!0,x=[]){return d.forEach(C=>{if(C!==null){if(typeof C!="object"){(typeof C=="string"||typeof C=="number")&&x.push(createTextVNode(String(C)));return}if(Array.isArray(C)){flatten$3(C,b,x);return}if(C.type===Fragment){if(C.children===null)return;Array.isArray(C.children)&&flatten$3(C.children,b,x)}else C.type!==Comment&&x.push(C)}}),x}function getFirstVNode(d,b,x="default"){const C=b[x];if(C===void 0)throw new Error("[vueuc/".concat(d,"]: slot[").concat(x,"] is empty."));const w=flatten$3(C());if(w.length===1)return w[0];throw new Error("[vueuc/".concat(d,"]: slot[").concat(x,"] should have exactly one child."))}let viewMeasurer=null;function ensureViewBoundingRect(){if(viewMeasurer===null&&(viewMeasurer=document.getElementById("v-binder-view-measurer"),viewMeasurer===null)){viewMeasurer=document.createElement("div"),viewMeasurer.id="v-binder-view-measurer";const{style:d}=viewMeasurer;d.position="fixed",d.left="0",d.right="0",d.top="0",d.bottom="0",d.pointerEvents="none",d.visibility="hidden",document.body.appendChild(viewMeasurer)}return viewMeasurer.getBoundingClientRect()}function getPointRect(d,b){const x=ensureViewBoundingRect();return{top:b,left:d,height:0,width:0,right:x.width-d,bottom:x.height-b}}function getRect$1(d){const b=d.getBoundingClientRect(),x=ensureViewBoundingRect();return{left:b.left-x.left,top:b.top-x.top,bottom:x.height+x.top-b.bottom,right:x.width+x.left-b.right,width:b.width,height:b.height}}function getParentNode(d){return d.nodeType===9?null:d.parentNode}function getScrollParent(d){if(d===null)return null;const b=getParentNode(d);if(b===null)return null;if(b.nodeType===9)return document;if(b.nodeType===1){const{overflow:x,overflowX:C,overflowY:w}=getComputedStyle(b);if(/(auto|scroll|overlay)/.test(x+w+C))return b}return getScrollParent(b)}const Binder=defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(d){var b;provide("VBinder",(b=getCurrentInstance())===null||b===void 0?void 0:b.proxy);const x=inject("VBinder",null),C=ref(null),w=V=>{C.value=V,x&&d.syncTargetWithParent&&x.setTargetRef(V)};let A=[];const S=()=>{let V=C.value;for(;V=getScrollParent(V),V!==null;)A.push(V);for(const U of A)on("scroll",U,k,!0)},$=()=>{for(const V of A)off("scroll",V,k,!0);A=[]},E=new Set,P=V=>{E.size===0&&S(),E.has(V)||E.add(V)},B=V=>{E.has(V)&&E.delete(V),E.size===0&&$()},k=()=>{beforeNextFrameOnce(I)},I=()=>{E.forEach(V=>V())},R=new Set,F=V=>{R.size===0&&on("resize",window,z),R.has(V)||R.add(V)},L=V=>{R.has(V)&&R.delete(V),R.size===0&&off("resize",window,z)},z=()=>{R.forEach(V=>V())};return onBeforeUnmount(()=>{off("resize",window,z),$()}),{targetRef:C,setTargetRef:w,addScrollListener:P,removeScrollListener:B,addResizeListener:F,removeResizeListener:L}},render(){return getSlot("binder",this.$slots)}}),VBinder=Binder,VTarget=defineComponent({name:"Target",setup(){const{setTargetRef:d,syncTarget:b}=inject("VBinder");return{syncTarget:b,setTargetDirective:{mounted:d,updated:d}}},render(){const{syncTarget:d,setTargetDirective:b}=this;return d?withDirectives(getFirstVNode("follower",this.$slots),[[b]]):getFirstVNode("follower",this.$slots)}}),ctxKey$1="@@mmoContext",mousemoveoutside={mounted(d,{value:b}){d[ctxKey$1]={handler:void 0},typeof b=="function"&&(d[ctxKey$1].handler=b,on("mousemoveoutside",d,b))},updated(d,{value:b}){const x=d[ctxKey$1];typeof b=="function"?x.handler?x.handler!==b&&(off("mousemoveoutside",d,x.handler),x.handler=b,on("mousemoveoutside",d,b)):(d[ctxKey$1].handler=b,on("mousemoveoutside",d,b)):x.handler&&(off("mousemoveoutside",d,x.handler),x.handler=void 0)},unmounted(d){const{handler:b}=d[ctxKey$1];b&&off("mousemoveoutside",d,b),d[ctxKey$1].handler=void 0}},mousemoveoutside$1=mousemoveoutside,ctxKey="@@coContext",clickoutside={mounted(d,{value:b,modifiers:x}){d[ctxKey]={handler:void 0},typeof b=="function"&&(d[ctxKey].handler=b,on("clickoutside",d,b,{capture:x.capture}))},updated(d,{value:b,modifiers:x}){const C=d[ctxKey];typeof b=="function"?C.handler?C.handler!==b&&(off("clickoutside",d,C.handler,{capture:x.capture}),C.handler=b,on("clickoutside",d,b,{capture:x.capture})):(d[ctxKey].handler=b,on("clickoutside",d,b,{capture:x.capture})):C.handler&&(off("clickoutside",d,C.handler,{capture:x.capture}),C.handler=void 0)},unmounted(d,{modifiers:b}){const{handler:x}=d[ctxKey];x&&off("clickoutside",d,x,{capture:b.capture}),d[ctxKey].handler=void 0}},clickoutside$1=clickoutside;function warn$2(d,b){console.error("[vdirs/".concat(d,"]: ").concat(b))}class ZIndexManager{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(b,x){const{elementZIndex:C}=this;if(x!==void 0){b.style.zIndex="".concat(x),C.delete(b);return}const{nextZIndex:w}=this;C.has(b)&&C.get(b)+1===this.nextZIndex||(b.style.zIndex="".concat(w),C.set(b,w),this.nextZIndex=w+1,this.squashState())}unregister(b,x){const{elementZIndex:C}=this;C.has(b)?C.delete(b):x===void 0&&warn$2("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:b}=this;b||(this.nextZIndex=2e3),this.nextZIndex-b>2500&&this.rearrange()}rearrange(){const b=Array.from(this.elementZIndex.entries());b.sort((x,C)=>x[1]-C[1]),this.nextZIndex=2e3,b.forEach(x=>{const C=x[0],w=this.nextZIndex++;"".concat(w)!==C.style.zIndex&&(C.style.zIndex="".concat(w))})}}const zIndexManager=new ZIndexManager,ctx="@@ziContext",zindexable={mounted(d,b){const{value:x={}}=b,{zIndex:C,enabled:w}=x;d[ctx]={enabled:!!w,initialized:!1},w&&(zIndexManager.ensureZIndex(d,C),d[ctx].initialized=!0)},updated(d,b){const{value:x={}}=b,{zIndex:C,enabled:w}=x,A=d[ctx].enabled;w&&!A&&(zIndexManager.ensureZIndex(d,C),d[ctx].initialized=!0),d[ctx].enabled=!!w},unmounted(d,b){if(!d[ctx].initialized)return;const{value:x={}}=b,{zIndex:C}=x;zIndexManager.unregister(d,C)}},zindexable$1=zindexable,ssrContextKey=Symbol("@css-render/vue3-ssr");function createStyleString(d,b){return'")}function ssrAdapter(d,b){const x=inject(ssrContextKey,null);if(x===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:C,ids:w}=x;w.has(d)||C!==null&&(w.add(d),C.push(createStyleString(d,b)))}const isBrowser=typeof document<"u";function useSsrAdapter(){if(isBrowser)return;const d=inject(ssrContextKey,null);if(d!==null)return{adapter:ssrAdapter,context:d}}function warn$1(d,b){console.error("[vueuc/".concat(d,"]: ").concat(b))}const{c:c$2}=CssRender(),cssrAnchorMetaName$1="vueuc-style";function lowBit(d){return d&-d}class FinweckTree{constructor(b,x){this.l=b,this.min=x;const C=new Array(b+1);for(let w=0;ww)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let A=b*C;for(;b>0;)A+=x[b],b-=lowBit(b);return A}getBound(b){let x=0,C=this.l;for(;C>x;){const w=Math.floor((x+C)/2),A=this.sum(w);if(A>b){C=w;continue}else if(A{const{to:b}=d;return b!=null?b:"body"})}},render(){return this.showTeleport?this.disabled?getSlot("lazy-teleport",this.$slots):h$1(Teleport,{disabled:this.disabled,to:this.mergedTo},getSlot("lazy-teleport",this.$slots)):null}}),oppositionPositions={top:"bottom",bottom:"top",left:"right",right:"left"},oppositeAligns={start:"end",center:"center",end:"start"},propToCompare={top:"height",bottom:"height",left:"width",right:"width"},transformOrigins={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},overlapTransformOrigin={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},oppositeAlignCssPositionProps={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},keepOffsetDirection={top:!0,bottom:!1,left:!0,right:!1},cssPositionToOppositeAlign={top:"end",bottom:"start",left:"end",right:"start"};function getPlacementAndOffsetOfFollower(d,b,x,C,w,A){if(!w||A)return{placement:d,top:0,left:0};const[S,$]=d.split("-");let E=$!=null?$:"center",P={top:0,left:0};const B=(R,F,L)=>{let z=0,V=0;const U=x[R]-b[F]-b[R];return U>0&&C&&(L?V=keepOffsetDirection[F]?U:-U:z=keepOffsetDirection[F]?U:-U),{left:z,top:V}},k=S==="left"||S==="right";if(E!=="center"){const R=oppositeAlignCssPositionProps[d],F=oppositionPositions[R],L=propToCompare[R];if(x[L]>b[L]){if(b[R]+b[L]b[F]&&(E=oppositeAligns[$])}else{const R=S==="bottom"||S==="top"?"left":"top",F=oppositionPositions[R],L=propToCompare[R],z=(x[L]-b[L])/2;(b[R]b[F]?(E=cssPositionToOppositeAlign[R],P=B(L,R,k)):(E=cssPositionToOppositeAlign[F],P=B(L,F,k)))}let I=S;return b[S] *",{pointerEvents:"all"})])]),VFollower=defineComponent({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(d){const b=inject("VBinder"),x=useMemo(()=>d.enabled!==void 0?d.enabled:d.show),C=ref(null),w=ref(null),A=()=>{const{syncTrigger:I}=d;I.includes("scroll")&&b.addScrollListener(E),I.includes("resize")&&b.addResizeListener(E)},S=()=>{b.removeScrollListener(E),b.removeResizeListener(E)};onMounted(()=>{x.value&&(E(),A())});const $=useSsrAdapter();style$s.mount({id:"vueuc/binder",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:$}),onBeforeUnmount(()=>{S()}),onFontsReady(()=>{x.value&&E()});const E=()=>{if(!x.value)return;const I=C.value;if(I===null)return;const R=b.targetRef,{x:F,y:L,overlap:z}=d,V=F!==void 0&&L!==void 0?getPointRect(F,L):getRect$1(R);I.style.setProperty("--v-target-width","".concat(Math.round(V.width),"px")),I.style.setProperty("--v-target-height","".concat(Math.round(V.height),"px"));const{width:U,minWidth:Q,placement:W,internalShift:G,flip:q}=d;I.setAttribute("v-placement",W),z?I.setAttribute("v-overlap",""):I.removeAttribute("v-overlap");const{style:K}=I;U==="target"?K.width="".concat(V.width,"px"):U!==void 0?K.width=U:K.width="",Q==="target"?K.minWidth="".concat(V.width,"px"):Q!==void 0?K.minWidth=Q:K.minWidth="";const X=getRect$1(I),J=getRect$1(w.value),{left:oe,top:he,placement:Z}=getPlacementAndOffsetOfFollower(W,V,X,G,q,z),ce=getProperTransformOrigin(Z,z),{left:fe,top:me,transform:ne}=getOffset(Z,J,V,he,oe,z);I.setAttribute("v-placement",Z),I.style.setProperty("--v-offset-left","".concat(Math.round(oe),"px")),I.style.setProperty("--v-offset-top","".concat(Math.round(he),"px")),I.style.transform="translateX(".concat(fe,") translateY(").concat(me,") ").concat(ne),I.style.setProperty("--v-transform-origin",ce),I.style.transformOrigin=ce};watch(x,I=>{I?(A(),P()):S()});const P=()=>{nextTick().then(E).catch(I=>console.error(I))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(I=>{watch(toRef$1(d,I),E)}),["teleportDisabled"].forEach(I=>{watch(toRef$1(d,I),P)}),watch(toRef$1(d,"syncTrigger"),I=>{I.includes("resize")?b.addResizeListener(E):b.removeResizeListener(E),I.includes("scroll")?b.addScrollListener(E):b.removeScrollListener(E)});const B=isMounted(),k=useMemo(()=>{const{to:I}=d;if(I!==void 0)return I;B.value});return{VBinder:b,mergedEnabled:x,offsetContainerRef:w,followerRef:C,mergedTo:k,syncPosition:E}},render(){return h$1(LazyTeleport,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var d,b;const x=h$1("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[h$1("div",{class:"v-binder-follower-content",ref:"followerRef"},(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d))]);return this.zindexable?withDirectives(x,[[zindexable$1,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):x}})}});var resizeObservers=[],hasActiveObservations=function(){return resizeObservers.some(function(d){return d.activeTargets.length>0})},hasSkippedObservations=function(){return resizeObservers.some(function(d){return d.skippedTargets.length>0})},msg="ResizeObserver loop completed with undelivered notifications.",deliverResizeLoopError=function(){var d;typeof ErrorEvent=="function"?d=new ErrorEvent("error",{message:msg}):(d=document.createEvent("Event"),d.initEvent("error",!1,!1),d.message=msg),window.dispatchEvent(d)},ResizeObserverBoxOptions;(function(d){d.BORDER_BOX="border-box",d.CONTENT_BOX="content-box",d.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function(d){return Object.freeze(d)},ResizeObserverSize=function(){function d(b,x){this.inlineSize=b,this.blockSize=x,freeze(this)}return d}(),DOMRectReadOnly=function(){function d(b,x,C,w){return this.x=b,this.y=x,this.width=C,this.height=w,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,freeze(this)}return d.prototype.toJSON=function(){var b=this,x=b.x,C=b.y,w=b.top,A=b.right,S=b.bottom,$=b.left,E=b.width,P=b.height;return{x,y:C,top:w,right:A,bottom:S,left:$,width:E,height:P}},d.fromRect=function(b){return new d(b.x,b.y,b.width,b.height)},d}(),isSVG=function(d){return d instanceof SVGElement&&"getBBox"in d},isHidden=function(d){if(isSVG(d)){var b=d.getBBox(),x=b.width,C=b.height;return!x&&!C}var w=d,A=w.offsetWidth,S=w.offsetHeight;return!(A||S||d.getClientRects().length)},isElement=function(d){var b;if(d instanceof Element)return!0;var x=(b=d==null?void 0:d.ownerDocument)===null||b===void 0?void 0:b.defaultView;return!!(x&&d instanceof x.Element)},isReplacedElement=function(d){switch(d.tagName){case"INPUT":if(d.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},global$1=typeof window<"u"?window:{},cache=new WeakMap,scrollRegexp=/auto|scroll/,verticalRegexp=/^tb|vertical/,IE=/msie|trident/i.test(global$1.navigator&&global$1.navigator.userAgent),parseDimension=function(d){return parseFloat(d||"0")},size=function(d,b,x){return d===void 0&&(d=0),b===void 0&&(b=0),x===void 0&&(x=!1),new ResizeObserverSize((x?b:d)||0,(x?d:b)||0)},zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)}),calculateBoxSizes=function(d,b){if(b===void 0&&(b=!1),cache.has(d)&&!b)return cache.get(d);if(isHidden(d))return cache.set(d,zeroBoxes),zeroBoxes;var x=getComputedStyle(d),C=isSVG(d)&&d.ownerSVGElement&&d.getBBox(),w=!IE&&x.boxSizing==="border-box",A=verticalRegexp.test(x.writingMode||""),S=!C&&scrollRegexp.test(x.overflowY||""),$=!C&&scrollRegexp.test(x.overflowX||""),E=C?0:parseDimension(x.paddingTop),P=C?0:parseDimension(x.paddingRight),B=C?0:parseDimension(x.paddingBottom),k=C?0:parseDimension(x.paddingLeft),I=C?0:parseDimension(x.borderTopWidth),R=C?0:parseDimension(x.borderRightWidth),F=C?0:parseDimension(x.borderBottomWidth),L=C?0:parseDimension(x.borderLeftWidth),z=k+P,V=E+B,U=L+R,Q=I+F,W=$?d.offsetHeight-Q-d.clientHeight:0,G=S?d.offsetWidth-U-d.clientWidth:0,q=w?z+U:0,K=w?V+Q:0,X=C?C.width:parseDimension(x.width)-q-G,J=C?C.height:parseDimension(x.height)-K-W,oe=X+z+G+U,he=J+V+W+Q,Z=freeze({devicePixelContentBoxSize:size(Math.round(X*devicePixelRatio),Math.round(J*devicePixelRatio),A),borderBoxSize:size(oe,he,A),contentBoxSize:size(X,J,A),contentRect:new DOMRectReadOnly(k,E,X,J)});return cache.set(d,Z),Z},calculateBoxSize=function(d,b,x){var C=calculateBoxSizes(d,x),w=C.borderBoxSize,A=C.contentBoxSize,S=C.devicePixelContentBoxSize;switch(b){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return S;case ResizeObserverBoxOptions.BORDER_BOX:return w;default:return A}},ResizeObserverEntry=function(){function d(b){var x=calculateBoxSizes(b);this.target=b,this.contentRect=x.contentRect,this.borderBoxSize=freeze([x.borderBoxSize]),this.contentBoxSize=freeze([x.contentBoxSize]),this.devicePixelContentBoxSize=freeze([x.devicePixelContentBoxSize])}return d}(),calculateDepthForNode=function(d){if(isHidden(d))return 1/0;for(var b=0,x=d.parentNode;x;)b+=1,x=x.parentNode;return b},broadcastActiveObservations=function(){var d=1/0,b=[];resizeObservers.forEach(function(S){if(S.activeTargets.length!==0){var $=[];S.activeTargets.forEach(function(P){var B=new ResizeObserverEntry(P.target),k=calculateDepthForNode(P.target);$.push(B),P.lastReportedSize=calculateBoxSize(P.target,P.observedBox),kd?x.activeTargets.push(w):x.skippedTargets.push(w))})})},process$1=function(){var d=0;for(gatherActiveObservationsAtDepth(d);hasActiveObservations();)d=broadcastActiveObservations(),gatherActiveObservationsAtDepth(d);return hasSkippedObservations()&&deliverResizeLoopError(),d>0},trigger,callbacks=[],notify=function(){return callbacks.splice(0).forEach(function(d){return d()})},queueMicroTask=function(d){if(!trigger){var b=0,x=document.createTextNode(""),C={characterData:!0};new MutationObserver(function(){return notify()}).observe(x,C),trigger=function(){x.textContent="".concat(b?b--:b++)}}callbacks.push(d),trigger()},queueResizeObserver=function(d){queueMicroTask(function(){requestAnimationFrame(d)})},watching=0,isWatching=function(){return!!watching},CATCH_PERIOD=250,observerConfig={attributes:!0,characterData:!0,childList:!0,subtree:!0},events=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],time$1=function(d){return d===void 0&&(d=0),Date.now()+d},scheduled=!1,Scheduler=function(){function d(){var b=this;this.stopped=!0,this.listener=function(){return b.schedule()}}return d.prototype.run=function(b){var x=this;if(b===void 0&&(b=CATCH_PERIOD),!scheduled){scheduled=!0;var C=time$1(b);queueResizeObserver(function(){var w=!1;try{w=process$1()}finally{if(scheduled=!1,b=C-time$1(),!isWatching())return;w?x.run(1e3):b>0?x.run(b):x.start()}})}},d.prototype.schedule=function(){this.stop(),this.run()},d.prototype.observe=function(){var b=this,x=function(){return b.observer&&b.observer.observe(document.body,observerConfig)};document.body?x():global$1.addEventListener("DOMContentLoaded",x)},d.prototype.start=function(){var b=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events.forEach(function(x){return global$1.addEventListener(x,b.listener,!0)}))},d.prototype.stop=function(){var b=this;this.stopped||(this.observer&&this.observer.disconnect(),events.forEach(function(x){return global$1.removeEventListener(x,b.listener,!0)}),this.stopped=!0)},d}(),scheduler=new Scheduler,updateCount=function(d){!watching&&d>0&&scheduler.start(),watching+=d,!watching&&scheduler.stop()},skipNotifyOnElement=function(d){return!isSVG(d)&&!isReplacedElement(d)&&getComputedStyle(d).display==="inline"},ResizeObservation=function(){function d(b,x){this.target=b,this.observedBox=x||ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return d.prototype.isActive=function(){var b=calculateBoxSize(this.target,this.observedBox,!0);return skipNotifyOnElement(this.target)&&(this.lastReportedSize=b),this.lastReportedSize.inlineSize!==b.inlineSize||this.lastReportedSize.blockSize!==b.blockSize},d}(),ResizeObserverDetail=function(){function d(b,x){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=b,this.callback=x}return d}(),observerMap=new WeakMap,getObservationIndex=function(d,b){for(var x=0;x=0&&(A&&resizeObservers.splice(resizeObservers.indexOf(C),1),C.observationTargets.splice(w,1),updateCount(-1))},d.disconnect=function(b){var x=this,C=observerMap.get(b);C.observationTargets.slice().forEach(function(w){return x.unobserve(b,w.target)}),C.activeTargets.splice(0,C.activeTargets.length)},d}(),ResizeObserver=function(){function d(b){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof b!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ResizeObserverController.connect(this,b)}return d.prototype.observe=function(b,x){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(b))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.observe(this,b,x)},d.prototype.unobserve=function(b){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(b))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.unobserve(this,b)},d.prototype.disconnect=function(){ResizeObserverController.disconnect(this)},d.toString=function(){return"function ResizeObserver () { [polyfill code] }"},d}();class ResizeObserverDelegate{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||ResizeObserver)(this.handleResize),this.elHandlersMap=new Map}handleResize(b){for(const x of b){const C=this.elHandlersMap.get(x.target);C!==void 0&&C(x)}}registerHandler(b,x){this.elHandlersMap.set(b,x),this.observer.observe(b)}unregisterHandler(b){this.elHandlersMap.has(b)&&(this.elHandlersMap.delete(b),this.observer.unobserve(b))}}const resizeObserverManager=new ResizeObserverDelegate,VResizeObserver=defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(d){let b=!1;const x=getCurrentInstance().proxy;function C(w){const{onResize:A}=d;A!==void 0&&A(w)}onMounted(()=>{const w=x.$el;if(w===void 0){warn$1("resize-observer","$el does not exist.");return}if(w.nextElementSibling!==w.nextSibling&&w.nodeType===3&&w.nodeValue!==""){warn$1("resize-observer","$el can not be observed (it may be a text node).");return}w.nextElementSibling!==null&&(resizeObserverManager.registerHandler(w.nextElementSibling,C),b=!0)}),onBeforeUnmount(()=>{b&&resizeObserverManager.unregisterHandler(x.$el.nextElementSibling)})},render(){return renderSlot(this.$slots,"default")}});let maybeTouch;function ensureMaybeTouch(){return maybeTouch===void 0&&("matchMedia"in window?maybeTouch=window.matchMedia("(pointer:coarse)").matches:maybeTouch=!1),maybeTouch}let wheelScale;function ensureWheelScale(){return wheelScale===void 0&&(wheelScale="chrome"in window?window.devicePixelRatio:1),wheelScale}const styles$8=c$2(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[c$2("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[c$2("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),VVirtualList=defineComponent({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(d){const b=useSsrAdapter();styles$8.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:b}),onMounted(()=>{const{defaultScrollIndex:he,defaultScrollKey:Z}=d;he!=null?F({index:he}):Z!=null&&F({key:Z})});let x=!1,C=!1;onActivated(()=>{if(x=!1,!C){C=!0;return}F({top:k.value,left:B})}),onDeactivated(()=>{x=!0,C||(C=!0)});const w=computed(()=>{const he=new Map,{keyField:Z}=d;return d.items.forEach((ce,fe)=>{he.set(ce[Z],fe)}),he}),A=ref(null),S=ref(void 0),$=new Map,E=computed(()=>{const{items:he,itemSize:Z,keyField:ce}=d,fe=new FinweckTree(he.length,Z);return he.forEach((me,ne)=>{const te=me[ce],de=$.get(te);de!==void 0&&fe.add(ne,de)}),fe}),P=ref(0);let B=0;const k=ref(0),I=useMemo(()=>Math.max(E.value.getBound(k.value-depx(d.paddingTop))-1,0)),R=computed(()=>{const{value:he}=S;if(he===void 0)return[];const{items:Z,itemSize:ce}=d,fe=I.value,me=Math.min(fe+Math.ceil(he/ce+1),Z.length-1),ne=[];for(let te=fe;te<=me;++te)ne.push(Z[te]);return ne}),F=(he,Z)=>{if(typeof he=="number"){U(he,Z,"auto");return}const{left:ce,top:fe,index:me,key:ne,position:te,behavior:de,debounce:le=!0}=he;if(ce!==void 0||fe!==void 0)U(ce,fe,de);else if(me!==void 0)V(me,de,le);else if(ne!==void 0){const be=w.value.get(ne);be!==void 0&&V(be,de,le)}else te==="bottom"?U(0,Number.MAX_SAFE_INTEGER,de):te==="top"&&U(0,0,de)};let L,z=null;function V(he,Z,ce){const{value:fe}=E,me=fe.sum(he)+depx(d.paddingTop);if(!ce)A.value.scrollTo({left:0,top:me,behavior:Z});else{L=he,z!==null&&window.clearTimeout(z),z=window.setTimeout(()=>{L=void 0,z=null},16);const{scrollTop:ne,offsetHeight:te}=A.value;if(me>ne){const de=fe.get(he);me+de<=ne+te||A.value.scrollTo({left:0,top:me+de-te,behavior:Z})}else A.value.scrollTo({left:0,top:me,behavior:Z})}}function U(he,Z,ce){A.value.scrollTo({left:he,top:Z,behavior:ce})}function Q(he,Z){var ce,fe,me;if(x||d.ignoreItemResize||oe(Z.target))return;const{value:ne}=E,te=w.value.get(he),de=ne.get(te),le=(me=(fe=(ce=Z.borderBoxSize)===null||ce===void 0?void 0:ce[0])===null||fe===void 0?void 0:fe.blockSize)!==null&&me!==void 0?me:Z.contentRect.height;if(le===de)return;le-d.itemSize===0?$.delete(he):$.set(he,le-d.itemSize);const Le=le-de;if(Le===0)return;ne.add(te,Le);const Qe=A.value;if(Qe!=null){if(L===void 0){const rt=ne.sum(te);Qe.scrollTop>rt&&Qe.scrollBy(0,Le)}else if(teQe.scrollTop+Qe.offsetHeight&&Qe.scrollBy(0,Le)}J()}P.value++}const W=!ensureMaybeTouch();let G=!1;function q(he){var Z;(Z=d.onScroll)===null||Z===void 0||Z.call(d,he),(!W||!G)&&J()}function K(he){var Z;if((Z=d.onWheel)===null||Z===void 0||Z.call(d,he),W){const ce=A.value;if(ce!=null){if(he.deltaX===0&&(ce.scrollTop===0&&he.deltaY<=0||ce.scrollTop+ce.offsetHeight>=ce.scrollHeight&&he.deltaY>=0))return;he.preventDefault(),ce.scrollTop+=he.deltaY/ensureWheelScale(),ce.scrollLeft+=he.deltaX/ensureWheelScale(),J(),G=!0,beforeNextFrameOnce(()=>{G=!1})}}}function X(he){if(x||oe(he.target)||he.contentRect.height===S.value)return;S.value=he.contentRect.height;const{onResize:Z}=d;Z!==void 0&&Z(he)}function J(){const{value:he}=A;he!=null&&(k.value=he.scrollTop,B=he.scrollLeft)}function oe(he){let Z=he;for(;Z!==null;){if(Z.style.display==="none")return!0;Z=Z.parentElement}return!1}return{listHeight:S,listStyle:{overflow:"auto"},keyToIndex:w,itemsStyle:computed(()=>{const{itemResizable:he}=d,Z=pxfy(E.value.sum());return P.value,[d.itemsStyle,{boxSizing:"content-box",height:he?"":Z,minHeight:he?Z:"",paddingTop:pxfy(d.paddingTop),paddingBottom:pxfy(d.paddingBottom)}]}),visibleItemsStyle:computed(()=>(P.value,{transform:"translateY(".concat(pxfy(E.value.sum(I.value)),")")})),viewportItems:R,listElRef:A,itemsElRef:ref(null),scrollTo:F,handleListResize:X,handleListScroll:q,handleListWheel:K,handleItemResize:Q}},render(){const{itemResizable:d,keyField:b,keyToIndex:x,visibleItemsTag:C}=this;return h$1(VResizeObserver,{onResize:this.handleListResize},{default:()=>{var w,A;return h$1("div",mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?h$1("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[h$1(C,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(S=>{const $=S[b],E=x.get($),P=this.$slots.default({item:S,index:E})[0];return d?h$1(VResizeObserver,{key:$,onResize:B=>this.handleItemResize($,B)},{default:()=>P}):(P.key=$,P)})})]):(A=(w=this.$slots).empty)===null||A===void 0?void 0:A.call(w)])}})}}),styles$7=c$2(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[c$2("&::-webkit-scrollbar",{width:0,height:0})]),VXScroll=defineComponent({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const d=ref(null);function b(w){!(w.currentTarget.offsetWidthk){const{updateCounter:G}=d;for(let q=U;q>=0;--q){const K=z-1-q;G!==void 0?G(K):P.textContent="".concat(K);const X=P.offsetWidth;if(F-=I[q],F+X<=k||q===0){L=!0,U=q-1,R&&(U===-1?(R.style.maxWidth="".concat(k-X,"px"),R.style.boxSizing="border-box"):R.style.maxWidth="");break}}}}const{onUpdateOverflow:V}=d;L?V!==void 0&&V(!0):(V!==void 0&&V(!1),P.setAttribute(hiddenAttr,""))}const A=useSsrAdapter();return style$r.mount({id:"vueuc/overflow",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:A}),onMounted(w),{selfRef:x,counterRef:C,sync:w}},render(){const{$slots:d}=this;return nextTick(this.sync),h$1("div",{class:"v-overflow",ref:"selfRef"},[renderSlot(d,"default"),d.counter?d.counter():h$1("span",{style:{display:"inline-block"},ref:"counterRef"}),d.tail?d.tail():null])}});function isHTMLElement(d){return d instanceof HTMLElement}function focusFirstDescendant(d){for(let b=0;b=0;b--){const x=d.childNodes[b];if(isHTMLElement(x)&&(attemptFocus(x)||focusLastDescendant(x)))return!0}return!1}function attemptFocus(d){if(!isFocusable(d))return!1;try{d.focus({preventScroll:!0})}catch(b){}return document.activeElement===d}function isFocusable(d){if(d.tabIndex>0||d.tabIndex===0&&d.getAttribute("tabIndex")!==null)return!0;if(d.getAttribute("disabled"))return!1;switch(d.nodeName){case"A":return!!d.href&&d.rel!=="ignore";case"INPUT":return d.type!=="hidden"&&d.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let stack=[];const FocusTrap=defineComponent({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(d){const b=createId(),x=ref(null),C=ref(null);let w=!1,A=!1;const S=typeof document>"u"?null:document.activeElement;function $(){return stack[stack.length-1]===b}function E(z){var V;z.code==="Escape"&&$()&&((V=d.onEsc)===null||V===void 0||V.call(d,z))}onMounted(()=>{watch(()=>d.active,z=>{z?(k(),on("keydown",document,E)):(off("keydown",document,E),w&&I())},{immediate:!0})}),onBeforeUnmount(()=>{off("keydown",document,E),w&&I()});function P(z){if(!A&&$()){const V=B();if(V===null||V.contains(getPreciseEventTarget(z)))return;R("first")}}function B(){const z=x.value;if(z===null)return null;let V=z;for(;V=V.nextSibling,!(V===null||V instanceof Element&&V.tagName==="DIV"););return V}function k(){var z;if(!d.disabled){if(stack.push(b),d.autoFocus){const{initialFocusTo:V}=d;V===void 0?R("first"):(z=resolveTo(V))===null||z===void 0||z.focus({preventScroll:!0})}w=!0,document.addEventListener("focus",P,!0)}}function I(){var z;if(d.disabled||(document.removeEventListener("focus",P,!0),stack=stack.filter(U=>U!==b),$()))return;const{finalFocusTo:V}=d;V!==void 0?(z=resolveTo(V))===null||z===void 0||z.focus({preventScroll:!0}):d.returnFocusOnDeactivated&&S instanceof HTMLElement&&(A=!0,S.focus({preventScroll:!0}),A=!1)}function R(z){if($()&&d.active){const V=x.value,U=C.value;if(V!==null&&U!==null){const Q=B();if(Q==null||Q===U){A=!0,V.focus({preventScroll:!0}),A=!1;return}A=!0;const W=z==="first"?focusFirstDescendant(Q):focusLastDescendant(Q);A=!1,W||(A=!0,V.focus({preventScroll:!0}),A=!1)}}}function F(z){if(A)return;const V=B();V!==null&&(z.relatedTarget!==null&&V.contains(z.relatedTarget)?R("last"):R("first"))}function L(z){A||(z.relatedTarget!==null&&z.relatedTarget===x.value?R("last"):R("first"))}return{focusableStartRef:x,focusableEndRef:C,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:F,handleEndFocus:L}},render(){const{default:d}=this.$slots;if(d===void 0)return null;if(this.disabled)return d();const{active:b,focusableStyle:x}=this;return h$1(Fragment,null,[h$1("div",{"aria-hidden":"true",tabindex:b?"0":"-1",ref:"focusableStartRef",style:x,onFocus:this.handleStartFocus}),d(),h$1("div",{"aria-hidden":"true",style:x,ref:"focusableEndRef",tabindex:b?"0":"-1",onFocus:this.handleEndFocus})])}});function useOnResize(d,b){b&&(onMounted(()=>{const{value:x}=d;x&&resizeObserverManager.registerHandler(x,b)}),onBeforeUnmount(()=>{const{value:x}=d;x&&resizeObserverManager.unregisterHandler(x)}))}let lockCount=0,originalMarginRight="",originalOverflow="",originalOverflowX="",originalOverflowY="";const lockHtmlScrollRightCompensationRef=ref("0px");function useLockHtmlScroll(d){if(typeof document>"u")return;const b=document.documentElement;let x,C=!1;const w=()=>{b.style.marginRight=originalMarginRight,b.style.overflow=originalOverflow,b.style.overflowX=originalOverflowX,b.style.overflowY=originalOverflowY,lockHtmlScrollRightCompensationRef.value="0px"};onMounted(()=>{x=watch(d,A=>{if(A){if(!lockCount){const S=window.innerWidth-b.offsetWidth;S>0&&(originalMarginRight=b.style.marginRight,b.style.marginRight="".concat(S,"px"),lockHtmlScrollRightCompensationRef.value="".concat(S,"px")),originalOverflow=b.style.overflow,originalOverflowX=b.style.overflowX,originalOverflowY=b.style.overflowY,b.style.overflow="hidden",b.style.overflowX="hidden",b.style.overflowY="hidden"}C=!0,lockCount++}else lockCount--,lockCount||w(),C=!1},{immediate:!0})}),onBeforeUnmount(()=>{x==null||x(),C&&(lockCount--,lockCount||w(),C=!1)})}const isComposingRef=ref(!1),compositionStartHandler=()=>{isComposingRef.value=!0},compositionEndHandler=()=>{isComposingRef.value=!1};let mountedCount=0;const useIsComposing=()=>(isBrowser$2&&(onBeforeMount(()=>{mountedCount||(window.addEventListener("compositionstart",compositionStartHandler),window.addEventListener("compositionend",compositionEndHandler)),mountedCount++}),onBeforeUnmount(()=>{mountedCount<=1?(window.removeEventListener("compositionstart",compositionStartHandler),window.removeEventListener("compositionend",compositionEndHandler),mountedCount=0):mountedCount--})),isComposingRef);function useReactivated(d){const b={isDeactivated:!1};let x=!1;return onActivated(()=>{if(b.isDeactivated=!1,!x){x=!0;return}d()}),onDeactivated(()=>{b.isDeactivated=!0,x||(x=!0)}),b}const formItemInjectionKey="n-form-item";function useFormItem(d,{defaultSize:b="medium",mergedSize:x,mergedDisabled:C}={}){const w=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const A=computed(x?()=>x(w):()=>{const{size:E}=d;if(E)return E;if(w){const{mergedSize:P}=w;if(P.value!==void 0)return P.value}return b}),S=computed(C?()=>C(w):()=>{const{disabled:E}=d;return E!==void 0?E:w?w.disabled.value:!1}),$=computed(()=>{const{status:E}=d;return E||(w==null?void 0:w.mergedValidationStatus.value)});return onBeforeUnmount(()=>{w&&w.restoreValidation()}),{mergedSizeRef:A,mergedDisabledRef:S,mergedStatusRef:$,nTriggerFormBlur(){w&&w.handleContentBlur()},nTriggerFormChange(){w&&w.handleContentChange()},nTriggerFormFocus(){w&&w.handleContentFocus()},nTriggerFormInput(){w&&w.handleContentInput()}}}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$1=freeGlobal$1||freeSelf||Function("return this")();const root$2=root$1;var Symbol$1=root$2.Symbol;const Symbol$2=Symbol$1;var objectProto$f=Object.prototype,hasOwnProperty$c=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(d){var b=hasOwnProperty$c.call(d,symToStringTag$1),x=d[symToStringTag$1];try{d[symToStringTag$1]=void 0;var C=!0}catch(A){}var w=nativeObjectToString$1.call(d);return C&&(b?d[symToStringTag$1]=x:delete d[symToStringTag$1]),w}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$1(d){return nativeObjectToString.call(d)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(d){return d==null?d===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(d)?getRawTag(d):objectToString$1(d)}function isObjectLike$1(d){return d!=null&&typeof d=="object"}var symbolTag$1="[object Symbol]";function isSymbol(d){return typeof d=="symbol"||isObjectLike$1(d)&&baseGetTag(d)==symbolTag$1}function arrayMap(d,b){for(var x=-1,C=d==null?0:d.length,w=Array(C);++x0){if(++b>=HOT_COUNT)return arguments[0]}else b=0;return d.apply(void 0,arguments)}}function constant(d){return function(){return d}}var defineProperty=function(){try{var d=getNative(Object,"defineProperty");return d({},"",{}),d}catch(b){}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(d,b){return defineProperty$1(d,"toString",{configurable:!0,enumerable:!1,value:constant(b),writable:!0})}:identity;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(d,b){var x=typeof d;return b=b==null?MAX_SAFE_INTEGER$1:b,!!b&&(x=="number"||x!="symbol"&&reIsUint.test(d))&&d>-1&&d%1==0&&d-1&&d%1==0&&d<=MAX_SAFE_INTEGER}function isArrayLike(d){return d!=null&&isLength(d.length)&&!isFunction$1(d)}function isIterateeCall(d,b,x){if(!isObject$1(x))return!1;var C=typeof b;return(C=="number"?isArrayLike(x)&&isIndex(b,x.length):C=="string"&&b in x)?eq(x[b],d):!1}function createAssigner(d){return baseRest(function(b,x){var C=-1,w=x.length,A=w>1?x[w-1]:void 0,S=w>2?x[2]:void 0;for(A=d.length>3&&typeof A=="function"?(w--,A):void 0,S&&isIterateeCall(x[0],x[1],S)&&(A=w<3?void 0:A,w=1),b=Object(b);++C-1}function listCacheSet(d,b){var x=this.__data__,C=assocIndexOf(x,d);return C<0?(++this.size,x.push([d,b])):x[C][1]=b,this}function ListCache(d){var b=-1,x=d==null?0:d.length;for(this.clear();++bw?0:w+b),x=x>w?w:x,x<0&&(x+=w),w=b>x?0:x-b>>>0,b>>>=0;for(var A=Array(w);++C=C?d:baseSlice(d,b,x)}var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f",rsZWJ$1="\\u200d",reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$1+rsVarRange$1+"]");function hasUnicode(d){return reHasUnicode.test(d)}function asciiToArray(d){return d.split("")}var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeToArray(d){return d.match(reUnicode)||[]}function stringToArray(d){return hasUnicode(d)?unicodeToArray(d):asciiToArray(d)}function createCaseFirst(d){return function(b){b=toString(b);var x=hasUnicode(b)?stringToArray(b):void 0,C=x?x[0]:b.charAt(0),w=x?castSlice(x,1).join(""):b.slice(1);return C[d]()+w}}var upperFirst=createCaseFirst("toUpperCase");const upperFirst$1=upperFirst;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(d){var b=this.__data__,x=b.delete(d);return this.size=b.size,x}function stackGet(d){return this.__data__.get(d)}function stackHas(d){return this.__data__.has(d)}var LARGE_ARRAY_SIZE=200;function stackSet(d,b){var x=this.__data__;if(x instanceof ListCache){var C=x.__data__;if(!Map$2||C.length$))return!1;var P=A.get(d),B=A.get(b);if(P&&B)return P==b&&B==d;var k=-1,I=!0,R=x&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(A.set(d,b),A.set(b,d);++k<$;){var F=d[k],L=b[k];if(C)var z=S?C(L,F,k,b,d,A):C(F,L,k,d,b,A);if(z!==void 0){if(z)continue;I=!1;break}if(R){if(!arraySome(b,function(V,U){if(!cacheHas(R,U)&&(F===V||w(F,V,x,C,A)))return R.push(U)})){I=!1;break}}else if(!(F===L||w(F,L,x,C,A))){I=!1;break}}return A.delete(d),A.delete(b),I}function mapToArray(d){var b=-1,x=Array(d.size);return d.forEach(function(C,w){x[++b]=[w,C]}),x}function setToArray(d){var b=-1,x=Array(d.size);return d.forEach(function(C){x[++b]=C}),x}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(d,b,x,C,w,A,S){switch(x){case dataViewTag:if(d.byteLength!=b.byteLength||d.byteOffset!=b.byteOffset)return!1;d=d.buffer,b=b.buffer;case arrayBufferTag:return!(d.byteLength!=b.byteLength||!A(new Uint8Array$2(d),new Uint8Array$2(b)));case boolTag:case dateTag:case numberTag:return eq(+d,+b);case errorTag:return d.name==b.name&&d.message==b.message;case regexpTag:case stringTag:return d==b+"";case mapTag:var $=mapToArray;case setTag:var E=C&COMPARE_PARTIAL_FLAG$4;if($||($=setToArray),d.size!=b.size&&!E)return!1;var P=S.get(d);if(P)return P==b;C|=COMPARE_UNORDERED_FLAG$2,S.set(d,b);var B=equalArrays($(d),$(b),C,w,A,S);return S.delete(d),B;case symbolTag:if(symbolValueOf)return symbolValueOf.call(d)==symbolValueOf.call(b)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function equalObjects(d,b,x,C,w,A){var S=x&COMPARE_PARTIAL_FLAG$3,$=getAllKeys(d),E=$.length,P=getAllKeys(b),B=P.length;if(E!=B&&!S)return!1;for(var k=E;k--;){var I=$[k];if(!(S?I in b:hasOwnProperty$2.call(b,I)))return!1}var R=A.get(d),F=A.get(b);if(R&&F)return R==b&&F==d;var L=!0;A.set(d,b),A.set(b,d);for(var z=S;++k=b||K<0||k&&X>=A}function V(){var q=now$2();if(z(q))return U(q);$=setTimeout(V,L(q))}function U(q){return $=void 0,I&&C?R(q):(C=w=void 0,S)}function Q(){$!==void 0&&clearTimeout($),P=0,C=E=w=$=void 0}function W(){return $===void 0?S:U(now$2())}function G(){var q=now$2(),K=z(q);if(C=arguments,w=this,E=q,K){if($===void 0)return F(E);if(k)return clearTimeout($),$=setTimeout(V,b),R(E)}return $===void 0&&($=setTimeout(V,b)),S}return G.cancel=Q,G.flush=W,G}function assignMergeValue(d,b,x){(x!==void 0&&!eq(d[b],x)||x===void 0&&!(b in d))&&baseAssignValue(d,b,x)}function isArrayLikeObject(d){return isObjectLike$1(d)&&isArrayLike(d)}function safeGet(d,b){if(!(b==="constructor"&&typeof d[b]=="function")&&b!="__proto__")return d[b]}function toPlainObject(d){return copyObject(d,keysIn(d))}function baseMergeDeep(d,b,x,C,w,A,S){var $=safeGet(d,x),E=safeGet(b,x),P=S.get(E);if(P){assignMergeValue(d,x,P);return}var B=A?A($,E,x+"",d,b,S):void 0,k=B===void 0;if(k){var I=isArray$2(E),R=!I&&isBuffer$1(E),F=!I&&!R&&isTypedArray$1(E);B=E,I||R||F?isArray$2($)?B=$:isArrayLikeObject($)?B=copyArray($):R?(k=!1,B=cloneBuffer(E,!0)):F?(k=!1,B=cloneTypedArray(E,!0)):B=[]:isPlainObject$2(E)||isArguments$1(E)?(B=$,isArguments$1($)?B=toPlainObject($):(!isObject$1($)||isFunction$1($))&&(B=initCloneObject(E))):k=!1}k&&(S.set(E,B),w(B,E,C,A,S),S.delete(E)),assignMergeValue(d,x,B)}function baseMerge(d,b,x,C,w){d!==b&&baseFor$1(b,function(A,S){if(w||(w=new Stack),isObject$1(A))baseMergeDeep(d,b,S,x,baseMerge,C,w);else{var $=C?C(safeGet(d,S),A,S+"",d,b,w):void 0;$===void 0&&($=A),assignMergeValue(d,S,$)}},keysIn)}function baseMap(d,b){var x=-1,C=isArrayLike(d)?Array(d.length):[];return baseEach$1(d,function(w,A,S){C[++x]=b(w,A,S)}),C}function map(d,b){var x=isArray$2(d)?arrayMap:baseMap;return x(d,baseIteratee(b))}var merge$1=createAssigner(function(d,b,x){baseMerge(d,b,x)});const merge$2=merge$1;var FUNC_ERROR_TEXT="Expected a function";function throttle(d,b,x){var C=!0,w=!0;if(typeof d!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$1(x)&&(C="leading"in x?!!x.leading:C,w="trailing"in x?!!x.trailing:w),debounce(d,b,{leading:C,maxWait:b,trailing:w})}const commonVariables$m={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize,fontFamily,lineHeight}=commonVariables$m,globalStyle=c$3("body","\n margin: 0;\n font-size: ".concat(fontSize,";\n font-family: ").concat(fontFamily,";\n line-height: ").concat(lineHeight,";\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: transparent;\n"),[c$3("input","\n font-family: inherit;\n font-size: inherit;\n ")]),configProviderInjectionKey="n-config-provider",cssrAnchorMetaName="naive-ui-style";function createTheme(d){return d}function useTheme(d,b,x,C,w,A){const S=useSsrAdapter(),$=inject(configProviderInjectionKey,null);if(x){const P=()=>{const B=A==null?void 0:A.value;x.mount({id:B===void 0?b:B+b,head:!0,props:{bPrefix:B?".".concat(B,"-"):void 0},anchorMetaName:cssrAnchorMetaName,ssr:S}),$!=null&&$.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:S})};S?P():onBeforeMount(P)}return computed(()=>{var P;const{theme:{common:B,self:k,peers:I={}}={},themeOverrides:R={},builtinThemeOverrides:F={}}=w,{common:L,peers:z}=R,{common:V=void 0,[d]:{common:U=void 0,self:Q=void 0,peers:W={}}={}}=($==null?void 0:$.mergedThemeRef.value)||{},{common:G=void 0,[d]:q={}}=($==null?void 0:$.mergedThemeOverridesRef.value)||{},{common:K,peers:X={}}=q,J=merge$2({},B||U||V||C.common,G,K,L),oe=merge$2((P=k||Q||C.self)===null||P===void 0?void 0:P(J),F,q,R);return{common:J,self:oe,peers:merge$2({},C.peers,W,I),peerOverrides:merge$2({},F.peers,X,z)}})}useTheme.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const defaultClsPrefix="n";function useConfig(d={},b={defaultBordered:!0}){const x=inject(configProviderInjectionKey,null);return{inlineThemeDisabled:x==null?void 0:x.inlineThemeDisabled,mergedRtlRef:x==null?void 0:x.mergedRtlRef,mergedComponentPropsRef:x==null?void 0:x.mergedComponentPropsRef,mergedBreakpointsRef:x==null?void 0:x.mergedBreakpointsRef,mergedBorderedRef:computed(()=>{var C,w;const{bordered:A}=d;return A!==void 0?A:(w=(C=x==null?void 0:x.mergedBorderedRef.value)!==null&&C!==void 0?C:b.defaultBordered)!==null&&w!==void 0?w:!0}),mergedClsPrefixRef:computed(()=>(x==null?void 0:x.mergedClsPrefixRef.value)||defaultClsPrefix),namespaceRef:computed(()=>x==null?void 0:x.mergedNamespaceRef.value)}}const enUS={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:d=>"Please load all ".concat(d,"'s descendants before checking it.")},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:d=>"Total ".concat(d," items"),selected:d=>"".concat(d," items selected")},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},enUS$1=enUS;function buildFormatLongFn(d){return function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=b.width?String(b.width):d.defaultWidth,C=d.formats[x]||d.formats[d.defaultWidth];return C}}function buildLocalizeFn(d){return function(b,x){var C=x!=null&&x.context?String(x.context):"standalone",w;if(C==="formatting"&&d.formattingValues){var A=d.defaultFormattingWidth||d.defaultWidth,S=x!=null&&x.width?String(x.width):A;w=d.formattingValues[S]||d.formattingValues[A]}else{var $=d.defaultWidth,E=x!=null&&x.width?String(x.width):d.defaultWidth;w=d.values[E]||d.values[$]}var P=d.argumentCallback?d.argumentCallback(b):b;return w[P]}}function buildMatchFn(d){return function(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=x.width,w=C&&d.matchPatterns[C]||d.matchPatterns[d.defaultMatchWidth],A=b.match(w);if(!A)return null;var S=A[0],$=C&&d.parsePatterns[C]||d.parsePatterns[d.defaultParseWidth],E=Array.isArray($)?findIndex($,function(k){return k.test(S)}):findKey($,function(k){return k.test(S)}),P;P=d.valueCallback?d.valueCallback(E):E,P=x.valueCallback?x.valueCallback(P):P;var B=b.slice(S.length);return{value:P,rest:B}}}function findKey(d,b){for(var x in d)if(d.hasOwnProperty(x)&&b(d[x]))return x}function findIndex(d,b){for(var x=0;x1&&arguments[1]!==void 0?arguments[1]:{},C=b.match(d.matchPattern);if(!C)return null;var w=C[0],A=b.match(d.parsePattern);if(!A)return null;var S=d.valueCallback?d.valueCallback(A[0]):A[0];S=x.valueCallback?x.valueCallback(S):S;var $=b.slice(w.length);return{value:S,rest:$}}}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function d(b,x,C){var w,A=formatDistanceLocale[b];return typeof A=="string"?w=A:x===1?w=A.one:w=A.other.replace("{{count}}",x.toString()),C!=null&&C.addSuffix?C.comparison&&C.comparison>0?"in "+w:w+" ago":w};const formatDistance$1=formatDistance;var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};const formatLong$1=formatLong;var formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function d(b,x,C,w){return formatRelativeLocale[b]};const formatRelative$1=formatRelative;var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function d(b,x){var C=Number(b),w=C%100;if(w>20||w<10)switch(w%10){case 1:return C+"st";case 2:return C+"nd";case 3:return C+"rd"}return C+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function d(b){return b-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};const localize$1=localize;var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function d(b){return parseInt(b,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function d(b){return b+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};const match$1=match;var locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:0,firstWeekContainsDate:1}};const defaultLocale=locale,dateEnUs={name:"en-US",locale:defaultLocale},dateEnUS=dateEnUs;function useLocale(d){const{mergedLocaleRef:b,mergedDateLocaleRef:x}=inject(configProviderInjectionKey,null)||{},C=computed(()=>{var A,S;return(S=(A=b==null?void 0:b.value)===null||A===void 0?void 0:A[d])!==null&&S!==void 0?S:enUS$1[d]});return{dateLocaleRef:computed(()=>{var A;return(A=x==null?void 0:x.value)!==null&&A!==void 0?A:dateEnUS}),localeRef:C}}function useStyle(d,b,x){if(!b)return;const C=useSsrAdapter(),w=inject(configProviderInjectionKey,null),A=()=>{const S=x==null?void 0:x.value;b.mount({id:S===void 0?d:S+d,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:S?".".concat(S,"-"):void 0},ssr:C}),w!=null&&w.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:C})};C?A():onBeforeMount(A)}function useThemeClass(d,b,x,C){var w;x||throwError("useThemeClass","cssVarsRef is not passed");const A=(w=inject(configProviderInjectionKey,null))===null||w===void 0?void 0:w.mergedThemeHashRef,S=ref(""),$=useSsrAdapter();let E;const P="__".concat(d),B=()=>{let k=P;const I=b?b.value:void 0,R=A==null?void 0:A.value;R&&(k+="-"+R),I&&(k+="-"+I);const{themeOverrides:F,builtinThemeOverrides:L}=C;F&&(k+="-"+murmur2(JSON.stringify(F))),L&&(k+="-"+murmur2(JSON.stringify(L))),S.value=k,E=()=>{const z=x.value;let V="";for(const U in z)V+="".concat(U,": ").concat(z[U],";");c$3(".".concat(k),V).mount({id:k,ssr:$}),E=void 0}};return watchEffect(()=>{B()}),{themeClass:S,onRender:()=>{E==null||E()}}}function useRtl(d,b,x){if(!b)return;const C=useSsrAdapter(),w=computed(()=>{const{value:S}=b;if(!S)return;const $=S[d];if($)return $}),A=()=>{watchEffect(()=>{const{value:S}=x,$="".concat(S).concat(d,"Rtl");if(exists($,C))return;const{value:E}=w;E&&E.style.mount({id:$,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:S?".".concat(S,"-"):void 0},ssr:C})})};return C?A():onBeforeMount(A),w}const AddIcon=defineComponent({name:"Add",render(){return h$1("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}});function replaceable(d,b){return defineComponent({name:upperFirst$1(d),setup(){var x;const C=(x=inject(configProviderInjectionKey,null))===null||x===void 0?void 0:x.mergedIconsRef;return()=>{var w;const A=(w=C==null?void 0:C.value)===null||w===void 0?void 0:w[d];return A?A():b}}})}const FinishedIcon=defineComponent({name:"Checkmark",render(){return h$1("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},h$1("g",{fill:"none"},h$1("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),ChevronRightIcon=defineComponent({name:"ChevronRight",render(){return h$1("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),ErrorIcon$1=replaceable("close",h$1("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},h$1("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h$1("g",{fill:"currentColor","fill-rule":"nonzero"},h$1("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),EyeIcon=defineComponent({name:"Eye",render(){return h$1("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h$1("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),h$1("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),EyeOffIcon=defineComponent({name:"EyeOff",render(){return h$1("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h$1("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),h$1("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),h$1("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),h$1("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),h$1("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),EmptyIcon=defineComponent({name:"Empty",render(){return h$1("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),h$1("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ErrorIcon=replaceable("error",h$1("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h$1("g",{"fill-rule":"nonzero"},h$1("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),InfoIcon=replaceable("info",h$1("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h$1("g",{"fill-rule":"nonzero"},h$1("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),RemoveIcon=defineComponent({name:"Remove",render(){return h$1("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h$1("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:"\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 32px;\n "}))}}),SuccessIcon=replaceable("success",h$1("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h$1("g",{"fill-rule":"nonzero"},h$1("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),WarningIcon=replaceable("warning",h$1("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h$1("g",{"fill-rule":"nonzero"},h$1("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),ChevronDownIcon=defineComponent({name:"ChevronDown",render(){return h$1("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),ClearIcon=replaceable("clear",h$1("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h$1("g",{fill:"currentColor","fill-rule":"nonzero"},h$1("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),NIconSwitchTransition=defineComponent({name:"BaseIconSwitchTransition",setup(d,{slots:b}){const x=isMounted();return()=>h$1(Transition,{name:"icon-switch-transition",appear:x.value},b)}}),NFadeInExpandTransition=defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(d,{slots:b}){function x($){d.width?$.style.maxWidth="".concat($.offsetWidth,"px"):$.style.maxHeight="".concat($.offsetHeight,"px"),$.offsetWidth}function C($){d.width?$.style.maxWidth="0":$.style.maxHeight="0",$.offsetWidth;const{onLeave:E}=d;E&&E()}function w($){d.width?$.style.maxWidth="":$.style.maxHeight="";const{onAfterLeave:E}=d;E&&E()}function A($){if($.style.transition="none",d.width){const E=$.offsetWidth;$.style.maxWidth="0",$.offsetWidth,$.style.transition="",$.style.maxWidth="".concat(E,"px")}else if(d.reverse)$.style.maxHeight="".concat($.offsetHeight,"px"),$.offsetHeight,$.style.transition="",$.style.maxHeight="0";else{const E=$.offsetHeight;$.style.maxHeight="0",$.offsetWidth,$.style.transition="",$.style.maxHeight="".concat(E,"px")}$.offsetWidth}function S($){var E;d.width?$.style.maxWidth="":d.reverse||($.style.maxHeight=""),(E=d.onAfterEnter)===null||E===void 0||E.call(d)}return()=>{const{group:$,width:E,appear:P,mode:B}=d,k=$?TransitionGroup:Transition,I={name:E?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:P,onEnter:A,onAfterEnter:S,onBeforeLeave:x,onLeave:C,onAfterLeave:w};return $||(I.mode=B),h$1(k,I,b)}}}),style$q=cB("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[c$3("svg","\n height: 1em;\n width: 1em;\n ")]),NBaseIcon=defineComponent({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(d){useStyle("-base-icon",style$q,toRef$1(d,"clsPrefix"))},render(){return h$1("i",{class:"".concat(this.clsPrefix,"-base-icon"),onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),style$p=cB("base-close","\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n background-color: transparent;\n color: var(--n-close-icon-color);\n border-radius: var(--n-close-border-radius);\n height: var(--n-close-size);\n width: var(--n-close-size);\n font-size: var(--n-close-icon-size);\n outline: none;\n border: none;\n position: relative;\n padding: 0;\n",[cM("absolute","\n height: var(--n-close-icon-size);\n width: var(--n-close-icon-size);\n "),c$3("&::before",'\n content: "";\n position: absolute;\n width: var(--n-close-size);\n height: var(--n-close-size);\n left: 50%;\n top: 50%;\n transform: translateY(-50%) translateX(-50%);\n transition: inherit;\n border-radius: inherit;\n '),cNotM("disabled",[c$3("&:hover","\n color: var(--n-close-icon-color-hover);\n "),c$3("&:hover::before","\n background-color: var(--n-close-color-hover);\n "),c$3("&:focus::before","\n background-color: var(--n-close-color-hover);\n "),c$3("&:active","\n color: var(--n-close-icon-color-pressed);\n "),c$3("&:active::before","\n background-color: var(--n-close-color-pressed);\n ")]),cM("disabled","\n cursor: not-allowed;\n color: var(--n-close-icon-color-disabled);\n background-color: transparent;\n "),cM("round",[c$3("&::before","\n border-radius: 50%;\n ")])]),NBaseClose=defineComponent({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(d){return useStyle("-base-close",style$p,toRef$1(d,"clsPrefix")),()=>{const{clsPrefix:b,disabled:x,absolute:C,round:w,isButtonTag:A}=d;return h$1(A?"button":"div",{type:A?"button":void 0,tabindex:x||!d.focusable?-1:0,"aria-disabled":x,"aria-label":"close",role:A?void 0:"button",disabled:x,class:["".concat(b,"-base-close"),C&&"".concat(b,"-base-close--absolute"),x&&"".concat(b,"-base-close--disabled"),w&&"".concat(b,"-base-close--round")],onMousedown:$=>{d.focusable||$.preventDefault()},onClick:d.onClick},h$1(NBaseIcon,{clsPrefix:b},{default:()=>h$1(ErrorIcon$1,null)}))}}}),FocusDetector=defineComponent({props:{onFocus:Function,onBlur:Function},setup(d){return()=>h$1("div",{style:"width: 0; height: 0",tabindex:0,onFocus:d.onFocus,onBlur:d.onBlur})}}),{cubicBezierEaseInOut:cubicBezierEaseInOut$3}=commonVariables$m;function iconSwitchTransition({originalTransform:d="",left:b=0,top:x=0,transition:C="all .3s ".concat(cubicBezierEaseInOut$3," !important")}={}){return[c$3("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:d+" scale(0.75)",left:b,top:x,opacity:0}),c$3("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:"scale(1) ".concat(d),left:b,top:x,opacity:1}),c$3("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:b,top:x,transition:C})]}const style$o=c$3([c$3("@keyframes loading-container-rotate","\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n "),c$3("@keyframes loading-layer-rotate","\n 12.5% {\n -webkit-transform: rotate(135deg);\n transform: rotate(135deg);\n }\n 25% {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n }\n 37.5% {\n -webkit-transform: rotate(405deg);\n transform: rotate(405deg);\n }\n 50% {\n -webkit-transform: rotate(540deg);\n transform: rotate(540deg);\n }\n 62.5% {\n -webkit-transform: rotate(675deg);\n transform: rotate(675deg);\n }\n 75% {\n -webkit-transform: rotate(810deg);\n transform: rotate(810deg);\n }\n 87.5% {\n -webkit-transform: rotate(945deg);\n transform: rotate(945deg);\n }\n 100% {\n -webkit-transform: rotate(1080deg);\n transform: rotate(1080deg);\n } \n "),c$3("@keyframes loading-left-spin","\n from {\n -webkit-transform: rotate(265deg);\n transform: rotate(265deg);\n }\n 50% {\n -webkit-transform: rotate(130deg);\n transform: rotate(130deg);\n }\n to {\n -webkit-transform: rotate(265deg);\n transform: rotate(265deg);\n }\n "),c$3("@keyframes loading-right-spin","\n from {\n -webkit-transform: rotate(-265deg);\n transform: rotate(-265deg);\n }\n 50% {\n -webkit-transform: rotate(-130deg);\n transform: rotate(-130deg);\n }\n to {\n -webkit-transform: rotate(-265deg);\n transform: rotate(-265deg);\n }\n "),cB("base-loading","\n position: relative;\n line-height: 0;\n width: 1em;\n height: 1em;\n ",[cE("transition-wrapper","\n position: absolute;\n width: 100%;\n height: 100%;\n ",[iconSwitchTransition()]),cE("container","\n display: inline-flex;\n position: relative;\n direction: ltr;\n line-height: 0;\n animation: loading-container-rotate 1568.2352941176ms linear infinite;\n font-size: 0;\n letter-spacing: 0;\n white-space: nowrap;\n opacity: 1;\n width: 100%;\n height: 100%;\n ",[cE("svg","\n stroke: var(--n-text-color);\n fill: transparent;\n position: absolute;\n height: 100%;\n overflow: hidden;\n "),cE("container-layer","\n position: absolute;\n width: 100%;\n height: 100%;\n animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n ",[cE("container-layer-left","\n display: inline-flex;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n ",[cE("svg","\n animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n width: 200%;\n ")]),cE("container-layer-patch","\n position: absolute;\n top: 0;\n left: 47.5%;\n box-sizing: border-box;\n width: 5%;\n height: 100%;\n overflow: hidden;\n ",[cE("svg","\n left: -900%;\n width: 2000%;\n transform: rotate(180deg);\n ")]),cE("container-layer-right","\n display: inline-flex;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n ",[cE("svg","\n animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n left: -100%;\n width: 200%;\n ")])])]),cE("placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[iconSwitchTransition({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),exposedLoadingProps={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},NBaseLoading=defineComponent({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},exposedLoadingProps),setup(d){useStyle("-base-loading",style$o,toRef$1(d,"clsPrefix"))},render(){const{clsPrefix:d,radius:b,strokeWidth:x,stroke:C,scale:w}=this,A=b/w;return h$1("div",{class:"".concat(d,"-base-loading"),role:"img","aria-label":"loading"},h$1(NIconSwitchTransition,null,{default:()=>this.show?h$1("div",{key:"icon",class:"".concat(d,"-base-loading__transition-wrapper")},h$1("div",{class:"".concat(d,"-base-loading__container")},h$1("div",{class:"".concat(d,"-base-loading__container-layer")},h$1("div",{class:"".concat(d,"-base-loading__container-layer-left")},h$1("svg",{class:"".concat(d,"-base-loading__svg"),viewBox:"0 0 ".concat(2*A," ").concat(2*A),xmlns:"http://www.w3.org/2000/svg",style:{color:C}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":x,"stroke-linecap":"round",cx:A,cy:A,r:b-x/2,"stroke-dasharray":4.91*b,"stroke-dashoffset":2.46*b}))),h$1("div",{class:"".concat(d,"-base-loading__container-layer-patch")},h$1("svg",{class:"".concat(d,"-base-loading__svg"),viewBox:"0 0 ".concat(2*A," ").concat(2*A),xmlns:"http://www.w3.org/2000/svg",style:{color:C}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":x,"stroke-linecap":"round",cx:A,cy:A,r:b-x/2,"stroke-dasharray":4.91*b,"stroke-dashoffset":2.46*b}))),h$1("div",{class:"".concat(d,"-base-loading__container-layer-right")},h$1("svg",{class:"".concat(d,"-base-loading__svg"),viewBox:"0 0 ".concat(2*A," ").concat(2*A),xmlns:"http://www.w3.org/2000/svg",style:{color:C}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":x,"stroke-linecap":"round",cx:A,cy:A,r:b-x/2,"stroke-dasharray":4.91*b,"stroke-dashoffset":2.46*b})))))):h$1("div",{key:"placeholder",class:"".concat(d,"-base-loading__placeholder")},this.$slots)}))}});function toArray(d){return Array.isArray(d)?d:[d]}const TRAVERSE_COMMAND={STOP:"STOP"};function traverseWithCb(d,b){const x=b(d);d.children!==void 0&&x!==TRAVERSE_COMMAND.STOP&&d.children.forEach(C=>traverseWithCb(C,b))}function getNonLeafKeys(d,b={}){const{preserveGroup:x=!1}=b,C=[],w=x?S=>{S.isLeaf||(C.push(S.key),A(S.children))}:S=>{S.isLeaf||(S.isGroup||C.push(S.key),A(S.children))};function A(S){S.forEach(w)}return A(d),C}function isLeaf(d,b){const{isLeaf:x}=d;return x!==void 0?x:!b(d)}function defaultGetChildren(d){return d.children}function defaultGetKey(d){return d.key}function isIgnored(){return!1}function isShallowLoaded(d,b){const{isLeaf:x}=d;return!(x===!1&&!Array.isArray(b(d)))}function isDisabled(d){return d.disabled===!0}function isExpilicitlyNotLoaded(d,b){return d.isLeaf===!1&&!Array.isArray(b(d))}function unwrapCheckedKeys(d){var b;return d==null?[]:Array.isArray(d)?d:(b=d.checkedKeys)!==null&&b!==void 0?b:[]}function unwrapIndeterminateKeys(d){var b;return d==null||Array.isArray(d)?[]:(b=d.indeterminateKeys)!==null&&b!==void 0?b:[]}function merge(d,b){const x=new Set(d);return b.forEach(C=>{x.has(C)||x.add(C)}),Array.from(x)}function minus(d,b){const x=new Set(d);return b.forEach(C=>{x.has(C)&&x.delete(C)}),Array.from(x)}function isGroup(d){return(d==null?void 0:d.type)==="group"}function createIndexGetter(d){const b=new Map;return d.forEach((x,C)=>{b.set(x.key,C)}),x=>{var C;return(C=b.get(x))!==null&&C!==void 0?C:null}}class SubtreeNotLoadedError extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function getExtendedCheckedKeySetAfterCheck(d,b,x,C){return getExtendedCheckedKeySet(b.concat(d),x,C,!1)}function getAvailableAscendantNodeSet(d,b){const x=new Set;return d.forEach(C=>{const w=b.treeNodeMap.get(C);if(w!==void 0){let A=w.parent;for(;A!==null&&!(A.disabled||x.has(A.key));)x.add(A.key),A=A.parent}}),x}function getExtendedCheckedKeySetAfterUncheck(d,b,x,C){const w=getExtendedCheckedKeySet(b,x,C,!1),A=getExtendedCheckedKeySet(d,x,C,!0),S=getAvailableAscendantNodeSet(d,x),$=[];return w.forEach(E=>{(A.has(E)||S.has(E))&&$.push(E)}),$.forEach(E=>w.delete(E)),w}function getCheckedKeys(d,b){const{checkedKeys:x,keysToCheck:C,keysToUncheck:w,indeterminateKeys:A,cascade:S,leafOnly:$,checkStrategy:E,allowNotLoaded:P}=d;if(!S)return C!==void 0?{checkedKeys:merge(x,C),indeterminateKeys:Array.from(A)}:w!==void 0?{checkedKeys:minus(x,w),indeterminateKeys:Array.from(A)}:{checkedKeys:Array.from(x),indeterminateKeys:Array.from(A)};const{levelTreeNodeMap:B}=b;let k;w!==void 0?k=getExtendedCheckedKeySetAfterUncheck(w,x,b,P):C!==void 0?k=getExtendedCheckedKeySetAfterCheck(C,x,b,P):k=getExtendedCheckedKeySet(x,b,P,!1);const I=E==="parent",R=E==="child"||$,F=k,L=new Set,z=Math.max.apply(null,Array.from(B.keys()));for(let V=z;V>=0;V-=1){const U=V===0,Q=B.get(V);for(const W of Q){if(W.isLeaf)continue;const{key:G,shallowLoaded:q}=W;if(R&&q&&W.children.forEach(oe=>{!oe.disabled&&!oe.isLeaf&&oe.shallowLoaded&&F.has(oe.key)&&F.delete(oe.key)}),W.disabled||!q)continue;let K=!0,X=!1,J=!0;for(const oe of W.children){const he=oe.key;if(!oe.disabled){if(J&&(J=!1),F.has(he))X=!0;else if(L.has(he)){X=!0,K=!1;break}else if(K=!1,X)break}}K&&!J?(I&&W.children.forEach(oe=>{!oe.disabled&&F.has(oe.key)&&F.delete(oe.key)}),F.add(G)):X&&L.add(G),U&&R&&F.has(G)&&F.delete(G)}}return{checkedKeys:Array.from(F),indeterminateKeys:Array.from(L)}}function getExtendedCheckedKeySet(d,b,x,C){const{treeNodeMap:w,getChildren:A}=b,S=new Set,$=new Set(d);return d.forEach(E=>{const P=w.get(E);P!==void 0&&traverseWithCb(P,B=>{if(B.disabled)return TRAVERSE_COMMAND.STOP;const{key:k}=B;if(!S.has(k)&&(S.add(k),$.add(k),isExpilicitlyNotLoaded(B.rawNode,A))){if(C)return TRAVERSE_COMMAND.STOP;if(!x)throw new SubtreeNotLoadedError}})}),$}function getPath(d,{includeGroup:b=!1,includeSelf:x=!0},C){var w;const A=C.treeNodeMap;let S=d==null?null:(w=A.get(d))!==null&&w!==void 0?w:null;const $={keyPath:[],treeNodePath:[],treeNode:S};if(S!=null&&S.ignored)return $.treeNode=null,$;for(;S;)!S.ignored&&(b||!S.isGroup)&&$.treeNodePath.push(S),S=S.parent;return $.treeNodePath.reverse(),x||$.treeNodePath.pop(),$.keyPath=$.treeNodePath.map(E=>E.key),$}function getFirstAvailableNode(d){if(d.length===0)return null;const b=d[0];return b.isGroup||b.ignored||b.disabled?b.getNext():b}function rawGetNext(d,b){const x=d.siblings,C=x.length,{index:w}=d;return b?x[(w+1)%C]:w===x.length-1?null:x[w+1]}function move(d,b,{loop:x=!1,includeDisabled:C=!1}={}){const w=b==="prev"?rawGetPrev:rawGetNext,A={reverse:b==="prev"};let S=!1,$=null;function E(P){if(P!==null){if(P===d){if(!S)S=!0;else if(!d.disabled&&!d.isGroup){$=d;return}}else if((!P.disabled||C)&&!P.ignored&&!P.isGroup){$=P;return}if(P.isGroup){const B=getChild(P,A);B!==null?$=B:E(w(P,x))}else{const B=w(P,!1);if(B!==null)E(B);else{const k=rawGetParent(P);k!=null&&k.isGroup?E(w(k,x)):x&&E(w(P,!0))}}}}return E(d),$}function rawGetPrev(d,b){const x=d.siblings,C=x.length,{index:w}=d;return b?x[(w-1+C)%C]:w===0?null:x[w-1]}function rawGetParent(d){return d.parent}function getChild(d,b={}){const{reverse:x=!1}=b,{children:C}=d;if(C){const{length:w}=C,A=x?w-1:0,S=x?-1:w,$=x?-1:1;for(let E=A;E!==S;E+=$){const P=C[E];if(!P.disabled&&!P.ignored)if(P.isGroup){const B=getChild(P,b);if(B!==null)return B}else return P}}return null}const moveMethods={getChild(){return this.ignored?null:getChild(this)},getParent(){const{parent:d}=this;return d!=null&&d.isGroup?d.getParent():d},getNext(d={}){return move(this,"next",d)},getPrev(d={}){return move(this,"prev",d)}};function flatten$2(d,b){const x=b?new Set(b):void 0,C=[];function w(A){A.forEach(S=>{C.push(S),!(S.isLeaf||!S.children||S.ignored)&&(S.isGroup||x===void 0||x.has(S.key))&&w(S.children)})}return w(d),C}function contains(d,b){const x=d.key;for(;b;){if(b.key===x)return!0;b=b.parent}return!1}function createTreeNodes(d,b,x,C,w,A=null,S=0){const $=[];return d.forEach((E,P)=>{var B;const k=Object.create(C);if(k.rawNode=E,k.siblings=$,k.level=S,k.index=P,k.isFirstChild=P===0,k.isLastChild=P+1===d.length,k.parent=A,!k.ignored){const I=w(E);Array.isArray(I)&&(k.children=createTreeNodes(I,b,x,C,w,k,S+1))}$.push(k),b.set(k.key,k),x.has(S)||x.set(S,[]),(B=x.get(S))===null||B===void 0||B.push(k)}),$}function createTreeMate(d,b={}){var x;const C=new Map,w=new Map,{getDisabled:A=isDisabled,getIgnored:S=isIgnored,getIsGroup:$=isGroup,getKey:E=defaultGetKey}=b,P=(x=b.getChildren)!==null&&x!==void 0?x:defaultGetChildren,B=b.ignoreEmptyChildren?W=>{const G=P(W);return Array.isArray(G)?G.length?G:null:G}:P,k=Object.assign({get key(){return E(this.rawNode)},get disabled(){return A(this.rawNode)},get isGroup(){return $(this.rawNode)},get isLeaf(){return isLeaf(this.rawNode,B)},get shallowLoaded(){return isShallowLoaded(this.rawNode,B)},get ignored(){return S(this.rawNode)},contains(W){return contains(this,W)}},moveMethods),I=createTreeNodes(d,C,w,k,B);function R(W){if(W==null)return null;const G=C.get(W);return G&&!G.isGroup&&!G.ignored?G:null}function F(W){if(W==null)return null;const G=C.get(W);return G&&!G.ignored?G:null}function L(W,G){const q=F(W);return q?q.getPrev(G):null}function z(W,G){const q=F(W);return q?q.getNext(G):null}function V(W){const G=F(W);return G?G.getParent():null}function U(W){const G=F(W);return G?G.getChild():null}const Q={treeNodes:I,treeNodeMap:C,levelTreeNodeMap:w,maxLevel:Math.max(...w.keys()),getChildren:B,getFlattenedNodes(W){return flatten$2(I,W)},getNode:R,getPrev:L,getNext:z,getParent:V,getChild:U,getFirstAvailableNode(){return getFirstAvailableNode(I)},getPath(W,G={}){return getPath(W,G,Q)},getCheckedKeys(W,G={}){const{cascade:q=!0,leafOnly:K=!1,checkStrategy:X="all",allowNotLoaded:J=!1}=G;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(W),indeterminateKeys:unwrapIndeterminateKeys(W),cascade:q,leafOnly:K,checkStrategy:X,allowNotLoaded:J},Q)},check(W,G,q={}){const{cascade:K=!0,leafOnly:X=!1,checkStrategy:J="all",allowNotLoaded:oe=!1}=q;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(G),indeterminateKeys:unwrapIndeterminateKeys(G),keysToCheck:W==null?[]:toArray(W),cascade:K,leafOnly:X,checkStrategy:J,allowNotLoaded:oe},Q)},uncheck(W,G,q={}){const{cascade:K=!0,leafOnly:X=!1,checkStrategy:J="all",allowNotLoaded:oe=!1}=q;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(G),indeterminateKeys:unwrapIndeterminateKeys(G),keysToUncheck:W==null?[]:toArray(W),cascade:K,leafOnly:X,checkStrategy:J,allowNotLoaded:oe},Q)},getNonLeafKeys(W={}){return getNonLeafKeys(I,W)}};return Q}const base$1={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},baseBackgroundRgb$1=rgba(base$1.neutralBase),baseInvertBackgroundRgb$1=rgba(base$1.neutralInvertBase),overlayPrefix$1="rgba("+baseInvertBackgroundRgb$1.slice(0,3).join(", ")+", ";function overlay$1(d){return overlayPrefix$1+String(d)+")"}function neutral$1(d){const b=Array.from(baseInvertBackgroundRgb$1);return b[3]=Number(d),composite(baseBackgroundRgb$1,b)}const derived$1=Object.assign(Object.assign({name:"common"},commonVariables$m),{baseColor:base$1.neutralBase,primaryColor:base$1.primaryDefault,primaryColorHover:base$1.primaryHover,primaryColorPressed:base$1.primaryActive,primaryColorSuppl:base$1.primarySuppl,infoColor:base$1.infoDefault,infoColorHover:base$1.infoHover,infoColorPressed:base$1.infoActive,infoColorSuppl:base$1.infoSuppl,successColor:base$1.successDefault,successColorHover:base$1.successHover,successColorPressed:base$1.successActive,successColorSuppl:base$1.successSuppl,warningColor:base$1.warningDefault,warningColorHover:base$1.warningHover,warningColorPressed:base$1.warningActive,warningColorSuppl:base$1.warningSuppl,errorColor:base$1.errorDefault,errorColorHover:base$1.errorHover,errorColorPressed:base$1.errorActive,errorColorSuppl:base$1.errorSuppl,textColorBase:base$1.neutralTextBase,textColor1:overlay$1(base$1.alpha1),textColor2:overlay$1(base$1.alpha2),textColor3:overlay$1(base$1.alpha3),textColorDisabled:overlay$1(base$1.alpha4),placeholderColor:overlay$1(base$1.alpha4),placeholderColorDisabled:overlay$1(base$1.alpha5),iconColor:overlay$1(base$1.alpha4),iconColorDisabled:overlay$1(base$1.alpha5),iconColorHover:overlay$1(Number(base$1.alpha4)*1.25),iconColorPressed:overlay$1(Number(base$1.alpha4)*.8),opacity1:base$1.alpha1,opacity2:base$1.alpha2,opacity3:base$1.alpha3,opacity4:base$1.alpha4,opacity5:base$1.alpha5,dividerColor:overlay$1(base$1.alphaDivider),borderColor:overlay$1(base$1.alphaBorder),closeIconColorHover:overlay$1(Number(base$1.alphaClose)),closeIconColor:overlay$1(Number(base$1.alphaClose)),closeIconColorPressed:overlay$1(Number(base$1.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:overlay$1(base$1.alpha4),clearColorHover:scaleColor(overlay$1(base$1.alpha4),{alpha:1.25}),clearColorPressed:scaleColor(overlay$1(base$1.alpha4),{alpha:.8}),scrollbarColor:overlay$1(base$1.alphaScrollbar),scrollbarColorHover:overlay$1(base$1.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:overlay$1(base$1.alphaProgressRail),railColor:overlay$1(base$1.alphaRail),popoverColor:base$1.neutralPopover,tableColor:base$1.neutralCard,cardColor:base$1.neutralCard,modalColor:base$1.neutralModal,bodyColor:base$1.neutralBody,tagColor:neutral$1(base$1.alphaTag),avatarColor:overlay$1(base$1.alphaAvatar),invertedColor:base$1.neutralBase,inputColor:overlay$1(base$1.alphaInput),codeColor:overlay$1(base$1.alphaCode),tabColor:overlay$1(base$1.alphaTab),actionColor:overlay$1(base$1.alphaAction),tableHeaderColor:overlay$1(base$1.alphaAction),hoverColor:overlay$1(base$1.alphaPending),tableColorHover:overlay$1(base$1.alphaTablePending),tableColorStriped:overlay$1(base$1.alphaTableStriped),pressedColor:overlay$1(base$1.alphaPressed),opacityDisabled:base$1.alphaDisabled,inputColorDisabled:overlay$1(base$1.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),commonDark=derived$1,base={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},baseBackgroundRgb=rgba(base.neutralBase),baseInvertBackgroundRgb=rgba(base.neutralInvertBase),overlayPrefix="rgba("+baseInvertBackgroundRgb.slice(0,3).join(", ")+", ";function overlay(d){return overlayPrefix+String(d)+")"}function neutral(d){const b=Array.from(baseInvertBackgroundRgb);return b[3]=Number(d),composite(baseBackgroundRgb,b)}const derived=Object.assign(Object.assign({name:"common"},commonVariables$m),{baseColor:base.neutralBase,primaryColor:base.primaryDefault,primaryColorHover:base.primaryHover,primaryColorPressed:base.primaryActive,primaryColorSuppl:base.primarySuppl,infoColor:base.infoDefault,infoColorHover:base.infoHover,infoColorPressed:base.infoActive,infoColorSuppl:base.infoSuppl,successColor:base.successDefault,successColorHover:base.successHover,successColorPressed:base.successActive,successColorSuppl:base.successSuppl,warningColor:base.warningDefault,warningColorHover:base.warningHover,warningColorPressed:base.warningActive,warningColorSuppl:base.warningSuppl,errorColor:base.errorDefault,errorColorHover:base.errorHover,errorColorPressed:base.errorActive,errorColorSuppl:base.errorSuppl,textColorBase:base.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:neutral(base.alpha4),placeholderColor:neutral(base.alpha4),placeholderColorDisabled:neutral(base.alpha5),iconColor:neutral(base.alpha4),iconColorHover:scaleColor(neutral(base.alpha4),{lightness:.75}),iconColorPressed:scaleColor(neutral(base.alpha4),{lightness:.9}),iconColorDisabled:neutral(base.alpha5),opacity1:base.alpha1,opacity2:base.alpha2,opacity3:base.alpha3,opacity4:base.alpha4,opacity5:base.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:neutral(Number(base.alphaClose)),closeIconColorHover:neutral(Number(base.alphaClose)),closeIconColorPressed:neutral(Number(base.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:neutral(base.alpha4),clearColorHover:scaleColor(neutral(base.alpha4),{lightness:.75}),clearColorPressed:scaleColor(neutral(base.alpha4),{lightness:.9}),scrollbarColor:overlay(base.alphaScrollbar),scrollbarColorHover:overlay(base.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:neutral(base.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:base.neutralPopover,tableColor:base.neutralCard,cardColor:base.neutralCard,modalColor:base.neutralModal,bodyColor:base.neutralBody,tagColor:"#eee",avatarColor:neutral(base.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:neutral(base.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:base.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),commonLight=derived,commonVars$c={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},self$U=d=>{const{textColorDisabled:b,iconColor:x,textColor2:C,fontSizeSmall:w,fontSizeMedium:A,fontSizeLarge:S,fontSizeHuge:$}=d;return Object.assign(Object.assign({},commonVars$c),{fontSizeSmall:w,fontSizeMedium:A,fontSizeLarge:S,fontSizeHuge:$,textColor:b,iconColor:x,extraTextColor:C})},emptyLight={name:"Empty",common:commonLight,self:self$U},emptyLight$1=emptyLight,emptyDark={name:"Empty",common:commonDark,self:self$U},emptyDark$1=emptyDark,style$n=cB("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[cE("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[c$3("+",[cE("description","\n margin-top: 8px;\n ")])]),cE("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),cE("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]),emptyProps=Object.assign(Object.assign({},useTheme.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),NEmpty=defineComponent({name:"Empty",props:emptyProps,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:x}=useConfig(d),C=useTheme("Empty","-empty",style$n,emptyLight$1,d,b),{localeRef:w}=useLocale("Empty"),A=inject(configProviderInjectionKey,null),S=computed(()=>{var B,k,I;return(B=d.description)!==null&&B!==void 0?B:(I=(k=A==null?void 0:A.mergedComponentPropsRef.value)===null||k===void 0?void 0:k.Empty)===null||I===void 0?void 0:I.description}),$=computed(()=>{var B,k;return((k=(B=A==null?void 0:A.mergedComponentPropsRef.value)===null||B===void 0?void 0:B.Empty)===null||k===void 0?void 0:k.renderIcon)||(()=>h$1(EmptyIcon,null))}),E=computed(()=>{const{size:B}=d,{common:{cubicBezierEaseInOut:k},self:{[createKey("iconSize",B)]:I,[createKey("fontSize",B)]:R,textColor:F,iconColor:L,extraTextColor:z}}=C.value;return{"--n-icon-size":I,"--n-font-size":R,"--n-bezier":k,"--n-text-color":F,"--n-icon-color":L,"--n-extra-text-color":z}}),P=x?useThemeClass("empty",computed(()=>{let B="";const{size:k}=d;return B+=k[0],B}),E,d):void 0;return{mergedClsPrefix:b,mergedRenderIcon:$,localizedDescription:computed(()=>S.value||w.value.description),cssVars:x?void 0:E,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender}},render(){const{$slots:d,mergedClsPrefix:b,onRender:x}=this;return x==null||x(),h$1("div",{class:["".concat(b,"-empty"),this.themeClass],style:this.cssVars},this.showIcon?h$1("div",{class:"".concat(b,"-empty__icon")},d.icon?d.icon():h$1(NBaseIcon,{clsPrefix:b},{default:this.mergedRenderIcon})):null,this.showDescription?h$1("div",{class:"".concat(b,"-empty__description")},d.default?d.default():this.localizedDescription):null,d.extra?h$1("div",{class:"".concat(b,"-empty__extra")},d.extra()):null)}}),self$T=d=>{const{scrollbarColor:b,scrollbarColorHover:x}=d;return{color:b,colorHover:x}},scrollbarLight={name:"Scrollbar",common:commonLight,self:self$T},scrollbarLight$1=scrollbarLight,scrollbarDark={name:"Scrollbar",common:commonDark,self:self$T},scrollbarDark$1=scrollbarDark,{cubicBezierEaseInOut:cubicBezierEaseInOut$2}=commonVariables$m;function fadeInTransition({name:d="fade-in",enterDuration:b="0.2s",leaveDuration:x="0.2s",enterCubicBezier:C=cubicBezierEaseInOut$2,leaveCubicBezier:w=cubicBezierEaseInOut$2}={}){return[c$3("&.".concat(d,"-transition-enter-active"),{transition:"all ".concat(b," ").concat(C,"!important")}),c$3("&.".concat(d,"-transition-leave-active"),{transition:"all ".concat(x," ").concat(w,"!important")}),c$3("&.".concat(d,"-transition-enter-from, &.").concat(d,"-transition-leave-to"),{opacity:0}),c$3("&.".concat(d,"-transition-leave-from, &.").concat(d,"-transition-enter-to"),{opacity:1})]}const style$m=cB("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[c$3(">",[cB("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n max-height: inherit;\n scrollbar-width: none;\n ",[c$3("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),c$3(">",[cB("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])])]),c$3(">, +",[cB("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n ",[cM("horizontal","\n left: 2px;\n right: 2px;\n bottom: 4px;\n height: var(--n-scrollbar-height);\n ",[c$3(">",[cE("scrollbar","\n height: var(--n-scrollbar-height);\n border-radius: var(--n-scrollbar-border-radius);\n right: 0;\n ")])]),cM("vertical","\n right: 4px;\n top: 2px;\n bottom: 2px;\n width: var(--n-scrollbar-width);\n ",[c$3(">",[cE("scrollbar","\n width: var(--n-scrollbar-width);\n border-radius: var(--n-scrollbar-border-radius);\n bottom: 0;\n ")])]),cM("disabled",[c$3(">",[cE("scrollbar",{pointerEvents:"none"})])]),c$3(">",[cE("scrollbar","\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--n-scrollbar-color);\n transition: background-color .2s var(--n-scrollbar-bezier);\n ",[fadeInTransition(),c$3("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),scrollbarProps$1=Object.assign(Object.assign({},useTheme.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Scrollbar$1=defineComponent({name:"Scrollbar",props:scrollbarProps$1,inheritAttrs:!1,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:x,mergedRtlRef:C}=useConfig(d),w=useRtl("Scrollbar",C,b),A=ref(null),S=ref(null),$=ref(null),E=ref(null),P=ref(null),B=ref(null),k=ref(null),I=ref(null),R=ref(null),F=ref(null),L=ref(null),z=ref(0),V=ref(0),U=ref(!1),Q=ref(!1);let W=!1,G=!1,q,K,X=0,J=0,oe=0,he=0;const Z=useIsIos(),ce=computed(()=>{const{value:xe}=I,{value:ze}=B,{value:Ze}=F;return xe===null||ze===null||Ze===null?0:Math.min(xe,Ze*xe/ze+d.size*1.5)}),fe=computed(()=>"".concat(ce.value,"px")),me=computed(()=>{const{value:xe}=R,{value:ze}=k,{value:Ze}=L;return xe===null||ze===null||Ze===null?0:Ze*xe/ze+d.size*1.5}),ne=computed(()=>"".concat(me.value,"px")),te=computed(()=>{const{value:xe}=I,{value:ze}=z,{value:Ze}=B,{value:ut}=F;if(xe===null||Ze===null||ut===null)return 0;{const gt=Ze-xe;return gt?ze/gt*(ut-ce.value):0}}),de=computed(()=>"".concat(te.value,"px")),le=computed(()=>{const{value:xe}=R,{value:ze}=V,{value:Ze}=k,{value:ut}=L;if(xe===null||Ze===null||ut===null)return 0;{const gt=Ze-xe;return gt?ze/gt*(ut-me.value):0}}),be=computed(()=>"".concat(le.value,"px")),Le=computed(()=>{const{value:xe}=I,{value:ze}=B;return xe!==null&&ze!==null&&ze>xe}),Qe=computed(()=>{const{value:xe}=R,{value:ze}=k;return xe!==null&&ze!==null&&ze>xe}),rt=computed(()=>{const{trigger:xe}=d;return xe==="none"||U.value}),ht=computed(()=>{const{trigger:xe}=d;return xe==="none"||Q.value}),ct=computed(()=>{const{container:xe}=d;return xe?xe():S.value}),it=computed(()=>{const{content:xe}=d;return xe?xe():$.value}),Be=useReactivated(()=>{d.container||ie({top:z.value,left:V.value})}),Ie=()=>{Be.isDeactivated||Ye()},Fe=xe=>{if(Be.isDeactivated)return;const{onResize:ze}=d;ze&&ze(xe),Ye()},ie=(xe,ze)=>{if(!d.scrollable)return;if(typeof xe=="number"){re(ze!=null?ze:0,xe,0,!1,"auto");return}const{left:Ze,top:ut,index:gt,elSize:mt,position:ye,behavior:Oe,el:Ve,debounce:He=!0}=xe;(Ze!==void 0||ut!==void 0)&&re(Ze!=null?Ze:0,ut!=null?ut:0,0,!1,Oe),Ve!==void 0?re(0,Ve.offsetTop,Ve.offsetHeight,He,Oe):gt!==void 0&&mt!==void 0?re(0,gt*mt,mt,He,Oe):ye==="bottom"?re(0,Number.MAX_SAFE_INTEGER,0,!1,Oe):ye==="top"&&re(0,0,0,!1,Oe)},$e=(xe,ze)=>{if(!d.scrollable)return;const{value:Ze}=ct;Ze&&(typeof xe=="object"?Ze.scrollBy(xe):Ze.scrollBy(xe,ze||0))};function re(xe,ze,Ze,ut,gt){const{value:mt}=ct;if(mt){if(ut){const{scrollTop:ye,offsetHeight:Oe}=mt;if(ze>ye){ze+Ze<=ye+Oe||mt.scrollTo({left:xe,top:ze+Ze-Oe,behavior:gt});return}}mt.scrollTo({left:xe,top:ze,behavior:gt})}}function se(){Ee(),ke(),Ye()}function Ce(){Ne()}function Ne(){we(),ge()}function we(){K!==void 0&&window.clearTimeout(K),K=window.setTimeout(()=>{Q.value=!1},d.duration)}function ge(){q!==void 0&&window.clearTimeout(q),q=window.setTimeout(()=>{U.value=!1},d.duration)}function Ee(){q!==void 0&&window.clearTimeout(q),U.value=!0}function ke(){K!==void 0&&window.clearTimeout(K),Q.value=!0}function Ae(xe){const{onScroll:ze}=d;ze&&ze(xe),ve()}function ve(){const{value:xe}=ct;xe&&(z.value=xe.scrollTop,V.value=xe.scrollLeft*(w!=null&&w.value?-1:1))}function De(){const{value:xe}=it;xe&&(B.value=xe.offsetHeight,k.value=xe.offsetWidth);const{value:ze}=ct;ze&&(I.value=ze.offsetHeight,R.value=ze.offsetWidth);const{value:Ze}=P,{value:ut}=E;Ze&&(L.value=Ze.offsetWidth),ut&&(F.value=ut.offsetHeight)}function We(){const{value:xe}=ct;xe&&(z.value=xe.scrollTop,V.value=xe.scrollLeft*(w!=null&&w.value?-1:1),I.value=xe.offsetHeight,R.value=xe.offsetWidth,B.value=xe.scrollHeight,k.value=xe.scrollWidth);const{value:ze}=P,{value:Ze}=E;ze&&(L.value=ze.offsetWidth),Ze&&(F.value=Ze.offsetHeight)}function Ye(){d.scrollable&&(d.useUnifiedContainer?We():(De(),ve()))}function Je(xe){var ze;return!(!((ze=A.value)===null||ze===void 0)&&ze.contains(getPreciseEventTarget(xe)))}function nt(xe){xe.preventDefault(),xe.stopPropagation(),G=!0,on("mousemove",window,dt,!0),on("mouseup",window,Ue,!0),J=V.value,oe=w!=null&&w.value?window.innerWidth-xe.clientX:xe.clientX}function dt(xe){if(!G)return;q!==void 0&&window.clearTimeout(q),K!==void 0&&window.clearTimeout(K);const{value:ze}=R,{value:Ze}=k,{value:ut}=me;if(ze===null||Ze===null)return;const mt=(w!=null&&w.value?window.innerWidth-xe.clientX-oe:xe.clientX-oe)*(Ze-ze)/(ze-ut),ye=Ze-ze;let Oe=J+mt;Oe=Math.min(ye,Oe),Oe=Math.max(Oe,0);const{value:Ve}=ct;if(Ve){Ve.scrollLeft=Oe*(w!=null&&w.value?-1:1);const{internalOnUpdateScrollLeft:He}=d;He&&He(Oe)}}function Ue(xe){xe.preventDefault(),xe.stopPropagation(),off("mousemove",window,dt,!0),off("mouseup",window,Ue,!0),G=!1,Ye(),Je(xe)&&Ne()}function lt(xe){xe.preventDefault(),xe.stopPropagation(),W=!0,on("mousemove",window,yt,!0),on("mouseup",window,$t,!0),X=z.value,he=xe.clientY}function yt(xe){if(!W)return;q!==void 0&&window.clearTimeout(q),K!==void 0&&window.clearTimeout(K);const{value:ze}=I,{value:Ze}=B,{value:ut}=ce;if(ze===null||Ze===null)return;const mt=(xe.clientY-he)*(Ze-ze)/(ze-ut),ye=Ze-ze;let Oe=X+mt;Oe=Math.min(ye,Oe),Oe=Math.max(Oe,0);const{value:Ve}=ct;Ve&&(Ve.scrollTop=Oe)}function $t(xe){xe.preventDefault(),xe.stopPropagation(),off("mousemove",window,yt,!0),off("mouseup",window,$t,!0),W=!1,Ye(),Je(xe)&&Ne()}watchEffect(()=>{const{value:xe}=Qe,{value:ze}=Le,{value:Ze}=b,{value:ut}=P,{value:gt}=E;ut&&(xe?ut.classList.remove("".concat(Ze,"-scrollbar-rail--disabled")):ut.classList.add("".concat(Ze,"-scrollbar-rail--disabled"))),gt&&(ze?gt.classList.remove("".concat(Ze,"-scrollbar-rail--disabled")):gt.classList.add("".concat(Ze,"-scrollbar-rail--disabled")))}),onMounted(()=>{d.container||Ye()}),onBeforeUnmount(()=>{q!==void 0&&window.clearTimeout(q),K!==void 0&&window.clearTimeout(K),off("mousemove",window,yt,!0),off("mouseup",window,$t,!0)});const Mt=useTheme("Scrollbar","-scrollbar",style$m,scrollbarLight$1,d,b),Lt=computed(()=>{const{common:{cubicBezierEaseInOut:xe,scrollbarBorderRadius:ze,scrollbarHeight:Ze,scrollbarWidth:ut},self:{color:gt,colorHover:mt}}=Mt.value;return{"--n-scrollbar-bezier":xe,"--n-scrollbar-color":gt,"--n-scrollbar-color-hover":mt,"--n-scrollbar-border-radius":ze,"--n-scrollbar-width":ut,"--n-scrollbar-height":Ze}}),At=x?useThemeClass("scrollbar",void 0,Lt,d):void 0;return Object.assign(Object.assign({},{scrollTo:ie,scrollBy:$e,sync:Ye,syncUnifiedContainer:We,handleMouseEnterWrapper:se,handleMouseLeaveWrapper:Ce}),{mergedClsPrefix:b,rtlEnabled:w,containerScrollTop:z,wrapperRef:A,containerRef:S,contentRef:$,yRailRef:E,xRailRef:P,needYBar:Le,needXBar:Qe,yBarSizePx:fe,xBarSizePx:ne,yBarTopPx:de,xBarLeftPx:be,isShowXBar:rt,isShowYBar:ht,isIos:Z,handleScroll:Ae,handleContentResize:Ie,handleContainerResize:Fe,handleYScrollMouseDown:lt,handleXScrollMouseDown:nt,cssVars:x?void 0:Lt,themeClass:At==null?void 0:At.themeClass,onRender:At==null?void 0:At.onRender})},render(){var d;const{$slots:b,mergedClsPrefix:x,triggerDisplayManually:C,rtlEnabled:w,internalHoistYRail:A}=this;if(!this.scrollable)return(d=b.default)===null||d===void 0?void 0:d.call(b);const S=this.trigger==="none",$=()=>h$1("div",{ref:"yRailRef",class:["".concat(x,"-scrollbar-rail"),"".concat(x,"-scrollbar-rail--vertical")],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},h$1(S?Wrapper:Transition,S?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?h$1("div",{class:"".concat(x,"-scrollbar-rail__scrollbar"),style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),E=()=>{var B,k;return(B=this.onRender)===null||B===void 0||B.call(this),h$1("div",mergeProps(this.$attrs,{role:"none",ref:"wrapperRef",class:["".concat(x,"-scrollbar"),this.themeClass,w&&"".concat(x,"-scrollbar--rtl")],style:this.cssVars,onMouseenter:C?void 0:this.handleMouseEnterWrapper,onMouseleave:C?void 0:this.handleMouseLeaveWrapper}),[this.container?(k=b.default)===null||k===void 0?void 0:k.call(b):h$1("div",{role:"none",ref:"containerRef",class:["".concat(x,"-scrollbar-container"),this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},h$1(VResizeObserver,{onResize:this.handleContentResize},{default:()=>h$1("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:["".concat(x,"-scrollbar-content"),this.contentClass]},b)})),A?null:$(),this.xScrollable&&h$1("div",{ref:"xRailRef",class:["".concat(x,"-scrollbar-rail"),"".concat(x,"-scrollbar-rail--horizontal")],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},h$1(S?Wrapper:Transition,S?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?h$1("div",{class:"".concat(x,"-scrollbar-rail__scrollbar"),style:{width:this.xBarSizePx,right:w?this.xBarLeftPx:void 0,left:w?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},P=this.container?E():h$1(VResizeObserver,{onResize:this.handleContainerResize},{default:E});return A?h$1(Fragment,null,P,$()):P}}),NScrollbar$1=Scrollbar$1,XScrollbar=Scrollbar$1,commonVariables$l={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},self$S=d=>{const{borderRadius:b,popoverColor:x,textColor3:C,dividerColor:w,textColor2:A,primaryColorPressed:S,textColorDisabled:$,primaryColor:E,opacityDisabled:P,hoverColor:B,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:R,fontSizeHuge:F,heightSmall:L,heightMedium:z,heightLarge:V,heightHuge:U}=d;return Object.assign(Object.assign({},commonVariables$l),{optionFontSizeSmall:k,optionFontSizeMedium:I,optionFontSizeLarge:R,optionFontSizeHuge:F,optionHeightSmall:L,optionHeightMedium:z,optionHeightLarge:V,optionHeightHuge:U,borderRadius:b,color:x,groupHeaderTextColor:C,actionDividerColor:w,optionTextColor:A,optionTextColorPressed:S,optionTextColorDisabled:$,optionTextColorActive:E,optionOpacityDisabled:P,optionCheckColor:E,optionColorPending:B,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:B,actionTextColor:A,loadingColor:E})},internalSelectMenuLight={name:"InternalSelectMenu",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Empty:emptyLight$1},self:self$S},internalSelectMenuLight$1=internalSelectMenuLight,internalSelectMenuDark={name:"InternalSelectMenu",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Empty:emptyDark$1},self:self$S},internalSelectMenuDark$1=internalSelectMenuDark;function renderCheckMark(d,b){return h$1(Transition,{name:"fade-in-scale-up-transition"},{default:()=>d?h$1(NBaseIcon,{clsPrefix:b,class:"".concat(b,"-base-select-option__check")},{default:()=>h$1(FinishedIcon)}):null})}const NSelectOption=defineComponent({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(d){const{valueRef:b,pendingTmNodeRef:x,multipleRef:C,valueSetRef:w,renderLabelRef:A,renderOptionRef:S,labelFieldRef:$,valueFieldRef:E,showCheckmarkRef:P,nodePropsRef:B,handleOptionClick:k,handleOptionMouseEnter:I}=inject(internalSelectionMenuInjectionKey),R=useMemo(()=>{const{value:V}=x;return V?d.tmNode.key===V.key:!1});function F(V){const{tmNode:U}=d;U.disabled||k(V,U)}function L(V){const{tmNode:U}=d;U.disabled||I(V,U)}function z(V){const{tmNode:U}=d,{value:Q}=R;U.disabled||Q||I(V,U)}return{multiple:C,isGrouped:useMemo(()=>{const{tmNode:V}=d,{parent:U}=V;return U&&U.rawNode.type==="group"}),showCheckmark:P,nodeProps:B,isPending:R,isSelected:useMemo(()=>{const{value:V}=b,{value:U}=C;if(V===null)return!1;const Q=d.tmNode.rawNode[E.value];if(U){const{value:W}=w;return W.has(Q)}else return V===Q}),labelField:$,renderLabel:A,renderOption:S,handleMouseMove:z,handleMouseEnter:L,handleClick:F}},render(){const{clsPrefix:d,tmNode:{rawNode:b},isSelected:x,isPending:C,isGrouped:w,showCheckmark:A,nodeProps:S,renderOption:$,renderLabel:E,handleClick:P,handleMouseEnter:B,handleMouseMove:k}=this,I=renderCheckMark(x,d),R=E?[E(b,x),A&&I]:[render$1(b[this.labelField],b,x),A&&I],F=S==null?void 0:S(b),L=h$1("div",Object.assign({},F,{class:["".concat(d,"-base-select-option"),b.class,F==null?void 0:F.class,{["".concat(d,"-base-select-option--disabled")]:b.disabled,["".concat(d,"-base-select-option--selected")]:x,["".concat(d,"-base-select-option--grouped")]:w,["".concat(d,"-base-select-option--pending")]:C,["".concat(d,"-base-select-option--show-checkmark")]:A}],style:[(F==null?void 0:F.style)||"",b.style||""],onClick:mergeEventHandlers([P,F==null?void 0:F.onClick]),onMouseenter:mergeEventHandlers([B,F==null?void 0:F.onMouseenter]),onMousemove:mergeEventHandlers([k,F==null?void 0:F.onMousemove])}),h$1("div",{class:"".concat(d,"-base-select-option__content")},R));return b.render?b.render({node:L,option:b,selected:x}):$?$({node:L,option:b,selected:x}):L}}),NSelectGroupHeader=defineComponent({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:d,renderOptionRef:b,labelFieldRef:x,nodePropsRef:C}=inject(internalSelectionMenuInjectionKey);return{labelField:x,nodeProps:C,renderLabel:d,renderOption:b}},render(){const{clsPrefix:d,renderLabel:b,renderOption:x,nodeProps:C,tmNode:{rawNode:w}}=this,A=C==null?void 0:C(w),S=b?b(w,!1):render$1(w[this.labelField],w,!1),$=h$1("div",Object.assign({},A,{class:["".concat(d,"-base-select-group-header"),A==null?void 0:A.class]}),S);return w.render?w.render({node:$,option:w}):x?x({node:$,option:w,selected:!1}):$}}),{cubicBezierEaseIn:cubicBezierEaseIn$1,cubicBezierEaseOut:cubicBezierEaseOut$1}=commonVariables$m;function fadeInScaleUpTransition({transformOrigin:d="inherit",duration:b=".2s",enterScale:x=".9",originalTransform:C="",originalTransition:w=""}={}){return[c$3("&.fade-in-scale-up-transition-leave-active",{transformOrigin:d,transition:"opacity ".concat(b," ").concat(cubicBezierEaseIn$1,", transform ").concat(b," ").concat(cubicBezierEaseIn$1," ").concat(w&&","+w)}),c$3("&.fade-in-scale-up-transition-enter-active",{transformOrigin:d,transition:"opacity ".concat(b," ").concat(cubicBezierEaseOut$1,", transform ").concat(b," ").concat(cubicBezierEaseOut$1," ").concat(w&&","+w)}),c$3("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:"".concat(C," scale(").concat(x,")")}),c$3("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:"".concat(C," scale(1)")})]}const style$l=cB("base-select-menu","\n line-height: 1.5;\n outline: none;\n z-index: 0;\n position: relative;\n border-radius: var(--n-border-radius);\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-color);\n",[cB("scrollbar","\n max-height: var(--n-height);\n "),cB("virtual-list","\n max-height: var(--n-height);\n "),cB("base-select-option","\n min-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n display: flex;\n align-items: center;\n ",[cE("content","\n z-index: 1;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n ")]),cB("base-select-group-header","\n min-height: var(--n-option-height);\n font-size: .93em;\n display: flex;\n align-items: center;\n "),cB("base-select-menu-option-wrapper","\n position: relative;\n width: 100%;\n "),cE("loading, empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),cE("loading","\n color: var(--n-loading-color);\n font-size: var(--n-loading-size);\n "),cE("action","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-top: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),cB("base-select-group-header","\n position: relative;\n cursor: default;\n padding: var(--n-option-padding);\n color: var(--n-group-header-text-color);\n "),cB("base-select-option","\n cursor: pointer;\n position: relative;\n padding: var(--n-option-padding);\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n box-sizing: border-box;\n color: var(--n-option-text-color);\n opacity: 1;\n ",[cM("show-checkmark","\n padding-right: calc(var(--n-option-padding-right) + 20px);\n "),c$3("&::before",'\n content: "";\n position: absolute;\n left: 4px;\n right: 4px;\n top: 0;\n bottom: 0;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),c$3("&:active","\n color: var(--n-option-text-color-pressed);\n "),cM("grouped","\n padding-left: calc(var(--n-option-padding-left) * 1.5);\n "),cM("pending",[c$3("&::before","\n background-color: var(--n-option-color-pending);\n ")]),cM("selected","\n color: var(--n-option-text-color-active);\n ",[c$3("&::before","\n background-color: var(--n-option-color-active);\n "),cM("pending",[c$3("&::before","\n background-color: var(--n-option-color-active-pending);\n ")])]),cM("disabled","\n cursor: not-allowed;\n ",[cNotM("selected","\n color: var(--n-option-text-color-disabled);\n "),cM("selected","\n opacity: var(--n-option-opacity-disabled);\n ")]),cE("check","\n font-size: 16px;\n position: absolute;\n right: calc(var(--n-option-padding-right) - 4px);\n top: calc(50% - 7px);\n color: var(--n-option-check-color);\n transition: color .3s var(--n-bezier);\n ",[fadeInScaleUpTransition({enterScale:"0.5"})])])]),NInternalSelectMenu=defineComponent({name:"InternalSelectMenu",props:Object.assign(Object.assign({},useTheme.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(d){const b=useTheme("InternalSelectMenu","-internal-select-menu",style$l,internalSelectMenuLight$1,d,toRef$1(d,"clsPrefix")),x=ref(null),C=ref(null),w=ref(null),A=computed(()=>d.treeMate.getFlattenedNodes()),S=computed(()=>createIndexGetter(A.value)),$=ref(null);function E(){const{treeMate:le}=d;let be=null;const{value:Le}=d;Le===null?be=le.getFirstAvailableNode():(d.multiple?be=le.getNode((Le||[])[(Le||[]).length-1]):be=le.getNode(Le),(!be||be.disabled)&&(be=le.getFirstAvailableNode())),he(be||null)}function P(){const{value:le}=$;le&&!d.treeMate.getNode(le.key)&&($.value=null)}let B;watch(()=>d.show,le=>{le?B=watch(()=>d.treeMate,()=>{d.resetMenuOnOptionsChange?(d.autoPending?E():P(),nextTick(Z)):P()},{immediate:!0}):B==null||B()},{immediate:!0}),onBeforeUnmount(()=>{B==null||B()});const k=computed(()=>depx(b.value.self[createKey("optionHeight",d.size)])),I=computed(()=>getMargin(b.value.self[createKey("padding",d.size)])),R=computed(()=>d.multiple&&Array.isArray(d.value)?new Set(d.value):new Set),F=computed(()=>{const le=A.value;return le&&le.length===0});function L(le){const{onToggle:be}=d;be&&be(le)}function z(le){const{onScroll:be}=d;be&&be(le)}function V(le){var be;(be=w.value)===null||be===void 0||be.sync(),z(le)}function U(){var le;(le=w.value)===null||le===void 0||le.sync()}function Q(){const{value:le}=$;return le||null}function W(le,be){be.disabled||he(be,!1)}function G(le,be){be.disabled||L(be)}function q(le){var be;happensIn(le,"action")||(be=d.onKeyup)===null||be===void 0||be.call(d,le)}function K(le){var be;happensIn(le,"action")||(be=d.onKeydown)===null||be===void 0||be.call(d,le)}function X(le){var be;(be=d.onMousedown)===null||be===void 0||be.call(d,le),!d.focusable&&le.preventDefault()}function J(){const{value:le}=$;le&&he(le.getNext({loop:!0}),!0)}function oe(){const{value:le}=$;le&&he(le.getPrev({loop:!0}),!0)}function he(le,be=!1){$.value=le,be&&Z()}function Z(){var le,be;const Le=$.value;if(!Le)return;const Qe=S.value(Le.key);Qe!==null&&(d.virtualScroll?(le=C.value)===null||le===void 0||le.scrollTo({index:Qe}):(be=w.value)===null||be===void 0||be.scrollTo({index:Qe,elSize:k.value}))}function ce(le){var be,Le;!((be=x.value)===null||be===void 0)&&be.contains(le.target)&&((Le=d.onFocus)===null||Le===void 0||Le.call(d,le))}function fe(le){var be,Le;!((be=x.value)===null||be===void 0)&&be.contains(le.relatedTarget)||(Le=d.onBlur)===null||Le===void 0||Le.call(d,le)}provide(internalSelectionMenuInjectionKey,{handleOptionMouseEnter:W,handleOptionClick:G,valueSetRef:R,pendingTmNodeRef:$,nodePropsRef:toRef$1(d,"nodeProps"),showCheckmarkRef:toRef$1(d,"showCheckmark"),multipleRef:toRef$1(d,"multiple"),valueRef:toRef$1(d,"value"),renderLabelRef:toRef$1(d,"renderLabel"),renderOptionRef:toRef$1(d,"renderOption"),labelFieldRef:toRef$1(d,"labelField"),valueFieldRef:toRef$1(d,"valueField")}),provide(internalSelectionMenuBodyInjectionKey,x),onMounted(()=>{const{value:le}=w;le&&le.sync()});const me=computed(()=>{const{size:le}=d,{common:{cubicBezierEaseInOut:be},self:{height:Le,borderRadius:Qe,color:rt,groupHeaderTextColor:ht,actionDividerColor:ct,optionTextColorPressed:it,optionTextColor:Be,optionTextColorDisabled:Ie,optionTextColorActive:Fe,optionOpacityDisabled:ie,optionCheckColor:$e,actionTextColor:re,optionColorPending:se,optionColorActive:Ce,loadingColor:Ne,loadingSize:we,optionColorActivePending:ge,[createKey("optionFontSize",le)]:Ee,[createKey("optionHeight",le)]:ke,[createKey("optionPadding",le)]:Ae}}=b.value;return{"--n-height":Le,"--n-action-divider-color":ct,"--n-action-text-color":re,"--n-bezier":be,"--n-border-radius":Qe,"--n-color":rt,"--n-option-font-size":Ee,"--n-group-header-text-color":ht,"--n-option-check-color":$e,"--n-option-color-pending":se,"--n-option-color-active":Ce,"--n-option-color-active-pending":ge,"--n-option-height":ke,"--n-option-opacity-disabled":ie,"--n-option-text-color":Be,"--n-option-text-color-active":Fe,"--n-option-text-color-disabled":Ie,"--n-option-text-color-pressed":it,"--n-option-padding":Ae,"--n-option-padding-left":getMargin(Ae,"left"),"--n-option-padding-right":getMargin(Ae,"right"),"--n-loading-color":Ne,"--n-loading-size":we}}),{inlineThemeDisabled:ne}=d,te=ne?useThemeClass("internal-select-menu",computed(()=>d.size[0]),me,d):void 0,de={selfRef:x,next:J,prev:oe,getPendingTmNode:Q};return useOnResize(x,d.onResize),Object.assign({mergedTheme:b,virtualListRef:C,scrollbarRef:w,itemSize:k,padding:I,flattenedNodes:A,empty:F,virtualListContainer(){const{value:le}=C;return le==null?void 0:le.listElRef},virtualListContent(){const{value:le}=C;return le==null?void 0:le.itemsElRef},doScroll:z,handleFocusin:ce,handleFocusout:fe,handleKeyUp:q,handleKeyDown:K,handleMouseDown:X,handleVirtualListResize:U,handleVirtualListScroll:V,cssVars:ne?void 0:me,themeClass:te==null?void 0:te.themeClass,onRender:te==null?void 0:te.onRender},de)},render(){const{$slots:d,virtualScroll:b,clsPrefix:x,mergedTheme:C,themeClass:w,onRender:A}=this;return A==null||A(),h$1("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:["".concat(x,"-base-select-menu"),w,this.multiple&&"".concat(x,"-base-select-menu--multiple")],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?h$1("div",{class:"".concat(x,"-base-select-menu__loading")},h$1(NBaseLoading,{clsPrefix:x,strokeWidth:20})):this.empty?h$1("div",{class:"".concat(x,"-base-select-menu__empty"),"data-empty":!0},resolveSlot(d.empty,()=>[h$1(NEmpty,{theme:C.peers.Empty,themeOverrides:C.peerOverrides.Empty})])):h$1(NScrollbar$1,{ref:"scrollbarRef",theme:C.peers.Scrollbar,themeOverrides:C.peerOverrides.Scrollbar,scrollable:this.scrollable,container:b?this.virtualListContainer:void 0,content:b?this.virtualListContent:void 0,onScroll:b?void 0:this.doScroll},{default:()=>b?h$1(VVirtualList,{ref:"virtualListRef",class:"".concat(x,"-virtual-list"),items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:S})=>S.isGroup?h$1(NSelectGroupHeader,{key:S.key,clsPrefix:x,tmNode:S}):S.ignored?null:h$1(NSelectOption,{clsPrefix:x,key:S.key,tmNode:S})}):h$1("div",{class:"".concat(x,"-base-select-menu-option-wrapper"),style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(S=>S.isGroup?h$1(NSelectGroupHeader,{key:S.key,clsPrefix:x,tmNode:S}):h$1(NSelectOption,{clsPrefix:x,key:S.key,tmNode:S})))}),resolveWrappedSlot(d.action,S=>S&&[h$1("div",{class:"".concat(x,"-base-select-menu__action"),"data-action":!0,key:"action"},S),h$1(FocusDetector,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),style$k=cB("base-wave","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n"),NBaseWave=defineComponent({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(d){useStyle("-base-wave",style$k,toRef$1(d,"clsPrefix"));const b=ref(null),x=ref(!1);let C=null;return onBeforeUnmount(()=>{C!==null&&window.clearTimeout(C)}),{active:x,selfRef:b,play(){C!==null&&(window.clearTimeout(C),x.value=!1,C=null),nextTick(()=>{var w;(w=b.value)===null||w===void 0||w.offsetHeight,x.value=!0,C=window.setTimeout(()=>{x.value=!1,C=null},1e3)})}}},render(){const{clsPrefix:d}=this;return h$1("div",{ref:"selfRef","aria-hidden":!0,class:["".concat(d,"-base-wave"),this.active&&"".concat(d,"-base-wave--active")]})}}),commonVariables$k={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},self$R=d=>{const{boxShadow2:b,popoverColor:x,textColor2:C,borderRadius:w,fontSize:A,dividerColor:S}=d;return Object.assign(Object.assign({},commonVariables$k),{fontSize:A,borderRadius:w,color:x,dividerColor:S,textColor:C,boxShadow:b})},popoverLight={name:"Popover",common:commonLight,self:self$R},popoverLight$1=popoverLight,popoverDark={name:"Popover",common:commonDark,self:self$R},popoverDark$1=popoverDark,oppositePlacement={top:"bottom",bottom:"top",left:"right",right:"left"},arrowSize="var(--n-arrow-height) * 1.414",style$j=c$3([cB("popover","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n position: relative;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n box-shadow: var(--n-box-shadow);\n word-break: break-word;\n ",[c$3(">",[cB("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),cNotM("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[cNotM("scrollable",[cNotM("show-header-or-footer","padding: var(--n-padding);")])]),cE("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),cE("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),cM("scrollable, show-header-or-footer",[cE("content","\n padding: var(--n-padding);\n ")])]),cB("popover-shared","\n transform-origin: inherit;\n ",[cB("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[cB("popover-arrow","\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(".concat(arrowSize,");\n height: calc(").concat(arrowSize,");\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n "))]),c$3("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),c$3("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),c$3("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),c$3("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),placementStyle("top-start","\n top: calc(".concat(arrowSize," / -2);\n left: calc(").concat(getArrowOffset("top-start")," - var(--v-offset-left));\n ")),placementStyle("top","\n top: calc(".concat(arrowSize," / -2);\n transform: translateX(calc(").concat(arrowSize," / -2)) rotate(45deg);\n left: 50%;\n ")),placementStyle("top-end","\n top: calc(".concat(arrowSize," / -2);\n right: calc(").concat(getArrowOffset("top-end")," + var(--v-offset-left));\n ")),placementStyle("bottom-start","\n bottom: calc(".concat(arrowSize," / -2);\n left: calc(").concat(getArrowOffset("bottom-start")," - var(--v-offset-left));\n ")),placementStyle("bottom","\n bottom: calc(".concat(arrowSize," / -2);\n transform: translateX(calc(").concat(arrowSize," / -2)) rotate(45deg);\n left: 50%;\n ")),placementStyle("bottom-end","\n bottom: calc(".concat(arrowSize," / -2);\n right: calc(").concat(getArrowOffset("bottom-end")," + var(--v-offset-left));\n ")),placementStyle("left-start","\n left: calc(".concat(arrowSize," / -2);\n top: calc(").concat(getArrowOffset("left-start")," - var(--v-offset-top));\n ")),placementStyle("left","\n left: calc(".concat(arrowSize," / -2);\n transform: translateY(calc(").concat(arrowSize," / -2)) rotate(45deg);\n top: 50%;\n ")),placementStyle("left-end","\n left: calc(".concat(arrowSize," / -2);\n bottom: calc(").concat(getArrowOffset("left-end")," + var(--v-offset-top));\n ")),placementStyle("right-start","\n right: calc(".concat(arrowSize," / -2);\n top: calc(").concat(getArrowOffset("right-start")," - var(--v-offset-top));\n ")),placementStyle("right","\n right: calc(".concat(arrowSize," / -2);\n transform: translateY(calc(").concat(arrowSize," / -2)) rotate(45deg);\n top: 50%;\n ")),placementStyle("right-end","\n right: calc(".concat(arrowSize," / -2);\n bottom: calc(").concat(getArrowOffset("right-end")," + var(--v-offset-top));\n ")),...map({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(d,b)=>{const x=["right","left"].includes(b),C=x?"width":"height";return d.map(w=>{const A=w.split("-")[1]==="end",S="var(--v-target-".concat(C,", 0px)"),$="calc((".concat(S," - ").concat(arrowSize,") / 2)"),E=getArrowOffset(w);return c$3('[v-placement="'.concat(w,'"] >'),[cB("popover-shared",[cM("center-arrow",[cB("popover-arrow","".concat(b,": calc(max(").concat($,", ").concat(E,") ").concat(A?"+":"-"," var(--v-offset-").concat(x?"left":"top","));"))])])])})})]);function getArrowOffset(d){return["top","bottom"].includes(d.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function placementStyle(d,b){const x=d.split("-")[0],C=["top","bottom"].includes(x)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return c$3('[v-placement="'.concat(d,'"] >'),[cB("popover-shared","\n margin-".concat(oppositePlacement[x],": var(--n-space);\n "),[cM("show-arrow","\n margin-".concat(oppositePlacement[x],": var(--n-space-arrow);\n ")),cM("overlap","\n margin: 0;\n "),cCB("popover-arrow-wrapper","\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ".concat(x,": 100%;\n ").concat(oppositePlacement[x],": auto;\n ").concat(C,"\n "),[cB("popover-arrow",b)])])])}const popoverBodyProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),renderArrow=({arrowStyle:d,clsPrefix:b})=>h$1("div",{key:"__popover-arrow__",class:"".concat(b,"-popover-arrow-wrapper")},h$1("div",{class:"".concat(b,"-popover-arrow"),style:d})),NPopoverBody=defineComponent({name:"PopoverBody",inheritAttrs:!1,props:popoverBodyProps,setup(d,{slots:b,attrs:x}){const{namespaceRef:C,mergedClsPrefixRef:w,inlineThemeDisabled:A}=useConfig(d),S=useTheme("Popover","-popover",style$j,popoverLight$1,d,w),$=ref(null),E=inject("NPopover"),P=ref(null),B=ref(d.show),k=ref(!1);watchEffect(()=>{const{show:K}=d;K&&!isJsdom()&&!d.internalDeactivateImmediately&&(k.value=!0)});const I=computed(()=>{const{trigger:K,onClickoutside:X}=d,J=[],{positionManuallyRef:{value:oe}}=E;return oe||(K==="click"&&!X&&J.push([clickoutside$1,W,void 0,{capture:!0}]),K==="hover"&&J.push([mousemoveoutside$1,Q])),X&&J.push([clickoutside$1,W,void 0,{capture:!0}]),(d.displayDirective==="show"||d.animated&&k.value)&&J.push([vShow,d.show]),J}),R=computed(()=>{const K=d.width==="trigger"?void 0:formatLength(d.width),X=[];K&&X.push({width:K});const{maxWidth:J,minWidth:oe}=d;return J&&X.push({maxWidth:formatLength(J)}),oe&&X.push({maxWidth:formatLength(oe)}),A||X.push(F.value),X}),F=computed(()=>{const{common:{cubicBezierEaseInOut:K,cubicBezierEaseIn:X,cubicBezierEaseOut:J},self:{space:oe,spaceArrow:he,padding:Z,fontSize:ce,textColor:fe,dividerColor:me,color:ne,boxShadow:te,borderRadius:de,arrowHeight:le,arrowOffset:be,arrowOffsetVertical:Le}}=S.value;return{"--n-box-shadow":te,"--n-bezier":K,"--n-bezier-ease-in":X,"--n-bezier-ease-out":J,"--n-font-size":ce,"--n-text-color":fe,"--n-color":ne,"--n-divider-color":me,"--n-border-radius":de,"--n-arrow-height":le,"--n-arrow-offset":be,"--n-arrow-offset-vertical":Le,"--n-padding":Z,"--n-space":oe,"--n-space-arrow":he}}),L=A?useThemeClass("popover",void 0,F,d):void 0;E.setBodyInstance({syncPosition:z}),onBeforeUnmount(()=>{E.setBodyInstance(null)}),watch(toRef$1(d,"show"),K=>{d.animated||(K?B.value=!0:B.value=!1)});function z(){var K;(K=$.value)===null||K===void 0||K.syncPosition()}function V(K){d.trigger==="hover"&&d.keepAliveOnHover&&d.show&&E.handleMouseEnter(K)}function U(K){d.trigger==="hover"&&d.keepAliveOnHover&&E.handleMouseLeave(K)}function Q(K){d.trigger==="hover"&&!G().contains(getPreciseEventTarget(K))&&E.handleMouseMoveOutside(K)}function W(K){(d.trigger==="click"&&!G().contains(getPreciseEventTarget(K))||d.onClickoutside)&&E.handleClickOutside(K)}function G(){return E.getTriggerElement()}provide(popoverBodyInjectionKey,P),provide(drawerBodyInjectionKey,null),provide(modalBodyInjectionKey,null);function q(){if(L==null||L.onRender(),!(d.displayDirective==="show"||d.show||d.animated&&k.value))return null;let X;const J=E.internalRenderBodyRef.value,{value:oe}=w;if(J)X=J(["".concat(oe,"-popover-shared"),L==null?void 0:L.themeClass.value,d.overlap&&"".concat(oe,"-popover-shared--overlap"),d.showArrow&&"".concat(oe,"-popover-shared--show-arrow"),d.arrowPointToCenter&&"".concat(oe,"-popover-shared--center-arrow")],P,R.value,V,U);else{const{value:he}=E.extraClassRef,{internalTrapFocus:Z}=d,ce=!isSlotEmpty(b.header)||!isSlotEmpty(b.footer),fe=()=>{var me;const ne=ce?h$1(Fragment,null,resolveWrappedSlot(b.header,le=>le?h$1("div",{class:"".concat(oe,"-popover__header"),style:d.headerStyle},le):null),resolveWrappedSlot(b.default,le=>le?h$1("div",{class:"".concat(oe,"-popover__content"),style:d.contentStyle},b):null),resolveWrappedSlot(b.footer,le=>le?h$1("div",{class:"".concat(oe,"-popover__footer"),style:d.footerStyle},le):null)):d.scrollable?(me=b.default)===null||me===void 0?void 0:me.call(b):h$1("div",{class:"".concat(oe,"-popover__content"),style:d.contentStyle},b),te=d.scrollable?h$1(XScrollbar,{contentClass:ce?void 0:"".concat(oe,"-popover__content"),contentStyle:ce?void 0:d.contentStyle},{default:()=>ne}):ne,de=d.showArrow?renderArrow({arrowStyle:d.arrowStyle,clsPrefix:oe}):null;return[te,de]};X=h$1("div",mergeProps({class:["".concat(oe,"-popover"),"".concat(oe,"-popover-shared"),L==null?void 0:L.themeClass.value,he.map(me=>"".concat(oe,"-").concat(me)),{["".concat(oe,"-popover--scrollable")]:d.scrollable,["".concat(oe,"-popover--show-header-or-footer")]:ce,["".concat(oe,"-popover--raw")]:d.raw,["".concat(oe,"-popover-shared--overlap")]:d.overlap,["".concat(oe,"-popover-shared--show-arrow")]:d.showArrow,["".concat(oe,"-popover-shared--center-arrow")]:d.arrowPointToCenter}],ref:P,style:R.value,onKeydown:E.handleKeydown,onMouseenter:V,onMouseleave:U},x),Z?h$1(FocusTrap,{active:d.show,autoFocus:!0},{default:fe}):fe())}return withDirectives(X,I.value)}return{displayed:k,namespace:C,isMounted:E.isMountedRef,zIndex:E.zIndexRef,followerRef:$,adjustedTo:useAdjustedTo(d),followerEnabled:B,renderContentNode:q}},render(){return h$1(VFollower,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey},{default:()=>this.animated?h$1(Transition,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var d;(d=this.internalOnAfterLeave)===null||d===void 0||d.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),bodyPropKeys=Object.keys(popoverBodyProps),triggerEventMap={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function appendEvents(d,b,x){triggerEventMap[b].forEach(C=>{d.props?d.props=Object.assign({},d.props):d.props={};const w=d.props[C],A=x[C];w?d.props[C]=(...S)=>{w(...S),A(...S)}:d.props[C]=A})}const popoverBaseProps={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:useAdjustedTo.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},popoverProps=Object.assign(Object.assign(Object.assign({},useTheme.props),popoverBaseProps),{internalOnAfterLeave:Function,internalRenderBody:Function}),NPopover=defineComponent({name:"Popover",inheritAttrs:!1,props:popoverProps,__popover__:!0,setup(d){const b=isMounted(),x=ref(null),C=computed(()=>d.show),w=ref(d.defaultShow),A=useMergedState(C,w),S=useMemo(()=>d.disabled?!1:A.value),$=()=>{if(d.disabled)return!0;const{getDisabled:fe}=d;return!!(fe!=null&&fe())},E=()=>$()?!1:A.value,P=useCompitable(d,["arrow","showArrow"]),B=computed(()=>d.overlap?!1:P.value);let k=null;const I=ref(null),R=ref(null),F=useMemo(()=>d.x!==void 0&&d.y!==void 0);function L(fe){const{"onUpdate:show":me,onUpdateShow:ne,onShow:te,onHide:de}=d;w.value=fe,me&&call$1(me,fe),ne&&call$1(ne,fe),fe&&te&&call$1(te,!0),fe&&de&&call$1(de,!1)}function z(){k&&k.syncPosition()}function V(){const{value:fe}=I;fe&&(window.clearTimeout(fe),I.value=null)}function U(){const{value:fe}=R;fe&&(window.clearTimeout(fe),R.value=null)}function Q(){const fe=$();if(d.trigger==="focus"&&!fe){if(E())return;L(!0)}}function W(){const fe=$();if(d.trigger==="focus"&&!fe){if(!E())return;L(!1)}}function G(){const fe=$();if(d.trigger==="hover"&&!fe){if(U(),I.value!==null||E())return;const me=()=>{L(!0),I.value=null},{delay:ne}=d;ne===0?me():I.value=window.setTimeout(me,ne)}}function q(){const fe=$();if(d.trigger==="hover"&&!fe){if(V(),R.value!==null||!E())return;const me=()=>{L(!1),R.value=null},{duration:ne}=d;ne===0?me():R.value=window.setTimeout(me,ne)}}function K(){q()}function X(fe){var me;E()&&(d.trigger==="click"&&(V(),U(),L(!1)),(me=d.onClickoutside)===null||me===void 0||me.call(d,fe))}function J(){if(d.trigger==="click"&&!$()){V(),U();const fe=!E();L(fe)}}function oe(fe){d.internalTrapFocus&&fe.key==="Escape"&&(V(),U(),L(!1))}function he(fe){w.value=fe}function Z(){var fe;return(fe=x.value)===null||fe===void 0?void 0:fe.targetRef}function ce(fe){k=fe}return provide("NPopover",{getTriggerElement:Z,handleKeydown:oe,handleMouseEnter:G,handleMouseLeave:q,handleClickOutside:X,handleMouseMoveOutside:K,setBodyInstance:ce,positionManuallyRef:F,isMountedRef:b,zIndexRef:toRef$1(d,"zIndex"),extraClassRef:toRef$1(d,"internalExtraClass"),internalRenderBodyRef:toRef$1(d,"internalRenderBody")}),watchEffect(()=>{A.value&&$()&&L(!1)}),{binderInstRef:x,positionManually:F,mergedShowConsideringDisabledProp:S,uncontrolledShow:w,mergedShowArrow:B,getMergedShow:E,setShow:he,handleClick:J,handleMouseEnter:G,handleMouseLeave:q,handleFocus:Q,handleBlur:W,syncPosition:z}},render(){var d;const{positionManually:b,$slots:x}=this;let C,w=!1;if(!b&&(x.activator?C=getFirstSlotVNode(x,"activator"):C=getFirstSlotVNode(x,"trigger"),C)){C=cloneVNode(C),C=C.type===Text?h$1("span",[C]):C;const A={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((d=C.type)===null||d===void 0)&&d.__popover__)w=!0,C.props||(C.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),C.props.internalSyncTargetWithParent=!0,C.props.internalInheritedEventHandlers?C.props.internalInheritedEventHandlers=[A,...C.props.internalInheritedEventHandlers]:C.props.internalInheritedEventHandlers=[A];else{const{internalInheritedEventHandlers:S}=this,$=[A,...S],E={onBlur:P=>{$.forEach(B=>{B.onBlur(P)})},onFocus:P=>{$.forEach(B=>{B.onFocus(P)})},onClick:P=>{$.forEach(B=>{B.onClick(P)})},onMouseenter:P=>{$.forEach(B=>{B.onMouseenter(P)})},onMouseleave:P=>{$.forEach(B=>{B.onMouseleave(P)})}};appendEvents(C,S?"nested":b?"manual":this.trigger,E)}}return h$1(VBinder,{ref:"binderInstRef",syncTarget:!w,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const A=this.getMergedShow();return[this.internalTrapFocus&&A?withDirectives(h$1("div",{style:{position:"fixed",inset:0}}),[[zindexable$1,{enabled:A,zIndex:this.zIndex}]]):null,b?null:h$1(VTarget,null,{default:()=>C}),h$1(NPopoverBody,keep(this.$props,bodyPropKeys,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:A})),{default:()=>{var S,$;return($=(S=this.$slots).default)===null||$===void 0?void 0:$.call(S)},header:()=>{var S,$;return($=(S=this.$slots).header)===null||$===void 0?void 0:$.call(S)},footer:()=>{var S,$;return($=(S=this.$slots).footer)===null||$===void 0?void 0:$.call(S)}})]}})}}),commonVariables$j={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},tagDark={name:"Tag",common:commonDark,self(d){const{textColor2:b,primaryColorHover:x,primaryColorPressed:C,primaryColor:w,infoColor:A,successColor:S,warningColor:$,errorColor:E,baseColor:P,borderColor:B,tagColor:k,opacityDisabled:I,closeIconColor:R,closeIconColorHover:F,closeIconColorPressed:L,closeColorHover:z,closeColorPressed:V,borderRadiusSmall:U,fontSizeMini:Q,fontSizeTiny:W,fontSizeSmall:G,fontSizeMedium:q,heightMini:K,heightTiny:X,heightSmall:J,heightMedium:oe,buttonColor2Hover:he,buttonColor2Pressed:Z,fontWeightStrong:ce}=d;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:U,heightTiny:K,heightSmall:X,heightMedium:J,heightLarge:oe,borderRadius:U,opacityDisabled:I,fontSizeTiny:Q,fontSizeSmall:W,fontSizeMedium:G,fontSizeLarge:q,fontWeightStrong:ce,textColorCheckable:b,textColorHoverCheckable:b,textColorPressedCheckable:b,textColorChecked:P,colorCheckable:"#0000",colorHoverCheckable:he,colorPressedCheckable:Z,colorChecked:w,colorCheckedHover:x,colorCheckedPressed:C,border:"1px solid ".concat(B),textColor:b,color:k,colorBordered:"#0000",closeIconColor:R,closeIconColorHover:F,closeIconColorPressed:L,closeColorHover:z,closeColorPressed:V,borderPrimary:"1px solid ".concat(changeColor(w,{alpha:.3})),textColorPrimary:w,colorPrimary:changeColor(w,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:scaleColor(w,{lightness:.7}),closeIconColorHoverPrimary:scaleColor(w,{lightness:.7}),closeIconColorPressedPrimary:scaleColor(w,{lightness:.7}),closeColorHoverPrimary:changeColor(w,{alpha:.16}),closeColorPressedPrimary:changeColor(w,{alpha:.12}),borderInfo:"1px solid ".concat(changeColor(A,{alpha:.3})),textColorInfo:A,colorInfo:changeColor(A,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:scaleColor(A,{alpha:.7}),closeIconColorHoverInfo:scaleColor(A,{alpha:.7}),closeIconColorPressedInfo:scaleColor(A,{alpha:.7}),closeColorHoverInfo:changeColor(A,{alpha:.16}),closeColorPressedInfo:changeColor(A,{alpha:.12}),borderSuccess:"1px solid ".concat(changeColor(S,{alpha:.3})),textColorSuccess:S,colorSuccess:changeColor(S,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:scaleColor(S,{alpha:.7}),closeIconColorHoverSuccess:scaleColor(S,{alpha:.7}),closeIconColorPressedSuccess:scaleColor(S,{alpha:.7}),closeColorHoverSuccess:changeColor(S,{alpha:.16}),closeColorPressedSuccess:changeColor(S,{alpha:.12}),borderWarning:"1px solid ".concat(changeColor($,{alpha:.3})),textColorWarning:$,colorWarning:changeColor($,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:scaleColor($,{alpha:.7}),closeIconColorHoverWarning:scaleColor($,{alpha:.7}),closeIconColorPressedWarning:scaleColor($,{alpha:.7}),closeColorHoverWarning:changeColor($,{alpha:.16}),closeColorPressedWarning:changeColor($,{alpha:.11}),borderError:"1px solid ".concat(changeColor(E,{alpha:.3})),textColorError:E,colorError:changeColor(E,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:scaleColor(E,{alpha:.7}),closeIconColorHoverError:scaleColor(E,{alpha:.7}),closeIconColorPressedError:scaleColor(E,{alpha:.7}),closeColorHoverError:changeColor(E,{alpha:.16}),closeColorPressedError:changeColor(E,{alpha:.12})})}},tagDark$1=tagDark,self$Q=d=>{const{textColor2:b,primaryColorHover:x,primaryColorPressed:C,primaryColor:w,infoColor:A,successColor:S,warningColor:$,errorColor:E,baseColor:P,borderColor:B,opacityDisabled:k,tagColor:I,closeIconColor:R,closeIconColorHover:F,closeIconColorPressed:L,borderRadiusSmall:z,fontSizeMini:V,fontSizeTiny:U,fontSizeSmall:Q,fontSizeMedium:W,heightMini:G,heightTiny:q,heightSmall:K,heightMedium:X,closeColorHover:J,closeColorPressed:oe,buttonColor2Hover:he,buttonColor2Pressed:Z,fontWeightStrong:ce}=d;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:z,heightTiny:G,heightSmall:q,heightMedium:K,heightLarge:X,borderRadius:z,opacityDisabled:k,fontSizeTiny:V,fontSizeSmall:U,fontSizeMedium:Q,fontSizeLarge:W,fontWeightStrong:ce,textColorCheckable:b,textColorHoverCheckable:b,textColorPressedCheckable:b,textColorChecked:P,colorCheckable:"#0000",colorHoverCheckable:he,colorPressedCheckable:Z,colorChecked:w,colorCheckedHover:x,colorCheckedPressed:C,border:"1px solid ".concat(B),textColor:b,color:I,colorBordered:"rgb(250, 250, 252)",closeIconColor:R,closeIconColorHover:F,closeIconColorPressed:L,closeColorHover:J,closeColorPressed:oe,borderPrimary:"1px solid ".concat(changeColor(w,{alpha:.3})),textColorPrimary:w,colorPrimary:changeColor(w,{alpha:.12}),colorBorderedPrimary:changeColor(w,{alpha:.1}),closeIconColorPrimary:w,closeIconColorHoverPrimary:w,closeIconColorPressedPrimary:w,closeColorHoverPrimary:changeColor(w,{alpha:.12}),closeColorPressedPrimary:changeColor(w,{alpha:.18}),borderInfo:"1px solid ".concat(changeColor(A,{alpha:.3})),textColorInfo:A,colorInfo:changeColor(A,{alpha:.12}),colorBorderedInfo:changeColor(A,{alpha:.1}),closeIconColorInfo:A,closeIconColorHoverInfo:A,closeIconColorPressedInfo:A,closeColorHoverInfo:changeColor(A,{alpha:.12}),closeColorPressedInfo:changeColor(A,{alpha:.18}),borderSuccess:"1px solid ".concat(changeColor(S,{alpha:.3})),textColorSuccess:S,colorSuccess:changeColor(S,{alpha:.12}),colorBorderedSuccess:changeColor(S,{alpha:.1}),closeIconColorSuccess:S,closeIconColorHoverSuccess:S,closeIconColorPressedSuccess:S,closeColorHoverSuccess:changeColor(S,{alpha:.12}),closeColorPressedSuccess:changeColor(S,{alpha:.18}),borderWarning:"1px solid ".concat(changeColor($,{alpha:.35})),textColorWarning:$,colorWarning:changeColor($,{alpha:.15}),colorBorderedWarning:changeColor($,{alpha:.12}),closeIconColorWarning:$,closeIconColorHoverWarning:$,closeIconColorPressedWarning:$,closeColorHoverWarning:changeColor($,{alpha:.12}),closeColorPressedWarning:changeColor($,{alpha:.18}),borderError:"1px solid ".concat(changeColor(E,{alpha:.23})),textColorError:E,colorError:changeColor(E,{alpha:.1}),colorBorderedError:changeColor(E,{alpha:.08}),closeIconColorError:E,closeIconColorHoverError:E,closeIconColorPressedError:E,closeColorHoverError:changeColor(E,{alpha:.12}),closeColorPressedError:changeColor(E,{alpha:.18})})},tagLight={name:"Tag",common:commonLight,self:self$Q},tagLight$1=tagLight,commonProps={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},style$i=cB("tag","\n white-space: nowrap;\n position: relative;\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex-wrap: nowrap;\n padding: var(--n-padding);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n transition: \n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n line-height: 1;\n height: var(--n-height);\n font-size: var(--n-font-size);\n",[cM("strong","\n font-weight: var(--n-font-weight-strong);\n "),cE("border","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-border);\n transition: border-color .3s var(--n-bezier);\n "),cE("icon","\n display: flex;\n margin: 0 4px 0 0;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n font-size: var(--n-avatar-size-override);\n "),cE("avatar","\n display: flex;\n margin: 0 6px 0 0;\n "),cE("close","\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n "),cM("round","\n padding: 0 calc(var(--n-height) / 3);\n border-radius: calc(var(--n-height) / 2);\n ",[cE("icon","\n margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);\n "),cE("avatar","\n margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);\n "),cM("closable","\n padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);\n ")]),cM("icon, avatar",[cM("round","\n padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);\n ")]),cM("disabled","\n cursor: not-allowed !important;\n opacity: var(--n-opacity-disabled);\n "),cM("checkable","\n cursor: pointer;\n box-shadow: none;\n color: var(--n-text-color-checkable);\n background-color: var(--n-color-checkable);\n ",[cNotM("disabled",[c$3("&:hover","background-color: var(--n-color-hover-checkable);",[cNotM("checked","color: var(--n-text-color-hover-checkable);")]),c$3("&:active","background-color: var(--n-color-pressed-checkable);",[cNotM("checked","color: var(--n-text-color-pressed-checkable);")])]),cM("checked","\n color: var(--n-text-color-checked);\n background-color: var(--n-color-checked);\n ",[cNotM("disabled",[c$3("&:hover","background-color: var(--n-color-checked-hover);"),c$3("&:active","background-color: var(--n-color-checked-pressed);")])])])]),tagProps=Object.assign(Object.assign(Object.assign({},useTheme.props),commonProps),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),tagInjectionKey="n-tag",NTag=defineComponent({name:"Tag",props:tagProps,setup(d){const b=ref(null),{mergedBorderedRef:x,mergedClsPrefixRef:C,inlineThemeDisabled:w,mergedRtlRef:A}=useConfig(d),S=useTheme("Tag","-tag",style$i,tagLight$1,d,C);provide(tagInjectionKey,{roundRef:toRef$1(d,"round")});function $(R){if(!d.disabled&&d.checkable){const{checked:F,onCheckedChange:L,onUpdateChecked:z,"onUpdate:checked":V}=d;z&&z(!F),V&&V(!F),L&&L(!F)}}function E(R){if(d.triggerClickOnClose||R.stopPropagation(),!d.disabled){const{onClose:F}=d;F&&call$1(F,R)}}const P={setTextContent(R){const{value:F}=b;F&&(F.textContent=R)}},B=useRtl("Tag",A,C),k=computed(()=>{const{type:R,size:F,color:{color:L,textColor:z}={}}=d,{common:{cubicBezierEaseInOut:V},self:{padding:U,closeMargin:Q,closeMarginRtl:W,borderRadius:G,opacityDisabled:q,textColorCheckable:K,textColorHoverCheckable:X,textColorPressedCheckable:J,textColorChecked:oe,colorCheckable:he,colorHoverCheckable:Z,colorPressedCheckable:ce,colorChecked:fe,colorCheckedHover:me,colorCheckedPressed:ne,closeBorderRadius:te,fontWeightStrong:de,[createKey("colorBordered",R)]:le,[createKey("closeSize",F)]:be,[createKey("closeIconSize",F)]:Le,[createKey("fontSize",F)]:Qe,[createKey("height",F)]:rt,[createKey("color",R)]:ht,[createKey("textColor",R)]:ct,[createKey("border",R)]:it,[createKey("closeIconColor",R)]:Be,[createKey("closeIconColorHover",R)]:Ie,[createKey("closeIconColorPressed",R)]:Fe,[createKey("closeColorHover",R)]:ie,[createKey("closeColorPressed",R)]:$e}}=S.value;return{"--n-font-weight-strong":de,"--n-avatar-size-override":"calc(".concat(rt," - 8px)"),"--n-bezier":V,"--n-border-radius":G,"--n-border":it,"--n-close-icon-size":Le,"--n-close-color-pressed":$e,"--n-close-color-hover":ie,"--n-close-border-radius":te,"--n-close-icon-color":Be,"--n-close-icon-color-hover":Ie,"--n-close-icon-color-pressed":Fe,"--n-close-icon-color-disabled":Be,"--n-close-margin":Q,"--n-close-margin-rtl":W,"--n-close-size":be,"--n-color":L||(x.value?le:ht),"--n-color-checkable":he,"--n-color-checked":fe,"--n-color-checked-hover":me,"--n-color-checked-pressed":ne,"--n-color-hover-checkable":Z,"--n-color-pressed-checkable":ce,"--n-font-size":Qe,"--n-height":rt,"--n-opacity-disabled":q,"--n-padding":U,"--n-text-color":z||ct,"--n-text-color-checkable":K,"--n-text-color-checked":oe,"--n-text-color-hover-checkable":X,"--n-text-color-pressed-checkable":J}}),I=w?useThemeClass("tag",computed(()=>{let R="";const{type:F,size:L,color:{color:z,textColor:V}={}}=d;return R+=F[0],R+=L[0],z&&(R+="a".concat(color2Class(z))),V&&(R+="b".concat(color2Class(V))),x.value&&(R+="c"),R}),k,d):void 0;return Object.assign(Object.assign({},P),{rtlEnabled:B,mergedClsPrefix:C,contentRef:b,mergedBordered:x,handleClick:$,handleCloseClick:E,cssVars:w?void 0:k,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){var d,b;const{mergedClsPrefix:x,rtlEnabled:C,closable:w,color:{borderColor:A}={},round:S,onRender:$,$slots:E}=this;$==null||$();const P=resolveWrappedSlot(E.avatar,k=>k&&h$1("div",{class:"".concat(x,"-tag__avatar")},k)),B=resolveWrappedSlot(E.icon,k=>k&&h$1("div",{class:"".concat(x,"-tag__icon")},k));return h$1("div",{class:["".concat(x,"-tag"),this.themeClass,{["".concat(x,"-tag--rtl")]:C,["".concat(x,"-tag--strong")]:this.strong,["".concat(x,"-tag--disabled")]:this.disabled,["".concat(x,"-tag--checkable")]:this.checkable,["".concat(x,"-tag--checked")]:this.checkable&&this.checked,["".concat(x,"-tag--round")]:S,["".concat(x,"-tag--avatar")]:P,["".concat(x,"-tag--icon")]:B,["".concat(x,"-tag--closable")]:w}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},B||P,h$1("span",{class:"".concat(x,"-tag__content"),ref:"contentRef"},(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d)),!this.checkable&&w?h$1(NBaseClose,{clsPrefix:x,class:"".concat(x,"-tag__close"),disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:S,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?h$1("div",{class:"".concat(x,"-tag__border"),style:{borderColor:A}}):null)}}),style$h=cB("base-clear","\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n position: relative;\n",[c$3(">",[cE("clear","\n font-size: var(--n-clear-size);\n height: 1em;\n width: 1em;\n cursor: pointer;\n color: var(--n-clear-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n ",[c$3("&:hover","\n color: var(--n-clear-color-hover)!important;\n "),c$3("&:active","\n color: var(--n-clear-color-pressed)!important;\n ")]),cE("placeholder","\n display: flex;\n "),cE("clear, placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[iconSwitchTransition({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),NBaseClear=defineComponent({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(d){return useStyle("-base-clear",style$h,toRef$1(d,"clsPrefix")),{handleMouseDown(b){b.preventDefault()}}},render(){const{clsPrefix:d}=this;return h$1("div",{class:"".concat(d,"-base-clear")},h$1(NIconSwitchTransition,null,{default:()=>{var b,x;return this.show?h$1("div",{key:"dismiss",class:"".concat(d,"-base-clear__clear"),onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},resolveSlot(this.$slots.icon,()=>[h$1(NBaseIcon,{clsPrefix:d},{default:()=>h$1(ClearIcon,null)})])):h$1("div",{key:"icon",class:"".concat(d,"-base-clear__placeholder")},(x=(b=this.$slots).placeholder)===null||x===void 0?void 0:x.call(b))}}))}}),NBaseSuffix=defineComponent({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(d,{slots:b}){return()=>{const{clsPrefix:x}=d;return h$1(NBaseLoading,{clsPrefix:x,class:"".concat(x,"-base-suffix"),strokeWidth:24,scale:.85,show:d.loading},{default:()=>d.showArrow?h$1(NBaseClear,{clsPrefix:x,show:d.showClear,onClear:d.onClear},{placeholder:()=>h$1(NBaseIcon,{clsPrefix:x,class:"".concat(x,"-base-suffix__arrow")},{default:()=>resolveSlot(b.default,()=>[h$1(ChevronDownIcon,null)])})}):null})}}}),commonVars$b={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},self$P=d=>{const{borderRadius:b,textColor2:x,textColorDisabled:C,inputColor:w,inputColorDisabled:A,primaryColor:S,primaryColorHover:$,warningColor:E,warningColorHover:P,errorColor:B,errorColorHover:k,borderColor:I,iconColor:R,iconColorDisabled:F,clearColor:L,clearColorHover:z,clearColorPressed:V,placeholderColor:U,placeholderColorDisabled:Q,fontSizeTiny:W,fontSizeSmall:G,fontSizeMedium:q,fontSizeLarge:K,heightTiny:X,heightSmall:J,heightMedium:oe,heightLarge:he}=d;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:W,fontSizeSmall:G,fontSizeMedium:q,fontSizeLarge:K,heightTiny:X,heightSmall:J,heightMedium:oe,heightLarge:he,borderRadius:b,textColor:x,textColorDisabled:C,placeholderColor:U,placeholderColorDisabled:Q,color:w,colorDisabled:A,colorActive:w,border:"1px solid ".concat(I),borderHover:"1px solid ".concat($),borderActive:"1px solid ".concat(S),borderFocus:"1px solid ".concat($),boxShadowHover:"none",boxShadowActive:"0 0 0 2px ".concat(changeColor(S,{alpha:.2})),boxShadowFocus:"0 0 0 2px ".concat(changeColor(S,{alpha:.2})),caretColor:S,arrowColor:R,arrowColorDisabled:F,loadingColor:S,borderWarning:"1px solid ".concat(E),borderHoverWarning:"1px solid ".concat(P),borderActiveWarning:"1px solid ".concat(E),borderFocusWarning:"1px solid ".concat(P),boxShadowHoverWarning:"none",boxShadowActiveWarning:"0 0 0 2px ".concat(changeColor(E,{alpha:.2})),boxShadowFocusWarning:"0 0 0 2px ".concat(changeColor(E,{alpha:.2})),colorActiveWarning:w,caretColorWarning:E,borderError:"1px solid ".concat(B),borderHoverError:"1px solid ".concat(k),borderActiveError:"1px solid ".concat(B),borderFocusError:"1px solid ".concat(k),boxShadowHoverError:"none",boxShadowActiveError:"0 0 0 2px ".concat(changeColor(B,{alpha:.2})),boxShadowFocusError:"0 0 0 2px ".concat(changeColor(B,{alpha:.2})),colorActiveError:w,caretColorError:B,clearColor:L,clearColorHover:z,clearColorPressed:V})},internalSelectionLight={name:"InternalSelection",common:commonLight,peers:{Popover:popoverLight$1},self:self$P},internalSelectionLight$1=internalSelectionLight,internalSelectionDark={name:"InternalSelection",common:commonDark,peers:{Popover:popoverDark$1},self(d){const{borderRadius:b,textColor2:x,textColorDisabled:C,inputColor:w,inputColorDisabled:A,primaryColor:S,primaryColorHover:$,warningColor:E,warningColorHover:P,errorColor:B,errorColorHover:k,iconColor:I,iconColorDisabled:R,clearColor:F,clearColorHover:L,clearColorPressed:z,placeholderColor:V,placeholderColorDisabled:U,fontSizeTiny:Q,fontSizeSmall:W,fontSizeMedium:G,fontSizeLarge:q,heightTiny:K,heightSmall:X,heightMedium:J,heightLarge:oe}=d;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:Q,fontSizeSmall:W,fontSizeMedium:G,fontSizeLarge:q,heightTiny:K,heightSmall:X,heightMedium:J,heightLarge:oe,borderRadius:b,textColor:x,textColorDisabled:C,placeholderColor:V,placeholderColorDisabled:U,color:w,colorDisabled:A,colorActive:changeColor(S,{alpha:.1}),border:"1px solid #0000",borderHover:"1px solid ".concat($),borderActive:"1px solid ".concat(S),borderFocus:"1px solid ".concat($),boxShadowHover:"none",boxShadowActive:"0 0 8px 0 ".concat(changeColor(S,{alpha:.4})),boxShadowFocus:"0 0 8px 0 ".concat(changeColor(S,{alpha:.4})),caretColor:S,arrowColor:I,arrowColorDisabled:R,loadingColor:S,borderWarning:"1px solid ".concat(E),borderHoverWarning:"1px solid ".concat(P),borderActiveWarning:"1px solid ".concat(E),borderFocusWarning:"1px solid ".concat(P),boxShadowHoverWarning:"none",boxShadowActiveWarning:"0 0 8px 0 ".concat(changeColor(E,{alpha:.4})),boxShadowFocusWarning:"0 0 8px 0 ".concat(changeColor(E,{alpha:.4})),colorActiveWarning:changeColor(E,{alpha:.1}),caretColorWarning:E,borderError:"1px solid ".concat(B),borderHoverError:"1px solid ".concat(k),borderActiveError:"1px solid ".concat(B),borderFocusError:"1px solid ".concat(k),boxShadowHoverError:"none",boxShadowActiveError:"0 0 8px 0 ".concat(changeColor(B,{alpha:.4})),boxShadowFocusError:"0 0 8px 0 ".concat(changeColor(B,{alpha:.4})),colorActiveError:changeColor(B,{alpha:.1}),caretColorError:B,clearColor:F,clearColorHover:L,clearColorPressed:z})}},internalSelectionDark$1=internalSelectionDark,style$g=c$3([cB("base-selection","\n position: relative;\n z-index: auto;\n box-shadow: none;\n width: 100%;\n max-width: 100%;\n display: inline-block;\n vertical-align: bottom;\n border-radius: var(--n-border-radius);\n min-height: var(--n-height);\n line-height: 1.5;\n font-size: var(--n-font-size);\n ",[cB("base-loading","\n color: var(--n-loading-color);\n "),cB("base-selection-tags","min-height: var(--n-height);"),cE("border, state-border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border: var(--n-border);\n border-radius: inherit;\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),cE("state-border","\n z-index: 1;\n border-color: #0000;\n "),cB("base-suffix","\n cursor: pointer;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 10px;\n ",[cE("arrow","\n font-size: var(--n-arrow-size);\n color: var(--n-arrow-color);\n transition: color .3s var(--n-bezier);\n ")]),cB("base-selection-overlay","\n display: flex;\n align-items: center;\n white-space: nowrap;\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: var(--n-padding-single);\n transition: color .3s var(--n-bezier);\n ",[cE("wrapper","\n flex-basis: 0;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),cB("base-selection-placeholder","\n color: var(--n-placeholder-color);\n ",[cE("inner","\n max-width: 100%;\n overflow: hidden;\n ")]),cB("base-selection-tags","\n cursor: pointer;\n outline: none;\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n display: flex;\n padding: var(--n-padding-multiple);\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n vertical-align: bottom;\n background-color: var(--n-color);\n border-radius: inherit;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),cB("base-selection-label","\n height: var(--n-height);\n display: inline-flex;\n width: 100%;\n vertical-align: bottom;\n cursor: pointer;\n outline: none;\n z-index: auto;\n box-sizing: border-box;\n position: relative;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n border-radius: inherit;\n background-color: var(--n-color);\n align-items: center;\n ",[cB("base-selection-input","\n font-size: inherit;\n line-height: inherit;\n outline: none;\n cursor: pointer;\n box-sizing: border-box;\n border:none;\n width: 100%;\n padding: var(--n-padding-single);\n background-color: #0000;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n caret-color: var(--n-caret-color);\n ",[cE("content","\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap; \n ")]),cE("render-label","\n color: var(--n-text-color);\n ")]),cNotM("disabled",[c$3("&:hover",[cE("state-border","\n box-shadow: var(--n-box-shadow-hover);\n border: var(--n-border-hover);\n ")]),cM("focus",[cE("state-border","\n box-shadow: var(--n-box-shadow-focus);\n border: var(--n-border-focus);\n ")]),cM("active",[cE("state-border","\n box-shadow: var(--n-box-shadow-active);\n border: var(--n-border-active);\n "),cB("base-selection-label","background-color: var(--n-color-active);"),cB("base-selection-tags","background-color: var(--n-color-active);")])]),cM("disabled","cursor: not-allowed;",[cE("arrow","\n color: var(--n-arrow-color-disabled);\n "),cB("base-selection-label","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[cB("base-selection-input","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n "),cE("render-label","\n color: var(--n-text-color-disabled);\n ")]),cB("base-selection-tags","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n "),cB("base-selection-placeholder","\n cursor: not-allowed;\n color: var(--n-placeholder-color-disabled);\n ")]),cB("base-selection-input-tag","\n height: calc(var(--n-height) - 6px);\n line-height: calc(var(--n-height) - 6px);\n outline: none;\n display: none;\n position: relative;\n margin-bottom: 3px;\n max-width: 100%;\n vertical-align: bottom;\n ",[cE("input","\n font-size: inherit;\n font-family: inherit;\n min-width: 1px;\n padding: 0;\n background-color: #0000;\n outline: none;\n border: none;\n max-width: 100%;\n overflow: hidden;\n width: 1em;\n line-height: inherit;\n cursor: pointer;\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n "),cE("mirror","\n position: absolute;\n left: 0;\n top: 0;\n white-space: pre;\n visibility: hidden;\n user-select: none;\n -webkit-user-select: none;\n opacity: 0;\n ")]),["warning","error"].map(d=>cM("".concat(d,"-status"),[cE("state-border","border: var(--n-border-".concat(d,");")),cNotM("disabled",[c$3("&:hover",[cE("state-border","\n box-shadow: var(--n-box-shadow-hover-".concat(d,");\n border: var(--n-border-hover-").concat(d,");\n "))]),cM("active",[cE("state-border","\n box-shadow: var(--n-box-shadow-active-".concat(d,");\n border: var(--n-border-active-").concat(d,");\n ")),cB("base-selection-label","background-color: var(--n-color-active-".concat(d,");")),cB("base-selection-tags","background-color: var(--n-color-active-".concat(d,");"))]),cM("focus",[cE("state-border","\n box-shadow: var(--n-box-shadow-focus-".concat(d,");\n border: var(--n-border-focus-").concat(d,");\n "))])])]))]),cB("base-selection-popover","\n margin-bottom: -3px;\n display: flex;\n flex-wrap: wrap;\n margin-right: -8px;\n "),cB("base-selection-tag-wrapper","\n max-width: 100%;\n display: inline-flex;\n padding: 0 7px 3px 0;\n ",[c$3("&:last-child","padding-right: 0;"),cB("tag","\n font-size: 14px;\n max-width: 100%;\n ",[cE("content","\n line-height: 1.25;\n text-overflow: ellipsis;\n overflow: hidden;\n ")])])]),NInternalSelection=defineComponent({name:"InternalSelection",props:Object.assign(Object.assign({},useTheme.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(d){const b=ref(null),x=ref(null),C=ref(null),w=ref(null),A=ref(null),S=ref(null),$=ref(null),E=ref(null),P=ref(null),B=ref(null),k=ref(!1),I=ref(!1),R=ref(!1),F=useTheme("InternalSelection","-internal-selection",style$g,internalSelectionLight$1,d,toRef$1(d,"clsPrefix")),L=computed(()=>d.clearable&&!d.disabled&&(R.value||d.active)),z=computed(()=>d.selectedOption?d.renderTag?d.renderTag({option:d.selectedOption,handleClose:()=>{}}):d.renderLabel?d.renderLabel(d.selectedOption,!0):render$1(d.selectedOption[d.labelField],d.selectedOption,!0):d.placeholder),V=computed(()=>{const ve=d.selectedOption;if(ve)return ve[d.labelField]}),U=computed(()=>d.multiple?!!(Array.isArray(d.selectedOptions)&&d.selectedOptions.length):d.selectedOption!==null);function Q(){var ve;const{value:De}=b;if(De){const{value:We}=x;We&&(We.style.width="".concat(De.offsetWidth,"px"),d.maxTagCount!=="responsive"&&((ve=P.value)===null||ve===void 0||ve.sync()))}}function W(){const{value:ve}=B;ve&&(ve.style.display="none")}function G(){const{value:ve}=B;ve&&(ve.style.display="inline-block")}watch(toRef$1(d,"active"),ve=>{ve||W()}),watch(toRef$1(d,"pattern"),()=>{d.multiple&&nextTick(Q)});function q(ve){const{onFocus:De}=d;De&&De(ve)}function K(ve){const{onBlur:De}=d;De&&De(ve)}function X(ve){const{onDeleteOption:De}=d;De&&De(ve)}function J(ve){const{onClear:De}=d;De&&De(ve)}function oe(ve){const{onPatternInput:De}=d;De&&De(ve)}function he(ve){var De;(!ve.relatedTarget||!(!((De=C.value)===null||De===void 0)&&De.contains(ve.relatedTarget)))&&q(ve)}function Z(ve){var De;!((De=C.value)===null||De===void 0)&&De.contains(ve.relatedTarget)||K(ve)}function ce(ve){J(ve)}function fe(){R.value=!0}function me(){R.value=!1}function ne(ve){!d.active||!d.filterable||ve.target!==x.value&&ve.preventDefault()}function te(ve){X(ve)}function de(ve){if(ve.key==="Backspace"&&!le.value&&!d.pattern.length){const{selectedOptions:De}=d;De!=null&&De.length&&te(De[De.length-1])}}const le=ref(!1);let be=null;function Le(ve){const{value:De}=b;if(De){const We=ve.target.value;De.textContent=We,Q()}d.ignoreComposition&&le.value?be=ve:oe(ve)}function Qe(){le.value=!0}function rt(){le.value=!1,d.ignoreComposition&&oe(be),be=null}function ht(ve){var De;I.value=!0,(De=d.onPatternFocus)===null||De===void 0||De.call(d,ve)}function ct(ve){var De;I.value=!1,(De=d.onPatternBlur)===null||De===void 0||De.call(d,ve)}function it(){var ve,De;if(d.filterable)I.value=!1,(ve=S.value)===null||ve===void 0||ve.blur(),(De=x.value)===null||De===void 0||De.blur();else if(d.multiple){const{value:We}=w;We==null||We.blur()}else{const{value:We}=A;We==null||We.blur()}}function Be(){var ve,De,We;d.filterable?(I.value=!1,(ve=S.value)===null||ve===void 0||ve.focus()):d.multiple?(De=w.value)===null||De===void 0||De.focus():(We=A.value)===null||We===void 0||We.focus()}function Ie(){const{value:ve}=x;ve&&(G(),ve.focus())}function Fe(){const{value:ve}=x;ve&&ve.blur()}function ie(ve){const{value:De}=$;De&&De.setTextContent("+".concat(ve))}function $e(){const{value:ve}=E;return ve}function re(){return x.value}let se=null;function Ce(){se!==null&&window.clearTimeout(se)}function Ne(){d.disabled||d.active||(Ce(),se=window.setTimeout(()=>{U.value&&(k.value=!0)},100))}function we(){Ce()}function ge(ve){ve||(Ce(),k.value=!1)}watch(U,ve=>{ve||(k.value=!1)}),onMounted(()=>{watchEffect(()=>{const ve=S.value;ve&&(ve.tabIndex=d.disabled||I.value?-1:0)})}),useOnResize(C,d.onResize);const{inlineThemeDisabled:Ee}=d,ke=computed(()=>{const{size:ve}=d,{common:{cubicBezierEaseInOut:De},self:{borderRadius:We,color:Ye,placeholderColor:Je,textColor:nt,paddingSingle:dt,paddingMultiple:Ue,caretColor:lt,colorDisabled:yt,textColorDisabled:$t,placeholderColorDisabled:Mt,colorActive:Lt,boxShadowFocus:At,boxShadowActive:xt,boxShadowHover:xe,border:ze,borderFocus:Ze,borderHover:ut,borderActive:gt,arrowColor:mt,arrowColorDisabled:ye,loadingColor:Oe,colorActiveWarning:Ve,boxShadowFocusWarning:He,boxShadowActiveWarning:Ke,boxShadowHoverWarning:ft,borderWarning:St,borderFocusWarning:Ft,borderHoverWarning:bt,borderActiveWarning:Nt,colorActiveError:Te,boxShadowFocusError:je,boxShadowActiveError:st,boxShadowHoverError:_t,borderError:Ht,borderFocusError:It,borderHoverError:tr,borderActiveError:Kt,clearColor:Ot,clearColorHover:fr,clearColorPressed:_r,clearSize:sn,arrowSize:yr,[createKey("height",ve)]:Nn,[createKey("fontSize",ve)]:In}}=F.value;return{"--n-bezier":De,"--n-border":ze,"--n-border-active":gt,"--n-border-focus":Ze,"--n-border-hover":ut,"--n-border-radius":We,"--n-box-shadow-active":xt,"--n-box-shadow-focus":At,"--n-box-shadow-hover":xe,"--n-caret-color":lt,"--n-color":Ye,"--n-color-active":Lt,"--n-color-disabled":yt,"--n-font-size":In,"--n-height":Nn,"--n-padding-single":dt,"--n-padding-multiple":Ue,"--n-placeholder-color":Je,"--n-placeholder-color-disabled":Mt,"--n-text-color":nt,"--n-text-color-disabled":$t,"--n-arrow-color":mt,"--n-arrow-color-disabled":ye,"--n-loading-color":Oe,"--n-color-active-warning":Ve,"--n-box-shadow-focus-warning":He,"--n-box-shadow-active-warning":Ke,"--n-box-shadow-hover-warning":ft,"--n-border-warning":St,"--n-border-focus-warning":Ft,"--n-border-hover-warning":bt,"--n-border-active-warning":Nt,"--n-color-active-error":Te,"--n-box-shadow-focus-error":je,"--n-box-shadow-active-error":st,"--n-box-shadow-hover-error":_t,"--n-border-error":Ht,"--n-border-focus-error":It,"--n-border-hover-error":tr,"--n-border-active-error":Kt,"--n-clear-size":sn,"--n-clear-color":Ot,"--n-clear-color-hover":fr,"--n-clear-color-pressed":_r,"--n-arrow-size":yr}}),Ae=Ee?useThemeClass("internal-selection",computed(()=>d.size[0]),ke,d):void 0;return{mergedTheme:F,mergedClearable:L,patternInputFocused:I,filterablePlaceholder:z,label:V,selected:U,showTagsPanel:k,isComposing:le,counterRef:$,counterWrapperRef:E,patternInputMirrorRef:b,patternInputRef:x,selfRef:C,multipleElRef:w,singleElRef:A,patternInputWrapperRef:S,overflowRef:P,inputTagElRef:B,handleMouseDown:ne,handleFocusin:he,handleClear:ce,handleMouseEnter:fe,handleMouseLeave:me,handleDeleteOption:te,handlePatternKeyDown:de,handlePatternInputInput:Le,handlePatternInputBlur:ct,handlePatternInputFocus:ht,handleMouseEnterCounter:Ne,handleMouseLeaveCounter:we,handleFocusout:Z,handleCompositionEnd:rt,handleCompositionStart:Qe,onPopoverUpdateShow:ge,focus:Be,focusInput:Ie,blur:it,blurInput:Fe,updateCounter:ie,getCounter:$e,getTail:re,renderLabel:d.renderLabel,cssVars:Ee?void 0:ke,themeClass:Ae==null?void 0:Ae.themeClass,onRender:Ae==null?void 0:Ae.onRender}},render(){const{status:d,multiple:b,size:x,disabled:C,filterable:w,maxTagCount:A,bordered:S,clsPrefix:$,onRender:E,renderTag:P,renderLabel:B}=this;E==null||E();const k=A==="responsive",I=typeof A=="number",R=k||I,F=h$1(Wrapper,null,{default:()=>h$1(NBaseSuffix,{clsPrefix:$,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var z,V;return(V=(z=this.$slots).arrow)===null||V===void 0?void 0:V.call(z)}})});let L;if(b){const{labelField:z}=this,V=Z=>h$1("div",{class:"".concat($,"-base-selection-tag-wrapper"),key:Z.value},P?P({option:Z,handleClose:()=>{this.handleDeleteOption(Z)}}):h$1(NTag,{size:x,closable:!Z.disabled,disabled:C,onClose:()=>{this.handleDeleteOption(Z)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>B?B(Z,!0):render$1(Z[z],Z,!0)})),U=()=>(I?this.selectedOptions.slice(0,A):this.selectedOptions).map(V),Q=w?h$1("div",{class:"".concat($,"-base-selection-input-tag"),ref:"inputTagElRef",key:"__input-tag__"},h$1("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:C,value:this.pattern,autofocus:this.autofocus,class:"".concat($,"-base-selection-input-tag__input"),onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),h$1("span",{ref:"patternInputMirrorRef",class:"".concat($,"-base-selection-input-tag__mirror")},this.pattern)):null,W=k?()=>h$1("div",{class:"".concat($,"-base-selection-tag-wrapper"),ref:"counterWrapperRef"},h$1(NTag,{size:x,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:C})):void 0;let G;if(I){const Z=this.selectedOptions.length-A;Z>0&&(G=h$1("div",{class:"".concat($,"-base-selection-tag-wrapper"),key:"__counter__"},h$1(NTag,{size:x,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:C},{default:()=>"+".concat(Z)})))}const q=k?w?h$1(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:U,counter:W,tail:()=>Q}):h$1(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:U,counter:W}):I?U().concat(G):U(),K=R?()=>h$1("div",{class:"".concat($,"-base-selection-popover")},k?U():this.selectedOptions.map(V)):void 0,X=R?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,oe=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?h$1("div",{class:"".concat($,"-base-selection-placeholder ").concat($,"-base-selection-overlay")},h$1("div",{class:"".concat($,"-base-selection-placeholder__inner")},this.placeholder)):null,he=w?h$1("div",{ref:"patternInputWrapperRef",class:"".concat($,"-base-selection-tags")},q,k?null:Q,F):h$1("div",{ref:"multipleElRef",class:"".concat($,"-base-selection-tags"),tabindex:C?void 0:0},q,F);L=h$1(Fragment,null,R?h$1(NPopover,Object.assign({},X,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>he,default:K}):he,oe)}else if(w){const z=this.pattern||this.isComposing,V=this.active?!z:!this.selected,U=this.active?!1:this.selected;L=h$1("div",{ref:"patternInputWrapperRef",class:"".concat($,"-base-selection-label")},h$1("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:"".concat($,"-base-selection-input"),value:this.active?this.pattern:"",placeholder:"",readonly:C,disabled:C,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),U?h$1("div",{class:"".concat($,"-base-selection-label__render-label ").concat($,"-base-selection-overlay"),key:"input"},h$1("div",{class:"".concat($,"-base-selection-overlay__wrapper")},P?P({option:this.selectedOption,handleClose:()=>{}}):B?B(this.selectedOption,!0):render$1(this.label,this.selectedOption,!0))):null,V?h$1("div",{class:"".concat($,"-base-selection-placeholder ").concat($,"-base-selection-overlay"),key:"placeholder"},h$1("div",{class:"".concat($,"-base-selection-overlay__wrapper")},this.filterablePlaceholder)):null,F)}else L=h$1("div",{ref:"singleElRef",class:"".concat($,"-base-selection-label"),tabindex:this.disabled?void 0:0},this.label!==void 0?h$1("div",{class:"".concat($,"-base-selection-input"),title:getTitleAttribute(this.label),key:"input"},h$1("div",{class:"".concat($,"-base-selection-input__content")},P?P({option:this.selectedOption,handleClose:()=>{}}):B?B(this.selectedOption,!0):render$1(this.label,this.selectedOption,!0))):h$1("div",{class:"".concat($,"-base-selection-placeholder ").concat($,"-base-selection-overlay"),key:"placeholder"},h$1("div",{class:"".concat($,"-base-selection-placeholder__inner")},this.placeholder)),F);return h$1("div",{ref:"selfRef",class:["".concat($,"-base-selection"),this.themeClass,d&&"".concat($,"-base-selection--").concat(d,"-status"),{["".concat($,"-base-selection--active")]:this.active,["".concat($,"-base-selection--selected")]:this.selected||this.active&&this.pattern,["".concat($,"-base-selection--disabled")]:this.disabled,["".concat($,"-base-selection--multiple")]:this.multiple,["".concat($,"-base-selection--focus")]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},L,S?h$1("div",{class:"".concat($,"-base-selection__border")}):null,S?h$1("div",{class:"".concat($,"-base-selection__state-border")}):null)}}),{cubicBezierEaseInOut:cubicBezierEaseInOut$1}=commonVariables$m;function fadeInWidthExpandTransition({duration:d=".2s",delay:b=".1s"}={}){return[c$3("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),c$3("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from","\n opacity: 0!important;\n margin-left: 0!important;\n margin-right: 0!important;\n "),c$3("&.fade-in-width-expand-transition-leave-active","\n overflow: hidden;\n transition:\n opacity ".concat(d," ").concat(cubicBezierEaseInOut$1,",\n max-width ").concat(d," ").concat(cubicBezierEaseInOut$1," ").concat(b,",\n margin-left ").concat(d," ").concat(cubicBezierEaseInOut$1," ").concat(b,",\n margin-right ").concat(d," ").concat(cubicBezierEaseInOut$1," ").concat(b,";\n ")),c$3("&.fade-in-width-expand-transition-enter-active","\n overflow: hidden;\n transition:\n opacity ".concat(d," ").concat(cubicBezierEaseInOut$1," ").concat(b,",\n max-width ").concat(d," ").concat(cubicBezierEaseInOut$1,",\n margin-left ").concat(d," ").concat(cubicBezierEaseInOut$1,",\n margin-right ").concat(d," ").concat(cubicBezierEaseInOut$1,";\n "))]}const commonVars$a={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},alertDark={name:"Alert",common:commonDark,self(d){const{lineHeight:b,borderRadius:x,fontWeightStrong:C,dividerColor:w,inputColor:A,textColor1:S,textColor2:$,closeColorHover:E,closeColorPressed:P,closeIconColor:B,closeIconColorHover:k,closeIconColorPressed:I,infoColorSuppl:R,successColorSuppl:F,warningColorSuppl:L,errorColorSuppl:z,fontSize:V}=d;return Object.assign(Object.assign({},commonVars$a),{fontSize:V,lineHeight:b,titleFontWeight:C,borderRadius:x,border:"1px solid ".concat(w),color:A,titleTextColor:S,iconColor:$,contentTextColor:$,closeBorderRadius:x,closeColorHover:E,closeColorPressed:P,closeIconColor:B,closeIconColorHover:k,closeIconColorPressed:I,borderInfo:"1px solid ".concat(changeColor(R,{alpha:.35})),colorInfo:changeColor(R,{alpha:.25}),titleTextColorInfo:S,iconColorInfo:R,contentTextColorInfo:$,closeColorHoverInfo:E,closeColorPressedInfo:P,closeIconColorInfo:B,closeIconColorHoverInfo:k,closeIconColorPressedInfo:I,borderSuccess:"1px solid ".concat(changeColor(F,{alpha:.35})),colorSuccess:changeColor(F,{alpha:.25}),titleTextColorSuccess:S,iconColorSuccess:F,contentTextColorSuccess:$,closeColorHoverSuccess:E,closeColorPressedSuccess:P,closeIconColorSuccess:B,closeIconColorHoverSuccess:k,closeIconColorPressedSuccess:I,borderWarning:"1px solid ".concat(changeColor(L,{alpha:.35})),colorWarning:changeColor(L,{alpha:.25}),titleTextColorWarning:S,iconColorWarning:L,contentTextColorWarning:$,closeColorHoverWarning:E,closeColorPressedWarning:P,closeIconColorWarning:B,closeIconColorHoverWarning:k,closeIconColorPressedWarning:I,borderError:"1px solid ".concat(changeColor(z,{alpha:.35})),colorError:changeColor(z,{alpha:.25}),titleTextColorError:S,iconColorError:z,contentTextColorError:$,closeColorHoverError:E,closeColorPressedError:P,closeIconColorError:B,closeIconColorHoverError:k,closeIconColorPressedError:I})}},alertDark$1=alertDark,{cubicBezierEaseInOut,cubicBezierEaseOut,cubicBezierEaseIn}=commonVariables$m;function fadeInHeightExpandTransition({overflow:d="hidden",duration:b=".3s",originalTransition:x="",leavingDelay:C="0s",foldPadding:w=!1,enterToProps:A=void 0,leaveToProps:S=void 0,reverse:$=!1}={}){const E=$?"leave":"enter",P=$?"enter":"leave";return[c$3("&.fade-in-height-expand-transition-".concat(P,"-from,\n &.fade-in-height-expand-transition-").concat(E,"-to"),Object.assign(Object.assign({},A),{opacity:1})),c$3("&.fade-in-height-expand-transition-".concat(P,"-to,\n &.fade-in-height-expand-transition-").concat(E,"-from"),Object.assign(Object.assign({},S),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:w?"0 !important":void 0,paddingBottom:w?"0 !important":void 0})),c$3("&.fade-in-height-expand-transition-".concat(P,"-active"),"\n overflow: ".concat(d,";\n transition:\n max-height ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(C,",\n opacity ").concat(b," ").concat(cubicBezierEaseOut," ").concat(C,",\n margin-top ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(C,",\n margin-bottom ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(C,",\n padding-top ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(C,",\n padding-bottom ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(C,"\n ").concat(x?","+x:"","\n ")),c$3("&.fade-in-height-expand-transition-".concat(E,"-active"),"\n overflow: ".concat(d,";\n transition:\n max-height ").concat(b," ").concat(cubicBezierEaseInOut,",\n opacity ").concat(b," ").concat(cubicBezierEaseIn,",\n margin-top ").concat(b," ").concat(cubicBezierEaseInOut,",\n margin-bottom ").concat(b," ").concat(cubicBezierEaseInOut,",\n padding-top ").concat(b," ").concat(cubicBezierEaseInOut,",\n padding-bottom ").concat(b," ").concat(cubicBezierEaseInOut,"\n ").concat(x?","+x:"","\n "))]}const commonVars$9={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},self$O=d=>{const{borderRadius:b,railColor:x,primaryColor:C,primaryColorHover:w,primaryColorPressed:A,textColor2:S}=d;return Object.assign(Object.assign({},commonVars$9),{borderRadius:b,railColor:x,railColorActive:C,linkColor:changeColor(C,{alpha:.15}),linkTextColor:S,linkTextColorHover:w,linkTextColorPressed:A,linkTextColorActive:C})},anchorDark={name:"Anchor",common:commonDark,self:self$O},anchorDark$1=anchorDark;function getIsGroup(d){return d.type==="group"}function getIgnored(d){return d.type==="ignored"}function patternMatched(d,b){try{return!!(1+b.toString().toLowerCase().indexOf(d.trim().toLowerCase()))}catch(x){return!1}}function createTmOptions(d,b){return{getIsGroup,getIgnored,getKey(C){return getIsGroup(C)?C.name||C.key||"key-required":C[d]},getChildren(C){return C[b]}}}function filterOptions(d,b,x,C){if(!b)return d;function w(A){if(!Array.isArray(A))return[];const S=[];for(const $ of A)if(getIsGroup($)){const E=w($[C]);E.length&&S.push(Object.assign({},$,{[C]:E}))}else{if(getIgnored($))continue;b(x,$)&&S.push($)}return S}return w(d)}function createValOptMap(d,b,x){const C=new Map;return d.forEach(w=>{getIsGroup(w)?w[x].forEach(A=>{C.set(A[b],A)}):C.set(w[b],w)}),C}const isChrome=isBrowser$2&&"chrome"in window;isBrowser$2&&navigator.userAgent.includes("Firefox");const isSafari=isBrowser$2&&navigator.userAgent.includes("Safari")&&!isChrome,commonVariables$i={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},inputDark={name:"Input",common:commonDark,self(d){const{textColor2:b,textColor3:x,textColorDisabled:C,primaryColor:w,primaryColorHover:A,inputColor:S,inputColorDisabled:$,warningColor:E,warningColorHover:P,errorColor:B,errorColorHover:k,borderRadius:I,lineHeight:R,fontSizeTiny:F,fontSizeSmall:L,fontSizeMedium:z,fontSizeLarge:V,heightTiny:U,heightSmall:Q,heightMedium:W,heightLarge:G,clearColor:q,clearColorHover:K,clearColorPressed:X,placeholderColor:J,placeholderColorDisabled:oe,iconColor:he,iconColorDisabled:Z,iconColorHover:ce,iconColorPressed:fe}=d;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:C,countTextColor:x,heightTiny:U,heightSmall:Q,heightMedium:W,heightLarge:G,fontSizeTiny:F,fontSizeSmall:L,fontSizeMedium:z,fontSizeLarge:V,lineHeight:R,lineHeightTextarea:R,borderRadius:I,iconSize:"16px",groupLabelColor:S,textColor:b,textColorDisabled:C,textDecorationColor:b,groupLabelTextColor:b,caretColor:w,placeholderColor:J,placeholderColorDisabled:oe,color:S,colorDisabled:$,colorFocus:changeColor(w,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:"1px solid ".concat(A),borderDisabled:"1px solid #0000",borderFocus:"1px solid ".concat(A),boxShadowFocus:"0 0 8px 0 ".concat(changeColor(w,{alpha:.3})),loadingColor:w,loadingColorWarning:E,borderWarning:"1px solid ".concat(E),borderHoverWarning:"1px solid ".concat(P),colorFocusWarning:changeColor(E,{alpha:.1}),borderFocusWarning:"1px solid ".concat(P),boxShadowFocusWarning:"0 0 8px 0 ".concat(changeColor(E,{alpha:.3})),caretColorWarning:E,loadingColorError:B,borderError:"1px solid ".concat(B),borderHoverError:"1px solid ".concat(k),colorFocusError:changeColor(B,{alpha:.1}),borderFocusError:"1px solid ".concat(k),boxShadowFocusError:"0 0 8px 0 ".concat(changeColor(B,{alpha:.3})),caretColorError:B,clearColor:q,clearColorHover:K,clearColorPressed:X,iconColor:he,iconColorDisabled:Z,iconColorHover:ce,iconColorPressed:fe,suffixTextColor:b})}},inputDark$1=inputDark,self$N=d=>{const{textColor2:b,textColor3:x,textColorDisabled:C,primaryColor:w,primaryColorHover:A,inputColor:S,inputColorDisabled:$,borderColor:E,warningColor:P,warningColorHover:B,errorColor:k,errorColorHover:I,borderRadius:R,lineHeight:F,fontSizeTiny:L,fontSizeSmall:z,fontSizeMedium:V,fontSizeLarge:U,heightTiny:Q,heightSmall:W,heightMedium:G,heightLarge:q,actionColor:K,clearColor:X,clearColorHover:J,clearColorPressed:oe,placeholderColor:he,placeholderColorDisabled:Z,iconColor:ce,iconColorDisabled:fe,iconColorHover:me,iconColorPressed:ne}=d;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:C,countTextColor:x,heightTiny:Q,heightSmall:W,heightMedium:G,heightLarge:q,fontSizeTiny:L,fontSizeSmall:z,fontSizeMedium:V,fontSizeLarge:U,lineHeight:F,lineHeightTextarea:F,borderRadius:R,iconSize:"16px",groupLabelColor:K,groupLabelTextColor:b,textColor:b,textColorDisabled:C,textDecorationColor:b,caretColor:w,placeholderColor:he,placeholderColorDisabled:Z,color:S,colorDisabled:$,colorFocus:S,groupLabelBorder:"1px solid ".concat(E),border:"1px solid ".concat(E),borderHover:"1px solid ".concat(A),borderDisabled:"1px solid ".concat(E),borderFocus:"1px solid ".concat(A),boxShadowFocus:"0 0 0 2px ".concat(changeColor(w,{alpha:.2})),loadingColor:w,loadingColorWarning:P,borderWarning:"1px solid ".concat(P),borderHoverWarning:"1px solid ".concat(B),colorFocusWarning:S,borderFocusWarning:"1px solid ".concat(B),boxShadowFocusWarning:"0 0 0 2px ".concat(changeColor(P,{alpha:.2})),caretColorWarning:P,loadingColorError:k,borderError:"1px solid ".concat(k),borderHoverError:"1px solid ".concat(I),colorFocusError:S,borderFocusError:"1px solid ".concat(I),boxShadowFocusError:"0 0 0 2px ".concat(changeColor(k,{alpha:.2})),caretColorError:k,clearColor:X,clearColorHover:J,clearColorPressed:oe,iconColor:ce,iconColorDisabled:fe,iconColorHover:me,iconColorPressed:ne,suffixTextColor:b})},inputLight={name:"Input",common:commonLight,self:self$N},inputLight$1=inputLight,inputInjectionKey="n-input";function len(d){let b=0;for(const x of d)b++;return b}function isEmptyInputValue(d){return d===""||d==null}function useCursor(d){const b=ref(null);function x(){const{value:A}=d;if(!(A!=null&&A.focus)){w();return}const{selectionStart:S,selectionEnd:$,value:E}=A;if(S==null||$==null){w();return}b.value={start:S,end:$,beforeText:E.slice(0,S),afterText:E.slice($)}}function C(){var A;const{value:S}=b,{value:$}=d;if(!S||!$)return;const{value:E}=$,{start:P,beforeText:B,afterText:k}=S;let I=E.length;if(E.endsWith(k))I=E.length-k.length;else if(E.startsWith(B))I=B.length;else{const R=B[P-1],F=E.indexOf(R,P-1);F!==-1&&(I=F+1)}(A=$.setSelectionRange)===null||A===void 0||A.call($,I,I)}function w(){b.value=null}return watch(d,w),{recordCursor:x,restoreCursor:C}}const WordCount=defineComponent({name:"InputWordCount",setup(d,{slots:b}){const{mergedValueRef:x,maxlengthRef:C,mergedClsPrefixRef:w,countGraphemesRef:A}=inject(inputInjectionKey),S=computed(()=>{const{value:$}=x;return $===null||Array.isArray($)?0:(A.value||len)($)});return()=>{const{value:$}=C,{value:E}=x;return h$1("span",{class:"".concat(w.value,"-input-word-count")},resolveSlotWithProps(b.default,{value:E===null||Array.isArray(E)?"":E},()=>[$===void 0?S.value:"".concat(S.value," / ").concat($)]))}}}),style$f=cB("input","\n max-width: 100%;\n cursor: text;\n line-height: 1.5;\n z-index: auto;\n outline: none;\n box-sizing: border-box;\n position: relative;\n display: inline-flex;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n transition: background-color .3s var(--n-bezier);\n font-size: var(--n-font-size);\n --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);\n",[cE("input, textarea","\n overflow: hidden;\n flex-grow: 1;\n position: relative;\n "),cE("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder","\n box-sizing: border-box;\n font-size: inherit;\n line-height: 1.5;\n font-family: inherit;\n border: none;\n outline: none;\n background-color: #0000;\n text-align: inherit;\n transition:\n -webkit-text-fill-color .3s var(--n-bezier),\n caret-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n text-decoration-color .3s var(--n-bezier);\n "),cE("input-el, textarea-el","\n -webkit-appearance: none;\n scrollbar-width: none;\n width: 100%;\n min-width: 0;\n text-decoration-color: var(--n-text-decoration-color);\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n background-color: transparent;\n ",[c$3("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),c$3("&::placeholder","\n color: #0000;\n -webkit-text-fill-color: transparent !important;\n "),c$3("&:-webkit-autofill ~",[cE("placeholder","display: none;")])]),cM("round",[cNotM("textarea","border-radius: calc(var(--n-height) / 2);")]),cE("placeholder","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: hidden;\n color: var(--n-placeholder-color);\n ",[c$3("span","\n width: 100%;\n display: inline-block;\n ")]),cM("textarea",[cE("placeholder","overflow: visible;")]),cNotM("autosize","width: 100%;"),cM("autosize",[cE("textarea-el, input-el","\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n ")]),cB("input-wrapper","\n overflow: hidden;\n display: inline-flex;\n flex-grow: 1;\n position: relative;\n padding-left: var(--n-padding-left);\n padding-right: var(--n-padding-right);\n "),cE("input-mirror","\n padding: 0;\n height: var(--n-height);\n line-height: var(--n-height);\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre;\n pointer-events: none;\n "),cE("input-el","\n padding: 0;\n height: var(--n-height);\n line-height: var(--n-height);\n ",[c$3("+",[cE("placeholder","\n display: flex;\n align-items: center; \n ")])]),cNotM("textarea",[cE("placeholder","white-space: nowrap;")]),cE("eye","\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color .3s var(--n-bezier);\n "),cM("textarea","width: 100%;",[cB("input-word-count","\n position: absolute;\n right: var(--n-padding-right);\n bottom: var(--n-padding-vertical);\n "),cM("resizable",[cB("input-wrapper","\n resize: vertical;\n min-height: var(--n-height);\n ")]),cE("textarea-el, textarea-mirror, placeholder","\n height: 100%;\n padding-left: 0;\n padding-right: 0;\n padding-top: var(--n-padding-vertical);\n padding-bottom: var(--n-padding-vertical);\n word-break: break-word;\n display: inline-block;\n vertical-align: bottom;\n box-sizing: border-box;\n line-height: var(--n-line-height-textarea);\n margin: 0;\n resize: none;\n white-space: pre-wrap;\n "),cE("textarea-mirror","\n width: 100%;\n pointer-events: none;\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n ")]),cM("pair",[cE("input-el, placeholder","text-align: center;"),cE("separator","\n display: flex;\n align-items: center;\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n white-space: nowrap;\n ",[cB("icon","\n color: var(--n-icon-color);\n "),cB("base-icon","\n color: var(--n-icon-color);\n ")])]),cM("disabled","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[cE("border","border: var(--n-border-disabled);"),cE("input-el, textarea-el","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n text-decoration-color: var(--n-text-color-disabled);\n "),cE("placeholder","color: var(--n-placeholder-color-disabled);"),cE("separator","color: var(--n-text-color-disabled);",[cB("icon","\n color: var(--n-icon-color-disabled);\n "),cB("base-icon","\n color: var(--n-icon-color-disabled);\n ")]),cB("input-word-count","\n color: var(--n-count-text-color-disabled);\n "),cE("suffix, prefix","color: var(--n-text-color-disabled);",[cB("icon","\n color: var(--n-icon-color-disabled);\n "),cB("internal-icon","\n color: var(--n-icon-color-disabled);\n ")])]),cNotM("disabled",[cE("eye","\n color: var(--n-icon-color);\n cursor: pointer;\n ",[c$3("&:hover","\n color: var(--n-icon-color-hover);\n "),c$3("&:active","\n color: var(--n-icon-color-pressed);\n ")]),c$3("&:hover",[cE("state-border","border: var(--n-border-hover);")]),cM("focus","background-color: var(--n-color-focus);",[cE("state-border","\n border: var(--n-border-focus);\n box-shadow: var(--n-box-shadow-focus);\n ")])]),cE("border, state-border","\n box-sizing: border-box;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: inherit;\n border: var(--n-border);\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),cE("state-border","\n border-color: #0000;\n z-index: 1;\n "),cE("prefix","margin-right: 4px;"),cE("suffix","\n margin-left: 4px;\n "),cE("suffix, prefix","\n transition: color .3s var(--n-bezier);\n flex-wrap: nowrap;\n flex-shrink: 0;\n line-height: var(--n-height);\n white-space: nowrap;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--n-suffix-text-color);\n ",[cB("base-loading","\n font-size: var(--n-icon-size);\n margin: 0 2px;\n color: var(--n-loading-color);\n "),cB("base-clear","\n font-size: var(--n-icon-size);\n ",[cE("placeholder",[cB("base-icon","\n transition: color .3s var(--n-bezier);\n color: var(--n-icon-color);\n font-size: var(--n-icon-size);\n ")])]),c$3(">",[cB("icon","\n transition: color .3s var(--n-bezier);\n color: var(--n-icon-color);\n font-size: var(--n-icon-size);\n ")]),cB("base-icon","\n font-size: var(--n-icon-size);\n ")]),cB("input-word-count","\n pointer-events: none;\n line-height: 1.5;\n font-size: .85em;\n color: var(--n-count-text-color);\n transition: color .3s var(--n-bezier);\n margin-left: 4px;\n font-variant: tabular-nums;\n "),["warning","error"].map(d=>cM("".concat(d,"-status"),[cNotM("disabled",[cB("base-loading","\n color: var(--n-loading-color-".concat(d,")\n ")),cE("input-el, textarea-el","\n caret-color: var(--n-caret-color-".concat(d,");\n ")),cE("state-border","\n border: var(--n-border-".concat(d,");\n ")),c$3("&:hover",[cE("state-border","\n border: var(--n-border-hover-".concat(d,");\n "))]),c$3("&:focus","\n background-color: var(--n-color-focus-".concat(d,");\n "),[cE("state-border","\n box-shadow: var(--n-box-shadow-focus-".concat(d,");\n border: var(--n-border-focus-").concat(d,");\n "))]),cM("focus","\n background-color: var(--n-color-focus-".concat(d,");\n "),[cE("state-border","\n box-shadow: var(--n-box-shadow-focus-".concat(d,");\n border: var(--n-border-focus-").concat(d,");\n "))])])]))]),safariStyle=cB("input",[cM("disabled",[cE("input-el, textarea-el","\n -webkit-text-fill-color: var(--n-text-color-disabled);\n ")])]),inputProps=Object.assign(Object.assign({},useTheme.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),NInput=defineComponent({name:"Input",props:inputProps,setup(d){const{mergedClsPrefixRef:b,mergedBorderedRef:x,inlineThemeDisabled:C,mergedRtlRef:w}=useConfig(d),A=useTheme("Input","-input",style$f,inputLight$1,d,b);isSafari&&useStyle("-input-safari",safariStyle,b);const S=ref(null),$=ref(null),E=ref(null),P=ref(null),B=ref(null),k=ref(null),I=ref(null),R=useCursor(I),F=ref(null),{localeRef:L}=useLocale("Input"),z=ref(d.defaultValue),V=toRef$1(d,"value"),U=useMergedState(V,z),Q=useFormItem(d),{mergedSizeRef:W,mergedDisabledRef:G,mergedStatusRef:q}=Q,K=ref(!1),X=ref(!1),J=ref(!1),oe=ref(!1);let he=null;const Z=computed(()=>{const{placeholder:Te,pair:je}=d;return je?Array.isArray(Te)?Te:Te===void 0?["",""]:[Te,Te]:Te===void 0?[L.value.placeholder]:[Te]}),ce=computed(()=>{const{value:Te}=J,{value:je}=U,{value:st}=Z;return!Te&&(isEmptyInputValue(je)||Array.isArray(je)&&isEmptyInputValue(je[0]))&&st[0]}),fe=computed(()=>{const{value:Te}=J,{value:je}=U,{value:st}=Z;return!Te&&st[1]&&(isEmptyInputValue(je)||Array.isArray(je)&&isEmptyInputValue(je[1]))}),me=useMemo(()=>d.internalForceFocus||K.value),ne=useMemo(()=>{if(G.value||d.readonly||!d.clearable||!me.value&&!X.value)return!1;const{value:Te}=U,{value:je}=me;return d.pair?!!(Array.isArray(Te)&&(Te[0]||Te[1]))&&(X.value||je):!!Te&&(X.value||je)}),te=computed(()=>{const{showPasswordOn:Te}=d;if(Te)return Te;if(d.showPasswordToggle)return"click"}),de=ref(!1),le=computed(()=>{const{textDecoration:Te}=d;return Te?Array.isArray(Te)?Te.map(je=>({textDecoration:je})):[{textDecoration:Te}]:["",""]}),be=ref(void 0),Le=()=>{var Te,je;if(d.type==="textarea"){const{autosize:st}=d;if(st&&(be.value=(je=(Te=F.value)===null||Te===void 0?void 0:Te.$el)===null||je===void 0?void 0:je.offsetWidth),!$.value||typeof st=="boolean")return;const{paddingTop:_t,paddingBottom:Ht,lineHeight:It}=window.getComputedStyle($.value),tr=Number(_t.slice(0,-2)),Kt=Number(Ht.slice(0,-2)),Ot=Number(It.slice(0,-2)),{value:fr}=E;if(!fr)return;if(st.minRows){const _r=Math.max(st.minRows,1),sn="".concat(tr+Kt+Ot*_r,"px");fr.style.minHeight=sn}if(st.maxRows){const _r="".concat(tr+Kt+Ot*st.maxRows,"px");fr.style.maxHeight=_r}}},Qe=computed(()=>{const{maxlength:Te}=d;return Te===void 0?void 0:Number(Te)});onMounted(()=>{const{value:Te}=U;Array.isArray(Te)||ye(Te)});const rt=getCurrentInstance().proxy;function ht(Te){const{onUpdateValue:je,"onUpdate:value":st,onInput:_t}=d,{nTriggerFormInput:Ht}=Q;je&&call$1(je,Te),st&&call$1(st,Te),_t&&call$1(_t,Te),z.value=Te,Ht()}function ct(Te){const{onChange:je}=d,{nTriggerFormChange:st}=Q;je&&call$1(je,Te),z.value=Te,st()}function it(Te){const{onBlur:je}=d,{nTriggerFormBlur:st}=Q;je&&call$1(je,Te),st()}function Be(Te){const{onFocus:je}=d,{nTriggerFormFocus:st}=Q;je&&call$1(je,Te),st()}function Ie(Te){const{onClear:je}=d;je&&call$1(je,Te)}function Fe(Te){const{onInputBlur:je}=d;je&&call$1(je,Te)}function ie(Te){const{onInputFocus:je}=d;je&&call$1(je,Te)}function $e(){const{onDeactivate:Te}=d;Te&&call$1(Te)}function re(){const{onActivate:Te}=d;Te&&call$1(Te)}function se(Te){const{onClick:je}=d;je&&call$1(je,Te)}function Ce(Te){const{onWrapperFocus:je}=d;je&&call$1(je,Te)}function Ne(Te){const{onWrapperBlur:je}=d;je&&call$1(je,Te)}function we(){J.value=!0}function ge(Te){J.value=!1,Te.target===k.value?Ee(Te,1):Ee(Te,0)}function Ee(Te,je=0,st="input"){const _t=Te.target.value;if(ye(_t),Te instanceof InputEvent&&!Te.isComposing&&(J.value=!1),d.type==="textarea"){const{value:It}=F;It&&It.syncUnifiedContainer()}if(he=_t,J.value)return;R.recordCursor();const Ht=ke(_t);if(Ht)if(!d.pair)st==="input"?ht(_t):ct(_t);else{let{value:It}=U;Array.isArray(It)?It=[It[0],It[1]]:It=["",""],It[je]=_t,st==="input"?ht(It):ct(It)}rt.$forceUpdate(),Ht||nextTick(R.restoreCursor)}function ke(Te){const{countGraphemes:je,maxlength:st,minlength:_t}=d;if(je){let It;if(st!==void 0&&(It===void 0&&(It=je(Te)),It>Number(st))||_t!==void 0&&(It===void 0&&(It=je(Te)),It{_t.preventDefault(),off("mouseup",document,je)};if(on("mouseup",document,je),te.value!=="mousedown")return;de.value=!0;const st=()=>{de.value=!1,off("mouseup",document,st)};on("mouseup",document,st)}function Lt(Te){var je;switch((je=d.onKeydown)===null||je===void 0||je.call(d,Te),Te.key){case"Escape":xt();break;case"Enter":At(Te);break}}function At(Te){var je,st;if(d.passivelyActivated){const{value:_t}=oe;if(_t){d.internalDeactivateOnEnter&&xt();return}Te.preventDefault(),d.type==="textarea"?(je=$.value)===null||je===void 0||je.focus():(st=B.value)===null||st===void 0||st.focus()}}function xt(){d.passivelyActivated&&(oe.value=!1,nextTick(()=>{var Te;(Te=S.value)===null||Te===void 0||Te.focus()}))}function xe(){var Te,je,st;G.value||(d.passivelyActivated?(Te=S.value)===null||Te===void 0||Te.focus():((je=$.value)===null||je===void 0||je.focus(),(st=B.value)===null||st===void 0||st.focus()))}function ze(){var Te;!((Te=S.value)===null||Te===void 0)&&Te.contains(document.activeElement)&&document.activeElement.blur()}function Ze(){var Te,je;(Te=$.value)===null||Te===void 0||Te.select(),(je=B.value)===null||je===void 0||je.select()}function ut(){G.value||($.value?$.value.focus():B.value&&B.value.focus())}function gt(){const{value:Te}=S;Te!=null&&Te.contains(document.activeElement)&&Te!==document.activeElement&&xt()}function mt(Te){if(d.type==="textarea"){const{value:je}=$;je==null||je.scrollTo(Te)}else{const{value:je}=B;je==null||je.scrollTo(Te)}}function ye(Te){const{type:je,pair:st,autosize:_t}=d;if(!st&&_t)if(je==="textarea"){const{value:Ht}=E;Ht&&(Ht.textContent=(Te!=null?Te:"")+"\r\n")}else{const{value:Ht}=P;Ht&&(Te?Ht.textContent=Te:Ht.innerHTML=" ")}}function Oe(){Le()}const Ve=ref({top:"0"});function He(Te){var je;const{scrollTop:st}=Te.target;Ve.value.top="".concat(-st,"px"),(je=F.value)===null||je===void 0||je.syncUnifiedContainer()}let Ke=null;watchEffect(()=>{const{autosize:Te,type:je}=d;Te&&je==="textarea"?Ke=watch(U,st=>{!Array.isArray(st)&&st!==he&&ye(st)}):Ke==null||Ke()});let ft=null;watchEffect(()=>{d.type==="textarea"?ft=watch(U,Te=>{var je;!Array.isArray(Te)&&Te!==he&&((je=F.value)===null||je===void 0||je.syncUnifiedContainer())}):ft==null||ft()}),provide(inputInjectionKey,{mergedValueRef:U,maxlengthRef:Qe,mergedClsPrefixRef:b,countGraphemesRef:toRef$1(d,"countGraphemes")});const St={wrapperElRef:S,inputElRef:B,textareaElRef:$,isCompositing:J,focus:xe,blur:ze,select:Ze,deactivate:gt,activate:ut,scrollTo:mt},Ft=useRtl("Input",w,b),bt=computed(()=>{const{value:Te}=W,{common:{cubicBezierEaseInOut:je},self:{color:st,borderRadius:_t,textColor:Ht,caretColor:It,caretColorError:tr,caretColorWarning:Kt,textDecorationColor:Ot,border:fr,borderDisabled:_r,borderHover:sn,borderFocus:yr,placeholderColor:Nn,placeholderColorDisabled:In,lineHeightTextarea:To,colorDisabled:Eo,colorFocus:xn,textColorDisabled:Or,boxShadowFocus:Cn,iconSize:Po,colorFocusWarning:ko,boxShadowFocusWarning:Bo,borderWarning:Jn,borderFocusWarning:ln,borderHoverWarning:Zn,colorFocusError:No,boxShadowFocusError:Rr,borderError:Io,borderFocusError:Mo,borderHoverError:eo,clearSize:to,clearColor:ro,clearColorHover:Mn,clearColorPressed:wn,iconColor:no,iconColorDisabled:An,suffixTextColor:oo,countTextColor:io,countTextColorDisabled:ao,iconColorHover:so,iconColorPressed:cn,loadingColor:Oo,loadingColorError:lo,loadingColorWarning:On,[createKey("padding",Te)]:Rn,[createKey("fontSize",Te)]:en,[createKey("height",Te)]:co}}=A.value,{left:uo,right:Ro}=getMargin(Rn);return{"--n-bezier":je,"--n-count-text-color":io,"--n-count-text-color-disabled":ao,"--n-color":st,"--n-font-size":en,"--n-border-radius":_t,"--n-height":co,"--n-padding-left":uo,"--n-padding-right":Ro,"--n-text-color":Ht,"--n-caret-color":It,"--n-text-decoration-color":Ot,"--n-border":fr,"--n-border-disabled":_r,"--n-border-hover":sn,"--n-border-focus":yr,"--n-placeholder-color":Nn,"--n-placeholder-color-disabled":In,"--n-icon-size":Po,"--n-line-height-textarea":To,"--n-color-disabled":Eo,"--n-color-focus":xn,"--n-text-color-disabled":Or,"--n-box-shadow-focus":Cn,"--n-loading-color":Oo,"--n-caret-color-warning":Kt,"--n-color-focus-warning":ko,"--n-box-shadow-focus-warning":Bo,"--n-border-warning":Jn,"--n-border-focus-warning":ln,"--n-border-hover-warning":Zn,"--n-loading-color-warning":On,"--n-caret-color-error":tr,"--n-color-focus-error":No,"--n-box-shadow-focus-error":Rr,"--n-border-error":Io,"--n-border-focus-error":Mo,"--n-border-hover-error":eo,"--n-loading-color-error":lo,"--n-clear-color":ro,"--n-clear-size":to,"--n-clear-color-hover":Mn,"--n-clear-color-pressed":wn,"--n-icon-color":no,"--n-icon-color-hover":so,"--n-icon-color-pressed":cn,"--n-icon-color-disabled":An,"--n-suffix-text-color":oo}}),Nt=C?useThemeClass("input",computed(()=>{const{value:Te}=W;return Te[0]}),bt,d):void 0;return Object.assign(Object.assign({},St),{wrapperElRef:S,inputElRef:B,inputMirrorElRef:P,inputEl2Ref:k,textareaElRef:$,textareaMirrorElRef:E,textareaScrollbarInstRef:F,rtlEnabled:Ft,uncontrolledValue:z,mergedValue:U,passwordVisible:de,mergedPlaceholder:Z,showPlaceholder1:ce,showPlaceholder2:fe,mergedFocus:me,isComposing:J,activated:oe,showClearButton:ne,mergedSize:W,mergedDisabled:G,textDecorationStyle:le,mergedClsPrefix:b,mergedBordered:x,mergedShowPasswordOn:te,placeholderStyle:Ve,mergedStatus:q,textAreaScrollContainerWidth:be,handleTextAreaScroll:He,handleCompositionStart:we,handleCompositionEnd:ge,handleInput:Ee,handleInputBlur:Ae,handleInputFocus:ve,handleWrapperBlur:De,handleWrapperFocus:We,handleMouseEnter:lt,handleMouseLeave:yt,handleMouseDown:Ue,handleChange:Je,handleClick:nt,handleClear:dt,handlePasswordToggleClick:$t,handlePasswordToggleMousedown:Mt,handleWrapperKeydown:Lt,handleTextAreaMirrorResize:Oe,getTextareaScrollContainer:()=>$.value,mergedTheme:A,cssVars:C?void 0:bt,themeClass:Nt==null?void 0:Nt.themeClass,onRender:Nt==null?void 0:Nt.onRender})},render(){var d,b;const{mergedClsPrefix:x,mergedStatus:C,themeClass:w,type:A,countGraphemes:S,onRender:$}=this,E=this.$slots;return $==null||$(),h$1("div",{ref:"wrapperElRef",class:["".concat(x,"-input"),w,C&&"".concat(x,"-input--").concat(C,"-status"),{["".concat(x,"-input--rtl")]:this.rtlEnabled,["".concat(x,"-input--disabled")]:this.mergedDisabled,["".concat(x,"-input--textarea")]:A==="textarea",["".concat(x,"-input--resizable")]:this.resizable&&!this.autosize,["".concat(x,"-input--autosize")]:this.autosize,["".concat(x,"-input--round")]:this.round&&A!=="textarea",["".concat(x,"-input--pair")]:this.pair,["".concat(x,"-input--focus")]:this.mergedFocus,["".concat(x,"-input--stateful")]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},h$1("div",{class:"".concat(x,"-input-wrapper")},resolveWrappedSlot(E.prefix,P=>P&&h$1("div",{class:"".concat(x,"-input__prefix")},P)),A==="textarea"?h$1(NScrollbar$1,{ref:"textareaScrollbarInstRef",class:"".concat(x,"-input__textarea"),container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var P,B;const{textAreaScrollContainerWidth:k}=this,I={width:this.autosize&&k&&"".concat(k,"px")};return h$1(Fragment,null,h$1("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:["".concat(x,"-input__textarea-el"),(P=this.inputProps)===null||P===void 0?void 0:P.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:S?void 0:this.maxlength,minlength:S?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(B=this.inputProps)===null||B===void 0?void 0:B.style,I],onBlur:this.handleInputBlur,onFocus:R=>{this.handleInputFocus(R,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?h$1("div",{class:"".concat(x,"-input__placeholder"),style:[this.placeholderStyle,I],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?h$1(VResizeObserver,{onResize:this.handleTextAreaMirrorResize},{default:()=>h$1("div",{ref:"textareaMirrorElRef",class:"".concat(x,"-input__textarea-mirror"),key:"mirror"})}):null)}}):h$1("div",{class:"".concat(x,"-input__input")},h$1("input",Object.assign({type:A==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":A},this.inputProps,{ref:"inputElRef",class:["".concat(x,"-input__input-el"),(d=this.inputProps)===null||d===void 0?void 0:d.class],style:[this.textDecorationStyle[0],(b=this.inputProps)===null||b===void 0?void 0:b.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:S?void 0:this.maxlength,minlength:S?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:P=>{this.handleInputFocus(P,0)},onInput:P=>{this.handleInput(P,0)},onChange:P=>{this.handleChange(P,0)}})),this.showPlaceholder1?h$1("div",{class:"".concat(x,"-input__placeholder")},h$1("span",null,this.mergedPlaceholder[0])):null,this.autosize?h$1("div",{class:"".concat(x,"-input__input-mirror"),key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&resolveWrappedSlot(E.suffix,P=>P||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?h$1("div",{class:"".concat(x,"-input__suffix")},[resolveWrappedSlot(E["clear-icon-placeholder"],B=>(this.clearable||B)&&h$1(NBaseClear,{clsPrefix:x,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>B,icon:()=>{var k,I;return(I=(k=this.$slots)["clear-icon"])===null||I===void 0?void 0:I.call(k)}})),this.internalLoadingBeforeSuffix?null:P,this.loading!==void 0?h$1(NBaseSuffix,{clsPrefix:x,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?P:null,this.showCount&&this.type!=="textarea"?h$1(WordCount,null,{default:B=>{var k;return(k=E.count)===null||k===void 0?void 0:k.call(E,B)}}):null,this.mergedShowPasswordOn&&this.type==="password"?h$1("div",{class:"".concat(x,"-input__eye"),onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?resolveSlot(E["password-visible-icon"],()=>[h$1(NBaseIcon,{clsPrefix:x},{default:()=>h$1(EyeIcon,null)})]):resolveSlot(E["password-invisible-icon"],()=>[h$1(NBaseIcon,{clsPrefix:x},{default:()=>h$1(EyeOffIcon,null)})])):null]):null)),this.pair?h$1("span",{class:"".concat(x,"-input__separator")},resolveSlot(E.separator,()=>[this.separator])):null,this.pair?h$1("div",{class:"".concat(x,"-input-wrapper")},h$1("div",{class:"".concat(x,"-input__input")},h$1("input",{ref:"inputEl2Ref",type:this.type,class:"".concat(x,"-input__input-el"),tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:S?void 0:this.maxlength,minlength:S?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:P=>{this.handleInputFocus(P,1)},onInput:P=>{this.handleInput(P,1)},onChange:P=>{this.handleChange(P,1)}}),this.showPlaceholder2?h$1("div",{class:"".concat(x,"-input__placeholder")},h$1("span",null,this.mergedPlaceholder[1])):null),resolveWrappedSlot(E.suffix,P=>(this.clearable||P)&&h$1("div",{class:"".concat(x,"-input__suffix")},[this.clearable&&h$1(NBaseClear,{clsPrefix:x,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var B;return(B=E["clear-icon"])===null||B===void 0?void 0:B.call(E)},placeholder:()=>{var B;return(B=E["clear-icon-placeholder"])===null||B===void 0?void 0:B.call(E)}}),P]))):null,this.mergedBordered?h$1("div",{class:"".concat(x,"-input__border")}):null,this.mergedBordered?h$1("div",{class:"".concat(x,"-input__state-border")}):null,this.showCount&&A==="textarea"?h$1(WordCount,null,{default:P=>{var B;const{renderCount:k}=this;return k?k(P):(B=E.count)===null||B===void 0?void 0:B.call(E,P)}}):null)}});function self$M(d){const{boxShadow2:b}=d;return{menuBoxShadow:b}}const autoCompleteDark={name:"AutoComplete",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,Input:inputDark$1},self:self$M},autoCompleteDark$1=autoCompleteDark,self$L=d=>{const{borderRadius:b,avatarColor:x,cardColor:C,fontSize:w,heightTiny:A,heightSmall:S,heightMedium:$,heightLarge:E,heightHuge:P,modalColor:B,popoverColor:k}=d;return{borderRadius:b,fontSize:w,border:"2px solid ".concat(C),heightTiny:A,heightSmall:S,heightMedium:$,heightLarge:E,heightHuge:P,color:composite(C,x),colorModal:composite(B,x),colorPopover:composite(k,x)}},avatarDark={name:"Avatar",common:commonDark,self:self$L},avatarDark$1=avatarDark,self$K=()=>({gap:"-12px"}),avatarGroupDark={name:"AvatarGroup",common:commonDark,peers:{Avatar:avatarDark$1},self:self$K},avatarGroupDark$1=avatarGroupDark,commonVariables$h={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},backTopDark={name:"BackTop",common:commonDark,self(d){const{popoverColor:b,textColor2:x,primaryColorHover:C,primaryColorPressed:w}=d;return Object.assign(Object.assign({},commonVariables$h),{color:b,textColor:x,iconColor:x,iconColorHover:C,iconColorPressed:w,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},backTopDark$1=backTopDark,badgeDark={name:"Badge",common:commonDark,self(d){const{errorColorSuppl:b,infoColorSuppl:x,successColorSuppl:C,warningColorSuppl:w,fontFamily:A}=d;return{color:b,colorInfo:x,colorSuccess:C,colorError:b,colorWarning:w,fontSize:"12px",fontFamily:A}}},badgeDark$1=badgeDark,commonVariables$g={fontWeightActive:"400"},self$J=d=>{const{fontSize:b,textColor3:x,textColor2:C,borderRadius:w,buttonColor2Hover:A,buttonColor2Pressed:S}=d;return Object.assign(Object.assign({},commonVariables$g),{fontSize:b,itemLineHeight:"1.25",itemTextColor:x,itemTextColorHover:C,itemTextColorPressed:C,itemTextColorActive:C,itemBorderRadius:w,itemColorHover:A,itemColorPressed:S,separatorColor:x})},breadcrumbDark={name:"Breadcrumb",common:commonDark,self:self$J},breadcrumbDark$1=breadcrumbDark;function createHoverColor(d){return composite(d,[255,255,255,.16])}function createPressedColor(d){return composite(d,[0,0,0,.12])}const buttonGroupInjectionKey="n-button-group",commonVariables$f={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},self$I=d=>{const{heightTiny:b,heightSmall:x,heightMedium:C,heightLarge:w,borderRadius:A,fontSizeTiny:S,fontSizeSmall:$,fontSizeMedium:E,fontSizeLarge:P,opacityDisabled:B,textColor2:k,textColor3:I,primaryColorHover:R,primaryColorPressed:F,borderColor:L,primaryColor:z,baseColor:V,infoColor:U,infoColorHover:Q,infoColorPressed:W,successColor:G,successColorHover:q,successColorPressed:K,warningColor:X,warningColorHover:J,warningColorPressed:oe,errorColor:he,errorColorHover:Z,errorColorPressed:ce,fontWeight:fe,buttonColor2:me,buttonColor2Hover:ne,buttonColor2Pressed:te,fontWeightStrong:de}=d;return Object.assign(Object.assign({},commonVariables$f),{heightTiny:b,heightSmall:x,heightMedium:C,heightLarge:w,borderRadiusTiny:A,borderRadiusSmall:A,borderRadiusMedium:A,borderRadiusLarge:A,fontSizeTiny:S,fontSizeSmall:$,fontSizeMedium:E,fontSizeLarge:P,opacityDisabled:B,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:me,colorSecondaryHover:ne,colorSecondaryPressed:te,colorTertiary:me,colorTertiaryHover:ne,colorTertiaryPressed:te,colorQuaternary:"#0000",colorQuaternaryHover:ne,colorQuaternaryPressed:te,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:k,textColorTertiary:I,textColorHover:R,textColorPressed:F,textColorFocus:R,textColorDisabled:k,textColorText:k,textColorTextHover:R,textColorTextPressed:F,textColorTextFocus:R,textColorTextDisabled:k,textColorGhost:k,textColorGhostHover:R,textColorGhostPressed:F,textColorGhostFocus:R,textColorGhostDisabled:k,border:"1px solid ".concat(L),borderHover:"1px solid ".concat(R),borderPressed:"1px solid ".concat(F),borderFocus:"1px solid ".concat(R),borderDisabled:"1px solid ".concat(L),rippleColor:z,colorPrimary:z,colorHoverPrimary:R,colorPressedPrimary:F,colorFocusPrimary:R,colorDisabledPrimary:z,textColorPrimary:V,textColorHoverPrimary:V,textColorPressedPrimary:V,textColorFocusPrimary:V,textColorDisabledPrimary:V,textColorTextPrimary:z,textColorTextHoverPrimary:R,textColorTextPressedPrimary:F,textColorTextFocusPrimary:R,textColorTextDisabledPrimary:k,textColorGhostPrimary:z,textColorGhostHoverPrimary:R,textColorGhostPressedPrimary:F,textColorGhostFocusPrimary:R,textColorGhostDisabledPrimary:z,borderPrimary:"1px solid ".concat(z),borderHoverPrimary:"1px solid ".concat(R),borderPressedPrimary:"1px solid ".concat(F),borderFocusPrimary:"1px solid ".concat(R),borderDisabledPrimary:"1px solid ".concat(z),rippleColorPrimary:z,colorInfo:U,colorHoverInfo:Q,colorPressedInfo:W,colorFocusInfo:Q,colorDisabledInfo:U,textColorInfo:V,textColorHoverInfo:V,textColorPressedInfo:V,textColorFocusInfo:V,textColorDisabledInfo:V,textColorTextInfo:U,textColorTextHoverInfo:Q,textColorTextPressedInfo:W,textColorTextFocusInfo:Q,textColorTextDisabledInfo:k,textColorGhostInfo:U,textColorGhostHoverInfo:Q,textColorGhostPressedInfo:W,textColorGhostFocusInfo:Q,textColorGhostDisabledInfo:U,borderInfo:"1px solid ".concat(U),borderHoverInfo:"1px solid ".concat(Q),borderPressedInfo:"1px solid ".concat(W),borderFocusInfo:"1px solid ".concat(Q),borderDisabledInfo:"1px solid ".concat(U),rippleColorInfo:U,colorSuccess:G,colorHoverSuccess:q,colorPressedSuccess:K,colorFocusSuccess:q,colorDisabledSuccess:G,textColorSuccess:V,textColorHoverSuccess:V,textColorPressedSuccess:V,textColorFocusSuccess:V,textColorDisabledSuccess:V,textColorTextSuccess:G,textColorTextHoverSuccess:q,textColorTextPressedSuccess:K,textColorTextFocusSuccess:q,textColorTextDisabledSuccess:k,textColorGhostSuccess:G,textColorGhostHoverSuccess:q,textColorGhostPressedSuccess:K,textColorGhostFocusSuccess:q,textColorGhostDisabledSuccess:G,borderSuccess:"1px solid ".concat(G),borderHoverSuccess:"1px solid ".concat(q),borderPressedSuccess:"1px solid ".concat(K),borderFocusSuccess:"1px solid ".concat(q),borderDisabledSuccess:"1px solid ".concat(G),rippleColorSuccess:G,colorWarning:X,colorHoverWarning:J,colorPressedWarning:oe,colorFocusWarning:J,colorDisabledWarning:X,textColorWarning:V,textColorHoverWarning:V,textColorPressedWarning:V,textColorFocusWarning:V,textColorDisabledWarning:V,textColorTextWarning:X,textColorTextHoverWarning:J,textColorTextPressedWarning:oe,textColorTextFocusWarning:J,textColorTextDisabledWarning:k,textColorGhostWarning:X,textColorGhostHoverWarning:J,textColorGhostPressedWarning:oe,textColorGhostFocusWarning:J,textColorGhostDisabledWarning:X,borderWarning:"1px solid ".concat(X),borderHoverWarning:"1px solid ".concat(J),borderPressedWarning:"1px solid ".concat(oe),borderFocusWarning:"1px solid ".concat(J),borderDisabledWarning:"1px solid ".concat(X),rippleColorWarning:X,colorError:he,colorHoverError:Z,colorPressedError:ce,colorFocusError:Z,colorDisabledError:he,textColorError:V,textColorHoverError:V,textColorPressedError:V,textColorFocusError:V,textColorDisabledError:V,textColorTextError:he,textColorTextHoverError:Z,textColorTextPressedError:ce,textColorTextFocusError:Z,textColorTextDisabledError:k,textColorGhostError:he,textColorGhostHoverError:Z,textColorGhostPressedError:ce,textColorGhostFocusError:Z,textColorGhostDisabledError:he,borderError:"1px solid ".concat(he),borderHoverError:"1px solid ".concat(Z),borderPressedError:"1px solid ".concat(ce),borderFocusError:"1px solid ".concat(Z),borderDisabledError:"1px solid ".concat(he),rippleColorError:he,waveOpacity:"0.6",fontWeight:fe,fontWeightStrong:de})},buttonLight={name:"Button",common:commonLight,self:self$I},buttonLight$1=buttonLight,buttonDark={name:"Button",common:commonDark,self(d){const b=self$I(d);return b.waveOpacity="0.8",b.colorOpacitySecondary="0.16",b.colorOpacitySecondaryHover="0.2",b.colorOpacitySecondaryPressed="0.12",b}},buttonDark$1=buttonDark,style$e=c$3([cB("button","\n margin: 0;\n font-weight: var(--n-font-weight);\n line-height: 1;\n font-family: inherit;\n padding: var(--n-padding);\n height: var(--n-height);\n font-size: var(--n-font-size);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n width: var(--n-width);\n white-space: nowrap;\n outline: none;\n position: relative;\n z-index: auto;\n border: none;\n display: inline-flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n user-select: none;\n -webkit-user-select: none;\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[cM("color",[cE("border",{borderColor:"var(--n-border-color)"}),cM("disabled",[cE("border",{borderColor:"var(--n-border-color-disabled)"})]),cNotM("disabled",[c$3("&:focus",[cE("state-border",{borderColor:"var(--n-border-color-focus)"})]),c$3("&:hover",[cE("state-border",{borderColor:"var(--n-border-color-hover)"})]),c$3("&:active",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})]),cM("pressed",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),cM("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[cE("border",{border:"var(--n-border-disabled)"})]),cNotM("disabled",[c$3("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[cE("state-border",{border:"var(--n-border-focus)"})]),c$3("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[cE("state-border",{border:"var(--n-border-hover)"})]),c$3("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})]),cM("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})])]),cM("loading","cursor: wait;"),cB("base-wave","\n pointer-events: none;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n animation-iteration-count: 1;\n animation-duration: var(--n-ripple-duration);\n animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);\n ",[cM("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),isBrowser$2&&"MozBoxSizing"in document.createElement("div").style?c$3("&::moz-focus-inner",{border:0}):null,cE("border, state-border","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n transition: border-color .3s var(--n-bezier);\n pointer-events: none;\n "),cE("border",{border:"var(--n-border)"}),cE("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),cE("icon","\n margin: var(--n-icon-margin);\n margin-left: 0;\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n max-width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n position: relative;\n flex-shrink: 0;\n ",[cB("icon-slot","\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n ",[iconSwitchTransition({top:"50%",originalTransform:"translateY(-50%)"})]),fadeInWidthExpandTransition()]),cE("content","\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n min-width: 0;\n ",[c$3("~",[cE("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),cM("block","\n display: flex;\n width: 100%;\n "),cM("dashed",[cE("border, state-border",{borderStyle:"dashed !important"})]),cM("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),c$3("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),c$3("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),buttonProps=Object.assign(Object.assign({},useTheme.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!isSafari}}),Button=defineComponent({name:"Button",props:buttonProps,setup(d){const b=ref(null),x=ref(null),C=ref(!1),w=useMemo(()=>!d.quaternary&&!d.tertiary&&!d.secondary&&!d.text&&(!d.color||d.ghost||d.dashed)&&d.bordered),A=inject(buttonGroupInjectionKey,{}),{mergedSizeRef:S}=useFormItem({},{defaultSize:"medium",mergedSize:W=>{const{size:G}=d;if(G)return G;const{size:q}=A;if(q)return q;const{mergedSize:K}=W||{};return K?K.value:"medium"}}),$=computed(()=>d.focusable&&!d.disabled),E=W=>{var G;$.value||W.preventDefault(),!d.nativeFocusBehavior&&(W.preventDefault(),!d.disabled&&$.value&&((G=b.value)===null||G===void 0||G.focus({preventScroll:!0})))},P=W=>{var G;if(!d.disabled&&!d.loading){const{onClick:q}=d;q&&call$1(q,W),d.text||(G=x.value)===null||G===void 0||G.play()}},B=W=>{switch(W.key){case"Enter":if(!d.keyboard)return;C.value=!1}},k=W=>{switch(W.key){case"Enter":if(!d.keyboard||d.loading){W.preventDefault();return}C.value=!0}},I=()=>{C.value=!1},{inlineThemeDisabled:R,mergedClsPrefixRef:F,mergedRtlRef:L}=useConfig(d),z=useTheme("Button","-button",style$e,buttonLight$1,d,F),V=useRtl("Button",L,F),U=computed(()=>{const W=z.value,{common:{cubicBezierEaseInOut:G,cubicBezierEaseOut:q},self:K}=W,{rippleDuration:X,opacityDisabled:J,fontWeight:oe,fontWeightStrong:he}=K,Z=S.value,{dashed:ce,type:fe,ghost:me,text:ne,color:te,round:de,circle:le,textColor:be,secondary:Le,tertiary:Qe,quaternary:rt,strong:ht}=d,ct={"font-weight":ht?he:oe};let it={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const Be=fe==="tertiary",Ie=fe==="default",Fe=Be?"default":fe;if(ne){const Ae=be||te;it={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":Ae||K[createKey("textColorText",Fe)],"--n-text-color-hover":Ae?createHoverColor(Ae):K[createKey("textColorTextHover",Fe)],"--n-text-color-pressed":Ae?createPressedColor(Ae):K[createKey("textColorTextPressed",Fe)],"--n-text-color-focus":Ae?createHoverColor(Ae):K[createKey("textColorTextHover",Fe)],"--n-text-color-disabled":Ae||K[createKey("textColorTextDisabled",Fe)]}}else if(me||ce){const Ae=be||te;it={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":te||K[createKey("rippleColor",Fe)],"--n-text-color":Ae||K[createKey("textColorGhost",Fe)],"--n-text-color-hover":Ae?createHoverColor(Ae):K[createKey("textColorGhostHover",Fe)],"--n-text-color-pressed":Ae?createPressedColor(Ae):K[createKey("textColorGhostPressed",Fe)],"--n-text-color-focus":Ae?createHoverColor(Ae):K[createKey("textColorGhostHover",Fe)],"--n-text-color-disabled":Ae||K[createKey("textColorGhostDisabled",Fe)]}}else if(Le){const Ae=Ie?K.textColor:Be?K.textColorTertiary:K[createKey("color",Fe)],ve=te||Ae,De=fe!=="default"&&fe!=="tertiary";it={"--n-color":De?changeColor(ve,{alpha:Number(K.colorOpacitySecondary)}):K.colorSecondary,"--n-color-hover":De?changeColor(ve,{alpha:Number(K.colorOpacitySecondaryHover)}):K.colorSecondaryHover,"--n-color-pressed":De?changeColor(ve,{alpha:Number(K.colorOpacitySecondaryPressed)}):K.colorSecondaryPressed,"--n-color-focus":De?changeColor(ve,{alpha:Number(K.colorOpacitySecondaryHover)}):K.colorSecondaryHover,"--n-color-disabled":K.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ve,"--n-text-color-hover":ve,"--n-text-color-pressed":ve,"--n-text-color-focus":ve,"--n-text-color-disabled":ve}}else if(Qe||rt){const Ae=Ie?K.textColor:Be?K.textColorTertiary:K[createKey("color",Fe)],ve=te||Ae;Qe?(it["--n-color"]=K.colorTertiary,it["--n-color-hover"]=K.colorTertiaryHover,it["--n-color-pressed"]=K.colorTertiaryPressed,it["--n-color-focus"]=K.colorSecondaryHover,it["--n-color-disabled"]=K.colorTertiary):(it["--n-color"]=K.colorQuaternary,it["--n-color-hover"]=K.colorQuaternaryHover,it["--n-color-pressed"]=K.colorQuaternaryPressed,it["--n-color-focus"]=K.colorQuaternaryHover,it["--n-color-disabled"]=K.colorQuaternary),it["--n-ripple-color"]="#0000",it["--n-text-color"]=ve,it["--n-text-color-hover"]=ve,it["--n-text-color-pressed"]=ve,it["--n-text-color-focus"]=ve,it["--n-text-color-disabled"]=ve}else it={"--n-color":te||K[createKey("color",Fe)],"--n-color-hover":te?createHoverColor(te):K[createKey("colorHover",Fe)],"--n-color-pressed":te?createPressedColor(te):K[createKey("colorPressed",Fe)],"--n-color-focus":te?createHoverColor(te):K[createKey("colorFocus",Fe)],"--n-color-disabled":te||K[createKey("colorDisabled",Fe)],"--n-ripple-color":te||K[createKey("rippleColor",Fe)],"--n-text-color":be||(te?K.textColorPrimary:Be?K.textColorTertiary:K[createKey("textColor",Fe)]),"--n-text-color-hover":be||(te?K.textColorHoverPrimary:K[createKey("textColorHover",Fe)]),"--n-text-color-pressed":be||(te?K.textColorPressedPrimary:K[createKey("textColorPressed",Fe)]),"--n-text-color-focus":be||(te?K.textColorFocusPrimary:K[createKey("textColorFocus",Fe)]),"--n-text-color-disabled":be||(te?K.textColorDisabledPrimary:K[createKey("textColorDisabled",Fe)])};let ie={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};ne?ie={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ie={"--n-border":K[createKey("border",Fe)],"--n-border-hover":K[createKey("borderHover",Fe)],"--n-border-pressed":K[createKey("borderPressed",Fe)],"--n-border-focus":K[createKey("borderFocus",Fe)],"--n-border-disabled":K[createKey("borderDisabled",Fe)]};const{[createKey("height",Z)]:$e,[createKey("fontSize",Z)]:re,[createKey("padding",Z)]:se,[createKey("paddingRound",Z)]:Ce,[createKey("iconSize",Z)]:Ne,[createKey("borderRadius",Z)]:we,[createKey("iconMargin",Z)]:ge,waveOpacity:Ee}=K,ke={"--n-width":le&&!ne?$e:"initial","--n-height":ne?"initial":$e,"--n-font-size":re,"--n-padding":le||ne?"initial":de?Ce:se,"--n-icon-size":Ne,"--n-icon-margin":ge,"--n-border-radius":ne?"initial":le||de?$e:we};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":G,"--n-bezier-ease-out":q,"--n-ripple-duration":X,"--n-opacity-disabled":J,"--n-wave-opacity":Ee},ct),it),ie),ke)}),Q=R?useThemeClass("button",computed(()=>{let W="";const{dashed:G,type:q,ghost:K,text:X,color:J,round:oe,circle:he,textColor:Z,secondary:ce,tertiary:fe,quaternary:me,strong:ne}=d;G&&(W+="a"),K&&(W+="b"),X&&(W+="c"),oe&&(W+="d"),he&&(W+="e"),ce&&(W+="f"),fe&&(W+="g"),me&&(W+="h"),ne&&(W+="i"),J&&(W+="j"+color2Class(J)),Z&&(W+="k"+color2Class(Z));const{value:te}=S;return W+="l"+te[0],W+="m"+q[0],W}),U,d):void 0;return{selfElRef:b,waveElRef:x,mergedClsPrefix:F,mergedFocusable:$,mergedSize:S,showBorder:w,enterPressed:C,rtlEnabled:V,handleMousedown:E,handleKeydown:k,handleBlur:I,handleKeyup:B,handleClick:P,customColorCssVars:computed(()=>{const{color:W}=d;if(!W)return null;const G=createHoverColor(W);return{"--n-border-color":W,"--n-border-color-hover":G,"--n-border-color-pressed":createPressedColor(W),"--n-border-color-focus":G,"--n-border-color-disabled":W}}),cssVars:R?void 0:U,themeClass:Q==null?void 0:Q.themeClass,onRender:Q==null?void 0:Q.onRender}},render(){const{mergedClsPrefix:d,tag:b,onRender:x}=this;x==null||x();const C=resolveWrappedSlot(this.$slots.default,w=>w&&h$1("span",{class:"".concat(d,"-button__content")},w));return h$1(b,{ref:"selfElRef",class:[this.themeClass,"".concat(d,"-button"),"".concat(d,"-button--").concat(this.type,"-type"),"".concat(d,"-button--").concat(this.mergedSize,"-type"),this.rtlEnabled&&"".concat(d,"-button--rtl"),this.disabled&&"".concat(d,"-button--disabled"),this.block&&"".concat(d,"-button--block"),this.enterPressed&&"".concat(d,"-button--pressed"),!this.text&&this.dashed&&"".concat(d,"-button--dashed"),this.color&&"".concat(d,"-button--color"),this.secondary&&"".concat(d,"-button--secondary"),this.loading&&"".concat(d,"-button--loading"),this.ghost&&"".concat(d,"-button--ghost")],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&C,h$1(NFadeInExpandTransition,{width:!0},{default:()=>resolveWrappedSlot(this.$slots.icon,w=>(this.loading||this.renderIcon||w)&&h$1("span",{class:"".concat(d,"-button__icon"),style:{margin:isSlotEmpty(this.$slots.default)?"0":""}},h$1(NIconSwitchTransition,null,{default:()=>this.loading?h$1(NBaseLoading,{clsPrefix:d,key:"loading",class:"".concat(d,"-icon-slot"),strokeWidth:20}):h$1("div",{key:"icon",class:"".concat(d,"-icon-slot"),role:"none"},this.renderIcon?this.renderIcon():w)})))}),this.iconPlacement==="left"&&C,this.text?null:h$1(NBaseWave,{ref:"waveElRef",clsPrefix:d}),this.showBorder?h$1("div",{"aria-hidden":!0,class:"".concat(d,"-button__border"),style:this.customColorCssVars}):null,this.showBorder?h$1("div",{"aria-hidden":!0,class:"".concat(d,"-button__state-border"),style:this.customColorCssVars}):null)}}),NButton=Button,XButton=Button,commonVariables$e={titleFontSize:"22px"},self$H=d=>{const{borderRadius:b,fontSize:x,lineHeight:C,textColor2:w,textColor1:A,textColorDisabled:S,dividerColor:$,fontWeightStrong:E,primaryColor:P,baseColor:B,hoverColor:k,cardColor:I,modalColor:R,popoverColor:F}=d;return Object.assign(Object.assign({},commonVariables$e),{borderRadius:b,borderColor:composite(I,$),borderColorModal:composite(R,$),borderColorPopover:composite(F,$),textColor:w,titleFontWeight:E,titleTextColor:A,dayTextColor:S,fontSize:x,lineHeight:C,dateColorCurrent:P,dateTextColorCurrent:B,cellColorHover:composite(I,k),cellColorHoverModal:composite(R,k),cellColorHoverPopover:composite(F,k),cellColor:I,cellColorModal:R,cellColorPopover:F,barColor:P})},calendarDark={name:"Calendar",common:commonDark,peers:{Button:buttonDark$1},self:self$H},calendarDark$1=calendarDark,self$G=d=>{const{fontSize:b,boxShadow2:x,popoverColor:C,textColor2:w,borderRadius:A,borderColor:S,heightSmall:$,heightMedium:E,heightLarge:P,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:I,dividerColor:R}=d;return{panelFontSize:b,boxShadow:x,color:C,textColor:w,borderRadius:A,border:"1px solid ".concat(S),heightSmall:$,heightMedium:E,heightLarge:P,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:I,dividerColor:R}},colorPickerDark={name:"ColorPicker",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1},self:self$G},colorPickerDark$1=colorPickerDark,commonVariables$d={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},self$F=d=>{const{primaryColor:b,borderRadius:x,lineHeight:C,fontSize:w,cardColor:A,textColor2:S,textColor1:$,dividerColor:E,fontWeightStrong:P,closeIconColor:B,closeIconColorHover:k,closeIconColorPressed:I,closeColorHover:R,closeColorPressed:F,modalColor:L,boxShadow1:z,popoverColor:V,actionColor:U}=d;return Object.assign(Object.assign({},commonVariables$d),{lineHeight:C,color:A,colorModal:L,colorPopover:V,colorTarget:b,colorEmbedded:U,colorEmbeddedModal:U,colorEmbeddedPopover:U,textColor:S,titleTextColor:$,borderColor:E,actionColor:U,titleFontWeight:P,closeColorHover:R,closeColorPressed:F,closeBorderRadius:x,closeIconColor:B,closeIconColorHover:k,closeIconColorPressed:I,fontSizeSmall:w,fontSizeMedium:w,fontSizeLarge:w,fontSizeHuge:w,boxShadow:z,borderRadius:x})},cardLight={name:"Card",common:commonLight,self:self$F},cardLight$1=cardLight,cardDark={name:"Card",common:commonDark,self(d){const b=self$F(d),{cardColor:x,modalColor:C,popoverColor:w}=d;return b.colorEmbedded=x,b.colorEmbeddedModal=C,b.colorEmbeddedPopover=w,b}},cardDark$1=cardDark,style$d=c$3([cB("card","\n font-size: var(--n-font-size);\n line-height: var(--n-line-height);\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n position: relative;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n color: var(--n-text-color);\n word-break: break-word;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[asModal({background:"var(--n-color-modal)"}),cM("hoverable",[c$3("&:hover","box-shadow: var(--n-box-shadow);")]),cM("content-segmented",[c$3(">",[cE("content",{paddingTop:"var(--n-padding-bottom)"})])]),cM("content-soft-segmented",[c$3(">",[cE("content","\n margin: 0 var(--n-padding-left);\n padding: var(--n-padding-bottom) 0;\n ")])]),cM("footer-segmented",[c$3(">",[cE("footer",{paddingTop:"var(--n-padding-bottom)"})])]),cM("footer-soft-segmented",[c$3(">",[cE("footer","\n padding: var(--n-padding-bottom) 0;\n margin: 0 var(--n-padding-left);\n ")])]),c$3(">",[cB("card-header","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n font-size: var(--n-title-font-size);\n padding:\n var(--n-padding-top)\n var(--n-padding-left)\n var(--n-padding-bottom)\n var(--n-padding-left);\n ",[cE("main","\n font-weight: var(--n-title-font-weight);\n transition: color .3s var(--n-bezier);\n flex: 1;\n min-width: 0;\n color: var(--n-title-text-color);\n "),cE("extra","\n display: flex;\n align-items: center;\n font-size: var(--n-font-size);\n font-weight: 400;\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),cE("close","\n margin: 0 0 0 8px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),cE("action","\n box-sizing: border-box;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n background-clip: padding-box;\n background-color: var(--n-action-color);\n "),cE("content","flex: 1; min-width: 0;"),cE("content, footer","\n box-sizing: border-box;\n padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);\n font-size: var(--n-font-size);\n ",[c$3("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),cE("action","\n background-color: var(--n-action-color);\n padding: var(--n-padding-bottom) var(--n-padding-left);\n border-bottom-left-radius: var(--n-border-radius);\n border-bottom-right-radius: var(--n-border-radius);\n ")]),cB("card-cover","\n overflow: hidden;\n width: 100%;\n border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;\n ",[c$3("img","\n display: block;\n width: 100%;\n ")]),cM("bordered","\n border: 1px solid var(--n-border-color);\n ",[c$3("&:target","border-color: var(--n-color-target);")]),cM("action-segmented",[c$3(">",[cE("action",[c$3("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("content-segmented, content-soft-segmented",[c$3(">",[cE("content",{transition:"border-color 0.3s var(--n-bezier)"},[c$3("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("footer-segmented, footer-soft-segmented",[c$3(">",[cE("footer",{transition:"border-color 0.3s var(--n-bezier)"},[c$3("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("embedded","\n background-color: var(--n-color-embedded);\n ")]),insideModal(cB("card","\n background: var(--n-color-modal);\n ",[cM("embedded","\n background-color: var(--n-color-embedded-modal);\n ")])),insidePopover(cB("card","\n background: var(--n-color-popover);\n ",[cM("embedded","\n background-color: var(--n-color-embedded-popover);\n ")]))]),cardBaseProps={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},cardBasePropKeys=keysOf(cardBaseProps),cardProps=Object.assign(Object.assign({},useTheme.props),cardBaseProps),NCard=defineComponent({name:"Card",props:cardProps,setup(d){const b=()=>{const{onClose:P}=d;P&&call$1(P)},{inlineThemeDisabled:x,mergedClsPrefixRef:C,mergedRtlRef:w}=useConfig(d),A=useTheme("Card","-card",style$d,cardLight$1,d,C),S=useRtl("Card",w,C),$=computed(()=>{const{size:P}=d,{self:{color:B,colorModal:k,colorTarget:I,textColor:R,titleTextColor:F,titleFontWeight:L,borderColor:z,actionColor:V,borderRadius:U,lineHeight:Q,closeIconColor:W,closeIconColorHover:G,closeIconColorPressed:q,closeColorHover:K,closeColorPressed:X,closeBorderRadius:J,closeIconSize:oe,closeSize:he,boxShadow:Z,colorPopover:ce,colorEmbedded:fe,colorEmbeddedModal:me,colorEmbeddedPopover:ne,[createKey("padding",P)]:te,[createKey("fontSize",P)]:de,[createKey("titleFontSize",P)]:le},common:{cubicBezierEaseInOut:be}}=A.value,{top:Le,left:Qe,bottom:rt}=getMargin(te);return{"--n-bezier":be,"--n-border-radius":U,"--n-color":B,"--n-color-modal":k,"--n-color-popover":ce,"--n-color-embedded":fe,"--n-color-embedded-modal":me,"--n-color-embedded-popover":ne,"--n-color-target":I,"--n-text-color":R,"--n-line-height":Q,"--n-action-color":V,"--n-title-text-color":F,"--n-title-font-weight":L,"--n-close-icon-color":W,"--n-close-icon-color-hover":G,"--n-close-icon-color-pressed":q,"--n-close-color-hover":K,"--n-close-color-pressed":X,"--n-border-color":z,"--n-box-shadow":Z,"--n-padding-top":Le,"--n-padding-bottom":rt,"--n-padding-left":Qe,"--n-font-size":de,"--n-title-font-size":le,"--n-close-size":he,"--n-close-icon-size":oe,"--n-close-border-radius":J}}),E=x?useThemeClass("card",computed(()=>d.size[0]),$,d):void 0;return{rtlEnabled:S,mergedClsPrefix:C,mergedTheme:A,handleCloseClick:b,cssVars:x?void 0:$,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const{segmented:d,bordered:b,hoverable:x,mergedClsPrefix:C,rtlEnabled:w,onRender:A,embedded:S,tag:$,$slots:E}=this;return A==null||A(),h$1($,{class:["".concat(C,"-card"),this.themeClass,S&&"".concat(C,"-card--embedded"),{["".concat(C,"-card--rtl")]:w,["".concat(C,"-card--content").concat(typeof d!="boolean"&&d.content==="soft"?"-soft":"","-segmented")]:d===!0||d!==!1&&d.content,["".concat(C,"-card--footer").concat(typeof d!="boolean"&&d.footer==="soft"?"-soft":"","-segmented")]:d===!0||d!==!1&&d.footer,["".concat(C,"-card--action-segmented")]:d===!0||d!==!1&&d.action,["".concat(C,"-card--bordered")]:b,["".concat(C,"-card--hoverable")]:x}],style:this.cssVars,role:this.role},resolveWrappedSlot(E.cover,P=>P&&h$1("div",{class:"".concat(C,"-card-cover"),role:"none"},P)),resolveWrappedSlot(E.header,P=>P||this.title||this.closable?h$1("div",{class:"".concat(C,"-card-header"),style:this.headerStyle},h$1("div",{class:"".concat(C,"-card-header__main"),role:"heading"},P||this.title),resolveWrappedSlot(E["header-extra"],B=>B&&h$1("div",{class:"".concat(C,"-card-header__extra"),style:this.headerExtraStyle},B)),this.closable?h$1(NBaseClose,{clsPrefix:C,class:"".concat(C,"-card-header__close"),onClick:this.handleCloseClick,absolute:!0}):null):null),resolveWrappedSlot(E.default,P=>P&&h$1("div",{class:"".concat(C,"-card__content"),style:this.contentStyle,role:"none"},P)),resolveWrappedSlot(E.footer,P=>P&&[h$1("div",{class:"".concat(C,"-card__footer"),style:this.footerStyle,role:"none"},P)]),resolveWrappedSlot(E.action,P=>P&&h$1("div",{class:"".concat(C,"-card__action"),role:"none"},P)))}}),self$E=d=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),carouselDark={name:"Carousel",common:commonDark,self:self$E},carouselDark$1=carouselDark,commonVariables$c={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},self$D=d=>{const{baseColor:b,inputColorDisabled:x,cardColor:C,modalColor:w,popoverColor:A,textColorDisabled:S,borderColor:$,primaryColor:E,textColor2:P,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:I,borderRadiusSmall:R,lineHeight:F}=d;return Object.assign(Object.assign({},commonVariables$c),{labelLineHeight:F,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:I,borderRadius:R,color:b,colorChecked:E,colorDisabled:x,colorDisabledChecked:x,colorTableHeader:C,colorTableHeaderModal:w,colorTableHeaderPopover:A,checkMarkColor:b,checkMarkColorDisabled:S,checkMarkColorDisabledChecked:S,border:"1px solid ".concat($),borderDisabled:"1px solid ".concat($),borderDisabledChecked:"1px solid ".concat($),borderChecked:"1px solid ".concat(E),borderFocus:"1px solid ".concat(E),boxShadowFocus:"0 0 0 2px ".concat(changeColor(E,{alpha:.3})),textColor:P,textColorDisabled:S})},checkboxDark={name:"Checkbox",common:commonDark,self(d){const{cardColor:b}=d,x=self$D(d);return x.color="#0000",x.checkMarkColor=b,x}},checkboxDark$1=checkboxDark,self$C=d=>{const{borderRadius:b,boxShadow2:x,popoverColor:C,textColor2:w,textColor3:A,primaryColor:S,textColorDisabled:$,dividerColor:E,hoverColor:P,fontSizeMedium:B,heightMedium:k}=d;return{menuBorderRadius:b,menuColor:C,menuBoxShadow:x,menuDividerColor:E,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:A,optionHeight:k,optionFontSize:B,optionColorHover:P,optionTextColor:w,optionTextColorActive:S,optionTextColorDisabled:$,optionCheckMarkColor:S,loadingColor:S,columnWidth:"180px"}},cascaderDark={name:"Cascader",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,InternalSelection:internalSelectionDark$1,Scrollbar:scrollbarDark$1,Checkbox:checkboxDark$1,Empty:emptyLight$1},self:self$C},cascaderDark$1=cascaderDark,codeDark={name:"Code",common:commonDark,self(d){const{textColor2:b,fontSize:x,fontWeightStrong:C,textColor3:w}=d;return{textColor:b,fontSize:x,fontWeightStrong:C,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:w}}},codeDark$1=codeDark,self$B=d=>{const{fontWeight:b,textColor1:x,textColor2:C,textColorDisabled:w,dividerColor:A,fontSize:S}=d;return{titleFontSize:S,titleFontWeight:b,dividerColor:A,titleTextColor:x,titleTextColorDisabled:w,fontSize:S,textColor:C,arrowColor:C,arrowColorDisabled:w,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},collapseDark={name:"Collapse",common:commonDark,self:self$B},collapseDark$1=collapseDark,self$A=d=>{const{cubicBezierEaseInOut:b}=d;return{bezier:b}},collapseTransitionDark={name:"CollapseTransition",common:commonDark,self:self$A},collapseTransitionDark$1=collapseTransitionDark,configProviderProps={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(warn$3("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},NConfigProvider=defineComponent({name:"ConfigProvider",alias:["App"],props:configProviderProps,setup(d){const b=inject(configProviderInjectionKey,null),x=computed(()=>{const{theme:F}=d;if(F===null)return;const L=b==null?void 0:b.mergedThemeRef.value;return F===void 0?L:L===void 0?F:Object.assign({},L,F)}),C=computed(()=>{const{themeOverrides:F}=d;if(F!==null){if(F===void 0)return b==null?void 0:b.mergedThemeOverridesRef.value;{const L=b==null?void 0:b.mergedThemeOverridesRef.value;return L===void 0?F:merge$2({},L,F)}}}),w=useMemo(()=>{const{namespace:F}=d;return F===void 0?b==null?void 0:b.mergedNamespaceRef.value:F}),A=useMemo(()=>{const{bordered:F}=d;return F===void 0?b==null?void 0:b.mergedBorderedRef.value:F}),S=computed(()=>{const{icons:F}=d;return F===void 0?b==null?void 0:b.mergedIconsRef.value:F}),$=computed(()=>{const{componentOptions:F}=d;return F!==void 0?F:b==null?void 0:b.mergedComponentPropsRef.value}),E=computed(()=>{const{clsPrefix:F}=d;return F!==void 0?F:b==null?void 0:b.mergedClsPrefixRef.value}),P=computed(()=>{var F;const{rtl:L}=d;if(L===void 0)return b==null?void 0:b.mergedRtlRef.value;const z={};for(const V of L)z[V.name]=markRaw(V),(F=V.peers)===null||F===void 0||F.forEach(U=>{U.name in z||(z[U.name]=markRaw(U))});return z}),B=computed(()=>d.breakpoints||(b==null?void 0:b.mergedBreakpointsRef.value)),k=d.inlineThemeDisabled||(b==null?void 0:b.inlineThemeDisabled),I=d.preflightStyleDisabled||(b==null?void 0:b.preflightStyleDisabled),R=computed(()=>{const{value:F}=x,{value:L}=C,z=L&&Object.keys(L).length!==0,V=F==null?void 0:F.name;return V?z?"".concat(V,"-").concat(murmur2(JSON.stringify(C.value))):V:z?murmur2(JSON.stringify(C.value)):""});return provide(configProviderInjectionKey,{mergedThemeHashRef:R,mergedBreakpointsRef:B,mergedRtlRef:P,mergedIconsRef:S,mergedComponentPropsRef:$,mergedBorderedRef:A,mergedNamespaceRef:w,mergedClsPrefixRef:E,mergedLocaleRef:computed(()=>{const{locale:F}=d;if(F!==null)return F===void 0?b==null?void 0:b.mergedLocaleRef.value:F}),mergedDateLocaleRef:computed(()=>{const{dateLocale:F}=d;if(F!==null)return F===void 0?b==null?void 0:b.mergedDateLocaleRef.value:F}),mergedHljsRef:computed(()=>{const{hljs:F}=d;return F===void 0?b==null?void 0:b.mergedHljsRef.value:F}),mergedKatexRef:computed(()=>{const{katex:F}=d;return F===void 0?b==null?void 0:b.mergedKatexRef.value:F}),mergedThemeRef:x,mergedThemeOverridesRef:C,inlineThemeDisabled:k||!1,preflightStyleDisabled:I||!1}),{mergedClsPrefix:E,mergedBordered:A,mergedNamespace:w,mergedTheme:x,mergedThemeOverrides:C}},render(){var d,b,x,C;return this.abstract?(C=(x=this.$slots).default)===null||C===void 0?void 0:C.call(x):h$1(this.as||this.tag,{class:"".concat(this.mergedClsPrefix||defaultClsPrefix,"-config-provider")},(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d))}}),popselect={name:"Popselect",common:commonDark,peers:{Popover:popoverDark$1,InternalSelectMenu:internalSelectMenuDark$1}},popselectDark=popselect;function self$z(d){const{boxShadow2:b}=d;return{menuBoxShadow:b}}const selectLight={name:"Select",common:commonLight,peers:{InternalSelection:internalSelectionLight$1,InternalSelectMenu:internalSelectMenuLight$1},self:self$z},selectLight$1=selectLight,selectDark={name:"Select",common:commonDark,peers:{InternalSelection:internalSelectionDark$1,InternalSelectMenu:internalSelectMenuDark$1},self:self$z},selectDark$1=selectDark,style$c=c$3([cB("select","\n z-index: auto;\n outline: none;\n width: 100%;\n position: relative;\n "),cB("select-menu","\n margin: 4px 0;\n box-shadow: var(--n-menu-box-shadow);\n ",[fadeInScaleUpTransition({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),selectProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),NSelect=defineComponent({name:"Select",props:selectProps,setup(d){const{mergedClsPrefixRef:b,mergedBorderedRef:x,namespaceRef:C,inlineThemeDisabled:w}=useConfig(d),A=useTheme("Select","-select",style$c,selectLight$1,d,b),S=ref(d.defaultValue),$=toRef$1(d,"value"),E=useMergedState($,S),P=ref(!1),B=ref(""),k=computed(()=>{const{valueField:xe,childrenField:ze}=d,Ze=createTmOptions(xe,ze);return createTreeMate(Z.value,Ze)}),I=computed(()=>createValOptMap(oe.value,d.valueField,d.childrenField)),R=ref(!1),F=useMergedState(toRef$1(d,"show"),R),L=ref(null),z=ref(null),V=ref(null),{localeRef:U}=useLocale("Select"),Q=computed(()=>{var xe;return(xe=d.placeholder)!==null&&xe!==void 0?xe:U.value.placeholder}),W=useCompitable(d,["items","options"]),G=[],q=ref([]),K=ref([]),X=ref(new Map),J=computed(()=>{const{fallbackOption:xe}=d;if(xe===void 0){const{labelField:ze,valueField:Ze}=d;return ut=>({[ze]:String(ut),[Ze]:ut})}return xe===!1?!1:ze=>Object.assign(xe(ze),{value:ze})}),oe=computed(()=>K.value.concat(q.value).concat(W.value)),he=computed(()=>{const{filter:xe}=d;if(xe)return xe;const{labelField:ze,valueField:Ze}=d;return(ut,gt)=>{if(!gt)return!1;const mt=gt[ze];if(typeof mt=="string")return patternMatched(ut,mt);const ye=gt[Ze];return typeof ye=="string"?patternMatched(ut,ye):typeof ye=="number"?patternMatched(ut,String(ye)):!1}}),Z=computed(()=>{if(d.remote)return W.value;{const{value:xe}=oe,{value:ze}=B;return!ze.length||!d.filterable?xe:filterOptions(xe,he.value,ze,d.childrenField)}});function ce(xe){const ze=d.remote,{value:Ze}=X,{value:ut}=I,{value:gt}=J,mt=[];return xe.forEach(ye=>{if(ut.has(ye))mt.push(ut.get(ye));else if(ze&&Ze.has(ye))mt.push(Ze.get(ye));else if(gt){const Oe=gt(ye);Oe&&mt.push(Oe)}}),mt}const fe=computed(()=>{if(d.multiple){const{value:xe}=E;return Array.isArray(xe)?ce(xe):[]}return null}),me=computed(()=>{const{value:xe}=E;return!d.multiple&&!Array.isArray(xe)?xe===null?null:ce([xe])[0]||null:null}),ne=useFormItem(d),{mergedSizeRef:te,mergedDisabledRef:de,mergedStatusRef:le}=ne;function be(xe,ze){const{onChange:Ze,"onUpdate:value":ut,onUpdateValue:gt}=d,{nTriggerFormChange:mt,nTriggerFormInput:ye}=ne;Ze&&call$1(Ze,xe,ze),gt&&call$1(gt,xe,ze),ut&&call$1(ut,xe,ze),S.value=xe,mt(),ye()}function Le(xe){const{onBlur:ze}=d,{nTriggerFormBlur:Ze}=ne;ze&&call$1(ze,xe),Ze()}function Qe(){const{onClear:xe}=d;xe&&call$1(xe)}function rt(xe){const{onFocus:ze,showOnFocus:Ze}=d,{nTriggerFormFocus:ut}=ne;ze&&call$1(ze,xe),ut(),Ze&&Ie()}function ht(xe){const{onSearch:ze}=d;ze&&call$1(ze,xe)}function ct(xe){const{onScroll:ze}=d;ze&&call$1(ze,xe)}function it(){var xe;const{remote:ze,multiple:Ze}=d;if(ze){const{value:ut}=X;if(Ze){const{valueField:gt}=d;(xe=fe.value)===null||xe===void 0||xe.forEach(mt=>{ut.set(mt[gt],mt)})}else{const gt=me.value;gt&&ut.set(gt[d.valueField],gt)}}}function Be(xe){const{onUpdateShow:ze,"onUpdate:show":Ze}=d;ze&&call$1(ze,xe),Ze&&call$1(Ze,xe),R.value=xe}function Ie(){de.value||(Be(!0),R.value=!0,d.filterable&&$t())}function Fe(){Be(!1)}function ie(){B.value="",K.value=G}const $e=ref(!1);function re(){d.filterable&&($e.value=!0)}function se(){d.filterable&&($e.value=!1,F.value||ie())}function Ce(){de.value||(F.value?d.filterable?$t():Fe():Ie())}function Ne(xe){var ze,Ze;!((Ze=(ze=V.value)===null||ze===void 0?void 0:ze.selfRef)===null||Ze===void 0)&&Ze.contains(xe.relatedTarget)||(P.value=!1,Le(xe),Fe())}function we(xe){rt(xe),P.value=!0}function ge(xe){P.value=!0}function Ee(xe){var ze;!((ze=L.value)===null||ze===void 0)&&ze.$el.contains(xe.relatedTarget)||(P.value=!1,Le(xe),Fe())}function ke(){var xe;(xe=L.value)===null||xe===void 0||xe.focus(),Fe()}function Ae(xe){var ze;F.value&&(!((ze=L.value)===null||ze===void 0)&&ze.$el.contains(getPreciseEventTarget(xe))||Fe())}function ve(xe){if(!Array.isArray(xe))return[];if(J.value)return Array.from(xe);{const{remote:ze}=d,{value:Ze}=I;if(ze){const{value:ut}=X;return xe.filter(gt=>Ze.has(gt)||ut.has(gt))}else return xe.filter(ut=>Ze.has(ut))}}function De(xe){We(xe.rawNode)}function We(xe){if(de.value)return;const{tag:ze,remote:Ze,clearFilterAfterSelect:ut,valueField:gt}=d;if(ze&&!Ze){const{value:mt}=K,ye=mt[0]||null;if(ye){const Oe=q.value;Oe.length?Oe.push(ye):q.value=[ye],K.value=G}}if(Ze&&X.value.set(xe[gt],xe),d.multiple){const mt=ve(E.value),ye=mt.findIndex(Oe=>Oe===xe[gt]);if(~ye){if(mt.splice(ye,1),ze&&!Ze){const Oe=Ye(xe[gt]);~Oe&&(q.value.splice(Oe,1),ut&&(B.value=""))}}else mt.push(xe[gt]),ut&&(B.value="");be(mt,ce(mt))}else{if(ze&&!Ze){const mt=Ye(xe[gt]);~mt?q.value=[q.value[mt]]:q.value=G}yt(),Fe(),be(xe[gt],xe)}}function Ye(xe){return q.value.findIndex(Ze=>Ze[d.valueField]===xe)}function Je(xe){F.value||Ie();const{value:ze}=xe.target;B.value=ze;const{tag:Ze,remote:ut}=d;if(ht(ze),Ze&&!ut){if(!ze){K.value=G;return}const{onCreate:gt}=d,mt=gt?gt(ze):{[d.labelField]:ze,[d.valueField]:ze},{valueField:ye}=d;W.value.some(Oe=>Oe[ye]===mt[ye])||q.value.some(Oe=>Oe[ye]===mt[ye])?K.value=G:K.value=[mt]}}function nt(xe){xe.stopPropagation();const{multiple:ze}=d;!ze&&d.filterable&&Fe(),Qe(),ze?be([],[]):be(null,null)}function dt(xe){!happensIn(xe,"action")&&!happensIn(xe,"empty")&&xe.preventDefault()}function Ue(xe){ct(xe)}function lt(xe){var ze,Ze,ut,gt,mt;if(!d.keyboard){xe.preventDefault();return}switch(xe.key){case" ":if(d.filterable)break;xe.preventDefault();case"Enter":if(!(!((ze=L.value)===null||ze===void 0)&&ze.isComposing)){if(F.value){const ye=(Ze=V.value)===null||Ze===void 0?void 0:Ze.getPendingTmNode();ye?De(ye):d.filterable||(Fe(),yt())}else if(Ie(),d.tag&&$e.value){const ye=K.value[0];if(ye){const Oe=ye[d.valueField],{value:Ve}=E;d.multiple&&Array.isArray(Ve)&&Ve.some(He=>He===Oe)||We(ye)}}}xe.preventDefault();break;case"ArrowUp":if(xe.preventDefault(),d.loading)return;F.value&&((ut=V.value)===null||ut===void 0||ut.prev());break;case"ArrowDown":if(xe.preventDefault(),d.loading)return;F.value?(gt=V.value)===null||gt===void 0||gt.next():Ie();break;case"Escape":F.value&&(markEventEffectPerformed(xe),Fe()),(mt=L.value)===null||mt===void 0||mt.focus();break}}function yt(){var xe;(xe=L.value)===null||xe===void 0||xe.focus()}function $t(){var xe;(xe=L.value)===null||xe===void 0||xe.focusInput()}function Mt(){var xe;F.value&&((xe=z.value)===null||xe===void 0||xe.syncPosition())}it(),watch(toRef$1(d,"options"),it);const Lt={focus:()=>{var xe;(xe=L.value)===null||xe===void 0||xe.focus()},blur:()=>{var xe;(xe=L.value)===null||xe===void 0||xe.blur()}},At=computed(()=>{const{self:{menuBoxShadow:xe}}=A.value;return{"--n-menu-box-shadow":xe}}),xt=w?useThemeClass("select",void 0,At,d):void 0;return Object.assign(Object.assign({},Lt),{mergedStatus:le,mergedClsPrefix:b,mergedBordered:x,namespace:C,treeMate:k,isMounted:isMounted(),triggerRef:L,menuRef:V,pattern:B,uncontrolledShow:R,mergedShow:F,adjustedTo:useAdjustedTo(d),uncontrolledValue:S,mergedValue:E,followerRef:z,localizedPlaceholder:Q,selectedOption:me,selectedOptions:fe,mergedSize:te,mergedDisabled:de,focused:P,activeWithoutMenuOpen:$e,inlineThemeDisabled:w,onTriggerInputFocus:re,onTriggerInputBlur:se,handleTriggerOrMenuResize:Mt,handleMenuFocus:ge,handleMenuBlur:Ee,handleMenuTabOut:ke,handleTriggerClick:Ce,handleToggle:De,handleDeleteOption:We,handlePatternInput:Je,handleClear:nt,handleTriggerBlur:Ne,handleTriggerFocus:we,handleKeydown:lt,handleMenuAfterLeave:ie,handleMenuClickOutside:Ae,handleMenuScroll:Ue,handleMenuKeydown:lt,handleMenuMousedown:dt,mergedTheme:A,cssVars:w?void 0:At,themeClass:xt==null?void 0:xt.themeClass,onRender:xt==null?void 0:xt.onRender})},render(){return h$1("div",{class:"".concat(this.mergedClsPrefix,"-select")},h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1(NInternalSelection,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var d,b;return[(b=(d=this.$slots).arrow)===null||b===void 0?void 0:b.call(d)]}})}),h$1(VFollower,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>h$1(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var d,b,x;return this.mergedShow||this.displayDirective==="show"?((d=this.onRender)===null||d===void 0||d.call(this),withDirectives(h$1(NInternalSelectMenu,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:["".concat(this.mergedClsPrefix,"-select-menu"),this.themeClass,(b=this.menuProps)===null||b===void 0?void 0:b.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(x=this.menuProps)===null||x===void 0?void 0:x.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var C,w;return[(w=(C=this.$slots).empty)===null||w===void 0?void 0:w.call(C)]},action:()=>{var C,w;return[(w=(C=this.$slots).action)===null||w===void 0?void 0:w.call(C)]}}),this.displayDirective==="show"?[[vShow,this.mergedShow],[clickoutside$1,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[clickoutside$1,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),commonVariables$b={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},self$y=d=>{const{textColor2:b,primaryColor:x,primaryColorHover:C,primaryColorPressed:w,inputColorDisabled:A,textColorDisabled:S,borderColor:$,borderRadius:E,fontSizeTiny:P,fontSizeSmall:B,fontSizeMedium:k,heightTiny:I,heightSmall:R,heightMedium:F}=d;return Object.assign(Object.assign({},commonVariables$b),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:"1px solid ".concat($),buttonBorderHover:"1px solid ".concat($),buttonBorderPressed:"1px solid ".concat($),buttonIconColor:b,buttonIconColorHover:b,buttonIconColorPressed:b,itemTextColor:b,itemTextColorHover:C,itemTextColorPressed:w,itemTextColorActive:x,itemTextColorDisabled:S,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:A,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:"1px solid ".concat(x),itemBorderDisabled:"1px solid ".concat($),itemBorderRadius:E,itemSizeSmall:I,itemSizeMedium:R,itemSizeLarge:F,itemFontSizeSmall:P,itemFontSizeMedium:B,itemFontSizeLarge:k,jumperFontSizeSmall:P,jumperFontSizeMedium:B,jumperFontSizeLarge:k,jumperTextColor:b,jumperTextColorDisabled:S})},paginationDark={name:"Pagination",common:commonDark,peers:{Select:selectDark$1,Input:inputDark$1,Popselect:popselectDark},self(d){const{primaryColor:b,opacity3:x}=d,C=changeColor(b,{alpha:Number(x)}),w=self$y(d);return w.itemBorderActive="1px solid ".concat(C),w.itemBorderDisabled="1px solid #0000",w}},paginationDark$1=paginationDark,commonVars$8={padding:"8px 14px"},tooltipDark={name:"Tooltip",common:commonDark,peers:{Popover:popoverDark$1},self(d){const{borderRadius:b,boxShadow2:x,popoverColor:C,textColor2:w}=d;return Object.assign(Object.assign({},commonVars$8),{borderRadius:b,boxShadow:x,color:C,textColor:w})}},tooltipDark$1=tooltipDark,ellipsisDark={name:"Ellipsis",common:commonDark,peers:{Tooltip:tooltipDark$1}},ellipsisDark$1=ellipsisDark,commonVariables$a={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},radioDark={name:"Radio",common:commonDark,self(d){const{borderColor:b,primaryColor:x,baseColor:C,textColorDisabled:w,inputColorDisabled:A,textColor2:S,opacityDisabled:$,borderRadius:E,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:k,heightSmall:I,heightMedium:R,heightLarge:F,lineHeight:L}=d;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:L,buttonHeightSmall:I,buttonHeightMedium:R,buttonHeightLarge:F,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:k,boxShadow:"inset 0 0 0 1px ".concat(b),boxShadowActive:"inset 0 0 0 1px ".concat(x),boxShadowFocus:"inset 0 0 0 1px ".concat(x,", 0 0 0 2px ").concat(changeColor(x,{alpha:.3})),boxShadowHover:"inset 0 0 0 1px ".concat(x),boxShadowDisabled:"inset 0 0 0 1px ".concat(b),color:"#0000",colorDisabled:A,colorActive:"#0000",textColor:S,textColorDisabled:w,dotColorActive:x,dotColorDisabled:b,buttonBorderColor:b,buttonBorderColorActive:x,buttonBorderColorHover:x,buttonColor:"#0000",buttonColorActive:x,buttonTextColor:S,buttonTextColorActive:C,buttonTextColorHover:x,opacityDisabled:$,buttonBoxShadowFocus:"inset 0 0 0 1px ".concat(x,", 0 0 0 2px ").concat(changeColor(x,{alpha:.3})),buttonBoxShadowHover:"inset 0 0 0 1px ".concat(x),buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:E})}},radioDark$1=radioDark,self$x=d=>{const{borderColor:b,primaryColor:x,baseColor:C,textColorDisabled:w,inputColorDisabled:A,textColor2:S,opacityDisabled:$,borderRadius:E,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:k,heightSmall:I,heightMedium:R,heightLarge:F,lineHeight:L}=d;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:L,buttonHeightSmall:I,buttonHeightMedium:R,buttonHeightLarge:F,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:k,boxShadow:"inset 0 0 0 1px ".concat(b),boxShadowActive:"inset 0 0 0 1px ".concat(x),boxShadowFocus:"inset 0 0 0 1px ".concat(x,", 0 0 0 2px ").concat(changeColor(x,{alpha:.2})),boxShadowHover:"inset 0 0 0 1px ".concat(x),boxShadowDisabled:"inset 0 0 0 1px ".concat(b),color:C,colorDisabled:A,colorActive:"#0000",textColor:S,textColorDisabled:w,dotColorActive:x,dotColorDisabled:b,buttonBorderColor:b,buttonBorderColorActive:x,buttonBorderColorHover:b,buttonColor:C,buttonColorActive:C,buttonTextColor:S,buttonTextColorActive:x,buttonTextColorHover:x,opacityDisabled:$,buttonBoxShadowFocus:"inset 0 0 0 1px ".concat(x,", 0 0 0 2px ").concat(changeColor(x,{alpha:.3})),buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:E})},radioLight={name:"Radio",common:commonLight,self:self$x},radioLight$1=radioLight,commonVariables$9={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},self$w=d=>{const{primaryColor:b,textColor2:x,dividerColor:C,hoverColor:w,popoverColor:A,invertedColor:S,borderRadius:$,fontSizeSmall:E,fontSizeMedium:P,fontSizeLarge:B,fontSizeHuge:k,heightSmall:I,heightMedium:R,heightLarge:F,heightHuge:L,textColor3:z,opacityDisabled:V}=d;return Object.assign(Object.assign({},commonVariables$9),{optionHeightSmall:I,optionHeightMedium:R,optionHeightLarge:F,optionHeightHuge:L,borderRadius:$,fontSizeSmall:E,fontSizeMedium:P,fontSizeLarge:B,fontSizeHuge:k,optionTextColor:x,optionTextColorHover:x,optionTextColorActive:b,optionTextColorChildActive:b,color:A,dividerColor:C,suffixColor:x,prefixColor:x,optionColorHover:w,optionColorActive:changeColor(b,{alpha:.1}),groupHeaderTextColor:z,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:S,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:b,optionColorActiveInverted:b,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:V})},dropdownLight={name:"Dropdown",common:commonLight,peers:{Popover:popoverLight$1},self:self$w},dropdownLight$1=dropdownLight,dropdownDark={name:"Dropdown",common:commonDark,peers:{Popover:popoverDark$1},self(d){const{primaryColorSuppl:b,primaryColor:x,popoverColor:C}=d,w=self$w(d);return w.colorInverted=C,w.optionColorActive=changeColor(x,{alpha:.15}),w.optionColorActiveInverted=b,w.optionColorHoverInverted=b,w}},dropdownDark$1=dropdownDark,commonVariables$8={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},self$v=d=>{const{cardColor:b,modalColor:x,popoverColor:C,textColor2:w,textColor1:A,tableHeaderColor:S,tableColorHover:$,iconColor:E,primaryColor:P,fontWeightStrong:B,borderRadius:k,lineHeight:I,fontSizeSmall:R,fontSizeMedium:F,fontSizeLarge:L,dividerColor:z,heightSmall:V,opacityDisabled:U,tableColorStriped:Q}=d;return Object.assign(Object.assign({},commonVariables$8),{actionDividerColor:z,lineHeight:I,borderRadius:k,fontSizeSmall:R,fontSizeMedium:F,fontSizeLarge:L,borderColor:composite(b,z),tdColorHover:composite(b,$),tdColorStriped:composite(b,Q),thColor:composite(b,S),thColorHover:composite(composite(b,S),$),tdColor:b,tdTextColor:w,thTextColor:A,thFontWeight:B,thButtonColorHover:$,thIconColor:E,thIconColorActive:P,borderColorModal:composite(x,z),tdColorHoverModal:composite(x,$),tdColorStripedModal:composite(x,Q),thColorModal:composite(x,S),thColorHoverModal:composite(composite(x,S),$),tdColorModal:x,borderColorPopover:composite(C,z),tdColorHoverPopover:composite(C,$),tdColorStripedPopover:composite(C,Q),thColorPopover:composite(C,S),thColorHoverPopover:composite(composite(C,S),$),tdColorPopover:C,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:P,loadingSize:V,opacityLoading:U})},dataTableDark={name:"DataTable",common:commonDark,peers:{Button:buttonDark$1,Checkbox:checkboxDark$1,Radio:radioDark$1,Pagination:paginationDark$1,Scrollbar:scrollbarDark$1,Empty:emptyDark$1,Popover:popoverDark$1,Ellipsis:ellipsisDark$1,Dropdown:dropdownDark$1},self(d){const b=self$v(d);return b.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",b.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",b}},dataTableDark$1=dataTableDark,radioProps={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},radioGroupInjectionKey="n-radio-group";function setup(d){const b=useFormItem(d,{mergedSize(U){const{size:Q}=d;if(Q!==void 0)return Q;if(S){const{mergedSizeRef:{value:W}}=S;if(W!==void 0)return W}return U?U.mergedSize.value:"medium"},mergedDisabled(U){return!!(d.disabled||S!=null&&S.disabledRef.value||U!=null&&U.disabled.value)}}),{mergedSizeRef:x,mergedDisabledRef:C}=b,w=ref(null),A=ref(null),S=inject(radioGroupInjectionKey,null),$=ref(d.defaultChecked),E=toRef$1(d,"checked"),P=useMergedState(E,$),B=useMemo(()=>S?S.valueRef.value===d.value:P.value),k=useMemo(()=>{const{name:U}=d;if(U!==void 0)return U;if(S)return S.nameRef.value}),I=ref(!1);function R(){if(S){const{doUpdateValue:U}=S,{value:Q}=d;call$1(U,Q)}else{const{onUpdateChecked:U,"onUpdate:checked":Q}=d,{nTriggerFormInput:W,nTriggerFormChange:G}=b;U&&call$1(U,!0),Q&&call$1(Q,!0),W(),G(),$.value=!0}}function F(){C.value||B.value||R()}function L(){F()}function z(){I.value=!1}function V(){I.value=!0}return{mergedClsPrefix:S?S.mergedClsPrefixRef:useConfig(d).mergedClsPrefixRef,inputRef:w,labelRef:A,mergedName:k,mergedDisabled:C,uncontrolledChecked:$,renderSafeChecked:B,focus:I,mergedSize:x,handleRadioInputChange:L,handleRadioInputBlur:z,handleRadioInputFocus:V}}const style$b=cB("radio","\n line-height: var(--n-label-line-height);\n outline: none;\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n display: inline-flex;\n align-items: flex-start;\n flex-wrap: nowrap;\n font-size: var(--n-font-size);\n word-break: break-word;\n",[cM("checked",[cE("dot","\n background-color: var(--n-color-active);\n ")]),cE("dot-wrapper","\n position: relative;\n flex-shrink: 0;\n flex-grow: 0;\n width: var(--n-radio-size);\n "),cB("radio-input","\n position: absolute;\n border: 0;\n border-radius: inherit;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n opacity: 0;\n z-index: 1;\n cursor: pointer;\n "),cE("dot","\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n height: var(--n-radio-size);\n width: var(--n-radio-size);\n background: var(--n-color);\n box-shadow: var(--n-box-shadow);\n border-radius: 50%;\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n ",[c$3("&::before",'\n content: "";\n opacity: 0;\n position: absolute;\n left: 4px;\n top: 4px;\n height: calc(100% - 8px);\n width: calc(100% - 8px);\n border-radius: 50%;\n transform: scale(.8);\n background: var(--n-dot-color-active);\n transition: \n opacity .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n transform .3s var(--n-bezier);\n '),cM("checked",{boxShadow:"var(--n-box-shadow-active)"},[c$3("&::before","\n opacity: 1;\n transform: scale(1);\n ")])]),cE("label","\n color: var(--n-text-color);\n padding: var(--n-label-padding);\n font-weight: var(--n-label-font-weight);\n display: inline-block;\n transition: color .3s var(--n-bezier);\n "),cNotM("disabled","\n cursor: pointer;\n ",[c$3("&:hover",[cE("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),cM("focus",[c$3("&:not(:active)",[cE("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),cM("disabled","\n cursor: not-allowed;\n ",[cE("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[c$3("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),cM("checked","\n opacity: 1;\n ")]),cE("label",{color:"var(--n-text-color-disabled)"}),cB("radio-input","\n cursor: not-allowed;\n ")])]),NRadio=defineComponent({name:"Radio",props:Object.assign(Object.assign({},useTheme.props),radioProps),setup(d){const b=setup(d),x=useTheme("Radio","-radio",style$b,radioLight$1,d,b.mergedClsPrefix),C=computed(()=>{const{mergedSize:{value:P}}=b,{common:{cubicBezierEaseInOut:B},self:{boxShadow:k,boxShadowActive:I,boxShadowDisabled:R,boxShadowFocus:F,boxShadowHover:L,color:z,colorDisabled:V,colorActive:U,textColor:Q,textColorDisabled:W,dotColorActive:G,dotColorDisabled:q,labelPadding:K,labelLineHeight:X,labelFontWeight:J,[createKey("fontSize",P)]:oe,[createKey("radioSize",P)]:he}}=x.value;return{"--n-bezier":B,"--n-label-line-height":X,"--n-label-font-weight":J,"--n-box-shadow":k,"--n-box-shadow-active":I,"--n-box-shadow-disabled":R,"--n-box-shadow-focus":F,"--n-box-shadow-hover":L,"--n-color":z,"--n-color-active":U,"--n-color-disabled":V,"--n-dot-color-active":G,"--n-dot-color-disabled":q,"--n-font-size":oe,"--n-radio-size":he,"--n-text-color":Q,"--n-text-color-disabled":W,"--n-label-padding":K}}),{inlineThemeDisabled:w,mergedClsPrefixRef:A,mergedRtlRef:S}=useConfig(d),$=useRtl("Radio",S,A),E=w?useThemeClass("radio",computed(()=>b.mergedSize.value[0]),C,d):void 0;return Object.assign(b,{rtlEnabled:$,cssVars:w?void 0:C,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender})},render(){const{$slots:d,mergedClsPrefix:b,onRender:x,label:C}=this;return x==null||x(),h$1("label",{class:["".concat(b,"-radio"),this.themeClass,{["".concat(b,"-radio--rtl")]:this.rtlEnabled,["".concat(b,"-radio--disabled")]:this.mergedDisabled,["".concat(b,"-radio--checked")]:this.renderSafeChecked,["".concat(b,"-radio--focus")]:this.focus}],style:this.cssVars},h$1("input",{ref:"inputRef",type:"radio",class:"".concat(b,"-radio-input"),value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),h$1("div",{class:"".concat(b,"-radio__dot-wrapper")}," ",h$1("div",{class:["".concat(b,"-radio__dot"),this.renderSafeChecked&&"".concat(b,"-radio__dot--checked")]})),resolveWrappedSlot(d.default,w=>!w&&!C?null:h$1("div",{ref:"labelRef",class:"".concat(b,"-radio__label")},w||C)))}}),style$a=cB("radio-group","\n display: inline-block;\n font-size: var(--n-font-size);\n",[cE("splitor","\n display: inline-block;\n vertical-align: bottom;\n width: 1px;\n transition:\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n background: var(--n-button-border-color);\n ",[cM("checked",{backgroundColor:"var(--n-button-border-color-active)"}),cM("disabled",{opacity:"var(--n-opacity-disabled)"})]),cM("button-group","\n white-space: nowrap;\n height: var(--n-height);\n line-height: var(--n-height);\n ",[cB("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),cE("splitor",{height:"var(--n-height)"})]),cB("radio-button","\n vertical-align: bottom;\n outline: none;\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n display: inline-block;\n box-sizing: border-box;\n padding-left: 14px;\n padding-right: 14px;\n white-space: nowrap;\n transition:\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n color: var(--n-button-text-color);\n border-top: 1px solid var(--n-button-border-color);\n border-bottom: 1px solid var(--n-button-border-color);\n ",[cB("radio-input","\n pointer-events: none;\n position: absolute;\n border: 0;\n border-radius: inherit;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n opacity: 0;\n z-index: 1;\n "),cE("state-border","\n z-index: 1;\n pointer-events: none;\n position: absolute;\n box-shadow: var(--n-button-box-shadow);\n transition: box-shadow .3s var(--n-bezier);\n left: -1px;\n bottom: -1px;\n right: -1px;\n top: -1px;\n "),c$3("&:first-child","\n border-top-left-radius: var(--n-button-border-radius);\n border-bottom-left-radius: var(--n-button-border-radius);\n border-left: 1px solid var(--n-button-border-color);\n ",[cE("state-border","\n border-top-left-radius: var(--n-button-border-radius);\n border-bottom-left-radius: var(--n-button-border-radius);\n ")]),c$3("&:last-child","\n border-top-right-radius: var(--n-button-border-radius);\n border-bottom-right-radius: var(--n-button-border-radius);\n border-right: 1px solid var(--n-button-border-color);\n ",[cE("state-border","\n border-top-right-radius: var(--n-button-border-radius);\n border-bottom-right-radius: var(--n-button-border-radius);\n ")]),cNotM("disabled","\n cursor: pointer;\n ",[c$3("&:hover",[cE("state-border","\n transition: box-shadow .3s var(--n-bezier);\n box-shadow: var(--n-button-box-shadow-hover);\n "),cNotM("checked",{color:"var(--n-button-text-color-hover)"})]),cM("focus",[c$3("&:not(:active)",[cE("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),cM("checked","\n background: var(--n-button-color-active);\n color: var(--n-button-text-color-active);\n border-color: var(--n-button-border-color-active);\n "),cM("disabled","\n cursor: not-allowed;\n opacity: var(--n-opacity-disabled);\n ")])]);function mapSlot(d,b,x){var C;const w=[];let A=!1;for(let S=0;S{const{value:G}=x,{common:{cubicBezierEaseInOut:q},self:{buttonBorderColor:K,buttonBorderColorActive:X,buttonBorderRadius:J,buttonBoxShadow:oe,buttonBoxShadowFocus:he,buttonBoxShadowHover:Z,buttonColorActive:ce,buttonTextColor:fe,buttonTextColorActive:me,buttonTextColorHover:ne,opacityDisabled:te,[createKey("buttonHeight",G)]:de,[createKey("fontSize",G)]:le}}=k.value;return{"--n-font-size":le,"--n-bezier":q,"--n-button-border-color":K,"--n-button-border-color-active":X,"--n-button-border-radius":J,"--n-button-box-shadow":oe,"--n-button-box-shadow-focus":he,"--n-button-box-shadow-hover":Z,"--n-button-color-active":ce,"--n-button-text-color":fe,"--n-button-text-color-hover":ne,"--n-button-text-color-active":me,"--n-height":de,"--n-opacity-disabled":te}}),W=P?useThemeClass("radio-group",computed(()=>x.value[0]),Q,d):void 0;return{selfElRef:b,rtlEnabled:U,mergedClsPrefix:E,mergedValue:F,handleFocusout:V,handleFocusin:z,cssVars:P?void 0:Q,themeClass:W==null?void 0:W.themeClass,onRender:W==null?void 0:W.onRender}},render(){var d;const{mergedValue:b,mergedClsPrefix:x,handleFocusin:C,handleFocusout:w}=this,{children:A,isButtonGroup:S}=mapSlot(flatten$4(getSlot$1(this)),b,x);return(d=this.onRender)===null||d===void 0||d.call(this),h$1("div",{onFocusin:C,onFocusout:w,ref:"selfElRef",class:["".concat(x,"-radio-group"),this.rtlEnabled&&"".concat(x,"-radio-group--rtl"),this.themeClass,S&&"".concat(x,"-radio-group--button-group")],style:this.cssVars},A)}}),NDropdownDivider=defineComponent({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return h$1("div",{class:"".concat(this.clsPrefix,"-dropdown-divider")})}}),self$u=d=>{const{textColorBase:b,opacity1:x,opacity2:C,opacity3:w,opacity4:A,opacity5:S}=d;return{color:b,opacity1Depth:x,opacity2Depth:C,opacity3Depth:w,opacity4Depth:A,opacity5Depth:S}},iconLight={name:"Icon",common:commonLight,self:self$u},iconLight$1=iconLight,iconDark$1={name:"Icon",common:commonDark,self:self$u},iconDark$2=iconDark$1,style$9=cB("icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[cM("color-transition",{transition:"color .3s var(--n-bezier)"}),cM("depth",{color:"var(--n-color)"},[c$3("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),c$3("svg",{height:"1em",width:"1em"})]),iconProps=Object.assign(Object.assign({},useTheme.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),NIcon=defineComponent({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:iconProps,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:x}=useConfig(d),C=useTheme("Icon","-icon",style$9,iconLight$1,d,b),w=computed(()=>{const{depth:S}=d,{common:{cubicBezierEaseInOut:$},self:E}=C.value;if(S!==void 0){const{color:P,["opacity".concat(S,"Depth")]:B}=E;return{"--n-bezier":$,"--n-color":P,"--n-opacity":B}}return{"--n-bezier":$,"--n-color":"","--n-opacity":""}}),A=x?useThemeClass("icon",computed(()=>"".concat(d.depth||"d")),w,d):void 0;return{mergedClsPrefix:b,mergedStyle:computed(()=>{const{size:S,color:$}=d;return{fontSize:formatLength(S),color:$}}),cssVars:x?void 0:w,themeClass:A==null?void 0:A.themeClass,onRender:A==null?void 0:A.onRender}},render(){var d;const{$parent:b,depth:x,mergedClsPrefix:C,component:w,onRender:A,themeClass:S}=this;return!((d=b==null?void 0:b.$options)===null||d===void 0)&&d._n_icon__&&warn$3("icon","don't wrap `n-icon` inside `n-icon`"),A==null||A(),h$1("i",mergeProps(this.$attrs,{role:"img",class:["".concat(C,"-icon"),S,{["".concat(C,"-icon--depth")]:x,["".concat(C,"-icon--color-transition")]:x!==void 0}],style:[this.cssVars,this.mergedStyle]}),w?h$1(w):this.$slots)}}),dropdownMenuInjectionKey="n-dropdown-menu",dropdownInjectionKey="n-dropdown",dropdownOptionInjectionKey="n-dropdown-option";function isSubmenuNode(d,b){return d.type==="submenu"||d.type===void 0&&d[b]!==void 0}function isGroupNode(d){return d.type==="group"}function isDividerNode(d){return d.type==="divider"}function isRenderNode(d){return d.type==="render"}const NDropdownOption=defineComponent({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(d){const b=inject(dropdownInjectionKey),{hoverKeyRef:x,keyboardKeyRef:C,lastToggledSubmenuKeyRef:w,pendingKeyPathRef:A,activeKeyPathRef:S,animatedRef:$,mergedShowRef:E,renderLabelRef:P,renderIconRef:B,labelFieldRef:k,childrenFieldRef:I,renderOptionRef:R,nodePropsRef:F,menuPropsRef:L}=b,z=inject(dropdownOptionInjectionKey,null),V=inject(dropdownMenuInjectionKey),U=inject(popoverBodyInjectionKey),Q=computed(()=>d.tmNode.rawNode),W=computed(()=>{const{value:te}=I;return isSubmenuNode(d.tmNode.rawNode,te)}),G=computed(()=>{const{disabled:te}=d.tmNode;return te}),q=computed(()=>{if(!W.value)return!1;const{key:te,disabled:de}=d.tmNode;if(de)return!1;const{value:le}=x,{value:be}=C,{value:Le}=w,{value:Qe}=A;return le!==null?Qe.includes(te):be!==null?Qe.includes(te)&&Qe[Qe.length-1]!==te:Le!==null?Qe.includes(te):!1}),K=computed(()=>C.value===null&&!$.value),X=useDeferredTrue(q,300,K),J=computed(()=>!!(z!=null&&z.enteringSubmenuRef.value)),oe=ref(!1);provide(dropdownOptionInjectionKey,{enteringSubmenuRef:oe});function he(){oe.value=!0}function Z(){oe.value=!1}function ce(){const{parentKey:te,tmNode:de}=d;de.disabled||E.value&&(w.value=te,C.value=null,x.value=de.key)}function fe(){const{tmNode:te}=d;te.disabled||E.value&&x.value!==te.key&&ce()}function me(te){if(d.tmNode.disabled||!E.value)return;const{relatedTarget:de}=te;de&&!happensIn({target:de},"dropdownOption")&&!happensIn({target:de},"scrollbarRail")&&(x.value=null)}function ne(){const{value:te}=W,{tmNode:de}=d;E.value&&!te&&!de.disabled&&(b.doSelect(de.key,de.rawNode),b.doUpdateShow(!1))}return{labelField:k,renderLabel:P,renderIcon:B,siblingHasIcon:V.showIconRef,siblingHasSubmenu:V.hasSubmenuRef,menuProps:L,popoverBody:U,animated:$,mergedShowSubmenu:computed(()=>X.value&&!J.value),rawNode:Q,hasSubmenu:W,pending:useMemo(()=>{const{value:te}=A,{key:de}=d.tmNode;return te.includes(de)}),childActive:useMemo(()=>{const{value:te}=S,{key:de}=d.tmNode,le=te.findIndex(be=>de===be);return le===-1?!1:le{const{value:te}=S,{key:de}=d.tmNode,le=te.findIndex(be=>de===be);return le===-1?!1:le===te.length-1}),mergedDisabled:G,renderOption:R,nodeProps:F,handleClick:ne,handleMouseMove:fe,handleMouseEnter:ce,handleMouseLeave:me,handleSubmenuBeforeEnter:he,handleSubmenuAfterEnter:Z}},render(){var d,b;const{animated:x,rawNode:C,mergedShowSubmenu:w,clsPrefix:A,siblingHasIcon:S,siblingHasSubmenu:$,renderLabel:E,renderIcon:P,renderOption:B,nodeProps:k,props:I,scrollable:R}=this;let F=null;if(w){const U=(d=this.menuProps)===null||d===void 0?void 0:d.call(this,C,C.children);F=h$1(NDropdownMenu,Object.assign({},U,{clsPrefix:A,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const L={class:["".concat(A,"-dropdown-option-body"),this.pending&&"".concat(A,"-dropdown-option-body--pending"),this.active&&"".concat(A,"-dropdown-option-body--active"),this.childActive&&"".concat(A,"-dropdown-option-body--child-active"),this.mergedDisabled&&"".concat(A,"-dropdown-option-body--disabled")],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},z=k==null?void 0:k(C),V=h$1("div",Object.assign({class:["".concat(A,"-dropdown-option"),z==null?void 0:z.class],"data-dropdown-option":!0},z),h$1("div",mergeProps(L,I),[h$1("div",{class:["".concat(A,"-dropdown-option-body__prefix"),S&&"".concat(A,"-dropdown-option-body__prefix--show-icon")]},[P?P(C):render$1(C.icon)]),h$1("div",{"data-dropdown-option":!0,class:"".concat(A,"-dropdown-option-body__label")},E?E(C):render$1((b=C[this.labelField])!==null&&b!==void 0?b:C.title)),h$1("div",{"data-dropdown-option":!0,class:["".concat(A,"-dropdown-option-body__suffix"),$&&"".concat(A,"-dropdown-option-body__suffix--has-submenu")]},this.hasSubmenu?h$1(NIcon,null,{default:()=>h$1(ChevronRightIcon,null)}):null)]),this.hasSubmenu?h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1("div",{class:"".concat(A,"-dropdown-offset-container")},h$1(VFollower,{show:this.mergedShowSubmenu,placement:this.placement,to:R&&this.popoverBody||void 0,teleportDisabled:!R},{default:()=>h$1("div",{class:"".concat(A,"-dropdown-menu-wrapper")},x?h$1(Transition,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>F}):F)}))})]}):null);return B?B({node:V,option:C}):V}}),NDropdownGroupHeader=defineComponent({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:d,hasSubmenuRef:b}=inject(dropdownMenuInjectionKey),{renderLabelRef:x,labelFieldRef:C,nodePropsRef:w,renderOptionRef:A}=inject(dropdownInjectionKey);return{labelField:C,showIcon:d,hasSubmenu:b,renderLabel:x,nodeProps:w,renderOption:A}},render(){var d;const{clsPrefix:b,hasSubmenu:x,showIcon:C,nodeProps:w,renderLabel:A,renderOption:S}=this,{rawNode:$}=this.tmNode,E=h$1("div",Object.assign({class:"".concat(b,"-dropdown-option")},w==null?void 0:w($)),h$1("div",{class:"".concat(b,"-dropdown-option-body ").concat(b,"-dropdown-option-body--group")},h$1("div",{"data-dropdown-option":!0,class:["".concat(b,"-dropdown-option-body__prefix"),C&&"".concat(b,"-dropdown-option-body__prefix--show-icon")]},render$1($.icon)),h$1("div",{class:"".concat(b,"-dropdown-option-body__label"),"data-dropdown-option":!0},A?A($):render$1((d=$.title)!==null&&d!==void 0?d:$[this.labelField])),h$1("div",{class:["".concat(b,"-dropdown-option-body__suffix"),x&&"".concat(b,"-dropdown-option-body__suffix--has-submenu")],"data-dropdown-option":!0})));return S?S({node:E,option:$}):E}}),NDropdownGroup=defineComponent({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:d,parentKey:b,clsPrefix:x}=this,{children:C}=d;return h$1(Fragment,null,h$1(NDropdownGroupHeader,{clsPrefix:x,tmNode:d,key:d.key}),C==null?void 0:C.map(w=>{const{rawNode:A}=w;return A.show===!1?null:isDividerNode(A)?h$1(NDropdownDivider,{clsPrefix:x,key:w.key}):w.isGroup?(warn$3("dropdown","`group` node is not allowed to be put in `group` node."),null):h$1(NDropdownOption,{clsPrefix:x,tmNode:w,parentKey:b,key:w.key})}))}}),NDropdownRenderOption=defineComponent({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:d,props:b}}=this.tmNode;return h$1("div",b,[d==null?void 0:d()])}}),NDropdownMenu=defineComponent({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(d){const{renderIconRef:b,childrenFieldRef:x}=inject(dropdownInjectionKey);provide(dropdownMenuInjectionKey,{showIconRef:computed(()=>{const w=b.value;return d.tmNodes.some(A=>{var S;if(A.isGroup)return(S=A.children)===null||S===void 0?void 0:S.some(({rawNode:E})=>w?w(E):E.icon);const{rawNode:$}=A;return w?w($):$.icon})}),hasSubmenuRef:computed(()=>{const{value:w}=x;return d.tmNodes.some(A=>{var S;if(A.isGroup)return(S=A.children)===null||S===void 0?void 0:S.some(({rawNode:E})=>isSubmenuNode(E,w));const{rawNode:$}=A;return isSubmenuNode($,w)})})});const C=ref(null);return provide(modalBodyInjectionKey,null),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,C),{bodyRef:C}},render(){const{parentKey:d,clsPrefix:b,scrollable:x}=this,C=this.tmNodes.map(w=>{const{rawNode:A}=w;return A.show===!1?null:isRenderNode(A)?h$1(NDropdownRenderOption,{tmNode:w,key:w.key}):isDividerNode(A)?h$1(NDropdownDivider,{clsPrefix:b,key:w.key}):isGroupNode(A)?h$1(NDropdownGroup,{clsPrefix:b,tmNode:w,parentKey:d,key:w.key}):h$1(NDropdownOption,{clsPrefix:b,tmNode:w,parentKey:d,key:w.key,props:A.props,scrollable:x})});return h$1("div",{class:["".concat(b,"-dropdown-menu"),x&&"".concat(b,"-dropdown-menu--scrollable")],ref:"bodyRef"},x?h$1(XScrollbar,{contentClass:"".concat(b,"-dropdown-menu__content")},{default:()=>C}):C,this.showArrow?renderArrow({clsPrefix:b,arrowStyle:this.arrowStyle}):null)}}),style$8=cB("dropdown-menu","\n transform-origin: var(--v-transform-origin);\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n box-shadow: var(--n-box-shadow);\n position: relative;\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[fadeInScaleUpTransition(),cB("dropdown-option","\n position: relative;\n ",[c$3("a","\n text-decoration: none;\n color: inherit;\n outline: none;\n ",[c$3("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),cB("dropdown-option-body","\n display: flex;\n cursor: pointer;\n position: relative;\n height: var(--n-option-height);\n line-height: var(--n-option-height);\n font-size: var(--n-font-size);\n color: var(--n-option-text-color);\n transition: color .3s var(--n-bezier);\n ",[c$3("&::before",'\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n left: 4px;\n right: 4px;\n transition: background-color .3s var(--n-bezier);\n border-radius: var(--n-border-radius);\n '),cNotM("disabled",[cM("pending","\n color: var(--n-option-text-color-hover);\n ",[cE("prefix, suffix","\n color: var(--n-option-text-color-hover);\n "),c$3("&::before","background-color: var(--n-option-color-hover);")]),cM("active","\n color: var(--n-option-text-color-active);\n ",[cE("prefix, suffix","\n color: var(--n-option-text-color-active);\n "),c$3("&::before","background-color: var(--n-option-color-active);")]),cM("child-active","\n color: var(--n-option-text-color-child-active);\n ",[cE("prefix, suffix","\n color: var(--n-option-text-color-child-active);\n ")])]),cM("disabled","\n cursor: not-allowed;\n opacity: var(--n-option-opacity-disabled);\n "),cM("group","\n font-size: calc(var(--n-font-size) - 1px);\n color: var(--n-group-header-text-color);\n ",[cE("prefix","\n width: calc(var(--n-option-prefix-width) / 2);\n ",[cM("show-icon","\n width: calc(var(--n-option-icon-prefix-width) / 2);\n ")])]),cE("prefix","\n width: var(--n-option-prefix-width);\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--n-prefix-color);\n transition: color .3s var(--n-bezier);\n z-index: 1;\n ",[cM("show-icon","\n width: var(--n-option-icon-prefix-width);\n "),cB("icon","\n font-size: var(--n-option-icon-size);\n ")]),cE("label","\n white-space: nowrap;\n flex: 1;\n z-index: 1;\n "),cE("suffix","\n box-sizing: border-box;\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n min-width: var(--n-option-suffix-width);\n padding: 0 8px;\n transition: color .3s var(--n-bezier);\n color: var(--n-suffix-color);\n z-index: 1;\n ",[cM("has-submenu","\n width: var(--n-option-icon-suffix-width);\n "),cB("icon","\n font-size: var(--n-option-icon-size);\n ")]),cB("dropdown-menu","pointer-events: all;")]),cB("dropdown-offset-container","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: -4px;\n bottom: -4px;\n ")]),cB("dropdown-divider","\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-divider-color);\n height: 1px;\n margin: 4px 0;\n "),cB("dropdown-menu-wrapper","\n transform-origin: var(--v-transform-origin);\n width: fit-content;\n "),c$3(">",[cB("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),cNotM("scrollable","\n padding: var(--n-padding);\n "),cM("scrollable",[cE("content","\n padding: var(--n-padding);\n ")])]),dropdownBaseProps={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},popoverPropKeys=Object.keys(popoverBaseProps),dropdownProps=Object.assign(Object.assign(Object.assign({},popoverBaseProps),dropdownBaseProps),useTheme.props),NDropdown=defineComponent({name:"Dropdown",inheritAttrs:!1,props:dropdownProps,setup(d){const b=ref(!1),x=useMergedState(toRef$1(d,"show"),b),C=computed(()=>{const{keyField:Z,childrenField:ce}=d;return createTreeMate(d.options,{getKey(fe){return fe[Z]},getDisabled(fe){return fe.disabled===!0},getIgnored(fe){return fe.type==="divider"||fe.type==="render"},getChildren(fe){return fe[ce]}})}),w=computed(()=>C.value.treeNodes),A=ref(null),S=ref(null),$=ref(null),E=computed(()=>{var Z,ce,fe;return(fe=(ce=(Z=A.value)!==null&&Z!==void 0?Z:S.value)!==null&&ce!==void 0?ce:$.value)!==null&&fe!==void 0?fe:null}),P=computed(()=>C.value.getPath(E.value).keyPath),B=computed(()=>C.value.getPath(d.value).keyPath),k=useMemo(()=>d.keyboard&&x.value);useKeyboard({keydown:{ArrowUp:{prevent:!0,handler:G},ArrowRight:{prevent:!0,handler:W},ArrowDown:{prevent:!0,handler:q},ArrowLeft:{prevent:!0,handler:Q},Enter:{prevent:!0,handler:K},Escape:U}},k);const{mergedClsPrefixRef:I,inlineThemeDisabled:R}=useConfig(d),F=useTheme("Dropdown","-dropdown",style$8,dropdownLight$1,d,I);provide(dropdownInjectionKey,{labelFieldRef:toRef$1(d,"labelField"),childrenFieldRef:toRef$1(d,"childrenField"),renderLabelRef:toRef$1(d,"renderLabel"),renderIconRef:toRef$1(d,"renderIcon"),hoverKeyRef:A,keyboardKeyRef:S,lastToggledSubmenuKeyRef:$,pendingKeyPathRef:P,activeKeyPathRef:B,animatedRef:toRef$1(d,"animated"),mergedShowRef:x,nodePropsRef:toRef$1(d,"nodeProps"),renderOptionRef:toRef$1(d,"renderOption"),menuPropsRef:toRef$1(d,"menuProps"),doSelect:L,doUpdateShow:z}),watch(x,Z=>{!d.animated&&!Z&&V()});function L(Z,ce){const{onSelect:fe}=d;fe&&call$1(fe,Z,ce)}function z(Z){const{"onUpdate:show":ce,onUpdateShow:fe}=d;ce&&call$1(ce,Z),fe&&call$1(fe,Z),b.value=Z}function V(){A.value=null,S.value=null,$.value=null}function U(){z(!1)}function Q(){J("left")}function W(){J("right")}function G(){J("up")}function q(){J("down")}function K(){const Z=X();Z!=null&&Z.isLeaf&&x.value&&(L(Z.key,Z.rawNode),z(!1))}function X(){var Z;const{value:ce}=C,{value:fe}=E;return!ce||fe===null?null:(Z=ce.getNode(fe))!==null&&Z!==void 0?Z:null}function J(Z){const{value:ce}=E,{value:{getFirstAvailableNode:fe}}=C;let me=null;if(ce===null){const ne=fe();ne!==null&&(me=ne.key)}else{const ne=X();if(ne){let te;switch(Z){case"down":te=ne.getNext();break;case"up":te=ne.getPrev();break;case"right":te=ne.getChild();break;case"left":te=ne.getParent();break}te&&(me=te.key)}}me!==null&&(A.value=null,S.value=me)}const oe=computed(()=>{const{size:Z,inverted:ce}=d,{common:{cubicBezierEaseInOut:fe},self:me}=F.value,{padding:ne,dividerColor:te,borderRadius:de,optionOpacityDisabled:le,[createKey("optionIconSuffixWidth",Z)]:be,[createKey("optionSuffixWidth",Z)]:Le,[createKey("optionIconPrefixWidth",Z)]:Qe,[createKey("optionPrefixWidth",Z)]:rt,[createKey("fontSize",Z)]:ht,[createKey("optionHeight",Z)]:ct,[createKey("optionIconSize",Z)]:it}=me,Be={"--n-bezier":fe,"--n-font-size":ht,"--n-padding":ne,"--n-border-radius":de,"--n-option-height":ct,"--n-option-prefix-width":rt,"--n-option-icon-prefix-width":Qe,"--n-option-suffix-width":Le,"--n-option-icon-suffix-width":be,"--n-option-icon-size":it,"--n-divider-color":te,"--n-option-opacity-disabled":le};return ce?(Be["--n-color"]=me.colorInverted,Be["--n-option-color-hover"]=me.optionColorHoverInverted,Be["--n-option-color-active"]=me.optionColorActiveInverted,Be["--n-option-text-color"]=me.optionTextColorInverted,Be["--n-option-text-color-hover"]=me.optionTextColorHoverInverted,Be["--n-option-text-color-active"]=me.optionTextColorActiveInverted,Be["--n-option-text-color-child-active"]=me.optionTextColorChildActiveInverted,Be["--n-prefix-color"]=me.prefixColorInverted,Be["--n-suffix-color"]=me.suffixColorInverted,Be["--n-group-header-text-color"]=me.groupHeaderTextColorInverted):(Be["--n-color"]=me.color,Be["--n-option-color-hover"]=me.optionColorHover,Be["--n-option-color-active"]=me.optionColorActive,Be["--n-option-text-color"]=me.optionTextColor,Be["--n-option-text-color-hover"]=me.optionTextColorHover,Be["--n-option-text-color-active"]=me.optionTextColorActive,Be["--n-option-text-color-child-active"]=me.optionTextColorChildActive,Be["--n-prefix-color"]=me.prefixColor,Be["--n-suffix-color"]=me.suffixColor,Be["--n-group-header-text-color"]=me.groupHeaderTextColor),Be}),he=R?useThemeClass("dropdown",computed(()=>"".concat(d.size[0]).concat(d.inverted?"i":"")),oe,d):void 0;return{mergedClsPrefix:I,mergedTheme:F,tmNodes:w,mergedShow:x,handleAfterLeave:()=>{d.animated&&V()},doUpdateShow:z,cssVars:R?void 0:oe,themeClass:he==null?void 0:he.themeClass,onRender:he==null?void 0:he.onRender}},render(){const d=(C,w,A,S,$)=>{var E;const{mergedClsPrefix:P,menuProps:B}=this;(E=this.onRender)===null||E===void 0||E.call(this);const k=(B==null?void 0:B(void 0,this.tmNodes.map(R=>R.rawNode)))||{},I={ref:createRefSetter(w),class:[C,"".concat(P,"-dropdown"),this.themeClass],clsPrefix:P,tmNodes:this.tmNodes,style:[A,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:S,onMouseleave:$};return h$1(NDropdownMenu,mergeProps(this.$attrs,I,k))},{mergedTheme:b}=this,x={show:this.mergedShow,theme:b.peers.Popover,themeOverrides:b.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:d,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return h$1(NPopover,Object.assign({},keep(this.$props,popoverPropKeys),x),{trigger:()=>{var C,w;return(w=(C=this.$slots).default)===null||w===void 0?void 0:w.call(C)}})}}),commonVars$7={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},self$t=d=>{const{popoverColor:b,textColor2:x,primaryColor:C,hoverColor:w,dividerColor:A,opacityDisabled:S,boxShadow2:$,borderRadius:E,iconColor:P,iconColorDisabled:B}=d;return Object.assign(Object.assign({},commonVars$7),{panelColor:b,panelBoxShadow:$,panelDividerColor:A,itemTextColor:x,itemTextColorActive:C,itemColorHover:w,itemOpacityDisabled:S,itemBorderRadius:E,borderRadius:E,iconColor:P,iconColorDisabled:B})},timePickerDark={name:"TimePicker",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Button:buttonDark$1,Input:inputDark$1},self:self$t},timePickerDark$1=timePickerDark,commonVars$6={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},self$s=d=>{const{hoverColor:b,fontSize:x,textColor2:C,textColorDisabled:w,popoverColor:A,primaryColor:S,borderRadiusSmall:$,iconColor:E,iconColorDisabled:P,textColor1:B,dividerColor:k,boxShadow2:I,borderRadius:R,fontWeightStrong:F}=d;return Object.assign(Object.assign({},commonVars$6),{itemFontSize:x,calendarDaysFontSize:x,calendarTitleFontSize:x,itemTextColor:C,itemTextColorDisabled:w,itemTextColorActive:A,itemTextColorCurrent:S,itemColorIncluded:changeColor(S,{alpha:.1}),itemColorHover:b,itemColorDisabled:b,itemColorActive:S,itemBorderRadius:$,panelColor:A,panelTextColor:C,arrowColor:E,calendarTitleTextColor:B,calendarTitleColorHover:b,calendarDaysTextColor:C,panelHeaderDividerColor:k,calendarDaysDividerColor:k,calendarDividerColor:k,panelActionDividerColor:k,panelBoxShadow:I,panelBorderRadius:R,calendarTitleFontWeight:F,scrollItemBorderRadius:R,iconColor:E,iconColorDisabled:P})},datePickerDark={name:"DatePicker",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1,TimePicker:timePickerDark$1,Scrollbar:scrollbarDark$1},self(d){const{popoverColor:b,hoverColor:x,primaryColor:C}=d,w=self$s(d);return w.itemColorDisabled=composite(b,x),w.itemColorIncluded=changeColor(C,{alpha:.15}),w.itemColorHover=composite(b,x),w}},datePickerDark$1=datePickerDark,commonVariables$7={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},self$r=d=>{const{tableHeaderColor:b,textColor2:x,textColor1:C,cardColor:w,modalColor:A,popoverColor:S,dividerColor:$,borderRadius:E,fontWeightStrong:P,lineHeight:B,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:R}=d;return Object.assign(Object.assign({},commonVariables$7),{lineHeight:B,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:R,titleTextColor:C,thColor:composite(w,b),thColorModal:composite(A,b),thColorPopover:composite(S,b),thTextColor:C,thFontWeight:P,tdTextColor:x,tdColor:w,tdColorModal:A,tdColorPopover:S,borderColor:composite(w,$),borderColorModal:composite(A,$),borderColorPopover:composite(S,$),borderRadius:E})},descriptionsDark={name:"Descriptions",common:commonDark,self:self$r},descriptionsDark$1=descriptionsDark,commonVars$5={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},self$q=d=>{const{textColor1:b,textColor2:x,modalColor:C,closeIconColor:w,closeIconColorHover:A,closeIconColorPressed:S,closeColorHover:$,closeColorPressed:E,infoColor:P,successColor:B,warningColor:k,errorColor:I,primaryColor:R,dividerColor:F,borderRadius:L,fontWeightStrong:z,lineHeight:V,fontSize:U}=d;return Object.assign(Object.assign({},commonVars$5),{fontSize:U,lineHeight:V,border:"1px solid ".concat(F),titleTextColor:b,textColor:x,color:C,closeColorHover:$,closeColorPressed:E,closeIconColor:w,closeIconColorHover:A,closeIconColorPressed:S,closeBorderRadius:L,iconColor:R,iconColorInfo:P,iconColorSuccess:B,iconColorWarning:k,iconColorError:I,borderRadius:L,titleFontWeight:z})},dialogLight={name:"Dialog",common:commonLight,peers:{Button:buttonLight$1},self:self$q},dialogLight$1=dialogLight,dialogDark={name:"Dialog",common:commonDark,peers:{Button:buttonDark$1},self:self$q},dialogDark$1=dialogDark,dialogProps={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},dialogPropKeys=keysOf(dialogProps),style$7=c$3([cB("dialog","\n word-break: break-word;\n line-height: var(--n-line-height);\n position: relative;\n background: var(--n-color);\n color: var(--n-text-color);\n box-sizing: border-box;\n margin: auto;\n border-radius: var(--n-border-radius);\n padding: var(--n-padding);\n transition: \n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ",[cE("icon",{color:"var(--n-icon-color)"}),cM("bordered",{border:"var(--n-border)"}),cM("icon-top",[cE("close",{margin:"var(--n-close-margin)"}),cE("icon",{margin:"var(--n-icon-margin)"}),cE("content",{textAlign:"center"}),cE("title",{justifyContent:"center"}),cE("action",{justifyContent:"center"})]),cM("icon-left",[cE("icon",{margin:"var(--n-icon-margin)"}),cM("closable",[cE("title","\n padding-right: calc(var(--n-close-size) + 6px);\n ")])]),cE("close","\n position: absolute;\n right: 0;\n top: 0;\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n z-index: 1;\n "),cE("content","\n font-size: var(--n-font-size);\n margin: var(--n-content-margin);\n position: relative;\n word-break: break-word;\n ",[cM("last","margin-bottom: 0;")]),cE("action","\n display: flex;\n justify-content: flex-end;\n ",[c$3("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),cE("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),cE("title","\n transition: color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n font-size: var(--n-title-font-size);\n font-weight: var(--n-title-font-weight);\n color: var(--n-title-text-color);\n "),cB("dialog-icon-container",{display:"flex",justifyContent:"center"})]),insideModal(cB("dialog","\n width: 446px;\n max-width: calc(100vw - 32px);\n ")),cB("dialog",[asModal("\n width: 446px;\n max-width: calc(100vw - 32px);\n ")])]),iconRenderMap$2={default:()=>h$1(InfoIcon,null),info:()=>h$1(InfoIcon,null),success:()=>h$1(SuccessIcon,null),warning:()=>h$1(WarningIcon,null),error:()=>h$1(ErrorIcon,null)},NDialog=defineComponent({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},useTheme.props),dialogProps),setup(d){const{mergedComponentPropsRef:b,mergedClsPrefixRef:x,inlineThemeDisabled:C}=useConfig(d),w=computed(()=>{var k,I;const{iconPlacement:R}=d;return R||((I=(k=b==null?void 0:b.value)===null||k===void 0?void 0:k.Dialog)===null||I===void 0?void 0:I.iconPlacement)||"left"});function A(k){const{onPositiveClick:I}=d;I&&I(k)}function S(k){const{onNegativeClick:I}=d;I&&I(k)}function $(){const{onClose:k}=d;k&&k()}const E=useTheme("Dialog","-dialog",style$7,dialogLight$1,d,x),P=computed(()=>{const{type:k}=d,I=w.value,{common:{cubicBezierEaseInOut:R},self:{fontSize:F,lineHeight:L,border:z,titleTextColor:V,textColor:U,color:Q,closeBorderRadius:W,closeColorHover:G,closeColorPressed:q,closeIconColor:K,closeIconColorHover:X,closeIconColorPressed:J,closeIconSize:oe,borderRadius:he,titleFontWeight:Z,titleFontSize:ce,padding:fe,iconSize:me,actionSpace:ne,contentMargin:te,closeSize:de,[I==="top"?"iconMarginIconTop":"iconMargin"]:le,[I==="top"?"closeMarginIconTop":"closeMargin"]:be,[createKey("iconColor",k)]:Le}}=E.value;return{"--n-font-size":F,"--n-icon-color":Le,"--n-bezier":R,"--n-close-margin":be,"--n-icon-margin":le,"--n-icon-size":me,"--n-close-size":de,"--n-close-icon-size":oe,"--n-close-border-radius":W,"--n-close-color-hover":G,"--n-close-color-pressed":q,"--n-close-icon-color":K,"--n-close-icon-color-hover":X,"--n-close-icon-color-pressed":J,"--n-color":Q,"--n-text-color":U,"--n-border-radius":he,"--n-padding":fe,"--n-line-height":L,"--n-border":z,"--n-content-margin":te,"--n-title-font-size":ce,"--n-title-font-weight":Z,"--n-title-text-color":V,"--n-action-space":ne}}),B=C?useThemeClass("dialog",computed(()=>"".concat(d.type[0]).concat(w.value[0])),P,d):void 0;return{mergedClsPrefix:x,mergedIconPlacement:w,mergedTheme:E,handlePositiveClick:A,handleNegativeClick:S,handleCloseClick:$,cssVars:C?void 0:P,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender}},render(){var d;const{bordered:b,mergedIconPlacement:x,cssVars:C,closable:w,showIcon:A,title:S,content:$,action:E,negativeText:P,positiveText:B,positiveButtonProps:k,negativeButtonProps:I,handlePositiveClick:R,handleNegativeClick:F,mergedTheme:L,loading:z,type:V,mergedClsPrefix:U}=this;(d=this.onRender)===null||d===void 0||d.call(this);const Q=A?h$1(NBaseIcon,{clsPrefix:U,class:"".concat(U,"-dialog__icon")},{default:()=>resolveWrappedSlot(this.$slots.icon,G=>G||(this.icon?render$1(this.icon):iconRenderMap$2[this.type]()))}):null,W=resolveWrappedSlot(this.$slots.action,G=>G||B||P||E?h$1("div",{class:"".concat(U,"-dialog__action")},G||(E?[render$1(E)]:[this.negativeText&&h$1(NButton,Object.assign({theme:L.peers.Button,themeOverrides:L.peerOverrides.Button,ghost:!0,size:"small",onClick:F},I),{default:()=>render$1(this.negativeText)}),this.positiveText&&h$1(NButton,Object.assign({theme:L.peers.Button,themeOverrides:L.peerOverrides.Button,size:"small",type:V==="default"?"primary":V,disabled:z,loading:z,onClick:R},k),{default:()=>render$1(this.positiveText)})])):null);return h$1("div",{class:["".concat(U,"-dialog"),this.themeClass,this.closable&&"".concat(U,"-dialog--closable"),"".concat(U,"-dialog--icon-").concat(x),b&&"".concat(U,"-dialog--bordered")],style:C,role:"dialog"},w?h$1(NBaseClose,{clsPrefix:U,class:"".concat(U,"-dialog__close"),onClick:this.handleCloseClick}):null,A&&x==="top"?h$1("div",{class:"".concat(U,"-dialog-icon-container")},Q):null,h$1("div",{class:"".concat(U,"-dialog__title")},A&&x==="left"?Q:null,resolveSlot(this.$slots.header,()=>[render$1(S)])),h$1("div",{class:["".concat(U,"-dialog__content"),W?"":"".concat(U,"-dialog__content--last")]},resolveSlot(this.$slots.default,()=>[render$1($)])),W)}}),dialogProviderInjectionKey="n-dialog-provider",dialogApiInjectionKey="n-dialog-api",dialogReactiveListInjectionKey="n-dialog-reactive-list",self$p=d=>{const{modalColor:b,textColor2:x,boxShadow3:C}=d;return{color:b,textColor:x,boxShadow:C}},modalLight={name:"Modal",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Dialog:dialogLight$1,Card:cardLight$1},self:self$p},modalLight$1=modalLight,modalDark={name:"Modal",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Dialog:dialogDark$1,Card:cardDark$1},self:self$p},modalDark$1=modalDark,presetProps=Object.assign(Object.assign({},cardBaseProps),dialogProps),presetPropsKeys=keysOf(presetProps),NModalBodyWrapper=defineComponent({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},presetProps),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(d){const b=ref(null),x=ref(null),C=ref(d.show),w=ref(null),A=ref(null);watch(toRef$1(d,"show"),z=>{z&&(C.value=!0)}),useLockHtmlScroll(computed(()=>d.blockScroll&&C.value));const S=inject(modalInjectionKey);function $(){if(S.transformOriginRef.value==="center")return"";const{value:z}=w,{value:V}=A;if(z===null||V===null)return"";if(x.value){const U=x.value.containerScrollTop;return"".concat(z,"px ").concat(V+U,"px")}return""}function E(z){if(S.transformOriginRef.value==="center")return;const V=S.getMousePosition();if(!V||!x.value)return;const U=x.value.containerScrollTop,{offsetLeft:Q,offsetTop:W}=z;if(V){const G=V.y,q=V.x;w.value=-(Q-q),A.value=-(W-G-U)}z.style.transformOrigin=$()}function P(z){nextTick(()=>{E(z)})}function B(z){z.style.transformOrigin=$(),d.onBeforeLeave()}function k(){C.value=!1,w.value=null,A.value=null,d.onAfterLeave()}function I(){const{onClose:z}=d;z&&z()}function R(){d.onNegativeClick()}function F(){d.onPositiveClick()}const L=ref(null);return watch(L,z=>{z&&nextTick(()=>{const V=z.el;V&&b.value!==V&&(b.value=V)})}),provide(modalBodyInjectionKey,b),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,null),{mergedTheme:S.mergedThemeRef,appear:S.appearRef,isMounted:S.isMountedRef,mergedClsPrefix:S.mergedClsPrefixRef,bodyRef:b,scrollbarRef:x,displayed:C,childNodeRef:L,handlePositiveClick:F,handleNegativeClick:R,handleCloseClick:I,handleAfterLeave:k,handleBeforeLeave:B,handleEnter:P}},render(){const{$slots:d,$attrs:b,handleEnter:x,handleAfterLeave:C,handleBeforeLeave:w,preset:A,mergedClsPrefix:S}=this;let $=null;if(!A){if($=getFirstSlotVNode(d),!$){warn$3("modal","default slot is empty");return}$=cloneVNode($),$.props=mergeProps({class:"".concat(S,"-modal")},b,$.props||{})}return this.displayDirective==="show"||this.displayed||this.show?withDirectives(h$1("div",{role:"none",class:"".concat(S,"-modal-body-wrapper")},h$1(NScrollbar$1,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:"".concat(S,"-modal-scroll-content")},{default:()=>{var E;return[(E=this.renderMask)===null||E===void 0?void 0:E.call(this),h$1(FocusTrap,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var P;return h$1(Transition,{name:"fade-in-scale-up-transition",appear:(P=this.appear)!==null&&P!==void 0?P:this.isMounted,onEnter:x,onAfterEnter:this.onAfterEnter,onAfterLeave:C,onBeforeLeave:w},{default:()=>{const B=[[vShow,this.show]],{onClickoutside:k}=this;return k&&B.push([clickoutside$1,this.onClickoutside,void 0,{capture:!0}]),withDirectives(this.preset==="confirm"||this.preset==="dialog"?h$1(NDialog,Object.assign({},this.$attrs,{class:["".concat(S,"-modal"),this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},keep(this.$props,dialogPropKeys),{"aria-modal":"true"}),d):this.preset==="card"?h$1(NCard,Object.assign({},this.$attrs,{ref:"bodyRef",class:["".concat(S,"-modal"),this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},keep(this.$props,cardBasePropKeys),{"aria-modal":"true",role:"dialog"}),d):this.childNodeRef=$,B)}})}})]}})),[[vShow,this.displayDirective==="if"||this.displayed||this.show]]):null}}),style$6=c$3([cB("modal-container","\n position: fixed;\n left: 0;\n top: 0;\n height: 0;\n width: 0;\n display: flex;\n "),cB("modal-mask","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, .4);\n ",[fadeInTransition({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),cB("modal-body-wrapper","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: visible;\n ",[cB("modal-scroll-content","\n min-height: 100%;\n display: flex;\n position: relative;\n ")]),cB("modal","\n position: relative;\n align-self: center;\n color: var(--n-text-color);\n margin: auto;\n box-shadow: var(--n-box-shadow);\n ",[fadeInScaleUpTransition({duration:".25s",enterScale:".5"})])]),modalProps=Object.assign(Object.assign(Object.assign(Object.assign({},useTheme.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),presetProps),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),NModal=defineComponent({name:"Modal",inheritAttrs:!1,props:modalProps,setup(d){const b=ref(null),{mergedClsPrefixRef:x,namespaceRef:C,inlineThemeDisabled:w}=useConfig(d),A=useTheme("Modal","-modal",style$6,modalLight$1,d,x),S=useClicked(64),$=useClickPosition(),E=isMounted(),P=d.internalDialog?inject(dialogProviderInjectionKey,null):null,B=useIsComposing();function k(G){const{onUpdateShow:q,"onUpdate:show":K,onHide:X}=d;q&&call$1(q,G),K&&call$1(K,G),X&&!G&&X(G)}function I(){const{onClose:G}=d;G?Promise.resolve(G()).then(q=>{q!==!1&&k(!1)}):k(!1)}function R(){const{onPositiveClick:G}=d;G?Promise.resolve(G()).then(q=>{q!==!1&&k(!1)}):k(!1)}function F(){const{onNegativeClick:G}=d;G?Promise.resolve(G()).then(q=>{q!==!1&&k(!1)}):k(!1)}function L(){const{onBeforeLeave:G,onBeforeHide:q}=d;G&&call$1(G),q&&q()}function z(){const{onAfterLeave:G,onAfterHide:q}=d;G&&call$1(G),q&&q()}function V(G){var q;const{onMaskClick:K}=d;K&&K(G),d.maskClosable&&!((q=b.value)===null||q===void 0)&&q.contains(getPreciseEventTarget(G))&&k(!1)}function U(G){var q;(q=d.onEsc)===null||q===void 0||q.call(d),d.show&&d.closeOnEsc&&eventEffectNotPerformed(G)&&!B.value&&k(!1)}provide(modalInjectionKey,{getMousePosition:()=>{if(P){const{clickedRef:G,clickPositionRef:q}=P;if(G.value&&q.value)return q.value}return S.value?$.value:null},mergedClsPrefixRef:x,mergedThemeRef:A,isMountedRef:E,appearRef:toRef$1(d,"internalAppear"),transformOriginRef:toRef$1(d,"transformOrigin")});const Q=computed(()=>{const{common:{cubicBezierEaseOut:G},self:{boxShadow:q,color:K,textColor:X}}=A.value;return{"--n-bezier-ease-out":G,"--n-box-shadow":q,"--n-color":K,"--n-text-color":X}}),W=w?useThemeClass("theme-class",void 0,Q,d):void 0;return{mergedClsPrefix:x,namespace:C,isMounted:E,containerRef:b,presetProps:computed(()=>keep(d,presetPropsKeys)),handleEsc:U,handleAfterLeave:z,handleClickoutside:V,handleBeforeLeave:L,doUpdateShow:k,handleNegativeClick:F,handlePositiveClick:R,handleCloseClick:I,cssVars:w?void 0:Q,themeClass:W==null?void 0:W.themeClass,onRender:W==null?void 0:W.onRender}},render(){const{mergedClsPrefix:d}=this;return h$1(LazyTeleport,{to:this.to,show:this.show},{default:()=>{var b;(b=this.onRender)===null||b===void 0||b.call(this);const{unstableShowMask:x}=this;return withDirectives(h$1("div",{role:"none",ref:"containerRef",class:["".concat(d,"-modal-container"),this.themeClass,this.namespace],style:this.cssVars},h$1(NModalBodyWrapper,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:x?void 0:this.handleClickoutside,renderMask:x?()=>{var C;return h$1(Transition,{name:"fade-in-transition",key:"mask",appear:(C=this.internalAppear)!==null&&C!==void 0?C:this.isMounted},{default:()=>this.show?h$1("div",{"aria-hidden":!0,ref:"containerRef",class:"".concat(d,"-modal-mask"),onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[zindexable$1,{zIndex:this.zIndex,enabled:this.show}]])}})}}),exposedDialogEnvProps=Object.assign(Object.assign({},dialogProps),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),NDialogEnvironment=defineComponent({name:"DialogEnvironment",props:Object.assign(Object.assign({},exposedDialogEnvProps),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(d){const b=ref(!0);function x(){const{onInternalAfterLeave:B,internalKey:k,onAfterLeave:I}=d;B&&B(k),I&&I()}function C(B){const{onPositiveClick:k}=d;k?Promise.resolve(k(B)).then(I=>{I!==!1&&E()}):E()}function w(B){const{onNegativeClick:k}=d;k?Promise.resolve(k(B)).then(I=>{I!==!1&&E()}):E()}function A(){const{onClose:B}=d;B?Promise.resolve(B()).then(k=>{k!==!1&&E()}):E()}function S(B){const{onMaskClick:k,maskClosable:I}=d;k&&(k(B),I&&E())}function $(){const{onEsc:B}=d;B&&B()}function E(){b.value=!1}function P(B){b.value=B}return{show:b,hide:E,handleUpdateShow:P,handleAfterLeave:x,handleCloseClick:A,handleNegativeClick:w,handlePositiveClick:C,handleMaskClick:S,handleEsc:$}},render(){const{handlePositiveClick:d,handleUpdateShow:b,handleNegativeClick:x,handleCloseClick:C,handleAfterLeave:w,handleMaskClick:A,handleEsc:S,to:$,maskClosable:E,show:P}=this;return h$1(NModal,{show:P,onUpdateShow:b,onMaskClick:A,onEsc:S,to:$,maskClosable:E,onAfterEnter:this.onAfterEnter,onAfterLeave:w,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>h$1(NDialog,Object.assign({},keep(this.$props,dialogPropKeys),{style:this.internalStyle,onClose:C,onNegativeClick:x,onPositiveClick:d}))})}}),dialogProviderProps={injectionKey:String,to:[String,Object]},NDialogProvider=defineComponent({name:"DialogProvider",props:dialogProviderProps,setup(){const d=ref([]),b={};function x($={}){const E=createId(),P=reactive(Object.assign(Object.assign({},$),{key:E,destroy:()=>{b["n-dialog-".concat(E)].hide()}}));return d.value.push(P),P}const C=["info","success","warning","error"].map($=>E=>x(Object.assign(Object.assign({},E),{type:$})));function w($){const{value:E}=d;E.splice(E.findIndex(P=>P.key===$),1)}function A(){Object.values(b).forEach($=>{$.hide()})}const S={create:x,destroyAll:A,info:C[0],success:C[1],warning:C[2],error:C[3]};return provide(dialogApiInjectionKey,S),provide(dialogProviderInjectionKey,{clickedRef:useClicked(64),clickPositionRef:useClickPosition()}),provide(dialogReactiveListInjectionKey,d),Object.assign(Object.assign({},S),{dialogList:d,dialogInstRefs:b,handleAfterLeave:w})},render(){var d,b;return h$1(Fragment,null,[this.dialogList.map(x=>h$1(NDialogEnvironment,omit(x,["destroy","style"],{internalStyle:x.style,to:this.to,ref:C=>{C===null?delete this.dialogInstRefs["n-dialog-".concat(x.key)]:this.dialogInstRefs["n-dialog-".concat(x.key)]=C},internalKey:x.key,onInternalAfterLeave:this.handleAfterLeave}))),(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d)])}});function useDialog(){const d=inject(dialogApiInjectionKey,null);return d===null&&throwError("use-dialog","No outer founded."),d}const self$o=d=>{const{textColor1:b,dividerColor:x,fontWeightStrong:C}=d;return{textColor:b,color:x,fontWeight:C}},dividerDark={name:"Divider",common:commonDark,self:self$o},dividerDark$1=dividerDark,self$n=d=>{const{modalColor:b,textColor1:x,textColor2:C,boxShadow3:w,lineHeight:A,fontWeightStrong:S,dividerColor:$,closeColorHover:E,closeColorPressed:P,closeIconColor:B,closeIconColorHover:k,closeIconColorPressed:I,borderRadius:R,primaryColorHover:F}=d;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:b,textColor:C,titleTextColor:x,titleFontSize:"18px",titleFontWeight:S,boxShadow:w,lineHeight:A,headerBorderBottom:"1px solid ".concat($),footerBorderTop:"1px solid ".concat($),closeIconColor:B,closeIconColorHover:k,closeIconColorPressed:I,closeSize:"22px",closeIconSize:"18px",closeColorHover:E,closeColorPressed:P,closeBorderRadius:R,resizableTriggerColorHover:F}},drawerDark={name:"Drawer",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self:self$n},drawerDark$1=drawerDark,commonVariables$6={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},dynamicInputDark={name:"DynamicInput",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1},self(){return commonVariables$6}},dynamicInputDark$1=dynamicInputDark,commonVars$4={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},spaceDark={name:"Space",self(){return commonVars$4}},spaceDark$1=spaceDark,self$m=()=>commonVars$4,spaceLight={name:"Space",self:self$m},spaceLight$1=spaceLight;let supportFlexGap;const ensureSupportFlexGap=()=>{if(!isBrowser$2)return!0;if(supportFlexGap===void 0){const d=document.createElement("div");d.style.display="flex",d.style.flexDirection="column",d.style.rowGap="1px",d.appendChild(document.createElement("div")),d.appendChild(document.createElement("div")),document.body.appendChild(d);const b=d.scrollHeight===1;return document.body.removeChild(d),supportFlexGap=b}return supportFlexGap},spaceProps=Object.assign(Object.assign({},useTheme.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),NSpace=defineComponent({name:"Space",props:spaceProps,setup(d){const{mergedClsPrefixRef:b,mergedRtlRef:x}=useConfig(d),C=useTheme("Space","-space",void 0,spaceLight$1,d,b),w=useRtl("Space",x,b);return{useGap:ensureSupportFlexGap(),rtlEnabled:w,mergedClsPrefix:b,margin:computed(()=>{const{size:A}=d;if(Array.isArray(A))return{horizontal:A[0],vertical:A[1]};if(typeof A=="number")return{horizontal:A,vertical:A};const{self:{[createKey("gap",A)]:S}}=C.value,{row:$,col:E}=getGap(S);return{horizontal:depx(E),vertical:depx($)}})}},render(){const{vertical:d,align:b,inline:x,justify:C,itemStyle:w,margin:A,wrap:S,mergedClsPrefix:$,rtlEnabled:E,useGap:P,wrapItem:B,internalUseGap:k}=this,I=flatten$4(getSlot$1(this));if(!I.length)return null;const R="".concat(A.horizontal,"px"),F="".concat(A.horizontal/2,"px"),L="".concat(A.vertical,"px"),z="".concat(A.vertical/2,"px"),V=I.length-1,U=C.startsWith("space-");return h$1("div",{role:"none",class:["".concat($,"-space"),E&&"".concat($,"-space--rtl")],style:{display:x?"inline-flex":"flex",flexDirection:d?"column":"row",justifyContent:["start","end"].includes(C)?"flex-"+C:C,flexWrap:!S||d?"nowrap":"wrap",marginTop:P||d?"":"-".concat(z),marginBottom:P||d?"":"-".concat(z),alignItems:b,gap:P?"".concat(A.vertical,"px ").concat(A.horizontal,"px"):""}},!B&&(P||k)?I:I.map((Q,W)=>h$1("div",{role:"none",style:[w,{maxWidth:"100%"},P?"":d?{marginBottom:W!==V?L:""}:E?{marginLeft:U?C==="space-between"&&W===V?"":F:W!==V?R:"",marginRight:U?C==="space-between"&&W===0?"":F:"",paddingTop:z,paddingBottom:z}:{marginRight:U?C==="space-between"&&W===V?"":F:W!==V?R:"",marginLeft:U?C==="space-between"&&W===0?"":F:"",paddingTop:z,paddingBottom:z}]},Q)))}}),dynamicTagsDark={name:"DynamicTags",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1,Tag:tagDark$1,Space:spaceDark$1},self(){return{inputWidth:"64px"}}},dynamicTagsDark$1=dynamicTagsDark,elementDark={name:"Element",common:commonDark},elementDark$1=elementDark,commonVariables$5={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},self$l=d=>{const{heightSmall:b,heightMedium:x,heightLarge:C,textColor1:w,errorColor:A,warningColor:S,lineHeight:$,textColor3:E}=d;return Object.assign(Object.assign({},commonVariables$5),{blankHeightSmall:b,blankHeightMedium:x,blankHeightLarge:C,lineHeight:$,labelTextColor:w,asteriskColor:A,feedbackTextColorError:A,feedbackTextColorWarning:S,feedbackTextColor:E})},formItemDark={name:"Form",common:commonDark,self:self$l},formDark=formItemDark,defaultSpan$1=1,gridInjectionKey="n-grid",defaultSpan=1,gridItemProps={span:{type:[Number,String],default:defaultSpan},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},NGi=defineComponent({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:gridItemProps,setup(){const{isSsrRef:d,xGapRef:b,itemStyleRef:x,overflowRef:C,layoutShiftDisabledRef:w}=inject(gridInjectionKey),A=getCurrentInstance();return{overflow:C,itemStyle:x,layoutShiftDisabled:w,mergedXGap:computed(()=>pxfy(b.value||0)),deriveStyle:()=>{d.value;const{privateSpan:S=defaultSpan,privateShow:$=!0,privateColStart:E=void 0,privateOffset:P=0}=A.vnode.props,{value:B}=b,k=pxfy(B||0);return{display:$?"":"none",gridColumn:"".concat(E!=null?E:"span ".concat(S)," / span ").concat(S),marginLeft:P?"calc((100% - (".concat(S," - 1) * ").concat(k,") / ").concat(S," * ").concat(P," + ").concat(k," * ").concat(P,")"):""}}}},render(){var d,b;if(this.layoutShiftDisabled){const{span:x,offset:C,mergedXGap:w}=this;return h$1("div",{style:{gridColumn:"span ".concat(x," / span ").concat(x),marginLeft:C?"calc((100% - (".concat(x," - 1) * ").concat(w,") / ").concat(x," * ").concat(C," + ").concat(w," * ").concat(C,")"):""}},this.$slots)}return h$1("div",{style:[this.itemStyle,this.deriveStyle()]},(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d,{overflow:this.overflow}))}}),gradientTextDark={name:"GradientText",common:commonDark,self(d){const{primaryColor:b,successColor:x,warningColor:C,errorColor:w,infoColor:A,primaryColorSuppl:S,successColorSuppl:$,warningColorSuppl:E,errorColorSuppl:P,infoColorSuppl:B,fontWeightStrong:k}=d;return{fontWeight:k,rotate:"252deg",colorStartPrimary:b,colorEndPrimary:S,colorStartInfo:A,colorEndInfo:B,colorStartWarning:C,colorEndWarning:E,colorStartError:w,colorEndError:P,colorStartSuccess:x,colorEndSuccess:$}}},gradientTextDark$1=gradientTextDark,defaultBreakpoints={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},defaultCols=24,SSR_ATTR_NAME="__ssr__",gridProps={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:defaultCols},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},NGrid=defineComponent({name:"Grid",inheritAttrs:!1,props:gridProps,setup(d){const{mergedClsPrefixRef:b,mergedBreakpointsRef:x}=useConfig(d),C=/^\d+$/,w=ref(void 0),A=useBreakpoints((x==null?void 0:x.value)||defaultBreakpoints),S=useMemo(()=>!!(d.itemResponsive||!C.test(d.cols.toString())||!C.test(d.xGap.toString())||!C.test(d.yGap.toString()))),$=computed(()=>{if(S.value)return d.responsive==="self"?w.value:A.value}),E=useMemo(()=>{var V;return(V=Number(parseResponsivePropValue(d.cols.toString(),$.value)))!==null&&V!==void 0?V:defaultCols}),P=useMemo(()=>parseResponsivePropValue(d.xGap.toString(),$.value)),B=useMemo(()=>parseResponsivePropValue(d.yGap.toString(),$.value)),k=V=>{w.value=V.contentRect.width},I=V=>{beforeNextFrameOnce(k,V)},R=ref(!1),F=computed(()=>{if(d.responsive==="self")return I}),L=ref(!1),z=ref();return onMounted(()=>{const{value:V}=z;V&&V.hasAttribute(SSR_ATTR_NAME)&&(V.removeAttribute(SSR_ATTR_NAME),L.value=!0)}),provide(gridInjectionKey,{layoutShiftDisabledRef:toRef$1(d,"layoutShiftDisabled"),isSsrRef:L,itemStyleRef:toRef$1(d,"itemStyle"),xGapRef:P,overflowRef:R}),{isSsr:!isBrowser$2,contentEl:z,mergedClsPrefix:b,style:computed(()=>d.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:"repeat(".concat(d.cols,", minmax(0, 1fr))"),columnGap:pxfy(d.xGap),rowGap:pxfy(d.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:"repeat(".concat(E.value,", minmax(0, 1fr))"),columnGap:pxfy(P.value),rowGap:pxfy(B.value)}),isResponsive:S,responsiveQuery:$,responsiveCols:E,handleResize:F,overflow:R}},render(){if(this.layoutShiftDisabled)return h$1("div",mergeProps({ref:"contentEl",class:"".concat(this.mergedClsPrefix,"-grid"),style:this.style},this.$attrs),this.$slots);const d=()=>{var b,x,C,w,A,S,$;this.overflow=!1;const E=flatten$4(getSlot$1(this)),P=[],{collapsed:B,collapsedRows:k,responsiveCols:I,responsiveQuery:R}=this;E.forEach(U=>{var Q,W,G,q;if(((Q=U==null?void 0:U.type)===null||Q===void 0?void 0:Q.__GRID_ITEM__)!==!0)return;if(isNodeVShowFalse(U)){const J=cloneVNode(U);J.props?J.props.privateShow=!1:J.props={privateShow:!1},P.push({child:J,rawChildSpan:0});return}U.dirs=((W=U.dirs)===null||W===void 0?void 0:W.filter(({dir:J})=>J!==vShow))||null;const K=cloneVNode(U),X=Number((q=parseResponsivePropValue((G=K.props)===null||G===void 0?void 0:G.span,R))!==null&&q!==void 0?q:defaultSpan$1);X!==0&&P.push({child:K,rawChildSpan:X})});let F=0;const L=(b=P[P.length-1])===null||b===void 0?void 0:b.child;if(L!=null&&L.props){const U=(x=L.props)===null||x===void 0?void 0:x.suffix;U!==void 0&&U!==!1&&(F=(w=(C=L.props)===null||C===void 0?void 0:C.span)!==null&&w!==void 0?w:defaultSpan$1,L.props.privateSpan=F,L.props.privateColStart=I+1-F,L.props.privateShow=(A=L.props.privateShow)!==null&&A!==void 0?A:!0)}let z=0,V=!1;for(const{child:U,rawChildSpan:Q}of P){if(V&&(this.overflow=!0),!V){const W=Number(($=parseResponsivePropValue((S=U.props)===null||S===void 0?void 0:S.offset,R))!==null&&$!==void 0?$:0),G=Math.min(Q+W,I);if(U.props?(U.props.privateSpan=G,U.props.privateOffset=W):U.props={privateSpan:G,privateOffset:W},B){const q=z%I;G+q>I&&(z+=I-q),G+z+F>k*I?V=!0:z+=G}}V&&(U.props?U.props.privateShow!==!0&&(U.props.privateShow=!1):U.props={privateShow:!1})}return h$1("div",mergeProps({ref:"contentEl",class:"".concat(this.mergedClsPrefix,"-grid"),style:this.style,[SSR_ATTR_NAME]:this.isSsr||void 0},this.$attrs),P.map(({child:U})=>U))};return this.isResponsive&&this.responsive==="self"?h$1(VResizeObserver,{onResize:this.handleResize},{default:d}):d()}}),self$k=d=>{const{primaryColor:b,baseColor:x}=d;return{color:b,iconColor:x}},iconDark={name:"IconWrapper",common:commonDark,self:self$k},iconWrapperDark=iconDark,commonVars$3={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},self$j=d=>{const{textColor2:b,successColor:x,infoColor:C,warningColor:w,errorColor:A,popoverColor:S,closeIconColor:$,closeIconColorHover:E,closeIconColorPressed:P,closeColorHover:B,closeColorPressed:k,textColor1:I,textColor3:R,borderRadius:F,fontWeightStrong:L,boxShadow2:z,lineHeight:V,fontSize:U}=d;return Object.assign(Object.assign({},commonVars$3),{borderRadius:F,lineHeight:V,fontSize:U,headerFontWeight:L,iconColor:b,iconColorSuccess:x,iconColorInfo:C,iconColorWarning:w,iconColorError:A,color:S,textColor:b,closeIconColor:$,closeIconColorHover:E,closeIconColorPressed:P,closeBorderRadius:F,closeColorHover:B,closeColorPressed:k,headerTextColor:I,descriptionTextColor:R,actionTextColor:b,boxShadow:z})},notificationLight={name:"Notification",common:commonLight,peers:{Scrollbar:scrollbarLight$1},self:self$j},notificationLight$1=notificationLight,notificationDark={name:"Notification",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self:self$j},notificationDark$1=notificationDark,commonVariables$4={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},self$i=d=>{const{textColor2:b,closeIconColor:x,closeIconColorHover:C,closeIconColorPressed:w,infoColor:A,successColor:S,errorColor:$,warningColor:E,popoverColor:P,boxShadow2:B,primaryColor:k,lineHeight:I,borderRadius:R,closeColorHover:F,closeColorPressed:L}=d;return Object.assign(Object.assign({},commonVariables$4),{closeBorderRadius:R,textColor:b,textColorInfo:b,textColorSuccess:b,textColorError:b,textColorWarning:b,textColorLoading:b,color:P,colorInfo:P,colorSuccess:P,colorError:P,colorWarning:P,colorLoading:P,boxShadow:B,boxShadowInfo:B,boxShadowSuccess:B,boxShadowError:B,boxShadowWarning:B,boxShadowLoading:B,iconColor:b,iconColorInfo:A,iconColorSuccess:S,iconColorWarning:E,iconColorError:$,iconColorLoading:k,closeColorHover:F,closeColorPressed:L,closeIconColor:x,closeIconColorHover:C,closeIconColorPressed:w,closeColorHoverInfo:F,closeColorPressedInfo:L,closeIconColorInfo:x,closeIconColorHoverInfo:C,closeIconColorPressedInfo:w,closeColorHoverSuccess:F,closeColorPressedSuccess:L,closeIconColorSuccess:x,closeIconColorHoverSuccess:C,closeIconColorPressedSuccess:w,closeColorHoverError:F,closeColorPressedError:L,closeIconColorError:x,closeIconColorHoverError:C,closeIconColorPressedError:w,closeColorHoverWarning:F,closeColorPressedWarning:L,closeIconColorWarning:x,closeIconColorHoverWarning:C,closeIconColorPressedWarning:w,closeColorHoverLoading:F,closeColorPressedLoading:L,closeIconColorLoading:x,closeIconColorHoverLoading:C,closeIconColorPressedLoading:w,loadingColor:k,lineHeight:I,borderRadius:R})},messageLight={name:"Message",common:commonLight,self:self$i},messageLight$1=messageLight,messageDark={name:"Message",common:commonDark,self:self$i},messageDark$1=messageDark,buttonGroupDark={name:"ButtonGroup",common:commonDark},buttonGroupDark$1=buttonGroupDark,inputNumberDark={name:"InputNumber",common:commonDark,peers:{Button:buttonDark$1,Input:inputDark$1},self(d){const{textColorDisabled:b}=d;return{iconColorDisabled:b}}},inputNumberDark$1=inputNumberDark,self$h=d=>{const{textColorDisabled:b}=d;return{iconColorDisabled:b}},inputNumberLight={name:"InputNumber",common:commonLight,peers:{Button:buttonLight$1,Input:inputLight$1},self:self$h},inputNumberLight$1=inputNumberLight,layoutDark={name:"Layout",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self(d){const{textColor2:b,bodyColor:x,popoverColor:C,cardColor:w,dividerColor:A,scrollbarColor:S,scrollbarColorHover:$}=d;return{textColor:b,textColorInverted:b,color:x,colorEmbedded:x,headerColor:w,headerColorInverted:w,footerColor:w,footerColorInverted:w,headerBorderColor:A,headerBorderColorInverted:A,footerBorderColor:A,footerBorderColorInverted:A,siderBorderColor:A,siderBorderColorInverted:A,siderColor:w,siderColorInverted:w,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:C,siderToggleButtonIconColor:b,siderToggleButtonIconColorInverted:b,siderToggleBarColor:composite(x,S),siderToggleBarColorHover:composite(x,$),__invertScrollbar:"false"}}},layoutDark$1=layoutDark,self$g=d=>{const{textColor2:b,cardColor:x,modalColor:C,popoverColor:w,dividerColor:A,borderRadius:S,fontSize:$,hoverColor:E}=d;return{textColor:b,color:x,colorHover:E,colorModal:C,colorHoverModal:composite(C,E),colorPopover:w,colorHoverPopover:composite(w,E),borderColor:A,borderColorModal:composite(C,A),borderColorPopover:composite(w,A),borderRadius:S,fontSize:$}},listDark$1={name:"List",common:commonDark,self:self$g},listDark$2=listDark$1,loadingBarDark={name:"LoadingBar",common:commonDark,self(d){const{primaryColor:b}=d;return{colorError:"red",colorLoading:b,height:"2px"}}},loadingBarDark$1=loadingBarDark,logDark={name:"Log",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Code:codeDark$1},self(d){const{textColor2:b,inputColor:x,fontSize:C,primaryColor:w}=d;return{loaderFontSize:C,loaderTextColor:b,loaderColor:x,loaderBorder:"1px solid #0000",loadingColor:w}}},logDark$1=logDark,listDark={name:"Mention",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,Input:inputDark$1},self(d){const{boxShadow2:b}=d;return{menuBoxShadow:b}}},mentionDark=listDark;function createPartialInvertedVars(d,b,x,C){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:b,itemColorActiveHoverInverted:b,itemColorActiveCollapsedInverted:b,itemTextColorInverted:d,itemTextColorHoverInverted:x,itemTextColorChildActiveInverted:x,itemTextColorChildActiveHoverInverted:x,itemTextColorActiveInverted:x,itemTextColorActiveHoverInverted:x,itemTextColorHorizontalInverted:d,itemTextColorHoverHorizontalInverted:x,itemTextColorChildActiveHorizontalInverted:x,itemTextColorChildActiveHoverHorizontalInverted:x,itemTextColorActiveHorizontalInverted:x,itemTextColorActiveHoverHorizontalInverted:x,itemIconColorInverted:d,itemIconColorHoverInverted:x,itemIconColorActiveInverted:x,itemIconColorActiveHoverInverted:x,itemIconColorChildActiveInverted:x,itemIconColorChildActiveHoverInverted:x,itemIconColorCollapsedInverted:d,itemIconColorHorizontalInverted:d,itemIconColorHoverHorizontalInverted:x,itemIconColorActiveHorizontalInverted:x,itemIconColorActiveHoverHorizontalInverted:x,itemIconColorChildActiveHorizontalInverted:x,itemIconColorChildActiveHoverHorizontalInverted:x,arrowColorInverted:d,arrowColorHoverInverted:x,arrowColorActiveInverted:x,arrowColorActiveHoverInverted:x,arrowColorChildActiveInverted:x,arrowColorChildActiveHoverInverted:x,groupTextColorInverted:C}}const self$f=d=>{const{borderRadius:b,textColor3:x,primaryColor:C,textColor2:w,textColor1:A,fontSize:S,dividerColor:$,hoverColor:E,primaryColorHover:P}=d;return Object.assign({borderRadius:b,color:"#0000",groupTextColor:x,itemColorHover:E,itemColorActive:changeColor(C,{alpha:.1}),itemColorActiveHover:changeColor(C,{alpha:.1}),itemColorActiveCollapsed:changeColor(C,{alpha:.1}),itemTextColor:w,itemTextColorHover:w,itemTextColorActive:C,itemTextColorActiveHover:C,itemTextColorChildActive:C,itemTextColorChildActiveHover:C,itemTextColorHorizontal:w,itemTextColorHoverHorizontal:P,itemTextColorActiveHorizontal:C,itemTextColorActiveHoverHorizontal:C,itemTextColorChildActiveHorizontal:C,itemTextColorChildActiveHoverHorizontal:C,itemIconColor:A,itemIconColorHover:A,itemIconColorActive:C,itemIconColorActiveHover:C,itemIconColorChildActive:C,itemIconColorChildActiveHover:C,itemIconColorCollapsed:A,itemIconColorHorizontal:A,itemIconColorHoverHorizontal:P,itemIconColorActiveHorizontal:C,itemIconColorActiveHoverHorizontal:C,itemIconColorChildActiveHorizontal:C,itemIconColorChildActiveHoverHorizontal:C,itemHeight:"42px",arrowColor:w,arrowColorHover:w,arrowColorActive:C,arrowColorActiveHover:C,arrowColorChildActive:C,arrowColorChildActiveHover:C,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:S,dividerColor:$},createPartialInvertedVars("#BBB",C,"#FFF","#AAA"))},menuDark={name:"Menu",common:commonDark,peers:{Tooltip:tooltipDark$1,Dropdown:dropdownDark$1},self(d){const{primaryColor:b,primaryColorSuppl:x}=d,C=self$f(d);return C.itemColorActive=changeColor(b,{alpha:.15}),C.itemColorActiveHover=changeColor(b,{alpha:.15}),C.itemColorActiveCollapsed=changeColor(b,{alpha:.15}),C.itemColorActiveInverted=x,C.itemColorActiveHoverInverted=x,C.itemColorActiveCollapsedInverted=x,C}},menuDark$1=menuDark,common={titleFontSize:"18px",backSize:"22px"};function self$e(d){const{textColor1:b,textColor2:x,textColor3:C,fontSize:w,fontWeightStrong:A,primaryColorHover:S,primaryColorPressed:$}=d;return Object.assign(Object.assign({},common),{titleFontWeight:A,fontSize:w,titleTextColor:b,backColor:x,backColorHover:S,backColorPressed:$,subtitleTextColor:C})}const pageHeaderDark={name:"PageHeader",common:commonDark,self:self$e},commonVars$2={iconSize:"22px"},self$d=d=>{const{fontSize:b,warningColor:x}=d;return Object.assign(Object.assign({},commonVars$2),{fontSize:b,iconColor:x})},popconfirmDark={name:"Popconfirm",common:commonDark,peers:{Button:buttonDark$1,Popover:popoverDark$1},self:self$d},popconfirmDark$1=popconfirmDark,self$c=d=>{const{infoColor:b,successColor:x,warningColor:C,errorColor:w,textColor2:A,progressRailColor:S,fontSize:$,fontWeight:E}=d;return{fontSize:$,fontSizeCircle:"28px",fontWeightCircle:E,railColor:S,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:b,iconColorInfo:b,iconColorSuccess:x,iconColorWarning:C,iconColorError:w,textColorCircle:A,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:A,fillColor:b,fillColorInfo:b,fillColorSuccess:x,fillColorWarning:C,fillColorError:w,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},progressDark={name:"Progress",common:commonDark,self(d){const b=self$c(d);return b.textColorLineInner="rgb(0, 0, 0)",b.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",b}},progressDark$1=progressDark,rateDark={name:"Rate",common:commonDark,self(d){const{railColor:b}=d;return{itemColor:b,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},rateDark$1=rateDark,commonVariables$3={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},self$b=d=>{const{textColor2:b,textColor1:x,errorColor:C,successColor:w,infoColor:A,warningColor:S,lineHeight:$,fontWeightStrong:E}=d;return Object.assign(Object.assign({},commonVariables$3),{lineHeight:$,titleFontWeight:E,titleTextColor:x,textColor:b,iconColorError:C,iconColorSuccess:w,iconColorInfo:A,iconColorWarning:S})},resultDark={name:"Result",common:commonDark,self:self$b},resultDark$1=resultDark,sizeVariables$3={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},sliderDark={name:"Slider",common:commonDark,self(d){const b="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:x,modalColor:C,primaryColorSuppl:w,popoverColor:A,textColor2:S,cardColor:$,borderRadius:E,fontSize:P,opacityDisabled:B}=d;return Object.assign(Object.assign({},sizeVariables$3),{fontSize:P,markFontSize:P,railColor:x,railColorHover:x,fillColor:w,fillColorHover:w,opacityDisabled:B,handleColor:"#FFF",dotColor:$,dotColorModal:C,dotColorPopover:A,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:A,indicatorBoxShadow:b,indicatorTextColor:S,indicatorBorderRadius:E,dotBorder:"2px solid ".concat(x),dotBorderActive:"2px solid ".concat(w),dotBoxShadow:""})}},sliderDark$1=sliderDark,self$a=d=>{const{opacityDisabled:b,heightTiny:x,heightSmall:C,heightMedium:w,heightLarge:A,heightHuge:S,primaryColor:$,fontSize:E}=d;return{fontSize:E,textColor:$,sizeTiny:x,sizeSmall:C,sizeMedium:w,sizeLarge:A,sizeHuge:S,color:$,opacitySpinning:b}},spinLight={name:"Spin",common:commonLight,self:self$a},spinLight$1=spinLight,spinDark={name:"Spin",common:commonDark,self:self$a},spinDark$1=spinDark,self$9=d=>{const{textColor2:b,textColor3:x,fontSize:C,fontWeight:w}=d;return{labelFontSize:C,labelFontWeight:w,valueFontWeight:w,valueFontSize:"24px",labelTextColor:x,valuePrefixTextColor:b,valueSuffixTextColor:b,valueTextColor:b}},statisticDark={name:"Statistic",common:commonDark,self:self$9},statisticDark$1=statisticDark,commonVariables$2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},self$8=d=>{const{fontWeightStrong:b,baseColor:x,textColorDisabled:C,primaryColor:w,errorColor:A,textColor1:S,textColor2:$}=d;return Object.assign(Object.assign({},commonVariables$2),{stepHeaderFontWeight:b,indicatorTextColorProcess:x,indicatorTextColorWait:C,indicatorTextColorFinish:w,indicatorTextColorError:A,indicatorBorderColorProcess:w,indicatorBorderColorWait:C,indicatorBorderColorFinish:w,indicatorBorderColorError:A,indicatorColorProcess:w,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:C,splitorColorWait:C,splitorColorFinish:w,splitorColorError:C,headerTextColorProcess:S,headerTextColorWait:C,headerTextColorFinish:C,headerTextColorError:A,descriptionTextColorProcess:$,descriptionTextColorWait:C,descriptionTextColorFinish:C,descriptionTextColorError:A})},stepsDark={name:"Steps",common:commonDark,self:self$8},stepsDark$1=stepsDark,commonVars$1={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},switchDark={name:"Switch",common:commonDark,self(d){const{primaryColorSuppl:b,opacityDisabled:x,borderRadius:C,primaryColor:w,textColor2:A,baseColor:S}=d,$="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},commonVars$1),{iconColor:S,textColor:A,loadingColor:b,opacityDisabled:x,railColor:$,railColorActive:b,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:C,railBorderRadiusMedium:C,railBorderRadiusLarge:C,buttonBorderRadiusSmall:C,buttonBorderRadiusMedium:C,buttonBorderRadiusLarge:C,boxShadowFocus:"0 0 8px 0 ".concat(changeColor(w,{alpha:.3}))})}},switchDark$1=switchDark,sizeVariables$2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},self$7=d=>{const{dividerColor:b,cardColor:x,modalColor:C,popoverColor:w,tableHeaderColor:A,tableColorStriped:S,textColor1:$,textColor2:E,borderRadius:P,fontWeightStrong:B,lineHeight:k,fontSizeSmall:I,fontSizeMedium:R,fontSizeLarge:F}=d;return Object.assign(Object.assign({},sizeVariables$2),{fontSizeSmall:I,fontSizeMedium:R,fontSizeLarge:F,lineHeight:k,borderRadius:P,borderColor:composite(x,b),borderColorModal:composite(C,b),borderColorPopover:composite(w,b),tdColor:x,tdColorModal:C,tdColorPopover:w,tdColorStriped:composite(x,S),tdColorStripedModal:composite(C,S),tdColorStripedPopover:composite(w,S),thColor:composite(x,A),thColorModal:composite(C,A),thColorPopover:composite(w,A),thTextColor:$,tdTextColor:E,thFontWeight:B})},tableLight={name:"Table",common:commonLight,self:self$7},tableLight$1=tableLight,tableDark={name:"Table",common:commonDark,self:self$7},tableDark$1=tableDark,sizeVariables$1={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},self$6=d=>{const{textColor2:b,primaryColor:x,textColorDisabled:C,closeIconColor:w,closeIconColorHover:A,closeIconColorPressed:S,closeColorHover:$,closeColorPressed:E,tabColor:P,baseColor:B,dividerColor:k,fontWeight:I,textColor1:R,borderRadius:F,fontSize:L,fontWeightStrong:z}=d;return Object.assign(Object.assign({},sizeVariables$1),{colorSegment:P,tabFontSizeCard:L,tabTextColorLine:R,tabTextColorActiveLine:x,tabTextColorHoverLine:x,tabTextColorDisabledLine:C,tabTextColorSegment:R,tabTextColorActiveSegment:b,tabTextColorHoverSegment:b,tabTextColorDisabledSegment:C,tabTextColorBar:R,tabTextColorActiveBar:x,tabTextColorHoverBar:x,tabTextColorDisabledBar:C,tabTextColorCard:R,tabTextColorHoverCard:R,tabTextColorActiveCard:x,tabTextColorDisabledCard:C,barColor:x,closeIconColor:w,closeIconColorHover:A,closeIconColorPressed:S,closeColorHover:$,closeColorPressed:E,closeBorderRadius:F,tabColor:P,tabColorSegment:B,tabBorderColor:k,tabFontWeightActive:I,tabFontWeight:I,tabBorderRadius:F,paneTextColor:b,fontWeightStrong:z})},tabsLight={name:"Tabs",common:commonLight,self:self$6},tabsLight$1=tabsLight,tabsDark={name:"Tabs",common:commonDark,self(d){const b=self$6(d),{inputColor:x}=d;return b.colorSegment=x,b.tabColorSegment=x,b}},tabsDark$1=tabsDark,self$5=d=>{const{textColor1:b,textColor2:x,fontWeightStrong:C,fontSize:w}=d;return{fontSize:w,titleTextColor:b,textColor:x,titleFontWeight:C}},thingDark={name:"Thing",common:commonDark,self:self$5},thingDark$1=thingDark,sizeVariables={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},timelineDark={name:"Timeline",common:commonDark,self(d){const{textColor3:b,infoColorSuppl:x,errorColorSuppl:C,successColorSuppl:w,warningColorSuppl:A,textColor1:S,textColor2:$,railColor:E,fontWeightStrong:P,fontSize:B}=d;return Object.assign(Object.assign({},sizeVariables),{contentFontSize:B,titleFontWeight:P,circleBorder:"2px solid ".concat(b),circleBorderInfo:"2px solid ".concat(x),circleBorderError:"2px solid ".concat(C),circleBorderSuccess:"2px solid ".concat(w),circleBorderWarning:"2px solid ".concat(A),iconColor:b,iconColorInfo:x,iconColorError:C,iconColorSuccess:w,iconColorWarning:A,titleTextColor:S,contentTextColor:$,metaTextColor:b,lineColor:E})}},timelineDark$1=timelineDark,commonVariables$1={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},transferDark$1={name:"Transfer",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Input:inputDark$1,Empty:emptyDark$1,Button:buttonDark$1},self(d){const{fontWeight:b,fontSizeLarge:x,fontSizeMedium:C,fontSizeSmall:w,heightLarge:A,heightMedium:S,borderRadius:$,inputColor:E,tableHeaderColor:P,textColor1:B,textColorDisabled:k,textColor2:I,textColor3:R,hoverColor:F,closeColorHover:L,closeColorPressed:z,closeIconColor:V,closeIconColorHover:U,closeIconColorPressed:Q,dividerColor:W}=d;return Object.assign(Object.assign({},commonVariables$1),{itemHeightSmall:S,itemHeightMedium:S,itemHeightLarge:A,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:x,borderRadius:$,dividerColor:W,borderColor:"#0000",listColor:E,headerColor:P,titleTextColor:B,titleTextColorDisabled:k,extraTextColor:R,extraTextColorDisabled:k,itemTextColor:I,itemTextColorDisabled:k,itemColorPending:F,titleFontWeight:b,closeColorHover:L,closeColorPressed:z,closeIconColor:V,closeIconColorHover:U,closeIconColorPressed:Q})}},transferDark$2=transferDark$1,self$4=d=>{const{borderRadiusSmall:b,hoverColor:x,pressedColor:C,primaryColor:w,textColor3:A,textColor2:S,textColorDisabled:$,fontSize:E}=d;return{fontSize:E,nodeBorderRadius:b,nodeColorHover:x,nodeColorPressed:C,nodeColorActive:changeColor(w,{alpha:.1}),arrowColor:A,nodeTextColor:S,nodeTextColorDisabled:$,loadingColor:w,dropMarkColor:w}},treeDark={name:"Tree",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Empty:emptyDark$1},self(d){const{primaryColor:b}=d,x=self$4(d);return x.nodeColorActive=changeColor(b,{alpha:.15}),x}},treeDark$1=treeDark,treeSelectDark={name:"TreeSelect",common:commonDark,peers:{Tree:treeDark$1,Empty:emptyDark$1,InternalSelection:internalSelectionDark$1}},treeSelectDark$1=treeSelectDark,commonVars={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},self$3=d=>{const{primaryColor:b,textColor2:x,borderColor:C,lineHeight:w,fontSize:A,borderRadiusSmall:S,dividerColor:$,fontWeightStrong:E,textColor1:P,textColor3:B,infoColor:k,warningColor:I,errorColor:R,successColor:F,codeColor:L}=d;return Object.assign(Object.assign({},commonVars),{aTextColor:b,blockquoteTextColor:x,blockquotePrefixColor:C,blockquoteLineHeight:w,blockquoteFontSize:A,codeBorderRadius:S,liTextColor:x,liLineHeight:w,liFontSize:A,hrColor:$,headerFontWeight:E,headerTextColor:P,pTextColor:x,pTextColor1Depth:P,pTextColor2Depth:x,pTextColor3Depth:B,pLineHeight:w,pFontSize:A,headerBarColor:b,headerBarColorPrimary:b,headerBarColorInfo:k,headerBarColorError:R,headerBarColorWarning:I,headerBarColorSuccess:F,textColor:x,textColor1Depth:P,textColor2Depth:x,textColor3Depth:B,textColorPrimary:b,textColorInfo:k,textColorSuccess:F,textColorWarning:I,textColorError:R,codeTextColor:x,codeColor:L,codeBorder:"1px solid #0000"})},typographyDark={name:"Typography",common:commonDark,self:self$3},typographyDark$1=typographyDark,self$2=d=>{const{iconColor:b,primaryColor:x,errorColor:C,textColor2:w,successColor:A,opacityDisabled:S,actionColor:$,borderColor:E,hoverColor:P,lineHeight:B,borderRadius:k,fontSize:I}=d;return{fontSize:I,lineHeight:B,borderRadius:k,draggerColor:$,draggerBorder:"1px dashed ".concat(E),draggerBorderHover:"1px dashed ".concat(x),itemColorHover:P,itemColorHoverError:changeColor(C,{alpha:.06}),itemTextColor:w,itemTextColorError:C,itemTextColorSuccess:A,itemIconColor:b,itemDisabledOpacity:S,itemBorderImageCardError:"1px solid ".concat(C),itemBorderImageCard:"1px solid ".concat(E)}},uploadDark={name:"Upload",common:commonDark,peers:{Button:buttonDark$1,Progress:progressDark$1},self(d){const{errorColor:b}=d,x=self$2(d);return x.itemColorHoverError=changeColor(b,{alpha:.09}),x}},uploadDark$1=uploadDark,watermarkDark={name:"Watermark",common:commonDark,self(d){const{fontFamily:b}=d;return{fontFamily:b}}},watermarkDark$1=watermarkDark,rowDark={name:"Row",common:commonDark},rowDark$1=rowDark,imageDark={name:"Image",common:commonDark,peers:{Tooltip:tooltipDark$1},self:d=>{const{textColor2:b}=d;return{toolbarIconColor:b,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function parse(d){return d==null||typeof d=="string"&&d.trim()===""?null:Number(d)}function isWipValue(d){return d.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(d)||/^\.\d+$/.test(d))}function validator(d){return d==null?!0:!Number.isNaN(d)}function format(d,b){return d==null?"":b===void 0?String(d):d.toFixed(b)}function parseNumber(d){if(d===null)return null;if(typeof d=="number")return d;{const b=Number(d);return Number.isNaN(b)?null:b}}const style$5=c$3([cB("input-number-suffix","\n display: inline-block;\n margin-right: 10px;\n "),cB("input-number-prefix","\n display: inline-block;\n margin-left: 10px;\n ")]),HOLDING_CHANGE_THRESHOLD=800,HOLDING_CHANGE_INTERVAL=100,inputNumberProps=Object.assign(Object.assign({},useTheme.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),NInputNumber=defineComponent({name:"InputNumber",props:inputNumberProps,setup(d){const{mergedBorderedRef:b,mergedClsPrefixRef:x,mergedRtlRef:C}=useConfig(d),w=useTheme("InputNumber","-input-number",style$5,inputNumberLight$1,d,x),{localeRef:A}=useLocale("InputNumber"),S=useFormItem(d),{mergedSizeRef:$,mergedDisabledRef:E,mergedStatusRef:P}=S,B=ref(null),k=ref(null),I=ref(null),R=ref(d.defaultValue),F=toRef$1(d,"value"),L=useMergedState(F,R),z=ref(""),V=ge=>{const Ee=String(ge).split(".")[1];return Ee?Ee.length:0},U=ge=>{const Ee=[d.min,d.max,d.step,ge].map(ke=>ke===void 0?0:V(ke));return Math.max(...Ee)},Q=useMemo(()=>{const{placeholder:ge}=d;return ge!==void 0?ge:A.value.placeholder}),W=useMemo(()=>{const ge=parseNumber(d.step);return ge!==null?ge===0?1:Math.abs(ge):1}),G=useMemo(()=>{const ge=parseNumber(d.min);return ge!==null?ge:null}),q=useMemo(()=>{const ge=parseNumber(d.max);return ge!==null?ge:null}),K=ge=>{const{value:Ee}=L;if(ge===Ee){J();return}const{"onUpdate:value":ke,onUpdateValue:Ae,onChange:ve}=d,{nTriggerFormInput:De,nTriggerFormChange:We}=S;ve&&call$1(ve,ge),Ae&&call$1(Ae,ge),ke&&call$1(ke,ge),R.value=ge,De(),We()},X=({offset:ge,doUpdateIfValid:Ee,fixPrecision:ke,isInputing:Ae})=>{const{value:ve}=z;if(Ae&&isWipValue(ve))return!1;const De=(d.parse||parse)(ve);if(De===null)return Ee&&K(null),null;if(validator(De)){const We=V(De),{precision:Ye}=d;if(Ye!==void 0&&Yent){if(!Ee||Ae)return!1;Je=nt}if(dt!==null&&Je{const{value:ge}=L;if(validator(ge)){const{format:Ee,precision:ke}=d;Ee?z.value=Ee(ge):ge===null||ke===void 0||V(ge)>ke?z.value=format(ge,void 0):z.value=format(ge,ke)}else z.value=String(ge)};J();const oe=useMemo(()=>X({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),he=useMemo(()=>{const{value:ge}=L;if(d.validator&&ge===null)return!1;const{value:Ee}=W;return X({offset:-Ee,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),Z=useMemo(()=>{const{value:ge}=L;if(d.validator&&ge===null)return!1;const{value:Ee}=W;return X({offset:+Ee,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function ce(ge){const{onFocus:Ee}=d,{nTriggerFormFocus:ke}=S;Ee&&call$1(Ee,ge),ke()}function fe(ge){var Ee,ke;if(ge.target===((Ee=B.value)===null||Ee===void 0?void 0:Ee.wrapperElRef))return;const Ae=X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(Ae!==!1){const We=(ke=B.value)===null||ke===void 0?void 0:ke.inputElRef;We&&(We.value=String(Ae||"")),L.value===Ae&&J()}else J();const{onBlur:ve}=d,{nTriggerFormBlur:De}=S;ve&&call$1(ve,ge),De(),nextTick(()=>{J()})}function me(ge){const{onClear:Ee}=d;Ee&&call$1(Ee,ge)}function ne(){const{value:ge}=Z;if(!ge){Be();return}const{value:Ee}=L;if(Ee===null)d.validator||K(be());else{const{value:ke}=W;X({offset:ke,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function te(){const{value:ge}=he;if(!ge){it();return}const{value:Ee}=L;if(Ee===null)d.validator||K(be());else{const{value:ke}=W;X({offset:-ke,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const de=ce,le=fe;function be(){if(d.validator)return null;const{value:ge}=G,{value:Ee}=q;return ge!==null?Math.max(0,ge):Ee!==null?Math.min(0,Ee):0}function Le(ge){me(ge),K(null)}function Qe(ge){var Ee,ke,Ae;!((Ee=I.value)===null||Ee===void 0)&&Ee.$el.contains(ge.target)&&ge.preventDefault(),!((ke=k.value)===null||ke===void 0)&&ke.$el.contains(ge.target)&&ge.preventDefault(),(Ae=B.value)===null||Ae===void 0||Ae.activate()}let rt=null,ht=null,ct=null;function it(){ct&&(window.clearTimeout(ct),ct=null),rt&&(window.clearInterval(rt),rt=null)}function Be(){Fe&&(window.clearTimeout(Fe),Fe=null),ht&&(window.clearInterval(ht),ht=null)}function Ie(){it(),ct=window.setTimeout(()=>{rt=window.setInterval(()=>{te()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,it,{once:!0})}let Fe=null;function ie(){Be(),Fe=window.setTimeout(()=>{ht=window.setInterval(()=>{ne()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,Be,{once:!0})}const $e=()=>{ht||ne()},re=()=>{rt||te()};function se(ge){var Ee,ke;if(ge.key==="Enter"){if(ge.target===((Ee=B.value)===null||Ee===void 0?void 0:Ee.wrapperElRef))return;X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ke=B.value)===null||ke===void 0||ke.deactivate())}else if(ge.key==="ArrowUp"){if(!Z.value||d.keyboard.ArrowUp===!1)return;ge.preventDefault(),X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ne()}else if(ge.key==="ArrowDown"){if(!he.value||d.keyboard.ArrowDown===!1)return;ge.preventDefault(),X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&te()}}function Ce(ge){z.value=ge,d.updateValueOnInput&&!d.format&&!d.parse&&d.precision===void 0&&X({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}watch(L,()=>{J()});const Ne={focus:()=>{var ge;return(ge=B.value)===null||ge===void 0?void 0:ge.focus()},blur:()=>{var ge;return(ge=B.value)===null||ge===void 0?void 0:ge.blur()}},we=useRtl("InputNumber",C,x);return Object.assign(Object.assign({},Ne),{rtlEnabled:we,inputInstRef:B,minusButtonInstRef:k,addButtonInstRef:I,mergedClsPrefix:x,mergedBordered:b,uncontrolledValue:R,mergedValue:L,mergedPlaceholder:Q,displayedValueInvalid:oe,mergedSize:$,mergedDisabled:E,displayedValue:z,addable:Z,minusable:he,mergedStatus:P,handleFocus:de,handleBlur:le,handleClear:Le,handleMouseDown:Qe,handleAddClick:$e,handleMinusClick:re,handleAddMousedown:ie,handleMinusMousedown:Ie,handleKeyDown:se,handleUpdateDisplayedValue:Ce,mergedTheme:w,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:computed(()=>{const{self:{iconColorDisabled:ge}}=w.value,[Ee,ke,Ae,ve]=rgba(ge);return{textColorTextDisabled:"rgb(".concat(Ee,", ").concat(ke,", ").concat(Ae,")"),opacityDisabled:"".concat(ve)}})})},render(){const{mergedClsPrefix:d,$slots:b}=this,x=()=>h$1(XButton,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>resolveSlot(b["minus-icon"],()=>[h$1(NBaseIcon,{clsPrefix:d},{default:()=>h$1(RemoveIcon,null)})])}),C=()=>h$1(XButton,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>resolveSlot(b["add-icon"],()=>[h$1(NBaseIcon,{clsPrefix:d},{default:()=>h$1(AddIcon,null)})])});return h$1("div",{class:["".concat(d,"-input-number"),this.rtlEnabled&&"".concat(d,"-input-number--rtl")]},h$1(NInput,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var w;return this.showButton&&this.buttonPlacement==="both"?[x(),resolveWrappedSlot(b.prefix,A=>A?h$1("span",{class:"".concat(d,"-input-number-prefix")},A):null)]:(w=b.prefix)===null||w===void 0?void 0:w.call(b)},suffix:()=>{var w;return this.showButton?[resolveWrappedSlot(b.suffix,A=>A?h$1("span",{class:"".concat(d,"-input-number-suffix")},A):null),this.buttonPlacement==="right"?x():null,C()]:(w=b.suffix)===null||w===void 0?void 0:w.call(b)}}))}}),commonVariables={extraFontSize:"12px",width:"440px"},transferDark={name:"Transfer",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Input:inputDark$1,Empty:emptyDark$1,Button:buttonDark$1},self(d){const{iconColorDisabled:b,iconColor:x,fontWeight:C,fontSizeLarge:w,fontSizeMedium:A,fontSizeSmall:S,heightLarge:$,heightMedium:E,heightSmall:P,borderRadius:B,inputColor:k,tableHeaderColor:I,textColor1:R,textColorDisabled:F,textColor2:L,hoverColor:z}=d;return Object.assign(Object.assign({},commonVariables),{itemHeightSmall:P,itemHeightMedium:E,itemHeightLarge:$,fontSizeSmall:S,fontSizeMedium:A,fontSizeLarge:w,borderRadius:B,borderColor:"#0000",listColor:k,headerColor:I,titleTextColor:R,titleTextColorDisabled:F,extraTextColor:L,filterDividerColor:"#0000",itemTextColor:L,itemTextColorDisabled:F,itemColorPending:z,titleFontWeight:C,iconColor:x,iconColorDisabled:b})}},legacyTransferDark=transferDark,messageProps={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},messageApiInjectionKey="n-message-api",messageProviderInjectionKey="n-message-provider",style$4=c$3([cB("message-wrapper","\n margin: var(--n-margin);\n z-index: 0;\n transform-origin: top center;\n display: flex;\n ",[fadeInHeightExpandTransition({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),cB("message","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier),\n margin-bottom .3s var(--n-bezier);\n padding: var(--n-padding);\n border-radius: var(--n-border-radius);\n flex-wrap: nowrap;\n overflow: hidden;\n max-width: var(--n-max-width);\n color: var(--n-text-color);\n background-color: var(--n-color);\n box-shadow: var(--n-box-shadow);\n ",[cE("content","\n display: inline-block;\n line-height: var(--n-line-height);\n font-size: var(--n-font-size);\n "),cE("icon","\n position: relative;\n margin: var(--n-icon-margin);\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n flex-shrink: 0;\n ",[["default","info","success","warning","error","loading"].map(d=>cM("".concat(d,"-type"),[c$3("> *","\n color: var(--n-icon-color-".concat(d,");\n transition: color .3s var(--n-bezier);\n "))])),c$3("> *","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n ",[iconSwitchTransition()])]),cE("close","\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n flex-shrink: 0;\n ",[c$3("&:hover","\n color: var(--n-close-icon-color-hover);\n "),c$3("&:active","\n color: var(--n-close-icon-color-pressed);\n ")])]),cB("message-container","\n z-index: 6000;\n position: fixed;\n height: 0;\n overflow: visible;\n display: flex;\n flex-direction: column;\n align-items: center;\n ",[cM("top","\n top: 12px;\n left: 0;\n right: 0;\n "),cM("top-left","\n top: 12px;\n left: 12px;\n right: 0;\n align-items: flex-start;\n "),cM("top-right","\n top: 12px;\n left: 0;\n right: 12px;\n align-items: flex-end;\n "),cM("bottom","\n bottom: 4px;\n left: 0;\n right: 0;\n justify-content: flex-end;\n "),cM("bottom-left","\n bottom: 4px;\n left: 12px;\n right: 0;\n justify-content: flex-end;\n align-items: flex-start;\n "),cM("bottom-right","\n bottom: 4px;\n left: 0;\n right: 12px;\n justify-content: flex-end;\n align-items: flex-end;\n ")])]),iconRenderMap$1={info:()=>h$1(InfoIcon,null),success:()=>h$1(SuccessIcon,null),warning:()=>h$1(WarningIcon,null),error:()=>h$1(ErrorIcon,null),default:()=>null},NMessage=defineComponent({name:"Message",props:Object.assign(Object.assign({},messageProps),{render:Function}),setup(d){const{inlineThemeDisabled:b,mergedRtlRef:x}=useConfig(d),{props:C,mergedClsPrefixRef:w}=inject(messageProviderInjectionKey),A=useRtl("Message",x,w),S=useTheme("Message","-message",style$4,messageLight$1,C,w),$=computed(()=>{const{type:P}=d,{common:{cubicBezierEaseInOut:B},self:{padding:k,margin:I,maxWidth:R,iconMargin:F,closeMargin:L,closeSize:z,iconSize:V,fontSize:U,lineHeight:Q,borderRadius:W,iconColorInfo:G,iconColorSuccess:q,iconColorWarning:K,iconColorError:X,iconColorLoading:J,closeIconSize:oe,closeBorderRadius:he,[createKey("textColor",P)]:Z,[createKey("boxShadow",P)]:ce,[createKey("color",P)]:fe,[createKey("closeColorHover",P)]:me,[createKey("closeColorPressed",P)]:ne,[createKey("closeIconColor",P)]:te,[createKey("closeIconColorPressed",P)]:de,[createKey("closeIconColorHover",P)]:le}}=S.value;return{"--n-bezier":B,"--n-margin":I,"--n-padding":k,"--n-max-width":R,"--n-font-size":U,"--n-icon-margin":F,"--n-icon-size":V,"--n-close-icon-size":oe,"--n-close-border-radius":he,"--n-close-size":z,"--n-close-margin":L,"--n-text-color":Z,"--n-color":fe,"--n-box-shadow":ce,"--n-icon-color-info":G,"--n-icon-color-success":q,"--n-icon-color-warning":K,"--n-icon-color-error":X,"--n-icon-color-loading":J,"--n-close-color-hover":me,"--n-close-color-pressed":ne,"--n-close-icon-color":te,"--n-close-icon-color-pressed":de,"--n-close-icon-color-hover":le,"--n-line-height":Q,"--n-border-radius":W}}),E=b?useThemeClass("message",computed(()=>d.type[0]),$,{}):void 0;return{mergedClsPrefix:w,rtlEnabled:A,messageProviderProps:C,handleClose(){var P;(P=d.onClose)===null||P===void 0||P.call(d)},cssVars:b?void 0:$,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender,placement:C.placement}},render(){const{render:d,type:b,closable:x,content:C,mergedClsPrefix:w,cssVars:A,themeClass:S,onRender:$,icon:E,handleClose:P,showIcon:B}=this;$==null||$();let k;return h$1("div",{class:["".concat(w,"-message-wrapper"),S],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},A]},d?d(this.$props):h$1("div",{class:["".concat(w,"-message ").concat(w,"-message--").concat(b,"-type"),this.rtlEnabled&&"".concat(w,"-message--rtl")]},(k=createIconVNode(E,b,w))&&B?h$1("div",{class:"".concat(w,"-message__icon ").concat(w,"-message__icon--").concat(b,"-type")},h$1(NIconSwitchTransition,null,{default:()=>k})):null,h$1("div",{class:"".concat(w,"-message__content")},render$1(C)),x?h$1(NBaseClose,{clsPrefix:w,class:"".concat(w,"-message__close"),onClick:P,absolute:!0}):null))}});function createIconVNode(d,b,x){if(typeof d=="function")return d();{const C=b==="loading"?h$1(NBaseLoading,{clsPrefix:x,strokeWidth:24,scale:.85}):iconRenderMap$1[b]();return C?h$1(NBaseIcon,{clsPrefix:x,key:b},{default:()=>C}):null}}const MessageEnvironment=defineComponent({name:"MessageEnvironment",props:Object.assign(Object.assign({},messageProps),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(d){let b=null;const x=ref(!0);onMounted(()=>{C()});function C(){const{duration:B}=d;B&&(b=window.setTimeout(S,B))}function w(B){B.currentTarget===B.target&&b!==null&&(window.clearTimeout(b),b=null)}function A(B){B.currentTarget===B.target&&C()}function S(){const{onHide:B}=d;x.value=!1,b&&(window.clearTimeout(b),b=null),B&&B()}function $(){const{onClose:B}=d;B&&B(),S()}function E(){const{onAfterLeave:B,onInternalAfterLeave:k,onAfterHide:I,internalKey:R}=d;B&&B(),k&&k(R),I&&I()}function P(){S()}return{show:x,hide:S,handleClose:$,handleAfterLeave:E,handleMouseleave:A,handleMouseenter:w,deactivate:P}},render(){return h$1(NFadeInExpandTransition,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?h$1(NMessage,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),messageProviderProps=Object.assign(Object.assign({},useTheme.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),NMessageProvider=defineComponent({name:"MessageProvider",props:messageProviderProps,setup(d){const{mergedClsPrefixRef:b}=useConfig(d),x=ref([]),C=ref({}),w={create(E,P){return A(E,Object.assign({type:"default"},P))},info(E,P){return A(E,Object.assign(Object.assign({},P),{type:"info"}))},success(E,P){return A(E,Object.assign(Object.assign({},P),{type:"success"}))},warning(E,P){return A(E,Object.assign(Object.assign({},P),{type:"warning"}))},error(E,P){return A(E,Object.assign(Object.assign({},P),{type:"error"}))},loading(E,P){return A(E,Object.assign(Object.assign({},P),{type:"loading"}))},destroyAll:$};provide(messageProviderInjectionKey,{props:d,mergedClsPrefixRef:b}),provide(messageApiInjectionKey,w);function A(E,P){const B=createId(),k=reactive(Object.assign(Object.assign({},P),{content:E,key:B,destroy:()=>{var R;(R=C.value[B])===null||R===void 0||R.hide()}})),{max:I}=d;return I&&x.value.length>=I&&x.value.shift(),x.value.push(k),k}function S(E){x.value.splice(x.value.findIndex(P=>P.key===E),1),delete C.value[E]}function $(){Object.values(C.value).forEach(E=>{E.hide()})}return Object.assign({mergedClsPrefix:b,messageRefs:C,messageList:x,handleAfterLeave:S},w)},render(){var d,b,x;return h$1(Fragment,null,(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d),this.messageList.length?h$1(Teleport,{to:(x=this.to)!==null&&x!==void 0?x:"body"},h$1("div",{class:["".concat(this.mergedClsPrefix,"-message-container"),"".concat(this.mergedClsPrefix,"-message-container--").concat(this.placement)],key:"message-container",style:this.containerStyle},this.messageList.map(C=>h$1(MessageEnvironment,Object.assign({ref:w=>{w&&(this.messageRefs[C.key]=w)},internalKey:C.key,onInternalAfterLeave:this.handleAfterLeave},omit(C,["destroy"],void 0),{duration:C.duration===void 0?this.duration:C.duration,keepAliveOnHover:C.keepAliveOnHover===void 0?this.keepAliveOnHover:C.keepAliveOnHover,closable:C.closable===void 0?this.closable:C.closable}))))):null)}});function useMessage(){const d=inject(messageApiInjectionKey,null);return d===null&&throwError("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),d}const notificationProviderInjectionKey="n-notification-provider",NotificationContainer=defineComponent({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:d,mergedClsPrefixRef:b,wipTransitionCountRef:x}=inject(notificationProviderInjectionKey),C=ref(null);return watchEffect(()=>{var w,A;x.value>0?(w=C==null?void 0:C.value)===null||w===void 0||w.classList.add("transitioning"):(A=C==null?void 0:C.value)===null||A===void 0||A.classList.remove("transitioning")}),{selfRef:C,mergedTheme:d,mergedClsPrefix:b,transitioning:x}},render(){const{$slots:d,scrollable:b,mergedClsPrefix:x,mergedTheme:C,placement:w}=this;return h$1("div",{ref:"selfRef",class:["".concat(x,"-notification-container"),b&&"".concat(x,"-notification-container--scrollable"),"".concat(x,"-notification-container--").concat(w)]},b?h$1(NScrollbar$1,{theme:C.peers.Scrollbar,themeOverrides:C.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},d):d)}}),iconRenderMap={info:()=>h$1(InfoIcon,null),success:()=>h$1(SuccessIcon,null),warning:()=>h$1(WarningIcon,null),error:()=>h$1(ErrorIcon,null),default:()=>null},notificationProps={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},notificationPropKeys=keysOf(notificationProps),Notification=defineComponent({name:"Notification",props:notificationProps,setup(d){const{mergedClsPrefixRef:b,mergedThemeRef:x,props:C}=inject(notificationProviderInjectionKey),{inlineThemeDisabled:w,mergedRtlRef:A}=useConfig(),S=useRtl("Notification",A,b),$=computed(()=>{const{type:P}=d,{self:{color:B,textColor:k,closeIconColor:I,closeIconColorHover:R,closeIconColorPressed:F,headerTextColor:L,descriptionTextColor:z,actionTextColor:V,borderRadius:U,headerFontWeight:Q,boxShadow:W,lineHeight:G,fontSize:q,closeMargin:K,closeSize:X,width:J,padding:oe,closeIconSize:he,closeBorderRadius:Z,closeColorHover:ce,closeColorPressed:fe,titleFontSize:me,metaFontSize:ne,descriptionFontSize:te,[createKey("iconColor",P)]:de},common:{cubicBezierEaseOut:le,cubicBezierEaseIn:be,cubicBezierEaseInOut:Le}}=x.value,{left:Qe,right:rt,top:ht,bottom:ct}=getMargin(oe);return{"--n-color":B,"--n-font-size":q,"--n-text-color":k,"--n-description-text-color":z,"--n-action-text-color":V,"--n-title-text-color":L,"--n-title-font-weight":Q,"--n-bezier":Le,"--n-bezier-ease-out":le,"--n-bezier-ease-in":be,"--n-border-radius":U,"--n-box-shadow":W,"--n-close-border-radius":Z,"--n-close-color-hover":ce,"--n-close-color-pressed":fe,"--n-close-icon-color":I,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":F,"--n-line-height":G,"--n-icon-color":de,"--n-close-margin":K,"--n-close-size":X,"--n-close-icon-size":he,"--n-width":J,"--n-padding-left":Qe,"--n-padding-right":rt,"--n-padding-top":ht,"--n-padding-bottom":ct,"--n-title-font-size":me,"--n-meta-font-size":ne,"--n-description-font-size":te}}),E=w?useThemeClass("notification",computed(()=>d.type[0]),$,C):void 0;return{mergedClsPrefix:b,showAvatar:computed(()=>d.avatar||d.type!=="default"),handleCloseClick(){d.onClose()},rtlEnabled:S,cssVars:w?void 0:$,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){var d;const{mergedClsPrefix:b}=this;return(d=this.onRender)===null||d===void 0||d.call(this),h$1("div",{class:["".concat(b,"-notification-wrapper"),this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},h$1("div",{class:["".concat(b,"-notification"),this.rtlEnabled&&"".concat(b,"-notification--rtl"),this.themeClass,{["".concat(b,"-notification--closable")]:this.closable,["".concat(b,"-notification--show-avatar")]:this.showAvatar}],style:this.cssVars},this.showAvatar?h$1("div",{class:"".concat(b,"-notification__avatar")},this.avatar?render$1(this.avatar):this.type!=="default"?h$1(NBaseIcon,{clsPrefix:b},{default:()=>iconRenderMap[this.type]()}):null):null,this.closable?h$1(NBaseClose,{clsPrefix:b,class:"".concat(b,"-notification__close"),onClick:this.handleCloseClick}):null,h$1("div",{ref:"bodyRef",class:"".concat(b,"-notification-main")},this.title?h$1("div",{class:"".concat(b,"-notification-main__header")},render$1(this.title)):null,this.description?h$1("div",{class:"".concat(b,"-notification-main__description")},render$1(this.description)):null,this.content?h$1("pre",{class:"".concat(b,"-notification-main__content")},render$1(this.content)):null,this.meta||this.action?h$1("div",{class:"".concat(b,"-notification-main-footer")},this.meta?h$1("div",{class:"".concat(b,"-notification-main-footer__meta")},render$1(this.meta)):null,this.action?h$1("div",{class:"".concat(b,"-notification-main-footer__action")},render$1(this.action)):null):null)))}}),notificationEnvOptions=Object.assign(Object.assign({},notificationProps),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),NotificationEnvironment=defineComponent({name:"NotificationEnvironment",props:Object.assign(Object.assign({},notificationEnvOptions),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(d){const{wipTransitionCountRef:b}=inject(notificationProviderInjectionKey),x=ref(!0);let C=null;function w(){x.value=!1,C&&window.clearTimeout(C)}function A(F){b.value++,nextTick(()=>{F.style.height="".concat(F.offsetHeight,"px"),F.style.maxHeight="0",F.style.transition="none",F.offsetHeight,F.style.transition="",F.style.maxHeight=F.style.height})}function S(F){b.value--,F.style.height="",F.style.maxHeight="";const{onAfterEnter:L,onAfterShow:z}=d;L&&L(),z&&z()}function $(F){b.value++,F.style.maxHeight="".concat(F.offsetHeight,"px"),F.style.height="".concat(F.offsetHeight,"px"),F.offsetHeight}function E(F){const{onHide:L}=d;L&&L(),F.style.maxHeight="0",F.offsetHeight}function P(){b.value--;const{onAfterLeave:F,onInternalAfterLeave:L,onAfterHide:z,internalKey:V}=d;F&&F(),L(V),z&&z()}function B(){const{duration:F}=d;F&&(C=window.setTimeout(w,F))}function k(F){F.currentTarget===F.target&&C!==null&&(window.clearTimeout(C),C=null)}function I(F){F.currentTarget===F.target&&B()}function R(){const{onClose:F}=d;F?Promise.resolve(F()).then(L=>{L!==!1&&w()}):w()}return onMounted(()=>{d.duration&&(C=window.setTimeout(w,d.duration))}),{show:x,hide:w,handleClose:R,handleAfterLeave:P,handleLeave:E,handleBeforeLeave:$,handleAfterEnter:S,handleBeforeEnter:A,handleMouseenter:k,handleMouseleave:I}},render(){return h$1(Transition,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?h$1(Notification,Object.assign({},keep(this.$props,notificationPropKeys),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),style$3=c$3([cB("notification-container","\n z-index: 4000;\n position: fixed;\n overflow: visible;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n ",[c$3(">",[cB("scrollbar","\n width: initial;\n overflow: visible;\n height: -moz-fit-content !important;\n height: fit-content !important;\n max-height: 100vh !important;\n ",[c$3(">",[cB("scrollbar-container","\n height: -moz-fit-content !important;\n height: fit-content !important;\n max-height: 100vh !important;\n ",[cB("scrollbar-content","\n padding-top: 12px;\n padding-bottom: 33px;\n ")])])])]),cM("top, top-right, top-left","\n top: 12px;\n ",[c$3("&.transitioning >",[cB("scrollbar",[c$3(">",[cB("scrollbar-container","\n min-height: 100vh !important;\n ")])])])]),cM("bottom, bottom-right, bottom-left","\n bottom: 12px;\n ",[c$3(">",[cB("scrollbar",[c$3(">",[cB("scrollbar-container",[cB("scrollbar-content","\n padding-bottom: 12px;\n ")])])])]),cB("notification-wrapper","\n display: flex;\n align-items: flex-end;\n margin-bottom: 0;\n margin-top: 12px;\n ")]),cM("top, bottom","\n left: 50%;\n transform: translateX(-50%);\n ",[cB("notification-wrapper",[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to","\n transform: scale(0.85);\n "),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to","\n transform: scale(1);\n ")])]),cM("top",[cB("notification-wrapper","\n transform-origin: top center;\n ")]),cM("bottom",[cB("notification-wrapper","\n transform-origin: bottom center;\n ")]),cM("top-right, bottom-right",[cB("notification","\n margin-left: 28px;\n margin-right: 16px;\n ")]),cM("top-left, bottom-left",[cB("notification","\n margin-left: 16px;\n margin-right: 28px;\n ")]),cM("top-right","\n right: 0;\n ",[placementTransformStyle("top-right")]),cM("top-left","\n left: 0;\n ",[placementTransformStyle("top-left")]),cM("bottom-right","\n right: 0;\n ",[placementTransformStyle("bottom-right")]),cM("bottom-left","\n left: 0;\n ",[placementTransformStyle("bottom-left")]),cM("scrollable",[cM("top-right","\n top: 0;\n "),cM("top-left","\n top: 0;\n "),cM("bottom-right","\n bottom: 0;\n "),cM("bottom-left","\n bottom: 0;\n ")]),cB("notification-wrapper","\n margin-bottom: 12px;\n ",[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to","\n opacity: 0;\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n "),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to","\n opacity: 1;\n "),c$3("&.notification-transition-leave-active","\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier-ease-in),\n max-height .3s var(--n-bezier),\n margin-top .3s linear,\n margin-bottom .3s linear,\n box-shadow .3s var(--n-bezier);\n "),c$3("&.notification-transition-enter-active","\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier-ease-out),\n max-height .3s var(--n-bezier),\n margin-top .3s linear,\n margin-bottom .3s linear,\n box-shadow .3s var(--n-bezier);\n ")]),cB("notification","\n background-color: var(--n-color);\n color: var(--n-text-color);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n font-family: inherit;\n font-size: var(--n-font-size);\n font-weight: 400;\n position: relative;\n display: flex;\n overflow: hidden;\n flex-shrink: 0;\n padding-left: var(--n-padding-left);\n padding-right: var(--n-padding-right);\n width: var(--n-width);\n border-radius: var(--n-border-radius);\n box-shadow: var(--n-box-shadow);\n box-sizing: border-box;\n opacity: 1;\n ",[cE("avatar",[cB("icon",{color:"var(--n-icon-color)"}),cB("base-icon",{color:"var(--n-icon-color)"})]),cM("show-avatar",[cB("notification-main","\n margin-left: 40px;\n width: calc(100% - 40px); \n ")]),cM("closable",[cB("notification-main",[c$3("> *:first-child",{paddingRight:"20px"})]),cE("close","\n position: absolute;\n top: 0;\n right: 0;\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),cE("avatar","\n position: absolute;\n top: var(--n-padding-top);\n left: var(--n-padding-left);\n width: 28px;\n height: 28px;\n font-size: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[cB("icon","transition: color .3s var(--n-bezier);")]),cB("notification-main","\n padding-top: var(--n-padding-top);\n padding-bottom: var(--n-padding-bottom);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n margin-left: 8px;\n width: calc(100% - 8px);\n ",[cB("notification-main-footer","\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 12px;\n ",[cE("meta","\n font-size: var(--n-meta-font-size);\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-description-text-color);\n "),cE("action","\n cursor: pointer;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-action-text-color);\n ")]),cE("header","\n font-weight: var(--n-title-font-weight);\n font-size: var(--n-title-font-size);\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-title-text-color);\n "),cE("description","\n margin-top: 8px;\n font-size: var(--n-description-font-size);\n white-space: pre-wrap;\n word-wrap: break-word;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-description-text-color);\n "),cE("content","\n line-height: var(--n-line-height);\n margin: 12px 0 0 0;\n font-family: inherit;\n white-space: pre-wrap;\n word-wrap: break-word;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-text-color);\n ",[c$3("&:first-child",{margin:0})])])])])]);function placementTransformStyle(d){const x=d.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",C="0";return cB("notification-wrapper",[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to","\n transform: translate(".concat(x,", 0);\n ")),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to","\n transform: translate(".concat(C,", 0);\n "))])}const notificationApiInjectionKey="n-notification-api",notificationProviderProps=Object.assign(Object.assign({},useTheme.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),NNotificationProvider=defineComponent({name:"NotificationProvider",props:notificationProviderProps,setup(d){const{mergedClsPrefixRef:b}=useConfig(d),x=ref([]),C={},w=new Set;function A(R){const F=createId(),L=()=>{w.add(F),C[F]&&C[F].hide()},z=reactive(Object.assign(Object.assign({},R),{key:F,destroy:L,hide:L,deactivate:L})),{max:V}=d;if(V&&x.value.length-w.size>=V){let U=!1,Q=0;for(const W of x.value){if(!w.has(W.key)){C[W.key]&&(W.destroy(),U=!0);break}Q++}U||x.value.splice(Q,1)}return x.value.push(z),z}const S=["info","success","warning","error"].map(R=>F=>A(Object.assign(Object.assign({},F),{type:R})));function $(R){w.delete(R),x.value.splice(x.value.findIndex(F=>F.key===R),1)}const E=useTheme("Notification","-notification",style$3,notificationLight$1,d,b),P={create:A,info:S[0],success:S[1],warning:S[2],error:S[3],open:k,destroyAll:I},B=ref(0);provide(notificationApiInjectionKey,P),provide(notificationProviderInjectionKey,{props:d,mergedClsPrefixRef:b,mergedThemeRef:E,wipTransitionCountRef:B});function k(R){return A(R)}function I(){Object.values(x.value).forEach(R=>{R.hide()})}return Object.assign({mergedClsPrefix:b,notificationList:x,notificationRefs:C,handleAfterLeave:$},P)},render(){var d,b,x;const{placement:C}=this;return h$1(Fragment,null,(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d),this.notificationList.length?h$1(Teleport,{to:(x=this.to)!==null&&x!==void 0?x:"body"},h$1(NotificationContainer,{style:this.containerStyle,scrollable:this.scrollable&&C!=="top"&&C!=="bottom",placement:C},{default:()=>this.notificationList.map(w=>h$1(NotificationEnvironment,Object.assign({ref:A=>{const S=w.key;A===null?delete this.notificationRefs[S]:this.notificationRefs[S]=A}},omit(w,["destroy","hide","deactivate"]),{internalKey:w.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:w.keepAliveOnHover===void 0?this.keepAliveOnHover:w.keepAliveOnHover})))})):null)}}),scrollbarProps=Object.assign(Object.assign({},useTheme.props),{trigger:String,xScrollable:Boolean,onScroll:Function,size:Number}),Scrollbar=defineComponent({name:"Scrollbar",props:scrollbarProps,setup(){const d=ref(null);return Object.assign(Object.assign({},{scrollTo:(...x)=>{var C;(C=d.value)===null||C===void 0||C.scrollTo(x[0],x[1])},scrollBy:(...x)=>{var C;(C=d.value)===null||C===void 0||C.scrollBy(x[0],x[1])}}),{scrollbarInstRef:d})},render(){return h$1(NScrollbar$1,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),NScrollbar=Scrollbar,skeletonDark={name:"Skeleton",common:commonDark,self(d){const{heightSmall:b,heightMedium:x,heightLarge:C,borderRadius:w}=d;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:w,heightSmall:b,heightMedium:x,heightLarge:C}}},style$2=c$3([c$3("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),cB("spin-container",{position:"relative"},[cB("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[fadeInTransition()])]),cB("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),cB("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[cM("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),cB("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),cB("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[cM("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]),STROKE_WIDTH={small:20,medium:18,large:16},spinProps=Object.assign(Object.assign({},useTheme.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),NSpin=defineComponent({name:"Spin",props:spinProps,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:x}=useConfig(d),C=useTheme("Spin","-spin",style$2,spinLight$1,d,b),w=computed(()=>{const{size:S}=d,{common:{cubicBezierEaseInOut:$},self:E}=C.value,{opacitySpinning:P,color:B,textColor:k}=E,I=typeof S=="number"?pxfy(S):E[createKey("size",S)];return{"--n-bezier":$,"--n-opacity-spinning":P,"--n-size":I,"--n-color":B,"--n-text-color":k}}),A=x?useThemeClass("spin",computed(()=>{const{size:S}=d;return typeof S=="number"?String(S):S[0]}),w,d):void 0;return{mergedClsPrefix:b,compitableShow:useCompitable(d,["spinning","show"]),mergedStrokeWidth:computed(()=>{const{strokeWidth:S}=d;if(S!==void 0)return S;const{size:$}=d;return STROKE_WIDTH[typeof $=="number"?"medium":$]}),cssVars:x?void 0:w,themeClass:A==null?void 0:A.themeClass,onRender:A==null?void 0:A.onRender}},render(){var d,b;const{$slots:x,mergedClsPrefix:C,description:w}=this,A=x.icon&&this.rotate,S=(w||x.description)&&h$1("div",{class:"".concat(C,"-spin-description")},w||((d=x.description)===null||d===void 0?void 0:d.call(x))),$=x.icon?h$1("div",{class:["".concat(C,"-spin-body"),this.themeClass]},h$1("div",{class:["".concat(C,"-spin"),A&&"".concat(C,"-spin--rotate")],style:x.default?"":this.cssVars},x.icon()),S):h$1("div",{class:["".concat(C,"-spin-body"),this.themeClass]},h$1(NBaseLoading,{clsPrefix:C,style:x.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:"".concat(C,"-spin")}),S);return(b=this.onRender)===null||b===void 0||b.call(this),x.default?h$1("div",{class:["".concat(C,"-spin-container"),this.themeClass],style:this.cssVars},h$1("div",{class:["".concat(C,"-spin-content"),this.compitableShow&&"".concat(C,"-spin-content--spinning")]},x),h$1(Transition,{name:"fade-in-transition"},{default:()=>this.compitableShow?$:null})):$}}),style$1=c$3([cB("table","\n font-size: var(--n-font-size);\n font-variant-numeric: tabular-nums;\n line-height: var(--n-line-height);\n width: 100%;\n border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;\n text-align: left;\n border-collapse: separate;\n border-spacing: 0;\n overflow: hidden;\n background-color: var(--n-td-color);\n border-color: var(--n-merged-border-color);\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n --n-merged-border-color: var(--n-border-color);\n ",[c$3("th","\n white-space: nowrap;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n text-align: inherit;\n padding: var(--n-th-padding);\n vertical-align: inherit;\n text-transform: none;\n border: 0px solid var(--n-merged-border-color);\n font-weight: var(--n-th-font-weight);\n color: var(--n-th-text-color);\n background-color: var(--n-th-color);\n border-bottom: 1px solid var(--n-merged-border-color);\n border-right: 1px solid var(--n-merged-border-color);\n ",[c$3("&:last-child","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),c$3("td","\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n padding: var(--n-td-padding);\n color: var(--n-td-text-color);\n background-color: var(--n-td-color);\n border: 0px solid var(--n-merged-border-color);\n border-right: 1px solid var(--n-merged-border-color);\n border-bottom: 1px solid var(--n-merged-border-color);\n ",[c$3("&:last-child","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),cM("bordered","\n border: 1px solid var(--n-merged-border-color);\n border-radius: var(--n-border-radius);\n ",[c$3("tr",[c$3("&:last-child",[c$3("td","\n border-bottom: 0 solid var(--n-merged-border-color);\n ")])])]),cM("single-line",[c$3("th","\n border-right: 0px solid var(--n-merged-border-color);\n "),c$3("td","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),cM("single-column",[c$3("tr",[c$3("&:not(:last-child)",[c$3("td","\n border-bottom: 0px solid var(--n-merged-border-color);\n ")])])]),cM("striped",[c$3("tr:nth-of-type(even)",[c$3("td","background-color: var(--n-td-color-striped)")])]),cNotM("bottom-bordered",[c$3("tr",[c$3("&:last-child",[c$3("td","\n border-bottom: 0px solid var(--n-merged-border-color);\n ")])])])]),insideModal(cB("table","\n background-color: var(--n-td-color-modal);\n --n-merged-border-color: var(--n-border-color-modal);\n ",[c$3("th","\n background-color: var(--n-th-color-modal);\n "),c$3("td","\n background-color: var(--n-td-color-modal);\n ")])),insidePopover(cB("table","\n background-color: var(--n-td-color-popover);\n --n-merged-border-color: var(--n-border-color-popover);\n ",[c$3("th","\n background-color: var(--n-th-color-popover);\n "),c$3("td","\n background-color: var(--n-td-color-popover);\n ")]))]),tableProps=Object.assign(Object.assign({},useTheme.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),NTable=defineComponent({name:"Table",props:tableProps,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:x,mergedRtlRef:C}=useConfig(d),w=useTheme("Table","-table",style$1,tableLight$1,d,b),A=useRtl("Table",C,b),S=computed(()=>{const{size:E}=d,{self:{borderColor:P,tdColor:B,tdColorModal:k,tdColorPopover:I,thColor:R,thColorModal:F,thColorPopover:L,thTextColor:z,tdTextColor:V,borderRadius:U,thFontWeight:Q,lineHeight:W,borderColorModal:G,borderColorPopover:q,tdColorStriped:K,tdColorStripedModal:X,tdColorStripedPopover:J,[createKey("fontSize",E)]:oe,[createKey("tdPadding",E)]:he,[createKey("thPadding",E)]:Z},common:{cubicBezierEaseInOut:ce}}=w.value;return{"--n-bezier":ce,"--n-td-color":B,"--n-td-color-modal":k,"--n-td-color-popover":I,"--n-td-text-color":V,"--n-border-color":P,"--n-border-color-modal":G,"--n-border-color-popover":q,"--n-border-radius":U,"--n-font-size":oe,"--n-th-color":R,"--n-th-color-modal":F,"--n-th-color-popover":L,"--n-th-font-weight":Q,"--n-th-text-color":z,"--n-line-height":W,"--n-td-padding":he,"--n-th-padding":Z,"--n-td-color-striped":K,"--n-td-color-striped-modal":X,"--n-td-color-striped-popover":J}}),$=x?useThemeClass("table",computed(()=>d.size[0]),S,d):void 0;return{rtlEnabled:A,mergedClsPrefix:b,cssVars:x?void 0:S,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){var d;const{mergedClsPrefix:b}=this;return(d=this.onRender)===null||d===void 0||d.call(this),h$1("table",{class:["".concat(b,"-table"),this.themeClass,{["".concat(b,"-table--rtl")]:this.rtlEnabled,["".concat(b,"-table--bottom-bordered")]:this.bottomBordered,["".concat(b,"-table--bordered")]:this.bordered,["".concat(b,"-table--single-line")]:this.singleLine,["".concat(b,"-table--single-column")]:this.singleColumn,["".concat(b,"-table--striped")]:this.striped}],style:this.cssVars},this.$slots)}}),tabsInjectionKey="n-tabs",tabPaneProps={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},NTabPane=defineComponent({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:tabPaneProps,setup(d){const b=inject(tabsInjectionKey,null);return b||throwError("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:b.paneStyleRef,class:b.paneClassRef,mergedClsPrefix:b.mergedClsPrefixRef}},render(){return h$1("div",{class:["".concat(this.mergedClsPrefix,"-tab-pane"),this.class],style:this.style},this.$slots)}}),tabProps=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},omit(tabPaneProps,["displayDirective"])),Tab=defineComponent({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:tabProps,setup(d){const{mergedClsPrefixRef:b,valueRef:x,typeRef:C,closableRef:w,tabStyleRef:A,tabChangeIdRef:S,onBeforeLeaveRef:$,triggerRef:E,handleAdd:P,activateTab:B,handleClose:k}=inject(tabsInjectionKey);return{trigger:E,mergedClosable:computed(()=>{if(d.internalAddable)return!1;const{closable:I}=d;return I===void 0?w.value:I}),style:A,clsPrefix:b,value:x,type:C,handleClose(I){I.stopPropagation(),!d.disabled&&k(d.name)},activateTab(){if(d.disabled)return;if(d.internalAddable){P();return}const{name:I}=d,R=++S.id;if(I!==x.value){const{value:F}=$;F?Promise.resolve(F(d.name,x.value)).then(L=>{L&&S.id===R&&B(I)}):B(I)}}}},render(){const{internalAddable:d,clsPrefix:b,name:x,disabled:C,label:w,tab:A,value:S,mergedClosable:$,style:E,trigger:P,$slots:{default:B}}=this,k=w!=null?w:A;return h$1("div",{class:"".concat(b,"-tabs-tab-wrapper")},this.internalLeftPadded?h$1("div",{class:"".concat(b,"-tabs-tab-pad")}):null,h$1("div",Object.assign({key:x,"data-name":x,"data-disabled":C?!0:void 0},mergeProps({class:["".concat(b,"-tabs-tab"),S===x&&"".concat(b,"-tabs-tab--active"),C&&"".concat(b,"-tabs-tab--disabled"),$&&"".concat(b,"-tabs-tab--closable"),d&&"".concat(b,"-tabs-tab--addable")],onClick:P==="click"?this.activateTab:void 0,onMouseenter:P==="hover"?this.activateTab:void 0,style:d?void 0:E},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),h$1("span",{class:"".concat(b,"-tabs-tab__label")},d?h$1(Fragment,null,h$1("div",{class:"".concat(b,"-tabs-tab__height-placeholder")}," "),h$1(NBaseIcon,{clsPrefix:b},{default:()=>h$1(AddIcon,null)})):B?B():typeof k=="object"?k:render$1(k!=null?k:x)),$&&this.type==="card"?h$1(NBaseClose,{clsPrefix:b,class:"".concat(b,"-tabs-tab__close"),onClick:this.handleClose,disabled:C}):null))}}),style=cB("tabs","\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-direction: column;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n",[cM("segment-type",[cB("tabs-rail",[c$3("&.transition-disabled","color: red;",[cB("tabs-tab","\n transition: none;\n ")])])]),cM("top",[cB("tab-pane","\n padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);\n ")]),cM("left",[cB("tab-pane","\n padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);\n ")]),cM("left, right","\n flex-direction: row;\n ",[cB("tabs-bar","\n width: 2px;\n right: 0;\n transition:\n top .2s var(--n-bezier),\n max-height .2s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),cB("tabs-tab","\n padding: var(--n-tab-padding-vertical); \n ")]),cM("right","\n flex-direction: row-reverse;\n ",[cB("tab-pane","\n padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);\n "),cB("tabs-bar","\n left: 0;\n ")]),cM("bottom","\n flex-direction: column-reverse;\n justify-content: flex-end;\n ",[cB("tab-pane","\n padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);\n "),cB("tabs-bar","\n top: 0;\n ")]),cB("tabs-rail","\n padding: 3px;\n border-radius: var(--n-tab-border-radius);\n width: 100%;\n background-color: var(--n-color-segment);\n transition: background-color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n ",[cB("tabs-tab-wrapper","\n flex-basis: 0;\n flex-grow: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[cB("tabs-tab","\n overflow: hidden;\n border-radius: var(--n-tab-border-radius);\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[cM("active","\n font-weight: var(--n-font-weight-strong);\n color: var(--n-tab-text-color-active);\n background-color: var(--n-tab-color-segment);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);\n "),c$3("&:hover","\n color: var(--n-tab-text-color-hover);\n ")])])]),cM("flex",[cB("tabs-nav",{width:"100%"},[cB("tabs-wrapper",{width:"100%"},[cB("tabs-tab",{marginRight:0})])])]),cB("tabs-nav","\n box-sizing: border-box;\n line-height: 1.5;\n display: flex;\n transition: border-color .3s var(--n-bezier);\n ",[cE("prefix, suffix","\n display: flex;\n align-items: center;\n "),cE("prefix","padding-right: 16px;"),cE("suffix","padding-left: 16px;")]),cM("top, bottom",[cB("tabs-nav-scroll-wrapper",[c$3("&::before","\n top: 0;\n bottom: 0;\n left: 0;\n width: 20px;\n "),c$3("&::after","\n top: 0;\n bottom: 0;\n right: 0;\n width: 20px;\n "),cM("shadow-start",[c$3("&::before","\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);\n ")]),cM("shadow-end",[c$3("&::after","\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);\n ")])])]),cM("left, right",[cB("tabs-nav-scroll-wrapper",[c$3("&::before","\n top: 0;\n left: 0;\n right: 0;\n height: 20px;\n "),c$3("&::after","\n bottom: 0;\n left: 0;\n right: 0;\n height: 20px;\n "),cM("shadow-start",[c$3("&::before","\n box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);\n ")]),cM("shadow-end",[c$3("&::after","\n box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);\n ")])])]),cB("tabs-nav-scroll-wrapper","\n flex: 1;\n position: relative;\n overflow: hidden;\n ",[cB("tabs-nav-y-scroll","\n height: 100%;\n width: 100%;\n overflow-y: auto; \n scrollbar-width: none;\n ",[c$3("&::-webkit-scrollbar","\n width: 0;\n height: 0;\n ")]),c$3("&::before, &::after",'\n transition: box-shadow .3s var(--n-bezier);\n pointer-events: none;\n content: "";\n position: absolute;\n z-index: 1;\n ')]),cB("tabs-nav-scroll-content","\n display: flex;\n position: relative;\n min-width: 100%;\n width: fit-content;\n box-sizing: border-box;\n "),cB("tabs-wrapper","\n display: inline-flex;\n flex-wrap: nowrap;\n position: relative;\n "),cB("tabs-tab-wrapper","\n display: flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n flex-grow: 0;\n "),cB("tabs-tab","\n cursor: pointer;\n white-space: nowrap;\n flex-wrap: nowrap;\n display: inline-flex;\n align-items: center;\n color: var(--n-tab-text-color);\n font-size: var(--n-tab-font-size);\n background-clip: padding-box;\n padding: var(--n-tab-padding);\n transition:\n box-shadow .3s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[cM("disabled",{cursor:"not-allowed"}),cE("close","\n margin-left: 6px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n "),cE("label","\n display: flex;\n align-items: center;\n ")]),cB("tabs-bar","\n position: absolute;\n bottom: 0;\n height: 2px;\n border-radius: 1px;\n background-color: var(--n-bar-color);\n transition:\n left .2s var(--n-bezier),\n max-width .2s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ",[c$3("&.transition-disabled","\n transition: none;\n "),cM("disabled","\n background-color: var(--n-tab-text-color-disabled)\n ")]),cB("tabs-pane-wrapper","\n position: relative;\n overflow: hidden;\n transition: max-height .2s var(--n-bezier);\n "),cB("tab-pane","\n color: var(--n-pane-text-color);\n width: 100%;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .2s var(--n-bezier);\n left: 0;\n right: 0;\n top: 0;\n ",[c$3("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active","\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n transform .2s var(--n-bezier),\n opacity .2s var(--n-bezier);\n "),c$3("&.next-transition-leave-active, &.prev-transition-leave-active","\n position: absolute;\n "),c$3("&.next-transition-enter-from, &.prev-transition-leave-to","\n transform: translateX(32px);\n opacity: 0;\n "),c$3("&.next-transition-leave-to, &.prev-transition-enter-from","\n transform: translateX(-32px);\n opacity: 0;\n "),c$3("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to","\n transform: translateX(0);\n opacity: 1;\n ")]),cB("tabs-tab-pad","\n box-sizing: border-box;\n width: var(--n-tab-gap);\n flex-grow: 0;\n flex-shrink: 0;\n "),cM("line-type, bar-type",[cB("tabs-tab","\n font-weight: var(--n-tab-font-weight);\n box-sizing: border-box;\n vertical-align: bottom;\n ",[c$3("&:hover",{color:"var(--n-tab-text-color-hover)"}),cM("active","\n color: var(--n-tab-text-color-active);\n font-weight: var(--n-tab-font-weight-active);\n "),cM("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),cB("tabs-nav",[cM("line-type",[cM("top",[cE("prefix, suffix","\n border-bottom: 1px solid var(--n-tab-border-color);\n "),cB("tabs-nav-scroll-content","\n border-bottom: 1px solid var(--n-tab-border-color);\n "),cB("tabs-bar","\n bottom: -1px;\n ")]),cM("left",[cE("prefix, suffix","\n border-right: 1px solid var(--n-tab-border-color);\n "),cB("tabs-nav-scroll-content","\n border-right: 1px solid var(--n-tab-border-color);\n "),cB("tabs-bar","\n right: -1px;\n ")]),cM("right",[cE("prefix, suffix","\n border-left: 1px solid var(--n-tab-border-color);\n "),cB("tabs-nav-scroll-content","\n border-left: 1px solid var(--n-tab-border-color);\n "),cB("tabs-bar","\n left: -1px;\n ")]),cM("bottom",[cE("prefix, suffix","\n border-top: 1px solid var(--n-tab-border-color);\n "),cB("tabs-nav-scroll-content","\n border-top: 1px solid var(--n-tab-border-color);\n "),cB("tabs-bar","\n top: -1px;\n ")]),cE("prefix, suffix","\n transition: border-color .3s var(--n-bezier);\n "),cB("tabs-nav-scroll-content","\n transition: border-color .3s var(--n-bezier);\n "),cB("tabs-bar","\n border-radius: 0;\n ")]),cM("card-type",[cE("prefix, suffix","\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),cB("tabs-pad","\n flex-grow: 1;\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),cB("tabs-tab-pad","\n transition: border-color .3s var(--n-bezier);\n "),cB("tabs-tab","\n font-weight: var(--n-tab-font-weight);\n border: 1px solid var(--n-tab-border-color);\n background-color: var(--n-tab-color);\n box-sizing: border-box;\n position: relative;\n vertical-align: bottom;\n display: flex;\n justify-content: space-between;\n font-size: var(--n-tab-font-size);\n color: var(--n-tab-text-color);\n ",[cM("addable","\n padding-left: 8px;\n padding-right: 8px;\n font-size: 16px;\n ",[cE("height-placeholder","\n width: 0;\n font-size: var(--n-tab-font-size);\n "),cNotM("disabled",[c$3("&:hover","\n color: var(--n-tab-text-color-hover);\n ")])]),cM("closable","padding-right: 8px;"),cM("active","\n background-color: #0000;\n font-weight: var(--n-tab-font-weight-active);\n color: var(--n-tab-text-color-active);\n "),cM("disabled","color: var(--n-tab-text-color-disabled);")]),cB("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),cM("left, right",[cB("tabs-wrapper","\n flex-direction: column;\n ",[cB("tabs-tab-wrapper","\n flex-direction: column;\n ",[cB("tabs-tab-pad","\n height: var(--n-tab-gap-vertical);\n width: 100%;\n ")])])]),cM("top",[cM("card-type",[cB("tabs-tab","\n border-top-left-radius: var(--n-tab-border-radius);\n border-top-right-radius: var(--n-tab-border-radius);\n ",[cM("active","\n border-bottom: 1px solid #0000;\n ")]),cB("tabs-tab-pad","\n border-bottom: 1px solid var(--n-tab-border-color);\n ")])]),cM("left",[cM("card-type",[cB("tabs-tab","\n border-top-left-radius: var(--n-tab-border-radius);\n border-bottom-left-radius: var(--n-tab-border-radius);\n ",[cM("active","\n border-right: 1px solid #0000;\n ")]),cB("tabs-tab-pad","\n border-right: 1px solid var(--n-tab-border-color);\n ")])]),cM("right",[cM("card-type",[cB("tabs-tab","\n border-top-right-radius: var(--n-tab-border-radius);\n border-bottom-right-radius: var(--n-tab-border-radius);\n ",[cM("active","\n border-left: 1px solid #0000;\n ")]),cB("tabs-tab-pad","\n border-left: 1px solid var(--n-tab-border-color);\n ")])]),cM("bottom",[cM("card-type",[cB("tabs-tab","\n border-bottom-left-radius: var(--n-tab-border-radius);\n border-bottom-right-radius: var(--n-tab-border-radius);\n ",[cM("active","\n border-top: 1px solid #0000;\n ")]),cB("tabs-tab-pad","\n border-top: 1px solid var(--n-tab-border-color);\n ")])])])]),tabsProps=Object.assign(Object.assign({},useTheme.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),NTabs=defineComponent({name:"Tabs",props:tabsProps,setup(d,{slots:b}){var x,C,w,A;const{mergedClsPrefixRef:S,inlineThemeDisabled:$}=useConfig(d),E=useTheme("Tabs","-tabs",style,tabsLight$1,d,S),P=ref(null),B=ref(null),k=ref(null),I=ref(null),R=ref(null),F=ref(!0),L=ref(!0),z=useCompitable(d,["labelSize","size"]),V=useCompitable(d,["activeName","value"]),U=ref((C=(x=V.value)!==null&&x!==void 0?x:d.defaultValue)!==null&&C!==void 0?C:b.default?(A=(w=flatten$4(b.default())[0])===null||w===void 0?void 0:w.props)===null||A===void 0?void 0:A.name:null),Q=useMergedState(V,U),W={id:0},G=computed(()=>{if(!(!d.justifyContent||d.type==="card"))return{display:"flex",justifyContent:d.justifyContent}});watch(Q,()=>{W.id=0,J(),oe()});function q(){var we;const{value:ge}=Q;return ge===null?null:(we=P.value)===null||we===void 0?void 0:we.querySelector('[data-name="'.concat(ge,'"]'))}function K(we){if(d.type==="card")return;const{value:ge}=B;if(ge&&we){const Ee="".concat(S.value,"-tabs-bar--disabled"),{barWidth:ke,placement:Ae}=d;if(we.dataset.disabled==="true"?ge.classList.add(Ee):ge.classList.remove(Ee),["top","bottom"].includes(Ae)){if(X(["top","maxHeight","height"]),typeof ke=="number"&&we.offsetWidth>=ke){const ve=Math.floor((we.offsetWidth-ke)/2)+we.offsetLeft;ge.style.left="".concat(ve,"px"),ge.style.maxWidth="".concat(ke,"px")}else ge.style.left="".concat(we.offsetLeft,"px"),ge.style.maxWidth="".concat(we.offsetWidth,"px");ge.style.width="8192px",ge.offsetWidth}else{if(X(["left","maxWidth","width"]),typeof ke=="number"&&we.offsetHeight>=ke){const ve=Math.floor((we.offsetHeight-ke)/2)+we.offsetTop;ge.style.top="".concat(ve,"px"),ge.style.maxHeight="".concat(ke,"px")}else ge.style.top="".concat(we.offsetTop,"px"),ge.style.maxHeight="".concat(we.offsetHeight,"px");ge.style.height="8192px",ge.offsetHeight}}}function X(we){const{value:ge}=B;if(ge)for(const Ee of we)ge.style[Ee]=""}function J(){if(d.type==="card")return;const we=q();we&&K(we)}function oe(we){var ge;const Ee=(ge=R.value)===null||ge===void 0?void 0:ge.$el;if(!Ee)return;const ke=q();if(!ke)return;const{scrollLeft:Ae,offsetWidth:ve}=Ee,{offsetLeft:De,offsetWidth:We}=ke;Ae>De?Ee.scrollTo({top:0,left:De,behavior:"smooth"}):De+We>Ae+ve&&Ee.scrollTo({top:0,left:De+We-ve,behavior:"smooth"})}const he=ref(null);let Z=0,ce=null;function fe(we){const ge=he.value;if(ge){Z=we.getBoundingClientRect().height;const Ee="".concat(Z,"px"),ke=()=>{ge.style.height=Ee,ge.style.maxHeight=Ee};ce?(ke(),ce(),ce=null):ce=ke}}function me(we){const ge=he.value;if(ge){const Ee=we.getBoundingClientRect().height,ke=()=>{document.body.offsetHeight,ge.style.maxHeight="".concat(Ee,"px"),ge.style.height="".concat(Math.max(Z,Ee),"px")};ce?(ce(),ce=null,ke()):ce=ke}}function ne(){const we=he.value;we&&(we.style.maxHeight="",we.style.height="")}const te={value:[]},de=ref("next");function le(we){const ge=Q.value;let Ee="next";for(const ke of te.value){if(ke===ge)break;if(ke===we){Ee="prev";break}}de.value=Ee,be(we)}function be(we){const{onActiveNameChange:ge,onUpdateValue:Ee,"onUpdate:value":ke}=d;ge&&call$1(ge,we),Ee&&call$1(Ee,we),ke&&call$1(ke,we),U.value=we}function Le(we){const{onClose:ge}=d;ge&&call$1(ge,we)}function Qe(){const{value:we}=B;if(!we)return;const ge="transition-disabled";we.classList.add(ge),J(),we.classList.remove(ge)}let rt=0;function ht(we){var ge;if(we.contentRect.width===0&&we.contentRect.height===0||rt===we.contentRect.width)return;rt=we.contentRect.width;const{type:Ee}=d;(Ee==="line"||Ee==="bar")&&Qe(),Ee!=="segment"&&ie((ge=R.value)===null||ge===void 0?void 0:ge.$el)}const ct=throttle(ht,64);watch([()=>d.justifyContent,()=>d.size],()=>{nextTick(()=>{const{type:we}=d;(we==="line"||we==="bar")&&Qe()})});const it=ref(!1);function Be(we){var ge;const{target:Ee,contentRect:{width:ke}}=we,Ae=Ee.parentElement.offsetWidth;if(!it.value)Aeve.$el.offsetWidth&&(it.value=!1)}ie((ge=R.value)===null||ge===void 0?void 0:ge.$el)}const Ie=throttle(Be,64);function Fe(){const{onAdd:we}=d;we&&we(),nextTick(()=>{const ge=q(),{value:Ee}=R;!ge||!Ee||Ee.scrollTo({left:ge.offsetLeft,top:0,behavior:"smooth"})})}function ie(we){if(!we)return;const{placement:ge}=d;if(ge==="top"||ge==="bottom"){const{scrollLeft:Ee,scrollWidth:ke,offsetWidth:Ae}=we;F.value=Ee<=0,L.value=Ee+Ae>=ke}else{const{scrollTop:Ee,scrollHeight:ke,offsetHeight:Ae}=we;F.value=Ee<=0,L.value=Ee+Ae>=ke}}const $e=throttle(we=>{ie(we.target)},64);provide(tabsInjectionKey,{triggerRef:toRef$1(d,"trigger"),tabStyleRef:toRef$1(d,"tabStyle"),paneClassRef:toRef$1(d,"paneClass"),paneStyleRef:toRef$1(d,"paneStyle"),mergedClsPrefixRef:S,typeRef:toRef$1(d,"type"),closableRef:toRef$1(d,"closable"),valueRef:Q,tabChangeIdRef:W,onBeforeLeaveRef:toRef$1(d,"onBeforeLeave"),activateTab:le,handleClose:Le,handleAdd:Fe}),onFontsReady(()=>{J(),oe()}),watchEffect(()=>{const{value:we}=k;if(!we)return;const{value:ge}=S,Ee="".concat(ge,"-tabs-nav-scroll-wrapper--shadow-start"),ke="".concat(ge,"-tabs-nav-scroll-wrapper--shadow-end");F.value?we.classList.remove(Ee):we.classList.add(Ee),L.value?we.classList.remove(ke):we.classList.add(ke)});const re=ref(null);watch(Q,()=>{if(d.type==="segment"){const we=re.value;we&&nextTick(()=>{we.classList.add("transition-disabled"),we.offsetWidth,we.classList.remove("transition-disabled")})}});const se={syncBarPosition:()=>{J()}},Ce=computed(()=>{const{value:we}=z,{type:ge}=d,Ee={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ge],ke="".concat(we).concat(Ee),{self:{barColor:Ae,closeIconColor:ve,closeIconColorHover:De,closeIconColorPressed:We,tabColor:Ye,tabBorderColor:Je,paneTextColor:nt,tabFontWeight:dt,tabBorderRadius:Ue,tabFontWeightActive:lt,colorSegment:yt,fontWeightStrong:$t,tabColorSegment:Mt,closeSize:Lt,closeIconSize:At,closeColorHover:xt,closeColorPressed:xe,closeBorderRadius:ze,[createKey("panePadding",we)]:Ze,[createKey("tabPadding",ke)]:ut,[createKey("tabPaddingVertical",ke)]:gt,[createKey("tabGap",ke)]:mt,[createKey("tabGap","".concat(ke,"Vertical"))]:ye,[createKey("tabTextColor",ge)]:Oe,[createKey("tabTextColorActive",ge)]:Ve,[createKey("tabTextColorHover",ge)]:He,[createKey("tabTextColorDisabled",ge)]:Ke,[createKey("tabFontSize",we)]:ft},common:{cubicBezierEaseInOut:St}}=E.value;return{"--n-bezier":St,"--n-color-segment":yt,"--n-bar-color":Ae,"--n-tab-font-size":ft,"--n-tab-text-color":Oe,"--n-tab-text-color-active":Ve,"--n-tab-text-color-disabled":Ke,"--n-tab-text-color-hover":He,"--n-pane-text-color":nt,"--n-tab-border-color":Je,"--n-tab-border-radius":Ue,"--n-close-size":Lt,"--n-close-icon-size":At,"--n-close-color-hover":xt,"--n-close-color-pressed":xe,"--n-close-border-radius":ze,"--n-close-icon-color":ve,"--n-close-icon-color-hover":De,"--n-close-icon-color-pressed":We,"--n-tab-color":Ye,"--n-tab-font-weight":dt,"--n-tab-font-weight-active":lt,"--n-tab-padding":ut,"--n-tab-padding-vertical":gt,"--n-tab-gap":mt,"--n-tab-gap-vertical":ye,"--n-pane-padding-left":getMargin(Ze,"left"),"--n-pane-padding-right":getMargin(Ze,"right"),"--n-pane-padding-top":getMargin(Ze,"top"),"--n-pane-padding-bottom":getMargin(Ze,"bottom"),"--n-font-weight-strong":$t,"--n-tab-color-segment":Mt}}),Ne=$?useThemeClass("tabs",computed(()=>"".concat(z.value[0]).concat(d.type[0])),Ce,d):void 0;return Object.assign({mergedClsPrefix:S,mergedValue:Q,renderedNames:new Set,tabsRailElRef:re,tabsPaneWrapperRef:he,tabsElRef:P,barElRef:B,addTabInstRef:I,xScrollInstRef:R,scrollWrapperElRef:k,addTabFixed:it,tabWrapperStyle:G,handleNavResize:ct,mergedSize:z,handleScroll:$e,handleTabsResize:Ie,cssVars:$?void 0:Ce,themeClass:Ne==null?void 0:Ne.themeClass,animationDirection:de,renderNameListRef:te,onAnimationBeforeLeave:fe,onAnimationEnter:me,onAnimationAfterEnter:ne,onRender:Ne==null?void 0:Ne.onRender},se)},render(){const{mergedClsPrefix:d,type:b,placement:x,addTabFixed:C,addable:w,mergedSize:A,renderNameListRef:S,onRender:$,paneWrapperClass:E,paneWrapperStyle:P,$slots:{default:B,prefix:k,suffix:I}}=this;$==null||$();const R=B?flatten$4(B()).filter(G=>G.type.__TAB_PANE__===!0):[],F=B?flatten$4(B()).filter(G=>G.type.__TAB__===!0):[],L=!F.length,z=b==="card",V=b==="segment",U=!z&&!V&&this.justifyContent;S.value=[];const Q=()=>{const G=h$1("div",{style:this.tabWrapperStyle,class:["".concat(d,"-tabs-wrapper")]},U?null:h$1("div",{class:"".concat(d,"-tabs-scroll-padding"),style:{width:"".concat(this.tabsPadding,"px")}}),L?R.map((q,K)=>(S.value.push(q.props.name),justifyTabDynamicProps(h$1(Tab,Object.assign({},q.props,{internalCreatedByPane:!0,internalLeftPadded:K!==0&&(!U||U==="center"||U==="start"||U==="end")}),q.children?{default:q.children.tab}:void 0)))):F.map((q,K)=>(S.value.push(q.props.name),justifyTabDynamicProps(K!==0&&!U?createLeftPaddedTabVNode(q):q))),!C&&w&&z?createAddTag(w,(L?R.length:F.length)!==0):null,U?null:h$1("div",{class:"".concat(d,"-tabs-scroll-padding"),style:{width:"".concat(this.tabsPadding,"px")}}));return h$1("div",{ref:"tabsElRef",class:"".concat(d,"-tabs-nav-scroll-content")},z&&w?h$1(VResizeObserver,{onResize:this.handleTabsResize},{default:()=>G}):G,z?h$1("div",{class:"".concat(d,"-tabs-pad")}):null,z?null:h$1("div",{ref:"barElRef",class:"".concat(d,"-tabs-bar")}))},W=V?"top":x;return h$1("div",{class:["".concat(d,"-tabs"),this.themeClass,"".concat(d,"-tabs--").concat(b,"-type"),"".concat(d,"-tabs--").concat(A,"-size"),U&&"".concat(d,"-tabs--flex"),"".concat(d,"-tabs--").concat(W)],style:this.cssVars},h$1("div",{class:["".concat(d,"-tabs-nav--").concat(b,"-type"),"".concat(d,"-tabs-nav--").concat(W),"".concat(d,"-tabs-nav")]},resolveWrappedSlot(k,G=>G&&h$1("div",{class:"".concat(d,"-tabs-nav__prefix")},G)),V?h$1("div",{class:"".concat(d,"-tabs-rail"),ref:"tabsRailElRef"},L?R.map((G,q)=>(S.value.push(G.props.name),h$1(Tab,Object.assign({},G.props,{internalCreatedByPane:!0,internalLeftPadded:q!==0}),G.children?{default:G.children.tab}:void 0))):F.map((G,q)=>(S.value.push(G.props.name),q===0?G:createLeftPaddedTabVNode(G)))):h$1(VResizeObserver,{onResize:this.handleNavResize},{default:()=>h$1("div",{class:"".concat(d,"-tabs-nav-scroll-wrapper"),ref:"scrollWrapperElRef"},["top","bottom"].includes(W)?h$1(VXScroll,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:Q}):h$1("div",{class:"".concat(d,"-tabs-nav-y-scroll"),onScroll:this.handleScroll},Q()))}),C&&w&&z?createAddTag(w,!0):null,resolveWrappedSlot(I,G=>G&&h$1("div",{class:"".concat(d,"-tabs-nav__suffix")},G))),L&&(this.animated&&(W==="top"||W==="bottom")?h$1("div",{ref:"tabsPaneWrapperRef",style:P,class:["".concat(d,"-tabs-pane-wrapper"),E]},filterMapTabPanes(R,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):filterMapTabPanes(R,this.mergedValue,this.renderedNames)))}});function filterMapTabPanes(d,b,x,C,w,A,S){const $=[];return d.forEach(E=>{const{name:P,displayDirective:B,"display-directive":k}=E.props,I=F=>B===F||k===F,R=b===P;if(E.key!==void 0&&(E.key=P),R||I("show")||I("show:lazy")&&x.has(P)){x.has(P)||x.add(P);const F=!I("if");$.push(F?withDirectives(E,[[vShow,R]]):E)}}),S?h$1(TransitionGroup,{name:"".concat(S,"-transition"),onBeforeLeave:C,onEnter:w,onAfterEnter:A},{default:()=>$}):$}function createAddTag(d,b){return h$1(Tab,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:b,disabled:typeof d=="object"&&d.disabled})}function createLeftPaddedTabVNode(d){const b=cloneVNode(d);return b.props?b.props.internalLeftPadded=!0:b.props={internalLeftPadded:!0},b}function justifyTabDynamicProps(d){return Array.isArray(d.dynamicProps)?d.dynamicProps.includes("internalLeftPadded")||d.dynamicProps.push("internalLeftPadded"):d.dynamicProps=["internalLeftPadded"],d}const self$1=()=>({}),equationDark={name:"Equation",common:commonDark,self:self$1},equationDark$1=equationDark,darkTheme={name:"dark",common:commonDark,Alert:alertDark$1,Anchor:anchorDark$1,AutoComplete:autoCompleteDark$1,Avatar:avatarDark$1,AvatarGroup:avatarGroupDark$1,BackTop:backTopDark$1,Badge:badgeDark$1,Breadcrumb:breadcrumbDark$1,Button:buttonDark$1,ButtonGroup:buttonGroupDark$1,Calendar:calendarDark$1,Card:cardDark$1,Carousel:carouselDark$1,Cascader:cascaderDark$1,Checkbox:checkboxDark$1,Code:codeDark$1,Collapse:collapseDark$1,CollapseTransition:collapseTransitionDark$1,ColorPicker:colorPickerDark$1,DataTable:dataTableDark$1,DatePicker:datePickerDark$1,Descriptions:descriptionsDark$1,Dialog:dialogDark$1,Divider:dividerDark$1,Drawer:drawerDark$1,Dropdown:dropdownDark$1,DynamicInput:dynamicInputDark$1,DynamicTags:dynamicTagsDark$1,Element:elementDark$1,Empty:emptyDark$1,Ellipsis:ellipsisDark$1,Equation:equationDark$1,Form:formDark,GradientText:gradientTextDark$1,Icon:iconDark$2,IconWrapper:iconWrapperDark,Image:imageDark,Input:inputDark$1,InputNumber:inputNumberDark$1,LegacyTransfer:legacyTransferDark,Layout:layoutDark$1,List:listDark$2,LoadingBar:loadingBarDark$1,Log:logDark$1,Menu:menuDark$1,Mention:mentionDark,Message:messageDark$1,Modal:modalDark$1,Notification:notificationDark$1,PageHeader:pageHeaderDark,Pagination:paginationDark$1,Popconfirm:popconfirmDark$1,Popover:popoverDark$1,Popselect:popselectDark,Progress:progressDark$1,Radio:radioDark$1,Rate:rateDark$1,Result:resultDark$1,Row:rowDark$1,Scrollbar:scrollbarDark$1,Select:selectDark$1,Skeleton:skeletonDark,Slider:sliderDark$1,Space:spaceDark$1,Spin:spinDark$1,Statistic:statisticDark$1,Steps:stepsDark$1,Switch:switchDark$1,Table:tableDark$1,Tabs:tabsDark$1,Tag:tagDark$1,Thing:thingDark$1,TimePicker:timePickerDark$1,Timeline:timelineDark$1,Tooltip:tooltipDark$1,Transfer:transferDark$2,Tree:treeDark$1,TreeSelect:treeSelectDark$1,Typography:typographyDark$1,Upload:uploadDark$1,Watermark:watermarkDark$1},App=defineComponent({name:"App",setup(){const d="#198CFE",b=lighten(d,6),x={common:{primaryColor:d,primaryColorHover:b,primaryColorPressed:b},LoadingBar:{colorLoading:d}},C=getQuery(),w=async()=>storeData.platformType==="TEACHER"?await teacherQueryUserInfo():await studentQueryUserInfo(),A=async()=>{const $=await w();if($.code===5e3){const P=browser();showToast($.message),P.isApp?postMessage({api:"login"}):window.location.href="".concat(/(192|localhost)/.test(location.origin)?"https://test.lexiaoya.cn":location.origin,"/classroom");return}const E=($==null?void 0:$.data)||{};setUserInfo(E)};onBeforeMount(()=>{C.Authorization&&setToken(C.Authorization),A()});const S=computed(()=>storeData.status==="login"||C.dev);return()=>createVNode(NConfigProvider,{inlineThemeDisabled:!0,themeOverrides:x,abstract:!0},{default:()=>[createVNode(NDialogProvider,null,{default:()=>[createVNode(NNotificationProvider,null,{default:()=>[createVNode(NMessageProvider,{max:1,theme:darkTheme.Message},{default:()=>[storeData.status==="error"?createVNode(TheError,null,null):S.value?createVNode(RouterView,null,null):null]})]})]})]})}});var version$1="6.2.2",version_1=version$1,TimingCallbacks$2=function(d,b){var x=this;if(b||(b={}),x.qpm=b.qpm?parseInt(b.qpm,10):null,!x.qpm){var C=d.metaText?d.metaText.tempo:null;x.qpm=d.getBpm(C)}x.extraMeasuresAtBeginning=b.extraMeasuresAtBeginning?parseInt(b.extraMeasuresAtBeginning,10):0,x.beatCallback=b.beatCallback,x.eventCallback=b.eventCallback,x.lineEndCallback=b.lineEndCallback,x.lineEndAnticipation=b.lineEndAnticipation?parseInt(b.lineEndAnticipation,10):0,x.beatSubdivisions=b.beatSubdivisions?parseInt(b.beatSubdivisions,10):1,x.joggerTimer=null,x.replaceTarget=function(A){x.noteTimings=A.setTiming(x.qpm,x.extraMeasuresAtBeginning),A.noteTimings.length===0&&(x.noteTimings=A.setTiming(0,0)),x.lineEndCallback&&(x.lineEndTimings=getLineEndTimings(A.noteTimings,x.lineEndAnticipation)),x.startTime=null,x.currentBeat=0,x.currentEvent=0,x.currentLine=0,x.currentTime=0,x.isPaused=!1,x.isRunning=!1,x.pausedPercent=null,x.justUnpaused=!1,x.newSeekPercent=0,x.lastTimestamp=0,x.noteTimings.length!==0&&(x.millisecondsPerBeat=1e3/(x.qpm/60)/x.beatSubdivisions,x.lastMoment=x.noteTimings[x.noteTimings.length-1].milliseconds,x.totalBeats=Math.round(x.lastMoment/x.millisecondsPerBeat))},x.replaceTarget(d),x.doTiming=function(A){if(x.lastTimestamp!==A&&(x.lastTimestamp=A,x.startTime||(x.startTime=A),!x.isPaused&&x.isRunning)){for(x.currentTime=A-x.startTime,x.currentTime+=16;x.noteTimings.length>x.currentEvent&&x.noteTimings[x.currentEvent].millisecondsx.currentLine&&x.lineEndTimings[x.currentLine].milliseconds=x.lastMoment)if(x.eventCallback){var B=x.eventCallback(null);x.shouldStop(B).then(function(k){k&&x.stop()})}else x.stop()}},x.shouldStop=function(A){return new Promise(function(S){if(!A)return S(!0);if(A==="continue")return S(!1);A.then&&A.then(function($){S($!=="continue")})})},x.doBeatCallback=function(A){if(x.beatCallback){for(var S=x.currentEvent;S=0&&x.noteTimings[S].left===null;)S--;E=x.noteTimings[S]}var P={},B={};if(E){P.top=E.top,P.height=E.height;var k=Math.max(0,A-x.startTime-E.milliseconds),I=$-E.milliseconds,R=E.endX-E.left,F=I?k*R/I:0;P.left=E.left+F,x.currentEvent===0&&E.milliseconds>A-x.startTime&&(P.left=void 0),B={timestamp:A,startTime:x.startTime,ev:E,endMs:$,offMs:k,offPx:F,gapMs:I,gapPx:R}}else B={timestamp:A,startTime:x.startTime};var L=x.startTime;if(x.beatCallback(x.currentBeat/x.beatSubdivisions,x.totalBeats/x.beatSubdivisions,x.lastMoment,P,B),L!==x.startTime)return A-x.startTime;x.currentBeat++}return null};var w=60;x.animationJogger=function(){x.isRunning&&(x.doTiming(performance.now()),x.joggerTimer=setTimeout(x.animationJogger,w))},x.start=function(A,S){if(x.isRunning=!0,x.isPaused&&(x.isPaused=!1,A===void 0&&(x.justUnpaused=!0)),A)x.setProgress(A,S);else if(A===0)x.reset();else if(x.pausedPercent!==null){var $=performance.now();x.currentTime=x.lastMoment*x.pausedPercent,x.startTime=$-x.currentTime,x.pausedPercent=null,x.reportNext=!0}requestAnimationFrame(x.doTiming),x.joggerTimer=setTimeout(x.animationJogger,w)},x.pause=function(){x.isPaused=!0;var A=performance.now();x.pausedPercent=(A-x.startTime)/x.lastMoment,x.isRunning=!1,x.joggerTimer&&(clearTimeout(x.joggerTimer),x.joggerTimer=null)},x.currentMillisecond=function(){return x.currentTime},x.reset=function(){x.currentBeat=0,x.currentEvent=0,x.currentLine=0,x.startTime=null,x.pausedPercent=null},x.stop=function(){x.pause(),x.reset()},x.setProgress=function(A,S){var $;switch(S){case"seconds":x.currentTime=A*1e3,x.currentTime<0&&(x.currentTime=0),x.currentTime>x.lastMoment&&(x.currentTime=x.lastMoment),$=x.currentTime/x.lastMoment;break;case"beats":x.currentTime=A*x.millisecondsPerBeat*x.beatSubdivisions,x.currentTime<0&&(x.currentTime=0),x.currentTime>x.lastMoment&&(x.currentTime=x.lastMoment),$=x.currentTime/x.lastMoment;break;default:$=A,$<0&&($=0),$>1&&($=1),x.currentTime=x.lastMoment*$;break}x.isRunning||(x.pausedPercent=$);var E=performance.now();for(x.startTime=E-x.currentTime,x.currentEvent,x.currentEvent=0;x.noteTimings.length>x.currentEvent&&x.noteTimings[x.currentEvent].millisecondsx.currentLine&&x.lineEndTimings[x.currentLine].milliseconds+x.lineEndAnticipation=0&&x.noteTimings[x.currentEvent].type==="event"&&x.eventCallback(x.noteTimings[x.currentEvent]),x.lineEndCallback&&x.lineEndCallback(x.lineEndTimings[x.currentLine],x.noteTimings[x.currentEvent],{line:x.currentLine,endTimings:x.lineEndTimings}),x.joggerTimer=setTimeout(x.animationJogger,w)}};function getLineEndTimings(d,b){for(var x=[],C=null,w=0;w=0&&d.lastIndexOf(b)===x};parseCommon$e.last=function(d){return d.length===0?null:d[d.length-1]};var abc_common=parseCommon$e,parseCommon$d=abc_common,parseDirective$3={};(function(){var d,b,x,C,w;parseDirective$3.initialize=function(ne,te,de,le,be){d=ne,b=te,x=de,C=le,w=be,A()};function A(){x.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},x.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},x.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},x.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},x.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},x.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},x.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},x.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},x.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},x.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},x.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},C.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},C.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},C.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},C.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},C.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},C.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},C.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},C.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},C.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},C.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},C.formatting.annotationfont=x.annotationfont,C.formatting.gchordfont=x.gchordfont,C.formatting.historyfont=x.historyfont,C.formatting.infofont=x.infofont,C.formatting.measurefont=x.measurefont,C.formatting.partsfont=x.partsfont,C.formatting.repeatfont=x.repeatfont,C.formatting.textfont=x.textfont,C.formatting.tripletfont=x.tripletfont,C.formatting.vocalfont=x.vocalfont,C.formatting.wordsfont=x.wordsfont}var S={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},$=function(ne){switch(ne){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}},E=function(ne,te,de,le,be){function Le(){var Ce=parseInt(ne[0].token);return ne.shift(),te?ne.length===0?{face:te.face,weight:te.weight,style:te.style,decoration:te.decoration,size:Ce}:ne.length===1&&ne[0].token==="box"&&S[be]?{face:te.face,weight:te.weight,style:te.style,decoration:te.decoration,size:Ce,box:!0}:(b("Extra parameters in font definition.",de,le),{face:te.face,weight:te.weight,style:te.style,decoration:te.decoration,size:Ce}):(b("Can't set just the size of the font since there is no default value.",de,le),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:Ce})}if(ne[0].token==="*"){if(ne.shift(),ne[0].type==="number")return Le();b("Expected font size number after *.",de,le)}if(ne[0].type==="number")return Le();for(var Qe=[],rt,ht="normal",ct="normal",it="none",Be=!1,Ie="face",Fe=!1;ne.length;){var ie=ne.shift(),$e=ie.token.toLowerCase();switch(Ie){case"face":Fe||$e!=="utf"&&ie.type!=="number"&&$e!=="bold"&&$e!=="italic"&&$e!=="underline"&&$e!=="box"?Qe.length>0&&ie.token==="-"?(Fe=!0,Qe[Qe.length-1]=Qe[Qe.length-1]+ie.token):Fe?(Fe=!1,Qe[Qe.length-1]=Qe[Qe.length-1]+ie.token):Qe.push(ie.token):ie.type==="number"?(rt?b("Font size specified twice in font definition.",de,le):rt=ie.token,Ie="modifier"):$e==="bold"?ht="bold":$e==="italic"?ct="italic":$e==="underline"?it="underline":$e==="box"?(S[be]?Be=!0:b('This font style doesn\'t support "box"',de,le),Ie="finished"):$e==="utf"?(ie=ne.shift(),Ie="size"):b("Unknown parameter "+ie.token+" in font definition.",de,le);break;case"size":ie.type==="number"?rt?b("Font size specified twice in font definition.",de,le):rt=ie.token:b("Expected font size in font definition.",de,le),Ie="modifier";break;case"modifier":$e==="bold"?ht="bold":$e==="italic"?ct="italic":$e==="underline"?it="underline":$e==="box"?(S[be]?Be=!0:b('This font style doesn\'t support "box"',de,le),Ie="finished"):b("Unknown parameter "+ie.token+" in font definition.",de,le);break;case"finished":b('Extra characters found after "box" in font definition.',de,le);break}}rt===void 0?te?rt=te.size:(b("Must specify the size of the font since there is no default value.",de,le),rt=12):rt=parseFloat(rt),Qe=Qe.join(" "),Qe===""&&(te?Qe=te.face:(b("Must specify the name of the font since there is no default value.",de,le),Qe="sans-serif"));var re=$(Qe),se={};return re?(se.face=re.face,se.weight=re.weight,se.style=re.style,se.decoration=re.decoration,se.size=rt,Be&&(se.box=!0),se):(se.face=Qe,se.weight=ht,se.style=ct,se.decoration=it,se.size=rt,Be&&(se.box=!0),se)},P=function(ne,te,de){return te.length===0?'Directive "'+ne+'" requires a font as a parameter.':(x[ne]=E(te,x[ne],de,0,ne),x.is_in_header&&(C.formatting[ne]=x[ne]),null)},B=function(ne,te,de){return te.length===0?'Directive "'+ne+'" requires a font as a parameter.':(C.formatting[ne]=E(te,C.formatting[ne],de,0,ne),null)},k=function(ne,te){var de="";te.forEach(function(be){de+=be.token});var le=parseFloat(de);if(isNaN(le)||le===0)return'Directive "'+ne+'" requires a number as a parameter.';C.formatting.scale=le},I=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],R=function(ne){var te=ne.split(/\s+/);if(te.length!==2&&te.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var de=te[0],le=parseInt(te[1],10);if((isNaN(le)||le<35||le>81)&&te[1]&&(le=I.indexOf(te[1].toLowerCase())+35),isNaN(le)||le<35||le>81)return{error:'Expected drum name, received "'+te[1]+'"'};var be={sound:le};return te.length===3&&(be.noteHead=te[2]),{key:de,value:be}},F=function(ne,te){var de=d.getMeasurement(te);return de.used===0||te.length!==0?{error:'Directive "'+ne+'" requires a measurement as a parameter.'}:de.value},L=function(ne,te){var de=d.getMeasurement(te);return de.used===0||te.length!==0?'Directive "'+ne+'" requires a measurement as a parameter.':(C.formatting[ne]=de.value,null)},z=function(ne,te,de,le,be){if(de.length!==1||de[0].type!=="number")return'Directive "'+te+'" requires a number as a parameter.';var Le=de[0].intt;return le!==void 0&&Lebe?'Directive "'+te+'" requires a number less than or equal to '+be+" as a parameter.":(x[ne]=Le,null)},V=function(ne,te,de){if(de.length===1&&(de[0].token==="true"||de[0].token==="false"))return x[ne]=de[0].token==="true",null;var le=z(ne,te,de,0,1);return le!==null?le:(x[ne]=x[ne]===1,null)},U=function(ne,te,de,le){if(de.length!==1)return'Directive "'+te+'" requires one of [ '+le.join(", ")+" ] as a parameter.";for(var be=de[0].token,Le=!1,Qe=0;!Le&&Qe=0)ne.length!==0&&b("Unexpected parameter in MIDI "+le,de,0);else if(W.indexOf(le)>=0)ne.length!==1?b("Expected one parameter in MIDI "+le,de,0):be.push(ne[0].token);else if(G.indexOf(le)>=0)ne.length!==1?b("Expected one parameter in MIDI "+le,de,0):ne[0].type!=="number"?b("Expected one integer parameter in MIDI "+le,de,0):be.push(ne[0].intt);else if(q.indexOf(le)>=0)ne.length!==1&&ne.length!==2?b("Expected one or two parameters in MIDI "+le,de,0):ne[0].type!=="number"||ne.length===2&&ne[1].type!=="number"?b("Expected integer parameter in MIDI "+le,de,0):(be.push(ne[0].intt),ne.length===2&&be.push(ne[1].intt));else if(K.indexOf(le)>=0)ne.length!==2?b("Expected two parameters in MIDI "+le,de,0):ne[0].type!=="number"||ne[1].type!=="number"?b("Expected two integer parameters in MIDI "+le,de,0):(be.push(ne[0].intt),be.push(ne[1].intt));else if(oe.indexOf(le)>=0)ne.length!==2?b("Expected two parameters in MIDI "+le,de,0):ne[0].type!=="alpha"||ne[1].type!=="number"?b("Expected one string and one integer parameters in MIDI "+le,de,0):(be.push(ne[0].token),be.push(ne[1].intt));else if(le==="drummap")ne.length===2&&ne[0].type==="alpha"&&ne[1].type==="number"?(te.formatting||(te.formatting={}),te.formatting.midi||(te.formatting.midi={}),te.formatting.midi.drummap||(te.formatting.midi.drummap={}),te.formatting.midi.drummap[ne[0].token]=ne[1].intt,be=te.formatting.midi.drummap):ne.length===3&&ne[0].type==="punct"&&ne[1].type==="alpha"&&ne[2].type==="number"?(te.formatting||(te.formatting={}),te.formatting.midi||(te.formatting.midi={}),te.formatting.midi.drummap||(te.formatting.midi.drummap={}),te.formatting.midi.drummap[ne[0].token+ne[1].token]=ne[2].intt,be=te.formatting.midi.drummap):b("Expected one note name and one integer parameter in MIDI "+le,de,0);else if(he.indexOf(le)>=0)ne.length!==3||ne[0].type!=="number"||ne[1].token!=="/"||ne[2].type!=="number"?b("Expected fraction parameter in MIDI "+le,de,0):(be.push(ne[0].intt),be.push(ne[2].intt));else if(X.indexOf(le)>=0)ne.length!==4?b("Expected four parameters in MIDI "+le,de,0):ne[0].type!=="number"||ne[1].type!=="number"||ne[2].type!=="number"||ne[3].type!=="number"?b("Expected four integer parameters in MIDI "+le,de,0):(be.push(ne[0].intt),be.push(ne[1].intt),be.push(ne[2].intt),be.push(ne[3].intt));else if(J.indexOf(le)>=0)ne.length!==5?b("Expected five parameters in MIDI "+le,de,0):ne[0].type!=="number"||ne[1].type!=="number"||ne[2].type!=="number"||ne[3].type!=="number"||ne[4].type!=="number"?b("Expected five integer parameters in MIDI "+le,de,0):(be.push(ne[0].intt),be.push(ne[1].intt),be.push(ne[2].intt),be.push(ne[3].intt),be.push(ne[4].intt));else if(q.indexOf(le)>=0)ne.length!==1||ne.length!==4?b("Expected one or two parameters in MIDI "+le,de,0):ne[0].type!=="number"?b("Expected integer parameter in MIDI "+le,de,0):ne.length===4?(ne[1].token!=="octave"&&b("Expected octave parameter in MIDI "+le,de,0),ne[2].token!=="="&&b("Expected octave parameter in MIDI "+le,de,0),ne[3].type!=="number"&&b("Expected integer parameter for octave in MIDI "+le,de,0)):(be.push(ne[0].intt),ne.length===4&&be.push(ne[3].intt));else if(Z.indexOf(le)>=0)if(ne.length<2)b("Expected string parameter and at least one integer parameter in MIDI "+le,de,0);else if(ne[0].type!=="alpha")b("Expected string parameter and at least one integer parameter in MIDI "+le,de,0);else{var Le=ne.shift();for(be.push(Le.token);ne.length>0;)Le=ne.shift(),Le.type!=="number"&&b("Expected integer parameter in MIDI "+le,de,0),be.push(Le.intt)}w.hasBeginMusic()?w.appendElement("midi",-1,-1,{cmd:le,params:be}):(te.formatting.midi===void 0&&(te.formatting.midi={}),te.formatting.midi[le]=be)};parseDirective$3.parseFontChangeLine=function(ne){var te=ne.split("$");if(te.length>1&&x.setfont){for(var de=[{text:te[0]}],le=1;le1)return de}return ne};var fe=["auto","above","below","hidden"];parseDirective$3.addDirective=function(ne){var te=d.tokenize(ne,0,ne.length);if(te.length===0||te[0].type!=="alpha")return null;var de=ne.substring(ne.indexOf(te[0].token)+te[0].token.length);de=d.stripComment(de);var le=te.shift().token.toLowerCase(),be="",Le;switch(le){case"bagpipes":C.formatting.bagpipes=!0;break;case"flatbeams":C.formatting.flatbeams=!0;break;case"jazzchords":C.formatting.jazzchords=!0;break;case"germanAlphabet":C.formatting.germanAlphabet=!0;break;case"landscape":x.landscape=!0;break;case"papersize":x.papersize=de;break;case"graceslurs":if(te.length!==1)return"Directive graceslurs requires one parameter: 0 or 1";if(te[0].token==="0"||te[0].token==="false")C.formatting.graceSlurs=!1;else if(te[0].token==="1"||te[0].token==="true")C.formatting.graceSlurs=!0;else return"Directive graceslurs requires one parameter: 0 or 1 (received "+te[0].token+")";break;case"lineThickness":var Qe=me(te);if(Qe.value!==void 0&&(C.formatting.lineThickness=Qe.value),Qe.error)return Qe.error;break;case"stretchlast":var rt=me(te);if(rt.value!==void 0&&(C.formatting.stretchlast=rt.value),rt.error)return rt.error;break;case"titlecaps":x.titlecaps=!0;break;case"titleleft":C.formatting.titleleft=!0;break;case"measurebox":C.formatting.measurebox=!0;break;case"vocal":return U("vocalPosition",le,te,fe);case"dynamic":return U("dynamicPosition",le,te,fe);case"gchord":return U("chordPosition",le,te,fe);case"ornament":return U("ornamentPosition",le,te,fe);case"volume":return U("volumePosition",le,te,fe);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return L(le,te);case"voicescale":if(te.length!==1||te[0].type!=="number")return"voicescale requires one float as a parameter";var ht=te.shift();return x.currentVoice&&(x.currentVoice.scale=ht.floatt,w.changeVoiceScale(x.currentVoice.scale)),null;case"voicecolor":if(te.length!==1)return"voicecolor requires one string as a parameter";var ct=te.shift();return x.currentVoice&&(x.currentVoice.color=ct.token,w.changeVoiceColor(x.currentVoice.color)),null;case"vskip":var it=Math.round(F(le,te));return it.error?it.error:(w.addSpacing(it),null);case"scale":k(le,te);break;case"sep":if(te.length===0)w.addSeparator(14,14,85,{startChar:x.iChar,endChar:x.iChar+5});else{var Be=d.getMeasurement(te);if(Be.used===0)return'Directive "'+le+'" requires 3 numbers: space above, space below, length of line';var Ie=Be.value;if(Be=d.getMeasurement(te),Be.used===0)return'Directive "'+le+'" requires 3 numbers: space above, space below, length of line';var Fe=Be.value;if(Be=d.getMeasurement(te),Be.used===0||te.length!==0)return'Directive "'+le+'" requires 3 numbers: space above, space below, length of line';var ie=Be.value;w.addSeparator(Ie,Fe,ie,{startChar:x.iChar,endChar:x.iChar+de.length})}break;case"barsperstaff":if(be=z("barsperstaff",le,te),be!==null)return be;break;case"staffnonote":if(te.length!==1)return"Directive staffnonote requires one parameter: 0 or 1";if(te[0].token==="0")x.staffnonote=!0;else if(te[0].token==="1")x.staffnonote=!1;else return"Directive staffnonote requires one parameter: 0 or 1 (received "+te[0].token+")";break;case"printtempo":if(be=V("printTempo",le,te),be!==null)return be;break;case"partsbox":if(be=V("partsBox",le,te),be!==null)return be;x.partsfont.box=x.partsBox;break;case"freegchord":if(be=V("freegchord",le,te),be!==null)return be;break;case"measurenb":case"barnumbers":if(be=z("barNumbers",le,te),be!==null)return be;break;case"setbarnb":if(te.length!==1||te[0].type!=="number")return"Directive setbarnb requires a number as a parameter.";x.currBarNumber=w.setBarNumberImmediate(te[0].intt);break;case"begintext":var $e="";for(Le=d.nextLine();Le&&Le.indexOf("%%endtext")!==0;)parseCommon$d.startsWith(Le,"%%")?$e+=Le.substring(2)+"\n":$e+=Le+"\n",Le=d.nextLine();w.addText($e,{startChar:x.iChar,endChar:x.iChar+$e.length+7});break;case"continueall":x.continueall=!0;break;case"beginps":for(Le=d.nextLine();Le&&Le.indexOf("%%endps")!==0;)d.nextLine();b("Postscript ignored",ne,0);break;case"deco":de.length>0&&x.ignoredDecorations.push(de.substring(0,de.indexOf(" "))),b("Decoration redefinition ignored",ne,0);break;case"text":var re=d.translateString(de);w.addText(parseDirective$3.parseFontChangeLine(re),{startChar:x.iChar,endChar:x.iChar+de.length+7});break;case"center":var se=d.translateString(de);w.addCentered(parseDirective$3.parseFontChangeLine(se));break;case"font":break;case"setfont":var Ce=d.tokenize(de,0,de.length);if(Ce.length>=4&&Ce[0].token==="-"&&Ce[1].type==="number"){var Ne=parseInt(Ce[1].token);Ne>=1&&Ne<=4&&(x.setfont||(x.setfont=[]),Ce.shift(),Ce.shift(),x.setfont[Ne]=E(Ce,x.setfont[Ne],ne,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return P(le,te,ne);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return B(le,te,ne);case"barlabelfont":case"barnumberfont":case"barnumfont":return P("measurefont",te,ne);case"staves":case"score":x.score_is_present=!0;for(var we=function(ut,gt,mt,ye,Oe){(gt||x.staves.length===0)&&x.staves.push({index:x.staves.length,numVoices:0});var Ve=parseCommon$d.last(x.staves);mt!==void 0&&Ve.bracket===void 0&&(Ve.bracket=mt),ye!==void 0&&Ve.brace===void 0&&(Ve.brace=ye),Oe&&(Ve.connectBarLines="end"),x.voices[ut]===void 0&&(x.voices[ut]={staffNum:Ve.index,index:Ve.numVoices},Ve.numVoices++)},ge=!1,Ee=!1,ke=!1,Ae=!1,ve=!1,De=!1,We=!1,Ye,Je=function(){if(We=!0,Ye){var ut="start";Ye.staffNum>0&&(x.staves[Ye.staffNum-1].connectBarLines==="start"||x.staves[Ye.staffNum-1].connectBarLines==="continue")&&(ut="continue"),x.staves[Ye.staffNum].connectBarLines=ut}};te.length;){var nt=te.shift();switch(nt.token){case"(":ge?b("Can't nest parenthesis in %%score",ne,nt.start):(ge=!0,Ae=!0);break;case")":!ge||Ae?b("Unexpected close parenthesis in %%score",ne,nt.start):ge=!1;break;case"[":Ee?b("Can't nest brackets in %%score",ne,nt.start):(Ee=!0,ve=!0);break;case"]":!Ee||ve?b("Unexpected close bracket in %%score",ne,nt.start):(Ee=!1,x.staves[Ye.staffNum].bracket="end");break;case"{":ke?b("Can't nest braces in %%score",ne,nt.start):(ke=!0,De=!0);break;case"}":!ke||De?b("Unexpected close brace in %%score",ne,nt.start):(ke=!1,x.staves[Ye.staffNum].brace="end");break;case"|":Je();break;default:for(var dt="";(nt.type==="alpha"||nt.type==="number")&&(dt+=nt.token,nt.continueId);)nt=te.shift();var Ue=!ge||Ae,lt=ve?"start":Ee?"continue":void 0,yt=De?"start":ke?"continue":void 0;we(dt,Ue,lt,yt,We),Ae=!1,ve=!1,De=!1,We=!1,Ye=x.voices[dt],le==="staves"&&Je();break}}break;case"newpage":var $t=d.getInt(de);w.addNewPage($t.digits===0?-1:$t.value);break;case"abc":var Mt=de.split(" ");switch(Mt[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Lt=Mt.shift();w.addMetaText(le+Lt,Mt.join(" "),{startChar:x.iChar,endChar:x.iChar+de.length+5});break;default:return"Unknown directive: "+le+Mt[0]}break;case"header":case"footer":var At=d.getMeat(de,0,de.length);At=de.substring(At.start,At.end),At[0]==='"'&&At[At.length-1]==='"'&&(At=At.substring(1,At.length-1));var xt=At.split(" "),xe={};xt.length===1?xe={left:"",center:xt[0],right:""}:xt.length===2?xe={left:xt[0],center:xt[1],right:""}:xe={left:xt[0],center:xt[1],right:xt[2]},xt.length>3&&b("Too many tabs in "+le+": "+xt.length+" found.",de,0),w.addMetaTextObj(le,xe,{startChar:x.iChar,endChar:x.iChar+ne.length});break;case"midi":var ze=d.tokenize(de,0,de.length,!0);ze.length>0&&ze[0].token==="="&&ze.shift(),ze.length===0?b("Expected midi command",de,0):ce(ze,C,de);break;case"percmap":var Ze=R(de);Ze.error?b(Ze.error,ne,8):(C.formatting.percmap||(C.formatting.percmap={}),C.formatting.percmap[Ze.key]=Ze.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":C.formatting[le]=de;break;default:return"Unknown directive: "+le}return null},parseDirective$3.globalFormatting=function(ne){for(var te in ne)if(ne.hasOwnProperty(te)){var de=""+ne[te],le=d.tokenize(de,0,de.length),be;switch(te){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":case"tablabelfont":case"tabnumberfont":case"tabgracefont":P(te,le,de);break;case"scale":k(te,le);break;case"partsbox":be=V("partsBox",te,le),be!==null&&b(be),x.partsfont.box=x.partsBox;break;case"freegchord":be=V("freegchord",te,le),be!==null&&b(be);break;case"fontboxpadding":(le.length!==1||le[0].type!=="number")&&b('Directive "'+te+'" requires a number as a parameter.'),C.formatting.fontboxpadding=le[0].floatt;break;case"stretchlast":var Le=me(le);if(Le.value!==void 0&&(C.formatting.stretchlast=Le.value),Le.error)return Le.error;break;default:b("Formatting directive unrecognized: ",te,0)}}};function me(ne){if(ne.length===0)return{value:1};if(ne.length===1)if(ne[0].type==="number"){if(ne[0].floatt>=0||ne[0].floatt<=1)return{value:ne[0].floatt}}else{if(ne[0].token==="false")return{value:0};if(ne[0].token==="true")return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+ne[0].token+")"}}})();var abc_parse_directive=parseDirective$3,allNotes$1={};const allPitches$1=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];allNotes$1.pitchIndex=function(d){return allPitches$1.indexOf(d)};allNotes$1.noteName=function(d){return allPitches$1[d]};var allNotes_1=allNotes$1,sharpChords=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],flatChords=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],sharpChordsFree=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],flatChordsFree=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];function transposeChordName$2(d,b,x,C){if(!b||b%12===0)return d;for(;b<0;)b+=12;b>11&&(b=b%12);var w=d.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!w)return d;var A=w[1],S=w[2],$=w[3],E=w[4],P=sharpChords.indexOf(A);if(P<0&&(P=flatChords.indexOf(A)),P<0&&(P=sharpChordsFree.indexOf(A)),P<0&&(P=flatChordsFree.indexOf(A)),P<0)return d;if(P+=b,P=P%12,x?C?d=flatChordsFree[P]:d=flatChords[P]:C?d=sharpChordsFree[P]:d=sharpChords[P],S&&(d+=S),$){var P=sharpChords.indexOf($);P<0&&(P=flatChords.indexOf($)),P<0&&(P=sharpChordsFree.indexOf($)),P<0&&(P=flatChordsFree.indexOf($)),d+="/",P>=0?(P+=b,P=P%12,x?C?d+=flatChordsFree[P]:d+=flatChords[P]:C?d+=sharpChordsFree[P]:d+=sharpChords[P]):d+=$}return E&&(d+=E),d}var transposeChord=transposeChordName$2,keys$1={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},keyReverse=null;function createKeyReverse(){keyReverse={};for(var d=Object.keys(keys$1),b=0;b11&&(P=P%12);var B=b[0]==="m"?newKeyMinor[P]:newKey[P],k=B+b,I=keyAccidentals$1(k);I.length>0&&I[0].acc==="flat"&&(d.localTransposePreferFlats=!0);var R=k.charCodeAt(0)-S.charCodeAt(0);return d.localTranspose>0?(R<0||R===0&&(S[1]==="#"||k[1]==="b"))&&(R+=7):d.localTranspose<0&&(R>0||R===0&&(S[1]==="b"||k[1]==="#"))&&(R-=7),d.localTranspose>0?d.localTransposeVerticalMovement=R+Math.floor(d.localTranspose/12)*7:d.localTransposeVerticalMovement=R+Math.ceil(d.localTranspose/12)*7,E?{accidentals:I,root:B[0],acc:B.length>1?B[1]:""}:{accidentals:[],root:x,acc:C}};transpose$2.chordName=function(d,b){return transposeChordName$1(b,d.localTranspose,d.localTransposePreferFlats,d.freegchord)};var pitchToLetter=["c","d","e","f","g","a","b"];function accidentalChange(d,b,x,C,w){for(var A=pitchToLetter[(d+49)%7],S=0,$=0;$2&&(b++,R-=B==="b"||B==="e"?1:2),[b,R]}var accidentals$1={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},accidentals2={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},accidentals3={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};transpose$2.note=function(d,b){if(!(!d.localTranspose||d.clef.type==="perc")){var x=b.pitch;if(d.localTransposeVerticalMovement&&(b.pitch=b.pitch+d.localTransposeVerticalMovement,b.name)){var C=b.accidental?b.name.substring(1):b.name,w=b.accidental?b.name[0]:"",A=allNotes.pitchIndex(C);b.name=w+allNotes.noteName(A+d.localTransposeVerticalMovement)}if(b.accidental){var S=accidentalChange(x,b.pitch,b.accidental,d.globalTransposeOrigKeySig,d.targetKey);b.pitch=S[0],b.accidental=accidentals2[S[1]],b.name&&(b.name=accidentals3[S[1]]+b.name.replace(/[_^=]/g,""))}}};var abc_transpose=transpose$2,parseCommon$c=abc_common,parseDirective$2=abc_parse_directive,transpose$1=abc_transpose,parseKeyVoice$3={};(function(){var d,b,x,C;parseKeyVoice$3.initialize=function(B,k,I,R,F){d=B,b=k,x=I,C=F},parseKeyVoice$3.standardKey=function(B,k,I,R){return transpose$1.keySignature(x,B,k,I,R)};var w={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},A=function(B,k){var I=w[B],R=I?I.mid:0;return R+k};parseKeyVoice$3.fixClef=function(B){var k=w[B.type];k&&(B.clefPos=k.pitch,B.type=k.clef)},parseKeyVoice$3.deepCopyKey=function(B){var k={accidentals:[],root:B.root,acc:B.acc,mode:B.mode};return B.accidentals.forEach(function(I){k.accidentals.push(parseCommon$c.clone(I))}),k};var S={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};parseKeyVoice$3.addPosToKey=function(B,k){var I=B.verticalPos;k.accidentals.forEach(function(R){var F=S[R.note];F=F-I,R.verticalPos=F}),k.impliedNaturals&&k.impliedNaturals.forEach(function(R){var F=S[R.note];F=F-I,R.verticalPos=F}),I<-10?(k.accidentals.forEach(function(R){R.verticalPos-=7,(R.verticalPos>=11||R.verticalPos===10&&R.acc==="flat")&&(R.verticalPos-=7),R.note==="A"&&R.acc==="sharp"&&(R.verticalPos-=7),(R.note==="G"||R.note==="F")&&R.acc==="flat"&&(R.verticalPos-=7)}),k.impliedNaturals&&k.impliedNaturals.forEach(function(R){R.verticalPos-=7,(R.verticalPos>=11||R.verticalPos===10&&R.acc==="flat")&&(R.verticalPos-=7),R.note==="A"&&R.acc==="sharp"&&(R.verticalPos-=7),(R.note==="G"||R.note==="F")&&R.acc==="flat"&&(R.verticalPos-=7)})):I<-4?(k.accidentals.forEach(function(R){R.verticalPos-=7,I===-8&&(R.note==="f"||R.note==="g")&&R.acc==="sharp"&&(R.verticalPos-=7)}),k.impliedNaturals&&k.impliedNaturals.forEach(function(R){R.verticalPos-=7,I===-8&&(R.note==="f"||R.note==="g")&&R.acc==="sharp"&&(R.verticalPos-=7)})):I>=7&&(k.accidentals.forEach(function(R){R.verticalPos+=7}),k.impliedNaturals&&k.impliedNaturals.forEach(function(R){R.verticalPos+=7}))},parseKeyVoice$3.fixKey=function(B,k){var I=parseCommon$c.clone(k);return parseKeyVoice$3.addPosToKey(B,I),I};var $=function(B){var k=0,I=B[k++];(I==="^"||I==="_")&&(I=B[k++]);var R=S[I];for(R===void 0&&(R=6);k0){R.foundKey=!0;var L="",z="";I[0].token.length>1?I[0].token=I[0].token.substring(1):I.shift();var V=F.token;if(I.length>0){var U=d.getSharpFlat(I[0].token);if(U.len>0&&(I[0].token.length>1?I[0].token=I[0].token.substring(1):I.shift(),V+=U.token,L=U.token),I.length>0){var Q=d.getMode(I[0].token);Q.len>0&&(I.shift(),V+=Q.token,z=Q.token)}if(parseKeyVoice$3.standardKey(V,F.token,L,0)===void 0)return b("Unsupported key signature: "+V,B,0),R}var W=parseKeyVoice$3.deepCopyKey(x.key),G=!k&&x.globalTranspose?-x.globalTranspose:0,q;if(k&&(q=x.globalTransposeOrigKeySig),x.key=parseKeyVoice$3.deepCopyKey(parseKeyVoice$3.standardKey(V,F.token,L,G)),k&&(x.globalTransposeOrigKeySig=q),x.key.mode=z,W){for(var K,X=0;X0;)switch(I[0].token){case"m":case"middle":if(I.shift(),I.length===0)return b("Expected = after middle",B,0),R;if(fe=I.shift(),fe.token!=="="){b("Expected = after middle",B,fe.start);break}if(I.length===0)return b("Expected parameter after middle=",B,0),R;var me=d.getPitchFromTokens(I);me.warn&&b(me.warn,B,0),me.position&&(x.clef.verticalPos=me.position-6);break;case"transpose":if(I.shift(),I.length===0)return b("Expected = after transpose",B,0),R;if(fe=I.shift(),fe.token!=="="){b("Expected = after transpose",B,fe.start);break}if(I.length===0)return b("Expected parameter after transpose=",B,0),R;if(I[0].type!=="number"){b("Expected number after transpose",B,I[0].start);break}x.clef.transpose=I[0].intt,I.shift();break;case"stafflines":if(I.shift(),I.length===0)return b("Expected = after stafflines",B,0),R;if(fe=I.shift(),fe.token!=="="){b("Expected = after stafflines",B,fe.start);break}if(I.length===0)return b("Expected parameter after stafflines=",B,0),R;if(I[0].type!=="number"){b("Expected number after stafflines",B,I[0].start);break}x.clef.stafflines=I[0].intt,I.shift();break;case"staffscale":if(I.shift(),I.length===0)return b("Expected = after staffscale",B,0),R;if(fe=I.shift(),fe.token!=="="){b("Expected = after staffscale",B,fe.start);break}if(I.length===0)return b("Expected parameter after staffscale=",B,0),R;if(I[0].type!=="number"){b("Expected number after staffscale",B,I[0].start);break}x.clef.staffscale=I[0].floatt,I.shift();break;case"octave":if(I.shift(),I.length===0)return b("Expected = after octave",B,0),R;if(fe=I.shift(),fe.token!=="="){b("Expected = after octave",B,fe.start);break}if(I.length===0)return b("Expected parameter after octave=",B,0),R;if(I[0].type!=="number"){b("Expected number after octave",B,I[0].start);break}x.octave=I[0].intt,I.shift();break;case"style":if(I.shift(),I.length===0)return b("Expected = after style",B,0),R;if(fe=I.shift(),fe.token!=="="){b("Expected = after style",B,fe.start);break}if(I.length===0)return b("Expected parameter after style=",B,0),R;switch(I[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":x.style=I[0].token,I.shift();break;default:b("error parsing style element: "+I[0].token,B,I[0].start);break}break;case"clef":if(I.shift(),I.length===0)return b("Expected = after clef",B,0),R;if(fe=I.shift(),fe.token!=="="){b("Expected = after clef",B,fe.start);break}if(I.length===0)return b("Expected parameter after clef=",B,0),R;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var ne=I.shift();switch(ne.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":ne.token="alto";break;case"F":ne.token="bass";break;case"G":ne.token="treble";break;case"c":ne.token="alto";break;case"f":ne.token="bass";break;case"g":ne.token="treble";break;default:b("Expected clef name. Found "+ne.token,B,ne.start);break}I.length>0&&I[0].type==="number"&&(ne.token+=I[0].token,I.shift()),I.length>1&&(I[0].token==="-"||I[0].token==="+"||I[0].token==="^"||I[0].token==="_")&&I[1].token==="8"&&(ne.token+=I[0].token+I[1].token,I.shift(),I.shift()),x.clef={type:ne.token,verticalPos:A(ne.token,0)},x.currentVoice&&x.currentVoice.transpose!==void 0&&(x.clef.transpose=x.currentVoice.transpose),R.foundClef=!0;break;default:b("Unknown parameter: "+I[0].token,B,I[0].start),I.shift()}return R};var P=function(B){x.currentVoice=x.voices[B],C.setCurrentVoice(x.currentVoice.staffNum,x.currentVoice.index)};parseKeyVoice$3.parseVoice=function(B,k,I){var R=d.getMeat(B,k,I),F=R.start,L=R.end,z=d.getToken(B,F,L);if(z.length===0){b("Expected a voice id",B,F);return}var V=!1;x.voices[z]===void 0&&(x.voices[z]={},V=!0,x.score_is_present&&b("Can't have an unknown V: id when the %score directive is present",B,F)),F+=z.length,F+=d.eatWhiteSpace(B,F);for(var U={startStaff:V},Q=function(me){var ne=d.getVoiceToken(B,F,L);ne.warn!==void 0?b("Expected value for "+me+" in voice: "+ne.warn,B,F):ne.err!==void 0?b("Expected value for "+me+" in voice: "+ne.err,B,F):ne.token.length===0&&B[F]!=='"'?b("Expected value for "+me+" in voice",B,F):U[me]=ne.token,F+=ne.len},W=function(me,ne,te){var de=d.getVoiceToken(B,F,L);de.warn!==void 0?b("Expected value for "+ne+" in voice: "+de.warn,B,F):de.err!==void 0?b("Expected value for "+ne+" in voice: "+de.err,B,F):de.token.length===0&&B[F]!=='"'?b("Expected value for "+ne+" in voice",B,F):(te==="number"&&(de.token=parseFloat(de.token)),x.voices[me][ne]=de.token),F+=de.len},G=function(me,ne){var te=d.getVoiceToken(B,F,L);if(te.warn!==void 0)b("Expected value for "+me+" in voice: "+te.warn,B,F);else if(te.err!==void 0)b("Expected value for "+me+" in voice: "+te.err,B,F);else if(te.token.length===0&&B[F]!=='"')b("Expected value for "+me+" in voice",B,F);else return ne==="number"&&(te.token=parseFloat(te.token)),te.token;F+=te.len},q=function(me,ne){var te={_B:2,_E:9,_b:-10,_e:-3},de=d.getVoiceToken(B,F,L);if(de.warn!==void 0)b("Expected one of (_B, _E, _b, _e) for "+ne+" in voice: "+de.warn,B,F);else if(de.token.length===0&&B[F]!=='"')b("Expected one of (_B, _E, _b, _e) for "+ne+" in voice",B,F);else{var le=te[de.token];le?x.voices[me][ne]=le:b("Expected one of (_B, _E, _b, _e) for "+ne+" in voice",B,F)}F+=de.len};F0&&(x.default_length=I/R,x.havent_set_length=!1)}else k.length===1&&k[0]==="1"&&(x.default_length=1,x.havent_set_length=!1)};var A={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function($,E,P,B){try{var k=d.tokenize($,E,P);if(k.length===0)throw"Missing parameter in Q: field";var I={startChar:B+E-2,endChar:B+P},R=!0,F=k.shift();if(F.type==="quote"&&(I.preString=F.token,F=k.shift(),k.length===0))return A[I.preString.toLowerCase()]&&(I.bpm=A[I.preString.toLowerCase()],I.suppressBpm=!0),{type:"immediate",tempo:I};if(F.type==="alpha"&&F.token==="C"){if(k.length===0)throw"Missing tempo after C in Q: field";if(F=k.shift(),F.type==="punct"&&F.token==="="){if(k.length===0)throw"Missing tempo after = in Q: field";if(F=k.shift(),F.type!=="number")throw"Expected number after = in Q: field";I.duration=[1],I.bpm=parseInt(F.token)}else if(F.type==="number"){if(I.duration=[parseInt(F.token)],k.length===0)throw"Missing = after duration in Q: field";if(F=k.shift(),F.type!=="punct"||F.token!=="=")throw"Expected = after duration in Q: field";if(k.length===0)throw"Missing tempo after = in Q: field";if(F=k.shift(),F.type!=="number")throw"Expected number after = in Q: field";I.bpm=parseInt(F.token)}else throw"Expected number or equal after C in Q: field"}else if(F.type==="number"){var L=parseInt(F.token);if(k.length===0||k[0].type==="quote")I.duration=[1],I.bpm=L;else{if(R=!1,F=k.shift(),F.type!=="punct"&&F.token!=="/"||(F=k.shift(),F.type!=="number"))throw"Expected fraction in Q: field";var z=parseInt(F.token);for(I.duration=[L/z];k.length>0&&k[0].token!=="="&&k[0].type!=="quote";){if(F=k.shift(),F.type!=="number"||(L=parseInt(F.token),F=k.shift(),F.type!=="punct"&&F.token!=="/")||(F=k.shift(),F.type!=="number"))throw"Expected fraction in Q: field";z=parseInt(F.token),I.duration.push(L/z)}if(F=k.shift(),F.type!=="punct"&&F.token!=="=")throw"Expected = in Q: field";if(F=k.shift(),F.type!=="number")throw"Expected tempo in Q: field";I.bpm=parseInt(F.token)}}else throw"Unknown value in Q: field";if(k.length!==0&&(F=k.shift(),F.type==="quote"&&(I.postString=F.token,F=k.shift()),k.length!==0))throw"Unexpected string at end of Q: field";return x.printTempo===!1&&(I.suppress=!0),{type:R?"delaySet":"immediate",tempo:I}}catch(V){return b(V,$,E),{type:"none"}}},this.letter_to_inline_header=function($,E,P){var B=d.eatWhiteSpace($,E);if(E+=B,$.length>=E+5&&$[E]==="["&&$[E+2]===":"){var k=$.indexOf("]",E),I=x.iChar+E,R=x.iChar+k+1;switch($.substring(E,E+3)){case"[I:":var F=parseDirective$1.addDirective($.substring(E+3,k));return F&&b(F,$,E),[k-E+1+B];case"[M:":var L=this.setMeter($.substring(E+3,k));return w.hasBeginMusic()&&L?w.appendStartingElement("meter",I,R,L):x.meter=L,[k-E+1+B];case"[K:":var z=parseKeyVoice$2.parseKey($.substring(E+3,k),!0);return z.foundClef&&w.hasBeginMusic()&&w.appendStartingElement("clef",I,R,x.clef),z.foundKey&&w.hasBeginMusic()&&w.appendStartingElement("key",I,R,parseKeyVoice$2.fixKey(x.clef,x.key)),[k-E+1+B];case"[P:":return P||C.lines.length<=C.lineNum?x.partForNextLine={title:$.substring(E+3,k),startChar:I,endChar:R}:w.appendElement("part",I,R,{title:$.substring(E+3,k)}),[k-E+1+B];case"[L:":return this.setDefaultLength($,E+3,k),[k-E+1+B];case"[Q:":if(k>0){var V=this.setTempo($,E+3,k,x.iChar);return V.type==="delaySet"?w.hasBeginMusic()?w.appendElement("tempo",I,R,this.calcTempo(V.tempo)):x.tempoForNextLine=["tempo",I,R,this.calcTempo(V.tempo)]:V.type==="immediate"&&(!P&&w.hasBeginMusic()?w.appendElement("tempo",I,R,V.tempo):x.tempoForNextLine=["tempo",I,R,V.tempo]),[k-E+1+B,$[E+1],$.substring(E+3,k)]}break;case"[V:":if(k>0)return parseKeyVoice$2.parseVoice($,E+3,k),[k-E+1+B,$[E+1],$.substring(E+3,k)];break;case"[r:":return[k-E+1+B]}}return[0]},this.letter_to_body_header=function($,E){if($.length>=E+3)switch($.substring(E,E+2)){case"I:":var P=parseDirective$1.addDirective($.substring(E+2));return P&&b(P,$,E),[$.length];case"M:":var B=this.setMeter($.substring(E+2));return w.hasBeginMusic()&&B&&w.appendStartingElement("meter",x.iChar+E,x.iChar+$.length,B),[$.length];case"K:":var k=parseKeyVoice$2.parseKey($.substring(E+2),w.hasBeginMusic());return k.foundClef&&w.hasBeginMusic()&&w.appendStartingElement("clef",x.iChar+E,x.iChar+$.length,x.clef),k.foundKey&&w.hasBeginMusic()&&w.appendStartingElement("key",x.iChar+E,x.iChar+$.length,parseKeyVoice$2.fixKey(x.clef,x.key)),[$.length];case"P:":return w.hasBeginMusic()&&w.appendElement("part",x.iChar+E,x.iChar+$.length,{title:$.substring(E+2)}),[$.length];case"L:":return this.setDefaultLength($,E+2,$.length),[$.length];case"Q:":var I=$.indexOf("",E+2);I===-1&&(I=$.length);var R=this.setTempo($,E+2,I,x.iChar);return R.type==="delaySet"?w.appendElement("tempo",x.iChar+E,x.iChar+$.length,this.calcTempo(R.tempo)):R.type==="immediate"&&w.appendElement("tempo",x.iChar+E,x.iChar+$.length,R.tempo),[I,$[E],parseCommon$b.strip($.substring(E+2))];case"V:":return parseKeyVoice$2.parseVoice($,E+2,$.length),[$.length,$[E],parseCommon$b.strip($.substring(E+2))]}return[0]};var S={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function($){var E=S[$[0]];if(E!==void 0)return E==="unalignedWords"?w.addMetaTextArray(E,parseDirective$1.parseFontChangeLine(d.translateString(d.stripComment($.substring(2)))),{startChar:x.iChar,endChar:x.iChar+$.length}):w.addMetaText(E,d.translateString(d.stripComment($.substring(2))),{startChar:x.iChar,endChar:x.iChar+$.length}),{};var P=x.iChar,B=P+$.length;switch($[0]){case"H":for(w.addMetaText("history",d.translateString(d.stripComment($.substring(2))),{startChar:x.iChar,endChar:x.iChar+$.length}),$=d.peekLine();$&&$[1]!==":";)d.nextLine(),w.addMetaText("history",d.translateString(d.stripComment($)),{startChar:x.iChar,endChar:x.iChar+$.length}),$=d.peekLine();break;case"K":this.resolveTempo();var k=parseKeyVoice$2.parseKey($.substring(2),!1);!x.is_in_header&&w.hasBeginMusic()&&(k.foundClef&&w.appendStartingElement("clef",P,B,x.clef),k.foundKey&&w.appendStartingElement("key",P,B,parseKeyVoice$2.fixKey(x.clef,x.key))),x.is_in_header=!1;break;case"L":this.setDefaultLength($,2,$.length);break;case"M":x.origMeter=x.meter=this.setMeter($.substring(2));break;case"P":x.is_in_header?w.addMetaText("partOrder",d.translateString(d.stripComment($.substring(2))),{startChar:x.iChar,endChar:x.iChar+$.length}):x.partForNextLine={title:d.translateString(d.stripComment($.substring(2))),startChar:P,endChar:B};break;case"Q":var I=this.setTempo($,2,$.length,x.iChar);I.type==="delaySet"?x.tempo=I.tempo:I.type==="immediate"&&(C.metaText.tempo?x.tempoForNextLine=["tempo",P,B,I.tempo]:C.metaText.tempo=I.tempo);break;case"T":this.setTitle($.substring(2));break;case"U":this.addUserDefinition($,2,$.length);break;case"V":if(parseKeyVoice$2.parseVoice($,2,$.length),!x.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":b("Ignored header",$,0);break;default:return{regular:!0}}return{}}},abc_parse_header=ParseHeader$1,parseCommon$a=abc_common,parseKeyVoice$1=abc_parse_key_voice,transpose=abc_transpose,tokenizer,warn,multilineVars,tune,tuneBuilder$1,header,MusicParser=function(d,b,x,C,w,A){tokenizer=d,warn=b,multilineVars=x,tune=C,tuneBuilder$1=w,header=A,this.lineContinuation=!1},nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",isInTie=function(d,b,x){if(d.inTie[b]===void 0)return!1;var C=d.currentVoice?d.currentVoice.staffNum*100+d.currentVoice.index:0;return!!(d.inTie[b][C]&&(x.pitches!==void 0||x.rest.type!=="spacer"))},el={};MusicParser.prototype.parseMusic=function(d){header.resolveTempo(),multilineVars.is_in_header=!1;for(var b=0,x=multilineVars.iChar;tokenizer.isWhiteSpace(d[b])&&b0&&(b+=A[0],A[1]==="V"&&this.startNewLine());for(var S=0;b0)b+=E[0],E[1]==="V"&&(C=!0);else{(!tuneBuilder$1.hasBeginMusic()||C&&!this.lineContinuation)&&(this.startNewLine(),C=!1);for(var P;;)if(P=tokenizer.eatWhiteSpace(d,b),P>0&&(b+=P),b>0&&d[b-1]===""&&(P=header.letter_to_body_header(d,b),P[0]>0&&(P[1]==="V"&&this.startNewLine(),b=P[0],multilineVars.start_new_line=!1)),P=letter_to_spacer(d,b),P[0]>0&&(b+=P[0]),P=letter_to_chord(d,b),P[0]>0){el.chord||(el.chord=[]);var B=tokenizer.translateString(P[1]);B=B.replace(/;/g,"\n");for(var k=!1,I=0;I0&&(el.force_end_beam_last=!0),b+=R}else if(nonDecorations.indexOf(d[b])===-1?P=letter_to_accent(d,b):P=[0],P[0]>0)P[1]===null?b+10&&(P[1].indexOf("style=")===0?el.style=P[1].substr(6):(el.decoration===void 0&&(el.decoration=[]),P[1]==="beambr1"?el.beambr=1:P[1]==="beambr2"?el.beambr=2:el.decoration.push(P[1]))),b+=P[0];else if(P=letter_to_grace(d,b),P[0]>0)el.gracenotes=P[1],b+=P[0];else break;if(P=letter_to_bar(d,b),P[0]>0){S=0,el.gracenotes!==void 0&&(el.rest={type:"spacer"},el.duration=.125,multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",x+b,x+b+P[0],el),multilineVars.measureNotEmpty=!0,el={});var F={type:P[1]};if(F.type.length===0)warn("Unknown bar type",d,b);else{if(multilineVars.inEnding&&F.type!=="bar_thin"&&(F.endEnding=!0,multilineVars.inEnding=!1),P[2]&&(F.startEnding=P[2],multilineVars.inEnding&&(F.endEnding=!0),multilineVars.inEnding=!0,P[1]==="bar_right_repeat"?multilineVars.restoreStartEndingHoldOvers():multilineVars.duplicateStartEndingHoldOvers()),el.decoration!==void 0&&(F.decoration=el.decoration),el.chord!==void 0&&(F.chord=el.chord),F.startEnding&&multilineVars.barFirstEndingNum===void 0?multilineVars.barFirstEndingNum=multilineVars.currBarNumber:F.startEnding&&F.endEnding&&multilineVars.barFirstEndingNum?multilineVars.currBarNumber=multilineVars.barFirstEndingNum:F.endEnding&&(multilineVars.barFirstEndingNum=void 0),F.type!=="bar_invisible"&&multilineVars.measureNotEmpty){var L=multilineVars.currentVoice===void 0||multilineVars.currentVoice.staffNum===0&&multilineVars.currentVoice.index===0;L&&(multilineVars.currBarNumber++,multilineVars.barNumbers&&multilineVars.currBarNumber%multilineVars.barNumbers===0&&(F.barNumber=multilineVars.currBarNumber))}multilineVars.addFormattingOptions(el,tune.formatting,"bar"),tuneBuilder$1.appendElement("bar",x+$,x+b+P[0],F),multilineVars.measureNotEmpty=!1,el={}}b+=P[0]}else if(d[b]==="&")P=letter_to_overlay(d,b),P[0]>0&&(tuneBuilder$1.appendElement("overlay",x,x+1,{}),b+=1,S++);else{if(P=letter_to_open_slurs_and_triplets(d,b),P.consumed>0&&(P.startSlur!==void 0&&(el.startSlur=P.startSlur),P.dottedSlur&&(el.dottedSlur=!0),P.triplet!==void 0&&(w>0?warn("Can't nest triplets",d,b):(el.startTriplet=P.triplet,el.tripletMultiplier=P.tripletQ/P.triplet,el.tripletR=P.num_notes,w=P.num_notes===void 0?P.triplet:P.num_notes)),b+=P.consumed),d[b]==="["){b++;for(var z=null,V=!1,U=!1;!U;){var Q=letter_to_accent(d,b);Q[0]>0&&(b+=Q[0]);var W=getCoreNote(d,b,{},!1);if(W!==null&&W.pitch!==void 0)Q[0]>0&&Q[1].indexOf("style=")!==0&&(el.decoration===void 0&&(el.decoration=[]),el.decoration.push(Q[1])),W.end_beam&&(el.end_beam=!0,delete W.end_beam),el.pitches===void 0?(el.duration=W.duration,el.pitches=[W]):el.pitches.push(W),delete W.duration,Q[0]>0&&Q[1].indexOf("style=")===0&&(el.pitches[el.pitches.length-1].style=Q[1].substr(6)),multilineVars.inTieChord[el.pitches.length]&&(W.endTie=!0,multilineVars.inTieChord[el.pitches.length]=void 0),W.startTie&&(multilineVars.inTieChord[el.pitches.length]=!0),b=W.endChar,delete W.endChar;else if(d[b]===" ")warn("Spaces are not allowed in chords",d,b),b++;else{if(b0&&!(el.rest&&el.rest.type==="spacer")&&(w--,w===0&&(el.endTriplet=!0));for(var G=!1;b":case"<":var q=getBrokenRhythm(d,b);b+=q[0]-1,multilineVars.next_note_duration=q[2],z?z=z*q[1]:z=q[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var K=tokenizer.getFraction(d,b);z=K.value,b=K.index;var X=d[b];X===" "&&(V=!0),X==="-"||X===")"||X===" "||X==="<"||X===">"?b--:G=!0;break;default:G=!0;break}G||b++}}else warn("Expected ']' to end the chords",d,b);el.pitches!==void 0&&(z!==null&&(el.duration=el.duration*z,V&&addEndBeam(el)),multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",x+$,x+b,el),multilineVars.measureNotEmpty=!0,el={}),U=!0}}}else{var J={},oe=getCoreNote(d,b,J,!0);if(J.endTie!==void 0&&setIsInTie(multilineVars,S,!0),oe!==null){oe.pitch!==void 0?(el.pitches=[{}],oe.accidental!==void 0&&(el.pitches[0].accidental=oe.accidental),el.pitches[0].pitch=oe.pitch,el.pitches[0].name=oe.name,(oe.midipitch||oe.midipitch===0)&&(el.pitches[0].midipitch=oe.midipitch),oe.endSlur!==void 0&&(el.pitches[0].endSlur=oe.endSlur),oe.endTie!==void 0&&(el.pitches[0].endTie=oe.endTie),oe.startSlur!==void 0&&(el.pitches[0].startSlur=oe.startSlur),el.startSlur!==void 0&&(el.pitches[0].startSlur=el.startSlur),el.dottedSlur!==void 0&&(el.pitches[0].dottedSlur=!0),oe.startTie!==void 0&&(el.pitches[0].startTie=oe.startTie),el.startTie!==void 0&&(el.pitches[0].startTie=el.startTie)):(el.rest=oe.rest,oe.endSlur!==void 0&&(el.endSlur=oe.endSlur),oe.endTie!==void 0&&(el.rest.endTie=oe.endTie),oe.startSlur!==void 0&&(el.startSlur=oe.startSlur),oe.startTie!==void 0&&(el.rest.startTie=oe.startTie),el.startTie!==void 0&&(el.rest.startTie=el.startTie)),oe.chord!==void 0&&(el.chord=oe.chord),oe.duration!==void 0&&(el.duration=oe.duration),oe.decoration!==void 0&&(el.decoration=oe.decoration),oe.graceNotes!==void 0&&(el.graceNotes=oe.graceNotes),delete el.startSlur,delete el.dottedSlur,isInTie(multilineVars,S,el)&&(el.pitches!==void 0?el.pitches[0].endTie=!0:el.rest.type!=="spacer"&&(el.rest.endTie=!0),setIsInTie(multilineVars,S,!1)),(oe.startTie||el.startTie)&&setIsInTie(multilineVars,S,!0),b=oe.endChar,w>0&&!(oe.rest&&oe.rest.type==="spacer")&&(w--,w===0&&(el.endTriplet=!0)),oe.end_beam&&addEndBeam(el),el.rest&&el.rest.type==="rest"&&el.duration===1&&durationOfMeasure(multilineVars)<=1&&(el.rest.type="whole",el.duration=durationOfMeasure(multilineVars));var he=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875];el.duration<1&&he.indexOf(el.duration)===-1&&el.duration!==0&&(!el.rest||el.rest.type!=="spacer")&&warn("Duration not representable: "+d.substring($,b),d,b),multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",x+$,x+b,el),multilineVars.measureNotEmpty=!0,el={}}}b===$&&(d[b]!==" "&&d[b]!=="`"&&warn("Unknown character ignored",d,b),b++)}}}this.lineContinuation=d.indexOf("")>=0||A[0]>0,this.lineContinuation||(el={})}};var setIsInTie=function(d,b,x){var C=d.currentVoice?d.currentVoice.staffNum*100+d.currentVoice.index:0;d.inTie[b]===void 0&&(d.inTie[b]=[]),d.inTie[b][C]=x},letter_to_chord=function(d,b){if(d[b]==='"'){var x=tokenizer.getBrackettedSubstring(d,b,5);if(x[2]||warn("Missing the closing quote while parsing the chord symbol",d,b),x[0]>0&&x[1].length>0&&x[1][0]==="^")x[1]=x[1].substring(1),x[2]="above";else if(x[0]>0&&x[1].length>0&&x[1][0]==="_")x[1]=x[1].substring(1),x[2]="below";else if(x[0]>0&&x[1].length>0&&x[1][0]==="<")x[1]=x[1].substring(1),x[2]="left";else if(x[0]>0&&x[1].length>0&&x[1][0]===">")x[1]=x[1].substring(1),x[2]="right";else if(x[0]>0&&x[1].length>0&&x[1][0]==="@"){x[1]=x[1].substring(1);var C=tokenizer.getFloat(x[1]);C.digits===0&&warn("Missing first position in absolutely positioned annotation.",d,b),x[1]=x[1].substring(C.digits),x[1][0]!==","&&warn("Missing comma absolutely positioned annotation.",d,b),x[1]=x[1].substring(1);var w=tokenizer.getFloat(x[1]);w.digits===0&&warn("Missing second position in absolutely positioned annotation.",d,b),x[1]=x[1].substring(w.digits);var A=tokenizer.skipWhiteSpace(x[1]);x[1]=x[1].substring(A),x[2]=null,x[3]={x:C.value,y:w.value}}else multilineVars.freegchord!==!0&&(x[1]=x[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),x[1]=x[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),x[1]=x[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),x[1]=x[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),x[1]=x[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),x[1]=x[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),x[2]="default",x[1]=transpose.chordName(multilineVars,x[1]);return x}return[0,""]},letter_to_grace=function(d,b){if(d[b]==="{"){var x=tokenizer.getBrackettedSubstring(d,b,1,"}");x[2]||warn("Missing the closing '}' while parsing grace note",d,b),d[b+x[0]]===")"&&(x[0]++,x[1]+=")");for(var C=[],w=0,A=!1;w0&&(C[C.length-1].endBeam=!0):warn("Unknown character '"+x[1][w]+"' while parsing grace note",d,b),w++)}if(C.length)return[x[0],C]}return[0]};function letter_to_overlay(d,b){if(d[b]==="&"){for(var x=b;d[b]&&d[b]!==":"&&d[b]!=="|";)b++;return[b-x,d.substring(x+1,b)]}return[0]}function durationOfMeasure(d){var b=d.origMeter;return!b||b.type!=="specified"||!b.value||b.value.length===0?1:parseInt(b.value[0].num,10)/parseInt(b.value[0].den,10)}var legalAccents=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","beambr1","beambr2","slide","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x","style=triangle","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"],volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)"],accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],letter_to_accent=function(d,b){var x=multilineVars.macros[d[b]];if(x!==void 0)return(x[0]==="!"||x[0]==="+")&&(x=x.substring(1)),(x[x.length-1]==="!"||x[x.length-1]==="+")&&(x=x.substring(0,x.length-1)),legalAccents.includes(x)?[1,x]:volumeDecorations.includes(x)?(multilineVars.volumePosition==="hidden"&&(x=""),[1,x]):dynamicDecorations.includes(x)?(multilineVars.dynamicPosition==="hidden"&&(x=""),[1,x]):(multilineVars.ignoredDecorations.includes(x)||warn("Unknown macro: "+x,d,b),[1,""]);switch(d[b]){case".":if(d[b+1]==="("||d[b+1]==="-")break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var C=tokenizer.getBrackettedSubstring(d,b,5);if(C[1].length>1&&(C[1][0]==="^"||C[1][0]==="_")&&(C[1]=C[1].substring(1)),legalAccents.includes(C[1]))return C;if(volumeDecorations.includes(C[1]))return multilineVars.volumePosition==="hidden"&&(C[1]=""),C;if(dynamicDecorations.includes(C[1]))return multilineVars.dynamicPosition==="hidden"&&(C[1]=""),C;var w=accentPseudonyms.findIndex(function(A){return C[1]===A[0]});return w>=0?(C[1]=accentPseudonyms[w][1],C):(w=accentDynamicPseudonyms.findIndex(function(A){return C[1]===A[0]}),w>=0?(C[1]=accentDynamicPseudonyms[w][1],multilineVars.dynamicPosition==="hidden"&&(C[1]=""),C):d[b]==="!"&&(C[0]===1||d[b+C[0]-1]!=="!")?[1,null]:(warn("Unknown decoration: "+C[1],d,b),C[1]="",C));case"H":return[1,"fermata"];case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]},letter_to_spacer=function(d,b){for(var x=b;tokenizer.isWhiteSpace(d[b]);)b++;return[b-x]},letter_to_bar=function(d,b){var x=tokenizer.getBarLine(d,b);if(x.len===0)return[0,""];if(x.warn)return warn(x.warn,d,b),[x.len,""];for(var C=0;C="2"&&d[b+1]<="9"?(x.triplet!==void 0?warn("Can't nest triplets",d,b):(x.triplet=d[b+1]-"0",x.tripletQ=tripletQ[x.triplet],x.num_notes=x.triplet,b+2="1"&&d[b+4]<="9"?(x.num_notes=d[b+4]-"0",b+=3):warn("expected number after the two colons after the triplet to mark the duration",d,b):b+3="1"&&d[b+3]<="9"?(x.tripletQ=d[b+3]-"0",b+4="1"&&d[b+5]<="9"&&(x.num_notes=d[b+5]-"0",b+=4):b+=2):warn("expected number after the triplet to mark the duration",d,b))),b++):x.startSlur===void 0?x.startSlur=1:x.startSlur++),b++;return x.consumed=b-C,x};MusicParser.prototype.startNewLine=function(){var d={startChar:-1,endChar:-1};multilineVars.partForNextLine.title&&(d.part=multilineVars.partForNextLine),d.clef=multilineVars.currentVoice&&multilineVars.staves[multilineVars.currentVoice.staffNum].clef!==void 0?parseCommon$a.clone(multilineVars.staves[multilineVars.currentVoice.staffNum].clef):parseCommon$a.clone(multilineVars.clef);var b=multilineVars.currentVoice?multilineVars.currentVoice.scoreTranspose:0;if(d.key=parseKeyVoice$1.standardKey(multilineVars.key.root+multilineVars.key.acc+multilineVars.key.mode,multilineVars.key.root,multilineVars.key.acc,b),d.key.mode=multilineVars.key.mode,multilineVars.key.impliedNaturals&&(d.key.impliedNaturals=multilineVars.key.impliedNaturals),multilineVars.key.explicitAccidentals)for(var x=0;x=0?(x.duration=tune.getBarLength(),x.rest.text=1,S="Zduration"):(C&&multilineVars.next_note_duration!==0?(x.duration=multilineVars.default_length*multilineVars.next_note_duration,multilineVars.next_note_duration=0,$=!0):x.duration=multilineVars.default_length,S="duration");else return w(S)?(x.endChar=b,x):null;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if(S==="octave"||S==="duration"){var P=tokenizer.getFraction(d,b);for(x.duration=x.duration*P.value,x.endChar=P.index;P.index"))b--,S="broken_rhythm";else return x}else return null;break;case">":case"<":if(w(S))if(C){var k=getBrokenRhythm(d,b);b+=k[0]-1,multilineVars.next_note_duration=k[2],x.duration=k[1]*x.duration,S="end_slur"}else return x.endChar=b,x;else return null;break;default:return w(S)?(x.endChar=b,x):null}if(b++,b===d.length)return w(S)?(x.endChar=b,x):null}return null},getBrokenRhythm=function(d,b){switch(d[b]){case">":return b"&&d[b+2]===">"?[3,1.875,.125]:b"?[2,1.75,.25]:[1,1.5,.5];case"<":return b=P.length};this.eatWhiteSpace=function(P,B){for(var k=B;k="a"&&R[F]<="z"||R[F]>="A"&&R[F]<="Z");)F++;return F},k=this.skipWhiteSpace(P);if(x(P,k))return{len:0};var I=P.substring(k,k+3).toLowerCase();switch((I.length>1&&I[1]===" "||I[1]==="^"||I[1]==="_"||I[1]==="=")&&(I=I[0]),I){case"mix":return{len:B(P,k),token:"Mix"};case"dor":return{len:B(P,k),token:"Dor"};case"phr":return{len:B(P,k),token:"Phr"};case"lyd":return{len:B(P,k),token:"Lyd"};case"loc":return{len:B(P,k),token:"Loc"};case"aeo":return{len:B(P,k),token:"m"};case"maj":return{len:B(P,k),token:""};case"ion":return{len:B(P,k),token:""};case"min":return{len:B(P,k),token:"m"};case"m":return{len:B(P,k),token:"m"}}return{len:0}},this.getClef=function(P,B){var k=P,I=this.skipWhiteSpace(P);if(x(P,I))return{len:0};var R=!1,F=P.substring(I);if(parseCommon$9.startsWith(F,"clef=")&&(R=!0,F=F.substring(5),I+=5),F.length===0&&R)return{len:I+5,warn:"No clef specified: "+k};var L=this.skipWhiteSpace(F);if(x(F,L))return{len:0};L>0&&(I+=L,F=F.substring(L));var z=null;if(parseCommon$9.startsWith(F,"treble"))z="treble";else if(parseCommon$9.startsWith(F,"bass3"))z="bass3";else if(parseCommon$9.startsWith(F,"bass"))z="bass";else if(parseCommon$9.startsWith(F,"tenor"))z="tenor";else if(parseCommon$9.startsWith(F,"alto2"))z="alto2";else if(parseCommon$9.startsWith(F,"alto1"))z="alto1";else if(parseCommon$9.startsWith(F,"alto"))z="alto";else if(!B&&R&&parseCommon$9.startsWith(F,"none"))z="none";else if(parseCommon$9.startsWith(F,"perc"))z="perc";else if(!B&&R&&parseCommon$9.startsWith(F,"C"))z="tenor";else if(!B&&R&&parseCommon$9.startsWith(F,"F"))z="bass";else if(!B&&R&&parseCommon$9.startsWith(F,"G"))z="treble";else return{len:I+5,warn:"Unknown clef specified: "+k};return F=F.substring(z.length),L=this.isMatch(F,"+8"),L>0?z+="+8":(L=this.isMatch(F,"-8"),L>0&&(z+="-8")),{len:I+z.length,token:z,explicit:R}},this.getBarLine=function(P,B){switch(P[B]){case"]":switch(++B,P[B]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++B,P[B]>="1"&&P[B]<="9"||P[B]==='"'?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}case":":switch(++B,P[B]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++B,P[B]){case"]":switch(++B,P[B]){case"|":return++B,P[B]===":"?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}case"|":return++B,P[B]===":"?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}default:return{len:1,warn:"Unknown bar symbol"}}case"[":if(++B,P[B]==="|")switch(++B,P[B]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}else return P[B]>="1"&&P[B]<="9"||P[B]==='"'?{len:1,token:"bar_invisible"}:{len:0};case"|":switch(++B,P[B]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++B,P[B]===":"?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var k=0;P[B+k]===":";)k++;return{len:1+k,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(P,B){for(var k=0;k0;){var k;if(P[0].token==="^"){if(k="sharp",P.shift(),P.length===0)return{accs:B,warn:"Expected note name after "+k};switch(P[0].token){case"^":k="dblsharp",P.shift();break;case"/":k="quartersharp",P.shift();break}}else if(P[0].token==="=")k="natural",P.shift();else if(P[0].token==="_"){if(k="flat",P.shift(),P.length===0)return{accs:B,warn:"Expected note name after "+k};switch(P[0].token){case"_":k="dblflat",P.shift();break;case"/":k="quarterflat",P.shift();break}}else return{accs:B};if(P.length===0)return{accs:B,warn:"Expected note name after "+k};switch(P[0].token[0]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":B===void 0&&(B=[]),B.push({acc:k,note:P[0].token[0]}),P[0].token.length===1?P.shift():P[0].token=P[0].token.substring(1);break;default:return{accs:B,warn:"Expected note name after "+k+" Found: "+P[0].token}}}return{accs:B}},this.getKeyAccidental=function(P){var B={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},k=this.skipWhiteSpace(P);if(x(P,k))return{len:0};var I=null;switch(P[k]){case"^":case"_":case"=":I=P[k];break;default:return{len:0}}if(k++,x(P,k))return{len:1,warn:"Expected note name after accidental"};switch(P[k]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:k+1,token:{acc:B[I],note:P[k]}};case"^":case"_":case"/":if(I+=P[k],k++,x(P,k))return{len:2,warn:"Expected note name after accidental"};switch(P[k]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:k+1,token:{acc:B[I],note:P[k]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(P){return P===" "||P===" "||P===""},this.getMeat=function(P,B,k){var I=P.indexOf("%",B);for(I>=0&&I="A"&&P<="Z"||P>="a"&&P<="z"},w=function(P){return P>="0"&&P<="9"};this.tokenize=function(P,B,k,I){var R=this.getMeat(P,B,k);B=R.start,k=R.end;for(var F=[],L;B=k?{len:1,err:"Missing close quote"}:{len:R-B+1,token:this.translateString(P.substring(I+1,R))}}else{for(var F=I;F=0?parseCommon$9.strip(P.substring(0,B)):parseCommon$9.strip(P)},this.getInt=function(P){var B=parseInt(P);if(isNaN(B))return{digits:0};var k=""+B,I=P.indexOf(k);return{value:B,digits:I+k.length}},this.getFloat=function(P){var B=parseFloat(P);if(isNaN(B))return{digits:0};var k=""+B,I=P.indexOf(k);return{value:B,digits:I+k.length}},this.getMeasurement=function(P){if(P.length===0)return{used:0};var B=1,k="";if(P[0].token==="-")P.shift(),k="-",B++;else if(P[0].type!=="number")return{used:0};if(k+=P.shift().token,P.length===0)return{used:1,value:parseInt(k)};var I=P.shift();if(I.token==="."){if(B++,P.length===0)return{used:B,value:parseInt(k)};if(P[0].type==="number"&&(I=P.shift(),k=k+"."+I.token,B++,P.length===0))return{used:B,value:parseFloat(k)};I=P.shift()}switch(I.token){case"pt":return{used:B+1,value:parseFloat(k)};case"px":return{used:B+1,value:parseFloat(k)};case"cm":return{used:B+1,value:parseFloat(k)/2.54*72};case"in":return{used:B+1,value:parseFloat(k)*72};default:return P.unshift(I),{used:B,value:parseFloat(k)}}};var E=function(P){return P=P.replace(/\\n/g,"\n"),P=P.replace(/\\"/g,'"'),P};this.getBrackettedSubstring=function(P,B,k,I){for(var R=I||P[B],F=B+1,L=!1;FP.length-1&&(F=P.length-1),[F-B+1,E(P.substring(B+1,F)),!1])}};Tokenizer$1.prototype.peekLine=function(){return this.lines[this.lineIndex]};Tokenizer$1.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex0&&(C[E.line].staff[E.staff].barNumber=S);for(var B=Object.keys(P),k=0;k=0;F--)if(R[F].el_type==="key"){w[E.staff]={root:R[F].root,acc:R[F].acc,mode:R[F].mode,accidentals:R[F].accidentals.filter(function(z){return z.acc!=="natural"})};break}for(F=R.length-1;F>=0;F--)if(R[F].el_type==="stem"){A[E.staff*10+E.voice]={direction:R[F].direction};break}if(x!==void 0&&E.staff===0&&E.voice===0)for(F=0;F0?(x.push(A-1),C.push(Math.round(w-S)),w=S):AA&&kA?(E.push(k-1),$++,S=Math.max(S,A),A=Math.abs(x-b[$]),w.push(C-I),C=I):A=R}w.push(C)}function optimizeLineWidths(d,b,x,C){for(var w=Math.ceil(d.total/b),A=Math.floor(d.total/w),S=[],$=0;$b&&(S=!0),$%x===x-1&&($!==d.length-1&&C.push($),w.push(Math.round(A)),A=0);return{failed:S,totals:w,lineBreaks:C}}function getRevisedTuneParams(d,b,x){var C={lineBreaks:d,staffwidth:b};for(var w in x)x.hasOwnProperty(w)&&w!=="wrap"&&w!=="staffwidth"&&(C[w]=x[w]);return{revisedParams:C}}function calcLineWraps(d,b,x){if(b.length===0||x.staffwidth0&&k.measureWidths.length<25&&(Q=optimizeLineWidths(k,R,V,z),z.attempts.push({type:"Optimize",failed:Q.failed,reason:Q.reason,lineBreaks:Q.lineBreaks,totals:Q.totals}),Q.failed||(V=Q.lineBreaks))}E.push(V),P.push(z)}var W=x.staffwidth,G=getRevisedTuneParams(E,W,x);return G.explanation=P,G.reParse=!0,G}var wrap_lines={wrapLines,calcLineWraps},spacing$e={};spacing$e.FONTEM=360;spacing$e.FONTSIZE=30;spacing$e.STEP=spacing$e.FONTSIZE*93/720;spacing$e.SPACE=10;spacing$e.TOPNOTE=15;spacing$e.STAVEHEIGHT=100;spacing$e.INDENT=50;var spacing_1=spacing$e,sequence$2,parseCommon$8=abc_common;(function(){var d=1,b=128;sequence$2=function(R,F){F=F||{};var L,z=F.program||0,V=F.midiTranspose||0;R.visualTranspose&&(V-=R.visualTranspose);var U=F.channel||0,Q=!1,W=F.drum||"",G=F.drumBars||1,q=F.drumIntro||0,K=W!=="",X=[],J=50;z=parseInt(z,10),V=parseInt(V,10),U=parseInt(U,10),U===10&&(z=b),W=W.split(" "),G=parseInt(G,10),q=parseInt(q,10);var oe=R.formatting.bagpipes;oe&&(z=71);var he=[];if(R.formatting.midi){var Z=R.formatting.midi;Z.program&&Z.program.length>0&&(z=Z.program[0],Z.program.length>1&&(z=Z.program[1],U=Z.program[0]),Q=!0),Z.transpose&&(V=Z.transpose[0]),Z.channel&&(U=Z.channel[0],Q=!0),Z.drum&&(W=Z.drum),Z.drumbars&&(G=Z.drumbars[0]),Z.drumon&&(K=!0),U===10&&(z=b),Z.beat&&he.push({el_type:"beat",beats:Z.beat}),Z.nobeataccents&&he.push({el_type:"beataccents",value:!1})}F.qpm?L=parseInt(F.qpm,10):R.metaText.tempo?L=$(R.metaText.tempo,R.getBeatLength()):F.defaultQpm?L=F.defaultQpm:L=180;var ce=[];oe&&ce.push({el_type:"bagpipes"}),ce.push({el_type:"instrument",program:z}),U&&ce.push({el_type:"channel",channel:U}),V&&ce.push({el_type:"transpose",transpose:V}),ce.push({el_type:"tempo",qpm:L});for(var fe=0;fe=0?Ze="pppp":xe.decoration.indexOf("ppp")>=0?Ze="ppp":xe.decoration.indexOf("pp")>=0?Ze="pp":xe.decoration.indexOf("p")>=0?Ze="p":xe.decoration.indexOf("mp")>=0?Ze="mp":xe.decoration.indexOf("mf")>=0?Ze="mf":xe.decoration.indexOf("f")>=0?Ze="f":xe.decoration.indexOf("ff")>=0?Ze="ff":xe.decoration.indexOf("fff")>=0?Ze="fff":xe.decoration.indexOf("ffff")>=0&&(Ze="ffff"),Ze&&(be=ze[Ze].slice(0),me[Ie].push({el_type:"beat",beats:be.slice(0)}),ne[$e]=!1,te[$e]=!1),xe.decoration.indexOf("crescendo(")>=0){var ut=x(re,ke,"crescendo)"),gt=Math.min(127,be[0]+J),mt=C(re,ke+ut+1,Object.keys(ze));mt&&(gt=ze[mt][0]),ut>0?ne[$e]=Math.floor((gt-be[0])/ut):ne[$e]=!1,te[$e]=!1}else if(xe.decoration.indexOf("crescendo)")>=0)ne[$e]=!1;else if(xe.decoration.indexOf("diminuendo(")>=0){var ye=x(re,ke,"diminuendo)"),Oe=Math.max(15,be[0]-J),Ve=C(re,ke+ye+1,Object.keys(ze));Ve&&(Oe=ze[Ve][0]),ne[$e]=!1,ye>0?te[$e]=Math.floor((Oe-be[0])/ye):te[$e]=!1}else xe.decoration.indexOf("diminuendo)")>=0&&(te[$e]=!1)};for(var Be=it.staff,Ie=0,Fe=0;Fe=0?me[Ie].push({el_type:"transpose",transpose:-12}):ie.clef.type.indexOf("+8")>=0&&me[Ie].push({el_type:"transpose",transpose:12})),R.formatting.midi&&R.formatting.midi.drumoff&&(me[Ie].push({el_type:"bar"}),me[Ie].push({el_type:"drum",params:{pattern:"",on:!1}}));var Ne=0,we=0,ge=0,Ee=0;be=[105,95,85,1];for(var ke=0;ke=0?me[Ie].push({el_type:"transpose",transpose:-12}):Ae.type.indexOf("+8")>=0&&me[Ie].push({el_type:"transpose",transpose:12}));break;case"tempo":L=$(Ae,R.getBeatLength()),me[Ie].push({el_type:"tempo",qpm:L,timing:de[Ie]}),le[""+de[Ie]]={el_type:"tempo",qpm:L,timing:de[Ie]};break;case"bar":Ne>0&&me[Ie].push({el_type:"bar"}),xt(Ae),Ne=0;var Ye=Ae.type==="bar_right_repeat"||Ae.type==="bar_dbl_repeat",Je=Ae.startEnding==="1",nt=Ae.type==="bar_left_repeat"||Ae.type==="bar_dbl_repeat"||Ae.type==="bar_right_repeat";if(Ye){var dt=Le[Ie];dt||(dt=0);var Ue=Qe[Ie];Ue||(Ue=me[Ie].length);for(var lt=dt;ltAt;)At++;if(me[Lt].length>At)for(var We=0;We0&&me[0].length>0&&(me[0][0].pickupLength=R.getPickupLength()),me};function x(R,F,L){for(var z=0,V=F+1;V=0)return z;return z}function C(R,F,L){for(var z=Math.min(R.length,F+3),V=F;V=0)return R[V].decoration[U]}return null}function w(R,F){if(!(!F||F.length===0))for(var L=Object.keys(F),z=0;z=0&&U!==F[""+W.timing].qpm&&(U=F[""+W.timing].qpm,W.el_type==="tempo"?(W.qpm=F[""+W.timing].qpm,Q++):(R[z].splice(Q,0,{el_type:"tempo",qpm:F[""+W.timing].qpm,timing:W.timing}),Q+=2))}}function A(R){for(var F=0;F=0&&L[z].el_type!=="bar";)L[z].noChordVoice=!0,z--}function S(R,F){if(!(!R||R.length<=F||!R[F].title))return R[F].title.join(" ")}function $(R,F){var L=.25;R.duration&&(L=R.duration[0]);var z=60;return R.bpm&&(z=R.bpm),L*z/F}function E(R){var F;switch(R.type){case"common_time":F={el_type:"meter",num:4,den:4};break;case"cut_time":F={el_type:"meter",num:2,den:2};break;case"specified":F={el_type:"meter",num:R.value[0].num,den:R.value[0].den};break;default:F={el_type:"meter"}}return d=F.num/F.den,F}function P(R){for(var F=[],L=0;L=0;L--)if(R[L].el_type===F.el_type){JSON.stringify(R[L])!==JSON.stringify(F)&&R.push(F);return}R.push(F)}})();var abc_midi_sequencer=sequence$2,pitchMap={f0:"_C",n0:"=C",s0:"^C",x0:"C",f1:"_D",n1:"=D",s1:"^D",x1:"D",f2:"_E",n2:"=E",s2:"^E",x2:"E",f3:"_F",n3:"=F",s3:"^F",x3:"F",f4:"_G",n4:"=G",s4:"^G",x4:"G",f5:"_A",n5:"=A",s5:"^A",x5:"A",f6:"_B",n6:"=B",s6:"^B",x6:"B",f7:"_c",n7:"=c",s7:"^c",x7:"c",f8:"_d",n8:"=d",s8:"^d",x8:"d",f9:"_e",n9:"=e",s9:"^e",x9:"e",f10:"_f",n10:"=f",s10:"^f",x10:"f",f11:"_g",n11:"=g",s11:"^g",x11:"g",f12:"_a",n12:"=a",s12:"^a",x12:"a",f13:"_b",n13:"=b",s13:"^b",x13:"b",f14:"_c'",n14:"=c'",s14:"^c'",x14:"c'",f15:"_d'",n15:"=d'",s15:"^d'",x15:"d'",f16:"_e'",n16:"=e'",s16:"^e'",x16:"e'"};function pitchesToPerc$2(d){var b=(d.accidental?d.accidental[0]:"x")+d.verticalPos;return pitchMap[b]}var pitchesToPerc_1=pitchesToPerc$2,flatten$1,parseCommon$7=abc_common,pitchesToPerc$1=pitchesToPerc_1;(function(){var d,b,x,C,w,A=1,S,$,E,P,B,k={num:4,den:4},I,R,F,L,z=0,V=0,U=128,Q=64,W=48,G,q,K,X,J=!1,oe=!1,he=!0,Z=105,ce=95,fe=85,me=.25,ne,te,de=0,le,be={},Le,Qe=0,rt,ht=0,ct=-.001,it=.4;flatten$1=function(ye,Oe,Ve,He){Oe||(Oe={}),He||(He={}),d=[],b=[0,0,0,0,0,0,0],C=[],w=Oe.qpm,A=1,S=void 0,$=void 0,E=void 0,P=void 0,B=0,rt=Ve,k={num:4,den:4},I=[],R=!1,L=ye.length,F=!1,G=[],z=He.bassprog&&He.bassprog.length===1?He.bassprog[0]:0,V=He.chordprog&&He.chordprog.length===1?He.chordprog[0]:0,Q=He.bassvol&&He.bassvol.length===1?He.bassvol[0]:64,W=He.chordvol&&He.chordvol.length===1?He.chordvol[0]:48,q=void 0,K=void 0,J=!!Oe.chordsOff,oe=!1,he=!0,Z=105,ce=95,fe=85,me=.25,ne=void 0,te=void 0,de=0,le=[],be={},Le=1,ye.length>0&&ye[0].length>0&&(Qe=ye[0][0].pickupLength),$e(ye,Oe);for(var Ke=0;Ke=0)&&(St=!0);for(var Ft=0;Ft0&&(R===!1||Ke===R)&&(ze(X,Fe(bt.time)),G=[]),d=[],Ke===0&>(ye.length+1),oe=!1,K=q,X=Fe(bt.time);break;case"bagpipes":break;case"instrument":if(S===void 0&&(S=bt.program),$=bt.program,E.length>0&&E[E.length-1].cmd==="program")E[E.length-1].instrument=bt.program;else{var Te;for(Te=E.length-1;Te>=0&&E[Te].cmd!=="program";Te--);(Te<0||E[Te].instrument!==bt.program)&&E.push({cmd:"program",channel:0,instrument:bt.program})}break;case"channel":Be(bt.channel);break;case"drum":be=Ze(bt.params),ut();break;case"gchord":Oe.chordsOff||(J=bt.tacet);break;case"beat":Z=bt.beats[0],ce=bt.beats[1],fe=bt.beats[2];break;case"vol":ne=bt.volume;break;case"volinc":te=bt.volume;break;case"beataccents":he=bt.value;break;default:console.log("MIDI creation. Unknown el_type: "+bt.el_type+"\n");break}}E[0].instrument===void 0&&(E[0].instrument=S||0),P&&E.unshift(P),C.push(E),Ie()||(F=!0),le.length>0}return Oe.detuneOctave&&mt(C,parseInt(Oe.detuneOctave,10)),Ie()||C.push(I),le.length>0&&C.push(le),{tempo:w,instrument:S,tracks:C,totalDuration:B}};function Be(ye){for(var Oe=E.length-1;Oe>=0;Oe--)if(E[Oe].cmd==="program"){E[Oe].channel=ye;return}}function Ie(){for(var ye=!0,Oe=0;Oe=0)return"break"}return null}function Ne(ye,Oe,Ve){var He=Ve-ye;return He/Oe}function we(ye,Oe){if(Oe)return 0;var Ve;if(ne)Ve=ne,ne=void 0;else if(!he)Ve=ce;else if(Qe>ye)Ve=fe;else{k.num/k.den;var He=Ne(X,re(k),ye);He===0?Ve=Z:parseInt(He,10)===He?Ve=ce:Ve=fe}return te&&(Ve+=te,te=void 0),Ve<0&&(Ve=0),Ve>127&&(Ve=127),Oe?0:Ve}function ge(ye){var Oe=!1,Ve=Ce(ye);if(Ve){var He=$t(Ve);if(He){I.length===0&&(Oe=!0,I.push({cmd:"program",channel:L,instrument:V})),q=He;var Ke=Ne(X,re(k),Fe(ye.time));G.push({chord:q,beat:Ke,start:Fe(ye.time)})}}return Oe}function Ee(ye,Oe){var Ve={};if(ye.decoration)for(var He=0;He0;)E.push({cmd:"note",pitch:Oe.pitch+ft,volume:Oe.volume,start:Ve,duration:Ke,gap:0,instrument:$,style:"decoration"}),ft=ft===1?0:1,He-=Ke,Ve+=Ke;break;case"mordent":E.push({cmd:"note",pitch:Oe.pitch,volume:Oe.volume,start:Ve,duration:Ke,gap:0,instrument:$,style:"decoration"}),He-=Ke,Ve+=Ke,E.push({cmd:"note",pitch:Oe.pitch+1,volume:Oe.volume,start:Ve,duration:Ke,gap:0,instrument:$,style:"decoration"}),He-=Ke,Ve+=Ke,E.push({cmd:"note",pitch:Oe.pitch,volume:Oe.volume,start:Ve,duration:He,gap:0,instrument:$});break;case"lowermordent":E.push({cmd:"note",pitch:Oe.pitch,volume:Oe.volume,start:Ve,duration:Ke,gap:0,instrument:$,style:"decoration"}),He-=Ke,Ve+=Ke,E.push({cmd:"note",pitch:Oe.pitch-1,volume:Oe.volume,start:Ve,duration:Ke,gap:0,instrument:$,style:"decoration"}),He-=Ke,Ve+=Ke,E.push({cmd:"note",pitch:Oe.pitch,volume:Oe.volume,start:Ve,duration:He,gap:0,instrument:$});break;case"turn":Ke=Oe.duration/5,E.push({cmd:"note",pitch:Oe.pitch,volume:Oe.volume,start:Ve,duration:Ke,gap:0,instrument:$,style:"decoration"}),E.push({cmd:"note",pitch:Oe.pitch+1,volume:Oe.volume,start:Ve+Ke,duration:Ke,gap:0,instrument:$,style:"decoration"}),E.push({cmd:"note",pitch:Oe.pitch,volume:Oe.volume,start:Ve+Ke*2,duration:Ke,gap:0,instrument:$,style:"decoration"}),E.push({cmd:"note",pitch:Oe.pitch+1,volume:Oe.volume,start:Ve+Ke*3,duration:Ke,gap:0,instrument:$,style:"decoration"}),E.push({cmd:"note",pitch:Oe.pitch,volume:Oe.volume,start:Ve+Ke*4,duration:Ke,gap:0,instrument:$});break;case"roll":for(;He>0;)E.push({cmd:"note",pitch:Oe.pitch,volume:Oe.volume,start:Ve,duration:Ke,gap:0,instrument:$,style:"decoration"}),He-=Ke*2,Ve+=Ke*2;break}}function Ae(ye,Oe){E.length;var Ve=we(Fe(ye.time),Oe),He=ge(ye),Ke;if(ye.gracenotes&&ye.pitches&&ye.pitches.length>0&&ye.pitches[0]&&(Ke=Je(ye.gracenotes,ye.pitches[0].duration),ye.elem&&(ye.elem.midiGraceNotePitches=nt(Ke,Fe(ye.time),Ve*2/3,$))),ye.elem){var ft=Fe(ye.time),St=ft/me/w*60*1e3;if(ye.elem.currentTrackMilliseconds===void 0)ye.elem.currentTrackMilliseconds=St,ye.elem.currentTrackWholeNotes=ft;else if(ye.elem.currentTrackMilliseconds.length===void 0)ye.elem.currentTrackMilliseconds!==St&&(ye.elem.currentTrackMilliseconds=[ye.elem.currentTrackMilliseconds,St],ye.elem.currentTrackWholeNotes=[ye.elem.currentTrackWholeNotes,ft]);else{for(var Ft=!1,bt=0;bt0?Ot.endType="tenuto":Nt&&(Ot.endType=Nt),Ot.endType){case"tenuto":Ot.gap=ct;break;case"staccato":var fr=Ot.duration*it;Ot.gap=w/60*fr;break;default:Ot.gap=ht;break}E.push(Ot)}}}E.length-1}var _r=ve(ye);return B=Math.max(B,Fe(ye.time)+ie(_r)),He}function ve(ye){return ye.pitches&&ye.pitches.length>0&&ye.pitches[0]?ye.pitches[0].duration:ye.elem?ye.elem.duration:ye.duration}var De=[0,2,4,5,7,9,11];function We(ye){if(ye.midipitch!==void 0)return ye.midipitch;var Oe=ye.pitch;if(ye.accidental)switch(ye.accidental){case"sharp":d[Oe]=1;break;case"flat":d[Oe]=-1;break;case"natural":d[Oe]=0;break;case"dblsharp":d[Oe]=2;break;case"dblflat":d[Oe]=-2;break;case"quartersharp":d[Oe]=.25;break;case"quarterflat":d[Oe]=-.25;break}var Ve=Ue(Oe)*12+De[lt(Oe)]+60;return d[Oe]!==void 0?Ve+=d[Oe]:Ve+=b[lt(Oe)],Ve+=x,Ve}function Ye(ye){var Oe=[0,0,0,0,0,0,0];if(!ye.accidentals)return Oe;for(var Ve=0;Ve=0?(ye.pitch=Math.round(ye.pitch),ye.cents=-50):Oe.indexOf(".25")>=0&&(ye.pitch=Math.round(ye.pitch),ye.cents=50),ye}function Ue(ye){return Math.floor(ye/7)}function lt(ye){return ye=ye%7,ye<0&&(ye+=7),ye}var yt={A:33,B:35,C:36,D:38,E:40,F:41,G:43};function $t(ye){if(ye.length!==0){if(ye==="break")return{chick:[]};var Oe=ye.substring(0,1);if(Oe==="("){if(ye=ye.substring(1,ye.length-2),ye.length===0)return;Oe=ye.substring(0,1)}var Ve=yt[Oe];if(Ve){for(var He=x;He<-8;)He+=12;for(;He>8;)He-=12;Ve+=He;var Ke=Ve-5,ft;ye.length===1&&(ft=Lt(Ve,""));var St=ye.substring(1),Ft=St.substring(0,1);Ft==="b"||Ft==="♭"?(Ve--,Ke--,St=St.substring(1)):(Ft==="#"||Ft==="♯")&&(Ve++,Ke++,St=St.substring(1));var bt=St.split("/");if(ft=Lt(Ve,bt[0]),ft.length>=3){var Nt=ft[2]-ft[0];Ke=Ke+Nt-7}if(bt.length===2){var Te=yt[bt[1].substring(0,1)];if(Te){var je=bt[1].substring(1),st={"#":1,"♯":1,b:-1,"♭":-1}[je]||0;Ve=yt[bt[1].substring(0,1)]+st+He,Ke=Ve}}return{boom:Ve,boom2:Ke,chick:ft}}}}var Mt={dim:[0,3,6],"°":[0,3,6],"˚":[0,3,6],dim7:[0,3,6,9],"°7":[0,3,6,9],"˚7":[0,3,6,9],ø7:[0,3,6,10],"m7(b5)":[0,3,6,10],m7b5:[0,3,6,10],"m7♭5":[0,3,6,10],"-7(b5)":[0,3,6,10],"-7b5":[0,3,6,10],"7b5":[0,4,6,10],"7(b5)":[0,4,6,10],"7♭5":[0,4,6,10],"7(b9,b5)":[0,4,6,10,13],"7b9,b5":[0,4,6,10,13],"7(#9,b5)":[0,4,6,10,15],"7#9b5":[0,4,6,10,15],"maj7(b5)":[0,4,6,11],maj7b5:[0,4,6,11],"13(b5)":[0,4,6,10,14,21],"13b5":[0,4,6,10,14,21],m:[0,3,7],"-":[0,3,7],m6:[0,3,7,9],"-6":[0,3,7,9],m7:[0,3,7,10],"-7":[0,3,7,10],"-(b6)":[0,3,7,8],"-b6":[0,3,7,8],"-6/9":[0,3,7,9,14],"-7(b9)":[0,3,7,10,13],"-7b9":[0,3,7,10,13],"-maj7":[0,3,7,11],"-9+7":[0,3,7,11,13],"-11":[0,3,7,11,14,17],m11:[0,3,7,11,14,17],"-maj9":[0,3,7,11,14],"-∆9":[0,3,7,11,14],mM9:[0,3,7,11,14],M:[0,4,7],6:[0,4,7,9],"6/9":[0,4,7,9,14],"6add9":[0,4,7,9,14],69:[0,4,7,9,14],7:[0,4,7,10],9:[0,4,7,10,14],11:[0,7,10,14,17],13:[0,4,7,10,14,21],"7b9":[0,4,7,10,13],"7♭9":[0,4,7,10,13],"7(b9)":[0,4,7,10,13],"7(#9)":[0,4,7,10,15],"7#9":[0,4,7,10,15],"(13)":[0,4,7,10,14,21],"7(9,13)":[0,4,7,10,14,21],"7(#9,b13)":[0,4,7,10,15,20],"7(#11)":[0,4,7,10,14,18],"7#11":[0,4,7,10,14,18],"7(b13)":[0,4,7,10,20],"7b13":[0,4,7,10,20],"9(#11)":[0,4,7,10,14,18],"9#11":[0,4,7,10,14,18],"13(#11)":[0,4,7,10,18,21],"13#11":[0,4,7,10,18,21],maj7:[0,4,7,11],"∆7":[0,4,7,11],Δ7:[0,4,7,11],maj9:[0,4,7,11,14],"maj7(9)":[0,4,7,11,14],"maj7(11)":[0,4,7,11,17],"maj7(#11)":[0,4,7,11,18],"maj7(13)":[0,4,7,14,21],"maj7(9,13)":[0,4,7,11,14,21],"7sus4":[0,5,7,10],m7sus4:[0,3,7,10,17],sus4:[0,5,7],sus2:[0,2,7],"7sus2":[0,2,7,10],"9sus4":[0,5,7,10,14],"13sus4":[0,5,7,10,14,21],aug7:[0,4,8,10],"+7":[0,4,8,10],"+":[0,4,8],"7#5":[0,4,8,10],"7♯5":[0,4,8,10],"7+5":[0,4,8,10],"9#5":[0,4,8,10,14],"9♯5":[0,4,8,10,14],"9+5":[0,4,8,10,14],"-7(#5)":[0,3,8,10],"-7#5":[0,3,8,10],"7(#5)":[0,4,8,10],"7(b9,#5)":[0,4,8,10,13],"7b9#5":[0,4,8,10,13],"maj7(#5)":[0,4,8,11],"maj7#5":[0,4,8,11],"maj7(#5,#11)":[0,4,8,11,18],"maj7#5#11":[0,4,8,11,18],"9(#5)":[0,4,8,10,14],"13(#5)":[0,4,8,10,14,21],"13#5":[0,4,8,10,14,21]};function Lt(ye,Oe){var Ve=Mt[Oe];Ve||(Oe.slice(0,2).toLowerCase()==="ma"||Oe[0]==="M"?Ve=Mt.M:Oe[0]==="m"||Oe[0]==="-"?Ve=Mt.m:Ve=Mt.M),ye+=12;for(var He=[],Ke=0;Ke1){Ft=Ft.sort(function(st,_t){return st.pitch-_t.pitch});var bt=Ft[Ft.length-1],Nt=bt.pitch%12,Te=!1;for(Ke=0;!Te&&Ke=$&&(E-=$),I[F].el_type==="bar")return E}return E}this.getPickupLength=function(){var S=this.getBarLength(),$=b(this.lines,S);return $<1e-8||S-$<1e-8?0:$},this.getBarLength=function(){var S=this.getMeterFraction();return S.num/S.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(S){var $;if(S)$=S;else{var E=this.metaText?this.metaText.tempo:null;$=this.getBpm(E)}$<=0&&($=1);var P=this.getBeatsPerMeasure(),B=P/$;return B*6e4},this.getBeatsPerMeasure=function(){var S=this.getBeatLength(),$=this.getBarLength();return $/S},this.getMeter=function(){for(var S=0;SS)return F}}return null};function x(S){for(var $,E,P,B,k=S.length-1;k>=0;k--){var I=S[k];I.type==="bar"?(I.top=P,I.nextTop=$,$=P,I.bottom=B,I.nextBottom=E,E=B):I.type==="event"&&(P=I.top,B=I.top+I.height)}}function C(S){var $=[];for(var E in S)S.hasOwnProperty(E)&&$.push(S[E]);return $=$.sort(function(P,B){var k=P.milliseconds-B.milliseconds;return k!==0?k:P.type==="bar"?-1:1}),$}this.addElementToEvents=function(S,$,E,P,B,k,I,R,F,L){if($.hint)return{isTiedState:void 0,duration:0};var z=$.durationClass?$.durationClass:$.duration;if($.abcelem.rest&&$.abcelem.rest.type==="spacer"&&(z=0),z>0){for(var V=[],U=0;U<$.elemset.length;U++)$.elemset[U]!==null&&V.push($.elemset[U]);var Q=$.startTie;if(F!==void 0)S["event"+F].elements.push(V),L&&(S["event"+E]||(S["event"+E]={type:"event",milliseconds:E,line:k,measureNumber:I,top:P,height:B,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),S["event"+E].measureStart=!0,L=!1),Q||(F=void 0);else{if(!S["event"+E])S["event"+E]={type:"event",milliseconds:E,line:k,measureNumber:I,top:P,height:B,left:$.x,width:$.w,elements:[V],startChar:$.abcelem.startChar,endChar:$.abcelem.endChar,startCharArray:[$.abcelem.startChar],endCharArray:[$.abcelem.endChar],midiPitches:$.abcelem.midiPitches?parseCommon$6.cloneArray($.abcelem.midiPitches):[]},$.abcelem.midiGraceNotePitches&&(S["event"+E].midiGraceNotePitches=parseCommon$6.cloneArray($.abcelem.midiGraceNotePitches));else{if(S["event"+E].left?S["event"+E].left=Math.min(S["event"+E].left,$.x):S["event"+E].left=$.x,S["event"+E].elements.push(V),S["event"+E].startCharArray.push($.abcelem.startChar),S["event"+E].endCharArray.push($.abcelem.endChar),S["event"+E].startChar===null&&(S["event"+E].startChar=$.abcelem.startChar),S["event"+E].endChar===null&&(S["event"+E].endChar=$.abcelem.endChar),$.abcelem.midiPitches&&$.abcelem.midiPitches.length){S["event"+E].midiPitches||(S["event"+E].midiPitches=[]);for(var U=0;U<$.abcelem.midiPitches.length;U++)S["event"+E].midiPitches.push($.abcelem.midiPitches[U])}if($.abcelem.midiGraceNotePitches&&$.abcelem.midiGraceNotePitches.length){S["event"+E].midiGraceNotePitches||(S["event"+E].midiGraceNotePitches=[]);for(var W=0;W<$.abcelem.midiGraceNotePitches.length;W++)S["event"+E].midiGraceNotePitches.push($.abcelem.midiGraceNotePitches[W])}}L&&(S["event"+E].measureStart=!0,L=!1),Q&&(F=E)}}return{isTiedState:F,duration:z/R,nextIsBar:L||$.type==="bar"}},this.makeVoicesArray=function(){for(var S=[],$=[],E={},P=0;P0){var k=B.staffs[0],I=k.absoluteY,R=I-k.top*spacing$d.STEP,F=B.staffs[B.staffs.length-1];I=F.absoluteY;for(var L=I-F.bottom*spacing$d.STEP,z=L-R,V=B.voices,U=0;U0&&k["event"+Q]&&(ce="event"+Q),Q=Math.round(U*1e3),he.type==="bar"){var fe=he.abcelem.type,me=fe==="bar_right_repeat"||fe==="bar_dbl_repeat",ne=he.abcelem.startEnding==="1",te=fe==="bar_left_repeat"||fe==="bar_dbl_repeat"||fe==="bar_right_repeat";if(me){J>0&&(k[ce].endX=he.x),G===-1&&(G=J);var de=0;X=-1;for(var le=W;leP.left&&(P.endX=Math.min(P.endX,k)):P.endX=k}}var I=$[$.length-1];I.endX=S[I.line].staffGroup.w}}this.getBpm=function(S){var $;if(S){$=S.bpm;var E=this.getBeatLength(),P=S.duration&&S.duration.length>0?S.duration[0]:E;$=$*P/E}if(!$){$=180;var B=this.getMeterFraction();B&&B.num!==3&&B.num%3===0&&($=120)}return $},this.setTiming=function(S,$){if($=$||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var E=this.metaText?this.metaText.tempo:null,P=this.getBpm(E),B=1;S?E&&(B=S/P):S=P;var k=this.getBeatLength(),I=S/60,R=this.getBarLength(),F=R/k*$/I;F&&(F-=this.getPickupLength()/k/I);var L=k*I;return this.noteTimings=this.setupEvents(F,L,S,B),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*I):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(S){S||(S={});var $=sequence$1(this,S);return flatten($,S,this.formatting.percmap,this.formatting.midi)},this.deline=function(S){return delineTune(this.lines,S)}},abc_tune=Tune$1,parseKeyVoice=abc_parse_key_voice,parseCommon$5=abc_common,TuneBuilder$1=function(d){var b=this;this.setVisualTranspose=function(w){w&&(d.visualTranspose=w)},this.resolveOverlays=function(){for(var w=!1,A=[],S=0;S=d.lines[U].staff[0].voices.length&&d.lines[U].staff[0].voices.push([{el_type:"note",duration:A[U],rest:{type:"invisible"},startChar:V.startChar,endChar:V.endChar}])}else V.el_type==="bar"?(F?(F=!1,B[k].snip.push({start:L,len:z-L}),B[k].voice.push(V)):(R>0&&B[k].voice.push({el_type:"note",duration:R,rest:{type:"invisible"},startChar:V.startChar,endChar:V.endChar}),B[k].voice.push(V)),R=0):V.el_type==="note"?F?B[k].voice.push(V):(R+=V.duration,A[S]+=V.duration):(V.el_type==="scale"||V.el_type==="stem"||V.el_type==="overlay"||V.el_type==="style"||V.el_type==="transpose"||V.el_type==="color")&&B[k].voice.push(V)}B[k].hasOverlay&&B[k].snip.length===0&&B[k].snip.push({start:L,len:I.length-L})}for(k=0;k=0;W--){var G=Q.snip[W];P.voices[k].splice(G.start,G.len),P.voices[k].splice(G.start+1,0,{el_type:"stem",direction:"auto"});var q=x(P.voices[k],G.start);P.voices[k].splice(q,0,{el_type:"stem",direction:"up"})}for(W=0;W0&&w[S].el_type!=="bar";S--);return S}function C(w){for(var A=!0,S=0;S=q&&oeq;){if(G[q].staff)return G[q];q++}return null}for(d.lineNum=0;d.lineNum0&&U[U.length-1].barNumber){var W=z(d.lines,d.lineNum);W&&(W.staff[0].barNumber=U[U.length-1].barNumber),delete U[U.length-1].barNumber}}}return delete d.staffNum,delete d.voiceNum,delete d.lineNum,delete d.potentialStartBeam,delete d.potentialEndBeam,delete d.vskipPending,S},d.reset(),this.getLastNote=function(){if(d.lines[d.lineNum]&&d.lines[d.lineNum].staff&&d.lines[d.lineNum].staff[d.staffNum]&&d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum])for(var w=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum].length-1;w>=0;w--){var A=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum][w];if(A.el_type==="note")return A}return null},this.addTieToLastNote=function(w){var A=this.getLastNote();return A&&A.pitches&&A.pitches.length>0?(A.pitches[0].startTie={},w&&(A.pitches[0].startTie.style="dotted"),!0):!1},this.getDuration=function(w){return w.duration?w.duration:0},this.closeLine=function(){d.potentialStartBeam&&d.potentialEndBeam&&(d.potentialStartBeam.startBeam=!0,d.potentialEndBeam.endBeam=!0),delete d.potentialStartBeam,delete d.potentialEndBeam},this.appendElement=function(w,A,S,$){var E=d,P=function(R){var F=E.lines[E.lineNum].staff[E.staffNum];if(F){if(R.pitches!==void 0){var L=F.workingClef.verticalPos;R.pitches.forEach(function(V){V.verticalPos=V.pitch-L})}if(R.gracenotes!==void 0){var z=F.workingClef.verticalPos;R.gracenotes.forEach(function(V){V.verticalPos=V.pitch-z})}F.voices[E.voiceNum].push(R)}};$.el_type=w,A!==null&&($.startChar=A),S!==null&&($.endChar=S);var B=function(){E.potentialStartBeam.startBeam=!0,$.endBeam=!0,delete E.potentialStartBeam,delete E.potentialEndBeam},k=function(){E.potentialStartBeam!==void 0&&E.potentialEndBeam!==void 0&&(E.potentialStartBeam.startBeam=!0,E.potentialEndBeam.endBeam=!0),delete E.potentialStartBeam,delete E.potentialEndBeam};if(w==="note"){var I=b.getDuration($);I>=.25||$.force_end_beam_last&&E.potentialStartBeam!==void 0?k():$.end_beam&&E.potentialStartBeam!==void 0?$.rest===void 0?B():k():$.rest===void 0&&(E.potentialStartBeam===void 0?$.end_beam||(E.potentialStartBeam=$,delete E.potentialEndBeam):E.potentialEndBeam=$)}else k();delete $.end_beam,delete $.force_end_beam_last,P($)},this.appendStartingElement=function(w,A,S,$){this.closeLine();var E;w==="key"&&(E=$.impliedNaturals,delete $.impliedNaturals,delete $.explicitAccidentals);var P=parseCommon$5.clone($);if(d.lines[d.lineNum]&&d.lines[d.lineNum].staff){d.lines[d.lineNum].staff.length<=d.staffNum&&(d.lines[d.lineNum].staff[d.staffNum]={},d.lines[d.lineNum].staff[d.staffNum].clef=parseCommon$5.clone(d.lines[d.lineNum].staff[0].clef),d.lines[d.lineNum].staff[d.staffNum].key=parseCommon$5.clone(d.lines[d.lineNum].staff[0].key),d.lines[d.lineNum].staff[0].meter&&(d.lines[d.lineNum].staff[d.staffNum].meter=parseCommon$5.clone(d.lines[d.lineNum].staff[0].meter)),d.lines[d.lineNum].staff[d.staffNum].workingClef=parseCommon$5.clone(d.lines[d.lineNum].staff[0].workingClef),d.lines[d.lineNum].staff[d.staffNum].voices=[[]]),w==="clef"&&(d.lines[d.lineNum].staff[d.staffNum].workingClef=P);for(var B=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum],k=0;k0){if(B.voices[0]!==void 0){for(var k=!1,I=0;I0){var S=A[A.length-1];if(S.el_type==="bar")S.barNumber!==void 0&&(S.barNumber=w);else return w-1}return w},this.hasBeginMusic=function(){for(var w=0;w=0;A--)if(d.lines[A].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var w=d.lines[d.lineNum];if(!w)return null;var A=w.staff[d.staffNum];return A&&A.voices[d.voiceNum]!==void 0?A.voices[d.voiceNum]:null},this.setCurrentVoice=function(w,A){d.staffNum=w,d.voiceNum=A;for(var S=0;S/g,">")},k=function(W,G,q){G||(G=" ");var K=G[q];(K===" "||!K)&&(K="SPACE");var X=B(G.substring(q-64,q))+''+K+""+B(G.substring(q+1).substring(0,64));E("Music Line:"+x.lineIndex+":"+(q+1)+": "+W+": "+X),P({message:W,line:G,startChar:$.iChar+q,column:q})},I,R;this.getWarnings=function(){return $.warnings},this.getWarningObjects=function(){return $.warningObjects};var F=function(W,G){if(G.indexOf("")>=0){C+=G;return}if(G=C+G,C="",!W){k("Can't add words before the first line of music",W,0);return}G=parseCommon$4.strip(G),G[G.length-1]!=="-"&&(G=G+" ");for(var q=[],K=0,X=!1,J=function(ce){var fe=parseCommon$4.strip(G.substring(K,ce));if(fe=fe.replace(/\\([-_*|~])/g,"$1"),K=ce+1,fe.length>0){X&&(fe=fe.replace(/~/g," "));var me=G[ce];return me!=="_"&&me!=="-"&&(me=" "),q.push({syllable:x.translateString(fe),divider:me}),X=!1,!0}return!1},oe=!1,he=0;he0&&(parseCommon$4.last(q).divider="-",q.push({skip:!0,to:"next"}));break;case"_":oe||(J(he),q.push({skip:!0,to:"slur"}));break;case"*":oe||(J(he),q.push({skip:!0,to:"next"}));break;case"|":oe||(J(he),q.push({skip:!0,to:"bar"}));break;case"~":oe||(X=!0);break}oe=G[he]==="\\"}var Z=!1;W.forEach(function(ce){if(q.length!==0){if(q[0].skip){switch(q[0].to){case"next":ce.el_type==="note"&&ce.pitches!==null&&!Z&&q.shift();break;case"slur":ce.el_type==="note"&&ce.pitches!==null&&q.shift();break;case"bar":ce.el_type==="bar"&&q.shift();break}ce.el_type!=="bar"&&(ce.lyric===void 0?ce.lyric=[{syllable:"",divider:" "}]:ce.lyric.push({syllable:"",divider:" "}))}else if(ce.el_type==="note"&&ce.rest===void 0&&!Z){var fe=q.shift();fe.syllable&&(fe.syllable=fe.syllable.replace(/ +/g," ")),ce.lyric===void 0?ce.lyric=[fe]:ce.lyric.push(fe)}}})},L=function(W,G){if(G.indexOf("")>=0){w+=G;return}if(G=w+G,w="",!W){k("Can't add symbols before the first line of music",W,0);return}G=parseCommon$4.strip(G),G[G.length-1]!=="-"&&(G=G+" ");for(var q=[],K=0,X=!1,J=function(Z){var ce=parseCommon$4.strip(G.substring(K,Z));if(K=Z+1,ce.length>0){X&&(ce=ce.replace(/~/g," "));var fe=G[Z];return fe!=="_"&&fe!=="-"&&(fe=" "),q.push({syllable:x.translateString(ce),divider:fe}),X=!1,!0}return!1},oe=0;oe0&&(parseCommon$4.last(q).divider="-",q.push({skip:!0,to:"next"}));break;case"_":J(oe),q.push({skip:!0,to:"slur"});break;case"*":J(oe),q.push({skip:!0,to:"next"});break;case"|":J(oe),q.push({skip:!0,to:"bar"});break;case"~":X=!0;break}var he=!1;W.forEach(function(Z){if(q.length!==0){if(q[0].skip)switch(q[0].to){case"next":Z.el_type==="note"&&Z.pitches!==null&&!he&&q.shift();break;case"slur":Z.el_type==="note"&&Z.pitches!==null&&q.shift();break;case"bar":Z.el_type==="bar"&&q.shift();break}else if(Z.el_type==="note"&&Z.rest===void 0&&!he){var ce=q.shift();Z.lyric===void 0?Z.lyric=[ce]:Z.lyric.push(ce)}}})},z=function(W){if(parseCommon$4.startsWith(W,"%%")){var G=parseDirective.addDirective(W.substring(2));G&&k(G,W,2);return}var q=W.indexOf("%");if(q>=0&&(W=W.substring(0,q)),W=W.replace(/\s+$/,""),W.length!==0){if(C){F(b.getCurrentVoice(),W.substring(2));return}if(w){L(b.getCurrentVoice(),W.substring(2));return}if(W.length<2||W[1]!==":"||R.lineContinuation){R.parseMusic(W);return}var K=I.parseHeader(W);K.regular&&R.parseMusic(W),K.newline&&R.startNewLine(),K.words&&F(b.getCurrentVoice(),W.substring(2)),K.symbols&&L(b.getCurrentVoice(),W.substring(2))}};function V(W,G){W.push({el_type:"hint"});for(var q=0;q1){for(var X=1;X0&&K[X][0]!=="\n";)K[X]=K[X].substr(1),K[X-1]+=" ";W=K.join(" ")}W=W.replace(/\\([ \t]*)(%.*)*\n/g,function(me,ne,te){var de=te?Array(te.length+1).join(" "):"";return ne+""+de+"\n"});var J=W.split("\n");parseCommon$4.last(J).length===0&&J.pop(),x=new Tokenizer(J,$),I=new ParseHeader(x,k,$,d,b),R=new ParseMusic(x,k,$,d,b,I),G.print&&(d.media="print"),$.reset(),$.iChar=q,G.visualTranspose?($.globalTranspose=parseInt(G.visualTranspose),$.globalTranspose===0?$.globalTranspose=void 0:b.setVisualTranspose(G.visualTranspose)):$.globalTranspose=void 0,G.lineBreaks&&($.lineBreaks=G.lineBreaks),I.reset(x,k,$,d);try{G.format&&parseDirective.globalFormatting(G.format);for(var oe=x.nextLine();oe;){if(G.header_only&&$.is_in_header===!1||G.stop_on_warning&&$.warnings)throw"normal_abort";var he=$.is_in_header;z(oe),he&&!$.is_in_header&&(b.setRunningFont("annotationfont",$.annotationfont),b.setRunningFont("gchordfont",$.gchordfont),b.setRunningFont("tripletfont",$.tripletfont),b.setRunningFont("vocalfont",$.vocalfont)),oe=x.nextLine()}C&&F(b.getCurrentVoice(),""),w&&L(b.getCurrentVoice(),""),$.openSlurs=b.cleanUp($.barsperstaff,$.staffnonote,$.openSlurs)}catch(me){if(me!=="normal_abort")throw me}var Z=11*72,ce=8.5*72;switch($.papersize){case"legal":Z=14*72,ce=8.5*72;break;case"A4":Z=11.7*72,ce=8.3*72;break}if($.landscape){var fe=Z;Z=ce,ce=fe}d.formatting.pagewidth||(d.formatting.pagewidth=ce),d.formatting.pageheight||(d.formatting.pageheight=Z),G.hint_measures&&Q(),wrap$2.wrapLines(d,$.lineBreaks,$.barNumbers)}},abc_parse=Parse$2,parseCommon$3=abc_common,bookParser$1=function(d){var b="",x=d.match(/(\s*)/);d=parseCommon$3.strip(d);for(var C=d.split("\nX:"),w=1;w1&&!parseCommon$3.startsWith(S[0].abc,"X:")){var $=S.shift(),E=$.abc.split("\n");E.forEach(function(B){parseCommon$3.startsWith(B,"%%")&&(b+=B+"\n")})}var P=b;return S.forEach(function(B){var k=B.abc.indexOf("\n\n");k>0&&(B.abc=B.abc.substring(0,k)),B.pure=B.abc,B.abc=b+B.abc,B.title="";var I=B.pure.split("T:");I.length>1&&(I=I[1].split("\n"),B.title=parseCommon$3.strip(I[0]));var R=B.pure.substring(2,B.pure.indexOf("\n"));B.id=parseCommon$3.strip(R)}),{header:P,tunes:S}},abc_parse_book=bookParser$1;function StringTablature$2(d,b){this.numLines=d,this.lineSpace=b,this.verticalSize=this.numLines*this.lineSpace;var x=3;this.bar={pitch:x,pitch2:b*d,height:5}}StringTablature$2.prototype.bypass=function(d){var b=d.staffGroup.voices;return!!(b.length>0&&b[0].isPercussion)};StringTablature$2.prototype.setRelative=function(d,b,x){switch(d.type){case"bar":b.pitch=this.bar.pitch,b.pitch2=this.bar.pitch2,b.height=this.height;break;case"symbol":var C=this.bar.pitch2/2;if(d.name=="dots.dot")return x?(b.pitch=C,!1):(b.pitch=C+this.lineSpace,!0);break}return x};var stringTablature=StringTablature$2;function TabCommon$2(d,b,x){this.tune=d,this.params=x,this.tuneNumber=b,this.inError=!1}TabCommon$2.prototype.setError=function(d){var b=this.tune;d&&(this.error=d,this.inError=!0,b.warnings?b.warnings.push(d):b.warnings=[d])};var tabCommon=TabCommon$2,VoiceElement$3=function d(b,x){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=b,this.voicetotal=x,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};VoiceElement$3.prototype.addChild=function(d){if(d.type==="bar"){for(var b=!0,x=0;b&&x0&&($.length>0&&$[$.length-1]!==" "&&($+=" "),$+=b),A.setAttribute("class",$)}},setClass_1=setClass$3,setClass$2=setClass_1,highlight$2=function(d,b){d===void 0&&(d="abcjs-note_selected"),b===void 0&&(b="#ff0000"),setClass$2(this.elemset,d,"",b)},highlight_1=highlight$2,setClass$1=setClass_1,unhighlight$2=function(d,b){d===void 0&&(d="abcjs-note_selected"),b===void 0&&(b="#000000"),setClass$1(this.elemset,"",d,b)},unhighlight_1=unhighlight$2,highlight$1=highlight_1,unhighlight$1=unhighlight_1,AbsoluteElement$6=function d(b,x,C,w,A,S){S||(S={}),this.tuneNumber=A,this.abcelem=b,this.duration=x,this.durationClass=S.durationClassOveride?S.durationClassOveride:this.duration,this.minspacing=C||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=w,this.fixed={w:0,t:void 0,b:void 0},this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};AbsoluteElement$6.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}};AbsoluteElement$6.prototype.addExtra=function(d){this.fixed.w=Math.max(this.fixed.w,d.dx+d.w),this.fixed.t===void 0?this.fixed.t=d.top:this.fixed.t=Math.max(this.fixed.t,d.top),this.fixed.b===void 0?this.fixed.b=d.bottom:this.fixed.b=Math.min(this.fixed.b,d.bottom),d.dxthis.w&&(this.w=d.dx+d.w),this.right[this.right.length]=d,this._addChild(d)};AbsoluteElement$6.prototype.addFixed=function(d){this._addChild(d)};AbsoluteElement$6.prototype.addFixedX=function(d){this._addChild(d)};AbsoluteElement$6.prototype.addCentered=function(d){var b=d.w/2;-bthis.w&&(this.w=d.dx+b),this.right[this.right.length]=d,this._addChild(d)};AbsoluteElement$6.prototype.setLimit=function(d,b){b[d]&&(this.specialY[d]?this.specialY[d]=Math.max(this.specialY[d],b[d]):this.specialY[d]=b[d])};AbsoluteElement$6.prototype._addChild=function(d){d.parent=this,this.children[this.children.length]=d,this.pushTop(d.top),this.pushBottom(d.bottom),this.setLimit("tempoHeightAbove",d),this.setLimit("partHeightAbove",d),this.setLimit("volumeHeightAbove",d),this.setLimit("dynamicHeightAbove",d),this.setLimit("endingHeightAbove",d),this.setLimit("chordHeightAbove",d),this.setLimit("lyricHeightAbove",d),this.setLimit("lyricHeightBelow",d),this.setLimit("chordHeightBelow",d),this.setLimit("volumeHeightBelow",d),this.setLimit("dynamicHeightBelow",d)};AbsoluteElement$6.prototype.pushTop=function(d){d!==void 0&&(this.top===void 0?this.top=d:this.top=Math.max(d,this.top))};AbsoluteElement$6.prototype.pushBottom=function(d){d!==void 0&&(this.bottom===void 0?this.bottom=d:this.bottom=Math.min(d,this.bottom))};AbsoluteElement$6.prototype.setX=function(d){this.x=d;for(var b=0;bthis.top&&(this.top=this.pitch2),this.bottom=w,this.pitch2!==void 0&&this.pitch20?this.top+=A.stemHeight:this.bottom+=A.stemHeight),A.dim&&(this.dim=A.dim),A.position&&(this.position=A.position),this.height=A.height?A.height:4,A.top&&(this.top=A.top),A.bottom&&(this.bottom=A.bottom),A.name?this.name=A.name:this.c?this.name=this.c:this.name=this.type,A.realWidth?this.realWidth=A.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":A.position&&A.position==="below"?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":A.position&&A.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":this.pitch===void 0?A.position&&A.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height;break}};RelativeElement$a.prototype.getChordDim=function(){if(this.type==="debug"||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var d=0,b=this.type==="chord"?this.realWidth/2:0,x=this.x-b-d,C=x+this.realWidth+d;return{left:x,right:C}};RelativeElement$a.prototype.invertLane=function(d){this.lane===void 0&&(this.lane=0),this.lane=d-this.lane-1};RelativeElement$a.prototype.putChordInLane=function(d){this.lane=d,this.chordHeightAbove?this.chordHeightAbove=this.height*1.25*this.lane:this.chordHeightBelow=this.height*1.25*this.lane};RelativeElement$a.prototype.getLane=function(){return this.lane===void 0?0:this.lane};RelativeElement$a.prototype.setX=function(d){this.x=d+this.dx};var relativeElement=RelativeElement$a,AbsoluteElement$5=absoluteElement,RelativeElement$9=relativeElement;function isObject(d){return d!=null&&d.constructor===Object}function cloneObject(d,b){for(var x in b)b.hasOwnProperty(x)&&(Array.isArray(b[x])||isObject(b[x])||(d[x]=b[x]))}function cloneAbsolute(d){var b=new AbsoluteElement$5("",0,0,"",0);return cloneObject(b,d),b.top=0,b.bottom=-1,d.abcelem&&(b.abcelem={},cloneObject(b.abcelem,d.abcelem),b.abcelem.el_type==="note"&&(b.abcelem.el_type="tabNumber")),d.cloned=b,b}function cloneAbsoluteAndRelatives(d,b){var x=cloneAbsolute(d);if(b)for(var C=d.children,w=!0,A=0;A=0){if(x===b)return d.extra[C].x+d.extra[C].w/2;x++}}return-1}function graceInRest(d){if(d.abcelem){var b=d.abcelem;if(b.rest)return b.gracenotes}return null}function convertToNumber(d,b,x){var C=d.semantics.notesToNumber(b,x);if(C.error)return d._super.setError(C.error),C;if(C.graces&&C.notes){var w=C.notes.length-1;C.notes[w].graces=C.graces}return C}function buildGraceRelativesForRest(d,b,x,C,w){for(var A=0;A=0&&(d.semantics.strings.clefTranspose=-12),I.abcelem.type.indexOf("+8")>=0&&(d.semantics.strings.clefTranspose=12)),I.type){case"staff-extra key-signature":this.accidentals=I.abcelem.accidentals,d.semantics.strings.accidentals=this.accidentals;break;case"bar":d.semantics.strings.measureAccidentals={};var L=!1;k===$.children.length-1&&(L=!0);var z=cloneAbsoluteAndRelatives(I,d);if(z.abcelem.barNumber){delete z.abcelem.barNumber;for(var V=0;V0&&(B.abselem=Q,x.push(B),E.children.push(Q));break}}};var tabAbsoluteElements=TabAbsoluteElements$1,VoiceElement$2=voiceElement,TabAbsoluteElements=tabAbsoluteElements,spacing$c=spacing_1;function initSpecialY(){return{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}}function getLyricHeight(d){for(var b=0,x=0;xb&&(b=C.specialY.lyricHeightBelow)}return b}function buildTabName(d,b){var x=d.plugin.semantics.strings,C=d.renderer.controller,w=C.getTextSize,A=x.tabInfos(d.plugin),S=w.calc(A,"tablabelfont","text instrumentname");return b.tabNameInfos={textSize:S,name:A},S.height}function TabRenderer$2(d,b,x,C){this.renderer=b,this.plugin=d,this.line=x,this.absolutes=new TabAbsoluteElements,this.staffIndex=C,this.tabStaff={clef:{type:"TAB"}},this.tabSize=d.linePitch*d.nbLines}function islastTabInStaff(d,b){return b[d].isTabStaff?d===b.length-1?!0:!b[d+1].isTabStaff:!1}function getStaffNumbers(d){for(var b=0,x=0;x=0;x--)if(!d[x].isTabStaff)return x;return-1}function linkStaffAndTabs(d){for(var b=0;b1}function getNextTabPos(d,b){for(var x=d.staffIndex,C=0,w=0,A=!0,S=0;A;){if(!b[C])return-1;if(b[C].isTabStaff||(S=b[C].voices.length),b[C].isTabStaff){if(w++,islastTabInStaff(C,b)&&w=x&&(C+1==b.length||!b[C+1].isTabStaff))return C+1;if(C++,C>b.length)return-1}}function getLastStaff(d,b){for(var x=b;x>=0;x--)if(!d[x].isTabStaff)return d[x];return null}function checkVoiceKeySig(d,b){var x=d[b],C=x.children[0].abcelem;return C.el_type==="clef"?null:b==0?"none":d[b-1].children[0]}TabRenderer$2.prototype.doLayout=function(){var d=this.line.staff;if(d){var b=d[0];if(b&&b.clef&&b.clef.stafflines==0){this.plugin._super.setError("No tablatures when stafflines=0");return}d.splice(d.length,0,this.tabStaff)}var x=this.line.staffGroup,C=x.voices,w=C[0],A=getLyricHeight(w),S=3,$=this.staffIndex,E=x.staffs[$],P=this.tabSize+S-E.bottom-A;E.isTabStaff&&(P=E.top);var B={bottom:-1,isTabStaff:!0,specialY:initSpecialY(),lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:P},k=getNextTabPos(this,x.staffs);if(k!==-1){B.parentIndex=k-1,x.staffs.splice(k,0,B),x.height+=this.tabSize+S;var I=getLastStaff(x.staffs,k),R=1;isMultiVoiceSingleStaff(x.staffs,I)&&(R=I.voices.length),this.tabStaff.voices=[];for(var F=0;F0&&(L.duplicate=!0);var z=buildTabName(this,L)/spacing$c.STEP;z=Math.max(z,1),x.staffs[this.staffIndex].top+=z,x.height+=z*spacing$c.STEP,L.staff=B,C.splice(C.length,0,L);var V=checkVoiceKeySig(C,F+this.staffIndex);this.tabStaff.voices[F]=[],this.absolutes.build(this.plugin,C,this.tabStaff.voices[F],F,this.staffIndex,V)}linkStaffAndTabs(x.staffs)}};var tabRenderer=TabRenderer$2,accidentals={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},notesInOrder=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];function noteToMidi$2(d){var b=d.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(b&&b.length===5){var x=accidentals[b[1]],C=notesInOrder.indexOf(b[2]),w=b[4].length-b[3].length;return 48+C+x+w*12}return 0}function midiToNote$1(d){d=parseInt(d,10);var b=Math.floor(d/12),x=d%12,C=notesInOrder[x];if(C==="-"&&(C="^"+notesInOrder[x-1]),b>4)for(C=C.toLowerCase(),b-=5;b>0;)C+="'",b--;else for(;b<4;)C+=",",b++;return C}var noteToMidi_1={noteToMidi:noteToMidi$2,midiToNote:midiToNote$1},{noteToMidi:noteToMidi$1,midiToNote}=noteToMidi_1,notes$1=["A","B","C","D","E","F","G"];function TabNote$2(d,b){var x=noteToMidi$1(d);b&&(x+=b);var C=midiToNote(x),w=!1,A=!1,S=!1,$=null,E=null,P=!1,B=0;d.startsWith("_")?(w=!0,B=-1,d[1]=="/"?(w=!1,E="v",B=0):d[1]=="_"&&(P=!0,B-=1)):d.startsWith("^")?(A=!0,B=1,d[1]=="/"?(A=!1,E="^",B=0):d[1]=="^"&&(P=!0,B+=1)):d.startsWith("=")&&($=!0,B=0),S=w||A||E!=null,(S||$)&&(E!=null||P?C=d.slice(2):C=d.slice(1));var k=(C.match(/,/g)||[]).length,I=(C.match(/'/g)||[]).length;this.pitch=x,this.pitchAltered=0,this.name=C,this.acc=B,this.isSharp=A,this.isKeySharp=!1,this.isDouble=P,this.isAltered=S,this.isFlat=w,this.isKeyFlat=!1,this.natural=$,this.quarter=E,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=k,this.isQuoted=I}function cloneNote(d){var b=d.name,x=new TabNote$2(b);return x.pitch=d.pitch,x.hasComma=d.hasComma,x.isLower=d.isLower,x.isQuoted=d.isQuoted,x.isSharp=d.isSharp,x.isKeySharp=d.isKeySharp,x.isFlat=d.isFlat,x.isKeyFlat=d.isKeyFlat,x}TabNote$2.prototype.sameNoteAs=function(d){return d.pitch===this.pitch};TabNote$2.prototype.isLowerThan=function(d){return d.pitch>this.pitch};TabNote$2.prototype.checkKeyAccidentals=function(d,b){if(!(this.isAltered||this.natural)){if(b[this.name.toUpperCase()])switch(b[this.name.toUpperCase()]){case"__":this.acc=-2,this.pitchAltered=-2;return;case"_":this.acc=-1,this.pitchAltered=-1;return;case"=":this.acc=0,this.pitchAltered=0;return;case"^":this.acc=1,this.pitchAltered=1;return;case"^^":this.acc=2,this.pitchAltered=2;return}else if(d)for(var x=this.name,C=0;C0){b=[];for(var C=0;C0&&(x=d.capoTuning);for(var C=x.length-1,w=0;w=0;C--)if(b.pitch+b.pitchAltered>=d.stringPitches[C]){var w=b.pitch+b.pitchAltered-d.stringPitches[C];return b.quarter==="^"?w-=.5:b.quarter==="v"&&(w+=.5),{num:Math.round(w),str:d.stringPitches.length-1-C,note:b}}return{num:"?",str:d.stringPitches.length-1,note:b}}StringPatterns$2.prototype.stringToPitch=function(d){var b=5.3,x=this.strings.length-1;return b+(x-d)*this.linePitch};function invalidNumber(d,b){var x={num:"?",str:0,note:b};d.push(x),d.error=b.emit()+": unexpected note for instrument"}StringPatterns$2.prototype.notesToNumber=function(d,b){var x,C,w=null,A=null;if(d&&(A=[],d.length>1?(A=handleChordNotes(this,d),A.error&&(w=A.error)):d[0].endTie||(x=new TabNote.TabNote(d[0].name,this.clefTranspose),x.checkKeyAccidentals(this.accidentals,this.measureAccidentals),C=toNumber$1(this,x),C?A.push(C):(invalidNumber(A,x),w=A.error))),w)return A;var S=null;if(b){S=[];for(var $=0;$0&&(w+=" capo:"+d.capo),x=x.replace("%T",w)),x}return""};function StringPatterns$2(d){var b=d.tuning,x=d.capo,C=d._super.params.highestNote;this.linePitch=d.linePitch,this.highestNote="a'",C&&(this.highestNote=C),this.measureAccidentals={},this.capo=0,x&&(this.capo=parseInt(x,10)),this.transpose=d.transpose?d.transpose:0,this.tuning=b,this.stringPitches=[];for(var w=0;w0&&(this.capoTuning=buildCapo(this)),this.strings=buildPatterns(this),this.strings.error){d._super.setError(this.strings.error),d.inError=!0;return}this.secondPos=buildSecond(this)}var stringPatterns=StringPatterns$2,StringPatterns$1=stringPatterns;function ViolinPatterns$1(d){this.tuning=d._super.params.tuning,this.tuning||(this.tuning=["G,","D","A","e"]),d.tuning=this.tuning,this.strings=new StringPatterns$1(d)}ViolinPatterns$1.prototype.notesToNumber=function(d,b){var x=this.strings;return x.notesToNumber(d,b)};ViolinPatterns$1.prototype.stringToPitch=function(d){var b=this.strings;return b.stringToPitch(d)};var violinPatterns=ViolinPatterns$1,StringTablature$1=stringTablature,TabCommon$1=tabCommon,TabRenderer$1=tabRenderer,ViolinPatterns=violinPatterns;Plugin$1.prototype.init=function(d,b,x){var C=new TabCommon$1(d,b,x);this.abcTune=d,this._super=C,this.linePitch=3,this.nbLines=4,this.isTabBig=!1,this.capo=x.capo,this.transpose=x.visualTranspose,this.tablature=new StringTablature$1(this.nbLines,this.linePitch);var w=new ViolinPatterns(this);this.semantics=w};Plugin$1.prototype.render=function(d,b,x){if(!this._super.inError&&!this.tablature.bypass(b)){var C=new TabRenderer$1(this,d,b,x);C.doLayout()}};function Plugin$1(){}var AbcViolinTab=function(){return{name:"ViolinTab",tablature:Plugin$1}},tabViolin=AbcViolinTab,StringPatterns=stringPatterns;function GuitarPatterns$1(d){this.tuning=d._super.params.tuning,this.tuning||(this.tuning=["E,","A,","D","G","B","e"]),d.tuning=this.tuning,this.strings=new StringPatterns(d)}GuitarPatterns$1.prototype.notesToNumber=function(d,b){var x=this.strings;return x.notesToNumber(d,b)};GuitarPatterns$1.prototype.stringToPitch=function(d){var b=this.strings;return b.stringToPitch(d)};var guitarPatterns=GuitarPatterns$1,StringTablature=stringTablature,TabCommon=tabCommon,TabRenderer=tabRenderer,GuitarPatterns=guitarPatterns;Plugin.prototype.init=function(d,b,x){var C=new TabCommon(d,b,x);this._super=C,this.abcTune=d,this.linePitch=3,this.nbLines=6,this.isTabBig=!0,this.capo=x.capo,this.transpose=x.visualTranspose,this.tablature=new StringTablature(this.nbLines,this.linePitch);var w=new GuitarPatterns(this);this.semantics=w};Plugin.prototype.render=function(d,b,x){if(!this._super.inError&&!this.tablature.bypass(b)){var C=new TabRenderer(this,d,b,x);C.doLayout()}};function Plugin(){}var AbcGuitarTab=function(){return{name:"GuitarTab",tablature:Plugin}},tabGuitar=AbcGuitarTab,ViolinTablature=tabViolin,GuitarTablature=tabGuitar,pluginTab={violin:"ViolinTab",fiddle:"ViolinTab",mandolin:"ViolinTab",guitar:"GuitarTab"},abcTablatures={inited:!1,plugins:{},register:function(d){var b=d.name,x=d.tablature;this.plugins[b]=x},setError:function(d,b){d.warnings?d.warning.push(b):d.warnings=[b]},preparePlugins:function(d,b,x){var C=null;if(x.tablature){var w=x.tablature;C=[];for(var A=0;A=0&&$0,z=0;z=0&&(k=K.startChar,K.chord===void 0?B=P:B=null),K.chord&&(P=K),K.el_type==="bar"){if(R){var X=A.abc.substring(k,K.endChar),J={abc:X};P=B&&B.chord&&B.chord.length>0?B.chord[0].name:null,P&&(J.lastChord=P),K.startEnding&&(J.startEnding=K.startEnding),K.endEnding&&(J.endEnding=K.endEnding),I.push(J),k=null,R=!1}}else K.el_type==="note"&&(R=!0)}}x.push({header:E,measures:I,hasPickup:L})}return x}})();var abc_tunebook=tunebook$2,keyAccidentals=keyAccidentals_1,{relativeMajor,transposeKey,relativeMode}=relativeMajor_1,transposeChordName=transposeChord,strTranspose$1;(function(){strTranspose$1=function(Q,W,G){if(W==="TEST")return{keyAccidentals,relativeMajor,transposeKey,relativeMode,transposeChordName};G=parseInt(G,10);var q=[],K;for(K=0;K2?q+=7:G===-12&&(q-=7):G>0&&q<0?q+=7:G<0&&q>0&&(q-=7),G>12?q+=7:G<-12&&(q-=7),q}function A(Q,W,G,q,K,X){for(var J=[],oe=w(K,G,X),he={},Z={},ce=0;ce1?K[1]:"",accidentals:X}}function P(Q,W,G,q){for(var K=Q.pitch,X=S.indexOf(Q.name),J=S.indexOf(W.root),oe=(J+K)%7,he=X+G,Z=Q.oct;he>6;)Z++,he-=7;for(;he<0;)Z--,he+=7;for(var ce=S[oe],fe="",me=Q.adj,ne="=",te=0;te4&&(ce=ce.toLowerCase()),{acc:fe,name:ce,upper:ce.toUpperCase()}}var B=/([_^=]*)([A-Ga-g])([,']*)/,k=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,I=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,R=/(\s*)$/;function F(Q,W,G,q){var K=W==="none"?0:S.indexOf(W),X=Q.match(B),J=X[2].toUpperCase(),oe=S.indexOf(J)-K;oe<0&&(oe+=7);var he=$.indexOf(X[3]);J===X[2]&&he--;var Z=q[J]||G[J]||"=";return{acc:X[1],name:J,pitch:oe,oct:he,adj:U(X[1],G[J],q[J]),courtesy:X[1]===Z}}function L(Q,W,G,q,K){var X=Q.substring(W,G),J=X.match(new RegExp(k.source+R.source),"");if(J){var oe=J[1].length,he=J[2].length+J[3].length+J[4].length,Z=G-W-oe-he;W+=Z,G-=he}else{var ce=/([^\[]*)/,fe=/\[/,me=/\-?](\d*\/*\d*)?([\>\<\-\)]*)/;if(J=X.match(new RegExp(ce.source+fe.source+I.source+I.source+I.source+I.source+I.source+I.source+I.source+I.source+me.source+R.source)),J){for(var ne=1+J[1].length,te=0;tethis.max)&&(this.max=d.abcelem.maxpitch))};BeamElem$1.prototype.addBeam=function(d){this.beams.push(d)};BeamElem$1.prototype.setStemDirection=function(){if(this.average=calcAverage(this.total,this.count),this.forceup)this.stemsUp=!0;else if(this.forcedown)this.stemsUp=!1;else{var d=6;this.stemsUp=this.average0&&this.startVoice.staff.voices[0]===d)};var braceElement=BraceElem$1,spacing$b=spacing_1,glyphs$8={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"],["m",3,-11],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:12.1,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:21,h:14.97},"tab.big":{d:[["M",20.16,-21.66],["c",.24,-.09,.66,.09,.78,.36],["c",.09,.21,.09,.24,-.18,.54],["c",-.78,.81,-1.86,1.44,-2.94,1.71],["c",-.87,.24,-1.71,.24,-2.55,.03],["l",-.06,-.03],["l",-.18,.99],["c",-.33,1.98,-.75,4.26,-.96,5.04],["c",-.42,1.65,-1.26,3.18,-2.28,4.14],["c",-.57,.57,-1.17,.9,-1.86,1.08],["c",-.18,.06,-.33,.06,-.66,.06],["c",-.54,0,-.78,-.03,-1.23,-.27],["c",-.39,-.18,-.66,-.39,-1.38,-.99],["c",-.3,-.24,-.66,-.51,-.75,-.57],["c",-.21,-.15,-.27,-.24,-.24,-.45],["c",.06,-.27,.36,-.6,.6,-.66],["c",.18,-.03,.33,.06,.9,.57],["c",.48,.42,.72,.57,.93,.69],["c",.66,.33,1.38,.21,1.95,-.36],["c",.63,-.6,1.05,-1.62,1.23,-3],["c",.03,-.18,.09,-.66,.09,-1.11],["c",.09,-1.56,.33,-3.81,.57,-5.49],["c",.06,-.33,.09,-.63,.09,-.63],["c",-.03,-.03,-.81,-.12,-1.02,-.12],["c",-.57,0,-1.32,.12,-1.8,.33],["c",-.87,.3,-1.35,.78,-1.5,1.41],["c",-.18,.63,.09,1.26,.66,1.65],["c",.12,.06,.15,.12,.18,.24],["c",.09,.27,.06,.57,-.09,.75],["c",-.03,.06,-.12,.09,-.27,.15],["c",-.72,.21,-1.44,.15,-2.1,-.18],["c",-.54,-.27,-.96,-.66,-1.2,-1.14],["c",-.39,-.75,-.33,-1.74,.15,-2.52],["c",.27,-.42,.84,-.93,1.41,-1.23],["c",1.17,-.57,2.88,-.9,4.8,-.9],["c",.69,0,.78,0,1.08,.06],["c",.45,.09,1.11,.3,2.07,.6],["c",1.47,.48,1.83,.57,2.55,.54],["c",1.02,-.06,2.04,-.45,2.94,-1.11],["c",.12,-.09,.24,-.18,.27,-.18],["z"],["m",-5.88,13.05],["c",.21,-.03,.81,0,1.08,.06],["c",.48,.12,.9,.42,.99,.69],["c",.03,.09,.03,.15,0,.27],["c",0,.09,-.03,.57,-.06,1.08],["c",-.09,2.19,-.24,5.76,-.39,8.28],["c",-.06,1.53,-.06,1.77,.03,2.01],["c",.09,.18,.15,.24,.3,.3],["c",.24,.12,.54,.06,1.23,-.27],["c",.57,-.27,.66,-.3,.75,-.24],["c",.09,.06,.18,.3,.18,.45],["c",0,.33,-.15,.51,-.45,.63],["c",-.12,.03,-.39,.15,-.6,.27],["c",-1.17,.6,-1.38,.69,-1.8,.72],["c",-.45,.03,-.78,-.09,-1.08,-.39],["c",-.39,-.42,-.66,-1.2,-1.02,-3.12],["c",-.24,-1.23,-.36,-2.07,-.54,-3.75],["l",0,-.18],["l",-.36,.45],["c",-.6,.75,-1.32,1.59,-1.95,2.25],["c",-.15,.18,-.27,.3,-.27,.33],["c",0,0,.06,.09,.15,.18],["c",.24,.33,.6,.57,1.05,.69],["c",.18,.06,.3,.06,.69,.06],["l",.48,.03],["l",.06,.12],["c",.15,.27,.03,.72,-.21,.9],["c",-.18,.12,-.93,.27,-1.41,.27],["c",-.84,0,-1.59,-.3,-1.98,-.84],["l",-.12,-.15],["l",-.45,.42],["c",-.99,.87,-1.53,1.32,-2.16,1.74],["c",-.78,.51,-1.5,.84,-2.1,.93],["c",-.69,.12,-1.2,.03,-1.95,-.42],["c",-.21,-.12,-.51,-.27,-.66,-.36],["c",-.24,-.12,-.3,-.18,-.33,-.24],["c",-.12,-.27,.15,-.78,.45,-.93],["c",.24,-.12,.33,-.09,.9,.18],["c",.6,.3,.84,.39,1.2,.36],["c",.87,-.09,1.77,-.69,3.24,-2.31],["c",2.67,-2.85,4.59,-5.94,5.7,-9.15],["c",.15,-.45,.24,-.63,.42,-.81],["c",.21,-.24,.6,-.45,.99,-.51],["z"],["m",-3.99,16.05],["c",.18,0,.69,-.03,1.17,0],["c",3.27,.03,5.37,.75,6,2.07],["c",.45,.99,.12,2.4,-.81,3.42],["c",-.24,.27,-.57,.57,-.84,.75],["c",-.09,.06,-.18,.09,-.18,.12],["c",0,0,.18,.03,.42,.09],["c",1.23,.3,2.01,.81,2.37,1.59],["c",.27,.54,.3,1.32,.09,2.1],["c",-.12,.36,-.45,1.05,-.69,1.35],["c",-.87,1.17,-2.1,1.92,-3.54,2.25],["c",-.36,.06,-.48,.06,-.96,.06],["c",-.45,0,-.66,0,-.84,-.03],["c",-.84,-.18,-1.47,-.51,-2.07,-1.11],["c",-.33,-.33,-.45,-.51,-.45,-.63],["c",0,-.06,.03,-.15,.06,-.24],["c",.18,-.33,.69,-.6,.93,-.48],["c",.03,.03,.15,.12,.27,.24],["c",.39,.42,.99,.57,1.62,.45],["c",1.05,-.21,1.98,-1.02,2.31,-2.01],["c",.48,-1.53,-.48,-2.55,-2.58,-2.67],["c",-.21,0,-.36,-.03,-.42,-.06],["c",-.15,-.09,-.21,-.51,-.06,-.78],["c",.12,-.27,.24,-.33,.6,-.36],["c",.57,-.06,1.11,-.42,1.5,-.99],["c",.48,-.72,.54,-1.59,.18,-2.31],["c",-.12,-.21,-.45,-.54,-.69,-.69],["c",-.33,-.21,-.93,-.45,-1.35,-.51],["l",-.12,-.03],["l",-.06,.48],["c",-.54,2.94,-1.14,6.24,-1.29,6.75],["c",-.33,1.35,-.93,2.61,-1.65,3.6],["c",-.3,.36,-.81,.9,-1.14,1.14],["c",-.3,.24,-.84,.48,-1.14,.57],["c",-.33,.09,-.96,.09,-1.26,.03],["c",-.45,-.12,-.87,-.39,-1.53,-.96],["c",-.24,-.15,-.51,-.39,-.63,-.48],["c",-.3,-.21,-.33,-.33,-.21,-.63],["c",.12,-.18,.27,-.36,.42,-.45],["c",.27,-.12,.36,-.09,.87,.33],["c",.78,.6,1.08,.75,1.65,.72],["c",.45,-.03,.81,-.21,1.17,-.54],["c",.87,-.9,1.38,-2.85,1.38,-5.37],["c",0,-.6,.03,-1.11,.12,-2.04],["c",.06,-.69,.24,-2.01,.33,-2.58],["c",.06,-.24,.06,-.42,.06,-.42],["c",0,0,-.12,.03,-.21,.09],["c",-1.44,.57,-2.16,1.65,-1.74,2.55],["c",.09,.15,.18,.24,.27,.33],["c",.24,.21,.3,.27,.33,.39],["c",.06,.24,0,.63,-.15,.78],["c",-.09,.12,-.54,.21,-.96,.24],["c",-1.02,.03,-2.01,-.48,-2.43,-1.32],["c",-.21,-.45,-.27,-.9,-.15,-1.44],["c",.06,-.27,.21,-.66,.39,-.93],["c",.87,-1.29,3,-2.22,5.64,-2.43],["z"]],w:19.643,h:43.325},"tab.tiny":{d:[["M",16.02,-17.25],["c",.12,-.09,.15,-.09,.27,-.09],["c",.21,.03,.51,.3,.51,.45],["c",0,.06,-.12,.18,-.3,.36],["c",-1.11,1.08,-2.55,1.59,-3.84,1.41],["c",-.15,-.03,-.33,-.06,-.39,-.09],["c",-.06,-.03,-.09,-.03,-.12,-.03],["c",0,0,-.06,.42,-.15,.93],["c",-.33,2.01,-.66,3.69,-.84,4.26],["c",-.42,1.41,-1.23,2.67,-2.16,3.33],["c",-.27,.18,-.75,.42,-.99,.48],["c",-.3,.09,-.72,.09,-1.02,.06],["c",-.45,-.09,-.84,-.33,-1.53,-.9],["c",-.21,-.18,-.51,-.39,-.63,-.48],["c",-.27,-.21,-.3,-.24,-.3,-.36],["c",0,-.12,.09,-.36,.18,-.45],["c",.09,-.09,.27,-.18,.36,-.18],["c",.12,0,.3,.12,.66,.45],["c",.57,.51,.87,.69,1.23,.72],["c",.93,.06,1.68,-.78,1.98,-2.37],["c",.09,-.39,.15,-.75,.18,-1.53],["c",.06,-.99,.24,-2.79,.42,-4.05],["c",.03,-.3,.06,-.57,.06,-.6],["c",0,-.06,-.03,-.09,-.15,-.12],["c",-.9,-.18,-2.13,.06,-2.76,.57],["c",-.36,.3,-.51,.6,-.51,1.02],["c",0,.45,.15,.75,.48,.99],["c",.06,.06,.15,.18,.18,.24],["c",.12,.24,.03,.63,-.15,.69],["c",-.24,.12,-.6,.15,-.9,.15],["c",-.36,-.03,-.57,-.09,-.87,-.24],["c",-.78,-.36,-1.23,-1.11,-1.2,-1.92],["c",.12,-1.53,1.74,-2.49,4.62,-2.7],["c",1.2,-.09,1.47,-.03,3.33,.57],["c",.9,.3,1.14,.36,1.56,.39],["c",.45,0,.93,-.06,1.38,-.21],["c",.51,-.18,.81,-.33,1.41,-.75],["z"],["m",-4.68,10.38],["c",.39,-.06,.84,0,1.2,.15],["c",.24,.12,.36,.21,.45,.36],["l",.09,.09],["l",-.06,1.41],["c",-.09,2.19,-.18,3.96,-.27,5.49],["c",-.03,.78,-.06,1.59,-.06,1.86],["c",0,.42,0,.48,.06,.57],["c",.06,.18,.18,.24,.36,.27],["c",.18,0,.39,-.06,.84,-.27],["c",.45,-.21,.54,-.24,.63,-.18],["c",.12,.12,.15,.54,.03,.69],["c",-.03,.03,-.15,.12,-.27,.18],["c",-.15,.03,-.3,.12,-.36,.15],["c",-.87,.45,-1.02,.51,-1.26,.57],["c",-.33,.09,-.6,.06,-.84,-.06],["c",-.42,-.18,-.63,-.6,-.87,-1.44],["c",-.3,-1.23,-.57,-2.97,-.66,-4.08],["c",0,-.18,-.03,-.3,-.03,-.33],["l",-.06,.06],["c",-.18,.27,-1.11,1.38,-1.68,2.01],["l",-.33,.33],["l",.06,.09],["c",.06,.15,.27,.33,.48,.42],["c",.27,.18,.51,.24,.96,.27],["l",.39,0],["l",.03,.12],["c",.12,.21,.03,.57,-.15,.69],["c",-.03,.03,-.21,.09,-.36,.15],["c",-.27,.06,-.39,.06,-.75,.06],["c",-.48,0,-.75,-.03,-1.08,-.21],["c",-.21,-.12,-.51,-.36,-.57,-.48],["l",-.03,-.09],["l",-.39,.36],["c",-1.47,1.35,-2.49,1.98,-3.42,2.13],["c",-.54,.09,-.96,-.03,-1.62,-.39],["c",-.21,-.15,-.45,-.27,-.54,-.3],["c",-.18,-.09,-.21,-.21,-.12,-.45],["c",.06,-.27,.33,-.48,.54,-.48],["c",.03,0,.27,.09,.48,.21],["c",.48,.24,.69,.27,.99,.27],["c",.6,-.06,1.17,-.42,2.1,-1.35],["c",2.22,-2.22,4.02,-4.98,4.95,-7.59],["c",.21,-.57,.3,-.78,.48,-.93],["c",.15,-.15,.42,-.27,.66,-.33],["z"],["m",-3.06,12.84],["c",.27,-.03,1.68,0,2.01,.03],["c",1.92,.18,3.15,.69,3.63,1.5],["c",.18,.33,.24,.51,.21,.93],["c",0,.45,-.06,.72,-.24,1.11],["c",-.24,.51,-.69,1.02,-1.17,1.35],["c",-.21,.15,-.21,.15,-.12,.18],["c",.72,.15,1.11,.3,1.5,.57],["c",.39,.24,.63,.57,.75,.96],["c",.09,.3,.09,.96,0,1.29],["c",-.15,.57,-.39,1.05,-.78,1.5],["c",-.66,.75,-1.62,1.32,-2.61,1.53],["c",-.27,.06,-.42,.06,-.84,.06],["c",-.48,0,-.57,0,-.81,-.06],["c",-.6,-.18,-1.05,-.42,-1.47,-.81],["c",-.36,-.39,-.42,-.51,-.3,-.75],["c",.12,-.21,.39,-.39,.6,-.39],["c",.09,0,.15,.03,.33,.18],["c",.12,.12,.27,.24,.36,.27],["c",.96,.48,2.46,-.33,2.82,-1.5],["c",.24,-.81,-.03,-1.44,-.69,-1.77],["c",-.39,-.21,-1.02,-.33,-1.53,-.33],["c",-.18,0,-.21,0,-.27,-.09],["c",-.06,-.09,-.06,-.3,-.03,-.48],["c",.06,-.18,.18,-.36,.33,-.36],["c",.39,-.06,.51,-.09,.72,-.18],["c",.69,-.36,1.11,-1.23,.99,-2.01],["c",-.09,-.51,-.42,-.9,-.93,-1.17],["c",-.24,-.12,-.6,-.27,-.87,-.3],["c",-.09,-.03,-.09,-.03,-.12,.12],["c",0,.09,-.21,1.11,-.42,2.25],["c",-.66,3.75,-.72,3.99,-1.26,5.07],["c",-.9,1.89,-2.25,2.85,-3.48,2.61],["c",-.39,-.09,-.69,-.27,-1.38,-.84],["c",-.63,-.51,-.63,-.48,-.63,-.6],["c",0,-.18,.18,-.48,.39,-.57],["c",.21,-.12,.3,-.09,.81,.33],["c",.15,.15,.39,.3,.54,.36],["c",.18,.12,.27,.12,.48,.15],["c",.99,.06,1.71,-.78,2.04,-2.46],["c",.12,-.66,.18,-1.14,.21,-2.22],["c",.03,-1.23,.12,-2.25,.36,-3.63],["c",.03,-.24,.06,-.45,.06,-.48],["c",-.06,-.03,-.66,.27,-.9,.42],["c",-.06,.06,-.21,.18,-.33,.3],["c",-.57,.57,-.6,1.35,-.06,1.74],["c",.18,.12,.24,.24,.21,.51],["c",-.03,.3,-.15,.42,-.57,.48],["c",-1.11,.24,-2.22,-.42,-2.43,-1.38],["c",-.09,-.45,.03,-1.02,.3,-1.47],["c",.18,-.24,.6,-.63,.9,-.84],["c",.9,-.6,2.28,-1.02,3.69,-1.11],["z"]],w:15.709,h:34.656},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.32,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84}};glyphs$8["noteheads.slash.whole"]={d:[["M",5,-5],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"],["m",0,-2],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",-4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"]],w:10.81,h:15.63};glyphs$8["noteheads.slash.quarter"]={d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9};glyphs$8["noteheads.harmonic.quarter"]={d:[["M",3.63,-4.02],["c",.09,-.06,.18,-.09,.24,-.03],["c",.03,.03,.87,.93,1.83,2.01],["c",1.5,1.65,1.8,1.98,1.8,2.04],["c",0,.06,-.3,.39,-1.8,2.04],["c",-.96,1.08,-1.8,1.98,-1.83,2.01],["c",-.06,.06,-.15,.03,-.24,-.03],["c",-.12,-.09,-3.54,-3.84,-3.6,-3.93],["c",-.03,-.03,-.03,-.09,-.03,-.15],["c",.03,-.06,3.45,-3.84,3.63,-3.96],["z"]],w:7.5,h:8.165};glyphs$8["noteheads.triangle.quarter"]={d:[["M",0,0],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9};var pathClone=function(d){for(var b=[],x=0,C=d.length;x0?w.top+3:w.bottom-1,k=C>0?w.top+3:w.bottom-3,I=k-2;d.type==="bass-8"&&(B=3,P=0),w.addRight(new RelativeElement$8("8",A+P,glyphs$7.getSymbolWidth("8")*E,B,{scalex:E,scaley:E,top:k,bottom:I}))}}return w};function clefOffsets(d){switch(d){case"clefs.G":return-5;case"clefs.C":return-4;case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}var createClef_1=createClef$1,AbsoluteElement$3=absoluteElement,glyphs$6=glyphs_1,RelativeElement$7=relativeElement,createKeySignature$1=function(d,b){if(d.el_type="keySignature",!d.accidentals||d.accidentals.length===0)return null;var x=new AbsoluteElement$3(d,0,10,"staff-extra key-signature",b);x.isKeySig=!0;var C=0;return d.accidentals.forEach(function(w){var A,S=0;switch(w.acc){case"sharp":A="accidentals.sharp",S=-3;break;case"natural":A="accidentals.nat";break;case"flat":A="accidentals.flat",S=-1.2;break;case"quartersharp":A="accidentals.halfsharp",S=-2.5;break;case"quarterflat":A="accidentals.halfflat",S=-1.2;break;default:A="accidentals.flat"}x.addRight(new RelativeElement$7(A,C,glyphs$6.getSymbolWidth(A),w.verticalPos,{thickness:glyphs$6.symbolHeightInPitches(A),top:w.verticalPos+glyphs$6.symbolHeightInPitches(A)+S,bottom:w.verticalPos+S})),C+=glyphs$6.getSymbolWidth(A)+2},this),x},createKeySignature_1=createKeySignature$1,glyphs$5=glyphs_1,RelativeElement$6=relativeElement,createNoteHead$1=function(d,b,x,C){C||(C={});var w=C.dir!==void 0?C.dir:null,A=C.headx!==void 0?C.headx:0,S=C.extrax!==void 0?C.extrax:0,$=C.flag!==void 0?C.flag:null,E=C.dot!==void 0?C.dot:0,P=C.dotshiftx!==void 0?C.dotshiftx:0,B=C.scale!==void 0?C.scale:1,k=C.accidentalSlot!==void 0?C.accidentalSlot:[],I=C.shouldExtendStem!==void 0?C.shouldExtendStem:!1,R=C.printAccidentals!==void 0?C.printAccidentals:!0,F=x.verticalPos,L,z=0,V=0,U=0;if(b===void 0)d.addFixed(new RelativeElement$6("pitch is undefined",0,0,0,{type:"debug"}));else if(b==="")L=new RelativeElement$6(null,0,0,F);else{var Q=A;if(x.printer_shift){var W=x.printer_shift==="same"?1:0;Q=w==="down"?-glyphs$5.getSymbolWidth(b)*B+W:glyphs$5.getSymbolWidth(b)*B-W}var G={scalex:B,scaley:B,thickness:glyphs$5.symbolHeightInPitches(b)*B,name:x.name};if(L=new RelativeElement$6(b,Q,glyphs$5.getSymbolWidth(b)*B,F,G),L.stemDir=w,$){var q=F+(w==="down"?-7:7)*B;I&&(w==="down"&&q>6&&(q=6),w==="up"&&q<6&&(q=6));var K=w==="down"?A:A+L.w-.6;d.addRight(new RelativeElement$6($,K,glyphs$5.getSymbolWidth($)*B,q,{scalex:B,scaley:B}))}for(V=L.w+P-2+5*E;E>0;E--){var X=1-Math.abs(F)%2;d.addRight(new RelativeElement$6("dots.dot",L.w+P-2+5*E,glyphs$5.getSymbolWidth("dots.dot"),F+X))}}if(L&&(L.highestVert=x.highestVert),R&&x.accidental){var J;switch(x.accidental){case"quartersharp":J="accidentals.halfsharp";break;case"dblsharp":J="accidentals.dblsharp";break;case"sharp":J="accidentals.sharp";break;case"quarterflat":J="accidentals.halfflat";break;case"flat":J="accidentals.flat";break;case"dblflat":J="accidentals.dblflat";break;case"natural":J="accidentals.nat"}for(var oe=!1,he=S,Z=0;Z=6){k[Z][0]=F,he=k[Z][1],oe=!0;break}oe===!1&&(he-=glyphs$5.getSymbolWidth(J)*B+2,k.push([F,he]),z=glyphs$5.getSymbolWidth(J)*B+2);var ce=glyphs$5.symbolHeightInPitches(J);d.addExtra(new RelativeElement$6(J,he,glyphs$5.getSymbolWidth(J),F,{scalex:B,scaley:B,top:F+ce/2,bottom:F-ce/2})),U=glyphs$5.getSymbolWidth(J)/2}return{notehead:L,accidentalshiftx:z,dotshiftx:V,extraLeft:U}},createNoteHead_1=createNoteHead$1,AbsoluteElement$2=absoluteElement,glyphs$4=glyphs_1,RelativeElement$5=relativeElement,createTimeSignature$1=function(d,b){d.el_type="timeSignature";var x=new AbsoluteElement$2(d,0,10,"staff-extra time-signature",b);if(d.type==="specified")for(var C=0,w=0;w0)this.above=!1;else{var d;this.anchor1?d=this.anchor1.pitch:this.anchor2?d=this.anchor2.pitch:d=14,this.anchor1&&this.anchor1.stemDir==="down"&&this.anchor2&&this.anchor2.stemDir==="down"?this.above=!0:this.anchor1&&this.anchor1.stemDir==="up"&&this.anchor2&&this.anchor2.stemDir==="up"?this.above=!1:this.anchor1&&this.anchor2?this.above=d>=6:this.anchor1?this.above=this.anchor1.stemDir==="down":this.anchor2?this.above=this.anchor2.stemDir==="down":this.above=d>=6}};TieElem$2.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var d=!1;this.anchor1&&this.anchor1.stemDir==="down"&&(d=!0),this.anchor2&&this.anchor2.stemDir==="down"&&(d=!0);for(var b=0;bd&&(d=this.internalNotes[b].highestVert);d>this.startY&&d>this.endY&&(this.startY=this.endY=d-1)}};var tieElement=TieElem$2,DynamicDecoration=dynamicDecoration,CrescendoElem=crescendoElement,GlissandoElem=glissandoElement,glyphs$3=glyphs_1,RelativeElement$4=relativeElement,TieElem$1=tieElement,Decoration$1=function d(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},closeDecoration=function(d,b,x,C,w,A,S,$){for(var E,P=0;P9&&E++;var k=C/2;glyphs$3.getSymbolAlign(B)!=="center"&&(k-=glyphs$3.getSymbolWidth(B)/2),w.addFixedX(new RelativeElement$4(B,k,glyphs$3.getSymbolWidth(B),E))}if(b[P]==="slide"&&w.heads[0]){var I=w.heads[0].pitch;I-=2;var R=new RelativeElement$4("",-A-15,0,I-1),F=new RelativeElement$4("",-A-5,0,I+1);w.addFixedX(R),w.addFixedX(F),d.addOther(new TieElem$1({anchor1:R,anchor2:F,fixedY:!0}))}}return E===void 0&&(E=x),{above:E,below:w.bottom}},volumeDecoration=function(d,b,x,C){for(var w=0;wS&&(L=S)),L}function P(F,L,z){var V=E(L),U=2,Q=5;x.addFixedX(new RelativeElement$4(F,b/2,0,V+U,{type:"decoration",klass:"ornament",thickness:3,anchor:z})),$(L,Q)}function B(F,L){var z=b/2;glyphs$3.getSymbolAlign(F)!=="center"&&(z-=glyphs$3.getSymbolWidth(F)/2);var V=glyphs$3.symbolHeightInPitches(F)+1,U=E(L);U=L==="above"?U+V/2:U-V/2,x.addFixedX(new RelativeElement$4(F,z,glyphs$3.getSymbolWidth(F),U,{klass:"ornament",thickness:glyphs$3.symbolHeightInPitches(F)})),$(L,V)}for(var k={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},I=!1,R=0;R",C)),A&&d.addOther(new CrescendoElem(A.start,A.stop,"<",C)),S&&d.addOther(new GlissandoElem(S.start,S.stop))};Decoration$1.prototype.createDecoration=function(d,b,x,C,w,A,S,$,E,P){E||(E={ornamentPosition:"above",volumePosition:P?"above":"below",dynamicPosition:P?"above":"below"}),volumeDecoration(d,b,w,E.volumePosition),this.dynamicDecoration(d,b,w,E.dynamicPosition),compoundDecoration(b,x,C,w,S);var B=closeDecoration(d,b,x,C,w,A,S,$);B.above=Math.max(B.above,this.minTop),stackedDecoration(b,C,w,B,E.ornamentPosition,this.minTop,this.minBottom),leftDecoration(b,w,A)};var decoration=Decoration$1,EndingElem$1=function d(b,x,C){this.type="EndingElem",this.text=b,this.anchor1=x,this.anchor2=C,this.endingHeightAbove=5,this.pitch=void 0},endingElement=EndingElem$1,calcHeight$1=function(d){for(var b=0,x=0;x=0;I--){var R=k[I],F=0,L,z,V;P==="left"||P==="right"||P==="below"||P==="above"||B?(z="annotationfont",V="annotation"):(z="gchordfont",V="chord",R=translateChord(R,S,$));var U=d.attr(z,V),Q=d.calc(R,z,V),W=Q.width,G=Q.height/spacing$a.STEP;switch(P){case"left":C+=W+7,F=-C,L=x.averagepitch,b.addExtra(new RelativeElement$2(R,F,W+4,L,{type:"text",height:G,dim:U,position:"left"}));break;case"right":w+=4,F=w,L=x.averagepitch,b.addRight(new RelativeElement$2(R,F,W+4,L,{type:"text",height:G,dim:U,position:"right"}));break;case"below":b.addRight(new RelativeElement$2(R,0,0,void 0,{type:"text",position:"below",height:G,dim:U,realWidth:W}));break;case"above":b.addRight(new RelativeElement$2(R,0,0,void 0,{type:"text",position:"above",height:G,dim:U,realWidth:W}));break;default:if(B){var q=B.y+3*spacing$a.STEP;b.addRight(new RelativeElement$2(R,F+B.x,0,x.minpitch+q/spacing$a.STEP,{position:"relative",type:"text",height:G,dim:U}))}else{var K="above";x.positioning&&x.positioning.chordPosition&&(K=x.positioning.chordPosition),K!=="hidden"&&b.addCentered(new RelativeElement$2(R,A/2,W,void 0,{type:"chord",position:K,height:G,dim:U,realWidth:W}))}}}return{roomTaken:C,roomTakenRight:w}},addChord_1=addChord$1,AbsoluteElement=absoluteElement,BeamElem=beamElement,BraceElem=braceElement,createClef=createClef_1,createKeySignature=createKeySignature_1,createNoteHead=createNoteHead_1,createTimeSignature=createTimeSignature_1,Decoration=decoration,EndingElem=endingElement,glyphs$2=glyphs_1,RelativeElement$1=relativeElement,spacing$9=spacing_1,StaffGroupElement=staffGroupElement,TempoElement=tempoElement,TieElem=tieElement,TripletElem=tripletElement,VoiceElement$1=voiceElement,addChord=addChord_1,pitchesToPerc=pitchesToPerc_1,parseCommon$2=abc_common,getDuration=function(d){var b=0;return d.duration&&(b=d.duration),b},hint=!1,chartable={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th",multi:"rests.multimeasure"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},rhythm:{"-1":"noteheads.slash.whole",0:"noteheads.slash.whole",1:"noteheads.slash.whole",2:"noteheads.slash.quarter",3:"noteheads.slash.quarter",4:"noteheads.slash.quarter",5:"noteheads.slash.quarter",6:"noteheads.slash.quarter",7:"noteheads.slash.quarter",nostem:"noteheads.slash.nostem"},x:{"-1":"noteheads.indeterminate",0:"noteheads.indeterminate",1:"noteheads.indeterminate",2:"noteheads.indeterminate",3:"noteheads.indeterminate",4:"noteheads.indeterminate",5:"noteheads.indeterminate",6:"noteheads.indeterminate",7:"noteheads.indeterminate",nostem:"noteheads.indeterminate"},harmonic:{"-1":"noteheads.harmonic.quarter",0:"noteheads.harmonic.quarter",1:"noteheads.harmonic.quarter",2:"noteheads.harmonic.quarter",3:"noteheads.harmonic.quarter",4:"noteheads.harmonic.quarter",5:"noteheads.harmonic.quarter",6:"noteheads.harmonic.quarter",7:"noteheads.harmonic.quarter",nostem:"noteheads.harmonic.quarter"},triangle:{"-1":"noteheads.triangle.quarter",0:"noteheads.triangle.quarter",1:"noteheads.triangle.quarter",2:"noteheads.triangle.quarter",3:"noteheads.triangle.quarter",4:"noteheads.triangle.quarter",5:"noteheads.triangle.quarter",6:"noteheads.triangle.quarter",7:"noteheads.triangle.quarter",nostem:"noteheads.triangle.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}},AbstractEngraver$1=function(d,b,x){this.decoration=new Decoration,this.getTextSize=d,this.tuneNumber=b,this.isBagpipes=x.bagpipes,this.flatBeams=x.flatbeams,this.graceSlurs=x.graceSlurs,this.percmap=x.percmap,this.initialClef=x.initialClef,this.jazzchords=!!x.jazzchords,this.germanAlphabet=!!x.germanAlphabet,this.reset()};AbstractEngraver$1.prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.voiceColor=void 0,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.colorByVoice={},this.tripletmultiplier=1,this.abcline=void 0,this.accidentalSlot=void 0,this.accidentalshiftx=void 0,this.dotshiftx=void 0,this.hasVocals=!1,this.minY=void 0,this.partstartelem=void 0,this.startlimitelem=void 0,this.stemdir=void 0};AbstractEngraver$1.prototype.setStemHeight=function(d){this.stemHeight=Math.round(d*10/spacing$9.STEP)/10};AbstractEngraver$1.prototype.getCurrentVoiceId=function(d,b){return"s"+d+"v"+b};AbstractEngraver$1.prototype.pushCrossLineElems=function(d,b){this.slursbyvoice[this.getCurrentVoiceId(d,b)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(d,b)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(d,b)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(d,b)]=this.voiceScale,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(d,b)]=this.voiceColor)};AbstractEngraver$1.prototype.popCrossLineElems=function(d,b){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(d,b)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(d,b)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(d,b)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(d,b)],this.voiceScale===void 0&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(d,b)]};AbstractEngraver$1.prototype.containsLyrics=function(d){for(var b=0;b0&&(w[0].invisible=!0);break;case"meter":w[0]=createTimeSignature(C,this.tuneNumber),this.startlimitelem=w[0],x.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"clef":if(w[0]=createClef(C,this.tuneNumber),!w[0])return null;x.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"key":var A=createKeySignature(C,this.tuneNumber);A&&(w[0]=A,this.startlimitelem=w[0]),x.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"stem":this.stemdir=C.direction==="auto"?void 0:C.direction;break;case"part":var S=new AbsoluteElement(C,0,0,"part",this.tuneNumber),$=this.getTextSize.calc(C.title,"partsfont","part");S.addFixedX(new RelativeElement$1(C.title,0,0,void 0,{type:"part",height:$.height/spacing$9.STEP})),w[0]=S;break;case"tempo":var E=new AbsoluteElement(C,0,0,"tempo",this.tuneNumber);E.addFixedX(new TempoElement(C,this.tuneNumber,createNoteHead)),w[0]=E;break;case"style":C.head==="normal"?delete this.style:this.style=C.head;break;case"hint":hint=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=C.size;break;case"color":this.voiceColor=C.color,x.color=this.voiceColor;break;default:var P=new AbsoluteElement(C,0,0,"unsupported",this.tuneNumber);P.addFixed(new RelativeElement$1("element type "+C.el_type,0,0,void 0,{type:"debug"})),w[0]=P}return w};function setAveragePitch(d){if(d.pitches){sortPitch(d);for(var b=0,x=0;xd.pitches[x+1].pitch){b=!1;var C=d.pitches[x];d.pitches[x]=d.pitches[x+1],d.pitches[x+1]=C}}while(!b)},ledgerLines=function(d,b,x,C,w,A,S,$,E){for(var P=x;P>11;P--)P%2===0&&!C&&d.addFixed(new RelativeElement$1(null,$,(w+4)*E,P,{type:"ledger"}));for(P=b;P<1;P++)P%2===0&&!C&&d.addFixed(new RelativeElement$1(null,$,(w+4)*E,P,{type:"ledger"}));for(P=0;P1&&(P=new BeamElem(w,"grace",A),hint&&P.setHint(),P.mainNote=x);var k,I=[];for(k=d.gracenotes.length-1;k>=0;k--)S+=10,I[k]=S,d.gracenotes[k].accidental&&(S+=7);for(k=0;k=6?"down":"up";C&&(U=C),w=b.style?b.style:w,(!w||w==="normal")&&(w="note");var Q;A?Q=chartable[w].nostem:Q=chartable[w][-S],Q||console.log("noteSymbol:",w,S,A);var W;for(W=U==="down"?b.pitches.length-2:1;U==="down"?W>=0:W11||q.verticalPos<1)&&L.push(q.verticalPos-q.verticalPos%2),U==="down"?k=glyphs$2.getSymbolWidth(Q)+2:P=glyphs$2.getSymbolWidth(Q)+2)}var X=b.pitches.length;for(W=0;W0&&(B.bottom=B.bottom-1),d.addHead(B)),k+=me.accidentalshiftx,I=Math.max(I,me.dotshiftx)}if(fe){var ne=Math.round(70*this.voiceScale)/10,te=U==="down"?b.minpitch-ne:b.minpitch+1/3;te>6&&!C&&(te=6);var de=U==="down"?b.maxpitch-1/3:b.maxpitch+ne;de<6&&!C&&(de=6);var le=U==="down"||d.heads.length===0?0:d.heads[0].w,be=U==="down"?1:-1;B&&B.c==="noteheads.slash.quarter"&&(U==="down"?de-=1:te+=1),d.addRight(new RelativeElement$1(null,le,0,te,{type:"stem",pitch2:de,linewidth:be,bottom:te-1})),R=Math.min(te,de)}return{noteHead:B,roomTaken:k,roomTakenRight:I,min:R,additionalLedgers:L,dir:U,symbolWidth:V}};AbstractEngraver$1.prototype.addLyric=function(d,b){var x="";b.lyric.forEach(function(A){var S=A.divider===" "?"":A.divider;x+=A.syllable+S+"\n"});var C=this.getTextSize.calc(x,"vocalfont","lyric"),w=b.positioning?b.positioning.vocalPosition:"below";d.addCentered(new RelativeElement$1(x,0,C.width,void 0,{type:"lyric",position:w,height:C.height/spacing$9.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))};AbstractEngraver$1.prototype.createNote=function(d,b,x,C){var w=null,A=0,S=0,$=0,E=[],P,B=getDuration(d),k=!1;B===0&&(k=!0,B=.25,b=!0);for(var I=Math.floor(Math.log(B)/Math.log(2)),R=0,F=Math.pow(2,I),L=F/2;F1,this.stemdir,x,I,this.voiceScale);w=Q.noteHead,A=Q.roomTaken,S=Q.roomTakenRight}else{var W=this.addNoteToAbcElement(U,d,R,this.stemdir,this.style,k,I,b,C);W.min!==void 0&&(this.minY=Math.min(W.min,this.minY)),w=W.noteHead,A=W.roomTaken,S=W.roomTakenRight,E=W.additionalLedgers,P=W.dir,$=W.symbolWidth}if(d.lyric!==void 0&&this.addLyric(U,d),d.gracenotes!==void 0&&(A+=this.addGraceNotes(d,C,U,w,this.stemHeight*this.voiceScale,this.isBagpipes,A)),d.decoration&&this.decoration.createDecoration(C,d.decoration,U.top,w?w.w:0,U,A,P,U.bottom,d.positioning,this.hasVocals),d.barNumber&&U.addFixed(new RelativeElement$1(d.barNumber,-10,0,0,{type:"barNumber"})),ledgerLines(U,d.minpitch,d.maxpitch,d.rest,$,E,P,-2,1),d.chord!==void 0){var G=addChord(this.getTextSize,U,d,A,S,$,this.jazzchords,this.germanAlphabet);A=G.roomTaken,S=G.roomTakenRight}return d.startTriplet&&(this.triplet=new TripletElem(d.startTriplet,w,{flatBeams:this.flatBeams})),d.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(w),this.triplet&&!d.startTriplet&&!d.endTriplet&&!(d.rest&&d.rest.type==="spacer")&&this.triplet.middleNote(w),U};AbstractEngraver$1.prototype.addSlursAndTies=function(d,b,x,C,w,A){if(b.endTie&&this.ties.length>0){for(var S=!1,$=0;$10&&b.abcelem.type==="treble"?13:11;b.addFixed(new RelativeElement$1(d,C,x.width,w+x.height/spacing$9.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))};AbstractEngraver$1.prototype.createBarLine=function(d,b,x){var C=new AbsoluteElement(b,0,10,"bar",this.tuneNumber),w=null,A=0;b.barNumber&&this.addMeasureNumber(b.barNumber,C);var S=b.type==="bar_right_repeat"||b.type==="bar_dbl_repeat",$=b.type!=="bar_left_repeat"&&b.type!=="bar_thick_thin"&&b.type!=="bar_invisible",E=b.type==="bar_right_repeat"||b.type==="bar_dbl_repeat"||b.type==="bar_left_repeat"||b.type==="bar_thin_thick"||b.type==="bar_thick_thin",P=b.type==="bar_left_repeat"||b.type==="bar_thick_thin"||b.type==="bar_thin_thin"||b.type==="bar_dbl_repeat",B=b.type==="bar_left_repeat"||b.type==="bar_dbl_repeat";if(S||B){for(var k in this.slurs)this.slurs.hasOwnProperty(k)&&this.slurs[k].setEndX(C);this.startlimitelem=C}if(S&&(C.addRight(new RelativeElement$1("dots.dot",A,1,7)),C.addRight(new RelativeElement$1("dots.dot",A,1,5)),A+=6),$&&(w=new RelativeElement$1(null,A,1,2,{type:"bar",pitch2:10,linewidth:.6}),C.addRight(w)),b.type==="bar_invisible"&&(w=new RelativeElement$1(null,A,1,2,{type:"none",pitch2:10,linewidth:.6}),C.addRight(w)),b.decoration&&this.decoration.createDecoration(d,b.decoration,12,E?3:1,C,0,"down",2,b.positioning,this.hasVocals),E&&(A+=4,w=new RelativeElement$1(null,A,4,2,{type:"bar",pitch2:10,linewidth:4}),C.addRight(w),A+=5),this.partstartelem&&b.endEnding&&(this.partstartelem.anchor2=w,this.partstartelem=null),P&&(A+=3,w=new RelativeElement$1(null,A,1,2,{type:"bar",pitch2:10,linewidth:.6}),C.addRight(w)),B&&(A+=3,C.addRight(new RelativeElement$1("dots.dot",A,1,7)),C.addRight(new RelativeElement$1("dots.dot",A,1,5))),b.startEnding&&x){var I=this.getTextSize.calc(b.startEnding,"repeatfont","").width;C.minspacing+=I+10,this.partstartelem=new EndingElem(b.startEnding,w,null),d.addOther(this.partstartelem)}return C.extraw-=5,b.chord!==void 0&&addChord(this.getTextSize,C,b,0,0,0,!1,this.germanAlphabet),C};var abstractEngraver=AbstractEngraver$1,svgNS="http://www.w3.org/2000/svg";function Svg$1(d){this.svg=createSvg(),this.currentGroup=[],d.appendChild(this.svg)}Svg$1.prototype.clear=function(){if(this.svg){var d=this.svg.parentNode;this.svg=createSvg(),this.currentGroup=[],d&&(d.innerHTML="",d.appendChild(this.svg))}};Svg$1.prototype.setTitle=function(d){var b=document.createElement("title"),x=document.createTextNode(d);b.appendChild(x),this.svg.insertBefore(b,this.svg.firstChild)};Svg$1.prototype.setResponsiveWidth=function(d,b){if(this.svg.setAttribute("viewBox","0 0 "+d+" "+b),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var x=this.svg.parentNode.getAttribute("class");x?x.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",x+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%";var C=b/d*100;this.svg.parentNode.style["padding-bottom"]=C+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}};Svg$1.prototype.setSize=function(d,b){this.svg.setAttribute("width",d),this.svg.setAttribute("height",b)};Svg$1.prototype.setAttribute=function(d,b){this.svg.setAttribute(d,b)};Svg$1.prototype.setScale=function(d){d!==1?(this.svg.style.transform="scale("+d+","+d+")",this.svg.style["-ms-transform"]="scale("+d+","+d+")",this.svg.style["-webkit-transform"]="scale("+d+","+d+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")};Svg$1.prototype.insertStyles=function(d){var b=document.createElementNS(svgNS,"style");b.textContent=d,this.svg.insertBefore(b,this.svg.firstChild)};Svg$1.prototype.setParentStyles=function(d){for(var b in d)d.hasOwnProperty(b)&&this.svg.parentNode&&(this.svg.parentNode.style[b]=d[b]);if(this.dummySvg){var x=document.querySelector("body");x.removeChild(this.dummySvg),this.dummySvg=null}};function constructHLine(d,b,x){var C=x-d;return"M "+d+" "+b+" l "+C+" 0 l 0 1 l "+-C+" 0 z "}function constructVLine(d,b,x){var C=x-b;return"M "+d+" "+b+" l 0 "+C+" l 1 0 l 0 "+-C+" z "}Svg$1.prototype.rect=function(d){var b=[],x=d.x,C=d.y,w=d.x+d.width,A=d.y+d.height;return b.push(constructHLine(x,C,w)),b.push(constructHLine(x,A,w)),b.push(constructVLine(w,C,A)),b.push(constructVLine(x,A,C)),this.path({path:b.join(" "),stroke:"none","data-name":d["data-name"]})};Svg$1.prototype.dottedLine=function(d){var b=document.createElementNS(svgNS,"line");b.setAttribute("x1",d.x1),b.setAttribute("x2",d.x2),b.setAttribute("y1",d.y1),b.setAttribute("y2",d.y2),b.setAttribute("stroke",d.stroke),b.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(b,this.svg.firstChild)};Svg$1.prototype.rectBeneath=function(d){var b=document.createElementNS(svgNS,"rect");b.setAttribute("x",d.x),b.setAttribute("width",d.width),b.setAttribute("y",d.y),b.setAttribute("height",d.height),d.stroke&&b.setAttribute("stroke",d.stroke),d["stroke-opacity"]&&b.setAttribute("stroke-opacity",d["stroke-opacity"]),d.fill&&b.setAttribute("fill",d.fill),d["fill-opacity"]&&b.setAttribute("fill-opacity",d["fill-opacity"]),this.svg.insertBefore(b,this.svg.firstChild)};Svg$1.prototype.text=function(d,b,x){var C=document.createElementNS(svgNS,"text");C.setAttribute("stroke","none");for(var w in b)b.hasOwnProperty(w)&&C.setAttribute(w,b[w]);for(var A=(""+d).split("\n"),S=0;S0?this.currentGroup[0].removeChild(x):this.svg.removeChild(x)),C&&(sizeCache[C]=A),A};Svg$1.prototype.openGroup=function(d){d=d||{};var b=document.createElementNS(svgNS,"g");return d.klass&&b.setAttribute("class",d.klass),d.fill&&b.setAttribute("fill",d.fill),d.stroke&&b.setAttribute("stroke",d.stroke),d["data-name"]&&b.setAttribute("data-name",d["data-name"]),d.prepend?this.prepend(b):this.append(b),this.currentGroup.unshift(b),b};Svg$1.prototype.closeGroup=function(){var d=this.currentGroup.shift();return d&&d.children.length===0?(d.parentElement.removeChild(d),null):d};Svg$1.prototype.path=function(d){var b=document.createElementNS(svgNS,"path");for(var x in d)d.hasOwnProperty(x)&&(x==="path"?b.setAttributeNS(null,"d",d.path):x==="klass"?b.setAttributeNS(null,"class",d[x]):d[x]!==void 0&&b.setAttributeNS(null,x,d[x]));return this.append(b),b};Svg$1.prototype.pathToBack=function(d){var b=document.createElementNS(svgNS,"path");for(var x in d)d.hasOwnProperty(x)&&(x==="path"?b.setAttributeNS(null,"d",d.path):x==="klass"?b.setAttributeNS(null,"class",d[x]):b.setAttributeNS(null,x,d[x]));return this.prepend(b),b};Svg$1.prototype.lineToBack=function(d){for(var b=document.createElementNS(svgNS,"line"),x=Object.keys(d),C=0;C0?this.currentGroup[0].appendChild(d):this.svg.appendChild(d)};Svg$1.prototype.prepend=function(d){this.currentGroup.length>0?this.currentGroup[0].appendChild(d):this.svg.insertBefore(d,this.svg.firstChild)};Svg$1.prototype.setAttributeOnElement=function(d,b){for(var x in b)b.hasOwnProperty(x)&&d.setAttributeNS(null,x,b[x])};Svg$1.prototype.moveElementToChild=function(d,b){d.appendChild(b)};function createSvg(){var d=document.createElementNS(svgNS,"svg");return d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),d.setAttribute("role","img"),d.setAttribute("fill","currentColor"),d.setAttribute("stroke","currentColor"),d}var svg$5=Svg$1,spacing$8=spacing_1,Svg=svg$5,Renderer$1=function(d){this.paper=new Svg(d),this.controller=null,this.space=3*spacing$8.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};Renderer$1.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()};Renderer$1.prototype.newTune=function(d){this.abctune=d,this.setVerticalSpace(d.formatting),this.isPrint=d.media==="print",this.setPadding(d)};Renderer$1.prototype.setLineThickness=function(d){this.lineThickness=d};Renderer$1.prototype.setPaddingOverride=function(d){this.paddingOverride={top:d.paddingtop,bottom:d.paddingbottom,right:d.paddingright,left:d.paddingleft}};Renderer$1.prototype.setPadding=function(d){function b(x,C,w,A,S){d.formatting[w]!==void 0?x.padding[C]=d.formatting[w]:x.paddingOverride[C]!==void 0?x.padding[C]=x.paddingOverride[C]:x.isPrint?x.padding[C]=A:x.padding[C]=S}b(this,"top","topmargin",38,15),b(this,"bottom","botmargin",38,15),b(this,"left","leftmargin",68,15),b(this,"right","rightmargin",68,15)};Renderer$1.prototype.adjustNonScaledItems=function(d){this.padding.top/=d,this.padding.bottom/=d,this.padding.left/=d,this.padding.right/=d,this.abctune.formatting.headerfont.size/=d,this.abctune.formatting.footerfont.size/=d};Renderer$1.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,stemHeight:26.67+10,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}};Renderer$1.prototype.setVerticalSpace=function(d){d.staffsep!==void 0&&(this.spacing.staffSeparation=d.staffsep*4/3),d.composerspace!==void 0&&(this.spacing.composer=d.composerspace*4/3),d.partsspace!==void 0&&(this.spacing.parts=d.partsspace*4/3),d.textspace!==void 0&&(this.spacing.text=d.textspace*4/3),d.musicspace!==void 0&&(this.spacing.music=d.musicspace*4/3),d.titlespace!==void 0&&(this.spacing.title=d.titlespace*4/3),d.sysstaffsep!==void 0&&(this.spacing.systemStaffSeparation=d.sysstaffsep*4/3),d.subtitlespace!==void 0&&(this.spacing.subtitle=d.subtitlespace*4/3),d.topspace!==void 0&&(this.spacing.top=d.topspace*4/3),d.vocalspace!==void 0&&(this.spacing.vocal=d.vocalspace*4/3),d.wordsspace!==void 0&&(this.spacing.words=d.wordsspace*4/3)};Renderer$1.prototype.calcY=function(d){return this.y-d*spacing$8.STEP};Renderer$1.prototype.moveY=function(d,b){b===void 0&&(b=1),this.y+=d*b};Renderer$1.prototype.absolutemoveY=function(d){this.y=d};var renderer=Renderer$1;function FreeText$1(d,b,x,C,w,A){var S=d.text;this.rows=[];var $;b&&this.rows.push({move:b});var E=x.calc("textfont","defined-text");if(S==="")this.rows.push({move:E.attr["font-size"]*2});else if(typeof S=="string")this.rows.push({move:E.attr["font-size"]/2}),this.rows.push({left:C,text:S,font:"textfont",klass:"defined-text",anchor:"start",startChar:d.startChar,endChar:d.endChar,absElemType:"freeText",name:"free-text"}),$=A.calc(S,"textfont","defined-text"),this.rows.push({move:$.height});else if(S){for(var P=0,B=C,k="textfont",I=0;I0){var R=!!(d.composer||d.origin);addTextIf$1(this.rows,{marginLeft:S,text:d.rhythm,font:"infofont",klass:"meta-top rhythm",absElemType:"rhythm",noMove:R,info:b.rhythm,name:"rhythm"},E)}var F="";d.composer&&(F+=d.composer),d.origin&&(F+=" ("+d.origin+")"),F.length>0&&addTextIf$1(this.rows,{marginLeft:S+w,text:F,font:"composerfont",klass:"meta-top composer",anchor:"end",absElemType:"composer",info:b.composer,name:"composer"},E)}d.author&&d.author.length>0&&addTextIf$1(this.rows,{marginLeft:S+w,text:d.author,font:"composerfont",klass:"meta-top author",anchor:"end",absElemType:"author",info:b.author,name:"author"},E),d.partOrder&&d.partOrder.length>0&&addTextIf$1(this.rows,{marginLeft:S,text:d.partOrder,font:"partsfont",klass:"meta-top part-order",absElemType:"partOrder",info:b.partOrder,name:"part-order"},E)}var topText=TopText$1;const addTextIf=addTextIf_1;function BottomText$1(d,b,x,C,w,A){this.rows=[],d.unalignedWords&&d.unalignedWords.length>0&&this.unalignedWords(d.unalignedWords,C,w,A),this.extraText(d,C,w,A),d.footer&&x&&this.footer(d.footer,b,C,A)}BottomText$1.prototype.unalignedWords=function(d,b,x,C){var w="meta-bottom unaligned-words",A="wordsfont";this.rows.push({startGroup:"unalignedWords",klass:"abcjs-meta-bottom abcjs-unaligned-words",name:"words"});var S=C.calc("i",A,w);this.rows.push({move:x.words});for(var $=0;$0&&addTextIf(this.rows,{marginLeft:b,text:w,font:"historyfont",klass:"meta-bottom extra-text",marginTop:x.info,absElemType:"extraText",name:"description"},C)};BottomText$1.prototype.footer=function(d,b,x,C){var w="header meta-bottom",A="footerfont";this.rows.push({startGroup:"footer",klass:w}),addTextIf(this.rows,{marginLeft:x,text:d.left,font:A,klass:w,name:"footer"},C),addTextIf(this.rows,{marginLeft:x+b/2,text:d.center,font:A,klass:w,anchor:"middle",name:"footer"},C),addTextIf(this.rows,{marginLeft:x+b,text:d.right,font:A,klass:w,anchor:"end",name:"footer"},C)};var bottomText=BottomText$1,spacing$7=spacing_1;function setupSelection$1(d,b){if(d.rangeHighlight=rangeHighlight,d.dragging)for(var x=0;x0;A++){var S=d.selectables[A];if(d.getDim(S),S.dim.leftb&&S.dim.topx)w=A,C=0;else if(S.dim.topx){var $=Math.min(Math.abs(S.dim.left-b),Math.abs(S.dim.right-b));$b){var E=Math.min(Math.abs(S.dim.top-x),Math.abs(S.dim.bottom-x));EMath.abs(b-S.dim.right)?Math.abs(b-S.dim.right):Math.abs(b-S.dim.left),B=Math.abs(x-S.dim.top)>Math.abs(x-S.dim.bottom)?Math.abs(x-S.dim.bottom):Math.abs(x-S.dim.top),k=Math.sqrt(P*P+B*B);k=0&&C<=12?w:-1}function getBestMatchCoordinates(d,b,x){if(d.x<=b.offsetX&&d.x+d.width>=b.offsetX&&d.y<=b.offsetY&&d.y+d.height>=b.offsetY)return[b.offsetX,b.offsetY];var C=Math.abs(b.layerY/x-b.offsetY);return C<3?[b.offsetX,b.offsetY]:[b.layerX,b.layerY]}function getTarget(d){if(d.tagName==="svg")return d;for(var b=d.getAttribute("selectable");!b;)d.parentElement?(d=d.parentElement,d.tagName==="svg"?b=!0:b=d.getAttribute("selectable")):b=!0;return d}function getMousePosition(d,b){var x,C,w,A=findElementInHistory(d.selectables,getTarget(b.target));return A>=0?(w=getBestMatchCoordinates(d.selectables[A].svgEl.getBBox(),b,d.scale),x=w[0],C=w[1]):(w=getCoord(b),x=w[0],C=w[1],A=findElementByCoord(d,x,C)),{x,y:C,clickedOn:A}}function attachMissingTouchEventAttributes(d){if(!(!d||!d.target||!d.touches||d.touches.length<1)){var b=d.target.getBoundingClientRect(),x=d.touches[0].pageX-b.left,C=d.touches[0].pageY-b.top;d.touches[0].offsetX=x,d.touches[0].offsetY=C,d.touches[0].layerX=d.touches[0].pageX,d.touches[0].layerY=d.touches[0].pageY}}function mouseDown(d){var b=d;d.type==="touchstart"&&(attachMissingTouchEventAttributes(d),d.touches.length>0&&(b=d.touches[0]));var x=getMousePosition(this,b);x.clickedOn>=0&&(d.type==="touchstart"||d.button===0)&&this.selectables[x.clickedOn]&&(this.dragTarget=this.selectables[x.clickedOn],this.dragIndex=x.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:x.x,y:x.y},this.dragging&&this.dragTarget.isDraggable&&(addGlobalClass(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function mouseMove(d){var b=d;if(d.type==="touchmove"&&(attachMissingTouchEventAttributes(d),d.touches.length>0&&(b=d.touches[0])),this.lastTouchMove=d,!(!this.dragTarget||!this.dragging||!this.dragTarget.isDraggable||this.dragMechanism!=="mouse"||!this.dragMouseStart)){var x=getMousePosition(this,b),C=Math.round((x.y-this.dragMouseStart.y)/spacing$7.STEP);C!==this.dragYStep&&(this.dragYStep=C,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+C*spacing$7.STEP+")"))}}function mouseUp(d){var b=d;d.type==="touchend"&&this.lastTouchMove&&(attachMissingTouchEventAttributes(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(b=this.lastTouchMove.touches[0])),this.dragTarget&&(clearSelection.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),notifySelect.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,b),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),removeGlobalClass(this.renderer.svg,"abcjs-dragging-in-progress"))}function setSelection(d){d>=0&&d$&&dA&&(w=A),w<-A&&(w=-A),w}function calcDy(d,b){var x=d?spacing$6.STEP:-spacing$6.STEP;return b&&(x=x*.4),x}function calcXPos(d,b,x){var C=b.heads[d?0:b.heads.length-1],w=x.heads[d?0:x.heads.length-1],A=C.x;d&&(A+=C.w-.6);var S=w.x;return S+=d?w.w:.6,[A,S]}function calcYPos(d,b,x,C,w,A,S,$,E,P){var B=x-2,k=x-2,I=Math.round(C?Math.max(d+B,E+k):Math.min(d-B,$-k)),R=calcSlant(w,A,b,S),F=I+Math.floor(R/2),L=I+Math.floor(-R/2);return P||(C&&I<6||!C&&I>6)&&(F=6,L=6),[F,L]}function createStems(d,b,x,C,w){for(var A=0;A0&&E.abcelem.beambr&&E.abcelem.beambr<=L+1){S[L].split||(S[L].split=[S[L].x]);var z=calcXPos(b,d[$-1],E);S[L].split[S[L].split.length-1]>=z[0]&&(z[0]+=E.w),S[L].split.push(z[0]),S[L].split.push(z[1])}}for(var V=S.length-1;V>=0;V--)if($===d.length-1||getDurlog(d[$+1].abcelem.duration)>-V-4){var U=B,Q=k+I*(V+1);S[V].single&&(U=$===0?B+5:B-5,Q=getBarYAt$2(x.startX,x.startY,x.endX,x.endY,U)+I*(V+1));var W={startX:S[V].x,endX:U,startY:S[V].y,endY:Q,dy:w};if(S[V].split!==void 0){var G=S[V].split;W.endX<=G[G.length-1]&&(G[G.length-1]-=E.w),G.push(W.endX),W.split=S[V].split}A.push(W),S=S.slice(0,V)}}}return A}var beam$1=layoutBeam$1,getBarYAt$1=getBarYAt_1;function layoutTriplet$1(d){if(d.anchor1&&d.anchor2){d.hasBeam=!!d.anchor1.parent.beam&&d.anchor1.parent.beam===d.anchor2.parent.beam;var b=d.anchor1.parent.beam;if(d.hasBeam&&(b.elems[0]!==d.anchor1.parent||b.elems[b.elems.length-1]!==d.anchor2.parent)&&(d.hasBeam=!1),d.hasBeam){var x=isAbove(b)?d.anchor1.x+d.anchor1.w:d.anchor1.x;d.yTextPos=heightAtMidpoint(x,d.anchor2.x,b),d.yTextPos+=isAbove(b)?3:-2,d.xTextPos=xAtMidpoint(x,d.anchor2.x),d.top=d.yTextPos+1,d.bottom=d.yTextPos-2,isAbove(b)&&(d.endingHeightAbove=4)}else{d.startNote=Math.max(d.anchor1.parent.top,9)+4,d.endNote=Math.max(d.anchor2.parent.top,9)+4,d.anchor1.parent.type==="rest"&&d.anchor2.parent.type!=="rest"?d.startNote=d.endNote:d.anchor2.parent.type==="rest"&&d.anchor1.parent.type!=="rest"&&(d.endNote=d.startNote);for(var C=0,w=0;wd.startNote||C>d.endNote)&&(d.startNote=C,d.endNote=C),d.flatBeams&&(d.startNote=Math.max(d.startNote,d.endNote),d.endNote=Math.max(d.startNote,d.endNote)),d.yTextPos=d.startNote+(d.endNote-d.startNote)/2,d.xTextPos=d.anchor1.x+(d.anchor2.x+d.anchor2.w-d.anchor1.x)/2,d.top=d.yTextPos+1}}delete d.middleElems,delete d.flatBeams}function isAbove(d){return d.stemsUp}function heightAtMidpoint(d,b,x){if(x.beams.length===0)return 0;x=x.beams[0];var C=d+(b-d)/2;return getBarYAt$1(x.startX,x.startY,x.endX,x.endY,C)}function xAtMidpoint(d,b){return d+(b-d)/2}var triplet$1=layoutTriplet$1,layoutBeam=beam$1,getBarYAt=getBarYAt_1,layoutTriplet=triplet$1,layoutVoice$1=function(d){for(var b=0;b0&&b.putChordInLane(C),d[C]=x.right;return}}d.push(x.right),b.putChordInLane(d.length-1)}}function setLaneForChord(d){var b=[0],x=[0],C,w,A;for(C=0;C=0;w--)A=d[C].children[w],A.chordHeightBelow&&placeInLane(x,A)}return(b.length>1||x.length>1)&&setLane(d,b.length),{above:b.length,below:x.length}}function numAnnotationsBelow(d){for(var b=0,x=0;x=0&&(w.originalTop=w.top,w.originalBottom=w.bottom),incTop(w,A,"lyricHeightAbove"),incTop(w,A,"chordHeightAbove",w.specialY.chordLines.above),w.specialY.endingHeightAbove&&(w.specialY.chordHeightAbove?w.top+=2:w.top+=w.specialY.endingHeightAbove+margin,A.endingHeightAbove=w.top),w.specialY.dynamicHeightAbove&&w.specialY.volumeHeightAbove?(w.top+=Math.max(w.specialY.dynamicHeightAbove,w.specialY.volumeHeightAbove)+margin,A.dynamicHeightAbove=w.top,A.volumeHeightAbove=w.top):(incTop(w,A,"dynamicHeightAbove"),incTop(w,A,"volumeHeightAbove")),incTop(w,A,"partHeightAbove"),incTop(w,A,"tempoHeightAbove"),w.specialY.lyricHeightBelow&&(w.specialY.lyricHeightBelow+=d.spacing.vocal/spacing$5.STEP,A.lyricHeightBelow=w.bottom,w.bottom-=w.specialY.lyricHeightBelow+margin),w.specialY.chordHeightBelow){A.chordHeightBelow=w.bottom;var S=w.specialY.chordHeightBelow;w.specialY.chordLines.below&&(S*=w.specialY.chordLines.below),w.bottom-=S+margin}w.specialY.volumeHeightBelow&&w.specialY.dynamicHeightBelow?(A.volumeHeightBelow=w.bottom,A.dynamicHeightBelow=w.bottom,w.bottom-=Math.max(w.specialY.volumeHeightBelow,w.specialY.dynamicHeightBelow)+margin):w.specialY.volumeHeightBelow?(A.volumeHeightBelow=w.bottom,w.bottom-=w.specialY.volumeHeightBelow+margin):w.specialY.dynamicHeightBelow&&(A.dynamicHeightBelow=w.bottom,w.bottom-=w.specialY.dynamicHeightBelow+margin),d.showDebug&&d.showDebug.indexOf("box")>=0&&(w.positionY=A);for(var $=0;$0&&(w.top+=I)}x=2-w.bottom}},margin=1;function incTop(d,b,x,C){if(d.specialY[x]){var w=d.specialY[x];C&&(w*=C),d.top+=w+margin,b[x]=d.top}}function setUpperAndLowerVoiceElements(d,b,x){var C,w;for(C=0;C=d.children.length};VoiceElement.getNextX=function(d){return Math.max(d.minx,d.nextx)};VoiceElement.getSpacingUnits=function(d){return Math.sqrt(d.spacingduration*8)};VoiceElement.layoutOneItem=function(d,b,x,C,w){var A=x.children[x.i];if(!A)return 0;var S=d-x.minx,$=x.durationindex+A.duration>0?C:0;if(A.abcelem.el_type==="note"&&!A.abcelem.rest&&x.voicenumber!==0&&w){var E=w.children[w.i],P=E&&(A.abcelem.maxpitch<=E.abcelem.maxpitch+1&&A.abcelem.maxpitch>=E.abcelem.minpitch-1||A.abcelem.minpitch<=E.abcelem.maxpitch+1&&A.abcelem.minpitch>=E.abcelem.minpitch-1);if(P&&A.abcelem.minpitch===E.abcelem.minpitch&&A.abcelem.maxpitch===E.abcelem.maxpitch&&E.heads&&E.heads.length>0&&A.heads&&A.heads.length>0&&E.heads[0].c===A.heads[0].c&&(P=!1),P){var B=E.heads&&E.heads.length>0?E.heads[0].realWidth:E.fixed.w;A.adjustedWidth||(A.adjustedWidth=B+A.w),A.w=A.adjustedWidth;for(var k=0;k0){var w=C.children.length-1,A=C.children[w];if(A.abcelem.el_type==="bar"){var S=A.children[0].x;S>b?b=S:A.children[0].x=b}}}}var layoutStaffGroup$1=function(d,b,x,C,w){var A=1e-7,S=0,$=1e3,E=w;C.startx=E;var P,B=0;for(x&&console.log("init layout",d),P=0;PA?R.push(C.voices[P]):I.push(C.voices[P])}k=0;var L=0;for(P=0;PE&&(E=layoutVoiceElements.getNextX(I[P]),k=layoutVoiceElements.getSpacingUnits(I[P]),L=I[P].spacingduration);S+=k,$=Math.min($,k),x&&console.log("currentduration: ",B,S,$);var z=void 0;for(P=0;P0){E=Q;for(var G=0;GE&&(E=layoutVoiceElements.getNextX(C.voices[P]),k=layoutVoiceElements.getSpacingUnits(C.voices[P]));return checkLastBarX(C.voices),S+=k,C.setWidth(E),{spacingUnits:S,minSpace:$}};function finished(d){for(var b=0;b0?0:5e-7)}function isSameStaff(d,b){return!d||!d.staff||!d.staff.voices||d.staff.voices.length===0||!b||!b.staff||!b.staff.voices||b.staff.voices.length===0?!1:d.staff.voices[0]===b.staff.voices[0]}var staffGroup$1=layoutStaffGroup$1;function getLeftEdgeOfStaff$1(d,b,x,C,w){var A=d.padding.left,S=0,$,E;for($=0;$S&&(S=A.staffGroup.w));for(w=0;w0?(w=(x-k)/A,w*S>50&&(w=50/S),w):null}function centerWholeRests(d){for(var b=0;b0&&b.push(d),d==="tab-number")return b.join(" ");if(d==="text instrument-name")return"abcjs-text abcjs-instrument-name";if(this.lineNumber!==null&&b.push("l"+this.lineNumber),this.measureNumber!==null&&b.push("m"+this.measureNumber),this.measureNumber!==null&&b.push("mm"+this.measureTotal()),this.voiceNumber!==null&&b.push("v"+this.voiceNumber),d&&(d.indexOf("note")>=0||d.indexOf("rest")>=0||d.indexOf("lyric")>=0)&&this.noteNumber!==null&&b.push("n"+this.noteNumber),b.length>0){b=b.join(" "),b=b.split(" ");for(var x=0;x0&&(b[x]="abcjs-"+b[x])}return b.join(" ")};var classes$2=Classes$1,GetFontAndAttr$1=function d(b,x){this.formatting=b,this.classes=x};GetFontAndAttr$1.prototype.updateFonts=function(d){d.gchordfont&&(this.formatting.gchordfont=d.gchordfont),d.tripletfont&&(this.formatting.tripletfont=d.tripletfont),d.annotationfont&&(this.formatting.annotationfont=d.annotationfont),d.vocalfont&&(this.formatting.vocalfont=d.vocalfont)};GetFontAndAttr$1.prototype.calc=function(d,b){var x;typeof d=="string"?(x=this.formatting[d],x?x={face:x.face,size:Math.round(x.size*4/3),decoration:x.decoration,style:x.style,weight:x.weight,box:x.box}:x={face:"Arial",size:Math.round(12*4/3),decoration:"underline",style:"normal",weight:"normal"}):x={face:d.face,size:Math.round(d.size*4/3),decoration:d.decoration,style:d.style,weight:d.weight,box:d.box};var C=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;x.padding=x.size*C;var w={"font-size":x.size,"font-style":x.style,"font-family":x.face,"font-weight":x.weight,"text-decoration":x.decoration,class:this.classes.generate(b)};return{font:x,attr:w}};var getFontAndAttr=GetFontAndAttr$1,GetTextSize$1=function d(b,x){this.getFontAndAttr=b,this.svg=x};GetTextSize$1.prototype.updateFonts=function(d){this.getFontAndAttr.updateFonts(d)};GetTextSize$1.prototype.attr=function(d,b){return this.getFontAndAttr.calc(d,b)};GetTextSize$1.prototype.calc=function(d,b,x,C){var w;typeof b=="string"?w=this.attr(b,x):w={font:{face:b.face,size:b.size,decoration:b.decoration,style:b.style,weight:b.weight},attr:{"font-size":b.size,"font-style":b.style,"font-family":b.face,"font-weight":b.weight,"text-decoration":b.decoration,class:this.getFontAndAttr.classes.generate(x)}};var A=this.svg.getTextSize(d,w.attr,C);return w.font.box?{height:A.height+w.font.padding*4,width:A.width+w.font.padding*4}:A};GetTextSize$1.prototype.baselineToCenter=function(d,b,x,C,w){var A=this.calc(d,b,x).height,S=this.attr(b,x).font.size;return A*.5+(w-C-2)*S};var getTextSize=GetTextSize$1,sprintf$7=function(){for(var d=0,b,x=arguments[d++],C=[],w,A,S,$;x;){if(w=/^[^\x25]+/.exec(x))C.push(w[0]);else if(w=/^\x25{2}/.exec(x))C.push("%");else if(w=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(x)){if((b=arguments[w[1]||d++])==null||b==null)throw"Too few arguments.";if(/[^s]/.test(w[7])&&typeof b!="number")throw"Expecting number but found "+typeof b;switch(w[7]){case"b":b=b.toString(2);break;case"c":b=String.fromCharCode(b);break;case"d":b=parseInt(b);break;case"e":b=w[6]?b.toExponential(w[6]):b.toExponential();break;case"f":b=w[6]?parseFloat(b).toFixed(w[6]):parseFloat(b);break;case"o":b=b.toString(8);break;case"s":b=(b=String(b))&&w[6]?b.substring(0,w[6]):b;break;case"u":b=Math.abs(b);break;case"x":b=b.toString(16);break;case"X":b=b.toString(16).toUpperCase();break}b=/[def]/.test(w[7])&&w[2]&&b>0?"+"+b:b,S=w[3]?w[3]=="0"?"0":w[3][1]:" ",$=w[5]-String(b).length,A=w[5]?str_repeat(S,$):"",C.push(w[4]?b+A:A+b)}else throw"Huh ?!";x=x.substring(w[0].length)}return C.join("")},sprintf_1=sprintf$7;function roundNumber$a(d){return parseFloat(d.toFixed(2))}var roundNumber_1=roundNumber$a,roundNumber$9=roundNumber_1;function renderText$8(d,b,x){var C=b.y;if(b.lane){var w=b.dim.font.size*.25;C+=(b.dim.font.size+w)*b.lane}var A;b.dim?(A=b.dim,A.attr.class=b.klass):A=d.controller.getFontAndAttr.calc(b.type,b.klass),b.anchor&&(A.attr["text-anchor"]=b.anchor),A.attr.x=b.x,A.attr.y=C,b.centerVertically||(A.attr.y+=A.font.size),b.type==="debugfont"&&(console.log("Debug msg: "+b.text),A.attr.stroke="#ff0000"),b.cursor&&(A.attr.cursor=b.cursor);var S=b.text.replace(/\n\n/g,"\n \n");S=S.replace(/^\n/," \n"),A.font.box&&(x||d.paper.openGroup({klass:A.attr.class,fill:d.foregroundColor,"data-name":b.name}),A.attr["text-anchor"]==="end"?A.attr.x-=A.font.padding:A.attr["text-anchor"]==="start"&&(A.attr.x+=A.font.padding),A.attr.y+=A.font.padding,delete A.attr.class),b.noClass&&delete A.attr.class,A.attr.x=roundNumber$9(A.attr.x),A.attr.y=roundNumber$9(A.attr.y),b.name&&(A.attr["data-name"]=b.name);var $=d.paper.text(S,A.attr);if(A.font.box){var E=$.getBBox(),P=0;A.attr["text-anchor"]==="middle"?P=E.width/2+A.font.padding:A.attr["text-anchor"]==="end"&&(P=E.width+A.font.padding*2);var B=0;b.centerVertically&&(B=E.height-A.font.padding),d.paper.rect({"data-name":"box",x:Math.round(b.x-P),y:Math.round(C-B),width:Math.round(E.width+A.font.padding*2),height:Math.round(E.height+A.font.padding*2)}),x||($=d.paper.closeGroup())}return $}var text=renderText$8,sprintf$6=sprintf_1,spacing$4=spacing_1,renderText$7=text;function drawBrace$1(d,b,x){var C=b.startVoice.staff.absoluteY-spacing$4.STEP*10;return b.endVoice&&b.endVoice.staff?b.endY=b.endVoice.staff.absoluteY-spacing$4.STEP*2:b.lastContinuedVoice&&b.lastContinuedVoice.staff?b.endY=b.lastContinuedVoice.staff.absoluteY-spacing$4.STEP*2:b.endY=b.startVoice.staff.absoluteY-spacing$4.STEP*2,draw$3(d,b.x,C,b.endY,b.type,b.header,x)}function straightPath(d,b,x,C,w){b+=spacing$4.STEP;var A=spacing$4.STEP*.75,S=spacing$4.STEP*.75,$=C-x,E=sprintf$6("M %f %f l %f %f l %f %f l %f %f z",b,x-S,0,$+S*2,A,0,0,-($+S*2)),P=spacing$4.STEP*2,B=spacing$4.STEP;return E+=sprintf$6("M %f %f q %f %f %f %f q %f %f %f %f z",b+A,x-S,P*.6,B*.2,P,-B,-P*.1,B*.3,-P,B+spacing$4.STEP),E+=sprintf$6("M %f %f q %f %f %f %f q %f %f %f %f z",b+A,x+S+$,P*.6,-B*.2,P,B,-P*.1,-B*.3,-P,-B-spacing$4.STEP),d.paper.path({path:E,stroke:d.foregroundColor,fill:d.foregroundColor,class:d.controller.classes.generate(w),"data-name":w})}function curvyPath(d,b,x,C,w){var A=C-x,S=curve(b,x,[7.5,-8,21,0,18.5,-10.5,7.5],[0,A/5.5,A/3.14,A/2,A/2.93,A/4.88,0]);return S+=curve(b,x,[0,17.5,-7.5,6.6,-5,20,0],[A/2,A/1.46,A/1.22,A,A/1.19,A/1.42,A/2]),d.paper.path({path:S,stroke:d.foregroundColor,fill:d.foregroundColor,class:d.controller.classes.generate(w),"data-name":w})}function curve(d,b,x,C){return sprintf$6("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",d+x[0],b+C[0],d+x[1],b+C[1],d+x[2],b+C[2],d+x[3],b+C[3],d+x[4],b+C[4],d+x[5],b+C[5],d+x[6],b+C[6])}var draw$3=function(d,b,x,C,w,A,S){var $;if(A){d.paper.openGroup({klass:d.controller.classes.generate("staff-extra voice-name"),"data-name":w});var E=x+(C-x)/2;E=E-d.controller.getTextSize.baselineToCenter(A,"voicefont","staff-extra voice-name",0,1),renderText$7(d,{x:d.padding.left,y:E,text:A,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return w==="brace"?$=curvyPath(d,b,x,C,w):w==="bracket"&&($=straightPath(d,b,x,C,w)),A&&($=d.paper.closeGroup()),S.wrapSvgEl({el_type:w,startChar:-1,endChar:-1},$),$},brace=drawBrace$1;function printPath$5(d,b,x){var C=d.paper.path(b);return C}var printPath_1=printPath$5,sprintf$5=sprintf_1,printPath$4=printPath_1,roundNumber$8=roundNumber_1;function drawGlissando$1(d,b,x){(!b.anchor1||!b.anchor2||!b.anchor1.heads||!b.anchor2.heads||b.anchor1.heads.length===0||b.anchor2.heads.length===0)&&window.console.error("Glissando Element not set.");var C=4,w=d.calcY(b.anchor1.heads[0].pitch),A=d.calcY(b.anchor2.heads[0].pitch),S=b.anchor1.x+b.anchor1.w/2,$=b.anchor2.x+b.anchor2.w/2,E=lineLength(S,w,$,A),P=b.anchor1.w/2+C,B=b.anchor2.w/2+C,k=slope(S,w,$,A),I=getY$1(w,k,P);getY$1(A,k,-B);var R=numSquigglies(E-P-B),F=drawSquiggly(d,S+P,I,R,k);return x.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},F),[F]}function lineLength(d,b,x,C){var w=x-d,A=C-b;return Math.sqrt(w*w+A*A)}function slope(d,b,x,C){return(C-b)/(x-d)}function getY$1(d,b,x){return roundNumber$8(d+x*b)}function numSquigglies(d){var b=5;return Math.max(2,Math.floor((d-b*2)/6))}var leftStart=[[3.5,-4.8]],right=[[1.5,-1],[.3,-.3],[-3.5,3.8]],leftEnd=[[-1.5,2]],top=[[3,4],[3,-4]],bottom=[[-3,4],[-3,-4]];function segment(d,b){for(var x="",C=0;C1&&C.indexOf(".")<0){var $=elementGroup$2.isInGroup()?"":w.klass;d.paper.openGroup({"data-name":w.name,klass:$});for(var E=0,P=0;P0?b.linewidth+d.lineThickness:b.linewidth-d.lineThickness;b.graphelem=printStem$1(d,b.x,E,C,d.calcY(b.pitch2),"abcjs-stem","stem");break;case"ledger":b.graphelem=printStaffLine$1(d,b.x,b.x+b.w,b.pitch,"abcjs-ledger","ledger",.35+d.lineThickness);break}return b.scalex!==1&&b.graphelem&&scaleExistingElem(d.paper,b.graphelem,b.scalex,b.scaley,b.x,C),b.graphelem}function scaleExistingElem(d,b,x,C,w,A){d.setAttributeOnElement(b,{style:"transform:scale("+x+","+C+");transform-origin:"+w+"px "+A+"px;"})}var relative=drawRelativeElement$2,drawRelativeElement$1=relative,renderText$2=text;function drawTempo$1(d,b){var x=b.x;b.pitch===void 0&&window.console.error("Tempo Element y-coordinate not set."),b.tempo.el_type="tempo";var C=d.calcY(b.pitch)+2,w,A;if(b.tempo.preString){w=renderText$2(d,{x,y:C,text:b.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,"dominant-baseline":"ideographic",name:"pre"},!0),A=d.controller.getTextSize.calc(b.tempo.preString,"tempofont","tempo",w);var S=A.width,$=S/b.tempo.preString.length;x+=S+$}if(b.note){b.note.setX(x);for(var E=0;E0&&b.children[0].type==="TempoElement";b.elemset=[],elementGroup.beginGroup(d.paper,d.controller);for(var S=0;S0?B.classList[0]+" ":"";B.setAttribute("class",k+b.overrideClasses)}if(A)b.startChar=b.abcelem.startChar,b.endChar=b.abcelem.endChar,C.add(b,B,!1,w);else{b.elemset.push(B);var I=!1;(b.type==="note"||b.type==="tabNumber")&&(I=!0),C.add(b,B,I,w)}}else b.elemset.length>0&&C.add(b,b.elemset[0],b.type==="note",w);if(b.klass&&setClass(b.elemset,"mark","","#00ff00"),b.hint&&setClass(b.elemset,"abcjs-hint","",null),b.abcelem.abselem=b,b.heads&&b.heads.length>0){b.notePositions=[];for(var R=0;R=0;B--){var k=(B+1)*$;P=d.calcY(k),E===0&&(E=P),printStaffLine(d,b,x,k,S,null,A+d.lineThickness),S=void 0}return d.paper.closeGroup(),[E,P]}var staff=printStaff$1;function printDebugBox$1(d,b,x){var C=d.paper.rectBeneath(b);return x&&d.paper.text(x,{x:0,y:b.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),C}var debugBox=printDebugBox$1;function drawSeparator$1(d,b){var x="rgba(0,0,0,255)",C="rgba(0,0,0,0)",w=Math.round(d.y),A=d.controller.width,S=(A-b)/2,$=S+b,E="M "+S+" "+w+" L "+$+" "+w+" L "+$+" "+(w+1)+" L "+S+" "+(w+1)+" L "+S+" "+w+" z";d.paper.pathToBack({path:E,stroke:C,fill:x,class:d.controller.classes.generate("defined-text")})}var separator=drawSeparator$1,drawSeparator=separator,renderText=text;function nonMusic$2(d,b,x){for(var C=0;C=0&&$.voices&&boxAllElements(d,b.voices,$.voices),d.showDebug.indexOf("grid")>=0&&(d.paper.dottedLine({x1:d.padding.left,x2:d.padding.left+d.controller.width,y1:A,y2:A,stroke:"#0000ff"}),printDebugBox(d,{x:d.padding.left,y:d.calcY($.originalTop),width:d.controller.width,height:d.calcY($.originalBottom)-d.calcY($.originalTop),fill:d.foregroundColor,stroke:d.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),w=0,W($,"chordHeightAbove"),W($,"chordHeightBelow"),W($,"dynamicHeightAbove"),W($,"dynamicHeightBelow"),W($,"endingHeightAbove"),W($,"lyricHeightAbove"),W($,"lyricHeightBelow"),W($,"partHeightAbove"),W($,"tempoHeightAbove"),W($,"volumeHeightAbove"),W($,"volumeHeightBelow"))),d.moveY(spacing$2.STEP,-$.bottom),d.showDebug&&d.showDebug.indexOf("grid")>=0&&d.paper.dottedLine({x1:d.padding.left,x2:d.padding.left+d.controller.width,y1:d.y,y2:d.y,stroke:"#0000aa"})}for(var E,P,B=2,k=0,I=0;I1&&(E=b.staffs[0].topLine,P=b.staffs[Q-1].bottomLine,printStem(d,b.startx,.6,E,P,null)),d.y=A;function W(G,q){var K=["rgb(207,27,36)","rgb(168,214,80)","rgb(110,161,224)","rgb(191,119,218)","rgb(195,30,151)","rgb(31,170,177)","rgb(220,166,142)"];if(G.positionY&&G.positionY[q]){var X=G.specialY[q]*spacing$2.STEP;q==="chordHeightAbove"&&G.specialY.chordLines&&G.specialY.chordLines.above&&(X*=G.specialY.chordLines.above),q==="chordHeightBelow"&&G.specialY.chordLines&&G.specialY.chordLines.below&&(X*=G.specialY.chordLines.below),printDebugBox(d,{x:d.padding.left,y:d.calcY(G.positionY[q]),width:d.controller.width,height:X,fill:K[w],stroke:K[w],"fill-opacity":.4,"stroke-opacity":.4},q.substr(0,4)),w+=1,w>6&&(w=0)}}}function printBrace(d,b,x,C,w){if(x)for(var A=0;A=0};Selectables$1.prototype.wrapSvgEl=function(d,b){var x={tuneNumber:this.tuneNumber,abcelem:d,elemset:[b],highlight,unhighlight};this.add(x,b,!1)};var selectables=Selectables$1,drawStaffGroup=staffGroup,setPaperSize=setPaperSize_1,nonMusic=nonMusic_1,spacing$1=spacing_1,Selectables=selectables;function draw$1(d,b,x,C,w,A,S,$,E,P){var B=new Selectables(d.paper,$,E);d.paper.openGroup(),d.moveY(d.padding.top),nonMusic(d,x.topText,B),d.paper.closeGroup(),d.moveY(d.spacing.music);for(var k=[],I=0;I=1&&addStaffPadding(d,d.spacing.staffSeparation,k[k.length-1],R.staffGroup);var F=engraveStaffLine(d,R.staffGroup,B);F.line=P+I,k.push(F),d.paper.closeGroup()}else R.nonMusic&&(d.paper.openGroup(),nonMusic(d,R.nonMusic,B),d.paper.closeGroup())}return b.reset(),x.bottomText&&x.bottomText.rows&&x.bottomText.rows.length>0&&(d.paper.openGroup(),d.moveY(24),nonMusic(d,x.bottomText,B),d.paper.closeGroup()),setPaperSize(d,w,S,A),{staffgroups:k,selectables:B.getElements()}}function engraveStaffLine(d,b,x,C){drawStaffGroup(d,b,x);var w=b.height*spacing$1.STEP;return d.y+=w,b}function addStaffPadding(d,b,x,C){var w=x.staffs[x.staffs.length-1],A=-(w.bottom-2),S=C.staffs[0].top-10,$=S+A,E=$*spacing$1.STEP;E.1||(this.scale=void 0),b.staffwidth?(this.staffwidthScreen=b.staffwidth,this.staffwidthPrint=b.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],b.clickListener&&this.addSelectListener(b.clickListener),this.renderer=new Renderer(d),this.renderer.setPaddingOverride(b),b.showDebug&&(this.renderer.showDebug=b.showDebug),b.jazzchords&&(this.jazzchords=b.jazzchords),b.germanAlphabet&&(this.germanAlphabet=b.germanAlphabet),b.lineThickness&&(this.lineThickness=b.lineThickness),this.renderer.controller=this,this.renderer.foregroundColor=b.foregroundColor?b.foregroundColor:"currentColor",b.ariaLabel!==void 0&&(this.renderer.ariaLabel=b.ariaLabel),this.renderer.minPadding=b.minPadding?b.minPadding:0,this.reset()};EngraverController$1.prototype.reset=function(){this.selected=[],this.staffgroups=[],this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset(),this.dragTarget=null,this.dragIndex=-1,this.dragMouseStart={x:-1,y:-1},this.dragYStep=0,this.lineThickness&&this.renderer.setLineThickness(this.lineThickness)};EngraverController$1.prototype.engraveABC=function(d,b,x){d[0]===void 0&&(d=[d]),this.reset();for(var C=0;C0)for(var S=A.staffGroup.voices[0],$=!1,E=0,P=0;P g"),E=0,P=[],B=0;B<$.length;B++){var k=$[B],I=k.getBBox(),R=I.y-E,F=I.height+R,L=document.createElement("div"),z="overflow: hidden;";C!=="resize"&&(z+="height:"+F+"px;"),L.setAttribute("style",z);var V=duplicateSvg(w),U='Sheet Music for "'+x+'" section '+(B+1);V.setAttribute("aria-label",U),C!=="resize"&&V.setAttribute("height",F),C==="resize"&&(V.style.position="");var Q=d.firefox112?F+1:F;V.setAttribute("viewBox","0 "+E+" "+S+" "+Q),V.appendChild(A.cloneNode(!0));var W=document.createElement("title");W.innerText=U,V.appendChild(W),V.appendChild(k),L.appendChild(V),P.push(V),b.appendChild(L),E=I.y+I.height}return b.removeChild(w),P}function duplicateSvg(d){for(var b="http://www.w3.org/2000/svg",x=document.createElementNS(b,"svg"),C=0;C',d.style.overflowX="hidden",d.style.overflowY="auto",d=d.children[0]):d.innerHTML="";var A=new EngraverController(d,x);if(A.engraveABC(b,C,w),b.engraver=A,x.viewportVertical||x.viewportHorizontal){var S=d.parentNode;S.style.width=d.style.width}}var renderAbc$1=function(d,b,x,C,w){var A={},S;if(x){for(S in x)x.hasOwnProperty(S)&&(A[S]=x[S]);A.warnings_id&&A.tablature&&(A.tablature.warning_id=A.warnings_id)}if(C)for(S in C)C.hasOwnProperty(S)&&(S==="listener"?C[S].highlight&&(A.clickListener=C[S].highlight):A[S]=C[S]);if(w)for(S in w)w.hasOwnProperty(S)&&(A[S]=w[S]);function $(E,P,B,k){var I=!1;return E==="*"&&(I=!0,E=document.createElement("div"),E.setAttribute("style","visibility: hidden;"),document.body.appendChild(E)),A.afterParsing&&A.afterParsing(P,B,k),!I&&A.wrap&&A.staffwidth?(P=doLineWrapping(E,P,B,k,A),P):(renderOne(E,P,A,B,0),I&&E.parentNode.removeChild(E),null)}return tunebook$1.renderEngine($,d,b,A)};function doLineWrapping(d,b,x,C,w){var A=new EngraverController(d,w),S=A.getMeasureWidths(b),$=wrap$1.calcLineWraps(b,S,w);if($.reParse){var E=new Parse;E.parse(C,$.revisedParams),b=E.getTune();var P=E.getWarnings();P&&(b.warnings=P)}return renderOne(d,b,$.revisedParams,x,0),b.explanation=$.explanation,b}var abc_tunebook_svg=renderAbc$1,soundsCache$3={},soundsCache_1=soundsCache$3,soundsCache$2=soundsCache_1,getNote$1=function(d,b,x,C){soundsCache$2[b]||(soundsCache$2[b]={});var w=soundsCache$2[b];return w[x]||(w[x]=new Promise(function(A,S){var $=new XMLHttpRequest;let E=d+b+"-mp3/"+x+".mp3";$.open("GET",E,!0),$.responseType="arraybuffer",$.onload=function(){if($.status!==200){S(Error("Can't load sound at "+E+" status="+$.status));return}var P=function(k){A({instrument:b,name:x,status:"loaded",audioBuffer:k})},B=C.decodeAudioData($.response,P,function(){S(Error("Can't decode sound at "+E))});B&&typeof B.catch=="function"&&B.catch(S)},$.onerror=function(){S(Error("Can't load sound at "+E))},$.send()}).catch(A=>{throw console.error("Didn't load note",b,x,":",A.message),A})),w[x]},loadNote=getNote$1,instrumentIndexToName$3=["acoustic_grand_piano","bright_acoustic_piano","electric_grand_piano","honkytonk_piano","electric_piano_1","electric_piano_2","harpsichord","clavinet","celesta","glockenspiel","music_box","vibraphone","marimba","xylophone","tubular_bells","dulcimer","drawbar_organ","percussive_organ","rock_organ","church_organ","reed_organ","accordion","harmonica","tango_accordion","acoustic_guitar_nylon","acoustic_guitar_steel","electric_guitar_jazz","electric_guitar_clean","electric_guitar_muted","overdriven_guitar","distortion_guitar","guitar_harmonics","acoustic_bass","electric_bass_finger","electric_bass_pick","fretless_bass","slap_bass_1","slap_bass_2","synth_bass_1","synth_bass_2","violin","viola","cello","contrabass","tremolo_strings","pizzicato_strings","orchestral_harp","timpani","string_ensemble_1","string_ensemble_2","synth_strings_1","synth_strings_2","choir_aahs","voice_oohs","synth_choir","orchestra_hit","trumpet","trombone","tuba","muted_trumpet","french_horn","brass_section","synth_brass_1","synth_brass_2","soprano_sax","alto_sax","tenor_sax","baritone_sax","oboe","english_horn","bassoon","clarinet","piccolo","flute","recorder","pan_flute","blown_bottle","shakuhachi","whistle","ocarina","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass_lead","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","sitar","banjo","shamisen","koto","kalimba","bagpipe","fiddle","shanai","tinkle_bell","agogo","steel_drums","woodblock","taiko_drum","melodic_tom","synth_drum","reverse_cymbal","guitar_fret_noise","breath_noise","seashore","bird_tweet","telephone_ring","helicopter","applause","gunshot","percussion"],instrumentIndexToName_1=instrumentIndexToName$3,instrumentIndexToName$2=instrumentIndexToName_1,createNoteMap$1=function(d){for(var b=[],x=0;x0){var $=S.gap?S.gap:0,E=S.duration;$=Math.min($,E*2/3);var P={pitch:S.pitch,instrument:C,start:Math.round(S.start*1e6)/1e6,end:Math.round((S.start+E-$)*1e6)/1e6,volume:S.volume};S.startChar&&(P.startChar=S.startChar),S.endChar&&(P.endChar=S.endChar),S.style&&(P.style=S.style),S.cents&&(P.cents=S.cents),b[A].push(P)}break;case"program":C=instrumentIndexToName$2[S.instrument];break;case"text":break;default:console.log("Unhandled midi event",S)}})}),b},createNoteMap_1=createNoteMap$1;function registerAudioContext$4(d){if(d)window.abcjsAudioContext=d;else if(!window.abcjsAudioContext){var b=window.AudioContext||window.webkitAudioContext;if(b)window.abcjsAudioContext=new b;else return!1}return window.abcjsAudioContext.state!=="suspended"}var registerAudioContext_1=registerAudioContext$4,registerAudioContext$3=registerAudioContext_1;function activeAudioContext$6(){return window.abcjsAudioContext||registerAudioContext$3(),window.abcjsAudioContext}var activeAudioContext_1=activeAudioContext$6,activeAudioContext$5=activeAudioContext_1;function supportsAudio$4(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var d=activeAudioContext$5();if(d)return d.resume!==void 0}var supportsAudio_1=supportsAudio$4,pitchToNoteName$3={21:"A0",22:"Bb0",23:"B0",24:"C1",25:"Db1",26:"D1",27:"Eb1",28:"E1",29:"F1",30:"Gb1",31:"G1",32:"Ab1",33:"A1",34:"Bb1",35:"B1",36:"C2",37:"Db2",38:"D2",39:"Eb2",40:"E2",41:"F2",42:"Gb2",43:"G2",44:"Ab2",45:"A2",46:"Bb2",47:"B2",48:"C3",49:"Db3",50:"D3",51:"Eb3",52:"E3",53:"F3",54:"Gb3",55:"G3",56:"Ab3",57:"A3",58:"Bb3",59:"B3",60:"C4",61:"Db4",62:"D4",63:"Eb4",64:"E4",65:"F4",66:"Gb4",67:"G4",68:"Ab4",69:"A4",70:"Bb4",71:"B4",72:"C5",73:"Db5",74:"D5",75:"Eb5",76:"E5",77:"F5",78:"Gb5",79:"G5",80:"Ab5",81:"A5",82:"Bb5",83:"B5",84:"C6",85:"Db6",86:"D6",87:"Eb6",88:"E6",89:"F6",90:"Gb6",91:"G6",92:"Ab6",93:"A6",94:"Bb6",95:"B6",96:"C7",97:"Db7",98:"D7",99:"Eb7",100:"E7",101:"F7",102:"Gb7",103:"G7",104:"Ab7",105:"A7",106:"Bb7",107:"B7",108:"C8",109:"Db8",110:"D8",111:"Eb8",112:"E8",113:"F8",114:"Gb8",115:"G8",116:"Ab8",117:"A8",118:"Bb8",119:"B8",120:"C9",121:"Db9"},pitchToNoteName_1=pitchToNoteName$3,downloadBuffer$1=function(d){return window.URL.createObjectURL(bufferToWave(d.audioBuffers))};function bufferToWave(d){var b=d[0],x=b.numberOfChannels,C=b.length*x*2+44,w=new ArrayBuffer(C),A=new DataView(w),S=[],$,E,P=0,B=0;for(I(1179011410),I(C-8),I(1163280727),I(544501094),I(16),k(1),k(x),I(b.sampleRate),I(b.sampleRate*2*x),k(x*2),k(16),I(1635017060),I(C-B-4),$=0;$0){if(d.debugCallback&&d.debugCallback("pending "+JSON.stringify(B)),A?A=A*2:A=50,A<9e4)return new Promise(function(V,U){setTimeout(function(){var Q=[];for(I=0;IU?E[U]:0;V.forEach(function(W){var G=W.instrument+":"+W.pitch+":"+W.volume+":"+Math.round((W.end-W.start)*1e3)/1e3+":"+Q+":"+A+":"+(W.cents?W.cents:0);d.debugCallback&&d.debugCallback("noteMapTrack "+G),P[G]||(P[G]=[]),P[G].push(W.start)})});for(var B=[],k=activeAudioContext$4().createBuffer(2,S,activeAudioContext$4().sampleRate),I=0;I0?V.audioBuffers[0].duration:0;return{status:activeAudioContext$4().state,duration:U}}Promise.all(B).then(function(){activeAudioContext$4().state==="suspended"?activeAudioContext$4().resume().then(function(){C(z(d))}):activeAudioContext$4().state==="interrupted"?activeAudioContext$4().suspend().then(function(){activeAudioContext$4().resume().then(function(){C(z(d))})}):C(z(d))})})):Promise.reject(new Error(notSupportedMessage))};function b(x,C){if(C==null)return null;var w=[];if(C.length){for(var A=0;A1&&(S=1),w.push(S)}else w.push(0);return w}else{var $=parseFloat(C);if($*(x-1)>2)return null;for(var E=x%2===0,P=E?0-$/2:0,B=P+$,k=0;k\n \n \n \n \n\n',loop_svg=svg$4,svg$3='\n\n \n \n \n\n',play_svg=svg$3,svg$2='\n\n \n \n \n \n\n',pause_svg=svg$2,svg$1='\n\n \n\n',loading_svg=svg$1,svg='\n\n \n \n \n \n\n',reset_svg=svg,supportsAudio$2=supportsAudio_1,registerAudioContext$1=registerAudioContext_1,activeAudioContext$3=activeAudioContext_1,parseCommon$1=abc_common,loopImage=loop_svg,playImage=play_svg,pauseImage=pause_svg,loadingImage=loading_svg,resetImage=reset_svg;function CreateSynthControl$2(d,b){var x=this;if(typeof d=="string"){var C=d;if(d=document.querySelector(C),!d)throw new Error('Cannot find element "'+C+'" in the DOM.')}else if(!(d instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");if(x.parent=d,x.options={},b&&(x.options=parseCommon$1.clone(b)),x.options.ac&®isterAudioContext$1(x.options.ac),buildDom(x.parent,x.options),attachListeners(x),x.disable=function(A){var S=x.parent.querySelector(".abcjs-inline-audio");A?S.classList.add("abcjs-disabled"):S.classList.remove("abcjs-disabled")},x.setWarp=function(A,S){var $=x.parent.querySelector(".abcjs-midi-tempo");$.value=Math.round(S),x.setTempo(A)},x.setTempo=function(A){var S=x.parent.querySelector(".abcjs-midi-current-tempo");S&&(S.innerHTML=Math.round(A))},x.resetAll=function(){for(var A=x.parent.querySelectorAll(".abcjs-pushed"),S=0;S\n';if(x){var P=b.repeatTitle?b.repeatTitle:"Click to toggle play once/repeat.",B=b.repeatAria?b.repeatAria:P;E+='\n"}if(C){var k=b.restartTitle?b.restartTitle:"Click to go to beginning.",I=b.restartAria?b.restartAria:k;E+='\n"}if(w){var R=b.playTitle?b.playTitle:"Click to play/pause.",F=b.playAria?b.playAria:R;E+='\n"}if(A){var L=b.randomTitle?b.randomTitle:"Click to change the playback position.",z=b.randomAria?b.randomAria:L;E+='\n'}if($&&(E+='\n'),S){var V=b.warpTitle?b.warpTitle:"Change the playback speed.",U=b.warpAria?b.warpAria:V,Q=b.bpm?b.bpm:"BPM";E+=' ( '+Q+")\n"}E+='
CSS required: load abcjs-audio.css
',E+="\n",d.innerHTML=E}function acResumerMiddleWare(d,b,x,C,w){var A=!0;if(activeAudioContext$3()?A=activeAudioContext$3().state==="suspended":registerAudioContext$1(),!supportsAudio$2())throw{status:"NotSupported",message:"This browser does not support audio."};(A||w)&&x&&x.classList.add("abcjs-loading"),A?activeAudioContext$3().resume().then(function(){C?C().then(function(S){doNext(d,b,x,w)}):doNext(d,b,x,w)}):doNext(d,b,x,w)}function doNext(d,b,x,C){C?d(b).then(function(){x&&x.classList.remove("abcjs-loading")}):(d(b),x&&x.classList.remove("abcjs-loading"))}function attachListeners(d){var b=!!d.options.loopHandler,x=!!d.options.restartHandler,C=!!d.options.playHandler||!!d.options.playPromiseHandler,w=!!d.options.progressHandler,A=!!d.options.warpHandler,S=d.parent.querySelector(".abcjs-midi-start");b&&d.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function($){acResumerMiddleWare(d.options.loopHandler,$,S,d.options.afterResume)}),x&&d.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function($){acResumerMiddleWare(d.options.restartHandler,$,S,d.options.afterResume)}),C&&S.addEventListener("click",function($){acResumerMiddleWare(d.options.playPromiseHandler||d.options.playHandler,$,S,d.options.afterResume,!!d.options.playPromiseHandler)}),w&&d.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function($){acResumerMiddleWare(d.options.progressHandler,$,S,d.options.afterResume)}),A&&d.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function($){acResumerMiddleWare(d.options.warpHandler,$,S,d.options.afterResume)})}var createSynthControl=CreateSynthControl$2,SynthSequence$1=synthSequence,CreateSynth$2=createSynth,activeAudioContext$2=activeAudioContext_1;function playEvent$1(d,b,x){for(var C=new SynthSequence$1,w=0;w=1&&parseInt(d.cursorControl.beatSubdivisions,10)<=64&&(w=parseInt(d.cursorControl.beatSubdivisions,10)),d.timer=new TimingCallbacks(d.visualObj,{beatCallback:d.beatCallback,eventCallback:d.eventCallback,lineEndCallback:d.lineEndCallback,qpm:d.currentTempo,extraMeasuresAtBeginning:d.cursorControl?d.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:d.cursorControl?d.cursorControl.lineEndAnticipation:0,beatSubdivisions:w}),d.cursorControl&&d.cursorControl.onReady&&typeof d.cursorControl.onReady=="function"&&d.cursorControl.onReady(d),d.isLoaded=!0,d.isLoading=!1,Promise.resolve({status:"created",notesStatus:C})})},d.destroy=function(){d.timer&&(d.timer.reset(),d.timer.stop(),d.timer=null),d.midiBuffer&&(d.midiBuffer.stop(),d.midiBuffer=null),d.setProgress(0,1),d.control&&d.control.resetAll()},d.play=function(){return d.runWhenReady(d._play,void 0)};function b(x){return new Promise(function(C){setTimeout(C,x)})}d.runWhenReady=function(x,C){return d.visualObj?d.isLoading?b(500).then(function(){return d.isLoading?d.runWhenReady(x,C):x(C)}):d.isLoaded?x(C):d.go().then(function(){return x(C)}):Promise.resolve({status:"loading"})},d._play=function(){return activeAudioContext$1().resume().then(function(){return d.isStarted=!d.isStarted,d.isStarted?(d.cursorControl&&d.cursorControl.onStart&&typeof d.cursorControl.onStart=="function"&&d.cursorControl.onStart(),d.midiBuffer.start(),d.timer.start(d.percent),d.control&&d.control.pushPlay(!0)):d.pause(),Promise.resolve({status:"ok"})})},d.pause=function(){d.timer&&(d.timer.pause(),d.midiBuffer.pause(),d.control&&d.control.pushPlay(!1))},d.toggleLoop=function(){d.isLooping=!d.isLooping,d.control&&d.control.pushLoop(d.isLooping)},d.restart=function(){d.timer&&(d.timer.setProgress(0),d.midiBuffer.seek(0))},d.randomAccess=function(x){return d.runWhenReady(d._randomAccess,x)},d._randomAccess=function(x){var C=x.target.classList.contains("abcjs-midi-progress-indicator")?x.target.parentNode:x.target,w=(x.x-C.offsetLeft)/C.offsetWidth;return w<0&&(w=0),w>1&&(w=1),d.seek(w),Promise.resolve({status:"ok"})},d.seek=function(x,C){d.timer&&d.midiBuffer&&(d.timer.setProgress(x,C),d.midiBuffer.seek(x,C))},d.setWarp=function(x){if(parseInt(x,10)>0){d.warp=parseInt(x,10);var C=d.isStarted,w=d.percent;return d.destroy(),d.isStarted=!1,d.go().then(function(){return d.setProgress(w,d.midiBuffer.duration*1e3),d.control&&d.control.setWarp(d.currentTempo,d.warp),C?d.play().then(function(){return d.seek(w),Promise.resolve()}):(d.seek(w),Promise.resolve())})}return Promise.resolve()},d.onWarp=function(x){var C=x.target.value;return d.setWarp(C)},d.setProgress=function(x,C){d.percent=x,d.control&&d.control.setProgress(x,C)},d.finished=function(){if(d.timer.reset(),d.isLooping)return d.timer.start(0),d.midiBuffer.finished(),d.midiBuffer.start(),"continue";d.timer.stop(),d.isStarted&&(d.control&&d.control.pushPlay(!1),d.isStarted=!1,d.midiBuffer.finished(),d.cursorControl&&d.cursorControl.onFinished&&typeof d.cursorControl.onFinished=="function"&&d.cursorControl.onFinished(),d.setProgress(0,1))},d.beatCallback=function(x,C,w,A){var S=x/C;d.setProgress(S,w),d.cursorControl&&d.cursorControl.onBeat&&typeof d.cursorControl.onBeat=="function"&&d.cursorControl.onBeat(x,C,w,A)},d.eventCallback=function(x){if(x)d.cursorControl&&d.cursorControl.onEvent&&typeof d.cursorControl.onEvent=="function"&&d.cursorControl.onEvent(x);else return d.finished()},d.lineEndCallback=function(x,C){d.cursorControl&&d.cursorControl.onLineEnd&&typeof d.cursorControl.onLineEnd=="function"&&d.cursorControl.onLineEnd(x,C)},d.getUrl=function(){return d.midiBuffer.download()},d.download=function(x){var C=d.getUrl(),w=document.createElement("a");document.body.appendChild(w),w.setAttribute("style","display: none;"),w.href=C,w.download=x||"output.wav",w.click(),window.URL.revokeObjectURL(C),document.body.removeChild(w)}}var synthController=SynthController$2,centsToFactor=centsToFactor_1,rendererFactory$1;(function(){function d(B,k){for(var I in k)k.hasOwnProperty(I)&&B.setAttribute(I,k[I]);return B}function b(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}b.prototype.setTempo=function(B){this.trackcount===0&&(this.startTrack(),this.track+="%00%FF%51%03"+$(Math.round(6e7/B),6),this.endTrack())},b.prototype.setGlobalInfo=function(B,k,I,R){if(this.trackcount===0){this.startTrack();var F=Math.round(6e7/B);this.track+="%00%FF%51%03"+$(F,6),I&&(this.track+=w(I)),R&&(this.track+=A(R)),k&&(this.track+=C(k,"%01")),this.endTrack()}},b.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},b.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var B=$(this.track.length/3+4,8);this.track="MTrk"+B+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},b.prototype.setText=function(B,k){switch(B){case"name":this.trackName=C(k,"%03");break}},b.prototype.setInstrument=function(B){this.trackInstrument="%00%C0"+$(B,2),this.instrument=B},b.prototype.setChannel=function(B,k){this.channel=B;var I="%00%B"+this.channel.toString(16);this.track+=I+"%79%00",this.track+=I+"%40%00",this.track+=I+"%5B%30",k||(k=0),k=Math.round((k+1)*64),this.track+=I+"%0A"+$(k,2),this.track+=I+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};var x=4096;b.prototype.startNote=function(B,k,I){if(this.track+=P(this.silencelength),this.silencelength=0,I){this.track+="%e"+this.channel.toString(16);var R=Math.round(centsToFactor(I)*x);this.track+=E(8192+R),this.track+=P(0),this.noteWarped[B]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+B.toString(16)+$(k,2)},b.prototype.endNote=function(B){this.track+=P(this.silencelength),this.silencelength=0,this.noteWarped[B]&&(this.track+="%e"+this.channel.toString(16),this.track+=E(8192),this.track+=P(0),this.noteWarped[B]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+B.toString(16)+"%00"},b.prototype.addRest=function(B){this.silencelength+=B,this.silencelength<0&&(this.silencelength=0)},b.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+$(this.trackcount,4)+"%01%e0"+this.trackstrings},b.prototype.embed=function(B,k){var I=this.getData(),R=d(document.createElement("a"),{href:I});if(R.innerHTML="download midi",B.insertBefore(R,B.firstChild),!k){var F=d(document.createElement("embed"),{src:I,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});B.insertBefore(F,B.firstChild)}};function C(B,k){for(var I="",R=0;Rk&&(I=I.substring(0,k)),S(I)}function E(B){B=Math.round(B);var k=B%128,I=B-k;return $(I*2+k,4)}function P(B){var k=0,I=[];for(B=Math.round(B);B!==0;)I.push(B&127),B=B>>7;for(var R=I.length-1;R>=0;R--){k=k<<8;var F=I[R];R!==0&&(F=F|128),k=k|F}var L=k.toString(16).length;return L+=L%2,$(k,L)}rendererFactory$1=function(){return new b}})();var abc_midi_renderer=rendererFactory$1,rendererFactory=abc_midi_renderer,create;(function(){var d=1920;create=function(x,C){C===void 0&&(C={});var w=x.setUpAudio(C),A=rendererFactory(),S=x.metaText?x.metaText.title:void 0;S&&S.length>128&&(S=S.substring(0,124)+"...");var $=x.getKeySignature(),E=x.getMeterFraction(),P=w.tempo/60;A.setGlobalInfo(w.tempo,S,$,E);for(var B=0;BB&&(F=C.pan[B]),R.instrument===128?(A.setChannel(9,F),A.setInstrument(0)):(A.setChannel(R.channel,F),A.setInstrument(R.instrument));break;case"note":var L=R.gap*P,z=R.start,V=z+R.duration-L;k[z]||(k[z]=[]),k[z].push({pitch:R.pitch,volume:R.volume,cents:R.cents}),k[V]||(k[V]=[]),k[V].push({pitch:R.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+R.cmd)}}b(A,k,d),A.endTrack()}return A.getData()};function b(x,C,w){for(var A=Object.keys(C),S=0;S$){var B=(A[E]-$)*w;x.addRest(B),$=A[E]}for(var k=0;k';b.preTextDownload&&(A+=b.preTextDownload);var S=d.metaText&&d.metaText.title?d.metaText.title:"Untitled",$;b.downloadLabel&&isFunction(b.downloadLabel)?$=b.downloadLabel(d,C):b.downloadLabel?$=b.downloadLabel.replace(/%T/,S):$='Download MIDI for "'+S+'"',S=S.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_");var E=b.fileName?b.fileName:S+".midi";return A+=''+$+"",b.postTextDownload&&(A+=b.postTextDownload),A+""},getMidiFile_1=getMidiFile$1;try{if(typeof window.CustomEvent!="function"){var CustomEvent$1=function(d,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var x=document.createEvent("CustomEvent");return x.initCustomEvent(d,b.bubbles,b.cancelable,b.detail),x};CustomEvent$1.prototype=window.Event.prototype,window.CustomEvent=CustomEvent$1}}catch(d){}var EditArea$1=function(d){this.textarea=document.getElementById(d),this.initialText=this.textarea.value,this.isDragging=!1};EditArea$1.prototype.addSelectionListener=function(d){this.textarea.onmousemove=function(b){this.isDragging&&d.fireSelectionChanged()}};EditArea$1.prototype.addChangeListener=function(d){this.changelistener=d,this.textarea.onkeyup=function(){d.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,d.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,d.fireChanged()},this.textarea.onchange=function(){d.fireChanged()}};EditArea$1.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}};EditArea$1.prototype.setSelection=function(d,b){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(d,b);else if(this.textarea.createTextRange){var x=this.textarea.createTextRange();x.collapse(!0),x.moveEnd("character",b),x.moveStart("character",d),x.select()}this.textarea.focus()};EditArea$1.prototype.getString=function(){return this.textarea.value};EditArea$1.prototype.setString=function(d){this.textarea.value=d,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()};EditArea$1.prototype.getElem=function(){return this.textarea};var abc_editarea=EditArea$1,parseCommon=abc_common,SynthController$1=synthController,supportsAudio$1=supportsAudio_1,renderAbc=abc_tunebook_svg,EditArea=abc_editarea;function gatherAbcParams(d){var b={},x;if(d.abcjsParams)for(x in d.abcjsParams)d.abcjsParams.hasOwnProperty(x)&&(b[x]=d.abcjsParams[x]);if(d.midi_options)for(x in d.midi_options)d.midi_options.hasOwnProperty(x)&&(b[x]=d.midi_options[x]);if(d.parser_options)for(x in d.parser_options)d.parser_options.hasOwnProperty(x)&&(b[x]=d.parser_options[x]);if(d.render_options)for(x in d.render_options)d.render_options.hasOwnProperty(x)&&(b[x]=d.render_options[x]);return b.tablature&&d.warnings_id&&(b.tablature.warnings_id=d.warnings_id),b}var Editor=function(d,b){this.abcjsParams=gatherAbcParams(b),b.indicate_changed&&(this.indicate_changed=!0),typeof d=="string"?this.editarea=new EditArea(d):this.editarea=d,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),b.canvas_id?this.div=b.canvas_id:b.paper_id?this.div=b.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),typeof this.div=="string"&&(this.div=document.getElementById(this.div)),b.selectionChangeCallback&&(this.selectionChangeCallback=b.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),b.synth&&supportsAudio$1()&&(this.synth={el:b.synth.el,cursorControl:b.synth.cursorControl,options:b.synth.options}),b.generate_midi&&(this.generate_midi=b.generate_midi,this.abcjsParams.generateDownload&&(typeof b.midi_download_id=="string"?this.downloadMidi=document.getElementById(b.midi_download_id):b.midi_download_id&&(this.downloadMidi=b.midi_download_id)),this.abcjsParams.generateInline!==!1&&(typeof b.midi_id=="string"?this.inlineMidi=document.getElementById(b.midi_id):b.midi_id&&(this.inlineMidi=b.midi_id))),b.warnings_id?typeof b.warnings_id=="string"?this.warningsdiv=document.getElementById(b.warnings_id):this.warningsdiv=b.warnings_id:b.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=b.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(x,C){var w=function(A,S){var $=A.className;return $.length>0&&($===S||new RegExp("(^|\\s)"+S+"(\\s|$)").test($))};return w(x,C)||(x.className+=(x.className?" ":"")+C),x},this.removeClassName=function(x,C){return x.className=parseCommon.strip(x.className.replace(new RegExp("(^|\\s+)"+C+"(\\s+|$)")," ")),x},this.setReadOnly=function(x){var C="abc_textarea_readonly",w=this.editarea.getElem();x?(w.setAttribute("readonly","yes"),this.addClassName(w,C)):(w.removeAttribute("readonly"),this.removeClassName(w,C))}};Editor.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var d=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(d)}if(this.synth){var b=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new SynthController$1,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],b,this.synth.options)}};Editor.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=renderAbc(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(d){console.error("ABCJS error: ",d),this.warnings||(this.warnings=[]),this.warnings.push(d.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("
"):"No errors"),this.updateSelection(),this.bReentry=!1}};Editor.prototype.paramChanged=function(d){if(d)for(var b in d)d.hasOwnProperty(b)&&(this.abcjsParams[b]=d[b]);this.currentAbc="",this.fireChanged()};Editor.prototype.synthParamChanged=function(d){if(this.synth){if(this.synth.options={},d)for(var b in d)d.hasOwnProperty(b)&&(this.synth.options[b]=d[b]);this.currentAbc="",this.fireChanged()}};Editor.prototype.parseABC=function(){var d=this.editarea.getString();return d===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=d,!0)};Editor.prototype.updateSelection=function(){var d=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(d.start,d.end)}catch(b){}this.selectionChangeCallback&&this.selectionChangeCallback(d.start,d.end)};Editor.prototype.fireSelectionChanged=function(){this.updateSelection()};Editor.prototype.setDirtyStyle=function(d){if(this.indicate_changed!==void 0){var b=function(A,S){var $=function(E,P){var B=E.className;return B.length>0&&(B===P||new RegExp("(^|\\s)"+P+"(\\s|$)").test(B))};return $(A,S)||(A.className+=(A.className?" ":"")+S),A},x=function(A,S){return A.className=parseCommon.strip(A.className.replace(new RegExp("(^|\\s+)"+S+"(\\s+|$)")," ")),A},C="abc_textarea_dirty",w=this.editarea.getElem();d?b(w,C):x(w,C)}};Editor.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var d=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){d.modelChanged()},300);var b=this.isDirty();this.wasDirty!==b&&(this.wasDirty=b,this.setDirtyStyle(b)),this.onchangeCallback&&this.onchangeCallback(this)}};Editor.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)};Editor.prototype.isDirty=function(){return this.indicate_changed===void 0?!1:this.editarea.initialText!==this.editarea.getString()};Editor.prototype.highlight=function(d,b,x,C,w,A){this.editarea.setSelection(d.startChar,d.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(d.startChar,d.endChar),this.clientClickListener&&this.clientClickListener(d,b,x,C,w,A)};Editor.prototype.pause=function(d){this.bIsPaused=d,d||this.fireChanged()};Editor.prototype.millisecondsPerMeasure=function(){return!this.synth||!this.synth.synthControl||!this.synth.synthControl.visualObj?0:this.synth.synthControl.visualObj.millisecondsPerMeasure()};Editor.prototype.pauseMidi=function(d){this.midiPause=d,d||this.redrawMidi()};var abc_editor=Editor,version=version_1,animation=abc_animation,tuneBook=abc_tunebook,sequence=abc_midi_sequencer,strTranspose=output,abcjs={};abcjs.signature="abcjs-basic v"+version;Object.keys(animation).forEach(function(d){abcjs[d]=animation[d]});Object.keys(tuneBook).forEach(function(d){abcjs[d]=tuneBook[d]});abcjs.renderAbc=abc_tunebook_svg;abcjs.TimingCallbacks=abc_timing_callbacks;var glyphs=glyphs_1;abcjs.setGlyph=glyphs.setSymbol;abcjs.strTranspose=strTranspose;var CreateSynth=createSynth,instrumentIndexToName=instrumentIndexToName_1,pitchToNoteName=pitchToNoteName_1,SynthSequence=synthSequence,CreateSynthControl=createSynthControl,registerAudioContext=registerAudioContext_1,activeAudioContext=activeAudioContext_1,supportsAudio=supportsAudio_1,playEvent=playEvent_1,SynthController=synthController,getMidiFile=getMidiFile_1;abcjs.synth={CreateSynth,instrumentIndexToName,pitchToNoteName,SynthController,SynthSequence,CreateSynthControl,registerAudioContext,activeAudioContext,supportsAudio,playEvent,getMidiFile,sequence};abcjs.Editor=abc_editor;abcjs.EditArea=abc_editarea;var abcjs_1=abcjs;const ABCJS=getDefaultExportFromCjs(abcjs_1),abcjsAudio="",container="_container_mymsq_1",containerTop="_containerTop_mymsq_11",topWrap="_topWrap_mymsq_18",topBtn="_topBtn_mymsq_25",btnImg$1="_btnImg_mymsq_25",btnImgActive="_btnImgActive_mymsq_51",topBtnIcon$1="_topBtnIcon_mymsq_54",btnDisabled="_btnDisabled_mymsq_58",topDownArrow="_topDownArrow_mymsq_63",topLine="_topLine_mymsq_75",btnPlayMore="_btnPlayMore_mymsq_81",wrapBox="_wrapBox_mymsq_84",longTopBtn="_longTopBtn_mymsq_94",dropDownWrap="_dropDownWrap_mymsq_100",content$2="_content_mymsq_108",slide$1="_slide_mymsq_113",box$1="_box_mymsq_126",value="_value_mymsq_134",instruments$1="_instruments_mymsq_154",instrumentTitle="_instrumentTitle_mymsq_162",titleBox="_titleBox_mymsq_170",popupWrap="_popupWrap_mymsq_176",btnLineTitle="_btnLineTitle_mymsq_184",btnItem$1="_btnItem_mymsq_191",btnItemIcon$1="_btnItemIcon_mymsq_197",btnItemName$1="_btnItemName_mymsq_210",btnItemActive="_btnItemActive_mymsq_213",titleName="_titleName_mymsq_216",selectMearesBox="_selectMearesBox_mymsq_222",mearesInput="_mearesInput_mymsq_232",selectMearesHidden="_selectMearesHidden_mymsq_243",loading="_loading_mymsq_246",exportPng="_exportPng_mymsq_257",styles$6={container,containerTop,topWrap,topBtn,btnImg:btnImg$1,btnImgActive,topBtnIcon:topBtnIcon$1,btnDisabled,topDownArrow,topLine,btnPlayMore,wrapBox,longTopBtn,dropDownWrap,content:content$2,slide:slide$1,box:box$1,value,instruments:instruments$1,instrumentTitle,titleBox,popupWrap,btnLineTitle,btnItem:btnItem$1,btnItemIcon:btnItemIcon$1,btnItemName:btnItemName$1,btnItemActive,titleName,selectMearesBox,mearesInput,selectMearesHidden,loading,exportPng},piano="_piano_1vew4_1",show="_show_1vew4_12",pianoItemWrap="_pianoItemWrap_1vew4_15",itemWrap="_itemWrap_1vew4_23",item$2="_item_1vew4_23",keyDown="_keyDown_1vew4_48",keytip="_keytip_1vew4_71",singname="_singname_1vew4_82",bkey="_bkey_1vew4_91",styles$5={piano,show,pianoItemWrap,itemWrap,item:item$2,keyDown,keytip,singname,bkey},_hoisted_1$3={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},_hoisted_2$3=createBaseVNode("path",{d:"M289.94 256l95-95A24 24 0 0 0 351 127l-95 95l-95-95a24 24 0 0 0-34 34l95 95l-95 95a24 24 0 1 0 34 34l95-95l95 95a24 24 0 0 0 34-34z",fill:"currentColor"},null,-1),_hoisted_3$3=[_hoisted_2$3],Close=defineComponent({name:"Close",render:function d(b,x){return openBlock(),createElementBlock("svg",_hoisted_1$3,_hoisted_3$3)}}),setbox$1="_setbox_dl4mj_4",head$1="_head_dl4mj_13",close$1="_close_dl4mj_27",content$1="_content_dl4mj_33",lineTitle="_lineTitle_dl4mj_38",item$1="_item_dl4mj_46",itemImg="_itemImg_dl4mj_54",icon="_icon_dl4mj_62",itemActive="_itemActive_dl4mj_66",itemIcon="_itemIcon_dl4mj_73",beatItem="_beatItem_dl4mj_84",beatIcon="_beatIcon_dl4mj_95",speedIcon$1="_speedIcon_dl4mj_110",btnItem="_btnItem_dl4mj_113",btnItemIcon="_btnItemIcon_dl4mj_122",btnItemName="_btnItemName_dl4mj_131",active="_active_dl4mj_134",btns="_btns_dl4mj_137",styles$4={setbox:setbox$1,head:head$1,close:close$1,content:content$1,lineTitle,item:item$1,itemImg,icon,itemActive,itemIcon,beatItem,beatIcon,speedIcon:speedIcon$1,btnItem,btnItemIcon,btnItemName,active,btns},icon_1$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAuxJREFUeF7t27tPFFEcxfEvaqIhGC2wUv8COvwXrIy9iYWh8W0jSmOQiFr5oMH3q7GxsvGfsMDWwoQKYwyVWthglPwIJJvJwN5hzyXjnbPVFnfPzHz2zOzdeQzhl1RgSJrmMAwqLoFBDSoWEMe5oQYVC4jj3FCDigXEcW6oQcUC4jg31KBiAXGcG2pQsYA4zg01qFhAHOeGGlQsII5zQ/9T0PjiRoG9ovX/A3wXZUljcjf0GHALOA7sk645LAIngC/i3IHicoHuAW4CN4B4n+v1FjiTK3w7ublAZ4GZ7axQw890AjR284+ZmxnundnlPwAne5q2AtwG3gO/GjZws+Gd+VGKQ8jvyg9QHEvviiBbH6M+hh4ClitbPQZ8br2EaAXVoEeApcq6HQW+ita39TEGFX9FJYLuBv4Bf8VWSXGlgU4A8+uYk8DrJAXhoJJA4zzBj8oM4wrwWOjVN6ok0GHgZ80fisvAk74SogElgQbJNHCnYhPH00B9KjLbMqY00NjYe8BUDepF4Hlu1BJBw+w+cL0G9QLwIidqqaBh9gC4VoN6HniZC7Vk0DB7CMT0qfcVx9RzwKscqG0EPQiMCDc2mnqqBvVsjnlq20BjehO75C4h6GZR0dTTwDvlstoEGiemF5Qbl5D1DTicMC55SJtAx4FPyWuuGVg0aBA9Ai7BjjyQVvwuv9G5/cABTQHXUjr9oyR0XIuaA652fdqkQvXEXiXpv55CSZ8c0WLGJeu4B6D6VzNmDs+0i6pPa9M8dNDt9QnmQQUrn/clEDFoxPVepIvp0psMy9gysqRdfmNDfRl5p1uUc3klNjSnV99sNahvFutL3myAb2ds5pU02jfcJjGlD/It4elWySP90EIyVdpAP1aT5tR4lB/8akyW9gE/mpjm5FFVAfXEvvPCBhVXwKAGFQuI49xQg4oFxHFuqEHFAuI4N9SgYgFxnBtqULGAOM4NNahYQBznhhpULCCOc0MNKhYQx7mhYtBVqPOkVTfYfusAAAAASUVORK5CYII=",__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:icon_1$1},Symbol.toStringTag,{value:"Module"})),icon_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABIhJREFUeF7tm0uoVlUUx3/X8jFoYiKIghINRBMDxUHgA8XKaCTRAx9J+EKEFATBmQNBMEgjkSjFSO1hCEKQj4G9LAfqoKBEBKVQalIQhmT24o/nXA6He+93ztlr73O/7649Eu/e/73W76x19rfX3qcPb6YE+kzVXAwHahwEDtSBGhMwlvMIdaDGBIzlPEIdqDEBYzmPUAdqTMBYziPUgRoTMJbzCHWgxgSM5TxCHagxAWM5j1AHakzAWM4jtEuBPgasA54CpgIPdfDjDnAN+Bh4A/jD2O9ocrEjdAzwOrAJGNXQi5+AZ4AfGo5POiwmUME8BSwx8OgXYB5w00ArqkRMoPuBzYbWXwAWAfcMNc2lYgGdBXxbSnNF13bgc+DnDp5MBHYBG0r93gReNadgKBgL6D5gS8FOwXwc+K2G7bLtE+DZ0pjVwNEaOkm7xgL6PTCz4MkK4IMGno0HLgOPFMb+CxwHrlbQuw1oUTsH/Fqhf3CXWEDlSPGn0eQKaT6YM3OAr4FxAd7+A5wAdgDXA3Q6Do0F9L/SzKHzvAC8DzzQ0aOhO+hBvwR8Gqgz6PBQRwcTtgaqeZYCbwGPBsL4C1gMfBOoM+DwbgIqB7Q5WADMBh6uAESvGvWfUeqrtNf/Ca5p6zagTZzXQ9gG7CkN1lb4UBPBocaMBKC5/weBtQUYp7MtrSnTkQR0LnCpQE+bC70STNtIAqrawt0CPf2UetCUJkS7cBtjlbfwPbpdbUfo2Gy/vixbdacFlPmaAFeU3gLOAjuzfzfR6R/TJtDnsuLxlCAP7Ab/ntVtm2yRWwf6MnA4cTRWQa+IfQK4WKXzQH3aiND5wBfDEGbO5wqg8qOKMLVbG0C/zHYvubF/AruBI8CPTR2p7fn9AXqHPw+8W6oT6KGrIFO7pQaqPbRKaXnTqqsFSYtCm+0jQAWYvG0E3m5iUGqg5d2KHFH1p+2mgvXKghFrgPeaGJUSqH5E67BtQsHQp4dBdA5klw4Ei7uqymxTAtWZ/JmCZaqgTwL+rmxtnI6mdqUE+k522SHHovRfH4dRLVVTu1IBHd1F6R70GkoFVEb2fLorL1IBVXqroNvT6Z4SqBagbljdg9I9JdDiKtGTq3vuYKqULwLtydW9TaDBaVXrR9HAnaNtMlJHaE+nexvv0J5O9zaA9nS6xwRaviymuXo+3WMCLV9n1FzHgFUGC0qoxIfAi7E2GbEWpb3A1pLnJ4HloTQCx6uypBsjRb/1DcBngbr9w2MB1Wc035XOjVSdPwC8lh11WPnQSUd3m3Q8rZvPuh9avGf6FbCwk0Cdv8cCKhusP1qo41eVvjqE00cQ56t0rtonJlBdfZGxqn4PtyaYrzQ95hjKmZhANa+g6sODJyNWtuo+LN0U0QcVuiJu3mIDzQ3Wi1+fGE7PLmilmjef/wag83YtSDrNLF4aM4Wa2jFT44ejmAM1fioO1IEaEzCW8wh1oMYEjOU8Qh2oMQFjOY9QB2pMwFjOI9SBGhMwlvMIdaDGBIzlPEIdqDEBYzmPUAdqTMBYziPUgRoTMJb7H2t6zFVTEKTfAAAAAElFTkSuQmCC",__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:icon_0},Symbol.toStringTag,{value:"Module"})),icon_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAvlJREFUeF7t3M2rTVEcxvHvNVCIKDHAQIgJE29FKCkGKJGJUCSMTYwN+AeEiZCBDCghpQyIkoGBlJeBpJSUkLeI6Hdat67b2d2193nWsXWfPf6t5679uc85Z59d+wzgQyowIE1zGAYVl8CgBhULiOPcUIOKBcRxbqhBxQLiODd0lIMuBjYBF4EnYgtJ3P/W0P3AKWAbcEkiIA4xqEHdUGUH/JJXagIGNahYQBznhhpULCCOc0MNKhYQx7mhBhULiOPcUIOKBcRxbqhBxQLiODfUoGIBcZwbalCxgDjODTWoWEAc54YaVCwgjnNDDSoWEMe5oQYVC4jj3FCDigXEcW6oQcUC4jg31KBiAXGcG2pQsYA4zg01qFhAHOeGGlQsII5zQw0qFhDHuaEGFQs0iJsATAO+Au+An0My3NAM0AXpCeP1wDJg4pA134EHwAXgHLDTD89Wi64DDgEbMtBj5CVwC9jrp5H/FpsBnAA2Z0J2G/Pj3UllC3AWmNQDZiw1KHAQOA6M6RHToMDu1EyBZSdiVDd0EXAfGKfSBNYAdzLzxgNr09vMbeB15rpGY/34iYx7wIpGu6teNB14m5E5G7gJzE2zX4BdwOWMtY1GSoOuBO422ln1osfAwszMq8DGYbMfgVnAp8yMWmOlQU8CB2rtaOThPcCZkcc6E4HX7YpiVYF/dOcPlgaN96zVmSefM/YIWAr8yBkGngLzu8zOAV5kZtQaKw36HJhXa0fVw5+BJcCzGnnR5tPD5uP3nuIqochRGvRKj9+IBk/6G7AVuNFAYXv68Zd46V8HjgFxj6DIURr0cDqBXjb/IX2wxNVC64/SoJPT+1hc5jQ54pJnH/CqyeJ/saY0aJzTcuAaMLXGCcaHyVHgfI01rRjtB2ic6EzgCLADGFtx5u/T7blAjOvH360QqrmJfoEObivuxse3prhsmQLEJ/ebdK/zIfCr5v5bN95v0NYBqDdkULGoQQ0qFhDHuaEGFQuI49xQg4oFxHFuqEHFAuK4P8RMplUmMtfOAAAAAElFTkSuQmCC",__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:icon_1},Symbol.toStringTag,{value:"Module"})),icon_10="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA2xJREFUeF7tmcurTlEYxn9HIRnIBKWYuRdKMTAQEbkUCiNl4E8wMzDhv5CBGDBA7rfIZYpcMiFJSQkj92tPLbXjdM7+1n7W/vZ3elet2Xqfvd7ffvZa71p7iGhWAkNWtRAjgJpNEEADqJmAWS4cGkDNBMxy4dAAaiZglguHBlAzAbNcODSAmgmY5cKhAdRMwCwXDg2gZgJmuXBoADUTMMuFQwOomYBZLhwaQM0EzHLh0ABqJmCWC4cGUDMBs1w4NICaCZjlSjt0FbAcuArcM8+9k3Klgd4ABFXtFXAGOAXcAn50kkjDSZUGKlcuHWaOH4BzCe4V4GPDPDoTXhroY2DhKNl+AQT1dIL8tjN0MiZSGugjYFEP8/oF3ElwBfhFD7GdGFoa6AZgP7ACGJeR8cMEV+vug4z41kNKA/2b0Axga+rapMZnZPqy4tzbwM8MjeIhbQGtJjIV2AxsA9YBkzKyfFfZ1FSSfcrQKBLSD6DVRCYD6xPcjcCUjCw/A5crm5pg9631G2g18QnAmgR3CzAtg4qWAS0H2tDUtUy02roEtJq4NrCVCa7W3lmZVO5X4GqDK966CvTfxJdV4M7LpKISTK49Cgh0kTYoQKvJzwf2AXsyieggobX6W2b8iGGDBnQxsBPYDczMAPIdOAAcyoitFTIIQHV03ZFAzq2V1f+D5MbjwEHgWaZGrbCuAp2TAMqNo90FjJToc+AwcAR4U4tIw0FdAqrPWQX/dmBJg7xUh54EjgF3gd8NtHoO7SfQicBqYFPquaWRkhZE3bWeAK738661baDTAZ2I5MS1gE5Kua2TZ/s2gOqsvgvYm26dcp+pT1c3TmdTPVmslsx9w4rLTa7uM2cDFwHVjjlNN/nXgPOpv84RaTOmNNAnwIIeE1JZcyH1m8DXHuP7OrwkUF3Tva+RnW6L9DPvUnJz0TqxxnwaDSkJVBPTxjHc7v00ARRE/QHVcXBMtNJAVVPqhKIjn8oZrafqrV+rtfW2SgNVHiqNBLTIZURboOo+pw2gdecyJsYFUPNrDKAB1EzALBcODaBmAma5cGgANRMwy4VDA6iZgFkuHBpAzQTMcuHQAGomYJYLhwZQMwGzXDg0gJoJmOXCoQHUTMAsFw4NoGYCZrlwaAA1EzDLhUMDqJmAWS4cGkDNBMxy4VAz0D+03XNV5puEGQAAAABJRU5ErkJggg==",__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:icon_10},Symbol.toStringTag,{value:"Module"})),icon_11="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAYVJREFUeF7t1bFNHFEARdFHRkodDk1ERBEUYLkxywXYLbgAaISIDhAix7IGnR05uBv/ufpz5kl7tX5U4IrWii1QPIJAA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCOHfWQq+33eC7H8m9bns+8sBnz54F+mfb/WcviZ572PYLtf6aOQv0advXS7/MP/rft/249B0CxcJngT5uu8V3P5r7tu3n0YeOnj8L9G7bl6OXg+ff/5R+b3uBzQ9TZ4Fe+j3+m36g+FMEGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWikHfAEOtDVUlJKfhAAAAAElFTkSuQmCC",__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:icon_11},Symbol.toStringTag,{value:"Module"})),icon_12="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAVKADAAQAAAABAAAAVAAAAAC3aM1AAAADrUlEQVR4Ae2aS4sTQRDH8yIvTNwEcktEZNmLngQ9KR5cvKn4HTwInvwosuoX0JMXX+hFPbi4eog3xYPCItmgQrKJZtdI2Dz8V5iWIW52kp6eSYP/hqG6uqtqun5Uz2xPNhJhIwESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAES+D8JRMNKO5fLvY5Go8dxv01cn0ej0RfoW5C1eDxeGw6HW51Op6WzniU0xKoMBoOKSMSsIM5RXCu4lqF/3NnZOYN+4C0R+B2cGyDRn0hsCepJ54pAH88CxFjm8/lfGGvDtgv52y3HBpFIBjKLuSzmMo5cgv8hZ/5vTKWLlHu79SD7oVVosVjM9/v954BwOsiEJmMDZjWRSKy2Wq3O5FwQemhAZfGowCKAvkL3RBDJ7BPzA4Ce032U7BPPcyjmaWHQQBJLpVIXELJuMOy0UHW5V5gwZSGhVqjKHJV6CpW6Dj2txgzLHirzLGBWDcf1DBf3tAjAoNfrfc1kMg1AvRhA+EgsFrsOmE+CiO0VcyEVqhaFSn0EqJeUbkKiMh8D5mUTsXRihPoMnVxgNpu9irHm5LgPvenE9BHCn+tCtrxa8u7ubjedTn+HfkWN+ZGozmvb29tv/cTw67vQLa8Wj63/Alv/vNJ1JGC+xFZf1fE16bPQLa8SwdHzBvpDpWvIoRNDw9WsixVA2+32e1TYXd3UxFdi6Pqb9LNiy0tChULhCI6mn9BNzZlgD0fLFQCtzekXiLkVFSqZCRD8/Xhr3ixRnbdtgSlrt6ZCZTFy1ofYxAvqsOheDTDlK9IxvIy0Pvt5xdeZt6ZCZfEOmLU5ElmzCaas2yqgsqBkMnkHYk/6Hm3PsfUwC3faOqDNZvMbtvJ9LwxiI7ZedmHPWwfUAXBzBhCz2MwQxqyJlUDxXKyiAqceIWVObMyiMBPNSqCSGqBNrcCD5sxg0Y9iLdByufwA4NqTqWHsh8xNjtuiL/Rr00EQGo3GAG/xZdjIr6Tudq9erz90D9jUt7ZCBRJOTv+87fcbI9AZCZRKpXVs8a4yl76MKZ1SgwCOo0/xXycjudB/phEiVBert7yQQFW+UUTQ31B9W6X1QPGh5J2C5+6rMduk9UBRlfKNdNzcfTVmm7QeKJ6d8iPeuLn7aoxSgwBeRhtyabjShQRIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARCIvAH1T0D5hxAQ9EAAAAASUVORK5CYII=",__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:icon_12},Symbol.toStringTag,{value:"Module"})),icon_13="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAACCpJREFUeF7tnHfMNUUVh59PQKoCSmgqAqFY6NUCYgIEAsFICaFEowImQChSRIqIhSIgRYFAaAlBKaH8QUfUSIiFLlUhNOlFkA4qSh4zk2xe7t3d2btz7+7LPcnN+97v2zmz83vPnDlzzm9mDlNpFYE5rWqbKmMKaMtGMAV0CmjLCLSsbmqhU0D/7/c3BdYGPgO8DTwG/Ab4Q8v4JKvrm4VuBhwNrDlkpH8GvgH8NRmJlhr0CdCPAw8D84SxPwn8Bfgk8NkCHs8CGwIPtoRRkpo+AerAFgXWBR6ZAdgOwC+BD4TRnw98LQmJlh7uG6Blw74M2Do88EfgCy1hlKRmNgF6CbBtGP3PgX2SkGjp4dkA6HLAzwrW+VxYtJ5qCaMkNX0GdEHgEGB/YN4w6meALYHbk1Bo8eE+A3oWsMsMLPYGftEiPsmq+gzoksCJwPaF1f0/wA+Ao5KRaKlBnwGNEKwAHATsWsDE78e2hFGSmtkAaBywIB4TvrwJfAL4RxIaLTw8mwBdB7ilgInb1OtbwChJxWwC9OAZvvNzgHv7sUqfAF0e+DYwP3AFcEMBKbNONwOGUsr9wCrAf8eKJvSqBKJ/1E9GuQZwd7RUiEXd5yuvAOsBfxs3mPbXJwudG/gu4NReaAhY5kP3BO6cBJh9AzRitDCwI7ARYErvtbAzEsyrgf9NCsy+AjopvD4Y/PfLZS/QpymfE0jdib7Y2DV+lgE+Vvi+BPAW8CHgnWEv834A1KSzYBTBir/rMvx96cL2teoPZyLmX7MVUA1isSFgCZSA+dEC25JeA2ooNMiyihYWU3dtAValp7OAfjhYTxlgC1SNbgL/PzFAXRU3AHTug0AT0D7KxAC18rhzTxB7A7AsXfw8Ufj+dWCPMJaJAXoT8MUOAPpCAKYIkMAVv79U8Z4ahgaizBfYKgOb5Ayb3Ll8foyAPgqcBjxeANBCnVSdUaUTgP4JWH+EkfwbEBAtKVpT/D3+1CBkk8wFHA78eIT+ypp2AlDTabI8Bkn0WUWA4jSM/2Y5uM6+3L28abtDM9aSOgHorYEhdy9wcsHSBKzKZ6UYmuk6t4PfB36S0jDh2U4Aam1clpwMDpkcueSfgBkoq50/ytRJJwCVGbfaGAB9MZDIfggcMZsBvTuUIQ4Ejs80UNVa2fxIWJBcmHJIJyxU32mt5zDgyByjDDqfDwkS+7CvHNIJQC2UfSosFC4YuUSC7eKB2SzXKYd0AlCLZCsFZtwBOUYZdD4NSMv5KfC9TP10AlAp2dJk3L1YOMslBv9m26XeFKuibfbXCUAfAqylnwt8q83RzdBlXGupwoXPBTCHdAJQefDLAhcAO+UYZdD595AePCHU53N01QlAPTtkLvRyYJscoww6TYp4EuQk4DuZ+ukEoGZ9rOfI8Ngi00BVG2dCTl59JwA12WE18bfAxhkBjb76FGCvTP0UAZVbZTl5oOTMh8ZwxrxozkRzjCbGZaETAzQG3LcBcjdzSYx3jwvcpxz9dMJC45ZQ4taws5ltDN5znStn3pF1AtCYtDBJYtYpl9wHfHqMGfuJTXmTyIsE8qtJklxyTzg8m/OgQicsVJaatfcHwpTMBehdwKrAvqEykKOfTgAaaz2GNe7pc0lMZO8OnJ6pk04AaiFOf5PbQu8A1gj5AvMGOaQTgBr8yrIw0ewBglxiWLZWYKn8aoROZOitGBY4KededGB5xeSL50etWSkTIzrIofSlcodNnk0yzt0OuLQBoN7+sBvw1VA9LVPhqRI5AEMl507Jc5d2bjl5WH2+wfjf0yTW/7cCrkxQaJ7hVOArCW10Y/HozsBmOQH1r6n+Nm5X0HXoJ817ykbW+o1zPYJ4XiiBpJyckxWoNVs6SRETPmbQJmKhkfXhAS2vBUoV/xheeeER7i8DVVxRn/l9jU6kB5mwqdI3SNWN4fTJ2AGV1x6J/RcBXrKSIl8CzghFvrrtJKbJpyoTp7k+/aN1lc54zjP6+ttsgOoj3fY5ddwVyXSLxIOrQq+pNSUJC5aD4w03dcfuSm8IVSbXArqGpuJNO5HWOFBHEx+qP3NF9cIpraLUSScmLcy6N718Rf9ads+IFxU4W5qKflsmtiS21ixUn2Yi18RxXbEsIVBV4gUCZ1Y9NOT/pT4aH5Ydlo3xasMuOGfAlRzv0VXXQg169WlNqpd14kP/QCaKmywUDqoqiW1k4AUvTcW2q1dZp8rrACqYXjJlnNdEDHfcb5eJFctRCmwyRrwTb5j4DlX+dVhb2X2b1z17XwdQuZ3eNtNEnIpmnIbWYILSWH9q0sfrgHc3mdAeJm4l9a/ySFNEN+GsNKNVS6oAtfzbZDsXO6+zS9LRW1tvKnV5oV5eYDaqasy+h5sGGdH69KRLDMqU688sLzjgpiKjuIooZthl1r2J/DpMx7qDtvoqu8TrMyTpFsVwz5K3t0X4U2Z0spQBul8geiUrDQ0cpFkmWXhlYopPP+VBsRRx3+6GwSmfKo5bIptHH+3bjy5j6Cnjuh2UAWqY8M26igY8V7mrKLRJ6evVkEqzbDwyACOMb2DTMkBdiFyQmsh1IYsz9Bj0DKXusrw/ZBghwryAB8nkSV08ifuY6oJQBqicS8sXqbHhhSEANtWVIm41NwnhmXGjuVR5S2b8nd5mejovVSueRFkJBHXElVGrHiVrXqefTj9TBagv7y00nq4YtmjIsjMwP7vhAtFpgFJfrg6g6tTHmdk2rWYbA3br4b8LIU+dE2+p79bL5+sC2svBTeKlp4C2jPoU0CmgLSPQsrqphU4BbRmBltW9C6ljmGQOwc8cAAAAAElFTkSuQmCC",__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:icon_13},Symbol.toStringTag,{value:"Module"})),icon_14="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABPZJREFUeF7tnG2olUUQx39WYBnql6QIyjKpSKOw0BIMxMKyREyo0NIiCCMqragwIggxRdDEsA/ai2FWvhEVGKZSUVGBEiYURKllpimhqSVZIn/YQ9sh4Z5nZ/Z4n7MD98O9PDPPmd+ZfZnZ2duDIqYEephaK8YoQI2DoAAtQI0JGJsrEVqAGhMwNlcitAA1JmBsrkRoAWpMwNhcidAC1JiAsbkSoQWoMQFjcyVCawr0TOAsoA+wH/gF+NvY1yzm2hmhVwP3ANcBlwGnRB4L5ifAW8CS7gS3HUAF8gVgWBdD5ltgDLCti8+39bHcQGcCTwKntuj198Bg4EiLetkfzwVU71kETE3w8E7g9QT9LKq5gD4BzE70aBbwVKINd/UcQAcCW4AzEr2ZATyXaMNdPQfQ14C7DDy5HNhqYMfVhDfQ04Ffgd6JXnwOXJtoI4u6N9BbgHcTPfkL0Fbr60Q7WdS9gU4D5id68jgwN9FGNnVvoHMAAakqi4H7qiq3Q88b6Mshvazim/atDwLHWlRW0jAK2NiOlNUb6KvAlBaBHAAeBV5qUU+Pa2u2AtDc/TwwvYKNJJWTCehBYCmg9HRPRa9uB96MdMcC71W0VUktF9DdgKL1AuB8QNspicp03wEfAeuBQ5W8+FepJ/ApcFX40z7gCmBXot0uq+cCKlg3dPlTpT04ANgM9A1mPgxzaqtzcaVPUUegAjEeWBMRuRfQAukudQUqcC9G1a0dwMWAkgRXqTPQfoDqqI20V1swFbZdpc5ABe5p4NlAUAvjRcAfnkTrDlSHf4rSswNE9yJ13YGKo+oAjwWg2vRrr+omnQB0eNibCuLvgOZWt8WpE4DKR23szwlhORpY5xWinQBU7JYBkwJEnbqqCuYi3kBfAe4OaWWuTOn/QMVlRNVnH3GhCe4Xv04WoKo6zQsQl0fRas61UyJUw13DXrIBuN6cZDDYKUAfAhYEn1XOU1nPRToFqIrNDweCCwEBdpFOAfpOFJVakFIPDk/4ZXgDbTQ55KyHNjurM6afo/RTpb23XcIzwyqv5q6Jbd423QisDQCPhg3+b90VqBpmb2sz0MaXKoauC5Je4D3kVwO3thGo8vbtQK8QkRotb3hFZw6gmqvGOQK9MhwZ/xhAaUjHEvcF6ABQ+fzh7gxUQ+xmR6CKtjsCoJuA9yNY1wCfRaPwmajY7MbUe8hrMdCi4LXKN6YUARJYzdkSrexfAkPC7z8BlwB/upEMhr2BfhDSvBxA4/lRZ0cPRPDc587Gu7yBqr9oZKYIVVOv8vX7Qz9/w0ddzxnhHZm5gH4cnMkRoSoT7gzz6GnBQTX7qotEf88i3hGqRUGdxzmA6l26eqPbeBJdHlMXnr7UbOIN9AtgaCagzdCynMM3v9Qb6Kaw0uaI0Ni3lSFDyxaZuebQr0L3W26g/wDqvFPO3vjRDRJdzXEV7wiVE4Mch/wqYEILhNRKqT2pm3gD/Qa41BHoZEDnVvFN5hPB2gv0997cewNVM61u0nkNecE7NzQvaFXXUG/8NP+ue/jNub55pHoD/QG40BmoOZQUg95AVQU6rwBN+Yr+q6t/GqC+ehVJ9E8Eai/eEarSnZq1dD1R9zVrL95Aaw8wd6ZUgHYcAWOHy5AvQI0JGJsrEVqAGhMwNlcitAA1JmBsrkRoAWpMwNhcidAC1JiAsbkSoQWoMQFjc8cBYGvqVZKYHuIAAAAASUVORK5CYII=",__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:icon_14},Symbol.toStringTag,{value:"Module"})),icon_15="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA5pJREFUeF7t27ur1EAUx/HvBR8gKD46UUFs7fwHLCwsBBW0EEWwsdJGUDsrG7VT/wRfoDY2CjbCBRsRSxtBULQQRFAQH4VyZIIhTDYzs2eyZ/eeLe+dnE0++SUzmcwu4R9VgSXVal4MB1UOgYM6qLKAcjlPqIMqCyiX84Q6qLKAcjlPqIMqCyiX84Q6qLKAcjlPqIMqCyiX84Q6qLKAcjlPqIMqCyiX84SuUNAr4bgvKh+/erl5SKhgXghHfhUwjWodtI3ZpMk0qmXQGKZ5VKugkzBNo1oETcE0i2oNtIv5EdgCrA2CP4HPwNZW92zqnmoJtIv5G9gLPAHWB8BvwH7gGbDaIqoV0E3AS2BnC+kscBP42gHdAJwBbrTavgX2AF/UB5aZBa2Aym7vCMkT1NvAiXAsMVD51y3gOCCYkuR3mcdepbkl0AZVkncM+D4Aug64C0iSTWDK/loDjaWmL6FVEjZtUQedVrCz/SxApQPK6TymSWjud03NOzaojBmPZHYipaBNJ3d/zAmVMUEF83yIQE7PXALaHjHIV442+B8LtI3ZXFaPgIMJ11gJ6FNgX6f2KKhjgMYwZZx5ujU0muRaArotjGl3jY1aG7SLKY+T58ITUEI4/zUpAZXtZoJaE7SLKRMdR4HnqZIDA/uUMqOj1gKNXeYyU/QrRaHTppkYaf4sEyQ5nzWt2ar2dlXuqTVAc+Yzc2BqtFVHXemg11ovAFVOWA1Q2bFYSq1d8uqYcuC1QGOo78O481VmFEp7+Uk9fRXM2qAxVJmSOwk8zEAtBe3r4athjgEaQ/0DXAIuJ6KWgM4EcyzQvnvqPeAU8GMAtgR0oR89G6/Y2PQFcAD4NAG1BHThJ0f6UOWN5iFARgB9nxJQqbXw03dd1MfA4QFM2aYUVLZd+AnmBlXunXcSMKcFTez39JrVHIdq7eU0CdXah+Q61kBXAZs7nVQfqL9GHjjNsiLkQVg9IgsXPoT2vtAh+fr433AjsAzsDn96E17kCWoMVBY3XG99jy/FiaB3x6kN6uuExWJVHydzAmLtHhpD3T6wnNEM5piPnjknOfZE1be9KUyroLJfKajmMC2DDqGaxLQO2odqFnMeQGUf/YdfOT1QYlv/aWIi1MI1szYOnXtgB1U+hQ7qoMoCyuU8oQ6qLKBczhPqoMoCyuU8oQ6qLKBczhPqoMoCyuU8oQ6qLKBczhPqoMoCyuU8oQ6qLKBczhOqDPoXmrbIVfzbB5kAAAAASUVORK5CYII=",__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:icon_15},Symbol.toStringTag,{value:"Module"})),icon_16="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA49JREFUeF7tm0uoTVEYx3/XqzwyQMnA+5HEDGFACQMpioGUkSIDkYmRke6UKMVAipE8ihjIuxh4FUkKiRTyTnmN6KutTsdeZ59z93+tvR3frjs5Z63fWt/vfGvvtdZetwe/pAZ6pDSH4ULFSeBCXajYgBjnGepCxQbEOM9QFyo2IMZ5hrpQsQExzjPUhYoNiHGeoS5UbECM8wx1oWIDYpxnqAsVGxDjPENdqNiAGFdVho4GdgOLgaHAA2AHcF0cX3JcVULPAcubov0MTAPeJbcgbLAKoYOAb0D/nDjWACeF8SVHVSF0HPAiEOlWYF9yC8IGYwkdAqwARuT01T7rDcRwHLgsjC+E+giczUaKtLlYQi8AS6Q91cMuAkvV2FhC7R45WN1ZMe87YCNJesUSeguYI+2pHnYbmKvGxhI6BlgfuIcOBzYHArkE3FEHmcOze+hR4LW6rVhCW/VzPPA8UGAbsFcdZEpeFULt3voVcg+qrQWOpRSgbqsKoRbDDWBBUzA/spXSS3WQKXlVCbUl5mFgfpaprwCb1J9IGXyMtqoS+icWG/72Zw+JrriqFqqS2A9YDczK7s9XAJu6Jb+6Reh5YFmDvV/AFmB/aqPdIHQhcC1H3KfAPDiq424QuhE4GLBkG9lvoxpsgneDUFsM7AlIm9hiERHFcyyhG4BdiYacbVQPCNj5GfjcZhU7gUNqq7GEvgdGqjsr5n0ARomZ0f5PyYWKfykf8mKhKXH/xUMppVCfNolt+8ReLNRwvvQUS23cHLEXhPYq2jdHciQPA0zWF/EPEA0Xa2JftsP2NtJWMTMz0GNgE3C1LDh2/ToKHQiYwAlNwdsmx6RsvzO2lz7z6yh0OvAoENE84Gafo01QsY5CF7UY2quA0wm89LmJWEJbHXQo6uxYYF2g0CngSRGgje9tt+kI8KaNsh0ViSXUj+J09DMUF/bDYsWOOirhxxk70lVcuNWB26LaU4HtgUIHgPtFgDa+/+cO3LYRU7BIaLPDKqwEzpSBx64b66FUpt+TgacBwGzgbhl47Lp1FGpr93vZKZDG+J8BM4DQi7fYrtri11GodXxK9mrYDpOZYDttbPfVh21FVWGhugqtUEm5pl1oOX9/1XahLlRsQIzzDHWhYgNinGeoCxUbEOM8Q12o2IAY5xnqQsUGxDjPUBcqNiDGeYa6ULEBMc4z1IWKDYhxnqEuVGxAjPMMFQv9DSJxblXYNyrLAAAAAElFTkSuQmCC",__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:icon_16},Symbol.toStringTag,{value:"Module"})),icon_17="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABlhJREFUeF7tm0eoJUUUQM+Yc44oRlQwgmEhIuaEKGYXgqKgoAvTRheKoKgLUVAXggHUhRsziCjmgAFMiIq6MaArc86BI1Vj8Xz9rff/fd2fN3VhFvOm+nbV6Vt1Q91ZQpNQAktCtTVlNKDBRtCANqDBBILVNQttQIMJBKtrFtqABhMIVtcstAENJhCsrlloAxpMIFhds9AGNJhAsLpmoQ1oMIFgdc1CG9BOAicB6wM3BTOaSN2sWOg1wLnASsAnwNbA7xORCBo8K0D/Knj8ArwIHAz8EcSpWs2sAP08bfe88B+A94A9qkkEDZwVoF8A640w+RO4Ezg9iFWVmlkB+iWw7pgVa6k3AxdW0QgYNCtAvwLWSTx0RisUbHqFOitAvwbWThB/Td6+tDehPgcYWn0XYIidKqYB9GRgZ8AzLEI2T7HlK3Mo+wZYK/37j8BewEvAGrC09+AnQOe1H/BBxMTG6YgGaqjyWApXlg+adN7CeydI49R+C6xZAN0G2DBZpVDzEeBHFuylwPWBH33pnKKBlvFgEM9/1Aj1mRRbjtPrNhacIrAtgc+AbYGHgC2A1UbO1Y+AE4F3IicaDfQE4O5gC/0NWDFlPx92LP57YPUCqADd3soqwO3AkQV0f9dalwN2B16PghoN1HkdB+wKRFmrC382WWjXukugPwOeu8ampZwFXJsclilqtvzngQMWM9CouU2iRy+et7Sp56aAodSobALcBuyTrNVzXgf69iQvm2vsNCw0am6T6NGzr5oeEKjgDKW65GjgMOBx4P5JXvR/Y2cFqI7Is1IR6MaAoVTvMg2gh6ZYr3YxOwLnAR/XPjBmnOfmyul3A3tDJkOp3iUa6IHAE4UHrVlQ9rY7LSCE0SqzoxGohWYdVe8SDfQe4Ph5rMItezFwwzyezds8AzXMslCio+pdooF60D+SAnFjvBqxCGycuVEKxmueGR2jVapDEaiFEh1V7xIN1AVY1D0W8FyrEbf8fcC7NYM7xggxp5dmVaahte9fwGv/++g0gIZOsFJZCVSLN2vyXO1dZgWoVpmLMQI1yPcY6F36BOqZGlXSGwUlxHxm+w5DqJm59bQIYc1x9GPpKEz7rFNGSwnUGoIOqvcbTxcVbaEG9Y92xKEu0G25L2BBIlK0yrwWgeqgprUb5px3NFBLd5bwusRt+DRwSCTNMZWt6HVVTzf6xblir9cd1S1M822LvwtJM0cX53tGrTF6XYMB9cW7AVZzhFqKi3arv1A5Oy/drFNun4rAm6XY0qzqjXS94T2TRRA/Vrnla5OKyqnUDxvsS3ZM0fmYFFyQLtrMdowpc1qZHxOgqaW/W40/u9Dnh4u6z6onmUYuFqDO46DUlLBBceFWsyADeC0yp546v/JevkZH2JjFAFQQtyZnVl6klYvUGnNc6TmcS3XjQCzTQN2aFlO8Is6XbEIy9PEm03z83hS72m7j33dJZ+r+qapUPuezgs/WGmZ5tYqGttDrgHMKixOkTufJdG/uFUWXOPfL0p9yjM5w9Myt5bHgcUMCPRW4o1iBZ6Fb2SjhzQlWdj5wRXFFvEwC9UN+mm4nZee55xa383iuy7VxnC0mqytf0jlmMEMZ6sWHA3cVLYiGR16BdDUyzGWw1l89InJvkw0OFquj+gIm2CzDfUn7Na8qzk7hnjLRzP8d/DBgDSHHng8Cx8xT14IfG8pCrwYuSlvTQPwSwN8mFe+gzigiBG86TwMemFRR1PihgHptfGUBwsYut2mt6MVvAXRsWTyH3wL2HKoWOuThrfOx661sTngVOAow3uwSm8DOTKmmSUDpiHxmK8CuusFkKAv1vToSA/qc9Rg2uf2fSt1wAtdybVO0+cw7fxtpfTZ/CMH5jJmUPUqRVax5fZShgDpZ/9eG1iSc0dxbSDYq5CYIrXFcfi5Im8Ksry7k1nRe8MY9NCRQ5+OW1RLt9MgdyDWLM5tSbkxB/SBdIosRqHPSwfh/iS5Pt5VaYrmlHWNMmTtBTAAs2Zm25qbamo/Qy5ihLbRcpCU4Cx9HADsA2yWQWuP7wGvAy5G9nNMgvJiATmN9vetsQIORN6ANaDCBYHXNQhvQYALB6pqFNqDBBILVNQttQIMJBKtrFtqABhMIVtcstAENJhCsrlloAxpMIFhds9AGNJhAsLpmoQ1oMIFgdX8DX38IZE9QsOUAAAAASUVORK5CYII=",__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:icon_17},Symbol.toStringTag,{value:"Module"})),icon_18="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAqZJREFUeF7tm7FOVFEQhj8spMGGDkN4AEj0FYgFCY8gNQ3BQg2xoaYxBC00NNT6CCYWhleABB/AGOlsoIECyUl25XID7CznH+G6/2137r9zvvvP7JzsuWP4khIYk6pZDAMVm8BADVRMQCxnhxqomIBYzg41UDEBsZwdaqBiAmI5O9RAxQTEcnaogYoJiOXsUAMVExDL2aEGKiYglrNDOwh0DlgGFoAZYEK8hkFyx8AP4CuwAxwMuqHm80yHPgS2gBXgQU2SwnvPgG3gNXAq1P0rlQW0wPwCPMtIWqD5DVjMgJoF9AOwKlh4psRH4IX6CzKAlp653yrzn8AbYBc4VC9igN4UMA+8BaYbsaX8n6h7agbQd8DLRuIF5lPg9z8G2f66SWCvBfU98EqZVwbQ8is620hyCfisTLpC6znwqXH/d6BUlOzKAHrUGo0e30GZXweolP+vxodlpHokowkpJ0f+tBLMeGg1DFLzy1hsasI1JHv3pubXBaAbwFoPxiawXgl15IGeAGWjUK6yuxk30DoCakep9S6trgslrwag1jPQzCnEDhWPjgZqoNWbEfdQcc8zUAO9TOC6Pt3fAfWH9rpp9eLuMvzftKP6bx3a3AGpYPZ1btpRGegtaI8kUJd80Cnqkrrvet56iqcGAzXQ2BgW7EioW4gdaofaodIqUJeoWk+62Kv6ljrh+67XOaD+k07c9P03shhodByKxqlbSOdKPgoqGtc5oD4sFn20wTgfZwyCiob5wG2UVDDOR8KDoIYJ80sLw9AKxPq1mgCkYUP84tewxILxfjUxCMphVxDIOCw20qANVPz4DdRAxQTEcnaogYoJiOXsUAMVExDL2aEGKiYglrNDDVRMQCxnhxqomIBYzg41UDEBsZwdaqBiAmI5O1QM9BzclZ5Vih6RcAAAAABJRU5ErkJggg==",__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:icon_18},Symbol.toStringTag,{value:"Module"})),icon_19="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABB1JREFUeF7tm1vITlkYx3+fQ4QiiWkaV6hJDoUph6spdyZCCRdOceGUiNTkkOGOKDO4IIcUSojGnXLlUCghipkQ5ZBEIWUY/bNf3/L2vt+7vnc/a2/0PJfvu9b/Wc9vP3utvdZ+dgtupgRaTNVcDAdqnAQO1IEaEzCW8wx1oMYEjOU8Qx2oMQFjOc9QB2pMwFjOM9SBGhMwlvMMdaDGBIzlPEMdqDEBYznPUAdqTMBYzjP0OwQ6HVgEDAN6NhnfS+AasBM40qSGSbcyM7QXsBeYbBJJq8gJYB7wwlg3Sq5MoIcBZWcKU5bOSCHcSLMsoBOBk40Gl/P/ScCpnBrt7l4WUMEU1IqdB2YD/7Q7gk8dBgIHgLFBf8EU1EKtLKB3MgiVYH8BLueMfBRwKdDQxRmUU7Pd3csC+hjoF4z2B+BJu0f/ZQfpSbdi0pNuoeZAjXE70G8AqBaG7cBPbYy1D9Ax+P8D8H/O2JQcHQKN98CzNjQfAMsALYhmliJDqxccs8EmEDJfuFIA1WLQN0HwKSSfVi2OuX2kADoT2A10yz26tAJvgAXAIUs3KYBqfJ2B3g0GqvmuUZtmY30OaF5uy9TmXbMO6vVLBbSWvyHAOOAM8K91IHX0BgDjgXPAjSJ8FgVUOyGtpp0A3Wo6qksNVTB1pKep579sWxrupJLwLQroRmBNEMFS4K8kEbWKLgH+DHxsAtYm9llYSfhmYGUQzCpgS+Lg5E9+KyZ/8pvUispQB2p8GR1oSUB/zV6LdAEWA3qdUct06/4O3M1O/W/XaOS3PHAL+DmDo+dE7fmr9/j9gfvwef4/CkxzoLUXpVdA9wBOD+B1FazRwIXgt4vAGAfqQHPNqrGLkmdoJGYHGgkqtpkDjSUV2c6BRoKKbeZAY0lFtnOgkaBimznQWFKR7RxoJKjYZg40llRku1igV4HhmeYj4Mca+iqv0Tt1nf7LDgKzfOtZe+s5EtgB6LRpBXC2zgWbA6wG7mVvLh86UD+xj7y5azdbB2wI/tqWZWAu0QadtwLLgzbrgT9SOpR2Ua9AdIvuC4K5AqieM6XJx4jAwVxgf0qHRQJV4ZgWktB0Iq+vNlKYvirRXByaDqZrzbWm/ovKUA36b2BCMHqdxO8C9mRFCHmrOFStomKK+cDCqrvvNPCbKbk6YkUCHZyVbBdd86TCChVa3PzegCqeqdmHWZVnyNQxqmJEn+4cS+2ool9khlZ86s2mvtjQnJbSNGfry5J6z7JJfJcBVIF0BbTyTwGGZvWkYfVxM8Gq2k71nteB49mK/rYZoTx9ygKaZ8xfdV8Hanx5HKgDNSZgLOcZ6kCNCRjLeYY6UGMCxnKeoQ7UmICxnGeoAzUmYCznGepAjQkYy3mGOlBjAsZynqEO1JiAsZxnqAM1JmAs9xH6qe1VA6ychgAAAABJRU5ErkJggg==",__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:icon_19},Symbol.toStringTag,{value:"Module"})),icon_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAB3lJREFUeF7tnHWsL8UVgL+HW3EnxYMFJxAgBGuwNEigSHENFlyDQ5G0DQ7FCVYcGlxaIEAIEIK7u7sEt3zJTLrZ7L2/ufctZ1/Inn9I2DNz93y/mZ1j88bQS6sExrQ6Wz8ZPdCWF0EPtAfaMoGWp+tXaA+0ZQItT9ev0B5oywRanq5foT3Qlgm0PF2/QnugLRNoebp+hfZAWybQ8nT9Cv0dAF0Q+AZ4bQS2TA3MDTwNfDeCceGq0Sv0b8AhycoNgasLLJ4GeAOYAngSWLRgTGcq0UCvA9ZJ1h4JHFFg+RLAIxW96HcueMX/q0S/3H+A9dKfPxQ4uuBtXZGPJ72fgfELxnSmEg30GmD9ZO1BwHEFli+ctrqqPwATFYzpTCUa6FXAX5K1BwD/KLDcQ+yZpPctMGnBmM5UooFeAWyUrN0XOL7A8vmB55LeV8AfCsZ0phIN9DJgk2TtXsBJBZbPC7yY9D4HdKHGWYkG+m9g00Rjd+DUAjL6ny8nvU+A6QrGdKYSDfRiYPNk7a7Avwosn6MSBHwIzFgwpjOVaKAXAFsla3cCziqw/I/JsVf1PWCWgjGdqUQDPR/YJlm7PXBegeWzAm8nvbcAAY+zEg30XGC7REOwrthBMjPwblJ6HZhz0IAun0cDPRvYIRm8JeA3dZDMAHyQlF4B5hk0oMvn0UDPBHZMBm8GXFpgvKf6R0lP92m+gjGdqUQD9VTfOVmrP6qjP0j0Oz9NSjr4Rk7jrEQDPQ3QXVJK03dTAjr0ylPAIuMsTQhvZzwF2C0BMUli9mmQTA4YcipmnRYfNKDL59Er9ERgz2TwusD1BcabDPk66ZkXXapgTGcq0UBNhuydrP0zcHOB5abrctnjIWCZgjGdqUQD/SdglklZE7itwPIJUh5U1QeA5QrGdKYSDfTvwP7J2tWA/xVY7juaqVfuA1YoGNOZSjRQM/QHJmtXBe4qtPyXpHc3sHLhmE7UooEeA1j6UFYC7im0+sdUS7oT+FPhmE7UooFWy8huXbdwVTyADC09hKzb563+PTAh8F9g9QZSxvsmUUzvmUjJ48KhRgO1dHxYstLDxUPGWH2XlCc1mTxeem4zxB3pE/EwMDFwK7BW0tFL0Kd1Hmv2Wd5JWaxjAWtQoRIN9PBKLV73RyfdMshkw1j9UwLou96U/FhzAEsPIPUYsArwWSTRaKDW4o9KBt4+xPYdzn5jebd3aV3pSmDj3zNQDyQPprp8keJ0w8zFCgH4nbTWZK7U2v20DePUWaBS5CucevRq0StUl6na3OCKsxTiaZ9dozWAGwEd+ibxE+BnwpXuD6EYntrmo29blzPSN3r0lEYwMhqoTr3OvWJu0+9gziRVX7saUdXN8QATUl1coa7WemfJEyNY9SNA16waDdSwU1jKcNkmnfcmp39QtknHf8Waqa7iqcaaVOEE0UBNjORuEZvAbE9skmotvvrc3qjcytM07iJgi4YHHmJNO6EQU7laNFBTd6bwlIWAZ4d41WrpuKpihj93njQNrVZVq8/9xob4pNFAdcRNMivWhnKLTR1OtUGs+szOk9wo0QRUN8lKQFU+BqYvX2NjpxkN1PKHZRDFbf3qEK+/LHB/w7MLga2HMdl0YD00HfTdHTuCtdHRQC3Q5fab2YE3h7DGErPw6uKWznX9pqH+QPW6vTtij1apDTNZNFBLyJaSldkA4+4msW90v4YH1vVzGbr+2DZHD566TXoMnv4hEg3UJgehKDNVGhjqxrpNmy4nuLpz1bQ+RjdML6Aq76cfzmAgRKKBul1tx1FsYLA9sS7VBtv6s+G27+UNcbtexckhJNMfiQZqP5PfQUVnO4eOVZttINt2CAgnAPs0PDOHahhbDVftg/LHCb3XFA3UVsbcIGYiJJeHMyObGCwVV8E8mDruTCD7bbU3vy5N7pIBQP0T8Jsv1mig+pC5QcyEsZn4LJMAlonNHGWxp2nJdKjMBZg0PrhGxcjICKkq9p2adAmXaKC2g+ucK943yqUKs/Susg0qBHxm5snK6EupNGKGySR1luVTWaSaoDaxbBY/JDKq/2LRQA0bvbhgqi6XOvyvB1VuxPUdfa7Pmjucn0+RlTBzgtoOEmtMXl3M8kIq/tnp3IlEA/VKjfG4VUyLbm57yxn5MpgQXJm6V/nw8v8Z85sodru77a182hdVvWKjU2+myS7nziQaqAeFl7/cjoae1wKGmVn0Fw0tL6kR8RayyRQPJJ13b4/4g2Tx2+uVx6EChTDA0UCz8+0VQ7uSjZayWP79K3Bvg/Wm+TysLC3XQ0v9T90sq6SdSzRQV1FTC6PlYU/r3KlcB9MUOX2ZfNJzOqdYeYFooF7ttvaTxdSalVDj+1xTauLzaK0v1Hq9t0hG8o8YhHCPBprvvnsonZ5q9CV1c/tI107RkHWpG0LojOKPRAP1FW0+8CQeKrncZIbdJR5etyQPYRSmxgzpAmiMZR39lR5oy+B7oD3Qlgm0PF2/QnugLRNoebp+hfZAWybQ8nT9Cu2Btkyg5en6FdoDbZlAy9P1K7QH2jKBlqfrV2gPtGUCLU/3K9ihLmQ2OcqhAAAAAElFTkSuQmCC",__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:icon_2},Symbol.toStringTag,{value:"Module"})),icon_20="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABt1JREFUeF7tmwnIbVUVgL/nnKilaKmhCA444JBTUDbgmDOplIoakTjkQGpUaFlCOA+oqYiKlVMqojY4j9FgUjiFhjjlkGUOqZSSWvE993luz7v//5997zr3/tpecMHnv8/aa393nb3XXmvdOVQJJTAnVFtVRgUa7AQVaAUaTCBYXfXQCjSYQLC66qEVaDCBYHXVQyvQYALB6qqHVqDBBILVVQ+tQIMJBKurHlqBBhMIVlc9tAINJhCsrnro+xzoAsD6wMrACumzIrAo8GL6PAf8AbgXeGMaHtsBXwf+DhwG/CWY3UB1s8FDFwe2AnYGtgc+3HHhryewVwCXAC9kz20K/BpYKP0//3uzjnpHGjZJoMsBRwH7AR8YaRXwb+Ba4PvAo8l7V2vp3By4fcR5Znx8EkCXAA5Pr+OSM1pYNuA/wMPAmgMe+wWwQ5m68tHjBvoZ4HLgI9OY+hrwW+DptO+59/l6L50+awMbA+6tJfJfwGf/VPJQ6dhxAj0QOCPb13JbXwauSZ+bgH91WIiv9D7Al9Ih1uERzktbTJexQ40ZB9CFgTOB/QdYqOf5t+OAl4ZaASwCfBP4LrDgDDqczwjCk78XGQfQHwN7D7D+SuAI4KmAlR0KnN5RzzHA9zqOLR7WN1A95/iWVR4c3wJOKrZ28APrAL8HFuuoT+/US/XWcOkT6E7A1YDBeiOvAHsA1wWu5Cpgl0J9BwDnFj7TaXhfQFcCHgQMkRp5E9gGuK2TZd0HOc9a3YfPHWk8alwaLn0B/WE6fXOD+/IKo4ezC8n8DPANCpc+gK4H3NN61V3wQeHWv6NwgxSbLgPkH2PX/N9ec+9P204v8WgfQK8HPpfBM5lhzPhqj0C7qna9Bvi9STRQPUXvzOWrwDm9rWCWKY4Gaox3dLZGX6t1AQ+k/wuJBmqO0nxmI+YjTykkuSpwGrAUcBFwIWDs+p6QSKCrAI+3Vi2cxwpJ/Ar4ZPaMQfvBwO8K9UxkeCTQdvhyH+CeWiomRtr5UQ8SPdUbVm/38FJDB42PBHoC8I1skhNT0qLUTq+EljwGyT+A76RD7q1SxeMYHwnU/W6vzGhf07OGWMR0QBt1er/63R5mlUQCvQXYIlvd51N+s3TBXYA2Or0wCLYktvT669tkjuFI4OelBk43PhJo+079ceDuIYwtAar6bYEbCub5a1YxsJK6bOEXMu1UkUAfATzVG/lYKpYVrHXu0FKgu6eySpd5vIbm1VE92/16unJ0F73zxkQC/SXwqWx2S8LDpOlKgFp72rJjyUTTvGR4l2/kecDqa5hEArX49oXMMsvD1nBKpQvQf6aS8am8XULuKuYYzDU0Itz8ItJVz5TjIoF6u/laNtOwpYaZgNrYYOnEqmipfAU4P3voxlYip1TffOMjgbrIk7MZTCTnp35XY6cC6qHniT5Ks0I7T3sBsG9Xw7qMiwS6YWqNaeY1IWL93ZO0RHwN3esasWyit1uCHiXJYlvO31J+tNFt3GwbT5hEAtWoJwHLH418GdArSsR97uKUHLk0XTcNdUYV3xZj5fwL90Dy9hUm0UB/0MrMD1u7sb5uPT+yMvmj1BjRwLs1RQhhMFUUDdQQ5uaWhXqcm/8kxS3E1GJegbWWb5NFqEQD1bPcA+0hauSBlHWaZE7Tm5RXzkZ8zb2ElO7vM8KPBuqEOwI/bc1sga60Mjmj8R0HDLLHrFhUo8W7zOgDqBPcCXw6m8ng2zq4ja/jFNsa7wI+mE1q688awfvzPPV9ATUx4rUw129i2M7iJ8ZE1Hu7Wf52463devZb9SJ9AdVYi3XGj7k8BNj73jdUM0h2NH+iNf9lwJ69kExK+wTqFD8BvthagAmJXQGTKX2IJ7p7uDWuXEwl2vAbGYrNZ3/fQK0NCc6O41xMl1kRNaMfWcrQ+2wCy3uqnPcZYBPg2T6+wVxn30Cda3nAXqI2VP/m/dzCm38fRTwArWG5d7flz6m3/o+jTND12XEA1RY91SzPVPuXp79VTcHautNFPpT2Y+/jZu0HiW/HbuOslI4LaLNYG3CPbd1YchAG/79JLY+GN/5gwY/bgj9S+Gj6mMj+bLqeTgXfV/+QyGx8l2953EC1aaPU1ew1tQ/xiuk2MpHr7iSANhAF6o8VBu2tw4C2Q+XbKbIoqYIOM9eUz0wSqEY5v6+vza9+Vi9cnduBZWBjTpMyYcW2QjvmDZ800LbdXhW3bv141h/Rmhw25Gk+hkF3pB8rTMwbB0GfbUCHdYxZ81wFGvxVVKAVaDCBYHXVQyvQYALB6qqHVqDBBILVVQ+tQIMJBKurHlqBBhMIVlc9tAINJhCsrnpoBRpMIFhd9dAKNJhAsLr/AcOWEGT0Tn6XAAAAAElFTkSuQmCC",__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:icon_20},Symbol.toStringTag,{value:"Module"})),icon_21="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA6BJREFUeF7t2r9LG2EYB/Dne0lUOpSCiQGnDC6aoUunDrVu/hMd/BEKRSillFZoRXRRKLVQbB1K54LQpaMOqbaDLnVpFocqBJK794a2RCwh5i2JkWqxkjf35GIuT+Z7v8fzue/dhbsDyY9VAKxpEkYCylwCARVQZgHmOGmogDILMMdJQwWUWYA5ThoqoMwCzHHSUAFlFmCOk4YKKLMAc5w0VECZBZjjpKECyizAHCcNFVBmAeY4aaiAMgswx0lDgwQ6NDTUZSuVgsZNDSrCwgfXtj8yz+hrXMsaOjAwcPXHz18bWuvrZyfGelckNJnL5fZ9lWDaWctAe2PxV6TLU+fNAaCgST9xHec1AM00qy8xLQTt+05aJy6aEqANUPekUtldXzQYdtI60GisruYBOCRNT6em7r2cnZ0tM8zc1IhLD/p3emxFwtZ4Pp/PNFXEY3gbgVYmRdEC5pLJwcV0Ol3yOHtTlrcZ6LEBQF9BNK6U2mmKiofQtgStzVsi0EI8FpvPZDJFDwasS9sZtAaBb7Vr6zarTINhAQCtTn4EwlJPT9dMNps9bNCCZVlQQE+urbug8IRSuU0WnQZCAgVam18TrGWLytNKqUIDJp6WBBH05K/AXthCyrbtdU9ChouDC3pyywK9BdEDv9oaeNDj/634AtKjfqB2BGgV1cIj13GeG57Bxpt3DihR2nXViLGQ4YLOAQV9cpW6behjvHnngBIeuq7zwljIcEFHgAL4HLIwatv2gaGP8ebBBwW9s4ju+3GHr978jA8B04LeOp/YN7477IcsSjmOs9Z4hvnKIIJqC3hDpB/71crT7IECBajycGRSqdyGebd4VgQFtFx7fPdMHt95LgYy4RDGbdve8hzFENDODa28AlmMx2Jz8gqEiLzc5QHsgPSYvKQ7dUo1Blp9jTyfTA4uyGvkf65P5qDYjoStMfnQ4T8X+npBq5/igGZGhoeXVldXjxjuG02NaNlNKRrry2ut4xdNB9AmqHtCPharowPRaN+KJn33vE0rnzOC9LTjOMvyOWMdmJVNEonEtULhYE0T3Ti7BOuRsJXK5/N7dUZdqs1adspXFPr7+68US6U7VKZbGvp3CHjv98MM7qPRUlDuYS5DnoAyHwUBFVBmAeY4aaiAMgswx0lDBZRZgDlOGiqgzALMcdJQAWUWYI6ThgooswBznDRUQJkFmOOkoQLKLMAcJw0VUGYB5jhpqIAyCzDHSUMFlFmAOe4PSI0GZCNbkkIAAAAASUVORK5CYII=",__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:icon_21},Symbol.toStringTag,{value:"Module"})),icon_21_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAkpJREFUeF7t2jFuE2EQxfGZVUo6765dQgMdR+Ae5AYhRW5AEm4QCXIEuAdHoIOGlM7uuqOMdhBdIBajSZ6yEvzdznzP/n5+5efGRyrg0jTCDFBxCQAFVCwgjqOhgIoFxHE0FFCxgDiOhgIqFhDH0VBAxQLiOBoKqFhAHEdDARULiONoKKBiAXEcDQVULCCOo6GAigXEcTQUULGAOG6RhkaEt+v1kUecRFjv5p8PDpqT7XZ7dZ/7bTabpzc380VYvHK3IdwvdsNweZ+sh55ZBHTVdccW9v72j3f3727xchzHH5VLdV33JMy/RMSz3841frwE6iKgbdd9jbDnf8K5NYfTdP2pAtq269dh88c7WW7fpnF8UclS7C4Cumq72ezuqxU3P52m4V3lYm3bvw2L8z1nYjeNTSVLsbsUaOz78d74+TQMZ5WLtX1/FnOc7juzm8ZHv9+jf+Gvi6/aDtBKa7JdQDOh4hzQIli2DmgmVJwDWgTL1gHNhIpzQItg2TqgmVBxDmgRLFsHNBMqzgEtgmXrgGZCxTmgRbBsHdBMqDgHtAiWrQOaCRXngBbBsnVAM6HiHNAiWLYOaCZUnANaBMvWAc2EinNAi2DZOqCZUHEOaBEsW+cpTiZUnPNYrAiWra/6/o3N8eH2Hs8ZM7W/zHlw+wC8/+3oIq/v/mVkQMX/LqCAigXEcTQUULGAOI6GAioWEMfRUEDFAuI4GgqoWEAcR0MBFQuI42gooGIBcRwNBVQsII6joYCKBcRxNBRQsYA4joYCKhYQx/0EirXBZAhm84EAAAAASUVORK5CYII=",__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:icon_21_1},Symbol.toStringTag,{value:"Module"})),icon_22="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAk5JREFUeF7t2DFqVUEYhuE3YBOIhVjFIqRWsNE1GCy0cQOuwM5KS63s3IA7sNBCkjXERtBaLEwVLAzYWMjAvXA5xObO+4dzmO/082Xmud+cE/4d8qgCO2pawgioXIKABlQWkOPS0IDKAnJcGhpQWUCOS0MDKgvIcWloQGUBOS4NDagsIMeloQGVBeS4NDSgsoAcl4YuFHQPOAB2O/f/EzjrzChdXt3QQ+At8BC4Jp3kNfBSytJjKkGfAO+A6/qu4dZcm1oF2pr5pQiz/T7DgX4AHhU0s0UOd+XbB+jX5J3Z2vocOO9EHvKjdBv4OoE7Ak46MRexvOIdeg84nZz+PvB5ESKdmwxoJ+B0eUADKgvIcWloQGUBOS4NDagsIMeloQGVBeS4NDSg3QL7q4SSyf9oDX0FvFiBlowBRwJtzWzjv81HH1SPBHolU7CAymPFCtAruVpbfJoW29B21vKX/2ig7byl/56MCLrFmUuXLPrKl8psGR7QLeH+tyygAZUF5Lg0NKCygByXhgZUFpDj0tCAygJyXBoqgz4AjieZd4Bv5t+pGN+Z+1sPWdpkvee5CbwB7m6E/AVuABc9wdO1cwfdHAOa525ZH4HHduicQS8bVFvn/71q63crcJ0zImjDfAq8tzFb3pxB2/7MK9/emZ+AZ4DezCU0dL3HdvV7P0p/gB/2B+iyhs+9oRW3sjQzoDJvQAMqC8hxaWhAZQE5Lg0NqCwgx6WhAZUF5Lg0NKCygByXhgZUFpDj0tCAygJyXBoaUFlAjktDAyoLyHH/AKQCb1VT5OY1AAAAAElFTkSuQmCC",__vite_glob_0_17=Object.freeze(Object.defineProperty({__proto__:null,default:icon_22},Symbol.toStringTag,{value:"Module"})),icon_23="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAByFJREFUeF7tm2esbUUVgL8HkSpIkCrSa6hCKCFIk4QuEgm996LSpGgQflANKB0NIAT8AYJoQi+hl4QaqgSkxQZYABUUsID5YCYZds69Z/Z9M/sFMyt5ee+dM3vNrO+uPbPK3Gk0KUpgWlFtTRkNaGEnaEAb0MIECqtrHtqAFiZQWF3z0Aa0MIHC6pqHNqCFCRRW1zy0AS1MoLC65qENaGEChdU1D21ACxMorK55aANamEBhdc1D/8+AbgTsBGwAfBGYK9O+vwLPhT9XAbdkPld92Izy0OWAS4H1Cln4EHAscE8hfVNWMyOArgvcDswx5VWPfvA/wG6AHjvDZGigSwJ60/yVLP4A2B24opL+sWqHBDo78CiwYmdV9wJnAI8Dfxi74o8HzAOsBBwE7AzMnDzn/ro08GamrqLDhgT6LeDczuqPCTCnx6itgGuA2RIlZwNHdJSuDywOXAf8fXomnOzZIYH+quOdFwMHFDJMT/1xoutfwELAW+Gzg4EfhX8/A6wB/LvQ3J9QMxRQQ6LfJTN/CLif/qaQUb7yhlHLJPrWBh4Jnus8CyTfrQIItrgMBXS78FpGAx4AvlzYmn2AS4LOV8Lb8F54Cy5M5vobsDDwbuH5P1I3FNCTgO8lBpwFHFnBoK8EL/0l8Jdgn55r3BvFA9C9u4oMBfR6YOvEgj2Bn1ax6GOlKwNLAKsCpyTzuG+61eRGE72XOBTQ3wKLJqtbDXiq92rHP7AJ4Ott2DRKLgf2Gq9m6iOGADov8EayRE/gz1Y4ZU8FvjPJNuZBuA1ww9RxjX9yCKAbA3cmS3kCWH380nqNMBbNAeXcawGmqVVkCKAG2Gcmqy/92s0CeKp/IZnjYeDq8Jkxalo3OAr4YRWaA53yAtwjMUDAZjKlxH3TYksUK05+9t/wgeGZn80U/v8YsGapybt6hvBQXzMPoShuAXdnGGQy8H1gbuDEUAcY9dghwAXJF+b2P+sMtE7wpfDZOz3qrhnL/OSQ2kA/A/wD8O8on88sXNwEbBEeeg1YBPBg6UqaVvrdLsCVnUFPhhDKj98OP6TesHIeqA1Ur9A7ohg+WaDIkVdDRhPHmpv/ccSD3UPPLMzPYq5usO+WEG01HTUtrSK1gRrAX5as3ErP1zIt0SuFGMV08fURz+r9LwKLJd+5zViB8qDaF5g1+e5w4JzMNfQeVhuoKaYGRDEFPSFzlblAVbcpcGuGXr3TjkE8sDIe6TekNlDjT1+/KBZJzLNzpA9Q9dmjMguayKaXgS2B53Mmn+qY2kDNkMyUolheeylzsX2BPgisM0L3+wH20eGAzJx+asNqAnVPS+udnq6fm+CkHrX6PkCtxttKiWI0oLe+ADwNGCoNIjWBfjW0G6Ih9wManit9gHrYOV8U09Dtgc1CZKD3DiI1gR4fAvJoiMH3N3tYlQt0BeDZzt65IWCxJPb9Df7TFkmPZfQbWhPoL4CvJ8vZH/hJj+XlArU3tV+i15N8R8BDKIr9LGuk1aUmUGPDtC5plcc2cq7kAF0w7NNpnLlDuJpjqyPaZ5hkCvvP3MmnOq4WUO8odQ2yBmqPJ1dygJ4MHJco1Cttdwjw18CyyXfGn9X30lpA3bs8hKK4x3kxoY+MAzonYCqbhmXu0bFQ4pUcvTXKIPtoLaDfAM5PjLFYYdGij4wDemgnhTTmNVSLr7XV+9OSCS8CDuyzgKmMrQW0e1B4M+70ngucDKh9eGNMG25RummtIVN6zbFqUSQuohZQK+YeQlE07raCQD3F05qne7NVrD8lc3ixIa1OOcZ9vFoe79y1gFoV8gSOYi3TclwfmcxD9ba06j7R62xv3vprlIkqVn3WNenYWkDNn+31RLGn0/emxkRAvfV8V6LbNNPg3lO9K3poegXHWNSYtJrUAtotDutN9nL6yERAbwxVo6jrWmDbEYq1zauNxp+feg+9r3N36bARVxnHwR0F1BDJS16pI9iEs0rflc2Bm5MPLZAId1QbZdxasr+v5aHfDbl0XMifQxzq37kyCqj5+d6JAgN1A/au2OG07ZHWYn/eiUtz19FrXC2gxoPuaWlKeEe4bZwLtQvUzqmHUbo3jypYG1LZut61Q8KGX/XfFqkFVFt+AHy7Y5RhjfGir6iv7mSXXrtAzwO8BR3FWsHygPfqlflCMcaMKG1b+52dA3v11aUmUK9oe8GgWocxk44hnDHx7zPHT9ewmkBdmLGoVxnTIH+6FtzzYSFaeLYLOojUBqoReqqHifl9uv/VNNCT3HqsW8So1nO1uYcAGhfvBVgPCjuPS4WAO943KmGgv0Zj9ckU17Q0vWBRQn+WjiGBZi3o0z6oAS38E2xAG9DCBAqrax7agBYmUFhd89AGtDCBwuqahzaghQkUVtc8tAEtTKCwuuahDWhhAoXVNQ9tQAsTKKyueWgDWphAYXXNQxvQwgQKq/sfbaMzZCg0nJ8AAAAASUVORK5CYII=",__vite_glob_0_18=Object.freeze(Object.defineProperty({__proto__:null,default:icon_23},Symbol.toStringTag,{value:"Module"})),icon_24="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABxlJREFUeF7tm1WoLEcQhr8bd3d3dyWuRIgTJ8TtIUrc3W6M6EtcCHHiSpwIcXd3d/fwQ8+l6Lu70ztbPScJXS8Hdqqrq/+pqa76u88wirgiMMzVWjFGAdQ5CAqgBVBnBJzNlQgtgDoj4GyuRGgB1BkBZ3MlQgugzgg4mysRWgB1RsDZXInQAqgzAs7mSoQWQJ0RcDZXIrQA6oyAs7kSof8zQCcDFgBmAMYYcG2/Ae8BzwFfDGir8fChitBZgeOADYDRG3vfeeDvwHXAQcCbzrZrzQ0FoGsDlwET1Ho3mMJ3wBbAzYOZ6W9024Dq834EGKc/Nxtr/wQsFdJAYyP9DGwTUH3azwJzRw6+DzwA/NiP4x10xwWWB6aPnr0ELAj8MaD9pOFtAroXcErk1aHAMUmepisdAhwdqe8NnJpuorlmW4BOCbwW5c3zgR2au95zpGxvZzSUT+cAPs003wizbQF6IbCNWcw3YYGfZ1rg5OEFTmTsXwRsm2m+VgFdMmxE9uXtDpyZeXGa43Qzx99hg3o057y5I1T2tYDFzSJeABZuYZMYDXgamM/M/TigFyxws0huQLcHzos8Xxm4N8tqRja6EnBP9LN8uiDX/DkBnTDksSmM81cDm+RaTBe7VwEbm2efhfz9bQ4/cgJ6GrCHcVpFtmpQ9dv9impMSZNaVTzBy1Ezody6Z79OpOjnAnRe4BlAeaySwzrUh918HBXYHNgUWA5QtEsUVWoCFHWXA3+mLBJQvXuU0VWRvxDwYuL4ZLVcgN4FrGK8eBuYB/glwbPFgIuDfi91dUAqxbTR1MlYgPRnNop3A6vWDez3eQ5ANwSuiRwRq3R9gnPrAVcAAiBF9II2A25IUF4/sFBWdSPg2oSxySregI4d8tWMxoM7gdUTPFIp9WAX4kSUnKQT1afcvGwokeqmuQNYzSi9G/L6z3UDU597A3oEcLiZXECIYXqlxiH5oU930UhPkX6iYYtkaz9AkWXlyVDr1tWXcwVb9sUcCchvF/EEVP36O9HnKjJknwRP1wFujPRUIZzRZWzcBUltXeCmhLlOBkSWVKK0MZNXn+8JaMzyfALMCYiYqJNLgC2NkkhhgdxLBJ7I6kouBbaqmygQNK8CUxldN9bLE9Anok9WdZ7tpXut9XVgNqOwJnB7DThrALcZnTeA2RMAlYqiX3VyJUoZqi4GFk9AvwImNh4JoNQzHRXslsVXd1XHRIlRUtdTiTanqgGoA0ZnWnoBlXwNTFI3KOW5J6ByytJlcvqtFCcA0XlV8a4hqhLqOip1QNqlK1HRb+fvNfUs0cvW/DYYEt0eWc0TUH02i5gp+qHoxECpu6okpT6M6111PZZZ6gXKbtGG96/85NVaqgSp5OOwKX2f8LrFje5q9NS2LgFU9WdsQmXPY6F9rJ6dBQioOhkvkDZTG0WVerY1rbPR9blnhGrXVItpu5yTQt1Y56BOJh+OlM4BFOW/Rr+PGaJrp+j3pQORXTfX8Mgn2VfZpKpkYPEEVM7ocEzlUyW6zTF/iIg6Z+MySPr6jFUpqIKQaCfWDm3Tg35PKbOkp3Ol56NbKjokVNnkIt6AaqdWV2SPclX+qAyqk2lCt6S//chHoUvS3zq5NfJFR9jqnlQhuIg3oHJKBPKVkXepXYxay1uA6RJX9wGwVuJFhk7dmOhBUYFukgNQOacjjhWNl6pH9ZnG+bDTQpSLVXTrxXTzTz27gFDzkJL7lHeVPlTKVXIfoCMSV8kFqPKmDshEFFdycLgglroA2dDRhW6DTBsGfRgIZh2lKBemii6OHWuURUyL3erHRtJcuQDV5CI2bBmjbkj5Sp9pm6L0obxuuyiVaaog3CUnoOpa1KPrDmglIo91tNGm6KhEJHQlujuq3V6dnbvkBFTO7gionrSyQvhs3RfTwaDSxf3R76pfz801eW5ARwkdjSWOdcNYLWrqAVvTtSt/PxUI7sqGWkx1YH81NVo3Ljegml9d0EPRjq028+w65wZ8vgugdrQSVQbLJHZTjaduA1A5FxPIyl/iLr9s7HnvgZOG/G0ZJPmwdab5RphtC1AREWLJxzcLUm7dOdMCZVv5uxIRNNqIUmrWgVxqC1A5uW84cLMOHwCIrPCU/YETIoOaW2dJ2aVNQEW5qZDWOZMVkdBeV8J1y8R2Q5pHX4aahG5UoCvIbQIqx9WdiKZLvcgw6GJ1oilaT11bK9I2oFqUbnDohFJEb075IZykptxYcfNjKACV8/rsjw9n6bbf91iY6lud8R8YPncPm8k2hgrQykExS/qXFx3KDfofdcqROrTTv+5k3827ITzUgCa/+f+KYgHU+U0VQAugzgg4mysRWgB1RsDZXInQAqgzAs7mSoQWQJ0RcDZXIrQA6oyAs7kSoQVQZwSczZUILYA6I+BsrkRoAdQZAWdzJUILoM4IOJv7Bz+qFWRPFshOAAAAAElFTkSuQmCC",__vite_glob_0_19=Object.freeze(Object.defineProperty({__proto__:null,default:icon_24},Symbol.toStringTag,{value:"Module"})),icon_25="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABlVJREFUeF7tm1eoJUUQhr81rVlWRTE/mEFfzCiCgooBI6uyBkwYEHMGcwIVs6KoGNbELooZFQOKCCrqiwpmMCfMOSDKD93Q2845t2emZu4dqYIDlzszNd3fqe6u+rvPNNxMCUwz9ebOcKDGQeBAHagxAWN3HqEO1JiAsTuPUAdqTMDYnUeoAzUmYOzOI9SBGhMwducR6kCNCRi78wh1oMYEjN15hP7PgS4CbAtsDawDrAHMAJYI/f4J+A54D3gLeAZ4EvjNmEtjd1MhQgVs1/DZDli0Zm9+BZ4AHgwfAZ80m0ygAncCcEoSgW1BKIIvAS4HBLp3mwyg8wOHAOcAK3TU48+D/5uBvzt6R6XbvoGuBDwAbDSmk++Hofsq8Fny0SMrJp8NwzSx+hhfrwC7AZ/2BbVPoJsC94+Iyq+Aa8P1N2p2fj1gd+AoYLmKZxWtuv5STb+Nbu8L6H7ATcDCWSt/Bi4DLgX0dxtbHDgJOBHQ36n9DhwK3NnmBSXP9gFUMO+oaMx9wJHAlyUNLbxH/TkauLjiy5OL/buG2jVQDfNns879A5wHnAvobyvTu64GNhnjUJG6VZfDv0ugWoBezuZMJeAHAPdYUQz+LwrRV9Wfv4AFk/dpTt24q4WqK6BKjV7MVnNF497GMPcAZlfMmeKnaBToN4E5MM8pGa3+m3WRUnUF9DDghiwKNcSVe1qZou6bEUXBvWGB+jC8TO89O3vx4cCNVo2JfroAqgpItXaatGsBmmk8Z64CfJQBeQ04Nszb6SX1U5AV0dE09KUVmFZUXQA9Azg/abjSITXccjWX+xzoF8DKY4bx8uGLTlOqM4ELLKPUGqiEDg2zqA6prdZDPfY/B/oxsOoEcPKhr9p/taBgmXC1BnogcGvSMlVAKg3bJu1VnW0CVNGp0jatqA4CbjOhma18Fj5VWqp2jmY+pBLfTYDqcbVJeXA0aQsqTU3MMkIlDn+d6ZnrA3Vr89KONQWq2v/15CValJa1Eqktge4SVKLYVg0tLUZNTYuIhuP2wc9S4QsTjIeDWv9u4rxkDo23KwtJVSoJ3A81bWj6nCXQK0PKEv1L5JVQUdfmA04HTptAvVfWIOjR6gCVICNxO5rafnzdhlbdbwn0sRBN8T37AnfXbOQCgHLWnWs+p9vrAN0HuCt5x+PADg3e+Z9HLIFq+KVDXBttEkbq2PXAEXUeaBihEki0wRdNU8CaDd87z2OWQLUgLZN4Xxt4p0YjpRa9kGUe34ci4SngE0A+9wwSnaI5NV3XQlViawFvJzeqhNXC1Nosgf4BLJS0SMl9nfxT4q+miWjatpAqpBIxty2BpzMVSbudSxcSUT6qpD7an8D0wmfH3tYl0CWzRk/U3m/DHny8byfg0TEPXQUck1xX+rPYRC8J1/Vl/zjVgbYZ8oL/Q9ZB/U9RP8q2AJ5PLmp6UOlbYoMY8m0WJeWYAhJNIAVUQ3GUSc/UnBtNJ0nWLaEZVPspvyi1TZsEVGCj6RSJjtmMMumbqb6q9+9YCHQQadMVwHFJh+om9lLVpehH+yAo/lqBc9O+voZ7upBoPr2mEOggEvu2padW7ucyIFKrJGZoRVdapLlvL+DkDKaiWzlwFfwqxoMoPS3EEUl/kgDrmrZctO9fYoMRR9SZXL47K1PvY4c1/80CTs0EFQ3hR4BtSsiEe3Q4TH5KbTDynTpUIjCrxIsVlLZ4N8gkPlVAF4b5OC0UcmDKWyVwaNez1AYnMJdsgWgTT9sksdTTxtrmwC8ZFW1N6PhMlO+URinXjfLdLVlyXgJ1cFsg6lTJJl1+PEf75Adnwm8OSFVdm5Mmg9ykE4TSbeTbw2mPCE61taqfVE0vibqSewa9jawOlhx00AKkQ2RSj6LVySVLQMZ7Bn3QQZ0oPYqjyJHCpFVaWyY6HZeqQHWgjbpXX9jcoR/FUef6Oiw2DrpgKgtQjhxtkIfFYuP7PM6YglXkK9dVHpxKlIM+zhg72OeBW71Tq/l12Tmm2JbBH7hNofqRcIsVIfHhP1owBhoXKv9ZjTFY/+GXMdDozn+a2BFY//FsR2Dl1n/e3SHcQbq2POgwSADWjXagxkQdqAM1JmDsziPUgRoTMHbnEepAjQkYu/MIdaDGBIzdeYQ6UGMCxu48Qh2oMQFjdx6hDtSYgLE7j1BjoP8C1NtlZLgtPvEAAAAASUVORK5CYII=",__vite_glob_0_20=Object.freeze(Object.defineProperty({__proto__:null,default:icon_25},Symbol.toStringTag,{value:"Module"})),icon_26_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAAAydJREFUaEPtmU9oE0EUxr83SoqFFqF4EUTIwR5EsMwkCr3E9qgnoSCIoEJFwYN6UfxzqUr1Ih4ExYJ6EBEKnvRom0tB3RkqiAc9BETwIqKU0tLYzJOtG1ljdpNsdqPB3duSeW/eb743s5P3CF3+UJfHjxTgbyv4fyiQy+W2AzhgrR0iok3W2h4hxBZm7olDASJasdZ+FEKsMPNnIcQ8gMeO47xt5D9UASllLxHdYubDQMf3CxPRA2Y+aYxZCgIJBPCCLzJzrtEqJPk7ETnMXAiCCARQSt1j5iM1wS0R0XtmzgLo936zAJYjQmwAIDzbBSIqMfM2AL1+f0R0X2t9tN4cdQHcnLfWvqmmDREtM/OZbDY7NT09XZFSzgDY4zp0gbTWg1EAlFLvvIBd81ljzMjY2Ni6Uqk0TkQ3mNkFdB8WQuyotyeCAC5bay/6gjphjLlTfY8CUCgUNi4uLk4w87e+vr6JYrG4Wg/AN8dxALer70KIK47jXKpdqLoAUsqnAPZ6g5ey2Wy/u/LtACilrjLzec/HQWPMozAAT4kFXzo9M8bsawpAKfWSmfNeirzWWg/5DaMoIKW8C2Dc83laa30zDMAdp5SaZ+adns0rrfWuZgHcna88Q621/u0k6iBAaBxr8dXbfEqpJAAmAZxz5xNCHHIc52ETCvw7APl8fqBSqVwjoq/MfMEY872rAAKU/uMY9Y9rlAntpNBzACPeZB8A7I/yHQDwBMBWz3bGGDPaKYBfJ0rEwOuZTRljjnUKwP0KuyrEdR1nAKPGmNmOAHhn9Clmvg4g06YKZSI6634Xav0ktgeqEw0PD28ul8u7AQxEhPiSyWRezM3NfYpynEfexBGDbdkscQVajqhFgxQg6C7U4kJGHp4qkCoQOXl+GqYplKZQmkLh/wzTq0SbGdLQPD2FuvkUCi1sNdQ+pgGRC1uNSosxxRfqpq3SYi6XCy3udgJAShm9uNuovJ4kQCzlde8iFdjgALCaEMR6AIO+vsDaNC03OFyjrm8x+SC6s8nnT5HaNquvrxV3JtlY26xxR5eEv7hKg0nE1pTPFKCpZUpwUNcr8ANOPD5gE7l+ggAAAABJRU5ErkJggg==",__vite_glob_0_21=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_0},Symbol.toStringTag,{value:"Module"})),icon_26_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAAB7hJREFUaEPtWX2MXFUVP+e93dnFzmrssnxoDHGUaBsl0XvfbDsVOsW2QjelJXGhVRIjfqOxqElNW5AVKdXWDyARqEZsTCCWxtivZWHFOlV3uvPuvRq/8APYQggghCVIC92d4d1j7vpmvPs6M+/NdmKD6U32j9l7vn73nHvOuechvM4Xvs7thzMATrcHz3jg/9YDS5Ys6alUKucHQdAFAM9KKScRkdoNuG0hlMvlzqlUKmu01lcg4lIi6okYWwaA3yPifkTcJ4T4SzvAnDKAxYsXzy+Xy5sQ8QtE1J3UqBDI5lMFckoAstnslUEQ/BgA3pTU8Aiddhxnx8DAwOahoSE9FxlzAkBE6HneTUT0NYCTawki/p2IlIl9ACgj4nkA8C4A6CciN2ooIj6YTqfXFwqFl1oFMScAjLGvA4Ax3l7TAHC367p3+r7/j3qGZLPZXq31egDYQkQGlL1+k8lklu/Zs8fclcSrZQCc8/VEdF9EQ6mzs3Pd+Pj4E0k0M8beAADfBoDPReh3KaU+nkRGlaYlAJ7nnae1fhQA0jUBiLv7+vo+NjIyYjzQ0mKMGQB32kyI+GEp5c+SCmoJAOd8JxF92hI+J7fbxtUJx8cAYKFSqpIERGIAuVzugnK5/Lh1CV/t7u6+cGxs7JkkihrRmITAOS8CwCLLq5+UUv4oidzEABhjXwaA71hCb1ZK3ZRESRyN53k5rfWYRTeqlPpQHJ/ZbwXArwHg4lAopVKptx05cuTpJEqS0DDG/ggA7w1pTfj0KaX+FcebCEDoZnNJO2dQI/pSyv444a3sM8ZuBoAbqzyO4ywXQvwyTkYiAJ7nXaK1PmzF6D1Syk/ECW9lnzE2CAD3WzyblFLfjJPRFADnPA8AW4koFxG0TSm1uZlwzvn7AOAnRHSu4zgbhRC7YujzRPQrmwYRzeXeIqUsNOKtCyCfz3cfP3789kjKrMlwHOcaIcS9jYRms1keBMEoALzZotmglLqjEY/JctPT00cbtCY/SKfTGwqFwlSU/yQApo+fmpr6helbosREZJqvQ0KIlY16e8aY4XuoXoOHiBullDsagfA8794gCNYholOHptTd3b1ibGzs2Cwv2T8YY52I+DARXRIRYLLNTsdxfiiE+GcTA3JENEJEb2wSLjcqpW5pIsNU+08BwGcA4K2RkDpMRCvsIjfLA9FMEDLf1dPT88VCofBasxjOZrMXB0HwgN1mNKJ3HOcWIUQt49Sjy+fzHceOHTMhF+2XZtWfGoD+/v4LgyB4hIg6rFRmHhzb4jKBuexEdBAA5lmZaqr6wEHEINpGI+IOKeXGONme523SWt9qyX3Ndd2FpVLJ9GT/LWSc87uJyLhtZiHibinlugQKPqi13g8ApsOsrmcR8VErFLXp+YloVUTeHUqpDXE6OOc/JaKrLdt2Sik/WwMwODiYmpiYeLF6gog4lUql3l0sFp9sJpwxtgwRh4noLIvu6Y6OjmVBEJgsdnn4f53JZM6amJjYDQBrIzLvUkpd10xP2If9zXqyvpLJZOabt8NMCHmet1RrbefaWKGGjzH2CAAssE7mKSJappR6nHP+gA1AKeWGcW3S71W2wa7rXub7vslcDRdjzLTdtfvgOE5eCHG4CmCD1vo2y5C1Usp9ca5ljP0BAC4K6Z5wXfdS3/dNLod6AMz/BwcH3aNHj+4iomuq8h3HuVoIYVfhk1RzztcQ0V6L53ohxO0zADjnptralfUipdSf4gCE1fZbRPSS4zhfEUI8VeVpBMDsDw0NOQcPHtxGRB9FxEPpdPrauCzHGDONnmn4ZhYi3iql3FIFYIyoZYTOzs6F4+Pjf40D0Gy/GYC5yF20aNGCSqViQrYKYLuU8qtVANcT0fcs96wQQjw8F0VJPDAXuZ7nLddamw6hCuBLUsrbZgAwxkxm+LkFILbQxBnRbg94nvcNrfUNlt4rlVJ7qwDMYOp5AEiFBI/19PQsiIvL/1UIhdnLhPQ7Q53ljo6OvlKp9HKtEnPOTQ9zmeWFzwshZk0M4k7d3m+nBzzPu05r/X0rfB6UUs7UmBqAOrXgVdd1l/q+L1sxvN13IGzNzWOqVumrNWAWAPODc76PiK6wkE46jnOV7/uHWgXRDg9ks9lLtdb3E1GvZdN+KeWa2m/bMDMin56e9gHgAovBNGL3dHV1bY1rLdoVQuHjZgsiXhtpAp/s6urKFotFc1//k42iJ2sKBiIWiGh+nVP/HQAoRDQCzgaADACcT0QPrV69eqM9YWaMmcpq3rmm6LwspaxNsE0hO3DgwHZENKMTMwCeAIAXzPMTAN4f/s1Sj4gvElE+WmDrPikZY+9AxL1E9J6koYOIA1JK8x6YWeGdMi12GhFvkFJute7HKiIabkH2n4loremxojwNH/UrV66cNzk5aaqzGWjVZqGNlCLiKinliL2fz+fTJ06cmFcqlZ6LhNflRFQD2wTIcQD4bm9v7/bR0dFX6tHFjlXMvSiXyx8JL/cHqrOhMDTMo8U0b3tandKFM9FBRHx75MuOGWr91nzBSaVS99nxPicANpOJ3eHh4XMQ8VzXdV8oFovPnOqHOzM0y+VybwmC4Gwiem5gYOD5Vr7WxHogaZyeLrozAE7XyTesA6fboFb1nwmhVk+s3fT/BoE0lmAtp/yjAAAAAElFTkSuQmCC",__vite_glob_0_22=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_1},Symbol.toStringTag,{value:"Module"})),icon_26_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAABLhJREFUaEPtmV1oHFUUx8+Z3USh2daCxeKLWVCrImqdO7PSZDWoTavEalus9EF8EUlpCylWBV8Mgi9+tGqLVkR88KW62kaltLRFthbT7N57LWKRgCgqvvgVsYlJ0+zcIzfshsm4uzM7mckS2Ps4c+45/9+5596ZOYOwxAcucf3QAmj2CrZWoLUCC8yAbwn19PRcOTExkUXEWwCgLUg8pdRlADgppRwNYr8Qm7oAjLFbiSgHADc1GgQRLxHR2moQjLH1iHi7UuojKeUvjfp229cE0JkfHx8/H0Z8JQAi9gsh3nEHZIxtJaKPy9f+QcTtQojjYSFqAugsEdHJsI4BYDKZTN5RKBS+9wAcJKKdLkiHiJ6VUu4LE6sewAAR7fc4HULEMwBQ8gl2GRFPc85/9NpZlnW/UkonZl5sRHw/nU7353I5vX8Cj5oAlmXtVUq94vI0JKXcHNhzHUPbtjc7jvMBACybV8+IX7W3t28ZHh7+PWicwACIuEcI8XpQx352mUzmtlKp9BkAXOex/TmRSDxcLBa/8fOh7zcCsFsIcTCI06A22Wx21eTk5BEA6PbM+TeRSDxeLBaP+vlqCoBlWasB4AGl1DpEzBLRmipCyTCMXZzzt+pBLCqAbdv3KqX0CbSJiJK+2UWcIqIVUsqZWraLAtDV1XXt9PT0ASLa4ifac/8PIcQ1iEhNA7As6z4iOkJEy+uI/xsArvLsSULER4UQnzSthEzTfAQADgPAFR4RuiSGDMP4VCn1BSI+VuWZ86KU8gW/FYuthEzTvBMAzgFAu+esf4+ItLjZdyDbtjcopY4RUcJld1QIsbVe6VRsYwHo7e1dNjY29jUR3TgXCPEiET0hpRyqXGOMrSGiAgCscIn/NpVKrcvn8xN+2Y/tOcAYe4mInncJmEbEjUKIfOVad3f3yqmpKS3+Bpfdn21tbdbIyMhPQcTHApDJZJaXSiVdHnNZNQzjKc75u25RjLHjRLTRdW3GMIz1nHP9rhV4RF5Cpmk+DQCvukrnfF9fHxscHFSe0vF+7OyQUh4KrLxsGAfAWfergWEYmzjnn7uFmaapV+dXAOiYLQPEQ0KIHY2Kj7yEdPk4jvNX5SmLiBfT6fSqaq/ImUzmrlKp1G8YxoXOzs79uVzOaToAY+xBIjrmKp/DQojtYYQFnRNpCZmmuRsA3nQBPCeEeDmoGE+ZPYmIDxHRCSnl27V8RA2gN6/exJWxTUqpmwINDdu2s47jfFmZVD6dTldzEjXAhwCwzRXY5pzzhtQDAGNsJxG5vz32SilfWwyAEwCwwRXoeinlDyEAdhHRAVcinuGczx3Nbn+RrgBj7AwR3V0JkEwmVxcKhd+WEsA+ItpTFjwqpby5UfHanjHWnBUoN8MGAOBqfRqF7bo1DSBMtqvNiQsg0rZKPVjG2LymmmEYC9/E+gsqqsaW30qZpqnbKfprbnaEAvBmoewraGvRT2Ot+0kiusctvgwwwDl/o6HnQATN3bAQ/5uHiL1CiFMNAUTRXo+IYDSVSq3N5/OXGgIon8ehf3BEJb7cWrlQy18sv5giED9DRN91dHScrZX5SgxfgAjExOqiBRBregM4b61AgCTFatJagVjTG8D5f3u3vFHywOF4AAAAAElFTkSuQmCC",__vite_glob_0_23=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_2},Symbol.toStringTag,{value:"Module"})),icon_26_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAAA0NJREFUaEPtWUuLHFUYPaeGNA4EGUUwILgJwYUmSO7tcRGi40JDNsZZtGaRCP6D7CK6EBdKcOc/kDwgMUhMghCNi1Fwhpn+7iSoBAJhFiKigiSgMHHEPlLS09T09NSjUzVNY9Wy6nyP8z3q3u9eYswfjrn/qAmMOoP/rww45/YC+BTAnioiT/K2pFYI4fu8+gtlwHt/XtLreZUPgyN5wcyO5pUtSuBLSS/lVT4MjuR1M3s5r+zQBEjeB3Axr6EMXEvSQzFmOwn8ama7yiDgvf9F0uM1gaxoeu97PUCyzsB6wOoSyiqdRKTqEhoUrLqE0krIOfcYyWcA7JB0CsD+Lv4eydfyll8aTtInAKa6mGWSbwH4u9Fo3Jqfn/8tTXbLldh7f1jSR1Vt3AoQvwPgRAjh80EyAwl479+W9H4BI5VDSb5jZh/0G9pEoNlsNiUtSJqo3KsCBkj+A+AFM/s2KbaJQP+WmeQVAJfjmixgrwzoDgBHJL2SUHYuhHAslYBzLq653V3Qd2b2LEmV4VFRHZLovb8JYF9X9ucQwhNZBHrOkjxrZseLGi4T770/I6kX9RDChqrZVELOuSSBM2b2RpkOFdXlvT8tqRfEmsDMzMzU6urqk0UjmQc/OTn549zc3L0kttQSmp6ePtTpdC5JmszjUFEMydUoimaXlpa+WJctlYBz7hKAV4s6VhD/WQhhthICyYmsoFO54f1DfalN3EfgzyiK3svtWQqw0+m8C2BnDBlAoLzf6Chm4mEy8BeARjcal82sV/OjIJDsO5J/mNnDWSvxNwAOdgncJ3mo3W7H77DdBJrN5vOSrq3/9Uh+bWYzWQROAogHl+Rzl+SapEcS2ankWAXAGsm73QHq0Q3OkifN7MNUAq1Wq7GysrKQmLwGtl9V50Jb9TrJG5KeCyFs2BUPHGicc/FK+zGAF1MUVpWBTSZJfjUxMfHm4uLiT/0fUw93vfdHABwA8HScUgBO0n9prSoDJH8HsCxpLYqiHyTNt9vtq1tt6R/kdLqSDNSn02kr63b/RvOs8g9SQuN9wZEnOsNgqu6B8b7ki69ZSV6U9NQw0c2SqfyaNcuBUXwv1MSjcDDLZk0gK0JVfx/7DPwL/HmBUZS4HZIAAAAASUVORK5CYII=",__vite_glob_0_24=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_3},Symbol.toStringTag,{value:"Module"})),icon_26_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAAA+ZJREFUaEPtWUFoVEcY/v9nCGgSUTHSQwllDxVaCo0zLxuwhdx6MDlYu9qDh1goNKBILfYgraQoKAXrRVSQ1hx60IbaQ1si6GFLpUmcmSqIoIJJDi0UpFUMpFST+cqsb8v64r739sXdzdKd6/zzz/fN971/5s0wNXjjBsdPTQL1VvD/o4Dv+68S0bvW2m5m7iQiL+XqzxHRDDNfamtrO5fP5+dT5ikMi1VACLGKmU8AGEwSXyGYW57nfaiUuljhuP/CIwkE4PMA/LQTJBx3sqOjY28aNSIJSCm/ArArBGKOme8QUSrpAWwgoq4wMWep9vb27fl8/kFC0tEWcp631t4o2oaZ/wawL5PJnBkdHV2oZJJwrBCii5k/B7Aj1HeLiPqNMXeT5i+rgO/7h6y1n5QkGjLGnE6aOEmcEGIPMx8HsKIYz8x/MvM2pdRPSXKUJSCE+IGItgRJ5jKZzOqlrvyzAPX09Lxlrf0GwOqS/sfMPKS1/jKORFkCUspJAD2FUsV8XWvdHZcsbX82m31lYWHhewCZUI5jAwMDHw8PD9tyuaMIKAAyIKC11lWtREKI9UR0gYjeDIF1TthhjHH7x6K2bAg4ZLlcrnV6evp0uPIx8+XOzs7+sbGxfxZVr3LSSCmfiwK+77/g5lBK/ZHUYlLK/QCOhnb7I8aYAzUl4Pv+TgAjgQ0HlVJfV0DiHQDnS0g8am1tzYyPj/9emqOqFhJC/ExEbwQTXjHGhP0dyUcI8RkRHSwpsfu01sdrSUATkQgmNMaYQlFI2vr6+tbMzs7+VXIGGzXGbG8YAg6olPI2gJcDG/6itd7caAQii0m1v4ElWShQoEnAHSXK7sS+7w9aa11lWJP04wzFPQh+agrlNtzi9qMlW0gI4arE2pTgi8PuG2PW1YuAIaJNSyTwqzGmWG6fSlV1BbLZ7IvW2t0AFqkAYCsRuQsA1+4x83dhosx83/O8E5OTk7/VRYGolRdCNKtQ1S3UVCDm628qEByiUv1SSim/BfB2kOOC1npbpeW2rgr09va+ND8/f8yBbmlp+WhiYmKmoQhUCnbZ7QNNAk9+aFIfp2t2sRWllJTyGoDXg0JwVWudLY2v+9ViFPhcLrdiamrqIRGtCuJ+NMb0JyJQi8vduG9ECPEBEZ0qxnmed1gp9WlSAlW7Xo8DHqz8+8z8BYCVQTw8z3tNKXUzEQEXVI0Hjjjwbssgoo0lwAtDmPms1vq9RcfxmMOYex+rxRNTJC9mdpWo71kXvPV+5IsTBMw8AmB3xbfT4czP8Zk1DrQFcM/zvGtEdC7s+YosFDfTcuiPtdByABmFoUmg3go1vAL/Ar5O6VHdnJyGAAAAAElFTkSuQmCC",__vite_glob_0_25=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_4},Symbol.toStringTag,{value:"Module"})),icon_26_5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAADAklEQVRoBe1ZvYsTQRTPh0swJFooHBwWfoAc+AX5RKNHKi0SxEoLC5srtbGwlPwLihYnggj3H9xZ5KpVCSlCUlyTRisLJTbCGU3AJP4Gdo5lvZnZeXOXucNdWGZ33se833tv3szsxmLRFXng//ZAXAa/WCxem06nd+Px+FEZn4oG+QF4XnY6nW8qXl36EZFAqVQ6P5lMXNCd2WwmYgvV78nfBvOVUAIaTAkRLzx/HTRHRCf0X87n82mCnFRECABhF0ZHqlFAhL71brf7S0Amd+sY+TGRSKxRRkI0B5lMZoMiq5IJDQAe7GMSvlIpnDddmELzNoQ63qEHEDqFqB5SyaFcnwHPBcdx3rdarW0Vf5BuNQIw/gbWmj7u9dFotIUyey5ooOrdKgBUp/swMOUZeRqFwtUFYRUADO75PYwV+5QuCKsAarXaaxj8xgSEVQCNRmNar9dXTEBYBcA8bwrCOgBTEHuyDlQqlSwqyjF/Lus+N5vNWDKZfIqSmsZkvsfl2cTG8wdUp2VsBj/zft4aAygUCs9Rwx9CofRwxAcktouQ6+dyuUKv19vy6zBKIXbogYceQeF+Gs/tdRChF/yFt0YAEO5tVJA/XNl+t3DWj+AYRimEnPyK3FyB0ie4jweVE99ZNE/g5is0VzMYj8cP+AtvjQAwJQDxFg27jS9WDGBkE55mOb9zIcrtVCp1C2P9s9kzSqGdEfbgwWf8Vb86brxop3ogAFCNZ0CtAzAx3joAFIC0l/NaaeNPMdsReIwJSzbeegQwQRf83lRNWD8vf7YaAZyDn8HoL54xm6xUiqoNNzjYGq8DQYU67+12+1O1Wj07HA5PUj/8WgXAwLquy7Yi5K/WVlNIJ1oi3kMPIHQKodwtY++/KvKErB8Tdf4/OHYxaAkglnbpV3ZBLgYQd8B4ScmsySBMIQz6W1OXlB36LqLiZKRMBKIQAE4/m9D3naBTJPIOFeeniEjtlx4Fy+XyAk5dNxF+o5987AdHNpvd8Eom1dZILvJA5IHIAwfQA38BZn0jbysutR8AAAAASUVORK5CYII=",__vite_glob_0_26=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_5},Symbol.toStringTag,{value:"Module"})),icon_27_0=""+new URL("icon_27_0-1f5f1516.png",import.meta.url).href,__vite_glob_0_27=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_0},Symbol.toStringTag,{value:"Module"})),icon_27_1=""+new URL("icon_27_1-a2758876.png",import.meta.url).href,__vite_glob_0_28=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_1},Symbol.toStringTag,{value:"Module"})),icon_27_2=""+new URL("icon_27_2-7d27294e.png",import.meta.url).href,__vite_glob_0_29=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_2},Symbol.toStringTag,{value:"Module"})),icon_27_3=""+new URL("icon_27_3-1445a39a.png",import.meta.url).href,__vite_glob_0_30=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_3},Symbol.toStringTag,{value:"Module"})),icon_27_4=""+new URL("icon_27_4-c754c0ce.png",import.meta.url).href,__vite_glob_0_31=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_4},Symbol.toStringTag,{value:"Module"})),icon_28_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAABXlJREFUaEPVmX9sU1UUx8+5ry3lR4lh772OOueUuBkjLpGEPzSRzZgQQ4IKWUJcJCL+hZK44R/+IFAR5R8DJCrhDxWCwZgQQDHELDFsQvQPk5kgaLIlwCxbWd97FcPmYF3fPeb25+tb2/datpL2n2W9937vZ2fnnnPuPQh19sE644W7Bg4Ggys5h/VE9BgAhQBgOQCIn+ITBYAbABhFxL8YgzOxWOzS3RipKuBgMPi4SbQFCF4koocrAUDEq4DwnYR4JBaLXa5krZhbEXAoFHpgeia5B4g2AwCrdDPbfA6IxxZ4Pbui0eh1t1qugFetWuUdiYx+gEA9ROR3K+5mHiLeIcADLc1NuwcHB2ec1jgCh0IhOTEzc5IInikmhohTBNDHAM+ShFcgKUURE1FatgwhPrkcPGYITVrBgdYhwFoiWlRcB877vN6N0WjUKAddFlj4apLTD0DUYhdBxIsMYY/P5/txdHT0tpNlxHhTU9PCRCLxPCfYRUTtRTSvSQzXl/PtksDi9Jsm/4UAAoXCGAEGO7dv23Y8HA5zN6D2OeFwmH166FA3cNgLQM3WcQSYkCT2VCnoosBpN0j+RkQPFWyG2BdYvGjTyMjIv9WA2te0tLTcN/Hf1LdAtLYAGvGaz+tZXcw9ZgGLA/Z3JPKT3WcR4WBnR8fbJ06cMOcCNqvR1dUl9Q8MfEIEbxVCw/kHm5ufsx/EWcANSvBjIP6ubfFBQ9d75hLUriUrygE7NCDbF9dj79lcJv+riLOJmeRwQehC7Hu2Y826ubasHVhY+tzAz2et7iFCns/rabXG6QILNyjqESB6NS+GkcCSRe1ufZaIEBGp2v9Eyqcnpy4WHETEo3Fd25LVzAGnQpjJLxZkMIab45r2tROAojQ9wmn6nMicEsPtmqaddlpTarxBVV8BTscs49wjsfZs1MgBy6q6nzjl/FTE2Tff2Pakm9DVoCjvAMG+vBXwsN/v63Ubn63wIuR99vmh361xGhkeMDStV8zLAyvqFWshIzHcqGnaKTeWklU1TJx220LgZa/ENo2Pj//pRsM6R1XVDSankzkDIF41dG1FDlgkiaTJ/7BMmPIv8MluLVQUWFgD8TYg9BqadrgSaJER70wnDGsa90jsCVGapiysKMH3OfG9OVHE03Fd2+B2k1LAVr3FC/1bI5HITbeaDYp6Coheys5nyHbqeuyjFLAsq8cJ6GXL4Ou6HvvSrbgjcFroOkNPt67fuOBGV1GCWznxLyzn4hvD0LozwEo/AXTkBj1SpzE+PuBGOPUHF/Ph4otNZLi3c82aD53iutzY2EFJsz8PDAOGoXemgRVliAha84O+NsMYG54H4JQkIlzweb3d5Qp3Wb6/lSAxlD9XMGzoelsGWJ0goiV5l4CAruuT8wWcoY57GK6OxWJXi+2jKMoSTjBhCQSThq4Fsi5xy1pGYsOypcbQUG6yE3gFLlEgxZCVPCtyW1uA4v/csrjEhGHoS++JS2QsfMnv83aOjY3FixlklksADBmG/mitD12aFZwzYflDV5uwJlhvSgy3uqk1yoa1eU8cLiOD1TXKJo75Ss0ZANexNwvsmJrTsXiOi5/07hVltyywY/GTyVZVl5clqrXTldYPgqNEebnf0LQd6QOb+dxNAS/LwR4Cvj+dxaqr0LIcrgt4saDaK1JjY6OSNM2jBCh5JbajmhpY7F/RFUksqLtLaNrKdXTNF8B195CScY36eaqyRg3T5L/W+jEQAG55JPZ0RY+BFuiVSU5n6uK5NQtd7YO2WE/kC9X0QTsLXVctA2sFVTdNGfuNINP2eg0IXqiy7fW9hPjVvLe9il1lZjUWUTQVMdNYpCiQaC7e48ZiMfBafefY9qoViNt9/gdqw6RcQqK2VQAAAABJRU5ErkJggg==",__vite_glob_0_32=Object.freeze(Object.defineProperty({__proto__:null,default:icon_28_1},Symbol.toStringTag,{value:"Module"})),icon_28_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABUtJREFUWEftmGtsVEUUx//n3lLALS/3zt3tgxBLi7YkKlEJiuHhF1Fj0MRiglF8JAZZAx8MwWBilhANGr4gtmqMYgDRpH5ANPpNiI8o0RhBKaRtCoG17d6ZhRZC7OPuPeYu3e7tPtvChiVhPu3OnDPzm/887plDuMEK3WC8uAlc7BUrmsJCBNcwnK0AbgfQA8Je0zDebmtrG7qaSV1zYCFEhQN6H8zr0sEItE8p67mSAQ4Gg4vtuHOAmefngtI1WmdZ1t7JQl8ThcPhsNbc/MHrDjvbAJSNgSGKgdmfrCPQQaWsJ68bcFVV1dyh4eH9zFiWDqERtQC8xWH0AdAT7US/xaR1v9e2urq6ZtC2l5Xr+k/d3d3n8k3mqhQWQjQ5jI8AzMlQVaOXYtHo12693xDDKeXpaExZS5L2xty5VRgYPMbMBhENgrBj5fLl21tbW+PZwMcNvGLFirK/29vrdNtuYKYGZmcJA49nHiwcnjZt6rORSOTfZFte4EBgLcedz739EPBNRYVvzZkzZway9J85D3eZbdte7DhYCOJGBi0EYwHA5XmWy9YIb4ZCoXfC4bDjtcsHXFlZOW9o2D4GYNYYaI2+UJa1Ni+waZp3OsyfMWPRRA4FEXXpGq2NRqNHs/nlA3bta2pqqgcGhpoZvHqs0trLSkU/TlP/yt9AIHBb3OHjzFwxAVgbRPvnzJq5qbOz82Iuv0LArh8zkxCBFgavT/VD56dPK6+PRCLnU7fMyC9DiC+Z8XTWjU70H8CnwNTG4Gc8zkeUkisLTXA8wG4fdXV1U/v6+v9i4I5knxppm6SMvpcNuJsZlW6De1oJtJ01HNeY2zZs2HA6uS/9huBiAbv9mqa5NO7wz54x/lBK3pcBPAaE0K6kdGOAjFJsYHdAwxC/M3Dv6ODlUxpi3d2nEmImK0sK2DQ3s8PvplSlsFKW+xUtTWAhRJ3D6PAAH1LKStwgJalwU1OT/sPhI4PJzzkROpSUC0oW2AXzGyICoHpE5QsxJW8taeC0g2fHlJxS6sAnk/cxESklLVHSwH5DuCFpIr4gomNKWneXLHDimcW4NHpLEL5TUj5WssD+QGA14s5Bz7X2oVLWK6ULLMw9YH5+9Euna08kHwMldw/X1tbO6r946XTyFUPApYoKn5kM5nMBj17U6cFEsWMJvxC7wNjo2Q4HlLK8EeKVJkOYPcwcHDG0CfQJNHSAqGOKpnX4fL6uzs7OwWICm6b5QNzhH0cfrADrGi21LOvXzGhNmK1gfipbhDZS5wB0DuB5HufDSsmH8vgkmsYTDwshVjHoK2b2ZTtsGcBuwMEg9/V6SyGA1HVDAwzeWaZpO6LR6OVcfoWATdN8OO7wt96cBhF6Zs6Y0dDV1dXv7XfMq1mIqkUMew8z3zVe6BG7COnaFhWNHsjmVwjYMMQh7wuciC4TeJWUcjSQz1DYO1DiUTg8fA+Y6+GgDkA9A/UA1wDQck2GiH4B6xuV6vnTa1MI2C/EW2C4iUO3RHSN1nj3bU6FC6nq5ib+aW+fz7bdQA6/mC0vAcAhwqdlur61t7dXjmcPj6S6XgDgmz596r6zZ89eyClKIch87UIEH2HEdzG76meUfoK2bfbsGS0X+vrd/Z1IVbmroKT14GTHHXfmJ9cAjY2N5VLK1xj0hveEp+zpPMCJWNYtGlGzlNar1w04OXAioTc0tDNXqiAFrD8qZe/31x04CWAEgyvZdnYDvDAdikA7lbI2TxY2saWuxjmXr3s4T5w4GWJ21oNoHsDnCNgdCoVa0vNuEx2/KMAThZiI/U3giag1GdsbTuH/AcVTBFpmykTBAAAAAElFTkSuQmCC",__vite_glob_0_33=Object.freeze(Object.defineProperty({__proto__:null,default:icon_28_2},Symbol.toStringTag,{value:"Module"})),icon_28_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAAAnlJREFUaEPtWDtvE0EQnjkHJxFRhHV7ezaWrBQOMg4looHCDWUaUvEHgIY2LaFNjQTiB9CFBjoaF9AgSmKM0kSWjJ29PRnxUB7EN+gCe7EPx/bFj/jIuRvN7Mznb2a/3VuEkP0wZHghAjzqjkUMRwz7GAjnSBQKhanNzfIdIuc6Ic6Ouq1B8iPRLqL2YWkp97JYLB5iNpudb3z99gaAbgRJNP5YfJ+4NH8bGeNPCejB+AEEr4iAz5Axo0oAl4MvH/8KBPiCOjPIK43aE9vaeTh+KCdXZIbxmQiuqIj/A3AymVw4BFhQ/+paLvfW3aGu7SrKx3L5lvJNAWzX6/VtZXPObzqadsG1Ncf5JYR4p3zd8pqmyZuIeX/evhhmnK+RQ4/U4pnpOKtWq7Zrp9NpfW//QHot0vCxFGJN2brBJRDpRzaibVuCKV+3vIyZdwmcF/68EWCcBIZTqdTVZrPpzRNj7FWpVDpw25XP5+NSymXVulgsVqrVap+8tpvmskYUd23HwX0pd14rX7e8A43EWcja+QKsc74KBKudmEaAhrTEoqcKvtiLszOLlUql4fozmUzi5+7e1vHBBOu2EOve+Bh8iwASR4ICME1Ec0NRiTbgAaQqkAT62FGb+VSyNvGAOecrDsBKx83nwHcpxf2Wk60tFonuWZb1w/UbhjFHiM9VrAawIYTY6DQS/9TCP+PTF8NnoRIn1TwfgFnLYTAq9v2HzPHYnOJ62XahGRVin/pEgIdO9DAZbr2UDx3o34T+y/5AIzEqkP3kDb+she4zP3QPKaF7qnIHP1SPgf3s1EmKCef78CQx2AtLxHAvhgb1RwwPymCv9aFj+DfynlZB98CwpwAAAABJRU5ErkJggg==",__vite_glob_0_34=Object.freeze(Object.defineProperty({__proto__:null,default:icon_28_3},Symbol.toStringTag,{value:"Module"})),icon_29$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAC7BJREFUeF7tnW2MFdUZx///mV2pVlKtjbB3F2sbhfRFU1AqaKGAWrQIJi1UU6JGpbVNjWX3LlUD/VSMWvfukkbTqGijxEYLfhB8rQoUI6tFpKFNG17SUnf3Lhpf2qxVkZ15mjP37rK73N2dmXvmztw7h2RzP3DO8zzn+c15P+c5RA38O/N38pn+D3C2ENPgYpormEbidAATBZiofimF32Jx+4ToA9BHFH5F8I5F7IOFfRTsqzsVBw5dz0+q3T2sxgJ8sUO+ctTFAgHmAzgPgjMAsfSWhS6ItwDsJrCt3sLWfzfzH3p1RC+tKgBn2uQLsHAlBAtEsACQydG7ppQGHiaxFerPxVP5Vr4bjx3+tSYW8Fm/kQkfO1gsDq4FcZmI1PsvVvQpSR6F4HnaePREG1sO3sIj0WsNriFxgKesk5n9Dm4kcJWInBK8SJXPQfI/AjxRZ+OhrpXcVXkLRteYGMBNHTLPdbBaIJckyUFBbSH4kmXjju5mbg+aN4r0sQNu6pDLXRdrROTCKAoYl0ySOy0La7ub+VxcNii9sQFuWicXOA7uhcj5cTogct3kG7aNm7tX8vXIdZVQUHHATe3yeVdwlwArIFJx/XE4GaQq6HqLuK27he9X0oaKOVhE2NiBG+DiboGcVslCJkUXwfdg4daeZjxMUiphV0UAZ3IyBcBjIjKnEoVKug6SrwBYns+yK2pbIwfc2CGLxMEjaa21owFUtZk2rutp5jNRQo4M8LxtUrf/TdwpQDY1fW1QUoW+OTd1Bm7fPp/9QbP7SR8J4KZ2aXRdbBTIbD9GpD0NwU7LwrLuFvbo9oV2wMWNgBdEvH7X/PPpAZJd9RYW6t7Q0Aq4MSezRPC06W99Uh2RzOuXiSt6snwtnITjc2kDXFyR2iQiJ+kyLo1ySH5kWViqawVMC+BMu1wtLjYAUpdGKPrLzH5auCbfwsfLlV02YFVzHQebDdxyUYzMz37bxpJya3JZgL0+F3jZNMu64RbkqeaawMXl9MmhAXujZQevmAFVNHAHpKqBV72NOWFH16EAe/NcQaeZCkULdxAy2WURs8PMkwMD9laodmOHWcSoDNwhNblz6nmYG3TFKzDgTE7uEZHWyhbPaCv2yW35LFcF8UYgwGrjwHWxxawtB3GxxrSkWBYWB9mg8A3Y2/IT7DGDKo3AQojy9pSJ6X63Gn0B9jbr2/Ens58bgkgEWdR+ck8Lvu3n0IAvwJl2uVFcWR+BrUZkSA/Q4op8Cx8aL/u4gL0zVC72m6Z5PFdW9v9VU21ZmDreGa9xAWdy8oCI/Kiy5httfjxA8sF8lj8eK+2YgItHWzvNqNmPu2NIQ4ptY/ZYR3LHBNyQk101f245Bi5aVZJv9GY5czSZowIu7BLJs1qNMcIi8YBt87uj7TqNCjiTk1dr7TpJJN5NgFCSr+az/FYpU0oCVhfBHEe2JcB2LSZ8bgKwZi5wyZcL4l76J7B2B/DfRF74DFdk2+b8UhfeSgLOtMmL1X7Lb8BNNoFnlgPnThpe1L1vCxY9BjgVuV8QDlqQXOpWY76Vl47Mcxxg735uv/w5iPAkp110NvDgktI90YrNgmcPJNn6YLbV1fGbI+8nH1fyhja5H5Ax51bB1Mab+taLgJ/PKg143WuCX78ar316tfOB3lbeNFTmsJKrsAkfHcXharlZ78c5v5wL/HRmacC/3SX41Q4/UqojjYo0cFI9Jg8NJzGs5I0dstR1ZGN1FMeflWkCrDxi2VzW08xNA94ZBjjTJpsFstif66ojVdoAE9ySb+WS4wB7oYqIfNKi2ZT7GaUOcCH6T2YgxNNgDa7VLcG0AVYVYuhW4jHAOVEXtH9Ybo1JWv5UAiZ/n89yuQd7AEhDm/TGF0Euus8ijYABHu5tZcMgYHWI/VNH/h6dm+OTnE7AwAk2v6oOy3s1OJOTn4nIvfFhiE5zWgGTvDmf5X0e4IY2eRKQ70Xn5vgkpxUwyCd7s1xaAJyTf0HkzPgwRKc5xYAP9Wb5Japg2kfew//0x1uODloQyakFDLoTTsNn2dQu5ziu7A3itGpKm17AgG3xXNbi+vPQDzDNgNW6NBtzstoVWVtNtTKIrakGTK5hQ5s8Csg1QZxWTWnTDBjgBmZyomJafaeaoAWxNc2ASf6RmTbZWcuXuVMNGOxkQ072QuScILUiqrTqgNzCs4Cvnw5MsPVomd0EfKOh9ImOv/QKOrv16DniAH97B3jhYIIO8pF/VYATscihjrY+sez404963F85Keq05lUbE3Iklzykmuh3k3Bz8J5LgeXnjnsXrnKkytD02F7BqhfLEKApqxcaMdMmRwRygiaZocXsuQmYdHJtAH77Q8H0+0O7QltGgp8awNrceUxQ0gCbJloz5EQ10WaQpZdu4gZZSZsmXXYW8DUzTdLz1alpUq1fE031Qge5UwF+XkQW6vlkkicl5YBfMJsNNXQ36fjqxQ1mu7CGAVtqu9Bs+CevW9Flkbfhb47s6HJn8uR4R3bMobvkgdFjUfHQnRKWlMUOPQUbLiW1o2iycGy2CHgTRL4fhYPjlpliwMcOvpurK3F/hvr1D7u6Yi6f6Xdw3BKHXT7zmmlzfTRuJhr1j7g+qiRnzAVwjQ6OVxRLXQA3IRzihaJTe+kQDiYIi04fxyaLowVh8ZppE0YpNjC6FI8aRkkpqMV16bTNg8cMhGZCGeqqR/HIGTeUYXG6VFPBSH9xEbAyLcFIyft7s/zJ0M/LhBNOWzjh4mDLBASPp5UNrdV3QHClwYT0D+3n2DIGCulfXNkyj3LEhiuYYpI781leVCqXeVYnmC8TmTrUszreiNo8jJVIoMOMCvswltcXr5MLHAfmabukYi73abtiX2wep0wo4LIfp/RqsXleNpF4tT0v69Vi80B04iBreyBalcw88Z4svtqfeC/2xVMg2JOEeB7JcndlrVFNM4jp+Sy7/GgOFBSjsUMWuS62mAej/bg2gjSkWBYW9zTzGb/SAwEu1uR7RKTVrwKTTp8HSLbls1wVRGJgwPO2Sd3+3dhRy9HxgjiwUmkJdk49D3O3z2d/EJ2BARenTo2uoFNEpgRRZtKG8wDJLouY3d3CnqASQgFWStRh+aMOXjGDrqAuD5ZeDarqbcxRL6gEy1lIHRqwytyYk1kCvCwiJ4VRbvKM7QGSHxG4uCfL18L6qizAXnPdIZc7DjYDUhfWCJOvlAfYb9tY0t3M58rxT9mAvZF1u1wtLjYYyOWgGJqX/bRwTb6Fj5crUQvggZrsuthkmuvykKhm2bKwtNyaO2CFNsCDfbLgaTPwCgfZiw5LXFFOnztSs1bAg6NrF+qZADOFCsBZTYXqLSwMO1oeTZV2wF5z3S6NrouNZjHEH2G1iGFZWBZmnjuehkgAK6XeitebuFOArFm7HgUDKQRyU2fg9qArVOOBjaQPLqVUbVCIg0dMvzzcO15/a+O6IBsHfqEOG4+HyRQ0Tybn9cfqhfE5QfPWYnq1nwtgud8tv3J8EFkTPdIo79BAB26Ai7vTWpu9vVwLt/Y042GSUg44v3krBnjAIO+Ml+AuAVakpm8u9LXrLeK27ha+7xeOjnQVBzwIunAk916InK+jIImVQb5h27i5eyVfj8PG2AAPgu6Qy10Xa0TkwjgcEJVOdZ3EsrBW14pUWDtjBzwE9DzXwWqBXBK2MEnIp275WTbu6G7m9mTYkwQrhtgwZZ3M7O/HChI/EJFTEmZeSXPUzXoR/KGuDuu7VnJXkmxOTA0e6RQVTuJjB4vFwbUgLhOR+kQ5rhDN5nnaePREG1sO3sIjSbJvwJbEAh7qrIwK8WThSggWiGABIJPjcSYPk9gK9efiqXwr343HDv9aqwLwyOJ4x4XcImxiBgRnAGL5L7aflHRBvAVgN4Ft9Ra26t4I8GNFuWmqEvDIQqug5v0f4GwhpsHFNFcwjcQkCCYKcTKAiRRMVL/FvH1C9AHoo+BDEH0ieNsi9sHCPgr21Z2KA4eu5yflOjju/P8Hdipmra/K2tIAAAAASUVORK5CYII=",__vite_glob_0_35=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29$1},Symbol.toStringTag,{value:"Module"})),icon_29_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAmCAYAAABTahxxAAAAAXNSR0IArs4c6QAAC+pJREFUaEPlmgmQFcUZx3/zQHaXfcoKlFiIHBuu8iBl5Cg0HgWRRGOCopYxElgUFYLiRRQN6EZLIyinqIAYYilKUiISXfEoIQV4EE0qcikqCriCeMIuolxvUj3dPfNNz8xbspJUrGzV1ntvpnu6++vv+3//7z/t4fz5J192LIW9w8kxAM9rD4U8nmmkPoPvPuTUd0//9nx9Lfxt2tl7sr/ql2ir+qOfmfg0zw3HFP2DOdgF2DmJa/Z5ch7uXMLfahw57/A5O/G8zeQKL9AsN8e7/fG10mTR8BdUN6N242R8byReQQ8tJxB+t4YSA6q26knhgpx7cqHK2IGhM9rEFqR+yM1yDJ14lnluMB93HHEvZljZVjhIaEzzHL2GAh4PUNL9Oq+6eo9dNr4y3uZNi6HQTxvOLlBOyBpUeFrgSY6hYxM3HhrzHtneGtEYKvQU69nWI7I2RPQPokBsZMwBnHZ2A+385YbaftIbYxGjnpVbQkm3M5URdUD2qppBjlHhBNK8o9iuhqHtLlh4UKK/CP+gf0NtXe9L2VA7b2vI2IakwIQLTW7/GNwkNuE+7875V3p+r8uOhb2r8MiFeGYXZHc1FoIW82TIyp2XWOjgSqpXCNyz+KqMGYMMi7fmebHNkJjsPssNTxHWCSM7m2g31DpHAk+9Ak28Hp7fq2oKHtfEgd0B7nDCciEZmCJ3LQhdBwYSYVokSUg4KBqeDlZayLDjq08ZmmnfZTgn+tuNkEYO1jXV83sPW4vvH6N33HXTlB2V7Vy8SAudTPxLAfpY/yL4F7ZzMn9RTM4YLytTJ2Aptf86z+85rB7P11Ql3HFh8VjYOTshgTurv5yINL7yzDTPCJOSzKIuPqYlorTwLbJJCYiQ/WVSc7BWsoKcv9Pze1b5Ef1w8U08KDP1p+Cc3AjXAyU9yOWg3ZHQuRN8rxI2bIDlr0Qbqcb0BY0pbQbdusKa1Ybe2Pl5UFICvXvDCSfC7Bmwf2/EWZvk4KqxsOFteHkJ1G+PQjrh9W64CxqTEubagKH3WIwTwJwA/gwOp9qVNIXju8EXX8L+/VBeBs3LIN8cmpfq3+r/sEOhsiNUdoCyUrP1QP1OGH097NolyLZZQGkJ3Pgb6NIFHpoDy5dFJF4BvnrmnfdAeTn8+VF4cXF0v++pUDUC9u+D6uvhi08F/Urji3L9KfeFU0QeGMOVtKznho0EbmOD7pVw762RQQ70W6EAtR/BOxtg8fPwYa3JwmLy7dvB2LFQUaG98uG5sPQlaNNG/6tF9T0ZTjoF6nbA3Jm6nZrmhUPgyLbwzlvwwiI9q221sP1zTZ9S6YoI6TCJSuql16+ysPbZRPYUZU2CSGZ4Yf++cOMIPbKa/O49sGcv7NkDX38NO+qhrk5/fv45fPwJbN0GW7fCnt0irCQsiI1q3QrGjIGjj9Zt5z2iPe6cQQe6VVG7P82FFS+mrLsI/rm0LjCDNWAigaRUIZKnpVGMoYNg8EDYvAWuuCnCIJsYYsTVCQ0bAW49HJJ6Mx9lsPHjoO1R8OBMyOfhRwMiw+QP1Ub95huo2w4tKqCkFL7aqf/tODUL4B8vR7/dcWJZ2OW2dlM9PL/nUD/gajKEQ490ybKTGeWOqD6//TWc3geWvgITZ0YeFWBUOcyaqK/NXwg1LxoRQowRGriBOlYZpXtXeH0l5Mvh9H7QpAnULIJzL4CzB8IbK2H2NBh5LZzQC5TBnlkAZ5+nDbrkaaivc5iHSKJhssuCLhvCNgsnOKBUWlylxGH01mtm3Q6V7WHOfFggQFwZrSIP8+7XBvzjfHjq2XgSSOVwDheUG2sXqML6rrtVfQrjb4AfngY/NQZ8cDqMuMYY8El4/WUYP0HP4Y4b4NOPtQEtpZJGOxAeGARFmIUb4kwNeJ/KwItmQdOmcNME+KdRfWwZeFgeHjMGfHg+LKxJykehgcRYKrtefFEUITZSnlsMtZt1Ejh3EAwcBG/8DbZtjQwoPVB5X4dOcPwP4KUaWDgv3fvcEq4YLw0xMAvbXJUi3JUUPbBLB7j/Nr3QC6+EunrhYYA0YMwDHe7pwscRrWHalGSSuGcirFmlx2jWDAYPhVeXw7HHZ3jgAnhtGQz4GTz1OOz+WshvskAQyTMVs9VUIu1RJBEn1t1waUgPPOs0uO4Szf+WvhpfcLDIQ+CUPvr6ho2w+cNkG+td+/bD7Dnauw6vgGtHa0Mp7+7USfdTBvyoFm67I/4cRaiVQfft05m/rEz3U1neZvrABj7cPDIOI9JBJOGPUR3JTmwIS+MEhmuEHnjVEPh5/6SnNObK7t0wZLgIcUNrWrWE6dP1EydNhC0fwaRpjRkBFPe8+mIzhqBl1nEkHmbRuMBxLQYWk78zvU8MPGY4dO4Qxyq5NFVOdWinr3yxHXbUmbtWojLUQF3duxfGVQvl2ozTsiXcawyoPPDtdVBZabREp35Py+jWw+3nB+uj+cpqzN4vqgdqTzQGTNPwHLnKxQO5U6kDOrjSws3CIonEniVrT0e8aHV45IHKgKsNBnbsCKeeFm2XnWswL1UnCGVcheObr8P6NUkPl6JuQ3qgWbMo5bLIoplXgmhm6IH5Uhj+C1j4PNRuieAgK4k0L4Ezz4CWFTD3EUG+U2BEhbD1QBXCq5QBVQl3ElyhBfUD+ntyHiw1G2g3r3F6YFopl1IHS0W6IT1QVSJDBmmMGTUONpm6NuGBigf6cOmv4OwBGtTH3grvf+DQG1HWuSG8+k0dvn37RgacOzt6UxdjF8B5F0Pzck1hltRoW387PTCLBzZSD8yXwaOTobw5rHsXxtweGcP1wEXPajrQ4jC4/x6t2qxeC7fdlVLcG3xs7SQRJX+pWz16RAYcbhKDhRVZcv7+Pqg4HKwH2hCXpDlwliL1sPOW8ODqgVWD4JcD9c6OnwR/XxVxplQMNGF6zlkwxJDlO+6GN41nuXqgxMDZM+HMs6DmaW1EG8KffuJEsdH3VKNWrUFpkMoDFZlOaJyuHqoe9d/SAzu1gxnVmu+9txGuuiUKJTXRLAxUE2zWFKZPgDZHwKbNcOM48AvxLKzaSQxUVEdxvr8ugfVv/fsYqEI4M8saw2XdP+h6oDLafdWgjKj+glJuXfzldqoBxTuYH/eDy6t0/xmzYMUKR1QFOneG31VHHqZksodm60RlPfBSE8JpCnoihF3vKiIWp6lVB00PHDUYzj1DL+y5ZTBVVRGqcmiik4naseO6woRxus0fHoO/KLFB0IvSQ+CBKdCiBXz2GVw9RivIklpcMgz6G7L+5Ze6xNv4fjyJzJisx7BUxnqRujDkcijPRyHs1rnyLZ7FRdcLbeIx9w+OHtijG9w8Qisil98EX+3SC5hWDR2Pgl3faFlflVTq77pbTLZ1KoDzB8JF5+syb8p02GrUkmCyHvTpBaNHw3vvwrSpUL9DP09mYQcBU3+mYmDKG8kEGReCizH2wdMDDy2Hdm1gvcmMavARg2GgEDvVatT9G0SVIXdUGbnHcfDaSuf8jDG00vwuvACeeAIK+6LXsJIHrnw1fuAo8GCDad/vqevkRBaWR0nEEZGYFyaNpyV99Voz5+eT74QboQfK+lF9b98WjusSOYF652FFBLdYb6weqLCp3dFwYk9tuGcW6vEkd7X41f8nUFoG61fDxndNqH8LPTDHTs/vNWwt+MfE3wvLIxTuGZQMMdVihRQnEwsx2BR7iR9XNzIzY3haIEUhtgZKYJgIy6L9pXDrcEAXJ+VYHutSjnakCKexOtiEgyWctgiPKRZSUyu2GWLi1tiJTzOf2PtlkT3Duvc/dj4wKXlFc5lqDhftW4Xn52IHeuRCwl1IUa2lccOwEeVXVjh9F88HhvVyIPkVyHk9dLXYp2oGPqO0ctFIPdBSh/+L84FBftDH2wIDhgcs/X7xUwoG/w9ED3TlLks9JPakGVeqPEXb/i+dD2QJJd2jA5aRETdOxmNkEM7hKc6Uc4BZ5wZjpDPlPUMMFrLCvIgeGDsAKeQ39/xNWga2WC3XFWMCQkTIEhQ8r4DnPUBJ1/gRX0k2o0Pm3gAotMcjH9w/UD0wccLhO34+sIm3Ez/7kPm/AP5K8tDKcnwwAAAAAElFTkSuQmCC",__vite_glob_0_36=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_1},Symbol.toStringTag,{value:"Module"})),icon_29_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAADXtJREFUeF7tnQtQVOUewP8fTyFBUN7IQzCvITZ0Sbs1RqY0t8RE4xr4IOGCmEF1VZ49rJicCFJvgRgGsiqKiAyEUXONxSRzvN40yMWSBI0FBIYEUReW17nz33t272Fdds+ecxYfs9/MjlN8z99+j//r+5bAXUwURdkBwGwA8GJ8pgHAQwBgTf+LPbwNADL63z8A4HfG51dCSO/dGgaZyIYpipoEAPMBYB79mSlQ+5cB4D/05ywhZECgenVWY3CAFEVhG38GgBAAWMyYVTo7xzEDzlYxAFQBwHlCCMWxHlbFDAaQoigLAFgGAJEA4M6qN8JnagOAAwBQSQgZFL56AMEB0ss0jAbnYIhOc6izmwZZJvTyFhQgRVFBAJAEAK4cBjkRRa4BQBYhpFaoxgQBSFEUAkNwCPB+SAgwkxDSwbezvAFSFLUIALYCwGS+nZng8rcAIJ0QUsOnXc4AKYoyB4B/AEA4nw7cA2VLAOCfhJAhLn3hBJCiqCkAsBMAHuXS6D1Y5mcA2EQIuaFv3/QGSFGUMwDkAMAMfRu7x/NfAYAEQkinPv3UCyBFUd4AsAsAEOKDmBBePCHkKtvBsQZIz7y9DzA8JTOE+He2M5EVQHrPy38Al+14Ew2XcyybPVEnQPq0zXuADgy2qxMPlg26Tmc2AFFAvt9FFbbQ1POVEEKytBXWCpAWkjO5tv6AlEvWJmyPC5BWz4rvQw1D6O8NNZaI8dQ+bQB33Ee6rdDQ1OurJYRs1tSIRoC0VQUBGtP/CWzWZMW5AyBtzyu9GyYpiURiJRaL7err6ydfv37dHD/Dw8Mm9vb2Q/jx9fWVLVy4sHfBggW3zM3NDWpp1jBz0BS2Ut2eqAngWtpIMGGzr6ysbGphYaFrR0cH+kx0Jmtr65HQ0NDODRs2dE6ePHlUZwHhMuwkhBxkVjcGIG2GrwSACbEk19fXW3344YfeV65cQQ+c3snGxmZo48aNrS+//PJ1vQtzK4CW7WVM94A6wL8BQCq3uvUrVVlZaZ+RkeE9ODhool/JO3MvW7as85133mk1MeFdFZuuZBBCjiozqgDS3rOKiXAA7du3zzE7O9tTvbdmZmaj8+bNuxEUFNQ7d+5cmaur65CFhcVoR0eHeVNT06STJ0/a/fDDD3Z9fX1oixyTnnjiid6cnJwmQnTqBmwgacuDjqrlSm8fE2AgAKDKZtB04sQJm5SUlIdHR0fHjPTZZ5/944033mj38PDQ6j2TyWQme/fudTp8+LDLwMCAKbOzYWFhHWlpaThAQydU8c5hI0yAaJZHN6TBUnt7u3lERISfTCYzUzZibm4+mpiY+HtYWJhe+9jFixcnJSYmzuzq6rJkdvj9999vWrp0qaEjFdBNmq4CSIsu/zK00zs1NdWrurpadUCZmJhQGRkZlxctWtTH5Vvr7Ow0W7du3SPd3d3og1YkR0dHeWVlZYOBxRx03v8VRRrFDJwIwRlnzLp16/zovVYx2FdffVUaGxvbxQWessyFCxes1q9fPxvlReX/i4uLk8bFxfGql0WfFIK1EuAWAFjFohDnLB988IHHsWPHnJQVeHp6ysrKyn4RYtPftm2be3l5uYuybhcXl4GvvvqqgXNn2RUsJoRsVwI8DABCBfpobP7555+fy1xq6enpTUuWLBFkr+rt7TVdsmTJo0yRqKioqGH27NmGDDK6TAiJIHSIWTU76NxyoYoWFRXlpyxtZWU1IhaL6y0sLARTx1577TXfs2fPYricIkVHR7fGx8fr5SDiMLpgBPgX2svGoTy7IpWVlXbp6em+ytzz58/vzc3NbWJXml2u/fv3O3z22WcYZ6hIwcHB3RkZGRhHaMiUgAAjACDRUK18/fXXdvn5+a4tLS0qde3FF1/seu+996S62jx58qRNd3e3+dKlS3ssLS21zlaxWGyL8qWyTltb26HExMQWobaJcfqahQBT0MqgazD6/v3HH398KDMz06O5uRmjTcekqKiotoSEBK1xKW+99Zbn8ePHHbGgl5eXLC8v7zcHB4fh8fpx/vx567i4uEfU/+7j43M7OTlZ+vjjj6PoIXQqRYC5dNSoYJXv2bPHqaCgYPrIyIgmvYrKy8v7NTAwEEN2Naa0tDSvb7/9doxBw8PDo3/Pnj2Njo6OGiHKZDLyzDPPPMYUk5SVm5qaUjExMa0GEG3OIkBBT+BPP/3U9cCBA26ayFhbWw+Hh4d3jLe5UxQFCI8pbDPrcXd3V0B0dnbWCLG0tHRqTk6Ox+3bt1WaDrN8ZGRk+5tvvol2PaHSZQR4TCjjaUlJybSsrCyMXmAmKjAwsG/lypVdwcHB42ocCA81FbFYrNWU5ubmNoAQXVxcxg0Gqq6uti0tLXU6d+6cLVNdxU4lJSVdDQ8Px0B1IdI1BIjxxBgsxCtJpVKLNWvWoJ6rUvBNTU1HU1NTr65YsaJHW+UILyUlxaumpoaVHRIFZYTo5uamNaKqvLxcYTIbGRlRaSlojD148OBFXUYLljBuIMAzAKBxyrOsRJEtKSnJ+8SJE3hFQZEsLS1HPvroo6agoKCbLOB519TUqMpifty3xtlDFdU5OzvL8/LyLk2fPl0rxNraWpu0tDRfuVyu+mLR8pOVlcU6/kVL/4cFAYhWlhUrVsxlDjg6OrotPj5e60lLz7w74E2bNm0Q7W3d3d0qS0tAQMCNurq6MSvFyckJITbqmk27du1yKSwsVAW645dTXl5+QdcMZjGBFAB5L+GCggKn3bt3eygbdHBwGPzyyy8lumS3d9991/Obb75RiCrMsrm5uY2vv/76zM7OTpWPpLi4WJKdne1++vRpe7X8cpFIdEnbniiXy0loaKg/U5XcuHGjNCYmhq/BQbGEeR8i6moUGytLW1ubeWho6JgATQS/e/fuSzNmzBgMCQmZwwR45MgRiaenpzwxMXHGqVOnpjIhshHM8/PznT7//HPVlyyQNqQ4RHiLMSEhIf6dnZ2q5bZ///4GPz8/rYo8GgBeeOGFR4eGhhQbPBMe/rcmgD4+PvLR0VFAiLW1tSqIbACiOe2VV16ZowSPe2hVVZWExTLVlkUhxvAWpJ9++umA/v5+1Sb93Xff/cTG3VhVVWUnEolccc97++23pcy9bDyAOBrcO7dt2zb9+PHjDp6env2ffPJJs7YljGVu3bplsnDhwseUNNCg8f3339fxBPhvQVS5p5566jGmKam2tvYna2trXv5abQC5DBp9KUFBQSqA6Kw6ffr0T1zqYpQ5ggAxdA1D2Dgn9cGWlJRIfH195Zwr1LKEudbZ1NRkGR4e7s9YwgNVVVV8ja4KYwJvc1ZUVNTDEokEpX5F2rx589XVq1fzkvaFnoGHDh2atmPHDpWW5O/v3ycSiX7j+oXQ5RTmLDRC8jKoqstZ/v7+N0UiUSOfzgkNMCoqapZEIrFR9omNnMqi/8GCmPQbGxsnrV69WnXCYcOZmZm/cfW2aTuFWQzqjiw1NTW2ycnJKlshZjh06FDDrFmz+Jj8/2fSp0813k6l2NjYmUxNwd7efnDfvn2/cpX2hZqBGNUQGRk5u6enR+X6RK0mPz8fL2nzSWOcSnhJkFc8YENDA/o9HmHa49BysnPnzstcDhQhAOLBsWnTppnt7e0qjQZVRJFI9MucOXP6+dDDrZ7p1sQGeDvWt2/f7lZcXDzmqitaPyIiIq5FR0d3WVlZsXYi8QHY399PCgsLMfzDlWkdQmCrVq26tmXLlnae8MY61ullLEhoR0JCgs+ZM2fG6KtYP1pnAgIC+nx8fPrt7OyGUS9ta2uz7OvrM1uwYEGvuoN9+fLlfq2trVbKgVZUVPzMtLyganbq1Ck7W1vbYXd3d7mDg8NQb2+vWXNz86S6ujpbpvVFWceTTz7Zk52d3cwTHhYfG9pBAxQkuGhoaIhs3brVU90kr6vT6ofOxx9/7F5aWqpwlnt7e8uOHj36i7IOTYeCrvqfe+657vT09BaBQj40BhfhgSJYeFtRUZFDQUGB+82bN1nZGjXJjhUVFfY9PT1mL7300vUpU6aMKCGpy3Ta4NnY2AzHxMS0rV27FoMjhUiaw9voWShogGVfX5/JF1984SIWi6eqR1ExR4IOo8LCwkt2dnYqSNpGioaI6OjoP0mlUtUSV8+PtsLFixdfX79+fYetrS0vtVKtbs0BljRAPOoNEuKLp3RdXd1D6OfFvQr3LA8PDzmaqPz9/WVmZqwmqmosw8PDIJFIrFtaWiylUqkl1ot7K9YbEBBwW4BTVtN3qD3El4a4Bi8fCzHXH8A6tAeZ0wBRpLkr1xzuceDsrjnQEHkL1vc4DC7dY3fRRlkzRVHGq17/x6zfVS96FqJGYbxsCMDtsiENEd+EMV531fK2jM5LFRRFGS9ca9kx2QDESy3GK//jQNQJkF7KGBFgfHRCA0RWAGmI+FaM8dkTNYisAdIQjQ/v8AHImInGp59okHrNQIaQbXx8jA9AeiYan79TD3/loiAaH2DkQk2tjPEJUAEgMqw4xkdo+fCk7x6jawBf/2AVNM6nPZZl0ZJcBABH7+lnkJmDMT7EzfKr1ZXN+BS8LkJ6/N34YwR6wGKTlfFzGKgiKn8SA2Oftf0cBj5Oofw5DLzrcVd/DuO//3r8fBHuw8AAAAAASUVORK5CYII=",__vite_glob_0_37=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_2},Symbol.toStringTag,{value:"Module"})),icon_29_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAACaxJREFUeF7tnX9MVMkdwL/DL3E1LJ6LlIqc4NUqnFzdpk2jSUO6RBESQkDUWi+GqojuJVZKXX+gfxAghrNSk65BJEdMrSdwRUMjUOM25GL0etrtnTk4azBwyA/BvRM4XD0WmOa7fW99u7cs772dx8JmJ9nsHzvznZnPzrz5zvf7nXkEfJgopZEAsAYA3hR8lgLAIgBQcd/YwhcAYOW+vwaArwSfh4SQYV91g8xmxZTScAD4OQD8jPu8xaj+TgC4x30+JYS8YiR3RjGKA6SUYh1aAMgAAJ1gVM3YOJkZcLSaAOAGAJgJIVSmHFHFFANIKQ0DgEwAeBcAlotqDftMfQDwFwBoIoSMsxcPwBwgN01zOHAaJRotQ6aFA/k31tObKUBK6S8B4A8AECOjk7NRZAAA3ieEfMyqMiYAKaUIDMEhwPmQEGAFIeSpt431GiCl9FcAcAoAFnvbmFkuPwYAJYSQf3pTr2yAlNJQAPgdAGz3pgFzoGwdAPyJEGKT0xZZACmlagCoBIBkOZXOwTIPAOAwIWREatskA6SURgPAnwEgXmplczx/FwC8RwgZlNJOSQAppSsBwAgACNEfE8LTE0K6xXZONEBu5H3gx/B4Zgjxt2JHoiiA3DOvxg+n7XQDDafzXjHPxBkBcqvtBT9aMMTOTlxY9s+0OosBiAryfFdVxEJzzVdHCHnfU2GPADkluUJu7X5S7ognZXtagNz27MN5uMNg/b/hjmXHdNs+TwDPzqO9LWtorvI+JoQUuqvELUDOqoIAA+k1gUJ3VpzvAeTseQ2zYZLq6+sLraqqijGbzREWiyVscnJyxkUN+xMcHDyl0WhsWq12tKCgYGD58uWy9rESRweawnJd7YnuAO7ijAQS5UvLXldXt9RoNK6wWq3B0ko651apVJN6vf7J9u3b0dmkdKokhPxVWIkTQM4M3wQAilqSm5ubI0+dOrWKZW9LSkoep6enK+2dQ8t2ptA94ApwKwAcZdkxV1kWiyVk27ZtiaOjo2gOY5YiIiJs9fX1HRqNZoKZUPeCThNCPuJ/cgDkvGfXlXYAGY3GH9TW1jqcTOHh4ZOHDx/uSUtLG160aNGUmM6/ePEiqLW1NbKysjLu1atXjkdAXl5en16v99rKPEMb0FGVxXv7hAB/CgC4ZVM05efnv2U2m9GeaE/79u17sn///iE5lV64cCH64sWLsXxZrVY7Ul1djT5ipRNu8f6NlQgBolke3ZCKptzc3LVdXV0YdWBP1dXVX2q1Wow6kJzMZrMqPz9/LV8wPj7e2tDQ8KVkQdILoJu0xAGQU13+MQtOb8jOzl7b09PjAHjp0qWOpKSkl9L7ANDe3r5w9+7diXzZuLg4a2Nj42wAROf9ZlRp7COQpeLc0dERfu7cudhnz565XSQGBgbCbTZbEN/pkJCQKUJEqX/fY0wphYmJCYes0NDQqZiYGLdhHVFRUbZDhw71JiYmsgr7sCvWPMDfA8Cv5YwC1zLZ2dmJPT09C1nIYi0jLi7uZWNjYwcjuR8SQv7IA7wKAEwCfVJSUt4ZGxsLYdRIpmIWL1480dbW9jkjoZ2EkB2ECzG7xUgo1NbWRp0/f34FpxaxEuu1HFQ7Dh48+CQvL++Z18JeC0hFgL/gvGzM5KKyPDg4OK2ibLVag/B3uc8+14biszA6OtqmUqmm1SPxdwWU7PcQ4A4AKGJGz40gk8kUYTQaY3Hfevz48a8YPsidasMFrLy8/E3cX+v1+l6dTjeqZL/scTaUUgNaGZSqaGpqCvC5aLVa7c/FNWvWjF2+fPm/StS3a9euHz98+NAeYqJSqezPu6AgxyKtRJUNCPA8FzWqRAUwNDQUkp6e/g4vXK1W20wmEzpsmCedTpc8MjLieHQ0Nzd/vmzZMiX3xp8iQGYrsDsifg6wEwH+XUnjqZ8DHECAGE/s2NyznldiAE5MTMCRI0fi7927p05KSvr27NmzXa4ran9/f2hRUVFCb2/vwoyMjCGDwdDv2lYfTOERBPgJACim+IoBeO3atSVlZWUJPJADBw707Nmzx0lfO3nyZFxLS0sUn6e2trZj3bp1TntoHwCcmBMAq6qqomtqahxmqZycnKfHjh1Du5sjFRQUrLp//z6eK7GnsrKyzs2bNzuFo/kKoM+n8DwGaJ/CPl9E5jFA+yLiczVmHgO0qzE+V6TnMcB/Kb6VE7MKz2OA9QgQQ9cwhE2R5OcA7cYE5uYs4T/h5wDt5izUrZgZVF2HsZ8DTGVu0pcD0NW/u3Xr1qdHjx71qEiXl5d3btq0yZeK9P9N+thhSikzp5IcgGhwNRgMP+LLGgyGrtzc3G+EsioqKn5YX19vP8QYFBREr1692p6QkPCdMM8s70ScnEp4SFCReMCRkZFgnU73E76jCxYsmLx9+/ZnruZ8o9EYfffu3cj169d/W1hY2O/6O4ZznD59Ora7uzs8KyvLkpOT4wQYzfobN25cPz4+7rCgmkymz9Rq9aQiqyOAk1sTj+Ir5ljfsGGDU8euXLnSvnr1alb+WTufR48ehe/cuTOJhxUWFjZ1586d/ygEz9mxzk1jxUI7hKZ2rCsrK2uwuLi4l2XnSktLY69fv+44QaWk64A7Af86tIMDqFhwUU1NzbKqqqoVPDB0MZaVlT12XQTkAr1586b6xIkTq4Su1IKCgid79+6VFbQkoh1ug4twQVEkvA3dmJmZmW8PDw8LXZ10y5YtloyMjK+Tk5NfenJJuusQynzw4MHCGzduLG1pacGAUEd8SGRkpK2pqekLqTJFgMMs7sPbuFGoWIBla2ururi4GKNS5QXCiOwdKhWlpaWP09LSJB9dFVmF+wBLDiDetKFYiK/SUQsKRR8IuXoO8eUg/gYPH4v8NyRnu3XrVsSZM2fiLBbLAsmFPRTQaDTfFRUV9aSmpirpTPccZM4BRJVG0WMO4+PjpLGx8Y22trbI7u5u1fPnz0PFHnHgGQYHB9MlS5bYVq5caU1JSRnOzs7+JiwsTMlLdsQdc+AgKqZYsxx1syxL3EEbvlGU0sBRr9f/kLSjXtwoxH1n4LAhgLzDhhxEvBMmcNzVw90yM+pklNLAgWsPD1sxAHH3EDjyPw3EGQFyUxljZwKXTriBKAogBxEtHYFrT1wgigbIQQxcvOMNQMFIDFz9xIGUNAIFSnbg8jFvAHIjMXD9HQvbXOACRgY78sAVoAwgCqw4gUtoveHJnT1G1wDe/qHo5RUS2omW5MsA8NGcvgZZ2KHARdwS/l5PWQNXwTMCKXAXBF5GwIqp4HUYuEXkX4nxxgyvw8CYGP51GHjXqU9fh/E/jGI8fEs0YCEAAAAASUVORK5CYII=",__vite_glob_0_38=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_3},Symbol.toStringTag,{value:"Module"})),icon_29_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAABwxJREFUeF7tnAlsFGUUx/+v21KEitWK0gVMOWqxKmLFI2AA5bKA3BCJjYKNUgVqYCsaTQwh0Qh2IbSgRUNAU4MpchSBKodSAsQDKodWakEajqUKxQrl6LH7zDfdqW3Z7c7Mziw7yWwySdP9vu+9+e333ve+9x2EEH4WMEesdOJhIjwEIEl6GD2Y0IkYtwLSIz6XmXCZGJdAOAmgTDzMODzTgV8WEHlCpTYZLah7LtvdtZgEwlAAg5k5NhiZRFQNoBiMXbZorD89h1zBtBeoriGAElZz+9oqTCLCC8wYBnBEIEW0fU8eIuxkxufRcVhfMYOua2vHfy1dASWv4Jjq68hghgPgLnor23Z7VEkEZ2x75JXOohq9ZOsCaMj3HFlegkxmvM3gOL2U09IOgaqI8H5iCnJ2P0UNWtpoXidoQPZsfpIJH4H5wWCV0bU+0VFivObKor3BtKsZUHIBt6s+jWwGZoNZczvBKB+wLpFQbHlsd2SVTqW6gOV9FND0Yvcs5Z71bhQA/IgWoaGvQwejbJh6ai79qVa2akBdl/LT7MYGBt+mVtjNLE+gf8mGiWfn0ndq9FAFqKuTpzAjn8Ht1AgJl7IEqiNC2lkHrVOqk2JA8U5+GYw842IapSoHW448IGScc9CnSlpSBEj0HA/jS/PDkZGQJ4LwnJKeFBCQ1+cUmdWs/PUSydxsSA3kk9oEJEarBjdKzOaQlZiOKCMcd6QNKW2Nbn4BiTjnn1PYb56hXCmW1uXo4O33YIC/OMkvILuTc5h5jlaxZqpHRLkuB2X60tknIO/0YU/YRsh60xcRN2OQr2nJDYDExLOsBCVhN7fSG8oNlkZHk1KQ0nqCewOgrk6e52F2Gq1POLYfQeQ466AlzXVrAUjK51xDxc1OWdwseCJVEnsLEprnk1oAsjs5i5k/DIWCEQQ8ageGJACPdwPiY4DOHRsln78CnKsBfjwD7K4AfnYBHg6FVgARveFyUHZTSCn/4U2TnjQ6ExgZAUy9H5j9GJAQGzBOldSrqGYs/wko+A1oMDxdT5XRceghp2+bNIzP5ucBzjfyd0qKA/LGAEl3KgPTWpeyC4yMLUBZlZFaSiFk2rks+qIxmPR+7E7+lplHGCV6fB9gyUigfaQ2OLJe1+oZju3ApmNGaSqZ2XaXg0Y2ARJLMw21OG3UZHRUIrByDGATjkeHj9vDmLkF2FauQ2M+myBPZDS6iyUlSWO7kzOZeZkR4vreDXw9DYiy6QNH1rHezXh2LXDkLyO0luZpma4sypUBFTLzWL1FCYf8TRqQ3FlfOLKepecZz+Qb47iJqNDloPEkloM/WYKqYFc8fcGd0Q94b6gxcGR57+xirD6k908r+aHqV+YhjuKzReKdD+gvAiieDiTGGQuovIoxeI0R2ksuuj/ZnfwSM6/SW0R/O7B5mrFwZJ3HrmUcMGCFnojSBaBFzDxfb0AZ/YF3B4cG0MJiRp4BNkBEiwWgTcw8Tm9AH48GxvUJDaDCY4xXt+r9BpIfKiR7Nh9mcN9gm+8YBYxNanweuAuI6xAaOLLeVVcZv/4NbC5rfK7UB/tG0lB/hOKdfBLMCcE0NyVZmFPoofjTWcBaWAysKw3mrYSPpgrRgy5oTW+IwPiDYUBa39D2FqWvnX+E8dZO7ZkAaaeIPZtrtS7pLB4evnBkiALS/B1KkbYsJy0NaQU0oQ+wYnR49pzWOGZtZWzUMLmVAak2sagIYF860K2TOQCducQYuAqoV5lLkkxMi5OeeB+wfJQ54Mi9afY2xobfVZqa10mrHuZDGeOofCW/xbXEStIwryVQ3J+uPF2q1wsG245I2w5QOaFqDBQ1TDWOZwIdosxlYlfrGb1z1GGWpxqqJ6t/zAFi2pkLUE0d495c1YDSNaU79swAet9hLkDHLzIGrVYHSEp3aEmY5aQCk5PNBeirUkZmkXJATQkzUcXuZFUp19TewKpx5gKUXsgoOq4KUGPK1QtIVdJe5N93Twd6mcTMTlxkDFkDuFWszrZI2mtZ9hneE/hsgjl60YsbGTtU7ZButezj7UWqFw7fHAi8/kR4Q1r2A2PRPuWmJWWiWy8cin9qXXoOZ0ha4DSi9LH0HMzmBWFuImEWLj5J+ByRMFNnVnIv87N5wWtmmre/CMc9oheQmgj06wJ0iQldMCmCwMoa4FAlUFQObD+hziE3N0C/219EIWsDVYANVAKStQWvjS14ApC1ibPlKUWfY7S1Dfh/r+Q3iLE2knsHfH8hlHUUIQAg8bV1mKXZHkV/Pck6DqVgmmIdqFMAyTqSqQCSdahXCSTrWHhgStbFAoEZwbqaQgEkKUViXW4SmJR1PU5gRlIJ64IlhaCsK7oUghLFpEve6jAZkC55GxTskQfvJW97wNhp2kve/PGbUsC2vafQz0zXBP4H4exdkMYGOWoAAAAASUVORK5CYII=",__vite_glob_0_39=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_4},Symbol.toStringTag,{value:"Module"})),icon_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABO9JREFUeF7tm3vo32MUx1+jtbRyTzO0uc1saZLcYm3YEGIjtjUjl8m2InIJfwnlErWL5BpaSIRMLqOYtZBL7mRaMTaaSyS5bOtd58mnT9/fj3zPPp/z0Tn//b7P53Oe57x+53me85znfIaQ4kpgiKu2VEYCdXaCBJpAnQk4q0sPTaDOBJzVpYcmUGcCzurSQxOoMwFndemhCdSZgLO69NAE6kzAWV166P8Y6EhgZ+B9YJOznY2pi+KhhwOvAVsBDwDnNEbAuaMoQC8A7jLb3gIOdrazMXVRgJ4H3GNWvwEc2hgB546iANUUv99sWwUc4WxnY+qiAJ1ja6cM11p6VGMEnDuKAnQ28JDZ9gowydnOxtRFAToLWGpWvwwc0xgB546iAJ0BPGy2vQhMdbazMXVRgJ4BPGpWPwec0BgB546iAD0deMxsewY42dnOxtRFATodeNysfgo4tTECzh1FAXoK8KTZ9gRwmrOdjamLAlRT/GmzWlNfa2onJQrQEwGtnZJHgJmdpAlhisW0qz9rEBWPKtDvpETx0OMAhUuSB4GzO0kzkIdOAV4wiEqSnJtA+yOgo+ZyU3E3MLc/de29HWXKTwZ0hpfcCVzUHpL+eo4CdCKgLJNkCbCgP7PaezsK0COBFYZhIXBxe0j66zkKUGXoV5optwOX9mdWe29HAXoYoKsPya3A5e0h6a/nKEAPAV43U24CrqqZpXHuAewEfA2s78/sLfd2FKC6Nn7TzLwBuBYYCpwJzAcmANtUMHwI3Abct+XQ/DfNUYAeBOg+XnKdJUp0pt/nH8zSMfWsSJUmUYAeCLxj8F61e/lh/9JHtIFpIwshUYAeALzXg8gfwMfAz4C8uDrty+NrgT0BPdu6RAE6HvigQkMAr7bynN/t9xEWWu3Vg5ru9cs1dKtQowDdH/jISMjTjraChzqc6omq2nYvcH6rJK3zKED3Az6xMWnnVq1TL9ka2ABsV2t8CTg2gf5NYF/gM/vzGuDGQeAoZBpXa/8ckI7WJYqH7g0IiuRK4OZByLxrcWn1kU+Bsa3TDJRg1i79hQG5zIL2gfisBuobU075Gq1RwBr7TZkmZZwGku+sdLzaHqbqOcqU3x340gjpqHnHADR3AL7v0XZhpQK61ZkfBag+WFCALhkMTq+waSOwK/BtqySt8yhAFbR/Y2NSyDRQ0uN6QFFAVULVk0YBukslJafycK2JvUS7+Zhag+70yxV0604aBai+T9JmI1GRQym+rQKaBqjuKax3amBRgO5oJyCNScW3pVa0wFPm6e1aQP8noEx/Sfu17p2RgG4P/GBEVCtaShsLJKXnLqkRuwK4JQTFyiCieOi2wE82LtWGqka0SPUbpvLbMivKDfcJYxSgw4FfjNZJgIBJdAWi9VRJkSK6zFMNfnk+lJNGAarE8a9G5njgeWAesMi+/yzQtF6qbKd4cyiYkdZQbTq/VYAqFKoXO+jrEBXi/hiOYsA1VDecJTOvM/3oGrTFtin9FRlmJA/VGqkwqC46t+tsrxvQTkiUNVTj0Jm8Kqq517l+XSdI2iCjANVwvgJ2s9tPleKUAtwu8QxzUhI0XWEo666Qqe6tnYEayUM7A22wgSZQ539jAk2gzgSc1aWHJlBnAs7q0kMTqDMBZ3XpoQnUmYCzuvTQBOpMwFldemgCdSbgrC49NIE6E3BWtxnf06ZVfEeSgQAAAABJRU5ErkJggg==",__vite_glob_0_40=Object.freeze(Object.defineProperty({__proto__:null,default:icon_3},Symbol.toStringTag,{value:"Module"})),icon_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAm1JREFUeF7t27FqFFEchfEvRgUhgp2SF7BTJJWkS6EWWgsWvoRlep8ldQSNGrAJCBYiWPkCgjbaCFoE5Q+zECOzc2dyCGP4FtKEO2eZ3569s3vv7Ao+ogIr0TTDEDRcAkEFDQuE42yooGGBcJwNFTQsEI6zoYKGBcJxNlTQsEA4zoYKGhYIx9nQMw56F9gBvgLXw+d6KnFza+h94BnwBbh2KgLhJxFU0LBAOM6GChoWCMfZUEHDAuE4GypoWCAcZ0PPOOgDYLfhm9I6cAe4B1wAHgG/wjaT4v6Xhl4ENjvAQrxx7GxvAR8mCYQPmjPo7SOAW8DaknPfAN6HbSbFzRV07MkI2iO2WG0SdKyAoCGxgRgbGnYeAj0E3gLPgRfAG+AK4Bw64i1fq/d7HeIr4PuRY78JurzSi4b+BJ52iPVx6HfPYYI2zqGte0qCChq+6ggq6CiBuX71dA4d9TL2Dx57o4MXJefQUPUaY2xoI1TrMEFbpRrHCdoI1TqsBfQqULc91t9DYNXFkXFX+dqEq/2kAqz9pJvwz6+oXW0aWG2qFaXtDnFoP6miBB2xfNcyXQgqaEtPTj5maMW+7xlsaKChP4BLwDnn0OGrfN+Ij912SG2JHHS37LintGRmqI9GhbV41OLHa+Bl9//Px451cWRgmq238BPgfIf4Dqidzr6HoCe/bv2VIKigYYFwnA0VNCwQjrOhgoYFwnE2VNCwQDjOhgoaFgjH7QOXgcfAp3D2pLi53Yoz6STmdJCg4VdDUEHDAuE4GypoWCAcZ0MFDQuE42yooGGBcJwNFTQsEI6zoYKGBcJxNlTQsEA47g9MKqNV5KiOuwAAAABJRU5ErkJggg==",__vite_glob_0_41=Object.freeze(Object.defineProperty({__proto__:null,default:icon_4},Symbol.toStringTag,{value:"Module"})),icon_5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAypJREFUeF7t28vLTVEYx/HvK4oSMZFSIrkO3E0YSkYm5lJKMlRMGMiljBgYGPoHZKQwMDSRW26RW6SUTMmdnlqyHc5519r7dzrr1G/Xqbe3Zz3nXZ/3OWfvtZ69J/AhFZiQZnMyDCouAoMaVCwgTucKNahYQJzOFWpQsYA4nSvUoGIBcTpXqEHFAuJ0rlCDigXE6ca1QncAx4G3wHaxSad04wq6GzgPvAYWdhIQD64RdCMwE3gKvOkzX4MWFMJdYDVwADhj0AK5PqEG7W74VwaDGvSPQI0nJVeoK9QVKq4Bgxq0R6B5Yb8MWAcsB64Br4amlZF43E5KU4EVwH5gH/Ad+AnE7+MI0K0Z8x5aSM2gh4ArwPr02pBWUDMGaDwCVg1NKyNxTaBLgEA7DczP+Nv/F2JQYC9wCpjTErE5zKDAQ2ClADNSGBR4AiwVgV4HtohytUpTw3doV9CPwAMglqxn08+tMBSDxg30E3AP+ApsThvQsWP/Q4GhyFEz6OeEdxO4lV5Rid8A79gP+O+fA/YAz4Abqek2zzv23T4vUxofW2/fdbP8Z7RBDertO3ENGNSgPQK+bCooCZ+UCrByQg2ao1QQY9ACrJzQNqCzgOgt3QdivT+yo4a1fO/kJwOdBhwETia8l6lBF3O5COwcmSZU+TRyL2i0RjY1XmuB6X3QvMHcgIn1fLSCLwGLgKi82cDcgoozKLANOAJE5cWNtl0OgwJ3gDVdFBtjDSruKd1OPXzR/6c8TQ1n+a49pZj1h3TJdAy4XM6gGzGOoIH3Pj398S51OZ/X0leqHTTw4jIqekq/e0uPgV1+rKb/p+pqOtNH8y1WOovT5dIJ4Gi6Iax3tHebBnxLxZ1zcaPDi7TymWylFKkMWvC1b9ACrJxQg+YoFcQYtAArJ9SgOUoFMQYtwMoJNWiOUkGMQQuwckINmqNUEJMDGpvR0QqJR2q+FOQeemgNa/neSeaADh2m7RvUCHoYWABcSA9ytZ3bSMbVCDoSCNWbGlQlmfIY1KBiAXE6V6hBxQLidK5Qg4oFxOlcoQYVC4jTuUINKhYQp3OFGlQsIE7nChWD/gIiUd9VSi7pUQAAAABJRU5ErkJggg==",__vite_glob_0_42=Object.freeze(Object.defineProperty({__proto__:null,default:icon_5},Symbol.toStringTag,{value:"Module"})),icon_6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAyFJREFUeF7tmkvITlEUhp8fhZFkqBgZmJiYGbpkRChFoZD7RIlyLdcwMXTJrTCRMjGQkqEZQzJUylRE5Naq8+fzdb59dnn/s7e/dw+/b/WetZ797n3W2eeM4SElMCZVsxgGKjaBgRqomIBYzg41UDEBsZwdaqBiAmI5O9RAxQTEcnaogYoJiOXsUAMVExDL2aEGKiYglrNDDVRMQCxnhxqomIBYzg41UDEBsZwdaqBiAmI5O9RAxQTEcnaogYoJiOVKOXQWsA+Y31LPZ+Aa8Cqz1pXAGmBKS/zLRutnptY/h5UCegQ4m8j+KbA8o7qYmPfAjERsAH+SoSUJKQX0KrAzUcFrYGFGhQuANx1xO4DrGVqSEAOVYPwjYqAG+hcBL/kGh/dQ8cq4BOxPaEabsx24nYiJNukusLEjt03APXH+I+VK7aGLgDvAvKHMIp9ohWKkoAbMW8CWJvYH8HFEH7oW+DDZgabqOwRcSEAN6NEGbWtivjaN/eO+oKWuU8qhXbWPghr5XgZ21QgzcqoVaOQ2DHUPEFtFPLLGqMqZ4w6pGWjkeBC42GLnKmHW7tBxjseBUwNQvwOrgCr2zOHJrt2hU5vWaMNA4r+aG1Kqperaoyfs/5qBRmsU0Da3VJ/Tp04YtP/xLh8TfQPY2iQfyzwa/bgpHUi0VEUgDl60RodGTlcGjve+AbHkHzaJnwMO1wq1JNBpwMwWS50H9ja/fwHWtdyATgInBqDG2er9Fq1PQOy5vY1SQJcCD4DZiUoDxmrg2YiYY8DpDlJvgSXAu76IlgIaTzu7E0XGe6V4BfK8A8RR4ExHTOy9Nyc7UB/fiWfYQA00j0CpPdQOzZuf7CgDzUaVFxjnmdG8jxrRUq3PkJretERzErGLgRcZWpKQUks+rrus5RVIFBUt0yMg+tCcMRdYkfgUJz7H6W2UAtpbgX1fyEDFxA3UQMUExHJ2qIGKCYjl7FADFRMQy9mhBiomIJazQw1UTEAsZ4caqJiAWM4ONVAxAbGcHWqgYgJiOTvUQMUExHJ2qIGKCYjl7FADFRMQy9mhBiomIJazQ8VAfwNusINV6IQKSQAAAABJRU5ErkJggg==",__vite_glob_0_43=Object.freeze(Object.defineProperty({__proto__:null,default:icon_6},Symbol.toStringTag,{value:"Module"})),icon_7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABclJREFUeF7tnAWobUUUhr9nodiKWFgottiiKCYGoqKoKGJ3t9iJohiY2I2BDSqiInYrFrbYiYqB3fLDDDzOOwfO/ve6+8y7zMDlPh57/TPr22vvPTNrzZ1AbaEEJoSqVTEq0OAgqEAr0GACwXI1QivQYALBcjVCK9BgAsFyNUIr0GACwXI1QivQYALBcqOM0CmABYCPgX+D/XLkpgTmS+P5zxGQzSiBHgacDVwH7Ow6EGh3FHA6sBVwh6s7SqAnAicBjwDrug4E2p0KHJturm6y1UoA+iiwjjX6WKMMdA/gSle6BKCPA2u5DgTaZaD7Ape4uiUAfQJY03Ug0C4DPRg439UtAehTwBquA4F2GegR6WNpSZcA9GlgdWv0sUYZ6DHpa2+plwD0WWA1a/SxRhmoZh+nuNIlAH0OWNV1INAuA9Xv413dEoC+AKziOhBol4GeCRzp6pYA9EVgZdeBQLsM9FzgUFe3BKAvASu6DgTaZaAXAQe4uiUAfRlYwXUg0C4DvQzY29UtAeirwHKuA4F2GejVwG6ubglAXwOWdR0ItMtAbwB2cHVLAPo6sIzrQKBdBnoLsK2rWwLQN4ClXQcC7TLQ24GtXd0SgL4FLOk6EGiXgd4KbOPqlgD0bWAJ14FAu3HzyL8LLBYIxpXKQG8GtnNFSojQ94BFXQcC7TLQG4HtXd0SgL4PLOI6EGg3bqZNHwALB4JxpTLQ64GdXJESIvQjYCHXgUC7DPRaYBdXtwSgKnRY0HUg0C4DvQbY1dUtAeinwPyuA4F2GehVwO6ubglAP0slMK4PUXYZ6BXAnq5oCUC/AOZ1HQi0Gzfbd18C8wSCcaUy0EuBfVyREiL0K2Bu14FAuwz0YmA/V3eUQFUoppTtJ6ms0fUhyq74FMhUqcRG+aLFgRmBqYHvgW+AzdL/d7WW10xig7TMze/sP1M9qBYX2qVXSdCFwIHuXRqLCJ0jpWFV8zn7EAMb6xSIIOppGLaYoqg0siDqDs8wBMh8yYPAhg2uH/bS6VNZYtPd90OA84btpPe6qAiVjkoA9zIG0mreN6C/mQHVnTrJP90ApUGsFgX0ckCFqk47GjjDMRxgo/f0Qy1KJPXOV62A1SKA7p8ec2sAwNrAY65xH7sTgJNNPX0s5wRGdmhBX299VKYxHfgdmAX4w7TvNdM24JstxtMqhazBtI3Qu4DNW8Bo7UBP36pLUgWy21SnqnpVu7UBOivwLaDzRk7TY6USnFcc4wE2n7dYxj4AbNR2LG2A6t2nIzFuOwc43DXuY6ePkV4djk8/pZJKZWBbNafz3KHKZ9zouhfYEtBKJbJpo2WuhoJ6UnTY686Gdn0vbwNUgs83rO38K80IdGpN/45uZzWMen0UdwRuixpIW6A6G6kP0zD1nfelQtZ3ogbfR2c64B5gvSH6UG2/dpXsOWe/PtoClaY2QeSANjvWB7Tkk+7fgKqTH04/ms500XQIVis2weot8fkVuB9QZvPuNvPNQY5EAO0CktvHbClFrZv+NfDhWJ98Hu9A3Rth21WgNrr+hhXoZApUHwe9z54MHn9xcl1GqMpbtMWnUpebgJ/HkIb8WiktJTWNchcgjYfYJVANToW1qhDWrpB26rU60arpu8Yjn9RAu1b6QwYbA5umbbjjgNMCtIeW6BqoBqbJt/7eiE6raYNFSz+VhWuXR+c+NfFXAZk2Ogb9cZeZUpHuUoB+dDxcp/E0B1X7MeXWVTzbaRsF0OygoBwEKIcjsL1N63yB+Q3QElFNUahrtRHSr2k5q/SFjmirZqrzNkqg2Vkl9DYBtkiPa5MEX9b4AVAa5oIU2Z2DzB2WAHRi56dNy9jlU85eGQGViyunr1eDlrP/pFWPlrU6yazfzwC/jIziRB2XBnQQE43TzvN0CXpyAdolk1Z9VaCt8E1qXIFWoMEEguVqhFagwQSC5WqEVqDBBILlaoRWoMEEguVqhFagwQSC5WqEBgP9H+5Y/lXTTkDMAAAAAElFTkSuQmCC",__vite_glob_0_44=Object.freeze(Object.defineProperty({__proto__:null,default:icon_7},Symbol.toStringTag,{value:"Module"})),icon_8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABz9JREFUeF7tnGWoNkUUgB9bscUGW7G7u7sVsTvBAhVRMVB/qIiK2N2Jhd3dhd1iYIKJjckjs7J83rs5u3fv9+6By/3x7szOPHv2zJlzzuw49BKVwDhRe+s7owcaWQl6oD3QyAQid9draA80MoHI3fUaOkBAJwLmBGYHZgNmAiYGJgAmBH4CvgG+Br4A3gQ+AP6KzKhUd13SUGGtA6wCrAAsGcCVmdAvAexTwAPAw8C3ZTqoe+1IAx0P2ADYGtgEmLzuhMZor7Y+C1wDXAd8Gbn//3U3UkAnAXYBDgbmGmaSfwKvA28B74U/gXwX/n4GfCDjBzMwLTADMD0wBzA/sAAwC/y7gbG/+4GzgNuBv5uA2zbQcYG9gOOA6caYkBN8BrgDeDJo1o8RJj1lMCErAisDywPvA6cCVwC/RrjHf120CXTZoB3axrQI7zLg1rC4xJzfUH0JeP1gYhYBTgKujKWxbQD1tVQjDw+vnpNU8y4Bzgdea5pgRv+ans0BwfpmPFZ3LE0DnTksCK7cCcgzgVOAr+oOPnJ7ba12WTessjQJdDHg7rBQuNqeBxxVd8CVZ9pSw6aAugD4CmmvXGj2BV5oaU4jepsmgOqc3xxcGTXy5JHevbRJODbQJYBHgc+A7YDn25xMF+4VE+iswNPAi8C2wA9dmGDFMeiZuBEoLbGAThpg3gccMgpf8SmArYDlwp87LDcaunfuzHSnzgWeyCMcC6gr+MvA2Xk37Njv+qH7AYcB0xQYm/PbP0thYgDdOGwjLy4woC5dsipwNaCvXEb2DhuSIdvUBWpAYmngrjIj6sC1GwI3VQgPOnQXXR9GI0AN9v7eMCDtm0EN7ZtBZu21u6y3w8bBSFQZmSd4H/ZbRV4BFm0KaJUBFW2zUFjg9BiM0A8nNwAHAJ8X7FjNdP9eVa4NXkwjGlp1UFnt1Ho3BAZTjHUWEdMfRvldkbNE7VSz65i69YB7RouGqom3hPBaEZDpaw4Nu7KsdgeFwEzZvpPrdZs0P8MGp+s8qfSgdDkMGE8WcjgfVvRFfX23rDhbt7tb5LS9s+LDslvzVdrOd7PuURWoC4OOsC7TUoC7pLQYBjNoe2zYhhZhtE0I9RW5dqhrMm1baGBW1CxqWfktPGgDPplSFqip3SOBAwsm1NRUbVvegqHd9NqyPmF6cjsDl2fMVnOS5KHyuKR/VzM3A+4t0qgM0LmB24D5inScuuaMsApnNTMl4etYVXSjzOFnxQ9mLPBgx7y/LtkewCNFB1YUqK+JDq1R7bLyakgxZLW7ENi9bMep63WtfOWzROAm54rIx8DxwKXAH0UaJNcUAeo1BgcMGlcRn7LuSpYYhF6mSufAVcAOBdrq1/pwldNDlYkLqX8uqkL0d/903ittWIoA1Tb5pKqKhnyjnMZOpor2W8CwY8FQ28IBlEPx4T1XdUJZ7YoA9cau5FXFVzkvcGJu3AWvjJhT37UgTPvtBNB5Q+VGmYmmr/0oVHC4UmZJmSoOvQE9DSNFZdp1Aqgr3AUVaTrZTYNnkNWF0fE8w6+7YybgRuAcQL+wrHQCqC6PAdgqckwocMhr66uelMMcHcyD2dKpQtb0E+CNEq/2cPfrBNAqWzU18wjgxDyS4Xd3XUkNkxptSU4T0gmgBgPc6RQV7ds+WdGYITpSG5MokSWNbh6akE4A1R9zIHnyDqB5cDXX3pURfcCk/MXYgKWGTUgngBpndKvpguBE3b7pCCc1QP7utsz/VcV6zqQQVn81NwBR8UadAnpCsIsV55LZzIDIp+EKcz119vRZN+oEUFdXK4GbBGqcwLCaYnl4Uwm/9NZzxHZKbQDVpCQmw6iTFXtNyMAANQr+UiCYma+pSXlggFoqbk2Usm7RQG4FuAMD1OrmJIBrKaT1UU3IwAAVYpKWXTscfemB1iCgM59sN9cKJ+BqdDds04HRULOn1wcMawIPNkET6ATQZKfUpB+6fUg5y3EN4KGxGWgbfqgpjCT9u3o48NoE005oaBtAdwon6YS4WpmUbUnqAwM0nQS07tJ0dRMyMEBNtCVJPH3S2scDh3kaAwN0N+CiAMHKtsebUM+urPJt2FDTzFaOKCsVOWlREfjAaGg6s2p1ise9m5BOAG3DD90zdarC/JXfC2lCOgG0jVc+7dj7tYUk8hQb6oKps/ljdYDZtEeSmPOkh4VjTcjAAHUhSlwlY6N+xaYJ6QTQNmxoK8kzwENqnpL2ZIlf4knyWFEfXl71XRtALWO0nFHxVF6TR8KnDmeeGvt+Ux7QNhYlT7R9H4BaNjmqv/zQBaCOweo7v+nkJ4gsqhi1kge0jVdeeH6fzmo77elIfnao9oPsClC/NuZ3706reGCsNohYHeQBbcOGxppLJ/rpgUZ+DD3QloG64i4evqhYtdY+8pC73V2ehnoc0WsyT+B2e4rtji4PaLujGQvu1gON/BB7oD3QyAQid9draA80MoHI3fUa2gONTCByd/8AEGSZZECOlg0AAAAASUVORK5CYII=",__vite_glob_0_45=Object.freeze(Object.defineProperty({__proto__:null,default:icon_8},Symbol.toStringTag,{value:"Module"})),icon_9="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA/9JREFUeF7t22/IT2ccx/E3w2oZigkPxgMxNERKS0upjbYS7YFQIimtkD8pkoglNTzSltSKkgdsUfIv5c8IUVtk/k62Vh6glH+J6VvXXb8HP+d8zn1/z/md+F51P7o/v++5vq/76vyucx06EcNVoJNrtShGgDovggANUGcB53KxQgPUWcC5XKzQAHUWcC4XKzRAnQWcy8UKDVBnAedysUID1FnAuVys0AB1FnAuFys0QJ0FnMvFCg1QZwHncrFCA9RZwLlcrNAAdRZwLhcrNECdBZzLxQp9D0H7AN8AJ4B/nPt3L1f3FdoFuAiMBv4FRgCP3RUcC9YddDGwraHfrcBSx/7dS9UZ9BPgBtCroeuXwEjgL3cJp4J1Bt0BzG/S51Hga6f+3cvUFXQscAHo/JaOpwG/uWs4FKwjqM3pDPBFRn9/A8OB5w4GriXqCDob2CV0uQbYIOQqjdQNtDtwHRggKDwFhqbtlBCvJlI30E3AygKt7wVmFMiXHq0T6GDgKtANsO3ROmAR0DdHYSJwsnQp8QJ1Aj0IfJvmvRZYn1bfnpxe/gTGAK/EnkuN1QV0CnAodXoXGJa+wW1+9uhp26is8T2wvVQpsXgdQLsCV4Ahac7TgV8b5j8JOJ7Tz8P0+Qdi36XF6gC6AticOjwGfNWk28PC09FPwMLSpMTCrQbtl57XP05fRKOAa03mbqdNlyHzP6rZPdRuDX+IvZcSazXoL8Cc1NkWYFlGl7uBWTkKp4EvS5ESi7YSdDxwNq26++kemHXWOSht+m1blTVmAnk7A5GneKxVoHbd88C4NOW5gK3WvGHnoUtyQnYQ/RnwJK9YGb9vFeg8YGdq6FKC/V9o0F6H3AZ65GR/AFYL9dwjrQA1jJsNT0ATgN8LdLYK2JiTf5FOo+4UqOsSbQXojw2vMdrzLP4RcAvonyNwAJjqolSgSNWgdm+zR0XbzD9L97p7BebbFl0A/Cx8bjJwRMi5RaoGtebaNu52lmlnmu0ZH6SDFDu+yxp2FPh52uO25zqFP1MlqG2TzqUZ/pe2SR35JrbXIPuFjpcDdpupZFQJ2hM4ld5afgfsc+jQ/kD2h8oaj4DegLKL6PCUqgS1yX4ItG3QOzz59Khp/6IkaxtlOwjbSVQyqgYtoyl7bWL30k+BgWk12ubeXuTZtsl+Xpdx4WY13wXQqqyk6wSoxKSHAlS3kpIBKjHpoQDVraRkgEpMeihAdSspGaASkx4KUN1KSgaoxKSHAlS3kpIBKjHpoQDVraRkgEpMeihAdSspGaASkx4KUN1KSgaoxKSHAlS3kpIBKjHpoQDVraRkgEpMeihAdSspGaASkx4KUN1KSgaoxKSHAlS3kpIBKjHpoTevLW1V8CzwHgAAAABJRU5ErkJggg==",__vite_glob_0_46=Object.freeze(Object.defineProperty({__proto__:null,default:icon_9},Symbol.toStringTag,{value:"Module"})),icon_arrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAAAXNSR0IArs4c6QAAAcRJREFUOE+d0s9rE0EUB/Dvd6In7w67JoZQFNGDh/wB5iZ6UdEURdBDwVNREATBS06CICqCtFJBVFBQQQUR8WLb+D+0giJIMzP7D5jmh/Nkwm5ca9JY9zaP9z773rwhAERRdIEiB1vWzpKUEPvXL47j3d77R0qp88aY74y1nvHAAgCCvOecm90CVvLeL0GkAvKbUuoQoyh6IN7PZAiVumutvTQJLRaLu/q93hKAqZBLsi3AETYaDXV/fv6hiJwbosBtmySXx6GlUinud7uLAuxJsXUqdcwY84EhMEDn5h4LcDZDFHnTOHdlI1oul6Nup7MoIntTrAPyuLX2/eCcFdTr9cKn5eUnApwZIuQN59zV7FypVPR6ux2wfSnWFeCEc+5dbrrfPQS02Ww+hch0LuG6TZJrU1rv/EF+FJH9GaZETraS5G1+imGHWbBWq237vLr6TERO5Tq9BeAwRA6ksZ4qFOrGmDcbr+QvMCQM0JWV52GcEYvpU6lpa+2rUUsbCYbEarW6vbW29hrA0VzhT5CnnXMvx72AsWAo0FrvIPkVIhqAELiz2XP6Y8vj/piiXwC8cM5dnPTgN+1wUvGW7vB/sFDzCzQzsAEDKeLUAAAAAElFTkSuQmCC",__vite_glob_0_47=Object.freeze(Object.defineProperty({__proto__:null,default:icon_arrow},Symbol.toStringTag,{value:"Module"})),icon_check="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABT1JREFUaEPVmmlsVFUUx39nplRaSpBFk+kCisUAMUaChkU+gAVFjJSC1A1BRcFoglgI8YMmJGg02BZcE1wisgRpUSghgOBCDLIEPhiCoqFEhJaKYdNCWcq8Y+5MtzfrezNDcebb5J7l/z/33nPOvfcJKfjlV2qWpYwTGGPBQIFClJ5A9xbzjQhnFWo98JvCDx5he12ZXEzWvSRqoO9H2tN/kWKFYuB+Vc12Y0tEmoBtAjXeLGqOvShn3ei3yromkLtMs+UCZZbFAtDWCCfiu4OONHo8LNZuVJ6YHSDm+OeYwNQq9e48xkwRFqqqz7EHF4Ii0qDKwlF9+ay6VPxOVB0RyK/UPL+yAdW7nRhNWkZkv1eYVFcm9fFsxSWQv1SHWX7WX6uoRwNoZsPjpaRuruyNRSImgfwKnWYpnyjaNV4krsW4IJc8wvN182RVVKLRBgx4v+rKawHMrU2vyFPRSEScgcCyucqO6xX5UIKBmchgdKTlFEbAbFhL2dfZaz7erAT2hHBP6Ma2EQikyuPs6bRsEw912FTI/lEFDO+YYm0EfOU6C3SZW7udKy+zG+bLx2GV2FRYzlP7f1s64ZMgDeRQ2Fqx22Ygr1Jfsyxd1LnRDHorGQijb4GuGe3evzoE245ERuPxyOv1ZfKGGQ0QMI1ZcxN/pq63cR6G+SOhbER4Mnx5i1L9a9Ts39glm36mAQxo5lXo05bq587dpkZyZAFUTQWP2AlsPqw8tzG2D4/IM/XzZHlAM7dCTaswKTWwnFm5sSt8Nx183e3gGxqVohVw7lJsOyKy4cQ8KZGWw8gpt/28M5jRpT6dCBMG2MFbqpRWw67j8a2b84RH6CO5FTpRVWviq6ROYtqdsNic30J+7+1V3t7p3I+IFEtehS6xVOc6V0tOsrAXbJ0G2V3sBH7+S5m4Bq5azu17RJaKr0K3oDreuVrikple2PQE3HGzHfyFK8q4lXD0nEvbIlvNEjqsqoUuVRMSXzgaZg0NXzpztijroqbM6K5EpFZyy/WUor1jIXrgNpgyuF3i0lXYcRS+PuSchylUqyeDhKTM9YeUlzY7t9NRUpDThsBlRTNjmZg6GN59MDxylbuV8l3xnffOgu9nwE3d7DaO/6OMXQGNV+LbiCQhyBVHBIxyMmlvZQkU9beD91tKyVrYfyIx8EarlUDcJWSETeH5djrkuiw8M4fAovvCZ698l1K5O3HwLQROu9rEI/KhutR56R/UBzY/CTdk2AnsrVOmVIGlSRIwm9htGn11FMwZFh7RBduVVQfaAZnO0uT723vbZf+9rBR9AfWNyYEPaJs06raQeQU2Pg5DfHZgTc3K+FVQeyYI7K0imHFXONEXNikbf08BeAIrYWlCrUS/HrB9OuRk2gEe/Ft5aDWMuRWWTwoHv/ag8so3qQEfnAApTriZmzII3p8QDrLqF2Vsf+iVZR/742yw2jY1p4ZAWzNnzCXaTn8wASYPinu5R7NfeXgNHDiZGvAt0Q+20+ZPogeanMxgT1/QIzaJN39UPtyXOvDGku1Ak8yRcqgPNjwGXk9kEjuPKY9WQ5IZM4S92I+UgVlI4lA/dzgsuDecwJmLwZR58kKKox96qA/sgySuVUzw15XC8Hw7iWdrlK21qQVvbugiXqsYN8lcbPly4MtHYEBL4XrnJ2XJntSCD1qLcrFlhpK9WszKMAUOTp6HIwm9eMUhLHGuFo16Wl/utvJP6+v1NhLp/MDRkUTaPjHZllO6PvK1kUjnZ9ZWEmn90N0xO6ftpwahJSZtP/aIVCuv5+c2/wFFT3oflyizvwAAAABJRU5ErkJggg==",__vite_glob_0_48=Object.freeze(Object.defineProperty({__proto__:null,default:icon_check},Symbol.toStringTag,{value:"Module"})),icon_collapseIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAATlJREFUWEftlD1OAzEQhWdMICJtstayUi6QPiWXQKImXIGengZxBEJPjkGVPidYVosNbVBQ1oNWCAmF/Rl7LSWFXXueP733PAh7Prjn9yEABAeCA4fpwGg8TuBzcwtIQx97gkC8nfaP79I0fd3Vq3RgJOU9Gbrx8fivBgp8eFfqn2YlgJTyojC08AkgEC611s8sB8pLw0g+AtHMCwTi/EOr6yqt2hImSTLYfG2XADTpBoGr/klvmmXZ2gqgvBzH8WRbmCURDVwgEHHdOxLTPM9XdfOt3zCKoitDMHcBEAgzrfVT02wrgHMfGnL/C8QCsO9Dc+7WADZ94OTuBFAOcfrAyd0ZoLUPzNw7AdT3gZ97J4CqPtjm3hlgtw+2uXsB+IE4O0csjFLqxWVRlTOsPeAqzpkLAMGB4MA3Z8uMIZKtiBMAAAAASUVORK5CYII=",__vite_glob_0_49=Object.freeze(Object.defineProperty({__proto__:null,default:icon_collapseIcon},Symbol.toStringTag,{value:"Module"})),icon_rest="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABLCAYAAAAs2+QLAAANQElEQVR4Xu1ceVBTV9s/LhUQkCFsAkE2mbAURLG20RFapGMhhY7UG4HC1AFEq0DLMh0FX6nWHYHWqC0O2IxaWm/6spSxSDcLlqS4MICNLAGRrSUWg1YUqpb7zZNPMkRI7rlJ9PW17/33nvOc3+88z322c5Jp6B/2TPuH8UX/I/ysa1yjhisrK62dnZ0jjYyMSjkczuCzshEaCQcGBopdXFy4x48ff6bMXiOZN998kyorK0Ovv/46Wrdu3dLw8HDJs6Blrdrz8fGhpFIpyszM7EtOTua7uLg8FtICgYAyxGba2NigqKgorZxwzJWys7NDcrkcZyxj3AkJCVRxcTHjeVNNWLBgAWpqatKPcGpqKnX48GG0bNkytGfPnqXLli0zqJafOsJXr14lkpOTyaqqKvTOO+/U5uTk8O3s7OQGUQlC6KkjPE7M2dmZunPnDhocHDSoaT+VhE+ePMk+evQoWVtby/X09EQkSab7+fkVGELLTyVhIFZfX5/G4/HyBwcHkbe3t2ThwoX8zz//vE9f0k8tYSCWlpZGFRQUIDMzM7RhwwbJgQMHljIhvGvXrknhB2L9xYsXmYjRONbe3h4lJydPep+dna36DBl9j76+vkRPTw9569YtZG5ujm7fvs1oPkLIIPFWh93RjXBRURHx6aefkuMa8fHxQWvWrFm6bds23FD130VYJpMR7777LvnNN9+oNnnVqlV9mZmZfEPHZx20qHHKnTt3FpmamjbAAKYmiYyNjcnR0VFiXLqRkRFKTEy8fPjwYT9DgnxcshgRlsvlfmFhYeSlS5c4EwGxWCykUCgYyXpchOjkMgJZUVFB7N+/n6yrq5sk96WXXgJN8xMTE0V0i/4n3zMiDEAh4+ru7p6E+bnnnkPLly+X/Pjjj4xC1ZMmz4gwxNGtW7ciitLqbKfJZDK2h4eH3knJ49gMRoRXrFhB/fDDD1pxvPzyy5CU8KOiohiZ9tmzZ2f6+/ubWVpa3nwcRMdlMiJsZGRE/fXXX1rxgNcODQ2VlJeXMzbtyMjIHaWlpZfHF5gxYwb6+++/GW0c3WZhERYKhQH5+flkc3OzG51AZaybNg3Mftrg4KCntbV1K90cCwsLwsHBgWxtbVX7XICwl5eXxNzcvGDTpk2S2NhYvT8TLMKbN28WCwQCLpSHuE9wcPBZkiQ3aiM8c+ZMrqmpKTkyMsK+d++eRtG2trbo+vXrWFjp8GEJmTNnDvXnn3/SyVK9DwgIQGVlZenz5s3TWEKam5tzHzx4kDc6OsqlcYJKi+HxeJIlS5ZkMEhjp8RLS3ju3LnUwMAANtl58+ahnp4erXIzMjICZDLZxa+//hpb7qJFi1BDQwMtXjqBWgV4eHhQMpmMTobqvbGxMRodHcUC5e7uTnV2dmLLnj9/PmKxWPzz589jObGbN29abty48V8zZswgTpw44aTVS3/xxRdpOTk5+e3t7diAwOwSExPRzp073e3s7K7STXRzc6OuXqUdphKD05F8dE1vb2+qp6dHNDw8zNdImCRJbmlpKXnq1Ck23bc1cQEnJyfU29uLpV2CIAIGBgYunjt3jm5fVO+joqLQ888/z9+6datGDUul0lk+Pj73FixYQHZ1dRFWVlYoODhYVFxcPDXhyspK7meffSaGLgQTsoBq7dq1IqFQqBKsjUlSUtLsc+fO7WxpaUnDYTx9+nQUFBRUsGrVqvzU1NQpQ1NxcTE3ISFBwuFw+uVyucPNmzeRjY2NJCUlRc3RTdLI9OnTqbGxMRwcal754MGDjHrWHA6HGB4eJvv7+2nXcnd3R52dnVqtZ/78+VRHR4eaLB6PJzp9+rSaEiYJiY6OFldUVHDv3r1LCwQGODo6ov7+fixTflQgl8slOjo6SGgMarIo8A3W1taS7OxsZYj7448/0K5du0QsFovw8vJK6+/v5167dg20iYyMjPogWRkaGlLG9akc6CSgkZGR7Pb2dvLXX3/l4jD29/eXQMdDlyyopKSEe+TIkbQrV65wFQoFe6r1wJwh1L3yyivK19BPa2lpQb/99hsQVBKVSqWioKAgVFNTw1+zZs2/6+rqIsGnSCSSSfym1ExfX19adHR0/s8//6z1WzYxMUECgSA9MTHRED1qgsfjkRCqQGOjo6Mq/jNnzoSQhObOnYs8PDyQqampRCQSFYyMjIi2b99O5OTkKB2ZQCBY9sknn0CK6vD+++/z9+7dO8nBaTVFLy8vCnZT05OUlISOHj2qkzlrsx4TExOCxWKZ9vf334mLi+OeOnVKAmQhxGRnZxM+Pj59MTExUzYO7ezsqFmzZmmMGDhgtRW/OPNxvgy9x3z55ZdEfX09CX3zlJQU0PaU2GgBx8XFkeXl5cTt27fVQIFpyWQy2vl6M8EU4OrqSty9e5eEbG/OnDn8y5cvTxmvsQBnZWVReXl5aGItDIX+Tz/9hDUfE7New5ycnPJ7e3vToM3k7e2dUVhYOKXJYwFuaGgAb0oWFRWpPClObNSLAcPJlpaWFIQiW1tbfldXl8ZsDIswrA0p58GDB8XgueGBpt39+/ex5zPEz2h4QkICWVxcTHA4HBQREcHPzc3VnzAgIAiC29DQAKFDqWkwa6FQuPRx3f3AZQ2tpwcPHqDFixdfKS8v59vb20s1zdVJQyYmJtTIyAiCpGBsbEwnGbhkMMdRzs7OKDAwUHTixAmt+bxOYLdv30598MEHyqQkMDAQbdmyhR8aGopVp2ISwBp27NixkN27d+/t6OgIMDMzUysDDarh3Nxc7ldffUXW19ezIb3z9PQsaGpqSsdCacBBcPfkzJkzkI+j1157TXTmzBnaak0nDY9jtrGxoSCZh3x237596fHx8YZIMbG2BPLwvLw8sqmpSVm3f/jhh0uzsrJoj221Em5paeFCmzQmJibfxcUlDRL22bNnIysrKwksAMicnJyo3t5eBGdLWVlZmyMiIvZhITbAoPFjH1j7l19+wVKexkFgtk1NTeSFCxfY0Iq5f/++CiKUYFAWQtsFupkQqqCMW7FixfXq6mo7A3DBEQFHtuTDgVhkYazGga6urlRXVxfOwmpjoqOjJcHBwfx169bp3TTXtHhAQAAxNDREgiLgVlFra6vuhN977z3u2bNnld8GY7YIQbFu8Ltcj+Lw9PTMb21tVbaHVq5cKamursY+1pm0Mxs2bKAKCwsZ97QmgoJbPsPDw9i7znRj7e3tqd9//x2ObrUWClPJVQNVV1fHXb16tRiE6fu88MILkpCQkIw9e/bQek6ma4333WJiYpCvry9/y5Yt2DnAVFowyE0bCwsLaJH2bdq0iR8SEmIQ0t3d3ZYLFy5UKBQKBEW+mZkZX6FQYJNVc1o1NTVe69evL25tbcXqZUF4cnV1RQ+vFjdLpdK2JUuWcI2NjdnQlIM2DeS3qamp1w8cOGAQzw2JxqFDh5QXahwdHfsIguB/9NFHjDZTpeGysrKk3NzcQrFYTGthPB4PnT59etq2bduIV199Fbm5uTU7Ojq2Xbt2jdve3s6GMLVjxw7Rzp07qdraWhQeHh6XkpJyklawlgFQre3YsSMPmosPtStSKBS0mdWjItVMmq6HBZ382NhYyccff4ztFWHBxsbGWH9/f70IQ+eltraWgPslXl5e0LnUySmqTaI7PHvjjTckYEa6tGT10S7MZbFY5PDwMAFFPofDac7Nzd0WERFRwVSuivChQ4eShEJhoaaLntAmbW5uTmez2U8sX55IxsHBgYLUFp6EhAS18yImpFWEwWnFx8cXd3Z2Tum0QkNDUVVVlU5mxATQo2Pfeust9qVLl9LHEw3w/rdu3dIZh9rEtWvXkkKhUHWtcOLi8fHx6NixYzovpA9pPz8/qrm5WSkiPDwcVVZW6oxDbeLAwIBtUFCQvK2tbRI+OPstKirSeSFdCa9cuVL83XffceGAD4qW/fv38zMyMhjF3olrTyIQFhaWX1NTk/boBZaQkBD0/fffP3HCE08FmRYKtKklDIAaWCAQkEeOHFErHiDRKCoqWqrpiENXDWqbBz/gglOECQ/EXZ21q5ZpTZQKQT4vL09cX1+vhicuLo62SWYo4oAhJSVFLJf//y+G4DK6VCrV28I0CoAyUSwWk+fPn1dpGm7SwI3ZjRs36rXLDDZFldfDtaUXX3zx8V5bWr9+PRw2i6urq5UYIaULCwvT6VohA5LKoZBoKBQKZcSwtLSEUpDf2Nio90Zjmcjbb79NHT9+XFkjP7z/iDWPKcmJ41ksVu/4Ifns2bMlQUFB/KqqKr27KFjA4Xv69ttvyZKSEjZchVi8ePHVqKgofmZm5iV9SGmZC70qpXbhNNDCwkIkl8sZFwpYXloTCDhQy8jIINra2tJu3LiB/Pz8JBcuXGBUROBuzqJFi1S3/2xtbfsaGxtVF8twZWgah6XhiZMlEkkaEL9x4wbX19cXFRYWOllZWeltauNrrF69evnY2Fgs1NLwUBTVXVlZuVtfouPzGROGiSUlJdYxMTHK/wUYGhpytrS0nPybAEMhNLAcnQgbGMMTFfePI/x/LKtcl4SQqH0AAAAASUVORK5CYII=",__vite_glob_0_50=Object.freeze(Object.defineProperty({__proto__:null,default:icon_rest},Symbol.toStringTag,{value:"Module"})),icon_staff=""+new URL("icon_staff-55f546a9.png",import.meta.url).href,__vite_glob_0_51=Object.freeze(Object.defineProperty({__proto__:null,default:icon_staff},Symbol.toStringTag,{value:"Module"})),modules=Object.assign({"./icon_-1.png":__vite_glob_0_0,"./icon_0.png":__vite_glob_0_1,"./icon_1.png":__vite_glob_0_2,"./icon_10.png":__vite_glob_0_3,"./icon_11.png":__vite_glob_0_4,"./icon_12.png":__vite_glob_0_5,"./icon_13.png":__vite_glob_0_6,"./icon_14.png":__vite_glob_0_7,"./icon_15.png":__vite_glob_0_8,"./icon_16.png":__vite_glob_0_9,"./icon_17.png":__vite_glob_0_10,"./icon_18.png":__vite_glob_0_11,"./icon_19.png":__vite_glob_0_12,"./icon_2.png":__vite_glob_0_13,"./icon_20.png":__vite_glob_0_14,"./icon_21.png":__vite_glob_0_15,"./icon_21_1.png":__vite_glob_0_16,"./icon_22.png":__vite_glob_0_17,"./icon_23.png":__vite_glob_0_18,"./icon_24.png":__vite_glob_0_19,"./icon_25.png":__vite_glob_0_20,"./icon_26_0.png":__vite_glob_0_21,"./icon_26_1.png":__vite_glob_0_22,"./icon_26_2.png":__vite_glob_0_23,"./icon_26_3.png":__vite_glob_0_24,"./icon_26_4.png":__vite_glob_0_25,"./icon_26_5.png":__vite_glob_0_26,"./icon_27_0.png":__vite_glob_0_27,"./icon_27_1.png":__vite_glob_0_28,"./icon_27_2.png":__vite_glob_0_29,"./icon_27_3.png":__vite_glob_0_30,"./icon_27_4.png":__vite_glob_0_31,"./icon_28_1.png":__vite_glob_0_32,"./icon_28_2.png":__vite_glob_0_33,"./icon_28_3.png":__vite_glob_0_34,"./icon_29.png":__vite_glob_0_35,"./icon_29_1.png":__vite_glob_0_36,"./icon_29_2.png":__vite_glob_0_37,"./icon_29_3.png":__vite_glob_0_38,"./icon_29_4.png":__vite_glob_0_39,"./icon_3.png":__vite_glob_0_40,"./icon_4.png":__vite_glob_0_41,"./icon_5.png":__vite_glob_0_42,"./icon_6.png":__vite_glob_0_43,"./icon_7.png":__vite_glob_0_44,"./icon_8.png":__vite_glob_0_45,"./icon_9.png":__vite_glob_0_46,"./icon_arrow.png":__vite_glob_0_47,"./icon_check.png":__vite_glob_0_48,"./icon_collapseIcon.png":__vite_glob_0_49,"./icon_rest.png":__vite_glob_0_50,"./icon_staff.png":__vite_glob_0_51}),getImage=d=>{var b;return((b=modules["./".concat(d)])==null?void 0:b.default)||""},ALL_NOTES=()=>{const d=["C","^C","D","^D","E","F","^F","G","^G","A","^A","B"],b=[],x=(w=0)=>w===0?"":new Array(Math.abs(w)).fill(w>0?"'":",").join("");for(let w=0;w<=6;w++)for(let A=0;A<12;A++){let S=d[A];w<3?b.push(S+x(w-3)):w===3?b.push(S):w===4?(S=S.toLocaleLowerCase(),b.push(S)):(S=S.toLocaleLowerCase(),b.push(S+x(w-4)))}let C="";return b.forEach((w,A)=>{C+=w+(A%4===0?" |":" ")}),C},ABC_DATA={types:[{name:"全音符",value:"4",icon:"icon-quanyinfu"},{name:"2分音符",value:"2",icon:"icon-a-2fenyinfu"},{name:"4分音符",value:"",icon:"icon-a-4fenyinfu"},{name:"8分音符",value:"/",icon:"icon-a-8fenyinfu"},{name:"16分音符",value:"//",icon:"icon-a-16fenyinfu"},{name:"32音符",value:"///",icon:"icon-a-32fenyinfu"}],reset:[{name:"休止符",value:"z",icon:"icon-a-4fenxiuzhifu"}],accidentals:[{name:"重降号",value:"__",icon:getImage("icon_2.png")},{name:"降号",value:"_",icon:getImage("icon_3.png")},{name:"还原号",value:"=",icon:getImage("icon_4.png")},{name:"升号",value:"^",icon:getImage("icon_5.png")},{name:"重升号",value:"^^",icon:getImage("icon_6.png")}],clef:[{name:"低音谱号",value:"K:bass",icon:"icon-puhao-diyinpuhao"},{name:"高音谱号",value:"K:treble",icon:"icon-puhao-gaoyinpuhao"},{name:"次中音谱号",value:"K:tenor",icon:"icon-puhao-cizhongyinpuhao"},{name:"中音谱号",value:"K:alto",icon:"icon-puhao-zhongyinpuhao"},{name:"打击乐谱号",value:"K:perc",icon:"icon-puhao-gupu"}],key:[{name:"C大调",value:"K:C",step:0,icon:"icon-a-diaohao-cdadiaoaxiaodiao1"},{name:"F#大调",value:"K:F#",step:6,icon:"icon-a-diaohao-fdadiaodxiaodiao"},{name:"F大调",value:"K:F",step:5,icon:"icon-a-diaohao-fdadiaodxiaodiao1"},{name:"E大调",value:"K:E",step:4,icon:"icon-a-diaohao-edadiaocxiaodiao"},{name:"Eb大调",value:"K:Eb",step:3,icon:"icon-a-diaohao-ebdadiaocxiaodiao"},{name:"D大调",value:"K:D",step:2,icon:"icon-a-diaohao-Ddaxiaoexiaodiao"},{name:"C#大调",value:"K:C#",step:1,icon:"icon-a-diaohao-cdadiaoaxiaodiao"},{name:"B大调",value:"K:B",step:-1,icon:"icon-a-diaohao-bdadiaogxiaodiao"},{name:"Cb大调",value:"K:Cb",step:-1,icon:"icon-a-diaohao-cbdadiaoabxiaodiao"},{name:"Db大调",value:"K:Db",step:-1,icon:"icon-a-diaohao-dbdadiaobbxiaodiao"},{name:"Bb大调",value:"K:Bb",step:-2,icon:"icon-a-diaohao-bbdadiaogxiaodiao"},{name:"A大调",value:"K:A",step:-3,icon:"icon-a-diaohao-Adadiaofxiaodiao"},{name:"Ab大调",value:"K:Ab",step:-4,icon:"icon-a-diaohao-abdadiaofxiaodiao"},{name:"G大调",value:"K:G",step:-5,icon:"icon-a-diaohao-Gdadiaoexiaodiao"},{name:"Gb大调",value:"K:Gb",step:-6,icon:"icon-a-diaohao-gbdadiaoebxiaodiao"}],meter:[{name:"4/4",value:"M:4/4",icon:"icon-paihao-44"},{name:"2/2",value:"M:2/2",icon:"icon-paihao-22"},{name:"2/4",value:"M:2/4",icon:"icon-paihao-24"},{name:"3/4",value:"M:3/4",icon:"icon-paihao-34"},{name:"3/8",value:"M:3/8",icon:"icon-paihao-38"},{name:"6/8",value:"M:6/8",icon:"icon-paihao-68"},{name:"9/8",value:"M:9/8",icon:"icon-paihao-98"},{name:"12/8",value:"M:12/8",icon:"icon-a-paihao-128"}],play:[{name:"加强音",value:"!marcato!",icon:getImage("icon_9.png")},{name:"重音",value:"!>!",icon:getImage("icon_10.png")},{name:"保持音",value:"!tenuto!",icon:getImage("icon_11.png")},{name:"断音",value:"!wedge!",icon:getImage("icon_12.png")},{name:"花型重复记号",value:"S",icon:"icon-fanfuyutiaoyue-sbiao"},{name:"Coda",value:"O",icon:"icon-fanfuyutiaoyue-weisheng"},{name:"波音",value:"P",icon:"icon-e1"},{name:"逆波音",value:"M",icon:"icon-d1"},{name:"换气符号(逗号)",value:"!breath!",icon:"icon-c1"},{name:"回音",value:"!turn!",icon:"icon-b"},{name:"颤音",value:"T",icon:"icon-a1"},{name:"跳音",value:".",icon:"icon-a-zoufajihao-duanzouhaoshang"},{name:"延迟音记号",value:"!fermata!",icon:"icon-f1"}],bar:[{name:"单小节线",value:"|",icon:"icon-xiaojiexian-danxiaojiexian"},{name:"双小节线",value:"||",icon:"icon-xiaojiexian-shuangxiaojiexian"},{name:"结束线",value:"|]",icon:"icon-xiaojiexian-zhongzhixiaojiexian"},{name:"重复线开始",value:"|:",icon:"icon-a-xiaojiexian-zuoqishifanfuhao"},{name:"重复线结束",value:":|",icon:"icon-a-xiaojiexian-youzhongzhifanfuhao"},{name:"双重复",value:"::",icon:"icon-xiaojiexian-jieshuyuqishifanfubiaozhi"}],tie:[{name:"延音线",value:"-",icon:getImage("icon_7.png")},{name:"连音线",value:["(",")"],icon:getImage("icon_8.png")}],octave:[{name:"高8度开始",value:["!8va(!","!8va)!"]},{name:"低8度",value:["!8vb(!","!8vb)!"]}],dynamics:[{name:"极弱",value:"!ppp!",icon:"icon-lidujihao-ppp"},{name:"很弱",value:"!pp!",icon:"icon-lidujihao-pp"},{name:"弱",value:"!p!",icon:"icon-lidujihao-p"},{name:"中弱",value:"!mp!",icon:"icon-lidujihao-mp"},{name:"中强",value:"!mf!",icon:"icon-lidujihao-mf"},{name:"强",value:"!f!",icon:"icon-lidujihao-f"},{name:"很强",value:"!ff!",icon:"icon-lidujihao-ff"},{name:"极强",value:"!fff!",icon:"icon-lidujihao-fff"},{name:"渐强",value:["!<(!","!<)!"],icon:"icon-lidujihao-jianqianghao"},{name:"渐弱",value:["!>(!","!>)!"],icon:"icon-lidujihao-jianruohao"}],repeat:[{name:"第一跳跃",value:"1",icon:"icon-fanfuyutiaoyue-diyitiaoyuehao"},{name:"第二跳跃",value:"2",icon:"icon-fanfuyutiaoyue-di2kaifangtiaoyuehao"}],speeds:[{name:"60",value:"Q:1/4=60",icon:""},{name:"70",value:"Q:1/4=70",icon:""},{name:"80",value:"Q:1/4=80",icon:""},{name:"90",value:"Q:1/4=90",icon:""},{name:"100",value:"Q:1/4=100",icon:""},{name:"120",value:"Q:1/4=120",icon:""}],slus:[{name:"3连音",value:"(3",icon:""},{name:"4连音",value:"(4",icon:""},{name:"5连音",value:"(5",icon:""},{name:"6连音",value:"(6",icon:""},{name:"7连音",value:"(7",icon:""}]},settings=reactive({cursorType:"note"}),createNote=d=>({accidental:d.accidental||"",content:d.content||"",noteType:d.noteType||"",clef:d.clef||"",play:d.play||[],key:d.key||"",speed:d.speed||"",dynamics:d.dynamics||"",dCode:d.dCode||"",tie:d.tie||"",tCode:d.tCode||"",dot:d.dot||"",slus:d.slus||"",tieline:d.tieline||"",segno:d.segno||""}),createMeasure=()=>({notes:[createNote({content:"z",noteType:"4"})],barline:"|",repeat:"",measureNumber:0,celf:"",key:"",meter:""}),renderMeasures=(d,b)=>{var A,S,$,E,P,B,k,I,R,F,L,z,V,U,Q,W,G,q,K,X;let x=1,C="X:1\n";b!=null&&b.showTitle&&d.title&&(C+=d.title+"\n"),b!=null&&b.showCreator&&d.creator&&(C+=d.creator+"\n"),d.celf&&(C+=d.celf+"\n"),d.meter&&(C+=d.meter+"\n"),d.minUnit&&(C+=d.minUnit+"\n"),d.speed&&(C+=d.speed+"\n"),d.key&&(C+=d.key+"\n");const w=d.measures;for(let J=0;JcreateVNode("svg",{style:{width:b,height:x},class:"svg-icon","aria-hidden":"true"},[createVNode("use",{"xlink:href":"#"+d.iconClassName,fill:d.color},null)])}});function _isSlot$2(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!isVNode(d)}const instruments=[{label:"竖笛",key:"recorder",id:4,icon:getImage("icon_27_0.png"),range:{min:48,max:74}},{label:"排箫",key:"pan_flute",id:1,icon:getImage("icon_27_1.png"),range:{min:43,max:77}},{label:"口风琴",key:"piccolo",id:5,icon:getImage("icon_27_2.png"),range:{min:41,max:72}},{label:"陶笛",key:"blown_bottle",id:2,icon:getImage("icon_27_3.png"),range:{min:45,max:65}},{label:"葫芦丝",key:"clarinet",id:3,icon:getImage("icon_27_4.png"),range:{min:40,max:57}}],notationInstruments=instruments,TheCreate=defineComponent({name:"TheCreate",props:{show:{type:Boolean,default:!1}},emits:["update:show","create"],setup(d,{emit:b}){const x=useMessage(),C=reactive({subjects:[],loading:!1}),w=reactive({subjectId:4,key:ABC_DATA.key[0],meter:ABC_DATA.meter[0],speed:80,measure:30,subjectCode:"recorder"}),A=async()=>{if(!w.speed){x.warning("请输入开始速度");return}if(!w.measure){x.warning("请输入小节数量");return}C.loading=!0;try{await api_musicSheetCreationSave({creationData:JSON.stringify({celf:"K:treble",minUnit:"L:1/4",meter:w.meter,speed:"Q:1/4=".concat(w.speed),key:w.key,subjectCode:w.subjectCode,measures:initMusic(w.measure)}),name:"",creationConfig:"",subjectId:1}),b("create")}catch($){console.log("🚀 ~ error:",$)}C.loading=!1},S=async()=>{const $=await api_subjectList();C.subjects=$.data||[]};return onMounted(async()=>{S()}),()=>{let $;return createVNode(NModal,{transformOrigin:"center",autoFocus:!1,show:d.show,"onUpdate:show":E=>b("update:show",E)},{default:()=>[createVNode("div",{class:styles$4.setbox},[createVNode("div",{class:styles$4.head},[createVNode("div",null,[createTextVNode("新建乐谱")]),createVNode(NButton,{class:styles$4.close,quaternary:!0,circle:!0,size:"small",onClick:()=>b("update:show",!1)},{default:()=>[createVNode(NIcon,{component:Close,size:18},null)]})]),createVNode("div",{class:styles$4.content},[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("声部")]),createVNode(NSpace,{size:32,style:{paddingBottom:"45px"}},_isSlot$2($=instruments.map(E=>createVNode("div",{class:[styles$4.item,w.subjectId===E.id&&styles$4.itemActive],onClick:()=>{w.subjectId=E.id,w.subjectCode=E.key}},[createVNode("div",{class:styles$4.itemImg},[createVNode("img",{class:styles$4.icon,src:E.icon},null)]),createVNode("div",null,[E.label]),createVNode("img",{class:styles$4.itemIcon,src:getImage("icon_check.png")},null)])))?$:{default:()=>[$]}),createVNode(NSpace,{style:{paddingBottom:"45px"}},{default:()=>[createVNode(NPopover,{to:"body",trigger:"click"},{trigger:()=>createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("调号")]),createVNode("div",{class:styles$4.beatItem},[createVNode("div",{class:[styles$4.beatIcon]},[createVNode(TheIcon,{iconClassName:w.key.icon},null)]),createVNode("div",null,[w.key.name])])]),default:()=>{let E;return createVNode(NGrid,{cols:5,xGap:20,yGap:8},_isSlot$2(E=ABC_DATA.key.map(P=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$4.btnItem,w.key.value===P.value&&styles$4.active],onClick:()=>w.key=P},[createVNode("div",{class:[styles$4.btnItemIcon]},[createVNode(TheIcon,{iconClassName:P.icon},null)]),createVNode("div",{class:styles$4.btnItemName},[P.name])])]})))?E:{default:()=>[E]})}}),createVNode(NPopover,{to:"body",trigger:"click"},{trigger:()=>createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("拍号")]),createVNode("div",{class:styles$4.beatItem},[createVNode("div",{class:[styles$4.beatIcon]},[createVNode(TheIcon,{iconClassName:w.meter.icon},null)]),createVNode("div",null,[w.meter.name])])]),default:()=>{let E;return createVNode(NGrid,{cols:5,xGap:50,yGap:20},_isSlot$2(E=ABC_DATA.meter.map(P=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$4.btnItem,w.meter.value===P.value&&styles$4.active],onClick:()=>w.meter=P},[createVNode("div",{class:[styles$4.btnItemIcon]},[createVNode(TheIcon,{iconClassName:P.icon},null)]),createVNode("div",{class:styles$4.btnItemName},[P.name])])]})))?E:{default:()=>[E]})}}),createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("速度")]),createVNode("div",{class:styles$4.beatItem},[createVNode(NInputNumber,{size:"large",value:w.speed,"onUpdate:value":E=>w.speed=E,placeholder:"开始速度",showButton:!1,min:50},{prefix:()=>createVNode("div",{class:styles$4.speedIcon},[createVNode(TheIcon,{iconClassName:"icon-a-sudu-4fenyinfu",size:["2em","1em"]},null)])})])]),createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("小节")]),createVNode("div",{class:styles$4.beatItem},[createVNode(NInputNumber,{placeholder:"小节数量",size:"large",value:w.measure,"onUpdate:value":E=>w.measure=E,min:4},null)])])]}),createVNode("div",{class:styles$4.btns},[createVNode(NButton,{round:!0,onClick:()=>b("update:show",!1)},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{loading:C.loading,round:!0,type:"primary",onClick:()=>A()},{default:()=>[createTextVNode("确定")]})])])])]})}}}),Keys=defineComponent({name:"Keys",emits:["click"],props:{show:{type:Boolean,default:!1},instrumentCode:{type:String,default:""}},setup(d,{emit:b}){const x=reactive({keys:[{key:"C",singname:"do",type:"white"},{key:"D",singname:"re",type:"white"},{key:"E",singname:"mi",type:"white"},{key:"F",singname:"fa",type:"white"},{key:"G",singname:"so",type:"white"},{key:"A",singname:"la",type:"white"},{key:"B",singname:"si",type:"white"}],keyDown:"",list:[],range:{min:0,max:83}}),C=["#F07C83","#FF966C","#FBB957","#A7DCBF","#CCCCD6","#A5D2FF","#B0A4F4"],w=(P=0)=>new Array(Math.abs(P)).fill(P>0?"'":",").join(""),A=P=>{x.keyDown=P.key.toLocaleUpperCase()},S=P=>{x.keyDown=""},$=()=>{var I;let P=0;const B=[];for(let R=0;R<7;R++){const F=[];for(let L=0;L3?z.key.toLocaleLowerCase():z.key;const U=R>3?[3,4].includes(R)?0:R-4:R-3;F.push({noteIndex:P,index:R,singname:z.singname,key:z.key,name:z.key+(R+1),type:"white",value:V+w(U)}),P++,z.key!=="E"&&z.key!=="B"&&(F.push({noteIndex:P,bekey:"bkey"+L,index:R,key:z.key,singname:z.singname,name:"#"+z.key+(R+1),type:"black",value:V+w(U)+"-^"}),P++)}B.push(F)}x.list=B;const k=(I=notationInstruments.find(R=>R.key===d.instrumentCode))==null?void 0:I.range;k&&(x.range=k)},E=computed(()=>x.list.map(B=>B.filter(k=>k.noteIndex>=x.range.min&&k.noteIndex<=x.range.max)).filter(B=>B.length>0));return onMounted(()=>{$(),document.addEventListener("keydown",A),document.addEventListener("keyup",S)}),onUnmounted(()=>{document.removeEventListener("keydown",A),document.removeEventListener("keyup",S)}),()=>createVNode("div",{class:[styles$5.piano,d.show&&styles$5.show]},[createVNode("div",{class:styles$5.pianoItemWrap},[E.value.map((P,B)=>createVNode("div",{class:styles$5.itemWrap,style:{width:"calc(100% / ".concat(E.value.length,")")}},[P.map(k=>createVNode(Fragment,null,[k.type==="white"?createVNode("div",{style:{display:k.noteIndexx.range.max?"none":""},class:[styles$5.item,k.index===3&&x.keyDown===k.key&&styles$5.keyDown],key:k.index,onClick:()=>{console.log(k.value),b("click",{type:"note",value:k.value})}},[createVNode("div",{class:styles$5.keytip},[createVNode("div",{style:{color:"#ff4a00"}},[k.index===3&&k.key==="C"?"中央C":""]),createVNode("div",{class:styles$5.keyname},[k.name]),createVNode("div",{class:styles$5.singname,style:{background:C[k.index]}},[k.singname])])]):createVNode("div",{style:{display:k.noteIndexx.range.max?"none":""},class:[styles$5.bkey,"".concat(k.bekey)],onClick:()=>{b("click",{type:"note",value:k.value})}},[createVNode("div",{class:"keytip"},null)])]))]))])])}}),isString=d=>typeof d=="string",isBoolean=d=>typeof d=="boolean",isNumber=d=>typeof d=="number",isArray=d=>Array.isArray(d),isURL=d=>d?/^(http)|(\.*\/)/.test(d):!1,isWindow=d=>d===window,toNumber=d=>d==null?0:isString(d)?(d=parseFloat(d),d=Number.isNaN(d)?0:d,d):isBoolean(d)?Number(d):d,removeItem=(d,b)=>{if(d.length){const x=d.indexOf(b);if(x>-1)return d.splice(x,1)}},inBrowser$1=()=>typeof window<"u";var getGlobalThis=()=>typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:self;function error(d,b){throw Error("Varlet ["+d+"]: "+b)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(d){for(var b=1;bC})}return d.getBoundingClientRect()}function getViewportSize(){var{width:d,height:b}=getRect(window);return{vw:d,vh:b,vMin:Math.min(d,b),vMax:Math.max(d,b)}}var isRem=d=>isString(d)&&d.endsWith("rem"),isEm=d=>isString(d)&&d.endsWith("em")&&!d.endsWith("rem"),isPx=d=>isString(d)&&d.endsWith("px")||isNumber(d),isPercent=d=>isString(d)&&d.endsWith("%"),isVw=d=>isString(d)&&d.endsWith("vw"),isVh=d=>isString(d)&&d.endsWith("vh"),isVMin=d=>isString(d)&&d.endsWith("vmin"),isVMax=d=>isString(d)&&d.endsWith("vmax"),isCalc=d=>isString(d)&&d.startsWith("calc("),isVar=d=>isString(d)&&d.startsWith("var("),toPxNum=d=>{if(isNumber(d))return d;if(isPx(d))return+d.replace("px","");if(!inBrowser$1())return 0;var{vw:b,vh:x,vMin:C,vMax:w}=getViewportSize();if(isVw(d))return+d.replace("vw","")*b/100;if(isVh(d))return+d.replace("vh","")*x/100;if(isVMin(d))return+d.replace("vmin","")*C/100;if(isVMax(d))return+d.replace("vmax","")*w/100;if(isRem(d)){var A=+d.replace("rem",""),S=getStyle(document.documentElement).fontSize;return A*parseFloat(S)}return isString(d)?toNumber(d):0},toSizeUnit=d=>{if(d!=null)return isPercent(d)||isVw(d)||isVh(d)||isEm(d)||isRem(d)||isCalc(d)||isVar(d)||isVMin(d)||isVMax(d)?d:toPxNum(d)+"px"};function requestAnimationFrame$2(d){var b=getGlobalThis();return b.requestAnimationFrame?b.requestAnimationFrame(d):b.setTimeout(d,16)}function nextTickFrame(d){requestAnimationFrame$2(()=>{requestAnimationFrame$2(d)})}var __rest=globalThis&&globalThis.__rest||function(d,b){var x={};for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&b.indexOf(C)<0&&(x[C]=d[C]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,C=Object.getOwnPropertySymbols(d);wx.indexOf(S)),parentProvider:A,bindParent:P=>{onMounted(()=>{nextTick().then(()=>{C(S,P)})}),onBeforeUnmount(()=>{nextTick().then(()=>{w(S,P)})})}}}function flatVNodes(d){const b=[],x=C=>{if(C!=null&&C.component){x(C==null?void 0:C.component.subTree);return}Array.isArray(C==null?void 0:C.children)&&C.children.forEach(w=>{isVNode(w)&&(b.push(w),x(w))})};return x(d),b}function useChildren(d){const b=getCurrentInstance(),x=reactive([]),C=[],w=computed(()=>x.length),A=()=>{const P=flatVNodes(b.subTree);x.sort((B,k)=>P.indexOf(B.vnode)-P.indexOf(k.vnode))},S=(P,B)=>{x.push(P),C.push(B),A()},$=(P,B)=>{removeItem(x,P),removeItem(C,B)};return{length:w,childProviders:C,bindChildren:P=>{provide(d,Object.assign({childInstances:x,collect:S,clear:$},P))}}}function withInstall(d,b){var x=b!=null?b:d;return x.install=function(C){var{name:w}=d;w&&C.component(w,d)},x}function createNamespace(d){var b="var",x=b+"-"+d,C=A=>A?A[0]==="$"?A.replace("$",b):A.startsWith("--")?""+x+A:x+"__"+A:x,w=function(){for(var A=arguments.length,S=new Array(A),$=0;${if(isArray(E)){var[P,B,k=null]=E;return P?B:k}return E})};return{n:C,classes:w}}function call(d){for(var b=arguments.length,x=new Array(b>1?b-1:0),C=1;Cw(...x));if(d)return d(...x)}function defineListenerProp(d){return{type:[Function,Array],default:d}}function formatElevation(d,b){return d===!1?null:(d===!0&&b&&(d=b),"var-elevation--"+d)}var props$2={name:{type:String},size:{type:[Number,String]},color:{type:String},namespace:{type:String,default:"var-icon"},transition:{type:[Number,String],default:0},animationClass:{type:String},onClick:defineListenerProp()};function asyncGeneratorStep(d,b,x,C,w,A,S){try{var $=d[A](S),E=$.value}catch(P){x(P);return}$.done?b(E):Promise.resolve(E).then(C,w)}function _asyncToGenerator(d){return function(){var b=this,x=arguments;return new Promise(function(C,w){var A=d.apply(b,x);function S(E){asyncGeneratorStep(A,C,w,S,$,"next",E)}function $(E){asyncGeneratorStep(A,C,w,S,$,"throw",E)}S(void 0)})}}var{n:n$3,classes:classes$1}=createNamespace("icon");function __render__$2(d,b){return openBlock(),createBlock(resolveDynamicComponent(d.isURL(d.name)?"img":"i"),{class:normalizeClass(d.classes(d.n(),[d.namespace!==d.n(),d.namespace],d.namespace+"--set",[d.isURL(d.name),d.n("image"),d.namespace+"-"+d.nextName],[d.animateInProgress,d.animationClass==null?d.n("--shrinking"):d.animationClass])),style:normalizeStyle({color:d.color,"transition-duration":d.toNumber(d.transition)+"ms",width:d.isURL(d.name)?d.toSizeUnit(d.size):null,height:d.isURL(d.name)?d.toSizeUnit(d.size):null,fontSize:d.toSizeUnit(d.size)}),src:d.isURL(d.name)?d.nextName:null,onClick:d.onClick},null,8,["class","style","src","onClick"])}var __sfc__$2=defineComponent({name:"VarIcon",props:props$2,setup(d){var b=ref(""),x=ref(!1),C=function(){var w=_asyncToGenerator(function*(A,S){var{transition:$}=d;if(S==null||toNumber($)===0){b.value=A;return}x.value=!0,yield nextTick(),setTimeout(()=>{S!=null&&(b.value=A),x.value=!1},toNumber($))});return function(S,$){return w.apply(this,arguments)}}();return watch(()=>d.name,C,{immediate:!0}),{n:n$3,classes:classes$1,nextName:b,animateInProgress:x,isURL,toNumber,toSizeUnit}}});__sfc__$2.render=__render__$2;const Icon=__sfc__$2;withInstall(Icon);var COLLAPSE_BIND_COLLAPSE_ITEM_KEY=Symbol("COLLAPSE_BIND_COLLAPSE_ITEM_KEY");function useCollapseItem(){var{childProviders:d,length:b,bindChildren:x}=useChildren(COLLAPSE_BIND_COLLAPSE_ITEM_KEY);return{length:b,collapseItem:d,bindCollapseItem:x}}var props$1={modelValue:{type:[Array,String,Number]},accordion:{type:Boolean,default:!1},offset:{type:Boolean,default:!0},divider:{type:Boolean,default:!0},elevation:{type:[Boolean,String,Number],default:!0},onChange:defineListenerProp(),"onUpdate:modelValue":defineListenerProp()},{n:n$2}=createNamespace("collapse");function __render__$1(d,b){return openBlock(),createElementBlock("div",{class:normalizeClass(d.n())},[renderSlot(d.$slots,"default")],2)}var __sfc__$1=defineComponent({name:"VarCollapse",props:props$1,setup(d){var{length:b,collapseItem:x,bindCollapseItem:C}=useCollapseItem(),w=computed(()=>d.modelValue),A=computed(()=>d.offset),S=computed(()=>d.divider),$=computed(()=>d.elevation),E=()=>!d.accordion&&!isArray(d.modelValue)?(console.error('[Varlet] Collapse: type of prop "modelValue" should be an Array'),!1):d.accordion&&isArray(d.modelValue)?(console.error('[Varlet] Collapse: type of prop "modelValue" should be a String or Number'),!1):!0,P=(L,z)=>E()?z?d.accordion?L:[...d.modelValue,L]:d.accordion?null:d.modelValue.filter(V=>V!==L):null,B=(L,z)=>{var V=P(L,z);call(d["onUpdate:modelValue"],V),call(d.onChange,V)},k=()=>{if(d.accordion)return x.find(z=>{var{name:V}=z;return d.modelValue===V.value});var L=x.filter(z=>{var{name:V}=z;return V.value===void 0?!1:d.modelValue.includes(V.value)});return L.length?L:void 0},I=()=>d.accordion?x.find(L=>{var{index:z,name:V}=L;return V.value===void 0&&d.modelValue===z.value}):x.filter(L=>{var{index:z,name:V}=L;return V.value===void 0&&d.modelValue.includes(z.value)}),R=()=>{if(E()){var L=k()||I();if(d.accordion&&!L||!d.accordion&&!L.length){x.forEach(z=>{z.init(d.accordion,!1)});return}x.forEach(z=>{var V=d.accordion?L===z:L.includes(z);z.init(d.accordion,V)})}},F={active:w,offset:A,divider:S,elevation:$,updateItem:B};return C(F),watch(()=>b.value,()=>nextTick().then(R)),watch(()=>d.modelValue,()=>nextTick().then(R)),{n:n$2,divider:S}}});__sfc__$1.render=__render__$1;const Collapse=__sfc__$1;withInstall(Collapse);function useCollapse(){var{parentProvider:d,index:b,bindParent:x}=useParent(COLLAPSE_BIND_COLLAPSE_ITEM_KEY);return x||error("Collapse"," must in "),{index:b,collapse:d,bindCollapse:x}}var props={name:{type:[String,Number]},title:{type:String},icon:{type:String,default:"chevron-down"},disabled:{type:Boolean,default:!1}},{n:n$1,classes}=createNamespace("collapse-item");function __render__(d,b){var x=resolveComponent("var-icon");return openBlock(),createElementBlock("div",{class:normalizeClass(d.classes(d.n(),[d.offset&&d.isShow,d.n("--active")],[d.disabled,d.n("--disable")])),style:normalizeStyle("--collapse-divider-top: "+(d.divider?"var(--collapse-border-top)":"none"))},[createBaseVNode("div",{class:normalizeClass(d.classes(d.n("shadow"),d.formatElevation(d.elevation,2)))},null,2),createBaseVNode("div",{class:normalizeClass(d.n("header")),onClick:b[0]||(b[0]=C=>d.toggle())},[createBaseVNode("div",{class:normalizeClass(d.n("header-title"))},[renderSlot(d.$slots,"title",{},()=>[createTextVNode(toDisplayString(d.title),1)])],2),createBaseVNode("div",{class:normalizeClass(d.n("header-icon"))},[renderSlot(d.$slots,"icon",{},()=>[createVNode(x,{name:d.icon,transition:250,class:normalizeClass(d.classes(d.n("header-icon"),[d.isShow&&d.icon==="chevron-down",d.n("header-open")],[d.disabled,d.n("header--disable")]))},null,8,["name","class"])])],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(d.n("content")),ref:"contentEl",onTransitionend:b[1]||(b[1]=function(){return d.transitionend&&d.transitionend(...arguments)}),onTransitionstart:b[2]||(b[2]=function(){return d.start&&d.start(...arguments)})},[createBaseVNode("div",{class:normalizeClass(d.n("content-wrap"))},[renderSlot(d.$slots,"default")],2)],34),[[vShow,d.showContent]])],6)}var __sfc__=defineComponent({name:"VarCollapseItem",components:{VarIcon:Icon},props,setup(d){var{index:b,collapse:x,bindCollapse:C}=useCollapse(),w=!0,A=ref(null),S=ref(!1),$=ref(!1),{active:E,offset:P,divider:B,elevation:k,updateItem:I}=x,R=computed(()=>d.name),F=(G,q)=>{E.value===void 0||G&&isArray(E.value)||q===$.value||($.value=q,L(!0))},L=G=>{d.disabled||G||I(d.name||b.value,!$.value)},z=()=>{A.value&&(A.value.style.height="",S.value=!0,requestAnimationFrame$2(()=>{var{offsetHeight:G}=A.value;A.value.style.height="0px",requestAnimationFrame$2(()=>{A.value.style.height=G+"px",w&&nextTickFrame(()=>{w&&Q()})})}))},V=()=>{w=!1},U=()=>{if(A.value){var{offsetHeight:G}=A.value;A.value.style.height=G+"px",requestAnimationFrame$2(()=>{A.value.style.height="0px"})}},Q=()=>{$.value||(S.value=!1),A.value.style.height=""},W={index:b,name:R,init:F};return C(W),watch($,G=>{G?z():U()}),{n:n$1,start:V,classes,showContent:S,isShow:$,offset:P,divider:B,elevation:k,toggle:L,contentEl:A,transitionend:Q,formatElevation}}});__sfc__.render=__render__;const CollapseItem=__sfc__;withInstall(CollapseItem);var lodash={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */lodash.exports;(function(d,b){(function(){var x,C="4.17.21",w=200,A="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",$="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",P=500,B="__lodash_placeholder__",k=1,I=2,R=4,F=1,L=2,z=1,V=2,U=4,Q=8,W=16,G=32,q=64,K=128,X=256,J=512,oe=30,he="...",Z=800,ce=16,fe=1,me=2,ne=3,te=1/0,de=9007199254740991,le=17976931348623157e292,be=0/0,Le=4294967295,Qe=Le-1,rt=Le>>>1,ht=[["ary",K],["bind",z],["bindKey",V],["curry",Q],["curryRight",W],["flip",J],["partial",G],["partialRight",q],["rearg",X]],ct="[object Arguments]",it="[object Array]",Be="[object AsyncFunction]",Ie="[object Boolean]",Fe="[object Date]",ie="[object DOMException]",$e="[object Error]",re="[object Function]",se="[object GeneratorFunction]",Ce="[object Map]",Ne="[object Number]",we="[object Null]",ge="[object Object]",Ee="[object Promise]",ke="[object Proxy]",Ae="[object RegExp]",ve="[object Set]",De="[object String]",We="[object Symbol]",Ye="[object Undefined]",Je="[object WeakMap]",nt="[object WeakSet]",dt="[object ArrayBuffer]",Ue="[object DataView]",lt="[object Float32Array]",yt="[object Float64Array]",$t="[object Int8Array]",Mt="[object Int16Array]",Lt="[object Int32Array]",At="[object Uint8Array]",xt="[object Uint8ClampedArray]",xe="[object Uint16Array]",ze="[object Uint32Array]",Ze=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,gt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mt=/&(?:amp|lt|gt|quot|#39);/g,ye=/[&<>"']/g,Oe=RegExp(mt.source),Ve=RegExp(ye.source),He=/<%-([\s\S]+?)%>/g,Ke=/<%([\s\S]+?)%>/g,ft=/<%=([\s\S]+?)%>/g,St=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ft=/^\w*$/,bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/[\\^$.*+?()[\]{}|]/g,Te=RegExp(Nt.source),je=/^\s+/,st=/\s/,_t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ht=/\{\n\/\* \[wrapped with (.+)\] \*/,It=/,? & /,tr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kt=/[()=,{}\[\]\/\s]/,Ot=/\\(\\)?/g,fr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_r=/\w*$/,sn=/^[-+]0x[0-9a-f]+$/i,yr=/^0b[01]+$/i,Nn=/^\[object .+?Constructor\]$/,In=/^0o[0-7]+$/i,To=/^(?:0|[1-9]\d*)$/,Eo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xn=/($^)/,Or=/['\n\r\u2028\u2029\\]/g,Cn="\\ud800-\\udfff",Po="\\u0300-\\u036f",ko="\\ufe20-\\ufe2f",Bo="\\u20d0-\\u20ff",Jn=Po+ko+Bo,ln="\\u2700-\\u27bf",Zn="a-z\\xdf-\\xf6\\xf8-\\xff",No="\\xac\\xb1\\xd7\\xf7",Rr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Io="\\u2000-\\u206f",Mo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eo="A-Z\\xc0-\\xd6\\xd8-\\xde",to="\\ufe0e\\ufe0f",ro=No+Rr+Io+Mo,Mn="['’]",wn="["+Cn+"]",no="["+ro+"]",An="["+Jn+"]",oo="\\d+",io="["+ln+"]",ao="["+Zn+"]",so="[^"+Cn+ro+oo+ln+Zn+eo+"]",cn="\\ud83c[\\udffb-\\udfff]",Oo="(?:"+An+"|"+cn+")",lo="[^"+Cn+"]",On="(?:\\ud83c[\\udde6-\\uddff]){2}",Rn="[\\ud800-\\udbff][\\udc00-\\udfff]",en="["+eo+"]",co="\\u200d",uo="(?:"+ao+"|"+so+")",Ro="(?:"+en+"|"+so+")",ti="(?:"+Mn+"(?:d|ll|m|re|s|t|ve))?",ri="(?:"+Mn+"(?:D|LL|M|RE|S|T|VE))?",Do=Oo+"?",ni="["+to+"]?",oi="(?:"+co+"(?:"+[lo,On,Rn].join("|")+")"+ni+Do+")*",Xi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ji="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dn=ni+Do+oi,Zi="(?:"+[io,On,Rn].join("|")+")"+Dn,Sn="(?:"+[lo+An+"?",An,On,Rn,wn].join("|")+")",tn=RegExp(Mn,"g"),ea=RegExp(An,"g"),fo=RegExp(cn+"(?="+cn+")|"+Sn+Dn,"g"),ho=RegExp([en+"?"+ao+"+"+ti+"(?="+[no,en,"$"].join("|")+")",Ro+"+"+ri+"(?="+[no,en+uo,"$"].join("|")+")",en+"?"+uo+"+"+ti,en+"+"+ri,Ji,Xi,oo,Zi].join("|"),"g"),ta=RegExp("["+co+Cn+Jn+to+"]"),ra=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,na=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ii=-1,Zt={};Zt[lt]=Zt[yt]=Zt[$t]=Zt[Mt]=Zt[Lt]=Zt[At]=Zt[xt]=Zt[xe]=Zt[ze]=!0,Zt[ct]=Zt[it]=Zt[dt]=Zt[Ie]=Zt[Ue]=Zt[Fe]=Zt[$e]=Zt[re]=Zt[Ce]=Zt[Ne]=Zt[ge]=Zt[Ae]=Zt[ve]=Zt[De]=Zt[Je]=!1;var er={};er[ct]=er[it]=er[dt]=er[Ue]=er[Ie]=er[Fe]=er[lt]=er[yt]=er[$t]=er[Mt]=er[Lt]=er[Ce]=er[Ne]=er[ge]=er[Ae]=er[ve]=er[De]=er[We]=er[At]=er[xt]=er[xe]=er[ze]=!0,er[$e]=er[re]=er[Je]=!1;var po={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},un={"&":"&","<":"<",">":">",'"':""","'":"'"},Fo={"&":"&","<":"<",">":">",""":'"',"'":"'"},ai={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},si=parseFloat,Kr=parseInt,Lo=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,oa=typeof self=="object"&&self&&self.Object===Object&&self,ar=Lo||oa||Function("return this")(),Fn=b&&!b.nodeType&&b,$r=Fn&&!0&&d&&!d.nodeType&&d,Ln=$r&&$r.exports===Fn,zn=Ln&&Lo.process,xr=function(){try{var Me=$r&&$r.require&&$r.require("util").types;return Me||zn&&zn.binding&&zn.binding("util")}catch(Xe){}}(),li=xr&&xr.isArrayBuffer,ci=xr&&xr.isDate,ui=xr&&xr.isMap,Vn=xr&&xr.isRegExp,di=xr&&xr.isSet,fi=xr&&xr.isTypedArray;function Cr(Me,Xe,Ge){switch(Ge.length){case 0:return Me.call(Xe);case 1:return Me.call(Xe,Ge[0]);case 2:return Me.call(Xe,Ge[0],Ge[1]);case 3:return Me.call(Xe,Ge[0],Ge[1],Ge[2])}return Me.apply(Xe,Ge)}function ae(Me,Xe,Ge,vt){for(var Rt=-1,Qt=Me==null?0:Me.length;++Rt-1}function jt(Me,Xe,Ge){for(var vt=-1,Rt=Me==null?0:Me.length;++vt-1;);return Ge}function cs(Me,Xe){for(var Ge=Me.length;Ge--&&kr(Xe,Me[Ge],0)>-1;);return Ge}function oc(Me,Xe){for(var Ge=Me.length,vt=0;Ge--;)Me[Ge]===Xe&&++vt;return vt}var ic=aa(po),ac=aa(un);function sc(Me){return"\\"+ai[Me]}function lc(Me,Xe){return Me==null?x:Me[Xe]}function go(Me){return ta.test(Me)}function cc(Me){return ra.test(Me)}function uc(Me){for(var Xe,Ge=[];!(Xe=Me.next()).done;)Ge.push(Xe.value);return Ge}function ua(Me){var Xe=-1,Ge=Array(Me.size);return Me.forEach(function(vt,Rt){Ge[++Xe]=[Rt,vt]}),Ge}function us(Me,Xe){return function(Ge){return Me(Xe(Ge))}}function _n(Me,Xe){for(var Ge=-1,vt=Me.length,Rt=0,Qt=[];++Ge-1}function Xc(M,D){var H=this.__data__,Y=Pi(H,M);return Y<0?(++this.size,H.push([M,D])):H[Y][1]=D,this}dn.prototype.clear=qc,dn.prototype.delete=Kc,dn.prototype.get=Yc,dn.prototype.has=Qc,dn.prototype.set=Xc;function fn(M){var D=-1,H=M==null?0:M.length;for(this.clear();++D=D?M:D)),M}function Ur(M,D,H,Y,ee,pe){var _e,Pe=D&k,Re=D&I,et=D&R;if(H&&(_e=ee?H(M,Y,ee,pe):H(M)),_e!==x)return _e;if(!nr(M))return M;var tt=Dt(M);if(tt){if(_e=td(M),!Pe)return Br(M,_e)}else{var ot=br(M),pt=ot==re||ot==se;if(Bn(M))return Gs(M,Pe);if(ot==ge||ot==ct||pt&&!ee){if(_e=Re||pt?{}:fl(M),!Pe)return Re?Uu(M,hu(_e,M)):Wu(M,ws(_e,M))}else{if(!er[ot])return ee?M:{};_e=rd(M,ot,Pe)}}pe||(pe=new Xr);var wt=pe.get(M);if(wt)return wt;pe.set(M,_e),Vl(M)?M.forEach(function(Bt){_e.add(Ur(Bt,D,H,Bt,M,pe))}):Ll(M)&&M.forEach(function(Bt,Ut){_e.set(Ut,Ur(Bt,D,H,Ut,M,pe))});var kt=et?Re?Ra:Oa:Re?Ir:pr,Vt=tt?x:kt(M);return Se(Vt||M,function(Bt,Ut){Vt&&(Ut=Bt,Bt=M[Ut]),Go(_e,Ut,Ur(Bt,D,H,Ut,M,pe))}),_e}function pu(M){var D=pr(M);return function(H){return As(H,M,D)}}function As(M,D,H){var Y=H.length;if(M==null)return!Y;for(M=rr(M);Y--;){var ee=H[Y],pe=D[ee],_e=M[ee];if(_e===x&&!(ee in M)||!pe(_e))return!1}return!0}function Ss(M,D,H){if(typeof M!="function")throw new Hr(S);return Zo(function(){M.apply(x,H)},D)}function qo(M,D,H,Y){var ee=-1,pe=Ct,_e=!0,Pe=M.length,Re=[],et=D.length;if(!Pe)return Re;H&&(D=Et(D,Dr(H))),Y?(pe=jt,_e=!1):D.length>=w&&(pe=zo,_e=!1,D=new Gn(D));e:for(;++eeee?0:ee+H),Y=Y===x||Y>ee?ee:zt(Y),Y<0&&(Y+=ee),Y=H>Y?0:Wl(Y);H0&&H(Pe)?D>1?mr(Pe,D-1,H,Y,ee):Yt(ee,Pe):Y||(ee[ee.length]=Pe)}return ee}var va=Js(),Ts=Js(!0);function rn(M,D){return M&&va(M,D,pr)}function ba(M,D){return M&&Ts(M,D,pr)}function Bi(M,D){return Tt(D,function(H){return vn(M[H])})}function Kn(M,D){D=Pn(D,M);for(var H=0,Y=D.length;M!=null&&HD}function vu(M,D){return M!=null&&Jt.call(M,D)}function bu(M,D){return M!=null&&D in rr(M)}function yu(M,D,H){return M>=vr(D,H)&&M=120&&tt.length>=120)?new Gn(_e&&tt):x}tt=M[0];var ot=-1,pt=Pe[0];e:for(;++ot-1;)Pe!==M&&wi.call(Pe,Re,1),wi.call(M,Re,1);return M}function Fs(M,D){for(var H=M?D.length:0,Y=H-1;H--;){var ee=D[H];if(H==Y||ee!==pe){var pe=ee;mn(ee)?wi.call(M,ee,1):Ea(M,ee)}}return M}function _a(M,D){return M+_i(bs()*(D-M+1))}function Nu(M,D,H,Y){for(var ee=-1,pe=dr(Si((D-M)/(H||1)),0),_e=Ge(pe);pe--;)_e[Y?pe:++ee]=M,M+=H;return _e}function $a(M,D){var H="";if(!M||D<1||D>de)return H;do D%2&&(H+=M),D=_i(D/2),D&&(M+=M);while(D);return H}function Wt(M,D){return Wa(gl(M,D,Mr),M+"")}function Iu(M){return Cs($o(M))}function Mu(M,D){var H=$o(M);return Hi(H,qn(D,0,H.length))}function Qo(M,D,H,Y){if(!nr(M))return M;D=Pn(D,M);for(var ee=-1,pe=D.length,_e=pe-1,Pe=M;Pe!=null&&++eeee?0:ee+D),H=H>ee?ee:H,H<0&&(H+=ee),ee=D>H?0:H-D>>>0,D>>>=0;for(var pe=Ge(ee);++Y>>1,_e=M[pe];_e!==null&&!Lr(_e)&&(H?_e<=D:_e=w){var et=D?null:Ku(M);if(et)return pi(et);_e=!1,ee=zo,Re=new Gn}else Re=D?[]:Pe;e:for(;++Y=Y?M:jr(M,D,H)}var js=_c||function(M){return ar.clearTimeout(M)};function Gs(M,D){if(D)return M.slice();var H=M.length,Y=hs?hs(H):new M.constructor(H);return M.copy(Y),Y}function Na(M){var D=new M.constructor(M.byteLength);return new xi(D).set(new xi(M)),D}function Lu(M,D){var H=D?Na(M.buffer):M.buffer;return new M.constructor(H,M.byteOffset,M.byteLength)}function zu(M){var D=new M.constructor(M.source,_r.exec(M));return D.lastIndex=M.lastIndex,D}function Vu(M){return jo?rr(jo.call(M)):{}}function qs(M,D){var H=D?Na(M.buffer):M.buffer;return new M.constructor(H,M.byteOffset,M.length)}function Ks(M,D){if(M!==D){var H=M!==x,Y=M===null,ee=M===M,pe=Lr(M),_e=D!==x,Pe=D===null,Re=D===D,et=Lr(D);if(!Pe&&!et&&!pe&&M>D||pe&&_e&&Re&&!Pe&&!et||Y&&_e&&Re||!H&&Re||!ee)return 1;if(!Y&&!pe&&!et&&M=Pe)return Re;var et=H[Y];return Re*(et=="desc"?-1:1)}}return M.index-D.index}function Ys(M,D,H,Y){for(var ee=-1,pe=M.length,_e=H.length,Pe=-1,Re=D.length,et=dr(pe-_e,0),tt=Ge(Re+et),ot=!Y;++Pe1?H[ee-1]:x,_e=ee>2?H[2]:x;for(pe=M.length>3&&typeof pe=="function"?(ee--,pe):x,_e&&Ar(H[0],H[1],_e)&&(pe=ee<3?x:pe,ee=1),D=rr(D);++Y-1?ee[pe?D[_e]:_e]:x}}function rl(M){return gn(function(D){var H=D.length,Y=H,ee=Wr.prototype.thru;for(M&&D.reverse();Y--;){var pe=D[Y];if(typeof pe!="function")throw new Hr(S);if(ee&&!_e&&zi(pe)=="wrapper")var _e=new Wr([],!0)}for(Y=_e?Y:H;++Y1&&qt.reverse(),tt&&RePe))return!1;var et=pe.get(M),tt=pe.get(D);if(et&&tt)return et==D&&tt==M;var ot=-1,pt=!0,wt=H&L?new Gn:x;for(pe.set(M,D),pe.set(D,M);++ot1?"& ":"")+D[Y],D=D.join(H>2?", ":" "),M.replace(_t,"{\n/* [wrapped with "+D+"] */\n")}function od(M){return Dt(M)||Xn(M)||!!(ms&&M&&M[ms])}function mn(M,D){var H=typeof M;return D=D==null?de:D,!!D&&(H=="number"||H!="symbol"&&To.test(M))&&M>-1&&M%1==0&&M0){if(++D>=Z)return arguments[0]}else D=0;return M.apply(x,arguments)}}function Hi(M,D){var H=-1,Y=M.length,ee=Y-1;for(D=D===x?Y:D;++H1?M[D-1]:x;return H=typeof H=="function"?(M.pop(),H):x,Tl(M,H)});function El(M){var D=ue(M);return D.__chain__=!0,D}function m0(M,D){return D(M),M}function Wi(M,D){return D(M)}var v0=gn(function(M){var D=M.length,H=D?M[0]:0,Y=this.__wrapped__,ee=function(pe){return ma(pe,M)};return D>1||this.__actions__.length||!(Y instanceof Gt)||!mn(H)?this.thru(ee):(Y=Y.slice(H,+H+(D?1:0)),Y.__actions__.push({func:Wi,args:[ee],thisArg:x}),new Wr(Y,this.__chain__).thru(function(pe){return D&&!pe.length&&pe.push(x),pe}))});function b0(){return El(this)}function y0(){return new Wr(this.value(),this.__chain__)}function x0(){this.__values__===x&&(this.__values__=Hl(this.value()));var M=this.__index__>=this.__values__.length,D=M?x:this.__values__[this.__index__++];return{done:M,value:D}}function C0(){return this}function w0(M){for(var D,H=this;H instanceof Ei;){var Y=Cl(H);Y.__index__=0,Y.__values__=x,D?ee.__wrapped__=Y:D=Y;var ee=Y;H=H.__wrapped__}return ee.__wrapped__=M,D}function A0(){var M=this.__wrapped__;if(M instanceof Gt){var D=M;return this.__actions__.length&&(D=new Gt(this)),D=D.reverse(),D.__actions__.push({func:Wi,args:[Ua],thisArg:x}),new Wr(D,this.__chain__)}return this.thru(Ua)}function S0(){return Ws(this.__wrapped__,this.__actions__)}var _0=Oi(function(M,D,H){Jt.call(M,H)?++M[H]:hn(M,H,1)});function $0(M,D,H){var Y=Dt(M)?at:gu;return H&&Ar(M,D,H)&&(D=x),Y(M,Pt(D,3))}function T0(M,D){var H=Dt(M)?Tt:$s;return H(M,Pt(D,3))}var E0=tl(wl),P0=tl(Al);function k0(M,D){return mr(Ui(M,D),1)}function B0(M,D){return mr(Ui(M,D),te)}function N0(M,D,H){return H=H===x?1:zt(H),mr(Ui(M,D),H)}function Pl(M,D){var H=Dt(M)?Se:Tn;return H(M,Pt(D,3))}function kl(M,D){var H=Dt(M)?qe:_s;return H(M,Pt(D,3))}var I0=Oi(function(M,D,H){Jt.call(M,H)?M[H].push(D):hn(M,H,[D])});function M0(M,D,H,Y){M=Nr(M)?M:$o(M),H=H&&!Y?zt(H):0;var ee=M.length;return H<0&&(H=dr(ee+H,0)),Yi(M)?H<=ee&&M.indexOf(D,H)>-1:!!ee&&kr(M,D,H)>-1}var O0=Wt(function(M,D,H){var Y=-1,ee=typeof D=="function",pe=Nr(M)?Ge(M.length):[];return Tn(M,function(_e){pe[++Y]=ee?Cr(D,_e,H):Ko(_e,D,H)}),pe}),R0=Oi(function(M,D,H){hn(M,H,D)});function Ui(M,D){var H=Dt(M)?Et:Ns;return H(M,Pt(D,3))}function D0(M,D,H,Y){return M==null?[]:(Dt(D)||(D=D==null?[]:[D]),H=Y?x:H,Dt(H)||(H=H==null?[]:[H]),Rs(M,D,H))}var F0=Oi(function(M,D,H){M[H?0:1].push(D)},function(){return[[],[]]});function L0(M,D,H){var Y=Dt(M)?or:as,ee=arguments.length<3;return Y(M,Pt(D,4),H,ee,Tn)}function z0(M,D,H){var Y=Dt(M)?gr:as,ee=arguments.length<3;return Y(M,Pt(D,4),H,ee,_s)}function V0(M,D){var H=Dt(M)?Tt:$s;return H(M,qi(Pt(D,3)))}function H0(M){var D=Dt(M)?Cs:Iu;return D(M)}function W0(M,D,H){(H?Ar(M,D,H):D===x)?D=1:D=zt(D);var Y=Dt(M)?uu:Mu;return Y(M,D)}function U0(M){var D=Dt(M)?du:Ru;return D(M)}function j0(M){if(M==null)return 0;if(Nr(M))return Yi(M)?mo(M):M.length;var D=br(M);return D==Ce||D==ve?M.size:wa(M).length}function G0(M,D,H){var Y=Dt(M)?hr:Du;return H&&Ar(M,D,H)&&(D=x),Y(M,Pt(D,3))}var q0=Wt(function(M,D){if(M==null)return[];var H=D.length;return H>1&&Ar(M,D[0],D[1])?D=[]:H>2&&Ar(D[0],D[1],D[2])&&(D=[D[0]]),Rs(M,mr(D,1),[])}),ji=$c||function(){return ar.Date.now()};function K0(M,D){if(typeof D!="function")throw new Hr(S);return M=zt(M),function(){if(--M<1)return D.apply(this,arguments)}}function Bl(M,D,H){return D=H?x:D,D=M&&D==null?M.length:D,pn(M,K,x,x,x,x,D)}function Nl(M,D){var H;if(typeof D!="function")throw new Hr(S);return M=zt(M),function(){return--M>0&&(H=D.apply(this,arguments)),M<=1&&(D=x),H}}var Ga=Wt(function(M,D,H){var Y=z;if(H.length){var ee=_n(H,So(Ga));Y|=G}return pn(M,Y,D,H,ee)}),Il=Wt(function(M,D,H){var Y=z|V;if(H.length){var ee=_n(H,So(Il));Y|=G}return pn(D,Y,M,H,ee)});function Ml(M,D,H){D=H?x:D;var Y=pn(M,Q,x,x,x,x,x,D);return Y.placeholder=Ml.placeholder,Y}function Ol(M,D,H){D=H?x:D;var Y=pn(M,W,x,x,x,x,x,D);return Y.placeholder=Ol.placeholder,Y}function Rl(M,D,H){var Y,ee,pe,_e,Pe,Re,et=0,tt=!1,ot=!1,pt=!0;if(typeof M!="function")throw new Hr(S);D=qr(D)||0,nr(H)&&(tt=!!H.leading,ot="maxWait"in H,pe=ot?dr(qr(H.maxWait)||0,D):pe,pt="trailing"in H?!!H.trailing:pt);function wt(lr){var Zr=Y,yn=ee;return Y=ee=x,et=lr,_e=M.apply(yn,Zr),_e}function kt(lr){return et=lr,Pe=Zo(Ut,D),tt?wt(lr):_e}function Vt(lr){var Zr=lr-Re,yn=lr-et,tc=D-Zr;return ot?vr(tc,pe-yn):tc}function Bt(lr){var Zr=lr-Re,yn=lr-et;return Re===x||Zr>=D||Zr<0||ot&&yn>=pe}function Ut(){var lr=ji();if(Bt(lr))return qt(lr);Pe=Zo(Ut,Vt(lr))}function qt(lr){return Pe=x,pt&&Y?wt(lr):(Y=ee=x,_e)}function zr(){Pe!==x&&js(Pe),et=0,Y=Re=ee=Pe=x}function Sr(){return Pe===x?_e:qt(ji())}function Vr(){var lr=ji(),Zr=Bt(lr);if(Y=arguments,ee=this,Re=lr,Zr){if(Pe===x)return kt(Re);if(ot)return js(Pe),Pe=Zo(Ut,D),wt(Re)}return Pe===x&&(Pe=Zo(Ut,D)),_e}return Vr.cancel=zr,Vr.flush=Sr,Vr}var Y0=Wt(function(M,D){return Ss(M,1,D)}),Q0=Wt(function(M,D,H){return Ss(M,qr(D)||0,H)});function X0(M){return pn(M,J)}function Gi(M,D){if(typeof M!="function"||D!=null&&typeof D!="function")throw new Hr(S);var H=function(){var Y=arguments,ee=D?D.apply(this,Y):Y[0],pe=H.cache;if(pe.has(ee))return pe.get(ee);var _e=M.apply(this,Y);return H.cache=pe.set(ee,_e)||pe,_e};return H.cache=new(Gi.Cache||fn),H}Gi.Cache=fn;function qi(M){if(typeof M!="function")throw new Hr(S);return function(){var D=arguments;switch(D.length){case 0:return!M.call(this);case 1:return!M.call(this,D[0]);case 2:return!M.call(this,D[0],D[1]);case 3:return!M.call(this,D[0],D[1],D[2])}return!M.apply(this,D)}}function J0(M){return Nl(2,M)}var Z0=Fu(function(M,D){D=D.length==1&&Dt(D[0])?Et(D[0],Dr(Pt())):Et(mr(D,1),Dr(Pt()));var H=D.length;return Wt(function(Y){for(var ee=-1,pe=vr(Y.length,H);++ee=D}),Xn=Ps(function(){return arguments}())?Ps:function(M){return ir(M)&&Jt.call(M,"callee")&&!gs.call(M,"callee")},Dt=Ge.isArray,gf=li?Dr(li):Cu;function Nr(M){return M!=null&&Ki(M.length)&&!vn(M)}function sr(M){return ir(M)&&Nr(M)}function mf(M){return M===!0||M===!1||ir(M)&&wr(M)==Ie}var Bn=Ec||os,vf=ci?Dr(ci):wu;function bf(M){return ir(M)&&M.nodeType===1&&!ei(M)}function yf(M){if(M==null)return!0;if(Nr(M)&&(Dt(M)||typeof M=="string"||typeof M.splice=="function"||Bn(M)||_o(M)||Xn(M)))return!M.length;var D=br(M);if(D==Ce||D==ve)return!M.size;if(Jo(M))return!wa(M).length;for(var H in M)if(Jt.call(M,H))return!1;return!0}function xf(M,D){return Yo(M,D)}function Cf(M,D,H){H=typeof H=="function"?H:x;var Y=H?H(M,D):x;return Y===x?Yo(M,D,x,H):!!Y}function Ka(M){if(!ir(M))return!1;var D=wr(M);return D==$e||D==ie||typeof M.message=="string"&&typeof M.name=="string"&&!ei(M)}function wf(M){return typeof M=="number"&&vs(M)}function vn(M){if(!nr(M))return!1;var D=wr(M);return D==re||D==se||D==Be||D==ke}function Fl(M){return typeof M=="number"&&M==zt(M)}function Ki(M){return typeof M=="number"&&M>-1&&M%1==0&&M<=de}function nr(M){var D=typeof M;return M!=null&&(D=="object"||D=="function")}function ir(M){return M!=null&&typeof M=="object"}var Ll=ui?Dr(ui):Su;function Af(M,D){return M===D||Ca(M,D,Fa(D))}function Sf(M,D,H){return H=typeof H=="function"?H:x,Ca(M,D,Fa(D),H)}function _f(M){return zl(M)&&M!=+M}function $f(M){if(ld(M))throw new Rt(A);return ks(M)}function Tf(M){return M===null}function Ef(M){return M==null}function zl(M){return typeof M=="number"||ir(M)&&wr(M)==Ne}function ei(M){if(!ir(M)||wr(M)!=ge)return!1;var D=Ci(M);if(D===null)return!0;var H=Jt.call(D,"constructor")&&D.constructor;return typeof H=="function"&&H instanceof H&&vi.call(H)==wc}var Ya=Vn?Dr(Vn):_u;function Pf(M){return Fl(M)&&M>=-de&&M<=de}var Vl=di?Dr(di):$u;function Yi(M){return typeof M=="string"||!Dt(M)&&ir(M)&&wr(M)==De}function Lr(M){return typeof M=="symbol"||ir(M)&&wr(M)==We}var _o=fi?Dr(fi):Tu;function kf(M){return M===x}function Bf(M){return ir(M)&&br(M)==Je}function Nf(M){return ir(M)&&wr(M)==nt}var If=Li(Aa),Mf=Li(function(M,D){return M<=D});function Hl(M){if(!M)return[];if(Nr(M))return Yi(M)?Qr(M):Br(M);if(Vo&&M[Vo])return uc(M[Vo]());var D=br(M),H=D==Ce?ua:D==ve?pi:$o;return H(M)}function bn(M){if(!M)return M===0?M:0;if(M=qr(M),M===te||M===-te){var D=M<0?-1:1;return D*le}return M===M?M:0}function zt(M){var D=bn(M),H=D%1;return D===D?H?D-H:D:0}function Wl(M){return M?qn(zt(M),0,Le):0}function qr(M){if(typeof M=="number")return M;if(Lr(M))return be;if(nr(M)){var D=typeof M.valueOf=="function"?M.valueOf():M;M=nr(D)?D+"":D}if(typeof M!="string")return M===0?M:+M;M=ss(M);var H=yr.test(M);return H||In.test(M)?Kr(M.slice(2),H?2:8):sn.test(M)?be:+M}function Ul(M){return nn(M,Ir(M))}function Of(M){return M?qn(zt(M),-de,de):M===0?M:0}function Xt(M){return M==null?"":Fr(M)}var Rf=wo(function(M,D){if(Jo(D)||Nr(D)){nn(D,pr(D),M);return}for(var H in D)Jt.call(D,H)&&Go(M,H,D[H])}),jl=wo(function(M,D){nn(D,Ir(D),M)}),Qi=wo(function(M,D,H,Y){nn(D,Ir(D),M,Y)}),Df=wo(function(M,D,H,Y){nn(D,pr(D),M,Y)}),Ff=gn(ma);function Lf(M,D){var H=Co(M);return D==null?H:ws(H,D)}var zf=Wt(function(M,D){M=rr(M);var H=-1,Y=D.length,ee=Y>2?D[2]:x;for(ee&&Ar(D[0],D[1],ee)&&(Y=1);++H1),pe}),nn(M,Ra(M),H),Y&&(H=Ur(H,k|I|R,Yu));for(var ee=D.length;ee--;)Ea(H,D[ee]);return H});function oh(M,D){return ql(M,qi(Pt(D)))}var ih=gn(function(M,D){return M==null?{}:ku(M,D)});function ql(M,D){if(M==null)return{};var H=Et(Ra(M),function(Y){return[Y]});return D=Pt(D),Ds(M,H,function(Y,ee){return D(Y,ee[0])})}function ah(M,D,H){D=Pn(D,M);var Y=-1,ee=D.length;for(ee||(ee=1,M=x);++YD){var Y=M;M=D,D=Y}if(H||M%1||D%1){var ee=bs();return vr(M+ee*(D-M+si("1e-"+((ee+"").length-1))),D)}return _a(M,D)}var vh=Ao(function(M,D,H){return D=D.toLowerCase(),M+(H?Ql(D):D)});function Ql(M){return Ja(Xt(M).toLowerCase())}function Xl(M){return M=Xt(M),M&&M.replace(Eo,ic).replace(ea,"")}function bh(M,D,H){M=Xt(M),D=Fr(D);var Y=M.length;H=H===x?Y:qn(zt(H),0,Y);var ee=H;return H-=D.length,H>=0&&M.slice(H,ee)==D}function yh(M){return M=Xt(M),M&&Ve.test(M)?M.replace(ye,ac):M}function xh(M){return M=Xt(M),M&&Te.test(M)?M.replace(Nt,"\\$&"):M}var Ch=Ao(function(M,D,H){return M+(H?"-":"")+D.toLowerCase()}),wh=Ao(function(M,D,H){return M+(H?" ":"")+D.toLowerCase()}),Ah=Zs("toLowerCase");function Sh(M,D,H){M=Xt(M),D=zt(D);var Y=D?mo(M):0;if(!D||Y>=D)return M;var ee=(D-Y)/2;return Fi(_i(ee),H)+M+Fi(Si(ee),H)}function _h(M,D,H){M=Xt(M),D=zt(D);var Y=D?mo(M):0;return D&&Y>>0,H?(M=Xt(M),M&&(typeof D=="string"||D!=null&&!Ya(D))&&(D=Fr(D),!D&&go(M))?kn(Qr(M),0,H):M.split(D,H)):[]}var Nh=Ao(function(M,D,H){return M+(H?" ":"")+Ja(D)});function Ih(M,D,H){return M=Xt(M),H=H==null?0:qn(zt(H),0,M.length),D=Fr(D),M.slice(H,H+D.length)==D}function Mh(M,D,H){var Y=ue.templateSettings;H&&Ar(M,D,H)&&(D=x),M=Xt(M),D=Qi({},D,Y,sl);var ee=Qi({},D.imports,Y.imports,sl),pe=pr(ee),_e=ca(ee,pe),Pe,Re,et=0,tt=D.interpolate||xn,ot="__p += '",pt=da((D.escape||xn).source+"|"+tt.source+"|"+(tt===ft?fr:xn).source+"|"+(D.evaluate||xn).source+"|$","g"),wt="//# sourceURL="+(Jt.call(D,"sourceURL")?(D.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ii+"]")+"\n";M.replace(pt,function(Bt,Ut,qt,zr,Sr,Vr){return qt||(qt=zr),ot+=M.slice(et,Vr).replace(Or,sc),Ut&&(Pe=!0,ot+="' +\n__e("+Ut+") +\n'"),Sr&&(Re=!0,ot+="';\n"+Sr+";\n__p += '"),qt&&(ot+="' +\n((__t = ("+qt+")) == null ? '' : __t) +\n'"),et=Vr+Bt.length,Bt}),ot+="';\n";var kt=Jt.call(D,"variable")&&D.variable;if(!kt)ot="with (obj) {\n"+ot+"\n}\n";else if(Kt.test(kt))throw new Rt($);ot=(Re?ot.replace(Ze,""):ot).replace(ut,"$1").replace(gt,"$1;"),ot="function("+(kt||"obj")+") {\n"+(kt?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(Pe?", __e = _.escape":"")+(Re?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+ot+"return __p\n}";var Vt=Zl(function(){return Qt(pe,wt+"return "+ot).apply(x,_e)});if(Vt.source=ot,Ka(Vt))throw Vt;return Vt}function Oh(M){return Xt(M).toLowerCase()}function Rh(M){return Xt(M).toUpperCase()}function Dh(M,D,H){if(M=Xt(M),M&&(H||D===x))return ss(M);if(!M||!(D=Fr(D)))return M;var Y=Qr(M),ee=Qr(D),pe=ls(Y,ee),_e=cs(Y,ee)+1;return kn(Y,pe,_e).join("")}function Fh(M,D,H){if(M=Xt(M),M&&(H||D===x))return M.slice(0,ds(M)+1);if(!M||!(D=Fr(D)))return M;var Y=Qr(M),ee=cs(Y,Qr(D))+1;return kn(Y,0,ee).join("")}function Lh(M,D,H){if(M=Xt(M),M&&(H||D===x))return M.replace(je,"");if(!M||!(D=Fr(D)))return M;var Y=Qr(M),ee=ls(Y,Qr(D));return kn(Y,ee).join("")}function zh(M,D){var H=oe,Y=he;if(nr(D)){var ee="separator"in D?D.separator:ee;H="length"in D?zt(D.length):H,Y="omission"in D?Fr(D.omission):Y}M=Xt(M);var pe=M.length;if(go(M)){var _e=Qr(M);pe=_e.length}if(H>=pe)return M;var Pe=H-mo(Y);if(Pe<1)return Y;var Re=_e?kn(_e,0,Pe).join(""):M.slice(0,Pe);if(ee===x)return Re+Y;if(_e&&(Pe+=Re.length-Pe),Ya(ee)){if(M.slice(Pe).search(ee)){var et,tt=Re;for(ee.global||(ee=da(ee.source,Xt(_r.exec(ee))+"g")),ee.lastIndex=0;et=ee.exec(tt);)var ot=et.index;Re=Re.slice(0,ot===x?Pe:ot)}}else if(M.indexOf(Fr(ee),Pe)!=Pe){var pt=Re.lastIndexOf(ee);pt>-1&&(Re=Re.slice(0,pt))}return Re+Y}function Vh(M){return M=Xt(M),M&&Oe.test(M)?M.replace(mt,pc):M}var Hh=Ao(function(M,D,H){return M+(H?" ":"")+D.toUpperCase()}),Ja=Zs("toUpperCase");function Jl(M,D,H){return M=Xt(M),D=H?x:D,D===x?cc(M)?vc(M):Er(M):M.match(D)||[]}var Zl=Wt(function(M,D){try{return Cr(M,x,D)}catch(H){return Ka(H)?H:new Rt(H)}}),Wh=gn(function(M,D){return Se(D,function(H){H=an(H),hn(M,H,Ga(M[H],M))}),M});function Uh(M){var D=M==null?0:M.length,H=Pt();return M=D?Et(M,function(Y){if(typeof Y[1]!="function")throw new Hr(S);return[H(Y[0]),Y[1]]}):[],Wt(function(Y){for(var ee=-1;++eede)return[];var H=Le,Y=vr(M,Le);D=Pt(D),M-=Le;for(var ee=la(Y,D);++H0||D<0)?new Gt(H):(M<0?H=H.takeRight(-M):M&&(H=H.drop(M)),D!==x&&(D=zt(D),H=D<0?H.dropRight(-D):H.take(D-M)),H)},Gt.prototype.takeRightWhile=function(M){return this.reverse().takeWhile(M).reverse()},Gt.prototype.toArray=function(){return this.take(Le)},rn(Gt.prototype,function(M,D){var H=/^(?:filter|find|map|reject)|While$/.test(D),Y=/^(?:head|last)$/.test(D),ee=ue[Y?"take"+(D=="last"?"Right":""):D],pe=Y||/^find/.test(D);ee&&(ue.prototype[D]=function(){var _e=this.__wrapped__,Pe=Y?[1]:arguments,Re=_e instanceof Gt,et=Pe[0],tt=Re||Dt(_e),ot=function(Ut){var qt=ee.apply(ue,Yt([Ut],Pe));return Y&&pt?qt[0]:qt};tt&&H&&typeof et=="function"&&et.length!=1&&(Re=tt=!1);var pt=this.__chain__,wt=!!this.__actions__.length,kt=pe&&!pt,Vt=Re&&!wt;if(!pe&&tt){_e=Vt?_e:new Gt(this);var Bt=M.apply(_e,Pe);return Bt.__actions__.push({func:Wi,args:[ot],thisArg:x}),new Wr(Bt,pt)}return kt&&Vt?M.apply(this,Pe):(Bt=this.thru(ot),kt?Y?Bt.value()[0]:Bt.value():Bt)})}),Se(["pop","push","shift","sort","splice","unshift"],function(M){var D=gi[M],H=/^(?:push|sort|unshift)$/.test(M)?"tap":"thru",Y=/^(?:pop|shift)$/.test(M);ue.prototype[M]=function(){var ee=arguments;if(Y&&!this.__chain__){var pe=this.value();return D.apply(Dt(pe)?pe:[],ee)}return this[H](function(_e){return D.apply(Dt(_e)?_e:[],ee)})}}),rn(Gt.prototype,function(M,D){var H=ue[D];if(H){var Y=H.name+"";Jt.call(xo,Y)||(xo[Y]=[]),xo[Y].push({name:D,func:H})}}),xo[Ri(x,V).name]=[{name:"wrapper",func:x}],Gt.prototype.clone=Lc,Gt.prototype.reverse=zc,Gt.prototype.value=Vc,ue.prototype.at=v0,ue.prototype.chain=b0,ue.prototype.commit=y0,ue.prototype.next=x0,ue.prototype.plant=w0,ue.prototype.reverse=A0,ue.prototype.toJSON=ue.prototype.valueOf=ue.prototype.value=S0,ue.prototype.first=ue.prototype.head,Vo&&(ue.prototype[Vo]=C0),ue},vo=bc();$r?(($r.exports=vo)._=vo,Fn._=vo):ar._=vo}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const speedEdit="_speedEdit_iqru4_1",speedIcon="_speedIcon_iqru4_6",styles$3={speedEdit,speedIcon},TheSpeed=defineComponent({name:"TheSpeed",emits:["change"],setup(d,{emit:b}){const x=reactive({speed:80});return()=>createVNode("div",null,[createVNode("div",{class:styles$3.speedEdit,onKeyup:C=>C.stopPropagation()},[createVNode(NInputNumber,{size:"large",value:x.speed,"onUpdate:value":[C=>x.speed=C,()=>{b("change",{type:"speeds",value:"Q:1/4="+x.speed})}],min:45,max:270},{prefix:()=>createVNode("div",{class:styles$3.speedIcon},[createVNode(TheIcon,{iconClassName:"icon-a-sudu-4fenyinfu",size:["2em","1em"]},null)])})])])}}),_hoisted_1$2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 256 512"},_hoisted_2$2=createBaseVNode("path",{d:"M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z",fill:"currentColor"},null,-1),_hoisted_3$2=[_hoisted_2$2],GripLinesVertical=defineComponent({name:"GripLinesVertical",render:function d(b,x){return openBlock(),createElementBlock("svg",_hoisted_1$2,_hoisted_3$2)}}),_hoisted_1$1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 256 512"},_hoisted_2$1=createBaseVNode("path",{d:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",fill:"currentColor"},null,-1),_hoisted_3$1=[_hoisted_2$1],LongArrowAltDown=defineComponent({name:"LongArrowAltDown",render:function d(b,x){return openBlock(),createElementBlock("svg",_hoisted_1$1,_hoisted_3$1)}}),_hoisted_1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 256 512"},_hoisted_2=createBaseVNode("path",{d:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",fill:"currentColor"},null,-1),_hoisted_3=[_hoisted_2],LongArrowAltUp=defineComponent({name:"LongArrowAltUp",render:function d(b,x){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_3)}});var raf$1={exports:{}},performanceNow={exports:{}};(function(){var d,b,x,C,w,A;typeof performance<"u"&&performance!==null&&performance.now?performanceNow.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(performanceNow.exports=function(){return(d()-w)/1e6},b=process.hrtime,d=function(){var S;return S=b(),S[0]*1e9+S[1]},C=d(),A=process.uptime()*1e9,w=C-A):Date.now?(performanceNow.exports=function(){return Date.now()-x},x=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-x},x=new Date().getTime())}).call(commonjsGlobal);var performanceNowExports=performanceNow.exports,now=performanceNowExports,root=typeof window>"u"?commonjsGlobal:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root["request"+suffix],caf=root["cancel"+suffix]||root["cancelRequest"+suffix];for(var i$1=0;!raf&&i$13&&(this.alpha=$[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var E=this.r.toString(16),P=this.g.toString(16),B=this.b.toString(16);return E.length==1&&(E="0"+E),P.length==1&&(P="0"+P),B.length==1&&(B="0"+B),"#"+E+P+B},this.getHelpXML=function(){for(var E=new Array,P=0;P "+L.toRGB()+" -> "+L.toHex());F.appendChild(z),F.appendChild(V),R.appendChild(F)}catch(Q){}return R}};const RGBColor$1=getDefaultExportFromCjs(rgbcolor);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var t=function(d,b){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,C){x.__proto__=C}||function(x,C){for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&(x[w]=C[w])})(d,b)};function r(d,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function x(){this.constructor=d}t(d,b),d.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}function e(d){var b="";Array.isArray(d)||(d=[d]);for(var x=0;xd.phi1&&(d.phi2-=2*n),d.sweepFlag===1&&d.phi2C)return[];if(C===0)return[[d*x/(d*d+b*b),b*x/(d*d+b*b)]];var w=Math.sqrt(C);return[[(d*x+b*w)/(d*d+b*b),(b*x-d*w)/(d*d+b*b)],[(d*x-b*w)/(d*d+b*b),(b*x+d*w)/(d*d+b*b)]]}var u,h=Math.PI/180;function c$1(d,b,x){return(1-x)*d+x*b}function y(d,b,x,C){return d+Math.cos(C/180*n)*b+Math.sin(C/180*n)*x}function p(d,b,x,C){var w=1e-6,A=b-d,S=x-b,$=3*A+3*(C-x)-6*S,E=6*(S-A),P=3*A;return Math.abs($)K&&(R.sweepFlag=+!R.sweepFlag),R})}function S(){return function($){var E={};for(var P in $)E[P]=$[P];return E}}d.ROUND=function($){function E(P){return Math.round(P*$)/$}return $===void 0&&($=1e13),a($),function(P){return P.x1!==void 0&&(P.x1=E(P.x1)),P.y1!==void 0&&(P.y1=E(P.y1)),P.x2!==void 0&&(P.x2=E(P.x2)),P.y2!==void 0&&(P.y2=E(P.y2)),P.x!==void 0&&(P.x=E(P.x)),P.y!==void 0&&(P.y=E(P.y)),P.rX!==void 0&&(P.rX=E(P.rX)),P.rY!==void 0&&(P.rY=E(P.rY)),P}},d.TO_ABS=b,d.TO_REL=function(){return w(function($,E,P){return $.relative||($.x1!==void 0&&($.x1-=E),$.y1!==void 0&&($.y1-=P),$.x2!==void 0&&($.x2-=E),$.y2!==void 0&&($.y2-=P),$.x!==void 0&&($.x-=E),$.y!==void 0&&($.y-=P),$.relative=!0),$})},d.NORMALIZE_HVZ=function($,E,P){return $===void 0&&($=!0),E===void 0&&(E=!0),P===void 0&&(P=!0),w(function(B,k,I,R,F){if(isNaN(R)&&!(B.type&_.MOVE_TO))throw new Error("path must start with moveto");return E&&B.type&_.HORIZ_LINE_TO&&(B.type=_.LINE_TO,B.y=B.relative?0:I),P&&B.type&_.VERT_LINE_TO&&(B.type=_.LINE_TO,B.x=B.relative?0:k),$&&B.type&_.CLOSE_PATH&&(B.type=_.LINE_TO,B.x=B.relative?R-k:R,B.y=B.relative?F-I:F),B.type&_.ARC&&(B.rX===0||B.rY===0)&&(B.type=_.LINE_TO,delete B.rX,delete B.rY,delete B.xRot,delete B.lArcFlag,delete B.sweepFlag),B})},d.NORMALIZE_ST=x,d.QT_TO_C=C,d.INFO=w,d.SANITIZE=function($){$===void 0&&($=0),a($);var E=NaN,P=NaN,B=NaN,k=NaN;return w(function(I,R,F,L,z){var V=Math.abs,U=!1,Q=0,W=0;if(I.type&_.SMOOTH_CURVE_TO&&(Q=isNaN(E)?0:R-E,W=isNaN(P)?0:F-P),I.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(E=I.relative?R+I.x2:I.x2,P=I.relative?F+I.y2:I.y2):(E=NaN,P=NaN),I.type&_.SMOOTH_QUAD_TO?(B=isNaN(B)?R:2*R-B,k=isNaN(k)?F:2*F-k):I.type&_.QUAD_TO?(B=I.relative?R+I.x1:I.x1,k=I.relative?F+I.y1:I.y2):(B=NaN,k=NaN),I.type&_.LINE_COMMANDS||I.type&_.ARC&&(I.rX===0||I.rY===0||!I.lArcFlag)||I.type&_.CURVE_TO||I.type&_.SMOOTH_CURVE_TO||I.type&_.QUAD_TO||I.type&_.SMOOTH_QUAD_TO){var G=I.x===void 0?0:I.relative?I.x:I.x-R,q=I.y===void 0?0:I.relative?I.y:I.y-F;Q=isNaN(B)?I.x1===void 0?Q:I.relative?I.x:I.x1-R:B-R,W=isNaN(k)?I.y1===void 0?W:I.relative?I.y:I.y1-F:k-F;var K=I.x2===void 0?0:I.relative?I.x:I.x2-R,X=I.y2===void 0?0:I.relative?I.y:I.y2-F;V(G)<=$&&V(q)<=$&&V(Q)<=$&&V(W)<=$&&V(K)<=$&&V(X)<=$&&(U=!0)}return I.type&_.CLOSE_PATH&&V(R-L)<=$&&V(F-z)<=$&&(U=!0),U?[]:I})},d.MATRIX=A,d.ROTATE=function($,E,P){E===void 0&&(E=0),P===void 0&&(P=0),a($,E,P);var B=Math.sin($),k=Math.cos($);return A(k,B,-B,k,E-E*k+P*B,P-E*B-P*k)},d.TRANSLATE=function($,E){return E===void 0&&(E=0),a($,E),A(1,0,0,1,$,E)},d.SCALE=function($,E){return E===void 0&&(E=$),a($,E),A($,0,0,E,0,0)},d.SKEW_X=function($){return a($),A(1,0,Math.atan($),1,0,0)},d.SKEW_Y=function($){return a($),A(1,Math.atan($),0,1,0,0)},d.X_AXIS_SYMMETRY=function($){return $===void 0&&($=0),a($),A(-1,0,0,1,$,0)},d.Y_AXIS_SYMMETRY=function($){return $===void 0&&($=0),a($),A(1,0,0,-1,0,$)},d.A_TO_C=function(){return w(function($,E,P){return _.ARC===$.type?function(B,k,I){var R,F,L,z;B.cX||o(B,k,I);for(var V=Math.min(B.phi1,B.phi2),U=Math.max(B.phi1,B.phi2)-V,Q=Math.ceil(U/90),W=new Array(Q),G=k,q=I,K=0;Kk.maxX&&(k.maxX=be),bek.maxY&&(k.maxY=be),bele&&z(m$1(R,L.x1,L.x2,L.x,le));for(var W=0,G=p(F,L.y1,L.y2,L.y);Wle&&V(m$1(F,L.y1,L.y2,L.y,le))}if(L.type&_.ARC){z(L.x),V(L.y),o(L,R,F);for(var q=L.xRot/180*Math.PI,K=Math.cos(q)*L.rX,X=Math.sin(q)*L.rX,J=-Math.sin(q)*L.rY,oe=Math.cos(q)*L.rY,he=L.phi1L.phi2?[L.phi2+360,L.phi1+360]:[L.phi2,L.phi1],Z=he[0],ce=he[1],fe=function(be){var Le=be[0],Qe=be[1],rt=180*Math.atan2(Qe,Le)/Math.PI;return rtZ&&leZ&&leB)throw new SyntaxError('Expected positive number, got "'+B+'" at index "'+S+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+S+'"')}this.curArgs.push(B),this.curArgs.length===N[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?A({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:B}):_.VERT_LINE_TO===this.curCommandType?A({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:B}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(A({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_.MOVE_TO===this.curCommandType&&(this.curCommandType=_.LINE_TO)):this.curCommandType===_.CURVE_TO?A({type:_.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===_.SMOOTH_CURVE_TO?A({type:_.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.QUAD_TO?A({type:_.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.ARC&&A({type:_.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!T($))if($===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if($!=="+"&&$!=="-"&&$!==".")if(P)this.curNumber=$,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+S+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+$+'" at index '+S+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,$!=="z"&&$!=="Z")if($==="h"||$==="H")this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative=$==="h";else if($==="v"||$==="V")this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative=$==="v";else if($==="m"||$==="M")this.curCommandType=_.MOVE_TO,this.curCommandRelative=$==="m";else if($==="l"||$==="L")this.curCommandType=_.LINE_TO,this.curCommandRelative=$==="l";else if($==="c"||$==="C")this.curCommandType=_.CURVE_TO,this.curCommandRelative=$==="c";else if($==="s"||$==="S")this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative=$==="s";else if($==="q"||$==="Q")this.curCommandType=_.QUAD_TO,this.curCommandRelative=$==="q";else if($==="t"||$==="T")this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative=$==="t";else{if($!=="a"&&$!=="A")throw new SyntaxError('Unexpected character "'+$+'" at index '+S+".");this.curCommandType=_.ARC,this.curCommandRelative=$==="a"}else C.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=$,this.curNumberHasDecimal=$==="."}else this.curNumber+=$,this.curNumberHasDecimal=!0;else this.curNumber+=$;else this.curNumber+=$,this.curNumberHasExp=!0;else this.curNumber+=$,this.curNumberHasExpDigits=this.curNumberHasExp}return C},b.prototype.transform=function(x){return Object.create(this,{parse:{value:function(C,w){w===void 0&&(w=[]);for(var A=0,S=Object.getPrototypeOf(this).parse.call(this,C);A>G;if(S[Q+3]=re,re!==0){var se=255/re;S[Q]=(be*W>>G)*se,S[Q+1]=(Le*W>>G)*se,S[Q+2]=(Qe*W>>G)*se}else S[Q]=S[Q+1]=S[Q+2]=0;be-=ne,Le-=te,Qe-=de,rt-=le,ne-=z.r,te-=z.g,de-=z.b,le-=z.a;var Ce=$e+A+1;Ce=U+(Ce>G,Ye>0?(Ye=255/Ye,S[ye]=(lt*W>>G)*Ye,S[ye+1]=(yt*W>>G)*Ye,S[ye+2]=($t*W>>G)*Ye):S[ye]=S[ye+1]=S[ye+2]=0,lt-=Je,yt-=nt,$t-=dt,Mt-=Ue,Je-=z.r,nt-=z.g,dt-=z.b,Ue-=z.a,ye=Ae+((ye=mt+B)b--&&w?String(Math.round(parseFloat(C))):C)}const attributeRegex=/(\[[^\]]+\])/g,idRegex=/(#[^\s+>~.[:]+)/g,classRegex=/(\.[^\s+>~.[:]+)/g,pseudoElementRegex=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,pseudoClassWithBracketsRegex=/(:[\w-]+\([^)]*\))/gi,pseudoClassRegex=/(:[^\s+>~.[:]+)/g,elementRegex=/([^\s+>~.[:]+)/g;function findSelectorMatch(d,b){const x=b.exec(d);return x?[d.replace(b," "),x.length]:[d,0]}function getSelectorSpecificity(d){const b=[0,0,0];let x=d.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),C=0;return[x,C]=findSelectorMatch(x,attributeRegex),b[1]+=C,[x,C]=findSelectorMatch(x,idRegex),b[0]+=C,[x,C]=findSelectorMatch(x,classRegex),b[1]+=C,[x,C]=findSelectorMatch(x,pseudoElementRegex),b[2]+=C,[x,C]=findSelectorMatch(x,pseudoClassWithBracketsRegex),b[1]+=C,[x,C]=findSelectorMatch(x,pseudoClassRegex),b[1]+=C,x=x.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[x,C]=findSelectorMatch(x,elementRegex),b[2]+=C,b.join("")}const PSEUDO_ZERO=1e-8;function vectorMagnitude(d){return Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2))}function vectorsRatio(d,b){return(d[0]*b[0]+d[1]*b[1])/(vectorMagnitude(d)*vectorMagnitude(b))}function vectorsAngle(d,b){return(d[0]*b[1]0&&arguments[0]!==void 0?arguments[0]:" ";const{document:x,name:C}=this;return compressSpaces(this.getString()).trim().split(b).map(w=>new Property(x,C,w))}hasValue(b){const x=this.value;return x!==null&&x!==""&&(b||x!==0)&&typeof x<"u"}isString(b){const{value:x}=this,C=typeof x=="string";return!C||!b?C:b.test(x)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;const b=this.getString();switch(!0){case b.endsWith("px"):case/^[0-9]+$/.test(b):return!0;default:return!1}}setValue(b){return this.value=b,this}getValue(b){return typeof b>"u"||this.hasValue()?this.value:b}getNumber(b){if(!this.hasValue())return typeof b>"u"?0:parseFloat(b);const{value:x}=this;let C=parseFloat(x);return this.isString(/%$/)&&(C/=100),C}getString(b){return typeof b>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(b)}getColor(b){let x=this.getString(b);return this.isNormalizedColor||(this.isNormalizedColor=!0,x=normalizeColor(x),this.value=x),x}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(b){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;const[C,w]=typeof b=="boolean"?[void 0,b]:[b],{viewPort:A}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(A.computeSize("x"),A.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(A.computeSize("x"),A.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*A.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*A.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&w):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*A.computeSize(C);default:{const S=this.getNumber();return x&&S<1?S*A.computeSize(C):S}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){const b=this.getString(),x=/#([^)'"]+)/.exec(b),C=(x==null?void 0:x[1])||b;return this.document.definitions[C]}getFillStyleDefinition(b,x){let C=this.getDefinition();if(!C)return null;if(typeof C.createGradient=="function"&&"getBoundingBox"in b)return C.createGradient(this.document.ctx,b,x);if(typeof C.createPattern=="function"){if(C.getHrefAttribute().hasValue()){const w=C.getAttribute("patternTransform");C=C.getHrefAttribute().getDefinition(),C&&w.hasValue()&&C.getAttribute("patternTransform",!0).setValue(w.value)}if(C)return C.createPattern(this.document.ctx,b,x)}return null}getTextBaseline(){if(!this.hasValue())return null;const b=this.getString();return Property.textBaselineMapping[b]||null}addOpacity(b){let x=this.getColor();const C=x.length;let w=0;for(let A=0;A1&&arguments[1]!==void 0?arguments[1]:0;const[C=x,w=x]=toNumbers(b);return new Point(C,w)}static parseScale(b){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const[C=x,w=C]=toNumbers(b);return new Point(C,w)}static parsePath(b){const x=toNumbers(b),C=x.length,w=[];for(let A=0;A0}runEvents(){if(!this.working)return;const{screen:b,events:x,eventElements:C}=this,{style:w}=b.ctx.canvas;let A;w&&(w.cursor=""),x.forEach((S,$)=>{let{run:E}=S;for(A=C[$];A;)E(A),A=A.parent}),this.events=[],this.eventElements=[]}checkPath(b,x){if(!this.working||!x)return;const{events:C,eventElements:w}=this;C.forEach((A,S)=>{let{x:$,y:E}=A;!w[S]&&x.isPointInPath&&x.isPointInPath($,E)&&(w[S]=b)})}checkBoundingBox(b,x){if(!this.working||!x)return;const{events:C,eventElements:w}=this;C.forEach((A,S)=>{let{x:$,y:E}=A;!w[S]&&x.isPointInBox($,E)&&(w[S]=b)})}mapXY(b,x){const{window:C,ctx:w}=this.screen,A=new Point(b,x);let S=w.canvas;for(;S;)A.x-=S.offsetLeft,A.y-=S.offsetTop,S=S.offsetParent;return C!=null&&C.scrollX&&(A.x+=C.scrollX),C!=null&&C.scrollY&&(A.y+=C.scrollY),A}onClick(b){const{x,y:C}=this.mapXY(b.clientX,b.clientY);this.events.push({type:"onclick",x,y:C,run(w){w.onClick&&w.onClick()}})}onMouseMove(b){const{x,y:C}=this.mapXY(b.clientX,b.clientY);this.events.push({type:"onmousemove",x,y:C,run(w){w.onMouseMove&&w.onMouseMove()}})}constructor(b){this.screen=b,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}}const defaultWindow$2=typeof window<"u"?window:null,defaultFetch$1=typeof fetch<"u"?fetch.bind(void 0):void 0;class Screen{wait(b){this.waits.push(b)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;const b=this.waits.every(x=>x());return b&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=b,b}setDefaults(b){b.strokeStyle="rgba(0,0,0,0)",b.lineCap="butt",b.lineJoin="miter",b.miterLimit=4}setViewBox(b){let{document:x,ctx:C,aspectRatio:w,width:A,desiredWidth:S,height:$,desiredHeight:E,minX:P=0,minY:B=0,refX:k,refY:I,clip:R=!1,clipX:F=0,clipY:L=0}=b;const z=compressSpaces(w).replace(/^defer\s/,""),[V,U]=z.split(" "),Q=V||"xMidYMid",W=U||"meet",G=A/S,q=$/E,K=Math.min(G,q),X=Math.max(G,q);let J=S,oe=E;W==="meet"&&(J*=K,oe*=K),W==="slice"&&(J*=X,oe*=X);const he=new Property(x,"refX",k),Z=new Property(x,"refY",I),ce=he.hasValue()&&Z.hasValue();if(ce&&C.translate(-K*he.getPixels("x"),-K*Z.getPixels("y")),R){const fe=K*F,me=K*L;C.beginPath(),C.moveTo(fe,me),C.lineTo(A,me),C.lineTo(A,$),C.lineTo(fe,$),C.closePath(),C.clip()}if(!ce){const fe=W==="meet"&&K===q,me=W==="slice"&&X===q,ne=W==="meet"&&K===G,te=W==="slice"&&X===G;Q.startsWith("xMid")&&(fe||me)&&C.translate(A/2-J/2,0),Q.endsWith("YMid")&&(ne||te)&&C.translate(0,$/2-oe/2),Q.startsWith("xMax")&&(fe||me)&&C.translate(A-J,0),Q.endsWith("YMax")&&(ne||te)&&C.translate(0,$-oe)}switch(!0){case Q==="none":C.scale(G,q);break;case W==="meet":C.scale(K,K);break;case W==="slice":C.scale(X,X);break}C.translate(-P,-B)}start(b){let{enableRedraw:x=!1,ignoreMouse:C=!1,ignoreAnimation:w=!1,ignoreDimensions:A=!1,ignoreClear:S=!1,forceRedraw:$,scaleWidth:E,scaleHeight:P,offsetX:B,offsetY:k}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{mouse:I}=this,R=1e3/Screen.FRAMERATE;if(this.isReadyLock=!1,this.frameDuration=R,this.readyPromise=new Promise(U=>{this.resolveReady=U}),this.isReady()&&this.render(b,A,S,E,P,B,k),!x)return;let F=Date.now(),L=F,z=0;const V=()=>{F=Date.now(),z=F-L,z>=R&&(L=F-z%R,this.shouldUpdate(w,$)&&(this.render(b,A,S,E,P,B,k),I.runEvents())),this.intervalId=requestAnimationFrame$1(V)};C||I.start(),this.intervalId=requestAnimationFrame$1(V)}stop(){this.intervalId&&(requestAnimationFrame$1.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(b,x){if(!b){const{frameDuration:C}=this;if(this.animations.reduce((A,S)=>S.update(C)||A,!1))return!0}return!!(typeof x=="function"&&x()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(b,x,C,w,A,S,$){const{viewPort:E,ctx:P,isFirstRender:B}=this,k=P.canvas;E.clear(),k.width&&k.height&&E.setCurrent(k.width,k.height);const I=b.getStyle("width"),R=b.getStyle("height");!x&&(B||typeof w!="number"&&typeof A!="number")&&(I.hasValue()&&(k.width=I.getPixels("x"),k.style&&(k.style.width="".concat(k.width,"px"))),R.hasValue()&&(k.height=R.getPixels("y"),k.style&&(k.style.height="".concat(k.height,"px"))));let F=k.clientWidth||k.width,L=k.clientHeight||k.height;if(x&&I.hasValue()&&R.hasValue()&&(F=I.getPixels("x"),L=R.getPixels("y")),E.setCurrent(F,L),typeof S=="number"&&b.getAttribute("x",!0).setValue(S),typeof $=="number"&&b.getAttribute("y",!0).setValue($),typeof w=="number"||typeof A=="number"){const z=toNumbers(b.getAttribute("viewBox").getString());let V=0,U=0;if(typeof w=="number"){const W=b.getStyle("width");W.hasValue()?V=W.getPixels("x")/w:z[2]&&!isNaN(z[2])&&(V=z[2]/w)}if(typeof A=="number"){const W=b.getStyle("height");W.hasValue()?U=W.getPixels("y")/A:z[3]&&!isNaN(z[3])&&(U=z[3]/A)}V||(V=U),U||(U=V),b.getAttribute("width",!0).setValue(w),b.getAttribute("height",!0).setValue(A);const Q=b.getStyle("transform",!0,!0);Q.setValue("".concat(Q.getString()," scale(").concat(1/V,", ").concat(1/U,")"))}C||P.clearRect(0,0,F,L),b.render(P),B&&(this.isFirstRender=!1)}constructor(b,{fetch:x=defaultFetch$1,window:C=defaultWindow$2}={}){if(this.ctx=b,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=C,!x)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");this.fetch=x}}Screen.defaultWindow=defaultWindow$2;Screen.defaultFetch=defaultFetch$1;Screen.FRAMERATE=30;Screen.MAX_VIRTUAL_PIXELS=3e4;const{defaultFetch}=Screen,DefaultDOMParser=typeof DOMParser<"u"?DOMParser:void 0;class Parser{async parse(b){return b.startsWith("<")?this.parseFromString(b):this.load(b)}parseFromString(b){const x=new this.DOMParser;try{return this.checkDocument(x.parseFromString(b,"image/svg+xml"))}catch(C){return this.checkDocument(x.parseFromString(b,"text/xml"))}}checkDocument(b){const x=b.getElementsByTagName("parsererror")[0];if(x)throw new Error(x.textContent||"Unknown parse error");return b}async load(b){const C=await(await this.fetch(b)).text();return this.parseFromString(C)}constructor({fetch:b=defaultFetch,DOMParser:x=DefaultDOMParser}={}){if(!b)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");if(!x)throw new Error("Can't find 'DOMParser' in 'globalThis', please provide it via options");this.fetch=b,this.DOMParser=x}}class Translate{apply(b){const{x,y:C}=this.point;b.translate(x||0,C||0)}unapply(b){const{x,y:C}=this.point;b.translate(-1*x||0,-1*C||0)}applyToPoint(b){const{x,y:C}=this.point;b.applyTransform([1,0,0,1,x||0,C||0])}constructor(b,x){this.type="translate",this.point=Point.parse(x)}}class Rotate{apply(b){const{cx:x,cy:C,originX:w,originY:A,angle:S}=this,$=x+w.getPixels("x"),E=C+A.getPixels("y");b.translate($,E),b.rotate(S.getRadians()),b.translate(-$,-E)}unapply(b){const{cx:x,cy:C,originX:w,originY:A,angle:S}=this,$=x+w.getPixels("x"),E=C+A.getPixels("y");b.translate($,E),b.rotate(-1*S.getRadians()),b.translate(-$,-E)}applyToPoint(b){const{cx:x,cy:C,angle:w}=this,A=w.getRadians();b.applyTransform([1,0,0,1,x||0,C||0]),b.applyTransform([Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0]),b.applyTransform([1,0,0,1,-x||0,-C||0])}constructor(b,x,C){this.type="rotate";const w=toNumbers(x);this.angle=new Property(b,"angle",w[0]),this.originX=C[0],this.originY=C[1],this.cx=w[1]||0,this.cy=w[2]||0}}class Scale{apply(b){const{scale:{x,y:C},originX:w,originY:A}=this,S=w.getPixels("x"),$=A.getPixels("y");b.translate(S,$),b.scale(x,C||x),b.translate(-S,-$)}unapply(b){const{scale:{x,y:C},originX:w,originY:A}=this,S=w.getPixels("x"),$=A.getPixels("y");b.translate(S,$),b.scale(1/x,1/C||x),b.translate(-S,-$)}applyToPoint(b){const{x,y:C}=this.scale;b.applyTransform([x||0,0,0,C||0,0,0])}constructor(b,x,C){this.type="scale";const w=Point.parseScale(x);(w.x===0||w.y===0)&&(w.x=PSEUDO_ZERO,w.y=PSEUDO_ZERO),this.scale=w,this.originX=C[0],this.originY=C[1]}}class Matrix{apply(b){const{originX:x,originY:C,matrix:w}=this,A=x.getPixels("x"),S=C.getPixels("y");b.translate(A,S),b.transform(w[0],w[1],w[2],w[3],w[4],w[5]),b.translate(-A,-S)}unapply(b){const{originX:x,originY:C,matrix:w}=this,A=w[0],S=w[2],$=w[4],E=w[1],P=w[3],B=w[5],k=0,I=0,R=1,F=1/(A*(P*R-B*I)-S*(E*R-B*k)+$*(E*I-P*k)),L=x.getPixels("x"),z=C.getPixels("y");b.translate(L,z),b.transform(F*(P*R-B*I),F*(B*k-E*R),F*($*I-S*R),F*(A*R-$*k),F*(S*B-$*P),F*($*E-A*B)),b.translate(-L,-z)}applyToPoint(b){b.applyTransform(this.matrix)}constructor(b,x,C){this.type="matrix",this.matrix=toMatrixValue(x),this.originX=C[0],this.originY=C[1]}}class Skew extends Matrix{constructor(b,x,C){super(b,x,C),this.type="skew",this.angle=new Property(b,"angle",x)}}class SkewX extends Skew{constructor(b,x,C){super(b,x,C),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(b,x,C){super(b,x,C),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function parseTransforms(d){return compressSpaces(d).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function parseTransform(d){const[b="",x=""]=d.split("(");return[b.trim(),x.trim().replace(")","")]}class Transform{static fromElement(b,x){const C=x.getStyle("transform",!1,!0);if(C.hasValue()){const[w,A=w]=x.getStyle("transform-origin",!1,!0).split();if(w&&A){const S=[w,A];return new Transform(b,C.getString(),S)}}return null}apply(b){this.transforms.forEach(x=>x.apply(b))}unapply(b){this.transforms.forEach(x=>x.unapply(b))}applyToPoint(b){this.transforms.forEach(x=>x.applyToPoint(b))}constructor(b,x,C){this.document=b,this.transforms=[],parseTransforms(x).forEach(A=>{if(A==="none")return;const[S,$]=parseTransform(A),E=Transform.transformTypes[S];E&&this.transforms.push(new E(this.document,$,C))})}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};let Element$1=class is{getAttribute(b){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const C=this.attributes[b];if(!C&&x){const w=new Property(this.document,b,"");return this.attributes[b]=w,w}return C||Property.empty(this.document)}getHrefAttribute(){let b;for(const x in this.attributes)if(x==="href"||x.endsWith(":href")){b=this.attributes[x];break}return b||Property.empty(this.document)}getStyle(b){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const w=this.styles[b];if(w)return w;const A=this.getAttribute(b);if(A.hasValue())return this.styles[b]=A,A;if(!C){const{parent:S}=this;if(S){const $=S.getStyle(b);if($.hasValue())return $}}if(x){const S=new Property(this.document,b,"");return this.styles[b]=S,S}return Property.empty(this.document)}render(b){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(b.save(),this.getStyle("mask").hasValue()){const x=this.getStyle("mask").getDefinition();x&&(this.applyEffects(b),x.apply(b,this))}else if(this.getStyle("filter").getValue("none")!=="none"){const x=this.getStyle("filter").getDefinition();x&&(this.applyEffects(b),x.apply(b,this))}else this.setContext(b),this.renderChildren(b),this.clearContext(b);b.restore()}}setContext(b){}applyEffects(b){const x=Transform.fromElement(this.document,this);x&&x.apply(b);const C=this.getStyle("clip-path",!1,!0);if(C.hasValue()){const w=C.getDefinition();w&&w.apply(b)}}clearContext(b){}renderChildren(b){this.children.forEach(x=>{x.render(b)})}addChild(b){const x=b instanceof is?b:this.document.createElement(b);x.parent=this,is.ignoreChildTypes.includes(x.type)||this.children.push(x)}matchesSelector(b){var x;const{node:C}=this;if(typeof C.matches=="function")return C.matches(b);const w=(x=C.getAttribute)===null||x===void 0?void 0:x.call(C,"class");return!w||w===""?!1:w.split(" ").some(A=>".".concat(A)===b)}addStylesFromStyleDefinition(){const{styles:b,stylesSpecificity:x}=this.document;let C;for(const w in b)if(!w.startsWith("@")&&this.matchesSelector(w)){const A=b[w],S=x[w];if(A)for(const $ in A){let E=this.stylesSpecificity[$];typeof E>"u"&&(E="000"),S&&S>=E&&(C=A[$],C&&(this.styles[$]=C),this.stylesSpecificity[$]=S)}}}removeStyles(b,x){return x.reduce((w,A)=>{const S=b.getStyle(A);if(!S.hasValue())return w;const $=S.getString();return S.setValue(""),[...w,[A,$]]},[])}restoreStyles(b,x){x.forEach(C=>{let[w,A]=C;b.getStyle(w,!0).setValue(A)})}isFirstChild(){var b;return((b=this.parent)===null||b===void 0?void 0:b.children.indexOf(this))===0}constructor(b,x,C=!1){if(this.document=b,this.node=x,this.captureTextNodes=C,this.type="",this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!x||x.nodeType!==1)return;Array.from(x.attributes).forEach(S=>{const $=normalizeAttributeName(S.nodeName);this.attributes[$]=new Property(b,$,S.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map($=>$.trim()).forEach($=>{if(!$)return;const[E,P]=$.split(":").map(B=>B.trim());E&&(this.styles[E]=new Property(b,E,P))});const{definitions:w}=b,A=this.getAttribute("id");A.hasValue()&&(w[A.getString()]||(w[A.getString()]=this)),Array.from(x.childNodes).forEach(S=>{if(S.nodeType===1)this.addChild(S);else if(C&&(S.nodeType===3||S.nodeType===4)){const $=b.createTextNode(S);$.getText().length>0&&this.addChild($)}})}};Element$1.ignoreChildTypes=["title"];class UnknownElement extends Element$1{constructor(b,x,C){super(b,x,C)}}function wrapFontFamily(d){const b=d.trim();return/^('|")/.test(b)?b:'"'.concat(b,'"')}function prepareFontFamily(d){return typeof process>"u"?d:d.trim().split(",").map(wrapFontFamily).join(",")}function prepareFontStyle(d){if(!d)return"";const b=d.trim().toLowerCase();switch(b){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return b;default:return/^oblique\s+(-|)\d+deg$/.test(b)?b:""}}function prepareFontWeight(d){if(!d)return"";const b=d.trim().toLowerCase();switch(b){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return b;default:return/^[\d.]+$/.test(b)?b:""}}class Font{static parse(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",x=arguments.length>1?arguments[1]:void 0,C="",w="",A="",S="",$="";const E=compressSpaces(b).trim().split(" "),P={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return E.forEach(B=>{switch(!0){case(!P.fontStyle&&Font.styles.includes(B)):B!=="inherit"&&(C=B),P.fontStyle=!0;break;case(!P.fontVariant&&Font.variants.includes(B)):B!=="inherit"&&(w=B),P.fontStyle=!0,P.fontVariant=!0;break;case(!P.fontWeight&&Font.weights.includes(B)):B!=="inherit"&&(A=B),P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0;break;case!P.fontSize:B!=="inherit"&&(S=B.split("/")[0]||""),P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0,P.fontSize=!0;break;default:B!=="inherit"&&($+=B)}}),new Font(C,w,A,S,$,x)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}constructor(b,x,C,w,A,S){const $=S?typeof S=="string"?Font.parse(S):S:{};this.fontFamily=A||$.fontFamily,this.fontSize=w||$.fontSize,this.fontStyle=b||$.fontStyle,this.fontWeight=C||$.fontWeight,this.fontVariant=x||$.fontVariant}}Font.styles="normal|italic|oblique|inherit";Font.variants="normal|small-caps|inherit";Font.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class BoundingBox{get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(b,x){typeof b<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=b,this.x2=b),bthis.x2&&(this.x2=b)),typeof x<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=x,this.y2=x),xthis.y2&&(this.y2=x))}addX(b){this.addPoint(b,0)}addY(b){this.addPoint(0,b)}addBoundingBox(b){if(!b)return;const{x1:x,y1:C,x2:w,y2:A}=b;this.addPoint(x,C),this.addPoint(w,A)}sumCubic(b,x,C,w,A){return Math.pow(1-b,3)*x+3*Math.pow(1-b,2)*b*C+3*(1-b)*Math.pow(b,2)*w+Math.pow(b,3)*A}bezierCurveAdd(b,x,C,w,A){const S=6*x-12*C+6*w,$=-3*x+9*C-9*w+3*A,E=3*C-3*x;if($===0){if(S===0)return;const I=-E/S;01&&arguments[1]!==void 0?arguments[1]:!1;if(!x){const C=this.getStyle("fill"),w=this.getStyle("fill-opacity"),A=this.getStyle("stroke"),S=this.getStyle("stroke-opacity");if(C.isUrlDefinition()){const R=C.getFillStyleDefinition(this,w);R&&(b.fillStyle=R)}else if(C.hasValue()){C.getString()==="currentColor"&&C.setValue(this.getStyle("color").getColor());const R=C.getColor();R!=="inherit"&&(b.fillStyle=R==="none"?"rgba(0,0,0,0)":R)}if(w.hasValue()){const R=new Property(this.document,"fill",b.fillStyle).addOpacity(w).getColor();b.fillStyle=R}if(A.isUrlDefinition()){const R=A.getFillStyleDefinition(this,S);R&&(b.strokeStyle=R)}else if(A.hasValue()){A.getString()==="currentColor"&&A.setValue(this.getStyle("color").getColor());const R=A.getString();R!=="inherit"&&(b.strokeStyle=R==="none"?"rgba(0,0,0,0)":R)}if(S.hasValue()){const R=new Property(this.document,"stroke",b.strokeStyle).addOpacity(S).getString();b.strokeStyle=R}const $=this.getStyle("stroke-width");if($.hasValue()){const R=$.getPixels();b.lineWidth=R||PSEUDO_ZERO}const E=this.getStyle("stroke-linecap"),P=this.getStyle("stroke-linejoin"),B=this.getStyle("stroke-miterlimit"),k=this.getStyle("stroke-dasharray"),I=this.getStyle("stroke-dashoffset");if(E.hasValue()&&(b.lineCap=E.getString()),P.hasValue()&&(b.lineJoin=P.getString()),B.hasValue()&&(b.miterLimit=B.getNumber()),k.hasValue()&&k.getString()!=="none"){const R=toNumbers(k.getString());typeof b.setLineDash<"u"?b.setLineDash(R):typeof b.webkitLineDash<"u"?b.webkitLineDash=R:typeof b.mozDash<"u"&&!(R.length===1&&R[0]===0)&&(b.mozDash=R);const F=I.getPixels();typeof b.lineDashOffset<"u"?b.lineDashOffset=F:typeof b.webkitLineDashOffset<"u"?b.webkitLineDashOffset=F:typeof b.mozDashOffset<"u"&&(b.mozDashOffset=F)}}if(this.modifiedEmSizeStack=!1,typeof b.font<"u"){const C=this.getStyle("font"),w=this.getStyle("font-style"),A=this.getStyle("font-variant"),S=this.getStyle("font-weight"),$=this.getStyle("font-size"),E=this.getStyle("font-family"),P=new Font(w.getString(),A.getString(),S.getString(),$.hasValue()?"".concat($.getPixels(!0),"px"):"",E.getString(),Font.parse(C.getString(),b.font));w.setValue(P.fontStyle),A.setValue(P.fontVariant),S.setValue(P.fontWeight),$.setValue(P.fontSize),E.setValue(P.fontFamily),b.font=P.toString(),$.isPixels()&&(this.document.emSize=$.getPixels(),this.modifiedEmSizeStack=!0)}x||(this.applyEffects(b),b.globalAlpha=this.calculateOpacity())}clearContext(b){super.clearContext(b),this.modifiedEmSizeStack&&this.document.popEmSize()}constructor(...b){super(...b),this.modifiedEmSizeStack=!1}}class TextElement extends RenderedElement{setContext(b){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(b,x);const C=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();C&&(b.textBaseline=C)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(b){if(this.type!=="text")return this.getTElementBoundingBox(b);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(b);let x=null;return this.children.forEach((C,w)=>{const A=this.getChildBoundingBox(b,this,this,w);x?x.addBoundingBox(A):x=A}),x}getFontSize(){const{document:b,parent:x}=this,C=Font.parse(b.ctx.font).fontSize;return x.getStyle("font-size").getNumber(C)}getTElementBoundingBox(b){const x=this.getFontSize();return new BoundingBox(this.x,this.y-x,this.x+this.measureText(b),this.y)}getGlyph(b,x,C){const w=x[C];let A;if(b.isArabic){var S;const $=x.length,E=x[C-1],P=x[C+1];let B="isolated";(C===0||E===" ")&&C<$-1&&P!==" "&&(B="terminal"),C>0&&E!==" "&&C<$-1&&P!==" "&&(B="medial"),C>0&&E!==" "&&(C===$-1||P===" ")&&(B="initial"),A=((S=b.arabicGlyphs[w])===null||S===void 0?void 0:S[B])||b.glyphs[w]}else A=b.glyphs[w];return A||(A=b.missingGlyph),A}getText(){return""}getTextFromNode(b){const x=b||this.node,C=Array.from(x.parentNode.childNodes),w=C.indexOf(x),A=C.length-1;let S=compressSpaces(x.textContent||"");return w===0&&(S=trimLeft(S)),w===A&&(S=trimRight(S)),S}renderChildren(b){if(this.type!=="text"){this.renderTElementChildren(b);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(b),this.children.forEach((C,w)=>{this.renderChild(b,this,this,w)});const{mouse:x}=this.document.screen;x.isWorking()&&x.checkBoundingBox(this,this.getBoundingBox(b))}renderTElementChildren(b){const{document:x,parent:C}=this,w=this.getText(),A=C.getStyle("font-family").getDefinition();if(A){const{unitsPerEm:E}=A.fontFace,P=Font.parse(x.ctx.font),B=C.getStyle("font-size").getNumber(P.fontSize),k=C.getStyle("font-style").getString(P.fontStyle),I=B/E,R=A.isRTL?w.split("").reverse().join(""):w,F=toNumbers(C.getAttribute("dx").getString()),L=R.length;for(let z=0;z=this.leafTexts.length)return;const b=this.leafTexts[this.textChunkStart],x=b.getStyle("text-anchor").getString("start"),C=!1;let w=0;x==="start"&&!C||x==="end"&&C?w=b.x-this.minX:x==="end"&&!C||x==="start"&&C?w=b.x-this.maxX:w=b.x-(this.minX+this.maxX)/2;for(let A=this.textChunkStart;A{this.adjustChildCoordinatesRecursiveCore(b,this,this,C)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(b,x,C,w){const A=C.children[w];A.children.length>0?A.children.forEach((S,$)=>{x.adjustChildCoordinatesRecursiveCore(b,x,A,$)}):this.adjustChildCoordinates(b,x,C,w)}adjustChildCoordinates(b,x,C,w){const A=C.children[w];if(typeof A.measureText!="function")return A;b.save(),A.setContext(b,!0);const S=A.getAttribute("x"),$=A.getAttribute("y"),E=A.getAttribute("dx"),P=A.getAttribute("dy"),B=A.getStyle("font-family").getDefinition(),k=!!(B!=null&&B.isRTL);w===0&&(S.hasValue()||S.setValue(A.getInheritedAttribute("x")),$.hasValue()||$.setValue(A.getInheritedAttribute("y")),E.hasValue()||E.setValue(A.getInheritedAttribute("dx")),P.hasValue()||P.setValue(A.getInheritedAttribute("dy")));const I=A.measureText(b);return k&&(x.x-=I),S.hasValue()?(x.applyAnchoring(),A.x=S.getPixels("x"),E.hasValue()&&(A.x+=E.getPixels("x"))):(E.hasValue()&&(x.x+=E.getPixels("x")),A.x=x.x),x.x=A.x,k||(x.x+=I),$.hasValue()?(A.y=$.getPixels("y"),P.hasValue()&&(A.y+=P.getPixels("y"))):(P.hasValue()&&(x.y+=P.getPixels("y")),A.y=x.y),x.y=A.y,x.leafTexts.push(A),x.minX=Math.min(x.minX,A.x,A.x+I),x.maxX=Math.max(x.maxX,A.x,A.x+I),A.clearContext(b),b.restore(),A}getChildBoundingBox(b,x,C,w){const A=C.children[w];if(typeof A.getBoundingBox!="function")return null;const S=A.getBoundingBox(b);return S&&A.children.forEach(($,E)=>{const P=x.getChildBoundingBox(b,x,A,E);S.addBoundingBox(P)}),S}renderChild(b,x,C,w){const A=C.children[w];A.render(b),A.children.forEach((S,$)=>{x.renderChild(b,x,A,$)})}measureText(b){const{measureCache:x}=this;if(~x)return x;const C=this.getText(),w=this.measureTargetText(b,C);return this.measureCache=w,w}measureTargetText(b,x){if(!x.length)return 0;const{parent:C}=this,w=C.getStyle("font-family").getDefinition();if(w){const S=this.getFontSize(),$=w.isRTL?x.split("").reverse().join(""):x,E=toNumbers(C.getAttribute("dx").getString()),P=$.length;let B=0;for(let k=0;k0?"":this.getTextFromNode()}}class TextNode extends TSpanElement{constructor(...b){super(...b),this.type="textNode"}}class PathParser extends _{reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Point(0,0),this.control=new Point(0,0),this.current=new Point(0,0),this.points=[],this.angles=[]}isEnd(){const{i:b,commands:x}=this;return b>=x.length-1}next(){const b=this.commands[++this.i];return this.previousCommand=this.command,this.command=b,b}getPoint(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";const C=new Point(this.command[b],this.command[x]);return this.makeAbsolute(C)}getAsControlPoint(b,x){const C=this.getPoint(b,x);return this.control=C,C}getAsCurrentPoint(b,x){const C=this.getPoint(b,x);return this.current=C,C}getReflectedControlPoint(){const b=this.previousCommand.type;if(b!==_.CURVE_TO&&b!==_.SMOOTH_CURVE_TO&&b!==_.QUAD_TO&&b!==_.SMOOTH_QUAD_TO)return this.current;const{current:{x,y:C},control:{x:w,y:A}}=this;return new Point(2*x-w,2*C-A)}makeAbsolute(b){if(this.command.relative){const{x,y:C}=this.current;b.x+=x,b.y+=C}return b}addMarker(b,x,C){const{points:w,angles:A}=this;C&&A.length>0&&!A[A.length-1]&&(A[A.length-1]=w[w.length-1].angleTo(C)),this.addMarkerAngle(b,x?x.angleTo(b):null)}addMarkerAngle(b,x){this.points.push(b),this.angles.push(x)}getMarkerPoints(){return this.points}getMarkerAngles(){const{angles:b}=this,x=b.length;for(let C=0;C[A,C[S]])}renderChildren(b){this.path(b),this.document.screen.mouse.checkPath(this,b);const x=this.getStyle("fill-rule");b.fillStyle!==""&&(x.getString("inherit")!=="inherit"?b.fill(x.getString()):b.fill()),b.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(b.save(),b.setTransform(1,0,0,1,0,0),b.stroke(),b.restore()):b.stroke());const C=this.getMarkers();if(C){const w=C.length-1,A=this.getStyle("marker-start"),S=this.getStyle("marker-mid"),$=this.getStyle("marker-end");if(A.isUrlDefinition()){const E=A.getDefinition(),[P,B]=C[0];E.render(b,P,B)}if(S.isUrlDefinition()){const E=S.getDefinition();for(let P=1;P1&&(w*=Math.sqrt(I),A*=Math.sqrt(I));let R=($===E?-1:1)*Math.sqrt((Math.pow(w,2)*Math.pow(A,2)-Math.pow(w,2)*Math.pow(k.y,2)-Math.pow(A,2)*Math.pow(k.x,2))/(Math.pow(w,2)*Math.pow(k.y,2)+Math.pow(A,2)*Math.pow(k.x,2)));isNaN(R)&&(R=0);const F=new Point(R*w*k.y/A,R*-A*k.x/w),L=new Point((x.x+B.x)/2+Math.cos(P)*F.x-Math.sin(P)*F.y,(x.y+B.y)/2+Math.sin(P)*F.x+Math.cos(P)*F.y),z=vectorsAngle([1,0],[(k.x-F.x)/w,(k.y-F.y)/A]),V=[(k.x-F.x)/w,(k.y-F.y)/A],U=[(-k.x-F.x)/w,(-k.y-F.y)/A];let Q=vectorsAngle(V,U);return vectorsRatio(V,U)<=-1&&(Q=Math.PI),vectorsRatio(V,U)>=1&&(Q=0),{currentPoint:B,rX:w,rY:A,sweepFlag:E,xAxisRotation:P,centp:L,a1:z,ad:Q}}pathA(b,x){const{pathParser:C}=this,{currentPoint:w,rX:A,rY:S,sweepFlag:$,xAxisRotation:E,centp:P,a1:B,ad:k}=PathElement.pathA(C),I=1-$?1:-1,R=B+I*(k/2),F=new Point(P.x+A*Math.cos(R),P.y+S*Math.sin(R));if(C.addMarkerAngle(F,R-I*Math.PI/2),C.addMarkerAngle(w,R-I*Math.PI),x.addPoint(w.x,w.y),b&&!isNaN(B)&&!isNaN(k)){const L=A>S?A:S,z=A>S?1:A/S,V=A>S?S/A:1;b.translate(P.x,P.y),b.rotate(E),b.scale(z,V),b.arc(0,0,L,B,B+k,!!(1-$)),b.scale(1/z,1/V),b.rotate(-E),b.translate(-P.x,-P.y)}}static pathZ(b){b.current=b.start}pathZ(b,x){PathElement.pathZ(this.pathParser),b&&x.x1!==x.x2&&x.y1!==x.y2&&b.closePath()}constructor(b,x,C){super(b,x,C),this.type="path",this.pathParser=new PathParser(this.getAttribute("d").getString())}}let SVGElement$1=class extends RenderedElement{setContext(b){var x;const{document:C}=this,{screen:w,window:A}=C,S=b.canvas;if(w.setDefaults(b),"style"in S&&typeof b.font<"u"&&A&&typeof A.getComputedStyle<"u"){b.font=A.getComputedStyle(S).getPropertyValue("font");const U=new Property(C,"fontSize",Font.parse(b.font).fontSize);U.hasValue()&&(C.rootEmSize=U.getPixels("y"),C.emSize=C.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);let{width:$,height:E}=w.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");const P=this.getAttribute("refX"),B=this.getAttribute("refY"),k=this.getAttribute("viewBox"),I=k.hasValue()?toNumbers(k.getString()):null,R=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible";let F=0,L=0,z=0,V=0;I&&(F=I[0],L=I[1]),this.root||($=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y"),this.type==="marker"&&(z=F,V=L,F=0,L=0)),w.viewPort.setCurrent($,E),this.node&&(!this.parent||((x=this.node.parentNode)===null||x===void 0?void 0:x.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(b),b.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),I&&($=I[2],E=I[3]),C.setViewBox({ctx:b,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:w.viewPort.width,desiredWidth:$,height:w.viewPort.height,desiredHeight:E,minX:F,minY:L,refX:P.getValue(),refY:B.getValue(),clip:R,clipX:z,clipY:V}),I&&(w.viewPort.removeCurrent(),w.viewPort.setCurrent($,E))}clearContext(b){super.clearContext(b),this.document.screen.viewPort.removeCurrent()}resize(b){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const w=this.getAttribute("width",!0),A=this.getAttribute("height",!0),S=this.getAttribute("viewBox"),$=this.getAttribute("style"),E=w.getNumber(0),P=A.getNumber(0);if(C)if(typeof C=="string")this.getAttribute("preserveAspectRatio",!0).setValue(C);else{const B=this.getAttribute("preserveAspectRatio");B.hasValue()&&B.setValue(B.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(w.setValue(b),A.setValue(x),S.hasValue()||S.setValue("0 0 ".concat(E||b," ").concat(P||x)),$.hasValue()){const B=this.getStyle("width"),k=this.getStyle("height");B.hasValue()&&B.setValue("".concat(b,"px")),k.hasValue()&&k.setValue("".concat(x,"px"))}}constructor(...b){super(...b),this.type="svg",this.root=!1}};class RectElement extends PathElement{path(b){const x=this.getAttribute("x").getPixels("x"),C=this.getAttribute("y").getPixels("y"),w=this.getStyle("width",!1,!0).getPixels("x"),A=this.getStyle("height",!1,!0).getPixels("y"),S=this.getAttribute("rx"),$=this.getAttribute("ry");let E=S.getPixels("x"),P=$.getPixels("y");if(S.hasValue()&&!$.hasValue()&&(P=E),$.hasValue()&&!S.hasValue()&&(E=P),E=Math.min(E,w/2),P=Math.min(P,A/2),b){const B=4*((Math.sqrt(2)-1)/3);b.beginPath(),A>0&&w>0&&(b.moveTo(x+E,C),b.lineTo(x+w-E,C),b.bezierCurveTo(x+w-E+B*E,C,x+w,C+P-B*P,x+w,C+P),b.lineTo(x+w,C+A-P),b.bezierCurveTo(x+w,C+A-P+B*P,x+w-E+B*E,C+A,x+w-E,C+A),b.lineTo(x+E,C+A),b.bezierCurveTo(x+E-B*E,C+A,x,C+A-P+B*P,x,C+A-P),b.lineTo(x,C+P),b.bezierCurveTo(x,C+P-B*P,x+E-B*E,C,x+E,C),b.closePath())}return new BoundingBox(x,C,x+w,C+A)}getMarkers(){return null}constructor(...b){super(...b),this.type="rect"}}class CircleElement extends PathElement{path(b){const x=this.getAttribute("cx").getPixels("x"),C=this.getAttribute("cy").getPixels("y"),w=this.getAttribute("r").getPixels();return b&&w>0&&(b.beginPath(),b.arc(x,C,w,0,Math.PI*2,!1),b.closePath()),new BoundingBox(x-w,C-w,x+w,C+w)}getMarkers(){return null}constructor(...b){super(...b),this.type="circle"}}class EllipseElement extends PathElement{path(b){const x=4*((Math.sqrt(2)-1)/3),C=this.getAttribute("rx").getPixels("x"),w=this.getAttribute("ry").getPixels("y"),A=this.getAttribute("cx").getPixels("x"),S=this.getAttribute("cy").getPixels("y");return b&&C>0&&w>0&&(b.beginPath(),b.moveTo(A+C,S),b.bezierCurveTo(A+C,S+x*w,A+x*C,S+w,A,S+w),b.bezierCurveTo(A-x*C,S+w,A-C,S+x*w,A-C,S),b.bezierCurveTo(A-C,S-x*w,A-x*C,S-w,A,S-w),b.bezierCurveTo(A+x*C,S-w,A+C,S-x*w,A+C,S),b.closePath()),new BoundingBox(A-C,S-w,A+C,S+w)}getMarkers(){return null}constructor(...b){super(...b),this.type="ellipse"}}class LineElement extends PathElement{getPoints(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(b){const[{x,y:C},{x:w,y:A}]=this.getPoints();return b&&(b.beginPath(),b.moveTo(x,C),b.lineTo(w,A)),new BoundingBox(x,C,w,A)}getMarkers(){const[b,x]=this.getPoints(),C=b.angleTo(x);return[[b,C],[x,C]]}constructor(...b){super(...b),this.type="line"}}class PolylineElement extends PathElement{path(b){const{points:x}=this,[{x:C,y:w}]=x,A=new BoundingBox(C,w);return b&&(b.beginPath(),b.moveTo(C,w)),x.forEach(S=>{let{x:$,y:E}=S;A.addPoint($,E),b&&b.lineTo($,E)}),A}getMarkers(){const{points:b}=this,x=b.length-1,C=[];return b.forEach((w,A)=>{A!==x&&C.push([w,w.angleTo(b[A+1])])}),C.length>0&&C.push([b[b.length-1],C[C.length-1][1]]),C}constructor(b,x,C){super(b,x,C),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}}class PolygonElement extends PolylineElement{path(b){const x=super.path(b),[{x:C,y:w}]=this.points;return b&&(b.lineTo(C,w),b.closePath()),x}constructor(...b){super(...b),this.type="polygon"}}class PatternElement extends Element$1{createPattern(b,x,C){const w=this.getStyle("width").getPixels("x",!0),A=this.getStyle("height").getPixels("y",!0),S=new SVGElement$1(this.document,null);S.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),S.attributes.width=new Property(this.document,"width","".concat(w,"px")),S.attributes.height=new Property(this.document,"height","".concat(A,"px")),S.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),S.children=this.children;const $=this.document.createCanvas(w,A),E=$.getContext("2d"),P=this.getAttribute("x"),B=this.getAttribute("y");P.hasValue()&&B.hasValue()&&E.translate(P.getPixels("x",!0),B.getPixels("y",!0)),C.hasValue()?this.styles["fill-opacity"]=C:Reflect.deleteProperty(this.styles,"fill-opacity");for(let I=-1;I<=1;I++)for(let R=-1;R<=1;R++)E.save(),S.attributes.x=new Property(this.document,"x",I*$.width),S.attributes.y=new Property(this.document,"y",R*$.height),S.render(E),E.restore();return b.createPattern($,"repeat")}constructor(...b){super(...b),this.type="pattern"}}class MarkerElement extends Element$1{render(b,x,C){if(!x)return;const{x:w,y:A}=x,S=this.getAttribute("orient").getString("auto"),$=this.getAttribute("markerUnits").getString("strokeWidth");b.translate(w,A),S==="auto"&&b.rotate(C),$==="strokeWidth"&&b.scale(b.lineWidth,b.lineWidth),b.save();const E=new SVGElement$1(this.document);E.type=this.type,E.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),E.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),E.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),E.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),E.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),E.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),E.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),E.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),E.children=this.children,E.render(b),b.restore(),$==="strokeWidth"&&b.scale(1/b.lineWidth,1/b.lineWidth),S==="auto"&&b.rotate(-C),b.translate(-w,-A)}constructor(...b){super(...b),this.type="marker"}}class DefsElement extends Element$1{render(){}constructor(...b){super(...b),this.type="defs"}}class GElement extends RenderedElement{getBoundingBox(b){const x=new BoundingBox;return this.children.forEach(C=>{x.addBoundingBox(C.getBoundingBox(b))}),x}constructor(...b){super(...b),this.type="g"}}class GradientElement extends Element$1{getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(b,x,C){let w=this;this.getHrefAttribute().hasValue()&&(w=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(w));const{stops:A}=w,S=this.getGradient(b,x);if(!S)return this.addParentOpacity(C,A[A.length-1].color);if(A.forEach($=>{S.addColorStop($.offset,this.addParentOpacity(C,$.color))}),this.getAttribute("gradientTransform").hasValue()){const{document:$}=this,{MAX_VIRTUAL_PIXELS:E}=Screen,{viewPort:P}=$.screen,B=P.getRoot(),k=new RectElement($);k.attributes.x=new Property($,"x",-E/3),k.attributes.y=new Property($,"y",-E/3),k.attributes.width=new Property($,"width",E),k.attributes.height=new Property($,"height",E);const I=new GElement($);I.attributes.transform=new Property($,"transform",this.getAttribute("gradientTransform").getValue()),I.children=[k];const R=new SVGElement$1($);R.attributes.x=new Property($,"x",0),R.attributes.y=new Property($,"y",0),R.attributes.width=new Property($,"width",B.width),R.attributes.height=new Property($,"height",B.height),R.children=[I];const F=$.createCanvas(B.width,B.height),L=F.getContext("2d");return L.fillStyle=S,R.render(L),L.createPattern(F,"no-repeat")}return S}inheritStopContainer(b){this.attributesToInherit.forEach(x=>{!this.getAttribute(x).hasValue()&&b.getAttribute(x).hasValue()&&this.getAttribute(x,!0).setValue(b.getAttribute(x).getValue())})}addParentOpacity(b,x){return b.hasValue()?new Property(this.document,"color",x).addOpacity(b).getColor():x}constructor(b,x,C){super(b,x,C),this.attributesToInherit=["gradientUnits"],this.stops=[];const{stops:w,children:A}=this;A.forEach(S=>{S.type==="stop"&&w.push(S)})}}class LinearGradientElement extends GradientElement{getGradient(b,x){const C=this.getGradientUnits()==="objectBoundingBox",w=C?x.getBoundingBox(b):null;if(C&&!w)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));const A=C?w.x+w.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),S=C?w.y+w.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),$=C?w.x+w.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),E=C?w.y+w.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return A===$&&S===E?null:b.createLinearGradient(A,S,$,E)}constructor(b,x,C){super(b,x,C),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}}class RadialGradientElement extends GradientElement{getGradient(b,x){const C=this.getGradientUnits()==="objectBoundingBox",w=x.getBoundingBox(b);if(C&&!w)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");const A=C?w.x+w.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),S=C?w.y+w.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y");let $=A,E=S;this.getAttribute("fx").hasValue()&&($=C?w.x+w.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(E=C?w.y+w.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));const P=C?(w.width+w.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),B=this.getAttribute("fr").getPixels();return b.createRadialGradient($,E,B,A,S,P)}constructor(b,x,C){super(b,x,C),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}}class StopElement extends Element$1{constructor(b,x,C){super(b,x,C),this.type="stop";const w=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),A=this.getStyle("stop-opacity");let S=this.getStyle("stop-color",!0);S.getString()===""&&S.setValue("#000"),A.hasValue()&&(S=S.addOpacity(A)),this.offset=w,this.color=S.getColor()}}class AnimateElement extends Element$1{getProperty(){const b=this.getAttribute("attributeType").getString(),x=this.getAttribute("attributeName").getString();return b==="CSS"?this.parent.getStyle(x,!0):this.parent.getAttribute(x,!0)}calcValue(){const{initialUnits:b}=this,{progress:x,from:C,to:w}=this.getProgress();let A=C.getNumber()+(w.getNumber()-C.getNumber())*x;return b==="%"&&(A*=100),"".concat(A).concat(b)}update(b){const{parent:x}=this,C=this.getProperty();if(this.initialValue||(this.initialValue=C.getString(),this.initialUnits=C.getUnits()),this.duration>this.maxDuration){const A=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(A==="freeze"&&!this.frozen)this.frozen=!0,x&&C&&(x.animationFrozen=!0,x.animationFrozenValue=C.getString());else if(A==="remove"&&!this.removed)return this.removed=!0,x&&C&&C.setValue(x.animationFrozen?x.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=b;let w=!1;if(this.begin{const P=A[E];return $+(P-$)*b}).join(" ")}constructor(...b){super(...b),this.type="animateTransform"}}class FontFaceElement extends Element$1{constructor(b,x,C){super(b,x,C),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class GlyphElement extends PathElement{constructor(b,x,C){super(b,x,C),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class MissingGlyphElement extends GlyphElement{constructor(...b){super(...b),this.type="missing-glyph",this.horizAdvX=0}}class FontElement extends Element$1{render(){}constructor(b,x,C){super(b,x,C),this.type="font",this.isArabic=!1,this.glyphs={},this.arabicGlyphs={},this.isRTL=!1,this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();const{definitions:w}=b,{children:A}=this;for(const S of A)if(S instanceof FontFaceElement){this.fontFace=S;const $=S.getStyle("font-family");$.hasValue()&&(w[$.getString()]=this)}else if(S instanceof MissingGlyphElement)this.missingGlyph=S;else if(S instanceof GlyphElement)if(S.arabicForm){this.isRTL=!0,this.isArabic=!0;const $=this.arabicGlyphs[S.unicode];typeof $>"u"?this.arabicGlyphs[S.unicode]={[S.arabicForm]:S}:$[S.arabicForm]=S}else this.glyphs[S.unicode]=S}}class TRefElement extends TextElement{getText(){const b=this.getHrefAttribute().getDefinition();if(b){const x=b.children[0];if(x)return x.getText()}return""}constructor(...b){super(...b),this.type="tref"}}class AElement extends TextElement{getText(){return this.text}renderChildren(b){if(this.hasText){super.renderChildren(b);const{document:x,x:C,y:w}=this,{mouse:A}=x.screen,S=new Property(x,"fontSize",Font.parse(x.ctx.font).fontSize);A.isWorking()&&A.checkBoundingBox(this,new BoundingBox(C,w-S.getPixels("y"),C+this.measureText(b),w))}else if(this.children.length>0){const x=new GElement(this.document);x.children=this.children,x.parent=this,x.render(b)}}onClick(){const{window:b}=this.document;b&&b.open(this.getHrefAttribute().getString())}onMouseMove(){const b=this.document.ctx;b.canvas.style.cursor="pointer"}constructor(b,x,C){super(b,x,C),this.type="a";const{childNodes:w}=x,A=w[0],S=w.length>0&&Array.from(w).every($=>$.nodeType===3);this.hasText=S,this.text=S?this.getTextFromNode(A):""}}class TextPathElement extends TextElement{getText(){return this.text}path(b){const{dataArray:x}=this;b&&b.beginPath(),x.forEach(C=>{let{type:w,points:A}=C;switch(w){case PathParser.LINE_TO:b&&b.lineTo(A[0],A[1]);break;case PathParser.MOVE_TO:b&&b.moveTo(A[0],A[1]);break;case PathParser.CURVE_TO:b&&b.bezierCurveTo(A[0],A[1],A[2],A[3],A[4],A[5]);break;case PathParser.QUAD_TO:b&&b.quadraticCurveTo(A[0],A[1],A[2],A[3]);break;case PathParser.ARC:{const[S,$,E,P,B,k,I,R]=A,F=E>P?E:P,L=E>P?1:E/P,z=E>P?P/E:1;b&&(b.translate(S,$),b.rotate(I),b.scale(L,z),b.arc(0,0,F,B,B+k,!!(1-R)),b.scale(1/L,1/z),b.rotate(-I),b.translate(-S,-$));break}case PathParser.CLOSE_PATH:b&&b.closePath();break}})}renderChildren(b){this.setTextData(b),b.save();const x=this.parent.getStyle("text-decoration").getString(),C=this.getFontSize(),{glyphInfo:w}=this,A=b.fillStyle;x==="underline"&&b.beginPath(),w.forEach((S,$)=>{const{p0:E,p1:P,rotation:B,text:k}=S;b.save(),b.translate(E.x,E.y),b.rotate(B),b.fillStyle&&b.fillText(k,0,0),b.strokeStyle&&b.strokeText(k,0,0),b.restore(),x==="underline"&&($===0&&b.moveTo(E.x,E.y+C/8),b.lineTo(P.x,P.y+C/5))}),x==="underline"&&(b.lineWidth=C/20,b.strokeStyle=A,b.stroke(),b.closePath()),b.restore()}getLetterSpacingAt(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[b]||0}findSegmentToFitChar(b,x,C,w,A,S,$,E,P){let B=S,k=this.measureText(b,E);E===" "&&x==="justify"&&C-1&&(B+=this.getLetterSpacingAt(P));const I=this.textHeight/20,R=this.getEquidistantPointOnPath(B,I,0),F=this.getEquidistantPointOnPath(B+k,I,0),L={p0:R,p1:F},z=R&&F?Math.atan2(F.y-R.y,F.x-R.x):0;if($){const V=Math.cos(Math.PI/2+z)*$,U=Math.cos(-z)*$;L.p0={...R,x:R.x+V,y:R.y+U},L.p1={...F,x:F.x+V,y:F.y+U}}return B+=k,{offset:B,segment:L,rotation:z}}measureText(b,x){const{measuresCache:C}=this,w=x||this.getText();if(C.has(w))return C.get(w);const A=this.measureTargetText(b,w);return C.set(w,A),A}setTextData(b){if(this.glyphInfo)return;const x=this.getText(),C=x.split(""),w=x.split(" ").length-1,A=this.parent.getAttribute("dx").split().map(Q=>Q.getPixels("x")),S=this.parent.getAttribute("dy").getPixels("y"),$=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),P=this.parent.getStyle("letter-spacing");let B=0;!E.hasValue()||E.getValue()==="inherit"?B=P.getPixels():E.hasValue()&&E.getValue()!=="initial"&&E.getValue()!=="unset"&&(B=E.getPixels());const k=[],I=x.length;this.letterSpacingCache=k;for(let Q=0;QG===0?0:Q+W||0,0),F=this.measureText(b),L=Math.max(F+R,0);this.textWidth=F,this.textHeight=this.getFontSize(),this.glyphInfo=[];const z=this.getPathLength(),V=this.getStyle("startOffset").getNumber(0)*z;let U=0;($==="middle"||$==="center")&&(U=-L/2),($==="end"||$==="right")&&(U=-L),U+=V,C.forEach((Q,W)=>{const{offset:G,segment:q,rotation:K}=this.findSegmentToFitChar(b,$,L,z,w,U,S,Q,W);U=G,!(!q.p0||!q.p1)&&this.glyphInfo.push({text:C[W],p0:q.p0,p1:q.p1,rotation:K})})}parsePathData(b){if(this.pathLength=-1,!b)return[];const x=[],{pathParser:C}=b;for(C.reset();!C.isEnd();){const{current:w}=C,A=w?w.x:0,S=w?w.y:0,$=C.next();let E=$.type,P=[];switch($.type){case PathParser.MOVE_TO:this.pathM(C,P);break;case PathParser.LINE_TO:E=this.pathL(C,P);break;case PathParser.HORIZ_LINE_TO:E=this.pathH(C,P);break;case PathParser.VERT_LINE_TO:E=this.pathV(C,P);break;case PathParser.CURVE_TO:this.pathC(C,P);break;case PathParser.SMOOTH_CURVE_TO:E=this.pathS(C,P);break;case PathParser.QUAD_TO:this.pathQ(C,P);break;case PathParser.SMOOTH_QUAD_TO:E=this.pathT(C,P);break;case PathParser.ARC:P=this.pathA(C);break;case PathParser.CLOSE_PATH:PathElement.pathZ(C);break}$.type!==PathParser.CLOSE_PATH?x.push({type:E,points:P,start:{x:A,y:S},pathLength:this.calcLength(A,S,E,P)}):x.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return x}pathM(b,x){const{x:C,y:w}=PathElement.pathM(b).point;x.push(C,w)}pathL(b,x){const{x:C,y:w}=PathElement.pathL(b).point;return x.push(C,w),PathParser.LINE_TO}pathH(b,x){const{x:C,y:w}=PathElement.pathH(b).point;return x.push(C,w),PathParser.LINE_TO}pathV(b,x){const{x:C,y:w}=PathElement.pathV(b).point;return x.push(C,w),PathParser.LINE_TO}pathC(b,x){const{point:C,controlPoint:w,currentPoint:A}=PathElement.pathC(b);x.push(C.x,C.y,w.x,w.y,A.x,A.y)}pathS(b,x){const{point:C,controlPoint:w,currentPoint:A}=PathElement.pathS(b);return x.push(C.x,C.y,w.x,w.y,A.x,A.y),PathParser.CURVE_TO}pathQ(b,x){const{controlPoint:C,currentPoint:w}=PathElement.pathQ(b);x.push(C.x,C.y,w.x,w.y)}pathT(b,x){const{controlPoint:C,currentPoint:w}=PathElement.pathT(b);return x.push(C.x,C.y,w.x,w.y),PathParser.QUAD_TO}pathA(b){let{rX:x,rY:C,sweepFlag:w,xAxisRotation:A,centp:S,a1:$,ad:E}=PathElement.pathA(b);return w===0&&E>0&&(E-=2*Math.PI),w===1&&E<0&&(E+=2*Math.PI),[S.x,S.y,x,C,$,E,A,w]}calcLength(b,x,C,w){let A=0,S=null,$=null,E=0;switch(C){case PathParser.LINE_TO:return this.getLineLength(b,x,w[0],w[1]);case PathParser.CURVE_TO:for(A=0,S=this.getPointOnCubicBezier(0,b,x,w[0],w[1],w[2],w[3],w[4],w[5]),E=.01;E<=1;E+=.01)$=this.getPointOnCubicBezier(E,b,x,w[0],w[1],w[2],w[3],w[4],w[5]),A+=this.getLineLength(S.x,S.y,$.x,$.y),S=$;return A;case PathParser.QUAD_TO:for(A=0,S=this.getPointOnQuadraticBezier(0,b,x,w[0],w[1],w[2],w[3]),E=.01;E<=1;E+=.01)$=this.getPointOnQuadraticBezier(E,b,x,w[0],w[1],w[2],w[3]),A+=this.getLineLength(S.x,S.y,$.x,$.y),S=$;return A;case PathParser.ARC:{A=0;const P=w[4],B=w[5],k=w[4]+B;let I=Math.PI/180;if(Math.abs(P-k)k;E-=I)$=this.getPointOnEllipticalArc(w[0],w[1],w[2],w[3],E,0),A+=this.getLineLength(S.x,S.y,$.x,$.y),S=$;else for(E=P+I;E5&&arguments[5]!==void 0?arguments[5]:x,$=arguments.length>6&&arguments[6]!==void 0?arguments[6]:C;const E=(A-C)/(w-x+PSEUDO_ZERO);let P=Math.sqrt(b*b/(1+E*E));wx)return null;const{dataArray:A}=this;for(const S of A){if(S&&(S.pathLength<5e-5||C+S.pathLength+5e-5=0&&E>k)break;w=this.getPointOnEllipticalArc(S.points[0],S.points[1],S.points[2],S.points[3],E,S.points[6]);break}case PathParser.CURVE_TO:E=$/S.pathLength,E>1&&(E=1),w=this.getPointOnCubicBezier(E,S.start.x,S.start.y,S.points[0],S.points[1],S.points[2],S.points[3],S.points[4],S.points[5]);break;case PathParser.QUAD_TO:E=$/S.pathLength,E>1&&(E=1),w=this.getPointOnQuadraticBezier(E,S.start.x,S.start.y,S.points[0],S.points[1],S.points[2],S.points[3]);break}if(w)return w;break}return null}getLineLength(b,x,C,w){return Math.sqrt((C-b)*(C-b)+(w-x)*(w-x))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((b,x)=>x.pathLength>0?b+x.pathLength:b,0)),this.pathLength}getPointOnCubicBezier(b,x,C,w,A,S,$,E,P){const B=E*CB1(b)+S*CB2(b)+w*CB3(b)+x*CB4(b),k=P*CB1(b)+$*CB2(b)+A*CB3(b)+C*CB4(b);return{x:B,y:k}}getPointOnQuadraticBezier(b,x,C,w,A,S,$){const E=S*QB1(b)+w*QB2(b)+x*QB3(b),P=$*QB1(b)+A*QB2(b)+C*QB3(b);return{x:E,y:P}}getPointOnEllipticalArc(b,x,C,w,A,S){const $=Math.cos(S),E=Math.sin(S),P={x:C*Math.cos(A),y:w*Math.sin(A)};return{x:b+(P.x*$-P.y*E),y:x+(P.x*E+P.y*$)}}buildEquidistantCache(b,x){const C=this.getPathLength(),w=x||.25,A=b||C/100;if(!this.equidistantCache||this.equidistantCache.step!==A||this.equidistantCache.precision!==w){this.equidistantCache={step:A,precision:w,points:[]};let S=0;for(let $=0;$<=C;$+=w){const E=this.getPointOnPath($),P=this.getPointOnPath($+w);!E||!P||(S+=this.getLineLength(E.x,E.y,P.x,P.y),S>=A&&(this.equidistantCache.points.push({x:E.x,y:E.y,distance:$}),S-=A))}}}getEquidistantPointOnPath(b,x,C){if(this.buildEquidistantCache(x,C),b<0||b-this.getPathLength()>5e-5)return null;const w=Math.round(b/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[w]||null}constructor(b,x,C){super(b,x,C),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);const w=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(w)}}const dataUriRegex=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ImageElement extends RenderedElement{async loadImage(b){try{const x=await this.document.createImage(b);this.image=x}catch(x){console.error('Error while loading image "'.concat(b,'":'),x)}this.loaded=!0}async loadSvg(b){const x=dataUriRegex.exec(b);if(x){const C=x[5];C&&(x[4]==="base64"?this.image=atob(C):this.image=decodeURIComponent(C))}else try{const w=await(await this.document.fetch(b)).text();this.image=w}catch(C){console.error('Error while loading image "'.concat(b,'":'),C)}this.loaded=!0}renderChildren(b){const{document:x,image:C,loaded:w}=this,A=this.getAttribute("x").getPixels("x"),S=this.getAttribute("y").getPixels("y"),$=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y");if(!(!w||!C||!$||!E)){if(b.save(),b.translate(A,S),typeof C=="string"){const P=x.canvg.forkString(b,C,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:$,scaleHeight:E}),{documentElement:B}=P.document;B&&(B.parent=this),P.render()}else x.setViewBox({ctx:b,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:$,desiredWidth:C.width,height:E,desiredHeight:C.height}),this.loaded&&(!("complete"in C)||C.complete)&&b.drawImage(C,0,0);b.restore()}}getBoundingBox(){const b=this.getAttribute("x").getPixels("x"),x=this.getAttribute("y").getPixels("y"),C=this.getStyle("width").getPixels("x"),w=this.getStyle("height").getPixels("y");return new BoundingBox(b,x,b+C,x+w)}constructor(b,x,C){super(b,x,C),this.type="image",this.loaded=!1;const w=this.getHrefAttribute().getString();if(!w)return;const A=w.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(w);b.images.push(this),A?this.loadSvg(w):this.loadImage(w)}}class SymbolElement extends RenderedElement{render(b){}constructor(...b){super(...b),this.type="symbol"}}class SVGFontLoader{async load(b,x){try{const{document:C}=this,A=(await C.canvg.parser.load(x)).getElementsByTagName("font");Array.from(A).forEach(S=>{const $=C.createElement(S);C.definitions[b]=$})}catch(C){console.error('Error while loading font "'.concat(x,'":'),C)}this.loaded=!0}constructor(b){this.document=b,this.loaded=!1,b.fonts.push(this)}}class StyleElement extends Element$1{constructor(b,x,C){super(b,x,C),this.type="style",compressSpaces(Array.from(x.childNodes).map(S=>S.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(S=>{const $=S.trim();if(!$)return;const E=$.split("{"),P=E[0].split(","),B=E[1].split(";");P.forEach(k=>{const I=k.trim();if(!I)return;const R=b.styles[I]||{};if(B.forEach(F=>{const L=F.indexOf(":"),z=F.substr(0,L).trim(),V=F.substr(L+1,F.length-L).trim();z&&V&&(R[z]=new Property(b,z,V))}),b.styles[I]=R,b.stylesSpecificity[I]=getSelectorSpecificity(I),I==="@font-face"){const F=R["font-family"].getString().replace(/"|'/g,"");R.src.getString().split(",").forEach(z=>{if(z.indexOf('format("svg")')>0){const V=parseExternalUrl(z);V&&new SVGFontLoader(b).load(F,V)}})}})})}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{setContext(b){super.setContext(b);const x=this.getAttribute("x"),C=this.getAttribute("y");x.hasValue()&&b.translate(x.getPixels("x"),0),C.hasValue()&&b.translate(0,C.getPixels("y"))}path(b){const{element:x}=this;x&&x.path(b)}renderChildren(b){const{document:x,element:C}=this;if(C){let w=C;if(C.type==="symbol"&&(w=new SVGElement$1(x),w.attributes.viewBox=new Property(x,"viewBox",C.getAttribute("viewBox").getString()),w.attributes.preserveAspectRatio=new Property(x,"preserveAspectRatio",C.getAttribute("preserveAspectRatio").getString()),w.attributes.overflow=new Property(x,"overflow",C.getAttribute("overflow").getString()),w.children=C.children,C.styles.opacity=new Property(x,"opacity",this.calculateOpacity())),w.type==="svg"){const S=this.getStyle("width",!1,!0),$=this.getStyle("height",!1,!0);S.hasValue()&&(w.attributes.width=new Property(x,"width",S.getString())),$.hasValue()&&(w.attributes.height=new Property(x,"height",$.getString()))}const A=w.parent;w.parent=this,w.render(b),w.parent=A}}getBoundingBox(b){const{element:x}=this;return x?x.getBoundingBox(b):null}elementTransform(){const{document:b,element:x}=this;return x?Transform.fromElement(b,x):null}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}constructor(...b){super(...b),this.type="use"}}function imGet(d,b,x,C,w,A){return d[x*C*4+b*4+A]}function imSet(d,b,x,C,w,A,S){d[x*C*4+b*4+A]=S}function m(d,b,x){return d[b]*x}function c(d,b,x,C){return b+Math.cos(d)*x+Math.sin(d)*C}class FeColorMatrixElement extends Element$1{apply(b,x,C,w,A){const{includeOpacity:S,matrix:$}=this,E=b.getImageData(0,0,w,A);for(let P=0;P{R.addBoundingBox(F.getBoundingBox(b))}),w=Math.floor(R.x1),A=Math.floor(R.y1),S=Math.floor(R.width),$=Math.floor(R.height)}const E=this.removeStyles(x,MaskElement.ignoreStyles),P=C.createCanvas(w+S,A+$),B=P.getContext("2d");C.screen.setDefaults(B),this.renderChildren(B),new FeColorMatrixElement(C,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(B,0,0,w+S,A+$);const k=C.createCanvas(w+S,A+$),I=k.getContext("2d");C.screen.setDefaults(I),x.render(I),I.globalCompositeOperation="destination-in",I.fillStyle=B.createPattern(P,"no-repeat"),I.fillRect(0,0,w+S,A+$),b.fillStyle=I.createPattern(k,"no-repeat"),b.fillRect(0,0,w+S,A+$),this.restoreStyles(x,E)}render(b){}constructor(...b){super(...b),this.type="mask"}}MaskElement.ignoreStyles=["mask","transform","clip-path"];const noop$1=()=>{};class ClipPathElement extends Element$1{apply(b){const{document:x}=this,C=Reflect.getPrototypeOf(b),{beginPath:w,closePath:A}=b;C&&(C.beginPath=noop$1,C.closePath=noop$1),Reflect.apply(w,b,[]),this.children.forEach(S=>{if(!("path"in S))return;let $="elementTransform"in S?S.elementTransform():null;$||($=Transform.fromElement(x,S)),$&&$.apply(b),S.path(b),C&&(C.closePath=A),$&&$.unapply(b)}),Reflect.apply(A,b,[]),b.clip(),C&&(C.beginPath=w,C.closePath=A)}render(b){}constructor(...b){super(...b),this.type="clipPath"}}class FilterElement extends Element$1{apply(b,x){const{document:C,children:w}=this,A="getBoundingBox"in x?x.getBoundingBox(b):null;if(!A)return;let S=0,$=0;w.forEach(V=>{const U=V.extraFilterDistance||0;S=Math.max(S,U),$=Math.max($,U)});const E=Math.floor(A.width),P=Math.floor(A.height),B=E+2*S,k=P+2*$;if(B<1||k<1)return;const I=Math.floor(A.x),R=Math.floor(A.y),F=this.removeStyles(x,FilterElement.ignoreStyles),L=C.createCanvas(B,k),z=L.getContext("2d");C.screen.setDefaults(z),z.translate(-I+S,-R+$),x.render(z),w.forEach(V=>{typeof V.apply=="function"&&V.apply(z,0,0,B,k)}),b.drawImage(L,0,0,B,k,I-S,R-$,B,k),this.restoreStyles(x,F)}render(b){}constructor(...b){super(...b),this.type="filter"}}FilterElement.ignoreStyles=["filter","transform","clip-path"];class FeDropShadowElement extends Element$1{apply(b,x,C,w,A){}constructor(b,x,C){super(b,x,C),this.type="feDropShadow",this.addStylesFromStyleDefinition()}}class FeMorphologyElement extends Element$1{apply(b,x,C,w,A){}constructor(...b){super(...b),this.type="feMorphology"}}class FeCompositeElement extends Element$1{apply(b,x,C,w,A){}constructor(...b){super(...b),this.type="feComposite"}}class FeGaussianBlurElement extends Element$1{apply(b,x,C,w,A){const{document:S,blurRadius:$}=this,E=S.window?S.window.document.body:null,P=b.canvas;P.id=S.getUniqueId(),E&&(P.style.display="none",E.appendChild(P)),processCanvasRGBA(P,x,C,w,A,$),E&&E.removeChild(P)}constructor(b,x,C){super(b,x,C),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}}class TitleElement extends Element$1{constructor(...b){super(...b),this.type="title"}}class DescElement extends Element$1{constructor(...b){super(...b),this.type="desc"}}const elements={svg:SVGElement$1,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function createCanvas(d,b){const x=document.createElement("canvas");return x.width=d,x.height=b,x}async function createImage(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const x=document.createElement("img");return b&&(x.crossOrigin="Anonymous"),new Promise((C,w)=>{x.onload=()=>{C(x)},x.onerror=(A,S,$,E,P)=>{w(P)},x.src=d})}const DEFAULT_EM_SIZE=12;class Document{bindCreateImage(b,x){return typeof x=="boolean"?(C,w)=>b(C,typeof w=="boolean"?w:x):b}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){const{emSizeStack:b}=this;return b[b.length-1]||DEFAULT_EM_SIZE}set emSize(b){const{emSizeStack:x}=this;x.push(b)}popEmSize(){const{emSizeStack:b}=this;b.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(b=>b.loaded)}isFontsLoaded(){return this.fonts.every(b=>b.loaded)}createDocumentElement(b){const x=this.createElement(b.documentElement);return x.root=!0,x.addStylesFromStyleDefinition(),this.documentElement=x,x}createElement(b){const x=b.nodeName.replace(/^[^:]+:/,""),C=Document.elementTypes[x];return C?new C(this,b):new UnknownElement(this,b)}createTextNode(b){return new TextNode(this,b)}setViewBox(b){this.screen.setViewBox({document:this,...b})}constructor(b,{rootEmSize:x=DEFAULT_EM_SIZE,emSize:C=DEFAULT_EM_SIZE,createCanvas:w=Document.createCanvas,createImage:A=Document.createImage,anonymousCrossOrigin:S}={}){this.canvg=b,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=b.screen,this.rootEmSize=x,this.emSize=C,this.createCanvas=w,this.createImage=this.bindCreateImage(A,S),this.screen.wait(()=>this.isImagesLoaded()),this.screen.wait(()=>this.isFontsLoaded())}}Document.createCanvas=createCanvas;Document.createImage=createImage;Document.elementTypes=elements;class Canvg{static async from(b,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const A=await new Parser(C).parse(x);return new Canvg(b,A,C)}static fromString(b,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const A=new Parser(C).parseFromString(x);return new Canvg(b,A,C)}fork(b,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.from(b,x,{...this.options,...C})}forkString(b,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.fromString(b,x,{...this.options,...C})}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}async render(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.start({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0,...b}),await this.ready(),this.stop()}start(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{documentElement:x,screen:C,options:w}=this;C.start(x,{enableRedraw:!0,...w,...b})}stop(){this.screen.stop()}resize(b){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(b,x,C)}constructor(b,x,C={}){this.parser=new Parser(C),this.screen=new Screen(b,C),this.options=C;const w=new Document(this,C),A=w.createDocumentElement(x);this.document=w,this.documentElement=A}}const svg2canvas=d=>{const b=document.createElement("canvas"),x=b.getContext("2d");return x&&Canvg.fromString(x,d).start(),b},btnImg="_btnImg_1oip1_1",topBtnIcon="_topBtnIcon_1oip1_13",dropItem="_dropItem_1oip1_17",dropIcon="_dropIcon_1oip1_21",dropWrap="_dropWrap_1oip1_26",styles$2={btnImg,topBtnIcon,dropItem,dropIcon,dropWrap},FileBtn=defineComponent({name:"FileBtn",emits:["select"],setup(d,{emit:b}){const x=[{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_4.png")},null),createVNode("span",null,[createTextVNode("新建曲谱")])]),key:"newMusic"},{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_0.png")},null),createVNode("span",null,[createTextVNode("保存")])]),key:"save"},{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_1.png")},null),createVNode("span",null,[createTextVNode("上传到我的资源")])]),key:"upload",disabled:!0},{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_2.png")},null),createVNode("span",null,[createTextVNode("导出")])]),key:"export",children:[{label:"PNG",key:"png"},{label:"WAV",key:"wav"},{label:"MIDI",key:"midi"}]},{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_3.png")},null),createVNode("span",null,[createTextVNode("打印")])]),key:"print",disabled:!0}];return()=>createVNode(NDropdown,{class:styles$2.dropWrap,options:x,trigger:"click",onSelect:C=>{console.log("🚀 ~ val:",C),b("select",C)}},{default:()=>[createVNode("div",{class:styles$2.btnImg},[createVNode("img",{class:styles$2.topBtnIcon,src:getImage("icon_0.png")},null)])]})}}),setbox="_setbox_1p89x_1",head="_head_1p89x_11",close="_close_1p89x_25",content="_content_1p89x_31",slide="_slide_1p89x_36",box="_box_1p89x_43",btn$1="_btn_1p89x_56",activeBtn="_activeBtn_1p89x_63",btnIcon="_btnIcon_1p89x_68",keyBox="_keyBox_1p89x_71",table="_table_1p89x_74",styles$1={setbox,head,close,content,slide,box,btn:btn$1,activeBtn,btnIcon,keyBox,table};function _isSlot$1(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!isVNode(d)}const TheSetting=defineComponent({name:"TheSetting",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(d,{emit:b}){useMessage();const x=reactive({show:!1,btns:[{label:"播放设置",key:"1",icon:getImage("icon_28_1.png")},{label:"快捷键",key:"3",icon:getImage("icon_28_3.png")}],active:"3"});watch(()=>d.show,()=>{x.show=d.show});const C=[{label:"音符向上",value:"↑"},{label:"音符向下",value:"↓"},{label:"音符C",value:"C"},{label:"音符D",value:"D"},{label:"音符E",value:"E"},{label:"音符F",value:"F"},{label:"音符G",value:"G"},{label:"音符A",value:"A"},{label:"音符B",value:"B"},{label:"BackSpace",value:"删除音符"}];return()=>{let w;return createVNode(NModal,{autoFocus:!1,show:d.show,"onUpdate:show":A=>b("update:show",A)},{default:()=>[createVNode("div",{class:styles$1.setbox},[createVNode("div",{class:styles$1.head},[createVNode("div",null,[createTextVNode("设置")]),createVNode(NButton,{class:styles$1.close,quaternary:!0,circle:!0,size:"small",onClick:()=>b("update:show",!1)},{default:()=>[createVNode(NIcon,{component:Close,size:18},null)]})]),createVNode("div",{class:styles$1.content},[createVNode("div",{class:styles$1.slide},[createVNode(NSpace,{vertical:!0,align:"center",wrapItem:!1},_isSlot$1(w=x.btns.map(A=>createVNode(NButton,{quaternary:!0,block:!0,class:[styles$1.btn,x.active===A.key&&styles$1.activeBtn],onClick:()=>x.active=A.key},{icon:()=>createVNode("img",{class:styles$1.btnIcon,src:A.icon},null),default:()=>A.label})))?w:{default:()=>[w]})]),createVNode("div",{class:styles$1.box},[createVNode(NTabs,{value:x.active,"onUpdate:value":A=>x.active=A},{default:()=>[createVNode(NTabPane,{name:"1",tab:"1"},{default:()=>[createVNode("div",{class:styles$1.keyBox},[createVNode(NCard,{title:"光标设置",bordered:!1},{default:()=>[createVNode(NRadioGroup,{value:settings.cursorType,"onUpdate:value":A=>settings.cursorType=A},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NRadio,{value:"beat",disabled:!0},{default:()=>[createTextVNode("光标跟随节拍")]}),createVNode(NRadio,{value:"note"},{default:()=>[createTextVNode("光标跟随音符")]})]})]})]})])]}),createVNode(NTabPane,{name:"3",tab:"3"},{default:()=>[createVNode(NScrollbar,null,{default:()=>[createVNode("div",{class:styles$1.keyBox},[createVNode(NTable,{class:styles$1.table,striped:!0},{default:()=>[createVNode("thead",null,[createVNode("tr",null,[createVNode("th",null,[createTextVNode("命令")]),createVNode("th",null,[createTextVNode("快捷键")])])]),createVNode("tbody",null,[C.map(A=>createVNode("tr",null,[createVNode("td",null,[A.label]),createVNode("td",null,[A.value])]))])]})])]})]})]})])])])]})}}}),acoustic_grand_piano="三角大钢琴",bright_acoustic_piano="明亮钢琴",electric_grand_piano="电声大钢琴",honkytonk_piano="梦幻电钢",electric_piano_1="电子钢琴1",electric_piano_2="电子钢琴2",harpsichord="羽管键琴",clavinet="古钢琴",celesta="钢片琴",glockenspiel="钟琴",music_box="音乐盒",vibraphone="颤音琴",marimba="马林巴琴",xylophone="木琴",tubular_bells="管钟",dulcimer="杜西莫琴",drawbar_organ="拉杆管风琴",percussive_organ="敲击管风琴",rock_organ="摇滚管风琴",church_organ="教堂管风琴",reed_organ="簧片管风琴",accordion="手风琴",harmonica="口琴",tango_accordion="探戈手风琴",acoustic_guitar_nylon="古典吉他",acoustic_guitar_steel="民谣吉他",electric_guitar_jazz="爵士电吉他",electric_guitar_clean="清音电吉他",electric_guitar_muted="闷音电吉他",overdriven_guitar="过载电吉他",distortion_guitar="失真电吉他",guitar_harmonics="泛音吉他",acoustic_bass="原声贝司",electric_bass_finger="手弹贝司",electric_bass_pick="拨片贝司",fretless_bass="无品贝司",slap_bass_1="击弦贝司1",slap_bass_2="击弦贝司2",synth_bass_1="电贝司1",synth_bass_2="电贝司2",violin="小提琴",viola="中提琴",cello="大提琴",contrabass="倍大提琴",tremolo_strings="颤音弦乐",pizzicato_strings="弹拨弦乐",orchestral_harp="竖琴",timpani="定音鼓",string_ensemble_1="弦乐合奏1",string_ensemble_2="弦乐合奏2",synth_strings_1="合成弦乐1",synth_strings_2="合成弦乐2",choir_aahs="人声合唱“啊”",voice_oohs="人声合唱“嘟”",synth_choir="童声合唱",orchestra_hit="打击交响乐",trumpet="小号",trombone="长号",tuba="大号",muted_trumpet="弱音小号",french_horn="法国圆号",brass_section="铜管乐合奏",synth_brass_1="合成铜管1",synth_brass_2="合成铜管2",soprano_sax="高音萨克斯",alto_sax="中音萨克斯",tenor_sax="次中音萨克斯",baritone_sax="上低音音萨克斯",oboe="双簧管",english_horn="英国管",bassoon="巴松管",clarinet="葫芦丝",piccolo="口风琴",flute="长笛",recorder="竖笛",pan_flute="排箫",blown_bottle="陶笛",shakuhachi="尺八",whistle="口哨",ocarina="瓶笛",lead_1_square="合成器1(方形)",lead_2_sawtooth="合成器2(锯齿波)",lead_3_calliope="主音3(汽笛风琴主奏)",lead_4_chiff="主音4(领奏)",lead_5_charang="主音5(沙朗主奏)",lead_6_voice="主音6(声音)",lead_7_fifths="主音7(五度管乐)",lead_8_bass_lead="主音8(贝司主奏)",pad_1_new_age="长音1(新世纪音乐)",pad_2_warm="长音2(温暖的音色)",pad_3_polysynth="长音3(多合成音色)",pad_4_choir="长音4(合唱)",pad_5_bowed="长音5(弧形波)",pad_6_metallic="长音6(金属感)",pad_7_halo="长音7(光晕)",pad_8_sweep="长音8(曲线波)",fx_1_rain="特效1(雨声)",fx_2_soundtrack="特效2(电影声效)",fx_3_crystal="特效3(清澈)",fx_4_atmosphere="特效4(气氛)",fx_5_brightness="特效5(明亮)",fx_6_goblins="特效6(哥布林)",fx_7_echoes="特效7(回响)",fx_8_scifi="特效8(科幻)",sitar="西塔尔琴",banjo="班卓琴",shamisen="三弦琴",koto="十三弦古筝",kalimba="克林巴琴",bagpipe="苏格兰风笛",fiddle="古提琴",shanai="响嘁",tinkle_bell="铃铛",agogo="摇摆舞铃",steel_drums="钢鼓",woodblock="木鱼",taiko_drum="太鼓",melodic_tom="通通鼓",synth_drum="合成鼓",reverse_cymbal="铜钹",guitar_fret_noise="吉他换把杂音",breath_noise="呼吸声",seashore="海浪声",bird_tweet="鸟鸣叫",telephone_ring="手机铃声",helicopter="直升机",applause="鼓掌",gunshot="射击",percussion="打击乐",instrumentsNames={acoustic_grand_piano,bright_acoustic_piano,electric_grand_piano,honkytonk_piano,electric_piano_1,electric_piano_2,harpsichord,clavinet,celesta,glockenspiel,music_box,vibraphone,marimba,xylophone,tubular_bells,dulcimer,drawbar_organ,percussive_organ,rock_organ,church_organ,reed_organ,accordion,harmonica,tango_accordion,acoustic_guitar_nylon,acoustic_guitar_steel,electric_guitar_jazz,electric_guitar_clean,electric_guitar_muted,overdriven_guitar,distortion_guitar,guitar_harmonics,acoustic_bass,electric_bass_finger,electric_bass_pick,fretless_bass,slap_bass_1,slap_bass_2,synth_bass_1,synth_bass_2,violin,viola,cello,contrabass,tremolo_strings,pizzicato_strings,orchestral_harp,timpani,string_ensemble_1,string_ensemble_2,synth_strings_1,synth_strings_2,choir_aahs,voice_oohs,synth_choir,orchestra_hit,trumpet,trombone,tuba,muted_trumpet,french_horn,brass_section,synth_brass_1,synth_brass_2,soprano_sax,alto_sax,tenor_sax,baritone_sax,oboe,english_horn,bassoon,clarinet,piccolo,flute,recorder,pan_flute,blown_bottle,shakuhachi,whistle,ocarina,lead_1_square,lead_2_sawtooth,lead_3_calliope,lead_4_chiff,lead_5_charang,lead_6_voice,lead_7_fifths,lead_8_bass_lead,pad_1_new_age,pad_2_warm,pad_3_polysynth,pad_4_choir,pad_5_bowed,pad_6_metallic,pad_7_halo,pad_8_sweep,fx_1_rain,fx_2_soundtrack,fx_3_crystal,fx_4_atmosphere,fx_5_brightness,fx_6_goblins,fx_7_echoes,fx_8_scifi,sitar,banjo,shamisen,koto,kalimba,bagpipe,fiddle,shanai,tinkle_bell,agogo,steel_drums,woodblock,taiko_drum,melodic_tom,synth_drum,reverse_cymbal,guitar_fret_noise,breath_noise,seashore,bird_tweet,telephone_ring,helicopter,applause,gunshot,percussion};function tryOnScopeDispose(d){return getCurrentScope()?(onScopeDispose(d),!0):!1}function toValue(d){return typeof d=="function"?d():unref(d)}const isClient=typeof window<"u",noop=()=>{},isIOS=getIsIOS();function getIsIOS(){var d;return isClient&&((d=window==null?void 0:window.navigator)==null?void 0:d.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(d,b){function x(...C){return new Promise((w,A)=>{Promise.resolve(d(()=>b.apply(this,C),{fn:b,thisArg:this,args:C})).then(w).catch(A)})}return x}const bypassFilter=d=>d();function pausableFilter(d=bypassFilter){const b=ref(!0);function x(){b.value=!1}function C(){b.value=!0}const w=(...A)=>{b.value&&d(...A)};return{isActive:readonly(b),pause:x,resume:C,eventFilter:w}}function toRef(...d){if(d.length!==1)return toRef$1(...d);const b=d[0];return typeof b=="function"?readonly(customRef(()=>({get:b,set:noop}))):ref(b)}var __defProp$9=Object.defineProperty,__defProps$7=Object.defineProperties,__getOwnPropDescs$7=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$b=Object.getOwnPropertySymbols,__hasOwnProp$b=Object.prototype.hasOwnProperty,__propIsEnum$b=Object.prototype.propertyIsEnumerable,__defNormalProp$9=(d,b,x)=>b in d?__defProp$9(d,b,{enumerable:!0,configurable:!0,writable:!0,value:x}):d[b]=x,__spreadValues$9=(d,b)=>{for(var x in b||(b={}))__hasOwnProp$b.call(b,x)&&__defNormalProp$9(d,x,b[x]);if(__getOwnPropSymbols$b)for(var x of __getOwnPropSymbols$b(b))__propIsEnum$b.call(b,x)&&__defNormalProp$9(d,x,b[x]);return d},__spreadProps$7=(d,b)=>__defProps$7(d,__getOwnPropDescs$7(b));function toRefs(d,b={}){if(!isRef(d))return toRefs$1(d);const x=Array.isArray(d.value)?Array.from({length:d.value.length}):{};for(const C in d.value)x[C]=customRef(()=>({get(){return d.value[C]},set(w){var A;if((A=toValue(b.replaceRef))!=null?A:!0)if(Array.isArray(d.value)){const $=[...d.value];$[C]=w,d.value=$}else{const $=__spreadProps$7(__spreadValues$9({},d.value),{[C]:w});Object.setPrototypeOf($,Object.getPrototypeOf(d.value)),d.value=$}else d.value[C]=w}}));return x}var __getOwnPropSymbols$8=Object.getOwnPropertySymbols,__hasOwnProp$8=Object.prototype.hasOwnProperty,__propIsEnum$8=Object.prototype.propertyIsEnumerable,__objRest$5=(d,b)=>{var x={};for(var C in d)__hasOwnProp$8.call(d,C)&&b.indexOf(C)<0&&(x[C]=d[C]);if(d!=null&&__getOwnPropSymbols$8)for(var C of __getOwnPropSymbols$8(d))b.indexOf(C)<0&&__propIsEnum$8.call(d,C)&&(x[C]=d[C]);return x};function watchWithFilter(d,b,x={}){const C=x,{eventFilter:w=bypassFilter}=C,A=__objRest$5(C,["eventFilter"]);return watch(d,createFilterWrapper(w,b),A)}var __defProp$2=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=(d,b,x)=>b in d?__defProp$2(d,b,{enumerable:!0,configurable:!0,writable:!0,value:x}):d[b]=x,__spreadValues$2=(d,b)=>{for(var x in b||(b={}))__hasOwnProp$2.call(b,x)&&__defNormalProp$2(d,x,b[x]);if(__getOwnPropSymbols$2)for(var x of __getOwnPropSymbols$2(b))__propIsEnum$2.call(b,x)&&__defNormalProp$2(d,x,b[x]);return d},__spreadProps$2=(d,b)=>__defProps$2(d,__getOwnPropDescs$2(b)),__objRest$1=(d,b)=>{var x={};for(var C in d)__hasOwnProp$2.call(d,C)&&b.indexOf(C)<0&&(x[C]=d[C]);if(d!=null&&__getOwnPropSymbols$2)for(var C of __getOwnPropSymbols$2(d))b.indexOf(C)<0&&__propIsEnum$2.call(d,C)&&(x[C]=d[C]);return x};function watchPausable(d,b,x={}){const C=x,{eventFilter:w}=C,A=__objRest$1(C,["eventFilter"]),{eventFilter:S,pause:$,resume:E,isActive:P}=pausableFilter(w);return{stop:watchWithFilter(d,b,__spreadProps$2(__spreadValues$2({},A),{eventFilter:S})),pause:$,resume:E,isActive:P}}function unrefElement$1(d){var b;const x=toValue(d);return(b=x==null?void 0:x.$el)!=null?b:x}const defaultWindow$1=isClient?window:void 0;function useEventListener$1(...d){let b,x,C,w;if(typeof d[0]=="string"||Array.isArray(d[0])?([x,C,w]=d,b=defaultWindow$1):[b,x,C,w]=d,!b)return noop;Array.isArray(x)||(x=[x]),Array.isArray(C)||(C=[C]);const A=[],S=()=>{A.forEach(B=>B()),A.length=0},$=(B,k,I,R)=>(B.addEventListener(k,I,R),()=>B.removeEventListener(k,I,R)),E=watch(()=>[unrefElement$1(b),toValue(w)],([B,k])=>{S(),B&&A.push(...x.flatMap(I=>C.map(R=>$(B,I,R,k))))},{immediate:!0,flush:"post"}),P=()=>{E(),S()};return tryOnScopeDispose(P),P}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global||(_global[globalKey]=_global[globalKey]||{}),_global[globalKey]}function getSSRHandler(d,b){return handlers[d]||b}function guessSerializerType(d){return d==null?"any":d instanceof Set?"set":d instanceof Map?"map":d instanceof Date?"date":typeof d=="boolean"?"boolean":typeof d=="string"?"string":typeof d=="object"?"object":Number.isNaN(d)?"any":"number"}var __defProp$l=Object.defineProperty,__getOwnPropSymbols$o=Object.getOwnPropertySymbols,__hasOwnProp$o=Object.prototype.hasOwnProperty,__propIsEnum$o=Object.prototype.propertyIsEnumerable,__defNormalProp$l=(d,b,x)=>b in d?__defProp$l(d,b,{enumerable:!0,configurable:!0,writable:!0,value:x}):d[b]=x,__spreadValues$l=(d,b)=>{for(var x in b||(b={}))__hasOwnProp$o.call(b,x)&&__defNormalProp$l(d,x,b[x]);if(__getOwnPropSymbols$o)for(var x of __getOwnPropSymbols$o(b))__propIsEnum$o.call(b,x)&&__defNormalProp$l(d,x,b[x]);return d};const StorageSerializers={boolean:{read:d=>d==="true",write:d=>String(d)},object:{read:d=>JSON.parse(d),write:d=>JSON.stringify(d)},number:{read:d=>Number.parseFloat(d),write:d=>String(d)},any:{read:d=>d,write:d=>String(d)},string:{read:d=>d,write:d=>String(d)},map:{read:d=>new Map(JSON.parse(d)),write:d=>JSON.stringify(Array.from(d.entries()))},set:{read:d=>new Set(JSON.parse(d)),write:d=>JSON.stringify(Array.from(d))},date:{read:d=>new Date(d),write:d=>d.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(d,b,x,C={}){var w;const{flush:A="pre",deep:S=!0,listenToStorageChanges:$=!0,writeDefaults:E=!0,mergeDefaults:P=!1,shallow:B,window:k=defaultWindow$1,eventFilter:I,onError:R=X=>{console.error(X)}}=C,F=(B?shallowRef:ref)(b);if(!x)try{x=getSSRHandler("getDefaultStorage",()=>{var X;return(X=defaultWindow$1)==null?void 0:X.localStorage})()}catch(X){R(X)}if(!x)return F;const L=toValue(b),z=guessSerializerType(L),V=(w=C.serializer)!=null?w:StorageSerializers[z],{pause:U,resume:Q}=watchPausable(F,()=>W(F.value),{flush:A,deep:S,eventFilter:I});return k&&$&&(useEventListener$1(k,"storage",K),useEventListener$1(k,customStorageEventName,q)),K(),F;function W(X){try{if(X==null)x.removeItem(d);else{const J=V.write(X),oe=x.getItem(d);oe!==J&&(x.setItem(d,J),k&&k.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:d,oldValue:oe,newValue:J,storageArea:x}})))}}catch(J){R(J)}}function G(X){const J=X?X.newValue:x.getItem(d);if(J==null)return E&&L!==null&&x.setItem(d,V.write(L)),L;if(!X&&P){const oe=V.read(J);return typeof P=="function"?P(oe,L):z==="object"&&!Array.isArray(oe)?__spreadValues$l(__spreadValues$l({},L),oe):oe}else return typeof J!="string"?J:V.read(J)}function q(X){K(X.detail)}function K(X){if(!(X&&X.storageArea!==x)){if(X&&X.key==null){F.value=L;return}if(!(X&&X.key!==d)){U();try{F.value=G(X)}catch(J){R(J)}finally{X?nextTick(Q):Q()}}}}}var __defProp$g=Object.defineProperty,__defProps$6=Object.defineProperties,__getOwnPropDescs$6=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$i=Object.getOwnPropertySymbols,__hasOwnProp$i=Object.prototype.hasOwnProperty,__propIsEnum$i=Object.prototype.propertyIsEnumerable,__defNormalProp$g=(d,b,x)=>b in d?__defProp$g(d,b,{enumerable:!0,configurable:!0,writable:!0,value:x}):d[b]=x,__spreadValues$g=(d,b)=>{for(var x in b||(b={}))__hasOwnProp$i.call(b,x)&&__defNormalProp$g(d,x,b[x]);if(__getOwnPropSymbols$i)for(var x of __getOwnPropSymbols$i(b))__propIsEnum$i.call(b,x)&&__defNormalProp$g(d,x,b[x]);return d},__spreadProps$6=(d,b)=>__defProps$6(d,__getOwnPropDescs$6(b));function useDraggable(d,b={}){var x,C;const{pointerTypes:w,preventDefault:A,stopPropagation:S,exact:$,onMove:E,onEnd:P,onStart:B,initialValue:k,axis:I="both",draggingElement:R=defaultWindow$1,handle:F=d}=b,L=ref((x=toValue(k))!=null?x:{x:0,y:0}),z=ref(),V=q=>w?w.includes(q.pointerType):!0,U=q=>{toValue(A)&&q.preventDefault(),toValue(S)&&q.stopPropagation()},Q=q=>{if(!V(q)||toValue($)&&q.target!==toValue(d))return;const K=toValue(d).getBoundingClientRect(),X={x:q.clientX-K.left,y:q.clientY-K.top};(B==null?void 0:B(X,q))!==!1&&(z.value=X,U(q))},W=q=>{if(!V(q)||!z.value)return;let{x:K,y:X}=L.value;(I==="x"||I==="both")&&(K=q.clientX-z.value.x),(I==="y"||I==="both")&&(X=q.clientY-z.value.y),L.value={x:K,y:X},E==null||E(L.value,q),U(q)},G=q=>{V(q)&&z.value&&(z.value=void 0,P==null||P(L.value,q),U(q))};if(isClient){const q={capture:(C=b.capture)!=null?C:!0};useEventListener$1(F,"pointerdown",Q,q),useEventListener$1(R,"pointermove",W,q),useEventListener$1(R,"pointerup",G,q)}return __spreadProps$6(__spreadValues$g({},toRefs(L)),{position:L,isDragging:computed(()=>!!z.value),style:computed(()=>"left:".concat(L.value.x,"px;top:").concat(L.value.y,"px;"))})}function unrefElement(d){var b;const x=toValue(d);return(b=x==null?void 0:x.$el)!=null?b:x}const defaultWindow=isClient?window:void 0;function useEventListener(...d){let b,x,C,w;if(typeof d[0]=="string"||Array.isArray(d[0])?([x,C,w]=d,b=defaultWindow):[b,x,C,w]=d,!b)return noop;Array.isArray(x)||(x=[x]),Array.isArray(C)||(C=[C]);const A=[],S=()=>{A.forEach(B=>B()),A.length=0},$=(B,k,I,R)=>(B.addEventListener(k,I,R),()=>B.removeEventListener(k,I,R)),E=watch(()=>[unrefElement(b),toValue(w)],([B,k])=>{S(),B&&A.push(...x.flatMap(I=>C.map(R=>$(B,I,R,k))))},{immediate:!0,flush:"post"}),P=()=>{E(),S()};return tryOnScopeDispose(P),P}var __defProp$b=Object.defineProperty,__defProps$9=Object.defineProperties,__getOwnPropDescs$9=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$d=Object.getOwnPropertySymbols,__hasOwnProp$d=Object.prototype.hasOwnProperty,__propIsEnum$d=Object.prototype.propertyIsEnumerable,__defNormalProp$b=(d,b,x)=>b in d?__defProp$b(d,b,{enumerable:!0,configurable:!0,writable:!0,value:x}):d[b]=x,__spreadValues$b=(d,b)=>{for(var x in b||(b={}))__hasOwnProp$d.call(b,x)&&__defNormalProp$b(d,x,b[x]);if(__getOwnPropSymbols$d)for(var x of __getOwnPropSymbols$d(b))__propIsEnum$d.call(b,x)&&__defNormalProp$b(d,x,b[x]);return d},__spreadProps$9=(d,b)=>__defProps$9(d,__getOwnPropDescs$9(b));const UseDraggable=defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd"],setup(d,{slots:b}){const x=ref(),C=computed(()=>{var E;return(E=d.handle)!=null?E:x.value}),w=d.storageKey&&useStorage(d.storageKey,toValue(d.initialValue)||{x:0,y:0},isClient?d.storageType==="session"?sessionStorage:localStorage:void 0),A=w||d.initialValue||{x:0,y:0},S=(E,P)=>{var B;(B=d.onEnd)==null||B.call(d,E,P),w&&(w.value.x=E.x,w.value.y=E.y)},$=reactive(useDraggable(x,__spreadProps$9(__spreadValues$b({},d),{handle:C,initialValue:A,onEnd:S})));return()=>{if(b.default)return h$1(d.as||"div",{ref:x,style:"touch-action:none;".concat($.style)},b.default($))}}});function checkOverflowScroll(d){const b=window.getComputedStyle(d);if(b.overflowX==="scroll"||b.overflowY==="scroll"||b.overflowX==="auto"&&d.clientWidth1?!0:(b.preventDefault&&b.preventDefault(),!1)}function useScrollLock(d,b=!1){const x=ref(b);let C=null,w;watch(toRef(d),$=>{if($){const E=$;w=E.style.overflow,x.value&&(E.style.overflow="hidden")}},{immediate:!0});const A=()=>{const $=toValue(d);!$||x.value||(isIOS&&(C=useEventListener($,"touchmove",E=>{preventDefault(E)},{passive:!1})),$.style.overflow="hidden",x.value=!0)},S=()=>{const $=toValue(d);!$||!x.value||(isIOS&&(C==null||C()),$.style.overflow=w,x.value=!1)};return tryOnScopeDispose(S),computed({get(){return x.value},set($){$?A():S()}})}function onScrollLock(){let d=!1;const b=ref(!1);return(x,C)=>{if(b.value=C.value,d)return;d=!0;const w=useScrollLock(x,C.value);watch(b,A=>w.value=A)}}onScrollLock();var howler={};/*! * howler.js v2.2.3 * howlerjs.com * * (c) 2013-2020, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */(function(d){(function(){var b=function(){this.init()};b.prototype={init:function(){var k=this||x;return k._counter=1e3,k._html5AudioPool=[],k.html5PoolSize=10,k._codecs={},k._howls=[],k._muted=!1,k._volume=1,k._canPlayEvent="canplaythrough",k._navigator=typeof window<"u"&&window.navigator?window.navigator:null,k.masterGain=null,k.noAudio=!1,k.usingWebAudio=!0,k.autoSuspend=!0,k.ctx=null,k.autoUnlock=!0,k._setup(),k},volume:function(k){var I=this||x;if(k=parseFloat(k),I.ctx||B(),typeof k<"u"&&k>=0&&k<=1){if(I._volume=k,I._muted)return I;I.usingWebAudio&&I.masterGain.gain.setValueAtTime(k,x.ctx.currentTime);for(var R=0;R=0;I--)k._howls[I].unload();return k.usingWebAudio&&k.ctx&&typeof k.ctx.close<"u"&&(k.ctx.close(),k.ctx=null,B()),k},codecs:function(k){return(this||x)._codecs[k.replace(/^x-/,"")]},_setup:function(){var k=this||x;if(k.state=k.ctx&&k.ctx.state||"suspended",k._autoSuspend(),!k.usingWebAudio)if(typeof Audio<"u")try{var I=new Audio;typeof I.oncanplaythrough>"u"&&(k._canPlayEvent="canplay")}catch(R){k.noAudio=!0}else k.noAudio=!0;try{var I=new Audio;I.muted&&(k.noAudio=!0)}catch(R){}return k.noAudio||k._setupCodecs(),k},_setupCodecs:function(){var k=this||x,I=null;try{I=typeof Audio<"u"?new Audio:null}catch(W){return k}if(!I||typeof I.canPlayType!="function")return k;var R=I.canPlayType("audio/mpeg;").replace(/^no$/,""),F=k._navigator?k._navigator.userAgent:"",L=F.match(/OPR\/([0-6].)/g),z=L&&parseInt(L[0].split("/")[1],10)<33,V=F.indexOf("Safari")!==-1&&F.indexOf("Chrome")===-1,U=F.match(/Version\/(.*?) /),Q=V&&U&&parseInt(U[1],10)<15;return k._codecs={mp3:!!(!z&&(R||I.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!R,opus:!!I.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!I.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!I.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(I.canPlayType('audio/wav; codecs="1"')||I.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!I.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!I.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(I.canPlayType("audio/x-m4a;")||I.canPlayType("audio/m4a;")||I.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(I.canPlayType("audio/x-m4b;")||I.canPlayType("audio/m4b;")||I.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(I.canPlayType("audio/x-mp4;")||I.canPlayType("audio/mp4;")||I.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!Q&&I.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!Q&&I.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!I.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(I.canPlayType("audio/x-flac;")||I.canPlayType("audio/flac;")).replace(/^no$/,"")},k},_unlockAudio:function(){var k=this||x;if(!(k._audioUnlocked||!k.ctx)){k._audioUnlocked=!1,k.autoUnlock=!1,!k._mobileUnloaded&&k.ctx.sampleRate!==44100&&(k._mobileUnloaded=!0,k.unload()),k._scratchBuffer=k.ctx.createBuffer(1,1,22050);var I=function(R){for(;k._html5AudioPool.length"u"?Q.noteOn(0):Q.start(0),typeof k.ctx.resume=="function"&&k.ctx.resume(),Q.onended=function(){Q.disconnect(0),k._audioUnlocked=!0,document.removeEventListener("touchstart",I,!0),document.removeEventListener("touchend",I,!0),document.removeEventListener("click",I,!0),document.removeEventListener("keydown",I,!0);for(var W=0;W"u"||!x.usingWebAudio)){for(var I=0;I"u"||!x.usingWebAudio))return k.state==="running"&&k.ctx.state!=="interrupted"&&k._suspendTimer?(clearTimeout(k._suspendTimer),k._suspendTimer=null):k.state==="suspended"||k.state==="running"&&k.ctx.state==="interrupted"?(k.ctx.resume().then(function(){k.state="running";for(var I=0;I"u"&&(k="__default",!R._playLock)){for(var L=0,z=0;z0?V._seek:R._sprite[k][0]/1e3),W=Math.max(0,(R._sprite[k][0]+R._sprite[k][1])/1e3-Q),G=W*1e3/Math.abs(V._rate),q=R._sprite[k][0]/1e3,K=(R._sprite[k][0]+R._sprite[k][1])/1e3;V._sprite=k,V._ended=!1;var X=function(){V._paused=!1,V._seek=Q,V._start=q,V._stop=K,V._loop=!!(V._loop||R._sprite[k][2])};if(Q>=K){R._ended(V);return}var J=V._node;if(R._webAudio){var oe=function(){R._playLock=!1,X(),R._refreshBuffer(V);var fe=V._muted||R._muted?0:V._volume;J.gain.setValueAtTime(fe,x.ctx.currentTime),V._playStart=x.ctx.currentTime,typeof J.bufferSource.start>"u"?V._loop?J.bufferSource.noteGrainOn(0,Q,86400):J.bufferSource.noteGrainOn(0,Q,W):V._loop?J.bufferSource.start(0,Q,86400):J.bufferSource.start(0,Q,W),G!==1/0&&(R._endTimers[V._id]=setTimeout(R._ended.bind(R,V),G)),I||setTimeout(function(){R._emit("play",V._id),R._loadQueue()},0)};x.state==="running"&&x.ctx.state!=="interrupted"?oe():(R._playLock=!0,R.once("resume",oe),R._clearTimer(V._id))}else{var he=function(){J.currentTime=Q,J.muted=V._muted||R._muted||x._muted||J.muted,J.volume=V._volume*x.volume(),J.playbackRate=V._rate;try{var fe=J.play();if(fe&&typeof Promise<"u"&&(fe instanceof Promise||typeof fe.then=="function")?(R._playLock=!0,X(),fe.then(function(){R._playLock=!1,J._unlocked=!0,I?R._loadQueue():R._emit("play",V._id)}).catch(function(){R._playLock=!1,R._emit("playerror",V._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),V._ended=!0,V._paused=!0})):I||(R._playLock=!1,X(),R._emit("play",V._id)),J.playbackRate=V._rate,J.paused){R._emit("playerror",V._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}k!=="__default"||V._loop?R._endTimers[V._id]=setTimeout(R._ended.bind(R,V),G):(R._endTimers[V._id]=function(){R._ended(V),J.removeEventListener("ended",R._endTimers[V._id],!1)},J.addEventListener("ended",R._endTimers[V._id],!1))}catch(me){R._emit("playerror",V._id,me)}};J.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(J.src=R._src,J.load());var Z=window&&window.ejecta||!J.readyState&&x._navigator.isCocoonJS;if(J.readyState>=3||Z)he();else{R._playLock=!0,R._state="loading";var ce=function(){R._state="loaded",he(),J.removeEventListener(x._canPlayEvent,ce,!1)};J.addEventListener(x._canPlayEvent,ce,!1),R._clearTimer(V._id)}}return V._id},pause:function(k){var I=this;if(I._state!=="loaded"||I._playLock)return I._queue.push({event:"pause",action:function(){I.pause(k)}}),I;for(var R=I._getSoundIds(k),F=0;F"u"?L._node.bufferSource.noteOff(0):L._node.bufferSource.stop(0),I._cleanBuffer(L._node)}else(!isNaN(L._node.duration)||L._node.duration===1/0)&&L._node.pause();arguments[1]||I._emit("pause",L?L._id:null)}return I},stop:function(k,I){var R=this;if(R._state!=="loaded"||R._playLock)return R._queue.push({event:"stop",action:function(){R.stop(k)}}),R;for(var F=R._getSoundIds(k),L=0;L"u"?z._node.bufferSource.noteOff(0):z._node.bufferSource.stop(0),R._cleanBuffer(z._node)):(!isNaN(z._node.duration)||z._node.duration===1/0)&&(z._node.currentTime=z._start||0,z._node.pause(),z._node.duration===1/0&&R._clearSound(z._node))),I||R._emit("stop",z._id))}return R},mute:function(k,I){var R=this;if(R._state!=="loaded"||R._playLock)return R._queue.push({event:"mute",action:function(){R.mute(k,I)}}),R;if(typeof I>"u")if(typeof k=="boolean")R._muted=k;else return R._muted;for(var F=R._getSoundIds(I),L=0;L"u"){var L=k._getSoundIds(),z=L.indexOf(I[0]);z>=0?F=parseInt(I[0],10):R=parseFloat(I[0])}else I.length>=2&&(R=parseFloat(I[0]),F=parseInt(I[1],10));var V;if(typeof R<"u"&&R>=0&&R<=1){if(k._state!=="loaded"||k._playLock)return k._queue.push({event:"volume",action:function(){k.volume.apply(k,I)}}),k;typeof F>"u"&&(k._volume=R),F=k._getSoundIds(F);for(var U=0;U"u")}}return L},_startFadeInterval:function(k,I,R,F,L,z){var V=this,U=I,Q=R-I,W=Math.abs(Q/.01),G=Math.max(4,W>0?F/W:F),q=Date.now();k._fadeTo=R,k._interval=setInterval(function(){var K=(Date.now()-q)/F;q=Date.now(),U+=Q*K,U=Math.round(U*100)/100,Q<0?U=Math.max(R,U):U=Math.min(R,U),V._webAudio?k._volume=U:V.volume(U,k._id,!0),z&&(V._volume=U),(RI&&U>=R)&&(clearInterval(k._interval),k._interval=null,k._fadeTo=null,V.volume(R,k._id),V._emit("fade",k._id))},G)},_stopFade:function(k){var I=this,R=I._soundById(k);return R&&R._interval&&(I._webAudio&&R._node.gain.cancelScheduledValues(x.ctx.currentTime),clearInterval(R._interval),R._interval=null,I.volume(R._fadeTo,k),R._fadeTo=null,I._emit("fade",k)),I},loop:function(){var k=this,I=arguments,R,F,L;if(I.length===0)return k._loop;if(I.length===1)if(typeof I[0]=="boolean")R=I[0],k._loop=R;else return L=k._soundById(parseInt(I[0],10)),L?L._loop:!1;else I.length===2&&(R=I[0],F=parseInt(I[1],10));for(var z=k._getSoundIds(F),V=0;V=0?F=parseInt(I[0],10):R=parseFloat(I[0])}else I.length===2&&(R=parseFloat(I[0]),F=parseInt(I[1],10));var V;if(typeof R=="number"){if(k._state!=="loaded"||k._playLock)return k._queue.push({event:"rate",action:function(){k.rate.apply(k,I)}}),k;typeof F>"u"&&(k._rate=R),F=k._getSoundIds(F);for(var U=0;U=0?F=parseInt(I[0],10):k._sounds.length&&(F=k._sounds[0]._id,R=parseFloat(I[0]))}else I.length===2&&(R=parseFloat(I[0]),F=parseInt(I[1],10));if(typeof F>"u")return 0;if(typeof R=="number"&&(k._state!=="loaded"||k._playLock))return k._queue.push({event:"seek",action:function(){k.seek.apply(k,I)}}),k;var V=k._soundById(F);if(V)if(typeof R=="number"&&R>=0){var U=k.playing(F);U&&k.pause(F,!0),V._seek=R,V._ended=!1,k._clearTimer(F),!k._webAudio&&V._node&&!isNaN(V._node.duration)&&(V._node.currentTime=R);var Q=function(){U&&k.play(F,!0),k._emit("seek",F)};if(U&&!k._webAudio){var W=function(){k._playLock?setTimeout(W,0):Q()};setTimeout(W,0)}else Q()}else if(k._webAudio){var G=k.playing(F)?x.ctx.currentTime-V._playStart:0,q=V._rateSeek?V._rateSeek-V._seek:0;return V._seek+(q+G*Math.abs(V._rate))}else return V._node.currentTime;return k},playing:function(k){var I=this;if(typeof k=="number"){var R=I._soundById(k);return R?!R._paused:!1}for(var F=0;F=0&&x._howls.splice(F,1);var L=!0;for(R=0;R=0){L=!1;break}return A&&L&&delete A[k._src],x.noAudio=!1,k._state="unloaded",k._sounds=[],k=null,null},on:function(k,I,R,F){var L=this,z=L["_on"+k];return typeof I=="function"&&z.push(F?{id:R,fn:I,once:F}:{id:R,fn:I}),L},off:function(k,I,R){var F=this,L=F["_on"+k],z=0;if(typeof I=="number"&&(R=I,I=null),I||R)for(z=0;z=0;z--)(!L[z].id||L[z].id===I||k==="load")&&(setTimeout((function(V){V.call(this,I,R)}).bind(F,L[z].fn),0),L[z].once&&F.off(k,L[z].fn,L[z].id));return F._loadQueue(k),F},_loadQueue:function(k){var I=this;if(I._queue.length>0){var R=I._queue[0];R.event===k&&(I._queue.shift(),I._loadQueue()),k||R.action()}return I},_ended:function(k){var I=this,R=k._sprite;if(!I._webAudio&&k._node&&!k._node.paused&&!k._node.ended&&k._node.currentTime=0;F--){if(R<=I)return;k._sounds[F]._ended&&(k._webAudio&&k._sounds[F]._node&&k._sounds[F]._node.disconnect(0),k._sounds.splice(F,1),R--)}}},_getSoundIds:function(k){var I=this;if(typeof k>"u"){for(var R=[],F=0;F=0;if(x._scratchBuffer&&k.bufferSource&&(k.bufferSource.onended=null,k.bufferSource.disconnect(0),R))try{k.bufferSource.buffer=x._scratchBuffer}catch(F){}return k.bufferSource=null,I},_clearSound:function(k){var I=/MSIE |Trident\//.test(x._navigator&&x._navigator.userAgent);I||(k.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var w=function(k){this._parent=k,this.init()};w.prototype={init:function(){var k=this,I=k._parent;return k._muted=I._muted,k._loop=I._loop,k._volume=I._volume,k._rate=I._rate,k._seek=0,k._paused=!0,k._ended=!0,k._sprite="__default",k._id=++x._counter,I._sounds.push(k),k.create(),k},create:function(){var k=this,I=k._parent,R=x._muted||k._muted||k._parent._muted?0:k._volume;return I._webAudio?(k._node=typeof x.ctx.createGain>"u"?x.ctx.createGainNode():x.ctx.createGain(),k._node.gain.setValueAtTime(R,x.ctx.currentTime),k._node.paused=!0,k._node.connect(x.masterGain)):x.noAudio||(k._node=x._obtainHtml5Audio(),k._errorFn=k._errorListener.bind(k),k._node.addEventListener("error",k._errorFn,!1),k._loadFn=k._loadListener.bind(k),k._node.addEventListener(x._canPlayEvent,k._loadFn,!1),k._endFn=k._endListener.bind(k),k._node.addEventListener("ended",k._endFn,!1),k._node.src=I._src,k._node.preload=I._preload===!0?"auto":I._preload,k._node.volume=R*x.volume(),k._node.load()),k},reset:function(){var k=this,I=k._parent;return k._muted=I._muted,k._loop=I._loop,k._volume=I._volume,k._rate=I._rate,k._seek=0,k._rateSeek=0,k._paused=!0,k._ended=!0,k._sprite="__default",k._id=++x._counter,k},_errorListener:function(){var k=this;k._parent._emit("loaderror",k._id,k._node.error?k._node.error.code:0),k._node.removeEventListener("error",k._errorFn,!1)},_loadListener:function(){var k=this,I=k._parent;I._duration=Math.ceil(k._node.duration*10)/10,Object.keys(I._sprite).length===0&&(I._sprite={__default:[0,I._duration*1e3]}),I._state!=="loaded"&&(I._state="loaded",I._emit("load"),I._loadQueue()),k._node.removeEventListener(x._canPlayEvent,k._loadFn,!1)},_endListener:function(){var k=this,I=k._parent;I._duration===1/0&&(I._duration=Math.ceil(k._node.duration*10)/10,I._sprite.__default[1]===1/0&&(I._sprite.__default[1]=I._duration*1e3),I._ended(k)),k._node.removeEventListener("ended",k._endFn,!1)}};var A={},S=function(k){var I=k._src;if(A[I]){k._duration=A[I].duration,P(k);return}if(/^data:[^;]+;base64,/.test(I)){for(var R=atob(I.split(",")[1]),F=new Uint8Array(R.length),L=0;L0?(A[I._src]=L,P(I,L)):R()};typeof Promise<"u"&&x.ctx.decodeAudioData.length===1?x.ctx.decodeAudioData(k).then(F).catch(R):x.ctx.decodeAudioData(k,F,R)},P=function(k,I){I&&!k._duration&&(k._duration=I.duration),Object.keys(k._sprite).length===0&&(k._sprite={__default:[0,k._duration*1e3]}),k._state!=="loaded"&&(k._state="loaded",k._emit("load"),k._loadQueue())},B=function(){if(x.usingWebAudio){try{typeof AudioContext<"u"?x.ctx=new AudioContext:typeof webkitAudioContext<"u"?x.ctx=new webkitAudioContext:x.usingWebAudio=!1}catch(L){x.usingWebAudio=!1}x.ctx||(x.usingWebAudio=!1);var k=/iP(hone|od|ad)/.test(x._navigator&&x._navigator.platform),I=x._navigator&&x._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),R=I?parseInt(I[1],10):null;if(k&&R&&R<9){var F=/safari/.test(x._navigator&&x._navigator.userAgent.toLowerCase());x._navigator&&!F&&(x.usingWebAudio=!1)}x.usingWebAudio&&(x.masterGain=typeof x.ctx.createGain>"u"?x.ctx.createGainNode():x.ctx.createGain(),x.masterGain.gain.setValueAtTime(x._muted?0:x._volume,x.ctx.currentTime),x.masterGain.connect(x.ctx.destination)),x._setup()}};d.Howler=x,d.Howl=C,typeof commonjsGlobal<"u"?(commonjsGlobal.HowlerGlobal=b,commonjsGlobal.Howler=x,commonjsGlobal.Howl=C,commonjsGlobal.Sound=w):typeof window<"u"&&(window.HowlerGlobal=b,window.Howler=x,window.Howl=C,window.Sound=w)})();/*! * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported. * * howler.js v2.2.3 * howlerjs.com * * (c) 2013-2020, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(x){var C=this;if(!C.ctx||!C.ctx.listener)return C;for(var w=C._howls.length-1;w>=0;w--)C._howls[w].stereo(x);return C},HowlerGlobal.prototype.pos=function(x,C,w){var A=this;if(!A.ctx||!A.ctx.listener)return A;if(C=typeof C!="number"?A._pos[1]:C,w=typeof w!="number"?A._pos[2]:w,typeof x=="number")A._pos=[x,C,w],typeof A.ctx.listener.positionX<"u"?(A.ctx.listener.positionX.setTargetAtTime(A._pos[0],Howler.ctx.currentTime,.1),A.ctx.listener.positionY.setTargetAtTime(A._pos[1],Howler.ctx.currentTime,.1),A.ctx.listener.positionZ.setTargetAtTime(A._pos[2],Howler.ctx.currentTime,.1)):A.ctx.listener.setPosition(A._pos[0],A._pos[1],A._pos[2]);else return A._pos;return A},HowlerGlobal.prototype.orientation=function(x,C,w,A,S,$){var E=this;if(!E.ctx||!E.ctx.listener)return E;var P=E._orientation;if(C=typeof C!="number"?P[1]:C,w=typeof w!="number"?P[2]:w,A=typeof A!="number"?P[3]:A,S=typeof S!="number"?P[4]:S,$=typeof $!="number"?P[5]:$,typeof x=="number")E._orientation=[x,C,w,A,S,$],typeof E.ctx.listener.forwardX<"u"?(E.ctx.listener.forwardX.setTargetAtTime(x,Howler.ctx.currentTime,.1),E.ctx.listener.forwardY.setTargetAtTime(C,Howler.ctx.currentTime,.1),E.ctx.listener.forwardZ.setTargetAtTime(w,Howler.ctx.currentTime,.1),E.ctx.listener.upX.setTargetAtTime(A,Howler.ctx.currentTime,.1),E.ctx.listener.upY.setTargetAtTime(S,Howler.ctx.currentTime,.1),E.ctx.listener.upZ.setTargetAtTime($,Howler.ctx.currentTime,.1)):E.ctx.listener.setOrientation(x,C,w,A,S,$);else return P;return E},Howl.prototype.init=function(x){return function(C){var w=this;return w._orientation=C.orientation||[1,0,0],w._stereo=C.stereo||null,w._pos=C.pos||null,w._pannerAttr={coneInnerAngle:typeof C.coneInnerAngle<"u"?C.coneInnerAngle:360,coneOuterAngle:typeof C.coneOuterAngle<"u"?C.coneOuterAngle:360,coneOuterGain:typeof C.coneOuterGain<"u"?C.coneOuterGain:0,distanceModel:typeof C.distanceModel<"u"?C.distanceModel:"inverse",maxDistance:typeof C.maxDistance<"u"?C.maxDistance:1e4,panningModel:typeof C.panningModel<"u"?C.panningModel:"HRTF",refDistance:typeof C.refDistance<"u"?C.refDistance:1,rolloffFactor:typeof C.rolloffFactor<"u"?C.rolloffFactor:1},w._onstereo=C.onstereo?[{fn:C.onstereo}]:[],w._onpos=C.onpos?[{fn:C.onpos}]:[],w._onorientation=C.onorientation?[{fn:C.onorientation}]:[],x.call(this,C)}}(Howl.prototype.init),Howl.prototype.stereo=function(x,C){var w=this;if(!w._webAudio)return w;if(w._state!=="loaded")return w._queue.push({event:"stereo",action:function(){w.stereo(x,C)}}),w;var A=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof C>"u")if(typeof x=="number")w._stereo=x,w._pos=[x,0,0];else return w._stereo;for(var S=w._getSoundIds(C),$=0;$"u")if(typeof x=="number")S._pos=[x,C,w];else return S._pos;for(var $=S._getSoundIds(A),E=0;E<$.length;E++){var P=S._soundById($[E]);if(P)if(typeof x=="number")P._pos=[x,C,w],P._node&&((!P._panner||P._panner.pan)&&b(P,"spatial"),typeof P._panner.positionX<"u"?(P._panner.positionX.setValueAtTime(x,Howler.ctx.currentTime),P._panner.positionY.setValueAtTime(C,Howler.ctx.currentTime),P._panner.positionZ.setValueAtTime(w,Howler.ctx.currentTime)):P._panner.setPosition(x,C,w)),S._emit("pos",P._id);else return P._pos}return S},Howl.prototype.orientation=function(x,C,w,A){var S=this;if(!S._webAudio)return S;if(S._state!=="loaded")return S._queue.push({event:"orientation",action:function(){S.orientation(x,C,w,A)}}),S;if(C=typeof C!="number"?S._orientation[1]:C,w=typeof w!="number"?S._orientation[2]:w,typeof A>"u")if(typeof x=="number")S._orientation=[x,C,w];else return S._orientation;for(var $=S._getSoundIds(A),E=0;E<$.length;E++){var P=S._soundById($[E]);if(P)if(typeof x=="number")P._orientation=[x,C,w],P._node&&(P._panner||(P._pos||(P._pos=S._pos||[0,0,-.5]),b(P,"spatial")),typeof P._panner.orientationX<"u"?(P._panner.orientationX.setValueAtTime(x,Howler.ctx.currentTime),P._panner.orientationY.setValueAtTime(C,Howler.ctx.currentTime),P._panner.orientationZ.setValueAtTime(w,Howler.ctx.currentTime)):P._panner.setOrientation(x,C,w)),S._emit("orientation",P._id);else return P._orientation}return S},Howl.prototype.pannerAttr=function(){var x=this,C=arguments,w,A,S;if(!x._webAudio)return x;if(C.length===0)return x._pannerAttr;if(C.length===1)if(typeof C[0]=="object")w=C[0],typeof A>"u"&&(w.pannerAttr||(w.pannerAttr={coneInnerAngle:w.coneInnerAngle,coneOuterAngle:w.coneOuterAngle,coneOuterGain:w.coneOuterGain,distanceModel:w.distanceModel,maxDistance:w.maxDistance,refDistance:w.refDistance,rolloffFactor:w.rolloffFactor,panningModel:w.panningModel}),x._pannerAttr={coneInnerAngle:typeof w.pannerAttr.coneInnerAngle<"u"?w.pannerAttr.coneInnerAngle:x._coneInnerAngle,coneOuterAngle:typeof w.pannerAttr.coneOuterAngle<"u"?w.pannerAttr.coneOuterAngle:x._coneOuterAngle,coneOuterGain:typeof w.pannerAttr.coneOuterGain<"u"?w.pannerAttr.coneOuterGain:x._coneOuterGain,distanceModel:typeof w.pannerAttr.distanceModel<"u"?w.pannerAttr.distanceModel:x._distanceModel,maxDistance:typeof w.pannerAttr.maxDistance<"u"?w.pannerAttr.maxDistance:x._maxDistance,refDistance:typeof w.pannerAttr.refDistance<"u"?w.pannerAttr.refDistance:x._refDistance,rolloffFactor:typeof w.pannerAttr.rolloffFactor<"u"?w.pannerAttr.rolloffFactor:x._rolloffFactor,panningModel:typeof w.pannerAttr.panningModel<"u"?w.pannerAttr.panningModel:x._panningModel});else return S=x._soundById(parseInt(C[0],10)),S?S._pannerAttr:x._pannerAttr;else C.length===2&&(w=C[0],A=parseInt(C[1],10));for(var $=x._getSoundIds(A),E=0;E<$.length;E++)if(S=x._soundById($[E]),S){var P=S._pannerAttr;P={coneInnerAngle:typeof w.coneInnerAngle<"u"?w.coneInnerAngle:P.coneInnerAngle,coneOuterAngle:typeof w.coneOuterAngle<"u"?w.coneOuterAngle:P.coneOuterAngle,coneOuterGain:typeof w.coneOuterGain<"u"?w.coneOuterGain:P.coneOuterGain,distanceModel:typeof w.distanceModel<"u"?w.distanceModel:P.distanceModel,maxDistance:typeof w.maxDistance<"u"?w.maxDistance:P.maxDistance,refDistance:typeof w.refDistance<"u"?w.refDistance:P.refDistance,rolloffFactor:typeof w.rolloffFactor<"u"?w.rolloffFactor:P.rolloffFactor,panningModel:typeof w.panningModel<"u"?w.panningModel:P.panningModel};var B=S._panner;B?(B.coneInnerAngle=P.coneInnerAngle,B.coneOuterAngle=P.coneOuterAngle,B.coneOuterGain=P.coneOuterGain,B.distanceModel=P.distanceModel,B.maxDistance=P.maxDistance,B.refDistance=P.refDistance,B.rolloffFactor=P.rolloffFactor,B.panningModel=P.panningModel):(S._pos||(S._pos=x._pos||[0,0,-.5]),b(S,"spatial"))}return x},Sound.prototype.init=function(x){return function(){var C=this,w=C._parent;C._orientation=w._orientation,C._stereo=w._stereo,C._pos=w._pos,C._pannerAttr=w._pannerAttr,x.call(this),C._stereo?w.stereo(C._stereo):C._pos&&w.pos(C._pos[0],C._pos[1],C._pos[2],C._id)}}(Sound.prototype.init),Sound.prototype.reset=function(x){return function(){var C=this,w=C._parent;return C._orientation=w._orientation,C._stereo=w._stereo,C._pos=w._pos,C._pannerAttr=w._pannerAttr,C._stereo?w.stereo(C._stereo):C._pos?w.pos(C._pos[0],C._pos[1],C._pos[2],C._id):C._panner&&(C._panner.disconnect(0),C._panner=void 0,w._refreshBuffer(C)),x.call(this)}}(Sound.prototype.reset);var b=function(x,C){C=C||"spatial",C==="spatial"?(x._panner=Howler.ctx.createPanner(),x._panner.coneInnerAngle=x._pannerAttr.coneInnerAngle,x._panner.coneOuterAngle=x._pannerAttr.coneOuterAngle,x._panner.coneOuterGain=x._pannerAttr.coneOuterGain,x._panner.distanceModel=x._pannerAttr.distanceModel,x._panner.maxDistance=x._pannerAttr.maxDistance,x._panner.refDistance=x._pannerAttr.refDistance,x._panner.rolloffFactor=x._pannerAttr.rolloffFactor,x._panner.panningModel=x._pannerAttr.panningModel,typeof x._panner.positionX<"u"?(x._panner.positionX.setValueAtTime(x._pos[0],Howler.ctx.currentTime),x._panner.positionY.setValueAtTime(x._pos[1],Howler.ctx.currentTime),x._panner.positionZ.setValueAtTime(x._pos[2],Howler.ctx.currentTime)):x._panner.setPosition(x._pos[0],x._pos[1],x._pos[2]),typeof x._panner.orientationX<"u"?(x._panner.orientationX.setValueAtTime(x._orientation[0],Howler.ctx.currentTime),x._panner.orientationY.setValueAtTime(x._orientation[1],Howler.ctx.currentTime),x._panner.orientationZ.setValueAtTime(x._orientation[2],Howler.ctx.currentTime)):x._panner.setOrientation(x._orientation[0],x._orientation[1],x._orientation[2])):(x._panner=Howler.ctx.createStereoPanner(),x._panner.pan.setValueAtTime(x._stereo,Howler.ctx.currentTime)),x._panner.connect(x._node),x._paused||x._parent.pause(x._id,!0).play(x._id,!0)}})()})(howler);reactive({disable:!0,initPlayerState:!1,lineShow:!1,isClick:!1,metro:null,metroList:[],activeList:[],metroMeasure:[],activeIndex:null,activeMetro:{}});var lodash_isempty={exports:{}};lodash_isempty.exports;(function(d,b){var x=9007199254740991,C="[object Arguments]",w="[object Function]",A="[object GeneratorFunction]",S="[object Map]",$="[object Object]",E="[object Promise]",P="[object Set]",B="[object WeakMap]",k="[object DataView]",I=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,F=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,L=typeof self=="object"&&self&&self.Object===Object&&self,z=F||L||Function("return this")(),V=b&&!b.nodeType&&b,U=V&&!0&&d&&!d.nodeType&&d,Q=U&&U.exports===V;function W(Ue,lt){return Ue==null?void 0:Ue[lt]}function G(Ue){var lt=!1;if(Ue!=null&&typeof Ue.toString!="function")try{lt=!!(Ue+"")}catch(yt){}return lt}function q(Ue,lt){return function(yt){return Ue(lt(yt))}}var K=Function.prototype,X=Object.prototype,J=z["__core-js_shared__"],oe=function(){var Ue=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return Ue?"Symbol(src)_1."+Ue:""}(),he=K.toString,Z=X.hasOwnProperty,ce=X.toString,fe=RegExp("^"+he.call(Z).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Q?z.Buffer:void 0,ne=X.propertyIsEnumerable,te=me?me.isBuffer:void 0,de=q(Object.keys,Object),le=re(z,"DataView"),be=re(z,"Map"),Le=re(z,"Promise"),Qe=re(z,"Set"),rt=re(z,"WeakMap"),ht=!ne.call({valueOf:1},"valueOf"),ct=we(le),it=we(be),Be=we(Le),Ie=we(Qe),Fe=we(rt);function ie(Ue){return ce.call(Ue)}function $e(Ue){if(!Je(Ue)||Ce(Ue))return!1;var lt=We(Ue)||G(Ue)?fe:R;return lt.test(we(Ue))}function re(Ue,lt){var yt=W(Ue,lt);return $e(yt)?yt:void 0}var se=ie;(le&&se(new le(new ArrayBuffer(1)))!=k||be&&se(new be)!=S||Le&&se(Le.resolve())!=E||Qe&&se(new Qe)!=P||rt&&se(new rt)!=B)&&(se=function(Ue){var lt=ce.call(Ue),yt=lt==$?Ue.constructor:void 0,$t=yt?we(yt):void 0;if($t)switch($t){case ct:return k;case it:return S;case Be:return E;case Ie:return P;case Fe:return B}return lt});function Ce(Ue){return!!oe&&oe in Ue}function Ne(Ue){var lt=Ue&&Ue.constructor,yt=typeof lt=="function"&<.prototype||X;return Ue===yt}function we(Ue){if(Ue!=null){try{return he.call(Ue)}catch(lt){}try{return Ue+""}catch(lt){}}return""}function ge(Ue){return Ae(Ue)&&Z.call(Ue,"callee")&&(!ne.call(Ue,"callee")||ce.call(Ue)==C)}var Ee=Array.isArray;function ke(Ue){return Ue!=null&&Ye(Ue.length)&&!We(Ue)}function Ae(Ue){return nt(Ue)&&ke(Ue)}var ve=te||dt;function De(Ue){if(ke(Ue)&&(Ee(Ue)||typeof Ue=="string"||typeof Ue.splice=="function"||ve(Ue)||ge(Ue)))return!Ue.length;var lt=se(Ue);if(lt==S||lt==P)return!Ue.size;if(ht||Ne(Ue))return!de(Ue).length;for(var yt in Ue)if(Z.call(Ue,yt))return!1;return!0}function We(Ue){var lt=Je(Ue)?ce.call(Ue):"";return lt==w||lt==A}function Ye(Ue){return typeof Ue=="number"&&Ue>-1&&Ue%1==0&&Ue<=x}function Je(Ue){var lt=typeof Ue;return!!Ue&&(lt=="object"||lt=="function")}function nt(Ue){return!!Ue&&typeof Ue=="object"}function dt(){return!1}d.exports=De})(lodash_isempty,lodash_isempty.exports);var lodash_isemptyExports=lodash_isempty.exports,objectTag="[object Object]";function isHostObject(d){var b=!1;if(d!=null&&typeof d.toString!="function")try{b=!!(d+"")}catch(x){}return b}function overArg(d,b){return function(x){return d(b(x))}}var funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object),objectToString=objectProto.toString,getPrototype=overArg(Object.getPrototypeOf,Object);function isObjectLike(d){return!!d&&typeof d=="object"}function isPlainObject$1(d){if(!isObjectLike(d)||objectToString.call(d)!=objectTag||isHostObject(d))return!1;var b=getPrototype(d);if(b===null)return!0;var x=hasOwnProperty.call(b,"constructor")&&b.constructor;return typeof x=="function"&&x instanceof x&&funcToString.call(x)==objectCtorString}var lodash_isplainobject=isPlainObject$1,lodash_transform={exports:{}};lodash_transform.exports;(function(d,b){var x=200,C="Expected a function",w="__lodash_hash_undefined__",A=1,S=2,$=1/0,E=9007199254740991,P="[object Arguments]",B="[object Array]",k="[object Boolean]",I="[object Date]",R="[object Error]",F="[object Function]",L="[object GeneratorFunction]",z="[object Map]",V="[object Number]",U="[object Object]",Q="[object Promise]",W="[object RegExp]",G="[object Set]",q="[object String]",K="[object Symbol]",X="[object WeakMap]",J="[object ArrayBuffer]",oe="[object DataView]",he="[object Float32Array]",Z="[object Float64Array]",ce="[object Int8Array]",fe="[object Int16Array]",me="[object Int32Array]",ne="[object Uint8Array]",te="[object Uint8ClampedArray]",de="[object Uint16Array]",le="[object Uint32Array]",be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Le=/^\w*$/,Qe=/^\./,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ht=/[\\^$.*+?()[\]{}|]/g,ct=/\\(\\)?/g,it=/^\[object .+?Constructor\]$/,Be=/^(?:0|[1-9]\d*)$/,Ie={};Ie[he]=Ie[Z]=Ie[ce]=Ie[fe]=Ie[me]=Ie[ne]=Ie[te]=Ie[de]=Ie[le]=!0,Ie[P]=Ie[B]=Ie[J]=Ie[k]=Ie[oe]=Ie[I]=Ie[R]=Ie[F]=Ie[z]=Ie[V]=Ie[U]=Ie[W]=Ie[G]=Ie[q]=Ie[X]=!1;var Fe=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ie=typeof self=="object"&&self&&self.Object===Object&&self,$e=Fe||ie||Function("return this")(),re=b&&!b.nodeType&&b,se=re&&!0&&d&&!d.nodeType&&d,Ce=se&&se.exports===re,Ne=Ce&&Fe.process,we=function(){try{return Ne&&Ne.binding("util")}catch(ae){}}(),ge=we&&we.isTypedArray;function Ee(ae,Se){for(var qe=-1,at=ae?ae.length:0;++qe-1}function xn(ae,Se){var qe=this.__data__,at=wn(qe,ae);return at<0?qe.push([ae,Se]):qe[at][1]=Se,this}yr.prototype.clear=Nn,yr.prototype.delete=In,yr.prototype.get=To,yr.prototype.has=Eo,yr.prototype.set=xn;function Or(ae){var Se=-1,qe=ae?ae.length:0;for(this.clear();++SeEt))return!1;var or=Ct.get(ae);if(or&&Ct.get(Se))return or==Se;var gr=-1,hr=!0,cr=Tt&A?new ln:void 0;for(Ct.set(ae,Se),Ct.set(Se,ae);++gr-1&&ae%1==0&&ae-1&&ae%1==0&&ae<=E}function $r(ae){var Se=typeof ae;return!!ae&&(Se=="object"||Se=="function")}function Ln(ae){return!!ae&&typeof ae=="object"}function zn(ae){return typeof ae=="symbol"||Ln(ae)&&xt.call(ae)==K}var xr=ge?De(ge):Rn;function li(ae){return ae==null?"":ri(ae)}function ci(ae,Se,qe){var at=ae==null?void 0:io(ae,Se);return at===void 0?qe:at}function ui(ae,Se){return ae!=null&&ea(ae,Se,so)}function Vn(ae){return Lo(ae)?Mn(ae):co(ae)}function di(ae,Se,qe){var at=Kr(ae)||xr(ae);if(Se=en(Se),qe==null)if(at||$r(ae)){var Tt=ae.constructor;at?qe=Kr(ae)?new Tt:[]:qe=ar(Tt)?no(ut(ae)):{}}else qe={};return(at?Ee:oo)(ae,function(Ct,jt,Et){return Se(qe,Ct,jt,Et)}),qe}function fi(ae){return ae}function Cr(ae){return ho(ae)?Ae(po(ae)):ti(ae)}d.exports=di})(lodash_transform,lodash_transform.exports);var lodash_transformExports=lodash_transform.exports;const isEmpty=lodash_isemptyExports,isPlainObject=lodash_isplainobject,transform=lodash_transformExports;var src=function d(b,{cleanKeys:x=[],cleanValues:C=[],emptyArrays:w=!0,emptyObjects:A=!0,emptyStrings:S=!0,NaNValues:$=!1,nullValues:E=!0,undefinedValues:P=!0}={}){return transform(b,(B,k,I)=>{if(!x.includes(I)&&((Array.isArray(k)||isPlainObject(k))&&(k=d(k,{NaNValues:$,cleanKeys:x,cleanValues:C,emptyArrays:w,emptyObjects:A,emptyStrings:S,nullValues:E,undefinedValues:P})),!C.includes(k)&&!(A&&isPlainObject(k)&&isEmpty(k))&&!(w&&Array.isArray(k)&&!k.length)&&!(S&&k==="")&&!($&&Number.isNaN(k))&&!(E&&k===null)&&!(P&&k===void 0))){if(Array.isArray(B))return B.push(k);B[I]=k}})};const cleanDeep=getDefaultExportFromCjs(src);function _isSlot(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!isVNode(d)}const allPitches=["C,,,,","D,,,,","E,,,,","F,,,,","G,,,,","A,,,,","B,,,,","C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''","c''''","d''''","e''''","f''''","g''''","a''''","b''''"],initMusic=d=>new Array(d).fill(0).map((b,x)=>({measureNumber:x+1,barline:"|",celf:"",key:"",repeat:"",meter:"",notes:[{accidental:"",clef:"",meter:"",content:"z",noteType:"4",play:[],key:"",speed:"",dynamics:"",dCode:"",tie:"",tCode:"",dot:"",slus:"",tieline:"",segno:""}]}));function moveNote(d,b){var x=allPitches.indexOf(d);if(x>=0){const C=allPitches[x-b];return C||d}return d}const Home=defineComponent({name:"Home",setup(){useRoute$1();const d=useMessage(),b=reactive({instrument:!1,selectSubjectShow:!1,moveKeyShow:!1,speedShow:!1,accidentalsShow:!1,clefShow:!1,keyShow:!1,meterShow:!1,playShow:!1,dynamicsShow:!1,barShow:!1,mearseDeleteShow:!1,staffShow:!1,settingShow:!1,selectMearesShow:!1}),x=reactive({loading:!0,drawCount:0,isSave:!1,musicId:"",musicName:"",creator:"",subjectId:"",speed:"",music:"",playState:!1,active:null,select:{state:!1,list:[],parmas:null},isClickNote:!1,noteType:"",selectMeasures:{state:!1,x:0,y:0,start:1,startNote:null,end:0,endNote:null,max:30},slide:["note","meter","dynamics"],morePlay:!1,addMearseType:"pre",addMearseNumber:1,deleteMearseType:"ing",loadingAudioSrouce:!1,moveKeyType:"inset"}),C=ABC_DATA.types.map(ie=>ie.value).filter(Boolean),w=ABC_DATA.accidentals.map(ie=>ie.value).filter(Boolean),A=ABC_DATA.clef.map(ie=>ie.value).filter(Boolean),S=ABC_DATA.play.map(ie=>ie.value).filter(Boolean),$=ABC_DATA.dynamics.map(ie=>ie.value).flat().filter(Boolean);ABC_DATA.bar.map(ie=>ie.value).filter(Boolean),console.log("🚀 ~ noteTypes:",C,w,A,S,$);const E=(ie,$e,re,se,Ce)=>{var ge,Ee,ke;let Ne=((Ee=(ge=ie.chord)==null?void 0:ge.find(Ae=>Ae.position==="left"))==null?void 0:Ee.name)||"";Ne=Ne.split(".").map(Ae=>Number(Ae));const we={...lodashExports.cloneDeep(ie),measureIndex:Ne[0],noteIndex:Ne[1],isFirstChecked:!0};if(x.select.state){x.select.list.push(we),x.select.list.length===1&&showToast("请先选择结束音符"),x.select.list.length===2&&(console.log(x.select.list),x.select.list=x.select.list.sort((Ae,ve)=>Ae.startChar-ve.startChar),he());return}if(x.active=we,console.log("🚀 ~ abcElem:",ie,x.music.substring(x.active.startChar,x.active.endChar)),((ke=x.active)==null?void 0:ke.el_type)==="note"){const Ae=B.synthControl.visualObj.getTotalTime();if(Ae){const ve=x.active.currentTrackMilliseconds/1e3/Ae;B.synthControl.seek(ve)}}if(Ce&&Ce.step){X({type:"move",value:{action:"drag",step:Ce.step}});return}ie!=null&&ie.midiPitches&&ABCJS.synth.playEvent(ie.midiPitches,ie.midiGraceNotePitches,1e3)},P=ref(),B=reactive({visualObj:null,midiBuffer:null,abcOptions:{selectionColor:"#0f81ff",jazzchords:!0,add_classes:!0,clickListener:E,responsive:"resize",dragging:!0,selectTypes:["note"],visualTranspose:0,wrap:{minSpacing:.1,maxSpacing:2.7,preferredMeasuresPerLine:4},staffwidth:800},synthControl:null,synthOptions:{program:0},abc:{celf:"K:treble",minUnit:"L:1/4",meter:"M:4/4",speed:"Q:1/4=60",key:"K:C",visualTranspose:0,subjectCode:"acoustic_grand_piano",measures:initMusic(30)}}),k=(ie,$e,re)=>{const se=B.abc.measures[ie];se&&se.notes.splice($e+1,0,re)},I=()=>{const ie=document.querySelector("#paper svg .ABCJS-cursor");ie&&(ie.setAttribute("x1","0"),ie.setAttribute("x2","0"),ie.setAttribute("y1","0"),ie.setAttribute("y2","0"))},R={onReady:function(){},onStart:function(){console.log("开始"),x.playState=!0;var ie=document.querySelector("#paper svg"),$e=document.createElementNS("http://www.w3.org/2000/svg","line");$e.setAttribute("class","ABCJS-cursor"),$e.setAttributeNS(null,"x1","0"),$e.setAttributeNS(null,"y1","0"),$e.setAttributeNS(null,"x2","0"),$e.setAttributeNS(null,"y2","0"),ie==null||ie.appendChild($e)},onBeat:function(ie,$e,re){},onEvent:ie=>{var re;if(x.playState&&!(ie.measureStart&&ie.left===null)){if(b.selectMearesShow){const se=((re=x.selectMeasures.startNote)==null?void 0:re.currentTrackMilliseconds)||0,Ce=x.selectMeasures.endNote?x.selectMeasures.endNote:null;if(ie.millisecondsCe.currentTrackMilliseconds){const Ne=B.synthControl.visualObj.getTotalTime();if(Ne){const we=se/1e3/Ne;nextTick(()=>{B.synthControl.seek(we)})}}}var $e=document.querySelector("#paper svg .ABCJS-cursor");$e&&($e.setAttribute("x1",ie.left+ie.width/2),$e.setAttribute("x2",ie.left+ie.width/2),$e.setAttribute("y1",ie.top),$e.setAttribute("y2",ie.top+ie.height))}},onFinished:function(){console.log("finished"),x.playState=!1;for(var ie=document.querySelectorAll("svg .highlight"),$e=0;$e{x.loadingAudioSrouce=!0;const ie=new ABCJS.synth.CreateSynth,$e="X: 1\nM:4/4\nL:1/4\n".concat(F),re=ABCJS.parseOnly($e);await ie.init({visualObj:re[0],options:{...B.synthOptions}})},z=(ie=!1)=>{new ABCJS.synth.CreateSynth().init({visualObj:B.visualObj,options:{...B.synthOptions}}).then(()=>{B.synthControl.setTune(B.visualObj,ie,{midiTranspose:B.abc.visualTranspose,program:B.synthOptions.program}).then(function(re){x.loadingAudioSrouce=!1}).catch(re=>{console.log(re)})})},V=ie=>{ie==="play"?(B.synthControl.play(),x.playState=!0):ie==="pause"?(B.synthControl.play(),x.playState=!1,I()):B.synthControl.restart()},U=()=>{B.visualObj=ABCJS.renderAbc("paper",x.music,{...B.abcOptions,visualTranspose:B.abc.visualTranspose})[0],x.drawCount<3&&console.log("🚀 ~ visualObj:",B.visualObj)},Q=()=>{var se,Ce,Ne;const ie=document.querySelector("#paper svg"),$e=4;let re=0;for(let we=0;we(x.drawCount>0&&(B.synthControl.disable(!0),x.playState&&(x.playState=!1)),new Promise(ie=>{nextTick(()=>{x.music=renderMeasures(B.abc),U(),z(x.drawCount>0),Q(),ie(1),P.value&&(P.value.value=x.music),x.drawCount++})})),G=ie=>{const $e=B.visualObj.getElementFromChar(ie);return $e&&B.visualObj.engraver.rangeHighlight($e.startChar,$e.endChar),$e},q=ie=>{const $e=x.music.indexOf(ie);return B.visualObj.getElementFromChar($e)},K=ie=>{const $e=B.abc.measures[ie],re=[];for(let se=0;se<$e.notes.length;se++){const Ce="".concat(ie,".").concat(se),Ne=q(Ce);re.push(Ne)}return re},X=async ie=>{var Ce,Ne,we,ge,Ee,ke,Ae,ve,De,We,Ye;B.synthControl.disable(!0),x.playState&&(x.playState=!1);const $e=ie.type,re=ie.value,se=((we=B.abc.measures[(Ce=x.active)==null?void 0:Ce.measureIndex])==null?void 0:we.notes[(Ne=x.active)==null?void 0:Ne.noteIndex])||null;if($e==="exit"&&(await te(!1),window.matchMedia("(display-mode: standalone)").matches?(window.onbeforeunload=null,window.parent.postMessage({api:"notation_exit"},"*")):window.close()),$e==="type"){if(x.noteType=re,se){se.noteType=re,await W();const Je=G(x.active.startChar),nt=Je?{...lodashExports.cloneDeep(Je),measureIndex:x.active.measureIndex,noteIndex:x.active.noteIndex,isFirstChecked:!0}:null;x.active=nt}return}if($e==="segno"){if(!x.active){showToast("请先选择音符");return}if(!se)return;se.segno=se.segno?"":re,await W(),G(x.active.startChar)}if($e==="note"&&x.active&&x.active.el_type=="note"){const Je=((ge=B.abc.measures[x.active.measureIndex])==null?void 0:ge.notes[x.active.noteIndex])||null,nt=re.split("-");x.active.isFirstChecked&&(Je.content=nt[0],Je.noteType=x.noteType,nt[1]&&(Je.accidental=nt[1]||""),x.active.isFirstChecked=!1),await W();const dt=q("".concat(x.active.measureIndex,".").concat(x.active.noteIndex));if((Ae=(ke=(Ee=dt==null?void 0:dt.abselem)==null?void 0:Ee.beam)==null?void 0:ke.elems)!=null&&Ae.length){const lt=dt.abselem.beam.elems,yt=B.visualObj.getBeatLength();lt.map(Mt=>Mt.duration).reduce((Mt,Lt)=>Mt+Lt)>=yt&&(B.abc.measures[x.active.measureIndex].notes[x.active.noteIndex].segno=" ",await W())}if(dt!=null&&dt.midiPitches&&ABCJS.synth.playEvent(dt.midiPitches,dt.midiGraceNotePitches,1e3),(ve=B.abc.measures[x.active.measureIndex])==null?void 0:ve.notes[x.active.noteIndex+1]){const lt=q("".concat(x.active.measureIndex,".").concat(x.active.noteIndex+1));G(lt.startChar),x.active={...lt,measureIndex:x.active.measureIndex,noteIndex:x.active.noteIndex+1,isFirstChecked:!0}}else if(K(x.active.measureIndex).map($t=>$t.duration).reduce(($t,Mt)=>$t+Mt)>=1)if((De=B.abc.measures[x.active.measureIndex+1])==null?void 0:De.notes[0]){const Mt=q("".concat(x.active.measureIndex+1,".0"));G(Mt.startChar),x.active={...Mt,measureIndex:x.active.measureIndex+1,noteIndex:0,isFirstChecked:!0}}else G(x.active.startChar),x.active.isFirstChecked=!0;else{k(x.active.measureIndex,x.active.noteIndex,createNote({content:"z",noteType:x.noteType})),await W();const $t=q("".concat(x.active.measureIndex,".").concat(x.active.noteIndex+1));G($t.startChar),x.active={...$t,measureIndex:x.active.measureIndex,noteIndex:x.active.noteIndex+1,isFirstChecked:!0}}}if($e==="accidentals"){if(!x.active){d.warning("请先选择音符");return}if(se.content==="z"){d.warning("休止符无法添加临时升降记号");return}se.accidental=se.accidental==re?"":re,await W();const Je=G(x.active.startChar),nt=Je?{...lodashExports.cloneDeep(Je),measureIndex:x.active.measureIndex,noteIndex:x.active.noteIndex,isFirstChecked:!0}:null;x.active=nt}if($e==="clef")if(x.active){if(!se)return;se.clef="[".concat(re,"]"),await W()}else B.abc.celf=re,W();if($e==="key")if(x.active){if(!se)return;se.key="[".concat(re,"]"),await W()}else B.abc.key=re,await W();if($e==="meter")if(x.active){if(!se)return;const Je=B.abc.measures[x.active.measureIndex];Je.meter="[".concat(re,"]"),await W();const nt=q("".concat(x.active.measureIndex,".").concat(x.active.noteIndex));G(nt.startChar)}else B.abc.meter=re,await W();if($e==="play"){if(!x.active){d.warning("请先选择音符");return}if(!se)return;se.play.includes(re)?se.play=se.play.filter(Je=>Je!==re):se.play.push(re),await W(),G(x.active.startChar)}if($e==="dynamics"){if(!x.active){d.info("请先选择音符");return}if(!se)return;if(Array.isArray(re)){if(se!=null&&se.dynamics){se.dynamics="";for(let Je=0;Je{const $e=B.visualObj.getElementFromChar(ie);return $e.el_type==="note"?$e:J($e.endChar)},oe=()=>{x.active=null,document.querySelectorAll(".abcjs-note_selected").forEach($e=>{$e.classList.remove("abcjs-note_selected"),$e.setAttribute("fill","currentColor")})},he=async()=>{var Ce,Ne;const ie=(Ce=x.select.parmas)==null?void 0:Ce.type,$e=(Ne=x.select.parmas)==null?void 0:Ne.value,re=x.select.list[0],se=x.select.list[1];if(ie==="dynamics")if(B.abc.measures[se.measureIndex].notes[se.noteIndex].dynamics||B.abc.measures[re.measureIndex].notes[re.noteIndex].dynamics)d.warning("已经添加了力度标记");else{const we=Date.now()+"";B.abc.measures[re.measureIndex].notes[re.noteIndex].dynamics=$e[0],B.abc.measures[re.measureIndex].notes[re.noteIndex].dCode=we,B.abc.measures[se.measureIndex].notes[se.noteIndex].dynamics=$e[1],B.abc.measures[se.measureIndex].notes[se.noteIndex].dCode=we,await W()}if(ie==="tie"){const we=Date.now()+"";if(B.abc.measures[re.measureIndex].notes[re.noteIndex].tie){const ge=B.abc.measures[re.measureIndex].notes[re.noteIndex].tie;B.abc.measures[re.measureIndex].notes[re.noteIndex].tie=$e[0]+ge}else B.abc.measures[re.measureIndex].notes[re.noteIndex].tie=$e[0],B.abc.measures[re.measureIndex].notes[re.noteIndex].tCode=we;if(B.abc.measures[se.measureIndex].notes[se.noteIndex].tie){const ge=B.abc.measures[se.measureIndex].notes[se.noteIndex].tie;B.abc.measures[se.measureIndex].notes[se.noteIndex].tie=ge+$e[1]}else B.abc.measures[se.measureIndex].notes[se.noteIndex].tie=$e[1],B.abc.measures[se.measureIndex].notes[se.noteIndex].tCode=we;await W()}x.select.state=!1,x.select.list=[],x.select.parmas=null,oe(),d.destroyAll()},Z=async ie=>{B.abc.visualTranspose=ie.step,b.moveKeyShow=!1,x.playState&&(B.synthControl.disable(!0),x.playState=!1),await W()},ce=ie=>{if(!x.active)return!1;if(console.log(ie.key),ie.key==="Backspace"&&X({type:"delete",value:""}),/^[A-Ga-g]$/.test(ie.key)&&X({type:"note",value:ie.key.toLocaleUpperCase()}),["ArrowUp","ArrowDown"].includes(ie.key))return ie.preventDefault(),ie.stopPropagation(),X({type:"move",value:{action:ie.key==="ArrowUp"?"up":"donw"}}),!1},fe=()=>{B.abc.measures=initMusic(30),W()},me=computed(()=>ABCJS.synth.instrumentIndexToName.map((ie,$e)=>({label:instrumentsNames[ie],value:$e}))),ne=async()=>{x.loading=!0;const ie=getQuery(),$e=await api_musicSheetCreationDetail(ie.id);if(($e==null?void 0:$e.code)==200){x.musicId=$e.data.id||"",x.musicName=$e.data.name||"",x.creator=$e.data.creator||"";let re="";try{re=JSON.parse($e.data.creationData)}catch(se){console.log(se)}if(re){console.log("🚀 ~ abc:",re),B.abc.celf=re.celf||"K:treble",B.abc.key=re.key.value||"K:C",B.abc.meter=re.meter.value||"M:4/4",B.abc.speed=re.speed||"Q:1/4=60",B.abc.visualTranspose=re.visualTranspose||0,B.abc.subjectCode=re.subjectCode||"acoustic_grand_piano";const se=ABCJS.synth.instrumentIndexToName.indexOf(B.abc.subjectCode);B.synthOptions.program=se>-1?se:0,B.abc.measures=re.measures||initMusic(30)}}x.loading=!1},te=async(ie=!0)=>{await api_musicSheetCreationUpdate({name:x.musicName,creator:x.creator,creationConfig:renderMeasures(B.abc,{hiddenIndex:!0}),creationData:JSON.stringify(cleanDeep(B.abc)),id:x.musicId,subjectId:3}),ie&&d.success("保存成功"),x.isSave=!0};onMounted(async()=>{await ne(),L(),ABCJS.synth.supportsAudio()&&(B.synthControl=new ABCJS.synth.SynthController,B.synthControl.load("#audio",R,{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0})),console.log(ABCJS),await W(),document.addEventListener("keyup",ce),window.onbeforeunload=$e=>{x.isSave||($e.preventDefault(),$e.returnValue="还有没保存的")},B.synthControl.restart();const ie=document.querySelector("#selectMearesBtn");if(ie){const $e=ie.getBoundingClientRect();x.selectMeasures.x=document.body.clientWidth-320,x.selectMeasures.y=$e.top+70,x.selectMeasures.state=!0}}),onUnmounted(()=>{document.removeEventListener("keyup",ce)});const de=computed(()=>x.active?B.abc.measures[x.active.measureIndex]||{}:{}),le=computed(()=>{var $e;return x.active?(($e=B.abc.measures[x.active.measureIndex])==null?void 0:$e.notes[x.active.noteIndex])||{}:{}}),be=()=>{showConfirmDialog({title:"温馨提示",message:"是否覆盖当前乐谱?"}).then(()=>{fe(),x.active=null})},Le=()=>{for(let ie=0;ie{if(x.deleteMearseType==="ing"){if(!x.active){d.warning("请选择小节");return}B.abc.measures.splice(x.active.measureIndex,1)}else if(x.deleteMearseType==="finish"){let ie=B.abc.measures.length;for(let $e=ie;$e>0&&(B.abc.measures[$e-1].notes.length===1&&B.abc.measures[$e-1].notes[0].content==="z");$e--){if(B.abc.measures.length===1)break;B.abc.measures.splice($e-1,1)}}b.mearseDeleteShow=!1,W()},rt=async()=>{var Ne;B.abc.title="T:".concat(x.musicName),B.abc.creator="R:".concat(x.creator);const ie=document.getElementById("exportPng");if(!ie)return;const $e=renderMeasures(B.abc,{hiddenIndex:!0,showTitle:!0,showCreator:!0});ABCJS.renderAbc(ie,$e,B.abcOptions);const re=(Ne=ie.children[0])==null?void 0:Ne.cloneNode(!0),se=ie.getBoundingClientRect();re.setAttribute("width","".concat(se.width*3)),re.setAttribute("height","".concat(se.height*3));const Ce=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Ce.setAttribute("x","0"),Ce.setAttribute("y","0"),Ce.setAttribute("width","".concat(se.width*10)),Ce.setAttribute("height","".concat(se.height*10)),Ce.setAttribute("fill","#fff"),re.prepend(Ce),re){const we=svg2canvas(re.outerHTML);let ge=document.createElement("a");ge.href=we.toDataURL(),ge.download=x.musicName+".png";const Ee=new MouseEvent("click");ge.dispatchEvent(Ee)}},ht=ref(),ct=()=>{const ie=ABCJS.synth.getMidiFile(B.visualObj,{chordsOff:!0,midiOutputType:"link",fileName:"曲谱"});ht.value.innerHTML=ie,ht.value.querySelector("a").click()},it=()=>{try{B.synthControl&&B.synthControl.download("曲谱.wav")}catch(ie){const $e=new ABCJS.synth.CreateSynth;$e.init({visualObj:B.visualObj,options:B.synthOptions}).then(()=>{$e.prime().then(()=>{downloadFile($e.download(),"曲谱.wav")})})}},Be=ie=>{ie==="png"?rt():ie==="midi"?ct():ie==="wav"&&it()},Ie=()=>{const ie=document.createElement("input");ie.type="file",ie.accept=".xml,.musicxml",ie.onchange=$e=>{const re=$e.target.files[0],se=new FileReader;se.onload=Ce=>{let Ne=Ce.target.result;console.log("🚀 ~ abc:",Ne),Ne=new DOMParser().parseFromString(Ne,"text/xml"),console.log("🚀 ~ abc:",Ne),Ne=window.vertaal(Ne,{p:"f",t:1,u:0,v:3,mnum:0}),console.log(Ne)},se.readAsText(re)},ie.click()},Fe=(ie,$e)=>{var re;if(console.log("🚀 ~ index:",ie),$e==="start"){const se=ie?q("".concat(ie-1,".0")):null;x.selectMeasures.start=ie?ie-1:0,x.selectMeasures.startNote=se,x.selectMeasures.start&&x.selectMeasures.end&&x.selectMeasures.endx.selectMeasures.end&&(x.selectMeasures.start=0,x.selectMeasures.startNote=null)}};return()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.container},[createVNode("div",{class:styles$6.containerTop,onKeyup:ie=>ie.stopPropagation()},[createVNode("div",{class:styles$6.topWrap},[createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"exit",value:"exit"})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_-1.png")},null)]),createVNode("div",null,[createTextVNode("退出")])]),createVNode("div",{class:styles$6.topBtn},[createVNode(FileBtn,{onSelect:ie=>{ie==="newMusic"?be():ie==="save"?te():["xml"].includes(ie)?Ie():ie==="upload"||["png","midi","wav"].includes(ie)&&Be(ie)}},null),createVNode("div",null,[createTextVNode("文件")])]),createVNode("div",{class:styles$6.topLine},null),createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"dot",value:">"})},[createVNode("div",{class:[styles$6.btnImg,le.value.dot===">"&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_1.png")},null)]),createVNode("div",null,[createTextVNode("附点")])]),createVNode("div",{class:styles$6.topLine},null),ABC_DATA.accidentals.map(ie=>createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"accidentals",value:ie.value})},[createVNode("div",{class:[styles$6.btnImg,le.value.accidental===ie.value&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:ie.icon},null)]),createVNode("div",{class:styles$6.btnName},[ie.name])])),createVNode("div",{class:styles$6.topLine},null),createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"tie",value:ABC_DATA.tie[0].value})},[createVNode("div",{class:[styles$6.btnImg,le.value.tieline===ABC_DATA.tie[0].value&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:ABC_DATA.tie[0].icon},null)]),createVNode("div",null,[ABC_DATA.tie[0].name])]),createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"tie",value:ABC_DATA.tie[1].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.tie[1].value.includes(le.value.tie)&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:ABC_DATA.tie[1].icon},null)]),createVNode("div",null,[ABC_DATA.tie[1].name])]),createVNode("div",{class:styles$6.topLine},null),ABC_DATA.play.slice(0,4).map(ie=>{var $e;return createVNode("div",{class:[styles$6.topBtn],onClick:()=>X({type:"play",value:ie.value})},[createVNode("div",{class:[styles$6.btnImg,(($e=le.value.play)==null?void 0:$e.includes(ie.value))&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:ie.icon},null)]),createVNode("div",null,[ie.name])])}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,trigger:"click",contentStyle:{width:"400px"}},{trigger:()=>createVNode("div",{class:styles$6.topDownArrow},[createVNode("img",{src:getImage("icon_arrow.png")},null)]),default:()=>{let ie;return createVNode(NGrid,{cols:4,yGap:8},_isSlot(ie=ABC_DATA.play.slice(4).map($e=>createVNode(NGi,null,{default:()=>{var re;return[createVNode("div",{class:[styles$6.btnItem,((re=le.value.play)==null?void 0:re.includes($e.value))&&styles$6.btnItemActive],onClick:()=>{x.morePlay=!1,X({type:"play",value:$e.value})}},[createVNode("div",{class:styles$6.btnItemIcon},[createVNode(TheIcon,{iconClassName:$e.icon},null)]),createVNode("div",null,[$e.name])])]}})))?ie:{default:()=>[ie]})}}),createVNode("div",{class:styles$6.topLine},null),createVNode(NDropdown,{trigger:"click",options:ABC_DATA.slus,labelField:"name",keyField:"value",onSelect:ie=>{console.log(ie),X({type:"slus",value:ie})}},{default:()=>[createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_13.png")},null)]),createVNode("div",null,[createTextVNode("连音")])])]}),createVNode("div",{class:[styles$6.topBtn,styles$6.btnDisabled]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_14.png")},null)]),createVNode("div",null,[createTextVNode("翻转")])]),createVNode("div",{class:styles$6.topLine},null),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.selectSubjectShow,"onUpdate:show":ie=>b.selectSubjectShow=ie,trigger:"click",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:styles$6.topBtn},[createVNode("div",{class:styles$6.btnImg,onClick:()=>b.instrument=!0},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_25.png")},null)]),createVNode("div",null,[createTextVNode("选择声部")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("选择声部")]),createVNode(NSelect,{filterable:!0,options:me.value,value:B.synthOptions.program,"onUpdate:value":[ie=>B.synthOptions.program=ie,async()=>{B.synthControl.disable(!0),x.playState=!1,await L(),z(!0),b.selectSubjectShow=!1}]},null)])}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.moveKeyShow,"onUpdate:show":ie=>b.moveKeyShow=ie,trigger:"click",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:styles$6.topBtn},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_15.png")},null)]),createVNode("div",null,[createTextVNode("移调")])]),default:()=>{let ie;return createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("移调方式")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,type:x.moveKeyType==="inset"?"primary":"default",onClick:()=>x.moveKeyType="inset"},{default:()=>[createVNode(NIcon,{component:GripLinesVertical},null),createTextVNode("最靠近")]}),createVNode(NButton,{secondary:!0,type:x.moveKeyType==="down"?"primary":"default",onClick:()=>x.moveKeyType="down"},{default:()=>[createVNode(NIcon,{component:LongArrowAltDown},null),createTextVNode("向下移调")]}),createVNode(NButton,{secondary:!0,type:x.moveKeyType==="up"?"primary":"default",onClick:()=>x.moveKeyType="up"},{default:()=>[createVNode(NIcon,{component:LongArrowAltUp},null),createTextVNode("向上移调")]})]}),createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("目标音调")]),createVNode(NGrid,{cols:5,yGap:8},_isSlot(ie=ABC_DATA.key.sort(($e,re)=>re.step-$e.step).map($e=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$6.btnItem,B.abc.key===$e.value&&styles$6.btnItemActive],onClick:()=>Z($e)},[createVNode("div",{class:[styles$6.btnItemIcon]},[createVNode(TheIcon,{iconClassName:$e.icon},null)]),createVNode("div",{class:styles$6.btnItemName},[$e.name])])]})))?ie:{default:()=>[ie]})])}}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,value:b.speedShow,"onUpdate:value":ie=>b.speedShow=ie,trigger:"click",placement:"bottom",displayDirective:"show"},{trigger:()=>createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_16.png")},null)]),createVNode("div",null,[createTextVNode("速度调整")])]),default:()=>createVNode(TheSpeed,{onChange:ie=>X(ie)},null)}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.staffShow,"onUpdate:show":ie=>b.staffShow=ie,trigger:"click",placement:"bottom",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_17.png")},null)]),createVNode("div",null,[createTextVNode("谱面显示")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("乐谱大小")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:B.abcOptions.staffwidth===1200?"primary":"default",secondary:!0,onClick:()=>{B.abcOptions.staffwidth=1200,W()}},{default:()=>[createTextVNode("小")]}),createVNode(NButton,{type:B.abcOptions.staffwidth===800?"primary":"default",secondary:!0,onClick:()=>{B.abcOptions.staffwidth=800,W()}},{default:()=>[createTextVNode("中")]}),createVNode(NButton,{type:B.abcOptions.staffwidth===400?"primary":"default",secondary:!0,onClick:()=>{B.abcOptions.staffwidth=400,W()}},{default:()=>[createTextVNode("大")]})]}),createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("小节数")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NInputNumber,{min:1,value:B.abcOptions.wrap.preferredMeasuresPerLine,"onUpdate:value":[ie=>B.abcOptions.wrap.preferredMeasuresPerLine=ie,()=>{W()}],placeholder:"请输入小节数"},null)]})])}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.barShow,"onUpdate:show":ie=>b.barShow=ie,trigger:"click",placement:"bottom",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_18.png")},null)]),createVNode("div",null,[createTextVNode("添加小节")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("添加方式")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:x.addMearseType==="pre"?"primary":"default",secondary:!0,onClick:()=>x.addMearseType="pre"},{default:()=>[createTextVNode("当前小节前")]}),createVNode(NButton,{type:x.addMearseType==="next"?"primary":"default",secondary:!0,onClick:()=>x.addMearseType="next"},{default:()=>[createTextVNode("当前小节后")]}),createVNode(NButton,{type:x.addMearseType==="finish"?"primary":"default",secondary:!0,onClick:()=>x.addMearseType="finish"},{default:()=>[createTextVNode("曲谱末尾")]})]}),createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("小节数")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NInputNumber,{min:1,value:x.addMearseNumber,"onUpdate:value":ie=>x.addMearseNumber=ie,placeholder:"请输入小节数"},null),createVNode(NSpace,{style:{marginTop:"20px"},align:"center",wrap:!1,wrapItem:!1},{default:()=>[createVNode(NButton,{style:{width:"48%"},round:!0,onClick:()=>b.barShow=!1},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{style:{width:"48%"},round:!0,type:"primary",onClick:()=>Le()},{default:()=>[createTextVNode("确定")]})]})]})])}),createVNode(NPopover,{class:styles$6.popupWrap,show:b.mearseDeleteShow,"onUpdate:show":ie=>b.mearseDeleteShow=ie,trigger:"click",placement:"bottom"},{trigger:()=>createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_19.png")},null)]),createVNode("div",null,[createTextVNode("删除小节")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("删除方式")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:x.deleteMearseType==="ing"?"primary":"default",secondary:!0,onClick:()=>x.deleteMearseType="ing"},{default:()=>[createTextVNode("当前选中小节")]}),createVNode(NButton,{type:x.deleteMearseType==="finish"?"primary":"default",secondary:!0,onClick:()=>x.deleteMearseType="finish"},{default:()=>[createTextVNode("末尾空白小节")]})]}),createVNode(NSpace,{style:{marginTop:"20px"},align:"center",wrap:!1,wrapItem:!1},{default:()=>[createVNode(NButton,{style:{width:"48%"},round:!0,onClick:()=>b.mearseDeleteShow=!1},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{style:{width:"48%"},round:!0,type:"primary",onClick:()=>Qe()},{default:()=>[createTextVNode("确定")]})]})]})])}),createVNode("div",{class:styles$6.topLine},null),createVNode("div",{style:{marginLeft:"auto"},class:styles$6.topBtn,onClick:()=>V("reset")},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_20.png")},null)]),createVNode("div",null,[createTextVNode("重播")])]),createVNode("div",{class:styles$6.topBtn},[createVNode(NSpin,{show:x.loadingAudioSrouce,size:"small"},{default:()=>[createVNode("div",{class:styles$6.btnImg,onClick:()=>V(x.playState?"pause":"play")},[createVNode("img",{style:{display:x.playState?"":"none"},class:styles$6.topBtnIcon,src:getImage("icon_21_1.png")},null),createVNode("img",{style:{display:x.playState?"none":""},class:styles$6.topBtnIcon,src:getImage("icon_21.png")},null)])]}),createVNode("div",null,[x.playState?"暂停":"播放"])]),createVNode("div",{id:"selectMearesBtn",class:[styles$6.topBtn],onClick:()=>b.selectMearesShow=!b.selectMearesShow},[createVNode("div",{class:[styles$6.btnImg,b.selectMearesShow&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_22.png")},null)]),createVNode("div",null,[createTextVNode("选段")])]),createVNode("div",{class:[styles$6.topBtn,styles$6.btnDisabled]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_23.png")},null)]),createVNode("div",null,[createTextVNode("节拍器")])]),createVNode("div",{class:[styles$6.topBtn],onClick:()=>b.settingShow=!0},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_24.png")},null)]),createVNode("div",null,[createTextVNode("设置")])])])]),createVNode("div",{class:styles$6.content},[createVNode("div",{class:styles$6.slide},[createVNode(Collapse,{modelValue:x.slide,"onUpdate:modelValue":ie=>x.slide=ie,elevation:!1,divider:!1},{default:()=>[createVNode(CollapseItem,{title:"音符时值",name:"note"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.types.map(ie=>createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"type",value:ie.value})},[createVNode("div",{class:[styles$6.btnImg,x.noteType===ie.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ie.icon},null)]),createVNode("div",null,[ie.name])])),createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"note",value:"z"})},[createVNode("div",{class:[styles$6.btnImg,le.value.content==="z"&&styles$6.btnImgActive]},[createVNode("img",{style:{width:"20px",height:"20px"},src:getImage("icon_rest.png")},null)]),createVNode("div",null,[createTextVNode("休止符")])]),createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"segno",value:" "})},[createVNode("div",{class:[styles$6.btnImg,le.value.segno===" "&&styles$6.btnImgActive]},null),createVNode("div",null,[createTextVNode("分割")])])])]}),createVNode(CollapseItem,{title:"拍号",name:"meter"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.meter.map(ie=>createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"meter",value:ie.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:ie.icon},null)]),createVNode("div",null,[ie.name])]))])]}),createVNode(CollapseItem,{title:"力度记号",name:"dynamics"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.dynamics.slice(0,8).map(ie=>createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"dynamics",value:ie.value})},[createVNode("div",{class:[styles$6.btnImg,le.value.dynamics===ie.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ie.icon,size:["2em","2em"]},null)]),createVNode("div",null,[ie.name])])),createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"dynamics",value:ABC_DATA.dynamics[8].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.dynamics[8].value.includes(le.value.dynamics)&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ABC_DATA.dynamics[8].icon,size:["2em","2em"]},null)]),createVNode("div",null,[ABC_DATA.dynamics[8].name])]),createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"dynamics",value:ABC_DATA.dynamics[9].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.dynamics[9].value.includes(le.value.dynamics)&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ABC_DATA.dynamics[9].icon,size:["2em","2em"]},null)]),createVNode("div",null,[ABC_DATA.dynamics[9].name])])])]}),createVNode(CollapseItem,{title:"反复与跳跃",name:"repeat"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.repeat.map(ie=>createVNode("div",{class:[styles$6.topBtn,styles$6.longTopBtn],onClick:()=>X({type:"repeat",value:ie.value})},[createVNode("div",{class:[styles$6.btnImg,de.value.repeat===ie.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ie.icon,size:["5em","1em"]},null)]),createVNode("div",null,[ie.name])]))])]}),createVNode(CollapseItem,{title:"小节线",name:"line"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.bar.map(ie=>createVNode("div",{class:styles$6.topBtn,onClick:()=>{x.morePlay=!1,X({type:"barline",value:ie.value})}},[createVNode("div",{class:[styles$6.btnImg,de.value.barline===ie.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ie.icon,size:["2em","2em"]},null)]),createVNode("div",null,[ie.name])]))])]}),createVNode(CollapseItem,{title:"谱号",name:"clef"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.clef.map(ie=>createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"clef",value:ie.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:ie.icon},null)]),createVNode("div",null,[ie.name])]))])]}),createVNode(CollapseItem,{title:"调号",name:"key"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.key.map(ie=>createVNode("div",{class:styles$6.topBtn,onClick:()=>X({type:"key",value:ie.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:ie.icon},null)]),createVNode("div",null,[ie.name])]))])]})]})]),createVNode("div",{class:styles$6.box},[createVNode("div",{class:styles$6.titleBox},[createVNode("div",{class:styles$6.titleName,style:{width:"50%",margin:"0 auto"}},[createVNode(NInput,{onKeyup:ie=>ie.stopPropagation(),value:x.musicName,"onUpdate:value":ie=>x.musicName=ie,placeholder:"曲谱名称"},null)]),createVNode("div",{style:{width:"30%",margin:"10px 0 0 auto"}},[createVNode(NInput,{onKeyup:ie=>ie.stopPropagation(),value:x.creator,"onUpdate:value":ie=>x.creator=ie,placeholder:"曲谱作者"},null)])]),createVNode("div",{id:"paper"},null),!x.loading&&createVNode(Keys,{show:!!x.active,instrumentCode:B.abc.subjectCode,onClick:ie=>X(ie)},null),createVNode("div",{id:"audio",style:{display:"none"}},null),createVNode("div",{id:"warnings"},null),createVNode("p",{class:"beat"},null),createVNode("pre",{class:"clicked-info"},null),createVNode("pre",{class:"feedback"},null),createVNode("div",{id:"container"},null),x.loadingAudioSrouce&&createVNode("div",{class:styles$6.loading},[createVNode(NSpin,null,null)])])]),createVNode("div",{ref:ht},null),createVNode(TheSetting,{show:b.settingShow,"onUpdate:show":ie=>b.settingShow=ie},null),x.selectMeasures.state&&createVNode(UseDraggable,{initialValue:{x:x.selectMeasures.x,y:x.selectMeasures.y},class:[styles$6.selectMearesBox,!b.selectMearesShow&&styles$6.selectMearesHidden]},{default:()=>[createVNode("div",{onKeyup:ie=>ie.stopPropagation()},[createVNode(NSpace,{justify:"space-between"},{default:()=>[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("输入小节范围")]),createVNode(NButton,{circle:!0,quaternary:!0,size:"small",onClick:()=>b.selectMearesShow=!1},{default:()=>[createVNode(NIcon,{size:16,component:createVNode(Close,null,null)},null)]})]}),createVNode(NSpace,{align:"center",wrap:!1,wrapItem:!1},{default:()=>[createVNode("div",{class:styles$6.mearesInput},[createVNode(NInputNumber,{min:1,max:x.selectMeasures.max,bordered:!1,placeholder:"开始小节",showButton:!1,"onUpdate:value":ie=>Fe(ie,"start")},null),createTextVNode("-"),createVNode(NInputNumber,{min:x.selectMeasures.start,max:x.selectMeasures.max,bordered:!1,placeholder:"结束小节",showButton:!1,"onUpdate:value":ie=>Fe(ie,"end")},null)]),createVNode("div",{class:styles$6.topBtn},[createVNode(NSpin,{show:x.loadingAudioSrouce,size:"small"},{default:()=>[createVNode("div",{class:styles$6.btnImg,onClick:()=>V(x.playState?"pause":"play")},[createVNode("img",{style:{display:x.playState?"":"none"},class:styles$6.topBtnIcon,src:getImage("icon_21_1.png")},null),createVNode("img",{style:{display:x.playState?"none":""},class:styles$6.topBtnIcon,src:getImage("icon_21.png")},null)])]})])]})])]})]),createVNode("div",{class:styles$6.exportPng},[createVNode("div",{id:"exportPng"},null)])])}}),createItem="_createItem_65ahl_1",wrap="_wrap_65ahl_21",item="_item_65ahl_26",icon_29="_icon_29_65ahl_38",bottomBtn="_bottomBtn_65ahl_44",btn="_btn_65ahl_52",imgBox="_imgBox_65ahl_62",itemBottom="_itemBottom_65ahl_70",bottombox="_bottombox_65ahl_76",bottomLeft="_bottomLeft_65ahl_81",itemtitle="_itemtitle_65ahl_85",time="_time_65ahl_88",styles={createItem,wrap,item,icon_29,bottomBtn,btn,imgBox,itemBottom,bottombox,bottomLeft,itemtitle,time},Create=defineComponent({name:"Create",setup(){useRouter();const d=useDialog();console.log(storeData.user);const b=reactive({teacherId:storeData.user.id,page:1,keyword:"",rows:20}),x=reactive({list:[],addShow:!1,loading:!1,finish:!1,isCreated:!1}),C=async()=>{x.loading=!0;const k=await api_musicSheetCreationPage({...b});(k==null?void 0:k.code)==200&&(x.isCreated&&(x.isCreated=!1,P(k.data.rows[0])),x.list=x.list.concat(k.data.rows),x.finish=k.data.rows.length{b.page=1,x.finish=!1,x.list=[],C()},A=usePageVisibility();watch(A,k=>{k==="visible"&&w()});const S=k=>{ref(!0),d.warning({autoFocus:!1,class:"deleteDialog",title:"删除曲谱",content:()=>createVNode("div",{style:{paddingRight:"calc(var(--n-close-size) + 6px)"}},[createTextVNode("确认删除当前曲谱?")]),positiveText:"取消",positiveButtonProps:{type:"default"},negativeText:"删除",negativeButtonProps:{type:"primary",ghost:!1},onPositiveClick:()=>{},onNegativeClick:async()=>{await api_musicSheetCreationRemove(k.id),w()}})},$=ref(),E=k=>{var I;((I=k.data)==null?void 0:I.api)=="reload"&&w()};onMounted(()=>{var k;C(),$.value&&new IntersectionObserver(R=>{if(R[0].isIntersecting){if(x.finish||x.loading)return;b.page++,C()}}).observe((k=$.value)==null?void 0:k.$el),window.addEventListener("message",I=>{E(I)})}),onUnmounted(()=>{window.removeEventListener("message",E)});const P=k=>{window.parent.postMessage({api:"notation_open",url:"".concat(location.origin,"/notation/#/?v=1.0.2&id=").concat(k.id)},"*")},B=(k,I)=>{k&&ABCJS.renderAbc(I,k,{selectTypes:!1,add_classes:!0})};return()=>createVNode("div",{class:styles.wrap},[createVNode(NSpace,{size:18},{default:()=>[createVNode("div",{class:styles.createItem,onClick:()=>x.addShow=!0},[createVNode("img",{src:getImage("icon_29.png")},null),createVNode("div",null,[createTextVNode("新建乐谱")])]),x.list.map((k,I)=>createVNode("div",{class:styles.item,onClick:()=>P(k)},[createVNode("div",{class:styles.imgBox,id:"item_"+I},[createVNode("img",{src:getImage("icon_staff.png"),onLoad:()=>{B(k.creationConfig,"item_"+I)}},null)]),createVNode("div",{class:styles.itemBottom},[createVNode("div",{class:styles.bottombox},[createVNode("div",{class:styles.bottomLeft},[createVNode("div",{class:styles.itemtitle},[createVNode("img",{class:styles.icon_29,src:getImage("icon_29_1.png")},null),createVNode("span",null,[k.name])]),createVNode("div",{class:styles.time},[k.updateTime])]),createVNode("img",{class:styles.bottomBtn,src:getImage("icon_29_3.png"),onClick:R=>{R.stopPropagation(),S(k)}},null)])])]))]}),!x.finish&&createVNode(NSpace,{ref:$,justify:"center",style:{padding:"30px"}},{default:()=>[createVNode(NSpin,{size:"large"},null)]}),createVNode(TheCreate,{show:x.addShow,"onUpdate:show":k=>x.addShow=k,onCreate:()=>{x.addShow=!1,x.isCreated=!0,w()}},null)])}}),routes=[{path:"/create",component:Create},{path:"/",component:Home}],router=createRouter({history:createWebHashHistory(),routes}),inBrowser=typeof window<"u",supportTouch=inBrowser&&"ontouchstart"in window;let initiated=!1,eventTarget;const isMousedown=d=>d==="mousedown",isMousemove=d=>d==="mousemove",isMouseup=d=>d==="mouseup",isUpdateTarget=d=>isMousedown(d)||!eventTarget||eventTarget&&!eventTarget.dispatchEvent;function Touch(d,b,x){const{clientX:C,clientY:w,screenX:A,screenY:S,pageX:$,pageY:E}=x;this.identifier=b,this.target=d,this.clientX=C,this.clientY=w,this.screenX=A,this.screenY=S,this.pageX=$,this.pageY=E}function updateTouchList(d){const b=createTouchList();return b.push(new Touch(eventTarget,1,d)),b}function createTouchList(){const d=[];return d.item=function(b){return this[b]||null},d}function getActiveTouches(d){const{type:b}=d;return isMouseup(b)?createTouchList():updateTouchList(d)}function triggerTouch(d,b){const{altKey:x,ctrlKey:C,metaKey:w,shiftKey:A}=b,S=new Event(d,{bubbles:!0,cancelable:!0});S.altKey=x,S.ctrlKey=C,S.metaKey=w,S.shiftKey=A,S.touches=getActiveTouches(b),S.targetTouches=getActiveTouches(b),S.changedTouches=createTouchList(),eventTarget.dispatchEvent(S)}function onMouse(d,b){const{type:x,target:C}=d;initiated=isMousedown(x)?!0:isMouseup(x)?!1:initiated,!(isMousemove(x)&&!initiated)&&(isUpdateTarget(x)&&(eventTarget=C),triggerTouch(b,d),isMouseup(x)&&(eventTarget=null))}function createTouchEmulator(){window.addEventListener("mousedown",d=>onMouse(d,"touchstart"),!0),window.addEventListener("mousemove",d=>onMouse(d,"touchmove"),!0),window.addEventListener("mouseup",d=>onMouse(d,"touchend"),!0)}inBrowser&&!supportTouch&&createTouchEmulator();createApp(App).use(router).mount("#app");export{__vite_legacy_guard};